_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
d0bb30cce3f9f1e6c29975d2bd9240b4750077d40288771e314b8a9522c80ea7
links-lang/links
phrase_value.mli
type t = | Bool of bool | Int of int | Serial of [ `Key of int | `NewKey | `NewKeyMapped of int ] | Float of float | String of string | Char of char | Tuple of t list | Record of (string * t) list [@@deriving show, sexp] module Unbox_error : sig exception E of { value : t; expected : string } end ty...
null
https://raw.githubusercontent.com/links-lang/links/2923893c80677b67cacc6747a25b5bcd65c4c2b6/lens/phrase_value.mli
ocaml
* Determine if the phrase value is a new key that should be determined by the database. * Determine the type of a value. * Get a default value of a type. * Get a record values field [key]. Returns [None] if the field is not found. * Get a record values field [key]. Throw an exception if the field is not found. * S...
type t = | Bool of bool | Int of int | Serial of [ `Key of int | `NewKey | `NewKeyMapped of int ] | Float of float | String of string | Char of char | Tuple of t list | Record of (string * t) list [@@deriving show, sexp] module Unbox_error : sig exception E of { value : t; expected : string } end ty...
8546f3107a7f662468f2f9098f72d740b0678275b3ce296ffd50ba89920b39f5
nyu-acsys/drift
up_down07.ml
let rec bot _ = bot () let fail _ = assert false let rec c5_COEFFICIENT_1082 = 0 let rec c4_COEFFICIENT_1081 = 0 let rec c3_COEFFICIENT_1080 = 0 let rec c2_COEFFICIENT_1078 = 0 let rec c1_COEFFICIENT_1077 = 0 let rec c0_COEFFICIENT_1076 = 0 let rec app_without_checking_1193 x_DO_NOT_CARE_1221 x_...
null
https://raw.githubusercontent.com/nyu-acsys/drift/51a3160d74b761626180da4f7dd0bb950cfe40c0/tests/benchmarks/r_type/termination/up_down07.ml
ocaml
-:{v:Int | true} -:{v:Int | true}
let rec bot _ = bot () let fail _ = assert false let rec c5_COEFFICIENT_1082 = 0 let rec c4_COEFFICIENT_1081 = 0 let rec c3_COEFFICIENT_1080 = 0 let rec c2_COEFFICIENT_1078 = 0 let rec c1_COEFFICIENT_1077 = 0 let rec c0_COEFFICIENT_1076 = 0 let rec app_without_checking_1193 x_DO_NOT_CARE_1221 x_...
5128c7f32dec5ba66d70a17370dd0962db1dc6f5e22ce6236cb51ee46fe77aa1
spell-music/csound-expression
Fm.hs
module Csound.Catalog.Wave.Fm( fmBass1, fmBass2 ) where import Csound.Base fmBass1 :: MonoAdsr -> (Sig, Sig) -> Sig fmBass1 env (amp, cps) = bhp 35 $ env 0.01 3 0.01 0.05 * (port amp 0.01) * (\x -> fosc 2 1 (1.5 * env 0.01 0.5 0.5 0.05) x + 0.4 * osc (x * 0.501)) (cps * (let env1 = env 1.2 0.1 0.85 5 * env 1.2 0....
null
https://raw.githubusercontent.com/spell-music/csound-expression/29c1611172153347b16d0b6b133e4db61a7218d5/csound-catalog/src/Csound/Catalog/Wave/Fm.hs
haskell
module Csound.Catalog.Wave.Fm( fmBass1, fmBass2 ) where import Csound.Base fmBass1 :: MonoAdsr -> (Sig, Sig) -> Sig fmBass1 env (amp, cps) = bhp 35 $ env 0.01 3 0.01 0.05 * (port amp 0.01) * (\x -> fosc 2 1 (1.5 * env 0.01 0.5 0.5 0.05) x + 0.4 * osc (x * 0.501)) (cps * (let env1 = env 1.2 0.1 0.85 5 * env 1.2 0....
3c8d0537b9e11a99419ea68dba8365b1125f9fc3d2921e067ac7c3ede1a704b1
ssardina/ergo
simplan.scm
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; A simple sequential planner , loaded on demand by ( ergo - simplan . args ) ;;; Parameters: ;;; goal = predicate to be achieved ;;; acts = list of allowable actions (or a function with this value) ;;; Optional parameters ...
null
https://raw.githubusercontent.com/ssardina/ergo/4225ebb95779d1748f377cf2e4d0a593d6a2a103/System/simplan.scm
scheme
Parameters: goal = predicate to be achieved acts = list of allowable actions (or a function with this value) Optional parameters loop? = check for repeating states (default #f) prune = function for pruning (default #f) return true when inis=()
A simple sequential planner , loaded on demand by ( ergo - simplan . args ) steps = max number of steps in a plan ( default 30 ) (define (ergo-simplan-fn goal acts #:steps [steps 30] #:loop? [loop? #f] #:prune [prune (lambda () #f)]) (define actfn (if (list? acts) (lambda () acts) acts))...
2c62c312c8b296734c98b0cd2bebf8c1a243c531230c79cd280bd2aa5c98f87f
neonsquare/mel-base
examples.lisp
-*- Mode : LISP ; Syntax : COMMON - LISP ; Package : CL - USER ; Base : 10 -*- Copyright ( c ) 2004 , < > . ;;; All rights reserved. ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions ;;; are met: ;;; * Redistribution...
null
https://raw.githubusercontent.com/neonsquare/mel-base/7edc8fb94f30d29637bae0831c55825b0021e0f8/examples.lisp
lisp
Syntax : COMMON - LISP ; Package : CL - USER ; Base : 10 -*- All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list...
Copyright ( c ) 2004 , < > . DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL INTERRUPTION ) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY , (defpackage :mel-examples (:use :mel :cl :mel.pop3-server)) (in-package :mel-examples) There are three kinds of mail folders so far : ...
855eaca25fa591285907109e31fe236ee7fe21e40023bd42aab28fe3df480cc6
spawnfest/eep49ers
wxDirPickerCtrl.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2008 - 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/wx/src/gen/wxDirPickerCtrl.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 2008 - 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(wxDirPickerCtrl). -include("wxe.hrl"). -export([create/3,create/4,destroy/1,getPath/1,new/0,new/2,new/3,setP...
2c3d5e2aa268a1334c993d9b9c0dbf53abd41a2219024380d8f8820de3a45b99
input-output-hk/project-icarus-importer
SenderOptions.hs
# LANGUAGE ScopedTypeVariables # -- | Command line options of pos-node. module SenderOptions ( Args (..) , argsParser ) where import Data.Int (Int64) import Data.Monoid ((<>)) import Data.String (fromString) import Data.Word (Word16) import Optio...
null
https://raw.githubusercontent.com/input-output-hk/project-icarus-importer/36342f277bcb7f1902e677a02d1ce93e4cf224f0/networking/bench/Sender/SenderOptions.hs
haskell
| Command line options of pos-node.
# LANGUAGE ScopedTypeVariables # module SenderOptions ( Args (..) , argsParser ) where import Data.Int (Int64) import Data.Monoid ((<>)) import Data.String (fromString) import Data.Word (Word16) import Options.Applicative.Simple (Parser, auto, he...
b42d68c139ba755221dee7ea759a20089a20e13f46cd3cfa792b6e514f4d31d1
Simre1/haskell-game
Components.hs
# OPTIONS_GHC -Wno - orphans # {-# LANGUAGE ConstraintKinds #-} # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables ...
null
https://raw.githubusercontent.com/Simre1/haskell-game/272a0674157aedc7b0e0ee00da8d3a464903dc67/apecs/apecs/src/Apecs/Components.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE RankNTypes # # LANGUAGE TemplateHaskell # # INLINE explExists # As expected, Either is used to model error values. Unit instances () Since the above can be written more consicely as @cmap $ \(_ :: a) -> b@, it is rarely directly. N...
# OPTIONS_GHC -Wno - orphans # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # # LANGUAGE ScopedTypeVariables # # LANGUAGE StandaloneDeriving # # LANGUAGE TypeFamilies # m...
f558cb653b7fd08435724ecc25d4f71288550dbdc43b75165e7165521d5fcb95
rd--/hsc3
disintegrator.help.hs
-- disintegrator let x = mouseX kr 0 1 Linear 0.2 y = mouseY kr 0 1 Linear 0.2 s = sinOsc ar (mce2 400 404) 0 * 0.05 in X.disintegratorId 'α' s x y
null
https://raw.githubusercontent.com/rd--/hsc3/60cb422f0e2049f00b7e15076b2667b85ad8f638/Help/Ugen/disintegrator.help.hs
haskell
disintegrator
let x = mouseX kr 0 1 Linear 0.2 y = mouseY kr 0 1 Linear 0.2 s = sinOsc ar (mce2 400 404) 0 * 0.05 in X.disintegratorId 'α' s x y
2f1b9ec63a538cb6f421a5b15234b6b857e8b0f20a2cb170eb2d062b8a4227a7
softwarelanguageslab/maf
R5RS_gabriel_deriv-2.scm
; Changes: * removed : 0 * added : 1 * swaps : 0 * negated predicates : 1 * swapped branches : 1 ; * calls to id fun: 0 (letrec ((deriv (lambda (a) @sensitivity:FA (if (<change> (not (pair? a)) (not (not (pair? a)))) (if (eq? a 'x) 1 0) ...
null
https://raw.githubusercontent.com/softwarelanguageslab/maf/11acedf56b9bf0c8e55ddb6aea754b6766d8bb40/test/changes/scheme/generated/R5RS_gabriel_deriv-2.scm
scheme
Changes: * calls to id fun: 0
* removed : 0 * added : 1 * swaps : 0 * negated predicates : 1 * swapped branches : 1 (letrec ((deriv (lambda (a) @sensitivity:FA (if (<change> (not (pair? a)) (not (not (pair? a)))) (if (eq? a 'x) 1 0) (if (eq? (car a) '+) ...
c6e62d9f59ff8c45086a7ef2f3aa341668a043f85028f26f38ca82024e36f7f0
SaswatPadhi/LoopInvGen
CNF.ml
open Utils (* a type for cnf formulas, parameterized by the type used for literals *) type 'a literal = Pos of 'a | Neg of 'a type 'a clause = 'a literal list type 'a t = 'a clause list let map ~(f : 'a -> 'b) (cnf : 'a t) : 'b t = List.map cnf ~f:(fun clause -> List.map clause ~f:(function ...
null
https://raw.githubusercontent.com/SaswatPadhi/LoopInvGen/6ac90265b11431c9477dfbd33e3e3380234c0499/src/CNF.ml
ocaml
a type for cnf formulas, parameterized by the type used for literals
open Utils type 'a literal = Pos of 'a | Neg of 'a type 'a clause = 'a literal list type 'a t = 'a clause list let map ~(f : 'a -> 'b) (cnf : 'a t) : 'b t = List.map cnf ~f:(fun clause -> List.map clause ~f:(function | Pos a -> Pos (f a) ...
3f834b2506a4605674273d9fa54eb49ed988d2eb5df83fe192934a12bd4b6e88
xsc/invariant
core_test.clj
(ns invariant.core-test (:require [clojure.test :refer :all] [invariant.core :as invariant] [invariant.core.protocols :as p] [com.rpl.specter :refer :all])) (deftest t-simple-invariant (let [invariant (-> (invariant/collect-as :declared-variables [:declarations ALL :name...
null
https://raw.githubusercontent.com/xsc/invariant/45425bcc69d0bc896efd5307a640dbdb06b61797/test/invariant/core_test.clj
clojure
(ns invariant.core-test (:require [clojure.test :refer :all] [invariant.core :as invariant] [invariant.core.protocols :as p] [com.rpl.specter :refer :all])) (deftest t-simple-invariant (let [invariant (-> (invariant/collect-as :declared-variables [:declarations ALL :name...
83d315459fd934498939e749453ad8cb5ef87b6ea21f42550f78e1e5350898ee
erlang/otp
epgsql_cmd_connect.erl
-module(epgsql_cmd_connect). -export([open_socket/1]). ... no code at line 3 ... -spec open_socket(epgsql:connect_opts()) -> ok. open_socket(_ConnectOpts) -> ok.
null
https://raw.githubusercontent.com/erlang/otp/d08faa2179acf0b1f6fd7c785763b615e0b22ed8/lib/dialyzer/test/options2_SUITE_data/src/indirect_unknown_types/epgsql_cmd_connect.erl
erlang
-module(epgsql_cmd_connect). -export([open_socket/1]). ... no code at line 3 ... -spec open_socket(epgsql:connect_opts()) -> ok. open_socket(_ConnectOpts) -> ok.
b13ae127b5a45d1860c6100573b51dc3456a3b20e311af7df4fd4d8852255072
imrehg/ypsilon
arith.scm
(import (core) (test-lite)) (test-begin "Test Arithmetics") (newline) ;(define (SECTION . x) (test-comment x)) (define (SECTION . x) #t) (SECTION "number format") (test-equal (equal? 3000 3000.0) #f) (test-equal (string->number "-") #f) (test-equal (string->number "+") #f) (test-equal (string->number "e") #f) (test...
null
https://raw.githubusercontent.com/imrehg/ypsilon/e57a06ef5c66c1a88905b2be2fa791fa29848514/test/arith.scm
scheme
(define (SECTION . x) (test-comment x)) (test-equal (string->number "1####.3") #f) // #xFFFFFFFFC0000001 #x1000000000000000000000000000000000000000000000001 to check numerical exactness of Lisp implementations. end from num-test.scm (kawa)
(import (core) (test-lite)) (test-begin "Test Arithmetics") (newline) (define (SECTION . x) #t) (SECTION "number format") (test-equal (equal? 3000 3000.0) #f) (test-equal (string->number "-") #f) (test-equal (string->number "+") #f) (test-equal (string->number "e") #f) (test-equal (string->number ".") #f) (test-equ...
0c3e77e5e872ffa00bedb2b8d49324331620b052d6f1ad3656c2bdbfbc6d7294
Clozure/ccl-tests
load-environment.lsp
;-*- Mode: Lisp -*- Author : Created : Sun Dec 12 19:43:17 2004 Contains : Load environment tests ( section 25 ) (load "apropos.lsp") (load "apropos-list.lsp") (load "describe.lsp") (load "disassemble.lsp") (load "environment-functions.lsp") (load "room.lsp") (load "time.lsp") (load "trace.lsp") ;; an...
null
https://raw.githubusercontent.com/Clozure/ccl-tests/0478abddb34dbc16487a1975560d8d073a988060/ansi-tests/load-environment.lsp
lisp
-*- Mode: Lisp -*- and untrace
Author : Created : Sun Dec 12 19:43:17 2004 Contains : Load environment tests ( section 25 ) (load "apropos.lsp") (load "apropos-list.lsp") (load "describe.lsp") (load "disassemble.lsp") (load "environment-functions.lsp") (load "room.lsp") (load "time.lsp") (load "user-homedir-pathname.lsp") (load "decod...
541fc0b1c32967490a24232a61de9432814be7a261c5f4e942170b71e4d8155e
zenhack/haskell-capnp
Rpc.hs
-- | -- Module: Capnp.Rpc -- Description: Cap'n Proto RPC system -- This module exposes the most commonly used parts of the RPC subsystem . module Capnp.Rpc ( -- * Establishing connections Conn, ConnConfig (..), acquireConn, handleConn, withConn, requestBootstrap, -- * throwing errors ...
null
https://raw.githubusercontent.com/zenhack/haskell-capnp/97a893f57b8494d8d06f892d292bba9384c032a6/lib/Capnp/Rpc.hs
haskell
| Module: Capnp.Rpc Description: Cap'n Proto RPC system * Establishing connections * throwing errors * Transmitting messages * Promises * Clients ** Reflection * Supervisors * Misc.
This module exposes the most commonly used parts of the RPC subsystem . module Capnp.Rpc Conn, ConnConfig (..), acquireConn, handleConn, withConn, requestBootstrap, throwFailed, Transport (..), socketTransport, handleTransport, tracingTransport, module Capnp.Rpc.Prom...
b96a2fb647d575fb2b26052c5f63087eadf4130be50b7146a08b47e89d68b526
SamB/coq
indfun_common.ml
open Names open Pp open Libnames let mk_prefix pre id = id_of_string (pre^(string_of_id id)) let mk_rel_id = mk_prefix "R_" let mk_correct_id id = Nameops.add_suffix (mk_rel_id id) "_correct" let mk_complete_id id = Nameops.add_suffix (mk_rel_id id) "_complete" let mk_equation_id id = Nameops.add_suffix id "_equation...
null
https://raw.githubusercontent.com/SamB/coq/8f84aba9ae83a4dc43ea6e804227ae8cae8086b1/contrib/funind/indfun_common.ml
ocaml
*************************************************************** Copy of the standart save mechanism but without the much too slow reduction function *************************************************************** and ident = Pfedit.get_current_proof_name () **************...
open Names open Pp open Libnames let mk_prefix pre id = id_of_string (pre^(string_of_id id)) let mk_rel_id = mk_prefix "R_" let mk_correct_id id = Nameops.add_suffix (mk_rel_id id) "_correct" let mk_complete_id id = Nameops.add_suffix (mk_rel_id id) "_complete" let mk_equation_id id = Nameops.add_suffix id "_equation...
9086ad764db8cfa207d6befae60f2c367e74b9dd9b3a6a135e2acdf98c18ea1b
mejgun/haskell-tdlib
DraftMessage.hs
{-# LANGUAGE OverloadedStrings #-} -- | module TD.Data.DraftMessage where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified TD.Data.InputMessageContent as InputMessageContent import qualified Utils as U -- | data DraftMessage = -- | Contains information about a message draft ...
null
https://raw.githubusercontent.com/mejgun/haskell-tdlib/ddcb47043c7a339b4e5995355e5d5a228e21ccb0/src/TD/Data/DraftMessage.hs
haskell
# LANGUAGE OverloadedStrings # | | | Contains information about a message draft | Content of the message draft; must be of the type inputMessageText | Point in time (Unix timestamp) when the draft was created | Identifier of the replied message; 0 if none
module TD.Data.DraftMessage where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified TD.Data.InputMessageContent as InputMessageContent import qualified Utils as U DraftMessage input_message_text :: Maybe InputMessageContent.InputMessageContent, date :: Maybe Int, ...
fb654a5279e4facdf8262239bb30bcd7f717b5cf70baefcbfda94086a0097a39
spawnfest/eep49ers
naughty_child.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2002 - 2016 . All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applic...
null
https://raw.githubusercontent.com/spawnfest/eep49ers/d1020fd625a0bbda8ab01caf0e1738eb1cf74886/lib/stdlib/test/naughty_child.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 l...
Copyright Ericsson AB 2002 - 2016 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(naughty_child). -behaviour(gen_server). -export([start_link/1]). -export([init/1, handle_call/3, handle_...
2e2196f75765c44c9bc29d51dc497f81f496b79c5a047142ee84090a5ea16525
spawnfest/eep49ers
xmerl_app_test.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2004 - 2016 . All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicab...
null
https://raw.githubusercontent.com/spawnfest/eep49ers/d1020fd625a0bbda8ab01caf0e1738eb1cf74886/lib/xmerl/test/xmerl_app_test.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 2004 - 2016 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , Purpose : Verify the application specifics of the Megaco application -module(xmerl_app_test). -compile(export_all)...
3caacca1ef2b2f95550203b6da6e50e0a2bfea3f1e4c84aa716c0597bc4cdd5b
40ants/reblocks
timing.lisp
(defpackage #:reblocks/utils/timing (:use #:cl) (:import-from #:alexandria #:with-gensyms) (:import-from #:log) (:export #:*enable-timings* #:*timing-report-fn* #:timing)) (in-package #:reblocks/utils/timing) ;; TODO: rebuild this functionality, making ;; global var...
null
https://raw.githubusercontent.com/40ants/reblocks/2283d23a44252a59b5d7bef066869d9f1e950460/src/utils/timing.lisp
lisp
TODO: rebuild this functionality, making global variables hidden. Add a macro lile with-collected-timings and use it in the request-handler.lisp Strange place, actually we need on call here, not
(defpackage #:reblocks/utils/timing (:use #:cl) (:import-from #:alexandria #:with-gensyms) (:import-from #:log) (:export #:*enable-timings* #:*timing-report-fn* #:timing)) (in-package #:reblocks/utils/timing) (defvar *enable-timings* nil) (defvar *timing-report-fn* (l...
44a4a463bf1b2e6ab07e2664a202ca4be71ac9de5109abeb546bb98d58ef1d29
imandra-ai/ocaml-cimgui
types_stubgen_gen.ml
module J = Yojson.Safe module JU = J.Util let (%>) f g x = g (f x) let spf = Printf.sprintf let pf = Printf.printf let pfl fmt = Printf.kfprintf (fun oc -> output_char oc '\n') stdout fmt let path_json_typedefs = "../../vendor/cimgui/generator/output/typedefs_dict.json" let path_json_enums_structs = "../../vendor/ci...
null
https://raw.githubusercontent.com/imandra-ai/ocaml-cimgui/55c71078705099ea60d91630610f6d750fd07abb/src/bindgen/types_stubgen_gen.ml
ocaml
graph of type name -> declaration, with dependencies for some reason cimgui adds a "_" at the end of the type… the integer values TODO: bpfl " let (lor) = Int32.logor"; TODO bpfl " let of_int64 = coerce int64_t t"; declare as opaque array! NOTE: gross hack to find offset of only anonymous union ...
module J = Yojson.Safe module JU = J.Util let (%>) f g x = g (f x) let spf = Printf.sprintf let pf = Printf.printf let pfl fmt = Printf.kfprintf (fun oc -> output_char oc '\n') stdout fmt let path_json_typedefs = "../../vendor/cimgui/generator/output/typedefs_dict.json" let path_json_enums_structs = "../../vendor/ci...
847aca7a937b536525660614591cba8dca93b1773fde81c81ca3e93ef079e877
unclebob/spacewar
view_frame_test.clj
(ns spacewar.ui.view-frame-test (:require [midje.sweet :refer [facts fact =>]] [spacewar.game-logic.world :refer [add-message]] [spacewar.ui.view-frame :refer [update-messages]] [spacewar.game-logic.test-mother :as mom])) (facts "about messages" (let [world (mom/make-world)] ...
null
https://raw.githubusercontent.com/unclebob/spacewar/71c3195b050c4fdb7e643f53556ab580d70f27ba/test/spacewar/ui/view_frame_test.clj
clojure
(ns spacewar.ui.view-frame-test (:require [midje.sweet :refer [facts fact =>]] [spacewar.game-logic.world :refer [add-message]] [spacewar.ui.view-frame :refer [update-messages]] [spacewar.game-logic.test-mother :as mom])) (facts "about messages" (let [world (mom/make-world)] ...
42bcacbd11058d1117ac99d9228d7e409328203cc5c453d561067b55c55f8ed9
erlangbureau/octopus
octopus_pool_task_server.erl
-module(octopus_pool_task_server). -behaviour(gen_server). %% API -export([start_link/1]). -export([worker_start/2]). -export([worker_init/2]). -export([worker_ready/2]). -export([worker_lockout/2]). -export([worker_lockin/1]). -export([pool_info/1]). %% gen_server callbacks -export([init/1, terminate/2]). -export([h...
null
https://raw.githubusercontent.com/erlangbureau/octopus/ee0154244d26d6d41390a86b31bb5ea240ae70c7/src/pool/octopus_pool_task_server.erl
erlang
API gen_server callbacks API gen_server callbacks internal
-module(octopus_pool_task_server). -behaviour(gen_server). -export([start_link/1]). -export([worker_start/2]). -export([worker_init/2]). -export([worker_ready/2]). -export([worker_lockout/2]). -export([worker_lockin/1]). -export([pool_info/1]). -export([init/1, terminate/2]). -export([handle_call/3, handle_cast/2, ha...
fdfe92e22b6359e6ab2e01c7d566fc5ea08602781f616fd70db530e732f483b2
NorfairKing/smos
TodoState.hs
# LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} module Smos.Actions.Entry.TodoState ( allTodoStatePlainActions, allTodoStateUsingCharActions, entrySetTodoState, entryToggleTodoState, entryUnsetTodoState, subtreeSetTodoState, subtreeUnsetTodoState, ) where import Data.Time import...
null
https://raw.githubusercontent.com/NorfairKing/smos/f72b26c2e66ab4f3ec879a1bedc6c0e8eeb18a01/smos/src/Smos/Actions/Entry/TodoState.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE LambdaCase # module Smos.Actions.Entry.TodoState ( allTodoStatePlainActions, allTodoStateUsingCharActions, entrySetTodoState, entryToggleTodoState, entryUnsetTodoState, subtreeSetTodoState, subtreeUnsetTodoState, ) where import Data.Time import Smos.Actions.Utils import Smos.Dat...
ee60d2ef3a58cb5d6a921292c9011c731c66ace3f61426e558cb3253b7de1529
cursorinsight/erlang-tutorial
useless.erl
%%% @doc Add numbers and print greetings. 2018 My Name -module(useless). -export([add/2, hello/0, greet_and_add_two/1]). @doc Add two numbers -spec add(number(), number()) -> number(). add(A, B) -> A + B. %% @doc Print greeting -spec hello() -> any(). hello() -> io:format("Hello, world!~n"). @doc Prin...
null
https://raw.githubusercontent.com/cursorinsight/erlang-tutorial/fdf131144f35af76b16fdf9879732e067dfc89cc/day_1/useless.erl
erlang
@doc Add numbers and print greetings. @doc Print greeting number received as a parameter.
2018 My Name -module(useless). -export([add/2, hello/0, greet_and_add_two/1]). @doc Add two numbers -spec add(number(), number()) -> number(). add(A, B) -> A + B. -spec hello() -> any(). hello() -> io:format("Hello, world!~n"). @doc Print greeting and add two to the given number This function first ...
54963e1c2d4106f332b473935481f7f2aa714e4377064fb8ccbc6df214c0b6e8
screenshotbot/screenshotbot-oss
test-dfs.lisp
(defpackage :graphs/test-dfs (:use #:cl #:graphs/dfs #:fiveam) (:local-nicknames (#:a #:alexandria))) (in-package :graphs/test-dfs) (util/fiveam:def-suite) (defclass node () ((id :initarg :id :reader node-id) (children :initarg :children :initform nil :accesso...
null
https://raw.githubusercontent.com/screenshotbot/screenshotbot-oss/09d9445ed2f4cd3c8bb4fe6761ef8af185d8d2c3/src/graphs/test-dfs.lisp
lisp
(defpackage :graphs/test-dfs (:use #:cl #:graphs/dfs #:fiveam) (:local-nicknames (#:a #:alexandria))) (in-package :graphs/test-dfs) (util/fiveam:def-suite) (defclass node () ((id :initarg :id :reader node-id) (children :initarg :children :initform nil :accesso...
c06588e77918c1fa8a318748933fd1a0c99967b2ed9095a9c007d72ff8b714ff
emqx/emqx
emqx_rule_sqltester.erl
Copyright ( c ) 2020 - 2023 EMQ Technologies Co. , Ltd. 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 applicable law...
null
https://raw.githubusercontent.com/emqx/emqx/dbc10c2eed3df314586c7b9ac6292083204f1f68/apps/emqx_rule_engine/src/emqx_rule_sqltester.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing perm...
Copyright ( c ) 2020 - 2023 EMQ Technologies Co. , Ltd. 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(emqx_rule_sqltester). -include("rule_engine.hrl"). -include_lib("emqx/include/logger.hr...
6feb20a7519ea5e957c142fb959e181ec9870d0f49e1a27ec80ace7af490ffe4
pascal-knodel/haskell-craft
E'9'15.hs
-- -- -- ----------------- Exercise 9.15 . ----------------- -- -- -- module E'9'15 where import E'9''1 ( fac ) import E'9'13 ( facAux , fac2 ) import Test.QuickCheck ( Property (..) , (==>) , Positive (..) , quickCheck , verboseCheck ) prop_FacFac2 :: Integer -> Bool prop_FacFac2 integer = fac ...
null
https://raw.githubusercontent.com/pascal-knodel/haskell-craft/c03d6eb857abd8b4785b6de075b094ec3653c968/Chapter%209/E'9'15.hs
haskell
--------------- --------------- GHCi> quickCheck prop_FacFac2 -1 Better solution: GHCi> quickCheck prop_FacFac2'' *** Exception: Negative factor. 1 1 2 6
Exercise 9.15 . module E'9'15 where import E'9''1 ( fac ) import E'9'13 ( facAux , fac2 ) import Test.QuickCheck ( Property (..) , (==>) , Positive (..) , quickCheck , verboseCheck ) prop_FacFac2 :: Integer -> Bool prop_FacFac2 integer = fac integer == fac2 integer * * * Failed ! Exception : ...
a93e864d5dece0115f2ec0ea7e620d35ce3487064837fa6328191104b4ef7932
abdulapopoola/SICPBook
Ex2.90.scm
#lang planet neil/sicp One way to solve this design problem is to convert all ;; dense polynomials to sparse polynomials and then use ;; existing code ;; Another way will be to have separate handling functions like the complex example in section 2.4 ;; Using the simple/easy approach ;) (define (dense? poly) (...
null
https://raw.githubusercontent.com/abdulapopoola/SICPBook/c8a0228ebf66d9c1ddc5ef1fcc1d05d8684f090a/Chapter%202/2.5/Ex2.90.scm
scheme
dense polynomials to sparse polynomials and then use existing code Another way will be to have separate handling functions Using the simple/easy approach ;)
#lang planet neil/sicp One way to solve this design problem is to convert all like the complex example in section 2.4 (define (dense? poly) (eq? (type-tag poly) 'dense)) (define (sparse? poly) (eq? (type-tag poly) 'sparse)) (define (order-dense termlist) (- (length termlist) 1)) (define (dense->sparse p...
fdb99a6234b79d04af9c80455c30428a9c611448d05a7224e45ba6fa8f7e9408
rtoy/cmucl
macros.lisp
;;; -*- Package: C; Log: C.Log -*- ;;; ;;; ********************************************************************** This code was written as part of the CMU Common Lisp project at Carnegie Mellon University , and has been placed in the public domain . ;;; (ext:file-comment "$Header: src/compiler/macros.lisp $") ;;;...
null
https://raw.githubusercontent.com/rtoy/cmucl/9b1abca53598f03a5b39ded4185471a5b8777dea/src/compiler/macros.lisp
lisp
-*- Package: C; Log: C.Log -*- ********************************************************************** ********************************************************************** Random types and macros used in writing the compiler. Inlinep is used to determine how a function is called. The values have these...
This code was written as part of the CMU Common Lisp project at Carnegie Mellon University , and has been placed in the public domain . (ext:file-comment "$Header: src/compiler/macros.lisp $") Written by (in-package "C") (intl:textdomain "cmucl") (export '(lisp::with-compilation-unit) "LISP") (export '(poli...
9c803a2d47cf59ee8ddb4bc20eefe606d62ce454de4a6928fded0b75551ce057
irastypain/sicp-on-language-racket
exercise_2_41.rkt
#lang racket (require (only-in "../lib/lists.rkt" accumulate flatmap enumerate-interval)) ; Процедура генерации троек (i, j, k) таких , что 1 < = k < j < i < = n (define (unique-triples n) (flatmap (lambda (i) (flatmap (lambda (j) ...
null
https://raw.githubusercontent.com/irastypain/sicp-on-language-racket/0052f91d3c2432a00e7e15310f416cb77eeb4c9c/src/chapter02/exercise_2_41.rkt
racket
Процедура генерации троек (i, j, k) положительных чисел, сумма элементов которой равна переданному числу
#lang racket (require (only-in "../lib/lists.rkt" accumulate flatmap enumerate-interval)) таких , что 1 < = k < j < i < = n (define (unique-triples n) (flatmap (lambda (i) (flatmap (lambda (j) (map (lambda (k) (list i j k))...
49cb37ddb5b251134d1b7665328dadf12e3b1633888e9703cb6ee296561f6d7f
shirok/Gauche
win-noconsole-codepage.scm
-*- coding : utf-8 -*- ;; This is a test of windows console code page support function. ;; This can't be automated easily, so it's not run by make check. (print "日本語を入力してみてください。") (flush) (print "「" (read-line) "」が入力されました。") (print "[Enter]キーで終了します。") (flush) (read-line)
null
https://raw.githubusercontent.com/shirok/Gauche/ecaf82f72e2e946f62d99ed8febe0df8960d20c4/test/win-noconsole-codepage.scm
scheme
This is a test of windows console code page support function. This can't be automated easily, so it's not run by make check.
-*- coding : utf-8 -*- (print "日本語を入力してみてください。") (flush) (print "「" (read-line) "」が入力されました。") (print "[Enter]キーで終了します。") (flush) (read-line)
2b93260d670b65520e429e4469af00bfc69cf15b83cc3136cc03b1bcc70ad47d
kovasb/gamma-driver
root.cljs
(ns gamma.webgl.model.root (:require [gamma.webgl.model.core :as m] [gamma.webgl.model.program :as program] [gamma.webgl.model.arraybuffers :as arraybuffers] [gamma.webgl.model.programs :as programs] [gamma.webgl.model.bindings :as bindings] [gamma.webgl.mod...
null
https://raw.githubusercontent.com/kovasb/gamma-driver/abe0e1dd01365404342f4e8e04263e48c4648b6e/src/gamma/webgl/model/root.cljs
clojure
Helpers isn't creating the ab simple uniform should this happen automatically if we try to change uniforms? Texture Uniform impl possible conflict if need to specify all texture units?? situation is analogous to arraybuffers can we just specify uniformli without doing activeTexture? if texture bound to textu...
(ns gamma.webgl.model.root (:require [gamma.webgl.model.core :as m] [gamma.webgl.model.program :as program] [gamma.webgl.model.arraybuffers :as arraybuffers] [gamma.webgl.model.programs :as programs] [gamma.webgl.model.bindings :as bindings] [gamma.webgl.mod...
e2c63e30c7bb68ac0a7b7fe80d2ab32c17865a43c0ddaa5a170b58a50aaf7d6e
richhickey/clojure-contrib
json.clj
json.clj : JavaScript Object Notation ( JSON ) parser / writer by , / January 30 , 2010 Copyright ( c ) , 2010 . All rights reserved . The use and distribution terms for this software are covered by the Eclipse ;; Public License 1.0 (-1.0.php) ;; which can be found in the file epl-v10.html at the root...
null
https://raw.githubusercontent.com/richhickey/clojure-contrib/40b960bba41ba02811ef0e2c632d721eb199649f/src/main/clojure/clojure/contrib/json.clj
clojure
Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software. JSON READER Expects to be called with ...
json.clj : JavaScript Object Notation ( JSON ) parser / writer by , / January 30 , 2010 Copyright ( c ) , 2010 . All rights reserved . The use and distribution terms for this software are covered by the Eclipse (ns #^{:author "Stuart Sierra" :doc "JavaScript Object Notation (JSON) parser/write...
c273b164d7b428f6e968a351b2b25ca0fff95e94ecace5fc0643c7fa7c14653d
Frama-C/Frama-C-snapshot
CodeSemantics.ml
(**************************************************************************) (* *) This file is part of WP plug - in of Frama - C. (* *) Copyrigh...
null
https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/src/plugins/wp/CodeSemantics.ml
ocaml
************************************************************************ alternatives) ...
This file is part of WP plug - in of Frama - C. Copyright ( C ) 2007 - 2019 CEA ( Commissariat a l'energie atomique et aux energies Lesser General Public License as published by the Free Software Foundation ,...
7f67572e52ff772c134493a5c0c8e94c473b30c62b8f91fc415ad7c9fbeffdd4
juxt/stoic
project.clj
(defproject stoic "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.6.0"] [org.clojure/tools.logging "0.2.6"] [zookeeper-clj "0.9.1" :exclusions [org.a...
null
https://raw.githubusercontent.com/juxt/stoic/047103f8ba4bcb999b0eefdf084ecd72ff844568/project.clj
clojure
(defproject stoic "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.6.0"] [org.clojure/tools.logging "0.2.6"] [zookeeper-clj "0.9.1" :exclusions [org.a...
bc92efd6e971b8c29ab6d44cd1d95e01f2d651a34249f481a9219d04902ef4b4
nuvla/api-server
deployment_set_lifecycle_test.clj
(ns sixsq.nuvla.server.resources.deployment-set-lifecycle-test (:require [clojure.data.json :as json] [clojure.test :refer [deftest testing use-fixtures]] [peridot.core :refer [content-type header request session]] [sixsq.nuvla.server.app.params :as p] [sixsq.nuvla.server.middleware.authn-info :re...
null
https://raw.githubusercontent.com/nuvla/api-server/1970552d60a155d2e81c68b92ebbb53bcc718684/code/test/sixsq/nuvla/server/resources/deployment_set_lifecycle_test.clj
clojure
(ns sixsq.nuvla.server.resources.deployment-set-lifecycle-test (:require [clojure.data.json :as json] [clojure.test :refer [deftest testing use-fixtures]] [peridot.core :refer [content-type header request session]] [sixsq.nuvla.server.app.params :as p] [sixsq.nuvla.server.middleware.authn-info :re...
cc1cfb11751a9be846db0c84daffd47a378cf79ee62ad98a17fe73bc72226e1f
mirage/cactus
btree_index_intf.ml
* Copyright ( c ) 2021 Tarides < > * Copyright ( c ) 2021 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SO...
null
https://raw.githubusercontent.com/mirage/cactus/85378dd8e2d217cc8338742ed241f4faf3b72e2c/src/btree_index_intf.ml
ocaml
* The type for indexes. * The type for keys. * The type for values. * The type for caches of index instances. * Construct a new empty cache of index instances. * [clear t] clears [t] so that there are no more bindings in it. * [find t k] is the binding of [k] in [t]. * [mem t k] is [true] iff [k] is bound in [t]...
* Copyright ( c ) 2021 Tarides < > * Copyright ( c ) 2021 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SO...
4c745bf8fe01efba6e512039d16d2df65cabb37aa3410c0000a0aa2a4ed3c686
fluent/fluent-logger-erlang
fluent_sup.erl
-module(fluent_sup). -behaviour(supervisor). %% API -export([start_link/0]). %% Supervisor callbacks -export([init/1]). %% Helper macro for declaring children of supervisor -define(CHILD(I, Type), {I, {I, start_link, []}, permanent, 5000, Type, [I]}). %% ===========================================================...
null
https://raw.githubusercontent.com/fluent/fluent-logger-erlang/dae01a5a010d21916515212e5b41d2411e84277c/src/fluent_sup.erl
erlang
API Supervisor callbacks Helper macro for declaring children of supervisor =================================================================== API functions =================================================================== =================================================================== Supervisor callback...
-module(fluent_sup). -behaviour(supervisor). -export([start_link/0]). -export([init/1]). -define(CHILD(I, Type), {I, {I, start_link, []}, permanent, 5000, Type, [I]}). start_link() -> supervisor:start_link({local, ?MODULE}, ?MODULE, []). init([]) -> Children = [ {fluent, {gen_event, start_link,...
fc75f8a942167e7bd5af8d8438bfda9b0b8bfad5df1d3834c1eb5227a7af6276
vincenzoml/topochecker
main.ml
let run_interactive model env checker = try while true do let line = read_line () in let (ide,points,qformula) = ModelLoader.load_ask_query env line in let res = (Checker.qchecker (List.map model.Model.idspace points) (model.Model.space#num_nodes) checker qformula) in Printf....
null
https://raw.githubusercontent.com/vincenzoml/topochecker/73503cc1582d51eb3c2727ab2f20e09fbceeeab4/src/main.ml
ocaml
TODO: check for output commands here!
let run_interactive model env checker = try while true do let line = read_line () in let (ide,points,qformula) = ModelLoader.load_ask_query env line in let res = (Checker.qchecker (List.map model.Model.idspace points) (model.Model.space#num_nodes) checker qformula) in Printf....
9131274f854102714da629511f3f7a49decd3458bc8b0b6e4516b64827844c33
markus-git/hardware-edsl
Syntax.hs
# LANGUAGE GADTs # {-# LANGUAGE TypeOperators #-} # LANGUAGE TypeFamilies # # LANGUAGE FlexibleInstances # {-# LANGUAGE FlexibleContexts #-} # LANGUAGE MultiParamTypeClasses # # LANGUAGE UndecidableInstances # {-# LANGUAGE DataKinds #-} {-# LANGUAGE ConstraintK...
null
https://raw.githubusercontent.com/markus-git/hardware-edsl/d0fde93ff57a8f5c2c37e273ff3a1d2a761fc5eb/src/Language/Embedded/Hardware/Expression/Syntax.hs
haskell
# LANGUAGE TypeOperators # # LANGUAGE FlexibleContexts # # LANGUAGE DataKinds # # LANGUAGE ConstraintKinds # ------------------------------------------------------------------------------ * Syntax of hardware expressions. ------------------------------------------------------------------...
# LANGUAGE GADTs # # LANGUAGE TypeFamilies # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE UndecidableInstances # module Language.Embedded.Hardware.Expression.Syntax where import Language.Syntactic import Language.Syntactic.Functional (Denotation, Eval(...
e801bc46c88fc39e65076a1c678580a7397a8c279260875d7a5da3c4182ecb14
uw-unsat/serval
register.rkt
#lang rosette (require rosette/lib/match (prefix-in core: "../lib/core.rkt") "base.rkt") (provide gpr64 gpr64-no-rex gpr32 gpr32-no-rex gpr16 gpr16-no-rex gpr8 gpr8-no-rex gprs64 symbol->gpr64 symbol->gpr32 rax rcx rdx rbx rsp rbp rsi rdi r8 r9 r10 r11 r12 r13 r14 r15 eax ecx edx ebx esp ebp esi...
null
https://raw.githubusercontent.com/uw-unsat/serval/be11ecccf03f81b8bd0557acf8385a6a5d4f51ed/serval/x86/register.rkt
racket
FIXME: just be compatible for now. Should find a better way. gpr64 gpr16 displacement disp can be #f mod r/m [--][--]+disp8 01 100 absolute addressing
#lang rosette (require rosette/lib/match (prefix-in core: "../lib/core.rkt") "base.rkt") (provide gpr64 gpr64-no-rex gpr32 gpr32-no-rex gpr16 gpr16-no-rex gpr8 gpr8-no-rex gprs64 symbol->gpr64 symbol->gpr32 rax rcx rdx rbx rsp rbp rsi rdi r8 r9 r10 r11 r12 r13 r14 r15 eax ecx edx ebx esp ebp esi...
b325277fb2c467ee78314b6477b7edd0771d26adb9f189bbe13ddba71e1d8dd1
input-output-hk/cardano-wallet-legacy
Basic.hs
# LANGUAGE TemplateHaskell # -- | Specification of rollback module Wallet.Rollback.Basic ( -- * State State(..) , stateCurrent , stateCheckpoints , initState -- * Construction , mkWallet , walletEmpty ) where import Universum hiding (State) import Control.Lens.TH import qu...
null
https://raw.githubusercontent.com/input-output-hk/cardano-wallet-legacy/143e6d0dac0b28b3274600c6c49ec87e42ec9f37/test/unit/Wallet/Rollback/Basic.hs
haskell
| Specification of rollback * State * Construction ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- -----------------------------------------------------------------------------} --------------------------------...
# LANGUAGE TemplateHaskell # module Wallet.Rollback.Basic ( State(..) , stateCurrent , stateCheckpoints , initState , mkWallet , walletEmpty ) where import Universum hiding (State) import Control.Lens.TH import qualified Data.Map as Map import Formatting (bprint, build, ...
8f472ee394c38a551b91a395b2bf6ca2195252d190c37ea32fa32e4cdba82ad4
fpottier/mpri-2.4-projet-2022-2023
Linear.ml
(* -------------------------------------------------------------------------- *) (* Types. *) (* The types include the base type [real] and tuple types. *) (* The type [unknown] can be used as a placeholder in a [let] binding, when one does not wish to provide a type. It cannot be used elsewhere (e.g., it cann...
null
https://raw.githubusercontent.com/fpottier/mpri-2.4-projet-2022-2023/1ce08cadfb3a8ec8bc72609bc82873b29d2ce241/src/Linear.ml
ocaml
-------------------------------------------------------------------------- Types. The types include the base type [real] and tuple types. The type [unknown] can be used as a placeholder in a [let] binding, when one does not wish to provide a type. It cannot be used elsewhere (e.g., it cannot be nested insi...
type ty = Surface.ty = | TUnknown | TReal | TTuple of tys and tys = ty list type mvty = tys * tys let ufrag (tys, _ : mvty) : tys = tys let lfrag (_, tys : mvty) : tys = tys A function type is a pair of two multi - value types , which describe the function 's arguments and results . ...
636a841a8a49647f471116bf39cfa6b39c6ea686035edb430576de3457561d4c
finnishtransportagency/harja
ymparisto.clj
(ns harja.palvelin.raportointi.raportit.ymparisto (:require [harja.domain.materiaali :as materiaalidomain] [harja.domain.hoitoluokat :as hoitoluokat] [harja.kyselyt [hallintayksikot :as hallintayksikot-q] [lampotilat :as suolasakko-q] [konversio :as konv]...
null
https://raw.githubusercontent.com/finnishtransportagency/harja/f6528cf3188ba22174788ec1046882408996b7b9/src/clj/harja/palvelin/raportointi/raportit/ymparisto.clj
clojure
default Yhteensä, toteumaprosentti ja suunniteltumäärä Ja loppuun erotusrivi [kk urakka] kk
(ns harja.palvelin.raportointi.raportit.ymparisto (:require [harja.domain.materiaali :as materiaalidomain] [harja.domain.hoitoluokat :as hoitoluokat] [harja.kyselyt [hallintayksikot :as hallintayksikot-q] [lampotilat :as suolasakko-q] [konversio :as konv]...
9c163ff74d2492cfb61a9d83b3d0ce5638b83d0441b4e219568ca7b75cf422b5
MLanguage/mlang
parse_utils.ml
Copyright ( C ) 2019 - 2021 Inria , contributor : < > 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 ...
null
https://raw.githubusercontent.com/MLanguage/mlang/a8749761a48b47e28ecc4a0390b3873615d2a9b5/src/mlang/m_frontend/parse_utils.ml
ocaml
* {1 Frontend variable names} * Checks for duplicate generic parameters * Parse variable with parameters, parameters have to be lowercase letters we remove the quotes
Copyright ( C ) 2019 - 2021 Inria , contributor : < > 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 ...
c917f2a8c81fa1b745161900c2e340a265ba15e345ee32db64a8cdc5e320c80a
qitab/qmynd
handshake.lisp
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;;; Free Software published under an MIT - like license . See LICENSE ; ; ; ;;; ;;; Copyright ( c ) 2012 -...
null
https://raw.githubusercontent.com/qitab/qmynd/7e56daf73f0ed5f49a931c01af75fb874bcf3445/src/mysql-protocol/handshake.lisp
lisp
;;; ; ; ;;; ; ; ;;; ; ; ;;; This is interesting: ...
(in-package :qmynd-impl) Connection Phase Packets ( 15.2.5 ) (define-packet initial-handshake-v10 ((tag :mysql-type (integer 1) :value 10 :transient t :bind nil) (server-version :mysql-type (string :null)) (connection-id :mysql-type (integer 4)) (auth-data :mysql-type (octets 8)) (reserved :mysql-type...
45bed8477ab5fdf84e25565bfd0d20dd57a8597bc9953d3a690b91985828bcd1
arthurbarroso/lovelace
core.clj
(ns lovelace.core (:use [lovelace.blocks.core] [lovelace.databases.core] [lovelace.pages.core] [lovelace.search.core] [lovelace.users.core]))
null
https://raw.githubusercontent.com/arthurbarroso/lovelace/a6cadfc83953f3488117ee46a0bec768fe616ba0/src/lovelace/core.clj
clojure
(ns lovelace.core (:use [lovelace.blocks.core] [lovelace.databases.core] [lovelace.pages.core] [lovelace.search.core] [lovelace.users.core]))
bdd3b5d79b6976f6f3de412523491f7d6a04800d36429884e66808373b2f55fa
imrehg/ypsilon
pixmap.scm
#!nobacktrace Ypsilon Scheme System Copyright ( c ) 2004 - 2009 Y.FUJITA / LittleWing Company Limited . See license.txt for terms and conditions of use . (library (ypsilon gdk pixmap) (export gdk_pixmap_colormap_create_from_xpm gdk_pixmap_colormap_create_from_xpm_d gdk_pixmap_create_from_d...
null
https://raw.githubusercontent.com/imrehg/ypsilon/e57a06ef5c66c1a88905b2be2fa791fa29848514/sitelib/ypsilon/gdk/pixmap.scm
scheme
[end]
#!nobacktrace Ypsilon Scheme System Copyright ( c ) 2004 - 2009 Y.FUJITA / LittleWing Company Limited . See license.txt for terms and conditions of use . (library (ypsilon gdk pixmap) (export gdk_pixmap_colormap_create_from_xpm gdk_pixmap_colormap_create_from_xpm_d gdk_pixmap_create_from_d...
190dc7b6283fde2a97b5e16c809f95a97e8ad3bfc70884f639c74f7022c8f460
ocaml/merlin
fix.ml
(******************************************************************************) (* *) (* *) ...
null
https://raw.githubusercontent.com/ocaml/merlin/e576bc75f11323ec8489d2e58a701264f5a7fe0e/src/ocaml/preprocess/recover/fix.ml
ocaml
**************************************************************************** file LICEN...
, Paris , PPS , Université Paris Diderot . All rights reserved . This file is distributed under the terms of the GNU General Public License version 2 , as...
93b155dd0bd19183b8db5167dfba245c9f46d1cd6cdd03acd62894826a7f8790
spawnfest/eep49ers
snmpc_mib_to_hrl.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 1996 - 2021 . 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/snmp/src/compile/snmpc_mib_to_hrl.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 1996 - 2021 . 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(snmpc_mib_to_hrl). -include_lib("stdlib/include/erl_compile.hrl"). -include("snmp_types.hrl"). -include("sn...
bcfff14242addfab45a098d1a633c49016dd4366426920d6f8f5651a238732fb
slyrus/abcl
known-functions.lisp
;;; known-functions.lisp ;;; Copyright ( C ) 2005 - 2006 $ Id$ ;;; ;;; 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 later ve...
null
https://raw.githubusercontent.com/slyrus/abcl/881f733fdbf4b722865318a7d2abe2ff8fdad96e/src/org/armedbear/lisp/known-functions.lisp
lisp
known-functions.lisp This program is free software; you can redistribute it and/or either version 2 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 Li...
Copyright ( C ) 2005 - 2006 $ Id$ modify it under the terms of the GNU General Public License of the License , or ( at your option ) any later version . You should have received a copy of the GNU General Public License Foundation , Inc. , 59 Temple Place - Suite 330 , Boston , MA 02111 - 1307 , USA . (...
d86ad71ae29a99fca207bdd652cb416090c5e14c4d9a4210bd3ee114bdf55ff2
zotonic/zotonic
filter_flatten_value.erl
@author < > 2020 %% @doc Flatten a value to be used a string. Copyright 2020 %% 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 ap...
null
https://raw.githubusercontent.com/zotonic/zotonic/852f627c28adf6e5212e8ad5383d4af3a2f25e3f/apps/zotonic_mod_base/src/filters/filter_flatten_value.erl
erlang
@doc Flatten a value to be used a string. 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 Licen...
@author < > 2020 Copyright 2020 Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(filter_flatten_value). -export([ flatten_value/2 ]). flatten_value(undefined, _Context) -> <<>>; flatten_val...
43fd5aed8654e2854319ec7f1f9453ad555b2b9f391dcf7d7fefa6f969f06153
ocaml-multicore/reagents
sched_ws.ml
* Copyright ( c ) 2015 , < > * * Permission to use , copy , modify , and/or distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND T...
null
https://raw.githubusercontent.com/ocaml-multicore/reagents/6721db78b21028c807fb13d0af0aaf9407c662b5/tests/sched_ws.ml
ocaml
wrapper for tests that are expected to block (be it desirable or not) * [raise_if_all_idle] may throw spuriously with multiple domains. begin forward the unhandled effects to the outer handler
* Copyright ( c ) 2015 , < > * * Permission to use , copy , modify , and/or distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND T...
c77c60af28600c907e8b3399ec460032fad27a26d8a72e2bb0d66e6eba614d74
kupl/LearnML
original.ml
type lambda = V of var | P of (var * lambda) | C of (lambda * lambda) and var = string let rec check (lambda : lambda) : bool = match lambda with P (a, b) -> true | V a -> true | C (a, b) -> true
null
https://raw.githubusercontent.com/kupl/LearnML/c98ef2b95ef67e657b8158a2c504330e9cfb7700/result/cafe2/lambda/sub112/original.ml
ocaml
type lambda = V of var | P of (var * lambda) | C of (lambda * lambda) and var = string let rec check (lambda : lambda) : bool = match lambda with P (a, b) -> true | V a -> true | C (a, b) -> true
f5f73f81af248e290abaedd828d8fe2a0b879beefb33bf1a2e5ef98d272e04aa
drdo/logic-translation
TL.hs
# LANGUAGE DeriveGeneric # # LANGUAGE FlexibleInstances # # LANGUAGE LambdaCase # # LANGUAGE PatternSynonyms # # LANGUAGE UnicodeSyntax # module TL ( SimpleTL (..), TL, pattern Var, pattern S, pattern U , nextPast, next, eventuallyPast, eventually, foreverPast, forever , simpleDual, dual , stlImplies, tlImplie...
null
https://raw.githubusercontent.com/drdo/logic-translation/3efca7ce74b2e018a6ac4a8dacfc8a2dcfbd467f/library/TL.hs
haskell
------------------------------------------------------------------------------ ------------------------------------------------------------------------------ These detect some cases where x implies y -------------------------------------- ------------------------------------------------------------------------------
# LANGUAGE DeriveGeneric # # LANGUAGE FlexibleInstances # # LANGUAGE LambdaCase # # LANGUAGE PatternSynonyms # # LANGUAGE UnicodeSyntax # module TL ( SimpleTL (..), TL, pattern Var, pattern S, pattern U , nextPast, next, eventuallyPast, eventually, foreverPast, forever , simpleDual, dual , stlImplies, tlImplie...
d1a7774d9c7aa1722f7712e9130b489f39f62677bf6275ac7c23c0903c5cbcc4
plumatic/grab-bag
project.clj
(defproject hadoop-wrapper "0.0.1-SNAPSHOT" :internal-dependencies [plumbing] :java-source-paths ["src/jvm"] :external-dependencies [org.apache.hadoop/hadoop-common])
null
https://raw.githubusercontent.com/plumatic/grab-bag/a15e943322fbbf6f00790ce5614ba6f90de1a9b5/lib/hadoop-wrapper/project.clj
clojure
(defproject hadoop-wrapper "0.0.1-SNAPSHOT" :internal-dependencies [plumbing] :java-source-paths ["src/jvm"] :external-dependencies [org.apache.hadoop/hadoop-common])
a734e158c352e4d88a86e52b0b10a353856e8a814fc4faa8d8b1503ab696d607
xapi-project/xen-api
taskHelper.ml
* Copyright ( C ) 2006 - 2009 Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking describe...
null
https://raw.githubusercontent.com/xapi-project/xen-api/48cc1489fff0e344246ecf19fc1ebed6f09c7471/ocaml/xapi/taskHelper.ml
ocaml
creates a new task we store in database only parent/child relationship between real tasks required to break dep-cycle with rbac.ml shouldn't ever happen no session in context will raise "no-session-in-context" exception debug "task_auth_user_sid=%s,context_auth_user_sid=%s" task_auth_user_sid context_auth_u...
* Copyright ( C ) 2006 - 2009 Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking describe...
3f45106f5d4a010c47a99cd51f781c118fef3cad717a9cc9e86721bea37bb771
mstksg/advent-of-code-2022
Common.hs
# LANGUAGE CPP # # LANGUAGE NoDeriveAnyClass # {-# LANGUAGE QuantifiedConstraints #-} {-# LANGUAGE TypeFamilies #-} # OPTIONS_GHC -Wno - orphans # {-# OPTIONS_GHC -fplugin GHC.TypeLits.Normalise #-} -- | Module ...
null
https://raw.githubusercontent.com/mstksg/advent-of-code-2022/736e5dcb5ad21e710d93bbd2f3b2da4efa078ec3/src/AOC/Common.hs
haskell
# LANGUAGE QuantifiedConstraints # # LANGUAGE TypeFamilies # # OPTIONS_GHC -fplugin GHC.TypeLits.Normalise # | License : BSD3 Stability : experimental Portability : non-portable Common functions for solutions * Loops and searches * Lists * Simple type util , getDown ...
# LANGUAGE CPP # # LANGUAGE NoDeriveAnyClass # # OPTIONS_GHC -Wno - orphans # Module : AOC.Common Copyright : ( c ) 2019 Maintainer : module AOC.Common ( trace' , iterateMaybe , loopMaybe , loopMaybeM , loopEither ...
af4c24056b5ef068d8eb3fb10faada4eccb82e6de9844fbe14f00c23b31dd0dd
pflanze/chj-schemelib
lib.scm
Copyright 2020 by < > ;;; This file is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License ( GPL ) as published by the Free Software Foundation , either version 2 of the License , or ;;; (at your option) any later version. (require easy ...
null
https://raw.githubusercontent.com/pflanze/chj-schemelib/59ff8476e39f207c2f1d807cfc9670581c8cedd3/monad/lib.scm
scheme
This file is free software; you can redistribute it and/or modify (at your option) any later version.
Copyright 2020 by < > it under the terms of the GNU General Public License ( GPL ) as published by the Free Software Foundation , either version 2 of the License , or (require easy monad/syntax) (export (template def-monad-lib-for)) (include "../cj-standarddeclares.scm") (deftemplate (de...
53973ae00cc1d4cef331de59988936702c016fea4a3b845f4a7333e0c2f1166e
OCamlPro/freeton_wallet
db_utils.mli
(**************************************************************************) (* *) Copyright ( c ) 2021 OCamlPro SAS (* *) (* All right...
null
https://raw.githubusercontent.com/OCamlPro/freeton_wallet/4d29bbd5e4a3293b31848181943d83ea7c6abbcc/src/freeton_crawler_lib/db_utils.mli
ocaml
************************************************************************ All rights reserved. This file is distributed u...
Copyright ( c ) 2021 OCamlPro SAS Public License version 2.1 , with the special exception on linking module PGOCaml = PGOCaml_lwt type database_handle = (string, bool) Hashtbl.t PGOCaml_lwt.t val database : string ref val create : unit -> unit val ( let>>> ) : 'a -...
ce95d3d7bd1834e044577d2d2cb33d4760b5cdc5223a16945eba704d03c8cbd7
xtdb/xtdb
entity_ref.cljc
(ns xtdb.http-server.entity-ref (:require #?@ (:clj [[cognitect.transit :as transit]] :cljs [[tick.alpha.api :as tick] [goog.string :as string]])) #?(:clj (:import java.net.URLEncoder java.util.Date java.io.Writer com....
null
https://raw.githubusercontent.com/xtdb/xtdb/e2f51ed99fc2716faa8ad254c0b18166c937b134/modules/http-server/src/xtdb/http_server/entity_ref.cljc
clojure
(ns xtdb.http-server.entity-ref (:require #?@ (:clj [[cognitect.transit :as transit]] :cljs [[tick.alpha.api :as tick] [goog.string :as string]])) #?(:clj (:import java.net.URLEncoder java.util.Date java.io.Writer com....
3a823e5aafe91e750b9942bbe4d5c197a498424396efde16b463067636527c10
NixOS/cabal2nix
PackageSourceSpec.hs
# LANGUAGE NamedFieldPuns # module Distribution.Nixpkgs.Haskell.PackageSourceSpec ( HpackUse(..), Package(..), getPackage, getPackage', loadHackageDB, sourceFromHackage ) where import qualified Control.Exception as Exception import Control.Monad import Control.Monad.IO.Class import Control.Monad.Trans.Maybe import...
null
https://raw.githubusercontent.com/NixOS/cabal2nix/0d1a5a7d227683e9d099665f645a8618ec48ef94/cabal2nix/src/Distribution/Nixpkgs/Haskell/PackageSourceSpec.hs
haskell
^ If hpack generated a new cabal file ^ the way hpack should be used. ^ Whether to fetch submodules if fetching from git ^ The path to the Hackage database. ^ If we have hackage-snapshot time. ^ the way hpack should be used. ^ Whether to fetch submodules if fetching from git ^ the way hpack should be used ^ Wh...
# LANGUAGE NamedFieldPuns # module Distribution.Nixpkgs.Haskell.PackageSourceSpec ( HpackUse(..), Package(..), getPackage, getPackage', loadHackageDB, sourceFromHackage ) where import qualified Control.Exception as Exception import Control.Monad import Control.Monad.IO.Class import Control.Monad.Trans.Maybe import...
fe6200223a84783f12dd75c447aad727e318ec67e5d2ec701483a767ac4a7dd5
nomnom-insights/nomnom.duckula
middleware.clj
(ns duckula.middleware "Minimal middleware to allow JSON based request handling" (:require [duckula.component.basic-monitoring :as monitoring] [ring.middleware.defaults :as ring-defaults] [ring.middleware.json :as ring-json])) (defn wrap-handler "Wraps the ring request handler (most likely one built by ...
null
https://raw.githubusercontent.com/nomnom-insights/nomnom.duckula/a6c8ee965da5717c5909bfbda5745be7a287d2ce/src/duckula/middleware.clj
clojure
(ns duckula.middleware "Minimal middleware to allow JSON based request handling" (:require [duckula.component.basic-monitoring :as monitoring] [ring.middleware.defaults :as ring-defaults] [ring.middleware.json :as ring-json])) (defn wrap-handler "Wraps the ring request handler (most likely one built by ...
f85d2ba86b6738beca18f4f0c51cd262308a02c1868188afa8a7cc406a19cf87
richmit/mjrcalc
exp-PovWaveGraph.lisp
;; -*- Mode:Lisp; Syntax:ANSI-Common-LISP; Coding:us-ascii-unix; fill-column:158 -*- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; @file exp-PovWaveGraph.lisp @author < > @brief ...
null
https://raw.githubusercontent.com/richmit/mjrcalc/96f66d030034754e7d3421688ff201f4f1db4833/exp-PovWaveGraph.lisp
lisp
-*- Mode:Lisp; Syntax:ANSI-Common-LISP; Coding:us-ascii-unix; fill-column:158 -*- @std Common Lisp Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: and/or other materials provided with the distribution. ...
@file exp-PovWaveGraph.lisp @author < > @brief Generate a height field TGA and image map TGA file for a PovRay render.@EOL @parblock Copyright ( c ) 1997,2010,2011,2015 , < > All rights reserved . 1 . Redistributions of source code must retain the above copyright notice , this li...
81928d0bffe33691e62400db533af8194ebd5e2ae5335ea215d7a7c33d68bbdd
sveri/friend-ui
user_test.clj
(ns de.sveri.friendui.service.user-test (:require [clojure.test :refer :all] [de.sveri.friendui.globals :refer [activation-placeholder]] [de.sveri.friendui.service.user :refer :all])) (deftest replace-activation-placeholder (is (= (replace-activation "foo {{activationlink}} bar" 123 activat...
null
https://raw.githubusercontent.com/sveri/friend-ui/b69afa5c4ddbf483100570e4a14e7a9211edc421/test/de/sveri/friendui/service/user_test.clj
clojure
(ns de.sveri.friendui.service.user-test (:require [clojure.test :refer :all] [de.sveri.friendui.globals :refer [activation-placeholder]] [de.sveri.friendui.service.user :refer :all])) (deftest replace-activation-placeholder (is (= (replace-activation "foo {{activationlink}} bar" 123 activat...
85413178032b15a4e5ccfd72970ae7dea5bccb09d1349661b411c99af67d675a
martinodb/bobtailbot
project.clj
(defproject bobtailbot "0.1.0-SNAPSHOT" :description "A simple REPL chatbot written in Clojure" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :main bobtailbot.core ;:aot [bobtailbot.core] :dependencies [ [org.clojure/clojure "1.10.1"] [o...
null
https://raw.githubusercontent.com/martinodb/bobtailbot/c7d5a2bc31bebfdbe68f5cbae1f3b7ecc2d4d8d9/project.clj
clojure
:aot [bobtailbot.core] clojars version logging. [org.clojure/tools.namespace "0.2.10"] :print clojure.pprint/pprint :repositories [ ["local" {:url ~(str (.toURI (java.io.File. "local-m2"))) :checksum :warn } ] ]
(defproject bobtailbot "0.1.0-SNAPSHOT" :description "A simple REPL chatbot written in Clojure" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :main bobtailbot.core :dependencies [ [org.clojure/clojure "1.10.1"] [org.clojure/tools.cli "1.0....
09798060cce9fad9362c6794e9d46291e77d27a9fad98451ca2e829f8a66ea88
nibbula/yew
los-config.lisp
;;; los-config.lisp - Configuration for LOS ;;; (defpackage :los-config (:documentation "Configuration for LOS") (:use :cl :config) ;; (:export) ) (in-package :los-config) (declaim (optimize (debug 2))) (defconfiguration ((optimization-settings list "Default optimization settings for each file/compil...
null
https://raw.githubusercontent.com/nibbula/yew/5d37afa7c154a6d4d55686136beda483d28d5ca3/los/los-config.lisp
lisp
(:export) the function arguments.
los-config.lisp - Configuration for LOS (defpackage :los-config (:documentation "Configuration for LOS") (:use :cl :config) ) (in-package :los-config) (declaim (optimize (debug 2))) (defconfiguration ((optimization-settings list "Default optimization settings for each file/compilation unit?." If we d...
84cf6028a9fd2296c0b35f180cf61974e7272357de21c696f81587753ffdd2bc
let-def/menhir
parameterizedGrammar.ml
(**************************************************************************) (* *) Menhir (* *) , INRIA Ro...
null
https://raw.githubusercontent.com/let-def/menhir/e8ba7bef219acd355798072c42abbd11335ecf09/src/parameterizedGrammar.ml
ocaml
************************************************************************ et en Automatique. All rig...
Menhir , INRIA Rocquencourt , PPS , Université Paris Diderot Copyright 2005 - 2008 Institut National de Recherche en Informatique under the terms of the Q Public License versi...
0e419f9c0c4c3ea204116b90921bff665869c65ccc5911fc35dd937f1c4beae0
ds-wizard/engine-backend
DocumentTemplateChangeJM.hs
module Wizard.Api.Resource.DocumentTemplate.DocumentTemplateChangeJM where import Data.Aeson import Shared.Model.DocumentTemplate.DocumentTemplateJM () import Shared.Util.Aeson import Wizard.Api.Resource.DocumentTemplate.DocumentTemplateChangeDTO instance FromJSON DocumentTemplateChangeDTO where parseJSON = generi...
null
https://raw.githubusercontent.com/ds-wizard/engine-backend/d392b751192a646064305d3534c57becaa229f28/engine-wizard/src/Wizard/Api/Resource/DocumentTemplate/DocumentTemplateChangeJM.hs
haskell
module Wizard.Api.Resource.DocumentTemplate.DocumentTemplateChangeJM where import Data.Aeson import Shared.Model.DocumentTemplate.DocumentTemplateJM () import Shared.Util.Aeson import Wizard.Api.Resource.DocumentTemplate.DocumentTemplateChangeDTO instance FromJSON DocumentTemplateChangeDTO where parseJSON = generi...
edcfdcb2b34b92ec1a9b7d9c514fd074a8651d346df191dd5a6565d3e4ab1ea9
basho/riak_dt
riak_dt_lwwreg.erl
%% ------------------------------------------------------------------- %% %% riak_dt_lwwreg: A last-write-wins register %% Copyright ( c ) 2007 - 2013 Basho Technologies , Inc. All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this fil...
null
https://raw.githubusercontent.com/basho/riak_dt/3aaf1f8493c64cb3792980c12d9911857cdce74a/src/riak_dt_lwwreg.erl
erlang
------------------------------------------------------------------- riak_dt_lwwreg: A last-write-wins register 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 f...
Copyright ( c ) 2007 - 2013 Basho Technologies , Inc. All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY ...
91e7a41508ae077177cd1f558bd2d8e3c881f02e49e69120c8e83c1142abcb55
metosin/spec-tools
visitor.cljc
(ns spec-tools.visitor "Tools for walking spec definitions." (:require [clojure.spec.alpha :as s] [spec-tools.core :as st] [spec-tools.parse :as parse] [spec-tools.impl :as impl] [spec-tools.form :as form])) (defn- spec-dispatch [spec accept options] (cond (o...
null
https://raw.githubusercontent.com/metosin/spec-tools/d05e6e3c76c3c6ff847aa3f8e66344df2705aeae/src/spec_tools/visitor.cljc
clojure
correct solution would be walk on a reference of a spec? TODO: broken: -2147 sample visitor
(ns spec-tools.visitor "Tools for walking spec definitions." (:require [clojure.spec.alpha :as s] [spec-tools.core :as st] [spec-tools.parse :as parse] [spec-tools.impl :as impl] [spec-tools.form :as form])) (defn- spec-dispatch [spec accept options] (cond (o...
0b50299549141ed751c267a77705854024ef6ee0ab9f60ea823fde3c68d276a6
SamirTalwar/smoke
Smoke.hs
module Test.Smoke ( module Test.Smoke.Assert, module Test.Smoke.Bless, module Test.Smoke.Discovery, module Test.Smoke.Execution, module Test.Smoke.Plan, module Test.Smoke.Summary, module Test.Smoke.Types, ) where import Test.Smoke.Assert import Test.Smoke.Bless import Test.Smoke.Discovery i...
null
https://raw.githubusercontent.com/SamirTalwar/smoke/6e593e5de82e9b27cc17197063df5020dae9fd41/src/lib/Test/Smoke.hs
haskell
module Test.Smoke ( module Test.Smoke.Assert, module Test.Smoke.Bless, module Test.Smoke.Discovery, module Test.Smoke.Execution, module Test.Smoke.Plan, module Test.Smoke.Summary, module Test.Smoke.Types, ) where import Test.Smoke.Assert import Test.Smoke.Bless import Test.Smoke.Discovery i...
1a205735903f14aafc0b9210955e1b6b5f5bcd2455abef5768efb0880c7b572f
racketscript/racketscript
transform.rkt
#lang typed/racket/base ;;; Generate IL code from abstract syntax. Each binding name ;;; in assumed to be fresh, to enforce lexical scope rules of Racket (require racket/bool racket/format racket/list racket/match racket/set threading "absyn.rkt" "config....
null
https://raw.githubusercontent.com/racketscript/racketscript/03d8580c399b1b1c5c39f3234b61aff8c3a9a984/racketscript-compiler/racketscript/compiler/transform.rkt
racket
Generate IL code from abstract syntax. Each binding name in assumed to be fresh, to enforce lexical scope rules of Racket Since we get identifiers directly from defining module, we keep track of defines, use this for exporting all defines or exclude re-exports here FIXME: We put #f so that we can match it exactly...
#lang typed/racket/base (require racket/bool racket/format racket/list racket/match racket/set threading "absyn.rkt" "config.rkt" "environment.rkt" "il-analyze.rkt" "il.rkt" "logging.rkt" "util.rkt") (require/...
3ed383188ee5d0182620b62334a5e2ba139c1df31b2721c2942835713fb61240
fbeline/rooster
state_test.erl
-module(state_test). -include_lib("eunit/include/eunit.hrl"). simple_test() -> rooster_state:start_link(#{}), State = gen_server:call(rooster_state, get_state), rooster_state:stop(), ?assertEqual(#{}, State). set_test() -> rooster_state:start_link(#{}), gen_server:cast(rooster_state, {set_state, #{middle...
null
https://raw.githubusercontent.com/fbeline/rooster/e8f4d4f1fe2fd901371361dd00f0cb64515424b0/test/state_test.erl
erlang
-module(state_test). -include_lib("eunit/include/eunit.hrl"). simple_test() -> rooster_state:start_link(#{}), State = gen_server:call(rooster_state, get_state), rooster_state:stop(), ?assertEqual(#{}, State). set_test() -> rooster_state:start_link(#{}), gen_server:cast(rooster_state, {set_state, #{middle...
acb246ac40dfac9a17d9df462ce6aa21371368812f759d7bea8815e256581680
fortytools/holumbus
HayooState.hs
{-# LANGUAGE OverloadedStrings #-} | ' Snap . Extension . Timer . Impl ' is an implementation of the ' MonadTimer ' interface defined in ' Snap . Extension . Timer ' . As always , to use , add ' TimerState ' to your application 's state , along with an instance of ' HasTimerState ' for your application 's st...
null
https://raw.githubusercontent.com/fortytools/holumbus/4b2f7b832feab2715a4d48be0b07dca018eaa8e8/Hayoo/HayooSnap/Hayoo/Snap/Extension/HayooState.hs
haskell
# LANGUAGE OverloadedStrings # ---------------------------------------------------------------------------- application to be a 'MonadTimer'. ---------------------------------------------------------------------------- | For your application's monad to be a 'MonadTimer', your application's state needs to be an insta...
| ' Snap . Extension . Timer . Impl ' is an implementation of the ' MonadTimer ' interface defined in ' Snap . Extension . Timer ' . As always , to use , add ' TimerState ' to your application 's state , along with an instance of ' HasTimerState ' for your application 's state , making sure to use a ' time...
5b112a84011bea89b788ed6b4a4b0455e0fdfe58d3118246f1035acfe124fe46
Ptival/yugioh
Duelist.hs
# LANGUAGE TemplateHaskell # -- | A `Duelist` describes a duelist prior to any duel. It contain information -- | like their names, and the deck they'd like to use for the duel. module YuGiOh.Duelist ( Duelist (..), deck, YuGiOh.Duelist.name, ) where import Control.Lens import YuGiOh.Card data Duelist ...
null
https://raw.githubusercontent.com/Ptival/yugioh/855e8f22c3ff322c7ca1d0a1fa96c50a54724aeb/lib/YuGiOh/Duelist.hs
haskell
| A `Duelist` describes a duelist prior to any duel. It contain information | like their names, and the deck they'd like to use for the duel.
# LANGUAGE TemplateHaskell # module YuGiOh.Duelist ( Duelist (..), deck, YuGiOh.Duelist.name, ) where import Control.Lens import YuGiOh.Card data Duelist = Duelist { _name :: String, _deck :: [Card] } makeLenses ''Duelist
c3e01f002437cccbbd24cb03d3b59a38b5304827f6cbd9495a3ead8b09ab592e
ucsd-progsys/nate
odoc_text.mli
(***********************************************************************) (* OCamldoc *) (* *) , projet Cristal , INRIA Rocquencourt (* ...
null
https://raw.githubusercontent.com/ucsd-progsys/nate/8b1267cd8b10283d8bc239d16a28c654a4cb8942/eval/sherrloc/easyocaml%2B%2B/ocamldoc/odoc_text.mli
ocaml
********************************************************************* OCamldoc ...
, projet Cristal , INRIA Rocquencourt Copyright 2001 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ I d : odoc_text.mli , v 1.3 2003/11/24...
cf95dff2971118d132c6a0a8ee00bf8de92401142aec97d39801168d1dcc6b07
idubrov/siperl
sip_ua_INVITE_SUITE.erl
@author < > @doc INVITE tests %%% @end 2011 - 2012 . See LICENSE file . -module(sip_ua_INVITE_SUITE). %% Exports -export([all/0, init_per_suite/1, end_per_suite/1, init_per_testcase/2, end_per_testcase/2]). -export([invite_200/1]). -export([invite_200_handler/1]). %% Include files -include_lib("common_tes...
null
https://raw.githubusercontent.com/idubrov/siperl/251daf3a0d7c7442f56f42cfd6c92764a4f475a7/apps/sip/test/sip_ua_INVITE_SUITE.erl
erlang
@end Exports Include files Common tests @end validate status
@author < > @doc INVITE tests 2011 - 2012 . See LICENSE file . -module(sip_ua_INVITE_SUITE). -export([all/0, init_per_suite/1, end_per_suite/1, init_per_testcase/2, end_per_testcase/2]). -export([invite_200/1]). -export([invite_200_handler/1]). -include_lib("common_test/include/ct.hrl"). -include("sip.hrl...
6a6d3bb6904b57f15d291372ecbc0a5cb9ce436f80f306dc469f444317f45238
discord-haskell/discord-haskell
Prelude.hs
# LANGUAGE GeneralizedNewtypeDeriving # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE MultiParamTypeClasses # # LANGUAGE FlexibleInstances # {-# LANGUAGE RankNTypes #-} # LANGUAGE CPP # {-# LANGUAGE DeriveDataTypeable #-} | Provides base types and utility functions needed for modules in Discord . Internal . Typ...
null
https://raw.githubusercontent.com/discord-haskell/discord-haskell/8a82208cbb59e1ab24176a90de8b0706c08ddb31/src/Discord/Internal/Types/Prelude.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # # LANGUAGE DeriveDataTypeable # | Authorization token for the Discord API | Get the raw token formatted for use with the websocket gateway | A unique integer identifier. Can be used to calculate the creation date of an entity. | Gets a creation date from a sno...
# LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # # LANGUAGE FlexibleInstances # # LANGUAGE CPP # | Provides base types and utility functions needed for modules in Discord . Internal . Types module Discord.Internal.Types.Prelude ( Auth (..) , authToken , Snowflake (..) , snowfla...
260188754fd132d5ba3190d94bd7c6765136e57497ce1c61bddf92749163a4ae
Swirrl/cubiql
core.clj
(ns cubiql.core (:require [com.walmartlabs.lacinia.schema :as lschema] [com.walmartlabs.lacinia.util :refer [attach-resolvers]] [com.walmartlabs.lacinia :refer [execute]] [cubiql.util :refer [read-edn-resource]] [cubiql.types :refer :all :as types] [cubiql.t...
null
https://raw.githubusercontent.com/Swirrl/cubiql/67efdc51750b9ac4fd1cdfbcddfb80398189807f/src/cubiql/core.clj
clojure
(ns cubiql.core (:require [com.walmartlabs.lacinia.schema :as lschema] [com.walmartlabs.lacinia.util :refer [attach-resolvers]] [com.walmartlabs.lacinia :refer [execute]] [cubiql.util :refer [read-edn-resource]] [cubiql.types :refer :all :as types] [cubiql.t...
d79953ebe0dcc7546270b7bd77704b48f0716a2094a9701e3767d3eae56f2fef
haskell/cabal
SPDX.hs
# LANGUAGE CPP # # OPTIONS_GHC -fno - warn - deprecations # module UnitTests.Distribution.SPDX (spdxTests) where import Distribution.Compat.Prelude.Internal import Prelude () import Distribution.SPDX import Distribution.Parsec (eitherParsec) import Distribution.Pretty (prettyShow) import Test.Tasty import Test.Tasty...
null
https://raw.githubusercontent.com/haskell/cabal/203d44055184522e33fd549b2f15c90a06f28d27/Cabal-tests/tests/UnitTests/Distribution/SPDX.hs
haskell
----------------------------------------------------------------------------- isAcceptableLicence ----------------------------------------------------------------------------- | A sketch of what Hackage could accept * "or later" syntax (+ postfix) is rejected * "WITH exc" exceptions are rejected * There should...
# LANGUAGE CPP # # OPTIONS_GHC -fno - warn - deprecations # module UnitTests.Distribution.SPDX (spdxTests) where import Distribution.Compat.Prelude.Internal import Prelude () import Distribution.SPDX import Distribution.Parsec (eitherParsec) import Distribution.Pretty (prettyShow) import Test.Tasty import Test.Tasty...
c3bc61b2d9bf2dbc48c93fd97d7cc758a572aff0d42b8f7d8ac0e31531d0fba8
cljfx/cljfx
spinner.clj
(ns cljfx.jdk.fx.spinner (:require [cljfx.composite :as composite] [cljfx.lifecycle :as lifecycle] [cljfx.coerce :as coerce]) (:import [javafx.scene.control Spinner])) (set! *warn-on-reflection* true) (def props (composite/props Spinner :initial-delay [:setter lifecycle/scalar :coerc...
null
https://raw.githubusercontent.com/cljfx/cljfx/543f7409290051e9444771d2cd86dadeb8cdce33/jdk11/cljfx/jdk/fx/spinner.clj
clojure
(ns cljfx.jdk.fx.spinner (:require [cljfx.composite :as composite] [cljfx.lifecycle :as lifecycle] [cljfx.coerce :as coerce]) (:import [javafx.scene.control Spinner])) (set! *warn-on-reflection* true) (def props (composite/props Spinner :initial-delay [:setter lifecycle/scalar :coerc...
35addd1f23475d23949dc663bac80ea716b8ca96857b44dc202a3e9eafe39c9b
donaldsonjw/bigloo
make_lib.scm
;*=====================================================================*/ ;* .../prgm/project/bigloo/api/calendar/src/Misc/make_lib.scm */ ;* ------------------------------------------------------------- */ * Author : * / * Creation : Tue Nov ...
null
https://raw.githubusercontent.com/donaldsonjw/bigloo/a4d06e409d0004e159ce92b9908719510a18aed5/api/calendar/src/Misc/make_lib.scm
scheme
*=====================================================================*/ * .../prgm/project/bigloo/api/calendar/src/Misc/make_lib.scm */ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ * The module used to buil...
* Author : * / * Creation : Tue Nov 6 15:09:37 2001 * / * Last change : Sun Apr 20 18:17:27 2008 ( serrano ) * / * Copyright : 2001 - 08 * / (module __calendar_makelib ...
db3b81bfb8fda5128b20b1c0348dc3d949cadb0c5b8a7c7a93739067da4c420b
cljdoc/cljdoc-analyzer
utils.clj
(ns ^:no-doc cljdoc-analyzer.metagetta.utils "Miscellaneous utility functions." (:require [clojure.java.io :as io] [clojure.string :as str] [clojure.walk :as walk]) (:import [java.time Duration])) (defn- empty-seq?[x] (and (seqable? x) (not (seq x)))) (defn remove-empties[m] (into {}...
null
https://raw.githubusercontent.com/cljdoc/cljdoc-analyzer/50d5e657172d99ec5fb046142747347036fb9859/modules/metagetta/src/cljdoc_analyzer/metagetta/utils.clj
clojure
We currently dupe instead of bringing the shared dep to minimize the analyzed structure can contain regex #"..." (e.g. in :arglists) and they can't be read in again using edn/read-string so there are changed to #regex"..." and read in with a custom reader < -- OK for reading but breaks the Clojure Compiler 's ` em...
(ns ^:no-doc cljdoc-analyzer.metagetta.utils "Miscellaneous utility functions." (:require [clojure.java.io :as io] [clojure.string :as str] [clojure.walk :as walk]) (:import [java.time Duration])) (defn- empty-seq?[x] (and (seqable? x) (not (seq x)))) (defn remove-empties[m] (into {}...
05e44662e77352fae1d9bbf17cf4a79785eb026a91684a737f03c8f885da6159
shaunlebron/solar-system-of-js
actions.cljs
(ns solar-system-of-js.actions (:require-macros [cljs.core.async.macros :refer [go go-loop]]) (:require [cljs.core.async :refer [<! timeout chan tap]] [solar-system-of-js.state :refer [state]] [solar-system-of-js.animate :refer [tick-tap multi-animate!]] [solar-system-of-js.math :refer [PI]])) ...
null
https://raw.githubusercontent.com/shaunlebron/solar-system-of-js/a5c53c9727622ac023963766323b6eb5d03f5226/src/solar_system_of_js/actions.cljs
clojure
When we change slides, there can be multiple actions to perform. For example: DEFINITIONS: Action: a group of concurrent state setters (possibly animated) DETAILED DEFINITIONS: An action is just a Map. Let's look at possible example values in this _example-action map: -------------------------...
(ns solar-system-of-js.actions (:require-macros [cljs.core.async.macros :refer [go go-loop]]) (:require [cljs.core.async :refer [<! timeout chan tap]] [solar-system-of-js.state :refer [state]] [solar-system-of-js.animate :refer [tick-tap multi-animate!]] [solar-system-of-js.math :refer [PI]])) ...
a29abc12568f1133b8d9b7cc9991dba63b92a14eba68ee7a5794a7b9b11597c0
returntocorp/semgrep
Loc.ml
(* The location of a substring within a document. *) open Printf open Lexing type t = Lexing.position * Lexing.position let pp fmt _t = if ! then pp_token_mutable fmt t then pp_token_mutable fmt t*) Format.fprintf fmt "()" (* we don't care about position information in spacegrep/semgrep *) let equal _ _ ...
null
https://raw.githubusercontent.com/returntocorp/semgrep/6e182e59a3d7cb8d3c837032dd2fc51091098c10/libs/spacegrep/src/lib/Loc.ml
ocaml
The location of a substring within a document. we don't care about position information in spacegrep/semgrep Position that can be used in place of a valid position, where using an option is too expensive or inconvenient. It is guaranteed to be strictly less than any real position in a lexbuf. ...
open Printf open Lexing type t = Lexing.position * Lexing.position let pp fmt _t = if ! then pp_token_mutable fmt t then pp_token_mutable fmt t*) Format.fprintf fmt "()" let equal _ _ = true module Pos = struct type t = Lexing.position let dummy = { Lexing.pos_fname = ""; pos_lnum = 0; pos_bol = 0...
c8e8b25a66485e98f209d377ddced26a3c784e12e31bc4ac564c64bfb9f6d46f
fredrikt/yxa
appserver_test.erl
%%%------------------------------------------------------------------- %%% File : appserver_test.erl @author < > %%% @doc Test cases for the complete appserver application. %%% @since 29 Nov 2006 by < > %%% @end %%% @hidden %%%------------------------------------------------------------------- ...
null
https://raw.githubusercontent.com/fredrikt/yxa/85da46a999d083e6f00b5f156a634ca9be65645b/src/appserver_test.erl
erlang
------------------------------------------------------------------- File : appserver_test.erl @doc Test cases for the complete appserver application. @end @hidden ------------------------------------------------------------------- -------------------------------------------------------------------- Includ...
@author < > @since 29 Nov 2006 by < > -module(appserver_test). -export([test/0]). -include("siprecords.hrl"). test() -> ok.
78112448dae9738d1a359fa2ff06ce1fcab45a6ed89c62b3c0b692f372b60c4e
mmark-md/mmark-ext
TestUtils.hs
module Text.MMark.Extension.TestUtils ( withExt, ) where import Data.Text (Text) import qualified Data.Text.Lazy as TL import qualified Lucid as L import Test.Hspec import qualified Text.MMark as MMark | Feed input into MMark parser , apply an extension , render the parsed -- document and demand that it matches...
null
https://raw.githubusercontent.com/mmark-md/mmark-ext/bb7f26f8c2cf98a54472372601ce5f6d5cb9df2d/tests/Text/MMark/Extension/TestUtils.hs
haskell
document and demand that it matches the given example. | Input for the parser | Expected output of the render
module Text.MMark.Extension.TestUtils ( withExt, ) where import Data.Text (Text) import qualified Data.Text.Lazy as TL import qualified Lucid as L import Test.Hspec import qualified Text.MMark as MMark | Feed input into MMark parser , apply an extension , render the parsed withExt :: | MMark extension to use ...
265a59093e710dd15bc52a20c9f1cb6de07055afc4d9f04a4d33f2f4c0accdb4
jship/monad-logger-aeson
MetadataNoThreadContextNo.hs
# LANGUAGE NamedFieldPuns # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE QuasiQuotes # module TestCase.LogOtherN.MetadataNoThreadContextNo ( testCase ) where import Control.Monad.Logger.Aeson (Loc(..), LogLevel(..), LoggedMessage(..), logOtherN) import Data.Aeson.QQ.Simple (aesonQQ) import Data.Time (UTCTime(..))...
null
https://raw.githubusercontent.com/jship/monad-logger-aeson/209a4f8cea11ac25721d5fe06783e4ce461c1d70/monad-logger-aeson/test-suite/TestCase/LogOtherN/MetadataNoThreadContextNo.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE NamedFieldPuns # # LANGUAGE QuasiQuotes # module TestCase.LogOtherN.MetadataNoThreadContextNo ( testCase ) where import Control.Monad.Logger.Aeson (Loc(..), LogLevel(..), LoggedMessage(..), logOtherN) import Data.Aeson.QQ.Simple (aesonQQ) import Data.Time (UTCTime(..)) import TestCase (TestCase(..)) imp...
595522b6437a9b00fcfb53bf8a573fde72ad4e641cd5408a197146ffcaf3c622
TrustInSoft/tis-interpreter
driver.mli
Modified by TrustInSoft (**************************************************************************) (* *) This file is part of WP plug - in of Frama - C. (* ...
null
https://raw.githubusercontent.com/TrustInSoft/tis-interpreter/33132ce4a825494ea48bf2dd6fd03a56b62cc5c3/src/plugins/wp/driver.mli
ocaml
************************************************************************ alternatives) ...
Modified by TrustInSoft This file is part of WP plug - in of Frama - C. Copyright ( C ) 2007 - 2015 CEA ( Commissariat a l'energie atomique et aux energies Lesser General Public License as published by the Free Soft...
6e364d68902f91376321c97c7924b60e597a1621922620e9e9e25a78e37effb1
footprintanalytics/footprint-web
metabase_metadata_test.clj
(ns metabase.sync.sync-metadata.metabase-metadata-test "Tests for the logic that syncs the `_metabase_metadata` Table." (:require [clojure.test :refer :all] [metabase.models.database :refer [Database]] [metabase.models.field :refer [Field]] [metabase.models.table :refer [Table]] ...
null
https://raw.githubusercontent.com/footprintanalytics/footprint-web/d3090d943dd9fcea493c236f79e7ef8a36ae17fc/test/metabase/sync/sync_metadata/metabase_metadata_test.clj
clojure
manually add in the movies table
(ns metabase.sync.sync-metadata.metabase-metadata-test "Tests for the logic that syncs the `_metabase_metadata` Table." (:require [clojure.test :refer :all] [metabase.models.database :refer [Database]] [metabase.models.field :refer [Field]] [metabase.models.table :refer [Table]] ...
81cf2b6fcca2b0d36ce07a79b996d81628428054d04db6fc0cb3fb5e66339cf3
cfelde/ebbs-social-frontend
query.cljs
(ns ebbs-social-frontend.admin.query (:require [re-frame.core :as rf] [clojure.string :as str] [ebbs-social-frontend.misc.utils :as u])) -- Domino 4 - Query ------------------------------------------------------- (rf/reg-sub :db (fn [db [_ & keys]] (get-in db keys))) (rf/reg-sub...
null
https://raw.githubusercontent.com/cfelde/ebbs-social-frontend/ad47de958f3e60bbafe0867f3e192981d3acf3d6/src/ebbs_social_frontend/admin/query.cljs
clojure
(ns ebbs-social-frontend.admin.query (:require [re-frame.core :as rf] [clojure.string :as str] [ebbs-social-frontend.misc.utils :as u])) -- Domino 4 - Query ------------------------------------------------------- (rf/reg-sub :db (fn [db [_ & keys]] (get-in db keys))) (rf/reg-sub...
e12fbfdd72e77d6e92a4ecbb4078b12fc7df0b72c2b3566f59486f916bf3d4af
binsec/haunted
guideAsUAF.ml
(**************************************************************************) This file is part of BINSEC . (* *) Copyright ( C ) 2016 - 2019 (* VERIMAG...
null
https://raw.githubusercontent.com/binsec/haunted/7ffc5f4072950fe138f53fe953ace98fff181c73/src/dynamic/dse/path_exploration/guideAsUAF.ml
ocaml
************************************************************************ VERIMAG you can redistribute it an...
This file is part of BINSEC . Copyright ( C ) 2016 - 2019 Lesser General Public License as published by the Free Software Foundation , version 2.1 . See the GNU Le...
07ee4dd03276a5fa14fe1abce7ebbdd83c9723cb6a4287cb88a0f717bebf9a53
BillHallahan/G2
FilterConcat2.hs
{-@ LIQUID "--prune-unsorted" @-} {-@ LIQUID "--no-termination" @-} -- {-@ include <include/Concat2.hquals> @-} module FilterConcat (size, sumsize) where import Prelude hiding (concat) data List a = a :+: List a | Nil {-@ measure size @-} size :: List a -> Int size Nil = 0 size (x :+: xs) = 1 + size xs...
null
https://raw.githubusercontent.com/BillHallahan/G2/4d287df8ed7ba13c06d96d4911b9eedf870e80a1/tests/LiquidInf/FilterConcat2.hs
haskell
@ LIQUID "--prune-unsorted" @ @ LIQUID "--no-termination" @ {-@ include <include/Concat2.hquals> @-} @ measure size @ @ invariant {v:List a | 0 <= size v} @ @ measure sumsize @ @ filterEven :: xs:List Int -> List Int @ @ concat :: List (List a) -> List a @ @ append :: List a -> List a -> List a @
module FilterConcat (size, sumsize) where import Prelude hiding (concat) data List a = a :+: List a | Nil size :: List a -> Int size Nil = 0 size (x :+: xs) = 1 + size xs sumsize :: List (List a) -> Int sumsize Nil = 0 sumsize (x :+: xs) = size x + sumsize xs @ : : xs : List ( List Int ) - > { ys :...
6f6d927f68a49d77f6484504cc67609b2e74a1211859379e2c1b13a95a08361f
hasktorch/hasktorch
Dimname.hs
# LANGUAGE DataKinds # # LANGUAGE PolyKinds # # LANGUAGE TemplateHaskell # # LANGUAGE QuasiQuotes # # LANGUAGE ScopedTypeVariables # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TypeFamilies # # LANGUAGE FlexibleInstances # module Torch.Internal.Managed.Type.Dimname where import Foreign.C.String import Foreign.C.T...
null
https://raw.githubusercontent.com/hasktorch/hasktorch/6233c173e1dd9fd7218fd13b104da15fc457f67e/libtorch-ffi/src/Torch/Internal/Managed/Type/Dimname.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE DataKinds # # LANGUAGE PolyKinds # # LANGUAGE TemplateHaskell # # LANGUAGE QuasiQuotes # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # # LANGUAGE FlexibleInstances # module Torch.Internal.Managed.Type.Dimname where import Foreign.C.String import Foreign.C.Types import Foreign import Torch.In...
de7f4a5d02197ed28e2c554236c5289978b9990270b1dd396e19d2b6323d6214
TrustInSoft/tis-interpreter
GuiConfig.ml
Modified by TrustInSoft (**************************************************************************) (* *) This file is part of WP plug - in of Frama - C. (* ...
null
https://raw.githubusercontent.com/TrustInSoft/tis-interpreter/33132ce4a825494ea48bf2dd6fd03a56b62cc5c3/src/plugins/wp/GuiConfig.ml
ocaml
************************************************************************ alternatives) ...
Modified by TrustInSoft This file is part of WP plug - in of Frama - C. Copyright ( C ) 2007 - 2015 CEA ( Commissariat a l'energie atomique et aux energies Lesser General Public License as published by the Free Soft...
24e39225460c4aae02ba7bc55c18a40d7dfcc68f5e5917f68936a7b02fe577d0
startalkIM/ejabberd
ejabberd_auth_anonymous.erl
%%%---------------------------------------------------------------------- %%% File : ejabberd_auth_anonymous.erl Author : < > %%% Purpose : Anonymous feature support in ejabberd Created : 17 Feb 2006 by < > %%% %%% ejabberd , Copyright ( C ) 2002 - 2016 ProcessOne %%% %%% This program is free softwa...
null
https://raw.githubusercontent.com/startalkIM/ejabberd/718d86cd2f5681099fad14dab5f2541ddc612c8b/src/ejabberd_auth_anonymous.erl
erlang
---------------------------------------------------------------------- File : ejabberd_auth_anonymous.erl Purpose : Anonymous feature support in ejabberd This program is free software; you can redistribute it and/or License, or (at your option) any later version. This program is distributed in the hope that...
Author : < > Created : 17 Feb 2006 by < > ejabberd , Copyright ( C ) 2002 - 2016 ProcessOne modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the You should have received a copy of the GNU General Public License along ...
33f5364671b53db7ad5d95875245e3716f33ef1d7817bb09db84fdf552e36641
kelsey-sorrels/robinson
boomerang_item.clj
;; Utility functions for rendering state (ns robinson.fx.boomerang-item (:require [robinson.common :as rc] [robinson.error :as re] [robinson.catmull-rom :as rcr] [robinson.renderutil :as rutil] [robinson.math :as rmath] [robinson.color :as rcolo...
null
https://raw.githubusercontent.com/kelsey-sorrels/robinson/337fd2646882708331257d1f3db78a3074ccc67a/src/robinson/fx/boomerang_item.clj
clojure
Utility functions for rendering state move item update path triggers a trap remove item and trigger trap didn't hit anything, drop into cell at max-distance npc in cell will hit wall? drop item into cell before hitting colliding cell items dropped into fire add to fuel create a character fx create a corresp...
(ns robinson.fx.boomerang-item (:require [robinson.common :as rc] [robinson.error :as re] [robinson.catmull-rom :as rcr] [robinson.renderutil :as rutil] [robinson.math :as rmath] [robinson.color :as rcolor] [robinson.actors :as racto...