code
stringlengths
3
6.57k
schema_name(self)
self.id.split('.')
dataset_name(self)
self.id.split('.')
describe(self, autoformat=True)
variable (column)
autoformat (boolean)
pd.set_option(FLOAT_FORMAT, lambda x: '%.3f' % x)
variable_describe(data)
head(self)
rows (i.e. zip codes of small countries)
head(self.__class__, data)
tail(self)
rows (i.e. zip codes of small countries)
tail(self.__class__, data)
counts(self)
distinct (unique)
counts(data)
quantiles(self)
quantiles(data)
top_values(self)
top_values(data)
histogram(self)
histogram(data)
__repr__(self)
len(descr)
get('{entity_id}')
format(classname=self.__class__.__name__, entity_id=self._get_print_id()
main()
open("../assets/inputS1C6.txt","r")
line.rstrip()
bytearray(b64decode(file64)
range(2,40)
range(0, sample_size)
bytearray(file[(keysize*ctr)
bytearray(file[(keysize*(ctr+1)
hamming_distance(b1, b2)
float(keysize)
distances.append([keysize, dist])
sorted(distances,key=itemgetter(1)
print("Possible Solutions...\n")
split_blocks(key,file)
range(0,key)
bytearray()
tblock.append(block[idx])
transposed_blocks.append(tblock)
range(1,int("ff",16)
xor(bytearray(bytes({i})
xor_bytes.decode("ascii")
bytekeys.append([i,xor_string,freq_score(xor_string)
bytekeys.sort(key=lambda x: x[2], reverse=True)
chr(bkey[0])
print("Key:{0}\n".format(passphrase)
print(xor(bytearray(passphrase.encode()
bytearray(file)
decode()
main()
read_cifar10(filename_queue)
result (32)
result (32)
result (3)
CIFAR10Record(object)
CIFAR10Record()
tf.FixedLengthRecordReader(record_bytes=record_bytes)
reader.read(filename_queue)
tf.decode_raw(value, tf.uint8)
tf.strided_slice(record_bytes, [0], [label_bytes], [1])
tf.transpose(depth_major, [1, 2, 0])
tf.summary.image('images', images)
tf.reshape(label_batch, [batch_size])
distorted_inputs(data_dir, batch_size)
os.path.join(data_dir, 'data_batch_%d.bin' % i)
xrange(1, 6)
tf.gfile.Exists(f)
ValueError('Failed to find file: ' + f)
tf.train.string_input_producer(filenames)
read_cifar10(filename_queue)
tf.cast(read_input.uint8image, tf.float32)
tf.random_crop(reshaped_image, [height, width, 3])
tf.image.random_flip_left_right(distorted_image)
tf.image.per_image_standardization(distorted_image)
float_image.set_shape([height, width, 3])
read_input.label.set_shape([1])
inputs(eval_data, data_dir, batch_size)
os.path.join(data_dir, 'data_batch_%d.bin' % i)
xrange(1, 6)
os.path.join(data_dir, 'test_batch.bin')
tf.gfile.Exists(f)
ValueError('Failed to find file: ' + f)
tf.train.string_input_producer(filenames)
read_cifar10(filename_queue)
tf.cast(read_input.uint8image, tf.float32)
tf.image.per_image_standardization(resized_image)
read_input.label.set_shape((1,)
enum(RUNNING='running', OK='complete', QUEUED='queued', ERROR="failed")
getLogger(__name__)
LSF(BaseJobExec)
__init__(self, **params)
params.items()
job_script_kwargs(self, ofile, efile, job_name)