hexsha
string
size
int64
ext
string
lang
string
max_stars_repo_path
string
max_stars_repo_name
string
max_stars_repo_head_hexsha
string
max_stars_repo_licenses
list
max_stars_count
int64
max_stars_repo_stars_event_min_datetime
string
max_stars_repo_stars_event_max_datetime
string
max_issues_repo_path
string
max_issues_repo_name
string
max_issues_repo_head_hexsha
string
max_issues_repo_licenses
list
max_issues_count
int64
max_issues_repo_issues_event_min_datetime
string
max_issues_repo_issues_event_max_datetime
string
max_forks_repo_path
string
max_forks_repo_name
string
max_forks_repo_head_hexsha
string
max_forks_repo_licenses
list
max_forks_count
int64
max_forks_repo_forks_event_min_datetime
string
max_forks_repo_forks_event_max_datetime
string
content
string
avg_line_length
float64
max_line_length
int64
alphanum_fraction
float64
qsc_code_num_words_quality_signal
int64
qsc_code_num_chars_quality_signal
float64
qsc_code_mean_word_length_quality_signal
float64
qsc_code_frac_words_unique_quality_signal
float64
qsc_code_frac_chars_top_2grams_quality_signal
float64
qsc_code_frac_chars_top_3grams_quality_signal
float64
qsc_code_frac_chars_top_4grams_quality_signal
float64
qsc_code_frac_chars_dupe_5grams_quality_signal
float64
qsc_code_frac_chars_dupe_6grams_quality_signal
float64
qsc_code_frac_chars_dupe_7grams_quality_signal
float64
qsc_code_frac_chars_dupe_8grams_quality_signal
float64
qsc_code_frac_chars_dupe_9grams_quality_signal
float64
qsc_code_frac_chars_dupe_10grams_quality_signal
float64
qsc_code_frac_chars_replacement_symbols_quality_signal
float64
qsc_code_frac_chars_digital_quality_signal
float64
qsc_code_frac_chars_whitespace_quality_signal
float64
qsc_code_size_file_byte_quality_signal
float64
qsc_code_num_lines_quality_signal
float64
qsc_code_num_chars_line_max_quality_signal
float64
qsc_code_num_chars_line_mean_quality_signal
float64
qsc_code_frac_chars_alphabet_quality_signal
float64
qsc_code_frac_chars_comments_quality_signal
float64
qsc_code_cate_xml_start_quality_signal
float64
qsc_code_frac_lines_dupe_lines_quality_signal
float64
qsc_code_cate_autogen_quality_signal
float64
qsc_code_frac_lines_long_string_quality_signal
float64
qsc_code_frac_chars_string_length_quality_signal
float64
qsc_code_frac_chars_long_word_length_quality_signal
float64
qsc_code_frac_lines_string_concat_quality_signal
float64
qsc_code_cate_encoded_data_quality_signal
float64
qsc_code_frac_chars_hex_words_quality_signal
float64
qsc_code_frac_lines_prompt_comments_quality_signal
float64
qsc_code_frac_lines_assert_quality_signal
float64
qsc_codepython_cate_ast_quality_signal
float64
qsc_codepython_frac_lines_func_ratio_quality_signal
float64
qsc_codepython_cate_var_zero_quality_signal
bool
qsc_codepython_frac_lines_pass_quality_signal
float64
qsc_codepython_frac_lines_import_quality_signal
float64
qsc_codepython_frac_lines_simplefunc_quality_signal
float64
qsc_codepython_score_lines_no_logic_quality_signal
float64
qsc_codepython_frac_lines_print_quality_signal
float64
qsc_code_num_words
int64
qsc_code_num_chars
int64
qsc_code_mean_word_length
int64
qsc_code_frac_words_unique
null
qsc_code_frac_chars_top_2grams
int64
qsc_code_frac_chars_top_3grams
int64
qsc_code_frac_chars_top_4grams
int64
qsc_code_frac_chars_dupe_5grams
int64
qsc_code_frac_chars_dupe_6grams
int64
qsc_code_frac_chars_dupe_7grams
int64
qsc_code_frac_chars_dupe_8grams
int64
qsc_code_frac_chars_dupe_9grams
int64
qsc_code_frac_chars_dupe_10grams
int64
qsc_code_frac_chars_replacement_symbols
int64
qsc_code_frac_chars_digital
int64
qsc_code_frac_chars_whitespace
int64
qsc_code_size_file_byte
int64
qsc_code_num_lines
int64
qsc_code_num_chars_line_max
int64
qsc_code_num_chars_line_mean
int64
qsc_code_frac_chars_alphabet
int64
qsc_code_frac_chars_comments
int64
qsc_code_cate_xml_start
int64
qsc_code_frac_lines_dupe_lines
int64
qsc_code_cate_autogen
int64
qsc_code_frac_lines_long_string
int64
qsc_code_frac_chars_string_length
int64
qsc_code_frac_chars_long_word_length
int64
qsc_code_frac_lines_string_concat
null
qsc_code_cate_encoded_data
int64
qsc_code_frac_chars_hex_words
int64
qsc_code_frac_lines_prompt_comments
int64
qsc_code_frac_lines_assert
int64
qsc_codepython_cate_ast
int64
qsc_codepython_frac_lines_func_ratio
int64
qsc_codepython_cate_var_zero
int64
qsc_codepython_frac_lines_pass
int64
qsc_codepython_frac_lines_import
int64
qsc_codepython_frac_lines_simplefunc
int64
qsc_codepython_score_lines_no_logic
int64
qsc_codepython_frac_lines_print
int64
effective
string
hits
int64
3df9fe18288a27409fe0d1f397258c0d5af78629
138
py
Python
app/venv/lib/python2.7/site-packages/folium/__init__.py
anaheino/Ufo-sightings-map
64af02093f97737cbbdfd8af9e1aeb4d8aa8fcdc
[ "MIT" ]
null
null
null
app/venv/lib/python2.7/site-packages/folium/__init__.py
anaheino/Ufo-sightings-map
64af02093f97737cbbdfd8af9e1aeb4d8aa8fcdc
[ "MIT" ]
null
null
null
app/venv/lib/python2.7/site-packages/folium/__init__.py
anaheino/Ufo-sightings-map
64af02093f97737cbbdfd8af9e1aeb4d8aa8fcdc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import __version__ = '0.1.5' from folium.folium import Map, initialize_notebook
19.714286
50
0.746377
19
138
4.894737
0.789474
0
0
0
0
0
0
0
0
0
0
0.033613
0.137681
138
6
51
23
0.747899
0.152174
0
0
0
0
0.043478
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
3dfa1b19c49ed53a4fc09f2f56706e3608dc5674
2,524
py
Python
PyObjCTest/test_nsmetadata.py
Khan/pyobjc-framework-Cocoa
f8b015ea2a72d8d78be6084fb12925c4785b8f1f
[ "MIT" ]
132
2015-01-01T10:02:42.000Z
2022-03-09T12:51:01.000Z
mac/pyobjc-framework-Cocoa/PyObjCTest/test_nsmetadata.py
mba811/music-player
7998986b34cfda2244ef622adefb839331b81a81
[ "BSD-2-Clause" ]
6
2015-01-06T08:23:19.000Z
2019-03-14T12:22:06.000Z
mac/pyobjc-framework-Cocoa/PyObjCTest/test_nsmetadata.py
mba811/music-player
7998986b34cfda2244ef622adefb839331b81a81
[ "BSD-2-Clause" ]
27
2015-02-23T11:51:43.000Z
2022-03-07T02:34:18.000Z
from Foundation import * from PyObjCTools.TestSupport import * try: unicode except NameError: unicode = str class TestNSMetaData (TestCase): def testConstants(self): self.assertIsInstance(NSMetadataQueryDidStartGatheringNotification, unicode) self.assertIsInstance(NSMetadataQueryGatheringProgressNotification, unicode) self.assertIsInstance(NSMetadataQueryDidFinishGatheringNotification, unicode) self.assertIsInstance(NSMetadataQueryDidUpdateNotification, unicode) self.assertIsInstance(NSMetadataQueryResultContentRelevanceAttribute, unicode) self.assertIsInstance(NSMetadataQueryUserHomeScope, unicode) self.assertIsInstance(NSMetadataQueryLocalComputerScope, unicode) self.assertIsInstance(NSMetadataQueryNetworkScope, unicode) @min_os_level('10.7') def testConstants10_7(self): self.assertIsInstance(NSMetadataQueryLocalDocumentsScope, unicode) self.assertIsInstance(NSMetadataQueryUbiquitousDocumentsScope, unicode) self.assertIsInstance(NSMetadataQueryUbiquitousDataScope, unicode) self.assertIsInstance(NSMetadataItemFSNameKey, unicode) self.assertIsInstance(NSMetadataItemDisplayNameKey, unicode) self.assertIsInstance(NSMetadataItemURLKey, unicode) self.assertIsInstance(NSMetadataItemPathKey, unicode) self.assertIsInstance(NSMetadataItemFSSizeKey, unicode) self.assertIsInstance(NSMetadataItemFSCreationDateKey, unicode) self.assertIsInstance(NSMetadataItemFSContentChangeDateKey, unicode) self.assertIsInstance(NSMetadataItemIsUbiquitousKey, unicode) self.assertIsInstance(NSMetadataUbiquitousItemHasUnresolvedConflictsKey, unicode) self.assertIsInstance(NSMetadataUbiquitousItemIsDownloadedKey, unicode) self.assertIsInstance(NSMetadataUbiquitousItemIsDownloadingKey, unicode) self.assertIsInstance(NSMetadataUbiquitousItemIsUploadedKey, unicode) self.assertIsInstance(NSMetadataUbiquitousItemIsUploadingKey, unicode) self.assertIsInstance(NSMetadataUbiquitousItemPercentDownloadedKey, unicode) self.assertIsInstance(NSMetadataUbiquitousItemPercentUploadedKey, unicode) def testMethods(self): self.assertResultIsBOOL(NSMetadataQuery.startQuery) self.assertResultIsBOOL(NSMetadataQuery.isStarted) self.assertResultIsBOOL(NSMetadataQuery.isGathering) self.assertResultIsBOOL(NSMetadataQuery.isStopped) if __name__ == "__main__": main()
49.490196
89
0.797147
155
2,524
12.909677
0.380645
0.25987
0.323838
0
0
0
0
0
0
0
0
0.002774
0.143027
2,524
50
90
50.48
0.92233
0
0
0
0
0
0.004754
0
0
0
0
0
0.697674
1
0.069767
false
0
0.046512
0
0.139535
0
0
0
1
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
4
9a7781b8dd9f489e9f644d50e72a6b7e0c852795
54
py
Python
continuous_integration/__init__.py
gillistephan/aas-core-codegen
5b89ea2ee35aecaca9a1bed7ac81d420cc560f29
[ "MIT" ]
5
2021-12-29T12:55:34.000Z
2022-03-01T17:57:21.000Z
continuous_integration/__init__.py
gillistephan/aas-core-codegen
5b89ea2ee35aecaca9a1bed7ac81d420cc560f29
[ "MIT" ]
10
2021-12-29T02:15:55.000Z
2022-03-09T11:04:22.000Z
continuous_integration/__init__.py
aas-core-works/aas-core-csharp-codegen
731f706e2d12bf80722ac55d920fcf5402fb26ef
[ "MIT" ]
2
2021-12-29T01:42:12.000Z
2022-02-15T13:46:33.000Z
"""Provide scripts for the continuous integration."""
27
53
0.759259
6
54
6.833333
1
0
0
0
0
0
0
0
0
0
0
0
0.111111
54
1
54
54
0.854167
0.87037
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
9a94653bf7004eccfefee84d52a6d23c1d2b251b
18,692
py
Python
nautobot/ipam/migrations/0001_initial_part_1.py
steffann/nautobot
f5cf4a294861e69fa10ac445f7fc89f432d5b3df
[ "Apache-2.0" ]
1
2021-03-16T15:14:55.000Z
2021-03-16T15:14:55.000Z
nautobot/ipam/migrations/0001_initial_part_1.py
steffann/nautobot
f5cf4a294861e69fa10ac445f7fc89f432d5b3df
[ "Apache-2.0" ]
null
null
null
nautobot/ipam/migrations/0001_initial_part_1.py
steffann/nautobot
f5cf4a294861e69fa10ac445f7fc89f432d5b3df
[ "Apache-2.0" ]
1
2021-10-14T01:54:24.000Z
2021-10-14T01:54:24.000Z
# Generated by Django 3.1.3 on 2021-02-20 08:07 import django.contrib.postgres.fields import django.core.serializers.json import django.core.validators from django.db import migrations, models import django.db.models.deletion import django.db.models.expressions import nautobot.extras.models.statuses import nautobot.ipam.fields import taggit.managers import uuid class Migration(migrations.Migration): initial = True dependencies = [ ("tenancy", "0001_initial"), ("extras", "0001_initial_part_1"), ("dcim", "0002_initial_part_2"), ] operations = [ migrations.CreateModel( name="Aggregate", fields=[ ( "id", models.UUIDField( default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True, ), ), ("created", models.DateField(auto_now_add=True, null=True)), ("last_updated", models.DateTimeField(auto_now=True, null=True)), ( "custom_field_data", models.JSONField( blank=True, default=dict, encoder=django.core.serializers.json.DjangoJSONEncoder, ), ), ("prefix", nautobot.ipam.fields.IPNetworkField()), ("date_added", models.DateField(blank=True, null=True)), ("description", models.CharField(blank=True, max_length=200)), ], options={ "ordering": ("prefix",), }, ), migrations.CreateModel( name="IPAddress", fields=[ ( "id", models.UUIDField( default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True, ), ), ("created", models.DateField(auto_now_add=True, null=True)), ("last_updated", models.DateTimeField(auto_now=True, null=True)), ( "custom_field_data", models.JSONField( blank=True, default=dict, encoder=django.core.serializers.json.DjangoJSONEncoder, ), ), ("address", nautobot.ipam.fields.IPAddressField()), ("role", models.CharField(blank=True, max_length=50)), ("assigned_object_id", models.UUIDField(blank=True, null=True)), ( "dns_name", models.CharField( blank=True, max_length=255, validators=[ django.core.validators.RegexValidator( code="invalid", message="Only alphanumeric characters, hyphens, periods, and underscores are allowed in DNS names", regex="^[0-9A-Za-z._-]+$", ) ], ), ), ("description", models.CharField(blank=True, max_length=200)), ], options={ "verbose_name": "IP address", "verbose_name_plural": "IP addresses", "ordering": ("address",), }, ), migrations.CreateModel( name="Prefix", fields=[ ( "id", models.UUIDField( default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True, ), ), ("created", models.DateField(auto_now_add=True, null=True)), ("last_updated", models.DateTimeField(auto_now=True, null=True)), ( "custom_field_data", models.JSONField( blank=True, default=dict, encoder=django.core.serializers.json.DjangoJSONEncoder, ), ), ("prefix", nautobot.ipam.fields.IPNetworkField()), ("is_pool", models.BooleanField(default=False)), ("description", models.CharField(blank=True, max_length=200)), ], options={ "verbose_name_plural": "prefixes", "ordering": ( django.db.models.expressions.OrderBy(django.db.models.expressions.F("vrf__name"), nulls_first=True), "prefix", ), }, ), migrations.CreateModel( name="RIR", fields=[ ( "id", models.UUIDField( default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True, ), ), ("created", models.DateField(auto_now_add=True, null=True)), ("last_updated", models.DateTimeField(auto_now=True, null=True)), ( "custom_field_data", models.JSONField( blank=True, default=dict, encoder=django.core.serializers.json.DjangoJSONEncoder, ), ), ("name", models.CharField(max_length=100, unique=True)), ("slug", models.SlugField(max_length=100, unique=True)), ("is_private", models.BooleanField(default=False)), ("description", models.CharField(blank=True, max_length=200)), ], options={ "verbose_name": "RIR", "verbose_name_plural": "RIRs", "ordering": ["name"], }, ), migrations.CreateModel( name="Role", fields=[ ( "id", models.UUIDField( default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True, ), ), ("created", models.DateField(auto_now_add=True, null=True)), ("last_updated", models.DateTimeField(auto_now=True, null=True)), ( "custom_field_data", models.JSONField( blank=True, default=dict, encoder=django.core.serializers.json.DjangoJSONEncoder, ), ), ("name", models.CharField(max_length=100, unique=True)), ("slug", models.SlugField(max_length=100, unique=True)), ("weight", models.PositiveSmallIntegerField(default=1000)), ("description", models.CharField(blank=True, max_length=200)), ], options={ "ordering": ["weight", "name"], }, ), migrations.CreateModel( name="RouteTarget", fields=[ ( "id", models.UUIDField( default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True, ), ), ("created", models.DateField(auto_now_add=True, null=True)), ("last_updated", models.DateTimeField(auto_now=True, null=True)), ( "custom_field_data", models.JSONField( blank=True, default=dict, encoder=django.core.serializers.json.DjangoJSONEncoder, ), ), ("name", models.CharField(max_length=21, unique=True)), ("description", models.CharField(blank=True, max_length=200)), ], options={ "ordering": ["name"], }, ), migrations.CreateModel( name="VRF", fields=[ ( "id", models.UUIDField( default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True, ), ), ("created", models.DateField(auto_now_add=True, null=True)), ("last_updated", models.DateTimeField(auto_now=True, null=True)), ( "custom_field_data", models.JSONField( blank=True, default=dict, encoder=django.core.serializers.json.DjangoJSONEncoder, ), ), ("name", models.CharField(max_length=100)), ( "rd", models.CharField(blank=True, max_length=21, null=True, unique=True), ), ("enforce_unique", models.BooleanField(default=True)), ("description", models.CharField(blank=True, max_length=200)), ( "export_targets", models.ManyToManyField(blank=True, related_name="exporting_vrfs", to="ipam.RouteTarget"), ), ( "import_targets", models.ManyToManyField(blank=True, related_name="importing_vrfs", to="ipam.RouteTarget"), ), ( "tags", taggit.managers.TaggableManager(through="extras.TaggedItem", to="extras.Tag"), ), ( "tenant", models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name="vrfs", to="tenancy.tenant", ), ), ], options={ "verbose_name": "VRF", "verbose_name_plural": "VRFs", "ordering": ("name", "rd"), }, ), migrations.CreateModel( name="VLANGroup", fields=[ ( "id", models.UUIDField( default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True, ), ), ("created", models.DateField(auto_now_add=True, null=True)), ("last_updated", models.DateTimeField(auto_now=True, null=True)), ( "custom_field_data", models.JSONField( blank=True, default=dict, encoder=django.core.serializers.json.DjangoJSONEncoder, ), ), ("name", models.CharField(max_length=100)), ("slug", models.SlugField(max_length=100)), ("description", models.CharField(blank=True, max_length=200)), ( "site", models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name="vlan_groups", to="dcim.site", ), ), ], options={ "verbose_name": "VLAN group", "verbose_name_plural": "VLAN groups", "ordering": ("site", "name"), }, ), migrations.CreateModel( name="VLAN", fields=[ ( "id", models.UUIDField( default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True, ), ), ("created", models.DateField(auto_now_add=True, null=True)), ("last_updated", models.DateTimeField(auto_now=True, null=True)), ( "custom_field_data", models.JSONField( blank=True, default=dict, encoder=django.core.serializers.json.DjangoJSONEncoder, ), ), ( "vid", models.PositiveSmallIntegerField( validators=[ django.core.validators.MinValueValidator(1), django.core.validators.MaxValueValidator(4094), ] ), ), ("name", models.CharField(max_length=64)), ("description", models.CharField(blank=True, max_length=200)), ( "group", models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name="vlans", to="ipam.vlangroup", ), ), ( "role", models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name="vlans", to="ipam.role", ), ), ( "site", models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name="vlans", to="dcim.site", ), ), ( "status", nautobot.extras.models.statuses.StatusField( null=True, on_delete=django.db.models.deletion.PROTECT, related_name="ipam_vlan_related", to="extras.status", ), ), ( "tags", taggit.managers.TaggableManager(through="extras.TaggedItem", to="extras.Tag"), ), ( "tenant", models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name="vlans", to="tenancy.tenant", ), ), ], options={ "verbose_name": "VLAN", "verbose_name_plural": "VLANs", "ordering": ("site", "group", "vid"), }, ), migrations.CreateModel( name="Service", fields=[ ( "id", models.UUIDField( default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True, ), ), ("created", models.DateField(auto_now_add=True, null=True)), ("last_updated", models.DateTimeField(auto_now=True, null=True)), ( "custom_field_data", models.JSONField( blank=True, default=dict, encoder=django.core.serializers.json.DjangoJSONEncoder, ), ), ("name", models.CharField(max_length=100)), ("protocol", models.CharField(max_length=50)), ( "ports", django.contrib.postgres.fields.ArrayField( base_field=models.PositiveIntegerField( validators=[ django.core.validators.MinValueValidator(1), django.core.validators.MaxValueValidator(65535), ] ), size=None, ), ), ("description", models.CharField(blank=True, max_length=200)), ( "device", models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name="services", to="dcim.device", ), ), ( "ipaddresses", models.ManyToManyField(blank=True, related_name="services", to="ipam.IPAddress"), ), ( "tags", taggit.managers.TaggableManager(through="extras.TaggedItem", to="extras.Tag"), ), ], options={ "ordering": ("protocol", "ports"), }, ), ]
37.838057
131
0.394447
1,235
18,692
5.842915
0.148988
0.043653
0.048226
0.043237
0.730599
0.713969
0.681402
0.668099
0.648559
0.641491
0
0.013287
0.504761
18,692
493
132
37.914807
0.766231
0.002407
0
0.6893
1
0
0.09166
0
0
0
0
0
0
1
0
false
0
0.024691
0
0.032922
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
9a957bd7f12f881b0ea0d2ed44a2df42fce14ef1
12
py
Python
__init__.py
mittalj/cs340_databases_project
135a980a477056d0a02e1b191faa69e0067f4758
[ "Apache-2.0" ]
null
null
null
__init__.py
mittalj/cs340_databases_project
135a980a477056d0a02e1b191faa69e0067f4758
[ "Apache-2.0" ]
null
null
null
__init__.py
mittalj/cs340_databases_project
135a980a477056d0a02e1b191faa69e0067f4758
[ "Apache-2.0" ]
null
null
null
#If needed
6
11
0.666667
2
12
4
1
0
0
0
0
0
0
0
0
0
0
0
0.25
12
1
12
12
0.888889
0.75
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
9acca7fb56868c899d8cd5398324f9de1ab20001
91
py
Python
back/evolucao/apps.py
ldurans/app-prontuario-tasy
51098806e289326d7afdd9f4908b1aab75f6d308
[ "Apache-2.0" ]
null
null
null
back/evolucao/apps.py
ldurans/app-prontuario-tasy
51098806e289326d7afdd9f4908b1aab75f6d308
[ "Apache-2.0" ]
null
null
null
back/evolucao/apps.py
ldurans/app-prontuario-tasy
51098806e289326d7afdd9f4908b1aab75f6d308
[ "Apache-2.0" ]
null
null
null
from django.apps import AppConfig class EvolucaoConfig(AppConfig): name = 'evolucao'
15.166667
33
0.758242
10
91
6.9
0.9
0
0
0
0
0
0
0
0
0
0
0
0.164835
91
5
34
18.2
0.907895
0
0
0
0
0
0.087912
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
9adf6b171512b4fc1631385f21f68021ac5ca5ad
147
py
Python
run_fly.py
cheburakshu/fly
d452af4b83e4cb0f8d0094bf1e0c1b407d39bdf5
[ "Apache-2.0" ]
null
null
null
run_fly.py
cheburakshu/fly
d452af4b83e4cb0f8d0094bf1e0c1b407d39bdf5
[ "Apache-2.0" ]
null
null
null
run_fly.py
cheburakshu/fly
d452af4b83e4cb0f8d0094bf1e0c1b407d39bdf5
[ "Apache-2.0" ]
null
null
null
import fly import sys if len(sys.argv) < 2: print("Usage: python run_fly.py config_file_name.conf") else: fly.bootstrap(sys.argv[1])
21
60
0.680272
25
147
3.88
0.76
0.14433
0
0
0
0
0
0
0
0
0
0.016807
0.190476
147
7
61
21
0.798319
0
0
0
0
0
0.323944
0.147887
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0.166667
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
b104edace96215b0de90d0a249a54d0693070d53
288
py
Python
mandroobi/db.py
ivansabik/mandroobi
b12325d5afe83cbf54db4063ecddc2950ed60431
[ "Apache-2.0" ]
8
2017-05-01T10:20:48.000Z
2021-07-02T20:27:28.000Z
mandroobi/db.py
ivansabik/mandroobi
b12325d5afe83cbf54db4063ecddc2950ed60431
[ "Apache-2.0" ]
2
2017-05-01T06:36:46.000Z
2017-05-30T15:17:01.000Z
mandroobi/db.py
ivansabik/mandroobi
b12325d5afe83cbf54db4063ecddc2950ed60431
[ "Apache-2.0" ]
3
2019-10-24T20:51:23.000Z
2020-06-14T05:16:25.000Z
from sqlalchemy import create_engine from sqlalchemy.orm import scoped_session, sessionmaker # TODO: read from config, env var here and in alembic.ini engine = create_engine('sqlite:////tmp/mandroobi.db', echo=False) session = scoped_session(sessionmaker(bind=engine, autocommit=True))
36
68
0.798611
40
288
5.65
0.7
0.123894
0.221239
0
0
0
0
0
0
0
0
0
0.104167
288
7
69
41.142857
0.875969
0.190972
0
0
0
0
0.116883
0.116883
0
0
0
0.142857
0
1
0
false
0
0.5
0
0.5
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
1
0
0
0
0
4
b105b636271c023f9aa38aaa8191bc93ce6c01f3
223
py
Python
python/testData/inspections/DocstringParams2.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/inspections/DocstringParams2.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/inspections/DocstringParams2.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
""" file's docstring """ def spam(<weak_warning descr="Missing parameter ham in docstring">ha<caret>m</weak_warning>, eggs): # <== PyCharm suggests to apply quickfix there """Docstring @param eggs: """ pass
37.166667
147
0.668161
29
223
5.068966
0.827586
0.14966
0
0
0
0
0
0
0
0
0
0
0.183857
223
6
148
37.166667
0.807692
0.197309
0
0
0
0
0.290598
0
0
0
0
0
0
0
null
null
0.5
0
null
null
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
4
b10ba33c9c6a25baa12943cc4d2b028bfcd9866d
208
py
Python
algorithms/baseline_regressor.py
DataOceanWhale/OceanLFAS
e549fb23434f07b00d90144f5e0cc3526c44b73f
[ "Apache-2.0" ]
3
2021-05-27T04:20:19.000Z
2021-06-22T02:56:19.000Z
algorithms/baseline_regressor.py
DataOceanWhale/OceanLFAS
e549fb23434f07b00d90144f5e0cc3526c44b73f
[ "Apache-2.0" ]
null
null
null
algorithms/baseline_regressor.py
DataOceanWhale/OceanLFAS
e549fb23434f07b00d90144f5e0cc3526c44b73f
[ "Apache-2.0" ]
null
null
null
import numpy as np class BaselineRegressor: def __init__(self): pass def fit(self, x_train, y_train): pass def predict(self, x_test): return np.zeros([x_test.shape[0]])
17.333333
42
0.620192
30
208
4.033333
0.666667
0.115702
0
0
0
0
0
0
0
0
0
0.006667
0.278846
208
11
43
18.909091
0.8
0
0
0.25
0
0
0
0
0
0
0
0
0
1
0.375
false
0.25
0.125
0.125
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
1
1
0
0
4
b113395298d9dbddf4ae36348e79665e7333656e
84
py
Python
layers/__init__.py
wahyutirta/CNN-numpy
d66e10a53304a0c72c40f278486866493f573d5e
[ "MIT" ]
3
2021-05-20T09:22:37.000Z
2021-07-16T07:04:43.000Z
layers/__init__.py
wahyutirta/cnn-numpy
d66e10a53304a0c72c40f278486866493f573d5e
[ "MIT" ]
null
null
null
layers/__init__.py
wahyutirta/cnn-numpy
d66e10a53304a0c72c40f278486866493f573d5e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Jul 21 08:25:14 2021 @author: ASUS """
10.5
35
0.559524
14
84
3.357143
1
0
0
0
0
0
0
0
0
0
0
0.19697
0.214286
84
7
36
12
0.515152
0.869048
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
b120a03d3007d93d39d8769cab5138b542919a25
7,043
py
Python
Engine/Extras/Maya_AnimationRiggingTools/ARTv1/MayaTools/General/Scripts/Modules/ART_Core.py
windystrife/UnrealEngine_NVIDIAGameWork
b50e6338a7c5b26374d66306ebc7807541ff815e
[ "MIT" ]
1
2022-01-29T18:36:12.000Z
2022-01-29T18:36:12.000Z
Engine/Extras/Maya_AnimationRiggingTools/ARTv1/MayaTools/General/Scripts/Modules/ART_Core.py
windystrife/UnrealEngine_NVIDIAGameWork
b50e6338a7c5b26374d66306ebc7807541ff815e
[ "MIT" ]
null
null
null
Engine/Extras/Maya_AnimationRiggingTools/ARTv1/MayaTools/General/Scripts/Modules/ART_Core.py
windystrife/UnrealEngine_NVIDIAGameWork
b50e6338a7c5b26374d66306ebc7807541ff815e
[ "MIT" ]
null
null
null
import maya.cmds as cmds import maya.mel as mel import os import ART_rigUtils as utils reload(utils) class RigCore(): #RigCore builds up our core components needed to start the rig build. This includes setting up the driver skeleton and building things like the rig settings, and master rig grps #These are components that will be needed for every rig def __init__(self): #create the rig settings node self.rigSettings = cmds.group(empty = True, name = "Rig_Settings") cmds.setAttr(self.rigSettings + ".tx", lock = True, keyable = False) cmds.setAttr(self.rigSettings + ".ty", lock = True, keyable = False) cmds.setAttr(self.rigSettings + ".tz", lock = True, keyable = False) cmds.setAttr(self.rigSettings + ".rx", lock = True, keyable = False) cmds.setAttr(self.rigSettings + ".ry", lock = True, keyable = False) cmds.setAttr(self.rigSettings + ".rz", lock = True, keyable = False) cmds.setAttr(self.rigSettings + ".sx", lock = True, keyable = False) cmds.setAttr(self.rigSettings + ".sy", lock = True, keyable = False) cmds.setAttr(self.rigSettings + ".sz", lock = True, keyable = False) cmds.setAttr(self.rigSettings + ".v", lock = True, keyable = False) #Setup the driver skeleton self.createDriverSkeleton() #build the core rig components self.buildCoreComponents() # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # def createDriverSkeleton(self): #there will always be a root bone, so let's duplicate that dupe = cmds.duplicate("root", rc = True)[0] cmds.select("root", hi = True) joints = cmds.ls(sl = True) cmds.select(dupe, hi = True) dupeJoints = cmds.ls(sl = True) driverJoints = [] for i in range(int(len(dupeJoints))): if cmds.objExists(dupeJoints[i]): driverJoint = cmds.rename(dupeJoints[i], "driver_" + joints[i]) driverJoints.append(driverJoint) #create a direct connection between the driver and the export joints for joint in driverJoints: exportJoint = joint.partition("_")[2] try: cmds.connectAttr(joint + ".translate", exportJoint + ".translate") except: print "could not connect translate to driver joint on " + str(exportJoint) try: cmds.orientConstraint(joint, exportJoint) except: print "could not orient constrain " + str(exportJoint) + " to driver joint" try: cmds.connectAttr(joint + ".scale", exportJoint + ".scale") except: print "could not connect scale to driver joint on " + str(exportJoint) # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # def buildCoreComponents(self): #builds the master, the root, and the core rig groups #MASTER CONTROL masterControl = utils.createControl("circle", 150, "master_anim") constraint = cmds.pointConstraint("root", masterControl)[0] cmds.delete(constraint) cmds.makeIdentity(masterControl, apply = True) cmds.setAttr(masterControl + ".overrideEnabled", 1) cmds.setAttr(masterControl + ".overrideColor", 18) spaceSwitchFollow = cmds.group(empty = True, name = masterControl + "_space_switcher_follow") constraint = cmds.parentConstraint("root", spaceSwitchFollow)[0] cmds.delete(constraint) spaceSwitcher = cmds.group(empty = True, name = masterControl + "_space_switcher") constraint = cmds.parentConstraint("root", spaceSwitcher)[0] cmds.delete(constraint) cmds.parent(spaceSwitcher, spaceSwitchFollow) cmds.parent(masterControl, spaceSwitcher) cmds.makeIdentity(masterControl, apply = True) #OFFSET CONTROL offsetControl = utils.createControl("square", 140, "offset_anim") constraint = cmds.pointConstraint("root", offsetControl)[0] cmds.delete(constraint) cmds.parent(offsetControl, masterControl) cmds.makeIdentity(offsetControl, apply = True) cmds.setAttr(offsetControl + ".overrideEnabled", 1) cmds.setAttr(offsetControl + ".overrideColor", 17) #ROOT ANIM rootControl = utils.createControl("sphere", 10, "root_anim") constraint = cmds.parentConstraint("driver_root", rootControl)[0] cmds.delete(constraint) cmds.parent(rootControl, masterControl) cmds.makeIdentity(rootControl, apply = True) cmds.parentConstraint(rootControl, "driver_root") cmds.setAttr(rootControl + ".overrideEnabled", 1) cmds.setAttr(rootControl + ".overrideColor", 30) for attr in [".sx", ".sy", ".sz", ".v"]: cmds.setAttr(masterControl + attr, lock = True, keyable = False) cmds.setAttr(offsetControl + attr, lock = True, keyable = False) cmds.setAttr(rootControl + attr, lock = True, keyable = False) #Create the group that will hold all of the control rig components rigGrp = cmds.group(empty = True, name = "ctrl_rig") cmds.parent(rigGrp, "offset_anim") #finish grouping everything under 1 character grp controlRigGrp = cmds.group(empty = True, name = "rig_grp") cmds.parent(["driver_root", "master_anim_space_switcher_follow"], controlRigGrp) cmds.parent("Rig_Settings", controlRigGrp) if cmds.objExists("Proxy_Geo_Skin_Grp"): cmds.parent("Proxy_Geo_Skin_Grp", controlRigGrp) returnNodes = [rigGrp, offsetControl] return returnNodes
7,043
7,043
0.50788
601
7,043
5.896839
0.282862
0.058973
0.055023
0.073363
0.296275
0.220372
0.163657
0.143905
0
0
0
0.005207
0.31833
7,043
1
7,043
7,043
0.732972
0.180747
0
0.146067
0
0
0.110179
0.010725
0
0
0
0
0
0
null
null
0
0.044944
null
null
0.033708
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
1
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
4
b14cc692d63f00593c3f132d4912eb7477fb5499
22,313
py
Python
adminlte/static/plugins/datatables/extensions/Responsive/examples/initialisation/new.html.py
dnaextrim/django_adminlte_x
9150288a0d6c4bdb1d423345fac0d5e3c7e8406e
[ "MIT" ]
4
2017-02-14T09:51:23.000Z
2018-12-04T04:40:32.000Z
adminlte/static/plugins/datatables/extensions/Responsive/examples/initialisation/new.html.py
dnaextrim/django_adminlte_x
9150288a0d6c4bdb1d423345fac0d5e3c7e8406e
[ "MIT" ]
1
2017-05-31T18:07:16.000Z
2017-06-02T07:07:30.000Z
adminlte/static/plugins/datatables/extensions/Responsive/examples/initialisation/new.html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XXXXXX XXXXXXXXXXX XXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXX XXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXX XXXXXXXX XXXXXXXX XXX XXXXXXXXXXXXX XXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXX XXXXXXXXXXXX XXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXXXXXXXX XXXXX XXXX XXXXXXXXXXXXX XXXX XXXXXXXXXXX XXXXXX XXXXXXXXXX XXXXX XXXXX XX XXXX XX XXXXXXXXXX XXX XXXXX XXXXX XX XXXX XXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX X XXX XXXXX X XXXXXXXXXXXXXXXXXXXXXXXXXX XXX XXXXXXXXXXXXXXXXXXXXXXXXXX XXXXX XX X XXXXXXXXX XXXXX XXXXXXXX XX XXX XXXXX XXXXX XXX XXXXXXXXX XXXXXXXXXX XXXXXXX XXXXX XXX XXXXXX XXX XXX XX XXXX XXXXXXXXXXXX XXXX XXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXX XXXXXX XXXX XXXXXXXXXXXXXX XXXXXX XXXX XXXXX XXXXX XX XXX XXX XXXX XXXXX XXXXXXXX XXXXXX XX XXX XXXX XXXXXXXX XX XXXXXXXXXXXXXXX XXXXXX XXXX XXXXXXXXXXXX XXXXX XXXXXXX XXXXXXX XXXX X XXXXXX XXX XX XXXXXXXXXX XXX XXXXXX XXXX XX XXXXXX XXXX XXX XXXXXXX XXXXX XXXXXXXX XX XXXXX XX XXXXXXXXX XXXXXXX XXX XXXXXX XXX XXXXXXXXXX XXX XXXX XX XXXXX XXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXX X XXXXXXXXXX XXXXXX XXXXXXXX XXXXXX XXXXXX XXXXXXXXX XXX XXXXXXX XXXXX XXX XXXXXX XXX XXX XX XXXX XXXXXXX XX XXXXXXX XXX XXXXXXX XX XXX XXXXXXXXXX XXXX XXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXX XXXXXX XXXX XXXXXXXXXXXXX XXXXXXX XXXXX XXXXX XXXX XX XXXXX XXX XXXXXX XXXX XXXX XXX XXXX XXXXXX XX XXXXX XXXXXX XXXX XXXX XXXX XXXXXX XXXXXXXXXXXXX XX XXX XXXXXXXXXX XXXX XX XXXXXXXXXXX XXXXXX XXXX XXXXXXXXXXXX XXXXXX XXXXXX XXXX XX XXXXXXX XXX XXXXXXXXXXX XXXXXXXXXX XXX XXXX XXXXX XX XXXXX XXXXXX XXXXXX XXXX XXXX XXXX XX XXXX XX XXXXXXX XXXXXX XXXXX XXXX XXXXXXXXXXX XXXXXXXXXX XXXXXXX XXX XX XXXXXXX XX XXX XXXXXXXXX XXXXX XX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXX XXXXXXXXX XX XXX XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXX XXXXXX XXXXXX XXXXXXXXXX XXXXXX XXXXXXXXX XXX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XXXXXXXXXXXXXXXX XXX XX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXX XXXXXX XXX XXXXXXXXXXXX XX XXXXXXXXXXXXXXX XX XXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXX XXX XXXXXXX XX XX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXX XXXXXX XXXXXXXXXXXXX XXXXXXXXXX XX XXXXXXXX XXXXX XXX XX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXX XXXXXX XXXXXX XXXXXXXXXX XXXXXXX XXXXXXX
27.177832
164
0.746471
1,331
22,313
12.513899
0.045079
0.032961
0.129803
0.165706
0.525156
0.496338
0.448307
0.395653
0.282361
0.085735
0
0
0.253529
22,313
821
165
27.177832
1
0
0
0.945362
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
0
0
1
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
4
b155b44504edcbf866515778ccd5d2d75afdc143
85
py
Python
timer/apps.py
hughest64/brew_app
f450e9923e6242b3c37dc3934af6ab540c39999f
[ "MIT" ]
null
null
null
timer/apps.py
hughest64/brew_app
f450e9923e6242b3c37dc3934af6ab540c39999f
[ "MIT" ]
null
null
null
timer/apps.py
hughest64/brew_app
f450e9923e6242b3c37dc3934af6ab540c39999f
[ "MIT" ]
null
null
null
from django.apps import AppConfig class TimerConfig(AppConfig): name = 'timer'
14.166667
33
0.741176
10
85
6.3
0.9
0
0
0
0
0
0
0
0
0
0
0
0.176471
85
5
34
17
0.9
0
0
0
0
0
0.058824
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
b17cbe66fbdb27e4d7d3969d0e006610a81fa62a
269
py
Python
email.py
mtencza8/Lead-Search-Tool
10613a420b472c01fc642a074ab323f766f0ccf1
[ "MIT" ]
null
null
null
email.py
mtencza8/Lead-Search-Tool
10613a420b472c01fc642a074ab323f766f0ccf1
[ "MIT" ]
null
null
null
email.py
mtencza8/Lead-Search-Tool
10613a420b472c01fc642a074ab323f766f0ccf1
[ "MIT" ]
null
null
null
def chooseformat(): print("1.) fnamelname") print("2.) fname.lname") print("3.) fname_lname") print("4.) finitlname") print("5.) finit.lname") print("6.) finit_lname") print("7.) fname") input("Choose a format to begin with: ")
14.944444
45
0.568773
34
269
4.441176
0.647059
0.264901
0.198676
0
0
0
0
0
0
0
0
0.034146
0.237918
269
17
46
15.823529
0.702439
0
0
0
0
0
0.492366
0
0
0
0
0
0
1
0.111111
true
0
0
0
0.111111
0.777778
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
4
b18378f866649c17ee6e5d7a3bbd15f7be9aa446
85
py
Python
docs/authors.py
kant/frictionless-py
09cc98e1966d6f97f4eecb47757f45f8a946c5e7
[ "MIT" ]
null
null
null
docs/authors.py
kant/frictionless-py
09cc98e1966d6f97f4eecb47757f45f8a946c5e7
[ "MIT" ]
null
null
null
docs/authors.py
kant/frictionless-py
09cc98e1966d6f97f4eecb47757f45f8a946c5e7
[ "MIT" ]
null
null
null
from scripts import docs docs.from_markdown(source="AUTHORS.md", target="authors")
17
57
0.776471
12
85
5.416667
0.75
0
0
0
0
0
0
0
0
0
0
0
0.094118
85
4
58
21.25
0.844156
0
0
0
0
0
0.2
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
b19f5786fb2c62c1a04d47e74177c528fc0bfd0c
451
py
Python
builder/Builder Pattern/Builder/director.py
Tomvictor/python-design-patterns
6b99607d721bbe03d26a0a451a10e88cd1c1d112
[ "MIT" ]
null
null
null
builder/Builder Pattern/Builder/director.py
Tomvictor/python-design-patterns
6b99607d721bbe03d26a0a451a10e88cd1c1d112
[ "MIT" ]
null
null
null
builder/Builder Pattern/Builder/director.py
Tomvictor/python-design-patterns
6b99607d721bbe03d26a0a451a10e88cd1c1d112
[ "MIT" ]
null
null
null
class Director(object): def __init__(self, builder): self._builder = builder def build_computer(self): self._builder.new_computer() self._builder.get_case() self._builder.build_mainboard() self._builder.install_mainboard() self._builder.install_hard_drive() self._builder.install_video_card() def get_computer(self): return self._builder.get_computer()
25.055556
44
0.643016
49
451
5.44898
0.387755
0.370787
0.202247
0.202247
0
0
0
0
0
0
0
0
0.261641
451
17
45
26.529412
0.801802
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0
0.083333
0.416667
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
4
490fb11799093eb96470f367862b747446306cac
269
py
Python
pset7/adventure/item.py
czhongyu/programming1
9c531b2b3622cb6aa447f0246a95bdce3fe9b9cd
[ "MIT" ]
null
null
null
pset7/adventure/item.py
czhongyu/programming1
9c531b2b3622cb6aa447f0246a95bdce3fe9b9cd
[ "MIT" ]
null
null
null
pset7/adventure/item.py
czhongyu/programming1
9c531b2b3622cb6aa447f0246a95bdce3fe9b9cd
[ "MIT" ]
null
null
null
class Item(): def __init__(self, name, description): # name and description self.name = name self.description = description def __str__(self): # print item's name and description return f"{self.name}: {self.description}"
29.888889
49
0.620818
31
269
5.129032
0.419355
0.150943
0.226415
0
0
0
0
0
0
0
0
0
0.27881
269
9
49
29.888889
0.819588
0.200743
0
0
0
0
0.14554
0
0
0
0
0
0
1
0.333333
false
0
0
0.166667
0.666667
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
4
492a46601812962f45de8b3f86f3c393713184af
1,267
py
Python
backend/project/users/migrations/0002_auto_20201103_0214.py
winoutt/winoutt-django
f48dfd933b3c12286f973701676eb2c2ab2bff73
[ "MIT" ]
null
null
null
backend/project/users/migrations/0002_auto_20201103_0214.py
winoutt/winoutt-django
f48dfd933b3c12286f973701676eb2c2ab2bff73
[ "MIT" ]
null
null
null
backend/project/users/migrations/0002_auto_20201103_0214.py
winoutt/winoutt-django
f48dfd933b3c12286f973701676eb2c2ab2bff73
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2020-11-02 21:14 import django.core.files.storage from django.db import migrations import django_resized.forms class Migration(migrations.Migration): dependencies = [ ('users', '0001_initial'), ] operations = [ migrations.AlterField( model_name='enduser', name='avatar', field=django_resized.forms.ResizedImageField(crop=None, default='https://winoutt-prod.s3.us-east-2.amazonaws.com/assets/default-avatar.png', force_format=None, keep_meta=True, quality=75, size=[200, 200], storage=django.core.files.storage.FileSystemStorage(location='E:\\Projects\\winoutt-django/winoutt-django/users/static/users/profile_images/'), upload_to=''), ), migrations.AlterField( model_name='enduser', name='avatar_original', field=django_resized.forms.ResizedImageField(crop=None, default='https://winoutt-prod.s3.us-east-2.amazonaws.com/assets/default-avatar.png', force_format=None, keep_meta=True, quality=75, size=[1920, 1080], storage=django.core.files.storage.FileSystemStorage(location='E:\\Projects\\winoutt-django/winoutt-django/users/static/users/profile_images/'), upload_to=''), ), ]
48.730769
378
0.689818
154
1,267
5.577922
0.448052
0.060536
0.052387
0.076834
0.759022
0.759022
0.759022
0.651921
0.651921
0.651921
0
0.038863
0.167324
1,267
25
379
50.68
0.775355
0.035517
0
0.315789
1
0.105263
0.296234
0.130544
0
0
0
0
0
1
0
false
0
0.157895
0
0.315789
0
0
0
0
null
0
0
0
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
4973c6f101c4ca80c4de1565af88105586bd7d3d
231
py
Python
twkit/curation/__init__.py
evaperon/twAwler
8e9f2064cad846177ed6547b9f56f053226a2d5e
[ "Apache-2.0" ]
5
2018-12-06T16:14:14.000Z
2020-05-22T07:36:45.000Z
twkit/curation/__init__.py
evaperon/twAwler
8e9f2064cad846177ed6547b9f56f053226a2d5e
[ "Apache-2.0" ]
null
null
null
twkit/curation/__init__.py
evaperon/twAwler
8e9f2064cad846177ed6547b9f56f053226a2d5e
[ "Apache-2.0" ]
3
2020-04-20T07:20:18.000Z
2021-08-19T17:31:38.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ########################################### # (c) 2016-2020 Polyvios Pratikakis # polyvios@ics.forth.gr ########################################### #__all__ = ['utils'] ''' empty '''
23.1
43
0.380952
19
231
4.421053
0.947368
0
0
0
0
0
0
0
0
0
0
0.048077
0.099567
231
9
44
25.666667
0.355769
0.541126
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
49960099c31839fb5bda6b3a874e181b2d6b6d1e
75
py
Python
context.py
hwknsj/synergy_flow
aba8f57b2cbeeb0368a64eaa7e5369fcef0a3136
[ "BSD-3-Clause" ]
null
null
null
context.py
hwknsj/synergy_flow
aba8f57b2cbeeb0368a64eaa7e5369fcef0a3136
[ "BSD-3-Clause" ]
1
2016-10-03T18:48:15.000Z
2019-11-01T21:53:30.000Z
context.py
hwknsj/synergy_flow
aba8f57b2cbeeb0368a64eaa7e5369fcef0a3136
[ "BSD-3-Clause" ]
1
2019-11-02T00:45:26.000Z
2019-11-02T00:45:26.000Z
# empty # module is required to initialized synergy.conf and run unit tests
37.5
67
0.8
12
75
5
1
0
0
0
0
0
0
0
0
0
0
0
0.16
75
2
67
37.5
0.952381
0.946667
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
b8ca80ba58c78bde6b5b12e66a0b5d7700b38aff
171
py
Python
test_custom/models.py
AllFactors/django-organizations
df079e97f8c88214bcdc0b87d2717a8b5323bc4f
[ "BSD-2-Clause" ]
855
2015-01-06T21:08:34.000Z
2022-03-31T04:24:49.000Z
test_custom/models.py
AllFactors/django-organizations
df079e97f8c88214bcdc0b87d2717a8b5323bc4f
[ "BSD-2-Clause" ]
156
2015-02-09T01:51:40.000Z
2022-03-29T22:23:01.000Z
test_custom/models.py
AllFactors/django-organizations
df079e97f8c88214bcdc0b87d2717a8b5323bc4f
[ "BSD-2-Clause" ]
186
2015-01-21T06:21:59.000Z
2022-03-29T12:44:24.000Z
from django.db import models from organizations.models import Organization class Team(Organization): sport = models.CharField(max_length=100, blank=True, null=True)
24.428571
67
0.795322
23
171
5.869565
0.73913
0
0
0
0
0
0
0
0
0
0
0.02
0.122807
171
6
68
28.5
0.88
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
b8ec9f30d72579a15d3c687c74c2bb88022649cd
5,141
py
Python
test/hummingbot/connector/derivative/bybit_perpetual/test_bybit_perpetual_utils.py
BGTCapital/hummingbot
2c50f50d67cedccf0ef4d8e3f4c8cdce3dc87242
[ "Apache-2.0" ]
3,027
2019-04-04T18:52:17.000Z
2022-03-30T09:38:34.000Z
test/hummingbot/connector/derivative/bybit_perpetual/test_bybit_perpetual_utils.py
BGTCapital/hummingbot
2c50f50d67cedccf0ef4d8e3f4c8cdce3dc87242
[ "Apache-2.0" ]
4,080
2019-04-04T19:51:11.000Z
2022-03-31T23:45:21.000Z
test/hummingbot/connector/derivative/bybit_perpetual/test_bybit_perpetual_utils.py
BGTCapital/hummingbot
2c50f50d67cedccf0ef4d8e3f4c8cdce3dc87242
[ "Apache-2.0" ]
1,342
2019-04-04T20:50:53.000Z
2022-03-31T15:22:36.000Z
import pandas as pd from unittest import TestCase from unittest.mock import patch from hummingbot.connector.derivative.bybit_perpetual import bybit_perpetual_constants as CONSTANTS, bybit_perpetual_utils as utils class BybitPerpetualUtilsTests(TestCase): @patch('hummingbot.connector.derivative.bybit_perpetual.bybit_perpetual_utils.get_tracking_nonce') def test_client_order_id_creation(self, nonce_provider_mock): nonce_provider_mock.return_value = int(1e15) self.assertEqual("HBOT-B-BTC-USDT-1000000000000000", utils.get_new_client_order_id(True, "BTC-USDT")) nonce_provider_mock.return_value = int(1e15) + 1 self.assertEqual("HBOT-S-ETH-USDT-1000000000000001", utils.get_new_client_order_id(False, "ETH-USDT")) def test_trading_pair_convertion(self): trading_pair = "BTC-USDT" self.assertEqual("BTCUSDT", utils.convert_to_exchange_trading_pair(trading_pair)) def test_rest_api_path_for_endpoint(self): endpoint = {"linear": "/testEndpoint/linear", "non_linear": "/testEndpoint/non_linear"} api_path = utils.rest_api_path_for_endpoint(endpoint=endpoint) self.assertEqual("/testEndpoint/non_linear", api_path) api_path = utils.rest_api_path_for_endpoint(endpoint=endpoint, trading_pair="BTC-USD") self.assertEqual("/testEndpoint/non_linear", api_path) api_path = utils.rest_api_path_for_endpoint(endpoint=endpoint, trading_pair="BTC-USDT") self.assertEqual("/testEndpoint/linear", api_path) def test_rest_api_url(self): endpoint = "/testEndpoint" url = utils.rest_api_url_for_endpoint(endpoint=endpoint, domain=None, ) self.assertEqual(CONSTANTS.REST_URLS.get("bybit_perpetual_main") + "/testEndpoint", url) url = utils.rest_api_url_for_endpoint(endpoint=endpoint, domain="bybit_perpetual_main") self.assertEqual(CONSTANTS.REST_URLS.get("bybit_perpetual_main") + "/testEndpoint", url) url = utils.rest_api_url_for_endpoint(endpoint=endpoint, domain="bybit_perpetual_testnet") self.assertEqual(CONSTANTS.REST_URLS.get("bybit_perpetual_testnet") + "/testEndpoint", url) def test_wss_linear_public_url(self): url = utils.wss_linear_public_url(None) self.assertEqual(CONSTANTS.WSS_LINEAR_PUBLIC_URLS.get("bybit_perpetual_main"), url) url = utils.wss_linear_public_url("bybit_perpetual_main") self.assertEqual(CONSTANTS.WSS_LINEAR_PUBLIC_URLS.get("bybit_perpetual_main"), url) url = utils.wss_linear_public_url("bybit_perpetual_testnet") self.assertEqual(CONSTANTS.WSS_LINEAR_PUBLIC_URLS.get("bybit_perpetual_testnet"), url) def test_wss_linear_private_url(self): url = utils.wss_linear_private_url(None) self.assertEqual(CONSTANTS.WSS_LINEAR_PRIVATE_URLS.get("bybit_perpetual_main"), url) url = utils.wss_linear_private_url("bybit_perpetual_main") self.assertEqual(CONSTANTS.WSS_LINEAR_PRIVATE_URLS.get("bybit_perpetual_main"), url) url = utils.wss_linear_private_url("bybit_perpetual_testnet") self.assertEqual(CONSTANTS.WSS_LINEAR_PRIVATE_URLS.get("bybit_perpetual_testnet"), url) def test_wss_non_linear_public_url(self): url = utils.wss_non_linear_public_url(None) self.assertEqual(CONSTANTS.WSS_NON_LINEAR_PUBLIC_URLS.get("bybit_perpetual_main"), url) url = utils.wss_non_linear_public_url("bybit_perpetual_main") self.assertEqual(CONSTANTS.WSS_NON_LINEAR_PUBLIC_URLS.get("bybit_perpetual_main"), url) url = utils.wss_non_linear_public_url("bybit_perpetual_testnet") self.assertEqual(CONSTANTS.WSS_NON_LINEAR_PUBLIC_URLS.get("bybit_perpetual_testnet"), url) def test_wss_non_linear_private_url(self): url = utils.wss_non_linear_private_url(None) self.assertEqual(CONSTANTS.WSS_NON_LINEAR_PRIVATE_URLS.get("bybit_perpetual_main"), url) url = utils.wss_non_linear_private_url("bybit_perpetual_main") self.assertEqual(CONSTANTS.WSS_NON_LINEAR_PRIVATE_URLS.get("bybit_perpetual_main"), url) url = utils.wss_non_linear_private_url("bybit_perpetual_testnet") self.assertEqual(CONSTANTS.WSS_NON_LINEAR_PRIVATE_URLS.get("bybit_perpetual_testnet"), url) def test_get_next_funding_timestamp(self): # Simulate 01:00 UTC timestamp = pd.Timestamp("2021-08-21-01:00:00", tz="UTC").timestamp() expected_ts = pd.Timestamp("2021-08-21-08:00:00", tz="UTC").timestamp() self.assertEqual(expected_ts, utils.get_next_funding_timestamp(timestamp)) # Simulate 09:00 UTC timestamp = pd.Timestamp("2021-08-21-09:00:00", tz="UTC").timestamp() expected_ts = pd.Timestamp("2021-08-21-16:00:00", tz="UTC").timestamp() self.assertEqual(expected_ts, utils.get_next_funding_timestamp(timestamp)) # Simulate 17:00 UTC timestamp = pd.Timestamp("2021-08-21-17:00:00", tz="UTC").timestamp() expected_ts = pd.Timestamp("2021-08-22-00:00:00", tz="UTC").timestamp() self.assertEqual(expected_ts, utils.get_next_funding_timestamp(timestamp))
50.90099
130
0.744991
686
5,141
5.208455
0.12828
0.117548
0.100756
0.088161
0.81808
0.776378
0.745312
0.693255
0.630003
0.630003
0
0.030752
0.146081
5,141
100
131
51.41
0.783144
0.010893
0
0.217391
0
0
0.204684
0.089352
0
0
0
0
0.347826
1
0.130435
false
0
0.057971
0
0.202899
0
0
0
0
null
0
0
0
1
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
b8fdfe57141004714cd7feecde296a4414b93615
178
py
Python
src/meetings/models/__init__.py
torakses/unicornis-challenge
d7d1ae57e9bec05b942b6eec469e45f449f3bcc4
[ "MIT" ]
null
null
null
src/meetings/models/__init__.py
torakses/unicornis-challenge
d7d1ae57e9bec05b942b6eec469e45f449f3bcc4
[ "MIT" ]
null
null
null
src/meetings/models/__init__.py
torakses/unicornis-challenge
d7d1ae57e9bec05b942b6eec469e45f449f3bcc4
[ "MIT" ]
null
null
null
from .meeting import Meeting from .issue import Issue from .document import Document from .attendance import Attendance __all__ = ("Meeting", "Issue", "Document", "Attendance")
25.428571
56
0.769663
21
178
6.333333
0.333333
0
0
0
0
0
0
0
0
0
0
0
0.129213
178
6
57
29.666667
0.858065
0
0
0
0
0
0.168539
0
0
0
0
0
0
1
0
false
0
0.8
0
0.8
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
77056c8185474096ffecb6171f10322b2f19a807
190
py
Python
goods/apps.py
dcopm999/pharmcrm2-goods
2d5878c9f2854f65b8ebf84faccb798865568d9b
[ "MIT" ]
null
null
null
goods/apps.py
dcopm999/pharmcrm2-goods
2d5878c9f2854f65b8ebf84faccb798865568d9b
[ "MIT" ]
null
null
null
goods/apps.py
dcopm999/pharmcrm2-goods
2d5878c9f2854f65b8ebf84faccb798865568d9b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 from django.apps import AppConfig from django.utils.translation import gettext_lazy as _ class GoodsConfig(AppConfig): name = "goods" verbose_name = _("goods")
21.111111
54
0.726316
24
190
5.583333
0.75
0.149254
0
0
0
0
0
0
0
0
0
0.006329
0.168421
190
8
55
23.75
0.841772
0.089474
0
0
0
0
0.05848
0
0
0
0
0
0
1
0
false
0
0.4
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
7736caf1365f93b0eb747793fb2705b5725bf661
887
py
Python
omgwords-agent/migrations/0023_user_remove_pb_fields.py
ddugovic/omgwords-agent
4f9b7632a3c6e10985b77de9f91ce323857b4ec2
[ "MIT" ]
null
null
null
omgwords-agent/migrations/0023_user_remove_pb_fields.py
ddugovic/omgwords-agent
4f9b7632a3c6e10985b77de9f91ce323857b4ec2
[ "MIT" ]
null
null
null
omgwords-agent/migrations/0023_user_remove_pb_fields.py
ddugovic/omgwords-agent
4f9b7632a3c6e10985b77de9f91ce323857b4ec2
[ "MIT" ]
null
null
null
# Generated by Django 2.2.4 on 2020-04-03 04:59 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('omgwords-agent', '0022_populate_scorepb'), ] operations = [ migrations.RemoveField( model_name='user', name='ntsc_pb', ), migrations.RemoveField( model_name='user', name='ntsc_pb_19', ), migrations.RemoveField( model_name='user', name='ntsc_pb_19_updated_at', ), migrations.RemoveField( model_name='user', name='ntsc_pb_updated_at', ), migrations.RemoveField( model_name='user', name='pal_pb', ), migrations.RemoveField( model_name='user', name='pal_pb_updated_at', ), ]
23.342105
52
0.529876
85
887
5.270588
0.4
0.28125
0.348214
0.401786
0.633929
0.633929
0.633929
0.633929
0.205357
0
0
0.040422
0.358512
887
37
53
23.972973
0.746924
0.050733
0
0.580645
1
0
0.164286
0.05
0
0
0
0
0
1
0
false
0
0.032258
0
0.129032
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
773926e3c66baaa7fdc6d72eb50466a565b178a8
211
py
Python
api/serializers.py
ReaperZ0v/music-recommender-rest-api
d503052f293b47e78ed3dceb60301ef198a63475
[ "MIT" ]
1
2021-07-24T19:21:42.000Z
2021-07-24T19:21:42.000Z
api/serializers.py
ReaperZ0v/music-recommender-rest-api
d503052f293b47e78ed3dceb60301ef198a63475
[ "MIT" ]
null
null
null
api/serializers.py
ReaperZ0v/music-recommender-rest-api
d503052f293b47e78ed3dceb60301ef198a63475
[ "MIT" ]
null
null
null
from rest_framework import serializers from . import models class RecommenderSerializer(serializers.ModelSerializer): class Meta: model = models.Album fields = ('title', 'artist', 'genre')
26.375
57
0.7109
21
211
7.095238
0.761905
0
0
0
0
0
0
0
0
0
0
0
0.199052
211
8
58
26.375
0.881657
0
0
0
0
0
0.075472
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
773a4476f54664d59d2880df6577ccbfbdd382d7
4,044
py
Python
terminator/search.py
IBM/regression-transformer
dfc5a48fbc30022a15c1ba542ef15fb61651c1e7
[ "MIT" ]
3
2022-02-06T12:09:56.000Z
2022-02-09T08:12:43.000Z
terminator/search.py
IBM/regression-transformer
dfc5a48fbc30022a15c1ba542ef15fb61651c1e7
[ "MIT" ]
null
null
null
terminator/search.py
IBM/regression-transformer
dfc5a48fbc30022a15c1ba542ef15fb61651c1e7
[ "MIT" ]
1
2022-02-13T19:04:52.000Z
2022-02-13T19:04:52.000Z
"""Decoding utilities.""" import torch import transformers from torch import nn from .utils import get_device class Search(nn.Module): """Base search class.""" def __init__(self, *args, **kwargs): super().__init__() self.device = get_device() def forward(self, logits: torch.Tensor) -> object: """ Error handling. Args: logits: torch.Tensor (Tensor): the model's logits. (batch_size, length, vocabulary_size) Returns: object: the search output. """ if not len(logits.shape) == 3: raise ValueError(f"Logits need to be 3D Tensor, was: {logits.shape}") if not type(logits) == torch.Tensor: raise TypeError(f"Logits need to be torch.Tensor, was: {type(logits)}") def step(self, logits: torch.Tensor) -> object: """ Error handling. Args: logits: torch.Tensor (Tensor): the model's logits. (batch_size, vocabulary_size) Returns: object: the search output. """ if len(logits.shape) > 3: raise ValueError(f"Logits need to be 2D or 3D Tensor, was: {logits.shape}") if not type(logits) == torch.Tensor: raise TypeError(f"Logits need to be torch.Tensor, was: {type(logits)}") class GreedySearch(Search): """"Greedy search.""" def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) def forward(self, logits: torch.Tensor) -> torch.Tensor: """ Perform the greedy search. Args: logits: torch.Tensor (Tensor): the model's logits. (batch_size, length, vocabulary_size) Returns: torch.Tensor: the token indexes selected. (batch_size, length) """ super().forward(logits) return torch.argmax(logits, 2) def step(self, logits: torch.Tensor) -> torch.Tensor: """ Perform a greedy search step. Args: logits (torch.Tensor): the model's logits. (batch_size, vocabulary_size) Returns: torch.Tensor: the token indexes for all the batch. (batch_size, 1). """ super().step(logits) return torch.argmax(logits, 1, keepdim=True) class SamplingSearch(Search): """"Sampling search.""" def __init__(self, temperature: float = 1.0, *args, **kwargs): """ Initialize the sampling search. Args: temperature (float, optional): temperature parameter. Defaults to 1.0, a.k.a., no temperature. Temperature < 1 results in a more descriminative softmax, > 1 in a flatter distribution. """ super().__init__(*args, **kwargs) self.temperature = temperature def forward(self, logits: torch.Tensor) -> torch.Tensor: """ Perform the sampling search. Args: logits: torch.Tensor (Tensor): the model's logits. (batch_size, length, vocabulary_size) Returns: torch.Tensor: the token indexes selected. (batch_size, length) """ super().forward(logits) probabilities = torch.softmax(logits.div(self.temperature), 2) return torch.stack( [torch.multinomial(probability, 1) for probability in probabilities] ).squeeze(dim=-1) def step(self, logits: torch.Tensor) -> torch.Tensor: """ Perform a sampling search step. Args: logits (torch.Tensor): the model's logits. (batch_size, vocabulary_size) Returns: torch.Tensor: the token indexes for all the batch. (batch_size, 1). """ super().step(logits) probabilities = torch.softmax(logits.div(self.temperature), 1) return torch.stack( [torch.multinomial(probability, 1) for probability in probabilities] ) SEARCH_FACTORY = {"greedy": GreedySearch, "sample": SamplingSearch}
31.107692
87
0.58185
447
4,044
5.167785
0.212528
0.114286
0.10303
0.054545
0.74329
0.723377
0.716017
0.690043
0.627706
0.627706
0
0.007102
0.30366
4,044
129
88
31.348837
0.81321
0.36276
0
0.454545
0
0
0.101743
0
0
0
0
0
0
1
0.204545
false
0
0.090909
0
0.454545
0
0
0
0
null
0
0
0
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
4
773d3c9430b7cd21a08ccb111b7aae9cabff7525
136
py
Python
apiaiWebhookSerializer/request.py
dusterherz/apiai-python-webhook-objects
e3f7ec54a1889af84941ae26fed2fcbd44664b6d
[ "MIT" ]
2
2017-04-28T12:34:05.000Z
2017-05-03T16:01:48.000Z
apiaiWebhookSerializer/request.py
dusterherz/apiai-python-webhook-serializer
e3f7ec54a1889af84941ae26fed2fcbd44664b6d
[ "MIT" ]
null
null
null
apiaiWebhookSerializer/request.py
dusterherz/apiai-python-webhook-serializer
e3f7ec54a1889af84941ae26fed2fcbd44664b6d
[ "MIT" ]
null
null
null
import json from addict import Dict class Request: def __init__(self, data): self.__dict__.update(Dict(json.loads(data)))
17
52
0.705882
19
136
4.631579
0.684211
0
0
0
0
0
0
0
0
0
0
0
0.191176
136
7
53
19.428571
0.8
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.4
0
0.8
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
774d1fab9bd1958ff65a2095000d7ee992d16d20
66
py
Python
simulator/__init__.py
AlphaLambdaMuPi/AlphaPiAr
f1b6cf4eda6afcd9d65d0db5f54ad38953679d5f
[ "MIT" ]
null
null
null
simulator/__init__.py
AlphaLambdaMuPi/AlphaPiAr
f1b6cf4eda6afcd9d65d0db5f54ad38953679d5f
[ "MIT" ]
null
null
null
simulator/__init__.py
AlphaLambdaMuPi/AlphaPiAr
f1b6cf4eda6afcd9d65d0db5f54ad38953679d5f
[ "MIT" ]
null
null
null
# simulator from .main import run_server __all__ = [run_server]
11
28
0.757576
9
66
4.888889
0.777778
0.409091
0
0
0
0
0
0
0
0
0
0
0.166667
66
5
29
13.2
0.8
0.136364
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
6239eb33536ce99d0405142a10d99839541abe72
32
py
Python
cogeo_mosaic_plugins/scripts/__init__.py
developmentseed/cogeo-mosaic-plugins
b5217fd493f765215f42a3119193da9cb396397a
[ "MIT" ]
2
2021-01-11T17:23:55.000Z
2021-01-21T00:41:17.000Z
cogeo_mosaic_plugins/scripts/__init__.py
developmentseed/cogeo-mosaic-plugins
b5217fd493f765215f42a3119193da9cb396397a
[ "MIT" ]
2
2021-01-11T19:31:44.000Z
2021-01-22T02:01:50.000Z
cogeo_mosaic_plugins/scripts/__init__.py
developmentseed/cogeo-mosaic-plugins
b5217fd493f765215f42a3119193da9cb396397a
[ "MIT" ]
1
2021-01-24T07:17:29.000Z
2021-01-24T07:17:29.000Z
"""cogeo_mosaic_plugins cli."""
16
31
0.71875
4
32
5.25
1
0
0
0
0
0
0
0
0
0
0
0
0.0625
32
1
32
32
0.7
0.78125
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
623c2af61d57923753cdc6f882f46387f441734f
545
py
Python
instant/tests/test_utils.py
synw/django-instant
693b5da5064a4822a3620ef0d078fac07e3d41a2
[ "MIT" ]
103
2016-08-30T16:15:41.000Z
2022-03-01T18:22:34.000Z
instant/tests/test_utils.py
synw/django-instant
693b5da5064a4822a3620ef0d078fac07e3d41a2
[ "MIT" ]
22
2016-10-31T10:51:07.000Z
2021-05-31T11:44:49.000Z
instant/tests/test_utils.py
synw/django-instant
693b5da5064a4822a3620ef0d078fac07e3d41a2
[ "MIT" ]
13
2017-01-20T22:05:41.000Z
2021-07-26T13:53:28.000Z
from .base import InstantBaseTest from instant.init import ensure_channel_is_private class InstantTestUtils(InstantBaseTest): def test_ensure_channel_is_private(self): name = ensure_channel_is_private("$chan") self.assertEqual(name, "$chan") name = ensure_channel_is_private("chan") self.assertEqual(name, "$chan") name = ensure_channel_is_private("ns:$chan") self.assertEqual(name, "ns:$chan") name = ensure_channel_is_private("ns:chan") self.assertEqual(name, "ns:$chan")
34.0625
52
0.697248
66
545
5.469697
0.287879
0.216066
0.249307
0.365651
0.609418
0.609418
0.609418
0.609418
0.609418
0.609418
0
0
0.188991
545
15
53
36.333333
0.816742
0
0
0.333333
0
0
0.091743
0
0
0
0
0
0.333333
1
0.083333
false
0
0.166667
0
0.333333
0
0
0
0
null
1
1
1
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
6241df608ca00d7e5961730cfc6b7d1bc6794cac
195
py
Python
tools/make/setup_nanomsg.py
synthetic-sky/Synth
0a29fd6aa9a723328c5e5c6c63c9532340409964
[ "MIT" ]
1
2021-07-11T08:44:08.000Z
2021-07-11T08:44:08.000Z
tools/make/setup_nanomsg.py
synthetic-sky/Synth
0a29fd6aa9a723328c5e5c6c63c9532340409964
[ "MIT" ]
null
null
null
tools/make/setup_nanomsg.py
synthetic-sky/Synth
0a29fd6aa9a723328c5e5c6c63c9532340409964
[ "MIT" ]
null
null
null
import sh sh.cd ("ext/deps/") sh.wget ("http://download.nanomsg.org/nanomsg-0.3-beta.tar.gz") sh.tar ("xzf", "nanomsg-0.3-beta.tar.gz") sh.cd ("nanomsg-0.3-beta") sh.sh ("configure") sh.make ()
21.666667
63
0.651282
38
195
3.342105
0.473684
0.188976
0.212598
0.307087
0.314961
0.314961
0.314961
0
0
0
0
0.03352
0.082051
195
8
64
24.375
0.675978
0
0
0
0
0
0.569231
0.117949
0
0
0
0
0
1
0
true
0
0.142857
0
0.142857
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
6244e8aa34d145c42362dbcbb48589e94a319b85
9,213
py
Python
test/test_pycw_client.py
davidhwyllie/findNeighbour4
d42e10711e59e93ebf0e798fbb1598929f662c9c
[ "MIT" ]
null
null
null
test/test_pycw_client.py
davidhwyllie/findNeighbour4
d42e10711e59e93ebf0e798fbb1598929f662c9c
[ "MIT" ]
14
2021-11-26T14:43:25.000Z
2022-03-22T00:39:17.000Z
test/test_pycw_client.py
davidhwyllie/findNeighbour4
d42e10711e59e93ebf0e798fbb1598929f662c9c
[ "MIT" ]
null
null
null
""" runs unittest for pycw_client A component of the findNeighbour4 system for bacterial relatedness monitoring Copyright (C) 2021 David Wyllie david.wyllie@phe.gov.uk repo: https://github.com/davidhwyllie/findNeighbour4 This program is free software: you can redistribute it and/or modify it under the terms of the MIT License as published by the Free Software Foundation. See <https://opensource.org/licenses/MIT>, and the LICENSE file. """ import unittest import requests from catwalk.pycw_client import CatWalk from findn.mongoStore import fn3persistence ## persistence unit tests UNITTEST_MONGOCONN: str = "mongodb://localhost" # unit tests class test_cwclient(unittest.TestCase): """starts server, and shuts it down""" def setUp(self): """cw_binary_filepath must point to the catwalk server and mask & reference files to the relevant data files. Note: requires CW_BINARY_FILEPATH environment variable to point to the catwalk binary.""" self.cw = CatWalk( cw_binary_filepath=None, reference_name="H37RV", reference_filepath="reference/TB-ref.fasta", mask_filepath="reference/TB-exclude-adaptive.txt", max_n_positions=130000, bind_host="localhost", bind_port=5999, ) # stop the server if it is running self.cw.stop() self.assertFalse(self.cw.server_is_running()) self.cw.start() self.assertTrue(self.cw.server_is_running()) def teardown(self): self.cw.stop() pass class test_cwclient_1(test_cwclient): """tests server startup, shutdown, info(), and the server_is_running method. Shuts down **any catwalk server** running initially""" def runTest(self): self.cw.stop() self.assertFalse(self.cw.server_is_running()) self.cw.start() self.assertTrue(self.cw.server_is_running()) # try to start another one. Should refuse to do so, and ignore the request. # if it does not, and 2 are started, server_is_running() will raise an error. self.cw.start() self.assertTrue(self.cw.server_is_running()) self.assertIsInstance(self.cw.info(), dict) self.cw.stop() self.assertFalse(self.cw.server_is_running()) class test_cwclient_2(test_cwclient): """tests insert""" def runTest(self): # two sequences are similar to each other payload1 = { "A": [100000, 100001, 100002], "G": [], "T": [], "C": [], "N": [20000, 20001, 20002], } payload2 = { "A": [100003, 100004, 100005], "G": [], "T": [], "C": [], "N": [20000, 20001, 20002], } # one is 10000 nt different payload3 = { "A": list(range(110000, 120000)), "G": [], "T": [], "C": [], "N": [20000, 20001, 20002], } res = self.cw.add_sample_from_refcomp("guid1", payload1) self.assertEqual(res, 201) res = self.cw.add_sample_from_refcomp("guid2", payload2) self.assertEqual(res, 201) res = self.cw.add_sample_from_refcomp("guid2", payload2) # insert twice self.assertEqual(res, 200) res = self.cw.add_sample_from_refcomp("guid3", payload3) # insert once self.assertEqual(res, 201) self.assertEqual(self.cw.neighbours("guid1"), [("guid2", 6)]) self.assertEqual(self.cw.neighbours("guid2"), [("guid1", 6)]) self.assertEqual(self.cw.neighbours("guid3"), []) # should be empty self.assertEqual( self.cw.neighbours("guid1", distance=7), [("guid2", 6)] ) # should be guid2 self.assertEqual( self.cw.neighbours("guid1", distance=6), [("guid2", 6)] ) # should be guid2 self.assertEqual(self.cw.neighbours("guid1", distance=5), []) # should be empty with self.assertRaises(requests.exceptions.HTTPError): res = self.cw.neighbours("guid4") # should raise 404 class test_cwclient_3(test_cwclient): """tests list_samples""" def runTest(self): payload1 = { "A": [1000, 1001, 1002], "G": [], "T": [], "C": [], "N": [20000, 20001, 20002], } payload2 = { "A": [1003, 1004, 1005], "G": [], "T": [], "C": [], "N": [20000, 20001, 20002], } self.cw.add_sample_from_refcomp("guid1", payload1) self.cw.add_sample_from_refcomp("guid2", payload2) self.assertEqual( set(self.cw.sample_names()), set(["guid1", "guid2"]) ) # order doesn't matter class test_cwclient_4(test_cwclient): """tests remove_sample""" def runTest(self): payload1 = { "A": [1000, 1001, 1002], "G": [], "T": [], "C": [], "N": [20000, 20001, 20002], } payload2 = { "A": [1003, 1004, 1005], "G": [], "T": [], "C": [], "N": [20000, 20001, 20002], } self.cw.add_sample_from_refcomp("guid1", payload1) self.cw.add_sample_from_refcomp("guid2", payload2) self.assertEqual( set(self.cw.sample_names()), set(["guid1", "guid2"]) ) # order doesn't matter self.cw.remove_sample("guid1") self.assertEqual( set(self.cw.sample_names()), set(["guid2"]) ) # order doesn't matter self.cw.remove_sample("guid2") self.assertEqual(set(self.cw.sample_names()), set([])) # order doesn't matter # add guid2 again self.cw.add_sample_from_refcomp("guid2", payload2) self.assertEqual( set(self.cw.sample_names()), set(["guid2"]) ) # order doesn't matter class test_cwclient_lockmanager(unittest.TestCase): """tests impact of provision of invalid vs. valid lockmanager""" def runTest(self): """cw_binary_filepath must point to the catwalk server and mask & reference files to the relevant data files. Shuts down **any catwalk server** running initially. Note: requires CW_BINARY_FILEPATH environment variable to point to the catwalk binary.""" # invalid lock manager: pass an integer instead of a fn3persistence object with self.assertRaises(TypeError): CatWalk( cw_binary_filepath=None, reference_name="H37RV", reference_filepath="reference/TB-ref.fasta", mask_filepath="reference/TB-exclude-adaptive.txt", max_n_positions=130000, bind_host="localhost", bind_port=5999, lockmanager=6, ) p = fn3persistence(connString=UNITTEST_MONGOCONN, debug=2) CatWalk( cw_binary_filepath=None, reference_name="H37RV", reference_filepath="reference/TB-ref.fasta", mask_filepath="reference/TB-exclude-adaptive.txt", max_n_positions=130000, bind_host="localhost", bind_port=5999, lockmanager=p, ) class test_cwclient_p(unittest.TestCase): """starts server, and shuts it down""" def setUp(self): """cw_binary_filepath must point to the catwalk server and mask & reference files to the relevant data files. Note: requires CW_BINARY_FILEPATH environment variable to point to the catwalk binary.""" p = fn3persistence(connString=UNITTEST_MONGOCONN, debug=2) p.lock(2, "Test") # test lock print(p.lock_status(2)) p.unlock(2, force=True) # unlock any existing locks print(p.lock_status(2)) self.cw = CatWalk( cw_binary_filepath=None, reference_name="H37RV", reference_filepath="reference/TB-ref.fasta", mask_filepath="reference/TB-exclude-adaptive.txt", max_n_positions=130000, bind_host="localhost", bind_port=5999, lockmanager=p, ) # stop the server if it is running self.cw.stop() self.assertFalse(self.cw.server_is_running()) self.cw.start() self.assertTrue(self.cw.server_is_running()) def teardown(self): self.cw.stop() pass class test_cwclient_1p(test_cwclient_p): """tests server startup, shutdown, info(), and the server_is_running method using a lock manager.""" def runTest(self): self.cw.stop() self.assertFalse(self.cw.server_is_running()) self.cw.start() self.assertTrue(self.cw.server_is_running()) # try to start another one. Should refuse to do so, and ignore the request. # if it does not, and 2 are started, server_is_running() will raise an error. self.cw.start() self.assertTrue(self.cw.server_is_running()) self.assertIsInstance(self.cw.info(), dict) self.cw.stop() self.assertFalse(self.cw.server_is_running())
31.55137
117
0.588191
1,081
9,213
4.879741
0.219241
0.063697
0.045498
0.031848
0.745213
0.738768
0.71981
0.664455
0.650806
0.63128
0
0.053018
0.289591
9,213
291
118
31.659794
0.752941
0.247259
0
0.723404
0
0
0.069634
0.03232
0
0
0
0
0.164894
1
0.053191
false
0.010638
0.021277
0
0.117021
0.010638
0
0
0
null
0
0
0
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
6255b4f738d7d567f781cf1efeddb2caf04976aa
1,130
py
Python
release/stubs.min/System/Windows/Controls/__init___parts/StickyNoteType.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/System/Windows/Controls/__init___parts/StickyNoteType.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/System/Windows/Controls/__init___parts/StickyNoteType.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
class StickyNoteType(Enum, IComparable, IFormattable, IConvertible): """ Specifies whether a System.Windows.Controls.StickyNoteControl accepts text or ink. enum StickyNoteType,values: Ink (1),Text (0) """ def __eq__(self, *args): """ x.__eq__(y) <==> x==yx.__eq__(y) <==> x==yx.__eq__(y) <==> x==y """ pass def __format__(self, *args): """ __format__(formattable: IFormattable,format: str) -> str """ pass def __ge__(self, *args): pass def __gt__(self, *args): pass def __init__(self, *args): """ x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """ pass def __le__(self, *args): pass def __lt__(self, *args): pass def __ne__(self, *args): pass def __reduce_ex__(self, *args): pass def __str__(self, *args): pass Ink = None Text = None value__ = None
24.565217
221
0.571681
128
1,130
4.304688
0.367188
0.145191
0.15245
0.163339
0.23412
0.23412
0.23412
0.205082
0.205082
0.205082
0
0.002497
0.29115
1,130
45
222
25.111111
0.685393
0.40531
0
0.416667
0
0
0
0
0
0
0
0
0
1
0.416667
false
0.416667
0
0
0.583333
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
4
6255be46358ba39e017a422c842b6e7ff0c440de
30
py
Python
data/studio21_generated/introductory/4502/starter_code.py
vijaykumawat256/Prompt-Summarization
614f5911e2acd2933440d909de2b4f86653dc214
[ "Apache-2.0" ]
null
null
null
data/studio21_generated/introductory/4502/starter_code.py
vijaykumawat256/Prompt-Summarization
614f5911e2acd2933440d909de2b4f86653dc214
[ "Apache-2.0" ]
null
null
null
data/studio21_generated/introductory/4502/starter_code.py
vijaykumawat256/Prompt-Summarization
614f5911e2acd2933440d909de2b4f86653dc214
[ "Apache-2.0" ]
null
null
null
def tribonacci(signature,n):
15
28
0.766667
4
30
5.75
1
0
0
0
0
0
0
0
0
0
0
0
0.1
30
2
29
15
0.851852
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
4
62757283bc8c614d3a09527bbae2bd731be2c626
723
py
Python
laserchicken/tools/test_cli.py
eEcoLiDAR/eEcoLiDAR
f5c4e772e4893f7242ed0b10aa17ac7e693a55a0
[ "Apache-2.0" ]
20
2018-07-05T22:21:47.000Z
2022-03-01T00:24:36.000Z
laserchicken/tools/test_cli.py
ElsevierSoftwareX/SOFTX_2019_325
dcc8b5a9661664957fdfab4a5089cb5bfadc92ca
[ "Apache-2.0" ]
104
2017-09-07T08:06:49.000Z
2018-04-16T09:17:18.000Z
laserchicken/tools/test_cli.py
vishalbelsare/laserchicken
961d970e636e6eac3dfb969c36df9a5131ffd3d1
[ "Apache-2.0" ]
8
2020-02-13T08:55:36.000Z
2021-07-28T16:04:08.000Z
import pytest from click.testing import CliRunner from . import cli @pytest.fixture def runner(): return CliRunner() # def test_cli(runner): # result = runner.invoke(cli.main) # assert result.exit_code == 0 # assert not result.exception # assert result.output.strip() == 'Hello.' # # # def test_cli_with_option(runner): # result = runner.invoke(cli.main, ['--', './testdata/AHN2.las']) # assert not result.exception # assert result.exit_code == 0 # assert result.output.strip() == '' # # # def test_cli_with_arg(runner): # result = runner.invoke(cli.main, ['Chicken']) # assert result.exit_code == 0 # assert not result.exception # assert result.output.strip() == ''
24.1
69
0.655602
91
723
5.098901
0.340659
0.155172
0.064655
0.155172
0.603448
0.603448
0.293103
0.293103
0.293103
0.293103
0
0.006873
0.195021
723
29
70
24.931034
0.790378
0.773167
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
true
0
0.5
0.166667
0.833333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
1
1
0
0
4
628937abe3030f2dbc1d069a50b73646b662e606
347
py
Python
001146StepikPyBegin/Stepik001146PyBeginch02p02st05TASK02_20200605.py
SafonovMikhail/python_000577
739f764e80f1ca354386f00b8e9db1df8c96531d
[ "Apache-2.0" ]
null
null
null
001146StepikPyBegin/Stepik001146PyBeginch02p02st05TASK02_20200605.py
SafonovMikhail/python_000577
739f764e80f1ca354386f00b8e9db1df8c96531d
[ "Apache-2.0" ]
null
null
null
001146StepikPyBegin/Stepik001146PyBeginch02p02st05TASK02_20200605.py
SafonovMikhail/python_000577
739f764e80f1ca354386f00b8e9db1df8c96531d
[ "Apache-2.0" ]
null
null
null
''' Stepik001146PyBeginch02p02st05TASK02_20200605.py В популярном сериале «Остаться в живых» использовалась последовательность чисел 4 8 15 16 23 42, которая принесла героям удачу и помогла сорвать джекпот в лотерее. Напишите программу, которая выводит данную последовательность чисел с одним пробелом между ними. ''' print(4, 8, 15, 16, 23, 42)
38.555556
96
0.806916
49
347
5.734694
0.77551
0.163701
0.02847
0.042705
0.071174
0.071174
0
0
0
0
0
0.14
0.135447
347
8
97
43.375
0.79
0.893372
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
4
6562f0479d4d15698ad6a1900981101b0e7c8b06
1,171
py
Python
python/156.py
kylekanos/project-euler-1
af7089356a4cea90f8ef331cfdc65e696def6140
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
python/156.py
kylekanos/project-euler-1
af7089356a4cea90f8ef331cfdc65e696def6140
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
python/156.py
kylekanos/project-euler-1
af7089356a4cea90f8ef331cfdc65e696def6140
[ "BSD-2-Clause-FreeBSD" ]
1
2019-09-17T00:55:58.000Z
2019-09-17T00:55:58.000Z
#!/usr/bin/env python def verify(x,y): z=0 for i in xrange(1,x+1): j=i while j: z += ((j%10)==y) j //= 10 print z==x # derivation... # q(n) == 9*q(n-1) + p(n-1) # p(n) == 10^n + 9*q(n-1) + p(n-1) # q(n) == p(n) - 10^n # p(n) == 10^n + 9*q(n-1) + p(n-1) # == 10^n + 10*p(n-1) - 9*10^(n-1) # == 2*10^n + 100*p(n-1) - 2*9*10^(n-1) # . # . # . # == 10^n + n*(10^n - 9*10^(n-1)) # == 10^n + n*10^(n-1) ans = 0 def f(i, n, m, c, v, start): global ans if i<0: if n-1==m: ans += m return # TODO (smacke): verify these bounds if m-n > 10**(i+1): return if n-m > 10**(i+1)*c + 10**(i+1) + (i+1)*10**i: return # without this we will keep add the same value # more than once if not start: f(i-1, n, m, c, v, False) for j in xrange(1,10): n += 10**i m += c*10**i + i*10**(max(0,i-1)) if j-1==v: m += 10**i if j==v: f(i-1, n, m, c+1, v, False) else: f(i-1, n, m, c, v, False) for i in xrange(0, 20): # 1, 20 for j in xrange(1, 10): f(i,0,0,0,j, True) print ans
21.290909
58
0.403074
247
1,171
1.910931
0.230769
0.055085
0.03178
0.033898
0.264831
0.252119
0.182203
0.182203
0.165254
0.050847
0
0.13413
0.35696
1,171
54
59
21.685185
0.492696
0.351836
0
0.068966
0
0
0
0
0
0
0
0.018519
0
0
null
null
0
0
null
null
0.068966
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
1
0
1
0
0
0
0
0
0
0
0
4
65a8aba119285057be8dda3f6b6ee53f66d2177a
183
py
Python
access enviroment variable.py
Max143/Python_programs
5084900844d7f6c39a255a6cfb8fa5120a189026
[ "MIT" ]
null
null
null
access enviroment variable.py
Max143/Python_programs
5084900844d7f6c39a255a6cfb8fa5120a189026
[ "MIT" ]
null
null
null
access enviroment variable.py
Max143/Python_programs
5084900844d7f6c39a255a6cfb8fa5120a189026
[ "MIT" ]
null
null
null
import os # Acces all environment variables print(os.environ) # Acess a particular enviroment variable print(os.environ['HOME']) print(os.enviorn['PATH'])
10.166667
41
0.655738
22
183
5.454545
0.727273
0.175
0.233333
0
0
0
0
0
0
0
0
0
0.240437
183
17
42
10.764706
0.863309
0.382514
0
0
0
0
0.087912
0
0
0
0
0
0
1
0
true
0
0.25
0
0.25
0.75
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
4
65bdab250ca2a5d866d95dbfec48859c9a497936
101
py
Python
peter_lists/origami/apps.py
pvize1/peter_lists
77e9f30cfc45f500e059b7b163db541335180332
[ "MIT" ]
null
null
null
peter_lists/origami/apps.py
pvize1/peter_lists
77e9f30cfc45f500e059b7b163db541335180332
[ "MIT" ]
8
2021-05-12T05:53:42.000Z
2022-03-31T04:08:18.000Z
peter_lists/origami/apps.py
pvize1/peter_lists
77e9f30cfc45f500e059b7b163db541335180332
[ "MIT" ]
null
null
null
from django.apps import AppConfig class OrigamiConfig(AppConfig): name = 'peter_lists.origami'
16.833333
33
0.772277
12
101
6.416667
0.916667
0
0
0
0
0
0
0
0
0
0
0
0.148515
101
5
34
20.2
0.895349
0
0
0
0
0
0.188119
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
65bed6b27fb09278255417490b2ca29c1e72873b
374
py
Python
servers/models.py
GDGSNF/My-Business
792bb13a5b296260e5de7e03fba6445a13922851
[ "MIT" ]
21
2020-08-29T14:32:13.000Z
2021-08-28T21:40:32.000Z
servers/models.py
GDGSNF/My-Business
792bb13a5b296260e5de7e03fba6445a13922851
[ "MIT" ]
1
2020-10-11T21:56:15.000Z
2020-10-11T21:56:15.000Z
servers/models.py
yezz123/My-Business
792bb13a5b296260e5de7e03fba6445a13922851
[ "MIT" ]
5
2021-09-11T23:31:10.000Z
2022-03-06T20:29:59.000Z
from django.db import models class Server(models.Model): uid = models.IntegerField(primary_key=True) root_password = models.CharField(max_length=32) services = models.TextField() created_at = models.DateTimeField(auto_now_add=True) updated_at = models.DateTimeField(auto_now=True) def get_services(self): return self.services.splitlines()
28.769231
56
0.743316
48
374
5.604167
0.6875
0.05948
0.156134
0.185874
0.208178
0
0
0
0
0
0
0.006369
0.160428
374
12
57
31.166667
0.850318
0
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
false
0.111111
0.111111
0.111111
1
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
1
1
0
0
4
65c6c5e7d1ee86911da6fc2e6c6162a7d2ca179c
278
py
Python
distutilazy/command/clean_pyc.py
farzadghanei/distutilazy
c3c7d062f7cb79abb7677cac57dd752127ff78e7
[ "MIT" ]
null
null
null
distutilazy/command/clean_pyc.py
farzadghanei/distutilazy
c3c7d062f7cb79abb7677cac57dd752127ff78e7
[ "MIT" ]
2
2016-06-16T14:12:48.000Z
2018-07-22T12:44:21.000Z
distutilazy/command/clean_pyc.py
farzadghanei/distutilazy
c3c7d062f7cb79abb7677cac57dd752127ff78e7
[ "MIT" ]
null
null
null
""" distutilazy.command.clean_pyc ----------------------------- Command to clean compiled python files :license: MIT. For more details see LICENSE file or https://opensource.org/licenses/MIT """ import distutilazy.clean class clean_pyc(distutilazy.clean.CleanPyc): pass
18.533333
51
0.694245
34
278
5.617647
0.705882
0.08377
0
0
0
0
0
0
0
0
0
0
0.118705
278
14
52
19.857143
0.779592
0.672662
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.333333
0.333333
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
1
0
0
4
028de7810051300b12a8d3cf9568e241166f39be
117
py
Python
run.py
inplat/aioapp-project-template
d555935c53f6544b79d0516e3f9f8c263f0f93fd
[ "MIT" ]
null
null
null
run.py
inplat/aioapp-project-template
d555935c53f6544b79d0516e3f9f8c263f0f93fd
[ "MIT" ]
286
2018-05-30T11:35:01.000Z
2022-03-27T23:37:24.000Z
run.py
inplat/aioapp-project-template
d555935c53f6544b79d0516e3f9f8c263f0f93fd
[ "MIT" ]
null
null
null
#!/usr/bin/env python3.6 import sys from myaioapp.cli import main if __name__ == "__main__": sys.exit(main())
13
29
0.683761
18
117
4
0.777778
0
0
0
0
0
0
0
0
0
0
0.020619
0.17094
117
8
30
14.625
0.721649
0.196581
0
0
0
0
0.086022
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
02955fb691547a72f855e1e10906265675e4a882
346
py
Python
account/tasks.py
bear-in-white-house/elephant
a30ecacb6ed3bba397e06a89e1cd28377d5f54f0
[ "Apache-2.0" ]
null
null
null
account/tasks.py
bear-in-white-house/elephant
a30ecacb6ed3bba397e06a89e1cd28377d5f54f0
[ "Apache-2.0" ]
null
null
null
account/tasks.py
bear-in-white-house/elephant
a30ecacb6ed3bba397e06a89e1cd28377d5f54f0
[ "Apache-2.0" ]
null
null
null
from django.utils.module_loading import import_string from elephant.celery import app from elephant.settings import MSG_PROVIDER obj = import_string(MSG_PROVIDER)() @app.task(bind=True, name='send_mag', queue='others') def send_msg(self, phone): obj.send_msg(phone) def verify_msg_code(code, phone): return obj.verify(code, phone)
20.352941
53
0.768786
53
346
4.830189
0.528302
0.09375
0
0
0
0
0
0
0
0
0
0
0.124277
346
16
54
21.625
0.844884
0
0
0
0
0
0.040462
0
0
0
0
0
0
1
0.222222
false
0
0.444444
0.111111
0.777778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
1
1
0
0
4
02dbe346992d6cc18c932829496e6fc7d46ce333
9,874
py
Python
api/market/models.py
bhaski-1234/innovaccer
4d389fd78417eeefa2f43de852bb614a3ff86182
[ "Unlicense" ]
null
null
null
api/market/models.py
bhaski-1234/innovaccer
4d389fd78417eeefa2f43de852bb614a3ff86182
[ "Unlicense" ]
null
null
null
api/market/models.py
bhaski-1234/innovaccer
4d389fd78417eeefa2f43de852bb614a3ff86182
[ "Unlicense" ]
null
null
null
from market import db,login_manager from flask_login import UserMixin @login_manager.user_loader def load_user(user_id): return Patients.query.get(int(user_id)) class Patients(db.Model, UserMixin): __tablename__ = 'patients' id = db.Column(db.Integer(), primary_key=True) fullname = db.Column(db.String(length=30), nullable=False, unique=True) email_address = db.Column(db.String(length=50), nullable=False, unique=True) password_hash = db.Column(db.String(length=600), nullable=False) uniq_id = db.Column(db.String(length=30), nullable=False, unique=True) # age = db.Column(db.Integer(), nullable=False, default=0) # Gender = db.Column(db.String(length=6), nullable=False, unique=True) @property def password(self): return self.password @password.setter def password(self, plain_text_password): self.password_hash = plain_text_password def check_password_correction(self, attempted_password): return (self.password_hash, attempted_password) class Doctor(db.Model, UserMixin): __tablename__ = 'admin' id = db.Column(db.Integer(), primary_key=True) fullname = db.Column(db.String(length=30), nullable=False, unique=True) email_address = db.Column(db.String(length=50), nullable=False, unique=True) password_hash = db.Column(db.String(length=60), nullable=False) # class Item(db.Model): # id = db.Column(db.Integer(), primary_key=True) # name = db.Column(db.String(length=30), nullable=False, unique=True) # price = db.Column(db.Integer(), nullable=False) # barcode = db.Column(db.String(length=12), nullable=False, unique=True) # description = db.Column(db.String(length=1024), nullable=False, unique=True) # owner= db.Column(db.Integer(),db.ForeignKey('users.id')) # def __repr__(self): # return f'Item {self.name}' # def buy(self, user): # self.owner = user.id # user.budget += self.price # db.session.commit() # def sell(self, user): # self.owner = None # user.budget -= self.price # db.session.commit() class medSummary(db.Model): __tablename__ = 'medSummary' #id for the entry id=db.Column(db.Integer(),primary_key=True) #id for the prescription. Can be used to list all meds prescribed in one session to a patient. prescriptionID=db.Column(db.String(), nullable=False) #userID, used to identify patient. userID=db.Column(db.String(), nullable=False) #docID, used to identify doctor. docID=db.Column(db.String(), nullable=False) #OrderID is to identify the batch of order. OrderID=db.Column(db.String(), nullable=False) medItem=db.Column(db.String(), nullable=False) medName=db.Column(db.String(), nullable=True) medForm=db.Column(db.String(), nullable=False) medCategory=db.Column(db.String(), nullable=False) medStrengthNumerator=db.Column(db.Integer(), nullable=False) medStrengthNumeratorUnit=db.Column(db.String(length=2), nullable=False) medStrengthDenominator=db.Column(db.Float(), nullable=False) medStrengthDenominatorUnit=db.Column(db.String(length=2), nullable=False) medUnitofPres=db.Column(db.String(), nullable=False) medConcentration=db.Column(db.String(), nullable=False) medManufacturer=db.Column(db.String(), nullable=False) medBatchId=db.Column(db.String(), nullable=False) medExpiry=db.Column(db.DateTime(), nullable=False) medAmount=db.Column(db.Float(), nullable=False) medAmountUnit=db.Column(db.String(length=2), nullable=False) medAlternateAmount=db.Column(db.Float(), nullable=True) medAlternateAmountUnit=db.Column(db.String(length=2), nullable=True) medRole=db.Column(db.String(), nullable=False) medDescription=db.Column(db.String(), nullable=False) medDoseAmount=db.Column(db.Float(), nullable=False) medDoseAmountLower=db.Column(db.Float(), nullable=True) medDoseAmountUpper=db.Column(db.Float(), nullable=True) medDoseUnit=db.Column(db.String(length=2), nullable=True) medDoseFormula=db.Column(db.String(), nullable=False) medDoseDescription=db.Column(db.String(), nullable=False) medFrequency=db.Column(db.Float(), nullable=False) medFrequencyUnit=db.Column(db.String(), nullable=False) medFrequencyLower=db.Column(db.Float(), nullable=True) medFrequencyUnitLower=db.Column(db.String(), nullable=True) medFrequencyUpper=db.Column(db.Float(), nullable=True) medFrequencyUnitUpper=db.Column(db.String(), nullable=True) medFrequencyInterval=db.Column(db.DateTime(), nullable=False) medDailyTime=db.Column(db.Time(), nullable=False) medDailyimeLower=db.Column(db.Time(), nullable=True) medDailyTimeUpper=db.Column(db.Time(), nullable=True) medDailyTimeDescription=db.Column(db.String(), nullable=False) medEventName=db.Column(db.String(), nullable=True) medEventOffset=db.Column(db.String(), nullable=True) medOn=db.Column(db.String(), nullable=True) medOff=db.Column(db.String(), nullable=True) medRepetitions=db.Column(db.Integer(), nullable=True) medAdminRoute=db.Column(db.String(), nullable=True) medTimeRepInterval= db.Column(db.String(), nullable=True) medNonDailyFrequency=db.Column(db.Integer(), nullable=True) medNonDailyUnit=db.Column(db.String(), nullable=True) medNonDailyLowerFrequency=db.Column(db.Integer(), nullable=True) medNonDailyLowerUnit=db.Column(db.String(), nullable=True) medNonDailyUpperFrequency=db.Column(db.Integer(), nullable=True) medNonDailyUpperUnit=db.Column(db.String(), nullable=True) # medNonDailyDate=db.column(db.DateTime(), nullable=True) # medNonDailyDoW=db.column(db.String(length=9), nullable=True) # medNonDailyDoM=db.column(db.Integer(), nullable=True) # medNonDailyDoMLower=db.column(db.Integer(), nullable=True) # medNonDailyDoMUpper=db.column(db.Integer(), nullable=True) # medNonDailyTimingDescription=db.column(db.String(), nullable=True) # medNonDailyEventName=db.column(db.String(), nullable=True) # medNonDailyTimeOffset=db.column(db.DateTime(), nullable=True) # medNonDailyOn=db.column(db.Date(), nullable=True) # medNonDailyOff=db.column(db.Date(), nullable=True) # medNonDailyRepetitions=db.column(db.Integer(), nullable=True) # # Moving to exclusions from Summary # globalExclusion=db.Column(db.String(),nullable=True) # absenceStatement=db.Column(db.String(), nullable=True) # protocolUpdated=db.Column(db.String(), nullable=True) class Prescription(db.Model): __tablename__='prescriptions' prescriptionID=db.Column(db.String(), nullable=False, primary_key=True) medItem=db.Column(db.String()) prepSubstanceName=db.Column(db.String()) prepForm=db.Column(db.String()) prepStrength=db.Column(db.Float()) prepStrengthUnit=db.Column(db.String()) diluentAmount=db.Column(db.Float()) diluentUnit=db.Column(db.String()) ingredientSubstanceName=db.Column(db.String()) ingredientForm=db.Column(db.String()) ingredientCategory=db.Column(db.String()) ingredientStrength=db.Column(db.Float()) ingredientStrengthUnit=db.Column(db.String()) ingredientDescription=db.Column(db.String()) ingredientAmount=db.Column(db.Float()) ingredientAmountUnit=db.Column(db.String()) ingredientRole=db.Column(db.String()) medDescription=db.Column(db.String()) medRoute=db.Column(db.String()) medDosageInstructions=db.Column(db.String()) doseAmount=db.Column(db.Float()) doseAmountLower=db.Column(db.Float()) doseAmountUpper=db.Column(db.Float()) doseUnit=db.Column(db.String()) doseTimingFreq=db.Column(db.Float()) doseTimingFreqUnit=db.Column(db.String()) doseTimingFreqLower=db.Column(db.Float()) doseTimingFreqLowerUnit=db.Column(db.String()) doseTimingFreqUpper=db.Column(db.Float()) doseTimingFreqUpperUnit=db.Column(db.String()) doseTimingInterval=db.Column(db.String()) doseSpecificTime=db.Column(db.Time()) doseNamedTimeEvent=db.Column(db.String()) doseExactTimingCritical=db.Column(db.Boolean()) doseAsCritical=db.Column(db.Boolean()) doseAsRequiredCriterion=db.Column(db.String()) infusionAdminRateQ=db.Column(db.Float()) infusionAdminRateUnit=db.Column(db.String()) infusionAdminRateT=db.Column(db.String()) doseAdminDuration=db.Column(db.String()) doseDirectionDuration1=db.Column(db.String()) doseDirectionDuration2=db.Column(db.String()) directionRepetitionInterval=db.Column(db.String()) directionSpecificDate=db.Column(db.Date()) directionSpecificTime=db.Column(db.Time()) directionSpecificDoW=db.Column(db.Integer()) directionSpecificDoM=db.Column(db.Integer()) directionEventName=db.Column(db.String()) directionEventStartInterval=db.Column(db.String()) safetyMaxAmount=db.Column(db.Float()) safetyMaxAmountUnit=db.Column(db.String()) safetyAllowedPeriod=db.Column(db.String()) overrideReason=db.Column(db.String()) orderAdditionalInstructions=db.Column(db.String()) orderReason=db.Column(db.String()) courseStatus=db.Column(db.String()) courseDiscontinuedDate=db.Column(db.Date()) courseDiscontinuedTime=db.Column(db.Time()) courseWrittenDate=db.Column(db.Date()) courseWrittenTime=db.Column(db.Time()) authNumberofRepeatsAllowed=db.Column(db.Integer()) authValidityPeriodDate=db.Column(db.Date()) authValidityPeriodTime=db.Column(db.Time()) dispenseInstruction=db.Column(db.String()) dispenseAmountDescription=db.Column(db.String()) dispenseAmount=db.Column(db.Float()) dispenseAmountUnits=db.Column(db.String()) dispenseDurationofSupply=db.Column(db.String()) orderComment=db.Column(db.String()) orderID=db.Column(db.String(), unique=True) db.create_all() db.session.commit()
46.356808
98
0.72463
1,196
9,874
5.942308
0.201505
0.174476
0.218095
0.211622
0.3944
0.364289
0.120163
0.098494
0.064162
0.064162
0
0.00383
0.127405
9,874
213
99
46.356808
0.821031
0.190399
0
0.044872
0
0
0.004526
0
0
0
0
0
0
1
0.025641
false
0.057692
0.012821
0.019231
0.961538
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
4
02f9bba97cd795693a5725fff5a4a353ddd92dec
2,191
py
Python
py3canvas/tests/quizzes.py
tylerclair/py3canvas
7485d458606b65200f0ffa5bbe597a9d0bee189f
[ "MIT" ]
null
null
null
py3canvas/tests/quizzes.py
tylerclair/py3canvas
7485d458606b65200f0ffa5bbe597a9d0bee189f
[ "MIT" ]
null
null
null
py3canvas/tests/quizzes.py
tylerclair/py3canvas
7485d458606b65200f0ffa5bbe597a9d0bee189f
[ "MIT" ]
null
null
null
"""Quizzes API Tests for Version 1.0. This is a testing template for the generated QuizzesAPI Class. """ import unittest import requests import secrets from py3canvas.apis.quizzes import QuizzesAPI from py3canvas.apis.quizzes import Quiz from py3canvas.apis.quizzes import Quizpermissions class TestQuizzesAPI(unittest.TestCase): """Tests for the QuizzesAPI.""" def setUp(self): self.client = QuizzesAPI(secrets.instance_address, secrets.access_token) def test_list_quizzes_in_course(self): """Integration test for the QuizzesAPI.list_quizzes_in_course method.""" course_id = None # Change me!! r = self.client.list_quizzes_in_course(course_id, search_term=None) def test_get_single_quiz(self): """Integration test for the QuizzesAPI.get_single_quiz method.""" course_id = None # Change me!! id = None # Change me!! r = self.client.get_single_quiz(course_id, id) def test_create_quiz(self): """Integration test for the QuizzesAPI.create_quiz method.""" # This method utilises the POST request method and will make changes to the Canvas instance. This needs consideration. pass def test_edit_quiz(self): """Integration test for the QuizzesAPI.edit_quiz method.""" # This method utilises the PUT request method and will make changes to the Canvas instance. This needs consideration. pass def test_delete_quiz(self): """Integration test for the QuizzesAPI.delete_quiz method.""" course_id = None # Change me!! id = None # Change me!! r = self.client.delete_quiz(course_id, id) def test_reorder_quiz_items(self): """Integration test for the QuizzesAPI.reorder_quiz_items method.""" # This method utilises the POST request method and will make changes to the Canvas instance. This needs consideration. pass def test_validate_quiz_access_code(self): """Integration test for the QuizzesAPI.validate_quiz_access_code method.""" # This method utilises the POST request method and will make changes to the Canvas instance. This needs consideration. pass
37.775862
126
0.709722
292
2,191
5.160959
0.239726
0.035833
0.084937
0.10219
0.658925
0.599204
0.470471
0.350365
0.350365
0.350365
0
0.002909
0.215427
2,191
57
127
38.438596
0.873764
0.492013
0
0.321429
1
0
0
0
0
0
0
0
0
1
0.285714
false
0.142857
0.214286
0
0.535714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
4
02ff2ae7b3e5f96cf815a6751b0688fdda2a323a
652
py
Python
controller/scheduler/faulty.py
public/deis
546d2bb117ba817ea533a595cbffea3de355f366
[ "Apache-2.0" ]
1
2015-11-08T11:16:46.000Z
2015-11-08T11:16:46.000Z
controller/scheduler/faulty.py
thomasdavis/deis
02120302926fb3fa18f7275859d6a252c63f4a60
[ "Apache-2.0" ]
null
null
null
controller/scheduler/faulty.py
thomasdavis/deis
02120302926fb3fa18f7275859d6a252c63f4a60
[ "Apache-2.0" ]
1
2019-12-16T18:56:52.000Z
2019-12-16T18:56:52.000Z
class FaultyClient(object): """A faulty scheduler that will always fail""" def __init__(self, cluster_name, hosts, auth, domain, options): pass def setUp(self): pass def tearDown(self): pass def create(self, name, image, command='', template=None, port=5000): raise Exception() def start(self, name): raise Exception() def stop(self, name): raise Exception() def destroy(self, name): raise Exception() def run(self, name, image, command): raise Exception() def attach(self, name): raise Exception() SchedulerClient = FaultyClient
20.375
72
0.608896
74
652
5.297297
0.5
0.122449
0.216837
0.22449
0.191327
0
0
0
0
0
0
0.008547
0.282209
652
31
73
21.032258
0.82906
0.06135
0
0.45
0
0
0
0
0
0
0
0
0
1
0.45
false
0.15
0
0
0.5
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
4
f302b96c50a7af4e9262226de746d4c7b4b38bdc
103
py
Python
django/common/scripts/utils/select_max.py
arkhn/fhir-river
a12179c34fad131d16dedc20c61297ed83d805e6
[ "Apache-2.0" ]
42
2020-03-25T16:47:30.000Z
2022-01-31T21:26:38.000Z
django/common/scripts/utils/select_max.py
arkhn/fhir-river
a12179c34fad131d16dedc20c61297ed83d805e6
[ "Apache-2.0" ]
367
2020-04-08T12:46:34.000Z
2022-02-16T01:15:32.000Z
django/common/scripts/utils/select_max.py
arkhn/fhir-river
a12179c34fad131d16dedc20c61297ed83d805e6
[ "Apache-2.0" ]
3
2020-05-14T08:24:46.000Z
2021-08-04T05:00:16.000Z
def select_max(*args): """Merging script which selects the maximal element""" return max(args)
25.75
58
0.699029
14
103
5.071429
0.857143
0.197183
0
0
0
0
0
0
0
0
0
0
0.184466
103
3
59
34.333333
0.845238
0.466019
0
0
0
0
0
0
0
0
0
0
0
1
0.5
true
0
0
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
0
0
0
0
0
4
b87d4ccb828839d12932646b279f314627fb8b63
21,683
py
Python
mesh_models.py
lightningbird/Taichi_Ray_Tracing_Exercises
66fd19dc200cd68727a343679184a0c5e153881e
[ "MIT" ]
2
2022-01-17T08:27:24.000Z
2022-01-21T00:16:33.000Z
mesh_models.py
lightningbird/Taichi_Ray_Tracing_Exercises
66fd19dc200cd68727a343679184a0c5e153881e
[ "MIT" ]
null
null
null
mesh_models.py
lightningbird/Taichi_Ray_Tracing_Exercises
66fd19dc200cd68727a343679184a0c5e153881e
[ "MIT" ]
null
null
null
import taichi as ti PI = 3.14159265 Inf = 10e8 Epsilon = 1e-5 @ti.data_oriented class Torus: def __init__(self, center, inside_point, up_normal, inside_radius, nU, nV, material, color, write_to_obj_file=False, obj_filename=''): # up_normal is the normal of the plane passing through the center of torus # splitting its interface into concentric circles # inside_point is one point that is on central line inside the torus body self.center = center self.inside_point = inside_point self.up_normal = up_normal self.outside_R = (inside_point - center).norm() self.inside_r = inside_radius self.material = material self.color = color self.nU = nU self.nV = nV self.write_to_obj_file = write_to_obj_file self.obj_filename = obj_filename self.num_polygons = self.nU * self.nV self.vertex1 = ti.Vector.field(3, dtype = ti.f32) self.vertex2 = ti.Vector.field(3, dtype = ti.f32) self.vertex3 = ti.Vector.field(3, dtype = ti.f32) self.vertex4 = ti.Vector.field(3, dtype = ti.f32) self.normal = ti.Vector.field(3, dtype = ti.f32) self.polygons_node = ti.root.dense(ti.ij, (self.nU, self.nV)) self.polygons_node.place(self.vertex1, self.vertex2, self.vertex3, self.vertex4, self.normal) self.x_axis = (self.inside_point - self.center).normalized() self.y_axis = self.up_normal.normalized() self.z_axis = self.x_axis.cross(self.y_axis) self.make_surface_mesh() if self.write_to_obj_file == True: self.write_mesh_to_file() self.aabb_faces = [] # xmin, xmax, ymin, ymax, zmin, zmax self.aabb_boundingbox() def aabb_boundingbox(self): # build axis align bounding box in general case vts = [] radius = self.outside_R + self.inside_r upper_c = self.center + self.inside_r * self.y_axis lower_c = self.center - self.inside_r * self.y_axis offset1 = -radius * self.x_axis - radius * self.z_axis offset2 = -radius * self.x_axis + radius * self.z_axis offset3 = radius * self.x_axis + radius * self.z_axis offset4 = radius * self.x_axis - radius * self.z_axis vts = [upper_c+offset1, upper_c+offset2, upper_c+offset3, upper_c+offset4, lower_c+offset1, lower_c+offset2, lower_c+offset3, lower_c+offset4] for i in range(3): min_val, max_val = vts[0][i], vts[0][i] for j in range(8): if vts[j][i] < min_val: min_val = vts[j][i] if vts[j][i] > max_val: max_val = vts[j][i] self.aabb_faces.append(min_val) self.aabb_faces.append(max_val) def make_surface_mesh(self): for i in range(self.nU): for j in range(self.nV): theta = i * 2*PI/self.nU theta2 = theta + 2*PI/self.nU phi = j * 2*PI/self.nV phi2 = phi + 2*PI/self.nV xx_axis = ti.cos(theta)*self.x_axis + ti.sin(theta)*self.z_axis xx_axis2 = ti.cos(theta2)*self.x_axis + ti.sin(theta2)*self.z_axis oc = self.center + self.outside_R * xx_axis oc2 = self.center + self.outside_R * xx_axis2 pt1 = oc + self.inside_r * (ti.cos(phi)*xx_axis + ti.sin(phi)*self.y_axis) # i, j pt2 = oc + self.inside_r * (ti.cos(phi2)*xx_axis + ti.sin(phi2)*self.y_axis) # i, j+1 pt3 = oc2 + self.inside_r * (ti.cos(phi2)*xx_axis2 + ti.sin(phi2)*self.y_axis) # i+1, j+1 pt4 = oc2 + self.inside_r * (ti.cos(phi)*xx_axis2 + ti.sin(phi)*self.y_axis) # i+1, j self.vertex1[i, j] = pt1 self.vertex2[i, j] = pt2 self.vertex3[i, j] = pt3 self.vertex4[i, j] = pt4 self.normal[i, j] = (pt2 - pt1).cross(pt3 - pt2).normalized() def write_mesh_to_file(self): # vertex index starts from 1 with open(self.obj_filename, 'w') as f: f.write('# torus \n') f.write('# number of vertices is ' + str(self.num_polygons) + '\n') f.write('# number of faces is ' + str(self.num_polygons) + '\n') for i in range(self.nU): for j in range(self.nV): pt1 = self.vertex1[i, j] f.write('v ' + str(pt1[0]) + ' ' + str(pt1[1]) + ' ' + str(pt1[2]) + '\n') for i in range(self.nU): for j in range(self.nV): i2, j2 = i+1, j+1 if i2==self.nU: i2 = 0 if j2==self.nV: j2 = 0 id1 = i*self.nV + j + 1 id2 = i*self.nV + j2 + 1 id3 = i2*self.nV + j2 + 1 id4 = i2*self.nV + j + 1 f.write('f ' + str(id1) + ' ' + str(id2) + ' ' + str(id3) + ' ' + str(id4) + '\n' ) @ti.func def inside_check(self, i, j, point): v1 = self.vertex1[i, j] - point v2 = self.vertex2[i, j] - point v3 = self.vertex3[i, j] - point v4 = self.vertex4[i, j] - point n1 = v1.cross(v2) n2 = v2.cross(v3) n3 = v3.cross(v4) n4 = v4.cross(v1) isInside = False if n1.dot(n2) > 0 and n1.dot(n3) > 0 and n1.dot(n4)>0: isInside = True return isInside @ti.func def hit_quad(self, i, j, ray, tmin=0.001, tmax=10e8): d = ray.direction o = ray.origin n = self.normal[i, j] p = self.vertex1[i, j] is_hit = False root = 0.0 hit_point = ti.Vector([0.0, 0.0, 0.0]) hit_point_normal = -n front_face = False if ti.abs(d.dot(n)) > 0: root = n.dot(p - o) / d.dot(n) if root >= tmin and root <= tmax: hit_point = ray.at(root) if self.inside_check(i, j, hit_point): is_hit = True if d.dot(n) < 0: front_face = True hit_point_normal = n return is_hit, root, hit_point, hit_point_normal, front_face, self.material, self.color @ti.func def hit(self, ray, tmin=0.001, tmax=10e8): is_hit = False root = 0.0 hit_point = ti.Vector([0.0, 0.0, 0.0]) hit_point_normal = ti.Vector([0.0, 0.0, 0.0]) front_face = False closest_t = tmax # intersect with aabb first dir = ray.direction origin = ray.origin insect_with_box = False box_tmin = tmin box_tmax = tmax for i in ti.static(range(3)): if dir[i] > Epsilon or dir[i] < -Epsilon: t0 = (self.aabb_faces[2*i] - origin[i]) / dir[i] t1 = (self.aabb_faces[2*i+1] - origin[i]) / dir[i] if t0>t1: t0, t1 = t1, t0 if t0 > box_tmin: box_tmin = t0 if t1 < box_tmax: box_tmax = t1 if box_tmin < box_tmax and box_tmax>tmin and box_tmin < closest_t: insect_with_box = True if insect_with_box == True: # iterate over polygon faces for i in range(self.nU): for j in range(self.nV): is_hit_tmp, root_tmp, hit_point_tmp, hit_point_normal_tmp, front_face_tmp, material_tmp, color_tmp = self.hit_quad(i, j, ray, tmin, closest_t) if is_hit_tmp: closest_t = root_tmp is_hit = is_hit_tmp hit_point = hit_point_tmp hit_point_normal = hit_point_normal_tmp front_face = front_face_tmp return is_hit, root, hit_point, hit_point_normal, front_face, self.material, self.color @ti.data_oriented class Quad_Mesh: def __init__(self, obj_filename, material, color, center=ti.Vector([0.0, 0.0, 0.0]), scale=1.0, tx=0.0, ty=0.0, tz=0.0): self.obj_filename = obj_filename self.material = material self.color = color self.center = center self.scale = scale self.tx = tx self.ty = ty self.tz = tz self.max_num_polygons= 4000 self.num_polygons = 0 self.vertex1 = ti.Vector.field(3, dtype = ti.f32) self.vertex2 = ti.Vector.field(3, dtype = ti.f32) self.vertex3 = ti.Vector.field(3, dtype = ti.f32) self.vertex4 = ti.Vector.field(3, dtype = ti.f32) self.normal = ti.Vector.field(3, dtype = ti.f32) self.polygons_node = ti.root.dense(ti.i, self.max_num_polygons) self.polygons_node.place(self.vertex1, self.vertex2, self.vertex3, self.vertex4, self.normal) self.aabb_faces = ti.Vector.field(6, dtype=ti.f32, shape=()) # xmin, xmax, ymin, ymax, zmin, zmax self.read_obj_file() @ti.pyfunc def vertex_update_aabb(self, v, xmin, xmax, ymin, ymax, zmin, zmax): if v[0] < xmin: xmin = v[0] if v[0] > xmax: xmax = v[0] if v[1] < ymin: ymin = v[1] if v[1] > ymax: ymax = v[1] if v[2] < zmin: zmin = v[2] if v[2] > zmax: zmax = v[2] return xmin, xmax, ymin, ymax, zmin, zmax def read_obj_file(self): # vertex id in obj file starts from 1 with open(self.obj_filename, 'r') as f: lines = f.readlines() vts = [] num_faces = 0 xmin, xmax, ymin, ymax, zmin, zmax = Inf, -Inf, Inf, -Inf, Inf, -Inf for i in range(len(lines)): line = lines[i] x = line.split(' ') if x[0] == 'v': vx = float(x[1]) vy = float(x[2]) vz = float(x[3]) vnew = ti.Vector([vx, vy, vz]) - self.center vnew = self.scale * vnew vnew = vnew + self.center + ti.Vector([self.tx, self.ty, self.tz]) vts.append(vnew) xmin, xmax, ymin, ymax, zmin, zmax = self.vertex_update_aabb(vnew, xmin, xmax, ymin, ymax, zmin, zmax) if x[0] == 'f': num_faces +=1 self.aabb_faces[None] = ti.Vector([xmin, xmax, ymin, ymax, zmin, zmax]) assert num_faces <= self.max_num_polygons fid = 0 for i in range(len(lines)): line = lines[i] y = line.split(' ') if y[0] == 'f': vid1 = int(y[1]) vid2 = int(y[2]) vid3 = int(y[3]) vid4 = int(y[4]) self.vertex1[fid] = vts[vid1 - 1] self.vertex2[fid] = vts[vid2 - 1] self.vertex3[fid] = vts[vid3 - 1] self.vertex4[fid] = vts[vid4 - 1] self.normal[fid] = (vts[vid2-1] - vts[vid1-1]).cross(vts[vid3-1] - vts[vid2-1]).normalized() fid += 1 self.num_polygons = fid @ti.func def inside_check(self, i, point): v1 = self.vertex1[i] - point v2 = self.vertex2[i] - point v3 = self.vertex3[i] - point v4 = self.vertex4[i] - point n1 = v1.cross(v2) n2 = v2.cross(v3) n3 = v3.cross(v4) n4 = v4.cross(v1) isInside = False if n1.dot(n2) > 0 and n1.dot(n3) > 0 and n1.dot(n4)>0: isInside = True return isInside @ti.func def hit_quad(self, i, ray, tmin=0.001, tmax=10e8): d = ray.direction o = ray.origin n = self.normal[i] p = self.vertex1[i] is_hit = False root = 0.0 hit_point = ti.Vector([0.0, 0.0, 0.0]) hit_point_normal = -n front_face = False if ti.abs(d.dot(n)) > 0: root = n.dot(p - o) / d.dot(n) if root >= tmin and root <= tmax: hit_point = ray.at(root) if self.inside_check(i, hit_point): is_hit = True if d.dot(n) < 0: front_face = True hit_point_normal = n return is_hit, root, hit_point, hit_point_normal, front_face, self.material, self.color @ti.func def hit(self, ray, tmin=0.001, tmax=10e8): is_hit = False root = 0.0 hit_point = ti.Vector([0.0, 0.0, 0.0]) hit_point_normal = ti.Vector([0.0, 0.0, 0.0]) front_face = False closest_t = tmax # intersect with aabb first dir = ray.direction origin = ray.origin insect_with_box = False box_tmin = tmin box_tmax = tmax for i in ti.static(range(3)): if dir[i] > Epsilon or dir[i] < -Epsilon: t0 = (self.aabb_faces[None][2*i] - origin[i]) / dir[i] t1 = (self.aabb_faces[None][2*i+1] - origin[i]) / dir[i] if t0>t1: t0, t1 = t1, t0 if t0 > box_tmin: box_tmin = t0 if t1 < box_tmax: box_tmax = t1 if box_tmin < box_tmax and box_tmax>tmin and box_tmin < closest_t: insect_with_box = True # iterate over polygon faces if insect_with_box == True: for i in range(self.num_polygons): is_hit_tmp, root_tmp, hit_point_tmp, hit_point_normal_tmp, front_face_tmp, material_tmp, color_tmp = self.hit_quad(i, ray, tmin, closest_t) if is_hit_tmp: closest_t = root_tmp is_hit = is_hit_tmp hit_point = hit_point_tmp hit_point_normal = hit_point_normal_tmp front_face = front_face_tmp return is_hit, root, hit_point, hit_point_normal, front_face, self.material, self.color @ti.data_oriented class Triangle_Mesh: def __init__(self, obj_filename, material, color, center=ti.Vector([0.0, 0.0, 0.0]), scale=1.0, tx=0.0, ty=0.0, tz=0.0): self.obj_filename = obj_filename self.material = material self.color = color self.max_num_polygons= 10000 self.num_polygons = 0 self.center = center self.scale = scale self.tx = tx self.ty = ty self.tz = tz self.vertex1 = ti.Vector.field(3, dtype = ti.f32) self.vertex2 = ti.Vector.field(3, dtype = ti.f32) self.vertex3 = ti.Vector.field(3, dtype = ti.f32) self.normal = ti.Vector.field(3, dtype = ti.f32) self.polygons_node = ti.root.dense(ti.i, self.max_num_polygons) self.polygons_node.place(self.vertex1, self.vertex2, self.vertex3, self.normal) self.large_aabb_faces = ti.Vector.field(6, dtype = ti.f32, shape=()) # xmin, xmax, ymin, ymax, zmin, zmax self.num_small_aabb = 50 self.small_aabb_faces = ti.Vector.field(6, dtype = ti.f32, shape=self.num_small_aabb) self.num_polygons_per_box = 1 self.read_obj_file() self.num_polygons_per_box = self.num_polygons // self.num_small_aabb + 1 self.build_small_aabb() @ti.pyfunc def vertex_update_aabb(self, v, xmin, xmax, ymin, ymax, zmin, zmax): if v[0] < xmin: xmin = v[0] if v[0] > xmax: xmax = v[0] if v[1] < ymin: ymin = v[1] if v[1] > ymax: ymax = v[1] if v[2] < zmin: zmin = v[2] if v[2] > zmax: zmax = v[2] return xmin, xmax, ymin, ymax, zmin, zmax def read_obj_file(self): # vertex id in obj file starts from 1 with open(self.obj_filename, 'r') as f: lines = f.readlines() xmin, xmax, ymin, ymax, zmin, zmax = Inf, -Inf, Inf, -Inf, Inf, -Inf vts = [] num_faces = 0 for i in range(len(lines)): line = lines[i] x = line.split(' ') if x[0] == 'v': vx = float(x[1]) vy = float(x[2]) vz = float(x[3]) vnew = ti.Vector([vx, vy, vz]) - self.center vnew = self.scale * vnew vnew = vnew + self.center + ti.Vector([self.tx, self.ty, self.tz]) vts.append(vnew) xmin, xmax, ymin, ymax, zmin, zmax = self.vertex_update_aabb(vnew, xmin, xmax, ymin, ymax, zmin, zmax) if x[0] == 'f': num_faces += 1 self.large_aabb_faces[None] = ti.Vector([xmin, xmax, ymin, ymax, zmin, zmax]) assert num_faces <= self.max_num_polygons fid = 0 for i in range(len(lines)): line = lines[i] y = line.split(' ') if y[0] == 'f': vid1 = int(y[1]) vid2 = int(y[2]) vid3 = int(y[3]) self.vertex1[fid] = vts[vid1 - 1] self.vertex2[fid] = vts[vid2 - 1] self.vertex3[fid] = vts[vid3 - 1] self.normal[fid] = (vts[vid2-1] - vts[vid1-1]).cross(vts[vid3-1] - vts[vid2-1]).normalized() fid += 1 self.num_polygons = fid @ti.kernel def build_small_aabb(self): for bi in range(self.num_small_aabb): bxmin, bymin, bzmin = Inf, Inf, Inf bxmax, bymax, bzmax = -Inf, -Inf, -Inf fi_start = bi * self.num_polygons_per_box fi_end = min(fi_start + self.num_polygons_per_box, self.num_polygons) for fi in range(fi_start, fi_end): bxmin, bxmax, bymin, bymax, bzmin, bzmax = self.vertex_update_aabb(self.vertex1[fi], bxmin, bxmax, bymin, bymax, bzmin, bzmax) bxmin, bxmax, bymin, bymax, bzmin, bzmax = self.vertex_update_aabb(self.vertex2[fi], bxmin, bxmax, bymin, bymax, bzmin, bzmax) bxmin, bxmax, bymin, bymax, bzmin, bzmax = self.vertex_update_aabb(self.vertex3[fi], bxmin, bxmax, bymin, bymax, bzmin, bzmax) self.small_aabb_faces[bi] = ti.Vector([bxmin, bxmax, bymin, bymax, bzmin, bzmax]) @ti.func def inside_check(self, i, point): v1 = self.vertex1[i] - point v2 = self.vertex2[i] - point v3 = self.vertex3[i] - point n1 = v1.cross(v2) n2 = v2.cross(v3) n3 = v3.cross(v1) isInside = False if n1.dot(n2) > 0 and n1.dot(n3) > 0: isInside = True return isInside @ti.func def hit_triangle(self, i, ray, tmin=0.001, tmax=10e8): d = ray.direction o = ray.origin n = self.normal[i] p = self.vertex1[i] is_hit = False root = 0.0 hit_point = ti.Vector([0.0, 0.0, 0.0]) hit_point_normal = -n front_face = False if ti.abs(d.dot(n)) > 0: root = n.dot(p - o) / d.dot(n) if root >= tmin and root <= tmax: hit_point = ray.at(root) if self.inside_check(i, hit_point): is_hit = True if d.dot(n) < 0: front_face = True hit_point_normal = n return is_hit, root, hit_point, hit_point_normal, front_face, self.material, self.color @ti.func def aabb_intersect(self, ray, aabb_face, tmin=0.001, tmax=10e8): intersect_with_box = False dir = ray.direction origin = ray.origin box_tmin = tmin box_tmax = tmax for i in ti.static(range(3)): if dir[i] > Epsilon or dir[i] < -Epsilon: t0 = (aabb_face[2*i] - origin[i]) / dir[i] t1 = (aabb_face[2*i+1] - origin[i]) / dir[i] if t0>t1: t0, t1 = t1, t0 if t0 > box_tmin: box_tmin = t0 if t1 < box_tmax: box_tmax = t1 if box_tmin < box_tmax and box_tmax>tmin and box_tmin < tmax: intersect_with_box = True return intersect_with_box @ti.func def hit(self, ray, tmin=0.001, tmax=10e8): is_hit = False root = 0.0 hit_point = ti.Vector([0.0, 0.0, 0.0]) hit_point_normal = ti.Vector([0.0, 0.0, 0.0]) front_face = False closest_t = tmax # check if intersect with large aabb intersect_with_large_box = self.aabb_intersect(ray, self.large_aabb_faces[None], tmin, closest_t) if intersect_with_large_box == True: # check if intersect with smaller aabb for i_box in range(self.num_small_aabb): intersect_with_small_box = self.aabb_intersect(ray, self.small_aabb_faces[i_box], tmin, closest_t) if intersect_with_small_box == True: # check if intersect with triangles inside this small aabb # iterate over triangles i_start = i_box * self.num_polygons_per_box i_end = ti.min(i_start+ self.num_polygons_per_box, self.num_polygons) for i in range(i_start, i_end): is_hit_tmp, root_tmp, hit_point_tmp, hit_point_normal_tmp, front_face_tmp, material_tmp, color_tmp = self.hit_triangle(i, ray, tmin, closest_t) if is_hit_tmp: closest_t = root_tmp is_hit = is_hit_tmp hit_point = hit_point_tmp hit_point_normal = hit_point_normal_tmp front_face = front_face_tmp return is_hit, root, hit_point, hit_point_normal, front_face, self.material, self.color
41.618042
167
0.526126
3,101
21,683
3.51564
0.078362
0.012291
0.012108
0.012108
0.793157
0.754999
0.717483
0.689782
0.666575
0.657402
0
0.040979
0.357377
21,683
520
168
41.698077
0.741424
0.033575
0
0.702306
0
0
0.004061
0
0
0
0
0
0.004193
1
0.044025
false
0
0.002096
0
0.077568
0
0
0
0
null
0
0
0
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
b893285a765d5a3505a8088a2f30fa812af453ff
68
py
Python
im_python.py
zkqiang/awesome-python-indexes
a03b009cf2234bdb82a024f625cf07d30dfb8d45
[ "MIT" ]
81
2019-09-04T04:51:37.000Z
2022-03-11T02:54:19.000Z
im_python.py
zkqiang/awesome-python-index
a03b009cf2234bdb82a024f625cf07d30dfb8d45
[ "MIT" ]
null
null
null
im_python.py
zkqiang/awesome-python-index
a03b009cf2234bdb82a024f625cf07d30dfb8d45
[ "MIT" ]
19
2019-09-08T15:45:07.000Z
2022-03-14T06:21:16.000Z
if __name__ == '__main__': print('This is a python repository')
22.666667
40
0.676471
9
68
4.222222
1
0
0
0
0
0
0
0
0
0
0
0
0.191176
68
2
41
34
0.690909
0
0
0
0
0
0.514706
0
0
0
0
0
0
1
0
true
0
0
0
0
0.5
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
4
b8b8ecf1127561319e8b2ba362fdc33e05196ba0
97
py
Python
tupperware/exceptions.py
flpStrri/tupperware
23e241d49d56e5a94044258c5056bd9486e34c5f
[ "BSD-2-Clause" ]
4
2020-05-26T19:05:48.000Z
2021-06-28T15:30:21.000Z
tupperware/exceptions.py
flpStrri/tupperware
23e241d49d56e5a94044258c5056bd9486e34c5f
[ "BSD-2-Clause" ]
null
null
null
tupperware/exceptions.py
flpStrri/tupperware
23e241d49d56e5a94044258c5056bd9486e34c5f
[ "BSD-2-Clause" ]
null
null
null
class ImmutableStateError(Exception): """Raised when a container is forced to be mutated."""
32.333333
58
0.742268
12
97
6
1
0
0
0
0
0
0
0
0
0
0
0
0.154639
97
2
59
48.5
0.878049
0.494845
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
1
0
0
4
b2109ec78baca2435db154c7996da4ada8dade1b
122
py
Python
app/__init__.py
MarciaAndrea/atividade1_n2_marcia
f4227a21c008c2e791a28da6fdcac514827b624b
[ "MIT" ]
null
null
null
app/__init__.py
MarciaAndrea/atividade1_n2_marcia
f4227a21c008c2e791a28da6fdcac514827b624b
[ "MIT" ]
null
null
null
app/__init__.py
MarciaAndrea/atividade1_n2_marcia
f4227a21c008c2e791a28da6fdcac514827b624b
[ "MIT" ]
null
null
null
from flask import Flask app = Flask (__name__) app.config['DEBUG'] = True from app import views #from app import models
15.25
26
0.745902
19
122
4.578947
0.526316
0.16092
0.298851
0
0
0
0
0
0
0
0
0
0.172131
122
7
27
17.428571
0.861386
0.180328
0
0
0
0
0.050505
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
b22acf3da306f626e6f99e12c764c59759787409
446
py
Python
node_values.py
Hugo1991/TFM
11e9c08ac2b56820d8b741edee38ee04fb0c856a
[ "Apache-2.0" ]
null
null
null
node_values.py
Hugo1991/TFM
11e9c08ac2b56820d8b741edee38ee04fb0c856a
[ "Apache-2.0" ]
null
null
null
node_values.py
Hugo1991/TFM
11e9c08ac2b56820d8b741edee38ee04fb0c856a
[ "Apache-2.0" ]
null
null
null
class node_values: def __init__(self, iden, value): self.iden = iden self.value = value def get_iden(self): return self.iden def set_iden(self, iden): self.iden = iden def get_value(self): return self.value def set_value(self, value): self.value = value def __str__(self): iden = str(self.iden) value = str(self.value) return iden + ':' + value
20.272727
36
0.567265
58
446
4.137931
0.206897
0.233333
0.108333
0.141667
0
0
0
0
0
0
0
0
0.329596
446
21
37
21.238095
0.802676
0
0
0.25
0
0
0.002242
0
0
0
0
0
0
1
0.375
false
0
0
0.125
0.625
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
b2311466eb5435db2e068184a7e7015c9b2f0355
125
py
Python
python/python_fund/lists.py
yanrong/book_demo
20cd13f3c3507a11e826ebbf22bd1c7bcb36e06f
[ "Apache-2.0" ]
null
null
null
python/python_fund/lists.py
yanrong/book_demo
20cd13f3c3507a11e826ebbf22bd1c7bcb36e06f
[ "Apache-2.0" ]
null
null
null
python/python_fund/lists.py
yanrong/book_demo
20cd13f3c3507a11e826ebbf22bd1c7bcb36e06f
[ "Apache-2.0" ]
null
null
null
#prints s sentence in a centered "box" of correct width #note that the integer division operator (//) only works in python
25
66
0.752
20
125
4.7
0.95
0
0
0
0
0
0
0
0
0
0
0
0.184
125
4
67
31.25
0.921569
0.952
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
b233161373558bab9922ed14cc69db5f313c6bba
141
py
Python
odoo/custom/src/private/fieldservice_worker_geolocalize/models/__init__.py
mtelahun/odoo-geo
1473dabfa8bc082a552cbb88981635d9eb358dce
[ "BSL-1.0" ]
null
null
null
odoo/custom/src/private/fieldservice_worker_geolocalize/models/__init__.py
mtelahun/odoo-geo
1473dabfa8bc082a552cbb88981635d9eb358dce
[ "BSL-1.0" ]
null
null
null
odoo/custom/src/private/fieldservice_worker_geolocalize/models/__init__.py
mtelahun/odoo-geo
1473dabfa8bc082a552cbb88981635d9eb358dce
[ "BSL-1.0" ]
null
null
null
# Copyright (C) 2021 TREVI Software # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). # flake8: noqa from . import fsm_person
23.5
63
0.723404
23
141
4.391304
0.956522
0
0
0
0
0
0
0
0
0
0
0.057851
0.141844
141
5
64
28.2
0.77686
0.765957
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
b243056734ab7f2835b0251d03ede50c741756ca
151
py
Python
welcome.py
FHU-yezi/PostManageTools
b4bac6201f43a758ce18aafef1aebe684ab53009
[ "MIT" ]
null
null
null
welcome.py
FHU-yezi/PostManageTools
b4bac6201f43a758ce18aafef1aebe684ab53009
[ "MIT" ]
null
null
null
welcome.py
FHU-yezi/PostManageTools
b4bac6201f43a758ce18aafef1aebe684ab53009
[ "MIT" ]
null
null
null
import streamlit as st import config def main(): st.write("欢迎来到简书小岛管理平台!") if config.ISLAND_URL == None: st.write("请转到“设置”页面,填写小岛链接。")
21.571429
37
0.655629
22
151
4.454545
0.772727
0.142857
0
0
0
0
0
0
0
0
0
0
0.198676
151
7
37
21.571429
0.809917
0
0
0
0
0
0.197368
0
0
0
0
0
0
1
0.166667
true
0
0.333333
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
b250412f461177d40d5373c7038787eb941a673a
339
py
Python
bardhub/track/serializers.py
migdotcom/music-library
4648ea02e4b071c4a287eba09202045963992873
[ "MIT" ]
null
null
null
bardhub/track/serializers.py
migdotcom/music-library
4648ea02e4b071c4a287eba09202045963992873
[ "MIT" ]
null
null
null
bardhub/track/serializers.py
migdotcom/music-library
4648ea02e4b071c4a287eba09202045963992873
[ "MIT" ]
null
null
null
from .models import Track from rest_framework import serializers # Serializer class TrackSerializer(serializers.ModelSerializer): class Meta: model = Track fields = '__all__' class DeepTrackSerializer(serializers.ModelSerializer): class Meta: model = Track fields = '__all__' depth = 1
18.833333
55
0.684366
32
339
6.96875
0.5625
0.233184
0.278027
0.313901
0.484305
0.484305
0.484305
0.484305
0
0
0
0.003953
0.253687
339
17
56
19.941176
0.87747
0.029499
0
0.545455
0
0
0.042813
0
0
0
0
0
0
1
0
false
0
0.181818
0
0.545455
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
4
b26adc46b065c3de874ad915ded1dc015d0d2482
292
py
Python
Chapter06/method-overriding.py
PacktPublishing/Learning-Python-by-building-games
0713e6fc141b2cd201128560ae0c3b689b7d2116
[ "MIT" ]
25
2019-09-01T16:19:16.000Z
2021-12-20T07:08:35.000Z
Chapter06/method-overriding.py
PacktPublishing/Learning-Python-by-building-games.
0713e6fc141b2cd201128560ae0c3b689b7d2116
[ "MIT" ]
4
2019-08-27T19:45:48.000Z
2020-07-24T12:29:56.000Z
Chapter06/method-overriding.py
PacktPublishing/Learning-Python-by-building-games
0713e6fc141b2cd201128560ae0c3b689b7d2116
[ "MIT" ]
24
2019-06-01T18:31:07.000Z
2022-03-15T19:24:34.000Z
class Bird: def about(self): print("Species: Bird") def Dance(self): print("Not all but some birds can dance") class Peacock(Bird): def Dance(self): print("Peacock can dance") class Sparrow(Bird): def Dance(self): print("Sparrow can't dance")
22.461538
49
0.606164
40
292
4.425
0.425
0.158192
0.20339
0.271186
0.355932
0
0
0
0
0
0
0
0.267123
292
12
50
24.333333
0.827103
0
0
0.272727
0
0
0.277397
0
0
0
0
0
0
1
0.363636
false
0
0
0
0.636364
0.363636
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
b26dda666de547c605686d2415a31894dcdeb4ca
103
py
Python
gas_mileage_api/apps.py
jclaneve/gas-mileage-api
73046f6337563d023f73a47e4c73155d648bef14
[ "MIT" ]
null
null
null
gas_mileage_api/apps.py
jclaneve/gas-mileage-api
73046f6337563d023f73a47e4c73155d648bef14
[ "MIT" ]
null
null
null
gas_mileage_api/apps.py
jclaneve/gas-mileage-api
73046f6337563d023f73a47e4c73155d648bef14
[ "MIT" ]
null
null
null
from django.apps import AppConfig class GasMileageApiConfig(AppConfig): name = 'gas_mileage_api'
17.166667
37
0.786408
12
103
6.583333
0.916667
0
0
0
0
0
0
0
0
0
0
0
0.145631
103
5
38
20.6
0.897727
0
0
0
0
0
0.145631
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
b27ff4bcfcf7348aabd36ca3040852463702dbab
102
py
Python
anvil/errors.py
coiax/anvil-parser
712e3c32575003c6e36bd4339bfb476fb0ef631f
[ "MIT" ]
1
2021-03-11T05:25:21.000Z
2021-03-11T05:25:21.000Z
anvil/errors.py
coiax/anvil-parser
712e3c32575003c6e36bd4339bfb476fb0ef631f
[ "MIT" ]
null
null
null
anvil/errors.py
coiax/anvil-parser
712e3c32575003c6e36bd4339bfb476fb0ef631f
[ "MIT" ]
1
2022-03-16T21:24:07.000Z
2022-03-16T21:24:07.000Z
class OutOfBoundsCoordinates(ValueError): """Error used for when coordinates are out of bounds"""
34
59
0.764706
12
102
6.5
1
0
0
0
0
0
0
0
0
0
0
0
0.147059
102
2
60
51
0.896552
0.480392
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
1
0
0
4
b293056f63cade7c8fa21dd6dc23bbce851c5470
238
py
Python
venv/lib/python3.8/site-packages/oauth2/test/__init__.py
wjone005/Netflix_Tinder
92a167ccfaee96b15c36b2f70c2b2d5d7e43e069
[ "MIT" ]
120
2015-02-21T10:07:36.000Z
2021-05-05T17:31:06.000Z
venv/lib/python3.8/site-packages/oauth2/test/__init__.py
wjone005/Netflix_Tinder
92a167ccfaee96b15c36b2f70c2b2d5d7e43e069
[ "MIT" ]
27
2015-02-11T03:40:11.000Z
2019-06-28T18:05:50.000Z
venv/lib/python3.8/site-packages/oauth2/test/__init__.py
wjone005/Netflix_Tinder
92a167ccfaee96b15c36b2f70c2b2d5d7e43e069
[ "MIT" ]
51
2015-02-10T03:37:30.000Z
2021-12-17T10:45:25.000Z
import sys # Enables unit tests to work under Python 2.6 # Code copied from # https://github.com/facebook/tornado/blob/master/tornado/test/util.py if sys.version_info >= (2, 7): import unittest else: import unittest2 as unittest
23.8
70
0.739496
38
238
4.605263
0.842105
0
0
0
0
0
0
0
0
0
0
0.025
0.159664
238
9
71
26.444444
0.85
0.542017
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.6
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
a22d4daf4de0ac47f6fbaaf4474e8c3b5fabf7e7
67
py
Python
data/__init__.py
erichhhhho/DM6190_Courswork
036aae03ca7e6b2f53a9e82634c8f4ec0f45f0a5
[ "MIT" ]
2
2019-01-10T05:02:14.000Z
2019-05-27T04:46:41.000Z
data/__init__.py
erichhhhho/DM6190_Courswork
036aae03ca7e6b2f53a9e82634c8f4ec0f45f0a5
[ "MIT" ]
null
null
null
data/__init__.py
erichhhhho/DM6190_Courswork
036aae03ca7e6b2f53a9e82634c8f4ec0f45f0a5
[ "MIT" ]
null
null
null
import os DATA_PATH = os.path.dirname(os.path.realpath(__file__))
16.75
55
0.776119
11
67
4.272727
0.636364
0.255319
0
0
0
0
0
0
0
0
0
0
0.089552
67
3
56
22.333333
0.770492
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
a22e8618b21febb9efc6ebc93561860d46413e7d
136
py
Python
intake_bluesky_files/__init__.py
ronpandolfi/intake-bluesky-files
5dfd5550eae7c8788cf9c270973cc126983896ff
[ "BSD-3-Clause" ]
null
null
null
intake_bluesky_files/__init__.py
ronpandolfi/intake-bluesky-files
5dfd5550eae7c8788cf9c270973cc126983896ff
[ "BSD-3-Clause" ]
null
null
null
intake_bluesky_files/__init__.py
ronpandolfi/intake-bluesky-files
5dfd5550eae7c8788cf9c270973cc126983896ff
[ "BSD-3-Clause" ]
1
2019-03-25T13:00:25.000Z
2019-03-25T13:00:25.000Z
from .filehandlerplugin import FileHandlerPlugin from .filescatalog import FilesCatalog __all__ = ['FileHandlerPlugin', 'FilesCatalog']
34
48
0.838235
11
136
10
0.454545
0
0
0
0
0
0
0
0
0
0
0
0.088235
136
4
49
34
0.887097
0
0
0
0
0
0.211679
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
a231cba052dbf1def7bb22d15878e058dfdcb294
4,657
py
Python
fixture/contact.py
imukhina/python_training
9277da01743981e55f24b5678e97a476fd5f8ec5
[ "Apache-2.0" ]
null
null
null
fixture/contact.py
imukhina/python_training
9277da01743981e55f24b5678e97a476fd5f8ec5
[ "Apache-2.0" ]
null
null
null
fixture/contact.py
imukhina/python_training
9277da01743981e55f24b5678e97a476fd5f8ec5
[ "Apache-2.0" ]
null
null
null
class ContactHelper: def __init__(self, app): self.app = app def create(self, contact): wd = self.app.wd wd.find_element_by_link_text("add new").click() wd.find_element_by_name("firstname").click() wd.find_element_by_name("firstname").clear() wd.find_element_by_name("firstname").send_keys(contact.first) wd.find_element_by_name("middlename").click() wd.find_element_by_name("middlename").clear() wd.find_element_by_name("middlename").send_keys(contact.middle) wd.find_element_by_name("lastname").click() wd.find_element_by_name("lastname").clear() wd.find_element_by_name("lastname").send_keys(contact.last) wd.find_element_by_name("nickname").click() wd.find_element_by_name("nickname").clear() wd.find_element_by_name("nickname").send_keys(contact.nick) wd.find_element_by_name("title").click() wd.find_element_by_name("title").clear() wd.find_element_by_name("title").send_keys(contact.title) wd.find_element_by_name("company").click() wd.find_element_by_name("company").clear() wd.find_element_by_name("company").send_keys(contact.company) wd.find_element_by_name("address").click() wd.find_element_by_name("address").clear() wd.find_element_by_name("address").send_keys(contact.address) wd.find_element_by_name("home").click() wd.find_element_by_name("theform").click() wd.find_element_by_name("home").click() wd.find_element_by_name("home").clear() wd.find_element_by_name("home").send_keys(contact.home) wd.find_element_by_name("mobile").click() wd.find_element_by_name("mobile").clear() wd.find_element_by_name("mobile").send_keys(contact.mob) wd.find_element_by_name("work").click() wd.find_element_by_name("work").clear() wd.find_element_by_name("work").send_keys(contact.work) wd.find_element_by_name("fax").click() wd.find_element_by_name("fax").clear() wd.find_element_by_name("fax").send_keys(contact.fax) wd.find_element_by_name("home").click() wd.find_element_by_name("home").clear() wd.find_element_by_name("home").send_keys(contact.homephone) wd.find_element_by_name("email2").click() wd.find_element_by_name("email2").clear() wd.find_element_by_name("email2").send_keys(contact.email) wd.find_element_by_name("homepage").click() wd.find_element_by_name("homepage").clear() wd.find_element_by_name("homepage").send_keys(contact.homepage) if not wd.find_element_by_xpath("//div[@id='content']/form/select[1]//option[15]").is_selected(): wd.find_element_by_xpath("//div[@id='content']/form/select[1]//option[15]").click() if not wd.find_element_by_xpath("//div[@id='content']/form/select[2]//option[6]").is_selected(): wd.find_element_by_xpath("//div[@id='content']/form/select[2]//option[6]").click() wd.find_element_by_name("byear").click() wd.find_element_by_name("byear").clear() wd.find_element_by_name("byear").send_keys(contact.birthyear) if not wd.find_element_by_xpath("//div[@id='content']/form/select[3]//option[6]").is_selected(): wd.find_element_by_xpath("//div[@id='content']/form/select[3]//option[6]").click() if not wd.find_element_by_xpath("//div[@id='content']/form/select[4]//option[5]").is_selected(): wd.find_element_by_xpath("//div[@id='content']/form/select[4]//option[5]").click() wd.find_element_by_name("theform").click() wd.find_element_by_name("address2").click() wd.find_element_by_name("address2").clear() wd.find_element_by_name("address2").send_keys(contact.address) wd.find_element_by_name("phone2").click() wd.find_element_by_name("phone2").clear() wd.find_element_by_name("phone2").send_keys(contact.homephone) wd.find_element_by_name("notes").click() wd.find_element_by_name("notes").clear() wd.find_element_by_name("notes").send_keys(contact.note) wd.find_element_by_xpath("//div[@id='content']/form/input[21]").click() wd.find_element_by_link_text("home").click() def delete_first_contact(self): wd = self.app.wd wd.find_element_by_link_text("home").click() #select first contact wd.find_element_by_name("selected[]").click() #submit detetion wd.find_element_by_xpath("//div[@id='content']/form[2]/div[2]/input").click() wd.switch_to_alert().accept()
52.920455
105
0.671462
671
4,657
4.293592
0.111773
0.147865
0.320375
0.369663
0.844846
0.836515
0.434918
0.377994
0.363763
0.29226
0
0.007945
0.162122
4,657
87
106
53.528736
0.730395
0.007516
0
0.139241
0
0
0.179337
0.0966
0
0
0
0
0
1
0.037975
false
0
0
0
0.050633
0
0
0
0
null
0
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
a23bedf66effbbffc32e32dfb5e2eb16439641f5
126
py
Python
global_var.py
Elusive7733/Visualized-Pathfinding-GUI
8febe42cee1cba3ef1c973f071949bd8f5eec365
[ "MIT" ]
null
null
null
global_var.py
Elusive7733/Visualized-Pathfinding-GUI
8febe42cee1cba3ef1c973f071949bd8f5eec365
[ "MIT" ]
null
null
null
global_var.py
Elusive7733/Visualized-Pathfinding-GUI
8febe42cee1cba3ef1c973f071949bd8f5eec365
[ "MIT" ]
null
null
null
import pygame WIDTH = 800 Win = pygame.display.set_mode((WIDTH, WIDTH)) pygame.display.set_caption("Path-Finding Algorithm")
21
52
0.777778
18
126
5.333333
0.666667
0.270833
0.333333
0
0
0
0
0
0
0
0
0.026316
0.095238
126
5
53
25.2
0.815789
0
0
0
0
0
0.174603
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
a25d8e45712c8acdb43f8bcccd68e3d7710190ca
46
py
Python
selenium/network/__init__.py
PyLearner/myworks
6dd87bfce5d0b3b17d02248fceb3d91d97cab7d5
[ "Apache-2.0" ]
null
null
null
selenium/network/__init__.py
PyLearner/myworks
6dd87bfce5d0b3b17d02248fceb3d91d97cab7d5
[ "Apache-2.0" ]
null
null
null
selenium/network/__init__.py
PyLearner/myworks
6dd87bfce5d0b3b17d02248fceb3d91d97cab7d5
[ "Apache-2.0" ]
null
null
null
__author__ = 'myang' from . import a10api
11.5
21
0.673913
5
46
5.4
1
0
0
0
0
0
0
0
0
0
0
0.057143
0.23913
46
3
22
15.333333
0.714286
0
0
0
0
0
0.116279
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
a289b2dafd4a5aea41ca6b5bcd9659d0dd19deec
36,929
py
Python
trestsetset.py
Johannes0Horn/RL_sample_injection
02b105bd66dddbde8a748a8c8ae232f83ab9f1f2
[ "MIT" ]
1
2021-10-18T07:06:35.000Z
2021-10-18T07:06:35.000Z
trestsetset.py
Johannes0Horn/RL_sample_injection
02b105bd66dddbde8a748a8c8ae232f83ab9f1f2
[ "MIT" ]
null
null
null
trestsetset.py
Johannes0Horn/RL_sample_injection
02b105bd66dddbde8a748a8c8ae232f83ab9f1f2
[ "MIT" ]
null
null
null
Testing Team Agent... init state: [-0.69521889 -0.64149914] obs in episode 0, before step: 0: [ 0.7679135 -0.64055353 -0.64149916] ----------------- obs in episode 0, before step: 3: [ 0.7350059 -0.6780607 -0.99804115] ----------------- obs in episode 0, before step: 6: [ 0.68224907 -0.7311199 -1.4968196 ] ----------------- obs in episode 0, before step: 9: [ 0.6009578 -0.79928076 -2.1227095 ] ----------------- obs in episode 0, before step: 12: [ 0.48241338 -0.87594366 -2.825822 ] ----------------- obs in episode 0, before step: 15: [ 0.31717435 -0.94836724 -3.6131864 ] ----------------- obs in episode 0, before step: 18: [ 0.10117439 -0.9948687 -4.4280143 ] ----------------- obs in episode 0, before step: 21: [-0.16361555 -0.98652416 -5.314046 ] ----------------- obs in episode 0, before step: 24: [-0.4561849 -0.889885 -6.1869755] ----------------- obs in episode 0, before step: 27: [-0.73359084 -0.6795914 -6.9977508 ] ----------------- obs in episode 0, before step: 30: [-0.93423104 -0.35666835 -7.650125 ] ----------------- obs in episode 0, before step: 33: [-0.999377 0.0352934 -8. ] ----------------- obs in episode 0, before step: 36: [-0.9067433 0.4216831 -8. ] ----------------- obs in episode 0, before step: 39: [-0.6790728 0.73407096 -7.779936 ] ----------------- obs in episode 0, before step: 42: [-0.3793642 0.92524743 -7.1477957 ] ----------------- obs in episode 0, before step: 45: [-0.07343058 0.9973003 -6.312246 ] ----------------- obs in episode 0, before step: 48: [ 0.19680385 0.9804429 -5.4318733 ] ----------------- obs in episode 0, before step: 51: [ 0.41443956 0.91007686 -4.584599 ] ----------------- obs in episode 0, before step: 54: [ 0.58048606 0.8142702 -3.839972 ] ----------------- obs in episode 0, before step: 57: [ 0.7054375 0.7087721 -3.2742946] ----------------- obs in episode 0, before step: 60: [ 0.79726267 0.6036325 -2.794132 ] ----------------- obs in episode 0, before step: 63: [ 0.8635857 0.50420207 -2.3918352 ] ----------------- obs in episode 0, before step: 66: [ 0.9094957 0.41571328 -1.994617 ] ----------------- obs in episode 0, before step: 69: [ 0.9407101 0.33921146 -1.6529675 ] ----------------- obs in episode 0, before step: 72: [ 0.96277106 0.2703182 -1.4471004 ] ----------------- obs in episode 0, before step: 75: [ 0.97705084 0.21300623 -1.181455 ] ----------------- obs in episode 0, before step: 78: [ 0.9861195 0.16603695 -0.9568261 ] ----------------- obs in episode 0, before step: 81: [ 0.99169123 0.12864095 -0.75622076] ----------------- obs in episode 0, before step: 84: [ 0.99499285 0.09994624 -0.5777008 ] ----------------- obs in episode 0, before step: 87: [ 0.9970909 0.07622165 -0.47635463] ----------------- obs in episode 0, before step: 90: [ 0.9984661 0.05536732 -0.41800016] ----------------- obs in episode 0, before step: 93: [ 0.99915874 0.04100972 -0.28748843] ----------------- obs in episode 0, before step: 96: [ 0.9996162 0.02770272 -0.26629925] ----------------- obs in episode 0, before step: 99: [ 0.9998743 0.01585381 -0.23703574] ----------------- obs in episode 0, before step: 102: [ 0.99997824 0.00659847 -0.18511918] ----------------- obs in episode 0, before step: 105: [ 0.99999946 -0.00104001 -0.1527705 ] ----------------- obs in episode 0, before step: 108: [ 0.9999766 -0.00684483 -0.11609747] ----------------- obs in episode 0, before step: 111: [ 0.99992716 -0.01206787 -0.10446563] ----------------- obs in episode 0, before step: 114: [ 0.99987274 -0.01595336 -0.07771751] ----------------- obs in episode 0, before step: 117: [ 0.9997904 -0.02047507 -0.0904492 ] ----------------- obs in episode 0, before step: 120: [ 0.9997559 -0.02209422 -0.0323904 ] ----------------- obs in episode 0, before step: 123: [ 0.99969363 -0.02475187 -0.05316758] ----------------- obs in episode 0, before step: 126: [ 0.99965453 -0.02628322 -0.03063691] ----------------- obs in episode 0, before step: 129: [ 0.99954647 -0.03011491 -0.07666447] ----------------- obs in episode 0, before step: 132: [ 0.9995517 -0.029939 0.00351988] ----------------- obs in episode 0, before step: 135: [ 0.9995107 -0.03127842 -0.026801 ] ----------------- obs in episode 0, before step: 138: [ 0.9995283 -0.030711 0.01135391] ----------------- obs in episode 0, before step: 141: [ 0.99952626 -0.03077761 -0.00133292] ----------------- obs in episode 0, before step: 144: [ 0.999499 -0.03165016 -0.01745941] ----------------- obs in episode 0, before step: 147: [ 0.99952215 -0.03091098 0.0147909 ] ----------------- obs in episode 0, before step: 150: [ 0.9994726 -0.032472 -0.03123626] ----------------- obs in episode 0, before step: 153: [ 0.9994599 -0.03286048 -0.00777366] ----------------- obs in episode 0, before step: 156: [ 9.9945945e-01 -3.2875881e-02 -3.0821879e-04] ----------------- obs in episode 0, before step: 159: [ 0.99942976 -0.03376595 -0.01781118] ----------------- obs in episode 0, before step: 162: [ 0.999454 -0.03303972 0.01453264] ----------------- obs in episode 0, before step: 165: [ 0.9994238 -0.03394186 -0.01805307] ----------------- obs in episode 0, before step: 168: [ 0.9994156 -0.03418325 -0.00483038] ----------------- obs in episode 0, before step: 171: [ 0.9994116 -0.0343007 -0.00235039] ----------------- obs in episode 0, before step: 174: [ 0.99944484 -0.03331685 0.01968805] ----------------- obs in episode 0, before step: 177: [ 0.9994232 -0.03395974 -0.01286487] ----------------- obs in episode 0, before step: 180: [ 0.9994022 -0.0345719 -0.01225055] ----------------- obs in episode 0, before step: 183: [ 0.99940467 -0.03450119 0.00141514] ----------------- obs in episode 0, before step: 186: [ 0.99939257 -0.03485021 -0.00698473] ----------------- obs in episode 0, before step: 189: [ 0.99941134 -0.0343073 0.01086478] ----------------- obs in episode 0, before step: 192: [ 0.9993649 -0.03563463 -0.02656283] ----------------- obs in episode 0, before step: 195: [ 0.99938124 -0.03517257 0.00924694] ----------------- obs in episode 0, before step: 198: [ 0.99938524 -0.03505965 0.00225982] ----------------- obs in episode 0, before step: 201: [ 0.99934846 -0.0360929 -0.02067796] ----------------- obs in episode 0, before step: 204: [ 9.9934834e-01 -3.6095683e-02 -5.5788998e-05] ----------------- obs in episode 0, before step: 207: [ 0.9993714 -0.03545191 0.01288366] ----------------- obs in episode 0, before step: 210: [ 0.99935 -0.03604947 -0.01195892] ----------------- obs in episode 0, before step: 213: [ 0.99937856 -0.0352494 0.01601177] ----------------- obs in episode 0, before step: 216: [ 0.99936336 -0.03567752 -0.00856781] ----------------- obs in episode 0, before step: 219: [ 0.9993942 -0.03480359 0.01748935] ----------------- obs in episode 0, before step: 222: [ 0.999405 -0.03449079 0.0062599 ] ----------------- obs in episode 0, before step: 225: [ 0.9994338 -0.03364638 0.01689794] ----------------- obs in episode 0, before step: 228: [ 0.99941087 -0.03432069 -0.01349396] ----------------- obs in episode 0, before step: 231: [ 0.999445 -0.0333122 0.02018122] ----------------- obs in episode 0, before step: 234: [ 0.99942315 -0.0339605 -0.01297319] ----------------- obs in episode 0, before step: 237: [ 0.9994448 -0.03331779 0.01286135] ----------------- obs in episode 0, before step: 240: [ 0.9995061 -0.0314255 0.0378656] ----------------- obs in episode 0, before step: 243: [ 0.9994335 -0.03365409 -0.04459531] ----------------- obs in episode 0, before step: 246: [ 0.9994477 -0.03323045 0.00847744] ----------------- obs in episode 0, before step: 249: [ 0.99943095 -0.03373163 -0.01002922] ----------------- obs in episode 0, before step: 252: [ 0.9994225 -0.03398114 -0.00499308] ----------------- obs in episode 0, before step: 255: [ 0.99942535 -0.03389638 0.00169621] ----------------- obs in episode 0, before step: 258: [ 0.9994129 -0.03426163 -0.0073091 ] ----------------- obs in episode 0, before step: 261: [ 0.99942195 -0.03399716 0.00529247] ----------------- obs in episode 0, before step: 264: [ 0.9994023 -0.03457024 -0.01146851] ----------------- obs in episode 0, before step: 267: [ 0.9993908 -0.0349014 -0.00662707] ----------------- obs in episode 0, before step: 270: [ 0.99937534 -0.03534015 -0.00878052] ----------------- obs in episode 0, before step: 273: [ 0.99936974 -0.03549827 -0.00316428] ----------------- obs in episode 0, before step: 276: [ 0.9994017 -0.03458659 0.01824484] ----------------- obs in episode 0, before step: 279: [ 0.99940753 -0.0344177 0.0033798 ] ----------------- obs in episode 0, before step: 282: [ 0.99940103 -0.03460674 -0.00378313] ----------------- obs in episode 0, before step: 285: [ 0.9994303 -0.03375028 0.01713922] ----------------- obs in episode 0, before step: 288: [ 0.9994024 -0.03456711 -0.01634613] ----------------- obs in episode 0, before step: 291: [ 0.9994448 -0.03331842 0.02498816] ----------------- obs in episode 0, before step: 294: [ 0.9993925 -0.03485096 -0.0306685 ] ----------------- obs in episode 0, before step: 297: [ 0.99942034 -0.03404346 0.01615958] ----------------- obs in episode 0, before step: 300: [ 0.9993502 -0.03604428 -0.04004117] ----------------- obs in episode 0, before step: 303: [ 0.99941385 -0.0342338 0.03623213] ----------------- obs in episode 0, before step: 306: [ 0.9993523 -0.03598686 -0.03508282] ----------------- obs in episode 0, before step: 309: [ 0.99939543 -0.03476722 0.02440796] ----------------- obs in episode 0, before step: 312: [ 0.99941003 -0.03434578 0.0084338 ] ----------------- obs in episode 0, before step: 315: [ 0.999418 -0.03411215 0.00467542] ----------------- obs in episode 0, before step: 318: [ 0.9993813 -0.03517121 -0.02119401] ----------------- obs in episode 0, before step: 321: [ 0.9993875 -0.03499454 0.00353562] ----------------- obs in episode 0, before step: 324: [ 0.9993673 -0.03556686 -0.01145355] ----------------- obs in episode 0, before step: 327: [ 0.99938494 -0.03506794 0.00998464] ----------------- obs in episode 0, before step: 330: [ 0.9993361 -0.0364324 -0.0273066] ----------------- obs in episode 0, before step: 333: [ 0.99935126 -0.03601454 0.00836271] ----------------- obs in episode 0, before step: 336: [ 0.9993778 -0.03527043 0.01489162] ----------------- obs in episode 0, before step: 339: [ 0.9994135 -0.03424351 0.02055082] ----------------- obs in episode 0, before step: 342: [ 0.9994284 -0.03380611 0.00875314] ----------------- obs in episode 0, before step: 345: [ 0.9994701 -0.03254973 0.02514143] ----------------- obs in episode 0, before step: 348: [ 0.9994149 -0.03420206 -0.033065 ] ----------------- obs in episode 0, before step: 351: [ 0.99943393 -0.03364205 0.01120657] ----------------- obs in episode 0, before step: 354: [ 0.99945956 -0.03287163 0.01541685] ----------------- obs in episode 0, before step: 357: [ 0.99939257 -0.03485 -0.03959007] ----------------- obs in episode 0, before step: 360: [ 0.9994565 -0.03296454 0.03773096] ----------------- obs in episode 0, before step: 363: [ 0.9995456 -0.03014433 0.05643238] ----------------- obs in episode 0, before step: 366: [ 0.9996205 -0.02754806 0.05194701] ----------------- obs in episode 0, before step: 369: [ 0.99969095 -0.02485959 0.0537879 ] ----------------- obs in episode 0, before step: 372: [ 0.99973696 -0.02293367 0.03852939] ----------------- obs in episode 0, before step: 375: [ 0.9997537 -0.02219314 0.01481426] ----------------- obs in episode 0, before step: 378: [ 0.9997717 -0.02136551 0.01655656] ----------------- obs in episode 0, before step: 381: [ 0.9997858 -0.02069902 0.01333285] ----------------- obs in episode 0, before step: 384: [ 0.99979734 -0.02013073 0.01136815] ----------------- obs in episode 0, before step: 387: [ 0.9997882 -0.02057972 -0.00898171] ----------------- obs in episode 0, before step: 390: [ 0.99970347 -0.02435058 -0.07543632] ----------------- obs in episode 0, before step: 393: [ 0.99968094 -0.02526016 -0.01819721] ----------------- obs in episode 0, before step: 396: [ 0.99960405 -0.02813869 -0.05759111] ----------------- obs in episode 0, before step: 399: [ 0.9995896 -0.02864486 -0.01012752] ----------------- obs in episode 0, before step: 402: [ 0.9995247 -0.03082804 -0.0436828 ] ----------------- obs in episode 0, before step: 405: [ 0.99946487 -0.03271041 -0.0376664 ] ----------------- obs in episode 0, before step: 408: [ 0.9994608 -0.03283403 -0.00247379] ----------------- obs in episode 0, before step: 411: [ 0.99945754 -0.03293395 -0.00199942] ----------------- obs in episode 0, before step: 414: [ 0.9994451 -0.03330953 -0.00751571] ----------------- obs in episode 0, before step: 417: [ 0.99945366 -0.03305148 0.00516383] ----------------- obs in episode 0, before step: 420: [ 0.9994354 -0.03359737 -0.01092399] ----------------- obs in episode 0, before step: 423: [ 0.99947023 -0.03254608 0.02103723] ----------------- obs in episode 0, before step: 426: [ 0.9994296 -0.03377146 -0.02452088] ----------------- obs in episode 0, before step: 429: [ 9.9942857e-01 -3.3801463e-02 -6.0050888e-04] ----------------- obs in episode 0, before step: 432: [ 0.9994625 -0.03278235 0.02039362] ----------------- obs in episode 0, before step: 435: [ 0.99942464 -0.03391692 -0.02270403] ----------------- obs in episode 0, before step: 438: [ 0.99943465 -0.03362178 0.0059061 ] ----------------- obs in episode 0, before step: 441: [ 0.99940157 -0.03459011 -0.01937793] ----------------- obs in episode 0, before step: 444: [ 0.9994074 -0.0344211 0.00338218] ----------------- obs in episode 0, before step: 447: [ 0.99942213 -0.03399138 0.00859957] ----------------- obs in episode 0, before step: 450: [ 0.99944824 -0.03321398 0.0155567 ] ----------------- obs in episode 0, before step: 453: [ 0.99941224 -0.03428155 -0.02136344] ----------------- obs in episode 0, before step: 456: [ 0.99946076 -0.03283568 0.02893366] ----------------- obs in episode 0, before step: 459: [ 0.9994013 -0.03459898 -0.03528619] ----------------- obs in episode 0, before step: 462: [ 0.9994623 -0.03278893 0.03622165] ----------------- obs in episode 0, before step: 465: [ 0.99938166 -0.03516139 -0.04747654] ----------------- obs in episode 0, before step: 468: [ 0.9993929 -0.03483925 0.00644674] ----------------- obs in episode 0, before step: 471: [ 0.9993911 -0.03489193 -0.00105423] ----------------- obs in episode 0, before step: 474: [ 0.99936473 -0.03563956 -0.01496203] ----------------- obs in episode 0, before step: 477: [ 0.9993851 -0.03506282 0.01154206] ----------------- obs in episode 0, before step: 480: [ 0.9994027 -0.03455842 0.01009421] ----------------- obs in episode 0, before step: 483: [ 0.9993989 -0.03466792 -0.00219128] ----------------- obs in episode 0, before step: 486: [ 0.9994186 -0.03409484 0.01146828] ----------------- obs in episode 0, before step: 489: [ 0.99945015 -0.03315682 0.01877102] ----------------- obs in episode 0, before step: 492: [ 0.99942166 -0.03400441 -0.01696133] ----------------- obs in episode 0, before step: 495: [ 0.99944985 -0.033167 0.01675749] ----------------- obs in episode 0, before step: 498: [ 0.9994205 -0.03403919 -0.0174536 ] ----------------- obs in episode 0, before step: 501: [ 0.9993881 -0.03497789 -0.01878515] ----------------- obs in episode 0, before step: 504: [ 0.9994281 -0.03381502 0.02327125] ----------------- obs in episode 0, before step: 507: [ 0.99938416 -0.03509002 -0.02551526] ----------------- obs in episode 0, before step: 510: [ 0.9993681 -0.03554559 -0.00911713] ----------------- obs in episode 0, before step: 513: [ 9.9936783e-01 -3.5551749e-02 -1.2318334e-04] ----------------- obs in episode 0, before step: 516: [ 9.9936628e-01 -3.5594691e-02 -8.5935835e-04] ----------------- obs in episode 0, before step: 519: [ 0.99934816 -0.03610088 -0.01013025] ----------------- obs in episode 0, before step: 522: [ 0.999355 -0.03591003 0.00381951] ----------------- obs in episode 0, before step: 525: [ 0.99935126 -0.03601494 -0.00209956] ----------------- obs in episode 0, before step: 528: [ 0.9994092 -0.03436949 0.03292928] ----------------- obs in episode 0, before step: 531: [ 0.9993598 -0.03577655 -0.02815853] ----------------- obs in episode 0, before step: 534: [ 0.99934417 -0.03621012 -0.00867689] ----------------- obs in episode 0, before step: 537: [ 0.99938506 -0.03506469 0.02292307] ----------------- obs in episode 0, before step: 540: [ 0.9992907 -0.03765689 -0.05187828] ----------------- obs in episode 0, before step: 543: [ 0.99932253 -0.03680266 0.01709646] ----------------- obs in episode 0, before step: 546: [ 0.9993502 -0.03604377 0.01518782] ----------------- obs in episode 0, before step: 549: [ 0.9993608 -0.0357489 0.00590125] ----------------- obs in episode 0, before step: 552: [ 9.9936199e-01 -3.5716426e-02 6.4986752e-04] ----------------- obs in episode 0, before step: 555: [ 0.9994069 -0.03443754 0.02559351] ----------------- obs in episode 0, before step: 558: [ 0.9994113 -0.03430946 0.00256303] ----------------- obs in episode 0, before step: 561: [ 0.999414 -0.03422844 0.00162145] ----------------- obs in episode 0, before step: 564: [ 0.9993943 -0.03479993 -0.01143656] ----------------- obs in episode 0, before step: 567: [ 0.99940354 -0.03453336 0.00533458] ----------------- obs in episode 0, before step: 570: [ 0.9994181 -0.03411093 0.00845356] ----------------- obs in episode 0, before step: 573: [ 0.9993815 -0.0351655 -0.02110414] ----------------- obs in episode 0, before step: 576: [ 0.999424 -0.03393625 0.02459967] ----------------- obs in episode 0, before step: 579: [ 0.999402 -0.03457767 -0.0128359 ] ----------------- obs in episode 0, before step: 582: [ 0.99939704 -0.034722 -0.00288828] ----------------- obs in episode 0, before step: 585: [ 0.9994139 -0.03423196 0.00980648] ----------------- obs in episode 0, before step: 588: [ 0.9993422 -0.03626571 -0.04070015] ----------------- obs in episode 0, before step: 591: [ 0.9993778 -0.03527075 0.01991181] ----------------- obs in episode 0, before step: 594: [ 0.9993589 -0.03580291 -0.01064991] ----------------- obs in episode 0, before step: 597: [ 0.99939734 -0.03471319 0.02180793] ----------------- init state: [-0.37165605 0.61113661] obs in episode 1, before step: 0: [ 0.93172723 -0.3631589 0.6111366 ] ----------------- obs in episode 1, before step: 3: [ 0.9400827 -0.3409464 0.47465184] ----------------- obs in episode 1, before step: 6: [ 0.9460134 -0.3241276 0.3566807] ----------------- obs in episode 1, before step: 9: [ 0.9499183 -0.3124982 0.24535179] ----------------- obs in episode 1, before step: 12: [ 0.95201755 -0.30604342 0.13575146] ----------------- obs in episode 1, before step: 15: [ 0.95245916 -0.30466625 0.02892504] ----------------- obs in episode 1, before step: 18: [ 0.9514987 -0.3076528 -0.06274383] ----------------- obs in episode 1, before step: 21: [ 0.94912136 -0.31491056 -0.15274452] ----------------- obs in episode 1, before step: 24: [ 0.9450208 -0.3270102 -0.25551364] ----------------- obs in episode 1, before step: 27: [ 0.938758 -0.3445772 -0.37300506] ----------------- obs in episode 1, before step: 30: [ 0.9276664 -0.37341002 -0.617877 ] ----------------- obs in episode 1, before step: 33: [ 0.91230196 -0.40951818 -0.78487325] ----------------- obs in episode 1, before step: 36: [ 0.88585454 -0.46396303 -1.2107562 ] ----------------- obs in episode 1, before step: 39: [ 0.8452943 -0.534301 -1.6243378] ----------------- obs in episode 1, before step: 42: [ 0.78927547 -0.6140393 -1.9497521 ] ----------------- obs in episode 1, before step: 45: [ 0.71116334 -0.7030268 -2.3695312 ] ----------------- obs in episode 1, before step: 48: [ 0.6028044 -0.797889 -2.8828065] ----------------- obs in episode 1, before step: 51: [ 0.45360973 -0.8912004 -3.5239935 ] ----------------- obs in episode 1, before step: 54: [ 0.2535496 -0.9673224 -4.289272 ] ----------------- obs in episode 1, before step: 57: [-1.8131369e-03 -9.9999833e-01 -5.1632233e+00] ----------------- obs in episode 1, before step: 60: [-0.29927865 -0.95416576 -6.042468 ] ----------------- obs in episode 1, before step: 63: [-0.60389876 -0.797061 -6.88894 ] ----------------- obs in episode 1, before step: 66: [-0.85732996 -0.5147672 -7.633533 ] ----------------- obs in episode 1, before step: 69: [-0.990113 -0.14027202 -8. ] ----------------- obs in episode 1, before step: 72: [-0.96657896 0.25636908 -8. ] ----------------- obs in episode 1, before step: 75: [-0.7918573 0.61070615 -7.9537635 ] ----------------- obs in episode 1, before step: 78: [-0.5112208 0.85944945 -7.544793 ] ----------------- obs in episode 1, before step: 81: [-0.1966004 0.9804837 -6.7743034] ----------------- obs in episode 1, before step: 84: [ 0.09701206 0.9952832 -5.9010863 ] ----------------- obs in episode 1, before step: 87: [ 0.34089494 0.9401014 -5.014076 ] ----------------- obs in episode 1, before step: 90: [ 0.52844465 0.84896773 -4.1779766 ] ----------------- obs in episode 1, before step: 93: [ 0.66912186 0.7431527 -3.5251808 ] ----------------- obs in episode 1, before step: 96: [ 0.7706954 0.63720375 -2.9381037 ] ----------------- obs in episode 1, before step: 99: [ 0.84465754 0.535307 -2.5198684 ] ----------------- obs in episode 1, before step: 102: [ 0.89669156 0.4426559 -2.1262555 ] ----------------- obs in episode 1, before step: 105: [ 0.9324663 0.36125693 -1.7788583 ] ----------------- obs in episode 1, before step: 108: [ 0.95734954 0.2889322 -1.5300841 ] ----------------- obs in episode 1, before step: 111: [ 0.9734268 0.2289983 -1.2412555] ----------------- obs in episode 1, before step: 114: [ 0.9837745 0.17940961 -1.0132445 ] ----------------- obs in episode 1, before step: 117: [ 0.99022 0.1395148 -0.8082975] ----------------- obs in episode 1, before step: 120: [ 0.9941132 0.10834648 -0.6282363 ] ----------------- obs in episode 1, before step: 123: [ 0.9965572 0.08290833 -0.5111197 ] ----------------- obs in episode 1, before step: 126: [ 0.9981215 0.06126606 -0.43398306] ----------------- obs in episode 1, before step: 129: [ 0.9989895 0.04494364 -0.32691345] ----------------- obs in episode 1, before step: 132: [ 0.99954927 0.03002056 -0.2986742 ] ----------------- obs in episode 1, before step: 135: [ 0.9998092 0.01953339 -0.20980874] ----------------- obs in episode 1, before step: 138: [ 0.9999528 0.0097153 -0.1963836] ----------------- obs in episode 1, before step: 141: [ 0.9999986 0.00165326 -0.16124383] ----------------- obs in episode 1, before step: 144: [ 0.9999887 -0.00476306 -0.12832686] ----------------- obs in episode 1, before step: 147: [ 0.9999399 -0.01096438 -0.12403049] ----------------- obs in episode 1, before step: 150: [ 0.9998836 -0.01525708 -0.08586145] ----------------- obs in episode 1, before step: 153: [ 0.9998258 -0.01866653 -0.0681988 ] ----------------- obs in episode 1, before step: 156: [ 0.999741 -0.02275647 -0.08181642] ----------------- obs in episode 1, before step: 159: [ 0.999711 -0.02404198 -0.02571715] ----------------- obs in episode 1, before step: 162: [ 0.99963653 -0.02695996 -0.0583787 ] ----------------- obs in episode 1, before step: 165: [ 0.9996244 -0.02740634 -0.00893085] ----------------- obs in episode 1, before step: 168: [ 0.99957144 -0.02927419 -0.03737205] ----------------- obs in episode 1, before step: 171: [ 0.9995402 -0.03032191 -0.02096363] ----------------- obs in episode 1, before step: 174: [ 0.999499 -0.03165025 -0.02657971] ----------------- obs in episode 1, before step: 177: [ 0.9995065 -0.03141392 0.00472905] ----------------- obs in episode 1, before step: 180: [ 0.99945825 -0.03291131 -0.02996335] ----------------- obs in episode 1, before step: 183: [ 0.99949986 -0.03162296 0.0257804 ] ----------------- obs in episode 1, before step: 186: [ 0.99941707 -0.03414014 -0.05037088] ----------------- obs in episode 1, before step: 189: [ 0.9994655 -0.03269029 0.02901317] ----------------- obs in episode 1, before step: 192: [ 0.99940777 -0.03441032 -0.03441987] ----------------- obs in episode 1, before step: 195: [ 0.99938214 -0.03514767 -0.014756 ] ----------------- obs in episode 1, before step: 198: [ 0.99942166 -0.03400519 0.02286322] ----------------- obs in episode 1, before step: 201: [ 0.9993776 -0.03527568 -0.02542487] ----------------- obs in episode 1, before step: 204: [ 0.99940497 -0.03449137 0.01569564] ----------------- obs in episode 1, before step: 207: [ 9.9940455e-01 -3.4504492e-02 -2.6253177e-04] ----------------- obs in episode 1, before step: 210: [ 0.99940836 -0.03439423 0.00220655] ----------------- obs in episode 1, before step: 213: [ 0.99938804 -0.03497842 -0.01169094] ----------------- obs in episode 1, before step: 216: [ 0.9993498 -0.0360553 -0.02155115] ----------------- obs in episode 1, before step: 219: [ 0.99940383 -0.03452435 0.03063821] ----------------- obs in episode 1, before step: 222: [ 0.99940777 -0.03441108 0.00226658] ----------------- obs in episode 1, before step: 225: [ 0.99940044 -0.03462328 -0.00424646] ----------------- obs in episode 1, before step: 228: [ 0.99942774 -0.03382595 0.01595592] ----------------- obs in episode 1, before step: 231: [ 0.999416 -0.03417091 -0.00690307] ----------------- obs in episode 1, before step: 234: [ 0.99942595 -0.03387828 0.00585596] ----------------- obs in episode 1, before step: 237: [ 0.99940735 -0.03442314 -0.01090355] ----------------- obs in episode 1, before step: 240: [ 0.9993294 -0.0366171 -0.04390687] ----------------- obs in episode 1, before step: 243: [ 0.9993504 -0.03603815 0.01158664] ----------------- obs in episode 1, before step: 246: [ 0.9993375 -0.03639437 -0.00712906] ----------------- obs in episode 1, before step: 249: [ 0.9993564 -0.03587293 0.01043561] ----------------- obs in episode 1, before step: 252: [ 9.9935734e-01 -3.5845235e-02 5.5414240e-04] ----------------- obs in episode 1, before step: 255: [ 0.9993301 -0.03659745 -0.01505425] ----------------- obs in episode 1, before step: 258: [ 0.99931246 -0.03707642 -0.00958575] ----------------- obs in episode 1, before step: 261: [ 0.9993507 -0.03602976 0.02094704] ----------------- obs in episode 1, before step: 264: [ 0.999347 -0.03613277 -0.00206142] ----------------- obs in episode 1, before step: 267: [ 9.9934745e-01 -3.6120653e-02 2.4241897e-04] ----------------- obs in episode 1, before step: 270: [ 0.9993343 -0.03648331 -0.0072579 ] ----------------- obs in episode 1, before step: 273: [ 0.9993753 -0.03534222 0.02283662] ----------------- obs in episode 1, before step: 276: [ 0.99931264 -0.03707096 -0.03459746] ----------------- obs in episode 1, before step: 279: [ 0.9993582 -0.03582248 0.02498614] ----------------- obs in episode 1, before step: 282: [ 9.9935913e-01 -3.5796218e-02 5.2554120e-04] ----------------- obs in episode 1, before step: 285: [ 0.999326 -0.03670977 -0.01828299] ----------------- obs in episode 1, before step: 288: [ 0.99934477 -0.03619526 0.01029707] ----------------- obs in episode 1, before step: 291: [ 0.9993027 -0.03733897 -0.02288979] ----------------- obs in episode 1, before step: 294: [ 0.99934906 -0.03607588 0.02527884] ----------------- obs in episode 1, before step: 297: [ 0.9993577 -0.03583605 0.00479977] ----------------- obs in episode 1, before step: 300: [ 0.9993261 -0.03670616 -0.01741369] ----------------- obs in episode 1, before step: 303: [ 0.99941784 -0.0341164 0.05182772] ----------------- obs in episode 1, before step: 306: [ 0.9995445 -0.03017991 0.07877045] ----------------- obs in episode 1, before step: 309: [ 0.99964416 -0.02667474 0.07013188] ----------------- obs in episode 1, before step: 312: [ 0.99971163 -0.02401403 0.05323134] ----------------- obs in episode 1, before step: 315: [ 0.9997355 -0.02299927 0.02030087] ----------------- obs in episode 1, before step: 318: [ 0.99973 -0.02323716 -0.0047592 ] ----------------- obs in episode 1, before step: 321: [ 0.9997494 -0.02238445 0.01705871] ----------------- obs in episode 1, before step: 324: [ 0.9998023 -0.01988371 0.05002587] ----------------- obs in episode 1, before step: 327: [ 0.9997982 -0.02009068 -0.00414012] ----------------- obs in episode 1, before step: 330: [ 9.9979752e-01 -2.0121919e-02 -6.2494318e-04] ----------------- obs in episode 1, before step: 333: [ 0.99983495 -0.01816634 0.03911874] ----------------- obs in episode 1, before step: 336: [ 0.99983704 -0.01805157 0.00229578] ----------------- obs in episode 1, before step: 339: [ 0.99983 -0.01843707 -0.00771127] ----------------- obs in episode 1, before step: 342: [ 0.9998346 -0.01818689 0.00500447] ----------------- obs in episode 1, before step: 345: [ 0.9998186 -0.0190457 -0.01717925] ----------------- obs in episode 1, before step: 348: [ 0.9998111 -0.01943527 -0.00779284] ----------------- obs in episode 1, before step: 351: [ 0.9997814 -0.02090691 -0.02943871] ----------------- obs in episode 1, before step: 354: [ 0.999676 -0.02545319 -0.09095026] ----------------- obs in episode 1, before step: 357: [ 0.9996426 -0.02673289 -0.02560253] ----------------- obs in episode 1, before step: 360: [ 0.99954337 -0.03021641 -0.0696988 ] ----------------- obs in episode 1, before step: 363: [ 0.9995274 -0.03073999 -0.01047646] ----------------- obs in episode 1, before step: 366: [ 0.9994911 -0.03189965 -0.02320464] ----------------- obs in episode 1, before step: 369: [ 0.9994564 -0.03296894 -0.02139697] ----------------- obs in episode 1, before step: 372: [ 0.9994443 -0.03333261 -0.00727747] ----------------- obs in episode 1, before step: 375: [ 0.9994293 -0.03378098 -0.00897236] ----------------- obs in episode 1, before step: 378: [ 0.9994204 -0.03404192 -0.00522173] ----------------- obs in episode 1, before step: 381: [ 0.99940777 -0.03441013 -0.00736866] ----------------- obs in episode 1, before step: 384: [ 0.9993471 -0.03613064 -0.03443168] ----------------- obs in episode 1, before step: 387: [ 0.99936163 -0.03572648 0.00808839] ----------------- obs in episode 1, before step: 390: [ 0.999373 -0.03540542 0.00642534] ----------------- obs in episode 1, before step: 393: [ 0.9993776 -0.03527541 0.00260176] ----------------- obs in episode 1, before step: 396: [ 0.99933696 -0.03641012 -0.02270872] ----------------- obs in episode 1, before step: 399: [ 0.9993729 -0.03540927 0.02002988] ----------------- obs in episode 1, before step: 402: [ 0.9993904 -0.03491048 0.00998197] ----------------- obs in episode 1, before step: 405: [ 0.9994137 -0.03423823 0.01345316] ----------------- obs in episode 1, before step: 408: [ 0.9993618 -0.03572004 -0.02965445] ----------------- obs in episode 1, before step: 411: [ 0.99938846 -0.03496764 0.01505741] ----------------- obs in episode 1, before step: 414: [ 0.99939454 -0.03479268 0.00350148] ----------------- obs in episode 1, before step: 417: [ 0.99936515 -0.03562789 -0.01671471] ----------------- obs in episode 1, before step: 420: [ 0.9993752 -0.03534288 0.00570396] ----------------- obs in episode 1, before step: 423: [ 0.99935144 -0.03601012 -0.01335339] ----------------- obs in episode 1, before step: 426: [ 0.9993691 -0.0355172 0.00986462] ----------------- obs in episode 1, before step: 429: [ 0.9993597 -0.03577869 -0.00523304] ----------------- obs in episode 1, before step: 432: [ 0.99939656 -0.03473473 0.02089212] ----------------- obs in episode 1, before step: 435: [ 0.9994115 -0.03430092 0.00868152] ----------------- obs in episode 1, before step: 438: [ 0.99939674 -0.03473032 -0.00859317] ----------------- obs in episode 1, before step: 441: [ 0.99943787 -0.03352544 0.02411164] ----------------- obs in episode 1, before step: 444: [ 0.99939543 -0.03476812 -0.02486812] ----------------- obs in episode 1, before step: 447: [ 0.99941385 -0.03423458 0.01067714] ----------------- obs in episode 1, before step: 450: [ 0.9993743 -0.03537022 -0.0227266 ] ----------------- obs in episode 1, before step: 453: [ 0.99937135 -0.03545292 -0.00165514] ----------------- obs in episode 1, before step: 456: [ 9.993720e-01 -3.543411e-02 3.765774e-04] ----------------- obs in episode 1, before step: 459: [ 0.99941033 -0.03433695 0.02195659] ----------------- obs in episode 1, before step: 462: [ 0.99936897 -0.03551929 -0.02366129] ----------------- obs in episode 1, before step: 465: [ 0.99938923 -0.0349445 0.01150286] ----------------- obs in episode 1, before step: 468: [ 0.99935025 -0.03604339 -0.02199165] ----------------- obs in episode 1, before step: 471: [ 0.99938637 -0.03502619 0.02035692] ----------------- obs in episode 1, before step: 474: [ 0.9994274 -0.03383609 0.02381622] ----------------- obs in episode 1, before step: 477: [ 0.9993973 -0.03471416 -0.01757174] ----------------- obs in episode 1, before step: 480: [ 0.9994349 -0.03361385 0.02201893] ----------------- obs in episode 1, before step: 483: [ 0.99942476 -0.0339143 -0.00601239] ----------------- obs in episode 1, before step: 486: [ 0.9994061 -0.03446017 -0.01092383] ----------------- obs in episode 1, before step: 489: [ 0.9994308 -0.03373667 0.01447848] ----------------- obs in episode 1, before step: 492: [ 9.9943244e-01 -3.3687107e-02 9.9185354e-04] ----------------- obs in episode 1, before step: 495: [ 9.9943310e-01 -3.3667039e-02 4.0157975e-04] ----------------- obs in episode 1, before step: 498: [ 0.99942786 -0.03382315 -0.00312402] ----------------- obs in episode 1, before step: 501: [ 0.9994378 -0.03352635 0.00593937] ----------------- obs in episode 1, before step: 504: [ 0.99939644 -0.03473837 -0.02425446] ----------------- obs in episode 1, before step: 507: [ 0.9994 -0.03463588 0.00205102] ----------------- obs in episode 1, before step: 510: [ 0.999394 -0.03480928 -0.00347008] ----------------- obs in episode 1, before step: 513: [ 0.9993697 -0.03550041 -0.01383114] ----------------- obs in episode 1, before step: 516: [ 0.99937934 -0.03522629 0.00548584] ----------------- obs in episode 1, before step: 519: [ 9.9937761e-01 -3.5276048e-02 -9.9586183e-04] ----------------- obs in episode 1, before step: 522: [ 0.9994035 -0.03453465 0.01483703] ----------------- obs in episode 1, before step: 525: [ 0.99937224 -0.03542776 -0.01787329] ----------------- obs in episode 1, before step: 528: [ 0.99942213 -0.03399175 0.02873755] ----------------- obs in episode 1, before step: 531: [ 0.9994191 -0.03408081 -0.00178227] ----------------- obs in episode 1, before step: 534: [ 0.9993962 -0.03474512 -0.01329402] ----------------- obs in episode 1, before step: 537: [ 0.9994209 -0.03402745 0.01436188] ----------------- obs in episode 1, before step: 540: [ 9.9942189e-01 -3.3998057e-02 5.8826851e-04] ----------------- obs in episode 1, before step: 543: [ 0.99943084 -0.03373356 0.00529304] ----------------- obs in episode 1, before step: 546: [ 0.99942166 -0.03400547 -0.00544143] ----------------- obs in episode 1, before step: 549: [ 0.999447 -0.03325247 0.01506857] ----------------- obs in episode 1, before step: 552: [ 0.9993591 -0.03579811 -0.05094327] ----------------- obs in episode 1, before step: 555: [ 0.9994309 -0.0337322 0.04134332] ----------------- obs in episode 1, before step: 558: [ 0.9995127 -0.03121597 0.05035113] ----------------- obs in episode 1, before step: 561: [ 0.9995954 -0.02844329 0.05547837] ----------------- obs in episode 1, before step: 564: [ 0.9996539 -0.02630834 0.04271497] ----------------- obs in episode 1, before step: 567: [ 0.9997078 -0.02417153 0.04274976] ----------------- obs in episode 1, before step: 570: [ 0.99972343 -0.023518 0.01307428] ----------------- obs in episode 1, before step: 573: [ 0.9997747 -0.0212265 0.04584147] ----------------- obs in episode 1, before step: 576: [ 0.9997888 -0.02055129 0.01350715] ----------------- obs in episode 1, before step: 579: [ 0.9997813 -0.02091272 -0.00723011] ----------------- obs in episode 1, before step: 582: [ 0.9998063 -0.01968348 0.02458986] ----------------- obs in episode 1, before step: 585: [ 0.9998249 -0.01871448 0.01938369] ----------------- obs in episode 1, before step: 588: [ 0.99981475 -0.01924652 -0.01064277] ----------------- obs in episode 1, before step: 591: [ 0.9998192 -0.01901425 0.00464627] ----------------- obs in episode 1, before step: 594: [ 0.99983156 -0.01835273 0.01323261] ----------------- obs in episode 1, before step: 597: [ 0.99984187 -0.01778296 0.01139739] -----------------
45.988792
82
0.563812
5,262
36,929
3.956861
0.267579
0.096057
0.230536
0.124874
0.443495
0.443495
0.022621
0
0
0
0
0.378957
0.147093
36,929
803
83
45.988792
0.28209
0
0
0.498132
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
4
a2adc027328a3d1183e792192b52bda5e899c10c
155
py
Python
mayan/apps/task_manager/literals.py
sophiawa/Mayan-EDMS
42f20576d0c690b645a60bf53c5169cda4264231
[ "Apache-2.0" ]
null
null
null
mayan/apps/task_manager/literals.py
sophiawa/Mayan-EDMS
42f20576d0c690b645a60bf53c5169cda4264231
[ "Apache-2.0" ]
10
2021-03-20T00:01:17.000Z
2022-03-12T00:48:43.000Z
mayan/apps/task_manager/literals.py
sophiawa/Mayan-EDMS
42f20576d0c690b645a60bf53c5169cda4264231
[ "Apache-2.0" ]
1
2020-12-17T02:35:09.000Z
2020-12-17T02:35:09.000Z
DEFAULT_CELERY_BROKER_LOGIN_METHOD = 'AMQPLAIN' DEFAULT_CELERY_BROKER_URL = None DEFAULT_CELERY_BROKER_USE_SSL = None DEFAULT_CELERY_RESULT_BACKEND = None
31
47
0.883871
22
155
5.590909
0.545455
0.422764
0.463415
0
0
0
0
0
0
0
0
0
0.077419
155
4
48
38.75
0.86014
0
0
0
0
0
0.051613
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
a2ce4b0decafba3c32402c93f9d041757e1f9ee7
156
py
Python
data.py
mikesmith1611/mydataviswebsite
0020c65adb52d53e8ac0a81cdfdcf4435fefab8e
[ "MIT" ]
null
null
null
data.py
mikesmith1611/mydataviswebsite
0020c65adb52d53e8ac0a81cdfdcf4435fefab8e
[ "MIT" ]
null
null
null
data.py
mikesmith1611/mydataviswebsite
0020c65adb52d53e8ac0a81cdfdcf4435fefab8e
[ "MIT" ]
null
null
null
import pandas as pd import json dfNutririon = pd.read_json('./parsed-data/nutrition.json') ingredients = pd.read_json('./parsed-data/ingredients.json')[0]
26
63
0.762821
23
156
5.086957
0.521739
0.102564
0.17094
0.273504
0.34188
0
0
0
0
0
0
0.006993
0.083333
156
5
64
31.2
0.811189
0
0
0
0
0
0.371795
0.371795
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
a2dac3925b3c1b37c4c48d909b86c83e9f577e0f
458
py
Python
backend/services/toxic_comment_jigsaw/application/ai/training/src/preprocess.py
R-aryan/Jigsaw-Toxic-Comment-Classification
e5e4da7df379ac1b315f2bde655386180f39c517
[ "MIT" ]
null
null
null
backend/services/toxic_comment_jigsaw/application/ai/training/src/preprocess.py
R-aryan/Jigsaw-Toxic-Comment-Classification
e5e4da7df379ac1b315f2bde655386180f39c517
[ "MIT" ]
1
2021-07-08T14:57:25.000Z
2021-07-08T14:57:25.000Z
backend/services/toxic_comment_jigsaw/application/ai/training/src/preprocess.py
R-aryan/Jigsaw-Toxic-Comment-Classification
e5e4da7df379ac1b315f2bde655386180f39c517
[ "MIT" ]
null
null
null
import re import string class Preprocess: def __init__(self): pass def clean_text(self, text): text = text.lower() text = re.sub('\[.*?\]', '', text) text = re.sub('https?://\S+|www\.\S+', '', text) text = re.sub('<.*?>+', '', text) text = re.sub('[%s]' % re.escape(string.punctuation), '', text) text = re.sub('\n', '', text) text = re.sub('\w*\d\w*', '', text) return text
25.444444
71
0.471616
57
458
3.701754
0.385965
0.265403
0.255924
0.308057
0.208531
0.208531
0.208531
0
0
0
0
0
0.28821
458
17
72
26.941176
0.647239
0
0
0
0
0
0.104803
0.045852
0
0
0
0
0
1
0.142857
false
0.071429
0.142857
0
0.428571
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
4
a2e3fa131b2865dd3f6e643deff6e3a4ec10050a
360
py
Python
flask_pdv/app.py
evaristofm/api_transacao
3a8d1d1459f5f58c8df7473fe6f7ea1a438738d2
[ "MIT" ]
null
null
null
flask_pdv/app.py
evaristofm/api_transacao
3a8d1d1459f5f58c8df7473fe6f7ea1a438738d2
[ "MIT" ]
null
null
null
flask_pdv/app.py
evaristofm/api_transacao
3a8d1d1459f5f58c8df7473fe6f7ea1a438738d2
[ "MIT" ]
null
null
null
from flask import Flask from flask_pdv.ext import db from flask_pdv.ext import config from flask_pdv.ext import migrate from flask_pdv.ext import api from flask_pdv.ext import cli def create_app(): app = Flask(__name__) config.init_app(app) api.init_app(app) db.init_app(app) migrate.init_app(app) cli.init_app(app) return app
18
33
0.736111
62
360
4.032258
0.258065
0.216
0.24
0.3
0.42
0
0
0
0
0
0
0
0.191667
360
20
34
18
0.859107
0
0
0
0
0
0
0
0
0
0
0
0
1
0.071429
false
0
0.428571
0
0.571429
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
0c20abafa15debab1b5d835f410b001a0fe2e8ef
245
py
Python
Python/Samples/State/Context.py
plasroom46/DesignPattern.Sample
86c05c5ae356cb01f3d075f248c45da3e6534d07
[ "MIT" ]
null
null
null
Python/Samples/State/Context.py
plasroom46/DesignPattern.Sample
86c05c5ae356cb01f3d075f248c45da3e6534d07
[ "MIT" ]
null
null
null
Python/Samples/State/Context.py
plasroom46/DesignPattern.Sample
86c05c5ae356cb01f3d075f248c45da3e6534d07
[ "MIT" ]
null
null
null
import States class Context: def __init__(self): self.currentState = States.StateToDo() def action(self): self.currentState.action(self) def actionBack(self): self.currentState.actionBack(self)
20.416667
46
0.636735
25
245
6.08
0.44
0.157895
0.394737
0
0
0
0
0
0
0
0
0
0.269388
245
12
47
20.416667
0.849162
0
0
0
0
0
0
0
0
0
0
0
0
1
0.375
false
0
0.125
0
0.625
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
0c2a69918361c42f63c775a2aba35cc8b90112cb
89
py
Python
tests/perf/test_long_cycles_nbrows_cycle_length_41000_140.py
shaido987/pyaf
b9afd089557bed6b90b246d3712c481ae26a1957
[ "BSD-3-Clause" ]
377
2016-10-13T20:52:44.000Z
2022-03-29T18:04:14.000Z
tests/perf/test_long_cycles_nbrows_cycle_length_41000_140.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
160
2016-10-13T16:11:53.000Z
2022-03-28T04:21:34.000Z
tests/perf/test_long_cycles_nbrows_cycle_length_41000_140.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
63
2017-03-09T14:51:18.000Z
2022-03-27T20:52:57.000Z
import tests.perf.test_cycles_full_long_long as gen gen.test_nbrows_cycle(41000 , 140)
17.8
51
0.831461
16
89
4.25
0.8125
0
0
0
0
0
0
0
0
0
0
0.1
0.101124
89
4
52
22.25
0.75
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
0c304d0373e18c08f0ba12ba62b31938fd6bd50b
144
py
Python
autoforecast/models/tests/neural_net_test.py
GuillaumeSimo/autoforecast
7205ce5f426b2950f7de2877303fb5999edf63be
[ "MIT" ]
null
null
null
autoforecast/models/tests/neural_net_test.py
GuillaumeSimo/autoforecast
7205ce5f426b2950f7de2877303fb5999edf63be
[ "MIT" ]
7
2021-02-06T09:43:47.000Z
2021-07-02T21:20:28.000Z
autoforecast/models/tests/neural_net_test.py
GuillaumeSimo/autoforecast
7205ce5f426b2950f7de2877303fb5999edf63be
[ "MIT" ]
1
2021-06-30T03:50:03.000Z
2021-06-30T03:50:03.000Z
import unittest from ..neural_net import * # noqa: F401 class NeuralNetTest(unittest.TestCase): def test_neural_net(self): pass
16
40
0.708333
18
144
5.5
0.777778
0.181818
0
0
0
0
0
0
0
0
0
0.026316
0.208333
144
8
41
18
0.842105
0.069444
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0.2
0.4
0
0.8
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
1
0
0
0
0
4
0c350b84606f895fd99eb05c2282360125c1ce83
1,254
py
Python
odata/migrations/0007_auto_20210302_2131.py
Captain777747/agasownServer
70952d083ed81a216cf12708d3403b09b9480e28
[ "MIT" ]
1
2021-03-17T21:38:55.000Z
2021-03-17T21:38:55.000Z
odata/migrations/0007_auto_20210302_2131.py
Captain777747/agasownServer
70952d083ed81a216cf12708d3403b09b9480e28
[ "MIT" ]
null
null
null
odata/migrations/0007_auto_20210302_2131.py
Captain777747/agasownServer
70952d083ed81a216cf12708d3403b09b9480e28
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2021-03-02 21:31 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('odata', '0006_auto_20210302_2127'), ] operations = [ migrations.AlterField( model_name='customer', name='id', field=models.AutoField(primary_key=True, serialize=False), ), migrations.AlterField( model_name='order', name='id', field=models.AutoField(primary_key=True, serialize=False), ), migrations.AlterField( model_name='orderdetail', name='id', field=models.AutoField(primary_key=True, serialize=False), ), migrations.AlterField( model_name='payment', name='id', field=models.AutoField(primary_key=True, serialize=False), ), migrations.AlterField( model_name='product', name='id', field=models.AutoField(primary_key=True, serialize=False), ), migrations.AlterField( model_name='shipper', name='id', field=models.AutoField(primary_key=True, serialize=False), ), ]
28.5
70
0.562998
119
1,254
5.806723
0.361345
0.173661
0.217077
0.251809
0.678726
0.678726
0.678726
0.678726
0.678726
0.678726
0
0.036385
0.320574
1,254
43
71
29.162791
0.774648
0.035885
0
0.648649
1
0
0.070423
0.019056
0
0
0
0
0
1
0
false
0
0.027027
0
0.108108
0
0
0
0
null
0
1
1
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
0c649be2cebc8c7dad3b486c09ab406310482061
93
py
Python
jiraniapp/apps.py
Steve-design/Jirani
e386b1ede05f6c2067af2621c21ce802ec72ae73
[ "MIT" ]
null
null
null
jiraniapp/apps.py
Steve-design/Jirani
e386b1ede05f6c2067af2621c21ce802ec72ae73
[ "MIT" ]
8
2020-02-12T03:21:51.000Z
2022-03-12T00:07:01.000Z
jiraniapp/apps.py
Steve-design/Jirani
e386b1ede05f6c2067af2621c21ce802ec72ae73
[ "MIT" ]
null
null
null
from django.apps import AppConfig class JiraniappConfig(AppConfig): name = 'jiraniapp'
15.5
33
0.763441
10
93
7.1
0.9
0
0
0
0
0
0
0
0
0
0
0
0.16129
93
5
34
18.6
0.910256
0
0
0
0
0
0.096774
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
a745ff8acebd84c8d356db7823040bbfd4b872f8
6,490
py
Python
neodroidagent/common/architectures/distributional/normal.py
gitter-badger/agent
3f53eaa7ebdee3ab423c7b58785d584fe1a6ae11
[ "Apache-2.0" ]
8
2017-09-13T08:28:44.000Z
2022-01-21T15:59:19.000Z
neodroidagent/common/architectures/distributional/normal.py
gitter-badger/agent
3f53eaa7ebdee3ab423c7b58785d584fe1a6ae11
[ "Apache-2.0" ]
4
2019-03-22T13:49:16.000Z
2019-03-25T13:49:39.000Z
neodroidagent/common/architectures/distributional/normal.py
gitter-badger/agent
3f53eaa7ebdee3ab423c7b58785d584fe1a6ae11
[ "Apache-2.0" ]
3
2017-09-13T08:31:38.000Z
2021-11-09T11:22:27.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import time from typing import List, Sequence import torch from torch import nn from torch.distributions import MultivariateNormal, Normal from draugr.torch_utilities import fan_in_init from neodroidagent.common.architectures.mlp import MLP __author__ = "Christian Heider Nielsen" __doc__ = "" __all__ = [ "ShallowStdNormalMLP", "MultiDimensionalNormalMLP", "MultiVariateNormalMLP", "MultipleNormalMLP", ] from warg import passes_kws_to class ShallowStdNormalMLP(MLP): def __init__( self, output_shape: Sequence = (2,), mean_head_activation: callable = None, fixed_log_std: torch.Tensor = None, **kwargs ): super().__init__( output_shape=output_shape, mean_head_activation=mean_head_activation, **kwargs ) self.mean_head_activation = mean_head_activation if fixed_log_std is None: self.log_std = nn.Parameter( torch.zeros(output_shape[-1]), requires_grad=True ) else: assert fixed_log_std == output_shape[-1] self.log_std = fixed_log_std def forward( self, *x, min_std=-20, max_std=2, **kwargs ) -> torch.distributions.Distribution: mean = super().forward(*x, min_std=min_std, **kwargs) if self.mean_head_activation: mean = self.mean_head_activation(mean) log_std = torch.clamp(self.log_std, min_std, max_std) std = log_std.exp().expand_as(mean) return Normal(mean, std) class ShallowStdMultiVariateNormalMLP(MLP): def __init__( self, output_shape: Sequence = (2,), mean_head_activation: callable = None, fixed_log_std: torch.Tensor = None, **kwargs ): super().__init__( output_shape=output_shape, mean_head_activation=mean_head_activation, **kwargs ) self.mean_head_activation = mean_head_activation if fixed_log_std is None: self.log_std = nn.Parameter(torch.zeros(*output_shape), requires_grad=True) else: assert fixed_log_std.shape == output_shape self.log_std = fixed_log_std def forward(self, *x, min_std=-20, max_std=2, **kwargs): mean = super().forward(*x, min_std=min_std, **kwargs) if self.mean_head_activation: mean = self.mean_head_activation(mean) log_std = torch.clamp(self.log_std, min_std, max_std) std = log_std.exp().expand_as(mean) std = torch.diag_embed(std, 0, dim1=-2, dim2=-1) return MultivariateNormal(mean, std) class MultiDimensionalNormalMLP(MLP): def __init__( self, output_shape: Sequence = (2,), mean_head_activation: callable = None, **kwargs ): output_shape = (*output_shape, *output_shape) assert len(output_shape) == 2 self.mean_head_activation = mean_head_activation super().__init__( output_shape=output_shape, mean_head_activation=mean_head_activation, **kwargs ) def forward(self, *x, min_std=-20, max_std=2, **kwargs) -> Normal: mean, log_std = super().forward(*x, min_std=min_std, **kwargs) if self.mean_head_activation: mean = self.mean_head_activation(mean) return Normal(mean, torch.clamp(log_std, min_std, max_std).exp()) class MultiVariateNormalMLP(MLP): @passes_kws_to(MLP.__init__) def __init__( self, output_shape: Sequence = (2,), mean_head_activation: callable = None, **kwargs ): output_shape = (*output_shape, *output_shape) assert len(output_shape) == 2 self.mean_head_activation = mean_head_activation super().__init__(output_shape=output_shape, **kwargs) @passes_kws_to(MLP.forward) def forward(self, *x, min_std=-20, max_std=2, **kwargs) -> MultivariateNormal: mean, log_std = super().forward(*x, min_std=min_std, **kwargs) if self.mean_head_activation: mean = self.mean_head_activation(mean) log_std = torch.clamp(log_std, min_std, max_std) std = log_std.exp() std = torch.diag_embed(std, 0, dim1=-2, dim2=-1) return MultivariateNormal(mean, std) class MultipleNormalMLP(MLP): def __init__( self, output_shape: int = 2, mean_head_activation: callable = None, **kwargs ): output_shape = (2,) * output_shape super().__init__(output_shape=output_shape, **kwargs) self.mean_head_activation = mean_head_activation fan_in_init(self) def forward(self, *x, min_std=-20, max_std=2, **kwargs) -> List[Normal]: out = super().forward(*x, min_std=min_std, **kwargs) outs = [] for mean, log_std in out: if self.mean_head_activation: mean = self.mean_head_activation(mean) outs.append(Normal(mean, torch.clamp(log_std, min_std, max_std).exp())) return outs if __name__ == "__main__": def stest_normal(): s = (10,) a = 10 model = MultipleNormalMLP(input_shape=s, output_shape=a) inp = torch.rand(s) s_ = time.time() dis = model.forward(inp) print(dis) a_ = [d.sample() for d in dis] print(time.time() - s_, a_) def stest_multi_dim_normal(): s = (4,) a = (10,) model = MultiDimensionalNormalMLP(input_shape=s, output_shape=a) inp = torch.rand(s) s_ = time.time() dis = model.forward(inp) print(dis) a_ = dis.sample() print(time.time() - s_, a_) def stest_multi_var_normal(): s = (10,) a = (10,) model = MultiVariateNormalMLP(input_shape=s, output_shape=a) inp = torch.rand(s) s_ = time.time() dis = model.forward(inp) print(dis) a_ = dis.sample() print(time.time() - s_, a_) def stest_shallow(): s = (10,) a = (10,) model = ShallowStdNormalMLP(input_shape=s, output_shape=a) inp = torch.rand(s) s_ = time.time() dis = model.forward(inp) print(dis) a_ = dis.sample() print(time.time() - s_, a_) stest_normal() print("\n") stest_multi_dim_normal() print("\n") stest_multi_var_normal() print("\n") stest_shallow()
29.366516
87
0.608166
798
6,490
4.600251
0.139098
0.098883
0.152002
0.107873
0.751294
0.736312
0.72024
0.710161
0.660038
0.646963
0
0.011104
0.278428
6,490
220
88
29.5
0.772795
0.006626
0
0.623596
0
0
0.018619
0.007137
0
0
0
0
0.022472
1
0.078652
false
0.016854
0.044944
0
0.179775
0.061798
0
0
0
null
0
0
0
0
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
a74ca3615bfd471ed76db8bdd061f260a4a89353
1,340
py
Python
modle/update_db.py
cqkenuo/NessusToReport
44e0f5b420ec55619e06d942f8dbf78268640de3
[ "Apache-2.0" ]
1
2021-07-15T09:42:33.000Z
2021-07-15T09:42:33.000Z
modle/update_db.py
cqkenuo/NessusToReport
44e0f5b420ec55619e06d942f8dbf78268640de3
[ "Apache-2.0" ]
null
null
null
modle/update_db.py
cqkenuo/NessusToReport
44e0f5b420ec55619e06d942f8dbf78268640de3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding:utf-8 -*- # ------------------------------------------------------------ # File: update_db.py.py # Created Date: 2020/6/27 # Created Time: 1:30 # Author: Hypdncy # Author Mail: hypdncy@outlook.com # Copyright (c) 2020 Hypdncy # ------------------------------------------------------------ # .::::. # .::::::::. # ::::::::::: # ..:::::::::::' # '::::::::::::' # .:::::::::: # '::::::::::::::.. # ..::::::::::::. # ``:::::::::::::::: # ::::``:::::::::' .:::. # ::::' ':::::' .::::::::. # .::::' :::: .:::::::'::::. # .:::' ::::: .:::::::::' ':::::. # .::' :::::.:::::::::' ':::::. # .::' ::::::::::::::' ``::::. # ...::: ::::::::::::' ``::. # ````':. ':::::::::' ::::.. # '.:::::' ':'````.. # ------------------------------------------------------------ class UpdateDb(object): """ 更新数据库 """ def __init__(self): """ 初始化 """ def update(self): """ 更新数据库 :return: """
30.454545
62
0.150746
45
1,340
4.377778
0.777778
0
0
0
0
0
0
0
0
0
0
0.020126
0.406716
1,340
44
63
30.454545
0.227673
0.835075
0
0
0
0
0
0
0
0
0
0
0
1
0.666667
false
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
a76a4fe2fe79573e658f2edfd9130a950b5ed048
196
py
Python
SchoolApp/apps/timetable/forms.py
Ceres445/Team-10-Python-Project
8a97642f019548d137dff564f9fdcc8f92761cc8
[ "MIT" ]
4
2021-06-25T04:17:08.000Z
2022-02-13T14:48:38.000Z
SchoolApp/apps/timetable/forms.py
Ceres445/Team-10-Python-Project
8a97642f019548d137dff564f9fdcc8f92761cc8
[ "MIT" ]
20
2021-07-05T08:59:41.000Z
2022-02-07T02:06:33.000Z
SchoolApp/apps/timetable/forms.py
Ceres445/Team-10-Python-Project
8a97642f019548d137dff564f9fdcc8f92761cc8
[ "MIT" ]
1
2021-07-22T07:38:00.000Z
2021-07-22T07:38:00.000Z
from django.forms import ModelForm from apps.timetable.models import ClassTime class ClassTimeCreationForm(ModelForm): class Meta: model = ClassTime exclude = ['permanent']
19.6
43
0.72449
20
196
7.1
0.75
0
0
0
0
0
0
0
0
0
0
0
0.209184
196
9
44
21.777778
0.916129
0
0
0
0
0
0.045918
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
a779afa9245506776b36ea5343b982e186526a26
4,913
py
Python
wanplusapi/call_api.py
ProHiryu/api-wanplus-crawler
4df8b37b70c19933357179b3cce192534f7b0ea0
[ "MIT" ]
9
2017-03-28T11:44:52.000Z
2021-02-18T14:50:57.000Z
wanplusapi/call_api.py
ProHiryu/api-wanplus-crawler
4df8b37b70c19933357179b3cce192534f7b0ea0
[ "MIT" ]
null
null
null
wanplusapi/call_api.py
ProHiryu/api-wanplus-crawler
4df8b37b70c19933357179b3cce192534f7b0ea0
[ "MIT" ]
1
2018-03-20T13:39:32.000Z
2018-03-20T13:39:32.000Z
#-*- encoding: UTF-8 -*- import requests from pprint import pprint import json def send_post(eid=348, search_type="team"): url = "http://www.wanplus.com/ajax/stats/list" payload = "_gtk=&draw=1&columns%5B6%5D%5Bname%5D=&columns%5B6%5D%5Bsearchable%5D=true&columns%5B6%5D%5Borderable%5D=true&columns%5B6%5D%5Bsearch%5D%5Bvalue%5D=&columns%5B6%5D%5Bsearch%5D%5Bregex%5D=false&columns%5B7%5D%5Bdata%5D=avgDuration&columns%5B7%5D%5Bname%5D=&columns%5B7%5D%5Bsearchable%5D=true&columns%5B7%5D%5Borderable%5D=true&columns%5B7%5D%5Bsearch%5D%5Bvalue%5D=&columns%5B7%5D%5Bsearch%5D%5Bregex%5D=false&columns%5B8%5D%5Bdata%5D=goldpermatch&columns%5B8%5D%5Bname%5D=&columns%5B8%5D%5Bsearchable%5D=true&columns%5B8%5D%5Borderable%5D=true&columns%5B8%5D%5Bsearch%5D%5Bvalue%5D=&columns%5B8%5D%5Bsearch%5D%5Bregex%5D=false&columns%5B9%5D%5Bdata%5D=goldsPermin&columns%5B9%5D%5Bname%5D=&columns%5B9%5D%5Bsearchable%5D=true&columns%5B9%5D%5Borderable%5D=true&columns%5B9%5D%5Bsearch%5D%5Bvalue%5D=&columns%5B9%5D%5Bsearch%5D%5Bregex%5D=false&columns%5B10%5D%5Bdata%5D=lasthitPermin&columns%5B10%5D%5Bname%5D=&columns%5B10%5D%5Bsearchable%5D=true&columns%5B10%5D%5Borderable%5D=true&columns%5B10%5D%5Bsearch%5D%5Bvalue%5D=&columns%5B10%5D%5Bsearch%5D%5Bregex%5D=false&columns%5B11%5D%5Bdata%5D=dragonkillsPergame&columns%5B11%5D%5Bname%5D=&columns%5B11%5D%5Bsearchable%5D=true&columns%5B11%5D%5Borderable%5D=true&columns%5B11%5D%5Bsearch%5D%5Bvalue%5D=&columns%5B11%5D%5Bsearch%5D%5Bregex%5D=false&columns%5B12%5D%5Bdata%5D=dragonkillspercentage&columns%5B12%5D%5Bname%5D=&columns%5B12%5D%5Bsearchable%5D=true&columns%5B12%5D%5Borderable%5D=true&columns%5B12%5D%5Bsearch%5D%5Bvalue%5D=&columns%5B12%5D%5Bsearch%5D%5Bregex%5D=false&columns%5B13%5D%5Bdata%5D=baronkillsPergame&columns%5B13%5D%5Bname%5D=&columns%5B13%5D%5Bsearchable%5D=true&columns%5B13%5D%5Borderable%5D=true&columns%5B13%5D%5Bsearch%5D%5Bvalue%5D=&columns%5B13%5D%5Bsearch%5D%5Bregex%5D=false&columns%5B14%5D%5Bdata%5D=baronkillspercentage&columns%5B14%5D%5Bname%5D=&columns%5B14%5D%5Bsearchable%5D=true&columns%5B14%5D%5Borderable%5D=true&columns%5B14%5D%5Bsearch%5D%5Bvalue%5D=&columns%5B14%5D%5Bsearch%5D%5Bregex%5D=false&columns%5B15%5D%5Bdata%5D=wardsplacedpermin&columns%5B15%5D%5Bname%5D=&columns%5B15%5D%5Bsearchable%5D=true&columns%5B15%5D%5Borderable%5D=true&columns%5B15%5D%5Bsearch%5D%5Bvalue%5D=&columns%5B15%5D%5Bsearch%5D%5Bregex%5D=false&columns%5B16%5D%5Bdata%5D=wardskilledpermin&columns%5B16%5D%5Bname%5D=&columns%5B16%5D%5Bsearchable%5D=true&columns%5B16%5D%5Borderable%5D=true&columns%5B16%5D%5Bsearch%5D%5Bvalue%5D=&columns%5B16%5D%5Bsearch%5D%5Bregex%5D=false&columns%5B17%5D%5Bdata%5D=wardskilledrate&columns%5B17%5D%5Bname%5D=&columns%5B17%5D%5Bsearchable%5D=true&columns%5B17%5D%5Borderable%5D=true&columns%5B17%5D%5Bsearch%5D%5Bvalue%5D=&columns%5B17%5D%5Bsearch%5D%5Bregex%5D=false&columns%5B18%5D%5Bdata%5D=towertakensPergame&columns%5B18%5D%5Bname%5D=&columns%5B18%5D%5Bsearchable%5D=true&columns%5B18%5D%5Borderable%5D=true&columns%5B18%5D%5Bsearch%5D%5Bvalue%5D=&columns%5B18%5D%5Bsearch%5D%5Bregex%5D=false&columns%5B19%5D%5Bdata%5D=towerdeathsPergame&columns%5B19%5D%5Bname%5D=&columns%5B19%5D%5Bsearchable%5D=true&columns%5B19%5D%5Borderable%5D=true&columns%5B19%5D%5Bsearch%5D%5Bvalue%5D=&columns%5B19%5D%5Bsearch%5D%5Bregex%5D=false&order%5B0%5D%5Bcolumn%5D=2&order%5B0%5D%5Bdir%5D=desc&start=0&length=2000&search%5Bvalue%5D=&search%5Bregex%5D=false&area=1&type=" + \ search_type + \ "&gametype=2&filter=%7B%22team%22%3A%7B%7D%2C%22player%22%3A%7B%7D%2C%22meta%22%3A%7B%7D%7D&eid=" + \ str(eid) headers = { 'accept': "application/json, text/javascript, */*; q=0.01", 'accept-encoding': "gzip, deflate", 'accept-language': "zh-CN,zh;q=0.8,en;q=0.6", 'connection': "keep-alive", 'content-length': "4708", 'content-type': "application/x-www-form-urlencoded", 'cookie': "isShown=1; Hm_lvt_f69cb5ec253c6012b2aa449fb925c1c2=1488528574,1488621073,1490580027; Hm_lpvt_f69cb5ec253c6012b2aa449fb925c1c2=1490600776; wanplus_token=f55762936952a11e6e1b6809edaf60d7; wanplus_storage=lf4m67eka3o; wanplus_sid=b60787ee359800a68f1836298203718b; wanplus_csrf=_csrf_tk_787702669; gameType=2", 'host': "www.wanplus.com", 'origin': "http://www.wanplus.com", 'referer': "http://www.wanplus.com/lol/teamstats", 'user-agent': "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.110 Safari/537.36", 'x-requested-with': "XMLHttpRequest", 'cache-control': "no-cache", 'postman-token': "5bd2cc96-2acd-380d-f166-a7680ac69ffd" } response = requests.request("POST", url, data=payload, headers=headers) if response.status_code == 200: data = json.loads(response.text) else: print(response.status_code) return data
122.825
3,288
0.767963
761
4,913
4.932983
0.235217
0.067128
0.096963
0.063399
0.470165
0.225626
0.114278
0
0
0
0
0.169264
0.059638
4,913
39
3,289
125.974359
0.64329
0.004681
0
0
0
0.129032
0.867458
0.763346
0
0
0
0
0
1
0.032258
false
0
0.096774
0
0.16129
0.064516
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
a78ba677da513a09bcb2aea88328b5836b4a22dd
44
py
Python
foiamachine/local/lib/python2.7/encodings/iso2022_jp_2.py
dwillis/foiamachine
26d3b02870227696cdaab639c39d47b2a7a42ae5
[ "Unlicense", "MIT" ]
3
2021-08-07T04:01:55.000Z
2021-08-07T05:12:11.000Z
foiamachine/local/lib/python2.7/encodings/iso2022_jp_2.py
dwillis/foiamachine
26d3b02870227696cdaab639c39d47b2a7a42ae5
[ "Unlicense", "MIT" ]
null
null
null
foiamachine/local/lib/python2.7/encodings/iso2022_jp_2.py
dwillis/foiamachine
26d3b02870227696cdaab639c39d47b2a7a42ae5
[ "Unlicense", "MIT" ]
1
2021-08-05T22:51:14.000Z
2021-08-05T22:51:14.000Z
/usr/lib/python2.7/encodings/iso2022_jp_2.py
44
44
0.840909
9
44
3.888889
1
0
0
0
0
0
0
0
0
0
0
0.159091
0
44
1
44
44
0.636364
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
4
a78fe11fae44de7fb958b25126866e48c27ca33a
19,548
py
Python
src/grassfire/test/attic/test.py
bmmeijers/grassfire
20995d97ca41763d40b23f0fadb6e0581dff859b
[ "MIT" ]
1
2021-07-09T14:53:34.000Z
2021-07-09T14:53:34.000Z
src/grassfire/test/attic/test.py
bmmeijers/grassfire
20995d97ca41763d40b23f0fadb6e0581dff859b
[ "MIT" ]
null
null
null
src/grassfire/test/attic/test.py
bmmeijers/grassfire
20995d97ca41763d40b23f0fadb6e0581dff859b
[ "MIT" ]
null
null
null
from grassfire.primitives import KineticTriangle, KineticVertex, Event, Skeleton from grassfire.events import handle_split_event triangles = {} ### 140003451728400 k = KineticTriangle() V = [] v = KineticVertex() v.origin = (6.0, 0.0) v.velocity = (0.8611874208078342, -0.9999999999999998) V.append(v) v = KineticVertex() v.origin = (4.0, 0.0) v.velocity = (-0.9049875621120889, -0.9999999999999999) V.append(v) v = KineticVertex() v.origin = (5.061111111111111, 2.5555555555555554) v.velocity = (0, 0) V.append(v) k.vertices = V triangles[ 140003451728400 ] = k ### 140003451728464 k = KineticTriangle() V = [] v = KineticVertex() v.origin = (6.0, 0.0) v.velocity = (-0.8611874208078343, 1.0) V.append(v) v = KineticVertex() v.origin = (3.8, 2.0) v.velocity = (0.5885834574042905, 4.164041047077979) V.append(v) v = KineticVertex() v.origin = (4.0, 0.0) v.velocity = (0.9049875621120889, 0.9999999999999999) V.append(v) k.vertices = V triangles[ 140003451728464 ] = k ### 140003451728528 k = KineticTriangle() V = [] v = KineticVertex() v.origin = (6.3, 2.0) v.velocity = (-0.3899868930592274, 4.141336851657371) V.append(v) v = KineticVertex() v.origin = (3.8, 2.0) v.velocity = (0.5885834574042905, 4.164041047077979) V.append(v) v = KineticVertex() v.origin = (6.0, 0.0) v.velocity = (-0.8611874208078343, 1.0) V.append(v) k.vertices = V triangles[ 140003451728528 ] = k ### 140003451728592 k = KineticTriangle() V = [] v = KineticVertex() v.origin = (6.3, 2.0) v.velocity = (-0.3899868930592274, 4.141336851657371) V.append(v) v = KineticVertex() v.origin = (7.874999999999999, -2.4999999999999925) v.velocity = (-6.256419934967577, 20.90257411425264) V.append(v) v = KineticVertex() v.origin = (6.0, 5.0) v.velocity = (-0.7807764064044151, -1.0) V.append(v) k.vertices = V triangles[ 140003451728592 ] = k ### 140003451728656 k = KineticTriangle() V = [] v = KineticVertex() v.origin = (6.0, 5.0) v.velocity = (-0.7807764064044151, -1.0) V.append(v) v = KineticVertex() v.origin = (3.8, 2.0) v.velocity = (0.5885834574042905, 4.164041047077979) V.append(v) v = KineticVertex() v.origin = (6.3, 2.0) v.velocity = (-0.3899868930592274, 4.141336851657371) V.append(v) k.vertices = V triangles[ 140003451728656 ] = k ### 140003451728720 k = KineticTriangle() V = [] v = KineticVertex() v.origin = (3.5, 3.0) v.velocity = (-0.0, -4.123105625617657) V.append(v) v = KineticVertex() v.origin = (0.0, 0.0) v.velocity = (0.4142135623730952, 1.0) V.append(v) v = KineticVertex() v.origin = (3.0, 0.0) v.velocity = (-0.6770329614269007, 1.0) V.append(v) k.vertices = V triangles[ 140003451728720 ] = k ### 140003451728784 k = KineticTriangle() V = [] v = KineticVertex() v.origin = (3.0, 0.0) v.velocity = (-0.6770329614269007, 1.0) V.append(v) v = KineticVertex() v.origin = (3.8, 2.0) v.velocity = (0.5885834574042905, 4.164041047077979) V.append(v) v = KineticVertex() v.origin = (3.5, 3.0) v.velocity = (-0.0, -4.123105625617657) V.append(v) k.vertices = V triangles[ 140003451728784 ] = k ### 140003451728848 k = KineticTriangle() V = [] v = KineticVertex() v.origin = (3.0, 0.0) v.velocity = (0.6770329614269006, -0.9999999999999998) V.append(v) v = KineticVertex() v.origin = (4.0, 0.0) v.velocity = (-0.9049875621120889, -0.9999999999999999) V.append(v) v = KineticVertex() v.origin = (3.8, 2.0) v.velocity = (-0.5885834574042905, -4.164041047077979) V.append(v) k.vertices = V triangles[ 140003451728848 ] = k ### 140003451728912 k = KineticTriangle() V = [] v = KineticVertex() v.origin = (5.061111111111111, 2.5555555555555554) v.velocity = (0, 0) V.append(v) v = KineticVertex() v.origin = (4.0, 0.0) v.velocity = (-0.9049875621120889, -0.9999999999999999) V.append(v) v = KineticVertex() v.origin = (3.0, 0.0) v.velocity = (0.6770329614269006, -0.9999999999999998) V.append(v) k.vertices = V triangles[ 140003451728912 ] = k ### 140003451728976 k = KineticTriangle() V = [] v = KineticVertex() v.origin = (3.0, 0.0) v.velocity = (0.6770329614269006, -0.9999999999999998) V.append(v) v = KineticVertex() v.origin = (0.0, 0.0) v.velocity = (-0.4142135623730952, -1.0) V.append(v) v = KineticVertex() v.origin = (5.061111111111111, 2.5555555555555554) v.velocity = (0, 0) V.append(v) k.vertices = V triangles[ 140003451728976 ] = k ### 140003451729040 k = KineticTriangle() V = [] v = KineticVertex() v.origin = (-2.0, 2.0) v.velocity = (-1.286795680042036, -0.12741788233105927) V.append(v) v = KineticVertex() v.origin = (5.061111111111111, 2.5555555555555554) v.velocity = (0, 0) V.append(v) v = KineticVertex() v.origin = (0.0, 0.0) v.velocity = (-0.4142135623730952, -1.0) V.append(v) k.vertices = V triangles[ 140003451729040 ] = k ### 140003451729168 k = KineticTriangle() V = [] v = KineticVertex() v.origin = (5.061111111111111, 2.5555555555555554) v.velocity = (0, 0) V.append(v) v = KineticVertex() v.origin = (-2.0, 2.0) v.velocity = (-1.286795680042036, -0.12741788233105927) V.append(v) v = KineticVertex() v.origin = (0.0, 5.0) v.velocity = (-0.5351837584879964, 1.0) V.append(v) k.vertices = V triangles[ 140003451729168 ] = k ### 140003451729232 k = KineticTriangle() V = [] v = KineticVertex() v.origin = (5.061111111111111, 2.5555555555555554) v.velocity = (0, 0) V.append(v) v = KineticVertex() v.origin = (0.0, 5.0) v.velocity = (-0.5351837584879964, 1.0) V.append(v) v = KineticVertex() v.origin = (3.0, 5.0) v.velocity = (0.7807764064044151, 1.0) V.append(v) k.vertices = V triangles[ 140003451729232 ] = k ### 140003451729296 k = KineticTriangle() V = [] v = KineticVertex() v.origin = (5.061111111111111, 2.5555555555555554) v.velocity = (0, 0) V.append(v) v = KineticVertex() v.origin = (3.0, 5.0) v.velocity = (0.7807764064044151, 1.0) V.append(v) v = KineticVertex() v.origin = (4.0, 5.0) v.velocity = (-0.7807764064044151, 1.0) V.append(v) k.vertices = V triangles[ 140003451729296 ] = k ### 140003451729360 k = KineticTriangle() V = [] v = KineticVertex() v.origin = (5.061111111111111, 2.5555555555555554) v.velocity = (0, 0) V.append(v) v = KineticVertex() v.origin = (4.0, 5.0) v.velocity = (-0.7807764064044151, 1.0) V.append(v) v = KineticVertex() v.origin = (6.0, 5.0) v.velocity = (0.7807764064044151, 1.0) V.append(v) k.vertices = V triangles[ 140003451729360 ] = k ### 140003451729424 k = KineticTriangle() V = [] v = KineticVertex() v.origin = (5.061111111111111, 2.5555555555555554) v.velocity = (0, 0) V.append(v) v = KineticVertex() v.origin = (6.0, 5.0) v.velocity = (0.7807764064044151, 1.0) V.append(v) v = KineticVertex() v.origin = (7.0, 5.0) v.velocity = (-0.7807764064044151, 1.0) V.append(v) k.vertices = V triangles[ 140003451729424 ] = k ### 140003451729488 k = KineticTriangle() V = [] v = KineticVertex() v.origin = (5.061111111111111, 2.5555555555555554) v.velocity = (0, 0) V.append(v) v = KineticVertex() v.origin = (7.0, 5.0) v.velocity = (-0.7807764064044151, 1.0) V.append(v) v = KineticVertex() v.origin = (10.0, 5.0) v.velocity = (0.1622776601683794, 1.0) V.append(v) k.vertices = V triangles[ 140003451729488 ] = k ### 140003451729552 k = KineticTriangle() V = [] v = KineticVertex() v.origin = (13.0, 4.0) v.velocity = (1.6324555320336755, 0.5099407093782344) V.append(v) v = KineticVertex() v.origin = (5.061111111111111, 2.5555555555555554) v.velocity = (0, 0) V.append(v) v = KineticVertex() v.origin = (10.0, 5.0) v.velocity = (0.1622776601683794, 1.0) V.append(v) k.vertices = V triangles[ 140003451729552 ] = k ### 140003451729680 k = KineticTriangle() V = [] v = KineticVertex() v.origin = (10.0, 0.0) v.velocity = (0.5000000000000001, -1.0000000000000002) V.append(v) v = KineticVertex() v.origin = (5.061111111111111, 2.5555555555555554) v.velocity = (0, 0) V.append(v) v = KineticVertex() v.origin = (13.0, 4.0) v.velocity = (1.6324555320336755, 0.5099407093782344) V.append(v) k.vertices = V triangles[ 140003451729680 ] = k ### 140003451729744 k = KineticTriangle() V = [] v = KineticVertex() v.origin = (7.0, 0.0) v.velocity = (-0.7094810050208543, -0.9999999999999998) V.append(v) v = KineticVertex() v.origin = (5.061111111111111, 2.5555555555555554) v.velocity = (0, 0) V.append(v) v = KineticVertex() v.origin = (10.0, 0.0) v.velocity = (0.5000000000000001, -1.0000000000000002) V.append(v) k.vertices = V triangles[ 140003451729744 ] = k ### 140003451729808 k = KineticTriangle() V = [] v = KineticVertex() v.origin = (6.0, 0.0) v.velocity = (0.8611874208078342, -0.9999999999999998) V.append(v) v = KineticVertex() v.origin = (5.061111111111111, 2.5555555555555554) v.velocity = (0, 0) V.append(v) v = KineticVertex() v.origin = (7.0, 0.0) v.velocity = (-0.7094810050208543, -0.9999999999999998) V.append(v) k.vertices = V triangles[ 140003451729808 ] = k ### 140003451729872 k = KineticTriangle() V = [] v = KineticVertex() v.origin = (6.3, 2.0) v.velocity = (0.38998689305922796, -4.141336851657377) V.append(v) v = KineticVertex() v.origin = (6.0, 0.0) v.velocity = (0.8611874208078342, -0.9999999999999998) V.append(v) v = KineticVertex() v.origin = (7.0, 0.0) v.velocity = (-0.7094810050208543, -0.9999999999999998) V.append(v) k.vertices = V triangles[ 140003451729872 ] = k ### 140003451729936 k = KineticTriangle() V = [] v = KineticVertex() v.origin = (7.0, 0.0) v.velocity = (0.7094810050208544, 0.9999999999999999) V.append(v) v = KineticVertex() v.origin = (10.0, 0.0) v.velocity = (-0.5000000000000001, 1.0000000000000002) V.append(v) v = KineticVertex() v.origin = (6.270833333333333, 2.083333333333333) v.velocity = (1.0427366558279314, 0.04784099769406555) V.append(v) k.vertices = V triangles[ 140003451729936 ] = k ### 140003451730064 k = KineticTriangle() V = [] v = KineticVertex() v.origin = (6.270833333333333, 2.083333333333333) v.velocity = (1.0427366558279314, 0.04784099769406555) V.append(v) v = KineticVertex() v.origin = (10.0, 0.0) v.velocity = (-0.5000000000000001, 1.0000000000000002) V.append(v) v = KineticVertex() v.origin = (10.0, 5.0) v.velocity = (-0.1622776601683794, -1.0) V.append(v) k.vertices = V triangles[ 140003451730064 ] = k ### 140003451730128 k = KineticTriangle() V = [] v = KineticVertex() v.origin = (6.270833333333333, 2.083333333333333) v.velocity = (1.0427366558279314, 0.04784099769406555) V.append(v) v = KineticVertex() v.origin = (10.0, 5.0) v.velocity = (-0.1622776601683794, -1.0) V.append(v) v = KineticVertex() v.origin = (7.0, 5.0) v.velocity = (0.7807764064044151, -1.0) V.append(v) k.vertices = V triangles[ 140003451730128 ] = k ### 140003451730192 k = KineticTriangle() V = [] v = KineticVertex() v.origin = (7.0, 5.0) v.velocity = (-0.7807764064044151, 1.0) V.append(v) v = KineticVertex() v.origin = (6.0, 5.0) v.velocity = (0.7807764064044151, 1.0) V.append(v) v = KineticVertex() v.origin = (6.5, 3.0) v.velocity = (0.0, 4.1231056256176615) V.append(v) k.vertices = V triangles[ 140003451730192 ] = k ### 140003451730256 k = KineticTriangle() V = [] v = KineticVertex() v.origin = (3.8, 2.0) v.velocity = (0.5885834574042905, 4.164041047077979) V.append(v) v = KineticVertex() v.origin = (6.0, 5.0) v.velocity = (-0.7807764064044151, -1.0) V.append(v) v = KineticVertex() v.origin = (4.0, 5.0) v.velocity = (0.7807764064044151, -1.0) V.append(v) k.vertices = V triangles[ 140003451730256 ] = k ### 140003451730320 k = KineticTriangle() V = [] v = KineticVertex() v.origin = (4.0, 5.0) v.velocity = (0.7807764064044151, -1.0) V.append(v) v = KineticVertex() v.origin = (3.5, 3.0) v.velocity = (-0.0, -4.123105625617657) V.append(v) v = KineticVertex() v.origin = (3.8, 2.0) v.velocity = (0.5885834574042905, 4.164041047077979) V.append(v) k.vertices = V triangles[ 140003451730320 ] = k ### 140003451730384 k = KineticTriangle() V = [] v = KineticVertex() v.origin = (4.0, 5.0) v.velocity = (-0.7807764064044151, 1.0) V.append(v) v = KineticVertex() v.origin = (3.0, 5.0) v.velocity = (0.7807764064044151, 1.0) V.append(v) v = KineticVertex() v.origin = (3.5, 3.0) v.velocity = (0.0, 4.1231056256176615) V.append(v) k.vertices = V triangles[ 140003451730384 ] = k ### 140003451730448 k = KineticTriangle() V = [] v = KineticVertex() v.origin = (0.0, 5.0) v.velocity = (0.5351837584879964, -1.0) V.append(v) v = KineticVertex() v.origin = (3.5, 3.0) v.velocity = (-0.0, -4.123105625617657) V.append(v) v = KineticVertex() v.origin = (3.0, 5.0) v.velocity = (-0.7807764064044151, -1.0) V.append(v) k.vertices = V triangles[ 140003451730448 ] = k ### 140003451730512 k = KineticTriangle() V = [] v = KineticVertex() v.origin = (0.0, 0.0) v.velocity = (0.4142135623730952, 1.0) V.append(v) v = KineticVertex() v.origin = (3.5, 3.0) v.velocity = (-0.0, -4.123105625617657) V.append(v) v = KineticVertex() v.origin = (0.0, 5.0) v.velocity = (0.5351837584879964, -1.0) V.append(v) k.vertices = V triangles[ 140003451730512 ] = k ### 140003451730576 k = KineticTriangle() V = [] v = KineticVertex() v.origin = (0.0, 0.0) v.velocity = (0.4142135623730952, 1.0) V.append(v) v = KineticVertex() v.origin = (0.0, 5.0) v.velocity = (0.5351837584879964, -1.0) V.append(v) v = KineticVertex() v.origin = (-2.0, 2.0) v.velocity = (1.286795680042036, 0.12741788233105927) V.append(v) k.vertices = V triangles[ 140003451730576 ] = k ### 140003451730640 k = KineticTriangle() V = [] v = KineticVertex() v.origin = (10.0, 5.0) v.velocity = (-0.1622776601683794, -1.0) V.append(v) v = KineticVertex() v.origin = (10.0, 0.0) v.velocity = (-0.5000000000000001, 1.0000000000000002) V.append(v) v = KineticVertex() v.origin = (13.0, 4.0) v.velocity = (-1.6324555320336758, -0.5099407093782345) V.append(v) k.vertices = V triangles[ 140003451730640 ] = k ### neighbour relationships n = [ triangles[140003451728912], triangles[140003451729808], None ] triangles[ 140003451728400 ].neighbours = n triangles[ 140003451728400 ].neighbours = n n = [ None, None, triangles[140003451728528] ] triangles[ 140003451728464 ].neighbours = n triangles[ 140003451728464 ].neighbours = n n = [ triangles[140003451728464], None, triangles[140003451728656] ] triangles[ 140003451728528 ].neighbours = n triangles[ 140003451728528 ].neighbours = n n = [ None, triangles[140003451728656], None ] triangles[ 140003451728592 ].neighbours = n triangles[ 140003451728592 ].neighbours = n n = [ triangles[140003451728528], triangles[140003451728592], triangles[140003451730256] ] triangles[ 140003451728656 ].neighbours = n triangles[ 140003451728656 ].neighbours = n n = [ None, triangles[140003451728784], triangles[140003451730512] ] triangles[ 140003451728720 ].neighbours = n triangles[ 140003451728720 ].neighbours = n n = [ triangles[140003451730320], triangles[140003451728720], None ] triangles[ 140003451728784 ].neighbours = n triangles[ 140003451728784 ].neighbours = n n = [ None, None, triangles[140003451728912] ] triangles[ 140003451728848 ].neighbours = n triangles[ 140003451728848 ].neighbours = n n = [ triangles[140003451728848], triangles[140003451728976], triangles[140003451728400] ] triangles[ 140003451728912 ].neighbours = n triangles[ 140003451728912 ].neighbours = n n = [ triangles[140003451729040], triangles[140003451728912], None ] triangles[ 140003451728976 ].neighbours = n triangles[ 140003451728976 ].neighbours = n n = [ triangles[140003451728976], None, triangles[140003451729168] ] triangles[ 140003451729040 ].neighbours = n triangles[ 140003451729040 ].neighbours = n n = [ None, triangles[140003451729232], triangles[140003451729040] ] triangles[ 140003451729168 ].neighbours = n triangles[ 140003451729168 ].neighbours = n n = [ None, triangles[140003451729296], triangles[140003451729168] ] triangles[ 140003451729232 ].neighbours = n triangles[ 140003451729232 ].neighbours = n n = [ triangles[140003451730384], triangles[140003451729360], triangles[140003451729232] ] triangles[ 140003451729296 ].neighbours = n triangles[ 140003451729296 ].neighbours = n n = [ None, triangles[140003451729424], triangles[140003451729296] ] triangles[ 140003451729360 ].neighbours = n triangles[ 140003451729360 ].neighbours = n n = [ triangles[140003451730192], triangles[140003451729488], triangles[140003451729360] ] triangles[ 140003451729424 ].neighbours = n triangles[ 140003451729424 ].neighbours = n n = [ None, triangles[140003451729552], triangles[140003451729424] ] triangles[ 140003451729488 ].neighbours = n triangles[ 140003451729488 ].neighbours = n n = [ triangles[140003451729488], None, triangles[140003451729680] ] triangles[ 140003451729552 ].neighbours = n triangles[ 140003451729552 ].neighbours = n n = [ triangles[140003451729552], None, triangles[140003451729744] ] triangles[ 140003451729680 ].neighbours = n triangles[ 140003451729680 ].neighbours = n n = [ triangles[140003451729680], None, triangles[140003451729808] ] triangles[ 140003451729744 ].neighbours = n triangles[ 140003451729744 ].neighbours = n n = [ triangles[140003451729744], triangles[140003451729872], triangles[140003451728400] ] triangles[ 140003451729808 ].neighbours = n triangles[ 140003451729808 ].neighbours = n n = [ triangles[140003451729808], None, None ] triangles[ 140003451729872 ].neighbours = n triangles[ 140003451729872 ].neighbours = n n = [ triangles[140003451730064], None, None ] triangles[ 140003451729936 ].neighbours = n triangles[ 140003451729936 ].neighbours = n n = [ triangles[140003451730640], triangles[140003451730128], triangles[140003451729936] ] triangles[ 140003451730064 ].neighbours = n triangles[ 140003451730064 ].neighbours = n n = [ None, None, triangles[140003451730064] ] triangles[ 140003451730128 ].neighbours = n triangles[ 140003451730128 ].neighbours = n n = [ None, None, triangles[140003451729424] ] triangles[ 140003451730192 ].neighbours = n triangles[ 140003451730192 ].neighbours = n n = [ None, triangles[140003451730320], triangles[140003451728656] ] triangles[ 140003451730256 ].neighbours = n triangles[ 140003451730256 ].neighbours = n n = [ triangles[140003451728784], triangles[140003451730256], None ] triangles[ 140003451730320 ].neighbours = n triangles[ 140003451730320 ].neighbours = n n = [ None, None, triangles[140003451729296] ] triangles[ 140003451730384 ].neighbours = n triangles[ 140003451730384 ].neighbours = n n = [ None, None, triangles[140003451730512] ] triangles[ 140003451730448 ].neighbours = n triangles[ 140003451730448 ].neighbours = n n = [ triangles[140003451730448], triangles[140003451730576], triangles[140003451728720] ] triangles[ 140003451730512 ].neighbours = n triangles[ 140003451730512 ].neighbours = n n = [ None, None, triangles[140003451730512] ] triangles[ 140003451730576 ].neighbours = n triangles[ 140003451730576 ].neighbours = n n = [ None, None, triangles[140003451730064] ] triangles[ 140003451730640 ].neighbours = n triangles[ 140003451730640 ].neighbours = n time = 0.2567605783167400401723057 interior = {} for tid in triangles: tri = triangles[tid] skip = False for v in tri.vertices: if v.origin == (5.061111111111111, 2.5555555555555554): skip = True if skip: continue interior[tid] = tri #0.1175049556691678126485456 print tri.str_at(time) print interior with open("/tmp/debug.wkt", "w") as fh: fh.write("id;wkt\n") for tid, tri in interior.iteritems(): fh.write("{};{}\n".format(tid, tri.str_at(time))) candidate_id = 140003451728784 evt = Event(when=time, tri=interior[140003451728784], side=2, tp="split") skel = Skeleton() skel.triangles = interior.values() class QueueMock(object): """Mock for the priority queue """ def add(self, one): pass def remove(self, one): pass def discard(self, one): pass queue = QueueMock() handle_split_event(evt, skel, queue)
27.610169
90
0.708205
2,582
19,548
5.359024
0.060418
0.019224
0.107321
0.114476
0.613934
0.601286
0.590012
0.576136
0.55843
0.545928
0
0.363044
0.12876
19,548
708
91
27.610169
0.449416
0.029568
0
0.84697
0
0
0.001859
0
0
0
0
0
0
0
null
null
0.004545
0.00303
null
null
0.00303
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
1
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
4
a7a9a9e80a85407042fd0315f16fa70d303f55c8
271
py
Python
skal_website_1/products/urls.py
mthd98/web_app_test_1
787411eebce239993774441449daa82159e1481e
[ "MIT" ]
null
null
null
skal_website_1/products/urls.py
mthd98/web_app_test_1
787411eebce239993774441449daa82159e1481e
[ "MIT" ]
null
null
null
skal_website_1/products/urls.py
mthd98/web_app_test_1
787411eebce239993774441449daa82159e1481e
[ "MIT" ]
null
null
null
from django.urls import path from .views import show_products_page,show_product_detail_page urlpatterns = [ path('products/', show_products_page,name='products-page'), path('products/<int:id>', show_product_detail_page,name='product-detail-page'), ]
33.875
84
0.738007
36
271
5.277778
0.416667
0.189474
0.268421
0.221053
0
0
0
0
0
0
0
0
0.136531
271
8
85
33.875
0.811966
0
0
0
0
0
0.218868
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
a7b2a7db9800aede8f0f84d99552243abd40d62c
97
py
Python
supplements/apps.py
jeffshek/betterself
51468253fc31373eb96e0e82189b9413f3d76ff5
[ "MIT" ]
98
2017-07-29T14:26:36.000Z
2022-02-28T04:10:15.000Z
supplements/apps.py
jeffshek/betterself
51468253fc31373eb96e0e82189b9413f3d76ff5
[ "MIT" ]
1,483
2017-05-30T00:05:56.000Z
2022-03-31T12:37:06.000Z
supplements/apps.py
lawrendran/betterself
51468253fc31373eb96e0e82189b9413f3d76ff5
[ "MIT" ]
13
2017-11-08T00:02:35.000Z
2022-02-28T04:10:32.000Z
from django.apps import AppConfig class SupplementsConfig(AppConfig): name = 'supplements'
16.166667
35
0.773196
10
97
7.5
0.9
0
0
0
0
0
0
0
0
0
0
0
0.154639
97
5
36
19.4
0.914634
0
0
0
0
0
0.113402
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
a7bc2999e95f0edf54597770cf25422747ef8ca2
209
py
Python
aio_syringe/main.py
sihrc/aio-syringe
e99052bed9e08908f26fc77ab5b238bda5ef704d
[ "MIT" ]
null
null
null
aio_syringe/main.py
sihrc/aio-syringe
e99052bed9e08908f26fc77ab5b238bda5ef704d
[ "MIT" ]
null
null
null
aio_syringe/main.py
sihrc/aio-syringe
e99052bed9e08908f26fc77ab5b238bda5ef704d
[ "MIT" ]
null
null
null
""" Main entrypoint --------------- Just-in-time injections awaitable from asyncio coroutines Author: Chris Lee Email: chrisklee93@gmail.com """ def main(): pass if __name__ == "__main__": main()
12.294118
57
0.645933
24
209
5.291667
0.875
0
0
0
0
0
0
0
0
0
0
0.011628
0.177033
209
16
58
13.0625
0.726744
0.655502
0
0
0
0
0.125
0
0
0
0
0
0
1
0.25
true
0.25
0
0
0.25
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
1
0
0
0
0
0
4
a7c735797c9758d0f7e0fb2cafab899037aa8136
44
py
Python
madyel/__init__.py
madyel/rtsp_curl
ce0b2d8c7469ba660734d42d1c23550f0e3a5355
[ "MIT" ]
6
2019-09-24T06:23:47.000Z
2021-05-30T14:25:55.000Z
madyel/__init__.py
madyel/rtsp_curl
ce0b2d8c7469ba660734d42d1c23550f0e3a5355
[ "MIT" ]
1
2020-07-01T02:53:50.000Z
2020-07-01T02:53:50.000Z
madyel/__init__.py
madyel/rtsp_curl
ce0b2d8c7469ba660734d42d1c23550f0e3a5355
[ "MIT" ]
null
null
null
from .rtsp_curl import * __version__ = '0.8'
22
24
0.727273
7
44
3.857143
1
0
0
0
0
0
0
0
0
0
0
0.052632
0.136364
44
2
25
22
0.657895
0
0
0
0
0
0.066667
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
a7cd147acd33574f713772ea634a45612bc6c1a2
275
py
Python
Chapter 02/Chap02_Example2.18.py
Anancha/Programming-Techniques-using-Python
e80c329d2a27383909d358741a5cab03cb22fd8b
[ "MIT" ]
null
null
null
Chapter 02/Chap02_Example2.18.py
Anancha/Programming-Techniques-using-Python
e80c329d2a27383909d358741a5cab03cb22fd8b
[ "MIT" ]
null
null
null
Chapter 02/Chap02_Example2.18.py
Anancha/Programming-Techniques-using-Python
e80c329d2a27383909d358741a5cab03cb22fd8b
[ "MIT" ]
null
null
null
s1 = "HELLO BEGINNERS" print(s1.casefold()) # -- CF1 s2 = "Hello Beginners" print(s2.casefold()) # -- CF2 if s1.casefold() == s2.casefold(): # -- CF3 print("Both the strings are same after conversion") else: print("Both the strings are different after conversion ")
27.5
61
0.669091
37
275
4.972973
0.513514
0.152174
0.206522
0.206522
0.23913
0
0
0
0
0
0
0.039648
0.174545
275
9
62
30.555556
0.770925
0.072727
0
0
0
0
0.478088
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
4
ac0f24e9eed1bad58e384a2639eb2b0e20d1633d
230
py
Python
assets/notebooks/themes/jupyter-notebook-one-dark-theme/startup.py
StevenJokess/learning-quantum-computing-course
f2fcb3892345c09db00ce11cac18fb96d7c244db
[ "MIT" ]
4
2020-08-20T12:49:54.000Z
2021-08-17T02:41:13.000Z
assets/notebooks/themes/jupyter-notebook-one-dark-theme/startup.py
5l1v3r1/learning-quantum-computing-course
f2fcb3892345c09db00ce11cac18fb96d7c244db
[ "MIT" ]
null
null
null
assets/notebooks/themes/jupyter-notebook-one-dark-theme/startup.py
5l1v3r1/learning-quantum-computing-course
f2fcb3892345c09db00ce11cac18fb96d7c244db
[ "MIT" ]
4
2021-01-26T10:52:19.000Z
2022-03-24T15:25:03.000Z
# import jtplot module in notebook from jupyterthemes import jtplot # choose which theme to inherit plotting style from # onedork | grade3 | oceans16 | chesterish | monokai | solarizedl | solarizedd jtplot.style(theme='onedork')
32.857143
78
0.782609
28
230
6.428571
0.75
0.133333
0
0
0
0
0
0
0
0
0
0.015385
0.152174
230
6
79
38.333333
0.907692
0.691304
0
0
0
0
0.104478
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
ac117e052c63530291f0ab00934b6386d82d59d7
596
py
Python
simpleml/models/classifiers/sklearn/dummy.py
ptoman/SimpleML
a829ee05da01a75b64982d91a012e9274b6f7c6e
[ "BSD-3-Clause" ]
15
2018-08-19T19:36:23.000Z
2021-11-09T17:47:18.000Z
simpleml/models/classifiers/sklearn/dummy.py
ptoman/SimpleML
a829ee05da01a75b64982d91a012e9274b6f7c6e
[ "BSD-3-Clause" ]
75
2020-10-11T17:58:59.000Z
2022-03-29T22:34:54.000Z
simpleml/models/classifiers/sklearn/dummy.py
ptoman/SimpleML
a829ee05da01a75b64982d91a012e9274b6f7c6e
[ "BSD-3-Clause" ]
4
2018-04-30T23:09:42.000Z
2022-01-19T08:03:18.000Z
''' Wrapper module around `sklearn.dummy` ''' __author__ = 'Elisha Yadgaran' from .base_sklearn_classifier import SklearnClassifier from simpleml.models.classifiers.external_models import ClassificationExternalModelMixin from sklearn.dummy import DummyClassifier ''' Dummy classifier ''' class WrappedSklearnDummyClassifier(DummyClassifier, ClassificationExternalModelMixin): # Dummy model doesnt have any feature metadata pass class SklearnDummyClassifier(SklearnClassifier): def _create_external_model(self, **kwargs): return WrappedSklearnDummyClassifier(**kwargs)
23.84
88
0.808725
53
596
8.90566
0.641509
0.050847
0
0
0
0
0
0
0
0
0
0
0.122483
596
24
89
24.833333
0.902486
0.139262
0
0
0
0
0.031185
0
0
0
0
0
0
1
0.111111
false
0.111111
0.333333
0.111111
0.777778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
1
1
1
0
0
4
ac28fb5e7fe8eee8494e0143e9c31527e151ee31
1,638
gyp
Python
binding.gyp
thlorenz/procps
b713185dc7b4c82d8cbc9f4be7e345f09df365bb
[ "MIT" ]
5
2016-02-14T11:03:22.000Z
2019-11-27T12:29:36.000Z
binding.gyp
thlorenz/procps
b713185dc7b4c82d8cbc9f4be7e345f09df365bb
[ "MIT" ]
null
null
null
binding.gyp
thlorenz/procps
b713185dc7b4c82d8cbc9f4be7e345f09df365bb
[ "MIT" ]
9
2017-08-31T11:03:02.000Z
2021-11-21T14:09:19.000Z
{ 'targets': [ { 'conditions': [ [ 'OS != "linux"', { 'target_name': 'procps_only_supported_on_linux', } ], [ 'OS == "linux"', { 'target_name': 'procps', 'sources': [ 'src/procps.cc' , 'src/proc.cc' , 'src/diskstat.cc' , 'src/partitionstat.cc' , 'src/slabcache.cc' , 'deps/procps/proc/alloc.c' , 'deps/procps/proc/devname.c' , 'deps/procps/proc/escape.c' , 'deps/procps/proc/ksym.c' , 'deps/procps/proc/pwcache.c' , 'deps/procps/proc/readproc.c' , 'deps/procps/proc/sig.c' , 'deps/procps/proc/slab.c' , 'deps/procps/proc/sysinfo.c' , 'deps/procps/proc/version.c' , 'deps/procps/proc/whattime.c' ], 'include_dirs': [ './deps/procps/include/' , './deps/procps/' , '<!(node -e "require(\'nan\')")' ], # VERSION numbers are picked up by procps (see procps/proc/version.c) # TODO: Why does the C++ compiler pick up the C flags and complain about them ??? 'cflags': [ '-DPACKAGE_NAME=\"procps\"' , '-DPACKAGE_VERSION=\"3.3.9\"' , '-DBUILD_WITH_WHINE=1' ], 'cflags!' : [ '-fno-exceptions', '-fno-tree-vrp', '-fno-tree-sink' ], 'cflags_c' : [ '--std=gnu99', '-Wno-string-plus-int', '-Wno-sign-compare' ], 'cflags_cc' : [ '-fexceptions', '-frtti' ], } ], ] } ] }
33.428571
91
0.446276
162
1,638
4.432099
0.469136
0.181059
0.214485
0.208914
0.064067
0
0
0
0
0
0
0.005842
0.373016
1,638
48
92
34.125
0.693281
0.089744
0
0.111111
0
0
0.497312
0.254704
0
0
0
0.020833
0
1
0
true
0
0
0
0
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
1
0
0
0
0
0
0
4
ac6b70bd8c478a938c4385c2107c90123bb214fc
1,512
py
Python
mainwindow/webfunc.py
philliphqs/Safey
a60a4f379083373c4615e51f09e70a4fd4e68ef3
[ "MIT" ]
2
2020-11-13T20:02:53.000Z
2021-06-27T16:05:18.000Z
mainwindow/webfunc.py
philliphqs/Safey
a60a4f379083373c4615e51f09e70a4fd4e68ef3
[ "MIT" ]
null
null
null
mainwindow/webfunc.py
philliphqs/Safey
a60a4f379083373c4615e51f09e70a4fd4e68ef3
[ "MIT" ]
null
null
null
import webbrowser from assets import properties import subprocess def hqsartworks(sender, data): webbrowser.open_new_tab(url=properties.Website) def hqsbotInvite(sender, data): webbrowser.open_new_tab(url=f'{properties.Website}/invitelink.html') def hqsartworksServerInvite(sender, data): webbrowser.open_new_tab(url=f'{properties.hqsartworksDiscordInvite}') def AlphaclanServerInvite(sender, data): webbrowser.open_new_tab(url=f'{properties.AlphaclanDiscordInvite}') def DevInstagram(sender, data): webbrowser.open_new_tab(url=f'https://www.instagram.com/{properties.DevInstagram}') def OrgInstagram(sender, data): webbrowser.open_new_tab(url=f'https://www.instagram.com/{properties.OrgInstagram}') def DevTwitter(sender, data): webbrowser.open_new_tab(url=f'https://www.twitter.com/{properties.DevTwitter}') def OrgTwitter(sender, data): webbrowser.open_new_tab(url=f'https://www.twitter.com/{properties.OrgTwitter}') def DevSnapchat(sender, data): webbrowser.open_new_tab(url=f'https://www.snapchat.com/add/{properties.DevSnapchat}') def OrgSnapchat(sender, data): webbrowser.open_new_tab(url=f'https://www.snapchat.com/{properties.OrgSnapchat}') def mailto_contact(sender, data): subprocess.Popen(['start', 'mailto:contact@hqsartworks.me']) def alphaclanWebsite(sender, data): webbrowser.open_new_tab(url=f'{properties.AlphaclanServerIP}') def jailbreakInviteLink(sender, data): webbrowser.open_new_tab(url=f'{properties.JailbreakInviteLink}')
36
89
0.779762
190
1,512
6.073684
0.231579
0.112652
0.207972
0.249567
0.529463
0.529463
0.529463
0.500867
0.500867
0.310225
0
0
0.082672
1,512
42
90
36
0.832012
0
0
0
0
0
0.331791
0.131527
0
0
0
0
0
1
0.448276
false
0
0.103448
0
0.551724
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
3baace12818f94cc646625ce2f2fed1d742c3647
76
py
Python
client/tvdb/sessions/__init__.py
labrys/panoptes
1bda8f44add4b221eb228ba2057fba9c6eee7219
[ "MIT" ]
null
null
null
client/tvdb/sessions/__init__.py
labrys/panoptes
1bda8f44add4b221eb228ba2057fba9c6eee7219
[ "MIT" ]
null
null
null
client/tvdb/sessions/__init__.py
labrys/panoptes
1bda8f44add4b221eb228ba2057fba9c6eee7219
[ "MIT" ]
null
null
null
# coding=utf-8 """ This package provides a custom session for TheTVDB. """
12.666667
51
0.697368
11
76
4.818182
1
0
0
0
0
0
0
0
0
0
0
0.015873
0.171053
76
5
52
15.2
0.825397
0.855263
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
3bcab9d0508eefadfa9e4c4bbab9bab0098e2329
318
py
Python
src/antidote/_providers/__init__.py
Finistere/antidote
97751e0e6a1b8bd638a1c33212345c7a84ad97b8
[ "MIT" ]
52
2017-12-17T19:52:37.000Z
2022-03-29T10:24:04.000Z
src/antidote/_providers/__init__.py
Finistere/antidote
97751e0e6a1b8bd638a1c33212345c7a84ad97b8
[ "MIT" ]
32
2018-11-02T08:49:16.000Z
2022-03-25T22:23:30.000Z
src/antidote/_providers/__init__.py
Finistere/antidote
97751e0e6a1b8bd638a1c33212345c7a84ad97b8
[ "MIT" ]
5
2019-05-17T18:26:14.000Z
2021-12-25T23:13:31.000Z
from .factory import FactoryProvider from .indirect import IndirectProvider from .lazy import Lazy, LazyProvider from .service import ServiceProvider from .world_test import WorldTestProvider __all__ = ['FactoryProvider', 'IndirectProvider', 'Lazy', 'LazyProvider', 'ServiceProvider', 'WorldTestProvider']
35.333333
73
0.789308
29
318
8.482759
0.482759
0.130081
0
0
0
0
0
0
0
0
0
0
0.128931
318
8
74
39.75
0.888087
0
0
0
0
0
0.248428
0
0
0
0
0
0
1
0
false
0
0.714286
0
0.714286
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
3bd0a52be6cb1dbe4c6b7b13255f8ae6f1e5013a
2,379
py
Python
cogs/Image.py
ThatGuyZapdos/Zapbot
aa01445c6c791560560eeca81668bbf053b629f4
[ "MIT" ]
2
2021-03-06T04:39:03.000Z
2021-03-08T09:46:54.000Z
cogs/Image.py
Zapd0s/Zapbot
00a43b0cdf953a4d1c06eadb18c30a75d48a1a23
[ "MIT" ]
null
null
null
cogs/Image.py
Zapd0s/Zapbot
00a43b0cdf953a4d1c06eadb18c30a75d48a1a23
[ "MIT" ]
null
null
null
import discord from discord.ext import commands import os import asyncdagpi class Image(commands.Cog): def __init__(self,client): self.client = client self.dagpi = asyncdagpi.Client(os.getenv("DAGPI_TOKEN")) @commands.command() async def pixel(self, ctx, member: discord.Member): url = str(member.avatar_url_as(format="png", size=1024)) img = await self.dagpi.image_process(asyncdagpi.ImageFeatures.pixel(), url) file = discord.File(fp=img.image,filename=f"pixel.{img.format}") await ctx.send(file = file) @commands.command() async def triggered(self, ctx, member: discord.Member): async with ctx.channel.typing(): url = str(member.avatar_url_as(format="png")) img = await self.dagpi.image_process(asyncdagpi.ImageFeatures.triggered(), url) file = discord.File(fp=img.image,filename=f"triggered.{img.format}") await ctx.send(file = file) @commands.command() async def wasted(self, ctx, member: discord.Member): async with ctx.channel.typing(): url = str(member.avatar_url_as(format="png")) img = await self.dagpi.image_process(asyncdagpi.ImageFeatures.wasted(), url) file = discord.File(fp=img.image,filename=f"wasted.{img.format}") await ctx.send(file = file) @commands.command() async def ascii(self, ctx, member: discord.Member): async with ctx.channel.typing(): url = str(member.avatar_url_as(format="png")) img = await self.dagpi.image_process(asyncdagpi.ImageFeatures.ascii(), url) file = discord.File(fp=img.image,filename=f"ascii.{img.format}") await ctx.send(file = file) @commands.command() async def wanted(self, ctx, member: discord.Member): async with ctx.channel.typing(): url = str(member.avatar_url_as(format="png")) img = await self.dagpi.image_process(asyncdagpi.ImageFeatures.wanted(), url) file = discord.File(fp=img.image,filename=f"wanted.{img.format}") await ctx.send(file = file) @commands.command() async def magik(self, ctx, member: discord.Member): async with ctx.channel.typing(): url = str(member.avatar_url_as(format="png")) img = await self.dagpi.image_process(asyncdagpi.ImageFeatures.magik(), url) file = discord.File(fp=img.image,filename=f"magik.{img.format}") await ctx.send(file = file) def setup(client): client.add_cog(Image(client))
38.370968
85
0.696931
329
2,379
4.966565
0.148936
0.038556
0.073439
0.084455
0.793146
0.777234
0.777234
0.759486
0.708078
0.572215
0
0.001998
0.15847
2,379
61
86
39
0.814186
0
0
0.431373
0
0
0.060109
0.009248
0
0
0
0
0
1
0.039216
false
0
0.078431
0
0.137255
0
0
0
0
null
0
0
0
0
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
3bd9c9518ee83e1564d3b0cb2c21891e91664a4e
103
py
Python
haveaniceday/tables_of_month/apps.py
noracami/haveaniceday
d54518e1a3bfb06c076778937b53c33064a07603
[ "MIT" ]
null
null
null
haveaniceday/tables_of_month/apps.py
noracami/haveaniceday
d54518e1a3bfb06c076778937b53c33064a07603
[ "MIT" ]
null
null
null
haveaniceday/tables_of_month/apps.py
noracami/haveaniceday
d54518e1a3bfb06c076778937b53c33064a07603
[ "MIT" ]
null
null
null
from django.apps import AppConfig class TablesOfMonthConfig(AppConfig): name = 'tables_of_month'
17.166667
37
0.786408
12
103
6.583333
0.916667
0
0
0
0
0
0
0
0
0
0
0
0.145631
103
5
38
20.6
0.897727
0
0
0
0
0
0.145631
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
ce017424861ff25d1ecf934485d8054bdf9c0c9c
100
py
Python
codes_auto/747.min-cost-climbing-stairs.py
smartmark-pro/leetcode_record
6504b733d892a705571eb4eac836fb10e94e56db
[ "MIT" ]
null
null
null
codes_auto/747.min-cost-climbing-stairs.py
smartmark-pro/leetcode_record
6504b733d892a705571eb4eac836fb10e94e56db
[ "MIT" ]
null
null
null
codes_auto/747.min-cost-climbing-stairs.py
smartmark-pro/leetcode_record
6504b733d892a705571eb4eac836fb10e94e56db
[ "MIT" ]
null
null
null
# # @lc app=leetcode.cn id=747 lang=python3 # # [747] min-cost-climbing-stairs # None # @lc code=end
14.285714
41
0.68
17
100
4
0.882353
0
0
0
0
0
0
0
0
0
0
0.081395
0.14
100
7
42
14.285714
0.709302
0.83
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
ce0974984b26bd5f0500966c9c6d49c180567979
321
py
Python
lib/configuration.py
kiedtl/bevbot
419c9577b54b4fc9f3ffd16fea2a9241df6bc635
[ "MIT" ]
null
null
null
lib/configuration.py
kiedtl/bevbot
419c9577b54b4fc9f3ffd16fea2a9241df6bc635
[ "MIT" ]
null
null
null
lib/configuration.py
kiedtl/bevbot
419c9577b54b4fc9f3ffd16fea2a9241df6bc635
[ "MIT" ]
null
null
null
# configuration for the bot. # # tables: # defaults ( key: string, value: string, type ) # #<channel> ( key: string, value: string, type ) # nickname ( key: string, value: string, type ) # # if the #<channel>'s value for a particular key is # not set, it defaults to the value provided in the # defaults table.
29.181818
51
0.660436
45
321
4.711111
0.533333
0.127358
0.198113
0.283019
0.339623
0
0
0
0
0
0
0
0.218069
321
10
52
32.1
0.844622
0.928349
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
ce3bfc7a1a16335ee3beb334f91ce8de6f43d18f
157
py
Python
pyaud_plugins/__init__.py
jshwi/pyaud-plugins
873eea37e3e0d70a484974ef7bbf024356083a03
[ "MIT" ]
null
null
null
pyaud_plugins/__init__.py
jshwi/pyaud-plugins
873eea37e3e0d70a484974ef7bbf024356083a03
[ "MIT" ]
17
2022-01-12T22:33:55.000Z
2022-03-31T22:30:36.000Z
pyaud_plugins/__init__.py
jshwi/pyaud-plugins
873eea37e3e0d70a484974ef7bbf024356083a03
[ "MIT" ]
null
null
null
"""Plugin package for Pyaud.""" from . import _plugins from ._environ import environ from ._version import __version__ __all__ = ["__version__", "environ"]
22.428571
36
0.751592
18
157
5.722222
0.555556
0
0
0
0
0
0
0
0
0
0
0
0.133758
157
6
37
26.166667
0.757353
0.159236
0
0
0
0
0.142857
0
0
0
0
0
0
1
0
false
0
0.75
0
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
cbfbc4078ae9d6498804c4ce1cae2ae84b1ff24b
40
py
Python
prueba/hola.py
EsauMiranda/github-tutorial
5e6e9241cb430659364d147eeab0b52b459527cc
[ "Apache-2.0" ]
null
null
null
prueba/hola.py
EsauMiranda/github-tutorial
5e6e9241cb430659364d147eeab0b52b459527cc
[ "Apache-2.0" ]
null
null
null
prueba/hola.py
EsauMiranda/github-tutorial
5e6e9241cb430659364d147eeab0b52b459527cc
[ "Apache-2.0" ]
null
null
null
x = 3 print("Hola Mundo ", x,", adios")
13.333333
33
0.55
7
40
3.142857
0.857143
0
0
0
0
0
0
0
0
0
0
0.03125
0.2
40
2
34
20
0.65625
0
0
0
0
0
0.45
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
4