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
dysinger/amazonka
amazonka-storagegateway/gen/Network/AWS/StorageGateway/DescribeBandwidthRateLimit.hs
mpl-2.0
-- | The average upload bandwidth rate limit in bits per second. This field does -- not appear in the response if the upload rate limit is not set. dbrlrAverageUploadRateLimitInBitsPerSec :: Lens' DescribeBandwidthRateLimitResponse (Maybe Natural) dbrlrAverageUploadRateLimitInBitsPerSec = lens _dbrlrAverageUploadRa...
435
dbrlrAverageUploadRateLimitInBitsPerSec :: Lens' DescribeBandwidthRateLimitResponse (Maybe Natural) dbrlrAverageUploadRateLimitInBitsPerSec = lens _dbrlrAverageUploadRateLimitInBitsPerSec (\s a -> s { _dbrlrAverageUploadRateLimitInBitsPerSec = a }) . mapping _Nat
287
dbrlrAverageUploadRateLimitInBitsPerSec = lens _dbrlrAverageUploadRateLimitInBitsPerSec (\s a -> s { _dbrlrAverageUploadRateLimitInBitsPerSec = a }) . mapping _Nat
187
true
true
0
10
74
54
29
25
null
null
unvirtual/Ziped
src/Editor.hs
bsd-2-clause
actionMap InsertLine = Just . insert [] Fwd
47
actionMap InsertLine = Just . insert [] Fwd
47
actionMap InsertLine = Just . insert [] Fwd
47
false
false
0
7
11
21
9
12
null
null
psandahl/big-engine
test/ModelTests.hs
mit
-- | Test assembly of a simple model to vert_P_N_Txs. assembleVertPNTx :: Assertion assembleVertPNTx = Just ([ Vert_P_N_Tx.Vertex { Vert_P_N_Tx.position = V3 1 1 0 , Vert_P_N_Tx.normal = V3 0 0 1 , Vert_P_N_Tx.texCoord = V2 1 1 ...
1,094
assembleVertPNTx :: Assertion assembleVertPNTx = Just ([ Vert_P_N_Tx.Vertex { Vert_P_N_Tx.position = V3 1 1 0 , Vert_P_N_Tx.normal = V3 0 0 1 , Vert_P_N_Tx.texCoord = V2 1 1 } , Vert_P_N_Tx.Vertex { Vert_P_N_Tx.po...
1,040
assembleVertPNTx = Just ([ Vert_P_N_Tx.Vertex { Vert_P_N_Tx.position = V3 1 1 0 , Vert_P_N_Tx.normal = V3 0 0 1 , Vert_P_N_Tx.texCoord = V2 1 1 } , Vert_P_N_Tx.Vertex { Vert_P_N_Tx.position = V3 (-1) 1 0 ...
1,010
true
true
0
13
541
268
148
120
null
null
ninedotnine/dwm-status-haskell
dwm-status.hs
gpl-3.0
playWithDpy :: IO () playWithDpy = openDisplay "" >>= closeDisplay
66
playWithDpy :: IO () playWithDpy = openDisplay "" >>= closeDisplay
66
playWithDpy = openDisplay "" >>= closeDisplay
45
false
true
0
6
9
23
11
12
null
null
LambdaLuminaries/illum
Foundation.hs
bsd-2-clause
deliver y = logLazyText (getLogger y) . Data.Text.Lazy.Encoding.decodeUtf8
74
deliver y = logLazyText (getLogger y) . Data.Text.Lazy.Encoding.decodeUtf8
74
deliver y = logLazyText (getLogger y) . Data.Text.Lazy.Encoding.decodeUtf8
74
false
false
0
8
7
27
14
13
null
null
urbanslug/ghc
testsuite/tests/indexed-types/should_compile/ind2.hs
bsd-3-clause
zipT :: (C a, C b) => T a -> T b -> T (a,b) zipT x y = mkT (unT x, unT y)
73
zipT :: (C a, C b) => T a -> T b -> T (a,b) zipT x y = mkT (unT x, unT y)
73
zipT x y = mkT (unT x, unT y)
29
false
true
0
9
23
69
34
35
null
null
beni55/haste-compiler
libraries/ghc-7.8/array/Data/Array/IO.hs
bsd-3-clause
hGetArray :: Handle -- ^ Handle to read from -> IOUArray Int Word8 -- ^ Array in which to place the values -> Int -- ^ Number of 'Word8's to read -> IO Int -- ^ Returns: the number of 'Word8's actually -- read, which might ...
922
hGetArray :: Handle -- ^ Handle to read from -> IOUArray Int Word8 -- ^ Array in which to place the values -> Int -- ^ Number of 'Word8's to read -> IO Int hGetArray handle (IOUArray (STUArray _l _u n ptr)) count | count == 0 = return 0 |...
734
hGetArray handle (IOUArray (STUArray _l _u n ptr)) count | count == 0 = return 0 | count < 0 || count > n = illegalBufferSize handle "hGetArray" count | otherwise = do -- we would like to read directly into the buffer, but we can't -- be sure that the MutableByteArray# is pinned, so we h...
513
true
true
0
15
327
175
83
92
null
null
hbrouwer/pdrt-sandbox
src/Data/PDRS/ProjectionTable.hs
apache-2.0
universeToItems (PRef p r:prs) l = (Ref r,l,p) : universeToItems prs l
70
universeToItems (PRef p r:prs) l = (Ref r,l,p) : universeToItems prs l
70
universeToItems (PRef p r:prs) l = (Ref r,l,p) : universeToItems prs l
70
false
false
0
8
11
44
22
22
null
null
sjakobi/brick
src/Brick/Widgets/List.hs
bsd-3-clause
-- | Move the list selected index by some (fractional) number of pages. listMoveByPages :: (Foldable t, Splittable t, Ord n, RealFrac m) => m -> GenericList n t e -> EventM n (GenericList n t e) listMoveByPages pages theList = do v <- lookupViewport (theList^.listName...
1,155
listMoveByPages :: (Foldable t, Splittable t, Ord n, RealFrac m) => m -> GenericList n t e -> EventM n (GenericList n t e) listMoveByPages pages theList = do v <- lookupViewport (theList^.listNameL) case v of Nothing -> return theList Just vp -> do...
1,083
listMoveByPages pages theList = do v <- lookupViewport (theList^.listNameL) case v of Nothing -> return theList Just vp -> do let nElems = round $ pages * fromIntegral (vp^.vpSize._2) / fromIntegral (theList^.listItemHeightL) return $ list...
912
true
true
0
22
305
193
99
94
null
null
ku-fpg/thrust-gen
src/Ion/Private/Lang.hs
bsd-3-clause
int :: Int -> Expr Int int = I
31
int :: Int -> Expr Int int = I
30
int = I
7
false
true
0
7
9
24
10
14
null
null
slogsdon/haskell-exercises
pe/src/Util.hs
mit
maximum' (x:xs) = max x (maximum' xs)
37
maximum' (x:xs) = max x (maximum' xs)
37
maximum' (x:xs) = max x (maximum' xs)
37
false
false
0
7
6
27
13
14
null
null
karamellpelle/MEnv
source/OpenGL/IOS/Values.hs
bsd-2-clause
gl_SHORT :: GLenum gl_SHORT = 0x1402
59
gl_SHORT :: GLenum gl_SHORT = 0x1402
59
gl_SHORT = 0x1402
40
false
true
0
4
28
11
6
5
null
null
upwawet/vision
src/Properties/Manager.hs
gpl-3.0
showPropertyManager :: (WithRegistry, WithUI) => IO () showPropertyManager = do Just (Env manager) <- getEnv (Extract :: Extract Ix Manager) _showPropertyManager manager
173
showPropertyManager :: (WithRegistry, WithUI) => IO () showPropertyManager = do Just (Env manager) <- getEnv (Extract :: Extract Ix Manager) _showPropertyManager manager
173
showPropertyManager = do Just (Env manager) <- getEnv (Extract :: Extract Ix Manager) _showPropertyManager manager
118
false
true
0
10
25
63
30
33
null
null
sheyll/b9-vm-image-builder
src/lib/B9/Repository.hs
mit
-- | Select the first 'RemoteRepo' with a given @repoId@. lookupRemoteRepo :: Set RemoteRepo -> String -> Maybe RemoteRepo lookupRemoteRepo repos repoId = Map.lookup repoId repoIdRepoPairs where repoIdRepoPairs = Map.fromList (map (\r@(RemoteRepo rid _ _ _ _) -> (rid, r)) (toList repos)) -- | A 'Map' that...
391
lookupRemoteRepo :: Set RemoteRepo -> String -> Maybe RemoteRepo lookupRemoteRepo repos repoId = Map.lookup repoId repoIdRepoPairs where repoIdRepoPairs = Map.fromList (map (\r@(RemoteRepo rid _ _ _ _) -> (rid, r)) (toList repos)) -- | A 'Map' that maps 'Repository's to the 'SharedImage's they hold. -- --...
333
lookupRemoteRepo repos repoId = Map.lookup repoId repoIdRepoPairs where repoIdRepoPairs = Map.fromList (map (\r@(RemoteRepo rid _ _ _ _) -> (rid, r)) (toList repos)) -- | A 'Map' that maps 'Repository's to the 'SharedImage's they hold. -- -- @since 1.1.0
268
true
true
1
12
71
107
53
54
null
null
alevy/postgresql-orm
src/Database/PostgreSQL/Migrate.hs
gpl-3.0
addModuleHeader _ _ = error "Something wrong..."
48
addModuleHeader _ _ = error "Something wrong..."
48
addModuleHeader _ _ = error "Something wrong..."
48
false
false
0
5
6
14
6
8
null
null
randen/haddock
haddock-api/src/Haddock/Backends/Xhtml/Decl.hs
bsd-2-clause
ppBang _ = noHtml
41
ppBang _ = noHtml
41
ppBang _ = noHtml
41
false
false
0
4
27
10
4
6
null
null
abakst/liquidhaskell
tests/todo/LambdaDeBruijn0.hs
bsd-3-clause
isRenaming [] = True
20
isRenaming [] = True
20
isRenaming [] = True
20
false
false
1
5
3
15
5
10
null
null
nyirog/cis194
lec06.hs
unlicense
isOnStorage :: (Coord -> Tile) -> Coord -> Bool isOnStorage maze c = case maze c of Storage -> True _ -> False
152
isOnStorage :: (Coord -> Tile) -> Coord -> Bool isOnStorage maze c = case maze c of Storage -> True _ -> False
152
isOnStorage maze c = case maze c of Storage -> True _ -> False
104
false
true
0
8
64
56
26
30
null
null
AlexeyRaga/eta
compiler/ETA/Prelude/PrelNames.hs
bsd-3-clause
staticPtrInfoTyConKey :: Unique staticPtrInfoTyConKey = mkPreludeTyConUnique 181
80
staticPtrInfoTyConKey :: Unique staticPtrInfoTyConKey = mkPreludeTyConUnique 181
80
staticPtrInfoTyConKey = mkPreludeTyConUnique 181
48
false
true
0
5
6
14
7
7
null
null
emwap/feldspar-compiler
lib/Feldspar/Compiler/Imperative/FromCore.hs
bsd-3-clause
compileProg env loc (In (App Ut.Tup3 _ [m1, m2, m3])) = do compileProg env (StructField <$> loc <*> pure "member1") m1 compileProg env (StructField <$> loc <*> pure "member2") m2 compileProg env (StructField <$> loc <*> pure "member3") m3
250
compileProg env loc (In (App Ut.Tup3 _ [m1, m2, m3])) = do compileProg env (StructField <$> loc <*> pure "member1") m1 compileProg env (StructField <$> loc <*> pure "member2") m2 compileProg env (StructField <$> loc <*> pure "member3") m3
250
compileProg env loc (In (App Ut.Tup3 _ [m1, m2, m3])) = do compileProg env (StructField <$> loc <*> pure "member1") m1 compileProg env (StructField <$> loc <*> pure "member2") m2 compileProg env (StructField <$> loc <*> pure "member3") m3
250
false
false
0
10
50
112
54
58
null
null
pparkkin/eta
compiler/ETA/HsSyn/HsExpr.hs
bsd-3-clause
pprDo PArrComp stmts = paBrackets $ pprComp stmts
55
pprDo PArrComp stmts = paBrackets $ pprComp stmts
55
pprDo PArrComp stmts = paBrackets $ pprComp stmts
55
false
false
0
6
13
18
8
10
null
null
mariefarrell/Hets
VSE/Prove.hs
gpl-2.0
readUntilMatchParen :: ProcessHandle -> Handle -> String -> IO String readUntilMatchParen = readUntilMatchParenAux 10000
120
readUntilMatchParen :: ProcessHandle -> Handle -> String -> IO String readUntilMatchParen = readUntilMatchParenAux 10000
120
readUntilMatchParen = readUntilMatchParenAux 10000
50
false
true
0
8
13
29
14
15
null
null
zhangjiji/real-world-haskell
ch3.hs
mit
-- execise length' :: (Num a) => [a] -> Int length' [] = 0
58
length' :: (Num a) => [a] -> Int length' [] = 0
47
length' [] = 0
14
true
true
0
9
13
39
19
20
null
null
tittoassini/flat
benchmarks/Main.hs
bsd-3-clause
dataErr f = error . unwords $ ["Data mismatch on",f]
52
dataErr f = error . unwords $ ["Data mismatch on",f]
52
dataErr f = error . unwords $ ["Data mismatch on",f]
52
false
false
4
5
9
28
12
16
null
null
fujimura/mongodb-query-builder
src/MongoDB/QueryBuilder.hs
bsd-3-clause
x <||> Empty = x
20
x <||> Empty = x
20
x <||> Empty = x
20
false
false
3
5
8
16
8
8
null
null
rglew/cis194
src/Week2/Tests.hs
mit
test2_1_1 = TestCase $ True @=? formableBy "fun" ['x','n','i','f','u','e','l']
80
test2_1_1 = TestCase $ True @=? formableBy "fun" ['x','n','i','f','u','e','l']
80
test2_1_1 = TestCase $ True @=? formableBy "fun" ['x','n','i','f','u','e','l']
80
false
false
3
7
10
44
23
21
null
null
mcschroeder/ghc
compiler/coreSyn/CoreFVs.hs
bsd-3-clause
expr_fvs (App fun arg) fv_cand in_scope acc = (expr_fvs fun `unionFV` expr_fvs arg) fv_cand in_scope acc
106
expr_fvs (App fun arg) fv_cand in_scope acc = (expr_fvs fun `unionFV` expr_fvs arg) fv_cand in_scope acc
106
expr_fvs (App fun arg) fv_cand in_scope acc = (expr_fvs fun `unionFV` expr_fvs arg) fv_cand in_scope acc
106
false
false
0
8
17
47
22
25
null
null
Philonous/pontarius-xmpp
source/Network/Xmpp/Stream.hs
bsd-3-clause
-- nonblocking version. Changes to the connection are ignored! withStream' :: StateT StreamState IO a -> Stream -> IO a withStream' action (Stream stream) = do stream_ <- atomically $ readTMVar stream (r, _) <- runStateT action stream_ return r
256
withStream' :: StateT StreamState IO a -> Stream -> IO a withStream' action (Stream stream) = do stream_ <- atomically $ readTMVar stream (r, _) <- runStateT action stream_ return r
193
withStream' action (Stream stream) = do stream_ <- atomically $ readTMVar stream (r, _) <- runStateT action stream_ return r
136
true
true
0
9
51
79
37
42
null
null
Bodigrim/arithmoi
Math/NumberTheory/Moduli/SomeMod.hs
mit
liftBinOp fm _ (InfMod rx) (SomeMod my) = SomeMod (fromRational rx `fm` my)
76
liftBinOp fm _ (InfMod rx) (SomeMod my) = SomeMod (fromRational rx `fm` my)
76
liftBinOp fm _ (InfMod rx) (SomeMod my) = SomeMod (fromRational rx `fm` my)
76
false
false
1
8
13
46
21
25
null
null
da-x/lamdu
Lamdu/GUI/ExpressionGui.hs
gpl-3.0
addValBGWithColor :: Monad m => (Config -> Draw.Color) -> Widget.Id -> ExprGuiM m (Widget f -> Widget f) addValBGWithColor color myId = do config <- ExprGuiM.readConfig let layer = Config.layerValFrameBG $ Config.layers config Widget.backgroundColor layer animId (color config) & retu...
381
addValBGWithColor :: Monad m => (Config -> Draw.Color) -> Widget.Id -> ExprGuiM m (Widget f -> Widget f) addValBGWithColor color myId = do config <- ExprGuiM.readConfig let layer = Config.layerValFrameBG $ Config.layers config Widget.backgroundColor layer animId (color config) & retu...
381
addValBGWithColor color myId = do config <- ExprGuiM.readConfig let layer = Config.layerValFrameBG $ Config.layers config Widget.backgroundColor layer animId (color config) & return where animId = Widget.toAnimId myId ++ ["val"]
268
false
true
0
12
94
131
62
69
null
null
ComputationWithBoundedResources/tct-its
src/Tct/Its/Data/Problem.hs
bsd-3-clause
progress NoProgress proof = T.abortWith proof
51
progress NoProgress proof = T.abortWith proof
51
progress NoProgress proof = T.abortWith proof
51
false
false
0
6
11
16
7
9
null
null
brendanhay/gogol
gogol-run/gen/Network/Google/Resource/Run/Projects/Locations/DomainmAppings/Delete.hs
mpl-2.0
-- | V1 error format. pldadXgafv :: Lens' ProjectsLocationsDomainmAppingsDelete (Maybe Xgafv) pldadXgafv = lens _pldadXgafv (\ s a -> s{_pldadXgafv = a})
155
pldadXgafv :: Lens' ProjectsLocationsDomainmAppingsDelete (Maybe Xgafv) pldadXgafv = lens _pldadXgafv (\ s a -> s{_pldadXgafv = a})
133
pldadXgafv = lens _pldadXgafv (\ s a -> s{_pldadXgafv = a})
61
true
true
0
9
23
48
25
23
null
null
Concomitant/LambdaHack
Game/LambdaHack/Common/Tile.hs
bsd-3-clause
revealAs :: Kind.Ops TileKind -> Kind.Id TileKind -> Rnd (Kind.Id TileKind) revealAs Kind.Ops{okind, opick} t = do let getTo (TK.RevealAs grp) acc = grp : acc getTo _ acc = acc case foldr getTo [] $ TK.tfeature $ okind t of [] -> return t groups -> do grp <- oneOf groups fromMaybe (assert ...
361
revealAs :: Kind.Ops TileKind -> Kind.Id TileKind -> Rnd (Kind.Id TileKind) revealAs Kind.Ops{okind, opick} t = do let getTo (TK.RevealAs grp) acc = grp : acc getTo _ acc = acc case foldr getTo [] $ TK.tfeature $ okind t of [] -> return t groups -> do grp <- oneOf groups fromMaybe (assert ...
361
revealAs Kind.Ops{okind, opick} t = do let getTo (TK.RevealAs grp) acc = grp : acc getTo _ acc = acc case foldr getTo [] $ TK.tfeature $ okind t of [] -> return t groups -> do grp <- oneOf groups fromMaybe (assert `failure` grp) <$> opick grp (const True)
285
false
true
0
15
90
176
83
93
null
null
umairsd/course-haskell-cis194
hw05/Calc.hs
mit
testBool :: Maybe Bool testBool = testExp :: Maybe Bool
55
testBool :: Maybe Bool testBool = testExp :: Maybe Bool
55
testBool = testExp :: Maybe Bool
32
false
true
0
5
9
20
10
10
null
null
Solumin/ScriptNScribe
src/BreveLang.hs
mit
-- =================== -- Parsing Statements -- =================== -- All of the parsers are named very clearly: -- parse<Expr> or parsePat<Pattern> -- Comments are mainly for explaining rational, since what the thing is -- attempting to parse should be clear. -- "do" notation is avoided as much as possible. -- Pars...
445
parseSeq :: Parser Statement parseSeq = fmap Seq (b_semiSep1 parseStatement)
76
parseSeq = fmap Seq (b_semiSep1 parseStatement)
47
true
true
0
7
66
34
21
13
null
null
bagnalla/PCF
src/Symtab.hs
mit
-- Add a binding to a Symtab add k = Map.insert k
49
add k = Map.insert k
20
add k = Map.insert k
20
true
false
0
6
11
15
7
8
null
null
GaloisInc/halvm-ghc
compiler/nativeGen/PPC/CodeGen.hs
bsd-3-clause
trivialCodeNoImm :: Format -> (Format -> Reg -> Reg -> Reg -> Instr) -> CmmExpr -> CmmExpr -> NatM Register trivialCodeNoImm format instr x y = trivialCodeNoImm' format (instr format) x y
204
trivialCodeNoImm :: Format -> (Format -> Reg -> Reg -> Reg -> Instr) -> CmmExpr -> CmmExpr -> NatM Register trivialCodeNoImm format instr x y = trivialCodeNoImm' format (instr format) x y
204
trivialCodeNoImm format instr x y = trivialCodeNoImm' format (instr format) x y
79
false
true
0
11
48
73
36
37
null
null
alexander-at-github/eta
compiler/ETA/HsSyn/HsPat.hs
bsd-3-clause
pprParendLPat :: (OutputableBndr name) => LPat name -> SDoc pprParendLPat (L _ p) = pprParendPat p
98
pprParendLPat :: (OutputableBndr name) => LPat name -> SDoc pprParendLPat (L _ p) = pprParendPat p
98
pprParendLPat (L _ p) = pprParendPat p
38
false
true
0
7
15
45
21
24
null
null
snoyberg/ghc
compiler/main/TidyPgm.hs
bsd-3-clause
getClassImplicitBinds :: Class -> [CoreBind] getClassImplicitBinds cls = [ NonRec op (mkDictSelRhs cls val_index) | (op, val_index) <- classAllSelIds cls `zip` [0..] ]
173
getClassImplicitBinds :: Class -> [CoreBind] getClassImplicitBinds cls = [ NonRec op (mkDictSelRhs cls val_index) | (op, val_index) <- classAllSelIds cls `zip` [0..] ]
173
getClassImplicitBinds cls = [ NonRec op (mkDictSelRhs cls val_index) | (op, val_index) <- classAllSelIds cls `zip` [0..] ]
128
false
true
0
9
28
63
34
29
null
null
FranklinChen/hugs98-plus-Sep2006
packages/base/Data/ByteString/Lazy/Char8.hs
bsd-3-clause
readFile :: FilePath -> IO ByteString readFile f = openFile f ReadMode >>= hGetContents
87
readFile :: FilePath -> IO ByteString readFile f = openFile f ReadMode >>= hGetContents
87
readFile f = openFile f ReadMode >>= hGetContents
49
false
true
0
6
13
30
14
16
null
null
alexander-at-github/eta
compiler/ETA/Types/Type.hs
bsd-3-clause
-- | Looks through: -- -- 1. For-alls -- 2. Synonyms -- 3. Predicates -- 4. All newtypes, including recursive ones, but not newtype families -- -- It's useful in the back end of the compiler. repType :: Type -> RepType repType ty = go initRecTc ty where go :: RecTcChecker -> Type -> RepType ...
1,171
repType :: Type -> RepType repType ty = go initRecTc ty where go :: RecTcChecker -> Type -> RepType go rec_nts ty -- Expand predicates and synonyms | Just ty' <- coreView ty = go rec_nts ty' go rec_nts (ForAllTy _ ty) -- Drop foralls = go rec_nts ty ...
959
repType ty = go initRecTc ty where go :: RecTcChecker -> Type -> RepType go rec_nts ty -- Expand predicates and synonyms | Just ty' <- coreView ty = go rec_nts ty' go rec_nts (ForAllTy _ ty) -- Drop foralls = go rec_nts ty go rec_nts (TyConApp tc ...
932
true
true
5
12
345
235
119
116
null
null
norm2782/uuagc
src/RhsCheck.hs
bsd-3-clause
fmt (Err val _) = val
35
fmt (Err val _) = val
35
fmt (Err val _) = val
35
false
false
0
7
19
17
8
9
null
null
sitewisely/zellige
test/Data/Geometry/ClipSpec.hs
apache-2.0
resultPolyWithInner :: VectorTile.Polygon resultPolyWithInner = VectorTile.Polygon (SpecHelper.tupleToPts resultPolyPts) (Sequence.fromList [VectorTile.Polygon (SpecHelper.tupleToPts innerPolyResultPts) mempty])
211
resultPolyWithInner :: VectorTile.Polygon resultPolyWithInner = VectorTile.Polygon (SpecHelper.tupleToPts resultPolyPts) (Sequence.fromList [VectorTile.Polygon (SpecHelper.tupleToPts innerPolyResultPts) mempty])
211
resultPolyWithInner = VectorTile.Polygon (SpecHelper.tupleToPts resultPolyPts) (Sequence.fromList [VectorTile.Polygon (SpecHelper.tupleToPts innerPolyResultPts) mempty])
169
false
true
0
12
12
54
27
27
null
null
tjakway/ghcjvm
compiler/typecheck/TcType.hs
bsd-3-clause
fmvTcLevel :: TcLevel -> TcLevel -- See Note [TcLevel assignment] fmvTcLevel (TcLevel n) = TcLevel (n-1)
104
fmvTcLevel :: TcLevel -> TcLevel fmvTcLevel (TcLevel n) = TcLevel (n-1)
71
fmvTcLevel (TcLevel n) = TcLevel (n-1)
38
true
true
0
7
15
35
18
17
null
null
JoeyEremondi/elm-summer-opt
src/Parse/Helpers.hs
bsd-3-clause
dotSep1 :: IParser a -> IParser [a] dotSep1 p = (:) <$> p <*> many (try (char '.') >> p)
90
dotSep1 :: IParser a -> IParser [a] dotSep1 p = (:) <$> p <*> many (try (char '.') >> p)
90
dotSep1 p = (:) <$> p <*> many (try (char '.') >> p)
54
false
true
5
10
21
65
31
34
null
null
lovasko/tabl
src/Text/Tabl/Ascii/Cell.hs
bsd-2-clause
stretch :: Width -- ^ subcell widths -> Cell -- ^ table cell -> T.Text -- ^ aligned text stretch (w1, w2, w3) (p1, p2, p3) = T.concat [right, mid, left] where right = T.justifyRight w1 ' ' p1 mid = T.center w2 ' ' p2 left = T.justifyLeft w3 ' ' p3 -- | Update the set of widths for a ne...
332
stretch :: Width -- ^ subcell widths -> Cell -- ^ table cell -> T.Text stretch (w1, w2, w3) (p1, p2, p3) = T.concat [right, mid, left] where right = T.justifyRight w1 ' ' p1 mid = T.center w2 ' ' p2 left = T.justifyLeft w3 ' ' p3 -- | Update the set of widths for a new table row.
314
stretch (w1, w2, w3) (p1, p2, p3) = T.concat [right, mid, left] where right = T.justifyRight w1 ' ' p1 mid = T.center w2 ' ' p2 left = T.justifyLeft w3 ' ' p3 -- | Update the set of widths for a new table row.
234
true
true
2
9
98
112
60
52
null
null
jean-lopes/grafos
src/Estruturas/ListaAdjacencia.hs
mit
adjacente :: (Aresta -> [Vertice]) -> Aresta -> [Vertice] adjacente f e = if loop then [origem e] else f e where loop = origem e == destino e
145
adjacente :: (Aresta -> [Vertice]) -> Aresta -> [Vertice] adjacente f e = if loop then [origem e] else f e where loop = origem e == destino e
145
adjacente f e = if loop then [origem e] else f e where loop = origem e == destino e
87
false
true
0
8
32
72
37
35
null
null
shockkolate/arata
src/Arata/Helper.hs
apache-2.0
setFromProtocol :: FromProtocol -> Arata () setFromProtocol from = modify (\env -> env { fromProtocol = from })
111
setFromProtocol :: FromProtocol -> Arata () setFromProtocol from = modify (\env -> env { fromProtocol = from })
111
setFromProtocol from = modify (\env -> env { fromProtocol = from })
67
false
true
0
9
17
42
22
20
null
null
spinda/liquidhaskell
tests/gsoc15/unknown/pos/Even.hs
bsd-3-clause
isOdd m = isEven $ m - 1
25
isOdd m = isEven $ m - 1
25
isOdd m = isEven $ m - 1
25
false
false
3
5
8
22
8
14
null
null
edsko/ChinesePodAPI
src/Servant/ChinesePod/Analysis.hs
bsd-3-clause
-- | Migration openV1 :: FilePath -> IO () openV1 fp = writeIORef globalAnalysisState =<< (v1_to_v2 <$> decodeFile fp) where v1_to_v2 :: V1.AnalysisState -> V2.AnalysisState v1_to_v2 = migrate {------------------------------------------------------------------------------- Search vocabulary for a word ----...
504
openV1 :: FilePath -> IO () openV1 fp = writeIORef globalAnalysisState =<< (v1_to_v2 <$> decodeFile fp) where v1_to_v2 :: V1.AnalysisState -> V2.AnalysisState v1_to_v2 = migrate {------------------------------------------------------------------------------- Search vocabulary for a word -------------------...
489
openV1 fp = writeIORef globalAnalysisState =<< (v1_to_v2 <$> decodeFile fp) where v1_to_v2 :: V1.AnalysisState -> V2.AnalysisState v1_to_v2 = migrate {------------------------------------------------------------------------------- Search vocabulary for a word -----------------------------------------------...
461
true
true
0
8
69
77
37
40
null
null
haroldcarr/juno
z-no-longer-used/src/Hop/Apps/Juno/Repl.hs
bsd-3-clause
apiEndpoint :: Int -> String apiEndpoint port = "http://localhost:" ++ show port ++ "/"
87
apiEndpoint :: Int -> String apiEndpoint port = "http://localhost:" ++ show port ++ "/"
87
apiEndpoint port = "http://localhost:" ++ show port ++ "/"
58
false
true
0
7
13
29
14
15
null
null
olorin/amazonka
amazonka-ec2/gen/Network/AWS/EC2/Types/Product.hs
mpl-2.0
-- | The protocol. -- -- When you call DescribeSecurityGroups, the protocol value returned is the -- number. Exception: For TCP, UDP, and ICMP, the value returned is the -- name (for example, 'tcp', 'udp', or 'icmp'). For a list of protocol -- numbers, see -- <http://www.iana.org/assignments/protocol-numbers/protocol-n...
552
ipIPProtocol :: Lens' IPPermission Text ipIPProtocol = lens _ipIPProtocol (\ s a -> s{_ipIPProtocol = a})
105
ipIPProtocol = lens _ipIPProtocol (\ s a -> s{_ipIPProtocol = a})
65
true
true
0
9
79
48
30
18
null
null
comonoidial/ALFIN
Backend/OptimizeAsm.hs
mit
reachFunT _ = []
36
reachFunT _ = []
36
reachFunT _ = []
36
false
false
0
5
23
12
5
7
null
null
green-haskell/ghc
compiler/prelude/PrelNames.hs
bsd-3-clause
coercibleTyConKey :: Unique coercibleTyConKey = mkPreludeTyConUnique 175
72
coercibleTyConKey :: Unique coercibleTyConKey = mkPreludeTyConUnique 175
72
coercibleTyConKey = mkPreludeTyConUnique 175
44
false
true
0
5
6
14
7
7
null
null
mniip/h6502
src/H6502/Util.hs
mit
-- | Get the program counter. getPC :: Monad m => H6502T m Word16 getPC = onState reg_pc
88
getPC :: Monad m => H6502T m Word16 getPC = onState reg_pc
58
getPC = onState reg_pc
22
true
true
0
6
17
27
13
14
null
null
unknownloner/pagerenc
src/Data/Transmission.hs
mit
messageBaudRate FLEX = BaudRate 1600
36
messageBaudRate FLEX = BaudRate 1600
36
messageBaudRate FLEX = BaudRate 1600
36
false
false
0
5
4
12
5
7
null
null
sleepomeno/TForth
src/TF/CheckerUtils.hs
apache-2.0
flag'' = do id <- _identifier <<+= 1 return $ IndexedStackType (NoReference $ PrimType FT.flag) (Just id)
109
flag'' = do id <- _identifier <<+= 1 return $ IndexedStackType (NoReference $ PrimType FT.flag) (Just id)
109
flag'' = do id <- _identifier <<+= 1 return $ IndexedStackType (NoReference $ PrimType FT.flag) (Just id)
109
false
false
1
13
20
51
22
29
null
null
julienschmaltz/madl
src/Parser/MadlParser.hs
mit
--------------------------------------------------------- -- ** Predicate Declaration -- | Parse a 'PredicateDeclaration' parsePredicateDeclaration :: Parser PredicateDeclaration parsePredicateDeclaration = (do header <- parseSourceInfo parsePredicateHeader body <- braces $ (parseSourceInfo parsePredicateBody)...
417
parsePredicateDeclaration :: Parser PredicateDeclaration parsePredicateDeclaration = (do header <- parseSourceInfo parsePredicateHeader body <- braces $ (parseSourceInfo parsePredicateBody) <* optional semi return $ PredicateDeclaration header body ) <?> "Predicate declaration"
294
parsePredicateDeclaration = (do header <- parseSourceInfo parsePredicateHeader body <- braces $ (parseSourceInfo parsePredicateBody) <* optional semi return $ PredicateDeclaration header body ) <?> "Predicate declaration"
237
true
true
2
12
55
72
34
38
null
null
sjakobi/brick
src/Brick/Widgets/Border.hs
bsd-3-clause
border :: Widget n -> Widget n border = border_ Nothing
55
border :: Widget n -> Widget n border = border_ Nothing
55
border = border_ Nothing
24
false
true
0
7
10
29
12
17
null
null
kishoredbn/barrelfish
tools/skate/AbsSyntaxWiki.hs
mit
tableOfContent :: String tableOfContent = (heading "Table of contents:") ++ "<<TableOfContents()>>"
100
tableOfContent :: String tableOfContent = (heading "Table of contents:") ++ "<<TableOfContents()>>"
100
tableOfContent = (heading "Table of contents:") ++ "<<TableOfContents()>>"
75
false
true
0
7
11
21
11
10
null
null
frontrowed/stratosphere
library-gen/Stratosphere/ResourceProperties/OpsWorksLayerVolumeConfiguration.hs
mit
-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-layer-volumeconfiguration.html#cfn-opsworks-layer-volconfig-raidlevel owlvcRaidLevel :: Lens' OpsWorksLayerVolumeConfiguration (Maybe (Val Integer)) owlvcRaidLevel = lens _opsWorksLayerVolumeConfigurationRaidLevel (\s a -> s { _o...
367
owlvcRaidLevel :: Lens' OpsWorksLayerVolumeConfiguration (Maybe (Val Integer)) owlvcRaidLevel = lens _opsWorksLayerVolumeConfigurationRaidLevel (\s a -> s { _opsWorksLayerVolumeConfigurationRaidLevel = a })
206
owlvcRaidLevel = lens _opsWorksLayerVolumeConfigurationRaidLevel (\s a -> s { _opsWorksLayerVolumeConfigurationRaidLevel = a })
127
true
true
0
9
22
52
28
24
null
null
gscalzo/HaskellTheHardWay
ch03/recur.hs
mit
elem' a (x:xs) | a == x = True | otherwise = a `elem'` xs
68
elem' a (x:xs) | a == x = True | otherwise = a `elem'` xs
68
elem' a (x:xs) | a == x = True | otherwise = a `elem'` xs
68
false
false
0
8
25
50
23
27
null
null
orion-42/minikanren-haskell
MiniKanren.hs
mit
unify :: Eq a => Substitution a -> Term a -> Term a -> Maybe (Substitution a) unify subs t u = case (walk subs t, walk subs u) of (Var v, Var w) | v == w -> return subs (Var v, term) -> return $ (v, term) : subs (term, Var v) -> return $ (v, term) : subs (List vs, List us) | length vs == length us -> ...
491
unify :: Eq a => Substitution a -> Term a -> Term a -> Maybe (Substitution a) unify subs t u = case (walk subs t, walk subs u) of (Var v, Var w) | v == w -> return subs (Var v, term) -> return $ (v, term) : subs (term, Var v) -> return $ (v, term) : subs (List vs, List us) | length vs == length us -> ...
491
unify subs t u = case (walk subs t, walk subs u) of (Var v, Var w) | v == w -> return subs (Var v, term) -> return $ (v, term) : subs (term, Var v) -> return $ (v, term) : subs (List vs, List us) | length vs == length us -> foldM (\subs' (v, w) -> unify subs' v w) subs $ zip vs us (Data x, D...
413
false
true
0
13
140
273
133
140
null
null
pwestling/hmonit
src/Network.hs
bsd-3-clause
sshTunnelCmd :: Integer -> SSHHost -> String -> String sshTunnelCmd localport (SSHHost host remoteport) username = "ssh -M -N -F ~" ++ username ++"/.ssh/config -L" ++ show localport ++ ":localhost:" ++ show remoteport ++ " " ++ username ++ "@" ++ host
251
sshTunnelCmd :: Integer -> SSHHost -> String -> String sshTunnelCmd localport (SSHHost host remoteport) username = "ssh -M -N -F ~" ++ username ++"/.ssh/config -L" ++ show localport ++ ":localhost:" ++ show remoteport ++ " " ++ username ++ "@" ++ host
251
sshTunnelCmd localport (SSHHost host remoteport) username = "ssh -M -N -F ~" ++ username ++"/.ssh/config -L" ++ show localport ++ ":localhost:" ++ show remoteport ++ " " ++ username ++ "@" ++ host
196
false
true
0
13
41
86
40
46
null
null
talanis85/rechord
src/Main.hs
gpl-3.0
main :: IO () main = do action <- execParser options action
63
main :: IO () main = do action <- execParser options action
63
main = do action <- execParser options action
49
false
true
0
8
15
29
13
16
null
null
enolan/Idris-dev
src/Idris/Core/TT.hs
bsd-3-clause
lookupCtxtName :: Name -> Ctxt a -> [(Name, a)] lookupCtxtName n ctxt = case Map.lookup (nsroot n) ctxt of Just xs -> filterNS (Map.toList xs) Nothing -> [] where filterNS [] = [] filterNS ((found, v) : xs) | nsmatch n found = (found,...
510
lookupCtxtName :: Name -> Ctxt a -> [(Name, a)] lookupCtxtName n ctxt = case Map.lookup (nsroot n) ctxt of Just xs -> filterNS (Map.toList xs) Nothing -> [] where filterNS [] = [] filterNS ((found, v) : xs) | nsmatch n found = (found,...
510
lookupCtxtName n ctxt = case Map.lookup (nsroot n) ctxt of Just xs -> filterNS (Map.toList xs) Nothing -> [] where filterNS [] = [] filterNS ((found, v) : xs) | nsmatch n found = (found, v) : filterNS xs | otherwise = fi...
462
false
true
6
11
203
212
106
106
null
null
svenssonjoel/ArrowObsidian
Obsidian/ArrowObsidian/Examples/Test.hs
bsd-3-clause
saxpy' :: (Choice a, Num a) => a -> (Arr a, Arr a) :-> Arr (a,a) saxpy' alpha = pure (\(a1,a2) -> (coalesce2 a1, coalesce2 a2)) ->- zipWith (\(x, y) -> alpha * x + y) ->- pure riffle ->- pure pair
213
saxpy' :: (Choice a, Num a) => a -> (Arr a, Arr a) :-> Arr (a,a) saxpy' alpha = pure (\(a1,a2) -> (coalesce2 a1, coalesce2 a2)) ->- zipWith (\(x, y) -> alpha * x + y) ->- pure riffle ->- pure pair
213
saxpy' alpha = pure (\(a1,a2) -> (coalesce2 a1, coalesce2 a2)) ->- zipWith (\(x, y) -> alpha * x + y) ->- pure riffle ->- pure pair
148
false
true
0
12
58
130
68
62
null
null
cmdd/mastodon-api
src/Web/Mastodon/Auth.hs
bsd-3-clause
-- | Adds the necessary @Authorization@ header to the request -- The way servant\'s generalized authentication works is that by adding the -- authentication type into each path, each generated client function will -- now take an @AuthenticateReq (AuthProtect MastodonAuth)@ parameter. -- The @AuthenticateReq a@ ...
1,656
tokenToAuth :: MastodonToken -> Auth tokenToAuth key = mkAuthenticateReq key addTokenToReq where addTokenToReq t = addHeader "Authorization" $ MastodonToken $ T.append "Bearer " $ getMastodonToken t -- | Convenience type synonym. See documentation on mastodonAuth for details on -- @AuthenticateReq@. -- -- Ba...
453
tokenToAuth key = mkAuthenticateReq key addTokenToReq where addTokenToReq t = addHeader "Authorization" $ MastodonToken $ T.append "Bearer " $ getMastodonToken t -- | Convenience type synonym. See documentation on mastodonAuth for details on -- @AuthenticateReq@. -- -- Basically we're making a type synonym (...
416
true
true
1
8
296
90
51
39
null
null
tonyday567/hdcharts
src/Pipes/Util.hs
mit
until' :: (Monad m, Eq a) => a -> Pipe a a m () until' stop = do a <- await yield a when (a /= stop) (until' stop) -- Getter stuff
143
until' :: (Monad m, Eq a) => a -> Pipe a a m () until' stop = do a <- await yield a when (a /= stop) (until' stop) -- Getter stuff
143
until' stop = do a <- await yield a when (a /= stop) (until' stop) -- Getter stuff
95
false
true
0
9
44
79
38
41
null
null
yliu120/K3
src/Language/K3/Analysis/SEffects/Inference.hs
apache-2.0
fext :: FEnv -> Identifier -> K3 Effect -> FEnv fext env x p = Map.insertWith (++) x [p] env
92
fext :: FEnv -> Identifier -> K3 Effect -> FEnv fext env x p = Map.insertWith (++) x [p] env
92
fext env x p = Map.insertWith (++) x [p] env
44
false
true
0
8
19
53
26
27
null
null
GaloisInc/haskell-tor
test/Test/TorCell.hs
bsd-3-clause
showHex' :: (Show a, Integral a) => a -> String showHex' x = showHex x ""
73
showHex' :: (Show a, Integral a) => a -> String showHex' x = showHex x ""
73
showHex' x = showHex x ""
25
false
true
0
8
15
43
20
23
null
null
worksap-ate/aws-sdk
Cloud/AWS/RDS/DBSubnetGroup.hs
bsd-3-clause
deleteDBSubnetGroup :: (MonadBaseControl IO m, MonadResource m) => Text -- ^ DBSubnetGroupName -> RDS m () deleteDBSubnetGroup name = rdsQueryOnlyMetadata "DeleteDBSubnetGroup" ["DBSubnetGroupName" |= name]
230
deleteDBSubnetGroup :: (MonadBaseControl IO m, MonadResource m) => Text -- ^ DBSubnetGroupName -> RDS m () deleteDBSubnetGroup name = rdsQueryOnlyMetadata "DeleteDBSubnetGroup" ["DBSubnetGroupName" |= name]
230
deleteDBSubnetGroup name = rdsQueryOnlyMetadata "DeleteDBSubnetGroup" ["DBSubnetGroupName" |= name]
111
false
true
0
8
47
55
28
27
null
null
eb-gh-cr/XMonadContrib1
XMonad/Hooks/DebugEvents.hs
bsd-3-clause
dumpProp _ "_NET_DESKTOP_NAMES" = dumpArray dumpUTF
74
dumpProp _ "_NET_DESKTOP_NAMES" = dumpArray dumpUTF
74
dumpProp _ "_NET_DESKTOP_NAMES" = dumpArray dumpUTF
74
false
false
0
5
28
14
6
8
null
null
oldmanmike/ghc
compiler/nativeGen/Dwarf/Constants.hs
bsd-3-clause
dW_FORM_addr, dW_FORM_data2, dW_FORM_data4, dW_FORM_string, dW_FORM_flag, dW_FORM_block1, dW_FORM_ref4, dW_FORM_ref_addr, dW_FORM_flag_present :: Word dW_FORM_addr = 0x01
174
dW_FORM_addr, dW_FORM_data2, dW_FORM_data4, dW_FORM_string, dW_FORM_flag, dW_FORM_block1, dW_FORM_ref4, dW_FORM_ref_addr, dW_FORM_flag_present :: Word dW_FORM_addr = 0x01
174
dW_FORM_addr = 0x01
21
false
true
7
5
17
43
22
21
null
null
CulpaBS/wbBach
tests/Futhark/Analysis/ScalExpTests.hs
bsd-3-clause
knownVar :: String -> Parser Ident knownVar s = do (_, m) <- getState case M.lookup s m of Just (y,t) -> return $ Ident (ID (nameFromString s, y)) t Nothing -> fail $ "Undeclared variable " ++ s
246
knownVar :: String -> Parser Ident knownVar s = do (_, m) <- getState case M.lookup s m of Just (y,t) -> return $ Ident (ID (nameFromString s, y)) t Nothing -> fail $ "Undeclared variable " ++ s
246
knownVar s = do (_, m) <- getState case M.lookup s m of Just (y,t) -> return $ Ident (ID (nameFromString s, y)) t Nothing -> fail $ "Undeclared variable " ++ s
211
false
true
0
15
90
101
50
51
null
null
JackKiefer/herms
app/herms.hs
gpl-3.0
-- | @getRecipeBookWith reads in recipe book with already read-in config -- -- It first attempts to read the new YAML recipe format, and then the -- deprecated one. If reading the YAML fails but the older format works, then -- it warns the user about deprecation of the old format. getRecipeBookWith :: Config -> IO (Eit...
867
getRecipeBookWith :: Config -> IO (Either Yaml.ParseException [Recipe]) getRecipeBookWith config = do content <- readFileOrDefault "recipes.yaml" (recipesFile' config) case Yaml.decodeEither' content of Right recipes -> pure (Right recipes) Left err -> case traverse readEither $ lines (BS.unpack conte...
585
getRecipeBookWith config = do content <- readFileOrDefault "recipes.yaml" (recipesFile' config) case Yaml.decodeEither' content of Right recipes -> pure (Right recipes) Left err -> case traverse readEither $ lines (BS.unpack content) of Left _ -> pure (Left err) Right recipes -> ...
513
true
true
0
19
190
183
86
97
null
null
mitar/nxt
lib/Robotics/NXT/Data.hs
lgpl-3.0
toSWord :: (Show a, Integral a) => a -> [Word8] -- two bytes, signed, least significant byte first toSWord x | x >= (-0x8000) && x < 0x00 = take 2 . flip (++) (repeat 0x00) . intToData $ 0x10000 + x | x >= 0x00 && x <= 0x7FFF = take 2 . flip (++) (repeat 0x00) . intToData $ x | otherwise ...
378
toSWord :: (Show a, Integral a) => a -> [Word8] toSWord x | x >= (-0x8000) && x < 0x00 = take 2 . flip (++) (repeat 0x00) . intToData $ 0x10000 + x | x >= 0x00 && x <= 0x7FFF = take 2 . flip (++) (repeat 0x00) . intToData $ x | otherwise = throw . PatternMatchFail $ "toSWord: " ++...
327
toSWord x | x >= (-0x8000) && x < 0x00 = take 2 . flip (++) (repeat 0x00) . intToData $ 0x10000 + x | x >= 0x00 && x <= 0x7FFF = take 2 . flip (++) (repeat 0x00) . intToData $ x | otherwise = throw . PatternMatchFail $ "toSWord: " ++ show x
279
true
true
0
12
112
165
82
83
null
null
trofi/BlogLiterately
src/BlogLiterately.hs
gpl-3.0
getStylePrefs fname = liftM read (readFile fname)
49
getStylePrefs fname = liftM read (readFile fname)
49
getStylePrefs fname = liftM read (readFile fname)
49
false
false
0
7
6
20
9
11
null
null
allanderek/ipclib
Language/Pepa/Probes/Syntax.hs
gpl-2.0
{- Printing out probe definitions -} hprintProbeDef :: ProbeDef -> String hprintProbeDef = Pretty.render . pprintProbeDef
123
hprintProbeDef :: ProbeDef -> String hprintProbeDef = Pretty.render . pprintProbeDef
86
hprintProbeDef = Pretty.render . pprintProbeDef
49
true
true
1
7
17
30
13
17
null
null
polarina/sdl2
Graphics/UI/SDL/Event.hs
bsd-3-clause
joystickUpdate :: MonadIO m => m () joystickUpdate = liftIO joystickUpdate'
75
joystickUpdate :: MonadIO m => m () joystickUpdate = liftIO joystickUpdate'
75
joystickUpdate = liftIO joystickUpdate'
39
false
true
0
7
10
26
12
14
null
null
nathanic/hive-hs
src/Hive/Game/Move.hs
gpl-3.0
-- TODO: support special pillbug notation moveP :: CharParser st RelativeMove moveP = do spaces try (firstMoveP <* softEnding) <|> (subsequentMoveP <* softEnding)
170
moveP :: CharParser st RelativeMove moveP = do spaces try (firstMoveP <* softEnding) <|> (subsequentMoveP <* softEnding)
128
moveP = do spaces try (firstMoveP <* softEnding) <|> (subsequentMoveP <* softEnding)
92
true
true
0
10
30
44
22
22
null
null
DanielSchuessler/hstri
Latexable/DD.hs
gpl-3.0
spaceAfterPartialCanonicalPartAssigments = "1.1ex"
51
vspaceAfterPartialCanonicalPartAssigments = "1.1ex"
51
vspaceAfterPartialCanonicalPartAssigments = "1.1ex"
51
false
false
0
4
3
6
3
3
null
null
vikraman/ghc
compiler/nativeGen/PPC/CodeGen.hs
bsd-3-clause
getRegister' _ (CmmMachOp (MO_SS_Conv W16 W64) [CmmLoad mem _]) = do Amode addr addr_code <- getAmode D mem return (Any II64 (\dst -> addr_code `snocOL` LA II16 dst addr))
179
getRegister' _ (CmmMachOp (MO_SS_Conv W16 W64) [CmmLoad mem _]) = do Amode addr addr_code <- getAmode D mem return (Any II64 (\dst -> addr_code `snocOL` LA II16 dst addr))
179
getRegister' _ (CmmMachOp (MO_SS_Conv W16 W64) [CmmLoad mem _]) = do Amode addr addr_code <- getAmode D mem return (Any II64 (\dst -> addr_code `snocOL` LA II16 dst addr))
179
false
false
1
14
36
90
42
48
null
null
jbracker/supermonad-plugin
src/Control/Super/Plugin/Collection/Set.hs
bsd-3-clause
empty :: Set a empty = Set $ U.emptyUniqSet
43
empty :: Set a empty = Set $ U.emptyUniqSet
43
empty = Set $ U.emptyUniqSet
28
false
true
0
6
8
20
10
10
null
null
danr/hipspec
examples/old-examples/quickspec/Count.hs
gpl-3.0
(x:xs) ++ ys = x : (xs ++ ys)
29
(x:xs) ++ ys = x : (xs ++ ys)
29
(x:xs) ++ ys = x : (xs ++ ys)
29
false
false
0
7
8
30
15
15
null
null
isankadn/yesod-testweb-full
Handler/Home.hs
mit
-- how many posts get displayed in one page postsPerPage :: Int postsPerPage = 5
80
postsPerPage :: Int postsPerPage = 5
36
postsPerPage = 5
16
true
true
0
6
14
19
8
11
null
null
vasily-kartashov/playground
euler/problem-021.hs
apache-2.0
sumd x = product (map f1 gs) - product (map f2 gs) where gs = map (\g -> (head g, length g)) $ group $ factors x f1 (p, m) = (p ^ (m + 1) - 1) `div` (p - 1) f2 (p, m) = p ^ m
192
sumd x = product (map f1 gs) - product (map f2 gs) where gs = map (\g -> (head g, length g)) $ group $ factors x f1 (p, m) = (p ^ (m + 1) - 1) `div` (p - 1) f2 (p, m) = p ^ m
192
sumd x = product (map f1 gs) - product (map f2 gs) where gs = map (\g -> (head g, length g)) $ group $ factors x f1 (p, m) = (p ^ (m + 1) - 1) `div` (p - 1) f2 (p, m) = p ^ m
192
false
false
1
11
66
144
73
71
null
null
ambiata/mismi
mismi-ec2-core/src/Mismi/EC2/Core/Device.hs
bsd-3-clause
devices2 :: [BlockDeviceMapping] devices2 = [ BlockDeviceMapping "/dev/xvdb" "ephemeral0" , BlockDeviceMapping "/dev/xvdc" "ephemeral1" ]
145
devices2 :: [BlockDeviceMapping] devices2 = [ BlockDeviceMapping "/dev/xvdb" "ephemeral0" , BlockDeviceMapping "/dev/xvdc" "ephemeral1" ]
145
devices2 = [ BlockDeviceMapping "/dev/xvdb" "ephemeral0" , BlockDeviceMapping "/dev/xvdc" "ephemeral1" ]
112
false
true
0
6
21
30
16
14
null
null
omefire/lens
src/Control/Lens/Setter.hs
bsd-3-clause
-- | Modify the target(s) of a 'Lens'', 'Iso', 'Setter' or 'Traversal' by taking their logical '&&' with a value. -- -- >>> execState (do _1 &&= True; _2 &&= False; _3 &&= True; _4 &&= False) (True,True,False,False) -- (True,False,False,False) -- -- @ -- ('&&=') :: 'MonadState' s m => 'Setter'' s 'Bool' -> 'Bool' ->...
643
(&&=):: MonadState s m => ASetter' s Bool -> Bool -> m () l &&= b = State.modify (l &&~ b)
90
l &&= b = State.modify (l &&~ b)
32
true
true
0
11
139
74
40
34
null
null
phaazon/OpenGLRaw
src/Graphics/Rendering/OpenGL/Raw/Tokens.hs
bsd-3-clause
gl_NORMAL_ARRAY_TYPE_EXT :: GLenum gl_NORMAL_ARRAY_TYPE_EXT = 0x807E
68
gl_NORMAL_ARRAY_TYPE_EXT :: GLenum gl_NORMAL_ARRAY_TYPE_EXT = 0x807E
68
gl_NORMAL_ARRAY_TYPE_EXT = 0x807E
33
false
true
0
4
5
11
6
5
null
null
jean-lopes/grafos
src/Algoritmos/Kruskal.hs
mit
union :: Ord a => Set a -> Set a -> [Set a] -> [Set a] union x@(Set xs) y@(Set ys) zs = set:sets where sets = delete x $ delete y zs set = Set . nub . sort $ xs ++ ys
180
union :: Ord a => Set a -> Set a -> [Set a] -> [Set a] union x@(Set xs) y@(Set ys) zs = set:sets where sets = delete x $ delete y zs set = Set . nub . sort $ xs ++ ys
180
union x@(Set xs) y@(Set ys) zs = set:sets where sets = delete x $ delete y zs set = Set . nub . sort $ xs ++ ys
125
false
true
2
10
57
129
59
70
null
null
hkuplg/fcore
examples/case_studies/PureLambda.hs
bsd-2-clause
appOpr = " "
13
appOpr = " "
13
appOpr = " "
13
false
false
1
5
4
10
3
7
null
null
beni55/cryptol
src/Cryptol/TypeCheck/AST.hs
bsd-3-clause
tIsBinFun :: TFun -> Type -> Maybe (Type,Type) tIsBinFun f ty = case tNoUser ty of TCon (TF g) [a,b] | f == g -> Just (a,b) _ -> Nothing -- | Split up repeated occurances of the given binary type-level function.
275
tIsBinFun :: TFun -> Type -> Maybe (Type,Type) tIsBinFun f ty = case tNoUser ty of TCon (TF g) [a,b] | f == g -> Just (a,b) _ -> Nothing -- | Split up repeated occurances of the given binary type-level function.
275
tIsBinFun f ty = case tNoUser ty of TCon (TF g) [a,b] | f == g -> Just (a,b) _ -> Nothing -- | Split up repeated occurances of the given binary type-level function.
228
false
true
0
11
105
94
46
48
null
null
travitch/foreign-inference
src/Foreign/Inference/Diagnostics.hs
bsd-3-clause
formatDiags :: Set Diagnostic -> String formatDiags diags = unlines $ map show diagList where diagList = S.toList diags
127
formatDiags :: Set Diagnostic -> String formatDiags diags = unlines $ map show diagList where diagList = S.toList diags
127
formatDiags diags = unlines $ map show diagList where diagList = S.toList diags
87
false
true
1
7
26
51
21
30
null
null
andorp/grin
grin/src/Reducer/LLVM/TypeGen.hs
bsd-3-clause
codeGenBitCast :: Grin.Name -> Operand -> LLVM.Type -> CG Operand codeGenBitCast name value dstType = do codeGenLocalVar name dstType $ AST.BitCast { operand0 = value , type' = dstType , metadata = [] } {- NEW approach: everything is tagged union compilation: if type sets does no...
348
codeGenBitCast :: Grin.Name -> Operand -> LLVM.Type -> CG Operand codeGenBitCast name value dstType = do codeGenLocalVar name dstType $ AST.BitCast { operand0 = value , type' = dstType , metadata = [] } {- NEW approach: everything is tagged union compilation: if type sets does no...
348
codeGenBitCast name value dstType = do codeGenLocalVar name dstType $ AST.BitCast { operand0 = value , type' = dstType , metadata = [] } {- NEW approach: everything is tagged union compilation: if type sets does not match then convert them -}
282
false
true
0
10
91
74
39
35
null
null
DiegoNolan/Asciify
Asciify.hs
mit
aSToA (Light, Light, Blank, Blank) = '\''
41
aSToA (Light, Light, Blank, Blank) = '\''
41
aSToA (Light, Light, Blank, Blank) = '\''
41
false
false
0
5
6
22
12
10
null
null
KommuSoft/dep-software
Dep.Ui.Utils.Boxes.hs
gpl-3.0
orDim2 :: Orientation -> Image -> Int orDim2 Horizontal = imageHeight
69
orDim2 :: Orientation -> Image -> Int orDim2 Horizontal = imageHeight
69
orDim2 Horizontal = imageHeight
31
false
true
0
6
10
22
11
11
null
null
spechub/Hets
HasCASL/AsUtils.hs
gpl-2.0
-- | the type universe as raw kind rStar :: RawKind rStar = ClassKind ()
72
rStar :: RawKind rStar = ClassKind ()
37
rStar = ClassKind ()
20
true
true
0
6
14
24
10
14
null
null
AlexanderPankiv/ghc
compiler/codeGen/StgCmmPrim.hs
bsd-3-clause
emitPrimOp dflags res ReadByteArrayOp_Word args = doIndexByteArrayOp Nothing (bWord dflags) res args
114
emitPrimOp dflags res ReadByteArrayOp_Word args = doIndexByteArrayOp Nothing (bWord dflags) res args
114
emitPrimOp dflags res ReadByteArrayOp_Word args = doIndexByteArrayOp Nothing (bWord dflags) res args
114
false
false
0
7
25
30
14
16
null
null
guoguo12/haskell-ptable
ptable.hs
apache-2.0
anum "Bi" = 83
14
anum "Bi" = 83
14
anum "Bi" = 83
14
false
false
0
4
3
10
4
6
null
null