repo_name stringclasses 400
values | branch_name stringclasses 4
values | file_content stringlengths 16 72.5k | language stringclasses 1
value | num_lines int64 1 1.66k | avg_line_length float64 6 85 | max_line_length int64 9 949 | path stringlengths 5 103 | alphanum_fraction float64 0.29 0.89 | alpha_fraction float64 0.27 0.89 | context stringlengths 0 91.6k | context_file_paths listlengths 0 3 |
|---|---|---|---|---|---|---|---|---|---|---|---|
shuishen112/pairwise-rnn | refs/heads/master |
import data_helper
import time
import datetime
import os
import tensorflow as tf
import numpy as np
import evaluation
now = int(time.time())
timeArray = time.localtime(now)
timeStamp = time.strftime("%Y%m%d%H%M%S", timeArray)
timeDay = time.strftime("%Y%m%d", timeArray)
print (timeStamp)
def main(args):
ar... | Python | 116 | 36.043102 | 159 | /main.py | 0.553088 | 0.546842 | from tensorflow import flags
import tensorflow as tf
from config import Singleton
import data_helper
import datetime,os
import models
import numpy as np
import evaluation
import sys
import logging
import time
now = int(time.time())
timeArray = time.localtime(now)
timeStamp = time.strftime("%Y%m%d%H%M%S", timeArray)... | [
"/run.py",
"/models/QA_CNN_pairwise.py",
"/data_helper.py"
] |
shuishen112/pairwise-rnn | refs/heads/master | class Singleton(object):
__instance=None
def __init__(self):
pass
def getInstance(self):
if Singleton.__instance is None:
# Singleton.__instance=object.__new__(cls,*args,**kwd)
Singleton.__instance=self.get_test_flag()
print("build FLAGS over")
ret... | Python | 197 | 60.426395 | 121 | /config.py | 0.627396 | 0.597571 | # -*- coding: utf-8 -*-
from tensorflow import flags
import tensorflow as tf
from config import Singleton
import data_helper
import datetime
import os
import models
import numpy as np
import evaluation
from data_helper import log_time_delta,getLogger
logger=getLogger()
args = Singleton().get_rnn_flag()
#args... | [
"/test.py",
"/data_helper.py",
"/run.py"
] |
shuishen112/pairwise-rnn | refs/heads/master | from tensorflow import flags
import tensorflow as tf
from config import Singleton
import data_helper
import datetime,os
import models
import numpy as np
import evaluation
import sys
import logging
import time
now = int(time.time())
timeArray = time.localtime(now)
timeStamp = time.strftime("%Y%m%d%H%M%S", timeArray)... | Python | 164 | 35.829269 | 161 | /run.py | 0.628704 | 0.62142 | class Singleton(object):
__instance=None
def __init__(self):
pass
def getInstance(self):
if Singleton.__instance is None:
# Singleton.__instance=object.__new__(cls,*args,**kwd)
Singleton.__instance=self.get_test_flag()
print("build FLAGS over")
ret... | [
"/config.py",
"/data_helper.py",
"/models/my/nn.py"
] |
shuishen112/pairwise-rnn | refs/heads/master | #coding:utf-8
import tensorflow as tf
import numpy as np
from tensorflow.contrib import rnn
import models.blocks as blocks
# model_type :apn or qacnn
class QA_CNN_extend(object):
# def __init__(self,max_input_left,max_input_right,batch_size,vocab_size,embedding_size,filter_sizes,num_filters,hidden_size,
# dro... | Python | 381 | 46.682415 | 147 | /models/QA_CNN_pairwise.py | 0.592162 | 0.5751 | #-*- coding:utf-8 -*-
import os
import numpy as np
import tensorflow as tf
import string
from collections import Counter
import pandas as pd
from tqdm import tqdm
import random
from functools import wraps
import time
import pickle
def log_time_delta(func):
@wraps(func)
def _deco(*args, **kwargs):
star... | [
"/data_helper.py",
"/main.py",
"/models/__init__.py"
] |
shuishen112/pairwise-rnn | refs/heads/master | "from my.general import flatten, reconstruct, add_wd, exp_mask\n\nimport numpy as np\nimport tensorf(...TRUNCATED) | Python | 160 | 36.712502 | 116 | /models/my/nn.py | 0.572754 | 0.558005 | "#-*- coding:utf-8 -*-\n\nimport os\nimport numpy as np\nimport tensorflow as tf\nimport string\nfro(...TRUNCATED) | [
"/data_helper.py",
"/models/QA_CNN_pairwise.py",
"/test.py"
] |
shuishen112/pairwise-rnn | refs/heads/master | "from .QA_CNN_pairwise import QA_CNN_extend as CNN\nfrom .QA_RNN_pairwise import QA_RNN_extend as RN(...TRUNCATED) | Python | 14 | 25.642857 | 58 | /models/__init__.py | 0.691689 | 0.689008 | "\nimport data_helper\nimport time\nimport datetime\nimport os\nimport tensorflow as tf\n\nimport nu(...TRUNCATED) | [
"/main.py",
"/run.py",
"/models/my/nn.py"
] |
shuishen112/pairwise-rnn | refs/heads/master | "# -*- coding: utf-8 -*-\n\nfrom tensorflow import flags\nimport tensorflow as tf\nfrom config impor(...TRUNCATED) | Python | 114 | 31.622807 | 92 | /test.py | 0.651019 | 0.64324 | "#coding:utf-8\nimport tensorflow as tf\nimport numpy as np\nfrom tensorflow.contrib import rnn\nimp(...TRUNCATED) | [
"/models/QA_CNN_pairwise.py",
"/main.py",
"/config.py"
] |
shuishen112/pairwise-rnn | refs/heads/master | "#-*- coding:utf-8 -*-\n\nimport os\nimport numpy as np\nimport tensorflow as tf\nimport string\nfro(...TRUNCATED) | Python | 363 | 33.487602 | 167 | /data_helper.py | 0.582389 | 0.574804 | "from tensorflow import flags\nimport tensorflow as tf\nfrom config import Singleton\nimport data_he(...TRUNCATED) | [
"/run.py",
"/models/QA_CNN_pairwise.py",
"/test.py"
] |
pablor0mero/Placester_Test_Pablo_Romero | refs/heads/master | "# For this solution I'm using TextBlob, using it's integration with WordNet.\n\nfrom textblob impor(...TRUNCATED) | Python | 71 | 44.929577 | 157 | /main.py | 0.670813 | 0.666869 | [] | |
GabinCleaver/Auto_Discord_Bump | refs/heads/main | "import requests\r\nimport time\r\n\r\ntoken = \"TOKEN\"\r\n\r\nheaders = {\r\n 'User-Agent' : 'M(...TRUNCATED) | Python | 21 | 20.809525 | 109 | /autobump.py | 0.561845 | 0.51153 | [] |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 4