_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
e3f2878616376fbc96f8266fa54dfbb754a15e9309e0e02b9509378b5951bb78
kpreid/e-on-cl
jar.lisp
Copyright 2005 - 2007 , under the terms of the MIT X license found at ................ (defpackage :e.jar (:use :cl :e.elib :zip) (:documentation "Access to jar/zip files, so that we can borrow Java E's emakers.") (:export)) (in-package :e.jar) (defun open-jar (pathname) (let ((zipfile (open-zipfile p...
null
https://raw.githubusercontent.com/kpreid/e-on-cl/f93d188051c66db0ad4ff150bd73b838f7bc25ed/lisp/jar.lisp
lisp
XXX finalizer to close zip file otherwise borrow zip's internals XXX use flexi-streams directly instead review
Copyright 2005 - 2007 , under the terms of the MIT X license found at ................ (defpackage :e.jar (:use :cl :e.elib :zip) (:documentation "Access to jar/zip files, so that we can borrow Java E's emakers.") (:export)) (in-package :e.jar) (defun open-jar (pathname) (let ((zipfile (open-zipfile p...
8955663e05021a1c78da234aefa63b00ba71327f0aac8fbab64de00ec21456a2
Javran/advent-of-code
Uldr.hs
module Javran.AdventOfCode.GridSystem.RowThenCol.Uldr ( Dir (..), Coord, applyDir, oppositeDir, turnLeft, turnRight, uldrOfCoord, allDirs, ) where import Data.Bifunctor type Coord = (Int, Int) -- row then col data Dir = U | L | D | R deriving (Eq, Ord, Enum, Show) applyDir :: Dir -> Coord -> Coord a...
null
https://raw.githubusercontent.com/Javran/advent-of-code/676ef13c2f9d341cf7de0f383335a1cf577bd73d/src/Javran/AdventOfCode/GridSystem/RowThenCol/Uldr.hs
haskell
row then col # INLINEABLE oppositeDir # # INLINEABLE uldrOfCoord #
module Javran.AdventOfCode.GridSystem.RowThenCol.Uldr ( Dir (..), Coord, applyDir, oppositeDir, turnLeft, turnRight, uldrOfCoord, allDirs, ) where import Data.Bifunctor data Dir = U | L | D | R deriving (Eq, Ord, Enum, Show) applyDir :: Dir -> Coord -> Coord applyDir = \case U -> first (\r -> r - ...
f0248446f8ea25d55c5361045d6bc6c8cc0e5d82198185f44b039df07d823cd1
SonarQubeCommunity/sonar-erlang
linelength.erl
-module(linelength). it is 100 chars long , so it is fine , the question is what shall I write here to ex % it only has comments, so I have to write more than previously, which is hard a little bit but I c % this is a long line, but only contains comments, this should be marked as well, because it is a hard rule, wit...
null
https://raw.githubusercontent.com/SonarQubeCommunity/sonar-erlang/279eb7ccd84787c1c0cfd34b9a07981eb20183e3/erlang-checks/src/test/resources/checks/linelength.erl
erlang
it only has comments, so I have to write more than previously, which is hard a little bit but I c this is a long line, but only contains comments, this should be marked as well, because it is a hard rule, without exceptions
-module(linelength). it is 100 chars long , so it is fine , the question is what shall I write here to ex B = {world, A}, C = {{a, b, [1,2,4,5]},{[{a, b, c, [12, 12, 34]},{[A, B], [1, 2]}], [error, error, stg, error]}}, this line is bigger than one hundred because of the comments , so it should be marked as ?...
63f0a1c9737ae47e3289281600b3438a020a3603e77a68504ddd3db880e6dd1d
coco-team/lustrec
machine_code_common.mli
val pp_val: Format.formatter -> Machine_code_types.value_t -> unit val is_memory: Machine_code_types.machine_t -> Lustre_types.var_decl -> bool val is_output: Machine_code_types.machine_t -> Lustre_types.var_decl -> bool val is_const_value: Machine_code_types.value_t -> bool val get_const_assign: Machine_code_types.mac...
null
https://raw.githubusercontent.com/coco-team/lustrec/b21f9820df97e661633cd4418fdab68a6c6ca67d/src/machine_code_common.mli
ocaml
val pp_val: Format.formatter -> Machine_code_types.value_t -> unit val is_memory: Machine_code_types.machine_t -> Lustre_types.var_decl -> bool val is_output: Machine_code_types.machine_t -> Lustre_types.var_decl -> bool val is_const_value: Machine_code_types.value_t -> bool val get_const_assign: Machine_code_types.mac...
74f5dbe1a15b36097876f54e6b1cc9833d88ec88e703add1558d15f1ee24ef08
facebookincubator/hsthrift
HeaderChannelTest.hs
Copyright ( c ) Facebook , Inc. and its affiliates . module HeaderChannelTest where import Control.Exception import Control.Monad.Trans.Class import Data.Proxy import Foreign import Foreign.C import Network (testServerHost) import Test.HUnit import TestRunner import Util.EventBase import Thrift.Api import Thrift.C...
null
https://raw.githubusercontent.com/facebookincubator/hsthrift/d3ff75d487e9d0c2904d18327373b603456e7a01/cpp-channel/test/HeaderChannelTest.hs
haskell
--------------- -----------------------------------------------------------------------------
Copyright ( c ) Facebook , Inc. and its affiliates . module HeaderChannelTest where import Control.Exception import Control.Monad.Trans.Class import Data.Proxy import Foreign import Foreign.C import Network (testServerHost) import Test.HUnit import TestRunner import Util.EventBase import Thrift.Api import Thrift.C...
09be551f6f5d8f83050ce740300bab17838aa85448935dade74fa3c22b52630a
nallen05/rw-ut
rw-ut.lisp
; -ut ; TODO ; ; -tests ; -names of months and days of week ; -12 hour clock, a.m./p.m. ; -optimize (defpackage :rw-ut (:use :cl) (:export ; using :read-time-string :write-time-string :*time-zone* ; old [depricated] API :r-ut :w-ut ; compiling fast reader...
null
https://raw.githubusercontent.com/nallen05/rw-ut/7535c3590aa7fe2bfb5c01a282337c100875b3a4/rw-ut.lisp
lisp
-tests -names of months and days of week -12 hour clock, a.m./p.m. -optimize using old [depricated] API compiling fast readers or writers at runtime special util READ-TIME-STRING WRITE-TIME-STRING old [depricated] API
-ut TODO (defpackage :rw-ut (:use :cl) :read-time-string :write-time-string :*time-zone* :r-ut :w-ut :read-time-string-pattern->src :write-time-string-pattern->src)) (in-package :rw-ut) BEWARE : assumes GMT / UTC by default (defconstant +default-ut-pattern+ SBCL com...
e15a725b1a4091aa29fd5adf232f025b398a4ab4f7480afe236d207fb5b5bdfe
oubiwann/star-traders
project.clj
(defproject starlanes "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "BSD" :url "-3-Clause"} :dependencies [[org.clojure/clojure "1.5.1"] [org.clojure/math.combinatorics "0.0.4"]] :plugins [[lein-exec "0.3.1"]] :aot [starlanes.trader] :main st...
null
https://raw.githubusercontent.com/oubiwann/star-traders/8d7b85ce9ad6446f3b766cced08c120787a82352/clojure/project.clj
clojure
(defproject starlanes "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "BSD" :url "-3-Clause"} :dependencies [[org.clojure/clojure "1.5.1"] [org.clojure/math.combinatorics "0.0.4"]] :plugins [[lein-exec "0.3.1"]] :aot [starlanes.trader] :main st...
22e889adf32fb884ecb3a6aee8ed9e7fdf68f62c7da4524e7a72eef5cf4a9dcf
arcusfelis/binary2
binary2.erl
-module(binary2). Bytes -export([ reverse/1 , join/2 , duplicate/2 , suffix/2 , prefix/2 ]). %% Bits -export([ union/2 , subtract/2 , intersection/2 , inverse/1 ]). %% Trimming -export([ rtrim/1 , rtrim/2 , ltrim/1 , lt...
null
https://raw.githubusercontent.com/arcusfelis/binary2/22f42c7bd8be0334e90b12af61740e5a4448ec9f/src/binary2.erl
erlang
Bits Trimming Parsing Matching multi, left trimming. Multiple version of do_rtrim. multi, left trimming, returns a count of matched bytes from the left. This clause will never be matched. @doc Reverse the bytes' order. @doc Repeat the binary `B' `C' times. @doc string:to_integer/1 for binaries Remove longer...
-module(binary2). Bytes -export([ reverse/1 , join/2 , duplicate/2 , suffix/2 , prefix/2 ]). -export([ union/2 , subtract/2 , intersection/2 , inverse/1 ]). -export([ rtrim/1 , rtrim/2 , ltrim/1 , ltrim/2 , trim...
4c1da2ef5c9d9ab37fe277b87cb2a8d8bacedf2336fe7aab1282498136a5ed67
spawnfest/eep49ers
ssl_session_SUITE.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2007 - 2020 . All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicab...
null
https://raw.githubusercontent.com/spawnfest/eep49ers/d1020fd625a0bbda8ab01caf0e1738eb1cf74886/lib/ssl/test/ssl_session_SUITE.erl
erlang
%CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific lan...
Copyright Ericsson AB 2007 - 2020 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(ssl_session_SUITE). -behaviour(ct_suite). -include("tls_handshake.hrl"). -include("ssl_record.hrl"). -inc...
8c383cf4e4f30f872649647b2e0cfdfaa3636c36dfe91f7de5fba88c7d7f281c
ygmpkk/house
All.hs
For convenience , unites all parts of H in one module . -- Typically, it is better style to import the individual parts separately. -- See the imported modules for details of the H interface. module H.All(module H.All) where -- The H monad and its operations: import H.Monad as H.All import H.PhysicalMemory...
null
https://raw.githubusercontent.com/ygmpkk/house/1ed0eed82139869e85e3c5532f2b579cf2566fa2/kernel/H/All.hs
haskell
Typically, it is better style to import the individual parts separately. See the imported modules for details of the H interface. The H monad and its operations: hide unsafe function Things excluded from the main H interface: Exports unsafe memory operations import H.MonadImpl as H -- Reveals internal represent...
For convenience , unites all parts of H in one module . module H.All(module H.All) where import H.Monad as H.All import H.PhysicalMemory as H.All import H.VirtualMemory as H.All import H.UserMode as H.All import H.IOPorts as H.All import H.Interrupts as H.All import H.Grub as H.All hid...
ae84db47eb7e9eb146a4e4caa897f209392b54ea6c12a14d659421f050d4ec62
sheepduke/silver-brain
packages.lisp
(defpackage silver-brain.config (:nicknames config) (:use #:cl) (:import-from #:chameleon #:defconfig #:defprofile) (:import-from #:find-port #:find-port) (:export #:set-profile)) (defpackage silver-brain.core (:nicknames core) (:use #:cl #:alexandria #:ite...
null
https://raw.githubusercontent.com/sheepduke/silver-brain/81ef7d0035fadc63e3cfca0be6a6f157e1dbbe05/backend/src/packages.lisp
lisp
Accessors. Modifiers. Concept DAO. Concept Relation DAO. Concept. Concept relation.
(defpackage silver-brain.config (:nicknames config) (:use #:cl) (:import-from #:chameleon #:defconfig #:defprofile) (:import-from #:find-port #:find-port) (:export #:set-profile)) (defpackage silver-brain.core (:nicknames core) (:use #:cl #:alexandria #:ite...
d321f88a4f6b7e4db74c8984ca0bd43c0cc88eafae82893b9c99dcaf2bc24877
samrushing/irken-compiler
t28.scm
(include "lib/core.scm") (include "lib/pair.scm") ;; vector and list literals #('(1 2 3 4) '(1 2 3))
null
https://raw.githubusercontent.com/samrushing/irken-compiler/690da48852d55497f873738df54f14e8e135d006/tests/t28.scm
scheme
vector and list literals
(include "lib/core.scm") (include "lib/pair.scm") #('(1 2 3 4) '(1 2 3))
5ead6b56a7badc22cb4134c0d7728bbde5829b3980d9878b6130bc813cbe9cfa
stepcut/plugins
Parser.hs
# LANGUAGE CPP # # LANGUAGE PatternGuards # -- Copyright ( C ) 2004 - 5 -- -- This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any l...
null
https://raw.githubusercontent.com/stepcut/plugins/52c660b5bc71182627d14c1d333d0234050cac01/src/System/Plugins/Parser.hs
haskell
This program is free software; you can redistribute it and/or 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 PARTICULAR PURPOSE. See the GNU General Public License for more details. along with this...
# LANGUAGE CPP # # LANGUAGE PatternGuards # Copyright ( C ) 2004 - 5 modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any later version . You should have received a copy of the GNU General Pub...
275721226bb48759607f1edb89c9fbb40de5b745c3e987470de291bb4f0ffc0e
Popl7/Bamse
macros.cljc
(ns bamse.macros) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (defn- nodejs-target? [] (= :nodejs (get-in @cljs.env/*compiler* [:options :target]))) (defmacro code-for-nodejs [& body] (when (nodejs-target?) `(do ~@body))) (defmacro code-for-browser [& body] (when-no...
null
https://raw.githubusercontent.com/Popl7/Bamse/33f45df2f22ee35344671f11fd0db3dd50331c84/src/clj/bamse/macros.cljc
clojure
(ns bamse.macros) (defn- nodejs-target? [] (= :nodejs (get-in @cljs.env/*compiler* [:options :target]))) (defmacro code-for-nodejs [& body] (when (nodejs-target?) `(do ~@body))) (defmacro code-for-browser [& body] (when-not (nodejs-target?) `(do ~@body))) (defmacro load-readme "Read README....
b77194d00846c09e5b9ced16e50e6540c049c1108b778ea3468e566a5db66d27
spl/ivy
dlocals.mli
* * Copyright ( c ) 2006 , * < > * < > * < > * All rights reserved . * * Redistribution and use in source and binary forms , with or without * modification , are permitted provided that the following conditions are * met : * * 1 . Redistributions of source...
null
https://raw.githubusercontent.com/spl/ivy/b1b516484fba637eb24e83d27555d273495e622b/src/deputy/dlocals.mli
ocaml
* * Copyright ( c ) 2006 , * < > * < > * < > * All rights reserved . * * Redistribution and use in source and binary forms , with or without * modification , are permitted provided that the following conditions are * met : * * 1 . Redistributions of source...
36f2026a887ca2a56023836b81f1c7e714a7e6bd936ac0ce20d1935e682a5e38
ndmitchell/build-shootout
unchanged-shake.hs
import Development.Shake main = shakeArgs shakeOptions $ do "output" %> \out -> do need ["source"] cmd "sh unchanged-run source -- output" "source" %> \out -> do need ["input"] cmd "sh unchanged-gen input -- source"
null
https://raw.githubusercontent.com/ndmitchell/build-shootout/40b2fd3804d89f8c7cf0a37b3a9d45a863be04ce/examples/unchanged-shake.hs
haskell
import Development.Shake main = shakeArgs shakeOptions $ do "output" %> \out -> do need ["source"] cmd "sh unchanged-run source -- output" "source" %> \out -> do need ["input"] cmd "sh unchanged-gen input -- source"
6445f09212f261b7a0ebf1cff454558a5bb136861bb503629d2a80c1a41555f3
scotthaleen/clojure-spring-cloud
greeting.clj
(ns spring.cloud.models.greeting (:import [com.fasterxml.jackson.annotation JsonIgnoreProperties]) (:gen-class ignore clojure internal ` .state ` field during serialization :name ^{com.fasterxml.jackson.annotation.JsonIgnoreProperties ["state"]} spring.cloud.models.Greeting :init init :state state ...
null
https://raw.githubusercontent.com/scotthaleen/clojure-spring-cloud/56d874c2cd4af616f9b8e62eccd19cbddd47f2fa/src/spring/cloud/models/greeting.clj
clojure
(ns spring.cloud.models.greeting (:import [com.fasterxml.jackson.annotation JsonIgnoreProperties]) (:gen-class ignore clojure internal ` .state ` field during serialization :name ^{com.fasterxml.jackson.annotation.JsonIgnoreProperties ["state"]} spring.cloud.models.Greeting :init init :state state ...
ea0cdde29b0c73c9267364b3588684b85d5bfbb6e15d47cdbd482d4a3662a054
SamB/coq
declarations.mli
open Util open Names open Term Bytecode type values type reloc_table type to_patch_substituted (*Retroknowledge *) type action type retroknowledge (* Engagements *) type engagement = ImpredicativeSet (* Constants *) type polymorphic_arity = { poly_param_levels : Univ.universe option list; poly_level : Univ.u...
null
https://raw.githubusercontent.com/SamB/coq/8f84aba9ae83a4dc43ea6e804227ae8cae8086b1/checker/declarations.mli
ocaml
Retroknowledge Engagements Constants New: younger hyp at top Primitive datas Name of the type: [Ii] Arity context of [Ii] with parameters: [forall params, Ui] Arity sort, original user arity, and allowed elim sorts, if monomorphic Names of the constructors: [cij] Derived datas Number of expected rea...
open Util open Names open Term Bytecode type values type reloc_table type to_patch_substituted type action type retroknowledge type engagement = ImpredicativeSet type polymorphic_arity = { poly_param_levels : Univ.universe option list; poly_level : Univ.universe; } type constant_type = | NonPolymorphicTyp...
0afd8a8f76c7ef4fddc92f3a80e9340f8cfb517c2471751dc7b9160ceab604ff
cram2/cram
series-acceleration.lisp
Series acceleration . , We d Nov 21 2007 - 18:41 Time - stamp : < 2012 - 01 - 13 12:01:09EST series-acceleration.lisp > ;; Copyright 2007 , 2008 , 2009 , 2011 Distributed under the terms of the GNU General Public License ;; ;; This program is free software: you can redistribute it and/or modify it unde...
null
https://raw.githubusercontent.com/cram2/cram/dcb73031ee944d04215bbff9e98b9e8c210ef6c5/cram_3rdparty/gsll/src/series-acceleration.lisp
lisp
This program is free software: you can redistribute it and/or modify (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 PARTICULAR PURPOSE. See the GNU General Publi...
Series acceleration . , We d Nov 21 2007 - 18:41 Time - stamp : < 2012 - 01 - 13 12:01:09EST series-acceleration.lisp > Copyright 2007 , 2008 , 2009 , 2011 Distributed under the terms of the GNU General Public License it under the terms of the GNU General Public License as published by the Free Softw...
b1468a30f9c436c86a05ceed70741397ca4482037ade0c7af21ac50b5bd86b9b
gonzojive/sbcl
cache.lisp
the basics of the PCL wrapper cache mechanism This software is part of the SBCL system . See the README file for ;;;; more information. This software is derived from software originally released by Xerox ;;;; Corporation. Copyright and release statements follow. Later modifications ;;;; to the software are in t...
null
https://raw.githubusercontent.com/gonzojive/sbcl/3210d8ed721541d5bba85cbf51831238990e33f1/src/pcl/cache.lisp
lisp
more information. Corporation. Copyright and release statements follow. Later modifications to the software are in the public domain and are provided with absolutely no warranty. See the COPYING and CREDITS files for more information. All rights reserved. Use and copying of this software and preparation of der...
the basics of the PCL wrapper cache mechanism This software is part of the SBCL system . See the README file for This software is derived from software originally released by Xerox copyright information from original PCL sources : Copyright ( c ) 1985 , 1986 , 1987 , 1988 , 1989 , 1990 Xerox Corporation . ...
33203f9cee64bc1bf79844749284a2ba7afacf1dde7c1157834d2d604dc7bd44
restyled-io/restyled.io
Job.hs
# LANGUAGE QuasiQuotes # # LANGUAGE TemplateHaskell # module Restyled.Widgets.Job ( jobCard , jobListItem , jobOutput , jobLogLine ) where import Restyled.Prelude hiding (Key) import Control.Monad.Logger.Aeson (LoggedMessage(..)) import Data.Aeson.Key (Key) import qualified Data.Aeson.Key as Key ...
null
https://raw.githubusercontent.com/restyled-io/restyled.io/d1dae477a108c3d902030ff159424fbdd7b85d46/src/Restyled/Widgets/Job.hs
haskell
- encode escapes and quote
# LANGUAGE QuasiQuotes # # LANGUAGE TemplateHaskell # module Restyled.Widgets.Job ( jobCard , jobListItem , jobOutput , jobLogLine ) where import Restyled.Prelude hiding (Key) import Control.Monad.Logger.Aeson (LoggedMessage(..)) import Data.Aeson.Key (Key) import qualified Data.Aeson.Key as Key ...
f13d72aee23fae7f169209e088896b7909d9f5401965b9222f9b47f73ad6cd22
tisnik/clojure-examples
project.clj
; ( C ) Copyright 2015 , 2020 , 2021 ; ; All rights reserved. This program and the accompanying materials ; are made available under the terms of the Eclipse Public License v1.0 ; which accompanies this distribution, and is available at -v10.html ; ; Contributors: ; (defproject webapp6 "0.1.0-SN...
null
https://raw.githubusercontent.com/tisnik/clojure-examples/d0879d8587e58d14dbdd4e2ae1a206eea95c96bf/webapp6/project.clj
clojure
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at Contributors:
( C ) Copyright 2015 , 2020 , 2021 -v10.html (defproject webapp6 "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.10.1"] [ring/ring-core "1.3.2"] ...
6e56794976ee41bc43a3f8f164f9787af77afc7933f8ca3d1018da947f7cb201
ublubu/shapes
Utils.hs
# LANGUAGE TemplateHaskell # {-# LANGUAGE RankNTypes #-} # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE TypeFamilies # # LANGUAGE MultiParamTypeClasses # # LANGUAGE DeriveGeneric # {-# LANGUAGE DeriveAnyClass #-} # LANGUAGE RecordWildCards # {- | A bunch of unrelated utility functions and type...
null
https://raw.githubusercontent.com/ublubu/shapes/fa5d959c17224a851d517826deeae097f1583392/shapes/src/Utils/Utils.hs
haskell
# LANGUAGE RankNTypes # # LANGUAGE DeriveAnyClass # | A bunch of unrelated utility functions and types. TODO: for debugging only TODO: pull out the stuff that depends on lens. # INLINE findOrInsert # # INLINE findOrInsert' #
# LANGUAGE TemplateHaskell # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE TypeFamilies # # LANGUAGE MultiParamTypeClasses # # LANGUAGE DeriveGeneric # # LANGUAGE RecordWildCards # module Utils.Utils where import GHC.Generics (Generic) import Control.DeepSeq import Control.Monad.Trans.Maybe...
2fef1d58c8357414f5fd7e9cf1f725c94095d27846e16c52a1f27f13e817170f
aenglisc/the_f
prop_f.erl
-module(prop_f). -include_lib("proper/include/proper.hrl"). -include_lib("stdlib/include/assert.hrl"). prop_identity() -> ?FORALL(T, term(), T =:= f:id(T)). prop_curry() -> ?FORALL( {Arity, ReturnType}, {arity(20), term()}, gen_curried_function(Arity, ReturnType) ). prop_is_curri...
null
https://raw.githubusercontent.com/aenglisc/the_f/191baf870ad1841c1c35b01bae8db6cce47c81c5/test/prop_f.erl
erlang
==================================================================== ====================================================================
-module(prop_f). -include_lib("proper/include/proper.hrl"). -include_lib("stdlib/include/assert.hrl"). prop_identity() -> ?FORALL(T, term(), T =:= f:id(T)). prop_curry() -> ?FORALL( {Arity, ReturnType}, {arity(20), term()}, gen_curried_function(Arity, ReturnType) ). prop_is_curri...
8a087b10ad7d011d54f68f4e65c994b528d4c9a58d1b6e143a0ca7906b0ae0c1
facebook/pyre-check
worker.mli
* Copyright ( c ) Meta Platforms , Inc. and 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) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
null
https://raw.githubusercontent.com/facebook/pyre-check/254c63580d44c0a547b362b2035fbb82803742c5/source/hack_parallel/hack_parallel/procs/worker.mli
ocaml
*************************************************************************** *************************************************************************** * Worker exited with the given exception, as a string (because marshal-ing on * exceptions is not safe). * Raise this exception when sending work to a worker that is ...
* Copyright ( c ) Meta Platforms , Inc. and 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) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
22dec5198e4eb5b65d71aef6ef087a3d5bcbf4dad08b8eeb0946f3b6a12d230b
IvanRublev/year_progress_bot
telegram.erl
-module(telegram). -export([send_message/2, register_webhook/0]). -compile([{parse_transform, lager_transform}]). send_message(ChatId, ProgressDate) -> case application:get_env(year_progress_bot, tel_integrate) of {ok, true} -> send_message_fun(ChatId, ProgressDate); _ -> ok end. send_message_...
null
https://raw.githubusercontent.com/IvanRublev/year_progress_bot/c3e85a5598d768933d5fb676c74d92fa8033cf60/apps/year_progress_bot/src/telegram.erl
erlang
-module(telegram). -export([send_message/2, register_webhook/0]). -compile([{parse_transform, lager_transform}]). send_message(ChatId, ProgressDate) -> case application:get_env(year_progress_bot, tel_integrate) of {ok, true} -> send_message_fun(ChatId, ProgressDate); _ -> ok end. send_message_...
c81d91066075ee2f1cf56d8f7837090018a9d2f2c4b15f6507a9faf208ba46e6
caradoc-org/caradoc
type.mli
(*****************************************************************************) (* Caradoc: a PDF parser and validator *) Copyright ( C ) 2015 ANSSI Copyright ( C ) 2015 - 2017 (* ...
null
https://raw.githubusercontent.com/caradoc-org/caradoc/100f53bc55ef682049e10fabf24869bc019dc6ce/src/type/type.mli
ocaml
*************************************************************************** Caradoc: a PDF parser and validator This program is free software; you can redistribute it and/or modify ...
Copyright ( C ) 2015 ANSSI Copyright ( C ) 2015 - 2017 it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation . You should have rece...
5b11bde8f9a6858e4db793253192eadc8efa9022b010c610b4232cf8b7a2d333
fantasytree/fancy_game_server
dev.erl
%%---------------------------------------------------- 开发工具 %%---------------------------------------------------- -module(dev). -export([ info/0 ,mq_info/2 ,mq_info/3 ,mq_info_top/2 ,top/0 ,top/1 ,top/3 ,eprof_start/0 ,eprof_start/2 ,epr...
null
https://raw.githubusercontent.com/fantasytree/fancy_game_server/4ca93486fc0d5b6630170e79b48fb31e9c6e2358/src/sys/dev.erl
erlang
---------------------------------------------------- ---------------------------------------------------- @doc 查看系统当前的综合信息 @doc 返回当前及诶单的占用资源最多的列表信息 Type = mem | queue | reds Type: 排名类型 <ul> <li>{@type mem} 返回当前节点中内存占用前N的进程</li> <li>{@type queue} 返回当前节点中消息队列长度前N的进程</li> </ul> @doc 打印进程消息队列 进程PID 取消息队列...
开发工具 -module(dev). -export([ info/0 ,mq_info/2 ,mq_info/3 ,mq_info_top/2 ,top/0 ,top/1 ,top/3 ,eprof_start/0 ,eprof_start/2 ,eprof_stop/0 ,m/0 ,m/1 ,u/0 ,u/1 ,u/2 ,u_db/1 ,edoc/0 ...
370ed027d5e28f421cc1dabf24b24a17ffde1544e693f31deeba0448a48604ee
VisionsGlobalEmpowerment/webchange
views.cljs
(ns webchange.admin.widgets.activity-info-form.views (:require [re-frame.core :as re-frame] [webchange.admin.widgets.activity-info-form.state :as state] [webchange.validation.specs.activity :as spec] [webchange.ui.index :as ui] [webchange.utils.languages :refer [language-options]])) (defn- remove...
null
https://raw.githubusercontent.com/VisionsGlobalEmpowerment/webchange/2097ed3510b4060028232a85956a00c7efbfda68/src/cljs/webchange/admin/widgets/activity_info_form/views.cljs
clojure
(ns webchange.admin.widgets.activity-info-form.views (:require [re-frame.core :as re-frame] [webchange.admin.widgets.activity-info-form.state :as state] [webchange.validation.specs.activity :as spec] [webchange.ui.index :as ui] [webchange.utils.languages :refer [language-options]])) (defn- remove...
6e985290c64d347c4a463e5e3eb7d253fc5103978448728555fc73cfa47b9812
haskell-opengl/OpenGLRaw
VertexProgram.hs
# LANGUAGE PatternSynonyms # -------------------------------------------------------------------------------- -- | -- Module : Graphics.GL.NV.VertexProgram Copyright : ( c ) 2019 -- License : BSD3 -- Maintainer : < > -- Stability : stable -- Portability : portable -- -------------------...
null
https://raw.githubusercontent.com/haskell-opengl/OpenGLRaw/57e50c9d28dfa62d6a87ae9b561af28f64ce32a0/src/Graphics/GL/NV/VertexProgram.hs
haskell
------------------------------------------------------------------------------ | Module : Graphics.GL.NV.VertexProgram License : BSD3 Stability : stable Portability : portable ------------------------------------------------------------------------------ * Extension Support * Enums * Functions
# LANGUAGE PatternSynonyms # Copyright : ( c ) 2019 Maintainer : < > module Graphics.GL.NV.VertexProgram ( glGetNVVertexProgram, gl_NV_vertex_program, pattern GL_ATTRIB_ARRAY_POINTER_NV, pattern GL_ATTRIB_ARRAY_SIZE_NV, pattern GL_ATTRIB_ARRAY_STRIDE_NV, pattern GL_ATTRIB_ARRAY_TYPE_NV, ...
b67933b772ee19a76745ae2b94a411e76487fc800edbf2b335f24d623dd31cf7
ocaml/dune
dune_rpc_client.ml
module Where = Where module Client = Client module Private = Private
null
https://raw.githubusercontent.com/ocaml/dune/20180d12149343d073cdea5860d01dc181702e6a/src/dune_rpc_client/dune_rpc_client.ml
ocaml
module Where = Where module Client = Client module Private = Private
b40eef149459ead4c39027b3a9c21a08ee153747859d7db435a96344a610d9a3
GaloisInc/gidl
Gidl.hs
module Gidl ( run ) where import Prelude () import Prelude.Compat import Data.Char import Data.Maybe (catMaybes) import Control.Monad (when) import System.Console.GetOpt import System.Directory import System.Environment import System.Exit import System.FilePath import Text.Show.Pretty import Ivory.Artifact impor...
null
https://raw.githubusercontent.com/GaloisInc/gidl/f7674eeeffca124f8d12272152d29dd0c0ba0c0f/src/Gidl.hs
haskell
module Gidl ( run ) where import Prelude () import Prelude.Compat import Data.Char import Data.Maybe (catMaybes) import Control.Monad (when) import System.Console.GetOpt import System.Directory import System.Environment import System.Exit import System.FilePath import Text.Show.Pretty import Ivory.Artifact impor...
b33ca9906b5f7272da9143a075b43fd2d8fc17b703fb6e5b051ea8dc74359474
cj1128/sicp-review
2.78.scm
Exercise 2.78 ;; Modify the definition of type-tag, contents and attach-tag so that our generic system takes advantage of scheme's internal type system. That's to say, we can represent oridinary numbers as scheme numbers without adding 'scheme-number tag (define (type-tag datum) (cond ((number? datum) 'scheme-n...
null
https://raw.githubusercontent.com/cj1128/sicp-review/efaa2f863b7f03c51641c22d701bac97e398a050/chapter-2/2.5/2.78.scm
scheme
Modify the definition of type-tag, contents and attach-tag so that our generic system takes advantage of scheme's internal type system. That's to say, we can represent oridinary numbers as scheme numbers without adding 'scheme-number tag
Exercise 2.78 (define (type-tag datum) (cond ((number? datum) 'scheme-number) ((pair? datum) (car datum)) (else (error "Bad tagged datum: TYPE-TAG" datum)))) (define (contents datum) (cond ((number? datum) datum) ((pair? datum) (cdr datum)) (else (error "Bad tagged datum: CONTENTS" datum)))) ...
5daae59d4721980e9e3fa381e8cc361269bd2b3689c6b78b43bbbad2c6a9cb51
Frozenlock/wacnet
devices.clj
(ns wacnet.api.bacnet.devices (:require [bacure.coerce :as c] [bacure.coerce.type.enumerated :as ce] [bacure.core :as b] [bacure.remote-device :as rd] [clojure.set :as cs] [clojure.string :as string] [ring.swagger.schema :as rs] [sche...
null
https://raw.githubusercontent.com/Frozenlock/wacnet/4a4c21d423a9eeaaa70ec5c0ac4203a6978d3db9/src/clj/wacnet/api/bacnet/devices.clj
clojure
TODO: use co/paginated-object-list instead first get retrieve the data from the remote devices... then we format it back into a map using the global ids as keys.
(ns wacnet.api.bacnet.devices (:require [bacure.coerce :as c] [bacure.coerce.type.enumerated :as ce] [bacure.core :as b] [bacure.remote-device :as rd] [clojure.set :as cs] [clojure.string :as string] [ring.swagger.schema :as rs] [sche...
cb65352a46c7fa07f30192b6b5379b8593f6b28b409c478bac6a69376047c2fa
emilaxelsson/ag-graph
TypeFam.hs
{-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE DataKinds #-} {-# LANGUAGE FlexibleContexts #-} # LANGUAGE FlexibleInstances # # LANGUAGE GADTs # # LANGUAGE MultiParamTypeClasses # # LANGUAGE PolyKinds # {-# LANGUAGE ScopedTypeVariables #-} # LANGUAGE TypeFamili...
null
https://raw.githubusercontent.com/emilaxelsson/ag-graph/50fb1ebb819e1ed0bd3b97e8a9f82bb9310e782f/src/PAG/Projection/TypeFam.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeOperators # | Path to a node in a binary tree. | Result of searching for a unique occurrence of a node in a binary tree. 'Ambiguous' is the absorptive (...
# LANGUAGE FlexibleInstances # # LANGUAGE GADTs # # LANGUAGE MultiParamTypeClasses # # LANGUAGE PolyKinds # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # module PAG.Projection.TypeFam (pr, (:<),module PAG.Product) where import Prelude hiding (Either (..)) i...
19e5e4491232a56f60ad81c32b6af30f308f2479e11df92d6a51478f46dea32c
Leberwurscht/Diaspora-User-Directory
packet.ml
(************************************************************************) This file is part of SKS . SKS is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or (...
null
https://raw.githubusercontent.com/Leberwurscht/Diaspora-User-Directory/1ca4a06a67d591760516edffddb0308b86b6314c/trie_manager/packet.ml
ocaml
********************************************************************** ********************************************************************* * write out new-style packet specify new packet format * writes out packet, using old-style packets when possible write new-style packet write old-style packet
This file is part of SKS . SKS is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any later version . This program is distributed in ...
58166a48ee3610d74c8652d54622024956fcf59d5304b57e0f437910339638de
liquidz/antq
core_test.clj
(ns antq.core-test (:require [antq.changelog :as changelog] [antq.core :as sut] [antq.record :as r] [antq.util.dep :as u.dep] [antq.util.exception :as u.ex] [antq.util.git :as u.git] [antq.ver :as ver] [clojure.string :as str] [clojure.test :as t] [clojure.tools.cli :as cli])) (defmetho...
null
https://raw.githubusercontent.com/liquidz/antq/ca8472b28702f5e568492001bc476fb09e5b2e6b/test/antq/core_test.clj
clojure
(ns antq.core-test (:require [antq.changelog :as changelog] [antq.core :as sut] [antq.record :as r] [antq.util.dep :as u.dep] [antq.util.exception :as u.ex] [antq.util.git :as u.git] [antq.ver :as ver] [clojure.string :as str] [clojure.test :as t] [clojure.tools.cli :as cli])) (defmetho...
a36acf0f7859e1d6e0eb34ae6c95092200a23962b8f166f37f32bc55f5732d6f
igorhvr/bedlam
dict.scm
(define (query-dictionary database word) (import srfi-13) (let* ([sock (open-tcp-socket "dict.org" 2628)] [out (open-socket-output-port sock #t)] [def (with-output-to-string (lambda () (with-input-from-port (open-socket-input-port sock) (lambda (...
null
https://raw.githubusercontent.com/igorhvr/bedlam/b62e0d047105bb0473bdb47c58b23f6ca0f79a4e/sisc/sisc-contrib/irc/scheme/sarah/plugins/dict.scm
scheme
(define (query-dictionary database word) (import srfi-13) (let* ([sock (open-tcp-socket "dict.org" 2628)] [out (open-socket-output-port sock #t)] [def (with-output-to-string (lambda () (with-input-from-port (open-socket-input-port sock) (lambda (...
0516eee47b80a1a788fb21bc93a95329462ebb9255b2b3954046fab39c6f2cff
DavidAlphaFox/RabbitMQ
rabbit_stomp_reader.erl
The contents of this file are subject to the Mozilla Public License %% Version 1.1 (the "License"); you may not use this file except in %% compliance with the License. You may obtain a copy of the License %% at / %% Software distributed under the License is distributed on an " AS IS " %% basis, WITHOUT WARRANTY OF ...
null
https://raw.githubusercontent.com/DavidAlphaFox/RabbitMQ/0a64e6f0464a9a4ce85c6baa52fb1c584689f49a/plugins-src/rabbitmq-stomp/src/rabbit_stomp_reader.erl
erlang
Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at / basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. ----------------...
The contents of this file are subject to the Mozilla Public License Software distributed under the License is distributed on an " AS IS " The Original Code is RabbitMQ . The Initial Developer of the Original Code is GoPivotal , Inc. Copyright ( c ) 2007 - 2014 GoPivotal , Inc. All rights reserved . -module...
dac8fb53c97ec45038bdfd45aa23afcb531767cc9d4e7bd98bdbbcac020fd577
yrashk/erlang
snmp_standard_mib.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 1996 - 2009 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Pu...
null
https://raw.githubusercontent.com/yrashk/erlang/e1282325ed75e52a98d58f5bd9fb0fa27896173f/lib/snmp/src/agent/snmp_standard_mib.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limit...
Copyright Ericsson AB 1996 - 2009 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " -module(snmp_standard_mib). -include("snm...
773657d2cabdf6060a2f07f29129eb530570e943dfc4cfcba3aa723ce7303769
madgen/exalog
Helper.hs
module Language.Exalog.Pretty.Helper ( pp , Pretty(..) , PrettyCollection(..) , (<?>) , (<+?>) , ($?$) , ($+?$) , cond , csep ) where import Protolude hiding ((<>), empty, head) import Data.String (fromString) import Data.Text (unpack) import Text.PrettyPrint -- | Render as t...
null
https://raw.githubusercontent.com/madgen/exalog/7d169b066c5c08f2b8e44f5e078df264731ac177/src/Language/Exalog/Pretty/Helper.hs
haskell
| Render as text | Same as `<>` but `empty` acts as an annihilator | Same as `<+>` but `empty` acts as an annihilator | Same as `$$` but `empty` acts as an annihilator | Same as `$+?$` but `empty` acts as an annihilator Common instances # OVERLAPPABLE #
module Language.Exalog.Pretty.Helper ( pp , Pretty(..) , PrettyCollection(..) , (<?>) , (<+?>) , ($?$) , ($+?$) , cond , csep ) where import Protolude hiding ((<>), empty, head) import Data.String (fromString) import Data.Text (unpack) import Text.PrettyPrint pp :: Pretty a =...
face1891f5037a0d354c8949eb6be72062a7c6a8cefbbf757ff8fc4486fa19a4
yariv/twoorl
twoorl_pol.erl
This file is part of Twoorl . %% %% Twoorl is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or %% (at your option) any later version. %% %% Twoorl is distributed in the ho...
null
https://raw.githubusercontent.com/yariv/twoorl/77b6bea2e29283d09a95d8db131b916e16d2960b/src/bundles/twoorl_pol.erl
erlang
Twoorl is free software: you can redistribute it and/or modify (at your option) any later version. Twoorl 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 PURPOSE. See the GNU General Public License f...
This file is part of Twoorl . it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License along with . If not , see < / > . -module(twoorl_pol). -export([bundle/1...
ff5481fe3caf431eed48e6e09db1b4081f21bbe138cf793e3495151700916209
imdea-software/leap
PosExpression.ml
(***********************************************************************) (* *) LEAP (* *) , IMDEA ...
null
https://raw.githubusercontent.com/imdea-software/leap/5f946163c0f80ff9162db605a75b7ce2e27926ef/src/expression/PosExpression.ml
ocaml
********************************************************************* ...
LEAP , IMDEA Software Institute Copyright 2011 IMDEA Software Institute Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compl...
b08a738574c9317e7407f2319366a37f75512077c4fe14c388f6c528efd856a4
karamellpelle/grid
Fancy.hs
grid is a game written in Haskell Copyright ( C ) 2018 -- -- This file is part of grid. -- -- grid is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or -- (at your optio...
null
https://raw.githubusercontent.com/karamellpelle/grid/56729e63ed6404fd6cfd6d11e73fa358f03c386f/source/Game/Run/RunWorld/Scene/Fancy.hs
haskell
This file is part of grid. grid is free software: you can redistribute it and/or modify (at your option) any later version. grid 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 PURPOSE. See the GN...
grid is a game written in Haskell Copyright ( C ) 2018 it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License module Game.Run.RunWorld.Scene.Fancy ( Scene ...
6e223e083adb50b03505040a3864dcaf82513ef65cf6060a181b8470738137a3
tolysz/ghcjs-stack
World.hs
----------------------------------------------------------------------------- -- | -- Module : Distribution.Client.World Copyright : ( c ) 2009 -- License : BSD-like -- -- Maintainer : -- Stability : provisional -- Portability : portable -- Interface to the world - file that contains a list...
null
https://raw.githubusercontent.com/tolysz/ghcjs-stack/83d5be83e87286d984e89635d5926702c55b9f29/special/cabal-next/cabal-install/Distribution/Client/World.hs
haskell
--------------------------------------------------------------------------- | Module : Distribution.Client.World License : BSD-like Maintainer : Stability : provisional Portability : portable requested packages. Meant to be imported qualified. A world file entry stores the package-name, pac...
Copyright : ( c ) 2009 Interface to the world - file that contains a list of explicitly module Distribution.Client.World ( WorldPkgInfo(..), insert, delete, getContents, ) where import Distribution.Package ( Dependency(..) ) import Distribution.PackageDescription ( FlagAs...
93e594338854c5b52f1563df726b3e73cc4da2ffcb86f7348b45c7638746a71d
iconnect/regex
ByteString.hs
# LANGUAGE NoImplicitPrelude # # LANGUAGE MultiParamTypeClasses # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # OPTIONS_GHC -fno - warn - orphans # # OPTIONS_GHC -fno - warn - duplicate - exports # # LANGUAGE CPP ...
null
https://raw.githubusercontent.com/iconnect/regex/68752790a8f75986b917b71cf0e8e22cd3a28a3d/Text/RE/PCRE/ByteString.hs
haskell
* Tutorial $tutorial * The 'Matches' and 'Match' Operators * The 'SearchReplace' Operators * The 'Matches' Type * The 'Match' Type $macros * The 'RE' Type * Options $options * Compiling and Escaping REs * The re Quasi Quoters $re $ed * IsRegex | find all the matches in the argument text; e.g., to count ...
# LANGUAGE NoImplicitPrelude # # LANGUAGE MultiParamTypeClasses # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # OPTIONS_GHC -fno - warn - orphans # # OPTIONS_GHC -fno - warn - duplicate - exports # # LANGUAGE CPP ...
bfc3fb63a5f6a5b19c10d95e688499cfa6db2c78351f1591f0b0efbc8c09f348
smahood/re-frame-conj-2016
snippet4.cljs
(defn on-jsload [] (mount-root)) (defn ^:export run [] (re-frisk/enable-re-frisk! {:x 0 :y 0}) (mount-root))
null
https://raw.githubusercontent.com/smahood/re-frame-conj-2016/51fe544a5f4e95f28c26995c11d64301ba9a2142/show/src/show/snippets/snippet4.cljs
clojure
(defn on-jsload [] (mount-root)) (defn ^:export run [] (re-frisk/enable-re-frisk! {:x 0 :y 0}) (mount-root))
2a671750f5329e33eb5dc8822c802ce4dcbfd677f313973480a74cbe454c6bb0
patzy/glaw
sdl.lisp
(defpackage :glaw-sdl (:use #:cl #:glaw) (:export #:translate-keysym)) (in-package #:glaw-sdl) ;; input (defun translate-keysym (keysym) "Translate a subset of SDL keysym to GLAW compatible keysyms." (case keysym (:sdl-key-up :up) (:sdl-key-down :down) (:sdl-key-left :left) (:sdl-key-righ...
null
https://raw.githubusercontent.com/patzy/glaw/e678fc0c107ce4b1e3ff9921a6de7e32fd39bc37/ext/sdl.lisp
lisp
input image asset load unload texture asset load XXX: loaded data is top-left origin while textures are bottom-left unload font asset load unload
(defpackage :glaw-sdl (:use #:cl #:glaw) (:export #:translate-keysym)) (in-package #:glaw-sdl) (defun translate-keysym (keysym) "Translate a subset of SDL keysym to GLAW compatible keysyms." (case keysym (:sdl-key-up :up) (:sdl-key-down :down) (:sdl-key-left :left) (:sdl-key-right :right)...
0212a320f9bfd4dde0e144479ea4c169625eacec5922598be841c120f07b1601
yrashk/erlang
snmpa_general_db.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2000 - 2009 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Pub...
null
https://raw.githubusercontent.com/yrashk/erlang/e1282325ed75e52a98d58f5bd9fb0fa27896173f/lib/snmp/src/agent/snmpa_general_db.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limita...
Copyright Ericsson AB 2000 - 2009 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " -module(snmpa_general_db). This module ...
a5dc3a6ed92ae08800f5a87ec905cc91ac8c81fd45849eb2370c5a5264f2b9da
sweirich/trellys
BaseTypes.hs
module BaseTypes ( Literal(..) , ppLit ) where import Text.PrettyPrint.HughesPJ (Doc,text) data Literal = LInt Int | LDouble Double | LChar Char | LInteger Integer | LUnit deriving Eq ppLit :: Literal -> Doc ppLit (LInt n) = text(show n) ppLit (LInteger n) = text(show n) ppLit (LDouble d) = ...
null
https://raw.githubusercontent.com/sweirich/trellys/63ea89d8fa09929c23504665c55a3d909fe047c5/nax/src/BaseTypes.hs
haskell
module BaseTypes ( Literal(..) , ppLit ) where import Text.PrettyPrint.HughesPJ (Doc,text) data Literal = LInt Int | LDouble Double | LChar Char | LInteger Integer | LUnit deriving Eq ppLit :: Literal -> Doc ppLit (LInt n) = text(show n) ppLit (LInteger n) = text(show n) ppLit (LDouble d) = ...
aa16f933622f59e38b2023f7a9dfcf77ace79709137d21f1606e524dfe4036bc
KeliLanguage/compiler
Package.hs
# LANGUAGE DeriveGeneric # {-# LANGUAGE BangPatterns #-} module Package where import GHC.Generics hiding(packageName) import Control.Monad import Control.Concurrent import qualified Data.ByteString.Lazy.Char8 as Char8 import Text.ParserCombinators.Parsec hiding (token) import Data.Either import System.Directory import...
null
https://raw.githubusercontent.com/KeliLanguage/compiler/5cc5f2314fa0e0863a49c504cdb115d799f382f6/src/Package.hs
haskell
# LANGUAGE BangPatterns # initialize git stage and commit auto-generated files init is used for removing the last newline character if no parse errors skip the download for this grurl if there are parse errors display parse errors this line is to silent all the stuff from git clone restructure the folder if s...
# LANGUAGE DeriveGeneric # module Package where import GHC.Generics hiding(packageName) import Control.Monad import Control.Concurrent import qualified Data.ByteString.Lazy.Char8 as Char8 import Text.ParserCombinators.Parsec hiding (token) import Data.Either import System.Directory import System.IO import System.Exit ...
8e79b692182b5a996c5c878b702f68ad809f0ed11bf2f12e7b40d7f555a12585
tisnik/clojure-examples
core.clj
; ( C ) Copyright 2016 , 2020 , 2021 ; ; All rights reserved. This program and the accompanying materials ; are made available under the terms of the Eclipse Public License v1.0 ; which accompanies this distribution, and is available at -v10.html ; ; Contributors: ; (ns stream-pipe-4.core (:re...
null
https://raw.githubusercontent.com/tisnik/clojure-examples/a5f9d6119b62520b05da64b7929d07b832b957ab/kafka-stream-pipe-4/src/stream_pipe_4/core.clj
clojure
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at Contributors: spuštění kolony
( C ) Copyright 2016 , 2020 , 2021 -v10.html (ns stream-pipe-4.core (:require [jackdaw.admin :as ja] [jackdaw.client :as jc] [jackdaw.client.log :as jl] [jackdaw.serdes.json] [jackdaw.streams :as j] [clojure.pprint :as pp] [cl...
39298a781bb690c25bb79c89d87910087fb4528beee1a5e1234f5b49ec0cfaa5
utdemir/distributed-dataset
Types.hs
{-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveGeneric # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE StaticPointers # # LANGUAGE TemplateHaskell # module Control.Distributed.Dataset.OpenDatasets.GHArchive.Types where import Codec.Serialise (Serialise) import Control.Distributed.Dataset ( Dict (Dict), Static...
null
https://raw.githubusercontent.com/utdemir/distributed-dataset/a582a96e541884580e66bc5d87b4d498c8d58182/distributed-dataset-opendatasets/src/Control/Distributed/Dataset/OpenDatasets/GHArchive/Types.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE OverloadedStrings #
# LANGUAGE DeriveGeneric # # LANGUAGE StaticPointers # # LANGUAGE TemplateHaskell # module Control.Distributed.Dataset.OpenDatasets.GHArchive.Types where import Codec.Serialise (Serialise) import Control.Distributed.Dataset ( Dict (Dict), StaticSerialise (staticSerialise), ) import Control.Lens.TH (makeLenses...
65d5d781a2ed67babdfb5679def1cbe406d02af8e5be6be1682e5fd2d5e21ed9
Helium4Haskell/helium
LayoutBad6.hs
module LayoutBad6 where x = id (case x of 3 -> 4)
null
https://raw.githubusercontent.com/Helium4Haskell/helium/5928bff479e6f151b4ceb6c69bbc15d71e29eb47/test/parser/LayoutBad6.hs
haskell
module LayoutBad6 where x = id (case x of 3 -> 4)
c0f771158d54078435e75b819d9c6a408764252275979a2dd320d7f7702d81f3
brownplt/cs173-python
basic.rkt
#lang plai (require racket/match racket/list) (define (pretty-struct s) (pretty-write s)) (define (pretty-store s) (pretty-write s)) (define (pretty-scopedb s) (pretty-write s))
null
https://raw.githubusercontent.com/brownplt/cs173-python/d8ae026172f269282e54366f16ec42e037117cb4/design2/python/basic.rkt
racket
#lang plai (require racket/match racket/list) (define (pretty-struct s) (pretty-write s)) (define (pretty-store s) (pretty-write s)) (define (pretty-scopedb s) (pretty-write s))
5c81c64d9371fe1771fbed60a3a7480c0f4e4ad48074269db66abff1ca394b73
ntoronto/drbayes
arrow-tests.rkt
#lang typed/racket (require typed/rackunit drbayes/private/set drbayes/private/arrow) (check-true (set-equal? (range/pre (run/pre (+/pre) (set-pair (real-set 0.0 1.0 #t #t) (real-set 0.0 1.0 #t #t)))) (real-set 0.0 2.0 #t #t))) (let (...
null
https://raw.githubusercontent.com/ntoronto/drbayes/e59eb7c7867118bf4c77ca903e133c7530e612a3/drbayes/tests/arrow-tests/arrow-tests.rkt
racket
#lang typed/racket (require typed/rackunit drbayes/private/set drbayes/private/arrow) (check-true (set-equal? (range/pre (run/pre (+/pre) (set-pair (real-set 0.0 1.0 #t #t) (real-set 0.0 1.0 #t #t)))) (real-set 0.0 2.0 #t #t))) (let (...
e312f67015024220dc4d17e4f7778695e292068058ed37e3c106f22ee1a7217d
chrisnevers/ocamline
read.ml
open Ocamline let hints = function | "git remote add " -> Some (" <remote name> <remote url>", LNoise.Yellow, true) | _ -> None let completion line_so_far ln_completions = if line_so_far <> "" && line_so_far.[0] = 'h' then ["Hey"; "Howard"; "Hughes"; "Hocus"] |> List.iter (LNoise.add_completion ln_completio...
null
https://raw.githubusercontent.com/chrisnevers/ocamline/6a9c5a190844a3ecbbb0b168372248d10fa184d0/examples/read.ml
ocaml
open Ocamline let hints = function | "git remote add " -> Some (" <remote name> <remote url>", LNoise.Yellow, true) | _ -> None let completion line_so_far ln_completions = if line_so_far <> "" && line_so_far.[0] = 'h' then ["Hey"; "Howard"; "Hughes"; "Hocus"] |> List.iter (LNoise.add_completion ln_completio...
fce597b743ee3f19020c1a6cbb968cb2de1d4b8673b9de7b2bd26ad6074dd3af
malcolmsparks/plugboard
test_accept.clj
Copyright 2010 . ;; This file is part of Plugboard . ;; Plugboard is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any ;; later version. ...
null
https://raw.githubusercontent.com/malcolmsparks/plugboard/c1e78afc5dde60b08b48020c6f3ef800f05d1ada/src/test/clojure/plugboard/demos/accept/test_accept.clj
clojure
later version. WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. TODO: Do more tests to check different content negotiation situations.
Copyright 2010 . This file is part of Plugboard . Plugboard is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any Plugboard is distribut...
72864587aff3425c9a22e78d382fe63d5922b0be3f3fe60f31c16ece487241df
RefactoringTools/HaRe
M3.hs
module M3 where --Any type/data constructor name declared in this module can be renamed. --Any type variable can be renamed. Rename type Constructor ' BTree ' to ' MyBTree ' data BTree a = Empty | T a (BTree a) (BTree a) deriving Show buildtree :: (Monad m, Ord a) => [a] -> m (BTree a) buildtree [] =...
null
https://raw.githubusercontent.com/RefactoringTools/HaRe/ef5dee64c38fb104e6e5676095946279fbce381c/old/testing/unfoldAsPatterns/M3.hs
haskell
Any type/data constructor name declared in this module can be renamed. Any type variable can be renamed.
module M3 where Rename type Constructor ' BTree ' to ' MyBTree ' data BTree a = Empty | T a (BTree a) (BTree a) deriving Show buildtree :: (Monad m, Ord a) => [a] -> m (BTree a) buildtree [] = return Empty buildtree (x:xs) = do res1 <- buildtree xs res <- ins...
fa8e2988c1fc24fb0aaea415cc270cac1e800809f84fa1284bf5ceba5bf0de55
faylang/fay
C.hs
module ImportList1.C where import Prelude data A = B1 { b1 :: Double } | B2 Double data UnimportedX = UnimportedY unimportedF :: Double unimportedF = 1
null
https://raw.githubusercontent.com/faylang/fay/8455d975f9f0db2ecc922410e43e484fbd134699/tests/ImportList1/C.hs
haskell
module ImportList1.C where import Prelude data A = B1 { b1 :: Double } | B2 Double data UnimportedX = UnimportedY unimportedF :: Double unimportedF = 1
435eb05037a60aaae5d833939cde4b20463a473d6afc7e597f05b1875e250f7c
ocaml-ppx/ppx
view_attr.mli
* Helpers to interpret [ [ @view ? ... ] ] attributes open Ppx_ast.V4_07 (** The type for information about an extra record field. *) type field = Longident_loc.t * Pattern.t * Extracts the extra field information from the [ [ @view ? ... ] ] attributes amongst the given pattern attributes . Returns [ None ] i...
null
https://raw.githubusercontent.com/ocaml-ppx/ppx/40e5a35a4386d969effaf428078c900bd03b78ec/ppx_view/lib/view_attr.mli
ocaml
* The type for information about an extra record field.
* Helpers to interpret [ [ @view ? ... ] ] attributes open Ppx_ast.V4_07 type field = Longident_loc.t * Pattern.t * Extracts the extra field information from the [ [ @view ? ... ] ] attributes amongst the given pattern attributes . Returns [ None ] if there is no such attribute . amongst the given pa...
ec70aeee665528705425615de56e8a6c95a2274b637dad993973351f626294a3
racket/plot
marching-utils.rkt
#lang typed/racket/base (provide (all-defined-out)) ;; Returns the interpolated distance of z from za toward zb Examples : if z = za , this returns 0.0 if z = zb , this returns 1.0 if z = ( za + zb ) / 2 , this returns 0.5 ;; Intuitively, regard a use (solve-t z za zb) as "the point between ...
null
https://raw.githubusercontent.com/racket/plot/c4126001f2c609e36c3aa12f300e9c673ab1a806/plot-lib/plot/private/common/marching-utils.rkt
racket
Returns the interpolated distance of z from za toward zb Intuitively, regard a use (solve-t z za zb) as "the point between za and zb".
#lang typed/racket/base (provide (all-defined-out)) Examples : if z = za , this returns 0.0 if z = zb , this returns 1.0 if z = ( za + zb ) / 2 , this returns 0.5 (define-syntax-rule (solve-t z za zb) (/ (- z za) (- zb za))) (define-syntax-rule (unsolve-t za zb t) (cond [(eq? t 0) za] ...
4fa0b0a7f50296bc141b906b1878e35bdd30544dbd7181ca9406d2ff45e6e2ec
melange-re/melange-compiler-libs
printtyped.ml
(**************************************************************************) (* *) (* OCaml *) (* *) (* ...
null
https://raw.githubusercontent.com/melange-re/melange-compiler-libs/2fac95b0ea97fb676240662aeeec8c6f6495dd9c/typing/printtyped.ml
ocaml
************************************************************************ OCaml Fabrice L...
Copyright 1999 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Asttypes;; open Format;; open Lexing;; open Location;; open Typedtree;; let fmt_position f l = if l.pos_lnum = -1 then fprintf f "%s[%d]" l.pos_fname l.pos_cnum...
0413942677020db573a3eba1ca1a46643d1fbde020afc3bfcd88850b9ad9ac9c
alwx/luno-react-native
handlers.cljs
(ns luno.handlers (:require [re-frame.core :refer [register-handler dispatch after]] [schema.core :as s :include-macros true] [clojure.walk :refer [keywordize-keys]] [ajax.core :refer [GET POST]] [luno.config :refer [openweathermap-appid bing-appid]] [luno.schema :refer [app-db schema]] [l...
null
https://raw.githubusercontent.com/alwx/luno-react-native/34f9f8b01c1248cf64f40be9638e8352fd8fd448/src/luno/handlers.cljs
clojure
-- DB handlers ------------------------------------------------------------- -- Network handlers -------------------------------------------------------- -- Other handlers ----------------------------------------------------------
(ns luno.handlers (:require [re-frame.core :refer [register-handler dispatch after]] [schema.core :as s :include-macros true] [clojure.walk :refer [keywordize-keys]] [ajax.core :refer [GET POST]] [luno.config :refer [openweathermap-appid bing-appid]] [luno.schema :refer [app-db schema]] [l...
fb710cb35a691d9b52139ff09e2d5ecd35fd479aa95e895019d7afa348ef01fe
Octachron/orec
default.ml
include Namespace.Make()
null
https://raw.githubusercontent.com/Octachron/orec/cc6e6546cf7dbd5b49bf6b6d913f452f2e1c5d89/src/default.ml
ocaml
include Namespace.Make()
0ce8c288f7db8202e11250f68669bdd037ec32764744797aeb8e08a4b6abbc85
tsloughter/kuberl
kuberl_v1_http_header.erl
-module(kuberl_v1_http_header). -export([encode/1]). -export_type([kuberl_v1_http_header/0]). -type kuberl_v1_http_header() :: #{ 'name' := binary(), 'value' := binary() }. encode(#{ 'name' := Name, 'value' := Value }) -> #{ 'name' => Name, 'value' => Value }.
null
https://raw.githubusercontent.com/tsloughter/kuberl/f02ae6680d6ea5db6e8b6c7acbee8c4f9df482e2/gen/kuberl_v1_http_header.erl
erlang
-module(kuberl_v1_http_header). -export([encode/1]). -export_type([kuberl_v1_http_header/0]). -type kuberl_v1_http_header() :: #{ 'name' := binary(), 'value' := binary() }. encode(#{ 'name' := Name, 'value' := Value }) -> #{ 'name' => Name, 'value' => Value }.
cf55a7959c1d0adf94fb40be90e11cd295409cdef6254b419e889723fffc5cf4
lpeterse/haskell-terminal
Internal.hs
module System.Terminal.Internal ( -- ** Terminal Terminal (..) , Command (..) , Attribute (..) , Color (..) , Decoder (..) , defaultDecoder , defaultEncode -- ** LocalTerminal , System.Terminal.Platform.LocalTerminal () -- ** VirtualTerminal (for testing) , VirtualT...
null
https://raw.githubusercontent.com/lpeterse/haskell-terminal/994602af65e7f038bc387139ec961248760fd6e6/src/System/Terminal/Internal.hs
haskell
** Terminal ** LocalTerminal ** VirtualTerminal (for testing)
module System.Terminal.Internal ( Terminal (..) , Command (..) , Attribute (..) , Color (..) , Decoder (..) , defaultDecoder , defaultEncode , System.Terminal.Platform.LocalTerminal () , VirtualTerminal (..) , VirtualTerminalSettings (..) , withVirtualTerminal ) where ...
e665fe2073e27b2dd717890106ce1e458ab976cf1a1cf8660a3c73ad1e13f636
spurious/sagittarius-scheme-mirror
ffi.scm
-*- mode : scheme ; coding : utf-8 ; -*- #!read-macro=sagittarius/regex (library (sagittarius ffi) (export open-shared-library lookup-shared-library close-shared-library shared-object-suffix c-function issue 83 pointer->c-function c-callback make-c-callback ;; in some cases, ...
null
https://raw.githubusercontent.com/spurious/sagittarius-scheme-mirror/53f104188934109227c01b1e9a9af5312f9ce997/ext/ffi/sagittarius/ffi.scm
scheme
coding : utf-8 ; -*- in some cases, we want this as well malloc finalizer pointer c-struct typedef sizes address for convenience ref for convenience for convenience set! for convenience alignment c-primitives for some convenience for some convenience utility c-variable clos helper should be eithe...
#!read-macro=sagittarius/regex (library (sagittarius ffi) (export open-shared-library lookup-shared-library close-shared-library shared-object-suffix c-function issue 83 pointer->c-function c-callback free-c-callback callback? c-malloc c-free register-ffi-fi...
a009575ff3c40ac38f4aba82c68066f7adf11951ffdbd0c2d42ac78d0f85b3ed
Emmanuel-PLF/facile
fcl_reify.ml
(***********************************************************************) (* *) FaCiLe A Functional Constraint Library (* ...
null
https://raw.githubusercontent.com/Emmanuel-PLF/facile/3b6902e479019c25b582042d9a02152fec145eb0/lib/fcl_reify.ml
ocaml
********************************************************************* under the terms of the GNU Lesser Gener...
FaCiLe A Functional Constraint Library , , LOG , CENA Copyright 2004 CENA . All rights reserved . This file is distributed $ I d : , v 1.21 2004/08/12 15:22:07 barnier Exp $ ope...
9d4b4f178e098866983fe8799d44cd2655a6f5410cf8473a23ca65abeeaa9375
sheyll/b9-vm-image-builder
ErlangPropList.hs
| Allow reading , merging and writing Erlang terms . module B9.Artifact.Content.ErlangPropList ( ErlangPropList (..), textToErlangAst, stringToErlangAst, ) where import B9.Artifact.Content import B9.Artifact.Content.AST import B9.Artifact.Content.ErlTerms import B9.Artifact.Content.StringTemplate import ...
null
https://raw.githubusercontent.com/sheyll/b9-vm-image-builder/4d2af80d3be4decfce6c137ee284c961e3f4a396/src/lib/B9/Artifact/Content/ErlangPropList.hs
haskell
the form of a proplist. * Misc. utilities | Parse a text containing an @Erlang@ expression ending with a @.@ and Return an 'AST'. @since 0.5.67 | Parse a string containing an @Erlang@ expression ending with a @.@ and Return an 'AST'. @since 0.5.67
| Allow reading , merging and writing Erlang terms . module B9.Artifact.Content.ErlangPropList ( ErlangPropList (..), textToErlangAst, stringToErlangAst, ) where import B9.Artifact.Content import B9.Artifact.Content.AST import B9.Artifact.Content.ErlTerms import B9.Artifact.Content.StringTemplate import ...
ae1b654f0a1951863bbafa3aaeb4bf3fe15324e543f04fd4796c89412fefca81
tomgr/libcspm
Wrapper.hs
# LANGUAGE FlexibleContexts # -- | A wrapper around the types and functions from "Data.Graph" to make programming with them less painful. Also implements some extra useful goodies such as ' successors ' and ' ' , and improves the documentation of -- the behaviour of some functions. -- -- As it wraps "Data.Graph", th...
null
https://raw.githubusercontent.com/tomgr/libcspm/24d1b41954191a16e3b5e388e35f5ba0915d671e/src/Data/Graph/Wrapper.hs
haskell
| A wrapper around the types and functions from "Data.Graph" to make programming with them less painful. Also the behaviour of some functions. As it wraps "Data.Graph", this module only supports directed graphs with unlabelled edges. on code described in: amapWithKey :: Ix i => (i -> v -> v') -> Array i v -> Ar...
# LANGUAGE FlexibleContexts # implements some extra useful goodies such as ' successors ' and ' ' , and improves the documentation of Incorporates code from the ' containers ' package which is ( c ) The University of Glasgow 2002 and based /Lazy Depth - First Search and Linear Graph Algorithms in Haskell/ , ...
328c0512432a7d71e3618e0822ef7bef19c8a8d393f7411a7d1b41365f362a7a
al3623/rippl
natives.ml
module L = Llvm open Ast open Tast open Structs open Lib let eval_t : L.lltype = L.function_type (L.pointer_type i8_t) [| L.pointer_type struct_thunk_type |] let arith_t : L.lltype = L.function_type (L.pointer_type i32_t) [| L.pointer_type struct_thunk_type ; L.pointer_type struct_thunk_type |] let...
null
https://raw.githubusercontent.com/al3623/rippl/a7e5c24f67935b3513324148279791042856a1fa/src/natives.ml
ocaml
module L = Llvm open Ast open Tast open Structs open Lib let eval_t : L.lltype = L.function_type (L.pointer_type i8_t) [| L.pointer_type struct_thunk_type |] let arith_t : L.lltype = L.function_type (L.pointer_type i32_t) [| L.pointer_type struct_thunk_type ; L.pointer_type struct_thunk_type |] let...
10d5ac06d6ee8afc4dc7d5077ba7573c9c6f1cf579060eab58d285bc555ee9af
schani/flickr-clojure
flickr_api.clj
;;; flickr_api.clj flickr - clojure --- Flickr API bindings for Clojure Copyright ( C ) 2009 - 2012 ;; 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 3 of the License , o...
null
https://raw.githubusercontent.com/schani/flickr-clojure/be4739cc4300a593b4688d56ccebcbab70eb3352/src/at/ac/tuwien/complang/flickr_api.clj
clojure
flickr_api.clj This program is free software: you can redistribute it and/or modify (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 PARTICULAR PURPOSE. See the GNU ...
flickr - clojure --- Flickr API bindings for Clojure Copyright ( C ) 2009 - 2012 it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License (ns at.ac.tuwien.c...
30b7ff4cd7a60aa88101f97345ba8f25849b1861b3457e27a66037a6b0a5341f
cram2/cram
higher-moments.lisp
;; Skewness and kurtosis. , Sun Dec 31 2006 - 14:20 Time - stamp : < 2014 - 12 - 26 13:16:00EST higher-moments.lisp > ;; Copyright 2006 , 2007 , 2008 , 2009 , 2011 , 2012 , 2014 Distributed under the terms of the GNU General Public License ;; ;; This program is free software: you can redistribute it and/or...
null
https://raw.githubusercontent.com/cram2/cram/dcb73031ee944d04215bbff9e98b9e8c210ef6c5/cram_3rdparty/gsll/src/statistics/higher-moments.lisp
lisp
Skewness and kurtosis. This program is free software: you can redistribute it and/or modify (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 PARTICULAR PURPOSE. Se...
, Sun Dec 31 2006 - 14:20 Time - stamp : < 2014 - 12 - 26 13:16:00EST higher-moments.lisp > Copyright 2006 , 2007 , 2008 , 2009 , 2011 , 2012 , 2014 Distributed under the terms of the GNU General Public License it under the terms of the GNU General Public License as published by the Free Software Found...
398b6ad63c65d8f0b93d9524d3a2c45bbd469b5d7237a4b0f256c992302944fa
klarna/erlavro
avro_binary_decoder_tests.erl
%% coding: latin-1 %%%------------------------------------------------------------------- Copyright ( c ) 2013 - 2016 Klarna AB %%% 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 . You may obtain %%% a copy...
null
https://raw.githubusercontent.com/klarna/erlavro/c55e55238ed879642c65d00c8105e498b4acc8db/test/avro_binary_decoder_tests.erl
erlang
coding: latin-1 ------------------------------------------------------------------- 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 language gove...
Copyright ( c ) 2013 - 2016 Klarna AB 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(avro_binary_decoder_tests). -imp...
27ffb32976fe8a1bd6ea947b778ee67aa4ac8fbad47ef21142fa7c039f8e81e8
fleximus/redirect_service
redirect_service_app.erl
%% Feel free to use, reuse and abuse the code in this file. @private -module(redirect_service_app). -behaviour(application). %% API. -export([start/2]). -export([stop/1]). %% API. start(_Type, _Args) -> Dispatch = cowboy_router:compile([ {'_', [ {"/[...]", cowboy_static, [ {directory, {priv_dir, redirec...
null
https://raw.githubusercontent.com/fleximus/redirect_service/57b56a3fad3379ca5ae662764594b179c323e251/src/redirect_service_app.erl
erlang
Feel free to use, reuse and abuse the code in this file. API. API.
@private -module(redirect_service_app). -behaviour(application). -export([start/2]). -export([stop/1]). start(_Type, _Args) -> Dispatch = cowboy_router:compile([ {'_', [ {"/[...]", cowboy_static, [ {directory, {priv_dir, redirect_service, []}}, {mimetypes, {fun mimetypes:path_to_mimes/2, default}} ...
cf0520684a1c7e1866794537a6385bc7f5057f1b6838f302100445ce9cdfd913
expipiplus1/vulkan
Alias.hs
module Render.Alias where import Prettyprinter import Polysemy import Polysemy.Input import Relude import Error import Render.Element import Render.SpecInfo import Spec.Parse renderAlias :: (HasErr r, HasRenderParams r, HasSpecInfo r...
null
https://raw.githubusercontent.com/expipiplus1/vulkan/b1e33d1031779b4740c279c68879d05aee371659/generate-new/src/Render/Alias.hs
haskell
module Render.Alias where import Prettyprinter import Polysemy import Polysemy.Input import Relude import Error import Render.Element import Render.SpecInfo import Spec.Parse renderAlias :: (HasErr r, HasRenderParams r, HasSpecInfo r...
f90c2c855ac162d69a800744a0f68841a5a885ffd00c498825c3fc760e67948b
emina/rosette
bool.rkt
#lang racket (require "term.rkt" "union.rkt" "exn.rkt" "result.rkt" "reporter.rkt") (provide ;; ---- lifted boolean? operations ---- ;; @boolean? @false? @true? ! && || => <=> @! @&& @|| @=> @<=> @exists @forall and-&& or-|| instance-of? T*->boolean? ;; ---- VC generation ---- ;; @assert @assume $assert ...
null
https://raw.githubusercontent.com/emina/rosette/a64e2bccfe5876c5daaf4a17c5a28a49e2fbd501/rosette/base/core/bool.rkt
racket
---- lifted boolean? operations ---- ;; ---- VC generation ---- ;; ----------------- Boolean type ----------------- ;; ----------------- Lifting utilities ----------------- ;; A generic typing procedure for a lifted operator that takes N >= 0 arguments of type T and returns a @boolean?. See term.rkt. --...
#lang racket (require "term.rkt" "union.rkt" "exn.rkt" "result.rkt" "reporter.rkt") (provide @boolean? @false? @true? ! && || => <=> @! @&& @|| @=> @<=> @exists @forall and-&& or-|| instance-of? T*->boolean? @assert @assume $assert $assume (rename-out [get-vc vc]) clear-vc! merge-vc! with-vc vc? vc-assumes vc-...
22bd74bdc2e8d2d7cec3507b30a339fe87cfafffa18c09d6ab0cebe058e8dd0e
GaloisInc/macaw
AbsEval.hs
| Copyright : ( c ) Galois , Inc 2015 - 2017 Maintainer : < > , < > This provides a set of functions for abstract evaluation of statements . Copyright : (c) Galois, Inc 2015-2017 Maintainer : Joe Hendrix <>, Simon Winwood <> This provides a set of functions for abstract eva...
null
https://raw.githubusercontent.com/GaloisInc/macaw/ff894f9286f976d0ab131325bea902ef6275aad2/base/src/Data/Macaw/Discovery/AbsEval.hs
haskell
# LANGUAGE GADTs # | Get the abstract value associated with an address. ^ Information about the memory layout for the value. If the value is a stack entry, then see if there is a stack value associated with it. | Get the abstract domain for the right-hand side of an assignment. TODO: See if we should build a mux ...
| Copyright : ( c ) Galois , Inc 2015 - 2017 Maintainer : < > , < > This provides a set of functions for abstract evaluation of statements . Copyright : (c) Galois, Inc 2015-2017 Maintainer : Joe Hendrix <>, Simon Winwood <> This provides a set of functions for abstract eva...
109e28b4bc1869db2a79ed7732ac79eaecbafe2724e9edf24f923e570e3f6bbd
takikawa/racket-ppa
syntax-local.rkt
#lang racket/base (require "../common/set.rkt" "../common/struct-star.rkt" "../syntax/syntax.rkt" "../common/phase.rkt" "../common/phase+space.rkt" "../syntax/scope.rkt" "../syntax/binding.rkt" "../syntax/taint.rkt" "env.rkt" "context.rkt"...
null
https://raw.githubusercontent.com/takikawa/racket-ppa/26d6ae74a1b19258c9789b7c14c074d867a4b56b/src/expander/expand/syntax-local.rkt
racket
---------------------------------------- ---------------------------------------- ---------------------------------------- ---------------------------------------- ---------------------------------------- returns converted ids: ---------------------------------------- ---------------------------------------- w...
#lang racket/base (require "../common/set.rkt" "../common/struct-star.rkt" "../syntax/syntax.rkt" "../common/phase.rkt" "../common/phase+space.rkt" "../syntax/scope.rkt" "../syntax/binding.rkt" "../syntax/taint.rkt" "env.rkt" "context.rkt"...
426718ce1772e7810740ccad0e8bc56ae639b20904302892591c720015ce5b8a
cornell-netlab/yates
Edksp.ml
open Core open Apsp open LP_Lang open Util open Yates_types.Types let prev_scheme = ref SrcDstMap.empty let use_min_cut = true let () = match !Globals.rand_seed with | Some x -> Random.init x | None -> Random.self_init ~allow_in_tests:true () let objective = Var "Z" let capacity_constraints (topo : Topology.t...
null
https://raw.githubusercontent.com/cornell-netlab/yates/fc30922933fae3184923f7b138d24454a9537536/lib/routing/Edksp.ml
ocaml
For every inter-switch edge, there is a unit capacity constraint Total flow is at most 1 Constraint: sum of out going flows to other switches from src's ingress switch = k Every node in the topology except the source and sink has conservation constraints Set objective = sum of all path lengths **************...
open Core open Apsp open LP_Lang open Util open Yates_types.Types let prev_scheme = ref SrcDstMap.empty let use_min_cut = true let () = match !Globals.rand_seed with | Some x -> Random.init x | None -> Random.self_init ~allow_in_tests:true () let objective = Var "Z" let capacity_constraints (topo : Topology.t...
378d12610ba818d672e1695174b3fc3a2d46910ccba3d086dbaec1d30b341af5
nikodemus/SBCL
parse-lambda-list.lisp
This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the ;;;; public domain. The software is in the public domain and is ;;;; provided with absolutely no wa...
null
https://raw.githubusercontent.com/nikodemus/SBCL/3c11847d1e12db89b24a7887b18a137c45ed4661/src/compiler/parse-lambda-list.lisp
lisp
more information. public domain. The software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information. Break something like a lambda list (but not necessarily actually a lambda list, e.g. the representation of argument types which is ...
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") (/show0 "parse-lambda-list.lisp 12") used within an FTYPE specification ) into its component parts . W...
d7d47c547c9ca75a443b66197f7493a3f8e690788a66510433f5d2291e3c1780
aartaka/nyxt-config
config.lisp
(in-package #:nyxt-user) (let ((*default-pathname-defaults* (uiop:pathname-directory-pathname (files:expand *config-file*)))) (load "init"))
null
https://raw.githubusercontent.com/aartaka/nyxt-config/f127750978260fa79b9537f81c4f6664149e4b69/config.lisp
lisp
(in-package #:nyxt-user) (let ((*default-pathname-defaults* (uiop:pathname-directory-pathname (files:expand *config-file*)))) (load "init"))
849576cc6ce445331820e69869c1a5516fd8002f38c8f9da4cd0a68fff2f20ab
herd/herdtools7
X86_64ParseTest.ml
(****************************************************************************) (* the diy toolsuite *) (* *) , University College London , UK . , INRIA Par...
null
https://raw.githubusercontent.com/herd/herdtools7/574c59e111deda09afbba1f2bdd94353f437faaf/herd/X86_64ParseTest.ml
ocaml
************************************************************************** the diy toolsuite en Automatique and ...
, University College London , UK . , INRIA Paris - Rocquencourt , France . Copyright 2023 - present Institut National de Recherche en Informatique et This software is governed by the CeCILL - B license under French law and modify and/ or redistribu...
99e16e2dec9592102f049dcc33356e0e694b17fb5e095586c8ead8cacce0b17b
petitnau/algoml
crowdfunding.ml
open General open Int open Frontend open Amlprinter open Batteries open! Comp let script = parse_file "contracts/crowdfund/crowdfunding.aml";; ; ; failwith " end " ; ; let account_a = Account.bind_balance (Account.empty_user()) Algo 100 let address_a = Account.get_address account_a let account_b = Account.bind_bal...
null
https://raw.githubusercontent.com/petitnau/algoml/c0122c85004114ba634b4946549a78325ff844ee/src/tests/crowdfunding.ml
ocaml
>?> "Address(0).balance[algo] = 0"
open General open Int open Frontend open Amlprinter open Batteries open! Comp let script = parse_file "contracts/crowdfund/crowdfunding.aml";; ; ; failwith " end " ; ; let account_a = Account.bind_balance (Account.empty_user()) Algo 100 let address_a = Account.get_address account_a let account_b = Account.bind_bal...
f7855a2a9d03aa0051b83b7b6965ff196f0c1a158122071d453d039b3035b0ae
okuoku/nausicaa
test-ffi-core.sps
;;; Part of : Nausicaa / Sceme ;;;Contents: tests for ffi library Date : Tue Nov 18 , 2008 ;;; ;;;Abstract ;;; ;;; ;;; Copyright ( c ) 2008 - 2011 < > ;;; ;;;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 Softwar...
null
https://raw.githubusercontent.com/okuoku/nausicaa/50e7b4d4141ad4d81051588608677223fe9fb715/scheme/tests/test-ffi-core.sps
scheme
Contents: tests for ffi library Abstract 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 your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; with...
Part of : Nausicaa / Sceme Date : Tue Nov 18 , 2008 Copyright ( c ) 2008 - 2011 < > the Free Software Foundation , either version 3 of the License , or ( at General Public License for more details . You should have received a copy of the GNU General Public License (import (nausicaa) (nausicaa ffi) (na...
ce77ddfa9d5522fa5be8871a5805836ffd3b5b72925aefc3d64c9dbd2e5f362b
ktahar/ocaml-lp
test_glpk_ffi.ml
open Lp_glpk_ffi.M open Lp_glpk_types.M module C = Ctypes let prob = create_prob () let smcp = C.make Smcp.t let () = init_smcp (C.addr smcp) let iocp = C.make Iocp.t let () = init_iocp (C.addr iocp) let near_eq f0 f1 = Float.abs (f0 -. f1) < 1e-12 let max_int32 = Int32.to_int Int32.max_int module To_test = struct ...
null
https://raw.githubusercontent.com/ktahar/ocaml-lp/d8e2ad3fcef91cef6b3ec1fc39026bc07010c16b/test/lp-glpk/test_glpk_ffi.ml
ocaml
temporarily disable these tests due to dependency on GLPK version. ; ("iocp_default", [test_case "iocp_default" `Quick iocp_default])
open Lp_glpk_ffi.M open Lp_glpk_types.M module C = Ctypes let prob = create_prob () let smcp = C.make Smcp.t let () = init_smcp (C.addr smcp) let iocp = C.make Iocp.t let () = init_iocp (C.addr iocp) let near_eq f0 f1 = Float.abs (f0 -. f1) < 1e-12 let max_int32 = Int32.to_int Int32.max_int module To_test = struct ...
de4ffc50cd21ce9db7f8623afe4c2c559dfcc9f7dbdfa8bd786bc5c01c72a917
tsloughter/rebar3_tests
exometer_histogram.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2014 Basho Technologies , Inc. All Rights Reserved . %% 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 obtai...
null
https://raw.githubusercontent.com/tsloughter/rebar3_tests/af19097d597b061a0fde5c58ce354a623ca05f38/ptrans_deporder/_checkouts/exometer_core/src/exometer_histogram.erl
erlang
------------------------------------------------------------------- ------------------------------------------------------------------- This module implements histogram metrics. Each histogram is a sliding window, for which the following datapoints are calculated: * `max': the maximum value * `min': the minim...
Copyright ( c ) 2014 Basho Technologies , Inc. All Rights Reserved . 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 /. @doc Exometer histogram probe behavior * ` 50|75|90|95|97|99...
97c13a01be3f1d8a69fbb60e5c6d5e201c697a4afa7ec3ac6e3343a19253ed4b
IBM/wcs-ocaml
cnl2cnl.ml
* This file is part of the Watson Conversation Service OCaml API project . * * Copyright 2016 - 2017 IBM Corporation * * 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...
null
https://raw.githubusercontent.com/IBM/wcs-ocaml/b237b7057f44caa09d36e466be015e2bc3173dd5/examples/rulebot/src/cnl2cnl.ml
ocaml
************************* ************************* * This function is useless. It is present only for symetry reason. ********************** **********************
* This file is part of the Watson Conversation Service OCaml API project . * * Copyright 2016 - 2017 IBM Corporation * * 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...
005eae901f018421b7b870d55f4b3baf6b04904a0cc31e5311d3c3d7d72c4b4b
nojb/llvm-min-caml
globals.ml
open MiniMLRuntime;; * * * * * * * * * * * * * * * グローバル変数の宣言 * * * * * * * * * * * * * * * (* オブジェクトのデータを入れるベクトル(最大60個)*) let objects = let dummy = Array.create 0 0.0 in Array.create (60) (0, 0, 0, 0, dummy, dummy, false, dummy, dummy, dummy) [ | x軸の走査線本数 , y軸の走査線本数 | ] let size = Array....
null
https://raw.githubusercontent.com/nojb/llvm-min-caml/68703b905f8292cb2e20b41bbd90cfea85ca2a19/min-rt/globals.ml
ocaml
オブジェクトのデータを入れるベクトル(最大60個) 実行時オプション: デバッグ出力の有無 Screen の座標 視点の座標 (offset なし) 視点の座標 (screen 位置分の offset あり) 鏡面ハイライト強度 (標準=255) AND ネットワークを保持 OR ネットワークを保持 reader read_nth_object 内の作業変数 solver 交点 の t の値 スキャンの方向 交点の直方体表面での方向 発見した交点の最小の t 交点の座標 衝突したオブジェクト 1つの AND ネットワークについての終了フラグ トレース開始点 ...
open MiniMLRuntime;; * * * * * * * * * * * * * * * グローバル変数の宣言 * * * * * * * * * * * * * * * let objects = let dummy = Array.create 0 0.0 in Array.create (60) (0, 0, 0, 0, dummy, dummy, false, dummy, dummy, dummy) [ | x軸の走査線本数 , y軸の走査線本数 | ] let size = Array.create 2 128 let dbg = Array.c...
0e9f9c05f50466004864cd866b7db8a1385759248da47cb6e24f9f773a5ce75c
paurkedal/batyr
log.ml
Copyright ( C ) 2022 < > * * 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 3 of the License , or * ( at your option ) any later version . * * This p...
null
https://raw.githubusercontent.com/paurkedal/batyr/ca1d9b53d1d7328003eaa21037469281e250135d/rockettime/lib/log.ml
ocaml
Copyright ( C ) 2022 < > * * 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 3 of the License , or * ( at your option ) any later version . * * This p...
eaa0c25f37aa41f814b90386f61a17fa9113a81a13f630c58575e10c736cdcdc
hexlet-codebattle/battle_asserts
complex_number_mul.clj
(ns battle-asserts.issues.complex-number-mul (:require [clojure.test.check.generators :as gen])) (def level :medium) (def tags ["math"]) (def description {:en "Implement a function that multiply two complex numbers. Return result as array where first number is real part and second number is imaginary part." :...
null
https://raw.githubusercontent.com/hexlet-codebattle/battle_asserts/dc5ed5ebae4b38d6251abda3da23590cbfa5af5f/src/battle_asserts/issues/complex_number_mul.clj
clojure
(ns battle-asserts.issues.complex-number-mul (:require [clojure.test.check.generators :as gen])) (def level :medium) (def tags ["math"]) (def description {:en "Implement a function that multiply two complex numbers. Return result as array where first number is real part and second number is imaginary part." :...
e0f266984c52f5fc15dd2b7fbff1647ddfd383fc2c5aba134e9c2a3730c04114
dannywillems/RML
grammarToolbox.mli
val ba_raw_term : Grammar.nominal_term -> string list val fa_raw_term : Grammar.nominal_term -> string list val string_of_term_for_fresh_variable : Grammar.raw_term -> string val is_raw_variable : Grammar.raw_term -> bool val extract_variable : Grammar.raw_term -> string option
null
https://raw.githubusercontent.com/dannywillems/RML/6f34748a4ea0b44037519d67200850acf6067481/src/grammar/grammarToolbox.mli
ocaml
val ba_raw_term : Grammar.nominal_term -> string list val fa_raw_term : Grammar.nominal_term -> string list val string_of_term_for_fresh_variable : Grammar.raw_term -> string val is_raw_variable : Grammar.raw_term -> bool val extract_variable : Grammar.raw_term -> string option
bb85cc83b0572195a8b1ea4493fc51810e4e425821962c841470fd28ff64f7b0
glguy/advent2021
Format.hs
# Language BlockArguments , TemplateHaskell # | Module : Advent . Format Description : Input file format quasiquoter Copyright : ( c ) , 2018 - 2021 License : ISC Maintainer : Usage : @[format|<day > < format string>|]@ When day is specified as @0@ the quasiquoter returns a pure par...
null
https://raw.githubusercontent.com/glguy/advent2021/faf0ed1f684199c2e97cef9489256cea201babee/common/Advent/Format.hs
haskell
| Constructs an input parser. See "Advent.Format" | Prefix a list of format strings with a format string. If the given list has all the topmost 'Follow' constructors removed, the output list will as well. Any consecutive literals found while flattening will be combined.
# Language BlockArguments , TemplateHaskell # | Module : Advent . Format Description : Input file format quasiquoter Copyright : ( c ) , 2018 - 2021 License : ISC Maintainer : Usage : @[format|<day > < format string>|]@ When day is specified as @0@ the quasiquoter returns a pure par...
3bb43fc61fcc7543cf7b0ee66dc979f4500dae46ec08fb56289321864d1f2084
andreypopp/type-systems
type_error.ml
open Base open Syntax type t = | Error_unification of ty * ty | Error_recursive_type | Error_unknown_name of string include ( Showable (struct type nonrec t = t let layout = let open PPrint in function | Error_unification (ty1, ty2) -> string "incompatible types:" ^^...
null
https://raw.githubusercontent.com/andreypopp/type-systems/d379e6ebc73914189b0054549f6c0191319c443a/hmx/type_error.ml
ocaml
open Base open Syntax type t = | Error_unification of ty * ty | Error_recursive_type | Error_unknown_name of string include ( Showable (struct type nonrec t = t let layout = let open PPrint in function | Error_unification (ty1, ty2) -> string "incompatible types:" ^^...
f8e00dcba7aea03bd84d284cc8d608dfa1b4a63cb022eb8718876a2793909dc0
mzp/coq-ruby
states.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/mzp/coq-ruby/99b9f87c4397f705d1210702416176b13f8769c1/library/states.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** Rollback.
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * $ I d : states.ml 13175 2...
2602e89c433d2cf897b1f975f6ed3e83ac4a3b9665cb6574604a02dd683423f3
ichiban/cl-jack
jack.lisp
This file was automatically generated by SWIG ( ) . ;;; Version 3.0.3 ;;; ;;; Do not make changes to this file unless you know what you are doing--modify the SWIG interface file instead . (in-package :cl-jack) (load-foreign-library "/usr/local/lib/libjack.so") SWIG wrapper code starts here (cl:defmacro defan...
null
https://raw.githubusercontent.com/ichiban/cl-jack/ffdcfe863d4b841aceb85622bded0ad34a278fee/jack.lisp
lisp
Version 3.0.3 Do not make changes to this file unless you know what you are doing--modify
This file was automatically generated by SWIG ( ) . the SWIG interface file instead . (in-package :cl-jack) (load-foreign-library "/usr/local/lib/libjack.so") SWIG wrapper code starts here (cl:defmacro defanonenum (cl:&body enums) "Converts anonymous enums to defconstants." `(cl:progn ,@(cl:loop for val...
4c532a3f923931f8a102fd91ddb0a62d3dedd1fe18cec619a4dded6e71e4ba71
mejgun/haskell-tdlib
CallbackQueryAnswer.hs
{-# LANGUAGE OverloadedStrings #-} -- | module TD.Data.CallbackQueryAnswer where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified Utils as U -- | | Contains a bot 's answer to a callback query @text Text of the answer @show_alert True , if an alert must be shown to the user ...
null
https://raw.githubusercontent.com/mejgun/haskell-tdlib/beb6635177d7626b70fd909b1d89f2156a992cd2/src/TD/Data/CallbackQueryAnswer.hs
haskell
# LANGUAGE OverloadedStrings # | | | | |
module TD.Data.CallbackQueryAnswer where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified Utils as U | Contains a bot 's answer to a callback query @text Text of the answer @show_alert True , if an alert must be shown to the user instead of a toast notification @url URL to b...
94cdc93e212f1f14cac074a282d4539fcdf94453b3190841e2c723487297ceb5
OCamlPro/ocp-build
buildTerm.ml
(**************************************************************************) (* *) (* Typerex Tools *) (* *) Copyrigh...
null
https://raw.githubusercontent.com/OCamlPro/ocp-build/56aff560bb438c12b2929feaf8379bc6f31b9840/tools/ocp-build/misc/buildTerm.ml
ocaml
************************************************************************ Typerex Tools ...
Copyright 2011 - 2017 OCamlPro SAS the GNU General Public License version 3 described in the file open BuildBase let term = try Sys.getenv "TERM" with Not_found -> "none" let need_escape = if term <> "" then true else match MinUnix.os_type with ...
4777fab66a0cdfc6ca0f3e5cdb92fb44f77a28bf059a45bc2b0e489bc1d2470d
mathematical-systems/clml
histogram.lisp
(in-package :statistics) (defun histogram (values n) (let ((min (reduce #'min values)) (max (reduce #'max values)) (len (length values))) (loop with delta = (/ (- max min) n) for lst = values then (set-difference lst current :test #'=) for i from 1 to n for x = (linear-combination m...
null
https://raw.githubusercontent.com/mathematical-systems/clml/918e41e67ee2a8102c55a84b4e6e85bbdde933f5/distribution/histogram.lisp
lisp
Usage example: plot [-4:4] "/tmp/random-standard-normal.data" \ "/tmp/real-standard-normal.data" with lines title "Exact distribution" Discrete case:
(in-package :statistics) (defun histogram (values n) (let ((min (reduce #'min values)) (max (reduce #'max values)) (len (length values))) (loop with delta = (/ (- max min) n) for lst = values then (set-difference lst current :test #'=) for i from 1 to n for x = (linear-combination m...