Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/scottrogowski/code2flow
/ functions
Functions
657 in github.com/scottrogowski/code2flow
⨍
Functions
657
◇
Types & classes
95
↓ 3 callers
Function
monthsToDays
(months)
tests/test_code/js/moment/moment.js:5278
↓ 3 callers
Function
normalizeObjectUnits
(inputObject)
tests/test_code/js/moment/moment.js:640
↓ 3 callers
Function
offsetFromString
(matcher, string)
tests/test_code/js/moment/moment.js:3242
↓ 3 callers
Function
print_it
(string)
tests/test_code/py/weird_calls/weird_calls.py:1
↓ 3 callers
Method
separate_namespaces
Given a tree element, recursively separate that AST into lists of ASTs for the subgroups, nodes, and body. This is an intermediate st
code2flow/php.py:267
↓ 3 callers
Function
shiftWeekdays
(ws, n)
tests/test_code/js/moment/moment.js:1525
↓ 3 callers
Method
to_string
Returns a representation of this call to be printed by the engine in logging. :rtype: str
code2flow/model.py:196
↓ 3 callers
Method
token_with_ownership
Token which includes what group this is a part of :rtype: str
code2flow/model.py:321
↓ 2 callers
Function
_byte_string
Cast a string or byte string to an ASCII byte string.
tests/test_code/py/pytz/tzfile.py:12
↓ 2 callers
Function
_generate_graphviz
Write the graphviz file :param str output_file: :param str extension: :param str final_img_filename:
code2flow/engine.py:639
↓ 2 callers
Function
_to_seconds
Convert a timedelta to seconds
tests/test_code/py/pytz/tzinfo.py:61
↓ 2 callers
Function
_wrap_as_variables
Given a list of either Nodes or Groups, wrap them in variables. This is used in the get_variables method to allow all defined functions a
code2flow/model.py:439
↓ 2 callers
Function
a
()
tests/test_code/js/simple_b_js/simple_b.js:3
↓ 2 callers
Function
a
()
tests/test_code/py/simple_b/simple_b.py:6
↓ 2 callers
Method
abra_it
()
tests/test_code/js/ambiguous_names/ambiguous_names.js:9
↓ 2 callers
Function
absCeil
(number)
tests/test_code/js/moment/moment.js:5209
↓ 2 callers
Function
addSubtract
(mom, duration, isAdding, updateOffset)
tests/test_code/js/moment/moment.js:3587
↓ 2 callers
Function
addSubtract$1
(duration, input, value, direction)
tests/test_code/js/moment/moment.js:5189
↓ 2 callers
Method
all_parents
Recursively get the entire inheritance tree of this group :rtype: list[Group]
code2flow/model.py:609
↓ 2 callers
Function
as_lines
Ruby ast bodies are structured differently depending on circumstances. This ensures that they are structured as a list of statements :pa
code2flow/ruby.py:134
↓ 2 callers
Function
configFromISO
(config)
tests/test_code/js/moment/moment.js:2351
↓ 2 callers
Function
configFromRFC2822
(config)
tests/test_code/js/moment/moment.js:2482
↓ 2 callers
Function
createAdder
(direction, name)
tests/test_code/js/moment/moment.js:3562
↓ 2 callers
Function
createLocalOrUTC
(input, format, locale, strict, isUTC)
tests/test_code/js/moment/moment.js:2993
↓ 2 callers
Function
dayOfYearFromWeeks
(year, week, weekday, dow, doy)
tests/test_code/js/moment/moment.js:1322
↓ 2 callers
Function
daysToMonths
(days)
tests/test_code/js/moment/moment.js:5272
↓ 2 callers
Function
deprecateSimple
(name, msg)
tests/test_code/js/moment/moment.js:329
↓ 2 callers
Method
dst
(self, dt)
tests/test_code/py/pytz/reference.py:117
↓ 2 callers
Function
expandFormat
(format, locale)
tests/test_code/js/moment/moment.js:528
↓ 2 callers
Method
fact
(which)
tests/test_code/js/ternary_new/ternary_new.js:23
↓ 2 callers
Function
first_sunday_on_or_after
(dt)
tests/test_code/py/pytz/reference.py:82
↓ 2 callers
Function
get_call_from_expr
Given an ast that represents a send call, clear and create our generic Call object. Some calls have no chance at resolution (e.g. array[2](pa
code2flow/php.py:37
↓ 2 callers
Function
get_call_from_func_element
Given a python ast that represents a function call, clear and create our generic Call object. Some calls have no chance at resolution (e.g. a
code2flow/python.py:9
↓ 2 callers
Function
get_call_from_send_el
Given an ast that represents a send call, clear and create our generic Call object. Some calls have no chance at resolution (e.g. array[2](pa
code2flow/ruby.py:39
↓ 2 callers
Method
get_constructor
Return the first constructor for this group - if any TODO, this excludes the possibility of multiple constructors like __init
code2flow/model.py:559
↓ 2 callers
Function
get_edges_set_from_file
(dot_file)
tests/test_graphs.py:97
↓ 2 callers
Function
get_nodes_set_from_file
(dot_file)
tests/test_graphs.py:83
↓ 2 callers
Function
get_tree_body
Depending on the type of element, get the body of that element :param tree_el ast: :rtype: list[tree_el]
code2flow/ruby.py:151
↓ 2 callers
Function
isString
(input)
tests/test_code/js/moment/moment.js:3616
↓ 2 callers
Method
label
Labels are what you see on the graph :rtype: str
code2flow/model.py:516
↓ 2 callers
Function
listMonthsImpl
(format, index, field)
tests/test_code/js/moment/moment.js:5039
↓ 2 callers
Method
majorNum
(self)
tests/test_code/py/inherits/inherits_import.py:4
↓ 2 callers
Function
make_calls
Given a list of lines, find all calls in this list. :param body_el ast: :rtype: list[Call]
code2flow/ruby.py:75
↓ 2 callers
Function
make_calls
Given a list of lines, find all calls in this list. :param lines list[ast]: :rtype: list[Call]
code2flow/python.py:41
↓ 2 callers
Function
make_calls
Given a list of lines, find all calls in this list. :param list|dict body: :rtype: list[Call]
code2flow/javascript.py:97
↓ 2 callers
Function
make_calls
Given a list of lines, find all calls in this list. :param body_el ast: :rtype: list[Call]
code2flow/php.py:131
↓ 2 callers
Function
make_local_variables
Given an ast of all the lines in a function, generate a list of variables in that function. Variables are tokens and what they link to. I
code2flow/ruby.py:108
↓ 2 callers
Function
make_local_variables
Given an ast of all the lines in a function, generate a list of variables in that function. Variables are tokens and what they link to. I
code2flow/python.py:107
↓ 2 callers
Function
make_local_variables
Given an ast of all the lines in a function, generate a list of variables in that function. Variables are tokens and what they link to. I
code2flow/javascript.py:174
↓ 2 callers
Function
make_local_variables
Given an ast of all the lines in a function, generate a list of variables in that function. Variables are tokens and what they link to.
code2flow/php.py:167
↓ 2 callers
Method
make_nodes
Given a tree element of all the lines in a function, create the node along with the calls and variables internal to it. Also
code2flow/php.py:299
↓ 2 callers
Method
make_root_node
The "root_node" is an implict node of lines which are executed in the global scope on the file itself and not otherwise part of any f
code2flow/php.py:337
↓ 2 callers
Function
max
()
tests/test_code/js/moment/moment.js:3080
↓ 2 callers
Function
meridiem
(token, lowercase)
tests/test_code/js/moment/moment.js:1901
↓ 2 callers
Function
normalizeLocale
(key)
tests/test_code/js/moment/moment.js:2040
↓ 2 callers
Function
offset
(token, separator)
tests/test_code/js/moment/moment.js:3206
↓ 2 callers
Method
outer_func
(a)
tests/test_code/py/nested_class/nested_class.py:6
↓ 2 callers
Function
pickBy
(fn, moments)
tests/test_code/js/moment/moment.js:3056
↓ 2 callers
Function
positiveMomentsDifference
(base, other)
tests/test_code/js/moment/moment.js:3529
↓ 2 callers
Function
prepareConfig
(config)
tests/test_code/js/moment/moment.js:2937
↓ 2 callers
Function
private
()
tests/test_code/py/subset_find_exception/two.py:1
↓ 2 callers
Function
run_ast_parser
Parse the php file and return the output + the returncode Separate function b/c unittesting and asserting php-parser installation. :param
code2flow/php.py:214
↓ 2 callers
Function
search
()
tests/test_code/py/exclude_modules/exclude_modules.py:5
↓ 2 callers
Method
separate_namespaces
Given a tree element, recursively separate that AST into lists of ASTs for the subgroups, nodes, and body. This is an intermediate st
code2flow/ruby.py:230
↓ 2 callers
Method
separate_namespaces
Given an AST, recursively separate that AST into lists of ASTs for the subgroups, nodes, and body. This is an intermediate step to al
code2flow/javascript.py:289
↓ 2 callers
Function
set$1
(mom, unit, value)
tests/test_code/js/moment/moment.js:719
↓ 2 callers
Function
setMonth
(mom, value)
tests/test_code/js/moment/moment.js:1090
↓ 2 callers
Method
to_dict
Output for json files (json graph specification) :rtype: dict
code2flow/model.py:427
↓ 2 callers
Function
walk
Walk through the ast tree and return all nodes :param ast tree: :rtype: list[ast]
code2flow/javascript.py:24
↓ 2 callers
Function
walk
Given an ast tree walk it to get every node. For PHP, the exception is that we return Expr_BinaryOp_Concat which has internal nodes but i
code2flow/php.py:81
↓ 2 callers
Function
warn
(msg)
tests/test_code/js/moment/moment.js:277
↓ 2 callers
Function
write_file
Write a dot file that can be read by graphviz :param outfile File: :param nodes list[Node]: functions :param edges list[Edge]: funct
code2flow/engine.py:231
↓ 1 callers
Method
__init__
(self, token, line_number=None, owner_token=None, definite_constructor=False)
code2flow/model.py:187
↓ 1 callers
Function
_case_insensitive_zone_lookup
case-insensitively matching timezone, else return zone unchanged
tests/test_code/py/pytz/__init__.py:201
↓ 1 callers
Function
_filter_edges_for_subset
Given the subset of nodes, filter for edges within this subset :param new_nodes set[Node]: :param edges list[Edge]: :rtype: list[Edge
code2flow/engine.py:159
↓ 1 callers
Function
_filter_for_subset
Given subset_params, return the subset of nodes, edges, and groups upstream and downstream of the target node. :param subset_params Subse
code2flow/engine.py:195
↓ 1 callers
Function
_filter_groups_for_subset
Given the subset of nodes, do housekeeping and filter out for groups within this subset :param new_nodes set[Node]: :param file_groups li
code2flow/engine.py:173
↓ 1 callers
Function
_filter_nodes_for_subset
Given subset_params, return a set of all nodes upstream and downstream of the target node. :param subset_params SubsetParams: :param all_
code2flow/engine.py:120
↓ 1 callers
Function
_find_link_for_call
Given a call that happened on a node (node_a), return the node that the call links to and the call itself if >1 node matched. :param cal
code2flow/engine.py:366
↓ 1 callers
Function
_find_links
Iterate through the calls on node_a to find everything the node links to. This will return a list of tuples of nodes and calls that were ambi
code2flow/engine.py:413
↓ 1 callers
Function
_find_target_node
Find the node referenced by subset_params.target_function :param subset_params SubsetParams: :param all_nodes list[Node]: :rtype: Nod
code2flow/engine.py:99
↓ 1 callers
Function
_generate_final_img
Write the graphviz file :param str output_file: :param str extension: :param str final_img_filename: :param int num_edges:
code2flow/engine.py:658
↓ 1 callers
Function
_limit_functions
Exclude nodes (functions) which match any of the exclude_functions :param list[Group] file_groups: :param list exclude_functions: :p
code2flow/engine.py:613
↓ 1 callers
Function
_limit_namespaces
Exclude namespaces (classes/modules) which match any of the exclude_namespaces :param list[Group] file_groups: :param list exclude_names
code2flow/engine.py:571
↓ 1 callers
Function
_resolve_str_variable
String variables are when variable.points_to is a string This happens ONLY when we have imports that we delayed processing for This func
code2flow/model.py:64
↓ 1 callers
Function
_std_string
Cast a string or byte string to an ASCII string.
tests/test_code/py/pytz/tzfile.py:19
↓ 1 callers
Function
_test
()
tests/test_code/py/pytz/__init__.py:508
↓ 1 callers
Function
_unmunge_zone
Undo the time zone name munging done by older versions of pytz.
tests/test_code/py/pytz/__init__.py:193
↓ 1 callers
Function
a
()
tests/test_code/js/bad_parse/file_a_good.js:1
↓ 1 callers
Function
a
()
tests/test_code/js/two_file_simple/file_a.js:1
↓ 1 callers
Function
a
()
tests/test_code/py/weird_encoding/weird_encoding.py:1
↓ 1 callers
Function
a
()
tests/test_code/py/exclude_modules_two_files/exclude_modules_a.py:5
↓ 1 callers
Function
a
()
tests/test_code/py/two_file_simple/file_a.py:4
↓ 1 callers
Method
a
()
tests/test_code/js/scoping/scoping.js:10
↓ 1 callers
Method
abra_it
()
tests/test_code/py/ambiguous_resolution/ambiguous_resolution.py:5
↓ 1 callers
Function
abs
()
tests/test_code/js/moment/moment.js:5172
↓ 1 callers
Function
addTimeToArrayFromToken
(token, input, config)
tests/test_code/js/moment/moment.js:851
↓ 1 callers
Function
alpha
()
tests/test_code/js/exclude_modules/exclude_modules.js:20
↓ 1 callers
Function
alpha
()
tests/test_code/js/exclude_modules_es6/exclude_modules_es6.js:20
↓ 1 callers
Function
alpha
()
tests/test_code/py/exclude_modules/exclude_modules.py:16
← previous
next →
101–200 of 657, ranked by callers