_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
6ad9fed3ed54faa56366275cde908d27ce3dfc894670b29e807cf28275a5857d
bobzhang/ocaml-book
test.ml
let _ = use ch = open_in_bin "/bin/sh" in print_int (input_binary_int ch); print_newline () let _ = use hdl = Unix.opendir "." in try while true do print_endline (Unix.readdir hdl) done with End_of_file -> () let _ = use ch = Unix.open_process_in "date" in print_endline (input_line ch) let _ ...
null
https://raw.githubusercontent.com/bobzhang/ocaml-book/09a575b0d1fedfce565ecb9a0ae9cf0df37fdc75/camlp4/examples/pa_use_0.01/test.ml
ocaml
we don't "use" "fd" here, because when "ch" is closed, its underlying "fd" will be closed automatically. with explicit finializer
let _ = use ch = open_in_bin "/bin/sh" in print_int (input_binary_int ch); print_newline () let _ = use hdl = Unix.opendir "." in try while true do print_endline (Unix.readdir hdl) done with End_of_file -> () let _ = use ch = Unix.open_process_in "date" in print_endline (input_line ch) let _ ...
f601c16325b5be9e9f3f8f724f966fe6f71c7514255bcafa0d86ddac853adfd0
falgon/htcc
Test2.hs
# LANGUAGE OverloadedStrings , TupleSections # module Tests.Test2 ( test ) where import Control.Exception (finally) import Control.Monad (forM_) import qualified Data.Text as T import Tests.Utils test :: String -> [String] -> IO (Int, String) test x fnames = let obj = map...
null
https://raw.githubusercontent.com/falgon/htcc/3cef6fc362b00d4bc0ae261cba567bfd9c69b3c5/test/Tests/Test2.hs
haskell
# LANGUAGE OverloadedStrings , TupleSections # module Tests.Test2 ( test ) where import Control.Exception (finally) import Control.Monad (forM_) import qualified Data.Text as T import Tests.Utils test :: String -> [String] -> IO (Int, String) test x fnames = let obj = map...
4c867fc095e0e58094bdcae88a6ab0fc3e5ac9d198ba5e215d6c3ab4d7f6e767
haskell-opengl/OpenGLRaw
DebugLabel.hs
# LANGUAGE PatternSynonyms # -------------------------------------------------------------------------------- -- | -- Module : Graphics.GL.EXT.DebugLabel Copyright : ( c ) 2019 -- License : BSD3 -- Maintainer : < > -- Stability : stable -- Portability : portable -- ---------------------...
null
https://raw.githubusercontent.com/haskell-opengl/OpenGLRaw/57e50c9d28dfa62d6a87ae9b561af28f64ce32a0/src/Graphics/GL/EXT/DebugLabel.hs
haskell
------------------------------------------------------------------------------ | Module : Graphics.GL.EXT.DebugLabel License : BSD3 Stability : stable Portability : portable ------------------------------------------------------------------------------ * Extension Support * Enums * Functions
# LANGUAGE PatternSynonyms # Copyright : ( c ) 2019 Maintainer : < > module Graphics.GL.EXT.DebugLabel ( glGetEXTDebugLabel, gl_EXT_debug_label, pattern GL_BUFFER_OBJECT_EXT, pattern GL_PROGRAM_OBJECT_EXT, pattern GL_PROGRAM_PIPELINE_OBJECT_EXT, pattern GL_QUERY_OBJECT_EXT, pattern GL_S...
49c82d8d6956b5f7264653b0800a4d9f557adad7621210baf0a03d439a98d360
tek/polysemy-hasql
Query.hs
module Polysemy.Hasql.Query where import Hasql.Encoders (Params) import Polysemy.Db.Data.Rep (Auto, IdQuery, PrimaryKey, UidRep) import qualified Polysemy.Hasql.Data.Query as Query import Polysemy.Hasql.Data.Query (Query, UidQuery) import Polysemy.Hasql.Data.QueryTable (QueryTable (QueryTable)) import Polysemy.Hasql....
null
https://raw.githubusercontent.com/tek/polysemy-hasql/00d02ca40a23eaade1410057adffd3a0e7bfb5f4/packages/hasql/lib/Polysemy/Hasql/Query.hs
haskell
# inline interpretQueryWith # # inline interpretQueryAuto #
module Polysemy.Hasql.Query where import Hasql.Encoders (Params) import Polysemy.Db.Data.Rep (Auto, IdQuery, PrimaryKey, UidRep) import qualified Polysemy.Hasql.Data.Query as Query import Polysemy.Hasql.Data.Query (Query, UidQuery) import Polysemy.Hasql.Data.QueryTable (QueryTable (QueryTable)) import Polysemy.Hasql....
4a77a493d479aaf10b2d5682f876e1b02cf7c41299a7b2e2ced4d0043b90e5d3
sky-big/RabbitMQ
rabbit_tracing_app.erl
The contents of this file are subject to the Mozilla Public License %% Version 1.1 (the "License"); you may not use this file except in %% compliance with the License. You may obtain a copy of the License %% at / %% Software distributed under the License is distributed on an " AS IS " %% basis, WITHOUT WARRANTY OF ...
null
https://raw.githubusercontent.com/sky-big/RabbitMQ/d7a773e11f93fcde4497c764c9fa185aad049ce2/plugins-src/rabbitmq-tracing/src/rabbit_tracing_app.erl
erlang
Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at / basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
The contents of this file are subject to the Mozilla Public License Software distributed under the License is distributed on an " AS IS " The Original Code is RabbitMQ . The Initial Developer of the Original Code is GoPivotal , Inc. Copyright ( c ) 2007 - 2014 GoPivotal , Inc. All rights reserved . -module...
c6457d2ae8b1c92e766db3cfb4f9fe5ec3115431796737e4d99561581ef359fc
pallet/postgres-crate
postgres_test.clj
(ns pallet.crate.postgres-test (:require [pallet.action.exec-script :as exec-script] [pallet.action.package :as package] [pallet.build-actions :as build-actions] [pallet.core :as core] [pallet.crate.automated-admin-user :as automated-admin-user] [pallet.crate.network-service :as network-service] ...
null
https://raw.githubusercontent.com/pallet/postgres-crate/f5bc430d2fdec29de8a26602f6c2f2806db09318/test/pallet/crate/postgres_test.clj
clojure
just check for compile errors for now
(ns pallet.crate.postgres-test (:require [pallet.action.exec-script :as exec-script] [pallet.action.package :as package] [pallet.build-actions :as build-actions] [pallet.core :as core] [pallet.crate.automated-admin-user :as automated-admin-user] [pallet.crate.network-service :as network-service] ...
9ab333ec86df12ccd90cc6b443783d9871e3912a988f8f450eb7abdb2088d127
racket/plot
66.rkt
#lang racket (require rackunit plot racket/draw racket/runtime-path "../helpers.rkt") ;; Tests for: : color-field (define (do-plot-color-field output-fn) (output-fn (color-field (λ (x y) (define z (make-rectangular x y)) (if (< (magnitude z) 1) (cond ...
null
https://raw.githubusercontent.com/racket/plot/c4126001f2c609e36c3aa12f300e9c673ab1a806/plot-test/plot/tests/PRs/66.rkt
racket
Tests for: : color-field
#lang racket (require rackunit plot racket/draw racket/runtime-path "../helpers.rkt") (define (do-plot-color-field output-fn) (output-fn (color-field (λ (x y) (define z (make-rectangular x y)) (if (< (magnitude z) 1) (cond [(< (magnitude z)...
04e2baacb3f08c7b36870fa5a06351b153c59a3488af91820ecab67cd13c5eb5
spurious/sagittarius-scheme-mirror
%3a60.scm
-*- mode : scheme ; coding : utf-8 ; -*- ;;; ;;; integer-bits.scm - SRFI-60 Integers as Bits ;;; Copyright ( c ) 2014 < > ;;; ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions ;;; are met: ;;; ;;; 1....
null
https://raw.githubusercontent.com/spurious/sagittarius-scheme-mirror/53f104188934109227c01b1e9a9af5312f9ce997/sitelib/srfi/%253a60.scm
scheme
coding : utf-8 ; -*- integer-bits.scm - SRFI-60 Integers as Bits Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this l...
Copyright ( c ) 2014 < > " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED LIABILITY , WHETHER IN CONTRACT , STRICT LIABILITY , OR TORT ( INCLUDING (library (srfi :60) (export :all) (import (s...
bfbe98067dcc547c2a4ecf4aa4ec0f33cff9a458814b128734e7b44193573768
joneshf/open-source
AccessToken.hs
# LANGUAGE GeneralizedNewtypeDeriving # | Module : . AccessToken Description : The access token for a project on . Copyright : ( c ) , 2017 License : BSD3 Maintainer : Stability : experimental Module : Rollbar.AccessToken Description : The acce...
null
https://raw.githubusercontent.com/joneshf/open-source/e3412fc68c654d89a8d3af4e12ac19c70e3055ec/packages/rollbar-hs/src/Rollbar/AccessToken.hs
haskell
| Should have the scope "post_server_item".
# LANGUAGE GeneralizedNewtypeDeriving # | Module : . AccessToken Description : The access token for a project on . Copyright : ( c ) , 2017 License : BSD3 Maintainer : Stability : experimental Module : Rollbar.AccessToken Description : The acce...
76819b0e981f656bc5d137a15d50f9f3ba8e91652f7e39f142c8c772fa3f3e76
irr/erl-tutorials
ch_server.erl
-module(ch_server). -behaviour(gen_server). -export([start_link/0]). -export([alloc/1, free/1, show/0, redis/0]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). -define(TIMEOUT, 1000). start_link() -> gen_server:start_link...
null
https://raw.githubusercontent.com/irr/erl-tutorials/da68b1c08baf6bdf46e7e8d3381d796e93c0357c/otp14b/src/ch_server.erl
erlang
-module(ch_server). -behaviour(gen_server). -export([start_link/0]). -export([alloc/1, free/1, show/0, redis/0]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). -define(TIMEOUT, 1000). start_link() -> gen_server:start_link...
c47e4dbd2fc76852a2ba53b7df106b07834abebf1d643a98de6a0f52f36400d7
pentlandedge/s4607
free_text.erl
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright 2016 Pentland Edge Ltd. %% 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 %% %% U...
null
https://raw.githubusercontent.com/pentlandedge/s4607/b3cdae404ac5bd50419f33259dfa62af9d1a8d60/src/free_text.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 limitati...
Copyright 2016 Pentland Edge Ltd. 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 standard . -module(free_text). -export([ decode/1, encode/1, new/3, payload_size/1, to_di...
8575061d72348b4bf3b9dd6cc19e01409ef40dc31f52768a6755f151f4f0933d
kmi/irs
base64.lisp
(in-package #:ocml) (in-ontology mime) ;;; XXX This should be a relation (#_base64), not a function. (def-function #_encode-base64 (octets) :lisp-fun #'base64:usb8-array-to-base64-string)
null
https://raw.githubusercontent.com/kmi/irs/e1b8d696f61c6b6878c0e92d993ed549fee6e7dd/ontologies/domains/mime/base64.lisp
lisp
XXX This should be a relation (#_base64), not a function.
(in-package #:ocml) (in-ontology mime) (def-function #_encode-base64 (octets) :lisp-fun #'base64:usb8-array-to-base64-string)
e00e6d1eb3e8318c5049e81a0b98d5b93f8df4660d5d3b398971db1ffe3036bf
billstclair/trubanc-lisp
package.lisp
$ I d : package.lisp 452 2008 - 10 - 22 07:18:07Z ctian $ ;;;; $URL: svn+ssh $ ;;;; See the LICENSE file for licensing information. #+lispworks (cl:require "comm") (cl:eval-when (:execute :load-toplevel :compile-toplevel) (cl:defpackage :usocket (:use :cl) (:export #:*wildcard-host* #:*aut...
null
https://raw.githubusercontent.com/billstclair/trubanc-lisp/5436d2eca5b1ed10bc47eec7080f6cb90f98ca65/systems/usocket-0.4.1/package.lisp
lisp
$URL: svn+ssh $ See the LICENSE file for licensing information. socket constructors and methods waiting for input-ready state (select() like) convenience macros socket object and accessors Network utility functions conditions errors conditions regarding usocket support level
$ I d : package.lisp 452 2008 - 10 - 22 07:18:07Z ctian $ #+lispworks (cl:require "comm") (cl:eval-when (:execute :load-toplevel :compile-toplevel) (cl:defpackage :usocket (:use :cl) (:export #:*wildcard-host* #:*auto-port* #:socket-listen #:socket-accept ...
e4515d9afc188c1d85af77cf6d97612934215ae092311894c20198314d5e7019
fulcro-legacy/fulcro-datomic
test_user_20160405.clj
(ns sample-migrations.migrations.test.test-user-20160405 (:require [fulcro.datomic.schema :as s])) (defn transactions [] [(s/generate-schema [(s/schema address (s/fields [zipcode :long])) (s/schema user (s/fields [username :string] [address :ref :one] ...
null
https://raw.githubusercontent.com/fulcro-legacy/fulcro-datomic/262fb629fc250a8675afacf7b16ac876d47cb597/specs/sample_migrations/migrations/test/test_user_20160405.clj
clojure
(ns sample-migrations.migrations.test.test-user-20160405 (:require [fulcro.datomic.schema :as s])) (defn transactions [] [(s/generate-schema [(s/schema address (s/fields [zipcode :long])) (s/schema user (s/fields [username :string] [address :ref :one] ...
f7381efe628281289fbd2fd7005e4d33cd9ef874a9ba8eba0191c8838bcbecc6
chetmurthy/ensemble
fqueue.mli
(**************************************************************) (* FQUEUE.MLI : functional queues *) Author : , 4/95 (**************************************************************) type 'a t (* Check if empty. *) val is_empty : 'a t -> bool (* An empty queue. *) val empty: 'a t (* [add x q] adds the ele...
null
https://raw.githubusercontent.com/chetmurthy/ensemble/8266a89e68be24a4aaa5d594662e211eeaa6dc89/ensemble/server/util/fqueue.mli
ocaml
************************************************************ FQUEUE.MLI : functional queues ************************************************************ Check if empty. An empty queue. [add x q] adds the element [x] at the end of the queue [q]. Return the number of elements in a queue. [iter f q] appli...
Author : , 4/95 type 'a t val is_empty : 'a t -> bool val empty: 'a t val add: 'a -> 'a t -> 'a t [ take q ] removes and returns the first element in queue * [ q ] , or fails if the queue is empty . * [q], or fails if the queue is empty. *) val take: 'a t -> 'a * 'a t [ peek q ] returns the f...
fdb089db169e6195dc3e17a7bf7a458fa72dcfe8314e0e175ec6d48959384ddd
spawnfest/eep49ers
error_logger_h_SUITE.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2015 - 2018 . 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/error_logger_h_SUITE.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 2015 - 2018 . 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(error_logger_h_SUITE). -export([all/0, suite/0,groups/0,init_per_suite/1, end_per_suite/1, init_per_group/2...
8f4ed3ae905ed22cc5d4eec2aa1da2491d71c7e93484484ad6965d61b9e38733
sapristi/easy_logging
formatters.ml
This file is part of easy_logging . 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 /. This file is part of easy_logging. This Source Code Form is subject to the ter...
null
https://raw.githubusercontent.com/sapristi/easy_logging/cd6cbf711159632706870a3f5928dbf7d5e7cedc/easy_logging/formatters.ml
ocaml
* {1 Formatting functions} * Auxiliary functions. * Human readable log messages. * Human readable log messages, with level depending colors. * JSON object.
This file is part of easy_logging . 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 /. This file is part of easy_logging. This Source Code Form is subject to the ter...
72280372e3c70f443e77f00d0308bc039454d5fff48fb95ba1769260ce313a71
luminus-framework/examples
env.clj
(ns multi-client-ws-immutant.env (:require [clojure.tools.logging :as log])) (def defaults {:init (fn [] (log/info "\n-=[multi-client-ws-immutant started successfully]=-")) :stop (fn [] (log/info "\n-=[multi-client-ws-immutant has shut down successfully]=-")) :middleware identity})
null
https://raw.githubusercontent.com/luminus-framework/examples/cbeee2fef8f457a6a6bac2cae0b640370ae2499b/multi-client-ws-immutant/env/prod/clj/multi_client_ws_immutant/env.clj
clojure
(ns multi-client-ws-immutant.env (:require [clojure.tools.logging :as log])) (def defaults {:init (fn [] (log/info "\n-=[multi-client-ws-immutant started successfully]=-")) :stop (fn [] (log/info "\n-=[multi-client-ws-immutant has shut down successfully]=-")) :middleware identity})
b356b3d81adc08cb5ead4cbc64211f319cd056c12b8d925680060a7be0fa1270
PacktWorkshops/The-Clojure-Workshop
serena_williams_data.clj
(ns packt-clj.chapter-5-tests.serena-williams-data) (def serena-williams-2015 [{:loser-sets-won 0, :winner-sets-won 2, :winner-name "Williams S.", :loser-name "Van Uytvanck A.", :tournament "Australian Open", :location "Melbourne", :date "2015-01-20"} {:loser-sets-won 0, :winner-sets-w...
null
https://raw.githubusercontent.com/PacktWorkshops/The-Clojure-Workshop/3d309bb0e46a41ce2c93737870433b47ce0ba6a2/Chapter05/tests/packt-clj.chapter-5-tests/src/packt_clj/chapter_5_tests/serena_williams_data.clj
clojure
(ns packt-clj.chapter-5-tests.serena-williams-data) (def serena-williams-2015 [{:loser-sets-won 0, :winner-sets-won 2, :winner-name "Williams S.", :loser-name "Van Uytvanck A.", :tournament "Australian Open", :location "Melbourne", :date "2015-01-20"} {:loser-sets-won 0, :winner-sets-w...
78776b91044927705f4fc7fd2895fc58b13b3acf6603cb87eeb63e43df477004
ocaml-multicore/tezos
state_transitions.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2021 Nomadic Labs < > (* ...
null
https://raw.githubusercontent.com/ocaml-multicore/tezos/e4fd21a1cb02d194b3162ab42d512b7c985ee8a9/src/proto_012_Psithaca/lib_delegate/state_transitions.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2021 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 " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETHER IN AN...
afa3c8c4002ef1154452c2124cda781697c8e6effc23053ee85838efd38e628b
ruricolist/FXML
leaf-node.lisp
;;; -*- show-trailing-whitespace: t; indent-tabs: nil -*- Copyright ( c ) 2007 . 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 t...
null
https://raw.githubusercontent.com/ruricolist/FXML/a0e73bb48ef03adea94a55986cc27f522074c8e1/stp/leaf-node.lisp
lisp
-*- show-trailing-whitespace: t; indent-tabs: nil -*- 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 follo...
Copyright ( c ) 2007 . All rights reserved . DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL INTERRUPTION ) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY , (in-package :fxml.stp.impl) #+sbcl (declaim (optimize (debug 2))) (defmethod %children ((node leaf-node)) nil) (defmethod ...
b903d77cf079a1dc89749509c256d7ef997c36d0728f98f081450d4433470633
LambdaHack/LambdaHack
Slideshow.hs
# LANGUAGE GeneralizedNewtypeDeriving # -- | Slideshows. module Game.LambdaHack.Client.UI.Slideshow ( FontOverlayMap, maxYofFontOverlayMap , KeyOrSlot, MenuSlot, natSlots , ButtonWidth(..) , KYX, xytranslateKXY, xtranslateKXY, ytranslateKXY, yrenumberKXY , OKX, emptyOKX, xytranslateOKX, sideBySideOKX, labDesc...
null
https://raw.githubusercontent.com/LambdaHack/LambdaHack/071f6f0f9690ef9addbc26850f0ab5f1975a459a/engine-src/Game/LambdaHack/Client/UI/Slideshow.hs
haskell
| Slideshows. * Internal operations the position as characters, too, translating to UI positions as needed. The problem is that then I need to do a lot of reverse translation when creating buttons. | Width of on-screen button text, expressed in characters, and so UI (mono font) width is deduced from the used fon...
# LANGUAGE GeneralizedNewtypeDeriving # module Game.LambdaHack.Client.UI.Slideshow ( FontOverlayMap, maxYofFontOverlayMap , KeyOrSlot, MenuSlot, natSlots , ButtonWidth(..) , KYX, xytranslateKXY, xtranslateKXY, ytranslateKXY, yrenumberKXY , OKX, emptyOKX, xytranslateOKX, sideBySideOKX, labDescOKX , Slideshow...
491797af102a10685ca24503c3582c902adc95b79666afbbf587cbd1a4cc64fb
flipstone/orville
ConstraintDefinition.hs
module Orville.PostgreSQL.Internal.ConstraintDefinition ( ConstraintDefinition, uniqueConstraint, foreignKeyConstraint, foreignKeyConstraintWithOptions, ForeignReference (localFieldName, foreignFieldName), foreignReference, ConstraintMigrationKey (ConstraintMigrationKey, constraintKeyType, con...
null
https://raw.githubusercontent.com/flipstone/orville/93a2863eacc461edd2bbcdd21bd06339680037a8/orville-postgresql-libpq/src/Orville/PostgreSQL/Internal/ConstraintDefinition.hs
haskell
| The kind of constraint that is described by a 'ConstraintMigrationKey' (e.g. unique, foreign key). | Gets the 'ConstraintMigrationKey' for the 'ConstraintDefinition' | Gets the SQL expression that will be used to add the constraint to the table. | Constructs a 'ConstraintDefinition' for a @UNIQUE@ cons...
module Orville.PostgreSQL.Internal.ConstraintDefinition ( ConstraintDefinition, uniqueConstraint, foreignKeyConstraint, foreignKeyConstraintWithOptions, ForeignReference (localFieldName, foreignFieldName), foreignReference, ConstraintMigrationKey (ConstraintMigrationKey, constraintKeyType, con...
1a3fbe5cee9eb5b278ec7ef3d3a43527195b9defabe72380f318829ea1f8e1d5
jyh/metaprl
kat_bool.mli
extends Kat_terms
null
https://raw.githubusercontent.com/jyh/metaprl/51ba0bbbf409ecb7f96f5abbeb91902fdec47a19/theories/kat/kat_bool.mli
ocaml
extends Kat_terms
31d777865f499e4c4387840eb387ede2ea4b4d461dcef211d19c51685a05e6f9
marick/Midje
t_background_command.clj
(ns behaviors.background_nesting.t-background-command (:require [clojure.test :refer :all] [midje.sweet :refer :all] [midje.test-util :refer :all])) ;; This is a separate file because we're making namespace-wide changes (unfinished outermost middlemost innermost) (deftest background-command...
null
https://raw.githubusercontent.com/marick/Midje/2b9bcb117442d3bd2d16446b47540888d683c717/test/behaviors/background_nesting/t_background_command.clj
clojure
This is a separate file because we're making namespace-wide changes deftest intentional
(ns behaviors.background_nesting.t-background-command (:require [clojure.test :refer :all] [midje.sweet :refer :all] [midje.test-util :refer :all])) (unfinished outermost middlemost innermost) (background (outermost ...o...) => 1) (fact (+ 1 (outermost ...o...)) => 2) (background (out...
065d6ffde7daf9adc08da97781c1261a9d7642ebca6559e7ac1189d48696b47a
orbitz/opass
opass_shell.ml
let sh ~input cmd = let (ic, oc) = Unix.open_process cmd in output_string oc input; close_out oc; let input = CCIO.read_all ic in close_in ic; input
null
https://raw.githubusercontent.com/orbitz/opass/5b7e3009a67662d98ea0cb69fbdac0c736c69c1d/src/opass/opass_shell.ml
ocaml
let sh ~input cmd = let (ic, oc) = Unix.open_process cmd in output_string oc input; close_out oc; let input = CCIO.read_all ic in close_in ic; input
cf703c9b95b3a3c1d5cada81fe9846a5545a894b8ad6157c73005a604aaec0ed
bhauman/certifiable
nss_trust.clj
(ns certifiable.nss-trust (:require [clojure.java.io :as io] [certifiable.util :as util] [certifiable.log :as log] [clojure.java.shell :as shell :refer [sh]]) (:import [java.io File])) currently this only works on OSX (defmulti firefox-profile-dir identity) (defmethod firefo...
null
https://raw.githubusercontent.com/bhauman/certifiable/ccf40e29d56dff3ce3592e6cc8fc45b40c569ea0/src/certifiable/nss_trust.clj
clojure
(ns certifiable.nss-trust (:require [clojure.java.io :as io] [certifiable.util :as util] [certifiable.log :as log] [clojure.java.shell :as shell :refer [sh]]) (:import [java.io File])) currently this only works on OSX (defmulti firefox-profile-dir identity) (defmethod firefo...
bc16d36fddc86a76b1d74e4afc9f38d33722eea8816599f48bbd36f194d480d4
huangz1990/SICP-answers
3-perimeter.scm
;;; 3-perimeter.scm (define (perimeter-rectangle r) (let ((length (length-of-rectangle r)) (width (width-of-rectangle r))) (* 2 (+ length width))))
null
https://raw.githubusercontent.com/huangz1990/SICP-answers/15e3475003ef10eb738cf93c1932277bc56bacbe/chp2/code/3-perimeter.scm
scheme
3-perimeter.scm
(define (perimeter-rectangle r) (let ((length (length-of-rectangle r)) (width (width-of-rectangle r))) (* 2 (+ length width))))
9ce158bc45a106cd869f92d9b2840fcc3a03af934f69b6abb176eef2a7e3e8e3
charlieg/Sparser
printers1.lisp
;;; -*- Mode:LISP; Syntax:Common-Lisp; Package:SPARSER -*- copyright ( c ) 1992 - 1998 -- all rights reserved ;;; ;;; File: "printers" ;;; Module: "objects;rules:cfr:" Version : 1.5 February 1998 1.1 ( 5/2/92 v2.2 ) Added short - forms 1.2 ( 9/3 v2.3 ) added cases for referential categori...
null
https://raw.githubusercontent.com/charlieg/Sparser/b9bb7d01d2e40f783f3214fc104062db3d15e608/Sparser/code/s/objects/rules/cfr/printers1.lisp
lisp
-*- Mode:LISP; Syntax:Common-Lisp; Package:SPARSER -*- File: "printers" Module: "objects;rules:cfr:" mixin categories (2/14/98) added symbol case to Princ-rule-term so it could be used for the cases in tree families. ----------------- the structure ----------------- --------------- r...
copyright ( c ) 1992 - 1998 -- all rights reserved Version : 1.5 February 1998 1.1 ( 5/2/92 v2.2 ) Added short - forms 1.2 ( 9/3 v2.3 ) added cases for referential categories and ( 9/7 ) for 1.3 ( 10/12 ) added case for form rules ( ) tweeked it . 1.4 ( 12/1/94 ) adjusted the menu version ...
f1a08c6b02ed4e3c88926ed1c0486ea1696d241b8b30095b9a39c3746d951ca9
discus-lang/ddc
Convert.hs
-- | Conversion of Disciple Core Discus to Disciple Core Salt. module DDC.Core.Discus.Convert ( saltOfDiscusModule , Error(..)) where import DDC.Core.Discus.Transform.Curry.Callable import DDC.Core.Discus.Convert.Exp.Lets import DDC.Core.Discus.Convert.Exp.Alt import DDC.Core.Discus.Convert.Exp.Base imp...
null
https://raw.githubusercontent.com/discus-lang/ddc/2baa1b4e2d43b6b02135257677671a83cb7384ac/src/s1/ddc-core-discus/DDC/Core/Discus/Convert.hs
haskell
| Conversion of Disciple Core Discus to Disciple Core Salt. ------------------------------------------------------------------------------------------------- The input module needs to be: well typed, fully named with no deBruijn indices, have all functions defined at top-level, have type an...
module DDC.Core.Discus.Convert ( saltOfDiscusModule , Error(..)) where import DDC.Core.Discus.Transform.Curry.Callable import DDC.Core.Discus.Convert.Exp.Lets import DDC.Core.Discus.Convert.Exp.Alt import DDC.Core.Discus.Convert.Exp.Base import DDC.Core.Discus.Convert.Exp import DDC.Core.Discus.Convert....
8d729820af24237ce4829db28028d7ef800c3cde9b72ed0303277a21f4fad372
footprintanalytics/footprint-web
mbql_test.clj
(ns metabase.query-processor.middleware.parameters.mbql-test "Tests for *MBQL* parameter substitution." (:require [clojure.test :refer :all] [metabase.driver :as driver] [metabase.mbql.normalize :as mbql.normalize] [metabase.query-processor :as qp] [metabase.query-pro...
null
https://raw.githubusercontent.com/footprintanalytics/footprint-web/d3090d943dd9fcea493c236f79e7ef8a36ae17fc/test/metabase/query_processor/middleware/parameters/mbql_test.clj
clojure
+----------------------------------------------------------------------------------------------------------------+ | END-TO-END TESTS | +--------------------------------------------------------------------------------------...
(ns metabase.query-processor.middleware.parameters.mbql-test "Tests for *MBQL* parameter substitution." (:require [clojure.test :refer :all] [metabase.driver :as driver] [metabase.mbql.normalize :as mbql.normalize] [metabase.query-processor :as qp] [metabase.query-pro...
ac7f374461f2de4aba3108a617baebfe3872785e75633899f29b069faa8e667b
mhuebert/re-view
markdown.cljs
(ns app.views.markdown (:require [re-view.core :as v :refer [defview]] [goog.object :as gobj] [clojure.string :as string] ["highlight.js/lib/highlight" :as hljs] ["highlight.js/lib/languages/clojure" :as highlight-clj] ["highlight.js/lib/languages/xml" :as h...
null
https://raw.githubusercontent.com/mhuebert/re-view/ba38cd09b78b3c6db6a2983f3e2cf1bd6294564f/website/src/app/views/markdown.cljs
clojure
(ns app.views.markdown (:require [re-view.core :as v :refer [defview]] [goog.object :as gobj] [clojure.string :as string] ["highlight.js/lib/highlight" :as hljs] ["highlight.js/lib/languages/clojure" :as highlight-clj] ["highlight.js/lib/languages/xml" :as h...
d455f206a1692e7157bd3f550bcbd2ac6ec169f36d1b4951e5b25ea2aac6cd93
CardanoSolutions/ogmios
Prometheus.hs
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 /. # LANGUAGE RecordWildCards # module Ogmios.Data.Metrics.Prometheus where import Ogmios.Prelude import Cardano.Slotting.Block ( BlockN...
null
https://raw.githubusercontent.com/CardanoSolutions/ogmios/317c826d9d0388cb7efaf61a34085fc7c1b12b06/server/src/Ogmios/Data/Metrics/Prometheus.hs
haskell
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 /. # LANGUAGE RecordWildCards # module Ogmios.Data.Metrics.Prometheus where import Ogmios.Prelude import Cardano.Slotting.Block ( BlockN...
11c62dd32c2991397d90dfef94ab0c3388b467b10c19540f08d348628d15c5e6
ucsd-progsys/nate
plugin.mli
(***********************************************************************) (* ocamlbuild *) (* *) , , projet Gallium , INRIA Rocquencourt (* ...
null
https://raw.githubusercontent.com/ucsd-progsys/nate/8b1267cd8b10283d8bc239d16a28c654a4cb8942/eval/sherrloc/easyocaml%2B%2B/ocamlbuild/plugin.mli
ocaml
********************************************************************* ocamlbuild ...
, , projet Gallium , INRIA Rocquencourt Copyright 2007 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ I d : plugin.mli , v 1.1 2007/02/07 08:59:14 ertai...
e7a85c00279144b4068a2831374034a585efbdb31270588766b2b5edb7de14a7
ruricolist/serapeum
control-flow.lisp
(in-package :serapeum.tests) (def-suite control-flow :in serapeum) (in-suite control-flow) (test no (locally (declare (notinline no)) (is-true (no nil)) (is-false (no t)))) (test nor (is-true (nor)) (is-true (nor nil)) (is-false (not t)) (is-true (nor nil nil)) (is-false (nor nil t)) (is-false ...
null
https://raw.githubusercontent.com/ruricolist/serapeum/656fe0772a39f8bf2752f39331e493487261067b/tests/control-flow.lisp
lisp
types that cannot be tested for exhaustiveness clause types must be subtypes of given type A member type with no arguments is impossible. Should this be an error? and otherwise. Non-string as clause constant Default is present
(in-package :serapeum.tests) (def-suite control-flow :in serapeum) (in-suite control-flow) (test no (locally (declare (notinline no)) (is-true (no nil)) (is-false (no t)))) (test nor (is-true (nor)) (is-true (nor nil)) (is-false (not t)) (is-true (nor nil nil)) (is-false (nor nil t)) (is-false ...
4f376333a48af091e72ecbbb1ffca96b0779e948743215b126315fd48c31e2c2
craigfe/compact
obj_either.mli
— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — Copyright ( c ) 2020–2021 < > Distributed under the MIT license . See terms at the end of this file . — — — — — — — — — — — — — — — — — — — — — — — — —...
null
https://raw.githubusercontent.com/craigfe/compact/fcce0432d267babeb90dbdf4f49e2d2d067b2b0f/src/obj_either.mli
ocaml
* A variant of the [Either.t] type that distinguishes [Left] and [Right] cases by their {i immediacy} (ie. whether [Obj.is_int] holds of the contents) rather than a heap-allocated variant. Using this type with types that are conditionally-immediate (such as [Int63.t]) will result in undefined behaviour....
— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — Copyright ( c ) 2020–2021 < > Distributed under the MIT license . See terms at the end of this file . — — — — — — — — — — — — — — — — — — — — — — — — —...
71c6c632e3718c1fcbe11d1a74cc7d99201c04bc52325933def9deeddbfe2e91
elastic/eui-cljs
form_help_text.cljs
(ns eui.form-help-text (:require ["@elastic/eui/lib/components/form/form_help_text/form_help_text.js" :as eui])) (def EuiFormHelpText eui/EuiFormHelpText)
null
https://raw.githubusercontent.com/elastic/eui-cljs/ad60b57470a2eb8db9bca050e02f52dd964d9f8e/src/eui/form_help_text.cljs
clojure
(ns eui.form-help-text (:require ["@elastic/eui/lib/components/form/form_help_text/form_help_text.js" :as eui])) (def EuiFormHelpText eui/EuiFormHelpText)
aea550d72650cc11301d26f1dbde25f32d2a548637dd65a5801a7778848f21f6
Tclv/HaskellBook
exercise.hs
myEnumFromTo :: (Enum a) => a -> a -> [a] myEnumFromTo beg end | begInd > endInd = [] | begInd == endInd = beg : [] | otherwise = beg : myEnumFromTo (succ beg) end where begInd = fromEnum beg endInd = fromEnum end eftBool :: Bool -> Bool -> [Bool] eftBool beg end = myEnumFromTo beg en...
null
https://raw.githubusercontent.com/Tclv/HaskellBook/78eaa5c67579526b0f00f85a10be3156bc304c14/ch9/exercise.hs
haskell
myEnumFromTo :: (Enum a) => a -> a -> [a] myEnumFromTo beg end | begInd > endInd = [] | begInd == endInd = beg : [] | otherwise = beg : myEnumFromTo (succ beg) end where begInd = fromEnum beg endInd = fromEnum end eftBool :: Bool -> Bool -> [Bool] eftBool beg end = myEnumFromTo beg en...
640aef02f4c4d43a1a1dcc4a3a3cf7e57ab9cbd221b909dd2810342474dc4f3e
jacekschae/learn-pedestal-course-files
auth.clj
(ns cheffy.components.auth (:require [com.stuartsierra.component :as component] [cognitect.aws.client.api :as aws]) (:import (javax.crypto.spec SecretKeySpec) (javax.crypto Mac) (java.util Base64))) (defn calculate-secret-hash [{:keys [client-id client-secret username]}] (let ...
null
https://raw.githubusercontent.com/jacekschae/learn-pedestal-course-files/30666cbb8b3662444e16e7fc9ebe65795d7eb7a4/increments/57-create-account/src/main/cheffy/components/auth.clj
clojure
(ns cheffy.components.auth (:require [com.stuartsierra.component :as component] [cognitect.aws.client.api :as aws]) (:import (javax.crypto.spec SecretKeySpec) (javax.crypto Mac) (java.util Base64))) (defn calculate-secret-hash [{:keys [client-id client-secret username]}] (let ...
492f43dc0236921a28e44699f0b4fdf34398da62bda4a7b424ca4839dd3b6885
tsloughter/kuberl
kuberl_v1_downward_api_projection.erl
-module(kuberl_v1_downward_api_projection). -export([encode/1]). -export_type([kuberl_v1_downward_api_projection/0]). -type kuberl_v1_downward_api_projection() :: #{ 'items' => list() }. encode(#{ 'items' := Items }) -> #{ 'items' => Items }.
null
https://raw.githubusercontent.com/tsloughter/kuberl/f02ae6680d6ea5db6e8b6c7acbee8c4f9df482e2/gen/kuberl_v1_downward_api_projection.erl
erlang
-module(kuberl_v1_downward_api_projection). -export([encode/1]). -export_type([kuberl_v1_downward_api_projection/0]). -type kuberl_v1_downward_api_projection() :: #{ 'items' => list() }. encode(#{ 'items' := Items }) -> #{ 'items' => Items }.
09026420a83cd1edc9b89769ca19c2f1c8219bfabc02e311978c55e007b62f8b
input-output-hk/cardano-ledger-byron
ProtocolVersionBump.hs
# LANGUAGE NamedFieldPuns # module Cardano.Chain.Update.Validation.Interface.ProtocolVersionBump ( Environment (..) , State (..) , tryBumpVersion ) where import Cardano.Prelude hiding (State) import Cardano.Chain.ProtocolConstants (kUpdateStabilityParam) import Cardano.Chain.Common.BlockCount (BlockCount) im...
null
https://raw.githubusercontent.com/input-output-hk/cardano-ledger-byron/d309449e6c303a9f0dcc8dcf172df6f0b3195ed5/cardano-ledger/src/Cardano/Chain/Update/Validation/Interface/ProtocolVersionBump.hs
haskell
| Change the protocol version when an epoch change is detected, and there is a candidate protocol update that was confirmed at least @4 * k@ slots before For a full history of why this is required, see -output-hk/cardano-ledger-specs/issues/1288
# LANGUAGE NamedFieldPuns # module Cardano.Chain.Update.Validation.Interface.ProtocolVersionBump ( Environment (..) , State (..) , tryBumpVersion ) where import Cardano.Prelude hiding (State) import Cardano.Chain.ProtocolConstants (kUpdateStabilityParam) import Cardano.Chain.Common.BlockCount (BlockCount) im...
2bb882840b5bbad0f4d46b6371386fe3d2e9d3b80c29a276b5164b53725805a0
alanz/ghc-exactprint
T6018fail.hs
# LANGUAGE TypeFamilies , DataKinds , UndecidableInstances , PolyKinds , MultiParamTypeClasses , FlexibleInstances # MultiParamTypeClasses, FlexibleInstances #-} module T6018fail where import T6018Afail -- defines G, identical to F imports H from , defines some equations for H imports...
null
https://raw.githubusercontent.com/alanz/ghc-exactprint/b6b75027811fa4c336b34122a7a7b1a8df462563/tests/examples/ghc80/T6018fail.hs
haskell
defines G, identical to F Id is injective... ...but despite that we disallow a call to Id P is not injective, although the user declares otherwise. This should be rejected on the grounds of calling a type family in the RHS. this is not injective - not all injective type variables mentioned Make sure we look thr...
# LANGUAGE TypeFamilies , DataKinds , UndecidableInstances , PolyKinds , MultiParamTypeClasses , FlexibleInstances # MultiParamTypeClasses, FlexibleInstances #-} module T6018fail where imports H from , defines some equations for H imports H from , defines conflicting eqns type famil...
f0998ce1b2ab47c419d4c82faa73d52fd4795fe9f30a217bdc49d44a81efd06f
Metaxal/rascas
eval-module.rkt
#lang racket/base ;; Do NOT remove the 'unused' dependencies, they may be used by eval. (require racket/math math/special-functions (only-in "arithmetic.rkt" dirac) (only-in "algorithmic.rkt" >0 >=0)) (provide compile-tree) ;;;; `compile-tree` compiles the s-expression tree to a full racke...
null
https://raw.githubusercontent.com/Metaxal/rascas/540530c28689de50c526abf36079c07fd0436edb/eval-module.rkt
racket
Do NOT remove the 'unused' dependencies, they may be used by eval. `compile-tree` compiles the s-expression tree to a full racket procedure, thus likely making it more efficient. This may not work if other functions have been registered by the user. In this case, use `tree->procedure` from 'substitute.rkt' instead...
#lang racket/base (require racket/math math/special-functions (only-in "arithmetic.rkt" dirac) (only-in "algorithmic.rkt" >0 >=0)) (provide compile-tree) (define ^ expt) (define-namespace-anchor a) (define ns (namespace-anchor->namespace a)) In case there are many arguments ( say mill...
9faaccbf5d98904f24c1b000728dfa608103ce3a582673e2b5bd2df162c72d50
RJ/erlang-reup
reup_watcher.erl
-module(reup_watcher). -behaviour(gen_server). -define(POLL_INTERVAL, 2000). -define(LOG(S,F), io:format("[reup] " ++ S ++ "\n", F)). %% API. -export([start_link/0, reup_module/1]). %% gen_server. -export([init/1]). -export([handle_call/3]). -export([handle_cast/2]). -export([handle_info/2]). -export([terminate/2])...
null
https://raw.githubusercontent.com/RJ/erlang-reup/444fa9997a93a9cce4618144cd8ca261b819e1bd/src/reup_watcher.erl
erlang
API. gen_server. interval for running find, to check for modified src files assuming rebar3 _build/<profile>/rel/<relname> structure assuming script from project root, with apps assuming script from project root, with single-otp project gen_server. does this always work?
-module(reup_watcher). -behaviour(gen_server). -define(POLL_INTERVAL, 2000). -define(LOG(S,F), io:format("[reup] " ++ S ++ "\n", F)). -export([start_link/0, reup_module/1]). -export([init/1]). -export([handle_call/3]). -export([handle_cast/2]). -export([handle_info/2]). -export([terminate/2]). -export([code_change/...
62b4d9c66609caab82f8af70c4433587d1d354e3bf604d00cf5d219030c4b25d
OCamlPro/operf-micro
benchmark.ml
open Micro_bench_types let prepare i = i let check i n = Ok let do_not_check _ _ = Ok let functions = [ "durand-kerner-aberth-test", Unit ((fun () -> Durand_kerner_aberth.main 50), Dka_result.check, Longer); "durand-kerner-aberth", Int (Durand_kerner_aberth.main, prepare, ...
null
https://raw.githubusercontent.com/OCamlPro/operf-micro/d5d2bf2068204b889321b0c5a7bc0d079c0fca80/share/operf-micro/benchmarks/num_analysis/benchmark.ml
ocaml
open Micro_bench_types let prepare i = i let check i n = Ok let do_not_check _ _ = Ok let functions = [ "durand-kerner-aberth-test", Unit ((fun () -> Durand_kerner_aberth.main 50), Dka_result.check, Longer); "durand-kerner-aberth", Int (Durand_kerner_aberth.main, prepare, ...
185829485125dd4da613d991295eafa968b9820733e76ee2107397299e81cbe9
agda/agda
Options.hs
module Agda.Interaction.Options ( module Opts.Base , module Opts.HasOptions ) where import Agda.Interaction.Options.Base as Opts.Base import Agda.Interaction.Options.HasOptions as Opts.HasOptions
null
https://raw.githubusercontent.com/agda/agda/f50c14d3a4e92ed695783e26dbe11ad1ad7b73f7/src/full/Agda/Interaction/Options.hs
haskell
module Agda.Interaction.Options ( module Opts.Base , module Opts.HasOptions ) where import Agda.Interaction.Options.Base as Opts.Base import Agda.Interaction.Options.HasOptions as Opts.HasOptions
b99957b8f7ce0586a8faf70732eef63824a8e95da9dd742b1c2da04a22e0880e
macchiato-framework/examples
routes.cljs
(ns guestbook.routes (:require [bidi.bidi :as bidi] [hiccups.runtime] [guestbook.db :as db] [macchiato.middleware.anti-forgery :as af] [macchiato.util.response :as r] [macchiato.middleware.restful-format :as restful-format] [cljs.nodejs :as node]) (:require-macros [hiccups.core :refe...
null
https://raw.githubusercontent.com/macchiato-framework/examples/946bdf1a04f5ef787fc83affdcbf6603bbf29b5c/guestbook/src/guestbook/routes.cljs
clojure
(ns guestbook.routes (:require [bidi.bidi :as bidi] [hiccups.runtime] [guestbook.db :as db] [macchiato.middleware.anti-forgery :as af] [macchiato.util.response :as r] [macchiato.middleware.restful-format :as restful-format] [cljs.nodejs :as node]) (:require-macros [hiccups.core :refe...
356051d67c12bf26ac1061c721256f0cd10f6a7ce22312b3d371b7198c42835c
huangjs/cl
lb1.lisp
;;; Compiled by f2cl version: ( " f2cl1.l , v 1.215 2009/04/07 22:05:21 rtoy Exp $ " " f2cl2.l , v 1.37 2008/02/22 22:19:33 rtoy Exp $ " " f2cl3.l , v 1.6 2008/02/22 22:19:33 rtoy Exp $ " " f2cl4.l , v 1.7 2008/02/22 22:19:34 rtoy Exp $ " " f2cl5.l , v 1.200 2009/01/19 02:38:17 rtoy Exp $ " " f2cl6.l ,...
null
https://raw.githubusercontent.com/huangjs/cl/96158b3f82f82a6b7d53ef04b3b29c5c8de2dbf7/lib/maxima/share/lbfgs/lb1.lisp
lisp
Compiled by f2cl version: Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t) (:coerce-assigns :as-needed) (:array-type ':array) (:array-slicing t) (:declare-common nil) (:float-format double-float))
( " f2cl1.l , v 1.215 2009/04/07 22:05:21 rtoy Exp $ " " f2cl2.l , v 1.37 2008/02/22 22:19:33 rtoy Exp $ " " f2cl3.l , v 1.6 2008/02/22 22:19:33 rtoy Exp $ " " f2cl4.l , v 1.7 2008/02/22 22:19:34 rtoy Exp $ " " f2cl5.l , v 1.200 2009/01/19 02:38:17 rtoy Exp $ " " f2cl6.l , v 1.48 2008/08/24 00:56:27 rt...
916ba992a411a551c7fb73bfc9fe00e83776c4611c861cb4803e80abb7b7ae7a
fyquah/hardcaml_zprize
test_adder_subtractor_pipe.ml
open Core open Field_ops_lib open Hardcaml module Make (X : sig val bits : int val num_items : int end) = struct open X module I = struct type 'a t = { clock : 'a ; items : 'a array [@bits bits] [@length num_items] ; valid_in : 'a } [@@deriving sexp_of, hardcaml] end modul...
null
https://raw.githubusercontent.com/fyquah/hardcaml_zprize/553b1be10ae9b977decbca850df6ee2d0595e7ff/libs/field_ops/test/test_adder_subtractor_pipe.ml
ocaml
open Core open Field_ops_lib open Hardcaml module Make (X : sig val bits : int val num_items : int end) = struct open X module I = struct type 'a t = { clock : 'a ; items : 'a array [@bits bits] [@length num_items] ; valid_in : 'a } [@@deriving sexp_of, hardcaml] end modul...
12f0b8a9695d4faccf5976d24f95042b54cfa23978ec667a3e257a62c71f3747
BoeingX/haskell-programming-from-first-principles
ApplicativeInstancesSpec.hs
module Applicative.ChapterExercises.ApplicativeInstancesSpec where import Test.Hspec import Test.Hspec.Checkers import Test.QuickCheck import Test.QuickCheck.Classes import Applicative.ChapterExercises.ApplicativeInstances spec :: Spec spec = do testBatch $ applicative (undefined :: Identity (Integer, Integer, In...
null
https://raw.githubusercontent.com/BoeingX/haskell-programming-from-first-principles/ffb637f536597f552a4e4567fee848ed27f3ba74/test/Applicative/ChapterExercises/ApplicativeInstancesSpec.hs
haskell
module Applicative.ChapterExercises.ApplicativeInstancesSpec where import Test.Hspec import Test.Hspec.Checkers import Test.QuickCheck import Test.QuickCheck.Classes import Applicative.ChapterExercises.ApplicativeInstances spec :: Spec spec = do testBatch $ applicative (undefined :: Identity (Integer, Integer, In...
65ad02f63ba256cca46142fd35ee2fcf9f6a911b764cc2371e7e105b240e2aea
joes-esolangs/barrel
expander.rkt
#lang br/quicklang (require racket/dict racket/block) (require "core.rkt" "util.rkt") (provide (all-from-out "core.rkt")) (provide definitions) (define definitions (box empty)) (define count (box 0)) (define-macro (barrel-module-begin PARSE-TREE) #'(#%module-begin PARSE-TREE)) (provide (rename-out ...
null
https://raw.githubusercontent.com/joes-esolangs/barrel/5cd5dd2615c54ddbe8fdfe25f6ba9a3e4f14a474/barrel/expander.rkt
racket
Combinators IO Math List
#lang br/quicklang (require racket/dict racket/block) (require "core.rkt" "util.rkt") (provide (all-from-out "core.rkt")) (provide definitions) (define definitions (box empty)) (define count (box 0)) (define-macro (barrel-module-begin PARSE-TREE) #'(#%module-begin PARSE-TREE)) (provide (rename-out ...
bbc0b74ebbc52e8a27b249be5a2b20845f47b0fc942f53864d66bf86b3200a10
plundering/plunder-reference
Port.hs
----- TODO: Support different HTTP/Telnet ports for different ships. ----- TODO: ports file exist within the ship data-types, not in `~/.*`. | Hardware Device 6 : Packet Tranport type Seed = Word32 -- Seed used to generate ed25519 key pair type Addr = Word32 -- ed25519 public key = SIRE ...
null
https://raw.githubusercontent.com/plundering/plunder-reference/4cac3717ed5baf7b0b5fd41837a504f6fd33eab2/lib/Server/Hardware/Port.hs
haskell
--- TODO: Support different HTTP/Telnet ports for different ships. --- TODO: ports file exist within the ship data-types, not in `~/.*`. Seed used to generate ed25519 key pair ed25519 public key Seed used to generate ed25519 key pair ed25519 public key # OPTIONS_GHC -Wall # # LANGUAGE StrictData # A...
| Hardware Device 6 : Packet Tranport = SIRE [ ] : : Req ( Seed , Addr ) = RECV [ us ls ] : : Seed - > Cab Addr - > Req ( Time , Addr , Bar ) = SEND [ us th br ] : : Seed - > Addr - > Bar - > Req Time Hardware Device 6: Packet Tranport = SIRE [] :: Req (See...
c2a31d6746c7b321050ebd7962a98a3eebefa3600ba388503d28e4cbb3aa1511
manuel-serrano/hop
expanders.scm
;*=====================================================================*/ * serrano / prgm / project / hop/3.0.x / scheme2js / expanders.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation : ...
null
https://raw.githubusercontent.com/manuel-serrano/hop/481cb10478286796addd2ec9ee29c95db27aa390/scheme2js/expanders.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ * */ * but WITHOUT ANY WARRANT...
* serrano / prgm / project / hop/3.0.x / scheme2js / expanders.scm * / * Author : * / * Creation : Thu Nov 24 10:52:12 2011 * / * Last change : Fri Aug 14 06:13:47 2015 ( serrano ) * / * Copyrig...
a46c4134818ff19913e200901b541c9cf34faebca38c8d1772e8aeb1512f09b7
Frama-C/Frama-C-snapshot
equality_domain.ml
(**************************************************************************) (* *) This file is part of Frama - C. (* *) Copyright ...
null
https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/src/plugins/value/domains/equality/equality_domain.ml
ocaml
************************************************************************ alternatives) ...
This file is part of Frama - C. Copyright ( C ) 2007 - 2019 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , v...
f0d1c1116944bf808971e88bcb261bccc2bd7a7f36621a664705b17577b3a324
soenkehahn/looper
FileWatcher.hs
module Looper.FileWatcher (fileWatcher) where import Control.Exception import Control.Monad import Data.Bits import Data.Word import Looper.FileWatcher.Common import System.OSX.FSEvents fileWatcher :: FileWatcher fileWatcher = FileWatcher { watchFiles = \ watchedFiles handle action -> do if (length watchedFiles...
null
https://raw.githubusercontent.com/soenkehahn/looper/c99792a485307643c36509dd71b752fce11033ab/src/darwin/Looper/FileWatcher.hs
haskell
useful for debugging
module Looper.FileWatcher (fileWatcher) where import Control.Exception import Control.Monad import Data.Bits import Data.Word import Looper.FileWatcher.Common import System.OSX.FSEvents fileWatcher :: FileWatcher fileWatcher = FileWatcher { watchFiles = \ watchedFiles handle action -> do if (length watchedFiles...
1b5fab764ee9884755763760bdee9f4143ac16dcd8d316a80b432808ce781b47
ocsigen/js_of_ocaml
test_unsafe_set_get.ml
Js_of_ocaml tests * / * Copyright ( C ) 2020 Hugo Heuzard * * 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 , with linking exception ; * either version 2.1 of the L...
null
https://raw.githubusercontent.com/ocsigen/js_of_ocaml/3a615d693b213140ea8e5c43d5bbe99569bc898d/lib/tests/test_unsafe_set_get.ml
ocaml
Js_of_ocaml tests * / * Copyright ( C ) 2020 Hugo Heuzard * * 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 , with linking exception ; * either version 2.1 of the L...
b0f45bc4b87b85c880c2f9f4fafa7198620085b4674c5bd2ca505e7c71d068ce
realworldocaml/examples
comparable.ml
module type Comparable = sig type t val sexp_of_t : t -> Sexp.t val t_of_sexp : Sexp.t -> t val compare : t -> t -> int end
null
https://raw.githubusercontent.com/realworldocaml/examples/32ea926861a0b728813a29b0e4cf20dd15eb486e/code/maps-and-hash-tables/comparable.ml
ocaml
module type Comparable = sig type t val sexp_of_t : t -> Sexp.t val t_of_sexp : Sexp.t -> t val compare : t -> t -> int end
35dcc938a8f3dcea411a1588f543ca0ec722ee0f16b3007e2204f409ddd81dd9
aengelberg/automata
project.clj
(defproject automata "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.7.0"] [loco "0.3.1-SNAPSHOT"] [rhizome "0.2.5"]] :jvm-opts ^:replace ["-server" ...
null
https://raw.githubusercontent.com/aengelberg/automata/b1add9f455b2b7e30c6cfff2afd9721f07904c68/project.clj
clojure
(defproject automata "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.7.0"] [loco "0.3.1-SNAPSHOT"] [rhizome "0.2.5"]] :jvm-opts ^:replace ["-server" ...
e8d23daf33daa88755f40d1112fd370accac6fb22199da0a0f5f4bc2bec9922d
lisp-mirror/clpm
update.lisp
;;;; clpm bundle install ;;;; This software is part of CLPM . See README.org for more information . See ;;;; LICENSE for license information. (uiop:define-package #:clpm-cli/commands/bundle/update (:use #:cl #:clpm-cli/commands/bundle/common #:clpm-cli/common-args #:clpm-cli/interfa...
null
https://raw.githubusercontent.com/lisp-mirror/clpm/ad9a704fcdd0df5ce30ead106706ab6cc5fb3e5b/cli/commands/bundle/update.lisp
lisp
clpm bundle install LICENSE for license information.
This software is part of CLPM . See README.org for more information . See (uiop:define-package #:clpm-cli/commands/bundle/update (:use #:cl #:clpm-cli/commands/bundle/common #:clpm-cli/common-args #:clpm-cli/interface-defs) (:import-from #:adopt) (:import-from #:clpm)) (in-pack...
acdef0bb839d43e29fd16c71f46c7b6eab850843ca3a0562a2ecc321d24db3dc
pirapira/coq2rust
hashset.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/pirapira/coq2rust/22e8aaefc723bfb324ca2001b2b8e51fcc923543/lib/hashset.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** * The following functor is a special...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Adapted from , projet Par...
f6127f57cc7b6d787c07752b26ac492d15e0056571b0092d052babd3ab7c1c92
stepcut/hyperdrive
pipes-delimited5.hs
# LANGUAGE ScopedTypeVariables , RankNTypes , OverloadedStrings # module Main where import Control.Applicative import Control.Monad.Identity import Control.Monad.State.Strict (evalStateT, get, put) import Control.Monad.Trans import Data.Attoparsec.ByteString.Char8 (Parser, string) import qualified Data.Attop...
null
https://raw.githubusercontent.com/stepcut/hyperdrive/0121e018b6f7aa52f5d513aa2bdee92aafe5439a/experiments/pipes-delimited5.hs
haskell
return ( p1 > - > PB.drop 2 ) return (p1 >-> PB.drop 2)
# LANGUAGE ScopedTypeVariables , RankNTypes , OverloadedStrings # module Main where import Control.Applicative import Control.Monad.Identity import Control.Monad.State.Strict (evalStateT, get, put) import Control.Monad.Trans import Data.Attoparsec.ByteString.Char8 (Parser, string) import qualified Data.Attop...
0237603c8d50bb9d35d4cbe71ea2494aa86365ff00ef6da18b31301b09055c69
schibsted/spid-tech-docs
endpoints.clj
(ns spid-docs.cultivate.endpoints "Gather all relevant information about endpoints from a few different sources." (:require [clojure.java.io :as io] [clojure.string :as str] [spid-docs.cultivate.util :refer [parse-relevant-endpoints]] [spid-docs.formatting :refer [to-id-str]] ...
null
https://raw.githubusercontent.com/schibsted/spid-tech-docs/ee6a4394e9732572e97fc3a55506b2d6b9a9fe2b/src/spid_docs/cultivate/endpoints.clj
clojure
(ns spid-docs.cultivate.endpoints "Gather all relevant information about endpoints from a few different sources." (:require [clojure.java.io :as io] [clojure.string :as str] [spid-docs.cultivate.util :refer [parse-relevant-endpoints]] [spid-docs.formatting :refer [to-id-str]] ...
1ce6eda5f164c116b7e3bbd28c079c8a23e9d33e04bab9502320cd3cf64d2de0
nasa/Common-Metadata-Repository
wcs_v2.clj
(ns ^:system cmr.opendap.tests.system.app.ous.params.wcs-v2 "Note: this namespace is exclusively for system tests; all tests defined here will use one or more system test fixtures. Definition used for system tests: * #System_testing" (:require [clojure.test :refer :all] [cmr.http.kit.request :as requ...
null
https://raw.githubusercontent.com/nasa/Common-Metadata-Repository/63001cf021d32d61030b1dcadd8b253e4a221662/other/cmr-exchange/service-bridge/test/cmr/opendap/tests/system/app/ous/params/wcs_v2.clj
clojure
all tests defined
(ns ^:system cmr.opendap.tests.system.app.ous.params.wcs-v2 here will use one or more system test fixtures. Definition used for system tests: * #System_testing" (:require [clojure.test :refer :all] [cmr.http.kit.request :as request] [cmr.opendap.testing.system :as test-system] [cmr.opendap.test...
bbc4e18cfee4cf65d1e13bbd4052fa2c43efd01c853577c365bde6e9d297771a
falgon/htcc
Utils.hs
| Module : Htcc . Utils Description : Utilities Copyright : ( c ) roki , 2019 License : MIT Maintainer : Stability : experimental Portability : POSIX General - purpose utilities Module : Htcc.Utils Description : Utilities Copyright : (c) roki, 2019 License : MIT Maintai...
null
https://raw.githubusercontent.com/falgon/htcc/3cef6fc362b00d4bc0ae261cba567bfd9c69b3c5/src/Htcc/Utils.hs
haskell
* Extra functions for lists * For Monad * For Data.Maybe * For Data.Text * For Numeric.Natural * For print shortcuts * For triples and quadruple * Boolean methods * Natural transformations * For data type # INLINE maybe' # | `maybe'` is `maybe` with changed argument order. | `toNatural` is a shortcut for @f...
| Module : Htcc . Utils Description : Utilities Copyright : ( c ) roki , 2019 License : MIT Maintainer : Stability : experimental Portability : POSIX General - purpose utilities Module : Htcc.Utils Description : Utilities Copyright : (c) roki, 2019 License : MIT Maintai...
3d729725457108d00698c7f38c681ed94fbef919bc25877aade061278112f34c
cobaweel/piffle
CommonUtil.hs
Piffle , Copyright ( C ) 2007 , . 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 . This program i...
null
https://raw.githubusercontent.com/cobaweel/piffle/7c4cfb5301c5c55c229098d3938d3b023d69cde4/src/CommonUtil.hs
haskell
------------------------------------ XXX / or div???
Piffle , Copyright ( C ) 2007 , . 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 . This program i...
5201a3f8beac0b76209a11872c9f2faa6a0faca8a4b80053452926b933d1628c
toyokumo/tarayo
address.clj
(ns tarayo.mail.mime.address (:import (jakarta.mail.internet InternetAddress))) (defn ^InternetAddress make-address [addr charset] (let [^InternetAddress addr (cond-> addr (not (instance? InternetAddress addr)) (InternetAddress.))] (Int...
null
https://raw.githubusercontent.com/toyokumo/tarayo/f9b10b85b7bc1a188d808c3955e258916cd0b38a/src/tarayo/mail/mime/address.clj
clojure
(ns tarayo.mail.mime.address (:import (jakarta.mail.internet InternetAddress))) (defn ^InternetAddress make-address [addr charset] (let [^InternetAddress addr (cond-> addr (not (instance? InternetAddress addr)) (InternetAddress.))] (Int...
1315840a5b8af255c1d0423d095f8f3c15cd3e6ba82866a158626edd3226b45f
janestreet/core
span_float.ml
open! Import open Std_internal open! Int.Replace_polymorphic_compare module Stable = struct module V1 = struct module Parts = struct type t = { sign : Sign.t ; hr : int ; min : int ; sec : int ; ms : int ; us : int ; ns : int } [@@derivi...
null
https://raw.githubusercontent.com/janestreet/core/d0d1b3915c9350d8e9f2b395a817659e539e6155/core/src/span_float.ml
ocaml
due to precision limitations in float we can't expect better than microsecond precision WARNING: if you are going to change this function in any material way, make sure you update Stable appropriately. This is the same float-to-string conversion used in [Float.sexp_of_t]. It's like [Float...
open! Import open Std_internal open! Int.Replace_polymorphic_compare module Stable = struct module V1 = struct module Parts = struct type t = { sign : Sign.t ; hr : int ; min : int ; sec : int ; ms : int ; us : int ; ns : int } [@@derivi...
26babada39a119a1fd008071861e9a12ceb8652f09e52c8e90b4454e4b22117e
haskell/hackage-server
GZip.hs
module Distribution.Server.Util.GZip ( decompressNamed ) where import qualified Codec.Compression.GZip as GZip import Control.Exception import Data.ByteString.Lazy.Internal decompressNamed :: String -> ByteString -> ByteString decompressNamed n bs = mapExceptionRecursive mapError $ GZip.decompress bs wher...
null
https://raw.githubusercontent.com/haskell/hackage-server/6c8689a779b688b3e6b927614c90318936d5bb3f/src/Distribution/Server/Util/GZip.hs
haskell
module Distribution.Server.Util.GZip ( decompressNamed ) where import qualified Codec.Compression.GZip as GZip import Control.Exception import Data.ByteString.Lazy.Internal decompressNamed :: String -> ByteString -> ByteString decompressNamed n bs = mapExceptionRecursive mapError $ GZip.decompress bs wher...
8b9d7407c3dff7e66fdb74c62e917f2c4579b885fb0f50bbfee9afd13966a185
sadiqj/ocaml-esp32
t050-pushgetglobal.ml
let _ = () in 0.01;; * 0 1 PUSHGETGLOBAL 0.01 3 POP 1 5 ATOM0 6 SETGLOBAL T050 - pushgetglobal 8 STOP * 0 CONST0 1 PUSHGETGLOBAL 0.01 3 POP 1 5 ATOM0 6 SETGLOBAL T050-pushgetglobal 8 STOP **)
null
https://raw.githubusercontent.com/sadiqj/ocaml-esp32/33aad4ca2becb9701eb90d779c1b1183aefeb578/testsuite/tests/tool-ocaml/t050-pushgetglobal.ml
ocaml
let _ = () in 0.01;; * 0 1 PUSHGETGLOBAL 0.01 3 POP 1 5 ATOM0 6 SETGLOBAL T050 - pushgetglobal 8 STOP * 0 CONST0 1 PUSHGETGLOBAL 0.01 3 POP 1 5 ATOM0 6 SETGLOBAL T050-pushgetglobal 8 STOP **)
6874d2f1d5561544bec5743d0a0816798195651022645ab76ec5963b3b148ec0
HaskellZhangSong/Introduction_to_Haskell
Fix.hs
fix :: (a -> a) -> a fix f = f (fix f) factorial :: Int -> Int factorial = fix (\f n -> if (n==0) then 1 else n * f (n-1))
null
https://raw.githubusercontent.com/HaskellZhangSong/Introduction_to_Haskell/0478693817f761c17624b1eebf20b0cad8810993/Chapter05/Fix.hs
haskell
fix :: (a -> a) -> a fix f = f (fix f) factorial :: Int -> Int factorial = fix (\f n -> if (n==0) then 1 else n * f (n-1))
64ade08e6fb27978340ed8e095a5a8b4dd12fe280b563881c04665cfc2f65f83
may-liu/qtalk
http_send_rbt_msg.erl
%% Feel free to use, reuse and abuse the code in this file. -module(http_send_rbt_msg). -export([init/3]). -export([handle/2]). -export([terminate/3]). -include("ejb_http_server.hrl"). -include("logger.hrl"). -include("http_req.hrl"). init(_Transport, Req, []) -> {ok, Req, undefined}. handle(Req, State) -> {Meth...
null
https://raw.githubusercontent.com/may-liu/qtalk/f5431e5a7123975e9656e7ab239e674ce33713cd/qtalk_opensource/scripts/ejb_http_server/src/http_send_rbt_msg.erl
erlang
Feel free to use, reuse and abuse the code in this file. case iplimit_util:check_ips_limit(Req,<<"1">>,User) of
-module(http_send_rbt_msg). -export([init/3]). -export([handle/2]). -export([terminate/3]). -include("ejb_http_server.hrl"). -include("logger.hrl"). -include("http_req.hrl"). init(_Transport, Req, []) -> {ok, Req, undefined}. handle(Req, State) -> {Method, _ } = cowboy_req:method(Req), catch ejb_monitor:moni...
4bc5f976284aae3feae4d13aeee824b28eb83414d8d51b3d5a233175280e79f3
faylang/fay
ReExportGloballyExplicit.hs
module Foo (main, x) where import FFI import ReExportGlobally.A (x) main :: Fay () main = ffi "console.log(Foo.x)"
null
https://raw.githubusercontent.com/faylang/fay/8455d975f9f0db2ecc922410e43e484fbd134699/tests/ReExportGloballyExplicit.hs
haskell
module Foo (main, x) where import FFI import ReExportGlobally.A (x) main :: Fay () main = ffi "console.log(Foo.x)"
41c852df39fddc421562a0b570c3ab0eb7fe69ec4fac02cf4bbdbbe79a9a1c99
Helium4Haskell/helium
PhaseTypeInferencer.hs
{-| Module : PhaseTypeInferencer License : GPL Maintainer : Stability : experimental Portability : portable -} module Helium.Main.PhaseTypeInferencer (phaseTypeInferencer) where import Helium.Main.CompileUtils import Helium.StaticAnalysis.Messages.Warnings(Warning) import Helium.Sta...
null
https://raw.githubusercontent.com/Helium4Haskell/helium/5928bff479e6f151b4ceb6c69bbc15d71e29eb47/src/Helium/Main/PhaseTypeInferencer.hs
haskell
| Module : PhaseTypeInferencer License : GPL Maintainer : Stability : experimental Portability : portable 'W' and 'M' are predefined type inference algorithms add the top-level types (including the inferred types) display name information Dump information
module Helium.Main.PhaseTypeInferencer (phaseTypeInferencer) where import Helium.Main.CompileUtils import Helium.StaticAnalysis.Messages.Warnings(Warning) import Helium.StaticAnalysis.Inferencers.TypeInferencing(typeInferencing) import Helium.ModuleSystem.DictionaryEnvironment (DictionaryEnvironment) import UHA_Synta...
f64daafa1423d5d29a6bdef5fe94976882e61d2ce6acdb8fb9ae8276be696aea
kdltr/chicken-core
csi.scm
csi.scm - Interpreter stub for CHICKEN ; Copyright ( c ) 2008 - 2021 , The CHICKEN Team Copyright ( c ) 2000 - 2007 , ; 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...
null
https://raw.githubusercontent.com/kdltr/chicken-core/b2e6c5243dd469064bec947cb3b49dafaa1514e5/csi.scm
scheme
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. Redistributio...
csi.scm - Interpreter stub for CHICKEN Copyright ( c ) 2008 - 2021 , The CHICKEN Team Copyright ( c ) 2000 - 2007 , THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS " AND ANY EXPRESS CONTRIBUTORS BE LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQ...
9d4ea45a45fc3c128726dc58e0bf2ecf059891ccc6f294cdc79fa1f8c9bbddd3
awslabs/s2n-bignum
edwards25519_epdouble.ml
* Copyright Amazon.com , Inc. or its affiliates . All Rights Reserved . * SPDX - License - Identifier : Apache-2.0 OR ISC * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 OR ISC *) (* =================================================================...
null
https://raw.githubusercontent.com/awslabs/s2n-bignum/6c0e0852ab8c6577a92377d6836f8bfcb41f300d/arm/proofs/edwards25519_epdouble.ml
ocaml
========================================================================= ========================================================================= *** print_literal_from_elf "arm/curve25519/edwards25519_epdouble.o";; *** arm_MOV X19 X1 arm_ADDS X0 X0 X4 arm_CSETM X3 Condition_CC arm_SUBS X2 X11 X10 arm_A...
* Copyright Amazon.com , Inc. or its affiliates . All Rights Reserved . * SPDX - License - Identifier : Apache-2.0 OR ISC * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 OR ISC *) Extended projective doubling for . n...
5a3a32a6350d4752b44f55d9eba97bf13e6db9fbc01b812886306aafe70f301b
pkamenarsky/concur-replica
gen-svg-modules.hs
#!/usr/bin/env stack stack --resolver lts-13.19 script - options=-Wall {-# LANGUAGE OverloadedStrings #-} # LANGUAGE QuasiQuotes # -- | Regenerate SVG modules. -- -- Use from the top level of the repo, not the ./misc folder. -- -- Eg: -- -- $ ./misc/gen-svg-modules.hs module Main where import Data.String.QQ impo...
null
https://raw.githubusercontent.com/pkamenarsky/concur-replica/e15785b3b09e97790ae23c8ae8671c191d039a2c/misc/gen-svg-modules.hs
haskell
resolver lts-13.19 script - options=-Wall # LANGUAGE OverloadedStrings # | Regenerate SVG modules. Use from the top level of the repo, not the ./misc folder. Eg: $ ./misc/gen-svg-modules.hs # LANGUAGE FlexibleContexts # # LANGUAGE OverloadedStrings # | SVG elements See: <-US/docs/Web/SVG/Element> Not...
#!/usr/bin/env stack # LANGUAGE QuasiQuotes # module Main where import Data.String.QQ import Data.Text (Text) import Data.Text.Encoding import qualified Data.ByteString as BS import qualified Data.Char as Char import qualified Data.Text as T main :: IO () main = do BS.writeFile "./src/Concur/Replica/SVG.hs" (enco...
de67881efad312847caa8e40a432ad73cc776bd6974645c66d2de00148bf273d
henrygarner/glittering
serialization.clj
(ns glittering.serialization (:require [sparkling.serialization :as registrator] [glittering.core :as g]) (:import [org.apache.spark.serializer KryoRegistrator] [com.esotericsoftware.kryo Kryo Serializer] [org.objenesis.strategy StdInstantiatorStrategy] [com.esotericsoft...
null
https://raw.githubusercontent.com/henrygarner/glittering/09ec9b6e29ae92154ec2421e86ce380c90d7b90f/src/clojure/glittering/serialization.clj
clojure
(ns glittering.serialization (:require [sparkling.serialization :as registrator] [glittering.core :as g]) (:import [org.apache.spark.serializer KryoRegistrator] [com.esotericsoftware.kryo Kryo Serializer] [org.objenesis.strategy StdInstantiatorStrategy] [com.esotericsoft...
5eb24ee8cae266c07740ff3d9b6a4094e295db2ba4de9e81b5e121b06f081e8f
janestreet/base
test_nativeint_pow2.ml
open! Import open! Nativeint let examples = [ -1n; 0n; 1n; 2n; 3n; 4n; 5n; 7n; 8n; 9n; 63n; 64n; 65n ] let examples_64_bit = [ min_value; succ min_value; pred max_value; max_value ] let print_for ints f = List.iter ints ~f:(fun i -> print_s [%message "" ~_:(i : nativeint) ~_:(Or_error.try_with (fu...
null
https://raw.githubusercontent.com/janestreet/base/8ea6adb415ebc27fec97e1ae34b9a3d5483eb3f0/test/test_nativeint_pow2.ml
ocaml
open! Import open! Nativeint let examples = [ -1n; 0n; 1n; 2n; 3n; 4n; 5n; 7n; 8n; 9n; 63n; 64n; 65n ] let examples_64_bit = [ min_value; succ min_value; pred max_value; max_value ] let print_for ints f = List.iter ints ~f:(fun i -> print_s [%message "" ~_:(i : nativeint) ~_:(Or_error.try_with (fu...
4609ba592a904218c53947a5a10f4163c820bf9d8e3958473184c8ed6435f6f7
tfausak/monadoc-5
VersionRangeSpec.hs
module Monadoc.Type.Cabal.VersionRangeSpec where import qualified Data.Maybe as Maybe import Monadoc.Prelude import qualified Monadoc.Type.Cabal.VersionRange as VersionRange import Test.Hspec spec :: Spec spec = describe "Monadoc.Type.Cabal.VersionRange" <| do describe "fromString" <| do it "works" <| do ...
null
https://raw.githubusercontent.com/tfausak/monadoc-5/5361dd1870072cf2771857adbe92658118ddaa27/src/test/Monadoc/Type/Cabal/VersionRangeSpec.hs
haskell
module Monadoc.Type.Cabal.VersionRangeSpec where import qualified Data.Maybe as Maybe import Monadoc.Prelude import qualified Monadoc.Type.Cabal.VersionRange as VersionRange import Test.Hspec spec :: Spec spec = describe "Monadoc.Type.Cabal.VersionRange" <| do describe "fromString" <| do it "works" <| do ...
bce13cfe3f68c92ba8a60a92af4069d77bacc78067603272b75a8b3a471fe0cd
SmiteshP/nvim-gps
nvimGPS.scm
((module module_name: (identifier) @module-name) @scope-root) ((statement (statement_keyword "augment") (argument) @augment-path) @scope-root) ((statement (statement_keyword "container") (argument) @container-name) @scope-root) ((statement (statement_keyword "grouping") (argument) @grouping-name) @scope-root) ...
null
https://raw.githubusercontent.com/SmiteshP/nvim-gps/e2a0ceb219fff4192febe220ca69802e33a0ae42/queries/yang/nvimGPS.scm
scheme
((module module_name: (identifier) @module-name) @scope-root) ((statement (statement_keyword "augment") (argument) @augment-path) @scope-root) ((statement (statement_keyword "container") (argument) @container-name) @scope-root) ((statement (statement_keyword "grouping") (argument) @grouping-name) @scope-root) ...
cb7ff2d5cb6b56feb66da9bda803b404fe2bc103e7415e435e947c479ce5d7d1
thi-ng/geom
quaternion.cljc
(ns thi.ng.geom.quaternion #?(:cljs (:require-macros [thi.ng.math.macros :as mm])) (:require [thi.ng.geom.core :as g] [thi.ng.geom.vector :as v :refer [vec2 vec3 V3X V3Y V3Z]] [thi.ng.geom.matrix :as mat] [thi.ng.xerror.core :as err] [thi.ng.math.core :as m :refer [*eps* PI TWO_PI]] #?(...
null
https://raw.githubusercontent.com/thi-ng/geom/85783a1f87670c5821473298fa0b491bd40c3028/src/thi/ng/geom/quaternion.cljc
clojure
(ns thi.ng.geom.quaternion #?(:cljs (:require-macros [thi.ng.math.macros :as mm])) (:require [thi.ng.geom.core :as g] [thi.ng.geom.vector :as v :refer [vec2 vec3 V3X V3Y V3Z]] [thi.ng.geom.matrix :as mat] [thi.ng.xerror.core :as err] [thi.ng.math.core :as m :refer [*eps* PI TWO_PI]] #?(...
c3bb4d839984484cea3ec2dbbc53aac4a488573642964fa69ebfd2d7efab9761
goldfirere/thesis
Util.hs
{-# LANGUAGE TypeSynonymInstances, FlexibleInstances #-} module Pico.Util where import Data.List import Pico.Syn findSigADT :: Sig -> ADT -> Maybe AdtKind findSigADT sig t = do SigBnd_ADT _ kind <- find is_t sig return kind where is_t (SigBnd_ADT t' _) = t' == t is_t _ = False findSig...
null
https://raw.githubusercontent.com/goldfirere/thesis/22f066bc26b1147530525aabb3df686416b3e4aa/hs/Pico/Util.hs
haskell
# LANGUAGE TypeSynonymInstances, FlexibleInstances #
module Pico.Util where import Data.List import Pico.Syn findSigADT :: Sig -> ADT -> Maybe AdtKind findSigADT sig t = do SigBnd_ADT _ kind <- find is_t sig return kind where is_t (SigBnd_ADT t' _) = t' == t is_t _ = False findSigDataCon :: Sig -> DataCon -> Maybe ConType findSigDataCon...
1574bd4917082028acda0de236457eeb5618d09c4303f5000390aea03554df2a
ChrisPenner/proton
Annotated.hs
# LANGUAGE MultiParamTypeClasses # # LANGUAGE FunctionalDependencies # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE UndecidableInstances # # LANGUAGE DefaultSignatures # module Data.Profunctor.Annotated where import Data.Profunctor import Data.Tagged class (Profunctor p, Profunctor q) => Annotatable e p q | q -...
null
https://raw.githubusercontent.com/ChrisPenner/proton/4ce22d473ce5bece8322c841bd2cf7f18673d57d/src/Data/Profunctor/Annotated.hs
haskell
# LANGUAGE MultiParamTypeClasses # # LANGUAGE FunctionalDependencies # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE UndecidableInstances # # LANGUAGE DefaultSignatures # module Data.Profunctor.Annotated where import Data.Profunctor import Data.Tagged class (Profunctor p, Profunctor q) => Annotatable e p q | q -...
6a0c83cfeda98dfba2e4e45b7dc7ecdf523bc4070554ccecacdbf8594a45cd77
cunger/pythia
utils.clj
(ns setup.lexx.utils (:require [setup.lexx.signature :as signature] [setup.utils :refer :all] [clojure.set :as set])) RDF (def rdf-type "(Term. :uri \"-rdf-syntax-ns#type\")") ;; STRING (defn wrap [operator strings] (let [len (count strings)] (clojure.string/join (concat (for [i ...
null
https://raw.githubusercontent.com/cunger/pythia/f58e35395968d4c46aef495fd363c26b1102003c/src/setup/lexx/utils.clj
clojure
STRING URI TO IDENTIFIER if uri contains neither "#" nor "/" probably: if it contains ":", it is a blank node, else a literal else proceed if prefix of uri is in signature/namespaces, replace it accordingly otherwise replace prefix with new abbreviation and store it in signature/namespaces ATTENTION unfrag do...
(ns setup.lexx.utils (:require [setup.lexx.signature :as signature] [setup.utils :refer :all] [clojure.set :as set])) RDF (def rdf-type "(Term. :uri \"-rdf-syntax-ns#type\")") (defn wrap [operator strings] (let [len (count strings)] (clojure.string/join (concat (for [i (range 0 le...
a595e4d6f507209fdff735a17c04c0006179094331146bc119e8d22cf2db1dbc
nasa/Common-Metadata-Repository
autocomplete.clj
(ns cmr.indexer.test.services.autocomplete "Tests for index service" (:require [clojure.test :refer :all] [cmr.common.util :refer [are3]] [cmr.indexer.services.autocomplete :as autocomplete])) (deftest anti-value-test "Tests the anti-value-suggestion function. When certain values exist in the values fie...
null
https://raw.githubusercontent.com/nasa/Common-Metadata-Repository/b49b6457d5a8f37fc87554f5a536da773fd2c511/indexer-app/test/cmr/indexer/test/services/autocomplete.clj
clojure
(ns cmr.indexer.test.services.autocomplete "Tests for index service" (:require [clojure.test :refer :all] [cmr.common.util :refer [are3]] [cmr.indexer.services.autocomplete :as autocomplete])) (deftest anti-value-test "Tests the anti-value-suggestion function. When certain values exist in the values fie...
1cd9c284c0d3f4e2259a12e52520d555c66141ee95d35b74315a0f28cb1ce666
alda-lang/alda-core
global_attributes_test.clj
(ns alda.lisp.global-attributes-test (:require [clojure.test :refer :all] [alda.test-helpers :refer (get-instrument)] [alda.lisp :refer :all] [alda.lisp.model.records :refer (->RelativeOffset)])) (deftest global-attribute-tests (testing "a global t...
null
https://raw.githubusercontent.com/alda-lang/alda-core/4c92eb4fe363485193c58b77b1ec8e36c8866fb5/test/alda/lisp/global_attributes_test.clj
clojure
2000 ms from start for later test not yet... not yet... now!
(ns alda.lisp.global-attributes-test (:require [clojure.test :refer :all] [alda.test-helpers :refer (get-instrument)] [alda.lisp :refer :all] [alda.lisp.model.records :refer (->RelativeOffset)])) (deftest global-attribute-tests (testing "a global t...
2e99d2b274fc3753e9eeb4939a1b00546f6e66909ce769660199b006800478a1
Bogdanp/try-racket
template.rkt
#lang racket/base (require (for-syntax racket/base racket/file racket/path syntax/parse) koyo/flash koyo/haml koyo/l10n koyo/preload koyo/profiler koyo/url koyo/xexpr racket/format ...
null
https://raw.githubusercontent.com/Bogdanp/try-racket/0b82259d60edb08a5158d60500e0104cf9dbaad6/try-racket/components/template.rkt
racket
profile-write is called inside a different thread so we have to grab the current profile here and then pass it in to ensure that the right profile gets rendered.
#lang racket/base (require (for-syntax racket/base racket/file racket/path syntax/parse) koyo/flash koyo/haml koyo/l10n koyo/preload koyo/profiler koyo/url koyo/xexpr racket/format ...
1178391dc9bd61d58bc04584bdaafb76c068ef97e86f2e6c6665a39ffeb677fb
mbattyani/cl-typesetting
chapter-5.lisp
(in-package :cl-pdf-doc) ;;; Will be the putting it all together chapter.
null
https://raw.githubusercontent.com/mbattyani/cl-typesetting/86eba981fc4254addebecf765578ec350d6e3b75/documentation/lisp-source/chapter-5.lisp
lisp
Will be the putting it all together chapter.
(in-package :cl-pdf-doc)
23545ebc236ff283907418bf88ad4e5b45dbcf829a14be65a7ee3d78eba9f134
protosens/monorepo.cljc
maestro.clj
(ns protosens.maestro "See [README](./) about core principles. [[search]] is the star of this namespace and exemplifies the Maestro philosophy. To understand the notion of a \"basis\", see [[create-basis]] and [[ensure-basis]]." (:import (java.io PushbackReader)) (:require [clojure.edn :as...
null
https://raw.githubusercontent.com/protosens/monorepo.cljc/1c7cc00cbfb7c7484521146bf998438d2867552f/module/maestro/src/main/clj/protosens/maestro.clj
clojure
Handling failure Decides how failure is handled. an exception is thrown with the error message Basis In theory, this could use `$.deps.edn/read`. In practice, it breaks `bb genesis`. Searching Grew organically, probably just put everything in `basis`. Working with post-search results
(ns protosens.maestro "See [README](./) about core principles. [[search]] is the star of this namespace and exemplifies the Maestro philosophy. To understand the notion of a \"basis\", see [[create-basis]] and [[ensure-basis]]." (:import (java.io PushbackReader)) (:require [clojure.edn :as...
c43abeeaece8c13ea7930a041ee038c9417edbee07afb7fed4d2b6c840da07cf
tezos/tezos-mirror
bloomer_benchmarks.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2021 Nomadic Labs . < > (* ...
null
https://raw.githubusercontent.com/tezos/tezos-mirror/dde6b4bc0ce8db469bc84e74fc9d40d77b957834/src/lib_shell_benchmarks/bloomer_benchmarks.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2021 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 " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETHER IN A...
0e8f8d7230b1a82ccaa135fb95dcdbc28ce82671ee99591b9438052c4fa881ff
wfnuser/sicp-solutions
e2-55.scm
;''abracadabra can be write to (quote quote abracadabra)
null
https://raw.githubusercontent.com/wfnuser/sicp-solutions/2c94b28d8ee004dcbfe7311f866e5a346ee01d12/ch2/e2-55.scm
scheme
''abracadabra can be write to (quote quote abracadabra)
d056e793b415c900430af31dde1da011a108fc9680020ef4f4b253c9ce381daa
bennn/dissertation
main.rkt
#lang at-exp racket/base (provide nname cname fname aname tname ename ) (require scribble-abbrevs) ;; ----------------------------------------------------------------------------- (define nname (exact "\\nname")) (define cname (exact "\\cname")) (define fname (exact "\\fname")) (define aname (exact "...
null
https://raw.githubusercontent.com/bennn/dissertation/779bfe6f8fee19092849b7e2cfc476df33e9357b/dissertation/scrbl/oopsla-2019/main.rkt
racket
-----------------------------------------------------------------------------
#lang at-exp racket/base (provide nname cname fname aname tname ename ) (require scribble-abbrevs) (define nname (exact "\\nname")) (define cname (exact "\\cname")) (define fname (exact "\\fname")) (define aname (exact "\\aname")) (define tname (exact "\\tname")) (define ename (exact "\\ename"))
94bd31de407c64ad8ba881f5de029b3cd5420b29bcddb93f114445c4c22252e6
BioHaskell/hPDB
ParseIntRecord.hs
{-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE OverloadedStrings #-} # LANGUAGE NoMonomorphismRestriction # | Parsing of records with a single integer value : NUMMDL and MODEL . module Bio.PDB.EventParser.ParseIntRecord(parseNUMMDL,parseMODEL) where import Prelude hiding (String) import qualified D...
null
https://raw.githubusercontent.com/BioHaskell/hPDB/5be747e2f2c57370b498f4c11f9f1887fdab0418/Bio/PDB/EventParser/ParseIntRecord.hs
haskell
# LANGUAGE ScopedTypeVariables # # LANGUAGE OverloadedStrings # ----------- { { { NUMMDL or MODEL records ---------------------------------------------------------------------------------- ---------------------------------------------------------------------------------- } | Parses a record with a singl...
# LANGUAGE NoMonomorphismRestriction # | Parsing of records with a single integer value : NUMMDL and MODEL . module Bio.PDB.EventParser.ParseIntRecord(parseNUMMDL,parseMODEL) where import Prelude hiding (String) import qualified Data.ByteString.Char8 as BS import Bio.PDB.EventParser.PDBEvents import Bio.PDB.EventP...
f68224360259d2654594f421faeec11e83b423d32dd1d4d7e1b1ba59fb7fea62
unclebob/AdventOfCode2021
core_spec.clj
(ns day4.core-spec (:require [speclj.core :refer :all] [day4.core :refer :all])) (describe "parsing input" (it "should parse a sample" (should= [[1 2 3 4 5] [[[1 2 3 4 5] [1 2 3 4 5] [1 2 3 4 5] [1 2 3 4 5] [1 2 3 4 5]]...
null
https://raw.githubusercontent.com/unclebob/AdventOfCode2021/ae21e0330d9577d1312269b60b704b53db2e7dbb/day4/spec/day4/core_spec.clj
clojure
(ns day4.core-spec (:require [speclj.core :refer :all] [day4.core :refer :all])) (describe "parsing input" (it "should parse a sample" (should= [[1 2 3 4 5] [[[1 2 3 4 5] [1 2 3 4 5] [1 2 3 4 5] [1 2 3 4 5] [1 2 3 4 5]]...
3fe2ffc21d0cb816988499277b1bb505d47c87d3eb508c031f91a1c139759c3c
vikram/lisplibraries
araneida.lisp
-*- Mode : LISP ; Syntax : COMMON - LISP ; Package : TBNL ; Base : 10 -*- $ Header : /usr / local / cvsrep / tbnl / araneida.lisp , v 1.13 2006/09/14 19:29:07 edi Exp $ Copyright ( c ) 2005 , . All rights reserved . ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are...
null
https://raw.githubusercontent.com/vikram/lisplibraries/105e3ef2d165275eb78f36f5090c9e2cdd0754dd/site/tbnl-0.11.4/araneida.lisp
lisp
Syntax : COMMON - LISP ; Package : TBNL ; Base : 10 -*- 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 foll...
$ Header : /usr / local / cvsrep / tbnl / araneida.lisp , v 1.13 2006/09/14 19:29:07 edi Exp $ Copyright ( c ) 2005 , . All rights reserved . DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL INTERRUPTION ) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY , (in-package #:tbnl) #+:a...
b83629a2ba31d04f6f90640858577b84164e29b94323874e39055868628c5ee4
stamourv/feature-profile
profile-helpers.rkt
#lang racket ;; "framework" to make building custom profilers easier (require profile/sampler profile/utils racket/contract/private/blame (for-syntax syntax/parse) "structs.rkt") (provide custom-profile print-feature-profile) TODO add kw args to pass to make - sampler (define-s...
null
https://raw.githubusercontent.com/stamourv/feature-profile/cc96e3aa8efe71c013f662c60e2b0d9231b27f97/profile-helpers.rkt
racket
"framework" to make building custom profilers easier do basic analysis no matter what extract the relevant part of the core sample and only when there is a mark of the kind we're looking for (o/w payload looks like #f, it's the none-v from continuation-mark-set->list*.) this rules out payloads of #f. oh well cu...
#lang racket (require profile/sampler profile/utils racket/contract/private/blame (for-syntax syntax/parse) "structs.rkt") (provide custom-profile print-feature-profile) TODO add kw args to pass to make - sampler (define-syntax (custom-profile stx) (syntax-parse stx [(_ f...
c334fd383a2fee35d5b10ca927b453f1bebbf25bea25448c9dd7d79e9e464f70
ghc/testsuite
tc208.hs
{-# LANGUAGE ImplicitParams, RankNTypes #-} -- This program failed to typecheck in an early version of GHC with impredicative polymorphism , but it was fixed by -- doing pre-subsumption in the subsumption check. Trac bug # 821 module ShouldCompile where type PPDoc = (?env :: Int) => Char f :: Char -> PPDoc f =...
null
https://raw.githubusercontent.com/ghc/testsuite/998a816ae89c4fd573f4abd7c6abb346cf7ee9af/tests/typecheck/should_compile/tc208.hs
haskell
# LANGUAGE ImplicitParams, RankNTypes # This program failed to typecheck in an early version of doing pre-subsumption in the subsumption check.
GHC with impredicative polymorphism , but it was fixed by Trac bug # 821 module ShouldCompile where type PPDoc = (?env :: Int) => Char f :: Char -> PPDoc f = succ
a540986b4387dd906a41058642f7654f7b61bb1b1c0cd09b206d7d7d5408ba4e
miorimmax/cq
core.clj
(ns cq.core (:require [clojure.edn :as edn] [cq.utils :as utils] [zprint.core :as zprint])) (defn load-readers! [file-name] (when file-name (load-file file-name))) (defn read-edn! [reader {:keys [default-reader-fn data-readers]}] (-> {:default default-reader-fn} (utils/assoc-if :re...
null
https://raw.githubusercontent.com/miorimmax/cq/18dc64d4b31a3bcbfa1640f176a427df45dff8f1/src/cq/core.clj
clojure
(ns cq.core (:require [clojure.edn :as edn] [cq.utils :as utils] [zprint.core :as zprint])) (defn load-readers! [file-name] (when file-name (load-file file-name))) (defn read-edn! [reader {:keys [default-reader-fn data-readers]}] (-> {:default default-reader-fn} (utils/assoc-if :re...
67099b6458c4d0578e96d5e35c78db56cd7ea2e32e2d71a63ab5ac5c6ebfa347
UU-ComputerScience/uhc
Main.hs
! ! ! the ultra - notorious " nfib 30 " does w/ Floats -- module Main (main) where import System.Environment main = do [arg] <- getArgs print $ nfib $ read arg nfib :: Double -> Double nfib n = if n <= 1 then 1 else nfib (n-1) + nfib (n-2) + 1
null
https://raw.githubusercontent.com/UU-ComputerScience/uhc/f2b94a90d26e2093d84044b3832a9a3e3c36b129/EHC/test/benchmark/nofib/imag/rfib-double/Main.hs
haskell
! ! ! the ultra - notorious " nfib 30 " does w/ Floats module Main (main) where import System.Environment main = do [arg] <- getArgs print $ nfib $ read arg nfib :: Double -> Double nfib n = if n <= 1 then 1 else nfib (n-1) + nfib (n-2) + 1
839f55bd1d17a26e3610abc53b8aaa94c2019ab1f6171f401898cbd5b7ebc383
jeapostrophe/exp
bsort.rkt
#!/usr/bin/env racket #lang racket/base (require racket/match) (struct bmt ()) (struct bnode (l x r)) (define (blist t) (match t [(bmt) '()] [(bnode l x r) (append (blist l) (cons x (blist r)))])) (define (binsert t e) (match t [(bmt) (bnode t e t)] [(bnode l x r) (if (prefer e x) ...
null
https://raw.githubusercontent.com/jeapostrophe/exp/43615110fd0439d2ef940c42629fcdc054c370f9/bin/bsort.rkt
racket
#!/usr/bin/env racket #lang racket/base (require racket/match) (struct bmt ()) (struct bnode (l x r)) (define (blist t) (match t [(bmt) '()] [(bnode l x r) (append (blist l) (cons x (blist r)))])) (define (binsert t e) (match t [(bmt) (bnode t e t)] [(bnode l x r) (if (prefer e x) ...