code
stringlengths
3
6.57k
output_tokens.append(self.unk_token)
output_tokens.extend(sub_tokens)
_is_whitespace(char)
unicodedata.category(char)
_is_control(char)
unicodedata.category(char)
in ("Cc", "Cf")
_is_punctuation(char)
ord(char)
if ((cp >= 33 and cp <= 47)
or (cp >= 58 and cp <= 64)
or (cp >= 91 and cp <= 96)
or (cp >= 123 and cp <= 126)
unicodedata.category(char)
cat.startswith("P")
inverse_of_matrix(matrix: list[list[float]])
inverse_of_matrix([[2, 5], [2, 0]])
inverse_of_matrix([[2.5, 5], [1, 2]])
Traceback (most recent call last)
inverse_of_matrix([[12, -16], [-9, 0]])
inverse_of_matrix([[12, 3], [16, 8]])
inverse_of_matrix([[10, 5], [3, 2.5]])
D(matrix[0][0])
D(matrix[1][1])
D(matrix[1][0])
D(matrix[0][1])
ValueError("This matrix has no inverse.")
float(D(n)
Copyright (c)
test_bind_getter()
nncore.bind_getter('name', 'depth')
Backbone()
Migration(migrations.Migration)
models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')
models.CharField(max_length=128, verbose_name='password')
models.DateTimeField(blank=True, null=True, verbose_name='last login')
models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')
models.CharField(error_messages={'unique': 'A user with that username already exists.'}, help_text='Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[django.contrib.auth.validators.UnicodeUsernameValidator()
models.CharField(blank=True, max_length=30, verbose_name='first name')
models.CharField(blank=True, max_length=150, verbose_name='last name')
models.BooleanField(default=False, help_text='Designates whether the user can log into this admin site.', verbose_name='staff status')
models.BooleanField(default=True, help_text='Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')
models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')
models.CharField(blank=True, max_length=16, null=True, verbose_name='用户名')
models.CharField(choices=[('male', '男')
models.CharField(blank=True, max_length=11, null=True, verbose_name='电话')
models.CharField(blank=True, max_length=100, null=True, verbose_name='邮箱')
models.ImageField(max_length=200, null=True, upload_to='user/')
models.DateTimeField(default=datetime.datetime.now, verbose_name='创建时间')
models.ManyToManyField(blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')
models.ManyToManyField(blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')
django.contrib.auth.models.UserManager()
Cmd()
__init__(self)
click.make_pass_decorator(Cmd, ensure=True)
CmdsLoader(click.MultiCommand)
os.path.abspath(os.path.join(os.path.dirname(__file__)
list_commands(self, ctx)
os.listdir(self._cmdFolder)
filename.endswith('.py')
rv.append(filename[:-3])
rv.sort()
get_command(self, ctx, name)
__import__(cmdFullName, None, None, ['cmd'])
click.command(cls=CmdsLoader)
click.option('-v', '--verbose', count=True, help="Explain what is being done")
click.option('-i', '--interactive', count=True, help="Show all the output from the established remote shell session")
click.option('-f', '--force', is_flag=True, help="Force the execution of the commands if one fails")
click.option('-h', '--host', default="myserver", help="The name of the connection defined in ~/.ssh/config file")
yoda(ctx, verbose, interactive, force, host)
Shell(host)
importHost(host)
shell.setConfig(hostConfig[0]['options'])
shell.connect()
if (verbose)
click.echo("Connected to host %s" % host)
bool(interactive)
Cmd()
range(3)
canonicalize_shape(shape: List[Vector])
Vector(0, 0)
shape (List[Vector])
Returns (List[Vector])
Vector(0, 0)
sorted(shape)
negate()
v.translate(first_negated)
lattice (Lattice)
shapes (List[List[Vector]])
solver (z3.Solver, None)
complete (bool)
allow_rotations (bool)
allow_reflections (bool)
allow_copies (bool)
Solver()
self.__make_variants(allow_rotations, allow_reflections)
self.__create_grids()
self.__add_constraints()
__make_variants(self, allow_rotations, allow_reflections)
list(shape_tuple)