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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a9d450fecf4c4a0d863d5fee546c0084e6cf96e0 | 669 | py | Python | Tutorial_Kivy_Codemy/codemy_KivyMd_31_Login.py | LivioAlvarenga/Tutoriais_Kivy_KivyMD | b6225578e764eaf0312afafbb2f76dc06f92342d | [
"MIT"
] | null | null | null | Tutorial_Kivy_Codemy/codemy_KivyMd_31_Login.py | LivioAlvarenga/Tutoriais_Kivy_KivyMD | b6225578e764eaf0312afafbb2f76dc06f92342d | [
"MIT"
] | null | null | null | Tutorial_Kivy_Codemy/codemy_KivyMd_31_Login.py | LivioAlvarenga/Tutoriais_Kivy_KivyMD | b6225578e764eaf0312afafbb2f76dc06f92342d | [
"MIT"
] | null | null | null | # https://www.youtube.com/watch?v=G-Rp41BzGxg&list=PLCC34OHNcOtpz7PJQ7Tv7hqFBP_xDDjqg&index=44
from kivymd.app import MDApp
from kivy.lang import Builder
class Codemy_Tutorial_App(MDApp):
def build(self):
self.theme_cls.theme_style = 'Dark'
self.theme_cls.primary_palette = 'BlueGray'
retu... | 27.875 | 94 | 0.686099 | 94 | 669 | 4.638298 | 0.585106 | 0.091743 | 0.126147 | 0.068807 | 0.206422 | 0.119266 | 0.119266 | 0 | 0 | 0 | 0 | 0.02011 | 0.182362 | 669 | 23 | 95 | 29.086957 | 0.776965 | 0.137519 | 0 | 0 | 0 | 0 | 0.133913 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.066667 | 0.133333 | 0 | 0.466667 | 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 | 0 | 0 | 0 | 1 |
a9dedaf0e8fbc154d92b17ac626f9bfde1091b7a | 482 | py | Python | tworaven_apps/configurations/migrations/0016_auto_20190127_2030.py | TwoRavens/TwoRavens | e5f820557d6646df525ceed15e17d79f4159cf0a | [
"Apache-2.0"
] | 20 | 2017-12-11T07:26:06.000Z | 2021-11-22T16:16:20.000Z | tworaven_apps/configurations/migrations/0016_auto_20190127_2030.py | TwoRavens/TwoRavens | e5f820557d6646df525ceed15e17d79f4159cf0a | [
"Apache-2.0"
] | 849 | 2017-10-20T18:21:18.000Z | 2022-02-18T02:45:44.000Z | tworaven_apps/configurations/migrations/0016_auto_20190127_2030.py | TwoRavens/TwoRavens | e5f820557d6646df525ceed15e17d79f4159cf0a | [
"Apache-2.0"
] | 1 | 2020-05-18T06:02:13.000Z | 2020-05-18T06:02:13.000Z | # Generated by Django 2.1.5 on 2019-01-28 01:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('configurations', '0015_auto_20190127_1950'),
]
operations = [
migrations.AlterField(
model_name='d3mconfiguration',
... | 25.368421 | 128 | 0.641079 | 53 | 482 | 5.735849 | 0.830189 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091413 | 0.251037 | 482 | 18 | 129 | 26.777778 | 0.750693 | 0.093361 | 0 | 0 | 1 | 0 | 0.278161 | 0.052874 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
a9e87a57e0219b077a1788a2ac1e8adc0908a053 | 1,276 | py | Python | examples/www/additionWeb.py | VictorVaquero/geneticPendulum | 60e20ec8148d4949ae3b3e1597433763498cd2e5 | [
"MIT"
] | null | null | null | examples/www/additionWeb.py | VictorVaquero/geneticPendulum | 60e20ec8148d4949ae3b3e1597433763498cd2e5 | [
"MIT"
] | null | null | null | examples/www/additionWeb.py | VictorVaquero/geneticPendulum | 60e20ec8148d4949ae3b3e1597433763498cd2e5 | [
"MIT"
] | null | null | null | '''Prompt the user for two integers and display a web page with the sum.'''
def processInput(numStr1, numStr2): # NEW
'''Process input parameters and return the final page as a string.'''
num1 = int(numStr1) # transform input to output data
num2 = int(numStr2)
total = num1+num2
return fileToStr('a... | 34.486486 | 79 | 0.683386 | 162 | 1,276 | 5.382716 | 0.462963 | 0.016055 | 0.059633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011776 | 0.201411 | 1,276 | 36 | 80 | 35.444444 | 0.843965 | 0.340125 | 0 | 0 | 0 | 0 | 0.112903 | 0.026055 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0.041667 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 1 |
a9f0b28120e868d99af5f363a290901059c07f85 | 549 | py | Python | dsviz/bases/drawer.py | kreinberg/dsviz | b1e921449add764fa514ad0d2e5392caad10e372 | [
"MIT"
] | null | null | null | dsviz/bases/drawer.py | kreinberg/dsviz | b1e921449add764fa514ad0d2e5392caad10e372 | [
"MIT"
] | null | null | null | dsviz/bases/drawer.py | kreinberg/dsviz | b1e921449add764fa514ad0d2e5392caad10e372 | [
"MIT"
] | null | null | null | '''Drawer base class.'''
import abc
import six
@six.add_metaclass(abc.ABCMeta)
class Drawer(object):
'''The base class for all data structure drawers.'''
@staticmethod
@abc.abstractmethod
def draw(data_structure, description):
'''Draws an image of the given data structure.
Args:
... | 21.115385 | 61 | 0.637523 | 64 | 549 | 5.421875 | 0.53125 | 0.262248 | 0.138329 | 0.069164 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.284153 | 549 | 25 | 62 | 21.96 | 0.882952 | 0.48816 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.5 | 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 | 0 | 0 | 0 | 1 |
a9f5be5ff31848c115cb7677652a2c11b2dbf5f5 | 10,349 | py | Python | home/scripts/central_conf.py | qiyancos/Simics-3.0.31 | 9bd52d5abad023ee87a37306382a338abf7885f1 | [
"BSD-4-Clause",
"FSFAP"
] | 1 | 2020-06-15T10:41:18.000Z | 2020-06-15T10:41:18.000Z | home/scripts/central_conf.py | qiyancos/Simics-3.0.31 | 9bd52d5abad023ee87a37306382a338abf7885f1 | [
"BSD-4-Clause",
"FSFAP"
] | null | null | null | home/scripts/central_conf.py | qiyancos/Simics-3.0.31 | 9bd52d5abad023ee87a37306382a338abf7885f1 | [
"BSD-4-Clause",
"FSFAP"
] | 3 | 2020-08-10T10:25:02.000Z | 2021-09-12T01:12:09.000Z |
## Copyright 2003-2007 Virtutech AB
##
## The contents herein are Source Code which are a subset of Licensed
## Software pursuant to the terms of the Virtutech Simics Software
## License Agreement (the "Agreement"), and are being distributed under
## the Agreement. You should have received a copy of the Agreem... | 38.188192 | 104 | 0.555706 | 1,164 | 10,349 | 4.776632 | 0.2311 | 0.067266 | 0.088669 | 0.046763 | 0.350719 | 0.323201 | 0.309892 | 0.294784 | 0.244604 | 0.206835 | 0 | 0.013609 | 0.346797 | 10,349 | 270 | 105 | 38.32963 | 0.808876 | 0.150932 | 0 | 0.403756 | 0 | 0 | 0.162258 | 0.002519 | 0 | 0 | 0 | 0.003704 | 0 | 0 | null | null | 0.014085 | 0.032864 | null | null | 0.051643 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
e702edda66dee786e28d319bcfd682e3eec292a4 | 354 | py | Python | checkers/radio/networking/masking_connector.py | amreo/ructfe-2019 | 19064842acc57243f16143a85c06a5613378ebec | [
"MIT"
] | 23 | 2019-11-23T19:53:10.000Z | 2021-02-19T06:13:28.000Z | checkers/radio/networking/masking_connector.py | amreo/ructfe-2019 | 19064842acc57243f16143a85c06a5613378ebec | [
"MIT"
] | 1 | 2019-11-30T16:10:52.000Z | 2019-12-01T15:23:39.000Z | checkers/radio/networking/masking_connector.py | amreo/ructfe-2019 | 19064842acc57243f16143a85c06a5613378ebec | [
"MIT"
] | 3 | 2019-11-24T09:35:43.000Z | 2021-02-19T06:13:29.000Z | from random import choice
NETWORKING_AGENT_FILENAME = "networking/user-agents"
agents = None
def _get_agents():
global agents
if agents is None:
with open(NETWORKING_AGENT_FILENAME) as user_agents:
agents = [x.strip() for x in user_agents.readlines()]
return agents
def get_agent():... | 19.666667 | 65 | 0.700565 | 47 | 354 | 5.042553 | 0.510638 | 0.126582 | 0.194093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217514 | 354 | 17 | 66 | 20.823529 | 0.855596 | 0 | 0 | 0 | 0 | 0 | 0.062147 | 0.062147 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0.090909 | 0.454545 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e7074b84a86ece816ac66b3d18f7e659bcb4509d | 559 | py | Python | src/djanban/apps/dev_environment/migrations/0004_interruption_spent_time.py | diegojromerolopez/djanban | 6451688d49cf235d03c604b19a6a8480b33eed87 | [
"MIT"
] | 33 | 2017-06-14T18:04:25.000Z | 2021-06-15T07:07:56.000Z | src/djanban/apps/dev_environment/migrations/0004_interruption_spent_time.py | diegojromerolopez/djanban | 6451688d49cf235d03c604b19a6a8480b33eed87 | [
"MIT"
] | 1 | 2017-05-10T08:45:55.000Z | 2017-05-10T08:45:55.000Z | src/djanban/apps/dev_environment/migrations/0004_interruption_spent_time.py | diegojromerolopez/djanban | 6451688d49cf235d03c604b19a6a8480b33eed87 | [
"MIT"
] | 8 | 2017-08-27T11:14:25.000Z | 2021-03-03T12:11:16.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-09-30 14:09
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dev_environment', '0003_auto_20160925_1811'),
]
operations = [
migrations.Add... | 26.619048 | 144 | 0.660107 | 65 | 559 | 5.461538 | 0.8 | 0.050704 | 0.073239 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081207 | 0.22898 | 559 | 20 | 145 | 27.95 | 0.742459 | 0.118068 | 0 | 0 | 1 | 0 | 0.185714 | 0.046939 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
e708183e7aabb9211c5a4e8bf7294a48f8a6261e | 356 | py | Python | main/migrations/0003_remove_preowneditem_related_sources.py | dryprojects/trivialapi | 1f74169d85cc42895b529b767b7f413381e9a342 | [
"MIT"
] | null | null | null | main/migrations/0003_remove_preowneditem_related_sources.py | dryprojects/trivialapi | 1f74169d85cc42895b529b767b7f413381e9a342 | [
"MIT"
] | null | null | null | main/migrations/0003_remove_preowneditem_related_sources.py | dryprojects/trivialapi | 1f74169d85cc42895b529b767b7f413381e9a342 | [
"MIT"
] | null | null | null | # Generated by Django 4.0.1 on 2022-01-19 08:14
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('main', '0002_alter_preowneditem_related_sources'),
]
operations = [
migrations.RemoveField(
model_name='preowneditem',
name=... | 19.777778 | 60 | 0.623596 | 37 | 356 | 5.837838 | 0.783784 | 0.12963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073359 | 0.272472 | 356 | 17 | 61 | 20.941176 | 0.760618 | 0.126404 | 0 | 0 | 1 | 0 | 0.226537 | 0.126214 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
e709eba746633fb8c20b8afc7fd1214a471b9b77 | 667 | py | Python | exercises/networking_v2/roles/ansible-network.network-engine/action_plugins/cli_get.py | rcalvaga/linklight | bb6364272c167c017cb2ee0790015143df29fa19 | [
"MIT"
] | 1 | 2020-03-29T17:35:59.000Z | 2020-03-29T17:35:59.000Z | exercises/networking_v2/roles/ansible-network.network-engine/action_plugins/cli_get.py | rcalvaga/linklight | bb6364272c167c017cb2ee0790015143df29fa19 | [
"MIT"
] | null | null | null | exercises/networking_v2/roles/ansible-network.network-engine/action_plugins/cli_get.py | rcalvaga/linklight | bb6364272c167c017cb2ee0790015143df29fa19 | [
"MIT"
] | 1 | 2020-03-30T11:00:47.000Z | 2020-03-30T11:00:47.000Z | # (c) 2018, Ansible by Red Hat, inc
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
#
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
#
from __future__ import (absolute_import, division, p... | 37.055556 | 102 | 0.74063 | 100 | 667 | 4.8 | 0.7 | 0.041667 | 0.066667 | 0.095833 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014134 | 0.151424 | 667 | 17 | 103 | 39.235294 | 0.833922 | 0.382309 | 0 | 0 | 0 | 0 | 0.162963 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.714286 | 0.142857 | 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 | 0 | 1 | 0 | 0 | 1 |
e7243a39bd7369f72fa1cca758f0ac9b6aca0d4a | 352 | py | Python | FirstExample/helloword.py | tacianeandrade/Primeiro-Repositorio | f57a4f6405ff064280e9a22f230ff11a9c3275b0 | [
"MIT"
] | null | null | null | FirstExample/helloword.py | tacianeandrade/Primeiro-Repositorio | f57a4f6405ff064280e9a22f230ff11a9c3275b0 | [
"MIT"
] | null | null | null | FirstExample/helloword.py | tacianeandrade/Primeiro-Repositorio | f57a4f6405ff064280e9a22f230ff11a9c3275b0 | [
"MIT"
] | null | null | null |
# range sgnifica intervalo, cai comecar no 2 e parar no 3
# for i in range (2,4):
# {
# print ("Tabuada: " + str(i))
# for j in range(0, 11):{
# print(str(j) + "x" + str(i) + "=" + str(j*i))
# }
# }
#
# r significa somete leitura
arquivo = open('pessoas.txt', 'r')
for linha in arquivo:
lista = linha.split()... | 18.526316 | 57 | 0.582386 | 56 | 352 | 3.660714 | 0.589286 | 0.068293 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025641 | 0.224432 | 352 | 18 | 58 | 19.555556 | 0.725275 | 0.622159 | 0 | 0 | 0 | 0 | 0.099174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.2 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
e7298f3ee898c415efd34eec78549930ed80dc0d | 271 | py | Python | test_project/test_app/management/commands/initial_data.py | mpasternak/django-multiseek | 8b65f65a66da5b9a1f83058c2692bb8c4f824300 | [
"MIT"
] | 8 | 2016-02-18T21:31:26.000Z | 2021-04-11T03:23:35.000Z | test_project/test_app/management/commands/initial_data.py | mpasternak/django-multiseek | 8b65f65a66da5b9a1f83058c2692bb8c4f824300 | [
"MIT"
] | 13 | 2015-05-19T18:46:06.000Z | 2021-01-02T01:06:16.000Z | test_project/test_app/management/commands/initial_data.py | mpasternak/django-multiseek | 8b65f65a66da5b9a1f83058c2692bb8c4f824300 | [
"MIT"
] | 3 | 2016-05-25T14:40:25.000Z | 2016-12-05T11:43:22.000Z | # -*- encoding: utf-8 -*-
from django.core.management.base import BaseCommand, CommandError
class Command(BaseCommand):
help = 'Installs initial_data'
def handle(self, *args, **options):
from test_app.conftest import initial_data
initial_data() | 27.1 | 65 | 0.701107 | 32 | 271 | 5.8125 | 0.78125 | 0.177419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004545 | 0.188192 | 271 | 10 | 66 | 27.1 | 0.840909 | 0.084871 | 0 | 0 | 0 | 0 | 0.08502 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
e72b11ac47cc218483b01930b307d19a64224da5 | 910 | py | Python | cmdb-compliance/models/com_ami.py | zjj1002/aws-cloud-cmdb-system | 47982007688e5db1272435891cb654ab11d0d60a | [
"Apache-2.0"
] | null | null | null | cmdb-compliance/models/com_ami.py | zjj1002/aws-cloud-cmdb-system | 47982007688e5db1272435891cb654ab11d0d60a | [
"Apache-2.0"
] | 1 | 2022-01-04T13:53:16.000Z | 2022-01-04T13:53:16.000Z | cmdb-compliance/models/com_ami.py | zjj1002/aws-cloud-cmdb-system | 47982007688e5db1272435891cb654ab11d0d60a | [
"Apache-2.0"
] | null | null | null | from sqlalchemy import *
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import class_mapper
Base = declarative_base()
def model_to_dict(model):
model_dict = {}
for key, column in class_mapper(model.__class__).c.items():
model_dict[column.name] = getattr(model, key, None)... | 31.37931 | 82 | 0.707692 | 118 | 910 | 5.228814 | 0.415254 | 0.126418 | 0.077796 | 0.102107 | 0.081037 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017196 | 0.169231 | 910 | 28 | 83 | 32.5 | 0.798942 | 0.049451 | 0 | 0 | 0 | 0 | 0.068925 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.166667 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e72b2bf7476731972176ac5ddba0e46a7f591cfe | 1,304 | py | Python | servizi/spese/forms.py | l-dfa/django-spese | afcc257cc8fb73e24baa8976b96e4f3d62460d84 | [
"MIT"
] | null | null | null | servizi/spese/forms.py | l-dfa/django-spese | afcc257cc8fb73e24baa8976b96e4f3d62460d84 | [
"MIT"
] | 6 | 2016-12-13T00:06:52.000Z | 2018-03-04T21:50:19.000Z | servizi/spese/forms.py | l-dfa/django-spese | afcc257cc8fb73e24baa8976b96e4f3d62460d84 | [
"MIT"
] | null | null | null | # spese/forms.py
# python debugging
import pdb
# django and app
from django import forms
from .models import Expense
class ExpenseForm(forms.ModelForm):
class Meta:
model = Expense
fields = ( 'work_cost_type', 'date', 'description', 'amount', )
# widgets = {
# 'tags': forms.Hid... | 37.257143 | 121 | 0.659509 | 138 | 1,304 | 6.094203 | 0.536232 | 0.077289 | 0.049941 | 0.068966 | 0.085612 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015717 | 0.219325 | 1,304 | 34 | 122 | 38.352941 | 0.810413 | 0.27684 | 0 | 0 | 0 | 0 | 0.152902 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.157895 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
e72c840ee1929250f8490aa485284cbbb2c65f53 | 3,147 | py | Python | samples/MNIST/mnist_forward.py | gkuznetsov/veles.znicz | 73147839f80e1eec3a627be8cc2a11211d74a801 | [
"Apache-2.0"
] | 28 | 2015-07-20T12:02:02.000Z | 2020-10-08T02:50:28.000Z | samples/MNIST/mnist_forward.py | gkuznetsov/veles.znicz | 73147839f80e1eec3a627be8cc2a11211d74a801 | [
"Apache-2.0"
] | 39 | 2015-08-11T06:56:51.000Z | 2016-05-11T15:02:05.000Z | samples/MNIST/mnist_forward.py | gkuznetsov/veles.znicz | 73147839f80e1eec3a627be8cc2a11211d74a801 | [
"Apache-2.0"
] | 27 | 2015-07-20T09:45:34.000Z | 2021-04-15T01:03:54.000Z | #!/usr/bin/python3
import os
import veles
from veles.config import root
from veles.downloader import Downloader
from veles.loader.file_image import FileListImageLoader
def create_forward(workflow, normalizer, labels_mapping, loader_config):
# Disable plotters:
workflow.plotters_are_enabled = False
# L... | 34.206522 | 79 | 0.666667 | 363 | 3,147 | 5.534435 | 0.396694 | 0.038825 | 0.01991 | 0.026879 | 0.076655 | 0.067695 | 0.045794 | 0.045794 | 0.045794 | 0.045794 | 0 | 0.010204 | 0.221481 | 3,147 | 91 | 80 | 34.582418 | 0.809796 | 0.1449 | 0 | 0 | 0 | 0.016667 | 0.233558 | 0.041854 | 0 | 0 | 0 | 0.010989 | 0 | 1 | 0.016667 | false | 0 | 0.083333 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e730c8a4fbdcdd901a4aea7a7939c8611fc56998 | 784 | py | Python | sample/html2txt.py | rodsenra/koondor | 9ce560ae153b7d60b987dd85dd8d538f36c875a5 | [
"MIT"
] | 2 | 2016-10-19T08:19:32.000Z | 2020-12-31T01:54:19.000Z | sample/html2txt.py | rodsenra/koondor | 9ce560ae153b7d60b987dd85dd8d538f36c875a5 | [
"MIT"
] | null | null | null | sample/html2txt.py | rodsenra/koondor | 9ce560ae153b7d60b987dd85dd8d538f36c875a5 | [
"MIT"
] | null | null | null | import codecs
from glob import glob
import os
import sys
from bs4 import BeautifulSoup
dir_with_news_html = sys.argv[1]
dir_with_news_txt = sys.argv[2]
dirpath = os.path.join(dir_with_news_html, "*.html")
for filename in glob(dirpath):
html_file = codecs.open(filename, "r", encoding="utf-8")
soup = BeautifulS... | 32.666667 | 78 | 0.681122 | 114 | 784 | 4.464912 | 0.447368 | 0.05501 | 0.086444 | 0.058939 | 0.082515 | 0.082515 | 0 | 0 | 0 | 0 | 0 | 0.009375 | 0.183673 | 784 | 23 | 79 | 34.086957 | 0.785938 | 0 | 0 | 0 | 0 | 0 | 0.077806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.047619 | 0.238095 | null | null | 0.047619 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
e7361fa0428885d95d50368e60f1240095db705e | 4,434 | py | Python | utils/Objectives.py | eLeVeNnN/shinnosuke | 0e07273991fbf6231aea084f490826883f562d0e | [
"MIT"
] | 24 | 2019-08-19T08:57:50.000Z | 2020-07-06T06:31:38.000Z | utils/Objectives.py | E1eveNn/shinnosuke | 0e07273991fbf6231aea084f490826883f562d0e | [
"MIT"
] | 1 | 2019-08-24T02:56:30.000Z | 2019-08-24T02:56:30.000Z | utils/Objectives.py | E1eveNn/shinnosuke | 0e07273991fbf6231aea084f490826883f562d0e | [
"MIT"
] | 1 | 2020-04-22T18:53:52.000Z | 2020-04-22T18:53:52.000Z | import copy
import numpy as np
class Objective():
pass
class MeanSquaredError():
def calc_acc(self,y_hat,y):
return 0
def calc_loss(self,y_hat,y):
loss = np.mean(np.sum(np.power(y_hat-y,2),axis=1))
return 0.5*loss
def backward(self,y_hat,y):
... | 25.337143 | 129 | 0.586829 | 607 | 4,434 | 4.059308 | 0.146623 | 0.074675 | 0.040584 | 0.054789 | 0.508523 | 0.450487 | 0.44237 | 0.417614 | 0.39651 | 0.37013 | 0 | 0.010595 | 0.276274 | 4,434 | 174 | 130 | 25.482759 | 0.757245 | 0.132386 | 0 | 0.4 | 0 | 0 | 0.088493 | 0.044932 | 0 | 0 | 0 | 0 | 0 | 1 | 0.188235 | false | 0.011765 | 0.023529 | 0.047059 | 0.529412 | 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 | 0 | 1 | 0 | 0 | 1 |
e7392e8149dc95a8f59de180b17522320464c0d4 | 10,089 | py | Python | bounca/x509_pki/migrations/0001_initial.py | warthog9/bounca | f83a372fcfa6e9874c81c785fd0ebdb49842eba3 | [
"Apache-2.0"
] | null | null | null | bounca/x509_pki/migrations/0001_initial.py | warthog9/bounca | f83a372fcfa6e9874c81c785fd0ebdb49842eba3 | [
"Apache-2.0"
] | null | null | null | bounca/x509_pki/migrations/0001_initial.py | warthog9/bounca | f83a372fcfa6e9874c81c785fd0ebdb49842eba3 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-05-28 16:48
from __future__ import unicode_literals
import django.contrib.postgres.fields
import django.core.validators
import django.db.models.deletion
import django_countries.fields
from django.conf import settings
from django.db import migrations, models
... | 44.641593 | 195 | 0.444345 | 779 | 10,089 | 5.626444 | 0.315789 | 0.025553 | 0.045631 | 0.061602 | 0.368241 | 0.354552 | 0.311659 | 0.311659 | 0.311659 | 0.311659 | 0 | 0.021066 | 0.440083 | 10,089 | 225 | 196 | 44.84 | 0.75447 | 0.006641 | 0 | 0.486111 | 1 | 0.023148 | 0.284959 | 0.039026 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.055556 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
e73b1ff66c4c01f329c735bdb3e5ee09ff6e2fd2 | 7,938 | py | Python | pysnmp-with-texts/MIMOSA-NETWORKS-BASE-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/MIMOSA-NETWORKS-BASE-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/MIMOSA-NETWORKS-BASE-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module MIMOSA-NETWORKS-BASE-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/MIMOSA-NETWORKS-BASE-MIB
# Produced by pysmi-0.3.4 at Wed May 1 14:12:48 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.... | 116.735294 | 843 | 0.77488 | 942 | 7,938 | 6.527601 | 0.232484 | 0.008457 | 0.011709 | 0.015612 | 0.439909 | 0.346886 | 0.313872 | 0.27598 | 0.27598 | 0.213368 | 0 | 0.064067 | 0.09549 | 7,938 | 67 | 844 | 118.477612 | 0.79234 | 0.043084 | 0 | 0.050847 | 0 | 0.084746 | 0.328457 | 0.056412 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.118644 | 0 | 0.118644 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e73dba3ea9291726d1191e5963390f2fe8389a84 | 357 | py | Python | elif_bayindir/phase_1/python_basic_1/day_9/q3.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 6 | 2020-05-23T19:53:25.000Z | 2021-05-08T20:21:30.000Z | elif_bayindir/phase_1/python_basic_1/day_9/q3.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 8 | 2020-05-14T18:53:12.000Z | 2020-07-03T00:06:20.000Z | elif_bayindir/phase_1/python_basic_1/day_9/q3.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 39 | 2020-05-10T20:55:02.000Z | 2020-09-12T17:40:59.000Z | # Question 3
# Midpoints of a line
x1 = float(input("Enter x of 1st point: "))
y1 = float(input("Enter y of 1st point: "))
x2 = float(input("Enter x of 2nd point: "))
y2 = float(input("Enter y of 2nd point: "))
midpoint_x = abs(x1 + x2) / 2
midpoint_y = abs(y1 + y2) / 2
print("Midpoint of a line: (" + str(midpoin... | 23.8 | 79 | 0.613445 | 61 | 357 | 3.52459 | 0.377049 | 0.186047 | 0.27907 | 0.148837 | 0.334884 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053004 | 0.207283 | 357 | 14 | 80 | 25.5 | 0.706714 | 0.084034 | 0 | 0 | 0 | 0 | 0.345679 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e73f4571bbaa355e12bbb9c7add64300c9050f1a | 4,072 | py | Python | seq2seq_chatbot/src/utils.py | fyabc/MSRAPaperProject | 2d7974acfe8065523d0c56da695807e94acd0b34 | [
"MIT"
] | 1 | 2016-08-17T10:04:30.000Z | 2016-08-17T10:04:30.000Z | seq2seq_chatbot/src/utils.py | fyabc/MSRAPaperProject | 2d7974acfe8065523d0c56da695807e94acd0b34 | [
"MIT"
] | null | null | null | seq2seq_chatbot/src/utils.py | fyabc/MSRAPaperProject | 2d7974acfe8065523d0c56da695807e94acd0b34 | [
"MIT"
] | null | null | null | import theano
import numpy as np
import re
import json
max_sent_size = np.int32(50)
idx_start = np.int32(1)
idx_end = np.int32(2)
idx_unk = np.int32(3) # unknown
token_start = "<start>"
token_end = "<end>"
token_unk = "<unk>"
path_train = "../data/train.txt"
path_idx2token = "../data/idx2token.json"
path_token2idx ... | 23.268571 | 96 | 0.605599 | 606 | 4,072 | 3.912541 | 0.268977 | 0.041755 | 0.04555 | 0.017714 | 0.167862 | 0.146774 | 0.086883 | 0.059047 | 0.046394 | 0 | 0 | 0.025167 | 0.229126 | 4,072 | 174 | 97 | 23.402299 | 0.730169 | 0.036837 | 0 | 0.074766 | 0 | 0 | 0.082789 | 0.035608 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.037383 | null | null | 0.009346 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
e748b158741207965768beb9cc78be5de348231a | 1,363 | py | Python | autopandas_v2/generators/ml/traindata/compiler.py | chyanju/autopandas | 16080ad12f0e8e7b0a614671aea1ed57b3fed7fe | [
"BSD-3-Clause"
] | 16 | 2019-08-13T02:49:44.000Z | 2022-02-08T03:14:34.000Z | autopandas_v2/generators/ml/traindata/compiler.py | chyanju/autopandas | 16080ad12f0e8e7b0a614671aea1ed57b3fed7fe | [
"BSD-3-Clause"
] | 2 | 2020-09-25T22:40:40.000Z | 2022-02-09T23:42:53.000Z | autopandas_v2/generators/ml/traindata/compiler.py | chyanju/autopandas | 16080ad12f0e8e7b0a614671aea1ed57b3fed7fe | [
"BSD-3-Clause"
] | 3 | 2021-07-06T10:30:36.000Z | 2022-01-11T23:21:31.000Z | import ast
from typing import Optional, Dict
from autopandas_v2.generators.compilation.compiler import parse_gens_from_module, compile_gens_to_module, \
compile_gens_from_module
from autopandas_v2.generators.compilation.ir.generators import IGenerator
from autopandas_v2.utils import logger
from autopandas_v2.utils... | 54.52 | 107 | 0.745415 | 187 | 1,363 | 5.13369 | 0.315508 | 0.058333 | 0.072917 | 0.059375 | 0.270833 | 0.19375 | 0.19375 | 0.19375 | 0.19375 | 0.114583 | 0 | 0.00427 | 0.140866 | 1,363 | 24 | 108 | 56.791667 | 0.815542 | 0.194424 | 0 | 0.125 | 0 | 0 | 0.094041 | 0.061453 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.375 | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
e7496dc7f3a35f1be8b5bbf3a41e9103121712ca | 2,146 | py | Python | aviation-project/apply/models.py | Rypin/AviationJobBoardPortal | 60b92247f8ada518cd9b2e09a9ad1db8f3636557 | [
"MIT"
] | null | null | null | aviation-project/apply/models.py | Rypin/AviationJobBoardPortal | 60b92247f8ada518cd9b2e09a9ad1db8f3636557 | [
"MIT"
] | 1 | 2020-10-12T20:53:59.000Z | 2020-10-12T20:53:59.000Z | aviation-project/apply/models.py | Rypin/AviationJobBoardPortal | 60b92247f8ada518cd9b2e09a9ad1db8f3636557 | [
"MIT"
] | null | null | null | import os
from django.db import models
from django.contrib.postgres.fields import ArrayField
from django.db.models import signals
from django.core.files.base import File
from datetime import *
class Application(models.Model):
applicant = models.ForeignKey('users.Users', on_delete=models.CASCADE)
job = models.F... | 46.652174 | 110 | 0.711556 | 274 | 2,146 | 5.478102 | 0.470803 | 0.026649 | 0.037308 | 0.055963 | 0.041306 | 0.041306 | 0 | 0 | 0 | 0 | 0 | 0.002798 | 0.167288 | 2,146 | 46 | 111 | 46.652174 | 0.837157 | 0.244175 | 0 | 0 | 0 | 0 | 0.104969 | 0.016149 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.166667 | 0.055556 | 0.638889 | 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 | 0 | 1 | 0 | 0 | 1 |
e75df7cbfeb747b3512c672b9aa7e3dd3cddc8eb | 2,812 | py | Python | tests/integration/test_integration_cve_exception.py | joshuaguite/cloudpassage-halo-python-sdk | ab8775377c9e99ed89d335ee44a92553fce49eb7 | [
"BSD-3-Clause"
] | 8 | 2016-10-24T12:37:32.000Z | 2019-06-01T10:00:18.000Z | tests/integration/test_integration_cve_exception.py | joshuaguite/cloudpassage-halo-python-sdk | ab8775377c9e99ed89d335ee44a92553fce49eb7 | [
"BSD-3-Clause"
] | 109 | 2016-08-09T04:51:48.000Z | 2020-02-11T02:33:35.000Z | tests/integration/test_integration_cve_exception.py | joshuaguite/cloudpassage-halo-python-sdk | ab8775377c9e99ed89d335ee44a92553fce49eb7 | [
"BSD-3-Clause"
] | 14 | 2016-01-23T00:10:30.000Z | 2021-07-07T21:13:56.000Z | import cloudpassage
import os
import pytest
config_file_name = "portal.yaml.local"
tests_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), "../"))
config_file = os.path.join(tests_dir, "configs/", config_file_name)
session_info = cloudpassage.ApiKeyManager(config_file=config_file)
key_id = session_info.k... | 38.520548 | 79 | 0.613442 | 338 | 2,812 | 4.742604 | 0.245562 | 0.028072 | 0.043668 | 0.034935 | 0.35184 | 0.313163 | 0.313163 | 0.296943 | 0.296943 | 0.296943 | 0 | 0.01119 | 0.300853 | 2,812 | 72 | 80 | 39.055556 | 0.804171 | 0 | 0 | 0.295082 | 0 | 0 | 0.049431 | 0 | 0 | 0 | 0 | 0 | 0.081967 | 1 | 0.114754 | false | 0.147541 | 0.04918 | 0 | 0.196721 | 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 | 0 | 0 | 0 | 1 |
e761becf2e3e926b06f82b69540202fc4eefba46 | 15,650 | py | Python | tests/model/test_transformations.py | ess-dmsc/nexus-geometry-constructor | c4d869b01d988629a7864357b8fc2f49a0325111 | [
"BSD-2-Clause"
] | null | null | null | tests/model/test_transformations.py | ess-dmsc/nexus-geometry-constructor | c4d869b01d988629a7864357b8fc2f49a0325111 | [
"BSD-2-Clause"
] | 62 | 2018-09-18T14:50:34.000Z | 2019-02-05T15:43:02.000Z | tests/model/test_transformations.py | ess-dmsc/nexus-geometry-constructor | c4d869b01d988629a7864357b8fc2f49a0325111 | [
"BSD-2-Clause"
] | null | null | null | import numpy as np
from PySide2.QtGui import QVector3D
from nexus_constructor.common_attrs import CommonKeys, NodeType
from nexus_constructor.model.component import Component
from nexus_constructor.model.module import Dataset, F142Stream, WriterModules
from nexus_constructor.model.transformation import Transformation
... | 30.928854 | 146 | 0.717636 | 1,906 | 15,650 | 5.58447 | 0.096013 | 0.009207 | 0.065389 | 0.005637 | 0.748779 | 0.715239 | 0.686866 | 0.655487 | 0.587185 | 0.527058 | 0 | 0.029228 | 0.193291 | 15,650 | 505 | 147 | 30.990099 | 0.813861 | 0.012716 | 0 | 0.539295 | 0 | 0 | 0.095913 | 0 | 0 | 0 | 0 | 0 | 0.176152 | 1 | 0.081301 | false | 0 | 0.02168 | 0 | 0.105691 | 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 | 0 | 0 | 0 | 0 | 1 |
e7710cb09f608586184831d1be165332e1db2b5f | 517 | py | Python | week03/test17.py | TommyVaughan/dataRepresentation | 24d29e86892adb7813429cbe62c14a57b64c1899 | [
"Apache-2.0"
] | null | null | null | week03/test17.py | TommyVaughan/dataRepresentation | 24d29e86892adb7813429cbe62c14a57b64c1899 | [
"Apache-2.0"
] | null | null | null | week03/test17.py | TommyVaughan/dataRepresentation | 24d29e86892adb7813429cbe62c14a57b64c1899 | [
"Apache-2.0"
] | null | null | null | import requests
from bs4 import BeautifulSoup
page = requests.get("https://www.myhome.ie/residential/mayo/property-for-sale?page=1")
soup = BeautifulSoup(page.content, 'html.parser')
# print (soup.prettify())
listings = soup.findAll("div", class_="PropertyListingCard" )
for listing in listings:
entry = []... | 30.411765 | 87 | 0.744681 | 62 | 517 | 6.096774 | 0.580645 | 0.190476 | 0.084656 | 0.185185 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004396 | 0.119923 | 517 | 17 | 88 | 30.411765 | 0.826374 | 0.044487 | 0 | 0 | 0 | 0.083333 | 0.314465 | 0.113208 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.083333 | 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 | 0 | 0 | 0 | 1 |
e7758364c7db9c3e88c7a42f1a71af070a8df9be | 31,259 | py | Python | src/treca/data.py | evanfyang/terminus-2 | 105e0ecefe62cd7beae033af3605fc01489e981e | [
"MIT"
] | null | null | null | src/treca/data.py | evanfyang/terminus-2 | 105e0ecefe62cd7beae033af3605fc01489e981e | [
"MIT"
] | null | null | null | src/treca/data.py | evanfyang/terminus-2 | 105e0ecefe62cd7beae033af3605fc01489e981e | [
"MIT"
] | null | null | null | #!/usr/bin/python
import os
import re
import platform
from Bio import AlignIO
from Bio.Seq import Seq
from Bio.Align import AlignInfo
from Bio.Align.Applications import MuscleCommandline
# define constants
HEADER = 1
SEQUENCE = 2
FORWARD = 1
REVERSE = 2
FA_LINES_PER_READ = 2
FQ_LINES_PER_READ = 4
class SequenceDat... | 62.145129 | 225 | 0.712531 | 3,756 | 31,259 | 5.5 | 0.063365 | 0.122616 | 0.076677 | 0.027592 | 0.79606 | 0.710233 | 0.637864 | 0.508762 | 0.417078 | 0.374722 | 0 | 0.014441 | 0.204741 | 31,259 | 503 | 226 | 62.145129 | 0.816565 | 0.054064 | 0 | 0.1875 | 0 | 0.005208 | 0.135026 | 0.029863 | 0.002604 | 0 | 0 | 0 | 0 | 1 | 0.104167 | false | 0 | 0.018229 | 0.070313 | 0.205729 | 0.151042 | 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 | 0 | 0 | 0 | 0 | 1 |
e77a34866dfaddf6e139c6a58a54027273d45998 | 6,954 | py | Python | backdat/BackupManager.py | 7yl4r/backdat | 1a3c5659105c04bc9c99c4e476e9302574b5402f | [
"MIT"
] | null | null | null | backdat/BackupManager.py | 7yl4r/backdat | 1a3c5659105c04bc9c99c4e476e9302574b5402f | [
"MIT"
] | 16 | 2017-09-14T18:13:15.000Z | 2019-01-21T19:38:08.000Z | backdat/BackupManager.py | 7yl4r/backdat | 1a3c5659105c04bc9c99c4e476e9302574b5402f | [
"MIT"
] | null | null | null | from datetime import datetime, timedelta
import logging
from croniter import croniter
from backdat.RemoteInterface import rclone
from backdat.file_parsers import backup_plan, host_settings
from backdat.file_parsers import crontab
from backdat.file_parsers import backup_history
from backdat.file_parsers import backup_... | 37.793478 | 91 | 0.594334 | 789 | 6,954 | 5.034221 | 0.291508 | 0.047835 | 0.028197 | 0.031722 | 0.121349 | 0.067976 | 0.02719 | 0.02719 | 0.02719 | 0 | 0 | 0.005726 | 0.321973 | 6,954 | 183 | 92 | 38 | 0.836691 | 0.206068 | 0 | 0.173913 | 0 | 0 | 0.092231 | 0.020666 | 0 | 0 | 0 | 0.010929 | 0 | 1 | 0.086957 | false | 0 | 0.095652 | 0 | 0.33913 | 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 | 0 | 0 | 0 | 1 |
e787f4e3f4961b1a8663342b91fee2cb37d692da | 3,147 | py | Python | util/jstack.py | espider/jfloat | 3a22acfba55a76f85d5d9026345a1e89e75a9685 | [
"BSD-3-Clause"
] | 2 | 2018-07-22T09:39:47.000Z | 2019-07-12T01:30:14.000Z | util/jstack.py | espider/jfloat | 3a22acfba55a76f85d5d9026345a1e89e75a9685 | [
"BSD-3-Clause"
] | null | null | null | util/jstack.py | espider/jfloat | 3a22acfba55a76f85d5d9026345a1e89e75a9685 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
# coding:utf-8
import re
import datetime
from command import *
from display import *
from colorstyle import *
class JStack(object):
""" find the threads that make high CPU. """
__max_high_count__ = 8
__threshold_cpu__ = 50
__re_top_title__ = re.compile(ur'PID(\s+)USER')
__re_sta... | 36.172414 | 96 | 0.553543 | 403 | 3,147 | 3.935484 | 0.272953 | 0.055486 | 0.04918 | 0.030265 | 0.148802 | 0.076923 | 0.03657 | 0 | 0 | 0 | 0 | 0.012464 | 0.337146 | 3,147 | 86 | 97 | 36.593023 | 0.747843 | 0.01843 | 0 | 0.144928 | 0 | 0 | 0.043674 | 0.013865 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.028986 | 0.101449 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e7883f622839652116c8434612035980b2af5b57 | 3,514 | py | Python | extraction/links_in_context/main.py | dbmdz/webarchiv-dh-bestandsausbau | 98c271a09cdb026d1d58133f49dcb3e1c9fcf9b6 | [
"MIT"
] | null | null | null | extraction/links_in_context/main.py | dbmdz/webarchiv-dh-bestandsausbau | 98c271a09cdb026d1d58133f49dcb3e1c9fcf9b6 | [
"MIT"
] | null | null | null | extraction/links_in_context/main.py | dbmdz/webarchiv-dh-bestandsausbau | 98c271a09cdb026d1d58133f49dcb3e1c9fcf9b6 | [
"MIT"
] | null | null | null | from pathlib import Path
from shutil import rmtree
from aut import WebArchive
from pyspark import SparkContext
from pyspark.sql import SparkSession
from links_in_context.filter_records import (
decode_pages,
get_links_in_context,
filter_links_in_context,
exclude_dest_hosts,
merge_links_in_context,... | 37.784946 | 85 | 0.653671 | 425 | 3,514 | 5.030588 | 0.207059 | 0.094949 | 0.189897 | 0.078578 | 0.584659 | 0.507016 | 0.499532 | 0.48363 | 0.48363 | 0.48363 | 0 | 0.0072 | 0.249004 | 3,514 | 92 | 86 | 38.195652 | 0.802956 | 0 | 0 | 0.379747 | 0 | 0 | 0.060899 | 0.020774 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.075949 | 0 | 0.075949 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e78a13e40e7a59af100422f9f0c6d4b14ecc37ed | 448 | py | Python | slacker/workers/django.py | kmike/tornado-slacker | 3f11ad29777fa24bde6bf42b66c37beca97eafc5 | [
"MIT"
] | 8 | 2015-01-14T22:34:23.000Z | 2016-02-11T19:49:35.000Z | slacker/workers/django.py | kmike/tornado-slacker | 3f11ad29777fa24bde6bf42b66c37beca97eafc5 | [
"MIT"
] | null | null | null | slacker/workers/django.py | kmike/tornado-slacker | 3f11ad29777fa24bde6bf42b66c37beca97eafc5 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from django.core.urlresolvers import reverse
from slacker.django_backend.conf import SLACKER_SERVER
from .http import HttpWorker
class DjangoWorker(HttpWorker):
""" HttpWorker with django's defaults """
def __init__(self, server=None, path=None):
server = serve... | 28 | 56 | 0.745536 | 55 | 448 | 5.781818 | 0.490909 | 0.081761 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174107 | 448 | 15 | 57 | 29.866667 | 0.859459 | 0.073661 | 0 | 0 | 0 | 0 | 0.036946 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.444444 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
e78bf2f5d06b15d0034d9c7cf94493b59bace8c0 | 1,945 | py | Python | tm/cli.py | ibejohn818/tm | 6582fd68d30317737fbd1936057224a2288bc929 | [
"MIT"
] | null | null | null | tm/cli.py | ibejohn818/tm | 6582fd68d30317737fbd1936057224a2288bc929 | [
"MIT"
] | 1 | 2021-03-25T21:45:10.000Z | 2021-03-25T21:45:10.000Z | tm/cli.py | ibejohn818/tm | 6582fd68d30317737fbd1936057224a2288bc929 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Console script for tmm."""
import click
import re
import tm
@click.group(invoke_without_command=True, help="Create, Kill & Resume tmux sessions") # noqa
@click.pass_context
def main(ctx):
"""This is my custom help message"""
if ctx.invoked_subcommand is None:
sessions =... | 22.356322 | 93 | 0.592802 | 263 | 1,945 | 4.311787 | 0.288973 | 0.063492 | 0.05291 | 0.050265 | 0.368607 | 0.268078 | 0.215168 | 0.162258 | 0.098765 | 0.098765 | 0 | 0.011913 | 0.266324 | 1,945 | 86 | 94 | 22.616279 | 0.782761 | 0.068895 | 0 | 0.307692 | 0 | 0 | 0.136263 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057692 | false | 0.076923 | 0.057692 | 0 | 0.230769 | 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 | 0 | 0 | 0 | 1 |
e79048bccc443cd1a018b0ac70e978537368a9a1 | 543 | py | Python | trisakti/forum/urls.py | faizrahmathidayat/trisakti-backend | 9d01dc5144943007c694fc3a663183696fcb4c60 | [
"MIT"
] | null | null | null | trisakti/forum/urls.py | faizrahmathidayat/trisakti-backend | 9d01dc5144943007c694fc3a663183696fcb4c60 | [
"MIT"
] | null | null | null | trisakti/forum/urls.py | faizrahmathidayat/trisakti-backend | 9d01dc5144943007c694fc3a663183696fcb4c60 | [
"MIT"
] | null | null | null | from django.urls import path, include
from rest_framework.routers import DefaultRouter
from trisakti.forum.views import (
ForumCategoryView,
ForumView,
ForumMemberView,
ForumDiscussionView,
CommentsView
)
router = DefaultRouter()
router.register('forum-category', ForumCategoryView)
router.registe... | 25.857143 | 56 | 0.773481 | 52 | 543 | 8.057692 | 0.480769 | 0.167064 | 0.181384 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119705 | 543 | 21 | 57 | 25.857143 | 0.876569 | 0 | 0 | 0 | 0 | 0 | 0.101103 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e7905305bd687daf56f469c64de4c3c172be16e0 | 626 | py | Python | apps/video/adminx.py | tuxi/video-hub | fb64440ec7f84f08cf9cd706bec374fa357d7936 | [
"MIT"
] | 13 | 2019-06-30T16:31:54.000Z | 2021-02-15T06:15:03.000Z | apps/video/adminx.py | tuxi/video-hub | fb64440ec7f84f08cf9cd706bec374fa357d7936 | [
"MIT"
] | 9 | 2019-08-06T02:27:10.000Z | 2022-03-11T23:51:05.000Z | apps/video/adminx.py | tuxi/video-hub | fb64440ec7f84f08cf9cd706bec374fa357d7936 | [
"MIT"
] | 2 | 2019-07-25T04:41:27.000Z | 2020-08-27T01:16:54.000Z | import xadmin
from .models import Video, HotSearchWords
class VideoAdmin(object):
list_display = ["content", "cover_duration", "cover_start_second", "video", "longitude", "latitude" , "poi_name", "poi_address", "first_create_time", "source"]
search_fields = ['content', ]
list_editable = ["is_hot", ]
li... | 32.947368 | 163 | 0.71246 | 71 | 626 | 6 | 0.591549 | 0.046948 | 0.079812 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13099 | 626 | 18 | 164 | 34.777778 | 0.783088 | 0 | 0 | 0 | 0 | 0 | 0.3216 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e790781494fb83f8e5936a85084f7c026dc4da27 | 7,045 | py | Python | wlts/collections/collection.py | brazil-data-cube/wlts | ad22d8b443eaeae8f1c473a65b42b9ff57ed5685 | [
"MIT"
] | 1 | 2020-02-25T20:02:02.000Z | 2020-02-25T20:02:02.000Z | wlts/collections/collection.py | brazil-data-cube/wlts | ad22d8b443eaeae8f1c473a65b42b9ff57ed5685 | [
"MIT"
] | 33 | 2019-12-24T12:58:38.000Z | 2022-03-18T18:03:41.000Z | wlts/collections/collection.py | brazil-data-cube/wlts | ad22d8b443eaeae8f1c473a65b42b9ff57ed5685 | [
"MIT"
] | 4 | 2019-10-01T13:16:43.000Z | 2021-02-12T18:10:04.000Z | #
# This file is part of Web Land Trajectory Service.
# Copyright (C) 2020-2021 INPE.
#
# Web Land Trajectory Service is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
#
"""WLTS Collection Class."""
from abc import ABCMeta, abstractmethod... | 37.673797 | 118 | 0.669127 | 768 | 7,045 | 5.891927 | 0.173177 | 0.159116 | 0.047735 | 0.059669 | 0.279337 | 0.140111 | 0.068508 | 0.046409 | 0.046409 | 0.018122 | 0 | 0.002981 | 0.238041 | 7,045 | 186 | 119 | 37.876344 | 0.839978 | 0.267282 | 0 | 0.064516 | 0 | 0 | 0.165506 | 0.064728 | 0 | 0 | 0 | 0 | 0 | 1 | 0.236559 | false | 0.021505 | 0.021505 | 0 | 0.473118 | 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 | 0 | 0 | 0 | 1 |
e7920e2738661fbf48d0844baf1fd8fac8b149db | 1,815 | py | Python | Lesson29/RSP/test_views.py | IslamRaslambekov/HomeWork | 1adb97cee4ada46fbcca3fa6c575cf43a4133ef2 | [
"MIT"
] | null | null | null | Lesson29/RSP/test_views.py | IslamRaslambekov/HomeWork | 1adb97cee4ada46fbcca3fa6c575cf43a4133ef2 | [
"MIT"
] | null | null | null | Lesson29/RSP/test_views.py | IslamRaslambekov/HomeWork | 1adb97cee4ada46fbcca3fa6c575cf43a4133ef2 | [
"MIT"
] | null | null | null | from django.contrib.auth.models import User
from django.test import Client, TestCase
from mixer.backend.django import mixer
from .models import *
class ViewsTest(TestCase):
def setUp(self):
self.client = Client()
self.doctor = mixer.blend(Doctor)
User.objects.create_user(
use... | 29.754098 | 61 | 0.590634 | 199 | 1,815 | 5.140704 | 0.246231 | 0.097752 | 0.063539 | 0.083089 | 0.687195 | 0.658847 | 0.601173 | 0.601173 | 0.579668 | 0.579668 | 0 | 0.024257 | 0.295868 | 1,815 | 61 | 62 | 29.754098 | 0.776213 | 0 | 0 | 0.538462 | 0 | 0 | 0.122797 | 0 | 0 | 0 | 0 | 0 | 0.096154 | 1 | 0.115385 | false | 0.076923 | 0.076923 | 0 | 0.211538 | 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 | 0 | 0 | 0 | 1 |
e7a11ad3bbf2678a88ad43061ea8f88d2a0dc512 | 2,913 | py | Python | SolarSystem.py | kimokimo1123/SpaceByte | 57dbced34b59e7a1d0b4e3a0c4b7372613a73fd5 | [
"MIT"
] | null | null | null | SolarSystem.py | kimokimo1123/SpaceByte | 57dbced34b59e7a1d0b4e3a0c4b7372613a73fd5 | [
"MIT"
] | null | null | null | SolarSystem.py | kimokimo1123/SpaceByte | 57dbced34b59e7a1d0b4e3a0c4b7372613a73fd5 | [
"MIT"
] | null | null | null | from PySide2 import QtCore, QtGui, QtWidgets
from Planet import Planet
class SolarSystem(QtWidgets.QWidget):
scale = 10000000
def __init__(self, parent=None):
QtWidgets.QWidget.__init__(self, parent)
self.setPalette(QtGui.QPalette(QtGui.QColor(100, 100, 100)))
self.setAutoFillBackgrou... | 56.019231 | 159 | 0.648816 | 345 | 2,913 | 5.446377 | 0.414493 | 0.058542 | 0.072379 | 0.097924 | 0.293773 | 0.153273 | 0.153273 | 0.153273 | 0.153273 | 0.153273 | 0 | 0.246288 | 0.213869 | 2,913 | 52 | 160 | 56.019231 | 0.574236 | 0 | 0 | 0.255319 | 0 | 0 | 0.02059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06383 | false | 0 | 0.042553 | 0 | 0.148936 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 1 |
e7b132ad321d71af3a129a5bd0387d264499ff1c | 391 | py | Python | Test1.py | liaopeiyuan/Wehrmacht-Enigma-I | 58b56dd92d7290ff24725645ec24b9ead1a397d4 | [
"MIT"
] | 1 | 2018-12-29T04:52:11.000Z | 2018-12-29T04:52:11.000Z | Test1.py | liaopeiyuan/Wehrmacht-Enigma-I | 58b56dd92d7290ff24725645ec24b9ead1a397d4 | [
"MIT"
] | 1 | 2018-12-29T05:04:09.000Z | 2018-12-29T05:04:09.000Z | Test1.py | liaopeiyuan/Wehrmacht-Enigma-I | 58b56dd92d7290ff24725645ec24b9ead1a397d4 | [
"MIT"
] | null | null | null | def let_to_num (input):
result=0
if input=='a':
result=1
elif input=='b':
result=2
elif input=='c':
result=3
elif input=='d':
result=4
return result
while True:
rotors=['b','c','d','e']
i... | 13.964286 | 31 | 0.434783 | 49 | 391 | 3.367347 | 0.530612 | 0.163636 | 0.09697 | 0.157576 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026906 | 0.429668 | 391 | 27 | 32 | 14.481481 | 0.713004 | 0 | 0 | 0 | 0 | 0 | 0.02046 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.0625 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
e7b3f06b11274f81599a228003de787ef4f106b0 | 310 | py | Python | runtests.py | kallewesterling/django-licensing | 974583f56aa34270c8b8ec3d9896f205bc00c924 | [
"Unlicense"
] | 3 | 2015-09-29T09:23:59.000Z | 2017-10-08T08:57:23.000Z | runtests.py | kallewesterling/django-licensing | 974583f56aa34270c8b8ec3d9896f205bc00c924 | [
"Unlicense"
] | 7 | 2015-09-29T09:31:05.000Z | 2020-06-15T17:52:36.000Z | runtests.py | kallewesterling/django-licensing | 974583f56aa34270c8b8ec3d9896f205bc00c924 | [
"Unlicense"
] | 5 | 2015-05-11T23:28:53.000Z | 2021-07-29T13:50:08.000Z | #!/usr/bin/env python
import os
import sys
import django
from django.test.runner import DiscoverRunner
os.environ['DJANGO_SETTINGS_MODULE'] = 'licensing.test_settings'
django.setup()
test_runner = DiscoverRunner(verbosity=1)
failures = test_runner.run_tests(['tests'])
if failures:
sys.exit(failures)
| 18.235294 | 64 | 0.777419 | 42 | 310 | 5.595238 | 0.571429 | 0.12766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003623 | 0.109677 | 310 | 16 | 65 | 19.375 | 0.847826 | 0.064516 | 0 | 0 | 0 | 0 | 0.17301 | 0.155709 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
e7b6502af95333e1fc47b9a41c8715f01e424669 | 745 | py | Python | TestMatrices.py | Tsyrema/Computing-the-Distance-Matrix-and-the-Covariance-Matrix-of-Data | e1e4f11fd98c2f812912c626c482813b0b945ebc | [
"MIT"
] | null | null | null | TestMatrices.py | Tsyrema/Computing-the-Distance-Matrix-and-the-Covariance-Matrix-of-Data | e1e4f11fd98c2f812912c626c482813b0b945ebc | [
"MIT"
] | null | null | null | TestMatrices.py | Tsyrema/Computing-the-Distance-Matrix-and-the-Covariance-Matrix-of-Data | e1e4f11fd98c2f812912c626c482813b0b945ebc | [
"MIT"
] | null | null | null | # script to test your computation code
# do not change this file
from ComputeMatrices import compute_distance_naive, \
compute_distance_smart, compute_correlation_naive, \
compute_correlation_smart
import numpy as np
from sklearn.datasets import load_iris
# my computation
def my_comp_distance(X):
N = X.sh... | 23.28125 | 56 | 0.728859 | 108 | 745 | 4.722222 | 0.462963 | 0.117647 | 0.078431 | 0.058824 | 0.137255 | 0.137255 | 0 | 0 | 0 | 0 | 0 | 0.004959 | 0.187919 | 745 | 31 | 57 | 24.032258 | 0.838017 | 0.138255 | 0 | 0 | 0 | 0 | 0.012559 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.157895 | null | null | 0.105263 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
e7b898f751bd8d81ee69d416a922cbe8f62bf31e | 894 | py | Python | py/py_0070_totient_permutation.py | lcsm29/project-euler | fab794ece5aa7a11fc7c2177f26250f40a5b1447 | [
"MIT"
] | null | null | null | py/py_0070_totient_permutation.py | lcsm29/project-euler | fab794ece5aa7a11fc7c2177f26250f40a5b1447 | [
"MIT"
] | null | null | null | py/py_0070_totient_permutation.py | lcsm29/project-euler | fab794ece5aa7a11fc7c2177f26250f40a5b1447 | [
"MIT"
] | null | null | null | # Solution of;
# Project Euler Problem 70: Totient permutation
# https://projecteuler.net/problem=70
#
# Euler's Totient function, φ(n) [sometimes called the phi function], is used
# to determine the number of positive numbers less than or equal to n which
# are relatively prime to n. For example, as 1, 2, 4, 5, 7, ... | 33.111111 | 78 | 0.694631 | 158 | 894 | 3.867089 | 0.537975 | 0.00982 | 0.08347 | 0.052373 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076271 | 0.208054 | 894 | 26 | 79 | 34.384615 | 0.786723 | 0.799776 | 0 | 0 | 0 | 0 | 0.04878 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 0.125 | 0 | 0.25 | 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 | 0 | 0 | 0 | 1 |
e7b9787e1a798820ad891dd58328b6c0838cd692 | 931 | py | Python | tests/test_helpers.py | adinhodovic/django-google-optimize | d6849b1563a9ba98bca40213f84b911a828df4fd | [
"MIT"
] | 37 | 2019-12-06T11:36:21.000Z | 2022-03-16T14:10:17.000Z | tests/test_helpers.py | adinhodovic/django-google-optimize | d6849b1563a9ba98bca40213f84b911a828df4fd | [
"MIT"
] | 25 | 2020-01-08T19:58:42.000Z | 2021-08-25T16:20:22.000Z | tests/test_helpers.py | adinhodovic/django-google-optimize | d6849b1563a9ba98bca40213f84b911a828df4fd | [
"MIT"
] | 5 | 2020-01-07T12:41:38.000Z | 2021-12-23T08:05:27.000Z | import factory
from django_google_optimize.models import (
ExperimentCookie,
ExperimentVariant,
GoogleExperiment,
)
# pylint: disable=too-few-public-methods
class GoogleExperimentFactory(factory.django.DjangoModelFactory):
class Meta:
model = GoogleExperiment
experiment_id = factory.Fake... | 25.162162 | 66 | 0.745435 | 86 | 931 | 8 | 0.406977 | 0.087209 | 0.135174 | 0.156977 | 0.303779 | 0.303779 | 0.107558 | 0 | 0 | 0 | 0 | 0.001294 | 0.16971 | 931 | 36 | 67 | 25.861111 | 0.888745 | 0.082707 | 0 | 0.291667 | 0 | 0 | 0.025852 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.708333 | 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 | 0 | 1 | 0 | 0 | 1 |
e7c0c75e92393b8aa5847f776f93703402edb770 | 504 | py | Python | mads/urls.py | hugis/mads | d5a2ed633932621849ebe073655371cb381c8f6b | [
"MIT"
] | null | null | null | mads/urls.py | hugis/mads | d5a2ed633932621849ebe073655371cb381c8f6b | [
"MIT"
] | null | null | null | mads/urls.py | hugis/mads | d5a2ed633932621849ebe073655371cb381c8f6b | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.urls import include, path
from rest_framework import routers
from mads.apps.core import views
router = routers.DefaultRouter()
router.register(r"domains", views.DomainViewSet)
router.register(r"aliases", views.AliasViewSet)
router.register(r"mailboxes", views.MailboxViewS... | 28 | 82 | 0.757937 | 64 | 504 | 5.921875 | 0.484375 | 0.102902 | 0.118734 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105159 | 504 | 17 | 83 | 29.647059 | 0.840355 | 0 | 0 | 0 | 0 | 0 | 0.150794 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 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 | 0 | 0 | 0 | 1 |
e7c16b0b97aed4e36aa5f8443f3cc0a5fe6d98bd | 2,519 | py | Python | code/old code/optimizeCRF.py | ujjwal95/tappe_project | c10ff68d2e6d9418fa4b59cb1c5c178a3ef7f07b | [
"MIT"
] | 1 | 2019-12-02T22:45:12.000Z | 2019-12-02T22:45:12.000Z | code/old code/optimizeCRF.py | ujjwal95/tappe_project | c10ff68d2e6d9418fa4b59cb1c5c178a3ef7f07b | [
"MIT"
] | null | null | null | code/old code/optimizeCRF.py | ujjwal95/tappe_project | c10ff68d2e6d9418fa4b59cb1c5c178a3ef7f07b | [
"MIT"
] | null | null | null | import pandas as pd
import numpy
import matplotlib
import sklearn_crfsuite
from sklearn import preprocessing
from sklearn.preprocessing import LabelEncoder
from sklearn_crfsuite import metrics
from sklearn.model_selection import train_test_split
from sklearn.metrics import make_scorer
from sklearn.cross_validation i... | 31.098765 | 156 | 0.704248 | 352 | 2,519 | 4.90625 | 0.471591 | 0.057325 | 0.011581 | 0.013897 | 0.079907 | 0.034742 | 0.019687 | 0 | 0 | 0 | 0 | 0.023088 | 0.174672 | 2,519 | 80 | 157 | 31.4875 | 0.8076 | 0.226677 | 0 | 0 | 0 | 0 | 0.09514 | 0.030507 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.36 | 0 | 0.36 | 0.06 | 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 | 0 | 0 | 0 | 1 |
e7cc6e03e8fba3a3c8e8e98a764b7497345e27ab | 2,347 | py | Python | examples/Shortest_Path/data_generator.py | real-lhj/ignnition | 3d565a886abb459c3dfbd8d69667db6c614fce19 | [
"Apache-2.0"
] | null | null | null | examples/Shortest_Path/data_generator.py | real-lhj/ignnition | 3d565a886abb459c3dfbd8d69667db6c614fce19 | [
"Apache-2.0"
] | null | null | null | examples/Shortest_Path/data_generator.py | real-lhj/ignnition | 3d565a886abb459c3dfbd8d69667db6c614fce19 | [
"Apache-2.0"
] | null | null | null | import networkx as nx
import random
import json
import os
from networkx.readwrite import json_graph
def generate_random_graph(min_nodes, max_nodes, min_edge_weight, max_edge_weight, p):
while True:
# Create a random Erdos Renyi graph
G = nx.erdos_renyi_graph(random.randint(min_nodes, max_nodes), p... | 36.671875 | 118 | 0.660418 | 355 | 2,347 | 4.160563 | 0.295775 | 0.042654 | 0.035207 | 0.02979 | 0.208531 | 0.19499 | 0.148951 | 0.083954 | 0.083954 | 0.083954 | 0 | 0.015209 | 0.215594 | 2,347 | 63 | 119 | 37.253968 | 0.787072 | 0.10311 | 0 | 0 | 1 | 0 | 0.080038 | 0.033349 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.108696 | 0 | 0.173913 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
e7cc8a0f74856e8cbb1a39b31ab8cb893f0660ed | 1,226 | py | Python | dash-listener-alt.py | kmuthupa/dash-listener | 2892d734560f40bd68ffdabbfe1117c81a6999c8 | [
"MIT"
] | null | null | null | dash-listener-alt.py | kmuthupa/dash-listener | 2892d734560f40bd68ffdabbfe1117c81a6999c8 | [
"MIT"
] | null | null | null | dash-listener-alt.py | kmuthupa/dash-listener | 2892d734560f40bd68ffdabbfe1117c81a6999c8 | [
"MIT"
] | null | null | null | import socket
import struct
import binascii
import time
import json
import urllib2
import requests
macs = {
'74c246c3e349' : 'dash_tide'
}
def post_data():
data = {
"date": time.strftime("%Y-%m-%d"),
"tally": '1'
}
requests.post("https://sheetsu.com/apis/390c6259", data)
def record_tal... | 27.244444 | 82 | 0.659054 | 159 | 1,226 | 4.899371 | 0.471698 | 0.057766 | 0.033376 | 0.041078 | 0.06932 | 0.06932 | 0 | 0 | 0 | 0 | 0 | 0.058031 | 0.212887 | 1,226 | 44 | 83 | 27.863636 | 0.749223 | 0.066884 | 0 | 0 | 0 | 0 | 0.135846 | 0 | 0 | 0 | 0.005259 | 0 | 0 | 0 | null | null | 0 | 0.189189 | null | null | 0.054054 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
e7dc61b3b75eb49a14979252269dc83f42aec877 | 863 | py | Python | Cluster/evaluation.py | ImYJLiu/BloomCDM | 81a6f547dc2eae593069687d8b6bdd8670433dc6 | [
"MIT"
] | null | null | null | Cluster/evaluation.py | ImYJLiu/BloomCDM | 81a6f547dc2eae593069687d8b6bdd8670433dc6 | [
"MIT"
] | null | null | null | Cluster/evaluation.py | ImYJLiu/BloomCDM | 81a6f547dc2eae593069687d8b6bdd8670433dc6 | [
"MIT"
] | null | null | null | from sklearn.cluster import DBSCAN # 进行DBSCAN聚类
from sklearn.preprocessing import StandardScaler
from sklearn.metrics import silhouette_score ,calinski_harabasz_score,davies_bouldin_score # 计算 轮廓系数,CH 指标,DBI
class E():
def __init__(self,data, y_pred):
self.data = data
self.y_pred = y_pred
... | 28.766667 | 111 | 0.630359 | 102 | 863 | 5.137255 | 0.362745 | 0.057252 | 0.068702 | 0.099237 | 0.145038 | 0.145038 | 0.103053 | 0 | 0 | 0 | 0 | 0 | 0.267671 | 863 | 29 | 112 | 29.758621 | 0.829114 | 0.2781 | 0 | 0 | 0 | 0 | 0.011401 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.1875 | 0 | 0.5625 | 0.125 | 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 | 0 | 1 | 0 | 0 | 1 |
99b144df149b18f40d7e7ca025f915a0c0ec681f | 6,292 | py | Python | webdriver/tests/fullscreen_window.py | hiikezoe/web-platform-tests | 87427523dc6baf2fb06dd8ea33c1b72e7d2fc831 | [
"BSD-3-Clause"
] | 1 | 2020-02-13T14:28:56.000Z | 2020-02-13T14:28:56.000Z | webdriver/tests/fullscreen_window.py | hiikezoe/web-platform-tests | 87427523dc6baf2fb06dd8ea33c1b72e7d2fc831 | [
"BSD-3-Clause"
] | null | null | null | webdriver/tests/fullscreen_window.py | hiikezoe/web-platform-tests | 87427523dc6baf2fb06dd8ea33c1b72e7d2fc831 | [
"BSD-3-Clause"
] | null | null | null | # META: timeout=long
from tests.support.inline import inline
from tests.support.asserts import assert_error, assert_success, assert_dialog_handled
from tests.support.fixtures import create_dialog
alert_doc = inline("<script>window.alert()</script>")
def read_global(session, name):
return session.execute_script... | 31.303483 | 94 | 0.714558 | 823 | 6,292 | 5.3548 | 0.229648 | 0.054005 | 0.062401 | 0.070343 | 0.528477 | 0.459496 | 0.411618 | 0.360563 | 0.33651 | 0.33651 | 0 | 0.008718 | 0.179593 | 6,292 | 200 | 95 | 31.46 | 0.845021 | 0.374762 | 0 | 0.315789 | 0 | 0 | 0.170649 | 0.021299 | 0 | 0 | 0 | 0 | 0.486842 | 1 | 0.105263 | false | 0 | 0.039474 | 0.026316 | 0.171053 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
99b9385d264d70ba8ad916f4bd12300324cc3e76 | 529 | py | Python | tensorstream/common/lag.py | clems4ever/tensorstream | 61bff14f65f71bdd4ab58aefbd6eda79ec5863cb | [
"Apache-2.0"
] | 5 | 2019-04-10T03:51:13.000Z | 2020-07-12T10:50:24.000Z | tensorstream/common/lag.py | clems4ever/tensorstream | 61bff14f65f71bdd4ab58aefbd6eda79ec5863cb | [
"Apache-2.0"
] | null | null | null | tensorstream/common/lag.py | clems4ever/tensorstream | 61bff14f65f71bdd4ab58aefbd6eda79ec5863cb | [
"Apache-2.0"
] | null | null | null | import tensorflow as tf
from tensorstream.common import roll
from tensorstream.streamable import Streamable
class Lag(Streamable):
def __init__(self, period):
super().__init__()
self.period = period
def step(self, value, buffer_state=None):
if buffer_state is None:
shape = self.concat([self.per... | 27.842105 | 57 | 0.731569 | 73 | 529 | 5.027397 | 0.410959 | 0.239782 | 0.174387 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002288 | 0.173913 | 529 | 18 | 58 | 29.388889 | 0.837529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.214286 | 0 | 0.5 | 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 | 0 | 0 | 0 | 1 |
99c33519d50af734f4e0ecfc163700571d7196d6 | 3,422 | py | Python | utils/generate_preprocess_macro.py | kuba-kazimierczak/kaguya | 0c00444139cdd55f34e0c1cc317d0d02fca5b1d0 | [
"BSL-1.0"
] | 336 | 2015-12-11T14:14:51.000Z | 2022-03-27T13:36:03.000Z | utils/generate_preprocess_macro.py | roctomato/kaguya | 38ca7e1d894c138e454bbe5c89048bdd5091545a | [
"BSL-1.0"
] | 99 | 2016-01-21T19:44:07.000Z | 2022-02-04T19:13:13.000Z | utils/generate_preprocess_macro.py | roctomato/kaguya | 38ca7e1d894c138e454bbe5c89048bdd5091545a | [
"BSL-1.0"
] | 74 | 2016-01-05T17:04:17.000Z | 2022-03-03T05:17:30.000Z |
import os
import sys
import re
import argparse
def gen_repeate_macro(out,format,count,start=1):
for num in range(start, count):
out.write(format.format(no=num,dec=num-1,inc=num+1))
out.write('\n')
def KAGUYA_PP_REPEAT(out,count):
out.write('#define KAGUYA_PP_REPEAT0(MACRO)\n')
gen_repeate... | 46.243243 | 177 | 0.743133 | 579 | 3,422 | 4.018998 | 0.103627 | 0.209712 | 0.168457 | 0.128921 | 0.731414 | 0.668242 | 0.55737 | 0.516975 | 0.334336 | 0.192523 | 0 | 0.004233 | 0.102572 | 3,422 | 73 | 178 | 46.876712 | 0.7535 | 0 | 0 | 0.114754 | 0 | 0.04918 | 0.497808 | 0.365098 | 0 | 0 | 0 | 0 | 0 | 1 | 0.147541 | false | 0 | 0.065574 | 0 | 0.213115 | 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 | 0 | 0 | 0 | 1 |
99c6d463a317a0c23cdc0cd195379dd4278ffef6 | 248 | py | Python | helian/helian.py | hfmkwi/Helianthus | 35a16430f3f75902123b3aa78da466325e54c6f9 | [
"MIT"
] | null | null | null | helian/helian.py | hfmkwi/Helianthus | 35a16430f3f75902123b3aa78da466325e54c6f9 | [
"MIT"
] | null | null | null | helian/helian.py | hfmkwi/Helianthus | 35a16430f3f75902123b3aa78da466325e54c6f9 | [
"MIT"
] | null | null | null | import os
from discord.ext import commands
PREFIX = '\\'
TOKEN = os.environ['BOT_TOKEN']
bot = commands.Bot(command_prefix=PREFIX, help_command=None)
def main():
bot.load_extension('core')
bot.load_extension('cogs')
bot.run(TOKEN)
| 16.533333 | 60 | 0.705645 | 35 | 248 | 4.857143 | 0.571429 | 0.082353 | 0.188235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153226 | 248 | 14 | 61 | 17.714286 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0.076613 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
99cd47c8bce7d295e623b59c2b372eb0a071a9fc | 744 | py | Python | hashtag_monitor/apps/monitor/serializers.py | lccasagrande/Hashtag-Monitor | d08e116eb13bc97501e862ad0c5d9401386a7e33 | [
"MIT"
] | 2 | 2021-02-08T07:19:40.000Z | 2021-10-02T18:24:14.000Z | hashtag_monitor/apps/monitor/serializers.py | lccasagrande/Hashtag-Monitor | d08e116eb13bc97501e862ad0c5d9401386a7e33 | [
"MIT"
] | 6 | 2020-06-05T20:16:23.000Z | 2021-10-20T22:33:35.000Z | hashtag_monitor/apps/monitor/serializers.py | lccasagrande/Hashtag-Monitor | d08e116eb13bc97501e862ad0c5d9401386a7e33 | [
"MIT"
] | 3 | 2020-01-06T07:46:13.000Z | 2021-02-08T07:21:17.000Z | from rest_framework import serializers
from . import models
class HashtagSerializer(serializers.ModelSerializer):
class Meta:
model = models.Hashtag
fields = '__all__'
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = models.User
fields = '__all__'
cla... | 23.25 | 68 | 0.702957 | 67 | 744 | 7.58209 | 0.522388 | 0.153543 | 0.082677 | 0.11811 | 0.181102 | 0.181102 | 0 | 0 | 0 | 0 | 0 | 0.001706 | 0.212366 | 744 | 31 | 69 | 24 | 0.865188 | 0 | 0 | 0.285714 | 0 | 0 | 0.048387 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.095238 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
99cdef7fd62b0e685c46b93651463cfeeef55c99 | 1,088 | py | Python | di/core/assignment/__init__.py | dlski/python-di | 04dcdf58f3cf820e2d2ba5086e4e89822ae1f409 | [
"MIT"
] | 8 | 2021-02-05T16:17:31.000Z | 2022-03-03T00:01:33.000Z | di/core/assignment/__init__.py | dlski/python-di | 04dcdf58f3cf820e2d2ba5086e4e89822ae1f409 | [
"MIT"
] | null | null | null | di/core/assignment/__init__.py | dlski/python-di | 04dcdf58f3cf820e2d2ba5086e4e89822ae1f409 | [
"MIT"
] | null | null | null | from di.core.assignment.base import (
Assignment,
AssignmentError,
AssignmentFactory,
AssignmentFactorySelector,
Matcher,
ValuesMapper,
)
from di.core.assignment.factories import (
AggregationAssignmentFactory,
DirectAssignmentFactory,
)
from di.core.assignment.mappers import MixedIterab... | 23.652174 | 84 | 0.72886 | 68 | 1,088 | 11.602941 | 0.382353 | 0.038023 | 0.063371 | 0.126743 | 0.420786 | 0.217997 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 1,088 | 45 | 85 | 24.177778 | 0.892534 | 0.037684 | 0 | 0 | 0 | 0 | 0.279539 | 0.147935 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.128205 | 0 | 0.128205 | 0 | 0 | 0 | 1 | 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 | 0 | 0 | 0 | 1 |
99d86da31be3f0437a53deed91ffbcf3e299469e | 142 | py | Python | lib/augmentation/utils.py | dalbertweiss/DataPreprocessing | 84d4cc73f8c34801ec68203a1be69bdb5cfcba3e | [
"MIT"
] | null | null | null | lib/augmentation/utils.py | dalbertweiss/DataPreprocessing | 84d4cc73f8c34801ec68203a1be69bdb5cfcba3e | [
"MIT"
] | null | null | null | lib/augmentation/utils.py | dalbertweiss/DataPreprocessing | 84d4cc73f8c34801ec68203a1be69bdb5cfcba3e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Mar 14 14:43:55 2022
@author: D.Albert-Weiss
"""
spec_win1D = [
('win', int32),
] | 14.2 | 35 | 0.514085 | 20 | 142 | 3.6 | 0.95 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15534 | 0.274648 | 142 | 10 | 36 | 14.2 | 0.543689 | 0.584507 | 0 | 0 | 0 | 0 | 0.057692 | 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 | 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 | 1 |
99d9f07b4a2999d6a93dfb0d8b4d332b8bc0ec54 | 823 | py | Python | ghostwriter/commandcenter/migrations/0007_auto_20210616_0340.py | bbhunter/Ghostwriter | 1b684ddd119feed9891e83b39c9b314b41d086ca | [
"BSD-3-Clause"
] | 601 | 2019-07-30T17:06:37.000Z | 2022-03-31T00:55:31.000Z | ghostwriter/commandcenter/migrations/0007_auto_20210616_0340.py | chrismaddalena/Ghostwriter | 5a938358450cd0e69a42883b1b18e067644744a8 | [
"BSD-3-Clause"
] | 150 | 2019-08-01T07:20:22.000Z | 2022-03-29T19:18:02.000Z | ghostwriter/commandcenter/migrations/0007_auto_20210616_0340.py | chrismaddalena/Ghostwriter | 5a938358450cd0e69a42883b1b18e067644744a8 | [
"BSD-3-Clause"
] | 126 | 2019-07-30T17:42:49.000Z | 2022-03-21T20:43:35.000Z | # Generated by Django 3.0.10 on 2021-06-16 03:40
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('commandcenter', '0006_auto_20210614_2224'),
]
operations = [
migrations.AlterField(
model_name='namecheapconfiguration',
... | 34.291667 | 188 | 0.662211 | 91 | 823 | 5.857143 | 0.67033 | 0.050657 | 0.093809 | 0.108818 | 0.206379 | 0.206379 | 0 | 0 | 0 | 0 | 0 | 0.065183 | 0.235723 | 823 | 23 | 189 | 35.782609 | 0.782194 | 0.055893 | 0 | 0.352941 | 1 | 0 | 0.336774 | 0.086452 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
99db9dd663833dcf3b8f9602df99199689743a20 | 3,056 | py | Python | ofagent/indigo/submodules/infra/sourcegen/cxmacrogen.py | lanpinguo/apple-sauce | b16e7b78e58d0d17ad7f05476f38704a6b519ece | [
"Apache-2.0"
] | 1 | 2021-05-14T15:33:21.000Z | 2021-05-14T15:33:21.000Z | ofagent/indigo/submodules/infra/sourcegen/cxmacrogen.py | lanpinguo/apple-sauce | b16e7b78e58d0d17ad7f05476f38704a6b519ece | [
"Apache-2.0"
] | null | null | null | ofagent/indigo/submodules/infra/sourcegen/cxmacrogen.py | lanpinguo/apple-sauce | b16e7b78e58d0d17ad7f05476f38704a6b519ece | [
"Apache-2.0"
] | 2 | 2019-07-13T06:58:33.000Z | 2022-03-23T03:02:57.000Z | #!/usr/bin/python
## SourceObject ##
#################################################################
#
# Copyright 2013, Big Switch Networks, Inc.
#
# Licensed under the Eclipse Public License, Version 1.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a co... | 28.036697 | 79 | 0.452552 | 286 | 3,056 | 4.800699 | 0.475524 | 0.0437 | 0.02185 | 0.037145 | 0.115076 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016659 | 0.292866 | 3,056 | 108 | 80 | 28.296296 | 0.618695 | 0.225131 | 0 | 0.2 | 0 | 0 | 0.096618 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.06 | null | null | 0.04 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
99dd0c17e409ebde03b445cbe98b44dbd1bdd2ab | 631 | py | Python | setup.py | carolinesadlerr/wiggum | e9b80fcdb8d50c6dd8ee3f75b9054e07b15a6163 | [
"MIT"
] | 5 | 2020-04-04T23:00:15.000Z | 2021-09-05T21:47:43.000Z | setup.py | carolinesadlerr/wiggum | e9b80fcdb8d50c6dd8ee3f75b9054e07b15a6163 | [
"MIT"
] | 62 | 2019-12-02T19:08:35.000Z | 2022-03-30T21:30:42.000Z | setup.py | carolinesadlerr/wiggum | e9b80fcdb8d50c6dd8ee3f75b9054e07b15a6163 | [
"MIT"
] | 3 | 2021-02-19T16:06:29.000Z | 2022-03-06T22:25:58.000Z | from setuptools import setup
setup(name='wiggum',
version='0.2',
description='utilities to detect simpson\'s paradox',
url='http://github.com/brownsarahm/DetectSimpsonParadox',
author='Sarah M Brown, Christan Grant, Chenguang Xu',
author_email='smb@sarahmbrown.org',
license='MIT',
... | 37.117647 | 85 | 0.662441 | 71 | 631 | 5.732394 | 0.873239 | 0.066339 | 0.07371 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003891 | 0.18542 | 631 | 16 | 86 | 39.4375 | 0.787938 | 0 | 0 | 0 | 0 | 0 | 0.448494 | 0.098257 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.066667 | 0 | 0.066667 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
99def23e6c9c8c3f421f586fc4929a8d3284b05d | 380 | py | Python | vi_lomas_changes/migrations/0011_auto_20200428_0256.py | dymaxionlabs/satlomas-back | f4568f6535755fd4a2432ecc661a264872206c6c | [
"Apache-2.0"
] | 1 | 2021-02-18T20:11:25.000Z | 2021-02-18T20:11:25.000Z | vi_lomas_changes/migrations/0011_auto_20200428_0256.py | dymaxionlabs/satlomas-back | f4568f6535755fd4a2432ecc661a264872206c6c | [
"Apache-2.0"
] | 7 | 2020-06-09T14:54:43.000Z | 2021-09-22T21:00:13.000Z | vi_lomas_changes/migrations/0011_auto_20200428_0256.py | dymaxionlabs/satlomas-back | f4568f6535755fd4a2432ecc661a264872206c6c | [
"Apache-2.0"
] | 1 | 2020-05-08T20:42:49.000Z | 2020-05-08T20:42:49.000Z | # Generated by Django 3.0.5 on 2020-04-28 02:56
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('vi_lomas_changes', '0010_auto_20200428_0252'),
]
operations = [
migrations.RenameField(
model_name='raster',
old_name='area_... | 20 | 56 | 0.602632 | 43 | 380 | 5.093023 | 0.837209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114815 | 0.289474 | 380 | 18 | 57 | 21.111111 | 0.696296 | 0.118421 | 0 | 0 | 1 | 0 | 0.195195 | 0.069069 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
99e11f4dd422cc01a5dfd72e76d4f4c0f0caf1af | 3,948 | py | Python | main.py | HassanKhalilHamad/FaceBookBot | 4e431041200aaf4bbf076e1293b83f5d58fb8159 | [
"MIT"
] | null | null | null | main.py | HassanKhalilHamad/FaceBookBot | 4e431041200aaf4bbf076e1293b83f5d58fb8159 | [
"MIT"
] | null | null | null | main.py | HassanKhalilHamad/FaceBookBot | 4e431041200aaf4bbf076e1293b83f5d58fb8159 | [
"MIT"
] | null | null | null | from selenium import webdriver
from selenium.common import exceptions
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.keys import Keys
import time
import argparse
class FacebookBot:
def __init__(self,username,password,hashtag,status_report=False):
self.username... | 36.555556 | 125 | 0.62614 | 494 | 3,948 | 4.825911 | 0.309717 | 0.040268 | 0.067114 | 0.067953 | 0.239094 | 0.158138 | 0.09396 | 0.045302 | 0.045302 | 0.045302 | 0 | 0.008051 | 0.244934 | 3,948 | 107 | 126 | 36.897196 | 0.791681 | 0 | 0 | 0.059524 | 0 | 0 | 0.175735 | 0.06743 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.071429 | 0.071429 | 0 | 0.178571 | 0.107143 | 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 | 0 | 0 | 0 | 1 |
99e2ee09f37bc86e3281d05c0dca4458741037bc | 3,601 | py | Python | backend/tests/test_01_users.py | adm-in/foodgram-project-react | c681297d9f1b34a6504350c4fb4306cbdb156c6a | [
"Apache-2.0"
] | null | null | null | backend/tests/test_01_users.py | adm-in/foodgram-project-react | c681297d9f1b34a6504350c4fb4306cbdb156c6a | [
"Apache-2.0"
] | null | null | null | backend/tests/test_01_users.py | adm-in/foodgram-project-react | c681297d9f1b34a6504350c4fb4306cbdb156c6a | [
"Apache-2.0"
] | null | null | null | import pytest
from django.contrib.auth import get_user_model
User = get_user_model()
class TestUsers:
url_user_1 = '/api/users/6/'
url_user_2 = '/api/users/7/'
url_users = '/api/users/'
url_profile = '/api/users/me/'
user_dict = dict(
username='test_user2',
password='!Qwerty1232'... | 36.01 | 79 | 0.641488 | 452 | 3,601 | 4.853982 | 0.14823 | 0.095716 | 0.082042 | 0.065634 | 0.668642 | 0.644485 | 0.644485 | 0.582498 | 0.546946 | 0.493619 | 0 | 0.039004 | 0.25243 | 3,601 | 99 | 80 | 36.373737 | 0.776003 | 0 | 0 | 0.307692 | 0 | 0 | 0.294363 | 0.06526 | 0 | 0 | 0 | 0 | 0.307692 | 1 | 0.038462 | false | 0.051282 | 0.025641 | 0 | 0.141026 | 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 | 0 | 0 | 0 | 1 |
99e60966ae673d39c08e0612c76a33844a719bb8 | 587 | py | Python | seminar-roulette/backend/apps.py | olliegardner/seminar-roulette | c8330258778dd7f71b1289c5dfe611e5637cf71d | [
"MIT"
] | null | null | null | seminar-roulette/backend/apps.py | olliegardner/seminar-roulette | c8330258778dd7f71b1289c5dfe611e5637cf71d | [
"MIT"
] | null | null | null | seminar-roulette/backend/apps.py | olliegardner/seminar-roulette | c8330258778dd7f71b1289c5dfe611e5637cf71d | [
"MIT"
] | 1 | 2020-10-07T16:21:59.000Z | 2020-10-07T16:21:59.000Z | from django.apps import AppConfig
from watson import search as watson
class BackendConfig(AppConfig):
name = 'backend'
def ready(self):
# Register models to use within Django watson search
seminar_model = self.get_model('Seminar')
watson.register(seminar_model)
seminar_group_... | 27.952381 | 60 | 0.701874 | 69 | 587 | 5.768116 | 0.391304 | 0.090452 | 0.120603 | 0.170854 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.218058 | 587 | 20 | 61 | 29.35 | 0.867102 | 0.085179 | 0 | 0 | 0 | 0 | 0.076636 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.384615 | 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 | 0 | 0 | 0 | 1 |
99e6329c18d6de0048daf94062d6b6752963416d | 652 | py | Python | settings.py | vladimirze/Gimme-JSON-backend | 37fba97fcc99a2e631606f97fc48e6c280775ed0 | [
"MIT"
] | null | null | null | settings.py | vladimirze/Gimme-JSON-backend | 37fba97fcc99a2e631606f97fc48e6c280775ed0 | [
"MIT"
] | null | null | null | settings.py | vladimirze/Gimme-JSON-backend | 37fba97fcc99a2e631606f97fc48e6c280775ed0 | [
"MIT"
] | null | null | null | import os
import datetime
class BaseSettings(object):
DEBUG = False
TESTING = False
TOUCH_ME_TO_RELOAD = 'settings.py'
SECRET_KEY = os.environ.get('GIMMEJSON_SECRET_KEY', None)
DATABASE_HOST = os.environ.get('GIMMEJSON_DATABASE_HOST', 'localhost')
DATABASE_PORT = int(os.environ.get('GIMMEJSON_... | 24.148148 | 74 | 0.734663 | 80 | 652 | 5.7125 | 0.5375 | 0.059081 | 0.078775 | 0.137856 | 0.126915 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011152 | 0.174847 | 652 | 26 | 75 | 25.076923 | 0.83829 | 0 | 0 | 0 | 0 | 0 | 0.173313 | 0.070552 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.947368 | 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 | 0 | 1 | 0 | 0 | 1 |
99eae22ac6ae3901cb958795e0e5d06a4f11ce42 | 1,056 | py | Python | passwordValidator.py | valentinsoare/currentlyLearningPythonProjectsBased | 740acdecec1de2ac827eb46cc72a060bb0bdf954 | [
"MIT"
] | 1 | 2021-08-17T02:27:18.000Z | 2021-08-17T02:27:18.000Z | passwordValidator.py | valentinsoare/currentlyLearningPythonProjectsBased | 740acdecec1de2ac827eb46cc72a060bb0bdf954 | [
"MIT"
] | null | null | null | passwordValidator.py | valentinsoare/currentlyLearningPythonProjectsBased | 740acdecec1de2ac827eb46cc72a060bb0bdf954 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import re
def catch_input():
password = input(f'\n\033[1;31m *Enter Your Password for Validation:\033[0m ')
return password
def password_validator_rules(input_rule, given_password):
rules = re.compile(input_rule)
pattern = re.search(rules, given_password)
return True if patt... | 30.171429 | 117 | 0.624053 | 153 | 1,056 | 4.163399 | 0.45098 | 0.012559 | 0.031397 | 0.037677 | 0.243328 | 0.091052 | 0.091052 | 0.091052 | 0.091052 | 0 | 0 | 0.056695 | 0.214962 | 1,056 | 34 | 118 | 31.058824 | 0.711701 | 0.016098 | 0 | 0.181818 | 0 | 0.136364 | 0.348748 | 0.095376 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0.409091 | 0.045455 | 0 | 0.272727 | 0.136364 | 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 | 0 | 0 | 0 | 1 |
99ecae9408df98e7422a93a0dc21601fe62d7be4 | 1,251 | py | Python | application.py | labs12-support-group-nlp/DS | b0c8240640a600a182cc5571fe9e82cfa2855daa | [
"MIT"
] | null | null | null | application.py | labs12-support-group-nlp/DS | b0c8240640a600a182cc5571fe9e82cfa2855daa | [
"MIT"
] | 1 | 2019-05-04T02:27:42.000Z | 2019-05-04T02:27:42.000Z | application.py | rick1270/DS | bb0833ef5eb19e09eb9431ce09543684468d0cff | [
"MIT"
] | 1 | 2019-04-24T16:50:54.000Z | 2019-04-24T16:50:54.000Z | from flask import Flask, request, jsonify
from flask_restful import Resource, Api
from flask_cors import CORS, cross_origin
application = Flask(__name__)
cors = CORS(application, resources={r"/": {"origins": "*"}})
application.config['CORS_HEADERS'] = 'Content-Type'
@application.route('/', methods=['POST','OPTIONS']... | 32.076923 | 67 | 0.625899 | 133 | 1,251 | 5.736842 | 0.43609 | 0.17038 | 0.235911 | 0.049803 | 0.448231 | 0.448231 | 0.448231 | 0.448231 | 0.448231 | 0.448231 | 0 | 0.010395 | 0.231015 | 1,251 | 38 | 68 | 32.921053 | 0.782744 | 0 | 0 | 0.275862 | 0 | 0 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.103448 | 0.034483 | 0.241379 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
99f475ca326d293fdb820242a1f6bac91a9a703f | 957 | py | Python | simulation/simulation_forecast/wip_order_retriever.py | fladdimir/csa-simulation-based-sc-forecast | 80f176a783496f8859609f63b56c6199a73d9909 | [
"MIT"
] | 2 | 2020-11-04T17:34:38.000Z | 2021-08-13T07:55:23.000Z | simulation/simulation_forecast/wip_order_retriever.py | fladdimir/csa-simulation-based-sc-forecast | 80f176a783496f8859609f63b56c6199a73d9909 | [
"MIT"
] | null | null | null | simulation/simulation_forecast/wip_order_retriever.py | fladdimir/csa-simulation-based-sc-forecast | 80f176a783496f8859609f63b56c6199a73d9909 | [
"MIT"
] | 2 | 2021-05-28T02:55:44.000Z | 2021-08-03T13:56:10.000Z | import logging
from typing import List, Tuple
def get_active_orders(table) -> Tuple[List[dict]]:
# TODO: query for items instead of client-side filtering
# TODO: check for pagination (https://docs.aws.amazon.com/de_de/amazondynamodb/latest/developerguide/GettingStarted.Python.04.html)
# If neither Select ... | 45.571429 | 135 | 0.715778 | 136 | 957 | 4.889706 | 0.602941 | 0.066165 | 0.07218 | 0.04812 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006386 | 0.181818 | 957 | 20 | 136 | 47.85 | 0.842912 | 0.343783 | 0 | 0 | 0 | 0 | 0.18138 | 0.040128 | 0 | 0 | 0 | 0.05 | 0 | 1 | 0.066667 | false | 0 | 0.133333 | 0 | 0.266667 | 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 | 0 | 0 | 0 | 1 |
99f9404fa505ef94cc549175789b704a679091b4 | 3,616 | py | Python | tools/generate_inputs.py | juxiangyu/kaldi-onnx | 2a0e7de6d2ff6e20befd7db3447be8c493ed4f62 | [
"Apache-2.0"
] | 224 | 2019-05-16T09:23:53.000Z | 2022-03-25T03:54:22.000Z | tools/generate_inputs.py | juxiangyu/kaldi-onnx | 2a0e7de6d2ff6e20befd7db3447be8c493ed4f62 | [
"Apache-2.0"
] | 42 | 2019-05-16T11:49:17.000Z | 2022-02-15T01:24:24.000Z | tools/generate_inputs.py | juxiangyu/kaldi-onnx | 2a0e7de6d2ff6e20befd7db3447be8c493ed4f62 | [
"Apache-2.0"
] | 60 | 2019-05-16T09:23:59.000Z | 2022-02-10T09:28:55.000Z | # Copyright 2019 Xiaomi, Inc. 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
#
# Unless required by applicable law or... | 36.16 | 74 | 0.611726 | 486 | 3,616 | 4.368313 | 0.294239 | 0.033914 | 0.056053 | 0.029675 | 0.160622 | 0.1187 | 0.062176 | 0.03203 | 0 | 0 | 0 | 0.010243 | 0.271018 | 3,616 | 99 | 75 | 36.525253 | 0.795144 | 0.168695 | 0 | 0.029851 | 0 | 0 | 0.11733 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.059701 | null | null | 0.044776 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
99fce7050793cd0e0a75e8f3e0e98c3d21a5a90d | 1,005 | py | Python | ch5_tdd/test/robot/steps/robotLibrary.py | bionikspoon/wiley-testing-python | 0d2cf6934acc38d71ce1cf4204b4619225e3b6d5 | [
"MIT"
] | null | null | null | ch5_tdd/test/robot/steps/robotLibrary.py | bionikspoon/wiley-testing-python | 0d2cf6934acc38d71ce1cf4204b4619225e3b6d5 | [
"MIT"
] | null | null | null | ch5_tdd/test/robot/steps/robotLibrary.py | bionikspoon/wiley-testing-python | 0d2cf6934acc38d71ce1cf4204b4619225e3b6d5 | [
"MIT"
] | null | null | null | from nose.tools import assert_equal, assert_in
from webtest import TestApp
from ch5_tdd.src.account import Account
from ch5_tdd.src.bank_app import app, BANK
class robotLibrary(object):
def __init__(self):
self.browser = None
self.response = None
self.form_response = None
def Create_... | 33.5 | 82 | 0.702488 | 129 | 1,005 | 5.24031 | 0.341085 | 0.096154 | 0.094675 | 0.038462 | 0.071006 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014907 | 0.199005 | 1,005 | 30 | 82 | 33.5 | 0.824845 | 0 | 0 | 0 | 0 | 0 | 0.057654 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 1 | 0.217391 | false | 0 | 0.173913 | 0 | 0.434783 | 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 | 0 | 0 | 0 | 1 |
99fdf43014327f8e4e6ba537ca301abdf75d4dbf | 1,037 | py | Python | duxy/Day3/Python/complex_storage_matrix.py | CloudCoders/AdventOfCode2017 | 5a52d1e89076eccb55686e4af5848de289309813 | [
"MIT"
] | 8 | 2017-12-11T18:22:52.000Z | 2017-12-13T00:50:24.000Z | duxy/Day3/Python/complex_storage_matrix.py | CloudCoders/AdventOfCode2017 | 5a52d1e89076eccb55686e4af5848de289309813 | [
"MIT"
] | 8 | 2017-12-01T14:31:29.000Z | 2017-12-07T21:43:43.000Z | duxy/Day3/Python/complex_storage_matrix.py | CloudCoders/AdventOfCode2017 | 5a52d1e89076eccb55686e4af5848de289309813 | [
"MIT"
] | null | null | null |
import numpy as np
N = 17 #607 #17
matrix = []
for i in range(N):
matrix.append([0]*N)
matrix = np.matrix(matrix)
findn = 211 #368078 #211
find = [0,0]
fn = 1
x = N//2
y = N//2
expo = 1
while(fn < N*N):
per = expo**2 - (expo-2)**2
if per == 0:
matrix[x,y] = 1
if findn == fn : find = [x,y]
else: ... | 18.517857 | 52 | 0.455159 | 196 | 1,037 | 2.408163 | 0.153061 | 0.029661 | 0.114407 | 0.165254 | 0.601695 | 0.565678 | 0.533898 | 0.533898 | 0.474576 | 0.474576 | 0 | 0.084211 | 0.358727 | 1,037 | 55 | 53 | 18.854545 | 0.625564 | 0.015429 | 0 | 0.446809 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.021277 | 0 | 0.021277 | 0.085106 | 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 | 0 | 0 | 0 | 1 |
8202cdb7350dc20b9ba2b0f1f6726fc35100c1b8 | 1,665 | py | Python | src/dummy_manager.py | cwainwright/think-inside-the-box | dd537e72229a42f8f5f7074151799d3b07dfdfbd | [
"MIT"
] | null | null | null | src/dummy_manager.py | cwainwright/think-inside-the-box | dd537e72229a42f8f5f7074151799d3b07dfdfbd | [
"MIT"
] | null | null | null | src/dummy_manager.py | cwainwright/think-inside-the-box | dd537e72229a42f8f5f7074151799d3b07dfdfbd | [
"MIT"
] | null | null | null | import queue
from abc import ABC, abstractmethod
from blessed import Terminal
from src.sections.debug import Debug
from src.sections.game_over import GameOver
from src.sections.menu import Menu, StartMenuType
from src.sections.over_world import OverWorld, StartOverWorld
from src.sections.question import NewQuestion, ... | 25.227273 | 66 | 0.704505 | 194 | 1,665 | 5.912371 | 0.283505 | 0.073235 | 0.065388 | 0.108108 | 0.11857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.20961 | 1,665 | 65 | 67 | 25.615385 | 0.870821 | 0.162162 | 0 | 0.162162 | 0 | 0 | 0.000739 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108108 | false | 0.054054 | 0.216216 | 0 | 0.675676 | 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 | 0 | 0 | 0 | 1 |
82036e859c1b2a11f6462909008c6449f0017493 | 813 | py | Python | src/core/lib/errors.py | lilliputten/cam-rpi-server-2202 | 096646221e30128f6331d59584a0fbd5aa1900ec | [
"MIT"
] | null | null | null | src/core/lib/errors.py | lilliputten/cam-rpi-server-2202 | 096646221e30128f6331d59584a0fbd5aa1900ec | [
"MIT"
] | null | null | null | src/core/lib/errors.py | lilliputten/cam-rpi-server-2202 | 096646221e30128f6331d59584a0fbd5aa1900ec | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
# @module logger
# @since 2020.02.23, 02:18
# @changed 2022.02.24, 00:53
import traceback
# from . import utils
from . import yamlSupport
def toString(error, show_stacktrace=False):
errorName = type(error).__name__
errorExtra = str(error)
# TODO: Add all args?
errorArg = st... | 22.583333 | 73 | 0.648216 | 94 | 813 | 5.489362 | 0.531915 | 0.052326 | 0.03876 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042722 | 0.222632 | 813 | 35 | 74 | 23.228571 | 0.773734 | 0.184502 | 0 | 0 | 0 | 0 | 0.042748 | 0 | 0 | 0 | 0 | 0.028571 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.3 | 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 | 0 | 0 | 0 | 1 |
8205e2bfe18953793b72eaa715f721e13b984dd3 | 49,219 | py | Python | sbaas/models/models_stage00.py | SBRG/sbaas | 9df76bbffdd620cf8566744a2b0503935998fbe0 | [
"Apache-2.0"
] | 1 | 2017-05-13T04:35:08.000Z | 2017-05-13T04:35:08.000Z | sbaas/models/models_stage00.py | SBRG/sbaas | 9df76bbffdd620cf8566744a2b0503935998fbe0 | [
"Apache-2.0"
] | null | null | null | sbaas/models/models_stage00.py | SBRG/sbaas | 9df76bbffdd620cf8566744a2b0503935998fbe0 | [
"Apache-2.0"
] | 2 | 2017-02-23T19:32:38.000Z | 2020-01-14T19:13:05.000Z | from .models_base import *
from sqlalchemy.orm import relationship
import datetime
#Base models:
#Experimentor
#experimentor_id2name
class experimentor_id2name(Base):
#__table__ = make_table('experimentor_id2name')
__tablename__ = 'experimentor_id2name'
experimentor_id = Column(String(50), nullable = False... | 41.888511 | 285 | 0.706617 | 5,721 | 49,219 | 5.605139 | 0.055759 | 0.032744 | 0.033617 | 0.023451 | 0.47591 | 0.393146 | 0.322356 | 0.247451 | 0.218511 | 0.166558 | 0 | 0.01464 | 0.190922 | 49,219 | 1,174 | 286 | 41.924191 | 0.790618 | 0.10181 | 0 | 0.210583 | 0 | 0 | 0.09215 | 0.039863 | 0 | 0 | 0 | 0.000852 | 0 | 1 | 0.048596 | false | 0 | 0.00324 | 0.025918 | 0.62095 | 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 | 0 | 1 | 0 | 0 | 1 |
82172256f79551778bd0128f55c1b611129308ef | 400 | py | Python | euler-56.py | TFabijo/euler2 | 7da205ce02ae3bd12754f99c1fe69fbf20b1e3d0 | [
"MIT"
] | null | null | null | euler-56.py | TFabijo/euler2 | 7da205ce02ae3bd12754f99c1fe69fbf20b1e3d0 | [
"MIT"
] | null | null | null | euler-56.py | TFabijo/euler2 | 7da205ce02ae3bd12754f99c1fe69fbf20b1e3d0 | [
"MIT"
] | null | null | null | def vsota_stevk(n):
s = str(n)
vsota = 0
for x in s:
vsota += int(x)
return vsota
def euler56():
najvecja_vsota = 0
for a in range(1,100):
for b in range(1,100):
st = a ** b
s = vsota_stevk(st)
if s > najvecja_vsota:
... | 19.047619 | 35 | 0.4625 | 53 | 400 | 3.377358 | 0.396226 | 0.290503 | 0.100559 | 0.122905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063636 | 0.45 | 400 | 20 | 36 | 20 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.25 | 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 | 0 | 0 | 0 | 1 |
821c8404cbb4eab989b765e53a0a901036b7f702 | 1,293 | py | Python | bin/build_code.py | mdornseif/appengine-toolkit2 | 47ee6bf99b8e461ee64eae75bf24fb462d99b0ab | [
"MIT"
] | 1 | 2018-08-16T16:15:30.000Z | 2018-08-16T16:15:30.000Z | bin/build_code.py | mdornseif/appengine-toolkit2 | 47ee6bf99b8e461ee64eae75bf24fb462d99b0ab | [
"MIT"
] | 3 | 2018-08-14T09:52:11.000Z | 2021-12-13T19:54:07.000Z | bin/build_code.py | mdornseif/appengine-toolkit2 | 47ee6bf99b8e461ee64eae75bf24fb462d99b0ab | [
"MIT"
] | 1 | 2018-09-28T05:55:27.000Z | 2018-09-28T05:55:27.000Z | #!/usr/bin/env python
# encoding: utf-8
"""
Build all JS and misc code required in a gaetk2 project.
Created by Maximillian Dornseif on 2018-01-11.
Copyright (c) 2018 Cyberlogi. MIT licensed.
"""
import collections
import optparse
import os
import subprocess
import sys
config = dict(
GAE_VERSION='1.9.51'
)
task... | 25.352941 | 113 | 0.6628 | 163 | 1,293 | 5.147239 | 0.613497 | 0.026222 | 0.045292 | 0.038141 | 0.081049 | 0.081049 | 0.081049 | 0 | 0 | 0 | 0 | 0.018147 | 0.190255 | 1,293 | 50 | 114 | 25.86 | 0.78319 | 0.154679 | 0 | 0 | 0 | 0 | 0.222467 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.185185 | null | null | 0.037037 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
822183327a1dc506cf1edd914d622f1d5188d1fb | 728 | py | Python | examples/classes.py | fabianazioti/lccs.py | 225d9e70d4e15b7cbb8f05fcb6e2bcf6dbf37793 | [
"MIT"
] | 4 | 2020-02-25T20:02:13.000Z | 2022-02-09T15:23:55.000Z | examples/classes.py | fabianazioti/lccs.py | 225d9e70d4e15b7cbb8f05fcb6e2bcf6dbf37793 | [
"MIT"
] | 29 | 2019-12-14T16:36:22.000Z | 2022-02-07T12:16:11.000Z | examples/classes.py | fabianazioti/lccs.py | 225d9e70d4e15b7cbb8f05fcb6e2bcf6dbf37793 | [
"MIT"
] | 5 | 2019-11-23T23:59:17.000Z | 2021-11-17T15:51:23.000Z | #
# This file is part of Python Client Library for the LCCS-WS.
# Copyright (C) 2020 INPE.
#
# Python Client Library for the LCCS-WS is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
#
"""LCCS Python Client examples."""
from lccs import ... | 31.652174 | 98 | 0.769231 | 110 | 728 | 5.063636 | 0.563636 | 0.21544 | 0.048474 | 0.078995 | 0.111311 | 0.111311 | 0.111311 | 0 | 0 | 0 | 0 | 0.009709 | 0.151099 | 728 | 22 | 99 | 33.090909 | 0.891586 | 0.671703 | 0 | 0 | 0 | 0 | 0.225225 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 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 | 0 | 0 | 0 | 1 |
8228fd15cee5b727746563f138b090bc4ddb28f5 | 7,652 | py | Python | examples/ngr_code_jeff.py | jeffreysward/enspp | 0341f810b0a28617ddab68de3d0e3d96dea1fd9d | [
"BSD-3-Clause"
] | null | null | null | examples/ngr_code_jeff.py | jeffreysward/enspp | 0341f810b0a28617ddab68de3d0e3d96dea1fd9d | [
"BSD-3-Clause"
] | null | null | null | examples/ngr_code_jeff.py | jeffreysward/enspp | 0341f810b0a28617ddab68de3d0e3d96dea1fd9d | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
def post_process_2018(reforecast_data_all, obs_all, pp_days):
days = 25 # last 25 days for the given time (e.g., 12z last 25 days)
weights_all = np.full((11, pp_days), np.nan)
x0 = np.asarray([15.0, 0.10, 0.15, 0.23, 0.30, 0.10, 0.15, 0.23,
0.30, 0.10, 0.15... | 46.944785 | 134 | 0.406168 | 910 | 7,652 | 3.152747 | 0.152747 | 0.146392 | 0.067968 | 0.034507 | 0.196933 | 0.155803 | 0.103172 | 0.044963 | 0.02893 | 0.011502 | 0 | 0.047776 | 0.485755 | 7,652 | 162 | 135 | 47.234568 | 0.681321 | 0.060899 | 0 | 0.027027 | 0 | 0 | 0.008269 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.009009 | null | null | 0.036036 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
822a161b4d649097f474d726aa71ba970e635c5f | 2,143 | py | Python | backend/app/model/resource.py | sartography/star-drive | c0f33378d42913c3e677e07f74eb46d7b2b82a0a | [
"MIT"
] | null | null | null | backend/app/model/resource.py | sartography/star-drive | c0f33378d42913c3e677e07f74eb46d7b2b82a0a | [
"MIT"
] | 368 | 2018-12-18T14:43:20.000Z | 2022-03-02T02:54:18.000Z | backend/app/model/resource.py | sartography/star-drive | c0f33378d42913c3e677e07f74eb46d7b2b82a0a | [
"MIT"
] | 2 | 2019-10-02T03:06:06.000Z | 2020-10-05T16:53:48.000Z | from sqlalchemy import func
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.dialects.postgresql import ARRAY
from app import db
Base = declarative_base()
class Resource(db.Model):
__tablename__ = 'resource'
__label__ = "Online Information"
id = db.Column(db.Integer, primary_key=Tr... | 38.267857 | 84 | 0.638824 | 264 | 2,143 | 5.003788 | 0.329545 | 0.109008 | 0.12869 | 0.12112 | 0.172597 | 0.140802 | 0.097653 | 0 | 0 | 0 | 0 | 0.006794 | 0.244517 | 2,143 | 55 | 85 | 38.963636 | 0.809141 | 0 | 0 | 0 | 0 | 0 | 0.046664 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042553 | false | 0 | 0.085106 | 0.021277 | 0.659574 | 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 | 0 | 1 | 0 | 0 | 1 |
8230a6a461fce538592edaccb12273004dee5ff8 | 395 | py | Python | hedera/migrations/0004_profile_lang.py | Hedera-Lang-Learn/hedera | d03b093ce30de01190c7d6b4a490523c976ab39a | [
"MIT"
] | 8 | 2018-10-25T19:30:49.000Z | 2021-07-27T18:16:42.000Z | hedera/migrations/0004_profile_lang.py | Hedera-Lang-Learn/hedera | d03b093ce30de01190c7d6b4a490523c976ab39a | [
"MIT"
] | 233 | 2018-11-01T14:30:25.000Z | 2022-03-30T16:38:24.000Z | hedera/migrations/0004_profile_lang.py | Hedera-Lang-Learn/hedera | d03b093ce30de01190c7d6b4a490523c976ab39a | [
"MIT"
] | 3 | 2019-05-16T14:57:55.000Z | 2021-03-16T13:05:01.000Z | # Generated by Django 3.2.3 on 2021-07-19 17:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('hedera', '0003_profile_show_node_ids'),
]
operations = [
migrations.AddField(
model_name='profile',
name='lang',
... | 20.789474 | 60 | 0.6 | 45 | 395 | 5.133333 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070671 | 0.283544 | 395 | 18 | 61 | 21.944444 | 0.745583 | 0.113924 | 0 | 0 | 1 | 0 | 0.123563 | 0.074713 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
823a834841b9e9a6e5f7fc35a52f9478cd6d74ff | 2,112 | py | Python | textvinf/modules/encoders/variational_encoder.py | vikigenius/textvinf | 65f1f5595c17488a01a56a064dc217a94d887399 | [
"MIT"
] | null | null | null | textvinf/modules/encoders/variational_encoder.py | vikigenius/textvinf | 65f1f5595c17488a01a56a064dc217a94d887399 | [
"MIT"
] | null | null | null | textvinf/modules/encoders/variational_encoder.py | vikigenius/textvinf | 65f1f5595c17488a01a56a064dc217a94d887399 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from typing import Any, Dict
import torch
from allennlp.common import Registrable
from allennlp.modules.seq2vec_encoders.seq2vec_encoder import Seq2VecEncoder
from allennlp.modules.text_field_embedders.text_field_embedder import (
TextFieldEmbedder,
)
from allennlp.nn.util import get_text_... | 31.058824 | 84 | 0.678977 | 247 | 2,112 | 5.534413 | 0.348178 | 0.05267 | 0.06218 | 0.046086 | 0.114119 | 0.114119 | 0.114119 | 0.070227 | 0.070227 | 0.070227 | 0 | 0.003686 | 0.229167 | 2,112 | 67 | 85 | 31.522388 | 0.835995 | 0.194129 | 0 | 0 | 0 | 0 | 0.013431 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.170732 | false | 0 | 0.195122 | 0.097561 | 0.512195 | 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 | 0 | 1 | 0 | 0 | 1 |
8243cfeeaa87fc5a4b2de026d4d52f8b7f26773e | 1,244 | py | Python | template.py | AldenMB/GlassBasket | 844dcaaadcf3384199001e01d4716b7152cdd6f2 | [
"MIT"
] | null | null | null | template.py | AldenMB/GlassBasket | 844dcaaadcf3384199001e01d4716b7152cdd6f2 | [
"MIT"
] | null | null | null | template.py | AldenMB/GlassBasket | 844dcaaadcf3384199001e01d4716b7152cdd6f2 | [
"MIT"
] | null | null | null | import math
bottom_length = 180
bottom_width = 140
height = 50
taper = 30
margin = 2 * height * math.tan(math.radians(taper))
length = bottom_length + margin
width = bottom_width + margin
panel_height = height / math.cos(math.radians(taper))
print_margin = 5
svg = f"""<?xml version="1.0" encoding="UTF-8" standalon... | 27.644444 | 132 | 0.639871 | 196 | 1,244 | 3.954082 | 0.362245 | 0.099355 | 0.050323 | 0.073548 | 0.349677 | 0.251613 | 0.202581 | 0.202581 | 0.154839 | 0.154839 | 0 | 0.081238 | 0.16881 | 1,244 | 44 | 133 | 28.272727 | 0.668279 | 0 | 0 | 0.105263 | 0 | 0.105263 | 0.742765 | 0.355305 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.026316 | 0 | 0.026316 | 0.131579 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
82453df986a91cb2aa9c552cf888800a5eb5c8e1 | 434 | py | Python | resources/migrations/0010_auto_20210214_0555.py | alimustafashah/core | 7280c4ca2e88d700ad35af05fbe0766e9ad8e5b4 | [
"MIT"
] | null | null | null | resources/migrations/0010_auto_20210214_0555.py | alimustafashah/core | 7280c4ca2e88d700ad35af05fbe0766e9ad8e5b4 | [
"MIT"
] | 24 | 2021-04-29T18:58:51.000Z | 2021-08-06T23:07:03.000Z | resources/migrations/0010_auto_20210214_0555.py | alimustafashah/core | 7280c4ca2e88d700ad35af05fbe0766e9ad8e5b4 | [
"MIT"
] | 2 | 2021-04-29T23:03:55.000Z | 2021-04-29T23:43:52.000Z | # Generated by Django 3.1.4 on 2021-02-14 05:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("resources", "0009_auto_20210214_0539"),
]
operations = [
migrations.AlterField(
model_name="resourcepagesection",
na... | 22.842105 | 84 | 0.626728 | 48 | 434 | 5.541667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11215 | 0.260369 | 434 | 18 | 85 | 24.111111 | 0.716511 | 0.103687 | 0 | 0 | 1 | 0 | 0.144703 | 0.059432 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
8245d41406e82c6be334eed73de94218a7f34864 | 2,123 | py | Python | venv_linux/lib/python3.8/site-packages/testpath/tempdir.py | RishiCSE128/CSI_6_ART | b1058bbe944a30dd1ab9a8a1d2462e27583cf501 | [
"MIT"
] | 23 | 2015-05-08T20:11:00.000Z | 2022-03-26T00:32:30.000Z | venv_linux/lib/python3.8/site-packages/testpath/tempdir.py | RishiCSE128/CSI_6_ART | b1058bbe944a30dd1ab9a8a1d2462e27583cf501 | [
"MIT"
] | 21 | 2015-08-14T10:27:28.000Z | 2022-02-23T20:05:43.000Z | venv_linux/lib/python3.8/site-packages/testpath/tempdir.py | RishiCSE128/CSI_6_ART | b1058bbe944a30dd1ab9a8a1d2462e27583cf501 | [
"MIT"
] | 25 | 2016-10-09T20:26:39.000Z | 2022-02-15T11:05:20.000Z | """Extra utilities for temporary directories.
NamedFileInTemporaryDirectory and TemporaryWorkingDirectory from IPython, which
uses the 3-clause BSD license.
"""
from __future__ import print_function
import os as _os
from tempfile import TemporaryDirectory
class NamedFileInTemporaryDirectory(object):
"""Open a f... | 31.220588 | 79 | 0.682996 | 258 | 2,123 | 5.437985 | 0.465116 | 0.014968 | 0.027085 | 0.057021 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001229 | 0.233632 | 2,123 | 67 | 80 | 31.686567 | 0.861094 | 0.495525 | 0 | 0.083333 | 0 | 0 | 0.003119 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.041667 | 0.625 | 0.041667 | 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 | 0 | 0 | 1 |
8246198791dcc9de1b4292010db9aba6047017fa | 406 | py | Python | 1400OS_05_Codes/data.py | radiumweilei/building-machine-learning-systems-with-python | 45ed110daf9f72c992ac93c8b3dc4cd29211f974 | [
"Apache-2.0"
] | 2 | 2018-05-11T15:16:27.000Z | 2018-05-11T15:16:31.000Z | 1400OS_05_Codes/data.py | radiumweilei/building-machine-learning-systems-with-python | 45ed110daf9f72c992ac93c8b3dc4cd29211f974 | [
"Apache-2.0"
] | null | null | null | 1400OS_05_Codes/data.py | radiumweilei/building-machine-learning-systems-with-python | 45ed110daf9f72c992ac93c8b3dc4cd29211f974 | [
"Apache-2.0"
] | null | null | null | import os
# DATA_DIR = r"C:\pymlbook-data\ch05"
DATA_DIR = r"/weilei/code/python/building-machine-learning-systems-with-python/1400OS_05_Codes/data"
CHART_DIR = os.path.join(".", "charts")
filtered = os.path.join(DATA_DIR, "filtered.tsv")
filtered_meta = os.path.join(DATA_DIR, "filtered-meta.json")
chosen = os.path.... | 33.833333 | 100 | 0.746305 | 67 | 406 | 4.358209 | 0.41791 | 0.143836 | 0.171233 | 0.191781 | 0.356164 | 0.356164 | 0 | 0 | 0 | 0 | 0 | 0.02139 | 0.078818 | 406 | 11 | 101 | 36.909091 | 0.759358 | 0.086207 | 0 | 0 | 0 | 0.142857 | 0.403794 | 0.233062 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 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 | 0 | 0 | 0 | 1 |
82468e7e391a08822417a0b704150f094d314094 | 4,536 | py | Python | AppEquipos/views.py | angel1194/Documentacion | 62fd4a8a245b9e040c1c97962af2acaaba44816a | [
"MIT"
] | null | null | null | AppEquipos/views.py | angel1194/Documentacion | 62fd4a8a245b9e040c1c97962af2acaaba44816a | [
"MIT"
] | null | null | null | AppEquipos/views.py | angel1194/Documentacion | 62fd4a8a245b9e040c1c97962af2acaaba44816a | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from django.shortcuts import render, HttpResponse, redirect, get_object_or_404
from .models import Post,PostMarcas,Images
# Create your views here.
from django.forms import modelformset_factory
from django.core.exceptions import ObjectDoesNotExist
from django.urls import re... | 29.454545 | 79 | 0.626102 | 537 | 4,536 | 5.268156 | 0.13594 | 0.082008 | 0.107458 | 0.103924 | 0.700954 | 0.700954 | 0.59491 | 0.59491 | 0.59491 | 0.576882 | 0 | 0.000879 | 0.247795 | 4,536 | 153 | 80 | 29.647059 | 0.828253 | 0.005071 | 0 | 0.510345 | 0 | 0 | 0.105553 | 0.005278 | 0 | 0 | 0 | 0 | 0 | 1 | 0.110345 | false | 0 | 0.048276 | 0.006897 | 0.268966 | 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 | 0 | 0 | 0 | 0 | 1 |
4137b62084eb00a12eba9e83253e94659df76252 | 7,039 | py | Python | projDir/ftp/scripts/putImageFilesToCatalog.py | NCAR/titan-cswr | 67efb4f775b69ed35052e9014ccb2ea1d86e5e6d | [
"BSD-2-Clause"
] | null | null | null | projDir/ftp/scripts/putImageFilesToCatalog.py | NCAR/titan-cswr | 67efb4f775b69ed35052e9014ccb2ea1d86e5e6d | [
"BSD-2-Clause"
] | null | null | null | projDir/ftp/scripts/putImageFilesToCatalog.py | NCAR/titan-cswr | 67efb4f775b69ed35052e9014ccb2ea1d86e5e6d | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
#===========================================================================
#
# Put SMARTR images to catalog
#
#===========================================================================
import os
import sys
from stat import *
import time
import datetime
from datetime import timedelta
import s... | 28.613821 | 82 | 0.531894 | 715 | 7,039 | 5.142657 | 0.293706 | 0.043514 | 0.076149 | 0.044058 | 0.215665 | 0.175687 | 0.101713 | 0.039706 | 0.02502 | 0.02502 | 0 | 0.01645 | 0.257281 | 7,039 | 245 | 83 | 28.730612 | 0.686878 | 0.098594 | 0 | 0.170068 | 0 | 0 | 0.207991 | 0.057244 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.020408 | 0.068027 | null | null | 0.170068 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
413e36016b2245bc9ec2c014c2992b101811c6a9 | 500 | py | Python | setup.py | gokceneraslan/dorothea-py | d7bbd0ad0958acd94ac72f1f996275e372110f16 | [
"MIT"
] | null | null | null | setup.py | gokceneraslan/dorothea-py | d7bbd0ad0958acd94ac72f1f996275e372110f16 | [
"MIT"
] | null | null | null | setup.py | gokceneraslan/dorothea-py | d7bbd0ad0958acd94ac72f1f996275e372110f16 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from distutils.core import setup
setup(
name='dorothea',
version='1.0',
description='Dorothea is a python package to compute TF activity from RNA-seq data using SCIRA method',
author='Pau Badia i Mompel',
url='https://github.com/saezlab/dorothea-py',
packages=['dorothea'],
l... | 27.777778 | 106 | 0.662 | 65 | 500 | 5.030769 | 0.769231 | 0.110092 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004902 | 0.184 | 500 | 17 | 107 | 29.411765 | 0.796569 | 0.04 | 0 | 0 | 0 | 0 | 0.501044 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.066667 | 0 | 0.066667 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
41411a8c44bcc6e9270f00bb2beb1ed1b6dd8887 | 6,875 | py | Python | tests/test_api.py | vbabiy/Flexget | 9611689de68062cd3dddcf145d65c7a44a42d490 | [
"MIT"
] | null | null | null | tests/test_api.py | vbabiy/Flexget | 9611689de68062cd3dddcf145d65c7a44a42d490 | [
"MIT"
] | null | null | null | tests/test_api.py | vbabiy/Flexget | 9611689de68062cd3dddcf145d65c7a44a42d490 | [
"MIT"
] | null | null | null | import json
import os
from mock import patch
from flexget import __version__
from flexget.api import __version__ as __api_version__
from flexget.manager import Manager
from tests.conftest import MockManager
class TestValidator(object):
config = '{tasks: {}}'
def test_invalid_payload(self, api_client):
... | 32.894737 | 103 | 0.514327 | 721 | 6,875 | 4.682386 | 0.127601 | 0.069313 | 0.042654 | 0.05628 | 0.752073 | 0.747038 | 0.699348 | 0.605154 | 0.488152 | 0.488152 | 0 | 0.010695 | 0.3472 | 6,875 | 208 | 104 | 33.052885 | 0.741533 | 0.002618 | 0 | 0.519774 | 0 | 0 | 0.196791 | 0 | 0 | 0 | 0 | 0.004808 | 0.225989 | 1 | 0.073446 | false | 0 | 0.039548 | 0 | 0.146893 | 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 | 0 | 0 | 0 | 0 | 1 |
4142fd62beb6d7b2e2bdd8fc47e8d1bb203e3e5c | 3,980 | py | Python | hmda_fips_process/hmda_state.py | cfpb/hmda-fan | 64af17a4221907233fc0862d9dea1057b1c74911 | [
"CC0-1.0"
] | 3 | 2015-07-11T17:52:13.000Z | 2019-05-31T16:57:20.000Z | hmda_fips_process/hmda_state.py | cfpb/hmda-fan | 64af17a4221907233fc0862d9dea1057b1c74911 | [
"CC0-1.0"
] | null | null | null | hmda_fips_process/hmda_state.py | cfpb/hmda-fan | 64af17a4221907233fc0862d9dea1057b1c74911 | [
"CC0-1.0"
] | 2 | 2017-07-14T03:22:09.000Z | 2021-02-21T10:44:12.000Z | #mike byrne
#consumer finance protection bureau
#may 2014
#update the state field on a hmda public data row
#processing step towards geospatial analysis
import os
import string
import psycopg2
import time
import datetime
from datetime import date
now = time.localtime(time.time())
print " start time: ", time.asct... | 21.170213 | 83 | 0.570352 | 561 | 3,980 | 4.012478 | 0.368984 | 0.138605 | 0.028432 | 0.039094 | 0.099511 | 0.07952 | 0.03554 | 0 | 0 | 0 | 0 | 0.039406 | 0.222111 | 3,980 | 187 | 84 | 21.283422 | 0.687662 | 0.080653 | 0 | 0.056604 | 0 | 0 | 0.172376 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.037736 | null | null | 0.018868 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
41448d2a9dd5f8885d70eff7ebe56e37e5b4bacd | 1,054 | py | Python | src/highlighter.py | glguy/hpaste | 717c78f46965f6ea182b5da29a4ac1015b0cae20 | [
"BSD-3-Clause"
] | 6 | 2015-01-15T19:33:58.000Z | 2022-03-20T17:20:41.000Z | src/highlighter.py | glguy/hpaste | 717c78f46965f6ea182b5da29a4ac1015b0cae20 | [
"BSD-3-Clause"
] | null | null | null | src/highlighter.py | glguy/hpaste | 717c78f46965f6ea182b5da29a4ac1015b0cae20 | [
"BSD-3-Clause"
] | null | null | null | from pygments import highlight
from pygments.formatters import HtmlFormatter
from pygments.lexers import get_lexer_by_name
from pygments.lexers import get_all_lexers
from pygments.util import ClassNotFound
class HtmlLineFormatter(HtmlFormatter):
def __init__(self, **options):
Html... | 32.9375 | 76 | 0.627135 | 128 | 1,054 | 4.984375 | 0.390625 | 0.094044 | 0.047022 | 0.065831 | 0.144201 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008951 | 0.258065 | 1,054 | 31 | 77 | 34 | 0.806905 | 0 | 0 | 0 | 0 | 0 | 0.043643 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.192308 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4145e0c50e6a6d866e2726e9f36c6f7979664e45 | 371 | py | Python | Project/Post/migrations/0004_auto_20200211_0931.py | AashishKhanal69/PeakyBlinders_ADC7_PartII | a4474c02be4ee8f8405b51df2f1d215e56ac192d | [
"bzip2-1.0.6"
] | null | null | null | Project/Post/migrations/0004_auto_20200211_0931.py | AashishKhanal69/PeakyBlinders_ADC7_PartII | a4474c02be4ee8f8405b51df2f1d215e56ac192d | [
"bzip2-1.0.6"
] | null | null | null | Project/Post/migrations/0004_auto_20200211_0931.py | AashishKhanal69/PeakyBlinders_ADC7_PartII | a4474c02be4ee8f8405b51df2f1d215e56ac192d | [
"bzip2-1.0.6"
] | null | null | null | # Generated by Django 3.0.1 on 2020-02-11 03:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Post', '0003_post_files'),
]
operations = [
migrations.AlterField(
model_name='post',
name='files',
fiel... | 19.526316 | 49 | 0.576819 | 40 | 371 | 5.25 | 0.775 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073077 | 0.299191 | 371 | 18 | 50 | 20.611111 | 0.734615 | 0.121294 | 0 | 0 | 1 | 0 | 0.08642 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
4149944fd6d1ecbbd0ff06661335e97fc14255b5 | 434 | py | Python | ocean_provider/test/test_log.py | compositedev/provider | b5fd24e6132ad7a42225fabf475e2e070184df72 | [
"Apache-2.0"
] | 16 | 2018-08-16T12:58:55.000Z | 2021-12-24T05:05:49.000Z | ocean_provider/test/test_log.py | compositedev/provider | b5fd24e6132ad7a42225fabf475e2e070184df72 | [
"Apache-2.0"
] | 233 | 2018-08-16T06:43:19.000Z | 2022-03-31T19:09:55.000Z | ocean_provider/test/test_log.py | compositedev/provider | b5fd24e6132ad7a42225fabf475e2e070184df72 | [
"Apache-2.0"
] | 23 | 2018-10-16T10:18:18.000Z | 2022-03-06T22:46:12.000Z | import os
from stat import S_IREAD
from ocean_provider.log import setup_logging
def test_logging_from_env(monkeypatch, tmpdir):
log = tmpdir.join("log.txt")
monkeypatch.setenv("LOG_CFG", log)
setup_logging()
with open(log, "w"):
pass
os.chmod(log, S_IREAD)
setup_logging()
def test... | 19.727273 | 53 | 0.71659 | 60 | 434 | 4.9 | 0.466667 | 0.163265 | 0.102041 | 0.129252 | 0.22449 | 0.22449 | 0.22449 | 0 | 0 | 0 | 0 | 0 | 0.179724 | 434 | 21 | 54 | 20.666667 | 0.825843 | 0 | 0 | 0.214286 | 0 | 0 | 0.087558 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.071429 | 0.214286 | 0 | 0.357143 | 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 | 0 | 0 | 0 | 1 |
414ba43c341bdbe20964e24e2203da0434d0b584 | 1,267 | py | Python | api/app01/migrations/0001_initial.py | borko81/django_rest_api | bd98471eb0705e203bda6841143da0a65026e2b4 | [
"MIT"
] | null | null | null | api/app01/migrations/0001_initial.py | borko81/django_rest_api | bd98471eb0705e203bda6841143da0a65026e2b4 | [
"MIT"
] | null | null | null | api/app01/migrations/0001_initial.py | borko81/django_rest_api | bd98471eb0705e203bda6841143da0a65026e2b4 | [
"MIT"
] | null | null | null | # Generated by Django 3.2 on 2021-09-18 18:40
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='University',
fields=[
... | 31.675 | 118 | 0.550908 | 117 | 1,267 | 5.811966 | 0.452991 | 0.097059 | 0.083824 | 0.097059 | 0.373529 | 0.373529 | 0.241176 | 0.241176 | 0.241176 | 0.241176 | 0 | 0.025581 | 0.321231 | 1,267 | 39 | 119 | 32.487179 | 0.765116 | 0.033938 | 0 | 0.375 | 1 | 0 | 0.143208 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.1875 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
415064b7823a69c5942293071bc421290c1ac890 | 2,117 | py | Python | loophole/polar/pb/sportprofile_mclaren_settings_pb2.py | oscarpicas/loophole | f9389c73f06b419c97ad32847346663a30d80225 | [
"MIT"
] | 153 | 2016-02-12T22:52:25.000Z | 2022-02-05T21:55:19.000Z | loophole/polar/pb/sportprofile_mclaren_settings_pb2.py | oscarpicas/loophole | f9389c73f06b419c97ad32847346663a30d80225 | [
"MIT"
] | 14 | 2016-02-28T13:56:34.000Z | 2020-02-16T20:33:41.000Z | loophole/polar/pb/sportprofile_mclaren_settings_pb2.py | oscarpicas/loophole | f9389c73f06b419c97ad32847346663a30d80225 | [
"MIT"
] | 20 | 2016-02-28T13:05:15.000Z | 2021-07-20T18:21:46.000Z | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: sportprofile_mclaren_settings.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf impor... | 31.132353 | 156 | 0.793576 | 234 | 2,117 | 6.871795 | 0.435897 | 0.031095 | 0.05597 | 0.074627 | 0.042289 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019078 | 0.108644 | 2,117 | 67 | 157 | 31.597015 | 0.833068 | 0.116202 | 0 | 0.083333 | 1 | 0.020833 | 0.208043 | 0.191957 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
415077971cec718690625ce6dfb41370cf3e9174 | 3,598 | py | Python | djangolg/settings.py | wolcomm/djangolg | 724dbb631da3c61d42f62024f9d7826423624191 | [
"Apache-2.0"
] | 6 | 2016-10-24T09:15:47.000Z | 2021-01-20T11:09:39.000Z | djangolg/settings.py | benmaddison/djangolg | 724dbb631da3c61d42f62024f9d7826423624191 | [
"Apache-2.0"
] | null | null | null | djangolg/settings.py | benmaddison/djangolg | 724dbb631da3c61d42f62024f9d7826423624191 | [
"Apache-2.0"
] | 1 | 2022-03-20T03:25:07.000Z | 2022-03-20T03:25:07.000Z | # Copyright 2017 Workonline Communications (Pty) Ltd. All rights reserved.
#
# The contents of this file are 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/LIC... | 35.98 | 79 | 0.753752 | 447 | 3,598 | 5.881432 | 0.409396 | 0.136934 | 0.209966 | 0.042602 | 0.04032 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004931 | 0.15453 | 3,598 | 99 | 80 | 36.343434 | 0.859303 | 0.324347 | 0 | 0 | 0 | 0 | 0.378763 | 0.262542 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043478 | 0 | 0.043478 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4151baeb28c4c17ca68aeec61499c77e75cfc856 | 207 | pyw | Python | allRename.pyw | showjim/UIstudy | 545ff727e1fedf9c06a4b74019d57d36818f3328 | [
"MIT"
] | 1 | 2020-08-24T10:31:00.000Z | 2020-08-24T10:31:00.000Z | allRename.pyw | showjim/UIstudy | 545ff727e1fedf9c06a4b74019d57d36818f3328 | [
"MIT"
] | null | null | null | allRename.pyw | showjim/UIstudy | 545ff727e1fedf9c06a4b74019d57d36818f3328 | [
"MIT"
] | null | null | null | """应用主文件"""
import ui
import error
error.filerec = True
error.consolerec = False
error.work()
ui.strarting = False
ui.root.report_callback_exception = error.handler
ui.root.focus_get()
ui.root.mainloop()
| 14.785714 | 49 | 0.758454 | 30 | 207 | 5.133333 | 0.6 | 0.116883 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 207 | 13 | 50 | 15.923077 | 0.836957 | 0.024155 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.222222 | 0 | 0.222222 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
41571f0293bc60e38213db4849b76e85c61a68c7 | 1,124 | py | Python | test/1d_text.py | xjtju/PinT_PFM | 26ffab52e13882005869d208db2c61ee7e00a239 | [
"Linux-OpenIB"
] | 5 | 2018-10-15T13:49:31.000Z | 2021-09-13T23:58:50.000Z | test/1d_text.py | xjtju/PinT_PFM | 26ffab52e13882005869d208db2c61ee7e00a239 | [
"Linux-OpenIB"
] | 1 | 2018-04-30T13:09:34.000Z | 2018-04-30T13:09:34.000Z | test/1d_text.py | xjtju/PinT_PFM | 26ffab52e13882005869d208db2c61ee7e00a239 | [
"Linux-OpenIB"
] | null | null | null | #!/usr/bin/env python
# the earlier script for ploting the result in ASCII format
# for ploting the HDF5 file, see the scripts in th 'pfm' directory
import sys
import numpy as np
import matplotlib.pyplot as plt
def get_color():
for item in ['r','g','b','c','m','y','k', 'r','g','b','c','m','y','k', 'r','g','... | 23.416667 | 133 | 0.548043 | 188 | 1,124 | 3.202128 | 0.468085 | 0.013289 | 0.019934 | 0.026578 | 0.046512 | 0.046512 | 0.046512 | 0.046512 | 0.046512 | 0.046512 | 0 | 0.024272 | 0.266904 | 1,124 | 47 | 134 | 23.914894 | 0.706311 | 0.128114 | 0 | 0 | 0 | 0 | 0.158111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.090909 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
415a4cbac4d9a8518665c3e0db44026e965f45ce | 27,680 | py | Python | libs/gui/window.py | albertoccelli/vortex | 54bf15d2f74967d3dfeddec670b32868fbb2c51b | [
"MIT"
] | null | null | null | libs/gui/window.py | albertoccelli/vortex | 54bf15d2f74967d3dfeddec670b32868fbb2c51b | [
"MIT"
] | null | null | null | libs/gui/window.py | albertoccelli/vortex | 54bf15d2f74967d3dfeddec670b32868fbb2c51b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'window.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtGui... | 56.489796 | 192 | 0.721062 | 2,726 | 27,680 | 7.205429 | 0.1438 | 0.060483 | 0.0503 | 0.01283 | 0.337898 | 0.250942 | 0.163527 | 0.148559 | 0.130995 | 0.124122 | 0 | 0.020644 | 0.16875 | 27,680 | 489 | 193 | 56.605317 | 0.833022 | 0.00979 | 0 | 0.143763 | 1 | 0 | 0.086347 | 0.001861 | 0 | 0 | 0 | 0 | 0 | 1 | 0.004228 | false | 0 | 0.006342 | 0 | 0.012685 | 0.021142 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
415a8f4d6bc55843c1e062a329fa3cc1ad57b94d | 2,282 | py | Python | {{cookiecutter.project_slug}}/app/accounts/models.py | n0tNoah/django-cookiecutter-rest | 8f8f85559d2e16f028cec7eb13b10f7378118074 | [
"MIT"
] | 4 | 2022-01-27T13:30:10.000Z | 2022-02-10T15:27:29.000Z | {{cookiecutter.project_slug}}/app/accounts/models.py | n0tNoah/djangoLTS-slim | 9136b54037be89992db0e92bc0e6040010ac357d | [
"MIT"
] | 8 | 2022-01-31T15:58:31.000Z | 2022-03-30T19:30:33.000Z | {{cookiecutter.project_slug}}/app/accounts/models.py | n0tNoah/djangoLTS-slim | 9136b54037be89992db0e92bc0e6040010ac357d | [
"MIT"
] | 1 | 2022-02-01T07:05:37.000Z | 2022-02-01T07:05:37.000Z | import uuid
from devutils.models import AbstractModel
from django.contrib.auth.base_user import AbstractBaseUser
from django.contrib.auth.models import PermissionsMixin
from django.contrib.auth.validators import UnicodeUsernameValidator
from django.core.mail import send_mail
from django.db import models
from django.u... | 30.426667 | 92 | 0.684487 | 280 | 2,282 | 5.367857 | 0.371429 | 0.03992 | 0.033932 | 0.041916 | 0.043912 | 0.043912 | 0.043912 | 0.043912 | 0 | 0 | 0 | 0.005568 | 0.212971 | 2,282 | 74 | 93 | 30.837838 | 0.831292 | 0.067923 | 0 | 0 | 0 | 0 | 0.120401 | 0.012422 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0.02 | 0.18 | 0.04 | 0.62 | 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 | 0 | 1 | 0 | 0 | 1 |
415d40e78dd1e77d8b96c6759ed365b53690d2da | 657 | py | Python | Prova_ideal_lense.py | Yiones/raytests | d88cc28f4775e00edaf206fb08944aae0f9a6bc7 | [
"MIT"
] | 1 | 2021-11-17T15:14:56.000Z | 2021-11-17T15:14:56.000Z | Prova_ideal_lense.py | Yiones/raytests | d88cc28f4775e00edaf206fb08944aae0f9a6bc7 | [
"MIT"
] | null | null | null | Prova_ideal_lense.py | Yiones/raytests | d88cc28f4775e00edaf206fb08944aae0f9a6bc7 | [
"MIT"
] | null | null | null | from Beam import Beam
from OpticalElement import Optical_element
from Shape import BoundaryRectangle
import numpy as np
import matplotlib.pyplot as plt
from numpy.testing import assert_almost_equal
from Vector import Vector
fx=0.5
fz=0.5
beam=Beam(5000)
#beam.set_divergences_collimated()
#beam.set_rectangular_spot(1... | 19.323529 | 82 | 0.792998 | 115 | 657 | 4.33913 | 0.434783 | 0.112224 | 0.06012 | 0.056112 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039801 | 0.082192 | 657 | 34 | 83 | 19.323529 | 0.787728 | 0.111111 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 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 | 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 | 1 |
41614e05aa062a72d89d48fa8e7cd2059faf0216 | 4,001 | py | Python | fiji/download_templates.py | mzouink/template-building | baef4d390f7ba120406d3d4bbbb572b8deb0eb3b | [
"BSD-2-Clause"
] | 6 | 2019-08-22T06:49:08.000Z | 2022-03-08T13:56:04.000Z | fiji/download_templates.py | mzouink/template-building | baef4d390f7ba120406d3d4bbbb572b8deb0eb3b | [
"BSD-2-Clause"
] | 20 | 2017-05-16T13:20:52.000Z | 2022-02-09T15:05:31.000Z | fiji/download_templates.py | mzouink/template-building | baef4d390f7ba120406d3d4bbbb572b8deb0eb3b | [
"BSD-2-Clause"
] | 3 | 2020-01-31T11:00:25.000Z | 2021-11-04T13:51:32.000Z | # @File(label="Destination folder", style="directory") dest_dir
# @Boolean(label="JRC 2018 Female Brain" ) do_female_cb
# @Boolean(label="JRC 2018 Male Brain" ) do_male_cb
# @Boolean(label="JRC 2018 Unisex Brain" ) do_unisex_cb
# @Boolean(label="JRC 2018 Female VNC" ) do_female_vnc
# @Boolean(label="JRC 2018 Male VNC" ... | 31.257813 | 110 | 0.749563 | 591 | 4,001 | 4.881557 | 0.279188 | 0.043674 | 0.02773 | 0.039515 | 0.289775 | 0.223917 | 0.10156 | 0.10156 | 0.10156 | 0 | 0 | 0.065578 | 0.127218 | 4,001 | 127 | 111 | 31.503937 | 0.760596 | 0.126218 | 0 | 0.094118 | 0 | 0 | 0.313846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.094118 | null | null | 0.2 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
4161fcb6961c9955852ec3df239ea1b59e9df6bb | 5,284 | py | Python | routing/test.py | lucaslzl/gin | 29848ee469781512de6f421d8375f851fe15a52b | [
"Apache-2.0"
] | null | null | null | routing/test.py | lucaslzl/gin | 29848ee469781512de6f421d8375f851fe15a52b | [
"Apache-2.0"
] | null | null | null | routing/test.py | lucaslzl/gin | 29848ee469781512de6f421d8375f851fe15a52b | [
"Apache-2.0"
] | 1 | 2021-02-12T13:49:04.000Z | 2021-02-12T13:49:04.000Z |
def calculate_line_diff():
# SAME LINE
line1_start = (41.88695, -87.63248)
line1_end = (41.88692, -87.63539)
line2_start = (41.88695, -87.62951)
line2_end = (41.88695, -87.63248)
# NOT THE SAME LINE
# line1_start = (41.87523, -87.64807)
# line1_end = (41.8777, -87.64545)
# line2_start = (41.87437, -87.642... | 27.237113 | 155 | 0.503407 | 649 | 5,284 | 3.983051 | 0.286595 | 0.021663 | 0.010445 | 0.013927 | 0.413153 | 0.382205 | 0.362863 | 0.362863 | 0.362863 | 0.362863 | 0 | 0.160438 | 0.118849 | 5,284 | 194 | 156 | 27.237113 | 0.394759 | 0.12888 | 0 | 0.125 | 0 | 0 | 0.021615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.072917 | 0 | 0.166667 | 0.104167 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
416624b3fa3ec0cb4e725e83be5c26290c59ec6e | 1,881 | py | Python | utility/python_util/Prime_factorization.py | HNJ755329/library | 61caef53a6f9c8ed91baa69f147937650e9fbe87 | [
"MIT"
] | null | null | null | utility/python_util/Prime_factorization.py | HNJ755329/library | 61caef53a6f9c8ed91baa69f147937650e9fbe87 | [
"MIT"
] | 2 | 2021-07-19T10:10:39.000Z | 2021-08-24T14:57:37.000Z | utility/python_util/Prime_factorization.py | HNJ755329/library | 61caef53a6f9c8ed91baa69f147937650e9fbe87 | [
"MIT"
] | null | null | null | def gcd(a, b):
while b: a, b = b, a % b
return a
def isPrimeMR(n):
d = n - 1
d = d // (d & -d)
L = [2]
for a in L:
t = d
y = pow(a, t, n)
if y == 1: continue
while y != n - 1:
y = (y * y) % n
if y == 1 or t == n - 1: return 0
t ... | 25.767123 | 53 | 0.316853 | 265 | 1,881 | 2.207547 | 0.203774 | 0.023932 | 0.035897 | 0.017094 | 0.030769 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 0.555024 | 1,881 | 73 | 54 | 25.767123 | 0.624851 | 0 | 0 | 0.126761 | 0 | 0 | 0.004251 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056338 | false | 0 | 0 | 0 | 0.112676 | 0.014085 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.