_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
55145794e09c97a0c485dc1dd149085a6b7b66c310d37e392cc0abc5d8d9c736
charlieg/Sparser
overflow-wallp.lisp
(f "/Users/ddm/ws/projects/Vulcan/bio-chap12.txt") analyzing /Users/ddm/ws/projects/Vulcan/bio-chap12.txt  regulation of the cell cycle Section: A molecular control system drives the cell cycle The timing and rate of cell division in different parts of a plant or animal are crucial to normal growth, developme...
null
https://raw.githubusercontent.com/charlieg/Sparser/b9bb7d01d2e40f783f3214fc104062db3d15e608/Sparser/overflow-wallp.lisp
lisp
(f "/Users/ddm/ws/projects/Vulcan/bio-chap12.txt") analyzing /Users/ddm/ws/projects/Vulcan/bio-chap12.txt  regulation of the cell cycle Section: A molecular control system drives the cell cycle The timing and rate of cell division in different parts of a plant or animal are crucial to normal growth, developme...
1bb41169f8b562f8744b3ba1c290de07be3ec81f401784f0aeca4c1c9b477535
MarcWeber/hasktags
testcase9.hs
\section[GHC.Base]{Module @GHC.Base@} !!! This test case also tests the getTopLevelIndent implementation, because it has the word "import" as comment !!! to be found Monad The overall structure of the GHC Prelude is a bit tricky. a) We want to avoid "orphan modules", i.e. ones with instance decls that ...
null
https://raw.githubusercontent.com/MarcWeber/hasktags/65bcbecb695f0d2f31c2436958480535b8193b6c/testcases/testcase9.hs
haskell
-fno-warn-orphans is needed for things like: # OPTIONS_HADDOCK hide # --------------------------------------------------------------------------- | Module : GHC.Base License : see libraries/base/LICENSE Maintainer : Stability : internal Basic data types and classes. ------------------------...
\section[GHC.Base]{Module @GHC.Base@} !!! This test case also tests the getTopLevelIndent implementation, because it has the word "import" as comment !!! to be found Monad The overall structure of the GHC Prelude is a bit tricky. a) We want to avoid "orphan modules", i.e. ones with instance decls that ...
14e80ef42b495a0aeaf2687d222e87aff66a18ad45090b540c1e5e9fc70c57f0
soegaard/racket-cas
polynomial.rkt
#lang racket/base A GME ( General Monomial Expression has the form : ;;; c1 c2 ... cr x1^n1 x2^n2 ... xm^nm where ( free - of ci xj ) holds and nj are non - negative integers . ;;; A GPE (General Polynomial Expressions) is either a GME or a sum of GMEs . (provide exponent ; (exponent u w) ...
null
https://raw.githubusercontent.com/soegaard/racket-cas/440762257be1f137e34e9c56c31ab2e194b6d522/racket-cas/polynomial.rkt
racket
c1 c2 ... cr x1^n1 x2^n2 ... xm^nm A GPE (General Polynomial Expressions) is either (exponent u w) finds the maximum exponent of w present in u (coefficient u v [n 1]) find coefficient of v^n in u (polynomial? u x) is u a univariate polynomial in x? (is-power-of? u w) ...
#lang racket/base A GME ( General Monomial Expression has the form : where ( free - of ci xj ) holds and nj are non - negative integers . a GME or a sum of GMEs . ( coefficient - list ) view u as a polynomial in x , return the list of coefficients polynomial-expansion polynomial-gcd...
a0db8c84ac940a02b20ba9be95282bdbb1449cd48d542cf35f596f64e942b275
huangjs/cl
defps.lisp
Copyright ( c ) 1987 ;;; Permission is given to freely modify and distribute this code ;;; so long as this copyright notice is retained. ;;;; This file initializes postscript info on property lists. It need ;;;; only be executed once (load time is best). ;;; This file defines all standard postscript operators...
null
https://raw.githubusercontent.com/huangjs/cl/96158b3f82f82a6b7d53ef04b3b29c5c8de2dbf7/lib/plisp/compiler/defps.lisp
lisp
Permission is given to freely modify and distribute this code so long as this copyright notice is retained. This file initializes postscript info on property lists. It need only be executed once (load time is best). This file defines all standard postscript operators. Anything else must be generated by some...
Copyright ( c ) 1987 See ps reference manual p 104 . (defun ps-init () (mapc #'def-primitive '( (add 2 1) (div 2 1) (idiv 2) (mod 2) (mul 2) (sub 2) (abs 1) (neg 1) (ceiling 1) (floor 1) (round 1) (truncate 1) (sqrt 1) (...
73cb4f074b5e0449c10477c010899f9bc0e81b92d9f9e1396fb1a194cf33cc92
scicloj/scicloj.ml
core.clj
(ns scicloj.ml.template.core "Core functions for machine learninig and pipeline execution. Requiring this namesspace registers as well the model in: * scicloj.ml.smile.classification * scicloj.ml.smile.regression * scicloj.ml.xgboost Functions are re-exported from: * scicloj.metamorph.ml.* * scic...
null
https://raw.githubusercontent.com/scicloj/scicloj.ml/74822932075e1575fe9779b0a165c0640b5d4740/template/scicloj/ml/template/core.clj
clojure
register models def-ctx ; cannot be exported, is tehreofre copied below
(ns scicloj.ml.template.core "Core functions for machine learninig and pipeline execution. Requiring this namesspace registers as well the model in: * scicloj.ml.smile.classification * scicloj.ml.smile.regression * scicloj.ml.xgboost Functions are re-exported from: * scicloj.metamorph.ml.* * scic...
3ececac7de0d9b3fd464bf9ddc5021f8199b3475e607a7508e2d8cbd0cf205ee
s-cerevisiae/leetcode-racket
50-powx-n.rkt
#lang racket (define (my-pow x n) ((if (< n 0) / *) (let loop ([x x] [n n] [result 1]) (if (zero? n) result (loop (sqr x) (quotient n 2) (if (odd? n) (* x result) result))))))
null
https://raw.githubusercontent.com/s-cerevisiae/leetcode-racket/5327da740de69b9af7cef08572d1c750f05cc95d/50-powx-n.rkt
racket
#lang racket (define (my-pow x n) ((if (< n 0) / *) (let loop ([x x] [n n] [result 1]) (if (zero? n) result (loop (sqr x) (quotient n 2) (if (odd? n) (* x result) result))))))
796b7fa7269e13ad8faa8e70e2ae0c022484b94da5dac9288abdf640f749a8f1
DuoSRX/ocamnes
ppu.ml
open Core open Stdint let all_palettes = [| 0x666666; 0x002A88; 0x1412A7; 0x3B00A4; 0x5C007E; 0x6E0040; 0x6C0600; 0x561D00; 0x333500; 0x0B4800; 0x005200; 0x004F08; 0x00404D; 0x000000; 0x000000; 0x000000; 0xADADAD; 0x155FD9; 0x4240FF; 0x7527FE; 0xA01ACC; 0xB71E7B; 0xB53120; 0x994E00; 0x6B6D00; 0...
null
https://raw.githubusercontent.com/DuoSRX/ocamnes/58886a3f327516dcab9622637afac14c3c50738a/lib/ppu.ml
ocaml
Registers Temp stuff shift register when writing to other registers temp vram address vram address final scroll Write latch Frame parity PPUMASK OAMDATA PPUDATA PPUCTRL PPUMASK OAMDATA PPUSCROLL PPUADDR PPUDATA
open Core open Stdint let all_palettes = [| 0x666666; 0x002A88; 0x1412A7; 0x3B00A4; 0x5C007E; 0x6E0040; 0x6C0600; 0x561D00; 0x333500; 0x0B4800; 0x005200; 0x004F08; 0x00404D; 0x000000; 0x000000; 0x000000; 0xADADAD; 0x155FD9; 0x4240FF; 0x7527FE; 0xA01ACC; 0xB71E7B; 0xB53120; 0x994E00; 0x6B6D00; 0...
313fbbaabd2d2adc5a930fb9b30e23e7d95355bfcc47fa1c0c04e7ed221b0439
metabase/metabase
native_test.clj
(ns metabase.query-processor.middleware.parameters.native-test (:require [clojure.test :refer :all] [metabase.driver :as driver] [metabase.models.card :refer [Card]] [metabase.query-processor.middleware.parameters.native :as qp.native] [metabase.test :as mt] [metabase.util :as u] [metabase.util.s...
null
https://raw.githubusercontent.com/metabase/metabase/18d190cf05df4233aa6d14d6580faa68293ba980/test/metabase/query_processor/middleware/parameters/native_test.clj
clojure
(ns metabase.query-processor.middleware.parameters.native-test (:require [clojure.test :refer :all] [metabase.driver :as driver] [metabase.models.card :refer [Card]] [metabase.query-processor.middleware.parameters.native :as qp.native] [metabase.test :as mt] [metabase.util :as u] [metabase.util.s...
c6f5b14fe70c5ff945bb6527953bbb0b94e1f66c777a341f5b246b3291cea2c3
aeolus-project/zephyrus
name_of.mli
(****************************************************************************) (* *) This file is part of Zephyrus . (* *) Z...
null
https://raw.githubusercontent.com/aeolus-project/zephyrus/0b52de4038bbab724e6a9628430165a7f09f77ae/src/output/name_of.mli
ocaml
************************************************************************** (at your option) any later version. ...
This file is part of Zephyrus . Zephyrus is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or Zephyru...
c0cb1b2f7ad0a24b7fd7b08eb4923c4530e8b5e2e441d2d147527ab0d1a57b74
phantomics/seed
sheet.base.lisp
;;;; sheet.base.lisp (in-package #:seed.app-model.sheet.base) (defun list-to-2d-array (list) (make-array (list (length list) (length (first list))) :initial-contents list)) (defun array-map (function &rest arrays) "maps the function over the arrays. Assumes that all arrays ar...
null
https://raw.githubusercontent.com/phantomics/seed/f128969c671c078543574395d6b23a1a5f2723f8/seed.app-model.sheet.base/sheet.base.lisp
lisp
sheet.base.lisp parse succeeded, discard it and return true (t) TODO: the above invalid-number condition should work instead of the condition below - why not? index of the character 'A' (defun cell-scan (dims start-point end-point) (labels ((add-entry (point acc) (add-entry (list (if (= 0 col) ...
(in-package #:seed.app-model.sheet.base) (defun list-to-2d-array (list) (make-array (list (length list) (length (first list))) :initial-contents list)) (defun array-map (function &rest arrays) "maps the function over the arrays. Assumes that all arrays are of the same dimensi...
bcb5ca9a4991eb1b3da737e1ab6286f7caa2f8b734fde42b07eb73b73de1c79b
programaker-project/Programaker-Core
automate_rest_api_service_ports_specific_communication.erl
%%% @doc %%% REST endpoint to manage knowledge collections. %%% @end -module(automate_rest_api_service_ports_specific_communication). -export([init/2]). -export([websocket_init/1]). -export([websocket_handle/2]). -export([websocket_info/2]). -export([terminate/3]). -include("../../automate_common_types/src/types.hrl"...
null
https://raw.githubusercontent.com/programaker-project/Programaker-Core/daaf8ea38f66358a288af240ff58769a77b8f9ee/backend/apps/automate_rest_api/src/automate_rest_api_service_ports_specific_communication.erl
erlang
@doc REST endpoint to manage knowledge collections. @end TODO: In this instance is probably OK to use a single connection as the focus are the values, not the keys of SIGNAL_LISTENERS. But it can be disambiguated by passing more "properties" on the 'add_listener' message. There's still a remaining connecti...
-module(automate_rest_api_service_ports_specific_communication). -export([init/2]). -export([websocket_init/1]). -export([websocket_handle/2]). -export([websocket_info/2]). -export([terminate/3]). -include("../../automate_common_types/src/types.hrl"). -include("../../automate_common_types/src/protocol.hrl"). -record...
3d75c68cae6173f8c0a75ec03c743cbccbb85d518bc6c1539035dbc4829ebf91
euhmeuh/virtual-mpu
screen.rkt
#lang racket/base (provide (except-out (struct-out screen) screen) (rename-out [make-screen screen])) (require racket/generic racket/function "area.rkt" "element.rkt" "display.rkt") (struct screen container () #:methods gen:displayable [(define/generic base-display display) (define (display area...
null
https://raw.githubusercontent.com/euhmeuh/virtual-mpu/d8056f928a646bb9ac96fdb78cde794efc82d144/private/emulator/gui/screen.rkt
racket
(display-area area)
#lang racket/base (provide (except-out (struct-out screen) screen) (rename-out [make-screen screen])) (require racket/generic racket/function "area.rkt" "element.rkt" "display.rkt") (struct screen container () #:methods gen:displayable [(define/generic base-display display) (define (display area...
df49b00783264d00757360ca431ed526877ce9dcfb0bdca618dc8dd374171126
batebobo/fp1819
9-drop.rkt
#lang racket (require rackunit) (require rackunit/text-ui) (require "8-take.rkt") Искаме да пропуснем първите n елемента от (define (drop lst n) (reverse (take (- (length lst) n) (reverse lst)))) (define tests (test-suite "Drop tests" (test-case "" (check-equal? (drop '(1 2 3 4 5 6) 3) '(4 5 6))) (te...
null
https://raw.githubusercontent.com/batebobo/fp1819/2061b7e62a1a9ade3a5fff9753f9fe0da5684275/scheme/4/solutions/9-drop.rkt
racket
#lang racket (require rackunit) (require rackunit/text-ui) (require "8-take.rkt") Искаме да пропуснем първите n елемента от (define (drop lst n) (reverse (take (- (length lst) n) (reverse lst)))) (define tests (test-suite "Drop tests" (test-case "" (check-equal? (drop '(1 2 3 4 5 6) 3) '(4 5 6))) (te...
af78dfbcd9c45147e81c6c99356c957c0b0c562a2b36924b49f051f37d0249b0
DaMSL/K3
TriggerSymbols.hs
# LANGUAGE TupleSections # # LANGUAGE ViewPatterns # # LANGUAGE FlexibleContexts # # LANGUAGE TypeFamilies # module Language.K3.Transform.TriggerSymbols where import Data.Tree import Language.K3.Core.Annotation import Language.K3.Core.Declaration import Language.K3.Core.Expression import Language.K3.Core.Type import...
null
https://raw.githubusercontent.com/DaMSL/K3/51749157844e76ae79dba619116fc5ad9d685643/src/Language/K3/Transform/TriggerSymbols.hs
haskell
| Trigger id properties are implemented as Left variants of properties to ensure By implementing this as a declaration property, propagation will ensure the property is available at all usage sites (i.e., send expressions)
# LANGUAGE TupleSections # # LANGUAGE ViewPatterns # # LANGUAGE FlexibleContexts # # LANGUAGE TypeFamilies # module Language.K3.Transform.TriggerSymbols where import Data.Tree import Language.K3.Core.Annotation import Language.K3.Core.Declaration import Language.K3.Core.Expression import Language.K3.Core.Type import...
9dc38dede169e41c7b1201f2c11ac2a170e41d3637f41795ec03fd122e278161
FranklinChen/hugs98-plus-Sep2006
Char8.hs
# OPTIONS_GHC -cpp -- Module : Data . ByteString . Char8 Copyright : ( c ) 2006 -- License : BSD-style -- Maintainer : -- Stability : experimental Portability : portable ( tested with GHC>=6.4.1 and Hugs 2005 ) -- -- | Manipulate ' ByteString 's using ' ' operations . All will be ...
null
https://raw.githubusercontent.com/FranklinChen/hugs98-plus-Sep2006/54ab69bd6313adbbed1d790b46aca2a0305ea67e/packages/base/Data/ByteString/Char8.hs
haskell
License : BSD-style Stability : experimental More specifically these byte strings are taken to be in the See: * </> * <> * <> This module is intended to be imported @qualified@, to avoid name * The @ByteString@ type :: ByteString :: String -> ByteString :: ByteString -> String * Bas...
# OPTIONS_GHC -cpp Module : Data . ByteString . Char8 Copyright : ( c ) 2006 Maintainer : Portability : portable ( tested with GHC>=6.4.1 and Hugs 2005 ) | Manipulate ' ByteString 's using ' ' operations . All will be truncated to 8 bits . It can be expected that these functions will ru...
a31231b04edde0c3f258b264f68e727b4c2f5018ca26a99e6519e8ff3218f8e7
neongreen/haskell-ex
Main.hs
module Main where import System.Random mergesort :: Ord a => [a] -> [a] mergesort [] = [] mergesort [x] = [x] mergesort zs = merge xs ys where h = div (length zs) 2 xs = mergesort $ take h zs ys = mergesort $ drop h zs merge [] bs = bs merge as [] = as merge ls@(a:as) hs@(b:bs) = if a <= b then ...
null
https://raw.githubusercontent.com/neongreen/haskell-ex/345115444fdf370a43390fd942e2851b9b1963ad/week2/mergesort/vitcra/Main.hs
haskell
module Main where import System.Random mergesort :: Ord a => [a] -> [a] mergesort [] = [] mergesort [x] = [x] mergesort zs = merge xs ys where h = div (length zs) 2 xs = mergesort $ take h zs ys = mergesort $ drop h zs merge [] bs = bs merge as [] = as merge ls@(a:as) hs@(b:bs) = if a <= b then ...
13ba37807e822b738801fe27df013376c21266495d84c4192de48778037bbcb5
Mikolaj/horde-ad
TestMnistFCNN.hs
# LANGUAGE DataKinds , RankNTypes , TypeFamilies # module TestMnistFCNN ( testTrees, shortTestForCITrees, mnistTestCase2T, mnistTestCase2D ) where import Prelude import Control.Arrow ((&&&)) import Control.DeepSeq import Control.Monad (foldM, when) import qualified Data.Array.Dynamic...
null
https://raw.githubusercontent.com/Mikolaj/horde-ad/aaadb4fb4de3125eff5470bcee82fde56f22f217/test/common/TestMnistFCNN.hs
haskell
This is a very ugly and probably unavoidable boilerplate: with the correct list lengths (vector lengths can be fake) to bootstrap the adaptor machinery. Such boilerplate can be avoided only with shapely typed tensors and scalars or when not using adaptors. should not print, in principle. should not print, in pri...
# LANGUAGE DataKinds , RankNTypes , TypeFamilies # module TestMnistFCNN ( testTrees, shortTestForCITrees, mnistTestCase2T, mnistTestCase2D ) where import Prelude import Control.Arrow ((&&&)) import Control.DeepSeq import Control.Monad (foldM, when) import qualified Data.Array.Dynamic...
1d404617f006c78779e16d33065853e66b8020a8cd9d6f92ab280af5dbdcd657
phadej/vec
SafeCompat.hs
# LANGUAGE Trustworthy # module SafeCompat ( coerce, ) where import Data.Coerce (coerce)
null
https://raw.githubusercontent.com/phadej/vec/f1549d8ea2f1fc84cecc4970477c80a367c08885/vec/src/SafeCompat.hs
haskell
# LANGUAGE Trustworthy # module SafeCompat ( coerce, ) where import Data.Coerce (coerce)
be3375c299561125e7fa467c5d3f5f20f2199108305fe5262149aaaf223da60a
aptmcl/rosetta
autocad-native.rkt
#lang typed/racket/base/no-check (require "autocad/ac-com.rkt") (provide (all-from-out "autocad/ac-com.rkt"))
null
https://raw.githubusercontent.com/aptmcl/rosetta/38aeafd730f93edaec7474106e84dae6d8bc1261/autocad-native.rkt
racket
#lang typed/racket/base/no-check (require "autocad/ac-com.rkt") (provide (all-from-out "autocad/ac-com.rkt"))
d6dd1e4f5472089cd32f0da3969aa804b0720bb26a4ae0390a524174a9563111
SamirTalwar/advent-of-code
AOC_13_1.hs
{-# OPTIONS -Wall #-} import Data.Functor import qualified Data.Map.Strict as Map import Data.Set (Set) import qualified Data.Set as Set import Data.Text (Text) import Helpers.Function import Helpers.Grid (Grid) import qualified Helpers.Grid as Grid import Helpers.Parse import Helpers.Point (Point (..)) import Text.Pa...
null
https://raw.githubusercontent.com/SamirTalwar/advent-of-code/1d9ecad8fc9bc4f102b0239609ef2a52c11f4b20/2021/AOC_13_1.hs
haskell
# OPTIONS -Wall #
import Data.Functor import qualified Data.Map.Strict as Map import Data.Set (Set) import qualified Data.Set as Set import Data.Text (Text) import Helpers.Function import Helpers.Grid (Grid) import qualified Helpers.Grid as Grid import Helpers.Parse import Helpers.Point (Point (..)) import Text.Parsec data Mark = O | ...
ee380e08cbccb72712e67d21e07e0ae3c89aa94567249fd64211fe7989f39c6b
ocaml-flambda/flambda-backend
cmm.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocaml-flambda/flambda-backend/121bb5f26c0e844c5bf8eba2abb3c63110ee92d9/backend/cmm.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 Second intermediate language ( machine independent ) type machtype_component = Cmx_format.machtype_com...
d60c3e605d4ae2fa1190dafff9c10e1b02aae21d82f09c43d96dd7ea1db08d82
GaloisInc/saw-core
SharedTerm.hs
# LANGUAGE CPP # {-# LANGUAGE BangPatterns #-} # LANGUAGE FlexibleInstances # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE ParallelListComp # # LANGUAGE PatternGuards # # LANGUAGE TupleSections # # LANGUAGE TypeOperators # # LANGUAGE RecordWildCards # # LANGUAGE GeneralizedNewtypeDeriv...
null
https://raw.githubusercontent.com/GaloisInc/saw-core/6e32c659fdadfcf99d3d586e7dcda2b7bd9a0e10/saw-core/src/Verifier/SAW/SharedTerm.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE OverloadedStrings # * Shared terms * Re-exported pretty-printing functions ** Low-level generic term constructors ** Implicit versions of functions. ** Recursors and datatypes ** Modules ** Term construction *** Variables and constants *** Functions and function application...
# LANGUAGE CPP # # LANGUAGE FlexibleInstances # # LANGUAGE ScopedTypeVariables # # LANGUAGE ParallelListComp # # LANGUAGE PatternGuards # # LANGUAGE TupleSections # # LANGUAGE TypeOperators # # LANGUAGE RecordWildCards # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # # LANGUAGE LambdaCase # ...
6ad65bf58002003c2767e9cad9183b6c2f0c2bbf3dd9887b7d20727f56be8da4
jstolarek/dep-typed-wbl-heaps-hs
NoProofs.hs
----------------------------------------------------------------------- Copyright : 2014 , , Politechnika Łódzka -- -- -- -- License: See LICENSE file in root of the repo -- Repo address : -typed-wbl-heaps-hs -- ...
null
https://raw.githubusercontent.com/jstolarek/dep-typed-wbl-heaps-hs/0d6e354cbb71056a3eb9df9ebdc788182e137d1d/src/TwoPassMerge/NoProofs.hs
haskell
--------------------------------------------------------------------- -- License: See LICENSE file in root of the repo -- -- Basic implementation of weight-biased...
# LANGUAGE NoImplicitPrelude # module TwoPassMerge.NoProofs where import Basics.Nat import Basics data Heap :: * where Empty :: Heap Node :: Priority -> Rank -> Heap -> Heap -> Heap rank :: Heap -> Nat rank Empty = Zero rank (Node _ r _ _) = r singleton :: Priority -> Heap singleton p = Node p on...
759354faee21a5f37bc181ba7a0c74c8753134f42124098ca8fcff76e87ecada
rkaippully/webgear
Util.hs
-- | Copyright : ( c ) , 2021 -- License : MPL-2.0 -- Maintainer : -- -- Util types and functions related to authorization. -- module WebGear.Middlewares.Auth.Util ( AuthorizationHeader , authorizationHeader , Realm (..) , AuthToken (..) , respondUnauthorized ) where import Data...
null
https://raw.githubusercontent.com/rkaippully/webgear/db122125c35e5853251bfd68a0e5222fafd6cd49/webgear-server/src/WebGear/Middlewares/Auth/Util.hs
haskell
| License : MPL-2.0 Maintainer : Util types and functions related to authorization. | Header trait for authorization | The protection space for authentication
Copyright : ( c ) , 2021 module WebGear.Middlewares.Auth.Util ( AuthorizationHeader , authorizationHeader , Realm (..) , AuthToken (..) , respondUnauthorized ) where import Data.ByteString (ByteString, drop) import Data.ByteString.Char8 (break) import Data.CaseInsensitive (CI, mk, original) imp...
e18c88c5462d2d3d0d90e01b40a66d6e59e97f95885f29dfb208f53ef2dd5655
omelkonian/AlgoRhythm
UUHarmony.hs
{-# LANGUAGE FlexibleContexts #-} # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # module Grammar.UUHarmony ( uuHarmony ) where import qualified Grammar.Harmony as H import Grammar.Types import Music data Degree = -- terminals I | II | III | IV | V | ...
null
https://raw.githubusercontent.com/omelkonian/AlgoRhythm/fdc1ccbae0b3d8a7635b24d37716123aba2d6c11/AlgoRhythm/src/Grammar/UUHarmony.hs
haskell
# LANGUAGE FlexibleContexts # terminals non-terminals | Simplified version of 'TonalHarmony', based on the paper: | Expands modulations and intreprets degrees to chords.
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # module Grammar.UUHarmony ( uuHarmony ) where import qualified Grammar.Harmony as H import Grammar.Types import Music data Degree = I | II | III | IV | V | VI | VII | Piece | Phrase | Tonic | Dominant | SubDo...
fda8c22563a05b9bfddabeb0c33c73326d785a9cba79f2de9635366ba39aec7e
andreasabel/helf
Scoping.hs
{- | Translation from Concrete to Abstract and back -} # LANGUAGE MultiParamTypeClasses , FlexibleInstances , TypeSynonymInstances , UndecidableInstances # # LANGUAGE NondecreasingIndentation # module Scoping (Scope(..),Parse(..),ParseError,Print(..)) where import Prelude hiding (mapM,print) import Control.Applicat...
null
https://raw.githubusercontent.com/andreasabel/helf/b0f9a48598012af4ab8459b94cd0de90553b5b7b/src/Scoping.hs
haskell
| Translation from Concrete to Abstract and back * abstract scoping monad getIdent n = fst <$> getIdentAndFixity n * parsing C.GLet n e -> return <$> do e <- parse e n <- addDef n return $ A.GLet n e C.Atom a -> A.Atom <$> parse a which is then resolved into an A.Expr...
# LANGUAGE MultiParamTypeClasses , FlexibleInstances , TypeSynonymInstances , UndecidableInstances # # LANGUAGE NondecreasingIndentation # module Scoping (Scope(..),Parse(..),ParseError,Print(..)) where import Prelude hiding (mapM,print) import Control.Applicative import Control.Monad.State hiding (mapM) import Da...
b060db5765a8a8dcb57ce9777cd04152dac3f64751cb328582be3f634b0f078a
alex-gutev/static-dispatch
combin.lisp
;;;; combin.lisp ;;;; Copyright 2021 ;;;; ;;;; Permission is hereby granted, free of charge, to any person ;;;; obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without ;;;; restriction, including without limitation the rights to use, ;;;; copy, m...
null
https://raw.githubusercontent.com/alex-gutev/static-dispatch/ea48ae18aac1bcc15237e9941ccbaaa5621c7680/src/combin.lisp
lisp
combin.lisp Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell Software is furnished to do so, subject to the fol...
Copyright 2021 files ( the " Software " ) , to deal in the Software without copies of the Software , and to permit persons to whom the included in all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , MOP is not standardized and varies t...
aef3e0882ef1fc86eaa428db0b2fff0977c7efa9b904401af8f6621dbc6a70a3
basho/riak_cs
too_large_entity_test.erl
%% --------------------------------------------------------------------- %% Copyright ( c ) 2007 - 2013 Basho Technologies , Inc. All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License . Y...
null
https://raw.githubusercontent.com/basho/riak_cs/c0c1012d1c9c691c74c8c5d9f69d388f5047bcd2/riak_test/tests/too_large_entity_test.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 permiss...
Copyright ( c ) 2007 - 2013 Basho Technologies , Inc. All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY ...
4643c07b5f0015a0412ee76d691c0936fb9755cf0ffc3d6674adc666a6270e38
facebookincubator/hsthrift
RateLimiterMapTest.hs
Copyright ( c ) Facebook , Inc. and its affiliates . module RateLimiterMapTest where import Control.Concurrent import Control.Concurrent.Async import Control.Monad import Data.HashMap.Strict (HashMap) import qualified Data.HashMap.Strict as HashMap import Data.Text (Text, copy) import Data.RateLimiterMap import ...
null
https://raw.githubusercontent.com/facebookincubator/hsthrift/d3ff75d487e9d0c2904d18327373b603456e7a01/common/util/tests/RateLimiterMapTest.hs
haskell
Copyright ( c ) Facebook , Inc. and its affiliates . module RateLimiterMapTest where import Control.Concurrent import Control.Concurrent.Async import Control.Monad import Data.HashMap.Strict (HashMap) import qualified Data.HashMap.Strict as HashMap import Data.Text (Text, copy) import Data.RateLimiterMap import ...
6cdeae14a88b298a802b51e8a9183b99162603e0b8f3c3729b15f98b063aeb9f
OCamlPro/freeton_wallet
processManager.ml
(**************************************************************************) (* *) Copyright ( c ) 2021 OCamlPro SAS (* *) (* All right...
null
https://raw.githubusercontent.com/OCamlPro/freeton_wallet/4d29bbd5e4a3293b31848181943d83ea7c6abbcc/src/freeton_crawler_lib/processManager.ml
ocaml
************************************************************************ All rights reserved. This file is distributed u...
Copyright ( c ) 2021 OCamlPro SAS Public License version 2.1 , with the special exception on linking open Db_utils let kill pid signal = try Unix.kill pid signal with _ -> () let get_status ~kind = Printf.eprintf " get_status % S\n% ! " kind ; let> pid = Db.PID...
693bd05733f0bac97d22cbc2a91acc189c976793f4da82150c941c287de25b80
Psi-Prod/Mehari
router_impl.ml
module type S = sig module IO : Types.IO type route type rate_limiter type addr type handler = addr Handler.Make(IO).t type middleware = handler -> handler val no_middleware : middleware val pipeline : middleware list -> middleware val router : route list -> handler val route : ?rate_limit:ra...
null
https://raw.githubusercontent.com/Psi-Prod/Mehari/e57202510dd43fa1ce75695cf1ab8f8caa49f0f0/mehari/router_impl.ml
ocaml
Guaranteed by [Protocol.make_request]. Guaranteed by [Protocol.make_request].
module type S = sig module IO : Types.IO type route type rate_limiter type addr type handler = addr Handler.Make(IO).t type middleware = handler -> handler val no_middleware : middleware val pipeline : middleware list -> middleware val router : route list -> handler val route : ?rate_limit:ra...
af62130ec7b11b79e68435173eb96f2283060745a4ff910e50c316cb96f66291
ucsd-progsys/nate
pparse.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet Cri...
null
https://raw.githubusercontent.com/ucsd-progsys/nate/8b1267cd8b10283d8bc239d16a28c654a4cb8942/eval/sherrloc/easyocaml%2B%2B/driver/pparse.ml
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 2002 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ I d : pparse.ml , v 1.3 2004/06/16 16:58:4...
1c159c91389b25cb2c8edeececd89f5168b3f42cb6fa680758e0a95d513df64a
input-output-hk/project-icarus-importer
Logic.hs
{-# LANGUAGE RankNTypes #-} | Different logic depending on " MonadCede " . module Pos.Delegation.Cede.Logic ( getPskChain , detectCycleOnAddition , dlgLastPsk , dlgVerifyHeader , CheckForCycle(..) , dlgVerifyPskHeavy ) where import Universum impo...
null
https://raw.githubusercontent.com/input-output-hk/project-icarus-importer/36342f277bcb7f1902e677a02d1ce93e4cf224f0/delegation/src/Pos/Delegation/Cede/Logic.hs
haskell
# LANGUAGE RankNTypes # | Given an issuer, retrieves all certificate chains starting in issuer. This function performs a series of sequential db reads so it must be used under the shared lock. See doc for 'getPskChain'. This function also stops traversal if encounters anyone in 'toIgnore' set. This may be used to...
| Different logic depending on " MonadCede " . module Pos.Delegation.Cede.Logic ( getPskChain , detectCycleOnAddition , dlgLastPsk , dlgVerifyHeader , CheckForCycle(..) , dlgVerifyPskHeavy ) where import Universum import Control.Lens (u...
934f767310388c7ee2e3d2a1855c4849d0945d29c262be484a7a0d8929b5d2b8
sealchain-project/sealchain
Keysets.hs
{-# LANGUAGE OverloadedStrings #-} -- | Module : Pact . Native . Keysets Copyright : ( C ) 2016 -- License : BSD-style (see the file LICENSE) Maintainer : < > -- -- Builtins for working with keysets. -- module Pact.Native.Keysets where import Control.Lens import Pact.Eval import Pac...
null
https://raw.githubusercontent.com/sealchain-project/sealchain/e97b4bac865fb147979cb14723a12c716a62e51e/pact/src/Pact/Native/Keysets.hs
haskell
# LANGUAGE OverloadedStrings # | License : BSD-style (see the file LICENSE) Builtins for working with keysets.
Module : Pact . Native . Keysets Copyright : ( C ) 2016 Maintainer : < > module Pact.Native.Keysets where import Control.Lens import Pact.Eval import Pact.Native.Internal import Pact.Types.Runtime readKeysetDef :: NativeDef readKeysetDef = defRNative "read-keyset" readKeySet (funType ...
53befbb4edc6c078a3e60a9c6c532c878f89733396bcc0bf6cd1e5369c075c36
ijvcms/chuanqi_dev
arena_rank_db.erl
%%%------------------------------------------------------------------- %%% @author tuhujia ( C ) 2015 , < COMPANY > %%% @doc %%% %%% @end Created : 24 . 八月 2015 17:30 %%%------------------------------------------------------------------- -module(arena_rank_db). -include("common.hrl"). -include("cache.hrl"). %% A...
null
https://raw.githubusercontent.com/ijvcms/chuanqi_dev/7742184bded15f25be761c4f2d78834249d78097/server/trunk/server/src/business/arena/arena_rank_db.erl
erlang
------------------------------------------------------------------- @author tuhujia @doc @end ------------------------------------------------------------------- API 最大排名数 ==================================================================== API functions ========================================================...
( C ) 2015 , < COMPANY > Created : 24 . 八月 2015 17:30 -module(arena_rank_db). -include("common.hrl"). -include("cache.hrl"). -export([ select_all/0, select_row/1, insert/1, update/2, delete/1 ]). -define(MAX_RANK, 10000). select_all() -> case db:select_all(player_arena_rank, record_info(fields, db_arena_...
3ab94b6fae915072be65f304a7bc41674ba02f015ea0e6a9e9781a6fabdb95a5
turquoise-hexagon/euler
solution.scm
(import (euler)) (define (choose a b) (/ (factorial a) (* (factorial b) (factorial (- a b))))) (define (solve n) (choose (* 2 n) n)) (let ((_ (solve 20))) (print _) (assert (= _ 137846528820)))
null
https://raw.githubusercontent.com/turquoise-hexagon/euler/592c5f4f45fe8e8b82102be9fe11b3b1134d98fc/src/015/solution.scm
scheme
(import (euler)) (define (choose a b) (/ (factorial a) (* (factorial b) (factorial (- a b))))) (define (solve n) (choose (* 2 n) n)) (let ((_ (solve 20))) (print _) (assert (= _ 137846528820)))
767761ea6dc9afbc7e419cbf4d06b324540be11b5e8f7ae15439a90e31b1698a
ComputeSoftware/gcp-api
request.clj
(ns compute.gcp.impl.request (:require [clojure.string :as str] [clojure.data.json :as json] [clojure.spec.alpha :as s] [cognitect.anomalies :as anom] [compute.gcp.descriptor :as descriptor] [compute.gcp.credentials :as creds]) (:import (com.google.api.client.http UriTemplate))) (def curly...
null
https://raw.githubusercontent.com/ComputeSoftware/gcp-api/24204927554a3e3b69ef2917f139b53f05def52e/src/compute/gcp/impl/request.clj
clojure
TODO: Could remove duplicated req-param keys from the body here
(ns compute.gcp.impl.request (:require [clojure.string :as str] [clojure.data.json :as json] [clojure.spec.alpha :as s] [cognitect.anomalies :as anom] [compute.gcp.descriptor :as descriptor] [compute.gcp.credentials :as creds]) (:import (com.google.api.client.http UriTemplate))) (def curly...
c0aaf59132e2b7fcfc8462e1bad54e6237ee7fa49b7f5a0273c714da276960c5
chr15m/slingcode
slingcode-bootleg.clj
(let [template (html "../build/index.html") css (slurp "../build/style.min.css") logo (slurp "../build/logo-b64-href.txt") js (slurp "../build/js/main.js")] (-> template (enlive/at [:link#style] (enlive/substitute (convert-to [:style css] :hickory))) (enlive/at [:link.rm] nil) (enl...
null
https://raw.githubusercontent.com/chr15m/slingcode/aef42bf097aef82f2eda297f4fe63ddd2763ff83/src/slingcode-bootleg.clj
clojure
(let [template (html "../build/index.html") css (slurp "../build/style.min.css") logo (slurp "../build/logo-b64-href.txt") js (slurp "../build/js/main.js")] (-> template (enlive/at [:link#style] (enlive/substitute (convert-to [:style css] :hickory))) (enlive/at [:link.rm] nil) (enl...
0a71b8c9692d5971004e5d779f1a8f18fd4c6a785a6ddf16efc6a7d80223cdaa
GracielaUSB/graciela
Error.hs
# LANGUAGE InstanceSigs # {-# LANGUAGE NamedFieldPuns #-} # LANGUAGE OverloadedLists # module Language.Graciela.Error where -------------------------------------------------------------------------------- import Language.Graciela.AST.Expression (Expression (expType)) import Language.Graciela.A...
null
https://raw.githubusercontent.com/GracielaUSB/graciela/db69c8b225d6172aaa0ff90a67f4a997e4d8a0c6/src/Haskell/Language/Graciela/Error.hs
haskell
# LANGUAGE NamedFieldPuns # ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Unused, just to remove the class warning Modify the ...
# LANGUAGE InstanceSigs # # LANGUAGE OverloadedLists # module Language.Graciela.Error where import Language.Graciela.AST.Expression (Expression (expType)) import Language.Graciela.AST.Type (Type (..)) import Language.Graciela.Common import Language.Graciela.Token impor...
8ab17a7ccf24b4e3aa408b98a753139bca0eb137ef83b6459fe83c1d269256c5
JacquesCarette/Drasil
ODEs.hs
module Drasil.NoPCM.ODEs (noPCMODEOpts, noPCMODEInfo) where import Language.Drasil (ExprC(sy),LiteralC(exactDbl), InitialValueProblem, makeAIVP) import Language.Drasil.Code (odeInfo', odeOptions, quantvar, ODEInfo, ODEMethod(RK45), ODEOptions) import Drasil.SWHS.Unitals (tauW, tempC, tempInit, timeFinal, timeStep, a...
null
https://raw.githubusercontent.com/JacquesCarette/Drasil/ec388a0e1690c19f45dd5c166a2796870147edf0/code/drasil-example/nopcm/lib/Drasil/NoPCM/ODEs.hs
haskell
module Drasil.NoPCM.ODEs (noPCMODEOpts, noPCMODEInfo) where import Language.Drasil (ExprC(sy),LiteralC(exactDbl), InitialValueProblem, makeAIVP) import Language.Drasil.Code (odeInfo', odeOptions, quantvar, ODEInfo, ODEMethod(RK45), ODEOptions) import Drasil.SWHS.Unitals (tauW, tempC, tempInit, timeFinal, timeStep, a...
0e24e2479efa6f63ae95fe3db8c4090c9c7b253b52fce0e7acde2615e51848b4
nikodemus/SBCL
c-call.lisp
;;;; VOPs and other machine-specific support routines for call-out to C This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the ;;;; public domain. The so...
null
https://raw.githubusercontent.com/nikodemus/SBCL/3c11847d1e12db89b24a7887b18a137c45ed4661/src/compiler/ppc/c-call.lisp
lisp
VOPs and other machine-specific support routines for call-out to C more information. public domain. The software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information. Return the number of bytes needed for the current non-descriptor backpoint...
This software is part of the SBCL system . See the README file for This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the (in-package "SB!VM") stack frame . Non - descriptor stack frames must be multiples of 16 bytes under the PPC SVr4 ABI ...
d576d9493b281f9228d7243cac85907a196e11efa18d42f8bb59d3c87e6e4d87
BillHallahan/G2
Expr.hs
{-# LANGUAGE OverloadedStrings #-} module Expr (exprTests) where import G2.Language import qualified G2.Language.ExprEnv as E import Test.Tasty import Test.Tasty.HUnit exprTests :: TestTree exprTests = testGroup "Expr" [ testCase "Eta Expand To" $ assertBool "Eta Expand To failed" etaExpandTo1 , testCas...
null
https://raw.githubusercontent.com/BillHallahan/G2/4d287df8ed7ba13c06d96d4911b9eedf870e80a1/tests/Expr.hs
haskell
# LANGUAGE OverloadedStrings # DataCons Types
module Expr (exprTests) where import G2.Language import qualified G2.Language.ExprEnv as E import Test.Tasty import Test.Tasty.HUnit exprTests :: TestTree exprTests = testGroup "Expr" [ testCase "Eta Expand To" $ assertBool "Eta Expand To failed" etaExpandTo1 , testCase "Eta Expand To" $ assertBool "Eta...
feba8244bf06139894940c27c03ff83f0d4b6b636a5f531fc3e4a3c89dc7c2ad
thheller/shadow-cljs
socket_repl.clj
(ns shadow.cljs.devtools.server.socket-repl (:require [clojure.main :as m] [clojure.core.server :as srv] [shadow.jvm-log :as log]) (:import java.net.ServerSocket (java.io BufferedWriter OutputStreamWriter InputStreamReader) (java.net InetAddress SocketException) (clojure...
null
https://raw.githubusercontent.com/thheller/shadow-cljs/ba0a02aec050c6bc8db1932916009400f99d3cce/src/main/shadow/cljs/devtools/server/socket_repl.clj
clojure
FIXME: inf-clojure checks when there is a space between \n and => need :repl/quit support, so not just the default read writing to lost connection throws se try to close but ignore all errors FIXME: could probably just use that, it provides all the required hooks nil returns loopback
(ns shadow.cljs.devtools.server.socket-repl (:require [clojure.main :as m] [clojure.core.server :as srv] [shadow.jvm-log :as log]) (:import java.net.ServerSocket (java.io BufferedWriter OutputStreamWriter InputStreamReader) (java.net InetAddress SocketException) (clojure...
0e3b0aabecaa8a04d88b30406b93e1adf6b5a155e46b7b76ec03b66a507e22bb
clojure-interop/aws-api
core.clj
(ns core (:refer-clojure :only [require comment defn ->]) (:import )) (require '[com.amazonaws.services.rdsdata.core])
null
https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.services.rdsdata/src/core.clj
clojure
(ns core (:refer-clojure :only [require comment defn ->]) (:import )) (require '[com.amazonaws.services.rdsdata.core])
651d4728fc44e3bafabbfcd52cf7be7e9bb7d2593164c90fc9beee715846c27c
mathematical-systems/clml
utilities.lisp
;;; -*- mode: lisp; syntax: common-lisp -*- , 2008 (in-package :distribution) (defun sqr (x) (* x x)) ;; use general version of :rand #+ignore (defun unit-random () "A random number in the range \(0, 1]." (let ((rand (random 1.0d0))) (if (zerop rand) 1.0d0 rand))) (defun binomial (n k) (cond ((= k ...
null
https://raw.githubusercontent.com/mathematical-systems/clml/918e41e67ee2a8102c55a84b4e6e85bbdde933f5/distribution/utilities.lisp
lisp
-*- mode: lisp; syntax: common-lisp -*- use general version of :rand "If PRED is true, swap the values of every pair in VAR-LISTS, and execute BODY in this environment. Call FN on the result, if PRED was true. E.g. \(CONDITIONAL-SWAP-LET T #'1+ \(\(A B) \(C D)) ..BODY..) would swap the values of A and B, and C ...
, 2008 (in-package :distribution) (defun sqr (x) (* x x)) #+ignore (defun unit-random () "A random number in the range \(0, 1]." (let ((rand (random 1.0d0))) (if (zerop rand) 1.0d0 rand))) (defun binomial (n k) (cond ((= k 0) 1) ((> k n) 0) (t (* (/ n k) (binomial (1- n) (1- k)))))) (defun linea...
077559ea3950431d43cb02b6276d63de61dda1134c0d57be795be517555ae755
swift-nav/wolf
File.hs
# LANGUAGE FlexibleContexts # # LANGUAGE NoImplicitPrelude # -- | Files, directories, and encoding / decoding file functions. -- module Network.AWS.Wolf.File ( dataDirectory , storeDirectory , inputDirectory , outputDirectory , metaDirectory , writeText , readText , writeJson , writeYaml , readYa...
null
https://raw.githubusercontent.com/swift-nav/wolf/13319777fbd820b73082d4d97269265955f6e252/src/Network/AWS/Wolf/File.hs
haskell
| Files, directories, and encoding / decoding file functions. | Determine path to data directory and create it. | Determine path to store directory and create it. | Determine path to store input directory and create it. | Determine path to store output directory and create it. | Determine path to store input...
# LANGUAGE FlexibleContexts # # LANGUAGE NoImplicitPrelude # module Network.AWS.Wolf.File ( dataDirectory , storeDirectory , inputDirectory , outputDirectory , metaDirectory , writeText , readText , writeJson , writeYaml , readYaml , withCurrentWorkDirectory ) where import Data.Aes...
1a9ade45215a9c9c0ed6490c3077d066a4800039f9164afd01764a4b930e1009
ferdinand-beyer/init
discovery.clj
(ns init.discovery (:require [clojure.string :as str] [init.config :as config] [init.component :as component] [init.meta :as meta]) (:import [java.net JarURLConnection URL] [java.nio.file FileSystem FileSystems FileVisitResult ...
null
https://raw.githubusercontent.com/ferdinand-beyer/init/473f8d2d27aaa7c21e89fe7dac1080995e554019/src/init/discovery.clj
clojure
CLASSPATH SCANNING SERVICE REGISTRY
(ns init.discovery (:require [clojure.string :as str] [init.config :as config] [init.component :as component] [init.meta :as meta]) (:import [java.net JarURLConnection URL] [java.nio.file FileSystem FileSystems FileVisitResult ...
01ab693134c3d7394e5be806dd1d8cee5d888552ec34583b8344b0703f7e9a13
samcoy3/advent-of-code-template
Day14.hs
module Days.Day14 (runDay) where {- ORMOLU_DISABLE -} import Data.List import Data.Map.Strict (Map) import qualified Data.Map.Strict as Map import Data.Maybe import Data.Set (Set) import qualified Data.Set as Set import Data.Vector (Vector) import qualified Data.Vector as Vec import qualified Util.Util as U import qu...
null
https://raw.githubusercontent.com/samcoy3/advent-of-code-template/ddc27cfd7ca36d6ebf0df2a2297347d02ee0f1a6/src/Days/Day14.hs
haskell
ORMOLU_DISABLE ---------- PARSER ------------ -------- TYPES ------------ ---------- PART A ------------ ---------- PART B ------------
module Days.Day14 (runDay) where import Data.List import Data.Map.Strict (Map) import qualified Data.Map.Strict as Map import Data.Maybe import Data.Set (Set) import qualified Data.Set as Set import Data.Vector (Vector) import qualified Data.Vector as Vec import qualified Util.Util as U import qualified Program.RunDa...
608bbd2749f978a233563b5af8f4086151084389f116cee804e52b30a4652b2c
amnh/poy5
test.ml
(***********************************************************************) (* *) (* The Caml/MPI interface *) (* *) , projet ...
null
https://raw.githubusercontent.com/amnh/poy5/da563a2339d3fa9c0110ae86cc35fad576f728ab/src/ocamlmpi/test.ml
ocaml
********************************************************************* The Caml/MPI interface ...
, projet Cristal , INRIA Rocquencourt Copyright 1998 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the GNU Library General Public License , with $ I d : test.ml 2 2004 - 06 - 22 15:4...
cbb5bc457cb6bbb48bb25b863de00c0e5ae50cf4ada654a640b51758557cdb1e
dbuenzli/hc
example.mli
--------------------------------------------------------------------------- Copyright ( c ) 2021 The hc programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) 20...
null
https://raw.githubusercontent.com/dbuenzli/hc/9890fe71cfab0b4d5e702d08459120d71b102a35/examples/example.mli
ocaml
--------------------------------------------------------------------------- Copyright ( c ) 2021 The hc programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) 20...
cf6ad5e7160eddd7d4012d69be8bcfa08ea2bdbb0e0b59d7582f54b5fb20f31c
Mon-Ouie/blocky
keys.lisp
;;; keys.lisp --- key symbols for sdl/blocky Copyright ( C ) 2010 Author : < > ;; Keywords: ;; This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ...
null
https://raw.githubusercontent.com/Mon-Ouie/blocky/ebc4f4309a15603fb1ef3153050748c17a44e300/keys.lisp
lisp
keys.lisp --- key symbols for sdl/blocky Keywords: This program is free software; you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FO...
Copyright ( C ) 2010 Author : < > it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License (in-package :blocky) (defparameter *key-identifiers* '((:...
9f71fdf639cc9fa38e6e01f9ad02bb3085bb0f399babcd4979609c8eb0084b99
tweag/funflow2
Config.hs
# LANGUAGE DataKinds # {-# LANGUAGE GADTs #-} {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # module Funflow.Config where import Control.Monad.IO.Class (MonadIO, liftIO) import Data.ByteString.UTF8 as BSU import qualified Data.HashMap.Strict as HashMap import Data.HashSet (HashSet) import qualifie...
null
https://raw.githubusercontent.com/tweag/funflow2/34e2b268486174c70b9bd14b8fa2248b3f5a809f/funflow/src/Funflow/Config.hs
haskell
# LANGUAGE GADTs # # LANGUAGE OverloadedStrings # text anyways. environment variables are expected to only contain a single config value, while file config maps are expected to contain a tree of values (since they are coming from a YAML file). Config coming from a config file needs to get parsed using the default ...
# LANGUAGE DataKinds # # LANGUAGE ScopedTypeVariables # module Funflow.Config where import Control.Monad.IO.Class (MonadIO, liftIO) import Data.ByteString.UTF8 as BSU import qualified Data.HashMap.Strict as HashMap import Data.HashSet (HashSet) import qualified Data.HashSet as HashSet import Data.Text (Text, unpack) ...
496c71de02fc445c2c20cf9feaef0676e4a59c30e2b060c9136bd383389d8612
dave-tucker/ocaml-nlp
pkg.ml
#!/usr/bin/env ocaml #use "topfind" #require "topkg" open Topkg let () = Pkg.describe "nlp" @@ fun c -> Ok [ Pkg.mllib "src/nlp.mllib";]
null
https://raw.githubusercontent.com/dave-tucker/ocaml-nlp/2b0e5c90a2f39261b13a4812d1873282ad232aab/pkg/pkg.ml
ocaml
#!/usr/bin/env ocaml #use "topfind" #require "topkg" open Topkg let () = Pkg.describe "nlp" @@ fun c -> Ok [ Pkg.mllib "src/nlp.mllib";]
e1a106e122c9e9d43473f74754f1a24b3f6f3506dafb0fb2fb382b2aa461b9f2
NorfairKing/tickler
GetItem.hs
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE MultiParamTypeClasses # # LANGUAGE RecordWildCards # module Tickler.Server.Handler.Protected.GetItem ( serveGetItem, ) where import Database.Persist import Import import Servant import Tickler.API import Tickler.Server.Handler.Utils import Tickler.Se...
null
https://raw.githubusercontent.com/NorfairKing/tickler/71c6aec471d095fe2357e135bed90a92619de393/tickler-server/src/Tickler/Server/Handler/Protected/GetItem.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE MultiParamTypeClasses # # LANGUAGE RecordWildCards # module Tickler.Server.Handler.Protected.GetItem ( serveGetItem, ) where import Database.Persist import Import import Servant import Tickler.API import Tickler.Server.Handler.Utils import Tickler.Se...
236e4f1b498bfed7cb5fbbdee03b260b70ef89853a7b9930b61895cc695d57ed
bjorng/wings
wpc_inset.erl
%% %% wpc_inset.erl -- %% %% Face|Inset includes the commands: Inset, Inset Region, and Offset Region. %% Copyright ( c ) 2008 - 2011 . %% %% See the file "license.terms" for information on usage and redistribution %% of this file, and for a DISCLAIMER OF ALL WARRANTIES. %% %% -module(wpc_inset). -export([ini...
null
https://raw.githubusercontent.com/bjorng/wings/1e2c2d62e93a98c263b167c7a41f8611e0ff08cd/plugins_src/commands/wpc_inset.erl
erlang
wpc_inset.erl -- Face|Inset includes the commands: Inset, Inset Region, and Offset Region. See the file "license.terms" for information on usage and redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. Menus Commands Setup Start by Extruding the selection OffSet Regions Inset Regions...
Copyright ( c ) 2008 - 2011 . -module(wpc_inset). -export([init/0,menu/2,command/2]). For wpc_greebles -include_lib("wings/src/wings.hrl"). init() -> true. menu({face},Menu) -> lists:reverse(parse(Menu, [], false)); menu(_,Menu) -> Menu. parse([], NewMenu, true) -> NewMenu; parse([], NewMen...
609f03a60a630b938ce6f9f3d07b777e72e0cc3792d5dec08baa81fa7740b9da
mirleft/ocaml-tls
x509_lwt.mli
(** X.509 certificate handling using Lwt. *) (** [private_of_pems ~cert ~priv_key] is [priv], after reading the private key and certificate chain from the given PEM-encoded files. *) val private_of_pems : cert:Lwt_io.file_name -> priv_key:Lwt_io.file_name -> Tls.Config.certchain Lwt.t (** [certs_of_pem file] ...
null
https://raw.githubusercontent.com/mirleft/ocaml-tls/3b7736f61c684bb11170e444126fea7df1ec7d69/lwt/x509_lwt.mli
ocaml
* X.509 certificate handling using Lwt. * [private_of_pems ~cert ~priv_key] is [priv], after reading the private key and certificate chain from the given PEM-encoded files. * [certs_of_pem file] is [certificates], which are read from the PEM-encoded [file]. * [authenticator methods] constructs an [authen...
val private_of_pems : cert:Lwt_io.file_name -> priv_key:Lwt_io.file_name -> Tls.Config.certchain Lwt.t val certs_of_pem : Lwt_io.file_name -> X509.Certificate.t list Lwt.t * [ ] is [ certificates ] , which are read from all PEM - encoded files in [ dir ] . PEM-encoded files in [dir]. *) val certs_of_...
8ccadaa4ed7f0cee3f6826620a755bab2364f8cedf96b30dee6f7fc482d156a5
fallen-icarus/cardano-swaps
CloseAddress.hs
{-# LANGUAGE DataKinds #-} {-# LANGUAGE FlexibleContexts #-} # LANGUAGE NamedFieldPuns # # LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeApplications # # L...
null
https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/2e7024d253e5f30bb312fabd511da8fea39a93ef/test/Test/CloseAddress.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE OverloadedStrings # # LANGUAGE RecordWildCards # # LANGUAGE TypeOperators # # LANGUAGE NumericUnderscores # # LANGUAGE DeriveAnyClass # ----------------------------------------------- Close Scenarios ------------------------...
# LANGUAGE NamedFieldPuns # # LANGUAGE NoImplicitPrelude # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # LANGUAGE DeriveGeneric # module Test.CloseAddress ( tests, testTrace ) where import Prelude (IO,repeat...
7fa53045d5ff658c52f7b9d66802e721081529ac8a0f871639d8b559d37f4468
jwiegley/notes
wrapper.hs
import qualified Data.ByteString.Lazy.Char8 as BS import System.Environment main = do args <- getArgs BS.putStr $ BS.intercalate (BS.pack "\0") $ filter (not . BS.isPrefixOf (BS.pack "-Wl,-rpath")) $ map BS.pack args
null
https://raw.githubusercontent.com/jwiegley/notes/24574b02bfd869845faa1521854f90e4e8bf5e9a/haskell/wrapper.hs
haskell
import qualified Data.ByteString.Lazy.Char8 as BS import System.Environment main = do args <- getArgs BS.putStr $ BS.intercalate (BS.pack "\0") $ filter (not . BS.isPrefixOf (BS.pack "-Wl,-rpath")) $ map BS.pack args
d5523256d5ca912504e57461cecca837fff2bb2adb5d315876fedfc1dfd4e1fe
juxt/jinx
validate.cljc
Copyright © 2019 , JUXT LTD . (ns juxt.jinx.alpha.validate (:refer-clojure :exclude [number? integer? array? object?]) #?@ (:clj [(:require [cheshire.core :as cheshire] [clojure.string :as str] [juxt.jinx.alpha.regex :as regex] [juxt.jinx.alpha.resolve :as resolv])] :cljs [...
null
https://raw.githubusercontent.com/juxt/jinx/48c889486e5606e39144043946063803ad6effa8/src/juxt/jinx/alpha/validate.cljc
clojure
detect "high surrogate" "Since many subschemas can be applicable to any single location, annotation keywords need to specify any unusual handling of multiple applicable occurrences of the keyword with different values." "The default behavior is simply to collect all values." "When multiple occurrences of this ke...
Copyright © 2019 , JUXT LTD . (ns juxt.jinx.alpha.validate (:refer-clojure :exclude [number? integer? array? object?]) #?@ (:clj [(:require [cheshire.core :as cheshire] [clojure.string :as str] [juxt.jinx.alpha.regex :as regex] [juxt.jinx.alpha.resolve :as resolv])] :cljs [...
f0c1d541327a8a18bb3fa0a511e011f5f6a8f7c2ec25156461f3de32bc425b2a
max-au/lambda
lambda_channel.erl
%% @doc %% Lambda channel. %% Drawing analogy, lambda channel is the TCP connection. %% Lambda server accepts a new connection, spawning a new %% lambda channel (server side). From the client side, lambda_plb %% keeps track of multiple open connections. %% Channel can be in one of two states : %% * open (tokens > 0...
null
https://raw.githubusercontent.com/max-au/lambda/53d9ab894156f5b15bbf1ad774449bb877588144/src/lambda_channel.erl
erlang
@doc Lambda channel. Drawing analogy, lambda channel is the TCP connection. Lambda server accepts a new connection, spawning a new lambda channel (server side). From the client side, lambda_plb keeps track of multiple open connections. * open (tokens > 0). In this state channel can receive requests (jobs/s...
Channel can be in one of two states : * channel - > plb send demand to client * channel - > plb / server : terminate -module(lambda_channel). -author(""). -export([ start_link/2, start_link/3 ]). -behaviour(gen_server). -export([ init/1, handle_call/3, handle_cast/2, handle_info/2 ]). ...
9908b15e92532428a69cdac6e64bcedb3f55c3c04d0d1524653fda57fbf28a85
fpottier/stores
Stores.ml
(***************************************************************************) (* *) (* UnionFind *) (* *) ...
null
https://raw.githubusercontent.com/fpottier/stores/0752321be1ba6c355a7008ebb210bbd91a77e001/src/Stores.ml
ocaml
************************************************************************* UnionFind ...
, Paris . All rights reserved . This file is distributed under the terms of the GNU Library General Public License version 2 , with a include Store module StoreMap = StoreMap module StoreRef = StoreRef module StoreTransactionalRef = StoreTransactionalRef ...
45449921d582b5a1d29bd289d2cd57e6e67d43ff12b56ef429c68ee59dc25026
savonet/ocaml-posix
gen_types_c.ml
module Types = Posix_base.Generators.Types (struct module Types = Posix_socket_unix_types.Def let c_headers = {| #include <sys/socket.h> #include <sys/un.h> #include <netinet/in.h> |} end) let () = Types.gen ()
null
https://raw.githubusercontent.com/savonet/ocaml-posix/d46d011de16154b34324eae6ee6e7010138cf4af/posix-socket-unix/src/generator/gen_types_c.ml
ocaml
module Types = Posix_base.Generators.Types (struct module Types = Posix_socket_unix_types.Def let c_headers = {| #include <sys/socket.h> #include <sys/un.h> #include <netinet/in.h> |} end) let () = Types.gen ()
5d419fd6af1d634da2c282090b7601150718036212afd1aac133055275011944
NetComposer/nklib
nklib_parse_trans_vsn.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2019 . All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License . You may obtain %% a copy of the...
null
https://raw.githubusercontent.com/NetComposer/nklib/1f29f8f566586618651e4680dcc488f2dc11ff5c/src/nklib_parse_trans_vsn.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 ) 2019 . All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY -module(nklib_parse_trans_vs...
ceb6f6c80d6c795254b7853099925467128bdf4e1318f02b4be8cdf10ea65365
pbaille/binaural-beats
core.cljs
(ns audio.core (:require [cljs-bach.synthesis :as s] [audio.noises :as noises] [utils.core :as u])) ;; aliases -------------------------------------- (defn linear-to [x v at] (.linearRampToValueAtTime x v at)) (defn exp-to [x v at] (.exponentialRampToValueAtTime x v at)) (defn set-val-...
null
https://raw.githubusercontent.com/pbaille/binaural-beats/628a2ed6999bd04647411be26b255fa4d5f13c95/src/audio/core.cljs
clojure
aliases -------------------------------------- custom osc ------------------------------------------- nodes ------------------------------------------- noise nodes --------------------------------------------- synth -------------------------------------------------- => eq -----------------------------------------...
(ns audio.core (:require [cljs-bach.synthesis :as s] [audio.noises :as noises] [utils.core :as u])) (defn linear-to [x v at] (.linearRampToValueAtTime x v at)) (defn exp-to [x v at] (.exponentialRampToValueAtTime x v at)) (defn set-val-at [x v at] (.setValueAtTime x v at)) (defn tl...
ff7886d6a8a479ad6aa9aeb22f5da388a09fd38ab41b1b3ceab3669738b23416
fourmolu/fourmolu
output-LetMixed-InNoSpace-indent=4.hs
{-- should be the same in every option --} let_oneline_empty = let in 10 let_oneline_single = let a = 1 in a + 2 let_oneline_multi = let a = 1; b = 2 in a + b {-- pure let expressions --} let_empty = let in 10 let_single = let a = 1 in a + 2 let_single_sig = let a :: Int ...
null
https://raw.githubusercontent.com/fourmolu/fourmolu/f47860f01cb3cac3b973c5df6ecbae48bbb4c295/data/fourmolu/let-style/output-LetMixed-InNoSpace-indent%3D4.hs
haskell
- should be the same in every option - - pure let expressions - a comment - do-block - - list comprehension -
let_oneline_empty = let in 10 let_oneline_single = let a = 1 in a + 2 let_oneline_multi = let a = 1; b = 2 in a + b let_empty = let in 10 let_single = let a = 1 in a + 2 let_single_sig = let a :: Int a = 1 in a + 2 let_single_comment = a = 1 ...
1e77ea01ced382a956adf3d587241e55c4d705ecdd470e54b66a4bfa25c80a70
input-output-hk/ekg-forward
Type.hs
# LANGUAGE DataKinds # # LANGUAGE EmptyCase # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE PolyKinds # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # -- | The type of the EKG forwarding/accepting protocol. -- -- Since we are using a typed protocol framework this is in some sense /the/ -...
null
https://raw.githubusercontent.com/input-output-hk/ekg-forward/aa2315f2684e043ff4e970b65cbac1a8be7c2016/src/System/Metrics/Protocol/Type.hs
haskell
# LANGUAGE GADTs # | The type of the EKG forwarding/accepting protocol. Since we are using a typed protocol framework this is in some sense /the/ definition of the protocol: what is allowed and what is not allowed. | A kind to identify our protocol, and the types of the states in the state transition diagram of t...
# LANGUAGE DataKinds # # LANGUAGE EmptyCase # # LANGUAGE FlexibleInstances # # LANGUAGE PolyKinds # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # module System.Metrics.Protocol.Type ( EKGForward (..) , Message (..) , ClientHasAgency (..) , ServerHasAgency (..) , NobodyHasAgency (..) ) where ...
fbf4af9faa7fc245c7dde78fd7b97f688b2ced5b435f8310f8b3f8823961898d
victornicolet/parsynt
FpUtils.ml
open Cil open SketchTypes
null
https://raw.githubusercontent.com/victornicolet/parsynt/96b3bc11761720daa3df515c33e5101a01635843/src/fpgen/FpUtils.ml
ocaml
open Cil open SketchTypes
838ca7aa65eb3e65c26a5a17b56e5e4558b991aafee44760ad9ac61a3912ab56
fizruk/rzk
Unification.hs
{-# LANGUAGE CPP #-} # LANGUAGE DeriveFoldable # {-# LANGUAGE DeriveFunctor #-} # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE FunctionalDependencies # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE KindSignatures ...
null
https://raw.githubusercontent.com/fizruk/rzk/5225ce56fde1ecee59da395f3750f241593ad8ef/rzk/src/Rzk/Free/Syntax/FreeScoped/Unification.hs
haskell
# LANGUAGE CPP # # LANGUAGE DeriveFunctor # # LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # # LANGUAGE TemplateHaskell # | FIXME unsafeTraceConstraint' "[simplify]" (t1, t2) $ unsafeTraceConstraints' "[unify]" cs $ do
# LANGUAGE DeriveFoldable # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE FunctionalDependencies # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE KindSignatures # # LANGUAGE LambdaCase # # LANGUAGE MultiParamTypeClasses ...
903c7aed200876b93cb6971f158c2fbad853e5810764630e3b1761661e1da870
swarm-game/swarm
TestUtil.hs
{-# LANGUAGE BangPatterns #-} {-# LANGUAGE OverloadedStrings #-} -- | SPDX - License - Identifier : BSD-3 - Clause -- -- Utility functions module TestUtil where import Control.Lens (Ixed (ix), to, use, (&), (.~), (^.), (^?)) import Control.Monad.Except import Control.Monad.State import Data.Text (Text) import Data....
null
https://raw.githubusercontent.com/swarm-game/swarm/affc8668b77b7e85d3d23c182a5159df36d17306/test/unit/TestUtil.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE OverloadedStrings # | Utility functions
SPDX - License - Identifier : BSD-3 - Clause module TestUtil where import Control.Lens (Ixed (ix), to, use, (&), (.~), (^.), (^?)) import Control.Monad.Except import Control.Monad.State import Data.Text (Text) import Data.Text qualified as T import Swarm.Game.CESK import Swarm.Game.Exception import Swarm.Game.Robot...
e56ea7367e82495e1ffdda93b0d6b71c7c4c81b5b58279b2b207236aaed3094f
jaseemabid/mit-scheme
r2bs.scm
(define (real->bit-string x) Allocate a 64 - bit result to hold the double - precision number . (let ((result (bit-string-allocate 64))) (read-bits! ;; Guarantee that the number is floating-point. (exact->inexact x) Skip over the non - marked vector header ( 32 bits ) . 32 result) resu...
null
https://raw.githubusercontent.com/jaseemabid/mit-scheme/d30da6b2c103e34b6e0805bd5cbefeb9501382c1/etc/r2bs.scm
scheme
Guarantee that the number is floating-point. Allocate a flonum that we can clobber. The call to `random' prevents the compiler from constant folding.
(define (real->bit-string x) Allocate a 64 - bit result to hold the double - precision number . (let ((result (bit-string-allocate 64))) (read-bits! (exact->inexact x) Skip over the non - marked vector header ( 32 bits ) . 32 result) result)) (define (bit-string->flonum bs) (let ((flonum...
857b0d5d85cd43bea41a95a88d3481baea4acda94552a51267c195242bf16df2
rmloveland/scheme48-0.53
symbol.scm
Copyright ( c ) 1993 - 1999 by and . See file COPYING . ; The symbol table, which is just a string table full of symbols. (define *the-symbol-table*) (define-consing-primitive intern (string->) (lambda (ignore) (+ vm-symbol-size hash-table-entry-size)) (let ((searcher (table-searcher vm-symbol-...
null
https://raw.githubusercontent.com/rmloveland/scheme48-0.53/1ae4531fac7150bd2af42d124da9b50dd1b89ec1/scheme/vm/symbol.scm
scheme
The symbol table, which is just a string table full of symbols. Using the regular set-...-next! procedures in the cleanup procedure is unfortunate, because they go through the write barrier. Of course, we could disable that for these setters, since the symbol table has to be Copy the table and remove any unreacha...
Copyright ( c ) 1993 - 1999 by and . See file COPYING . (define *the-symbol-table*) (define-consing-primitive intern (string->) (lambda (ignore) (+ vm-symbol-size hash-table-entry-size)) (let ((searcher (table-searcher vm-symbol->string vm-symbol-next vm-make-symbol))) (lambda (...
e1a438ad9c7899c830fa9a086d0b3d9cf354b6e70d164360eed131783b9361d5
pepeiborra/narradar
TRS.hs
# LANGUAGE ScopedTypeVariables # # LANGUAGE FunctionalDependencies # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # # LANGUAGE ViewPatterns # # LANGUAGE FlexibleContexts , FlexibleInstances , TypeSynonymInstances # # LANGUAGE OverlappingInstances , UndecidableInstances # # LANGUAGE MultiParamTypeClasses # {-# LAN...
null
https://raw.githubusercontent.com/pepeiborra/narradar/bc53dcad9aee480ab3424a75239bac67e4794456/src/Narradar/Types/TRS.hs
haskell
# LANGUAGE GADTs # # LANGUAGE RecordWildCards, NamedFieldPuns # -------------------- TRSs in our setting -------------------- ---------------- ---------------- The rest of cases should not occurr at runtime ------------------------------ Data.Term framework instances ------------------------------ SignatureId ...
# LANGUAGE ScopedTypeVariables # # LANGUAGE FunctionalDependencies # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # # LANGUAGE ViewPatterns # # LANGUAGE FlexibleContexts , FlexibleInstances , TypeSynonymInstances # # LANGUAGE OverlappingInstances , UndecidableInstances # # LANGUAGE MultiParamTypeClasses # # LANGU...
e0bea2f14e00226b2fdf1abc20912b37fafff9d7d37c479079302c02e25758ec
mdunnio/coinbase-pro
Headers.hs
module CoinbasePro.Authenticated.Headers ( CBAccessKey(..) , CBAccessSign(..) , CBAccessTimeStamp(..) , CBAccessPassphrase(..) ) where import Data.Aeson (ToJSON (..), Value (String)) import qualified Data.Aeson as A import Data.ByteString (ByteString) import ...
null
https://raw.githubusercontent.com/mdunnio/coinbase-pro/5d5fa95e66481a974786ef362a4ea55ba94c63a9/src/lib/CoinbasePro/Authenticated/Headers.hs
haskell
module CoinbasePro.Authenticated.Headers ( CBAccessKey(..) , CBAccessSign(..) , CBAccessTimeStamp(..) , CBAccessPassphrase(..) ) where import Data.Aeson (ToJSON (..), Value (String)) import qualified Data.Aeson as A import Data.ByteString (ByteString) import ...
4788584b1e8e9414cc98e00556d3ccd9b8182ea08e41ecdf540cf7b3000e4824
deadtrickster/prometheus.cl
collectable.lisp
(in-package #:prometheus) (defclass collectable () ((name :initarg :name :reader collectable-name))) (defgeneric collect (collectable cb))
null
https://raw.githubusercontent.com/deadtrickster/prometheus.cl/60572b793135e8ab5a857d47cc1a5fe0af3a2d53/src/prometheus/base/collectable.lisp
lisp
(in-package #:prometheus) (defclass collectable () ((name :initarg :name :reader collectable-name))) (defgeneric collect (collectable cb))
231e14ffe04186093ffde3b521969d855a18d21c7f72171fd2bf720880914155
helium/blockchain-etl
blockchain_etl_app.erl
-module(blockchain_etl_app). -behaviour(application). -export([start/2, stop/1]). start(_StartType, _StartArgs) -> be_cli_registry:register_cli(), be_sup:start_link(). stop(_State) -> ok.
null
https://raw.githubusercontent.com/helium/blockchain-etl/2e5f931cb75252d531d4d844035cd57c6e75f38e/src/blockchain_etl_app.erl
erlang
-module(blockchain_etl_app). -behaviour(application). -export([start/2, stop/1]). start(_StartType, _StartArgs) -> be_cli_registry:register_cli(), be_sup:start_link(). stop(_State) -> ok.
ba0d833040ac70ae2d654f1caf4f1c119c3e12b2269755eddd6b3f69bd2044b2
nojb/ppx_ocamllex
syntax.ml
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/nojb/ppx_ocamllex/f802000c4ff984d3158a217c480294d85b3452db/syntax/syntax.ml
ocaml
********************************************************************* OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . type location = { loc_file : string...
71150b57389c30c4d88dda927dfd92cdda232eaacb76b5da9d5d60dc29ce9153
noinia/hgeometry
IOSpec.hs
module Geometry.PlanarSubdivision.IOSpec where import qualified Data.ByteString as B import Geometry.PlanarSubdivision import Data.RealNumber.Rational import Ipe import Test.Hspec -------------------------------------------------------------------------------- type R = RealNu...
null
https://raw.githubusercontent.com/noinia/hgeometry/89cd3d3109ec68f877bf8e34dc34b6df337a4ec1/hgeometry-test/src/Geometry/PlanarSubdivision/IOSpec.hs
haskell
------------------------------------------------------------------------------ do roundTrip :: PlanarSubdivision s v e f R -> PlanarSubdivision s v e f R roundTrip psd = it "roundtrips" $ psd `shouldBe` psd' where ----------------------------------------------------------------------...
module Geometry.PlanarSubdivision.IOSpec where import qualified Data.ByteString as B import Geometry.PlanarSubdivision import Data.RealNumber.Rational import Ipe import Test.Hspec type R = RealNumber 5 spec :: Spec spec = pure () describe " PlanarSubdivision . IO " $ do...
f9c7b3cee8d0886471c5de6931fb2bf41c8d9c7b76802e8ecd3d9af3f894a470
ndmitchell/catch
Proposition.hs
module Data.Proposition( module Data.Proposition.Internal, module Data.Proposition, module Data.Proposition.BDD, module Data.Proposition.Formula, module Data.Proposition.Simple, module Data.Proposition.Fix, module Data.Proposition.All ) where import Data.Proposition.BDD import Data.Proposition.Formula impo...
null
https://raw.githubusercontent.com/ndmitchell/catch/5d834416a27b4df3f7ce7830c4757d4505aaf96e/proposition/Data/Proposition.hs
haskell
module Data.Proposition( module Data.Proposition.Internal, module Data.Proposition, module Data.Proposition.BDD, module Data.Proposition.Formula, module Data.Proposition.Simple, module Data.Proposition.Fix, module Data.Proposition.All ) where import Data.Proposition.BDD import Data.Proposition.Formula impo...
2ed7a9c56fb24e6d4e678491dc49a284e1df2b7d777ac483ef8e534c7bcb9166
modular-macros/ocaml-macros
t211-setfield.ml
open Lib;; type t = { mutable a : int; mutable b : int; mutable c : int; mutable d : int; mutable e : int; };; let x = {a = 7; b = 6; c = 5; d = 4; e = 5} in x.e <- 11; if x.e <> 11 then raise Not_found; x ;; * 0 CONSTINT 42 2 PUSHACC0 3 MAKEBLOCK1 0 5 POP 1 7 ...
null
https://raw.githubusercontent.com/modular-macros/ocaml-macros/05372c7248b5a7b1aa507b3c581f710380f17fcd/testsuite/tests/tool-ocaml/t211-setfield.ml
ocaml
open Lib;; type t = { mutable a : int; mutable b : int; mutable c : int; mutable d : int; mutable e : int; };; let x = {a = 7; b = 6; c = 5; d = 4; e = 5} in x.e <- 11; if x.e <> 11 then raise Not_found; x ;; * 0 CONSTINT 42 2 PUSHACC0 3 MAKEBLOCK1 0 5 POP 1 7 ...
d195c999473f578699f1895f9cd0760547b77d41c2354214df554b12c8d28bdb
basho/data_platform_core
data_platform_service_sup_tests.erl
-module(data_platform_service_sup_tests). -ifdef(TEST). -include_lib("eunit/include/eunit.hrl"). %% @ignore Try starting a non - existing service , make sure SM survives enoexist_test() -> NoFile = "nexistepas", false = filelib:is_file(NoFile), ServiceName = "enoexist_test", ForTearDown = setup(), ...
null
https://raw.githubusercontent.com/basho/data_platform_core/a08232c60a82b3f64614fc87b12766cb65248037/test/data_platform_service_sup_tests.erl
erlang
@ignore these defines must match those in ../test/dummy.escript @ignore @ignore Start a service with a precious var in its env, check it is seen from there The start_service call returns the pid of the supervisor bridge being used to run the erlexec process that's running the actual OS process. This next bit of...
-module(data_platform_service_sup_tests). -ifdef(TEST). -include_lib("eunit/include/eunit.hrl"). Try starting a non - existing service , make sure SM survives enoexist_test() -> NoFile = "nexistepas", false = filelib:is_file(NoFile), ServiceName = "enoexist_test", ForTearDown = setup(), Existing...
e178b939f6b6412a4e505041dad56f8a9273181012ee39640aa3ebbc96a513c8
Dasudian/DSDIN
dsdo_oracles.erl
-module(dsdo_oracles). %% API -export([ deserialize/1 , expires/1 , id/1 , new/2 , owner/1 , query_fee/1 , query_format/1 , response_format/1 , serialize/1 , set_expires/2 , set_owner/2 , set_query_fee/2 , set_query_format...
null
https://raw.githubusercontent.com/Dasudian/DSDIN/b27a437d8deecae68613604fffcbb9804a6f1729/apps/dsdoracle/src/dsdo_oracles.erl
erlang
API =================================================================== Types =================================================================== Utf8 encoded string Don't use native types for queries Don't use native types for responses =================================================================== API ====...
-module(dsdo_oracles). -export([ deserialize/1 , expires/1 , id/1 , new/2 , owner/1 , query_fee/1 , query_format/1 , response_format/1 , serialize/1 , set_expires/2 , set_owner/2 , set_query_fee/2 , set_query_format/2 ...
97070ee99a05f79456c04d072fcedacddffa5de54b6704f5ca2d6b6e36aa5012
johnwalker/lein-plz
plz_test.clj
(ns plz.plz-test (:require [clojure.test :refer :all] [leiningen.plz :refer :all] [rewrite-clj.zip :as z])) (defn- zprint-str [[_ v]] (with-out-str (z/print-root v))) (defn mockup-pipe [prj-map deps] (let [[k zpr] (determine-case prj-map) present-deps (get-deps [k zp...
null
https://raw.githubusercontent.com/johnwalker/lein-plz/bce53f6a84e8570c103965441353867433f6f985/test/plz/plz_test.clj
clojure
(ns plz.plz-test (:require [clojure.test :refer :all] [leiningen.plz :refer :all] [rewrite-clj.zip :as z])) (defn- zprint-str [[_ v]] (with-out-str (z/print-root v))) (defn mockup-pipe [prj-map deps] (let [[k zpr] (determine-case prj-map) present-deps (get-deps [k zp...
d49d8e8d8b6c2c5f279e93073f0deabbecd5c954829e104cc1bee2c2d5a7dbe9
helium/gateway-config
gateway_gatt_service.erl
-module(gateway_gatt_service). -include("gateway_gatt.hrl"). -include("gateway_config.hrl"). -behavior(gatt_service). -define(CONNMAN_AGENT_RETRY, 5000). -define(ENABLE_WIFI_RETRY, 10000). -export([init/1, uuid/0, handle_info/2]). -record(state, { connect_result_char = undefined :: undefined | ebus:object_path...
null
https://raw.githubusercontent.com/helium/gateway-config/ac7f90f5ac6f698c17a793e75a6e43796eb2f1da/src/gateway_gatt_service.erl
erlang
TODO: Connman crashing invalidates a number of pids that are used in characteristics. We should probably monitor and restart Start the connman agent if it was not already started. On failure to start the agent we try to restart it later and re-attempt the connect. Start the connman agent if it was not already st...
-module(gateway_gatt_service). -include("gateway_gatt.hrl"). -include("gateway_config.hrl"). -behavior(gatt_service). -define(CONNMAN_AGENT_RETRY, 5000). -define(ENABLE_WIFI_RETRY, 10000). -export([init/1, uuid/0, handle_info/2]). -record(state, { connect_result_char = undefined :: undefined | ebus:object_path...
d71fe0d4ed635711bcd39bcabee4feadab550b4ee3c8d9f4f27f4ae7e1903650
Frama-C/Frama-C-snapshot
environment.ml
(**************************************************************************) (* *) This file is part of Frama - C. (* *) Copyright ...
null
https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/src/plugins/variadic/environment.ml
ocaml
************************************************************************ alternatives) ...
This file is part of Frama - C. Copyright ( C ) 2007 - 2019 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , v...
7f80dec4161648ac0d553677febcee80f8419a5a1d5fb10ea914cfdbb86b9373
dmjio/stripe
Coupon.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE RebindableSyntax # {-# LANGUAGE RankNTypes #-} module Web.Stripe.Test.Coupon where import Data.Either import Test.Hspec import Web.Stripe.Test.Prelude import Web.Stripe.Test.Util import Web.Stripe.Coupon couponTests :: Str...
null
https://raw.githubusercontent.com/dmjio/stripe/967334629933fcb55247eb3270c7801c05d6bf61/stripe-tests/tests/Web/Stripe/Test/Coupon.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes #
# LANGUAGE RebindableSyntax # module Web.Stripe.Test.Coupon where import Data.Either import Test.Hspec import Web.Stripe.Test.Prelude import Web.Stripe.Test.Util import Web.Stripe.Coupon couponTests :: StripeSpec couponTests stripe = do describe "Coupon tests" $ do ...
1e7be62b6da1aef2890cff0977de1b89b417211b8e767ed19e610febe3790719
typedclojure/typedclojure
self_check_tc.clj
(ns clojure.core.typed.test.self-check-tc (:require [clojure.test :refer :all] [clojure.core.typed :as t :refer [check-ns]])) (deftest check-tc (is (check-ns '[clojure.core.typed.coerce-utils typed.cljc.checker.utils typed.cljc.checker.type-rep type...
null
https://raw.githubusercontent.com/typedclojure/typedclojure/5fd7cdf7941c6e7d1dd5df88bf44474fa35e1fca/typed/clj.checker/test/clojure/core/typed/test/self_check_tc.clj
clojure
typed.cljc.checker.type-ctors :trace true
(ns clojure.core.typed.test.self-check-tc (:require [clojure.test :refer :all] [clojure.core.typed :as t :refer [check-ns]])) (deftest check-tc (is (check-ns '[clojure.core.typed.coerce-utils typed.cljc.checker.utils typed.cljc.checker.type-rep type...
8a2fdf2cc737f20fa4b0dd827e90dbc5785df3e5f1bfa02b354f340693dc921d
input-output-hk/cardano-sl
Types.hs
-- | Module containing explorer-specific datatypes module Pos.Explorer.Core.Types ( TxExtra (..) , AddrHistory ) where import Universum import Pos.Binary.Class (Cons (..), Field (..), deriveSimpleBi) import Pos.Chain.Block (HeaderHash) import Pos.Chain.Txp...
null
https://raw.githubusercontent.com/input-output-hk/cardano-sl/1499214d93767b703b9599369a431e67d83f10a2/explorer/src/Pos/Explorer/Core/Types.hs
haskell
| Module containing explorer-specific datatypes non-strict on purpose, see comment in `processTxDo` in Pos.Explorer.Txp.Local
module Pos.Explorer.Core.Types ( TxExtra (..) , AddrHistory ) where import Universum import Pos.Binary.Class (Cons (..), Field (..), deriveSimpleBi) import Pos.Chain.Block (HeaderHash) import Pos.Chain.Txp (TxId, TxUndo) import Pos.Core (Timestam...
0ea8a78fc4ae3c5536def980636cad933b92e036a0a406e0212ebb98e2d80f82
comby-tools/comby
languages.mli
open Types module Text : Language.S module Paren : Language.S module Dyck : Language.S module JSON : Language.S module JSONC : Language.S module GraphQL : Language.S module Dhall : Language.S module Latex : Language.S module Assembly : Language.S module Clojure : Language.S module Lisp : Language.S module Generic : Lan...
null
https://raw.githubusercontent.com/comby-tools/comby/a36c63fb1e686adaff3e90aed00e88404f8cda78/lib/kernel/matchers/languages.mli
ocaml
open Types module Text : Language.S module Paren : Language.S module Dyck : Language.S module JSON : Language.S module JSONC : Language.S module GraphQL : Language.S module Dhall : Language.S module Latex : Language.S module Assembly : Language.S module Clojure : Language.S module Lisp : Language.S module Generic : Lan...
09a7f48623647c6a727c7f915c65778a527884565130ed823d0897f0fa7f3d0c
facebook/pyre-check
profiling.ml
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
null
https://raw.githubusercontent.com/facebook/pyre-check/536e4a2c008726d0ce5589eaef681166923b6183/source/profiling.ml
ocaml
TODO(T132410158) Add a module-level doc comment. Taking a constructor instead of an event here so that events can be created lazily
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
459334e2dcb7a9b5909b0a6ffbff371b3abdd7de88ce5bf0a3cb61403c1a251d
fpco/ide-backend
IdPropCaching.hs
module IdPropCaching ( MonadIdPropCaching(..) , modifyIdPropCache , extendIdPropCache , recordIdPropType ) where import Control.Applicative ((<|>)) import System.IO.Unsafe (unsafePerformIO) import IdeSession.Types.Private (IdPropPtr(..), IdProp(..)) import IdeSession.Types.Public (Type) import IdeSession....
null
https://raw.githubusercontent.com/fpco/ide-backend/860636f2d0e872e9481569236bce690637e0016e/ide-backend-server/IdPropCaching.hs
haskell
We need to make sure not to lose information that we learned earlier
module IdPropCaching ( MonadIdPropCaching(..) , modifyIdPropCache , extendIdPropCache , recordIdPropType ) where import Control.Applicative ((<|>)) import System.IO.Unsafe (unsafePerformIO) import IdeSession.Types.Private (IdPropPtr(..), IdProp(..)) import IdeSession.Types.Public (Type) import IdeSession....
db69b79384d7615dcd80eabb538085b09ec419f8639628b90bdb20d5c482a581
synduce/Synduce
most_frequent_v2.ml
* @synduce --no - lifting type list = | Elt of int | Cons of int * list type pos = | One | S of pos type unique_list = | AElt of int * pos | ACons of int * pos * unique_list let rec is_alist = function | AElt (k, v) -> true | ACons (hdk, hdv, tl) -> keys_differ hdk tl && is_alist tl and keys_differ...
null
https://raw.githubusercontent.com/synduce/Synduce/d453b04cfb507395908a270b1906f5ac34298d29/benchmarks/constraints/alist/most_frequent_v2.ml
ocaml
Return max frequency element.
* @synduce --no - lifting type list = | Elt of int | Cons of int * list type pos = | One | S of pos type unique_list = | AElt of int * pos | ACons of int * pos * unique_list let rec is_alist = function | AElt (k, v) -> true | ACons (hdk, hdv, tl) -> keys_differ hdk tl && is_alist tl and keys_differ...
e09e70892d5fb4e2fda7ab610fe33320ee885eae6a82d4f50cb6b476cf8a64d8
pbrisbin/renters-reality
Request.hs
module Helpers.Request (requestIp) where import Prelude import Yesod import Network.Wai (remoteHost) import Data.Text (Text) import qualified Data.Text as T requestIp :: HandlerT master IO Text requestIp = return . T.pack . show . remoteHost =<< waiRequest
null
https://raw.githubusercontent.com/pbrisbin/renters-reality/2e20e4ab3f47a62d0bad75f49d5e6beee1d81648/Helpers/Request.hs
haskell
module Helpers.Request (requestIp) where import Prelude import Yesod import Network.Wai (remoteHost) import Data.Text (Text) import qualified Data.Text as T requestIp :: HandlerT master IO Text requestIp = return . T.pack . show . remoteHost =<< waiRequest
77aca3b5a3938de9355eecdf3fe3b4adc1f87f3232acd73f29c2089d9c2368a8
batterseapower/supercompilation-by-evaluation
Tak-NoLiterals.hs
#include "../Prelude.hs" lit1'Int = 1 :: Int lt'Int = (Prelude.<) :: Int -> Int -> Bool subtract'Int = (Prelude.-) :: Int -> Int -> Int
null
https://raw.githubusercontent.com/batterseapower/supercompilation-by-evaluation/daeb3e12ca8319a5144dd48a763cf7e7825a1999/examples/imaginary/Tak-NoLiterals.hs
haskell
#include "../Prelude.hs" lit1'Int = 1 :: Int lt'Int = (Prelude.<) :: Int -> Int -> Bool subtract'Int = (Prelude.-) :: Int -> Int -> Int
594415071405745794303fd01985d57b82dae19182c5192584cc44b18dae6bff
anuyts/menkar
Menkar.hs
module Menkar ( module Menkar.Parser, module Menkar.Basic, module Raw, module Sc, module Menkar.Fine, module Menkar.WHN, module Menkar.TC, module Menkar.PrettyPrint, module Menkar.Monad, module Menkar.Monads, module Menkar.System, module Menkar.Systems, module Menkar.Main ) where import Men...
null
https://raw.githubusercontent.com/anuyts/menkar/1f00e9febd1e9ed70c138ae8232b1c72a17d31da/menkar/src/Menkar.hs
haskell
module Menkar ( module Menkar.Parser, module Menkar.Basic, module Raw, module Sc, module Menkar.Fine, module Menkar.WHN, module Menkar.TC, module Menkar.PrettyPrint, module Menkar.Monad, module Menkar.Monads, module Menkar.System, module Menkar.Systems, module Menkar.Main ) where import Men...
3b251e3f0a50a155a20517406193a012d10b93664260f7ef61f971e5af2c1f11
jumarko/web-development-with-clojure
registration.cljs
;--- Excerpted from " Web Development with Clojure , Second Edition " , published by The Pragmatic Bookshelf . Copyrights apply to this code . It may not be used to create training material , ; courses, books, articles, and the like. Contact us if you are in doubt. ; We make no guarantees that this code is fit fo...
null
https://raw.githubusercontent.com/jumarko/web-development-with-clojure/dfff6e40c76b64e9fcd440d80c7aa29809601b6b/code/picture-gallery-a/src/cljs/picture_gallery/components/registration.cljs
clojure
--- courses, books, articles, and the like. Contact us if you are in doubt. We make no guarantees that this code is fit for any purpose. Visit for more book information. ---
Excerpted from " Web Development with Clojure , Second Edition " , published by The Pragmatic Bookshelf . Copyrights apply to this code . It may not be used to create training material , (ns picture-gallery.components.registration (:require [reagent.core :refer [atom]] [reagent.session :as session] ...
339ad80334722a49e2f742ed1617653cd8a9e950588e5c8da397e5d7b0de7592
hypernumbers/hypernumbers
hnfuns_contacts.erl
@author ( C ) 2012 - 2014 , Hypernumbers Ltd %%% @doc functions for handling phones %%% %%% @end Created : 11 Feb 2012 by %%%------------------------------------------------------------------- %%% %%% LICENSE %%% %%% This program is free software: you can redistribute it and/or modify it under th...
null
https://raw.githubusercontent.com/hypernumbers/hypernumbers/281319f60c0ac60fb009ee6d1e4826f4f2d51c4e/lib/formula_engine-1.0/src/hnfuns_contacts.erl
erlang
@doc functions for handling phones @end ------------------------------------------------------------------- LICENSE This program is free software: you can redistribute it and/or modify This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warr...
@author ( C ) 2012 - 2014 , Hypernumbers Ltd Created : 11 Feb 2012 by it under the terms of the GNU Affero General Public License as published by the Free Software Foundation version 3 You should have received a copy of the GNU Affero General Public License -module(hnfuns_contacts). -define(check...
10e60c8c37d0be78c8308cec25a6ce24dd3f21f9726bfb26830489f6e215cee9
janestreet/ppx_css
traverse_css.ml
open! Core open! Ppxlib open Css_jane let map_loc (v, loc) ~f = f v, loc module Identifier_kind = struct module T = struct type t = | Class | Id | Variable [@@deriving compare, sexp] end include T include Comparable.Make (T) end module Prev_delimeter = struct type t = | Other...
null
https://raw.githubusercontent.com/janestreet/ppx_css/227a89d7e4605f740366a1e1e20923c1d69d6bbc/src/traverse_css.ml
ocaml
Sorted from most general to least general (i.e. shorter prefix to longest prefix)
open! Core open! Ppxlib open Css_jane let map_loc (v, loc) ~f = f v, loc module Identifier_kind = struct module T = struct type t = | Class | Id | Variable [@@deriving compare, sexp] end include T include Comparable.Make (T) end module Prev_delimeter = struct type t = | Other...
105d8ce2fc29648a7d72792d5d56cccf61a357773f3d3d75902e72adc5714b02
marigold-dev/chusai
rpc_server.ml
MIT License Copyright ( c ) 2022 Marigold < > Permission is hereby granted , free of charge , to any person obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without restriction , including without limitation the rights to u...
null
https://raw.githubusercontent.com/marigold-dev/chusai/09f798c585121d3b02bf3fed0f52f15c3bdc79a1/layer2/bin/node/rpc_server.ml
ocaml
MIT License Copyright ( c ) 2022 Marigold < > Permission is hereby granted , free of charge , to any person obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without restriction , including without limitation the rights to u...
3a45f68e95d2f34d01cd6f41900c6e332bb1ba4457d934458c88e6dbaf6a292a
gethop-dev/hydrogen.duct-template
user.cljs
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this ;; file, You can obtain one at / {{=<< >>=}} (ns <<namespace>>.client.user (:require [ajax.core :as ajax] [clojure.spec.alpha :as s] [re-frame.core :as...
null
https://raw.githubusercontent.com/gethop-dev/hydrogen.duct-template/34d56aa499af1e673d9587b7da0cca2b126ff106/resources/session/user.cljs
clojure
file, You can obtain one at /
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this {{=<< >>=}} (ns <<namespace>>.client.user (:require [ajax.core :as ajax] [clojure.spec.alpha :as s] [re-frame.core :as rf] [<<namespace>>.c...
e3cc87ca08ac1558ca2a91e6dfafe671e03be317dc6eb3c7546d13b337e0b616
Z572/gwwm
ref.scm
Copyright ( C ) 2022 < > simple srfi-123 , use goops , not sure bug . (define-module (gwwm utils ref) #:use-module (oop goops) #:use-module (srfi srfi-17) #:use-module (rnrs bytevectors) #:use-module (srfi srfi-9) #:use-module (srfi srfi-111) #:export (ref ref* ~ )) (define-accessor ref) (define-ac...
null
https://raw.githubusercontent.com/Z572/gwwm/b6d1d98e8d0a47957b81aad1096f7ba5cbb0f456/gwwm/utils/ref.scm
scheme
Copyright ( C ) 2022 < > simple srfi-123 , use goops , not sure bug . (define-module (gwwm utils ref) #:use-module (oop goops) #:use-module (srfi srfi-17) #:use-module (rnrs bytevectors) #:use-module (srfi srfi-9) #:use-module (srfi srfi-111) #:export (ref ref* ~ )) (define-accessor ref) (define-ac...