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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bf7098e078d549ff69d68c6ab705104946057397 | 413 | py | Python | core/migrations/0034_event_cancelled.py | darkismus/kompassi | 35dea2c7af2857a69cae5c5982b48f01ba56da1f | [
"CC-BY-3.0"
] | 13 | 2015-11-29T12:19:12.000Z | 2021-02-21T15:42:11.000Z | core/migrations/0034_event_cancelled.py | darkismus/kompassi | 35dea2c7af2857a69cae5c5982b48f01ba56da1f | [
"CC-BY-3.0"
] | 23 | 2015-04-29T19:43:34.000Z | 2021-02-10T05:50:17.000Z | core/migrations/0034_event_cancelled.py | darkismus/kompassi | 35dea2c7af2857a69cae5c5982b48f01ba56da1f | [
"CC-BY-3.0"
] | 11 | 2015-09-20T18:59:00.000Z | 2020-02-07T08:47:34.000Z | # Generated by Django 2.2.10 on 2020-03-29 15:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0033_auto_20191111_1851'),
]
operations = [
migrations.AddField(
model_name='event',
name='cancelled',
... | 21.736842 | 79 | 0.612591 | 44 | 413 | 5.636364 | 0.795455 | 0.104839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106312 | 0.271186 | 413 | 18 | 80 | 22.944444 | 0.717608 | 0.11138 | 0 | 0 | 1 | 0 | 0.136986 | 0.063014 | 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 |
bf7149f6c831f8c3559721f4fad362036565b66a | 439 | py | Python | output/models/nist_data/atomic/g_year/schema_instance/nistschema_sv_iv_atomic_g_year_pattern_1_xsd/nistschema_sv_iv_atomic_g_year_pattern_1.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/nist_data/atomic/g_year/schema_instance/nistschema_sv_iv_atomic_g_year_pattern_1_xsd/nistschema_sv_iv_atomic_g_year_pattern_1.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/nist_data/atomic/g_year/schema_instance/nistschema_sv_iv_atomic_g_year_pattern_1_xsd/nistschema_sv_iv_atomic_g_year_pattern_1.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from dataclasses import dataclass, field
__NAMESPACE__ = "NISTSchema-SV-IV-atomic-gYear-pattern-1-NS"
@dataclass
class NistschemaSvIvAtomicGYearPattern1:
class Meta:
name = "NISTSchema-SV-IV-atomic-gYear-pattern-1"
namespace = "NISTSchema-SV-IV-atomic-gYear-pattern-1-NS"
value: str = field(
... | 23.105263 | 64 | 0.61959 | 47 | 439 | 5.702128 | 0.574468 | 0.134328 | 0.156716 | 0.223881 | 0.451493 | 0.451493 | 0.451493 | 0.328358 | 0.328358 | 0 | 0 | 0.018293 | 0.252847 | 439 | 18 | 65 | 24.388889 | 0.79878 | 0 | 0 | 0 | 0 | 0 | 0.328018 | 0.280182 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.285714 | 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 |
bf74cbc51c3eb45ab335445c94c1c4b2da95f324 | 1,824 | py | Python | Interpreter/systems.py | charon25/EchoProgrammingLanguage | 64e459afc85816e098b4074e806a52eca225e0fa | [
"MIT"
] | null | null | null | Interpreter/systems.py | charon25/EchoProgrammingLanguage | 64e459afc85816e098b4074e806a52eca225e0fa | [
"MIT"
] | null | null | null | Interpreter/systems.py | charon25/EchoProgrammingLanguage | 64e459afc85816e098b4074e806a52eca225e0fa | [
"MIT"
] | null | null | null | from __future__ import annotations
from typing import List, Tuple
class Wall:
def __init__(self, direction, distance, id) -> None:
self.direction = direction
self.distance = distance
self.id = id
self.has_been_bounced_on = False
def __str__(self) -> str:
return f'W... | 29.419355 | 150 | 0.598136 | 226 | 1,824 | 4.610619 | 0.216814 | 0.046065 | 0.049904 | 0.038388 | 0.276392 | 0.276392 | 0.149712 | 0.072937 | 0.072937 | 0 | 0 | 0.003909 | 0.298794 | 1,824 | 61 | 151 | 29.901639 | 0.81079 | 0 | 0 | 0.227273 | 0 | 0.045455 | 0.111355 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204545 | false | 0 | 0.045455 | 0.090909 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bf7612d994c4930151cdd7e44d897ed5e8926933 | 1,118 | py | Python | src/app1.py | Marcussacapuces91/Capacite-de-stockage-eolien | 4559c0cb4c717a42626fca8f4ef19c079aa74b0d | [
"Apache-2.0"
] | null | null | null | src/app1.py | Marcussacapuces91/Capacite-de-stockage-eolien | 4559c0cb4c717a42626fca8f4ef19c079aa74b0d | [
"Apache-2.0"
] | null | null | null | src/app1.py | Marcussacapuces91/Capacite-de-stockage-eolien | 4559c0cb4c717a42626fca8f4ef19c079aa74b0d | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
import random
import math
from matplotlib import pyplot
def generateurWeibull(A = 6.0, k = 2.0):
while True:
v = random.random() * 50
w = k * (v / A)**(k-1) * math.exp(-(v / A)**k) / A
if random.random() < w:
yield(v)
def filtreAe... | 27.95 | 106 | 0.543828 | 163 | 1,118 | 3.680982 | 0.515337 | 0.03 | 0.01 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0.284436 | 1,118 | 40 | 107 | 27.95 | 0.6875 | 0.36136 | 0 | 0 | 1 | 0 | 0.097004 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.15 | 0 | 0.4 | 0.05 | 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 |
bf763ef152b29c2e516aa1321f0a77d91d31be37 | 380 | py | Python | backend/imagineer_django/week3/blog/migrations/0002_article_hashtag.py | cmdlhz/study_for_ver2 | 2e5110d0ce80e70a163a132c9c9cbb0cd9f4f134 | [
"MIT"
] | null | null | null | backend/imagineer_django/week3/blog/migrations/0002_article_hashtag.py | cmdlhz/study_for_ver2 | 2e5110d0ce80e70a163a132c9c9cbb0cd9f4f134 | [
"MIT"
] | null | null | null | backend/imagineer_django/week3/blog/migrations/0002_article_hashtag.py | cmdlhz/study_for_ver2 | 2e5110d0ce80e70a163a132c9c9cbb0cd9f4f134 | [
"MIT"
] | null | null | null | # Generated by Django 2.2 on 2019-04-27 15:04
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='article',
name='hashtag',
field=... | 20 | 60 | 0.586842 | 39 | 380 | 5.666667 | 0.74359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066915 | 0.292105 | 380 | 18 | 61 | 21.111111 | 0.754647 | 0.113158 | 0 | 0 | 1 | 0 | 0.125373 | 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 |
bf765a814cc79225bb9f941135b7c8ce184584b7 | 664 | py | Python | tests/mpi/procs_without_points.py | jbschroder/pymgrit | 5c866c633dea3ebccf812550e0303f47771c4faf | [
"MIT"
] | 6 | 2020-04-24T13:14:17.000Z | 2022-03-09T14:16:51.000Z | tests/mpi/procs_without_points.py | jbschroder/pymgrit | 5c866c633dea3ebccf812550e0303f47771c4faf | [
"MIT"
] | 6 | 2020-03-24T09:03:05.000Z | 2021-08-02T13:31:39.000Z | tests/mpi/procs_without_points.py | jbschroder/pymgrit | 5c866c633dea3ebccf812550e0303f47771c4faf | [
"MIT"
] | 4 | 2020-06-09T21:11:19.000Z | 2021-06-27T11:34:58.000Z | """
Test for processes without points
"""
import numpy as np
from pymgrit.dahlquist.dahlquist import Dahlquist
from pymgrit.core.mgrit import Mgrit
def main():
t_interval = np.linspace(0, 5, 17)
dahlquist_0 = Dahlquist(t_start=0, t_stop=5, nt=129)
dahlquist_1 = Dahlquist(t_interval=dahlquist_0.t[::16])
... | 28.869565 | 102 | 0.71988 | 100 | 664 | 4.49 | 0.39 | 0.100223 | 0.160356 | 0.240535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054867 | 0.149096 | 664 | 22 | 103 | 30.181818 | 0.739823 | 0.049699 | 0 | 0 | 0 | 0 | 0.012841 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.214286 | 0 | 0.285714 | 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 |
bf7799268ff6a873a0c630b83631e858b279a4e3 | 203 | py | Python | src/polls/greet.py | Prince-linux/python-learning | 75335ed497081b557400a05320b52b8889c3e1f4 | [
"MIT"
] | 1 | 2015-08-27T13:03:27.000Z | 2015-08-27T13:03:27.000Z | src/polls/greet.py | Prince-linux/python-learning | 75335ed497081b557400a05320b52b8889c3e1f4 | [
"MIT"
] | 22 | 2015-08-23T18:17:30.000Z | 2015-09-16T13:38:36.000Z | src/polls/greet.py | Prince-linux/python-learning | 75335ed497081b557400a05320b52b8889c3e1f4 | [
"MIT"
] | null | null | null | # A simple use of user defined functions in python
def greet_user(name):
print(f"Hi {name}!")
print("Welcome Aboard!")
print("Start")
greet_user("Kwadwo")
greet_user("Sammy")
print("finish")
| 15.615385 | 50 | 0.684729 | 30 | 203 | 4.533333 | 0.7 | 0.198529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157635 | 203 | 12 | 51 | 16.916667 | 0.795322 | 0.236453 | 0 | 0 | 0 | 0 | 0.30719 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.142857 | 0.571429 | 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 | 0 | 1 | 0 | 1 |
bf7ff127182f25fd195c29c7daee5fa07a198fd3 | 708 | py | Python | app/database/models.py | ohandyya/python-rest-service | 471f39f6b47feff845e868064d79c5e20a3208c3 | [
"MIT"
] | 1 | 2021-05-10T15:07:26.000Z | 2021-05-10T15:07:26.000Z | app/database/models.py | ohandyya/python-rest-service | 471f39f6b47feff845e868064d79c5e20a3208c3 | [
"MIT"
] | null | null | null | app/database/models.py | ohandyya/python-rest-service | 471f39f6b47feff845e868064d79c5e20a3208c3 | [
"MIT"
] | null | null | null | from sqlalchemy import Column, Integer, String, Float
from database.db import Base
class Activity(Base):
__tablename__ = "activity"
id = Column("id", type_=Integer, primary_key=True, index=True)
name = Column("name", type_=String(64), unique=True, index=True)
male_players = Column("male_players", ty... | 32.181818 | 68 | 0.714689 | 88 | 708 | 5.488636 | 0.329545 | 0.093168 | 0.080745 | 0.057971 | 0.308489 | 0.308489 | 0.308489 | 0.308489 | 0.182195 | 0.182195 | 0 | 0.008333 | 0.152542 | 708 | 21 | 69 | 33.714286 | 0.796667 | 0 | 0 | 0.142857 | 0 | 0 | 0.117232 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
bf8783694375d039c4fcea63c5105b68f441504b | 1,666 | py | Python | rlchemy/lib/envs/vec/dummy.py | Ending2015a/rlchemy | 42b1ed3d5654dd28cffd99de0db62584356228d4 | [
"MIT"
] | null | null | null | rlchemy/lib/envs/vec/dummy.py | Ending2015a/rlchemy | 42b1ed3d5654dd28cffd99de0db62584356228d4 | [
"MIT"
] | null | null | null | rlchemy/lib/envs/vec/dummy.py | Ending2015a/rlchemy | 42b1ed3d5654dd28cffd99de0db62584356228d4 | [
"MIT"
] | null | null | null | # --- built in ---
from typing import (
Any,
Callable,
List
)
# --- 3rd party ---
import gym
# --- my module ---
from rlchemy.lib.envs.vec import base as vec_base
__all__ = [
'DummyVecEnv',
'VecEnv'
]
class EnvWorker(vec_base.BaseEnvWorker):
def __init__(self, env_fn: Callable, auto_reset... | 23.464789 | 62 | 0.614646 | 224 | 1,666 | 4.339286 | 0.303571 | 0.079218 | 0.033951 | 0.028807 | 0.234568 | 0.234568 | 0 | 0 | 0 | 0 | 0 | 0.000791 | 0.240696 | 1,666 | 71 | 63 | 23.464789 | 0.767589 | 0.031212 | 0 | 0.218182 | 0 | 0 | 0.026606 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.218182 | false | 0.018182 | 0.054545 | 0.090909 | 0.436364 | 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 |
bf880738403f9a88870d7edc02e1c71690e546f2 | 390 | py | Python | test.py | zzj-dyj/classification-of-literati-painting-sentiment | de79e46630c9713dcb0b4eb2d7e4d631fee320bf | [
"MIT"
] | null | null | null | test.py | zzj-dyj/classification-of-literati-painting-sentiment | de79e46630c9713dcb0b4eb2d7e4d631fee320bf | [
"MIT"
] | null | null | null | test.py | zzj-dyj/classification-of-literati-painting-sentiment | de79e46630c9713dcb0b4eb2d7e4d631fee320bf | [
"MIT"
] | null | null | null | #--------------------------------------------#
# 该部分代码只用于看网络结构,并非测试代码
#--------------------------------------------#
from nets.mobilenet import MobileNet
from nets.resnet50 import ResNet50
from nets.vgg16 import VGG16
if __name__ == "__main__":
model = MobileNet([224,224,3], classes=1000)
model.summary()
... | 27.857143 | 48 | 0.546154 | 40 | 390 | 5.125 | 0.6 | 0.117073 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056548 | 0.138462 | 390 | 13 | 49 | 30 | 0.553571 | 0.284615 | 0 | 0 | 0 | 0 | 0.029197 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
bf896f63a162e40e0658601199fbad28ceb4b3f9 | 4,552 | py | Python | countmiRNAtargets.py | TaliaferroLab/AnalysisScripts | 3df37d2f8fca9bc402afe5ea870c42200fca1ed3 | [
"MIT"
] | null | null | null | countmiRNAtargets.py | TaliaferroLab/AnalysisScripts | 3df37d2f8fca9bc402afe5ea870c42200fca1ed3 | [
"MIT"
] | null | null | null | countmiRNAtargets.py | TaliaferroLab/AnalysisScripts | 3df37d2f8fca9bc402afe5ea870c42200fca1ed3 | [
"MIT"
] | 1 | 2021-10-30T07:37:19.000Z | 2021-10-30T07:37:19.000Z | #Designed to find how many sites there in are in a list of genes for a particular miRNA. Takes as input a SummaryCount table from TargetScan, a list of genes, and a particular miRNA seed sequence you want to search. Outputs to file.
#Usage: python countmiRNAseqtargets.py Targetscanfile.txt <list of genes> <list of m... | 48.425532 | 395 | 0.679482 | 598 | 4,552 | 4.881271 | 0.182274 | 0.043165 | 0.052758 | 0.043851 | 0.378554 | 0.247345 | 0.179856 | 0.161357 | 0.130182 | 0.130182 | 0 | 0.037662 | 0.218366 | 4,552 | 93 | 396 | 48.946237 | 0.782743 | 0.075791 | 0 | 0.060606 | 0 | 0 | 0.02625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.015152 | null | null | 0.015152 | 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 |
bf8cabb73bdb2bcc413b45d2204047821a6a5107 | 892 | py | Python | api/organisations/migrations/0007_auto_20200505_1542.py | django-doctor/lite-api | 1ba278ba22ebcbb977dd7c31dd3701151cd036bf | [
"MIT"
] | 3 | 2019-05-15T09:30:39.000Z | 2020-04-22T16:14:23.000Z | api/organisations/migrations/0007_auto_20200505_1542.py | django-doctor/lite-api | 1ba278ba22ebcbb977dd7c31dd3701151cd036bf | [
"MIT"
] | 85 | 2019-04-24T10:39:35.000Z | 2022-03-21T14:52:12.000Z | api/organisations/migrations/0007_auto_20200505_1542.py | django-doctor/lite-api | 1ba278ba22ebcbb977dd7c31dd3701151cd036bf | [
"MIT"
] | 1 | 2021-01-17T11:12:19.000Z | 2021-01-17T11:12:19.000Z | # Generated by Django 2.2.11 on 2020-05-05 15:42
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
("organisations", "0006_auto_20200501_1129"),
]
operations = [
migrations.AddField(
model_name="... | 27.875 | 106 | 0.558296 | 86 | 892 | 5.674419 | 0.593023 | 0.04918 | 0.057377 | 0.090164 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056478 | 0.325112 | 892 | 31 | 107 | 28.774194 | 0.754153 | 0.05157 | 0 | 0.24 | 1 | 0 | 0.180095 | 0.027251 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.08 | 0 | 0.2 | 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 |
bf8eabef650557a99109f3604409995fcae1c236 | 1,095 | py | Python | structural/proxy/udemy-1.py | rafaelcassau/design-patterns | 355e2c00cb4a4d39866ba980e42d2c5818281ebc | [
"MIT"
] | 13 | 2018-01-22T15:33:22.000Z | 2021-03-11T15:20:23.000Z | structural/proxy/udemy-1.py | rafaelcassau/design-patterns | 355e2c00cb4a4d39866ba980e42d2c5818281ebc | [
"MIT"
] | null | null | null | structural/proxy/udemy-1.py | rafaelcassau/design-patterns | 355e2c00cb4a4d39866ba980e42d2c5818281ebc | [
"MIT"
] | 2 | 2019-02-16T18:52:39.000Z | 2019-04-30T11:44:43.000Z | """
A proxy provides a surrogate or place holder to provide
access to an object.
Ex1:
Use an extra level of indirection to support distributed,
controlled, or conditional access.
"""
class SubjectInterface:
"""
Define the common interface for RealSubject and Proxy so that a
Proxy can be used anywh... | 24.886364 | 79 | 0.700457 | 138 | 1,095 | 5.478261 | 0.449275 | 0.116402 | 0.055556 | 0.050265 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001175 | 0.222831 | 1,095 | 44 | 80 | 24.886364 | 0.887192 | 0.421918 | 0 | 0.1875 | 0 | 0 | 0.181501 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.4375 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bf92c5b0a4d62b49c5c21403b4db07c9e83642cc | 1,575 | py | Python | csrv/model/cards/runner/card01002.py | mrroach/CentralServer | e377c65d8f3adf5a2d3273acd4f459be697aea56 | [
"Apache-2.0"
] | null | null | null | csrv/model/cards/runner/card01002.py | mrroach/CentralServer | e377c65d8f3adf5a2d3273acd4f459be697aea56 | [
"Apache-2.0"
] | null | null | null | csrv/model/cards/runner/card01002.py | mrroach/CentralServer | e377c65d8f3adf5a2d3273acd4f459be697aea56 | [
"Apache-2.0"
] | 1 | 2020-09-20T11:26:20.000Z | 2020-09-20T11:26:20.000Z | from csrv.model import actions
from csrv.model import cost
from csrv.model import errors
from csrv.model import parameters
from csrv.model.cards import card_info
from csrv.model.cards import event
class Card01002Action(actions.PlayEventAction):
REQUEST_CLASS = parameters.HeapCardsRequest
def is_usable(self):
... | 30.288462 | 80 | 0.712381 | 215 | 1,575 | 5.111628 | 0.381395 | 0.043676 | 0.070974 | 0.069154 | 0.178344 | 0.11465 | 0 | 0 | 0 | 0 | 0 | 0.023981 | 0.205714 | 1,575 | 51 | 81 | 30.882353 | 0.854516 | 0 | 0 | 0.142857 | 0 | 0 | 0.09784 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0.02381 | 0.52381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
bf94633dbb8acee9300ae9899502f6673807558d | 814 | py | Python | amadeus/reference_data/locations/hotels/_by_geocode.py | siddydutta/amadeus-python | 7e8b399e22c9ff4c3e4557843b52ea14844f135a | [
"MIT"
] | null | null | null | amadeus/reference_data/locations/hotels/_by_geocode.py | siddydutta/amadeus-python | 7e8b399e22c9ff4c3e4557843b52ea14844f135a | [
"MIT"
] | null | null | null | amadeus/reference_data/locations/hotels/_by_geocode.py | siddydutta/amadeus-python | 7e8b399e22c9ff4c3e4557843b52ea14844f135a | [
"MIT"
] | null | null | null | from amadeus.client.decorator import Decorator
class ByGeocode(Decorator, object):
def get(self, **params):
'''
Searches for hotel using a geocode.
.. code-block:: python
amadeus.reference_data.locations.hotels.by_geocode.get(
longitude=2.160873,
... | 30.148148 | 76 | 0.613022 | 88 | 814 | 5.647727 | 0.602273 | 0.052314 | 0.088531 | 0.112676 | 0.325956 | 0.325956 | 0.177062 | 0.177062 | 0 | 0 | 0 | 0.053913 | 0.293612 | 814 | 26 | 77 | 31.307692 | 0.810435 | 0.583538 | 0 | 0 | 0 | 0 | 0.202643 | 0.202643 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
bf972cc9edb13e291ef7966b54bdbbe54f93573a | 464 | py | Python | accounts/forms.py | dsfx3d/rbac-auth-service | 0160683816b76566aaea3a25304ff87ad6ff0812 | [
"MIT"
] | null | null | null | accounts/forms.py | dsfx3d/rbac-auth-service | 0160683816b76566aaea3a25304ff87ad6ff0812 | [
"MIT"
] | null | null | null | accounts/forms.py | dsfx3d/rbac-auth-service | 0160683816b76566aaea3a25304ff87ad6ff0812 | [
"MIT"
] | null | null | null | from django.contrib.auth import get_user_model
from django.contrib.auth.forms import (
UserCreationForm as BaseUserCreationForm,
UserChangeForm as BaseUserChangeForm
)
User = get_user_model()
class UserCreationForm(BaseUserCreationForm):
class Meta:
model = User
fields = ('email', 'user... | 20.173913 | 65 | 0.700431 | 45 | 464 | 7.133333 | 0.466667 | 0.062305 | 0.105919 | 0.130841 | 0.180685 | 0.180685 | 0 | 0 | 0 | 0 | 0 | 0.00545 | 0.209052 | 464 | 22 | 66 | 21.090909 | 0.86921 | 0 | 0 | 0.285714 | 0 | 0 | 0.077586 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.071429 | 0.142857 | 0 | 0.428571 | 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 |
bf980c30846bffaaa4e4d2f2099712842fd5249f | 13,021 | py | Python | scale/ingest/strike/monitors/dir_monitor.py | kaydoh/scale | 1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee | [
"Apache-2.0"
] | 121 | 2015-11-18T18:15:33.000Z | 2022-03-10T01:55:00.000Z | scale/ingest/strike/monitors/dir_monitor.py | kaydoh/scale | 1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee | [
"Apache-2.0"
] | 1,415 | 2015-12-23T23:36:04.000Z | 2022-01-07T14:10:09.000Z | scale/ingest/strike/monitors/dir_monitor.py | kaydoh/scale | 1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee | [
"Apache-2.0"
] | 66 | 2015-12-03T20:38:56.000Z | 2020-07-27T15:28:11.000Z | """Defines a monitor that watches a file system directory for incoming files"""
from __future__ import unicode_literals
import logging
import math
import os
import time
from datetime import datetime
from django.utils.timezone import now
from ingest.models import Ingest
from ingest.strike.monitors.exceptions import I... | 41.733974 | 118 | 0.623224 | 1,586 | 13,021 | 4.924968 | 0.180958 | 0.053258 | 0.019972 | 0.016131 | 0.334656 | 0.265651 | 0.17693 | 0.134554 | 0.101652 | 0.09397 | 0 | 0.001421 | 0.297519 | 13,021 | 312 | 119 | 41.733974 | 0.85252 | 0.077644 | 0 | 0.172775 | 0 | 0 | 0.123656 | 0.002333 | 0 | 0 | 0 | 0.003205 | 0 | 0 | null | null | 0.020942 | 0.068063 | 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 |
bf9f41b445908b58029b684670e3a19fdfa50e2f | 381 | py | Python | avis/migrations/0002_restaurant_slug.py | amin-da71/Benbb96 | 0c9e37425d0665e403ba6fecf0c4b17669c29ada | [
"MIT"
] | null | null | null | avis/migrations/0002_restaurant_slug.py | amin-da71/Benbb96 | 0c9e37425d0665e403ba6fecf0c4b17669c29ada | [
"MIT"
] | 13 | 2021-02-13T20:15:18.000Z | 2022-03-11T23:57:07.000Z | avis/migrations/0002_restaurant_slug.py | amin-da71/Benbb96 | 0c9e37425d0665e403ba6fecf0c4b17669c29ada | [
"MIT"
] | null | null | null | # Generated by Django 2.1b1 on 2018-08-06 21:00
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('avis', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='restaurant',
name='slug',
fiel... | 20.052632 | 59 | 0.587927 | 40 | 381 | 5.55 | 0.825 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070632 | 0.293963 | 381 | 18 | 60 | 21.166667 | 0.754647 | 0.11811 | 0 | 0 | 1 | 0 | 0.08982 | 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 |
bfa0f272dfba60c6724295b04aaf5066ee55ea91 | 4,379 | py | Python | givenergy_modbus/cli.py | zaheerm/givenergy-modbus | db0cf5c6580737f157e1d0fdea4e471477eb04bd | [
"Apache-2.0"
] | null | null | null | givenergy_modbus/cli.py | zaheerm/givenergy-modbus | db0cf5c6580737f157e1d0fdea4e471477eb04bd | [
"Apache-2.0"
] | null | null | null | givenergy_modbus/cli.py | zaheerm/givenergy-modbus | db0cf5c6580737f157e1d0fdea4e471477eb04bd | [
"Apache-2.0"
] | null | null | null | """Console script for interacting with GivEnergy inverters."""
import datetime
import logging
import click
from givenergy_modbus.client import GivEnergyClient
from givenergy_modbus.model.register_cache import RegisterCache
from givenergy_modbus.util import InterceptHandler
_logger = logging.getLogger(__package__)
... | 30.622378 | 115 | 0.73921 | 586 | 4,379 | 5.259386 | 0.228669 | 0.025308 | 0.050616 | 0.094095 | 0.501622 | 0.471447 | 0.382544 | 0.333874 | 0.312459 | 0.312459 | 0 | 0.009566 | 0.116693 | 4,379 | 142 | 116 | 30.838028 | 0.787229 | 0.102306 | 0 | 0.247525 | 0 | 0 | 0.071813 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.138614 | false | 0.118812 | 0.059406 | 0 | 0.217822 | 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 |
bfac3cc23146642a00bc3dacceda49b6bb3e29e3 | 3,697 | py | Python | sensorgridapi/core/settings/common.py | Verdinjoshua26/SensorGridAPI | 1b7c837c557df75f4e9d51bd2552550603c49053 | [
"MIT"
] | 8 | 2018-01-28T00:21:58.000Z | 2021-06-18T17:06:29.000Z | sensorgridapi/core/settings/common.py | Verdinjoshua26/SensorGridAPI | 1b7c837c557df75f4e9d51bd2552550603c49053 | [
"MIT"
] | 4 | 2020-06-05T17:13:51.000Z | 2021-06-10T20:27:59.000Z | sensorgridapi/core/settings/common.py | Verdinjoshua26/SensorGridAPI | 1b7c837c557df75f4e9d51bd2552550603c49053 | [
"MIT"
] | 4 | 2018-03-16T16:22:19.000Z | 2021-06-18T17:07:31.000Z | """
Django settings for sensorgridapi project.
Generated by 'django-admin startproject' using Django 1.11.9.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
imp... | 28.221374 | 93 | 0.690289 | 390 | 3,697 | 6.392308 | 0.425641 | 0.083434 | 0.054553 | 0.060168 | 0.173285 | 0.173285 | 0.11071 | 0.098676 | 0.049338 | 0 | 0 | 0.011118 | 0.172843 | 3,697 | 130 | 94 | 28.438462 | 0.80412 | 0.428456 | 0 | 0.032787 | 1 | 0 | 0.525097 | 0.376448 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.016393 | 0.032787 | 0 | 0.032787 | 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 |
bfac45f7c64d28fbc4b1ea819bc919c403e8d9a5 | 600 | py | Python | virtual/migrations/0003_alter_domain_name.py | ensarman/mailapi | 3da9f34409d30c431a3235c32074abf60bf253c9 | [
"MIT"
] | null | null | null | virtual/migrations/0003_alter_domain_name.py | ensarman/mailapi | 3da9f34409d30c431a3235c32074abf60bf253c9 | [
"MIT"
] | null | null | null | virtual/migrations/0003_alter_domain_name.py | ensarman/mailapi | 3da9f34409d30c431a3235c32074abf60bf253c9 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.2 on 2021-05-08 21:00
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('virtual', '0002_auto_20210106_0100'),
]
operations = [
migrations.AlterField(
model_name='domain',... | 30 | 236 | 0.61 | 78 | 600 | 4.628205 | 0.653846 | 0.024931 | 0.033241 | 0.027701 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09375 | 0.2 | 600 | 19 | 237 | 31.578947 | 0.658333 | 0.075 | 0 | 0 | 1 | 0.076923 | 0.251356 | 0.175407 | 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 |
bfaf2bef7ff217aa94876cfdaf58415a98dd37c8 | 8,033 | py | Python | Classes/Appointment.py | nickmarton/Paxos-Distributed-Calendar | 45316c59ee7c300fdd33cdb9f149d19e1ec9c199 | [
"MIT"
] | 3 | 2015-11-08T23:26:57.000Z | 2018-11-06T19:37:48.000Z | Classes/Appointment.py | nickmarton/Paxos-Distributed-Calendar | 45316c59ee7c300fdd33cdb9f149d19e1ec9c199 | [
"MIT"
] | null | null | null | Classes/Appointment.py | nickmarton/Paxos-Distributed-Calendar | 45316c59ee7c300fdd33cdb9f149d19e1ec9c199 | [
"MIT"
] | null | null | null | """
Appointment class for Distributed Calendar implemented with Paxos Algorithm.
"""
from datetime import time
class Appointment(object):
"""
Appointment class.
name: name of the appointment enforced as a string.
day: day of the appointment enforced as a string
... | 36.022422 | 79 | 0.592929 | 973 | 8,033 | 4.739979 | 0.215827 | 0.01301 | 0.010408 | 0.01301 | 0.21791 | 0.137901 | 0.065265 | 0.050954 | 0.02732 | 0.02732 | 0 | 0.0202 | 0.303623 | 8,033 | 222 | 80 | 36.184685 | 0.804255 | 0.103573 | 0 | 0.110236 | 0 | 0 | 0.146899 | 0.005422 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.031496 | null | null | 0.007874 | 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 |
bfb0c14e9294b0fa61c9ca1d9380f52ee79d596d | 1,885 | py | Python | profiling.py | argos-uach/eigen-demo | f2caea9e324c25d5b4e9ad60494053d8dec90f1b | [
"MIT"
] | null | null | null | profiling.py | argos-uach/eigen-demo | f2caea9e324c25d5b4e9ad60494053d8dec90f1b | [
"MIT"
] | null | null | null | profiling.py | argos-uach/eigen-demo | f2caea9e324c25d5b4e9ad60494053d8dec90f1b | [
"MIT"
] | null | null | null | #%%
import demo
import numpy as np
import pickle
import os
os.environ['OPENBLAS_NUM_THREADS'] = '1'
diccionarioNumpy={}
diccionarioEigen={}
for i in [10, 20, 50, 100, 200, 500, 1000, 2000, 5000]:
A=np.random.randn(i, i).astype('float32')
B=np.random.randn(i, i).astype('float32')
time_obj_Numpy = %timeit ... | 27.720588 | 94 | 0.690186 | 301 | 1,885 | 4.202658 | 0.368771 | 0.031621 | 0.023715 | 0.022134 | 0.402372 | 0.288538 | 0.150198 | 0.105929 | 0.105929 | 0 | 0 | 0.0325 | 0.151194 | 1,885 | 67 | 95 | 28.134328 | 0.758125 | 0.019629 | 0 | 0.16 | 0 | 0 | 0.125407 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.12 | 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 |
bfb23c18abf7faeb05d2d9f13ec1f50d1d459657 | 2,574 | py | Python | Bin/RepoTools/Scripts/GithubTools/github_preparation.py | stinvi/dava.engine | 2b396ca49cdf10cdc98ad8a9ffcf7768a05e285e | [
"BSD-3-Clause"
] | 26 | 2018-09-03T08:48:22.000Z | 2022-02-14T05:14:50.000Z | Bin/RepoTools/Scripts/GithubTools/github_preparation.py | ANHELL-blitz/dava.engine | ed83624326f000866e29166c7f4cccfed1bb41d4 | [
"BSD-3-Clause"
] | null | null | null | Bin/RepoTools/Scripts/GithubTools/github_preparation.py | ANHELL-blitz/dava.engine | ed83624326f000866e29166c7f4cccfed1bb41d4 | [
"BSD-3-Clause"
] | 45 | 2018-05-11T06:47:17.000Z | 2022-02-03T11:30:55.000Z | #!/usr/bin/env python
import sys
import os
import argparse
import subprocess
class Preparation:
system_list = set(['.gitattributes', '.gitignore', '.gitmodules'])
white_list = set()
clear_list = set(['Bin/RepoTools/Scripts/GithubTools/white_list.txt', 'Bin/RepoTools/Scripts/GithubTools/github_preparation.... | 35.75 | 153 | 0.587413 | 316 | 2,574 | 4.620253 | 0.316456 | 0.055479 | 0.057534 | 0.061644 | 0.25 | 0.223973 | 0.192466 | 0.089726 | 0.065753 | 0.065753 | 0 | 0.002691 | 0.278166 | 2,574 | 72 | 154 | 35.75 | 0.7831 | 0.00777 | 0 | 0.196429 | 0 | 0.017857 | 0.200078 | 0.059514 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.017857 | 0.071429 | null | null | 0.035714 | 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 |
bfb2a395c539d37b386efab4359caa3268677008 | 942 | py | Python | book_center/book_center/bc_contact/models.py | geodimitrov/Python-Web-Framework-SoftUni | 06b7e11aee0024a564d1b266d5ed6271351ac116 | [
"MIT"
] | null | null | null | book_center/book_center/bc_contact/models.py | geodimitrov/Python-Web-Framework-SoftUni | 06b7e11aee0024a564d1b266d5ed6271351ac116 | [
"MIT"
] | null | null | null | book_center/book_center/bc_contact/models.py | geodimitrov/Python-Web-Framework-SoftUni | 06b7e11aee0024a564d1b266d5ed6271351ac116 | [
"MIT"
] | null | null | null | from book_center.utils.validators import validate_alphabet_characters_english
from django.core.validators import MinLengthValidator
from django.db import models
class BookCenterContactFormModel(models.Model):
subject = models.CharField(
max_length=50,
validators=(
validate_alphabet_cha... | 21.906977 | 77 | 0.646497 | 87 | 942 | 6.758621 | 0.528736 | 0.108844 | 0.176871 | 0.22449 | 0.318027 | 0.318027 | 0.183673 | 0.183673 | 0 | 0 | 0 | 0.014859 | 0.285563 | 942 | 42 | 78 | 22.428571 | 0.858841 | 0 | 0 | 0.242424 | 0 | 0 | 0.012739 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.121212 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bfbf8e537dfe46655c3abdb626dafa6711f09e9b | 1,386 | py | Python | fringes/ui/plugin_dialog.py | drs251/fringes | a5156fc7c31ff66929f986aa70b41e01c12eca07 | [
"MIT"
] | 2 | 2018-11-15T13:34:14.000Z | 2020-01-22T21:12:14.000Z | fringes/ui/plugin_dialog.py | drs251/fringes | a5156fc7c31ff66929f986aa70b41e01c12eca07 | [
"MIT"
] | null | null | null | fringes/ui/plugin_dialog.py | drs251/fringes | a5156fc7c31ff66929f986aa70b41e01c12eca07 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'plugin_dialog.ui'
#
# Created by: PyQt5 UI code generator 5.6
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_pluginDialog(object):
def setupUi(self, pluginDialog):
p... | 39.6 | 73 | 0.736652 | 133 | 1,386 | 7.646617 | 0.488722 | 0.089479 | 0.053097 | 0.060964 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009557 | 0.169553 | 1,386 | 34 | 74 | 40.764706 | 0.874023 | 0.132756 | 0 | 0 | 1 | 0 | 0.051089 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.045455 | 0 | 0.181818 | 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 |
bfc19415fb3cdd46d9c063451da4f2d07fd3a47a | 17,624 | py | Python | Lib/re.py | ianloic/unladen-swallow | 28148f4ddbb3d519042de1f9fc9f1356fdd31e31 | [
"PSF-2.0"
] | 5 | 2020-06-30T05:06:40.000Z | 2021-05-24T08:38:33.000Z | Lib/re.py | ianloic/unladen-swallow | 28148f4ddbb3d519042de1f9fc9f1356fdd31e31 | [
"PSF-2.0"
] | null | null | null | Lib/re.py | ianloic/unladen-swallow | 28148f4ddbb3d519042de1f9fc9f1356fdd31e31 | [
"PSF-2.0"
] | 2 | 2015-10-01T18:28:20.000Z | 2020-09-09T16:25:27.000Z | #
# Secret Labs' Regular Expression Engine
#
# re-compatible interface for the sre matching engine
#
# Copyright (c) 1998-2001 by Secret Labs AB. All rights reserved.
#
# This version of the SRE library can be redistributed under CNRI's
# Python 1.6 license. For any other use, please contact Secret Labs
# AB (info@py... | 36.870293 | 85 | 0.662789 | 2,413 | 17,624 | 4.740157 | 0.195607 | 0.009617 | 0.015737 | 0.01189 | 0.241214 | 0.1975 | 0.153873 | 0.137262 | 0.110159 | 0.093373 | 0 | 0.007816 | 0.237744 | 17,624 | 477 | 86 | 36.947589 | 0.843606 | 0.140831 | 0 | 0.101695 | 0 | 0 | 0.08345 | 0.007343 | 0 | 0 | 0.001166 | 0 | 0 | 0 | null | null | 0.004237 | 0.038136 | null | null | 0.016949 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bfc47eefc0eeb2ab109e2d831ae9614c910c9f99 | 2,304 | py | Python | observations/r/us_state_abbrev.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 199 | 2017-07-24T01:34:27.000Z | 2022-01-29T00:50:55.000Z | observations/r/us_state_abbrev.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 46 | 2017-09-05T19:27:20.000Z | 2019-01-07T09:47:26.000Z | observations/r/us_state_abbrev.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 45 | 2017-07-26T00:10:44.000Z | 2022-03-16T20:44:59.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import csv
import numpy as np
import os
import sys
from observations.util import maybe_download_and_extract
def us_state_abbrev(path):
"""Standard abbreviations for states of the Un... | 31.561644 | 77 | 0.71658 | 313 | 2,304 | 5.140575 | 0.5623 | 0.017402 | 0.032318 | 0.029832 | 0.059664 | 0.032318 | 0 | 0 | 0 | 0 | 0 | 0.010405 | 0.207465 | 2,304 | 72 | 78 | 32 | 0.870756 | 0.641493 | 0 | 0 | 0 | 0 | 0.126829 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.409091 | 0 | 0.5 | 0.045455 | 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 |
bfca765ccf13a49355a709d8c11cdb2199c40cbe | 1,976 | py | Python | analyzers/gzip.py | jmccrae/zrtifi | b7e62479b5217754e9dc457d6d6d776de302c10a | [
"Apache-2.0"
] | null | null | null | analyzers/gzip.py | jmccrae/zrtifi | b7e62479b5217754e9dc457d6d6d776de302c10a | [
"Apache-2.0"
] | null | null | null | analyzers/gzip.py | jmccrae/zrtifi | b7e62479b5217754e9dc457d6d6d776de302c10a | [
"Apache-2.0"
] | null | null | null | import gzip
import sys
from subprocess import Popen, PIPE
from os.path import exists
from uuid import uuid4
step_id = str(uuid4())
def format_err(lines):
for line in lines:
yield line.strip()
ZRTIFI_ONTOLOGY = "http://www.zrtifi.org/ontology#"
if __name__ == "__main__":
file = sys.argv[1]
if exi... | 49.4 | 140 | 0.573887 | 252 | 1,976 | 4.27381 | 0.305556 | 0.077994 | 0.075209 | 0.103993 | 0.532033 | 0.465181 | 0.427112 | 0.400186 | 0.27948 | 0.222841 | 0 | 0.009888 | 0.232287 | 1,976 | 39 | 141 | 50.666667 | 0.700066 | 0 | 0 | 0.147059 | 0 | 0.205882 | 0.368421 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0 | 0.147059 | 0 | 0.176471 | 0.382353 | 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 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bfcac481a0f686d92b70e7f661128a31e9e3c277 | 5,693 | py | Python | Source/Squiddy/src/tema-android-adapter-3.2-sma/AndroidAdapter/taintlogger.py | samini/gort-public | fed7d1d884753f3e3b412a9afb476ae1e1f563c4 | [
"Apache-2.0"
] | 1 | 2015-01-28T16:23:44.000Z | 2015-01-28T16:23:44.000Z | Source/Squiddy/src/tema-android-adapter-3.2-sma/AndroidAdapter/taintlogger.py | samini/gort-public | fed7d1d884753f3e3b412a9afb476ae1e1f563c4 | [
"Apache-2.0"
] | 1 | 2017-04-24T12:10:29.000Z | 2017-04-24T12:10:29.000Z | Source/Squiddy/src/tema-android-adapter-3.2-sma/AndroidAdapter/taintlogger.py | samini/gort-public | fed7d1d884753f3e3b412a9afb476ae1e1f563c4 | [
"Apache-2.0"
] | 1 | 2015-01-28T16:41:47.000Z | 2015-01-28T16:41:47.000Z | #
# Copyright 2014 Shahriyar Amini
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 30.281915 | 141 | 0.663271 | 724 | 5,693 | 5.095304 | 0.337017 | 0.047709 | 0.030903 | 0.014638 | 0.079696 | 0.074275 | 0.060721 | 0.060721 | 0.060721 | 0.060721 | 0 | 0.015111 | 0.209556 | 5,693 | 187 | 142 | 30.44385 | 0.804667 | 0.234674 | 0 | 0.168067 | 0 | 0.02521 | 0.116258 | 0.048402 | 0 | 0 | 0 | 0.005348 | 0 | 0 | null | null | 0 | 0.05042 | null | null | 0.033613 | 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 |
bfcdbdda5c055ef00cf5abf6879ed05eac8f775b | 232 | py | Python | NEST/brunel_alpha500_nest.py | OpenSourceBrain/Brunel2000 | 945d20b4a7abc43737fabd5885c78727d6932e7e | [
"MIT"
] | 4 | 2020-06-06T14:24:14.000Z | 2022-02-20T12:27:20.000Z | NEST/brunel_alpha500_nest.py | OpenSourceBrain/Brunel2000 | 945d20b4a7abc43737fabd5885c78727d6932e7e | [
"MIT"
] | 1 | 2015-11-12T19:02:31.000Z | 2015-11-12T19:02:31.000Z | NEST/brunel_alpha500_nest.py | OpenSourceBrain/Brunel2000 | 945d20b4a7abc43737fabd5885c78727d6932e7e | [
"MIT"
] | 2 | 2016-04-01T07:16:57.000Z | 2018-11-21T09:31:06.000Z | from brunel_alpha_nest import runBrunelNetwork
simtime = 1000
order = 100
eta = 2.0 # rel rate of external input
g = 5.0
runBrunelNetwork(g=g, eta=eta, simtime = simtime, order = order, save=True, N_rec=500) | 25.777778 | 86 | 0.672414 | 35 | 232 | 4.371429 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079545 | 0.241379 | 232 | 9 | 86 | 25.777778 | 0.789773 | 0.112069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bfd72fe854f868c72a17eb66010295c5ecdd7b30 | 1,492 | py | Python | utilities/db_util.py | slledru/python-flask-backend | 8a3687993715d70bd783dc34049fb6a559d1405f | [
"MIT"
] | null | null | null | utilities/db_util.py | slledru/python-flask-backend | 8a3687993715d70bd783dc34049fb6a559d1405f | [
"MIT"
] | null | null | null | utilities/db_util.py | slledru/python-flask-backend | 8a3687993715d70bd783dc34049fb6a559d1405f | [
"MIT"
] | null | null | null | import psycopg2
import urllib.parse as urlparse
import os
def get_database_connection():
url = urlparse.urlparse(os.environ['DATABASE_URL'])
dbname = url.path[1:]
user = url.username
password = url.password
host = url.hostname
port = url.port
con = psycopg2.connect(
dbname=... | 29.84 | 68 | 0.552279 | 154 | 1,492 | 5.292208 | 0.448052 | 0.078528 | 0.084663 | 0.092025 | 0.197546 | 0.197546 | 0.147239 | 0.147239 | 0.147239 | 0 | 0 | 0.023232 | 0.336461 | 1,492 | 49 | 69 | 30.44898 | 0.8 | 0 | 0 | 0.108696 | 0 | 0 | 0.142761 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0.086957 | 0.065217 | 0 | 0.152174 | 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 |
449e5f8101a2b498db9b539c8b4904227a7318d5 | 621 | py | Python | src/main.py | palucki/RememberIt | 1d66616d4bb1bca026dda031d876dca226ba71ad | [
"MIT"
] | null | null | null | src/main.py | palucki/RememberIt | 1d66616d4bb1bca026dda031d876dca226ba71ad | [
"MIT"
] | null | null | null | src/main.py | palucki/RememberIt | 1d66616d4bb1bca026dda031d876dca226ba71ad | [
"MIT"
] | null | null | null | # coding: utf-8
# [] for list
# () for tuple
# {} for dictionary
#standard modules
import os
#my modules
from controller import Controller
from views import MainMenuView, ShowWordView, EditWordView, NewWordView
from translator import GlosbeTranslator
from phrase import Phrase
from model import Model
dictionary = ... | 21.413793 | 71 | 0.648953 | 60 | 621 | 6.65 | 0.533333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002179 | 0.26087 | 621 | 28 | 72 | 22.178571 | 0.867102 | 0.132045 | 0 | 0 | 0 | 0 | 0.067669 | 0 | 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 |
44a3ce374c46be9a0b4631f6f3bb861e1e329f3f | 460 | py | Python | sample/migrations/0004_howitworks_count.py | personalcomputer/drf-schema-adapter | 298ce9e04653c34ff1d7077cec353ec39d660960 | [
"MIT"
] | 140 | 2017-01-03T16:01:42.000Z | 2022-02-24T05:36:40.000Z | sample/migrations/0004_howitworks_count.py | personalcomputer/drf-schema-adapter | 298ce9e04653c34ff1d7077cec353ec39d660960 | [
"MIT"
] | 60 | 2017-04-06T08:33:38.000Z | 2022-03-23T22:51:41.000Z | sample/migrations/0004_howitworks_count.py | personalcomputer/drf-schema-adapter | 298ce9e04653c34ff1d7077cec353ec39d660960 | [
"MIT"
] | 39 | 2017-02-21T01:46:02.000Z | 2022-03-23T22:25:31.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2018-04-27 11:39
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('sample', '0003_product_product_type'),
]
operations = [
migrations.AddField... | 21.904762 | 57 | 0.623913 | 49 | 460 | 5.673469 | 0.816327 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064706 | 0.26087 | 460 | 20 | 58 | 23 | 0.752941 | 0.147826 | 0 | 0 | 1 | 0 | 0.118252 | 0.064267 | 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 |
44a828e2c945132963c8a64ded016c5b24d2de60 | 1,067 | py | Python | wsgi.py | cacao-accounting/cacao-accounting-mockup | ca4da3b4e48a4796fc39a12a482d9ccc1e8e6e38 | [
"Apache-2.0"
] | 2 | 2021-08-19T01:29:49.000Z | 2021-09-11T16:21:40.000Z | wsgi.py | cacao-accounting/cacao-accounting-mockup | ca4da3b4e48a4796fc39a12a482d9ccc1e8e6e38 | [
"Apache-2.0"
] | 29 | 2020-07-14T23:59:32.000Z | 2021-11-04T07:42:31.000Z | wsgi.py | cacao-accounting/cacao-accounting | 3e6fa0080db3d44b1b3b8d93e46bd96a5a8d515b | [
"Apache-2.0"
] | 3 | 2020-07-12T00:52:18.000Z | 2021-08-18T01:09:22.000Z | # Copyright 2020 William José Moreno Reyes
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 30.485714 | 74 | 0.756326 | 158 | 1,067 | 5.031646 | 0.689873 | 0.075472 | 0.042767 | 0.055346 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013714 | 0.179944 | 1,067 | 34 | 75 | 31.382353 | 0.894857 | 0.761012 | 0 | 0 | 0 | 0 | 0.034483 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.285714 | 0 | 0.285714 | 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 |
44ad6d1347ea79dd60cf88bf9336020fd7600e99 | 533 | py | Python | lcd/interrupts/interrupt1.py | BornToDebug/homeStruction | 354e03c05cb363d8397d0e2d7afeb78a029266f9 | [
"Apache-2.0"
] | 6 | 2016-08-31T16:46:54.000Z | 2017-09-15T19:34:30.000Z | lcd/interrupts/interrupt1.py | BornToDebug/homeStruction | 354e03c05cb363d8397d0e2d7afeb78a029266f9 | [
"Apache-2.0"
] | 4 | 2016-09-02T09:18:41.000Z | 2016-09-02T09:24:08.000Z | lcd/interrupts/interrupt1.py | BornToDebug/homeStruction | 354e03c05cb363d8397d0e2d7afeb78a029266f9 | [
"Apache-2.0"
] | null | null | null | import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
GPIO.setup(23, GPIO.IN, pull_up_down=GPIO.PUD_UP)
print "Make sure you have a button connected so that when pressed"
print "it will connect GPIO port 23 (pin 16) to GND (pin 6)\n"
raw_input("Press Enter when ready\n>")
print "Waiting for falling edge on port 23"
try:
... | 28.052632 | 68 | 0.75985 | 93 | 533 | 4.290323 | 0.645161 | 0.030075 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024176 | 0.146341 | 533 | 18 | 69 | 29.611111 | 0.852747 | 0 | 0 | 0.142857 | 0 | 0 | 0.508443 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | null | null | 0.357143 | 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 |
44b08aa72cd4a8ba79526b41ee8202568590e6a8 | 15,575 | py | Python | workflows/models.py | blueicepl/django-workflows | a8d0c2d3c56644c45ede714391d51c78d0bb1660 | [
"BSD-3-Clause"
] | null | null | null | workflows/models.py | blueicepl/django-workflows | a8d0c2d3c56644c45ede714391d51c78d0bb1660 | [
"BSD-3-Clause"
] | null | null | null | workflows/models.py | blueicepl/django-workflows | a8d0c2d3c56644c45ede714391d51c78d0bb1660 | [
"BSD-3-Clause"
] | null | null | null | from django.contrib.contenttypes.fields import GenericForeignKey
from django.db import models
# django imports
from django.contrib.contenttypes.models import ContentType
from django.utils.translation import ugettext_lazy as _
# permissions imports
import permissions.utils
from permissions.models import Permission
fro... | 32.85865 | 120 | 0.65175 | 1,819 | 15,575 | 5.455745 | 0.122595 | 0.03547 | 0.014107 | 0.020153 | 0.49073 | 0.447703 | 0.425333 | 0.389964 | 0.35792 | 0.315498 | 0 | 0.00165 | 0.260738 | 15,575 | 473 | 121 | 32.928118 | 0.860257 | 0.321284 | 0 | 0.395833 | 0 | 0 | 0.071392 | 0.002652 | 0 | 0 | 0 | 0 | 0 | 1 | 0.140625 | false | 0 | 0.046875 | 0.104167 | 0.661458 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
44b17c5674baefa0c222f70d1f0152b572b38e8a | 894 | py | Python | mysite/models.py | yuedong111/web | 86107d84f0cae313d398d034dde3ce6f7fc4e4ea | [
"Unlicense"
] | null | null | null | mysite/models.py | yuedong111/web | 86107d84f0cae313d398d034dde3ce6f7fc4e4ea | [
"Unlicense"
] | 3 | 2020-02-11T23:33:00.000Z | 2021-06-10T21:05:09.000Z | mysite/models.py | yuedong111/web | 86107d84f0cae313d398d034dde3ce6f7fc4e4ea | [
"Unlicense"
] | null | null | null | from django.db import models
# Create your models here.
class Goods(models.Model):
goods_name = models.CharField(max_length=30)
goods_number = models.IntegerField()
goods_price = models.FloatField()
goods_sales = models.IntegerField('销量', default=0)
class Meta:
verbose_name_plural = "商品管... | 25.542857 | 66 | 0.713647 | 114 | 894 | 5.342105 | 0.421053 | 0.098522 | 0.118227 | 0.157635 | 0.377668 | 0.331691 | 0.331691 | 0.331691 | 0.151067 | 0 | 0 | 0.012414 | 0.189038 | 894 | 34 | 67 | 26.294118 | 0.827586 | 0.026846 | 0 | 0.181818 | 0 | 0 | 0.012673 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.045455 | 0.045455 | 0.090909 | 0.863636 | 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 |
44c2e68a6cb56d8f95adf827137723aba31384ba | 532 | py | Python | agpy/window.py | TyGillespie/ag_py | 56842f94d057cb93333846133a156e4b7131e1d2 | [
"MIT"
] | null | null | null | agpy/window.py | TyGillespie/ag_py | 56842f94d057cb93333846133a156e4b7131e1d2 | [
"MIT"
] | null | null | null | agpy/window.py | TyGillespie/ag_py | 56842f94d057cb93333846133a156e4b7131e1d2 | [
"MIT"
] | 1 | 2020-11-15T07:12:25.000Z | 2020-11-15T07:12:25.000Z | """Game Window opening/closing/handling functions."""
import pygame
from .keyboard import *
from typing import Tuple
def show_window(title: str, size: Touple[int, int] = (200, 200)):
"""Creates a game window."""
pygame.display.set_mode(size)
pygame.display.set_caption(title)
pygame.display.flip()
... | 20.461538 | 65 | 0.678571 | 70 | 532 | 5.057143 | 0.585714 | 0.110169 | 0.090395 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013793 | 0.182331 | 532 | 25 | 66 | 21.28 | 0.8 | 0.272556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
44c4ae694e8ba67ce7af649d37899e7c7426a759 | 6,711 | py | Python | utils/base_argparse.py | JanFschr/gangealing | f82c103ce4b4e97953dc3902a387aa5cf97b8b67 | [
"BSD-2-Clause"
] | 2 | 2021-12-14T06:46:23.000Z | 2021-12-18T06:18:48.000Z | utils/base_argparse.py | puhuajiang/gangealing | ac265f296c5019d213853272e3a8565e4394e9d7 | [
"BSD-2-Clause"
] | null | null | null | utils/base_argparse.py | puhuajiang/gangealing | ac265f296c5019d213853272e3a8565e4394e9d7 | [
"BSD-2-Clause"
] | null | null | null | import argparse
def base_training_argparse():
parser = argparse.ArgumentParser(description="GANgealing Training")
# Main training arguments:
parser.add_argument("--exp-name", type=str, required=True, help="Name for experiment run (used for logging)")
parser.add_argument("--ckpt", type=str, required=Tr... | 108.241935 | 257 | 0.755029 | 962 | 6,711 | 5.170478 | 0.305613 | 0.077805 | 0.146964 | 0.022919 | 0.18456 | 0.095296 | 0.045838 | 0.045838 | 0 | 0 | 0 | 0.015035 | 0.12785 | 6,711 | 61 | 258 | 110.016393 | 0.834786 | 0.033825 | 0 | 0 | 0 | 0.148936 | 0.569863 | 0.014204 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021277 | false | 0 | 0.021277 | 0 | 0.06383 | 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 |
44caa9835713287873dddc5213f76af70e52d9eb | 374 | py | Python | ariadne_relay/utils.py | glennlaughlin/ariadne-relay | ed1c5c8aa68ac160c5fddae2d010cfc8fb52528d | [
"BSD-3-Clause"
] | 18 | 2021-05-24T22:25:11.000Z | 2022-03-31T10:28:50.000Z | ariadne_relay/utils.py | glennlaughlin/ariadne-relay | ed1c5c8aa68ac160c5fddae2d010cfc8fb52528d | [
"BSD-3-Clause"
] | 15 | 2021-05-23T20:59:12.000Z | 2022-03-04T11:12:49.000Z | ariadne_relay/utils.py | glennlaughlin/ariadne-relay | ed1c5c8aa68ac160c5fddae2d010cfc8fb52528d | [
"BSD-3-Clause"
] | 5 | 2021-05-25T13:28:12.000Z | 2022-02-02T08:51:34.000Z | import asyncio
from typing import Any, Callable, Optional
def is_coroutine_callable(obj: Optional[Callable[..., Any]]) -> bool:
if obj is None:
return False
if asyncio.iscoroutinefunction(obj):
return True
if hasattr(obj, "__call__") and asyncio.iscoroutinefunction(
getattr(obj, "_... | 24.933333 | 69 | 0.665775 | 43 | 374 | 5.55814 | 0.511628 | 0.09205 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.240642 | 374 | 14 | 70 | 26.714286 | 0.841549 | 0 | 0 | 0.333333 | 0 | 0 | 0.042781 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.166667 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
44d99b154845ab09be90438e516fa92e4ccafd77 | 1,197 | py | Python | intake/tests/factories/status_update_factory.py | cforlando/intake | a5233d5c0f862f28ee265b9b4831405aabeec7e2 | [
"MIT"
] | 51 | 2016-07-20T02:26:57.000Z | 2021-07-07T14:45:06.000Z | intake/tests/factories/status_update_factory.py | enterstudio/intake | 793a8935914fdc8356321ec46e54d9ae1eeeee04 | [
"MIT"
] | 1,091 | 2016-04-29T18:07:45.000Z | 2021-04-19T18:39:39.000Z | intake/tests/factories/status_update_factory.py | enterstudio/intake | 793a8935914fdc8356321ec46e54d9ae1eeeee04 | [
"MIT"
] | 24 | 2016-06-14T18:10:43.000Z | 2021-11-14T20:26:39.000Z | import factory
from intake import models
from django.contrib.auth.models import User
from .status_notification_factory import StatusNotificationFactory
class StatusUpdateFactory(factory.DjangoModelFactory):
status_type = factory.Iterator(models.StatusType.objects.filter(
is_a_status_update_choice=True))
... | 34.2 | 77 | 0.720969 | 131 | 1,197 | 6.412214 | 0.564886 | 0.064286 | 0.05 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193818 | 1,197 | 34 | 78 | 35.205882 | 0.870466 | 0 | 0 | 0 | 0 | 0 | 0.076023 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.148148 | 0 | 0.555556 | 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 |
44db2b36daec0b425f33cf80eb43b08b853ba920 | 3,802 | py | Python | mainapp/migrations/0001_initial.py | CheboiDerrick/hood-alert | 620db39eaffa6e3c914f44e05cb853e4de99220f | [
"MIT"
] | null | null | null | mainapp/migrations/0001_initial.py | CheboiDerrick/hood-alert | 620db39eaffa6e3c914f44e05cb853e4de99220f | [
"MIT"
] | null | null | null | mainapp/migrations/0001_initial.py | CheboiDerrick/hood-alert | 620db39eaffa6e3c914f44e05cb853e4de99220f | [
"MIT"
] | null | null | null | # Generated by Django 3.2.9 on 2021-11-02 22:27
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | 50.026316 | 151 | 0.600736 | 392 | 3,802 | 5.681122 | 0.229592 | 0.039515 | 0.062865 | 0.098788 | 0.671307 | 0.64661 | 0.63269 | 0.63269 | 0.611136 | 0.569825 | 0 | 0.015205 | 0.256181 | 3,802 | 75 | 152 | 50.693333 | 0.772277 | 0.011836 | 0 | 0.485294 | 1 | 0 | 0.085486 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.044118 | 0 | 0.102941 | 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 |
44e8d6823d69bba6dce529050db617cb5dee8e38 | 815 | py | Python | logging_requests_poc/request_context.py | David-Lor/Logging-Requests-POC | f04de117799f1662b9bc0979fc20b95647a24144 | [
"Apache-2.0"
] | 1 | 2020-02-20T23:37:57.000Z | 2020-02-20T23:37:57.000Z | logging_requests_poc/request_context.py | David-Lor/Logging-Requests-POC | f04de117799f1662b9bc0979fc20b95647a24144 | [
"Apache-2.0"
] | 1 | 2020-02-27T13:07:47.000Z | 2020-02-27T19:31:45.000Z | logging_requests_poc/request_context.py | David-Lor/Logging-Requests-POC | f04de117799f1662b9bc0979fc20b95647a24144 | [
"Apache-2.0"
] | null | null | null | """REQUEST CONTEXT
Context Manager that must be used on any request, to handle errors and logging
"""
# # Native # #
import uuid
import contextlib
from typing import Optional
# # Package # #
from logging_requests_poc.error_handler import manage_endpoint_exceptions
from logging_requests_poc.logger import requests_logg... | 31.346154 | 80 | 0.733742 | 99 | 815 | 5.838384 | 0.505051 | 0.077855 | 0.083045 | 0.076125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00152 | 0.192638 | 815 | 25 | 81 | 32.6 | 0.8769 | 0.139877 | 0 | 0 | 0 | 0 | 0.065693 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.333333 | 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 |
44ee141a69d301c6dbe0090e5f291736be4c4b4a | 522 | py | Python | setup.py | lmc2179/compose-pipeline | 8543dad8768db001b9ef83eac018698e502c761a | [
"MIT"
] | 2 | 2015-05-02T05:08:30.000Z | 2017-08-14T22:58:00.000Z | setup.py | lmc2179/compose-pipeline | 8543dad8768db001b9ef83eac018698e502c761a | [
"MIT"
] | null | null | null | setup.py | lmc2179/compose-pipeline | 8543dad8768db001b9ef83eac018698e502c761a | [
"MIT"
] | 1 | 2021-03-26T07:54:51.000Z | 2021-03-26T07:54:51.000Z | import chevrons
from setuptools import setup, find_packages
setup(
name = 'chevrons',
packages = find_packages(),
version = '0.1.3',
description = 'Rapidly build pipelines for out-of-core data processing using higher order functions.',
author = 'Louis Cialdella',
author_email = 'louiscialdella@gmail.com',... | 34.8 | 104 | 0.695402 | 60 | 522 | 6 | 0.833333 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0181 | 0.153257 | 522 | 14 | 105 | 37.285714 | 0.79638 | 0 | 0 | 0 | 0 | 0 | 0.498084 | 0.045977 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.153846 | 0 | 0.153846 | 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 |
44f0e2f66a14075567f9e3f00326261c96abdef1 | 477 | py | Python | imagepy/menus/File/DAT/dat_plgs.py | Pad0y/imagepy | 23f41b64ade02f94b566b0d23a4b6459c1a1578d | [
"BSD-4-Clause"
] | null | null | null | imagepy/menus/File/DAT/dat_plgs.py | Pad0y/imagepy | 23f41b64ade02f94b566b0d23a4b6459c1a1578d | [
"BSD-4-Clause"
] | null | null | null | imagepy/menus/File/DAT/dat_plgs.py | Pad0y/imagepy | 23f41b64ade02f94b566b0d23a4b6459c1a1578d | [
"BSD-4-Clause"
] | null | null | null | from sciapp.action import dataio
import numpy as np
def imread(path):
return np.loadtxt(path, dtype=float)
def imsave(path, img):
np.savetxt(path, img)
dataio.ReaderManager.add("dat", imread, "img")
dataio.WriterManager.add("dat", imsave, "img")
class OpenFile(dataio.Reader):
title = "DAT Open"
... | 15.9 | 46 | 0.649895 | 63 | 477 | 4.920635 | 0.52381 | 0.045161 | 0.064516 | 0.083871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.201258 | 477 | 29 | 47 | 16.448276 | 0.813648 | 0 | 0 | 0.235294 | 0 | 0 | 0.083857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.117647 | 0.058824 | 0.764706 | 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 |
44f53eb7162fc20f7f876ddacf7fd9c17c806072 | 360 | py | Python | messungen/figplot.py | tihmstar/gido_public | dcc523603b9a27b37752211715a10e30b51ce812 | [
"Unlicense"
] | 16 | 2021-04-10T16:28:00.000Z | 2021-12-12T10:15:23.000Z | messungen/figplot.py | tihmstar/gido_public | dcc523603b9a27b37752211715a10e30b51ce812 | [
"Unlicense"
] | null | null | null | messungen/figplot.py | tihmstar/gido_public | dcc523603b9a27b37752211715a10e30b51ce812 | [
"Unlicense"
] | 2 | 2021-04-10T16:32:36.000Z | 2021-04-11T14:13:45.000Z | import struct
import sys
import matplotlib.pyplot as plt
import numpy as np
import mmap
import os
if len(sys.argv) < 2:
print("Usage: %s <path>" %(sys.argv[0]))
file = sys.argv[1]
filename = file.split("/")[-1]
arr = np.memmap(file, dtype='float64', mode='r')
plt.plot(arr)
plt.title(filename)
print("saving="+fi... | 18 | 48 | 0.666667 | 59 | 360 | 4.067797 | 0.59322 | 0.0875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019417 | 0.141667 | 360 | 19 | 49 | 18.947368 | 0.757282 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.133333 | 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 |
44fc768bc8efb0f6844d24259626c8a0af20e011 | 285 | py | Python | 991. Broken Calculator.py | Dharaneeshwar/Leetcode | cc3ed07f6ac5f4d6e3f60c57a94a06a8be2f5287 | [
"MIT"
] | 4 | 2020-11-17T05:24:24.000Z | 2021-06-14T21:01:45.000Z | 991. Broken Calculator.py | Dharaneeshwar/Leetcode | cc3ed07f6ac5f4d6e3f60c57a94a06a8be2f5287 | [
"MIT"
] | null | null | null | 991. Broken Calculator.py | Dharaneeshwar/Leetcode | cc3ed07f6ac5f4d6e3f60c57a94a06a8be2f5287 | [
"MIT"
] | null | null | null | class Solution:
def brokenCalc(self, X: int, Y: int) -> int:
count = 0
while Y>X:
if Y%2==0:
Y //= 2
else:
Y += 1
count += 1
return count + X - Y
| 20.357143 | 48 | 0.301754 | 30 | 285 | 2.866667 | 0.533333 | 0.046512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053097 | 0.603509 | 285 | 14 | 49 | 20.357143 | 0.707965 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.3 | 0 | 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 |
780feec7eea8d6eb4ea04d2e43da5e97dfeb57af | 13,720 | py | Python | archive/arisulolstats/arisulolstats/lolstats/preprocessed.py | NikhilPal2468/python-projects | 1dc0444d22e35ddd1a774458b9231f2d4b53ef91 | [
"Unlicense"
] | 3 | 2020-04-06T07:36:00.000Z | 2020-04-07T12:07:38.000Z | archive/arisulolstats/arisulolstats/lolstats/preprocessed.py | NikhilPal2468/python-projects | 1dc0444d22e35ddd1a774458b9231f2d4b53ef91 | [
"Unlicense"
] | null | null | null | archive/arisulolstats/arisulolstats/lolstats/preprocessed.py | NikhilPal2468/python-projects | 1dc0444d22e35ddd1a774458b9231f2d4b53ef91 | [
"Unlicense"
] | 1 | 2020-09-30T19:17:03.000Z | 2020-09-30T19:17:03.000Z | import time
class Preprocessed:
def __init__(self, c, db, profile, summoners):
"""
:type profile: str
:type db: darkarisulolstats.lolstats.database.Database
:type c: darkarisulolstats.arisu.console.Console
"""
db.preprocessed.add(profile, "matchlists", generate_matc... | 51.578947 | 120 | 0.54242 | 1,265 | 13,720 | 5.818972 | 0.16996 | 0.130417 | 0.187475 | 0.061948 | 0.406738 | 0.296427 | 0.185573 | 0.055563 | 0.045646 | 0.019291 | 0 | 0.00875 | 0.291983 | 13,720 | 265 | 121 | 51.773585 | 0.749022 | 0.012464 | 0 | 0.176471 | 0 | 0 | 0.188454 | 0.017119 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037815 | false | 0 | 0.004202 | 0.008403 | 0.113445 | 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 |
7812af84cf31c6df29918541a4d3d48e5031594d | 716 | py | Python | apps/products/management/commands/generate_products.py | 8area8/p8_pure_beurre | 9e930f52a5f2c4c6c25a0a52b247f7b61fc7ffe8 | [
"MIT"
] | null | null | null | apps/products/management/commands/generate_products.py | 8area8/p8_pure_beurre | 9e930f52a5f2c4c6c25a0a52b247f7b61fc7ffe8 | [
"MIT"
] | 3 | 2020-06-05T19:09:18.000Z | 2022-02-10T13:20:38.000Z | apps/products/management/commands/generate_products.py | 8area8/p8_pure_beurre | 9e930f52a5f2c4c6c25a0a52b247f7b61fc7ffe8 | [
"MIT"
] | null | null | null | from django.core.management.base import BaseCommand, CommandError
from apps.products.tasks import ProductsGenerator as generator
class Command(BaseCommand):
"""Command class."""
help = 'Generate all products in database.'
def add_arguments(self, parser):
"""Arguments."""
# Positional ar... | 32.545455 | 77 | 0.621508 | 73 | 716 | 6.027397 | 0.561644 | 0.040909 | 0.077273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.251397 | 716 | 21 | 78 | 34.095238 | 0.820896 | 0.093575 | 0 | 0 | 0 | 0 | 0.112164 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0 | 0.545455 | 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 |
781674b2bb58a4e6790796a77119a081f7e15c28 | 254 | py | Python | taxidTools/__version__.py | CVUA-RRW/taxidTools | dce0f23e17f4e9cb3696e9a726e7c92b9c63061d | [
"BSD-3-Clause"
] | 1 | 2020-11-04T07:40:48.000Z | 2020-11-04T07:40:48.000Z | taxidTools/__version__.py | CVUA-RRW/taxidTools | dce0f23e17f4e9cb3696e9a726e7c92b9c63061d | [
"BSD-3-Clause"
] | 2 | 2021-08-18T09:08:34.000Z | 2021-08-18T09:58:32.000Z | taxidTools/__version__.py | CVUA-RRW/taxidTools | dce0f23e17f4e9cb3696e9a726e7c92b9c63061d | [
"BSD-3-Clause"
] | null | null | null | __version__ = "2.2.3"
__title__ = "taxidTools"
__description__ = "A Python Toolkit for Taxonomy"
__author__ = "Gregoire Denay"
__author_email__ = 'gregoire.denay@cvua-rrw.de'
__licence__ = 'BSD License'
__url__ = "https://github.com/CVUA-RRW/taxidTools"
| 31.75 | 50 | 0.759843 | 32 | 254 | 5.125 | 0.78125 | 0.158537 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013216 | 0.106299 | 254 | 7 | 51 | 36.285714 | 0.709251 | 0 | 0 | 0 | 0 | 0 | 0.523622 | 0.102362 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7819335651cc667f441ad0a5b09dab6527c16cf4 | 392 | py | Python | ubuntu18.04/jetson-nano/Pytorch/pytorch_verify.py | OldJohn86/ubuntu-deps-install | 0132a175f25f77fac814c1f3a6ccf58bc15c0262 | [
"MIT"
] | null | null | null | ubuntu18.04/jetson-nano/Pytorch/pytorch_verify.py | OldJohn86/ubuntu-deps-install | 0132a175f25f77fac814c1f3a6ccf58bc15c0262 | [
"MIT"
] | null | null | null | ubuntu18.04/jetson-nano/Pytorch/pytorch_verify.py | OldJohn86/ubuntu-deps-install | 0132a175f25f77fac814c1f3a6ccf58bc15c0262 | [
"MIT"
] | null | null | null | #!/bin/python3
import torch
print(torch.__version__)
print('CUDA available: ' + str(torch.cuda.is_available()))
print('cuDNN version: ' + str(torch.backends.cudnn.version()))
a = torch.cuda.FloatTensor(2).zero_()
print('Tensor a = ' + str(a))
b = torch.randn(2).cuda()
print('Tensor b = ' + str(b))
c = a + b
print('Te... | 23.058824 | 62 | 0.681122 | 57 | 392 | 4.508772 | 0.368421 | 0.128405 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008746 | 0.125 | 392 | 16 | 63 | 24.5 | 0.740525 | 0.033163 | 0 | 0 | 0 | 0 | 0.169312 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.583333 | 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 | 0 | 1 | 0 | 1 |
781a9186c546d87cd9b00e0cc3d3befc420d12ee | 2,007 | py | Python | jupyterhub_configurator/mixins.py | GeorgianaElena/jupyterhub-configurator | f356175732d487c520415b84368b3368397d8b60 | [
"BSD-3-Clause"
] | 1 | 2021-03-29T11:59:36.000Z | 2021-03-29T11:59:36.000Z | jupyterhub_configurator/mixins.py | GeorgianaElena/jupyterhub-configurator | f356175732d487c520415b84368b3368397d8b60 | [
"BSD-3-Clause"
] | 11 | 2021-03-29T15:29:09.000Z | 2022-03-13T07:41:19.000Z | jupyterhub_configurator/mixins.py | GeorgianaElena/jupyterhub-configurator | f356175732d487c520415b84368b3368397d8b60 | [
"BSD-3-Clause"
] | 4 | 2021-03-30T15:28:34.000Z | 2022-03-11T19:49:51.000Z | import aiohttp
from traitlets.config import LoggingConfigurable
from traitlets import Unicode
class ConfiguratorSpawnerMixin(LoggingConfigurable):
service_url = Unicode(
"http://127.0.0.1:10101/services/configurator",
help="URL where the configurator service is available",
config=True,
... | 41.8125 | 77 | 0.633284 | 245 | 2,007 | 5.102041 | 0.559184 | 0.0208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007666 | 0.285002 | 2,007 | 47 | 78 | 42.702128 | 0.863415 | 0.287494 | 0 | 0 | 0 | 0 | 0.148382 | 0.019732 | 0 | 0 | 0 | 0.021277 | 0 | 1 | 0 | false | 0 | 0.12 | 0 | 0.28 | 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 |
78243938b7870481c4b7a5ea12fe71ea6fb4fd48 | 250 | py | Python | 125. Valid Palindrome.py | anandxkumar2/LeetCode-Solutions | 5a1fb95d73a95fb01aee96783af4551a9bdc4003 | [
"MIT"
] | null | null | null | 125. Valid Palindrome.py | anandxkumar2/LeetCode-Solutions | 5a1fb95d73a95fb01aee96783af4551a9bdc4003 | [
"MIT"
] | 2 | 2021-10-20T04:03:22.000Z | 2021-10-20T04:07:56.000Z | 125. Valid Palindrome.py | anandxkumar2/LeetCode-Solutions | 5a1fb95d73a95fb01aee96783af4551a9bdc4003 | [
"MIT"
] | null | null | null | class Solution(object):
def isPalindrome(self, s):
"""
:type s: str
:rtype: bool
"""
ns = ''
for ch in s:
if ch.isalnum():
ns += ch.lower()
return ns == ns[::-1]
| 20.833333 | 32 | 0.388 | 27 | 250 | 3.592593 | 0.740741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007463 | 0.464 | 250 | 11 | 33 | 22.727273 | 0.716418 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.428571 | 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 |
78284df6d40f69597e7fb90b15db08adea62c39f | 59,829 | py | Python | tests/unit/aliyun/ecs/connection_test.py | addumb/python-aliyun | 0ad5b2361fb818c05eb5aebc3e6ee60bf4e0a423 | [
"Apache-2.0"
] | 38 | 2015-05-21T05:59:14.000Z | 2018-11-28T09:14:07.000Z | tests/unit/aliyun/ecs/connection_test.py | addumb/python-aliyun | 0ad5b2361fb818c05eb5aebc3e6ee60bf4e0a423 | [
"Apache-2.0"
] | 16 | 2015-03-20T17:55:41.000Z | 2018-05-15T15:09:15.000Z | tests/unit/aliyun/ecs/connection_test.py | addumb/python-aliyun | 0ad5b2361fb818c05eb5aebc3e6ee60bf4e0a423 | [
"Apache-2.0"
] | 27 | 2015-03-16T18:32:16.000Z | 2020-11-30T05:28:06.000Z | # -*- coding:utf-8 -*-
# Copyright 2014, Quixey Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | 36.977132 | 134 | 0.494844 | 5,000 | 59,829 | 5.809 | 0.1068 | 0.057015 | 0.034842 | 0.048201 | 0.69592 | 0.641591 | 0.597797 | 0.560441 | 0.503013 | 0.475779 | 0 | 0.025024 | 0.364806 | 59,829 | 1,617 | 135 | 37 | 0.739257 | 0.011683 | 0 | 0.579521 | 0 | 0 | 0.191396 | 0.022939 | 0 | 0 | 0 | 0 | 0.030501 | 0 | null | null | 0.007988 | 0.00581 | 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 |
782e0545c51ba10ddd2b8a91ed0e4e4ccd3b9813 | 1,205 | py | Python | projeto_05.py | HeltonJofre/projetos-python-01 | 8468d44217a584ebcdf9daf4fa39794224e735ba | [
"MIT"
] | null | null | null | projeto_05.py | HeltonJofre/projetos-python-01 | 8468d44217a584ebcdf9daf4fa39794224e735ba | [
"MIT"
] | null | null | null | projeto_05.py | HeltonJofre/projetos-python-01 | 8468d44217a584ebcdf9daf4fa39794224e735ba | [
"MIT"
] | null | null | null | dic = {}
while True:
perg = str(input('Deseja fazer um comentário ? [S/N] ')).strip().upper()[0]
if perg == 'S':
dic['coment'] = str(input('Qual o seu comentário ? ')).strip().upper()
print('Obrigado pelo seu comentário')
elif perg == 'N':
print('Até mais !')
break
else:... | 32.567568 | 111 | 0.475519 | 121 | 1,205 | 4.710744 | 0.404959 | 0.114035 | 0.192982 | 0.115789 | 0.377193 | 0.322807 | 0.154386 | 0.154386 | 0.154386 | 0 | 0 | 0.010974 | 0.395021 | 1,205 | 36 | 112 | 33.472222 | 0.770919 | 0 | 0 | 0.606061 | 0 | 0 | 0.290456 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.272727 | 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 |
78305ee7b7951c9ded51f373cbe674139dedcfe7 | 3,036 | py | Python | demo.py | geerk/toradbapi | 5b0070493a75a6409490e3faa1c95ea87a335131 | [
"MIT"
] | 1 | 2015-05-19T21:27:53.000Z | 2015-05-19T21:27:53.000Z | demo.py | geerk/toradbapi | 5b0070493a75a6409490e3faa1c95ea87a335131 | [
"MIT"
] | null | null | null | demo.py | geerk/toradbapi | 5b0070493a75a6409490e3faa1c95ea87a335131 | [
"MIT"
] | null | null | null | from __future__ import (absolute_import, division,
print_function, unicode_literals)
import tornado.httpserver
import tornado.ioloop
import tornado.options
import tornado.web
import tornado.gen
import tornado.platform.twisted
import mysql.connector
tornado.platform.twisted.install()
import to... | 31.957895 | 78 | 0.592885 | 354 | 3,036 | 4.968927 | 0.418079 | 0.044343 | 0.025014 | 0.006822 | 0.129619 | 0.106879 | 0.057987 | 0.057987 | 0.057987 | 0.057987 | 0 | 0.013544 | 0.270422 | 3,036 | 94 | 79 | 32.297872 | 0.780587 | 0.043149 | 0 | 0.12 | 0 | 0 | 0.234402 | 0.056532 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.066667 | 0.12 | 0 | 0.2 | 0.013333 | 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 |
784710c49a5bf88846827be8803a0d8c25ef89df | 2,946 | py | Python | spatial_navigation/protocol/py/myFog.py | thomasbazeille/public_protocols | 8d8dd051eda7eec2b8358dae42ab363b7d83e1d0 | [
"BSD-3-Clause"
] | 3 | 2019-09-19T13:06:59.000Z | 2021-07-03T18:09:32.000Z | spatial_navigation/protocol/py/myFog.py | thomasbazeille/public_protocols | 8d8dd051eda7eec2b8358dae42ab363b7d83e1d0 | [
"BSD-3-Clause"
] | 2 | 2017-11-30T19:32:24.000Z | 2020-09-03T19:40:13.000Z | spatial_navigation/protocol/py/myFog.py | thomasbazeille/public_protocols | 8d8dd051eda7eec2b8358dae42ab363b7d83e1d0 | [
"BSD-3-Clause"
] | 3 | 2019-09-19T13:07:10.000Z | 2021-01-14T16:07:16.000Z | from __future__ import division
import viz
import vizact
import viztask
import os
import sys
class myFog:
def __init__(self,startDist = 10,endDist = 100,fadeOutDist = 1000,fadeTime = 2, fogColor = [1,1,1]):
# keep these values for reference
self.fadeOutDist = fadeOutDist
self.startDist = startDist
self... | 34.658824 | 203 | 0.712152 | 412 | 2,946 | 5.075243 | 0.286408 | 0.043042 | 0.04352 | 0.02726 | 0.431373 | 0.348637 | 0.298422 | 0.298422 | 0.264945 | 0.219034 | 0 | 0.012917 | 0.185336 | 2,946 | 85 | 204 | 34.658824 | 0.857917 | 0.290224 | 0 | 0.214286 | 0 | 0 | 0.110897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.107143 | null | null | 0.089286 | 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 |
7864315b05284f191f4003f84418190b3f577cb8 | 2,405 | py | Python | source/main.py | DevTek17/WU_Widget | c6e6d9e501f2ea767c84b2e52946c4a314fe055f | [
"MIT"
] | null | null | null | source/main.py | DevTek17/WU_Widget | c6e6d9e501f2ea767c84b2e52946c4a314fe055f | [
"MIT"
] | null | null | null | source/main.py | DevTek17/WU_Widget | c6e6d9e501f2ea767c84b2e52946c4a314fe055f | [
"MIT"
] | null | null | null | import requests
import kivy
kivy.require('1.9.2')
from kivy.app import App
from kivy.properties import ObjectProperty, StringProperty
from kivy.uix.gridlayout import GridLayout
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.button import Label
api_key = 'get from wunderground.com'
class WU_GridLayout(BoxLayo... | 35.367647 | 131 | 0.648649 | 292 | 2,405 | 5.119863 | 0.270548 | 0.09097 | 0.110368 | 0.056187 | 0.068227 | 0.038796 | 0 | 0 | 0 | 0 | 0 | 0.004782 | 0.217464 | 2,405 | 68 | 132 | 35.367647 | 0.789586 | 0 | 0 | 0 | 0 | 0 | 0.205736 | 0.013716 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057692 | false | 0.019231 | 0.134615 | 0.019231 | 0.557692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7865519fc71c15eecfc3d6d846c1e3417fd35708 | 1,956 | py | Python | apps/inventory/migrations/0001_initial.py | JuanJoseStone/shoe-app | b9eb10e59877d6eb0582b65cf1b91cdd47bdcdb0 | [
"MIT"
] | null | null | null | apps/inventory/migrations/0001_initial.py | JuanJoseStone/shoe-app | b9eb10e59877d6eb0582b65cf1b91cdd47bdcdb0 | [
"MIT"
] | null | null | null | apps/inventory/migrations/0001_initial.py | JuanJoseStone/shoe-app | b9eb10e59877d6eb0582b65cf1b91cdd47bdcdb0 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.3 on 2021-07-03 22:03
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('providers_and_customers', '0001_initial'),
('materials', '0001_initial'),
]
operations ... | 52.864865 | 263 | 0.624233 | 207 | 1,956 | 5.7343 | 0.458937 | 0.101938 | 0.035383 | 0.055602 | 0.183656 | 0.09941 | 0.09941 | 0.09941 | 0.09941 | 0.09941 | 0 | 0.021429 | 0.212679 | 1,956 | 36 | 264 | 54.333333 | 0.749351 | 0.023006 | 0 | 0 | 1 | 0 | 0.218963 | 0.035621 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.068966 | 0 | 0.206897 | 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 |
786a75431e23849e7014bf50279fe27951308bb5 | 465 | py | Python | root/messages.py | 2022EndWorldBegin/R998 | 1dd65551be1434faad902126a92076d8c45c9420 | [
"MIT"
] | null | null | null | root/messages.py | 2022EndWorldBegin/R998 | 1dd65551be1434faad902126a92076d8c45c9420 | [
"MIT"
] | null | null | null | root/messages.py | 2022EndWorldBegin/R998 | 1dd65551be1434faad902126a92076d8c45c9420 | [
"MIT"
] | 1 | 2022-01-31T10:42:50.000Z | 2022-01-31T10:42:50.000Z | class Translation(object):
START_TEXT = """Hello Stranger,
Welcome To Valhalla.
"""
######################
HELP_USER = """**TF Does This Bot Do?**
**⁘ ¯\_(ツ)_/¯ Nothing. Ha Ha Ha**
**⁘ No,Seriously Tho (•_•)**
"""
DOWNLOAD_MSG = " **Downloading....**"
DOWNLOAD_FAIL_MSG = "**Failed T... | 27.352941 | 54 | 0.533333 | 55 | 465 | 4.381818 | 0.636364 | 0.033195 | 0.107884 | 0.124481 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.223656 | 465 | 16 | 55 | 29.0625 | 0.65097 | 0.062366 | 0 | 0.166667 | 0 | 0 | 0.561713 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
786db8af4830076b239578d09e83e8777b2bee11 | 558 | py | Python | setup.py | dante-biase/python-tee | abf0e58fb556283d5f35316d1836c550952f4746 | [
"MIT"
] | null | null | null | setup.py | dante-biase/python-tee | abf0e58fb556283d5f35316d1836c550952f4746 | [
"MIT"
] | null | null | null | setup.py | dante-biase/python-tee | abf0e58fb556283d5f35316d1836c550952f4746 | [
"MIT"
] | null | null | null | from distutils.core import setup
setup(
name = 'python-tee',
packages = ['tee'],
version = '0.0.5',
license='MIT',
description = '',
author = 'Dante Biase',
url = 'https://github.com/dante-biase/python-tee',
download_url = 'https://github.com/dante-biase/python-tee/archive/v0.0.5.tar.gz',
classifiers=... | 31 | 83 | 0.645161 | 67 | 558 | 5.358209 | 0.656716 | 0.075209 | 0.077994 | 0.094708 | 0.200557 | 0.200557 | 0.200557 | 0.200557 | 0 | 0 | 0 | 0.017467 | 0.179211 | 558 | 18 | 84 | 31 | 0.766376 | 0 | 0 | 0 | 0 | 0.055556 | 0.584973 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.055556 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
78700f67478505ced67c6235a225624302824973 | 4,315 | py | Python | shopping/customer/models.py | pranavjandu/cashier-less-shopping | d067f4087f3c511d081aa798c5b185254b9e3517 | [
"MIT"
] | null | null | null | shopping/customer/models.py | pranavjandu/cashier-less-shopping | d067f4087f3c511d081aa798c5b185254b9e3517 | [
"MIT"
] | null | null | null | shopping/customer/models.py | pranavjandu/cashier-less-shopping | d067f4087f3c511d081aa798c5b185254b9e3517 | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import AbstractUser
from django.db.models.deletion import CASCADE
from django.db.models.signals import post_save
from django.dispatch import receiver
class CustomUser(AbstractUser):
user_type_data=(('1',"Manager"),('2',"Guard"),('3',"Customer"))
user... | 31.49635 | 89 | 0.740209 | 586 | 4,315 | 5.302048 | 0.196246 | 0.030898 | 0.05214 | 0.06952 | 0.564854 | 0.51046 | 0.435146 | 0.388799 | 0.330866 | 0.283231 | 0 | 0.010823 | 0.143453 | 4,315 | 137 | 90 | 31.49635 | 0.829816 | 0.035458 | 0 | 0.407407 | 0 | 0 | 0.00726 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12037 | false | 0 | 0.046296 | 0.055556 | 0.685185 | 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 |
78744cffa295ee457b1bb70cb3640d37316eb97c | 2,903 | py | Python | tests/python/minimize_process.py | Noxsense/mCRL2 | dd2fcdd6eb8b15af2729633041c2dbbd2216ad24 | [
"BSL-1.0"
] | 61 | 2018-05-24T13:14:05.000Z | 2022-03-29T11:35:03.000Z | tests/python/minimize_process.py | Noxsense/mCRL2 | dd2fcdd6eb8b15af2729633041c2dbbd2216ad24 | [
"BSL-1.0"
] | 229 | 2018-05-28T08:31:09.000Z | 2022-03-21T11:02:41.000Z | tests/python/minimize_process.py | Noxsense/mCRL2 | dd2fcdd6eb8b15af2729633041c2dbbd2216ad24 | [
"BSL-1.0"
] | 28 | 2018-04-11T14:09:39.000Z | 2022-02-25T15:57:39.000Z | #!/usr/bin/env python
#~ Copyright 2016 Wieger Wesselink.
#~ Distributed under the Boost Software License, Version 1.0.
#~ (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
import argparse
import shutil
import os
import re
import sys
import time
import traceback
# Runs a command, and re... | 32.988636 | 161 | 0.674475 | 370 | 2,903 | 5.143243 | 0.367568 | 0.040988 | 0.034157 | 0.050447 | 0.100368 | 0.077772 | 0.044141 | 0 | 0 | 0 | 0 | 0.016507 | 0.207027 | 2,903 | 87 | 162 | 33.367816 | 0.810165 | 0.080606 | 0 | 0.028986 | 0 | 0 | 0.142267 | 0.010511 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.130435 | null | null | 0.101449 | 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 |
787932cb36146dd7037a2ce410f1698fed3ccb47 | 374 | py | Python | sky/migrations/0006_auto_20180224_1118.py | eethan1/IMnight2018_Backend | 39780f737e57763fdfb171c4687a375d3c5a4bb0 | [
"Apache-2.0"
] | null | null | null | sky/migrations/0006_auto_20180224_1118.py | eethan1/IMnight2018_Backend | 39780f737e57763fdfb171c4687a375d3c5a4bb0 | [
"Apache-2.0"
] | null | null | null | sky/migrations/0006_auto_20180224_1118.py | eethan1/IMnight2018_Backend | 39780f737e57763fdfb171c4687a375d3c5a4bb0 | [
"Apache-2.0"
] | 4 | 2018-01-27T06:01:41.000Z | 2018-02-21T12:18:35.000Z | # Generated by Django 2.0 on 2018-02-24 11:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('sky', '0005_auto_20180224_1115'),
]
operations = [
migrations.AlterField(
model_name='news',
name='label',
... | 19.684211 | 47 | 0.588235 | 40 | 374 | 5.4 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114068 | 0.296791 | 374 | 18 | 48 | 20.777778 | 0.707224 | 0.114973 | 0 | 0 | 1 | 0 | 0.106383 | 0.069909 | 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 |
787f32f49d180123bb759dd975ba06e71361412a | 887 | py | Python | linesegmentintersections/Intersection.py | LiahNikol/line-segment-intersections | 0a2eb14b54619568d2b79839319c079b27a53d77 | [
"MIT"
] | null | null | null | linesegmentintersections/Intersection.py | LiahNikol/line-segment-intersections | 0a2eb14b54619568d2b79839319c079b27a53d77 | [
"MIT"
] | null | null | null | linesegmentintersections/Intersection.py | LiahNikol/line-segment-intersections | 0a2eb14b54619568d2b79839319c079b27a53d77 | [
"MIT"
] | null | null | null | # Class defining an intersection of two line segments
# Inherits Event type
from .Event import Event
class Intersection(Event):
def __init__(self, x, y, seg1, seg2):
super().__init__(x, y)
self.seg1 = seg1
self.seg2 = seg2
def __eq__(self, o):
if isinstance(o, type(self)):
... | 36.958333 | 78 | 0.638106 | 125 | 887 | 4.416 | 0.424 | 0.043478 | 0.036232 | 0.039855 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021944 | 0.280722 | 887 | 24 | 79 | 36.958333 | 0.84326 | 0.390079 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.066667 | 0.066667 | 0.6 | 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 |
7887b917a5ab4cc47cf1c9c3b993d6312f1086d0 | 2,216 | py | Python | import_old_data/importer.py | SheevaPlug/Chipselect | 1b3a5ab19d4ea1667296d04cfffc0a7058028419 | [
"MIT"
] | null | null | null | import_old_data/importer.py | SheevaPlug/Chipselect | 1b3a5ab19d4ea1667296d04cfffc0a7058028419 | [
"MIT"
] | null | null | null | import_old_data/importer.py | SheevaPlug/Chipselect | 1b3a5ab19d4ea1667296d04cfffc0a7058028419 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from argparse import ArgumentParser
import psycopg2 as PG
from psycopg2.extras import DictCursor
from elasticsearch import Elasticsearch as ES
def clean_empty_fields(result):
'''removes keys from a dict if their value is in ["None", None]'''
return {key: value for key, value in result.i... | 38.877193 | 167 | 0.681408 | 288 | 2,216 | 5.086806 | 0.375 | 0.032765 | 0.046416 | 0.021843 | 0.121502 | 0.121502 | 0.076451 | 0.076451 | 0.076451 | 0.076451 | 0 | 0.002251 | 0.198105 | 2,216 | 56 | 168 | 39.571429 | 0.822172 | 0.11778 | 0 | 0.055556 | 0 | 0.027778 | 0.138254 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.055556 | 0.138889 | 0 | 0.444444 | 0.027778 | 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 |
788923ecce2cbfbbaa835fa6174bba860f48b146 | 1,391 | py | Python | tests/test_utilities/test_test_functions.py | coinator/hp-VPINNs | 04565217e2fdc84c48a6d36c3bd160b17af89c07 | [
"MIT"
] | null | null | null | tests/test_utilities/test_test_functions.py | coinator/hp-VPINNs | 04565217e2fdc84c48a6d36c3bd160b17af89c07 | [
"MIT"
] | null | null | null | tests/test_utilities/test_test_functions.py | coinator/hp-VPINNs | 04565217e2fdc84c48a6d36c3bd160b17af89c07 | [
"MIT"
] | null | null | null | import pytest
from hp_VPINN.utilities.test_functions import jacobi_test_function, jacobi_test_function_derivatives
num_quadrature_points = 80
num_test_functions = 50
@pytest.fixture
def test_function(np):
x = np.linspace(-1, 1, num_quadrature_points)
test_function = jacobi_test_function(num_test_functions, ... | 31.613636 | 100 | 0.762042 | 195 | 1,391 | 5.046154 | 0.235897 | 0.292683 | 0.128049 | 0.051829 | 0.61687 | 0.219512 | 0.219512 | 0.093496 | 0.093496 | 0.093496 | 0 | 0.013865 | 0.170381 | 1,391 | 43 | 101 | 32.348837 | 0.838821 | 0.047448 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.266667 | 1 | 0.166667 | false | 0 | 0.066667 | 0 | 0.233333 | 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 |
788cacf070aea9c86e75e579a125688d64733a0c | 973 | py | Python | boringmd/transformers/indented_code.py | cariad/boringmd | ddad230235d26b5661b3635d6823e2f1926f54ab | [
"MIT"
] | null | null | null | boringmd/transformers/indented_code.py | cariad/boringmd | ddad230235d26b5661b3635d6823e2f1926f54ab | [
"MIT"
] | 3 | 2021-03-13T15:26:29.000Z | 2021-03-16T13:38:30.000Z | boringmd/transformers/indented_code.py | cariad/boringmd | ddad230235d26b5661b3635d6823e2f1926f54ab | [
"MIT"
] | null | null | null | from typing import Optional
from lstr import lstr
from boringmd.line_guidance import LineGuidance
from boringmd.transformers.transformer import Transformer
class IndentedCodeTransformer(Transformer):
""" Locks indented code from transformation. """
def __init__(self) -> None:
self.consider_next = F... | 24.948718 | 80 | 0.621788 | 105 | 973 | 5.657143 | 0.428571 | 0.080808 | 0.107744 | 0.070707 | 0.20202 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001477 | 0.304214 | 973 | 38 | 81 | 25.605263 | 0.875923 | 0.249743 | 0 | 0.294118 | 0 | 0 | 0.006061 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.235294 | 0 | 0.588235 | 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 |
788eb0ad208876410e4dde026dfce5a3bdeb7478 | 1,377 | py | Python | venv/lib/python2.7/site-packages/plotnine/tests/test_geom_abline.py | nuriale207/preprocesspack | cc06a9cb79c5e3b392371fcd8d1ccf7185e71821 | [
"MIT"
] | null | null | null | venv/lib/python2.7/site-packages/plotnine/tests/test_geom_abline.py | nuriale207/preprocesspack | cc06a9cb79c5e3b392371fcd8d1ccf7185e71821 | [
"MIT"
] | null | null | null | venv/lib/python2.7/site-packages/plotnine/tests/test_geom_abline.py | nuriale207/preprocesspack | cc06a9cb79c5e3b392371fcd8d1ccf7185e71821 | [
"MIT"
] | null | null | null | from __future__ import absolute_import, division, print_function
import pandas as pd
from plotnine import ggplot, aes, geom_abline, geom_point, theme
df = pd.DataFrame({
'slope': [1, 1],
'intercept': [1, -1],
'x': [-1, 1],
'y': [-1, 1],
'z': range(2)
})
_theme = theme(sub... | 28.102041 | 69 | 0.519971 | 158 | 1,377 | 4.379747 | 0.329114 | 0.101156 | 0.16474 | 0.242775 | 0.387283 | 0.387283 | 0.346821 | 0.287572 | 0.287572 | 0.221098 | 0 | 0.026483 | 0.314452 | 1,377 | 48 | 70 | 28.6875 | 0.706568 | 0.029775 | 0 | 0.243243 | 0 | 0 | 0.131934 | 0 | 0 | 0 | 0 | 0 | 0.054054 | 1 | 0.054054 | false | 0 | 0.081081 | 0 | 0.135135 | 0.027027 | 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 |
789098a019cf43f6792de9cc98f6df450240aee9 | 1,233 | py | Python | tests/test_leaflet_update_interval.py | blakeaw/ORBILT | ed402dd496534dccd00f3e75b57007d944c58c1d | [
"MIT"
] | 11 | 2019-07-29T16:21:53.000Z | 2022-02-02T11:44:57.000Z | tests/test_leaflet_update_interval.py | blakeaw/ORBILT | ed402dd496534dccd00f3e75b57007d944c58c1d | [
"MIT"
] | 11 | 2019-05-15T09:30:05.000Z | 2021-07-19T16:49:59.000Z | tests/test_leaflet_update_interval.py | blakeaw/ORBILT | ed402dd496534dccd00f3e75b57007d944c58c1d | [
"MIT"
] | 9 | 2019-08-12T11:14:45.000Z | 2020-12-22T18:22:55.000Z | from __future__ import print_function
import pybilt.bilayer_analyzer.bilayer_analyzer as ba
def test_leaflet_update_interval():
analyzer = ba.BilayerAnalyzer(structure='../pybilt/sample_bilayer/sample_bilayer.psf',
trajectory='../pybilt/sample_bilayer/sample_bilayer_10frames.dcd',
... | 41.1 | 100 | 0.725061 | 158 | 1,233 | 5.265823 | 0.360759 | 0.0625 | 0.091346 | 0.079327 | 0.466346 | 0.227163 | 0.189904 | 0 | 0 | 0 | 0 | 0.014793 | 0.177616 | 1,233 | 29 | 101 | 42.517241 | 0.80572 | 0 | 0 | 0.166667 | 0 | 0 | 0.339011 | 0.077048 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.083333 | 0 | 0.125 | 0.458333 | 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 | 0 | 1 | 0 | 1 |
7892fa5348068aa2af9478d03fbbdbc63fcf81ca | 411 | py | Python | src/databricksbundle/pipeline/decorator/executor/transformation.py | roman-novosad/databricks-bundle | a25e7e9d3baf711c60cd190048a07be91ed3e7ea | [
"MIT"
] | null | null | null | src/databricksbundle/pipeline/decorator/executor/transformation.py | roman-novosad/databricks-bundle | a25e7e9d3baf711c60cd190048a07be91ed3e7ea | [
"MIT"
] | null | null | null | src/databricksbundle/pipeline/decorator/executor/transformation.py | roman-novosad/databricks-bundle | a25e7e9d3baf711c60cd190048a07be91ed3e7ea | [
"MIT"
] | null | null | null | from typing import Tuple
from pyspark.sql import DataFrame
def transform(fun: callable, sources: Tuple[callable], arguments: tuple) -> DataFrame:
g = fun.__globals__
def transformSource(source: callable):
return g[source.__name__ + '_df']
dataframesToUse = tuple(map(transformSource, sources))
... | 25.6875 | 86 | 0.695864 | 47 | 411 | 5.787234 | 0.468085 | 0.029412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194647 | 411 | 15 | 87 | 27.4 | 0.821752 | 0 | 0 | 0 | 0 | 0 | 0.014599 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.1 | 0.6 | 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 |
78a2c602b47536dbe0bac72f860ad571f8f95167 | 1,012 | py | Python | Kivy2.py | mcvenkat/Python-Programs | 2ff66bbd5b07c8e093b11360e1dcac06740a5024 | [
"CC0-1.0",
"MIT"
] | null | null | null | Kivy2.py | mcvenkat/Python-Programs | 2ff66bbd5b07c8e093b11360e1dcac06740a5024 | [
"CC0-1.0",
"MIT"
] | 5 | 2020-05-22T14:10:02.000Z | 2022-03-25T19:13:05.000Z | Kivy2.py | mcvenkat/Python-Programs | 2ff66bbd5b07c8e093b11360e1dcac06740a5024 | [
"CC0-1.0",
"MIT"
] | null | null | null | import kivy
from kivy.app import App
from kivy.uix.widget import Widget
from kivy.properties import ObjectProperty
from kivy.uix.label import Label
from kivy.uix.floatlayout import FloatLayout
from kivy.uix.popup import Popup
class Widgets(Widget):
def btn(self):
show_popup()
class P(FloatLa... | 20.653061 | 98 | 0.563241 | 131 | 1,012 | 4.229008 | 0.412214 | 0.086643 | 0.079422 | 0.061372 | 0.155235 | 0.155235 | 0.115523 | 0.115523 | 0 | 0 | 0 | 0.030479 | 0.31917 | 1,012 | 48 | 99 | 21.083333 | 0.773585 | 0 | 0 | 0.117647 | 0 | 0 | 0.080913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.029412 | 0.205882 | 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 |
78a97012579190ea266f39c3761bf8dd548fd776 | 878 | py | Python | ambari-server/src/main/resources/stacks/HDP/2.5/services/HUE/package/scripts/hue.py | cas-packone/ambari-chs | 68033fbd4b810b6642853f2ad9128cbbd4e0cb7b | [
"Apache-2.0"
] | 3 | 2019-06-20T11:49:36.000Z | 2020-12-11T10:44:29.000Z | ambari-server/src/main/resources/stacks/HDP/2.5/services/HUE/package/scripts/hue.py | cas-packone/ambari-chs | 68033fbd4b810b6642853f2ad9128cbbd4e0cb7b | [
"Apache-2.0"
] | null | null | null | ambari-server/src/main/resources/stacks/HDP/2.5/services/HUE/package/scripts/hue.py | cas-packone/ambari-chs | 68033fbd4b810b6642853f2ad9128cbbd4e0cb7b | [
"Apache-2.0"
] | 1 | 2019-03-20T08:36:17.000Z | 2019-03-20T08:36:17.000Z | import os
import base64
from time import sleep
from resource_management import *
class HueMaster(Script):
def install(self, env):
import params
self.install_packages(env)
def configure(self, env):
print("config")
import para... | 22.512821 | 73 | 0.593394 | 100 | 878 | 5.04 | 0.4 | 0.083333 | 0.095238 | 0.119048 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003273 | 0.3041 | 878 | 38 | 74 | 23.105263 | 0.821604 | 0 | 0 | 0.074074 | 0 | 0 | 0.105923 | 0.023918 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.481481 | 0.074074 | 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 |
78b12056065c7be98aa91a6982a4e971faef6da4 | 526 | py | Python | example.py | Willena/py-expiring-dict | fd5e5a94cf0134de4410d34e5760c5fb86c893c9 | [
"MIT"
] | 4 | 2020-10-07T06:56:26.000Z | 2022-01-20T10:13:27.000Z | example.py | Willena/py-expiring-dict | fd5e5a94cf0134de4410d34e5760c5fb86c893c9 | [
"MIT"
] | 2 | 2019-08-29T16:29:09.000Z | 2020-02-04T08:42:47.000Z | example.py | ParkerD559/py-expiring-dict | fd5e5a94cf0134de4410d34e5760c5fb86c893c9 | [
"MIT"
] | 6 | 2020-03-29T12:17:49.000Z | 2021-03-09T14:38:35.000Z | from time import sleep
from expiring_dict import ExpiringDict
cache = ExpiringDict() # No TTL set, keys set via [] will not expire
cache["abc"] = "persistent"
cache.ttl("123", "expires", 1) # This will expire after 1 second
print("abc" in cache)
print("123" in cache)
sleep(1.1)
print("abc" in cache)
print("123" not... | 22.869565 | 69 | 0.697719 | 85 | 526 | 4.305882 | 0.329412 | 0.087432 | 0.081967 | 0.081967 | 0.185792 | 0.125683 | 0 | 0 | 0 | 0 | 0 | 0.071749 | 0.152091 | 526 | 22 | 70 | 23.909091 | 0.748879 | 0.142586 | 0 | 0.222222 | 0 | 0 | 0.160714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.444444 | 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 | 0 | 1 | 0 | 1 |
78b82887ef0d425b0cbb27a9d2aa3a0363042143 | 784 | py | Python | valid_palindrome_2.py | pranavdave893/Leetcode | 1f30ea37af7b60585d168b15d9397143f53c92a1 | [
"MIT"
] | null | null | null | valid_palindrome_2.py | pranavdave893/Leetcode | 1f30ea37af7b60585d168b15d9397143f53c92a1 | [
"MIT"
] | null | null | null | valid_palindrome_2.py | pranavdave893/Leetcode | 1f30ea37af7b60585d168b15d9397143f53c92a1 | [
"MIT"
] | null | null | null | class Solution(object):
def validPalindrome(self, s):
"""
:type s: str
:rtype: bool
"""
l, r = 0, len(s)-1
count = 0
def get_result(l,r,s,count,forward=True):
while l < r:
if s[l] == s[r]:
l += 1; r -= 1
... | 25.290323 | 55 | 0.389031 | 85 | 784 | 3.552941 | 0.4 | 0.033113 | 0.099338 | 0.109272 | 0.215232 | 0.215232 | 0.15894 | 0 | 0 | 0 | 0 | 0.033679 | 0.507653 | 784 | 30 | 56 | 26.133333 | 0.748705 | 0.031888 | 0 | 0.090909 | 0 | 0 | 0.005502 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.272727 | 0.045455 | 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 |
78c2e3b63db83bc6e8c8804e14d467343773a8df | 2,748 | py | Python | src/subcommands/sync/sync_github_actions_workflow.py | kevin3/cwl-ica | cf706ea42993d563f364c0847ee4b882f8fe067c | [
"MIT"
] | 8 | 2021-12-08T05:33:58.000Z | 2022-03-07T00:40:48.000Z | src/subcommands/sync/sync_github_actions_workflow.py | kevin3/cwl-ica | cf706ea42993d563f364c0847ee4b882f8fe067c | [
"MIT"
] | 34 | 2021-08-11T03:59:33.000Z | 2022-03-10T05:39:26.000Z | src/subcommands/sync/sync_github_actions_workflow.py | kevin3/cwl-ica | cf706ea42993d563f364c0847ee4b882f8fe067c | [
"MIT"
] | 1 | 2022-01-08T07:34:55.000Z | 2022-01-08T07:34:55.000Z | #!/usr/bin/env python3
"""
Sync all workflows across all projects - to be run in github-actions
"""
from subcommands.sync.sync_github_actions import SyncGitHubActions
from utils.logging import get_logger
from utils.repo import get_workflow_yaml_path, get_workflows_dir
from classes.item_workflow import ItemWorkflow
im... | 33.108434 | 118 | 0.632096 | 321 | 2,748 | 5.17134 | 0.389408 | 0.028916 | 0.036145 | 0.045783 | 0.168675 | 0.148193 | 0.108434 | 0.061446 | 0.061446 | 0.061446 | 0 | 0.000522 | 0.30313 | 2,748 | 82 | 119 | 33.512195 | 0.866319 | 0.401747 | 0 | 0.1 | 0 | 0 | 0.048829 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.566667 | 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 |
78cb4927671c4f2db6f5a487a8133373a91c69ea | 13,977 | py | Python | huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/customer_on_demand_resource.py | huaweicloud/huaweicloud-sdk-python-v3 | 7a6270390fcbf192b3882bf763e7016e6026ef78 | [
"Apache-2.0"
] | 64 | 2020-06-12T07:05:07.000Z | 2022-03-30T03:32:50.000Z | huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/customer_on_demand_resource.py | huaweicloud/huaweicloud-sdk-python-v3 | 7a6270390fcbf192b3882bf763e7016e6026ef78 | [
"Apache-2.0"
] | 11 | 2020-07-06T07:56:54.000Z | 2022-01-11T11:14:40.000Z | huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/customer_on_demand_resource.py | huaweicloud/huaweicloud-sdk-python-v3 | 7a6270390fcbf192b3882bf763e7016e6026ef78 | [
"Apache-2.0"
] | 24 | 2020-06-08T11:42:13.000Z | 2022-03-04T06:44:08.000Z | # coding: utf-8
import re
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class CustomerOnDemandResource:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): T... | 31.838269 | 296 | 0.642055 | 1,618 | 13,977 | 5.280593 | 0.114957 | 0.036517 | 0.182584 | 0.079588 | 0.65309 | 0.532889 | 0.491456 | 0.326428 | 0.235019 | 0.213951 | 0 | 0.012946 | 0.270516 | 13,977 | 438 | 297 | 31.910959 | 0.825029 | 0.386707 | 0 | 0.088542 | 0 | 0 | 0.081934 | 0.008793 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.026042 | 0 | 0.3125 | 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 |
78d5d3e503788868b658bb0792b0bcc4d86c2468 | 2,986 | py | Python | tests/contrib/django/test_connection.py | ocelotl/opentelemetry-auto-instr-python-1 | f5c47bd1ee492ffde298794f283031c22891f60b | [
"BSD-3-Clause"
] | 2 | 2020-03-04T17:33:22.000Z | 2021-01-20T14:20:10.000Z | tests/contrib/django/test_connection.py | ocelotl/opentelemetry-auto-instr-python-1 | f5c47bd1ee492ffde298794f283031c22891f60b | [
"BSD-3-Clause"
] | 4 | 2019-11-25T00:11:16.000Z | 2021-05-13T20:43:50.000Z | tests/contrib/django/test_connection.py | ocelotl/opentelemetry-auto-instr-python-1 | f5c47bd1ee492ffde298794f283031c22891f60b | [
"BSD-3-Clause"
] | 3 | 2020-02-05T14:54:25.000Z | 2020-03-23T02:51:27.000Z | # Copyright 2019, OpenTelemetry Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | 34.321839 | 83 | 0.680174 | 387 | 2,986 | 5.116279 | 0.385013 | 0.030303 | 0.032323 | 0.038384 | 0.144949 | 0.113131 | 0.088889 | 0 | 0 | 0 | 0 | 0.009978 | 0.228064 | 2,986 | 86 | 84 | 34.72093 | 0.849024 | 0.25854 | 0 | 0.191489 | 0 | 0 | 0.078512 | 0.010101 | 0 | 0 | 0 | 0 | 0.404255 | 1 | 0.106383 | false | 0 | 0.12766 | 0 | 0.255319 | 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 |
152ce276b0a5207fc683e4c61ca07e44a79c41f0 | 4,259 | py | Python | src/AeroelasticSE/FAST_mdao/DLCrunner - Kopie.py | BecMax/AeroelasticSE_WG | d8063e80e5b1407b29bac010e9746a0b9ac2067e | [
"Apache-2.0"
] | null | null | null | src/AeroelasticSE/FAST_mdao/DLCrunner - Kopie.py | BecMax/AeroelasticSE_WG | d8063e80e5b1407b29bac010e9746a0b9ac2067e | [
"Apache-2.0"
] | null | null | null | src/AeroelasticSE/FAST_mdao/DLCrunner - Kopie.py | BecMax/AeroelasticSE_WG | d8063e80e5b1407b29bac010e9746a0b9ac2067e | [
"Apache-2.0"
] | null | null | null | """
Demonstration of setting up an OpenMDAO 1.x problem using the FST8Workflow component
(in FST8_aeroelasticsolver), which executes the FST8 reader, writer, and wrapper and assigns
all variables in the FAST outlist to OpenMDAO 'Unknowns'. It also
implements an "input config" function which allows the user to put all v... | 40.951923 | 121 | 0.681615 | 585 | 4,259 | 4.839316 | 0.355556 | 0.078418 | 0.03391 | 0.018368 | 0.147651 | 0.10597 | 0.10597 | 0.10597 | 0.079124 | 0.079124 | 0 | 0.016879 | 0.207091 | 4,259 | 103 | 122 | 41.349515 | 0.821439 | 0.203334 | 0 | 0 | 0 | 0 | 0.159501 | 0.018724 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.203125 | null | null | 0.078125 | 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 |
1532f85d50c586f3d78a08c5915bdd814265118d | 394 | py | Python | jobsapp/migrations/0008_auto_20200810_1925.py | rishiparekh/Job-Portal | 0e9f8da132896fdba2f8c051cf79bb2ab5b63de8 | [
"MIT"
] | 348 | 2019-04-11T06:25:21.000Z | 2022-03-29T21:27:54.000Z | jobsapp/migrations/0008_auto_20200810_1925.py | rishiparekh/Job-Portal | 0e9f8da132896fdba2f8c051cf79bb2ab5b63de8 | [
"MIT"
] | 162 | 2020-09-29T09:09:53.000Z | 2020-11-06T04:32:12.000Z | jobsapp/migrations/0008_auto_20200810_1925.py | rishiparekh/Job-Portal | 0e9f8da132896fdba2f8c051cf79bb2ab5b63de8 | [
"MIT"
] | 145 | 2019-04-11T05:15:18.000Z | 2022-03-13T15:10:25.000Z | # Generated by Django 3.0.7 on 2020-08-10 19:25
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('accounts', '0002_auto_20190326_1754'),
('jobsapp', '0007_job_salary'),
]
operations = [
migrations.AlterUniqueTogether(
name='ap... | 20.736842 | 48 | 0.593909 | 40 | 394 | 5.7 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122378 | 0.274112 | 394 | 18 | 49 | 21.888889 | 0.674825 | 0.114213 | 0 | 0 | 1 | 0 | 0.198847 | 0.066282 | 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 |
153321d12374962aa3541d4e713d4949f901ae22 | 2,312 | py | Python | api/AuthorizationAPI.py | TusharMalakar/twitter | 3f463cd69b8143d61b941fd10e4596b7409634c8 | [
"MIT"
] | null | null | null | api/AuthorizationAPI.py | TusharMalakar/twitter | 3f463cd69b8143d61b941fd10e4596b7409634c8 | [
"MIT"
] | 1 | 2019-10-15T19:47:11.000Z | 2019-10-15T19:47:11.000Z | api/AuthorizationAPI.py | TusharMalakar/twitter-api | 3f463cd69b8143d61b941fd10e4596b7409634c8 | [
"MIT"
] | null | null | null | import json
from flask import Blueprint, request
from services.database.DBConn import database
from security.JWT.symmetric import session_cookie
userDB = database.users
auth_api = Blueprint('auth_api', __name__)
@auth_api.route("/create_user", methods=['POST'])
def create_user():
"""Generated End-Point Sample
... | 36.698413 | 109 | 0.637111 | 283 | 2,312 | 5.14841 | 0.367491 | 0.068634 | 0.102951 | 0.096088 | 0.388469 | 0.149623 | 0.050789 | 0.050789 | 0.050789 | 0.050789 | 0 | 0.020708 | 0.206315 | 2,312 | 62 | 110 | 37.290323 | 0.773297 | 0.125865 | 0 | 0.125 | 0 | 0 | 0.267613 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0.275 | 0.1 | 0 | 0.4 | 0.05 | 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 |
153c8c9be110add652592f7ac193660aeb036ab6 | 448 | py | Python | chapter3/udp_client_server/udp_client.py | abbbhucho/Mastering-Python-for-Networking-and-Security | f4fb1131253e9daad8da501c297758fdcedfbac3 | [
"MIT"
] | 98 | 2018-05-13T20:41:43.000Z | 2022-03-31T00:24:01.000Z | chapter3/udp_client_server/udp_client.py | Cyb3rid10ts/Mastering-Python-for-Networking-and-Security | 4cf04d1758f17ae378b5e3422404e5b7a174a243 | [
"MIT"
] | null | null | null | chapter3/udp_client_server/udp_client.py | Cyb3rid10ts/Mastering-Python-for-Networking-and-Security | 4cf04d1758f17ae378b5e3422404e5b7a174a243 | [
"MIT"
] | 62 | 2018-06-19T13:46:34.000Z | 2022-02-11T05:47:24.000Z | #!/usr/bin/env python
#--*--coding:UTF-8 --*--
import socket
UDP_IP_ADDRESS = "127.0.0.1"
UDP_PORT = 6789
buffer=4096
address = (UDP_IP_ADDRESS ,UDP_PORT)
socket_client=socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
while True:
message = raw_input('?: ').strip()
if message=="quit":
break
socket_client.sendt... | 17.92 | 61 | 0.703125 | 65 | 448 | 4.646154 | 0.615385 | 0.15894 | 0.07947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 0.129464 | 448 | 24 | 62 | 18.666667 | 0.735897 | 0.095982 | 0 | 0 | 0 | 0 | 0.057072 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | null | null | 0.071429 | 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 |
1541779734357eedad7dbb6d0e7e28b659ffb345 | 8,798 | py | Python | morea-module-status.py | dport96/scripts | f4fe667de9ba3bb14a5b6bdb41382c2284e3b2b2 | [
"Apache-2.0"
] | 1 | 2018-03-22T22:31:27.000Z | 2018-03-22T22:31:27.000Z | morea-module-status.py | dport96/scripts | f4fe667de9ba3bb14a5b6bdb41382c2284e3b2b2 | [
"Apache-2.0"
] | 2 | 2015-02-27T11:10:41.000Z | 2015-10-20T16:37:40.000Z | morea-module-status.py | dport96/scripts | f4fe667de9ba3bb14a5b6bdb41382c2284e3b2b2 | [
"Apache-2.0"
] | 2 | 2015-01-21T20:24:03.000Z | 2018-11-03T05:40:48.000Z | #!/usr/bin/python
from time import sleep
import curses
import curses.panel
import glob
import os
import subprocess
import re
# Helper function to print markers
def marker(value):
if value == 0:
return "-"
elif value == 1:
return "X"
else:
return " "
# Helper function to convert a string to a "boole... | 30.548611 | 148 | 0.669129 | 1,261 | 8,798 | 4.52498 | 0.214116 | 0.036803 | 0.042061 | 0.014897 | 0.244304 | 0.137224 | 0.102524 | 0.086926 | 0.072906 | 0.064318 | 0 | 0.011554 | 0.173676 | 8,798 | 287 | 149 | 30.655052 | 0.773315 | 0.152648 | 0 | 0.178947 | 0 | 0 | 0.145563 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.005263 | 0.036842 | null | null | 0.036842 | 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 |
1542a929b01d6788665f8f3806e1ea069d612d16 | 413 | py | Python | MyPortfolio/blog/migrations/0004_auto_20200811_2116.py | AbinMuds/MyWebsite | 4ff321e3c11d6159e722c09c72b986a0e0668981 | [
"MIT"
] | null | null | null | MyPortfolio/blog/migrations/0004_auto_20200811_2116.py | AbinMuds/MyWebsite | 4ff321e3c11d6159e722c09c72b986a0e0668981 | [
"MIT"
] | null | null | null | MyPortfolio/blog/migrations/0004_auto_20200811_2116.py | AbinMuds/MyWebsite | 4ff321e3c11d6159e722c09c72b986a0e0668981 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.3 on 2020-08-12 03:16
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0003_auto_20200811_1359'),
]
operations = [
migrations.AlterField(
model_name='post',
name='post_image',
... | 21.736842 | 78 | 0.602906 | 47 | 413 | 5.170213 | 0.808511 | 0.065844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103333 | 0.273608 | 413 | 18 | 79 | 22.944444 | 0.706667 | 0.108959 | 0 | 0 | 1 | 0 | 0.125683 | 0.062842 | 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 |
154c258983b5fe88e2a56724a18a3c2005bb6612 | 1,959 | py | Python | run.py | KMU-AELAB-MusicProject/MusicGeneration_VAE | 2dbb48c26019aabd164e63fa02566383f9a22199 | [
"MIT"
] | 1 | 2019-09-20T00:41:23.000Z | 2019-09-20T00:41:23.000Z | run.py | KMU-AELAB-MusicProject/MusicGeneration_VAE | 2dbb48c26019aabd164e63fa02566383f9a22199 | [
"MIT"
] | 1 | 2019-09-18T10:34:53.000Z | 2019-12-18T07:05:12.000Z | run.py | KMU-AELAB-MusicProject/MusicGeneration_VAE | 2dbb48c26019aabd164e63fa02566383f9a22199 | [
"MIT"
] | null | null | null | import os
import sys
import pickle
import argparse
import importlib
import pypianoroll
import numpy as np
import matplotlib.pyplot as plt
import tensorflow as tf
from config import *
from src.phrase_discriminator import PhraseDiscriminatorModel
parser = argparse.ArgumentParser()
parser.add_argument('--load_model', h... | 34.982143 | 113 | 0.718734 | 286 | 1,959 | 4.751748 | 0.405594 | 0.02649 | 0.050037 | 0.03532 | 0.130243 | 0.103753 | 0.103753 | 0.103753 | 0.103753 | 0.103753 | 0 | 0.027893 | 0.139867 | 1,959 | 55 | 114 | 35.618182 | 0.778635 | 0 | 0 | 0 | 0 | 0 | 0.146142 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.025641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
154f852cf9930974a1daebd3767a30bfd59bdcb7 | 460 | py | Python | apidaora/options.py | SubjeBilisim/apidaora | 1beca9d4274c5bf4119b12744b6aa6ea18025b28 | [
"MIT"
] | 120 | 2019-09-19T14:17:27.000Z | 2022-03-26T13:55:39.000Z | apidaora/options.py | dutradda/dataclassesapi | 32cdf5ada9a36cf8a3e9f063c47abbe5fe3ae9cc | [
"MIT"
] | 24 | 2019-09-25T23:52:09.000Z | 2021-08-29T01:00:36.000Z | apidaora/options.py | dutradda/dataclassesapi | 32cdf5ada9a36cf8a3e9f063c47abbe5fe3ae9cc | [
"MIT"
] | 10 | 2019-09-26T09:17:49.000Z | 2021-02-17T10:41:47.000Z | from typing import Callable, List
from .header import Header
from .method import MethodType
from .responses import Response, no_content
class AllowHeader(Header, type=str, http_name='allow'):
...
def make_options_controller(
methods: List[MethodType],
) -> Callable[[], Response]:
def controller() -> Re... | 21.904762 | 71 | 0.680435 | 53 | 460 | 5.811321 | 0.584906 | 0.058442 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206522 | 460 | 20 | 72 | 23 | 0.843836 | 0 | 0 | 0 | 0 | 0 | 0.013043 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0.071429 | 0.642857 | 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 |
154fa5ee47072c1d61d485fd2736098ea9424266 | 992 | py | Python | setup.py | CRiva/lxml_to_dict | 53bde1cb9a7c212152b536abf837e6538e917bd0 | [
"MIT"
] | 1 | 2019-06-21T19:35:58.000Z | 2019-06-21T19:35:58.000Z | setup.py | CRiva/lxml_to_dict | 53bde1cb9a7c212152b536abf837e6538e917bd0 | [
"MIT"
] | null | null | null | setup.py | CRiva/lxml_to_dict | 53bde1cb9a7c212152b536abf837e6538e917bd0 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from glob import glob
from os.path import basename, splitext
from setuptools import find_packages, setup
setup(name='lxml_to_dict',
version="0.1.2",
description='A simple conversion of an lxml.objectify element to a python dictionary.',
packages=find_packages('lib'),
pac... | 36.740741 | 93 | 0.636089 | 115 | 992 | 5.373913 | 0.634783 | 0.038835 | 0.032362 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010309 | 0.217742 | 992 | 26 | 94 | 38.153846 | 0.786082 | 0.021169 | 0 | 0 | 0 | 0 | 0.418557 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.130435 | 0 | 0.130435 | 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 |
1578788c347842dbcc0fd095b4d981d027f47d68 | 706 | py | Python | dashboard/migrations/0049_auto_20210902_0254.py | zidandff/primaseru | a14fa7326098af220e0671c3bf3870b4016ab4bf | [
"MIT"
] | null | null | null | dashboard/migrations/0049_auto_20210902_0254.py | zidandff/primaseru | a14fa7326098af220e0671c3bf3870b4016ab4bf | [
"MIT"
] | null | null | null | dashboard/migrations/0049_auto_20210902_0254.py | zidandff/primaseru | a14fa7326098af220e0671c3bf3870b4016ab4bf | [
"MIT"
] | 2 | 2021-08-10T09:09:58.000Z | 2021-08-10T10:54:51.000Z | # Generated by Django 3.2.5 on 2021-09-02 02:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dashboard', '0048_auto_20210831_0719'),
]
operations = [
migrations.AddField(
model_name='participantcount',
name='y... | 29.416667 | 153 | 0.628895 | 78 | 706 | 5.538462 | 0.679487 | 0.041667 | 0.115741 | 0.134259 | 0.143519 | 0.143519 | 0 | 0 | 0 | 0 | 0 | 0.064639 | 0.254958 | 706 | 23 | 154 | 30.695652 | 0.756654 | 0.063739 | 0 | 0.235294 | 1 | 0 | 0.204856 | 0.034901 | 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 |
157e093a993bfb3f7355e4c7c7eea7244f5cc537 | 1,904 | py | Python | pytpp/attributes/amazon_app.py | Venafi/pytpp | 42af655b2403b8c9447c86962abd4aaa0201f646 | [
"MIT"
] | 4 | 2022-02-04T23:58:55.000Z | 2022-02-15T18:53:08.000Z | pytpp/attributes/amazon_app.py | Venafi/pytpp | 42af655b2403b8c9447c86962abd4aaa0201f646 | [
"MIT"
] | null | null | null | pytpp/attributes/amazon_app.py | Venafi/pytpp | 42af655b2403b8c9447c86962abd4aaa0201f646 | [
"MIT"
] | null | null | null | from pytpp.attributes._helper import IterableMeta, Attribute
from pytpp.attributes.application_base import ApplicationBaseAttributes
class AmazonAppAttributes(ApplicationBaseAttributes, metaclass=IterableMeta):
__config_class__ = "Amazon App"
access_key_id = Attribute('Access Key ID', min_version='16.1')
aws_crede... | 63.466667 | 91 | 0.783088 | 256 | 1,904 | 5.566406 | 0.246094 | 0.161404 | 0.143158 | 0.155088 | 0.208421 | 0.128421 | 0 | 0 | 0 | 0 | 0 | 0.039792 | 0.089286 | 1,904 | 29 | 92 | 65.655172 | 0.782007 | 0 | 0 | 0 | 0 | 0 | 0.259454 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.074074 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
158690c71be72dd1e064086512ae80616f54b055 | 5,525 | py | Python | frads/geombsdf.py | LBNL-ETA/frads | dbd9980c7cfebd363089180d8fb1b7107e73ec92 | [
"BSD-3-Clause-LBNL"
] | 8 | 2019-11-13T22:26:45.000Z | 2022-03-23T15:30:37.000Z | frads/geombsdf.py | LBNL-ETA/frads | dbd9980c7cfebd363089180d8fb1b7107e73ec92 | [
"BSD-3-Clause-LBNL"
] | null | null | null | frads/geombsdf.py | LBNL-ETA/frads | dbd9980c7cfebd363089180d8fb1b7107e73ec92 | [
"BSD-3-Clause-LBNL"
] | 2 | 2021-08-10T18:22:04.000Z | 2021-08-30T23:16:27.000Z | """Call genBSDF to generate BSDF."""
import argparse
import math
import logging
import os
import subprocess as sp
from frads import radutil, radgeom, util
"""
TODO:
1. New feature for custom input period geometry
2. New feature for custom section drawing
"""
logger = logging.getLogger("frads")
def get_pa... | 45.661157 | 130 | 0.636561 | 735 | 5,525 | 4.638095 | 0.244898 | 0.029041 | 0.054855 | 0.0132 | 0.310062 | 0.290114 | 0.239953 | 0.239953 | 0.191258 | 0.191258 | 0 | 0.018785 | 0.219548 | 5,525 | 120 | 131 | 46.041667 | 0.7718 | 0.054118 | 0 | 0.141414 | 1 | 0.030303 | 0.125466 | 0.01453 | 0 | 0 | 0 | 0.008333 | 0 | 1 | 0.020202 | false | 0.020202 | 0.060606 | 0 | 0.090909 | 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 |
1586a19872fdb12829f2ae3f19a60b139090bae0 | 621 | py | Python | Dataset/Leetcode/train/1/3.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/1/3.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/1/3.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution:
def XXX(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: List[int]
"""
sorted_id = sorted(range(len(nums)), key=lambda k: nums[k])
head = 0
tail = len(nums) - 1
sum_result = nums[sorted_id[head]] + nums[... | 31.05 | 70 | 0.516908 | 77 | 621 | 4.012987 | 0.363636 | 0.18123 | 0.15534 | 0.090615 | 0.271845 | 0.271845 | 0.271845 | 0.271845 | 0.271845 | 0.271845 | 0 | 0.01005 | 0.359098 | 621 | 19 | 71 | 32.684211 | 0.766332 | 0 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | 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 |
1589452f6c9047186f543d85259120c5f47b4d6d | 830 | py | Python | training/pretrainav/weightsampling.py | rub-ksv/-lrs_avsr1_local- | c743803d5d09461f72ab7dbaf0af73a7077f3c0e | [
"Apache-2.0"
] | 1 | 2022-03-15T02:14:24.000Z | 2022-03-15T02:14:24.000Z | training/pretrainav/weightsampling.py | rub-ksv/lrs_avsr1_local | c743803d5d09461f72ab7dbaf0af73a7077f3c0e | [
"Apache-2.0"
] | null | null | null | training/pretrainav/weightsampling.py | rub-ksv/lrs_avsr1_local | c743803d5d09461f72ab7dbaf0af73a7077f3c0e | [
"Apache-2.0"
] | 1 | 2022-03-14T11:44:22.000Z | 2022-03-14T11:44:22.000Z | import torch
from espnet.nets.pytorch_backend.transformer.embedding import PositionalEncoding
class Conv2dSubsampling(torch.nn.Module):
"""Convolutional 2D subsampling (to 1/4 length)
:param int idim: input dim
:param int odim: output dim
:param flaot dropout_rate: dropout rate
"""
def __in... | 26.774194 | 80 | 0.645783 | 108 | 830 | 4.824074 | 0.472222 | 0.038388 | 0.069098 | 0.065259 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00813 | 0.259036 | 830 | 30 | 81 | 27.666667 | 0.839024 | 0.361446 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
158a3edf73e7901c7286f2d8fc720c245f532af0 | 1,320 | py | Python | generators_t.py | aaparikh/Intermediate-Python-Practice | 6f49bea8f677e7ed500cd1ec91df4c8531832abb | [
"Apache-2.0"
] | 1 | 2022-03-08T16:35:51.000Z | 2022-03-08T16:35:51.000Z | generators_t.py | aaparikh/Intermediate-Python-Practice | 6f49bea8f677e7ed500cd1ec91df4c8531832abb | [
"Apache-2.0"
] | null | null | null | generators_t.py | aaparikh/Intermediate-Python-Practice | 6f49bea8f677e7ed500cd1ec91df4c8531832abb | [
"Apache-2.0"
] | null | null | null | #The generate items one at a time when you asl for it
#thus they are memory efficient and very useful
#If the body of a def contains yield, the function automatically becomes a generator function.
#what yield does is pauses and return the value and then resumes it at the next function call
def my_generator():
yiel... | 25.384615 | 102 | 0.618939 | 207 | 1,320 | 3.908213 | 0.454106 | 0.019778 | 0.017305 | 0.029666 | 0.123609 | 0.091471 | 0.091471 | 0.091471 | 0.091471 | 0 | 0 | 0.026445 | 0.226515 | 1,320 | 52 | 103 | 25.384615 | 0.765916 | 0.432576 | 0 | 0.176471 | 1 | 0 | 0.186486 | 0.089189 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.058824 | 0 | 0.205882 | 0.176471 | 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 |
158b2ff634defddea0014894f9163d9b10975d94 | 2,392 | py | Python | posmatch/core.py | mportesdev/posmatch | cbc447ba323587ae3badb96d225a0ad5ff6074a4 | [
"MIT"
] | null | null | null | posmatch/core.py | mportesdev/posmatch | cbc447ba323587ae3badb96d225a0ad5ff6074a4 | [
"MIT"
] | null | null | null | posmatch/core.py | mportesdev/posmatch | cbc447ba323587ae3badb96d225a0ad5ff6074a4 | [
"MIT"
] | null | null | null | """
Enable positional sub-pattern matching for objects of a custom class by
setting the `__match_args__` class attribute.
This module provides the following functions and classes:
pos_match - class decorator setting the `__match_args__` class attribute
PosMatchMeta - metaclass setting the `__match_args__` ... | 28.47619 | 79 | 0.69607 | 324 | 2,392 | 4.719136 | 0.280864 | 0.117724 | 0.070634 | 0.086985 | 0.595814 | 0.554611 | 0.533028 | 0.499673 | 0.453891 | 0.453891 | 0 | 0.000541 | 0.226589 | 2,392 | 83 | 80 | 28.819277 | 0.825946 | 0.590719 | 0 | 0.25 | 0 | 0 | 0.031782 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.178571 | false | 0 | 0.071429 | 0.035714 | 0.571429 | 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 |
158fbe6305bd74633a445e3126710e48c6cbcebc | 1,963 | py | Python | reefledge/ftp_client/ftp_client_private.py | Reefledge/reefledge | dfd758a74420514ff98e2430ffc1f6e3e6009bea | [
"MIT"
] | 1 | 2021-09-23T10:44:32.000Z | 2021-09-23T10:44:32.000Z | reefledge/ftp_client/ftp_client_private.py | Reefledge/reefledge | dfd758a74420514ff98e2430ffc1f6e3e6009bea | [
"MIT"
] | null | null | null | reefledge/ftp_client/ftp_client_private.py | Reefledge/reefledge | dfd758a74420514ff98e2430ffc1f6e3e6009bea | [
"MIT"
] | null | null | null | from typing import final, List
import os
from .ftp_client import FTPClient
@final
class FTPClientPrivate(FTPClient):
user_name: str
password: str
host_address: str
def __init__(
self,
user_name: str,
password: str,
host_address: str) -> None:
... | 28.449275 | 80 | 0.53133 | 211 | 1,963 | 4.649289 | 0.303318 | 0.089704 | 0.106014 | 0.038736 | 0.140673 | 0.140673 | 0.140673 | 0.140673 | 0 | 0 | 0 | 0 | 0.320428 | 1,963 | 68 | 81 | 28.867647 | 0.735382 | 0 | 0 | 0.196078 | 0 | 0 | 0.059091 | 0 | 0 | 0 | 0 | 0 | 0.019608 | 1 | 0.117647 | false | 0.117647 | 0.058824 | 0 | 0.254902 | 0.019608 | 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 |
158fcb865147faa001dc7906b282fe299c3e2a7d | 5,547 | py | Python | factory_search.py | IdeaBot/Robocraft | a31c289fd09e7a9f5d449578fd27ebc423808f21 | [
"MIT"
] | null | null | null | factory_search.py | IdeaBot/Robocraft | a31c289fd09e7a9f5d449578fd27ebc423808f21 | [
"MIT"
] | null | null | null | factory_search.py | IdeaBot/Robocraft | a31c289fd09e7a9f5d449578fd27ebc423808f21 | [
"MIT"
] | null | null | null | # Notes, examples and documentation for factory actions
from libs import command
import json, requests
# NOTE: token is an old dummy account token stored in the JS code. Proper authentication is shown in login()
token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJQdWJsaWNJZCI6IjEyMyIsIkRpc3BsYXlOYW1lIjoiVGVzdCIsIlJvYm9j... | 44.376 | 281 | 0.686497 | 661 | 5,547 | 5.733737 | 0.479576 | 0.009235 | 0.019789 | 0.022164 | 0.194195 | 0.184697 | 0.173615 | 0.103958 | 0.103958 | 0.103958 | 0 | 0.118132 | 0.212547 | 5,547 | 124 | 282 | 44.733871 | 0.749542 | 0.266991 | 0 | 0 | 0 | 0 | 0.402261 | 0.197473 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0.076923 | 0.076923 | 0 | 0.346154 | 0.038462 | 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 |
1595d29617aee6e83a31401b2da6c619dcb8145f | 242 | py | Python | examples/pearson.py | AlGoulas/torchknickknacks | d7c70b7af9845ab24bd0f8d4d0e230918bac7144 | [
"MIT"
] | 4 | 2021-11-23T15:15:07.000Z | 2022-01-31T14:37:16.000Z | examples/pearson.py | AlGoulas/torchknickknacks | d7c70b7af9845ab24bd0f8d4d0e230918bac7144 | [
"MIT"
] | null | null | null | examples/pearson.py | AlGoulas/torchknickknacks | d7c70b7af9845ab24bd0f8d4d0e230918bac7144 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import torch
from torchknickknacks import metrics
x1 = torch.rand(100,)
x2 = torch.rand(100,)
r = metrics.pearson_coeff(x1, x2)
x = torch.rand(100, 30)
r_pairs = metrics.pearson_coeff_pairs(x)
| 20.166667 | 40 | 0.710744 | 39 | 242 | 4.307692 | 0.564103 | 0.160714 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080952 | 0.132231 | 242 | 11 | 41 | 22 | 0.719048 | 0.177686 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 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 |
1596207b17068d4cbefa624e9627808cf9a16330 | 2,201 | py | Python | server/tests/resources/test_user_resources.py | ErickGallani/lunchticketcontrol | d74effbc446607e574b059b59920956bd7dbe59e | [
"MIT"
] | null | null | null | server/tests/resources/test_user_resources.py | ErickGallani/lunchticketcontrol | d74effbc446607e574b059b59920956bd7dbe59e | [
"MIT"
] | null | null | null | server/tests/resources/test_user_resources.py | ErickGallani/lunchticketcontrol | d74effbc446607e574b059b59920956bd7dbe59e | [
"MIT"
] | null | null | null | """ Tests for User resources """
import unittest
from app import get_app, create_app, db
class UserResourceTestCase(unittest.TestCase):
""" User resources test case """
def setUp(self):
self.app = get_app(create_app)(config_name="testing")
self.test_app = self.app.test_client()
with s... | 36.081967 | 79 | 0.628805 | 267 | 2,201 | 4.891386 | 0.29588 | 0.092649 | 0.059724 | 0.078101 | 0.454824 | 0.375957 | 0.289433 | 0.289433 | 0.207504 | 0.168453 | 0 | 0.00947 | 0.280327 | 2,201 | 60 | 80 | 36.683333 | 0.815025 | 0.149932 | 0 | 0.25 | 0 | 0 | 0.128751 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.194444 | false | 0.194444 | 0.055556 | 0.027778 | 0.305556 | 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 |
15981a0a3924b0e51e48367e721153ba071f358b | 1,668 | py | Python | python2/examples/autocompile.py | openEuler-BaseService/pyinotify | d6c8b832177945106901fb6c0cd5ae7d54df8247 | [
"MIT"
] | 1,509 | 2015-01-04T01:20:06.000Z | 2022-03-29T08:06:41.000Z | python2/examples/autocompile.py | openEuler-BaseService/pyinotify | d6c8b832177945106901fb6c0cd5ae7d54df8247 | [
"MIT"
] | 98 | 2015-01-09T20:58:57.000Z | 2022-03-29T11:53:44.000Z | python2/examples/autocompile.py | openEuler-BaseService/pyinotify | d6c8b832177945106901fb6c0cd5ae7d54df8247 | [
"MIT"
] | 333 | 2015-01-02T09:22:01.000Z | 2022-03-24T01:51:40.000Z | #!/usr/bin/env python
#
# Usage:
# ./autocompile.py path ext1,ext2,extn cmd
#
# Blocks monitoring |path| and its subdirectories for modifications on
# files ending with suffix |extk|. Run |cmd| each time a modification
# is detected. |cmd| is optional and defaults to 'make'.
#
# Example:
# ./autocompile.py /my-late... | 28.271186 | 76 | 0.660072 | 221 | 1,668 | 4.882353 | 0.497738 | 0.032437 | 0.027804 | 0.044486 | 0.050046 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007639 | 0.215228 | 1,668 | 58 | 77 | 28.758621 | 0.816654 | 0.260192 | 0 | 0 | 0 | 0 | 0.099507 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.09375 | null | null | 0.09375 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.