MCPcopy Create free account

hub / github.com/IBM/Project_CodeNet / functions

Functions1,251 in github.com/IBM/Project_CodeNet

↓ 2 callersMethodgetNumEdges
()
tools/spt-generator/src/com/ibm/ai4code/parser/commons/SPT.java:51
↓ 2 callersMethodgetNumNodes
()
tools/spt-generator/src/com/ibm/ai4code/parser/commons/SPT.java:48
↓ 2 callersMethodgetPosition
(Statement srcNode)
tools/analysis-graph-generator/src/main/java/com/ibm/wala/codeNet/GraphAugmentor.java:105
↓ 2 callersMethodgetReservedWordFlag
()
tools/spt-generator/src/com/ibm/ai4code/parser/commons/SPTNode.java:121
↓ 2 callersMethodgetRuleName
()
tools/spt-generator/src/com/ibm/ai4code/parser/commons/SPTNode.java:346
↓ 2 callersMethodgetVocabulary
()
tools/spt-generator/src/com/ibm/ai4code/parser/cymbol/CymbolLexer.java:85
↓ 2 callersMethodget_idx_split
(self, split_type = None)
model-experiments/gnn-based-experiments/src/data/dataset.py:81
↓ 2 callersFunctiongraph_create
tools/json-graph/src/jgflib.c:77
↓ 2 callersMethodhandleSingle
(String srcFileName, String dstDir)
tools/spt-generator/src/com/ibm/ai4code/parser/Tokenizer.java:144
↓ 2 callersMethodhandleSingle
(String srcFileName, String dstDir)
tools/spt-generator/src/com/ibm/ai4code/parser/SPTGenerator.java:331
↓ 2 callersFunctionjgf_parse
tools/json-graph/src/jgflib.c:444
↓ 2 callersFunctionjsmn_fill_token
* Fills token type and boundaries. */
tools/json-graph/src/jsmn.h:125
↓ 2 callersMethodlabel
(T n)
tools/analysis-graph-generator/src/main/java/com/ibm/wala/codeNet/GraphGenerator.java:61
↓ 2 callersMethodloadSolutions
Load tokenized code samples of one class i.e. source code files solving one programming problem The loaded samples a
model-experiments/token-based-similarity-classification/src/Dataset/DataLoader.py:379
↓ 2 callersMethodlocation
(JSONObject node)
tools/analysis-graph-generator/src/main/java/com/ibm/wala/codeNet/NodeFinder.java:47
↓ 2 callersFunctionmain
tools/spt-generator/examples/c/fib.c:11
↓ 2 callersMethodmakeBagOfTokens
Compute bag of tokens from list of tokens where <bag of tokens> is a vector of tokens frequences Parameters: - token
model-experiments/token-based-similarity-classification/src/Dataset/DataLoader.py:516
↓ 2 callersMethodmakeCNN
Make experimental two way convolutional Siamese dnn for sequence similarity analysis Parameters to each DNN are passed as se
model-experiments/token-based-similarity-classification/src/ModelMaker/ExpSiamModel.py:89
↓ 2 callersFunctionnode_add
tools/json-graph/src/jgflib.c:124
↓ 2 callersFunctionnode_add_attr
tools/json-graph/src/jgflib.c:50
↓ 2 callersFunctionnormalize_newline
Deal with DOS (\r \n) and classic Mac OS (\r) (physical) line endings. In case of CR LF skip (but count) the CR and return LF. In case of CR not
tools/tokenizer/libtoken.c:296
↓ 2 callersFunctionnormalize_newline
Deal with DOS (\r \n) and classic Mac OS (\r) line endings. Keeps track of physical coordinates and absolute location for each character. */
tools/tokenizer/ntokenize.c:239
↓ 2 callersFunctionnormalize_newline
Deal with DOS (\r \n) and classic Mac OS (\r) (physical) line endings. In case of CR LF skip (but count) the CR and return LF. In case of CR not
tools/tokenizer/token_common.c:108
↓ 2 callersFunctionoutdegree
tools/json-graph/src/jgflib.c:62
↓ 2 callersFunctionparse
Parse the JSON input (global) into an array of tokens. Returns the allocated token array. The number of tokens is passed back via num_tokens.
tools/json-graph/src/jgflib.c:217
↓ 2 callersMethodprintClustCentersDistr
model-experiments/token-based-similarity-classification/src/Clustering/VectorKMeans.py:141
↓ 2 callersMethodprintClustToCentersDistr
model-experiments/token-based-similarity-classification/src/Clustering/VectorKMeans.py:148
↓ 2 callersMethodprintClustersDistr
model-experiments/token-based-similarity-classification/src/Clustering/VectorKMeans.py:155
↓ 2 callersMethodprintClustersStat
model-experiments/token-based-similarity-classification/src/Clustering/VectorKMeans.py:186
↓ 2 callersMethodprintReport
Print report on performed tokenization
model-experiments/token-based-similarity-classification/src/DSMaker/DSTokenizer.py:373
↓ 2 callersFunctionprocess_newline
emit NEWLINE and deal with indentation
tools/tokenizer/pytokenize.c:99
↓ 2 callersFunctionreadDataset
Read datset problems and solutions from csv file Parameters; - cvs_file -- csv file defining dataset Returns: - dictionary defin
model-experiments/token-based-similarity-classification/src/Verify/ClassDsVerify.py:10
↓ 2 callersMethodreportDatasetStatistics
Write down report on statistics of generated dataset Parameters: - val_start -- index of start problem for validation
model-experiments/token-based-similarity-classification/src/Dataset/TokensSimilDS.py:455
↓ 2 callersMethodreportMisclassifications
Report misclassifications of given classes Parameters: - classes -- indices of classes to report - mistakes -- list
model-experiments/token-based-similarity-classification/src/PostProcessor/ClassConfusion.py:217
↓ 2 callersMethodreportSimilarityMisclass
Report errors in similarity detection of problem solutions Parameters: - sim_accuracy -- list of accuracy of similarity dete
model-experiments/token-based-similarity-classification/src/PostProcessor/SimilConfusion.py:260
↓ 2 callersMethodsiameseSimilarityCNN
Make two way convolutional Siamese dnn for sequence similarity analysis Parameters: - n_tokens -- number o
model-experiments/token-based-similarity-classification/src/ModelMaker/FuncModelMaker.py:266
↓ 2 callersMethodsimilarityToProb
Convert similarity metric to probabilities Parameters: - sim_metric -- similarity metric - labels01 -- label t
model-experiments/token-based-similarity-classification/src/PostProcessor/SimilConfusion.py:19
↓ 2 callersFunctiontoken
()
tools/tokenizer/tokenize.py:32
↓ 2 callersFunctiontoken_buf_room
Makes sure there is room in the token buffer.
tools/tokenizer/libtoken.c:453
↓ 2 callersMethodtokenize
(String srcFileName, String dstFileName)
tools/spt-generator/src/com/ibm/ai4code/parser/Tokenizer.java:43
↓ 2 callersFunctiontokenizeFile
Tokenize a given file Parameters: - filename -- name of source code file to tokenize - tokenizer -- path to tokenizer executable
Contest/ExampleSimAnalysis/TestSetEval.py:70
↓ 2 callersMethodtrainValDsSize
Compute sizes of training and validation datasets rounded to batch size Use only samples left after reserving samples for te
model-experiments/token-based-similarity-classification/src/Dataset/TokensClassifDS.py:460
↓ 2 callersMethodtrainValidDs
Make training and validation tf.datasets by splitting loaded data set The tf.data.dataset is constructed from_generator
model-experiments/token-based-similarity-classification/src/Dataset/TokensClassifDS.py:432
↓ 2 callersMethodvarDecl
()
tools/spt-generator/src/com/ibm/ai4code/parser/cymbol/CymbolParser.java:199
↓ 2 callersMethodvarDecl
()
tools/spt-generator/src/com/ibm/ai4code/parser/cymbol_multi/CymbolParser.java:199
↓ 2 callersMethodwriteInfo
Write information on tokenization into the dataset
model-experiments/token-based-similarity-classification/src/DSMaker/DSTokenizer.py:363
↓ 2 callersMethodwriteLabelDistribution
Write down distribution of datasets lables
model-experiments/token-based-similarity-classification/src/Dataset/TokensClassifDS.py:476
↓ 2 callersMethodwriteMistakes
Report problem solutions whose similarity was incorrectly classified Parameters: - mistakes -- list of indices o
model-experiments/token-based-similarity-classification/src/PostProcessor/SimilConfusion.py:282
↓ 1 callersFunctionCSV_escape
Escape token for output as CSV string.
tools/json-graph/src/jsonml2jgf.c:194
↓ 1 callersFunctionCSV_escape
Escape token for output as CSV string.
tools/tokenizer/jstokenize.c:606
↓ 1 callersFunctionCSV_escape
Escape token for output as CSV string.
tools/tokenizer/libtoken.c:1206
↓ 1 callersFunctionCSV_escape
Escape token for output as CSV string.
tools/tokenizer/pytokenize.c:728
↓ 1 callersFunctionJSON_escape
Escape token for output as JSON string.
tools/tokenizer/jstokenize.c:625
↓ 1 callersFunctionJSON_escape
Escape token for output as JSON string.
tools/tokenizer/libtoken.c:1225
↓ 1 callersFunctionJSON_escape
Escape token for output as JSON string.
tools/tokenizer/pytokenize.c:747
↓ 1 callersFunctionRAW_escape
Escape hard newlines in a string.
tools/tokenizer/pytokenize.c:715
↓ 1 callersMethod__init__
model-experiments/token-based-similarity-classification/src/Clustering/VectorKMeans.py:36
↓ 1 callersMethod__init__
(self)
model-experiments/token-based-similarity-classification/src/Dataset/DataLoader.py:28
↓ 1 callersMethod__init__
(self)
model-experiments/token-based-similarity-classification/src/ModelMaker/ModelUtils.py:43
↓ 1 callersMethod_addDisSimilarSamples
Expand the given dataset with pairs of dissimilar solutions Parameters: - ds -- dataset for adding samples t
model-experiments/token-based-similarity-classification/src/Dataset/TokensSimilDS.py:392
↓ 1 callersMethod_addSimilarSamples
Add samples with similar solutions of the problems to the given dataset Parameters: - ds -- dataset f
model-experiments/token-based-similarity-classification/src/Dataset/TokensSimilDS.py:357
↓ 1 callersMethod_convLayer
Construct a convolutional layer Regularization is applied with self._regularizer Parameters: - input_tensor -- input
model-experiments/token-based-similarity-classification/src/ModelMaker/FuncModelMaker.py:42
↓ 1 callersMethod_expBiasedDenseLayer
Experimental dense layer with fixed value of bias Parameters: - input_tensor -- input tensor - width -- widt
model-experiments/token-based-similarity-classification/src/ModelMaker/ExperimentalModel.py:122
↓ 1 callersMethod_expCompile
Experomental version of function for making functional dnn model and compiling it Parameters: - inputs -- list o
model-experiments/token-based-similarity-classification/src/ModelMaker/ExperimentalModel.py:100
↓ 1 callersMethod_makeCategorical
Make samples with categorical coding Parameters: - samples -- samples as list of sequences of tokens Returns:
model-experiments/token-based-similarity-classification/src/SeqOfTokens/SeqTokDataset.py:96
↓ 1 callersMethod_makeLabels
Make lables from set of similarity samples Parameters: - annotations -- list of similarity samples in form of 4-tuples
model-experiments/token-based-similarity-classification/src/Dataset/TokensSimilDS.py:441
↓ 1 callersMethod_seqOfTokens
Load sequence of tokens for solution source code Transforms string representation into int Parameters: - line -- desc
model-experiments/token-based-similarity-classification/src/Dataset/DataLoader.py:464
↓ 1 callersMethodaddChildNode
(SPTNode node)
tools/spt-generator/src/com/ibm/ai4code/parser/commons/SPTNode.java:60
↓ 1 callersMethodaddConv1Layer
Add to the dnn a convolutional layer Parameters: - dnn -- dnn to buld - convolution -- specification of t
model-experiments/token-based-similarity-classification/src/ModelMaker/ModelUtils.py:134
↓ 1 callersMethodaddDropout
Add droput layer to dnn Parameters: - dnn -- dnn to buld - rate -- dropout rate If it is
model-experiments/token-based-similarity-classification/src/ModelMaker/ModelUtils.py:230
↓ 1 callersMethodaddEdge
(JSONObject src, JSONObject dst)
tools/analysis-graph-generator/src/main/java/com/ibm/wala/codeNet/WalaSPTGraph.java:153
↓ 1 callersMethodaddNode
(JSONObject n)
tools/analysis-graph-generator/src/main/java/com/ibm/wala/codeNet/WalaSPTGraph.java:59
↓ 1 callersMethodaddPooling
Add pooling layer to the dnn Parameters: - dnn -- dnn to buld - pool -- pooling operation; either
model-experiments/token-based-similarity-classification/src/ModelMaker/ModelUtils.py:213
↓ 1 callersMethodannotateSamples
Annotate samples with their problem indices and names
model-experiments/token-based-similarity-classification/src/PostProcessor/SeqTokSim2WayComplDS.py:55
↓ 1 callersMethodaromaLabeling
A Facebook Aroma type labeling scheme @param root @param rwdi
tools/spt-generator/src/com/ibm/ai4code/parser/commons/SPTNode.java:280
↓ 1 callersMethodaromaLabelingStageOne
AromaLabeling stage one, just find out all the reserved words @param root @param rwdi
tools/spt-generator/src/com/ibm/ai4code/parser/commons/SPTNode.java:292
↓ 1 callersMethodaromaLabelingStageTwo
(SPTNode root)
tools/spt-generator/src/com/ibm/ai4code/parser/commons/SPTNode.java:308
↓ 1 callersFunctionaugment_edge
Input: data: PyG data object Output: data (edges are augmented in the following ways): data.e
model-experiments/gnn-based-experiments/src/utils.py:38
↓ 1 callersMethodbalancedTestTrain
Devide solutions of each problem evenly between test and, training and test datasets Returns: - test dataset
model-experiments/token-based-similarity-classification/src/Dataset/TokensClassifDS.py:296
↓ 1 callersMethodbalancedValTrain
Devide solutions of each problem evenly between validation and training datasets Parameters: - valpart -- Fractio
model-experiments/token-based-similarity-classification/src/Dataset/TokensClassifDS.py:376
↓ 1 callersFunctionbert_module
(query, key, value, i)
model-experiments/masked-language-model/train.py:193
↓ 1 callersMethodbfsIndexing
index the tree via layer-wise traversal (i.e. BFS) @param root
tools/spt-generator/src/com/ibm/ai4code/parser/commons/SPTNode.java:221
↓ 1 callersMethodbiasedDenseLayer
Experimental dense layer with fixed value of bias Parameters: - input_tensor -- input tensor - width -- widt
model-experiments/token-based-similarity-classification/src/ModelMaker/ExpSiamModel.py:286
↓ 1 callersFunctionbuffer_fill
Phase 3. Buffers up enough characters to encompass any possible token length. Assumes buffer contents is white-space followed by at least 1 toke
tools/tokenizer/ntokenize.c:386
↓ 1 callersMethodbuildKeyWordsHashSet
()
tools/spt-generator/src/com/ibm/ai4code/parser/python/PythonReservedWordDecider.java:103
↓ 1 callersMethodbuildKeyWordsHashSet
()
tools/spt-generator/src/com/ibm/ai4code/parser/cymbol/CymbolReservedWordDecider.java:39
↓ 1 callersMethodbuildKeyWordsHashSet
()
tools/spt-generator/src/com/ibm/ai4code/parser/cpp/CPPReservedWordDecider.java:145
↓ 1 callersMethodbuildKeyWordsHashSet
()
tools/spt-generator/src/com/ibm/ai4code/parser/cpp_multi/CPPReservedWordDecider.java:145
↓ 1 callersMethodbuildKeyWordsHashSet
()
tools/spt-generator/src/com/ibm/ai4code/parser/c_multi/C11ReservedWordDecider.java:112
↓ 1 callersMethodbuildKeyWordsHashSet
()
tools/spt-generator/src/com/ibm/ai4code/parser/java/JavaReservedWordDecider.java:113
↓ 1 callersMethodbuildKeyWordsHashSet
()
tools/spt-generator/src/com/ibm/ai4code/parser/cymbol_multi/CymbolReservedWordDecider.java:39
↓ 1 callersMethodbuildKeyWordsHashSet
()
tools/spt-generator/src/com/ibm/ai4code/parser/cobol/CobolReservedWordDecider.java:574
↓ 1 callersMethodbuildKeyWordsHashSet
()
tools/spt-generator/src/com/ibm/ai4code/parser/c/CReservedWordDecider.java:112
↓ 1 callersMethodbuildKeyWordsHashSet
()
tools/spt-generator/src/com/ibm/ai4code/parser/java_multi/JavaReservedWordDecider.java:113
↓ 1 callersMethodbuildOPsHashSet
()
tools/spt-generator/src/com/ibm/ai4code/parser/python/PythonReservedWordDecider.java:108
↓ 1 callersMethodbuildOPsHashSet
()
tools/spt-generator/src/com/ibm/ai4code/parser/cymbol/CymbolReservedWordDecider.java:44
↓ 1 callersMethodbuildOPsHashSet
()
tools/spt-generator/src/com/ibm/ai4code/parser/cpp/CPPReservedWordDecider.java:150
↓ 1 callersMethodbuildOPsHashSet
()
tools/spt-generator/src/com/ibm/ai4code/parser/cpp_multi/CPPReservedWordDecider.java:150
↓ 1 callersMethodbuildOPsHashSet
()
tools/spt-generator/src/com/ibm/ai4code/parser/c_multi/C11ReservedWordDecider.java:117
↓ 1 callersMethodbuildOPsHashSet
()
tools/spt-generator/src/com/ibm/ai4code/parser/java/JavaReservedWordDecider.java:118
← previousnext →201–300 of 1,251, ranked by callers