code
stringlengths
3
6.57k
expose("/scan_new_datasources/")
scan_new_datasources(self)
self.refresh_datasources(refresh_all=False)
appbuilder.add_view_no_menu(Druid)
__("Scan New Datasources")
__("Sources")
__("Refresh Druid Metadata")
__("Sources")
appbuilder.add_separator("Sources")
input("Please choose the language for voice recognition by language code. (deutsch: de-DE)
input("Please enter the whole file path including the extension:\n")
input("What's the topic?\n")
time.time()
mp.VideoFileClip(filename)
clip.audio.write_audiofile(fileaudio)
AudioSegment.from_file(fileaudio, "wav")
make_chunks(myaudio,chunk_length_ms)
sr.Recognizer()
enumerate(chunks)
format(i)
print ("exporting", chunk_name)
chunk.export(chunk_name, format="wav")
sr.AudioFile(chunk_name)
sf.read(chunk_name)
x.max()
x.min()
os.remove(chunk_name)
print(chunk_name + "was empty and therefore deleted.")
r.record(source)
r.recognize_google(audio_file, language=lang)
open(chunk_name + ".rectext" ,mode ='w')
file.write(result)
print("Part " + str(i)
os.remove(chunk_name)
re.compile(r'.*?(\d+)
get_order(file)
file_pattern.match(Path(file)
int(match.groups()
sorted(glob.glob("*.rectext")
open(filename + "_transcript.txt", "w")
open(f, "r")
outfile.write(infile.read()
outfile.write("\n")
glob.glob("*.rectext")
os.remove(rectextfile)
print("Done after %.2f seconds."% (time.time()
GoldSpinner(Particle)
__init__(self, x, y, dest_x, dest_y)
Particle.__init__(self, x, y, 0, 0, 0)
math.sqrt( ((x - dest_x)
if (dest_x != x)
math.atan( float(abs(dest_y - y)
float(abs(dest_x - x)
float(distance)
float(GOLD_SPINNER_LIFESPAN)
int( math.cos(radians)
int( math.sin(radians)
if (x > dest_x)
if (y > dest_y)
self.alpha_controller.set_speed_out( (1 / float(GOLD_SPINNER_LIFESPAN)
render(self, sx, sy, gold_sprite, window_controller)
window_controller.get_gfx_controller()
draw_sprite(sx + self.get_x()
self.get_y()
self.alpha_controller.get_interval()
Copyright (C)
IndicoPluginBlueprint('audiovisual', __name__, url_prefix='/service/audiovisual')
blueprint.add_url_rule('/', 'request_list', RHRequestList)
Foundation (ASF)
TestNewRepo(unittest.TestCase)
setUp(self)
setup_basic_test()
self.setup_with_tools()
setup_with_tools(self)
setup_global_objects()
h.set_context('test', 'src', neighborhood='Projects')
self.repo.refresh()
self.repo.commit('HEAD')
ThreadLocalORMSession.flush_all()
ThreadLocalORMSession.close_all()
test_last_commit_for(self)
tree.ls()
test_commit(self)
self.rev.primary()
self.rev.index_id()
startswith('allura/model/repo/Commit#')
assert_equal(self.rev.tree._id, self.rev.tree_id)
assert_equal(self.rev.shorthand_id()
format(latest_rev)
assert_equal(self.rev.symbolic_ids, ([], [])
assert_equal(self.rev.url()
format(latest_rev)
list(self.repo.log(self.rev._id, limit=25)
assert_equal(len(all_cis)
self.rev.tree.ls()
assert_equal(self.rev.tree.readme()
assert_equal(self.rev.tree.path()
assert_equal(self.rev.tree.url()
format(latest_rev)
self.rev.tree.is_blob('README')