MCPcopy Create free account

hub / github.com/IBM/Project_CodeNet / functions

Functions1,251 in github.com/IBM/Project_CodeNet

↓ 3 callersFunctioncheckNoCommonProblems
Check that no common problems in two datasets Parameters: - ds1 -- 1-st dataset as dictionary of its problems dictio
model-experiments/token-based-similarity-classification/src/Verify/SimDsVerify.py:258
↓ 3 callersMethodcnnDNN
Make convolutional model Parameters: - convolutions -- specification of convolutional layers as l
model-experiments/token-based-similarity-classification/src/ModelMaker/SeqModelMaker.py:66
↓ 3 callersMethodcomputeRegularizer
Compute l1 and l2 regulizer Parameters: - regular -- regularizer as a pair (l1, l2) or None if no reg
model-experiments/token-based-similarity-classification/src/ModelMaker/ModelUtils.py:65
↓ 3 callersMethoddsFromGenerator
Make batched TF dataset from samples generator, Samples are defined with list of sequences Drop samples to make the dataset t
model-experiments/token-based-similarity-classification/src/Dataset/TokensClassifDS.py:121
↓ 3 callersFunctiongetLossFunction
Compute loss function as function of the argument Parameters: - loss -- loss function as a string
model-experiments/token-based-similarity-classification/src/ModelMaker/ExpSiamModel.py:48
↓ 3 callersMethodgetValue
()
tools/spt-generator/src/com/ibm/ai4code/parser/python/PythonVersion.java:14
↓ 3 callersFunctionjsmn_alloc_token
* Allocates a fresh unused token from the token pool. */
tools/json-graph/src/jsmn.h:106
↓ 3 callersMethodkmeansCluster
Cluster samples into n clusters Parameters: - n -- number of clusters
model-experiments/token-based-similarity-classification/src/Clustering/VectorKMeans.py:236
↓ 3 callersFunctionmemoryUsage
Print memory usage Parameter: - point -- identifier of print: string or number
model-experiments/token-based-similarity-classification/src/CommonFunctions/Utilities.py:78
↓ 3 callersFunctionnode_find
tools/json-graph/src/jgflib.c:133
↓ 3 callersMethodprint
()
tools/spt-generator/src/com/ibm/ai4code/parser/commons/TreePrinter.java:19
↓ 3 callersMethodrawDS
Make raw dataset having length multiple to batch size Samples are defined with list of sequences Parameters: - batch
model-experiments/token-based-similarity-classification/src/Dataset/TokensClassifDS.py:149
↓ 3 callersFunctionreadDsProblems
Read problems of the dataset Parameters: -fname -- file name Returns: - initialized dictionary * key - problem name
model-experiments/token-based-similarity-classification/src/Verify/SimDsVerify.py:188
↓ 3 callersFunctionreadDsSamples
Read samples of dataset Parameters; - cvs_file -- csv file defining dataset - problems -- dictionary of problems of the dataset
model-experiments/token-based-similarity-classification/src/Verify/SimDsVerify.py:214
↓ 3 callersMethodreport
Printing report of dataset statistics Parameters: - title -- title of the report
model-experiments/token-based-similarity-classification/src/Verify/SimDsVerify.py:166
↓ 3 callersMethodreportClasses
Report classification of set of classes Parameters: - classes -- classes to report - f -- file to write repor
model-experiments/token-based-similarity-classification/src/PostProcessor/ClassConfusion.py:72
↓ 3 callersMethodreportDissimilarityMisclass
Report errors in dissimilarity detection of problem solutions Parameters: - tests -- tests to report
model-experiments/token-based-similarity-classification/src/PostProcessor/SimilConfusion.py:418
↓ 3 callersMethodreportDissimilarityProblems
Print report on accuracy of dissimilarity detection of solutions of pairs of problems Parameters: - tests -- list of
model-experiments/token-based-similarity-classification/src/PostProcessor/SimilConfusion.py:352
↓ 3 callersMethodreportSimilarityProblems
Write down accuracy of similarity detection of two solutions of same problem Parameters: - sim_accuracy -- list of
model-experiments/token-based-similarity-classification/src/PostProcessor/SimilConfusion.py:219
↓ 3 callersFunctionsampleToSetDistance
Distance from sample to set of vectors
model-experiments/token-based-similarity-classification/src/Clustering/VectorKMeans.py:18
↓ 3 callersFunctiontoken_buf_pop
Undoes the push action but only if there is some content.
tools/tokenizer/libtoken.c:484
↓ 3 callersFunctiontoken_buf_reset
Resets the token buffer cursor.
tools/tokenizer/libtoken.c:497
↓ 3 callersMethodtokenizeFile
Tokenize source code file Parameters: - in_fn -- name of input file with code to tokenize Returns: - either
model-experiments/token-based-similarity-classification/src/DSMaker/DSTokenizer.py:74
↓ 3 callersMethodtype
()
tools/spt-generator/src/com/ibm/ai4code/parser/cymbol/CymbolParser.java:255
↓ 3 callersMethodtype
()
tools/spt-generator/src/com/ibm/ai4code/parser/cymbol_multi/CymbolParser.java:255
↓ 3 callersMethodupdate
Update statistics of problem solutions usage Parameters: - problem -- problem name - problem_stat -- Statistic
model-experiments/token-based-similarity-classification/src/Verify/SimDsVerify.py:119
↓ 3 callersFunctionutf8_codepoint
Assume input is UTF-8 encoded Unicode code points. Will read 1 code point and return that as int. The number of bytes read is len and they are p
tools/tokenizer/pytokenize.c:148
↓ 3 callersMethodwriteClassifications
Write down information on classification predictions Parameters: - predictions - list of predictions each of which is
model-experiments/token-based-similarity-classification/src/PostProcessor/ClassConfusion.py:179
↓ 3 callersMethodwriteGraph
(Supplier<Iterator<T>> entryPoints, Graph<T> ipcfg, Function<T, Set<String>> features, BiFunction<T,
tools/analysis-graph-generator/src/main/java/com/ibm/wala/codeNet/WalaToGNNFiles.java:324
↓ 3 callersMethodwriteProblemDistribution
Compute and write problem distribution in samples The distribution is computed only for problems used for constructing sampl
model-experiments/token-based-similarity-classification/src/Dataset/TokensSimilDS.py:529
↓ 3 callersMethodwriteReport
Write report on classification and misclassification
model-experiments/token-based-similarity-classification/src/PostProcessor/ClassConfusion.py:344
↓ 3 callersMethodwriteSamplesCsv
Write dataset samples in csv format to report test, train, validation datset Parameters: - samples -- similarity sam
model-experiments/token-based-similarity-classification/src/Dataset/TokensSimilDS.py:509
↓ 2 callersFunctionCSV_escape
Escape token for output as CSV string.
tools/tokenizer/antlr4tojson.c:195
↓ 2 callersMethodIncTokenInd
(int ind)
tools/spt-generator/src/com/ibm/ai4code/parser/python/PythonLexerBase.java:166
↓ 2 callersMethodIncTokenInd
(int ind)
tools/spt-generator/src/com/ibm/ai4code/parser/python_multi/PythonLexerBase.java:166
↓ 2 callersMethodIncTokenInd
(int ind)
tools/spt-generator/src/com/ibm/ai4code/parser/python_multi/PythonTokensLexerBase.java:174
↓ 2 callersMethodIsNotNewLineOrComment
(char next)
tools/spt-generator/src/com/ibm/ai4code/parser/python/PythonLexerBase.java:141
↓ 2 callersMethodIsNotNewLineOrComment
(char next)
tools/spt-generator/src/com/ibm/ai4code/parser/python_multi/PythonLexerBase.java:141
↓ 2 callersMethodIsNotNewLineOrComment
(char next)
tools/spt-generator/src/com/ibm/ai4code/parser/python_multi/PythonTokensLexerBase.java:146
↓ 2 callersFunctionJSON_escape
Escape token for output as JSON string.
tools/tokenizer/antlr4tojson.c:167
↓ 2 callersMethodProcessNewLine
(int indent)
tools/spt-generator/src/com/ibm/ai4code/parser/python/PythonLexerBase.java:145
↓ 2 callersMethodProcessNewLine
(int indent)
tools/spt-generator/src/com/ibm/ai4code/parser/python_multi/PythonLexerBase.java:145
↓ 2 callersMethodProcessNewLine
(int indent)
tools/spt-generator/src/com/ibm/ai4code/parser/python_multi/PythonTokensLexerBase.java:150
↓ 2 callersFunctionXML_escape
Escape token for output as XML text.
tools/tokenizer/jstokenize.c:641
↓ 2 callersFunctionXML_escape
Escape token for output as XML text.
tools/tokenizer/pytokenize.c:763
↓ 2 callersMethod__init__
Initialize object of classification dataset Parameters: - ds -- object of loaded dataset - start_idx -
model-experiments/token-based-similarity-classification/src/Dataset/TokensClassifDS.py:175
↓ 2 callersMethod__init__
Initialize tokenizer object Parameters: - ds -- Directory to write down tokenized solutions - data -- Direc
model-experiments/token-based-similarity-classification/src/DSMaker/DSTokenizer.py:447
↓ 2 callersMethod_fillInCategorical
Fill in dataset numpy array with one solution using categorical coding Parameters: - ds -- numpy array of to
model-experiments/token-based-similarity-classification/src/SeqOfTokens/SeqTok2WaySimDataset.py:93
↓ 2 callersMethod_fillInSimDataset
Fill in similarity dataset with one solution Parameters: - ds -- numpy array of to fill in with one part
model-experiments/token-based-similarity-classification/src/SeqOfTokens/SeqTokSimDataset.py:76
↓ 2 callersMethod_registerSolution
Register problem solution Parameters: - reg_dict -- dictionary where to register Key: problem name. V
model-experiments/token-based-similarity-classification/src/Dataset/DataLoader.py:122
↓ 2 callersMethod_writeSolutionsLengths
Print registered problem solutions and their lengths Parameters: - reg_dict -- Dictionary with registered problems
model-experiments/token-based-similarity-classification/src/Dataset/DataLoader.py:136
↓ 2 callersMethodaddClassifier
Add to the dnn a dense layer with classifier Classifier is either softmax for more than 2 classes or sigmoid for 2 classes
model-experiments/token-based-similarity-classification/src/ModelMaker/ModelUtils.py:396
↓ 2 callersMethodaddConv1
Add to the dnn a stack of convolutional layers Parameters: - dnn -- dnn to buld - convolutions -- specific
model-experiments/token-based-similarity-classification/src/ModelMaker/ModelUtils.py:169
↓ 2 callersMethodaddDense
Add a stack of dense layers to the dnn Parameters: - dnn -- dnn to buld - dense -- specification of de
model-experiments/token-based-similarity-classification/src/ModelMaker/ModelUtils.py:196
↓ 2 callersMethodaddEmbedding
Add embedding layer to the DNN Parameters: - dnn -- dnn to buld - trainable -- flag defining that
model-experiments/token-based-similarity-classification/src/ModelMaker/ModelUtils.py:241
↓ 2 callersFunctionadj_edge_add
tools/json-graph/src/jgflib.c:160
↓ 2 callersMethodblock
()
tools/spt-generator/src/com/ibm/ai4code/parser/cymbol/CymbolParser.java:480
↓ 2 callersMethodblock
()
tools/spt-generator/src/com/ibm/ai4code/parser/cymbol_multi/CymbolParser.java:480
↓ 2 callersFunctioncheckDsVsDir
Check loaded dataset with respect to source datset directory Parameters: - ds -- dictionary defining dataset to be checked - ds_
model-experiments/token-based-similarity-classification/src/Verify/ClassDsVerify.py:72
↓ 2 callersMethodcollate
(self, batch)
model-experiments/gnn-based-experiments/src/data/dataloader.py:15
↓ 2 callersMethodcompClassification
Compute classification function Parameters: - labels -- number of labels (classes)
model-experiments/token-based-similarity-classification/src/ModelMaker/ModelUtils.py:77
↓ 2 callersMethodconvTower
Make sequential DNN building block of stack of convolutional layers Parameters: - convolutions -- specification of
model-experiments/token-based-similarity-classification/src/ModelMaker/ModelUtils.py:278
↓ 2 callersFunctioncoords
Decode the coordinates attribute. */
tools/json-graph/src/jsonml2jgf.c:59
↓ 2 callersMethoddenseDNN
Make DNN with dense (fully connected) layers Parameters: - dense -- list of hidden layers widths for
model-experiments/token-based-similarity-classification/src/ModelMaker/SeqModelMaker.py:41
↓ 2 callersFunctiondet_coords_adjust_labels
Determine correct coordinates for all tokens (leaf nodes) and adjust all labels by removing leading and trailing white-space. */
tools/json-graph/src/jsonml2jgf.c:79
↓ 2 callersMethoddsFromGenerator
Make TF dataset from samples generator, defined with list of sequences Parameters: - samples -- list of samples (s
model-experiments/token-based-similarity-classification/src/Dataset/DoubleSeqTfDS.py:90
↓ 2 callersFunctionedge_add
tools/json-graph/src/jgflib.c:151
↓ 2 callersMethodendDebug
Complete debugging
model-experiments/token-based-similarity-classification/src/DSMaker/DebugTokenizer.py:59
↓ 2 callersMethodenterBlock
Enter a parse tree produced by {@link CymbolParser#block}. @param ctx the parse tree
tools/spt-generator/src/com/ibm/ai4code/parser/cymbol_multi/CymbolListener.java:74
↓ 2 callersMethodenterExpr
Enter a parse tree produced by {@link CymbolParser#expr}. @param ctx the parse tree
tools/spt-generator/src/com/ibm/ai4code/parser/cymbol_multi/CymbolListener.java:94
↓ 2 callersMethodenterExprList
Enter a parse tree produced by {@link CymbolParser#exprList}. @param ctx the parse tree
tools/spt-generator/src/com/ibm/ai4code/parser/cymbol_multi/CymbolListener.java:104
↓ 2 callersMethodenterFile
Enter a parse tree produced by {@link CymbolParser#file}. @param ctx the parse tree
tools/spt-generator/src/com/ibm/ai4code/parser/cymbol_multi/CymbolListener.java:14
↓ 2 callersMethodenterFormalParameter
Enter a parse tree produced by {@link CymbolParser#formalParameter}. @param ctx the parse tree
tools/spt-generator/src/com/ibm/ai4code/parser/cymbol_multi/CymbolListener.java:64
↓ 2 callersMethodenterFormalParameters
Enter a parse tree produced by {@link CymbolParser#formalParameters}. @param ctx the parse tree
tools/spt-generator/src/com/ibm/ai4code/parser/cymbol_multi/CymbolListener.java:54
↓ 2 callersMethodenterFunctionDecl
Enter a parse tree produced by {@link CymbolParser#functionDecl}. @param ctx the parse tree
tools/spt-generator/src/com/ibm/ai4code/parser/cymbol_multi/CymbolListener.java:44
↓ 2 callersMethodenterStat
Enter a parse tree produced by {@link CymbolParser#stat}. @param ctx the parse tree
tools/spt-generator/src/com/ibm/ai4code/parser/cymbol_multi/CymbolListener.java:84
↓ 2 callersMethodenterType
Enter a parse tree produced by {@link CymbolParser#type}. @param ctx the parse tree
tools/spt-generator/src/com/ibm/ai4code/parser/cymbol_multi/CymbolListener.java:34
↓ 2 callersMethodenterVarDecl
Enter a parse tree produced by {@link CymbolParser#varDecl}. @param ctx the parse tree
tools/spt-generator/src/com/ibm/ai4code/parser/cymbol_multi/CymbolListener.java:24
↓ 2 callersFunctioneval
(model, device, loader, evaluator)
model-experiments/gnn-based-experiments/src/main.py:62
↓ 2 callersMethodexitBlock
Exit a parse tree produced by {@link CymbolParser#block}. @param ctx the parse tree
tools/spt-generator/src/com/ibm/ai4code/parser/cymbol_multi/CymbolListener.java:79
↓ 2 callersMethodexitExpr
Exit a parse tree produced by {@link CymbolParser#expr}. @param ctx the parse tree
tools/spt-generator/src/com/ibm/ai4code/parser/cymbol_multi/CymbolListener.java:99
↓ 2 callersMethodexitExprList
Exit a parse tree produced by {@link CymbolParser#exprList}. @param ctx the parse tree
tools/spt-generator/src/com/ibm/ai4code/parser/cymbol_multi/CymbolListener.java:109
↓ 2 callersMethodexitFile
Exit a parse tree produced by {@link CymbolParser#file}. @param ctx the parse tree
tools/spt-generator/src/com/ibm/ai4code/parser/cymbol_multi/CymbolListener.java:19
↓ 2 callersMethodexitFormalParameter
Exit a parse tree produced by {@link CymbolParser#formalParameter}. @param ctx the parse tree
tools/spt-generator/src/com/ibm/ai4code/parser/cymbol_multi/CymbolListener.java:69
↓ 2 callersMethodexitFormalParameters
Exit a parse tree produced by {@link CymbolParser#formalParameters}. @param ctx the parse tree
tools/spt-generator/src/com/ibm/ai4code/parser/cymbol_multi/CymbolListener.java:59
↓ 2 callersMethodexitFunctionDecl
Exit a parse tree produced by {@link CymbolParser#functionDecl}. @param ctx the parse tree
tools/spt-generator/src/com/ibm/ai4code/parser/cymbol_multi/CymbolListener.java:49
↓ 2 callersMethodexitStat
Exit a parse tree produced by {@link CymbolParser#stat}. @param ctx the parse tree
tools/spt-generator/src/com/ibm/ai4code/parser/cymbol_multi/CymbolListener.java:89
↓ 2 callersMethodexitType
Exit a parse tree produced by {@link CymbolParser#type}. @param ctx the parse tree
tools/spt-generator/src/com/ibm/ai4code/parser/cymbol_multi/CymbolListener.java:39
↓ 2 callersMethodexitVarDecl
Exit a parse tree produced by {@link CymbolParser#varDecl}. @param ctx the parse tree
tools/spt-generator/src/com/ibm/ai4code/parser/cymbol_multi/CymbolListener.java:29
↓ 2 callersMethodexpDenseClassifier
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/ExpSiamModel.py:252
↓ 2 callersFunctionexpect_scalar
Checks whether token is a string or primitive. */
tools/json-graph/src/jgflib.c:383
↓ 2 callersMethodfile
()
tools/spt-generator/src/com/ibm/ai4code/parser/cymbol/CymbolParser.java:129
↓ 2 callersMethodfindNodeForStatement
(NodeFinder nf, Statement srcNode)
tools/analysis-graph-generator/src/main/java/com/ibm/wala/codeNet/GraphAugmentor.java:91
↓ 2 callersMethodformalParameter
()
tools/spt-generator/src/com/ibm/ai4code/parser/cymbol/CymbolParser.java:434
↓ 2 callersMethodformalParameter
()
tools/spt-generator/src/com/ibm/ai4code/parser/cymbol_multi/CymbolParser.java:434
↓ 2 callersMethodgetChildren
()
tools/spt-generator/src/com/ibm/ai4code/parser/commons/SPTNode.java:71
↓ 2 callersMethodgetDFSIndex
()
tools/spt-generator/src/com/ibm/ai4code/parser/commons/SPTNode.java:93
↓ 2 callersMethodgetDepth
()
tools/spt-generator/src/com/ibm/ai4code/parser/commons/SPTNode.java:114
↓ 2 callersMethodgetDissimilarityMistakes
Get list of errors in dissimilarity detection of problem solutions Parameters: - tests -- list of accuracy of dissi
model-experiments/token-based-similarity-classification/src/PostProcessor/SimilConfusion.py:385
↓ 2 callersMethodgetLabel
()
tools/spt-generator/src/com/ibm/ai4code/parser/commons/SPTNode.java:336
← previousnext →101–200 of 1,251, ranked by callers