_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
46f7250066fbd7ac06799fe0b086e70f4d9a3c4744e0d511995dc42ab124e6eb
spacegangster/space-ui
animations.cljc
(ns space-ui.style.animations "CSS animation property groups") (defn pulse "constant pulse" [keyframes-name] {:animation-duration :2s :animation-timing-function :ease-in-out :animation-name keyframes-name :animation-iteration-count :infinite :animation-direction :alternate ...
null
https://raw.githubusercontent.com/spacegangster/space-ui/74825c904b6b456d845c3b3d669ce795b33f5ba9/src/space_ui/style/animations.cljc
clojure
(ns space-ui.style.animations "CSS animation property groups") (defn pulse "constant pulse" [keyframes-name] {:animation-duration :2s :animation-timing-function :ease-in-out :animation-name keyframes-name :animation-iteration-count :infinite :animation-direction :alternate ...
d8ec722ea7e527581e627b385d8ba875301daf73438ba7c67bc128362c777ecc
johnmn3/cljs-thread
id.cljs
(ns cljs-thread.id) (defprotocol IDable "Protocol for types which have an ID" (get-id [x] "Returns id if a value has an ID."))
null
https://raw.githubusercontent.com/johnmn3/cljs-thread/e98edc26ae71d1e17cea96a1f0e978df41b34d3f/src/cljs_thread/id.cljs
clojure
(ns cljs-thread.id) (defprotocol IDable "Protocol for types which have an ID" (get-id [x] "Returns id if a value has an ID."))
f3c3cc3f4b76e376ad26cb2c0c6a2e95581eaf694aa026bd03a2208f379a7b93
OCADml/OSCADml
bespoke_sweeps.ml
(** {0 Bespoke Sweeps} *) open OCADml open OSCADml * Sometimes one may need more control than what { { ! OCADml . Path3.to_transforms } [ Path3.to_transforms ] } ( and by extension { { ! OCADml . Mesh.path_extrude } [ Mesh.path_extrude ] } ) provide . For instance , as demonstrated below with the { ...
null
https://raw.githubusercontent.com/OCADml/OSCADml/a1d5e9d6aa9f703e0a7eb419128593ef9c694072/examples/bespoke_sweeps.ml
ocaml
* {0 Bespoke Sweeps} * {1 Flat Spiral} * A plain, centred square with which to draw our spiral. * A series of affine transformation matrices describing a spiral.
open OCADml open OSCADml * Sometimes one may need more control than what { { ! OCADml . Path3.to_transforms } [ Path3.to_transforms ] } ( and by extension { { ! OCADml . Mesh.path_extrude } [ Mesh.path_extrude ] } ) provide . For instance , as demonstrated below with the { { ! wavey } wavey cylinder...
da7b68e638f392e854fcd6fb18daa52b7f9dcfb602be88265801fa34c1965184
jaredly/reepl
show_devtools.cljs
(ns reepl.show-devtools (:require [clojure.string :as str] [reagent.core :as r] [devtools.format :as devtools] [cljs.pprint :as pprint] [reepl.helpers :as helpers]) (:require-macros [reagent.ratom :refer [reaction]])) (def styles {:value-head {:flex-direction :...
null
https://raw.githubusercontent.com/jaredly/reepl/96a8979c574b3979a7aeeed27e57a2ec4d357350/src/reepl/show_devtools.cljs
clojure
see
(ns reepl.show-devtools (:require [clojure.string :as str] [reagent.core :as r] [devtools.format :as devtools] [cljs.pprint :as pprint] [reepl.helpers :as helpers]) (:require-macros [reagent.ratom :refer [reaction]])) (def styles {:value-head {:flex-direction :...
f11b88bac1f3d4c37ac4fad5fb78101de2b670862a45d960f4d8c2c143574a95
psholtz/MIT-SICP
game.scm
(load "prisoner.scm") ;; ++++++++++++++++++++++++++++++++++++++++++++++++++ Problem 1 ;; ;; Definition of "extract-entry" ;; ++++++++++++++++++++++++++++++++++++++++++++++++++ ;; ;; The *game-association-list* is defined as follows: ;; (define *game-association-list* (list (list (list "c" "c") (list 3 3)) (li...
null
https://raw.githubusercontent.com/psholtz/MIT-SICP/01e9b722ac5008e26f386624849117ca8fa80906/Projects-S2005/Project2/mit-scheme/game.scm
scheme
++++++++++++++++++++++++++++++++++++++++++++++++++ Definition of "extract-entry" ++++++++++++++++++++++++++++++++++++++++++++++++++ The *game-association-list* is defined as follows: We can extract a specific entry in this list by using the "list-ref" procedure. For example: ==> (("c" "d") (0 5)) and...
(load "prisoner.scm") Problem 1 (define *game-association-list* (list (list (list "c" "c") (list 3 3)) (list (list "c" "d") (list 0 5)) (list (list "d" "c") (list 5 0)) (list (list "d" "d") (list 1 1)))) (list-ref *game-association-list* 0) = = > ( ( " c " " c " ) ( 3 3 ) ) (list-ref *game-association-list*...
a89680d61d145f640bca52ad40e1bd63f8424bcf3cc9fa024f9d14a932cfe429
Feuerlabs/yang
yang_codegen.erl
-module(yang_codegen). -export([module/3]). -include_lib("parse_trans/include/codegen.hrl"). module(YangF, ErlMod, Opts) -> case file:read_file(YangF) of {ok, Bin} -> YangOpts = proplists:get_value(yang, Opts, []), try yang_parser:deep_parse(YangF, YangOpts) of {ok, YangForms} -> module_(YangF...
null
https://raw.githubusercontent.com/Feuerlabs/yang/92330c742cdd2a8e7ce07f99b34c0fe761806e82/src/yang_codegen.erl
erlang
{'$var', Y}
-module(yang_codegen). -export([module/3]). -include_lib("parse_trans/include/codegen.hrl"). module(YangF, ErlMod, Opts) -> case file:read_file(YangF) of {ok, Bin} -> YangOpts = proplists:get_value(yang, Opts, []), try yang_parser:deep_parse(YangF, YangOpts) of {ok, YangForms} -> module_(YangF...
9ad8ba197d4ef9b1337fb1bcc7a3ac4570de120308b7ca245d6fa9ce5fe926b0
kushidesign/kushi
core.cljs
(ns kushi.ui.collapse.core (:require [kushi.core :refer (sx merge-attrs) :refer-macros (sx)] [clojure.string :as string] [kushi.ui.collapse.header :refer (collapse-header-contents)] [kushi.ui.core :refer (defcom opts+children)] [kushi.ui.dom :as dom])) TODO refactor this out (defcom collapse-body [:...
null
https://raw.githubusercontent.com/kushidesign/kushi/095f9852d426d0b58ec0cdc06fb278dbdf05353b/src/kushi/ui/collapse/core.cljs
clojure
collapse body
(ns kushi.ui.collapse.core (:require [kushi.core :refer (sx merge-attrs) :refer-macros (sx)] [clojure.string :as string] [kushi.ui.collapse.header :refer (collapse-header-contents)] [kushi.ui.core :refer (defcom opts+children)] [kushi.ui.dom :as dom])) TODO refactor this out (defcom collapse-body [:...
2dac07357f820ee07cfd6ebe36f56948822cfc6b5c42b752321ac515e45806df
imrehg/ypsilon
draw.scm
#!nobacktrace Ypsilon Scheme System Copyright ( c ) 2004 - 2009 Y.FUJITA / LittleWing Company Limited . See license.txt for terms and conditions of use . (library (ypsilon gdk draw) (export gdk_draw_arc gdk_draw_drawable gdk_draw_glyphs gdk_draw_glyphs_transformed gdk_d...
null
https://raw.githubusercontent.com/imrehg/ypsilon/e57a06ef5c66c1a88905b2be2fa791fa29848514/sitelib/ypsilon/gdk/draw.scm
scheme
[end]
#!nobacktrace Ypsilon Scheme System Copyright ( c ) 2004 - 2009 Y.FUJITA / LittleWing Company Limited . See license.txt for terms and conditions of use . (library (ypsilon gdk draw) (export gdk_draw_arc gdk_draw_drawable gdk_draw_glyphs gdk_draw_glyphs_transformed gdk_d...
eb8a34172870ef8700e62ed762dcf474b116090c998251616ffe787dc25edd67
census-instrumentation/opencensus-erlang
oc_span_ctx_SUITE.erl
%%% --------------------------------------------------------------------------- %%% @doc %%% @end %%% --------------------------------------------------------------------------- -module(oc_span_ctx_SUITE). -compile(export_all). -include_lib("eunit/include/eunit.hrl"). -include_lib("common_test/include/ct.hrl"). -inc...
null
https://raw.githubusercontent.com/census-instrumentation/opencensus-erlang/7fb276ff73d677c00458922c9180df634f45e018/test/oc_span_ctx_SUITE.erl
erlang
--------------------------------------------------------------------------- @doc @end --------------------------------------------------------------------------- SpanId: 7017280452245743464 Enabled: true Enabled: true Enabled: false Decode invalid headers Encode invalid trace contexts Enabled: true Enabled:...
-module(oc_span_ctx_SUITE). -compile(export_all). -include_lib("eunit/include/eunit.hrl"). -include_lib("common_test/include/ct.hrl"). -include("opencensus.hrl"). -define(W3C_HEADERS(TraceParent, TraceState), [{<<"traceparent">>, TraceParent}, {<<"tracestate">>, TraceS...
96d50efd6d946410f01ccb0e0fe1cefe8f32c612eae8d7f83cafa9bc8bcd0bb8
raptazure/chocolate
UsefulEquivalence.hs
module UsefulEquivalence (validUsefulEquivalences) where import Logic (logEquiv1, logEquiv2, logEquiv3, (<=>), (==>)) validUsefulEquivalences :: Bool validUsefulEquivalences = form1 && form2a && form2b && form3a && form3b && form4a && form4b && form4c && form5a && form5b && f...
null
https://raw.githubusercontent.com/raptazure/chocolate/48a7aaebb0d36aff639d6aa583536595ff034c22/src/UsefulEquivalence.hs
haskell
have a try to apply hlint hints :) law of double negation laws of idempotence laws of contraposition law of commutativity laws of associativity distribution laws
module UsefulEquivalence (validUsefulEquivalences) where import Logic (logEquiv1, logEquiv2, logEquiv3, (<=>), (==>)) validUsefulEquivalences :: Bool validUsefulEquivalences = form1 && form2a && form2b && form3a && form3b && form4a && form4b && form4c && form5a && form5b && f...
401fbb2c9d9a3d9bd10c1e4e9da92b28757d969c9744481d0b3dc5dc12065aa8
noteed/mojito
SystemCT1999.hs
# LANGUAGE GeneralizedNewtypeDeriving , FlexibleContexts # SystemCT from Camarao 1999 , -- Type Inference for Overloading without -- Restrictions, Declarations or Annotations -- -- Based on Cardelli.hs. module Language.Mojito.Inference.SystemCT1999.SystemCT1999 where import Data.List (groupBy, union, (\\)) ...
null
https://raw.githubusercontent.com/noteed/mojito/893d1d826d969b0db7bbc8884df3b417db151d14/Language/Mojito/Inference/SystemCT1999/SystemCT1999.hs
haskell
Type Inference for Overloading without Restrictions, Declarations or Annotations Based on Cardelli.hs. -------------------------------------------------------------------- main functions -------------------------------------------------------------------- Infers the typing of an expression in a context. This ...
# LANGUAGE GeneralizedNewtypeDeriving , FlexibleContexts # SystemCT from Camarao 1999 , module Language.Mojito.Inference.SystemCT1999.SystemCT1999 where import Data.List (groupBy, union, (\\)) import Data.Maybe (mapMaybe) import Data.Function (on) import Control.Monad.Except import Control.Monad.Identity import...
da7c7728f4f7baf6a0be5c5405eaca3e85b59ff9c6ad59730bb3c39849b15d19
WorksHub/client
views.cljs
(ns wh.views (:require ["smoothscroll-polyfill"] [clojure.walk :as walk] [reagent.core :as r] [wh.common.subs] [wh.components.banner :as banner] [wh.components.error.subs :as error-subs] [wh.components.error.views :refer [global-status-box]] ...
null
https://raw.githubusercontent.com/WorksHub/client/bfee3d5aced3ceb9d4f59a8fa7a4ac4226cd1726/client/src/wh/views.cljs
clojure
specify links on the menu that should be restricted
(ns wh.views (:require ["smoothscroll-polyfill"] [clojure.walk :as walk] [reagent.core :as r] [wh.common.subs] [wh.components.banner :as banner] [wh.components.error.subs :as error-subs] [wh.components.error.views :refer [global-status-box]] ...
faff5e98a0b09d5f8ec6c1a0bb639bb4d07f48796a79e8bbeee34d17016b029f
janestreet/core_kernel
color_256.mli
* Support for 256 - color handling on terminals / consoles . Note that the functions [ of_rgb6_exn ] and [ of_rgb6 ] return values within the 6x6x6 color - cube space , even though equivalent duplicates exist in the first 16 and last 24 colors ( a " best - fit - equivalent " function could be added ...
null
https://raw.githubusercontent.com/janestreet/core_kernel/b4746470fccd26e4bb7b021d25c6d54faa95a656/ansi_kernel/src/color_256.mli
ocaml
* Takes a color palette value and returns a triple of RGB integers in the closed interval [0,1000].
* Support for 256 - color handling on terminals / consoles . Note that the functions [ of_rgb6_exn ] and [ of_rgb6 ] return values within the 6x6x6 color - cube space , even though equivalent duplicates exist in the first 16 and last 24 colors ( a " best - fit - equivalent " function could be added ...
8909a1983ddfb83e24612a97efbaf6bbddcc12ad18ac594696e67ffed2a6f32c
mentat-collective/emmy
permute_test.cljc
#_"SPDX-License-Identifier: GPL-3.0" (ns emmy.util.permute-test (:require [clojure.test :refer [is deftest testing]] [clojure.test.check.generators :as gen] [com.gfredericks.test.chuck.clojure-test :refer [checking]] [emmy.generic :as g] [emmy.util.permute :as p])) (d...
null
https://raw.githubusercontent.com/mentat-collective/emmy/535b237a8e3fd7067b9c0ade8b2a4b3419f9f132/test/emmy/util/permute_test.cljc
clojure
#_"SPDX-License-Identifier: GPL-3.0" (ns emmy.util.permute-test (:require [clojure.test :refer [is deftest testing]] [clojure.test.check.generators :as gen] [com.gfredericks.test.chuck.clojure-test :refer [checking]] [emmy.generic :as g] [emmy.util.permute :as p])) (d...
4af195878ca5544bdcd9020817c9aba2325f2105604d2159270bf39e396ae3f4
tommaisey/aeon
prelude.scm
( negate 3 ) (define negate (lambda (n) (- n))) (define enum-from-difference-to (lambda (f i x k) (cond ((= i k) (list1 k)) ((f i k) nil) (else (cons i (enum-from-difference-to f (+ i x) x k)))))) ;; enumFromThenTo :: a -> a -> a -> [a] (define enum-from-then-to (lambda (i j k) ...
null
https://raw.githubusercontent.com/tommaisey/aeon/80744a7235425c47a061ec8324d923c53ebedf15/libs/third-party/sc3/rhs/src/prelude.scm
scheme
enumFromThenTo :: a -> a -> a -> [a] enumFromTo :: a -> a -> [a] even :: (Integral a) => a -> Bool (define even even?) odd :: (Integral a) => a -> Bool (define odd odd?) pred :: a -> a succ :: a -> a
( negate 3 ) (define negate (lambda (n) (- n))) (define enum-from-difference-to (lambda (f i x k) (cond ((= i k) (list1 k)) ((f i k) nil) (else (cons i (enum-from-difference-to f (+ i x) x k)))))) (define enum-from-then-to (lambda (i j k) (let ((x (- j i))) (enum-from-dif...
a1e6bdb3514cfe374d3fbc76322ef7d6f269fabe5b3ca7f126cb9b7131122de8
sebastiw/otc
otc_m2pa_codec_tests.erl
-module(otc_m2pa_codec_tests). -include_lib("eunit/include/eunit.hrl"). empty_user_data_test() -> Bin = <<16#01, 16#00, 16#0b, 16#01, 16#00, 16#00, 16#00, 16#10, 16#00, 16#00, 16#00, 16#01, 16#00, 16#00, 16#00, 16#00>>, Exp = #{backward_sequence_number => 1, forward_sequence_number => ...
null
https://raw.githubusercontent.com/sebastiw/otc/2ce29e3178152e2130572c6485f0ed52d5360416/test/otc_m2pa_codec_tests.erl
erlang
-module(otc_m2pa_codec_tests). -include_lib("eunit/include/eunit.hrl"). empty_user_data_test() -> Bin = <<16#01, 16#00, 16#0b, 16#01, 16#00, 16#00, 16#00, 16#10, 16#00, 16#00, 16#00, 16#01, 16#00, 16#00, 16#00, 16#00>>, Exp = #{backward_sequence_number => 1, forward_sequence_number => ...
44c811df5ef24c11fdd5909c95960ad572c7d541261a467c0389b002d8d4cb96
modular-macros/ocaml-macros
parsecmmaux.mli
(* Auxiliary functions for parsing *) val bind_ident: string -> Ident.t val find_ident: string -> Ident.t val unbind_ident: Ident.t -> unit type error = Unbound of string exception Error of error val report_error: error -> unit
null
https://raw.githubusercontent.com/modular-macros/ocaml-macros/05372c7248b5a7b1aa507b3c581f710380f17fcd/testsuite/tests/asmcomp/parsecmmaux.mli
ocaml
Auxiliary functions for parsing
val bind_ident: string -> Ident.t val find_ident: string -> Ident.t val unbind_ident: Ident.t -> unit type error = Unbound of string exception Error of error val report_error: error -> unit
9af62140603d8b9a3e537047ce455e92d98044401f63357ca40fcd21ef711dd1
kit-clj/kit
repl.clj
(ns kit.edge.utils.repl (:require [clojure.core.server :as socket] [clojure.tools.logging :as log] [integrant.core :as ig])) (defmethod ig/prep-key :repl/server [_ config] (merge {:name "main"} config)) (defmethod ig/init-key :repl/server [_ {:keys [port host name] :as config}] (try (socket/...
null
https://raw.githubusercontent.com/kit-clj/kit/320b920dcf25c33130f33b0e1cd55ff13f3157f6/libs/kit-repl/src/kit/edge/utils/repl.clj
clojure
(ns kit.edge.utils.repl (:require [clojure.core.server :as socket] [clojure.tools.logging :as log] [integrant.core :as ig])) (defmethod ig/prep-key :repl/server [_ config] (merge {:name "main"} config)) (defmethod ig/init-key :repl/server [_ {:keys [port host name] :as config}] (try (socket/...
fe8e78bb1c46361d12c754101f3b521657f3b59771161219d7d34ad39234b438
scymtym/clim.flamegraph
trace-recording.lisp
(cl:defpackage #:clim.flamegraph.examples.recording (:use #:cl) (:local-nicknames (#:model #:clim.flamegraph.model) (#:recording #:clim.flamegraph.recording)) (:export #:call-with-recording #:with-recording)) (cl:in-package #:clim.flamegraph.examples.recording) (defun call-with-recording (t...
null
https://raw.githubusercontent.com/scymtym/clim.flamegraph/03b5e4f08b53af86a98afa975a8e7a29d0ddd3a7/examples/trace-recording.lisp
lisp
:thread-test (lambda (thread) ...)
(cl:defpackage #:clim.flamegraph.examples.recording (:use #:cl) (:local-nicknames (#:model #:clim.flamegraph.model) (#:recording #:clim.flamegraph.recording)) (:export #:call-with-recording #:with-recording)) (cl:in-package #:clim.flamegraph.examples.recording) (defun call-with-recording (t...
23e588bf0ada1a70125b1747a9bc7f20742a053afc1041785c6ab7684eafcfcf
UU-ComputerScience/js-asteroids
data_export_plain.hs
import Language.UHC.JS.ECMA.String import Language.UHC.JS.Primitives import Language.UHC.JS.Assorted So this would be somewhat of a decent idea . The thing is , though , that we 'd still be doing runtime conversion . If we 're going to be stuck with that anyway , we might just as well just have a primitive JS f...
null
https://raw.githubusercontent.com/UU-ComputerScience/js-asteroids/b7015d8ad4aa57ff30f2631e0945462f6e1ef47a/uhc-js/tests/works/data_export_plain/data_export_plain.hs
haskell
The current problem is that we need to do something like this: main = do add' <- mkMath add let b = myBook add' ... where myBook add' = Book "" "" 1 "" add' but the current object export cannot deal with exporting functions. How do we fix this? Perhaps we need a mechanism similar to wrapper and dyna...
import Language.UHC.JS.ECMA.String import Language.UHC.JS.Primitives import Language.UHC.JS.Assorted So this would be somewhat of a decent idea . The thing is , though , that we 'd still be doing runtime conversion . If we 're going to be stuck with that anyway , we might just as well just have a primitive JS f...
30adad51bc694f20e284846f6ec85925c32fdd69e181fbb0ffb929fcfb72e5b3
glguy/advent2017
Day16.hs
# Language DataKinds , NumDecimals , ScopedTypeVariables , OverloadedStrings # | Module : Main Description : Day 16 solution Copyright : ( c ) , 2017 License : ISC Maintainer : Day 16 defines a language of renaming and permutations and asks us to iterate the program one billion times !...
null
https://raw.githubusercontent.com/glguy/advent2017/fed4592b076d255297dbddf2a183c70d6d0acfa4/execs/Day16.hs
haskell
$setup >>> :set -XDataKinds file can be overridden via command-line arguments. | Parse an input string as a dance. | Parse a single step in a dance. "abcd" >>> letterToInt <$> ['a'..'d'] [0,1,2,3] | A dance is a renaming of dancers and a permutation of their positions ^ renaming, permutation | Compute the ...
# Language DataKinds , NumDecimals , ScopedTypeVariables , OverloadedStrings # | Module : Main Description : Day 16 solution Copyright : ( c ) , 2017 License : ISC Maintainer : Day 16 defines a language of renaming and permutations and asks us to iterate the program one billion times !...
1388da149595a8ef7cff7dbadf7b12f9dd548ad36b6d84de1cdb73bdff3b4b74
diagrams/diagrams-lib
PolyTest.hs
# LANGUAGE NoMonomorphismRestriction # import Diagrams.Backend.Cairo.CmdLine import Diagrams.Prelude import Diagrams.TwoD.Polygons d = stroke . close $ fromVertices ( polyPoints with { polyStar = StarFun succ } ) vs = take 10 $ iterate (rotateBy (1/20 :: CircleFrac)) unitX mkR v = (...
null
https://raw.githubusercontent.com/diagrams/diagrams-lib/6f66ce6bd5aed81d8a1330c143ea012724dbac3c/test/PolyTest.hs
haskell
# LANGUAGE NoMonomorphismRestriction # import Diagrams.Backend.Cairo.CmdLine import Diagrams.Prelude import Diagrams.TwoD.Polygons d = stroke . close $ fromVertices ( polyPoints with { polyStar = StarFun succ } ) vs = take 10 $ iterate (rotateBy (1/20 :: CircleFrac)) unitX mkR v = (...
7d614c588393b8c84e754c74348ed74b0c52af5dfa6958bab90f839d736ea877
Cumulus/Cumulus
templates_common.mli
Copyright ( c ) 2012 Permission is hereby granted , free of charge , to any person obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without restriction , including without limitation the rights to use , copy , modify , merge , publish , dis...
null
https://raw.githubusercontent.com/Cumulus/Cumulus/3b6de05d76c57d528e052aa382f98e40354cf581/src/templates_common.mli
ocaml
Copyright ( c ) 2012 Permission is hereby granted , free of charge , to any person obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without restriction , including without limitation the rights to use , copy , modify , merge , publish , dis...
2ba82b8183129a1727642515275a09b7ba762e0f4e01c80518cbdcc73d7b34f6
DavidAlphaFox/RabbitMQ
rabbit_heartbeat.erl
The contents of this file are subject to the Mozilla Public License %% Version 1.1 (the "License"); you may not use this file except in %% compliance with the License. You may obtain a copy of the License %% at / %% Software distributed under the License is distributed on an " AS IS " %% basis, WITHOUT WARRANTY OF ...
null
https://raw.githubusercontent.com/DavidAlphaFox/RabbitMQ/0a64e6f0464a9a4ce85c6baa52fb1c584689f49a/src/rabbit_heartbeat.erl
erlang
Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at / basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. 通过一个进程不断获取Socke...
The contents of this file are subject to the Mozilla Public License Software distributed under the License is distributed on an " AS IS " The Original Code is RabbitMQ . The Initial Developer of the Original Code is GoPivotal , Inc. Copyright ( c ) 2007 - 2014 GoPivotal , Inc. All rights reserved . -module(...
736afc4b35af80302ce23d8c3614678f964668b4145d6ebcc1ea794ce5fa50a5
soegaard/remacs
status-line.rkt
#lang racket/base (provide status-line-hook status-line-time status-line-coloring-time status-line-command-time status-line-render-time status-line-show-paren-time) ;;; ;;; STATUS LINE ;;; ; Each frame (GUI window) has a status line - a horizontal line at ; the bottom of th...
null
https://raw.githubusercontent.com/soegaard/remacs/8681b3acfe93335e2bc2133c6f144af9e0a1289e/status-line.rkt
racket
STATUS LINE Each frame (GUI window) has a status line - a horizontal line at the bottom of the frame (under the displayed buffer). The status line is used to display information on the current buffer. The default information displayed is: - name of the current buffer - the row and column of the point -...
#lang racket/base (provide status-line-hook status-line-time status-line-coloring-time status-line-command-time status-line-render-time status-line-show-paren-time) (require racket/format "buffer-locals.rkt" "mark.rkt" "mode.rkt" "param...
28093c26c23008476dca46a1b7f0cca7925418eb0066384695e0883488fa2d88
haskell/ghcide
Main.hs
Copyright ( c ) 2019 The DAML Authors . All rights reserved . SPDX - License - Identifier : Apache-2.0 GHC no longer exports def in GHC 8.6 and above # LANGUAGE TemplateHaskell # module Main(main) where import Arguments import Control.Concurrent.Extra import Control.Monad.Extra import Control.Lens ( (^.) ) impo...
null
https://raw.githubusercontent.com/haskell/ghcide/3ef4ef99c4b9cde867d29180c32586947df64b9e/exe/Main.hs
haskell
WARNING: If you write to stdout before runLanguageServer then the language server will not work see WARNING above lock to avoid overlapping output on stdout install the main and ghcide-plugin rules install the kick action, which triggers a typecheck on every Shake database restart, i.e. on every user e...
Copyright ( c ) 2019 The DAML Authors . All rights reserved . SPDX - License - Identifier : Apache-2.0 GHC no longer exports def in GHC 8.6 and above # LANGUAGE TemplateHaskell # module Main(main) where import Arguments import Control.Concurrent.Extra import Control.Monad.Extra import Control.Lens ( (^.) ) impo...
c4aebd71e19e8dcd9aee13203ec6fa73cab67bcf0e7ceeee6cd34f4d66b7f6e2
rmculpepper/crypto
digest.rkt
Copyright 2018 ;; ;; This library is free software: you can redistribute it and/or modify ;; it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation , either version 3 of the License , or ;; (at your option) any later version. ;; ;; This library is distributed in...
null
https://raw.githubusercontent.com/rmculpepper/crypto/fec745e8af7e3f4d5eaf83407dde2817de4c2eb0/crypto-lib/private/sodium/digest.rkt
racket
This library is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCH...
Copyright 2018 by 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 #lang racket/base (require racket/class ffi/unsafe "../common/digest.rkt" ...
6b58e4fd4ad12178277b01204d52a9b9eeb32220733a189ab17ed576ae4e4fb6
FranklinChen/hugs98-plus-Sep2006
WASHFlags.hs
module WASHFlags where -- flags0 = FLAGS { generateBT = False } data FLAGS = FLAGS { generateBT :: Bool }
null
https://raw.githubusercontent.com/FranklinChen/hugs98-plus-Sep2006/54ab69bd6313adbbed1d790b46aca2a0305ea67e/packages/Cabal/tests/wash2hs/hs/WASHFlags.hs
haskell
module WASHFlags where flags0 = FLAGS { generateBT = False } data FLAGS = FLAGS { generateBT :: Bool }
a8c2056ae2c3e1eb51890f2b70f3138f6dfed82e3c89242700eef049b0b635bd
wlitwin/graphv
graphv_anim.ml
module Ease = Ease type repeat = | Count of int | Infinite type direction = | Forward | Mirror of direction | Backward (* TODO - maybe give info about repeats *) type reason = | Done | Canceled type kind = Serial of bool * anim list | Parallel of bool * anim list | Le...
null
https://raw.githubusercontent.com/wlitwin/graphv/1416fe1daaedc411e8b54e5458d6005d2d3678b5/graphv_anim/lib/graphv_anim.ml
ocaml
TODO - maybe give info about repeats option Propagate our repeat to children if not none We repeat if our child is not infinite or we are infinite no +. dt because we add it later should go after to do updates in the proper order c :: t.active;
module Ease = Ease type repeat = | Count of int | Infinite type direction = | Forward | Mirror of direction | Backward type reason = | Done | Canceled type kind = Serial of bool * anim list | Parallel of bool * anim list | Leaf and anim = { delay : float; rep...
4620ff5944eee664c421cc903c2685876b4bc879c0c9dab62a5e09e343386137
Incubaid/baardskeerder
baardskeerder.ml
* This file is part of Baardskeerder . * * Copyright ( C ) 2011 Incubaid BVBA * * Baardskeerder 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 , o...
null
https://raw.githubusercontent.com/Incubaid/baardskeerder/3975cb7f0e92e1f35eeab17beeb906344e43dae0/src/baardskeerder.ml
ocaml
* This file is part of Baardskeerder . * * Copyright ( C ) 2011 Incubaid BVBA * * Baardskeerder 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 , o...
f728222059422dcc3f20b6b3e1f3425865cd125bb6608c409dad798bcc539b4f
tfausak/json-feed
JsonFeed.hs
# LANGUAGE DeriveGeneric # -- | <> module JsonFeed ( parseFeed, renderFeed, -- * Types Feed (..), Author (..), Item (..), Attachment (..), Hub (..), -- * Wrappers Html (..), Mime (..), Url (..), ) where import Data.Aeson (FromJSON, ToJSON, Value) import qualified Data...
null
https://raw.githubusercontent.com/tfausak/json-feed/7a2f5a2d672cbf208703ae15d40f568671ebb67f/source/library/JsonFeed.hs
haskell
| <> * Types * Wrappers | The feed author. The author object has several members. These are all - but if you provide an author object , then at least one is required. | Provides more detail, beyond the title, on what the feed is about. A feed reader may display this text. | Says whether or not the feed is finis...
# LANGUAGE DeriveGeneric # module JsonFeed ( parseFeed, renderFeed, Feed (..), Author (..), Item (..), Attachment (..), Hub (..), Html (..), Mime (..), Url (..), ) where import Data.Aeson (FromJSON, ToJSON, Value) import qualified Data.Aeson as Json (eitherDecode, encode) imp...
303ad9ce0a7a039c8bde55255c0f6fde29225a97d9642f51c52d75970ff75347
brendanhay/semver
SemVer.hs
-- | -- Module : Data.SemVer Copyright : ( c ) 2014 - 2020 < > License : This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . A copy of the MPL can be found in the LICENSE file or -- you can obtain it at /. Maintainer ...
null
https://raw.githubusercontent.com/brendanhay/semver/7bc42dd298e0d98e119486ceab4f74042d46b004/lib/Data/SemVer.hs
haskell
| Module : Data.SemVer you can obtain it at /. Stability : experimental <>. A canonical 'Version' type and functions representing behaviour as outlined in the specification are defined alongside additional lenses, traversals, common manipulations, and serialisation primitives. * Version ...
Copyright : ( c ) 2014 - 2020 < > License : This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . A copy of the MPL can be found in the LICENSE file or Maintainer : < > Portability : non - portable ( GHC extensions ) An implement...
d9339567fa43f699071dbefedf28c50ff4954dac8bcd0ad4fcf0539bb7750e85
serokell/tztime
Tree.hs
SPDX - FileCopyrightText : 2022 > -- SPDX - License - Identifier : MPL-2.0 # OPTIONS_GHC -Wno - missing - kind - signatures # # OPTIONS_GHC -F -pgmF tasty - discover -optF --tree - display --generated - module -optF Tree #
null
https://raw.githubusercontent.com/serokell/tztime/d2f7bcffb2be491c04c9e41086bc2918bf2485d6/test/Tree.hs
haskell
tree - display --generated - module -optF Tree #
SPDX - FileCopyrightText : 2022 > SPDX - License - Identifier : MPL-2.0 # OPTIONS_GHC -Wno - missing - kind - signatures #
87e5b9deb36f6267fad83ac4c1d7bef97b0c397e4a781e26b836c325c81d2bc9
cedlemo/OCaml-GI-ctypes-bindings-generator
Progress_bar_private.ml
open Ctypes open Foreign type t let t_typ : t structure typ = structure "Progress_bar_private"
null
https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gtk3/Progress_bar_private.ml
ocaml
open Ctypes open Foreign type t let t_typ : t structure typ = structure "Progress_bar_private"
fb6c34e4c7aa1945b532701d0dbcabb621453822e2439c58537e41a88b77c19f
open-company/open-company-web
media_video_modal.cljs
(ns oc.web.components.ui.media-video-modal (:require [rum.core :as rum] [cuerdas.core :as string] [org.martinklepsch.derivatives :as drv] [dommy.core :as dommy :refer-macros (sel1)] [oc.web.dispatcher :as dis] [oc.web.lib.utils :as utils] [oc.web...
null
https://raw.githubusercontent.com/open-company/open-company-web/dfce3dd9bc115df91003179bceb87cca1f84b6cf/src/main/oc/web/components/ui/media_video_modal.cljs
clojure
Increment the retry count Add the video without thumbnail Locals Derivatives
(ns oc.web.components.ui.media-video-modal (:require [rum.core :as rum] [cuerdas.core :as string] [org.martinklepsch.derivatives :as drv] [dommy.core :as dommy :refer-macros (sel1)] [oc.web.dispatcher :as dis] [oc.web.lib.utils :as utils] [oc.web...
636a17266d35565dc8d9b00fe518c78019042f720ac593cf15772e0fadc3ea2a
tnelson/Forge
error-test-paren.rkt
#lang forge --$ (pre-declare-sig A) --$ (declare-sig A) --$ (pred p (some (join A A))) --$ (run "foo" (p))
null
https://raw.githubusercontent.com/tnelson/Forge/1687cba0ebdb598c29c51845d43c98a459d0588f/forge/examples/errors/error-test-paren.rkt
racket
#lang forge --$ (pre-declare-sig A) --$ (declare-sig A) --$ (pred p (some (join A A))) --$ (run "foo" (p))
e68c6c4efc13c57cfaf3a51390457fabd0c114209527488e70a5863d058cac92
NorfairKing/smos
TestImport.hs
module TestImport ( module X, ) where import Control.Monad as X import Data.ByteString as X (ByteString) import Data.GenValidity as X import Data.GenValidity.Containers as X () import Data.GenValidity.HashMap as X () import Data.GenValidity.Text as X () import Data.GenValidity.Time as X () import Data.Maybe as X i...
null
https://raw.githubusercontent.com/NorfairKing/smos/f72b26c2e66ab4f3ec879a1bedc6c0e8eeb18a01/smos/test/TestImport.hs
haskell
module TestImport ( module X, ) where import Control.Monad as X import Data.ByteString as X (ByteString) import Data.GenValidity as X import Data.GenValidity.Containers as X () import Data.GenValidity.HashMap as X () import Data.GenValidity.Text as X () import Data.GenValidity.Time as X () import Data.Maybe as X i...
3c1c1ca592c9fb22c70170cada463eaaf9a32c6082f6f0eb559cac26f821fc54
rtoy/cmucl
boot4.lisp
(in-package "VM") Add some new constants for the Sparc backend . #+sparc (progn (defconstant fixnum-tag-bits (1- lowtag-bits) "Number of tag bits used for a fixnum") (defconstant fixnum-tag-mask (1- (ash 1 fixnum-tag-bits)) "Mask to get the fixnum tag") (defconstant positive-fixnum-bits (- word-bits ...
null
https://raw.githubusercontent.com/rtoy/cmucl/9b1abca53598f03a5b39ded4185471a5b8777dea/src/bootfiles/18c/boot4.lisp
lisp
(in-package "VM") Add some new constants for the Sparc backend . #+sparc (progn (defconstant fixnum-tag-bits (1- lowtag-bits) "Number of tag bits used for a fixnum") (defconstant fixnum-tag-mask (1- (ash 1 fixnum-tag-bits)) "Mask to get the fixnum tag") (defconstant positive-fixnum-bits (- word-bits ...
772cc633a1868502f60916f3fdd5f1e71b5692d19322d7338805f10ab024c918
freckle/stackctl
Core.hs
module Stackctl.AWS.Core ( AwsEnv , HasAwsEnv(..) , awsEnvDiscover , awsSimple , awsSend , awsPaginate , awsAwait , awsAssumeRole -- * Modifiers on 'AwsEnv' , awsWithin , awsTimeout -- * 'Amazonka' extensions , AccountId(..) -- * 'Amazonka'/'ResourceT' re-exports , Region(..) , FromTe...
null
https://raw.githubusercontent.com/freckle/stackctl/b6673a6fcfefb1be5a034e23a74c4c88c0fb8eeb/src/Stackctl/AWS/Core.hs
haskell
* Modifiers on 'AwsEnv' * 'Amazonka' extensions * 'Amazonka'/'ResourceT' re-exports ^ Session name ^ Action to run as the assumed role
module Stackctl.AWS.Core ( AwsEnv , HasAwsEnv(..) , awsEnvDiscover , awsSimple , awsSend , awsPaginate , awsAwait , awsAssumeRole , awsWithin , awsTimeout , AccountId(..) , Region(..) , FromText(..) , ToText(..) , MonadResource ) where import Stackctl.Prelude hiding (timeout) import...
75303e5ac586681cb4d87d1adee5cb4b47831ec720d8a88d7fa32cd55ecaaa1a
lazy-cat-io/metaverse
electron.cljs
(ns metaverse.runner.electron (:require ["electron" :refer [app dialog screen shell nativeImage crashReporter globalShortcut safeStorage ipcMain ipcRenderer contextBridge] :rename {BrowserWindow browserWindow ipcRenderer ipcRenderer Menu menu ...
null
https://raw.githubusercontent.com/lazy-cat-io/metaverse/2e5754967ac0e4219197da3ff6937b666d2d26fa/src/main/clojure/metaverse/runner/electron.cljs
clojure
(ns metaverse.runner.electron (:require ["electron" :refer [app dialog screen shell nativeImage crashReporter globalShortcut safeStorage ipcMain ipcRenderer contextBridge] :rename {BrowserWindow browserWindow ipcRenderer ipcRenderer Menu menu ...
0fee276eafc6b6f71b2ec28ef1b01f0f09db1895a4747f0cbed23338f77058a8
camlp5/camlp5
reloc.mli
(* camlp5r *) (* reloc.mli,v *) Copyright ( c ) INRIA 2007 - 2017 val expr : (MLast.loc -> MLast.loc) -> int -> MLast.expr -> MLast.expr;; val longid : (MLast.loc -> MLast.loc) -> int -> MLast.longid -> MLast.longid;; val longid_lident : (MLast.loc -> MLast.loc) -> int -> MLast.longid_lident -> MLast.longid_li...
null
https://raw.githubusercontent.com/camlp5/camlp5/15e03f56f55b2856dafe7dd3ca232799069f5dda/ocaml_src/main/reloc.mli
ocaml
camlp5r reloc.mli,v Equality over syntax trees
Copyright ( c ) INRIA 2007 - 2017 val expr : (MLast.loc -> MLast.loc) -> int -> MLast.expr -> MLast.expr;; val longid : (MLast.loc -> MLast.loc) -> int -> MLast.longid -> MLast.longid;; val longid_lident : (MLast.loc -> MLast.loc) -> int -> MLast.longid_lident -> MLast.longid_lident;; val patt : (MLast.loc -> ...
a8bd578a9636b65de280ce2f28c897e7fb7f1a9b3c8507c960f92b7af6b9652d
ontodev/howl
project.clj
(def project-version "0.3.0-SNAPSHOT") (defproject howl project-version :description "Tools for processing HOWL format" :url "" :license {:name "Simplified BSD License" :url "-2-Clause"} :dependencies [[org.clojure/clojure "1.7.0"] [org.clojure/clojurescript "1.8.40"] ...
null
https://raw.githubusercontent.com/ontodev/howl/0880c903a0f603324309153586f720860d1e7d89/project.clj
clojure
(def project-version "0.3.0-SNAPSHOT") (defproject howl project-version :description "Tools for processing HOWL format" :url "" :license {:name "Simplified BSD License" :url "-2-Clause"} :dependencies [[org.clojure/clojure "1.7.0"] [org.clojure/clojurescript "1.8.40"] ...
4e533afd1e2fc7e3d6e26b2e972a691bce643af73fa4db52a4570382d1cbb46f
TrustInSoft/tis-interpreter
eval_behaviors.ml
Modified by TrustInSoft (**************************************************************************) (* *) This file is part of Frama - C. (* ...
null
https://raw.githubusercontent.com/TrustInSoft/tis-interpreter/33132ce4a825494ea48bf2dd6fd03a56b62cc5c3/src/plugins/value/legacy/eval_behaviors.ml
ocaml
************************************************************************ alternatives) ...
Modified by TrustInSoft This file is part of Frama - C. Copyright ( C ) 2007 - 2015 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Softwa...
805069618c2ca4952aee66e951ea4d00c18556bfd61ecc052e410cdd3c161a20
YoshikuniJujo/test_haskell
TryHuman.hs
# LANGUAGE BlockArguments # {-# LANGUAGE ScopedTypeVariables, AllowAmbiguousTypes #-} # OPTIONS_GHC -Wall -fno - warn - tabs # module TryHuman where import Control.Monad.ST import Control.Exception import Human catchAndShow :: forall e . Exception e => IO () -> IO () catchAndShow act = act `catch` \(e :: e) -> putS...
null
https://raw.githubusercontent.com/YoshikuniJujo/test_haskell/7cbaf8985a94fdc090119287baa530f237af44b9/tribial/try-use-c-lib/src/TryHuman.hs
haskell
# LANGUAGE ScopedTypeVariables, AllowAmbiguousTypes #
# LANGUAGE BlockArguments # # OPTIONS_GHC -Wall -fno - warn - tabs # module TryHuman where import Control.Monad.ST import Control.Exception import Human catchAndShow :: forall e . Exception e => IO () -> IO () catchAndShow act = act `catch` \(e :: e) -> putStrLn "CATCHED" >> print e image1 :: Image image1 = runST ...
39669b47076f49c9825b01dc3e9ef621da3710bda183455e9aeedacf47732f58
status-im/status-electron
contacts.cljs
(ns status-desktop-front.override.contacts (:require [re-frame.core :as re-frame] [status-im.utils.js-resources :as js-res] [status-im.ui.screens.contacts.events :as contacts.events] [status-desktop-front.storage :as storage] [status-im.utils.handlers :as handlers])) ;;...
null
https://raw.githubusercontent.com/status-im/status-electron/aad18c34c0ee0304071e984f21d5622735ec5bef/src_front/status_desktop_front/override/contacts.cljs
clojure
COFX (contacts/delete contact))) Handlers
(ns status-desktop-front.override.contacts (:require [re-frame.core :as re-frame] [status-im.utils.js-resources :as js-res] [status-im.ui.screens.contacts.events :as contacts.events] [status-desktop-front.storage :as storage] [status-im.utils.handlers :as handlers])) (...
72195d0ee184e6da07ad9b304389ebc804a08fd9878c8e8318331f145c4081ac
brendanhay/text-manipulate
Types.hs
# LANGUAGE MagicHash # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ViewPatterns # -- Module : Data.Text.Manipulate.Internal.Types Copyright : ( c ) 2014 - 2022 < > License : This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . A co...
null
https://raw.githubusercontent.com/brendanhay/text-manipulate/5b21510103a069537ad7b0f3a5b377f7cdb49d2b/lib/Data/Text/Manipulate/Internal/Types.hs
haskell
# LANGUAGE OverloadedStrings # Module : Data.Text.Manipulate.Internal.Types you can obtain it at /. Stability : experimental | Returns 'True' for any boundary or uppercase character. | Returns 'True' for any boundary character. # NOINLINE [0] ordinal # # SPECIALIZE decimal :: Int -> Builder # ...
# LANGUAGE MagicHash # # LANGUAGE ViewPatterns # Copyright : ( c ) 2014 - 2022 < > License : This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . A copy of the MPL can be found in the LICENSE file or Maintainer : < > Portability ...
b186ac08af0404d82b3456fe5e87e27e0e8cea10c2a8eb595ff188f24ecde0cb
blindglobe/clocc
mchoices.lisp
-*- Mode : Lisp ; Package : CLIO - OPEN ; ; Lowercase : T ; Fonts:(CPTFONT ) ; Syntax : Common - Lisp -*- ;;;----------------------------------------------------------------------------------+ ;;; | ;;; TEXAS ...
null
https://raw.githubusercontent.com/blindglobe/clocc/a50bb75edb01039b282cf320e4505122a59c59a7/src/gui/clue/clio/mchoices.lisp
lisp
Package : CLIO - OPEN ; ; Lowercase : T ; Fonts:(CPTFONT ) ; Syntax : Common - Lisp -*- ----------------------------------------------------------------------------------+ | TEXAS INSTRUMENTS INCORPORATED ...
, TEXAS 78714 | Copyright ( C ) 1989 , 1990 Texas Instruments Incorporated . | Texas Instruments Incorporated provides this software " as is " without express or | (in-package "CLIO-OPEN") (EXPORT '( choice-default c...
48bec6d707f0c1166808d007d5706295b2f79db93958d0d4a6b8bfcaca43227d
8c6794b6/haskell-sc-scratch
Take06.hs
# LANGUAGE NoMonomorphismRestriction # {-# LANGUAGE GADTs #-} {-# LANGUAGE Rank2Types #-} # LANGUAGE TypeFamilies # | Module : $ Header$ CopyRight : ( c ) 8c6794b6 License : : Stability : unstable Portability : non - portable To deserialize lambda expression , take 6 . Module ...
null
https://raw.githubusercontent.com/8c6794b6/haskell-sc-scratch/22de2199359fa56f256b544609cd6513b5e40f43/Scratch/Oleg/TTF/Extra/Take06.hs
haskell
# LANGUAGE GADTs # # LANGUAGE Rank2Types # instance Variables () where type Value () = () type Value (t,g) = t VZ -> return $ v VZ lookupVE v' g (VZ,t) -> return t (VS v,ts) -> lookupR v ts Variable a -> a _ -> error $ "Unbound variable: " ++ show x -------------------------...
# LANGUAGE NoMonomorphismRestriction # # LANGUAGE TypeFamilies # | Module : $ Header$ CopyRight : ( c ) 8c6794b6 License : : Stability : unstable Portability : non - portable To deserialize lambda expression , take 6 . Module : $Header$ CopyRight : (c) 8c6794b6 License ...
579718580405f1c1857d994803d2c2e9cbcf827ce6b209127b27345d9969c7b9
TrustInSoft/tis-interpreter
slicingProject.ml
Modified by TrustInSoft (**************************************************************************) (* *) This file is part of Frama - C. (* ...
null
https://raw.githubusercontent.com/TrustInSoft/tis-interpreter/33132ce4a825494ea48bf2dd6fd03a56b62cc5c3/src/plugins/slicing/slicingProject.ml
ocaml
************************************************************************ alternatives) ...
Modified by TrustInSoft This file is part of Frama - C. Copyright ( C ) 2007 - 2015 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Softwa...
65632bb764ae4d495acde3884214f9f6513268418392ce432c0c6716b4b44bc5
ucsd-progsys/nate
ocamlbuild_executor.ml
(***********************************************************************) (* ocamlbuild *) (* *) , , projet Gallium , INRIA Rocquencourt (* ...
null
https://raw.githubusercontent.com/ucsd-progsys/nate/8b1267cd8b10283d8bc239d16a28c654a4cb8942/eval/sherrloc/easyocaml%2B%2B/ocamlbuild/ocamlbuild_executor.ml
ocaml
********************************************************************* ocamlbuild ...
, , projet Gallium , INRIA Rocquencourt Copyright 2007 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ I d : ocamlbuild_executor.ml , v 1.1.2.3 2007/11/2...
f41f30b5c49bb1ec45987e7be661a284745f9fdef5ba4a9f8600ded3800c3432
danielmiladinov/joy-of-clojure
macros_changing_forms.clj
;; Using macros to change forms ;; --------------------------------------------------------------------------------------------------------------------- One way to design macros is to start by writing out example code that you wish worked -- code that has the minimal ;; distance between what you must specify and the ...
null
https://raw.githubusercontent.com/danielmiladinov/joy-of-clojure/cad7d1851e153beb12a2cd536eb467be12cb7a73/src/joy-of-clojure/chapter8/macros_changing_forms.clj
clojure
Using macros to change forms --------------------------------------------------------------------------------------------------------------------- distance between what you must specify and the specific application domain in which you're working. Then, with the goal of making this code work, you begin writing macro...
One way to design macros is to start by writing out example code that you wish worked -- code that has the minimal * to write macros that perform the steps to get from this simple representation to the one more conducive to processing . The outline form can be rendered in a Clojure form , assuming the ex...
74d630e1eb62e83127ad2ac4354185b581b4c670e68bceeea74ae8052d58c169
dparis/gen-phzr
load_texture.cljs
(ns phzr.impl.accessors.component.load-texture) (def load-texture-get-properties {:frame "frame" :frame-name "frameName"}) (def load-texture-set-properties {:frame "frame" :frame-name "frameName"})
null
https://raw.githubusercontent.com/dparis/gen-phzr/e4c7b272e225ac343718dc15fc84f5f0dce68023/out/impl/accessors/component/load_texture.cljs
clojure
(ns phzr.impl.accessors.component.load-texture) (def load-texture-get-properties {:frame "frame" :frame-name "frameName"}) (def load-texture-set-properties {:frame "frame" :frame-name "frameName"})
6681b6e6be1b571bbda934c8f5fde980c168160f2800e61fccdcb213073222ca
zwizwa/staapl
asm.rkt
#lang racket/base (require "tools.rkt") (require/provide "op.rkt" "asm/operand.rkt" "asm/assembler.rkt" "asm/dasm.rkt" "asm/directives.rkt" "asm/pointers.rkt" "asm/instruction-set.rkt") ;; highlevel language for instruction set definition ;; (loading "asm")
null
https://raw.githubusercontent.com/zwizwa/staapl/e30e6ae6ac45de7141b97ad3cebf9b5a51bcda52/asm.rkt
racket
highlevel language for instruction set definition (loading "asm")
#lang racket/base (require "tools.rkt") (require/provide "op.rkt" "asm/operand.rkt" "asm/assembler.rkt" "asm/dasm.rkt" "asm/directives.rkt" "asm/pointers.rkt"
64f469719090861e094d093aa31fa4b75605ddb1df8c495ed4fe06cee5c37994
mgree/smoosh
runtest.ml
let main () = let results = [Test_arith.run_tests (); Test_path.run_tests (); Test_expansion.run_tests (); Test_evaluation.run_tests ()] in let exit_code = List.length (List.filter not results) in exit exit_code;; main ()
null
https://raw.githubusercontent.com/mgree/smoosh/84b1ff86f59573a2e4fd7e23edfa0cf9fdb45db9/src/runtest.ml
ocaml
let main () = let results = [Test_arith.run_tests (); Test_path.run_tests (); Test_expansion.run_tests (); Test_evaluation.run_tests ()] in let exit_code = List.length (List.filter not results) in exit exit_code;; main ()
ba091228fcb40fe81e6fcd90ab1964edb349839b11263f270189e983af53a59f
VERIMAG-Polyhedra/VPL
demo_vplcoq.ml
ML source file of an exectuable running the examples of DemoPLTests.v ( in directory coq/ ) the examples of DemoPLTests.v (in directory coq/) *) open Vpl;; open CertcheckerConfig;; open Debugging;; Printf.printf "*** run tests generated from Coq...\n";; OraclePattern.Debug.enable ; MInput ; MOutput ; N...
null
https://raw.githubusercontent.com/VERIMAG-Polyhedra/VPL/cd78d6e7d120508fd5a694bdb01300477e5646f8/test/demo_vplcoq.ml
ocaml
Debug.enable();; Debug.print_enable();; Debug.set_colors();; * options (fixées en dur !) * Déclaration de variables * Execution des tests *
ML source file of an exectuable running the examples of DemoPLTests.v ( in directory coq/ ) the examples of DemoPLTests.v (in directory coq/) *) open Vpl;; open CertcheckerConfig;; open Debugging;; Printf.printf "*** run tests generated from Coq...\n";; OraclePattern.Debug.enable ; MInput ; MOutput ; N...
0bf23d2ebea9cb8bad91672bc3a2c880e48caf779b3e303a12aec47cef7adcdf
hdima/erlport
ruby19_tests.erl
Copyright ( c ) 2009 - 2015 , < > %%% 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...
null
https://raw.githubusercontent.com/hdima/erlport/246b7722d62b87b48be66d9a871509a537728962/test/ruby1.9/ruby19_tests.erl
erlang
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. * Redistribution...
Copyright ( c ) 2009 - 2015 , < > 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 HOLDER OR LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , E...
b38a44656402b47c873b1a55062b71fbaea7531bd83788a8e14de51b30c1f0f3
hyperfiddle/electric
match.clj
(ns dustin.y2020.match (:require [hyperfiddle.rcf :refer [tests]])) (defn form? [x] (and (seq? x) ; yep, i bet you're surprised (not (empty? x)))) (tests (form? '(list)) := true (form? '#()) := true (form? '()) := false (form? 1) := false (form? {}) := false (form? []) := false) (defmacro matc...
null
https://raw.githubusercontent.com/hyperfiddle/electric/1c6c3891cbf13123fef8d33e6555d300f0dac134/scratch/dustin/y2020/match.clj
clojure
yep, i bet you're surprised todo if you add a helper for inspecting the type/tag for a value you get something like pattern matching (this matches the lambda calculus structure we went into before) (the let part is like a continuation that reads things out of the topic value)
(ns dustin.y2020.match (:require [hyperfiddle.rcf :refer [tests]])) (defn form? [x] (not (empty? x)))) (tests (form? '(list)) := true (form? '#()) := true (form? '()) := false (form? 1) := false (form? {}) := false (form? []) := false) (defmacro match [& xs] (letfn [(matcher? [x] (a...
1905457dedc3fe70d43eaea78db90ddfbf590874eaac06ec2675bcf2210315f8
pixlsus/registry.gimp.org_static
JMS-Grid_TwoTonedShapes.scm
;; *************************************************************************** * Copyright ( C ) 2011 by * ;; * * ;; * * ;; * This program is free software; you can redistribute it ...
null
https://raw.githubusercontent.com/pixlsus/registry.gimp.org_static/ffcde7400f402728373ff6579947c6ffe87d1a5e/registry.gimp.org/files/JMS-Grid_TwoTonedShapes.scm
scheme
*************************************************************************** * * * * * This program is free software; you can redistribute it and/or modify * either version 2 of the Lice...
* Copyright ( C ) 2011 by * * it under the terms of the GNU General Public License as published by * * You should have received a copy of the GNU General Public License * * Free Software Foundation , Inc. , * * 59 Temple Place - Suit...
60c6255632ec63e597fe6d917787d70f5905fd563faccd2b9d3e8571d1678943
ocaml-flambda/flambda-backend
downwards_acc.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocaml-flambda/flambda-backend/92dbdba868235321a48916b8f1bb3f04ee884d3f/middle_end/flambda2/simplify/env/downwards_acc.ml
ocaml
************************************************************************ OCaml ...
, OCamlPro and , Copyright 2014 - -2019 Jane Street Group LLC the GNU Lesser General Public License version 2.1 , with the module CUE = Continuation_uses_env module DE = Downwards_env module ...
856aa9f3c074a905c4f85193b7a11b56b517225eaec018f370763a662095ff42
inhabitedtype/ocaml-aws
deleteInventory.mli
open Types type input = DeleteInventoryRequest.t type output = DeleteInventoryResult.t type error = Errors_internal.t include Aws.Call with type input := input and type output := output and type error := error
null
https://raw.githubusercontent.com/inhabitedtype/ocaml-aws/3bc554af7ae7ef9e2dcea44a1b72c9e687435fa9/libraries/ssm/lib/deleteInventory.mli
ocaml
open Types type input = DeleteInventoryRequest.t type output = DeleteInventoryResult.t type error = Errors_internal.t include Aws.Call with type input := input and type output := output and type error := error
c9445c2ecf13e16f5a9cbe2d5aad5561b12d1e754c5ff006734adf8c4c112acf
static-analysis-engineering/codehawk
jCHTemplateUtil.ml
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Java Analyzer Author : ------------------------------------------------------------------------------ The MIT License ( MIT ) Copy...
null
https://raw.githubusercontent.com/static-analysis-engineering/codehawk/98ced4d5e6d7989575092df232759afc2cb851f6/CodeHawk/CHJ/jchpre/jCHTemplateUtil.ml
ocaml
chutil jchlib jchpre
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Java Analyzer Author : ------------------------------------------------------------------------------ The MIT License ( MIT ) Copy...
cd0b2426518b45aea8d61033262cbcccd8dd3e7d2c89e574df2fade2df2563fe
callum-oakley/advent-of-code
17.clj
(ns aoc.2018.17 (:require [aoc.vector :refer [+v -v]] [clojure.test :refer [deftest is]]) (:import clojure.lang.PersistentQueue)) (defn parse [s] (->> (re-seq #"(x|y)=(\d+), (x|y)=(\d+)\.\.(\d+)" s) (map #(map read-string (rest %))) (reduce (fn [clay [axis-a a axis-b b0 b1]] ...
null
https://raw.githubusercontent.com/callum-oakley/advent-of-code/c8d9d912471415b0014707f768946b18f29b4531/src/aoc/2018/17.clj
clojure
(ns aoc.2018.17 (:require [aoc.vector :refer [+v -v]] [clojure.test :refer [deftest is]]) (:import clojure.lang.PersistentQueue)) (defn parse [s] (->> (re-seq #"(x|y)=(\d+), (x|y)=(\d+)\.\.(\d+)" s) (map #(map read-string (rest %))) (reduce (fn [clay [axis-a a axis-b b0 b1]] ...
620a566784649f2de79079db8c35dc0d7db9c9ab54cc202fe9956abafd1e5216
theodormoroianu/SecondYearCourses
Parsing.hs
module Parsing where import Data.Char import Data.List (intercalate) import Control.Applicative newtype Parser a = Parser { apply :: String -> [(a, String)] } satisfy :: (Char -> Bool) -> Parser Char satisfy p = Parser f where f [] = [] f (c:s) | p c = [(c, s)] | otherwise = []...
null
https://raw.githubusercontent.com/theodormoroianu/SecondYearCourses/99185b0e97119135e7301c2c7be0f07ae7258006/Haskell/l/lab12/Parsing.hs
haskell
module Parsing where import Data.Char import Data.List (intercalate) import Control.Applicative newtype Parser a = Parser { apply :: String -> [(a, String)] } satisfy :: (Char -> Bool) -> Parser Char satisfy p = Parser f where f [] = [] f (c:s) | p c = [(c, s)] | otherwise = []...
6cef4227f66f9f4a82db59eb77272d9035c40500ccaf9416b155ed3a31890fcd
achirkin/qua-kit
Main.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE FlexibleContexts # # LANGUAGE TemplateHaskell # module Main (main) where -- import Foreign (withForeignPtr, peekByteOff, pokeByteOff) import Luci.Connect import Luci.Messages import Luci.Connect.Base import Control.Monad (void) import Data.Aeson as JSON import Data.Text (T...
null
https://raw.githubusercontent.com/achirkin/qua-kit/9f859e2078d5f059fb87b2f6baabcde7170d4e95/services/siren/app/Main.hs
haskell
# LANGUAGE OverloadedStrings # import Foreign (withForeignPtr, peekByteOff, pokeByteOff) import Numeric.EasyTensor -------------------------------------------------------------------------------------------------- | entry point -----------------------------------------------------------------------------------------...
# LANGUAGE FlexibleContexts # # LANGUAGE TemplateHaskell # module Main (main) where import Luci.Connect import Luci.Messages import Luci.Connect.Base import Control.Monad (void) import Data.Aeson as JSON import Data.Text (Text) import qualified Data.Text as Text import qualified Data.Text.Encoding as Text import Data....
6e3a0ea0c090550137a52dfa85b490ef4168fd598eec9d3b269933ecb1231373
avsm/mirage-duniverse
segment.ml
* Copyright ( c ) 2010 - 2011 Anil Madhavapeddy < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVID...
null
https://raw.githubusercontent.com/avsm/mirage-duniverse/983e115ff5a9fb37e3176c373e227e9379f0d777/ocaml_modules/tcpip/src/tcp/segment.ml
ocaml
The receive queue stores out-of-order segments, and can coalesece them on input and pass on an ordered list up the stack to the application. It also looks for control messages and dispatches them to the Rtx queue to ack messages or close channels. Individual received TCP segment TODO: this will cha...
* Copyright ( c ) 2010 - 2011 Anil Madhavapeddy < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVID...
561b935d8ad00a4de2604548bd4807a695d55919cf5fe70adf9126221268e7e9
mirage/ocaml-tar
tar_gz.ml
* Copyright ( C ) 2022 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AU...
null
https://raw.githubusercontent.com/mirage/ocaml-tar/dc427495f9dceadf924c4336d37c7b13c583c264/lib/tar_gz.ml
ocaml
XXX(dinosaure): we can refactor this code with [Gz_writer.really_write] but this loop saves and uses [ic_buffer]/[buf] to avoid extra allocations on the case between [string] and [Cstruct.t].
* Copyright ( C ) 2022 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AU...
e21c7fdb3ea1902669e308b11a85aa36b6294856559a143ffcb07f7945741eb0
danielfm/judgr
default_classifier.clj
(ns judgr.test.classifier.default-classifier (:use [judgr.classifier.default-classifier] [judgr.core] [judgr.test.util] [judgr.settings] [clojure.test]) (:import [judgr.classifier.default_classifier DefaultClassifier])) (def new-settings (update-settings settings ...
null
https://raw.githubusercontent.com/danielfm/judgr/7b5dfeeb3bee85a42191a7f9e353b25ae2ee9fbd/test/judgr/test/classifier/default_classifier.clj
clojure
(ns judgr.test.classifier.default-classifier (:use [judgr.classifier.default-classifier] [judgr.core] [judgr.test.util] [judgr.settings] [clojure.test]) (:import [judgr.classifier.default_classifier DefaultClassifier])) (def new-settings (update-settings settings ...
33e9018ee6ba79dfd684bf4152c7c459d72caef407848f0f1066e512a8ad9199
ocaml/ocaml-lsp
lev_fiber_threads.ml
open Stdune open Fiber.O let thread_yield () = Thread.yield () open Lev_fiber let%expect_test "create thread" = let f () = let* thread = Thread.create () in let task = match Thread.task thread ~f:(fun () -> print_endline "in thread") with | Ok s -> s | Error _ -> assert false in l...
null
https://raw.githubusercontent.com/ocaml/ocaml-lsp/226ae3e089ec95e8333bc19c9d113a537443412a/submodules/lev/lev-fiber/test/lev_fiber_threads.ml
ocaml
open Stdune open Fiber.O let thread_yield () = Thread.yield () open Lev_fiber let%expect_test "create thread" = let f () = let* thread = Thread.create () in let task = match Thread.task thread ~f:(fun () -> print_endline "in thread") with | Ok s -> s | Error _ -> assert false in l...
27f38c360b45228d8d433304870a62398204b5951e16782cc838068f8c3f75b2
askvortsov1/nittany_market
queries.ml
module type Query = sig type t type t_variables module Raw : sig type t type t_variables end val query : string val parse : Raw.t -> t val serialize : t -> Raw.t val serializeVariables : t_variables -> Raw.t_variables val unsafe_fromJson : Yojson.Basic.t -> Raw.t val toJson : Raw.t -> Yojs...
null
https://raw.githubusercontent.com/askvortsov1/nittany_market/08ffcad2bb2ead9aaeb85b22b88aa2af879e36ad/frontend/graphql/queries.ml
ocaml
module type Query = sig type t type t_variables module Raw : sig type t type t_variables end val query : string val parse : Raw.t -> t val serialize : t -> Raw.t val serializeVariables : t_variables -> Raw.t_variables val unsafe_fromJson : Yojson.Basic.t -> Raw.t val toJson : Raw.t -> Yojs...
d6bc0a28b7b5aa0fb86641788406e97fe8f051c1b9ab19ebd4a518a568077505
strint/sicpAns
2080_generic_arithmetic_system_equal_zero.scm
; ***************operation-and-type table********************** (define op-type-table (make-hash-table)) (define (put op-name data-type procdure) (hash-table/put! op-type-table (list op-name data-type) procdure)) (define (get op-name data-type) (hash-table/get op-type-table (list op-name data-type) #f)) ; *********...
null
https://raw.githubusercontent.com/strint/sicpAns/efc4bdfaab7583117d42f2141d4b3b9e12792b79/2.5.1-2_GenericArithmeticSystem/2080_generic_arithmetic_system_equal_zero.scm
scheme
***************operation-and-type table********************** ***************operation-and-type table(end)******************* **********************rectangular package********************** internal procedures interface to the rest of the system *******************rectangular package(end)********************** *...
(define op-type-table (make-hash-table)) (define (put op-name data-type procdure) (hash-table/put! op-type-table (list op-name data-type) procdure)) (define (get op-name data-type) (hash-table/get op-type-table (list op-name data-type) #f)) * * * * * * * * * * * * * * * * * * * * * * attech type tag * * * * * * ...
593fcd8d4e657d78ed7a38d6014bf15a3ac1025cf79a26e785bfcee4a5da9936
rescript-association/genType
EmitType.ml
open GenTypeCommon type flowError = UntypedImport | UnclearType let flowExpectedError flowError = let errorStr = match flowError with | UntypedImport -> "untyped-import" | UnclearType -> "unclear-type" in "// $FlowExpectedError[" ^ errorStr ^ "]: Reason checked type sufficiently\n" let flowTypeAny ...
null
https://raw.githubusercontent.com/rescript-association/genType/7a82735febf3a3fbff07139c305d7bb92b2e4595/src/EmitType.ml
ocaml
from .foo.bar to .foo double extension Represent an opaque type as an absract class with a field called 'opaque'. Any type parameters must occur in the type of opaque, so that different instantiations are considered different types.
open GenTypeCommon type flowError = UntypedImport | UnclearType let flowExpectedError flowError = let errorStr = match flowError with | UntypedImport -> "untyped-import" | UnclearType -> "unclear-type" in "// $FlowExpectedError[" ^ errorStr ^ "]: Reason checked type sufficiently\n" let flowTypeAny ...
33ad28f50a8cff313f41160d2c2e2a8ef9e193aaef8669b387cac098867e84f8
chansey97/clprosette-miniKanren
radif.rkt
#lang racket (require "../mk.rkt") (provide (all-defined-out)) A terminating 0cfa abstract interpreter via ADI caching based on work by For ADI , see -definitional-interpreters/adi.pdf ' icache ' stands for " inner cache " ;;; ;;; 'ocache' stands for "outer cache" (define (conso x xs r) (== (cons x xs) r...
null
https://raw.githubusercontent.com/chansey97/clprosette-miniKanren/d322f688312fa9481b22c2729018d383f493cb82/clprosette-miniKanren/tests/radif.rkt
racket
'ocache' stands for "outer cache" #f is never bound as a value in the store, we don't have booleans. WEB ensure x occurs exactly once in xs AVal is of the form (aval (Set AInt) (Set (Symbol,Symbol,Exp))) e: Exp s: ASto (Map from symbol to AVal) out: (Set (AVal,ASto),Cache) out: (Set (Aval,Asto),Cache) out: C...
#lang racket (require "../mk.rkt") (provide (all-defined-out)) A terminating 0cfa abstract interpreter via ADI caching based on work by For ADI , see -definitional-interpreters/adi.pdf ' icache ' stands for " inner cache " (define (conso x xs r) (== (cons x xs) r)) (define (mapo r xs f) (conde [(=...
ddfe5a2c6f05eec73a829f066026e3313c4fa971ade1b6968ce7c4b05c899ea6
sdiehl/elliptic-curve
E521.hs
module Data.Curve.Edwards.E521 ( module Data.Curve.Edwards , Point(..) -- * E521 curve , module Data.Curve.Edwards.E521 ) where import Protolude import Data.Field.Galois import GHC.Natural (Natural) import Data.Curve.Edwards ------------------------------------------------------------------------------- -...
null
https://raw.githubusercontent.com/sdiehl/elliptic-curve/445e196a550e36e0f25bd4d9d6a38676b4cf2be8/src/Data/Curve/Edwards/E521.hs
haskell
* E521 curve ----------------------------------------------------------------------------- Types ----------------------------------------------------------------------------- | E521 curve. # INLINABLE a_ # # INLINABLE d_ # # INLINABLE h_ # | Projective E521 point. ---------------------------------------------------...
module Data.Curve.Edwards.E521 ( module Data.Curve.Edwards , Point(..) , module Data.Curve.Edwards.E521 ) where import Protolude import Data.Field.Galois import GHC.Natural (Natural) import Data.Curve.Edwards data E521 | Field of points of E521 curve . type Fq = Prime Q type Q = 0x1fffffffffffffffffffff...
75fad905f6468cb0cb1d41c4289f44b355ae6c1aa2810cb48f5e8ad4c84d6586
fulcro-legacy/semantic-ui-wrapper
ui_transitionable_portal.cljs
(ns fulcrologic.semantic-ui.addons.transitionableportal.ui-transitionable-portal (:require [fulcrologic.semantic-ui.factory-helpers :as h] ["semantic-ui-react/dist/commonjs/addons/TransitionablePortal/TransitionablePortal" :default TransitionablePortal])) (def ui-transitionable-portal "A sugar for `Porta...
null
https://raw.githubusercontent.com/fulcro-legacy/semantic-ui-wrapper/b0473480ddfff18496df086bf506099ac897f18f/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/addons/transitionableportal/ui_transitionable_portal.cljs
clojure
(ns fulcrologic.semantic-ui.addons.transitionableportal.ui-transitionable-portal (:require [fulcrologic.semantic-ui.factory-helpers :as h] ["semantic-ui-react/dist/commonjs/addons/TransitionablePortal/TransitionablePortal" :default TransitionablePortal])) (def ui-transitionable-portal "A sugar for `Porta...
e68bceda9faa47f0d565679610e52178821aa30f93d0eae4c671821750389651
namin/pink
matcher-tests.scm
(load "base.scm") (load "pink.scm") (load "matcher.scm") (load "test-check.scm") (test "matcher-1" (evalms (list `(let maybe-lift (lambda _ e e) ,matcher-src) `(_ * a _ * done) `(b a done)) `((((,pink-eval-exp3 (var 0)) nil-env) (var 1)) (var 2))) 'yes ) (test "matcher-2" (evalms (list...
null
https://raw.githubusercontent.com/namin/pink/ace6697dacbf0d08cb044e2cfe5b8434044b9572/matcher-tests.scm
scheme
(load "base.scm") (load "pink.scm") (load "matcher.scm") (load "test-check.scm") (test "matcher-1" (evalms (list `(let maybe-lift (lambda _ e e) ,matcher-src) `(_ * a _ * done) `(b a done)) `((((,pink-eval-exp3 (var 0)) nil-env) (var 1)) (var 2))) 'yes ) (test "matcher-2" (evalms (list...
f7c287af73f5e250a333083891fe3d91a5919f703f64db700fc388283fdda1da
dtgoitia/civil-autolisp
ImportPlotLevels.lsp
(defun c:2 ( / ss ) Convert point block to plot level (if (setq ss (ssget '(( 0 . "INSERT")))) (foreach a (ssnamex ss) (if (= 'ename (type (cadr a))) (DT:BlockToPlotLevel (cadr a)) );END if );END foreach );END if v0.0 - 2017.07.13 - First issue Author : Last revision : 2017.07...
null
https://raw.githubusercontent.com/dtgoitia/civil-autolisp/72d68139d372c84014d160f8e4918f062356349f/Dump%20folder/ImportPlotLevels.lsp
lisp
END if END foreach END if Get passed ename block "LEVEL" attribute and create a plot level in its coordinates with such level as content END progn END if
(defun c:2 ( / ss ) Convert point block to plot level (if (setq ss (ssget '(( 0 . "INSERT")))) (foreach a (ssnamex ss) (if (= 'ename (type (cadr a))) (DT:BlockToPlotLevel (cadr a)) v0.0 - 2017.07.13 - First issue Author : Last revision : 2017.07.13 ) (defun DT:BlockToPlotLevel ( ename / z...
bea2fdefaf43e6733d5dd2beab28a75f6705e739f671dc4f45f3ec602fd3cb1f
psholtz/MIT-SICP
exercise2-75.scm
;; Exercise 2.75 ;; ;; Implement the constructor "make-from-mag-ang" in message-passing style. This procedure should be ;; analogous to the "make-from-real-imag" procedure given above. ;; (load "complex-package.scm") ;; ;; The definition of "make-from-real-imag" given in the text is as follows: ;; (define (make-fr...
null
https://raw.githubusercontent.com/psholtz/MIT-SICP/01e9b722ac5008e26f386624849117ca8fa80906/Section-2.4/mit-scheme/exercise2-75.scm
scheme
Implement the constructor "make-from-mag-ang" in message-passing style. This procedure should be analogous to the "make-from-real-imag" procedure given above. The definition of "make-from-real-imag" given in the text is as follows: And we also need to change the "apply-generic" procedure: Let's run some ...
Exercise 2.75 (load "complex-package.scm") (define (make-from-real-imag x y) (define (dispatch op) (cond ((eq? op 'real-part) x) ((eq? op 'imag-part) y) ((eq? op 'magnitude) (sqrt (+ (square x) (square y)))) ((eq? op 'angle) (atan y x)) (else (error "Unknown op -- MAKE-FROM-REAL-IMAG" op))...
4dbfeb213ae06ba44ffae72787d4b3dba5c70cddf7e0367b5261b32805070ca0
paurkedal/ocaml-caqti
caqti_dynload.mli
Copyright ( C ) 2017 < > * * This library is free software ; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the License , or ( at your * option ) any later version , with the ...
null
https://raw.githubusercontent.com/paurkedal/ocaml-caqti/264e4259aa41cc99a21c989faa932eb4daabcdb8/caqti-dynload/lib/caqti_dynload.mli
ocaml
* Dynamic linker for database drivers. This module registers a dynamic linker for loading database drivers.
Copyright ( C ) 2017 < > * * This library is free software ; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the License , or ( at your * option ) any later version , with the ...
517d953917e5a8a0149a1d98473d80fa8e2e44ba8d74c88710af403936f428e9
bcc32/advent-of-code
main.ml
open! Core open! Async open! Import let input = Lazy_deferred.create (fun () -> Reader.file_contents "input.txt" >>| String.strip) ;; let hash ~secret_key ~number = Md5.digest_string (secret_key ^ Int.to_string number) |> Md5.to_hex ;; let mine secret_key = let rec loop number = if String.is_prefix (hash ~...
null
https://raw.githubusercontent.com/bcc32/advent-of-code/86a9387c3d6be2afe07d2657a0607749217b1b77/2015/day_4/main.ml
ocaml
open! Core open! Async open! Import let input = Lazy_deferred.create (fun () -> Reader.file_contents "input.txt" >>| String.strip) ;; let hash ~secret_key ~number = Md5.digest_string (secret_key ^ Int.to_string number) |> Md5.to_hex ;; let mine secret_key = let rec loop number = if String.is_prefix (hash ~...
f77aaac5648a6b3bc6dd2063046c7e97658b2a6af44ee9907a98a737d5fafdd0
alavrik/piqi
piq_piqi.ml
module Piqirun = Piqi_piqirun module rec Piq_piqi: sig type float64 = float type uint64 = int64 type float = Piq_piqi.float64 type binary = string type word = string type name = Piq_piqi.word type piq = [ | `int of int64 | `uint of Piq_piqi.uint64 | `float of...
null
https://raw.githubusercontent.com/alavrik/piqi/bcea4d44997966198dc295df0609591fa787b1d2/piqilib/piq_piqi.ml
ocaml
module Piqirun = Piqi_piqirun module rec Piq_piqi: sig type float64 = float type uint64 = int64 type float = Piq_piqi.float64 type binary = string type word = string type name = Piq_piqi.word type piq = [ | `int of int64 | `uint of Piq_piqi.uint64 | `float of...
496008d1941b18f0864070b180d37267c1314a1aebda4a4e06db34bb5a2233c6
haskell-repa/repa
Base.hs
module Data.Repa.Chain.Base ( Step (..) , Chain (..) , liftChain , resumeChain) where import qualified Data.Vector.Fusion.Stream.Size as S import Control.Monad.Identity #include "repa-stream.h" -- | A chain is an abstract, stateful producer of elements. It is similar -- a s...
null
https://raw.githubusercontent.com/haskell-repa/repa/c867025e99fd008f094a5b18ce4dabd29bed00ba/repa-stream/Data/Repa/Chain/Base.hs
haskell
| A chain is an abstract, stateful producer of elements. It is similar a stream as used in stream fusion, except that internal state is visible in its type. This allows the computation to be paused and resumed at a later point. | Expected size of the output. | Starting state. | Step the chain computation. ...
module Data.Repa.Chain.Base ( Step (..) , Chain (..) , liftChain , resumeChain) where import qualified Data.Vector.Fusion.Stream.Size as S import Control.Monad.Identity #include "repa-stream.h" data Chain m s a = Chain mchainSize :: S.Size , m...
4281081c1831557e2d79ff0c3098446f7fb302236c031113680f6b7a8daa1032
Jell/euroclojure-2016
hacks.cljs
(ns euroclojure.hacks) (defn slide [context] [:div.slide.left [:h1.centered "Hacks"] [:ul [:li "Run single test var from REPL"] [:a {:href "" :target "_blank"} ""] [:li "Use " [:code "gulp-watch"] " to touch cljs file on related assets changes"] [:li "Use " [:code "window.open()"]...
null
https://raw.githubusercontent.com/Jell/euroclojure-2016/a8ca883e8480a4616ede19995aaacd4a495608af/src/euroclojure/hacks.cljs
clojure
(ns euroclojure.hacks) (defn slide [context] [:div.slide.left [:h1.centered "Hacks"] [:ul [:li "Run single test var from REPL"] [:a {:href "" :target "_blank"} ""] [:li "Use " [:code "gulp-watch"] " to touch cljs file on related assets changes"] [:li "Use " [:code "window.open()"]...
f380c89eb1c0faaeec568b693bb1e4b8bf4ef1b6fd44be3dc048785f27c78185
cljs-audio/cljs-audio
utils.cljc
(ns cljs-audio.utils (:require [camel-snake-kebab.core :refer [->camelCase]]))
null
https://raw.githubusercontent.com/cljs-audio/cljs-audio/75b8326ff0d5d610be3ea1b39979eac45dfd5b4b/src/main/cljs_audio/utils.cljc
clojure
(ns cljs-audio.utils (:require [camel-snake-kebab.core :refer [->camelCase]]))
977d85f61ae8d8cc2a76dca7c83f2ca121b478731604b7c5119cb28bd2603a6c
astro/prittorrent
hasher_app.erl
-module(hasher_app). -behaviour(application). %% Application callbacks -export([start/2, stop/1]). %% =================================================================== %% Application callbacks %% =================================================================== start(_StartType, _StartArgs) -> hasher_sup:st...
null
https://raw.githubusercontent.com/astro/prittorrent/5173eeb8b00fd9ab7c0d347c9e361052023faebd/apps/hasher/src/hasher_app.erl
erlang
Application callbacks =================================================================== Application callbacks ===================================================================
-module(hasher_app). -behaviour(application). -export([start/2, stop/1]). start(_StartType, _StartArgs) -> hasher_sup:start_link(). stop(_State) -> ok.
eb8bc521b8d6fdd6138bff9a975b66918045216a0ed99402ab4f3579d8a6350f
vonzhou/LearnYouHaskellForGreatGood
FoodDrink.hs
import Data.Monoid type Food = String type Price = Sum Int applyLog :: (Monoid m) => (a, m) -> (a -> (b, m)) -> (b, m) applyLog (x, log) f = let (y, newLog) = f x in (y, log `mappend` newLog) addDrink :: Food -> (Food, Price) addDrink "beans" = ("milk", Sum 25) addDrink "jerky" = ("whiskey", Sum 99) addDrink _ = ("b...
null
https://raw.githubusercontent.com/vonzhou/LearnYouHaskellForGreatGood/439d848deac53ef6da6df433078b7f1dcf54d18d/chapter14/FoodDrink.hs
haskell
import Data.Monoid type Food = String type Price = Sum Int applyLog :: (Monoid m) => (a, m) -> (a -> (b, m)) -> (b, m) applyLog (x, log) f = let (y, newLog) = f x in (y, log `mappend` newLog) addDrink :: Food -> (Food, Price) addDrink "beans" = ("milk", Sum 25) addDrink "jerky" = ("whiskey", Sum 99) addDrink _ = ("b...
aa97c7654bae415aca7a2c38d27524a3bb3590a7db8498b679a93e9308c1bb0c
wireless-net/erlang-nommu
wxStdDialogButtonSizer.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2008 - 2013 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Publi...
null
https://raw.githubusercontent.com/wireless-net/erlang-nommu/79f32f81418e022d8ad8e0e447deaea407289926/lib/wx/src/gen/wxStdDialogButtonSizer.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitatio...
Copyright Ericsson AB 2008 - 2013 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " -module(wxStdDialogButtonSizer). -include...
8406f8cbb64a30d37a22c683ef2bd9819171ae31125f3ac1ca4c7db140302df2
everpeace/programming-erlang-code
vshlr1.erl
-module(vshlr1). -export([start/0, stop/0, handle_event/2, i_am_at/2, find/1]). -import(server1, [start/3, stop/1, rpc/2]). -import(dict, [new/0, store/3, find/2]). start() -> start(vshlr, fun handle_event/2, new()). stop() -> stop(vshlr). i_am_at(Who, Where) -> rpc(vshlr, {i_am_at, Who, Where}). find(...
null
https://raw.githubusercontent.com/everpeace/programming-erlang-code/8ef31aa13d15b41754dda225c50284915c29cb48/code/vshlr1.erl
erlang
-module(vshlr1). -export([start/0, stop/0, handle_event/2, i_am_at/2, find/1]). -import(server1, [start/3, stop/1, rpc/2]). -import(dict, [new/0, store/3, find/2]). start() -> start(vshlr, fun handle_event/2, new()). stop() -> stop(vshlr). i_am_at(Who, Where) -> rpc(vshlr, {i_am_at, Who, Where}). find(...
9b0a028eeff831079796f881456a234a4e2905aa4ac46bd3ef6fe7d2886d7628
brendanhay/gogol
TestIamPermissions.hs
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # {-# LANGUAGE St...
null
https://raw.githubusercontent.com/brendanhay/gogol/fffd4d98a1996d0ffd4cf64545c5e8af9c976cda/lib/services/gogol-storage/gen/Gogol/Storage/Objects/TestIamPermissions.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Stability : auto-generated Tests a set of permissions on the given object to see which, if any, are held by the caller. /See:/ </ Cloud Storage JSON API Reference> for @storage.objects.testIamPermissions@. * Resource ** Constructing a Request | A resou...
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators...
8f1794c431ef0cb2ecd48c08bc609c235a882b9e997315b0184999821fbec04c
kit-ty-kate/visitors
VisitorsAnalysis.ml
open Ppxlib open Result open Asttypes open Parsetree open Ast_helper open Ppx_deriving open VisitorsPlugin (* This module offers helper functions for abstract syntax tree analysis. *) (* -------------------------------------------------------------------------- *) type tycon = string type tyvar = string type tyvars ...
null
https://raw.githubusercontent.com/kit-ty-kate/visitors/fc53cc486178781e0b1e581eced98e07facb7d29/src/VisitorsAnalysis.ml
ocaml
This module offers helper functions for abstract syntax tree analysis. -------------------------------------------------------------------------- -------------------------------------------------------------------------- Testing whether an identifier is valid. --------------------------------------------------...
open Ppxlib open Result open Asttypes open Parsetree open Ast_helper open Ppx_deriving open VisitorsPlugin type tycon = string type tyvar = string type tyvars = tyvar list We use 's lexer to analyze the string and check if it is a valid identifier . This method is slightly unorthodox , as the lexer can ha...
605b6e4f8ca7570edcf2c7afe6ab836801b95b9c62ca24b936beef7353a49086
noinia/hgeometry
Induction.hs
# LANGUAGE TypeApplications # # LANGUAGE UndecidableInstances # module Geometry.Vector.Induction( induction , induction' , inductionPeano , inductionPeano' , All, AllPeano ) where import Data.Kind (Type) import Data.Proxy import Data.Vector.Fixed.Cont (Peano, PeanoNum(..)) import Data.Vinyl.Core import...
null
https://raw.githubusercontent.com/noinia/hgeometry/e686ab0709fa7d8cbd5c60e416b996aa240a4d0f/hgeometry/src/Geometry/Vector/Induction.hs
haskell
------------------------------------------------------------------------------ | Induction principle on natural numbers. ^ the base case ^ the step case. Items in the step case should satisfy constraint c | Induction principle for the case that the step does not require any additional constraints. ----------------...
# LANGUAGE TypeApplications # # LANGUAGE UndecidableInstances # module Geometry.Vector.Induction( induction , induction' , inductionPeano , inductionPeano' , All, AllPeano ) where import Data.Kind (Type) import Data.Proxy import Data.Vector.Fixed.Cont (Peano, PeanoNum(..)) import Data.Vinyl.Core import...
b12c29e63c854f1dbb1ad2407963b0182c57b35ef5b88724198341fd0e4a0927
manuel-serrano/bigloo
pproto.scm
;*=====================================================================*/ * serrano / prgm / project / bigloo / comptime / Coerce / pproto.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation ...
null
https://raw.githubusercontent.com/manuel-serrano/bigloo/eb650ed4429155f795a32465e009706bbf1b8d74/comptime/Coerce/pproto.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ * We print prototype */ *===========================...
* serrano / prgm / project / bigloo / comptime / Coerce / pproto.scm * / * Author : * / * Creation : Fri Jan 20 10:45:07 1995 * / * Last change : Mon May 15 07:40:41 2000 ( serrano ) * / * Copy...
2b0ac1cf6e1db4d950dac7f7cec66e331086b8950aef41a91d27b89ad723aa31
biocad/math-grads
GenericGraph.hs
# LANGUAGE DeriveGeneric # # LANGUAGE InstanceSigs # # LANGUAGE ViewPatterns # -- | Module that provides abstract implementation of graph-like data structure -- 'GenericGraph' and many helpful functions for interaction with 'GenericGraph'. -- module Math.Grads.GenericGraph ( GenericGraph (..) , addEdges , ad...
null
https://raw.githubusercontent.com/biocad/math-grads/df7bdc48f86f57f3d011991c64188489e8d73bc1/src/Math/Grads/GenericGraph.hs
haskell
| Module that provides abstract implementation of graph-like data structure 'GenericGraph' and many helpful functions for interaction with 'GenericGraph'. | Generic undirected graph which stores elements of type v in its vertices (e.g. labels, atoms, states etc) and elements of type e in its edges (e.g. weights, b...
# LANGUAGE DeriveGeneric # # LANGUAGE InstanceSigs # # LANGUAGE ViewPatterns # module Math.Grads.GenericGraph ( GenericGraph (..) , addEdges , addVertices , applyG , applyV , getVertices , getEdge , isConnected , removeEdges , removeVertices , safeAt , safeIdx , subgraph, subgraphWithRein...
576e96f4b0a73617ce27a0e42d4d3313c2a3a4005784add374ed9947d3634488
hackwaly/ocamlearlybird
time_travel.ml
* * Copyright ( C ) 2021 * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation , either version 3 of the * License , or ( at your option ) any later version . * * Th...
null
https://raw.githubusercontent.com/hackwaly/ocamlearlybird/165174e3cc749ba416ec7ebfb4b521e5fac744db/src/adapter/time_travel.ml
ocaml
* * Copyright ( C ) 2021 * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation , either version 3 of the * License , or ( at your option ) any later version . * * Th...
6739e5a3ae9a986c1fa88b4b64cf13f0c9f9ca74ad9c3827bac70e21f75e9716
ajchemist/rum-mdl
badges.cljc
(ns rum.mdl.examples.badges (:require [rum.core :as rum] [rum.mdl :as mdl] [rum.mdl.demo :as demo])) (def counter (volatile! 0)) (rum/defcc my-badge [comp vref] (mdl/badge {:mdl [:overlap] :style {:cursor "pointer"} :data-badge (str @vref) :on-click #(do (vswap! vref in...
null
https://raw.githubusercontent.com/ajchemist/rum-mdl/87376da0f73c5bcafa64bed0fa10c7b653bcf149/examples/rum/mdl/examples/badges.cljc
clojure
(ns rum.mdl.examples.badges (:require [rum.core :as rum] [rum.mdl :as mdl] [rum.mdl.demo :as demo])) (def counter (volatile! 0)) (rum/defcc my-badge [comp vref] (mdl/badge {:mdl [:overlap] :style {:cursor "pointer"} :data-badge (str @vref) :on-click #(do (vswap! vref in...
294eb76c3ccbfc82b9f09d69ac6ae3df7395bb420677bc6936ad0c03c187cb3c
TokTok/hs-toxcore
NonceSpec.hs
# LANGUAGE StrictData # # LANGUAGE Trustworthy # module Network.Tox.Crypto.NonceSpec where import Control.Monad.IO.Class (liftIO) import Test.Hspec import Test.QuickCheck import qualified Network.Tox.Crypto.Nonce as Nonce spec :: Spec spec = do describe "newNonce" $ it "gener...
null
https://raw.githubusercontent.com/TokTok/hs-toxcore/3ceab5974c36c4c5dbf7518ba733ec2b6084ce5d/test/Network/Tox/Crypto/NonceSpec.hs
haskell
# LANGUAGE StrictData # # LANGUAGE Trustworthy # module Network.Tox.Crypto.NonceSpec where import Control.Monad.IO.Class (liftIO) import Test.Hspec import Test.QuickCheck import qualified Network.Tox.Crypto.Nonce as Nonce spec :: Spec spec = do describe "newNonce" $ it "gener...
1341c4ced051f1d56572ef93011bc0e001c80f40d4aca61899a3268fd380519a
Drup/LILiS
lisCairo.mli
* Draw with { { : } cairo } . * A turtle that can draw on any Cairo surface . val cairo_turtle : float -> float -> Cairo.context -> unit Glilis.turtle (** A turtle that write to a png file. *) val png_turtle : int -> int -> (string -> unit) Glilis.turtle (** A turtle that write to a svg file. Buggy for now. *) val ...
null
https://raw.githubusercontent.com/Drup/LILiS/df63fbc3ee77b3378ae1ef27715828c3ad892475/glilis/cairo/lisCairo.mli
ocaml
* A turtle that write to a png file. * A turtle that write to a svg file. Buggy for now. * A turtle that write on a gtk surface.
* Draw with { { : } cairo } . * A turtle that can draw on any Cairo surface . val cairo_turtle : float -> float -> Cairo.context -> unit Glilis.turtle val png_turtle : int -> int -> (string -> unit) Glilis.turtle val svg_turtle : string -> int -> int -> unit Glilis.turtle val gtk_turtle : GMisc.drawing_area -> uni...
be57df61849c0740b9394a424d1e8a4d6bfe593df03528c524bcdd5c3725fa19
zcaudate/hara
class_test.clj
(ns hara.object.element.class-test (:use hara.test) (:require [hara.object.element.class :refer :all])) ^{:refer hara.object.element.class/type->raw :added "3.0"} (fact "converts to the raw representation" (type->raw Class) => "java.lang.Class" (type->raw 'byte) => "B") ^{:refer hara.object.element.class/raw...
null
https://raw.githubusercontent.com/zcaudate/hara/481316c1f5c2aeba5be6e01ae673dffc46a63ec9/test/hara/object/element/class_test.clj
clojure
(ns hara.object.element.class-test (:use hara.test) (:require [hara.object.element.class :refer :all])) ^{:refer hara.object.element.class/type->raw :added "3.0"} (fact "converts to the raw representation" (type->raw Class) => "java.lang.Class" (type->raw 'byte) => "B") ^{:refer hara.object.element.class/raw...
fb6cd8ea85d3f3262ab0053459978f4ac1851fa16bf1009b0c667e482aaa33ef
nextjournal/clerk
dev_launcher.clj
(ns nextjournal.clerk.dev-launcher "A dev launcher that launches nrepl, shadow-cljs and once the first cljs compliation completes, Clerk. Avoiding other ns requires here so the REPL comes up early." (:require [nrepl.cmdline :as nrepl]) (:import (java.lang.management ManagementFactory) (java.util L...
null
https://raw.githubusercontent.com/nextjournal/clerk/82c35e2fc23a492ad1dd4ff201b39ed141098a1f/dev/nextjournal/clerk/dev_launcher.clj
clojure
(ns nextjournal.clerk.dev-launcher "A dev launcher that launches nrepl, shadow-cljs and once the first cljs compliation completes, Clerk. Avoiding other ns requires here so the REPL comes up early." (:require [nrepl.cmdline :as nrepl]) (:import (java.lang.management ManagementFactory) (java.util L...
9438a868641e51fa574153fe22a340864d5d3cf7389385ff5f4cfdd2666d26ae
haskell/cabal
Lens.hs
module Distribution.Types.PackageId.Lens ( PackageIdentifier, module Distribution.Types.PackageId.Lens, ) where import Distribution.Compat.Lens import Distribution.Compat.Prelude import Prelude () import Distribution.Types.PackageId (PackageIdentifier) import Distribution.Types.PackageName (PackageName)...
null
https://raw.githubusercontent.com/haskell/cabal/0abbe37187f708e0a5daac8d388167f72ca0db7e/Cabal-syntax/src/Distribution/Types/PackageId/Lens.hs
haskell
module Distribution.Types.PackageId.Lens ( PackageIdentifier, module Distribution.Types.PackageId.Lens, ) where import Distribution.Compat.Lens import Distribution.Compat.Prelude import Prelude () import Distribution.Types.PackageId (PackageIdentifier) import Distribution.Types.PackageName (PackageName)...
e24667adbb85c80f6c9db59f25dede87ad88c2b4e67a9b6e499cc4ce36e59dd8
SNePS/SNePS2
message.lisp
-*- Mode : Lisp ; Syntax : Common - Lisp ; Package : SNIP ; Base : 10 -*- Copyright ( C ) 1984 - -2013 Research Foundation of State University of New York Version : $ I d : message.lisp , v 1.2 2013/08/28 19:07:27 shapiro Exp $ ;; This file is part of SNePS. $ BEGIN LICENSE$ The contents of this file a...
null
https://raw.githubusercontent.com/SNePS/SNePS2/d3862108609b1879f2c546112072ad4caefc050d/snip/fns/message.lisp
lisp
Syntax : Common - Lisp ; Package : SNIP ; Base : 10 -*- This file is part of SNePS. you may not use this file except in compliance with the License. You may obtain a copy of the License at . edu/sneps/Downloads/ubpl.pdf. or implied. See the License for the specific language gov erning rights and limitations ...
Copyright ( C ) 1984 - -2013 Research Foundation of State University of New York Version : $ I d : message.lisp , v 1.2 2013/08/28 19:07:27 shapiro Exp $ $ BEGIN LICENSE$ The contents of this file are subject to the University at Software distributed under the License is distributed on an " AS IS " b...