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
exercism/xhaskell
exercises/practice/forth/.meta/examples/success-standard/src/Forth.hs
mit
emptyState :: ForthState emptyState = ForthState { forthStack = [] , forthCode = [] , forthWords = defaultWords }
138
emptyState :: ForthState emptyState = ForthState { forthStack = [] , forthCode = [] , forthWords = defaultWords }
138
emptyState = ForthState { forthStack = [] , forthCode = [] , forthWords = defaultWords }
113
false
true
0
7
43
35
21
14
null
null
forflo/gCodeMusic
gcode_music.hs
gpl-3.0
evalMusicSheet (BeginTransposed amount sheet) preferences = generateGCode (transposeSheet sheet amount) preferences
117
evalMusicSheet (BeginTransposed amount sheet) preferences = generateGCode (transposeSheet sheet amount) preferences
117
evalMusicSheet (BeginTransposed amount sheet) preferences = generateGCode (transposeSheet sheet amount) preferences
117
false
false
0
7
12
32
15
17
null
null
fmapfmapfmap/amazonka
amazonka-redshift/gen/Network/AWS/Redshift/DescribeClusterSubnetGroups.hs
mpl-2.0
-- | Creates a value of 'DescribeClusterSubnetGroupsResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'dcsgrsClusterSubnetGroups' -- -- * 'dcsgrsMarker' -- -- * 'dcsgrsResponseStatus' describeClusterSubnetGroupsResponse :: ...
616
describeClusterSubnetGroupsResponse :: Int -- ^ 'dcsgrsResponseStatus' -> DescribeClusterSubnetGroupsResponse describeClusterSubnetGroupsResponse pResponseStatus_ = DescribeClusterSubnetGroupsResponse' { _dcsgrsClusterSubnetGroups = Nothing , _dcsgrsMarker = Nothing , _dcsgrsResponseStatus = pRe...
339
describeClusterSubnetGroupsResponse pResponseStatus_ = DescribeClusterSubnetGroupsResponse' { _dcsgrsClusterSubnetGroups = Nothing , _dcsgrsMarker = Nothing , _dcsgrsResponseStatus = pResponseStatus_ }
221
true
true
0
7
94
57
34
23
null
null
icyfork/shellcheck
ShellCheck/Analytics.hs
gpl-3.0
checkUnassignedReferences params t = warnings where (readMap, writeMap) = execState (mapM tally $ variableFlow params) (Map.empty, Map.empty) defaultAssigned = Map.fromList $ map (\a -> (a, ())) $ filter (not . null) internalVariables tally (Assignment (_, _, name, _)) = modify (\(read, written)...
2,807
checkUnassignedReferences params t = warnings where (readMap, writeMap) = execState (mapM tally $ variableFlow params) (Map.empty, Map.empty) defaultAssigned = Map.fromList $ map (\a -> (a, ())) $ filter (not . null) internalVariables tally (Assignment (_, _, name, _)) = modify (\(read, written)...
2,807
checkUnassignedReferences params t = warnings where (readMap, writeMap) = execState (mapM tally $ variableFlow params) (Map.empty, Map.empty) defaultAssigned = Map.fromList $ map (\a -> (a, ())) $ filter (not . null) internalVariables tally (Assignment (_, _, name, _)) = modify (\(read, written)...
2,807
false
false
18
15
840
946
459
487
null
null
lpeterse/koka
src/Common/NamePrim.hs
apache-2.0
nameDict = newName "std/dict"
36
nameDict = newName "std/dict"
36
nameDict = newName "std/dict"
36
false
false
0
5
10
9
4
5
null
null
timtylin/scholdoc-texmath
src/Text/TeXMath/Readers/TeX/Macros.hs
gpl-2.0
pMacroDefinition :: GenParser Char st Macro pMacroDefinition = newcommand <|> declareMathOperator
97
pMacroDefinition :: GenParser Char st Macro pMacroDefinition = newcommand <|> declareMathOperator
97
pMacroDefinition = newcommand <|> declareMathOperator
53
false
true
0
5
10
22
11
11
null
null
rzetterberg/alven
src/lib/Plugin/Auth/Email.hs
mit
getRegisterR = registerHandler
30
getRegisterR = registerHandler
30
getRegisterR = registerHandler
30
false
false
0
4
2
6
3
3
null
null
kyren/hsgb
lib/Gameboy/CPU.hs
unlicense
doInstruction (INC_R reg) = do v <- getRegister reg let (res, h, _) = add8 v 1 setFlags (Just (res == 0)) (Just False) (Just h) Nothing setRegister reg res tick 4
172
doInstruction (INC_R reg) = do v <- getRegister reg let (res, h, _) = add8 v 1 setFlags (Just (res == 0)) (Just False) (Just h) Nothing setRegister reg res tick 4
172
doInstruction (INC_R reg) = do v <- getRegister reg let (res, h, _) = add8 v 1 setFlags (Just (res == 0)) (Just False) (Just h) Nothing setRegister reg res tick 4
172
false
false
0
11
41
100
46
54
null
null
urbanslug/ghc
compiler/typecheck/TcGenDeriv.hs
bsd-3-clause
and_Expr :: LHsExpr RdrName -> LHsExpr RdrName -> LHsExpr RdrName and_Expr a b = genOpApp a and_RDR b
104
and_Expr :: LHsExpr RdrName -> LHsExpr RdrName -> LHsExpr RdrName and_Expr a b = genOpApp a and_RDR b
104
and_Expr a b = genOpApp a and_RDR b
38
false
true
0
8
20
44
19
25
null
null
phaazon/OpenGLRaw
src/Graphics/Rendering/OpenGL/Raw/Tokens.hs
bsd-3-clause
gl_TEXTURE_RECTANGLE :: GLenum gl_TEXTURE_RECTANGLE = 0x84F5
60
gl_TEXTURE_RECTANGLE :: GLenum gl_TEXTURE_RECTANGLE = 0x84F5
60
gl_TEXTURE_RECTANGLE = 0x84F5
29
false
true
0
4
5
11
6
5
null
null
mathologist/CTYCrypto
Ciphers.hs
gpl-3.0
rotor3 :: Rotor rotor3 = Rotor "BDFHJLCPRTXVZNYEIWGAKMUSQO" 0 0
63
rotor3 :: Rotor rotor3 = Rotor "BDFHJLCPRTXVZNYEIWGAKMUSQO" 0 0
63
rotor3 = Rotor "BDFHJLCPRTXVZNYEIWGAKMUSQO" 0 0
47
false
true
0
5
8
18
9
9
null
null
beni55/pandoc
src/Text/Pandoc/Writers/Docbook.hs
gpl-2.0
inlineToDocbook opts (Strong lst) = inTags False "emphasis" [("role", "strong")] $ inlinesToDocbook opts lst
111
inlineToDocbook opts (Strong lst) = inTags False "emphasis" [("role", "strong")] $ inlinesToDocbook opts lst
111
inlineToDocbook opts (Strong lst) = inTags False "emphasis" [("role", "strong")] $ inlinesToDocbook opts lst
111
false
false
0
7
16
46
21
25
null
null
thoughtpolice/binary-serialise-cbor
Data/Binary/Serialise/CBOR/Decoding.hs
bsd-3-clause
decodeStringIndef :: Decoder () decodeStringIndef = Decoder (\k -> ConsumeStringIndef (k ()))
93
decodeStringIndef :: Decoder () decodeStringIndef = Decoder (\k -> ConsumeStringIndef (k ()))
93
decodeStringIndef = Decoder (\k -> ConsumeStringIndef (k ()))
61
false
true
0
11
11
38
19
19
null
null
Philonous/simple-xmpp-client
src/Main.hs
mit
chPresence sess = let statusChoices = [ ("Available" , XMPP.Available ) , ("Away" , XMPP.Away ) , ("FreeChat" , XMPP.FreeChat ) , ("DND" , XMPP.DND ) , ("XAway" , XMPP...
608
chPresence sess = let statusChoices = [ ("Available" , XMPP.Available ) , ("Away" , XMPP.Away ) , ("FreeChat" , XMPP.FreeChat ) , ("DND" , XMPP.DND ) , ("XAway" , XMPP...
608
chPresence sess = let statusChoices = [ ("Available" , XMPP.Available ) , ("Away" , XMPP.Away ) , ("FreeChat" , XMPP.FreeChat ) , ("DND" , XMPP.DND ) , ("XAway" , XMPP...
608
false
false
2
15
282
167
86
81
null
null
vikraman/ghc
compiler/main/DynFlags.hs
bsd-3-clause
extraGccViaCFlags :: DynFlags -> [String] extraGccViaCFlags dflags = sExtraGccViaCFlags (settings dflags)
109
extraGccViaCFlags :: DynFlags -> [String] extraGccViaCFlags dflags = sExtraGccViaCFlags (settings dflags)
109
extraGccViaCFlags dflags = sExtraGccViaCFlags (settings dflags)
63
false
true
0
8
14
35
16
19
null
null
brendanhay/gogol
gogol-apps-reseller/gen/Network/Google/AppsReseller/Types/Product.hs
mpl-2.0
-- | The \`subscriptionId\` is the subscription identifier and is unique for -- each customer. This is a required property. Since a \`subscriptionId\` -- changes when a subscription is updated, we recommend not using this ID -- as a key for persistent data. Use the \`subscriptionId\` as described in -- retrieve all res...
482
subSubscriptionId :: Lens' Subscription (Maybe Text) subSubscriptionId = lens _subSubscriptionId (\ s a -> s{_subSubscriptionId = a})
141
subSubscriptionId = lens _subSubscriptionId (\ s a -> s{_subSubscriptionId = a})
88
true
true
0
9
78
52
29
23
null
null
wavewave/gnuplot
src/Graphics/Gnuplot/Frame/OptionSet/Style.hs
bsd-3-clause
fillBorderLineType :: Graph.C graph => Int -> T graph -> T graph fillBorderLineType n = OptionSet.add Option.styleFillBorder ["border", show n]
146
fillBorderLineType :: Graph.C graph => Int -> T graph -> T graph fillBorderLineType n = OptionSet.add Option.styleFillBorder ["border", show n]
146
fillBorderLineType n = OptionSet.add Option.styleFillBorder ["border", show n]
81
false
true
0
8
22
55
26
29
null
null
frantisekfarka/ghc-dsi
compiler/utils/BooleanFormula.hs
bsd-3-clause
implies :: Eq a => BooleanFormula a -> BooleanFormula a -> Bool x `implies` Var y = x `impliesAtom` y
102
implies :: Eq a => BooleanFormula a -> BooleanFormula a -> Bool x `implies` Var y = x `impliesAtom` y
102
x `implies` Var y = x `impliesAtom` y
38
false
true
0
8
20
49
24
25
null
null
arybczak/happstack-server
src/Happstack/Server/Internal/Monads.hs
bsd-3-clause
-- | What is this for, exactly? I don't understand why @Show a@ is -- even in the context Deprecated: This function appears to do nothing -- at all. If it use it, let us know why. debugFilter :: (MonadIO m, Show a) => ServerPartT m a -> ServerPartT m a debugFilter handle = withRequest $ \rq -> do ...
382
debugFilter :: (MonadIO m, Show a) => ServerPartT m a -> ServerPartT m a debugFilter handle = withRequest $ \rq -> do r <- runServerPartT handle rq return r
201
debugFilter handle = withRequest $ \rq -> do r <- runServerPartT handle rq return r
128
true
true
0
10
111
76
37
39
null
null
mit-plv/riscv-semantics
src/Spec/ExecuteF.hs
bsd-3-clause
runFPBinary :: (RiscvMachine p t) => (RoundingMode -> Word32 -> Word32 -> F32Result) -> RoundingMode -> Int32 -> Int32 -> p Int32 runFPBinary f roundMode x y = do let Result z flags = f roundMode (fromIntegral x) (fromIntegral y) updateFFlags flags if (invalid flags) then return canonicalNaN else return...
337
runFPBinary :: (RiscvMachine p t) => (RoundingMode -> Word32 -> Word32 -> F32Result) -> RoundingMode -> Int32 -> Int32 -> p Int32 runFPBinary f roundMode x y = do let Result z flags = f roundMode (fromIntegral x) (fromIntegral y) updateFFlags flags if (invalid flags) then return canonicalNaN else return...
337
runFPBinary f roundMode x y = do let Result z flags = f roundMode (fromIntegral x) (fromIntegral y) updateFFlags flags if (invalid flags) then return canonicalNaN else return (fromIntegral z)
207
false
true
0
13
67
139
65
74
null
null
nikita-volkov/remotion
htf-test-suite/HTFTestSuite/CommunicationTests.hs
mit
test_multipleHittersOnTooManyConnectionsStillGetSurved = do assertEqual (Right $ replicate 10 $ Left $ C.ServerIsBusy) =<< do runServer serverSettings $ do As.withAsync (runClient clientSettings $ liftIO $ threadDelay $ 10^3*100) $ \_ -> As.withAsync (runClient clientSettings $ liftIO $ threadDelay...
561
test_multipleHittersOnTooManyConnectionsStillGetSurved = do assertEqual (Right $ replicate 10 $ Left $ C.ServerIsBusy) =<< do runServer serverSettings $ do As.withAsync (runClient clientSettings $ liftIO $ threadDelay $ 10^3*100) $ \_ -> As.withAsync (runClient clientSettings $ liftIO $ threadDelay...
561
test_multipleHittersOnTooManyConnectionsStillGetSurved = do assertEqual (Right $ replicate 10 $ Left $ C.ServerIsBusy) =<< do runServer serverSettings $ do As.withAsync (runClient clientSettings $ liftIO $ threadDelay $ 10^3*100) $ \_ -> As.withAsync (runClient clientSettings $ liftIO $ threadDelay...
561
false
false
1
23
120
212
103
109
null
null
np/lens
src/Control/Lens/At.hs
bsd-3-clause
ixAt :: (Indexable (IxKey m) p, Applicative f, At m) => IxKey m -> IndexedLensLike' p f m (IxValue m) ixAt i = at i <. traverse
127
ixAt :: (Indexable (IxKey m) p, Applicative f, At m) => IxKey m -> IndexedLensLike' p f m (IxValue m) ixAt i = at i <. traverse
127
ixAt i = at i <. traverse
25
false
true
2
10
26
78
36
42
null
null
Koshroy/kokona
src/Fortune.hs
bsd-3-clause
fortuneEmitter :: SlackMessage -> IO Text fortuneEmitter cmd = do (_, hOutM, _, p) <- createProcess (shell "fortune") { std_out = CreatePipe } case hOutM of Nothing -> do waitForProcess p return "" Just hOut -> do fortune <- hGetContents hOut let payload = slackPayloadWithChannel (ch...
400
fortuneEmitter :: SlackMessage -> IO Text fortuneEmitter cmd = do (_, hOutM, _, p) <- createProcess (shell "fortune") { std_out = CreatePipe } case hOutM of Nothing -> do waitForProcess p return "" Just hOut -> do fortune <- hGetContents hOut let payload = slackPayloadWithChannel (ch...
400
fortuneEmitter cmd = do (_, hOutM, _, p) <- createProcess (shell "fortune") { std_out = CreatePipe } case hOutM of Nothing -> do waitForProcess p return "" Just hOut -> do fortune <- hGetContents hOut let payload = slackPayloadWithChannel (channel cmd) fortune hClose hOut ...
358
false
true
0
17
107
139
63
76
null
null
noinia/hsync-server
src/HSync/Server/Handler/API.hs
bsd-3-clause
reportError_ :: Monad m => Text -> m Value reportError_ = pure . toJSON . reportError
85
reportError_ :: Monad m => Text -> m Value reportError_ = pure . toJSON . reportError
85
reportError_ = pure . toJSON . reportError
42
false
true
2
8
15
41
17
24
null
null
hairyhum/Popka
ParseMidi.hs
mit
atom_type (Music.Atom _ (Just (RhyMusic.Note { body = RhyMusic.Drum _}))) = Drum
80
atom_type (Music.Atom _ (Just (RhyMusic.Note { body = RhyMusic.Drum _}))) = Drum
80
atom_type (Music.Atom _ (Just (RhyMusic.Note { body = RhyMusic.Drum _}))) = Drum
80
false
false
0
14
11
45
22
23
null
null
ulikoehler/ProjectEuler
Euler63.hs
apache-2.0
t2lt (a, b) = a < b
19
t2lt (a, b) = a < b
19
t2lt (a, b) = a < b
19
false
false
0
6
6
19
10
9
null
null
Hi-Angel/yi
yi-core/src/Yi/MiniBuffer.hs
gpl-2.0
-- | Prints out the rope of the current buffer as-is to stdout. -- -- The only way to stop it is to close the buffer in question which -- should free up the 'BufferRef'. debugBufferContent :: YiM () debugBufferContent = promptingForBuffer "buffer to trace:" debugBufferContentUsing (\_ x -> x)
314
debugBufferContent :: YiM () debugBufferContent = promptingForBuffer "buffer to trace:" debugBufferContentUsing (\_ x -> x)
144
debugBufferContent = promptingForBuffer "buffer to trace:" debugBufferContentUsing (\_ x -> x)
115
true
true
0
7
70
37
21
16
null
null
ComputationWithBoundedResources/ara-inference
doc/tpdb_trs/Haskell/basic_haskell/notElem_6.hs
mit
and :: (List MyBool) -> MyBool; and = foldr asAs MyTrue
57
and :: (List MyBool) -> MyBool and = foldr asAs MyTrue
56
and = foldr asAs MyTrue
23
false
true
1
7
12
33
15
18
null
null
parsonsmatt/lambda
src/Lambda/Untyped/Eval/Free.hs
bsd-3-clause
int :: Integer -> Either a (Free f (Literal a1)) int = fmap Right Types.int
75
int :: Integer -> Either a (Free f (Literal a1)) int = fmap Right Types.int
75
int = fmap Right Types.int
26
false
true
0
11
14
46
21
25
null
null
CindyLinz/Haskell.js
trans/src/Desugar/String.hs
mit
deStringFunDep :: FunDep l -> FunDep l deStringFunDep (FunDep l name1 name2) = FunDep (id l) (fmap (deStringName) name1) (fmap (deStringName) name2)
148
deStringFunDep :: FunDep l -> FunDep l deStringFunDep (FunDep l name1 name2) = FunDep (id l) (fmap (deStringName) name1) (fmap (deStringName) name2)
148
deStringFunDep (FunDep l name1 name2) = FunDep (id l) (fmap (deStringName) name1) (fmap (deStringName) name2)
109
false
true
0
8
21
69
34
35
null
null
sdiehl/ghc
compiler/prelude/PrimOp.hs
bsd-3-clause
primOpInfo _ = error "primOpInfo: unknown primop"
49
primOpInfo _ = error "primOpInfo: unknown primop"
49
primOpInfo _ = error "primOpInfo: unknown primop"
49
false
false
0
5
6
12
5
7
null
null
maoe/kc
Kc.hs
bsd-3-clause
runApp :: App a -> AppConf -> IO a runApp a = runReaderT (runA a) . fillInFiles where fillInFiles (AppConf m v) | files m == [] = AppConf (m { files = ["/etc/keepalived/keepalived.conf"] }) v | otherwise = AppConf m v -- * App implementations
319
runApp :: App a -> AppConf -> IO a runApp a = runReaderT (runA a) . fillInFiles where fillInFiles (AppConf m v) | files m == [] = AppConf (m { files = ["/etc/keepalived/keepalived.conf"] }) v | otherwise = AppConf m v -- * App implementations
319
runApp a = runReaderT (runA a) . fillInFiles where fillInFiles (AppConf m v) | files m == [] = AppConf (m { files = ["/etc/keepalived/keepalived.conf"] }) v | otherwise = AppConf m v -- * App implementations
284
false
true
1
9
122
119
54
65
null
null
antonlogvinenko/javelin
src/Javelin/Lib/ByteCode/Attribute.hs
mit
bootstrapMethodsAttr len = BootstrapMethods <$> several (BootstrapMethod <$> Get.getWord16be <*> several Get.getWord16be)
125
bootstrapMethodsAttr len = BootstrapMethods <$> several (BootstrapMethod <$> Get.getWord16be <*> several Get.getWord16be)
125
bootstrapMethodsAttr len = BootstrapMethods <$> several (BootstrapMethod <$> Get.getWord16be <*> several Get.getWord16be)
125
false
false
0
8
15
34
16
18
null
null
mitochon/hexercise
src/haskellbook/ch23/ch23.five.hs
mit
exec :: State s a -> s -> s exec (State sa) = snd . sa
54
exec :: State s a -> s -> s exec (State sa) = snd . sa
54
exec (State sa) = snd . sa
26
false
true
0
7
15
37
18
19
null
null
ghcjs/jsaddle-dom
src/JSDOM/Generated/HTMLScriptElement.hs
mit
-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement.crossOrigin Mozilla HTMLScriptElement.crossOrigin documentation> getCrossOriginUnsafe :: (MonadDOM m, HasCallStack, FromJSString result) => HTMLScriptElement -> m result getCrossOriginUnsafe self = li...
446
getCrossOriginUnsafe :: (MonadDOM m, HasCallStack, FromJSString result) => HTMLScriptElement -> m result getCrossOriginUnsafe self = liftDOM (((self ^. js "crossOrigin") >>= fromMaybeJSString) >>= maybe (Prelude.error "Nothing to return") return)
307
getCrossOriginUnsafe self = liftDOM (((self ^. js "crossOrigin") >>= fromMaybeJSString) >>= maybe (Prelude.error "Nothing to return") return)
158
true
true
0
11
96
81
41
40
null
null
spechub/Hets
OMDoc/DataTypes.hs
gpl-2.0
cdToList _ = ["", ""]
21
cdToList _ = ["", ""]
21
cdToList _ = ["", ""]
21
false
false
0
5
4
15
8
7
null
null
tolysz/yesod
yesod-core/Yesod/Core/Class/Yesod.hs
mit
right _ = Nothing
17
right _ = Nothing
17
right _ = Nothing
17
false
false
0
5
3
9
4
5
null
null
YoEight/eventstore
Database/EventStore/Internal.hs
bsd-3-clause
-------------------------------------------------------------------------------- -- | Reads events from a stream backward. readEventsBackward :: Connection -> StreamId t -> t -> Int32 -- ^ Batch size -> ResolveLink -> Ma...
441
readEventsBackward :: Connection -> StreamId t -> t -> Int32 -- ^ Batch size -> ResolveLink -> Maybe Credentials -> IO (Async (BatchResult t)) readEventsBackward conn = readEventsCommon conn Backward
318
readEventsBackward conn = readEventsCommon conn Backward
56
true
true
0
16
157
71
34
37
null
null
felixsch/xdg
src/System/Environment/XDG/Internal/Ini.hs
gpl-3.0
pIndex :: Parser String pIndex = between (string "[") (string "]") (many $ noneOf "]")
90
pIndex :: Parser String pIndex = between (string "[") (string "]") (many $ noneOf "]")
90
pIndex = between (string "[") (string "]") (many $ noneOf "]")
66
false
true
0
8
18
43
21
22
null
null
JoseD92/EasyGL
src/EasyGL/Camera.hs
bsd-3-clause
rollCamera :: GLdouble -> Camera3D -> Camera3D rollCamera roll (Camera3D mat x y z fovy aspect zNear zFar) = Camera3D newMat x y z fovy aspect zNear zFar where newMat = Mat.multStd (rollMatrix roll) mat
211
rollCamera :: GLdouble -> Camera3D -> Camera3D rollCamera roll (Camera3D mat x y z fovy aspect zNear zFar) = Camera3D newMat x y z fovy aspect zNear zFar where newMat = Mat.multStd (rollMatrix roll) mat
210
rollCamera roll (Camera3D mat x y z fovy aspect zNear zFar) = Camera3D newMat x y z fovy aspect zNear zFar where newMat = Mat.multStd (rollMatrix roll) mat
163
false
true
0
7
43
82
40
42
null
null
expipiplus1/vulkan
generate-new/src/Spec/APIConstant.hs
bsd-3-clause
sizeof :: RE Char CName sizeof = CName . T.pack <$> ("sizeof" *> parens (many (psym (isAlphaNum <||> (== '_')))))
125
sizeof :: RE Char CName sizeof = CName . T.pack <$> ("sizeof" *> parens (many (psym (isAlphaNum <||> (== '_')))))
125
sizeof = CName . T.pack <$> ("sizeof" *> parens (many (psym (isAlphaNum <||> (== '_')))))
101
false
true
3
15
31
62
31
31
null
null
krystalcode/bloodhound
src/Database/Bloodhound/Types.hs
bsd-3-clause
fieldTagged :: Monad m => (FieldName -> Object -> m a) -> Object -> m a fieldTagged f o = case HM.toList o of [(k, Object o')] -> f (FieldName k) o' _ -> fail "Expected object with 1 field-named key"
239
fieldTagged :: Monad m => (FieldName -> Object -> m a) -> Object -> m a fieldTagged f o = case HM.toList o of [(k, Object o')] -> f (FieldName k) o' _ -> fail "Expected object with 1 field-named key"
239
fieldTagged f o = case HM.toList o of [(k, Object o')] -> f (FieldName k) o' _ -> fail "Expected object with 1 field-named key"
167
false
true
0
10
80
95
46
49
null
null
ezyang/ghc
testsuite/tests/gadt/while.hs
bsd-3-clause
exec (Declare e body) s = store where (_,store) = (exec body (eval e s,s))
76
exec (Declare e body) s = store where (_,store) = (exec body (eval e s,s))
76
exec (Declare e body) s = store where (_,store) = (exec body (eval e s,s))
76
false
false
1
9
16
58
27
31
null
null
AngelitoJ/HsDynamics
src/Gaussian.hs
bsd-3-clause
parseEigenData :: MyParser () [EigenBLock] parseEigenData = do let eigenLabel = "EIGENVALUES AND EIGENVECTORS OF CI MATRIX" configurations = "NO OF BASIS FUNCTIONS =" manyTill anyChar (try $ string configurations) cs <- fromInteger `fmap`(spaces >> integerNumber) manyTill anyChar (try $ stri...
451
parseEigenData :: MyParser () [EigenBLock] parseEigenData = do let eigenLabel = "EIGENVALUES AND EIGENVECTORS OF CI MATRIX" configurations = "NO OF BASIS FUNCTIONS =" manyTill anyChar (try $ string configurations) cs <- fromInteger `fmap`(spaces >> integerNumber) manyTill anyChar (try $ stri...
451
parseEigenData = do let eigenLabel = "EIGENVALUES AND EIGENVECTORS OF CI MATRIX" configurations = "NO OF BASIS FUNCTIONS =" manyTill anyChar (try $ string configurations) cs <- fromInteger `fmap`(spaces >> integerNumber) manyTill anyChar (try $ string eigenLabel) manyTill (many1 newline >...
407
false
true
0
10
93
122
59
63
null
null
olsner/ghc
compiler/typecheck/TcRnTypes.hs
bsd-3-clause
eqMayRewriteFR (Derived, NomEq) (Wanted WDeriv, NomEq) = True
67
eqMayRewriteFR (Derived, NomEq) (Wanted WDeriv, NomEq) = True
67
eqMayRewriteFR (Derived, NomEq) (Wanted WDeriv, NomEq) = True
67
false
false
1
7
13
29
14
15
null
null
HIPERFIT/futhark
src/Futhark/IR/Traversals.hs
isc
mapExpM tv (Apply fname args ret loc) = do args' <- forM args $ \(arg, d) -> (,) <$> mapOnSubExp tv arg <*> pure d Apply fname args' <$> mapM (mapOnRetType tv) ret <*> pure loc
184
mapExpM tv (Apply fname args ret loc) = do args' <- forM args $ \(arg, d) -> (,) <$> mapOnSubExp tv arg <*> pure d Apply fname args' <$> mapM (mapOnRetType tv) ret <*> pure loc
184
mapExpM tv (Apply fname args ret loc) = do args' <- forM args $ \(arg, d) -> (,) <$> mapOnSubExp tv arg <*> pure d Apply fname args' <$> mapM (mapOnRetType tv) ret <*> pure loc
184
false
false
0
12
43
98
46
52
null
null
eigengrau/hlint
data/Default.hs
bsd-3-clause
error = x >>= id ==> Control.Monad.join x where _ = noQuickCheck
64
error = x >>= id ==> Control.Monad.join x where _ = noQuickCheck
64
error = x >>= id ==> Control.Monad.join x where _ = noQuickCheck
64
false
false
3
7
11
39
17
22
null
null
AlexanderPankiv/ghc
compiler/basicTypes/DataCon.hs
bsd-3-clause
promoteKind :: Kind -> SuperKind -- Promote the kind of a type constructor -- from (* -> * -> *) to (BOX -> BOX -> BOX) promoteKind (TyConApp tc []) | tc `hasKey` liftedTypeKindTyConKey = superKind
199
promoteKind :: Kind -> SuperKind promoteKind (TyConApp tc []) | tc `hasKey` liftedTypeKindTyConKey = superKind
112
promoteKind (TyConApp tc []) | tc `hasKey` liftedTypeKindTyConKey = superKind
79
true
true
0
10
37
48
23
25
null
null
rahulmutt/ghcvm
compiler/Eta/Main/HscTypes.hs
bsd-3-clause
-- | Get the combined VectInfo of all modules in the home package table. In -- contrast to instances and rules, we don't care whether the modules are -- "below" us in the dependency sense. The VectInfo of those modules not "below" -- us does not affect the compilation of the current module. hptVectInfo :: HscEnv -> Vec...
406
hptVectInfo :: HscEnv -> VectInfo hptVectInfo = concatVectInfo . hptAllThings ((: []) . md_vect_info . hm_details)
114
hptVectInfo = concatVectInfo . hptAllThings ((: []) . md_vect_info . hm_details)
80
true
true
0
11
68
49
26
23
null
null
olsner/ghc
compiler/cmm/CmmLint.hs
bsd-3-clause
-- constant values checkCond _ expr = cmmLintErr (hang (text "expression is not a conditional:") 2 (ppr expr))
139
checkCond _ expr = cmmLintErr (hang (text "expression is not a conditional:") 2 (ppr expr))
120
checkCond _ expr = cmmLintErr (hang (text "expression is not a conditional:") 2 (ppr expr))
120
true
false
0
9
46
37
18
19
null
null
zodiac/websockets
tests/haskell/Network/WebSockets/Handshake/Tests.hs
bsd-3-clause
-------------------------------------------------------------------------------- testHandshakeHybi9000 :: Assertion testHandshakeHybi9000 = do ResponseHead code _ headers <- testHandshake rq9000 $ \pc -> flip handle (acceptRequest pc) $ \e -> case e of NotSupported -> return undefined ...
445
testHandshakeHybi9000 :: Assertion testHandshakeHybi9000 = do ResponseHead code _ headers <- testHandshake rq9000 $ \pc -> flip handle (acceptRequest pc) $ \e -> case e of NotSupported -> return undefined _ -> error $ "Unexpected Exception: " ++ show e code @?= 400 ...
364
testHandshakeHybi9000 = do ResponseHead code _ headers <- testHandshake rq9000 $ \pc -> flip handle (acceptRequest pc) $ \e -> case e of NotSupported -> return undefined _ -> error $ "Unexpected Exception: " ++ show e code @?= 400 headers ! "Sec-WebSocket-Version"...
329
true
true
0
16
104
106
51
55
null
null
alexvong1995/pandoc
src/Text/Pandoc/Readers/Txt2Tags.hs
gpl-2.0
header :: T2T () header = titleline >> authorline >> dateline
61
header :: T2T () header = titleline >> authorline >> dateline
61
header = titleline >> authorline >> dateline
44
false
true
0
6
10
24
12
12
null
null
fmthoma/ghc
compiler/prelude/PrelNames.hs
bsd-3-clause
s1TyConKey = mkPreludeTyConUnique 153
40
s1TyConKey = mkPreludeTyConUnique 153
40
s1TyConKey = mkPreludeTyConUnique 153
40
false
false
0
5
6
9
4
5
null
null
evancz/cli
src/Develop.hs
bsd-3-clause
serveCode :: String -> Snap () serveCode file = do code <- liftIO (readFile file) serveHtml $ Generate.makeCodeHtml ('~' : '/' : file) code -- SERVE ELM
164
serveCode :: String -> Snap () serveCode file = do code <- liftIO (readFile file) serveHtml $ Generate.makeCodeHtml ('~' : '/' : file) code -- SERVE ELM
164
serveCode file = do code <- liftIO (readFile file) serveHtml $ Generate.makeCodeHtml ('~' : '/' : file) code -- SERVE ELM
133
false
true
0
12
38
70
32
38
null
null
valderman/selda
selda-tests/test/Tests/Mutable.hs
mit
autoMigrateNoOp = do autoMigrate True steps res <- query $ do x <- select migrationTable1 order (the x) ascending return x assEq "no-op automigration failed" [1,2,3] res
187
autoMigrateNoOp = do autoMigrate True steps res <- query $ do x <- select migrationTable1 order (the x) ascending return x assEq "no-op automigration failed" [1,2,3] res
187
autoMigrateNoOp = do autoMigrate True steps res <- query $ do x <- select migrationTable1 order (the x) ascending return x assEq "no-op automigration failed" [1,2,3] res
187
false
false
0
13
44
74
33
41
null
null
rolph-recto/liquid-fixpoint
src/Language/Fixpoint/Types/Substitutions.hs
bsd-3-clause
isEmptySubst :: Subst -> Bool isEmptySubst (Su xes) = M.null xes
64
isEmptySubst :: Subst -> Bool isEmptySubst (Su xes) = M.null xes
64
isEmptySubst (Su xes) = M.null xes
34
false
true
0
9
10
35
15
20
null
null
jonathankochems/hs-crypto-cipher
src/Crypto/Blowfish.hs
bsd-3-clause
cipher :: (Pbox, BlowfishContext) -> [Int] -> [Int] cipher (p, bs) b | length b == 0 = [] | length b `mod` 8 /= 0 = error "invalid data length" | otherwise = concat $ doChunks 8 (fromW32Pair . coreCrypto p bs . toW32Pair) b
235
cipher :: (Pbox, BlowfishContext) -> [Int] -> [Int] cipher (p, bs) b | length b == 0 = [] | length b `mod` 8 /= 0 = error "invalid data length" | otherwise = concat $ doChunks 8 (fromW32Pair . coreCrypto p bs . toW32Pair) b
235
cipher (p, bs) b | length b == 0 = [] | length b `mod` 8 /= 0 = error "invalid data length" | otherwise = concat $ doChunks 8 (fromW32Pair . coreCrypto p bs . toW32Pair) b
183
false
true
0
11
57
118
59
59
null
null
nomeata/ghc
compiler/nativeGen/X86/Ppr.hs
bsd-3-clause
pprInstr (IMUL2 sz op) = pprSizeOp (sLit "imul") sz op
55
pprInstr (IMUL2 sz op) = pprSizeOp (sLit "imul") sz op
55
pprInstr (IMUL2 sz op) = pprSizeOp (sLit "imul") sz op
55
false
false
0
7
10
30
14
16
null
null
lukexi/ghc-7.8-arm64
compiler/codeGen/StgCmmClosure.hs
bsd-3-clause
-- Its arity getCallMethod :: DynFlags -> Name -- Function being applied -> Id -- Function Id used to chech if it can refer to -- CAF's and whether the function is tail-calling -- itself ->...
1,379
getCallMethod :: DynFlags -> Name -- Function being applied -> Id -- Function Id used to chech if it can refer to -- CAF's and whether the function is tail-calling -- itself -> LambdaFormInfo ...
1,362
getCallMethod dflags _ id _ n_args _cg_loc (Just (self_loop_id, block_id, args)) | gopt Opt_Loopification dflags, id == self_loop_id, n_args == length args -- If these patterns match then we know that: -- * loopification optimisation is turned on -- * function is performing a self-recursive call in a tail p...
498
true
true
0
12
522
125
70
55
null
null
tjakway/ghcjvm
compiler/prelude/PrelNames.hs
bsd-3-clause
-- Int, Word, and Addr things int8TyConName, int16TyConName, int32TyConName, int64TyConName :: Name int8TyConName = tcQual gHC_INT (fsLit "Int8") int8TyConKey
164
int8TyConName, int16TyConName, int32TyConName, int64TyConName :: Name int8TyConName = tcQual gHC_INT (fsLit "Int8") int8TyConKey
134
int8TyConName = tcQual gHC_INT (fsLit "Int8") int8TyConKey
64
true
true
0
7
24
31
19
12
null
null
PeterBeard/project-euler
haskell/src/problem-004.hs
gpl-2.0
-- Take the last digit of an integer and make it the first invertDigit :: Int -> Int invertDigit n = (mod n 10) * (10 ^ numDigits(n))
133
invertDigit :: Int -> Int invertDigit n = (mod n 10) * (10 ^ numDigits(n))
74
invertDigit n = (mod n 10) * (10 ^ numDigits(n))
48
true
true
1
9
27
51
24
27
null
null
andir/ganeti
src/Ganeti/HTools/Program/Hspace.hs
bsd-2-clause
-- | Optionally print the allocation map. printAllocationMap :: Int -> String -> Node.List -> [Instance.Instance] -> IO () printAllocationMap verbose msg nl ixes = when (verbose > 1) $ do hPutStrLn stderr (msg ++ " map") hPutStr stderr . unlines . map ((:) ' ' . unwords) $ form...
673
printAllocationMap :: Int -> String -> Node.List -> [Instance.Instance] -> IO () printAllocationMap verbose msg nl ixes = when (verbose > 1) $ do hPutStrLn stderr (msg ++ " map") hPutStr stderr . unlines . map ((:) ' ' . unwords) $ formatTable (map (printInstance nl) (reverse i...
631
printAllocationMap verbose msg nl ixes = when (verbose > 1) $ do hPutStrLn stderr (msg ++ " map") hPutStr stderr . unlines . map ((:) ' ' . unwords) $ formatTable (map (printInstance nl) (reverse ixes)) -- This is the numberic-or-not field -- specif...
531
true
true
0
14
227
166
86
80
null
null
ThreeFx/ETH
1semester/diskmat/ResCalc.hs
mit
normalise a = a
27
normalise a = a
27
normalise a = a
27
false
false
0
5
15
9
4
5
null
null
cordawyn/rdf4h
src/Text/RDF/RDF4H/TurtleParser.hs
bsd-3-clause
-- characters used in (non-long) strings; any echaracters except ", or an escaped \" -- echaracter - #x22 ) | '\"' t_scharacter_in_dquot :: GenParser ParseState T.Text t_scharacter_in_dquot = (try (string "\\\"") >> return (T.singleton '"')) <|> (try (string "\\'") >> return (T.singleton '\'')) <|> try (do ...
621
t_scharacter_in_dquot :: GenParser ParseState T.Text t_scharacter_in_dquot = (try (string "\\\"") >> return (T.singleton '"')) <|> (try (string "\\'") >> return (T.singleton '\'')) <|> try (do {char '\\'; (char 't' >> return (T.singleton '\t')) <|> (char 'n' >> return (T....
506
t_scharacter_in_dquot = (try (string "\\\"") >> return (T.singleton '"')) <|> (try (string "\\'") >> return (T.singleton '\'')) <|> try (do {char '\\'; (char 't' >> return (T.singleton '\t')) <|> (char 'n' >> return (T.singleton '\n')) <|> (char 'r' >> r...
453
true
true
12
16
158
212
107
105
null
null
joom/chalk
src/System/Console/Chalk.hs
mit
red = wrap ("31", "39")
33
red = wrap ("31", "39")
33
red = wrap ("31", "39")
33
false
false
1
5
14
18
8
10
null
null
brendanhay/gogol
gogol-serviceconsumermanagement/gen/Network/Google/ServiceConsumerManagement/Types/Product.hs
mpl-2.0
-- | The address of the API backend. The scheme is used to determine the -- backend protocol and security. The following schemes are accepted: -- SCHEME PROTOCOL SECURITY http:\/\/ HTTP None https:\/\/ HTTP TLS -- grpc:\/\/ gRPC None grpcs:\/\/ gRPC TLS It is recommended to explicitly -- include a scheme. Leaving out t...
657
brAddress :: Lens' BackendRule (Maybe Text) brAddress = lens _brAddress (\ s a -> s{_brAddress = a})
102
brAddress = lens _brAddress (\ s a -> s{_brAddress = a})
58
true
true
0
9
112
55
32
23
null
null
tonicebrian/nolit
test/Test.hs
gpl-3.0
-- Unit tests -------------------------------------------------- case_simpleTangle :: Assertion case_simpleTangle = do content <- readFile "test/resources/test.acd" let obtained = tangle content expected = [TangledFile "test.cpp" "int main(){\n}\n"] unless (obtained == expected) (assertFailure "Tan...
391
case_simpleTangle :: Assertion case_simpleTangle = do content <- readFile "test/resources/test.acd" let obtained = tangle content expected = [TangledFile "test.cpp" "int main(){\n}\n"] unless (obtained == expected) (assertFailure "Tangling not working") ---------------------------------------------...
325
case_simpleTangle = do content <- readFile "test/resources/test.acd" let obtained = tangle content expected = [TangledFile "test.cpp" "int main(){\n}\n"] unless (obtained == expected) (assertFailure "Tangling not working") --------------------------------------------------
294
true
true
0
11
55
70
35
35
null
null
energyflowanalysis/efa-2.1
attic/src/EFA2/Solver/Horn.hs
bsd-3-clause
getAtoms (f :-> g) = S.union (getAtoms f) (getAtoms g)
54
getAtoms (f :-> g) = S.union (getAtoms f) (getAtoms g)
54
getAtoms (f :-> g) = S.union (getAtoms f) (getAtoms g)
54
false
false
0
7
9
36
17
19
null
null
isomorphism/csound-expression
examples/Gui/Button.hs
bsd-3-clause
monadGui = dac $ do -- Let's create a toggle button with label "play". -- The toggle button emmits ones and zeros. (gbut1, evt1) <- toggle "play" False -- Let's create a plain button with label "Hi!". (gbut2, evt2) <- button "Hi!" -- It splits the toggle button events on only ones and ...
1,031
monadGui = dac $ do -- Let's create a toggle button with label "play". -- The toggle button emmits ones and zeros. (gbut1, evt1) <- toggle "play" False -- Let's create a plain button with label "Hi!". (gbut2, evt2) <- button "Hi!" -- It splits the toggle button events on only ones and ...
1,031
monadGui = dac $ do -- Let's create a toggle button with label "play". -- The toggle button emmits ones and zeros. (gbut1, evt1) <- toggle "play" False -- Let's create a plain button with label "Hi!". (gbut2, evt2) <- button "Hi!" -- It splits the toggle button events on only ones and ...
1,031
false
false
3
15
275
219
109
110
null
null
DbIHbKA/vbpca
src/PCA/QModels.hs
bsd-3-clause
-- | TODO: Formula is not correct. -- Skip part Tr (\langle W^TW \rangle \langle x_n x^T_n 'rangle') -- because i think it is not correct in that result must be number calcBtau :: Double -> Matrix Double -> Distr (Vector Double) (Matrix Double) -> Distr (Matrix Double) (Matrix Double) -> Distr (Matr...
776
calcBtau :: Double -> Matrix Double -> Distr (Vector Double) (Matrix Double) -> Distr (Matrix Double) (Matrix Double) -> Distr (Matrix Double) (Matrix Double) -> Double calcBtau b trainT mu w x = b + 0.5 * (fromIntegral n * norm mMu + H.sumElements (takeDiag (trainT H.<> H.tr tr...
608
calcBtau b trainT mu w x = b + 0.5 * (fromIntegral n * norm mMu + H.sumElements (takeDiag (trainT H.<> H.tr trainT)) + 2 * (H.sumElements (H.tr (mW H.<> H.tr mX) H.#> mMu)) - 2 * (H.sumElements (takeDiag (trainT H.<> mW H.<> H.tr mX))) - 2 * (H.sumElements (trainT H.#> mMu))) where ...
415
true
true
7
19
210
341
161
180
null
null
pparkkin/eta
compiler/ETA/Prelude/PrimOp.hs
bsd-3-clause
primOpCodeSize DoubleSqrtOp = primOpCodeSizeForeignCall
56
primOpCodeSize DoubleSqrtOp = primOpCodeSizeForeignCall
56
primOpCodeSize DoubleSqrtOp = primOpCodeSizeForeignCall
56
false
false
0
5
4
9
4
5
null
null
sgillespie/ghc
compiler/typecheck/TcBinds.hs
bsd-3-clause
recoveryCode :: [Name] -> TcSigFun -> TcM (LHsBinds TcId, [Id]) recoveryCode binder_names sig_fn = do { traceTc "tcBindsWithSigs: error recovery" (ppr binder_names) ; let poly_ids = map mk_dummy binder_names ; return (emptyBag, poly_ids) } where mk_dummy name | Just sig <- sig_fn name ...
436
recoveryCode :: [Name] -> TcSigFun -> TcM (LHsBinds TcId, [Id]) recoveryCode binder_names sig_fn = do { traceTc "tcBindsWithSigs: error recovery" (ppr binder_names) ; let poly_ids = map mk_dummy binder_names ; return (emptyBag, poly_ids) } where mk_dummy name | Just sig <- sig_fn name ...
436
recoveryCode binder_names sig_fn = do { traceTc "tcBindsWithSigs: error recovery" (ppr binder_names) ; let poly_ids = map mk_dummy binder_names ; return (emptyBag, poly_ids) } where mk_dummy name | Just sig <- sig_fn name , Just poly_id <- completeSigPolyId_maybe sig = poly_id...
372
false
true
0
10
111
152
70
82
null
null
themoritz/cabal
cabal-testsuite/Test/Cabal/Prelude.hs
bsd-3-clause
withDirectory :: FilePath -> TestM a -> TestM a withDirectory f = withReaderT (\env -> env { testRelativeCurrentDir = testRelativeCurrentDir env </> f })
157
withDirectory :: FilePath -> TestM a -> TestM a withDirectory f = withReaderT (\env -> env { testRelativeCurrentDir = testRelativeCurrentDir env </> f })
157
withDirectory f = withReaderT (\env -> env { testRelativeCurrentDir = testRelativeCurrentDir env </> f })
109
false
true
0
10
27
54
27
27
null
null
maoe/Haskell-Turtle-Library
src/Turtle/Pattern.hs
bsd-3-clause
{-| Match an uppercase letter >>> match upper "A" "A" >>> match upper "a" "" -} upper :: Pattern Char upper = satisfy isUpper
126
upper :: Pattern Char upper = satisfy isUpper
45
upper = satisfy isUpper
23
true
true
0
6
24
24
10
14
null
null
vTurbine/ghc
libraries/base/Data/Data.hs
bsd-3-clause
word64Type :: DataType word64Type = mkIntType "Data.Word.Word64"
64
word64Type :: DataType word64Type = mkIntType "Data.Word.Word64"
64
word64Type = mkIntType "Data.Word.Word64"
41
false
true
0
6
6
21
8
13
null
null
mcschroeder/ttrie
tests/MapProperties.hs
mit
eq_ :: (Eq k, Eq v, Hashable k, Ord k) => (Model k v -> Model k v) -> (TTrie.Map k v -> IO ()) -> [(k, v)] -> Property eq_ f g xs = monadicIO $ do let a = M.toAscList $ f $ M.fromList xs m <- run $ TTrie.fromList xs run $ g m b <- run $ unsafeToAscList m assert $ a == b
294
eq_ :: (Eq k, Eq v, Hashable k, Ord k) => (Model k v -> Model k v) -> (TTrie.Map k v -> IO ()) -> [(k, v)] -> Property eq_ f g xs = monadicIO $ do let a = M.toAscList $ f $ M.fromList xs m <- run $ TTrie.fromList xs run $ g m b <- run $ unsafeToAscList m assert $ a == b
294
eq_ f g xs = monadicIO $ do let a = M.toAscList $ f $ M.fromList xs m <- run $ TTrie.fromList xs run $ g m b <- run $ unsafeToAscList m assert $ a == b
171
false
true
0
13
91
186
88
98
null
null
sdiehl/ghc
compiler/GHC/Cmm/Utils.hs
bsd-3-clause
-- | like 'toBlockList', but the entry block always comes first toBlockListEntryFirst :: CmmGraph -> [CmmBlock] toBlockListEntryFirst g | mapNull m = [] | otherwise = entry_block : others where m = toBlockMap g entry_id = g_entry g Just entry_block = mapLookup entry_id m others = filter ((/= ent...
947
toBlockListEntryFirst :: CmmGraph -> [CmmBlock] toBlockListEntryFirst g | mapNull m = [] | otherwise = entry_block : others where m = toBlockMap g entry_id = g_entry g Just entry_block = mapLookup entry_id m others = filter ((/= entry_id) . entryLabel) (mapElems m) -- | Like 'toBlockListEntryFi...
883
toBlockListEntryFirst g | mapNull m = [] | otherwise = entry_block : others where m = toBlockMap g entry_id = g_entry g Just entry_block = mapLookup entry_id m others = filter ((/= entry_id) . entryLabel) (mapElems m) -- | Like 'toBlockListEntryFirst', but we strive to ensure that we order bloc...
835
true
true
4
8
180
110
60
50
null
null
GaloisInc/stack
src/Stack/Config.hs
bsd-3-clause
packagesParser :: Parser [String] packagesParser = many (strOption (long "package" <> help "Additional packages that must be installed"))
137
packagesParser :: Parser [String] packagesParser = many (strOption (long "package" <> help "Additional packages that must be installed"))
137
packagesParser = many (strOption (long "package" <> help "Additional packages that must be installed"))
103
false
true
0
10
17
39
19
20
null
null
jvictor0/JoSQL
Server/Parser.hs
mit
parseDatum :: [LexTree] -> Maybe (Maybe String) parseDatum [Ident a] = Just $ Just a
84
parseDatum :: [LexTree] -> Maybe (Maybe String) parseDatum [Ident a] = Just $ Just a
84
parseDatum [Ident a] = Just $ Just a
36
false
true
0
8
14
43
21
22
null
null
Proclivis/wxHaskell
wxcore/src/haskell/Graphics/UI/WXCore/WxcDefs.hs
lgpl-2.1
wxSTC_CMD_PARADOWN :: Int wxSTC_CMD_PARADOWN = 2413
51
wxSTC_CMD_PARADOWN :: Int wxSTC_CMD_PARADOWN = 2413
51
wxSTC_CMD_PARADOWN = 2413
25
false
true
0
4
5
11
6
5
null
null
JacquesCarette/literate-scientific-software
code/drasil-printers/Language/Drasil/Printing/Import.hs
bsd-2-clause
indx sm a i = P.Row [P.Row [expr a sm], P.Sub $ expr i sm]
58
indx sm a i = P.Row [P.Row [expr a sm], P.Sub $ expr i sm]
58
indx sm a i = P.Row [P.Row [expr a sm], P.Sub $ expr i sm]
58
false
false
1
9
14
54
23
31
null
null
qnikst/distributed-process-client-server
tests/ManagedProcessCommon.hs
bsd-3-clause
testUnsafeBasicCall :: Launcher () -> TestResult (Maybe String) -> Process () testUnsafeBasicCall launch result = do (pid, _) <- launch () Unsafe.callTimeout pid "foo" (within 5 Seconds) >>= stash result
207
testUnsafeBasicCall :: Launcher () -> TestResult (Maybe String) -> Process () testUnsafeBasicCall launch result = do (pid, _) <- launch () Unsafe.callTimeout pid "foo" (within 5 Seconds) >>= stash result
207
testUnsafeBasicCall launch result = do (pid, _) <- launch () Unsafe.callTimeout pid "foo" (within 5 Seconds) >>= stash result
129
false
true
0
10
33
88
41
47
null
null
bgamari/shaking-up-ghc
src/Builder.hs
bsd-3-clause
isOptional :: Builder -> Bool isOptional = \case Objdump -> True _ -> False -- | Determine the location of a system 'Builder'.
143
isOptional :: Builder -> Bool isOptional = \case Objdump -> True _ -> False -- | Determine the location of a system 'Builder'.
143
isOptional = \case Objdump -> True _ -> False -- | Determine the location of a system 'Builder'.
113
false
true
0
7
39
30
16
14
null
null
nh2/darcs-fastconvert
Utils.hs
bsd-3-clause
equalHead _ _ = False
25
equalHead _ _ = False
25
equalHead _ _ = False
25
false
false
0
5
8
11
5
6
null
null
talanis85/haScales
src/Data/Music/Chords.hs
bsd-3-clause
minor69Chord = mkChord dorianScale [Degree I natural, Degree III natural, Degree VI natural, Degree II natural]
111
minor69Chord = mkChord dorianScale [Degree I natural, Degree III natural, Degree VI natural, Degree II natural]
111
minor69Chord = mkChord dorianScale [Degree I natural, Degree III natural, Degree VI natural, Degree II natural]
111
false
false
1
7
15
46
21
25
null
null
olsner/ghc
compiler/cmm/CLabel.hs
bsd-3-clause
toEntryLbl (IdLabel n c _) = IdLabel n c Entry
60
toEntryLbl (IdLabel n c _) = IdLabel n c Entry
60
toEntryLbl (IdLabel n c _) = IdLabel n c Entry
60
false
false
0
6
23
27
12
15
null
null
rueshyna/gogol
gogol-classroom/gen/Network/Google/Classroom/Types/Product.hs
mpl-2.0
-- | Creates a value of 'ModifyAttachmentsRequest' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'marAddAttachments' modifyAttachmentsRequest :: ModifyAttachmentsRequest modifyAttachmentsRequest = ModifyAttachmentsRequest' ...
358
modifyAttachmentsRequest :: ModifyAttachmentsRequest modifyAttachmentsRequest = ModifyAttachmentsRequest' { _marAddAttachments = Nothing }
154
modifyAttachmentsRequest = ModifyAttachmentsRequest' { _marAddAttachments = Nothing }
97
true
true
0
7
60
34
18
16
null
null
tomtitchener/RealSimpleMusic
src/Music/RealSimpleMusic/ScoreToLilypond/Utils.hs
cc0-1.0
renderDynamic :: Bool -> Bool -> Rhythm -> Dynamic -> (Bool, Bool, Builder) renderDynamic True _ _ (FractionalDynamic _) = error "renderDynamic FractionalDynamic inside crescendo or decrescendo"
208
renderDynamic :: Bool -> Bool -> Rhythm -> Dynamic -> (Bool, Bool, Builder) renderDynamic True _ _ (FractionalDynamic _) = error "renderDynamic FractionalDynamic inside crescendo or decrescendo"
208
renderDynamic True _ _ (FractionalDynamic _) = error "renderDynamic FractionalDynamic inside crescendo or decrescendo"
132
false
true
0
9
40
54
28
26
null
null
uuhan/Idris-dev
src/Idris/Reflection.hs
bsd-3-clause
-- | Lift a term into its Language.Reflection.Raw representation reflectRaw :: Raw -> Raw reflectRaw = reflectRawQuote []
121
reflectRaw :: Raw -> Raw reflectRaw = reflectRawQuote []
56
reflectRaw = reflectRawQuote []
31
true
true
0
6
17
21
11
10
null
null
WraithM/haskell-opaleye
src/Opaleye/PGTypes.hs
bsd-3-clause
pgCiLazyText :: CI.CI LText.Text -> Column PGCitext pgCiLazyText = IPT.literalColumn . HPQ.StringLit . LText.unpack . CI.original
129
pgCiLazyText :: CI.CI LText.Text -> Column PGCitext pgCiLazyText = IPT.literalColumn . HPQ.StringLit . LText.unpack . CI.original
129
pgCiLazyText = IPT.literalColumn . HPQ.StringLit . LText.unpack . CI.original
77
false
true
0
8
15
51
23
28
null
null
ddssff/pandoc
src/Text/Pandoc/Writers/AsciiDoc.hs
gpl-2.0
inlineToAsciiDoc opts (Cite _ lst) = inlineListToAsciiDoc opts lst
66
inlineToAsciiDoc opts (Cite _ lst) = inlineListToAsciiDoc opts lst
66
inlineToAsciiDoc opts (Cite _ lst) = inlineListToAsciiDoc opts lst
66
false
false
0
7
8
24
11
13
null
null
acowley/ghc
compiler/main/DynFlags.hs
bsd-3-clause
-- | Is the -fpackage-trust mode on packageTrustOn :: DynFlags -> Bool packageTrustOn = gopt Opt_PackageTrust
109
packageTrustOn :: DynFlags -> Bool packageTrustOn = gopt Opt_PackageTrust
73
packageTrustOn = gopt Opt_PackageTrust
38
true
true
0
5
15
19
10
9
null
null
k0001/pipes-http-proxy-simple
src/RFC2616.hs
bsd-3-clause
request :: Parser (Request, [Header]) request = (,) <$> requestLine <*> many messageHeader <* endOfLine
103
request :: Parser (Request, [Header]) request = (,) <$> requestLine <*> many messageHeader <* endOfLine
103
request = (,) <$> requestLine <*> many messageHeader <* endOfLine
65
false
true
0
8
14
41
22
19
null
null
kuitang/monad-learner
polyreg_static.hs
mit
sumSquareDiff x y = sumVector $ squareDiff x y
46
sumSquareDiff x y = sumVector $ squareDiff x y
46
sumSquareDiff x y = sumVector $ squareDiff x y
46
false
false
0
6
8
20
9
11
null
null
rodrigogribeiro/mptc
src/Iface/ClassInstCollector.hs
bsd-3-clause
unCls x = unsupportedDeclMsg x
30
unCls x = unsupportedDeclMsg x
30
unCls x = unsupportedDeclMsg x
30
false
false
1
5
4
15
5
10
null
null
modeswitch/barrelfish
hake/RuleDefs.hs
mit
kernelLdFlags "x86_64" = X86_64.kernelLdFlags
45
kernelLdFlags "x86_64" = X86_64.kernelLdFlags
45
kernelLdFlags "x86_64" = X86_64.kernelLdFlags
45
false
false
0
5
3
11
5
6
null
null
olsner/ghc
compiler/prelude/TysPrim.hs
bsd-3-clause
mkWeakPrimTy :: Type -> Type mkWeakPrimTy v = TyConApp weakPrimTyCon [v]
72
mkWeakPrimTy :: Type -> Type mkWeakPrimTy v = TyConApp weakPrimTyCon [v]
72
mkWeakPrimTy v = TyConApp weakPrimTyCon [v]
43
false
true
0
7
10
32
14
18
null
null
cjlarose/kafkaesque
src/Kafkaesque/Request/ApiVersions.hs
mit
apiVersionsRequestV0 :: Parser (Request ApiVersions V0) apiVersionsRequestV0 = ApiVersionsRequestV0 <$> kafkaArray signedInt16be
128
apiVersionsRequestV0 :: Parser (Request ApiVersions V0) apiVersionsRequestV0 = ApiVersionsRequestV0 <$> kafkaArray signedInt16be
128
apiVersionsRequestV0 = ApiVersionsRequestV0 <$> kafkaArray signedInt16be
72
false
true
0
7
11
29
14
15
null
null
mettekou/ghc
compiler/types/Type.hs
bsd-3-clause
applyTysX :: [TyVar] -> Type -> [Type] -> Type -- applyTyxX beta-reduces (/\tvs. body_ty) arg_tys -- Assumes that (/\tvs. body_ty) is closed applyTysX tvs body_ty arg_tys = ASSERT2( length arg_tys >= n_tvs, pp_stuff ) ASSERT2( tyCoVarsOfType body_ty `subVarSet` mkVarSet tvs, pp_stuff ) mkAppTys (substTyWith t...
783
applyTysX :: [TyVar] -> Type -> [Type] -> Type applyTysX tvs body_ty arg_tys = ASSERT2( length arg_tys >= n_tvs, pp_stuff ) ASSERT2( tyCoVarsOfType body_ty `subVarSet` mkVarSet tvs, pp_stuff ) mkAppTys (substTyWith tvs (take n_tvs arg_tys) body_ty) (drop n_tvs arg_tys) where pp_stuff = vcat...
689
applyTysX tvs body_ty arg_tys = ASSERT2( length arg_tys >= n_tvs, pp_stuff ) ASSERT2( tyCoVarsOfType body_ty `subVarSet` mkVarSet tvs, pp_stuff ) mkAppTys (substTyWith tvs (take n_tvs arg_tys) body_ty) (drop n_tvs arg_tys) where pp_stuff = vcat [ppr tvs, ppr body_ty, ppr arg_tys] n_tvs ...
642
true
true
0
9
196
152
78
74
null
null
fmapfmapfmap/amazonka
amazonka-ecs/gen/Network/AWS/ECS/SubmitContainerStateChange.hs
mpl-2.0
-- | The short name or full Amazon Resource Name (ARN) of the cluster that -- hosts the container. scscCluster :: Lens' SubmitContainerStateChange (Maybe Text) scscCluster = lens _scscCluster (\ s a -> s{_scscCluster = a})
222
scscCluster :: Lens' SubmitContainerStateChange (Maybe Text) scscCluster = lens _scscCluster (\ s a -> s{_scscCluster = a})
123
scscCluster = lens _scscCluster (\ s a -> s{_scscCluster = a})
62
true
true
1
9
35
52
26
26
null
null