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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4c89cc82a761f3aa6c1965c1fd38c524b65feae8 | 70 | py | Python | utils/bleu_metric/__init__.py | arfu2016/DuReader | 66934852c508bff5540596aa71d5ce40c828b37d | [
"Apache-2.0"
] | null | null | null | utils/bleu_metric/__init__.py | arfu2016/DuReader | 66934852c508bff5540596aa71d5ce40c828b37d | [
"Apache-2.0"
] | null | null | null | utils/bleu_metric/__init__.py | arfu2016/DuReader | 66934852c508bff5540596aa71d5ce40c828b37d | [
"Apache-2.0"
] | null | null | null | __author__ = 'tylin'
# from .bleu import Bleu
#
# __all__ = ['Bleu']
| 11.666667 | 24 | 0.628571 | 8 | 70 | 4.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 70 | 5 | 25 | 14 | 0.642857 | 0.585714 | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4c94ab2894bb1686a9bf1853b77327943e5a38ed | 1,482 | py | Python | src/content/models.py | b4isty/django-blog | 488761ed17dfc745a10cd7e0a5bd50e6bf142a8d | [
"MIT"
] | null | null | null | src/content/models.py | b4isty/django-blog | 488761ed17dfc745a10cd7e0a5bd50e6bf142a8d | [
"MIT"
] | null | null | null | src/content/models.py | b4isty/django-blog | 488761ed17dfc745a10cd7e0a5bd50e6bf142a8d | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
from django.db import models
from django.db.models.signals import post_save
class Blog(models.Model):
author = models.ForeignKey(User)
topic = models.CharField(max... | 27.962264 | 95 | 0.715924 | 198 | 1,482 | 5.131313 | 0.363636 | 0.049213 | 0.035433 | 0.070866 | 0.369094 | 0.17126 | 0 | 0 | 0 | 0 | 0 | 0.009054 | 0.180162 | 1,482 | 52 | 96 | 28.5 | 0.82716 | 0.219973 | 0 | 0.241379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137931 | false | 0 | 0.172414 | 0.103448 | 0.896552 | 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 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
4c96eec4351798bc79455f0e37da21d1941f20ba | 1,857 | py | Python | src/openstackapi/server_meta.py | jiangyt2112/NetworkMonitor | f59944add504c6a081a4434b7f027472e6679e29 | [
"Apache-2.0"
] | null | null | null | src/openstackapi/server_meta.py | jiangyt2112/NetworkMonitor | f59944add504c6a081a4434b7f027472e6679e29 | [
"Apache-2.0"
] | null | null | null | src/openstackapi/server_meta.py | jiangyt2112/NetworkMonitor | f59944add504c6a081a4434b7f027472e6679e29 | [
"Apache-2.0"
] | null | null | null | {
'OS-EXT-STS:task_state': None,
'addresses':
{'int-net':
[
{'OS-EXT-IPS-MAC:mac_addr': 'fa:16:3e:5d:9e:22',
'version': 4,
'addr': '192.168.1.8',
'OS-EXT-IPS:type': 'fixed'
},
{'OS-EXT-IPS-MAC:mac_addr': 'fa:16:3e:5d:9e:22',
'version': 4,
'addr': '192.168.166.23',
'O... | 29.015625 | 74 | 0.661282 | 311 | 1,857 | 3.906752 | 0.366559 | 0.08642 | 0.108642 | 0.138272 | 0.296296 | 0.296296 | 0.279835 | 0.279835 | 0.279835 | 0.279835 | 0 | 0.165144 | 0.175013 | 1,857 | 63 | 75 | 29.47619 | 0.627937 | 0.372106 | 0 | 0.111111 | 0 | 0 | 0.67338 | 0.357268 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4cb6fe74ea030a0a3895ea0acfc0df1d96f18188 | 344 | py | Python | src/test/provision/app/alarm/trigger/test_metrics.py | mycloudandme/spacel-provision | 900b8ada0017f727163c5c2ae464e17d747ba0e8 | [
"MIT"
] | 2 | 2016-05-18T11:10:27.000Z | 2016-05-18T13:25:04.000Z | src/test/provision/app/alarm/trigger/test_metrics.py | mycloudandme/spacel-provision | 900b8ada0017f727163c5c2ae464e17d747ba0e8 | [
"MIT"
] | null | null | null | src/test/provision/app/alarm/trigger/test_metrics.py | mycloudandme/spacel-provision | 900b8ada0017f727163c5c2ae464e17d747ba0e8 | [
"MIT"
] | null | null | null | import unittest
from spacel.provision.app.alarm.trigger.metrics import MetricDefinitions
class TestMetricDefinitions(unittest.TestCase):
def setUp(self):
self.metrics = MetricDefinitions()
def test_get(self):
cpu_metric = self.metrics.get('cpu')
self.assertEquals('CPUUtilization', cp... | 26.461538 | 72 | 0.732558 | 37 | 344 | 6.72973 | 0.621622 | 0.088353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162791 | 344 | 12 | 73 | 28.666667 | 0.864583 | 0 | 0 | 0 | 0 | 0 | 0.078488 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.625 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
4cbc650167660d1d2d16b7c544a4221723d04b1d | 443 | py | Python | Codewars/Even or Odd.py | BerkanR/Programacion | f57a8630c44f5c5eddfb19c2b87e19433d829a58 | [
"Apache-2.0"
] | null | null | null | Codewars/Even or Odd.py | BerkanR/Programacion | f57a8630c44f5c5eddfb19c2b87e19433d829a58 | [
"Apache-2.0"
] | null | null | null | Codewars/Even or Odd.py | BerkanR/Programacion | f57a8630c44f5c5eddfb19c2b87e19433d829a58 | [
"Apache-2.0"
] | null | null | null | # Create a function that takes an integer as an argument and returns "Even" for even numbers or "Odd" for odd numbers.
def even_or_odd(number):
if number % 2 == 0:
return "Even"
else:
return "Odd"
assert (even_or_odd(2)) == "Even", "Debe devolver Even"
assert (even_or_odd(0)) == "Even", "Debe... | 34.076923 | 118 | 0.659142 | 71 | 443 | 3.971831 | 0.394366 | 0.106383 | 0.159574 | 0.212766 | 0.375887 | 0.248227 | 0.248227 | 0.248227 | 0 | 0 | 0 | 0.016949 | 0.200903 | 443 | 13 | 119 | 34.076923 | 0.779661 | 0.261851 | 0 | 0 | 0 | 0 | 0.279141 | 0 | 0 | 0 | 0 | 0 | 0.444444 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4cce357f39475aeaa0bc6a14cc3ce2d8202f7c27 | 766 | py | Python | b3datepicker/conf.py | RDXT/django-bootstrap3-datepicker | e484cd6fe1fbc2e2f307a1424c44ca530d578cab | [
"Apache-2.0"
] | null | null | null | b3datepicker/conf.py | RDXT/django-bootstrap3-datepicker | e484cd6fe1fbc2e2f307a1424c44ca530d578cab | [
"Apache-2.0"
] | null | null | null | b3datepicker/conf.py | RDXT/django-bootstrap3-datepicker | e484cd6fe1fbc2e2f307a1424c44ca530d578cab | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from django.apps import AppConfig
from django.conf import settings as base_settings
class B3datepickerConfig(AppConfig):
name = 'b3datepicker'
class Settings(object):
BOOTSTRAP_DATEPICKER_VERSION = '1.6.4'
B3DATEPICKER_JS = '//cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/... | 30.64 | 123 | 0.729765 | 87 | 766 | 6.206897 | 0.45977 | 0.211111 | 0.144444 | 0.081481 | 0.166667 | 0.166667 | 0.166667 | 0 | 0 | 0 | 0 | 0.013932 | 0.156658 | 766 | 24 | 124 | 31.916667 | 0.821981 | 0.027415 | 0 | 0.133333 | 0 | 0.133333 | 0.261104 | 0.238223 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.133333 | 0 | 0.733333 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
4cf7a636c4bb88b6c1dce5b3b7e9a47095714cec | 246 | py | Python | 300-/372.py | yshshadow/Leetcode | 5097f69bb0050d963c784d6bc0e88a7e871568ed | [
"MIT"
] | null | null | null | 300-/372.py | yshshadow/Leetcode | 5097f69bb0050d963c784d6bc0e88a7e871568ed | [
"MIT"
] | null | null | null | 300-/372.py | yshshadow/Leetcode | 5097f69bb0050d963c784d6bc0e88a7e871568ed | [
"MIT"
] | null | null | null | # Your task is to calculate ab mod 1337 where a is a positive integer and b is an extremely large positive integer given in the form of an array.
#
# Example1:
#
# a = 2
# b = [3]
#
# Result: 8
# Example2:
#
# a = 2
# b = [1,0]
#
# Result: 1024
| 15.375 | 145 | 0.634146 | 44 | 246 | 3.545455 | 0.727273 | 0.192308 | 0.038462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 0.252033 | 246 | 15 | 146 | 16.4 | 0.76087 | 0.878049 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 2 |
980041d335ce7fde9843787059e034bcca39b230 | 1,574 | py | Python | deftwit/forms.py | tobias-fyi/deftwit | 49bf7a680f49111fd2bdeb245f42f1ad70ea88b8 | [
"MIT"
] | null | null | null | deftwit/forms.py | tobias-fyi/deftwit | 49bf7a680f49111fd2bdeb245f42f1ad70ea88b8 | [
"MIT"
] | 4 | 2021-06-02T01:07:39.000Z | 2022-03-12T00:09:40.000Z | deftwit/forms.py | tobias-fyi/deftwit | 49bf7a680f49111fd2bdeb245f42f1ad70ea88b8 | [
"MIT"
] | null | null | null | """
:: deftwit.forms ::
A source of truthyness for deftwit wtforms.
"""
from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField, SelectField
from wtforms.validators import DataRequired, Length
from deftwit.models import DB, User, Tweet
class GetUserForm(FlaskForm):
"""
A general class ... | 27.614035 | 82 | 0.681067 | 198 | 1,574 | 5.383838 | 0.393939 | 0.037523 | 0.033771 | 0.041276 | 0.272045 | 0.225141 | 0.225141 | 0.225141 | 0.225141 | 0.148218 | 0 | 0.008994 | 0.222999 | 1,574 | 56 | 83 | 28.107143 | 0.862633 | 0.43202 | 0 | 0 | 0 | 0 | 0.064087 | 0 | 0 | 0 | 0 | 0.017857 | 0 | 1 | 0 | false | 0 | 0.190476 | 0 | 0.619048 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
9804dac24b1297d6c0d85c7ee40039599e9ff0fd | 858 | py | Python | src/eeyore_nlp/pipelines/__init__.py | dpasse/eeyore | 0420cf9ff6d3ddecfc716e62aa97a00443cb23cb | [
"MIT"
] | null | null | null | src/eeyore_nlp/pipelines/__init__.py | dpasse/eeyore | 0420cf9ff6d3ddecfc716e62aa97a00443cb23cb | [
"MIT"
] | null | null | null | src/eeyore_nlp/pipelines/__init__.py | dpasse/eeyore | 0420cf9ff6d3ddecfc716e62aa97a00443cb23cb | [
"MIT"
] | null | null | null | from .abs import AbsPipe, \
TextPipe, \
ContextPipe
from .context_pipes import ChunkerPipe, \
TokenAttributesPipe, \
TokenTaggerPipe, \
EmptyContextPipe, \
MergerPipe
from .text_... | 40.857143 | 52 | 0.554779 | 50 | 858 | 9.4 | 0.62 | 0.070213 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.407925 | 858 | 20 | 53 | 42.9 | 0.925197 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 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 | 0 | 0 | 0 | 0 | 2 |
e21b89410e317d3f5deb7d9664242785a6054fe1 | 3,140 | py | Python | api/resources/v1/logs.py | thegrowthapp/backend | 37f90822cef9fecb2f0912200fbb2416cd75946c | [
"MIT"
] | 1 | 2018-08-04T07:45:04.000Z | 2018-08-04T07:45:04.000Z | api/resources/v1/logs.py | jonhue/the_growth_app | 37f90822cef9fecb2f0912200fbb2416cd75946c | [
"MIT"
] | 23 | 2018-07-25T19:06:02.000Z | 2018-09-05T13:15:50.000Z | api/resources/v1/logs.py | thegrowthapp/backend | 37f90822cef9fecb2f0912200fbb2416cd75946c | [
"MIT"
] | 1 | 2018-08-04T07:45:07.000Z | 2018-08-04T07:45:07.000Z | from flask import request
from flask_jwt_extended import get_jwt_identity, jwt_required
from flask_restful import Resource
from ...models import Log, Goal
from ...schemas import LogSchema
from .responses import respond
class LogListResource(Resource):
@jwt_required
def get(self):
schema = LogSchema(... | 32.708333 | 80 | 0.601911 | 357 | 3,140 | 5.201681 | 0.210084 | 0.119009 | 0.052773 | 0.094238 | 0.724825 | 0.708131 | 0.673129 | 0.633279 | 0.624663 | 0.624663 | 0 | 0.02231 | 0.271975 | 3,140 | 95 | 81 | 33.052632 | 0.790026 | 0.007325 | 0 | 0.657534 | 0 | 0 | 0.074157 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068493 | false | 0 | 0.082192 | 0 | 0.410959 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
e21eb2940a6e45ddf9d29d3d08bb486ce6a99e81 | 8,110 | py | Python | tests/userprofile/decorators_test.py | BMeu/Aerarium | 119946cead727ef68b5ecea339990d982c006391 | [
"MIT"
] | null | null | null | tests/userprofile/decorators_test.py | BMeu/Aerarium | 119946cead727ef68b5ecea339990d982c006391 | [
"MIT"
] | 139 | 2018-12-26T07:54:31.000Z | 2021-06-01T23:14:45.000Z | tests/userprofile/decorators_test.py | BMeu/Aerarium | 119946cead727ef68b5ecea339990d982c006391 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from unittest import TestCase
from flask import url_for
from flask_login import current_user
from flask_login import login_user
from werkzeug.exceptions import Forbidden
from werkzeug.wrappers import Response
from app import create_app
from app import db
from app.configuration import TestConf... | 31.55642 | 119 | 0.65561 | 913 | 8,110 | 5.673604 | 0.124863 | 0.062548 | 0.040154 | 0.041699 | 0.753089 | 0.733591 | 0.660425 | 0.554247 | 0.544981 | 0.544981 | 0 | 0.008791 | 0.256597 | 8,110 | 256 | 120 | 31.679688 | 0.85039 | 0.182121 | 0 | 0.553191 | 0 | 0 | 0.050105 | 0 | 0 | 0 | 0 | 0 | 0.141844 | 1 | 0.085106 | false | 0.12766 | 0.113475 | 0 | 0.212766 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
e21facbe79f6052701bd40211772aabf1b8bf325 | 3,929 | py | Python | plugins/multi_neighbors/test_multi_neighbors.py | mohnjahoney/website_source | edc86a869b90ae604f32e736d9d5ecd918088e6a | [
"MIT"
] | 13 | 2020-01-27T09:02:25.000Z | 2022-01-20T07:45:26.000Z | plugins/multi_neighbors/test_multi_neighbors.py | mohnjahoney/website_source | edc86a869b90ae604f32e736d9d5ecd918088e6a | [
"MIT"
] | 29 | 2020-03-22T06:57:57.000Z | 2022-01-24T22:46:42.000Z | plugins/multi_neighbors/test_multi_neighbors.py | mohnjahoney/website_source | edc86a869b90ae604f32e736d9d5ecd918088e6a | [
"MIT"
] | 6 | 2020-07-10T00:13:30.000Z | 2022-01-26T08:22:33.000Z | import unittest
import multi_neighbors
class PseudoArticlesGenerator:
def __init__(self, settings=None, articles=None):
self.settings = settings or {}
self.articles = articles or []
class PseudoArticle:
def __init__(self, title=""):
self.title = title
def __repr__(self):
... | 31.943089 | 84 | 0.530924 | 346 | 3,929 | 5.893064 | 0.138728 | 0.293281 | 0.453163 | 0.158901 | 0.648357 | 0.555665 | 0.447769 | 0.447769 | 0.354586 | 0.154978 | 0 | 0.023376 | 0.357597 | 3,929 | 122 | 85 | 32.204918 | 0.784469 | 0.040214 | 0 | 0.385321 | 0 | 0 | 0.035097 | 0.01037 | 0 | 0 | 0 | 0 | 0.12844 | 1 | 0.045872 | false | 0 | 0.018349 | 0.009174 | 0.100917 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e228942e6f59ce0919d5a7cef94269c6a11432ac | 205 | py | Python | easyai/base_name/task_name.py | lpj0822/image_point_cloud_det | 7b20e2f42f3f2ff4881485da58ad188a1f0d0e0f | [
"MIT"
] | 1 | 2020-09-05T09:18:56.000Z | 2020-09-05T09:18:56.000Z | easyai/base_name/task_name.py | lpj0822/image_point_cloud_det | 7b20e2f42f3f2ff4881485da58ad188a1f0d0e0f | [
"MIT"
] | 8 | 2020-04-20T02:18:55.000Z | 2022-03-12T00:24:50.000Z | easyai/base_name/task_name.py | lpj0822/image_point_cloud_det | 7b20e2f42f3f2ff4881485da58ad188a1f0d0e0f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# Author:
class TaskName():
Classify_Task = "classify"
Detect2d_Task = "detect2d"
Segment_Task = "segment"
PC_Classify_Task = "pc_classify"
| 15.769231 | 36 | 0.643902 | 24 | 205 | 5.25 | 0.625 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018405 | 0.204878 | 205 | 12 | 37 | 17.083333 | 0.754601 | 0.239024 | 0 | 0 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
e23416293cc1282878c71d1b9c8f255c61b5c687 | 5,465 | py | Python | roulette.py | Finegorko/roulette_game | 927a617bd7d64fb81e1787543033e93a3ab245cc | [
"MIT"
] | null | null | null | roulette.py | Finegorko/roulette_game | 927a617bd7d64fb81e1787543033e93a3ab245cc | [
"MIT"
] | null | null | null | roulette.py | Finegorko/roulette_game | 927a617bd7d64fb81e1787543033e93a3ab245cc | [
"MIT"
] | null | null | null | # подключаем модуль случайных чисел
import random
# подключаем модуль для графиков
import plotly.graph_objs as go
# сколько денег будет на старте для каждой стратегии
startmoney = 1000000
# коэффициент ставки
c1 = 0.001
# количество побед и проигрышей
win = 0
loose = 0
# количество игр, сыгранный по первой стратег... | 28.316062 | 142 | 0.663861 | 729 | 5,465 | 5 | 0.256516 | 0.019753 | 0.017833 | 0.00823 | 0.704527 | 0.697119 | 0.654047 | 0.654047 | 0.64417 | 0.64417 | 0 | 0.027458 | 0.253614 | 5,465 | 192 | 143 | 28.463542 | 0.860995 | 0.54785 | 0 | 0.700935 | 0 | 0 | 0.088455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.018692 | 0 | 0.018692 | 0.028037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
e2451f2e3c369e5d83c61d77f7454e75089602d2 | 159 | py | Python | xythrion/extensions/__init__.py | fisher60/Xythrion | e109c0966c664130c527614f714a2a94397f9fe5 | [
"MIT"
] | 9 | 2019-12-07T02:39:38.000Z | 2022-03-12T15:50:13.000Z | xythrion/extensions/__init__.py | fisher60/Xythrion | e109c0966c664130c527614f714a2a94397f9fe5 | [
"MIT"
] | 76 | 2020-07-25T00:03:08.000Z | 2022-03-24T07:33:12.000Z | xythrion/extensions/__init__.py | fisher60/Xythrion | e109c0966c664130c527614f714a2a94397f9fe5 | [
"MIT"
] | 10 | 2020-10-09T05:25:12.000Z | 2021-06-02T03:43:02.000Z | from pkgutil import iter_modules
EXTENSIONS = frozenset(
extension.name for extension in iter_modules(("xythrion/extensions",), "xythrion.extensions.")
)
| 26.5 | 98 | 0.773585 | 18 | 159 | 6.722222 | 0.666667 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119497 | 159 | 5 | 99 | 31.8 | 0.864286 | 0 | 0 | 0 | 0 | 0 | 0.245283 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
e24d7940db52f5b0b8534bc6d6b88acab7e02c4d | 2,791 | py | Python | model/knowledge_representation/curriculum.py | e-kolpakov/study-model | e10dd9f0d876c8d434fef99c5ffea80b385ec9ed | [
"MIT"
] | 2 | 2019-04-25T04:59:02.000Z | 2019-05-09T06:14:04.000Z | model/knowledge_representation/curriculum.py | e-kolpakov/study-model | e10dd9f0d876c8d434fef99c5ffea80b385ec9ed | [
"MIT"
] | null | null | null | model/knowledge_representation/curriculum.py | e-kolpakov/study-model | e10dd9f0d876c8d434fef99c5ffea80b385ec9ed | [
"MIT"
] | null | null | null | import logging
__author__ = 'e.kolpakov'
class Curriculum:
def __init__(self):
self._competency_index = {}
self._fact_index = {}
self._lesson_index = {}
def register_competency(self, competency):
"""
Registers competency with curriculum.
:param competency: Com... | 28.191919 | 89 | 0.624866 | 309 | 2,791 | 5.394822 | 0.23301 | 0.04799 | 0.044991 | 0.032394 | 0.041992 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000503 | 0.286994 | 2,791 | 98 | 90 | 28.479592 | 0.837186 | 0.217126 | 0 | 0.046512 | 0 | 0 | 0.016763 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.302326 | false | 0 | 0.023256 | 0.069767 | 0.534884 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
e256117382d072fcdb000be177f4cf88e3678fd1 | 701 | py | Python | singl/utils.py | mpff/hpa-single-cell-classification | 30521ff5e755fb4a02b17ff4bdd5451574dd7ef1 | [
"BSD-3-Clause"
] | null | null | null | singl/utils.py | mpff/hpa-single-cell-classification | 30521ff5e755fb4a02b17ff4bdd5451574dd7ef1 | [
"BSD-3-Clause"
] | null | null | null | singl/utils.py | mpff/hpa-single-cell-classification | 30521ff5e755fb4a02b17ff4bdd5451574dd7ef1 | [
"BSD-3-Clause"
] | null | null | null | import os
import numpy
import pandas
from skimage import io
def read_ids_from_csv(csv_file):
""" Reads a column named 'ID' from csv_file. This function was
created to make sure basic I/O works in unit testing.
"""
csv = pandas.read_csv(csv_file)
return csv.ID
def read_hpa_image(image_id, roo... | 29.208333 | 68 | 0.670471 | 118 | 701 | 3.822034 | 0.533898 | 0.046563 | 0.044346 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001842 | 0.225392 | 701 | 23 | 69 | 30.478261 | 0.828729 | 0.326676 | 0 | 0 | 0 | 0 | 0.08776 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.307692 | 0 | 0.615385 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
e26ddefdd89cd9b79f21df04f639f02173ada5d5 | 2,313 | py | Python | examples/rl_dqgnn/plot_test_curve.py | Sirui-Xu/Arena | 6ae9e69d795919f8775ded5d2dd6d6b60ae8ffea | [
"MIT"
] | 1 | 2021-06-13T11:50:48.000Z | 2021-06-13T11:50:48.000Z | examples/rl_dqgnn/plot_test_curve.py | Sirui-Xu/Arena | 6ae9e69d795919f8775ded5d2dd6d6b60ae8ffea | [
"MIT"
] | null | null | null | examples/rl_dqgnn/plot_test_curve.py | Sirui-Xu/Arena | 6ae9e69d795919f8775ded5d2dd6d6b60ae8ffea | [
"MIT"
] | null | null | null | from matplotlib import pyplot as plt
import pickle
import numpy as np
import os,sys
'''
results = []
for i in range(10):
with open(f'/home/yiran/pc_mapping/arena-v2/examples/bc_saved_models/refactor_success_max_mine/run{i}/test_result.npy', 'rb') as f:
result_i = pickle.load(f)
result_number = [v for (k... | 46.26 | 135 | 0.655426 | 543 | 2,313 | 2.653775 | 0.313076 | 0.093685 | 0.114504 | 0.024983 | 0.160305 | 0.065926 | 0.015267 | 0.015267 | 0 | 0 | 0 | 0.243014 | 0.133593 | 2,313 | 49 | 136 | 47.204082 | 0.476048 | 0 | 0 | 0 | 0 | 0 | 0.067517 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.117647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e280d353268806c071ffaef89147fb98dafb5b0e | 4,766 | py | Python | src/PSTs.py | cosmobobak/Viridithas-Chess | 4eb9b93d4f302496c80f969dd05f8b7c227f3cf4 | [
"MIT"
] | null | null | null | src/PSTs.py | cosmobobak/Viridithas-Chess | 4eb9b93d4f302496c80f969dd05f8b7c227f3cf4 | [
"MIT"
] | null | null | null | src/PSTs.py | cosmobobak/Viridithas-Chess | 4eb9b93d4f302496c80f969dd05f8b7c227f3cf4 | [
"MIT"
] | null | null | null | from dataclasses import dataclass
import chess
# import numpy as np
p, n, b, r, q, k, P, N, B, R, Q, K = range(12)
piece_values = [[126, 781, 825, 1276, 2538, 0], [208, 854, 915, 1380, 2682, 0]]
@dataclass
class S:
midgame: int
endgame: int
PAWN_NORM: int = 1000 // 126
# 'Bonus' contains Piece-Square para... | 41.807018 | 102 | 0.424465 | 923 | 4,766 | 2.146262 | 0.208017 | 0.014134 | 0.010096 | 0.026249 | 0.184755 | 0.149419 | 0.115093 | 0.096416 | 0.096416 | 0.070671 | 0 | 0.231842 | 0.277801 | 4,766 | 113 | 103 | 42.176991 | 0.343696 | 0.077633 | 0 | 0.06383 | 0 | 0 | 0.007304 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.021277 | 0 | 0.053191 | 0 | 0 | 0 | 0 | null | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e2820f86276d22a49bc3aa6f45b7b8eee438be94 | 1,112 | py | Python | backend/app/src/v1/routes.py | alexandersumer/Notare | 84a205b45435771f68a9d2585f97fc8cc3e1b4bd | [
"MIT"
] | 2 | 2019-11-26T14:30:12.000Z | 2020-03-16T19:11:43.000Z | backend/app/src/v1/routes.py | alexanderj2357/Notare | 86e50c049a709cea56e87238ff3e79df88685050 | [
"MIT"
] | 5 | 2021-03-10T00:08:48.000Z | 2021-10-06T07:51:52.000Z | backend/app/src/v1/routes.py | alexandersumer/Notare | 84a205b45435771f68a9d2585f97fc8cc3e1b4bd | [
"MIT"
] | 1 | 2020-02-16T11:51:30.000Z | 2020-02-16T11:51:30.000Z | # -*- coding: utf-8 -*-
###
### DO NOT CHANGE THIS FILE
###
### The code is auto generated, your change will be overwritten by
### code generating.
###
from __future__ import absolute_import
from .api.logout import Logout
from .api.login import Login
from .api.createAccount import Createaccount
from .api.notes import... | 31.771429 | 88 | 0.697842 | 139 | 1,112 | 5.460432 | 0.302158 | 0.073781 | 0.051383 | 0.063241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001049 | 0.142986 | 1,112 | 34 | 89 | 32.705882 | 0.795383 | 0.11241 | 0 | 0 | 1 | 0 | 0.163392 | 0.022751 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.391304 | 0 | 0.391304 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
e2889f9552a8df8d4ef3f7b6208f4a3a9b666a41 | 2,749 | py | Python | examples/tsne/data.py | e-/ANN | dd485320d1eb55e821027ad09013eb10ae07db93 | [
"BSD-2-Clause"
] | 19 | 2017-08-01T05:19:55.000Z | 2022-02-02T15:13:41.000Z | examples/tsne/data.py | e-/ANN | dd485320d1eb55e821027ad09013eb10ae07db93 | [
"BSD-2-Clause"
] | 4 | 2018-10-10T21:35:27.000Z | 2021-07-13T02:24:12.000Z | examples/tsne/data.py | e-/ANN | dd485320d1eb55e821027ad09013eb10ae07db93 | [
"BSD-2-Clause"
] | 5 | 2018-09-24T17:21:05.000Z | 2021-03-02T09:59:35.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import random
import argparse
import sys
import struct
parser = argparse.ArgumentParser(description='Generate input data for the tsne example')
parser.add_argument('path', type=str, help='output path')
parser.add_argument('--sample', type=str, help='sample or random')
pa... | 42.292308 | 103 | 0.552928 | 355 | 2,749 | 4.211268 | 0.278873 | 0.112375 | 0.156522 | 0.170569 | 0.396656 | 0.364548 | 0.364548 | 0.347157 | 0.347157 | 0.347157 | 0 | 0.010938 | 0.301564 | 2,749 | 64 | 104 | 42.953125 | 0.767708 | 0.015278 | 0 | 0.490566 | 1 | 0 | 0.108688 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.075472 | 0 | 0.075472 | 0.396226 | 0 | 0 | 0 | null | 0 | 0 | 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 | 2 |
e28c1e9ada347aa6b3c9fb3d645246bf644c8f81 | 3,675 | py | Python | user/analysis.py | boyayun/tushare | 4d4dba2af403855531940454a703d62e012dba59 | [
"BSD-3-Clause"
] | null | null | null | user/analysis.py | boyayun/tushare | 4d4dba2af403855531940454a703d62e012dba59 | [
"BSD-3-Clause"
] | null | null | null | user/analysis.py | boyayun/tushare | 4d4dba2af403855531940454a703d62e012dba59 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python3
# -*- coding:utf-8 -*-
import os
import sys
import signal
import time
from datetime import datetime
from datetime import timedelta
# import cv2 as cv
import pandas as pd
import matplotlib as mpl
import matplotlib.pyplot as plt # 导入模块 matplotlib.pyplot,并简写成 plt
import numpy as np # 导入... | 32.236842 | 125 | 0.438912 | 598 | 3,675 | 2.645485 | 0.177258 | 0.164349 | 0.212389 | 0.242731 | 0.537295 | 0.519595 | 0.474083 | 0.474083 | 0.474083 | 0.474083 | 0 | 0.163145 | 0.35619 | 3,675 | 113 | 126 | 32.522124 | 0.505495 | 0.111293 | 0 | 0.505376 | 0 | 0.021505 | 0.107044 | 0.062135 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.11828 | 0 | 0.11828 | 0.075269 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e2902f0ef1b2092a5c93ca0f1badae4892cb7d00 | 249 | py | Python | __init__.py | ishay2b/KittiBox | e9494f60230d0673e07a8d4b3404ccb1c5863245 | [
"MIT"
] | null | null | null | __init__.py | ishay2b/KittiBox | e9494f60230d0673e07a8d4b3404ccb1c5863245 | [
"MIT"
] | null | null | null | __init__.py | ishay2b/KittiBox | e9494f60230d0673e07a8d4b3404ccb1c5863245 | [
"MIT"
] | null | null | null |
def git_root():
''' return the root location of git rep
'''
import subprocess
gitroot = subprocess.Popen(['git', 'rev-parse', '--show-toplevel'], stdout=subprocess.PIPE).communicate()[0].rstrip().decode('utf-8')
return gitroot
| 27.666667 | 137 | 0.650602 | 31 | 249 | 5.193548 | 0.774194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009709 | 0.172691 | 249 | 8 | 138 | 31.125 | 0.771845 | 0.140562 | 0 | 0 | 0 | 0 | 0.16 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e2979d2a17a91bdd5d076bd879584eb3af41d4eb | 88 | py | Python | pyro/contrib/bnn/__init__.py | Capri2014/pyro | 546f9010aeb2308ae566726b1cec67a7b4fda9c2 | [
"MIT"
] | 10 | 2020-03-18T14:41:25.000Z | 2021-07-04T08:49:57.000Z | pyro/contrib/bnn/__init__.py | Capri2014/pyro | 546f9010aeb2308ae566726b1cec67a7b4fda9c2 | [
"MIT"
] | 19 | 2018-10-30T13:45:31.000Z | 2019-09-27T14:16:57.000Z | pyro/contrib/bnn/__init__.py | Capri2014/pyro | 546f9010aeb2308ae566726b1cec67a7b4fda9c2 | [
"MIT"
] | 5 | 2020-06-21T23:40:35.000Z | 2021-11-09T16:18:42.000Z | from pyro.contrib.bnn.hidden_layer import HiddenLayer
__all__ = [
"HiddenLayer",
]
| 14.666667 | 53 | 0.738636 | 10 | 88 | 6 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159091 | 88 | 5 | 54 | 17.6 | 0.810811 | 0 | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
e29d9daf610149a2920519306f175c06b6703472 | 880 | py | Python | sparql-client/tests/genquery.py | vlastocom/sparql-client | d7914054ef119541833c616684b1cb42ee02b581 | [
"Condor-1.1"
] | 28 | 2016-02-08T12:27:33.000Z | 2021-12-03T16:42:08.000Z | sparql-client/tests/genquery.py | vlastocom/sparql-client | d7914054ef119541833c616684b1cb42ee02b581 | [
"Condor-1.1"
] | 23 | 2015-10-11T10:20:46.000Z | 2022-03-10T11:19:21.000Z | sparql-client/tests/genquery.py | vlastocom/sparql-client | d7914054ef119541833c616684b1cb42ee02b581 | [
"Condor-1.1"
] | 22 | 2015-07-10T14:27:52.000Z | 2022-03-10T11:03:29.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import six.moves.urllib.request
import six.moves.urllib.parse
import six.moves.urllib.error
import six.moves.urllib.request
import six.moves.urllib.error
import six.moves.urllib.parse
statement = open('code.rq').read()
query = {'query': statement, 'format': 'xml'}
qs = s... | 23.783784 | 79 | 0.728409 | 128 | 880 | 4.984375 | 0.429688 | 0.163009 | 0.285266 | 0.230408 | 0.429467 | 0.329154 | 0.225705 | 0.225705 | 0.225705 | 0 | 0 | 0.003841 | 0.1125 | 880 | 36 | 80 | 24.444444 | 0.81306 | 0.097727 | 0 | 0.24 | 0 | 0 | 0.078382 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.24 | 0 | 0.24 | 0.08 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e2a48570e23823d0e0de2df28e36baea34600dbc | 726 | py | Python | lib/LineNotify.py | fukuyama012/watch_angle | 0863d2a5f3f09887555ede6697b21f44d8a28a35 | [
"MIT"
] | 1 | 2020-11-22T15:15:39.000Z | 2020-11-22T15:15:39.000Z | lib/LineNotify.py | fukuyama012/watch_angle | 0863d2a5f3f09887555ede6697b21f44d8a28a35 | [
"MIT"
] | null | null | null | lib/LineNotify.py | fukuyama012/watch_angle | 0863d2a5f3f09887555ede6697b21f44d8a28a35 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import requests
from config import config
class LineNotify(object):
"""NotifyClass for LINE"""
NOTIFY_API_URL = "https://notify-api.line.me/api/notify"
def __init__(self, api_url = NOTIFY_API_URL, authority = config.AUTHORITY_TOKEN):
self.apiUrl = api_url
self... | 31.565217 | 93 | 0.61157 | 79 | 726 | 5.455696 | 0.468354 | 0.055684 | 0.055684 | 0.12993 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009294 | 0.258953 | 726 | 23 | 94 | 31.565217 | 0.791822 | 0.161157 | 0 | 0 | 0 | 0 | 0.106136 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.166667 | 0.083333 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
e2afa79cfe3433dbb55e413faf7f68a3bf7cde3c | 1,599 | py | Python | org/apache/helix/messaging/handling/HelixTaskResult.py | davzhang/helix-python-binding | 11a9ecf730bce07720e0b0bcf7f0ec1cd2b25878 | [
"Apache-2.0"
] | 3 | 2015-04-08T22:51:04.000Z | 2015-05-03T06:42:35.000Z | org/apache/helix/messaging/handling/HelixTaskResult.py | zzhang5/helix-python-binding | 11a9ecf730bce07720e0b0bcf7f0ec1cd2b25878 | [
"Apache-2.0"
] | null | null | null | org/apache/helix/messaging/handling/HelixTaskResult.py | zzhang5/helix-python-binding | 11a9ecf730bce07720e0b0bcf7f0ec1cd2b25878 | [
"Apache-2.0"
] | 1 | 2020-03-31T21:43:01.000Z | 2020-03-31T21:43:01.000Z | # package org.apache.helix.messaging.handling
#from org.apache.helix.messaging.handling import *
#from java.util import HashMap
#from java.util import Map
class HelixTaskResult:
def __init__(self):
self._success = False
self._message = ""
self._taskResultMap = {}
self._interrupte... | 14.943925 | 50 | 0.525328 | 131 | 1,599 | 6.274809 | 0.305344 | 0.06691 | 0.10219 | 0.055961 | 0.143552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.385866 | 1,599 | 106 | 51 | 15.084906 | 0.837067 | 0.26454 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0 | 0.64 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
2c33642336df8e340ffb6e3ac015b54c0f6f8065 | 2,312 | py | Python | src/secimtools/visualManager/module_scatter.py | GalaxyDream/SECIMTools | 48357a49f373c75ec844685c78b1bdad80b0c1b3 | [
"MIT"
] | null | null | null | src/secimtools/visualManager/module_scatter.py | GalaxyDream/SECIMTools | 48357a49f373c75ec844685c78b1bdad80b0c1b3 | [
"MIT"
] | null | null | null | src/secimtools/visualManager/module_scatter.py | GalaxyDream/SECIMTools | 48357a49f373c75ec844685c78b1bdad80b0c1b3 | [
"MIT"
] | null | null | null | ######################################################################################
# Date: 2016/July/11
#
# Module: module_2DScatter.py
#
# VERSION: 0.9
#
# AUTHOR: Matt Thoburn (mthoburn@ufl.edu);
# edited by Miguel A. Ibarra-Arellano(miguelib@ufl.edu)
#
# DESCRIPTION: This module contains a primary met... | 30.421053 | 98 | 0.585208 | 316 | 2,312 | 4.278481 | 0.348101 | 0.053254 | 0.044379 | 0.06287 | 0.571746 | 0.543639 | 0.543639 | 0.505178 | 0.505178 | 0.505178 | 0 | 0.012493 | 0.272924 | 2,312 | 75 | 99 | 30.826667 | 0.791791 | 0.721453 | 0 | 0.333333 | 0 | 0 | 0.023411 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
2c3af77c9f0a9eb4bffbaf7e4643b6c519622678 | 279 | py | Python | categories/urls.py | aykutgk/GoNaturalistic | f1f5e529eef94ae1f642e056cdfb01711333a929 | [
"MIT"
] | null | null | null | categories/urls.py | aykutgk/GoNaturalistic | f1f5e529eef94ae1f642e056cdfb01711333a929 | [
"MIT"
] | null | null | null | categories/urls.py | aykutgk/GoNaturalistic | f1f5e529eef94ae1f642e056cdfb01711333a929 | [
"MIT"
] | null | null | null | from django.conf.urls import patterns, url
from categories import views
urlpatterns = patterns('',
# /categories/
url(r'^$', views.IndexView.as_view(), name='index'),
url(r'^(?P<slug>[-_\w]+)/$', views.CategoryPageView.as_view(), name='categoryPage'),
)
| 31 | 92 | 0.637993 | 33 | 279 | 5.30303 | 0.636364 | 0.045714 | 0.114286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164875 | 279 | 8 | 93 | 34.875 | 0.751073 | 0.043011 | 0 | 0 | 0 | 0 | 0.14717 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
2c45e8e2f5f2681eeb3272f4d59dae8018c764eb | 3,853 | py | Python | month_time_day.py | camrit/SupplyChainAnalytics | 421041d97959b204ef1143c59c74b681794d1089 | [
"MIT"
] | null | null | null | month_time_day.py | camrit/SupplyChainAnalytics | 421041d97959b204ef1143c59c74b681794d1089 | [
"MIT"
] | null | null | null | month_time_day.py | camrit/SupplyChainAnalytics | 421041d97959b204ef1143c59c74b681794d1089 | [
"MIT"
] | null | null | null | import datetime
list=["209223000","211409100","211822000","211881000","212048000","215058000","218019000","218779000","219008000","219010252","219082000",
"220018000","220289000","220552000","220609000","220614000","228330600","236216000","240244000","240891000","244013009","244267000",
"244678000","244790522","24... | 41.430108 | 421 | 0.499092 | 450 | 3,853 | 4.211111 | 0.444444 | 0.014776 | 0.017414 | 0.01372 | 0.024274 | 0.024274 | 0 | 0 | 0 | 0 | 0 | 0.303162 | 0.343369 | 3,853 | 93 | 422 | 41.430108 | 0.44585 | 0 | 0 | 0 | 0 | 0.011628 | 0.266082 | 0.005582 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023256 | false | 0 | 0.011628 | 0 | 0.046512 | 0.034884 | 0 | 0 | 0 | null | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2c4890752e730cb39e9616a2b06fcd0ec39617ac | 28,890 | py | Python | scripts/caffe/convert_caffe_weights_to_npy.py | nnmhuy/flownet2-tf | 9815e19a9a3745ff9cdf618ea2f1339583d7ae6a | [
"MIT"
] | 438 | 2017-07-11T16:56:50.000Z | 2022-03-23T15:14:33.000Z | scripts/caffe/convert_caffe_weights_to_npy.py | nnmhuy/flownet2-tf | 9815e19a9a3745ff9cdf618ea2f1339583d7ae6a | [
"MIT"
] | 110 | 2017-08-17T07:52:10.000Z | 2022-02-10T09:22:44.000Z | scripts/caffe/convert_caffe_weights_to_npy.py | nnmhuy/flownet2-tf | 9815e19a9a3745ff9cdf618ea2f1339583d7ae6a | [
"MIT"
] | 232 | 2017-06-28T09:13:50.000Z | 2022-03-28T08:18:01.000Z | """
Please read README.md for usage instructions.
Extracts Caffe parameters from a given caffemodel/prototxt to a dictionary of numpy arrays,
ready for conversion to TensorFlow variables. Writes the dictionary to a .npy file.
"""
import argparse
import caffe
import numpy as np
import os
import tempfile
FLAGS = None
A... | 55.66474 | 102 | 0.647906 | 2,778 | 28,890 | 6.49496 | 0.068755 | 0.148479 | 0.107743 | 0.046555 | 0.70199 | 0.624397 | 0.517209 | 0.434462 | 0.396719 | 0.392839 | 0 | 0.060626 | 0.222949 | 28,890 | 518 | 103 | 55.772201 | 0.743107 | 0.038387 | 0 | 0.328326 | 0 | 0.006438 | 0.656972 | 0.4696 | 0 | 0 | 0 | 0 | 0 | 1 | 0.002146 | false | 0 | 0.01073 | 0 | 0.012876 | 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 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2c52686fbc3a065ae9b309bfab36cf741114c4aa | 402 | py | Python | accounts/forms.py | dertrockx/social-media-rant | ff1247ab5566ebffb951f41f561963b7a8f88b1b | [
"MIT"
] | 1 | 2018-08-18T20:47:30.000Z | 2018-08-18T20:47:30.000Z | accounts/forms.py | dertrockx/social-media-rant | ff1247ab5566ebffb951f41f561963b7a8f88b1b | [
"MIT"
] | null | null | null | accounts/forms.py | dertrockx/social-media-rant | ff1247ab5566ebffb951f41f561963b7a8f88b1b | [
"MIT"
] | null | null | null | from django import forms
from django.contrib.auth import get_user_model
from django.contrib.auth.forms import UserCreationForm
from . import models
class UserCreateForm(UserCreationForm):
class Meta:
fields = ('username', 'email', 'password1', 'password2')
model = get_user_model()
class UserProfileForm(forms.Mod... | 28.714286 | 58 | 0.776119 | 48 | 402 | 6.395833 | 0.5 | 0.09772 | 0.110749 | 0.136808 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005682 | 0.124378 | 402 | 14 | 59 | 28.714286 | 0.866477 | 0 | 0 | 0.166667 | 0 | 0 | 0.114144 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.083333 | 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 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
2c550b0c7282c2b4d6319bf8d30f5a568fa892c3 | 349 | py | Python | tasks.py | JJ/More-mangas | d91eb9e757cf8e7bbc9049b1848120a515d98e1f | [
"BSD-3-Clause"
] | null | null | null | tasks.py | JJ/More-mangas | d91eb9e757cf8e7bbc9049b1848120a515d98e1f | [
"BSD-3-Clause"
] | 22 | 2021-11-29T07:32:40.000Z | 2022-02-07T18:45:37.000Z | tasks.py | gomares/More-mangas- | 14f1025185c15c6e3799e3a9c70261d3d278751b | [
"BSD-3-Clause"
] | 2 | 2021-11-13T19:01:44.000Z | 2021-11-16T22:08:03.000Z | from invoke import task, run
@task
def check(c):
'''
Comprobador de la sintaxis del proyecto
'''
print("Comprobando sintaxis...")
run("pyflakes code") # El directorio con todo el código de la aplicación
@task
def test(c):
'''
Realiza los tests del proyecto
'''
print("Realizando los... | 20.529412 | 76 | 0.630372 | 45 | 349 | 4.888889 | 0.666667 | 0.063636 | 0.145455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.243553 | 349 | 17 | 77 | 20.529412 | 0.833333 | 0.346705 | 0 | 0.222222 | 0 | 0 | 0.328283 | 0 | 0 | 0 | 0 | 0.058824 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.333333 | 0.222222 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2c5a4f43a7cf0d2e10c1ea679a1b32dc52bb6c35 | 1,137 | py | Python | products/tests/factories.py | kevin-ci/janeric2 | df07508a76ad8194a63be7786d8b84a905b3d2e9 | [
"MIT"
] | 1 | 2021-02-28T11:54:14.000Z | 2021-02-28T11:54:14.000Z | products/tests/factories.py | kevin-ci/janeric2 | df07508a76ad8194a63be7786d8b84a905b3d2e9 | [
"MIT"
] | 6 | 2021-12-01T11:39:03.000Z | 2021-12-04T22:28:57.000Z | products/tests/factories.py | kevin-ci/janeric2 | df07508a76ad8194a63be7786d8b84a905b3d2e9 | [
"MIT"
] | 1 | 2021-12-21T16:20:49.000Z | 2021-12-21T16:20:49.000Z | # From hacksoft.io/improve-your-tests-django-fakes-and-factories/
import factory
from faker import Faker
from factory import lazy_attribute
fake = Faker()
class CategoryFactory(factory.django.DjangoModelFactory):
class Meta:
model = 'products.Category'
id = factory.Sequence(lambda n: n)
name = f... | 30.72973 | 69 | 0.719437 | 139 | 1,137 | 5.805755 | 0.381295 | 0.111524 | 0.156134 | 0.163569 | 0.403965 | 0.371747 | 0.340768 | 0.275093 | 0.126394 | 0.126394 | 0 | 0.010526 | 0.164468 | 1,137 | 36 | 70 | 31.583333 | 0.838947 | 0.055409 | 0 | 0.24 | 0 | 0 | 0.116604 | 0.021455 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.12 | 0 | 0.84 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
2c5b79648a3a1538d2551cb488c5d656e4391e4e | 542 | py | Python | app/bda_core/entities/file/json_handler.py | bda-19fs/bda-chatbot | 4fcbda813ff5d3854a4c2e12413775676bcba9e2 | [
"MIT"
] | 1 | 2019-05-25T12:12:39.000Z | 2019-05-25T12:12:39.000Z | app/bda_core/entities/file/json_handler.py | bda-19fs/bda-chatbot | 4fcbda813ff5d3854a4c2e12413775676bcba9e2 | [
"MIT"
] | null | null | null | app/bda_core/entities/file/json_handler.py | bda-19fs/bda-chatbot | 4fcbda813ff5d3854a4c2e12413775676bcba9e2 | [
"MIT"
] | null | null | null | import json
def from_str_to_json(line):
'''
Converts the given json string to a python dict.
:param line: The input json string
:return: A python dict
'''
return json.loads(line, encoding='utf8')
def dump_json(json_doc):
'''
Converts the given json document (dict) to a json string.
... | 24.636364 | 61 | 0.680812 | 83 | 542 | 4.337349 | 0.433735 | 0.111111 | 0.088889 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002421 | 0.238007 | 542 | 21 | 62 | 25.809524 | 0.869249 | 0.573801 | 0 | 0 | 0 | 0 | 0.022727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.2 | 0 | 1 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
2c61fd54ed6ee6802ea87f006a7bb3741be96bc2 | 178 | py | Python | core.py | jonnelafin/JFUtils-python | 1f26da222b667c37a03e1b61ac3f6348cc812e13 | [
"MIT"
] | null | null | null | core.py | jonnelafin/JFUtils-python | 1f26da222b667c37a03e1b61ac3f6348cc812e13 | [
"MIT"
] | null | null | null | core.py | jonnelafin/JFUtils-python | 1f26da222b667c37a03e1b61ac3f6348cc812e13 | [
"MIT"
] | null | null | null | version = "dev 0.0"
running = False
def init():
global running
if not running:
print("JFUtils-python \"" + version + "\" by jonnelafin")
running = True
| 17.8 | 65 | 0.58427 | 21 | 178 | 4.952381 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015748 | 0.286517 | 178 | 9 | 66 | 19.777778 | 0.80315 | 0 | 0 | 0 | 0 | 0 | 0.280899 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.142857 | 0.142857 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
2c62914f7d877d9a25306b090da58d6d51f2ed75 | 3,357 | py | Python | specification/scripts/spec_tools/util.py | SteveSmithEpic/OpenXR-SDK-Source | 85db87f2051fbe911707e2298f9626b325e77acf | [
"Apache-2.0"
] | null | null | null | specification/scripts/spec_tools/util.py | SteveSmithEpic/OpenXR-SDK-Source | 85db87f2051fbe911707e2298f9626b325e77acf | [
"Apache-2.0"
] | null | null | null | specification/scripts/spec_tools/util.py | SteveSmithEpic/OpenXR-SDK-Source | 85db87f2051fbe911707e2298f9626b325e77acf | [
"Apache-2.0"
] | null | null | null | """Utility functions not closely tied to other spec_tools types."""
# Copyright (c) 2018-2019 Collabora, Ltd.
# Copyright (c) 2013-2019 The Khronos Group Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of... | 36.89011 | 128 | 0.714924 | 475 | 3,357 | 5.002105 | 0.326316 | 0.025253 | 0.025253 | 0.02862 | 0.42803 | 0.385522 | 0.305135 | 0.305135 | 0.270623 | 0.270623 | 0 | 0.007519 | 0.207626 | 3,357 | 90 | 129 | 37.3 | 0.885714 | 0.554662 | 0 | 0.055556 | 0 | 0 | 0.015021 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0 | 0.583333 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
2c6ed3b48f4401066385103d34587a5b7b1f0ec9 | 210 | py | Python | pipeline/coann/brents_bpbio/blasttools/blast_misc/test_b.py | gturco/find_cns | 63e08d17d9c81e250ef2637216fbf947cc295823 | [
"MIT"
] | 4 | 2016-03-21T19:19:24.000Z | 2019-10-23T09:20:13.000Z | pipeline/coann/brents_bpbio/blasttools/blast_misc/test_b.py | hengbingao/find_cns | 63e08d17d9c81e250ef2637216fbf947cc295823 | [
"MIT"
] | 10 | 2016-03-21T16:55:29.000Z | 2022-03-22T07:26:03.000Z | pipeline/coann/brents_bpbio/blasttools/blast_misc/test_b.py | hengbingao/find_cns | 63e08d17d9c81e250ef2637216fbf947cc295823 | [
"MIT"
] | 5 | 2016-03-02T16:20:05.000Z | 2021-07-28T02:31:23.000Z | import sys
sys.path.insert(0,".")
import blast_misc
import time
import operator
blast_file = 'data/t.blast'
b = blast_misc.blast_array(blast_file, best_hit=0, maxkeep=999999, dopickle=0)
print b
print b.shape
| 19.090909 | 78 | 0.77619 | 37 | 210 | 4.243243 | 0.567568 | 0.11465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048128 | 0.109524 | 210 | 10 | 79 | 21 | 0.791444 | 0 | 0 | 0 | 0 | 0 | 0.061905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.444444 | null | null | 0.222222 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
2c7e25d29531f2315f8de71eb3714e6f7673c575 | 766 | py | Python | nets/mish.py | HirataYurina/yolov4-tiny-keras | 0a9e9357d408a800447e893052c878df353e4964 | [
"MIT"
] | 13 | 2020-08-24T01:25:54.000Z | 2022-03-31T15:13:08.000Z | nets/mish.py | HirataYurina/yoloV4-keras-techi | 825be030b1bf13c6d16e54f2f7741ffc736302da | [
"MIT"
] | 2 | 2021-06-08T07:15:34.000Z | 2021-11-04T16:34:22.000Z | nets/mish.py | HirataYurina/yoloV3-keras-sibyl | 15f6c5f021dfc80d753df6bcdd579ae1139edfb9 | [
"MIT"
] | 5 | 2021-03-06T03:30:21.000Z | 2022-02-08T15:13:40.000Z | # -*- coding:utf-8 -*-
# author:平手友梨奈ii
# e-mail:1353593259@qq.com
# datetime:1993/12/01
# filename:mish.py
# software: PyCharm
import keras.backend as K
import keras
class Mish(keras.layers.Layer):
"""mish activation
Mish: A Self Regularized Non-Monotonic Activation Function
https://arxiv.org/abs/1908.... | 26.413793 | 108 | 0.678851 | 109 | 766 | 4.697248 | 0.715596 | 0.042969 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047541 | 0.203655 | 766 | 28 | 109 | 27.357143 | 0.791803 | 0.586162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
2c7fb19c19642b452263d37bde20d58c2588146a | 1,740 | py | Python | budget_nanny/budgets.py | Pepedou/budget-nanny | efc779a995e9e69f23a28c8c466cd2b111febd32 | [
"MIT"
] | null | null | null | budget_nanny/budgets.py | Pepedou/budget-nanny | efc779a995e9e69f23a28c8c466cd2b111febd32 | [
"MIT"
] | null | null | null | budget_nanny/budgets.py | Pepedou/budget-nanny | efc779a995e9e69f23a28c8c466cd2b111febd32 | [
"MIT"
] | null | null | null | import itertools
from budget_nanny.api_requests import APIRequester, BUDGETS_ENDPOINT, BUDGET_ENDPOINTS
DEFAULT_BUDGET = 'Personal'
class BudgetRequester:
def __init__(self, budget):
self.budget = budget
self.api_requester = APIRequester()
def create_transaction(self, transaction_data):
... | 30 | 87 | 0.667816 | 188 | 1,740 | 5.888298 | 0.234043 | 0.057814 | 0.072267 | 0.068654 | 0.344173 | 0.344173 | 0.144535 | 0.144535 | 0.144535 | 0.144535 | 0 | 0.00074 | 0.223563 | 1,740 | 57 | 88 | 30.526316 | 0.818653 | 0 | 0 | 0.1 | 0 | 0 | 0.098276 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225 | false | 0 | 0.05 | 0.2 | 0.5 | 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 | 0 | 1 | 0 | 0 | 0 | 2 |
2c7fe5c0f5ca742189129fd41371183c545d8942 | 5,283 | py | Python | tools/arrays.py | fakufaku/doamm | 66c7124573fb2a2c705335f2f7e877378e585042 | [
"MIT"
] | 7 | 2021-06-10T00:05:03.000Z | 2022-01-25T20:48:28.000Z | tools/arrays.py | santoshmore85/doamm | 66c7124573fb2a2c705335f2f7e877378e585042 | [
"MIT"
] | null | null | null | tools/arrays.py | santoshmore85/doamm | 66c7124573fb2a2c705335f2f7e877378e585042 | [
"MIT"
] | 3 | 2021-06-14T09:20:15.000Z | 2022-03-23T05:22:28.000Z | import numpy as np
from pyroomacoustics import MicrophoneArray
_pyramic_loc = np.array(
[
[-0.014433756729740652, -0.02500000000000001, -0.14288690166235207],
[-0.02598076211353317, -0.04500000000000001, -0.11022703842524302],
[-0.037527767497325684, -0.06500000000000002, -0.077567175188134... | 41.273438 | 117 | 0.67651 | 598 | 5,283 | 5.91806 | 0.215719 | 0.12885 | 0.12998 | 0.073185 | 0.705567 | 0.697655 | 0.672224 | 0.634643 | 0.634643 | 0.443063 | 0 | 0.545433 | 0.197994 | 5,283 | 127 | 118 | 41.598425 | 0.289828 | 0.063222 | 0 | 0.184783 | 0 | 0 | 0.092081 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 1 | 0.043478 | false | 0 | 0.021739 | 0.01087 | 0.108696 | 0 | 0 | 0 | 0 | null | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2c96642239b24ff82d99540dd0af7eda52fda7cb | 734 | py | Python | pubgate/utils/user.py | UndeadBeast/pubgate | 4c1e67aaa354617afdec13bec202856b17c6a752 | [
"BSD-3-Clause"
] | null | null | null | pubgate/utils/user.py | UndeadBeast/pubgate | 4c1e67aaa354617afdec13bec202856b17c6a752 | [
"BSD-3-Clause"
] | null | null | null | pubgate/utils/user.py | UndeadBeast/pubgate | 4c1e67aaa354617afdec13bec202856b17c6a752 | [
"BSD-3-Clause"
] | null | null | null | import asyncio
from pubgate.crypto.key import get_key
from pubgate.utils.networking import deliver
class UserUtils:
@property
def key(self):
return get_key(self.uri)
@property
def following(self): return f"{self.uri}/following"
@property
def followers(self): return f"{self.uri}/fol... | 22.9375 | 70 | 0.663488 | 90 | 734 | 5.344444 | 0.4 | 0.114345 | 0.091476 | 0.12474 | 0.149688 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.231608 | 734 | 31 | 71 | 23.677419 | 0.852837 | 0 | 0 | 0.227273 | 0 | 0 | 0.106267 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0.045455 | 0.136364 | 0.227273 | 0.454545 | 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 | 0 | 1 | 0 | 0 | 0 | 2 |
2c9692275886cb4fa5e787685f752891dc801c2e | 1,183 | py | Python | v2x_solution/road/models.py | Michaelwwgo/V2X_Project | d26f476329dd7f6083e9275e01e2748d38918afc | [
"MIT"
] | 1 | 2021-02-03T08:15:59.000Z | 2021-02-03T08:15:59.000Z | v2x_solution/road/models.py | Michaelwwgo/V2X_Project | d26f476329dd7f6083e9275e01e2748d38918afc | [
"MIT"
] | null | null | null | v2x_solution/road/models.py | Michaelwwgo/V2X_Project | d26f476329dd7f6083e9275e01e2748d38918afc | [
"MIT"
] | null | null | null | from django.db import models
from django.utils.encoding import python_2_unicode_compatible
from v2x_solution.users import models as user_models
@python_2_unicode_compatible
class TimeStampedModel(models.Model):
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=Tru... | 28.853659 | 86 | 0.733728 | 140 | 1,183 | 5.964286 | 0.392857 | 0.033533 | 0.067066 | 0.11497 | 0.4 | 0.131737 | 0 | 0 | 0 | 0 | 0 | 0.014113 | 0.161454 | 1,183 | 40 | 87 | 29.575 | 0.827621 | 0.022823 | 0 | 0.192308 | 0 | 0 | 0.012259 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.076923 | 0.115385 | 0.076923 | 0.846154 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
2ca17ea2e5978cb8cef98f69e05dea57ccb35a68 | 948 | py | Python | generators/_init-python/templates/__init__.tmpl.py | phovea/generator-phovea | 054f1a399ef266e51f93147859cd4893a1be655f | [
"BSD-3-Clause"
] | 1 | 2018-06-05T12:13:43.000Z | 2018-06-05T12:13:43.000Z | generators/_init-python/templates/__init__.tmpl.py | phovea/generator-phovea | 054f1a399ef266e51f93147859cd4893a1be655f | [
"BSD-3-Clause"
] | 330 | 2016-11-03T17:30:56.000Z | 2022-02-17T13:47:39.000Z | generators/_init-python/templates/__init__.tmpl.py | phovea/generator-phovea | 054f1a399ef266e51f93147859cd4893a1be655f | [
"BSD-3-Clause"
] | 3 | 2016-11-04T09:23:27.000Z | 2020-02-13T18:57:38.000Z | ###############################################################################
# Caleydo - Visualization for Molecular Biology - http://caleydo.org
# Copyright (c) The Caleydo Team. All rights reserved.
# Licensed under the new BSD license, available at http://caleydo.org/license
######################################... | 33.857143 | 166 | 0.541139 | 98 | 948 | 5.153061 | 0.632653 | 0.079208 | 0.055446 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159283 | 948 | 27 | 167 | 35.111111 | 0.633626 | 0.25211 | 0 | 0 | 0 | 0 | 0.153132 | 0.076566 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.125 | 0.125 | null | null | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
2cb0bbb91b4dda835ef678b08ac2e270c52a5603 | 13,989 | py | Python | IDSRunmodeVerify.py | PhilSchroeder/IDSDeathBlossom | bc132c4478733834fd95969257aef523bcb47f44 | [
"BSD-3-Clause"
] | 19 | 2015-04-13T23:04:40.000Z | 2019-04-21T18:35:11.000Z | IDSRunmodeVerify.py | PhilSchroeder/IDSDeathBlossom | bc132c4478733834fd95969257aef523bcb47f44 | [
"BSD-3-Clause"
] | 6 | 2016-08-25T16:16:18.000Z | 2020-07-13T21:45:02.000Z | IDSRunmodeVerify.py | PhilSchroeder/IDSDeathBlossom | bc132c4478733834fd95969257aef523bcb47f44 | [
"BSD-3-Clause"
] | 14 | 2015-04-14T23:00:02.000Z | 2020-10-12T18:56:20.000Z | # -*- coding: utf-8 -*-
#*************************************************************
# Copyright (c) 2003-2012, Emerging Threats
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
# following conditions are met:
#
# * ... | 53.803846 | 166 | 0.491029 | 1,470 | 13,989 | 4.641497 | 0.206803 | 0.07035 | 0.064781 | 0.064488 | 0.60428 | 0.590356 | 0.584347 | 0.565734 | 0.547706 | 0.52836 | 0 | 0.005122 | 0.371935 | 13,989 | 259 | 167 | 54.011583 | 0.771455 | 0.206019 | 0 | 0.604167 | 0 | 0.005208 | 0.158756 | 0.02432 | 0 | 0 | 0 | 0.003861 | 0 | 0 | null | null | 0.098958 | 0.036458 | null | null | 0.03125 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
2cb4621b068d111beab89308a88df0e14db521de | 788 | py | Python | swarmlib/abc/bees/onlooker_bee.py | alxfmpl/swarmlib | 625645d466223ebef35fa1492d47e1a252cfd863 | [
"BSD-3-Clause"
] | 221 | 2019-02-12T19:15:04.000Z | 2022-03-26T23:21:27.000Z | swarmlib/abc/bees/onlooker_bee.py | alxfmpl/swarmlib | 625645d466223ebef35fa1492d47e1a252cfd863 | [
"BSD-3-Clause"
] | 26 | 2020-05-22T13:04:32.000Z | 2022-03-29T09:52:51.000Z | swarmlib/abc/bees/onlooker_bee.py | alxfmpl/swarmlib | 625645d466223ebef35fa1492d47e1a252cfd863 | [
"BSD-3-Clause"
] | 70 | 2019-08-29T10:27:17.000Z | 2022-03-12T15:30:23.000Z | # ------------------------------------------------------------------------------------------------------
# Copyright (c) Leo Hanisch. All rights reserved.
# Licensed under the BSD 3-Clause License. See LICENSE.txt in the project root for license information.
# ---------------------------------------------------------... | 41.473684 | 104 | 0.5 | 71 | 788 | 5.43662 | 0.661972 | 0.124352 | 0.07772 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001541 | 0.176396 | 788 | 18 | 105 | 43.777778 | 0.59322 | 0.626904 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
2cb919147e65ac557f056ab888de11a55b0d5578 | 2,454 | py | Python | tests/test_dong_code.py | nhlsm/PyDataGoKr | 93521ee648da4727b98279db9ed4b1d9ed928972 | [
"Apache-2.0"
] | 2 | 2021-04-26T05:20:56.000Z | 2021-05-30T03:30:41.000Z | tests/test_dong_code.py | nhlsm/PyDataGoKr | 93521ee648da4727b98279db9ed4b1d9ed928972 | [
"Apache-2.0"
] | null | null | null | tests/test_dong_code.py | nhlsm/PyDataGoKr | 93521ee648da4727b98279db9ed4b1d9ed928972 | [
"Apache-2.0"
] | null | null | null | import unittest
from data_go_kr.utils.dong_code import *
class Test0(unittest.TestCase):
"""
Test that the result sum of all numbers
"""
@classmethod
def setUpClass(cls):
# debug
LOG_FORMAT = '%(pathname)s:%(lineno)03d - %(message)s'
# LOG_LEVEL = logging.DEBUG # DEBUG(10... | 33.162162 | 113 | 0.544825 | 350 | 2,454 | 3.665714 | 0.228571 | 0.18862 | 0.056118 | 0.060795 | 0.335931 | 0.170694 | 0.084178 | 0.038971 | 0 | 0 | 0 | 0.04836 | 0.266911 | 2,454 | 73 | 114 | 33.616438 | 0.664814 | 0.528117 | 0 | 0.125 | 0 | 0 | 0.040541 | 0.022523 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.25 | false | 0.125 | 0.083333 | 0 | 0.375 | 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 | 0 | 0 | 0 | 0 | 2 |
2cbe1675dbb1359b04a61f71febe8588895639bd | 213 | py | Python | tests/test_tapioca_asana.py | henriquebastos/tapioca-asana | 3f91ae69755377fdd91d6c5c7c383aeb704ffba8 | [
"MIT"
] | 7 | 2017-08-23T10:52:28.000Z | 2020-04-30T21:55:01.000Z | tests/test_tapioca_asana.py | henriquebastos/tapioca-asana | 3f91ae69755377fdd91d6c5c7c383aeb704ffba8 | [
"MIT"
] | null | null | null | tests/test_tapioca_asana.py | henriquebastos/tapioca-asana | 3f91ae69755377fdd91d6c5c7c383aeb704ffba8 | [
"MIT"
] | null | null | null | # coding: utf-8
import unittest
from tapioca_asana import Asana
class TestTapiocaAsana(unittest.TestCase):
def setUp(self):
self.wrapper = Asana()
if __name__ == '__main__':
unittest.main()
| 13.3125 | 42 | 0.690141 | 25 | 213 | 5.52 | 0.72 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005917 | 0.206573 | 213 | 15 | 43 | 14.2 | 0.810651 | 0.061033 | 0 | 0 | 0 | 0 | 0.040404 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
2cc6824ca7af4f15743a60293c84aa13817c827d | 1,987 | py | Python | ooobuild/lo/bridge/bridge.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/lo/bridge/bridge.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/lo/bridge/bridge.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
#
# Copyright 2022 :Barry-Thomas-Paul: Moss
#
# Licensed under the Apache License, Version 2.0 (the "License")
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http: // www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | 43.195652 | 417 | 0.764972 | 293 | 1,987 | 5.054608 | 0.573379 | 0.040513 | 0.027009 | 0.043214 | 0.028359 | 0.028359 | 0 | 0 | 0 | 0 | 0 | 0.024744 | 0.16608 | 1,987 | 45 | 418 | 44.155556 | 0.86904 | 0.73377 | 0 | 0 | 0 | 0 | 0.12527 | 0.056156 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.875 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
2ccd11378408c7a3a870f8bf28027d06c6c8cdbf | 23,757 | py | Python | main.py | Lfulcrum/mbiotaDB | b86dc85afab3859d89a2c889e8d8411a4adc0040 | [
"MIT"
] | null | null | null | main.py | Lfulcrum/mbiotaDB | b86dc85afab3859d89a2c889e8d8411a4adc0040 | [
"MIT"
] | null | null | null | main.py | Lfulcrum/mbiotaDB | b86dc85afab3859d89a2c889e8d8411a4adc0040 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
This script is used to informally test various parts of data cleaning,
parsing and database functionality.
@author: William
"""
# Standard library imports
import os
import glob
import re
import datetime
import csv
import tempfile
import time
from collections import defaultdict
# Third-pa... | 55.637002 | 4,613 | 0.615776 | 2,611 | 23,757 | 5.390655 | 0.318269 | 0.011936 | 0.01421 | 0.013854 | 0.297336 | 0.256199 | 0.239076 | 0.224156 | 0.213641 | 0.213641 | 0 | 0.192949 | 0.259797 | 23,757 | 426 | 4,614 | 55.767606 | 0.60745 | 0 | 0 | 0.355469 | 0 | 0 | 0.134031 | 0.052378 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.007813 | 0.070313 | null | null | 0.011719 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e2e0fdb8e5edddc688afaa0565118c501fb89176 | 5,083 | py | Python | Fluid/io/fluid-cloudnative/module/data_load_spec.py | Rui-Tang/fluid-client-python | cfe6e981ad5092c3ba9ba15760858572e914f6d6 | [
"Apache-2.0"
] | 1 | 2021-11-18T11:10:48.000Z | 2021-11-18T11:10:48.000Z | Fluid/io/fluid-cloudnative/module/data_load_spec.py | Rui-Tang/fluid-client-python | cfe6e981ad5092c3ba9ba15760858572e914f6d6 | [
"Apache-2.0"
] | null | null | null | Fluid/io/fluid-cloudnative/module/data_load_spec.py | Rui-Tang/fluid-client-python | cfe6e981ad5092c3ba9ba15760858572e914f6d6 | [
"Apache-2.0"
] | 2 | 2021-05-19T06:35:55.000Z | 2022-03-16T09:48:59.000Z | # coding: utf-8
"""
fluid
client for fluid # noqa: E501
OpenAPI spec version: v0.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
from Fluid.io.fluid-cloudnative.module.target_dataset import TargetDataset # noqa: F401,E... | 28.717514 | 93 | 0.588235 | 587 | 5,083 | 4.974446 | 0.219762 | 0.086301 | 0.073973 | 0.067808 | 0.37363 | 0.326027 | 0.305479 | 0.205822 | 0.139041 | 0.139041 | 0 | 0.021758 | 0.321857 | 5,083 | 176 | 94 | 28.880682 | 0.825355 | 0.015345 | 0 | 0.064103 | 1 | 0 | 0.047654 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.064103 | null | null | 0.025641 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e2e22b016d763cb3180ab728cbeb8c64ad688994 | 1,550 | py | Python | examples/using_steem_offline.py | creativechain/crea-python-lib | b0a61e947586e2d19001824259efad51722e43a8 | [
"MIT"
] | null | null | null | examples/using_steem_offline.py | creativechain/crea-python-lib | b0a61e947586e2d19001824259efad51722e43a8 | [
"MIT"
] | 1 | 2020-03-02T12:18:48.000Z | 2020-03-02T12:18:48.000Z | examples/using_steem_offline.py | creativechain/crea-python-lib | b0a61e947586e2d19001824259efad51722e43a8 | [
"MIT"
] | null | null | null | from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import sys
from datetime import datetime, timedelta
import time
import io
import logging
from crea.blockchain import Blockchain
from crea.block import Block
from crea.account import Account
from crea.amount im... | 32.291667 | 87 | 0.749032 | 188 | 1,550 | 5.904255 | 0.393617 | 0.072072 | 0.04955 | 0.05045 | 0.077477 | 0.067568 | 0 | 0 | 0 | 0 | 0 | 0.011765 | 0.177419 | 1,550 | 47 | 88 | 32.978723 | 0.858824 | 0.007097 | 0 | 0 | 0 | 0 | 0.089135 | 0.033182 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.025641 | 0.538462 | 0 | 0.538462 | 0.076923 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
e2f5428a903d2a5b63d743d75dbd58e8b5b5c928 | 617 | py | Python | exercises/chapter01/test_01_07.py | deep-diver/fastai-course | 1a0a39311fba0e1b3f4720a612a17dc7c708d9bb | [
"MIT"
] | null | null | null | exercises/chapter01/test_01_07.py | deep-diver/fastai-course | 1a0a39311fba0e1b3f4720a612a17dc7c708d9bb | [
"MIT"
] | null | null | null | exercises/chapter01/test_01_07.py | deep-diver/fastai-course | 1a0a39311fba0e1b3f4720a612a17dc7c708d9bb | [
"MIT"
] | null | null | null | def test():
# Here we can either check objects created in the solution code, or the
# string value of the solution, available as __solution__. A helper for
# printing formatted messages is available as __msg__. See the testTemplate
# in the meta.json for details.
# If an assertion fails, the messag... | 44.071429 | 79 | 0.688817 | 92 | 617 | 4.315217 | 0.684783 | 0.100756 | 0.060453 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012422 | 0.21718 | 617 | 13 | 80 | 47.461538 | 0.809524 | 0.479741 | 0 | 0 | 0 | 0 | 0.377778 | 0 | 0 | 0 | 0 | 0 | 0.666667 | 1 | 0.166667 | true | 0 | 0 | 0 | 0.166667 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e2f98f82cc6a446709599bacd97b60b60e6e908d | 336 | py | Python | exberry_adapter/setup.py | gaborh-da/da-marketplace | b7115ad53c3db445e153f66d62697d96bf3ff2a9 | [
"0BSD"
] | null | null | null | exberry_adapter/setup.py | gaborh-da/da-marketplace | b7115ad53c3db445e153f66d62697d96bf3ff2a9 | [
"0BSD"
] | 1 | 2021-04-30T10:10:13.000Z | 2021-04-30T11:31:08.000Z | exberry_adapter/setup.py | gaborh-da/da-marketplace | b7115ad53c3db445e153f66d62697d96bf3ff2a9 | [
"0BSD"
] | null | null | null | from setuptools import setup
setup(name='marketplace-exchange-adapter',
version='0.1.18',
description='Daml Marketplace Exchange Adapter',
author='Digital Asset',
url='daml.com',
license='Apache2',
install_requires=['dazl>=7,<8', 'aiohttp'],
packages=['bot'],
include_pac... | 28 | 54 | 0.64881 | 38 | 336 | 5.657895 | 0.868421 | 0.176744 | 0.24186 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026022 | 0.199405 | 336 | 11 | 55 | 30.545455 | 0.773234 | 0 | 0 | 0 | 0 | 0 | 0.342262 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 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 | 0 | 0 | 2 |
39027545d70e4c8f86decd2cd95b3bbd7df154a0 | 1,325 | py | Python | IOProgram/pickling.py | zhaoyu69/python3-learning | faf786f03d13c632d107b1dbd42e923f8b012a28 | [
"MIT"
] | 1 | 2018-07-08T00:19:51.000Z | 2018-07-08T00:19:51.000Z | IOProgram/pickling.py | zhaoyu69/python3-learning | faf786f03d13c632d107b1dbd42e923f8b012a28 | [
"MIT"
] | null | null | null | IOProgram/pickling.py | zhaoyu69/python3-learning | faf786f03d13c632d107b1dbd42e923f8b012a28 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# 序列化
# import pickle
# d = dict(name='Bob', age=20, score=88)
# print(pickle.dumps(d))
# f = open('dump.txt', 'wb')
# pickle.dump(d, f)
# f.close()
# f = open('dump.txt', 'rb')
# d = pickle.load(f)
# f.close()
# print(d)
# JSON
# import json
# d = dict(name='Bob', age=2... | 21.370968 | 74 | 0.593962 | 189 | 1,325 | 4.068783 | 0.306878 | 0.070221 | 0.052016 | 0.062419 | 0.254876 | 0.197659 | 0.197659 | 0.197659 | 0.197659 | 0.122237 | 0 | 0.026119 | 0.190943 | 1,325 | 62 | 75 | 21.370968 | 0.691231 | 0.841509 | 0 | 0.4 | 0 | 0 | 0.0125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
390c14d893f1e0728e9ec21273bb35b02d299f6e | 116 | py | Python | ABC/176/a.py | fumiyanll23/AtCoder | 362ca9fcacb5415c1458bc8dee5326ba2cc70b65 | [
"MIT"
] | null | null | null | ABC/176/a.py | fumiyanll23/AtCoder | 362ca9fcacb5415c1458bc8dee5326ba2cc70b65 | [
"MIT"
] | null | null | null | ABC/176/a.py | fumiyanll23/AtCoder | 362ca9fcacb5415c1458bc8dee5326ba2cc70b65 | [
"MIT"
] | null | null | null | N, X, T = map(int, input().split())
time = N // X
if(N%X == 0):
print(time * T)
else:
print((time+1) * T) | 16.571429 | 36 | 0.474138 | 22 | 116 | 2.5 | 0.590909 | 0.109091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023529 | 0.267241 | 116 | 7 | 37 | 16.571429 | 0.623529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
391667a8befd2cb83fa9af8db2deb8ed788f9391 | 504 | py | Python | apps/Tests/algs/TestAlg.py | erinzm/NEXT-chemistry | d6ca0a80640937b36f9cafb5ead371e7a8677734 | [
"Apache-2.0"
] | 155 | 2015-11-01T17:48:41.000Z | 2022-02-06T21:37:41.000Z | apps/Tests/algs/TestAlg.py | erinzm/NEXT-chemistry | d6ca0a80640937b36f9cafb5ead371e7a8677734 | [
"Apache-2.0"
] | 193 | 2015-09-29T21:40:31.000Z | 2020-04-21T15:09:13.000Z | apps/Tests/algs/TestAlg.py | erinzm/NEXT-chemistry | d6ca0a80640937b36f9cafb5ead371e7a8677734 | [
"Apache-2.0"
] | 54 | 2015-09-30T15:51:05.000Z | 2022-02-13T05:26:20.000Z | from apps.Tests.tests.test_api import set_and_get_alg, get_alg, get_exp
class MyAlg:
def initExp(self, butler, dummy):
get_exp(butler)
set_and_get_alg(butler)
return "return_init_exp"
def getQuery(self, butler):
get_alg(butler)
return "return_get_query"
def proces... | 21.913043 | 71 | 0.662698 | 67 | 504 | 4.671642 | 0.38806 | 0.115016 | 0.153355 | 0.230032 | 0.485623 | 0.408946 | 0.408946 | 0.300319 | 0.300319 | 0 | 0 | 0 | 0.255952 | 504 | 22 | 72 | 22.909091 | 0.834667 | 0 | 0 | 0.333333 | 0 | 0 | 0.145418 | 0.083665 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.066667 | 0 | 0.666667 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
391e22ffbfa10885c2baecffd94b76c035ae6552 | 390 | py | Python | ws-python/ex043.py | DerickSilva/Python | 8e81c6fe403e3321f18d2767f0bdfc818b180fd2 | [
"MIT"
] | null | null | null | ws-python/ex043.py | DerickSilva/Python | 8e81c6fe403e3321f18d2767f0bdfc818b180fd2 | [
"MIT"
] | null | null | null | ws-python/ex043.py | DerickSilva/Python | 8e81c6fe403e3321f18d2767f0bdfc818b180fd2 | [
"MIT"
] | null | null | null | peso = float(input('Qual é seu peso? '))
altura = float(input('Qual é sua altura? '))
imc = peso / (altura * altura)
if imc < 18.5:
print(f'IMC {imc:.1f} Abaixo do Peso')
elif imc < 25:
print(f'IMC {imc:.1f} Peso Ideal')
elif imc < 30:
print(f'IMC {imc:.1f} Sobrepeso')
elif imc < 40:
print(f'IMC {imc... | 24.375 | 45 | 0.612821 | 66 | 390 | 3.621212 | 0.393939 | 0.125523 | 0.188285 | 0.251046 | 0.368201 | 0.192469 | 0 | 0 | 0 | 0 | 0 | 0.045161 | 0.205128 | 390 | 15 | 46 | 26 | 0.725806 | 0 | 0 | 0 | 0 | 0 | 0.423077 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.384615 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
392276348afa229d6d9d5535d8f8a2ce454c98f8 | 992 | py | Python | h2o-py/tests/testdir_apis/Data_Manipulation/pyunit_h2oH2OFrame_countmatches.py | vishalbelsare/h2o-3 | 9322fb0f4c0e2358449e339a434f607d524c69fa | [
"Apache-2.0"
] | 6,098 | 2015-05-22T02:46:12.000Z | 2022-03-31T16:54:51.000Z | h2o-py/tests/testdir_apis/Data_Manipulation/pyunit_h2oH2OFrame_countmatches.py | vishalbelsare/h2o-3 | 9322fb0f4c0e2358449e339a434f607d524c69fa | [
"Apache-2.0"
] | 2,517 | 2015-05-23T02:10:54.000Z | 2022-03-30T17:03:39.000Z | h2o-py/tests/testdir_apis/Data_Manipulation/pyunit_h2oH2OFrame_countmatches.py | vishalbelsare/h2o-3 | 9322fb0f4c0e2358449e339a434f607d524c69fa | [
"Apache-2.0"
] | 2,199 | 2015-05-22T04:09:55.000Z | 2022-03-28T22:20:45.000Z | from __future__ import print_function
import sys
sys.path.insert(1,"../../../")
from tests import pyunit_utils
import h2o
from h2o.utils.typechecks import assert_is_type
from h2o.frame import H2OFrame
def h2o_H2OFrame_countmatches():
"""
Python API test: h2o.frame.H2OFrame.countmatches(pattern)
Copied fr... | 36.740741 | 98 | 0.725806 | 125 | 992 | 5.568 | 0.4 | 0.229885 | 0.16523 | 0.12931 | 0.201149 | 0.201149 | 0.201149 | 0.140805 | 0.140805 | 0.140805 | 0 | 0.027875 | 0.132056 | 992 | 26 | 99 | 38.153846 | 0.780488 | 0.09375 | 0 | 0 | 0 | 0 | 0.248009 | 0.09215 | 0 | 0 | 0 | 0 | 0.294118 | 1 | 0.058824 | false | 0 | 0.352941 | 0 | 0.411765 | 0.058824 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
3923ffff0633700fae4deba390f63574e57db2f6 | 448 | py | Python | mechlib/amech_io/parser/mech.py | keceli/mechdriver | 978994ba5c77b6df00078b639c4482dacf269440 | [
"Apache-2.0"
] | null | null | null | mechlib/amech_io/parser/mech.py | keceli/mechdriver | 978994ba5c77b6df00078b639c4482dacf269440 | [
"Apache-2.0"
] | null | null | null | mechlib/amech_io/parser/mech.py | keceli/mechdriver | 978994ba5c77b6df00078b639c4482dacf269440 | [
"Apache-2.0"
] | 8 | 2019-12-18T20:09:46.000Z | 2020-11-14T16:37:28.000Z | """ Parses the `mechanism.dat` input file for MechDriver that contains
all of the reactions of mechanism. The format of this file corresponds
to some user-specified format.
"""
import mechanalyzer.parser.pes
def pes_dictionary(mech_str, mech_type, spc_dct, printlog=True):
""" Calls mechanalyzer to do the... | 32 | 74 | 0.743304 | 62 | 448 | 5.241935 | 0.580645 | 0.110769 | 0.129231 | 0.123077 | 0.258462 | 0.258462 | 0.258462 | 0.258462 | 0.258462 | 0 | 0 | 0 | 0.176339 | 448 | 13 | 75 | 34.461538 | 0.880759 | 0.475446 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0.5 | 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 | 0 | 0 | 0 | 1 | 0 | 2 |
392c7d203bba871b6ecbabeee451dc8374c0d530 | 220 | py | Python | src/utils/setup_django.py | mrts/foodbank-campaign | fbb059f3ebe44dccde4895964242b105421a69d1 | [
"MIT"
] | 1 | 2021-03-20T10:14:21.000Z | 2021-03-20T10:14:21.000Z | src/utils/setup_django.py | mrts/foodbank-campaign | fbb059f3ebe44dccde4895964242b105421a69d1 | [
"MIT"
] | 4 | 2018-03-24T21:49:02.000Z | 2021-01-13T21:31:44.000Z | src/utils/setup_django.py | mrts/foodbank-campaign | fbb059f3ebe44dccde4895964242b105421a69d1 | [
"MIT"
] | 3 | 2018-04-15T16:34:46.000Z | 2019-11-13T16:38:05.000Z | import os
import sys
import django
PROJDIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(0, PROJDIR)
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "foodbank.settings")
django.setup()
| 20 | 69 | 0.781818 | 32 | 220 | 5.1875 | 0.53125 | 0.108434 | 0.156627 | 0.180723 | 0.192771 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004926 | 0.077273 | 220 | 10 | 70 | 22 | 0.812808 | 0 | 0 | 0 | 0 | 0 | 0.177273 | 0.1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
393ab1a1917fe61a8db97e13e0246caf72cd853f | 252 | py | Python | output/models/nist_data/atomic/long/schema_instance/nistschema_sv_iv_atomic_long_total_digits_5_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/nist_data/atomic/long/schema_instance/nistschema_sv_iv_atomic_long_total_digits_5_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/nist_data/atomic/long/schema_instance/nistschema_sv_iv_atomic_long_total_digits_5_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.nist_data.atomic.long.schema_instance.nistschema_sv_iv_atomic_long_total_digits_5_xsd.nistschema_sv_iv_atomic_long_total_digits_5 import NistschemaSvIvAtomicLongTotalDigits5
__all__ = [
"NistschemaSvIvAtomicLongTotalDigits5",
]
| 42 | 192 | 0.892857 | 30 | 252 | 6.8 | 0.633333 | 0.147059 | 0.137255 | 0.196078 | 0.352941 | 0.352941 | 0.352941 | 0.352941 | 0 | 0 | 0 | 0.016807 | 0.055556 | 252 | 5 | 193 | 50.4 | 0.840336 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
3948b8f26f7dd5b1a769e92b3cd8c3912098d7f4 | 2,233 | py | Python | ast_language/ast_util.py | gordonwatts/ast-language | 78546789d01ccec28bb25c47e7a1dfcd9c51016d | [
"MIT"
] | null | null | null | ast_language/ast_util.py | gordonwatts/ast-language | 78546789d01ccec28bb25c47e7a1dfcd9c51016d | [
"MIT"
] | null | null | null | ast_language/ast_util.py | gordonwatts/ast-language | 78546789d01ccec28bb25c47e7a1dfcd9c51016d | [
"MIT"
] | null | null | null | import ast
def wrap_ast(node):
return ast.Module(body=[ast.Expr(value=node)])
def unwrap_ast(node):
return node.body[0].value
class SourceRemover(ast.NodeTransformer):
def __init__(self, source_name):
self.source_name = source_name
def visit_Attribute(self, node):
if isinstance(no... | 31.450704 | 93 | 0.622033 | 286 | 2,233 | 4.727273 | 0.262238 | 0.047337 | 0.055473 | 0.056213 | 0.132396 | 0.067308 | 0.047337 | 0 | 0 | 0 | 0 | 0.005501 | 0.267353 | 2,233 | 70 | 94 | 31.9 | 0.820905 | 0 | 0 | 0.096154 | 0 | 0 | 0.086431 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.019231 | 0.134615 | 0.557692 | 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 | 0 | 1 | 0 | 0 | 0 | 2 |
39529c92d4ecff731bb46a873623bd8a7444bef0 | 664 | py | Python | src/phidget_spatial/launch/phidget_spatial_launch.py | tiiuae/phidget_spatial | 59c3d18ec66b19cd1c16859ffe9b9a197ef7c3b7 | [
"BSD-3-Clause"
] | null | null | null | src/phidget_spatial/launch/phidget_spatial_launch.py | tiiuae/phidget_spatial | 59c3d18ec66b19cd1c16859ffe9b9a197ef7c3b7 | [
"BSD-3-Clause"
] | null | null | null | src/phidget_spatial/launch/phidget_spatial_launch.py | tiiuae/phidget_spatial | 59c3d18ec66b19cd1c16859ffe9b9a197ef7c3b7 | [
"BSD-3-Clause"
] | null | null | null |
from ament_index_python.packages import get_package_prefix
from launch import LaunchDescription
from launch_ros.actions import Node
from os import environ as env
def generate_launch_description():
pkg_name = "phidget_spatial"
pkg_share_path = get_package_prefix(pkg_name)
return LaunchDescription([
... | 26.56 | 79 | 0.665663 | 74 | 664 | 5.635135 | 0.5 | 0.201439 | 0.076739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.253012 | 664 | 24 | 80 | 27.666667 | 0.840726 | 0 | 0 | 0 | 1 | 0 | 0.200603 | 0.066365 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.222222 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1a378f12e98bac4e5e0d1938b64283996c19ee82 | 18,040 | py | Python | training/my_models.py | bu-cisl/Illumination-Coding-Meets-Uncertainty-Learning | b0a2b86acad93a51e73786884ae3e3204695df4e | [
"BSD-3-Clause"
] | 15 | 2019-05-28T09:08:28.000Z | 2022-03-28T09:16:02.000Z | training/my_models.py | removeblock/Illumination-Coding-Meets-Uncertainty-Learning | b0a2b86acad93a51e73786884ae3e3204695df4e | [
"BSD-3-Clause"
] | null | null | null | training/my_models.py | removeblock/Illumination-Coding-Meets-Uncertainty-Learning | b0a2b86acad93a51e73786884ae3e3204695df4e | [
"BSD-3-Clause"
] | 6 | 2019-04-16T04:31:46.000Z | 2021-12-21T05:27:49.000Z | from __future__ import print_function
import keras
from keras.layers import AveragePooling2D, Lambda
import keras.backend as K
from keras.layers import Input, MaxPooling2D, UpSampling2D, Dropout, Conv2D, Concatenate, Activation, Cropping2D, \
Flatten, Dense, ZeroPadding2D
from keras.layers.advanced_activations imp... | 43.261391 | 119 | 0.660255 | 2,330 | 18,040 | 4.921888 | 0.095279 | 0.04796 | 0.048047 | 0.056679 | 0.770405 | 0.714161 | 0.687304 | 0.667248 | 0.658877 | 0.648326 | 0 | 0.045076 | 0.220344 | 18,040 | 416 | 120 | 43.365385 | 0.770281 | 0.25255 | 0 | 0.427451 | 0 | 0 | 0.069031 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.047059 | 0 | 0.164706 | 0.141176 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
1a3bf5f8efaf9a64a440a296ab8c07aeaef68756 | 308 | py | Python | wsgi.py | Ajuajmal/heroku | f23aad8c392a273caf0da39cedeec4746ded29dc | [
"0BSD"
] | null | null | null | wsgi.py | Ajuajmal/heroku | f23aad8c392a273caf0da39cedeec4746ded29dc | [
"0BSD"
] | null | null | null | wsgi.py | Ajuajmal/heroku | f23aad8c392a273caf0da39cedeec4746ded29dc | [
"0BSD"
] | null | null | null | import os
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "bootcamp.settings")
from django.core.wsgi import get_wsgi_application
from whitenoise.django import DjangoWhiteNoise
application = get_wsgi_application()
application = DjangoWhiteNoise(application)
| 34.222222 | 68 | 0.840909 | 36 | 308 | 6.972222 | 0.416667 | 0.071713 | 0.159363 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 308 | 8 | 69 | 38.5 | 0.877622 | 0 | 0 | 0 | 0 | 0 | 0.224026 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
1a49c8b879fb332a1efbb27e8548589d30835428 | 1,216 | py | Python | autoit_ripper/utils.py | nazywam/AutoIt-Ripper | 8845dfe82d287c1653ef24dc334bef6edce43f91 | [
"MIT"
] | 112 | 2020-03-19T02:57:17.000Z | 2022-03-25T14:49:07.000Z | autoit_ripper/utils.py | nazywam/AutoIt-Ripper | 8845dfe82d287c1653ef24dc334bef6edce43f91 | [
"MIT"
] | 9 | 2020-06-07T15:48:03.000Z | 2022-02-09T06:05:50.000Z | autoit_ripper/utils.py | nazywam/AutoIt-Ripper | 8845dfe82d287c1653ef24dc334bef6edce43f91 | [
"MIT"
] | 22 | 2020-03-19T06:13:32.000Z | 2022-03-23T22:06:24.000Z | from datetime import datetime, timezone
from itertools import cycle
from .lame import LAME
from .mt import MT
def filetime_to_dt(timestamp: int) -> datetime:
return datetime.fromtimestamp(timestamp // 100000000, timezone.utc)
def bytes_to_bitstring(data: bytes) -> str:
return "".join(bin(x)[2:].zfill(8) fo... | 23.843137 | 71 | 0.636513 | 185 | 1,216 | 4.048649 | 0.313514 | 0.084112 | 0.042724 | 0.053405 | 0.056075 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024758 | 0.23602 | 1,216 | 50 | 72 | 24.32 | 0.781485 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013158 | 0 | 0 | 1 | 0.242424 | false | 0 | 0.121212 | 0.090909 | 0.636364 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
1a4d0f443ab4af01fca9b80a22514075b7d2d9a8 | 632 | py | Python | python_api/tests/test_settings.py | berkerdemoglu/My3DEngine | 86edd838563a1d0691c1a267f5af62e184db33f5 | [
"CC0-1.0"
] | 1 | 2021-05-10T08:50:45.000Z | 2021-05-10T08:50:45.000Z | python_api/tests/test_settings.py | berkerdemoglu/My3DEngine | 86edd838563a1d0691c1a267f5af62e184db33f5 | [
"CC0-1.0"
] | 4 | 2021-05-10T10:46:04.000Z | 2021-05-11T11:10:36.000Z | python_api/tests/test_settings.py | berkerdemoglu/My3DEngine | 86edd838563a1d0691c1a267f5af62e184db33f5 | [
"CC0-1.0"
] | null | null | null | import unittest
from src.api import Settings
class SettingsTestCase(unittest.TestCase):
"""Tests the Settings class."""
def setUp(self):
self.settings = Settings(800, 600, 60, "3D Engine", use_antialiasing=False)
def test_keyword_arguments(self):
"""Check that the keyword arguments are being parsed correctl... | 24.307692 | 77 | 0.743671 | 84 | 632 | 5.357143 | 0.52381 | 0.133333 | 0.057778 | 0.071111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016393 | 0.131329 | 632 | 25 | 78 | 25.28 | 0.803279 | 0.221519 | 0 | 0 | 0 | 0 | 0.069328 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.307692 | false | 0 | 0.153846 | 0 | 0.538462 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
1a4fd5af7255565ca4ef372034ffcdcc891bee8e | 584 | py | Python | proficiencies.py | DennisMerkus/Aether | 25ba2bb332ec5aa79b6d263b3c30091e4a8a7888 | [
"MIT"
] | null | null | null | proficiencies.py | DennisMerkus/Aether | 25ba2bb332ec5aa79b6d263b3c30091e4a8a7888 | [
"MIT"
] | null | null | null | proficiencies.py | DennisMerkus/Aether | 25ba2bb332ec5aa79b6d263b3c30091e4a8a7888 | [
"MIT"
] | null | null | null | # Describing possession
# Describing things by color
# Describing kinship
# Describing movement to/from
# Describing locations
# Greetings and farewells
# Face-changing speech (Thanking, apologizing)
# Asking questions about where, what, how, when, who, etc
# Describing tastes
# A set of words/skills/structures that ... | 34.352941 | 135 | 0.777397 | 86 | 584 | 5.27907 | 0.639535 | 0.026432 | 0.039648 | 0.072687 | 0.22467 | 0.22467 | 0.22467 | 0.22467 | 0 | 0 | 0 | 0 | 0.159247 | 584 | 16 | 136 | 36.5 | 0.924644 | 0.94863 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 2 |
1a5db8812bd108997ff0e8111108d80bcd4adf97 | 1,155 | py | Python | modules/steps/find_docker_stack_files.py | KTH/aspen | 3be9b55d21dfd950d1a82b2cf4f464cd1f1e9757 | [
"MIT"
] | null | null | null | modules/steps/find_docker_stack_files.py | KTH/aspen | 3be9b55d21dfd950d1a82b2cf4f464cd1f1e9757 | [
"MIT"
] | 8 | 2019-10-10T08:03:02.000Z | 2022-01-11T11:28:58.000Z | modules/steps/find_docker_stack_files.py | KTH/aspen | 3be9b55d21dfd950d1a82b2cf4f464cd1f1e9757 | [
"MIT"
] | null | null | null | """FindDockerStackFiles
Crawls the fetched application registry directory (from FetchAppRegistry)
and locates all docker-stack.yml files"""
__author__ = 'tinglev@kth.se'
import os
from modules.steps.base_pipeline_step import BasePipelineStep
from modules.util import environment, data_defs
class FindDockerStackFiles... | 31.216216 | 73 | 0.701299 | 139 | 1,155 | 5.532374 | 0.438849 | 0.078023 | 0.062419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215584 | 1,155 | 36 | 74 | 32.083333 | 0.848786 | 0.116017 | 0 | 0 | 0 | 0 | 0.056158 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0.125 | 0.083333 | 0.541667 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
1a6017997621697cbd0199dbb1c7dd54ca68d925 | 208 | py | Python | 1-10/p2.py | smith-erik/project-euler | d4448243fd2dd0dfc81ad59eacbddf7bfbe6bcb1 | [
"Unlicense"
] | null | null | null | 1-10/p2.py | smith-erik/project-euler | d4448243fd2dd0dfc81ad59eacbddf7bfbe6bcb1 | [
"Unlicense"
] | null | null | null | 1-10/p2.py | smith-erik/project-euler | d4448243fd2dd0dfc81ad59eacbddf7bfbe6bcb1 | [
"Unlicense"
] | null | null | null | #!/usr/bin/python3
print("Sum of even-valued terms less than four million in the Fibonacci sequence:")
a, b, sum = 1, 1, 0
while b < 4000000:
sum += b if b % 2 == 0 else 0
a, b = b, a + b
print(sum)
| 23.111111 | 83 | 0.610577 | 41 | 208 | 3.097561 | 0.634146 | 0.047244 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089744 | 0.25 | 208 | 8 | 84 | 26 | 0.724359 | 0.081731 | 0 | 0 | 0 | 0 | 0.389474 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
1a64d49d59f3747f60bfc05ad269d46ad1e9d976 | 1,277 | py | Python | package/tests/test_bootstrap_dashboard.py | philippjfr/awesome-panel | a97a8f8d93dfee8a7146fc2e0f583f021f9b3d3b | [
"Apache-2.0"
] | null | null | null | package/tests/test_bootstrap_dashboard.py | philippjfr/awesome-panel | a97a8f8d93dfee8a7146fc2e0f583f021f9b3d3b | [
"Apache-2.0"
] | null | null | null | package/tests/test_bootstrap_dashboard.py | philippjfr/awesome-panel | a97a8f8d93dfee8a7146fc2e0f583f021f9b3d3b | [
"Apache-2.0"
] | 1 | 2021-10-05T05:40:19.000Z | 2021-10-05T05:40:19.000Z | """Tests of the BootStrapDashboardTemplate"""
import importlib
import pytest
from selenium import webdriver
import awesome_panel.express as pnx
import panel as pn
importlib.reload(pnx)
@pytest.fixture
def chrome_driver() -> webdriver.Chrome:
r"""The Chrome Web Driver Configured for Download
You can downlo... | 27.76087 | 97 | 0.740799 | 168 | 1,277 | 5.559524 | 0.529762 | 0.01606 | 0.025696 | 0.038544 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007605 | 0.176194 | 1,277 | 45 | 98 | 28.377778 | 0.880228 | 0.434612 | 0 | 0 | 0 | 0 | 0.048889 | 0.032593 | 0 | 0 | 0 | 0 | 0.210526 | 1 | 0.157895 | false | 0 | 0.315789 | 0 | 0.526316 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
1a70c759b7625d1f1f42340292bc4b680220b4aa | 182 | py | Python | kardioml/segmentation/teijeiro/utils/__init__.py | Seb-Good/physionet-challenge-2020 | c6f1648a148335babc0a26d8a589120616327548 | [
"BSD-2-Clause"
] | 13 | 2020-12-18T08:09:34.000Z | 2022-03-15T04:51:46.000Z | kardioml/segmentation/teijeiro/utils/__init__.py | Seb-Good/physionet-challenge-2020 | c6f1648a148335babc0a26d8a589120616327548 | [
"BSD-2-Clause"
] | null | null | null | kardioml/segmentation/teijeiro/utils/__init__.py | Seb-Good/physionet-challenge-2020 | c6f1648a148335babc0a26d8a589120616327548 | [
"BSD-2-Clause"
] | 14 | 2020-09-16T21:07:38.000Z | 2022-03-23T14:01:24.000Z | # -*- coding: utf-8 -*-
"""
En este paquete se situarán distintas clases de utilidad para el
resto del proyecto.
"""
__author__ = "T. Teijeiro"
__date__ = "$30-nov-2011 17:50:53$"
| 18.2 | 64 | 0.67033 | 27 | 182 | 4.222222 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086093 | 0.17033 | 182 | 9 | 65 | 20.222222 | 0.668874 | 0.587912 | 0 | 0 | 0 | 0 | 0.492537 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1a72f559582bed4be993a951982e63b599878a68 | 1,549 | py | Python | structure/greibach_path.py | vnszero/interpretadorGLC | e52096f2f1ed68befbc8c29a0f7fa8c183298dff | [
"MIT"
] | null | null | null | structure/greibach_path.py | vnszero/interpretadorGLC | e52096f2f1ed68befbc8c29a0f7fa8c183298dff | [
"MIT"
] | null | null | null | structure/greibach_path.py | vnszero/interpretadorGLC | e52096f2f1ed68befbc8c29a0f7fa8c183298dff | [
"MIT"
] | null | null | null | from typing import Dict
from structure.GLC import GLC
class Path:
'''
ex of a Path:
a. G | UGU
'''
def __init__(self, alpha : str, top : str, stack : str):
self.alpha = alpha
self.top = top
self.stack = stack
def __repr__(self) -> str:
return f'{sel... | 28.685185 | 71 | 0.511943 | 196 | 1,549 | 3.852041 | 0.244898 | 0.119205 | 0.154967 | 0.084768 | 0.365563 | 0.309934 | 0.309934 | 0.309934 | 0.309934 | 0.309934 | 0 | 0.004921 | 0.344093 | 1,549 | 54 | 72 | 28.685185 | 0.738189 | 0.065849 | 0 | 0.378378 | 0 | 0 | 0.090975 | 0.031769 | 0 | 0 | 0 | 0 | 0 | 1 | 0.216216 | false | 0 | 0.054054 | 0.108108 | 0.486486 | 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 | 0 | 1 | 0 | 0 | 0 | 2 |
1a730662fb2939d7ec1518af278214dab930caf1 | 958 | py | Python | ontobio/bin/timeit.py | alliance-genome/ontobio | 0ec3aa6fea9d4492a9873a4b9b394c4866f741b6 | [
"BSD-3-Clause"
] | 101 | 2017-04-19T20:54:49.000Z | 2022-03-14T02:32:11.000Z | ontobio/bin/timeit.py | alliance-genome/ontobio | 0ec3aa6fea9d4492a9873a4b9b394c4866f741b6 | [
"BSD-3-Clause"
] | 402 | 2017-04-24T19:53:12.000Z | 2022-03-31T20:27:59.000Z | ontobio/bin/timeit.py | alliance-genome/ontobio | 0ec3aa6fea9d4492a9873a4b9b394c4866f741b6 | [
"BSD-3-Clause"
] | 30 | 2017-04-20T17:59:12.000Z | 2022-02-25T22:26:08.000Z | #!/usr/bin/env python3
from ontobio.sparql2ontology import *
from networkx.algorithms.dag import ancestors
import time
def r():
t1 = time.process_time()
get_edges('pato')
t2 = time.process_time()
print(t2-t1)
r()
r()
r()
"""
LRU is much faster, but does not persist. However, should be fast enough
... | 14.515152 | 72 | 0.75261 | 129 | 958 | 5.565891 | 0.503876 | 0.125348 | 0.150418 | 0.200557 | 0.289694 | 0.289694 | 0.214485 | 0.214485 | 0 | 0 | 0 | 0.345783 | 0.133612 | 958 | 65 | 73 | 14.738462 | 0.519277 | 0.021921 | 0 | 0.272727 | 0 | 0 | 0.0181 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.363636 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
1a76433f7aa70f1856ee40510c30c29e4476e2e5 | 742 | py | Python | objects/CSCG/_3d/ADF/trace/base/cochain/local.py | mathischeap/mifem | 3242e253fb01ca205a76568eaac7bbdb99e3f059 | [
"MIT"
] | 1 | 2020-10-14T12:48:35.000Z | 2020-10-14T12:48:35.000Z | objects/CSCG/_3d/ADF/trace/base/cochain/local.py | mathischeap/mifem | 3242e253fb01ca205a76568eaac7bbdb99e3f059 | [
"MIT"
] | null | null | null | objects/CSCG/_3d/ADF/trace/base/cochain/local.py | mathischeap/mifem | 3242e253fb01ca205a76568eaac7bbdb99e3f059 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from screws.freeze.main import FrozenOnly
class ____3dCSCG_ADTF_Cochain_Local____(FrozenOnly):
""""""
def __init__(self, dt_CO):
""""""
self._PC_ = dt_CO._dt_.prime.cochain
self._MM_ = dt_CO._dt_.mass_matrix
self._freeze_self_()
def __getitem__(self... | 26.5 | 66 | 0.588949 | 96 | 742 | 3.96875 | 0.46875 | 0.07874 | 0.115486 | 0.047244 | 0.073491 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003731 | 0.277628 | 742 | 28 | 67 | 26.5 | 0.70709 | 0.168464 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.066667 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
1a76a04e677ee763760de09c952fec4dc9fabe76 | 352 | py | Python | pyvis/PIMCPy/TestGaussianSingleSlicePotential.py | b3sigma/fourd | 8df1300d9820ffa65e0df4519ce3795f1b2e7c9c | [
"MIT"
] | 20 | 2015-05-15T20:46:40.000Z | 2022-02-26T14:30:37.000Z | pyvis/PIMCPy/TestGaussianSingleSlicePotential.py | b3sigma/fourd | 8df1300d9820ffa65e0df4519ce3795f1b2e7c9c | [
"MIT"
] | null | null | null | pyvis/PIMCPy/TestGaussianSingleSlicePotential.py | b3sigma/fourd | 8df1300d9820ffa65e0df4519ce3795f1b2e7c9c | [
"MIT"
] | 3 | 2016-08-13T09:44:49.000Z | 2018-07-29T16:52:41.000Z | #!/bin/env python
import numpy
#import pylab
import CalcStatistics
import random
import numpy
from PIMC import *
numParticles=2
numTimeSlices=5
tau=0.1
lam=0.5
Path=PathClass(numpy.zeros((numTimeSlices,numParticles,3),float),tau,lam)
Path.SetPotential(HarmonicOscillator)
Path.SetCouplingConstant(0.0)
print PIMC(10000... | 19.555556 | 73 | 0.821023 | 48 | 352 | 6.020833 | 0.604167 | 0.076125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046154 | 0.076705 | 352 | 17 | 74 | 20.705882 | 0.843077 | 0.079545 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.384615 | null | null | 0.076923 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
1a7da321078d78942d17b263999964359503768c | 378 | py | Python | model.py | karth295/hacks-on-hacks | 56217552dfebbbe8a07cb2a9e271bd625f548582 | [
"MIT"
] | null | null | null | model.py | karth295/hacks-on-hacks | 56217552dfebbbe8a07cb2a9e271bd625f548582 | [
"MIT"
] | null | null | null | model.py | karth295/hacks-on-hacks | 56217552dfebbbe8a07cb2a9e271bd625f548582 | [
"MIT"
] | null | null | null | import csv
def delta_growth_by_zipcode(file):
growth = {}
with open(file, 'rb') as csvfile:
reader = csv.reader(csvfile)
for line in reader:
growth[float(line[0])] = float(line[2]) - float(line[1]) # delta in growth by zip code
return growth
def main():
growth = delta_growth_by_zipcode("growth... | 22.235294 | 93 | 0.669312 | 56 | 378 | 4.267857 | 0.5 | 0.100418 | 0.108787 | 0.167364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009901 | 0.198413 | 378 | 17 | 94 | 22.235294 | 0.778878 | 0.071429 | 0 | 0 | 0 | 0 | 0.057143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0.076923 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1a927b6d59a052eb1d68ce227120e030e0cc83e9 | 1,557 | py | Python | stream_alert/rule_processor/main.py | serhatcan/streamalert | 0549bb05163b7b54c30365312948caa21e44be98 | [
"Apache-2.0"
] | 1 | 2020-03-10T16:20:31.000Z | 2020-03-10T16:20:31.000Z | stream_alert/rule_processor/main.py | serhatcan/streamalert | 0549bb05163b7b54c30365312948caa21e44be98 | [
"Apache-2.0"
] | null | null | null | stream_alert/rule_processor/main.py | serhatcan/streamalert | 0549bb05163b7b54c30365312948caa21e44be98 | [
"Apache-2.0"
] | null | null | null | '''
Copyright 2017-present, Airbnb Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, sof... | 33.847826 | 74 | 0.702633 | 214 | 1,557 | 4.981308 | 0.528037 | 0.056285 | 0.042214 | 0.030019 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007311 | 0.209377 | 1,557 | 45 | 75 | 34.6 | 0.858652 | 0.446371 | 0 | 0 | 0 | 0 | 0.053129 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.47619 | 0 | 0.52381 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
1a95e3caee6bcbecacf92260e137d91a9a486683 | 3,323 | py | Python | tests/adapters/shell/mock_terminal_commands.py | FrancoisLopez/netman | a40d3235f7ea0cdaf52daab97b0d5ad20857b00e | [
"Apache-2.0"
] | 38 | 2015-11-30T10:11:42.000Z | 2022-02-10T18:31:44.000Z | tests/adapters/shell/mock_terminal_commands.py | FrancoisLopez/netman | a40d3235f7ea0cdaf52daab97b0d5ad20857b00e | [
"Apache-2.0"
] | 143 | 2015-12-10T19:00:42.000Z | 2020-08-20T13:51:42.000Z | tests/adapters/shell/mock_terminal_commands.py | FrancoisLopez/netman | a40d3235f7ea0cdaf52daab97b0d5ad20857b00e | [
"Apache-2.0"
] | 15 | 2015-12-14T23:03:30.000Z | 2019-01-15T19:35:45.000Z | # Copyright 2015 Internap.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... | 27.46281 | 74 | 0.646705 | 410 | 3,323 | 5.002439 | 0.3 | 0.093613 | 0.035105 | 0.051195 | 0.396392 | 0.286689 | 0.286689 | 0.286689 | 0.286689 | 0.286689 | 0 | 0.0036 | 0.247668 | 3,323 | 120 | 75 | 27.691667 | 0.8168 | 0.188083 | 0 | 0.459459 | 0 | 0 | 0.04218 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.256757 | false | 0.054054 | 0.027027 | 0 | 0.418919 | 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 | 0 | 0 | 0 | 0 | 2 |
1a9ae965cf9ec4bcd92ab56bd4b34cf40cb58354 | 4,267 | py | Python | mysite/classroom/models.py | anishmo99/Classrooom-Django-Web-App | 255703d696040fa762f97119b2e7381b4a5e91c3 | [
"MIT"
] | 1 | 2021-02-04T12:55:18.000Z | 2021-02-04T12:55:18.000Z | mysite/classroom/models.py | anishmo99/Classrooom-Django-Web-App | 255703d696040fa762f97119b2e7381b4a5e91c3 | [
"MIT"
] | null | null | null | mysite/classroom/models.py | anishmo99/Classrooom-Django-Web-App | 255703d696040fa762f97119b2e7381b4a5e91c3 | [
"MIT"
] | null | null | null | from django.utils import timezone
from django.db import models
from django.contrib.auth.models import AbstractBaseUser, BaseUserManager
class User(AbstractBaseUser):
is_student = models.BooleanField(default=False)
is_teacher = models.BooleanField(default=False)
# class Teacher(models.Model):
# teacher_name = mo... | 28.258278 | 88 | 0.770565 | 549 | 4,267 | 5.777778 | 0.169399 | 0.068096 | 0.094578 | 0.075662 | 0.7686 | 0.72005 | 0.679697 | 0.679697 | 0.632724 | 0.576293 | 0 | 0.005572 | 0.11671 | 4,267 | 150 | 89 | 28.446667 | 0.836031 | 0.113429 | 0 | 0.604167 | 0 | 0 | 0.048276 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.041667 | 0.03125 | 0.104167 | 0.78125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 2 |
1a9e7edc381da5d1add9579f19898e4905a4cc7f | 1,011 | py | Python | case_cleaner.py | fcoclavero/text-preprocess | aa6ee557869cb81dba87a9764706e7b7ff555741 | [
"MIT"
] | 2 | 2018-10-18T15:39:39.000Z | 2018-10-23T19:23:19.000Z | case_cleaner.py | fcoclavero/text-preprocess | aa6ee557869cb81dba87a9764706e7b7ff555741 | [
"MIT"
] | null | null | null | case_cleaner.py | fcoclavero/text-preprocess | aa6ee557869cb81dba87a9764706e7b7ff555741 | [
"MIT"
] | null | null | null | __author__ = ["Francisco Clavero"]
__description__ = "Text cleaner functions that deal with casing."
__email__ = ["fcoclavero32@gmail.com"]
__status__ = "Prototype"
import re
def clean_cases(text: str) -> str:
"""Makes text all lowercase.
Arguments:
text:
The text to be converted to all ... | 21.978261 | 77 | 0.617211 | 128 | 1,011 | 4.6875 | 0.445313 | 0.058333 | 0.05 | 0.1 | 0.156667 | 0.156667 | 0.116667 | 0.116667 | 0 | 0 | 0 | 0.004076 | 0.272008 | 1,011 | 45 | 78 | 22.466667 | 0.811141 | 0.486647 | 0 | 0 | 0 | 0 | 0.271028 | 0.051402 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.090909 | 0 | 0.636364 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
1ab77ce695c3536e0736f0c215f43af23201b692 | 128 | py | Python | BaekJoon Online Judge/step/3-For-Loop/[8393] sum.py | TyeolRik/CodingProblems | 5dcc371eb0f47d3ee2638416516aa7733555f088 | [
"MIT"
] | null | null | null | BaekJoon Online Judge/step/3-For-Loop/[8393] sum.py | TyeolRik/CodingProblems | 5dcc371eb0f47d3ee2638416516aa7733555f088 | [
"MIT"
] | null | null | null | BaekJoon Online Judge/step/3-For-Loop/[8393] sum.py | TyeolRik/CodingProblems | 5dcc371eb0f47d3ee2638416516aa7733555f088 | [
"MIT"
] | null | null | null | # https://www.acmicpc.net/problem/8393
a = int(input())
result = 0
for i in range(a + 1):
result = result + i
print(result) | 18.285714 | 38 | 0.640625 | 22 | 128 | 3.727273 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057692 | 0.1875 | 128 | 7 | 39 | 18.285714 | 0.730769 | 0.28125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
1ab931146770e0063a5c41ce438aa781498105f2 | 130 | py | Python | Code/arrayTest.py | Wolfcoder13/Drooper | 27ececa865a2572bf43063da3610c9260a280229 | [
"Apache-2.0"
] | null | null | null | Code/arrayTest.py | Wolfcoder13/Drooper | 27ececa865a2572bf43063da3610c9260a280229 | [
"Apache-2.0"
] | null | null | null | Code/arrayTest.py | Wolfcoder13/Drooper | 27ececa865a2572bf43063da3610c9260a280229 | [
"Apache-2.0"
] | null | null | null | import numpy as numpy
a = numpy.arange(150)
# a[0::2] *= numpy.sqrt(2)/2.0 * (numpy.cos(2) - numpy.sin(2))
a[0::2] *= 2
print(a) | 18.571429 | 62 | 0.584615 | 28 | 130 | 2.714286 | 0.428571 | 0.052632 | 0.078947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118182 | 0.153846 | 130 | 7 | 63 | 18.571429 | 0.572727 | 0.461538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
1ab9d1fecee3efd0f1d10c9ee7f460b98883f453 | 2,776 | py | Python | game.py | Catsuko/Westward | 3c04df668f7e04ca45e622017ffa9dfe6d3c242c | [
"MIT"
] | 3 | 2019-12-22T22:44:43.000Z | 2020-02-11T11:14:10.000Z | game.py | Catsuko/Westward | 3c04df668f7e04ca45e622017ffa9dfe6d3c242c | [
"MIT"
] | null | null | null | game.py | Catsuko/Westward | 3c04df668f7e04ca45e622017ffa9dfe6d3c242c | [
"MIT"
] | null | null | null | from actors.actions.hit_and_run_action import HitAndRunAction
from actors.actions.input_driven_action import InputDrivenAction
from actors.actions.shoot_at_action import ShootAtAction
from actors.actor_target import ActorTarget
from actors.components.components import Components
from actors.components.health import Hea... | 48.701754 | 120 | 0.791427 | 365 | 2,776 | 5.849315 | 0.331507 | 0.056206 | 0.039813 | 0.021077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017494 | 0.114553 | 2,776 | 56 | 121 | 49.571429 | 0.851098 | 0.034942 | 0 | 0 | 0 | 0 | 0.014942 | 0.010833 | 0 | 0 | 0 | 0.017857 | 0 | 1 | 0.019231 | false | 0 | 0.5 | 0 | 0.519231 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
1ac2a4b4d82cadcf46a865385dc7a48f7e31f7a4 | 440 | py | Python | tests/test_zuul_lint.py | pycontribs/zuul-lint | f1d1c43d1f9ae92f52f8e513b234ae54b57e45dc | [
"MIT"
] | 2 | 2020-01-18T16:56:45.000Z | 2020-09-04T22:15:49.000Z | tests/test_zuul_lint.py | pycontribs/zuul-lint | f1d1c43d1f9ae92f52f8e513b234ae54b57e45dc | [
"MIT"
] | 5 | 2020-01-12T20:23:53.000Z | 2022-03-30T15:07:04.000Z | tests/test_zuul_lint.py | pycontribs/zuul-lint | f1d1c43d1f9ae92f52f8e513b234ae54b57e45dc | [
"MIT"
] | null | null | null | import pytest
import sh
def test_invalid():
try:
sh.python(["-m", "zuul_lint", "tests/data/zuul-config-invalid.yaml"])
except sh.ErrorReturnCode_1:
return
except sh.ErrorReturnCode as e:
pytest.fail(e)
pytest.fail("Expected to fail")
def test_valid():
try:
sh.pyth... | 22 | 77 | 0.629545 | 60 | 440 | 4.533333 | 0.416667 | 0.088235 | 0.253676 | 0.088235 | 0.558824 | 0.558824 | 0.558824 | 0.558824 | 0.286765 | 0.286765 | 0 | 0.002941 | 0.227273 | 440 | 19 | 78 | 23.157895 | 0.797059 | 0 | 0 | 0.4 | 0 | 0 | 0.240909 | 0.154545 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | true | 0 | 0.133333 | 0 | 0.333333 | 0 | 0 | 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 | 0 | 0 | 2 |
46bdd84a88fa48056900e9a369750f95d41850d8 | 332 | py | Python | lamp/__init__.py | leonardocunha2107/LaMP | 9927cc18839ff274a230f2118b4d330932131380 | [
"MIT"
] | 78 | 2019-04-22T10:17:02.000Z | 2022-01-11T13:33:53.000Z | lamp/__init__.py | leonardocunha2107/LaMP | 9927cc18839ff274a230f2118b4d330932131380 | [
"MIT"
] | 9 | 2019-05-01T06:20:33.000Z | 2021-07-09T03:23:28.000Z | lamp/__init__.py | leonardocunha2107/LaMP | 9927cc18839ff274a230f2118b4d330932131380 | [
"MIT"
] | 20 | 2019-04-26T19:52:11.000Z | 2022-03-04T10:23:33.000Z | import lamp.Constants
import lamp.Layers
import lamp.SubLayers
import lamp.Models
import lamp.Translator
import lamp.Beam
import lamp.Encoders
import lamp.Decoders
__all__ = [
lamp.Constants,
lamp.Layers,
lamp.SubLayers,
lamp.Models,
lamp.Translator,
lamp.Beam,
lamp.Encoders,
lamp.Decod... | 16.6 | 22 | 0.71988 | 41 | 332 | 5.731707 | 0.268293 | 0.340426 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198795 | 332 | 20 | 23 | 16.6 | 0.883459 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
46ceba2ce951fbe658439da9f2f39224dfb62243 | 346 | py | Python | delimg.py | Liang457/gk-imagebed-server | 0a97d51c78fc2dcf4ff7d548d40424646f9a7d00 | [
"MIT"
] | null | null | null | delimg.py | Liang457/gk-imagebed-server | 0a97d51c78fc2dcf4ff7d548d40424646f9a7d00 | [
"MIT"
] | null | null | null | delimg.py | Liang457/gk-imagebed-server | 0a97d51c78fc2dcf4ff7d548d40424646f9a7d00 | [
"MIT"
] | null | null | null | import os
def del_img():
try:
file_name = "./img"
for root, dirs, files in os.walk(file_name):
for name in files:
if name.endswith(".png"): # 填写规则
os.remove(os.path.join(root, name))
print("Delete File: " + os.path.join(root, name)... | 28.833333 | 69 | 0.491329 | 44 | 346 | 3.795455 | 0.568182 | 0.095808 | 0.11976 | 0.167665 | 0.215569 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.381503 | 346 | 12 | 70 | 28.833333 | 0.780374 | 0.011561 | 0 | 0 | 0 | 0 | 0.064516 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.090909 | 0.090909 | 0 | 0.181818 | 0.090909 | 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 | 0 | 0 | 0 | 0 | 2 |
46d314ce946d47933b799f32bfc3191136846bd1 | 3,484 | py | Python | examples/keras/Progressive growing of GANs/Progressive growing of GANs/main.py | DYG111/samples-for-ai | 383f8a960d68d1914bec763a6805cb395a80ee9e | [
"CC-BY-4.0",
"MIT"
] | null | null | null | examples/keras/Progressive growing of GANs/Progressive growing of GANs/main.py | DYG111/samples-for-ai | 383f8a960d68d1914bec763a6805cb395a80ee9e | [
"CC-BY-4.0",
"MIT"
] | null | null | null | examples/keras/Progressive growing of GANs/Progressive growing of GANs/main.py | DYG111/samples-for-ai | 383f8a960d68d1914bec763a6805cb395a80ee9e | [
"CC-BY-4.0",
"MIT"
] | null | null | null | from __future__ import print_function
import numpy as np
import sys
import os
import argparse
###################################################################
# Variables #
# When launching project or scripts from Visual Studio, #
# input_dir and out... | 35.917526 | 101 | 0.52124 | 352 | 3,484 | 5.002841 | 0.380682 | 0.07155 | 0.076661 | 0.107325 | 0.137422 | 0.049972 | 0.049972 | 0.049972 | 0 | 0 | 0 | 0.006375 | 0.279564 | 3,484 | 96 | 102 | 36.291667 | 0.694821 | 0.196613 | 0 | 0.033898 | 0 | 0 | 0.13606 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.355932 | null | null | 0.016949 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
46d8ec6e43a93278929edf7882c3cbd81a918b07 | 216 | py | Python | python/py-set-add.py | gajubadge11/HackerRank-1 | 7b136ccaa1ed47ae737467ace6b494c720ccb942 | [
"MIT"
] | 340 | 2018-06-17T19:45:56.000Z | 2022-03-22T02:26:15.000Z | python/py-set-add.py | gajubadge11/HackerRank-1 | 7b136ccaa1ed47ae737467ace6b494c720ccb942 | [
"MIT"
] | 3 | 2021-02-02T17:17:29.000Z | 2021-05-18T10:06:04.000Z | python/py-set-add.py | gajubadge11/HackerRank-1 | 7b136ccaa1ed47ae737467ace6b494c720ccb942 | [
"MIT"
] | 229 | 2019-04-20T08:28:49.000Z | 2022-03-31T04:23:52.000Z | #!/usr/bin/env python3
if __name__ == "__main__":
N = int(input().strip())
stamps = set()
for _ in range(N):
stamp = input().strip()
stamps.add(stamp)
print(len(stamps)) | 19.636364 | 31 | 0.518519 | 26 | 216 | 3.961538 | 0.769231 | 0.194175 | 0.31068 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006711 | 0.310185 | 216 | 11 | 32 | 19.636364 | 0.684564 | 0.097222 | 0 | 0 | 0 | 0 | 0.041026 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
46dac2cb1ca028d8ebb43fc7809de2e226cce548 | 1,291 | py | Python | src/mpi4py/futures/_core.py | renefritze/mpi4py | 23d3635574eeb5eb7ebf4fb51f91f0604306d848 | [
"BSD-2-Clause"
] | null | null | null | src/mpi4py/futures/_core.py | renefritze/mpi4py | 23d3635574eeb5eb7ebf4fb51f91f0604306d848 | [
"BSD-2-Clause"
] | null | null | null | src/mpi4py/futures/_core.py | renefritze/mpi4py | 23d3635574eeb5eb7ebf4fb51f91f0604306d848 | [
"BSD-2-Clause"
] | null | null | null | # Author: Lisandro Dalcin
# Contact: dalcinl@gmail.com
# pylint: disable=unused-import
# pylint: disable=redefined-builtin
# pylint: disable=missing-module-docstring
try:
from concurrent.futures import (
FIRST_COMPLETED,
FIRST_EXCEPTION,
ALL_COMPLETED,
CancelledError,
Tim... | 25.313725 | 61 | 0.630519 | 121 | 1,291 | 6.619835 | 0.520661 | 0.081149 | 0.078652 | 0.101124 | 0.364544 | 0.179775 | 0.179775 | 0.179775 | 0.179775 | 0 | 0 | 0.004396 | 0.29512 | 1,291 | 50 | 62 | 25.82 | 0.875824 | 0.306739 | 0 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.205882 | 0 | 0.264706 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
46de860cdf68c29840d8c605bd49eeb8dd78fc61 | 4,536 | py | Python | messy_pypi/done/main_readmereader.py | Maxio-Arkanyota/Maxio-Arkanyota | 6737faecf622d60b8b97a08fd9d24c9e23ff7336 | [
"MIT"
] | 2 | 2021-04-30T22:38:38.000Z | 2021-05-02T10:34:10.000Z | messy_pypi/done/main_readmereader.py | Maxio-Arkanyota/Maxio-Arkanyota | 6737faecf622d60b8b97a08fd9d24c9e23ff7336 | [
"MIT"
] | null | null | null | messy_pypi/done/main_readmereader.py | Maxio-Arkanyota/Maxio-Arkanyota | 6737faecf622d60b8b97a08fd9d24c9e23ff7336 | [
"MIT"
] | 1 | 2021-04-30T22:38:30.000Z | 2021-04-30T22:38:30.000Z | from collections import deque # Implement Mathematiques Stacks
# from main_terminalFunctions import
from os import get_terminal_size
from main_terminalGetKey import getKey
def readfile(file):
# Gras, Italique, Strike, code, Mcode, Hilight
# 0** 1* 2__ 3_ 4~~ 5` 6``... | 45.818182 | 167 | 0.516093 | 532 | 4,536 | 4.242481 | 0.296992 | 0.228622 | 0.058928 | 0.074435 | 0.350908 | 0.272043 | 0.192291 | 0.114311 | 0.078866 | 0.060257 | 0 | 0.078895 | 0.337743 | 4,536 | 98 | 168 | 46.285714 | 0.671771 | 0.12522 | 0 | 0 | 0 | 0.011765 | 0.184304 | 0.033924 | 0 | 0 | 0 | 0.010204 | 0 | 1 | 0.023529 | false | 0.011765 | 0.047059 | 0 | 0.082353 | 0.094118 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2001b619e2cf1e34913edca6a9df364aa574a9c0 | 1,650 | py | Python | app-sdk/python/iagent_sdk/iagent/model/group.py | iconnect-iot/intel-device-resource-mgt-lib | 3be2f7342b6f79836439e9712e2a36939c986760 | [
"Apache-2.0"
] | 2 | 2020-05-12T23:06:17.000Z | 2020-05-27T02:01:05.000Z | app-sdk/python/iagent_sdk/iagent/model/group.py | iconnect-iot/intel-device-resource-mgt-lib | 3be2f7342b6f79836439e9712e2a36939c986760 | [
"Apache-2.0"
] | 1 | 2020-06-02T04:32:15.000Z | 2020-06-02T04:32:34.000Z | app-sdk/python/iagent_sdk/iagent/model/group.py | iconnect-iot/intel-device-resource-mgt-lib | 3be2f7342b6f79836439e9712e2a36939c986760 | [
"Apache-2.0"
] | 15 | 2018-04-06T11:43:38.000Z | 2022-02-07T03:25:43.000Z | # -*- coding: utf-8 -*-
# Copyright (C) 2017 Intel Corporation. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# ... | 31.730769 | 74 | 0.660606 | 213 | 1,650 | 4.985915 | 0.450704 | 0.052731 | 0.024482 | 0.030132 | 0.12806 | 0.12806 | 0.12806 | 0.12806 | 0.12806 | 0.12806 | 0 | 0.007335 | 0.256364 | 1,650 | 51 | 75 | 32.352941 | 0.858191 | 0.366061 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.142857 | 0.5 | 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 | 0 | 1 | 0 | 0 | 0 | 2 |
2008db38c6712660f7d50f20c3ef7f37f84aa650 | 969 | py | Python | app/config.py | pawan0410/aig-docs | a816346e62660575836082a769298e5b14e045b1 | [
"0BSD"
] | null | null | null | app/config.py | pawan0410/aig-docs | a816346e62660575836082a769298e5b14e045b1 | [
"0BSD"
] | null | null | null | app/config.py | pawan0410/aig-docs | a816346e62660575836082a769298e5b14e045b1 | [
"0BSD"
] | null | null | null | """
Configuration file
"""
class Config:
"""
Base Configuration
"""
DEBUG = True
SECRET_KEY = r'f\x13\xd9fM\xdc\x82\x01b\xdb\x03'
SQLALCHEMY_POOL_SIZE = 5
SQLALCHEMY_POOL_TIMEOUT = 120
SQLALCHEMY_POOL_RECYCLE = 280
MAIL_SERVER = 'smtp.gmail.com'
MAIL_PORT = 465
MAIL_USERNA... | 19.77551 | 80 | 0.668731 | 114 | 969 | 5.464912 | 0.614035 | 0.067416 | 0.051364 | 0.083467 | 0.096308 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058047 | 0.21775 | 969 | 48 | 81 | 20.1875 | 0.763852 | 0.083591 | 0 | 0.08 | 0 | 0 | 0.270659 | 0.190419 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.08 | 0 | 0 | 0.84 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
20172b7ced7c4e82caf129514f7be128e4aeccad | 1,342 | py | Python | Parser.py | DoubleNy/WADE-HACKATON | 9c8355db90c0aa3e71b5052c9f33f7b185dcef5b | [
"MIT"
] | null | null | null | Parser.py | DoubleNy/WADE-HACKATON | 9c8355db90c0aa3e71b5052c9f33f7b185dcef5b | [
"MIT"
] | null | null | null | Parser.py | DoubleNy/WADE-HACKATON | 9c8355db90c0aa3e71b5052c9f33f7b185dcef5b | [
"MIT"
] | null | null | null | import xlrd
from xlrd.sheet import ctype_text
class Parser:
def __init__(self):
self.parsed_sheets = dict()
self.parsed_sheets_names = []
def get_parsed(self):
return self.parsed_sheets_names, self.parsed_sheets
def parse(self, file):
workbook = xlrd.open_workbook(file, en... | 34.410256 | 89 | 0.610283 | 172 | 1,342 | 4.430233 | 0.302326 | 0.11811 | 0.188976 | 0.165354 | 0.181102 | 0.146982 | 0.062992 | 0.062992 | 0 | 0 | 0 | 0.009615 | 0.302534 | 1,342 | 38 | 90 | 35.315789 | 0.804487 | 0.039493 | 0 | 0.074074 | 0 | 0 | 0.004669 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.074074 | 0.037037 | 0.259259 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2026a2232979328f3b4889d3f69498813c75c514 | 4,949 | py | Python | pauli_tm.py | johnkerl/sack | b729896fc4d6cd783d8c1b8e5751811a31e6d871 | [
"BSD-2-Clause"
] | 6 | 2016-10-03T17:42:07.000Z | 2021-12-06T17:08:28.000Z | pauli_tm.py | johnkerl/sack | b729896fc4d6cd783d8c1b8e5751811a31e6d871 | [
"BSD-2-Clause"
] | null | null | null | pauli_tm.py | johnkerl/sack | b729896fc4d6cd783d8c1b8e5751811a31e6d871 | [
"BSD-2-Clause"
] | 2 | 2017-10-25T12:56:29.000Z | 2021-12-26T04:31:07.000Z | #!/usr/bin/python -Wall
# ================================================================
# Please see LICENSE.txt in the same directory as this file.
# John Kerl
# kerl.john.r@gmail.com
# 2007-05-31
# ================================================================
# Type module for the group of Pauli matrices.
im... | 23.908213 | 86 | 0.457062 | 714 | 4,949 | 2.957983 | 0.166667 | 0.069602 | 0.075758 | 0.090909 | 0.422822 | 0.396307 | 0.384943 | 0.151515 | 0.151515 | 0.151515 | 0 | 0.022202 | 0.326531 | 4,949 | 206 | 87 | 24.024272 | 0.611461 | 0.279652 | 0 | 0.227642 | 0 | 0 | 0.005138 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.260163 | false | 0.130081 | 0.01626 | 0.03252 | 0.422764 | 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 | 0 | 0 | 0 | 0 | 2 |
2032137382c8028bae455fb831f965b6d60a0da9 | 212 | py | Python | template.py | RemyG/python-scripts-template | 7fb27e4c0a0a2066b594007c2f0d770226eb683c | [
"MIT"
] | null | null | null | template.py | RemyG/python-scripts-template | 7fb27e4c0a0a2066b594007c2f0d770226eb683c | [
"MIT"
] | null | null | null | template.py | RemyG/python-scripts-template | 7fb27e4c0a0a2066b594007c2f0d770226eb683c | [
"MIT"
] | null | null | null | import argparse
parser = argparse.ArgumentParser()
parser.add_argument("-V", "--version", help="show program version", action="store_true")
args = parser.parse_args()
if args.version:
print("Version 0.1")
| 21.2 | 88 | 0.721698 | 28 | 212 | 5.357143 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010695 | 0.117925 | 212 | 9 | 89 | 23.555556 | 0.791444 | 0 | 0 | 0 | 0 | 0 | 0.245283 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
20385d240ed916d030d81726a4267bdcdb2047d2 | 372 | py | Python | Singleton.py | RaynoldKim/MyTrade | 8a1c5c2d15c4c990d833c70addcd5b5a8a6ab996 | [
"MIT"
] | null | null | null | Singleton.py | RaynoldKim/MyTrade | 8a1c5c2d15c4c990d833c70addcd5b5a8a6ab996 | [
"MIT"
] | null | null | null | Singleton.py | RaynoldKim/MyTrade | 8a1c5c2d15c4c990d833c70addcd5b5a8a6ab996 | [
"MIT"
] | null | null | null | class Singleton:
__instance = None
@classmethod
def __get_instance(cls):
return cls.__instance
@classmethod
def instance(cls, *args, **kargs):
cls.__instance = cls(*args, **kargs)
cls.instance = cls.__get_instance
return cls.__instance
"""""
class MyClass(BaseClass... | 19.578947 | 44 | 0.629032 | 39 | 372 | 5.641026 | 0.384615 | 0.2 | 0.154545 | 0.181818 | 0.259091 | 0.259091 | 0.259091 | 0 | 0 | 0 | 0 | 0 | 0.247312 | 372 | 19 | 45 | 19.578947 | 0.785714 | 0 | 0 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0 | 0.090909 | 0.545455 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
2044f9195637c6fefdec2880124627bc56777b08 | 732 | py | Python | CURSO PYTHON UDEMY/Curso Udemy/Mundo 4 (POO)/AGRAGACAO108.py | nihilboy1455/CURSO-PYTHON-UDEMY | ef27b9bba12672f5426ddeeb3fd70304073a56e2 | [
"MIT"
] | null | null | null | CURSO PYTHON UDEMY/Curso Udemy/Mundo 4 (POO)/AGRAGACAO108.py | nihilboy1455/CURSO-PYTHON-UDEMY | ef27b9bba12672f5426ddeeb3fd70304073a56e2 | [
"MIT"
] | null | null | null | CURSO PYTHON UDEMY/Curso Udemy/Mundo 4 (POO)/AGRAGACAO108.py | nihilboy1455/CURSO-PYTHON-UDEMY | ef27b9bba12672f5426ddeeb3fd70304073a56e2 | [
"MIT"
] | null | null | null | class Carrinho_de_compras:
def __init__(self):
self.produtos = []
def inserir_produto(self, produto):
self.produtos.append(produto)
def listar_produtos(self):
for produto in self.produtos:
print(produto.nome, produto.valor)
def soma_total(self):
total = 0
... | 25.241379 | 115 | 0.644809 | 100 | 732 | 4.59 | 0.51 | 0.104575 | 0.04793 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001901 | 0.281421 | 732 | 28 | 116 | 26.142857 | 0.870722 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0 | 1 | 0.294118 | false | 0 | 0 | 0 | 0.470588 | 0.058824 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
20518d65777b23fa1a84692dfcdcd225eae1aae4 | 2,103 | py | Python | applications/CoSimulationApplication/python_scripts/helpers/dummy_solver_wrapper.py | lcirrott/Kratos | 8406e73e0ad214c4f89df4e75e9b29d0eb4a47ea | [
"BSD-4-Clause"
] | 2 | 2019-10-25T09:28:10.000Z | 2019-11-21T12:51:46.000Z | applications/CoSimulationApplication/python_scripts/helpers/dummy_solver_wrapper.py | lcirrott/Kratos | 8406e73e0ad214c4f89df4e75e9b29d0eb4a47ea | [
"BSD-4-Clause"
] | 13 | 2019-10-07T12:06:51.000Z | 2020-02-18T08:48:33.000Z | applications/CoSimulationApplication/python_scripts/helpers/dummy_solver_wrapper.py | lcirrott/Kratos | 8406e73e0ad214c4f89df4e75e9b29d0eb4a47ea | [
"BSD-4-Clause"
] | null | null | null | from __future__ import print_function, absolute_import, division # makes KratosMultiphysics backward compatible with python 2.6 and 2.7
# Importing the Kratos Library
import KratosMultiphysics as KM
# Importing the base class
from KratosMultiphysics.CoSimulationApplication.base_classes.co_simulation_solver_wrapper i... | 45.717391 | 136 | 0.768902 | 250 | 2,103 | 6.236 | 0.464 | 0.071841 | 0.057729 | 0.064144 | 0.08467 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002225 | 0.145031 | 2,103 | 45 | 137 | 46.733333 | 0.86485 | 0.197337 | 0 | 0 | 0 | 0 | 0.094408 | 0.055322 | 0 | 0 | 0 | 0.022222 | 0 | 1 | 0.208333 | false | 0 | 0.166667 | 0.083333 | 0.5 | 0.083333 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.