code stringlengths 3 6.57k |
|---|
mkname('Flickr_Imgs_{}'.format('_'.join(user_name.split(' ') |
os.mkdir(new_dir) |
os.chdir(new_dir) |
len(urls) |
print('Downloading ... {:05}%'.format(int(counter) |
urllib.request.urlretrieve( i, '{1}{0}'.format(imagecount, user_name[:1]) |
print('\nAbort') |
sys.exit() |
print('\b'*6, end = '', flush = True) |
print('{:05}'.format(counter) |
print('\nDone') |
plot (matplotlib.collections.RegularPolyCollection) |
rand(4, 100) |
onpick3(event) |
print('onpick3 scatter:', ind, npy.take(x, ind) |
npy.take(y, ind) |
figure() |
fig.add_subplot(111) |
ax1.scatter(x, y, 100 * s, c, picker=True) |
fig.savefig('pscoll.eps') |
fig.canvas.mpl_connect('pick_event', onpick3) |
show() |
ObjCClass(name) |
_Class(name) |
ObjCClass(name) |
_Class('IOAccelMTLEvent') |
path('', BookListView.as_view() |
path('<int:pk>/', BookDetailView.as_view() |
Overview (from the spec) |
glInitTextureType2101010RevEXT() |
extensions.hasGLExtension( _EXTENSION_NAME ) |
SingleStepping(NavigationStrategy) |
navigate(self) |
self.recursive_navigate(self.exec_tree.root_node) |
self.finish_navigation() |
recursive_navigate(self, current_node: Node) |
self.there_are_nodes_with_unknown_validity() |
current_node.has_childrens() |
self.recursive_navigate(c) |
self.evaluate(current_node) |
JR2(LocomotorRobot) |
robot (no arm) |
__init__(self, config) |
config.get("velocity", 1.0) |
config.get("robot_scale", 1.0) |
config.get("is_discrete", True) |
set_up_continuous_action_space(self) |
gym.spaces.Box(shape=(self.action_dim,) |
np.ones([self.action_dim]) |
set_up_discrete_action_space(self) |
gym.spaces.Discrete(len(self.action_list) |
self.setup_keys_to_action() |
setup_keys_to_action(self) |
ord("w") |
forward
(ord("s") |
backward
(ord("d") |
right
(ord("a") |
left
() |
__init__(self,path) |
App_Logger() |
valuesFromSchema(self) |
open(self.schema_path, 'r') |
json.load(f) |
f.close() |
open("Training_Logs/valuesfromSchemaValidationLog.txt", 'a+') |
self.logger.log(file,message) |
file.close() |
open("Training_Logs/valuesfromSchemaValidationLog.txt", 'a+') |
self.logger.log(file,"ValueError:Value not found inside schema_training.json") |
file.close() |
open("Training_Logs/valuesfromSchemaValidationLog.txt", 'a+') |
self.logger.log(file, "KeyError:Key value error incorrect key passed") |
file.close() |
open("Training_Logs/valuesfromSchemaValidationLog.txt", 'a+') |
self.logger.log(file, str(e) |
file.close() |
manualRegexCreation(self) |
createDirectoryForGoodBadRawData(self) |
os.path.join("Training_Raw_files_validated/", "Good_Raw/") |
os.path.isdir(path) |
os.makedirs(path) |
os.path.join("Training_Raw_files_validated/", "Bad_Raw/") |
os.path.isdir(path) |
os.makedirs(path) |
open("Training_Logs/GeneralLog.txt", 'a+') |
self.logger.log(file,"Error while creating Directory %s:" % ex) |
file.close() |
deleteExistingGoodDataTrainingFolder(self) |
os.path.isdir("ids/" + userName) |
os.path.isdir(path + 'Bad_Raw/') |
shutil.rmtree(path + 'Bad_Raw/') |
os.path.isdir(path + 'Good_Raw/') |
shutil.rmtree(path + 'Good_Raw/') |
open("Training_Logs/GeneralLog.txt", 'a+') |
self.logger.log(file,"GoodRaw directory deleted successfully!!!") |
file.close() |
open("Training_Logs/GeneralLog.txt", 'a+') |
self.logger.log(file,"Error while Deleting Directory : %s" %s) |
file.close() |
deleteExistingBadDataTrainingFolder(self) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.