_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
8cd3e1ae6e8a0cf3186986282d5fa2df03630f9ad5e30efa69348abbf2fb8b9d
MyDataFlow/ttalk-server
mim_ct_sup.erl
-module(mim_ct_sup). -behaviour(supervisor). -export([start_link/1, init/1]). start_link(Name) -> supervisor:start_link({local, Name}, ?MODULE, []). init([]) -> {ok, {{one_for_one, 10, 1}, []}}.
null
https://raw.githubusercontent.com/MyDataFlow/ttalk-server/07a60d5d74cd86aedd1f19c922d9d3abf2ebf28d/apps/ejabberd/test/mim_ct_sup.erl
erlang
-module(mim_ct_sup). -behaviour(supervisor). -export([start_link/1, init/1]). start_link(Name) -> supervisor:start_link({local, Name}, ?MODULE, []). init([]) -> {ok, {{one_for_one, 10, 1}, []}}.
5705ad97c7ec2d80e7fa961e026719055bae239d856c7fa8fb8353713b0fe51f
ahungry/ahubu
lib.clj
(ns ahubu.lib (:require [clojure.string :as str]) (:import MyEventDispatcher WebUIController (java.io File) (java.net HttpURLConnection URL URLConnection URLStreamHandler URLStreamHandlerFactory) (javafx.application Application Platform) (javafx.beans.value ChangeListener) (javafx.concurrent...
null
https://raw.githubusercontent.com/ahungry/ahubu/29f19ea71ab4121d932f1cd976fc3edc2b0999b9/src/ahubu/lib.clj
clojure
Each scene is basically a tab (def atomic-default-url (atom "")) Work with a sort of timeout here - cross domain base is set strictly after first URL request, then lax again after some time has expired. FIXME: Handle root domain logic better - when to flip/flop cross domain setting TODO: Add cross domain user set...
(ns ahubu.lib (:require [clojure.string :as str]) (:import MyEventDispatcher WebUIController (java.io File) (java.net HttpURLConnection URL URLConnection URLStreamHandler URLStreamHandlerFactory) (javafx.application Application Platform) (javafx.beans.value ChangeListener) (javafx.concurrent...
a088e3a2c2621e9150b85eb1d5a8c37c096811226e1c3fa9ce535f12f4e5d2bf
GregorySchwartz/too-many-cells
Types.hs
TooManyCells . Classify . Types Collects the types used in classification of cells . Gregory W. Schwartz Collects the types used in classification of cells. -} {-# LANGUAGE StrictData #-} module TooManyCells.Classify.Types where -- Remote -- Local -- Basic newtype SingleMatrixFlag = SingleMatrixFlag ...
null
https://raw.githubusercontent.com/GregorySchwartz/too-many-cells/0de948c6e99a489f1d2e8c412a04e4bcf3b26806/src/TooManyCells/Classify/Types.hs
haskell
# LANGUAGE StrictData # Remote Local Basic
TooManyCells . Classify . Types Collects the types used in classification of cells . Gregory W. Schwartz Collects the types used in classification of cells. -} module TooManyCells.Classify.Types where newtype SingleMatrixFlag = SingleMatrixFlag { unSingleMatrixFlag :: Bool } deriving (Read,Sho...
9929d7deb1de371d588ba9aa763f28d50190e95f8e7dff6fd0de1405fd800233
cedlemo/OCaml-GI-ctypes-bindings-generator
Shadow_type.ml
open Ctypes open Foreign type t = None | In | Out | Etched_in | Etched_out let of_value v = if v = Unsigned.UInt32.of_int 0 then None else if v = Unsigned.UInt32.of_int 1 then In else if v = Unsigned.UInt32.of_int 2 then Out else if v = Unsigned.UInt32.of_int 3 then Etched_in else if v = Unsigned.UInt32.of_...
null
https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gtk3/Shadow_type.ml
ocaml
open Ctypes open Foreign type t = None | In | Out | Etched_in | Etched_out let of_value v = if v = Unsigned.UInt32.of_int 0 then None else if v = Unsigned.UInt32.of_int 1 then In else if v = Unsigned.UInt32.of_int 2 then Out else if v = Unsigned.UInt32.of_int 3 then Etched_in else if v = Unsigned.UInt32.of_...
7a54422ec2ce3b0bbaab935536cf6b8fa48494678972e721e6ed704d64c3c5f3
eslick/cl-stdutils
matrix.lisp
-*-Mode : LISP ; Package : stdutils ; ; Syntax : Common - lisp -*- (in-package :stdutils) (eval-when (:compile-toplevel) (export '(matrixp num-rows num-cols square-matrix? make-matrix make-identity-matrix copy-matrix print-matrix transpose-matrix multiply-matrix add-matrix subtract-matrix i...
null
https://raw.githubusercontent.com/eslick/cl-stdutils/4a4e5a4036b815318282da5dee2a22825369137b/src/matrix.lisp
lisp
Package : stdutils ; ; Syntax : Common - lisp -*- Matrix operations Empty arguments check (defun-exported matrix-multiply-vector (matrix vector) "Multiply a matrix by a vector" (assert (= (array-dimension matrix 0) (array-dimension vector 0))) ( Empty arguments check Empty arguments check...
(in-package :stdutils) (eval-when (:compile-toplevel) (export '(matrixp num-rows num-cols square-matrix? make-matrix make-identity-matrix copy-matrix print-matrix transpose-matrix multiply-matrix add-matrix subtract-matrix invert-matrix solve-matrix))) (eval-when (:compile-toplevel) (p...
fe8d76e084d827608be3cae00510185093257b54b5b558c6112148e74e8f8f46
tomjridge/tjr_simple_earley
earley.ml
(** An experiment to see whether the imperative code (represented using a monad) is easier to read; probably it is. *) open Prelude (* profiling; debugging --------------------------------------------- *) let dest_Some = function Some x -> x | _ -> (failwith "dest_Some") let now () = Core.Time_stamp_counter.( ...
null
https://raw.githubusercontent.com/tomjridge/tjr_simple_earley/ca558e0e7f4ddba4cd6573bf180710cd02f25ba4/_work_in_progress/experimental_v2/abstract/earley.ml
ocaml
* An experiment to see whether the imperative code (represented using a monad) is easier to read; probably it is. profiling; debugging --------------------------------------------- main ------------------------------------------------------------- :am: :af: :aj: :al: :am: :ax: :ce: :co: :cw: we need to process...
open Prelude let dest_Some = function Some x -> x | _ -> (failwith "dest_Some") let now () = Core.Time_stamp_counter.( now () |> to_int63 |> Core.Int63.to_int |> dest_Some) let Tjr_profile.{mark;get_marks} = Tjr_profile.mk_profiler ~now let run_earley ~monad_ops ~item_ops ~state_ops ~at_ops = let { bind;...
15d9e2a560a4ea2b22ab27725681163057209aee7d75ba9c48498c587188f27f
souenzzo/souenzzo.github.io
wtf.clj
(ns br.com.souenzzo.wtf (:require [clojure.java.shell :as sh] [clojure.java.io :as io]) (:import (java.io File ByteArrayOutputStream) (org.graalvm.polyglot Context Source Value) (org.graalvm.polyglot.io ByteSequence))) (set! *warn-on-reflection* true) (defn wat->wasm [s] (let...
null
https://raw.githubusercontent.com/souenzzo/souenzzo.github.io/30a811c4e5633ad07bba1d58d19eb091dac222e9/wtf/src/br/com/souenzzo/wtf.clj
clojure
(ns br.com.souenzzo.wtf (:require [clojure.java.shell :as sh] [clojure.java.io :as io]) (:import (java.io File ByteArrayOutputStream) (org.graalvm.polyglot Context Source Value) (org.graalvm.polyglot.io ByteSequence))) (set! *warn-on-reflection* true) (defn wat->wasm [s] (let...
98e055f69853978bd47a1baf8e5cc8c23116030eb15a2445fd902120dbd0a62d
alexandergunnarson/quantum
reify.cljc
(ns quantum.core.macros.reify (:refer-clojure :exclude [contains?]) (:require [quantum.core.error :as err :refer [>ex-info]] [quantum.core.fn :as fn :refer [fn-> fn->> <-]] [quantum.core.log :as log] [quantum.core.logic :as...
null
https://raw.githubusercontent.com/alexandergunnarson/quantum/0c655af439734709566110949f9f2f482e468509/src/quantum/core/macros/reify.cljc
clojure
to pass on :default and :nil?
(ns quantum.core.macros.reify (:refer-clojure :exclude [contains?]) (:require [quantum.core.error :as err :refer [>ex-info]] [quantum.core.fn :as fn :refer [fn-> fn->> <-]] [quantum.core.log :as log] [quantum.core.logic :as...
38bb8538c319a540e06d98fb6713d20f83ee16d51f0bca16846552f61e9f1ba3
abtv/tech-radar
message_view.cljs
(ns tech-radar.ui.message-view (:require [om.next :as om :refer-macros [defui]] [sablono.core :refer-macros [html]])) (defui MessageView Object (render [this] (let [{:keys [text]} (om/props this)] (html [:div {} [:p {:class "lead"} text]])))) (def message-view (om/factory ...
null
https://raw.githubusercontent.com/abtv/tech-radar/167c1c66ff2cf7140fe1de247d67a7134b0b1748/src/cljs/tech-radar/ui/message_view.cljs
clojure
(ns tech-radar.ui.message-view (:require [om.next :as om :refer-macros [defui]] [sablono.core :refer-macros [html]])) (defui MessageView Object (render [this] (let [{:keys [text]} (om/props this)] (html [:div {} [:p {:class "lead"} text]])))) (def message-view (om/factory ...
56075699f7ac23c42a420418809a5008ffda2a8db0bb5b1596178bf222505120
Eonblast/Scalaxis
hfs_beh.erl
2010 - 2011 Zuse Institute Berlin Licensed under the Apache License , Version 2.0 ( the " License " ) ; % you may not use this file except in compliance with the License. % You may obtain a copy of the License at % % -2.0 % % Unless required by applicable law or agreed to in writing, software di...
null
https://raw.githubusercontent.com/Eonblast/Scalaxis/10287d11428e627dca8c41c818745763b9f7e8d4/src/rrepair/hfs_beh.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language gov...
2010 - 2011 Zuse Institute Berlin Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @author < > @doc HashFunctionSet Behaviour -module(hfs_beh). -export([behaviour_info/1]). -spec behaviour_info(atom()) -...
824ef6c6c091dea725440d89540dd8132dafb24156007dfc45e740754a5d154b
NetComposer/nksip
timer_test_ua2.erl
%% ------------------------------------------------------------------- %% %% timer_test: Timer (RFC4028) Tests %% Copyright ( c ) 2013 . All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the Lic...
null
https://raw.githubusercontent.com/NetComposer/nksip/7fbcc66806635dc8ecc5d11c30322e4d1df36f0a/test/callbacks/timer_test_ua2.erl
erlang
------------------------------------------------------------------- timer_test: Timer (RFC4028) Tests 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. See the License for the s...
Copyright ( c ) 2013 . 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 WARRANTIES OR CONDITIONS OF ANY -module(timer_test_ua2). -i...
7a4efaf69ae731c806af0c9906c2c83c794b6f451339259f4c8a961f403ce559
Octachron/codept
stdlib_414.ml
let modules= let open Module in let open Sig in Dict.of_list [("Arg",Sig ({origin=Unit {source={source=Special "stdlib"; file={name="Arg";namespace=["Stdlib"]}};path={name="Arg";namespace=["Stdlib"]}}; signature=empty})); ("Array",Sig ({origin=Unit {source={source=Special "stdlib"; file={name="Array";n...
null
https://raw.githubusercontent.com/Octachron/codept/5346aee9337f4bef6a2e5bb7db91625217ca499e/tests/bundle_refs/stdlib_414.ml
ocaml
let modules= let open Module in let open Sig in Dict.of_list [("Arg",Sig ({origin=Unit {source={source=Special "stdlib"; file={name="Arg";namespace=["Stdlib"]}};path={name="Arg";namespace=["Stdlib"]}}; signature=empty})); ("Array",Sig ({origin=Unit {source={source=Special "stdlib"; file={name="Array";n...
88a78b6721cb90962b6e4d91057431b9f5d9c46f0f725f51132c80985439ae3c
ejgallego/coq-serapi
ser_pp.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/ejgallego/coq-serapi/61d2a5c092c1918312b8a92f43a374639d1786f9/serlib/ser_pp.ml
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 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright 2016 - 2017 MINES...
10a5b2fb6e9e635096375da5d9acb3d3a1700e7c0f95add27957c15f078ff063
facebook/duckling
Tests.hs
Copyright ( c ) 2016 - present , Facebook , Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. module Duckling.Ordinal.HE.Tests ( tests ) where import Data.String import Prelude import Test.Tasty impo...
null
https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/tests/Duckling/Ordinal/HE/Tests.hs
haskell
All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree.
Copyright ( c ) 2016 - present , Facebook , Inc. module Duckling.Ordinal.HE.Tests ( tests ) where import Data.String import Prelude import Test.Tasty import Duckling.Dimensions.Types import Duckling.Ordinal.HE.Corpus import Duckling.Testing.Asserts tests :: TestTree tests = testGroup "HE Tests" [ makeCorpusTe...
fc3cd2359296711afd6c5e31e10b7e197096988f56c9613b3126ef31ac96aee5
esl/erlang-web
tarball.erl
#!/usr/bin/env escript -include_lib("kernel/include/file.hrl"). main([]) -> Name = string:strip(io:get_line("Name of the tarball: "), both, 10), Url = string:strip(io:get_line("SVN address: "), both, 10), main([Name, Url]); main([Name, URL]) -> Path = export_svn(URL, Name), generate_pdf(Name, Path...
null
https://raw.githubusercontent.com/esl/erlang-web/2e5c2c9725465fc5b522250c305a9d553b3b8243/bin/tarball.erl
erlang
#!/usr/bin/env escript -include_lib("kernel/include/file.hrl"). main([]) -> Name = string:strip(io:get_line("Name of the tarball: "), both, 10), Url = string:strip(io:get_line("SVN address: "), both, 10), main([Name, Url]); main([Name, URL]) -> Path = export_svn(URL, Name), generate_pdf(Name, Path...
ebc73f48c33985a4309baac2d3d63dac055be18daa3db3c36095f775e75e9867
omnyway-labs/re-crud
http_client.cljs
(ns re-crud.http-client (:require [re-frame.core :refer [dispatch]] [ajax.core :refer [POST GET] :as ajax] [cljs.reader :as reader] [clojure.string :as s])) (defn log [& args] (.log js/console :info args)) (defn make-url [service-url url request-params] (->> (reduce (fn [u [k...
null
https://raw.githubusercontent.com/omnyway-labs/re-crud/2fe9cbcf0a19d8c09a86d9025577e6271e9dd5a3/src/cljs/re_crud/http_client.cljs
clojure
(ns re-crud.http-client (:require [re-frame.core :refer [dispatch]] [ajax.core :refer [POST GET] :as ajax] [cljs.reader :as reader] [clojure.string :as s])) (defn log [& args] (.log js/console :info args)) (defn make-url [service-url url request-params] (->> (reduce (fn [u [k...
3e79f6b6830537c7da603723fa71296fe6742751b8505937f227b4a7a16dadee
noinia/hgeometry
Types.hs
# LANGUAGE ScopedTypeVariables # -------------------------------------------------------------------------------- -- | -- Module : Algorithms.Geometry.DelaunayTriangulation.Types Copyright : ( C ) -- License : see the LICENSE file Maintainer : -- Defines some geometric types used in the de...
null
https://raw.githubusercontent.com/noinia/hgeometry/8bebc3ddc2b24c1fe46b768248f324e1351aa7f2/hgeometry/src/Algorithms/Geometry/DelaunayTriangulation/Types.hs
haskell
------------------------------------------------------------------------------ | Module : Algorithms.Geometry.DelaunayTriangulation.Types License : see the LICENSE file ------------------------------------------------------------------------------ --------------------------------------------------------...
# LANGUAGE ScopedTypeVariables # Copyright : ( C ) Maintainer : Defines some geometric types used in the delaunay triangulation module Algorithms.Geometry.DelaunayTriangulation.Types ( VertexID , Vertex , Adj , Triangulation(..) , vertexIds , positions , neighbours , Mapping , edges...
d7f853a64ca8dff6e8db25aa097d28b53fcac6f84544479673616dbb14798eaf
KestrelInstitute/Specware
Tests.lisp
(test-directories ".") (test ("Bug 0022 : Redefined ops processed without giving error message [OpDef]." :show "RedefinedOp#OpDef" :output '(";;; Elaborating spec at $TESTDIR/RedefinedOp#OpDef" (:optional "") "spec" (:optional "") (:alternatives "op ...
null
https://raw.githubusercontent.com/KestrelInstitute/Specware/2be6411c55f26432bf5c9e2f7778128898220c24/TestSuite/Bugs/Bug_0022/Tests.lisp
lisp
(test-directories ".") (test ("Bug 0022 : Redefined ops processed without giving error message [OpDef]." :show "RedefinedOp#OpDef" :output '(";;; Elaborating spec at $TESTDIR/RedefinedOp#OpDef" (:optional "") "spec" (:optional "") (:alternatives "op ...
7b9a385c898bab40b7fcd437ff8264f4c6e10f08381f676fd4ccc09987d60cb1
eugeneia/athens
early.lisp
Anaphora : The Anaphoric Macro Package from Hell ;;;; ;;;; This been placed in Public Domain by the author, Nikodemus Siivola < > (in-package :anaphora) (defmacro with-unique-names ((&rest bindings) &body body) `(let ,(mapcar #'(lambda (binding) (destructuring-bind (var prefix) (if (consp binding) ...
null
https://raw.githubusercontent.com/eugeneia/athens/cc9d456edd3891b764b0fbf0202a3e2f58865cbf/quicklisp/dists/quicklisp/software/anaphora-20180228-git/early.lisp
lisp
This been placed in Public Domain by the author,
Anaphora : The Anaphoric Macro Package from Hell Nikodemus Siivola < > (in-package :anaphora) (defmacro with-unique-names ((&rest bindings) &body body) `(let ,(mapcar #'(lambda (binding) (destructuring-bind (var prefix) (if (consp binding) binding (list binding binding)) `(,var (gensym ,(st...
732a94382d041203c0fba326fc2f45b3c8071161bf8cb5abc9eea69bc9da8c3d
haskell/ghcide
Experiments.hs
{-# LANGUAGE ConstraintKinds #-} # LANGUAGE ExistentialQuantification # # LANGUAGE ImplicitParams # {-# LANGUAGE ImpredicativeTypes #-} module Experiments ( Bench(..) , BenchRun(..) , Config(..) , Verbosity(..) , CabalStack(..) , SetupResult(..) , Example(..) , experiments , configP , defConfig , output , setup , runB...
null
https://raw.githubusercontent.com/haskell/ghcide/3ef4ef99c4b9cde867d29180c32586947df64b9e/bench/lib/Experiments.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE ImpredicativeTypes # | Experiments have access to these special positions: - hygienicP points to a string in the target file, convenient for hygienic edits - identifierP points to the middle of an identifier, convenient for goto-def, hover and completions ---------------------...
# LANGUAGE ExistentialQuantification # # LANGUAGE ImplicitParams # module Experiments ( Bench(..) , BenchRun(..) , Config(..) , Verbosity(..) , CabalStack(..) , SetupResult(..) , Example(..) , experiments , configP , defConfig , output , setup , runBench , exampleToOptions ) where import Control.Applicative.Combinator...
1ee7feef213ddc182487f210d8a2ff2f9135e3ad7c1ed0ea2f7882fdd8bf5369
loganallen/CmlControl
diff.mli
(********************************* Diff Module ********************************) (******************************************************************************) type file_data = { file_path : string; compressed : bool; } type diff_input = { name : string; old_file_data : file_data option; new_file_data : f...
null
https://raw.githubusercontent.com/loganallen/CmlControl/24bf4616b36672bc12225b9bd93b1ae662733663/modules/diff.mli
ocaml
******************************** Diff Module ******************************* **************************************************************************** prints diffs for all pairs of files in a list [lst] Convert an index into an associate list with file_data precondition: [abs_path_lst] holds the absolute paths ...
type file_data = { file_path : string; compressed : bool; } type diff_input = { name : string; old_file_data : file_data option; new_file_data : file_data option; } [ diff ( file1 , ) ( , iscompressed2 ) ] prints a diff between * two files that can be compressed or decompressed * two files that can...
1ff3fd65e4c599bb76901340fc1909003272755ea7d0224d2a1ac9c28bc14e9f
cram2/cram
package.lisp
Copyright ( c ) 2012 , < > ;;; All rights reserved. ;;; ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions are met: ;;; ;;; * Redistributions of source code must retain the above copyright ;;; notice, this list o...
null
https://raw.githubusercontent.com/cram2/cram/dcb73031ee944d04215bbff9e98b9e8c210ef6c5/cram_knowrob/cram_semantic_map/src/package.lisp
lisp
All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Red...
Copyright ( c ) 2012 , < > * Neither the name of the Intelligent Autonomous Systems Group/ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS " IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED . IN NO EVENT SHALL THE COPYRIGHT OWNER OR ...
7b3945f5e9155426cacc9b4c38c827ed479592b32e82127d63086a901dde735a
mfoemmel/erlang-otp
CosNaming_NamingContextExt_CannotProceed.erl
%%------------------------------------------------------------ %% %% Implementation stub file %% Target : CosNaming_NamingContextExt_CannotProceed Source : /net / isildur / ldisk / daily_build / otp_prebuild_r13b02.2009 - 09 - 21_11 / otp_src_R13B02 / lib / orber / COSS / CosNaming / cos_naming_ext.idl %% IC vsn: ...
null
https://raw.githubusercontent.com/mfoemmel/erlang-otp/9c6fdd21e4e6573ca6f567053ff3ac454d742bc2/lib/orber/COSS/CosNaming/CosNaming_NamingContextExt_CannotProceed.erl
erlang
------------------------------------------------------------ Implementation stub file IC vsn: 4.2.22 This file is automatically generated. DO NOT EDIT IT. ------------------------------------------------------------ returns type code returns id returns name
Target : CosNaming_NamingContextExt_CannotProceed Source : /net / isildur / ldisk / daily_build / otp_prebuild_r13b02.2009 - 09 - 21_11 / otp_src_R13B02 / lib / orber / COSS / CosNaming / cos_naming_ext.idl -module('CosNaming_NamingContextExt_CannotProceed'). -ic_compiled("4_2_22"). -include("CosNaming_NamingCon...
72ed3c2e7ca6121eb0842146dc83ec82faf3bcfa1849236c378fde9195d66208
SonyCSLParis/fcg-server
grammars.lisp
Copyright 2022 - present Sony Computer Science Laboratories Paris Licensed under the Apache License , Version 2.0 ( the " License " ) ; ;; you may not use this file except in compliance with the License. ;; You may obtain a copy of the License at ;; -2.0 ;; Unless required by applicable law or agreed to in w...
null
https://raw.githubusercontent.com/SonyCSLParis/fcg-server/8c5f1824454477ee2c489013e021a8d2c0ae150c/fcg-interactive/grammars.lisp
lisp
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permis...
Copyright 2022 - present Sony Computer Science Laboratories Paris distributed under the License is distributed on an " AS IS " BASIS , (in-package :fcg-server) Loading the grammars into FCG (fcg:load-demo-grammar)
a4be0f56cab38ca16fc61ec2cf943b915bef38cb2518e2903be432703b831756
kmi/irs
wont-load.lisp
Mode : Lisp ; Package : Author : The Open University (in-package "OCML") (in-ontology persons-and-organizations) (def-class presentation () ((presentation-title :type string) (presentation-topic) (speaker) (presentation-abstract :type string))) (def-class statistical-software-technology (softw...
null
https://raw.githubusercontent.com/kmi/irs/e1b8d696f61c6b6878c0e92d993ed549fee6e7dd/ontologies/domains/persons-and-organizations/wont-load.lisp
lisp
Package :
Author : The Open University (in-package "OCML") (in-ontology persons-and-organizations) (def-class presentation () ((presentation-title :type string) (presentation-topic) (speaker) (presentation-abstract :type string))) (def-class statistical-software-technology (software-technology)) (def-clas...
9ee244383d7e936b5030ab7a4c34806f609a7260700d41e927be7c636da09c72
nasa/pvslib
patch-20220512-exprjudgements.lisp
(in-package :pvs) (defmethod typecheck* ((decl expr-judgement) expected kind arguments) (declare (ignore expected kind arguments)) ;; We typecheck copies of the declared-type and expr - enough to tell whether we need to change to an application - judgement . (let* ((ctype (unless (forall-expr? (expr de...
null
https://raw.githubusercontent.com/nasa/pvslib/e7cdff5f70cc32cf7e440bba8b24b5e28bd3e0b1/pvs-patches/patch-20220512-exprjudgements.lisp
lisp
We typecheck copies of the declared-type and expr - enough to tell whether we expr-judgement basically just has an expr and declared-type may want to treat as appl-judgement, with name and formals, in the special case of application form, e.g., f(x, y)(z), where all the arguments are distinct variables. e.g....
(in-package :pvs) (defmethod typecheck* ((decl expr-judgement) expected kind arguments) (declare (ignore expected kind arguments)) need to change to an application - judgement . (let* ((ctype (unless (forall-expr? (expr decl)) (let ((*generate-tccs* 'none) (*no-conversions-allowed* t) (dtype ...
466fcdee2522c04d735c484cee0d4543d9cb658f591162d5f12f837c5c0168a6
vyzo/gerbil
core$_more-syntax-sugar___rt.scm
(declare (block) (standard-bindings) (extended-bindings)) (begin (load-module "gerbil/core$_expander-runtime___rt") (load-module "gerbil/core$_syntax-case___rt") (load-module "gerbil/core$_syntax-sugar___rt"))
null
https://raw.githubusercontent.com/vyzo/gerbil/17fbcb95a8302c0de3f88380be1a3eb6fe891b95/src/bootstrap/gerbil/core%24_more-syntax-sugar___rt.scm
scheme
(declare (block) (standard-bindings) (extended-bindings)) (begin (load-module "gerbil/core$_expander-runtime___rt") (load-module "gerbil/core$_syntax-case___rt") (load-module "gerbil/core$_syntax-sugar___rt"))
a9e48ce44dc546ba377bcf857de1862a0da6afc5ed22b5583fbab3d305ac7416
albertoruiz/easyVision
ellipses2.hs
import EasyVision hiding (c1,c2) import Control.Arrow((***),(&&&)) import Control.Monad(when) import Data.Colour.Names(red,yellow,orange) import Graphics.UI.GLUT(lineWidth,($=),clear,ClearBuffer (DepthBuffer),depthFunc,ComparisonFunction (Less), renderPrimitive,PrimitiveMode (Points),vertex,poin...
null
https://raw.githubusercontent.com/albertoruiz/easyVision/26bb2efaa676c902cecb12047560a09377a969f2/projects/old/pose/ellipses2.hs
haskell
-------------------------------------------------------------------- -------------------------------------------------------------------- -------------------------------------------------------------------- provisional
import EasyVision hiding (c1,c2) import Control.Arrow((***),(&&&)) import Control.Monad(when) import Data.Colour.Names(red,yellow,orange) import Graphics.UI.GLUT(lineWidth,($=),clear,ClearBuffer (DepthBuffer),depthFunc,ComparisonFunction (Less), renderPrimitive,PrimitiveMode (Points),vertex,poin...
574d436787be64dbbb710755258393d362c93e3cc1820c03c80f8e6d62339de9
Frama-C/Frama-C-snapshot
security_slicing_parameters.ml
(**************************************************************************) (* *) This file is part of Frama - C. (* *) Copyright ...
null
https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/src/plugins/security_slicing/security_slicing_parameters.ml
ocaml
************************************************************************ alternatives) ...
This file is part of Frama - C. Copyright ( C ) 2007 - 2019 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , v...
873452cda333bc1c60aacdb55b24e0fe7d901deaa6ca9db29c6ee56d0f469101
albertoruiz/easyVision
linemodels.hs
import Vision.GUI.Simple --import ImagProc import Data.Traversable(traverse) import Util.Options(optionFromFile) import Util.Geometry as G import Util.Estimation import Numeric.LinearAlgebra import Numeric.LinearAlgebra.Util import Numeric.LinearProgramming.L1 main = runIt $ clickPoints "click points" "--points" () (...
null
https://raw.githubusercontent.com/albertoruiz/easyVision/26bb2efaa676c902cecb12047560a09377a969f2/projects/vision/geom/linemodels.hs
haskell
import ImagProc principal direction L1 cost of y value
import Vision.GUI.Simple import Data.Traversable(traverse) import Util.Options(optionFromFile) import Util.Geometry as G import Util.Estimation import Numeric.LinearAlgebra import Numeric.LinearAlgebra.Util import Numeric.LinearProgramming.L1 main = runIt $ clickPoints "click points" "--points" () (sh.fst) sh pts = ...
8a9e6df49c9a4e9d46dff7736e7098bff75359d9c01001664bf474a4f2b755e9
SKA-ScienceDataProcessor/RC
SlurmBackend.hs
{-# OPTIONS_HADDOCK hide #-} -- | Simple backend based on the TCP transport -- -- To simplify getting started we provide special support for /master/ and -- /slave/ nodes (see 'startSlave' and 'startMaster'). Use of these functions -- is completely optional; you can use the local backend without making use -- of the pr...
null
https://raw.githubusercontent.com/SKA-ScienceDataProcessor/RC/1b5e25baf9204a9f7ef40ed8ee94a86cc6c674af/MS5/dna/core/DNA/SlurmBackend.hs
haskell
# OPTIONS_HADDOCK hide # | Simple backend based on the TCP transport To simplify getting started we provide special support for /master/ and /slave/ nodes (see 'startSlave' and 'startMaster'). Use of these functions is completely optional; you can use the local backend without making use of the predefined master ...
> import Control . Distributed . Process > import Control . Distributed . Process . Node ( initRemoteTable ) > import Control . Distributed . Process . Backend . SimpleLocalnet > liftIO . " Slaves : " + + show slaves [ Compiling and Running ] > ./example slave localhost 8080 & > ./example slave local...
5cff616c2102f1d3fa8cde797714c012fa7f11769308b3e99e0697bc10928602
metosin/eines
edn.clj
(ns eines.pack.edn (:require [clojure.edn :as edn])) (defn pack ^String [message] (when message (pr-str message))) (defn unpack [^String message] (when message (edn/read-string message)))
null
https://raw.githubusercontent.com/metosin/eines/e293d0a3b29eb18fb20bdf0c234cd898e7b87ac9/modules/eines-server/src/eines/pack/edn.clj
clojure
(ns eines.pack.edn (:require [clojure.edn :as edn])) (defn pack ^String [message] (when message (pr-str message))) (defn unpack [^String message] (when message (edn/read-string message)))
8b184132cf09ac8987f5413ea60139cdf2c7cf3c33bf17d5013ee9925ad59d0e
jolby/colors
colors_test.cljc
by February 4 , 2010 Copyright ( c ) , 2010 . 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 epl-v10.html at the root of this ;; distribution. By using this software in any fashion, you...
null
https://raw.githubusercontent.com/jolby/colors/30607e456cb7e80bc5b58f04b59505db92ae728e/test/com/evocomputing/colors_test.cljc
clojure
Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software. test bad input checking saturation and...
by February 4 , 2010 Copyright ( c ) , 2010 . All rights reserved . The use and distribution terms for this software are covered by the Eclipse (ns com.evocomputing.colors-test #?(:clj (:import (java.awt Color))) (:require [clojure.string :as s] [clojure.test :refer (is deftest)] ...
8579dcd9b225c200ac2e1569fbb98aeff22b4e1b791234569b5bb55570732c91
vaibhavsagar/experiments
Update.hs
----------------------------------------------------------------------------- -- | -- Module : Network.Hackage.CabalInstall.Update Copyright : ( c ) 2005 -- License : BSD-like -- -- Maintainer : -- Stability : provisional -- Portability : portable -- -- ---------------------------------------...
null
https://raw.githubusercontent.com/vaibhavsagar/experiments/378d7ba97eabfc7bbeaa4116380369ea6612bfeb/hugs/packages/Cabal/Network/Hackage/CabalInstall/Update.hs
haskell
--------------------------------------------------------------------------- | Module : Network.Hackage.CabalInstall.Update License : BSD-like Maintainer : Stability : provisional Portability : portable --------------------------------------------------------------------------- | 'update' dow...
Copyright : ( c ) 2005 module Network.Hackage.CabalInstall.Update ( update ) where import Network.Hackage.CabalInstall.Types (ConfigFlags (..), OutputGen(..)) import Network.Hackage.CabalInstall.Config (writeKnownPackages) import Network.Hackage.Client (listPackages) update :: ConfigFlags -> IO () u...
e1414714e0fe1fd8803dd7f6f09c9f82218a5055fb1f1a8cccc584a636eca386
janestreet/core_unix
import.ml
open! Core module Time = Time_float_unix
null
https://raw.githubusercontent.com/janestreet/core_unix/59d04e163b49c7eeef9d96fccb2403fd49c44505/time_stamp_counter/test/import.ml
ocaml
open! Core module Time = Time_float_unix
01198e62a4be96ccc5ac73c370ef27e82935e4ed430ee5c9a1cece68a2e51be9
ocaml-gospel/cameleer
power.ml
module type Exponentiation = sig type t (*@ function one: t *) @ function ( x y : t ) : t @ axiom assoc : forall x y ( mul x y ) z = mul x ( mul y z ) @ axiom unit_def_l : forall x : one x = x @ axiom unit_def_r : forall x : one = x (*@ function power (t: t) (x: integer) : t *) @ axiom power_0 : for...
null
https://raw.githubusercontent.com/ocaml-gospel/cameleer/fcf00fe27e0a41125880043aa9aa633399fc8cc2/stdlib/power.ml
ocaml
@ function one: t @ function power (t: t) (x: integer) : t @ axiom power_s : forall x: t, n: integer. n >= 0 -> power x (n+1) = mul x (power x n) @ lemma power_mult : forall x:t, n m : int. 0 <= n -> 0 <= m -> power x (n * m) = power (power x n) m @ axiom power_s : forall x: t, n: integer. n >= 0 ->...
module type Exponentiation = sig type t @ function ( x y : t ) : t @ axiom assoc : forall x y ( mul x y ) z = mul x ( mul y z ) @ axiom unit_def_l : forall x : one x = x @ axiom unit_def_r : forall x : one = x @ axiom power_0 : forall x : 0 = one @ lemma power_s_alt : forall x : t , n : int . n > 0...
8d9493166f6ff3c8b21e75e9489828bddccbdcdacfa6467e21704882df09f073
ferd/dispcount
dispcount_serv.erl
%% In charge of relaying info about the supervisor when called. -module(dispcount_serv). -behaviour(gen_server). -include("state.hrl"). -export([start_link/4, wait_for_dispatch/2, get_info/1]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). %%%%%%%%%%%%%%%%% %%% I...
null
https://raw.githubusercontent.com/ferd/dispcount/4befc7445b4a8c5f616c0dadfec76569a1f4452b/src/dispcount_serv.erl
erlang
In charge of relaying info about the supervisor when called. INTERFACE %%% % % This one needs to go fast because we're gonna mess up the synchronous starts of servers for the sake of the pool. For this reason, we'll temporarily use this process to receive all requests and just forward them when the time has ...
-module(dispcount_serv). -behaviour(gen_server). -include("state.hrl"). -export([start_link/4, wait_for_dispatch/2, get_info/1]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). -spec start_link(Parent::pid(), Name::atom(), {module(),[term()]}, [term(),...]) -> {ok...
0736e7577e564dcb505042e0b1708a1ab5da343f529d27cda26d55ac890f2848
returntocorp/ocaml-tree-sitter-core
Protect_ident.mli
Maintain a 1:1 map of translations from ' src ' to ' dst ' , ensuring ' dst ' is not reserved or already taken by a different translation . Maintain a 1:1 map of translations from 'src' to 'dst', ensuring 'dst' is not reserved or already taken by a different translation. *) (* Translation map. *) typ...
null
https://raw.githubusercontent.com/returntocorp/ocaml-tree-sitter-core/66fbeabb8c3fec69a30a2e7f3eec41bc2d112d40/src/gen/lib/Protect_ident.mli
ocaml
Translation map. Translate a string 'src' to a string 'dst', ensuring that 'dst' is as close as possible to 'preferred_dst' and that nothing else already translates to that 'dst'. 'preferred_dst' defaults to 'src'. This translation is remembered, with the consequence that calling this function later ...
Maintain a 1:1 map of translations from ' src ' to ' dst ' , ensuring ' dst ' is not reserved or already taken by a different translation . Maintain a 1:1 map of translations from 'src' to 'dst', ensuring 'dst' is not reserved or already taken by a different translation. *) type t Initialize a ...
e860832ca76e0620540374ba2338d307a9213c64815391043fdd19454a1560f5
Hans-Halverson/myte
mir_builders.ml
open Basic_collections open Mir open Mir_builtin open Mir_type (* * ============================ * Values * ============================ *) let uninit_value : Value.value = Value.Lit (Bool true) let mk_value (value : Value.value) : Value.t = { id = mk_value_id (); value; uses = None } let mk_uninit_va...
null
https://raw.githubusercontent.com/Hans-Halverson/myte/05cb60b0ed2d0ea42d43fc80ac6d25e2085d624e/src/mir/mir_builders.ml
ocaml
* ============================ * Values * ============================ * ============================ * Literals * ============================ * ============================ * Instruction Constructors * ============================ Set a value to contain an instruction, without ...
open Basic_collections open Mir open Mir_builtin open Mir_type let uninit_value : Value.value = Value.Lit (Bool true) let mk_value (value : Value.value) : Value.t = { id = mk_value_id (); value; uses = None } let mk_uninit_value () : Value.t = { id = mk_value_id (); value = uninit_value; uses = None } let mk_bool...
3be48beffb45c47c61ef4f13e54a02f0819ac052aacdb91aab17614b99950ed9
rtoy/cmucl
boot-2020-04-1.lisp
;; Simple cross-compile script to remove `*scavenge-read-only-space*` ;; which is no longer needed ;; ;; Nothing special needs to be done for the cross-compile. Just use this file for the -B option ( not really necessary ) , and use the ;; standard cross-compile scripts in src/tools/cross-scripts. ;; cross-build-w...
null
https://raw.githubusercontent.com/rtoy/cmucl/9b1abca53598f03a5b39ded4185471a5b8777dea/src/bootfiles/21d/boot-2020-04-1.lisp
lisp
Simple cross-compile script to remove `*scavenge-read-only-space*` which is no longer needed Nothing special needs to be done for the cross-compile. Just use standard cross-compile scripts in src/tools/cross-scripts. x86: cross-x86-x86 This is also used to easily change the order of x86::conditions cross-com...
this file for the -B option ( not really necessary ) , and use the cross-build-world.sh -crl -B boot-2020 - 04 - 1 xtarget xcross src / tools / cross - scripts / cross - foo.lisp old - lisp sparc : cross - sparc - sparc constant so that we prefer je instead of jeq . Without a defconstant in a different way...
01e24ceb769dab828c180ddf1bde82976499ab321faa43dfb064cb56f536edf3
racket/libs
info.rkt
#lang setup/infotab SPDX - License - Identifier : ( Apache-2.0 OR MIT ) ;; THIS FILE IS AUTO-GENERATED FROM racket/src/native-libs/install.rkt (define collection 'multi) (define deps '("base")) (define pkg-desc "native libraries for \"base\" package") (define pkg-authors '(mflatt)) (define license '((Apache-2.0 O...
null
https://raw.githubusercontent.com/racket/libs/ebcea119197dc0cb86be1ccbbfbe5806f7280976/db-win32-i386/info.rkt
racket
THIS FILE IS AUTO-GENERATED FROM racket/src/native-libs/install.rkt
#lang setup/infotab SPDX - License - Identifier : ( Apache-2.0 OR MIT ) (define collection 'multi) (define deps '("base")) (define pkg-desc "native libraries for \"base\" package") (define pkg-authors '(mflatt)) (define license '((Apache-2.0 OR MIT) AND blessing))
fffad2acb69428c36b81036efcc2ee03ce7a0844aa67e1cfe3feb67d064a438b
wdebeaum/DeepSemLex
unfamiliar.lisp
;;;; ;;;; W::unfamiliar ;;;; (define-words :pos W::adj :templ CENTRAL-ADJ-TEMPL :words ( (W::unfamiliar (SENSES ((meta-data :origin cernl :entry-date 20100501 :change-date nil :comments nil) (EXAMPLE "an unfamiliar person") (lf-parent ont::unfamiliar-val) (TEMPL central-adj-TEMPL) ) ...
null
https://raw.githubusercontent.com/wdebeaum/DeepSemLex/ce0e7523dd2b1ebd42b9e88ffbcfdb0fd339aaee/trips/src/LexiconManager/Data/new/unfamiliar.lisp
lisp
W::unfamiliar
(define-words :pos W::adj :templ CENTRAL-ADJ-TEMPL :words ( (W::unfamiliar (SENSES ((meta-data :origin cernl :entry-date 20100501 :change-date nil :comments nil) (EXAMPLE "an unfamiliar person") (lf-parent ont::unfamiliar-val) (TEMPL central-adj-TEMPL) ) ((meta-data :origin cernl :en...
365b851ad729753420212be192faba686c2f986adb4270cef9627b39e06643c5
GaloisInc/macaw
X86.hs
Copyright : ( c ) Galois , Inc 2015 - 2017 Maintainer : < > This defines the primitives needed to provide architecture info for x86_64 programs . Copyright : (c) Galois, Inc 2015-2017 Maintainer : Joe Hendrix <> This defines the primitives needed to provide architecture info f...
null
https://raw.githubusercontent.com/GaloisInc/macaw/97c61e471aa60a48393bb6496260db416c4dca55/x86/src/Data/Macaw/X86.hs
haskell
# LANGUAGE GADTs # # LANGUAGE RankNTypes # # LANGUAGE TypeSynonymInstances # * Low level exports ---------------------------------------------------------------------- ExploreLoc | Information needed to disassble a This represents the control-flow information needed to build basic blocks for a code location. ^ IP ...
Copyright : ( c ) Galois , Inc 2015 - 2017 Maintainer : < > This defines the primitives needed to provide architecture info for x86_64 programs . Copyright : (c) Galois, Inc 2015-2017 Maintainer : Joe Hendrix <> This defines the primitives needed to provide architecture info f...
aac4bf422672ce576c88295ede4cf7b19fe0517625da4301193fd34a4353569b
takikawa/racket-ppa
kw-file.rkt
(module kw-file "pre-base.rkt" (require (prefix-in k: "pre-base.rkt") "sort.rkt") (provide (rename-out [open-input-file -open-input-file] [open-output-file -open-output-file] [open-input-output-file -open-input-output-file] [call-with-input-...
null
https://raw.githubusercontent.com/takikawa/racket-ppa/caff086a1cd48208815cec2a22645a3091c11d4c/collects/racket/private/kw-file.rkt
racket
Using `define-values' to avoid the inlining expansion for keyword arguments, because that expansion confuses Typed Racket:
(module kw-file "pre-base.rkt" (require (prefix-in k: "pre-base.rkt") "sort.rkt") (provide (rename-out [open-input-file -open-input-file] [open-output-file -open-output-file] [open-input-output-file -open-input-output-file] [call-with-input-...
e4a02f4307a2a38382051097cf95d8a5058389e015968c592eff5f818a32cb42
metaocaml/ber-metaocaml
unclosed_simple_pattern.ml
(* TEST * toplevel *) let f = function | List.(_ ;; let f = function | (_ ;; let f = function | (_ : int ;; (* Impossible to get the "unclosed (" message here. This case gets absorbed by val_ident... *) let f = function | (module Foo : sig end ;; (* As with expressions, impossible to get the unclose...
null
https://raw.githubusercontent.com/metaocaml/ber-metaocaml/4992d1f87fc08ccb958817926cf9d1d739caf3a2/testsuite/tests/parse-errors/unclosed_simple_pattern.ml
ocaml
TEST * toplevel Impossible to get the "unclosed (" message here. This case gets absorbed by val_ident... As with expressions, impossible to get the unclosed message for the following cases.
let f = function | List.(_ ;; let f = function | (_ ;; let f = function | (_ : int ;; let f = function | (module Foo : sig end ;; let f = function | { foo; bar; ;; let f = function | [ 1; 2; ;; let f = function | [| 3; 4; ;;
7ff6351475227e4e202086b8efa586c84412bc61863192dd91f2a5a0507f8bca
tiensonqin/lymchat
spatial.clj
(ns api.pg.spatial ":require [api.pg.spatial :as st]" (:import [org.postgis Geometry PGgeometryLW PGgeometry LineString LinearRing MultiLineString MultiPoint MultiPolygon Point Polygon])) (defn srid "Returns the set SRID of a geometry object" [^Geometry geometry] (.getSrid geometry)) (defn with-srid! "Ret...
null
https://raw.githubusercontent.com/tiensonqin/lymchat/824026607d30c12bc50afb06f677d1fa95ff1f2f/api/src/api/pg/spatial.clj
clojure
(ns api.pg.spatial ":require [api.pg.spatial :as st]" (:import [org.postgis Geometry PGgeometryLW PGgeometry LineString LinearRing MultiLineString MultiPoint MultiPolygon Point Polygon])) (defn srid "Returns the set SRID of a geometry object" [^Geometry geometry] (.getSrid geometry)) (defn with-srid! "Ret...
02216d5b33041e7e2ea40510af7f1e2d46c799e73cd8100758893f9c3110d91b
S8A/htdp-exercises
ex148.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-beginner-reader.ss" "lang")((modname ex148) (read-case-sensitive #t) (teachpacks ((lib "image.rkt" "teachpack" "2htdp") (lib "universe.rkt...
null
https://raw.githubusercontent.com/S8A/htdp-exercises/578e49834a9513f29ef81b7589b28081c5e0b69f/ex148.rkt
racket
about the language level of this file in a form that our tools can easily process. Q: Is it better to work with data definitions that accommodate empty lists as opposed to definitions for non-empty lists? Why? Why not? A: It's hard to say whether one is always better than the other since there are infinite possibi...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-beginner-reader.ss" "lang")((modname ex148) (read-case-sensitive #t) (teachpacks ((lib "image.rkt" "teachpack" "2htdp") (lib "universe.rkt" "teachpack" "2htdp") (lib "batch-io.rkt" "teachpack" "2htdp"))) (htdp-settings #(#t ...
244de4973e312f397cefc03c14c4a8f271515a147d933040c0f160e6261629dd
broadinstitute/wfl
logging_test.clj
(ns wfl.unit.logging-test "Test that our overcomplicated logging works." (:require [clojure.test :refer [is deftest testing]] [clojure.data.json :as json] [clojure.edn :as edn] [clojure.string :as str] [wfl.log :as log]) (:import [java.util.r...
null
https://raw.githubusercontent.com/broadinstitute/wfl/acc8b6bb7a510d99d4dd33c21f0d63acf8723717/api/test/wfl/unit/logging_test.clj
clojure
(ns wfl.unit.logging-test "Test that our overcomplicated logging works." (:require [clojure.test :refer [is deftest testing]] [clojure.data.json :as json] [clojure.edn :as edn] [clojure.string :as str] [wfl.log :as log]) (:import [java.util.r...
be8d8e82cdcedcdb5699337d0974b77b2a0085152df1326dba19b7c95f6588bc
victornicolet/parsynt
ExpressionReduction.ml
* This file is part of Parsynt . Author : < > Parsynt is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any later vers...
null
https://raw.githubusercontent.com/victornicolet/parsynt/d3f530923c0c75537b92c2930eb882921f38268c/src/singleloop/ExpressionReduction.ml
ocaml
Special rule for conditionals max(a, b) > c --> a > c or b > c c > max(a, b) --> c > a and c > b max(a, b) < c --> a < c and b < c c < max(a, b) --> c < a or c < b Distributivity with operators Distributivity with ternary expressions * Reduce the cost of an expression. The cost is computed according to...
* This file is part of Parsynt . Author : < > Parsynt is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any later vers...
86b0871e62c0fe085922b45b6c14a7a14d4745937724aea380ce694a9dbd2a09
master-q/carettah
WrapPaths.hs
module Carettah.WrapPaths (wrapGetDataFileName, wrapVersion) where import Data.Version import Paths_carettah (getDataFileName, version) wrapGetDataFileName :: FilePath -> IO FilePath wrapGetDataFileName = getDataFileName wrapVersion :: Version wrapVersion = version
null
https://raw.githubusercontent.com/master-q/carettah/355cadf8e5e957fd7df1d8281c29adf1d22fd399/src/Carettah/WrapPaths.hs
haskell
module Carettah.WrapPaths (wrapGetDataFileName, wrapVersion) where import Data.Version import Paths_carettah (getDataFileName, version) wrapGetDataFileName :: FilePath -> IO FilePath wrapGetDataFileName = getDataFileName wrapVersion :: Version wrapVersion = version
4d0b1168805a44aefd527d955f005a38304c64b66b78fb71a2a08dfbcba97f06
ygmpkk/house
StdReceiverDef.hs
----------------------------------------------------------------------------- -- | -- Module : StdReceiverDef Copyright : ( c ) 2002 -- License : BSD-style -- -- Maintainer : -- Stability : provisional -- Portability : portable -- -- StdReceiverDef contains the types to define the standard s...
null
https://raw.githubusercontent.com/ygmpkk/house/1ed0eed82139869e85e3c5532f2b579cf2566fa2/ghc-6.2/libraries/ObjectIO/Graphics/UI/ObjectIO/StdReceiverDef.hs
haskell
--------------------------------------------------------------------------- | Module : StdReceiverDef License : BSD-style Maintainer : Stability : provisional Portability : portable StdReceiverDef contains the types to define the standard set of receivers. ----------------------------------...
Copyright : ( c ) 2002 module Graphics.UI.ObjectIO.StdReceiverDef ( module Graphics.UI.ObjectIO.StdReceiverDef, module Graphics.UI.ObjectIO.StdIOCommon , module Graphics.UI.ObjectIO.StdGUI ) where import Graphics.UI.ObjectIO.StdGUI import Graphics.UI.ObjectIO.StdIOCommon data Receiver...
e09ac888918cf33c52843faf6d12f96f517496e49702acf3de1b82e856d71484
pascal-knodel/haskell-craft
C'13.hs
-- Chapter 13 . -- module C'13 where import E'13'28 import E'13'27 import E'13'26 import E'13'25 import E'13'24 import E'13'23 import E'13'22 import E'13'21 import E'13'20 import E'13'19 import E'13'18 import E'13'17 import E'13'16 import E'13'15 import E'13'14 import E'13'13 import E'13'12 import E'13'11 import E...
null
https://raw.githubusercontent.com/pascal-knodel/haskell-craft/c03d6eb857abd8b4785b6de075b094ec3653c968/Chapter%C2%A013/C'13.hs
haskell
Chapter 13 . module C'13 where import E'13'28 import E'13'27 import E'13'26 import E'13'25 import E'13'24 import E'13'23 import E'13'22 import E'13'21 import E'13'20 import E'13'19 import E'13'18 import E'13'17 import E'13'16 import E'13'15 import E'13'14 import E'13'13 import E'13'12 import E'13'11 import E'13'10...
b8660748903b434e041abce6eb692497c49b7fe9d7182cb0f85ce2c254ae64f4
ryanpbrewster/haskell
145.hs
145.hs HOLY COW SLOW ( 9 m 42s ) - Some positive integers n have the property that the sum [ n + reverse(n ) ] - consists entirely of odd ( decimal ) digits . For instance , 36 + 63 = 99 and - 409 + 904 = 1313 . We will call such numbers reversible ; so 36 , 63 , 409 , and - 904 are reversible . Leading...
null
https://raw.githubusercontent.com/ryanpbrewster/haskell/6edd0afe234008a48b4871032dedfd143ca6e412/project-euler/src/Old/145.hs
haskell
145.hs HOLY COW SLOW ( 9 m 42s ) - Some positive integers n have the property that the sum [ n + reverse(n ) ] - consists entirely of odd ( decimal ) digits . For instance , 36 + 63 = 99 and - 409 + 904 = 1313 . We will call such numbers reversible ; so 36 , 63 , 409 , and - 904 are reversible . Leading...
cc7a2585eb4403a195cc687c7b4a171a6d5ce1b8f36869a31776fb68ea1c9c29
LaurentMazare/ocaml-arrow
python.ml
open Core_kernel open Arrow_c_api type t = { x : int ; y : float ; z : string ; z_opt : float option ; b : bool ; b_opt : bool option } [@@deriving sexp_of, fields, compare] let `read read, `write write = let open F in Fields.make_creator ~x:i64 ~y:f64 ~z:str ~z_opt:f64_opt ~b:bool ~b_opt:bool_opt ...
null
https://raw.githubusercontent.com/LaurentMazare/ocaml-arrow/2ffa860cb63236303f4bf6871620318149a46785/tests/python.ml
ocaml
open Core_kernel open Arrow_c_api type t = { x : int ; y : float ; z : string ; z_opt : float option ; b : bool ; b_opt : bool option } [@@deriving sexp_of, fields, compare] let `read read, `write write = let open F in Fields.make_creator ~x:i64 ~y:f64 ~z:str ~z_opt:f64_opt ~b:bool ~b_opt:bool_opt ...
0dbede6f70b1ad22e82e8909976f9adaa40e0ec180a7251b7adb4a09ace02e62
vraid/earthgen
river-generation.rkt
#lang typed/racket (require vraid/flow vraid/sorted-tree "../grid-base.rkt" "../terrain.rkt") (provide planet/rivers) (define-type corner-node (Pair Integer Float)) (: ref (All (A) ((Vectorof A) -> (Integer -> A)))) (define ((ref v) n) (vector-ref v n)) (: set-directions/floodfill! (pl...
null
https://raw.githubusercontent.com/vraid/earthgen/208ac834c02208ddc16a31aa9e7ff7f91c18e046/planet/terrain-generation/river-generation.rkt
racket
#lang typed/racket (require vraid/flow vraid/sorted-tree "../grid-base.rkt" "../terrain.rkt") (provide planet/rivers) (define-type corner-node (Pair Integer Float)) (: ref (All (A) ((Vectorof A) -> (Integer -> A)))) (define ((ref v) n) (vector-ref v n)) (: set-directions/floodfill! (pl...
66f68c3b3fc9a69b8379287b8f102a6585d03e1e62a5739253e667442ebd554b
akabe/odoc-ltxhtml
ltxhtml_ltximage.mli
The MIT License ( MIT ) Copyright ( c ) 2014 Permission is hereby granted , free of charge , to any person obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without restriction , including without limitation the rights to u...
null
https://raw.githubusercontent.com/akabe/odoc-ltxhtml/99e3c86c469be9f4f1a2bf7089428be592c5b541/src/ltxhtml_ltximage.mli
ocaml
command, message
The MIT License ( MIT ) Copyright ( c ) 2014 Permission is hereby granted , free of charge , to any person obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without restriction , including without limitation the rights to u...
bc0ab71c45bd0813f55ee54a7e39223145e66088f786d646a46bef8359054cef
launchdarkly/erlang-server-sdk
ts_command_params.erl
%------------------------------------------------------------------- %% @doc `ts_command_params' module %% Parsers and types for command parameters . @private %% @end %%------------------------------------------------------------------- -module(ts_command_params). %% API -export([ parse_command/1, format_...
null
https://raw.githubusercontent.com/launchdarkly/erlang-server-sdk/d9a4442a8a214bf950dec8182b26cd042436f4c8/test-service/src/ts_command_params.erl
erlang
------------------------------------------------------------------- @doc `ts_command_params' module @end ------------------------------------------------------------------- API TODO: All flags state is not implemented. When it is this will need a proper type. TODO: Provide some detail. Treats null as not inclu...
Parsers and types for command parameters . @private -module(ts_command_params). -export([ parse_command/1, format_evaluate_flag_response/1 ]). -type command() :: evaluate | evaluate_all | identify_event | custom_event | flush_events. -type command_params() :: #{ command := command(), evaluate =>...
add9d0d22741123afca96f4788319b9e1655c58e62ae90af96e49854f322dd47
Daniel-Diaz/HaTeX
AMSFonts.hs
# LANGUAGE CPP # -- | Module for the package @amsfonts@. module Text.LaTeX.Packages.AMSFonts * AMSFonts package amsfonts -- * Fonts , mathbb, mathfrak -- * Number sets , naturals, integers, rationals, reals, quaternions -- ** Complex numbers , complexes, trealPart, timagPart ) where import Text.L...
null
https://raw.githubusercontent.com/Daniel-Diaz/HaTeX/aae193763157378500ebedc733c913e74f53b060/Text/LaTeX/Packages/AMSFonts.hs
haskell
| Module for the package @amsfonts@. * Fonts * Number sets ** Complex numbers Example: | This font is useful for representing sets like Or in monadic form: > "The set of real numbers are represented by " >> mathbb "R" >> "." /Note the use of overloaded strings./ | \(\mathbb{Z}\) | \(\mathbb{Q}\) | \(\...
# LANGUAGE CPP # module Text.LaTeX.Packages.AMSFonts * AMSFonts package amsfonts , mathbb, mathfrak , naturals, integers, rationals, reals, quaternions , complexes, trealPart, timagPart ) where import Text.LaTeX.Base.Class import Text.LaTeX.Base.Types #if !MIN_VERSION_base(4,11,0) import Data.Monoid #endi...
0399f41078a9abf44e8072f7366816af2c15436a9a85fb649fb8356b634974db
danfran/cabal-macosx
Main.hs
module Main (main) where import Test.Framework (defaultMain) import Distribution.MacOSX.Internal.Tests (macosxInternalTests) main :: IO () main = defaultMain [ macosxInternalTests ]
null
https://raw.githubusercontent.com/danfran/cabal-macosx/6714a7018ddcd71efd96044bd55c0e19fb690939/tests/Main.hs
haskell
module Main (main) where import Test.Framework (defaultMain) import Distribution.MacOSX.Internal.Tests (macosxInternalTests) main :: IO () main = defaultMain [ macosxInternalTests ]
4369aca99bad947eab3bdcd13d3466c4ad1a3481fcbfb4c8e2d4bc7358ff8900
ipfs-shipyard/cube
db_test.clj
(ns cube.db-test (:require [cube.db :as db]) (:use clojure.test)) (defn test-db [] {:db-path "/tmp/test-cube-db.clj" :state (atom {:name "barry" :numbers [5] :nested {:name "larry"} :instances {:runnin...
null
https://raw.githubusercontent.com/ipfs-shipyard/cube/bd835a35a5273c744cbc415425ffbdb0990901e6/test/cube/db_test.clj
clojure
(ns cube.db-test (:require [cube.db :as db]) (:use clojure.test)) (defn test-db [] {:db-path "/tmp/test-cube-db.clj" :state (atom {:name "barry" :numbers [5] :nested {:name "larry"} :instances {:runnin...
490e75b85bd93b46461ed464d3b3dc0b59ddc9f216996b465838bc573852808d
nuprl/gradual-typing-performance
decode-struct.rkt
#lang scheme/base (require "private/provide-structs.rkt") (provide-structs [part-index-desc ()])
null
https://raw.githubusercontent.com/nuprl/gradual-typing-performance/35442b3221299a9cadba6810573007736b0d65d4/pre-benchmark/ecoop/scribble-lib/scribble/decode-struct.rkt
racket
#lang scheme/base (require "private/provide-structs.rkt") (provide-structs [part-index-desc ()])
bf603d2a0a0ea2f1bb3cfd2023e3a07be38621cccf036bef194c42c8d8852114
Frozenlock/wacnet
common.cljs
(ns wacnet.templates.common (:require [re-com.core :as re] [reagent.core :as r])) (defn is-chrome-or-opera? "True if the browser is Chrome(ium) or Opera" [] (let [browser (-> js/goog .-labs .-userAgent .-browser)] (or (.isChrome browser) (.isOpera browser)))) (defn cond-h-split "If ...
null
https://raw.githubusercontent.com/Frozenlock/wacnet/69947dc02c91ae160c759a0abe97d4f472e9a876/src/cljs/wacnet/templates/common.cljs
clojure
[:div (merge {:style {;:overflow-y "auto" ; : height " 100 % " }} attr) content]) enter esc bootstrap
(ns wacnet.templates.common (:require [re-com.core :as re] [reagent.core :as r])) (defn is-chrome-or-opera? "True if the browser is Chrome(ium) or Opera" [] (let [browser (-> js/goog .-labs .-userAgent .-browser)] (or (.isChrome browser) (.isOpera browser)))) (defn cond-h-split "If ...
31343e436bd0ad0817e906b065b682bdaaee7cec6c8074eaadbcc03c5b181846
tbsklg/advent-of-code-2022
Day4.hs
module Day4 where import Data.List.Split (splitOn) type From = Int type To = Int type Assignment = (From, To) solve :: [String] -> Int solve = length . filter (== True) . map (fullyOverlaps . convertToAssignmentPair) solvePartTwo :: [String] -> Int solvePartTwo = length . filter (== True) . map (partiallyOverlaps...
null
https://raw.githubusercontent.com/tbsklg/advent-of-code-2022/f38d83039d97ebaf8dce342a50f1ee5b95178a03/src/Day4.hs
haskell
module Day4 where import Data.List.Split (splitOn) type From = Int type To = Int type Assignment = (From, To) solve :: [String] -> Int solve = length . filter (== True) . map (fullyOverlaps . convertToAssignmentPair) solvePartTwo :: [String] -> Int solvePartTwo = length . filter (== True) . map (partiallyOverlaps...
b1a0c328df44c3837daa927248c30d9ca9633a055230c411a223802da9b59dda
tonyg/kali-scheme
type-scheme.scm
Copyright ( c ) 1994 . See file COPYING . ; Type schemes (define-record-type type-scheme ( type ; a type free-uvars ; uvars that are free ) ()) (define make-type-scheme type-scheme-maker) (define-record-discloser type/type-scheme (lambda (type-scheme) (list 'type-scheme (m...
null
https://raw.githubusercontent.com/tonyg/kali-scheme/79bf76b4964729b63fce99c4d2149b32cb067ac0/ps-compiler/prescheme/type-scheme.scm
scheme
Type schemes a type uvars that are free If TYPE has any variables bound at DEPTH this returns a type scheme making those variables polymorphic; otherwise TYPE is returned. Would like to do limited finalizing of uvars, but can't. Consider (lambda (g x) (tuple (g 3) (g x) x)) (a -> b) -> c -> [d, e, f] with a > ...
Copyright ( c ) 1994 . See file COPYING . (define-record-type type-scheme ( ) ()) (define make-type-scheme type-scheme-maker) (define-record-discloser type/type-scheme (lambda (type-scheme) (list 'type-scheme (map uvar-id (type-scheme-free-uvars type-scheme)) (type-scheme-type type-scheme)...
c3cdd38a8d24f7f344e2f1bd3addaf2fd2c75730cbf62b1f7f9e662c1d6b04ca
Viasat/halite
test_bound_union.clj
Copyright ( c ) 2022 Viasat , Inc. Licensed under the MIT license (ns com.viasat.halite.propagate.test-prop-composition (:require [com.viasat.halite.propagate.bound-union :refer [union-bounds]] [schema.core :as s] [schema.test] [clojure.test :refer :all])) Prismatic schema ...
null
https://raw.githubusercontent.com/Viasat/halite/5a434fa2276f5f2654c4d91045595ae5bbc6580e/test/com/viasat/halite/propagate/test_bound_union.clj
clojure
If you're debugging a test failure, and the problem is a 'type' error, turning schema validation on is likely to help you track it down. integer bounds boolean bounds spec-bounds
Copyright ( c ) 2022 Viasat , Inc. Licensed under the MIT license (ns com.viasat.halite.propagate.test-prop-composition (:require [com.viasat.halite.propagate.bound-union :refer [union-bounds]] [schema.core :as s] [schema.test] [clojure.test :refer :all])) Prismatic schema ...
1059e85c791f4f281babeee03493de300364a95351e8f9c1e083d444f29a7348
serokell/qtah
QLayout.hs
This file is part of Qtah . -- Copyright 2015 - 2018 The Qtah Authors . -- -- 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) ...
null
https://raw.githubusercontent.com/serokell/qtah/abb4932248c82dc5c662a20d8f177acbc7cfa722/qtah-generator/src/Graphics/UI/Qtah/Generator/Interface/Widgets/QLayout.hs
haskell
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 (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER...
This file is part of Qtah . Copyright 2015 - 2018 The Qtah Authors . the Free Software Foundation , either version 3 of the License , or GNU Lesser General Public License for more details . You should have received a copy of the GNU Lesser General Public License module Graphics.UI.Qtah.Generator.Interface.Wi...
27059a77c65814c915d6bdf710f9ab9af60c71d47ba9d810745f6ac5ffe43542
migamake/homplexity
CodeFragment.hs
{-# LANGUAGE CPP #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE FlexibleContexts #-} # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE RecordWildCards # {-# LANGUAGE ScopedTypeVariables #-} # LANGUAGE TypeFamilies # # LANGUAGE Undecidabl...
null
https://raw.githubusercontent.com/migamake/homplexity/ddc2af9f988f1dbcc266c2f804fe6c599180be09/lib/Language/Haskell/Homplexity/CodeFragment.hs
haskell
# LANGUAGE CPP # # LANGUAGE DeriveDataTypeable # # LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # | This module generalizes over types of code fragments that may need to be iterated upon and measured separately. | Program | Smart constructor for adding cross-references in t...
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # # LANGUAGE ViewPatterns # module Language.Haskell.Homplexity.CodeFragment ( CodeFragment (fragmentName, fragmentSlice) , oc...
59dd006637e3b7adac8c2b803e3cb8551461e747fbb0ecd3285b641677e4a1d5
stylewarning/deprecated-coalton-prototype
parse-type.lisp
;;;; parse-type.lisp (in-package #:coalton-impl) ;;; Grammar: ;;; < type expr > : = < type alias > ; TODO ! ;;; | <type variable> ;;; | <nullary type constructor> ;;; | (fn <type expr>* -> <type-expr>) ;;; | (<type constructor...
null
https://raw.githubusercontent.com/stylewarning/deprecated-coalton-prototype/4a42ffb4222fde3abfd1b50d96e455ff2eef9fe8/src/parse-type.lisp
lisp
parse-type.lisp Grammar: TODO ! | <type variable> | <nullary type constructor> | (fn <type expr>* -> <type-expr>) | (<type constructor> <type expr>*) Below, TABLE is a mapping from symbols to fresh type variables. parse out the input and output t...
(in-package #:coalton-impl) (defun parse-type-expression (whole-expr &key variable-assignments extra-tycons) "Parse the type expression WHOLE-EXPR. Return two values: 1. The parsed expression. 2. An a-list of symbol -> TYVAR pairs. VARIABLE-ASSIGNMENTS is an alist o...
12e783864aa0aec8690a567defcfbc3151f6ef0fad9d73ddc10b517e783deae0
anurudhp/CPHaskell
Week8.hs
module Week8 where import Control.Monad (unless, void) import Data.Bifunctor (Bifunctor(first)) import Data.Char (isAlphaNum) import System.Exit (exitFailure) import System.IO (hPutStrLn, stderr) -- Exercise 1: A `Functor` instance -- Functor laws -- fmap id == id fmap ( f . ) = = fmap f . data ComplicatedA a ...
null
https://raw.githubusercontent.com/anurudhp/CPHaskell/01ae8dde6aab4f6ddfebd122ded0b42779dd16f1/learning/CIS194/Week8.hs
haskell
Exercise 1: A `Functor` instance Functor laws fmap id == id Testing Harness
module Week8 where import Control.Monad (unless, void) import Data.Bifunctor (Bifunctor(first)) import Data.Char (isAlphaNum) import System.Exit (exitFailure) import System.IO (hPutStrLn, stderr) fmap ( f . ) = = fmap f . data ComplicatedA a b = Con1 a b | Con2 [Maybe (a -> b)] data ComplicatedB f g a b =...
13fc1977e1c6a55e827d1f5e23a29012eca6201c4618327a76c6f28fafcb8679
Factual/c4
project.clj
(defproject factual/c4 "0.2.1" :description "Convenience features for handling record files the Clojure way" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.6.0"] [fs "1.3.2"] [org.clojure/tools.logging "0.2...
null
https://raw.githubusercontent.com/Factual/c4/9391e9a4cb5c9ec6da91cce1cdf5db740f79d37e/project.clj
clojure
(defproject factual/c4 "0.2.1" :description "Convenience features for handling record files the Clojure way" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.6.0"] [fs "1.3.2"] [org.clojure/tools.logging "0.2...
c3065cc7486da93868697c14684c2a5860da8d9391c2e0f8bef0c6807c9f3f29
DogLooksGood/holdem
ladder.cljs
(ns poker.events.ladder (:require [re-frame.core :as re-frame])) (re-frame/reg-event-db :ladder/list-leaderboard-success (fn [db [_ players]] (assoc db :ladder/leaderboard players))) (re-frame/reg-event-fx :ladder/list-leaderboard (fn [{:keys [db]} _] {:db db, :api/send {:event [:ladder...
null
https://raw.githubusercontent.com/DogLooksGood/holdem/bc0f93ed65cab54890c91f78bb95fe3ba020a41f/src/cljs/poker/events/ladder.cljs
clojure
(ns poker.events.ladder (:require [re-frame.core :as re-frame])) (re-frame/reg-event-db :ladder/list-leaderboard-success (fn [db [_ players]] (assoc db :ladder/leaderboard players))) (re-frame/reg-event-fx :ladder/list-leaderboard (fn [{:keys [db]} _] {:db db, :api/send {:event [:ladder...
8a8e8e1fb31cef5ee3ca0ffc3d791f7cc007f29383d75e3c2ed8f64794b40074
jellelicht/guix
djvu.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2015 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 3 of the Li...
null
https://raw.githubusercontent.com/jellelicht/guix/83cfc9414fca3ab57c949e18c1ceb375a179b59c/gnu/packages/djvu.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2015 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (gnu packages djvu) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packa...
8584490ff77793e15e683de71d0f951337cb2a9012e72b27700c554beb33d65c
samply/blaze
json_test.clj
(ns blaze.fhir.spec.type.json-test (:require [blaze.fhir.spec.type.json :as json] [blaze.test-util :as tu :refer [satisfies-prop]] [clojure.spec.test.alpha :as st] [clojure.test :as test :refer [deftest testing]] [clojure.test.check.generators :as gen] [clojure.test.check.properties :as prop])...
null
https://raw.githubusercontent.com/samply/blaze/6441a0a2f988b8784ed555c1d20f634ef2df7e4a/modules/fhir-structure/test/blaze/fhir/spec/type/json_test.clj
clojure
(ns blaze.fhir.spec.type.json-test (:require [blaze.fhir.spec.type.json :as json] [blaze.test-util :as tu :refer [satisfies-prop]] [clojure.spec.test.alpha :as st] [clojure.test :as test :refer [deftest testing]] [clojure.test.check.generators :as gen] [clojure.test.check.properties :as prop])...
510b2ca26954418917171cd5a80cd98b074078a1e19e5fbd1e7dbaaf7596b39b
Leystryku/mpbomberman_racket
sh_tick_explosion.rkt
#lang racket ;; import (require 2htdp/image) (require "cl_sound.rkt") (require "sh_config.rkt") (require "sh_structs.rkt") (require "sh_collisions.rkt") (require "sh_helper.rkt") (require "sh_tick_bomb.rkt") ;; export (provide (all-defined-out)) ;; [explosionTickSpreadExplode] Is responsible for turning breakable t...
null
https://raw.githubusercontent.com/Leystryku/mpbomberman_racket/059d95040cfad2e27237f8dd41fc32a4fc698afe/game/sh_tick_explosion.rkt
racket
import export [explosionTickSpreadExplode] Is responsible for turning breakable tiles into breakingTiles [explosionTickSpreadExplodeBomb] Is responsible for exploding other bombs [explosionTickSpreadExplode] Calls the right function to explode a given tile [explosionTickSpreadExplodeIfCan] Calls the right functio...
#lang racket (require 2htdp/image) (require "cl_sound.rkt") (require "sh_config.rkt") (require "sh_structs.rkt") (require "sh_collisions.rkt") (require "sh_helper.rkt") (require "sh_tick_bomb.rkt") (provide (all-defined-out)) (define (explosionTickSpreadExplodeBreakableTile currentWorld elements tickCount elemToBre...
4595cb39cfb5eac658a00f343921bcffffdde696340963f9743ede40c0377f01
ivanjovanovic/sicp
lazy-streams.scm
; Based on the lazy evaluation of procedure arguments, we can implement ; list abstraction so they are naturally lazy. We just have to implement ; pair as a procedure that will represent them and selectors just as ; applications of this procedure. (define (cons x y) (lambda (m) (m x y))) (define (car z) (z (lambda (p ...
null
https://raw.githubusercontent.com/ivanjovanovic/sicp/a3bfbae0a0bda414b042e16bbb39bf39cd3c38f8/4.2/lazy-streams.scm
scheme
Based on the lazy evaluation of procedure arguments, we can implement list abstraction so they are naturally lazy. We just have to implement pair as a procedure that will represent them and selectors just as applications of this procedure. When defined this way in a lazy language, lists are even lazier than stream...
(define (cons x y) (lambda (m) (m x y))) (define (car z) (z (lambda (p q) p))) (define (cdr z) (z (lambda (p q) q)))
9dfec1f0f23bde8c546196fee3637b989ba78f5994443b114833b3b4e9f1fb40
lispgames/glkit
vao.lisp
(in-package :kit.gl.vao) (defvar *vao-declarations* (make-hash-table)) ;; GFs (defgeneric vao-add (vao object)) (defgeneric vao-attr-count (vao) (:documentation "Number of slots for `VAO`.")) (defgeneric vao-vbo-count (group) (:documentation "Number of VBOs allocated by `GROUP`.")) (defgeneric vao-set-point...
null
https://raw.githubusercontent.com/lispgames/glkit/0d8e7c5fed4231f2177afcf0f3ff66f196ed6a46/src/vao/vao.lisp
lisp
GFs ATTR/VBO counts ATTRIBUTE-SIZE Parsing VERTEX-ATTRIBUTE parsing DEFVAO buffer-data draw delete
(in-package :kit.gl.vao) (defvar *vao-declarations* (make-hash-table)) (defgeneric vao-add (vao object)) (defgeneric vao-attr-count (vao) (:documentation "Number of slots for `VAO`.")) (defgeneric vao-vbo-count (group) (:documentation "Number of VBOs allocated by `GROUP`.")) (defgeneric vao-set-pointers (grou...
d745fec5c06ca488c580a600327b4064bc694128368be2903f94350b26be94ec
janestreet/bonsai
dagviz_test.ml
open! Core open Bonsai_web open Bonsai.Let_syntax open Bonsai_web_test module Id : sig include Bonsai_experimental_dagviz.Name val of_string : string -> t end = struct module Count = Int module T = struct type t = | User of string | Gen of Count.t [@@deriving bin_io, compare, sexp] end ...
null
https://raw.githubusercontent.com/janestreet/bonsai/4baeedc75bf73a0915e04dc02d8a49b78779e9b0/experimental/dagviz/test/dagviz_test.ml
ocaml
{v a | b | c | d v} {v A B \ / C | D v} {v E / \ A B \ / C | D v} Since E was added, ...
open! Core open Bonsai_web open Bonsai.Let_syntax open Bonsai_web_test module Id : sig include Bonsai_experimental_dagviz.Name val of_string : string -> t end = struct module Count = Int module T = struct type t = | User of string | Gen of Count.t [@@deriving bin_io, compare, sexp] end ...
056225ddd37d115e812766a12fe081fa7033add752e5530ab48bdad4760e2d83
benoitc/hooks
hooks_test_SUITE.erl
%%%------------------------------------------------------------------- @author benoitc ( C ) 2017 , < COMPANY > %%% @doc %%% %%% @end Created : 27 . Oct 2017 12:29 %%%------------------------------------------------------------------- -module(hooks_test_SUITE). -author("benoitc"). -compile(export_all). -export...
null
https://raw.githubusercontent.com/benoitc/hooks/b976cf706f75546cf68ecd341c8d94205b433e75/test/hooks_test_SUITE.erl
erlang
------------------------------------------------------------------- @doc @end ------------------------------------------------------------------- hooks for tests tests
@author benoitc ( C ) 2017 , < COMPANY > Created : 27 . Oct 2017 12:29 -module(hooks_test_SUITE). -author("benoitc"). -compile(export_all). -export([ all/0, init_per_suite/1, end_per_suite/1, init_per_testcase/2, end_per_testcase/1 ]). all() -> [ basic_test, mreg_test, run_test, ...
1aa61669adc5d378c4240ceb7dd68ceb7cbd13546f93cf6b9496bb01931b3733
0zat/gen-bs
draw_objects.ml
open Servo_dom module Math = Js.Math type elem = { mutable x: float; mutable y: float; coordinates: (float * float) Queue.t; mutable speed: float; friction: float; brightness: float; hue: float; gravity: float; mutable alpha: float; decay: float; angle_rad: float; } let random min max = (Math.ra...
null
https://raw.githubusercontent.com/0zat/gen-bs/20348991775d9ef3974c3b824968a0ab219502a8/example/firework/src/draw_objects.ml
ocaml
open Servo_dom module Math = Js.Math type elem = { mutable x: float; mutable y: float; coordinates: (float * float) Queue.t; mutable speed: float; friction: float; brightness: float; hue: float; gravity: float; mutable alpha: float; decay: float; angle_rad: float; } let random min max = (Math.ra...
50f9b1e132bdd26f525ff0420083d2c6488fa3069a85f5fe1bee26338a194b9f
BinaryAnalysisPlatform/bap
demangle_main.ml
open Core_kernel[@@warning "-D"] open Bap_core_theory open Bap_main open Bap_demangle.Std let doc = " # DESCRIPTION Performs ABI-specific name resolution and demangling. " let provides = [ "symbolizer"; "demangling"; "demangler"; "symbolizer"; ] let override = Extension.Configuration.parameter ~doc:"Ove...
null
https://raw.githubusercontent.com/BinaryAnalysisPlatform/bap/cbdf732d46c8e38df79d9942fc49bcb97915c657/plugins/demangle/demangle_main.ml
ocaml
open Core_kernel[@@warning "-D"] open Bap_core_theory open Bap_main open Bap_demangle.Std let doc = " # DESCRIPTION Performs ABI-specific name resolution and demangling. " let provides = [ "symbolizer"; "demangling"; "demangler"; "symbolizer"; ] let override = Extension.Configuration.parameter ~doc:"Ove...
e1a18c0e9c3354b22da1cdf6ff4e232c8c12a14937365892c73487555d3c136f
boomerang-lang/boomerang
my_priority_queue.ml
open Core open Util open My_set open My_heap module type DataWithPriority = sig type t val show : t shower val pp : t pper val compare : t comparer val hash : t hasher val hash_fold_t : t hash_folder val priority : t -> float end module PriorityQueueOf(D:DataWithPriority) = struct module QueueHeap = ...
null
https://raw.githubusercontent.com/boomerang-lang/boomerang/b42c2bfc72030bbe5c32752c236c0aad3b17d149/stdlib/my_priority_queue.ml
ocaml
open Core open Util open My_set open My_heap module type DataWithPriority = sig type t val show : t shower val pp : t pper val compare : t comparer val hash : t hasher val hash_fold_t : t hash_folder val priority : t -> float end module PriorityQueueOf(D:DataWithPriority) = struct module QueueHeap = ...
cb4c4f612b06e54c3ee017b41a117249651a42a0070e3a3fff0bf4ca6b5824f2
noinia/hgeometry
RIC.hs
-------------------------------------------------------------------------------- -- | Module : Algorithms . Geometry . SmallestEnclosingBall . RIC Copyright : ( C ) -- License : see the LICENSE file Maintainer : -- -- An randomized algorithm to compute the smallest enclosing disk of a se...
null
https://raw.githubusercontent.com/noinia/hgeometry/89cd3d3109ec68f877bf8e34dc34b6df337a4ec1/hgeometry/src/Algorithms/Geometry/SmallestEnclosingBall/RIC.hs
haskell
------------------------------------------------------------------------------ | License : see the LICENSE file An randomized algorithm to compute the smallest enclosing disk of a set of \(n\) points in \(\mathbb{R}^2\). The expected running time is \(O(n)\). -------------------------------------------------...
Module : Algorithms . Geometry . SmallestEnclosingBall . RIC Copyright : ( C ) Maintainer : module Algorithms.Geometry.SmallestEnclosingBall.RIC( smallestEnclosingDisk' , smallestEnclosingDisk , smallestEnclosingDiskWithPoint , smallestEnclosingDiskWithPoints ) where import ...
4316d462eb48e6ec54f32eeda2a7418a6f653e37c6ae609a9fb3137324e1ba66
skogsbaer/HTF
B.hs
# OPTIONS_GHC -F -pgmF ./scripts / local - htfpp # module Foo.B (htf_thisModulesTests) where import qualified Test.Framework as HTF test_b_OK = HTF.assertEqual 1 1
null
https://raw.githubusercontent.com/skogsbaer/HTF/a42450c89b7a3a3a50e381f36de3ac28faab2a16/tests/Foo/B.hs
haskell
# OPTIONS_GHC -F -pgmF ./scripts / local - htfpp # module Foo.B (htf_thisModulesTests) where import qualified Test.Framework as HTF test_b_OK = HTF.assertEqual 1 1
f308ea38b1fc8dec11717c383507f5463a1f0064b4459f0585bb8c55b4d5c7ef
spechub/Hets
Morphism.hs
| Module : ./HasCASL / Morphism.hs Description : morphisms implementation Copyright : ( c ) and Uni Bremen 2002 - 2006 License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : provisional Portability : portable mapping entities of morphisms Module ...
null
https://raw.githubusercontent.com/spechub/Hets/f582640a174df08d4c965d7c0a1ab24d1a31000d/HasCASL/Morphism.hs
haskell
| map a kind along an identifier map | map a kind along a signature morphism (variance is preserved) | only rename the kinds in a type | map type, expand it, and also adjust the kinds | map a kind along a signature morphism (variance is preserved) | get the partiality from a constructor type with a given number o...
| Module : ./HasCASL / Morphism.hs Description : morphisms implementation Copyright : ( c ) and Uni Bremen 2002 - 2006 License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : provisional Portability : portable mapping entities of morphisms Module ...
87704f79dfa1aec225aca8e21d45dde585630d06f8181eb6673466ce26477f9e
avsm/platform
uucp_func.ml
--------------------------------------------------------------------------- Copyright ( c ) 2014 . All rights reserved . Distributed under the ISC license , see terms at the end of the file . % % NAME%% % % --------------------------------------------------------------------------- Copyright (c) ...
null
https://raw.githubusercontent.com/avsm/platform/b254e3c6b60f3c0c09dfdcde92eb1abdc267fa1c/duniverse/uucp.12.0.0%2Bdune/src/uucp_func.ml
ocaml
--------------------------------------------------------------------------- Copyright ( c ) 2014 . All rights reserved . Distributed under the ISC license , see terms at the end of the file . % % NAME%% % % --------------------------------------------------------------------------- Copyright (c) ...
b6c6fe7af40d013a39fc5e30c9258892a63ecab1449f6d9623cbfe3206549c31
lisp/de.setf.wilbur
packages.lisp
-*- package : CL - USER ; Syntax : Common - lisp ; Base : 10 -*- ;;; packages.lisp ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; The Original Software is WILBUR2 : Nokia Semantic Web Toolkit for CLOS ;;; Copyright ( c ) 2001 - 2009 Nokia Corp. a...
null
https://raw.githubusercontent.com/lisp/de.setf.wilbur/c5c1321e6a05cead8b90e54116f14c3810d520e2/src/packages.lisp
lisp
Syntax : Common - lisp ; Base : 10 -*- -------------------------------------------------------------------------------------- This program is licensed under the terms of the GNU Lesser General Public License however that a preamble attached below also applies to this program. -------------------------...
packages.lisp The Original Software is WILBUR2 : Nokia Semantic Web Toolkit for CLOS Copyright ( c ) 2001 - 2009 Nokia Corp. and/or its subsidiaries . All Rights Reserved . Portions Copyright ( c ) 1989 - 1992 . All Rights Reserved . Contributor(s ): ( mailto: ) as published by the Free ...
ff9efca3e42ad2e589472db2608b20c1cccb3d9f0b0e05eee37abcf6e65b92a0
nyampass/appollo
apps.clj
(ns appollo.web.api.apps (use conceit.commons [compojure.core :only [defroutes context GET POST]]) (require [appollo [pager :as pager] [apps :as apps] [users :as users] [conversion :as conversion] [notifications :as notifications]] [appol...
null
https://raw.githubusercontent.com/nyampass/appollo/50275285c26a2c4fa8f8209a7b6a14aafead86b9/src/appollo/web/api/apps.clj
clojure
(ns appollo.web.api.apps (use conceit.commons [compojure.core :only [defroutes context GET POST]]) (require [appollo [pager :as pager] [apps :as apps] [users :as users] [conversion :as conversion] [notifications :as notifications]] [appol...
12c59b0a97c1e37ba3f6c63c13d3b63db984cceac94a81527bac26b8f60b6bae
hirokai/PaperServer
Render.hs
# LANGUAGE DoAndIfThenElse , DeriveDataTypeable , TemplateHaskell # # LANGUAGE StandaloneDeriving # module Handler.Render where import Import import Control.Lens import Text.Blaze.Html.Renderer.Text import qualified Data.Text as T import qualified Data.Text.Lazy.IO as TLIO import Text.Blaze.Html import Text.HTML....
null
https://raw.githubusercontent.com/hirokai/PaperServer/b577955af08660253d0cd11282cf141d1c174bc0/Handler/Render.hs
haskell
Render paper. exist <- liftIO $ doesFileExist path Citation with no maybe values Reference with no maybe values
# LANGUAGE DoAndIfThenElse , DeriveDataTypeable , TemplateHaskell # # LANGUAGE StandaloneDeriving # module Handler.Render where import Import import Control.Lens import Text.Blaze.Html.Renderer.Text import qualified Data.Text as T import qualified Data.Text.Lazy.IO as TLIO import Text.Blaze.Html import Text.HTML....
47aee5532f854c5ec4d06e4bc908f828eab92e8caad257e32228ec1d94f05318
input-output-hk/cardano-ledger
Compact.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE TemplateHaskell # module Test.Cardano.Chain.UTxO.Compact ( tests, ) where import Cardano.Chain.UTxO ( fromCompactTxId, fromCompactTxIn, fromCompactTxOut, toCompactTxId, toCompactTxIn, toCompactTxOut, ) import Cardano.HeapWords (HeapWords (..)) import Cardan...
null
https://raw.githubusercontent.com/input-output-hk/cardano-ledger/31c0bb1f5e78e40b83adfd1a916e69f47fdc9835/eras/byron/ledger/impl/test/Test/Cardano/Chain/UTxO/Compact.hs
haskell
# LANGUAGE OverloadedStrings # ------------------------------------------------------------------------------ Compact TxIn ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Compact TxId ------------------------...
# LANGUAGE TemplateHaskell # module Test.Cardano.Chain.UTxO.Compact ( tests, ) where import Cardano.Chain.UTxO ( fromCompactTxId, fromCompactTxIn, fromCompactTxOut, toCompactTxId, toCompactTxIn, toCompactTxOut, ) import Cardano.HeapWords (HeapWords (..)) import Cardano.Prelude import Hedgehog (MonadTes...
8b5d30f07f7b9635c8b614520c07334531c08fc39ded43c6d44237e254ae4c2d
replikativ/zufall
project.clj
(defproject io.replikativ/zufall "0.1.0" :description "Random name generators" :url "" :license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0" :url "-2.0/"} :dependencies [[org.clojure/clojure "1.10.0"]] :repl-options {:init-ns zufall.core})
null
https://raw.githubusercontent.com/replikativ/zufall/a1f55cfda7c2a737bd02d69896392db576baa7a5/project.clj
clojure
(defproject io.replikativ/zufall "0.1.0" :description "Random name generators" :url "" :license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0" :url "-2.0/"} :dependencies [[org.clojure/clojure "1.10.0"]] :repl-options {:init-ns zufall.core})
dcfdfdba9c44e920a56296145cb93fd302bb977e9e83531f6a8904632f6aa902
purescript/spago
Cmd.hs
module Spago.Cmd (getCmdVersion) where import qualified Spago.Messages as Messages import qualified Turtle.Bytes import Spago.Prelude import qualified Data.Text as Text import qualified Data.Text.Encoding as Text.Encoding import qualified Data.Text.Encoding.Error as Text.Encoding import qualified Data.V...
null
https://raw.githubusercontent.com/purescript/spago/310a7096b0d3e86f6464c667aa2339045d85d505/src/Spago/Cmd.hs
haskell
| Get the semantic version of a command, e.g. purs --version
module Spago.Cmd (getCmdVersion) where import qualified Spago.Messages as Messages import qualified Turtle.Bytes import Spago.Prelude import qualified Data.Text as Text import qualified Data.Text.Encoding as Text.Encoding import qualified Data.Text.Encoding.Error as Text.Encoding import qualified Data.V...
83a93dd657f2540f38091e6e8e3c3ab0f874d040d53efd76abd9e169339f78fd
erlang/corba
CosFileTransfer_FileTransferSession_impl.erl
%%---------------------------------------------------------------------- %% %% %CopyrightBegin% %% Copyright Ericsson AB 2000 - 2016 . All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtai...
null
https://raw.githubusercontent.com/erlang/corba/396df81473a386d0315bbba830db6f9d4b12a04f/lib/cosFileTransfer/src/CosFileTransfer_FileTransferSession_impl.erl
erlang
---------------------------------------------------------------------- %CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF A...
Copyright Ericsson AB 2000 - 2016 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , Created : 12 Sept 2000 -module('CosFileTransfer_FileTransferSession_impl'). -include_lib("orber/include/corb...
2dd3ee0d9aed750debc429c69a353e220c484d8f7d89ec6fd55be335e9b63013
nikita-volkov/rebase
TBQueue.hs
module Rebase.Control.Concurrent.STM.TBQueue ( module Control.Concurrent.STM.TBQueue ) where import Control.Concurrent.STM.TBQueue
null
https://raw.githubusercontent.com/nikita-volkov/rebase/7c77a0443e80bdffd4488a4239628177cac0761b/library/Rebase/Control/Concurrent/STM/TBQueue.hs
haskell
module Rebase.Control.Concurrent.STM.TBQueue ( module Control.Concurrent.STM.TBQueue ) where import Control.Concurrent.STM.TBQueue
5156788322c4bc550213481eaecda2ce01e83d229f41e0ad51062480121fe790
tweag/asterius
T5149.hs
# LANGUAGE MagicHash , GHCForeignImportPrim , UnliftedFFITypes # module Main where import GHC.Exts foreign import prim "f5149" f :: Int# -> Int# -> Double# -> Int# main = print (I# (f 1# 2# 1.0##))
null
https://raw.githubusercontent.com/tweag/asterius/e7b823c87499656860f87b9b468eb0567add1de8/asterius/test/ghc-testsuite/codeGen/T5149.hs
haskell
# LANGUAGE MagicHash , GHCForeignImportPrim , UnliftedFFITypes # module Main where import GHC.Exts foreign import prim "f5149" f :: Int# -> Int# -> Double# -> Int# main = print (I# (f 1# 2# 1.0##))
b648dd267f9f8f65182070aa64b29a32f776b2557c862e95559b46eb070cd90a
tsurucapital/euphoria
Main.hs
module Main where import Test.Framework (defaultMain) import qualified FRP.Euphoria.EnumCollection.Lazy.Test import qualified FRP.Euphoria.HashCollection.Strict.Test import qualified FRP.Euphoria.Event.Test import qualified FRP.Euphoria.Update.Test main :: IO () main = defaultMain [ FRP.Euphoria.EnumCollection.L...
null
https://raw.githubusercontent.com/tsurucapital/euphoria/15ddb49ddc79d62970a0163fe8d77789254db202/tests/Main.hs
haskell
module Main where import Test.Framework (defaultMain) import qualified FRP.Euphoria.EnumCollection.Lazy.Test import qualified FRP.Euphoria.HashCollection.Strict.Test import qualified FRP.Euphoria.Event.Test import qualified FRP.Euphoria.Update.Test main :: IO () main = defaultMain [ FRP.Euphoria.EnumCollection.L...
fd44c02a3d170a4473e61c3c5a2a82ff1b7a4d2241066cec4c3493b46e06b2b6
josefs/Gradualizer
gradualizer_db.erl
@private %% @doc Collects exported functions and types from multiple files. %% %% For exported functions with missing spec, a spec is generated with any() %% as the type for all parameters and return values. -module(gradualizer_db). %% API functions -export([start_link/1, get_spec/3, get_type/3, ge...
null
https://raw.githubusercontent.com/josefs/Gradualizer/d2ea3201ee3c55695f50144ee4befcafa0756ccc/src/gradualizer_db.erl
erlang
@doc Collects exported functions and types from multiple files. For exported functions with missing spec, a spec is generated with any() as the type for all parameters and return values. API functions Callbacks Types for the Erlang Abstract Format Compiled regular expression Gen server local registered name P...
@private -module(gradualizer_db). -export([start_link/1, get_spec/3, get_type/3, get_exported_type/3, get_opaque_type/3, get_record_type/2, get_modules/0, get_types/1, save/1, load/1, import_module/1, import_erl_files/1, import_erl_files/2, import_beam_f...
341f52edf1b1e91cb47239e2ca02977c4416f68258f867a292c8d9df93329416
tsikov/clerk
clerk.lisp
(in-package #:cl-user) (defpackage #:clerk.test (:use #:cl #:prove)) (in-package #:clerk.test) (plan 1) (subtest "package clerk.test" (subtest "function (make-job" (is (type-of (clerk::make-job "Friendly job" 'every '5.minutes ...
null
https://raw.githubusercontent.com/tsikov/clerk/96eef1ec4ea6ae7144a4e13be8d5fdbc00ced29d/t/clerk.lisp
lisp
(in-package #:cl-user) (defpackage #:clerk.test (:use #:cl #:prove)) (in-package #:clerk.test) (plan 1) (subtest "package clerk.test" (subtest "function (make-job" (is (type-of (clerk::make-job "Friendly job" 'every '5.minutes ...
2bbf6d2ccb2079f94f821b9d9c542bbbde6fa3ca2c097a713ac455560f4d200e
mpickering/apply-refact
Bracket22.hs
foo (True) = 1
null
https://raw.githubusercontent.com/mpickering/apply-refact/a4343ea0f4f9d8c2e16d6b16b9068f321ba4f272/tests/examples/Bracket22.hs
haskell
foo (True) = 1
d739e61749135ba71c6f6aaf3adec97c8f2e46acdf83ba0962442d1cc5607297
freckle/stack-lint-extra-deps
Stackage.hs
# LANGUAGE TupleSections # module Stackage ( StackageVersions(..) , getStackageVersions ) where import RIO import Data.List (find) import Network.HTTP.Simple import Network.HTTP.Types.Status (status200) import PackageName import qualified RIO.Map as Map import RIO.Text (unpack) import qualified RIO.Text as T i...
null
https://raw.githubusercontent.com/freckle/stack-lint-extra-deps/675968214e75ec57f5e5d216ca371c1adfd72082/src/Stackage.hs
haskell
# LANGUAGE TupleSections # module Stackage ( StackageVersions(..) , getStackageVersions ) where import RIO import Data.List (find) import Network.HTTP.Simple import Network.HTTP.Types.Status (status200) import PackageName import qualified RIO.Map as Map import RIO.Text (unpack) import qualified RIO.Text as T i...
95257f4a373228ce2a36b180edbc78c1e6ed2a670dae88a3c338d68b2fd50606
maximedenes/native-coq
summary.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/maximedenes/native-coq/3623a4d9fe95c165f02f7119c0e6564a83a9f4c9/library/summary.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** * This module registers the declarat...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * type 'a summary_declaration ...