_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
340bdd70f4a57e67c3092d571dfd94e0587edc5594bd3f7aa3a91710f70dbd8b
minikN/dots
workhorse.scm
This machine is meant to run Debian 11 with RDE on top ! First install Debian 11.6 without any DE . ;;; ;;; Install packages: firmware_linux, git, make, network - manager , nscd , policykit-1 ( remove git , make after installation ) ;;; through install script : ;;; #Binary-Installation ;;; Reconfigure ho...
null
https://raw.githubusercontent.com/minikN/dots/aa59f5c63d57e9cea6f4ccfe4495dff4c66f8494/config/workhorse.scm
scheme
Install packages: firmware_linux, git, make, #Binary-Installation Newer kernel Add backports repository echo 'deb bullseye-backports main' \ | sudo tee -a /etc/apt/sources.list Hardware stuff Add tuxedo repository: wget -O - \ cat 0x54840598.pub.gpg \ | sudo tee -a /usr/share/keyrings/tuxedo-keyring....
This machine is meant to run Debian 11 with RDE on top ! First install Debian 11.6 without any DE . network - manager , nscd , policykit-1 ( remove git , make after installation ) through install script : Reconfigure home with RDE config | gpg --dearmor > 0x54840598.pub.gpg echo ' deb [ arch = amd64 ...
dc858e9857ea4e8207a07aab403f65a7a5e216ae982110924026cca8f1416d94
footprintanalytics/footprint-web
pulse_card_test.clj
(ns metabase.models.pulse-card-test (:require [clojure.test :refer :all] [metabase.models.card :refer [Card]] [metabase.models.collection :refer [Collection]] [metabase.models.dashboard :refer [Dashboard]] [metabase.models.dashboard-card :refer [DashboardCard]] ...
null
https://raw.githubusercontent.com/footprintanalytics/footprint-web/d3090d943dd9fcea493c236f79e7ef8a36ae17fc/test/metabase/models/pulse_card_test.clj
clojure
(ns metabase.models.pulse-card-test (:require [clojure.test :refer :all] [metabase.models.card :refer [Card]] [metabase.models.collection :refer [Collection]] [metabase.models.dashboard :refer [Dashboard]] [metabase.models.dashboard-card :refer [DashboardCard]] ...
85040786e2eeae9915e0e92f23090c4c3ebf28919d1ae89cb576f22df2505bd7
esobchenko/probix
probix_time_tests.erl
-module(probix_time_tests). -compile(export_all). -include("probix.hrl"). -include_lib("eunit/include/eunit.hrl"). t() -> probix_time:new(). from_iso8601_test_() -> [ ?_assertEqual( {ok, (t())#timestamp{ year=1997 }}, probix_time:from_iso8601("1997") ), ?_assertEqual( {ok, (t())#timestamp{ year=1997,...
null
https://raw.githubusercontent.com/esobchenko/probix/d4c955bafb47b20eae0e8ce32bde705bb3a9f72b/test/probix_time_tests.erl
erlang
-module(probix_time_tests). -compile(export_all). -include("probix.hrl"). -include_lib("eunit/include/eunit.hrl"). t() -> probix_time:new(). from_iso8601_test_() -> [ ?_assertEqual( {ok, (t())#timestamp{ year=1997 }}, probix_time:from_iso8601("1997") ), ?_assertEqual( {ok, (t())#timestamp{ year=1997,...
be2397aecb2d5a35a9b479abe639e20df1d88366c95636b021e195b84a450d34
yuriy-chumak/ol
utf-8-rand.scm
(import (owl random)) (define seed (time-ms)) decode 1000 encoded ( valid ) strings (import (only (owl unicode) last-code-point)) (let loop ((rst (seed->rands seed)) (n 100)) (if (= n 0) (print "ok") (let*((rst len (rand rst 100)) (rst cps (random-numbers rst (+ last-code-point 1) len))) ;; could ...
null
https://raw.githubusercontent.com/yuriy-chumak/ol/83dd03d311339763682eab02cbe0c1321daa25bc/tests/utf-8-rand.scm
scheme
could also use ((o utf8-decode utf8-encode) data), but using strings to also touch that code (print " => " (list->string cps))
(import (owl random)) (define seed (time-ms)) decode 1000 encoded ( valid ) strings (import (only (owl unicode) last-code-point)) (let loop ((rst (seed->rands seed)) (n 100)) (if (= n 0) (print "ok") (let*((rst len (rand rst 100)) (rst cps (random-numbers rst (+ last-code-point 1) len))) (if (equa...
d32701bbe6367714adc7c948d698d9f3bc950443d7df1737eedf831365a9edaf
coldnew/snake.cljs
slide01.cljs
(ns snake-slides.slide01 (:require [rum.core :as rum] [snake-slides.syntax-highlight :as sx])) (def dark-green "#143") (def light-green "#175") (def dark-purple "#449") (def light-purple "#6ad") (def dark-red "#944") (def light-red "#f8c") (def app (atom {:row nil :col nil :board [[ 0 0 ...
null
https://raw.githubusercontent.com/coldnew/snake.cljs/7d2c1f6efcfc5eeda9883776d2b156c00caf4cd2/slides/src/cljs/snake_slides/slide01.cljs
clojure
offset x, y to center else
(ns snake-slides.slide01 (:require [rum.core :as rum] [snake-slides.syntax-highlight :as sx])) (def dark-green "#143") (def light-green "#175") (def dark-purple "#449") (def light-purple "#6ad") (def dark-red "#944") (def light-red "#f8c") (def app (atom {:row nil :col nil :board [[ 0 0 ...
9a360f99f19aeb443ba47a67086ba0fc424e085bd6be50e979097a0fe1bdb8f8
Commonfare-net/macao-social-wallet
activitystreams.clj
Freecoin - digital social currency toolkit part of Decentralized Citizen Engagement Technologies ( D - CENT ) R&D funded by the European Commission ( FP7 / CAPS 610349 ) Copyright ( C ) 2015 Dyne.org foundation Copyright ( C ) 2015 Thoughtworks , Inc. designed , written and maintained by < > ;; Wi...
null
https://raw.githubusercontent.com/Commonfare-net/macao-social-wallet/d3724d6c706cdaa669c59da439fe48b0373e17b7/test/freecoin/journey/activitystreams.clj
clojure
With contributions by This program is free software: you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See th...
Freecoin - digital social currency toolkit part of Decentralized Citizen Engagement Technologies ( D - CENT ) R&D funded by the European Commission ( FP7 / CAPS 610349 ) Copyright ( C ) 2015 Dyne.org foundation Copyright ( C ) 2015 Thoughtworks , Inc. designed , written and maintained by < > <...
bd9683ef5c924e948736583c40b7ae5456ee4f8afaed7e437b44dafd50c6b0a2
gsakkas/rite
0074.ml
UopG LitG (- 1.0)
null
https://raw.githubusercontent.com/gsakkas/rite/958a0ad2460e15734447bc07bd181f5d35956d3b/data/sp14/clusters/0074.ml
ocaml
UopG LitG (- 1.0)
28351e5dd5518ab64f8e0cb1041d27ae21c9624b4c8dd068d2a92e0ae88c2d74
sgbj/MaximaSharp
load-graphs.lisp
(in-package #-gcl #:maxima #+gcl "MAXIMA") #+ecl ($load "lisp-utils/defsystem.lisp") (load (merge-pathnames (make-pathname :name "graphs" :type "system") #-gcl *load-pathname* #+gcl sys:*load-pathname*)) (mk:oos "graphs" :compile)
null
https://raw.githubusercontent.com/sgbj/MaximaSharp/75067d7e045b9ed50883b5eb09803b4c8f391059/Test/bin/Debug/Maxima-5.30.0/share/maxima/5.30.0/share/graphs/load-graphs.lisp
lisp
(in-package #-gcl #:maxima #+gcl "MAXIMA") #+ecl ($load "lisp-utils/defsystem.lisp") (load (merge-pathnames (make-pathname :name "graphs" :type "system") #-gcl *load-pathname* #+gcl sys:*load-pathname*)) (mk:oos "graphs" :compile)
a3853d72c30ed7c5a321870c8360c9376b4a630f5e9f179d5f838d567f2ddc8f
softwarelanguageslab/maf
R5RS_various_inc-2.scm
; Changes: * removed : 0 * added : 1 * swaps : 0 ; * negated predicates: 0 ; * swapped branches: 0 ; * calls to id fun: 0 (letrec ((inc (lambda (x) (<change> () +) (+ x 1)))) (inc (inc 2)))
null
https://raw.githubusercontent.com/softwarelanguageslab/maf/11acedf56b9bf0c8e55ddb6aea754b6766d8bb40/test/changes/scheme/generated/R5RS_various_inc-2.scm
scheme
Changes: * negated predicates: 0 * swapped branches: 0 * calls to id fun: 0
* removed : 0 * added : 1 * swaps : 0 (letrec ((inc (lambda (x) (<change> () +) (+ x 1)))) (inc (inc 2)))
01f6b38e356e6fb40a6106a7026b3f3fa71be912e55a3681510ebc0efbcdd92e
nikita-volkov/rerebase
Float.hs
module GHC.Float ( module Rebase.GHC.Float ) where import Rebase.GHC.Float
null
https://raw.githubusercontent.com/nikita-volkov/rerebase/25895e6d8b0c515c912c509ad8dd8868780a74b6/library/GHC/Float.hs
haskell
module GHC.Float ( module Rebase.GHC.Float ) where import Rebase.GHC.Float
31bd3fa31a8888887eec07c39ea9e3d43905b5c5af027e95ce9b45efcf909091
facebookarchive/pfff
prolog_code.ml
* * Copyright ( C ) 2014 Facebook * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as published by the Free Software Foundation , with the * special exception on linking described in file licens...
null
https://raw.githubusercontent.com/facebookarchive/pfff/ec21095ab7d445559576513a63314e794378c367/h_program-lang/prolog_code.ml
ocaml
*************************************************************************** Prelude *************************************************************************** * For more information look at h_program-lang/prolog_code.pl * and its many predicates. *****************************************************************...
* * Copyright ( C ) 2014 Facebook * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as published by the Free Software Foundation , with the * special exception on linking described in file licens...
14930c4c8b91c2de6d8e2e835ab179f1b8fe6a1ab903288e0b94ccac55f5ae4a
ocaml-flambda/ocaml-jst
proc.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocaml-flambda/ocaml-jst/5bf2820278c58f6715dcfaf6fa61e09a9b0d8db3/asmcomp/arm/proc.ml
ocaml
************************************************************************ OCaml ...
, University of Siegen Copyright 1998 Institut National de Recherche en Informatique et Copyright 2012 . the GNU Lesser General Public License version 2.1 , with the Description of the ARM processor open Misc op...
804ded51fce2f98513a3d3b820f48f3511ce938433eddd6e97a8cafc013f94a6
JunSuzukiJapan/cl-reex
logger-test.lisp
(defpackage logger-test (:use :cl :cl-reex :cl-reex-test.logger :prove) (:shadowing-import-from :cl-reex :skip)) (in-package :logger-test) NOTE : To run this test file , execute ` ( asdf : test - system : cl - reex ) ' in your Lisp . (plan 3) ;; blah blah blah. (defparameter logger (make-instance ...
null
https://raw.githubusercontent.com/JunSuzukiJapan/cl-reex/94928c7949c235b41902138d9e4a5654b92d67eb/tests/logger-test.lisp
lisp
blah blah blah.
(defpackage logger-test (:use :cl :cl-reex :cl-reex-test.logger :prove) (:shadowing-import-from :cl-reex :skip)) (in-package :logger-test) NOTE : To run this test file , execute ` ( asdf : test - system : cl - reex ) ' in your Lisp . (plan 3) (defparameter logger (make-instance 'logger)) (add log...
08a4e9c3823089cc55faf5acb69751673f97be9e6e7d3636975ac0791e652be2
master/ejabberd
ejabberd.erl
%%%---------------------------------------------------------------------- %%% File : ejabberd.erl Author : < > %%% Purpose : ejabberd wrapper: start / stop Created : 16 Nov 2002 by < > %%% %%% ejabberd , Copyright ( C ) 2002 - 2012 ProcessOne %%% %%% This program is free software; you can redistribu...
null
https://raw.githubusercontent.com/master/ejabberd/9c31874d5a9d1852ece1b8ae70dd4b7e5eef7cf7/src/ejabberd.erl
erlang
---------------------------------------------------------------------- File : ejabberd.erl Purpose : ejabberd wrapper: start / stop This program is free software; you can redistribute it and/or License, or (at your option) any later version. This program is distributed in the hope that it will be useful, b...
Author : < > Created : 16 Nov 2002 by < > ejabberd , Copyright ( C ) 2002 - 2012 ProcessOne modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the You should have received a copy of the GNU General Public License Founda...
65e7cc2b9357d4bec887423213b79d38ac71792232a0506beab2f719e3e6a2d5
avatar29A/hs-aitubots-api
Switch.hs
# LANGUAGE DuplicateRecordFields # # LANGUAGE RecordWildCards # {-# LANGUAGE OverloadedStrings #-} module Aitu.Bot.Forms.Content.Switch ( Switch(..) ) where import Data.Aeson hiding ( Options ) import Data.Text import Aitu.Bot.Forms.Options ( Options ) import...
null
https://raw.githubusercontent.com/avatar29A/hs-aitubots-api/9cc3fd1e4e9e81491628741a6bbb68afbb85704e/src/Aitu/Bot/Forms/Content/Switch.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE DuplicateRecordFields # # LANGUAGE RecordWildCards # module Aitu.Bot.Forms.Content.Switch ( Switch(..) ) where import Data.Aeson hiding ( Options ) import Data.Text import Aitu.Bot.Forms.Options ( Options ) import qualified Aitu.Bot.Forms.Content.C...
78fffd45b68981fcaae126c0249430a2f5442b94b3b13aa0518a47df10bbd268
andrenth/ocaml-swagger
type.mli
(** Representation of OCaml types in signatures and implementations. *) * { 1 Signature types } (** Type declarations in signatures. *) module Sig : sig type t val abstract : ?descr:string -> string -> t * Signature item for abstract types . [ abstract ? ? is_record name ] is a signature item for abstr...
null
https://raw.githubusercontent.com/andrenth/ocaml-swagger/60486bee7220a868b7e0b4507adb1edad44b98cd/lib/type.mli
ocaml
* Representation of OCaml types in signatures and implementations. * Type declarations in signatures. * {1 Implementation types} * Type declarations in signatures. * The type of record fields. * Constructor function for record fields. * The type used to represent signature and implementation types. * The name of...
* { 1 Signature types } module Sig : sig type t val abstract : ?descr:string -> string -> t * Signature item for abstract types . [ abstract ? ? is_record name ] is a signature item for abstract types . The [ descr ] argument will be used to generate the documentation string , if provid...
4023acce07bcc6c7e5cd681a2fe246f3a66052d97d2edc65b71f2395bc748de2
gvannest/piscine_OCaml
main.ml
let printListString (listString:string list) = match listString with | [] -> print_string "[]" | _ -> begin print_char '[' ; let rec print_aux lst = match lst with | [] -> print_endline "]" | h :: t -> print_string h ; print_string ", " ; print_aux t in p...
null
https://raw.githubusercontent.com/gvannest/piscine_OCaml/2533c6152cfb46c637d48a6d0718f7c7262b3ba6/d04/ex03/main.ml
ocaml
let printListString (listString:string list) = match listString with | [] -> print_string "[]" | _ -> begin print_char '[' ; let rec print_aux lst = match lst with | [] -> print_endline "]" | h :: t -> print_string h ; print_string ", " ; print_aux t in p...
dc84760476d4da904d2fb738d94afa2e129fe9d63311d6e397deddeea129ade2
klakplok/goji
goji_license.ml
(****************************************************************************) GOJI ( JavaScript Interface Generator for OCaml ) This file is published under the CeCILL licence ( C ) 2013 (*********************...
null
https://raw.githubusercontent.com/klakplok/goji/78da18fafdd32910fc85f334210c9cd3aae2f974/goji_lib/goji_license.ml
ocaml
************************************************************************** ************************************************************************** * Type for licenses and collection of predefined ones. * The type of licenses. * The acronym. * The spoken expansion of the acronym. * An URL to access the text of th...
GOJI ( JavaScript Interface Generator for OCaml ) This file is published under the CeCILL licence ( C ) 2013 type t = { } * GNU General Public License ( version 3 or superior ) let gpl_v3_plus = { short_na...
48671d31823b77dfdc8480ea7e24e86d87ed37a0723d3ecc139d329f06ee9ab4
Liqwid-Labs/liqwid-plutarch-extra
Traversable.hs
# LANGUAGE QuantifiedConstraints # module Plutarch.Extra.Traversable ( -- * Type classes PTraversable (..), PSemiTraversable (..), -- * Functions -- ** Folds psemifold, psemifoldMap, psemifoldComonad, pfold, pfoldMap, pfoldComonad, -- ** Specialized folds psum, Plutarch.Extra.Traversable...
null
https://raw.githubusercontent.com/Liqwid-Labs/liqwid-plutarch-extra/c937d2a7c09179cd69176b26cce7c7794f919624/src/Plutarch/Extra/Traversable.hs
haskell
* Type classes * Functions ** Folds ** Specialized folds | @since 1.0.0 > f b) :--> t a :--> f (t b)) | This avoids re-building the input 'PTraversable' if we end up throwing it away anyway. In the case where we only care about the effect, and don't need the 'PTraversable' afterwards, this can be more efficient...
# LANGUAGE QuantifiedConstraints # module Plutarch.Extra.Traversable ( PTraversable (..), PSemiTraversable (..), psemifold, psemifoldMap, psemifoldComonad, pfold, pfoldMap, pfoldComonad, psum, Plutarch.Extra.Traversable.plength, Plutarch.Extra.Traversable.pany, Plutarch.Extra.Traversable.pal...
473bcc0b02491092c91c5c49ee5b195564e5b46a1c94ba702c5783ff4e0630b9
raaz-crypto/raaz
CPortable.hs
{-# LANGUAGE DataKinds #-} -- | The portable C-implementation of Blake2b. module ChaCha20.CPortable where import Foreign.Ptr ( castPtr ) import qualified Data.Vector.Unboxed as V import Raaz.Core import Raaz.Core.Types.Internal import Raaz.Primi...
null
https://raw.githubusercontent.com/raaz-crypto/raaz/3afeac6688e15e815edbe5e5825efe81064c6a33/implementation/ChaCha20/CPortable.hs
haskell
# LANGUAGE DataKinds # | The portable C-implementation of Blake2b. | Process the last bytes. As a result the internal state is ready to start encrypting using the xchacha20 variant. In the above step, the key gets replaced by the subkey obtained ------------ Helper function for running an iter...
module ChaCha20.CPortable where import Foreign.Ptr ( castPtr ) import qualified Data.Vector.Unboxed as V import Raaz.Core import Raaz.Core.Types.Internal import Raaz.Primitive.ChaCha20.Internal import Raaz.Verse.ChaCha20.C.Portable name :: String name...
7e9f48aacfe07d47b46025bb032a5b0fd5425bc7e472bde86e497b50ace00683
clojurecademy/clojurecademy
course.clj
(ns clojurecademy.resource.course (:require [clojurecademy.util.resource :as resource.util :refer [resource]] [clojurecademy.view.course :as view.course] [clojurecademy.dao.course :as course.dao] [clojurecademy.controller.course.core :as course.controller] [compojure.co...
null
https://raw.githubusercontent.com/clojurecademy/clojurecademy/97dc7f9b91a90a3f30ca5a3de88542c90a50ce01/src/clj/clojurecademy/resource/course.clj
clojure
(ns clojurecademy.resource.course (:require [clojurecademy.util.resource :as resource.util :refer [resource]] [clojurecademy.view.course :as view.course] [clojurecademy.dao.course :as course.dao] [clojurecademy.controller.course.core :as course.controller] [compojure.co...
6b9500d47c7e2b8ba21b06dc34632ef74503eec663934471e31a308d3b0882db
maiste/equinoxe
mock_orga.ml
open Mock let test_orga_get_all = Alcotest.test_case "Orga.get_all" `Quick @@ fun () -> let raw_json = {|{ "organizations": [ { "id": "mock id 1", "name": "Mock Orga 1", "description": null, "website": "", "twitter": "", ...
null
https://raw.githubusercontent.com/maiste/equinoxe/ab5735056d97f4a9ca318e23255ee84625e5626b/tests/mock_orga.ml
ocaml
open Mock let test_orga_get_all = Alcotest.test_case "Orga.get_all" `Quick @@ fun () -> let raw_json = {|{ "organizations": [ { "id": "mock id 1", "name": "Mock Orga 1", "description": null, "website": "", "twitter": "", ...
719368085674a45aeed4f88226f5ac3a73f793ebbd15fd53daa84c2a68584d00
kalxd/azelf
curry.rkt
#|函数相关宏及辅助函数|# #lang racket/base (require racket/contract racket/function syntax/parse/define (for-syntax racket/base (only-in racket/list range))) (provide define/curry define/curry/contract curry/n) ; 直接定义成柯里化函数,不用再套用...
null
https://raw.githubusercontent.com/kalxd/azelf/0b99782e26a59f5118ea677e2d53f55cbbe5e92d/internal/curry.rkt
racket
函数相关宏及辅助函数 直接定义成柯里化函数,不用再套用curry。 一次性结合了define/contract和curry,意义非比寻常。 柯化里不定长参数的函数,需要指定参数个数。
#lang racket/base (require racket/contract racket/function syntax/parse/define (for-syntax racket/base (only-in racket/list range))) (provide define/curry define/curry/contract curry/n) (define-syntax-rule (define/curry...
c44235a11653e215c9d7643a7ead9a17cb2079f22453402feebaab876e6216c3
Drup/dowsing
Package.ml
exception Error of String.t let error pkg = raise @@ Error pkg let () = Findlib.init () let wrap pkgs = try pkgs () |> CCList.filter_map (fun pkg -> let pkg_dir = Findlib.package_directory pkg in if Sys.file_exists pkg_dir then Some (pkg, Fpath.v pkg_dir) else None ) with | F...
null
https://raw.githubusercontent.com/Drup/dowsing/6a7b6a9d1206689da45f7030c700c58a0b3c3d8a/lib/package/Package.ml
ocaml
exception Error of String.t let error pkg = raise @@ Error pkg let () = Findlib.init () let wrap pkgs = try pkgs () |> CCList.filter_map (fun pkg -> let pkg_dir = Findlib.package_directory pkg in if Sys.file_exists pkg_dir then Some (pkg, Fpath.v pkg_dir) else None ) with | F...
21ee7b7d89f62e0746048b10467f0d0842bcdebbc24ea6e763b6ddecd6cfa663
min-nguyen/prob-fx
School.hs
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # # LANGUAGE OverloadedLabels # | The and [ 8 - schools case study]( - project.org / web / packages / rstan / vignettes / rstan.html ) , which quantifies the effect of co...
null
https://raw.githubusercontent.com/min-nguyen/prob-fx/0523d89bd22bbb0bb7e6e1350ef7a9691d22252c/examples/School.hs
haskell
| School model environment | School model | number of schools | standard errors of each school | effectiveness of each school | Perform MH inference Specify model inputs Specify model environment Retrieve and returns the trace of model parameters mu and theta
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # # LANGUAGE OverloadedLabels # | The and [ 8 - schools case study]( - project.org / web / packages / rstan / vignettes / rstan.html ) , which quantifies the effect of co...
031cfaa89059bb5313a14f1c4f31fe299318f03747562cb32c80a510fde7ba72
pmatos/racket-binaryen
expressions.rkt
#lang racket/base ;; --------------------------------------------------------------------------------------------------- (require "private/binaryen-ffi.rkt" "private/types.rkt" "modules.rkt" "literals.rkt" "types.rkt" "indices.rkt" (for-syntax racket/base racket/sy...
null
https://raw.githubusercontent.com/pmatos/racket-binaryen/2ead2e6c76188e6e409e1fc844650778554610dc/expressions.rkt
racket
--------------------------------------------------------------------------------------------------- block load --------------------------------------------------------------------------------------------------- n is the size of the prefix to capitalize -------------------------------------------------------------...
#lang racket/base (require "private/binaryen-ffi.rkt" "private/types.rkt" "modules.rkt" "literals.rkt" "types.rkt" "indices.rkt" (for-syntax racket/base racket/syntax) racket/contract) (provide expression? expression-ref if-expression? ...
2cb4ef96aece34c7d1585e15f7bcb33a3a073d90e0d82518637b2ce0f1fa505d
herd/herdtools7
toolsConstant.ml
(****************************************************************************) (* the diy toolsuite *) (* *) , University College London , UK . , INRIA Par...
null
https://raw.githubusercontent.com/herd/herdtools7/b22ec02af1300a45e2b646cce4253ecd4fa7f250/tools/toolsConstant.ml
ocaml
************************************************************************** the diy toolsuite en Automatique and ...
, University College London , UK . , INRIA Paris - Rocquencourt , France . Copyright 2017 - present Institut National de Recherche en Informatique et This software is governed by the CeCILL - B license under French law and modify and/ or redistribu...
2c1d1cd184ba7cf89ecb1285a00bacf1f4fd5bdbd753c9ae3f2305eefa68c983
jimpil/clojure-encog
nnets.clj
(ns clojure-encog.nnets (:import (org.encog.neural.pattern FeedForwardPattern ADALINEPattern ART1Pattern BAMPattern BoltzmannPattern CPNPattern ElmanPattern HopfieldPattern PatternError JordanPattern SOMPattern PNNPattern SVMPattern RadialBasisPattern) (org.encog.engine.network.activatio...
null
https://raw.githubusercontent.com/jimpil/clojure-encog/5b9166b034d7f61d7536db36c691c894a97b9ca0/src/clojure_encog/nnets.clj
clojure
usage: (make-pattern :feed-forward) (make-pattern :svm) usage: (make-activationF :tanh) (make-activationF :linear) hyperbolic tangent for activation function the classic feed-forward pattern" dispatch function only cares about the class of the pattern many activations are allowed here finally, return the comple...
(ns clojure-encog.nnets (:import (org.encog.neural.pattern FeedForwardPattern ADALINEPattern ART1Pattern BAMPattern BoltzmannPattern CPNPattern ElmanPattern HopfieldPattern PatternError JordanPattern SOMPattern PNNPattern SVMPattern RadialBasisPattern) (org.encog.engine.network.activatio...
f7dd4b65fecae56db271fe56aade6db1e2cc3ef7d8c84b7155ce1cc43d074aa0
haskell-game/tiny-games-hs
template1.hs
#!/usr/bin/env stack -- stack --verbosity=error script --resolver=lts-20 --package process import System.Process (system) main = do putStr "The current date/time is: " system "date" -- ^10 ------------------------------------------------------------------ 80> -- default-10 - 80 / template1 ( mynick )
null
https://raw.githubusercontent.com/haskell-game/tiny-games-hs/c7a80d70a2a5f790f7e358917236800991d65152/default/template1.hs
haskell
stack --verbosity=error script --resolver=lts-20 --package process ^10 ------------------------------------------------------------------ 80> --
#!/usr/bin/env stack import System.Process (system) main = do putStr "The current date/time is: " system "date" default-10 - 80 / template1 ( mynick )
5f527a8cd4bf4b07f0a49d36b8f8d17c7cb3300a293d0d18c76432cdf92c5de3
tari3x/csec-modex
transform.ml
Copyright ( c ) ( ) . This file is distributed as part of csec - tools under a BSD license . See LICENSE file for copyright notice . Copyright (c) Mihhail Aizatulin (). This file is distributed as part of csec-tools under a BSD license. See LICENSE file for copyright notice. *) open Common open...
null
https://raw.githubusercontent.com/tari3x/csec-modex/5ab2aa18ef308b4d18ac479e5ab14476328a6a50/src/symtrace/transform.ml
ocaml
*********************************************** * {1 XOR rewriting} *********************************************** Make sure that XOR will be treated as cryptographic function. CR-someday: this might be done on a per-case bases using a plugin. *********************************************** **********************...
Copyright ( c ) ( ) . This file is distributed as part of csec - tools under a BSD license . See LICENSE file for copyright notice . Copyright (c) Mihhail Aizatulin (). This file is distributed as part of csec-tools under a BSD license. See LICENSE file for copyright notice. *) open Common open...
179dd18f28824282d08382fe8a95e5a4ab72924719da1174afbdb211030645fd
wireapp/wire-server
API.hs
-- This file is part of the Wire Server implementation. -- Copyright ( C ) 2022 Wire Swiss GmbH < > -- -- This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License...
null
https://raw.githubusercontent.com/wireapp/wire-server/6c4b00ec111e853871564687862a19658d04ea4f/services/galley/src/Galley/API.hs
haskell
This file is part of the Wire Server implementation. This program is free software: you can redistribute it and/or modify it under later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTI...
Copyright ( C ) 2022 Wire Swiss GmbH < > the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any You should have received a copy of the GNU Affero General Public License along module Galley.API ( sitemap, ...
f5c5b21671545bb4d2079d4a86506e8c2ef987a33857766cb4f11e39c8bb7ea0
obelix-site-builder/obelix
core.cljs
(ns obelix.core (:require [obelix.handlebars :as hb] [obelix.plugin-loader :as plugins] [obelix.plugins.data :as data] [obelix.plugins.filesystem :as filesystem] [obelix.plugins.format :as format] [obelix.plugins.layout :as layout] [obelix.plugin...
null
https://raw.githubusercontent.com/obelix-site-builder/obelix/87f298cf4d6da49bdb0c9a0470ec80346f3879a3/src/obelix/core.cljs
clojure
(ns obelix.core (:require [obelix.handlebars :as hb] [obelix.plugin-loader :as plugins] [obelix.plugins.data :as data] [obelix.plugins.filesystem :as filesystem] [obelix.plugins.format :as format] [obelix.plugins.layout :as layout] [obelix.plugin...
fbcca63058f29a4d0bee4eb3ae17172f7fc70d5b435fc7831873b75ea88ba456
dmitryvk/sbcl-win32-threads
linkage-table.lisp
;;;; Linkage table specifics This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the ;;;; public domain. The software is in the public domain and is ;;;; ...
null
https://raw.githubusercontent.com/dmitryvk/sbcl-win32-threads/5abfd64b00a0937ba2df2919f177697d1d91bde4/src/code/linkage-table.lisp
lisp
Linkage table specifics more information. public domain. The software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information. Linkage table itself is a mmapped memory area in C-land, which is been reopened, based on the information stored in *...
This software is part of the SBCL system . See the README file for This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the initialized by INIT - LINKAGE - TABLE once all shared objects have (in-package "SB!IMPL") (define-alien-routine arch-writ...
9ffa177d432dbc1891f0d3349fba2e11efd6868e530e33ae1e76d85c8e70c3db
NorfairKing/intray
DeleteAccessKey.hs
# LANGUAGE FlexibleContexts # # LANGUAGE MultiParamTypeClasses # # LANGUAGE RecordWildCards # module Intray.Server.Handler.AccessKey.DeleteAccessKey ( serveDeleteAccessKey, ) where import Database.Persist import Import import Intray.API import Intray.Server.Handler.Utils import Intray.Server.Types import Servant ...
null
https://raw.githubusercontent.com/NorfairKing/intray/b1b4c14c1a4e419d2a1bf96d757780981229a1e2/intray-server/src/Intray/Server/Handler/AccessKey/DeleteAccessKey.hs
haskell
# LANGUAGE FlexibleContexts # # LANGUAGE MultiParamTypeClasses # # LANGUAGE RecordWildCards # module Intray.Server.Handler.AccessKey.DeleteAccessKey ( serveDeleteAccessKey, ) where import Database.Persist import Import import Intray.API import Intray.Server.Handler.Utils import Intray.Server.Types import Servant ...
430bd89df1f24b283ee68142791fc39eccbc71dc1059f2669ab1b0fb64b4775e
lopec/LoPEC
chronicler_SUITE.erl
-module(chronicler_SUITE). % easier than exporting by name -compile(export_all). % required for common_test to work -include_lib("common_test/include/ct.hrl"). %%%%%%%%%%%%%%%%%%%%%%%%%%% %% common test callbacks %% %%%%%%%%%%%%%%%%%%%%%%%%%%% % Specify a list of all unit test functions all() -> [ info_...
null
https://raw.githubusercontent.com/lopec/LoPEC/29a3989c48a60e5990615dea17bad9d24d770f7b/branches/stable-1/lib/chronicler/test/chronicler_SUITE.erl
erlang
easier than exporting by name required for common_test to work common test callbacks %% Specify a list of all unit test functions required, but can just return Config. this is a suite level setup function. do custom per suite setup here required, but can just return Config. this is a suite level tear down func...
-module(chronicler_SUITE). -compile(export_all). -include_lib("common_test/include/ct.hrl"). all() -> [ info_log_test, error_log_test, debug_log_test, warning_log_test, user_info_log_test, child_specs_test ]. init_per_suite(Config) -> error_logger:tty(fal...
4bb507b6a1e6331613a4c86d4d5113a8c81d25ea59c5badaf616946b5fd30f23
emqx/esockd
esockd_server.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2020 EMQ Technologies Co. , Ltd. 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 L...
null
https://raw.githubusercontent.com/emqx/esockd/9b959fc11a1c398a589892f335235be6c5b4a454/src/esockd_server.erl
erlang
-------------------------------------------------------------------- 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 ...
Copyright ( c ) 2020 EMQ Technologies Co. , Ltd. 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(esockd_server). -behaviour(gen_server). -export([start_link/0, stop/0]). -export([ stats_fun...
695e6a9aa142a6a491a0cf8a0fcbf6a1d445c90b9963b43c2940ed44797813b6
mokus0/shapefile
MultiPatchPartTypes.hs
# LANGUAGE MultiParamTypeClasses , TypeFamilies # module Database.Shapefile.Shapes.MultiPatchPartTypes where import Control.Monad (liftM) import Data.Binary.Get import Data.Binary.Put import qualified Data.Vector.Generic as G import qualified Data.Vector.Generic.Mutable as M import qualified Data.Ve...
null
https://raw.githubusercontent.com/mokus0/shapefile/9a3821e1c6aef08b9304ed3c79cccbba09970d7d/src/Database/Shapefile/Shapes/MultiPatchPartTypes.hs
haskell
--------------------------------------------- Instance of Unboxed for use with Data.Vector: like in <-Vector-Unboxed-Base.html> --------------------------------------------
# LANGUAGE MultiParamTypeClasses , TypeFamilies # module Database.Shapefile.Shapes.MultiPatchPartTypes where import Control.Monad (liftM) import Data.Binary.Get import Data.Binary.Put import qualified Data.Vector.Generic as G import qualified Data.Vector.Generic.Mutable as M import qualified Data.Ve...
2043367b9668b676562fa70dd8ae830c8b5d1a76afcdeb0aa14fba0d090a7f47
inaka/sumo_rest
sr_echo_request.erl
%%% @doc echo_request model. This module is only for testing purposes -module(sr_echo_request). -behaviour(sumo_doc). -behaviour(sumo_rest_doc). -opaque echo_request() :: #{ id := undefined | binary() , headers := any() , path := any() , bindings := any() }. -export_type([echo_request/0]). ...
null
https://raw.githubusercontent.com/inaka/sumo_rest/19a3685ab477222738ac27b72e39346cbad9463d/test/sr_test/sr_echo_request.erl
erlang
@doc echo_request model. This module is only for testing purposes
-module(sr_echo_request). -behaviour(sumo_doc). -behaviour(sumo_rest_doc). -opaque echo_request() :: #{ id := undefined | binary() , headers := any() , path := any() , bindings := any() }. -export_type([echo_request/0]). -export( [ sumo_schema/0 , sumo_wakeup/1 , sumo_sleep/1 ]). -e...
274e911469840739f92a11bb7dfdb028e642173a2209acb28287b7b95c0ca416
clojure-quant/infra-guix
rock-nas.scm
(use-modules (awb99 machine rock) (awb99 machine rock-image) (awb99 machine rock-sp) ; of use-modules ) ;; this is a bootstrap image of guix for rock-pro ;; it can be build on x86. ;; it includes files in /etc/static ;; when this image is booted execute bash /etc/static/boostrap.sh (display "building rock-pro i...
null
https://raw.githubusercontent.com/clojure-quant/infra-guix/a64885e6e303f646a31f50452f871e4931fa7063/image/rock-nas.scm
scheme
of use-modules this is a bootstrap image of guix for rock-pro it can be build on x86. it includes files in /etc/static when this image is booted execute bash /etc/static/boostrap.sh
(use-modules (awb99 machine rock) (awb99 machine rock-image) (awb99 machine rock-sp) ) (display "building rock-pro image: nas \n") (define os-rock64-nas (os-rock-image "rockit" rock-packages-nas rock-services-nas )) (rock64-raw-image os-rock64-nas)
0f3fb08dbbb60e76a879a11075a622c693bcf4b15e067e5a67ab9e19da764e9d
tilk/yieldfsm
MultiSet.hs
| Copyright : ( C ) 2022 : BSD2 ( see the file LICENSE ) Maintainer : < > A simple multiset data structure : an element can occur multiple times , but the ordering is irrelevant . Copyright : (C) 2022 Marek Materzok License : BSD2 (see the file LICENSE) Maintainer : Marek Materzok <...
null
https://raw.githubusercontent.com/tilk/yieldfsm/bf86708eab22faec90c63cb15b0ac94c7005724b/src/FSM/Util/MultiSet.hs
haskell
| Copyright : ( C ) 2022 : BSD2 ( see the file LICENSE ) Maintainer : < > A simple multiset data structure : an element can occur multiple times , but the ordering is irrelevant . Copyright : (C) 2022 Marek Materzok License : BSD2 (see the file LICENSE) Maintainer : Marek Materzok <...
5297ee4602f95cfddff185e8d0181c270abc359e4c53ad0b1f96d3f08a8210c4
justinmeiners/exercises
2_25.scm
(let ( (x (list 1 3 (list 5 7) 9)) (y (list (list 7))) (z (list 1 (list 2 (list 3 (list 4 (list 5 (list 6 7))))))) ) ( 1 3 ( 5 7 ) 9 ) (display x) (newline) (display (car (cdr (car (cdr (cdr x)))))) (newline) ( ( 7 ) ) (display y) (newline) (display ...
null
https://raw.githubusercontent.com/justinmeiners/exercises/9491bc16925eae12e048ccd3f424b870ebdc73aa/sicp/2/2_25.scm
scheme
(let ( (x (list 1 3 (list 5 7) 9)) (y (list (list 7))) (z (list 1 (list 2 (list 3 (list 4 (list 5 (list 6 7))))))) ) ( 1 3 ( 5 7 ) 9 ) (display x) (newline) (display (car (cdr (car (cdr (cdr x)))))) (newline) ( ( 7 ) ) (display y) (newline) (display ...
be04a250908fa917401321ebfac2cf19a35b81d46594491558894ad040c79c10
Engelberg/ubergraph
core_test.clj
(ns ubergraph.core-test (:require [clojure.test :refer :all] [ubergraph.core :refer :all] [ubergraph.invariants :refer :all])) (defn vec-edges [g] (for [e (edges g) :when (not (mirror-edge? e))] [(src e) (dest e)])) (defn satisfies-invariants [g] (is (= false (:error (check-invariants g)...
null
https://raw.githubusercontent.com/Engelberg/ubergraph/1a6b326135995a44c4c7dc337602024e9a91edf6/test/ubergraph/core_test.clj
clojure
There should be no attributes for a node that was removed, then added back again without any attributes. filed. Adding a test case for the extra assurance and catching future possible regressions. There should be no attributes for an edge that was removed, then added back again without any attributes. No cached...
(ns ubergraph.core-test (:require [clojure.test :refer :all] [ubergraph.core :refer :all] [ubergraph.invariants :refer :all])) (defn vec-edges [g] (for [e (edges g) :when (not (mirror-edge? e))] [(src e) (dest e)])) (defn satisfies-invariants [g] (is (= false (:error (check-invariants g)...
bc2153296a0b7290feafef99307355acbf8fea9867115d17d791f8d237003f2a
thesis/shale
prod.cljs
(ns shale.prod (:require [shale.webapp :as webapp])) ;;ignore println statements in prod (set! *print-fn* (fn [& _])) (webapp/init!)
null
https://raw.githubusercontent.com/thesis/shale/84180532e46ee5d9ee0218138da04ea035bcf7d2/env/prod/cljs/shale/prod.cljs
clojure
ignore println statements in prod
(ns shale.prod (:require [shale.webapp :as webapp])) (set! *print-fn* (fn [& _])) (webapp/init!)
3f6955d01692b9f505db124bcbdf27db4ff9020362974a2f78308453dac4209b
jaspervdj/blaze-markup
Pretty.hs
-- | A renderer that produces pretty HTML, mostly meant for debugging purposes. -- module Text.Blaze.Renderer.Pretty ( renderMarkup , renderHtml ) where import Text.Blaze.Internal import Text.Blaze.Renderer.String (fromChoiceString) | Render some ' ' to an appending ' String ' . -- ^ to render ...
null
https://raw.githubusercontent.com/jaspervdj/blaze-markup/214b4110b925378f5e5e5a1e9c2d66120b6889d1/src/Text/Blaze/Renderer/Pretty.hs
haskell
| A renderer that produces pretty HTML, mostly meant for debugging purposes. ^ String to append Increase the indentation Produce appending indentation | Render markup to a lazy 'String'. The result is prettified. # INLINE renderHtml # # DEPRECATED renderHtml "Use renderHtml from Text.Blaze.Html.Renderer.Pre...
module Text.Blaze.Renderer.Pretty ( renderMarkup , renderHtml ) where import Text.Blaze.Internal import Text.Blaze.Renderer.String (fromChoiceString) | Render some ' ' to an appending ' String ' . ^ to render ^ Resulting String renderString = go 0 id where go :: Int -> (String -> String) -> ...
27b6e1614a41a1d8f6ec0c37e59dfd8d3ae089bace6bd261854e5f20404c5f06
RefactoringTools/HaRe
SubSubPatternIn2_TokOut.hs
module SubSubPatternIn2 where data C1_Type = C1 C2_Type data C2_Type = C2 Int Int C3_Type data C3_Type = C3 Int [Int] Int f :: C1_Type -> Int f (C1 (C2 x_1 y_2 (C3 x y z))) = z g :: [Either a b] -> Int g x@[] = 42 g x@((b_1@(Left b_3) : b_2)) = 42 g x@((b_1@(Right b_3) : b_2)) = 42 g x@((b_1 : b_2)) = 42 g x = 4...
null
https://raw.githubusercontent.com/RefactoringTools/HaRe/ef5dee64c38fb104e6e5676095946279fbce381c/old/testing/subIntroPattern/SubSubPatternIn2_TokOut.hs
haskell
module SubSubPatternIn2 where data C1_Type = C1 C2_Type data C2_Type = C2 Int Int C3_Type data C3_Type = C3 Int [Int] Int f :: C1_Type -> Int f (C1 (C2 x_1 y_2 (C3 x y z))) = z g :: [Either a b] -> Int g x@[] = 42 g x@((b_1@(Left b_3) : b_2)) = 42 g x@((b_1@(Right b_3) : b_2)) = 42 g x@((b_1 : b_2)) = 42 g x = 4...
9d4a1ab1ff8ae0a37a70dc1031c50f506df4d23c05b667f99da55b79ad310ffc
brendanhay/gogol
Create.hs
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # {-# LANGUAGE St...
null
https://raw.githubusercontent.com/brendanhay/gogol/fffd4d98a1996d0ffd4cf64545c5e8af9c976cda/lib/services/gogol-spanner/gen/Gogol/Spanner/Projects/Instances/Databases/Sessions/Create.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Stability : auto-generated /See:/ </ Cloud Spanner API Reference> for @spanner.projects.instances.databases.sessions.create@. * Resource ** Constructing a Request 'SpannerProjectsInstancesDatabasesSessionsCreate' request conforms to. /See:/ 'newSpanne...
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators...
7398209853ed5e929635678681e3bdfe1609f71a80b345fb8169c03a98218125
ian-ross/hnetcdf
Types.hs
{-# LANGUAGE DeriveDataTypeable #-} | Basic utility type definitions for bindings . module Data.NetCDF.Types where import Control.Exception import Data.Typeable import System.IO (IOMode (..)) | Representation for external data types . -- ^ Signed 1 byte integer | NcChar -- ^ ISO/ASCII characte...
null
https://raw.githubusercontent.com/ian-ross/hnetcdf/d334efc0b0b4f39a1ed4f45a8b75663c2171af6a/Data/NetCDF/Types.hs
haskell
# LANGUAGE DeriveDataTypeable # ^ ISO/ASCII character ^ Single precision floating point ^ Double precision floating point ^ Strings | Fake variable identifier for global attributes. | Fake length value for defining unlimited dimensions. | Fake file identifier for unopened files.
| Basic utility type definitions for bindings . module Data.NetCDF.Types where import Control.Exception import Data.Typeable import System.IO (IOMode (..)) | Representation for external data types . ^ Signed 1 byte integer ^ Signed 2 byte integer ^ Signed 4 byte integer deriving (Eq, Show) i...
3464e3dcf7cb5da9a0199e6a3c72a740b2a3d4a78c6cc16de1646b542974656c
nikita-volkov/rebase
Reader.hs
module Rebase.Control.Monad.Reader ( module Control.Monad.Reader ) where import Control.Monad.Reader
null
https://raw.githubusercontent.com/nikita-volkov/rebase/7c77a0443e80bdffd4488a4239628177cac0761b/library/Rebase/Control/Monad/Reader.hs
haskell
module Rebase.Control.Monad.Reader ( module Control.Monad.Reader ) where import Control.Monad.Reader
1113443f3574e74da7fb8039ede5f9dbf063cfd73d63e3f098619bf0b67f505e
mejgun/haskell-tdlib
ToggleSupergroupJoinToSendMessages.hs
{-# LANGUAGE OverloadedStrings #-} -- | module TD.Query.ToggleSupergroupJoinToSendMessages where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified Utils as U -- | Toggles whether joining is mandatory to send messages to a discussion supergroup ; requires can_restrict_members ...
null
https://raw.githubusercontent.com/mejgun/haskell-tdlib/eba1ae3f364d43aabc4f5d2a56ffb1ffb88fe482/src/TD/Query/ToggleSupergroupJoinToSendMessages.hs
haskell
# LANGUAGE OverloadedStrings # | | | |
module TD.Query.ToggleSupergroupJoinToSendMessages where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified Utils as U Toggles whether joining is mandatory to send messages to a discussion supergroup ; requires can_restrict_members administrator right @supergroup_id Identifier...
db36adbca611941376b7990832eb10cc42bb3a3cbf74b5e782b8c4880f866962
joshvera/effects
Main.hs
# LANGUAGE DataKinds # module Main where import Control.Monad.Effect import Teletype runner :: Eff '[Teletype] () runner = do x <- getLine' putStrLn' x y <- getLine' putStrLn' y main :: IO () main = do let xs = Teletype.runPure ["cat", "fish"] runner print xs Teletype.run runner
null
https://raw.githubusercontent.com/joshvera/effects/b2693454131dc7c00d2cf45bea69c17b986f0ea5/examples/src/Main.hs
haskell
# LANGUAGE DataKinds # module Main where import Control.Monad.Effect import Teletype runner :: Eff '[Teletype] () runner = do x <- getLine' putStrLn' x y <- getLine' putStrLn' y main :: IO () main = do let xs = Teletype.runPure ["cat", "fish"] runner print xs Teletype.run runner
e5944b4bf06bff4d06f31a0f1e53355836b0faefe3f8ed840554775d86ff2ae6
vinted/kafka-elasticsearch-tool
uri.clj
(ns replay.transform.uri (:require [clojure.string :as str] [replay.transform.selector :as selector])) (defn transform-uri [^String uri transforms] (reduce (fn [uri {:keys [match replacement]}] (str/replace uri (re-pattern match) replacement)) uri transforms)) (comment (replay.transform....
null
https://raw.githubusercontent.com/vinted/kafka-elasticsearch-tool/fc84164b8d9ee97da01aed4ab21a3cd1ae6b10ec/src/replay/transform/uri.clj
clojure
uri-attr-path should can be either string of a list of keys to get-in
(ns replay.transform.uri (:require [clojure.string :as str] [replay.transform.selector :as selector])) (defn transform-uri [^String uri transforms] (reduce (fn [uri {:keys [match replacement]}] (str/replace uri (re-pattern match) replacement)) uri transforms)) (comment (replay.transform....
db3cbef87ed5763a99e2fa7161650e19f46460c0ee1517636542738a30804bf6
falsetru/htdp
35.3.1.scm
#lang racket (define (f x y) (begin (set! x y) y)) ; syntactically legal
null
https://raw.githubusercontent.com/falsetru/htdp/4cdad3b999f19b89ff4fa7561839cbcbaad274df/35/35.3.1.scm
scheme
syntactically legal
#lang racket (define (f x y) (begin (set! x y) y))
f6a6aca29f190e44aec3aea215afb1964bfb2b465ea503c4e33390c30fbf0027
yetanalytics/pedestal-oidc
response.clj
(ns com.yetanalytics.pedestal-oidc.response) (def unauthorized {:status 401 :headers {} :body "UNAUTHORIZED" :session nil})
null
https://raw.githubusercontent.com/yetanalytics/pedestal-oidc/55c1a4a93937c334d921c546807df8292ec6321d/src/lib/com/yetanalytics/pedestal_oidc/response.clj
clojure
(ns com.yetanalytics.pedestal-oidc.response) (def unauthorized {:status 401 :headers {} :body "UNAUTHORIZED" :session nil})
31a6a2ecd9d7bf0d928dcae3713335df5bd8d2edaa4c0c98ff53a552b4d30d60
err0r500/realworld-app-simple-haskell
ServantSpec.hs
module Http.ServantSpec where import qualified Adapter.Http.Servant.Router as Servant import qualified Http.Lib as Lib import qualified Http.Specs.Health as Health import qualified Http.Specs.LoginUser as LoginUser import qualified Http.Specs.RegisterUser as RegisterUser import RIO import Test.Hspec start :: Lib.Star...
null
https://raw.githubusercontent.com/err0r500/realworld-app-simple-haskell/20ec982256ec890f0c77b572eccef987cd3799bf/test/Http/ServantSpec.hs
haskell
module Http.ServantSpec where import qualified Adapter.Http.Servant.Router as Servant import qualified Http.Lib as Lib import qualified Http.Specs.Health as Health import qualified Http.Specs.LoginUser as LoginUser import qualified Http.Specs.RegisterUser as RegisterUser import RIO import Test.Hspec start :: Lib.Star...
f53f5a694d17ef05f06a79697816dfe52cf0eb8ea90b47bd1ff96f7a2929000d
thheller/shadow-cljs
cli.clj
(ns shadow.cljs.cli (:require [clojure.java.io :as io])) (defn get-shadow-cljs-info [] (try (let [[defproject name version & kv :as rc] (-> (io/resource "META-INF/leiningen/thheller/shadow-cljs/project.clj") (slurp) (read-string))] (when (= name 'thheller/shadow...
null
https://raw.githubusercontent.com/thheller/shadow-cljs/ba0a02aec050c6bc8db1932916009400f99d3cce/src/main/shadow/cljs/cli.clj
clojure
(ns shadow.cljs.cli (:require [clojure.java.io :as io])) (defn get-shadow-cljs-info [] (try (let [[defproject name version & kv :as rc] (-> (io/resource "META-INF/leiningen/thheller/shadow-cljs/project.clj") (slurp) (read-string))] (when (= name 'thheller/shadow...
7636df19f9926175c4b96823b29d9370d6979ef55f26188ff0ba9eb6f322667b
mpickering/simple-language-client
Main.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE FlexibleContexts # # LANGUAGE PartialTypeSignatures # # LANGUAGE RecursiveDo # # LANGUAGE NoMonomorphismRestriction # # LANGUAGE ScopedTypeVariables # # LANGUAGE LambdaCase # # LANGUAGE RecordWildCards # module Main where Plan - - 1 . Start the LSP server using refl...
null
https://raw.githubusercontent.com/mpickering/simple-language-client/ad73008924c031a0cdf6645d553ce1e413108cfc/exe/Main.hs
haskell
# LANGUAGE OverloadedStrings # | If the path is a directory then find all files in that directory, otherwise just load the single file Probably a file TODO: Separate the filesystem event logic into its own function Watch the project directory for changes Should use the watched files to perform the filtering Star...
# LANGUAGE FlexibleContexts # # LANGUAGE PartialTypeSignatures # # LANGUAGE RecursiveDo # # LANGUAGE NoMonomorphismRestriction # # LANGUAGE ScopedTypeVariables # # LANGUAGE LambdaCase # # LANGUAGE RecordWildCards # module Main where Plan - - 1 . Start the LSP server using reflex - process and provide an event f...
c4ec501b31a1b338bfa47ca6ea691d0c6a312bab356344b9f07a2f53f1527a3a
tisnik/clojure-examples
core_test.clj
(ns sqltest5.core-test (:require [clojure.test :refer :all] [sqltest5.core :refer :all])) (deftest a-test (testing "FIXME, I fail." (is (= 0 1))))
null
https://raw.githubusercontent.com/tisnik/clojure-examples/984af4a3e20d994b4f4989678ee1330e409fdae3/sqltest5/test/sqltest5/core_test.clj
clojure
(ns sqltest5.core-test (:require [clojure.test :refer :all] [sqltest5.core :refer :all])) (deftest a-test (testing "FIXME, I fail." (is (= 0 1))))
bad0beb2c7ad01122f0dc16f66ec3961e0024e7eb23e0a78c18e9cab3a5abc05
jeapostrophe/mongodb
info.rkt
#lang info (define collection 'multi) (define license '(Apache-2.0 OR MIT)) (define deps '(("base" #:version "6.2.900.15") "web-server-lib" "srfi-lite-lib")) (define build-deps '("eli-tester" "racket-doc" "scribble-lib" "srfi-doc" "web-server-doc"))
null
https://raw.githubusercontent.com/jeapostrophe/mongodb/94d2c0e5a137a2910c54fb7da186a7885cf5a318/info.rkt
racket
#lang info (define collection 'multi) (define license '(Apache-2.0 OR MIT)) (define deps '(("base" #:version "6.2.900.15") "web-server-lib" "srfi-lite-lib")) (define build-deps '("eli-tester" "racket-doc" "scribble-lib" "srfi-doc" "web-server-doc"))
cb6e06acfff3aebf86bae6c39a11ec4dbc8f8a53c559d3bb67e7faf4fab9e093
ynadji/lisp
db.lisp
(defvar *db* nil) (defun make-cd (title artist rating ripped) (list :title title :artist artist :rating rating :ripped ripped)) (defun add-record (cd) (push cd *db*)) (defun dump-db () (dolist (cd *db*) (format t "~{~a:~10t~a~%~}~%" cd))) (defun prompt-read (prompt) (format *query-io* "~a: " prompt) (fo...
null
https://raw.githubusercontent.com/ynadji/lisp/758b5aebaa01f4994407d20026e617ebef90739e/db.lisp
lisp
(defvar *db* nil) (defun make-cd (title artist rating ripped) (list :title title :artist artist :rating rating :ripped ripped)) (defun add-record (cd) (push cd *db*)) (defun dump-db () (dolist (cd *db*) (format t "~{~a:~10t~a~%~}~%" cd))) (defun prompt-read (prompt) (format *query-io* "~a: " prompt) (fo...
a8503c47abd49f330da381342e9f36c6daa07462e6aaec46314ba69aaad6d9f0
Deducteam/Dedukti
confluence.ml
open Format open Basic open Term open Rule let d_confluence = Debug.register_flag "Confluence" let pp_name fmt cst = fprintf fmt "%a_%a" pp_mident (md cst) pp_ident (id cst) type confluence_error = | NotConfluent of string | MaybeConfluent of string | CCFailure of string exception Confluence_error of confluen...
null
https://raw.githubusercontent.com/Deducteam/Dedukti/7124a3edbaecf2d8a9046272cbc4d0d09cc3fad0/kernel/confluence.ml
ocaml
Variables Rule
open Format open Basic open Term open Rule let d_confluence = Debug.register_flag "Confluence" let pp_name fmt cst = fprintf fmt "%a_%a" pp_mident (md cst) pp_ident (id cst) type confluence_error = | NotConfluent of string | MaybeConfluent of string | CCFailure of string exception Confluence_error of confluen...
38851de38e86cb6beffd1a17d226c6c77556b2c6db205003889a1b27cc044c27
intermine/bluegenes
core.cljs
(ns bluegenes.core (:require [reagent.dom :as dom] [re-frame.core :as re-frame] [bluegenes.utils] [im-tables.core] [bluegenes.events] [bluegenes.subs] [bluegenes.route] [bluegenes.views :as views] [bluegenes.config] ...
null
https://raw.githubusercontent.com/intermine/bluegenes/92af71639ebe4560e9eec361047fb0df566f1075/src/cljs/bluegenes/core.cljs
clojure
(when config/debug? (devtools/install!) (println "dev mode"))) Development mode helper code snippet Uncomment this code to keep modals open after figwheel reloads. Replace with your modal id. (dev-setup)
(ns bluegenes.core (:require [reagent.dom :as dom] [re-frame.core :as re-frame] [bluegenes.utils] [im-tables.core] [bluegenes.events] [bluegenes.subs] [bluegenes.route] [bluegenes.views :as views] [bluegenes.config] ...
12ab82ab068a2cb11219c2321400ce73f52824264c82f227bdd900c093780fb6
hackage-trustees/hackage-cli
CabalRevisions.hs
# LANGUAGE CPP # # LANGUAGE FlexibleContexts # # LANGUAGE FunctionalDependencies # # LANGUAGE GeneralizedNewtypeDeriving # {-# LANGUAGE PatternSynonyms #-} {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies ...
null
https://raw.githubusercontent.com/hackage-trustees/hackage-cli/1dae3f831b4dc9b145a48cce92c3d7ba63aa810e/lib/Distribution/Server/Util/CabalRevisions.hs
haskell
# LANGUAGE PatternSynonyms # # LANGUAGE OverloadedStrings # | Module : Distribution.Server.Util.CabalRevisions Maintainer : Stability : provisional Portability : portable | Entry point to cabal revision validator 'String' and performs validations. Returns either a validation ...
# LANGUAGE CPP # # LANGUAGE FlexibleContexts # # LANGUAGE FunctionalDependencies # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # Copyright : et al . SPDX - License - Identifier : BSD-3 - Claus...
134722f0724f7dc9dfd15f47828da050759db4fd614c26ce3ac7905685dff5e3
nikita-volkov/rerebase
Ord.hs
module Data.Ord ( module Rebase.Data.Ord ) where import Rebase.Data.Ord
null
https://raw.githubusercontent.com/nikita-volkov/rerebase/25895e6d8b0c515c912c509ad8dd8868780a74b6/library/Data/Ord.hs
haskell
module Data.Ord ( module Rebase.Data.Ord ) where import Rebase.Data.Ord
46f0164fee62a188629da6cf8064f0f93afcf0925d9ffd2ad8d88d3b6e9cc10e
input-output-hk/hydra
CtxUTxO.hs
module Hydra.Cardano.Api.CtxUTxO where import Hydra.Cardano.Api.Prelude -- | A convenient type-class for transforming types in 'CtxTx' to 'CtxUTxO'. -- See also ' ToTxContext ' for the reverse . class ToUTxOContext f where toUTxOContext :: f CtxTx era -> f CtxUTxO era instance ToUTxOContext TxOutDatum where to...
null
https://raw.githubusercontent.com/input-output-hk/hydra/5d4369eef06688b9110ceafef912d50de2da52ae/hydra-cardano-api/src/Hydra/Cardano/Api/CtxUTxO.hs
haskell
| A convenient type-class for transforming types in 'CtxTx' to 'CtxUTxO'.
module Hydra.Cardano.Api.CtxUTxO where import Hydra.Cardano.Api.Prelude See also ' ToTxContext ' for the reverse . class ToUTxOContext f where toUTxOContext :: f CtxTx era -> f CtxUTxO era instance ToUTxOContext TxOutDatum where toUTxOContext = \case TxOutDatumNone -> TxOutDatumNone TxOutDatumHash s h ...
ee2507d66884828785fa0a99bd22ee4de97846e5d8479ff259d75f837cd09816
ftovagliari/ocamleditor
dialog_save_as.ml
OCamlEditor Copyright ( C ) 2010 - 2014 This file is part of OCamlEditor . OCamlEditor 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 y...
null
https://raw.githubusercontent.com/ftovagliari/ocamleditor/53284253cf7603b96051e7425e85a731f09abcd1/src/otherwidgets/dialog_save_as.ml
ocaml
* sync_editor : Editor_file_type.remote_login option editor#close page; * create_file * window
OCamlEditor Copyright ( C ) 2010 - 2014 This file is part of OCamlEditor . OCamlEditor 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 y...
850510f99150f803e4f694e3027bab5beba4e3709af195641bf27be0401ba5d3
patoline/patoline
Cmap.ml
Copyright Florian Hatat , , , Pierre - Etienne Meunier , , 2012 . This file is part of Patoline . Patoline 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 th...
null
https://raw.githubusercontent.com/patoline/patoline/3dcd41fdff64895d795d4a78baa27d572b161081/patfonts/Opentype/Cmap.ml
ocaml
format length language format length langage firstCode entryCount idDelta idRangeOffset Reserved padding ! startCount flush stderr; Printf.fprintf stderr "delta : %d\n" delta; ) else idDelta idRangeOffset windows unicode bmp
Copyright Florian Hatat , , , Pierre - Etienne Meunier , , 2012 . This file is part of Patoline . Patoline 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 th...
72bc64bc73e0c2101a00b32f3cf656e98643bd98b6e1c59d0cf8a7f101da39ba
brandonchinn178/toml-reader
Value.hs
# LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} module TOML.Value ( Value (..), renderValue, Table, ) where import Data.Map.Strict (Map) import qualified Data.Map.Strict as Map import Data.Text (Text) import qualified Data.Text as Text import Data.Time (Day, LocalTime, TimeOfDay, TimeZone) type Tabl...
null
https://raw.githubusercontent.com/brandonchinn178/toml-reader/86b0e2c0e65f7e0cb3cf133037f270b7897f0825/src/TOML/Value.hs
haskell
# LANGUAGE OverloadedStrings # | Render a Value in pseudo-JSON format.
# LANGUAGE LambdaCase # module TOML.Value ( Value (..), renderValue, Table, ) where import Data.Map.Strict (Map) import qualified Data.Map.Strict as Map import Data.Text (Text) import qualified Data.Text as Text import Data.Time (Day, LocalTime, TimeOfDay, TimeZone) type Table = Map Text Value data Value = ...
13a38166549e7f0529d247f725732a075d2098fff958e472eeef0c73ec9c52ac
nick8325/twee
MemoFun.hs
# LANGUAGE ScopedTypeVariables # module Data.MemoFun(MemoFun, memo, apply) where import Data.DynamicArray import Twee.Term import Data.IORef import System.IO.Unsafe data MemoFun a b = MemoFun (IORef (Array (Maybe b))) (Fun a -> b) memo :: forall a b. (Fun a -> b) -> MemoFun a b memo f = unsafePerformIO $ do re...
null
https://raw.githubusercontent.com/nick8325/twee/4d3a64a6cfacc5cf71d0cdb74e2dea510f7caf14/patches/MemoFun.hs
haskell
# LANGUAGE ScopedTypeVariables # module Data.MemoFun(MemoFun, memo, apply) where import Data.DynamicArray import Twee.Term import Data.IORef import System.IO.Unsafe data MemoFun a b = MemoFun (IORef (Array (Maybe b))) (Fun a -> b) memo :: forall a b. (Fun a -> b) -> MemoFun a b memo f = unsafePerformIO $ do re...
e6ea514dd7a4d74fb7a2ef0cf4d7bac62bc8aeaf3ab23c0758eac10b012e9248
theodormoroianu/SecondYearCourses
LambdaChurch_20210415164241.hs
module LambdaChurch where import Data.Char (isLetter) import Data.List ( nub ) class ShowNice a where showNice :: a -> String class ReadNice a where readNice :: String -> (a, String) data Variable = Variable { name :: String , count :: Int } deriving (Show, Eq, Ord) var :: String -> Variable var ...
null
https://raw.githubusercontent.com/theodormoroianu/SecondYearCourses/5e359e6a7cf588a527d27209bf53b4ce6b8d5e83/FLP/Laboratoare/Lab%209/.history/LambdaChurch_20210415164241.hs
haskell
alpha-equivalence subst u x t defines [u/x]t, i.e., substituting u for x in t This substitution avoids variable captures so it is safe to be used when reducing terms with free variables (e.g., if evaluating inside lambda abstractions) ^ substitution term ^ variable to be substitutes ^ term in which the substit...
module LambdaChurch where import Data.Char (isLetter) import Data.List ( nub ) class ShowNice a where showNice :: a -> String class ReadNice a where readNice :: String -> (a, String) data Variable = Variable { name :: String , count :: Int } deriving (Show, Eq, Ord) var :: String -> Variable var ...
692362bd3130cce28e40a4e379c50eb4c5d9223eef9e7f8419c3850b74cdceb6
fortytools/holumbus
Server.hs
-- ---------------------------------------------------------------------------- | Module : Server Copyright : Copyright ( C ) 2008 License : MIT Maintainer : ( ) Stability : experimental Portability : portable Version : 0.2 The Holumbus query server for proce...
null
https://raw.githubusercontent.com/fortytools/holumbus/4b2f7b832feab2715a4d48be0b07dca018eaa8e8/searchengine/examples/queryserver/Server.hs
haskell
---------------------------------------------------------------------------- ---------------------------------------------------------------------------- # OPTIONS -fno-warn-type-defaults #
| Module : Server Copyright : Copyright ( C ) 2008 License : MIT Maintainer : ( ) Stability : experimental Portability : portable Version : 0.2 The Holumbus query server for processing distributed queries . Module : Server Copyright : Copyright (C...
2977a9205dbf4ca023bd127ba6efc8662bce34307afdf93c13216e18a1f61753
macchiato-framework/examples
app.cljs
(ns ^:figwheel-always catfacts.app (:require [catfacts.core :as core] [cljs.nodejs] [mount.core :as mount])) (mount/in-cljc-mode) (cljs.nodejs/enable-util-print!) (.on js/process "uncaughtException" #(js/console.error %)) (set! *main-cli-fn* core/app)
null
https://raw.githubusercontent.com/macchiato-framework/examples/946bdf1a04f5ef787fc83affdcbf6603bbf29b5c/catfacts/env/dev/catfacts/app.cljs
clojure
(ns ^:figwheel-always catfacts.app (:require [catfacts.core :as core] [cljs.nodejs] [mount.core :as mount])) (mount/in-cljc-mode) (cljs.nodejs/enable-util-print!) (.on js/process "uncaughtException" #(js/console.error %)) (set! *main-cli-fn* core/app)
d875e69a0adac6fad482aa65f28a88213b7a683bc468a200a056f41ae42062ed
palkan/influx_udp
influx_udp_test.erl
-module(influx_udp_test). -include_lib("influx_udp/include/influx_udp_priv.hrl"). -include_lib("influx_udp/include/influx_udp.hrl"). -include_lib("eunit/include/eunit.hrl"). -define(setup(F), {setup, fun setup_/0, fun cleanup_/1, F}). %% The default influx_udp port -define(PORT, 8089). -define(PORT2, 44515). setup_(...
null
https://raw.githubusercontent.com/palkan/influx_udp/23e0ef865405743fd0fbf8711183ce9ea236a7d5/test/influx_udp_test.erl
erlang
The default influx_udp port Set default configuration
-module(influx_udp_test). -include_lib("influx_udp/include/influx_udp_priv.hrl"). -include_lib("influx_udp/include/influx_udp.hrl"). -include_lib("eunit/include/eunit.hrl"). -define(setup(F), {setup, fun setup_/0, fun cleanup_/1, F}). -define(PORT, 8089). -define(PORT2, 44515). setup_() -> {ok, UDP1} = test_udp_se...
26c6b8b778b3e6e843eb17e7d42f8e7973f012f06503697cdc7990c8bc6d6d13
wavewave/hoodle
HitTest.hs
-- NOTE: this module will be deprecated. module Graphics.Hoodle.Render.Util.HitTest ( isPointInBBox, -- re-export do2LinesIntersect, -- re-export do2BBoxIntersect, -- re-export isBBox2InBBox1, -- re-export hltHittedByBBox, -- re-export hltEmbeddedByBBox, -- re-export hltHittedByLineRough, -- ...
null
https://raw.githubusercontent.com/wavewave/hoodle/d5c8787d1e4c1ddaa41836a26e251f3716a59e34/render/src/Graphics/Hoodle/Render/Util/HitTest.hs
haskell
NOTE: this module will be deprecated. re-export re-export re-export re-export re-export re-export re-export re-export re-export re-export ------------------------ hit test collections -- ------------------------ | previously, hitTestLineStroke ------------------------------------------------------ ------...
module Graphics.Hoodle.Render.Util.HitTest doesLineHitStrk, hltFilteredByStateT, hltFilteredBy, hltItmsHittedByLineStateT, hltItmsHittedByLineFrmSelectedStateT, ) where import Control.Monad.State (State, evalState, modify) import Data.Hoodle.BBox (bbxed_content) import Data.Hoodle.Simple ( Str...
8cb4ab66455820f0072b808b625c4ac30aec5c6c259ecae1af88e0432ded9c85
cryptosense/pkcs11
pkcs11_CK_OBJECT_HANDLE.ml
type t = P11_ulong.t [@@deriving eq, ord, show, yojson] let typ = Ctypes.ulong
null
https://raw.githubusercontent.com/cryptosense/pkcs11/93c39c7a31c87f68f0beabf75ef90d85a782a983/driver/pkcs11_CK_OBJECT_HANDLE.ml
ocaml
type t = P11_ulong.t [@@deriving eq, ord, show, yojson] let typ = Ctypes.ulong
37ca390ddacfe9641ccee717d49c0ac67478720f4b69a389564c498bf0cf6211
hipsleek/hipsleek
frac.ml
#include "xdebug.cppo" (* type frac = int * int *) (* type frac = bool option * (int * int) *) type frac = bool option * Ratio.ratio (* let string_of_frac (num, den) = *) (* (string_of_int num) ^ "/" ^ (string_of_int den) *) let eq_frac ( n1 , d1 ) ( n2 , d2 ) = (* (n1 * d2) == (n2 * d1) *) let less_eq_fra...
null
https://raw.githubusercontent.com/hipsleek/hipsleek/596f7fa7f67444c8309da2ca86ba4c47d376618c/src/frac.ml
ocaml
type frac = int * int type frac = bool option * (int * int) let string_of_frac (num, den) = (string_of_int num) ^ "/" ^ (string_of_int den) (n1 * d2) == (n2 * d1) (n1 * d2) <= (n2 *d1) need to normalize let isFull (n,d) = n=d let isZero (n,d) = n=0
#include "xdebug.cppo" type frac = bool option * Ratio.ratio let eq_frac ( n1 , d1 ) ( n2 , d2 ) = let less_eq_frac ( n1,d1 ) ( n2,d2 ) = let subtract ( n1,d1 ) ( n2,d2 ) = ( ( n1*d2 - n2*d1),(d1*d2 ) ) let subtract = Ratio.sub_ratio ;; let eq_frac (_,r1) (_,r2) = Ratio.eq_ratio r1 r2 let less_eq_...
959794454707c79612e9b645521dec4dd918336b10bdd58fc095a82cdbfe909e
simongray/sino.study
data.cljc
(ns sinostudy.dictionary.data) (def stopwords #{"a" "about" "above" "across" "after" "afterwards" "again" "against" "all" "almost" "alone" "along" "already" "also" "although" "always" "am" "among" "amongst" "amount" "an" "and" "another" "any" "anyhow" "anyone" "anything" "anyway" "anywhere" "are" "aroun...
null
https://raw.githubusercontent.com/simongray/sino.study/b1b2954011841bc96449a1aa61eb51656930aee5/src/sinostudy/dictionary/data.cljc
clojure
Common contractions with apostrophe (and a few without) :List_of_English_contractions Numbers are excluded "a" "i"
(ns sinostudy.dictionary.data) (def stopwords #{"a" "about" "above" "across" "after" "afterwards" "again" "against" "all" "almost" "alone" "along" "already" "also" "although" "always" "am" "among" "amongst" "amount" "an" "and" "another" "any" "anyhow" "anyone" "anything" "anyway" "anywhere" "are" "aroun...
c68756dcd40c9ffb010208cd915ba4d45ffc7e608c9ce4dced4c6ac9e75d3c90
Calsign/p5ml
hsv.ml
open P5.Gtkc module Hsv : Sketch = struct include Base type state = unit let display = `Size (400, 400) let setup _ = () let draw conf _ = let h = conf.frame_count mod 360 in let s = ~.(conf.mouse_x) /. ~.(conf.width) *. 100. |> Math.round in let v = ~.(conf.mouse_y) /. ~.(conf.height) *. 10...
null
https://raw.githubusercontent.com/Calsign/p5ml/65a379a941a7c1c99e6d43fa4a171cd4d68d4e88/examples/hsv.ml
ocaml
open P5.Gtkc module Hsv : Sketch = struct include Base type state = unit let display = `Size (400, 400) let setup _ = () let draw conf _ = let h = conf.frame_count mod 360 in let s = ~.(conf.mouse_x) /. ~.(conf.width) *. 100. |> Math.round in let v = ~.(conf.mouse_y) /. ~.(conf.height) *. 10...
1c61886c7ad4358d75f195d6030db53931df82fa6471298651d8015af7df7045
puppetlabs/trapperkeeper-webserver-jetty9
example_services.clj
(ns examples.ring-app.example-services (:import (clojure.lang Atom)) (:require [clojure.tools.logging :as log] [puppetlabs.kitchensink.core :refer [pprint-to-string]] [puppetlabs.trapperkeeper.core :refer [defservice]] [puppetlabs.trapperkeeper.services :refer [service-context]])...
null
https://raw.githubusercontent.com/puppetlabs/trapperkeeper-webserver-jetty9/98fd16ef3df2b0b753fce743848bc078d9527cb7/examples/ring_app/src/examples/ring_app/example_services.clj
clojure
Here we specify the service's protocol This vector declares the service's dependencies on other services and their functions, Implement the `init` function from the `Lifecycle` protocol to initialize state: Implement the inc-and-get function. This service needs functionality from the webserver service, and the co...
(ns examples.ring-app.example-services (:import (clojure.lang Atom)) (:require [clojure.tools.logging :as log] [puppetlabs.kitchensink.core :refer [pprint-to-string]] [puppetlabs.trapperkeeper.core :refer [defservice]] [puppetlabs.trapperkeeper.services :refer [service-context]])...
9a884547f1227ea43a4ea48b02d1a70ca80d7084203bef904695ca3309842b74
huangjs/cl
nummod.lisp
Maxima functions for floor , ceiling , and friends Copyright ( C ) 2004 , 2005 , 2007 Barton Willis Department of Mathematics University of Nebraska at Kearney ;; Kearney NE 68847 ;; ;; This source code is licensed under the terms of the Lisp Lesser GNU Public License ( LLGPL ) . The LLGPL consists of ...
null
https://raw.githubusercontent.com/huangjs/cl/96158b3f82f82a6b7d53ef04b3b29c5c8de2dbf7/lib/maxima/src/nummod.lisp
lisp
Kearney NE 68847 This source code is licensed under the terms of the Lisp Lesser any later version. When the preamble conflicts with the LGPL, the preamble takes precedence. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTA...
Maxima functions for floor , ceiling , and friends Copyright ( C ) 2004 , 2005 , 2007 Barton Willis Department of Mathematics University of Nebraska at Kearney GNU Public License ( LLGPL ) . The LLGPL consists of a preamble , published by Franz Inc. ( ) , and the GNU Library General Public License ...
fc123e0793a2cb1992c907785090d6c57be8ace6b13f0b5e37e0d57e869248ad
reactorlabs/sourir
transform.ml
open Instr open Types (* combining transformations *) let combine_transform_instructions ts ({formals; instrs} as inp : analysis_input) : instructions option = let changed, res = List.fold_left (fun (changed, inp) t -> match t inp with | None -> (changed, inp) | Some instrs -> (true, {instrs; f...
null
https://raw.githubusercontent.com/reactorlabs/sourir/381289c294157e58b257ec8edb9d5005b8a66daf/transform.ml
ocaml
combining transformations generalizing transformations All available optimizations Main optimizer loop The strategy is to run all user selected optimizations for num times, then * remove empty checkpoints, then run the optimizations once again.
open Instr open Types let combine_transform_instructions ts ({formals; instrs} as inp : analysis_input) : instructions option = let changed, res = List.fold_left (fun (changed, inp) t -> match t inp with | None -> (changed, inp) | Some instrs -> (true, {instrs; formals})) (false, inp) ts in i...
648cea4b59282ace0aaa110f34eb1f7e92fbecb0646ac01eae06d7b48feac441
fccm/OCamlSDL2
sdljoystick.mli
OCamlSDL2 - An OCaml interface to the SDL2 library Copyright ( C ) 2013 This software is provided " AS - IS " , without any express or implied warranty . In no event will the authors be held liable for any damages arising from the use of this software . Permission is granted to anyone to use this...
null
https://raw.githubusercontent.com/fccm/OCamlSDL2/01fa29187cab90052d2581eb509d1bca1a85418f/src/sdljoystick.mli
ocaml
* Joystick event handling * API Doc: {{:}Joystick category} * {{:}api doc} * {{:}api doc} * {{:}api doc} * {{:}api doc} * {{:}api doc} * {{:}api doc} * {{:}api doc}
OCamlSDL2 - An OCaml interface to the SDL2 library Copyright ( C ) 2013 This software is provided " AS - IS " , without any express or implied warranty . In no event will the authors be held liable for any damages arising from the use of this software . Permission is granted to anyone to use this...
799cae9eb05a5a4173c9b1df4e4180b61a16144cea423f92f4ca816069d50446
unclebob/AdventOfCode2022
core.clj
(ns day11-monkey-in-the-middle.core (:require [clojure.string :as string])) (defn replace-old [old rule-token] (if (= rule-token :old) old rule-token)) (defn inspect [item worry-reduction rule] (let [rule (map (partial replace-old item) rule)] (worry-reduction (apply (first rule) (rest rule))))) (defn deci...
null
https://raw.githubusercontent.com/unclebob/AdventOfCode2022/269ba2cf08293beaf88011ae67b33c47710682c7/day11-monkey-in-the-middle/src/day11_monkey_in_the_middle/core.clj
clojure
(ns day11-monkey-in-the-middle.core (:require [clojure.string :as string])) (defn replace-old [old rule-token] (if (= rule-token :old) old rule-token)) (defn inspect [item worry-reduction rule] (let [rule (map (partial replace-old item) rule)] (worry-reduction (apply (first rule) (rest rule))))) (defn deci...
433b88e1a93401d318fd9977f317d9c5a06b4d30edbeb580dbbbed0a6b30cba5
michaelliao/cljweb
hello.clj
(ns cljweb.hello (:require [ring.adapter.jetty :as jetty])) (defn handler [request] {:status 200, :headers {"Content-Type" "text/html"} :body "<h1>Hello, world.</h1>"}) ;; start web server (defn start-server [] (jetty/run-jetty handler {:host "localhost", :port 3000...
null
https://raw.githubusercontent.com/michaelliao/cljweb/d833635a334f1e821e2e7144782b41a7bda700b5/src/cljweb/hello.clj
clojure
start web server
(ns cljweb.hello (:require [ring.adapter.jetty :as jetty])) (defn handler [request] {:status 200, :headers {"Content-Type" "text/html"} :body "<h1>Hello, world.</h1>"}) (defn start-server [] (jetty/run-jetty handler {:host "localhost", :port 3000})) (start-server)
11a49541a6d779450d5160d144267728a0a8ccd6e0a5644e924208f1dbeed714
delaray/hypergraph
Semantic-Net-Tests.lisp
(in-package :HYPERGRAPH) ;;;**************************************************************************** ;;; BASIC TESTS FOR THE SEMANTIC NET API ;;;**************************************************************************** ;;; This exmaple demonstrates meta relations. (defun MAKE-SAMPLE-SEMANTIC-NET () (let ((...
null
https://raw.githubusercontent.com/delaray/hypergraph/92edf8400cd9c757e389b17b5843f40e5b0bb2a0/Source/Semantic-Net-Tests.lisp
lisp
**************************************************************************** BASIC TESTS FOR THE SEMANTIC NET API **************************************************************************** This exmaple demonstrates meta relations. Add relation types Add some concepts
(in-package :HYPERGRAPH) (defun MAKE-SAMPLE-SEMANTIC-NET () (let ((graph (make-semantic-net :name "Sample Semantic-Net" :reverse-relation-types '((related-to related-to))))) (add-relation-type-entry 'likes 'is-liked-by :graph graph) (add-relation-type-entry 'loves 'is-loved-by :graph graph) (ad...
8be15dd6bc18eba72669e483c114631ca8a01a44d4be389adf409329d44c86a5
esl/MongooseIM
ejabberd_local.erl
%%%---------------------------------------------------------------------- %%% File : ejabberd_local.erl Author : < > %%% Purpose : Route local packets Created : 30 Nov 2002 by < > %%% %%% ejabberd , Copyright ( C ) 2002 - 2011 ProcessOne %%% %%% This program is free software; you can redistribute it...
null
https://raw.githubusercontent.com/esl/MongooseIM/997ce8cc01dacf8bf1f1f4e3a984ee10f0ce5dd6/src/ejabberd_local.erl
erlang
---------------------------------------------------------------------- File : ejabberd_local.erl Purpose : Route local packets This program is free software; you can redistribute it and/or License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WI...
Author : < > Created : 30 Nov 2002 by < > ejabberd , Copyright ( C ) 2002 - 2011 ProcessOne modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the You should have received a copy of the GNU General Public License Founda...
fa8140e384936fd4026df0d56b4f78822e1864dfc3e1a8119e0684644cc682ab
conscell/hugs-android
LazyST.hs
----------------------------------------------------------------------------- Lazy State Thread module -- -- This library provides support for both lazy and strict state threads, as described in the PLDI ' 94 paper by and -- Jones. In addition to the monad ST, it also provides mutable variables STRef and mu...
null
https://raw.githubusercontent.com/conscell/hugs-android/31e5861bc1a1dd9931e6b2471a9f45c14e3c6c7e/hugs/lib/hugs/packages/hugsbase/Hugs/LazyST.hs
haskell
--------------------------------------------------------------------------- This library provides support for both lazy and strict state threads, Jones. In addition to the monad ST, it also provides mutable variables except that the ST instance is lazy. -----------------------------------------------------------...
Lazy State Thread module as described in the PLDI ' 94 paper by and STRef and mutable arrays STArray . It is identical to the ST module Suitable for use with Hugs 98 . module Hugs.LazyST ( ST , runST , unsafeInterleaveST , fixST , lazyToStrictST , strictToLazyST ) where import qualified Hugs.S...
a8a3e2af0b00b8807ff0e7b87194d22b79cd116bd66a1c26d015fd0b32f81d5f
ChildsplayOSU/bogl
ReadFile.hs
{-| Module : API.ReadFile Description : API Endpoint that allows reading a .bgl file Copyright : (c) License : BSD-3 -} module API.ReadFile (handleReadFile) where import API.JSONData import Servant import Control.Exception hiding (Handler) import Control.Monad.IO.Class -- | Handles reading a file and retu...
null
https://raw.githubusercontent.com/ChildsplayOSU/bogl/8c649689bf26543be1a7ec72787b9c013ecb754f/src/API/ReadFile.hs
haskell
| Module : API.ReadFile Description : API Endpoint that allows reading a .bgl file Copyright : (c) License : BSD-3 | Handles reading a file and returning it's contents to the requester | Internally attempts to read and return a file
module API.ReadFile (handleReadFile) where import API.JSONData import Servant import Control.Exception hiding (Handler) import Control.Monad.IO.Class handleReadFile :: SpielRead -> Handler SpielFile handleReadFile rf = do (liftIO (_handleReadFile rf)) _handleReadFile :: SpielRead -> IO SpielFile _handleReadFile ...
46bee312a4fe5e6a0b11ce3c0b512c54412c106d762642716c41774a6b3e87e0
crategus/cl-cffi-gtk
color-button.lisp
Example Color Button ( 2021 - 6 - 5 ) ;;;; ;;;; The example shows a color button. The button is initialized with the color ;;;; "Blue". The handler for the "color-set" signal prints the selected color ;;;; on the console. (in-package :gtk-example) (defun example-color-button () (within-main-loop (let ((window...
null
https://raw.githubusercontent.com/crategus/cl-cffi-gtk/b613a266a5f8e7f477b66a33d4df84fbed3dc7bc/demo/gtk-example/color-button.lisp
lisp
The example shows a color button. The button is initialized with the color "Blue". The handler for the "color-set" signal prints the selected color on the console.
Example Color Button ( 2021 - 6 - 5 ) (in-package :gtk-example) (defun example-color-button () (within-main-loop (let ((window (make-instance 'gtk-window :title "Example Color Button" :border-width 12 :default-w...
4b089cc4eaecebc1b3f9ab82be8ebbad771caf5c6409ef0fac6fb1e8b41ec523
ghcjs/ghcjs-dom
KeyframeEffect.hs
# LANGUAGE PatternSynonyms # # LANGUAGE ForeignFunctionInterface # # LANGUAGE JavaScriptFFI # -- For HasCallStack compatibility {-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} module GHCJS.DOM.JSFFI.Generated.KeyframeEffect (js_newKeyframeEffect, newKeyframeEffect, KeyframeEffect(..), gT...
null
https://raw.githubusercontent.com/ghcjs/ghcjs-dom/749963557d878d866be2d0184079836f367dd0ea/ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/KeyframeEffect.hs
haskell
For HasCallStack compatibility # LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #
# LANGUAGE PatternSynonyms # # LANGUAGE ForeignFunctionInterface # # LANGUAGE JavaScriptFFI # module GHCJS.DOM.JSFFI.Generated.KeyframeEffect (js_newKeyframeEffect, newKeyframeEffect, KeyframeEffect(..), gTypeKeyframeEffect) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, B...
6c14b704c20c29d567b100fcb8b0c009eb1951bf1cf5b15bfb5ae959776c9b17
rabbitmq/rabbitmq-trust-store
system_SUITE.erl
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 /. %% Copyright ( c ) 2007 - 2020 VMware , Inc. or its affiliates . All rights reserved . %% -module(system_SUITE). -compile([export_all]). -...
null
https://raw.githubusercontent.com/rabbitmq/rabbitmq-trust-store/b6a0cb779ae8d2efd58e66c9e291b54ab82322fa/test/system_SUITE.erl
erlang
------------------------------------------------------------------- Testsuite setup/teardown. ------------------------------------------------------------------- ------------------------------------------------------------------- Testsuite cases ------------------------------------------------------------------...
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 /. Copyright ( c ) 2007 - 2020 VMware , Inc. or its affiliates . All rights reserved . -module(system_SUITE). -compile([export_all]). -includ...
5dd92dbed7880e79990188e8fa75c261ccfc22a79aad3241f98c1266672ef0b9
achirkin/vulkan
VK_EXT_debug_utils.hs
# OPTIONS_GHC -fno - warn - orphans # # OPTIONS_GHC -fno - warn - unused - imports # # OPTIONS_HADDOCK not - home # {-# LANGUAGE CPP #-} {-# LANGUAGE DataKinds #-} # LANGUAGE FlexibleInstances # # LANGUAGE ForeignFunctionInterface # {-# LANGUAGE MagicHash #-} {...
null
https://raw.githubusercontent.com/achirkin/vulkan/b2e0568c71b5135010f4bba939cd8dcf7a05c361/vulkan-api/src-gen/Graphics/Vulkan/Ext/VK_EXT_debug_utils.hs
haskell
# LANGUAGE CPP # # LANGUAGE DataKinds # # LANGUAGE MagicHash # # LANGUAGE PatternSynonyms # # LANGUAGE Strict # # LANGUAGE TypeFamilies # # LANGUAGE ViewPatterns # | supported: @vulkan@ contact: @Mark Young @marky...
# OPTIONS_GHC -fno - warn - orphans # # OPTIONS_GHC -fno - warn - unused - imports # # OPTIONS_HADDOCK not - home # # LANGUAGE FlexibleInstances # # LANGUAGE ForeignFunctionInterface # module Graphics.Vulkan.Ext.VK_EXT_debug_utils * Vulkan extension : @VK_EXT_debug_utils@ Extension number : module ...
23756cfa2db9d3f6ee43e9005172c7962439aa284e42619f188e6e37be701fd8
zadean/xqerl
op_string_equal_SUITE.erl
-module('op_string_equal_SUITE'). -include_lib("common_test/include/ct.hrl"). -export([ all/0, groups/0, suite/0 ]). -export([ init_per_suite/1, init_per_group/2, end_per_group/2, end_per_suite/1 ]). -export(['K-StringEqual-1'/1]). -export(['K-StringEqual-2'/1]). -export(['K-StringEqual-...
null
https://raw.githubusercontent.com/zadean/xqerl/1a94833e996435495922346010ce918b4b0717f2/test/op/op_string_equal_SUITE.erl
erlang
-module('op_string_equal_SUITE'). -include_lib("common_test/include/ct.hrl"). -export([ all/0, groups/0, suite/0 ]). -export([ init_per_suite/1, init_per_group/2, end_per_group/2, end_per_suite/1 ]). -export(['K-StringEqual-1'/1]). -export(['K-StringEqual-2'/1]). -export(['K-StringEqual-...
202ff2d0792d93ba8cdbb2bd998a3eb2c74d72722e044f540ac8e6061c984917
jbrisbin/amqp_client
amqp_direct_consumer.erl
The contents of this file are subject to the Mozilla Public License %% Version 1.1 (the "License"); you may not use this file except in %% compliance with the License. You may obtain a copy of the License at %% / %% Software distributed under the License is distributed on an " AS IS " %% basis, WITHOUT WARRANTY OF ...
null
https://raw.githubusercontent.com/jbrisbin/amqp_client/d50aec00b94f0766a048b4eceaf25ddfdeeb1d86/src/amqp_direct_consumer.erl
erlang
Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at / basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. @doc This modul...
The contents of this file are subject to the Mozilla Public License Software distributed under the License is distributed on an " AS IS " The Original Code is RabbitMQ . The Initial Developer of the Original Code is GoPivotal , Inc. Copyright ( c ) 2011 - 2015 Pivotal Software , Inc. All rights reserved . ...
26fe1c3c932429378afa59907a972e144adddaea3e17737e04e5c6d321ac2496
dschrempf/elynx
NucleotideX.hs
# LANGUAGE MultiParamTypeClasses # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # -- | Module : ELynx . NucleotideX -- Description : Extended nucleotides including gaps and unknowns Copyright : 2021 -- License : GPL-3.0 - or - later -- -- Maintainer : -- Stability : unstable ...
null
https://raw.githubusercontent.com/dschrempf/elynx/f73f4474c61c22c6a9e54c56bdc34b37eff09687/elynx-seq/src/ELynx/Character/NucleotideX.hs
haskell
| Description : Extended nucleotides including gaps and unknowns Maintainer : Stability : unstable Portability : portable Extended nucleotides with gaps. See also or . @ Symbol Description Bases represented Complement ------ ----------- ----------------- ---------- A Adenine A...
# LANGUAGE MultiParamTypeClasses # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # Module : ELynx . NucleotideX Copyright : 2021 License : GPL-3.0 - or - later See header of ' ELynx . Alphabet ' . C Cytosine C G - or . Gap ( Zero ) ...
4083d59d226860bb555fe00ba2358a2454bf06fbbd5dd04a14f4d2cfe703cac8
UBTECH-Walker/WalkerSimulationFor2020WAIC
SetBasePower.lisp
; Auto-generated. Do not edit! (cl:in-package servo_ctrl-srv) // ! \htmlinclude (cl:defclass <SetBasePower-request> (roslisp-msg-protocol:ros-message) ((cmd :reader cmd :initarg :cmd :type (cl:vector cl:fixnum) :initform (cl:make-array 0 :element-type 'cl:fixnum :initial-element 0))) ) (cl:defcl...
null
https://raw.githubusercontent.com/UBTECH-Walker/WalkerSimulationFor2020WAIC/7cdb21dabb8423994ba3f6021bc7934290d5faa9/walker_WAIC_18.04_v1.2_20200616/walker_install/share/common-lisp/ros/servo_ctrl/srv/SetBasePower.lisp
lisp
Auto-generated. Do not edit! //! \htmlinclude SetBasePower-response.msg.html
(cl:in-package servo_ctrl-srv) // ! \htmlinclude (cl:defclass <SetBasePower-request> (roslisp-msg-protocol:ros-message) ((cmd :reader cmd :initarg :cmd :type (cl:vector cl:fixnum) :initform (cl:make-array 0 :element-type 'cl:fixnum :initial-element 0))) ) (cl:defclass SetBasePower-request (<SetB...
84d8ccc8c453d540939b53fcc8ba6aa82412fbc1460b909ec27b147606bb8375
bootstrapworld/curr
lang.rkt
#lang racket/base This is a module that provides a Scribble - based language for Bootstrap curricula . ;; ;; Much of the code here is just to bring all the components together and to convince Scribble to include the support files ( js , css ) ;; whenever we Scribble a document in this language. (require scribbl...
null
https://raw.githubusercontent.com/bootstrapworld/curr/443015255eacc1c902a29978df0e3e8e8f3b9430/lib/lang.rkt
racket
Much of the code here is just to bring all the components together whenever we Scribble a document in this language. content filtering ;;;;;;;;;;;;;;;;;;;;; clean up replication in form-elements.rkt (printf "Solutions mode is ~a ~n" env) (define-for-syntax (process-lesson d) ;; given a lesson point, extract just...
#lang racket/base This is a module that provides a Scribble - based language for Bootstrap curricula . and to convince Scribble to include the support files ( js , css ) (require scribble/doclang scribble/base scribble/core scribble/decode scriblib/render-cond scribb...
76d2ebc3db8e7a733e5fc52e7c219430725fb68b79bed143a4c09ad33dfe7c78
fluffynukeit/scbt
Judgments.hs
module Judgments where import Syntax -- | A Turnstile is a type evaluating to a result, either bool -- or updated context typically. It implements the |- turnstile -- notation. class Turnstile a b where (|-) :: Gamma -> a -> b infix 4 |- -- | An Assumption implements the / notation (big slash). class Assume a b...
null
https://raw.githubusercontent.com/fluffynukeit/scbt/218e61b34029c4fe11cdf253b3ceb27b6ed6fe3f/src/Judgments.hs
haskell
| A Turnstile is a type evaluating to a result, either bool or updated context typically. It implements the |- turnstile notation. | An Assumption implements the / notation (big slash). Index term / monotype is well - formed ( Fig 17 ) , no additional type declaration needed
module Judgments where import Syntax class Turnstile a b where (|-) :: Gamma -> a -> b infix 4 |- class Assume a b where (//) :: Gamma -> a -> b infix 5 // | Algorithmic judgments from Appendix 2 Proposition is well - formed ( Fig 17 ) Polytype is well - formed ( Fig 17 ) Variants of Polytype is w...
ce42a0c4bd93f3806f4860021cf61bf1eb0ff562759eb1598969349c12bd968f
ghcjs/jsaddle
Exception.hs
# LANGUAGE CPP # {-# LANGUAGE DeriveDataTypeable #-} ----------------------------------------------------------------------------- -- -- Module : Language.Javascript.JSaddle.Exception Copyright : ( c ) License : MIT -- Maintainer : < > -- -- | -- ----------------------------------------...
null
https://raw.githubusercontent.com/ghcjs/jsaddle/97273656e28790ab6e35c827f8086cf47bfbedca/jsaddle/src/Language/Javascript/JSaddle/Exception.hs
haskell
# LANGUAGE DeriveDataTypeable # --------------------------------------------------------------------------- Module : Language.Javascript.JSaddle.Exception | --------------------------------------------------------------------------- | JavaScript exception >>> | Catch JavaScript exceptions and ones reth...
# LANGUAGE CPP # Copyright : ( c ) License : MIT Maintainer : < > module Language.Javascript.JSaddle.Exception ( JSException(..) , rethrow ) where import qualified Control.Exception as E (Exception) #ifdef ghcjs_HOST_OS import GHCJS.Prim (JSVal) #else import GHCJS.Prim.Internal (JSVa...
94ccec0fd5b853a0d3bb606799d5f1df02feacc68f6bfcdb6a4eb86179bac5c6
wireapp/wire-server
ColourId_user.hs
-- This file is part of the Wire Server implementation. -- Copyright ( C ) 2022 Wire Swiss GmbH < > -- -- This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License...
null
https://raw.githubusercontent.com/wireapp/wire-server/c428355b7683b7b7722ea544eba314fc843ad8fa/libs/wire-api/test/golden/Test/Wire/API/Golden/Generated/ColourId_user.hs
haskell
This file is part of the Wire Server implementation. This program is free software: you can redistribute it and/or modify it under later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTI...
Copyright ( C ) 2022 Wire Swiss GmbH < > the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any You should have received a copy of the GNU Affero General Public License along module Test.Wire.API.Golden.Gene...
66db2ff208cf6efd432c9659bf74f5541a483c9103e658fffc22151b50d32537
haskell-tools/haskell-tools
OrganizeExtensions.hs
# LANGUAGE LambdaCase # # LANGUAGE DeriveGeneric # module Refactors.OrganizeExtensions where -- TODO: use [Ctrl, Alt and/or Shift + X] organize the extensions a = \case () -> ()
null
https://raw.githubusercontent.com/haskell-tools/haskell-tools/b1189ab4f63b29bbf1aa14af4557850064931e32/demo/website/res/Refactors/OrganizeExtensions.hs
haskell
TODO: use [Ctrl, Alt and/or Shift + X] organize the extensions
# LANGUAGE LambdaCase # # LANGUAGE DeriveGeneric # module Refactors.OrganizeExtensions where a = \case () -> ()