_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
5d728a4973e6ca62c5af79d5f36b1e59e0065b76fb791c5915ccc437efb4d155
project-oak/hafnium-verification
purityModels.ml
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
null
https://raw.githubusercontent.com/project-oak/hafnium-verification/6071eff162148e4d25a0fedaea003addac242ace/experiments/ownership-inference/infer/infer/src/checkers/purityModels.ml
ocaml
matches get*Value Unlike Set.contains, List.contains is linear deserialization is often expensive for (int|short|byte...)Value
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
07b3c972eb8d04511d79fe4fc8a5b3c42f98a2706842b7ebda101300d26497e1
jonasrichard/ejson
ejson_ext_record_test.erl
-module(ejson_ext_record_test). -include_lib("eunit/include/eunit.hrl"). -json_include(ejson_ext1). -compile({parse_transform, ejson_trans}). -import(ejson_test_util, [json_path/2, assertJsonPathList/2]). encode_test_() -> Rec = {account, "", "password", {user, {group, "admin"}}}, {ok, Json} =...
null
https://raw.githubusercontent.com/jonasrichard/ejson/5838272523e7acb9012c7c5334bad98c69b481af/test/ejson_ext_record_test.erl
erlang
Since owner is typed
-module(ejson_ext_record_test). -include_lib("eunit/include/eunit.hrl"). -json_include(ejson_ext1). -compile({parse_transform, ejson_trans}). -import(ejson_test_util, [json_path/2, assertJsonPathList/2]). encode_test_() -> Rec = {account, "", "password", {user, {group, "admin"}}}, {ok, Json} =...
94d1fa2997b9365a576121c46c206fcd9644e93859fe7822b0d83ffe92126bfb
geremih/xcljb
xselinux.clj
This file is automatically generated . DO NOT MODIFY . (clojure.core/ns xcljb.gen.xselinux (:require xcljb.conn-ext xcljb.gen.xselinux-types)) (def -XCLJB {:minor-version 0, :major-version 1, :header "xselinux", :extension-multiword false, :extension-name "SELinux", :extension-xname "SELinux"}) (cloj...
null
https://raw.githubusercontent.com/geremih/xcljb/59e9ff795bf00595a3d46231a7bb4ec976852396/src/xcljb/gen/xselinux.clj
clojure
Manually written.
This file is automatically generated . DO NOT MODIFY . (clojure.core/ns xcljb.gen.xselinux (:require xcljb.conn-ext xcljb.gen.xselinux-types)) (def -XCLJB {:minor-version 0, :major-version 1, :header "xselinux", :extension-multiword false, :extension-name "SELinux", :extension-xname "SELinux"}) (cloj...
193f0b8821f2f59b16c6e1db1f8e12a052ca0b3fa23404e1c5e2d6f63a6c574d
okeuday/reltool_util
reltool_util.erl
-*-Mode : erlang;coding : utf-8;tab - width:4;c - basic - offset:4;indent - tabs - mode:()-*- ex : set utf-8 sts=4 ts=4 sw=4 et nomod : %%% %%%------------------------------------------------------------------------ %%% @doc = = reltool Utility Functions== %%% All the functions here are probably considered uno...
null
https://raw.githubusercontent.com/okeuday/reltool_util/bcc1f57d9b1ec98fc18097818093881d79a40c0c/src/reltool_util.erl
erlang
------------------------------------------------------------------------ @doc All the functions here are probably considered unorthodox, but are useful for runtime usage of applications and releases. @end Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associa...
-*-Mode : erlang;coding : utf-8;tab - width:4;c - basic - offset:4;indent - tabs - mode:()-*- ex : set utf-8 sts=4 ts=4 sw=4 et nomod : = = reltool Utility Functions== MIT License Copyright ( c ) 2013 - 2022 < mjtruog at protonmail dot com > to deal in the Software without restriction , including witho...
5ccd37a9ced95ed685c51c772efdcda39bcecf6985d78305df3e70fe97dcc6ee
igorhvr/bedlam
request.scm
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 WAR...
null
https://raw.githubusercontent.com/igorhvr/bedlam/b62e0d047105bb0473bdb47c58b23f6ca0f79a4e/siscweb/siscweb-src-0.5/scm/siscweb/request.scm
scheme
you may not use this file except in compliance with the License. You may obtain a copy of the License at / WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. Contributor(s): Alternatively, the contents of th...
The contents of this file are subject to the Mozilla Public License Version Software distributed under the License is distributed on an " AS IS " basis , The Original Code is SISCweb . The Initial Developer of the Original Code is . Portions created by the Initial Developer are Copyright ( C ) 2005 - 2007 ...
788518cf26a50ef537094e60522ceb5f93f503b0a3797efa7fa42736efee92ff
bootstrapworld/curr
translator.rkt
#lang racket (require "translated.rkt") (provide translate) ;this is the method that takes a symbol and finds the associated string ;from a list of symbol-string pairs given as translations (define (translate symbol) (second (or (assoc symbol translations) '("" "NOT FOUND"))))
null
https://raw.githubusercontent.com/bootstrapworld/curr/443015255eacc1c902a29978df0e3e8e8f3b9430/translating/translator.rkt
racket
this is the method that takes a symbol and finds the associated string from a list of symbol-string pairs given as translations
#lang racket (require "translated.rkt") (provide translate) (define (translate symbol) (second (or (assoc symbol translations) '("" "NOT FOUND"))))
6c7a48ea0e132237202e237b6212aee7139b71120e44c18ccbf720a4a8d7a276
GumTreeDiff/cgum
xmlify.mli
* Copyright 2014 , INRIA * * This file is part of Cgen . Much of it comes from Coccinelle , which is * also available under the GPLv2 license * * Cgen 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 So...
null
https://raw.githubusercontent.com/GumTreeDiff/cgum/8521aa80fcf4873a19e60ce8c846c886aaefb41b/parsing_c/xmlify.mli
ocaml
* Copyright 2014 , INRIA * * This file is part of Cgen . Much of it comes from Coccinelle , which is * also available under the GPLv2 license * * Cgen 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 So...
70d460786073588dd54b44ad292b99c469f09fa9248b531af11ac3a76bfa7b98
facebookarchive/pfff
meta_ast_cil.mli
val vof_instr: Ast_cil.instr -> Ocaml.v
null
https://raw.githubusercontent.com/facebookarchive/pfff/ec21095ab7d445559576513a63314e794378c367/lang_c/analyze/meta_ast_cil.mli
ocaml
val vof_instr: Ast_cil.instr -> Ocaml.v
9b91b29fba5a41e15ac84897d5befc5e7ed0398b13ce3f7fc21139055d6c8b2f
basho/riak_dt
riak_dt_gcounter.erl
-*- coding : utf-8 -*- %% ------------------------------------------------------------------- %% %% riak_dt_gcounter: A state based, grow only, convergent counter %% Copyright ( c ) 2007 - 2013 Basho Technologies , Inc. All Rights Reserved . %% This file is provided to you under the Apache License , %% Version ...
null
https://raw.githubusercontent.com/basho/riak_dt/11571d45e8bbc19908040c7c7ee65274cba4e134/src/riak_dt_gcounter.erl
erlang
------------------------------------------------------------------- riak_dt_gcounter: A state based, grow only, convergent counter Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied...
-*- coding : utf-8 -*- Copyright ( c ) 2007 - 2013 Basho Technologies , Inc. All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTI...
1d5f5fd43f6a83de88c81a5360439ed704e0ed6a197dffcb23f4f5684481e321
AdaCore/why3
eliminate_definition.ml
(********************************************************************) (* *) The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2022 -- Inria - CNRS - Paris - Saclay University (* ...
null
https://raw.githubusercontent.com/AdaCore/why3/3b8e66acaa0f2df0118728c7c5c8c4a4b47de4f3/src/transform/eliminate_definition.ml
ocaml
****************************************************************** This software is distributed under the terms of the GNU Lesser on linking described in file LICENSE. ...
The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2022 -- Inria - CNRS - Paris - Saclay University General Public License version 2.1 , with the special exception open Ident open Ty open Term open Decl let add_id undef_ls rem_ls (ls,ld) (abst,defn) = if Sls.mem ls r...
b56dfa831cfd22d30db57c7c3b75d3980a9cd43991c99c4c9b8bde2a0655ef88
xapi-project/xen-api
test_db_lowlevel.ml
* Copyright ( C ) 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 described in file LI...
null
https://raw.githubusercontent.com/xapi-project/xen-api/47fae74032aa6ade0fc12e867c530eaf2a96bf75/ocaml/tests/test_db_lowlevel.ml
ocaml
Kick off the thread which will destroy a VM. Call get_all_records
* Copyright ( C ) 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 described in file LI...
0debdc0ee5de202228760fb01e97de7f83b2231cadc47c3c90ca74f2f667a003
janestreet/incr_dom_partial_render
instrumentation.mli
open! Core open! Incr_dom (** turn instrumentation on by calling [startProfilingPrt()] in the javascript console. turn it off with [stopProfilingPrt()]. *) val instrument : string -> Incr.Map.Instrumentation.t
null
https://raw.githubusercontent.com/janestreet/incr_dom_partial_render/d212c78e495a1b5c5ce053c17d797c14ab013b44/src/instrumentation.mli
ocaml
* turn instrumentation on by calling [startProfilingPrt()] in the javascript console. turn it off with [stopProfilingPrt()].
open! Core open! Incr_dom val instrument : string -> Incr.Map.Instrumentation.t
e16ea4f213a32bd448069f2abece7e9a3a34e440f1d5426fc71d6c4ea9112293
runeksvendsen/bitcoin-payment-channel
Open.hs
{-# LANGUAGE DeriveAnyClass #-} module PaymentChannel.Internal.Receiver.Open ( OpenError(..) , initialServerState ) where import PaymentChannel.Internal.Util import PaymentChannel.Internal.Receiver.Types import PaymentChannel.RBPCP.Parse (ParseError, fromPaymentData, parseRedeemScript) import Bitcoin.Spe...
null
https://raw.githubusercontent.com/runeksvendsen/bitcoin-payment-channel/3d2ee56c027571d1a86092c317640e5eae7adde3/src/PaymentChannel/Internal/Receiver/Open.hs
haskell
# LANGUAGE DeriveAnyClass # ^ Incorrect output specified Redirect the funding transaction and "initial payment"-'PaymentData'
module PaymentChannel.Internal.Receiver.Open ( OpenError(..) , initialServerState ) where import PaymentChannel.Internal.Util import PaymentChannel.Internal.Receiver.Types import PaymentChannel.RBPCP.Parse (ParseError, fromPaymentData, parseRedeemScript) import Bitcoin.SpendCond.Util (s...
034ddc3c44f28398dc3cae1e2b434f1f2847decdc448e86d4cba372eb02cce01
mfoemmel/erlang-otp
ex_sashWindow.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2009 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Public Lic...
null
https://raw.githubusercontent.com/mfoemmel/erlang-otp/9c6fdd21e4e6573ca6f567053ff3ac454d742bc2/lib/wx/examples/demo/ex_sashWindow.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limita...
Copyright Ericsson AB 2009 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " -module(ex_sashWindow). -behaviour(wx_object). ...
555873342b68d748a0bf30e99922c49a91770aa6d3e79e80efa0f1266ce7649f
jakemcc/sicp-study
1.29.clj
Exercise 1.29 ; Code from book to compare answer with (defn sum [term a nxt b] (if (> a b) 0 (+ (term a) (sum term (nxt a) nxt b)))) (defn integral [f a b dx] (let [add-dx (fn [x] (+ x dx))] (* (sum f (+ a (/ dx 2.0)) add-dx b) dx))) (defn cube [x] (* x x x)) (integral cube 0 1 0.01) (integr...
null
https://raw.githubusercontent.com/jakemcc/sicp-study/3b9e3d6c8cc30ad92b0d9bbcbbbfe36a8413f89d/clojure/section1.3/1.29.clj
clojure
Code from book to compare answer with (/ (- b a) n)) Showing what it looks like using loop instead of function
Exercise 1.29 (defn sum [term a nxt b] (if (> a b) 0 (+ (term a) (sum term (nxt a) nxt b)))) (defn integral [f a b dx] (let [add-dx (fn [x] (+ x dx))] (* (sum f (+ a (/ dx 2.0)) add-dx b) dx))) (defn cube [x] (* x x x)) (integral cube 0 1 0.01) (integral cube 0 1 0.001) ( defn h [ a b n ] ...
f8e127899668aa61a57eb458d949c173905801f61c7c13e328fe0de068e467d9
matthiasn/systems-toolbox
store.cljs
(ns example.store "In this namespace, the app state is managed. One can only interact with the state by sending immutable messages. Each such message is then handled by a handler function. These handler functions here are pure functions, they receive message and previous state and return the new state. B...
null
https://raw.githubusercontent.com/matthiasn/systems-toolbox/6bcc44af449b4a5d4e9128cd0f2129b58619a5dc/examples/redux-counter01/src/cljs/example/store.cljs
clojure
(ns example.store "In this namespace, the app state is managed. One can only interact with the state by sending immutable messages. Each such message is then handled by a handler function. These handler functions here are pure functions, they receive message and previous state and return the new state. B...
d221ba597cb6bc56e124370f5e45b63c05a8a13bcf7e9fb5b342f92ab3ae5f07
janestreet/incr_dom
main.ml
open! Core open! Incr_dom open! Js_of_ocaml let () = Start_app.start (module App) ~bind_to_element_with_id:"app" ~initial_model:(App.init ()) ;;
null
https://raw.githubusercontent.com/janestreet/incr_dom/56c04e44d6a8f1cc9b2b841495ec448de4bf61a1/example/table_minimal/main.ml
ocaml
open! Core open! Incr_dom open! Js_of_ocaml let () = Start_app.start (module App) ~bind_to_element_with_id:"app" ~initial_model:(App.init ()) ;;
f2647129f427e420ca524680a1f5e1c9a26903b83f7833f01084bdf9e2f9fe1b
melange-re/melange
bs_flow_ast_utils.mli
Copyright ( C ) 2020 - Authors of ReScript * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the License , or * ( at your option ) any later version...
null
https://raw.githubusercontent.com/melange-re/melange/b595c2647a285e8bb8b16f109d0ab0fbfa22afa3/jscomp/common/bs_flow_ast_utils.mli
ocaml
Copyright ( C ) 2020 - Authors of ReScript * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the License , or * ( at your option ) any later version...
879a831779564891ff4efe3ceb3447c2eda026a42659e95ba1109dfaed27020f
ringstellung/Enigma
EnigmaM3.hs
module EnigmaM3 (module EnigmaM3) where import Data.Char import Auxiliars import Types import Rotors CIFRADO CIFRADO -} isInPositionToCJump :: RotorGS -> Bool isInPositionToCJump (RotorGS r c) = c `elem` (extractNotch r) rotateRotorOne :...
null
https://raw.githubusercontent.com/ringstellung/Enigma/f21aa7617355b804f0e43ae76ae66a750fabc615/M3/EnigmaM3.hs
haskell
module EnigmaM3 (module EnigmaM3) where import Data.Char import Auxiliars import Types import Rotors CIFRADO CIFRADO -} isInPositionToCJump :: RotorGS -> Bool isInPositionToCJump (RotorGS r c) = c `elem` (extractNotch r) rotateRotorOne :...
4a18768362e47b1e5c471ce61138e7b3b8dafd577ff4f76ae3d8b2dd198bdafa
s-expressionists/Cleavir
generic-functions.lisp
(cl:in-package #:cleavir-cst-to-ast) (defgeneric convert (cst environment system)) (defgeneric convert-cst (cst info environment system)) (defgeneric convert-special (head cst environment system)) (defgeneric convert-special-binding (variable value-ast next-ast env system)) (defgeneric convert-lambda-call (cst...
null
https://raw.githubusercontent.com/s-expressionists/Cleavir/7a2f81452c1644752ff0b94c4dad593d5de4b1b0/CST-to-AST/generic-functions.lisp
lisp
This generic function converts a reference to a function given by a description in the form of an INFO instance. That INFO instance was obtained as a result of a form such as (FUNCTION FUNCTION-NAME) by calling FUNCTION-INFO with an environment and the FUNCTION-NAME argument. The function signals an error if ...
(cl:in-package #:cleavir-cst-to-ast) (defgeneric convert (cst environment system)) (defgeneric convert-cst (cst info environment system)) (defgeneric convert-special (head cst environment system)) (defgeneric convert-special-binding (variable value-ast next-ast env system)) (defgeneric convert-lambda-call (cst...
74b2f8dc40dcff1727a9c801d19e70422228511657199c06403d6e5279ebed9e
johnlawrenceaspden/hobby-code
k-means-2.clj
;; K-means ;; K-means is a Clustering Algorithm. ;; We use it when we have some data, and we want to split the data into separate categories. For instance , an early biologist , let 's call him , might measure all ;; sorts of things about the living objects he encounters in the world. ;; (black, feathers, flies)...
null
https://raw.githubusercontent.com/johnlawrenceaspden/hobby-code/48e2a89d28557994c72299962cd8e3ace6a75b2d/k-means-2.clj
clojure
K-means K-means is a Clustering Algorithm. We use it when we have some data, and we want to split the data into separate categories. sorts of things about the living objects he encounters in the world. (black, feathers, flies) (green, tasty) (green, slithers, poisonous) ... and so on After he collects enough d...
For instance , an early biologist , let 's call him , might measure all He might name these two obvious groups the Animals and the Plants . and the Animals into Mammals , Birds , and . Suppose we want to cluster the points 2 3 5 6 10 11 100 101 102 (def data '(2 3 5 6 10 11 100 101 102)) (defn dis...
7e11cd7019d4893c990dfbd77675ef088470ba8d33774f1f712389493fde5e7e
racket/frtime
analog-clock.rkt
#lang frtime Analog Clock Written by July , 2004 ;; Demonstrates animation of an analog clock using the language . Require the animation library , the gui library , and the library ;; containing the build-list function. (require frtime/animation frtime/gui) (define clock-radius (make-slider "Cl...
null
https://raw.githubusercontent.com/racket/frtime/9b9db67581107f4d7b995541c70f2d08f03ae89e/demos/analog-clock.rkt
racket
containing the build-list function. distance : number number number number -> number Returns the distance between (x1, y1) and (x2, y2). (make-posn 0 0))) Define follow-mouse which is true when the center of the clock should be at the mouse cursor; false when it is at the last click position. Clicking the left ...
#lang frtime Analog Clock Written by July , 2004 Demonstrates animation of an analog clock using the language . Require the animation library , the gui library , and the library (require frtime/animation frtime/gui) (define clock-radius (make-slider "Clock Size" 40 200 100)) (define (distance ...
8f00ee968834237510dd60e3ef96eed8ef00ec48e7c873bdfe4a18e38906d31c
kuhumcst/tf-idf
tf_idf.clj
(ns dk.cst.tf-idf "A reasonably performant TF-IDF implementation." (:require [clojure.string :as str] [clojure.java.math :as math])) Should do a decent job with most Latin scripts . (def space+punctuation #"(\d|\s\p{Punct}+\s|\p{Punct}+\s|\s\p{Punct}+|\p{Punct}+$|\s)+") (defn tokenize "Perform b...
null
https://raw.githubusercontent.com/kuhumcst/tf-idf/023bc62966b0c8a112a181508c873f1ebf4b8341/src/dk/cst/tf_idf.clj
clojure
initialize with a `tokenizer-xf`." tf results df/idf result df result will also return the garbage data garbage data Utility functions Tokenization Find top terms Rebinding the tokenizer
(ns dk.cst.tf-idf "A reasonably performant TF-IDF implementation." (:require [clojure.string :as str] [clojure.java.math :as math])) Should do a decent job with most Latin scripts . (def space+punctuation #"(\d|\s\p{Punct}+\s|\p{Punct}+\s|\s\p{Punct}+|\p{Punct}+$|\s)+") (defn tokenize "Perform b...
8fb423fa6ba26f989f7e7daa13b36c5ebdc347a8ffb4f009c1b0938d196b73b7
simplex-chat/simplex-chat
M20221001_shared_msg_id_indices.hs
# LANGUAGE QuasiQuotes # module Simplex.Chat.Migrations.M20221001_shared_msg_id_indices where import Database.SQLite.Simple (Query) import Database.SQLite.Simple.QQ (sql) m20221001_shared_msg_id_indices :: Query m20221001_shared_msg_id_indices = [sql| DROP INDEX idx_messages_group_shared_msg_id; CREATE UNIQUE IND...
null
https://raw.githubusercontent.com/simplex-chat/simplex-chat/74421a5f5294ede9ea5390e1198c7f73fa592e18/src/Simplex/Chat/Migrations/M20221001_shared_msg_id_indices.hs
haskell
# LANGUAGE QuasiQuotes # module Simplex.Chat.Migrations.M20221001_shared_msg_id_indices where import Database.SQLite.Simple (Query) import Database.SQLite.Simple.QQ (sql) m20221001_shared_msg_id_indices :: Query m20221001_shared_msg_id_indices = [sql| DROP INDEX idx_messages_group_shared_msg_id; CREATE UNIQUE IND...
cf80840df1c449ddf3f69fd2a8e58820a1cb681c2b7938bdd7e67ea4b7db5226
HunterYIboHu/htdp2-solution
ex285-map-lambda.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex285-map-lambda) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor...
null
https://raw.githubusercontent.com/HunterYIboHu/htdp2-solution/6182b4c2ef650ac7059f3c143f639d09cd708516/Chapter3-Abstraction/Section17-namelss-function/ex285-map-lambda.rkt
racket
about the language level of this file in a form that our tools can easily process. constants [List-of Number] -> [List-of Number] per US$. [List-of Number] -> [List-of Number] [List-of Posn] -> [List-of [List-of Number]]
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex285-map-lambda) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) (define EURUSD 1.22) convert a list of U...
76a5690bce390933d94205a9bec57d59ea6dfd4c8b9776c40144551a11ad16b8
AccelerateHS/accelerate-examples
MD5.hs
# LANGUAGE FlexibleContexts # # LANGUAGE ViewPatterns # module MD5 ( Dictionary, hashcatWord, hashcatDict, readMD5, showMD5, md5Round ) where import Numeric import Control.Monad import Control.Applicative import Data.Maybe import Data.List ( foldl' ) import Data.ByteString.L...
null
https://raw.githubusercontent.com/AccelerateHS/accelerate-examples/a973ee423b5eadda6ef2e2504d2383f625e49821/examples/hashcat/MD5.hs
haskell
Generate an MD5 hash for every word in the dictionary, and if an entry match. If not found, this returns (-1). Generate an MD5 hash for a single word, and if an entry matches the returns (-1). require that the input dictionary of words to hash is of dimension calculating. All values are little endian. ...
# LANGUAGE FlexibleContexts # # LANGUAGE ViewPatterns # module MD5 ( Dictionary, hashcatWord, hashcatDict, readMD5, showMD5, md5Round ) where import Numeric import Control.Monad import Control.Applicative import Data.Maybe import Data.List ( foldl' ) import Data.ByteString.L...
8f4d9ca56b35834106c9d45b985cd657bdfc02b7a49cdcb5237e68952a9553d2
evturn/haskellbook
09.09-more-bottoms.hs
import Data.Bool (bool) ----------------------------------------------------------------------------- 1 . take 1 $ map ( +1 ) [ undefined , 2 , 3 ] -- Answer: -- Bottom ----------------------------------------------------------------------------- 2 . take 1 $ map ( +1 ) [ 1 , undefined , 3 ] -- Answ...
null
https://raw.githubusercontent.com/evturn/haskellbook/3d310d0ddd4221ffc5b9fd7ec6476b2a0731274a/09/09.09-more-bottoms.hs
haskell
--------------------------------------------------------------------------- Answer: Bottom --------------------------------------------------------------------------- Answer: --------------------------------------------------------------------------- Answer: Bottom -------------------------------------------------...
import Data.Bool (bool) 1 . take 1 $ map ( +1 ) [ undefined , 2 , 3 ] 2 . take 1 $ map ( +1 ) [ 1 , undefined , 3 ] [ 2 ] 3 . take 2 $ map ( +1 ) [ 1 , undefined , 3 ] 4 . itIsMystery :: String -> [Bool] itIsMystery xs = map (\x -> elem x "aeiou") xs 5 . a ) map ( ^2 ) [ 1 .. 10 ] b...
f29b4ea19128f84abc992cfc1513a4e307af36b2edfdbed1f6e29dd92a707bc5
schwering/golog
Visualization.hs
module Visualization where import qualified Car as C import qualified Data.Map as Map import qualified World as R roadSymbol :: R.Direction -> Char roadSymbol R.North = '\8593' roadSymbol R.East = '\8594' roadSymbol R.West = '\8592' roadSymbol R.South = '\8595' roadSymbol R.NorthEast = '\8599' roadS...
null
https://raw.githubusercontent.com/schwering/golog/e5a0dba9598d616762271b5bef9fd51a53c1f829/golog-examples/traffic/Visualization.hs
haskell
module Visualization where import qualified Car as C import qualified Data.Map as Map import qualified World as R roadSymbol :: R.Direction -> Char roadSymbol R.North = '\8593' roadSymbol R.East = '\8594' roadSymbol R.West = '\8592' roadSymbol R.South = '\8595' roadSymbol R.NorthEast = '\8599' roadS...
4a1c623be2431d679469937b7add76377c7c165c63057e5a01b98e87795abc78
AshleyYakeley/Truth
Bi.hs
module Changes.Core.Types.Bi ( module I , mappingBiChangeLens , biLinearChangeLens , biLinearFloatingChangeLens ) where import Changes.Core.Edit import Changes.Core.Lens import Changes.Core.Read import Changes.Core.Types.Bi.Bi as I import Changes.Core.Types.Bi.ChangeMap as I import Changes.Core.Typ...
null
https://raw.githubusercontent.com/AshleyYakeley/Truth/d704b8baaa77dac002922eccecdd91018c4b7eef/Changes/changes-core/lib/Changes/Core/Types/Bi.hs
haskell
module Changes.Core.Types.Bi ( module I , mappingBiChangeLens , biLinearChangeLens , biLinearFloatingChangeLens ) where import Changes.Core.Edit import Changes.Core.Lens import Changes.Core.Read import Changes.Core.Types.Bi.Bi as I import Changes.Core.Types.Bi.ChangeMap as I import Changes.Core.Typ...
afb0839a5c83dff7e14fc0f849c3c028f4b1efe7525c76a5b12f5ec4117e6e56
grin-compiler/grin
Pretty.hs
# LANGUAGE RecordWildCards # module AbstractInterpretation.ExtendedSyntax.LiveVariable.Pretty where import Data.Tuple import Data.Functor.Foldable as Foldable import Text.PrettyPrint.ANSI.Leijen import Data.Map (Map) import qualified Data.Map as Map import Data.Vector (Vector) import qualified Data.Vector as V impo...
null
https://raw.githubusercontent.com/grin-compiler/grin/44ac2958810ecee969c8028d2d2a082d47fba51b/grin/src/AbstractInterpretation/ExtendedSyntax/LiveVariable/Pretty.hs
haskell
# LANGUAGE RecordWildCards # module AbstractInterpretation.ExtendedSyntax.LiveVariable.Pretty where import Data.Tuple import Data.Functor.Foldable as Foldable import Text.PrettyPrint.ANSI.Leijen import Data.Map (Map) import qualified Data.Map as Map import Data.Vector (Vector) import qualified Data.Vector as V impo...
523308d59e4d06fc2d878a66d6a767a1f4a09d3975a54a8bf16b9fba3a5116f1
alainfrisch/mtt
mtt.ml
type var = int module VarSet = Pt.Set module Env = Pt.Map let vars = Hashtbl.create 256 let inv_vars = Hashtbl.create 256 let var_id = ref 0 let var_of_string x = try Hashtbl.find vars x with Not_found -> incr var_id; Hashtbl.add vars x !var_id; Hashtbl.add inv_vars !var_id x; !var_id let strin...
null
https://raw.githubusercontent.com/alainfrisch/mtt/b94f64aa216b1d16b6c02e434bf20c18e6869a78/mtt.ml
ocaml
let t1 = Ta.neg (Ta.normalize (Ta.neg t1)) in
type var = int module VarSet = Pt.Set module Env = Pt.Map let vars = Hashtbl.create 256 let inv_vars = Hashtbl.create 256 let var_id = ref 0 let var_of_string x = try Hashtbl.find vars x with Not_found -> incr var_id; Hashtbl.add vars x !var_id; Hashtbl.add inv_vars !var_id x; !var_id let strin...
801787d257818568bb9a149dda6bda0036c593b2e71f5c017c6e87c02541dc5d
Opetushallitus/ataru
timbre_config.clj
(ns ataru.timbre-config (:require [taoensso.timbre :as timbre] [taoensso.timbre.appenders.3rd-party.rolling :refer [rolling-appender]] [timbre-ns-pattern-level] [ataru.config.core :refer [config]]) (:import [java.util TimeZone])) (defn configure-logging! [app-id hostname] (tim...
null
https://raw.githubusercontent.com/Opetushallitus/ataru/2d8ef1d3f972621e301a3818567d4e11219d2e82/src/clj/ataru/timbre_config.clj
clojure
(ns ataru.timbre-config (:require [taoensso.timbre :as timbre] [taoensso.timbre.appenders.3rd-party.rolling :refer [rolling-appender]] [timbre-ns-pattern-level] [ataru.config.core :refer [config]]) (:import [java.util TimeZone])) (defn configure-logging! [app-id hostname] (tim...
06c40e47089fb61cc64e51e8ce1bbd944e14ff4013d230cdf1c9203ad349447d
tiensonqin/lymchat
profile.cljs
(ns lymchat.shared.scene.profile (:require [reagent.core :as r] [re-frame.core :refer [subscribe dispatch dispatch-sync]] [lymchat.styles :refer [styles pl-style]] [lymchat.shared.ui :refer [text view image touchable-highlight touchable-opacity button icon icon-button material-icon...
null
https://raw.githubusercontent.com/tiensonqin/lymchat/824026607d30c12bc50afb06f677d1fa95ff1f2f/src/lymchat/shared/scene/profile.cljs
clojure
validate
(ns lymchat.shared.scene.profile (:require [reagent.core :as r] [re-frame.core :refer [subscribe dispatch dispatch-sync]] [lymchat.styles :refer [styles pl-style]] [lymchat.shared.ui :refer [text view image touchable-highlight touchable-opacity button icon icon-button material-icon...
6047f3a1b4078fa17613b083b0bfbb5fd0e0972e0c2ac001d95181455f618d46
DSiSc/why3
split_goal.ml
(********************************************************************) (* *) The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2018 -- Inria - CNRS - Paris - Sud University (* ...
null
https://raw.githubusercontent.com/DSiSc/why3/8ba9c2287224b53075adc51544bc377bc8ea5c75/src/transform/split_goal.ml
ocaml
****************************************************************** This software is distributed under the terms of the GNU Lesser on linking described in file LICENSE. ...
The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2018 -- Inria - CNRS - Paris - Sud University General Public License version 2.1 , with the special exception open Ident open Ty open Term open Decl type split = { right_only : bool; byso_split : bool; side_sp...
6d3d556b754d65f58b4f3192cd1d140670e582f2b056a9f3789cebc39c7090d2
ott-lang/ott
auxl.ml
(**************************************************************************) (* Ott *) (* *) , Computer Laboratory , University of Cambridge , project , I...
null
https://raw.githubusercontent.com/ott-lang/ott/bd89321aeb74a1d35e9e6462486855fedd9e6064/src/auxl.ml
ocaml
************************************************************************ Ott ...
, Computer Laboratory , University of Cambridge , project , INRIA Rocquencourt Copyright 2005 - 2010 1 . Redistributions of source code must retain the above copyright 2 . Redistributions in binary form must reproduce the ...
848b0cf0a3e46eb6c69d5959778a2025769ee9edcb8356989ff12d1608bcd8e0
YoshikuniJujo/test_haskell
TryIndexing.hs
# LANGUAGE ViewPatterns # # OPTIONS_GHC -Wall -fno - warn - tabs # module TryIndexing where import Foreign.Storable import Control.Monad.ST import Data.STRef import qualified Data.Map as M import qualified Data.Vector.Storable as V import qualified Data.Vector.Storable.Mutable as MV indexing :: (Storable i, Storabl...
null
https://raw.githubusercontent.com/YoshikuniJujo/test_haskell/012bb2ee81d9d3c624356abf612c1ebc8cf244ed/tribial/tribial-trials/src/TryIndexing.hs
haskell
# LANGUAGE ViewPatterns # # OPTIONS_GHC -Wall -fno - warn - tabs # module TryIndexing where import Foreign.Storable import Control.Monad.ST import Data.STRef import qualified Data.Map as M import qualified Data.Vector.Storable as V import qualified Data.Vector.Storable.Mutable as MV indexing :: (Storable i, Storabl...
41b585925cd83bbc09be3537eb8a7b3dbd7d8b762277ccc8a88be05eaeaac0db
borkdude/carve
issue_11_expected.clj
(require '[clojure.test :as t]) (defn- private-fn []) (t/deftest foo (private-fn))
null
https://raw.githubusercontent.com/borkdude/carve/f499f65e36e02484609f01ce891f3c0207b24444/test-resources/issue_11/issue_11_expected.clj
clojure
(require '[clojure.test :as t]) (defn- private-fn []) (t/deftest foo (private-fn))
54dc9dc36241facdbd511b6bb80cd8da90571fef19df37a9e1918903332da95c
yuriy-chumak/ol
create_context.scm
; ========================================================================== WGL_ARB_create_context ; ; ; ; Version Version 20 , 2009/07/28 ; ; Overview ; ... (define-library (OpenGL WGL ARB create_context) ; -------------------------------------------------------------------------- ; Dependencies ; ...
null
https://raw.githubusercontent.com/yuriy-chumak/ol/83dd03d311339763682eab02cbe0c1321daa25bc/libraries/OpenGL/WGL/ARB/create_context.scm
scheme
========================================================================== Version Overview ... -------------------------------------------------------------------------- Dependencies None (OpenGL WGL ...) -------------------------------------------------------------------------- -----------...
WGL_ARB_create_context Version 20 , 2009/07/28 (define-library (OpenGL WGL ARB create_context) (import (scheme core) (OpenGL version-1-0)) (export WGL_ARB_create_context wglCreateContextAttribsARB HGLRC wglCreateContextAttribsARB(HDC hDC , HGLRC hShareContext , WGL_CONTEXT_MINOR_VERSION_...
96a3367f8639da4f1d4f2cbc8503a8dc3491c0aca539cd90cdfb4f33373949e7
clingen-data-model/genegraph
gene_feature.clj
(ns genegraph.source.graphql.gene-feature (:require [genegraph.database.query :as q] [genegraph.source.graphql.common.cache :refer [defresolver]] [clojure.string :as str])) (defresolver hgnc-id [args value] (q/ld1-> value [:owl/same-as])) (defresolver hgnc-symbol [args value] (q/ld1-> va...
null
https://raw.githubusercontent.com/clingen-data-model/genegraph/8c217e4c3820b3bd0a0937a6e331a6e6a49b8c14/src/genegraph/source/graphql/gene_feature.clj
clojure
(ns genegraph.source.graphql.gene-feature (:require [genegraph.database.query :as q] [genegraph.source.graphql.common.cache :refer [defresolver]] [clojure.string :as str])) (defresolver hgnc-id [args value] (q/ld1-> value [:owl/same-as])) (defresolver hgnc-symbol [args value] (q/ld1-> va...
fade5acc072b8c4c37539c96be8d2687601022a1a06c860c0277ebaf0c6874ad
kingcons/clones
memory.lisp
(in-package :cl-user) (defpackage :clones.memory (:use :cl :clones.mappers) (:import-from :clones.mappers :mapper :load-rom) (:import-from :clones.util :asset-path :ub8 :ub16 :byte-vector :make-byte-ve...
null
https://raw.githubusercontent.com/kingcons/clones/a2f7d84ad6a12c0a33b50a453a377a1fb9e3afac/src/memory.lisp
lisp
(in-package :cl-user) (defpackage :clones.memory (:use :cl :clones.mappers) (:import-from :clones.mappers :mapper :load-rom) (:import-from :clones.util :asset-path :ub8 :ub16 :byte-vector :make-byte-ve...
04b211e13d6d3f28de9b1f1889e9ccb97a3cae6369d177a3346942b12858cc70
basho/riak_core
rack_awareness_test.erl
@author < > ( C ) 2021 , %%% @doc %%% %%% @end -module(rack_awareness_test). -compile(export_all). -include_lib("eunit/include/eunit.hrl"). -define(RING_SIZES, [8, 64, 128, 256, 512]). -define(NODE_COUNTS, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 20]). ring_claim_test_() -> {setup, fun...
null
https://raw.githubusercontent.com/basho/riak_core/762ec81ae9af9a278e853f1feca418b9dcf748a3/test/rack_awareness_test.erl
erlang
@doc @end no tail violations
@author < > ( C ) 2021 , -module(rack_awareness_test). -compile(export_all). -include_lib("eunit/include/eunit.hrl"). -define(RING_SIZES, [8, 64, 128, 256, 512]). -define(NODE_COUNTS, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 20]). ring_claim_test_() -> {setup, fun generate_rings/0, ...
ba8ff883348a040e7da0a859991a2602f82e6a532eeb9ae3655055290488c50c
ocaml-ppx/ocamlformat
wrap_comments_break.ml
let _ = let _ = fffffffffff aaaaaaaaaaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbbbbbbbb ~f:(fun x -> return xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx) in 2
null
https://raw.githubusercontent.com/ocaml-ppx/ocamlformat/3d1c992240f7d30bcb8151285274f44619dae197/test/passing/tests/wrap_comments_break.ml
ocaml
let _ = let _ = fffffffffff aaaaaaaaaaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbbbbbbbb ~f:(fun x -> return xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx) in 2
8ea6c5ac8e82bf2624b11103184740fd4994fff1e483d610d48da3cd2aef13e4
yurug/ocaml4.04.0-copatterns
test.ml
open Printf;; let flush_all () = flush stdout; flush stderr;; let message s = print_string s; print_newline ();; let error_occurred = ref false;; let immediate_failure = ref true;; let error () = if !immediate_failure then exit 2 else begin error_occurred := true; flush_all (); false end;; let success (...
null
https://raw.githubusercontent.com/yurug/ocaml4.04.0-copatterns/b3ec6a3cc203bd2cde3b618546d29e10f1102323/testsuite/tests/lib-num/test.ml
ocaml
open Printf;; let flush_all () = flush stdout; flush stderr;; let message s = print_string s; print_newline ();; let error_occurred = ref false;; let immediate_failure = ref true;; let error () = if !immediate_failure then exit 2 else begin error_occurred := true; flush_all (); false end;; let success (...
050ebc401b5aee4179ec56c4ec736b2eba2b0de0a218892b3ce49fa7fa9e6ed0
draperlaboratory/cbat_tools
ai_memmap_test.ml
(***************************************************************************) (* *) Copyright ( C ) 2018/2019 The Charles Stark Draper Laboratory , Inc. (* *) (* This...
null
https://raw.githubusercontent.com/draperlaboratory/cbat_tools/334523cb4415f187e33f190a691e34b73733ef24/vsa/value_set/unit_tests/ai_memmap_test.ml
ocaml
************************************************************************* This file is provided under the license found in the LICENSE file in the top-level director...
Copyright ( C ) 2018/2019 The Charles Stark Draper Laboratory , Inc. This work is funded in part by ONR / NAWC Contract N6833518C0107 . Its content does not necessarily reflect the position or policy of the US include Bap.Std open Test_utils open OUnit2 open Cbat_value_set module Mem = Cbat_ai_me...
00e93eb5584e0627c6340f1c04cf611c5a42a0dd144a9b300f523c54652588f5
metaocaml/ber-metaocaml
btype.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/metaocaml/ber-metaocaml/4992d1f87fc08ccb958817926cf9d1d739caf3a2/typing/btype.mli
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Asttypes open Types module TypeSet : Set.S with type elt = type_expr module TypeMap : Map.S wit...
5244b06d4b6aada11b7612b98d14a4f5cb854a12bf851a65534b67e3834fbece
ejgallego/coq-serapi
ser_rewrite.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2016 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/ejgallego/coq-serapi/61d2a5c092c1918312b8a92f43a374639d1786f9/serlib/plugins/ltac/ser_rewrite.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** ************************************...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2016 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright 2016 - 2018 MINES...
72193b0eff76610dcadf1a4f9e53724fecf80aaba619680f7b06cf8ad109d020
modular-macros/ocaml-macros
bigarrfml.ml
open Bigarray open Printf (* Test harness *) let error_occurred = ref false let function_tested = ref "" let testing_function s = function_tested := s; print_newline(); print_string s; print_newline() let test test_number answer correct_answer = flush stdout; flush stderr; if answer <> correct_a...
null
https://raw.githubusercontent.com/modular-macros/ocaml-macros/05372c7248b5a7b1aa507b3c581f710380f17fcd/testsuite/tests/lib-bigarray-2/bigarrfml.ml
ocaml
Test harness
open Bigarray open Printf let error_occurred = ref false let function_tested = ref "" let testing_function s = function_tested := s; print_newline(); print_string s; print_newline() let test test_number answer correct_answer = flush stdout; flush stderr; if answer <> correct_answer then begin ...
7a0008e8a1ddfab74534cb11f995b42af213ef65c50ab193a614349d68274419
coq/coq
genintern.mli
(************************************************************************) (* * The Coq Proof Assistant / The Coq Development Team *) v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * *...
null
https://raw.githubusercontent.com/coq/coq/e2952d535b9391fd37340aad5188b28cf83308d8/interp/genintern.mli
ocaml
********************************************************************** * The Coq Proof Assistant / The Coq Development Team // * This file is distributed under the terms of the * (see LICENSE file for the text of the license) ************************************...
v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * GNU Lesser Gener...
05631711b2836f82be714abeeb36815c8f86686daa53796695b9da93ccec1c7c
AdaCore/why3
compute.ml
(********************************************************************) (* *) The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2022 -- Inria - CNRS - Paris - Saclay University (* ...
null
https://raw.githubusercontent.com/AdaCore/why3/be1023970d48869285e68f12d32858c3383958e0/src/transform/compute.ml
ocaml
****************************************************************** This software is distributed under the terms of the GNU Lesser on linking described in file LICENSE. ...
The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2022 -- Inria - CNRS - Paris - Saclay University General Public License version 2.1 , with the special exception open Term open Decl open Reduction_engine open Args_wrapper let meta_rewrite = Theory.register_meta "rewri...
628a23de0e17d45921be67a59160e40e1f32e119830811bffcd77110d2ddda91
trivial-features/trivial-features
tf-xcl.lisp
;;;; -*- Mode: lisp; indent-tabs-mode: nil -*- ;;; tf-xcl.lisp --- XCL trivial - features implementation . ;;; Copyright ( C ) 2009 , ;;; ;;; Permission is hereby granted, free of charge, to any person ;;; obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in...
null
https://raw.githubusercontent.com/trivial-features/trivial-features/f6e8dd7268ae0137dbde4be469101a7f735f6416/src/tf-xcl.lisp
lisp
-*- Mode: lisp; indent-tabs-mode: nil -*- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies furnished to...
tf-xcl.lisp --- XCL trivial - features implementation . Copyright ( C ) 2009 , files ( the " Software " ) , to deal in the Software without of the Software , and to permit persons to whom the Software is included in all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS ...
d11f2b89594029740d5ba6745b38774cfd0536237d9b1a1935602b6d226f8796
r0man/netcdf-clj
utils_test.clj
(ns netcdf.utils-test (:import java.io.File) (:use [clj-time.core :only (now in-secs interval date-time year month day hour)] clojure.test netcdf.repository netcdf.test netcdf.utils)) (deftest test-file-exists? (is (file-exists? (System/getProperty "user.home"))) (is (not (file-...
null
https://raw.githubusercontent.com/r0man/netcdf-clj/90f40ab958d3ebc16a4fcfc882c9cd7ef469d054/test/netcdf/utils_test.clj
clojure
(ns netcdf.utils-test (:import java.io.File) (:use [clj-time.core :only (now in-secs interval date-time year month day hour)] clojure.test netcdf.repository netcdf.test netcdf.utils)) (deftest test-file-exists? (is (file-exists? (System/getProperty "user.home"))) (is (not (file-...
6993c27419114980abba0089af66e1ba2b349ab763ebc17824569ea325cd685f
brendanhay/gogol
Update.hs
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # {-# LANGUAGE St...
null
https://raw.githubusercontent.com/brendanhay/gogol/fffd4d98a1996d0ffd4cf64545c5e8af9c976cda/lib/services/gogol-storage/gen/Gogol/Storage/Buckets/Update.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Stability : auto-generated Updates a bucket. Changes to the bucket will be readable immediately after writing, but configuration changes may take time to propagate. /See:/ </ Cloud Storage JSON API Reference> for @storage.buckets.update@. * Resource ** ...
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators...
66264c5552871d8c2ae917a4499a16224cb008d5f69adc46c6805d382bd78625
jeroanan/rkt-coreutils
tac.rkt
#lang s-exp "util/program/file-by-file-processor-program.rkt" Copyright 2020 ; See COPYING for licence details (require racket/port) (define help-text (list "Concatenate files and print on standard output in reverse." "(execute FILES) -- Concatenate and print FILES in reverse")) (file-by...
null
https://raw.githubusercontent.com/jeroanan/rkt-coreutils/571629d1e2562c557ba258b31ce454add2e93dd9/src/repl/tac.rkt
racket
See COPYING for licence details
#lang s-exp "util/program/file-by-file-processor-program.rkt" Copyright 2020 (require racket/port) (define help-text (list "Concatenate files and print on standard output in reverse." "(execute FILES) -- Concatenate and print FILES in reverse")) (file-by-file-processor tac file-handler n...
c83c10c778ebdb4af17eb8155977b604dee4a1870ae3f77c1977186b4ca55fe4
lpgauth/swirl
swirl_flow_tests.erl
-module(swirl_flow_tests). -include("test.hrl"). -compile(export_all). %% runners swirl_test_() -> {setup, fun () -> setup() end, fun (_) -> cleanup() end, [ ?T(test_flow) ]}. %% tests test_flow() -> {ok, Flow} = swirl_flow:start(swirl_flow_example, [ {heartbeat, timer...
null
https://raw.githubusercontent.com/lpgauth/swirl/0b6cbe6979d65d28c17fa13b7dbc798e9413806a/test/swirl_flow_tests.erl
erlang
runners tests utils
-module(swirl_flow_tests). -include("test.hrl"). -compile(export_all). swirl_test_() -> {setup, fun () -> setup() end, fun (_) -> cleanup() end, [ ?T(test_flow) ]}. test_flow() -> {ok, Flow} = swirl_flow:start(swirl_flow_example, [ {heartbeat, timer:seconds(10)}, ...
1356a93308d918f4898c6b552bab67cdf7a4ff1bfd34ca060a6488b0cc649ee5
benzap/fif
verification.cljc
(ns fif.stack-machine.verification "Functions for ensuring certain guarantees within the stack machine before running operations." (:require [fif.stack-machine :as stack])) (defn stack-satisfies-arity? "Verifies that there are enough arguments on the main stack in order to satisfy the provided `num-args`...
null
https://raw.githubusercontent.com/benzap/fif/972adab8b86c016b04babea49d52198585172fe3/src/fif/stack_machine/verification.cljc
clojure
(ns fif.stack-machine.verification "Functions for ensuring certain guarantees within the stack machine before running operations." (:require [fif.stack-machine :as stack])) (defn stack-satisfies-arity? "Verifies that there are enough arguments on the main stack in order to satisfy the provided `num-args`...
74132aad24e5552a2ad1b4f93e41d637c11179cab818c6786eeb2b83e475175c
Mayvenn/storefront
catalog.cljc
(ns api.catalog (:require [spice.selector :refer [match-all]])) (def select (comp seq (partial match-all {:selector/strict? true}))) (defn select-sorted [query sort-fn coll] (->> coll (select query) (sort-by sort-fn) seq)) ;; ------------ Identities ;; ------...
null
https://raw.githubusercontent.com/Mayvenn/storefront/3bed0469f6cd6c0313991da9cc1035f910ba660e/src-cljc/api/catalog.cljc
clojure
------------ Identities ------ Department: Service ------ Department: Hair NOTE: this differs from wig-rule for free install ------ Images ------- Items ------- Migrations
(ns api.catalog (:require [spice.selector :refer [match-all]])) (def select (comp seq (partial match-all {:selector/strict? true}))) (defn select-sorted [query sort-fn coll] (->> coll (select query) (sort-by sort-fn) seq)) (def ?service {:catalog/departmen...
ca56c8c10b6ed154d01bd5a649f6592332e602efe8043b0a49c62e97b344f273
bobzhang/fan
options.mli
type spec_list = (string * Arg.spec * string) list val init : spec_list -> unit val add : (string * Arg.spec * string) -> unit val adds : (string * Arg.spec * string) list -> unit val init_spec_list : spec_list ref
null
https://raw.githubusercontent.com/bobzhang/fan/7ed527d96c5a006da43d3813f32ad8a5baa31b7f/src/common/options.mli
ocaml
type spec_list = (string * Arg.spec * string) list val init : spec_list -> unit val add : (string * Arg.spec * string) -> unit val adds : (string * Arg.spec * string) list -> unit val init_spec_list : spec_list ref
f3e1ff973ee577d9e9b2ae7153c2064222db9457253a4fe70a62af10f344cfa9
typelead/eta
T5676.hs
{ - # OPTIONS_GHC -fno - warn - redundant - constraints # - } {-# LANGUAGE ScopedTypeVariables, InstanceSigs #-} module Foo where data T a = T a class C a where foo :: b -> a -> (a, [b]) instance C a => C (T a) where foo :: forall b. b -> T a -> (T a, [b]) foo x (T y) = (T y, xs) where xs :: [b] ...
null
https://raw.githubusercontent.com/typelead/eta/97ee2251bbc52294efbf60fa4342ce6f52c0d25c/tests/suite/typecheck/compile/T5676.hs
haskell
# LANGUAGE ScopedTypeVariables, InstanceSigs #
{ - # OPTIONS_GHC -fno - warn - redundant - constraints # - } module Foo where data T a = T a class C a where foo :: b -> a -> (a, [b]) instance C a => C (T a) where foo :: forall b. b -> T a -> (T a, [b]) foo x (T y) = (T y, xs) where xs :: [b] xs = [x,x,x] instance Functor T where fma...
eee852dcd292bddd3cc14cae75f1ba11b75867a6d0caa27bba80cb0c21352f10
district0x/district-registry
stake_bank.cljs
(ns district-registry.server.contract.stake-bank (:require [district.server.smart-contracts :as smart-contracts])) (defn total-staked-for [contract-addr user] (smart-contracts/contract-call [:stake-bank contract-addr] :total-staked-for [user])) (defn total-staked [contract-addr] (smart-contracts/contract-call [...
null
https://raw.githubusercontent.com/district0x/district-registry/c2dcf7978d2243a773165b18e7a76632d8ad724e/src/district_registry/server/contract/stake_bank.cljs
clojure
(ns district-registry.server.contract.stake-bank (:require [district.server.smart-contracts :as smart-contracts])) (defn total-staked-for [contract-addr user] (smart-contracts/contract-call [:stake-bank contract-addr] :total-staked-for [user])) (defn total-staked [contract-addr] (smart-contracts/contract-call [...
ec41fca9348a79b60c5b15d83f81b50ffe81e152ffecfb234d2600c95a8e436f
stephenpascoe/hs-arrow
UInt32DataType.hs
| Copyright : , and License : LGPL-2.1 Maintainer : ( ) /No description available in the introspection data./ Copyright : Will Thompson, Iñaki García Etxebarria and Jonas Platte License : LGPL-2.1 Maintainer : Iñaki García Etxebarria () /No description available in the introspection...
null
https://raw.githubusercontent.com/stephenpascoe/hs-arrow/86c7c452a8626b1d69a3cffd277078d455823271/gi-arrow/GI/Arrow/Objects/UInt32DataType.hs
haskell
* Exported types * Methods # SOURCE # # SOURCE # # SOURCE # # SOURCE # | Memory-managed wrapper type. | Type class for types which can be safely cast to `UInt32DataType`, for instance with `toUInt32DataType`. # OVERLAPPABLE # | A convenience alias for `Nothing` :: `Maybe` `UInt32DataType`. method UInt32DataType::...
| Copyright : , and License : LGPL-2.1 Maintainer : ( ) /No description available in the introspection data./ Copyright : Will Thompson, Iñaki García Etxebarria and Jonas Platte License : LGPL-2.1 Maintainer : Iñaki García Etxebarria () /No description available in the introspection...
b9737d4d588c7157a342a7edb52b3c9011eaa7c78694356e380b99da6d3e0649
michaelmelanson/network-websocket
echo.hs
import Network import qualified Network.Websocket as WS config = WS.Config { WS.configPort = 9876, WS.configOrigins = Nothing, WS.configDomains = Nothing, WS.configOnOpen = onOpen, WS.configOnMessage = onMessage, WS.configOnClose = onClos...
null
https://raw.githubusercontent.com/michaelmelanson/network-websocket/d136af391caa68d12c6afc59eaf6710747bdbf5e/examples/echo.hs
haskell
import Network import qualified Network.Websocket as WS config = WS.Config { WS.configPort = 9876, WS.configOrigins = Nothing, WS.configDomains = Nothing, WS.configOnOpen = onOpen, WS.configOnMessage = onMessage, WS.configOnClose = onClos...
2efb6c1f097a0be59dbac54aa7d782c8da1289ab26ec4fa1540ce5d7e0083558
quchen/prettyprinter
Ascii.hs
module Data.Text.Prettyprint.Doc.Symbols.Ascii {-# DEPRECATED "Use \"Prettyprinter.Symbols.Ascii\" instead." #-} ( module Prettyprinter.Symbols.Ascii ) where import Prettyprinter.Symbols.Ascii
null
https://raw.githubusercontent.com/quchen/prettyprinter/880f41eac31edfac71d2d66d338e6cfdae4f3715/prettyprinter/src/Data/Text/Prettyprint/Doc/Symbols/Ascii.hs
haskell
# DEPRECATED "Use \"Prettyprinter.Symbols.Ascii\" instead." #
module Prettyprinter.Symbols.Ascii ) where import Prettyprinter.Symbols.Ascii
e682a098b4fdadf525dd34fddf3627aa866bf76d35634afe708c697846f7c116
Ekdohibs/joujou
auxiliary.ml
type filename = string type command = string let has_suffix suffix name = Filename.check_suffix name suffix let fail format = Printf.kprintf failwith format let try_finally f h = let result = try f() with e -> h(); raise e in h(); result let with_process_code_result command (f : in_channel -> 'a) : int * 'a...
null
https://raw.githubusercontent.com/Ekdohibs/joujou/02ef5052f93623da99ed2e871a59c99a5e6026a1/test/auxiliary.ml
ocaml
arbitrary [groups eq xs] segments the list [xs] into a list of groups, where several consecutive elements belong in the same group if they are equivalent in the sense of the function [eq]. [sep ss] separates the nonempty strings in the list [ss] with a space, and concatenates everything, producing a singl...
type filename = string type command = string let has_suffix suffix name = Filename.check_suffix name suffix let fail format = Printf.kprintf failwith format let try_finally f h = let result = try f() with e -> h(); raise e in h(); result let with_process_code_result command (f : in_channel -> 'a) : int * 'a...
afa93cdffff1404de29daee33fdbf535ec40ee71455f64dc7b121094b1eb4204
AccelerateHS/accelerate-llvm
Table.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE GADTs # {-# LANGUAGE RecordWildCards #-} # LANGUAGE ScopedTypeVariables # -- | -- Module : Data.Array.Accelerate.LLVM.PTX.Array.Table Copyright : [ 2014 .. 2015 ] The Accelerate Team -- License : BSD3 -- Maintainer : < > -- Stabili...
null
https://raw.githubusercontent.com/AccelerateHS/accelerate-llvm/cf081587fecec23a19f68bfbd31334166868405e/accelerate-llvm-ptx/icebox/Data/Array/Accelerate/LLVM/PTX/Array/Table.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE RecordWildCards # | Module : Data.Array.Accelerate.LLVM.PTX.Array.Table License : BSD3 Stability : experimental new, member, lookup, malloc, accelerate CUDA standard library Memory management for the PTX backend utilises the memory table method | C...
# LANGUAGE GADTs # # LANGUAGE ScopedTypeVariables # Copyright : [ 2014 .. 2015 ] The Accelerate Team Maintainer : < > Portability : non - portable ( GHC extensions ) module Data.Array.Accelerate.LLVM.PTX.Array.Table ( MemoryTable , ) where import Data.Array.Accelerate.Array.Data imp...
0d03c5e19eddba80a72831a6de39a27260ffa2ce288de5cd438482b4ae623ef8
chpatrick/clang-pure
ListTypes.hs
# LANGUAGE TypeApplications # # LANGUAGE DataKinds # {-# LANGUAGE OverloadedStrings #-} import Language.C.Clang import Language.C.Clang.Cursor.Typed import Control.Lens import qualified Data.ByteString.Char8 as BS import System.Environment import Data.Monoid ((<>)) ma...
null
https://raw.githubusercontent.com/chpatrick/clang-pure/99d1dbe054ebe26ce8becd8e8f38894f07a6a47d/examples/ListTypes.hs
haskell
# LANGUAGE OverloadedStrings # fold over cursors recursively find only FunctionDecls... ...that are actually in the given file
# LANGUAGE TypeApplications # # LANGUAGE DataKinds # import Language.C.Clang import Language.C.Clang.Cursor.Typed import Control.Lens import qualified Data.ByteString.Char8 as BS import System.Environment import Data.Monoid ((<>)) main :: IO () main = do args <- get...
76882465c5bd02744ed2f68b8c1bebe19234bd7d074e0d00527ebd6012a1b622
rescript-lang/rescript-editor-support
ast.ml
module Path = Paths.Path module Reference = Paths.Reference module Identifier = Paths.Identifier module Comment = Comment type 'a with_location = 'a Location_.with_location type reference_kind = [ `Simple | `With_text ] type inline_element = [ | `Space | `Word of string | `Code_span of string | `Styled of ...
null
https://raw.githubusercontent.com/rescript-lang/rescript-editor-support/f6afacf93194036fafcff050cdaff150a85ccbe0/src/vendor/odoc_parser/ast.ml
ocaml
module Path = Paths.Path module Reference = Paths.Reference module Identifier = Paths.Identifier module Comment = Comment type 'a with_location = 'a Location_.with_location type reference_kind = [ `Simple | `With_text ] type inline_element = [ | `Space | `Word of string | `Code_span of string | `Styled of ...
71da65f16d73d174024bbab68be3fbf99b6242ea834767dbcc9b48c23864976c
mabragor/cl-vhdl
parsing-api.lisp
(in-package #:cl-vhdl) (defun parse-vhdl-file (file-name &key junk-allowed) (with-open-file (stream file-name) (vhdl-parse-stream 'design-file stream :junk-allowed junk-allowed)))
null
https://raw.githubusercontent.com/mabragor/cl-vhdl/1ce015c90e02a6379ae5fc69b6b936988c564bc2/src/parse/parsing-api.lisp
lisp
(in-package #:cl-vhdl) (defun parse-vhdl-file (file-name &key junk-allowed) (with-open-file (stream file-name) (vhdl-parse-stream 'design-file stream :junk-allowed junk-allowed)))
bcff4efb02d1a157ba790d83ee09bf56325ef7fbae17b85ba15d4b73130ec7fa
onlyshk/epmail
logger_sup.erl
%%%------------------------------------------------------------------- @author < > ( C ) 2011 , %%% @doc %%% %%% @end Created : 14 Jan 2011 by < > %%%------------------------------------------------------------------- -module(logger_sup). -behaviour(supervisor). -vsn('0.3'). -author(''). %% API -expor...
null
https://raw.githubusercontent.com/onlyshk/epmail/d08ab8e706a44e5e3287ea4b98490447cfb94448/src/logger_sup.erl
erlang
------------------------------------------------------------------- @doc @end ------------------------------------------------------------------- API Supervisor callbacks =================================================================== API functions =============================================================...
@author < > ( C ) 2011 , Created : 14 Jan 2011 by < > -module(logger_sup). -behaviour(supervisor). -vsn('0.3'). -author(''). -export([start_link/0, stop/0]). -export([init/1]). -define(SERVER, ?MODULE). start_link() -> supervisor:start_link({local, ?SERVER}, ?MODULE, []). init(_Args) -> R...
bc0fbed772a44fcc544a875f40e92de4b76476ff8287687d86075675d0211794
michalkonecny/aern2
waac-benchmarks.hs
module Main where import MixedTypesNumPrelude import qualified Prelude as P import Control . Applicative ( liftA2 ) import System.Environment import AERN2.MP import qualified AERN2.MP.Ball as MPBall import AERN2.Poly.Cheb import AERN2.Poly.Cheb.Maximum import AERN2.Poly.Cheb.MaxNaive import qualified AERN2.L...
null
https://raw.githubusercontent.com/michalkonecny/aern2/1c8f12dfcb287bd8e3353802a94865d7c2c121ec/aern2-fnreps/main/waac-benchmarks.hs
haskell
module Main where import MixedTypesNumPrelude import qualified Prelude as P import Control . Applicative ( liftA2 ) import System.Environment import AERN2.MP import qualified AERN2.MP.Ball as MPBall import AERN2.Poly.Cheb import AERN2.Poly.Cheb.Maximum import AERN2.Poly.Cheb.MaxNaive import qualified AERN2.L...
b49695135cc7995fd172cdb179b2698f4ff120e3a3e042c00ed514acd0248576
ajhc/ajhc
Id.hs
module Name.Id( Id(), IdMap(), IdNameT(), IdSet(), anonymous, va1,va2,va3,va4,va5, addBoundNamesIdMap, addBoundNamesIdSet, addNamesIdSet, idMapToIdSet, anonymousIds, sillyId, etherealIds, isEtherealId, isInvalidId, isEmptyId, idSetToIdMap, mapMaybe...
null
https://raw.githubusercontent.com/ajhc/ajhc/8ef784a6a3b5998cfcd95d0142d627da9576f264/src/Name/Id.hs
haskell
| some convinience anonymous ids type instance GSet Id = IdSet instance GMapSet Id where | Name monad transformer. | Run the name monad transformer. | id isn't anonymous or atom-mapped | A occasionally useful random ethereal id | find some temporary ids that are not members of the set, useful for generating a sm...
module Name.Id( Id(), IdMap(), IdNameT(), IdSet(), anonymous, va1,va2,va3,va4,va5, addBoundNamesIdMap, addBoundNamesIdSet, addNamesIdSet, idMapToIdSet, anonymousIds, sillyId, etherealIds, isEtherealId, isInvalidId, isEmptyId, idSetToIdMap, mapMaybe...
b87df67317774e3c555480ee8eb5a7f4614c6d0dc82f7bb572fee31306ba32e6
avsm/mirage-duniverse
regression.ml
open OUnit2 open X509 let cs_mmap file = Unix_cstruct.of_fd Unix.(openfile file [O_RDONLY] 0) let cert file = Encoding.Pem.Certificate.of_pem_cstruct1 (cs_mmap ("./regression/" ^ file ^ ".pem")) let jc = cert "jabber.ccc.de" let cacert = cert "cacert" let test_jc_jc _ = match Validation.verify_chain_of_trust...
null
https://raw.githubusercontent.com/avsm/mirage-duniverse/983e115ff5a9fb37e3176c373e227e9379f0d777/ocaml_modules/x509/tests/regression.ml
ocaml
open OUnit2 open X509 let cs_mmap file = Unix_cstruct.of_fd Unix.(openfile file [O_RDONLY] 0) let cert file = Encoding.Pem.Certificate.of_pem_cstruct1 (cs_mmap ("./regression/" ^ file ^ ".pem")) let jc = cert "jabber.ccc.de" let cacert = cert "cacert" let test_jc_jc _ = match Validation.verify_chain_of_trust...
3aa5d6e69a727a0a31f16c869c06ba782a15295be3c37ae914debda198758a5e
unisonweb/unison
ContentAddressable.hs
module Unison.Hashing.ContentAddressable ( ContentAddressable (..), ) where import Unison.Hash (Hash) -- | A type class that is inhabited by types that can compute a hash of their content. -- The base instances of this class should only live in dedicated " hashing packages " such as - hashing - v2@ , whose -- ...
null
https://raw.githubusercontent.com/unisonweb/unison/bf0186aefb11ef2a9ec44d55adc70f356044f0c7/lib/unison-hashing/src/Unison/Hashing/ContentAddressable.hs
haskell
| A type class that is inhabited by types that can compute a hash of their content. types and implementations should never change. Trivial wrapper instances can be written around these, but note these pipelines from written. For example, we might have a representation of some namespace in memory @ @ @ @ ...
module Unison.Hashing.ContentAddressable ( ContentAddressable (..), ) where import Unison.Hash (Hash) The base instances of this class should only live in dedicated " hashing packages " such as - hashing - v2@ , whose @MyType = = > SomeHashingType = = > Hash@ must take care not to change the @MyType = = > So...
71b153dddd4a7aee657e3f80196f59e7dbb6d78fd0044e42842a462f1a33f18f
AshleyYakeley/Truth
Runnable.hs
module Changes.Core.Resource.Runnable ( Resource(..) , MapResource(..) , joinResource_ , joinResource , runResource , runResourceContext , exclusiveResource ) where import Changes.Core.Import import Changes.Core.Resource.Function import Changes.Core.Resource.ResourceRunner data Resourc...
null
https://raw.githubusercontent.com/AshleyYakeley/Truth/ae0993834ac1a614a10dead19a34d93040ee9493/Changes/changes-core/lib/Changes/Core/Resource/Runnable.hs
haskell
module Changes.Core.Resource.Runnable ( Resource(..) , MapResource(..) , joinResource_ , joinResource , runResource , runResourceContext , exclusiveResource ) where import Changes.Core.Import import Changes.Core.Resource.Function import Changes.Core.Resource.ResourceRunner data Resourc...
57b5af261f1ec3fbdda01920c52b684f63e14ca4d635a4124c8513bedc856be6
kazu-yamamoto/http2
Server.hs
{-# LANGUAGE OverloadedStrings #-} -- | HTTP\/2 server library. -- -- Example: -- -- > {-# LANGUAGE OverloadedStrings #-} -- > module Main (main) where -- > -- > import qualified Control.Exception as E > import Data . ByteString . Builder ( byteString ) > import Network . ( ok200 ) -- > import Network.Run.TCP (r...
null
https://raw.githubusercontent.com/kazu-yamamoto/http2/88b3c192c251c15fa4dc426aa0372841dc3fee49/Network/HTTP2/Server.hs
haskell
# LANGUAGE OverloadedStrings # | HTTP\/2 server library. Example: > {-# LANGUAGE OverloadedStrings #-} > module Main (main) where > > import qualified Control.Exception as E > import Network.Run.TCP (runTCPServer) -- network-run > > > main :: IO () > main = runTCPServer Nothing "80" $ \s _peer -> runHTTP2...
> import Data . ByteString . Builder ( byteString ) > import Network . ( ok200 ) > import Network . HTTP2.Server > runHTTP2Server s = E.bracket ( allocSimpleConfig s 4096 ) > response = responseBuilder ok200 header body > header = [ ( " Content - Type " , " text / plain " ) ] modul...
7cc17f407b4ebfd98043dd9f989fd61f4d5cc2720ae97750288443ab0d7e8bdc
RichiH/git-annex
SendKey.hs
git - annex command - - Copyright 2010,2012 < > - - Licensed under the GNU GPL version 3 or higher . - - Copyright 2010,2012 Joey Hess <> - - Licensed under the GNU GPL version 3 or higher. -} module Command.SendKey where import Command import Annex.Content import Annex import Utility.Rsync i...
null
https://raw.githubusercontent.com/RichiH/git-annex/bbcad2b0af8cd9264d0cb86e6ca126ae626171f3/Command/SendKey.hs
haskell
Using noRetry here because we're the sender. Allow the key to be sent to the remote even if there seems to be - another transfer of that key going on to that remote. - That one may be stale, etc.
git - annex command - - Copyright 2010,2012 < > - - Licensed under the GNU GPL version 3 or higher . - - Copyright 2010,2012 Joey Hess <> - - Licensed under the GNU GPL version 3 or higher. -} module Command.SendKey where import Command import Annex.Content import Annex import Utility.Rsync i...
2dc91028e3ea99d766c6e60de5ed8bae94dd834bac6474eaee2fbd9e9e53816a
pallet/pallet
performance.clj
(ns server.performance (:require [pallet.core :as core] [pallet.stevedore :as stevedore] [pallet.resource :as resource] [pallet.resource.directory :as directory] [pallet.resource.exec-script :as exec-script] [pallet.resource.package :as package] [pallet.crate.iozone :as iozone] [pallet.crate.a...
null
https://raw.githubusercontent.com/pallet/pallet/30226008d243c1072dcfa1f27150173d6d71c36d/pallet/src/server/performance.clj
clojure
(ns server.performance (:require [pallet.core :as core] [pallet.stevedore :as stevedore] [pallet.resource :as resource] [pallet.resource.directory :as directory] [pallet.resource.exec-script :as exec-script] [pallet.resource.package :as package] [pallet.crate.iozone :as iozone] [pallet.crate.a...
89587f2510e1d3ab73fecbe4b1936c825e5b9d1348336714183daa06e196deb3
phadej/vec
Optics.hs
{-# LANGUAGE CPP #-} # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # # OPTIONS_GHC -fno - warn - orphans # module Data.RAVec.NonEmpty.Optics ( -- * Indexing ix, ix', ) where import Data.BinP.PosP (PosP (..), PosP' (..)) import Pre...
null
https://raw.githubusercontent.com/phadej/vec/a895ab79e054987938295d5a149758eb79d85683/ral-optics/src/Data/RAVec/NonEmpty/Optics.hs
haskell
# LANGUAGE CPP # * Indexing $setup ----------------------------------------------------------------------------- Indexing ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- Instances ----------...
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # # OPTIONS_GHC -fno - warn - orphans # module Data.RAVec.NonEmpty.Optics ( ix, ix', ) where import Data.BinP.PosP (PosP (..), PosP' (..)) import Prelude () import qualified Optics.Core as L import Data.R...
5cfc9e4112ecda64c2647ab9f1fd500b8c1000991d511fccd2b71406ba83392a
ijvcms/chuanqi_dev
merge_cfg.erl
%%%------------------------------------------------------------------- %%% @author qhb ( C ) 2016 , < COMPANY > %%% @doc %%% %%% @end Created : 14 . 六月 2016 下午4:02 %%%------------------------------------------------------------------- -module(merge_cfg). -include("common.hrl"). -include("cache.hrl"). -include("db_...
null
https://raw.githubusercontent.com/ijvcms/chuanqi_dev/7742184bded15f25be761c4f2d78834249d78097/server/trunk/server/src/business/merge/merge_cfg.erl
erlang
------------------------------------------------------------------- @author qhb @doc @end ------------------------------------------------------------------- API 保留一份 保留一份 [#db_player_monster_drop.player_id, #db_player_monster_drop.id]; 保留一份
( C ) 2016 , < COMPANY > Created : 14 . 六月 2016 下午4:02 -module(merge_cfg). -include("common.hrl"). -include("cache.hrl"). -include("db_record.hrl"). -define(APP, server). -export([ get_list/0, get_player_shift/1, get_keys/1, get_source_servers/0 ]). get_list() -> [db_player_base, db_account, db_arena_shop,...
d5162f14d495f54cdc873611746d1b40837bd7ee7f852157e74f821666c81035
zotonic/webzmachine
webmachine_decision_core.erl
@author < > @author < > @author < > 2007 - 2009 Basho Technologies %% 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 requir...
null
https://raw.githubusercontent.com/zotonic/webzmachine/fe0075257e264fa28ba4112603794a48a78d8405/src/webmachine_decision_core.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. limitations under the License. @doc D...
@author < > @author < > @author < > 2007 - 2009 Basho Technologies Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , See the License for the specific language governing permissions and -module(web...
6238da813e1abbbe543d3229beaa662d4796e8836b80b754e2684080ca958e99
input-output-hk/ouroboros-network
Socket.hs
# LANGUAGE CPP # {-# LANGUAGE DataKinds #-} # LANGUAGE DeriveGeneric # # LANGUAGE DerivingVia # {-# LANGUAGE FlexibleContexts #-} # LANGUAGE GADTs # # LANGUAGE NamedFieldPuns # {-# LANGUAGE RankNTypes #-} {-# LANGUAGE RecordWildCards #-} # ...
null
https://raw.githubusercontent.com/input-output-hk/ouroboros-network/a3de4116840c7fa07bda02d3e6f678cd1f9c2be4/ouroboros-network-framework/src/Ouroboros/Network/Socket.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE RankNTypes # # LANGUAGE RecordWildCards # it is useful to have 'HasInitiator' constraint on 'connectToNode' & friends. # OPTIONS_GHC -Wno-redundant-constraints # | Module exports interface for running a node over a socket over ...
# LANGUAGE CPP # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingVia # # LANGUAGE GADTs # # LANGUAGE NamedFieldPuns # # LANGUAGE ScopedTypeVariables # For Hashable SockAddr # OPTIONS_GHC -Wno - orphans # module Ouroboros.Network.Socket ConnectionTable , Co...
b466963d1290dae35e61df13b716f1e3803dc47f6f38bb7142fc0312e1241482
dwayne/eopl3
env.rkt
#lang eopl (require "./parser.rkt") (provide ;; Build empty-env extend-env extend-env-rec ;; Query env? apply-env identifier? identifier=?) (define-datatype env env? [empty] [extend (var identifier?) (val any?) (saved-env env?)] [extend-rec (p-name identifier?) (b-var identifier?) ...
null
https://raw.githubusercontent.com/dwayne/eopl3/9d5fdb2a8dafac3bc48852d49cda8b83e7a825cf/solutions/05-ch5/interpreters/racket/CONTINUATION-PASSING-5.3/env.rkt
racket
Build Query
#lang eopl (require "./parser.rkt") (provide empty-env extend-env extend-env-rec env? apply-env identifier? identifier=?) (define-datatype env env? [empty] [extend (var identifier?) (val any?) (saved-env env?)] [extend-rec (p-name identifier?) (b-var identifier?) (p-body expression?)...
e2c808eb44ddc7247dad0db8a09bc8a7b62359804e43ec68973fd1eda86313e0
Ubspy/Haskell-Tetris
Tetris.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE BlockArguments # module Tetris (runTetris) where import Graphics.Blank import Control.Concurrent import Control.Monad import MatrixController import DrawGrid import Debug.Trace data GameState = Menu | Placed | Playing | Tick | Drop | Lost deriving Eq -- TODO: Remove, thi...
null
https://raw.githubusercontent.com/Ubspy/Haskell-Tetris/5b5b371b0680949316d514ea217137032af4353a/src/Tetris.hs
haskell
# LANGUAGE OverloadedStrings # TODO: Remove, this is for debugging someFunc :: IO () someFunc = putStrLn "someFunc" and a function we're writing in line with the Game loop function, to take care of handling the main game loop If we've lost, show game over, otherwise update board if the game state has changed Cont...
# LANGUAGE BlockArguments # module Tetris (runTetris) where import Graphics.Blank import Control.Concurrent import Control.Monad import MatrixController import DrawGrid import Debug.Trace data GameState = Menu | Placed | Playing | Tick | Drop | Lost deriving Eq instance Show GameState where show state | st...
b7ce9310f8dc0da67d29fdf6ec70547a62c9d6fff60809ba5acffa6dca0c4c1a
uim/uim
test-base.scm
Copyright ( c ) 2003 - 2013 uim Project ;;; ;;; All rights reserved. ;;; ;;; 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 ...
null
https://raw.githubusercontent.com/uim/uim/d1ac9d9315ff8c57c713b502544fef9b3a83b3e5/test/i18n/test-base.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: notice, this list of conditions and the following disclaimer. notice, this list of conditions and the following disclaimer in the document...
Copyright ( c ) 2003 - 2013 uim Project 1 . Redistributions of source code must retain the above copyright 2 . Redistributions in binary form must reproduce the above copyright 3 . Neither the name of authors nor the names of its contributors THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTOR...
442e4de79924e4bc8a7e1261482ad4da7ebc73cec571bcb47a4a67add067c2c1
askonomm/clarktown
heading_block.clj
(ns clarktown.renderers.heading-block (:require [clojure.string :as string] [clarktown.matchers.heading-block :as matcher]) (:import (java.text Normalizer Normalizer$Form))) (defn- slugify "Turn `input` in a URL slug." [input] (let [split-s(-> (Normalizer/normalize input Normalizer$Form/NFD) ...
null
https://raw.githubusercontent.com/askonomm/clarktown/2ff0da12f58d17b6c1ab3736a41595073b3a534e/src/clarktown/renderers/heading_block.clj
clojure
(ns clarktown.renderers.heading-block (:require [clojure.string :as string] [clarktown.matchers.heading-block :as matcher]) (:import (java.text Normalizer Normalizer$Form))) (defn- slugify "Turn `input` in a URL slug." [input] (let [split-s(-> (Normalizer/normalize input Normalizer$Form/NFD) ...
a80aecb126f72d7dd6f6b1170b647c503b571e247d33dd1dbc69278c913f2bf6
higherkindness/mu-haskell
Server.hs
# language DataKinds # # language NamedFieldPuns # # language OverloadedStrings # {-# language PartialTypeSignatures #-} # language TypeApplications # # OPTIONS_GHC -fno - warn - partial - type - signatures # module Main where import Control.Concurrent.STM import Co...
null
https://raw.githubusercontent.com/higherkindness/mu-haskell/e41ba786f556cfac962e0f183b36bf9ae81d69e4/examples/todolist/src/Server.hs
haskell
# language PartialTypeSignatures # Server implementation -io/freestyle/blob/master/modules/examples/todolist-lib/src/main/scala/todo/service/TodoListService.scala OK ✅ did nothing
# language DataKinds # # language NamedFieldPuns # # language OverloadedStrings # # language TypeApplications # # OPTIONS_GHC -fno - warn - partial - type - signatures # module Main where import Control.Concurrent.STM import Control.Monad.IO.Class (liftIO) import ...
bcf1d1079e67b57b72831bd057915859de7e2b7eee59b990dec0d5bbccdb0b2c
antono/guix-debian
busybox.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2014 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 3 of the Li...
null
https://raw.githubusercontent.com/antono/guix-debian/85ef443788f0788a62010a942973d4f7714d10b4/gnu/packages/busybox.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2014 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (gnu packages busybox) #:use-module (guix licenses) #:use-module (guix packages) #:use-modu...
2b5d94621a0d55a49c02568853b22d67638168ed3fb017a6613a419f8072820a
fluree/ledger
schema.clj
(ns fluree.db.ledger.transact.schema (:require [fluree.db.constants :as const] [fluree.db.flake :as flake] [fluree.db.util.core :as util] [fluree.db.dbproto :as dbproto]) (:import (fluree.db.flake Flake))) (set! *warn-on-reflection* true) ;; functions related to validating and ...
null
https://raw.githubusercontent.com/fluree/ledger/24c43bde60e0d33fb90c24021b2f90288a98c25a/src/fluree/db/ledger/transact/schema.clj
clojure
functions related to validating and working with schemas inside of transactions new predicate (not a modification), allow a type retraction + addition, but change is of allowed type a type retraction + addition, but change is not allowed or not of allowed type retraction of type without a new type being specified,...
(ns fluree.db.ledger.transact.schema (:require [fluree.db.constants :as const] [fluree.db.flake :as flake] [fluree.db.util.core :as util] [fluree.db.dbproto :as dbproto]) (:import (fluree.db.flake Flake))) (set! *warn-on-reflection* true) (def ^:const collection-name-regex #"^...
c40f294280379c8c88b61f943cf113c5789f3df43fcdd6006270b6d0aaee17b0
iand675/datadog
StatsD.hs
module Test.Network.Datadog.StatsD (spec) where import Control.Monad.Catch (bracket) import Network.Socket ( AddrInfoFlag (AI_PASSIVE) , Socket , SocketType (Datagram) , addrAddress , addrFamily , addrFlags , bind , close , defaultHints , defaultProtocol , getAddrInfo , socket ) import Networ...
null
https://raw.githubusercontent.com/iand675/datadog/0419b9dfc32581a2e27316786c23df452c7bd475/test/Test/Network/Datadog/StatsD.hs
haskell
module Test.Network.Datadog.StatsD (spec) where import Control.Monad.Catch (bracket) import Network.Socket ( AddrInfoFlag (AI_PASSIVE) , Socket , SocketType (Datagram) , addrAddress , addrFamily , addrFlags , bind , close , defaultHints , defaultProtocol , getAddrInfo , socket ) import Networ...
167ea256cc578eb1fc9d85c67b3c9030805770a833299b98d9e3757ccf95f2b7
vaughnd/clojure-example-logback-integration
core.clj
(ns clojure-example-logback-integration.core (:require [clojure-example-logback-integration.log :as log])) (defn -main [& args] (log/debug "Test debug log") (log/info "Test info log") (log/error "Test error log") (try (throw (Exception. "JUST A TEST. DON'T PANIC.")) (catch Exception e (log/error e"T...
null
https://raw.githubusercontent.com/vaughnd/clojure-example-logback-integration/4bec2964ead9ff6f7bd1cf670572578f4421c44a/src/clojure_example_logback_integration/core.clj
clojure
(ns clojure-example-logback-integration.core (:require [clojure-example-logback-integration.log :as log])) (defn -main [& args] (log/debug "Test debug log") (log/info "Test info log") (log/error "Test error log") (try (throw (Exception. "JUST A TEST. DON'T PANIC.")) (catch Exception e (log/error e"T...
4307bdc7b42eb565dd1c6a00d3adf0be9a83bcd1ea840977ca16e699c958f67c
henryw374/clojure.log4j2
log_api.clj
(ns com.widdindustries.log4j2.log-api (:require [com.widdindustries.log4j2.log-impl :as impl] [clojure.string :as str] [clojure.set :as set]) (:import [org.apache.logging.log4j.message Message MapMessage] [org.apache.logging.log4j LogBuilder Level Marker LogManager] [or...
null
https://raw.githubusercontent.com/henryw374/clojure.log4j2/32e08d2a0e488dc379f3a09ed62e0d3350ca239b/src/com/widdindustries/log4j2/log_api.clj
clojure
by creating an intermediate map, this is more wasteful than necessary but needed until -log4j2/pull/477 is addressed
(ns com.widdindustries.log4j2.log-api (:require [com.widdindustries.log4j2.log-impl :as impl] [clojure.string :as str] [clojure.set :as set]) (:import [org.apache.logging.log4j.message Message MapMessage] [org.apache.logging.log4j LogBuilder Level Marker LogManager] [or...
9489f96da3ce3b5156df42452d01cb2c106ea62f0597711b5959a4a8a89fd6ec
paf31/dovetail
HeytingAlgebra.hs
# LANGUAGE BlockArguments # # LANGUAGE ImportQualifiedPost # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE ViewPatterns # module Dovetail.Core.Data.HeytingAlgebra where import Data.Foldable (fold) import Dovetail import Dovetail.Evalua...
null
https://raw.githubusercontent.com/paf31/dovetail/60e00e247b643ad9c05e4137396ffddedcd8bcb6/dovetail-core/src/Dovetail/Core/Data/HeytingAlgebra.hs
haskell
# LANGUAGE OverloadedStrings # boolConj :: Boolean -> Boolean -> Boolean boolDisj :: Boolean -> Boolean -> Boolean boolNot :: Boolean -> Boolean
# LANGUAGE BlockArguments # # LANGUAGE ImportQualifiedPost # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE ViewPatterns # module Dovetail.Core.Data.HeytingAlgebra where import Data.Foldable (fold) import Dovetail import Dovetail.Evaluate (builtIn) env :: forall ctx. Env ...
1f4b4a86933e8830b85553c0b92a90cd3c581816c04cbef9b0c28f095c88a68a
Gertjan423/KHC
Errors.hs
# LANGUAGE FlexibleContexts # module Utils.Errors where import Utils.PrettyPrint import Control.Monad.Except -- GEORGE: Store a doc as an error, not a string throwErrorM :: MonadError String m => Doc -> m a throwErrorM d = throwError (renderError d)
null
https://raw.githubusercontent.com/Gertjan423/KHC/07d00ebaab5245f632eff8ae7930711a44259192/Utils/Errors.hs
haskell
GEORGE: Store a doc as an error, not a string
# LANGUAGE FlexibleContexts # module Utils.Errors where import Utils.PrettyPrint import Control.Monad.Except throwErrorM :: MonadError String m => Doc -> m a throwErrorM d = throwError (renderError d)
4b5771f817036810a69e5dd60f88f2218779886f36d42291cda7287bf4ee24c4
kumarshantanu/asphalt
type.clj
Copyright ( c ) . All rights reserved . ; The use and distribution terms for this software are covered by the ; Eclipse Public License 1.0 (-1.0.php) ; which can be found in the file LICENSE at the root of this distribution. ; By using this software in any fashion, you are agreeing to be bound by ; the ...
null
https://raw.githubusercontent.com/kumarshantanu/asphalt/1a6a890ec05d038b204764c5b0fb5357476f41f1/src/asphalt/type.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file LICENSE at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this ...
Copyright ( c ) . All rights reserved . (ns asphalt.type (:import [java.sql Connection PreparedStatement ResultSet])) (defprotocol IConnectionSource (^java.sql.Connection create-connection [this] "Create connection from the source") (^java.sql.Connection obtain-connection [this] "Obtain connection f...
cf23081f1fd89d2041c79e0adf3c69864e7c7c82f1f59183afab7416d776b660
LambdaScientist/CLaSH-by-example
StandardMux2.hs
# LANGUAGE DataKinds # # LANGUAGE RecordWildCards # # LANGUAGE TemplateHaskell # # LANGUAGE NoImplicitPrelude # module InAndOut.Models.StandardMux2 where import CLaSH.Prelude import Control.Lens hiding ((:>)) import Control.Monad.Trans.State import SAFE.TestingTools import SAFE.CommonClash import Text...
null
https://raw.githubusercontent.com/LambdaScientist/CLaSH-by-example/e783cd2f2408e67baf7f36c10398c27036a78ef3/ConvertedClashExamples/src/InAndOut/Models/StandardMux2.hs
haskell
inputs Outputs and state data Signal st
# LANGUAGE DataKinds # # LANGUAGE RecordWildCards # # LANGUAGE TemplateHaskell # # LANGUAGE NoImplicitPrelude # module InAndOut.Models.StandardMux2 where import CLaSH.Prelude import Control.Lens hiding ((:>)) import Control.Monad.Trans.State import SAFE.TestingTools import SAFE.CommonClash import Text...
f762432a25632b61bef99c4530c9e1dd4e7c4cefc0026ee8bf8e4000d2f41de5
roburio/albatross
vmm_unix.mli
( c ) 2017 , all rights reserved open Vmm_core type supported = FreeBSD | Linux val uname : supported Lazy.t val sd_listen_fds : unit -> Unix.file_descr list option val set_dbdir : Fpath.t -> unit val check_commands : unit -> (unit, [> `Msg of string ]) result val prepare : Name.t -> Unikernel.config -> ((...
null
https://raw.githubusercontent.com/roburio/albatross/06ce35c1386a601e92ee6282102fd775588661f6/src/vmm_unix.mli
ocaml
( c ) 2017 , all rights reserved open Vmm_core type supported = FreeBSD | Linux val uname : supported Lazy.t val sd_listen_fds : unit -> Unix.file_descr list option val set_dbdir : Fpath.t -> unit val check_commands : unit -> (unit, [> `Msg of string ]) result val prepare : Name.t -> Unikernel.config -> ((...
fb9840f71db044f2137cdcc1f3f42bd0f21c83aa7dcbb22baf619ed81e795379
dradtke/Lisp-Text-Editor
ex1.lisp
(asdf:oos 'asdf:load-op :gtk-cffi) (defpackage #:test-ex1 (:use #:common-lisp #:gtk-cffi #:g-object-cffi #:cffi)) (in-package #:test-ex1) (cffi:defcallback hello :void ((widget pobject) (data pdata)) (format t "Превед ~a from ~a~%" data widget)) (gtk-init) (defvar window) (defvar button) (setf window (make-ins...
null
https://raw.githubusercontent.com/dradtke/Lisp-Text-Editor/b0947828eda82d7edd0df8ec2595e7491a633580/quicklisp/dists/quicklisp/software/gtk-cffi-20120208-cvs/examples/ex1.lisp
lisp
(asdf:oos 'asdf:load-op :gtk-cffi) (defpackage #:test-ex1 (:use #:common-lisp #:gtk-cffi #:g-object-cffi #:cffi)) (in-package #:test-ex1) (cffi:defcallback hello :void ((widget pobject) (data pdata)) (format t "Превед ~a from ~a~%" data widget)) (gtk-init) (defvar window) (defvar button) (setf window (make-ins...
73cc44cd3ffce812ef9b75895c1dc4094b6f72e3c36ba70b4913b58f42e8dba2
fetburner/Coq2SML
closure.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2014 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/fetburner/Coq2SML/322d613619edbb62edafa999bff24b1993f37612/coq-8.4pl4/checker/closure.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** Profiling [r_const=(true,cl)] mea...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2014 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Util open Pp open Term o...
c3e589ea4f64b7ac98fb1c876791a5280c9b4f90912fd84e69ffe8436b4635d2
dym/movitz
arrays.lisp
;;;;------------------------------------------------------------------ ;;;; Copyright ( C ) 2001 - 2005 , Department of Computer Science , University of Tromso , Norway . ;;;; ;;;; For distribution policy, see the accompanying file COPYING. ;;;; ;;;; Filename: arrays.lisp ;;;; Description: Aut...
null
https://raw.githubusercontent.com/dym/movitz/56176e1ebe3eabc15c768df92eca7df3c197cb3d/losp/muerte/arrays.lisp
lisp
------------------------------------------------------------------ For distribution policy, see the accompanying file COPYING. Filename: arrays.lisp Description: ------------------------------------------------------------------ element-type 0? element-type 0? t?...
Copyright ( C ) 2001 - 2005 , Department of Computer Science , University of Tromso , Norway . Author : < > Created at : Sun Feb 11 23:14:04 2001 $ I d : arrays.lisp , v 1.68 2008 - 04 - 21 19:30:40 Exp $ (require :muerte/basic-macros) (require :muerte/typep) (require :muerte/memref) (...
2c44dc834195c951707eeeac48cc12990577f398af03d3345971e3874aa880b5
inaka/fiar
fiar_current_user_handler.erl
-module (fiar_current_user_handler). -export( [ init/3 , rest_init/2 , allowed_methods/2 , content_types_provided/2 , is_authorized/2 , handle_get/2 ] ). %% cowboy init(_Transport, _Req, _Opts) -> {upgrade, protocol, cowboy_rest}. rest_init(Req, State) -> {ok, Req, State}. allowed_methods(Req, State) ->...
null
https://raw.githubusercontent.com/inaka/fiar/76bd812c37ebbeb15536068fd802acf430617aff/src/fiar_current_user_handler.erl
erlang
cowboy
-module (fiar_current_user_handler). -export( [ init/3 , rest_init/2 , allowed_methods/2 , content_types_provided/2 , is_authorized/2 , handle_get/2 ] ). init(_Transport, _Req, _Opts) -> {upgrade, protocol, cowboy_rest}. rest_init(Req, State) -> {ok, Req, State}. allowed_methods(Req, State) -> {[<<"GE...
ca419ebff11356fac6c7336bc8fa34a6170b9d096f7a178d91c972bb4ceb69d0
AdRoll/erliam
awsv4.erl
( C ) 2017 , AdRoll %%% @doc %%% AWSv4 signature support adapted from Kinetic . %%% %%% @end Created : 1 Feb 2017 by < > -module(awsv4). -export([headers/2, headers/3, canonical_query/1, long_term_credentials/2, credentials_from_plist/1, isonow/0, isonow/1]). -export([credentials_from_tuple/1,...
null
https://raw.githubusercontent.com/AdRoll/erliam/d2002fdfc2e5d16c8f79b3f70ce49532929371be/src/awsv4.erl
erlang
@doc @end required when using temporary credentials "YYYYMMDDTHHMMSSZ" API @doc Function used to "convert" a tuple returned from an ets:lookup/2 call into a valid opaque term of type credentials/0. yyyymmdd fixme; handle repeated params. INTERNAL FUNCTIONS note: should remove redundant and relative pa...
( C ) 2017 , AdRoll AWSv4 signature support adapted from Kinetic . Created : 1 Feb 2017 by < > -module(awsv4). -export([headers/2, headers/3, canonical_query/1, long_term_credentials/2, credentials_from_plist/1, isonow/0, isonow/1]). -export([credentials_from_tuple/1, is_aws_credentials/1, cre...