_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
d36798c963e7bd3bc6849e2727be2a014954cf499d189171ad74ddc60ccf4bc3
0xNaN/kademlia
kbucket.erl
-module(kbucket). -export([start/2]). -export([loop/1]). -export([put/2]). -export([set_peer/2]). -export([is_closest/3]). -export([k_closest_to/3]). -export([closest_contacts/2]). -export([refresh/1]). -type contact() :: {pid(), integer()} . -record(kbucket, {peer, k, contacts, keylength}). start(K, Keylength) -> ...
null
https://raw.githubusercontent.com/0xNaN/kademlia/c902f66986d937024422e96c2ba010b14ae01dff/apps/kademlia/src/kbucket.erl
erlang
-compile([export_all]).
-module(kbucket). -export([start/2]). -export([loop/1]). -export([put/2]). -export([set_peer/2]). -export([is_closest/3]). -export([k_closest_to/3]). -export([closest_contacts/2]). -export([refresh/1]). -type contact() :: {pid(), integer()} . -record(kbucket, {peer, k, contacts, keylength}). start(K, Keylength) -> ...
f199a27be02abf2b016f12c956991bfe7ef724b3250a4b530779644a9b88e7f6
mirage/irmin
dict.ml
* Copyright ( c ) 2018 - 2022 Tarides < > * * Permission to use , copy , modify , and 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...
null
https://raw.githubusercontent.com/mirage/irmin/ad9bae5783662bd99be7d8ecef28b2990939ceef/src/irmin-pack/unix/dict.ml
ocaml
Refill is only called once for a RW instance
* Copyright ( c ) 2018 - 2022 Tarides < > * * Permission to use , copy , modify , and 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...
f225fd63939bf0e7cf79b37e5eebad420868c5c40f808c3a20e811bc4b97d3a6
jdstmporter/Haskell-MapReduce
Interface.hs
# LANGUAGE FlexibleInstances # | Test Interface module for use with Test Agents implementing -- "Distribution.TestSuite". Exports @tests::['ATest']@ containing two tests , one which compares the total number of words computed by the MapReduce algorithm with that provided , and one which -- computes word...
null
https://raw.githubusercontent.com/jdstmporter/Haskell-MapReduce/cca1e0d17f9ddbd72a66733ac1b57531c2c95dbc/src/Parallel/MapReduce/WordCount/Interface.hs
haskell
"Distribution.TestSuite". Exports @tests::['ATest']@ containing computes word counts with a non-MapReduce algorithm and compares results on a word-by-word basis. * Tests * Types * Utilities | The 'Test' type, wrapping a test and its familiar name | The test's name | The test itself ...
# LANGUAGE FlexibleInstances # | Test Interface module for use with Test Agents implementing two tests , one which compares the total number of words computed by the MapReduce algorithm with that provided , and one which module Parallel.MapReduce.WordCount.Interface ( tests, ATest,...
81e0eb1c36cb17a3d8fc1d02e00c3ddf05507f6ef6d3fd040e18492e09d8a740
seriyps/pe4kin
pe4kin_util.erl
@author < > ( C ) 2016 , %%% @doc %%% Utility functions %%% @end Created : 25 May 2016 by < > -module(pe4kin_util). -export([slice/2, slice/3, slice_pos/2, slice_pos/3]). -export([strlen/1]). -export([strip/1, strip/2]). -export([to_lower/1]). -export([to_binary/1]). @doc like binary : but and in ...
null
https://raw.githubusercontent.com/seriyps/pe4kin/1f076af74abcdc7997ab60a74184fa46cc2b59fa/src/pe4kin_util.erl
erlang
@doc Utility functions @end slice(_, 0) -> <<>>; <<C/utf8, (slice(Rest, Size - 1))/binary>>. @doc lowercase ASCII binary
@author < > ( C ) 2016 , Created : 25 May 2016 by < > -module(pe4kin_util). -export([slice/2, slice/3, slice_pos/2, slice_pos/3]). -export([strlen/1]). -export([strip/1, strip/2]). -export([to_lower/1]). -export([to_binary/1]). @doc like binary : but and in UTF-8 codepoints , not bytes slice(Utf8,...
a8a44a6785097553b525662d64a0512e70a356fb6e4f5075d780b0beb55ccc61
jeffshrager/biobike
sample-config.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/sample-config.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...
30358fe586bcda3acc207cd6695d0bc5005e225bffffa9edf03ceca49a47fc87
eponai/sulolive
functions.cljc
(ns eponai.common.database.functions #?(:cljs (:require-macros [eponai.common.database.functions :refer [def-dbfn]])) (:require [datascript.core :as datascript] [taoensso.timbre #?(:clj :refer :cljs :refer-macros) [debug info]] #?(:clj [datomic.api :as datomic]) #?(:clj [taoensso.encore :refer [if-c...
null
https://raw.githubusercontent.com/eponai/sulolive/7a70701bbd3df6bbb92682679dcedb53f8822c18/src/eponai/common/database/functions.cljc
clojure
No edit for this eav, go update it. last-edit is greater than created-at. Give up. We're just checking if it's even possible to edit this attr. Return true for now. Else, check if there has been an update to this Keep as much data from the dates as possible If not byte-array already, create one. TODO: Really on...
(ns eponai.common.database.functions #?(:cljs (:require-macros [eponai.common.database.functions :refer [def-dbfn]])) (:require [datascript.core :as datascript] [taoensso.timbre #?(:clj :refer :cljs :refer-macros) [debug info]] #?(:clj [datomic.api :as datomic]) #?(:clj [taoensso.encore :refer [if-c...
f37d36eca3e6d021c5745c919010e704486767d6e26ba8a80afbbbfbe8815dfb
spawnfest/eep49ers
digraph_utils.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 1999 - 2016 . All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applic...
null
https://raw.githubusercontent.com/spawnfest/eep49ers/d1020fd625a0bbda8ab01caf0e1738eb1cf74886/lib/stdlib/src/digraph_utils.erl
erlang
%CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific l...
Copyright Ericsson AB 1999 - 2016 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(digraph_utils). Implementation based on Launchbury , : Graph Algorithms with a Functional Flavour , in ...
4534935d20fa6a7d56e05676a1653626d333da897d930dfbec2720133ce5cb0a
microsoft/same-ish
test_runner.cljs
Copyright ( c ) Microsoft Corporation . All rights reserved . Licensed under the MIT License . ;; This test runner is intended to be run from the command line (ns same.test-runner (:require [figwheel.main.testing :refer [run-tests-async]] ;; require all the namespaces that you want to test ...
null
https://raw.githubusercontent.com/microsoft/same-ish/23ce1ee17d70877d5793a78a0084615d6ecccc56/test/same/test_runner.cljs
clojure
This test runner is intended to be run from the command line require all the namespaces that you want to test
Copyright ( c ) Microsoft Corporation . All rights reserved . Licensed under the MIT License . (ns same.test-runner (:require [figwheel.main.testing :refer [run-tests-async]] [same.core-test] [same.diff-test] [same.platform-test])) (defn -main [& _args] (run-tests-async 500...
c6e8f4d5819d669a88bde0095cfa18443aabd855e2e56665be60c4eafb620b13
flavioc/cl-hurd
file-reparent.lisp
(in-package :hurd) (defcfun ("file_reparent" %file-reparent) err (file port) (parent port) (new-file port-pointer)) (defun file-reparent (file parent) "Return a new port for 'file' that lookups parent to 'parent'." (declare (type fixnum file parent)) (with-foreign-pointer (new-file (foreign-type-size '...
null
https://raw.githubusercontent.com/flavioc/cl-hurd/982232f47d1a0ff4df5fde2edad03b9df871470a/hurd/fs/file-reparent.lisp
lisp
(in-package :hurd) (defcfun ("file_reparent" %file-reparent) err (file port) (parent port) (new-file port-pointer)) (defun file-reparent (file parent) "Return a new port for 'file' that lookups parent to 'parent'." (declare (type fixnum file parent)) (with-foreign-pointer (new-file (foreign-type-size '...
1bcdd2e0670aa9546483d8e1a3b77c83fa08db63866aec8794217f75a0c7199b
timbod7/haskell-chart
example9.hs
import Graphics.Rendering.Chart import Graphics.Rendering.Chart.Backend.Cairo import Data.Colour import Data.Colour.Names import Control.Lens import Data.Default.Class import System.Random import System.Environment(getArgs) import ExampleStocks -- demonstrate Candles chart = toRenderable layout where layout = l...
null
https://raw.githubusercontent.com/timbod7/haskell-chart/8c5a823652ea1b4ec2adbced4a92a8161065ead6/wiki-examples/example9.hs
haskell
demonstrate Candles
import Graphics.Rendering.Chart import Graphics.Rendering.Chart.Backend.Cairo import Data.Colour import Data.Colour.Names import Control.Lens import Data.Default.Class import System.Random import System.Environment(getArgs) import ExampleStocks chart = toRenderable layout where layout = layoutlr_title .~"Stock ...
c0b768714f943049cc40df7a1ba6e74f7dc09861ae8545dc4a2a8592e33193ad
ygrek/ocaml-extlib
test_BitSet.ml
* ExtLib Testing Suite * Copyright ( C ) 2004 * * 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 2.1 of the License , or ( at your option ) any la...
null
https://raw.githubusercontent.com/ygrek/ocaml-extlib/0779f7a881c76f9aca3d5445e2f063ba38a76167/test/test_BitSet.ml
ocaml
Should've raised an exception! Should NOT come here! Should NOT come here!
* ExtLib Testing Suite * Copyright ( C ) 2004 * * 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 2.1 of the License , or ( at your option ) any la...
129476b2f341e087611ea13940902cfe359c05f3bf1a222766d564b457dd3d2a
dakk/yallo-lang
gen_utils.ml
let pp_str fmt str = Format.fprintf fmt "%s" str let pp_list sep pp = Format.pp_print_list ~pp_sep:(fun fmt () -> Format.fprintf fmt "%(%)" sep) pp let pp_capit fmt i = Format.fprintf fmt "%s" (String.capitalize_ascii i) let sfmt = Format.str_formatter let sget = Format.flush_str_formatter let temp_...
null
https://raw.githubusercontent.com/dakk/yallo-lang/55a1b379306c9f113bd707e78b6e0c1be81bb7be/lib/helpers/gen_utils.ml
ocaml
let pp_str fmt str = Format.fprintf fmt "%s" str let pp_list sep pp = Format.pp_print_list ~pp_sep:(fun fmt () -> Format.fprintf fmt "%(%)" sep) pp let pp_capit fmt i = Format.fprintf fmt "%s" (String.capitalize_ascii i) let sfmt = Format.str_formatter let sget = Format.flush_str_formatter let temp_...
4c0de4318915a13a0ded2e894504ca6e8a07b08fdf35b44c6be2ceddc3dfea11
shenxs/about-scheme
间奏-数字的本质.rkt
#lang racket 在计算机硬件中 , ;; 但是,人们在用纸笔进行计算时,并不关心一个数字到底有多少位数,因为理论上我们可以处理任意长度的数字 ;; 编程语言在实现数字计算时,如果从硬件角度考虑(因为容器的大小限制了一个数字的大小),那么计算机计算起来速度非常快 ;; 如果我们希望长度可以不受限制,就需要把数字合理的放到这些容器里面,读取时在把他们正确的拿出来,这之间就需要耗费时间 ;; 因此大多数的语言实现都会采用前者 第四章的间奏曲包括以下几个部分 ;; -怎样把数字用固定大小的数据表示,以及如何在此基础上进行计算 ;; -第二和第三部分强调了这么做的最基本的两个问题算数上溢(数据太大放不下)和算数下溢(数...
null
https://raw.githubusercontent.com/shenxs/about-scheme/d458776a62cb0bbcbfbb2a044ed18b849f26fd0f/HTDP/%E9%97%B4%E5%A5%8F-%E6%95%B0%E5%AD%97%E7%9A%84%E6%9C%AC%E8%B4%A8.rkt
racket
但是,人们在用纸笔进行计算时,并不关心一个数字到底有多少位数,因为理论上我们可以处理任意长度的数字 编程语言在实现数字计算时,如果从硬件角度考虑(因为容器的大小限制了一个数字的大小),那么计算机计算起来速度非常快 如果我们希望长度可以不受限制,就需要把数字合理的放到这些容器里面,读取时在把他们正确的拿出来,这之间就需要耗费时间 因此大多数的语言实现都会采用前者 -怎样把数字用固定大小的数据表示,以及如何在此基础上进行计算 -第二和第三部分强调了这么做的最基本的两个问题算数上溢(数据太大放不下)和算数下溢(数据精度太大无法表示) -最后似乎时介绍了racket教学语言的数字系统如何工作,以及计算数字时事情会变得多遭 --...
#lang racket 在计算机硬件中 , 第四章的间奏曲包括以下几个部分 使用科学计数法表示 由两部分组成系数和指数 , N Number N - > Inex make an instance of Inex after checking the arguments (define-struct inex [mantissa sign exponent]) (define (create-inex m s e) (cond [(and (<= 0 m 99) (<= 0 e 99) (or (= s 1) (= s -1))) (make-inex m s e)] [e...
fee2aae1d0f60c4a8c98520c91384d74cbec86353b88af5467f047041b8be627
namin/inc
tests-6.3-req.scm
(add-tests-with-string-output-noboot "peek-char" [(let () (load "self.scm") (load "reader.scm") (let ((f (open-input-file "reader.scm"))) (peek-char f))) => "#\\;\n"] [(let () (load "self.scm") (load "reader.scm") (let ((f (open-input-file "reader.scm"))) (peek-char f)...
null
https://raw.githubusercontent.com/namin/inc/3f683935e290848485f8d4d165a4f727f6658d1d/src/tests-6.3-req.scm
scheme
(add-tests-with-string-output-noboot "peek-char" [(let () (load "self.scm") (load "reader.scm") (let ((f (open-input-file "reader.scm"))) (peek-char f))) => "#\\;\n"] [(let () (load "self.scm") (load "reader.scm") (let ((f (open-input-file "reader.scm"))) (peek-char f)...
95426c75c34df872f9fdc98692a21f6692ab039c6d8505c92d0ac4b0cae48848
vindarel/cl-cookieweb
packages.lisp
;;; ;;; define helper packages, ;;; the models, ;;; the web, ;;; and the base package that relies on all of them. ;;; (defpackage {{ cookiecutter.project_name }}/utils (:use :cl :log4cl) (:export #:format-date #:i18n-load #:_ #:parse-iso-date) (:documentation "Utilities t...
null
https://raw.githubusercontent.com/vindarel/cl-cookieweb/367fd7d768ec8bb3d5f13380445023b3cd5524b1/%7B%7Bcookiecutter.repo_name%7D%7D/src/packages.lisp
lisp
define helper packages, the models, the web, and the base package that relies on all of them.
(defpackage {{ cookiecutter.project_name }}/utils (:use :cl :log4cl) (:export #:format-date #:i18n-load #:_ #:parse-iso-date) (:documentation "Utilities that do not depend on models.")) (defpackage {{ cookiecutter.project_name }}/models (:use :cl) (:export :connect ...
fd37a820253f640d15bf4b68df33d16417b9be04f506f6a29ad4b8998906739b
bhaskara/programmable-reinforcement-learning
asdf.lisp
This is asdf : Another System Definition Facility . $ Revision : 1.1 $ ;;; ;;; Feedback, bug reports, and patches are all welcome: please mail to < > . But note first that the canonical ;;; source for asdf is presently the cCLan CVS repository at ;;; <URL:-bin/viewcvs.cgi/cclan/asdf/> ;;; ;;; If you obtained t...
null
https://raw.githubusercontent.com/bhaskara/programmable-reinforcement-learning/8afc98116a8f78163b3f86076498d84b3f596217/lisp/external/asdf/asdf.lisp
lisp
Feedback, bug reports, and patches are all welcome: please mail to source for asdf is presently the cCLan CVS repository at <URL:-bin/viewcvs.cgi/cclan/asdf/> If you obtained this copy from anywhere else, and you experience trouble using it, or find bugs, you may want to check at the location above for a more r...
This is asdf : Another System Definition Facility . $ Revision : 1.1 $ < > . But note first that the canonical bugs . There are usually two " supported " revisions - the CVS HEAD Copyright ( c ) 2001 - 2003 and contributors " Software " ) , to deal in the Software without restriction , including d...
09c32e9d1b79f824f1fc73f541362411f612a71388a78d187067684b1c2a37e6
korya/efuns
asttypes.mli
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/korya/efuns/78b21d9dff45b7eec764c63132c7a564f5367c30/ocamlsrc/compat/3.00%2B22/include/asttypes.mli
ocaml
********************************************************************* Objective Caml ...
, 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 . $ I d : asttypes.mli , v 1.1 2001/02/...
1938c1f32eefc2b9cc9092bc8a94e87c211abc025e8e9d68a526f2cab1073669
screenshotbot/screenshotbot-oss
image.lisp
;;;; Copyright 2018-Present Modern Interpreters Inc. ;;;; 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 /. (uiop:define-package :screenshotbot/api/image (:use #:cl #:alexandria ...
null
https://raw.githubusercontent.com/screenshotbot/screenshotbot-oss/3e8542acc515ab629b78930c121e1cf52425676b/src/screenshotbot/api/image.lisp
lisp
Copyright 2018-Present Modern Interpreters Inc. (content-length (parse-integer (hunchentoot:header-in* :content-length))) check again! could've been verified by now
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 /. (uiop:define-package :screenshotbot/api/image (:use #:cl #:alexandria #:screenshotbot/api/core #:screenshotbot/model/...
71b1e854dacab745f97299021caea63ea5fe91a142562793f3215e7dd4722402
haslab/HAAP
Tarefa6_2017li1g180.hs
# LANGUAGE PatternGuards # module Tarefa6_2017li1g180 where import BotHugo180 import LI11718 import OracleT3 import OracleT1 import OracleT2 import Test.QuickCheck.Gen import Data.List import Data.Maybe --import Safe --import Debug.Trace bot :: Double -> Jogo -> Int -> Acao bot t e i = if odd ( floor t ) then BotHug...
null
https://raw.githubusercontent.com/haslab/HAAP/5acf9efaf0e5f6cba1c2482e51bda703f405a86f/examples/plab/svn/2017li1g180/src/Tarefa6_2017li1g180.hs
haskell
import Safe import Debug.Trace
# LANGUAGE PatternGuards # module Tarefa6_2017li1g180 where import BotHugo180 import LI11718 import OracleT3 import OracleT1 import OracleT2 import Test.QuickCheck.Gen import Data.List import Data.Maybe bot :: Double -> Jogo -> Int -> Acao bot t e i = if odd ( floor t ) then BotHugo180.bot t e i else botNuno t e i b...
ddc86ed8e924504d9ab5c5b488a9c5826ec0d3f4338715954a5dedb5e4c97829
gwkkwg/trivial-shell
ecl.lisp
(in-package #:trivial-shell) (defun shell-command (command input) (error 'unsupported-function-error :function 'shell-command)) (defun %os-process-id () (error 'unsupported-function-error :function 'os-process-id)) (defun %get-env-var (name) (ext:getenv name)) (defun %exit (code) (ext:exit code))
null
https://raw.githubusercontent.com/gwkkwg/trivial-shell/e02ec191b34b52deca5d1c4ee99d4fa13b8772e0/dev/ecl.lisp
lisp
(in-package #:trivial-shell) (defun shell-command (command input) (error 'unsupported-function-error :function 'shell-command)) (defun %os-process-id () (error 'unsupported-function-error :function 'os-process-id)) (defun %get-env-var (name) (ext:getenv name)) (defun %exit (code) (ext:exit code))
a8151e17eb9035738bbd21b96922835af0d497dd1f0de5915c84311433a3d989
jumarko/clojure-experiments
python.clj
(ns clojure-experiments.stats.python (:require [fastmath.vector :as fmv])) compare NumPy ndarray operations performance with clojure See ' Python for Data Analysis ' jupyter notebooks ;;; See also - ' Fast , Native Speed , Vector Computations in Clojure ' : - Matrix Multiplication in Clojure vs Numpy : -m...
null
https://raw.githubusercontent.com/jumarko/clojure-experiments/f0f9c091959e7f54c3fb13d0585a793ebb09e4f9/src/clojure_experiments/stats/python.clj
clojure
See also Numpy: my_arr = numpy.arange(1000000) using primitive vector via `vector-of` also doesn't help Using arrays => still not great Try fastmath => unfortunately, not faster :(
(ns clojure-experiments.stats.python (:require [fastmath.vector :as fmv])) compare NumPy ndarray operations performance with clojure See ' Python for Data Analysis ' jupyter notebooks - ' Fast , Native Speed , Vector Computations in Clojure ' : - Matrix Multiplication in Clojure vs Numpy : -multiplication...
082089ca972128e24a0e82e9e05ef21288db27532c9663dfef4a852c61c2f0c0
5HT/ant
Primitives.ml
open XNum; open Types; open Runtime; open Unicode.Types; open Unicode.SymbolTable; we can not open Unicode because of the name clash with Types module UChar = Unicode.UChar; module Format = Unicode.Format; value rec uc_list_to_char_list str = match str with [ [] -> Nil | [c::cs] -> List (ref (Char c)) (ref...
null
https://raw.githubusercontent.com/5HT/ant/6acf51f4c4ebcc06c52c595776e0293cfa2f1da4/VM/Private/Primitives.ml
ocaml
control types logic comparisons general arithmetic integer arithmetic "real" arithmetic lists FIX: tuples and lists If |n| is an integer we remove the suffix "/1". format_string s d x X r R a A . + % [ - ] % FIX: map %% to % in fmt_string parse <key-val> parse <c...
open XNum; open Types; open Runtime; open Unicode.Types; open Unicode.SymbolTable; we can not open Unicode because of the name clash with Types module UChar = Unicode.UChar; module Format = Unicode.Format; value rec uc_list_to_char_list str = match str with [ [] -> Nil | [c::cs] -> List (ref (Char c)) (ref...
35a253b3f0797b4ddd02f3eaee53ec5d13260cc355a8dda18b14ca45edbfb78c
input-output-hk/project-icarus-importer
Timestamp.hs
-- | Timestamp/diff types and helpers. module Pos.Core.Slotting.Timestamp ( Timestamp (..) , _Timestamp , timestampF , parseTimestamp , getCurrentTimestamp , diffTimestamp , addMicrosecondsToTimestamp , timestampToPosix , timestampSeconds , timestam...
null
https://raw.githubusercontent.com/input-output-hk/project-icarus-importer/36342f277bcb7f1902e677a02d1ce93e4cf224f0/core/src/Pos/Core/Slotting/Timestamp.hs
haskell
| Timestamp/diff types and helpers. | Timestamp is a number which represents some point in time. It is type class. The only necessary knowledge is that difference between first so that there wouldn't be a “µ”. | Specialized formatter for 'Timestamp' data type. | Attempt to parse a 'Timestamp' out of a 'Text' valu...
module Pos.Core.Slotting.Timestamp ( Timestamp (..) , _Timestamp , timestampF , parseTimestamp , getCurrentTimestamp , diffTimestamp , addMicrosecondsToTimestamp , timestampToPosix , timestampSeconds , timestampToUTCTimeL , TimeDiff (..) ...
ed59c176d121dd2f81497fbd6a2ec65cc8a90ebcebdcf88cc25eb9774ac487aa
tari3x/csec-modex
simplify.mli
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Cryptographic protocol verifier * * * ...
null
https://raw.githubusercontent.com/tari3x/csec-modex/5ab2aa18ef308b4d18ac479e5ab14476328a6a50/deps/cryptoverif1.12/src/simplify.mli
ocaml
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Cryptographic protocol verifier * * * ...
6d2ac5762bfe507c09031a1f0c0527b0ceb1f66e0a2ad2e3a67d276fc4bc15b0
appleshan/cl-http
http-client-substrate-4-4.lisp
-*- Mode : LISP ; Syntax : Ansi - common - lisp ; Package : HTTP ; Base : 10 ; Patch - File : T -*- Patch file for HTTP - CLIENT - SUBSTRATE version 4.4 Reason : Handle HTTP 1.1 servers that do not implement 100 - continue status codes . ;;; ;;; Function (CLOS:METHOD HTTP::SERVER-HTTP-VERSION-ON-PORT (T T)): - ...
null
https://raw.githubusercontent.com/appleshan/cl-http/a7ec6bf51e260e9bb69d8e180a103daf49aa0ac2/lispm/client/patch/http-client-substrate-4/http-client-substrate-4-4.lisp
lisp
Syntax : Ansi - common - lisp ; Package : HTTP ; Base : 10 ; Patch - File : T -*- Function (CLOS:METHOD HTTP::SERVER-HTTP-VERSION-ON-PORT (T T)): - Function (CLOS:METHOD HTTP::NOTE-SERVER-HTTP-VERSION-ON-PORT (T T T)): - Function HTTP::GET-HOST-PORT-HTTP-SERVER-PROPERTY: - Function (CLOS:METHOD HTTP::GET-HOST...
Patch file for HTTP - CLIENT - SUBSTRATE version 4.4 Reason : Handle HTTP 1.1 servers that do not implement 100 - continue status codes . Function ( CLOS : METHOD ( CL : SETF HTTP::GET - HOST - PORT - HTTP - SERVER - PROPERTY ) ( T T T T ) ): - CLOS class HTTP::BASIC - CONNECTION : add plist . Function ( ...
80fb9a1f7db7bb251312c8276624dd70d49466bf16f5e84a9e73f52987b2c387
frenchy64/fully-satisfies
non_leaky_macros_test.clj
TODO move to non - leaky - macros.clojure.core - test (ns io.github.frenchy64.fully-satisfies.non-leaky-macros-test (:refer-clojure :exclude [locking binding with-bindings sync with-local-vars with-in-str dosync with-precision with-loading-context with-redefs ...
null
https://raw.githubusercontent.com/frenchy64/fully-satisfies/0cdcdee80a1e84fa224ed49cad20a1ca1f34f930/test/io/github/frenchy64/fully_satisfies/non_leaky_macros_test.clj
clojure
TODO move to non - leaky - macros.clojure.core - test (ns io.github.frenchy64.fully-satisfies.non-leaky-macros-test (:refer-clojure :exclude [locking binding with-bindings sync with-local-vars with-in-str dosync with-precision with-loading-context with-redefs ...
8cd8baa85fa8c08029db917374a00588ffc971fe423213b48082be704406aef1
fwcd/curry-language-server
Uri.hs
-- | Accurate (canonicalized) mappings between URIs and file paths. module Curry.LanguageServer.Utils.Uri ( filePathToUri , uriToFilePath , filePathToNormalizedUri , normalizedUriToFilePath , normalizeUriWithPath ) where import qualified Language.LSP.Types as J import System.Directory filePath...
null
https://raw.githubusercontent.com/fwcd/curry-language-server/993106098b4b9ed3aa13fbc2618db79624e560a9/src/Curry/LanguageServer/Utils/Uri.hs
haskell
| Accurate (canonicalized) mappings between URIs and file paths.
module Curry.LanguageServer.Utils.Uri ( filePathToUri , uriToFilePath , filePathToNormalizedUri , normalizedUriToFilePath , normalizeUriWithPath ) where import qualified Language.LSP.Types as J import System.Directory filePathToUri :: FilePath -> IO J.Uri filePathToUri = (J.filePathToUri <$>) ...
702766db6f25b352ecfd2a88ebdcef79b3b5e824b603af7ae7a861d8fe2168ec
clojure/tools.analyzer
warn_earmuff.clj
Copyright ( c ) , Rich Hickey & contributors . ;; The use and distribution terms for this software are covered by the ;; Eclipse Public License 1.0 (-1.0.php) ;; which can be found in the file epl-v10.html at the root of this distribution. ;; By using this software in any fashion, you are agreeing to be b...
null
https://raw.githubusercontent.com/clojure/tools.analyzer/268aa68e79e5dd9dad036d134991d0b5d803cb57/src/main/clojure/clojure/tools/analyzer/passes/warn_earmuff.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
Copyright ( c ) , Rich Hickey & contributors . (ns clojure.tools.analyzer.passes.warn-earmuff (:require [clojure.tools.analyzer.utils :refer [dynamic?]])) (defn warn-earmuff "Prints a warning to *err* if the AST node is a :def node and the var name contains earmuffs but the var is not marked dynamic" {...
c15bb51f68b594a89ccf61bebbb125e238934c7195358e783535efe2ca6c18c6
racket/gui
mrmenu.rkt
#lang racket/base (require racket/class racket/list (prefix-in wx: "kernel.rkt") (prefix-in wx: "wxme/keymap.rkt") "lock.rkt" "const.rkt" "helper.rkt" "check.rkt" "wx.rkt" "app.rkt" "wxmenu.rkt" "mrtop.rkt" "mrm...
null
https://raw.githubusercontent.com/racket/gui/d1fef7a43a482c0fdd5672be9a6e713f16d8be5c/gui-lib/mred/private/mrmenu.rkt
racket
Most of the work is in the item. Anything that appears in a menubar or (e.g., changing the title or enabled state). A popup menu, created as an instance of popup-menu%, has no item. A menu bar is created as a menu-bar%, given a frame as its parent. The frame must not already have a menu bar. Plain labeled i...
#lang racket/base (require racket/class racket/list (prefix-in wx: "kernel.rkt") (prefix-in wx: "wxme/keymap.rkt") "lock.rkt" "const.rkt" "helper.rkt" "check.rkt" "wx.rkt" "app.rkt" "wxmenu.rkt" "mrtop.rkt" "mrm...
ff8b15718ff71e27ae85fa84c2d8431f5acd1189e6be680cd79dcf3e1404ac29
talw/crisp-compiler
Options.hs
module Options ( CompilerOptions(..) , getOptions ) where import Data.Maybe (isNothing) import System.Environment (getProgName) import System.Exit (exitFailure, exitSuccess) import System.Console.GetOpt (ArgDescr(..), ArgOrder(..), OptDescr(..), getOpt, usag...
null
https://raw.githubusercontent.com/talw/crisp-compiler/1c4d6e9897520e8089ae329d961aeeeadc4648a4/src/Options.hs
haskell
One can run quoridor at local play, server host or client join modes returns them parsed into an Options data value. if something fails in the parsing (upon which, a usageInfo will be displayed) helpers
module Options ( CompilerOptions(..) , getOptions ) where import Data.Maybe (isNothing) import System.Environment (getProgName) import System.Exit (exitFailure, exitSuccess) import System.Console.GetOpt (ArgDescr(..), ArgOrder(..), OptDescr(..), getOpt, usag...
713c31f26c5b40b6c92488bc2e86f7581020b16e09a81b37be11d0df5314c003
tel/saltine
AES256GCMBench.hs
module AES256GCMBench (benchAes256GCM, aes256GCMEnv) where import Criterion.Main import Control.Monad import Control.DeepSeq import Control.Exception import Data.ByteString as BS import Crypto.Saltine.Core.AEAD.AES256GCM as G import BenchUtils aes256GCMEnv :: IO Key aes256GCMEnv = newKey benchAes256GCM :: Key -> ...
null
https://raw.githubusercontent.com/tel/saltine/b00e00fa8ce8bf4ee176a9d3deead57c590fc686/bench/AES256GCMBench.hs
haskell
module AES256GCMBench (benchAes256GCM, aes256GCMEnv) where import Criterion.Main import Control.Monad import Control.DeepSeq import Control.Exception import Data.ByteString as BS import Crypto.Saltine.Core.AEAD.AES256GCM as G import BenchUtils aes256GCMEnv :: IO Key aes256GCMEnv = newKey benchAes256GCM :: Key -> ...
7c441edd89a92736ce32bb98ca6064cf284f9df46a69f7bfbc136bfc8f3e83c9
ghc/ghc
T23038.hs
# LANGUAGE PatternSynonyms , ViewPatterns , ScopedTypeVariables # module T23038 where import GHC.Types( Any ) import Unsafe.Coerce( unsafeCoerce ) pattern N1 :: forall a. () => forall. () => a -> Any pattern N1 { fld1 } <- ( unsafeCoerce -> fld1 ) where N1 = unsafeCoerce pattern N2 :: forall. () => forall a. () =...
null
https://raw.githubusercontent.com/ghc/ghc/86f240ca956f633c20a61872ec44de9e21266624/testsuite/tests/patsyn/should_compile/T23038.hs
haskell
Should be OK Should be rejected
# LANGUAGE PatternSynonyms , ViewPatterns , ScopedTypeVariables # module T23038 where import GHC.Types( Any ) import Unsafe.Coerce( unsafeCoerce ) pattern N1 :: forall a. () => forall. () => a -> Any pattern N1 { fld1 } <- ( unsafeCoerce -> fld1 ) where N1 = unsafeCoerce pattern N2 :: forall. () => forall a. () =...
54099a3976f9c4fbfa151e032b4de28bafbde9935e1090807f4ac3858f59c76c
Athens/clojure
project.clj
(defproject clj-gh "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"] [cheshire "5.6.1"]] :main ^:skip-aot clj-gh.core :target-path "target/%s" :profiles {:ube...
null
https://raw.githubusercontent.com/Athens/clojure/4cbc4c22f78a6a1afb06597a30e58e3dff27c42d/dojos/2016-06-16/team5-clj-gh/project.clj
clojure
(defproject clj-gh "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"] [cheshire "5.6.1"]] :main ^:skip-aot clj-gh.core :target-path "target/%s" :profiles {:ube...
c0a736769b174cbdcc1a05b9940cb86eb74e6f12af91cab9644636b11b38c574
mmcgrana/cabinet
run.clj
(use 'ring.adapter.jetty) (require '[cabinet.web :as web]) (run-jetty #'web/app {:port 8080})
null
https://raw.githubusercontent.com/mmcgrana/cabinet/e6d016f43d06bb0072d98ea220eeb1255e1f75c4/run.clj
clojure
(use 'ring.adapter.jetty) (require '[cabinet.web :as web]) (run-jetty #'web/app {:port 8080})
df2c0f3acd6961ff06f73fe3ef069b63bd6ab55254e5bcddadfa079d14216640
MyDataFlow/ttalk-server
webserver.erl
%%%----------------------------------------------------------------------------- ( C ) 1999 - 2013 , Erlang Solutions Ltd @author < > @author < > @author Corbacho < > %%% @doc Simple web server for testing purposes %%% @end %%%---------------------------------------------------------------------------...
null
https://raw.githubusercontent.com/MyDataFlow/ttalk-server/07a60d5d74cd86aedd1f19c922d9d3abf2ebf28d/deps/fusco/test/webserver.erl
erlang
----------------------------------------------------------------------------- @doc Simple web server for testing purposes @end -----------------------------------------------------------------------------
( C ) 1999 - 2013 , Erlang Solutions Ltd @author < > @author < > @author Corbacho < > -module(webserver). -copyright("2013, Erlang Solutions Ltd."). -export([start/2, start/3, stop/2, stop/3]). -export([acceptor/3]). start(Module, Responders) -> start(Module, Responders, inet). start(Module, Re...
e4107d7c87abaae9164b2d88daed6aef75dc716613cd865334848a77c8b04074
Helium4Haskell/helium
ClassInstaneError13.hs
class X a where f :: a -> Int class Y a where g :: a -> Bool g = f
null
https://raw.githubusercontent.com/Helium4Haskell/helium/5928bff479e6f151b4ceb6c69bbc15d71e29eb47/test/typeClasses/ClassInstaneError13.hs
haskell
class X a where f :: a -> Int class Y a where g :: a -> Bool g = f
5071712dc5007c8730ca37fd84d8d0aa6b5be5c05543c5378a2866d3d53eb37d
reanimate/reanimate
doc_wait.hs
#!/usr/bin/env stack -- stack runghc --package reanimate module Main(main) where import Reanimate import Reanimate.Builtin.Documentation main :: IO () main = reanimate $ docEnv $ scene $ do fork $ play drawBox wait 1 play drawCircle
null
https://raw.githubusercontent.com/reanimate/reanimate/5ea023980ff7f488934d40593cc5069f5fd038b0/examples/doc_wait.hs
haskell
stack runghc --package reanimate
#!/usr/bin/env stack module Main(main) where import Reanimate import Reanimate.Builtin.Documentation main :: IO () main = reanimate $ docEnv $ scene $ do fork $ play drawBox wait 1 play drawCircle
d2e9aac1f435f1a1d98c46666656f449141e846e0438b623c2f75b5c5cd62392
helium/blockchain-http
bh_route_hotspots.erl
-module(bh_route_hotspots). -behavior(bh_route_handler). -behavior(bh_db_worker). -include("bh_route_handler.hrl"). -export([prepare_conn/1, handle/3]). Utilities -export([ get_hotspot_list/1, get_hotspot/1, to_geo_json/1 ]). -define(S_HOTSPOT_LIST_BEFORE, "hotspot_list_before"). -define(S_HOTSPOT_LIS...
null
https://raw.githubusercontent.com/helium/blockchain-http/e7a25466afb6071f4b586e59489e5b56832d16ad/src/bh_route_hotspots.erl
erlang
We do not allow bucketing across all hotspots as that takes way too long Add height to the cursor to avoid overlap between the same address/block and a page of hotspot data at a different height Add height to the cursor to avoid overlap between the same address/block and a page of hotspot data at a different hei...
-module(bh_route_hotspots). -behavior(bh_route_handler). -behavior(bh_db_worker). -include("bh_route_handler.hrl"). -export([prepare_conn/1, handle/3]). Utilities -export([ get_hotspot_list/1, get_hotspot/1, to_geo_json/1 ]). -define(S_HOTSPOT_LIST_BEFORE, "hotspot_list_before"). -define(S_HOTSPOT_LIS...
589296b28022b466636b26784bfc08c0768243730f01743dd01de3a0e4c2e797
mythical-linux/rktfetch
string.rkt
#!/usr/bin/env racket #lang racket/base (require (only-in racket/string string-replace) (only-in racket/contract define/contract -> listof) ) (provide (all-defined-out)) (define/contract (string-remove str substr) (-> string? string? string?) (string-replace str substr "") ) (define/contract (remove-str...
null
https://raw.githubusercontent.com/mythical-linux/rktfetch/b6d99ef488b05a99f6120d410999aced8c2554c3/rktfetch/private/get/helpers/string.rkt
racket
newlines: - \r\n for NT
#!/usr/bin/env racket #lang racket/base (require (only-in racket/string string-replace) (only-in racket/contract define/contract -> listof) ) (provide (all-defined-out)) (define/contract (string-remove str substr) (-> string? string? string?) (string-replace str substr "") ) (define/contract (remove-str...
db788eb7181f42c8ed216e3ae35ab1393676c4e84ac5a3940312855c9c081100
brunjlar/neural
benchmark.hs
# LANGUAGE DataKinds # {-# LANGUAGE BangPatterns #-} module Main where import Control.Category import Criterion.Main import Data.MyPrelude import Data.Utils import Data.Void import Numeric.Neural import Prelude hiding (id, (.)) main :: IO () main = defaultMain [ bgroup "white" [ bench "10/200...
null
https://raw.githubusercontent.com/brunjlar/neural/1211d1a2bed14b4036f48c500f945fea027cd3b9/benchmark/benchmark.hs
haskell
# LANGUAGE BangPatterns #
# LANGUAGE DataKinds # module Main where import Control.Category import Criterion.Main import Data.MyPrelude import Data.Utils import Data.Void import Numeric.Neural import Prelude hiding (id, (.)) main :: IO () main = defaultMain [ bgroup "white" [ bench "10/200" $ whnf (w 10) 200 ...
438a8e29f326fdc7db9b6b2df3aaaa0990ce68b386e7a709543830f20c0cfdc8
well-typed-lightbulbs/ocaml-esp32
test5_plugin_a.ml
let x = ref 0 let () = x := 1
null
https://raw.githubusercontent.com/well-typed-lightbulbs/ocaml-esp32/c24fcbfbee0e3aa6bb71c9b467c60c6bac326cc7/testsuite/tests/lib-dynlink-initializers/test5_plugin_a.ml
ocaml
let x = ref 0 let () = x := 1
7ccb1ffc1fdc1df3667a5153d480392cc74788789ffe49487fe05dbd2f8e2b41
leonoel/missionary
Never.cljs
(ns missionary.impl.Never (:import missionary.Cancelled)) (declare cancel) (deftype Process [f ^boolean alive] IFn (-invoke [ps] (cancel ps))) (defn cancel [^Process ps] (when (.-alive ps) (set! (.-alive ps) false) ((.-f ps) (Cancelled. "Never cancelled.")))) (defn run [f] (->Process f true))
null
https://raw.githubusercontent.com/leonoel/missionary/4e43b0f27cd7b557afba159416861c09310fd4ed/src/missionary/impl/Never.cljs
clojure
(ns missionary.impl.Never (:import missionary.Cancelled)) (declare cancel) (deftype Process [f ^boolean alive] IFn (-invoke [ps] (cancel ps))) (defn cancel [^Process ps] (when (.-alive ps) (set! (.-alive ps) false) ((.-f ps) (Cancelled. "Never cancelled.")))) (defn run [f] (->Process f true))
982610eeacfb292cc1906ea5c3afd70fedf347ee68b004bbbbd6cd20a842aa35
LLazarek/mutate
top-level-selectors.rkt
#lang at-exp racket (require ruinit mutate/private/top-level-selectors) (define-test (test-stx=? a b) (test-equal? (syntax->datum a) (syntax->datum b))) (define-test (test-selector selector stx body-stxs/expected id/expecte...
null
https://raw.githubusercontent.com/LLazarek/mutate/8d3af6afb53b4f725e7a81a515403efad88a52e5/mutate-test/tests/top-level-selectors.rkt
racket
#lang at-exp racket (require ruinit mutate/private/top-level-selectors) (define-test (test-stx=? a b) (test-equal? (syntax->datum a) (syntax->datum b))) (define-test (test-selector selector stx body-stxs/expected id/expecte...
afdbf31a0d476391b2b7c843603f84fcb19267e1c4a62642dcfc244d37ccb13a
sondresl/AdventOfCode
Day03.hs
module Day03 where import Prelude hiding (foldr) import Data.List hiding (insert, foldr) import Control.Arrow ((&&&)) import Data.Map (insertWith, insert, member, empty, intersection, intersectionWith, foldr, foldrWithKey, Map) type Vals = Map (Int, Int) Int strToData :: String -> [[(Char, Int)]] strToData = map (m...
null
https://raw.githubusercontent.com/sondresl/AdventOfCode/51525441795417f31b3eb67a690aa5534d1e699b/2019/Haskell/src/Day03.hs
haskell
module Day03 where import Prelude hiding (foldr) import Data.List hiding (insert, foldr) import Control.Arrow ((&&&)) import Data.Map (insertWith, insert, member, empty, intersection, intersectionWith, foldr, foldrWithKey, Map) type Vals = Map (Int, Int) Int strToData :: String -> [[(Char, Int)]] strToData = map (m...
e6ff88d77594e94e6cf460c0253cc99a8858e05347e115c6cc5c88fe26ae3d6d
paurkedal/ocaml-prime
prime_option.mli
Copyright ( C ) 2013 - -2022 Petter A. Urkedal < > * * 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 * option ) any la...
null
https://raw.githubusercontent.com/paurkedal/ocaml-prime/14d27f45bed83a323a07de32cfd9d3327fe33643/lib/prime_option.mli
ocaml
* Functions on the ['a option] type. * [some x] is [Some x]. * [get (Some a)] returns [a], and [get None] raises [Invalid_argument]. * [get_or d] is a variant of {!get} which maps [None] to [d] instead of raising an exception. * [get_else h] is a variant of {!get} which calls [h ()] to handle the [None] cas...
Copyright ( C ) 2013 - -2022 Petter A. Urkedal < > * * 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 * option ) any la...
c01cff944052eb7d296f7d5c6fef404747289e89e7f52b6471e02574486905a0
reflectionalist/S9fES
array.scm
Scheme 9 from Empty Space , Function Library By , ; Placed in the Public Domain ; ; (make-array integer ...) ==> array ; (array object ...) ==> array ; (array? object) ==> boolean ; (array-dimensions array) ...
null
https://raw.githubusercontent.com/reflectionalist/S9fES/0ade11593cf35f112e197026886fc819042058dd/lib/array.scm
scheme
Placed in the Public Domain (make-array integer ...) ==> array (array object ...) ==> array (array? object) ==> boolean (array-dimensions array) ==> list (array-map procedure array ...) ...
Scheme 9 from Empty Space , Function Library By , the size of one dimension , e.g. : ( make - array 2 3 4 ) creates an array with two elements in the first dimensions , three in the second and four in the third . ARRAY creates a fresh array of rank one and stores the given ARRAY - DIMENIONS returns a ...
4006f27eb0134c1578f5afa89b1e3c2cba49b013768fe11a699d7f62434d2f3b
bbc/haskell-workshop
C2StartingOut.hs
module C2StartingOut where -- To load in ghci: :load C2StartingOut.hs -- Then you will be able to run all of these functions Write a function to subtract two numbers Example : sub 100 72 returns 28 sub m n = m - n -- Write a function that calculates the area of a circle Hint : Use pi from Prelude Example : ...
null
https://raw.githubusercontent.com/bbc/haskell-workshop/475b9bac04167665030d7863798ccd27dfd589d0/chrisb/exercises/src/C2StartingOut.hs
haskell
To load in ghci: :load C2StartingOut.hs Then you will be able to run all of these functions Write a function that calculates the area of a circle Example: getLetters 8 returns ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h'] Generate a palindrome from any input string (doesn't have to be meaningful) Example: fizzBuzz ret...
module C2StartingOut where Write a function to subtract two numbers Example : sub 100 72 returns 28 sub m n = m - n Hint : Use pi from Prelude Example : area 10 returns 314.1592653589793 area r = pi * r ^ 2 Take two arguments and concatenate them together Example : myConcat " hello " " Haskell " return...
edce5d666854c6648edcdf40cecccb6f482d0062abe842c579f85b98984ad5c7
orthecreedence/ghostie
meta.lisp
(:max-velocity 500 :physics ((:type :segment :mass 100 :position (0 0) :endpoints ((-.7 0) (.7 0)) :radius .17 :group 5 :friction 1)))
null
https://raw.githubusercontent.com/orthecreedence/ghostie/6e6f77e1f33511d5311319db4656960de1c6f668/demo/resources/objects/bridge-piece/meta.lisp
lisp
(:max-velocity 500 :physics ((:type :segment :mass 100 :position (0 0) :endpoints ((-.7 0) (.7 0)) :radius .17 :group 5 :friction 1)))
76dc10e10ec688edb65c8e5d13bcd7730c1392bd048f768be6abaa9bee327b79
gregr/dbKanren
safe-unsafe.rkt
#lang racket/base (provide unsafe-car unsafe-cdr unsafe-fxmin unsafe-fx= unsafe-fx<= unsafe-fx< unsafe-fx+ unsafe-fx- unsafe-fx* unsafe-fxand unsafe-fxlshift unsafe-fxrshift unsafe-fxquotient unsafe-bytes-length unsafe-bytes-ref unsafe-bytes-set! unsafe-vector*-length unsafe-vector*-...
null
https://raw.githubusercontent.com/gregr/dbKanren/b199a5d608104809f353ed6758a46134accc50c3/dbk/safe-unsafe.rkt
racket
#lang racket/base (provide unsafe-car unsafe-cdr unsafe-fxmin unsafe-fx= unsafe-fx<= unsafe-fx< unsafe-fx+ unsafe-fx- unsafe-fx* unsafe-fxand unsafe-fxlshift unsafe-fxrshift unsafe-fxquotient unsafe-bytes-length unsafe-bytes-ref unsafe-bytes-set! unsafe-vector*-length unsafe-vector*-...
9b1425c9cd63a318a69fe1a8e7e100f95df84d2ed4b44bd17acfe3db1822f625
mirage/mirage
xen.ml
open Astring open Functoria module Log = Mirage_impl_misc.Log (* We generate an example .xl with common defaults, and a generic .xl.in which has @VARIABLES@ which must be substituted by sed according to the preferences of the system administrator. The common defaults chosen for the .xl file will be based on v...
null
https://raw.githubusercontent.com/mirage/mirage/377ffb09477594bd960a7c09149207db53c43386/lib/mirage/target/xen.ml
ocaml
We generate an example .xl with common defaults, and a generic .xl.in which has @VARIABLES@ which must be substituted by sed according to the preferences of the system administrator. The common defaults chosen for the .xl file will be based on values detected from the build host. We assume that the .xl fil...
open Astring open Functoria module Log = Mirage_impl_misc.Log let detected_bridge_name = match List.fold_left (fun sofar x -> match sofar with | None when Sys.file_exists (Fmt.str "/sys/class/net/%s0" x) -> Some x | None -> None | Some x -> Some x) None [ "xenbr"; "br...
19c9b02ed59026f05c7c0d19428ed96f3ea1ed4c68b9b03f339b1b0181447300
scrintal/heroicons-reagent
bolt_slash.cljs
(ns com.scrintal.heroicons.outline.bolt-slash) (defn render [] [:svg {:xmlns "" :fill "none" :viewBox "0 0 24 24" :strokeWidth "1.5" :stroke "currentColor" :aria-hidden "true"} [:path {:strokeLinecap "round" :strokeLinejoin "round" ...
null
https://raw.githubusercontent.com/scrintal/heroicons-reagent/572f51d2466697ec4d38813663ee2588960365b6/src/com/scrintal/heroicons/outline/bolt_slash.cljs
clojure
(ns com.scrintal.heroicons.outline.bolt-slash) (defn render [] [:svg {:xmlns "" :fill "none" :viewBox "0 0 24 24" :strokeWidth "1.5" :stroke "currentColor" :aria-hidden "true"} [:path {:strokeLinecap "round" :strokeLinejoin "round" ...
d9fa0d6441d10e07ce785a7a9dd43981e2adec79da9ffd9218f136c83253f2f7
iamFIREcracker/adventofcode
day25.lisp
(defpackage :aoc/2016/25 #.cl-user::*aoc-use*) (in-package :aoc/2016/25) (define-condition not-clock-signal () ()) (define-condition clock-signal-indeed () ()) (defun generates-clock-signal-p (input program) (let ((remaining 10) (expected (ncycle (list 0 1)))) (handler-case (handler-bind ((assem...
null
https://raw.githubusercontent.com/iamFIREcracker/adventofcode/c395df5e15657f0b9be6ec555e68dc777b0eb7ab/src/2016/day25.lisp
lisp
(defpackage :aoc/2016/25 #.cl-user::*aoc-use*) (in-package :aoc/2016/25) (define-condition not-clock-signal () ()) (define-condition clock-signal-indeed () ()) (defun generates-clock-signal-p (input program) (let ((remaining 10) (expected (ncycle (list 0 1)))) (handler-case (handler-bind ((assem...
ef927fb5d72837cbb463261304e402a04711833ef7c1fa01368cfe7c00201870
racket/libs
info.rkt
#lang setup/infotab SPDX - License - Identifier : ( Apache-2.0 OR MIT ) (define install-platform "i386-macosx") (define copy-foreign-libs '("libssl.1.0.0.dylib" "libcrypto.1.0.0.dylib"))
null
https://raw.githubusercontent.com/racket/libs/ebcea119197dc0cb86be1ccbbfbe5806f7280976/racket-i386-macosx-2/racket/info.rkt
racket
#lang setup/infotab SPDX - License - Identifier : ( Apache-2.0 OR MIT ) (define install-platform "i386-macosx") (define copy-foreign-libs '("libssl.1.0.0.dylib" "libcrypto.1.0.0.dylib"))
8b42b406ea8cbfac25d99eb0ae0c7bbea1622ef53912ae39cea61962683768ab
grin-compiler/ghc-wpc-sample-programs
Bytes.hs
-- | Module : Data . . Bytes -- License : BSD-style Maintainer : < > -- Stability : stable -- Portability : Good -- -- Simple and efficient byte array types -- # LANGUAGE CPP # {-# LANGUAGE BangPatterns #-} # LANGUAGE MagicHash # # LANGUAGE UnboxedTuples # {-# LANGUAGE DeriveDataTypeable #-} modul...
null
https://raw.githubusercontent.com/grin-compiler/ghc-wpc-sample-programs/0e3a9b8b7cc3fa0da7c77fb7588dd4830fb087f7/memory-0.15.0/Data/ByteArray/Bytes.hs
haskell
| License : BSD-style Stability : stable Portability : Good Simple and efficient byte array types # LANGUAGE BangPatterns # # LANGUAGE DeriveDataTypeable # | Simplest Byte Array ---------------------------------------------------------------------- # INLINE touchBytes # # INLINE sizeofBytes # ------------...
Module : Data . . Bytes Maintainer : < > # LANGUAGE CPP # # LANGUAGE MagicHash # # LANGUAGE UnboxedTuples # module Data.ByteArray.Bytes ( Bytes ) where import GHC.Exts hiding (toList) import GHC.Types import GHC.Prim import GHC.Ptr #if MIN_VERSION_base(4,...
a748600315bcd92270e9df40c06f92dd40e026cd1fdccda33a7c987a16aad02d
well-typed/cborg
SimpleVersus.hs
{-# LANGUAGE BangPatterns #-} module SimpleVersus ( benchmarks -- :: [Benchmark] ) where import Control.DeepSeq import Criterion.Main import qualified Data.Binary as Binary import qualified Codec.Serialise as Serialise import qualified Data.ByteString ...
null
https://raw.githubusercontent.com/well-typed/cborg/9be3fd5437f9d2ec1df784d5d939efb9a85fd1fb/serialise/bench/micro/SimpleVersus.hs
haskell
# LANGUAGE BangPatterns # :: [Benchmark]
module SimpleVersus ) where import Control.DeepSeq import Criterion.Main import qualified Data.Binary as Binary import qualified Codec.Serialise as Serialise import qualified Data.ByteString as ByteStringStrict import qualified Data.ByteStrin...
17ff2a030f03440fefb8fbb893312d8e063f12738fd5723ffe20d576e0c094ce
spartango/CS153
test2.ml
(fun x -> x + 42*7) 3
null
https://raw.githubusercontent.com/spartango/CS153/16faf133889f1b287cb95c1ea1245d76c1d8db49/ps6/tests/test2.ml
ocaml
(fun x -> x + 42*7) 3
1b932b73cad63b47783a7920366721ad992508c7163ba3e926c3d66f62d6c411
serokell/fift-asm-dsl
Main.hs
SPDX - FileCopyrightText : 2019 > -- SPDX - License - Identifier : MPL-2.0 module Main where import Fmt import MultiSig import FiftAsm main :: IO () main = putText $ pretty $ declProgram procedures methods where procedures = [ ("recv_external", decl recvExternal) , ("recv_internal", decl re...
null
https://raw.githubusercontent.com/serokell/fift-asm-dsl/d710e076d4212aa2cce4aa8bb15277d3b09c48af/multisig/Main.hs
haskell
SPDX - FileCopyrightText : 2019 > SPDX - License - Identifier : MPL-2.0 module Main where import Fmt import MultiSig import FiftAsm main :: IO () main = putText $ pretty $ declProgram procedures methods where procedures = [ ("recv_external", decl recvExternal) , ("recv_internal", decl recvI...
7935c281025af0111a1d6ed8317573194affe3df9798eb1925295ae197b1bda5
spawnfest/eep49ers
wxClientDC.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2008 - 2020 . All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicab...
null
https://raw.githubusercontent.com/spawnfest/eep49ers/d1020fd625a0bbda8ab01caf0e1738eb1cf74886/lib/wx/src/gen/wxClientDC.erl
erlang
%CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific lan...
Copyright Ericsson AB 2008 - 2020 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(wxClientDC). -include("wxe.hrl"). -export([destroy/1,new/1]). -export([blit/5,blit/6,calcBoundingBox/3,clea...
a22173f2d0ffa7651626ae3188a07e598f3c790bce60381de2fec5813df3f1fd
RolfRolles/PandemicML
X86Encode.mli
* The x86 instruction encoder . Provides one function to encode an instruction : you give it an { ! , it gives you a list of int32s describing the encoding . Since I have n't had to encode jumps , this is clearly lacking the address parameter to the encoding function . Also , I use { ! ...
null
https://raw.githubusercontent.com/RolfRolles/PandemicML/9c31ecaf9c782dbbeb6cf502bc2a6730316d681e/X86/X86Encode.mli
ocaml
* Instruction didn't type-check * {6 Encoding functions} * Give it an instruction and currently not an address, it gives you a list of int32 values corresponding to the encoding. * Give it an instruction and currently not an address, it gives you a list of all instruction encodings, namely, lists of int32 va...
* The x86 instruction encoder . Provides one function to encode an instruction : you give it an { ! , it gives you a list of int32s describing the encoding . Since I have n't had to encode jumps , this is clearly lacking the address parameter to the encoding function . Also , I use { ! ...
58d8560053ae2c6e7e9b567bce2c029fba20eca3ab6edcda5bf6824f1af71cce
fukamachi/integral
type.lisp
(in-package :cl-user) (defpackage integral-test.type (:use :cl :prove :integral :integral.type)) (in-package :integral-test.type) (plan 14) (is (cltype-to-dbtype 'integer) :integer) (is (cltype-to-dbtype 'integer 10) '(:integer 10)) (is (cltype-to-dbtype 'enum '("one" "two" "three"))...
null
https://raw.githubusercontent.com/fukamachi/integral/5fdf506233e9f6aa814a2da529bed0a551183110/t/type.lisp
lisp
(in-package :cl-user) (defpackage integral-test.type (:use :cl :prove :integral :integral.type)) (in-package :integral-test.type) (plan 14) (is (cltype-to-dbtype 'integer) :integer) (is (cltype-to-dbtype 'integer 10) '(:integer 10)) (is (cltype-to-dbtype 'enum '("one" "two" "three"))...
a59a057e47b798db7e206d7c8f210e4026d7364cb02be578a8bad186e6a3f4c5
racket/racket7
string.rkt
#lang racket/base (require "config.rkt" "special.rkt" "wrap.rkt" "readtable.rkt" "consume.rkt" "accum-string.rkt" "error.rkt" "digit.rkt") (provide read-string read-here-string) (define (read-string in config #:mode [mode 'string]) (define sour...
null
https://raw.githubusercontent.com/racket/racket7/5dbb62c6bbec198b4a790f1dc08fef0c45c2e32b/racket/src/expander/read/string.rkt
racket
Note: readtable is not used for a closing " or other string decisions Maybe a surrogate-pair encoding ---------------------------------------- Get string content Done ----------------------------------------
#lang racket/base (require "config.rkt" "special.rkt" "wrap.rkt" "readtable.rkt" "consume.rkt" "accum-string.rkt" "error.rkt" "digit.rkt") (provide read-string read-here-string) (define (read-string in config #:mode [mode 'string]) (define sour...
fa257df4323bc110af9ae96152ea6a91715ca20c3f056c0bf1b0bb6af0579b7b
tonyg/kali-scheme
c-io.scm
Copyright ( c ) 1994 . See file COPYING . (define (write-c-io-call call port name . args) (format port name) (writec port #\() (for-each (lambda (arg) (cond ((string? arg) (format port arg)) ((variable? arg) (c-variable arg port)) (else (c-value (call-arg call arg) p...
null
https://raw.githubusercontent.com/tonyg/kali-scheme/79bf76b4964729b63fce99c4d2149b32cb067ac0/ps-compiler/prescheme/primop/c-io.scm
scheme
char eof? status port)))) (read-block (lambda (okay? eof? got) ...) port buffer count) (define-c-generator read-block #f (lambda (call port indent) (let* ((cont (call-arg call 0)) (vars (lambda-variables cont))) ;; got = ps_read(port, buffer, count, &okay?, &eof?); (write-c-io-call cal...
Copyright ( c ) 1994 . See file COPYING . (define (write-c-io-call call port name . args) (format port name) (writec port #\() (for-each (lambda (arg) (cond ((string? arg) (format port arg)) ((variable? arg) (c-variable arg port)) (else (c-value (call-arg call arg) p...
309c031304c72730dc7750c09f6df568167f4be8771ed7f26be326f5e860dcb6
metanivek/irmin-ipfs
conf.ml
let spec = Irmin.Backend.Conf.Spec.v "ipfs" module Key = struct let fresh = Irmin.Backend.Conf.key ~spec "fresh" Irmin.Type.bool false let name = Irmin.Backend.Conf.key ~spec "name" Irmin.Type.string "irmin-ipfs" end let empty = Irmin.Backend.Conf.empty spec let v ?(fresh = false) repo_name = let config = ...
null
https://raw.githubusercontent.com/metanivek/irmin-ipfs/4b51bd0ab62e8d82078823c0f2b835afa751ebcd/src/conf.ml
ocaml
let spec = Irmin.Backend.Conf.Spec.v "ipfs" module Key = struct let fresh = Irmin.Backend.Conf.key ~spec "fresh" Irmin.Type.bool false let name = Irmin.Backend.Conf.key ~spec "name" Irmin.Type.string "irmin-ipfs" end let empty = Irmin.Backend.Conf.empty spec let v ?(fresh = false) repo_name = let config = ...
5201539d838f44418c01f29efa8801c0eb055b627ae95d3d8cb5137fe78c51dc
argp/bap
euler011.ml
let arr = [|08; 02; 22; 97; 38; 15; 00; 40; 00; 75; 04; 05; 07; 78; 52; 12; 50; 77; 91; 08; 49; 49; 99; 40; 17; 81; 18; 57; 60; 87; 17; 40; 98; 43; 69; 48; 04; 56; 62; 00; 81; 49; 31; 73; 55; 79; 14; 29; 93; 71; 40; 67; 53; 88; 30; 03; 49; 13; 36; 65; 52; 70; 95; 23; 04; 60; 11; 42; 69; 24; 68; 56; 01; 32...
null
https://raw.githubusercontent.com/argp/bap/2f60a35e822200a1ec50eea3a947a322b45da363/batteries/examples/euler/euler011.ml
ocaml
let arr = [|08; 02; 22; 97; 38; 15; 00; 40; 00; 75; 04; 05; 07; 78; 52; 12; 50; 77; 91; 08; 49; 49; 99; 40; 17; 81; 18; 57; 60; 87; 17; 40; 98; 43; 69; 48; 04; 56; 62; 00; 81; 49; 31; 73; 55; 79; 14; 29; 93; 71; 40; 67; 53; 88; 30; 03; 49; 13; 36; 65; 52; 70; 95; 23; 04; 60; 11; 42; 69; 24; 68; 56; 01; 32...
a0674e82d95fb7a86ee5ec948c3f3f2faf2d14d7e868df29bce6a4370c109a36
funcool/buddy-core
padding.clj
Copyright ( c ) 2015 - 2016 < > ;; Licensed under the Apache License , Version 2.0 ( the " License " ) ;; you may not use this file except in compliance with the License. ;; You may obtain a copy of the License at ;; ;; -2.0 ;; ;; Unless required by applicable law or agreed to in writing, software distribu...
null
https://raw.githubusercontent.com/funcool/buddy-core/bd31ff9b802e689b046afae0f8c29ed70bb15ab5/src/buddy/core/padding.clj
clojure
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing perm...
Copyright ( c ) 2015 - 2016 < > Licensed under the Apache License , Version 2.0 ( the " License " ) distributed under the License is distributed on an " AS IS " BASIS , (ns buddy.core.padding "Block padding algorithms." (:refer-clojure :exclude [count]) (:require [buddy.core.bytes :as bytes]) (:import...
37b99927de67e9764c3718952780323ddd484d2c5059efad580845d6338e8967
softwarelanguageslab/maf
R5RS_gambit_array1-1.scm
; Changes: * removed : 0 * added : 1 * swaps : 0 ; * negated predicates: 0 ; * swapped branches: 0 * calls to i d fun : 1 (letrec ((create-x (lambda (n) (letrec ((result (make-vector n 0))) (letrec ((__do_loop (lambda (i) ...
null
https://raw.githubusercontent.com/softwarelanguageslab/maf/11acedf56b9bf0c8e55ddb6aea754b6766d8bb40/test/changes/scheme/generated/R5RS_gambit_array1-1.scm
scheme
Changes: * negated predicates: 0 * swapped branches: 0
* removed : 0 * added : 1 * swaps : 0 * calls to i d fun : 1 (letrec ((create-x (lambda (n) (letrec ((result (make-vector n 0))) (letrec ((__do_loop (lambda (i) (if (>= i n) ...
87f770894895c772f00a07b2c9916c2ad08e4bdcde11043022e0c75a4d1180dd
fdopen/depext-cygwinports
run.mli
type io_out = [ `Buffer of Buffer.t | `Fd of Unix.file_descr | `Fun of string -> unit | `Null | `Stderr | `Stdout ] type io_in = [ `Fd of Unix.file_descr (* | `Fun of out_channel -> unit (* don't use this one *) *) | `Null | `String of string ] val run : ?env:string array ->...
null
https://raw.githubusercontent.com/fdopen/depext-cygwinports/b5fcee7057d48aec7a627f0e34a81e618088ae2c/run.mli
ocaml
| `Fun of out_channel -> unit (* don't use this one
type io_out = [ `Buffer of Buffer.t | `Fd of Unix.file_descr | `Fun of string -> unit | `Null | `Stderr | `Stdout ] type io_in = [ `Fd of Unix.file_descr | `Null | `String of string ] val run : ?env:string array -> ?stdin:io_in -> ?stderr:io_out -> ?stdout:io_out -> str...
6242d7fb3ec6dd21ccfccb398c330858e089c6242b6164942ba3b8cc50626323
travelping/flower
flower_packet.erl
-module(flower_packet). %% API -export([encode/1, encode_msg/1, encode_match/1, decode/1]). %% constant mappers -export([ofpt/1, ofp_packet_in_reason/1, ofp_config_flags/1, ofp_flow_mod_command/1, ofp_port/1, eth_type/1]). %% part encoders -export([encode_ofs_action_output/2, encode_ofs_action_vlan_vid/1, encode_o...
null
https://raw.githubusercontent.com/travelping/flower/549015e8ef6e26d6b4bd10c5e527894e55218168/src/flower_packet.erl
erlang
API constant mappers part encoders -------------------------------------------------------------------- Include files -------------------------------------------------------------------- -------------------------------------------------------------------- =========================================================...
-module(flower_packet). -export([encode/1, encode_msg/1, encode_match/1, decode/1]). -export([ofpt/1, ofp_packet_in_reason/1, ofp_config_flags/1, ofp_flow_mod_command/1, ofp_port/1, eth_type/1]). -export([encode_ofs_action_output/2, encode_ofs_action_vlan_vid/1, encode_ofs_action_vlan_pcp/1, encode_ofs_action_stri...
f274836b713bc850826fb8a7a1a19509117dec87f75098394c8ad25eb7cc7509
2600hz-archive/whistle
proper_symb.erl
Copyright 2010 - 2011 < > , < > and < > %%% This file is part of PropEr . %%% %%% PropEr 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 o...
null
https://raw.githubusercontent.com/2600hz-archive/whistle/1a256604f0d037fac409ad5a55b6b17e545dcbf9/lib/proper-1.0/src/proper_symb.erl
erlang
PropEr is free software: you can redistribute it and/or modify (at your option) any later version. PropEr is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License fo...
Copyright 2010 - 2011 < > , < > and < > This file is part of PropEr . 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 Pub...
f144b18726139944818e2b90fcfcda0679b8198df8f7c84c11287b7268950862
coccinelle/coccinelle
obj.mli
type t type raw_data = nativeint external repr : 'a -> t = "%identity" external obj : t -> 'a = "%identity" external magic : 'a -> 'b = "%identity" val is_block : t -> bool external is_int : t -> bool = "%obj_is_int" external tag : t -> int = "caml_obj_tag"[@@noalloc ] external size : t -> int = "%obj_size" external re...
null
https://raw.githubusercontent.com/coccinelle/coccinelle/5448bb2bd03491ffec356bf7bd6ddcdbf4d36bc9/bundles/stdcompat/stdcompat-current/interfaces/4.13/obj.mli
ocaml
type t type raw_data = nativeint external repr : 'a -> t = "%identity" external obj : t -> 'a = "%identity" external magic : 'a -> 'b = "%identity" val is_block : t -> bool external is_int : t -> bool = "%obj_is_int" external tag : t -> int = "caml_obj_tag"[@@noalloc ] external size : t -> int = "%obj_size" external re...
4e0bc4b6d9d55cd107d93a6bd9be88588a59db29c3359c92c2c74b74029598af
gbwey/predicate-typed
Numeric.hs
# LANGUAGE TypeOperators # # LANGUAGE UndecidableInstances # # LANGUAGE ViewPatterns # # LANGUAGE FlexibleContexts # # LANGUAGE AllowAmbiguousTypes # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeApplications # # LANGUAGE DataKinds # {-# LANGUAGE GADTs #-} # LANGUAGE TypeFamilies # # ...
null
https://raw.githubusercontent.com/gbwey/predicate-typed/51f8d51f662722e1109d2ff35644aea1e0371b42/src/Predicate/Data/Numeric.hs
haskell
# LANGUAGE GADTs # # LANGUAGE RankNTypes # # LANGUAGE OverloadedStrings # # LANGUAGE ConstraintKinds # # LANGUAGE EmptyDataDeriving # | promoted numeric functions ** numeric ** rational numbers ** read-show $setup >>> :set -XDataKinds >>> :set -XTypeApplications >>> :set -XTypeOperators >>> :set -XOverloadedSt...
# LANGUAGE TypeOperators # # LANGUAGE UndecidableInstances # # LANGUAGE ViewPatterns # # LANGUAGE FlexibleContexts # # LANGUAGE AllowAmbiguousTypes # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeApplications # # LANGUAGE DataKinds # # LANGUAGE TypeFamilies # # LANGUAGE PolyKinds # # ...
f905439d8417be0bcce32bd047428a31bc542becd5b76e40b8152d032c8af3d1
jimcrayne/jhc
Options.hs
module Options( processOptions, Opt(..), options, Mode(..), StopCondition(..), putProgress, putProgressLn, putVerbose, putVerboseLn, getArguments, findHoCache, verbose, verbose2, progress, preprocess, dump, wdump, fopts, wdump', fopts', ...
null
https://raw.githubusercontent.com/jimcrayne/jhc/1ff035af3d697f9175f8761c8d08edbffde03b4e/src/Options.hs
haskell
cross ' to jhc , and pass an appropriate ' -m ' option to tell jhc what machine cross ' is specified on the command line then this is the ---- --------------------------------------------------------------------------- ---- --------------------------------------------...
module Options( processOptions, Opt(..), options, Mode(..), StopCondition(..), putProgress, putProgressLn, putVerbose, putVerboseLn, getArguments, findHoCache, verbose, verbose2, progress, preprocess, dump, wdump, fopts, wdump', fopts', ...
8a610f383fae019e20a51a4b52129c99a728a4ec204a3428b2a22a32db282b59
sicmutils/sicmutils
ch2_test.cljc
#_"SPDX-License-Identifier: GPL-3.0" (ns sicmutils.sicm.ch2-test (:refer-clojure :exclude [+ - * / zero? ref partial]) (:require [clojure.test :refer [is deftest use-fixtures]] [sicmutils.env :as e :refer [- / zero? ref partial simplify compose up]] ...
null
https://raw.githubusercontent.com/sicmutils/sicmutils/f746ab11ee904583eb7029961992129e9adbe1d7/test/sicmutils/sicm/ch2_test.cljc
clojure
moments of inertia initial state check that all observed errors over the whole interval are small
#_"SPDX-License-Identifier: GPL-3.0" (ns sicmutils.sicm.ch2-test (:refer-clojure :exclude [+ - * / zero? ref partial]) (:require [clojure.test :refer [is deftest use-fixtures]] [sicmutils.env :as e :refer [- / zero? ref partial simplify compose up]] ...
e0803bb7ca25ae61d527977cc57b1a92c449f0f1cbec6901f8a379881eb28bb1
troydm/myweb
web.lisp
myweb - simple web server written in Common Lisp ;;; ;;; web.lisp ;;; Author : < > ;;; ;;; This program is free software: you can redistribute it and/or modify ;;; it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation , either version 3 of the License , or ;;;...
null
https://raw.githubusercontent.com/troydm/myweb/5067add358b92386db0ee593f2d8b13c2c6336aa/web.lisp
lisp
web.lisp This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by (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 warran...
myweb - simple web server written in Common Lisp Author : < > the Free Software Foundation , either version 3 of the License , or GNU Lesser General Public License for more details . (in-package :myweb) (defvar *listen-socket* nil) (defvar *listen-thread* nil) (defvar *request-mutex* (make-lock "request-...
0c78f70e2f68b2ebea9ad4da22bd0db85deb03941250c0398f73d8e489df5233
matterhorn-chat/matterhorn
Users.hs
# LANGUAGE TemplateHaskell # # LANGUAGE DeriveFunctor # module Matterhorn.Types.Users ( UserInfo(..) , UserStatus(..) , Users -- constructor remains internal * Lenses created for accessing UserInfo fields , uiName, uiId, uiStatus, uiInTeam, uiNickName, uiFirstName, uiLastName, uiEmail , uiDeleted * Var...
null
https://raw.githubusercontent.com/matterhorn-chat/matterhorn/d9bcf5ecf92fea7a116546256c331be2633303a0/src/Matterhorn/Types/Users.hs
haskell
constructor remains internal * Miscellaneous runtime about a user | Is this user deleted? a user ** Manage the collection of all Users | Define a binary kinded type to allow derivation of functor. | Define the exported typename which universally binds the | Initial collection of Users with no members | Ad...
# LANGUAGE TemplateHaskell # # LANGUAGE DeriveFunctor # module Matterhorn.Types.Users ( UserInfo(..) , UserStatus(..) * Lenses created for accessing UserInfo fields , uiName, uiId, uiStatus, uiInTeam, uiNickName, uiFirstName, uiLastName, uiEmail , uiDeleted * Various operations on UserInfo * Creating Use...
8428a64bfc80ee6281537f9caa60c5b16ccb3c0ac2a1805b154f1dd927cd2071
athos/syntactic-closure
push.clj
(ns push (:use [syntactic-closure.core :only [define-syntax sc-macro-transformer make-syntactic-closure qq]])) (define-syntax push! [x v] (sc-macro-transformer (fn [env] (let [x' (make-syntactic-closure env nil x)] (qq (set! ~x' (conj ~x' ~(make-syntactic-closure env nil v)))))))) (comment (de...
null
https://raw.githubusercontent.com/athos/syntactic-closure/e251b03a199507df4bbc35788230d434d6506634/examples/push.clj
clojure
=> [0 1 2]
(ns push (:use [syntactic-closure.core :only [define-syntax sc-macro-transformer make-syntactic-closure qq]])) (define-syntax push! [x v] (sc-macro-transformer (fn [env] (let [x' (make-syntactic-closure env nil x)] (qq (set! ~x' (conj ~x' ~(make-syntactic-closure env nil v)))))))) (comment (de...
f5ad6bba6fee44d8faa6e9f15087fc5bf619e67de6a7089e0b78252f59c07efb
drewc/druix
yarn.scm
(define-module (druix packages javascript yarn) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix build-system trivial) #:use-module (guix licenses) #:use-module (gnu packages node) #:use-module (ice-9 pretty-print)) (define yarn-version "1.22.5") (define-public yarn (package ...
null
https://raw.githubusercontent.com/drewc/druix/1855a422e5e35823d922079ec6c4714128e57687/druix/packages/javascript/yarn.scm
scheme
(define-module (druix packages javascript yarn) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix build-system trivial) #:use-module (guix licenses) #:use-module (gnu packages node) #:use-module (ice-9 pretty-print)) (define yarn-version "1.22.5") (define-public yarn (package ...
01cf98987b236d44cc36e1fad5a0fc331e0dd8bf3798380163c891f45f1bf4f9
pallet/pallet
compute.clj
(ns pallet.compute "Abstraction of the compute interface" (:require [pallet.compute.implementation :as implementation] [pallet.core.version-dispatch :refer [version-map]] [pallet.versions :refer [as-version-vector]])) Meta (defn supported-providers "Return a list of supported provider names. Each name...
null
https://raw.githubusercontent.com/pallet/pallet/30226008d243c1072dcfa1f27150173d6d71c36d/src/pallet/compute.clj
clojure
Actions the executor should be passed to the compute service to allow remote execution of the init script using the executor abstraction. However, the executor uses the session abstraction, so that would need passing too (reduce #(assoc %1 (reduce #(assoc %1 base distibutions distibutions target mapping
(ns pallet.compute "Abstraction of the compute interface" (:require [pallet.compute.implementation :as implementation] [pallet.core.version-dispatch :refer [version-map]] [pallet.versions :refer [as-version-vector]])) Meta (defn supported-providers "Return a list of supported provider names. Each name...
620b4e70b0a0888bb2965a353084affac3bbeb54690eb02e61ac7c8aa89c9264
lixiangqi/medic
src5-medic.rkt
#lang medic (layer layer1 (export log-function-entry) ; debug-src-id definition (define-source (init-defs) (define id-count 0) (define (inc-id-count) (set! id-count (add1 id-count)))) (define-source (display-count) (log id-count)) ; debug-id definition (defi...
null
https://raw.githubusercontent.com/lixiangqi/medic/0920090d3c77d6873b8481841622a5f2d13a732c/demos/demo5/src5-medic.rkt
racket
debug-src-id definition debug-id definition
#lang medic (layer layer1 (export log-function-entry) (define-source (init-defs) (define id-count 0) (define (inc-id-count) (set! id-count (add1 id-count)))) (define-source (display-count) (log id-count)) (define-match (log-function-entry pos) [each-function [po...
771c8c4c0db917e894d5841e711e037ce719f1e34dcf5ed63379fc9a6bbd9141
softwarelanguageslab/maf
R5RS_WeiChenRompf2019_church_simple-4.scm
; Changes: * removed : 0 * added : 1 * swaps : 0 ; * negated predicates: 0 * swapped branches : 1 * calls to i d fun : 1 (letrec ((pred (lambda (n) (lambda (rf) (<change> (lambda (rx) (((n (lambda (g) (lambda (h) (h (g rf)))...
null
https://raw.githubusercontent.com/softwarelanguageslab/maf/11acedf56b9bf0c8e55ddb6aea754b6766d8bb40/test/changes/scheme/generated/R5RS_WeiChenRompf2019_church_simple-4.scm
scheme
Changes: * negated predicates: 0
* removed : 0 * added : 1 * swaps : 0 * swapped branches : 1 * calls to i d fun : 1 (letrec ((pred (lambda (n) (lambda (rf) (<change> (lambda (rx) (((n (lambda (g) (lambda (h) (h (g rf))))) (lambda (ignored) rx)) (lambda (id...
cadee419f18f04ecf60c3f3ab08ee337b4dba3d8eb214de0e587c1c2607909cc
hakaru-dev/hakaru
TestSuite.hs
module Main(main) where import System.Exit (exitFailure) import System.Environment (lookupEnv) import qualified Tests.ASTTransforms as TR import qualified Tests.Parser as P import qualified Tests.Pretty as Pr import qualified Tests.TypeCheck as TC import qualified Tests.Simplify as S import qua...
null
https://raw.githubusercontent.com/hakaru-dev/hakaru/94157c89ea136c3b654a85cce51f19351245a490/haskell/Tests/TestSuite.hs
haskell
master test suite
module Main(main) where import System.Exit (exitFailure) import System.Environment (lookupEnv) import qualified Tests.ASTTransforms as TR import qualified Tests.Parser as P import qualified Tests.Pretty as Pr import qualified Tests.TypeCheck as TC import qualified Tests.Simplify as S import qua...
5df434a4c8a38b7d942d1484ab4307f19fab740636bfc41ec605152d4081eba1
malcolmreynolds/GSLL
mathieu.lisp
;; Mathieu functions 2009 - 02 - 16 16:30:59EST mathieu.lisp Time - stamp : < 2009 - 02 - 16 18:13:44EST mathieu.lisp > ;; $Id: $ (in-package :gsl) ;;;;**************************************************************************** ;;;; Mathieu workspace ;;;;********************************************************...
null
https://raw.githubusercontent.com/malcolmreynolds/GSLL/2f722f12f1d08e1b9550a46e2a22adba8e1e52c4/special-functions/mathieu.lisp
lisp
Mathieu functions $Id: $ **************************************************************************** Mathieu workspace **************************************************************************** **************************************************************************** Characteristic values ********************...
2009 - 02 - 16 16:30:59EST mathieu.lisp Time - stamp : < 2009 - 02 - 16 18:13:44EST mathieu.lisp > (in-package :gsl) (defmobject mathieu "gsl_sf_mathieu" ((n sizet) (qmax :double)) "workspace for Mathieu functions" :gsl-version (1 9) :documentation "Make a workspace needed for some Mathieu functions.")...
b0487c0fae79a6f5d7ba957355e0c0373ea07315d7ddda68b2b3bdfbe076dc3f
serokell/qtah
QGraphicsScene.hs
This file is part of Qtah . -- Copyright 2015 - 2018 The Qtah Authors . -- -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation , either version 3 of the License , or -- (at your option) ...
null
https://raw.githubusercontent.com/serokell/qtah/abb4932248c82dc5c662a20d8f177acbc7cfa722/qtah-generator/src/Graphics/UI/Qtah/Generator/Interface/Widgets/QGraphicsScene.hs
haskell
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by (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 MER...
This file is part of Qtah . Copyright 2015 - 2018 The Qtah Authors . the Free Software Foundation , either version 3 of the License , or GNU Lesser General Public License for more details . You should have received a copy of the GNU Lesser General Public License module Graphics.UI.Qtah.Generator.Interface.Wi...
cde4bf09fc640d169f111339bf898f5d0d8446b24fcdafd21e0babe361676ad7
typelead/intellij-eta
Export00001.hs
module Export00001 ( (Prelude.$) , (Prelude.$!) , (Control.Category..) , Prelude.not ) where
null
https://raw.githubusercontent.com/typelead/intellij-eta/ee66d621aa0bfdf56d7d287279a9a54e89802cf9/plugin/src/test/resources/fixtures/eta/sources/Export00001.hs
haskell
module Export00001 ( (Prelude.$) , (Prelude.$!) , (Control.Category..) , Prelude.not ) where
01f1f6955e0b16c99e8aff6be5054a9488d3e62efdf3042db74bfdaef13750a9
ivanperez-keera/Yampa
Task.hs
# LANGUAGE CPP # -- | -- Description : Test cases for tasks (Task) Copyright : ( c ) and , Yale University , 2003 - 2004 Authors : , Very rudimentary testing of Task . module Test.FRP.Yampa.Task ( tests ) where #if __GLASGOW_HASKELL__ < 710 import Data.Functor ((<$>)) #endif import Control...
null
https://raw.githubusercontent.com/ivanperez-keera/Yampa/bc33f2533177f8dfddac9bc55af4662ce8fd8cd2/yampa-test/tests/Test/FRP/Yampa/Task.hs
haskell
| Description : Test cases for tasks (Task) Intentionally! task_t0 = task_t1! No time should pass! No Time should pass! No time should pass! No time should pass! 0.0 s 1.0 s 2.0 s 3.0 s 4.0 s 5.0 s 0.0 s 1.0 s 2.0 s 3.0 s 4.0 s 5.0 s 0.0 s 1.0 s 2.0 s 3.0 s 4.0 s 5.0 s Since abortWhen uses lMe...
# LANGUAGE CPP # Copyright : ( c ) and , Yale University , 2003 - 2004 Authors : , Very rudimentary testing of Task . module Test.FRP.Yampa.Task ( tests ) where #if __GLASGOW_HASKELL__ < 710 import Data.Functor ((<$>)) #endif import Control.Monad (when, forever) import Test.QuickCheck imp...
2a4078a0bda7366ca6a54b29eb201b7d0984a04aaf261db9392e80cbb40577d7
vlacs/helmsman
example_site.clj
(ns helmsman.example-site (:require [ring.adapter.jetty] [helmsman :as h] [helmsman.router :as router] [helmsman.navigation :as nav] [helmsman.uri :as uri] [ring.util.response] [ring.middleware.keyword-params] [ring.middleware.cookies])) (def last-request (atom nil)) (def ring-respon...
null
https://raw.githubusercontent.com/vlacs/helmsman/e2fe3e49801681b3f0b2d3192f222a5c579a9aaa/dev/helmsman/example_site.clj
clojure
(ns helmsman.example-site (:require [ring.adapter.jetty] [helmsman :as h] [helmsman.router :as router] [helmsman.navigation :as nav] [helmsman.uri :as uri] [ring.util.response] [ring.middleware.keyword-params] [ring.middleware.cookies])) (def last-request (atom nil)) (def ring-respon...
c5ef1c106d4007b0fba41e2f63d79242d021af810b981bc7c3f5bb7f36167107
jebberjeb/clojure-socketrepl.nvim
repl_log.clj
(ns socket-repl.repl-log "Writes (presumably socket output) to the repl log." (:require [clojure.core.async :as async] [socket-repl.nrepl :as nrepl] [socket-repl.socket-repl :as socket-repl] [socket-repl.util :refer [log-start log-stop]]) (:import (java.io PrintStream File))) (defn file [re...
null
https://raw.githubusercontent.com/jebberjeb/clojure-socketrepl.nvim/4161837da0578114438a99bbd317a1e77a108b0f/src/socket_repl/repl_log.clj
clojure
Subscribe to socket-repl output. Subscribe to nrepl output. Write input to file.
(ns socket-repl.repl-log "Writes (presumably socket output) to the repl log." (:require [clojure.core.async :as async] [socket-repl.nrepl :as nrepl] [socket-repl.socket-repl :as socket-repl] [socket-repl.util :refer [log-start log-stop]]) (:import (java.io PrintStream File))) (defn file [re...
cdc9c4b80c02bffdbdd8983b3b8def7fe6ed7fd3bc2794e973010dc1b1a234a2
CrossRef/cayenne
funder.clj
(ns cayenne.data.funder (:require [cayenne.conf :as conf] [cayenne.api.v1.query :as query] [cayenne.api.v1.response :as r] [cayenne.api.v1.filter :as filter] [cayenne.api.v1.facet :as facet] [cayenne.formats.citeproc :as citeproc] [cayenne.data.w...
null
https://raw.githubusercontent.com/CrossRef/cayenne/02321ad23dbb1edd3f203a415f4a4b11ebf810d7/src/cayenne/data/funder.clj
clojure
(ns cayenne.data.funder (:require [cayenne.conf :as conf] [cayenne.api.v1.query :as query] [cayenne.api.v1.response :as r] [cayenne.api.v1.filter :as filter] [cayenne.api.v1.facet :as facet] [cayenne.formats.citeproc :as citeproc] [cayenne.data.w...
799d0ef89055ac64ea984f9bc25d8f510db29c10c6ce6a7b2b500f821fdd6049
zxymike93/SICP
208.rkt
#lang sicp (define (make-interval a b) (cons a b)) (define (upper-bound x) (cdr x)) (define (lower-bound x) (car x)) (define (print-interval x) (newline) (display "[") (display (lower-bound x)) (display ",") (display (upper-bound x)) (display "]")) (define (sub-interval x y) (make-interval (- (...
null
https://raw.githubusercontent.com/zxymike93/SICP/9d8e84d6a185bf4d7f28c414fc3359741384beb5/chapter2/208.rkt
racket
tests
#lang sicp (define (make-interval a b) (cons a b)) (define (upper-bound x) (cdr x)) (define (lower-bound x) (car x)) (define (print-interval x) (newline) (display "[") (display (lower-bound x)) (display ",") (display (upper-bound x)) (display "]")) (define (sub-interval x y) (make-interval (- (...
4d4ba4daee9feaf61160e695f5beafe14de696ba8ab1521f79eb37377b34c45a
tonyrog/can
can_router.erl
%%%---- BEGIN COPYRIGHT ------------------------------------------------------- %%% Copyright ( C ) 2007 - 2012 , Rogvall Invest AB , < > %%% %%% This software is licensed as described in the file COPYRIGHT, which %%% you should have received as part of this distribution. The terms %%% are also available at . %%% %%...
null
https://raw.githubusercontent.com/tonyrog/can/6dc5b145469a31fff75c48447ea53fd2a0223841/src/can_router.erl
erlang
---- BEGIN COPYRIGHT ------------------------------------------------------- This software is licensed as described in the file COPYRIGHT, which you should have received as part of this distribution. The terms are also available at . You may opt to use, copy, modify, merge, publish, distribute and/or sell furni...
Copyright ( C ) 2007 - 2012 , Rogvall Invest AB , < > copies of the Software , and permit persons to whom the Software is This software is distributed on an " AS IS " basis , WITHOUT WARRANTY OF ANY @author < > ( C ) 2013 , Created : 7 Jan 2008 by -module(can_router). -behaviour(gen_server). -exp...
4016592d7af1dbed48e996928b47e9bc38d271a14eb6cf589185492e2a14c090
bennofs/haskell-generate
Setup.hs
# OPTIONS_GHC -Wall # module Main (main) where import Data.IORef import Data.List ( nub ) import Data.Version ( showVersion ) import Distribution.Package ( PackageName(PackageName), PackageId, InstalledPackageId, packageVersion, packageName ) import Distribution.PackageDescription ( PackageDescription(), TestSuite(..)...
null
https://raw.githubusercontent.com/bennofs/haskell-generate/2e472a850f989d2086e2b708a98a9c355f14c25a/Setup.hs
haskell
Very ad-hoc implementation of difference lists
# OPTIONS_GHC -Wall # module Main (main) where import Data.IORef import Data.List ( nub ) import Data.Version ( showVersion ) import Distribution.Package ( PackageName(PackageName), PackageId, InstalledPackageId, packageVersion, packageName ) import Distribution.PackageDescription ( PackageDescription(), TestSuite(..)...
971eb946df7fe0a32baf50fc21f3b082fd8aeca1f8c952db3e6e0e5f42eb760c
yzhs/ocamlllvm
gc.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/yzhs/ocamlllvm/45cbf449d81f2ef9d234968e49a4305aaa39ace2/src/stdlib/gc.ml
ocaml
********************************************************************* Objective Caml ...
, projet Para , 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 GNU Library General Public License , with $ Id$ type stat = { minor_words : fl...
29dbe05aec1f582dd06e6fbf49cea06db95bd80d1d7d8103a9342a87f77a676c
dimitaruzunov/fp-2018
map-tree.scm
(require rackunit rackunit/text-ui) (define (make-tree root left right) (list root left right)) (define root car) (define left cadr) (define right caddr) (define empty? null?) (define (map-tree fn tree) (if (null? tree) '() (make-tree (fn (root tree)) (map-tree fn (left tree)) ...
null
https://raw.githubusercontent.com/dimitaruzunov/fp-2018/f75f0cd009cc7f41ce55a5ec71fb4b8eadafc4eb/exercises/06/map-tree.scm
scheme
(require rackunit rackunit/text-ui) (define (make-tree root left right) (list root left right)) (define root car) (define left cadr) (define right caddr) (define empty? null?) (define (map-tree fn tree) (if (null? tree) '() (make-tree (fn (root tree)) (map-tree fn (left tree)) ...
cc3773b4d73ae19e64a47055e64d937fcbeb235d28ff05801e648e212d3fd169
mcorbin/meuse
auth.clj
(ns meuse.interceptor.auth (:require [meuse.api.crate.http :as crate-http] [meuse.api.meuse.http :as meuse-http] [meuse.api.mirror.http :as mirror-http] [meuse.auth.request :as auth-request] [meuse.auth.frontend :as auth-frontend])) (defmulti check-auth! (fn [request _...
null
https://raw.githubusercontent.com/mcorbin/meuse/d2b74543fce37c8cde770ae6f6097cabb509a804/src/meuse/interceptor/auth.clj
clojure
users can disable frontend authentication through the public flag in the frontend configuration
(ns meuse.interceptor.auth (:require [meuse.api.crate.http :as crate-http] [meuse.api.meuse.http :as meuse-http] [meuse.api.mirror.http :as mirror-http] [meuse.auth.request :as auth-request] [meuse.auth.frontend :as auth-frontend])) (defmulti check-auth! (fn [request _...
e479167a0de49e14009edd331ce44def11d89aa9a27337c9375d8ccf919bf641
dradtke/Lisp-Text-Editor
cl-cairo2-quartz-swig.lisp
This file was automatically generated by SWIG ( ) . Version 2.0.4 ;;; ;;; Do not make changes to this file unless you know what you are doing--modify the SWIG interface file instead . (in-package :cl-cairo2) (cl:defconstant CL_CAIRO2_USING_QUARTZ 1) (cl:defconstant CAIRO_HAS_QUARTZ_SURFACE 1) (cl:defconsta...
null
https://raw.githubusercontent.com/dradtke/Lisp-Text-Editor/b0947828eda82d7edd0df8ec2595e7491a633580/quicklisp/dists/quicklisp/software/cl-cairo2-20120208-git/src/quartz/cl-cairo2-quartz-swig.lisp
lisp
Do not make changes to this file unless you know what you are doing--modify
This file was automatically generated by SWIG ( ) . Version 2.0.4 the SWIG interface file instead . (in-package :cl-cairo2) (cl:defconstant CL_CAIRO2_USING_QUARTZ 1) (cl:defconstant CAIRO_HAS_QUARTZ_SURFACE 1) (cl:defconstant CAIRO_HAS_QUARTZ_FONT 1) (cl:defconstant __LP64__ 1) (cffi:defcfun ("cairo_quar...
4d7fcd4dc2d0a7f0ccde02352f55be24de5a422307c25f9114b8948e8954886b
jgrodziski/talltale
core.cljc
(ns talltale.core #?(:cljs (:refer-clojure :exclude [name type])) (:require [clojure.core :refer [name type] :rename {name core-name type core-type}] [clojure.string :as str :refer [lower-case upper-case]] [clojure.pprint :refer [cl-format]] [clojure.test.check.generators :as check-gen] [clojure.spec...
null
https://raw.githubusercontent.com/jgrodziski/talltale/5bb413aa6969ae95f92e8a866967c8009d16452a/src/talltale/core.cljc
clojure
;; ADDRESS STUFF ;; ;; PERSON STUFF ;; ...
(ns talltale.core #?(:cljs (:refer-clojure :exclude [name type])) (:require [clojure.core :refer [name type] :rename {name core-name type core-type}] [clojure.string :as str :refer [lower-case upper-case]] [clojure.pprint :refer [cl-format]] [clojure.test.check.generators :as check-gen] [clojure.spec...
ccfc1e779f9eae5197f0990a00b2698583a8c811a6e05ca376180eddd66c58ac
yitzchak/common-lisp-jupyter
ql-install.lisp
(load "quicklisp.lisp") (quicklisp-quickstart:install) (ql-util:without-prompting (ql:add-to-init-file)) ( ql : quickload : ) ( : with - distribution ( dist : releases ' ( " . " ) ) ( ql - dist : install - dist ( ziz : distribution - info - url dist ) : prompt nil ) ; (ql:quickload :common-lisp-jupyter)) (q...
null
https://raw.githubusercontent.com/yitzchak/common-lisp-jupyter/9970c09e9e4c9b8718e6752b1a807b8c02da4913/scripts/ql-install.lisp
lisp
(ql:quickload :common-lisp-jupyter))
(load "quicklisp.lisp") (quicklisp-quickstart:install) (ql-util:without-prompting (ql:add-to-init-file)) ( ql : quickload : ) ( : with - distribution ( dist : releases ' ( " . " ) ) ( ql - dist : install - dist ( ziz : distribution - info - url dist ) : prompt nil ) (ql:quickload :common-lisp-jupyter) (cl-j...
db4b92c44d218246c5fa591c374b230aa6b75f40622cd8f64e254a6c37ce4997
cerner/clara-rules
test_java.clj
(ns clara.test-java (:use clojure.test clara.rules.testfacts) (:require [clara.sample-ruleset :as sample] [clara.other-ruleset :as other]) (:import [clara.rules.testfacts Temperature WindSpeed Cold ColdAndWindy LousyWeather First Second Third Fourth] [clara.rules QueryResult RuleLoa...
null
https://raw.githubusercontent.com/cerner/clara-rules/8107a5ab7fdb475e323c0bcb39084a83454deb1c/src/test/clojure/clara/test_java.clj
clojure
(ns clara.test-java (:use clojure.test clara.rules.testfacts) (:require [clara.sample-ruleset :as sample] [clara.other-ruleset :as other]) (:import [clara.rules.testfacts Temperature WindSpeed Cold ColdAndWindy LousyWeather First Second Third Fourth] [clara.rules QueryResult RuleLoa...
3106c8e86644b85d8d933e77ea30584382ab78e8b46729e338c119a3504ecbfd
Jaxan/nominal-lstar
Bench.hs
{-# language PartialTypeSignatures #-} # OPTIONS_GHC -Wno - missing - signatures -Wno - partial - type - signatures # import Angluin (learnAngluin, learnAngluinRows) import Bollig (learnBollig) import Examples import Teacher import Gauge.Main import Gauge.Main.Options import NLambda Benchmarks can be run with ` sta...
null
https://raw.githubusercontent.com/Jaxan/nominal-lstar/98f9c6e295583a7ea52e528665f50af855ad852b/bench/Bench.hs
haskell
# language PartialTypeSignatures # ba NomNLStar ` ba NomNLStar` Some bounds on the size of automata Some (polymorphic) abbreviations
# OPTIONS_GHC -Wno - missing - signatures -Wno - partial - type - signatures # import Angluin (learnAngluin, learnAngluinRows) import Bollig (learnBollig) import Examples import Teacher import Gauge.Main import Gauge.Main.Options import NLambda Benchmarks can be run with ` stack bench ` . If you would like to run a...
5577aa2435c0011db8ca0826b83e84bf20756f2eff355bcea787da0bb0311f2e
serokell/avl-plus
Iteration.hs
-- | AVL tree iteration. module Data.Tree.AVL.Iteration ( walkDFS , foldIf , fold ) where import Control.Monad.Writer.Strict (WriterT (runWriterT), lift, tell) import qualified Data.Set as Set import Control.Lens ((^.)) import Data.Tree.AVL.Internal -- | Traverses the tree in DFS manner meeting keys ...
null
https://raw.githubusercontent.com/serokell/avl-plus/3fb3933f4f11f282e8c498d128c3e5c79518ea9b/src/Data/Tree/AVL/Iteration.hs
haskell
| AVL tree iteration. | Traverses the tree in DFS manner meeting keys in ascending order. | Left-to-right fold. | Left-to-right fold.
module Data.Tree.AVL.Iteration ( walkDFS , foldIf , fold ) where import Control.Monad.Writer.Strict (WriterT (runWriterT), lift, tell) import qualified Data.Set as Set import Control.Lens ((^.)) import Data.Tree.AVL.Internal walkDFS :: forall h k v m b res . Retrieves h k v m => ( b , M...