Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/IBM/Project_CodeNet
/ functions
Functions
1,251 in github.com/IBM/Project_CodeNet
⨍
Functions
1,251
◇
Types & classes
153
↓ 2 callers
Method
getNumEdges
()
tools/spt-generator/src/com/ibm/ai4code/parser/commons/SPT.java:51
↓ 2 callers
Method
getNumNodes
()
tools/spt-generator/src/com/ibm/ai4code/parser/commons/SPT.java:48
↓ 2 callers
Method
getPosition
(Statement srcNode)
tools/analysis-graph-generator/src/main/java/com/ibm/wala/codeNet/GraphAugmentor.java:105
↓ 2 callers
Method
getReservedWordFlag
()
tools/spt-generator/src/com/ibm/ai4code/parser/commons/SPTNode.java:121
↓ 2 callers
Method
getRuleName
()
tools/spt-generator/src/com/ibm/ai4code/parser/commons/SPTNode.java:346
↓ 2 callers
Method
getVocabulary
()
tools/spt-generator/src/com/ibm/ai4code/parser/cymbol/CymbolLexer.java:85
↓ 2 callers
Method
get_idx_split
(self, split_type = None)
model-experiments/gnn-based-experiments/src/data/dataset.py:81
↓ 2 callers
Function
graph_create
tools/json-graph/src/jgflib.c:77
↓ 2 callers
Method
handleSingle
(String srcFileName, String dstDir)
tools/spt-generator/src/com/ibm/ai4code/parser/Tokenizer.java:144
↓ 2 callers
Method
handleSingle
(String srcFileName, String dstDir)
tools/spt-generator/src/com/ibm/ai4code/parser/SPTGenerator.java:331
↓ 2 callers
Function
jgf_parse
tools/json-graph/src/jgflib.c:444
↓ 2 callers
Function
jsmn_fill_token
* Fills token type and boundaries. */
tools/json-graph/src/jsmn.h:125
↓ 2 callers
Method
label
(T n)
tools/analysis-graph-generator/src/main/java/com/ibm/wala/codeNet/GraphGenerator.java:61
↓ 2 callers
Method
loadSolutions
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 callers
Method
location
(JSONObject node)
tools/analysis-graph-generator/src/main/java/com/ibm/wala/codeNet/NodeFinder.java:47
↓ 2 callers
Function
main
tools/spt-generator/examples/c/fib.c:11
↓ 2 callers
Method
makeBagOfTokens
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 callers
Method
makeCNN
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 callers
Function
node_add
tools/json-graph/src/jgflib.c:124
↓ 2 callers
Function
node_add_attr
tools/json-graph/src/jgflib.c:50
↓ 2 callers
Function
normalize_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 callers
Function
normalize_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 callers
Function
normalize_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 callers
Function
outdegree
tools/json-graph/src/jgflib.c:62
↓ 2 callers
Function
parse
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 callers
Method
printClustCentersDistr
model-experiments/token-based-similarity-classification/src/Clustering/VectorKMeans.py:141
↓ 2 callers
Method
printClustToCentersDistr
model-experiments/token-based-similarity-classification/src/Clustering/VectorKMeans.py:148
↓ 2 callers
Method
printClustersDistr
model-experiments/token-based-similarity-classification/src/Clustering/VectorKMeans.py:155
↓ 2 callers
Method
printClustersStat
model-experiments/token-based-similarity-classification/src/Clustering/VectorKMeans.py:186
↓ 2 callers
Method
printReport
Print report on performed tokenization
model-experiments/token-based-similarity-classification/src/DSMaker/DSTokenizer.py:373
↓ 2 callers
Function
process_newline
emit NEWLINE and deal with indentation
tools/tokenizer/pytokenize.c:99
↓ 2 callers
Function
readDataset
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 callers
Method
reportDatasetStatistics
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 callers
Method
reportMisclassifications
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 callers
Method
reportSimilarityMisclass
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 callers
Method
siameseSimilarityCNN
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 callers
Method
similarityToProb
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 callers
Function
token
()
tools/tokenizer/tokenize.py:32
↓ 2 callers
Function
token_buf_room
Makes sure there is room in the token buffer.
tools/tokenizer/libtoken.c:453
↓ 2 callers
Method
tokenize
(String srcFileName, String dstFileName)
tools/spt-generator/src/com/ibm/ai4code/parser/Tokenizer.java:43
↓ 2 callers
Function
tokenizeFile
Tokenize a given file Parameters: - filename -- name of source code file to tokenize - tokenizer -- path to tokenizer executable
Contest/ExampleSimAnalysis/TestSetEval.py:70
↓ 2 callers
Method
trainValDsSize
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 callers
Method
trainValidDs
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 callers
Method
varDecl
()
tools/spt-generator/src/com/ibm/ai4code/parser/cymbol/CymbolParser.java:199
↓ 2 callers
Method
varDecl
()
tools/spt-generator/src/com/ibm/ai4code/parser/cymbol_multi/CymbolParser.java:199
↓ 2 callers
Method
writeInfo
Write information on tokenization into the dataset
model-experiments/token-based-similarity-classification/src/DSMaker/DSTokenizer.py:363
↓ 2 callers
Method
writeLabelDistribution
Write down distribution of datasets lables
model-experiments/token-based-similarity-classification/src/Dataset/TokensClassifDS.py:476
↓ 2 callers
Method
writeMistakes
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 callers
Function
CSV_escape
Escape token for output as CSV string.
tools/json-graph/src/jsonml2jgf.c:194
↓ 1 callers
Function
CSV_escape
Escape token for output as CSV string.
tools/tokenizer/jstokenize.c:606
↓ 1 callers
Function
CSV_escape
Escape token for output as CSV string.
tools/tokenizer/libtoken.c:1206
↓ 1 callers
Function
CSV_escape
Escape token for output as CSV string.
tools/tokenizer/pytokenize.c:728
↓ 1 callers
Function
JSON_escape
Escape token for output as JSON string.
tools/tokenizer/jstokenize.c:625
↓ 1 callers
Function
JSON_escape
Escape token for output as JSON string.
tools/tokenizer/libtoken.c:1225
↓ 1 callers
Function
JSON_escape
Escape token for output as JSON string.
tools/tokenizer/pytokenize.c:747
↓ 1 callers
Function
RAW_escape
Escape hard newlines in a string.
tools/tokenizer/pytokenize.c:715
↓ 1 callers
Method
__init__
model-experiments/token-based-similarity-classification/src/Clustering/VectorKMeans.py:36
↓ 1 callers
Method
__init__
(self)
model-experiments/token-based-similarity-classification/src/Dataset/DataLoader.py:28
↓ 1 callers
Method
__init__
(self)
model-experiments/token-based-similarity-classification/src/ModelMaker/ModelUtils.py:43
↓ 1 callers
Method
_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 callers
Method
_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 callers
Method
_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 callers
Method
_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 callers
Method
_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 callers
Method
_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 callers
Method
_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 callers
Method
_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 callers
Method
addChildNode
(SPTNode node)
tools/spt-generator/src/com/ibm/ai4code/parser/commons/SPTNode.java:60
↓ 1 callers
Method
addConv1Layer
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 callers
Method
addDropout
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 callers
Method
addEdge
(JSONObject src, JSONObject dst)
tools/analysis-graph-generator/src/main/java/com/ibm/wala/codeNet/WalaSPTGraph.java:153
↓ 1 callers
Method
addNode
(JSONObject n)
tools/analysis-graph-generator/src/main/java/com/ibm/wala/codeNet/WalaSPTGraph.java:59
↓ 1 callers
Method
addPooling
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 callers
Method
annotateSamples
Annotate samples with their problem indices and names
model-experiments/token-based-similarity-classification/src/PostProcessor/SeqTokSim2WayComplDS.py:55
↓ 1 callers
Method
aromaLabeling
A Facebook Aroma type labeling scheme @param root @param rwdi
tools/spt-generator/src/com/ibm/ai4code/parser/commons/SPTNode.java:280
↓ 1 callers
Method
aromaLabelingStageOne
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 callers
Method
aromaLabelingStageTwo
(SPTNode root)
tools/spt-generator/src/com/ibm/ai4code/parser/commons/SPTNode.java:308
↓ 1 callers
Function
augment_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 callers
Method
balancedTestTrain
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 callers
Method
balancedValTrain
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 callers
Function
bert_module
(query, key, value, i)
model-experiments/masked-language-model/train.py:193
↓ 1 callers
Method
bfsIndexing
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 callers
Method
biasedDenseLayer
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 callers
Function
buffer_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 callers
Method
buildKeyWordsHashSet
()
tools/spt-generator/src/com/ibm/ai4code/parser/python/PythonReservedWordDecider.java:103
↓ 1 callers
Method
buildKeyWordsHashSet
()
tools/spt-generator/src/com/ibm/ai4code/parser/cymbol/CymbolReservedWordDecider.java:39
↓ 1 callers
Method
buildKeyWordsHashSet
()
tools/spt-generator/src/com/ibm/ai4code/parser/cpp/CPPReservedWordDecider.java:145
↓ 1 callers
Method
buildKeyWordsHashSet
()
tools/spt-generator/src/com/ibm/ai4code/parser/cpp_multi/CPPReservedWordDecider.java:145
↓ 1 callers
Method
buildKeyWordsHashSet
()
tools/spt-generator/src/com/ibm/ai4code/parser/c_multi/C11ReservedWordDecider.java:112
↓ 1 callers
Method
buildKeyWordsHashSet
()
tools/spt-generator/src/com/ibm/ai4code/parser/java/JavaReservedWordDecider.java:113
↓ 1 callers
Method
buildKeyWordsHashSet
()
tools/spt-generator/src/com/ibm/ai4code/parser/cymbol_multi/CymbolReservedWordDecider.java:39
↓ 1 callers
Method
buildKeyWordsHashSet
()
tools/spt-generator/src/com/ibm/ai4code/parser/cobol/CobolReservedWordDecider.java:574
↓ 1 callers
Method
buildKeyWordsHashSet
()
tools/spt-generator/src/com/ibm/ai4code/parser/c/CReservedWordDecider.java:112
↓ 1 callers
Method
buildKeyWordsHashSet
()
tools/spt-generator/src/com/ibm/ai4code/parser/java_multi/JavaReservedWordDecider.java:113
↓ 1 callers
Method
buildOPsHashSet
()
tools/spt-generator/src/com/ibm/ai4code/parser/python/PythonReservedWordDecider.java:108
↓ 1 callers
Method
buildOPsHashSet
()
tools/spt-generator/src/com/ibm/ai4code/parser/cymbol/CymbolReservedWordDecider.java:44
↓ 1 callers
Method
buildOPsHashSet
()
tools/spt-generator/src/com/ibm/ai4code/parser/cpp/CPPReservedWordDecider.java:150
↓ 1 callers
Method
buildOPsHashSet
()
tools/spt-generator/src/com/ibm/ai4code/parser/cpp_multi/CPPReservedWordDecider.java:150
↓ 1 callers
Method
buildOPsHashSet
()
tools/spt-generator/src/com/ibm/ai4code/parser/c_multi/C11ReservedWordDecider.java:117
↓ 1 callers
Method
buildOPsHashSet
()
tools/spt-generator/src/com/ibm/ai4code/parser/java/JavaReservedWordDecider.java:118
← previous
next →
201–300 of 1,251, ranked by callers