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
jtojnar/haste-compiler
libraries/ghc-7.10/base/GHC/IORef.hs
bsd-3-clause
newIORef :: a -> IO (IORef a) newIORef v = stToIO (newSTRef v) >>= \ var -> return (IORef var)
97
newIORef :: a -> IO (IORef a) newIORef v = stToIO (newSTRef v) >>= \ var -> return (IORef var)
97
newIORef v = stToIO (newSTRef v) >>= \ var -> return (IORef var)
64
false
true
0
9
22
58
27
31
null
null
michaelt/lens-simple
examples/Pong.hs
bsd-3-clause
-- Renamed tuple lenses for enhanced clarity with points/vectors _x = _1
72
_x = _1
7
_x = _1
7
true
false
1
5
11
11
4
7
null
null
haskell-opengl/OpenGLRaw
src/Graphics/GL/Functions/F26.hs
bsd-3-clause
-- glTexCoordP3ui -------------------------------------------------------------- glTexCoordP3ui :: MonadIO m => GLenum -- ^ @type@ of type [TexCoordPointerType](Graphics-GL-Groups.html#TexCoordPointerType). -> GLuint -- ^ @coords@. -> m () glTexCoordP3ui v1 v2 = liftIO $ dyn19 ptr_glTexCoordP3ui v1 v2
311
glTexCoordP3ui :: MonadIO m => GLenum -- ^ @type@ of type [TexCoordPointerType](Graphics-GL-Groups.html#TexCoordPointerType). -> GLuint -- ^ @coords@. -> m () glTexCoordP3ui v1 v2 = liftIO $ dyn19 ptr_glTexCoordP3ui v1 v2
229
glTexCoordP3ui v1 v2 = liftIO $ dyn19 ptr_glTexCoordP3ui v1 v2
62
true
true
0
10
41
54
26
28
null
null
Copilot-Language/sbv-for-copilot
Data/SBV/SMT/SMT.hs
bsd-3-clause
resultConfig (ProofError c _) = c
34
resultConfig (ProofError c _) = c
34
resultConfig (ProofError c _) = c
34
false
false
0
7
6
17
8
9
null
null
knutwalker/hocker
src/lib/Hocker/Commands.hs
apache-2.0
dockers cfg Start _ = createDocker cfg ++ docker "start" cfg
64
dockers cfg Start _ = createDocker cfg ++ docker "start" cfg
64
dockers cfg Start _ = createDocker cfg ++ docker "start" cfg
64
false
false
0
6
14
25
11
14
null
null
nevrenato/Hets_Fork
Lottery/Test.hs
gpl-2.0
{- part erstellt eine Liste verschachtelter k-stelliger Partitions-Mengen (vom Typ TPart) ueber n -} part :: Int ->Int ->[TPart] part n k | (n < k) = [] | (n < 1) || (k < 1) = [] | (k == 1) = [TPart (n,[])] | otherwise = let makePart x = TPart (x , (part (n-x) (k-1))) ...
368
part :: Int ->Int ->[TPart] part n k | (n < k) = [] | (n < 1) || (k < 1) = [] | (k == 1) = [TPart (n,[])] | otherwise = let makePart x = TPart (x , (part (n-x) (k-1))) in map makePart [1..(n-k+1)]
263
part n k | (n < k) = [] | (n < 1) || (k < 1) = [] | (k == 1) = [TPart (n,[])] | otherwise = let makePart x = TPart (x , (part (n-x) (k-1))) in map makePart [1..(n-k+1)]
235
true
true
1
14
132
179
93
86
null
null
GaloisInc/saw-script
src/SAWScript/Utils.hs
bsd-3-clause
throwFieldNotFound :: JSS.Type -> String -> [String] -> ExceptT String IO a throwFieldNotFound tp fieldName names = throwE msg where msg = "Values with type \'" ++ show tp ++ "\' do not contain field named " ++ fieldName ++ "." ++ "\nAvailable fields:\n" ++ unlines names
307
throwFieldNotFound :: JSS.Type -> String -> [String] -> ExceptT String IO a throwFieldNotFound tp fieldName names = throwE msg where msg = "Values with type \'" ++ show tp ++ "\' do not contain field named " ++ fieldName ++ "." ++ "\nAvailable fields:\n" ++ unlines names
307
throwFieldNotFound tp fieldName names = throwE msg where msg = "Values with type \'" ++ show tp ++ "\' do not contain field named " ++ fieldName ++ "." ++ "\nAvailable fields:\n" ++ unlines names
231
false
true
9
9
82
94
41
53
null
null
prb/perpubplat
src/Blog/Widgets/Delicious.hs
bsd-3-clause
next_time :: Int -> IO SP.EpochTime next_time t = do { n <- SPT.epochTime ; return $ n + fromIntegral (60 * (t+1)) }
133
next_time :: Int -> IO SP.EpochTime next_time t = do { n <- SPT.epochTime ; return $ n + fromIntegral (60 * (t+1)) }
133
next_time t = do { n <- SPT.epochTime ; return $ n + fromIntegral (60 * (t+1)) }
97
false
true
0
13
40
68
33
35
null
null
WawerOS/Chessotron2000
src/Tree.hs
mit
depth (Leaf _) = 1
18
depth (Leaf _) = 1
18
depth (Leaf _) = 1
18
false
false
0
7
4
15
7
8
null
null
daniellandau/haskell-flowdock-grep
src/Main.hs
bsd-3-clause
readAuthToken :: Path Abs Dir -> IO (Maybe AuthToken) readAuthToken dir = readAuthToken' `catch` onIOError Nothing where readAuthToken' = do contents <- Prelude.readFile (toFilePath (dir </> tokenRelPath)) return $ Just $ AuthToken $ stringTrim contents
271
readAuthToken :: Path Abs Dir -> IO (Maybe AuthToken) readAuthToken dir = readAuthToken' `catch` onIOError Nothing where readAuthToken' = do contents <- Prelude.readFile (toFilePath (dir </> tokenRelPath)) return $ Just $ AuthToken $ stringTrim contents
271
readAuthToken dir = readAuthToken' `catch` onIOError Nothing where readAuthToken' = do contents <- Prelude.readFile (toFilePath (dir </> tokenRelPath)) return $ Just $ AuthToken $ stringTrim contents
217
false
true
0
12
52
92
44
48
null
null
julienschmaltz/madl
src/Parser/ASTTranslator.hs
mit
-- | Prints the ports of a network specification printPorts :: NetworkSpecification -> Text printPorts (NSpec _ _ ports) = ("PORTS = ") <> (intercalate (", ") (map printPort ports)) where printPort (source, dest) = "(" <> source <> ", " <> dest <> ")" -- | Prints a network specification
292
printPorts :: NetworkSpecification -> Text printPorts (NSpec _ _ ports) = ("PORTS = ") <> (intercalate (", ") (map printPort ports)) where printPort (source, dest) = "(" <> source <> ", " <> dest <> ")" -- | Prints a network specification
243
printPorts (NSpec _ _ ports) = ("PORTS = ") <> (intercalate (", ") (map printPort ports)) where printPort (source, dest) = "(" <> source <> ", " <> dest <> ")" -- | Prints a network specification
200
true
true
0
9
55
87
47
40
null
null
tpsinnem/Idris-dev
src/Idris/Primitives.hs
bsd-3-clause
p_floatExp, p_floatLog, p_floatSin, p_floatCos, p_floatTan, p_floatASin, p_floatACos, p_floatATan, p_floatSqrt, p_floatFloor, p_floatCeil :: [Const] -> Maybe Const p_floatExp = p_fPrim exp
188
p_floatExp, p_floatLog, p_floatSin, p_floatCos, p_floatTan, p_floatASin, p_floatACos, p_floatATan, p_floatSqrt, p_floatFloor, p_floatCeil :: [Const] -> Maybe Const p_floatExp = p_fPrim exp
188
p_floatExp = p_fPrim exp
24
false
true
3
6
19
51
32
19
null
null
brendanhay/gogol
gogol-cloudfunctions/gen/Network/Google/CloudFunctions/Types/Product.hs
mpl-2.0
-- | Specifies a service that will be enabled for audit logging. For example, -- \`storage.googleapis.com\`, \`cloudsql.googleapis.com\`. \`allServices\` -- is a special value that covers all services. acService :: Lens' AuditConfig (Maybe Text) acService = lens _acService (\ s a -> s{_acService = a})
304
acService :: Lens' AuditConfig (Maybe Text) acService = lens _acService (\ s a -> s{_acService = a})
102
acService = lens _acService (\ s a -> s{_acService = a})
58
true
true
0
9
45
50
27
23
null
null
phischu/fragnix
builtins/base/System.IO.hs
bsd-3-clause
-- | The 'interact' function takes a function of type @String->String@ -- as its argument. The entire input from the standard input device is -- passed to this function as its argument, and the resulting string is -- output on the standard output device. interact :: (String -> String) -> IO () interact f ...
538
interact :: (String -> String) -> IO () interact f = do s <- getContents putStr (f s) -- | The 'readFile' function reads a file and -- returns the contents of the file as a string. -- The file is read lazily, on demand, as with 'getContents'.
281
interact f = do s <- getContents putStr (f s) -- | The 'readFile' function reads a file and -- returns the contents of the file as a string. -- The file is read lazily, on demand, as with 'getContents'.
233
true
true
0
10
132
61
31
30
null
null
phylake/AS3-AST
Data/AS3/AST/Grammar/Statements.hs
bsd-3-clause
constant_statement :: As3Parser Statement constant_statement = string "const " *> with_scope PS_TypedIds idents <* optional semi where idents = liftM Constant comma_expression
181
constant_statement :: As3Parser Statement constant_statement = string "const " *> with_scope PS_TypedIds idents <* optional semi where idents = liftM Constant comma_expression
181
constant_statement = string "const " *> with_scope PS_TypedIds idents <* optional semi where idents = liftM Constant comma_expression
139
false
true
3
6
27
58
23
35
null
null
fffej/HS-Poker
Card.hs
bsd-3-clause
primeRank Queen = 31
20
primeRank Queen = 31
20
primeRank Queen = 31
20
false
false
1
5
3
13
4
9
null
null
emwap/feldspar-language
src/Feldspar/Core/Frontend/Conversion.hs
bsd-3-clause
floor :: (Integral a, Numeric b, RealFloat b) => Data b -> Data a floor = sugarSymF Floor
89
floor :: (Integral a, Numeric b, RealFloat b) => Data b -> Data a floor = sugarSymF Floor
89
floor = sugarSymF Floor
23
false
true
0
8
17
50
23
27
null
null
doylew/practice
haskell/test.hs
mit
filter' f (x:xs) | f x = x : filter' f xs | otherwise = filter' f xs
72
filter' f (x:xs) | f x = x : filter' f xs | otherwise = filter' f xs
72
filter' f (x:xs) | f x = x : filter' f xs | otherwise = filter' f xs
72
false
false
2
8
21
58
23
35
null
null
MathiasVP/syntax-checker-checker
qcsyntax.hs
mit
shrinkQuotation (QuoteString _) = [QuoteEmpty]
46
shrinkQuotation (QuoteString _) = [QuoteEmpty]
46
shrinkQuotation (QuoteString _) = [QuoteEmpty]
46
false
false
0
7
4
18
9
9
null
null
GRACeFUL-project/haskelzinc
src/Interfaces/MZBuiltIns.hs
bsd-3-clause
mz_showJSON = prefCall "showJSON"
37
mz_showJSON = prefCall "showJSON"
37
mz_showJSON = prefCall "showJSON"
37
false
false
0
5
7
9
4
5
null
null
sordina/Deadpan-DDP
src/Web/DDP/Deadpan.hs
mit
dataAdded :: Callback dataAdded = dataOver putInPath'
53
dataAdded :: Callback dataAdded = dataOver putInPath'
53
dataAdded = dataOver putInPath'
31
false
true
0
6
6
21
8
13
null
null
sdiehl/ghc
compiler/prelude/TysPrim.hs
bsd-3-clause
intPrimTyCon :: TyCon intPrimTyCon = pcPrimTyCon0 intPrimTyConName IntRep
76
intPrimTyCon :: TyCon intPrimTyCon = pcPrimTyCon0 intPrimTyConName IntRep
76
intPrimTyCon = pcPrimTyCon0 intPrimTyConName IntRep
54
false
true
0
6
10
23
9
14
null
null
markuspf/Idris-dev
src/Idris/Core/TT.hs
bsd-3-clause
rigPlus Rig0 RigW = RigW
24
rigPlus Rig0 RigW = RigW
24
rigPlus Rig0 RigW = RigW
24
false
false
1
5
4
16
5
11
null
null
SamirTalwar/advent-of-code
2016/AOC_06_2.hs
mit
main = do messages <- lines <$> getContents let characters = List.transpose messages let modalCharacters = map modal characters putStrLn modalCharacters
160
main = do messages <- lines <$> getContents let characters = List.transpose messages let modalCharacters = map modal characters putStrLn modalCharacters
160
main = do messages <- lines <$> getContents let characters = List.transpose messages let modalCharacters = map modal characters putStrLn modalCharacters
160
false
false
1
12
28
55
22
33
null
null
zobot/MeshGenerator
dist/dist-sandbox-2aa4596f/build/autogen/Paths_MeshGenerator.hs
bsd-3-clause
bindir, libdir, datadir, libexecdir, sysconfdir :: FilePath bindir = "/Users/zoe/dev/haskell/MeshGenerator/.cabal-sandbox/bin"
131
bindir, libdir, datadir, libexecdir, sysconfdir :: FilePath bindir = "/Users/zoe/dev/haskell/MeshGenerator/.cabal-sandbox/bin"
130
bindir = "/Users/zoe/dev/haskell/MeshGenerator/.cabal-sandbox/bin"
70
false
true
0
4
14
19
14
5
null
null
nukisman/elm-format-short
parser/src/Parse/Module.hs
bsd-3-clause
toDetailedListing :: [Commented Var.Value] -> Module.DetailedListing toDetailedListing values = let merge (Commented pre1 (inner1, tags1) post1) (Commented pre2 (inner2, tags2) post2) = Commented (pre1 ++ pre2) ( inner1 ++ inner...
1,015
toDetailedListing :: [Commented Var.Value] -> Module.DetailedListing toDetailedListing values = let merge (Commented pre1 (inner1, tags1) post1) (Commented pre2 (inner2, tags2) post2) = Commented (pre1 ++ pre2) ( inner1 ++ inner...
1,015
toDetailedListing values = let merge (Commented pre1 (inner1, tags1) post1) (Commented pre2 (inner2, tags2) post2) = Commented (pre1 ++ pre2) ( inner1 ++ inner2 , mergeListing (mergeCommentedMap (\() () -> ())) t...
946
false
true
0
16
419
346
183
163
null
null
shlevy/ghc
compiler/prelude/THNames.hs
bsd-3-clause
bindQIdKey = mkPreludeMiscIdUnique 201
47
bindQIdKey = mkPreludeMiscIdUnique 201
47
bindQIdKey = mkPreludeMiscIdUnique 201
47
false
false
0
5
12
9
4
5
null
null
GaloisInc/mistral
src/Mistral/TypeCheck/Interface.hs
bsd-3-clause
-- | Generate an interface from a core module. genIface :: Module -> Iface genIface m = Iface { ifaceModName = modName m , ifaceDeps = modDeps m , ifaceDatas = modDatas m , ifaceBinds = modTypes m , ifaceTySyns = Map.empty ...
401
genIface :: Module -> Iface genIface m = Iface { ifaceModName = modName m , ifaceDeps = modDeps m , ifaceDatas = modDatas m , ifaceBinds = modTypes m , ifaceTySyns = Map.empty , ifaceTypes = Map.empty ...
354
genIface m = Iface { ifaceModName = modName m , ifaceDeps = modDeps m , ifaceDatas = modDatas m , ifaceBinds = modTypes m , ifaceTySyns = Map.empty , ifaceTypes = Map.empty , ifaceInsts = modIns...
326
true
true
0
8
177
88
47
41
null
null
madebyjeffrey/HerbiePlugin
test/Tests.hs
bsd-3-clause
example85 x = exp(log(x))
25
example85 x = exp(log(x))
25
example85 x = exp(log(x))
25
false
false
0
8
3
21
10
11
null
null
haskell-opengl/OpenGLRaw
src/Graphics/GL/Functions/F06.hs
bsd-3-clause
-- glDrawRangeElements --------------------------------------------------------- -- | Manual pages for <https://www.opengl.org/sdk/docs/man2/xhtml/glDrawRangeElements.xml OpenGL 2.x> or <https://www.opengl.org/sdk/docs/man3/xhtml/glDrawRangeElements.xml OpenGL 3.x> or <https://www.opengl.org/sdk/docs/man4/html/glDrawR...
836
glDrawRangeElements :: MonadIO m => GLenum -- ^ @mode@ of type [PrimitiveType](Graphics-GL-Groups.html#PrimitiveType). -> GLuint -- ^ @start@. -> GLuint -- ^ @end@. -> GLsizei -- ^ @count@. -> GLenum -- ^ @type@ of type [DrawElementsType](Graphics-GL-Groups.html#DrawElementsType). -> Ptr a -- ^ @indices@ ...
484
glDrawRangeElements v1 v2 v3 v4 v5 v6 = liftIO $ dyn258 ptr_glDrawRangeElements v1 v2 v3 v4 v5 v6
97
true
true
0
14
104
94
48
46
null
null
noughtmare/yi
yi-keymap-vim/src/Yi/Keymap/Vim/Digraph.hs
gpl-2.0
-- CYRILLIC SMALL LETTER EL switch 'm' '=' = '\x043C'
53
switch 'm' '=' = '\x043C'
25
switch 'm' '=' = '\x043C'
25
true
false
0
5
9
12
6
6
null
null
amir/hmscrobbler
src/Flac.hs
unlicense
getMetadataBlocks _ = do block <- getMetadataBlock rest <- getMetadataBlocks (isLast $ header block) return (block : rest)
128
getMetadataBlocks _ = do block <- getMetadataBlock rest <- getMetadataBlocks (isLast $ header block) return (block : rest)
128
getMetadataBlocks _ = do block <- getMetadataBlock rest <- getMetadataBlocks (isLast $ header block) return (block : rest)
128
false
false
0
11
23
49
22
27
null
null
raichoo/Idris-dev
src/Idris/Reflection.hs
bsd-3-clause
reifyApp _ f args = fail ("Unknown tactic " ++ show (f, args))
62
reifyApp _ f args = fail ("Unknown tactic " ++ show (f, args))
62
reifyApp _ f args = fail ("Unknown tactic " ++ show (f, args))
62
false
false
0
9
12
32
16
16
null
null
mcschroeder/ghc
compiler/nativeGen/PPC/Ppr.hs
bsd-3-clause
pprInstr LWSYNC = text "\tlwsync"
33
pprInstr LWSYNC = text "\tlwsync"
33
pprInstr LWSYNC = text "\tlwsync"
33
false
false
0
5
4
12
5
7
null
null
sopvop/access-rolebased
src/Control/Access/RoleBased/Checker.hs
bsd-3-clause
t14 = tX $ hasAnyRoles [ addRoleData "arg2" "z" "multi_args" , addRoleData "arg2" "aaa" "multi_args" ]
125
t14 = tX $ hasAnyRoles [ addRoleData "arg2" "z" "multi_args" , addRoleData "arg2" "aaa" "multi_args" ]
125
t14 = tX $ hasAnyRoles [ addRoleData "arg2" "z" "multi_args" , addRoleData "arg2" "aaa" "multi_args" ]
125
false
false
1
8
38
36
16
20
null
null
DougBurke/swish
tests/GraphTest.hs
lgpl-2.1
g105 :: GraphMem LabelMem g105 = arcsToGraph [ t10102, t10203, t10304, t10405, t10901, t10510, t10607, t10708, t10809, t11006 ]
184
g105 :: GraphMem LabelMem g105 = arcsToGraph [ t10102, t10203, t10304, t10405, t10901, t10510, t10607, t10708, t10809, t11006 ]
184
g105 = arcsToGraph [ t10102, t10203, t10304, t10405, t10901, t10510, t10607, t10708, t10809, t11006 ]
158
false
true
1
5
75
50
28
22
null
null
castaway/pandoc
src/Text/Pandoc/Readers/RST.hs
gpl-2.0
referenceLink :: GenParser Char ParserState Inline referenceLink = try $ do label' <- (quotedReferenceName <|> simpleReferenceName) >>~ char '_' state <- getState let keyTable = stateKeys state let isAnonKey x = case fromKey x of [Str ('_':_)] -> True _ ...
947
referenceLink :: GenParser Char ParserState Inline referenceLink = try $ do label' <- (quotedReferenceName <|> simpleReferenceName) >>~ char '_' state <- getState let keyTable = stateKeys state let isAnonKey x = case fromKey x of [Str ('_':_)] -> True _ ...
947
referenceLink = try $ do label' <- (quotedReferenceName <|> simpleReferenceName) >>~ char '_' state <- getState let keyTable = stateKeys state let isAnonKey x = case fromKey x of [Str ('_':_)] -> True _ -> False key <- option (toKey label') $ ...
896
false
true
3
17
344
295
136
159
null
null
CindyLinz/Haskell-HVG
src/HVG/SVGState.hs
bsd-3-clause
line :: Pos -> Builder info SVGState PathDrawing () line pos = do tr <- getTr appendAgingState $ PathDrawing undefined [appTrans tr (LineSeg pos)] appTr $ transition pos
175
line :: Pos -> Builder info SVGState PathDrawing () line pos = do tr <- getTr appendAgingState $ PathDrawing undefined [appTrans tr (LineSeg pos)] appTr $ transition pos
175
line pos = do tr <- getTr appendAgingState $ PathDrawing undefined [appTrans tr (LineSeg pos)] appTr $ transition pos
123
false
true
0
12
33
72
33
39
null
null
ekmett/ghc
compiler/llvmGen/LlvmCodeGen/Base.hs
bsd-3-clause
runLlvm :: DynFlags -> LlvmVersion -> BufHandle -> UniqSupply -> LlvmM () -> IO () runLlvm dflags ver out us m = do _ <- runLlvmM m env return () where env = LlvmEnv { envFunMap = emptyUFM , envVarMap = emptyUFM , envStackRegs = [] , envUsedVar...
727
runLlvm :: DynFlags -> LlvmVersion -> BufHandle -> UniqSupply -> LlvmM () -> IO () runLlvm dflags ver out us m = do _ <- runLlvmM m env return () where env = LlvmEnv { envFunMap = emptyUFM , envVarMap = emptyUFM , envStackRegs = [] , envUsedVar...
727
runLlvm dflags ver out us m = do _ <- runLlvmM m env return () where env = LlvmEnv { envFunMap = emptyUFM , envVarMap = emptyUFM , envStackRegs = [] , envUsedVars = [] , envAliases = emptyUniqSet , en...
644
false
true
0
11
362
159
89
70
null
null
seni/copilot-libraries
src/Copilot/Library/Statistics.hs
bsd-3-clause
-- | Summation. sum :: ( Typed a, Num a, Eq a ) => Int -> Stream a -> Stream a sum n s = nfoldl1 n (+) s
104
sum :: ( Typed a, Num a, Eq a ) => Int -> Stream a -> Stream a sum n s = nfoldl1 n (+) s
88
sum n s = nfoldl1 n (+) s
25
true
true
0
9
28
68
32
36
null
null
fmapfmapfmap/amazonka
core/src/Network/AWS/Data/Map.hs
mpl-2.0
toQueryMap :: (Hashable k, Eq k, ToQuery k, ToQuery v) => ByteString -> ByteString -> ByteString -> Map k v -> QueryString toQueryMap e k v = toQueryList e . map f . toList where f (x, y) = QList [k =: toQuery x, v =: toQuery y]
289
toQueryMap :: (Hashable k, Eq k, ToQuery k, ToQuery v) => ByteString -> ByteString -> ByteString -> Map k v -> QueryString toQueryMap e k v = toQueryList e . map f . toList where f (x, y) = QList [k =: toQuery x, v =: toQuery y]
289
toQueryMap e k v = toQueryList e . map f . toList where f (x, y) = QList [k =: toQuery x, v =: toQuery y]
111
false
true
0
10
108
119
59
60
null
null
oden-lang/oden
src/Oden/Type/Kind.hs
mit
kindOf :: Type -> Kind kindOf REmpty{}= Row
43
kindOf :: Type -> Kind kindOf REmpty{}= Row
43
kindOf REmpty{}= Row
20
false
true
0
6
7
22
11
11
null
null
asztal/transact-sql
Language/TransactSql/Parser.hs
bsd-3-clause
withPosition :: SourcePos -> P a -> P a withPosition newPos p = do oldPos <- getPosition setPosition newPos x <- p setPosition oldPos return x
152
withPosition :: SourcePos -> P a -> P a withPosition newPos p = do oldPos <- getPosition setPosition newPos x <- p setPosition oldPos return x
152
withPosition newPos p = do oldPos <- getPosition setPosition newPos x <- p setPosition oldPos return x
112
false
true
0
7
35
62
26
36
null
null
vdweegen/UvA-Software_Testing
Lab6/Willem/Lecture6.hs
gpl-3.0
pairs :: [(Integer,Integer)] pairs = concatMap (\ n -> zip [1..n] (repeat n)) [1..]
83
pairs :: [(Integer,Integer)] pairs = concatMap (\ n -> zip [1..n] (repeat n)) [1..]
83
pairs = concatMap (\ n -> zip [1..n] (repeat n)) [1..]
54
false
true
0
10
13
52
29
23
null
null
seppeljordan/geimskell
Geometry.hs
gpl-3.0
rectangleMidpoint :: Rectangle -> Vector rectangleMidpoint (Rectangle v w) = vectorMidpoint v w
95
rectangleMidpoint :: Rectangle -> Vector rectangleMidpoint (Rectangle v w) = vectorMidpoint v w
95
rectangleMidpoint (Rectangle v w) = vectorMidpoint v w
54
false
true
0
7
12
31
15
16
null
null
fmapfmapfmap/amazonka
amazonka-rds/gen/Network/AWS/RDS/ModifyDBCluster.hs
mpl-2.0
-- | The DB cluster identifier for the cluster being modified. This parameter -- is not case-sensitive. -- -- Constraints: -- -- - Must be the identifier for an existing DB cluster. -- - Must contain from 1 to 63 alphanumeric characters or hyphens. -- - First character must be a letter. -- - Cannot end with a h...
518
mdcDBClusterIdentifier :: Lens' ModifyDBCluster (Maybe Text) mdcDBClusterIdentifier = lens _mdcDBClusterIdentifier (\ s a -> s{_mdcDBClusterIdentifier = a})
156
mdcDBClusterIdentifier = lens _mdcDBClusterIdentifier (\ s a -> s{_mdcDBClusterIdentifier = a})
95
true
true
1
9
88
59
33
26
null
null
GaloisInc/halvm-ghc
compiler/basicTypes/VarSet.hs
bsd-3-clause
sizeDVarSet :: DVarSet -> Int sizeDVarSet = sizeUniqDSet
56
sizeDVarSet :: DVarSet -> Int sizeDVarSet = sizeUniqDSet
56
sizeDVarSet = sizeUniqDSet
26
false
true
0
5
7
15
8
7
null
null
databrary/databrary
src/Service/Mail.hs
agpl-3.0
sendMail :: MonadMail c m => [Either BS.ByteString Account] -> [Either BS.ByteString Account] -> T.Text -> TL.Text -> m () sendMail [] [] _ _ = return ()
153
sendMail :: MonadMail c m => [Either BS.ByteString Account] -> [Either BS.ByteString Account] -> T.Text -> TL.Text -> m () sendMail [] [] _ _ = return ()
153
sendMail [] [] _ _ = return ()
30
false
true
0
11
27
83
40
43
null
null
mjoldfield/plotfont
src/Graphics/PlotFont.hs
gpl-2.0
addErrorMsg :: (Either String a) -> (Either String a) addErrorMsg (Left a) = Left $ "Missing chars: " ++ a
106
addErrorMsg :: (Either String a) -> (Either String a) addErrorMsg (Left a) = Left $ "Missing chars: " ++ a
106
addErrorMsg (Left a) = Left $ "Missing chars: " ++ a
52
false
true
0
7
19
48
24
24
null
null
JacquesCarette/literate-scientific-software
People/Dan/Presentations/CommitteeMeeting4/BodyOld.hs
bsd-2-clause
fig_5 = Figure (S "Figure 5:" +:+ (demandq ^. defn) +:+ sParen (P (demand ^. symbol)) +:+ S "versus" +:+ (sD ^. term) +:+ S "versus" +:+ (char_weight ^. term) +:+ sParen (P (sflawParamM ^. symbol))) "ASTM_F2248-09.png"
224
fig_5 = Figure (S "Figure 5:" +:+ (demandq ^. defn) +:+ sParen (P (demand ^. symbol)) +:+ S "versus" +:+ (sD ^. term) +:+ S "versus" +:+ (char_weight ^. term) +:+ sParen (P (sflawParamM ^. symbol))) "ASTM_F2248-09.png"
224
fig_5 = Figure (S "Figure 5:" +:+ (demandq ^. defn) +:+ sParen (P (demand ^. symbol)) +:+ S "versus" +:+ (sD ^. term) +:+ S "versus" +:+ (char_weight ^. term) +:+ sParen (P (sflawParamM ^. symbol))) "ASTM_F2248-09.png"
224
false
false
0
17
42
104
52
52
null
null
freizl/freizl.github.com-old
src/Hakyll/Core/Compiler/Require.hs
bsd-3-clause
-------------------------------------------------------------------------------- -- | This function allows you to 'load' a dynamic list of items loadAll :: (Binary a, Typeable a) => Pattern -> Compiler [Item a] loadAll pattern = loadAllSnapshots pattern final
259
loadAll :: (Binary a, Typeable a) => Pattern -> Compiler [Item a] loadAll pattern = loadAllSnapshots pattern final
114
loadAll pattern = loadAllSnapshots pattern final
48
true
true
0
9
31
49
25
24
null
null
Hodapp87/ivory
ivory-model-check/test/Test.hs
bsd-3-clause
m5 :: Module m5 = package "foo5" (incl foo5)
44
m5 :: Module m5 = package "foo5" (incl foo5)
44
m5 = package "foo5" (incl foo5)
31
false
true
0
7
8
28
12
16
null
null
beni55/pandoc
src/Text/Pandoc/Writers/Custom.hs
gpl-2.0
inlineToCustom lua (Quoted SingleQuote lst) = do x <- inlineListToCustom lua lst callfunc lua "writer.singlequoted" x
121
inlineToCustom lua (Quoted SingleQuote lst) = do x <- inlineListToCustom lua lst callfunc lua "writer.singlequoted" x
121
inlineToCustom lua (Quoted SingleQuote lst) = do x <- inlineListToCustom lua lst callfunc lua "writer.singlequoted" x
121
false
false
0
8
19
43
18
25
null
null
dmbarbour/awelon
hsrc/ABC/Imperative/Prelude.hs
bsd-3-clause
- | merge from a sum3 mergeSum3 :: Bool -> V cx -> V cx -> V cx mergeSum3 False a _ = a
88
mergeSum3 :: Bool -> V cx -> V cx -> V cx mergeSum3 False a _ = a
65
mergeSum3 False a _ = a
23
true
true
1
8
24
35
20
15
null
null
DavidAlphaFox/ghc
libraries/Cabal/Cabal/Distribution/Simple/Compiler.hs
bsd-3-clause
-- |For the given compiler, return the extensions it does not support. unsupportedExtensions :: Compiler -> [Extension] -> [Extension] unsupportedExtensions comp exts = [ ext | ext <- exts , isNothing (extensionToFlag comp ext) ]
239
unsupportedExtensions :: Compiler -> [Extension] -> [Extension] unsupportedExtensions comp exts = [ ext | ext <- exts , isNothing (extensionToFlag comp ext) ]
168
unsupportedExtensions comp exts = [ ext | ext <- exts , isNothing (extensionToFlag comp ext) ]
104
true
true
0
9
44
57
30
27
null
null
ideas-edu/ideas
src/Ideas/Common/Rule/Abstract.hs
apache-2.0
-- | A special (minor) rule that checks a predicate (and returns the identity -- if the predicate holds) checkRule :: IsId n => n -> (a -> Bool) -> Rule a checkRule n p = minorRule n $ \a -> [ a | p a ]
205
checkRule :: IsId n => n -> (a -> Bool) -> Rule a checkRule n p = minorRule n $ \a -> [ a | p a ]
97
checkRule n p = minorRule n $ \a -> [ a | p a ]
47
true
true
0
9
49
65
33
32
null
null
andorp/bead
src/Bead/View/TemplateAndComponentNames.hs
bsd-3-clause
evaluationCommentOnlyField = EvaluationField "evaluation-comment-only"
70
evaluationCommentOnlyField = EvaluationField "evaluation-comment-only"
70
evaluationCommentOnlyField = EvaluationField "evaluation-comment-only"
70
false
false
0
5
3
9
4
5
null
null
cdxr/haskell-interface
src/Data/Interface/Type/Type.hs
bsd-3-clause
showsKind :: Kind -> ShowS showsKind k = case k of KindVar s -> showString s StarKind -> showChar '*' HashKind -> showChar '#' SuperKind -> showString "BOX" ConstraintKind -> showString "Constraint" PromotedType t -> showString "[showsKind: ERROR PromotedType TODO]" FunKind ka kr -> showsKin...
359
showsKind :: Kind -> ShowS showsKind k = case k of KindVar s -> showString s StarKind -> showChar '*' HashKind -> showChar '#' SuperKind -> showString "BOX" ConstraintKind -> showString "Constraint" PromotedType t -> showString "[showsKind: ERROR PromotedType TODO]" FunKind ka kr -> showsKin...
359
showsKind k = case k of KindVar s -> showString s StarKind -> showChar '*' HashKind -> showChar '#' SuperKind -> showString "BOX" ConstraintKind -> showString "Constraint" PromotedType t -> showString "[showsKind: ERROR PromotedType TODO]" FunKind ka kr -> showsKind ka . showString " -> " . ...
332
false
true
0
10
81
110
49
61
null
null
DavidAlphaFox/ghc
libraries/Cabal/cabal-install/Distribution/Client/Setup.hs
bsd-3-clause
installCommand :: CommandUI (ConfigFlags, ConfigExFlags, InstallFlags, HaddockFlags) installCommand = CommandUI { commandName = "install", commandSynopsis = "Install packages.", commandUsage = usageAlternatives "install" [ "[FLAGS]" , "[FLAGS]...
2,705
installCommand :: CommandUI (ConfigFlags, ConfigExFlags, InstallFlags, HaddockFlags) installCommand = CommandUI { commandName = "install", commandSynopsis = "Install packages.", commandUsage = usageAlternatives "install" [ "[FLAGS]" , "[FLAGS]...
2,705
installCommand = CommandUI { commandName = "install", commandSynopsis = "Install packages.", commandUsage = usageAlternatives "install" [ "[FLAGS]" , "[FLAGS] PACKAGES" ], commandDescriptio...
2,620
false
true
1
31
847
600
335
265
null
null
GaloisInc/saw-script
cryptol-saw-core/src/Verifier/SAW/Cryptol/Monadify.hs
bsd-3-clause
-- | Build a 'MacroMapping' from an identifier to a function of argument type mmArg :: Ident -> Ident -> MacroMapping mmArg from_id to_id = (ModuleIdentifier from_id, argGlobalMacro (ModuleIdentifier from_id) to_id)
238
mmArg :: Ident -> Ident -> MacroMapping mmArg from_id to_id = (ModuleIdentifier from_id, argGlobalMacro (ModuleIdentifier from_id) to_id)
160
mmArg from_id to_id = (ModuleIdentifier from_id, argGlobalMacro (ModuleIdentifier from_id) to_id)
120
true
true
0
8
53
45
23
22
null
null
sdiehl/ghc
compiler/GHC/Hs/Binds.hs
bsd-3-clause
isDefaultMethod :: TcSpecPrags -> Bool isDefaultMethod IsDefaultMethod = True
77
isDefaultMethod :: TcSpecPrags -> Bool isDefaultMethod IsDefaultMethod = True
77
isDefaultMethod IsDefaultMethod = True
38
false
true
0
5
8
18
9
9
null
null
nevrenato/Hets_Fork
Isabelle/IsaConsts.hs
gpl-2.0
divV :: VName divV = VName divS $ Just $ AltSyntax "(_ div/ _)" [70, 71] 70
75
divV :: VName divV = VName divS $ Just $ AltSyntax "(_ div/ _)" [70, 71] 70
75
divV = VName divS $ Just $ AltSyntax "(_ div/ _)" [70, 71] 70
61
false
true
0
7
16
35
18
17
null
null
RossOgilvie/MathPrelude
MathPrelude/Prelude/CorePrelude.hs
gpl-3.0
-- | > concat = mconcat concat :: Monoid w => [w] -> w concat = mconcat
71
concat :: Monoid w => [w] -> w concat = mconcat
47
concat = mconcat
16
true
true
0
8
16
33
15
18
null
null
mgrabmueller/harpy
Harpy/X86CodeGen.hs
bsd-3-clause
x86_cc_a = 4
14
x86_cc_a = 4
14
x86_cc_a = 4
14
false
false
0
4
4
6
3
3
null
null
d3zd3z/harchive
test/FileIndexCheck.hs
gpl-2.0
-- Randomly map the integers onto the blob kinds use. blobKinds :: Array Int String blobKinds = listArray (0, length items - 1) items where items = ["BLOB", "DIR ", "DIR0", "DIR1", "IND0", "IND1", "IND2", "BACK"]
215
blobKinds :: Array Int String blobKinds = listArray (0, length items - 1) items where items = ["BLOB", "DIR ", "DIR0", "DIR1", "IND0", "IND1", "IND2", "BACK"]
161
blobKinds = listArray (0, length items - 1) items where items = ["BLOB", "DIR ", "DIR0", "DIR1", "IND0", "IND1", "IND2", "BACK"]
131
true
true
1
8
38
76
39
37
null
null
eligottlieb/chaitin
src/Evaluator.hs
mit
numericBinop _ singleVal@[_] = throwError $ NumArgs 2 singleVal
64
numericBinop _ singleVal@[_] = throwError $ NumArgs 2 singleVal
64
numericBinop _ singleVal@[_] = throwError $ NumArgs 2 singleVal
64
false
false
0
7
9
26
13
13
null
null
input-output-hk/cardano-sl
wallet/test/unit/Util/MultiSet.hs
apache-2.0
size :: MultiSet a -> Int size = multiSetSize
45
size :: MultiSet a -> Int size = multiSetSize
45
size = multiSetSize
19
false
true
0
7
8
25
10
15
null
null
seckcoder/vector
Data/Vector/Fusion/Bundle/Monadic.hs
bsd-3-clause
singleton x = fromStream (S.singleton x) (Exact 1)
50
singleton x = fromStream (S.singleton x) (Exact 1)
50
singleton x = fromStream (S.singleton x) (Exact 1)
50
false
false
1
8
7
32
13
19
null
null
christiaanb/ghc
compiler/basicTypes/Id.hs
bsd-3-clause
-- | Make a global 'Id' without any extra information at all mkVanillaGlobal :: Name -> Type -> Id mkVanillaGlobal name ty = mkVanillaGlobalWithInfo name ty vanillaIdInfo
170
mkVanillaGlobal :: Name -> Type -> Id mkVanillaGlobal name ty = mkVanillaGlobalWithInfo name ty vanillaIdInfo
109
mkVanillaGlobal name ty = mkVanillaGlobalWithInfo name ty vanillaIdInfo
71
true
true
0
8
26
37
17
20
null
null
jcberentsen/haskell
tensorflow-ops/src/TensorFlow/Gradient.hs
apache-2.0
opGrad "Min" u v w = opGrad "Max" u v w
39
opGrad "Min" u v w = opGrad "Max" u v w
39
opGrad "Min" u v w = opGrad "Max" u v w
39
false
false
1
5
10
26
11
15
null
null
brendanhay/gogol
gogol-cloudprivatecatalogproducer/gen/Network/Google/Resource/CloudPrivateCatalogProducer/Catalogs/Products/Versions/List.hs
mpl-2.0
-- | V1 error format. cpvlXgafv :: Lens' CatalogsProductsVersionsList (Maybe Xgafv) cpvlXgafv = lens _cpvlXgafv (\ s a -> s{_cpvlXgafv = a})
142
cpvlXgafv :: Lens' CatalogsProductsVersionsList (Maybe Xgafv) cpvlXgafv = lens _cpvlXgafv (\ s a -> s{_cpvlXgafv = a})
120
cpvlXgafv = lens _cpvlXgafv (\ s a -> s{_cpvlXgafv = a})
58
true
true
0
9
23
48
25
23
null
null
akc/gfscript
hops.hs
bsd-3-clause
readPrgs :: Options -> IO ([Expr], [Core]) readPrgs opts = do prgs <- concatMap (expand . parseExprErr) <$> if script opts == "" then return (map B.pack (program opts)) else lines' <$> BL.readFile (script opts) return (prgs, core <$> prgs)
295
readPrgs :: Options -> IO ([Expr], [Core]) readPrgs opts = do prgs <- concatMap (expand . parseExprErr) <$> if script opts == "" then return (map B.pack (program opts)) else lines' <$> BL.readFile (script opts) return (prgs, core <$> prgs)
295
readPrgs opts = do prgs <- concatMap (expand . parseExprErr) <$> if script opts == "" then return (map B.pack (program opts)) else lines' <$> BL.readFile (script opts) return (prgs, core <$> prgs)
252
false
true
0
14
95
119
60
59
null
null
shlevy/ghc
compiler/specialise/Rules.hs
bsd-3-clause
unionRuleBase :: RuleBase -> RuleBase -> RuleBase unionRuleBase rb1 rb2 = plusNameEnv_C (++) rb1 rb2
100
unionRuleBase :: RuleBase -> RuleBase -> RuleBase unionRuleBase rb1 rb2 = plusNameEnv_C (++) rb1 rb2
100
unionRuleBase rb1 rb2 = plusNameEnv_C (++) rb1 rb2
50
false
true
0
8
14
38
18
20
null
null
rueshyna/gogol
gogol-fonts/gen/Network/Google/Fonts/Types/Product.hs
mpl-2.0
-- | The available variants for the font. wVariants :: Lens' Webfont [Text] wVariants = lens _wVariants (\ s a -> s{_wVariants = a}) . _Default . _Coerce
167
wVariants :: Lens' Webfont [Text] wVariants = lens _wVariants (\ s a -> s{_wVariants = a}) . _Default . _Coerce
125
wVariants = lens _wVariants (\ s a -> s{_wVariants = a}) . _Default . _Coerce
91
true
true
0
11
41
53
28
25
null
null
pimlott/diff-du
diff-du.hs
bsd-3-clause
threshDu :: Thresher -> [Du] -> [Du] threshDu t dus = snd (threshDu' dus) where -- Returns the total size accepted and the accepted [Du]. threshDu' :: [Du] -> (Maybe Int, [Du]) threshDu' dus = foldr (\du (s, rs) -> let (s', rs') = threshDu1 du in (s `addMaybe` s', rs' ++ r...
654
threshDu :: Thresher -> [Du] -> [Du] threshDu t dus = snd (threshDu' dus) where -- Returns the total size accepted and the accepted [Du]. threshDu' :: [Du] -> (Maybe Int, [Du]) threshDu' dus = foldr (\du (s, rs) -> let (s', rs') = threshDu1 du in (s `addMaybe` s', rs' ++ r...
654
threshDu t dus = snd (threshDu' dus) where -- Returns the total size accepted and the accepted [Du]. threshDu' :: [Du] -> (Maybe Int, [Du]) threshDu' dus = foldr (\du (s, rs) -> let (s', rs') = threshDu1 du in (s `addMaybe` s', rs' ++ rs)) (Nothing,...
617
false
true
0
13
262
261
139
122
null
null
jvilar/hrows
lib/Model/RowStore/Base.hs
gpl-2.0
-- |Sort the rows of the store according to the field sortRows :: FieldPos -> SortDirection -> RowStore -> RowStore sortRows fp Ascending = sortRowsOn (!!! fp)
159
sortRows :: FieldPos -> SortDirection -> RowStore -> RowStore sortRows fp Ascending = sortRowsOn (!!! fp)
105
sortRows fp Ascending = sortRowsOn (!!! fp)
43
true
true
0
7
26
36
19
17
null
null
mdsteele/fallback
src/Fallback/Data/Queue.hs
gpl-3.0
-- | /O(1)/. Remove and return an element from the front of the queue, or -- return 'Nothing' if the queue is empty. pop :: Queue a -> Maybe (a, Queue a) pop (Queue s) = case Seq.viewl s of Seq.EmptyL -> Nothing item Seq.:< s' -> Just (item, Queue s') --------------------------------------------------------...
464
pop :: Queue a -> Maybe (a, Queue a) pop (Queue s) = case Seq.viewl s of Seq.EmptyL -> Nothing item Seq.:< s' -> Just (item, Queue s') ------------------------------------------------------------------------------- -- Conversion: -- | /O(n)/. Return a list of all elements in the queue, in the order that --...
346
pop (Queue s) = case Seq.viewl s of Seq.EmptyL -> Nothing item Seq.:< s' -> Just (item, Queue s') ------------------------------------------------------------------------------- -- Conversion: -- | /O(n)/. Return a list of all elements in the queue, in the order that -- they would be popped out.
309
true
true
0
10
89
90
46
44
null
null
ComputationWithBoundedResources/jat
src/JFlow/PointsTo.hs
bsd-3-clause
nodes :: PtNode -> PtGr -> PtNodes nodes n gr = to `S.map` edgesFrom n gr
73
nodes :: PtNode -> PtGr -> PtNodes nodes n gr = to `S.map` edgesFrom n gr
73
nodes n gr = to `S.map` edgesFrom n gr
38
false
true
0
6
15
37
19
18
null
null
nfjinjing/chu2
src/Chu2/Interface/Hack2.hs
bsd-3-clause
b2f_Utf8Encoding :: ByteString -> Field b2f_Utf8Encoding = toString
67
b2f_Utf8Encoding :: ByteString -> Field b2f_Utf8Encoding = toString
67
b2f_Utf8Encoding = toString
27
false
true
0
7
7
22
9
13
null
null
klarh/haste-webgl
src/Haste/Graphics/WebGL/PerFragment.hs
mit
blendFuncSeparate::Context->SourceFactor->DestFactor->SourceFactor->DestFactor-> IO () blendFuncSeparate = ffi "(function(ctx, srcRGB, dstRGB, srcAlpha, dstAlpha) {ctx.blendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha);})"
244
blendFuncSeparate::Context->SourceFactor->DestFactor->SourceFactor->DestFactor-> IO () blendFuncSeparate = ffi "(function(ctx, srcRGB, dstRGB, srcAlpha, dstAlpha) {ctx.blendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha);})"
244
blendFuncSeparate = ffi "(function(ctx, srcRGB, dstRGB, srcAlpha, dstAlpha) {ctx.blendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha);})"
138
false
true
0
11
33
39
19
20
null
null
Crazycolorz5/Haskell-Code
ImperativeQuicksort.hs
unlicense
shuffle myArr len = mapM_ (\i-> rand >>= swap myArr i . (+i) . flip mod (len-i)) $ take len [0..]
97
shuffle myArr len = mapM_ (\i-> rand >>= swap myArr i . (+i) . flip mod (len-i)) $ take len [0..]
97
shuffle myArr len = mapM_ (\i-> rand >>= swap myArr i . (+i) . flip mod (len-i)) $ take len [0..]
97
false
false
0
12
20
67
34
33
null
null
kadena-io/pact
src-ghc/Pact/ApiReq.hs
bsd-3-clause
-- | Construct an Exec request message -- mkExec :: Text -- ^ code -> Value -- ^ optional environment data -> PublicMeta -- ^ public metadata -> [SomeKeyPairCaps] -- ^ signing keypairs + caplists -> Maybe NetworkId -- ^ optional 'NetworkId' -> Maybe Text -- ^ optional nonce -> IO (...
584
mkExec :: Text -- ^ code -> Value -- ^ optional environment data -> PublicMeta -- ^ public metadata -> [SomeKeyPairCaps] -- ^ signing keypairs + caplists -> Maybe NetworkId -- ^ optional 'NetworkId' -> Maybe Text -- ^ optional nonce -> IO (Command Text) mkExec code mdata pubMeta kp...
542
mkExec code mdata pubMeta kps nid ridm = do rid <- mkNonce ridm cmd <- mkCommand kps pubMeta rid nid (Exec (ExecMsg code mdata)) return $ decodeUtf8 <$> cmd -- | Construct an Exec request message --
250
true
true
0
14
179
134
67
67
null
null
hsyl20/HViperVM
lib/ViperVM/Library/OpenCL/FloatMatrixAdd.hs
lgpl-3.0
kernel :: IO Kernel kernel = do prog <- program initKernel prog "floatMatrixAdd" [] config -- | Configure kernel execution
129
kernel :: IO Kernel kernel = do prog <- program initKernel prog "floatMatrixAdd" [] config -- | Configure kernel execution
129
kernel = do prog <- program initKernel prog "floatMatrixAdd" [] config -- | Configure kernel execution
109
false
true
1
9
26
40
17
23
null
null
mettekou/ghc
compiler/basicTypes/Unique.hs
bsd-3-clause
-- used in NCG spiller to create spill VirtualRegs mkPseudoUniqueH i = mkUnique 'H' i
85
mkPseudoUniqueH i = mkUnique 'H' i
34
mkPseudoUniqueH i = mkUnique 'H' i
34
true
false
0
5
14
15
7
8
null
null
MgaMPKAy/language-sh
Language/Sh/Expansion.hs
bsd-3-clause
expandWith _ [] = return []
27
expandWith _ [] = return []
27
expandWith _ [] = return []
27
false
false
0
6
5
18
8
10
null
null
alexander-at-github/eta
compiler/ETA/Utils/Util.hs
bsd-3-clause
hashString :: String -> Int32 hashString = foldl' f golden where f m c = fromIntegral (ord c) * magic + hashInt32 m magic = fromIntegral (0xdeadbeef :: Word32)
171
hashString :: String -> Int32 hashString = foldl' f golden where f m c = fromIntegral (ord c) * magic + hashInt32 m magic = fromIntegral (0xdeadbeef :: Word32)
171
hashString = foldl' f golden where f m c = fromIntegral (ord c) * magic + hashInt32 m magic = fromIntegral (0xdeadbeef :: Word32)
141
false
true
2
8
40
81
34
47
null
null
wavewave/madgraph-auto-dataset
src/HEP/Automation/MadGraph/Dataset/Set20110717set3ATLAS.hs
gpl-3.0
sets :: [Int] sets = [1..50]
29
sets :: [Int] sets = [1..50]
29
sets = [1..50]
15
false
true
0
7
6
26
12
14
null
null
vladfi1/hs-misc
lib/Misc/Nats.hs
mit
s3 = SS s2
10
s3 = SS s2
10
s3 = SS s2
10
false
false
1
5
3
13
4
9
null
null
DaMSL/K3
src/Language/K3/Parser/ProgramBuilder.hs
apache-2.0
registerSocketDataTriggerFn :: K3 Expression registerSocketDataTriggerFn = EC.variable "registerSocketDataTrigger"
114
registerSocketDataTriggerFn :: K3 Expression registerSocketDataTriggerFn = EC.variable "registerSocketDataTrigger"
114
registerSocketDataTriggerFn = EC.variable "registerSocketDataTrigger"
69
false
true
0
6
7
19
9
10
null
null
Proclivis/wxHaskell
wxcore/src/haskell/Graphics/UI/WXCore/WxcDefs.hs
lgpl-2.1
wxSYS_SCREEN_SMALL :: Int wxSYS_SCREEN_SMALL = 3
48
wxSYS_SCREEN_SMALL :: Int wxSYS_SCREEN_SMALL = 3
48
wxSYS_SCREEN_SMALL = 3
22
false
true
0
4
5
11
6
5
null
null
osa1/StrictCore
src/StrictCore/Syntax.hs
bsd-3-clause
translateType ty@(LitTy _) = ty
33
translateType ty@(LitTy _) = ty
33
translateType ty@(LitTy _) = ty
33
false
false
1
7
6
24
9
15
null
null
3of8/heap
Data/Heap.hs
bsd-2-clause
-- | @'takeWhile' p h@: List the longest prefix of items in @h@ that satisfy @p@. takeWhile :: (HeapItem pol item) => (item -> Bool) -> Heap pol item -> [item] takeWhile p = fst . (span p)
188
takeWhile :: (HeapItem pol item) => (item -> Bool) -> Heap pol item -> [item] takeWhile p = fst . (span p)
106
takeWhile p = fst . (span p)
28
true
true
0
8
37
59
31
28
null
null
zepto-lang/zepto-js
src/Zepto/Primitives/ListPrimitives.hs
gpl-2.0
cdr [DottedList [_] x] = return $ x
35
cdr [DottedList [_] x] = return $ x
35
cdr [DottedList [_] x] = return $ x
35
false
false
0
7
7
25
12
13
null
null
josefs/sbv
Data/SBV/Control/Query.hs
bsd-3-clause
checkSatAssuming :: [SBool] -> Query CheckSatResult checkSatAssuming sBools = fst <$> checkSatAssumingHelper False sBools
121
checkSatAssuming :: [SBool] -> Query CheckSatResult checkSatAssuming sBools = fst <$> checkSatAssumingHelper False sBools
121
checkSatAssuming sBools = fst <$> checkSatAssumingHelper False sBools
69
false
true
0
6
13
33
16
17
null
null
mettekou/ghc
compiler/coreSyn/CoreSyn.hs
bsd-3-clause
isTyCoArg _ = False
31
isTyCoArg _ = False
31
isTyCoArg _ = False
31
false
false
0
4
15
10
4
6
null
null
thalerjonathan/phd
coding/libraries/chimera/examples/ABS/BilateralTrade/Init.hs
gpl-3.0
initBilateralTrade :: Rand StdGen ([BTAgentDef], BTEnvironment) initBilateralTrade = undefined
94
initBilateralTrade :: Rand StdGen ([BTAgentDef], BTEnvironment) initBilateralTrade = undefined
94
initBilateralTrade = undefined
30
false
true
0
7
8
25
14
11
null
null
danr/tikz-fiddling
Areaplot.hs
bsd-3-clause
area :: ResMap -> ResMap -> [(Double,(Int,Int,Int))] area me them = map (fmap summarize) $ go (S.empty,S.empty) events where events = sort [ (t,(f,lr)) | (f,lr) <- M.toList (fmap Left me) ++ M.toList (fmap Right them) , Just t <- [either id id lr] ] go :: Ord f => (Set f,Set f) -> [(t,(f,Eith...
724
area :: ResMap -> ResMap -> [(Double,(Int,Int,Int))] area me them = map (fmap summarize) $ go (S.empty,S.empty) events where events = sort [ (t,(f,lr)) | (f,lr) <- M.toList (fmap Left me) ++ M.toList (fmap Right them) , Just t <- [either id id lr] ] go :: Ord f => (Set f,Set f) -> [(t,(f,Eith...
724
area me them = map (fmap summarize) $ go (S.empty,S.empty) events where events = sort [ (t,(f,lr)) | (f,lr) <- M.toList (fmap Left me) ++ M.toList (fmap Right them) , Just t <- [either id id lr] ] go :: Ord f => (Set f,Set f) -> [(t,(f,Either u v))] -> [(t,(Set f,Set f))] go lr [] = [] go...
671
false
true
0
12
195
477
259
218
null
null
uduki/hsQt
Qtc/Core/QTranslator.hs
bsd-2-clause
qTranslator_deleteLater :: QTranslator a -> IO () qTranslator_deleteLater x0 = withObjectPtr x0 $ \cobj_x0 -> qtc_QTranslator_deleteLater cobj_x0
151
qTranslator_deleteLater :: QTranslator a -> IO () qTranslator_deleteLater x0 = withObjectPtr x0 $ \cobj_x0 -> qtc_QTranslator_deleteLater cobj_x0
151
qTranslator_deleteLater x0 = withObjectPtr x0 $ \cobj_x0 -> qtc_QTranslator_deleteLater cobj_x0
101
false
true
2
7
22
42
19
23
null
null
toothbrush/dotfs
System/DotFS/Core/Parsers.hs
bsd-3-clause
-- | Test-process a given file, and show the result. -- Especially useful for testing in combination with GHCi. testfile :: FilePath -> IO () testfile name = do { fc <- readFile name ; let output = process name fc ; putStrLn output ; return () ...
321
testfile :: FilePath -> IO () testfile name = do { fc <- readFile name ; let output = process name fc ; putStrLn output ; return () }
209
testfile name = do { fc <- readFile name ; let output = process name fc ; putStrLn output ; return () }
179
true
true
0
10
123
68
33
35
null
null
ulricha/dsh
src/Database/DSH/SL/Opt/Properties/Empty.hs
bsd-3-clause
unp :: Show a => VectorProp a -> Either String a unp = unpack "Properties.Empty"
80
unp :: Show a => VectorProp a -> Either String a unp = unpack "Properties.Empty"
80
unp = unpack "Properties.Empty"
31
false
true
0
8
14
39
16
23
null
null