_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
0e02b7e9ed1449f5bf8217f4d7fae0b037753bc5bc80c64702a59923e72282a9
DKurilo/battleship
GameService.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE ExtendedDefaultRules # # LANGUAGE TemplateHaskell # # LANGUAGE FlexibleInstances # # LANGUAGE DeriveGeneric # module Api.Services.GameService where import Control.Exception import Control.Monad import Control.Monad.IO.Class import Database.MongoDB import Database.MongoDB....
null
https://raw.githubusercontent.com/DKurilo/battleship/09e30547a209ffc12f9a9668ebdca489a0a3adfc/server/src/Api/Services/GameService.hs
haskell
# LANGUAGE OverloadedStrings # ------------------- Routes ----------------------- Actions ------------------------- get list of opened sends nothing response list of {game id, messsge} [ { "owner": {name}, "message": {game message} }, ... ] 500 {message} get list of ga...
# LANGUAGE ExtendedDefaultRules # # LANGUAGE TemplateHaskell # # LANGUAGE FlexibleInstances # # LANGUAGE DeriveGeneric # module Api.Services.GameService where import Control.Exception import Control.Monad import Control.Monad.IO.Class import Database.MongoDB import Database.MongoDB.Query as MQ import Database.MongoDB...
cbfb288342d698256df59f88b7dd769edf408277219487d23e5e06882d502d8f
janestreet/merlin-jst
printtyp.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/janestreet/merlin-jst/00f0a2c961fbf5a968125b33612d60224a573f40/src/ocaml/typing/printtyp.mli
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Format open Types open Outcometree val longident: formatter -> Longident.t -> unit val ident: form...
ef3d9ffdb890b34707655f8a10df3cf1836015145be0b286083c128e4eb6c561
yallop/ocaml-ctypes
lDouble.ml
* Copyright ( c ) 2016 . * * This file is distributed under the terms of the MIT License . * See the file LICENSE for details . * Copyright (c) 2016 Andy Ray. * * This file is distributed under the terms of the MIT License. * See the file LICENSE for details. *) external init : unit -> unit = "ld...
null
https://raw.githubusercontent.com/yallop/ocaml-ctypes/52ff621f47dbc1ee5a90c30af0ae0474549946b4/src/ctypes/lDouble.ml
ocaml
debug
* Copyright ( c ) 2016 . * * This file is distributed under the terms of the MIT License . * See the file LICENSE for details . * Copyright (c) 2016 Andy Ray. * * This file is distributed under the terms of the MIT License. * See the file LICENSE for details. *) external init : unit -> unit = "ld...
d8639567615c58ced2557087d6ff270cfb0fe4725d43e8b46112c52a33b09fff
ates/netflow
ipfix_v10_codec.erl
-module(ipfix_v10_codec). %% API -export([init/0]). -export([decode/2]). -export([encode/5]). -include("ipfix_v10.hrl"). -define(TEMPLATES_TABLE, ipfix_v10_templates). -define(TEMPLATES_TABLE_OPTS, [named_table, public, {read_concurrency, true}]). %% @doc Creates the ETS table for storing templates. -spec init() ->...
null
https://raw.githubusercontent.com/ates/netflow/fb00d02d9e5ff742dd7c8b562912308c42e5bffd/src/ipfix_v10_codec.erl
erlang
API @doc Creates the ETS table for storing templates. try decode_packet(Binary, IP) catch _:Reason -> {error, Reason} end. Length Count Fields Template flowset Template flowset Data flowset =================================================================== ================================...
-module(ipfix_v10_codec). -export([init/0]). -export([decode/2]). -export([encode/5]). -include("ipfix_v10.hrl"). -define(TEMPLATES_TABLE, ipfix_v10_templates). -define(TEMPLATES_TABLE_OPTS, [named_table, public, {read_concurrency, true}]). -spec init() -> ok. init() -> case ets:info(?TEMPLATES_TABLE) of ...
38adcef38c18f003802f8f809e24a98f8a637ee40f19a77ce6eb8d9cfede03e4
spawnfest/eep49ers
oc_statem.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2017 - 2020 . All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicab...
null
https://raw.githubusercontent.com/spawnfest/eep49ers/d1020fd625a0bbda8ab01caf0e1738eb1cf74886/lib/stdlib/test/gen_statem_SUITE_data/oc_statem.erl
erlang
%CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific lan...
Copyright Ericsson AB 2017 - 2020 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(oc_statem). -behaviour(gen_statem). -export([start/1]). -export([init/1, callback_mode/0, handle_event/4])...
20d88be5798dd1db329e33478575861867ccf9b13e30da68c84a41b3c9933f39
Ericson2314/lighthouse
Console.hs
module Kernel.Types.Console where import H.Concurrency(Chan) import Data.Word ( Word8 ) import Control.Concurrent.Lock type VideoAttributes = Word8 type Row = Int type Col = Int data ConsoleCommand = NewLine | CarriageReturn | ClearEOL | PutChar VideoAttributes Char | MoveCursorBackward Int ...
null
https://raw.githubusercontent.com/Ericson2314/lighthouse/210078b846ebd6c43b89b5f0f735362a01a9af02/kernel/Kernel/Types/Console.hs
haskell
module Kernel.Types.Console where import H.Concurrency(Chan) import Data.Word ( Word8 ) import Control.Concurrent.Lock type VideoAttributes = Word8 type Row = Int type Col = Int data ConsoleCommand = NewLine | CarriageReturn | ClearEOL | PutChar VideoAttributes Char | MoveCursorBackward Int ...
3457da47eb5b763dcb63befc574251a88bba3f8b29e270dd540f9814dab9063f
karamellpelle/grid
SoundMemory.hs
grid is a game written in Haskell Copyright ( C ) 2018 -- -- This file is part of grid. -- -- grid is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or -- (at your optio...
null
https://raw.githubusercontent.com/karamellpelle/grid/56729e63ed6404fd6cfd6d11e73fa358f03c386f/source/Game/Memory/MemoryData/Fancy/SoundMemory.hs
haskell
This file is part of grid. grid is free software: you can redistribute it and/or modify (at your option) any later version. grid is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GN...
grid is a game written in Haskell Copyright ( C ) 2018 it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License module Game.Memory.MemoryData.Fancy.SoundMemory (...
5615c31a200fd6735be13d65577b7724809f70c4d91838461431cb06221647a8
bmeurer/ocaml-arm
outputbis.mli
(***********************************************************************) (* *) (* OCaml *) (* *) projet ...
null
https://raw.githubusercontent.com/bmeurer/ocaml-arm/43f7689c76a349febe3d06ae7a4fc1d52984fd8b/lex/outputbis.mli
ocaml
********************************************************************* OCaml ...
projet Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ Id$ val output_lexdef : string -> in_channel -> out_cha...
5e91a0c1b934787b9e4def0cef85e006a2ebc07192dd8be7224d440c5e69802e
BinaryAnalysisPlatform/bap
mips_utils.ml
open Core_kernel[@@warning "-D"] open Bap.Std let mips_fail format = let fail str = failwith (sprintf "MIPS lifter fail: %s" str) in Printf.ksprintf fail format
null
https://raw.githubusercontent.com/BinaryAnalysisPlatform/bap/253afc171bbfd0fe1b34f6442795dbf4b1798348/plugins/mips/mips_utils.ml
ocaml
open Core_kernel[@@warning "-D"] open Bap.Std let mips_fail format = let fail str = failwith (sprintf "MIPS lifter fail: %s" str) in Printf.ksprintf fail format
84e3971c2e8fd6648faf2af9b97bea3d7b6d5792ff1218ed76eb6b04972f810e
imrehg/ypsilon
sorting.scm
#!core Ypsilon Scheme System Copyright ( c ) 2004 - 2009 Y.FUJITA / LittleWing Company Limited . See license.txt for terms and conditions of use . (library (core sorting) (export list-sort vector-sort vector-sort!) (import (core primitives)) (define list-sort (lambda (proc lst) ...
null
https://raw.githubusercontent.com/imrehg/ypsilon/e57a06ef5c66c1a88905b2be2fa791fa29848514/stdlib/core/sorting.scm
scheme
[end]
#!core Ypsilon Scheme System Copyright ( c ) 2004 - 2009 Y.FUJITA / LittleWing Company Limited . See license.txt for terms and conditions of use . (library (core sorting) (export list-sort vector-sort vector-sort!) (import (core primitives)) (define list-sort (lambda (proc lst) ...
86f9486216d7f083542095c86b6971c0a3d862d32c8342afaefb19d6e42adff0
haskell/parsec
Perm.hs
{-# LANGUAGE Safe #-} ----------------------------------------------------------------------------- -- | Module : Text . ParserCombinators . Parsec . Perm Copyright : ( c ) 2007 -- License : BSD-style (see the LICENSE file) -- -- Maintainer : -- Stability : provisional -- Portability : p...
null
https://raw.githubusercontent.com/haskell/parsec/38dfc545874dd44c26382d8dd692eb533396c6f5/src/Text/ParserCombinators/Parsec/Perm.hs
haskell
# LANGUAGE Safe # --------------------------------------------------------------------------- | License : BSD-style (see the LICENSE file) Maintainer : Stability : provisional Portability : portable ---------------------------------------------------------------------------
Module : Text . ParserCombinators . Parsec . Perm Copyright : ( c ) 2007 Parsec compatibility module module Text.ParserCombinators.Parsec.Perm ( PermParser, permute, (<||>), (<$$>), (<|?>), (<$?>) ) where import Text.Parsec.Perm
2166d9e2cd58b6f838486b8283362fdaf112d3daa028fba5d65ccc687c4034a6
chiroptical/thinking-with-types
Main.hs
module Main where import Lib main :: IO () main = print "Hello"
null
https://raw.githubusercontent.com/chiroptical/thinking-with-types/781f90f1b08eb94ef3600c5b7da92dfaf9ea4285/Chapter9/app/Main.hs
haskell
module Main where import Lib main :: IO () main = print "Hello"
c8dc8375108959a87740a8af06502d26123590e2fc00e24d2f81174876802a7a
himura/twitter-conduit
Status.hs
module Web.Twitter.Conduit.Status ( -- * Notice -- $notice -- * Timelines mentionsTimeline, userTimeline, homeTimeline, retweetsOfMe, -- * Tweets retweetsId, showId, destroyId, update, retweetId, updateWithMedia, lookup, ) where import Data.Text (Text) impo...
null
https://raw.githubusercontent.com/himura/twitter-conduit/a327d7727faf2fb38f54f48ef0a61cbc5537b5d2/src/Web/Twitter/Conduit/Status.hs
haskell
* Notice $notice * Timelines * Tweets $notice This module provides aliases of statuses API, for backward compatibility.
module Web.Twitter.Conduit.Status ( mentionsTimeline, userTimeline, homeTimeline, retweetsOfMe, retweetsId, showId, destroyId, update, retweetId, updateWithMedia, lookup, ) where import Data.Text (Text) import Web.Twitter.Conduit.Api import Web.Twitter.Conduit.Parameters i...
f5b90f019bf0ffebd5faeec97b8ae53cd6c4542740158ae48f45b87fd8a659a7
carl-eastlund/mischief
reader.rkt
#lang s-exp syntax/module-reader debug/racket/base
null
https://raw.githubusercontent.com/carl-eastlund/mischief/ce58c3170240f12297e2f98475f53c9514225825/debug/racket/base/lang/reader.rkt
racket
#lang s-exp syntax/module-reader debug/racket/base
87fbe71d6782256d9f1b9cc31079449f7678b6ac0c1116383ccb7a9f0962ca9a
zen-lang/zen
env_test.clj
(ns zen.env-test (:require [matcho.core :as matcho] [clojure.test :refer [deftest is testing]] [zen.core])) (deftest test-envs (def ztx (zen.core/new-context {:paths ["test"] :env {:ESTR "extr" :EINT "99" :ESYM "schema" ...
null
https://raw.githubusercontent.com/zen-lang/zen/d3edf2b79828dd406e3bd4b2bc642a811557b510/test/zen/env_test.clj
clojure
(ns zen.env-test (:require [matcho.core :as matcho] [clojure.test :refer [deftest is testing]] [zen.core])) (deftest test-envs (def ztx (zen.core/new-context {:paths ["test"] :env {:ESTR "extr" :EINT "99" :ESYM "schema" ...
05a28b0cf8c7f9cdcad19195c5d00322030ade86c51e4115e1413533536677eb
cedlemo/OCaml-GI-ctypes-bindings-generator
Tree_view.ml
open Ctypes open Foreign type t = unit ptr let t_typ : t typ = ptr void let create = foreign "gtk_tree_view_new" (void @-> returning (ptr Widget.t_typ)) (*Not implemented gtk_tree_view_new_with_model type interface not implemented*) let append_column = foreign "gtk_tree_view_append_column" (t_typ @-> ptr Tree_vie...
null
https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gtk3/Tree_view.ml
ocaml
Not implemented gtk_tree_view_new_with_model type interface not implemented Not implemented gtk_tree_view_enable_model_drag_dest type C Array type for Types.Array tag not implemented Not implemented gtk_tree_view_enable_model_drag_source type C Array type for Types.Array tag not implemented Not implemented gtk_tree_vie...
open Ctypes open Foreign type t = unit ptr let t_typ : t typ = ptr void let create = foreign "gtk_tree_view_new" (void @-> returning (ptr Widget.t_typ)) let append_column = foreign "gtk_tree_view_append_column" (t_typ @-> ptr Tree_view_column.t_typ @-> returning (int32_t)) let collapse_all = foreign "gtk_tree_v...
c425dd31fd2afeec11381cf174ee1503e15ffa6454f264297b14dca616e3ec11
cljdoc/cljdoc-analyzer
main_test.clj
(ns cljdoc-analyzer.metagetta.main-test "Load all `test-sources/*` namespaces and test various things about them." (:require [clojure.test :as t] [cljdoc-analyzer.metagetta.main :as main])) (defn- in? [coll elem] (some #(= elem %) coll)) (defn- concat-res [& args] (remove nil? (apply concat args))...
null
https://raw.githubusercontent.com/cljdoc/cljdoc-analyzer/5489e7de9542038a57a09abe583fc187d6a360e1/modules/metagetta/test/cljdoc_analyzer/metagetta/main_test.clj
clojure
this test is special in that it includes namespaces marked with no-doc would fail if an attempt was made to load them requires special setup, see test task in bb.edn
(ns cljdoc-analyzer.metagetta.main-test "Load all `test-sources/*` namespaces and test various things about them." (:require [clojure.test :as t] [cljdoc-analyzer.metagetta.main :as main])) (defn- in? [coll elem] (some #(= elem %) coll)) (defn- concat-res [& args] (remove nil? (apply concat args))...
fd4a4478e1eeaea945ce54215f358daeedd3ed90529904e046e6b02062d54240
buntine/Simply-Scheme-Exercises
22-3.scm
; Write a procedure to count the number of words in a file. It should take the ; filename as argument and return the number. (define (numwords file) (let ((inport (open-input-file file))) (define words (count-words inport)) (close-input-port inport) words)) note : This words because ' read ' will ; s...
null
https://raw.githubusercontent.com/buntine/Simply-Scheme-Exercises/c6cbf0bd60d6385b506b8df94c348ac5edc7f646/22-files/22-3.scm
scheme
Write a procedure to count the number of words in a file. It should take the filename as argument and return the number. store the data as a list.
(define (numwords file) (let ((inport (open-input-file file))) (define words (count-words inport)) (close-input-port inport) words)) note : This words because ' read ' will (define (count-words inport) (let ((line (read-line inport))) (if (eof-object? line) 0 (+ (length line) (count...
622f6ea76394f32bf8ddee9e4c72f1b9247f3c29759e5679f8ce90a003e059f4
jellelicht/guix
profiles.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2015 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU 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 Lice...
null
https://raw.githubusercontent.com/jellelicht/guix/83cfc9414fca3ab57c949e18c1ceb375a179b59c/guix/build/profiles.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2015 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (guix build profiles) #:use-module (guix build union) #:use-module (guix build utils) #:use-m...
62ce0acdd4a35706e942d819a28666db37857de517690666b452b47e7ee81ed0
scmlab/gcl
WP.hs
{-# LANGUAGE OverloadedStrings #-} module GCL.WP.WP where import Control.Arrow ( first, second ) import Control.Monad.Except ( MonadError(throwError) , forM ) import ...
null
https://raw.githubusercontent.com/scmlab/gcl/cadeff706b678e558100f3c3b172055486e6043a/src/GCL/WP/WP.hs
haskell
# LANGUAGE OverloadedStrings # import Debug.Trace handels segments without a precondition. switches back to structSegs when seeing an assertion no assertions and specs (in the outer level), but may contain invariants in secondary run this happens only in secondary run shouldn't happen non-empty wp (x := es) P ...
module GCL.WP.WP where import Control.Arrow ( first, second ) import Control.Monad.Except ( MonadError(throwError) , forM ) import Data.Text ( T...
c58b981e252a3a8012db2d73a9ea1da2a5beb8584b1f9f145551c59364cc1bb9
digitallyinduced/ihp
BuildGeneratedCode.hs
| Module : IHP.CLI.BuildGeneratedCode Description : Provides the @build - generated - code@ command which generates the Generated . Types module Copyright : ( c ) digitally induced GmbH , 2020 Module: IHP.CLI.BuildGeneratedCode Description: Provides the @build-generated-code@ command which generates the Gene...
null
https://raw.githubusercontent.com/digitallyinduced/ihp/5a53eff25ed3d765dc0cd5ec7425d4fcaaa25f97/exe/IHP/CLI/BuildGeneratedCode.hs
haskell
| Module : IHP.CLI.BuildGeneratedCode Description : Provides the @build - generated - code@ command which generates the Generated . Types module Copyright : ( c ) digitally induced GmbH , 2020 Module: IHP.CLI.BuildGeneratedCode Description: Provides the @build-generated-code@ command which generates the Gene...
d929089ad0c15f95172a1759c2c8e5f39303c7fa960fca971007a177232558fe
vernemq/vernemq
vmq_server_app.erl
Copyright 2018 Erlio GmbH Basel Switzerland ( ) %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicable law or agreed to in writing, sof...
null
https://raw.githubusercontent.com/vernemq/vernemq/234d253250cb5371b97ebb588622076fdabc6a5f/apps/vmq_server/src/vmq_server_app.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 or implied. See the License for the specific language governing perm...
Copyright 2018 Erlio GmbH Basel Switzerland ( ) Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(vmq_server_app). -behaviour(application). -export([start/2, stop/1]). -spec start(_, _) -> {'error', _} | {'ok', ...
95c9fc5711e02d8cc7f77982db3ded274ae4a64194052e6b433b8d13bbdb8a72
rtoy/ansi-cl-tests
array-element-type.lsp
;-*- Mode: Lisp -*- Author : ;;;; Contains: Tests of the function ARRAY-ELEMENT-TYPE (in-package :cl-test) Mosts tests are in other files , incidental to testing of ;;; other things (deftest array-element-type.1 (macrolet ((%m (z) z)) (notnot (array-element-type (expand-in-current-env (%m ...
null
https://raw.githubusercontent.com/rtoy/ansi-cl-tests/9708f3977220c46def29f43bb237e97d62033c1d/array-element-type.lsp
lisp
-*- Mode: Lisp -*- Contains: Tests of the function ARRAY-ELEMENT-TYPE other things Error tests
Author : (in-package :cl-test) Mosts tests are in other files , incidental to testing of (deftest array-element-type.1 (macrolet ((%m (z) z)) (notnot (array-element-type (expand-in-current-env (%m #(a b c)))))) t) (deftest array-element-type.order.1 (let ((i 0)) (array-element-type (p...
be1335d44e3f7bd40a2f5330e3953ac662a43949421ce51807321295d9217763
lisp/de.setf.xml
schema.lisp
20100512T225721Z00 from # < doc - node # x224C9D16 > (common-lisp:in-package "urn/") (de.setf.resource.schema:defclass |/|:|Abstention| (|/|:|Option|) nil (:documentation "An '...
null
https://raw.githubusercontent.com/lisp/de.setf.xml/827681c969342096c3b95735d84b447befa69fa6/namespaces/urn-/govshare-info/rdf/vote/schema.lisp
lisp
20100512T225721Z00 from # < doc - node # x224C9D16 > (common-lisp:in-package "urn/") (de.setf.resource.schema:defclass |/|:|Abstention| (|/|:|Option|) nil (:documentation "An '...
0c7f25cffe4c1fde5dffae15f8ec9e4310aeb2e8f5f715fa3da44de4977bc364
dpapavas/lagrange-keyboard
core.clj
-*- coding : utf-8 -*- Copyright 2020 ;; 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 , or ;; (at your option) any later version. ;; This progra...
null
https://raw.githubusercontent.com/dpapavas/lagrange-keyboard/1eacbe7962e6a221bbb8072e9869c23df4c41580/src/lagrange_keyboard/core.clj
clojure
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 the GNU Affero General P...
-*- coding : utf-8 -*- Copyright 2020 it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU Affero General Public License (ns lagrange-keyboard.core (:gen-class) (:re...
880f0ef7025dcc24e05052f6207c2126683f924acd4a90f0b3633de1ebb37cba
baig/pandoc-csv2table
Definition.hs
The MIT License ( MIT ) Copyright ( c ) 2015 < > Permission is hereby granted , free of charge , to any person obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without restriction , including without limitation the rights to use , copy...
null
https://raw.githubusercontent.com/baig/pandoc-csv2table/297a466035191fc966edbade5044530d087a9632/src/Text/Table/Definition.hs
haskell
Type synonyms Data Definitions | Type of the 'Table'. Simple Table Multiline Table Grid Table Pipe Table | Position of the caption. Insert caption before table markdown. Insert caption after table markdown. | Alignment of a Column in the Table. Not all TableTypes support column alignments. Center Align ...
The MIT License ( MIT ) Copyright ( c ) 2015 < > Permission is hereby granted , free of charge , to any person obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without restriction , including without limitation the rights to use , copy...
f604a74b41dc15e0f0716cd20bc3dfa6c0de1e938691403cabed4be3a7fcb705
rjnw/sham
type.rkt
#lang racket (require "private/utils.rkt") (provide (all-defined-out))
null
https://raw.githubusercontent.com/rjnw/sham/6e0524b1eb01bcda83ae7a5be6339da4257c6781/sham-sam/sham/sam/syntax/type.rkt
racket
#lang racket (require "private/utils.rkt") (provide (all-defined-out))
440702d738c6274b13bcf3361a0ca52a37bc140c2f1ef6119440e3ef92ab6b7c
open-company/open-company-web
jwt.cljs
(ns oc.web.stores.jwt (:require [taoensso.timbre :as timbre] [oc.web.lib.jwt :as j] [oc.web.lib.cookies :as cook] [oc.web.dispatcher :as dispatcher])) JWT handling Store JWT in App DB so it can be easily accessed in actions etc . (defmethod dispatcher/action :jwt [db [_]] ...
null
https://raw.githubusercontent.com/open-company/open-company-web/dfce3dd9bc115df91003179bceb87cca1f84b6cf/src/main/oc/web/stores/jwt.cljs
clojure
(ns oc.web.stores.jwt (:require [taoensso.timbre :as timbre] [oc.web.lib.jwt :as j] [oc.web.lib.cookies :as cook] [oc.web.dispatcher :as dispatcher])) JWT handling Store JWT in App DB so it can be easily accessed in actions etc . (defmethod dispatcher/action :jwt [db [_]] ...
e3b3d0eec0f65877129c186ef74ecda33778fb15c0d521e23d28a63e6fc8f245
diku-dk/futhark
LSP.hs
# LANGUAGE ExplicitNamespaces # -- | @futhark lsp@ module Futhark.CLI.LSP (main) where import Control.Monad.IO.Class (MonadIO (liftIO)) import Data.IORef (newIORef) import Futhark.LSP.Handlers (handlers) import Futhark.LSP.State (emptyState) import Language.LSP.Server import Language.LSP.Types ( SaveOptions (SaveOp...
null
https://raw.githubusercontent.com/diku-dk/futhark/98e4a75e4de7042afe030837084764bbf3c6c66e/src/Futhark/CLI/LSP.hs
haskell
| @futhark lsp@ | Run @futhark lsp@
# LANGUAGE ExplicitNamespaces # module Futhark.CLI.LSP (main) where import Control.Monad.IO.Class (MonadIO (liftIO)) import Data.IORef (newIORef) import Futhark.LSP.Handlers (handlers) import Futhark.LSP.State (emptyState) import Language.LSP.Server import Language.LSP.Types ( SaveOptions (SaveOptions), TextDoc...
ee5ea78bb7c216b98eaf2563ebe35f445945f6bb048f10cb126785432283a0a7
cojna/iota
AffineSpec.hs
# LANGUAGE ScopedTypeVariables # # OPTIONS_GHC -Wno - orphans # module Data.Monoid.AffineSpec (main, spec) where import Data.Monoid.Affine import Data.Proxy import Test.Prelude import Test.Prop.Monoid main :: IO () main = hspec spec spec :: Spec spec = do describe "Affine Int" $ monoidSpec (Proxy :: Proxy (Af...
null
https://raw.githubusercontent.com/cojna/iota/a64e8c5e4dd4f92e5ed3fcd0413be94ef1108f9e/test/Data/Monoid/AffineSpec.hs
haskell
# LANGUAGE ScopedTypeVariables # # OPTIONS_GHC -Wno - orphans # module Data.Monoid.AffineSpec (main, spec) where import Data.Monoid.Affine import Data.Proxy import Test.Prelude import Test.Prop.Monoid main :: IO () main = hspec spec spec :: Spec spec = do describe "Affine Int" $ monoidSpec (Proxy :: Proxy (Af...
ceeb4e215dfa8f0fa60d795be23859f0c01a811da7eff067a05e487e4473e541
christiaanb/clash
HardwareTypes.hs
# LANGUAGE TemplateHaskell , DeriveDataTypeable , RecordWildCards # module CLasH.HardwareTypes ( module Types , module Data.Param.Integer , module Data.Param.Vector , module Data.Param.Index , module Data.Param.Signed , module Data.Param.Unsigned , module Data.Bits , module Language.Haskell.TH.Lift ,...
null
https://raw.githubusercontent.com/christiaanb/clash/18247975e8bbd3f903abc667285e11228a640457/clash/CLasH/HardwareTypes.hs
haskell
The plain Bit type Only write data_in to memory if write is enabled ============================== ============================== =============== = Conversions = =============== ========== = Clocks = ========== ================== ==================
# LANGUAGE TemplateHaskell , DeriveDataTypeable , RecordWildCards # module CLasH.HardwareTypes ( module Types , module Data.Param.Integer , module Data.Param.Vector , module Data.Param.Index , module Data.Param.Signed , module Data.Param.Unsigned , module Data.Bits , module Language.Haskell.TH.Lift ,...
afa53327d85d6b9d410c5abceb449e687b6313ec19665fb8a4e70a2b6cf9322c
tweag/ormolu
main-and-foo-v2.hs
module Main (main) where main :: IO () main = pure () foo :: Int foo = 5
null
https://raw.githubusercontent.com/tweag/ormolu/34bdf62429768f24b70d0f8ba7730fc4d8ae73ba/data/diff-tests/inputs/main-and-foo-v2.hs
haskell
module Main (main) where main :: IO () main = pure () foo :: Int foo = 5
37c4c01673d2773b6f059fd1eb539df4afe2d29e60eb581eb145bb3827566047
racketscript/racketscript
lambda-flist.rkt
#lang racket/base (require "lib.rkt") (define add (λ vs (foldl + 0 vs))) (define add2 (λ (a b . c) (* (foldl + 0 c) a b))) (displayln (add 1 2 3 4 5)) (displayln (add2 1 2 3 4 5))
null
https://raw.githubusercontent.com/racketscript/racketscript/f94006d11338a674ae10f6bd83fc53e6806d07d8/tests/basic/lambda-flist.rkt
racket
#lang racket/base (require "lib.rkt") (define add (λ vs (foldl + 0 vs))) (define add2 (λ (a b . c) (* (foldl + 0 c) a b))) (displayln (add 1 2 3 4 5)) (displayln (add2 1 2 3 4 5))
5fb63cdd80f0e63caef1d26862db06524284597b4220530090964741584d7dac
libguestfs/virt-v2v
config.mli
virt - v2v * Copyright ( C ) 2019 Red Hat Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation ; either version 2 of the License , or * ( at your option ) any later version...
null
https://raw.githubusercontent.com/libguestfs/virt-v2v/cff4514927b3e12a30619377149789c5bd2daebb/lib/config.mli
ocaml
* The configure value [@PACKAGE_NAME@] * The configure value [@PACKAGE_VERSION@] * The configure value [@PACKAGE_VERSION_FULL@] * The configure value [@datadir@]
virt - v2v * Copyright ( C ) 2019 Red Hat Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation ; either version 2 of the License , or * ( at your option ) any later version...
d992c0334dab40a78a605a955262efd8037a7f43641cfda0a074ed54e43524a8
ZHaskell/z-http
Server.hs
module Z.HTTP.Server where import Z.Data.HTTP.Request import Z.IO.Network import Z.IO type ServerLoop = (UVStream -> IO ()) -> IO () data HTTPServerConfig = HTTPServerConfig { httpSendBufSiz :: Int , httpRecvBufSiz :: Int } defaultHTTPServerConfig :: HTTPServerConfig default...
null
https://raw.githubusercontent.com/ZHaskell/z-http/db37c69d3632bf0730640362604f4015556fd14c/Z/HTTP/Server.hs
haskell
module Z.HTTP.Server where import Z.Data.HTTP.Request import Z.IO.Network import Z.IO type ServerLoop = (UVStream -> IO ()) -> IO () data HTTPServerConfig = HTTPServerConfig { httpSendBufSiz :: Int , httpRecvBufSiz :: Int } defaultHTTPServerConfig :: HTTPServerConfig default...
3aba0f8198fb420b5ed67c9d41e2d27cc8b45fe3a4b9045639840115a229f443
kmi/irs
new.lisp
Mode : Lisp ; Package : File created in WebOnto (in-package "OCML") (in-ontology luisa-wsmo-descriptions) (def-class actor () ((has-actor-id :type integer) (has-actor-name :type string)) ) (def-class learner (actor) ((has-learner-history :type learning-object-list) (has-competency-demand :type competency-l...
null
https://raw.githubusercontent.com/kmi/irs/e1b8d696f61c6b6878c0e92d993ed549fee6e7dd/ontologies/domains/luisa-wsmo-descriptions/new.lisp
lisp
Package :
File created in WebOnto (in-package "OCML") (in-ontology luisa-wsmo-descriptions) (def-class actor () ((has-actor-id :type integer) (has-actor-name :type string)) ) (def-class learner (actor) ((has-learner-history :type learning-object-list) (has-competency-demand :type competency-list) (has-language :type l...
43d1478a837ce3c6584170f233e63425286b67ad561a6502f00a43deda55d56d
rtrusso/scp
sasm-nasmx86.scm
;; sasm-nasmx86.scm SASM Machine Description - x86 on the NASM assembler (need sasm/sasm-tx) (need sasm/nasmx86/util) (need sasm/nasmx86/binop) (need sasm/nasmx86/interp) (need sasm/nasmx86/labels) (need sasm/nasmx86/control) (need sasm/nasmx86/compare) (need sasm/nasmx86/stack) (need sasm/nasmx86/store-...
null
https://raw.githubusercontent.com/rtrusso/scp/2051e76df14bd36aef81aba519ffafa62b260f5c/src/sasm/sasm-nasmx86.scm
scheme
sasm-nasmx86.scm
SASM Machine Description - x86 on the NASM assembler (need sasm/sasm-tx) (need sasm/nasmx86/util) (need sasm/nasmx86/binop) (need sasm/nasmx86/interp) (need sasm/nasmx86/labels) (need sasm/nasmx86/control) (need sasm/nasmx86/compare) (need sasm/nasmx86/stack) (need sasm/nasmx86/store-array) (need sasm/na...
ad1d60af8b8353397b728e69335114ce776fd74a2767baf1dfa30e23f021c8b6
andrejbauer/plzoo
syntax.ml
(** Abstract syntax *) (** The type of identifiers *) type name = string (** Arithmetical operations *) type arithop = Plus | Minus | Times | Divide | Remainder (** Comparisons *) type cmpop = Less | Equal | Unequal (** Logical operators *) type boolop = And | Or (** Expressions *) type expr = | Var of name ...
null
https://raw.githubusercontent.com/andrejbauer/plzoo/ae6041c65baf1eebf65a60617819efeb8dcd3420/src/boa/syntax.ml
ocaml
* Abstract syntax * The type of identifiers * Arithmetical operations * Comparisons * Logical operators * Expressions * variable * boolean constant [true] or [false] * integer constant * logical negation [not e] * comparison [e1 cmp e2] * conditional statement [if e1 then e2 else e3] * command [skip], does ...
type name = string type arithop = Plus | Minus | Times | Divide | Remainder type cmpop = Less | Equal | Unequal type boolop = And | Or type expr = * arithmetical operation [ e1 op e2 ] * logical operator [ e1 op e2 ] * Toplevel commands type toplevel_cmd =
5efc1d477f6f87de0100353d4cb39d3d75dc7fe3c93a41b7efdc440c8dcb7ee4
Clozure/ccl
group.lisp
;;; -*- Log: hemlock.log; Package: Hemlock -*- ;;; ;;; ********************************************************************** This code was written as part of the CMU Common Lisp project at Carnegie Mellon University , and has been placed in the public domain . ;;; #+CMU (ext:file-comment "$Header$") ;;; ;;; ****...
null
https://raw.githubusercontent.com/Clozure/ccl/6c1a9458f7a5437b73ec227e989aa5b825f32fd3/cocoa-ide/hemlock/unused/archive/group.lisp
lisp
-*- Log: hemlock.log; Package: Hemlock -*- ********************************************************************** ********************************************************************** also know about groups. that make up a larger system. A file group is a set of files whose Active group, prompting for ...
This code was written as part of the CMU Common Lisp project at Carnegie Mellon University , and has been placed in the public domain . #+CMU (ext:file-comment "$Header$") File group stuff for Hemlock . Written by and . The " Compile Group " and " List Compile Group " commands in lispeval This file...
f59bc2a4c70e7f39d9f1be767cd4c23181c57271a29e81cdcf538c49482b77af
rmloveland/scheme48-0.53
pseudoscheme-record.scm
Copyright ( c ) 1993 - 1999 by and . See file COPYING . (define make-record-type #'scheme-translator::make-record-type) (define record-constructor #'scheme-translator::record-constructor) (define record-accessor #'scheme-translator::record-accessor) (define record-modifier #'scheme-translator::record-mod...
null
https://raw.githubusercontent.com/rmloveland/scheme48-0.53/1ae4531fac7150bd2af42d124da9b50dd1b89ec1/scheme/alt/pseudoscheme-record.scm
scheme
Copyright ( c ) 1993 - 1999 by and . See file COPYING . (define make-record-type #'scheme-translator::make-record-type) (define record-constructor #'scheme-translator::record-constructor) (define record-accessor #'scheme-translator::record-accessor) (define record-modifier #'scheme-translator::record-mod...
733ee4d2d52be67bf1cccda7b26961ea3b6fef2e319b36653aea038a512f63ad
tokenmill/timewords
lt_relative_test.clj
(ns timewords.lt-relative-test (:require [clojure.test :refer :all] [clj-time.core :as joda :refer [date-time]] [timewords.core :refer [parse]]) (:import (java.util Date) (org.joda.time DateTime))) (defn date [& xs] (.toDate (apply date-time xs))) (deftest lt-relative-timewords ...
null
https://raw.githubusercontent.com/tokenmill/timewords/431ef3aa9eb899f2abd47cebc20a232f8c226b4a/test/timewords/lt_relative_test.clj
clojure
use a timezone for document time setup (is (= nil (parse "Publikuota: 21:05" (Date.) "lt")))
(ns timewords.lt-relative-test (:require [clojure.test :refer :all] [clj-time.core :as joda :refer [date-time]] [timewords.core :refer [parse]]) (:import (java.util Date) (org.joda.time DateTime))) (defn date [& xs] (.toDate (apply date-time xs))) (deftest lt-relative-timewords ...
77bd126910cde972873f5140a2f8df1c84276aa8d470feefee60044010b6fd9e
jepsen-io/etcd
support.clj
(ns jepsen.etcd.client.support "Basic functions for working with clients.") (defprotocol Client (txn! [client pred t-branch false-branch] "Takes a predicate test, an optional true branch, and an optional false branch. See jepsen.etcd.client.txn for how to construct these arguments."))
null
https://raw.githubusercontent.com/jepsen-io/etcd/127de3e52f72e368a3866487c97f6c8293cc3b8b/src/jepsen/etcd/client/support.clj
clojure
(ns jepsen.etcd.client.support "Basic functions for working with clients.") (defprotocol Client (txn! [client pred t-branch false-branch] "Takes a predicate test, an optional true branch, and an optional false branch. See jepsen.etcd.client.txn for how to construct these arguments."))
b9579f9631b9177c1ae9869f1c10d93ed6472dcc7d5056e7ccbeffd0fa0ef61d
jgm/unicode-collation
Collator.hs
# LANGUAGE CPP # {-# LANGUAGE RankNTypes #-} {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TemplateHaskell # module Text.Collate.Collator ( Collator(..) , SortKey(..) , renderSortKey , VariableWeighting(..) , rootCollator , collatorLang , CollatorOptions(..) , setVariableWeighting , setFrenchAccents ...
null
https://raw.githubusercontent.com/jgm/unicode-collation/b499a94ec58071ca0d95ece6a5341640e4bc5468/src/Text/Collate/Collator.hs
haskell
# LANGUAGE RankNTypes # # LANGUAGE OverloadedStrings # | 'VariableWeighting' affects how punctuation is treated. See </#Variable_Weighting>. ^ Consider punctuation at lower priority Note that because of fallback rules, this may be somewhat won't contain unicode extensions used to set options, but it will specify ...
# LANGUAGE CPP # # LANGUAGE TemplateHaskell # module Text.Collate.Collator ( Collator(..) , SortKey(..) , renderSortKey , VariableWeighting(..) , rootCollator , collatorLang , CollatorOptions(..) , setVariableWeighting , setFrenchAccents , setUpperBeforeLower , setNormalization , collator , de...
aee81c7da4450ae3340179f0e03506e60f48bec55e6a8c5f6d18305896971453
nomeata/incredible
ConvertJS.hs
module ConvertJS (toContext, toProof, fromAnalysis, fromRule) where import GHCJS.Types import GHCJS.Marshal import Data.Aeson.Types import qualified ConvertAeson as A import Types -- Conversion from/to JSRef toContext :: JSVal -> IO (Either String Context) toContext val = do valMB <- fromJSVal val case valM...
null
https://raw.githubusercontent.com/nomeata/incredible/d18ada4ae7ce1c7ca268c050ee688b633a307c2e/logic/js/ConvertJS.hs
haskell
Conversion from/to JSRef
module ConvertJS (toContext, toProof, fromAnalysis, fromRule) where import GHCJS.Types import GHCJS.Marshal import Data.Aeson.Types import qualified ConvertAeson as A import Types toContext :: JSVal -> IO (Either String Context) toContext val = do valMB <- fromJSVal val case valMB of Just v -> retur...
a1fce625b9cbb30f979b9d6c5da648ba335aee168aa557e41d931a25ab6d87a8
facebook/pyre-check
myMap.mli
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
null
https://raw.githubusercontent.com/facebook/pyre-check/10c375bea52db5d10b71cb5206fac7da9549eb0c/source/hack_parallel/hack_parallel/utils/collections/myMap.mli
ocaml
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
3fffadf95be63fd508a26a50b4fba9d9e04a0813f357865122c75a89b09e433f
afronski/bferl
programming_language_logic_SUITE.erl
-module(programming_language_logic_SUITE). -include_lib("common_test/include/ct.hrl"). -include_lib("eunit/include/eunit.hrl"). -include("../include/interpreter_definitions.hrl"). -define(TO_STRING(Code), string:join(Code, "")). -export([ all/0 ]). -export([ empty_state_should_have_fixed_memory_size/1, ot...
null
https://raw.githubusercontent.com/afronski/bferl/18d3482c71cdb0e39bde090d436245a2a9531f49/test/programming_language_logic_SUITE.erl
erlang
-module(programming_language_logic_SUITE). -include_lib("common_test/include/ct.hrl"). -include_lib("eunit/include/eunit.hrl"). -include("../include/interpreter_definitions.hrl"). -define(TO_STRING(Code), string:join(Code, "")). -export([ all/0 ]). -export([ empty_state_should_have_fixed_memory_size/1, ot...
28c5d1e5287d4c689ac0415bf3b2237887af6bdbc2da9e4973b93319449b1d99
IvanIvanov/fp2013
lab7-examples.scm
A function that computes the dot product of two vectors ;;; represented as lists. (define (dot-product a b) (if (null? a) 0 (+ (* (car a) (car b)) (dot-product (cdr a) (cdr b))))) 14 ;;; A matrix can be modeled as a list of it's row vectors ;;; which are lists of numbers. ;;; Finds the num...
null
https://raw.githubusercontent.com/IvanIvanov/fp2013/2ac1bb1102cb65e0ecbfa8d2fb3ca69953ae4ecf/lab1/lab7-examples.scm
scheme
represented as lists. A matrix can be modeled as a list of it's row vectors which are lists of numbers. Finds the number of rows of the matrix m. Finds the number of columns of the matrix m. Computes the product of a matrix with a column vector. Transposes a matrix m. To transpose a matrix convert its columns in...
A function that computes the dot product of two vectors (define (dot-product a b) (if (null? a) 0 (+ (* (car a) (car b)) (dot-product (cdr a) (cdr b))))) 14 (define (matrix-rows m) (length m)) (define (matrix-cols m) (if (= (matrix-rows m) 0) 0 (length (car m)))) (define...
bb222ca8527f3ae0c9f6857a20f6843cd90e464441779b757fb3f0c612814929
myme/nixon
TestLib.hs
module Test.Nixon.TestLib where import Control.Monad.Trans.State (get, StateT, evalStateT) import Nixon.Prelude import Nixon.Process (HasProc (..)) import System.Exit (ExitCode) newtype MockProc a = MockProc (StateT (ExitCode, Text) IO a) deriving (Functor, Applicative, Monad) runProc :: (ExitCode, Text) -> MockPr...
null
https://raw.githubusercontent.com/myme/nixon/30a1ff6c1e902c2fb06ddfb003ab4124c447cc81/test/Test/Nixon/TestLib.hs
haskell
module Test.Nixon.TestLib where import Control.Monad.Trans.State (get, StateT, evalStateT) import Nixon.Prelude import Nixon.Process (HasProc (..)) import System.Exit (ExitCode) newtype MockProc a = MockProc (StateT (ExitCode, Text) IO a) deriving (Functor, Applicative, Monad) runProc :: (ExitCode, Text) -> MockPr...
f6087cf16df7bf70635e9d5ffd92e03f32275a06c809194bc4b1f7fe8d7c1fcc
erlang/corba
orber_web_server.erl
%%---------------------------------------------------------------------- %% %% %CopyrightBegin% %% Copyright Ericsson AB 2001 - 2015 . 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 obtai...
null
https://raw.githubusercontent.com/erlang/corba/396df81473a386d0315bbba830db6f9d4b12a04f/lib/orber/src/orber_web_server.erl
erlang
---------------------------------------------------------------------- %CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF A...
Copyright Ericsson AB 2001 - 2015 . 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(orber_web_server). -behaviour(gen_server). -export([init/1,handle_call/3,handle_cast/2,handle_info/2]). -e...
b45c31610c3eaf18fe4487a42f2680a66cc6de63d46149824eb96c5e109aa511
kxcteam/kxclib-ocaml
kxclib.ml
[%%define re (os_type = "re")] let refset r x = r := x (** [refset r x] sets [x] to ref [r]. *) let refget r = !r (** [refget r] returns [!r]. *) let refupdate r f = r := f !r (** [refupdate r f] updates referent of [r] by [f]. *) let refappend r x = r := x :: !r (** [refappend r x] appends [x] to referent of [r]. ...
null
https://raw.githubusercontent.com/kxcteam/kxclib-ocaml/7d6eae65fcf6edc06d14a10a95c88cd02e11a426/kxclib.ml
ocaml
* [refset r x] sets [x] to ref [r]. * [refget r] returns [!r]. * [refupdate r f] updates referent of [r] by [f]. * [refappend r x] appends [x] to referent of [r]. * [refupdate' f r] is equivalent to [refupdate r f]. * [refappend' x r] is equivalent to [refappend r x]. * [incr r] increases the referent of [r] by o...
[%%define re (os_type = "re")] let refset r x = r := x let refget r = !r let refupdate r f = r := f !r let refappend r x = r := x :: !r let refupdate' f r = r := f !r let refappend' x r = r := x :: !r let refpop r = match !r with h::t -> r:=t; h | [] -> raise Not_found * [ refpop r ] pop first item of the list r...
61a2c3185792d835a85af06d940bd82415e6e45e7f68d8d675d12afb5fcc0056
JAremko/spacetools
run.clj
(ns spacetools.spacedoc-cli.run "Tools for Spacemacs documentation files in .sdn format." (:gen-class) (:require [cats.core :as m] [cats.monad.exception :as exc :refer [failure]] [clojure.core.match :refer [match]] [clojure.string :as str :refer [join]] [spacetools....
null
https://raw.githubusercontent.com/JAremko/spacetools/d047e99689918b5a4ad483022f35802b2015af5f/bases/spacedoc-cli/src/spacetools/spacedoc_cli/run.clj
clojure
Handlers:
(ns spacetools.spacedoc-cli.run "Tools for Spacemacs documentation files in .sdn format." (:gen-class) (:require [cats.core :as m] [cats.monad.exception :as exc :refer [failure]] [clojure.core.match :refer [match]] [clojure.string :as str :refer [join]] [spacetools....
ff5ec07e3e971bf4d7cda61216a2cd8190f422126ad90be8c5ee9535cc96c506
emqx/emqx
emqx_retainer_api.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2020 - 2023 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 o...
null
https://raw.githubusercontent.com/emqx/emqx/0cfa5e2ce1de93731487ec5785dfb5e5969bc989/apps/emqx_retainer/src/emqx_retainer_api.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 - 2023 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(emqx_retainer_api). -behaviour(minirest_api). -include("emqx_retainer.hrl"). -include_...
d3f5da6ef4f48378482be972c4d316a0d29da31e1b3a8b1d69a37462caffbc60
facebookincubator/hsthrift
Exception.hs
Copyright ( c ) Facebook , Inc. and its affiliates . # LANGUAGE CPP # # LANGUAGE ScopedTypeVariables # module Util.Control.Exception ( -- * Catching all exceptions safely catchAll , handleAll , tryAll -- * Exception predicates , isSyncException , isAsyncException -- * Other ut...
null
https://raw.githubusercontent.com/facebookincubator/hsthrift/26bc1df3563d1f89b5a482ec1773438e6c4e914f/common/util/Util/Control/Exception.hs
haskell
* Catching all exceptions safely * Exception predicates * Other utilities | Catch all exceptions *except* asynchronous exceptions (technically, children of 'SomeAsyncException'). Catching asynchronous exceptions is almost never what you want to do: it can result in ignoring 'ThreadKilled' which can lead to dead...
Copyright ( c ) Facebook , Inc. and its affiliates . # LANGUAGE CPP # # LANGUAGE ScopedTypeVariables # module Util.Control.Exception catchAll , handleAll , tryAll , isSyncException , isAsyncException , throwLeftIO , throwLeftExceptionIO , tryBracket , tryFinally , onSomeExcept...
5dae0e1ac9b3c6a4216c045ca9830ca3ea65444306a04c596557a7cb93ec24e3
schell/ixshader
Qualifiers.hs
{-# LANGUAGE ConstraintKinds #-} # LANGUAGE AllowAmbiguousTypes # {-# LANGUAGE DataKinds #-} {-# LANGUAGE FlexibleContexts #-} # LANGUAGE FlexibleInstances # # LANGUAGE GADTs # {-# LANGUAGE LambdaCase #-} # LANGUAGE MultiParamTypeClasses # # LANGUAGE PolyKinds ...
null
https://raw.githubusercontent.com/schell/ixshader/66e5302fa24bbdc7c948a79ee2422cae688b982f/src/Graphics/IxShader/Qualifiers.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # # LANGUAGE RankNTypes # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeInType # # LANGUAGE TypeOperators # # OPTIONS_G...
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE FlexibleInstances # # LANGUAGE GADTs # # LANGUAGE MultiParamTypeClasses # # LANGUAGE PolyKinds # # LANGUAGE RebindableSyntax # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances ...
679d173536b55be6ea5751cbf08da7f8e9f05f725ca4f0fac7dd20a08cbbc88f
chovencorp/erlangzmq
erlangzmq_bind.erl
@copyright 2016 Choven Corp. %% This file is part of erlangzmq . %% erlangzmq 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 , or %% (at your option) any later v...
null
https://raw.githubusercontent.com/chovencorp/erlangzmq/2be5c3b36dd78b010d1790a8f74ae2e823f5a424/src/erlangzmq_bind.erl
erlang
(at your option) any later version. erlangzmq is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. @doc ZeroMQ Listener for new connect...
@copyright 2016 Choven Corp. This file is part of erlangzmq . erlangzmq 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 , or You should have received a copy of ...
994e0d0676c55b7242cf6e1a8ab2bec8c0786362d3ffae99ffa5efda235ec2c2
con-kitty/categorifier
Integration.hs
# LANGUAGE ApplicativeDo # # LANGUAGE MagicHash # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # {-# LANGUAGE StrictData #-} {-# LANGUAGE TemplateHaskellQuotes #-} # LANGUAGE TupleSections # # LANGUAGE ViewPatterns # module Categorifier.LinearBase.Integration ( makerMapF...
null
https://raw.githubusercontent.com/con-kitty/categorifier/d8dc1106c4600c2168889519d2c3f843db2e9410/integrations/linear-base/integration/Categorifier/LinearBase/Integration.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # # LANGUAGE TemplateHaskellQuotes # @newtype@-derived instances. from: (\n -> curry {{u}}) :: n -> a1 -> a2 -> b to: curry (curry (uncurry (categorify n {{u}}) . assoc)) :: n `k` (a1 -> a2 -> b) from: (\n -> uncurry {{u}}) :: n -> (a1, a2) -> b to:...
# LANGUAGE ApplicativeDo # # LANGUAGE MagicHash # # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # # LANGUAGE TupleSections # # LANGUAGE ViewPatterns # module Categorifier.LinearBase.Integration ( makerMapFun, symbolLookup, ) where import Categorifier.Core.MakerMap ( MakerMapFun, SymbolLookup (...
a316831bd553768ec2923873972f0766c18011f60764d4b35a223fd95861d6d8
mirage/ocaml-git
object_graph.mli
* Copyright ( c ) 2013 - 2017 < > * and < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVID...
null
https://raw.githubusercontent.com/mirage/ocaml-git/37c9ef41944b5b19117c34eee83ca672bb63f482/src/git/object_graph.mli
ocaml
* [keys graph] returns all hashes recheables in the graph [graph]. * [of_keys store] makes a new graph from all values of a [store]. * [of_commits store] makes a new graph from all commits of a [store].
* Copyright ( c ) 2013 - 2017 < > * and < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVID...
fad88d38fe44fae37a377663bbe80a97db5894f3e0ddfe5aa5dbb4c983a6898b
dgtized/shimmers
index.cljs
(ns shimmers.view.index (:require [clojure.set :as set] [clojure.string :as str] [reagent.core :as r] [reitit.frontend.easy :as rfe] [shimmers.view.sketch :as view-sketch])) (defn sketch-title [sketch] (->> [(when-let [created-at (:created-at sketch)] (subs (.toISOString (js/Date. created-...
null
https://raw.githubusercontent.com/dgtized/shimmers/f096c20d7ebcb9796c7830efcd7e3f24767a46db/src/shimmers/view/index.cljs
clojure
FIXME: links are *always* fresh now since the seed is baked in -US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat
(ns shimmers.view.index (:require [clojure.set :as set] [clojure.string :as str] [reagent.core :as r] [reitit.frontend.easy :as rfe] [shimmers.view.sketch :as view-sketch])) (defn sketch-title [sketch] (->> [(when-let [created-at (:created-at sketch)] (subs (.toISOString (js/Date. created-...
a646f92929345cf0b00c0aae714a5f0d56e7cc66f9c99edb21f10fce6683a424
Chris00/ocaml-interval
main.ml
open Interval_intel Standard Griewank function without rotation matrix , very easy to maximize let dim = 7 let highbound = 600.0 let lowbound = -. 400.0 let precisionx = 0.01 let precisionfx = 0.0001 let start_inter = Array.init dim (function _i -> {low=lowbound;high=highbound}) let griewank_x v = let s1 = re...
null
https://raw.githubusercontent.com/Chris00/ocaml-interval/afee6e940837c9e3c690624ca2d7abbdee3c3ffb/examples/B_AND_B/main.ml
ocaml
open Interval_intel Standard Griewank function without rotation matrix , very easy to maximize let dim = 7 let highbound = 600.0 let lowbound = -. 400.0 let precisionx = 0.01 let precisionfx = 0.0001 let start_inter = Array.init dim (function _i -> {low=lowbound;high=highbound}) let griewank_x v = let s1 = re...
f73e77732df41092a522966552c0fb581d216619d82e9bb3891d372dcf8aa36a
milgra/cljs-brawl
buffers.cljs
(ns cljs-webgl.buffers (:require [cljs-webgl.context :as context] [cljs-webgl.typed-arrays :as ta] [cljs-webgl.constants.capability :as capability] [cljs-webgl.constants.clear-buffer-mask :as clear-buffer] [cljs-webgl.constants.buffer-object :as buffer-object] [cljs-webgl.constants.texture-tar...
null
https://raw.githubusercontent.com/milgra/cljs-brawl/e03cf6f032b1af0f6e38396e43e739f83446a3e4/src/cljs_webgl/buffers.cljs
clojure
(ns cljs-webgl.buffers (:require [cljs-webgl.context :as context] [cljs-webgl.typed-arrays :as ta] [cljs-webgl.constants.capability :as capability] [cljs-webgl.constants.clear-buffer-mask :as clear-buffer] [cljs-webgl.constants.buffer-object :as buffer-object] [cljs-webgl.constants.texture-tar...
b89d4761c0634ab3f604ebfe9cc63516a23b81bbb80f4b853380cd7f43c12a64
erlangonrails/devdb
couch_task_status.erl
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not % use this file except in compliance with the License. You may obtain a copy of % the License at % % -2.0 % % Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an " A...
null
https://raw.githubusercontent.com/erlangonrails/devdb/0e7eaa6bd810ec3892bfc3d933439560620d0941/dev/apache-couchdb-0.11.1/src/couchdb/couch_task_status.erl
erlang
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 WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations...
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not distributed under the License is distributed on an " AS IS " BASIS , WITHOUT -module(couch_task_status). -behaviour(gen_server). Long running tasks register ( ) then update their status ( update/1 ) -export([start_link/0, stop/0...
879bd052f534926c786092e7c6cac6da2a6fd0242c6020aa489b5386bd0e5f57
TrustInSoft/tis-interpreter
GuiGoal.mli
Modified by TrustInSoft (**************************************************************************) (* *) This file is part of WP plug - in of Frama - C. (* ...
null
https://raw.githubusercontent.com/TrustInSoft/tis-interpreter/33132ce4a825494ea48bf2dd6fd03a56b62cc5c3/src/plugins/wp/GuiGoal.mli
ocaml
************************************************************************ alternatives) ...
Modified by TrustInSoft This file is part of WP plug - in of Frama - C. Copyright ( C ) 2007 - 2015 CEA ( Commissariat a l'energie atomique et aux energies Lesser General Public License as published by the Free Soft...
eb23afab5a942adc050870d05c433fd770c2c9e40c19ccb99ccbde03d06e1977
lijunsong/pollen-rock
get-contents-handler.rkt
#lang racket ;;; API: get filesystem contents (list directory or get file contents) (require "../http-util.rkt") (require "../logger.rkt") (require json) (require web-server/http/request-structs) (provide get-contents-handler) ;; return spec for file operation (define/contract (get-contents-answer errno [mtime 0]...
null
https://raw.githubusercontent.com/lijunsong/pollen-rock/8107c7c1a1ca1e5ab125650f38002683b15b22c9/pollen-rock/handlers/get-contents-handler.rkt
racket
API: get filesystem contents (list directory or get file contents) return spec for file operation select matched handler from `handler-map` to respond to the `req`. I have to inline the filter. See comments in static-file-handler
#lang racket (require "../http-util.rkt") (require "../logger.rkt") (require json) (require web-server/http/request-structs) (provide get-contents-handler) (define/contract (get-contents-answer errno [mtime 0] [items false] [contents false]) (->* (integer?) (integer? (or/c list? false) (or/c string? false)) jse...
2e0b2cd7e06e752e9f12ebc077055403d5404360b7dc7c651520c87d1ffecc28
brendanhay/gogol
Patch.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/77394c4e0f5bd729e6fe27119701c45f9d5e1e9a/lib/services/gogol-cloudprivatecatalogproducer/gen/Gogol/CloudPrivateCatalogProducer/Catalogs/Products/Patch.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Stability : auto-generated Updates a specific Product resource. * Resource ** Constructing a Request | A resource alias for @cloudprivatecatalogproducer.catalogs.products.patch@ method which the 'CloudPrivateCatalogProducerCatalogsProductsPatch' reques...
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators...
2f4d413def326b6ffd5d31a6d9d6d9f168096c42066000e0ee95c23ae7e4a5c2
racket/gui
const.rkt
#lang racket/base (provide (except-out (all-defined-out) <<)) (define GTK_WINDOW_TOPLEVEL 0) (define GTK_WINDOW_POPUP 1) (define << arithmetic-shift) (define GDK_EXPOSURE_MASK (1 . << . 1)) (define GDK_POINTER_MOTION_MASK (1 . << . 2)) (define GDK_POINTER_MOTION_HINT_MASK (1 . << . 3)) (define GDK_BUTTON_MOTION_MAS...
null
https://raw.githubusercontent.com/racket/gui/d1fef7a43a482c0fdd5672be9a6e713f16d8be5c/gui-lib/mred/private/wx/gtk/const.rkt
racket
added in v3.4
#lang racket/base (provide (except-out (all-defined-out) <<)) (define GTK_WINDOW_TOPLEVEL 0) (define GTK_WINDOW_POPUP 1) (define << arithmetic-shift) (define GDK_EXPOSURE_MASK (1 . << . 1)) (define GDK_POINTER_MOTION_MASK (1 . << . 2)) (define GDK_POINTER_MOTION_HINT_MASK (1 . << . 3)) (define GDK_BUTTON_MOTION_MAS...
27349b47e36b19d086043d20028da55c4519fc341c22ad938a1d349b4e78e637
CarlosMChica/HaskellBook
Main.hs
module Main where import Lib import System.IO main :: IO () main = do hSetBuffering stdout NoBuffering word <- randomWord' runGame $ freshPuzzle word
null
https://raw.githubusercontent.com/CarlosMChica/HaskellBook/86f82cf36cd00003b1a1aebf264e4b5d606ddfad/chapter14/hangman/app/Main.hs
haskell
module Main where import Lib import System.IO main :: IO () main = do hSetBuffering stdout NoBuffering word <- randomWord' runGame $ freshPuzzle word
585b2cad572bb77e1e508deb2e52189be5a25102cffe1c7cb592c2a44c8cd200
dbuenzli/remat
locv.mli
--------------------------------------------------------------------------- Copyright ( c ) 2015 . All rights reserved . Distributed under the BSD3 license , see license at the end of the file . % % NAME%% release % % --------------------------------------------------------------------------- Cop...
null
https://raw.githubusercontent.com/dbuenzli/remat/28d572e77bbd1ad46bbfde87c0ba8bd0ab99ed28/src-www/locv.mli
ocaml
* Localized values and messages. * The type for localized values of type ['a]. Localized value bind language {{!Lang.range}ranges} to values. * [v value] is an empty localized value. * [is_empty lv] is [true] iff [lv] is empty. * [add lv r v] is [lv] with [r] bound to [v]. * [rem lv r] is [lv] without [r]'s bi...
--------------------------------------------------------------------------- Copyright ( c ) 2015 . All rights reserved . Distributed under the BSD3 license , see license at the end of the file . % % NAME%% release % % --------------------------------------------------------------------------- Cop...
3d5c33b724eac9ade898188129d42820cc5f98ecc79b2e3637650973007d4794
erlang/otp
tftp_binary.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2005 - 2023 . All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applic...
null
https://raw.githubusercontent.com/erlang/otp/2b397d7e5580480dc32fa9751db95f4b89ff029e/lib/tftp/src/tftp_binary.erl
erlang
%CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific l...
Copyright Ericsson AB 2005 - 2023 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , Author : < > Created : 24 May 2004 by < > -module(tftp_binary). Interface -behaviour(tftp). -expor...
240baad01ff5463e032a467b33008321a115ed9ec3ae93a65985ec26a00feec9
pavankumarbn/DroneGUIROS
_package_SetStayTime.lisp
(cl:in-package tum_ardrone-srv) (cl:export '(DURATION-VAL DURATION STATUS-VAL STATUS ))
null
https://raw.githubusercontent.com/pavankumarbn/DroneGUIROS/745320d73035bc50ac4fea2699e22586e10be800/devel/share/common-lisp/ros/tum_ardrone/srv/_package_SetStayTime.lisp
lisp
(cl:in-package tum_ardrone-srv) (cl:export '(DURATION-VAL DURATION STATUS-VAL STATUS ))
134d8d87816410deac7b1d83929c661bf687a4be0d13590e554c924ece1f6204
uim/sigscheme
bench-case.scm
(define loop (lambda (i l) (case 6 ((1 2 3 4 5) #f) ((6) (if (< i l) (loop (+ 1 i) l) l))))) (write (loop 0 20000)) (newline)
null
https://raw.githubusercontent.com/uim/sigscheme/ccf1f92d6c2a0f45c15d93da82e399c2a78fe5f3/bench/bench-case.scm
scheme
(define loop (lambda (i l) (case 6 ((1 2 3 4 5) #f) ((6) (if (< i l) (loop (+ 1 i) l) l))))) (write (loop 0 20000)) (newline)
59566a67910e0f4e085edb95039c22779935294a4b2ad51198b58d44eca3412d
haskell-mafia/projector
Template.hs
{-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE DeriveFoldable # # LANGUAGE DeriveFunctor # # LANGUAGE DeriveGeneric # {-# LANGUAGE DeriveTraversable #-} # LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} module Projector.Html.Data.Template ( Template (..) -- * AST internals -- ** Type signatures ...
null
https://raw.githubusercontent.com/haskell-mafia/projector/6af7c7f1e8a428b14c2c5a508f7d4a3ac2decd52/projector-html/src/Projector/Html/Data/Template.hs
haskell
# LANGUAGE DeriveDataTypeable # # LANGUAGE DeriveTraversable # # LANGUAGE OverloadedStrings # * AST internals ** Type signatures ** Html ** Expressions ** Strings
# LANGUAGE DeriveFoldable # # LANGUAGE DeriveFunctor # # LANGUAGE DeriveGeneric # # LANGUAGE NoImplicitPrelude # module Projector.Html.Data.Template ( Template (..) , TTypeSig (..) , setTTypeSigAnnotation , TType (..) , setTTypeAnnotation , THtml (..) , TNode (..) , TAttribute (..) , TAttrValue (..)...
dca3a7364e852cbb9ae6b3443f16e8da30edaf14597c88dc2aa728e3424699f2
droundy/iolaus-broken
Plumbing.hs
# LANGUAGE CPP # #include "gadts.h" module Git.Plumbing ( Hash, mkHash, Tree, Commit, Blob(Blob), Tag, emptyCommit, catBlob, hashObject, committer, uname, catTree, TreeEntry(..), catCommit, catCommitRaw, CommitEntry(..), catCommitT...
null
https://raw.githubusercontent.com/droundy/iolaus-broken/e40c001f3c5a106bf39f437d6349858e7e9bf51e/Git/Plumbing.hs
haskell
| like `remoteHeads`, but tries to avoid using the network if possible. There is a danger is that if we never pull or push from repo, then the refs/remotes/repo/master* might never be updated. This forkIO addresses that. show-ref fails if there are no tags failure may mean an empty repository | FIXME: I belie...
# LANGUAGE CPP # #include "gadts.h" module Git.Plumbing ( Hash, mkHash, Tree, Commit, Blob(Blob), Tag, emptyCommit, catBlob, hashObject, committer, uname, catTree, TreeEntry(..), catCommit, catCommitRaw, CommitEntry(..), catCommitT...
0dbd9e10adc0c9e95f063f2d6c124e38c3afed3fe40ac4249541905d39b3c97f
NorfairKing/smos
CompatibilitySpec.hs
module Smos.Data.CompatibilitySpec (spec) where import Control.Monad import Data.ByteString (ByteString) import qualified Data.ByteString as SB import Data.SemVer as Version import qualified Data.Set as S import Path.IO import Smos.Data import System.FilePath import Test.Syd import Test.Syd.Validity spec :: Spec spec...
null
https://raw.githubusercontent.com/NorfairKing/smos/f72b26c2e66ab4f3ec879a1bedc6c0e8eeb18a01/smos-data-gen/test/Smos/Data/CompatibilitySpec.hs
haskell
module Smos.Data.CompatibilitySpec (spec) where import Control.Monad import Data.ByteString (ByteString) import qualified Data.ByteString as SB import Data.SemVer as Version import qualified Data.Set as S import Path.IO import Smos.Data import System.FilePath import Test.Syd import Test.Syd.Validity spec :: Spec spec...
032016f9acc047155bae7385783ca0e01bbb0f2eac7ef2f8623ce5ff5b7c0e44
synduce/Synduce
sumevens.ml
* @synduce -s 2 -NB type 'a clist = | CNil | Single of 'a | Concat of 'a clist * 'a clist type 'a list = | Nil | Cons of 'a * 'a list let rec spec = function | Nil -> 0 | Cons (hd, tl) -> (if hd mod 2 = 0 then hd else 0) + spec tl ;; let rec target = function | CNil -> [%synt s0] | Single a -> [%s...
null
https://raw.githubusercontent.com/synduce/Synduce/42d970faa863365f10531b19945cbb5cfb70f134/benchmarks/incomplete/list/sumevens.ml
ocaml
* @synduce -s 2 -NB type 'a clist = | CNil | Single of 'a | Concat of 'a clist * 'a clist type 'a list = | Nil | Cons of 'a * 'a list let rec spec = function | Nil -> 0 | Cons (hd, tl) -> (if hd mod 2 = 0 then hd else 0) + spec tl ;; let rec target = function | CNil -> [%synt s0] | Single a -> [%s...
c834b88249a31d2ffba1a1ae55bb0a24925d63ef8b2dfbb452f980fc49dc3a05
cesquivias/rash
info.rkt
#lang info (define collection "rash") (define deps '("base" "rackunit-lib")) (define build-deps '("scribble-lib" "racket-doc")) (define scribblings '()) (define pkg-desc "A *nix shell written in Racket") (define version "0.0") (define pkg-authors '("Cristian Esquivias"))
null
https://raw.githubusercontent.com/cesquivias/rash/91e181b00e09ea44dd6cb89949e13712c73690fb/info.rkt
racket
#lang info (define collection "rash") (define deps '("base" "rackunit-lib")) (define build-deps '("scribble-lib" "racket-doc")) (define scribblings '()) (define pkg-desc "A *nix shell written in Racket") (define version "0.0") (define pkg-authors '("Cristian Esquivias"))
fb044e437778845af678e612bc6561cef3a8de496e5928926111a2c5e5417eb3
lem-project/lem
lem-webview.lisp
(defpackage :lem-webview (:use :cl :lem :lem-jsonrpc :lem-electron-backend :parenscript) (:export :webview-open)) (in-package :lem-webview) (define-command webview-open (url) ("sUrl: ") (js-eval (gen-webview-html)) (notify "webview-open" (alexandria:plist-hash-table `("url" ,url) ...
null
https://raw.githubusercontent.com/lem-project/lem/4f620f94a1fd3bdfb8b2364185e7db16efab57a1/frontends/electron/webview/lem-webview.lisp
lisp
(defpackage :lem-webview (:use :cl :lem :lem-jsonrpc :lem-electron-backend :parenscript) (:export :webview-open)) (in-package :lem-webview) (define-command webview-open (url) ("sUrl: ") (js-eval (gen-webview-html)) (notify "webview-open" (alexandria:plist-hash-table `("url" ,url) ...
60623b7a0a0896b5551ae077f590fd68463eb6284df952b42ecd9e388ece0bc3
active-group/reacl-c
wc.cljs
(ns reacl-c.main.wc "Functions to define items as a web component. Any function that takes an attribute map as the first argument and returns an item, is a simple web component. Methods, properties and several other settings can be added to a web component with the functions in this namespace. Then, it can b...
null
https://raw.githubusercontent.com/active-group/reacl-c/b8f550a290f0d6a20d4c880390480e76a6217901/src/reacl_c/main/wc.cljs
clojure
Note: extending existing elements, as well as having custom elements with child markup, is probably not what people want to do One might want to use a different web-component library for that. options :bubbles, :cancelable, :composed, :detail we want the user to just emit an effect (dispatch event), so we have t...
(ns reacl-c.main.wc "Functions to define items as a web component. Any function that takes an attribute map as the first argument and returns an item, is a simple web component. Methods, properties and several other settings can be added to a web component with the functions in this namespace. Then, it can b...
a1b590a38045849233e54ea15f6c53f985de81d6450bc5a2e5693c37c67bb36b
jackfirth/syntax-warn
filter-index.rkt
#lang racket/base (provide filter/index-result) (module+ test (require rackunit)) (define (filter/index-result p vs) (for/list ([v vs] [i (in-naturals)] #:when (p v)) (list i v))) (module+ test (check-equal? (filter/index-result string? '(1 2 a "b" c "dee" 5 6 "foooo")) '((3 "b") (5 "dee")...
null
https://raw.githubusercontent.com/jackfirth/syntax-warn/f17fdd3179aeab8e5275a24e7d091d3ca42960a9/syntax-warn-base/warn/private/filter-index.rkt
racket
#lang racket/base (provide filter/index-result) (module+ test (require rackunit)) (define (filter/index-result p vs) (for/list ([v vs] [i (in-naturals)] #:when (p v)) (list i v))) (module+ test (check-equal? (filter/index-result string? '(1 2 a "b" c "dee" 5 6 "foooo")) '((3 "b") (5 "dee")...
c26316abcf9fe8b532fc61b62caf49ec0fb586ed2937837e7c4057c3d2b2977e
TokTok/hs-toxcore
CombinedKeySpec.hs
# LANGUAGE StrictData # # LANGUAGE Trustworthy # module Network.Tox.Crypto.CombinedKeySpec where import Test.Hspec import Test.QuickCheck import qualified Network.Tox.Crypto.CombinedKey as CombinedKey import Network.Tox.Crypto.KeyPair (KeyPair (..)) spec :: Spec spec = describe...
null
https://raw.githubusercontent.com/TokTok/hs-toxcore/647c3070cab29aee3d795a456be534d77c167d81/test/Network/Tox/Crypto/CombinedKeySpec.hs
haskell
# LANGUAGE StrictData # # LANGUAGE Trustworthy # module Network.Tox.Crypto.CombinedKeySpec where import Test.Hspec import Test.QuickCheck import qualified Network.Tox.Crypto.CombinedKey as CombinedKey import Network.Tox.Crypto.KeyPair (KeyPair (..)) spec :: Spec spec = describe...
468d8ed1debab5bcd08f9dcf1998e24723b623bc2172fa7d9982490be93b1685
mzp/coq-for-ipad
rawwidget.ml
(***********************************************************************) (* *) MLTk , Tcl / Tk interface of Objective Caml (* *) , , and ...
null
https://raw.githubusercontent.com/mzp/coq-for-ipad/4fb3711723e2581a170ffd734e936f210086396e/src/ocaml-3.12.0/otherlibs/labltk/support/rawwidget.ml
ocaml
********************************************************************* described in file LICENSE found in the...
MLTk , Tcl / Tk interface of Objective Caml , , and projet Cristal , INRIA Rocquencourt , Kyoto University RIMS Copyright 2002 Institut National de Recherche en Informatique et en Automatique and...
1878382d8e9c8a4311255184236f70eefd0aec0d3065aac90e226210f7692af5
juji-io/datalevin
issues.cljc
(ns datalevin.test.issues (:require [datalevin.core :as d] [datalevin.test.core :as tdc :refer [db-fixture]] [clojure.test :refer [deftest testing is use-fixtures]] [datalevin.util :as u])) (use-fixtures :each db-fixture) (deftest ^{:doc "CLJS `apply` + `vector` will hold onto mutable array of arguments...
null
https://raw.githubusercontent.com/juji-io/datalevin/3a1fccc3cb40531901d51719216fdce3b1aa3483/test/datalevin/test/issues.cljc
clojure
(ns datalevin.test.issues (:require [datalevin.core :as d] [datalevin.test.core :as tdc :refer [db-fixture]] [clojure.test :refer [deftest testing is use-fixtures]] [datalevin.util :as u])) (use-fixtures :each db-fixture) (deftest ^{:doc "CLJS `apply` + `vector` will hold onto mutable array of arguments...
77ba1ad566d5b89f5b4ebb1fe727a968a48d0913489d6ae2689586b503416e5e
melvinzhang/bit-scheme
eiod.scm
eiod.scm : eval - in - one - define $ I d : eiod.scm , v 1.17 2005/03/26 19:57:44 al Exp $ ;; A minimal implementation of r5rs eval, null-environment, and ;; scheme-report-environment. (And SRFI-46 extensions, too.) Copyright 2002 , 2004 , 2005 < > ;; You may redistribute and/or modify this software under ...
null
https://raw.githubusercontent.com/melvinzhang/bit-scheme/b6d367cbc8fbfc42e00d310e2a97d263c38694af/eiod.scm
scheme
A minimal implementation of r5rs eval, null-environment, and scheme-report-environment. (And SRFI-46 extensions, too.) You may redistribute and/or modify this software under the terms of either version 2 , or ( at your option ) any later version. Feel free to ask me for different licensing terms. DISCLAIMER: ...
eiod.scm : eval - in - one - define $ I d : eiod.scm , v 1.17 2005/03/26 19:57:44 al Exp $ Copyright 2002 , 2004 , 2005 < > the GNU General Public License as published by the Free Software simple , working example of one way to implement the r5rs macro symbol naming a builtin , or a transformer...
ccfdc68aabfb4d90e8dc66a8ed06fdde35f0c2f85f04c6607a2e75455349266b
noinia/hgeometry
Reader.hs
# LANGUAGE UndecidableInstances # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # module Ipe.Reader ( -- * Reading ipe Files readRawIpeFile , readIpeFile , readSinglePageFile , readSinglePageFileThrow , ConversionError -- * Readiing ipe style files , readIpeStylesheet , addStyleS...
null
https://raw.githubusercontent.com/noinia/hgeometry/89cd3d3109ec68f877bf8e34dc34b6df337a4ec1/hgeometry-ipe/src/Ipe/Reader.hs
haskell
# LANGUAGE OverloadedStrings # * Reading ipe Files * Readiing ipe style files * Reading XML directly * Read classes * Some low level implementation functions ------------------------------------------------------------------------------ | Given a file path, tries to read an ipe file | Given a file path, tries to...
# LANGUAGE UndecidableInstances # # LANGUAGE ScopedTypeVariables # module Ipe.Reader readRawIpeFile , readIpeFile , readSinglePageFile , readSinglePageFileThrow , ConversionError , readIpeStylesheet , addStyleSheetFrom , fromIpeXML , readXML , IpeReadText(..) , IpeRead(..) , IpeReadAttr(..) ...
25df0ec56548565bec3eccd0a70619794e82e6ddbd0d7dc127bfdab332e28c24
mstksg/backprop
Internal.hs
# LANGUAGE BangPatterns # {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} # LANGUAGE EmptyCase # {-# LANGUAGE FlexibleContexts #-} # LANGUAGE FlexibleInstances # # LANGUAGE GADTs # {-# LANGUAGE LambdaCase #-} # LANGUAGE MultiPara...
null
https://raw.githubusercontent.com/mstksg/backprop/e8962c2029476c7721c5f5488e8689737294ceee/src/Numeric/Backprop/Internal.hs
haskell
# LANGUAGE DeriveDataTypeable # # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # # LANGUAGE RankNTypes # # LANGUAGE ScopedTypeVariables # # LANGUAGE StandaloneDeriving # # LANGUAGE TypeInType # # LANGUAGE TypeOperators # | M...
# LANGUAGE BangPatterns # # LANGUAGE EmptyCase # # LANGUAGE FlexibleInstances # # LANGUAGE GADTs # # LANGUAGE MultiParamTypeClasses # # LANGUAGE RecordWildCards # # LANGUAGE TupleSections # # LANGUAGE TypeApplications # # LANGUAGE ViewPatterns ...
7e8cd3dca862df4ed8f9caa9f792259ab6414562379c93bc2dba5c332e7ffb28
clojure/core.typed
datatype_ancestor_env.clj
Copyright ( c ) , contributors . ;; The use and distribution terms for this software are covered by the ;; Eclipse Public License 1.0 (-1.0.php) ;; which can be found in the file epl-v10.html at the root of this distribution. ;; By using this software in any fashion, you are agreeing to be bound by ;...
null
https://raw.githubusercontent.com/clojure/core.typed/f5b7d00bbb29d09000d7fef7cca5b40416c9fa91/typed/checker.jvm/src/clojure/core/typed/checker/datatype_ancestor_env.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
Copyright ( c ) , contributors . (ns ^:skip-wiki clojure.core.typed.checker.datatype-ancestor-env (:require [clojure.core.typed.checker.utils :as u] [clojure.core.typed.contract-utils :as con] [clojure.core.typed.checker.type-rep :as r] [clojure.core.typed.checker.type-...
3cb576a15f0407e15109ad3562b26588708c58fcc7d2752e4c04a9727b5a440a
qfpl/ban-instance
Spec.hs
{-# OPTIONS_GHC -Wno-unused-matches -Wno-unused-top-binds #-} {-# LANGUAGE DataKinds #-} # LANGUAGE FunctionalDependencies # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE RankNTypes #-} {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE TypeFamilies #-} # LANGUAGE UndecidableIn...
null
https://raw.githubusercontent.com/qfpl/ban-instance/fa47713251ba76ceaef92407c2ed3a6acf635182/test/Spec.hs
haskell
# OPTIONS_GHC -Wno-unused-matches -Wno-unused-top-binds # # LANGUAGE DataKinds # # LANGUAGE RankNTypes # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # Test code generation. We define a class and ban an instance of it, checking that the generated code throws no warnin...
# LANGUAGE FunctionalDependencies # # LANGUAGE MultiParamTypeClasses # # LANGUAGE UndecidableInstances # import Language.Haskell.Instance.Ban class TestClass a b | a -> b where testFunction :: a -> b $(banInstance [t|TestClass Char Int|] "because it's really bad") instance TestClass Int Int where testFun...
48f934395e96e2f688f92caa463e357aff19e02b7d1b3b19ed53e6194adece4b
cbaggers/cepl
touch.lisp
the touch function will nudge a gpu asset and print some metadata . ;; For pipelines it will trigger the upload if this hasnt already happened. ;; For everything (including pipelines) it will check the validity of the ;; gl object in some way. ;; print the metadata & return the metadata in some form
null
https://raw.githubusercontent.com/cbaggers/cepl/d1a10b6c8f4cedc07493bf06aef3a56c7b6f8d5b/core/protocode/touch.lisp
lisp
For pipelines it will trigger the upload if this hasnt already happened. For everything (including pipelines) it will check the validity of the gl object in some way. print the metadata & return the metadata in some form
the touch function will nudge a gpu asset and print some metadata .
f362a5afbad2d0bb6bed775be05f1c24963290d8a69b03f8af77065a317bb22b
macourtney/drift
core.clj
(ns drift.core (:import [java.io File] [java.util Comparator TreeSet]) (:require [clojure.string :as string] [clojure.tools.logging :as logging] [clojure.tools.loading-utils :as loading-utils] [drift.config :as config])) (defn #^{ :doc "Runs the init function with the...
null
https://raw.githubusercontent.com/macourtney/drift/b5cf735ab41ff2c95b0b1d9cf990faa342353171/src/drift/core.clj
clojure
(ns drift.core (:import [java.io File] [java.util Comparator TreeSet]) (:require [clojure.string :as string] [clojure.tools.logging :as logging] [clojure.tools.loading-utils :as loading-utils] [drift.config :as config])) (defn #^{ :doc "Runs the init function with the...
73e5375e2334eb850382bece0e0d6ad4817cba32b19ee11e62a551b01b44c6ba
Decentralized-Pictures/T4L3NT
test_pattern_matching_input.ml
let _ = let x = Some 1 in match[@time.duration pattern_matching] x with Some a -> a | None -> 2
null
https://raw.githubusercontent.com/Decentralized-Pictures/T4L3NT/6d4d3edb2d73575384282ad5a633518cba3d29e3/src/lib_time_measurement/ppx/test/valid/test_pattern_matching_input.ml
ocaml
let _ = let x = Some 1 in match[@time.duration pattern_matching] x with Some a -> a | None -> 2
12072772c17e0be763715a271caaf011b6f8174ebb060dd804272aae4c4632f3
gfngfn/otfed
encodeName.ml
open Basic open EncodeBasic open EncodeOperation.Open type relative_offset = int type name_record_and_offset = Value.Name.name_record * relative_offset Makes ( possibly a portion of ) string storage from NameRecords . The offsets in return values are relative to the beggining of the string storage . T...
null
https://raw.githubusercontent.com/gfngfn/otfed/3c6d8ea0b05fc18a48cb423451da7858bf73d1d0/src/encodeName.ml
ocaml
Here, `reloffset` is relative to the beginning of the string storage. Here, `reloffset` is relative to the end of the area of the string storage where names are stored. format number format number
open Basic open EncodeBasic open EncodeOperation.Open type relative_offset = int type name_record_and_offset = Value.Name.name_record * relative_offset Makes ( possibly a portion of ) string storage from NameRecords . The offsets in return values are relative to the beggining of the string storage . T...
ae9ec99872d7e6be238785a460a88d8454f87535240c2cbae50d445b3c1a68ad
input-output-hk/cardano-ledger
ShelleyEraGen.hs
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE NamedFieldPuns # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # # OPTIONS_GHC -fno - warn - orphans # module Test.Cardano.Ledger.Shelley.Generator.ShelleyEraGen (genCoin) where i...
null
https://raw.githubusercontent.com/input-output-hk/cardano-ledger/38aa337834ccb9b5f47dbf9e81a3b986dcdd57f5/eras/shelley/test-suite/src/Test/Cardano/Ledger/Shelley/Generator/ShelleyEraGen.hs
haskell
--------------------------------------------------------------------------- -------------------------------------------------------------------------- ---------------------------------------------------------------------------} --------------------------------------------------------------------------- --------------...
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE NamedFieldPuns # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # # OPTIONS_GHC -fno - warn - orphans # module Test.Cardano.Ledger.Shelley.Generator.ShelleyEraGen (genCoin) where i...
70a65152723ad2f75f424c5cca8412b1a5e2e9fb497ade1c95c2424c48e12dc8
evincarofautumn/kitten
InstanceCheck.hs
| Module : Kitten . Description : Checking types against signatures Copyright : ( c ) , 2016 License : MIT Maintainer : Stability : experimental Portability : GHC Module : Kitten.InstanceCheck Description : Checking types against signatures Copyright : (c) Jon Purdy, 2016 L...
null
https://raw.githubusercontent.com/evincarofautumn/kitten/a5301fe24dbb9ea91974abee73ad544156ee4722/lib/Kitten/InstanceCheck.hs
haskell
# LANGUAGE OverloadedStrings # type signatures. Remember, when using this function, which way the subtyping other way around! Free.tvs tenv0 aScheme `Set.union` Free.tvs tenv0 bScheme | Skolemization replaces each quantified type variable with a type constant that unifies only with itself. TForall _ t' -> skolemi...
| Module : Kitten . Description : Checking types against signatures Copyright : ( c ) , 2016 License : MIT Maintainer : Stability : experimental Portability : GHC Module : Kitten.InstanceCheck Description : Checking types against signatures Copyright : (c) Jon Purdy, 2016 L...
bf7d0916c0065a80e495dbef1f6c6f27271579deb66d3f1c436c93b620416b8b
ldgrp/uptop
HelpView.hs
{-# LANGUAGE OverloadedStrings #-} module UI.HelpView where import Brick.Types import Brick.Widgets.Border import Brick.Widgets.Center import Brick.Widgets.Core import Lens.Micro import Types drawHelp :: State -> [Widget Name] drawHelp st = [ center $ padLeftRight 2 $ hLimit 50 $ vBox ...
null
https://raw.githubusercontent.com/ldgrp/uptop/53001b39793df4be48c9c3aed9454be0fc178434/up-top/src/UI/HelpView.hs
haskell
# LANGUAGE OverloadedStrings #
module UI.HelpView where import Brick.Types import Brick.Widgets.Border import Brick.Widgets.Center import Brick.Widgets.Core import Lens.Micro import Types drawHelp :: State -> [Widget Name] drawHelp st = [ center $ padLeftRight 2 $ hLimit 50 $ vBox [ str $ "uptop " <> st ^. ve...
ad018e60267f1b09dd0e29d1c39d559299b419ff5ed88dba6857c690b256d72d
shriram/mystery-languages
semantics.rkt
#lang racket (require mystery-languages/make-semantics) (provide (rename-out [mod-begin #%module-begin] [ti #%top-interaction])) (define-values (namespaces lang-print-names) (make-namespaces-and-lang-print-names (list 'mystery-languages/fun-calls/L1/semantics ...
null
https://raw.githubusercontent.com/shriram/mystery-languages/4683a9d0e86bbf86c44bdd84f41d9ed202c65edf/fun-calls/semantics.rkt
racket
#lang racket (require mystery-languages/make-semantics) (provide (rename-out [mod-begin #%module-begin] [ti #%top-interaction])) (define-values (namespaces lang-print-names) (make-namespaces-and-lang-print-names (list 'mystery-languages/fun-calls/L1/semantics ...
9dfcd590f1a35c5b7cb17e09e0c20d0c0d71590988b7e1c790b93e83c9ef8fa3
chiroptical/optics-by-example
Main.hs
module Main where import Lib main :: IO () main = putStrLn "Optics and Monads"
null
https://raw.githubusercontent.com/chiroptical/optics-by-example/3ee33546ee18c3a6f5510eec17a69d34e750198e/chapter13/app/Main.hs
haskell
module Main where import Lib main :: IO () main = putStrLn "Optics and Monads"
34ed38c3af7420a51761ef505639ad5f135561b0086552153df02376e4c8b6a8
rd--/hsc3
bufSampleRate.help.hs
bufSampleRate ; requires = buf ; frequency as fraction of buffer sample - rate ( ie . 48000 / 100 = = 480 ) let b = control kr "buf" 0 f = mce [bufSampleRate kr b * 0.01, 440] in sinOsc ar f 0 * 0.1 ---- ; buffer setup withSc3 (async (b_allocRead 0 (sfResolve "pf-c5.aif") 0 0))
null
https://raw.githubusercontent.com/rd--/hsc3/024d45b6b5166e5cd3f0142fbf65aeb6ef642d46/Help/Ugen/bufSampleRate.help.hs
haskell
-- ; buffer setup
bufSampleRate ; requires = buf ; frequency as fraction of buffer sample - rate ( ie . 48000 / 100 = = 480 ) let b = control kr "buf" 0 f = mce [bufSampleRate kr b * 0.01, 440] in sinOsc ar f 0 * 0.1 withSc3 (async (b_allocRead 0 (sfResolve "pf-c5.aif") 0 0))
6eb3a011bb052960e23701f45d29cd3b53c0ca77715afe63cfdeed4f19daefb8
tonyg/kali-scheme
expand.scm
Copyright ( c ) 1993 , 1994 by and . Copyright ( c ) 1998 by NEC Research Institute , Inc. See file COPYING . Expanding using the Scheme 48 expander . (define (scan-packages packages) (let ((definitions (fold (lambda (package definitions) (let ((cenv (package->environment package))) (fold...
null
https://raw.githubusercontent.com/tonyg/kali-scheme/79bf76b4964729b63fce99c4d2149b32cb067ac0/ps-compiler/prescheme/expand.scm
scheme
Copyright ( c ) 1993 , 1994 by and . Copyright ( c ) 1998 by NEC Research Institute , Inc. See file COPYING . Expanding using the Scheme 48 expander . (define (scan-packages packages) (let ((definitions (fold (lambda (package definitions) (let ((cenv (package->environment package))) (fold...
7a274ae47297c8eb0d0e6df2fe7494fa573448f000ba1f080c7437906563b3ca
vmchale/kempe
Size.hs
{-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE DeriveFunctor #-} # LANGUAGE DeriveGeneric # {-# LANGUAGE OverloadedStrings #-} -- | Frontend AST -- | This module is split out so that the bakend/IR need not depend on -- everything in 'AST'. module Kempe.AST.Size ( KempeTy (..) , StackTyp...
null
https://raw.githubusercontent.com/vmchale/kempe/23d59cb9343902aae33140e2b68ac0e4ab0a60a0/src/Kempe/AST/Size.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE DeriveFunctor # # LANGUAGE OverloadedStrings # | Frontend AST | This module is split out so that the bakend/IR need not depend on everything in 'AST'. * Sizing bits type applied to another, e.g. Just Int questionable eq instance but eh machinery for assigning a const...
# LANGUAGE DeriveGeneric # module Kempe.AST.Size ( KempeTy (..) , StackType (..) , MonoStackType , BuiltinTy (..) , ABI (..) , prettyMonoStackType , SizeEnv , S...
9c9a8bd70d8fb82ad9d385ddf73e3b9c3964fcd1a94ef2a69f5ffec010168fac
clash-lang/clash-compiler
SimIO.hs
| Copyright : ( C ) 2019 , Google Inc. , 2022 , QBayLogic B.V. License : BSD2 ( see the file LICENSE ) Maintainer : QBayLogic B.V. < > I\/O actions that are translatable to HDL Copyright : (C) 2019, Google Inc., 2022, QBayLogic B.V. ...
null
https://raw.githubusercontent.com/clash-lang/clash-compiler/ba4765139ea0728546bf934005d2d9b77e48d8c7/clash-prelude/src/Clash/Explicit/SimIO.hs
haskell
* I\/O environment for simulation * Display on stdout * End of simulation * Mutable values * File I\/O ** Reading and writing characters ** Reading strings ** Detecting the end of input ** Buffering operations ** Repositioning handles itself is unlikely to be synthesisable to a digital circuit. See 'mealyI...
| Copyright : ( C ) 2019 , Google Inc. , 2022 , QBayLogic B.V. License : BSD2 ( see the file LICENSE ) Maintainer : QBayLogic B.V. < > I\/O actions that are translatable to HDL Copyright : (C) 2019, Google Inc., 2022, QBayLogic B.V. ...
fd22012137a77cde865a85881eaa6e60b207832e6b7951a074c9fa8e1bb05b9a
cartazio/numbers
Symbolic.hs
-- | Symbolic number, i.e., these are not numbers at all, but just build -- a representation of the expressions. -- This implementation is incomplete in that it allows construction, -- but not deconstruction of the expressions. It's mainly useful for -- debugging. module Data.Number.Symbolic(Sym, var, con, subst, unSy...
null
https://raw.githubusercontent.com/cartazio/numbers/6bc3aaeea5f1802766a708522de468ed03d40051/Data/Number/Symbolic.hs
haskell
| Symbolic number, i.e., these are not numbers at all, but just build a representation of the expressions. This implementation is incomplete in that it allows construction, but not deconstruction of the expressions. It's mainly useful for debugging. | Symbolic numbers over some base type for the literals. | Cre...
module Data.Number.Symbolic(Sym, var, con, subst, unSym) where import Data.Char(isAlpha) import Data.Maybe(fromMaybe) import Data.List(sortBy) import Data.Function(on) data Sym a = Con a | App String ([a]->a) [Sym a] instance (Eq a) => Eq (Sym a) where Con x == Con x' = x == x' App f _ xs == App...