_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
292b2015ce0833fa76a1cfdd50d9eebe407aa645ea475d539618c4ebd6d2470e
shayan-najd/NativeMetaprogramming
T7171a.hs
# OPTIONS_GHC -fno - warn - redundant - constraints # # LANGUAGE FlexibleInstances # module T7171a where import Data.ByteString as B import Data.Word class Foo a b | a -> b class (Foo a b) => Bar a b | a -> b instance Foo [a] a instance Bar [a] a instance Foo ByteString Word8 instance Bar ByteString Word8 test ::...
null
https://raw.githubusercontent.com/shayan-najd/NativeMetaprogramming/24e5f85990642d3f0b0044be4327b8f52fce2ba3/testsuite/tests/typecheck/should_compile/T7171a.hs
haskell
# OPTIONS_GHC -fno - warn - redundant - constraints # # LANGUAGE FlexibleInstances # module T7171a where import Data.ByteString as B import Data.Word class Foo a b | a -> b class (Foo a b) => Bar a b | a -> b instance Foo [a] a instance Bar [a] a instance Foo ByteString Word8 instance Bar ByteString Word8 test ::...
f237764dcfe712d22765d7ecbe2b1b5d927716735598b2648804d12d43ce8eb3
rudymatela/fitspec
Utils.hs
-- | Module : Test . FitSpec . Utils Copyright : ( c ) 2015 - 2017 License : 3 - Clause BSD ( see the file LICENSE ) Maintainer : < > -- General purpose utility functions for FitSpec # LANGUAGE CPP # module Test.FitSpec.Utils ( (...) , uncurry3 , count , compositions , subsets...
null
https://raw.githubusercontent.com/rudymatela/fitspec/f67b0dfc4d7413d62e6c6f4df36df3703f2a4302/src/Test/FitSpec/Utils.hs
haskell
| | Compose composed with compose operator. > (f ... g) x y === f (g x y) f ... g = \x y -> f (g x y) | 'compositions' @bs@ returns all compositions formed by taking values of @bs@ | 'subsets' @xs@ returns the list of sublists formed by taking values of @xs@ | Check if all elements of a list is contained in an...
Module : Test . FitSpec . Utils Copyright : ( c ) 2015 - 2017 License : 3 - Clause BSD ( see the file LICENSE ) Maintainer : < > General purpose utility functions for FitSpec # LANGUAGE CPP # module Test.FitSpec.Utils ( (...) , uncurry3 , count , compositions , subsets , con...
106c556fc467fd134d6cc24ef8b64bbb197e6f45e4852494fe70635a78b1fc25
pflanze/chj-schemelib
list-util.scm
Copyright 2010 - 2018 by < > ;;; This file is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License ( GPL ) as published by the Free Software Foundation , either version 2 of the License , or ;;; (at your option) any later version. (require def...
null
https://raw.githubusercontent.com/pflanze/chj-schemelib/59ff8476e39f207c2f1d807cfc9670581c8cedd3/list-util.scm
scheme
This file is free software; you can redistribute it and/or modify (at your option) any later version. (cj-env-1 identity) cj-source, sigh (cj-env-2 xcase) ah, cycle for-each*/2, but what sense did this name have? destructuring syntax Should look into generalizing lambda-values. (with-gensym dependency cycl...
Copyright 2010 - 2018 by < > it under the terms of the GNU General Public License ( GPL ) as published by the Free Software Foundation , either version 2 of the License , or (require define-macro-star test (test-lib-1 %try-error) C srfi-1 (fixnum inc dec) (string-util-1 string-split) (im...
1bc60f58b097d728649a0fe903850b0df6c95d0cd7aa7e81225fbc4e3fa70524
imdea-software/leap
SMTExecute.ml
(***********************************************************************) (* *) LEAP (* *) , IMDEA ...
null
https://raw.githubusercontent.com/imdea-software/leap/5f946163c0f80ff9162db605a75b7ce2e27926ef/src/solvers/backend/SMTExecute.ml
ocaml
********************************************************************* ...
LEAP , IMDEA Software Institute Copyright 2011 IMDEA Software Institute Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compl...
6b7a8811ceb8aae6bb331f1b8eb3ca15062a8f7de2ee0c9437f1745f8b927709
racket/plai
test-harness.rkt
#lang scheme (require (only-in srfi/13 string-contains) plai/private/command-line) (provide plai-error test test/pred test/regexp test/exn) (provide/contract [exn:plai? (any/c . -> . boolean?)] [abridged-test-output (parameter/c boolean?)] [plai-ignore-exn-strings (parameter/c boolean?)] [plai-catch-test-...
null
https://raw.githubusercontent.com/racket/plai/164f3b763116fcfa7bd827be511650e71fa04319/plai-lib/test-harness.rkt
racket
We only catch exceptions of this type. plai-error throws such exceptions. list of all test results set to true if If the expression raises an exception, it is returned as a value, only if the exception subclasses struct:exn. Syntax forms for the test procedures make it unnecessary to enclose the expression in...
#lang scheme (require (only-in srfi/13 string-contains) plai/private/command-line) (provide plai-error test test/pred test/regexp test/exn) (provide/contract [exn:plai? (any/c . -> . boolean?)] [abridged-test-output (parameter/c boolean?)] [plai-ignore-exn-strings (parameter/c boolean?)] [plai-catch-test-...
a1985ec16b403cec5586529b7fca63a88161bbe20577ea8e0a4f2ef0aa60a1b0
clojure-interop/google-cloud-clients
CloudStorageFileSystem.clj
(ns com.google.cloud.storage.contrib.nio.CloudStorageFileSystem "Google Cloud Storage FileSystem implementation." (:refer-clojure :only [require comment defn ->]) (:import [com.google.cloud.storage.contrib.nio CloudStorageFileSystem])) (def *-uri-scheme "Static Constant. type: java.lang.String" CloudStora...
null
https://raw.githubusercontent.com/clojure-interop/google-cloud-clients/80852d0496057c22f9cdc86d6f9ffc0fa3cd7904/com.google.cloud.storage/src/com/google/cloud/storage/contrib/nio/CloudStorageFileSystem.clj
clojure
(ns com.google.cloud.storage.contrib.nio.CloudStorageFileSystem "Google Cloud Storage FileSystem implementation." (:refer-clojure :only [require comment defn ->]) (:import [com.google.cloud.storage.contrib.nio CloudStorageFileSystem])) (def *-uri-scheme "Static Constant. type: java.lang.String" CloudStora...
cb183a42b275dbe2e76c9a6cf4cd97f790d80d46625cad8445ba79a2308671f7
manuel-serrano/hop
json.scm
;*=====================================================================*/ * serrano / prgm / project / hop/3.5.x / hopscript / json.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation : ...
null
https://raw.githubusercontent.com/manuel-serrano/hop/387e84e0b41c27996f64cc1472b255b4de713432/hopscript/json.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ * -international.org/ecma...
* serrano / prgm / project / hop/3.5.x / hopscript / json.scm * / * Author : * / * Creation : Fri Sep 20 10:47:16 2013 * / * Last change : Fri Mar 4 13:01:42 2022 ( serrano ) * / * Copyr...
5fd02e733d03b9a086ad18f3aedfa81508a5621090c8ab850e4974db0713c47c
propan/geheimtur
url_test.clj
(ns geheimtur.util.url-test (:require [clojure.test :refer :all ] [geheimtur.util.url :refer :all ])) (deftest relative-test (are [res url] (= res (relative? url)) true "/" true "/../../test" true "./../test" true "" false "" false "-evil.com/test")) (deftest get-query-test (...
null
https://raw.githubusercontent.com/propan/geheimtur/bae0b1f69182289a92813ddc42db0604e53c99af/test/geheimtur/util/url_test.clj
clojure
(ns geheimtur.util.url-test (:require [clojure.test :refer :all ] [geheimtur.util.url :refer :all ])) (deftest relative-test (are [res url] (= res (relative? url)) true "/" true "/../../test" true "./../test" true "" false "" false "-evil.com/test")) (deftest get-query-test (...
156ebd1891ba875277d12191c04234855e46ac406a629ff357570b350fa1e0c9
onedata/op-worker
qos_status_model.erl
%%%------------------------------------------------------------------- @author ( C ) 2021 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . %%% @end %%%------------------------------------------------------------------- %%% @doc Module responsible for managing QoS ...
null
https://raw.githubusercontent.com/onedata/op-worker/b09f05b6928121cec4d6b41ce8037fe056e6b4b3/src/modules/datastore/models/qos/qos_status/qos_status_model.erl
erlang
------------------------------------------------------------------- @end ------------------------------------------------------------------- @doc For more details consult `qos_status` module doc. @end ------------------------------------------------------------------- API datastore_model callbacks ===============...
@author ( C ) 2021 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . Module responsible for managing QoS status persistent model . -module(qos_status_model). -author("Michal Stanisz"). -include("modules/datastore/qos.hrl"). -include("modules/datastore/datastore_mo...
120cf4896d9b5f5820589ef5c284b2e253fbf72efd6ad75f62f8f25a83544223
onedata/op-worker
main_harvesting_stream.erl
%%%------------------------------------------------------------------- @author ( C ) 2019 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . %%% @end %%%------------------------------------------------------------------- %%% @doc %%% This module implements harvesting_...
null
https://raw.githubusercontent.com/onedata/op-worker/b0e4045090b180f28c79d40b9b334d7411ec3ca5/src/modules/harvesting/main_harvesting_stream.erl
erlang
------------------------------------------------------------------- @end ------------------------------------------------------------------- @doc This module implements harvesting_stream behaviour. main_harvesting_stream is responsible for harvesting metadata changes If new harvesters or indices are added to Desti...
@author ( C ) 2019 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . in the given space . Metadata changes are pushed per specific Destination . harvesting for a pair { HarvesterId , IndexId } with main_harvesting_stream . -module(main_harvesting_stream). -author...
22c3da32b36bddcb683f1464a50245742c427d67c0ad3cdbfc6cda8bae16ced1
imdea-software/leap
DP.ml
(***********************************************************************) (* *) LEAP (* *) , IMDEA ...
null
https://raw.githubusercontent.com/imdea-software/leap/5f946163c0f80ff9162db605a75b7ce2e27926ef/src/solvers/theory/DP.ml
ocaml
********************************************************************* ...
LEAP , IMDEA Software Institute Copyright 2011 IMDEA Software Institute Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compl...
a37fea80db09d5799dcca079f11cf73d704a4a39ffbd57dde1116806fde85f6f
fpco/stackage-server
Query.hs
# LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # # LANGUAGE NamedFieldPuns # # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # module Stackage.Database.Query ( -- * Snapshot newestSnapshot , newestLTS , newestLTSMajor , newestNightly , getSnapshots , countSnapshots ...
null
https://raw.githubusercontent.com/fpco/stackage-server/b707b5a0d72c44a3134a305b628c3f0b28db2697/src/Stackage/Database/Query.hs
haskell
* Snapshot * Package ** Dependencies ** Re-exports from Pantry ** Stackage server | Construct a pretty title for the snapshot | Get the snapshot from the database. used for resolving a snapshot | Look up the date 'in the newest nightly snapshot. | Get the snapshot which precedes the given one with respect to ...
# LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # # LANGUAGE NamedFieldPuns # # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # module Stackage.Database.Query ( newestSnapshot , newestLTS , newestLTSMajor , newestNightly , getSnapshots , countSnapshots , ltsMajorVersion...
d40dc48b89e863eb57db14c65f6a3b5b5b82038a1de0bc32729c7bace1e5d551
kennytilton/cells
api.lisp
;; -*- mode: Lisp; Syntax: Common-Lisp; Package: triple-cells; -*- ;;; ;;; Copyright ( c ) 2008 by . ;;; (in-package :3c) ;;; --- API --------------------------------------- (defun 3c-init () (setf *calc-nodes* nil) (setf *3c?* (make-hash-table :test 'equal)) (setf *3c-dyno-proxy* (make-hash-table :test ...
null
https://raw.githubusercontent.com/kennytilton/cells/64d05c83e155d5f35b3bd115dcd07f152ef79c39/triple-cells/api.lisp
lisp
-*- mode: Lisp; Syntax: Common-Lisp; Package: triple-cells; -*- --- API --------------------------------------- --- API constructors ------------------------------- (trc "bingo ephemeral" rule) (trc "rule-fn" rule-fn :from rule) (trc "c? type tr" tr-c) (trc "c? value tr" tr-cv) --- API accessors work out shift ...
Copyright ( c ) 2008 by . (in-package :3c) (defun 3c-init () (setf *calc-nodes* nil) (setf *3c?* (make-hash-table :test 'equal)) (setf *3c-dyno-proxy* (make-hash-table :test 'equalp)) (setf *3c-observers* (make-hash-table :test 'equalp))) (defun 3c-in (initial-value &key ephemeral test observer &aux ...
8755be22f058dd5d872cd183ac38d193f7f83c6cefb841a169c8ee140b5df593
jarohen/advent-of-code
day2.clj
(ns advent-of-code.day2 (:require [clojure.java.io :as io] [clojure.string :as s])) (def input (->> (io/resource "day2.txt") slurp s/trim s/split-lines (map (comp (partial map #(Long/parseLong %)) #(s/split % #"\s"))))) (defn pt1 [input] (->> input (map (fn [ro...
null
https://raw.githubusercontent.com/jarohen/advent-of-code/3fa1d87a539fb9163b05b732973bbd415dd21312/2017/src/advent_of_code/day2.clj
clojure
(ns advent-of-code.day2 (:require [clojure.java.io :as io] [clojure.string :as s])) (def input (->> (io/resource "day2.txt") slurp s/trim s/split-lines (map (comp (partial map #(Long/parseLong %)) #(s/split % #"\s"))))) (defn pt1 [input] (->> input (map (fn [ro...
3dbf5cbd6bc95c99b74b27efe1bbe51fb9d67c1f853ba101058a39e9e12343ad
soegaard/little-helper
42-eager-comprehensions.scm
42-eager-comprehensions.ss -- This file extends srfi-42 with several useful generators . ;;; See the "Eager Comprehensions for Black Belts" for examples ;;; and explanations. (module |42-eager-comprehensions| mzscheme (provide (all-from (lib "42.ss" "srfi")) :combinations ...
null
https://raw.githubusercontent.com/soegaard/little-helper/26249c688e5adf1e2535c405c6289030eff561b4/planet/srfi.plt/1/2/42-eager-comprehensions/42-eager-comprehensions.scm
scheme
See the "Eager Comprehensions for Black Belts" for examples and explanations. Combinations The problem of generating all k combinations of the n numbers 0,1,...,n-1 provides a nice example of the advanced :do-generator. next-combination we can use the advanced :do-generator as follows. default, when ther...
42-eager-comprehensions.ss -- This file extends srfi-42 with several useful generators . (module |42-eager-comprehensions| mzscheme (provide (all-from (lib "42.ss" "srfi")) :combinations :do-until :iterate :let-values :list-by ...
6511eca50d9af07c3afd6dedf422d0ac3b135dc7e780ccdcd50c742d9bf61f6d
onlyshk/epmail
smtp_fsm.erl
%%%------------------------------------------------------------------- @author ( C ) 2011 , %%% @doc %%% %%% @end Created : 7 Feb 2011 by < > %%%------------------------------------------------------------------- -module(smtp_fsm). -behaviour(gen_fsm). -vsn('0.3'). -author(''). -include_lib("smtp.hrl"...
null
https://raw.githubusercontent.com/onlyshk/epmail/d08ab8e706a44e5e3287ea4b98490447cfb94448/src/smtp_fsm.erl
erlang
------------------------------------------------------------------- @doc @end ------------------------------------------------------------------- API gen_fsm callbacks API gen_fsm callbacks MAIL FROM command utils:parse_to(lists:flatten(Packet))], Send mail to local server Send mail to local server Nee...
@author ( C ) 2011 , Created : 7 Feb 2011 by < > -module(smtp_fsm). -behaviour(gen_fsm). -vsn('0.3'). -author(''). -include_lib("smtp.hrl"). -export([stop/0]). -export([set_socket/1]). -export([start_link/2]). -export([init/1, autorization/2, mail_transaction/2, recv_rcpt_transaction/2, state_name/3...
eef54c6cacc1476440669e7ebbd1b49c2ac4be303491a70e82952a11e9c1fb1a
marcoheisig/Petalisp
documentation.lisp
© 2016 - 2023 - license : GNU AGPLv3 -*- coding : utf-8 -*- (in-package #:petalisp.ir) (document-function ir-from-lazy-arrays "Returns a list of buffers that form the root of an IR data flow graph that is equivalent to the data flow graph specified by the supplied LAZY-ARRAYS. An IR graph is consists ...
null
https://raw.githubusercontent.com/marcoheisig/Petalisp/a1c85cf71da445ef9c7913cd9ddb5149373211a7/code/ir/documentation.lisp
lisp
© 2016 - 2023 - license : GNU AGPLv3 -*- coding : utf-8 -*- (in-package #:petalisp.ir) (document-function ir-from-lazy-arrays "Returns a list of buffers that form the root of an IR data flow graph that is equivalent to the data flow graph specified by the supplied LAZY-ARRAYS. An IR graph is consists ...
3d6cdf01ea7229f40bc7effd2c99486937455fe729e1e273c4b926b28b21b3c7
melange-re/melange
res_core.mli
open Import.Ast_406 val parseImplementation: Res_parser.t -> Parsetree.structure val parseSpecification: Res_parser.t -> Parsetree.signature
null
https://raw.githubusercontent.com/melange-re/melange/d6f41989ec092eea5a623171fe5e54e17fde0d10/jscomp/napkin/res_core.mli
ocaml
open Import.Ast_406 val parseImplementation: Res_parser.t -> Parsetree.structure val parseSpecification: Res_parser.t -> Parsetree.signature
333f4e38d0a8619a37e40a582592af26b11995b76aea187bb41e8b8efb9233de
txkaduo/weixin-mp-sdk
AutoReplyRules.hs
module WeiXin.PublicPlatform.AutoReplyRules ( module WeiXin.PublicPlatform.AutoReplyRules , module WeiXin.PublicPlatform.Class ) where import ClassyPrelude import Network.Wreq import qualified Network.Wreq.Session as WS import Control.Lens #if !MIN_VERSION_base(4, 13, 0) import Control.Monad.Reader ...
null
https://raw.githubusercontent.com/txkaduo/weixin-mp-sdk/77abe31d06ccf266aad358373b9cde34b222b305/WeiXin/PublicPlatform/AutoReplyRules.hs
haskell
| 获取自动回复规则
module WeiXin.PublicPlatform.AutoReplyRules ( module WeiXin.PublicPlatform.AutoReplyRules , module WeiXin.PublicPlatform.Class ) where import ClassyPrelude import Network.Wreq import qualified Network.Wreq.Session as WS import Control.Lens #if !MIN_VERSION_base(4, 13, 0) import Control.Monad.Reader ...
857bc870b0cdc2cd98990b5893e4c827cecad1c7242f275c0cfb02226289d2e0
clojure-interop/aws-api
AmazonSageMakerClientBuilder.clj
(ns com.amazonaws.services.sagemaker.AmazonSageMakerClientBuilder "Fluent builder for AmazonSageMaker. Use of the builder is preferred over using constructors of the client class." (:refer-clojure :only [require comment defn ->]) (:import [com.amazonaws.services.sagemaker AmazonSageMakerClientBuilder])) (defn ...
null
https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.services.sagemaker/src/com/amazonaws/services/sagemaker/AmazonSageMakerClientBuilder.clj
clojure
(ns com.amazonaws.services.sagemaker.AmazonSageMakerClientBuilder "Fluent builder for AmazonSageMaker. Use of the builder is preferred over using constructors of the client class." (:refer-clojure :only [require comment defn ->]) (:import [com.amazonaws.services.sagemaker AmazonSageMakerClientBuilder])) (defn ...
220776631b59151c595926cbe94266045158c9078dd052e3f2698e31b75b9df7
camllight/camllight
dumpsymb.ml
#open "sys";; #open "const";; #open "symtable";; let print_qualid q = print_string q.qual; print_string "__"; print_string q.id ;; let print_numtable f tbl = print_string "("; print_int tbl.num_cnt; print_string " entries)"; print_newline(); hashtbl__do_table (fun qualid n -> f qualid; print_char ` ...
null
https://raw.githubusercontent.com/camllight/camllight/0cc537de0846393322058dbb26449427bfc76786/sources/src/tools/dumpsymb.ml
ocaml
#open "sys";; #open "const";; #open "symtable";; let print_qualid q = print_string q.qual; print_string "__"; print_string q.id ;; let print_numtable f tbl = print_string "("; print_int tbl.num_cnt; print_string " entries)"; print_newline(); hashtbl__do_table (fun qualid n -> f qualid; print_char ` ...
fc375a617626bbb5c3226ed7df48a426a0b80fdb0904545b57a577d04124c238
MercuryTechnologies/moat
KDoc.hs
{-# LANGUAGE OverloadedStrings #-} module Moat.Pretty.Doc.KDoc ( prettyDoc, prettyDocComment, prettyFieldDoc, ) where import CMarkGFM (nodeToCommonmark, Node (..)) import Data.Char (isSpace) import Data.List (intercalate, dropWhileEnd) import qualified Data.Text as T import Moat.Pretty.Doc.Markdown import...
null
https://raw.githubusercontent.com/MercuryTechnologies/moat/6fc4d51ed976265c55be6bef17486f09044093b5/src/Moat/Pretty/Doc/KDoc.hs
haskell
# LANGUAGE OverloadedStrings #
module Moat.Pretty.Doc.KDoc ( prettyDoc, prettyDocComment, prettyFieldDoc, ) where import CMarkGFM (nodeToCommonmark, Node (..)) import Data.Char (isSpace) import Data.List (intercalate, dropWhileEnd) import qualified Data.Text as T import Moat.Pretty.Doc.Markdown import Moat.Types (Field (..)) prettyDoc...
ad90655ec7d8a70afdace9768489787393b787df29e9340282598d5a3e851e50
xapi-project/xen-api
main.ml
* Copyright ( C ) 2006 - 2009 Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking describe...
null
https://raw.githubusercontent.com/xapi-project/xen-api/bb38ada4a3c6e6012a6dce23429b74b1295e1319/ocaml/xapi-storage-cli/main.ml
ocaml
* @group Storage Options common to all commands Help sections common to all commands Commands never happens Read the advertised device_config from the driver The first 'device_config' will actually be the sr We will send the contents of the file [v] as the value and [k'] as the key
* Copyright ( C ) 2006 - 2009 Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking describe...
de80f871c608471f43c02140e356fca541989845c44db066fc8103302dc88ae2
godotclj/godotclj
scene_processing.clj
(ns godotclj.scene-processing "Place to get information from `.tscn` files. Conventions: - `file` :: File object - `scene` :: Map that represents `.tscn` file (obtained with `tscn/parse`) - `project-root` :: File object that is the root of the project (`res://`) - `node` :: Similar to `scene` but represent...
null
https://raw.githubusercontent.com/godotclj/godotclj/23e9c62e7083f7be9aff8bb205d2a270dd5b5e39/src/clojure/godotclj/scene_processing.clj
clojure
(ns godotclj.scene-processing "Place to get information from `.tscn` files. Conventions: - `file` :: File object - `scene` :: Map that represents `.tscn` file (obtained with `tscn/parse`) - `project-root` :: File object that is the root of the project (`res://`) - `node` :: Similar to `scene` but represent...
3d09d071d6b0e30505b54d7db7f985658ae26135d53ecb1cfb701ce025d8e43d
bjpop/ministg
Arity.hs
{-# OPTIONS_GHC -XTypeSynonymInstances #-} ----------------------------------------------------------------------------- -- | Module : . Arity Copyright : ( c ) 2009 - 2012 -- License : BSD-style -- Maintainer : -- Stability : experimental Portability : ghc -- Arity analysis of programs : c...
null
https://raw.githubusercontent.com/bjpop/ministg/91ebcc081e2de604b0c764580cb1cca5a24db916/src/Ministg/Arity.hs
haskell
# OPTIONS_GHC -XTypeSynonymInstances # --------------------------------------------------------------------------- | License : BSD-style Maintainer : Stability : experimental top-level and let-bound function has, and annotate the application sites of those functions. -------------------------------------...
Module : . Arity Copyright : ( c ) 2009 - 2012 Portability : ghc Arity analysis of programs : compute how many arguments each module Ministg.Arity (runArity, Arity) where import qualified Data.Map as Map import Data.Map (Map) import Control.Monad.Reader import Control.Applicative import Ministg.A...
9ed63bb54ed331a298925aea199750ae53968597efe66fc2877c009537b45d36
GAumala/TranslateJPBot
TelegramBotSpec.hs
{-# LANGUAGE OverloadedStrings #-} module Web.TelegramBotSpec where import Data.Maybe import Data.RedBlackTree import Data.JMdictEntryTree (jmdictEntryTreeFromFile, lookupWord) import Test.Hspec import Data.Telegram.Chat import Data.Telegram.Message import Data.Telegram.Update import Data.Text (Text) import Web.Teleg...
null
https://raw.githubusercontent.com/GAumala/TranslateJPBot/af008f0f3a2a13079982b8de5966a3903194380d/test/Web/TelegramBotSpec.hs
haskell
# LANGUAGE OverloadedStrings #
module Web.TelegramBotSpec where import Data.Maybe import Data.RedBlackTree import Data.JMdictEntryTree (jmdictEntryTreeFromFile, lookupWord) import Test.Hspec import Data.Telegram.Chat import Data.Telegram.Message import Data.Telegram.Update import Data.Text (Text) import Web.TelegramBot spec ::Spec spec = descri...
58cdff78177f2b8ebbc99f67c179463325be095f8ab7e84dc1fc62dbb5dc65a7
ghc/packages-dph
Pretty.hs
module DPH.War.Pretty ( pprJobResult , diagnoseJobResults) where import DPH.War.Job import DPH.War.Result import Util.Terminal.VT100 import BuildBox import System.FilePath import Data.List pprJobResult :: Int -> Bool -> FilePath -> Job -> [Result] -> Doc pprJobResult width useColor workingDir job results = snd $...
null
https://raw.githubusercontent.com/ghc/packages-dph/64eca669f13f4d216af9024474a3fc73ce101793/dph-test/framework/DPH/War/Pretty.hs
haskell
| Diagnose whether some job results represent success or failure, and generate a Doc describing them. ^ Width of reports. ^ Whether to use color in reports. ^ Working directory to show test files relative to. ^ Job to pretty print. ^ Returned results of job. Don't show the output dir in the file path, show...
module DPH.War.Pretty ( pprJobResult , diagnoseJobResults) where import DPH.War.Job import DPH.War.Result import Util.Terminal.VT100 import BuildBox import System.FilePath import Data.List pprJobResult :: Int -> Bool -> FilePath -> Job -> [Result] -> Doc pprJobResult width useColor workingDir job results = snd $...
03cd67c97c54985db6c3519baa8f203bbb2da05f2665e61eeceef894fa81665f
NorfairKing/super-user-spark
DeployerSpec.hs
# LANGUAGE TypeApplications # # LANGUAGE TemplateHaskell # module SuperUserSpark.DeployerSpec where import TestImport import System.Posix.Files import SuperUserSpark.Bake.Types import SuperUserSpark.Check.Internal import SuperUserSpark.Check.Types import SuperUserSpark.Deployer import SuperUserSpark.Deployer.Gen ()...
null
https://raw.githubusercontent.com/NorfairKing/super-user-spark/3c286a52a0b81e083c0e6d39f6f2b02aa9bb9231/test/SuperUserSpark/DeployerSpec.hs
haskell
Under test Under test Under test Under test
# LANGUAGE TypeApplications # # LANGUAGE TemplateHaskell # module SuperUserSpark.DeployerSpec where import TestImport import System.Posix.Files import SuperUserSpark.Bake.Types import SuperUserSpark.Check.Internal import SuperUserSpark.Check.Types import SuperUserSpark.Deployer import SuperUserSpark.Deployer.Gen ()...
cb2c5d3fea0bf93c6a2dc6889b2eafaa1c14487c346bb6c8047be7659e36214e
froydnj/ironclad
elgamal.lisp
;;;; -*- mode: lisp; indent-tabs-mode: nil -*- elgamal.lisp -- implementation of the encryption and signature scheme (in-package :crypto) ;;; class definitions (defclass elgamal-key () ((group :initarg :group :reader group))) (defclass elgamal-public-key (elgamal-key) ((y :initarg :y :reader elgamal-key-y ...
null
https://raw.githubusercontent.com/froydnj/ironclad/fe88483bba68eac4db3b48bb4a5a40035965fc84/src/public-key/elgamal.lisp
lisp
-*- mode: lisp; indent-tabs-mode: nil -*- class definitions function definitions
elgamal.lisp -- implementation of the encryption and signature scheme (in-package :crypto) (defclass elgamal-key () ((group :initarg :group :reader group))) (defclass elgamal-public-key (elgamal-key) ((y :initarg :y :reader elgamal-key-y :type integer))) (defclass elgamal-private-key (elgamal-key) ((y :...
e5eb5f147e0dd115668dbd36c229966d2557a371985c5b00866920df06ae722a
Bogdanp/racket-sentry
info.rkt
#lang info (define license 'BSD-3-Clause) (define collection "sentry") (define scribblings '(("scribblings/sentry.scrbl" ()))) (define deps '("base")) (define build-deps '("gregor-lib" "sentry-lib" "scribble-lib" "web-server-lib" "gr...
null
https://raw.githubusercontent.com/Bogdanp/racket-sentry/156de31a8f5827b87c95f6af0c4f3f4b0c26c2a5/sentry-doc/info.rkt
racket
#lang info (define license 'BSD-3-Clause) (define collection "sentry") (define scribblings '(("scribblings/sentry.scrbl" ()))) (define deps '("base")) (define build-deps '("gregor-lib" "sentry-lib" "scribble-lib" "web-server-lib" "gr...
2482c8532c70c07837a93c6c177ccd63d5203580c600ea59c708d711fe3e0c6c
haskell/haskell-language-server
GoldenPureList.hs
pureList :: a -> [a] pureList = _
null
https://raw.githubusercontent.com/haskell/haskell-language-server/f3ad27ba1634871b2240b8cd7de9f31b91a2e502/plugins/hls-tactics-plugin/new/test/golden/GoldenPureList.hs
haskell
pureList :: a -> [a] pureList = _
7b529a15a92597c21a55df4d69fa1a425693c34aee65f753a819d9dcf2c385f8
WhatsApp/eqwalizer
case_predicates.erl
Copyright ( c ) Meta Platforms , Inc. and affiliates . All rights reserved . %%% This source code is licensed under the Apache 2.0 license found in %%% the LICENSE file in the root directory of this source tree. -module(case_predicates). -compile([export_all, nowarn_export_all]). -spec my_apply(term(), term()) ...
null
https://raw.githubusercontent.com/WhatsApp/eqwalizer/8017d486c025eaa5c35ced1481ad5bad0f665efa/eqwalizer/test_projects/check/src/case_predicates.erl
erlang
the LICENSE file in the root directory of this source tree.
Copyright ( c ) Meta Platforms , Inc. and affiliates . All rights reserved . This source code is licensed under the Apache 2.0 license found in -module(case_predicates). -compile([export_all, nowarn_export_all]). -spec my_apply(term(), term()) -> ok | not_ok. my_apply(X, Y) -> case {is_atom(X), is_atom(Y)...
09820728228894d62e1a0ad58ad81fe4094bed998e1460d15dff9e911524e979
huangjs/cl
max_ext.lisp
;;Autoloads for maxima (in-package :maxima) ($auto_mexpr '$nusum "nusum") ($auto_mexpr '$unsum "nusum") ($auto_mexpr '$funcsolve "nusum") ($auto_mexpr '$bffac "bffac") ($auto_mexpr '$cbffac "bffac") ($auto_mexpr '$bfzeta "bffac") ($auto_mexpr '$bfpsi "bffac") ($auto_mexpr '$bfpsi0 "bffac") (auto-mexpr '$trigrat '|tr...
null
https://raw.githubusercontent.com/huangjs/cl/96158b3f82f82a6b7d53ef04b3b29c5c8de2dbf7/lib/maxima/src/max_ext.lisp
lisp
Autoloads for maxima functions from share/linearalgebra eigens-by-jacobi.lisp linalgcholesky.lisp linalg-utilities.lisp lu.lisp mring.lisp polynomialp.lisp linearalgebra.mac
(in-package :maxima) ($auto_mexpr '$nusum "nusum") ($auto_mexpr '$unsum "nusum") ($auto_mexpr '$funcsolve "nusum") ($auto_mexpr '$bffac "bffac") ($auto_mexpr '$cbffac "bffac") ($auto_mexpr '$bfzeta "bffac") ($auto_mexpr '$bfpsi "bffac") ($auto_mexpr '$bfpsi0 "bffac") (auto-mexpr '$trigrat '|trigrat|) ($auto_mexpr '$...
2e0f387e1b7e078a1b4fd2de99c4891b3a5c03eeb06276d7d7e92f24e9f89079
DrTom/clj-pg-types
enum_test.clj
(ns pg-types.enum-test (:require [pg-types.all :refer :all] [pg-types.connection :refer :all] [pg-types.read-column :refer :all] [pg-types.sql-parameter :refer :all] [clojure.java.jdbc :as jdbc] [clojure.test :refer :all] ) (:import [org.postgresql.util PGobject] )) These te...
null
https://raw.githubusercontent.com/DrTom/clj-pg-types/d847735c46b2da173fd50a6ebe492bead0d75dd5/test/pg_types/enum_test.clj
clojure
in <-enum.html>. If you leave this out you will get back a string. This will let you write strings, too.
(ns pg-types.enum-test (:require [pg-types.all :refer :all] [pg-types.connection :refer :all] [pg-types.read-column :refer :all] [pg-types.sql-parameter :refer :all] [clojure.java.jdbc :as jdbc] [clojure.test :refer :all] ) (:import [org.postgresql.util PGobject] )) These te...
026712ca311c7b0f48721b578391bc98b2e70efd430d9765475d1c9b320bfb6f
RedPRL/redtt
DisjointSet.ml
module type S = sig type 'a t val init : size:int -> 'a t val union : 'a -> 'a -> 'a t -> 'a t val find : 'a -> 'a t -> 'a end module Make (T : PersistentTable.S) : S = struct type 'a t = {rank : ('a, int) T.t; mutable parent : ('a, 'a) T.t} let init ~size = {rank = T.init ~size; parent...
null
https://raw.githubusercontent.com/RedPRL/redtt/50689559ff970e33013b8cf8a3bbc8be18ec4e09/src/basis/DisjointSet.ml
ocaml
module type S = sig type 'a t val init : size:int -> 'a t val union : 'a -> 'a -> 'a t -> 'a t val find : 'a -> 'a t -> 'a end module Make (T : PersistentTable.S) : S = struct type 'a t = {rank : ('a, int) T.t; mutable parent : ('a, 'a) T.t} let init ~size = {rank = T.init ~size; parent...
189ebe0d03bd9a6a4caf22c17b620756604b434fef5bf43520b6ec1daf12574c
lortabac/versioning
Main.hs
# LANGUAGE TypeApplications # module Main where import Test.Hspec import Versioning.Base import Versioning.JSON import Versioning.Upgrade import Tests.Versioning.Fixtures (Foo (..), SumType (..), foo0, foo2, fooJsonV0, fooJ...
null
https://raw.githubusercontent.com/lortabac/versioning/383a39f815ca321441caaa0a4cad61c709eda203/versioning/tests/Main.hs
haskell
# LANGUAGE TypeApplications # module Main where import Test.Hspec import Versioning.Base import Versioning.JSON import Versioning.Upgrade import Tests.Versioning.Fixtures (Foo (..), SumType (..), foo0, foo2, fooJsonV0, fooJ...
4e1768692e3a2de35e214fd2b53687db2445c175c194e13b8a872f0097a38281
tomas-abrahamsson/gpb
gpb_compile_descr.erl
Copyright ( C ) 2013 %%% Author : < > %%% %%% This library is free software; you can redistribute it and/or %%% modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation ; either version 2.1 of the License , or ( at your option ) any later version . %...
null
https://raw.githubusercontent.com/tomas-abrahamsson/gpb/65fbdeaef858d168028e7e756482e573abe2fd0c/descr_src/gpb_compile_descr.erl
erlang
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GN...
Copyright ( C ) 2013 Author : < > License as published by the Free Software Foundation ; either version 2.1 of the License , or ( at your option ) any later version . You should have received a copy of the GNU Lesser General Public Foundation , Inc. , 51 Franklin Street , Fifth Floor , Boston , MA ...
e8dfad6f055fcab3160045236224b6fdb3fd2de34e3b800c0bb88bd1849a1499
jayrbolton/coursework
2.4.hs
-- J Bolton -- Assignment 4, Quarter 2 import Prelude hiding (Monad, (>>=)) import Data.Monoid class Monad m where pure :: a -> m a (>>=) :: m a -> (a -> m b) -> m b (>>) :: m a -> m b -> m b m >> n = m >>= \_ -> n instance Monad Maybe where pure = Just (Just x) >>= g = g x (Nothing) >>...
null
https://raw.githubusercontent.com/jayrbolton/coursework/f0da276527d42a6751fb8d29c76de35ce358fe65/computability_and_formal_languages/Haskell/hws/q2/2.4.hs
haskell
J Bolton Assignment 4, Quarter 2 (>>=) :: m a -> (a -> m b) -> m b (>>=) :: m a -> (a -> m b) -> m b join :: Maybe (Maybe a) -> Maybe a I can't figure out what you're asking. What does "with assignment statement from the previous assignment" mean? Using previous assignments in an expression seems to work? fetc...
import Prelude hiding (Monad, (>>=)) import Data.Monoid class Monad m where pure :: a -> m a (>>=) :: m a -> (a -> m b) -> m b (>>) :: m a -> m b -> m b m >> n = m >>= \_ -> n instance Monad Maybe where pure = Just (Just x) >>= g = g x (Nothing) >>= _ = Nothing Laws : return a > > ...
3e24d4b9cdc3be1d772e4407e18c0a7afccc58b1a96f33845cd902efb209e978
elastic/eui-cljs
color_picker.cljs
(ns eui.services.color-picker (:require ["@elastic/eui/lib/services/color_picker/color_picker.js" :as eui])) (def useColorStopsState eui/useColorStopsState) (def useColorPickerState eui/useColorPickerState)
null
https://raw.githubusercontent.com/elastic/eui-cljs/ad60b57470a2eb8db9bca050e02f52dd964d9f8e/src/eui/services/color_picker.cljs
clojure
(ns eui.services.color-picker (:require ["@elastic/eui/lib/services/color_picker/color_picker.js" :as eui])) (def useColorStopsState eui/useColorStopsState) (def useColorPickerState eui/useColorPickerState)
d431747f8665765fd7907a3c8292fa877cbf91b56da7e78a6ed35324bbc75da8
kiselgra/c-mera
cxx.class.03.lisp
(include <iostream>) (using-namespace std) (class foo1 () (public (destructor (<< cout "~foo1" endl)))) (class foo2 () (public (destructor virtual (<< cout "~foo2" endl)))) (class bar1 ((public foo1)) (public (destructor (<< cout "~bar1" endl)))) (class bar2 ((public foo2)) (public ...
null
https://raw.githubusercontent.com/kiselgra/c-mera/d06ed96d50a40a3fefe188202c8c535d6784f392/tests/cxx.class.03.lisp
lisp
## ~bar2
(include <iostream>) (using-namespace std) (class foo1 () (public (destructor (<< cout "~foo1" endl)))) (class foo2 () (public (destructor virtual (<< cout "~foo2" endl)))) (class bar1 ((public foo1)) (public (destructor (<< cout "~bar1" endl)))) (class bar2 ((public foo2)) (public ...
020a5a999fd44a06a2c37c9f815dde8b756537e4cccbf579373a8c4cf8598be3
xapi-project/xen-api-libs
netdev.ml
* Copyright ( C ) 2006 - 2009 Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking describe...
null
https://raw.githubusercontent.com/xapi-project/xen-api-libs/d603ee2b8456bc2aac99b0a4955f083e22f4f314/netdev/netdev.ml
ocaml
bridge interfaces control function temporary CA-21402: Not everything returned by list() is guaranteed to be a directory containing an address; so we have to make sure we catch exceptions here so we keep trying the next one and so on.. filter out device symlinks which look like /../../../devices/xen-backend/v...
* Copyright ( C ) 2006 - 2009 Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking describe...
e88e24c7c7ec7f26f6b33bc75dc8a1fd98772bbe932e8d1e394b68bc78511752
triffon/fp-2019-20
04--palindrome.rkt
#lang racket (require rackunit) (require rackunit/text-ui) # # # Задача 4 Напишете функция ` palindrome ? ` , дали е палиндром . е число , което не се променя , ако обърнем реда на цифрите му . ( : реализирайте функцията без да ползвате ` reverse - num ` ) . (define (palindrome? n) void) (run-tests (te...
null
https://raw.githubusercontent.com/triffon/fp-2019-20/7efb13ff4de3ea13baa2c5c59eb57341fac15641/exercises/computer-science-2/02--recursive-and-iterative-processes/04--palindrome.rkt
racket
#lang racket (require rackunit) (require rackunit/text-ui) # # # Задача 4 Напишете функция ` palindrome ? ` , дали е палиндром . е число , което не се променя , ако обърнем реда на цифрите му . ( : реализирайте функцията без да ползвате ` reverse - num ` ) . (define (palindrome? n) void) (run-tests (te...
25ef3d21be2da7a278221cdaeb6c4093e501392d480ee2fc29feb155f5a16a96
ds-wizard/engine-backend
ComponentDAO.hs
module Shared.Database.DAO.Component.ComponentDAO where import Control.Monad.Except (MonadError) import Control.Monad.IO.Class (MonadIO) import Control.Monad.Logger (MonadLogger) import Control.Monad.Reader (MonadReader) import Data.Pool import qualified Data.UUID as U import Database.PostgreSQL.Simple import GHC.Int ...
null
https://raw.githubusercontent.com/ds-wizard/engine-backend/b87f6d481205dd7f0f00fd770145f8ee5c4be193/engine-shared/src/Shared/Database/DAO/Component/ComponentDAO.hs
haskell
module Shared.Database.DAO.Component.ComponentDAO where import Control.Monad.Except (MonadError) import Control.Monad.IO.Class (MonadIO) import Control.Monad.Logger (MonadLogger) import Control.Monad.Reader (MonadReader) import Data.Pool import qualified Data.UUID as U import Database.PostgreSQL.Simple import GHC.Int ...
c09f796081f9578d6e689b0aa1b0d979655ac02002e5fa803d9df6fc5d4b16c6
Opetushallitus/ataru
view.cljs
(ns ataru.virkailija.editor.view (:require-macros [reagent.ratom :refer [reaction]]) (:require [ataru.cljs-util :refer [wrap-scroll-to]] [ataru.util :as util] [clojure.string :as string] [ataru.virkailija.editor.core :as c] [ataru.virkailija.editor.subs] [...
null
https://raw.githubusercontent.com/Opetushallitus/ataru/aab6737d14c0aebef139949329d12109ba7fb9eb/src/cljs/ataru/virkailija/editor/view.cljs
clojure
(ns ataru.virkailija.editor.view (:require-macros [reagent.ratom :refer [reaction]]) (:require [ataru.cljs-util :refer [wrap-scroll-to]] [ataru.util :as util] [clojure.string :as string] [ataru.virkailija.editor.core :as c] [ataru.virkailija.editor.subs] [...
f7e198b00d59759450905c18d1e525c7f67859c22b8ef2d0badc1442ebb35d6d
well-typed/large-records
R070.hs
# LANGUAGE TypeApplications # #if PROFILE_CORESIZE {-# OPTIONS_GHC -ddump-to-file -ddump-ds-preopt -ddump-ds -ddump-simpl #-} #endif #if PROFILE_TIMING {-# OPTIONS_GHC -ddump-to-file -ddump-timings #-} #endif module Experiment.PreEval_Nominal.Sized.R070 where import Data.Proxy import Common.EmptyClass_Tree_Nominal ...
null
https://raw.githubusercontent.com/well-typed/large-records/c6c2b51af11e90f30822543d7ce4d1cb28cee294/large-records-benchmarks/bench/experiments/Experiment/PreEval_Nominal/Sized/R070.hs
haskell
# OPTIONS_GHC -ddump-to-file -ddump-ds-preopt -ddump-ds -ddump-simpl # # OPTIONS_GHC -ddump-to-file -ddump-timings #
# LANGUAGE TypeApplications # #if PROFILE_CORESIZE #endif #if PROFILE_TIMING #endif module Experiment.PreEval_Nominal.Sized.R070 where import Data.Proxy import Common.EmptyClass_Tree_Nominal import Common.HListOfSize.HL070 requiresInstance :: () requiresInstance = requireEmptyClass_preEval (Proxy @ExampleFields)
7937df54dbf48f3a6281782cfb2d4919a8682ef6b24e1320bf26612cdf3748b8
google/lisp-koans
clos.lisp
Copyright 2013 Google Inc. ;;; 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 distrib...
null
https://raw.githubusercontent.com/google/lisp-koans/df5e58dc88429ef0ff202d0b45c21ce572144ba8/koans-solved/clos.lisp
lisp
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 per...
Copyright 2013 Google Inc. distributed under the License is distributed on an " AS IS " BASIS , CLOS is a shorthand for Common Lisp Object System . (defclass racecar () (color speed)) (define-test defclass (let ((car-1 (make-instance 'racecar)) (car-2 (make-instance 'racecar))) Slot values can be...
746539583f260c123c5a8aa2ed3458b7fd4fd7f43b1824a5bf21751e59001359
janestreet/sexp
main_select.ml
open Core open Async module Test_and_doc = struct let test_sexp_string = {| ((foo bar) (baz ( (sausage banana) (fred george) (wizzle ( (one a) (two b) (three c))))) (wizzle fizzle) (wizzle ( (grizzle ( ...
null
https://raw.githubusercontent.com/janestreet/sexp/df820aa2a657238face2c244880cb8b2e3f0a322/bin/main_select.ml
ocaml
can't do TEST_UNIT b/c this isn't a library
open Core open Async module Test_and_doc = struct let test_sexp_string = {| ((foo bar) (baz ( (sausage banana) (fred george) (wizzle ( (one a) (two b) (three c))))) (wizzle fizzle) (wizzle ( (grizzle ( ...
14efe5cce271e48f131c051b3981a93c21c209599fd55d5d734768d5c3d77195
lspitzner/brittany
Test170.hs
import Test ( Thing ( -- Comments ) ) import Test ...
null
https://raw.githubusercontent.com/lspitzner/brittany/a15eed5f3608bf1fa7084fcf008c6ecb79542562/data/Test170.hs
haskell
Comments and Comment Comments also !
import Test ( Thing ) ) import Test ( Thing ( Item...
c4ab45d4b873cb2d4e7b9b5c7a96f5ea87ad614c10c518765d988dc846ae3214
well-typed/cborg
Types.hs
# LANGUAGE DeriveGeneric # module Macro.Types (module Macro.Types, Version(..)) where import GHC.Generics newtype InstalledPackageId = InstalledPackageId String deriving (Eq, Ord, Generic) newtype PackageName = PackageName String deriving (Eq, Ord, Generic) data Version = Version [Int] [String] deriving...
null
https://raw.githubusercontent.com/well-typed/cborg/9be3fd5437f9d2ec1df784d5d939efb9a85fd1fb/serialise/bench/versus/Macro/Types.hs
haskell
^The name of this package, eg. foo these parts are exactly the same as PackageDescription these parts are required by an installed package only : contain sources in case of Hugs overrides extraLibraries for GHCi these parts are exactly the same as PackageDescription these parts are required by an installed p...
# LANGUAGE DeriveGeneric # module Macro.Types (module Macro.Types, Version(..)) where import GHC.Generics newtype InstalledPackageId = InstalledPackageId String deriving (Eq, Ord, Generic) newtype PackageName = PackageName String deriving (Eq, Ord, Generic) data Version = Version [Int] [String] deriving...
2e8e81a380739abecb3207e165d3c9df7f4a97398014033824a90cf033764c4c
pepeiborra/narradar
LOPSTR09.hs
# LANGUAGE TypeFamilies # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE TypeSynonymInstances #-} # LANGUAGE OverlappingInstances # # LANGUAGE UndecidableInstances # # LANGUAGE NoMonomorphismRestriction # # LANGUAGE CPP # --module LOPSTR09 where import Control.Monad import Data.Maybe...
null
https://raw.githubusercontent.com/pepeiborra/narradar/bc53dcad9aee480ab3424a75239bac67e4794456/strategies/LOPSTR09.hs
haskell
# LANGUAGE TypeSynonymInstances # module LOPSTR09 where Missing dispatcher cases Rewriting Narrowing Narrowing Goal Initial Goal (inn >=> dispatch) .|. Relative
# LANGUAGE TypeFamilies # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE OverlappingInstances # # LANGUAGE UndecidableInstances # # LANGUAGE NoMonomorphismRestriction # # LANGUAGE CPP # import Control.Monad import Data.Maybe import qualified Language.Prolog.Syntax as Prolog import MuTe...
5b47a623c64033975e5a551212e49d00c7334a2dc642402d808596bbdd00581d
eslick/cl-registry
survey-state.lisp
(in-package :registry) (registry-proclamations) ;; ============================================================== ;; Maintaining user state in a survey ;; ============================================================== (defpclass survey-state () ((user :accessor user :initarg :user :index t) (survey :accessor s...
null
https://raw.githubusercontent.com/eslick/cl-registry/d4015c400dc6abf0eeaf908ed9056aac956eee82/src/plugins/collect/survey-state.lisp
lisp
============================================================== Maintaining user state in a survey ============================================================== Checking only required questions? Any answers to question for user/patient? Returns
(in-package :registry) (registry-proclamations) (defpclass survey-state () ((user :accessor user :initarg :user :index t) (survey :accessor survey :initarg :survey :index t) (ranking :accessor ranking :initarg :ranking :initform nil) (last-values :accessor last-values :initarg :last-values :initform nil) ...
e8c9096dd3dbf1e5281bf5db22008ef700f61dfe9d54859c49c2492e0ab7d452
VERIMAG-Polyhedra/VPL
Scalar_type.mli
(** Interface of scalar types. *) (** Rouding type when converting into integers. *) type roundT = Up | Down (** Interface of scalar types. *) module type Type = sig (** Type of scalar value *) type t (** Name of the scalar type. *) val name : string * Zero value . val z: t * Value 1 . val u: t (** Val...
null
https://raw.githubusercontent.com/VERIMAG-Polyhedra/VPL/cd78d6e7d120508fd5a694bdb01300477e5646f8/ocaml/datatypes/Scalar_type.mli
ocaml
* Interface of scalar types. * Rouding type when converting into integers. * Interface of scalar types. * Type of scalar value * Name of the scalar type. * Value -1. * Small value used for conversions from {!type:Scalar.symbolic}. * [cmp x y] returns 0 if x = y, a negative integer if x < y, and a positive one ot...
type roundT = Up | Down module type Type = sig type t val name : string * Zero value . val z: t * Value 1 . val u: t val negU: t val delta : t val cmp : t -> t -> int val le: t -> t -> bool val lt: t -> t -> bool val cmpz: t -> int val equal : t -> t -> bool * [ equalApprox x y ] returns true i...
5a0193347354eee73c6e9483f4d412ab11d5c986ae653964acda8db380c53682
tiredpixel/isoxya-api
Type.hs
module Isoxya.Msg.Type ( ChanCrawler, ChanProcessor, ChanStreamer, CrawlPage(..), CrawlPageBlob(..), CrawlPageData(..), CrawlPageId(..), CrawlPageRequest(..), CrawlPageResponse(..), CrawlPageResponseError(..), MsgCrawler, MsgProcessor, MsgStreamer, httpExResponseE...
null
https://raw.githubusercontent.com/tiredpixel/isoxya-api/1022ee6db77f744c77541c53ef6f15f56884f939/src/Isoxya/Msg/Type.hs
haskell
module Isoxya.Msg.Type ( ChanCrawler, ChanProcessor, ChanStreamer, CrawlPage(..), CrawlPageBlob(..), CrawlPageData(..), CrawlPageId(..), CrawlPageRequest(..), CrawlPageResponse(..), CrawlPageResponseError(..), MsgCrawler, MsgProcessor, MsgStreamer, httpExResponseE...
47fc92b5a05d57d5f52474b695dc6d82836afea22ad73de3ef4b54a25ec6a45e
gedge-platform/gedge-platform
code_version.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 - 2021 VMware , Inc. or its affiliates . All rights reserved . %% -module(code_version). -export([update/1, get_otp...
null
https://raw.githubusercontent.com/gedge-platform/gedge-platform/97c1e87faf28ba2942a77196b6be0a952bff1c3e/gs-broker/broker-server/deps/rabbit_common/src/code_version.erl
erlang
---------------------------------------------------------------------------- API ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- @doc Reads the abstract code of the given `Module`, modifies it to adapt to call...
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 - 2021 VMware , Inc. or its affiliates . All rights reserved . -module(code_version). -export([update/1, get_otp_versi...
21cc769d4fdd3f761a3106db32b97ed230437f7110aa0283a803d12d8aacd9de
zack-bitcoin/amoveo-mining-pool
file_handler.erl
-module(file_handler). -export([init/3, handle/2, terminate/3]). %example of talking to this handler: httpc : request(post , { " :3011/ " , [ ] , " application / octet - stream " , " echo " } , [ ] , [ ] ) . %curl -i -d '[-6,"test"]' :3011 handle(Req, _) -> {F, _} = cowboy_req:path(Req), io:fwrite("file handle...
null
https://raw.githubusercontent.com/zack-bitcoin/amoveo-mining-pool/fd39d6812e0bc9bdd613aec0e82c3c3907df23c5/apps/amoveo_mining_pool/src/file_handler.erl
erlang
example of talking to this handler: curl -i -d '[-6,"test"]' :3011 PrivDir0 = case application:get_env(amoveo_core, kind) of {ok, "production"} -> code:priv_dir(amoveo_http); _ -> "../../../../apps/amoveo_http/priv" end, PrivDir = list_to_binary(code:priv_dir(amoveo_http)), {ok, File } = file:open(F, [read, b...
-module(file_handler). -export([init/3, handle/2, terminate/3]). httpc : request(post , { " :3011/ " , [ ] , " application / octet - stream " , " echo " } , [ ] , [ ] ) . handle(Req, _) -> {F, _} = cowboy_req:path(Req), io:fwrite("file handler handle\n"), io:fwrite(F), io:fwrite("\n"), PrivDir = list_t...
6e42770bc3e638584945fbbe0a11cdebec005a2f3b256001f991275a86162269
lspitzner/brittany
Test24.hs
func :: [ lkasdlkjalsdjlakjsdlkjasldkjalskdjlkajsd -> lkasdlkjalsdjlakjsdlkjasldkjalskdjlkajsd ]
null
https://raw.githubusercontent.com/lspitzner/brittany/a15eed5f3608bf1fa7084fcf008c6ecb79542562/data/Test24.hs
haskell
func :: [ lkasdlkjalsdjlakjsdlkjasldkjalskdjlkajsd -> lkasdlkjalsdjlakjsdlkjasldkjalskdjlkajsd ]
b76900c5ba87f4d4a62112d7d8b74bc51f2afbced785c2aa0674d9deb266f85e
Mesabloo/nihil
Impossible.hs
{-# LANGUAGE RankNTypes #-} {-| Helper functions for describing unexpected/impossible behaviors of the compiler. -} module Nihil.Utils.Impossible ( impossible ) where import GHC.Stack (callStack, prettyCallStack, HasCallStack) -- | Stops the running program and displays a message with @"The impossible happened!...
null
https://raw.githubusercontent.com/Mesabloo/nihil/3821052ca5691a6492b23bd8a46bfe70567d374f/src/utils/Nihil/Utils/Impossible.hs
haskell
# LANGUAGE RankNTypes # | Helper functions for describing unexpected/impossible behaviors of the compiler. | Stops the running program and displays a message with @"The impossible happened!"@. Also displays the call stack to see where the error occurred. It is useful to join it in the report of the error, ...
module Nihil.Utils.Impossible ( impossible ) where import GHC.Stack (callStack, prettyCallStack, HasCallStack) impossible :: forall a. HasCallStack => String -> a impossible msg = let abstract = "GNC: The impossible happened!\n" <> "Message: " <> msg <> "\n" <> "Please report...
05016a0992f96c8b5daf3dbc5ce321a5df06918a60c2877af20de5b8830c41ca
gwathlobal/CotD
generate-level.lisp
(in-package :cotd) ;; the level generation function takes the following parameters: ;; sector-level-gen-func - main funcation to generate a level from template (for example, city level) ;; takes: (template-level set-max-buildings-func set-reserved-buildings-func) ;; returns: (real-terrain mob-template-li...
null
https://raw.githubusercontent.com/gwathlobal/CotD/d01ef486cc1d3b21d2ad670ebdb443e957290aa2/src/generate-level.lisp
lisp
the level generation function takes the following parameters: sector-level-gen-func - main funcation to generate a level from template (for example, city level) takes: (template-level set-max-buildings-func set-reserved-buildings-func) returns: (real-terrain mob-template-list item-template-list featur...
(in-package :cotd) (defun generate-level-from-sector (sector-level-gen-func &key (max-x *max-x-level*) (max-y *max-y-level*) (max-z *max-z-level*) (overall-post-process-func-list ()) (level-temp...
5f15249f204ee8d93eb018d294463f4f68e0f845cf63f86c149998e440f53e13
someodd/waffle
Save.hs
{-# LANGUAGE OverloadedStrings #-} | Draw / render ` SaveMode ` module BrickApp.Draw.Save where import qualified Data.Text as T import Control.Exception ( displayException ) import qualified Brick.Widgets.FileBrowser as FB import qualified Brick.Types ...
null
https://raw.githubusercontent.com/someodd/waffle/71586b271878df4cb2368ae3bd6e2961cb79fa15/src/BrickApp/Draw/Save.hs
haskell
# LANGUAGE OverloadedStrings #
| Draw / render ` SaveMode ` module BrickApp.Draw.Save where import qualified Data.Text as T import Control.Exception ( displayException ) import qualified Brick.Widgets.FileBrowser as FB import qualified Brick.Types as T import Brick.Widge...
e18269077ee0fe718c81ba479369afb97e5ab11728bfc431e4ab73ab076f6441
cmr-exchange/cmr-client
protocol.cljc
(ns cmr.client.ac.protocol "This namespace defines the protocols used by CMR access-control client.") (defprotocol CMRAccessControlAPI (^:export get-acls [this http-options] [this query-params http-options] "Not yet implemented.") (^:export get-groups [this http-options] [this query-params http-options] "N...
null
https://raw.githubusercontent.com/cmr-exchange/cmr-client/0b4dd4114e3b5ed28fc5b57db0f8dcd8773c1c14/src/cljc/cmr/client/ac/protocol.cljc
clojure
(ns cmr.client.ac.protocol "This namespace defines the protocols used by CMR access-control client.") (defprotocol CMRAccessControlAPI (^:export get-acls [this http-options] [this query-params http-options] "Not yet implemented.") (^:export get-groups [this http-options] [this query-params http-options] "N...
47644c5b848091fa3c4477d2756c42f2c90ff0158124f27eb369fa1655a05937
manzyuk/groebner
Groebner.hs
# LANGUAGE FlexibleContexts , PatternGuards # module Groebner (nf, groebner) where import Monomial import Polynomial import Types import Data.List -- Normal form of a polynomial with respect to a list of polynomials using Buchberger 's algorithm . nf :: (Eq r, Fractional r, Ord v, Show v, Ord (Monomial v o)) =>...
null
https://raw.githubusercontent.com/manzyuk/groebner/3f68f3512f19ee0a4740e6ee204f6b117ecbbcad/src/Groebner.hs
haskell
Normal form of a polynomial with respect to a list of polynomials Product criterion: if the lcm of the leading monomials of f and g
# LANGUAGE FlexibleContexts , PatternGuards # module Groebner (nf, groebner) where import Monomial import Polynomial import Types import Data.List using Buchberger 's algorithm . nf :: (Eq r, Fractional r, Ord v, Show v, Ord (Monomial v o)) => Polynomial r v o -> [Polynomial r v o] -> Polynomial r v o nf f s = ...
505778bf30bf85463b5e156f3bf01aa6ca4f4845221793749016118c6127059b
robrix/starlight
IO.hs
# LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE ImplicitParams # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE RankNTypes #-} # LANGUAGE TypeOperators # # LANGUAGE UndecidableInstances # module GL.Carrier.Check.IO ( -- * Check carrier runCheck , CheckC(CheckC...
null
https://raw.githubusercontent.com/robrix/starlight/ad80ab74dc2eedbb52a75ac8ce507661d32f488e/src/GL/Carrier/Check/IO.hs
haskell
# LANGUAGE GADTs # # LANGUAGE RankNTypes # * Check carrier * Check effect
# LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE ImplicitParams # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeOperators # # LANGUAGE UndecidableInstances # module GL.Carrier.Check.IO runCheck , CheckC(CheckC) , module GL.Effect.Check ) where import Control.Algebra import Contro...
fd64023d39efdccb599a3d1c283e0482833f476c4b400ac05f90cf227ffed800
jacobobryant/biff
home.clj
(ns com.example.feat.home (:require [clj-http.client :as http] [com.biffweb :as biff] [com.example.middleware :as mid] [com.example.ui :as ui] [com.example.settings :as settings] [rum.core :as rum] [xtdb.api :as xt])) (def email-disabled-notice ...
null
https://raw.githubusercontent.com/jacobobryant/biff/6a5ba0a7a0a052d3ee88adaad645dcddf8bc3876/example/src/com/example/feat/home.clj
clojure
(ns com.example.feat.home (:require [clj-http.client :as http] [com.biffweb :as biff] [com.example.middleware :as mid] [com.example.ui :as ui] [com.example.settings :as settings] [rum.core :as rum] [xtdb.api :as xt])) (def email-disabled-notice ...
dc8c678eb30b3f1971dc120fce4f172cc0fc848ae357f69ced578c6f2c82166a
lambdaisland/deep-diff2
html.cljc
(ns lambdaisland.deep-diff2.puget.color.html "Coloring implementation that wraps text in HTML tags to apply color. Supports the following modes for `:color-markup`: - `:html-inline` applies inline `style` attributes to the tags. - `:html-classes` adds semantic `class` attributes to the tags." (:require [...
null
https://raw.githubusercontent.com/lambdaisland/deep-diff2/2ef429227ac9986024e6c8f63ded9a88eb3fe9c2/src/lambdaisland/deep_diff2/puget/color/html.cljc
clojure
"})) ))
(ns lambdaisland.deep-diff2.puget.color.html "Coloring implementation that wraps text in HTML tags to apply color. Supports the following modes for `:color-markup`: - `:html-inline` applies inline `style` attributes to the tags. - `:html-classes` adds semantic `class` attributes to the tags." (:require [...
70475b174c0e2515f23da1301d773ecb9f0f21eb8e5691d9ec4659c0777188bb
samply/blaze
token_test.clj
(ns blaze.page-store.local.token-test (:require [blaze.page-store.local.token :as token] [clojure.test :refer [deftest is]]) (:import [java.security SecureRandom])) (deftest generate-test Base 32 = 5 bit per char = 32 * 5 bit = 160 bit (is (= 32 (count (token/generate (SecureRandom.))))))
null
https://raw.githubusercontent.com/samply/blaze/cbf6431a254f347a704f1abe1de4f4fe8a249ac9/modules/page-store/test/blaze/page_store/local/token_test.clj
clojure
(ns blaze.page-store.local.token-test (:require [blaze.page-store.local.token :as token] [clojure.test :refer [deftest is]]) (:import [java.security SecureRandom])) (deftest generate-test Base 32 = 5 bit per char = 32 * 5 bit = 160 bit (is (= 32 (count (token/generate (SecureRandom.))))))
ca40978f2dff1d6b0af00b096d84e96f1c3aadc7d6fa06d437bf951c4c19554f
hstreamdb/hstream
StatsIntegrationSpec.hs
module HStream.StatsIntegrationSpec (spec) where import Test.Hspec import Control.Monad import qualified Data.Map.Strict as Map import qualified Data.Text as T import qualified Data.Vector as V import Network.GRPC.HighLevel.Gen...
null
https://raw.githubusercontent.com/hstreamdb/hstream/60dfcaba7d3d6f1592127fb6f005a9afc01d7bcb/hstream/test/HStream/StatsIntegrationSpec.hs
haskell
module HStream.StatsIntegrationSpec (spec) where import Test.Hspec import Control.Monad import qualified Data.Map.Strict as Map import qualified Data.Text as T import qualified Data.Vector as V import Network.GRPC.HighLevel.Gen...
fc8971011c8ff11826889fcba8dce4e56d640811c064ffebaa854094aeb85db9
slyrus/mcclim-old
drei.lisp
;;; -*- Mode: Lisp; Package: DREI -*- ( c ) copyright 2005 by ( ) ( c ) copyright 2005 by ( ) ( c ) copyright 2005 by ( ) ( c ) copyright 2006 - 2007 by ( ) ;;; This library is free software; you can redistribute it and/or modify it under the t...
null
https://raw.githubusercontent.com/slyrus/mcclim-old/354cdf73c1a4c70e619ccd7d390cb2f416b21c1a/Drei/drei.lisp
lisp
-*- Mode: Lisp; Package: DREI -*- This library is free software; you can redistribute it and/or either This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU License along w...
( c ) copyright 2005 by ( ) ( c ) copyright 2005 by ( ) ( c ) copyright 2005 by ( ) ( c ) copyright 2006 - 2007 by ( ) modify it under the terms of the GNU Library General Public version 2 of the License , or ( at your option ) any later vers...
8d7ea04b5a044a7b9261834ab27c6e43e726611d7987f702553e7a00344ff7fa
originrose/cortex
cuda_layers_test.clj
(ns ^:gpu cortex.compute.nn.cuda-layers-test (:require [cortex.compute.verify.utils :refer [def-double-float-test] :as verify-utils] [clojure.test :refer :all] [cortex.verify.nn.layers :as verify-layers] [cortex.nn.execute :as execute])) (use-fixtures :each verify-utils/test-wrapp...
null
https://raw.githubusercontent.com/originrose/cortex/94b1430538e6187f3dfd1697c36ff2c62b475901/test/clj/cortex/compute/nn/cuda_layers_test.clj
clojure
(ns ^:gpu cortex.compute.nn.cuda-layers-test (:require [cortex.compute.verify.utils :refer [def-double-float-test] :as verify-utils] [clojure.test :refer :all] [cortex.verify.nn.layers :as verify-layers] [cortex.nn.execute :as execute])) (use-fixtures :each verify-utils/test-wrapp...
9fcb93424eb5ab0dfe4056e246b90366b79e186f0b88be0bd88f0a8f50715857
ocaml-ppx/ocamlformat
unclosed_struct.ml
module M = struct type t = T
null
https://raw.githubusercontent.com/ocaml-ppx/ocamlformat/9324ea439a77b4f3a31e9302b97ce1812cf8f17d/vendor/parser-recovery/test/expect/structure/unclosed_struct.ml
ocaml
module M = struct type t = T
ba56d1ad75061513478475d27c4d43e51f7b468c702fb4902a833e8e480c3206
sig-gis/gridfire
magellan_bridge.clj
;; [[file:../../org/GridFire.org::*Magellan][Magellan:1]] (ns gridfire.magellan-bridge (:require [clojure.core.matrix :as m] [magellan.core :refer [read-raster]] [magellan.raster.inspect :as inspect]) (:import org.geotools.coverage.grid.GridGeometry2D org.geotools.re...
null
https://raw.githubusercontent.com/sig-gis/gridfire/44aeaf56fceb01f61b21db6220d2cb562a92570b/src/gridfire/magellan_bridge.clj
clojure
[[file:../../org/GridFire.org::*Magellan][Magellan:1]]
(ns gridfire.magellan-bridge (:require [clojure.core.matrix :as m] [magellan.core :refer [read-raster]] [magellan.raster.inspect :as inspect]) (:import org.geotools.coverage.grid.GridGeometry2D org.geotools.referencing.operation.transform.AffineTransform2D)) (defn g...
832ccaf65d47c955a086c535e936f462c31ee8355b3d6521e27b4d4a43e61440
craigfe/sink
deriver.ml
open Ppxlib let split_at_index : int -> string -> string * string = fun i s -> (String.sub s 0 i, String.sub s i (String.length s - i)) let split_integer_suffix s : string * int option = let last = String.length s - 1 in let digit_at_index i = let c = s.[i] in 48 <= Char.code c && Char.code c < 58 in ...
null
https://raw.githubusercontent.com/craigfe/sink/c5431edfa1b06f1a09845a481c4afcb3e92f0667/src/ppx_deriving_infix/deriver.ml
ocaml
The whole string is an integer * {[ let ( >>= ) = S.bind ]} pmod_constraint * Infix alias of {!S.bind}. Ignored signature items Nested Classes * Traverse the module type, replacing all instances of ['a t] with [('a, br) app].
open Ppxlib let split_at_index : int -> string -> string * string = fun i s -> (String.sub s 0 i, String.sub s i (String.length s - i)) let split_integer_suffix s : string * int option = let last = String.length s - 1 in let digit_at_index i = let c = s.[i] in 48 <= Char.code c && Char.code c < 58 in ...
764c9244ef974eb87a1f049bdfdda11c0ac32504ab8043e5e1b56bc3c9332c64
evilmartians/foundry
table.ml
open Sexplib.Std open Unicode.Std open ExtList type 'a t = (string, 'a) Hashtbl.t with sexp_of let newtable len f = let table = Hashtbl.create len in f table; table let fill table lst = List.iter (fun (k, v) -> Hashtbl.replace table k v) lst let create lst = newtable (List.length lst) (fun table -> fi...
null
https://raw.githubusercontent.com/evilmartians/foundry/ce947c7dcca79ab7a7ce25870e9fc0eb15e9c2bd/src/support/table.ml
ocaml
open Sexplib.Std open Unicode.Std open ExtList type 'a t = (string, 'a) Hashtbl.t with sexp_of let newtable len f = let table = Hashtbl.create len in f table; table let fill table lst = List.iter (fun (k, v) -> Hashtbl.replace table k v) lst let create lst = newtable (List.length lst) (fun table -> fi...
e21b14dedf6dd5207c4ca3bceb296f9d26e2f7c2e724ab00b117512a14525128
uwplse/rake
util.rkt
#lang rosette (require (only-in racket/base [equal? rkt-equal?]) (only-in rosette/base/core/term @app) rosette/solver/smt/z3 rosette/lib/match rake/cpp rake/halide rake/hvx/ast/types rake/hvx/ast/visitor rake/hvx/interpreter rake/synthesi...
null
https://raw.githubusercontent.com/uwplse/rake/0fb9b46ae8ac64f95a4c0e89060ffdb043229a5b/rake/synthesis/lowering/util.rkt
racket
we can abstract them out as a symbolic constant(s) Don't bother if the sub-expr is just a load or a broadcast (leaf nodes anyways)
#lang rosette (require (only-in racket/base [equal? rkt-equal?]) (only-in rosette/base/core/term @app) rosette/solver/smt/z3 rosette/lib/match rake/cpp rake/halide rake/hvx/ast/types rake/hvx/ast/visitor rake/hvx/interpreter rake/synthesi...
2c4e77e8d572e262f8df375f96059ed987d3e4fb65e1e8c303bcbc470b29c731
yuriy-chumak/ol
blend_subtract.scm
; =========================================================================== EXT_blend_subtract ( included in OpenGL 1.4 ) ; ; ; Version ; ; Overview ; (define-library (OpenGL EXT blend_subtract) ; --------------------------------------------------------------------------- ; Depe...
null
https://raw.githubusercontent.com/yuriy-chumak/ol/83dd03d311339763682eab02cbe0c1321daa25bc/libraries/OpenGL/EXT/blend_subtract.scm
scheme
=========================================================================== Version Overview --------------------------------------------------------------------------- Dependencies --------------------------------------------------------------------------- ---------------------------------------------------...
EXT_blend_subtract ( included in OpenGL 1.4 ) (define-library (OpenGL EXT blend_subtract) (import (scheme core) (OpenGL platform)) (export EXT_blend_subtract ) (begin (define EXT_blend_subtract (gl:QueryExtension "GL_EXT_blend_subtract")) ))
806cb80e7d723e20d7374879bf08c05ab928b4104d986f360ce70f20f3a12104
racket/plot
plot2d-utils.rkt
#lang typed/racket/base (require racket/list typed/racket/class racket/match "../common/math.rkt" "../common/plot-element.rkt" "../common/nonrenderer.rkt" "../common/format.rkt" "../common/types.rkt" "../common/ticks.rkt" "../plot2d/plot-area.rkt" ...
null
https://raw.githubusercontent.com/racket/plot/c4126001f2c609e36c3aa12f300e9c673ab1a806/plot-lib/plot/private/no-gui/plot2d-utils.rkt
racket
clipping not necessary, levels are always calculated on the complete bounds-rect
#lang typed/racket/base (require racket/list typed/racket/class racket/match "../common/math.rkt" "../common/plot-element.rkt" "../common/nonrenderer.rkt" "../common/format.rkt" "../common/types.rkt" "../common/ticks.rkt" "../plot2d/plot-area.rkt" ...
2f05cafd4603dcbf7314b24bf44cccaedc4b61f0b41e60e9fcabe866bcc03b2a
semilin/layoup
rolll<:SkullCat:974479503097229362>.lisp
(MAKE-LAYOUT :NAME "rolll<:SkullCat:974479503097229362>" :MATRIX (APPLY #'KEY-MATRIX '("youb.xkclv" "iaen,mhsrt" "z'/pwfdgjq")) :SHIFT-MATRIX NIL :KEYBOARD NIL)
null
https://raw.githubusercontent.com/semilin/layoup/27ec9ba9a9388cd944ac46206d10424e3ab45499/data/layouts/rolll%3C%3ASkullCat%3A974479503097229362%3E.lisp
lisp
(MAKE-LAYOUT :NAME "rolll<:SkullCat:974479503097229362>" :MATRIX (APPLY #'KEY-MATRIX '("youb.xkclv" "iaen,mhsrt" "z'/pwfdgjq")) :SHIFT-MATRIX NIL :KEYBOARD NIL)
52cda2011d04787947ae589d47de9a61b6c4722e1a26cdd134a44e94745f73f0
andorp/bead
Group.hs
# LANGUAGE CPP # module Bead.Persistence.SQL.Group where import Control.Applicative import Control.Monad (when) import Data.Maybe import qualified Data.Text as Text import Database.Persist.Sql import qualified Bead.Domain.Entities as Domain import qualified Bead.Domain.Relatio...
null
https://raw.githubusercontent.com/andorp/bead/280dc9c3d5cfe1b9aac0f2f802c705ae65f02ac2/src/Bead/Persistence/SQL/Group.hs
haskell
* Group Persistence Save the group under the given course Load the group from the database Returns the course of the given group Lists all the groups from the database that satisfies the given predicate Returns True if the user is registered in the group, otherwise False Lists all the groups that the user is att...
# LANGUAGE CPP # module Bead.Persistence.SQL.Group where import Control.Applicative import Control.Monad (when) import Data.Maybe import qualified Data.Text as Text import Database.Persist.Sql import qualified Bead.Domain.Entities as Domain import qualified Bead.Domain.Relatio...
9db76b6d9aa22e8846a162fbde71b364d1b6a398e267525e28240d31f9463cc9
jmmk/javascript-externs-generator
views.cljs
(ns javascript-externs-generator.ui.views (:require [re-frame.core :as rf] [clojure.string :as string] [re-com.core :as rc])) (defn alert-box [] (let [alert (rf/subscribe [:alert])] (fn [] (when (not-every? string/blank? [(:heading @alert) (:text @alert)]) [rc/alert-box ...
null
https://raw.githubusercontent.com/jmmk/javascript-externs-generator/fe356e38e029d71b7a5585e396e0374720e06728/src/javascript_externs_generator/ui/views.cljs
clojure
(ns javascript-externs-generator.ui.views (:require [re-frame.core :as rf] [clojure.string :as string] [re-com.core :as rc])) (defn alert-box [] (let [alert (rf/subscribe [:alert])] (fn [] (when (not-every? string/blank? [(:heading @alert) (:text @alert)]) [rc/alert-box ...
c6d585eab8b737125f3ab7e2e88ae77eb0f2a731c4469a2333aae2086f9c93e0
TakaiKinoko/Cornell_CS3110_OCaml
foo.ml
let x = 0 let y = 12 let f x y = x + y
null
https://raw.githubusercontent.com/TakaiKinoko/Cornell_CS3110_OCaml/0a830bc50a5e39f010074dc289161426294cad1d/Chap5_Modules/04compilation_units/foo.ml
ocaml
let x = 0 let y = 12 let f x y = x + y
cc79916e2e4c0f0d7b1f72b241cdcdbda0c254bdb6ec6b2b1857792a530a470c
vivid-inc/ash-ra-template
public_api_test.clj
; Copyright 2020 Vivid Inc. ; 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 L...
null
https://raw.githubusercontent.com/vivid-inc/ash-ra-template/f64be7efd6f52ccd451cddb851f02511d1665b11/art/test/vivid/art/render/public_api_test.clj
clojure
Copyright 2020 Vivid Inc. 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 speci...
distributed under the License is distributed on an " AS IS " BASIS , (ns vivid.art.render.public-api-test (:require [clojure.test :refer :all] [vivid.art :as art] [vivid.art.delimiters] [vivid.art.failure]) (:import (clojure.lang ArityException))) (deftest blank-input (is (= nil (art/rende...
1a446a9a6f70d8ed11adc6918d9a11f5077272714f9fd678e6d03c0f60eacb4b
cram2/cram
package.lisp
Copyright ( c ) 2012 , < > ;;; All rights reserved. ;;; ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions are met: ;;; ;;; * Redistributions of source code must retain the above copyright ;;; notice, this list o...
null
https://raw.githubusercontent.com/cram2/cram/dcb73031ee944d04215bbff9e98b9e8c210ef6c5/cram_pr2/cram_pr2_description/src/package.lisp
lisp
All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Red...
Copyright ( c ) 2012 , < > * Neither the name of the Intelligent Autonomous Systems Group/ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS " IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED . IN NO EVENT SHALL THE COPYRIGHT OWNER OR ...
a0791b835da5e2be8a2f2c7f78f4b92ce654c0f41bcc45f9860c5824641e7dab
tezos/tezos-mirror
test_michelson_v1_macros.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < > Copyright ( c...
null
https://raw.githubusercontent.com/tezos/tezos-mirror/8a1c0d2236bfa9c0143704ac0cdacb6e89b208b0/src/proto_012_Psithaca/lib_client/test/test_michelson_v1_macros.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < > Copyright ( c ) 2019 Nomadic Labs < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITH...
8b58632188c54981d3b0fa0bb98d8da17492b8c75d477a9c0c26029c645caa79
FranklinChen/hugs98-plus-Sep2006
CoordTrans.hs
-------------------------------------------------------------------------------- -- | Module : Graphics . Rendering . OpenGL.GL.CoordTrans Copyright : ( c ) 2002 - 2005 -- License : BSD-style (see the file libraries/OpenGL/LICENSE) -- -- Maintainer : -- Stability : provisional -- Portabil...
null
https://raw.githubusercontent.com/FranklinChen/hugs98-plus-Sep2006/54ab69bd6313adbbed1d790b46aca2a0305ea67e/packages/OpenGL/Graphics/Rendering/OpenGL/GL/CoordTrans.hs
haskell
------------------------------------------------------------------------------ | License : BSD-style (see the file libraries/OpenGL/LICENSE) Maintainer : Stability : provisional Portability : portable OpenGL 1.5 specs. ------------------------------------------------------------------------------ ...
Module : Graphics . Rendering . OpenGL.GL.CoordTrans Copyright : ( c ) 2002 - 2005 This module corresponds to section 2.11 ( Coordinate Transformations ) of the module Graphics.Rendering.OpenGL.GL.CoordTrans ( * Controlling the Viewport depthRange, Position(..), Size(..), viewport, maxView...
1b62d351f6ccc9fb47e33d8f88d14c0dd147df695384b7a80e3b208e0f535604
marick/fp-oo
asteroids-2.clj
This version of ` names - ordered - by ` is for exercise 2 . (defgeneric names-ordered-by [callable] callable) (defspecialized names-ordered-by :default [callable] (fn [things] (map :name (sort-by callable things))))
null
https://raw.githubusercontent.com/marick/fp-oo/434937826d794d6fe02b3e9a62cf5b4fbc314412/old-code/asteroids-2.clj
clojure
This version of ` names - ordered - by ` is for exercise 2 . (defgeneric names-ordered-by [callable] callable) (defspecialized names-ordered-by :default [callable] (fn [things] (map :name (sort-by callable things))))
415e470ea506477ad691b5306915505bdd3a013351a9d9488c78e6451748fad9
NorfairKing/tickler
Protected.hs
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingVia # # LANGUAGE FlexibleInstances # # LANGUAGE LambdaCase # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # # LANGUAGE TypeOperators # # OPTIONS_GHC -fno - warn - orphans # # OPTIONS_GHC -fno - warn ...
null
https://raw.githubusercontent.com/NorfairKing/tickler/2cc2085baa6eb33b1ba56fca7e9195877d0ce875/tickler-api/src/Tickler/API/Protected.hs
haskell
# LANGUAGE OverloadedStrings # | The order of the items is not guaranteed to be the same for every call.
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingVia # # LANGUAGE FlexibleInstances # # LANGUAGE LambdaCase # # LANGUAGE MultiParamTypeClasses # # LANGUAGE RecordWildCards # # LANGUAGE TypeOperators # # OPTIONS_GHC -fno - warn - orphans # # OPTIONS_GHC -fno - warn - overlapping - patterns # module ...
a38a800fef874dbd4c7c08cf92fe41e2cee7c52fefeb920ed851e3459b5555b7
tmfg/mmtis-national-access-point
transport_service_common.cljs
(ns ote.views.transport-service.transport-service-common "View parts that are common to all transport service forms." (:require [clojure.string :as str] [tuck.core :as tuck] [reagent.core :as r] [cljs-react-material-ui.reagent :as ui] [cljs-react-material-ui.icons :as...
null
https://raw.githubusercontent.com/tmfg/mmtis-national-access-point/8d692d270480acb06a06cfdd8cb5dc8b396ded5b/ote/src/cljs/ote/views/transport_service/transport_service_common.cljs
clojure
Wrap value with vector to support current type of format field in the database. validate external interface again, if changing format. Invoke event asynchronously so that the value will be update before sending the validation request to prevent stuttering user interface. For other rows, if this required field is m...
(ns ote.views.transport-service.transport-service-common "View parts that are common to all transport service forms." (:require [clojure.string :as str] [tuck.core :as tuck] [reagent.core :as r] [cljs-react-material-ui.reagent :as ui] [cljs-react-material-ui.icons :as...
8cc777a7023c4a5f603a2e6093fd1756624e0dbcee6ced208bc67c7d4fb4b5e2
hasufell/stack2cabal
Main.hs
# LANGUAGE CPP # # LANGUAGE DuplicateRecordFields # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ViewPatterns # # LANGUAGE RecordWildCards # module Main where import StackageToHackage.Hackage (printFreeze, printProject, stackToCabal) import StackageToHackage.Hpack (hpackInput, execHpack) import StackageToHackage.Sta...
null
https://raw.githubusercontent.com/hasufell/stack2cabal/160ae10b9e78c398803ed7ba4ab9d49c553df42d/exe/Main.hs
haskell
# LANGUAGE OverloadedStrings # ^ fuzzy date string read stack file run conversion write files included in the cabal.project
# LANGUAGE CPP # # LANGUAGE DuplicateRecordFields # # LANGUAGE ViewPatterns # # LANGUAGE RecordWildCards # module Main where import StackageToHackage.Hackage (printFreeze, printProject, stackToCabal) import StackageToHackage.Hpack (hpackInput, execHpack) import StackageToHackage.Stackage (localDirs, readStack) impor...
9b7028672f7dc9862fc25f77cb2e668fbf0cd510c5842d5de125fec3c6e4e8de
SamB/coq
tacinterp.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/SamB/coq/8f84aba9ae83a4dc43ea6e804227ae8cae8086b1/tactics/tacinterp.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** i $Id$ i i i Values for interpretat...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Dyn open Pp open Util...
d8c3206d661e083f186bfff497786c19d68b0d12edc678fa979680a035d92143
jrm-code-project/LISP-Machine
b.lisp
-*- Mode : LISP ; Package : USER ; ; : ZL -*- (defun to-b (n) (cond ((zerop n) nil) ((evenp n) (cons 'y (to-b (floor n 2)))) ('else (cons 'x (to-b (floor n 2)))))) (defun b-to (l) (cond ((null l) 0) ((eq (car l) 'x) (1+ (* 2 (b-to (cdr l))))) ((eq ...
null
https://raw.githubusercontent.com/jrm-code-project/LISP-Machine/0a448d27f40761fafabe5775ffc550637be537b2/lambda/gjcx/b.lisp
lisp
Package : USER ; ; : ZL -*- (b-diff a ()) = a (b-diff (cons 'y a) (cons 'y b)) = (cons 'y (b-diff a b)) (b-diff (cons 'y a) (cons 'x b)) = (cons 'x (b-diff (b-diff a '(x)) b)) (b-diff (cons 'x a) (cons 'y b)) = (cons 'x (b-diff a b)) (b-diff (cons 'x a) (cons 'x b)) = (cons 'y (b-diff a b))
(defun to-b (n) (cond ((zerop n) nil) ((evenp n) (cons 'y (to-b (floor n 2)))) ('else (cons 'x (to-b (floor n 2)))))) (defun b-to (l) (cond ((null l) 0) ((eq (car l) 'x) (1+ (* 2 (b-to (cdr l))))) ((eq (car l) 'y) (* 2 (b-to (cdr l)))))) (d...
b48ca5a6fa4b9cfd4de9e8b553eeeaa250c2a273082ca2762c480840db2c4279
tlaitinen/yesod-dsl
Common.hs
module YesodDsl.Generator.Common where import YesodDsl.AST import Language.Haskell.HsColour.Classify mkField :: FieldName -> (Bool,FieldContent) -> Field mkField n (o,c) = Field (Loc "" 0 0) o n c [] Nothing brackets :: Bool -> String -> String brackets True s = "(" ++ s ++ ")" brackets False s = s maybeHsJust :: Bo...
null
https://raw.githubusercontent.com/tlaitinen/yesod-dsl/e248471bc708542dd050d96ac9fde627e9e349ae/YesodDsl/Generator/Common.hs
haskell
module YesodDsl.Generator.Common where import YesodDsl.AST import Language.Haskell.HsColour.Classify mkField :: FieldName -> (Bool,FieldContent) -> Field mkField n (o,c) = Field (Loc "" 0 0) o n c [] Nothing brackets :: Bool -> String -> String brackets True s = "(" ++ s ++ ")" brackets False s = s maybeHsJust :: Bo...
8300b7617195b7cbfdb3cf0f8973c4cac900417c6077baee605231703607b0fc
phantomics/seed
package.lisp
package.lisp (defpackage #:demo-sheet (:export) (:use #:common-lisp #:april #:array-operations #:seed.app-model.sheet.base #:seed.sublimate #:seed.app-model.graph.garden-path #:seed.app-model.document-slate.base))
null
https://raw.githubusercontent.com/phantomics/seed/f128969c671c078543574395d6b23a1a5f2723f8/demo-sheet/package.lisp
lisp
package.lisp (defpackage #:demo-sheet (:export) (:use #:common-lisp #:april #:array-operations #:seed.app-model.sheet.base #:seed.sublimate #:seed.app-model.graph.garden-path #:seed.app-model.document-slate.base))
79899f21b3d6683013338804e35c17a43920c2b4840e960889e131f9ea84de82
hpyhacking/openpoker
op_exch_event.erl
-module(op_exch_event). -export([start_link/0, add_handler/2, delete_handler/2]). -export([dispatch/1, cast/1, phantom/1, advance/1, init/2]). start_link() -> gen_event:start_link({local, ?MODULE}). add_handler(Handler, Args) -> gen_event:add_handler(?MODULE, Handler, Args). delete_handler(Handler, Args) -> ge...
null
https://raw.githubusercontent.com/hpyhacking/openpoker/643193c94f34096cdcfcd610bdb1f18e7bf1e45e/src/op_exch_event.erl
erlang
io:format('~n~n================================~n~p~n', [Msg]),
-module(op_exch_event). -export([start_link/0, add_handler/2, delete_handler/2]). -export([dispatch/1, cast/1, phantom/1, advance/1, init/2]). start_link() -> gen_event:start_link({local, ?MODULE}). add_handler(Handler, Args) -> gen_event:add_handler(?MODULE, Handler, Args). delete_handler(Handler, Args) -> ge...
ae047c3f29872a24a417c5525dba9b0d2b37bc871b0cbae45b787f4f779ac650
jyp/lp-diagrams
Diagrams.hs
module Graphics.Diagrams (module D) where import Graphics.Diagrams.Core as D import Graphics.Diagrams.Path as D import Graphics.Diagrams.Point as D import Graphics.Diagrams.Shape as D import Graphics.Diagrams.Object as D
null
https://raw.githubusercontent.com/jyp/lp-diagrams/d334eee4343f340976c09d0da27431d5777a0266/Graphics/Diagrams.hs
haskell
module Graphics.Diagrams (module D) where import Graphics.Diagrams.Core as D import Graphics.Diagrams.Path as D import Graphics.Diagrams.Point as D import Graphics.Diagrams.Shape as D import Graphics.Diagrams.Object as D
86413b91c9c99c62ffec28c37f26cc352fdcc2f7c3ce7ff0c643b381da577f3a
blindglobe/clocc
sketchpad.lisp
-*- Mode : Common - Lisp ; Package : CLIO - EXAMPLES ; ; Lowercase : T ; Syntax : Common - Lisp -*- ;;;----------------------------------------------------------------------------------+ ;;; | ;;; TEXAS INSTRU...
null
https://raw.githubusercontent.com/blindglobe/clocc/a50bb75edb01039b282cf320e4505122a59c59a7/src/gui/clue/clio/examples/sketchpad.lisp
lisp
Package : CLIO - EXAMPLES ; ; Lowercase : T ; Syntax : Common - Lisp -*- ----------------------------------------------------------------------------------+ | TEXAS INSTRUMENTS INCORPORATED ...
, TEXAS 78714 - 9149 | Copyright ( C ) 1990 Texas Instruments Incorporated . | All Rights Reserved | set forth in subdivision ( b)(3)(ii ) of the Rights in Tec...
cc812de44de6e51bd142d7e116ffc93076369a199529b598f3b3d94bc63076b2
burkaydurdu/muggle
views.cljs
(ns muggle.home.views (:require [reagent.core :as reagent] [muggle.home.subs] [ajax.core :refer [GET]] [re-frame.core :refer [dispatch subscribe]] [muggle.util :refer [create-request-map api-url get-image]])) (defn get-sorting [] (let [m {:handler (fn [r] (disp...
null
https://raw.githubusercontent.com/burkaydurdu/muggle/8c457397305be6ea2848a2537669a700d0147997/src/muggle/home/views.cljs
clojure
(ns muggle.home.views (:require [reagent.core :as reagent] [muggle.home.subs] [ajax.core :refer [GET]] [re-frame.core :refer [dispatch subscribe]] [muggle.util :refer [create-request-map api-url get-image]])) (defn get-sorting [] (let [m {:handler (fn [r] (disp...
0a0852ede7461f68c0c3057d59e7dace6c15926b9a917c6b7738d98fca057a5b
modular-macros/ocaml-macros
test_string.ml
let rec build_string f n accu = if n <= 0 then String.concat "" accu else build_string f (n-1) (f (n-1) :: accu) ;; let char n = String.make 1 (Char.chr n);; let reference n = if n = 8 then "\\b" else if n = 9 then "\\t" else if n = 10 then "\\n" else if n = 13 then "\\r" else if n = Char.code '\"...
null
https://raw.githubusercontent.com/modular-macros/ocaml-macros/05372c7248b5a7b1aa507b3c581f710380f17fcd/testsuite/tests/lib-string/test_string.ml
ocaml
GPR#805/815/833
let rec build_string f n accu = if n <= 0 then String.concat "" accu else build_string f (n-1) (f (n-1) :: accu) ;; let char n = String.make 1 (Char.chr n);; let reference n = if n = 8 then "\\b" else if n = 9 then "\\t" else if n = 10 then "\\n" else if n = 13 then "\\r" else if n = Char.code '\"...
5717ffc8829d04697bfd6eb560cf43964514f1b66729e6a75a2c79d16d821054
ghc/testsuite
tcfail214.hs
# LANGUAGE TypeFamilies , ConstraintKinds # module ShouldFail where import GHC.Prim( Constraint ) type family F a :: Constraint class C a where instance (F a) => C [a] where
null
https://raw.githubusercontent.com/ghc/testsuite/998a816ae89c4fd573f4abd7c6abb346cf7ee9af/tests/typecheck/should_fail/tcfail214.hs
haskell
# LANGUAGE TypeFamilies , ConstraintKinds # module ShouldFail where import GHC.Prim( Constraint ) type family F a :: Constraint class C a where instance (F a) => C [a] where
9c52ecafd1e647c6c29df7752fcc222d851a92b5a6e86910291dfbcf056a991e
polysemy-research/polysemy-zoo
Capture.hs
# LANGUAGE AllowAmbiguousTypes , TemplateHaskell , Trustworthy # module Polysemy.Capture (-- * Effect Capture(..) -- * Actions , reify , reflect , delimit , delimit' , capture -- * Interpretations , runCapture , runCaptureWithC -- * Prompt types , Ref(..) ) where import Control.Mon...
null
https://raw.githubusercontent.com/polysemy-research/polysemy-zoo/eb0ce40e4d3b9757ede851a3450c05cc42949b49/src/Polysemy/Capture.hs
haskell
* Effect * Actions * Interpretations * Prompt types --------------------------------------------------------------------------- continuations can't leave the scope in which they are provided. __Note__: Any computation used in a higher-order effect will be delimited. Activating polysemy-plugin is highly recomm...
# LANGUAGE AllowAmbiguousTypes , TemplateHaskell , Trustworthy # module Polysemy.Capture Capture(..) , reify , reflect , delimit , delimit' , capture , runCapture , runCaptureWithC , Ref(..) ) where import Control.Monad import Control.Monad.Cont (ContT(..)) import Polysemy import Polysemy.Int...
4efa7d058cc232d06f33fb214d88e6be39aa581ce826e6b1b8ef277b909e63c8
racket/draw
clip-check.rkt
#lang racket/base (require racket/draw racket/class) Check for a bug in Cairo that we 've explicitly patched : (define dc (new bitmap-dc% [bitmap (make-object bitmap% 100 100)])) (define pp (send dc get-pen)) (let ([p (send dc get-pen)]) (send dc set-pen (send the-pen-list find-or-create-pen (send p get-...
null
https://raw.githubusercontent.com/racket/draw/a6558bdc18438e784c23d452ffd877dac867a7fd/draw-test/tests/racket/draw/clip-check.rkt
racket
#lang racket/base (require racket/draw racket/class) Check for a bug in Cairo that we 've explicitly patched : (define dc (new bitmap-dc% [bitmap (make-object bitmap% 100 100)])) (define pp (send dc get-pen)) (let ([p (send dc get-pen)]) (send dc set-pen (send the-pen-list find-or-create-pen (send p get-...
38cdb66d8e97ce7af5a522719178709ca52ddb1a99fd3a9fa7c714e115723eb8
vmware-archive/vprobe-toolkit
symtab.ml
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright 2009 VMware , Inc. All rights reserved . * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright 2009 VMware,...
null
https://raw.githubusercontent.com/vmware-archive/vprobe-toolkit/81ec188659b3da53e81c2922691fb0a04dd85092/emmett/symtab.ml
ocaml
* Symtab module: the global symbol table that keeps information about * all identifiers in a program: variables, functions, probes, type * names, and structure names. For each identifier, the table * maintains an entry with relevant information for that identifier. * The symbol table also maintains a mapping of g...
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright 2009 VMware , Inc. All rights reserved . * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright 2009 VMware,...