Search is not available for this dataset
repo_name
string
path
string
license
string
full_code
string
full_size
int64
uncommented_code
string
uncommented_size
int64
function_only_code
string
function_only_size
int64
is_commented
bool
is_signatured
bool
n_ast_errors
int64
ast_max_depth
int64
n_whitespaces
int64
n_ast_nodes
int64
n_ast_terminals
int64
n_ast_nonterminals
int64
loc
int64
cycloplexity
int64
green-haskell/ghc
libraries/base/GHC/Event/Manager.hs
bsd-3-clause
registerFd_ :: EventManager -> IOCallback -> Fd -> Event -> Lifetime -> IO (FdKey, Bool) registerFd_ mgr@(EventManager{..}) cb fd evs lt = do u <- newUnique emUniqueSource let fd' = fromIntegral fd reg = FdKey fd u el = I.eventLifetime evs lt !fdd = FdData reg el cb (modify,ok) <- ...
1,463
registerFd_ :: EventManager -> IOCallback -> Fd -> Event -> Lifetime -> IO (FdKey, Bool) registerFd_ mgr@(EventManager{..}) cb fd evs lt = do u <- newUnique emUniqueSource let fd' = fromIntegral fd reg = FdKey fd u el = I.eventLifetime evs lt !fdd = FdData reg el cb (modify,ok) <- ...
1,463
registerFd_ mgr@(EventManager{..}) cb fd evs lt = do u <- newUnique emUniqueSource let fd' = fromIntegral fd reg = FdKey fd u el = I.eventLifetime evs lt !fdd = FdData reg el cb (modify,ok) <- withMVar (callbackTableVar mgr fd) $ \tbl -> do oldFdd <- IT.insertWith (++) fd' [fdd] tbl le...
1,362
false
true
0
24
464
457
228
229
null
null
rueshyna/gogol
gogol-youtube/gen/Network/Google/Resource/YouTube/Captions/Download.hs
mpl-2.0
-- | Creates a value of 'CaptionsDownload' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'capaOnBehalfOf' -- -- * 'capaTlang' -- -- * 'capaOnBehalfOfContentOwner' -- -- * 'capaId' -- -- * 'capaTfmt' captionsDownload :: Text -- ^ ...
562
captionsDownload :: Text -- ^ 'capaId' -> CaptionsDownload captionsDownload pCapaId_ = CaptionsDownload' { _capaOnBehalfOf = Nothing , _capaTlang = Nothing , _capaOnBehalfOfContentOwner = Nothing , _capaId = pCapaId_ , _capaTfmt = Nothing }
276
captionsDownload pCapaId_ = CaptionsDownload' { _capaOnBehalfOf = Nothing , _capaTlang = Nothing , _capaOnBehalfOfContentOwner = Nothing , _capaId = pCapaId_ , _capaTfmt = Nothing }
209
true
true
0
7
118
73
46
27
null
null
Softsapiens/yampy-cube
src/Graphics.hs
bsd-3-clause
-- | Vector addition generalized for Num (.+) :: Num a => (a, a) -> (a, a) -> (a, a) (x, y) .+ (u, v) = (x + u, y + v)
118
(.+) :: Num a => (a, a) -> (a, a) -> (a, a) (x, y) .+ (u, v) = (x + u, y + v)
77
(x, y) .+ (u, v) = (x + u, y + v)
33
true
true
0
8
31
83
47
36
null
null
JacquesCarette/literate-scientific-software
code/drasil-data/Data/Drasil/Concepts/Software.hs
bsd-2-clause
qualOfBeing :: String -> String qualOfBeing s = "the quality or state of being" ++ s
84
qualOfBeing :: String -> String qualOfBeing s = "the quality or state of being" ++ s
84
qualOfBeing s = "the quality or state of being" ++ s
52
false
true
0
7
15
28
12
16
null
null
damianfral/BrainHask
src/Language/BrainHask/Parser.hs
mit
incParser = Add <$> howMany1 "+"
46
incParser = Add <$> howMany1 "+"
46
incParser = Add <$> howMany1 "+"
46
false
false
1
6
19
16
6
10
null
null
NickAger/LearningHaskell
HaskellProgrammingFromFirstPrinciples/Chapter15.hsproj/MonoidLaws.hs
mit
monoidLeftIdentity :: (Eq m, Monoid m) => m -> Bool monoidLeftIdentity a = (mempty <> a) == a
93
monoidLeftIdentity :: (Eq m, Monoid m) => m -> Bool monoidLeftIdentity a = (mempty <> a) == a
93
monoidLeftIdentity a = (mempty <> a) == a
41
false
true
0
7
17
44
23
21
null
null
Heather/Idris-dev
src/Idris/Primitives.hs
bsd-3-clause
toInt ITChar x = Ch (chr $ fromIntegral x)
42
toInt ITChar x = Ch (chr $ fromIntegral x)
42
toInt ITChar x = Ch (chr $ fromIntegral x)
42
false
false
1
8
8
28
11
17
null
null
janschulz/pandoc
src/Text/Pandoc/Parsing.hs
gpl-2.0
lineClump :: Stream [Char] m Char => ParserT [Char] st m String lineClump = blanklines <|> (many1 (notFollowedBy blankline >> anyLine) >>= return . unlines)
166
lineClump :: Stream [Char] m Char => ParserT [Char] st m String lineClump = blanklines <|> (many1 (notFollowedBy blankline >> anyLine) >>= return . unlines)
166
lineClump = blanklines <|> (many1 (notFollowedBy blankline >> anyLine) >>= return . unlines)
102
false
true
3
12
34
74
36
38
null
null
forked-upstream-packages-for-ghcjs/ghc
libraries/base/tests/unicode001.hs
bsd-3-clause
zero = '0'
27
zero = '0'
27
zero = '0'
27
false
false
0
4
19
6
3
3
null
null
yangjueji/hblas
src/Numerical/HBLAS/BLAS/Internal/Level2.hs
bsd-3-clause
spr2Abstraction :: (SM.Storable el, PrimMonad m) => String -> Spr2FunFFI scale el -> Spr2FunFFI scale el -> (el -> (scale -> m ())-> m ()) -> forall orient . Spr2Fun el orient (PrimState m) m spr2Abstraction spr2Name spr2SafeFFI spr2UnsafeF...
1,770
spr2Abstraction :: (SM.Storable el, PrimMonad m) => String -> Spr2FunFFI scale el -> Spr2FunFFI scale el -> (el -> (scale -> m ())-> m ()) -> forall orient . Spr2Fun el orient (PrimState m) m spr2Abstraction spr2Name spr2SafeFFI spr2UnsafeF...
1,770
spr2Abstraction spr2Name spr2SafeFFI spr2UnsafeFFI constHandler = spr2 where shouldCallFast :: Int64 -> Bool shouldCallFast n = flopsThreshold >= (n * n * 2) spr2 ornt uplo n alpha (MutableDenseVector _ xdim xstride xbuff) (MutableDenseVector _ ydim ystride ybuff) (MutableDenseVector _ a...
1,498
false
true
12
23
556
514
255
259
null
null
f1u77y/xmonad-contrib
XMonad/Actions/DynamicProjects.hs
bsd-3-clause
-------------------------------------------------------------------------------- -- | Prompt for a project name. projectPrompt :: [ProjectMode] -> XPConfig -> X () projectPrompt submodes c = do ws <- map W.tag `fmap` gets (W.workspaces . windowset) ps <- XS.gets projects let names = sort (Map.keys ps `union` ws)...
667
projectPrompt :: [ProjectMode] -> XPConfig -> X () projectPrompt submodes c = do ws <- map W.tag `fmap` gets (W.workspaces . windowset) ps <- XS.gets projects let names = sort (Map.keys ps `union` ws) modes = map (\m -> XPT $ ProjectPrompt m names) submodes mkXPromptWithModes modes c ------------------...
554
projectPrompt submodes c = do ws <- map W.tag `fmap` gets (W.workspaces . windowset) ps <- XS.gets projects let names = sort (Map.keys ps `union` ws) modes = map (\m -> XPT $ ProjectPrompt m names) submodes mkXPromptWithModes modes c ---------------------------------------------------------------------...
503
true
true
0
14
101
141
72
69
null
null
ghc/packages-filepath
System/FilePath/Internal.hs
bsd-3-clause
-- | Get the directory name, move up one level. -- -- > takeDirectory "/directory/other.ext" == "/directory" -- > takeDirectory x `isPrefixOf` x || takeDirectory x == "." -- > takeDirectory "foo" == "." -- > takeDirectory "/" == "/" -- > takeDirectory "/foo" == "/" -- >...
740
takeDirectory :: FilePath -> FilePath takeDirectory = dropTrailingPathSeparator . dropFileName
94
takeDirectory = dropTrailingPathSeparator . dropFileName
56
true
true
0
5
177
32
23
9
null
null
ecaustin/haskhol-core
src/HaskHOL/Core/Basics.hs
bsd-2-clause
-- | Predicate for term-level universal type quantification. isTyAll :: HOLTerm -> Bool isTyAll = isTyBinder "!!"
113
isTyAll :: HOLTerm -> Bool isTyAll = isTyBinder "!!"
52
isTyAll = isTyBinder "!!"
25
true
true
0
5
16
19
10
9
null
null
spl/generic-deriving-extras
src/Generics/Deriving/Zipper.hs
bsd-3-clause
set :: a -> Loc a -> Loc a set x (Loc _ cs) = Loc x cs
54
set :: a -> Loc a -> Loc a set x (Loc _ cs) = Loc x cs
54
set x (Loc _ cs) = Loc x cs
27
false
true
0
7
17
48
21
27
null
null
simonswine/string-kata-haskell
src/String/Kata.hs
gpl-3.0
convertToInt :: [[Char]] -> [Integer] convertToInt ([]) = []
60
convertToInt :: [[Char]] -> [Integer] convertToInt ([]) = []
60
convertToInt ([]) = []
22
false
true
0
7
8
38
20
18
null
null
facebookincubator/duckling
Duckling/Ranking/Classifiers/EN_IE.hs
bsd-3-clause
classifiers :: Classifiers classifiers = HashMap.fromList [("Bhai Dooj", Classifier{okData = ClassData{prior = 0.0, unseen = -1.0986122886681098, likelihoods = HashMap.fromList [("", 0.0)], n = 1}, koData = Class...
263,763
classifiers :: Classifiers classifiers = HashMap.fromList [("Bhai Dooj", Classifier{okData = ClassData{prior = 0.0, unseen = -1.0986122886681098, likelihoods = HashMap.fromList [("", 0.0)], n = 1}, koData = Class...
263,763
classifiers = HashMap.fromList [("Bhai Dooj", Classifier{okData = ClassData{prior = 0.0, unseen = -1.0986122886681098, likelihoods = HashMap.fromList [("", 0.0)], n = 1}, koData = ClassData{prior = -infinity, uns...
263,736
false
true
0
15
128,697
43,525
27,146
16,379
null
null
liuyang1/euler
Sudoku.hs
mit
minimumOn f xs = minimumBy (\x y -> compare (f x) (f y)) xs
59
minimumOn f xs = minimumBy (\x y -> compare (f x) (f y)) xs
59
minimumOn f xs = minimumBy (\x y -> compare (f x) (f y)) xs
59
false
false
0
10
13
43
21
22
null
null
Blaisorblade/Haskell-Adaptive
Control/Monad/Adaptive.hs
bsd-3-clause
readMod (Mo (r,chg,es)) = do start <- inAd stepTime cont $ \k -> do let reader = do readRef r >>= k now <- readCurrentTime mapRef ((reader,start,now):) es reader
219
readMod (Mo (r,chg,es)) = do start <- inAd stepTime cont $ \k -> do let reader = do readRef r >>= k now <- readCurrentTime mapRef ((reader,start,now):) es reader
219
readMod (Mo (r,chg,es)) = do start <- inAd stepTime cont $ \k -> do let reader = do readRef r >>= k now <- readCurrentTime mapRef ((reader,start,now):) es reader
219
false
false
0
18
86
96
47
49
null
null
eeight/haskell-mms
src/Foreign/Mms/Put.hs
bsd-3-clause
modifyWrittenSoFar :: (Int64 -> Int64) -> PutState -> PutState modifyWrittenSoFar f s = s{writtenSoFar = f $ writtenSoFar s}
124
modifyWrittenSoFar :: (Int64 -> Int64) -> PutState -> PutState modifyWrittenSoFar f s = s{writtenSoFar = f $ writtenSoFar s}
124
modifyWrittenSoFar f s = s{writtenSoFar = f $ writtenSoFar s}
61
false
true
0
8
18
46
24
22
null
null
tolysz/prepare-ghcjs
spec-lts8/cabal/Cabal/Distribution/PackageDescription/Check.hs
bsd-3-clause
checkBenchmark :: PackageDescription -> Benchmark -> [PackageCheck] checkBenchmark _pkg bm = catMaybes [ case benchmarkInterface bm of BenchmarkUnsupported tt@(BenchmarkTypeUnknown _ _) -> Just $ PackageBuildWarning $ quote (display tt) ++ " is not a known type of benchmark. " ...
1,448
checkBenchmark :: PackageDescription -> Benchmark -> [PackageCheck] checkBenchmark _pkg bm = catMaybes [ case benchmarkInterface bm of BenchmarkUnsupported tt@(BenchmarkTypeUnknown _ _) -> Just $ PackageBuildWarning $ quote (display tt) ++ " is not a known type of benchmark. " ...
1,448
checkBenchmark _pkg bm = catMaybes [ case benchmarkInterface bm of BenchmarkUnsupported tt@(BenchmarkTypeUnknown _ _) -> Just $ PackageBuildWarning $ quote (display tt) ++ " is not a known type of benchmark. " ++ "The known benchmark types are: " ++ commaSep (map di...
1,380
false
true
0
15
378
285
141
144
null
null
phi16/ASCIIize
Display.hs
gpl-3.0
disp e@(Frac le re) y ~(_,Child2 ls@((lt,lb,_),_) rs@((rt,rb,_),_)) = let (vl@((tl,bl,wl),_),sl) = disp le (y-1+lb) ls (vr@((tr,br,wr),_),sr) = disp re (y+1+rt) rs top = tl-bl+1 bot = br-tr-1 wid = max wl wr + 2 sl' = widen wid wl sl sr' = widen wid wr sr s = str $ replicate wid '-' ...
413
disp e@(Frac le re) y ~(_,Child2 ls@((lt,lb,_),_) rs@((rt,rb,_),_)) = let (vl@((tl,bl,wl),_),sl) = disp le (y-1+lb) ls (vr@((tr,br,wr),_),sr) = disp re (y+1+rt) rs top = tl-bl+1 bot = br-tr-1 wid = max wl wr + 2 sl' = widen wid wl sl sr' = widen wid wr sr s = str $ replicate wid '-' ...
413
disp e@(Frac le re) y ~(_,Child2 ls@((lt,lb,_),_) rs@((rt,rb,_),_)) = let (vl@((tl,bl,wl),_),sl) = disp le (y-1+lb) ls (vr@((tr,br,wr),_),sr) = disp re (y+1+rt) rs top = tl-bl+1 bot = br-tr-1 wid = max wl wr + 2 sl' = widen wid wl sl sr' = widen wid wr sr s = str $ replicate wid '-' ...
413
false
false
1
14
113
316
174
142
null
null
jbracker/supermonad-plugin
src/Control/Super/Plugin/Wrapper.hs
bsd-3-clause
baseUnitId = M.baseUnitId
25
baseUnitId = M.baseUnitId
25
baseUnitId = M.baseUnitId
25
false
false
0
5
2
8
4
4
null
null
oldmanmike/ghc
compiler/cmm/CmmUtils.hs
bsd-3-clause
primElemRepCmmType FloatElemRep = f32
38
primElemRepCmmType FloatElemRep = f32
38
primElemRepCmmType FloatElemRep = f32
38
false
false
0
5
4
9
4
5
null
null
haskellGardener/transient
src/Transient/Base.hs
gpl-3.0
-- | deinvert an event handler. The first parameter is the event handler to be deinverted -- the second is the value to return to the event handler -- it configures the event handler by calling the first parameter, that set the event -- handler, with the current continuation react :: Typeable eventdata => EventSett...
881
react :: Typeable eventdata => EventSetter eventdata response -> ToReturn response -> TransientIO eventdata react setHandler iob= Transient $ do cont <- getCont mEvData <- getSessionData case mEvData of Nothing -> do liftIO $ setHandler $ \dat ->do -- ...
605
react setHandler iob= Transient $ do cont <- getCont mEvData <- getSessionData case mEvData of Nothing -> do liftIO $ setHandler $ \dat ->do -- let cont'= cont{mfData = M.insert (typeOf dat)(unsafeCoerce dat) (mfData cont)} runStateT (setSData ...
488
true
true
0
21
245
155
71
84
null
null
JohnLato/iteratee
bench/BenchBase.hs
bsd-3-clause
group1 = id1 "group split" (I.joinI $ (I.group 24 ><> I.mapStream LL.length) I.length)
86
group1 = id1 "group split" (I.joinI $ (I.group 24 ><> I.mapStream LL.length) I.length)
86
group1 = id1 "group split" (I.joinI $ (I.group 24 ><> I.mapStream LL.length) I.length)
86
false
false
1
12
12
49
21
28
null
null
sonyandy/unify
src/Control/Monad/Trans/Ref/Integer.hs
bsd-3-clause
newRef :: Monad m => a -> RefSupplyT s m (Ref s a) newRef a = do S {..} <- get put S { refCount = refCount + 1 , refMap = Map.insert refCount (unsafeCoerce a) refMap } return $ Ref refCount
211
newRef :: Monad m => a -> RefSupplyT s m (Ref s a) newRef a = do S {..} <- get put S { refCount = refCount + 1 , refMap = Map.insert refCount (unsafeCoerce a) refMap } return $ Ref refCount
211
newRef a = do S {..} <- get put S { refCount = refCount + 1 , refMap = Map.insert refCount (unsafeCoerce a) refMap } return $ Ref refCount
160
false
true
0
13
63
107
50
57
null
null
WraithM/LambdaCalc
src/Eval.hs
bsd-3-clause
-- | Get a list of variable names in an expression. I should get only free variables. getVars :: Exp -> [String] getVars (Parens e) = getVars e
143
getVars :: Exp -> [String] getVars (Parens e) = getVars e
57
getVars (Parens e) = getVars e
30
true
true
0
7
27
31
16
15
null
null
jfischoff/modulespection
tests/SomeTypes.hs
bsd-3-clause
someFunction :: String -> String someFunction x = show ONE ++ x
63
someFunction :: String -> String someFunction x = show ONE ++ x
63
someFunction x = show ONE ++ x
30
false
true
2
7
11
32
13
19
null
null
Gabriel439/Haskell-Dhall-Library
dhall/src/Dhall/Lint.hs
bsd-3-clause
{-| Automatically improve a Dhall expression Currently this: * removes unused @let@ bindings with 'removeUnusedBindings'. * fixes @let a = x ≡ y@ to be @let a = assert : x ≡ y@ * consolidates nested @let@ bindings to use a multiple-@let@ binding with 'removeLetInLet' * fixes paths of the form @.\/...
739
lint :: Eq s => Expr s Import -> Expr s Import lint = Dhall.Optics.rewriteOf subExpressions rewrite where rewrite e = fixAssert e <|> removeUnusedBindings e <|> fixParentPath e <|> removeLetInLet e <|> addPreludeExtensions e ...
394
lint = Dhall.Optics.rewriteOf subExpressions rewrite where rewrite e = fixAssert e <|> removeUnusedBindings e <|> fixParentPath e <|> removeLetInLet e <|> addPreludeExtensions e <|> sortImports e -- | Re...
347
true
true
0
10
237
90
42
48
null
null
vrom911/hs-init
summoner-cli/src/Summoner/CLI.hs
mit
-- to put custom footer which doesn't cut all spaces modifyFooter :: ParserInfo a -> ParserInfo a modifyFooter p = p {infoFooter = stringChunk $ toString artFooter}
164
modifyFooter :: ParserInfo a -> ParserInfo a modifyFooter p = p {infoFooter = stringChunk $ toString artFooter}
111
modifyFooter p = p {infoFooter = stringChunk $ toString artFooter}
66
true
true
0
8
26
40
20
20
null
null
stackbuilders/dotenv-hs
src/Configuration/Dotenv/Parse.hs
mit
-- | Space consumer. Consumes all white space including comments, but never -- consumes newlines. sc :: Parser () sc = L.space (void spaceChar') skipLineComment empty
166
sc :: Parser () sc = L.space (void spaceChar') skipLineComment empty
68
sc = L.space (void spaceChar') skipLineComment empty
52
true
true
1
7
25
36
17
19
null
null
j-rock/4hire
src/SDL/Run.hs
mit
runWithContext :: ScreenInfo -> InitialState a -> IterateStateFunc IO a -> IO () runWithContext ScreenInfo{..} initialState iterator = let initialize = SDL.initialize [SDL.InitVideo] setupRenderQuality = do SDL.HintRenderScaleQuality $= SDL.ScaleLinear renderQuality <- SDL.g...
1,391
runWithContext :: ScreenInfo -> InitialState a -> IterateStateFunc IO a -> IO () runWithContext ScreenInfo{..} initialState iterator = let initialize = SDL.initialize [SDL.InitVideo] setupRenderQuality = do SDL.HintRenderScaleQuality $= SDL.ScaleLinear renderQuality <- SDL.g...
1,391
runWithContext ScreenInfo{..} initialState iterator = let initialize = SDL.initialize [SDL.InitVideo] setupRenderQuality = do SDL.HintRenderScaleQuality $= SDL.ScaleLinear renderQuality <- SDL.get SDL.HintRenderScaleQuality when (renderQuality...
1,310
false
true
2
15
488
348
158
190
null
null
keithodulaigh/Hets
Syntax/Parse_AS_Library.hs
gpl-2.0
libItems :: LogicGraph -> AParser st [Annoted LIB_ITEM] libItems l = (eof >> return []) <|> do r <- libItem l la <- lineAnnos (l', an) <- lGAnnos l is <- libItems (case r of Logic_decl logD _ -> setLogicName logD l' _ -> l') case is of ...
486
libItems :: LogicGraph -> AParser st [Annoted LIB_ITEM] libItems l = (eof >> return []) <|> do r <- libItem l la <- lineAnnos (l', an) <- lGAnnos l is <- libItems (case r of Logic_decl logD _ -> setLogicName logD l' _ -> l') case is of ...
486
libItems l = (eof >> return []) <|> do r <- libItem l la <- lineAnnos (l', an) <- lGAnnos l is <- libItems (case r of Logic_decl logD _ -> setLogicName logD l' _ -> l') case is of [] -> return [Annoted r nullRange [] $ la ++ an] ...
430
false
true
3
16
191
218
103
115
null
null
mpickering/HaRe
src/Language/Haskell/Refact/Utils/GhcModuleGraph.hs
bsd-3-clause
mapCatMaybes :: (a -> Maybe b) -> [a] -> [b] mapCatMaybes _ [] = []
67
mapCatMaybes :: (a -> Maybe b) -> [a] -> [b] mapCatMaybes _ [] = []
67
mapCatMaybes _ [] = []
22
false
true
0
8
14
44
23
21
null
null
kbiscanic/PUH
lectures/puh-lecture6.hs
mit
-- Exercise 1.2 index = zip [0..]
33
index = zip [0..]
17
index = zip [0..]
17
true
false
0
6
6
13
7
6
null
null
mindriot101/pandoc
src/Text/Pandoc/Writers/Man.hs
gpl-2.0
orderedListItemToMan opts num indent ((Para first):rest) = orderedListItemToMan opts num indent ((Plain first):rest)
118
orderedListItemToMan opts num indent ((Para first):rest) = orderedListItemToMan opts num indent ((Plain first):rest)
118
orderedListItemToMan opts num indent ((Para first):rest) = orderedListItemToMan opts num indent ((Plain first):rest)
118
false
false
0
9
14
50
25
25
null
null
rueshyna/gogol
gogol-dataflow/gen/Network/Google/Dataflow/Types/Product.hs
mpl-2.0
-- | Specifies the level of parallelism in case it is finite. rpValue :: Lens' ReportedParallelism (Maybe Double) rpValue = lens _rpValue (\ s a -> s{_rpValue = a}) . mapping _Coerce
190
rpValue :: Lens' ReportedParallelism (Maybe Double) rpValue = lens _rpValue (\ s a -> s{_rpValue = a}) . mapping _Coerce
128
rpValue = lens _rpValue (\ s a -> s{_rpValue = a}) . mapping _Coerce
76
true
true
1
9
39
59
28
31
null
null
CindyLinz/Haskell.js
trans/src/Desugar/LambdaCase.hs
mit
deLambdaCaseType (TyTuple l boxed type0) = TyTuple (id l) (deLambdaCaseBoxed boxed) (fmap (deLambdaCaseType) type0)
115
deLambdaCaseType (TyTuple l boxed type0) = TyTuple (id l) (deLambdaCaseBoxed boxed) (fmap (deLambdaCaseType) type0)
115
deLambdaCaseType (TyTuple l boxed type0) = TyTuple (id l) (deLambdaCaseBoxed boxed) (fmap (deLambdaCaseType) type0)
115
false
false
0
8
13
49
24
25
null
null
mtesseract/wosa
src/Nebelfiller/GUIHelpers.hs
bsd-3-clause
guiError :: Window -> String -> String -> IO () guiError = guiPopup True
72
guiError :: Window -> String -> String -> IO () guiError = guiPopup True
72
guiError = guiPopup True
24
false
true
0
9
13
31
15
16
null
null
nomeata/cryptonite
tests/KAT_Curve25519.hs
bsd-3-clause
aliceMultBob = "\x4a\x5d\x9d\x5b\xa4\xce\x2d\xe1\x72\x8e\x3b\xf4\x80\x35\x0f\x25\xe0\x7e\x21\xc9\x47\xd1\x9e\x33\x76\xf0\x9b\x3c\x1e\x16\x17\x42" :: ByteString
159
aliceMultBob = "\x4a\x5d\x9d\x5b\xa4\xce\x2d\xe1\x72\x8e\x3b\xf4\x80\x35\x0f\x25\xe0\x7e\x21\xc9\x47\xd1\x9e\x33\x76\xf0\x9b\x3c\x1e\x16\x17\x42" :: ByteString
159
aliceMultBob = "\x4a\x5d\x9d\x5b\xa4\xce\x2d\xe1\x72\x8e\x3b\xf4\x80\x35\x0f\x25\xe0\x7e\x21\xc9\x47\xd1\x9e\x33\x76\xf0\x9b\x3c\x1e\x16\x17\x42" :: ByteString
159
false
false
0
4
4
9
5
4
null
null
bflyblue/parse-quote
Main.hs
unlicense
dumpPretty :: (MonadIO m, Pretty a) => Conduit a m a dumpPretty = CL.mapM $ \a -> do liftIO . putStrLn . pretty $ a return a
132
dumpPretty :: (MonadIO m, Pretty a) => Conduit a m a dumpPretty = CL.mapM $ \a -> do liftIO . putStrLn . pretty $ a return a
132
dumpPretty = CL.mapM $ \a -> do liftIO . putStrLn . pretty $ a return a
79
false
true
2
11
34
72
33
39
null
null
robstewart57/hdph-rs
src/Control/Parallel/HdpH/Internal/IVar.hs
bsd-3-clause
freeNow :: GRef a -> IO () freeNow ref = do refIsLocal <- isLocal ref unless refIsLocal $ error $ "HdpH.Internal.GRef.freeNow: " ++ show ref ++ " not local" debug dbgGRef $ "GRef.freeNow " ++ show ref atomicModifyIORef regRef (deleteEntry $ slot ref) -- Create new entry in 'reg' (hosted on 'node') mapping...
343
freeNow :: GRef a -> IO () freeNow ref = do refIsLocal <- isLocal ref unless refIsLocal $ error $ "HdpH.Internal.GRef.freeNow: " ++ show ref ++ " not local" debug dbgGRef $ "GRef.freeNow " ++ show ref atomicModifyIORef regRef (deleteEntry $ slot ref) -- Create new entry in 'reg' (hosted on 'node') mapping...
343
freeNow ref = do refIsLocal <- isLocal ref unless refIsLocal $ error $ "HdpH.Internal.GRef.freeNow: " ++ show ref ++ " not local" debug dbgGRef $ "GRef.freeNow " ++ show ref atomicModifyIORef regRef (deleteEntry $ slot ref) -- Create new entry in 'reg' (hosted on 'node') mapping to 'val'; not exported
316
false
true
0
11
70
97
43
54
null
null
d3sformal/bacon-core
test/RecPdr.hs
mit
inv :: Proof D -> LiaDomain Progress inv = return . either (const . Finished $ Fail "unexpected counterexample") (const . Finished $ Pass)
138
inv :: Proof D -> LiaDomain Progress inv = return . either (const . Finished $ Fail "unexpected counterexample") (const . Finished $ Pass)
138
inv = return . either (const . Finished $ Fail "unexpected counterexample") (const . Finished $ Pass)
101
false
true
1
8
23
62
28
34
null
null
afcowie/new-snap-server
src/Snap/Internal/Http/Server/Config.hs
bsd-3-clause
setSSLKey :: FilePath -> Config m a -> Config m a setSSLKey x c = c { sslkey = Just x }
110
setSSLKey :: FilePath -> Config m a -> Config m a setSSLKey x c = c { sslkey = Just x }
110
setSSLKey x c = c { sslkey = Just x }
37
false
true
0
8
44
46
22
24
null
null
gcampax/ghc
compiler/coreSyn/CoreUtils.hs
bsd-3-clause
-- Polymorphic in binder type -- There is one call at a non-Id binder type, in SetLevels expr_ok :: (PrimOp -> Bool) -> Expr b -> Bool expr_ok _ (Lit _) = True
167
expr_ok :: (PrimOp -> Bool) -> Expr b -> Bool expr_ok _ (Lit _) = True
75
expr_ok _ (Lit _) = True
29
true
true
0
7
40
42
22
20
null
null
denisshevchenko/breadu.info
src/lib/BreadU/Pages/Content/Errors/Messages.hs
mit
foodUnknownNameErrorTitle :: LangCode -> Text foodUnknownNameErrorTitle Ru = "Неизвестный продукт"
98
foodUnknownNameErrorTitle :: LangCode -> Text foodUnknownNameErrorTitle Ru = "Неизвестный продукт"
98
foodUnknownNameErrorTitle Ru = "Неизвестный продукт"
52
false
true
0
5
9
18
9
9
null
null
brodyberg/Notes
ProjectRosalind.hsproj/LearnHaskell/lib/ProjectRosalind/Motif/ExpressionParsing.hs
mit
r = regularParse (spanned glycosylation) "NRTX"
47
r = regularParse (spanned glycosylation) "NRTX"
47
r = regularParse (spanned glycosylation) "NRTX"
47
false
false
1
7
5
20
8
12
null
null
pikajude/melvin
src/Melvin/Client/Packet.hs
mit
rplTopicWhoTime :: Text -> Text -> Text -> Text -> Packet rplTopicWhoTime user channel setter time = Packet hostname "333" [user, channel, setter, time]
160
rplTopicWhoTime :: Text -> Text -> Text -> Text -> Packet rplTopicWhoTime user channel setter time = Packet hostname "333" [user, channel, setter, time]
160
rplTopicWhoTime user channel setter time = Packet hostname "333" [user, channel, setter, time]
102
false
true
0
8
31
55
29
26
null
null
danr/hipspec
testsuite/prod/zeno_version/PropT48.hs
gpl-3.0
drop _ [] = []
22
drop _ [] = []
22
drop _ [] = []
22
false
false
0
6
12
19
8
11
null
null
adnelson/nix-eval
src/Nix/Values/Lazy.hs
mit
-- | Run an evaluator action, and return either an error or a result. run :: Eval m a -> m (Either EvalError a) run = runExceptT . runEval
138
run :: Eval m a -> m (Either EvalError a) run = runExceptT . runEval
68
run = runExceptT . runEval
26
true
true
1
9
28
43
19
24
null
null
alanz/Alex
src/AbsSyn.hs
bsd-3-clause
wrapperName :: Scheme -> Maybe String wrapperName Default {} = Nothing
70
wrapperName :: Scheme -> Maybe String wrapperName Default {} = Nothing
70
wrapperName Default {} = Nothing
32
false
true
2
4
10
24
13
11
null
null
drets/scheme-haskell-48h
src/Scheme/Eval.hs
bsd-3-clause
concatStrs :: [LispValue] -> String concatStrs [] = ""
70
concatStrs :: [LispValue] -> String concatStrs [] = ""
70
concatStrs [] = ""
34
false
true
0
6
24
23
12
11
null
null
ComputationWithBoundedResources/ara-inference
doc/tpdb_trs/Haskell/basic_haskell/enumFromTo_2.hs
mit
primCmpInt (Pos Zero) (Neg Zero) = EQ
37
primCmpInt (Pos Zero) (Neg Zero) = EQ
37
primCmpInt (Pos Zero) (Neg Zero) = EQ
37
false
false
0
7
6
23
11
12
null
null
authchir/SoSe17-FFP-haskell-http2-server
src/HuffmanTH.hs
gpl-3.0
table' :: Num a => [(Word8, (Word32,a))] table' = [ ( 0, (0x00001ff8, 13)), ( 1, (0x007fffd8, 23)), ( 2, (0x0fffffe2, 28)), ( 3, (0x0fffffe3, 28)), ( 4, (0x0fffffe4, 28)), ( 5, (0x0fffffe5, 28)), ( 6, (0x0fffffe6, 28)), ( 7, (0x0fffffe7, 28)), ( 8, (0x0fffffe8, 28)), ( 9, (0x00ffffea, 24))...
6,966
table' :: Num a => [(Word8, (Word32,a))] table' = [ ( 0, (0x00001ff8, 13)), ( 1, (0x007fffd8, 23)), ( 2, (0x0fffffe2, 28)), ( 3, (0x0fffffe3, 28)), ( 4, (0x0fffffe4, 28)), ( 5, (0x0fffffe5, 28)), ( 6, (0x0fffffe6, 28)), ( 7, (0x0fffffe7, 28)), ( 8, (0x0fffffe8, 28)), ( 9, (0x00ffffea, 24))...
6,966
table' = [ ( 0, (0x00001ff8, 13)), ( 1, (0x007fffd8, 23)), ( 2, (0x0fffffe2, 28)), ( 3, (0x0fffffe3, 28)), ( 4, (0x0fffffe4, 28)), ( 5, (0x0fffffe5, 28)), ( 6, (0x0fffffe6, 28)), ( 7, (0x0fffffe7, 28)), ( 8, (0x0fffffe8, 28)), ( 9, (0x00ffffea, 24)), ( 10, (0x3ffffffc, 30)), ( 11, (0x0...
6,925
false
true
0
10
1,476
3,880
2,580
1,300
null
null
nickbart1980/pandoc
src/Text/Pandoc/Readers/LaTeX.hs
gpl-2.0
breve 'o' = "ŏ"
15
breve 'o' = "ŏ"
15
breve 'o' = "ŏ"
15
false
false
0
5
3
9
4
5
null
null
GaloisInc/pads-haskell
Language/Pads/Library/BigEndian.hs
bsd-3-clause
bToi32sbh p (bs,md) = (bytesToInt32 SBH bs, md)
47
bToi32sbh p (bs,md) = (bytesToInt32 SBH bs, md)
47
bToi32sbh p (bs,md) = (bytesToInt32 SBH bs, md)
47
false
false
0
6
7
30
15
15
null
null
Proclivis/wxHaskell
wxcore/src/haskell/Graphics/UI/WXCore/WxcDefs.hs
lgpl-2.1
wxLANGUAGE_DUTCH_BELGIAN :: Int wxLANGUAGE_DUTCH_BELGIAN = 55
61
wxLANGUAGE_DUTCH_BELGIAN :: Int wxLANGUAGE_DUTCH_BELGIAN = 55
61
wxLANGUAGE_DUTCH_BELGIAN = 55
29
false
true
0
4
5
11
6
5
null
null
iankronquist/riemann
src/Lexer.hs
mit
identifier :: Parser String identifier = Tok.identifier lexer
61
identifier :: Parser String identifier = Tok.identifier lexer
61
identifier = Tok.identifier lexer
33
false
true
0
6
7
19
9
10
null
null
stu-smith/project-euler-haskell
Euler-040.hs
mit
main = print $ product $ map (\c -> read [c] :: Int) extractedDigits
68
main = print $ product $ map (\c -> read [c] :: Int) extractedDigits
68
main = print $ product $ map (\c -> read [c] :: Int) extractedDigits
68
false
false
5
9
13
41
19
22
null
null
Pitometsu/bake
src/General/BigString.hs
bsd-3-clause
bigStringWithString :: NFData a => BigString -> (String -> a) -> a bigStringWithString (Memory x) op = let res = op $ T.unpack x in rnf res `seq` res
149
bigStringWithString :: NFData a => BigString -> (String -> a) -> a bigStringWithString (Memory x) op = let res = op $ T.unpack x in rnf res `seq` res
149
bigStringWithString (Memory x) op = let res = op $ T.unpack x in rnf res `seq` res
82
false
true
0
11
28
73
36
37
null
null
wavewave/madgraph-auto-dataset
src/HEP/Automation/MadGraph/Dataset/Processes.hs
gpl-3.0
preDefProcess :: Process -> [Char] preDefProcess TTBar = "\ngenerate P P > t t~ QED=99\n"
95
preDefProcess :: Process -> [Char] preDefProcess TTBar = "\ngenerate P P > t t~ QED=99\n"
95
preDefProcess TTBar = "\ngenerate P P > t t~ QED=99\n"
60
false
true
0
6
20
21
11
10
null
null
ksaveljev/chip-8-emulator
Chip8/Emulator.hs
mit
loadInstruction :: MonadEmulator m => m Instruction loadInstruction = decodeInstruction <$> loadNextWord
104
loadInstruction :: MonadEmulator m => m Instruction loadInstruction = decodeInstruction <$> loadNextWord
104
loadInstruction = decodeInstruction <$> loadNextWord
52
false
true
0
7
11
31
13
18
null
null
NorfairKing/the-notes
src/Cryptography/SystemAlgebra/Graph.hs
gpl-2.0
renderSystem s@(Merges ss) = cluster_ (T.filter (/= ' ') $ name s) $ do nis <- concat <$> mapM renderSystem ss let ls = map fst nis if ((length $ nub ls) == (length ls)) then return nis else error "Label sets of systems must be disjunct"
257
renderSystem s@(Merges ss) = cluster_ (T.filter (/= ' ') $ name s) $ do nis <- concat <$> mapM renderSystem ss let ls = map fst nis if ((length $ nub ls) == (length ls)) then return nis else error "Label sets of systems must be disjunct"
257
renderSystem s@(Merges ss) = cluster_ (T.filter (/= ' ') $ name s) $ do nis <- concat <$> mapM renderSystem ss let ls = map fst nis if ((length $ nub ls) == (length ls)) then return nis else error "Label sets of systems must be disjunct"
257
false
false
0
13
66
114
55
59
null
null
spechub/Hets
DFOL/Colimit.hs
gpl-2.0
addSig sig maps doneSyms rel ((i, Sign ds) : sigs) = processSig sig maps Map.empty i (expandDecls ds) doneSyms rel sigs
121
addSig sig maps doneSyms rel ((i, Sign ds) : sigs) = processSig sig maps Map.empty i (expandDecls ds) doneSyms rel sigs
121
addSig sig maps doneSyms rel ((i, Sign ds) : sigs) = processSig sig maps Map.empty i (expandDecls ds) doneSyms rel sigs
121
false
false
0
9
22
58
29
29
null
null
timerg/parser
data/Mainold.hs
bsd-3-clause
eg = pack "140.113.210.41"
26
eg = pack "140.113.210.41"
26
eg = pack "140.113.210.41"
26
false
false
1
5
3
13
4
9
null
null
suhailshergill/liboleg
Data/FDList.hs
bsd-3-clause
-- [5,1,2,3,4,5,1,2,3,4,5] testl_l = takeDLrev 11 testl
55
testl_l = takeDLrev 11 testl
28
testl_l = takeDLrev 11 testl
28
true
false
1
5
6
17
6
11
null
null
apvanzanten/learningMeAHaskell
test.hs
gpl-3.0
moveMinToBack' :: (Ord a) => [a] -> [a] moveMinToBack' [] = []
62
moveMinToBack' :: (Ord a) => [a] -> [a] moveMinToBack' [] = []
62
moveMinToBack' [] = []
22
false
true
0
7
11
37
20
17
null
null
AlexanderPankiv/ghc
compiler/deSugar/DsUtils.hs
bsd-3-clause
combineMatchResults :: MatchResult -> MatchResult -> MatchResult combineMatchResults (MatchResult CanFail body_fn1) (MatchResult can_it_fail2 body_fn2) = MatchResult can_it_fail2 body_fn where body_fn fail = do body2 <- body_fn2 fail (fail_bind, duplicatable_expr) ...
451
combineMatchResults :: MatchResult -> MatchResult -> MatchResult combineMatchResults (MatchResult CanFail body_fn1) (MatchResult can_it_fail2 body_fn2) = MatchResult can_it_fail2 body_fn where body_fn fail = do body2 <- body_fn2 fail (fail_bind, duplicatable_expr) ...
451
combineMatchResults (MatchResult CanFail body_fn1) (MatchResult can_it_fail2 body_fn2) = MatchResult can_it_fail2 body_fn where body_fn fail = do body2 <- body_fn2 fail (fail_bind, duplicatable_expr) <- mkFailurePair body2 body1 <- body_fn1 du...
386
false
true
0
9
138
105
49
56
null
null
tidalcycles/Tidal
bin/params-header.hs
gpl-3.0
drumN "sh" = 82
15
drumN "sh" = 82
15
drumN "sh" = 82
15
false
false
0
4
3
10
4
6
null
null
jvilar/hrows
lib/Model/Expression/Parser.hs
gpl-2.0
-- |Check if the current token is equal to the one given. check :: Token -> Parser Bool check t = (== t) <$> current
116
check :: Token -> Parser Bool check t = (== t) <$> current
58
check t = (== t) <$> current
28
true
true
2
7
24
36
17
19
null
null
Concomitant/LambdaHack
Game/LambdaHack/Atomic/PosAtomicRead.hs
bsd-3-clause
singleContainer (CTrunk fid lid p) = return $! PosFidAndSight [fid] lid [p]
75
singleContainer (CTrunk fid lid p) = return $! PosFidAndSight [fid] lid [p]
75
singleContainer (CTrunk fid lid p) = return $! PosFidAndSight [fid] lid [p]
75
false
false
0
7
11
36
18
18
null
null
jspahrsummers/network
Network/URI.hs
bsd-3-clause
-- RFC3986, section 3.2.3 port :: URIParser String port = do { char ':' ; p <- many digitChar ; return (':':p) }
143
port :: URIParser String port = do { char ':' ; p <- many digitChar ; return (':':p) }
115
port = do { char ':' ; p <- many digitChar ; return (':':p) }
90
true
true
1
10
53
52
24
28
null
null
mcschroeder/ghc
compiler/types/Type.hs
bsd-3-clause
eqRelRole ReprEq = Representational
35
eqRelRole ReprEq = Representational
35
eqRelRole ReprEq = Representational
35
false
false
1
5
3
13
4
9
null
null
tanaka-de-silva/bears-io
app/FreeMonadExample.hs
bsd-3-clause
fromTable :: (Ord k, MonadFree (QueryF k v) f) => TableMeta k v -> GroupBy k f v fromTable (TableMeta ref keys) = GroupBy { _keys = Some keys , _lookup = lookupTable ref }
185
fromTable :: (Ord k, MonadFree (QueryF k v) f) => TableMeta k v -> GroupBy k f v fromTable (TableMeta ref keys) = GroupBy { _keys = Some keys , _lookup = lookupTable ref }
185
fromTable (TableMeta ref keys) = GroupBy { _keys = Some keys , _lookup = lookupTable ref }
104
false
true
0
8
48
83
42
41
null
null
Frefreak/hnem
src/Operations.hs
bsd-3-clause
getMusicsUrl :: Int -> Int -> (Log -> [AlbumDetail]) -> ST.StateT Log IO [(String, Scientific)] getMusicsUrl start total func = do opt <- ST.gets _option ad <- ST.gets func let picks = map (\n -> snd $ ad !! n) [start..total] r <- lift $ postToServer queryMusicUrl opt (v picks) return $ r ^.. respon...
591
getMusicsUrl :: Int -> Int -> (Log -> [AlbumDetail]) -> ST.StateT Log IO [(String, Scientific)] getMusicsUrl start total func = do opt <- ST.gets _option ad <- ST.gets func let picks = map (\n -> snd $ ad !! n) [start..total] r <- lift $ postToServer queryMusicUrl opt (v picks) return $ r ^.. respon...
591
getMusicsUrl start total func = do opt <- ST.gets _option ad <- ST.gets func let picks = map (\n -> snd $ ad !! n) [start..total] r <- lift $ postToServer queryMusicUrl opt (v picks) return $ r ^.. responseBody . key "data" . _Array . traverse . to ( \o -> (unpack $ o ^. ...
495
false
true
0
14
188
257
128
129
null
null
ygorshenin/icfp2016
core/Geom.hs
bsd-3-clause
sidePointLine :: (Fractional a, Ord a) => Point a -> Line a -> Integer sidePointLine p (Line o d) | cr == 0 = 0 | cr > 0 = 1 | otherwise = -1 where cr = (p `sub` o) `cross` d
237
sidePointLine :: (Fractional a, Ord a) => Point a -> Line a -> Integer sidePointLine p (Line o d) | cr == 0 = 0 | cr > 0 = 1 | otherwise = -1 where cr = (p `sub` o) `cross` d
237
sidePointLine p (Line o d) | cr == 0 = 0 | cr > 0 = 1 | otherwise = -1 where cr = (p `sub` o) `cross` d
166
false
true
0
8
105
110
55
55
null
null
noughtmare/yi
yi-keymap-vim/src/Yi/Keymap/Vim/Digraph.hs
gpl-2.0
-- GREEK SMALL LETTER PI switch 'r' '*' = '\x03C1'
50
switch 'r' '*' = '\x03C1'
25
switch 'r' '*' = '\x03C1'
25
true
false
0
5
9
12
6
6
null
null
Chiel92/ants
simulation/ReadInstructions.hs
gpl-2.0
readInstructions :: String -> IO AntInstructions readInstructions antFile = do input <- readFile antFile let list = map (fst . stringToInstruction) (lines (map toUpper input)) len = length list arr <- newListArray (0, len-1) list if len > 10000 then error ("Too many states: " ++...
358
readInstructions :: String -> IO AntInstructions readInstructions antFile = do input <- readFile antFile let list = map (fst . stringToInstruction) (lines (map toUpper input)) len = length list arr <- newListArray (0, len-1) list if len > 10000 then error ("Too many states: " ++...
358
readInstructions antFile = do input <- readFile antFile let list = map (fst . stringToInstruction) (lines (map toUpper input)) len = length list arr <- newListArray (0, len-1) list if len > 10000 then error ("Too many states: " ++ show antFile) else return arr
309
false
true
0
14
99
127
61
66
null
null
acowley/DistanceTransform
src/DistanceTransform/Internal/Indexer.hs
bsd-3-clause
-- | Computes the stride between rows at the currently focused -- dimension. This involves stepping over the rest of the current row -- along all nested dimensions. zipStride (Zip _ x rs) = product $ x:rs
204
zipStride (Zip _ x rs) = product $ x:rs
39
zipStride (Zip _ x rs) = product $ x:rs
39
true
false
0
7
36
30
16
14
null
null
urbanslug/ghc
compiler/typecheck/TcRnTypes.hs
bsd-3-clause
pprPECategory :: PromotionErr -> SDoc pprPECategory ClassPE = ptext (sLit "Class")
87
pprPECategory :: PromotionErr -> SDoc pprPECategory ClassPE = ptext (sLit "Class")
87
pprPECategory ClassPE = ptext (sLit "Class")
49
false
true
0
7
15
27
13
14
null
null
ekmett/wxHaskell
wxcore/src/haskell/Graphics/UI/WXCore/WxcDefs.hs
lgpl-2.1
wxEXEC_MAKE_GROUP_LEADER :: BitFlag wxEXEC_MAKE_GROUP_LEADER = 4
64
wxEXEC_MAKE_GROUP_LEADER :: BitFlag wxEXEC_MAKE_GROUP_LEADER = 4
64
wxEXEC_MAKE_GROUP_LEADER = 4
28
false
true
0
6
5
18
7
11
null
null
urbanslug/ghc
compiler/llvmGen/Llvm/PpLlvm.hs
bsd-3-clause
newLine :: SDoc newLine = empty
31
newLine :: SDoc newLine = empty
31
newLine = empty
15
false
true
0
6
5
18
7
11
null
null
leshchevds/ganeti
test/hs/htest.hs
bsd-2-clause
-- | Our default test options, overring the built-in test-framework -- ones (but not the supplied command line parameters). defOpts :: TestOptions defOpts = TestOptions { topt_seed = Nothing , topt_maximum_generated_tests = Just 500 , topt_maximum_unsuitable...
534
defOpts :: TestOptions defOpts = TestOptions { topt_seed = Nothing , topt_maximum_generated_tests = Just 500 , topt_maximum_unsuitable_generated_tests = Just 5000 , topt_maximum_test_size = Nothing , topt_maximum_test_depth ...
410
defOpts = TestOptions { topt_seed = Nothing , topt_maximum_generated_tests = Just 500 , topt_maximum_unsuitable_generated_tests = Just 5000 , topt_maximum_test_size = Nothing , topt_maximum_test_depth = Nothing ...
387
true
true
0
7
201
57
35
22
null
null
joelburget/frankenstein
src/Planetary/Core/Typecheck.hs
bsd-3-clause
lookupCommandTy :: Cid -> Row -> TcM' CommandDeclarationI lookupCommandTy uid row = asks (^? typingInterfaces . ix uid . commands . ix row) >>= (?? LookupCommandTy)
170
lookupCommandTy :: Cid -> Row -> TcM' CommandDeclarationI lookupCommandTy uid row = asks (^? typingInterfaces . ix uid . commands . ix row) >>= (?? LookupCommandTy)
170
lookupCommandTy uid row = asks (^? typingInterfaces . ix uid . commands . ix row) >>= (?? LookupCommandTy)
112
false
true
2
10
31
63
31
32
null
null
atomb/dalvik
Dalvik/Parser.hs
bsd-3-clause
parseByteCode :: Word8 -> Get DebugInstruction parseByteCode bc | fromIntegral bc < fromEnum DBG_FIRST_SPECIAL = case toEnum (fromIntegral bc) of DBG_END_SEQUENCE -> return EndSequence DBG_ADVANCE_PC -> AdvancePC <$> getULEB128 DBG_ADVANCE_LINE -> AdvanceLine <$> getSLEB128 DBG_START_LOCAL...
886
parseByteCode :: Word8 -> Get DebugInstruction parseByteCode bc | fromIntegral bc < fromEnum DBG_FIRST_SPECIAL = case toEnum (fromIntegral bc) of DBG_END_SEQUENCE -> return EndSequence DBG_ADVANCE_PC -> AdvancePC <$> getULEB128 DBG_ADVANCE_LINE -> AdvanceLine <$> getSLEB128 DBG_START_LOCAL...
886
parseByteCode bc | fromIntegral bc < fromEnum DBG_FIRST_SPECIAL = case toEnum (fromIntegral bc) of DBG_END_SEQUENCE -> return EndSequence DBG_ADVANCE_PC -> AdvancePC <$> getULEB128 DBG_ADVANCE_LINE -> AdvanceLine <$> getSLEB128 DBG_START_LOCAL -> StartLocal <$> getULEB128 <*> getUL...
839
false
true
1
12
202
193
91
102
null
null
mainland/nikola
src/Data/Array/Nikola/Backend/C/Codegen.hs
bsd-3-clause
compileFun :: Dialect -> Context -> Context -> String -> [(Var, Type)] -> Type -> C CExp -> C CExp compileFun dialect callerCtx calleeCtx fname vtaus tau_ret mbody = do (ps, body) <- inNewFunction $ extendParams vtaus $ d...
1,582
compileFun :: Dialect -> Context -> Context -> String -> [(Var, Type)] -> Type -> C CExp -> C CExp compileFun dialect callerCtx calleeCtx fname vtaus tau_ret mbody = do (ps, body) <- inNewFunction $ extendParams vtaus $ d...
1,582
compileFun dialect callerCtx calleeCtx fname vtaus tau_ret mbody = do (ps, body) <- inNewFunction $ extendParams vtaus $ do cresult <- mbody if returnResultsByReference dialect callerCtx calleeCtx tau_ret then do cvresult <- toCResultParam ...
1,406
false
true
0
16
515
354
199
155
null
null
Mahdi89/eTeak
src/Teak.hs
bsd-3-clause
makeMerge pos m signals = do width <- nwGetLinkWidth $ head signals link <- nwNewLinkRef width m pos signals link return link
157
makeMerge pos m signals = do width <- nwGetLinkWidth $ head signals link <- nwNewLinkRef width m pos signals link return link
157
makeMerge pos m signals = do width <- nwGetLinkWidth $ head signals link <- nwNewLinkRef width m pos signals link return link
157
false
false
0
9
53
53
22
31
null
null
dino-r/TexErupter
src/ParseHTML.hs
mit
extractTex :: [Tag] -> [String] extractTex [] = []
50
extractTex :: [Tag] -> [String] extractTex [] = []
50
extractTex [] = []
18
false
true
0
6
8
28
15
13
null
null
jtdaugherty/vty-ui-builder-xml
src/Graphics/Vty/Widgets/Builder/Reader/XML/TH.hs
bsd-3-clause
xmlUiFile :: QuasiQuoter xmlUiFile = quoteFile xmlUi
52
xmlUiFile :: QuasiQuoter xmlUiFile = quoteFile xmlUi
52
xmlUiFile = quoteFile xmlUi
27
false
true
0
5
6
14
7
7
null
null
flowbox-public/accelerate-cuda
Data/Array/Accelerate/CUDA/CodeGen/Type.hs
bsd-3-clause
cIntegralType (TypeCLong _) = [cty|long int|]
47
cIntegralType (TypeCLong _) = [cty|long int|]
47
cIntegralType (TypeCLong _) = [cty|long int|]
47
false
false
0
7
7
19
11
8
null
null
keera-studios/hsQt
Qtc/Enums/Gui/QSizePolicy.hs
bsd-2-clause
eDefaultType :: ControlType eDefaultType = ieControlType $ 1
62
eDefaultType :: ControlType eDefaultType = ieControlType $ 1
62
eDefaultType = ieControlType $ 1
34
false
true
2
6
9
23
9
14
null
null
Fedjmike/ngen
german.hs
gpl-3.0
nflect = addSuffix "er" em
26
erInflect = addSuffix "er"
26
erInflect = addSuffix "er"
26
false
false
1
5
4
16
5
11
null
null
nevrenato/Hets_Fork
Comorphisms/test/sublogicGraph.hs
gpl-2.0
testInj_mapSublogic :: (Comorphism cid lid1 sublogics1 basic_spec1 sentence1 symb_items1 symb_map_items1 sign1 morphism1 symbol1 raw_symbol1 proof_tree1 lid2 sublogics2 basic_spec2 sentence2 symb_items2 symb_map_items2 sign2 morphism2 symbol2 raw_symbol2 proof_tre...
507
testInj_mapSublogic :: (Comorphism cid lid1 sublogics1 basic_spec1 sentence1 symb_items1 symb_map_items1 sign1 morphism1 symbol1 raw_symbol1 proof_tree1 lid2 sublogics2 basic_spec2 sentence2 symb_items2 symb_map_items2 sign2 morphism2 symbol2 raw_symbol2 proof_tre...
507
testInj_mapSublogic cid = all (`elem` all_sublogics (targetLogic cid)) $ mapMaybe (mapSublogic cid) $ all_sublogics $ sourceLogic cid
149
false
true
0
12
137
113
57
56
null
null
d-strickland/dailyprogrammer
haskell/src/DailyProgrammer/BowlingScore.hs
gpl-3.0
frameScore StrikeFrame StrikeFrame (Frame r1 _) = 20 + rollScore r1
67
frameScore StrikeFrame StrikeFrame (Frame r1 _) = 20 + rollScore r1
67
frameScore StrikeFrame StrikeFrame (Frame r1 _) = 20 + rollScore r1
67
false
false
0
7
10
31
13
18
null
null
avh4/elm-format
elm-format-lib/src/Parse/Whitespace.hs
bsd-3-clause
docComment :: IParser String docComment = do _ <- try (string "{-|") _ <- many (string " ") closeComment False
125
docComment :: IParser String docComment = do _ <- try (string "{-|") _ <- many (string " ") closeComment False
125
docComment = do _ <- try (string "{-|") _ <- many (string " ") closeComment False
96
false
true
0
10
34
52
23
29
null
null
mzini/gubs
src/GUBS/Term.hs
mit
funsDL Const {} = id
20
funsDL Const {} = id
20
funsDL Const {} = id
20
false
false
0
6
4
13
6
7
null
null
daleooo/barrelfish
hake/RuleDefs.hs
mit
-- Standard convention is that human generated assembler is .S, machine generated is .s assemblerFilePath :: Options -> String -> String assemblerFilePath opts src = (optSuffix opts) ./. ((removeSuffix src) ++ ".s")
215
assemblerFilePath :: Options -> String -> String assemblerFilePath opts src = (optSuffix opts) ./. ((removeSuffix src) ++ ".s")
127
assemblerFilePath opts src = (optSuffix opts) ./. ((removeSuffix src) ++ ".s")
78
true
true
0
9
31
48
25
23
null
null
dzeban/haskell-exercises
hw4/HW04.hs
mit
fun2 n | even n = n + fun2 (n `div` 2) | otherwise = fun2 (3 * n + 1)
81
fun2 n | even n = n + fun2 (n `div` 2) | otherwise = fun2 (3 * n + 1)
81
fun2 n | even n = n + fun2 (n `div` 2) | otherwise = fun2 (3 * n + 1)
81
false
false
0
9
32
57
27
30
null
null
ctford/Idris-Elba-dev
src/Idris/ElabTerm.hs
bsd-3-clause
reflectBinder (Guess x y) = reflCall "Guess" [Var (reflm "TT"), reflect x, reflect y]
88
reflectBinder (Guess x y) = reflCall "Guess" [Var (reflm "TT"), reflect x, reflect y]
88
reflectBinder (Guess x y) = reflCall "Guess" [Var (reflm "TT"), reflect x, reflect y]
88
false
false
0
9
16
46
22
24
null
null
kvelicka/frag
src/BSP.hs
gpl-2.0
-- Stores the faces for the level kFaces :: Int kFaces = 13
61
kFaces :: Int kFaces = 13
25
kFaces = 13
11
true
true
0
6
14
19
8
11
null
null