_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
d6f004f6f95867799edc7857da7195bcd5174b972433d1cac423fcc729a83ace
haskell/hackage-server
StaticFiles.hs
# LANGUAGE NamedFieldPuns # module Distribution.Server.Features.StaticFiles ( initStaticFilesFeature ) where import Distribution.Server.Framework import Distribution.Server.Framework.Templating import Text.XHtml.Strict (Html, toHtml, anchor, (<<), (!), href, paragraph) import Data.List hiding (find) import qua...
null
https://raw.githubusercontent.com/haskell/hackage-server/b4ea1c73ba85f24985259fd1df4664747ceb0159/src/Distribution/Server/Features/StaticFiles.hs
haskell
| A feature to provide the top level files on the site (using templates) and also serve the genuinely static files. Page templates TODO: we currently cannot use /.. here because then we cannot use it for the legacy redirects feature. , (resourceAt "/..") { resourceGet = [("", \_ -> serveStaticT...
# LANGUAGE NamedFieldPuns # module Distribution.Server.Features.StaticFiles ( initStaticFilesFeature ) where import Distribution.Server.Framework import Distribution.Server.Framework.Templating import Text.XHtml.Strict (Html, toHtml, anchor, (<<), (!), href, paragraph) import Data.List hiding (find) import qua...
80985796f2f9ce69399e71616758e35dd0592a8f07ca1054553e74dbb41a2358
pcapriotti/optparse-applicative
Internal.hs
module Options.Applicative.Builder.Internal ( -- * Internals Mod(..), HasName(..), HasCompleter(..), HasValue(..), HasMetavar(..), OptionFields(..), FlagFields(..), CommandFields(..), ArgumentFields(..), DefaultProp(..), optionMod, fieldMod, baseProps, mkCommand, mkParser, mkOption, ...
null
https://raw.githubusercontent.com/pcapriotti/optparse-applicative/362c61cf36fb00199237b3314753774828be812d/src/Options/Applicative/Builder/Internal.hs
haskell
* Internals this is just so that it is not necessary to specify the kind of f mod -- | An option modifier. Option modifiers are values that represent a modification of the properties of an option. - A field modifier, of the form @f a -> f a@. These are essentially - An optional default value and function...
module Options.Applicative.Builder.Internal ( Mod(..), HasName(..), HasCompleter(..), HasValue(..), HasMetavar(..), OptionFields(..), FlagFields(..), CommandFields(..), ArgumentFields(..), DefaultProp(..), optionMod, fieldMod, baseProps, mkCommand, mkParser, mkOption, mkProps, int...
6911c37186674eb2f1731a4195b40bc708172509e1c1519da7f2a555370ff077
ahrefs/atd
biniou.ml
Mapping from ATD to Mapping from ATD to biniou *) type biniou_int = [ `Svint | `Uvint | `Int8 | `Int16 | `Int32 | `Int64 ] type biniou_float = [ `Float32 | `Float64 ] type biniou_list = [ `Array | `Table ] type biniou_field = { biniou_unwrapped : bool } type biniou_repr = | Unit | Bool | Int of b...
null
https://raw.githubusercontent.com/ahrefs/atd/d225acd3d0f6c2acda7c103286874b2541470eb1/atdgen/src/biniou.ml
ocaml
This must hold all the valid annotations of the form '<biniou ...>' and '<ocaml_biniou>'.
Mapping from ATD to Mapping from ATD to biniou *) type biniou_int = [ `Svint | `Uvint | `Int8 | `Int16 | `Int32 | `Int64 ] type biniou_float = [ `Float32 | `Float64 ] type biniou_list = [ `Array | `Table ] type biniou_field = { biniou_unwrapped : bool } type biniou_repr = | Unit | Bool | Int of b...
c8660e1a33d249455275206a541270023baf44ced33072117bc2cc4aea8eee8a
larcenists/larceny
localdata3.scm
(export _global_offset_table_ foo) (data (label foo (locals (foo) (dwords "abcd" #\newline foo) (label foo (dwords "defg" #\newline)))))
null
https://raw.githubusercontent.com/larcenists/larceny/fef550c7d3923deb7a5a1ccd5a628e54cf231c75/src/Lib/Sassy/tests/localdata3.scm
scheme
(export _global_offset_table_ foo) (data (label foo (locals (foo) (dwords "abcd" #\newline foo) (label foo (dwords "defg" #\newline)))))
ac623ffb4e6adff5679026b53d148f12d31fc17b8f9cf0eacdefd4af753dd21f
Eduap-com/WordMat
mstuff.lisp
-*- Mode : Lisp ; Package : Maxima ; Syntax : Common - Lisp ; Base : 10 -*- ; ; ; ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; The data in this file contains enhancments. ;;;;; ;;; ;;;;; ...
null
https://raw.githubusercontent.com/Eduap-com/WordMat/83c9336770067f54431cc42c7147dc6ed640a339/Windows/ExternalPrograms/maxima-5.45.1/share/maxima/5.45.1/src/mstuff.lisp
lisp
Package : Maxima ; Syntax : Common - Lisp ; Base : 10 -*- ; ; ; ; The data in this file contains enhancments. ;;;;; ;;;;; ; ; ; ; All rights reserved ;;;;; ; ; leave a condi...
(in-package :maxima) (macsyma-module mstuff) (defmfun $sort (l &optional (f 'lessthan)) (let ((llist l) comparfun bfun ($prederror t)) (unless ($listp llist) (merror (intl:gettext "sort: first argument must be a list; found: ~M") llist)) (setq llist (copy-list (cdr llist)) comparfun (mfunction...
a107d09064c34b69c6f5ae46f5fe91bb3267c2fe6cf1a0f6535b6e1ed96867ab
ghc/packages-dph
QuickHullIO.hs
# LANGUAGE BangPatterns , PatternGuards , RankNTypes # module QuickHullIO (quickHull) where import Data.Function import Control.Monad import Control.Exception import Control.Concurrent import Control.Concurrent.MVar import Control.Monad.ST import GHC.Conc import Data.IORef import Data.List import Data.Ord import Data...
null
https://raw.githubusercontent.com/ghc/packages-dph/64eca669f13f4d216af9024474a3fc73ce101793/dph-examples/examples/spectral/QuickHull/vector/QuickHullIO.hs
haskell
| Compute the convex hull of a vector of points. Find the left and right-most points. Hull points get written to the vector in this IORef. Grab the finished hull points. We've got the hull points, but they can appear in arbitrary order. Do a rubbish via-lists merge phase so that they appear clockwise around the e...
# LANGUAGE BangPatterns , PatternGuards , RankNTypes # module QuickHullIO (quickHull) where import Data.Function import Control.Monad import Control.Exception import Control.Concurrent import Control.Concurrent.MVar import Control.Monad.ST import GHC.Conc import Data.IORef import Data.List import Data.Ord import Data...
2f524e7e8b73739b7de8dec68db630de455c7dc1fa360e26a0fd0b5c8c5da721
NetComposer/nksip
uas_test_client1.erl
%% ------------------------------------------------------------------- %% %% uas_test: Basic Test Suite %% 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 License ....
null
https://raw.githubusercontent.com/NetComposer/nksip/7fbcc66806635dc8ecc5d11c30322e4d1df36f0a/test/callbacks/uas_test_client1.erl
erlang
------------------------------------------------------------------- uas_test: Basic Test Suite 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 specific...
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(uas_test_client1). ...
53dd3200c4acef8ad7de69950f754b6048c8771f7655b6be0a51b196b6492ccf
soegaard/sketching
parameters.rkt
#lang racket/base (provide current-color-mode current-ellipse-mode current-image-mode current-rect-mode current-tint-color ; #f or a color current-tint-brush ; a brush% current-actual-frame-rate ; for the system variable frame-rate current-density current-draw current-dc dc ...
null
https://raw.githubusercontent.com/soegaard/sketching/d242d7bda11a01df6ac542d13dc63e89514c7ec7/sketching-lib/sketching/parameters.rkt
racket
#f or a color a brush% for the system variable frame-rate set by on-paint before calling draw use with-dc to parameterize current-dc set, unset by loop and no-loop a list based queue of shapes variables (not parameters) Predicates Guards Note: The width-guard and height-guard only checks that width an...
#lang racket/base (provide current-color-mode current-ellipse-mode current-image-mode current-rect-mode current-density current-draw current-fill current-font-size current-font-face current-font-family current-font-style current-font-weight current-font-underlined? current-font-smoothing ...
270e5ab0e8d3415bf3c5f29309e2abe638d92d511f66c260f045cc84831a122e
5HT/ant
Macro.mli
open Runtime; open Unicode.Types; open ParseState; type arg_specifier = [ Arg | Opt of uc_list | Bool ]; value parse_arg_template : UCStream.location -> uc_list -> list arg_specifier; value substitute : list uc_list -> uc_list -> uc_list; value expand : parse_state -> uc_list; value noexpand ...
null
https://raw.githubusercontent.com/5HT/ant/6acf51f4c4ebcc06c52c595776e0293cfa2f1da4/Markup/Macro.mli
ocaml
open Runtime; open Unicode.Types; open ParseState; type arg_specifier = [ Arg | Opt of uc_list | Bool ]; value parse_arg_template : UCStream.location -> uc_list -> list arg_specifier; value substitute : list uc_list -> uc_list -> uc_list; value expand : parse_state -> uc_list; value noexpand ...
71425cc65de70a62c689e787d6512111953a24b2d8b5f0b5c2c2c2b6ce0bf2ed
artemeff/eql
eql.erl
-module(eql). -export([ compile/1 , compile/2 , compile/3 , new_tab/1 , get_query/2 , get_query/3 ]). %% a query is either a binary string or a list of binary strings and atoms %% the atoms are replaced during `get_query` with the provided parameters %% resulting in an i...
null
https://raw.githubusercontent.com/artemeff/eql/ae18e87d8b4a86307c55fb45856991336f0d8d3b/src/eql.erl
erlang
a query is either a binary string or a list of binary strings and atoms the atoms are replaced during `get_query` with the provided parameters resulting in an iolist delete all (or for this namespace) queries first the filename as an atom and the name of the query returns a list of internal functions
-module(eql). -export([ compile/1 , compile/2 , compile/3 , new_tab/1 , get_query/2 , get_query/3 ]). -type query() :: binary() | [binary() | atom()]. -type query_list() :: [{atom(), query()}]. store queries in ets table keyed on a 2 - tuple of -spec compile(file:fil...
075cb9c64fd0b01ab0cfe9b5d0cf3f08d04e4f1289cef68f730cae334fdcd969
janestreet/universe
shared_params.mli
open! Core module Query_args : sig type t = { output_mode : Query.output_mode ; allow_empty_output : bool ; labeled : bool option } end val query_args : Query_args.t Command.Param.t module Machine_and_fail_on_parse_error : sig type t = { machine : bool ; fail_on_parse_error : bool } e...
null
https://raw.githubusercontent.com/janestreet/universe/b6cb56fdae83f5d55f9c809f1c2a2b50ea213126/sexp/bin/shared_params.mli
ocaml
open! Core module Query_args : sig type t = { output_mode : Query.output_mode ; allow_empty_output : bool ; labeled : bool option } end val query_args : Query_args.t Command.Param.t module Machine_and_fail_on_parse_error : sig type t = { machine : bool ; fail_on_parse_error : bool } e...
5afe16678b80cb0de66fd22f0b3b61385b75b6422bd718a7f73ea735172ab5cb
smucclaw/dsl
DumpRule.hs
module LS.XPile.DumpRule where import LS.Rule import qualified Data.Foldable as DF import qualified Data.Text.Lazy as TL import Text.Pretty.Simple import LS.Interpreter rules2String :: Interpreted -> [Rule] -> String rules2String l4i rules = unlines [ "-- original rules:\n", TL.unpack (pShowNoColor rules)...
null
https://raw.githubusercontent.com/smucclaw/dsl/de54812780bde55fd94b9665fa08c75044505148/lib/haskell/natural4/src/LS/XPile/DumpRule.hs
haskell
module LS.XPile.DumpRule where import LS.Rule import qualified Data.Foldable as DF import qualified Data.Text.Lazy as TL import Text.Pretty.Simple import LS.Interpreter rules2String :: Interpreted -> [Rule] -> String rules2String l4i rules = unlines [ "-- original rules:\n", TL.unpack (pShowNoColor rules)...
fa008682ab60617e3596d245ac0da1f3436be3e3a5d25e5d9f3c0864998d76a3
facebook/duckling
Rules.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. {-# LANGUAGE GADTs #-} # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} module Duckling.Volume.GA...
null
https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/Duckling/Volume/GA/Rules.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. # LANGUAGE GADTs # # LANGUAGE OverloadedStrings #
Copyright ( c ) 2016 - present , Facebook , Inc. # LANGUAGE LambdaCase # module Duckling.Volume.GA.Rules ( rules ) where import Data.String import Data.Text (Text) import Prelude import Duckling.Dimensions.Types import Duckling.Types import Duckling.Regex.Types import Duckling.Volume.Helpers import Duckling.Nu...
757e0168d9a3d0f48af6c12257b0f52496b81da8b8f189d77ec6d6246e256c6a
Plutonomicon/plutarch-plutus
TraceSpec.hs
module Plutarch.TraceSpec (spec) where import Plutarch.Prelude import Plutarch.Test import Test.Hspec spec :: Spec spec = do describe "trace" . pgoldenSpec $ do "ptrace" @\ do "one" @| ptrace "foo" (pcon PUnit) @-> \p -> ptraces p ["foo"] "two" @| ptrace "foo" (ptrace "bar"...
null
https://raw.githubusercontent.com/Plutonomicon/plutarch-plutus/9b83892057f2aaaed76e3af6193ad1ae242244cc/plutarch-test/tests/Plutarch/TraceSpec.hs
haskell
module Plutarch.TraceSpec (spec) where import Plutarch.Prelude import Plutarch.Test import Test.Hspec spec :: Spec spec = do describe "trace" . pgoldenSpec $ do "ptrace" @\ do "one" @| ptrace "foo" (pcon PUnit) @-> \p -> ptraces p ["foo"] "two" @| ptrace "foo" (ptrace "bar"...
516ee36fd27a927ebefee16c7bf9a7b6d8f179ae8c1a41c8ac03ad16607f7853
Liqwid-Labs/agora
Spec.hs
import GHC.IO.Encoding (setLocaleEncoding, utf8) import Test.Tasty (defaultMain, testGroup) -------------------------------------------------------------------------------- import Property.Governor qualified as Governer import Spec.AuthorityToken qualified as AuthorityToken import Spec.Effect.GovernorMutation qualifi...
null
https://raw.githubusercontent.com/Liqwid-Labs/agora/ce961487bf51ffc3e1a5a9b27bc9dce49fee4be7/agora-test/Spec.hs
haskell
------------------------------------------------------------------------------ | The Agora test suite.
import GHC.IO.Encoding (setLocaleEncoding, utf8) import Test.Tasty (defaultMain, testGroup) import Property.Governor qualified as Governer import Spec.AuthorityToken qualified as AuthorityToken import Spec.Effect.GovernorMutation qualified as GovernorMutation import Spec.Effect.TreasuryWithdrawal qualified as Treasur...
54f6e60a2a9cf8aafa2ad122c6097bd4a42f1213196acf390681093d5f0fb93b
master/ejabberd
mod_last_odbc.erl
%%%---------------------------------------------------------------------- %%% File : mod_last_odbc.erl Author : < > %%% Purpose : jabber:iq:last support (XEP-0012) Created : 24 Oct 2003 by < > %%% %%% ejabberd , Copyright ( C ) 2002 - 2012 ProcessOne %%% %%% This program is free software; you can re...
null
https://raw.githubusercontent.com/master/ejabberd/9c31874d5a9d1852ece1b8ae70dd4b7e5eef7cf7/src/mod_last_odbc.erl
erlang
---------------------------------------------------------------------- File : mod_last_odbc.erl Purpose : jabber:iq:last support (XEP-0012) This program is free software; you can redistribute it and/or License, or (at your option) any later version. This program is distributed in the hope that it will be us...
Author : < > Created : 24 Oct 2003 by < > ejabberd , Copyright ( C ) 2002 - 2012 ProcessOne modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the You should have received a copy of the GNU General Public License Founda...
8256747bf963e4ba9e6a229b239243af0eed83b654e96f059e07cf2c94c28eea
jship/monad-logger-aeson
MetadataNoThreadContextNo.hs
# LANGUAGE NamedFieldPuns # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE QuasiQuotes # module TestCase.LogOther.MetadataNoThreadContextNo ( testCase ) where import Control.Monad.Logger.Aeson (Loc(..), LogLevel(..), LoggedMessage(..), logOther) import Data.Aeson.QQ.Simple (aesonQQ) import Data.Time (UTCTime(..)) i...
null
https://raw.githubusercontent.com/jship/monad-logger-aeson/218dd4a1fd9fd7f86514322dd529444a55001443/monad-logger-aeson/test-suite/TestCase/LogOther/MetadataNoThreadContextNo.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE NamedFieldPuns # # LANGUAGE QuasiQuotes # module TestCase.LogOther.MetadataNoThreadContextNo ( testCase ) where import Control.Monad.Logger.Aeson (Loc(..), LogLevel(..), LoggedMessage(..), logOther) import Data.Aeson.QQ.Simple (aesonQQ) import Data.Time (UTCTime(..)) import TestCase (TestCase(..)) impor...
9e0fe9ea92948e2a6b2a561ab04e7fddcf3de55f037f58d193bfe1ef6152bc73
privet-kitty/cl-competitive
segment-tree.lisp
(defpackage :cp/segment-tree (:use :cl) (:export #:define-segtree) (:documentation "Provides 1-dimensional segment tree over arbitrary monoid, using bottom-up implementation.")) (in-package :cp/segment-tree) (deftype index () '(mod #.(floor array-dimension-limit 2))) (defmacro define-segtree (name &key (operato...
null
https://raw.githubusercontent.com/privet-kitty/cl-competitive/906af7b0121ae5f42e393e616551e69c3bc35bbc/module/segment-tree.lisp
lisp
length of original vector move to right block if L is even move to right block if L is even
(defpackage :cp/segment-tree (:use :cl) (:export #:define-segtree) (:documentation "Provides 1-dimensional segment tree over arbitrary monoid, using bottom-up implementation.")) (in-package :cp/segment-tree) (deftype index () '(mod #.(floor array-dimension-limit 2))) (defmacro define-segtree (name &key (operato...
35ef14931a8a0a0d690e1684c95f1b527e4633036a22082e7e0e6372883b1ae1
expipiplus1/vulkan
PipelineBindPoint.hs
{-# language CPP #-} -- No documentation found for Chapter "PipelineBindPoint" module Vulkan.Core10.Enums.PipelineBindPoint (PipelineBindPoint( PIPELINE_BIND_POINT_GRAPHICS , PIPELINE_BIND_POINT_COMPUTE ...
null
https://raw.githubusercontent.com/expipiplus1/vulkan/73cacc1696011047dcf0c66e9d3fb483762c15cf/src/Vulkan/Core10/Enums/PipelineBindPoint.hs
haskell
# language CPP # No documentation found for Chapter "PipelineBindPoint" | VkPipelineBindPoint - Specify the bind point of a pipeline object to a command buffer = See Also <-extensions/html/vkspec.html#VK_VERSION_1_0 VK_VERSION_1_0>, | 'PIPELINE_BIND_POINT_COMPUTE' specifies binding as a compute pipeline. | 'PI...
module Vulkan.Core10.Enums.PipelineBindPoint (PipelineBindPoint( PIPELINE_BIND_POINT_GRAPHICS , PIPELINE_BIND_POINT_COMPUTE , PIPELINE_BIND_POINT_SUBPASS_SHADING_HUAWEI ...
f9e878d3d38c042b6c75e9fb1e5bafbc60ab1ac3ad6e6ba83a28423ffa12d663
soulomoon/haskell-katas
DecodeMorse.hs
module DecodeMorse where import Data.Map.Strict ((!)) import Data.List import Debug.Trace decodeMorse :: String -> String decodeMorse = unwords . map decodeWord . splitWords decodeWord :: String -> String decodeWord = concatMap decodeChar . words decodeChar :: String -> String decodeChar s = case traceShowId s of...
null
https://raw.githubusercontent.com/soulomoon/haskell-katas/0861338e945e5cbaadf98138cf8f5f24a6ca8bb3/src/Kyu6/DecodeMorse.hs
haskell
module DecodeMorse where import Data.Map.Strict ((!)) import Data.List import Debug.Trace decodeMorse :: String -> String decodeMorse = unwords . map decodeWord . splitWords decodeWord :: String -> String decodeWord = concatMap decodeChar . words decodeChar :: String -> String decodeChar s = case traceShowId s of...
a74911cb1c52ec39756a127417e0d8f048151ef55d1264d45efeaf7e4ef5f7cc
slipstream/SlipStreamServer
user_template_github_registration_test.cljc
(ns com.sixsq.slipstream.ssclj.resources.spec.user-template-github-registration-test (:require [clojure.test :refer [deftest is]] [com.sixsq.slipstream.ssclj.resources.spec.spec-test-utils :as stu] [com.sixsq.slipstream.ssclj.resources.spec.user-template-github :as ut-github] [com.sixsq.slipstream.ssc...
null
https://raw.githubusercontent.com/slipstream/SlipStreamServer/3ee5c516877699746c61c48fc72779fe3d4e4652/cimi/test/com/sixsq/slipstream/ssclj/resources/spec/user_template_github_registration_test.cljc
clojure
check the registration schema (without href) check the create template schema (with href)
(ns com.sixsq.slipstream.ssclj.resources.spec.user-template-github-registration-test (:require [clojure.test :refer [deftest is]] [com.sixsq.slipstream.ssclj.resources.spec.spec-test-utils :as stu] [com.sixsq.slipstream.ssclj.resources.spec.user-template-github :as ut-github] [com.sixsq.slipstream.ssc...
a4ff19c45cd4d2e5d3b1e6afa418301aeeaf2bd9f0708a259aca140a64df984c
williamleferrand/accretio
ys_yelp.ml
* Accretio is an API , a sandbox and a runtime for social playbooks * * Copyright ( C ) 2015 * * 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 o...
null
https://raw.githubusercontent.com/williamleferrand/accretio/394f855e9c2a6a18f0c2da35058d5a01aacf6586/library/server/ys_yelp.ml
ocaml
* Accretio is an API , a sandbox and a runtime for social playbooks * * Copyright ( C ) 2015 * * 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 o...
9f128ef2367bf53f9ab30a8152dbbe881836fa4a65f0e0bff0f5afb9ea30700f
lotabout/axe
base.rkt
#lang racket/base (require racket/set) (provide (all-from-out racket/base) (all-from-out racket/set))
null
https://raw.githubusercontent.com/lotabout/axe/234c2d1f6849f3719c3fc3c2354a4d257e53943b/base.rkt
racket
#lang racket/base (require racket/set) (provide (all-from-out racket/base) (all-from-out racket/set))
b71a64960fe66a1e945ae7c8500d48c38cf8c7ce7bce04b405a21cf518723bec
rbkmoney/cds
cds_session_cleaner.erl
-module(cds_session_cleaner). -behaviour(cds_periodic_job). %% api -export([start_link/0]). %% cds_periodic_job callbacks -export([init/1]). -export([handle_timeout/1]). -define(DEFAULT_INTERVAL, 3000). -define(DEFAULT_BATCH_SIZE, 5000). -define(DEFAULT_SESSION_LIFETIME, 3600). -type state() :: #{ continuati...
null
https://raw.githubusercontent.com/rbkmoney/cds/6e6541c99d34b0633775f0c5304f5008e6b2aaf3/apps/cds/src/cds_session_cleaner.erl
erlang
api cds_periodic_job callbacks Internals Internals
-module(cds_session_cleaner). -behaviour(cds_periodic_job). -export([start_link/0]). -export([init/1]). -export([handle_timeout/1]). -define(DEFAULT_INTERVAL, 3000). -define(DEFAULT_BATCH_SIZE, 5000). -define(DEFAULT_SESSION_LIFETIME, 3600). -type state() :: #{ continuation := continuation() }. -type contin...
05638d45ac32af642698762667592507320828594efaf25f6c405f53ab78b94a
diku-dk/futhark
Util.hs
-- | Non-Futhark-specific utilities. If you find yourself writing -- general functions on generic data structures, consider putting them -- here. -- -- Sometimes it is also preferable to copy a small function rather -- than introducing a large dependency. In this case, make sure to -- note where you got it from (and ...
null
https://raw.githubusercontent.com/diku-dk/futhark/249401761716667e692ec9d7e077623204c13917/src/Futhark/Util.hs
haskell
| Non-Futhark-specific utilities. If you find yourself writing general functions on generic data structures, consider putting them here. Sometimes it is also preferable to copy a small function rather than introducing a large dependency. In this case, make sure to note where you got it from (and make sure that...
module Futhark.Util ( nubOrd, nubByOrd, mapAccumLM, maxinum, chunk, chunks, pairs, unpairs, dropAt, takeLast, dropLast, mapEither, partitionMaybe, maybeNth, maybeHead, splitFromEnd, splitAt3, focusNth, focusMaybe, hashText, showText, ...
4cebe8c1d362e1c72543e0d878481ff7d8006d71be0663170b22af033986e624
byteverse/bytesmith
Latin.hs
# language BangPatterns # # language BinaryLiterals # # language DataKinds # {-# language DeriveFunctor #-} # language DerivingStrategies # # language GADTSyntax # # language KindSignatures # # language LambdaCase # # language MagicHash # {-# language MultiWayIf #-} # language PolyKinds # # language RankNTypes # {-# la...
null
https://raw.githubusercontent.com/byteverse/bytesmith/a91304797fb88a4378e72d39372a4e8650e2c3d2/src/Data/Bytes/Parser/Latin.hs
haskell
# language DeriveFunctor # # language MultiWayIf # # language ScopedTypeVariables # # language CPP # | Parse input as though it were text encoded by ISO 8859-1 (Latin-1). All byte sequences are valid * Matching ** Required ** Try * Many Characters * Skip * End of Input * Numbers ** Decimal *** Unsigned *** ...
# language BangPatterns # # language BinaryLiterals # # language DataKinds # # language DerivingStrategies # # language GADTSyntax # # language KindSignatures # # language LambdaCase # # language MagicHash # # language PolyKinds # # language RankNTypes # # language StandaloneDeriving # # language TypeApplications # # l...
2fa418831365e7cd765ec36215ceb961f337fd85ec3158962cd77f41faf42c7d
kelamg/HtDP2e-workthrough
ex42&43&44.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 ex42&43&44) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decima...
null
https://raw.githubusercontent.com/kelamg/HtDP2e-workthrough/ec05818d8b667a3c119bea8d1d22e31e72e0a958/HtDP/Fixed-size-Data/ex42%2643%2644.rkt
racket
about the language level of this file in a form that our tools can easily process. the number of pixels between the left border of the scene and the right-most edge of the car. the number of clock ticks since the animation started returns the next animation state returns the image of the background with the car i...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-beginner-reader.ss" "lang")((modname ex42&43&44) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) (require 2htdp/image) (require 2htdp/universe) A WorldStat...
eff242b9dc7cbd9ba43fea418d323d29a42136959521c989a9114daa9b1b9180
issuu/ocaml-protoc-plugin
service_test.ml
open Service let service reader = let (s_deser, s_ser) = Ocaml_protoc_plugin.Service.make_service_functions Service.String_of_int.call in let req = s_deser reader |> (function Ok v -> v | Error _ -> failwith "Error") in string_of_int req |> s_ser let call i = let (c_ser, c_deser) = Ocaml_pr...
null
https://raw.githubusercontent.com/issuu/ocaml-protoc-plugin/3d8b3eeb48e2a58dc80fbfdf9d749e69676625ab/test/service_test.ml
ocaml
open Service let service reader = let (s_deser, s_ser) = Ocaml_protoc_plugin.Service.make_service_functions Service.String_of_int.call in let req = s_deser reader |> (function Ok v -> v | Error _ -> failwith "Error") in string_of_int req |> s_ser let call i = let (c_ser, c_deser) = Ocaml_pr...
1206a87c318e784748ba501fcc4eb2dfa036b94a1ee82c7af4d42fceb9ee1910
chrismurrph/show-graph
view_util.clj
(ns graph.fx.view-util (:require [cljfx.api :as fx] [com.rpl.specter :as sp] [clojure.pprint :as pprint] [au.com.seasoft.general.dev :as dev])) (defn pp ([n x] (binding [pprint/*print-right-margin* n] (-> x pprint/pprint))) ([x] (pp 180 x))) (defn has-nils? [x] (seq (sp/select (sp/w...
null
https://raw.githubusercontent.com/chrismurrph/show-graph/b77e2e4222a97998bd147036e26671abd515679b/src/test/graph/fx/view_util.clj
clojure
(ns graph.fx.view-util (:require [cljfx.api :as fx] [com.rpl.specter :as sp] [clojure.pprint :as pprint] [au.com.seasoft.general.dev :as dev])) (defn pp ([n x] (binding [pprint/*print-right-margin* n] (-> x pprint/pprint))) ([x] (pp 180 x))) (defn has-nils? [x] (seq (sp/select (sp/w...
0b19ef36d384694ce247a28d93b0e479b1dbc987720aab2bb12766cbe0e464eb
Eduap-com/WordMat
elim.lisp
-*- Mode : Lisp ; Package : Maxima ; Syntax : Common - Lisp ; Base : 10 -*- ; ; ; ; (in-package :maxima) (defmfun $eliminate (eqns vars) (let ((sv nil) (l ($length eqns)) (flag nil) ($dispflag nil)) (declare (special $dispflag)) (unless (and ($listp eqns) ($listp vars)) (merror (intl:gettext "e...
null
https://raw.githubusercontent.com/Eduap-com/WordMat/83c9336770067f54431cc42c7147dc6ed640a339/Windows/ExternalPrograms/maxima-5.45.1/share/maxima/5.45.1/src/elim.lisp
lisp
Package : Maxima ; Syntax : Common - Lisp ; Base : 10 -*- ; ; ; ;
(in-package :maxima) (defmfun $eliminate (eqns vars) (let ((sv nil) (l ($length eqns)) (flag nil) ($dispflag nil)) (declare (special $dispflag)) (unless (and ($listp eqns) ($listp vars)) (merror (intl:gettext "eliminate: arguments must both be lists."))) (when (> ($length vars) l) (merror...
8d6f7a602fbdc67cb9ecc7bc165654d4f570052cd1c3f250474430373521fb0a
c4-project/c4f
modify_header.mli
This file is part of c4f . Copyright ( c ) 2018 - 2022 C4 Project c4 t itself is licensed under the MIT License . See the LICENSE file in the project root for more information . Parts of c4 t are based on code from the Herdtools7 project ( ) : see the LICENSE.herd file in the project...
null
https://raw.githubusercontent.com/c4-project/c4f/8939477732861789abc807c8c1532a302b2848a5/lib/cmd_c/src/modify_header.mli
ocaml
* [command] is the top-level 'act-c modify-header' command.
This file is part of c4f . Copyright ( c ) 2018 - 2022 C4 Project c4 t itself is licensed under the MIT License . See the LICENSE file in the project root for more information . Parts of c4 t are based on code from the Herdtools7 project ( ) : see the LICENSE.herd file in the project...
a2d9ba482796f627b1bbb97aa7345797af2b3ea313fc8ac42266980faac6e613
yzh44yzh/erl_fun_composition
main_3.erl
-module(main_3). -export([main/0]). -spec main() -> {ok, books_shop:order()} | {error, term()}. main() -> handle_create_order(books_shop:test_data()). -spec handle_create_order(map()) -> {ok, books_shop:order()} | {error, term()}. handle_create_order(Data0) -> try Data = books_shop:validate_in...
null
https://raw.githubusercontent.com/yzh44yzh/erl_fun_composition/20216a286a970853b8fa36dd1a5f55fab386db2c/src_erl/main_3.erl
erlang
-module(main_3). -export([main/0]). -spec main() -> {ok, books_shop:order()} | {error, term()}. main() -> handle_create_order(books_shop:test_data()). -spec handle_create_order(map()) -> {ok, books_shop:order()} | {error, term()}. handle_create_order(Data0) -> try Data = books_shop:validate_in...
246d4081f9fb7b48c80eefb43f5012a91ef57e0e257b859250dbfe3a7658fccf
sbcl/sbcl
envanal.lisp
;;;; This file implements the environment analysis phase for the ;;;; compiler. This phase annotates IR1 with a hierarchy environment ;;;; structures, determining the environment that each LAMBDA ;;;; allocates its variables and finding what values are closed over ;;;; by each environment. This software is part of t...
null
https://raw.githubusercontent.com/sbcl/sbcl/7dbdcb507d37a4df6115fd729d4f52566ecc1883/src/compiler/envanal.lisp
lisp
This file implements the environment analysis phase for the compiler. This phase annotates IR1 with a hierarchy environment structures, determining the environment that each LAMBDA allocates its variables and finding what values are closed over by each environment. more information. public domain. The software ...
This software is part of the SBCL system . See the README file for This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the (in-package "SB-C") 1 . Make an ENVIRONMENT structure for each non - LET LAMBDA , assigning the LAMBDA - ENVIRONMEN...
1e8c6064022ab69d8e6efc09ed35f9ec9c08b3edab2c460e1a2c3c9647017db0
biocad/cobot
JuliaSpec.hs
module JuliaSpec where import Bio.Chain.Alignment import Bio.Chain.Alignment.Scoring import Test.Hspec juliaBasedTests :: Spec juliaBasedTests = do juliaGlobal juliaSemiglobal juliaLocal juliaGlobal :: Spec juliaGlobal = do describe "Global Alignment, Simple Gap" $ do let te...
null
https://raw.githubusercontent.com/biocad/cobot/44a3f017a8630812e45f7ca2dba1ca4f20f05c35/test/JuliaSpec.hs
haskell
| scoremodel = AffineGapScoreModel(EDNAFULL, gap_open=0, gap_extend=-9); GC - AT - TCG - ACT -- CACTCATGT - CGCCTA - GAG - A --- GAA -- T - TTAT - A----\ ATGAC - TT - GTG -- GC -- GTTCT -- TGGACTT----TTAGA - G -- CCGAAATGCAT - G-\ --GG---A-A-AC----A----------TT---AA-G--G----ATG-T--A-TTTG----T---\ C -- TGA -- G - C--...
module JuliaSpec where import Bio.Chain.Alignment import Bio.Chain.Alignment.Scoring import Test.Hspec juliaBasedTests :: Spec juliaBasedTests = do juliaGlobal juliaSemiglobal juliaLocal juliaGlobal :: Spec juliaGlobal = do describe "Global Alignment, Simple Gap" $ do let te...
a3b0ce78d3747dbfd93c283938d4aff4fd2f4e6869776a47af704f3b50427f95
nha/boot-uglify
trieme.clj
(ns nha.boot-uglify.trieme) ;; CLI trireme cli.js --input-dir dist/ --output-dir target/ ;; works (like the npm module at least)! html - minifier --minify - js sample1.js -o aaa.min.js ; ; works ? ( ) The NodeEnvironment controls the environment for many scripts (comment (:refer-clojure :exclude [get]) (:req...
null
https://raw.githubusercontent.com/nha/boot-uglify/df0cffb2734bdd1db2be1fab5fcefdda5f735e68/src/nha/boot_uglify/trieme.clj
clojure
CLI trireme cli.js --input-dir dist/ --output-dir target/ ;; works (like the npm module at least)! ; works ? ( ) [org.mozilla.javascript Context ImporterTopLevel ScriptableObject] an experiment for later Pass in the script file name, a File pointing to the actual script, and an Object[] containing "argv" --input-...
(ns nha.boot-uglify.trieme) The NodeEnvironment controls the environment for many scripts (comment (:refer-clojure :exclude [get]) (:require [clojure.java.io :as io] [clojure.string :as string]) (:import [java.io StringWriter FileInputStream FileOutputStream File] [javax.script ScriptEngine ...
17c060420c5a373349a542837f3ece3dc232af5450a0ff271eb29f437283e18a
deadcode/Learning-CL--David-Touretzky
6.7.lisp
(defun NEXT-TO-LAST (x) (second (reverse x))) (format t "~s = ~s~%" '(NEXT-TO-LAST '(a b c d e)) (NEXT-TO-LAST '(a b c d e))) (format t "~s = ~s~%" '(NEXT-TO-LAST '(a b (c d) e)) (NEXT-TO-LAST '(a b (c d) e))) (defun NEXT-TO-LAST (x) (nth (- (length x) 2) x)) (format t "~s = ~s~%" '(NEXT-TO-LAST '(a b c...
null
https://raw.githubusercontent.com/deadcode/Learning-CL--David-Touretzky/b4557c33f58e382f765369971e6a4747c27ca692/Chapter%206/6.7.lisp
lisp
(defun NEXT-TO-LAST (x) (second (reverse x))) (format t "~s = ~s~%" '(NEXT-TO-LAST '(a b c d e)) (NEXT-TO-LAST '(a b c d e))) (format t "~s = ~s~%" '(NEXT-TO-LAST '(a b (c d) e)) (NEXT-TO-LAST '(a b (c d) e))) (defun NEXT-TO-LAST (x) (nth (- (length x) 2) x)) (format t "~s = ~s~%" '(NEXT-TO-LAST '(a b c...
91f681965e60cede54ca3c56551f6d1ef234b1453c2886a9c99373037f43d763
byron-network/byron-dex
Main.hs
module Main(main) where import Middleware.App (runApp) main :: IO () main = runApp
null
https://raw.githubusercontent.com/byron-network/byron-dex/e8d541deb106e14142183f18844bb328c5cfbd40/middleware/app/Main.hs
haskell
module Main(main) where import Middleware.App (runApp) main :: IO () main = runApp
22bf4a605d23b66c228cc3ef01794f0533cba2169ff089b351df4435c6f47258
Dasudian/DSDIN
dsdvm_eeevm_memory.erl
%%%------------------------------------------------------------------- ( C ) 2018 , Dasudian Technologies %%% @doc %%% Handle memory %%% @end %%% %%%------------------------------------------------------------------- -module(dsdvm_eeevm_memory). -export([ get_area/3 , load/2 , size_in_words/1 ...
null
https://raw.githubusercontent.com/Dasudian/DSDIN/b27a437d8deecae68613604fffcbb9804a6f1729/apps/dsdvm/src/dsdvm_eeevm_memory.erl
erlang
------------------------------------------------------------------- @doc Handle memory @end ------------------------------------------------------------------- ==================================================================== API ==================================================================== ========...
( C ) 2018 , Dasudian Technologies -module(dsdvm_eeevm_memory). -export([ get_area/3 , load/2 , size_in_words/1 , store/3 , store8/3 , write_area/3 ]). -include("dsdvm_eeevm.hrl"). -include("dsdvm_gas.hrl"). get_area(From , To , State ) when From = : = To - > { <...
7da187fa5802d8a58225d9c306e6486bf8b306518adf21548f57a010046f73ca
MarcWeber/hasktags
typesig.hs
-- TAGS not to be found a, b, c :: String a, b, c :: String
null
https://raw.githubusercontent.com/MarcWeber/hasktags/65bcbecb695f0d2f31c2436958480535b8193b6c/testcases/typesig.hs
haskell
TAGS not to be found a, b, c :: String
a, b, c :: String
58af2355872121d71d39a69368e94dfd6c44689f82c4e4bc6167e1a8b7955003
facebook/infer
int.ml
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
null
https://raw.githubusercontent.com/facebook/infer/f1d1b105ed07c543d7596765eb2291a335513318/sledge/nonstdlib/int.ml
ocaml
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
744007689e7e03192e5637ba65c3f7f93b9dfe65a843a89941f34cca25137e8b
turion/rhine
MSF.hs
{- | Collect and process all incoming values statefully and with time stamps. -} # LANGUAGE RecordWildCards # module FRP.Rhine.ResamplingBuffer.MSF where -- dunai import Data.MonadicStreamFunction.InternalCore -- rhine import FRP.Rhine.ResamplingBuffer -- | Given a monadic stream function that accepts -- a varyin...
null
https://raw.githubusercontent.com/turion/rhine/f997c3593f65361461f62b474661501a5b8ef879/rhine/src/FRP/Rhine/ResamplingBuffer/MSF.hs
haskell
| Collect and process all incoming values statefully and with time stamps. dunai rhine | Given a monadic stream function that accepts a varying number of inputs (a list), that collects all input in a timestamped list. ^ The monadic stream function that consumes a single time stamp for the moment when an ...
# LANGUAGE RecordWildCards # module FRP.Rhine.ResamplingBuffer.MSF where import Data.MonadicStreamFunction.InternalCore import FRP.Rhine.ResamplingBuffer a ` ResamplingBuffer ` can be formed msfBuffer :: Monad m => MSF m (TimeInfo cl2, [(TimeInfo cl1, a)]) b -> ResamplingBuffer m cl1 cl2 a b msfBuffer = m...
4e27e4b3e117f5f91bf16ea2af3f04ccd321d881b375fa8fa94fe11a6ab4aab8
JacquesCarette/Drasil
Class.hs
module Language.Drasil.Code.Expr.Class where import Language.Drasil (Callable, IsArgumentName, ExprC(sy), HasSpace(..), Space(Actor), HasSymbol, HasUID(..)) import Language.Drasil.Chunk.CodeBase (CodeIdea, CodeVarChunk) import Language.Drasil.Code.Expr (CodeExpr(FCall, New, Message, Field)) import Control.Lens ( (^...
null
https://raw.githubusercontent.com/JacquesCarette/Drasil/77398324a45f8ea9ef6d8c5ec22cabaf6c931c77/code/drasil-code-base/lib/Language/Drasil/Code/Expr/Class.hs
haskell
module Language.Drasil.Code.Expr.Class where import Language.Drasil (Callable, IsArgumentName, ExprC(sy), HasSpace(..), Space(Actor), HasSymbol, HasUID(..)) import Language.Drasil.Chunk.CodeBase (CodeIdea, CodeVarChunk) import Language.Drasil.Code.Expr (CodeExpr(FCall, New, Message, Field)) import Control.Lens ( (^...
5cf77d7823472633af3a61033a2e9769458059173629c1e765312e17dac43272
bsansouci/bsb-native
odoc_ast.mli
(***********************************************************************) (* *) (* OCamldoc *) (* *) , projet ...
null
https://raw.githubusercontent.com/bsansouci/bsb-native/9a89457783d6e80deb0fba9ca7372c10a768a9ea/vendor/ocaml/ocamldoc/odoc_ast.mli
ocaml
********************************************************************* OCamldoc ...
, projet Cristal , INRIA Rocquencourt Copyright 2001 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 . type typedtree = Typedtree.structure * Ty...
2dc9f13fb184246f99265d2b1b51a7873723965fafa8f003834200d5f373cf2d
calyau/maxima
complex_dynamics.lisp
complex_dynamics.lisp - functions julia , mandelbrot and rk ;; Copyright ( C ) 2006 - 2013 < > ;; ;; This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , o...
null
https://raw.githubusercontent.com/calyau/maxima/9352a3f5c22b9b5d0b367fddeb0185c53d7f4d02/share/dynamics/complex_dynamics.lisp
lisp
This program is free software; you can redistribute it and/or modify either version 2 of the License , or (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 MERCHANTABILITY or FITNESS FOR A PARTIC...
complex_dynamics.lisp - functions julia , mandelbrot and rk Copyright ( C ) 2006 - 2013 < > 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 Foundation , Inc. , 51 Franklin Street , Fifth Floor , Boston , MA 02110 - 13...
b1cb3c3d45d233ef58b28cd2b67ff47f66ba4a9e06bf03a771fc2869bf166129
racket/racket7
empty-set.rkt
#lang racket/base (define empty-set '()) ;; This module tests splicing into an existing collection ;; (and the associated conflict checking).
null
https://raw.githubusercontent.com/racket/racket7/5dbb62c6bbec198b4a790f1dc08fef0c45c2e32b/pkgs/racket-test/tests/pkg/test-pkgs/pkg-test1/data/empty-set.rkt
racket
This module tests splicing into an existing collection (and the associated conflict checking).
#lang racket/base (define empty-set '())
a38564f74d18eaabae9ce1c8b849436a04a9b199f31b3b9421f6085aadcd7bb5
LexiFi/lrt
ppx.ml
(******************************************************************************) Copyright ( C ) 2020 by LexiFi . (* *) This source file is released under the terms of the MIT license as part ...
null
https://raw.githubusercontent.com/LexiFi/lrt/038ff963bd066c9d94cffb9896b04b6b8696f136/test/ppx.ml
ocaml
**************************************************************************** of the lrt package. Details can be found in the attached LICENSE file. **************************************************************************** type 'a bad...
Copyright ( C ) 2020 by LexiFi . This source file is released under the terms of the MIT license as part open Lrt let print x = Format.printf "%a\n%!" Ttype.print x module Basic = struct type t = int [@@deriving t] type pair1 = string * int [@@deriving t] ...
b647c5bafda26186ac38ff07896db282b2cf0bd6a323d40bb89f6f8c1941f791
stylewarning/deprecated-coalton-prototype
parse-value.lisp
;;;; parse-value.lisp (in-package #:coalton-impl) ;;; For values, we follow the usual grammar for the simply typed ;;; lambda calculus, with a modicum of practical extensions. The ;;; precise grammar is: ;;; < atom > : = < CL INTEGER > ;;; | <CL STRING> ;;; ;;; <expr> := <atom> ;;; |...
null
https://raw.githubusercontent.com/stylewarning/deprecated-coalton-prototype/4a42ffb4222fde3abfd1b50d96e455ff2eef9fe8/src/parse-value.lisp
lisp
parse-value.lisp For values, we follow the usual grammar for the simply typed lambda calculus, with a modicum of practical extensions. The precise grammar is: | <CL STRING> <expr> := <atom> | <variable> ; variable | (<expr> <expr> ...) ...
(in-package #:coalton-impl) < atom > : = < CL INTEGER > | ( ( ( < variable > < expression > ) ... ) < expression > ) (defun parse-form (form) "Parse the value form FORM into a NODE structure. This also performs macro-expansion. This does not attempt to do any sort of analysis whatsoever. It i...
0f1b99166bed32c6122373cd59d086e092eb2ded9513d5deeb68fb1d0792aa20
broadinstitute/firecloud-ui
foundation_dropdown.cljs
(ns broadfcui.components.foundation-dropdown (:require [dmohs.react :as react] [broadfcui.common :as common] [broadfcui.common.icons :as icons] [broadfcui.common.style :as style] [broadfcui.utils :as utils] )) (react/defc FoundationDropdown {:close (fn [{:keys [locals]}] (.foundation (js...
null
https://raw.githubusercontent.com/broadinstitute/firecloud-ui/8eb077bc137ead105db5665a8fa47a7523145633/src/cljs/main/broadfcui/components/foundation_dropdown.cljs
clojure
empty string makes react attach a property with no value timeout to allow click handlers to fire
(ns broadfcui.components.foundation-dropdown (:require [dmohs.react :as react] [broadfcui.common :as common] [broadfcui.common.icons :as icons] [broadfcui.common.style :as style] [broadfcui.utils :as utils] )) (react/defc FoundationDropdown {:close (fn [{:keys [locals]}] (.foundation (js...
62c88882c5cb657a37b1f81d791ddc48adfa64efe07e4c6b5e71956be24ff3a1
liqd/aula
FileUploadSpec.hs
{-# LANGUAGE DataKinds #-} {-# LANGUAGE FlexibleContexts #-} # LANGUAGE OverloadedStrings # {-# LANGUAGE RankNTypes #-} {-# LANGUAGE TypeOperators #-} {-# LANGUAGE ScopedTypeVariables #-} # OPTIONS_GHC -Werror -Wall # module Frontend.Page.FileUploadSpec where import qualifi...
null
https://raw.githubusercontent.com/liqd/aula/f96dbf85cd80d0b445e7d198c9b2866bed9c4e3d/tests/Frontend/Page/FileUploadSpec.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE RankNTypes # # LANGUAGE TypeOperators # # LANGUAGE ScopedTypeVariables # valid input input sanitizing
# LANGUAGE OverloadedStrings # # OPTIONS_GHC -Werror -Wall # module Frontend.Page.FileUploadSpec where import qualified Data.ByteString.Lazy.Char8 as LBS import AulaTests import Frontend.Page.Admin import qualified Frontend.Path as U fileUploadPath :: (IsString s) => String -> s fileUploadPath rest = fro...
ea3a98d682036339bea11c4ed022e1e598880d18d39af6628e1573e3a84fcdbe
haskell-beam/beam
Lenses.hs
# LANGUAGE PolyKinds # # LANGUAGE UndecidableInstances # module Database.Beam.Schema.Lenses ( tableLenses , TableLens(..) , dbLenses ) where import Database.Beam.Schema.Tables import Control.Monad.Identity import Data.Kind (Type) import Data.Proxy import GHC.Generics import Lens.Micro hiding (to) cla...
null
https://raw.githubusercontent.com/haskell-beam/beam/596981a1ea6765b9f311d48a2ec4d8460ebc4b7e/beam-core/Database/Beam/Schema/Lenses.hs
haskell
| Automatically deduce lenses for a table over any column tag. lenses at global level by doing a top-level pattern match on 'tableLenses', replacing are generated per-column, not per field in the record. Thus if you have For example, > data AuthorT f = AuthorT > , _authorFirstName :: Column...
# LANGUAGE PolyKinds # # LANGUAGE UndecidableInstances # module Database.Beam.Schema.Lenses ( tableLenses , TableLens(..) , dbLenses ) where import Database.Beam.Schema.Tables import Control.Monad.Identity import Data.Kind (Type) import Data.Proxy import GHC.Generics import Lens.Micro hiding (to) cla...
42875e0db83bc1716386db4d62c11abf361af1b661983130c9be2421186ec913
xvw/muhokama
user_model.mli
(** Defines some model related to an user. *) open Lib_common (** {1 Define an [user state]} *) module State = User_state (** {1 Types} *) (** The main type that define an user.*) type t = private { id : string ; name : string ; email : string ; state : State.t } * { 2 Form } The forms are models...
null
https://raw.githubusercontent.com/xvw/muhokama/11b33ebed939edb9ac09c03cb57c8138c76a6dff/app/models/user_model.mli
ocaml
* Defines some model related to an user. * {1 Define an [user state]} * {1 Types} * The main type that define an user. * A type that define the validation of a registration formlet. * A type that define the validation of a connection formlet. * A type that define the validation of a preference update formlet * * A t...
open Lib_common module State = User_state type t = private { id : string ; name : string ; email : string ; state : State.t } * { 2 Form } The forms are models intended to validate the data before it is persisted in the database . They exist for any kind of action , for example for login , ...
21f2d7d87a88de14892e075aa50c185e9a27007fb13869ea5cb1d9f52c921a85
racketscript/racketscript-playground
pattern-matching.rkt
#lang racket (require racketscript/interop racketscript/browser) (define (sexp->html sexp) (define (compile-attrs attr-names attr-vals) (foldl (λ (name val acc) (format "~a ~a='~a\'" acc name val)) "" attr-names attr-vals)) (match sexp [(list tag-name (list [l...
null
https://raw.githubusercontent.com/racketscript/racketscript-playground/cc5b7aaa49ac19d830a667f4334a7dbeb6aee98d/examples/pattern-matching.rkt
racket
#lang racket (require racketscript/interop racketscript/browser) (define (sexp->html sexp) (define (compile-attrs attr-names attr-vals) (foldl (λ (name val acc) (format "~a ~a='~a\'" acc name val)) "" attr-names attr-vals)) (match sexp [(list tag-name (list [l...
63296664b4847c2ccabec402e5401456faf2d3815f330a94b52cc1c6b3880ab8
erlang/rebar3
rebar_app_info.erl
-module(rebar_app_info). -export([new/0, new/1, new/2, new/3, new/4, new/5, app_to_map/1, update_opts/3, update_opts/2, update_opts_deps/2, discover/2, name/1, name/2, app_file_src/1, app_file_...
null
https://raw.githubusercontent.com/erlang/rebar3/048412ed4593e19097f4fa91747593aac6706afb/apps/rebar/src/rebar_app_info.erl
erlang
============================================================================ types ============================================================================ ============================================================================ API ============================================================================...
-module(rebar_app_info). -export([new/0, new/1, new/2, new/3, new/4, new/5, app_to_map/1, update_opts/3, update_opts/2, update_opts_deps/2, discover/2, name/1, name/2, app_file_src/1, app_file_...
3a3adbf08765fb15b2102a9b58638e56c4d1894e96f5174d9bfdea9546ff6401
yav/hobbit
Data.hs
module AST.Data ( DataDecl(..), dataName , TParam(..) , AlgData(..), DataCon(..) , KSig(..) , BitData(..), FlatCon(..), Field(..), Layout2(..), l2Fields , TypeSyn(..) , Struct(..), StructField(..) , ADT, ADT'(..), ADTCtr, ADTCtr'(..) , BDT(..), BDTCtr(..), TS(..) , BitField(..), FreeLayout(..), Layo...
null
https://raw.githubusercontent.com/yav/hobbit/31414ba1188f4b39620c2553b45b9e4d4aa40169/src/AST/Data.hs
haskell
XXX: we can probably get eliminate this type and simply keep the different declarations separate. Value, width ------------------------------------ Algebraic types Bitdata types Type synonyms Sugar ----------------------------------------------------------------------- Structs ----------------------------------...
module AST.Data ( DataDecl(..), dataName , TParam(..) , AlgData(..), DataCon(..) , KSig(..) , BitData(..), FlatCon(..), Field(..), Layout2(..), l2Fields , TypeSyn(..) , Struct(..), StructField(..) , ADT, ADT'(..), ADTCtr, ADTCtr'(..) , BDT(..), BDTCtr(..), TS(..) , BitField(..), FreeLayout(..), Layo...
a4b2a9addd4370af932702dbb3adc43ea4fd05f9a5169f7ce0459541e8861261
fpco/schoolofhaskell.com
Development.hs
# LANGUAGE CPP # module Settings.Development where import Prelude development :: Bool development = #if DEVELOPMENT True #else False #endif production :: Bool production = not development
null
https://raw.githubusercontent.com/fpco/schoolofhaskell.com/15ec1a03cb9d593ee9c0d167dc522afe45ba4f8e/src/Settings/Development.hs
haskell
# LANGUAGE CPP # module Settings.Development where import Prelude development :: Bool development = #if DEVELOPMENT True #else False #endif production :: Bool production = not development
059688a31ce1d6dfa03e1aa67e09502eff45f6408f5843770becfe13e1cefeaf
jerith/chaocaml
entities.ml
module User = struct type t = { id : string; mutable username : string; mutable discriminator : string; mutable avatar : string option; } let make_user id username discriminator avatar = { id; username; discriminator; avatar } let from_json user_json = { id = Json_utils.get_string "id"...
null
https://raw.githubusercontent.com/jerith/chaocaml/9489ee4386f9e97becebc5afab85cada6c5466ab/lib/entities.ml
ocaml
TODO: More stuff? Channel ids TODO: More stuff? Implicit TODO: More stuff?
module User = struct type t = { id : string; mutable username : string; mutable discriminator : string; mutable avatar : string option; } let make_user id username discriminator avatar = { id; username; discriminator; avatar } let from_json user_json = { id = Json_utils.get_string "id"...
9b9e2839b5c797bba091da2a8783c95786f5c088cf7fcd5cbaf887c6ffd64981
exercism/racket
word-count-test.rkt
#lang racket ; Tests adapted from `problem-specifications/canonical-data.json v1.4.0 (require "word-count.rkt") (module+ test (require rackunit rackunit/text-ui) (define-binary-check (hashes-equal? actual expected) (equal? (sort (hash->list actual) string<? #:key car) (sort (hash->list expected) ...
null
https://raw.githubusercontent.com/exercism/racket/4110268ed331b1b4dac8888550f05d0dacb1865b/exercises/practice/word-count/word-count-test.rkt
racket
Tests adapted from `problem-specifications/canonical-data.json v1.4.0
#lang racket (require "word-count.rkt") (module+ test (require rackunit rackunit/text-ui) (define-binary-check (hashes-equal? actual expected) (equal? (sort (hash->list actual) string<? #:key car) (sort (hash->list expected) string<? #:key car))) (define suite (test-suite "For each wo...
33d05f51c3e2ae743262cdcc26a355876a93029706529d35ebfa916e3daff0dc
gowthamk/ocaml-irmin
canvas.ml
exception Empty module type ATOM = sig type t val t : t Irmin.Type.t val compare : t -> t -> int val to_string : int32 -> string val of_string : string -> t end Heap is defined as variant type , Empty and T of node where node is a record type consisting of rank of node , root , left node a...
null
https://raw.githubusercontent.com/gowthamk/ocaml-irmin/54775f6c3012e87d2d0308f37a2ec7b27477e887/heap_leftist/fs/canvas.ml
ocaml
Rank of node which is length of the path between the node and the right most leaf gives the root and then merge the rest insert x h inserts the element in the heap delete_min deleters the head and then merge patch is the list of edits let (xx, s') = pop_min s in let _ = assert (x = xx) in apply s' r
exception Empty module type ATOM = sig type t val t : t Irmin.Type.t val compare : t -> t -> int val to_string : int32 -> string val of_string : string -> t end Heap is defined as variant type , Empty and T of node where node is a record type consisting of rank of node , root , left node a...
fd3b14ea133389e1b0585d7c794683b2bc039ccc851dc3e0e627d941ac8286bc
SFML-haskell/SFML
SFTexturable.hs
module SFML.Graphics.SFTexturable where import SFML.Graphics.Color import SFML.Graphics.Rect import SFML.Graphics.Types class SFTexturable a where | Change the source texture of a . -- -- The texture argument refers to a texture that must -- exist as long as the texturable uses it. Indeed, the t...
null
https://raw.githubusercontent.com/SFML-haskell/SFML/1d1ceee6bc782f4f194853fbd0cc4acb33b86d41/src/SFML/Graphics/SFTexturable.hs
haskell
The texture argument refers to a texture that must exist as long as the texturable uses it. Indeed, the texturable doesn't store its own copy of the texture, but rather keeps a pointer to the one that you passed to this function. If the source texture is destroyed and the texturable tries to use it, the behavio...
module SFML.Graphics.SFTexturable where import SFML.Graphics.Color import SFML.Graphics.Rect import SFML.Graphics.Types class SFTexturable a where | Change the source texture of a . If resetRect is ' True ' , the TextureRect property of setTexture :: a -> IO () setTextureRect ...
f84c91fcd7115109bbc91bb460e466efb84352af3332b386b985f2a3288f407c
UBTECH-Walker/WalkerSimulationFor2020WAIC
CruiserJointSetting.lisp
; Auto-generated. Do not edit! (cl:in-package cruiser_msgs-msg) ;//! \htmlinclude CruiserJointSetting.msg.html (cl:defclass <CruiserJointSetting> (roslisp-msg-protocol:ros-message) ((joint_num :reader joint_num :initarg :joint_num :type cl:fixnum :initform 0) (cmd :reader cmd :initarg ...
null
https://raw.githubusercontent.com/UBTECH-Walker/WalkerSimulationFor2020WAIC/7cdb21dabb8423994ba3f6021bc7934290d5faa9/walker_WAIC_18.04_v1.2_20200616/walker_install/share/common-lisp/ros/cruiser_msgs/msg/CruiserJointSetting.lisp
lisp
Auto-generated. Do not edit! //! \htmlinclude CruiserJointSetting.msg.html
(cl:in-package cruiser_msgs-msg) (cl:defclass <CruiserJointSetting> (roslisp-msg-protocol:ros-message) ((joint_num :reader joint_num :initarg :joint_num :type cl:fixnum :initform 0) (cmd :reader cmd :initarg :cmd :type cl:string :initform "") (jointIndex :reader jointInd...
201965a075fe72450e2f6f923c2bd95912ab69d5028ac818e33070fa0805dcaf
rfkm/zou
namespace.cljc
(ns zou.util.namespace (:require #?@(:clj [[bultitude.core :as b] [clojure.tools.logging :as log] [clojure.java.io :as io] [hara.namespace.eval :as ne] [potemkin.namespaces :as pn]]))) (defmacro cljs-import-vars [& syms] (let [unra...
null
https://raw.githubusercontent.com/rfkm/zou/228feefae3e008f56806589cb8019511981f7b01/common/src/zou/util/namespace.cljc
clojure
NB: The CLJS version doesn't automatically require namespaces the vars to import belong to, so you need to add them explicitly to the ns declaration. Also, it doesn't import macros. Clj only stuff
(ns zou.util.namespace (:require #?@(:clj [[bultitude.core :as b] [clojure.tools.logging :as log] [clojure.java.io :as io] [hara.namespace.eval :as ne] [potemkin.namespaces :as pn]]))) (defmacro cljs-import-vars [& syms] (let [unra...
221304c923a624f0baf24b9c98c9889bcff7128ee2ad5c15737dc67da2a5b2a9
fpottier/mpri-2.4-projet-2022-2023
Freshen.mli
open Linear * [ transform prog ] transforms the program [ prog ] into an equivalent program with the property that , inside each function , two distinct local variables can not have the same name . This property is currently achieved in a brutal way by renaming every local variable to a fresh name...
null
https://raw.githubusercontent.com/fpottier/mpri-2.4-projet-2022-2023/1ce08cadfb3a8ec8bc72609bc82873b29d2ce241/src/Freshen.mli
ocaml
open Linear * [ transform prog ] transforms the program [ prog ] into an equivalent program with the property that , inside each function , two distinct local variables can not have the same name . This property is currently achieved in a brutal way by renaming every local variable to a fresh name...
9948422666c784c0ee1ddf1ca520e8b3844c58784211d8aae6835f033a523f3e
WeiDUorg/weidu
myhashtbl.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/WeiDUorg/weidu/a4048b11e6904f39ea1f956a36018e5d9a6e8e5c/hashtbl-4.03.0/myhashtbl.ml
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the external seeded_hash_param : int -> int -> int -> 'a -> int = "caml_hash" [@@noalloc] external old_has...
55fa14dc8919521a08acf46c68e829c2631a2138d5a9cd6d3acf055f60e4f8f9
Clojure2D/clojure2d-examples
ex16_signal.clj
;; apply analog filter on image (ns ex16-analog (:require [clojure2d.core :as c2d] [clojure2d.pixels :as p] [clojure2d.color :as c] [fastmath.core :as m] [fastmath.signal :as s] [clojure2d.extra.signal :as sig]) (:import [clojure2d.pixels Pixels])) (set!...
null
https://raw.githubusercontent.com/Clojure2D/clojure2d-examples/9de82f5ac0737b7e78e07a17cf03ac577d973817/src/ex16_signal.clj
clojure
apply analog filter on image load image dj-eq lowpass filter with all in YPbPr colorspace full process without use of filter-channels fm filter Wrong way (run multiple times) Good way vcf303 normalize (or equalize) after filtering saving and loading signal to and from file
(ns ex16-analog (:require [clojure2d.core :as c2d] [clojure2d.pixels :as p] [clojure2d.color :as c] [fastmath.core :as m] [fastmath.signal :as s] [clojure2d.extra.signal :as sig]) (:import [clojure2d.pixels Pixels])) (set! *warn-on-reflection* true) (set...
13828d0ca37b415ad49379b88fe9c119ebf05665c4469cedf07bde10b2e46d98
dbuenzli/otfm
otftrip.ml
--------------------------------------------------------------------------- Copyright ( c ) 2013 The otfm programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) ...
null
https://raw.githubusercontent.com/dbuenzli/otfm/b61821751f807663818034b883e500ccaa856088/test/otftrip.ml
ocaml
Convenience decodes Font and file iterators Table pretty printers XXX these would be good to rewrite with a few nice combinators cmap Dump hmtx Sniff Command line interface Converters [uU]:UTF8 [uU]+%X Common options Commands and sub commands
--------------------------------------------------------------------------- Copyright ( c ) 2013 The otfm programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) ...
d082bb6b98c38e4806a6b4abac0661d1565e0916f08554277266cdae31422cd9
mbutterick/beautiful-racket
reader-utils.rkt
#lang racket/base (require (for-syntax racket/base racket/syntax br/syntax) br/define syntax/strip-context) (provide (all-defined-out)) (define (apply-reader read-syntax-proc str) (syntax->datum (read-syntax-proc #f (open-input-string str)))) ;; bw compat (define test-reader apply-reader) ;; `define-read-functions...
null
https://raw.githubusercontent.com/mbutterick/beautiful-racket/f0e2cb5b325733b3f9cbd554cc7d2bb236af9ee9/beautiful-racket-lib/br/reader-utils.rkt
racket
bw compat `define-read-functions` simplifies support for the standard reading API, which asks for `read` and `read-syntax`. in general, `read` is just the datum from the result of `read-syntax`. use prefixed names to prevent namespace collisions with possibly existing `read` & `read-syntax` don't care whether thi...
#lang racket/base (require (for-syntax racket/base racket/syntax br/syntax) br/define syntax/strip-context) (provide (all-defined-out)) (define (apply-reader read-syntax-proc str) (syntax->datum (read-syntax-proc #f (open-input-string str)))) (define test-reader apply-reader) (define-macro (define-read-and-read-s...
40b6ffee6efbe84bf6b0109b89c5b057015ec7465e8018ecfc00ab159d3a460d
rpt/gen_tcp_server
echo_server.erl
%%------------------------------------------------------------------------------ Copyright 2012 %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless requir...
null
https://raw.githubusercontent.com/rpt/gen_tcp_server/8f1f0daa35fbca6db9781c8df20187ca139857dc/examples/echo_server.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, eithe...
Copyright 2012 Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @author < > 2012 -module(echo_server). -behaviour(gen_tcp_server). -export([run/1]). -export([handle_accept/1, handle_tcp/3, h...
ae03c819406e90b0d9d98aba369bb0a8b05e3138f0baebd4b0f0117539968200
dyoo/whalesong
define-struct.rkt
#lang s-exp "../../lang/wescheme.ss" (printf "define-struct.rkt\n") (define-struct p (x y)) "should be a structure: " (make-p 3 4) (check-expect (p? (make-p 3 4)) true) (check-expect (p-x (make-p 3 4)) 3) (check-expect (p-y (make-p 3 4)) 4)
null
https://raw.githubusercontent.com/dyoo/whalesong/636e0b4e399e4523136ab45ef4cd1f5a84e88cdc/whalesong/tests/older-tests/moby-programs/define-struct.rkt
racket
#lang s-exp "../../lang/wescheme.ss" (printf "define-struct.rkt\n") (define-struct p (x y)) "should be a structure: " (make-p 3 4) (check-expect (p? (make-p 3 4)) true) (check-expect (p-x (make-p 3 4)) 3) (check-expect (p-y (make-p 3 4)) 4)
373f123f05a50f94c718664d2d50aad1fe6a017ca8c9a72ef791982d6ea317bb
jeffshrager/biobike
help-single.lisp
-*- Package : help ; mode : lisp ; base : 10 ; Syntax : Common - Lisp ; -*- (in-package :help) ;;; +=========================================================================+ | Copyright ( c ) 2002 - 2006 JP , , | ;;; | | ;;; ...
null
https://raw.githubusercontent.com/jeffshrager/biobike/5313ec1fe8e82c21430d645e848ecc0386436f57/BioLisp/Help/help-single.lisp
lisp
mode : lisp ; base : 10 ; Syntax : Common - Lisp ; -*- +=========================================================================+ | | | Permission is hereby granted, free of charge, to any person obtaining | | a copy of this software and as...
(in-package :help) | Copyright ( c ) 2002 - 2006 JP , , | | " Software " ) , to deal in the Software without restriction , including | | distribute , sublicense , and/or sell copies of the Software , and to | | permit persons to whom the Software is furnished to do so , subject to ...
8e6545b905aaa9b84b3d54f78553dfcc52e69ef9f01f95b4c9ac59e5b28b83ce
lamdu/momentu
Extended.hs
module Data.ByteString.Extended ( module SBS , lazify, strictify ) where import Data.ByteString as SBS import qualified Data.ByteString.Lazy as LBS import Prelude strictify :: LBS.ByteString -> ByteString strictify = SBS.concat . LBS.toChunks lazify :: ByteString -> LBS.ByteString la...
null
https://raw.githubusercontent.com/lamdu/momentu/7ba3c75469cfbad521d446e2bbefee1ed69d4406/src/Data/ByteString/Extended.hs
haskell
module Data.ByteString.Extended ( module SBS , lazify, strictify ) where import Data.ByteString as SBS import qualified Data.ByteString.Lazy as LBS import Prelude strictify :: LBS.ByteString -> ByteString strictify = SBS.concat . LBS.toChunks lazify :: ByteString -> LBS.ByteString la...
dbaf2af40ee041fc5e0d95fe0e8944dca4fa15e717015ac7db182df2e2871314
solidsnack/maccatcher
Fetch.hs
# LANGUAGE TupleSections # #-} | System specific routines for determing the MAC address and macros to help sort things out at compile time . sort things out at compile time. -} module System.Info.MAC.Fetch where import Data.MAC import Control.Monad import Control.Applicative ((<$>)) import Data....
null
https://raw.githubusercontent.com/solidsnack/maccatcher/09a8a225fadc4114252059ee81411fa134cf7332/System/Info/MAC/Fetch.hs
haskell
| Run @ifconfig@ or @ipconfig@, as appropriate, capturing its output.
# LANGUAGE TupleSections # #-} | System specific routines for determing the MAC address and macros to help sort things out at compile time . sort things out at compile time. -} module System.Info.MAC.Fetch where import Data.MAC import Control.Monad import Control.Applicative ((<$>)) import Data....
b86b91688043e86d64b539eb289f6a54902f762e29f7c378edc16016ee452053
dradtke/Lisp-Text-Editor
text-tag.lisp
(in-package :gtk-cffi) (defclass text-tag (g-object) ()) (defgtkslot text-tag priority :int) (defgtkfun event :boolean text-tag (event-object pobject) (event pobject) (text-iter pobject)) (defcenum wrap-mode :none :char :word :word-char) (defclass text-appearance (struct) ()) (defcstruct* text-ap...
null
https://raw.githubusercontent.com/dradtke/Lisp-Text-Editor/b0947828eda82d7edd0df8ec2595e7491a633580/quicklisp/dists/quicklisp/software/gtk-cffi-20120208-cvs/gtk/text-tag.lisp
lisp
(in-package :gtk-cffi) (defclass text-tag (g-object) ()) (defgtkslot text-tag priority :int) (defgtkfun event :boolean text-tag (event-object pobject) (event pobject) (text-iter pobject)) (defcenum wrap-mode :none :char :word :word-char) (defclass text-appearance (struct) ()) (defcstruct* text-ap...
a7b78a28b8f1ec49142a0e6ab1dbb3327e6f320674ccb297c65536d8e0bcad4c
mirage/ocaml-openflow
myocamlbuild.ml
OASIS_START DO NOT EDIT ( digest : ) module OASISGettext = struct # 21 " src / oasis / OASISGettext.ml " let ns_ str = str let s_ str = str let f_ (str : ('a, 'b, 'c, 'd) format4) = str let fn_ fmt1 fmt2 n = if n = 1 then fmt1^^"" else fmt2^^"" let init = [] en...
null
https://raw.githubusercontent.com/mirage/ocaml-openflow/dcda113745e8edc61b5508eb8ac2d1e864e1a2df/myocamlbuild.ml
ocaml
these functions are not really officially exported this lists all supported packages this is supposed to list available syntaxes, but I don't know how to do it. ocamlfind command by using Before_options one let command line options have an higher priority on the contrary using After_options will guarantee to...
OASIS_START DO NOT EDIT ( digest : ) module OASISGettext = struct # 21 " src / oasis / OASISGettext.ml " let ns_ str = str let s_ str = str let f_ (str : ('a, 'b, 'c, 'd) format4) = str let fn_ fmt1 fmt2 n = if n = 1 then fmt1^^"" else fmt2^^"" let init = [] en...
9c2c856d8dd2e0f9479ca9271333753841ee15fdf903559c327833f38556ea84
hjcapple/reading-sicp
table_1d.scm
#lang sicp P183 - [ 一维表格 ] (define (lookup key table) (let ((record (assoc key (cdr table)))) (if record (cdr record) false))) (define (assoc key records) (cond ((null? records) false) ((equal? key (caar records)) (car records)) (else (assoc key (cdr records))))) (define (i...
null
https://raw.githubusercontent.com/hjcapple/reading-sicp/7051d55dde841c06cf9326dc865d33d656702ecc/chapter_3/table_1d.scm
scheme
#lang sicp P183 - [ 一维表格 ] (define (lookup key table) (let ((record (assoc key (cdr table)))) (if record (cdr record) false))) (define (assoc key records) (cond ((null? records) false) ((equal? key (caar records)) (car records)) (else (assoc key (cdr records))))) (define (i...
9346fe177ecb4ca7c697188ca859798ac25e97e8c0605a45e98c2d08138ead0d
2600hz/kazoo
knm_windstream.erl
%%%----------------------------------------------------------------------------- ( C ) 2015 - 2020 , 2600Hz %%% @doc Handle client requests for phone number This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can o...
null
https://raw.githubusercontent.com/2600hz/kazoo/24519b9af9792caa67f7c09bbb9d27e2418f7ad6/core/kazoo_numbers/src/carriers/knm_windstream.erl
erlang
----------------------------------------------------------------------------- @doc Handle client requests for phone number @end ----------------------------------------------------------------------------- ------------------------------------------------------------------------------ @doc @end --------------------...
( C ) 2015 - 2020 , 2600Hz This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. -module(knm_windstream). -behaviour(knm_gen_carrier). -export([info/0]). -export([is_local/0]). -export([find_num...
db19d288530e1a0449447a0ad0a3dcf5a428dddcaa35475cd08263d64ba473fa
project-oak/hafnium-verification
PulseAttribute.ml
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
null
https://raw.githubusercontent.com/project-oak/hafnium-verification/6071eff162148e4d25a0fedaea003addac242ace/experiments/ownership-inference/infer/infer/src/pulse/PulseAttribute.ml
ocaml
* Make sure we don't depend on {!AbstractValue} to avoid attributes depending on values. Otherwise they become a pain to handle when comparing memory states. If you find you need to make attributes depend on {!AbstractValue} then remember to modify graph operations of {!PulseDomain} and the interprocedural...
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
dff34c1a5f8c6579ea0e0dcee877b91fbb34ad3eb4766f87e17cadfe50646ce5
mgmacias95/Criptografia_y_Computacion
AritmeticaModular.hs
module AritmeticaModular (extended_euclides, inverse, exponential_zn, descomposicion_2us, miller_rabin, baby_s_giant_s, cuadrados, raices_cuadradas, metodo_fermat, func, rho) where import System.Random -- instalar con cabal install random import System.I...
null
https://raw.githubusercontent.com/mgmacias95/Criptografia_y_Computacion/f70ed95b2b0debd65ad88d3b45448c4247fa6a45/AritmeticaModular.hs
haskell
instalar con cabal install random This just imports the type name Imports everything else, but with names prefixed with "Map." (with the period). ternary operator - > baby_s_giant_s 13 2 19 -> baby_s_giant_s 13 2 19
module AritmeticaModular (extended_euclides, inverse, exponential_zn, descomposicion_2us, miller_rabin, baby_s_giant_s, cuadrados, raices_cuadradas, metodo_fermat, func, rho) where import System.IO.Unsafe import Data.List import Data.Maybe data...
1ee89afefce7f69d828924c6a573c1b61f6e4eaaa7bf83d399763861392cd1cd
serioga/webapp-clojure-2020
perf.clj
(ns lib.clojure.perf "Faster implementation of some core functions." (:import (clojure.lang Counted))) (set! *warn-on-reflection* true) (set! *unchecked-math* :warn-on-boxed) •••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••• (defn merge-not-empty "Merges two has...
null
https://raw.githubusercontent.com/serioga/webapp-clojure-2020/c5d2e339b97bd499398a81adb9531ddd93f301fa/src/lib/clojure/perf.clj
clojure
Execution time mean : 701,882584 ns Execution time mean : 706,529319 ns Execution time mean : 556,198887 ns Execution time mean : 165,238901 ns
(ns lib.clojure.perf "Faster implementation of some core functions." (:import (clojure.lang Counted))) (set! *warn-on-reflection* true) (set! *unchecked-math* :warn-on-boxed) •••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••• (defn merge-not-empty "Merges two has...
10e83c6b47695e9db53aafc305518d723db520badc1e3aae0defcfc7efad7462
tonyg/racket-abnf
reader.rkt
#lang racket/base (provide (rename-out [read-abnf read-syntax])) (require (only-in racket/port port->string)) (require racket/pretty) (require "../rfc5234/abnf-semantics.rkt") (require "../runtime.rkt") ;; (require "../interpret.rkt") ;; (require (prefix-in boot: "../private/genboot-self-hosting.rkt")) ( define r...
null
https://raw.githubusercontent.com/tonyg/racket-abnf/1079bc5b30a227f52ac00a84dc3fcd539da5f8db/abnf/lang/reader.rkt
racket
(require "../interpret.rkt") (require (prefix-in boot: "../private/genboot-self-hosting.rkt"))
#lang racket/base (provide (rename-out [read-abnf read-syntax])) (require (only-in racket/port port->string)) (require racket/pretty) (require "../rfc5234/abnf-semantics.rkt") (require "../runtime.rkt") ( define rulelist - parser ( rulelist->parser boot : rulelist ' rulelist ) ) (require (prefix-in abnf: "../boo...
079194b1f10379fbfc67d9b62fa2a9f1dbd743d6d1e41c8676a2b8ab6e994fed
pedrovgs/HaskellKatas
FindingTheRightTriangleSpec.hs
module FindingTheRightTriangle.FindingTheRightTriangleSpec where import FindingTheRightTriangle.FindingTheRightTriangle import Test.Hspec spec = describe "FindingTheRightTriangle requirements" $ do it "every side of each triangle is less than or equal to 10" $ all (\(a,b,c) -> a <= 10 && b <...
null
https://raw.githubusercontent.com/pedrovgs/HaskellKatas/79ecaeecf80e71c44cfa06692f56dd3a6d1c7308/test/FindingTheRightTriangle/FindingTheRightTriangleSpec.hs
haskell
module FindingTheRightTriangle.FindingTheRightTriangleSpec where import FindingTheRightTriangle.FindingTheRightTriangle import Test.Hspec spec = describe "FindingTheRightTriangle requirements" $ do it "every side of each triangle is less than or equal to 10" $ all (\(a,b,c) -> a <= 10 && b <...
33766a32adccb9f24a942573cd996a11760cf0bb0499f3ed2991d5efac8d36cb
project-oak/hafnium-verification
cost.ml
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
null
https://raw.githubusercontent.com/project-oak/hafnium-verification/6071eff162148e4d25a0fedaea003addac242ace/experiments/ownership-inference/infer/infer/src/cost/cost.ml
ocaml
* We don't report when the cost is Top as it corresponds to subsequent 'don't know's. Instead, we report Top cost only at the top level per function. Execute head after the loop body to always report at loop head collect all prune nodes that occur in loop guards, needed for ControlDepAnalyzer computes the c...
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
5f0e5dd1cfda14a45c9d116f1a4ebe8d4fe8da193867b598a925b59c6927ea4a
clash-lang/clash-protocols
Internal.hs
| Internal module to prevent hs - boot files ( breaks ) Internal module to prevent hs-boot files (breaks Haddock) -} # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE NamedFieldPuns # # LANGUAGE TypeFamilyDependencies # # LANGUAGE UndecidableInstances # # LANGUAGE CPP # NFDataX and for Ide...
null
https://raw.githubusercontent.com/clash-lang/clash-protocols/3f3cbb1cec3153b15142d796801eb740961773c8/src/Protocols/Internal.hs
haskell
pairs of an input and output. As a diagram: @ +-----------+ Fwd a | | Fwd b +------->+ +--------> | | | | <--------+ +<-------+ | | +-----------+ @ the component on the left hand s...
| Internal module to prevent hs - boot files ( breaks ) Internal module to prevent hs-boot files (breaks Haddock) -} # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE NamedFieldPuns # # LANGUAGE TypeFamilyDependencies # # LANGUAGE UndecidableInstances # # LANGUAGE CPP # NFDataX and for Ide...
d2c0b3c2e96b5ba6c4e619d8175cbf9c85c41da61bf8e6158e85a1186b958353
e-bigmoon/haskell-blog
Example1.hs
#!/usr/bin/env stack {- stack repl --resolver lts-15.4 --package monad-logger --package persistent-sqlite --package text --package yesod -} {-# LANGUAGE DerivingStrategies #-} {-# LANGUAGE EmptyDataDecls #-} # LANGUAGE FlexibleContexts # {-# LANGUAGE GADTs ...
null
https://raw.githubusercontent.com/e-bigmoon/haskell-blog/5c9e7c25f31ea6856c5d333e8e991dbceab21c56/sample-code/yesod/ch19/Example1.hs
haskell
stack repl --resolver lts-15.4 --package monad-logger --package persistent-sqlite --package text --package yesod # LANGUAGE DerivingStrategies # # LANGUAGE EmptyDataDecls # # LANGUAGE GADTs # # LANGUAGE OverloadedStrings # # LANGUAGE QuasiQuotes ...
#!/usr/bin/env stack # LANGUAGE FlexibleContexts # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # # LANGUAGE StandaloneDeriving # # LANGUAGE TypeFamilies # # LANGUAGE ViewPatterns # import Control.Monad.Logger import ...
e3d2ef5edd52bccc72482b826ea8993f9824f052fface5c1eb4487c9353d27fc
8c6794b6/guile-tjit
poll.scm
;; poll Copyright ( C ) 2010 , 2011 , 2012 Free Software Foundation , Inc. ;;;; ;;;; 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...
null
https://raw.githubusercontent.com/8c6794b6/guile-tjit/9566e480af2ff695e524984992626426f393414f/module/ice-9/poll.scm
scheme
poll This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public either This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPO...
Copyright ( C ) 2010 , 2011 , 2012 Free Software Foundation , Inc. version 3 of the License , or ( at your option ) any later version . You should have received a copy of the GNU Lesser General Public Foundation , Inc. , 51 Franklin Street , Fifth Floor , Boston , USA (define-module (ice-9 poll) #:use-m...
d00d19637e24af3a09848e759b01d7b68fb051141cc6f1109b55afba2fffa4f7
MyDataFlow/ttalk-server
http_streamed.erl
%% Feel free to use, reuse and abuse the code in this file. -module(http_streamed). -behaviour(cowboy_http_handler). -export([init/3, handle/2, terminate/3]). init({_Transport, http}, Req, _Opts) -> {ok, Req, undefined}. handle(Req, State) -> Req2 = cowboy_req:set([{resp_state, waiting_stream}], Req), {ok, Req3} ...
null
https://raw.githubusercontent.com/MyDataFlow/ttalk-server/07a60d5d74cd86aedd1f19c922d9d3abf2ebf28d/deps/cowboy/test/http_SUITE_data/http_streamed.erl
erlang
Feel free to use, reuse and abuse the code in this file.
-module(http_streamed). -behaviour(cowboy_http_handler). -export([init/3, handle/2, terminate/3]). init({_Transport, http}, Req, _Opts) -> {ok, Req, undefined}. handle(Req, State) -> Req2 = cowboy_req:set([{resp_state, waiting_stream}], Req), {ok, Req3} = cowboy_req:chunked_reply(200, Req2), timer:sleep(100), c...
08fdd6225aa18f7548acc9370d6bf06551c5bf1c891b4d4fadba90a679bf8bf1
gonzojive/elephant
SQLDB-tests.lisp
;;; SQLDB-tests.lisp ;;; ;;; part of ;;; Elephant : an object - oriented database for Common Lisp ;;; Copyright ( c ) 2005,2006 by ;;; <> ;;; ;;; Elephant users are granted the rights to distribute and use this software as governed by the terms of the Lisp Lesser GNU Public License ;;; (), also known as the LL...
null
https://raw.githubusercontent.com/gonzojive/elephant/b29a012ab75ccea2fc7fc4f1e9d5e821f0bd60bf/tests/SQLDB-tests.lisp
lisp
SQLDB-tests.lisp part of <> Elephant users are granted the rights to distribute and use this software (), also known as the LLGPL.
Elephant : an object - oriented database for Common Lisp Copyright ( c ) 2005,2006 by as governed by the terms of the Lisp Lesser GNU Public License (asdf:operate 'asdf:load-op :elephant-tests) (in-package "ELEPHANT-TESTS") (setf *default-spec* *testpg-spec*) (do-backend-tests)
a2ac894b13a3604e46ebae38807f1fab30580a95925a6a97e0164dc7df0fa958
mistupv/cauder
cauder_plugin_prv_clean.erl
-module(cauder_plugin_prv_clean). %% API -export([init/1, do/1, format_error/1]). -include_lib("kernel/include/file.hrl"). -define(PROVIDER, ?MODULE). -define(DEPS, []). %%%============================================================================= %%% API %%%======================================================...
null
https://raw.githubusercontent.com/mistupv/cauder/ff4955cca4b0aa6ae9d682e9f0532be188a5cc16/_checkouts/cauder_plugin/src/cauder_plugin_prv_clean.erl
erlang
API ============================================================================= API ============================================================================= or commands to be run. Purely initiates the provider, and nothing else should be done here. Run the code for the plugin. The command line argument are ...
-module(cauder_plugin_prv_clean). -export([init/1, do/1, format_error/1]). -include_lib("kernel/include/file.hrl"). -define(PROVIDER, ?MODULE). -define(DEPS, []). Called when rebar3 first boots , before even parsing the arguments -spec init(rebar_state:t()) -> {ok, rebar_state:t()}. init(State) -> Provider...
711be520d164be1d67f1df7383f78282f3dc6c1eeef9c0c61a5e342cc9b45068
hercules-ci/hercules-ci-agent
Spec.hs
module Spec where import Hercules.CLI.CredentialsSpec import Hercules.CLI.JSONSpec import Test.Hspec import Prelude spec :: Spec spec = describe "The CLI" $ do Hercules.CLI.CredentialsSpec.spec Hercules.CLI.JSONSpec.spec
null
https://raw.githubusercontent.com/hercules-ci/hercules-ci-agent/216a1d178d57471b05f60bf3e21ce46d3fdc5f94/hercules-ci-cli/test/Spec.hs
haskell
module Spec where import Hercules.CLI.CredentialsSpec import Hercules.CLI.JSONSpec import Test.Hspec import Prelude spec :: Spec spec = describe "The CLI" $ do Hercules.CLI.CredentialsSpec.spec Hercules.CLI.JSONSpec.spec
f7888892fede81478de8d53078e0bde1d5c9f8c142ab29d3da7a4dc6885f44fb
rtoy/ansi-cl-tests
input-stream-p.lsp
;-*- Mode: Lisp -*- Author : Created : Tue Jan 13 19:39:27 2004 ;;;; Contains: Tests for INPUT-STREAM-P (in-package :cl-test) (deftest input-stream-p.1 (notnot-mv (input-stream-p *standard-input*)) t) (deftest input-stream-p.2 (notnot-mv (input-stream-p *terminal-io*)) t) (deftest input-strea...
null
https://raw.githubusercontent.com/rtoy/ansi-cl-tests/9708f3977220c46def29f43bb237e97d62033c1d/input-stream-p.lsp
lisp
-*- Mode: Lisp -*- Contains: Tests for INPUT-STREAM-P Error tests
Author : Created : Tue Jan 13 19:39:27 2004 (in-package :cl-test) (deftest input-stream-p.1 (notnot-mv (input-stream-p *standard-input*)) t) (deftest input-stream-p.2 (notnot-mv (input-stream-p *terminal-io*)) t) (deftest input-stream-p.3 (with-open-file (s "input-stream-p.lsp" :direction :inpu...
a6baefdfca655a2e272dc0eb7545b09ab90ad2688413d28ffa0acbc2f66073a1
alanz/ghc-exactprint
CommonUtils.hs
module Test.CommonUtils ( findSrcFiles , readFileGhc -- * File paths and directories , hackageWorkDir , workDir , configDir , failuresDir , failuresHtmlDir , cppFile , parseFailFile , processed , processedFailFile , logFile , origFailuresFile , badpackagesFile , blackListed , know...
null
https://raw.githubusercontent.com/alanz/ghc-exactprint/103bc706c82300639985a15ba6cf762316352c92/tests/Test/CommonUtils.hs
haskell
* File paths and directories --------------------------------------------------------------------- | Round trip working dir holding current hackage contents, can be deleted --------------------------------------------------------------------- | Round trip working dir, can be deleted | Round trip configuration dir...
module Test.CommonUtils ( findSrcFiles , readFileGhc , hackageWorkDir , workDir , configDir , failuresDir , failuresHtmlDir , cppFile , parseFailFile , processed , processedFailFile , logFile , origFailuresFile , badpackagesFile , blackListed , knownFailuresFile , failuresHtmlFile...
830c79c365d773c86697677598d2ab9d31f5dd0c1dccaad6b6cffe53fbcdf565
newque/newque
log.mli
open Core val log_level_of_variant : Config_t.config_log_level -> Lwt_log.level val int_of_level : Lwt_log.level -> int val lazy_level : int ref val init : unit -> unit val write_stdout : ?section:Lwt_log.section -> Lwt_log.level -> string -> unit Lwt.t val write_stderr : ?section:Lwt_log.section -> Lwt_log.level -...
null
https://raw.githubusercontent.com/newque/newque/dee73e2cb7be8700847f9e5cf900731cc20b1b8c/src/log.mli
ocaml
open Core val log_level_of_variant : Config_t.config_log_level -> Lwt_log.level val int_of_level : Lwt_log.level -> int val lazy_level : int ref val init : unit -> unit val write_stdout : ?section:Lwt_log.section -> Lwt_log.level -> string -> unit Lwt.t val write_stderr : ?section:Lwt_log.section -> Lwt_log.level -...
aea60cfa4072714c96a92981101864aa8ec78efce604b8fdd4d66787f65306dd
compiling-to-categories/concat
Regress.hs
# LANGUAGE FlexibleContexts # # LANGUAGE TypeOperators # # LANGUAGE CPP # {-# LANGUAGE ConstraintKinds #-} # LANGUAGE PatternSynonyms # # LANGUAGE TypeApplications # # LANGUAGE ScopedTypeVariables # # LANGUAGE AllowAmbiguousTypes # # OPTIONS_GHC -Wall # { - # OPTIONS_GHC -Wno - unused - imports # - } -- TEMP -- -- ...
null
https://raw.githubusercontent.com/compiling-to-categories/concat/49e554856576245f583dfd2484e5f7c19f688028/examples/src/ConCat/Regress.hs
haskell
# LANGUAGE ConstraintKinds # TEMP -- Does this flag make any difference? {-# OPTIONS_GHC -fexpose-all-unfoldings #-} | Multi-dimensional regression There's not much here now. See ConCat.Free.Affine. Square of distance between predicted and observed datum Square of distance between predicted and observed datum {...
# LANGUAGE FlexibleContexts # # LANGUAGE TypeOperators # # LANGUAGE CPP # # LANGUAGE PatternSynonyms # # LANGUAGE TypeApplications # # LANGUAGE ScopedTypeVariables # # LANGUAGE AllowAmbiguousTypes # # OPTIONS_GHC -Wall # module ConCat.Regress where import Data.Key (Zip(..)) , import ConCat.AltCat (Ok) import qu...
c50a6699c6b0e2457dcec32f93b3825d8f0788a5a9b70171799e176c32e913ac
bgusach/exercises-htdp2e
ex-110.rkt
#lang htdp/bsl (define (checked-area-of-disk r) (cond [(not(number? r)) (error "area-of-disk: number expected")] [(< r 0) (error "area-of-disk: number must be positive")] [else (area-of-disk r)] )) (define (area-of-disk r) (* 3.141592 (sqr r) )) (checked-area-of-disk 10) (checked-a...
null
https://raw.githubusercontent.com/bgusach/exercises-htdp2e/c4fd33f28fb0427862a2777a1fde8bf6432a7690/ex-110.rkt
racket
#lang htdp/bsl (define (checked-area-of-disk r) (cond [(not(number? r)) (error "area-of-disk: number expected")] [(< r 0) (error "area-of-disk: number must be positive")] [else (area-of-disk r)] )) (define (area-of-disk r) (* 3.141592 (sqr r) )) (checked-area-of-disk 10) (checked-a...
bf85ae011aa3d89f6ccdcd5ab11067fae8d2c8c2c0930d096005d15cff532eb9
clojure/core.rrb-vector
project.clj
(defproject org.clojure/core.rrb-vector "0.1.1-SNAPSHOT" :description "RRB-Trees for Clojure(Script) -- see Bagwell & Rompf" :url "-vector" :license {:name "Eclipse Public License" :url "-v10.html"} :min-lein-version "2.2.0" :parent [org.clojure/pom.contrib "0.2.2"] :dependencies [[org.clojure/c...
null
https://raw.githubusercontent.com/clojure/core.rrb-vector/88c2f814b47c0bbc4092dad82be2ec783ed2961f/project.clj
clojure
:optimizations :none :optimizations :whitespace :optimizations :simple
(defproject org.clojure/core.rrb-vector "0.1.1-SNAPSHOT" :description "RRB-Trees for Clojure(Script) -- see Bagwell & Rompf" :url "-vector" :license {:name "Eclipse Public License" :url "-v10.html"} :min-lein-version "2.2.0" :parent [org.clojure/pom.contrib "0.2.2"] :dependencies [[org.clojure/c...
3cd356e5a86b7f1c66f2877d59b631a7006aec82092571e61072d71f96da88dc
tweag/asterius
T5747.hs
main = print (cos 0)
null
https://raw.githubusercontent.com/tweag/asterius/e7b823c87499656860f87b9b468eb0567add1de8/asterius/test/ghc-testsuite/codeGen/T5747.hs
haskell
main = print (cos 0)
e0b33be760bec4c67121e5f33ebc1dcb7a694eae6da88444a574a6c1f2b8bc79
vikram/lisplibraries
start-ajax.lisp
;;; -*- lisp -*- ;;;; * Startup file for ucw_ajax (in-package :common-lisp-user) (defparameter *ucw-directory* (merge-pathnames #P"ucw_ajax/" *load-truename*)) (load (merge-pathnames #P"start-common.lisp" *load-truename*))
null
https://raw.githubusercontent.com/vikram/lisplibraries/105e3ef2d165275eb78f36f5090c9e2cdd0754dd/site/ucw-boxset/start-ajax.lisp
lisp
-*- lisp -*- * Startup file for ucw_ajax
(in-package :common-lisp-user) (defparameter *ucw-directory* (merge-pathnames #P"ucw_ajax/" *load-truename*)) (load (merge-pathnames #P"start-common.lisp" *load-truename*))
d93a692ca72e616f5219cdf51e05a8b9ab32c9b2003086a972dd2813a55da3e4
mk270/ocaml-prolog
var.mli
val get_unique : unit -> string
null
https://raw.githubusercontent.com/mk270/ocaml-prolog/72b4d956eda1c86e35dde8e31b29977de6962120/lib/var.mli
ocaml
val get_unique : unit -> string
4b6459505219c15146c9ea1af2cd1bb403519b4ffc4a9e395cd986a33cf2c85a
drewr/postal
date.clj
Copyright ( c ) ;; ;; 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, distrib...
null
https://raw.githubusercontent.com/drewr/postal/7606a66c10b66abd3476c6f4c828fb4b87d3792d/src/postal/date.clj
clojure
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell Software is furnished to do so, subject to the following condit...
Copyright ( c ) files ( the " Software " ) , to deal in the Software without copies of the Software , and to permit persons to whom the included in all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , (ns postal.date (:import [java.util...
10b792c553cdcc079d5b0c3451c2951ee2d5eedbd9095a622a72c961b0f9a235
ghosthamlet/algorithm-data-structure
linked_list_node.clj
(ns algorithm-data-structure.data-structures.linked-list-node "-algorithms/tree/master/src/data-structures/linked-list") (defn create [value & [next]] {:value value :next next}) (defn ->string [self & [callback]] (if callback (callback (:value self)) (str (:value self))))
null
https://raw.githubusercontent.com/ghosthamlet/algorithm-data-structure/017f41a79d8b1d62ff5a6cceffa1b0f0ad3ead6b/src/algorithm_data_structure/data_structures/linked_list_node.clj
clojure
(ns algorithm-data-structure.data-structures.linked-list-node "-algorithms/tree/master/src/data-structures/linked-list") (defn create [value & [next]] {:value value :next next}) (defn ->string [self & [callback]] (if callback (callback (:value self)) (str (:value self))))
a87ad8798716fb4622cda8d7a3a867fc86d5cbc41d614fa449729af500ec005c
nuvla/ui
views.cljs
(ns sixsq.nuvla.ui.cimi-detail.views (:require [cljs.pprint :refer [pprint]] [clojure.string :as str] [re-frame.core :refer [dispatch subscribe]] [reagent.core :as r] [sixsq.nuvla.ui.acl.views :as acl-views] [sixsq.nuvla.ui.cimi-detail.events :as events] ...
null
https://raw.githubusercontent.com/nuvla/ui/88d65c1d68936edf122bc476eaa1b142da4bbed7/code/src/cljs/sixsq/nuvla/ui/cimi_detail/views.cljs
clojure
Explicit keys have been added to the operation buttons to avoid react errors for duplicate keys, which may happen when the data contains :key. as this will be confused with reagent options. forces a refresh when the correct resource isn't cached render the (possibly empty) detail
(ns sixsq.nuvla.ui.cimi-detail.views (:require [cljs.pprint :refer [pprint]] [clojure.string :as str] [re-frame.core :refer [dispatch subscribe]] [reagent.core :as r] [sixsq.nuvla.ui.acl.views :as acl-views] [sixsq.nuvla.ui.cimi-detail.events :as events] ...