MCPcopy Create free account

hub / github.com/IBM/Project_CodeNet / functions

Functions1,251 in github.com/IBM/Project_CodeNet

↓ 100 callersFunctionget
Detects escaped newlines (line continuations) and signals them with the special '\r' character (that otherwise is not used). Keeps track of phys
tools/tokenizer/libtoken.c:322
↓ 48 callersFunctiontoken_buf_push
Appends a character to the token buffer, always making sure there is room.
tools/tokenizer/libtoken.c:476
↓ 44 callersFunctionunget
Undo action of a get() lookahead call. An attempt at undoing an EOF read has no effect. Since get() encodes logical line endings with \n and con
tools/tokenizer/libtoken.c:387
↓ 38 callersMethodsync
Make sure we don't attempt to recover from problems in subrules.
tools/spt-generator/src/com/ibm/ai4code/parser/SPTGenerator.java:320
↓ 35 callersMethodput
(String key, Object value)
tools/analysis-graph-generator/src/main/java/com/ibm/wala/codeNet/GraphGenerator.java:45
↓ 35 callersMethodsize
Sample size equals length of token sequence.
tools/duplicates/duplicates.cpp:92
↓ 29 callersFunctionshow
Outputs the token to open file fp. When do_quote is > 0, output token double-quoted, when do_quote is < 0, output token without double-quotes,
tools/json-graph/src/jgflib.c:282
↓ 29 callersFunctionstring_eq
Checks whether (JSMN_STRING) token equals a certain string value. */
tools/json-graph/src/jgflib.c:330
↓ 20 callersMethodrecover
(Parser recognizer, RecognitionException e)
tools/spt-generator/src/com/ibm/ai4code/parser/SPTGenerator.java:311
↓ 19 callersMethodequals
(Object obj)
tools/analysis-graph-generator/src/main/java/com/ibm/wala/codeNet/WalaToGNNFiles.java:257
↓ 17 callersMethoddump
(Graph<T> g, Function<T, String> printNode, BiFunction<T, T, String> printEdge)
tools/analysis-graph-generator/src/main/java/com/ibm/wala/codeNet/WalaToGNNFiles.java:210
↓ 17 callersFunctionexpect
Checks whether token is of a certain type. */
tools/json-graph/src/jgflib.c:360
↓ 14 callersFunctionparseArguments
Parse program arguments Parameters: - parser -- argument parser as an object of ArgumentParser to add arguments Ret
model-experiments/token-based-similarity-classification/src/CommonFunctions/ProgramArguments.py:133
↓ 14 callersFunctionresetSeeds
Reset system seeds for random generators
model-experiments/token-based-similarity-classification/src/CommonFunctions/Utilities.py:10
↓ 13 callersMethodgetType
()
tools/spt-generator/src/com/ibm/ai4code/parser/commons/SPTNode.java:350
↓ 12 callersMethodgetRuleNames
()
tools/spt-generator/src/com/ibm/ai4code/parser/cymbol/CymbolParser.java:88
↓ 12 callersFunctionmakeArgParserCodeML
Make program arguments parser for machine learning for analysis of source code problems Parameters: - description -- string describi
model-experiments/token-based-similarity-classification/src/CommonFunctions/ProgramArguments.py:7
↓ 12 callersMethodsetDsSeeds
Setup all seeds used in dataset construction Function should be executed only once before making all datasets Parameters:
model-experiments/token-based-similarity-classification/src/Dataset/DsUtilities.py:113
↓ 12 callersMethodstream
()
tools/analysis-graph-generator/src/main/java/com/ibm/wala/codeNet/WalaSPTGraph.java:49
↓ 11 callersMethodcomputeInitializer
Compute layer initializer Parameters: - seed -- seed for random generator used by analyzer If it is None
model-experiments/token-based-similarity-classification/src/ModelMaker/ModelUtils.py:52
↓ 11 callersMethodtoString
()
tools/spt-generator/src/com/ibm/ai4code/parser/commons/SPTNode.java:361
↓ 11 callersFunctiontoken_buf_close
Adds a terminating NUL character which does not change the token length.
tools/tokenizer/libtoken.c:490
↓ 10 callersMethod_denseClassifier
Make a stack of dense layers with classifier Classifier is either softmax for more than 2 classes or sigmoid for 2 classes
model-experiments/token-based-similarity-classification/src/ModelMaker/FuncModelMaker.py:121
↓ 10 callersFunctionget
Phase 1. Forms logical lines by resolving escaped newlines (line continuations). */
tools/tokenizer/ntokenize.c:263
↓ 10 callersMethodrandPreordered
Randomize list of ordered elements by shuffling it in place It is assumed that the elements are in order which is the same f
model-experiments/token-based-similarity-classification/src/Dataset/DsUtilities.py:133
↓ 10 callersMethodsetSeed
Set seed for current randomization procedure Parameters: - seed_name -- name of the seed
model-experiments/token-based-similarity-classification/src/Dataset/DsUtilities.py:124
↓ 10 callersMethodsize
(self)
model-experiments/token-based-similarity-classification/src/Dataset/TokensClassifDS.py:63
↓ 10 callersMethodwithOutput
(String outFile, Consumer<PrintWriter> doit)
tools/analysis-graph-generator/src/main/java/com/ibm/wala/codeNet/WalaToGNNFiles.java:77
↓ 9 callersMethodconvBlock
Make sequential convolutional DNN building block Parameters: - convolutions -- specification of convolutional layers
model-experiments/token-based-similarity-classification/src/ModelMaker/ModelUtils.py:332
↓ 9 callersMethodenterRule
(ParseTreeListener listener)
tools/spt-generator/src/com/ibm/ai4code/parser/cymbol/CymbolParser.java:119
↓ 9 callersMethodenterRule
(ParseTreeListener listener)
tools/spt-generator/src/com/ibm/ai4code/parser/cymbol_multi/CymbolParser.java:119
↓ 9 callersMethodexitRule
(ParseTreeListener listener)
tools/spt-generator/src/com/ibm/ai4code/parser/cymbol/CymbolParser.java:123
↓ 9 callersMethodexitRule
(ParseTreeListener listener)
tools/spt-generator/src/com/ibm/ai4code/parser/cymbol_multi/CymbolParser.java:123
↓ 9 callersMethodgetNumber
(JSONObject N)
tools/analysis-graph-generator/src/main/java/com/ibm/wala/codeNet/WalaSPTGraph.java:74
↓ 8 callersMethodexpr
()
tools/spt-generator/src/com/ibm/ai4code/parser/cymbol/CymbolParser.java:692
↓ 8 callersMethodexpr
()
tools/spt-generator/src/com/ibm/ai4code/parser/cymbol_multi/CymbolParser.java:692
↓ 8 callersMethodgetSuccNodes
(JSONObject n)
tools/analysis-graph-generator/src/main/java/com/ibm/wala/codeNet/WalaSPTGraph.java:139
↓ 7 callersMethodemit
(Token token)
tools/spt-generator/src/com/ibm/ai4code/parser/python/PythonLexerBase.java:29
↓ 7 callersMethodemit
(Token token)
tools/spt-generator/src/com/ibm/ai4code/parser/python_multi/PythonLexerBase.java:29
↓ 7 callersMethodemit
(Token token)
tools/spt-generator/src/com/ibm/ai4code/parser/python_multi/PythonTokensLexerBase.java:29
↓ 7 callersFunctiongetCheckpoint
Get either the specified checkpoint or the latest one Parameters: - checkpoint_dir -- Directory with checkpoints - checkpoint -
model-experiments/token-based-similarity-classification/src/CommonFunctions/Utilities.py:37
↓ 7 callersMethodgetNode
(int number)
tools/analysis-graph-generator/src/main/java/com/ibm/wala/codeNet/WalaSPTGraph.java:79
↓ 6 callersMethoddoit
(BiFunction<T,T,Void> edges)
tools/analysis-graph-generator/src/main/java/com/ibm/wala/codeNet/WalaToGNNFiles.java:413
↓ 6 callersMethodexpCompile
Experomental version of function for making functional dnn model and compiling it Parameters: - inputs -- list o
model-experiments/token-based-similarity-classification/src/ModelMaker/ExpSiamModel.py:172
↓ 6 callersMethodgetSeed
Get unique seed
model-experiments/token-based-similarity-classification/src/ModelMaker/ModelUtils.py:24
↓ 6 callersFunctionset_or_detect_lang
Either set this file's input language explicitly via a string or use the filename extension to determine the language. If neither works out, use
tools/tokenizer/libtoken.c:415
↓ 6 callersMethodsiameseBlock
Make Siamese block of CNN Outputs are Max pooled tensors of convolved input sequence Parameters are taken from members of ob
model-experiments/token-based-similarity-classification/src/ModelMaker/ExpSiamModel.py:196
↓ 6 callersFunctionsummary_report
(val_list)
model-experiments/gnn-based-experiments/src/utils_file.py:13
↓ 5 callersMethod_absDifference
Compute absolute value of difference of two tensor Parameters: - input1 -- 1-st operand - input2 -- 2-nd operand
model-experiments/token-based-similarity-classification/src/ModelMaker/FuncModelMaker.py:108
↓ 5 callersMethod_makeDs
Make a dataset for source code similarity analyser Parameters: - start_problem -- index of fist problem to use for sampl
model-experiments/token-based-similarity-classification/src/Dataset/TokensSimilDS.py:317
↓ 5 callersFunctionaddRegularizationArgs
Add arguments defining regularization Parameters: - parser -- argument parser as an object of ArgumentParser to add arg
model-experiments/token-based-similarity-classification/src/CommonFunctions/ProgramArguments.py:119
↓ 5 callersFunctionaddSeqTokensArgs
Add arguments defining DNN processing sequences of tokens Parameters: - parser -- argument parser as an object of ArgumentParser
model-experiments/token-based-similarity-classification/src/CommonFunctions/ProgramArguments.py:83
↓ 5 callersFunctioncheckConvolution
Check definition of convolution by program arguments Parameters: - args object with program arguments
model-experiments/token-based-similarity-classification/src/CommonFunctions/ProgramArguments.py:149
↓ 5 callersMethoddecode
(self, tokens)
model-experiments/masked-language-model/train.py:314
↓ 5 callersMethodgetBFSIdx
()
tools/spt-generator/src/com/ibm/ai4code/parser/commons/SPTNode.java:85
↓ 5 callersMethodgetChildren
()
tools/spt-generator/src/com/ibm/ai4code/parser/commons/TreeNodeIntf.java:7
↓ 5 callersMethodgetFileInfo
Assuming there is at least one period which seperates the real name and the file extension return file_name and file_type @param fileName @return resu
tools/spt-generator/src/com/ibm/ai4code/parser/Utils.java:12
↓ 5 callersMethodgetPartitionedSampes
Load tokenized samples of all solutions of programming problems, transform each sample into bag or sequence of tokens, Parti
model-experiments/token-based-similarity-classification/src/Dataset/DataLoader.py:241
↓ 5 callersMethodindex
()
tools/analysis-graph-generator/src/main/java/com/ibm/wala/codeNet/WalaToGNNFiles.java:281
↓ 5 callersFunctionmakeCkptCallback
- Create callback function for writing down checkpoints Parameter: - checkpoint_dir -- Directory for writing down checkpoints - moni
model-experiments/token-based-similarity-classification/src/CommonFunctions/Utilities.py:61
↓ 5 callersFunctionmakeFilePath
Make path to file and check its existance Check if the path exists and exit if it is not found The existance of the path is checked only
model-experiments/token-based-similarity-classification/src/CommonFunctions/Utilities.py:88
↓ 5 callersFunctionnode_attr_value
tools/json-graph/src/jgflib.c:56
↓ 5 callersMethodparse
(CommandLine cmd)
tools/spt-generator/src/com/ibm/ai4code/parser/commons/Args.java:5
↓ 5 callersFunctionsetupCheckpoint
Set up writing down checkpoints: - Make checkpoint directory is it does not exist - Find latest checkpoint Parameter: - checkpoin
model-experiments/token-based-similarity-classification/src/CommonFunctions/Utilities.py:18
↓ 5 callersMethodwriteProblemList
Write problem list to file to report test, train, validation problems Parameters: - problems -- list of problems
model-experiments/token-based-similarity-classification/src/Dataset/TokensSimilDS.py:476
↓ 4 callersMethod_compile
Make functional dnn model and compile it Parameters: - inputs -- list of dnn inputs - output -- dnn output
model-experiments/token-based-similarity-classification/src/ModelMaker/FuncModelMaker.py:251
↓ 4 callersFunctionattr_create
tools/json-graph/src/jgflib.c:25
↓ 4 callersFunctioncheckDsSolVsDir
Check that all solutiosn of a given problem are in dataset Parameters: - problem -- problem to check - solutions -- set of solution
model-experiments/token-based-similarity-classification/src/Verify/SimDsVerify.py:281
↓ 4 callersMethodcompLoss
Compute loss function Parameters: - labels -- number of labels (classes)
model-experiments/token-based-similarity-classification/src/ModelMaker/ModelUtils.py:87
↓ 4 callersMethodcompileDNN
Compile sequential DNN Parameters: - dnn -- DNN to compile - loss -- loss to use for training
model-experiments/token-based-similarity-classification/src/ModelMaker/ModelUtils.py:97
↓ 4 callersFunctionedge_create
tools/json-graph/src/jgflib.c:146
↓ 4 callersFunctionemit
tools/tokenizer/pytokenize.c:54
↓ 4 callersFunctionerror
tools/json-graph/src/jgflib.c:350
↓ 4 callersFunctionexpect_nodeid
Checks whether token is string or number literal. */
tools/json-graph/src/jgflib.c:367
↓ 4 callersFunctiongetProblemSet
Get list of problems satisfying required criteria: - number of solutions is not less than threshold - number of problems is not more than
model-experiments/token-based-similarity-classification/src/Dataset/DsUtilities.py:13
↓ 4 callersMethodgetRuleIndex
()
tools/spt-generator/src/com/ibm/ai4code/parser/commons/SPTNode.java:100
↓ 4 callersFunctionis_keyword
Generic binary search lookup in some keyword table. `word' to be searched must be NUL-terminated C string. `table' is array of const char * of `
tools/tokenizer/token_common.c:54
↓ 4 callersMethodlabelDistr
Compute label distribution Parameters: - labels - list of sample labels - n_labels - number of labels
model-experiments/token-based-similarity-classification/src/Dataset/TokensClassifDS.py:93
↓ 4 callersMethodloadAllSamples
Loads tokenized samples of all solutions of programming problems. Transforms each sample into bag or sequence of tokens Actu
model-experiments/token-based-similarity-classification/src/Dataset/DataLoader.py:159
↓ 4 callersFunctionmakeShardOptions
Make Dataset options: currently they are chard options for multi GPU mode Parameters: - policy -- policy to shard dataset:
model-experiments/token-based-similarity-classification/src/Dataset/DsUtilities.py:60
↓ 4 callersFunctionnode_create
tools/json-graph/src/jgflib.c:119
↓ 4 callersMethodrecoverInline
(Parser recognizer)
tools/spt-generator/src/com/ibm/ai4code/parser/SPTGenerator.java:315
↓ 4 callersMethodsetParentNode
(SPTNode parentNode)
tools/spt-generator/src/com/ibm/ai4code/parser/commons/SPTNode.java:57
↓ 4 callersFunctionshow_attrs
tools/json-graph/src/jgflib.c:318
↓ 4 callersFunctionskip
Skips all tokens that form the current token type. Returns the token right after. */
tools/json-graph/src/jgflib.c:393
↓ 4 callersMethodtestDataset
Make similarity dataset in the form of TensorFlow Dataset of from_generator type The dataset has samples of all pairs of pr
model-experiments/token-based-similarity-classification/src/PostProcessor/SeqTokSim2WayComplDS.py:142
↓ 4 callersMethodtrainValidDsDifferentProblems
Make datasets for training source code similarity analyser Both training and validation parts of dataset are made. The vali
model-experiments/token-based-similarity-classification/src/Dataset/TokensSimilDS.py:191
↓ 4 callersMethodtrainValidDsSameProblems
Make datasets for training source code similarity analyser Both training and validation parts of dataset are made. The valid
model-experiments/token-based-similarity-classification/src/Dataset/TokensSimilDS.py:111
↓ 4 callersFunctiontype
Returns string representation for JSON type. */
tools/json-graph/src/jgflib.c:259
↓ 4 callersMethodwriteReport
Write report on similarity analysis
model-experiments/token-based-similarity-classification/src/PostProcessor/SimilConfusion.py:485
↓ 3 callersFunctionC_tokenize_int
tools/tokenizer/libtoken.c:534
↓ 3 callersFunctionJSON_unescape
Undo JSON escaping: \\ => \. */
tools/json-graph/src/jsonml2jgf.c:178
↓ 3 callersFunctionXML_escape
Escape token for output as XML text.
tools/tokenizer/libtoken.c:1247
↓ 3 callersMethod__init__
emb_dim (int): node embedding dimensionality
model-experiments/gnn-based-experiments/src/model/conv.py:12
↓ 3 callersMethod__init__
(self, follow_batch, ndevices)
model-experiments/gnn-based-experiments/src/data/dataloader.py:11
↓ 3 callersMethod_dotProdClassifier
Add dot product classifier Dot product is not normalized but is transformed by sigmoid to probabilities as it helps converge
model-experiments/token-based-similarity-classification/src/ModelMaker/FuncModelMaker.py:149
↓ 3 callersMethod_printClustersDistr
model-experiments/token-based-similarity-classification/src/Clustering/VectorKMeans.py:163
↓ 3 callersFunctionattr_find
tools/json-graph/src/jgflib.c:34
↓ 3 callersFunctionattrs_free
tools/json-graph/src/jgflib.c:83
↓ 3 callersFunctioncheckDsVsDir
Check loaded dataset with respect to source dataset directory Parameters: - ds -- dictionary defining dataset to be checked
model-experiments/token-based-similarity-classification/src/Verify/SimDsVerify.py:301
next →1–100 of 1,251, ranked by callers