_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
2e888ea3631942fb045023c9acacc0164ecf2ffcad0e971acf08dba301a3002f
8c6794b6/guile-tjit
http.scm
;;; HTTP messages Copyright ( C ) 2010 - 2016 Free Software Foundation , Inc. ;; This library is free software; you can redistribute it and/or ;; modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation ; either version 3 of the License , or ( at your opt...
null
https://raw.githubusercontent.com/8c6794b6/guile-tjit/9566e480af2ff695e524984992626426f393414f/module/web/http.scm
scheme
HTTP messages This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public either This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR...
Copyright ( C ) 2010 - 2016 Free Software Foundation , Inc. version 3 of the License , or ( at your option ) any later version . You should have received a copy of the GNU Lesser General Public Foundation , Inc. , 51 Franklin Street , Fifth Floor , Boston , MA 02110 - 1301 USA be 0.2 , etc ) . (define...
76b575d0e929dcbec6da47a318bc9d9acf429f928fca2a8bca4ddd8cd37578f4
dreixel/regular
ConNames.hs
# LANGUAGE KindSignatures # {-# LANGUAGE TypeOperators #-} # LANGUAGE FlexibleInstances # {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE FlexibleContexts #-} ----------------------------------------------------------------------------- -- | -- Module : Generics.Regular.Functions.Co...
null
https://raw.githubusercontent.com/dreixel/regular/c8460ee827f1eb04dd31b873380ff9626a4a4220/src/Generics/Regular/Functions/ConNames.hs
haskell
# LANGUAGE TypeOperators # # LANGUAGE ScopedTypeVariables # # LANGUAGE FlexibleContexts # --------------------------------------------------------------------------- | Module : Generics.Regular.Functions.ConNames License : BSD3 Stability : experimental Portability : non-portable Su...
# LANGUAGE KindSignatures # # LANGUAGE FlexibleInstances # Copyright : ( c ) 2009 Universiteit Utrecht Maintainer : module Generics.Regular.Functions.ConNames ( ConNames(..), conNames ) where import Generics.Regular.Base class ConNames f where hconNames :: f a -> [String] in...
fc6fb744ee40e706570b1b682c472f2ae94c2fa95ad201f158f59aa0cfbad97b
apache/couchdb-mochiweb
mochiweb_io.erl
@author < > 2007 Mochi Media , Inc. %% %% 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, modify, merge, ...
null
https://raw.githubusercontent.com/apache/couchdb-mochiweb/d3c47a9e8833cd878c9227093e30a2341ee32900/src/mochiweb_io.erl
erlang
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), the rights to use, copy, modify, merge, publish, distribute, sublicense, Software is furnished to do so, subject to the following conditions: The above copyright noti...
@author < > 2007 Mochi Media , Inc. to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , E...
a67f9b441a3ad761eef08250c611c54c088c7542199251869b3d4fc013359fec
patzy/glaw
3d.lisp
(in-package #:glaw) ;;; Mesh (defstruct mesh names shapes dlists ;; TESTING: rendering performance materials) (defun create-mesh (&optional (nb-parts 0)) (make-mesh :shapes (make-array nb-parts :adjustable t :fill-pointer t :element-type 'shape) :materials (make-array nb-parts :adjustable t :fi...
null
https://raw.githubusercontent.com/patzy/glaw/e678fc0c107ce4b1e3ff9921a6de7e32fd39bc37/src/3d.lisp
lisp
Mesh TESTING: rendering performance (render-shape shape) Wavefront OBJ :mesh asset Object and groups are considered the same On part per material is created upon loading when a single object contains multiple materials load new material, store what we read so far reset indices retrieve proper material is t...
(in-package #:glaw) (defstruct mesh names shapes materials) (defun create-mesh (&optional (nb-parts 0)) (make-mesh :shapes (make-array nb-parts :adjustable t :fill-pointer t :element-type 'shape) :materials (make-array nb-parts :adjustable t :fill-pointer t) :dlists (make-array nb-pa...
74765f8d00c3afda09f8ecc86e9f616b7f5ec5fe3151cd459539ae5703ab07a7
carlosavieira/self-study
23.hs
import System.Random main = do gen <- getStdGen rnd_select :: [a] -> Int -> [a] rnd_select [] _ = [] rnd_select xs y = take y $ xs !! (randomRs (0, length xs) gen)
null
https://raw.githubusercontent.com/carlosavieira/self-study/c7f998875f34a9d3623ade6deb75980affad2047/programming/Haskell/99%20problems/solutions/23.hs
haskell
import System.Random main = do gen <- getStdGen rnd_select :: [a] -> Int -> [a] rnd_select [] _ = [] rnd_select xs y = take y $ xs !! (randomRs (0, length xs) gen)
ee904f8254187bbbb5c7f901c47d0489bc4f596f721d58f3aac40ef74a083018
wasp-lang/strong-path
Internal.hs
{-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveLift #-} module StrongPath.Internal ( Path (..), RelPathPrefix (..), Abs, Rel, Dir, File, Posix, Windows, System, Path', File', Dir', Rel', parseRelFileFP, parseRelDirFP, impossible, prefixNumParent...
null
https://raw.githubusercontent.com/wasp-lang/strong-path/b19098086993702929a53b30851eaacb5ec67cb2/src/StrongPath/Internal.hs
haskell
# LANGUAGE DeriveDataTypeable # # LANGUAGE DeriveLift # [@t@]: __Type__: File ('File') or directory ('Dir'). Some examples: > Path System (Rel HomeDir) (File FooFile) > Path System Abs (Dir HomeDir) NOTE: Relative paths can be sometimes be tricky when being reasoned about in the internal library code, wh...
module StrongPath.Internal ( Path (..), RelPathPrefix (..), Abs, Rel, Dir, File, Posix, Windows, System, Path', File', Dir', Rel', parseRelFileFP, parseRelDirFP, impossible, prefixNumParentDirs, relPathNumParentDirs, relPathPrefix, extractRe...
a936b6de990975ef94f5fcaafb637d78ba4ac920e2ee9ce99f0a11682e96c8a4
jstoddard/clim-snake
clim-snake.lisp
;;;; clim-snake.lisp (in-package #:clim-snake) " clim - snake " goes here . Hacks and glory await ! (defparameter *board-width* 40) (defparameter *board-height* 40) (defparameter *y-offset* 20) (defparameter *sleep-time* 0.1) Generic functions (defgeneric snake-head (snake)) (defgeneric (setf snake-head) (newv...
null
https://raw.githubusercontent.com/jstoddard/clim-snake/ae2a188e3ee064643edc33c556ffb9e312afa10c/clim-snake.lisp
lisp
clim-snake.lisp The below interact with the objects and the GUI Snake class GUI GUI + Objects Event handling Game loop
(in-package #:clim-snake) " clim - snake " goes here . Hacks and glory await ! (defparameter *board-width* 40) (defparameter *board-height* 40) (defparameter *y-offset* 20) (defparameter *sleep-time* 0.1) Generic functions (defgeneric snake-head (snake)) (defgeneric (setf snake-head) (newvalue snake)) (defgene...
b3eec6cce71737834ff1e837638f9f1a806b49cab6df0c8c262ff1deb741bd57
agda/agda
CheckInternal.hs
Initially authored by , 2013 - 10 - 22 . -- | A bidirectional type checker for internal syntax. -- -- Performs checking on unreduced terms. -- With the exception that projection-like function applications -- have to be reduced since they break bidirectionality. module Agda.TypeChecking.CheckInternal ( Mon...
null
https://raw.githubusercontent.com/agda/agda/e018e58453a06e4c4a15c9b81396cbcd1e2c640f/src/full/Agda/TypeChecking/CheckInternal.hs
haskell
| A bidirectional type checker for internal syntax. Performs checking on unreduced terms. With the exception that projection-like function applications have to be reduced since they break bidirectionality. * Bidirectional rechecker | 'checkInternal' traverses the whole 'Term', and we can use this traver...
Initially authored by , 2013 - 10 - 22 . module Agda.TypeChecking.CheckInternal ( MonadCheckInternal , checkType, infer, inferSpine , CheckInternal(..) , Action(..), defaultAction, eraseUnusedAction ) where import Control.Arrow (first, second) import Control.Monad import Agda.Syntax.Common import Agda...
92d2c5b389cf4210247e30d67eda548f57687df4301f5c5971567cd2874dd154
Leofltt/Kairos
algo10.hs
addI "mc1" $ models csd1 1 addI "mc2" $ models csd1 2 addI "mc3" $ models csd1 3 addI "mc4" $ models csd1 4 addI "mc5" $ models csd1 5 addI "mc6" $ models csd1 6 cT 124 volchorus (Pd 0.2) fbdel (Pd 0.44) volrev (Pd 0.88) addC "mc5" "55" $ toTP [8.7, 17] addC "mc5" "55" $ toTP [9.33] addC "mc5" "5" $ toTP [5.33] ...
null
https://raw.githubusercontent.com/Leofltt/Kairos/0ffaba6f043b5774626a26f924256857de533d4b/Performances/algo10.hs
haskell
addI "mc1" $ models csd1 1 addI "mc2" $ models csd1 2 addI "mc3" $ models csd1 3 addI "mc4" $ models csd1 4 addI "mc5" $ models csd1 5 addI "mc6" $ models csd1 6 cT 124 volchorus (Pd 0.2) fbdel (Pd 0.44) volrev (Pd 0.88) addC "mc5" "55" $ toTP [8.7, 17] addC "mc5" "55" $ toTP [9.33] addC "mc5" "5" $ toTP [5.33] ...
47a0a213ec98955b35a78ec3285d4128ff1c79296b3465b3e4c27ad01c5efe3d
broom-lang/broom
Value.ml
type t = | Fn of ((t -> t) -> t -> t) | Pair of {fst : t; snd : t} | Unit | Record of t Name.Map.t | Proxy | Cell of t option ref | Int of int | Bool of bool | String of string let rec to_doc = let open PPrint in function | Fn _ -> braces (bar ^^ blank 1 ^^ infix 4 1 (st...
null
https://raw.githubusercontent.com/broom-lang/broom/62cfc08fdd1409f6b1c3a45018ec7d9c351cd59b/compiler/lib/Eval/Value.ml
ocaml
type t = | Fn of ((t -> t) -> t -> t) | Pair of {fst : t; snd : t} | Unit | Record of t Name.Map.t | Proxy | Cell of t option ref | Int of int | Bool of bool | String of string let rec to_doc = let open PPrint in function | Fn _ -> braces (bar ^^ blank 1 ^^ infix 4 1 (st...
c883bbcda76c2543e9d92b9082bfd99db568a66457f830f272b68326814f964d
wh5a/thih
Case.hs
-- Case.hs Output : ( 4,12 ) module Case where main :: (Int, Int) main = (silly [2,3,5,1], silly [4]) silly :: [Int] -> Int silly list = case list of (1:xs) -> 1 (2:xs) | x < 10 -> 4 where x = last xs o...
null
https://raw.githubusercontent.com/wh5a/thih/dc5cb16ba4e998097135beb0c7b0b416cac7bfae/hatchet/examples/Case.hs
haskell
Case.hs
Output : ( 4,12 ) module Case where main :: (Int, Int) main = (silly [2,3,5,1], silly [4]) silly :: [Int] -> Int silly list = case list of (1:xs) -> 1 (2:xs) | x < 10 -> 4 where x = last xs otherwise ->...
cc4a4588426cbe317df03de159556b9d2b68f2b38c22a1f1707ac53b854c5026
digikar99/py4cl2-cffi
do-after-load.lisp
;;; probably, ASDF should have a feature for doing this ;;; this file should be called after loading all the other files (in-package :py4cl2-cffi) ;; For :ARRAYS, *INTERNAL-FEATURES* is also modified from PYSTART function. (loop :initially (setf *internal-features* ()) :for (feature-name . exclude-conditions) :...
null
https://raw.githubusercontent.com/digikar99/py4cl2-cffi/77fd53887d014fa308dec5539f521d3d1b634c65/src/do-after-load.lisp
lisp
probably, ASDF should have a feature for doing this this file should be called after loading all the other files For :ARRAYS, *INTERNAL-FEATURES* is also modified from PYSTART function.
(in-package :py4cl2-cffi) (loop :initially (setf *internal-features* ()) :for (feature-name . exclude-conditions) :in *feature-exclusion-alist* :if (not (or (and (functionp exclude-conditions) (funcall exclude-conditions)) (and (listp exclude-conditions) ...
7bc23b65ae7b778a4453f4e6249ede713a8d8b4246d8c5a1ecf6bc1460fe76c5
candera/khordr
handler.clj
(ns khordr.handler "Defines the interface for khordr key handlers" (:require [khordr.effect :as e]) (:import khordr.effect.Key)) (defprotocol KeyHandler (process [this state keyevent] "Process given the application state and a key event, returning a map. The map should contain the following keys: :han...
null
https://raw.githubusercontent.com/candera/khordr/cd9ad9df3dc6692b583b844244260b5b619745f7/src/clj/khordr/handler.clj
clojure
In the absence of any other key handler, just pass events through
(ns khordr.handler "Defines the interface for khordr key handlers" (:require [khordr.effect :as e]) (:import khordr.effect.Key)) (defprotocol KeyHandler (process [this state keyevent] "Process given the application state and a key event, returning a map. The map should contain the following keys: :han...
f793507b6eaa8d93a6cc36c2650733ffcf5a986236317d9426775126ed9ab7f2
longlene/cl-raylib
core_input_mouse.lisp
(require :cl-raylib) (defpackage :raylib-user (:use :cl :raylib :3d-vectors)) (in-package :raylib-user) (defun main () (let* ((screen-width 800) (screen-height 450) (ball-position (vec -100.0 -100.0)) (ball-color +darkblue+)) (with-window (screen-width screen-height "raylib [core] ...
null
https://raw.githubusercontent.com/longlene/cl-raylib/a67bebea63e286bedbc651842110a1e09d1aa289/examples/core/core_input_mouse.lisp
lisp
(require :cl-raylib) (defpackage :raylib-user (:use :cl :raylib :3d-vectors)) (in-package :raylib-user) (defun main () (let* ((screen-width 800) (screen-height 450) (ball-position (vec -100.0 -100.0)) (ball-color +darkblue+)) (with-window (screen-width screen-height "raylib [core] ...
d95621d3c1e1b96f7325a46c0c44bbad536139a0c53a304d7466e604f7852d51
stylewarning/quickutil
conditions.lisp
;;;; conditions.lisp Copyright ( c ) 2013 (in-package #:quickutil-client) (define-condition utility-not-found-error (error) ((name :initarg :names :reader utility-not-found-error-names)) (:documentation "Error to be invoked when a utility is not found.") (:report (lambda (condition stream) ...
null
https://raw.githubusercontent.com/stylewarning/quickutil/5adb3463d99095145325c4013117bd08a8f6cac2/quickutil-client/conditions.lisp
lisp
conditions.lisp
Copyright ( c ) 2013 (in-package #:quickutil-client) (define-condition utility-not-found-error (error) ((name :initarg :names :reader utility-not-found-error-names)) (:documentation "Error to be invoked when a utility is not found.") (:report (lambda (condition stream) (format stream "...
3e01d3847b8f50dd8a3637277996b15c1e6e812ddf1f8c769fc63e14677ae4c3
keera-studios/keera-hails
minimal.hs
{-# OPTIONS -fglasgow-exts #-} ----------------------------------------------------------------------------- | Program : widgets.hs Copyright : ( c ) 2010 Project : qtHaskell Version : 1.1.4 Modified : 2010 - 09 - 02 17:02:47 Warning : this file is machine generated - ...
null
https://raw.githubusercontent.com/keera-studios/keera-hails/bf069e5aafc85a1f55fa119ae45a025a2bd4a3d0/keera-hails-reactive-qt/examples/minimal.hs
haskell
# OPTIONS -fglasgow-exts # --------------------------------------------------------------------------- } --------------------------------------------------------------------------- myQLineEdit :: IO MyQLineEdit myQLineEdit = qSubClass $ qLineEdit () Add Text boxes connectSlot l1 "textChanged(QString)" l1 "onTextCh...
| Program : widgets.hs Copyright : ( c ) 2010 Project : qtHaskell Version : 1.1.4 Modified : 2010 - 09 - 02 17:02:47 Warning : this file is machine generated - do not modify . - Copyright : (c) David Harley 2010 Project : qtHaskell Version : 1.1.4 ...
06130acbc25cdea146b3081d7fc29e3f08f0690184e63fa16770e9090f181bb4
uwplse/Cassius
css-properties.rkt
#lang racket (require "../common.rkt" racket/hash) (provide in-css-properties in-css-types css-constants css-shorthand-properties css-type css-properties css-types css-default css-inheritable?) The CSS properties and data types supports . The file is in three parts : helper macros , type and property definition...
null
https://raw.githubusercontent.com/uwplse/Cassius/edcb8302c43b7b149280504c00672d8133219b44/src/spec/css-properties.rkt
racket
helper functions CSS datatypes and the properties that use them Helper Functions properties have different defaults. Need to do this better.
#lang racket (require "../common.rkt" racket/hash) (provide in-css-properties in-css-types css-constants css-shorthand-properties css-type css-properties css-types css-default css-inheritable?) The CSS properties and data types supports . The file is in three parts : helper macros , type and property definition...
fda46128c6436e0ca92e4489449bdadd08fcdc2e8eabe7b963e3bffd6a74eb08
charlieg/Sparser
printers.lisp
;;; -*- Mode:LISP; Syntax:Common-Lisp; Package:SPARSER -*- copyright ( c ) 1994 - 2005 -- all rights reserved ;;; ;;; File: "printers" Module : " : people : " version : 0.2 March 2005 file created 2/9/94 v2.3 . Fleshed out 10/3 . Added string / person 2/24/95 0.1 ( 7/7 ) revamped full ver...
null
https://raw.githubusercontent.com/charlieg/Sparser/b9bb7d01d2e40f783f3214fc104062db3d15e608/Sparser/code/s/grammar/model/core/people/printers.lisp
lisp
-*- Mode:LISP; Syntax:Common-Lisp; Package:SPARSER -*- File: "printers" for person-name. Handles pathological case where there isn't a name sequence. (3/16/05) fixed formatting. i.e. an ordinal else if there isn't a 'name', just give its ids
copyright ( c ) 1994 - 2005 -- all rights reserved Module : " : people : " version : 0.2 March 2005 file created 2/9/94 v2.3 . Fleshed out 10/3 . Added string / person 2/24/95 0.1 ( 7/7 ) revamped full version to do versions correctly . 0.2 ( 1/17/96 ) Reorganized the whole thing to feed fro...
553c76df6f8b0c61a78d713018d8b50a688172c0599d94a7656717f9b775a16a
dm3/clojure.java-time
project.clj
(require '[clojure.string :as str]) (def clojure-versions ["1.8" "1.9" "1.10" "1.11" "1.12"]) (def threeten-extra-version "1.4") (def joda-time-version "2.10.1") (defproject clojure.java-time "1.3.0-SNAPSHOT" :description "Clojure wrapper for Java 8 Time API" :url "-time" :license {:name "MIT License" ...
null
https://raw.githubusercontent.com/dm3/clojure.java-time/acfe019079baab8730fa22d1a3e3d75428c6ead9/project.clj
clojure
lein doc
(require '[clojure.string :as str]) (def clojure-versions ["1.8" "1.9" "1.10" "1.11" "1.12"]) (def threeten-extra-version "1.4") (def joda-time-version "2.10.1") (defproject clojure.java-time "1.3.0-SNAPSHOT" :description "Clojure wrapper for Java 8 Time API" :url "-time" :license {:name "MIT License" ...
8045ce1ff9829d91407195cc5e53f10ec3b07454ea4f9ea8d5e3537518596bc9
camlspotter/ocaml-zippy-tutorial-in-japanese
w2.ml
let six = ( *) 2 3
null
https://raw.githubusercontent.com/camlspotter/ocaml-zippy-tutorial-in-japanese/c6aeabc08b6e2289a0e66c5b94a89c6723d88a6a/t/warnings/w2.ml
ocaml
let six = ( *) 2 3
f32ae3a3c200120f0553729fe6395e462b19aea2d37fc5521a1ee14da52d4732
bluejay77/MRS-NOVEL9
concep.lisp
;;; -*- Mode: Common-LISP -*- ;;; CONCEP.LSP 0.8 18 - Mar-83 0052 000 1 ML PUPFTP 18 - Mar-83 ;;; GenProbList and Remedial - put text on property lists of these two atoms for TUTOR ;;; perm filename CONCEP.LSP[MRS , LSP ] blob sn#702116 filedate 1983 - 03 - 18 generic text , type T , neo UTF8 ;;; ;;; ;***...
null
https://raw.githubusercontent.com/bluejay77/MRS-NOVEL9/3a2d7a9c52b711125521444bb3eb6df7fb727017/concep.lisp
lisp
-*- Mode: Common-LISP -*- GenProbList and Remedial - put text on property lists of these ********************************************************** * * * The MRS tutor * * Concept and exercise templates for the gen...
CONCEP.LSP 0.8 18 - Mar-83 0052 000 1 ML PUPFTP 18 - Mar-83 two atoms for TUTOR perm filename CONCEP.LSP[MRS , LSP ] blob sn#702116 filedate 1983 - 03 - 18 generic text , type T , neo UTF8 * * * ( c ) Copyright 1982 , * Dr 2015 - 05 - 11 (Putprop '|(...
4221cbd2f8b7c84c2eb48e4e45ffdb441dc54a3d72ca60070269edc4ba8db545
zadean/xqerl
xqerl_serialize.erl
Copyright ( c ) 2018 - 2020 . SPDX - FileCopyrightText : 2022 % SPDX - License - Identifier : Apache-2.0 -module(xqerl_serialize). %% ==================================================================== %% API functions %% ==================================================================== -export([ ...
null
https://raw.githubusercontent.com/zadean/xqerl/06c651ec832d0ac2b77bef92c1b4ab14d8da8883/src/xqerl_serialize.erl
erlang
==================================================================== API functions ==================================================================== block array:array(_) warnings ==================================================================== ==============================================================...
Copyright ( c ) 2018 - 2020 . SPDX - FileCopyrightText : 2022 SPDX - License - Identifier : Apache-2.0 -module(xqerl_serialize). -export([ serialize/2, default_opts/0 ]). -include("xqerl.hrl"). -define(XML, <<"">>). -define(XHTML, <<"">>). -define(SVG, <<"">>). -define(MATHML, <<"">>). -dia...
07ef32fd410658dd5f6f608ab4d36e40e121f82b68670e76faddc1d99936632c
davelambert/porky
data-sources.lisp
-*- package : ; Syntax : Common - lisp ; Base : 10 -*- ;;; ;;;; data-sources.lisp ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; The contents of this file are subject to the NOKOS License Version 1.0a (the ;;; "License"); you may not use this file exc...
null
https://raw.githubusercontent.com/davelambert/porky/44a4ff0e791de23f723bfd93072fcef5f8523c8a/src/core/data-sources.lisp
lisp
Syntax : Common - lisp ; Base : 10 -*- data-sources.lisp -------------------------------------------------------------------------------------- The contents of this file are subject to the NOKOS License Version 1.0a (the "License"); you may not use this file except in compliance with the License. WAR...
Software distributed under the License is distributed on an " AS IS " basis , WITHOUT The Original Software is WILBUR2 : Nokia Semantic Web Toolkit for CLOS Copyright ( c ) 2001 - 2005 Nokia and others . All Rights Reserved . Portions Copyright ( c ) 1989 - 1992 . All Rights Reserved . Cont...
d9c288d18735ea5895ac4a12b480dbf4df4727659427e517fccdb1a43aba3b77
mbutterick/aoc-racket
day22.rkt
#lang scribble/lp2 @(require scribble/manual aoc-racket/helper) @aoc-title[22] @defmodule[aoc-racket/day22] @italic{This solution contributed by guest star @link[""]{Benjamin Greenman}, because I had no patience for this puzzle. — MB} @link[""]{The puzzle}. Once again, our @link-rp["day22-input.txt"]{input} tells u...
null
https://raw.githubusercontent.com/mbutterick/aoc-racket/2c6cb2f3ad876a91a82f33ce12844f7758b969d6/day22.rkt
racket
#lang scribble/lp2 @(require scribble/manual aoc-racket/helper) @aoc-title[22] @defmodule[aoc-racket/day22] @italic{This solution contributed by guest star @link[""]{Benjamin Greenman}, because I had no patience for this puzzle. — MB} @link[""]{The puzzle}. Once again, our @link-rp["day22-input.txt"]{input} tells u...
1b6db7ae2f942c0e67a412a2574fff2d835ea61752946f67569f61c3dcf0832b
ucsd-progsys/dsolve
bcopy.ml
fun('a) bcopy_aux (src, des, i, m) = if i = m then () else let val _ = update(des, i, sub(src, i)) in bcopy_aux (src, des, i+1, m) end #withtype {m:nat, n:nat, i:nat | i <= m <= n} => # 'a array(m) * 'a array(n) * int (i) * int(m) -> unit fun('a) bcopy(src, des) = bcopy...
null
https://raw.githubusercontent.com/ucsd-progsys/dsolve/bfbbb8ed9bbf352d74561e9f9127ab07b7882c0c/tests/POPL2008/xiog/DMLex/bcopy.ml
ocaml
fun('a) bcopy_aux (src, des, i, m) = if i = m then () else let val _ = update(des, i, sub(src, i)) in bcopy_aux (src, des, i+1, m) end #withtype {m:nat, n:nat, i:nat | i <= m <= n} => # 'a array(m) * 'a array(n) * int (i) * int(m) -> unit fun('a) bcopy(src, des) = bcopy...
4c87b3e83870c6e3ce8d1c924b8dc1de9e444cf6158c0586a5e266f2a416a5ea
AdRoll/mero
mero_conf_monitor_SUITE.erl
Copyright ( c ) 2014 , AdRoll %% All rights reserved. %% %% Redistribution and use in source and binary forms, with or without %% modification, are permitted provided that the following conditions are met: %% %% * Redistributions of source code must retain the above copyright notice, this %% list of conditions and th...
null
https://raw.githubusercontent.com/AdRoll/mero/d688cd936b2e1296f1be7417b6347ef9f4e2d373/test/mero_conf_monitor_SUITE.erl
erlang
All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in...
Copyright ( c ) 2014 , AdRoll THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS " IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED . IN NO EVENT SHALL THE COPYRIGHT HOLDER OR LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLAR...
93cea08cf840fa8096a797ca97c5410131b6a506b2860a7c444598b8f31c446e
lisp-korea/sicp2014
ex-2-08.scm
#lang planet neil/sicp (define (add-interval x y) (make-interval (+ (lower-bound x) (lower-bound y)) (+ (upper-bound x) (upper-bound y)))) (define (mul-interval x y) (let ((p1 (* (lower-bound x) (lower-bound y))) (p2 (* (lower-bound x) (upper-bound y))) (p3 (* (upper-bound x) (low...
null
https://raw.githubusercontent.com/lisp-korea/sicp2014/9e60f70cb84ad2ad5987a71aebe1069db288b680/vvalkyrie/2.1/ex-2-08.scm
scheme
make sub-interval.
#lang planet neil/sicp (define (add-interval x y) (make-interval (+ (lower-bound x) (lower-bound y)) (+ (upper-bound x) (upper-bound y)))) (define (mul-interval x y) (let ((p1 (* (lower-bound x) (lower-bound y))) (p2 (* (lower-bound x) (upper-bound y))) (p3 (* (upper-bound x) (low...
b933c80f97abff182224294be858c17337fd5cc88777687ea2512df7bf9c5d2f
helpshift/hydrox
setup.clj
(ns leiningen.hydrox.setup (:require [clojure.tools.reader.edn :as edn] [clojure.tools.reader.impl.commons :as common] [clojure.tools.reader.impl.utils :as utils] [clojure.tools.reader.reader-types :as reader])) (defn read-keyword [reader initch opts] (let [ch (reader/read-cha...
null
https://raw.githubusercontent.com/helpshift/hydrox/2beb3c56fad43bbf16f07db7ee72c5862978350c/lein/src/leiningen/hydrox/setup.clj
clojure
(ns leiningen.hydrox.setup (:require [clojure.tools.reader.edn :as edn] [clojure.tools.reader.impl.commons :as common] [clojure.tools.reader.impl.utils :as utils] [clojure.tools.reader.reader-types :as reader])) (defn read-keyword [reader initch opts] (let [ch (reader/read-cha...
5e5aa2ff2eedfc95a72d1007db632651c81d7da641758bfae98688163e4bb4c9
babashka/babashka
runner.cljs
(ns markdown.runner (:require [doo.runner :refer-macros [doo-tests]] [markdown.md-test])) (doo-tests 'markdown.md-test)
null
https://raw.githubusercontent.com/babashka/babashka/665ae4dd97535bf72a5ce34a19d624e74e5c4fe8/test-resources/lib_tests/markdown/runner.cljs
clojure
(ns markdown.runner (:require [doo.runner :refer-macros [doo-tests]] [markdown.md-test])) (doo-tests 'markdown.md-test)
2e4038024012d387a0ab843a50112ddd1857dfda15dd120ddbdd72df93b61f8e
pbv/codex
Page.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE FlexibleInstances # # LANGUAGE ScopedTypeVariables # {- Definitions for document and exercise pages -} module Codex.Page where import Text.Pandoc hiding (Code) import qualified Text.Pandoc ( Inline(Code) ) import Text.Pandoc.Walk -- import ...
null
https://raw.githubusercontent.com/pbv/codex/1a5a81965b12f834b436e2165c07120360aded99/src/Codex/Page.hs
haskell
# LANGUAGE OverloadedStrings # Definitions for document and exercise pages import Text.Pandoc.Highlighting (monochrome) import Codex.Policy extract metadata extract document description (blocks) list of accepted languages for an exercise text for submission filled in by default | hide det...
# LANGUAGE FlexibleInstances # # LANGUAGE ScopedTypeVariables # module Codex.Page where import Text.Pandoc hiding (Code) import qualified Text.Pandoc ( Inline(Code) ) import Text.Pandoc.Walk import Text.XmlHtml import Text.Blaze.Renderer.XmlHtml import Data.Maybe imp...
4852712faa73b8b60547037de4ad5ebf03aca69e62430bcd902b321cc671949b
sorawee/fmt
define-match.rkt
#lang racket (define/match (replace-inst lst1 lst2) [('() lst) (cons lst1 lst2)]) (replace-inst '() '(1 2))
null
https://raw.githubusercontent.com/sorawee/fmt/ee441ce6dff2d272b46c3a75a3011a88f04ba127/tests/define-match.rkt
racket
#lang racket (define/match (replace-inst lst1 lst2) [('() lst) (cons lst1 lst2)]) (replace-inst '() '(1 2))
7d604592160e06a033cd8a1dda15434773a995b1f745d929c0a7a08bdd5c6e0c
earl-ducaine/loop-facility-clhs-examples
loop-examples.lisp
6.1.2.1.1 The for - as - arithmetic subclause (let ((x 1)) (loop for i from x by (incf x) to 10 collect i)) ;; => (1 3 5 7 9) (let ((x 1)) (loop for i by (incf x) from x to 10 collect i)) ;; => (2 4 6 8 10) ;;; 6.1.2.1.1.1 Examples of for-as-arithmetic subclause ;; Print some numbers. (loop f...
null
https://raw.githubusercontent.com/earl-ducaine/loop-facility-clhs-examples/7709492e33608cf419595d53bbb6f7844f17aed1/loop-examples.lisp
lisp
=> (1 3 5 7 9) => (2 4 6 8 10) 6.1.2.1.1.1 Examples of for-as-arithmetic subclause Print some numbers. Step incrementally from the default starting value. 6.1.2.1.2.1 Examples of for-as-in-list subclause Print every item in a list. Print every other item in a list. Destructure a list, and sum the x values us...
6.1.2.1.1 The for - as - arithmetic subclause (let ((x 1)) (loop for i from x by (incf x) to 10 collect i)) (let ((x 1)) (loop for i by (incf x) from x to 10 collect i)) (loop for i from 1 to 3 do (print i)) > > 1 > > 2 > > 3 = > NIL Print every third number . (loop for i ...
ac5a6fbb7f658891e6f5244a6d602cda8a746d4b75ab091290be3e3aac589e66
atemerev/erlang_ngondro
fputil.erl
-module(fputil). -author("atemerev"). -export([find_index/2, insert_at/3, delete_at/2, replace_at/3]). find_index(List, Fun) -> find_index(List, Fun, 1). find_index([], _, _) -> not_found; find_index([H | T], Fun, Idx) -> Res = Fun(H), case Res of true -> Idx; _ -> find_index(T, Fun, Idx + 1) end. in...
null
https://raw.githubusercontent.com/atemerev/erlang_ngondro/5cf9449fdd012c4f090686c2c7f2d0bd295d58c8/src/fputil.erl
erlang
-module(fputil). -author("atemerev"). -export([find_index/2, insert_at/3, delete_at/2, replace_at/3]). find_index(List, Fun) -> find_index(List, Fun, 1). find_index([], _, _) -> not_found; find_index([H | T], Fun, Idx) -> Res = Fun(H), case Res of true -> Idx; _ -> find_index(T, Fun, Idx + 1) end. in...
be91045c88e8a365f5f4932d8fbf93a29d78b00e4f24d9b044ea6a0f67616abc
johnlinvc/erruby
erruby_app.erl
-module(erruby_app). -behaviour(application). %% Application callbacks -export([start/2, stop/1]). %% =================================================================== %% Application callbacks %% =================================================================== start(_StartType, _StartArgs) -> erruby_sup:st...
null
https://raw.githubusercontent.com/johnlinvc/erruby/60df66495a01f9dda08bd3f670bfe9dc0661a168/src/erruby_app.erl
erlang
Application callbacks =================================================================== Application callbacks ===================================================================
-module(erruby_app). -behaviour(application). -export([start/2, stop/1]). start(_StartType, _StartArgs) -> erruby_sup:start_link(). stop(_State) -> ok.
4a9aaef4dea953fbcd3a993646698307969d97ceed32ffb21cf6ed92de380ff9
Decentralized-Pictures/T4L3NT
test_voting.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < > (* ...
null
https://raw.githubusercontent.com/Decentralized-Pictures/T4L3NT/6d4d3edb2d73575384282ad5a633518cba3d29e3/src/proto_112_Pt4FJEL6/lib_protocol/test/test_voting.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETH...
e003e44cbece1b67aa97dcd2512a8c187a65c7f1d82a8ace5edb2aaeb9be2658
metabase/toucan
models_test.clj
(ns toucan.models-test (:require [expectations :refer :all] [toucan [db :as db] [test-setup :as test]] [toucan.test-models [category :as category :refer [Category]] [venue :refer [map->VenueInstance Venue]]])) ;; Test types (keyword) : ba...
null
https://raw.githubusercontent.com/metabase/toucan/29a921750f3051dce350255cfbd33512428bc3f8/test/toucan/models_test.clj
clojure
Test types (keyword) should still work when not fetching whole object should also work when setting values Make sure namespaced keywords are preserved come in Test properties (custom property -- timestamp) which should set an appropriate :created-at and :updated-at value which in this case updates :updated-at (...
(ns toucan.models-test (:require [expectations :refer :all] [toucan [db :as db] [test-setup :as test]] [toucan.test-models [category :as category :refer [Category]] [venue :refer [map->VenueInstance Venue]]])) : bar should come back as a ...
6d8ab98a092fa9d121e08ebc872b17ebcfac9f02d4998dcdd89a6fb9f6978b66
dxtr/clsql
postgresql-socket-package.lisp
-*- Mode : LISP ; Syntax : ANSI - Common - Lisp ; Base : 10 -*- ;;;; ************************************************************************* ;;;; FILE IDENTIFICATION ;;;; ;;;; Name: postgresql-socket-package.lisp ;;;; Purpose: Package definition for PostgreSQL interface using sockets Programmers : ...
null
https://raw.githubusercontent.com/dxtr/clsql/8061aae1ecb878954115c7aacd90685a65bf4107/db-postgresql-socket/postgresql-socket-package.lisp
lisp
Syntax : ANSI - Common - Lisp ; Base : 10 -*- ************************************************************************* FILE IDENTIFICATION Name: postgresql-socket-package.lisp Purpose: Package definition for PostgreSQL interface using sockets (), also known as the LLGPL. **********************...
Programmers : Date Started : Feb 2002 This file , part of CLSQL , is Copyright ( c ) 2002 by CLSQL users are granted the rights to distribute and use this software as governed by the terms of the Lisp Lesser GNU Public License (in-package #:cl-user) #+lispworks (require "comm") (defpackage #:pos...
32b15a2815308a348090ecace64cc52cad04de0fae022218ef5d9a98275a3553
cjohansen/pharmacist
test_helper.cljc
(ns pharmacist.test-helper (:require #?(:clj [clojure.core.async :as a] :cljs [cljs.core.async :as a]) #?(:clj [clojure.test :refer [is]] :cljs [cljs.test :refer [is]]) #?(:clj [clojure.spec.alpha :as s] :cljs [cljs.spec.alpha :as s]) #?...
null
https://raw.githubusercontent.com/cjohansen/pharmacist/ecbba7d72aadeb16a42f427ac87afd7b9daa4c22/test/pharmacist/test_helper.cljc
clojure
(ns pharmacist.test-helper (:require #?(:clj [clojure.core.async :as a] :cljs [cljs.core.async :as a]) #?(:clj [clojure.test :refer [is]] :cljs [cljs.test :refer [is]]) #?(:clj [clojure.spec.alpha :as s] :cljs [cljs.spec.alpha :as s]) #?...
01ba27053ba93cd19756cbd5a1789aa07c24c4c43bdda94cfc83a0a8d2b03d96
ice1000/learn
GuessTheArraySpec.hs
module GuessTheArraySpec where import GuessTheArray import Test.Hspec import System.Random functionForGuess :: Integral n => [n] -> Int -> Int -> n functionForGuess ls a b = if elem (abs $ a - b) [1, 2] then ls !! a + ls !! b else error "abs (a - b) is 0 or larger than 2" -- testFun :: Integral n...
null
https://raw.githubusercontent.com/ice1000/learn/4ce5ea1897c97f7b5b3aee46ccd994e3613a58dd/Haskell/CW-Kata/GuessTheArraySpec.hs
haskell
module GuessTheArraySpec where import GuessTheArray import Test.Hspec import System.Random functionForGuess :: Integral n => [n] -> Int -> Int -> n functionForGuess ls a b = if elem (abs $ a - b) [1, 2] then ls !! a + ls !! b else error "abs (a - b) is 0 or larger than 2" testFun :: Integral n => [n] -> [n] test...
6372b5584f8fe2a045b539b832d66de45ad68427408e236dd20a7e262b0261f6
RedPRL/redtt
PersistentTable.ml
module type S = sig type ('k, 'a) t val init : size:int -> ('k, 'a) t val size : ('k, 'a) t -> int val get : 'k -> ('k, 'a) t -> 'a val set : 'k -> 'a -> ('k, 'a) t -> ('k, 'a) t val mem : 'k -> ('k, 'a) t -> bool val remove : 'k -> ('k, 'a) t -> ('k, 'a) t val set_opt : 'k -> 'a option -> ('k, 'a) t -...
null
https://raw.githubusercontent.com/RedPRL/redtt/50689559ff970e33013b8cf8a3bbc8be18ec4e09/src/basis/PersistentTable.ml
ocaml
module type S = sig type ('k, 'a) t val init : size:int -> ('k, 'a) t val size : ('k, 'a) t -> int val get : 'k -> ('k, 'a) t -> 'a val set : 'k -> 'a -> ('k, 'a) t -> ('k, 'a) t val mem : 'k -> ('k, 'a) t -> bool val remove : 'k -> ('k, 'a) t -> ('k, 'a) t val set_opt : 'k -> 'a option -> ('k, 'a) t -...
5fcd84e90f9de9ae84a6e9494906ea97b3bcc29596479d7d1556b4271ed8accf
2600hz/kazoo
trunkstore_app.erl
%%%----------------------------------------------------------------------------- ( C ) 2012 - 2020 , 2600Hz %%% @doc @author %%% 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 /. %%% %%% ...
null
https://raw.githubusercontent.com/2600hz/kazoo/24519b9af9792caa67f7c09bbb9d27e2418f7ad6/applications/trunkstore/src/trunkstore_app.erl
erlang
----------------------------------------------------------------------------- @doc @end ----------------------------------------------------------------------------- Application callbacks ============================================================================== Application callbacks =========================...
( C ) 2012 - 2020 , 2600Hz @author 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 /. -module(trunkstore_app). -behaviour(application). -export([start/2 ,prep_stop/1 ,sto...
512f0c9fb83135c8b8be7876bd2ca2b897156e6f84e89a6065f81ed89df0be3a
elaforge/karya
PlayUtil.hs
Copyright 2013 -- This program is distributed under the terms of the GNU General Public -- License 3.0, see COPYING or -3.0.txt -- | Functions to do with performance. This is split off from "Cmd.Play", which contains play Cmds and their direct support . module Cmd.PlayUtil ( initial_environ , cached_der...
null
https://raw.githubusercontent.com/elaforge/karya/de1b6e8cb0a17870801cc4dd49de8de62eb6c5fe/Cmd/PlayUtil.hs
haskell
This program is distributed under the terms of the GNU General Public License 3.0, see COPYING or -3.0.txt | Functions to do with performance. This is split off from "Cmd.Play", * perform * mute and solo | There are a few environ values that almost everything relies on. Control interpolators rely on this. Look...
Copyright 2013 which contains play Cmds and their direct support . module Cmd.PlayUtil ( initial_environ , cached_derive, uncached_derive , derive_block, run, run_with_dynamic, run_with_constant , is_score_damage_log , get_constant, initial_constant, initial_dynamic , perform_from , p...
cba096917af0da0ab1234f0887d36e6dd43bf295d4c4d41aadec5c94e54efb35
hopv/MoCHi
realTerm.ml
open Util open Combinator include Term * { 6 Auxiliary constructors } let make f = mk_const (Const.Real f) let zero = make 0.0 let one = make 1.0 let of_int n = make (float_of_int n) * { 6 Operators } let neg t = mk_app (mk_const (Const.Neg Type.mk_real)) [t] let rsq t = mk_app (mk_const Const.FRsq) [t] let rcp t...
null
https://raw.githubusercontent.com/hopv/MoCHi/b0ac0d626d64b1e3c779d8e98cb232121cc3196a/fpat/realTerm.ml
ocaml
open Util open Combinator include Term * { 6 Auxiliary constructors } let make f = mk_const (Const.Real f) let zero = make 0.0 let one = make 1.0 let of_int n = make (float_of_int n) * { 6 Operators } let neg t = mk_app (mk_const (Const.Neg Type.mk_real)) [t] let rsq t = mk_app (mk_const Const.FRsq) [t] let rcp t...
bf7b08d75525e05b660e122b00a93648a277ddcaabffbeeb09afbd1976e4b68c
kowainik/treap
Rand.hs
module Test.Rand ( randSpec ) where import Test.Hspec (Spec, describe) import Test.Rand.Cuts (cutsSpec) import Test.Rand.Laws (lawsSpec) import Test.Rand.Query (querySpec) import Test.Rand.Update (updateSpec) randSpec :: Spec randSpec = describe "RTreap" $ do querySpec cutsSpec updateSpec ...
null
https://raw.githubusercontent.com/kowainik/treap/bd59f0ff0a938d7b67ebf5266427e100fce8e487/test/Test/Rand.hs
haskell
module Test.Rand ( randSpec ) where import Test.Hspec (Spec, describe) import Test.Rand.Cuts (cutsSpec) import Test.Rand.Laws (lawsSpec) import Test.Rand.Query (querySpec) import Test.Rand.Update (updateSpec) randSpec :: Spec randSpec = describe "RTreap" $ do querySpec cutsSpec updateSpec ...
598f46c03a5ef6a96d30ab18899d1753418631c575fe7dda5486416489e19d57
akvo/akvo-flow-api
folder.clj
(ns org.akvo.flow-api.datastore.folder (:refer-clojure :exclude [list]) (:require [org.akvo.flow-api.datastore :as ds]) (:import [com.gallatinsystems.survey.domain SurveyGroup] [org.akvo.flow.api.dao FolderDAO])) (defn list [user-id parent-id] (let [folder-dao (FolderDAO.) all-folders (.list...
null
https://raw.githubusercontent.com/akvo/akvo-flow-api/71b070709ea5c0d1b5294f1913549b03a0c375a5/api/src/clojure/org/akvo/flow_api/datastore/folder.clj
clojure
(ns org.akvo.flow-api.datastore.folder (:refer-clojure :exclude [list]) (:require [org.akvo.flow-api.datastore :as ds]) (:import [com.gallatinsystems.survey.domain SurveyGroup] [org.akvo.flow.api.dao FolderDAO])) (defn list [user-id parent-id] (let [folder-dao (FolderDAO.) all-folders (.list...
8ead9ee73d017173fd87698208d45abc52af711d112b2a814346f27a2500eaa9
thephoeron/black-stone
transformer.lisp
-*- Mode : LISP ; Syntax : COMMON - LISP ; Package : BLACK - STONE ; Base : 10 -*- ;;;; file: qclambda/transformer.lisp Copyright ( c ) 2013 - -2015 , " the Phoeron " < //thephoeron.com > ;;;; See LICENSE for additional information. (in-package :black-stone) EOF
null
https://raw.githubusercontent.com/thephoeron/black-stone/c8f1d76d81de3c9862520c8ddac62e73e831ea55/qclambda/transformer.lisp
lisp
Syntax : COMMON - LISP ; Package : BLACK - STONE ; Base : 10 -*- file: qclambda/transformer.lisp See LICENSE for additional information.
Copyright ( c ) 2013 - -2015 , " the Phoeron " < //thephoeron.com > (in-package :black-stone) EOF
b610142f69c52c4d60b9c97f7288a68bfdb0aa26b6df51cffda9089ba7bc079d
bondo/symbolic-execution
Names.hs
module Names (namesExpr, namesStmt, namesStmts, namesModule) where import Data.Set (Set) import qualified Data.Set as Set import Language.Python.Common.AST namesModule :: Module a -> Set String namesModule (Module stmts) = namesStmts stmts namesStmts :: [Statement a] -> Set String namesStmts = Set.unions . map name...
null
https://raw.githubusercontent.com/bondo/symbolic-execution/27b199ec80744745f3b8a953d907678557a4154a/transformer/Names.hs
haskell
Pass, Break, Continue
module Names (namesExpr, namesStmt, namesStmts, namesModule) where import Data.Set (Set) import qualified Data.Set as Set import Language.Python.Common.AST namesModule :: Module a -> Set String namesModule (Module stmts) = namesStmts stmts namesStmts :: [Statement a] -> Set String namesStmts = Set.unions . map name...
07a5e0c8c065152f01e343b593fe68a328b6553d1ac847e763385257c78c7dc1
Simre1/yampa-sdl2
CIE.hs
Copyright ( c ) 2008 , 2009 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 , modify , merge , publish , distri...
null
https://raw.githubusercontent.com/Simre1/yampa-sdl2/c0ad94b9ba50d545f842eaf0916c1acf093514c3/src/Data/Colour/CIE.hs
haskell
Illumination (CIE). depricated cieLuv # DEPRECATED toCIEXYZ "`toCIEXYZ' has been renamed `cieXYZView'" # |Constructs a colour from the given 'Chromaticity' and 'luminance'. ^ 'luminance' |Returns the lightness of a colour with respect to a given white point. ^White point perceptually uniform colour space. If yo...
Copyright ( c ) 2008 , 2009 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 , modify , merge , publish , distri...
43ec3a5b412f36b4bd2aee63acbb2ef7196e8c087660acb812321600fd889e19
typelead/intellij-eta
Import00003.hs
module Import00003 where #if defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ >= 708 import Data.Typeable (Typeable) #else import Data.Typeable (Typeable,Typeable1,mkTyCon3,mkTyConApp,typeOf) #endif
null
https://raw.githubusercontent.com/typelead/intellij-eta/ee66d621aa0bfdf56d7d287279a9a54e89802cf9/plugin/src/test/resources/fixtures/eta/sources/Import00003.hs
haskell
module Import00003 where #if defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ >= 708 import Data.Typeable (Typeable) #else import Data.Typeable (Typeable,Typeable1,mkTyCon3,mkTyConApp,typeOf) #endif
34a80a17ea59e92852a3b17ec2d1751a325aa02575df4db426121a230334b9a6
EduardoRFS/f-omega
ltree.ml
type name = string and expr = | LE_var of name | LE_t_lambda of name * kind option * expr | LE_t_apply of expr * typ_ | LE_e_lambda of name * typ_ option * expr | LE_e_apply of expr * expr | LE_k_alias of name * kind * expr | LE_t_alias of name * typ_ * expr | LE_e_alias of name * expr * expr | LE_an...
null
https://raw.githubusercontent.com/EduardoRFS/f-omega/a694d3a18e3324f107f4c98f87402eb01b22e2d1/src/ltree.ml
ocaml
type name = string and expr = | LE_var of name | LE_t_lambda of name * kind option * expr | LE_t_apply of expr * typ_ | LE_e_lambda of name * typ_ option * expr | LE_e_apply of expr * expr | LE_k_alias of name * kind * expr | LE_t_alias of name * typ_ * expr | LE_e_alias of name * expr * expr | LE_an...
4ddc6425376f473d3825cc6497834e60ad70e22986aa647f6285ee45fd8d4b53
jesuswr/language-bender
SymTableSpec.hs
module FrontEnd.SymTableSpec (spec) where import Test.Hspec import FrontEnd.SymTable spec = do describe "pushEmptyScope" $ do it "empiles a new scope" $ do let t = newTable expected = t{ stScopeStk = [1,0], stNextScope = 2} pushEmptyScope newTable `shouldBe` expe...
null
https://raw.githubusercontent.com/jesuswr/language-bender/3a6d6867add44e5d55fe8a97f481a645cb6d0c35/language-bender/test/FrontEnd/SymTableSpec.hs
haskell
module FrontEnd.SymTableSpec (spec) where import Test.Hspec import FrontEnd.SymTable spec = do describe "pushEmptyScope" $ do it "empiles a new scope" $ do let t = newTable expected = t{ stScopeStk = [1,0], stNextScope = 2} pushEmptyScope newTable `shouldBe` expe...
0e62fd5562f1eec15071be6929aa23b7182d771985a7a3b00e1371b4776f238c
tamarin-prover/tamarin-prover
Test.hs
{-# LANGUAGE CPP #-} {-# LANGUAGE DeriveDataTypeable #-} -- | Copyright : ( c ) 2010 , 2011 & -- License : GPL v3 (see LICENSE) -- Maintainer : < > Portability : GHC only -- Self - test mode for the Tamarin prover . module Main.Mode.Test ( testMode ) where import ...
null
https://raw.githubusercontent.com/tamarin-prover/tamarin-prover/cd9b3a518ee8c2e6c7c5875e2e0fc09f072581c2/src/Main/Mode/Test.hs
haskell
# LANGUAGE CPP # # LANGUAGE DeriveDataTypeable # | License : GPL v3 (see LICENSE) | Self-test mode. | Run the self-test. I 've disabled this part when I 've moved to embedding all data files to simplify packaging . ( 2015 - 04 - 13 ) -------------------------------------------------------...
Copyright : ( c ) 2010 , 2011 & Maintainer : < > Portability : GHC only Self - test mode for the Tamarin prover . module Main.Mode.Test ( testMode ) where import System.Console.CmdArgs.Explicit as CmdArgs import System.Exit import Test.HUnit ...
81aa5a7bbc43dd060d826c3e494ca2701bb83bb8df799d6bcdec39614a75e6aa
facebook/flow
cas_digest.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/flow/f78f36ccd6315430c27652e44a6cb709bdc180aa/src/common/cas_digest/cas_digest.ml
ocaml
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
98adab5faacc9606b11aafa426d6bae05a34af5acee22b01239542d68bee7fdc
semilin/layoup
testsss.lisp
(MAKE-LAYOUT :NAME "testsss" :MATRIX (APPLY #'KEY-MATRIX 'NIL) :SHIFT-MATRIX NIL :KEYBOARD NIL)
null
https://raw.githubusercontent.com/semilin/layoup/27ec9ba9a9388cd944ac46206d10424e3ab45499/data/layouts/testsss.lisp
lisp
(MAKE-LAYOUT :NAME "testsss" :MATRIX (APPLY #'KEY-MATRIX 'NIL) :SHIFT-MATRIX NIL :KEYBOARD NIL)
b61d0e998b466c64c9db7beeb43bde0abc49b55225bbabbb3f6bd4875a1f2975
ocaml-sf/learn-ocaml-corpus
naivereq.ml
(* Addition of requirements. *) let (++) (x : req) (y : req) : req = match x, y with | Infinite, _ | _, Infinite -> Infinite | Finite x, Finite y -> Finite (x + y) (* Comparison of requirements. *) let (<==) (x : req) (y : req) : bool = match x, y with | _, Infinite -> true | Infinite...
null
https://raw.githubusercontent.com/ocaml-sf/learn-ocaml-corpus/7dcf4d72b49863a3e37e41b3c3097aa4c6101a69/exercises/fpottier/pprint/wrong/naivereq.ml
ocaml
Addition of requirements. Comparison of requirements. Determining the space requirement of a document. wrong: recompute the requirement by ignoring the information stored in the tree. Smart constructors. Mandatory: check whether [doc1] is [IfFlat _], so as to avoid nesting [IfFlat] in the left-hand s...
let (++) (x : req) (y : req) : req = match x, y with | Infinite, _ | _, Infinite -> Infinite | Finite x, Finite y -> Finite (x + y) let (<==) (x : req) (y : req) : bool = match x, y with | _, Infinite -> true | Infinite, Finite _ -> false | Finite x, Finite y -> x <= y ...
5ccc231a3460ce8c5f8328a0f57a039fac1dd21c85c5072d1141f5582d402b10
pink-gorilla/webly
lazy.clj
(ns webly.build.lazy (:require [taoensso.timbre :refer-macros [debug info warn error]])) (defmacro wrap-lazy [symbol-fn] (taoensso.timbre/debug "compile-time lazy wrapping: " symbol-fn) `(do (webly.build.lazy/add-available (quote ~symbol-fn)) (webly.build.lazy/show-lazy (shadow.lazy/loadable ~...
null
https://raw.githubusercontent.com/pink-gorilla/webly/d449a506e6101afc16d384300cdebb7425e3a7f3/webly/src/webly/build/lazy.clj
clojure
(ns webly.build.lazy (:require [taoensso.timbre :refer-macros [debug info warn error]])) (defmacro wrap-lazy [symbol-fn] (taoensso.timbre/debug "compile-time lazy wrapping: " symbol-fn) `(do (webly.build.lazy/add-available (quote ~symbol-fn)) (webly.build.lazy/show-lazy (shadow.lazy/loadable ~...
345d4cef3dc65e2c7c794ffe3bfd6e835e81e3e8a153099ec680953828cdbbc6
AbstractMachinesLab/caramel
applicative.mli
module Id : Applicative_intf.S1 with type 'a t = 'a module Make (A : Applicative_intf.S1_base) : Applicative_intf.S1 with type 'a t := 'a A.t
null
https://raw.githubusercontent.com/AbstractMachinesLab/caramel/7d4e505d6032e22a630d2e3bd7085b77d0efbb0c/vendor/ocaml-lsp-1.4.0/vendor/stdune/applicative.mli
ocaml
module Id : Applicative_intf.S1 with type 'a t = 'a module Make (A : Applicative_intf.S1_base) : Applicative_intf.S1 with type 'a t := 'a A.t
73c6d19a085fcdc79d259f1173ace40a74e37747bfbffbce2df791b2c484be48
melange-re/melange
uchar.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/melange-re/melange/246e6df78fe3b6cc124cb48e5a37fdffd99379ed/jscomp/stdlib-412/stdlib_modules/uchar.ml
ocaml
************************************************************************ OCaml ...
Copyright 2014 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the external format_int : string -> int -> string = "caml_format_int" let err_no_pred = "U+0000 has no predecessor...
ecd71dd5421200fedbefbe0789edeae10fe83e06618abf9b1c9dba46234f4e88
ygmpkk/house
IOState.hs
-- #hide ----------------------------------------------------------------------------- -- | -- Module : Process.IOState Copyright : ( c ) 2002 -- License : BSD-style -- -- Maintainer : -- Stability : provisional -- Portability : portable -- IOState defines the GUI environment types and the...
null
https://raw.githubusercontent.com/ygmpkk/house/1ed0eed82139869e85e3c5532f2b579cf2566fa2/ghc-6.2/libraries/ObjectIO/Graphics/UI/ObjectIO/Process/IOState.hs
haskell
#hide --------------------------------------------------------------------------- | Module : Process.IOState License : BSD-style Maintainer : Stability : provisional Portability : portable --------------------------------------------------------------------------- exception handling The ...
Copyright : ( c ) 2002 IOState defines the GUI environment types and their access functions . module Graphics.UI.ObjectIO.Process.IOState ( Context, IOContext, IOSt, GUI, toGUI, appIOEnv, accIOEnv, liftIO, fromGUI , throwGUI, catchGUI, noLS, noLS1 , InputTrack(..), InputTrackKind(..)...
7c43b402f63a381ee7dd39c5bc053c7b996d05c564ac9c02f5a8ab07d059c9fa
lancelet/wgpu-hs
WGPUErrorType.hs
# LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE PatternSynonyms # # LANGUAGE ScopedTypeVariables # # LANGUAGE NoImplicitPrelude # -- This file was generated by wgpu-raw-hs-codegen on: 2021 - 08 - 25T10:02:03.522705 -- Using wgpu-native git hash: b10496e7eed9349f0fd541e6dfe5029cb436de74 wgpu - native ( ) m...
null
https://raw.githubusercontent.com/lancelet/wgpu-hs/42d7931cdd793970bf4844906b382d908bbb196f/wgpu-raw-hs/src/WGPU/Raw/Generated/Enum/WGPUErrorType.hs
haskell
This file was generated by wgpu-raw-hs-codegen on: Using wgpu-native git hash:
# LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE PatternSynonyms # # LANGUAGE ScopedTypeVariables # # LANGUAGE NoImplicitPrelude # 2021 - 08 - 25T10:02:03.522705 b10496e7eed9349f0fd541e6dfe5029cb436de74 wgpu - native ( ) module WGPU.Raw.Generated.Enum.WGPUErrorType where import Data.Word (Word32) import F...
b7a497d869d5db688dc6ffaef3dc0cf05882b4c4e9e0e605853f54bde10c46d5
NecklaceTeam/necklace
LexerSpec.hs
module LexerSpec (spec) where import SpecHelper ( hspec, describe, it, shouldBe, Spec ) import Prelude hiding(lex) import Compiler.Lexer spec :: Spec spec = describe "Lexer" $ do describe "Comments" $ do it "ignores comments" $ do lex "~~Some comment" `shouldBe` Right [Lexeme (AlexPn (-1) (-1) (-1)) Token...
null
https://raw.githubusercontent.com/NecklaceTeam/necklace/d2d633310603846816e194c4dfb493df666bb7e2/test/LexerSpec.hs
haskell
module LexerSpec (spec) where import SpecHelper ( hspec, describe, it, shouldBe, Spec ) import Prelude hiding(lex) import Compiler.Lexer spec :: Spec spec = describe "Lexer" $ do describe "Comments" $ do it "ignores comments" $ do lex "~~Some comment" `shouldBe` Right [Lexeme (AlexPn (-1) (-1) (-1)) Token...
e205c5f2d3cb7dd3c547b6dda2c4c2f8c7d19fed2dc5fdae369577c8fabc2c9d
DASpringate/Cochrane_scraper
core_test.clj
(ns cochrane-scraper.core-test (:require [clojure.test :refer :all] [cochrane-scraper.core :refer :all])) (deftest a-test (testing "FIXME, I fail." (is (= 0 1))))
null
https://raw.githubusercontent.com/DASpringate/Cochrane_scraper/9768d3796b24a0ff2a5a27f7688db1ef89dccca8/test/cochrane_scraper/core_test.clj
clojure
(ns cochrane-scraper.core-test (:require [clojure.test :refer :all] [cochrane-scraper.core :refer :all])) (deftest a-test (testing "FIXME, I fail." (is (= 0 1))))
1ed8b06ff31281e706f7d4af2a8bda50b779eb48b43fc3656297f4603b33168d
wdebeaum/step
pathname.lisp
;;;; ;;;; pathname.lisp for unix ;;;; , , 29 Jul 2002 $ I d : pathname.lisp , v 1.1.1.1 2005/01/14 19:47:58 ferguson Exp $ ;;;; (in-package :trips) ;;; ;;; Pathnames in TRIPS are specified with a semicolon separator ;;; (like the syntax of logical pathnames, but we have given up on ;;; logical pathnames themse...
null
https://raw.githubusercontent.com/wdebeaum/step/f38c07d9cd3a58d0e0183159d4445de9a0eafe26/src/config/lisp/unix/pathname.lisp
lisp
pathname.lisp for unix Pathnames in TRIPS are specified with a semicolon separator (like the syntax of logical pathnames, but we have given up on logical pathnames themselves as being too restrictive). These routines look after mapping that syntax onto the underlying operating system's conventions. path))
, , 29 Jul 2002 $ I d : pathname.lisp , v 1.1.1.1 2005/01/14 19:47:58 ferguson Exp $ (in-package :trips) (let* ((separator #\/)) (defun make-trips-pathname (path) "Create a pathname for referencing PATH in the TRIPS directory tree." (parse-namestring (format nil "~A~A" *TRIPS_BASE* path))))
a9baed7376142a1b0bc46cc39aa2464905dd3f78435dcc334d1eaa46c302cbf3
goldfirere/video-resources
Wordle.hs
module Wordle where import qualified Data.Set as S import qualified Data.Map.Strict as M import qualified Data.Vector as V import qualified Data.Text as T -- KNOWN BUG: Does not work for words with repeated letters import Words ------------------------- -- utility lettersInWord :: WordleWord -> S.Set Char lettersI...
null
https://raw.githubusercontent.com/goldfirere/video-resources/f05c971be3c877e50fa6aa2912c709732338addf/2022-wordle/Wordle.hs
haskell
KNOWN BUG: Does not work for words with repeated letters ----------------------- utility ----------------------- responses to guesses guess answer pattern of gray, yellow, and green boxes ----------------------- Game state for each letter in the alphabet, either: 2) it's not in the word 3) it's in the wor...
module Wordle where import qualified Data.Set as S import qualified Data.Map.Strict as M import qualified Data.Vector as V import qualified Data.Text as T import Words lettersInWord :: WordleWord -> S.Set Char lettersInWord word = V.foldl' (flip S.insert) S.empty (getLetters word) allLocations :: [Location] allLo...
1f69f6c8a971f691fe190b60a75fd1469a2081f5fa815e0e91fc641b22dbb2d5
victornicolet/parsynt
Sketch.ml
* This file is part of Parsynt . Author : < > Parsynt 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 ( at your option ) any later vers...
null
https://raw.githubusercontent.com/victornicolet/parsynt/d3f530923c0c75537b92c2930eb882921f38268c/src/singleloop/Sketch.ml
ocaml
**************************************************************************** First iter Populate the types ---------------------------------------------------------------------------- Sketch -> Rosette sketch * The name of the structure used to represent the state of the loop * Choose between a very restricted...
* This file is part of Parsynt . Author : < > Parsynt 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 ( at your option ) any later vers...
1fa598920285c792b0949eb959b8924de00f7faee3cd57be7dd6a3e261ccccab
degree9/enterprise
idle.cljs
(ns degree9.idle (:require [javelin.core :as j] [degree9.debug :as dbg])) (dbg/defdebug debug "degree9:enterprise:idle") ;; State Helpers ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (def ^:dynamic *default-events* ["click" "keydown" "scroll" "mousemove" "mouseenter" "mousewheel"...
null
https://raw.githubusercontent.com/degree9/enterprise/36e4f242c18b1dde54d5a15c668b17dc800c01ff/src/degree9/idle.cljs
clojure
State Helpers ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; Public Idle State ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Public Idle Methods ;;;;;;;;;;;;;;;;;;;;;;;;;...
(ns degree9.idle (:require [javelin.core :as j] [degree9.debug :as dbg])) (dbg/defdebug debug "degree9:enterprise:idle") (def ^:dynamic *default-events* ["click" "keydown" "scroll" "mousemove" "mouseenter" "mousewheel" "touchstart" "touchmove"]) (defn- time-now "Returns the current time in mi...
9d4846454ab0707265a28b75da195b6c7ad2561e5e162d29281d836b3dedccc2
joearms/crypto_tutorial
ez_crypt_rsa.erl
-module(ez_crypt_rsa). -compile(export_all). %% Do do %% refactor so we onlt call ez_crypt %% timing and size tests test() -> {E,D,N} = keys(), Pub = {E,N}, Pri = {D,N}, Mega = mega_byte(), test1(<<"1234567890">>, Pub, Pri), test1(<<"12345678901234567890231739127397193712937917391273917397...
null
https://raw.githubusercontent.com/joearms/crypto_tutorial/e487699017dbd102f67d18f466ff44445d10ba3e/src/ez_crypt_rsa.erl
erlang
Do do refactor so we onlt call ez_crypt timing and size tests Encrypt 2 Note to self I could call bit_size(N) on the modulo to find the bit size. The padded binary is actually not the value used in encrypt_1. This has to be converted to an integer so I'll set a lower value Now handle anything we can throw...
-module(ez_crypt_rsa). -compile(export_all). test() -> {E,D,N} = keys(), Pub = {E,N}, Pri = {D,N}, Mega = mega_byte(), test1(<<"1234567890">>, Pub, Pri), test1(<<"12345678901234567890231739127397193712937917391273917397193719379173913792312379137917391739173971937197391739173971293719aaab">>, ...
27050fe3633beb71fd54a38c72cf9cc654dc4b4286e12f60aeceedf1a7f47d16
maiste/equinoxe
mock_user.ml
open Mock let test_get_user = Alcotest.test_case "Users.get_user" `Quick @@ fun () -> let raw_json = {|{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "short_id": "string", "first_name": "mock first", "last_name": "mock last", "full_name": "string", "email": "", ...
null
https://raw.githubusercontent.com/maiste/equinoxe/ab5735056d97f4a9ca318e23255ee84625e5626b/tests/mock_user.ml
ocaml
open Mock let test_get_user = Alcotest.test_case "Users.get_user" `Quick @@ fun () -> let raw_json = {|{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "short_id": "string", "first_name": "mock first", "last_name": "mock last", "full_name": "string", "email": "", ...
fa049591de25aea3693712168977e3472cd73462e749f3f27844a0e27efb1359
dabcoder/stocks
RecentStats.hs
# LANGUAGE DeriveGeneric # module Net.IEX.RecentStats (RecentStats(..)) where import Data.Either import Data.Maybe import Data.Aeson import GHC.Generics data RecentStats = RecentStats { date :: String, volume :: Integer, routedVolume :: Integer, marketShare :: Double, isHalfday :: Bool, litVolume :: Inte...
null
https://raw.githubusercontent.com/dabcoder/stocks/aad9bb3e74b2abf54cc09dd10dc66152881a32b8/src/Net/IEX/RecentStats.hs
haskell
# LANGUAGE DeriveGeneric # module Net.IEX.RecentStats (RecentStats(..)) where import Data.Either import Data.Maybe import Data.Aeson import GHC.Generics data RecentStats = RecentStats { date :: String, volume :: Integer, routedVolume :: Integer, marketShare :: Double, isHalfday :: Bool, litVolume :: Inte...
cb25aa42a45970f153a143a3de9cb216032898ee450d6bab62fa540f2aaf3904
borodust/notalone
util.lisp
(cl:in-package :notalone) (defvar *black* (vec4 0 0 0 1)) (defvar *white* (vec4 1 1 1 1)) (defvar *viewport-width* 800) (defvar *viewport-height* 600) (defvar *viewport-origin* (vec2 0 0)) (defvar *viewport-center* (vec2 (/ *viewport-width* 2) (/ *viewport-height* 2))) (define-constant +diagonal-unit+ 0.70710677 ...
null
https://raw.githubusercontent.com/borodust/notalone/f914ec7b63618f917a976f49ff9fcd57b72a1b1d/util.lisp
lisp
Rendering Position Moving Keyboard
(cl:in-package :notalone) (defvar *black* (vec4 0 0 0 1)) (defvar *white* (vec4 1 1 1 1)) (defvar *viewport-width* 800) (defvar *viewport-height* 600) (defvar *viewport-origin* (vec2 0 0)) (defvar *viewport-center* (vec2 (/ *viewport-width* 2) (/ *viewport-height* 2))) (define-constant +diagonal-unit+ 0.70710677 ...
c68e091520881e6e466ee214d3b18e021f0a40b23238307515e60d32ed99296a
lerouxrgd/celtuce
project.clj
(load-file "../../.deps-versions.clj") (defproject celtuce-core celtuce-version :description "An idiomatic Clojure Redis client wrapping the Java client Lettuce" :url "" :license {:name "Apache License 2.0" :url "-2.0"} :dependencies [[org.clojure/clojure ~clj-version] [io.lettuce/l...
null
https://raw.githubusercontent.com/lerouxrgd/celtuce/c8c501f8fbb00780a7e4218c908b81d5ac06b74a/modules/celtuce-core/project.clj
clojure
(load-file "../../.deps-versions.clj") (defproject celtuce-core celtuce-version :description "An idiomatic Clojure Redis client wrapping the Java client Lettuce" :url "" :license {:name "Apache License 2.0" :url "-2.0"} :dependencies [[org.clojure/clojure ~clj-version] [io.lettuce/l...
08eca41e71c61f3b14a04dd8fae8220ceae8355ca6e5c2d071cb46f4669ece75
BinaryAnalysisPlatform/bap
image_common.ml
open Core_kernel[@@warning "-D"] open Bap_types.Std module Location = struct type t = { addr : addr; len : int; } [@@deriving bin_io, compare, fields, sexp] end type location = Location.t [@@deriving bin_io, compare, sexp] module type Memory_iterators = sig type t type 'a m val fold : ?word_si...
null
https://raw.githubusercontent.com/BinaryAnalysisPlatform/bap/253afc171bbfd0fe1b34f6442795dbf4b1798348/lib/bap_image/image_common.ml
ocaml
open Core_kernel[@@warning "-D"] open Bap_types.Std module Location = struct type t = { addr : addr; len : int; } [@@deriving bin_io, compare, fields, sexp] end type location = Location.t [@@deriving bin_io, compare, sexp] module type Memory_iterators = sig type t type 'a m val fold : ?word_si...
642536d8e797f704f138c7a0b47c44372f9069a86ebabf718a6c4d69cf399bc0
programaker-project/Programaker-Core
automate_channel_engine_sup.erl
%%%------------------------------------------------------------------- %% @doc automate_channel_engine top level supervisor. %% @end %%%------------------------------------------------------------------- -module(automate_channel_engine_sup). -behaviour(supervisor). %% API -export([start_link/0]). %% Supervisor call...
null
https://raw.githubusercontent.com/programaker-project/Programaker-Core/ef10fc6d2a228b2096b121170c421f5c29f9f270/backend/apps/automate_channel_engine/src/automate_channel_engine_sup.erl
erlang
------------------------------------------------------------------- @doc automate_channel_engine top level supervisor. @end ------------------------------------------------------------------- API Supervisor callbacks ==================================================================== API functions ===============...
-module(automate_channel_engine_sup). -behaviour(supervisor). -export([start_link/0]). -export([init/1]). -define(SERVER, ?MODULE). -include("../../automate_common_types/src/definitions.hrl"). start_link() -> supervisor:start_link({local, ?SERVER}, ?MODULE, []). Child : : { Id , StartFunc , Restart , Shu...
a703b972035d4075b4a34455c79d95916c2af89e6cd9fd142d3e1153bacad255
nuvla/ui
table.cljs
(ns sixsq.nuvla.ui.utils.table (:require [sixsq.nuvla.ui.utils.semantic-ui :as ui] [sixsq.nuvla.ui.utils.style :as style])) (defn wrapped-table ([table] (wrapped-table nil nil table)) ([title table] (wrapped-table nil title table)) ([icon title table] [ui/Segment style/autoscroll-x (w...
null
https://raw.githubusercontent.com/nuvla/ui/c10704eabd339489722fa53bc99f11f21103c070/code/src/cljs/sixsq/nuvla/ui/utils/table.cljs
clojure
(ns sixsq.nuvla.ui.utils.table (:require [sixsq.nuvla.ui.utils.semantic-ui :as ui] [sixsq.nuvla.ui.utils.style :as style])) (defn wrapped-table ([table] (wrapped-table nil nil table)) ([title table] (wrapped-table nil title table)) ([icon title table] [ui/Segment style/autoscroll-x (w...
8b7a9edfdb8be65fdd556a7d529fd423402357ac89530fac7ae58cb6091bf50d
facebook/flow
jsx_test.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/flow/ae40a30708ef59923a335da3243eaef29d83454d/src/parser_utils/output/__tests__/js_layout_generator/jsx_test.ml
ocaml
TODO: valueless attributes shouldnt print trailing spaces when last Single blank line is preserved Multiple blank lines are condensed to a single blank line
* 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...
9eb1e41dd8f3c87ea2784cb695a544d8fe83e4c7aea0d37d950b8d42c6e0c553
bmeurer/ocamljit2
checkpoints.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet Cr...
null
https://raw.githubusercontent.com/bmeurer/ocamljit2/ef06db5c688c1160acc1de1f63c29473bcd0055c/debugger/checkpoints.ml
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Objective Caml port by and 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 . ...
2cc8f7bc1e92ff6bcd563a1e3cf0a7bf2076c068fd3e3d90c6ba62948750fdbb
argp/bap
cfg_pp.ml
(** Pretty printing for CFGs. *) open Cfg module CS = Cfg.SSA module CA = Cfg.AST module type DOTTYG = sig type t module V : Graph.Sig.COMPARABLE module E : sig type t type label val label : t -> label val src : t -> V.t val dst : t -> V.t end val iter_vertex : (V.t -> unit) -> t -...
null
https://raw.githubusercontent.com/argp/bap/2f60a35e822200a1ec50eea3a947a322b45da363/ocaml/cfg_pp.ml
ocaml
* Pretty printing for CFGs. Just for convenience Use this as an initialization routine
open Cfg module CS = Cfg.SSA module CA = Cfg.AST module type DOTTYG = sig type t module V : Graph.Sig.COMPARABLE module E : sig type t type label val label : t -> label val src : t -> V.t val dst : t -> V.t end val iter_vertex : (V.t -> unit) -> t -> unit val iter_edges_e : (E.t...
90a88d9922d5a53c1a07cdbf64361771795567e69b7463f8fc6e53d49211576d
kmonad/kmonad
Main.hs
| Module : Main Description : The entry - point to KMonad Copyright : ( c ) , 2019 License : MIT Maintainer : Stability : experimental Portability : non - portable ( MPTC with FD , FFI to Linux - only c - code ) Module : Main Description : The entry-point to KMonad Copyright...
null
https://raw.githubusercontent.com/kmonad/kmonad/e9c111a94e1c72af80a0f1df5fd1607c5d6c694c/app/Main.hs
haskell
* The entry-point to KMonad
| Module : Main Description : The entry - point to KMonad Copyright : ( c ) , 2019 License : MIT Maintainer : Stability : experimental Portability : non - portable ( MPTC with FD , FFI to Linux - only c - code ) Module : Main Description : The entry-point to KMonad Copyright...
696527e76872c9b5ae78e1250a74ada2666f3b77222a0b682e78bb0ed9a27f03
carl-eastlund/dracula
syntax-meta.rkt
#lang racket/base (require racket/contract racket/require (path-up "self/require.rkt") (cce-in syntax)) (define ((expand-keyword message) stx) (syntax-error stx message)) (define refresh-identifier (compose syntax-local-introduce syntax-local-get-shadower)) (define-struct syntax-meta (value transformer)...
null
https://raw.githubusercontent.com/carl-eastlund/dracula/a937f4b40463779246e3544e4021c53744a33847/modular/syntax-meta.rkt
racket
#lang racket/base (require racket/contract racket/require (path-up "self/require.rkt") (cce-in syntax)) (define ((expand-keyword message) stx) (syntax-error stx message)) (define refresh-identifier (compose syntax-local-introduce syntax-local-get-shadower)) (define-struct syntax-meta (value transformer)...
184727d70fdba0a86d823e5542fedc35d130c20886ad4b7867c058ee93af4cc3
JunSuzukiJapan/cl-reex
sum-test.lisp
(defpackage sum-test (:use :cl :cl-reex :cl-reex-test.logger :prove) (:shadowing-import-from :cl-reex :skip)) (in-package :sum-test) NOTE : To run this test file , execute ` ( asdf : test - system : cl - reex ) ' in your Lisp . (plan 1) ;; blah blah blah. (defparameter logger (make-instance 'logge...
null
https://raw.githubusercontent.com/JunSuzukiJapan/cl-reex/94928c7949c235b41902138d9e4a5654b92d67eb/tests/sum-test.lisp
lisp
blah blah blah.
(defpackage sum-test (:use :cl :cl-reex :cl-reex-test.logger :prove) (:shadowing-import-from :cl-reex :skip)) (in-package :sum-test) NOTE : To run this test file , execute ` ( asdf : test - system : cl - reex ) ' in your Lisp . (plan 1) (defparameter logger (make-instance 'logger)) (defparameter ...
1dba2987c605b05e5aaec75cb4a9644b22b9a947d21efd1080a267040460a04b
danielfm/bencode
unsupported_test.clj
(ns bencode.type.unsupported-test (:use [clojure.test] [bencode.core])) (deftest unsupported-encoding (testing "Encoding unsupported data types" (are [type] (thrown? IllegalArgumentException (bencode type)) (float 10) (double 10) (bigdec 10)))) (deftest unsupported-decoding (testing "Decodi...
null
https://raw.githubusercontent.com/danielfm/bencode/4b47e1c94394c1b5b74171f053873a5df772a8c7/src/test/clojure/bencode/type/unsupported_test.clj
clojure
(ns bencode.type.unsupported-test (:use [clojure.test] [bencode.core])) (deftest unsupported-encoding (testing "Encoding unsupported data types" (are [type] (thrown? IllegalArgumentException (bencode type)) (float 10) (double 10) (bigdec 10)))) (deftest unsupported-decoding (testing "Decodi...
da26bf77f64a8bdd0d85aebb40e5777ea0126fd09566a0bb729159310deb8bd2
digikar99/py4cl2-cffi
lispifiers.lisp
(in-package :py4cl2-cffi) (defvar *py-type-lispifier-table* ()) (defvar +py-empty-tuple+) (defvar +py-empty-tuple-pointer+) (defvar +py-none+) (defvar +py-none-pointer+) (defmacro define-lispifier (name (pyobject-var) &body body) (declare (type string name)) `(setf (assoc-value *py-type-lispifier-table* ,name :t...
null
https://raw.githubusercontent.com/digikar99/py4cl2-cffi/dcea8bf191be1e10c239b5bc46e350e80cd6439a/src/lispifiers.lisp
lisp
FIXME: Strides TODO: Test these aka find reference in documentation for why this works FIXME: What about names in modules? (print (list pyobject pyobject-type pytype-name)) (if (pyobject-tracked-p pyobject) (make-tracked-python-object :pointer pyobject :type pyobject-type)) (make-python-object :pointer...
(in-package :py4cl2-cffi) (defvar *py-type-lispifier-table* ()) (defvar +py-empty-tuple+) (defvar +py-empty-tuple-pointer+) (defvar +py-none+) (defvar +py-none-pointer+) (defmacro define-lispifier (name (pyobject-var) &body body) (declare (type string name)) `(setf (assoc-value *py-type-lispifier-table* ,name :t...
339a518d545181b1ba0224a2bdcd1d7f46565024c51265c58cc31e24c240074c
lspitzner/exference
Unify.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE MonadComprehensions # module Language.Haskell.Exference.Core.Internal.Unify ( unify , unifyOffset , unifyRight , unifyRightEqs , unifyRightOffset , TypeEq (..) ) where import Language.Haskell.Exference.Core.Types import Language.Haskell.Exference.Core.TypeUtils...
null
https://raw.githubusercontent.com/lspitzner/exference/d8a336f8b9df905e54173339f78ba892daa3f688/src/Language/Haskell/Exference/Core/Internal/Unify.hs
haskell
# LANGUAGE BangPatterns # # UNPACK # # UNPACK # unification of types. examples: unify v C -> ([v=>C], []) unify C v -> ([], [v=>C]) unify v w -> ([], [w=>v]) up here is the same control flow again , with the deconsing and the growing of the tail ... maybe make your own hof for now ? oh wait you also modify the ta...
# LANGUAGE MonadComprehensions # module Language.Haskell.Exference.Core.Internal.Unify ( unify , unifyOffset , unifyRight , unifyRightEqs , unifyRightOffset , TypeEq (..) ) where import Language.Haskell.Exference.Core.Types import Language.Haskell.Exference.Core.TypeUtils import qualified Data.Map.Str...
2e5fcb8f6dd05d5bc8d87ca7b0a70cac1d3d134095142469db9e17dc2c9a50a5
naproche/naproche
Main.hs
module Main where import qualified SAD.Main main :: IO () main = SAD.Main.main
null
https://raw.githubusercontent.com/naproche/naproche/e557e333e1754014653331d6cadd6ab0692b4c83/app/Main.hs
haskell
module Main where import qualified SAD.Main main :: IO () main = SAD.Main.main
636c05ffcb28319de4e5b1786a23a632a430cc4c003b591db5a88b08ba823f29
janestreet/core
stable_unit_test.mli
(** The tests generated by these functors are run like any other unit tests: by the inline test runner when the functor is applied. See [stable_unit_test_intf.ml] for documentation regarding the argument module types. *) open! Import open! Stable_unit_test_intf * We provide separate access to sexp serial...
null
https://raw.githubusercontent.com/janestreet/core/b0be1daa71b662bd38ef2bb406f7b3e70d63d05f/core/src/stable_unit_test.mli
ocaml
* The tests generated by these functors are run like any other unit tests: by the inline test runner when the functor is applied. See [stable_unit_test_intf.ml] for documentation regarding the argument module types. * Include all of the above tests. * See [stable_unit_test_intf.ml] for documentation.
open! Import open! Stable_unit_test_intf * We provide separate access to sexp serialization and deserialization tests because some stable types will have varying sexp serializations . Notably , Time.sexp_of_t depends on the local timezone . For such types it is still important to check that all th...
4bf63540844b1373cb511deee11d014514c9815c884458abaa2c389677a9f77c
sharetribe/harmony
health_check_test.clj
(ns harmony.integration.health-check-test (:require [clojure.test :refer :all] [com.stuartsierra.component :as component] [clj-http.client :as client] [harmony.integration.db-test-util :as db-test-util] [harmony.config :as config] [harmony.system :as system]...
null
https://raw.githubusercontent.com/sharetribe/harmony/756d1388e11a62773c83d0276da4c4f1d942ea91/test/harmony/integration/health_check_test.clj
clojure
(ns harmony.integration.health-check-test (:require [clojure.test :refer :all] [com.stuartsierra.component :as component] [clj-http.client :as client] [harmony.integration.db-test-util :as db-test-util] [harmony.config :as config] [harmony.system :as system]...
448b62ac9c7ef2b52e1b96964e85f8741f78bc2cb62eb92116b48cc104abb7ed
lexi-lambda/racket-alexis-pvector
info.rkt
#lang info (define collection 'multi) (define name "alexis-pvector") (define version "0.2.0") (define implies '("pvector")) (define deps '("alexis-collections" "base" "pvector" "rackunit-lib")) (define build-deps '("racket-doc" "scribble-lib"))
null
https://raw.githubusercontent.com/lexi-lambda/racket-alexis-pvector/f03b60714a0fd35ca61dd41307701074a2253d87/info.rkt
racket
#lang info (define collection 'multi) (define name "alexis-pvector") (define version "0.2.0") (define implies '("pvector")) (define deps '("alexis-collections" "base" "pvector" "rackunit-lib")) (define build-deps '("racket-doc" "scribble-lib"))
00f91099284363c18108ea495efff2b8d0057daacf98de9edaec36724def41bb
PagingMatt/osilo
Auth.ml
open Nocrypto let src = Logs.Src.create ~doc:"logger for osilo authorisation" "osilo.auth" module Log = (val Logs.src_log src : Logs.LOG) module Crypto : Macaroons.CRYPTO = struct open Cryptography.Serialisation let hmac ~key message = Nocrypto.Hash.SHA512.hmac ~key:(Cstruct.of_string key) (Cstru...
null
https://raw.githubusercontent.com/PagingMatt/osilo/3ef63a3c0970444c19bd5abf52ad9db154829904/src/Auth.ml
ocaml
open Nocrypto let src = Logs.Src.create ~doc:"logger for osilo authorisation" "osilo.auth" module Log = (val Logs.src_log src : Logs.LOG) module Crypto : Macaroons.CRYPTO = struct open Cryptography.Serialisation let hmac ~key message = Nocrypto.Hash.SHA512.hmac ~key:(Cstruct.of_string key) (Cstru...
e41165fe77269164ceacdad004892805d9310616f2e328f59b4c085d03c8e81d
ocaml/odoc
a.mli
(** Module A has no dependency *) type t
null
https://raw.githubusercontent.com/ocaml/odoc/ed60dca7bdc7670953433ba60f63faf008d20a71/test/integration/depends.t/a.mli
ocaml
* Module A has no dependency
type t
8bf9af3bdc9d96b11b72df13e3bd5be9de89084151dad11e98eb94af020fceb9
jordanthayer/ocaml-search
run_planner.ml
* @author jtd7 @since 2011 - 11 - 20 @author jtd7 @since 2011-11-20 *) let data_root = Experiments.data_root ^ "planner" and instance_root = "planning3" and solver_binary = ref (Experiments.bin_root ^ "downward") and dry_run = ref true and instance_attributes' = ["type", "instance"] and instanc...
null
https://raw.githubusercontent.com/jordanthayer/ocaml-search/57cfc85417aa97ee5d8fbcdb84c333aae148175f/experiments/run_planner.ml
ocaml
the leading , isn't a problem apparently at some point maybe you want to parameterize the weight list ***************** Some bounded suboptimal search runs ********************* this should probably be replaced by a more generic do batch caller this should probably be replaced by a more generic do batch caller ...
* @author jtd7 @since 2011 - 11 - 20 @author jtd7 @since 2011-11-20 *) let data_root = Experiments.data_root ^ "planner" and instance_root = "planning3" and solver_binary = ref (Experiments.bin_root ^ "downward") and dry_run = ref true and instance_attributes' = ["type", "instance"] and instanc...
9f0e9a8a70166f3b281e5ca1c36dd29ab37940c5a24b1903248bbb9db8ef1287
emotiq/emotiq
name.lisp
(in-package emotiq/wallet) (defvar *default-wallet-name* "My Wallet") (defun get-wallet-named (name) (values (wallet-deserialize :path (emotiq-wallet-path :name name)) name))
null
https://raw.githubusercontent.com/emotiq/emotiq/9af78023f670777895a3dac29a2bbe98e19b6249/src/wallet/name.lisp
lisp
(in-package emotiq/wallet) (defvar *default-wallet-name* "My Wallet") (defun get-wallet-named (name) (values (wallet-deserialize :path (emotiq-wallet-path :name name)) name))
0c5c4abf4c27cf71250e21c16063bd31204b8fa9031e8f51367a54b759e45647
racket/rackunit
info.rkt
#lang info (define test-responsibles '((all (jay noel))))
null
https://raw.githubusercontent.com/racket/rackunit/f94364891f201f90c055adb1521e5f038ce75411/rackunit-test/tests/rackunit/info.rkt
racket
#lang info (define test-responsibles '((all (jay noel))))
a05b5344389c3167e30512ed60d9cf4b18e4759e79865011f6112900b45baa6b
sol/hpack
Dsl.hs
# LANGUAGE CPP # # LANGUAGE RecordWildCards # # LANGUAGE GeneralizedNewtypeDeriving # module Hpack.Render.Dsl ( -- * AST Element (..) , Value (..) -- * Render , RenderSettings (..) , CommaStyle (..) , defaultRenderSettings , Alignment (..) , Nesting , render -- * Utils , sortFieldsBy #ifdef TEST , Lines (..) , ren...
null
https://raw.githubusercontent.com/sol/hpack/f1aa0c48eb696d66be8c1bcf68528253eab09178/src/Hpack/Render/Dsl.hs
haskell
* AST * Render * Utils
# LANGUAGE CPP # # LANGUAGE RecordWildCards # # LANGUAGE GeneralizedNewtypeDeriving # module Hpack.Render.Dsl ( Element (..) , Value (..) , RenderSettings (..) , CommaStyle (..) , defaultRenderSettings , Alignment (..) , Nesting , render , sortFieldsBy #ifdef TEST , Lines (..) , renderValue , addSortKey #endif ) w...
20b9e7c58b882fb6795e5f6a8f118157708aae9272c4a0243f35fe972ef915a1
jeffshrager/biobike
cih.lisp
;;; -*- mode: Lisp; Syntax: Common-Lisp; Package: WEBLISTENER; -*- (in-package :weblistener) ;;; +=========================================================================+ | Copyright ( c ) 2002 , 2003 , 2004 JP , , | ;;; | | ;;; | Pe...
null
https://raw.githubusercontent.com/jeffshrager/biobike/5313ec1fe8e82c21430d645e848ecc0386436f57/BioLisp/Weblisten/cih.lisp
lisp
-*- mode: Lisp; Syntax: Common-Lisp; Package: WEBLISTENER; -*- +=========================================================================+ | | | Permission is hereby granted, free of charge, to any person obtaining | | a copy of this softwar...
(in-package :weblistener) | Copyright ( c ) 2002 , 2003 , 2004 JP , , | | " Software " ) , to deal in the Software without restriction , including | | distribute , sublicense , and/or sell copies of the Software , and to | | permit persons to whom the Software is furnished to do so , subje...
4bec9a2528e56668105810e8a46f4fa4fb1fb4dbccb99cea445e5e85474631c6
gedge-platform/gs-broker
cow_mimetypes.erl
Copyright ( c ) 2013 - 2018 , < > %% %% Permission to use, copy, modify, and/or distribute this software for any %% purpose with or without fee is hereby granted, provided that the above %% copyright notice and this permission notice appear in all copies. %% THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISC...
null
https://raw.githubusercontent.com/gedge-platform/gs-broker/c4c1ad39e563537d46553eae1363317cf75aff26/broker-server/deps/cowlib/src/cow_mimetypes.erl
erlang
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVE...
Copyright ( c ) 2013 - 2018 , < > THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS ALL WARRANTIES ANY SPECIAL , DIRECT , INDIRECT , OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE , DATA OR PROFITS , WHETHER IN AN -module(cow_mimetypes). -export([all/1]). -export([w...
3078fab0e1d3a721220342b55433764dc31c11527f52ec48dd83b97b991b7310
jeffshrager/biobike
timestamp.lisp
-*- Package : cl - user ; mode : lisp ; base : 10 ; Syntax : Common - Lisp ; -*- (in-package :cl-user) ;;; +=========================================================================+ | Copyright ( c ) 2002 , 2003 , 2004 JP , , | ;;; | ...
null
https://raw.githubusercontent.com/jeffshrager/biobike/5313ec1fe8e82c21430d645e848ecc0386436f57/BioLisp/Scripts/timestamp.lisp
lisp
mode : lisp ; base : 10 ; Syntax : Common - Lisp ; -*- +=========================================================================+ | | | Permission is hereby granted, free of charge, to any person obtaining | | a copy of this software and as...
(in-package :cl-user) | Copyright ( c ) 2002 , 2003 , 2004 JP , , | | " Software " ) , to deal in the Software without restriction , including | | distribute , sublicense , and/or sell copies of the Software , and to | | permit persons to whom the Software is furnished to do so , subject t...
68241e5ec5b970b34cc55cf41502acf82243a8583d1361f61a5ec4313f0679f8
hiroshi-unno/coar
smtlib2.ml
Parser for SmtLib2 open Core open Common open Common.Ext open Ast open Ast.LogicOld (* TODO : should be replaced with appropriate configuration (dummy instantiation) *) module Debug = Debug.Make(val Debug.Config.disable) open Parsexp module Sexp = Ppx_sexp_conv_lib.Sexp let rec sort_of_sexp dtenv = function | ...
null
https://raw.githubusercontent.com/hiroshi-unno/coar/90a23a09332c68f380efd4115b3f6fdc825f413d/lib/SMT/smtlib2.ml
ocaml
TODO : should be replaced with appropriate configuration (dummy instantiation) constant let sorts = List.Assoc.find_exn ~equal:Stdlib.(=) penv (Ident.Pvar ident) in no arguments function logical operation binder predicate symbol application let print_endline "entry @ let"; TODO: support ':named' well ...
Parser for SmtLib2 open Core open Common open Common.Ext open Ast open Ast.LogicOld module Debug = Debug.Make(val Debug.Config.disable) open Parsexp module Sexp = Ppx_sexp_conv_lib.Sexp let rec sort_of_sexp dtenv = function | Sexp.Atom "Int" -> T_int.SInt | Sexp.Atom "Real" -> T_real.SReal | Sexp.Atom "Boo...
4d2b6dd5c4ee10c4f125766095ae58627874f3827f613b3f6801f61932324bd9
ocaml/dune
stanza_common.mli
open Import open Dune_lang.Decoder module Pkg : sig val decode : Package.t t val resolve : Dune_project.t -> Package.Name.t -> (Package.t, User_message.t) Result.t val field : stanza:string -> Package.t fields_parser val field_opt : ?check:unit t -> unit -> Package.t option fields_parser val default_...
null
https://raw.githubusercontent.com/ocaml/dune/0a6ba087f185cf898ec46f4488e4dcf4a90dda93/src/dune_rules/stanza_common.mli
ocaml
* [preprocess] and [preprocessor_deps] fields * [instrumentation] multi field
open Import open Dune_lang.Decoder module Pkg : sig val decode : Package.t t val resolve : Dune_project.t -> Package.Name.t -> (Package.t, User_message.t) Result.t val field : stanza:string -> Package.t fields_parser val field_opt : ?check:unit t -> unit -> Package.t option fields_parser val default_...
c838497d312b76d2bb638fae6f5d9a158aab95e009999c2fea39fb8128abc390
ocaml-multicore/domainslib
multi_channel.ml
* Copyright ( c ) 2021 , < > * * Permission to use , copy , modify , and/or distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND T...
null
https://raw.githubusercontent.com/ocaml-multicore/domainslib/121c5518faaa8bf82c2deea30876641c18d071bb/lib/multi_channel.ml
ocaml
avoid the lock if we possibly can this waiter is already released, it might have found something on a poll Didn't find anything, prepare to block: * - enqueue our wait block in the waiter queue * - check the queue again * - go to sleep if our wait block has not been notified ...
* Copyright ( c ) 2021 , < > * * Permission to use , copy , modify , and/or distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND T...
418d935f027f7fdfcad734b6315008e71c97afe79464d8820a8f05e3ff346c98
tek/helic
YankConfig.hs
{-# options_haddock prune #-} , Internal module Helic.Data.YankConfig where data YankConfig = YankConfig { agent :: Maybe Text } deriving stock (Eq, Show, Generic) deriving anyclass (Default)
null
https://raw.githubusercontent.com/tek/helic/055b2ffa063936ad4ae6249c9e6e0603482baaa9/packages/helic/lib/Helic/Data/YankConfig.hs
haskell
# options_haddock prune #
, Internal module Helic.Data.YankConfig where data YankConfig = YankConfig { agent :: Maybe Text } deriving stock (Eq, Show, Generic) deriving anyclass (Default)