code
stringlengths
3
6.57k
message.as_bytes()
is_string_type(value)
isinstance(value, basestring)
type(value)
SystemEvent(abc.ABC)
is_set(self)
set(self)
clear(self)
wait(self, *args, **kwargs)
UserProfileManager(BaseUserManager)
create_user(self,email,name,password=None)
ValueError("User must gave an email address")
self.normalize_email(email)
self.model(email=email,name=name)
user.set_password(password)
user.save(using=self._db)
create_superuser(self,email,name,password)
self._create_user(email,aname,password)
user.save(using=self._db)
UserProfile(AbstractBaseUser,PermissionsMixin)
models.EmailField(max_length=100,unique=True)
models.CharField(max_length=255)
models.BooleanField(default=True)
models.BooleanField(default=False)
UserProfileManager()
get_full_name(self)
get_short_name(self)
__str__(self)
load("@org_tensorflow//tensorflow:tensorflow.bzl", "if_not_windows", "tf_binary_additional_srcs", "tf_cc_binary", "tf_copts")
load("//tensorflow_decision_forests/tensorflow:utils.bzl", "rpath_linkopts_to_tensorflow")
Forest (YDF)
Forests (TFDF)
tf_copts()
if_not_windows(["-lm", "-Wl,-ldl"])
rpath_linkopts_to_tensorflow(wrapper_name)
tf_binary_additional_srcs()
run_cmd(command: str)
command (str)
run_cmd("ls /")
os.getenv("SHELL")
line.decode("utf-8")
iter(pipe.stdout.readline, b"")
pipe.stdout.close()
pipe.wait()
print(stdout)
out_video(segment, greek=True)
input_video(segment)
manage_timestamps(segment)
delete_timestamps.split(",")
in (s.split("-")
s.split("-")
to_cut_fmt(timestamp)
to_cut_yaml(inmp4, outmp4, ymlname, timestamps)
pairwise(iterable)
iter(iterable)
list(zip(a, a)
to_cut_fmt(t)
len(timestamps)
pairwise(["start"] + timestamps + ["end"])
open(ymlname, "w")
yaml.dump(out, fd, default_flow_style=False, sort_keys=False)
format_timestamp_args(timestamps)
len(timestamps)
pairwise(iterable)
iter(iterable)
list(zip(a, a)
pairwise(timestamps)
ffmpeg(inp, out, timestamps_args)
len(timestamps_args)
run_cmd(f"ffmpeg -y -i '{inp}' " + timestamps_args[0] + f" -c:v h265_nvenc -crf 24 -preset fast -c:a copy '{out}'")
enumerate(timestamps_args)
mp4s.append(f"{i}.mp4")
print(cmd)
run_cmd(cmd)
open(tmp, "w")
fd.write(f"file '{f}'\n")
run_cmd(f"ffmpeg -y -f concat -i .tmp_files.txt '{out}'")
run_cmd(f"rm {tmp} " + " ".join(mp4s)
read_split_tsv(timestamp_file)
open(timestamp_file)
ln.strip()
split("\t")
main()
read_split_tsv(timestamp_file)
input_video(segment)
out_video(segment, greek=True)
manage_timestamps(segment)
format_timestamp_args(timestamps)
ffmpeg(inmp4, outmp4, timestamp_args)
main1()
read_split_tsv(timestamp_file)
enumerate(segments)
input_video(segment)
out_video(segment, greek=True)
manage_timestamps(segment)
to_cut_yaml(inmp4, outmp4, f"{i}.yml", timestamps)
main()
init_state()
RPIO.setup(loud1, RPIO.OUT)
RPIO.setup(loud2, RPIO.OUT)