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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d6d85c8d2db9f14b03f1288e85dea2764be5492c | 1,807 | py | Python | lc0048_rotate_image.py | bowen0701/python-algorithms-data-structures | e625f59a9fc59e4728825078d4434a7968a724e5 | [
"BSD-2-Clause"
] | 8 | 2019-03-18T06:37:24.000Z | 2022-01-30T07:50:58.000Z | lc0048_rotate_image.py | bowen0701/python-algorithms-data-structures | e625f59a9fc59e4728825078d4434a7968a724e5 | [
"BSD-2-Clause"
] | null | null | null | lc0048_rotate_image.py | bowen0701/python-algorithms-data-structures | e625f59a9fc59e4728825078d4434a7968a724e5 | [
"BSD-2-Clause"
] | null | null | null | """Leetcode 48. Rotate Image
Medium
URL: https://leetcode.com/problems/rotate-image/
You are given an n x n 2D matrix representing an image.
Rotate the image by 90 degrees (clockwise).
Note:
You have to rotate the image in-place, which means you have to modify the
input 2D matrix directly. DO NOT allocate another ... | 20.770115 | 80 | 0.55451 | 264 | 1,807 | 3.765152 | 0.371212 | 0.035211 | 0.039235 | 0.018109 | 0.287726 | 0.177062 | 0.177062 | 0.177062 | 0.177062 | 0.177062 | 0 | 0.085327 | 0.306032 | 1,807 | 86 | 81 | 21.011628 | 0.707337 | 0.059768 | 0 | 0.24 | 0 | 0 | 0.01087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.08 | 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 |
d6ddb52453c385cef4c9ace7ff600b5be8205f52 | 2,449 | py | Python | events/migrations/0001_initial.py | LoveProgramming-Limited/Django-CRM-2 | 7252460fad9ac38619304d0cdd3e5af59745e26e | [
"MIT"
] | null | null | null | events/migrations/0001_initial.py | LoveProgramming-Limited/Django-CRM-2 | 7252460fad9ac38619304d0cdd3e5af59745e26e | [
"MIT"
] | 1 | 2021-11-27T02:53:06.000Z | 2021-11-28T16:51:15.000Z | events/migrations/0001_initial.py | LoveProgramming-Limited/Django-CRM-2 | 7252460fad9ac38619304d0cdd3e5af59745e26e | [
"MIT"
] | null | null | null | # Generated by Django 2.1.7 on 2019-06-03 05:58
import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('contacts', '0003_merge_20190214_1427'),
migrations.swappable_dep... | 53.23913 | 120 | 0.548387 | 231 | 2,449 | 5.645022 | 0.402597 | 0.034509 | 0.03681 | 0.048313 | 0.15184 | 0.070552 | 0.070552 | 0 | 0 | 0 | 0 | 0.021972 | 0.312372 | 2,449 | 45 | 121 | 54.422222 | 0.752375 | 0.018375 | 0 | 0 | 1 | 0 | 0.171107 | 0.018734 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.179487 | 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 |
d6e1c43845e3a233c488b48e2dae62446811d7e2 | 332 | py | Python | chapter8/exercises/EG8-13 Average Sales.py | munnep/begin_to_code_with_python | 3ef14d90785526b6b26d262a7627eee73791d7d0 | [
"MIT"
] | null | null | null | chapter8/exercises/EG8-13 Average Sales.py | munnep/begin_to_code_with_python | 3ef14d90785526b6b26d262a7627eee73791d7d0 | [
"MIT"
] | null | null | null | chapter8/exercises/EG8-13 Average Sales.py | munnep/begin_to_code_with_python | 3ef14d90785526b6b26d262a7627eee73791d7d0 | [
"MIT"
] | null | null | null | # EG8-13 Average Sales
# test sales data
sales=[50,54,29,33,22,100,45,54,89,75]
def average_sales():
'''
Print out the average sales value
'''
total=0
for sales_value in sales:
total = total+sales_value
average_sales=total/len(sales)
print('Average sales are:', average_sales)
aver... | 19.529412 | 46 | 0.662651 | 51 | 332 | 4.196078 | 0.509804 | 0.392523 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096154 | 0.216867 | 332 | 16 | 47 | 20.75 | 0.726923 | 0.213855 | 0 | 0 | 0 | 0 | 0.07377 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.125 | 0.125 | 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 |
d6e23afff20f0d63ec3d60a03a6f1433f1eeb7f5 | 2,774 | py | Python | survol/sources_types/win32/win32_local_groups.py | AugustinMascarelli/survol | 7a822900e82d1e6f016dba014af5741558b78f15 | [
"BSD-3-Clause"
] | null | null | null | survol/sources_types/win32/win32_local_groups.py | AugustinMascarelli/survol | 7a822900e82d1e6f016dba014af5741558b78f15 | [
"BSD-3-Clause"
] | null | null | null | survol/sources_types/win32/win32_local_groups.py | AugustinMascarelli/survol | 7a822900e82d1e6f016dba014af5741558b78f15 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
"""
Windows local groups
"""
from __future__ import generators
import lib_util
import lib_uris
import lib_common
from lib_properties import pc
import win32net
import win32security
from sources_types import Win32_Group as survol_Win32_Group
from sources_types import Win32_UserAccount as survol_W... | 30.822222 | 120 | 0.73504 | 338 | 2,774 | 5.872781 | 0.381657 | 0.04534 | 0.035264 | 0.024181 | 0.082116 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013531 | 0.174117 | 2,774 | 89 | 121 | 31.168539 | 0.852903 | 0.245133 | 0 | 0.074074 | 0 | 0 | 0.02027 | 0 | 0 | 0 | 0 | 0.011236 | 0 | 1 | 0.018519 | false | 0 | 0.166667 | 0 | 0.185185 | 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 |
d6e6425d492a9396074748f6f4074aeeaaabed61 | 344 | py | Python | settings.py | iPrathamKumkar/Real-Time-Sentiment-Analysis | a0fa4095ef2ed5d6dcbd4db443df8d0e78222644 | [
"MIT"
] | null | null | null | settings.py | iPrathamKumkar/Real-Time-Sentiment-Analysis | a0fa4095ef2ed5d6dcbd4db443df8d0e78222644 | [
"MIT"
] | null | null | null | settings.py | iPrathamKumkar/Real-Time-Sentiment-Analysis | a0fa4095ef2ed5d6dcbd4db443df8d0e78222644 | [
"MIT"
] | 1 | 2020-08-20T06:40:59.000Z | 2020-08-20T06:40:59.000Z | TRACK_WORDS = ["coronavirus"]
TABLE_NAME = "coronavirus"
TABLE_ATTRIBUTES = "id_str VARCHAR(255), created_at DATETIME, text VARCHAR(255), \
polarity INT, subjectivity INT, user_location VARCHAR(255), \
user_description VARCHAR(255), longitude DOUBLE, latitude DOUBLE, \
retweet_count ... | 57.333333 | 82 | 0.709302 | 40 | 344 | 5.875 | 0.65 | 0.170213 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 0.197674 | 344 | 6 | 83 | 57.333333 | 0.807971 | 0 | 0 | 0 | 0 | 0 | 0.063768 | 0 | 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 |
d6e6dc9b8925a657d19e3432bfc20787f226750a | 3,181 | py | Python | samples/IndexFiles.py | fnp/pylucene | fb16ac375de5479dec3919a5559cda02c899e387 | [
"Apache-2.0"
] | 15 | 2015-05-21T09:28:01.000Z | 2022-03-18T23:41:49.000Z | samples/IndexFiles.py | fnp/pylucene | fb16ac375de5479dec3919a5559cda02c899e387 | [
"Apache-2.0"
] | null | null | null | samples/IndexFiles.py | fnp/pylucene | fb16ac375de5479dec3919a5559cda02c899e387 | [
"Apache-2.0"
] | 13 | 2015-04-18T23:05:11.000Z | 2021-11-29T21:23:26.000Z | #!/usr/bin/env python
import sys, os, lucene, threading, time
from datetime import datetime
"""
This class is loosely based on the Lucene (java implementation) demo class
org.apache.lucene.demo.IndexFiles. It will take a directory as an argument
and will index all of the files in that directory and downward recursi... | 36.563218 | 96 | 0.539139 | 333 | 3,181 | 5.078078 | 0.402402 | 0.058545 | 0.021289 | 0.03016 | 0.086339 | 0.054406 | 0.054406 | 0.054406 | 0.054406 | 0 | 0 | 0.008929 | 0.366237 | 3,181 | 86 | 97 | 36.988372 | 0.829861 | 0.006287 | 0 | 0.121212 | 0 | 0 | 0.047392 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.030303 | null | null | 0.136364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d6fb35e062f27a154d20af33c5506b5840566599 | 4,325 | py | Python | scripts/validations.py | muffinresearch/addons-server | 66613e9262a5e9475254091552de28a53b5b4072 | [
"BSD-3-Clause"
] | 1 | 2015-10-29T06:55:20.000Z | 2015-10-29T06:55:20.000Z | scripts/validations.py | magopian/olympia | 70cad15111a89e3d5c715cbade8925b12d1b98dc | [
"BSD-3-Clause"
] | null | null | null | scripts/validations.py | magopian/olympia | 70cad15111a89e3d5c715cbade8925b12d1b98dc | [
"BSD-3-Clause"
] | null | null | null | """
Process validation data retrieved using fetch_validation_data.py. Two types
of data are expected. A file at `validations/unlisted-addons.txt` that contains
the guid of each unlisted addon and input on STDIN which has the validation
JSON data for each validation to check. See fetch_validation_data.py for how
this da... | 29.623288 | 79 | 0.641156 | 546 | 4,325 | 4.943223 | 0.28022 | 0.041497 | 0.024454 | 0.040015 | 0.105224 | 0.05854 | 0.023712 | 0 | 0 | 0 | 0 | 0.004017 | 0.251792 | 4,325 | 145 | 80 | 29.827586 | 0.830037 | 0.042312 | 0 | 0.076923 | 0 | 0 | 0.127723 | 0.009251 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.032967 | null | null | 0.021978 | 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 |
ba3b9a94d40f67be02bcf486b371f0272e3e7f83 | 7,299 | py | Python | tools_parse_ifd.py | gnms/MyPerfectProject | b78d63239c4ae84ad4a6dbdacefaceceee1fb595 | [
"MIT"
] | null | null | null | tools_parse_ifd.py | gnms/MyPerfectProject | b78d63239c4ae84ad4a6dbdacefaceceee1fb595 | [
"MIT"
] | null | null | null | tools_parse_ifd.py | gnms/MyPerfectProject | b78d63239c4ae84ad4a6dbdacefaceceee1fb595 | [
"MIT"
] | null | null | null | import xml.dom.minidom
doc = xml.dom.minidom.parse("mqtt_topic.xml")
file = open("mqtt_topic.py", "w+")
def get_childnode(node):
childs = []
for n in node.childNodes:
if type(n) == xml.dom.minidom.Element:
childs.append(n.tagName)
return childs
def print_subscribe_all(node, parent_n... | 41.237288 | 122 | 0.465132 | 765 | 7,299 | 4.278431 | 0.129412 | 0.203483 | 0.164986 | 0.039719 | 0.58784 | 0.504736 | 0.311335 | 0.225176 | 0.128017 | 0.079743 | 0 | 0.000904 | 0.393479 | 7,299 | 176 | 123 | 41.471591 | 0.738423 | 0.008768 | 0 | 0.34058 | 0 | 0.007246 | 0.344303 | 0.092367 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021739 | false | 0 | 0.021739 | 0 | 0.050725 | 0.021739 | 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 |
ba3ee6f434ed25a56f2f9108776090a71bdb957b | 4,292 | py | Python | karatsuba_pol.py | gbanegas/codes | 7e10dd3f9ecb109d4cfbf44d0dd04d919bd1e949 | [
"Apache-2.0"
] | null | null | null | karatsuba_pol.py | gbanegas/codes | 7e10dd3f9ecb109d4cfbf44d0dd04d919bd1e949 | [
"Apache-2.0"
] | null | null | null | karatsuba_pol.py | gbanegas/codes | 7e10dd3f9ecb109d4cfbf44d0dd04d919bd1e949 | [
"Apache-2.0"
] | null | null | null | import math
DEBUG = 0
class Karatsuba():
def __init__(self):
self.count_xor = 0
self.count_and = 0
def get_nr_xor(self):
return self.count_xor
def get_nr_and(self):
return self.count_and
def print_pol(self,p1):
""" Print polynomials in a human readable way.
... | 32.270677 | 101 | 0.532153 | 694 | 4,292 | 3.064842 | 0.12536 | 0.039492 | 0.056417 | 0.098731 | 0.307005 | 0.213446 | 0.099201 | 0.042313 | 0.042313 | 0.042313 | 0 | 0.075026 | 0.319897 | 4,292 | 132 | 102 | 32.515152 | 0.653649 | 0.058481 | 0 | 0.232558 | 0 | 0 | 0.115823 | 0.056449 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.011628 | null | null | 0.151163 | 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 |
ba3f256d39c230f4be6888f4d3d5db82cdcf8a76 | 23,783 | py | Python | digicert_express/parsers/base.py | digicert/express_install | c1cde3739c85dbcfcc1afb51ed9696eb31c7a39f | [
"MIT"
] | 3 | 2015-03-21T20:07:06.000Z | 2015-11-28T07:30:29.000Z | digicert_express/parsers/base.py | digicert/express_install | c1cde3739c85dbcfcc1afb51ed9696eb31c7a39f | [
"MIT"
] | null | null | null | digicert_express/parsers/base.py | digicert/express_install | c1cde3739c85dbcfcc1afb51ed9696eb31c7a39f | [
"MIT"
] | null | null | null | import augeas
import os
import sys
import shutil
import re
import fnmatch
from collections import OrderedDict
import express_utils
from express_utils import LOGGER
from express_utils import APACHE_SERVICES
from express_utils import replace_chars
class ParserException(Exception):
def __init__(self, message, direc... | 44.288641 | 130 | 0.570281 | 2,937 | 23,783 | 4.435478 | 0.128703 | 0.029554 | 0.014585 | 0.012973 | 0.311277 | 0.243418 | 0.203577 | 0.162509 | 0.125509 | 0.113533 | 0 | 0.009504 | 0.32313 | 23,783 | 536 | 131 | 44.371269 | 0.799727 | 0.071942 | 0 | 0.253968 | 0 | 0.002646 | 0.139164 | 0.03177 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.031746 | null | null | 0.007937 | 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 |
ba4117a43e33cc9f8f74803f4cff8dea31052fe5 | 449 | py | Python | tornados.py | wbthomason/minigrade | c3c727a125ac6cc363ebfe5f54df9b714b7440a6 | [
"MIT"
] | null | null | null | tornados.py | wbthomason/minigrade | c3c727a125ac6cc363ebfe5f54df9b714b7440a6 | [
"MIT"
] | null | null | null | tornados.py | wbthomason/minigrade | c3c727a125ac6cc363ebfe5f54df9b714b7440a6 | [
"MIT"
] | null | null | null | from tornado.wsgi import WSGIContainer
from tornado.httpserver import HTTPServer
from tornado.ioloop import IOLoop
from minigrade import minigrade, PORT_NUMBER
import logging
logging.basicConfig(filename='grader.log',level=logging.DEBUG)
logging.debug('Started logging on port: ' + str(PORT_NUMBER))
http_server = HTTP... | 29.933333 | 62 | 0.819599 | 57 | 449 | 6.368421 | 0.473684 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082405 | 449 | 14 | 63 | 32.071429 | 0.881068 | 0 | 0 | 0 | 0 | 0 | 0.11804 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.454545 | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ba43e9f8cd808eb9dc52475c78be8760ab676f79 | 1,361 | py | Python | workouttracker/views/index.py | Adam-Beaumont/openWorkoutTracker | d38cedf98ec7933eb41fd8852d08a54caef1b859 | [
"MIT"
] | null | null | null | workouttracker/views/index.py | Adam-Beaumont/openWorkoutTracker | d38cedf98ec7933eb41fd8852d08a54caef1b859 | [
"MIT"
] | null | null | null | workouttracker/views/index.py | Adam-Beaumont/openWorkoutTracker | d38cedf98ec7933eb41fd8852d08a54caef1b859 | [
"MIT"
] | null | null | null | from datetime import date, timedelta
from django.contrib.auth.mixins import LoginRequiredMixin
from django.db import models
from django.views import generic
from django.core.serializers import serialize
import jsonpickle
import json
from rest_framework.renderers import JSONRenderer
from rest_framework.authtoken.model... | 45.366667 | 105 | 0.76047 | 153 | 1,361 | 6.699346 | 0.444444 | 0.093659 | 0.117073 | 0.158049 | 0.249756 | 0.249756 | 0.083902 | 0 | 0 | 0 | 0 | 0 | 0.129317 | 1,361 | 29 | 106 | 46.931034 | 0.864979 | 0 | 0 | 0 | 0 | 0 | 0.096988 | 0.018369 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.458333 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ba4531b06337fabf0094434044bbb2254d584c29 | 898 | py | Python | enel_service/server.py | dos-group/enel-experiments | a511b03a2a2577d4ce372aa44e475df8005eb394 | [
"MIT"
] | 1 | 2022-03-25T14:03:57.000Z | 2022-03-25T14:03:57.000Z | enel_service/server.py | dos-group/enel-experiments | a511b03a2a2577d4ce372aa44e475df8005eb394 | [
"MIT"
] | null | null | null | enel_service/server.py | dos-group/enel-experiments | a511b03a2a2577d4ce372aa44e475df8005eb394 | [
"MIT"
] | null | null | null | from fastapi import FastAPI
def start_server():
from modeling.routes import prediction_router, training_router
from modeling.routes import prediction_metadata, training_metadata
from submission.routes import router as submission_router
from submission.routes import metadata as submission_metadata
... | 32.071429 | 86 | 0.759465 | 108 | 898 | 6.046296 | 0.361111 | 0.045942 | 0.05513 | 0.082695 | 0.266462 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004087 | 0.182628 | 898 | 27 | 87 | 33.259259 | 0.885559 | 0.040089 | 0 | 0 | 0 | 0 | 0.083916 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.315789 | 0 | 0.421053 | 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 |
ba63a66a814a75387b971ebf66e5a0a83320e443 | 1,543 | py | Python | tests/test_prometheus.py | LaudateCorpus1/poseidon | f7c0b0b66830c7d9a76c0d2060eef0e3065d3ee2 | [
"Apache-2.0"
] | 43 | 2019-01-06T13:59:59.000Z | 2021-11-17T11:29:55.000Z | tests/test_prometheus.py | urantialife/poseidon | f7c0b0b66830c7d9a76c0d2060eef0e3065d3ee2 | [
"Apache-2.0"
] | null | null | null | tests/test_prometheus.py | urantialife/poseidon | f7c0b0b66830c7d9a76c0d2060eef0e3065d3ee2 | [
"Apache-2.0"
] | 19 | 2019-01-06T17:58:29.000Z | 2021-12-28T17:59:45.000Z | # -*- coding: utf-8 -*-
"""
Test module for prometheus
@author: Charlie Lewis
"""
from poseidon.helpers.prometheus import Prometheus
def test_Prometheus():
"""
Tests Prometheus
"""
p = Prometheus.get_metrics()
hosts = [{'active': 0, 'source': 'poseidon', 'role': 'unknown', 'state': 'unknown', 'ipv... | 64.291667 | 246 | 0.543746 | 191 | 1,543 | 4.350785 | 0.251309 | 0.120337 | 0.144404 | 0.144404 | 0.693141 | 0.666667 | 0.666667 | 0.666667 | 0.625752 | 0.625752 | 0 | 0.113763 | 0.185353 | 1,543 | 23 | 247 | 67.086957 | 0.547335 | 0.05768 | 0 | 0 | 0 | 0 | 0.471698 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.076923 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ba68a34172a434e91a0d4c563ec045d929ab5a61 | 2,806 | py | Python | test/unit/test_unpack.py | timmartin/skulpt | 2e3a3fbbaccc12baa29094a717ceec491a8a6750 | [
"MIT"
] | 2,671 | 2015-01-03T08:23:25.000Z | 2022-03-31T06:15:48.000Z | test/unit/test_unpack.py | timmartin/skulpt | 2e3a3fbbaccc12baa29094a717ceec491a8a6750 | [
"MIT"
] | 972 | 2015-01-05T08:11:00.000Z | 2022-03-29T13:47:15.000Z | test/unit/test_unpack.py | timmartin/skulpt | 2e3a3fbbaccc12baa29094a717ceec491a8a6750 | [
"MIT"
] | 845 | 2015-01-03T19:53:36.000Z | 2022-03-29T18:34:22.000Z | # Unpack tests from CPython converted from doctest to unittest
import unittest
class UnpackTest(unittest.TestCase):
def test_basic(self):
t = (1, 2, 3)
a, b, c = t
self.assertEqual(a, 1)
self.assertEqual(b, 2)
self.assertEqual(c, 3)
l = [4, 5, 6]
a, b, c =... | 25.053571 | 62 | 0.489665 | 354 | 2,806 | 3.714689 | 0.217514 | 0.193916 | 0.025095 | 0.012167 | 0.325475 | 0.142205 | 0.13308 | 0.111787 | 0.111787 | 0.111787 | 0 | 0.032797 | 0.402352 | 2,806 | 111 | 63 | 25.279279 | 0.751342 | 0.032787 | 0 | 0.183908 | 0 | 0 | 0.005164 | 0 | 0 | 0 | 0 | 0 | 0.298851 | 1 | 0.218391 | false | 0 | 0.011494 | 0 | 0.287356 | 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 |
ba894c690a4011830a0158d1d45c0ae7b08d7aa5 | 614 | py | Python | stream_ul.py | Open-Measure/TOME-Python | 55159b3fbb55224b34e4fb71b63e4678c84ab4b7 | [
"CC-BY-4.0"
] | 1 | 2021-04-17T14:44:47.000Z | 2021-04-17T14:44:47.000Z | stream_ul.py | Open-Measure/TOME-Python | 55159b3fbb55224b34e4fb71b63e4678c84ab4b7 | [
"CC-BY-4.0"
] | null | null | null | stream_ul.py | Open-Measure/TOME-Python | 55159b3fbb55224b34e4fb71b63e4678c84ab4b7 | [
"CC-BY-4.0"
] | null | null | null | from write_latex_stream import write_latex_stream
from log_info import log_info
def stream_ul(latex_stream, node, depth):
"""Stream a <ul> element and return the next node."""
# Local module imports to avoid circular dependencies
from stream_single_node import stream_single_node
log_info(f"{chr(32) ... | 34.111111 | 61 | 0.739414 | 92 | 614 | 4.652174 | 0.413043 | 0.205607 | 0.149533 | 0.079439 | 0.130841 | 0.130841 | 0 | 0 | 0 | 0 | 0 | 0.003906 | 0.166124 | 614 | 17 | 62 | 36.117647 | 0.832031 | 0.197068 | 0 | 0 | 0 | 0 | 0.121399 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ba89edb1bd1776d3567355a02e2bd9ec5dd6bedb | 398 | py | Python | driver/migrations/0005_alter_driver_charge.py | sling254/swAPP | f2f18334d6f7c1aa79d32dc011ecf0f8f869b36d | [
"MIT"
] | null | null | null | driver/migrations/0005_alter_driver_charge.py | sling254/swAPP | f2f18334d6f7c1aa79d32dc011ecf0f8f869b36d | [
"MIT"
] | 4 | 2022-01-06T09:10:54.000Z | 2022-01-13T11:46:20.000Z | driver/migrations/0005_alter_driver_charge.py | sling254/swAPP | f2f18334d6f7c1aa79d32dc011ecf0f8f869b36d | [
"MIT"
] | null | null | null | # Generated by Django 3.2.9 on 2022-01-11 08:15
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('driver', '0004_auto_20220111_0924'),
]
operations = [
migrations.AlterField(
model_name='driver',
name='charge',
... | 20.947368 | 63 | 0.603015 | 43 | 398 | 5.488372 | 0.837209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118881 | 0.281407 | 398 | 18 | 64 | 22.111111 | 0.706294 | 0.113065 | 0 | 0 | 1 | 0 | 0.116809 | 0.065527 | 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 |
ba8da457611237a204d17fcb7a973f6915e44012 | 3,607 | py | Python | tests/test_features.py | ziord/spy | 0e211a99e6fa4794cf2b83bfef2b7257abe4bff3 | [
"MIT"
] | 2 | 2020-07-27T19:38:10.000Z | 2020-07-27T21:40:25.000Z | tests/test_features.py | ziord/spy | 0e211a99e6fa4794cf2b83bfef2b7257abe4bff3 | [
"MIT"
] | null | null | null | tests/test_features.py | ziord/spy | 0e211a99e6fa4794cf2b83bfef2b7257abe4bff3 | [
"MIT"
] | null | null | null | """
:copyright: Copyright (c) 2020 Jeremiah Ikosin (@ziord)
:license: MIT, see LICENSE for more details
"""
import unittest
from tests.classes import *
class TestSpy(unittest.TestCase):
def test_instance(self):
clone1 = BaseClone()
clone2 = DerivedClone('dev')
self.assertTrue(isinstance(... | 36.07 | 83 | 0.655115 | 433 | 3,607 | 5.226328 | 0.26097 | 0.083959 | 0.049492 | 0.055236 | 0.300928 | 0.171454 | 0.070703 | 0.036235 | 0.036235 | 0 | 0 | 0.024032 | 0.227059 | 3,607 | 99 | 84 | 36.434343 | 0.787661 | 0.068755 | 0 | 0.133333 | 0 | 0 | 0.057032 | 0 | 0 | 0 | 0 | 0 | 0.453333 | 1 | 0.16 | false | 0 | 0.026667 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ba9351faf02df0830bb0419c0ceb4611a942226c | 1,318 | py | Python | InstagramAutomations/ FollowingNFollowersComparator/Classes/__init__.py | tofolo17/ScrapingNAutomationPackage | 67080b809286085039e8d21b9bd44d63ef0f2874 | [
"MIT"
] | null | null | null | InstagramAutomations/ FollowingNFollowersComparator/Classes/__init__.py | tofolo17/ScrapingNAutomationPackage | 67080b809286085039e8d21b9bd44d63ef0f2874 | [
"MIT"
] | null | null | null | InstagramAutomations/ FollowingNFollowersComparator/Classes/__init__.py | tofolo17/ScrapingNAutomationPackage | 67080b809286085039e8d21b9bd44d63ef0f2874 | [
"MIT"
] | 1 | 2021-05-24T17:24:23.000Z | 2021-05-24T17:24:23.000Z | from instaloader import Instaloader, Profile
class InstaBot: # Exploring private methods and attributes
def __init__(self, username, password, account):
# User data
self.account = account
self.username = username
self.password = password
# User lists
self.__follow... | 29.954545 | 82 | 0.627466 | 152 | 1,318 | 5.111842 | 0.276316 | 0.046332 | 0.087516 | 0.041184 | 0.169884 | 0.126126 | 0.084942 | 0.084942 | 0.084942 | 0 | 0 | 0 | 0.287557 | 1,318 | 43 | 83 | 30.651163 | 0.827476 | 0.059939 | 0 | 0 | 0 | 0 | 0.018639 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0.1 | 0.033333 | 0 | 0.233333 | 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 |
baac825f7be385a8985b34ff9cea4d5c42532495 | 2,568 | py | Python | utils/alertcheck.py | sethusaim/Shredder-Machine-System | 9a4b63946cbd65b17fc63c4bde05fa8e04658fc1 | [
"MIT"
] | null | null | null | utils/alertcheck.py | sethusaim/Shredder-Machine-System | 9a4b63946cbd65b17fc63c4bde05fa8e04658fc1 | [
"MIT"
] | null | null | null | utils/alertcheck.py | sethusaim/Shredder-Machine-System | 9a4b63946cbd65b17fc63c4bde05fa8e04658fc1 | [
"MIT"
] | null | null | null | import os
import cv2
from playsound import playsound
def drawboxtosafeline(image_np, p1, p2, Line_Position2, Orientation):
if Orientation == "bt":
bounding_mid = (int((p1[0] + p2[0]) / 2), int(p1[1]))
if bounding_mid:
cv2.line(
img=image_np,
pt1=boundi... | 24.932039 | 69 | 0.446651 | 276 | 2,568 | 3.978261 | 0.206522 | 0.200364 | 0.027322 | 0.063752 | 0.618397 | 0.602914 | 0.602914 | 0.602914 | 0.602914 | 0.559199 | 0 | 0.088133 | 0.438863 | 2,568 | 102 | 70 | 25.176471 | 0.673838 | 0 | 0 | 0.54321 | 0 | 0 | 0.010514 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012346 | false | 0 | 0.037037 | 0 | 0.074074 | 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 |
bab37a9dd3c65d5e6c664977bb2711bf62e21c54 | 289 | py | Python | lista1/Q7.py | AlexandrePeBrito/Python | 79a09b1fb8e705dc7b6859d977c8916a2d0dd4d0 | [
"MIT"
] | null | null | null | lista1/Q7.py | AlexandrePeBrito/Python | 79a09b1fb8e705dc7b6859d977c8916a2d0dd4d0 | [
"MIT"
] | null | null | null | lista1/Q7.py | AlexandrePeBrito/Python | 79a09b1fb8e705dc7b6859d977c8916a2d0dd4d0 | [
"MIT"
] | null | null | null | #Faça um Programa que calcule a área de um quadrado, em seguida mostre o dobro desta área
#para o usuário.
side = float(input("Informe o tamanho do lado do quadrado: "))
area = pow(side,2)
dbarea = area * 2
print("A area do quadrado eh %.1f e o dobro desta area eh %.1f"%(area,dbarea)) | 32.111111 | 90 | 0.709343 | 53 | 289 | 3.867925 | 0.603774 | 0.058537 | 0.107317 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017021 | 0.186851 | 289 | 9 | 91 | 32.111111 | 0.855319 | 0.359862 | 0 | 0 | 0 | 0 | 0.51087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 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 |
babff67adb658be7aa4542bf285b8f6bce6d0970 | 1,619 | py | Python | Problemset/4sum/4sum.py | worldwonderer/algorithm | 083178b2d987de7f6020aceca869a353c0b4b1f3 | [
"MIT"
] | 1 | 2021-01-30T01:52:46.000Z | 2021-01-30T01:52:46.000Z | Problemset/4sum/4sum.py | worldwonderer/algorithm | 083178b2d987de7f6020aceca869a353c0b4b1f3 | [
"MIT"
] | 1 | 2021-12-15T14:54:06.000Z | 2021-12-15T14:54:06.000Z | Problemset/4sum/4sum.py | worldwonderer/algorithm | 083178b2d987de7f6020aceca869a353c0b4b1f3 | [
"MIT"
] | 2 | 2021-04-19T03:32:18.000Z | 2021-06-22T07:06:01.000Z |
# @Title: 四数之和 (4Sum)
# @Author: 18015528893
# @Date: 2021-02-21 12:29:55
# @Runtime: 1324 ms
# @Memory: 15.3 MB
from typing import List
class Solution:
def fourSum(self, nums: List[int], target: int) -> List[List[int]]:
def nSum(n, start, tar):
res = []
if n == 2:
... | 29.436364 | 71 | 0.34404 | 184 | 1,619 | 2.983696 | 0.331522 | 0.07286 | 0.063752 | 0.07286 | 0.17122 | 0.17122 | 0.17122 | 0.156648 | 0.156648 | 0 | 0 | 0.075168 | 0.539839 | 1,619 | 54 | 72 | 29.981481 | 0.661745 | 0.063002 | 0 | 0.292683 | 0 | 0 | 0.005302 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04878 | false | 0 | 0.02439 | 0 | 0.146341 | 0.04878 | 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 |
bac538101842b6a0388990f5cd004ad05ed97dde | 35,732 | py | Python | irisett/webapi/view.py | beebyte/irisett | 210e8d1fd0fd3dffa89fff889c0873597bfd753c | [
"MIT"
] | 8 | 2016-12-15T21:50:32.000Z | 2021-12-06T10:01:37.000Z | irisett/webapi/view.py | beebyte/irisett | 210e8d1fd0fd3dffa89fff889c0873597bfd753c | [
"MIT"
] | null | null | null | irisett/webapi/view.py | beebyte/irisett | 210e8d1fd0fd3dffa89fff889c0873597bfd753c | [
"MIT"
] | 3 | 2016-12-17T22:37:59.000Z | 2019-10-05T15:45:12.000Z | """Webapi views."""
from typing import Any, Dict, List, Iterable, Optional, cast, Tuple
from aiohttp import web
import time
from irisett import (
metadata,
bindata,
stats,
utils,
contact,
monitor_group,
object_models,
)
from irisett.webapi import (
errors,
)
from irisett.monitor.active... | 46.830931 | 118 | 0.662907 | 4,517 | 35,732 | 4.931813 | 0.04627 | 0.074561 | 0.033667 | 0.044306 | 0.766127 | 0.717466 | 0.664901 | 0.610091 | 0.579342 | 0.55187 | 0 | 0.000147 | 0.236259 | 35,732 | 762 | 119 | 46.892388 | 0.81616 | 0.017323 | 0 | 0.482707 | 0 | 0.001504 | 0.11281 | 0.015003 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009023 | false | 0 | 0.015038 | 0 | 0.141353 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bac5ea4a84d4e7ad4afec0bad63cabfd51d14570 | 2,268 | py | Python | sdk/python/pulumi_azure/operationalinsights/outputs.py | suresh198526/pulumi-azure | bf27206a38d7a5c58b3c2c57ec8769fe3d0fc5d7 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure/operationalinsights/outputs.py | suresh198526/pulumi-azure | bf27206a38d7a5c58b3c2c57ec8769fe3d0fc5d7 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure/operationalinsights/outputs.py | suresh198526/pulumi-azure | bf27206a38d7a5c58b3c2c57ec8769fe3d0fc5d7 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from .. import _utilitie... | 33.850746 | 149 | 0.642857 | 276 | 2,268 | 5.119565 | 0.318841 | 0.082803 | 0.036801 | 0.045294 | 0.38075 | 0.38075 | 0.349611 | 0.349611 | 0.349611 | 0.29724 | 0 | 0.000597 | 0.261023 | 2,268 | 66 | 150 | 34.363636 | 0.842482 | 0.352293 | 0 | 0.179487 | 1 | 0 | 0.075221 | 0.015487 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.128205 | 0.051282 | 0.435897 | 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 |
bac9f1780f58a28c7c548d48ec0b80488ecd78c6 | 5,673 | py | Python | avro_models/models.py | kun-fang/avro-data-model | 1a657e20e666b534d0196888ae580ad7caddadeb | [
"MIT"
] | 9 | 2019-03-28T16:31:33.000Z | 2022-02-18T03:22:50.000Z | avro_models/models.py | kun-fang/avro-data-model | 1a657e20e666b534d0196888ae580ad7caddadeb | [
"MIT"
] | 3 | 2019-06-17T17:09:38.000Z | 2021-05-14T03:06:00.000Z | avro_models/models.py | kun-fang/avro-data-model | 1a657e20e666b534d0196888ae580ad7caddadeb | [
"MIT"
] | 2 | 2019-04-11T18:26:52.000Z | 2022-02-18T03:22:52.000Z | # pylint: disable=no-member
import json
from avro.io import Validate, AvroTypeException
from avro.schema import AvroException
class AvroComplexModel(object):
__schema__ = None
_names = None
def __init__(self, value):
dict_value = _recursive_to_dict(value)
if not self.validate(dict_value)... | 24.452586 | 85 | 0.668429 | 667 | 5,673 | 5.238381 | 0.176912 | 0.033486 | 0.029193 | 0.036062 | 0.284488 | 0.233543 | 0.216371 | 0.183744 | 0.133371 | 0.093875 | 0 | 0.00023 | 0.234796 | 5,673 | 231 | 86 | 24.558442 | 0.804653 | 0.053587 | 0 | 0.16129 | 0 | 0 | 0.043921 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.187097 | false | 0 | 0.019355 | 0.116129 | 0.496774 | 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 |
bacd6ab6973bfb140e3238cae87b241be5ca01cb | 7,979 | py | Python | test/test_commands.py | cotman/zoneminder-slack-bot | 2819f5f7152cb92c91253dfd0fb3ee9d8b8647b2 | [
"Apache-2.0"
] | null | null | null | test/test_commands.py | cotman/zoneminder-slack-bot | 2819f5f7152cb92c91253dfd0fb3ee9d8b8647b2 | [
"Apache-2.0"
] | null | null | null | test/test_commands.py | cotman/zoneminder-slack-bot | 2819f5f7152cb92c91253dfd0fb3ee9d8b8647b2 | [
"Apache-2.0"
] | null | null | null | #
# Copyright 2016 Robert Clark (clark@exiter.com)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | 33.666667 | 98 | 0.675273 | 926 | 7,979 | 5.727862 | 0.163067 | 0.110294 | 0.098982 | 0.151772 | 0.725679 | 0.689291 | 0.660445 | 0.660445 | 0.653281 | 0.653281 | 0 | 0.022344 | 0.175461 | 7,979 | 236 | 99 | 33.809322 | 0.783858 | 0.195513 | 0 | 0.553571 | 0 | 0 | 0.159899 | 0 | 0 | 0 | 0 | 0 | 0.178571 | 1 | 0.107143 | false | 0 | 0.035714 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bacfb070ab881ee61d5aea68b2014cc5af4608cf | 4,672 | py | Python | search_app/parser.py | maxkolotilin/SearchSystem | 0d14d433ad22a1898a489133187640f8ef63e099 | [
"MIT"
] | null | null | null | search_app/parser.py | maxkolotilin/SearchSystem | 0d14d433ad22a1898a489133187640f8ef63e099 | [
"MIT"
] | 10 | 2020-06-05T17:13:05.000Z | 2022-03-11T23:14:26.000Z | search_app/parser.py | maxkolotilin/SearchSystem | 0d14d433ad22a1898a489133187640f8ef63e099 | [
"MIT"
] | null | null | null | from __future__ import division
from bs4 import BeautifulSoup
from .robots import RobotsAnalyzer, urlparse
from urlparse import urljoin
from .UrlFetcher import UrlFetcher, Thread
from Queue import Queue
from threading import Lock
class Parser(object):
url_fetcher_lock = Lock()
url_fetcher = UrlFetcher()
I... | 35.12782 | 75 | 0.493151 | 481 | 4,672 | 4.557173 | 0.272349 | 0.059307 | 0.036496 | 0.050182 | 0.185219 | 0.076642 | 0.035584 | 0.035584 | 0.035584 | 0.035584 | 0 | 0.006654 | 0.421019 | 4,672 | 132 | 76 | 35.393939 | 0.803697 | 0.02226 | 0 | 0.145833 | 0 | 0 | 0.027211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.072917 | null | null | 0.020833 | 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 |
badbf0300c01c6bc1bb1c5cc0c15ee4954a4add4 | 2,309 | py | Python | cacreader/pyscard-2.0.2/smartcard/pcsc/PCSCContext.py | kyletanyag/LL-Smartcard | 02abea9de5a13f8bae4d7832ab34cb7f0d9514c9 | [
"BSD-3-Clause"
] | 1 | 2020-03-16T14:57:15.000Z | 2020-03-16T14:57:15.000Z | cacreader/pyscard-2.0.2/smartcard/pcsc/PCSCContext.py | kyletanyag/LL-Smartcard | 02abea9de5a13f8bae4d7832ab34cb7f0d9514c9 | [
"BSD-3-Clause"
] | null | null | null | cacreader/pyscard-2.0.2/smartcard/pcsc/PCSCContext.py | kyletanyag/LL-Smartcard | 02abea9de5a13f8bae4d7832ab34cb7f0d9514c9 | [
"BSD-3-Clause"
] | 1 | 2022-02-04T14:55:45.000Z | 2022-02-04T14:55:45.000Z | """PCSC context singleton.
__author__ = "http://www.gemalto.com"
Copyright 2001-2012 gemalto
Author: Jean-Daniel Aussel, mailto:jean-daniel.aussel@gemalto.com
This file is part of pyscard.
pyscard is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as ... | 30.381579 | 76 | 0.693374 | 271 | 2,309 | 5.826568 | 0.490775 | 0.060165 | 0.022799 | 0.036099 | 0.098797 | 0.063331 | 0.043065 | 0 | 0 | 0 | 0 | 0.012528 | 0.239498 | 2,309 | 75 | 77 | 30.786667 | 0.886674 | 0.422261 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.171429 | false | 0 | 0.085714 | 0.057143 | 0.514286 | 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 |
badcf22d4ab5ab829c9f27c6bb83070668b40287 | 1,666 | py | Python | wukong/gateway/start_gateway.py | wukong-m2m/wukong-darjeeling | 429ffdd62384c0a6b7f6695bb780359fc58a804c | [
"BSD-2-Clause-FreeBSD"
] | 16 | 2015-01-07T10:32:47.000Z | 2019-01-16T16:13:51.000Z | wukong/gateway/start_gateway.py | wukong-m2m/wukong-darjeeling | 429ffdd62384c0a6b7f6695bb780359fc58a804c | [
"BSD-2-Clause-FreeBSD"
] | 14 | 2015-05-01T04:45:45.000Z | 2016-05-11T01:29:23.000Z | wukong/gateway/start_gateway.py | wukong-m2m/wukong-darjeeling | 429ffdd62384c0a6b7f6695bb780359fc58a804c | [
"BSD-2-Clause-FreeBSD"
] | 13 | 2015-06-17T06:42:17.000Z | 2020-11-27T18:23:08.000Z | try:
import gevent
except:
print "Please install the bitarray module from pypi"
print "e.g. sudo pip install gevent"
exit(-1)
from gevent.event import Event
import signal
import gtwconfig as CONFIG
from gtwclass import Gateway
import color_logging, logging
logger = logging
def main():
shutdown_e... | 28.724138 | 87 | 0.705882 | 197 | 1,666 | 5.771574 | 0.395939 | 0.158311 | 0.105541 | 0.087951 | 0.203166 | 0.065084 | 0 | 0 | 0 | 0 | 0 | 0.003005 | 0.20108 | 1,666 | 57 | 88 | 29.22807 | 0.85124 | 0.122449 | 0 | 0.05 | 0 | 0 | 0.138736 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bade85ad96a3a820a0ab4a777ae7652466e309d3 | 976 | py | Python | components/timeline_header.py | gretchi/twim | 20a4bf459182a01d535cfb948d8b30de087585f1 | [
"MIT"
] | null | null | null | components/timeline_header.py | gretchi/twim | 20a4bf459182a01d535cfb948d8b30de087585f1 | [
"MIT"
] | null | null | null | components/timeline_header.py | gretchi/twim | 20a4bf459182a01d535cfb948d8b30de087585f1 | [
"MIT"
] | null | null | null |
import curses
from .components_base import ComponentsBase
from const import const
from util import helper
class TimelineHeaderWindow(ComponentsBase):
def __init__(self, parent, screen, nlines, ncols, begin_y, begin_x):
super().__init__(parent, screen, nlines, ncols, begin_y, begin_x)
def draw(self... | 42.434783 | 97 | 0.728484 | 141 | 976 | 4.751773 | 0.304965 | 0.104478 | 0.156716 | 0.208955 | 0.664179 | 0.664179 | 0.664179 | 0.664179 | 0.501493 | 0.501493 | 0 | 0.022892 | 0.14959 | 976 | 22 | 98 | 44.363636 | 0.784337 | 0 | 0 | 0 | 0 | 0 | 0.034872 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.266667 | 0 | 0.466667 | 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 |
bae1272099911363c8b91f7207b83b2c7bd32259 | 859 | py | Python | pyclass/common/oids.py | jbutler42/pynet_class | 837cd0782213036aaf0985105bdd86b0a1c7b547 | [
"Apache-2.0"
] | null | null | null | pyclass/common/oids.py | jbutler42/pynet_class | 837cd0782213036aaf0985105bdd86b0a1c7b547 | [
"Apache-2.0"
] | null | null | null | pyclass/common/oids.py | jbutler42/pynet_class | 837cd0782213036aaf0985105bdd86b0a1c7b547 | [
"Apache-2.0"
] | null | null | null | """
Commonly used OIDS module
"""
from pyclass.common import config
from pyclass.common import util
__author__ = "Jason Butler"
__version__ = "0.1a"
def oid_by_name(name=None, oids_yml_file=config.cfg.oids_yml_file):
"""Given an OID name, return the OID string and the oids_dict in a tuple.
Parameter:: name
... | 26.030303 | 109 | 0.688009 | 132 | 859 | 4.227273 | 0.424242 | 0.100358 | 0.05914 | 0.082437 | 0.078853 | 0.078853 | 0.078853 | 0 | 0 | 0 | 0 | 0.004484 | 0.221187 | 859 | 32 | 110 | 26.84375 | 0.829596 | 0 | 0 | 0 | 0 | 0.076923 | 0.241252 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.153846 | null | null | 0.230769 | 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 |
baed7319bdefe22d154fae06f57d0e4902277529 | 114 | py | Python | guest-talks/20170213-optional-static-types/local_imports.py | mgadagin/PythonClass | 70b370362d75720b3fb0e1d6cc8158f9445e9708 | [
"MIT"
] | 46 | 2017-09-27T20:19:36.000Z | 2020-12-08T10:07:19.000Z | guest-talks/20170213-optional-static-types/local_imports.py | mgadagin/PythonClass | 70b370362d75720b3fb0e1d6cc8158f9445e9708 | [
"MIT"
] | 6 | 2018-01-09T08:07:37.000Z | 2020-09-07T12:25:13.000Z | guest-talks/20170213-optional-static-types/local_imports.py | mgadagin/PythonClass | 70b370362d75720b3fb0e1d6cc8158f9445e9708 | [
"MIT"
] | 18 | 2017-10-10T02:06:51.000Z | 2019-12-01T10:18:13.000Z | # local imports "just work"
from mymodule import mystery, MyClass
print(mystery + '!')
x = MyClass()
x + 2
| 8.769231 | 37 | 0.649123 | 15 | 114 | 4.933333 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011364 | 0.22807 | 114 | 12 | 38 | 9.5 | 0.829545 | 0.219298 | 0 | 0 | 0 | 0 | 0.011494 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
241263fba2bcccec8d8b31dfe7925ddbc78448dd | 10,892 | py | Python | retrieval/AIR-retriever/Preprocess_ARC.py | dair-iitd/ECQA | a74bb658194e647e5d7955a84cc895bf5a5d8b3e | [
"Apache-2.0"
] | 3 | 2021-07-28T01:13:23.000Z | 2022-01-27T15:51:49.000Z | retrieval/AIR-retriever/Preprocess_ARC.py | dair-iitd/ECQA | a74bb658194e647e5d7955a84cc895bf5a5d8b3e | [
"Apache-2.0"
] | null | null | null | retrieval/AIR-retriever/Preprocess_ARC.py | dair-iitd/ECQA | a74bb658194e647e5d7955a84cc895bf5a5d8b3e | [
"Apache-2.0"
] | null | null | null | import csv
count=0
lens=[]
from nltk.tokenize import RegexpTokenizer ### for nltk word tokenization
tokenizer = RegexpTokenizer(r'\w+')
stop_words=['i', 'me', 'my', 'myself', 'we', 'our', 'ours', 'ourselves', 'you', 'your', 'yours', 'yourself', 'yourselves', 'he', 'him', 'his', 'himself', 'she', 'her', 'hers', ... | 49.063063 | 1,214 | 0.496144 | 1,260 | 10,892 | 4.1 | 0.223016 | 0.110724 | 0.04878 | 0.059233 | 0.416376 | 0.327526 | 0.291328 | 0.253 | 0.244096 | 0.230159 | 0 | 0.016062 | 0.359805 | 10,892 | 222 | 1,215 | 49.063063 | 0.724796 | 0.065094 | 0 | 0.21118 | 0 | 0 | 0.073853 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0.006211 | 0.018634 | 0 | 0.099379 | 0.012422 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2416385e2c8b628e091b080831fd56b918452896 | 2,310 | py | Python | scripts/build_plu_word_in_samples.py | jacquelineCelia/lexicon_discovery | 1a46f885ad24d2c510ae42f096b054cc6f216fcd | [
"MIT"
] | 12 | 2016-01-05T08:34:52.000Z | 2020-11-23T22:46:39.000Z | scripts/build_plu_word_in_samples.py | jacquelineCelia/lexicon_discovery | 1a46f885ad24d2c510ae42f096b054cc6f216fcd | [
"MIT"
] | null | null | null | scripts/build_plu_word_in_samples.py | jacquelineCelia/lexicon_discovery | 1a46f885ad24d2c510ae42f096b054cc6f216fcd | [
"MIT"
] | 4 | 2016-08-11T22:16:40.000Z | 2020-11-23T22:46:49.000Z | #!/usr/bin/python
from optparse import OptionParser
def loadList(wavelist):
tags = list()
waves = list()
fin = open(wavelist)
line = fin.readline()
while line:
tag, wav = line.strip().split()
tags.append(tag)
waves.append(wav)
line = fin.readline()
fin.close()
... | 42 | 345 | 0.601299 | 310 | 2,310 | 4.345161 | 0.374194 | 0.046771 | 0.077951 | 0.032665 | 0.107647 | 0.019302 | 0 | 0 | 0 | 0 | 0 | 0.026732 | 0.206494 | 2,310 | 54 | 346 | 42.777778 | 0.708129 | 0.009957 | 0 | 0.046512 | 0 | 0.046512 | 0.257055 | 0.109788 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.023256 | null | null | 0.093023 | 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 |
24194e4c8b1e33469a6f410949ff8517199ab8ad | 1,032 | py | Python | requests_demo/demo.py | Crossroadsman/ks_scrape | 18cf21daae250ef126f5f458628bddf1106688bd | [
"Apache-2.0"
] | null | null | null | requests_demo/demo.py | Crossroadsman/ks_scrape | 18cf21daae250ef126f5f458628bddf1106688bd | [
"Apache-2.0"
] | null | null | null | requests_demo/demo.py | Crossroadsman/ks_scrape | 18cf21daae250ef126f5f458628bddf1106688bd | [
"Apache-2.0"
] | null | null | null | '''
requests is available on pip
homepage: http://docs.python-requests.org/en/master/
'''
import requests
def print_details(request):
print("Various attributes on the request object (get):")
print("-----------------------------------------------")
print("apparent_encoding:")
print(request.apparent_enco... | 24.571429 | 60 | 0.574612 | 113 | 1,032 | 5.088496 | 0.380531 | 0.104348 | 0.041739 | 0.062609 | 0.107826 | 0.107826 | 0.107826 | 0 | 0 | 0 | 0 | 0 | 0.194767 | 1,032 | 41 | 61 | 25.170732 | 0.691937 | 0.08624 | 0 | 0.066667 | 0 | 0 | 0.315508 | 0.097326 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.033333 | 0 | 0.066667 | 0.766667 | 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 |
2421489e2376b5ce2dffcad9d9ef02e7559f99f2 | 691 | py | Python | tests/components/litterrobot/test_sensor.py | kristianheljas/homeassistant-core | eb7220ff262fe81d53c929884107bcedc8af7850 | [
"Apache-2.0"
] | null | null | null | tests/components/litterrobot/test_sensor.py | kristianheljas/homeassistant-core | eb7220ff262fe81d53c929884107bcedc8af7850 | [
"Apache-2.0"
] | 51 | 2020-10-14T01:19:07.000Z | 2022-03-31T06:02:48.000Z | tests/components/litterrobot/test_sensor.py | kristianheljas/homeassistant-core | eb7220ff262fe81d53c929884107bcedc8af7850 | [
"Apache-2.0"
] | 1 | 2021-08-16T02:53:15.000Z | 2021-08-16T02:53:15.000Z | """Test the Litter-Robot sensor entity."""
from homeassistant.components.sensor import DOMAIN as PLATFORM_DOMAIN
from homeassistant.const import PERCENTAGE
from .conftest import setup_hub
ENTITY_ID = "sensor.test_waste_drawer"
async def test_sensor(hass, mock_hub):
"""Tests the sensor entity was set up."""
... | 32.904762 | 69 | 0.751085 | 92 | 691 | 5.445652 | 0.521739 | 0.143713 | 0.175649 | 0.107784 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011905 | 0.149059 | 691 | 20 | 70 | 34.55 | 0.840136 | 0.052098 | 0 | 0 | 0 | 0 | 0.154605 | 0.078947 | 0 | 0 | 0 | 0 | 0.461538 | 1 | 0 | false | 0 | 0.230769 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2421796ec7f5e6c4df8a177673189e78ac134ab8 | 3,225 | py | Python | apps/users/views.py | madjaqk/puzzle_master_v2 | e50b0f02abbf32aebe9583152bd9a5b43f5da7d7 | [
"MIT"
] | null | null | null | apps/users/views.py | madjaqk/puzzle_master_v2 | e50b0f02abbf32aebe9583152bd9a5b43f5da7d7 | [
"MIT"
] | 8 | 2020-02-07T04:11:07.000Z | 2022-02-10T07:04:57.000Z | apps/users/views.py | madjaqk/puzzle_master_v2 | e50b0f02abbf32aebe9583152bd9a5b43f5da7d7 | [
"MIT"
] | null | null | null | from django.contrib import messages
from django.contrib.auth import authenticate, login, logout, update_session_auth_hash
from django.contrib.auth.decorators import login_required
from django.contrib.auth.forms import AuthenticationForm, UserCreationForm, AdminPasswordChangeForm, PasswordChangeForm
from django.contrib.... | 30.424528 | 119 | 0.755659 | 412 | 3,225 | 5.779126 | 0.252427 | 0.047039 | 0.047879 | 0.050399 | 0.232255 | 0.220496 | 0.202436 | 0.167157 | 0.140277 | 0.140277 | 0 | 0.000706 | 0.12155 | 3,225 | 106 | 120 | 30.424528 | 0.839746 | 0.011473 | 0 | 0.333333 | 0 | 0 | 0.163163 | 0.028867 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.178571 | 0.095238 | 0.011905 | 0.321429 | 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 |
242a3b5104cf3aec26a6c17636192fcd1ddd49a1 | 1,130 | py | Python | TBS/core/models/package.py | v1ct0r5u3n/TBS | 459cd7c971f6aab7bd5f4f8d1e0788b90f34e772 | [
"Apache-2.0"
] | null | null | null | TBS/core/models/package.py | v1ct0r5u3n/TBS | 459cd7c971f6aab7bd5f4f8d1e0788b90f34e772 | [
"Apache-2.0"
] | null | null | null | TBS/core/models/package.py | v1ct0r5u3n/TBS | 459cd7c971f6aab7bd5f4f8d1e0788b90f34e772 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from django.db import models
from core.mixins import TimeStampedMixin,ThumbnailMixin,OperatorMixin
class Package( TimeStampedMixin,
ThumbnailMixin,
OperatorMixin,
models.Model):
ship_date = models.DateTimeField("发货日期",null = True,blank = True)
sign_date = models.DateTimeField("签收日... | 40.357143 | 84 | 0.753982 | 154 | 1,130 | 5.344156 | 0.474026 | 0.048603 | 0.053463 | 0.082625 | 0.160389 | 0.160389 | 0.160389 | 0.160389 | 0 | 0 | 0 | 0.021934 | 0.112389 | 1,130 | 28 | 85 | 40.357143 | 0.798604 | 0.018584 | 0 | 0 | 0 | 0 | 0.028881 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.090909 | 0.045455 | 0.772727 | 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 |
242c003e2eb561af0414b4708ab6018f134b89c4 | 1,873 | py | Python | src/awesome_bib_builder.py | batflyer/awesome-bayes-nets | e11ec9d98acb72bb90928e212021fed55fd1b233 | [
"CC0-1.0"
] | 8 | 2019-06-15T09:15:20.000Z | 2022-02-20T03:08:13.000Z | src/awesome_bib_builder.py | batflyer/awesome-bayes-nets | e11ec9d98acb72bb90928e212021fed55fd1b233 | [
"CC0-1.0"
] | null | null | null | src/awesome_bib_builder.py | batflyer/awesome-bayes-nets | e11ec9d98acb72bb90928e212021fed55fd1b233 | [
"CC0-1.0"
] | 3 | 2020-01-28T20:16:41.000Z | 2021-08-17T18:56:21.000Z | # Copyright © 2019 Alexander L. Hayes
# MIT License
"""
awesome_bib_builder
===================
Parses contents of ``bib/*.bib`` files, creating citations.
"""
from .reference import Reference
from .bibliography import Bibliography
from liquid import Liquid
import os
def run(
template="static/README.md", bib_... | 26.013889 | 86 | 0.666845 | 255 | 1,873 | 4.690196 | 0.388235 | 0.093645 | 0.080268 | 0.050167 | 0.225753 | 0.106187 | 0.064381 | 0.051839 | 0 | 0 | 0 | 0.005435 | 0.214095 | 1,873 | 71 | 87 | 26.380282 | 0.802989 | 0.219434 | 0 | 0.108108 | 0 | 0 | 0.084734 | 0 | 0 | 0 | 0 | 0.014085 | 0 | 1 | 0.027027 | false | 0 | 0.108108 | 0 | 0.135135 | 0.108108 | 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 |
242f870ff3b9faab3c82275152faf70d7a72770e | 1,141 | py | Python | integration/integration_commands/integration_test_power_management_vm.py | doppleware/vCenterShell_test | c91870169c5780e5c561b2ae682991af20257c4f | [
"Apache-2.0"
] | null | null | null | integration/integration_commands/integration_test_power_management_vm.py | doppleware/vCenterShell_test | c91870169c5780e5c561b2ae682991af20257c4f | [
"Apache-2.0"
] | null | null | null | integration/integration_commands/integration_test_power_management_vm.py | doppleware/vCenterShell_test | c91870169c5780e5c561b2ae682991af20257c4f | [
"Apache-2.0"
] | null | null | null | from unittest import TestCase
from mock import Mock
from pyVim.connect import SmartConnect, Disconnect
from common.logger.service import LoggingService
from common.vcenter import task_waiter
from common.vcenter.vmomi_service import pyVmomiService
from models.VCenterConnectionDetails import VCenterConnectionDetails
fr... | 39.344828 | 97 | 0.752848 | 116 | 1,141 | 7.232759 | 0.5 | 0.057211 | 0.040524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001075 | 0.184926 | 1,141 | 28 | 98 | 40.75 | 0.901075 | 0.006135 | 0 | 0 | 0 | 0 | 0.022085 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0.05 | 0.45 | 0 | 0.55 | 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 |
2431ee83f150d121a3121450a4f8d9833e9b5a9b | 1,436 | py | Python | sovtokenfees/sovtokenfees/messages/fields.py | brentzundel/plugin | 357ab27b0f1a33263b6fefd98e1652cfbc982006 | [
"Apache-2.0"
] | null | null | null | sovtokenfees/sovtokenfees/messages/fields.py | brentzundel/plugin | 357ab27b0f1a33263b6fefd98e1652cfbc982006 | [
"Apache-2.0"
] | null | null | null | sovtokenfees/sovtokenfees/messages/fields.py | brentzundel/plugin | 357ab27b0f1a33263b6fefd98e1652cfbc982006 | [
"Apache-2.0"
] | null | null | null | from plenum.common.messages.fields import MapField, \
NonNegativeNumberField, NonEmptyStringField, FixedLengthField, IterableField, SignatureField
from plenum.config import SIGNATURE_FIELD_LIMIT
from sovtoken.messages.fields import PublicInputsField, \
PublicOutputsField
class FeesStructureField(MapField):
... | 31.911111 | 96 | 0.665738 | 144 | 1,436 | 6.409722 | 0.402778 | 0.030336 | 0.056338 | 0.078007 | 0.144095 | 0.144095 | 0 | 0 | 0 | 0 | 0 | 0.007313 | 0.238162 | 1,436 | 44 | 97 | 32.636364 | 0.83638 | 0 | 0 | 0.3125 | 0 | 0 | 0.05993 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0 | 0.09375 | 0 | 0.53125 | 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 |
2439870d0dc2e1bcb3751631f30a8739e081f43c | 1,514 | py | Python | data/cpudb_cleaner.py | bahaugen/top500vis | 770bcb15504f9b27a9017d1b7f9cd3d17e92d1c9 | [
"MIT"
] | 2 | 2015-07-24T04:43:03.000Z | 2020-03-16T09:26:23.000Z | data/cpudb_cleaner.py | bahaugen/top500vis | 770bcb15504f9b27a9017d1b7f9cd3d17e92d1c9 | [
"MIT"
] | null | null | null | data/cpudb_cleaner.py | bahaugen/top500vis | 770bcb15504f9b27a9017d1b7f9cd3d17e92d1c9 | [
"MIT"
] | null | null | null | #This is a python script to work with the CPUDB dataset
#Blake Haugen
import pandas as pd
import os.path
import collections
import datetime as dt
processor_df=pd.read_csv("cpudb/processor.csv")
processor_df=processor_df[['date','clock','manufacturer_id','technology_id','model']]
print processor_df
manufacturer_df=pd.... | 34.409091 | 85 | 0.817041 | 239 | 1,514 | 4.866109 | 0.196653 | 0.151333 | 0.068788 | 0.096303 | 0.27859 | 0.172829 | 0.129837 | 0.065348 | 0.065348 | 0.065348 | 0 | 0 | 0.048217 | 1,514 | 43 | 86 | 35.209302 | 0.807078 | 0.293923 | 0 | 0.125 | 0 | 0 | 0.295175 | 0.070956 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.208333 | 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 |
2441252efad292c198ca4de98d4071fb5ced26d9 | 1,270 | py | Python | flask/app.py | vdaytona/statistical-arbitrage-18-19 | a3ab6079425320292e3d12802a63aadce1868c4a | [
"MIT"
] | 163 | 2019-07-31T13:32:10.000Z | 2022-03-21T08:14:46.000Z | flask/app.py | BGTCapital/pairstrade-fyp-2019 | 032ccf3c6151f3c2179237a771abadb8d9c98424 | [
"MIT"
] | 14 | 2019-07-31T13:16:49.000Z | 2022-03-11T23:46:46.000Z | flask/app.py | BGTCapital/pairstrade-fyp-2019 | 032ccf3c6151f3c2179237a771abadb8d9c98424 | [
"MIT"
] | 38 | 2019-08-22T04:20:57.000Z | 2022-03-11T06:08:13.000Z | # import os
# from flask import Flask, render_template, send_from_directory
# app = Flask(__name__)
# @app.route("/")
# def index():
# return render_template("index.html")
# if __name__ == '__main__':
# app.run(debug = True)
# === bokeh demo at below ===
# embedding the graph to html
from flask ... | 24.901961 | 91 | 0.675591 | 185 | 1,270 | 4.454054 | 0.481081 | 0.067961 | 0.036408 | 0.048544 | 0.293689 | 0.184466 | 0.101942 | 0 | 0 | 0 | 0 | 0.012846 | 0.20315 | 1,270 | 50 | 92 | 25.4 | 0.801383 | 0.497638 | 0 | 0 | 0 | 0 | 0.120354 | 0.086726 | 0 | 0 | 0 | 0.02 | 0 | 1 | 0.125 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
24448309a23fce5c70cf1965a4493d9e8293ba78 | 894 | py | Python | tests/migrations/0010_song.py | ababic/django-modelcluster | 48e0a981641c998072f194dbf2b22b6fad3bb8c7 | [
"BSD-3-Clause"
] | 278 | 2017-02-06T14:32:40.000Z | 2022-03-24T12:26:54.000Z | tests/migrations/0010_song.py | ababic/django-modelcluster | 48e0a981641c998072f194dbf2b22b6fad3bb8c7 | [
"BSD-3-Clause"
] | 77 | 2017-01-27T17:08:41.000Z | 2022-03-10T14:14:03.000Z | tests/migrations/0010_song.py | ababic/django-modelcluster | 48e0a981641c998072f194dbf2b22b6fad3bb8c7 | [
"BSD-3-Clause"
] | 44 | 2017-01-27T17:04:04.000Z | 2022-03-15T10:29:52.000Z | # Generated by Django 2.1.5 on 2019-01-17 21:49
from django.db import migrations, models
import django.db.models.deletion
import modelcluster.fields
class Migration(migrations.Migration):
dependencies = [
('tests', '0009_article_related_articles'),
]
operations = [
migrations.CreateMode... | 31.928571 | 144 | 0.599553 | 93 | 894 | 5.645161 | 0.645161 | 0.045714 | 0.053333 | 0.08381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033537 | 0.266219 | 894 | 27 | 145 | 33.111111 | 0.766768 | 0.050336 | 0 | 0 | 1 | 0 | 0.112161 | 0.034238 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2455bd7c665b68b65215cab23a6658eaecdd5e99 | 279 | py | Python | vnpy/trader/gatewayTrade/stubNullGateway/__init__.py | chenzj810/vnpy-stock | ca30eb309e38f9f916e9877538b98096303e0b60 | [
"MIT"
] | 2 | 2021-01-03T05:28:14.000Z | 2021-01-03T05:28:19.000Z | vnpy/trader/gatewayTrade/stubNullGateway/__init__.py | chenzj810/vnpy | ca30eb309e38f9f916e9877538b98096303e0b60 | [
"MIT"
] | null | null | null | vnpy/trader/gatewayTrade/stubNullGateway/__init__.py | chenzj810/vnpy | ca30eb309e38f9f916e9877538b98096303e0b60 | [
"MIT"
] | 1 | 2021-04-26T14:08:23.000Z | 2021-04-26T14:08:23.000Z | # encoding: UTF-8
from vnpy.trader.language import vtConstant
from .stubNullGateway import stubNullGateway
gatewayClass = stubNullGateway
gatewayName = 'NULLSTUB'
gatewayDisplayName = '空桩Gateway'
gatewayType = vtConstant.GATEWAYTYPE_EQUITY
gatewayQryEnabled = True
| 23.25 | 45 | 0.799283 | 25 | 279 | 8.88 | 0.76 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004184 | 0.143369 | 279 | 11 | 46 | 25.363636 | 0.924686 | 0.053763 | 0 | 0 | 0 | 0 | 0.068 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 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 |
24574ca9c6c02688e952912a9f1eefd6a17027ce | 725 | py | Python | setup.py | HeitorBoschirolli/metabot2txt | 845c6b1042f7e586cf80de56e78c976e3c919f0a | [
"MIT"
] | null | null | null | setup.py | HeitorBoschirolli/metabot2txt | 845c6b1042f7e586cf80de56e78c976e3c919f0a | [
"MIT"
] | null | null | null | setup.py | HeitorBoschirolli/metabot2txt | 845c6b1042f7e586cf80de56e78c976e3c919f0a | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name="metabot2txt",
version="0.0.1",
description="convert images of well structured tables to text",
url="https://github.com/HeitorBoschirolli/metabot2txt",
author="Heitor Boschirolli",
author_email="heitor.boschirolli@gmail.com",
license="MIT",
class... | 29 | 67 | 0.637241 | 72 | 725 | 6.277778 | 0.75 | 0.075221 | 0.110619 | 0.115044 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019538 | 0.223448 | 725 | 24 | 68 | 30.208333 | 0.783304 | 0 | 0 | 0 | 0 | 0 | 0.50069 | 0.089655 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.043478 | 0 | 0.043478 | 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 |
24575f963c29367d2f18e60cf389aafcd3288d70 | 10,721 | py | Python | test.py | ximengyi/HMserver | 2471d27080469f81b947fba6e9407700f6497213 | [
"MIT"
] | null | null | null | test.py | ximengyi/HMserver | 2471d27080469f81b947fba6e9407700f6497213 | [
"MIT"
] | null | null | null | test.py | ximengyi/HMserver | 2471d27080469f81b947fba6e9407700f6497213 | [
"MIT"
] | null | null | null | #-*- coding: UTF-8 -*-
import sys
import copy
reload(sys)
sys.setdefaultencoding('utf-8')
from flask import Flask, request, session, g, redirect, url_for, abort, \
render_template, flash
import sqlite3
app = Flask(__name__)
@app.route('/')
def hello_world():
return render_template('index.html',title='欢迎使用HM作业快... | 42.375494 | 246 | 0.663371 | 1,366 | 10,721 | 5.1347 | 0.120791 | 0.065868 | 0.02994 | 0.041916 | 0.5931 | 0.536071 | 0.483034 | 0.441118 | 0.364842 | 0.325349 | 0 | 0.007523 | 0.181699 | 10,721 | 252 | 247 | 42.543651 | 0.791975 | 0.16034 | 0 | 0.372222 | 0 | 0.066667 | 0.361455 | 0.055016 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.022222 | null | null | 0.038889 | 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 |
245df7905d82bbef5df53396db43acb794e778dd | 3,220 | py | Python | tests/compare_messages.py | matan-h/friendly | 3ab0fc6541c837271e8865e247750007acdd18fb | [
"MIT"
] | 287 | 2019-04-08T13:18:29.000Z | 2021-03-14T19:10:21.000Z | tests/compare_messages.py | matan-h/friendly | 3ab0fc6541c837271e8865e247750007acdd18fb | [
"MIT"
] | 191 | 2019-04-08T14:39:18.000Z | 2021-03-14T22:14:56.000Z | tests/compare_messages.py | matan-h/friendly | 3ab0fc6541c837271e8865e247750007acdd18fb | [
"MIT"
] | 9 | 2019-04-08T12:54:08.000Z | 2020-11-20T02:26:27.000Z | """Compare messages for exceptions other than SyntaxError"""
import messages_3_6
import messages_3_7
import messages_3_8
import messages_3_9
import messages_3_10
info_36 = messages_3_6.messages
info_37 = messages_3_7.messages
info_38 = messages_3_8.messages
info_39 = messages_3_9.messages
info_310 = messages_3_10.mess... | 35.777778 | 81 | 0.576087 | 461 | 3,220 | 3.824295 | 0.167028 | 0.205899 | 0.095292 | 0.077141 | 0.585933 | 0.552467 | 0.509926 | 0.430516 | 0.430516 | 0.407828 | 0 | 0.058896 | 0.245963 | 3,220 | 89 | 82 | 36.179775 | 0.667216 | 0.040373 | 0 | 0.506494 | 0 | 0 | 0.205968 | 0.047032 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012987 | false | 0 | 0.064935 | 0 | 0.077922 | 0.103896 | 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 |
24624e8b21ecd034ca6995036c625f9e667d5858 | 2,779 | py | Python | krobot/caro.py | rbardenet/krobot | 3d7bc459a433017bb18f176d702c5b52ac2e32d3 | [
"MIT"
] | 1 | 2015-12-04T22:19:57.000Z | 2015-12-04T22:19:57.000Z | krobot/caro.py | rbardenet/krobot | 3d7bc459a433017bb18f176d702c5b52ac2e32d3 | [
"MIT"
] | 5 | 2015-10-29T22:34:22.000Z | 2015-11-24T21:52:58.000Z | krobot/caro.py | rbardenet/krobot | 3d7bc459a433017bb18f176d702c5b52ac2e32d3 | [
"MIT"
] | null | null | null | #import pause
import sys
import pause
import datetime
import xml.etree.ElementTree
from data import RU, Person
from credit import CreditFetcher
from mail import MailAgent
class Caro(object):
"""
main caro class
"""
def __init__(self, medium, mailAgent):
super(Caro, self).__init__()
self.medium = medium
s... | 20.433824 | 85 | 0.664268 | 393 | 2,779 | 4.562341 | 0.328244 | 0.023424 | 0.03179 | 0.025655 | 0.152817 | 0.121584 | 0.121584 | 0.121584 | 0.121584 | 0.121584 | 0 | 0.006818 | 0.208348 | 2,779 | 135 | 86 | 20.585185 | 0.808182 | 0.100036 | 0 | 0.108108 | 0 | 0 | 0.077468 | 0 | 0 | 0 | 0 | 0.007407 | 0 | 0 | null | null | 0.013514 | 0.094595 | null | null | 0.027027 | 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 |
246368fd8545ddcd51838a9b67899956b3bd2467 | 68 | py | Python | uva_202/uva_202.py | stwklu/403_repo | 62ba70bf012a556137fea6e94dd8bf4f2e660a91 | [
"MIT"
] | null | null | null | uva_202/uva_202.py | stwklu/403_repo | 62ba70bf012a556137fea6e94dd8bf4f2e660a91 | [
"MIT"
] | 1 | 2018-01-16T05:56:28.000Z | 2018-02-03T04:29:08.000Z | uva_202/uva_202.py | stwklu/403_repo | 62ba70bf012a556137fea6e94dd8bf4f2e660a91 | [
"MIT"
] | null | null | null |
def main():
a = 1.0
b = 397.0
print(a/b)
return(0)
main() | 5.666667 | 11 | 0.485294 | 14 | 68 | 2.357143 | 0.642857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148936 | 0.308824 | 68 | 12 | 12 | 5.666667 | 0.553191 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.166667 | 0.166667 | 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 |
24660db98c03ef3755bc42c0b49ae170d30e0e86 | 6,538 | py | Python | BeagleBone Python/SparkFun TB6612FNG breakout/BBB_GeneralDualMotorControl.py | DocVaughan/CRAWLAB-Code-Snippets | 90c946bef0fbe37401f822d58ce5a6b3c5349616 | [
"BSD-3-Clause"
] | 12 | 2015-03-03T18:32:03.000Z | 2021-03-13T18:50:37.000Z | BeagleBone Python/SparkFun TB6612FNG breakout/BBB_GeneralDualMotorControl.py | DocVaughan/CRAWLAB-Code-Snippets | 90c946bef0fbe37401f822d58ce5a6b3c5349616 | [
"BSD-3-Clause"
] | null | null | null | BeagleBone Python/SparkFun TB6612FNG breakout/BBB_GeneralDualMotorControl.py | DocVaughan/CRAWLAB-Code-Snippets | 90c946bef0fbe37401f822d58ce5a6b3c5349616 | [
"BSD-3-Clause"
] | 7 | 2017-01-20T20:31:54.000Z | 2021-12-28T16:52:48.000Z | #! /usr/bin/env python
###############################################################################
# BBB_GeneralDualMotorControl.py
#
# Class-based test of dual motor control using
# using the SparkFun TB6612FNG breakout board
# http://sfe.io/p9457
#
# Requires - Adafruit BeagleBone IO Python library
#
# NOTE... | 32.527363 | 120 | 0.593607 | 828 | 6,538 | 4.646135 | 0.286232 | 0.023395 | 0.029114 | 0.028074 | 0.333767 | 0.276839 | 0.233169 | 0.214453 | 0.177021 | 0.161684 | 0 | 0.031284 | 0.300857 | 6,538 | 201 | 121 | 32.527363 | 0.810326 | 0.2539 | 0 | 0.311111 | 0 | 0 | 0.10049 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.044444 | null | null | 0.066667 | 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 |
79e50ad4bcada867c54c9180930d4d756db937f7 | 1,765 | py | Python | impact_story/products/unknown.py | CenterForOpenScience/PyImpactStory | 64da5d835da90ba0e11d494aa6b30f81bfe4f086 | [
"Apache-2.0"
] | 2 | 2015-04-18T21:35:50.000Z | 2020-05-13T16:14:38.000Z | impact_story/products/unknown.py | CenterForOpenScience/PyImpactStory | 64da5d835da90ba0e11d494aa6b30f81bfe4f086 | [
"Apache-2.0"
] | null | null | null | impact_story/products/unknown.py | CenterForOpenScience/PyImpactStory | 64da5d835da90ba0e11d494aa6b30f81bfe4f086 | [
"Apache-2.0"
] | 3 | 2017-08-28T13:44:45.000Z | 2019-05-09T03:13:43.000Z | from product import Product
class Unknown(Product):
def __init__(self, raw_product):
Product.__init__(self, raw_product)
bib_info = raw_product.get('slides', {})
self._parse_bib_info(bib_info)
def _parse_bib_info(self, bib_info):
self._free_fulltext_url = str(bib_info.get ('fr... | 31.517857 | 77 | 0.605666 | 210 | 1,765 | 4.680952 | 0.219048 | 0.099695 | 0.061038 | 0.079349 | 0.036623 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.250425 | 1,765 | 55 | 78 | 32.090909 | 0.743008 | 0 | 0 | 0.133333 | 0 | 0 | 0.132011 | 0.011898 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.022222 | 0.155556 | 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 | 0 | 1 | 0 | 0 | 0 | 1 |
79f52b1683bb591ec42f6e36cfea8c837a62ca6f | 457 | py | Python | meiduo_demo/meiduo_demo/apps/oauth/migrations/0002_auto_20190520_1613.py | butaihuiwan/meiduo_demo | fcdbcd9c0ee96f41473537a70462dbc73b1cb50c | [
"MIT"
] | null | null | null | meiduo_demo/meiduo_demo/apps/oauth/migrations/0002_auto_20190520_1613.py | butaihuiwan/meiduo_demo | fcdbcd9c0ee96f41473537a70462dbc73b1cb50c | [
"MIT"
] | null | null | null | meiduo_demo/meiduo_demo/apps/oauth/migrations/0002_auto_20190520_1613.py | butaihuiwan/meiduo_demo | fcdbcd9c0ee96f41473537a70462dbc73b1cb50c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2019-05-20 16:13
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('oauth', '0001_initial'),
]
operations = [
migrations.RemoveField(
mode... | 19.869565 | 49 | 0.582057 | 45 | 457 | 5.755556 | 0.755556 | 0.108108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06875 | 0.299781 | 457 | 22 | 50 | 20.772727 | 0.740625 | 0.150985 | 0 | 0.133333 | 1 | 0 | 0.106494 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 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 |
0304cc51aba6d530c0ef43dfafa268024f564495 | 1,035 | py | Python | utility/strprocess.py | kuldeepghodasara/lyricsar | 9f1632f19ae480ca92e325495c28c595e77a45da | [
"MIT"
] | 1 | 2021-07-09T07:21:00.000Z | 2021-07-09T07:21:00.000Z | utility/strprocess.py | kuldeepghodasara/lyricsar | 9f1632f19ae480ca92e325495c28c595e77a45da | [
"MIT"
] | null | null | null | utility/strprocess.py | kuldeepghodasara/lyricsar | 9f1632f19ae480ca92e325495c28c595e77a45da | [
"MIT"
] | null | null | null | import string
class strprocess:
"""add all extra processing method """
def __init__(self):
self.data=""
self.tags=["</p>","</br>","<br/>","<br>","<p>","</P>"]
self.marks=["/","?","-","!","@","#","$","%","^","*","(",")",";","{","}","~"]
def makehtml(self,data):
self.data="<"+"... | 27.972973 | 84 | 0.537198 | 120 | 1,035 | 4.533333 | 0.35 | 0.132353 | 0.088235 | 0.088235 | 0.073529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230918 | 1,035 | 36 | 85 | 28.75 | 0.683417 | 0 | 0 | 0.074074 | 0 | 0 | 0.136409 | 0.037111 | 0.037037 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.037037 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0306c27a76f0bec59c919d9027056ed688834b13 | 566 | py | Python | Moderating/Perms/role.py | DerKeksTV/Keks-Bot | de07281c5bb15e0d578d27a564420a8ba61f6db4 | [
"MIT"
] | 3 | 2020-11-25T20:35:17.000Z | 2021-02-09T16:28:58.000Z | Moderating/Perms/role.py | DerKeksTV/Keks-Bot | de07281c5bb15e0d578d27a564420a8ba61f6db4 | [
"MIT"
] | null | null | null | Moderating/Perms/role.py | DerKeksTV/Keks-Bot | de07281c5bb15e0d578d27a564420a8ba61f6db4 | [
"MIT"
] | null | null | null | import discord
import json
from config import config
bot = config.bot()
def get_role(role, ctx):
return discord.utils.get(ctx.guild.roles, name=role)
def roles():
with open("Moderating/Perms/roles.json") as file:
return json.load(file)
async def is_muted(user):
return get_role(role="Muted", c... | 20.962963 | 60 | 0.660777 | 88 | 566 | 4.136364 | 0.420455 | 0.10989 | 0.090659 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004474 | 0.210247 | 566 | 26 | 61 | 21.769231 | 0.809843 | 0 | 0 | 0 | 0 | 0 | 0.086572 | 0.047703 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.176471 | 0.058824 | 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 |
030a12c9707331d0f587c2dd2808271fb53372cb | 1,301 | py | Python | pygitlabmonitor/projectcache.py | tomdoel/pygitlabmonitor | 2ba63f118868f139e02492c15e438a256314ba77 | [
"BSD-3-Clause"
] | 1 | 2016-11-23T13:50:32.000Z | 2016-11-23T13:50:32.000Z | pygitlabmonitor/projectcache.py | tomdoel/pygitlabmonitor | 2ba63f118868f139e02492c15e438a256314ba77 | [
"BSD-3-Clause"
] | 1 | 2016-11-23T13:50:04.000Z | 2016-11-23T13:50:04.000Z | pygitlabmonitor/projectcache.py | tomdoel/pygitlabmonitor | 2ba63f118868f139e02492c15e438a256314ba77 | [
"BSD-3-Clause"
] | null | null | null |
class ProjectStatus:
def __init__(self, name):
self.name = name
self.icon = None
self.status = None
def add_icon(self, icon):
self.icon = icon
def set_status(self, status):
self.status = status
class ProjectStatusDictionary(object):
def __init__(self):
... | 28.282609 | 66 | 0.653344 | 149 | 1,301 | 5.510067 | 0.201342 | 0.060901 | 0.040195 | 0.034105 | 0.182704 | 0.058465 | 0 | 0 | 0 | 0 | 0 | 0 | 0.252882 | 1,301 | 45 | 67 | 28.911111 | 0.84465 | 0 | 0 | 0.060606 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.30303 | false | 0 | 0 | 0 | 0.484848 | 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 |
030d0cbb8de7243a54701a9c43878b16da3e057b | 1,700 | py | Python | drivers/monetdb.py | xty0505/IDEBench-public | 0fe469eaaef63a1601d5081f0b874e10420bd55a | [
"MIT"
] | 13 | 2018-04-24T00:07:52.000Z | 2022-03-07T12:20:30.000Z | drivers/monetdb.py | xty0505/IDEBench-public | 0fe469eaaef63a1601d5081f0b874e10420bd55a | [
"MIT"
] | 2 | 2020-06-03T02:48:16.000Z | 2020-12-11T09:16:41.000Z | drivers/monetdb.py | xty0505/IDEBench-public | 0fe469eaaef63a1601d5081f0b874e10420bd55a | [
"MIT"
] | 11 | 2018-07-26T13:56:16.000Z | 2020-12-31T07:32:26.000Z | import pymonetdb
import datetime, time
import itertools
import csv
import json
import os
import multiprocessing
from subprocess import call
from common import util
class IDEBenchDriver:
def init(self, options, schema, driver_arg):
pass
def create_connection(self):
connection = pymonetdb.conne... | 30.909091 | 129 | 0.582941 | 185 | 1,700 | 5.172973 | 0.459459 | 0.073145 | 0.022989 | 0.037618 | 0.050157 | 0.050157 | 0 | 0 | 0 | 0 | 0 | 0.004378 | 0.328235 | 1,700 | 54 | 130 | 31.481481 | 0.833625 | 0.009412 | 0 | 0.069767 | 0 | 0 | 0.030916 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.116279 | false | 0.093023 | 0.209302 | 0 | 0.372093 | 0.023256 | 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 |
0312a0187078c821ac4246752d9d9c14d696a3fd | 406 | py | Python | python_plot.py | prusinski/NU_REU_git_NZP | 079049377d6a74914c1e840d3d46d3bc0641a213 | [
"MIT"
] | null | null | null | python_plot.py | prusinski/NU_REU_git_NZP | 079049377d6a74914c1e840d3d46d3bc0641a213 | [
"MIT"
] | 1 | 2019-07-08T19:48:14.000Z | 2019-07-08T19:50:02.000Z | python_plot.py | prusinski/NU_REU_git_NZP | 079049377d6a74914c1e840d3d46d3bc0641a213 | [
"MIT"
] | 2 | 2019-07-08T19:15:11.000Z | 2019-07-08T19:17:12.000Z | %matplotlib inline
import numpy as np
import matplotlib.pyplot as plt
#plot exponential curve from 0 to 2pi
t = np.linspace(0,2*np.pi,100)
plt.plot(t,np.exp(t),'m', label = 'Exponential Curve')
plt.title('Plot of $e^x$')
plt.xlabel('t (s)')
plt.ylabel('$y(t)$')
plt.legend()
plt.grid()
plt.text(2.5,0.25,'This is a \nE... | 23.882353 | 66 | 0.67734 | 77 | 406 | 3.571429 | 0.584416 | 0.050909 | 0.094545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053073 | 0.118227 | 406 | 16 | 67 | 25.375 | 0.715084 | 0.08867 | 0 | 0 | 0 | 0 | 0.208672 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.153846 | 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 |
0312dca442ca26571025820cda5c0c71cbc1f021 | 1,453 | py | Python | etc/old/culled.py | timm/bnbad2 | 942792b2850b39fd38c3612fcff4613b7d8ef0c7 | [
"MIT"
] | 1 | 2021-03-16T01:15:49.000Z | 2021-03-16T01:15:49.000Z | etc/old/culled.py | timm/bnbad2 | 942792b2850b39fd38c3612fcff4613b7d8ef0c7 | [
"MIT"
] | 1 | 2021-01-20T15:09:35.000Z | 2021-01-20T15:09:35.000Z | etc/old/culled.py | timm/bnbad2 | 942792b2850b39fd38c3612fcff4613b7d8ef0c7 | [
"MIT"
] | null | null | null | # Non-parametric optimization.<br>
# Find interesting bits. Combine them. Repeat.<br>
# [home](http://menzies.us/bnbab2) :: [lib](http://menzies.us/bnbad2/lib.html) ::
# [cols](http://menzies.us/bnbad2/tab.html) :: [tbl](http://menzies.us/bnbad2/grow.html)<br>
# <hr>
# <a href="http://github.com/timm/bnbad2"><i... | 36.325 | 130 | 0.629043 | 240 | 1,453 | 3.808333 | 0.416667 | 0.045952 | 0.084245 | 0.062363 | 0.294311 | 0.243982 | 0.101751 | 0.101751 | 0.101751 | 0 | 0 | 0.029863 | 0.147281 | 1,453 | 39 | 131 | 37.25641 | 0.707829 | 0.667584 | 0 | 0.173913 | 0 | 0 | 0.023404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.043478 | 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 |
03164751d5342cd9db2b4cdcd3da0506cb134099 | 334 | py | Python | studentManagementSystem/studentManagementSystem/apps/student/migrations/0021_remove_classroom_class_the_sorting.py | fanlianguo/systemStudent | 9e5d7c2f1084208cb73d6f9481a37e7a0950e710 | [
"MIT"
] | null | null | null | studentManagementSystem/studentManagementSystem/apps/student/migrations/0021_remove_classroom_class_the_sorting.py | fanlianguo/systemStudent | 9e5d7c2f1084208cb73d6f9481a37e7a0950e710 | [
"MIT"
] | null | null | null | studentManagementSystem/studentManagementSystem/apps/student/migrations/0021_remove_classroom_class_the_sorting.py | fanlianguo/systemStudent | 9e5d7c2f1084208cb73d6f9481a37e7a0950e710 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.8 on 2021-11-29 14:33
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('student', '0020_thesorting'),
]
operations = [
migrations.RemoveField(
model_name='classroom',
name='class_The_sorting',
... | 18.555556 | 47 | 0.598802 | 35 | 334 | 5.6 | 0.828571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080169 | 0.290419 | 334 | 17 | 48 | 19.647059 | 0.746835 | 0.134731 | 0 | 0 | 1 | 0 | 0.167247 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
031cd8ba59bc8a6c108b00e00325590ba5e18a28 | 719 | py | Python | config/app.py | nythonore/fastapi-async | 82f34dd421e573f96af1953cc1f72be565743df8 | [
"MIT"
] | null | null | null | config/app.py | nythonore/fastapi-async | 82f34dd421e573f96af1953cc1f72be565743df8 | [
"MIT"
] | null | null | null | config/app.py | nythonore/fastapi-async | 82f34dd421e573f96af1953cc1f72be565743df8 | [
"MIT"
] | null | null | null | from fastapi import FastAPI
from config.settings import settings
from config.middleware import register_middleware
from config.tortoise import register_tortoise
from config.exception import register_exception
from config.routes import register_routes
from core.helpers.responses import responses
def create_app():
ap... | 26.62963 | 55 | 0.776078 | 92 | 719 | 5.880435 | 0.326087 | 0.092421 | 0.088725 | 0.05915 | 0.073937 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150209 | 719 | 26 | 56 | 27.653846 | 0.885434 | 0 | 0 | 0 | 0 | 0 | 0.080668 | 0.080668 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.318182 | 0 | 0.409091 | 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 |
031da70e11d780778029f37eb30f7447d8294b8f | 801 | py | Python | AzureFunctions/F_get_runs/__init__.py | kloudkrafts01/kspyder | 109e7ea4b671c09da8744bf1cb2c2277b349bdba | [
"MIT"
] | 3 | 2021-03-29T13:08:29.000Z | 2021-04-02T15:27:17.000Z | AzureFunctions/F_get_runs/__init__.py | kloudkrafts01/kspyder | 109e7ea4b671c09da8744bf1cb2c2277b349bdba | [
"MIT"
] | null | null | null | AzureFunctions/F_get_runs/__init__.py | kloudkrafts01/kspyder | 109e7ea4b671c09da8744bf1cb2c2277b349bdba | [
"MIT"
] | null | null | null | #!python3
import json
import azure.functions as func
import azure.durable_functions as df
from common.spLogging import logger
async def main(req: func.HttpRequest, starter: str) -> None:
client = df.DurableOrchestrationClient(starter)
instances = await client.get_status_all()
instances_list = []
# ... | 24.272727 | 60 | 0.621723 | 88 | 801 | 5.522727 | 0.590909 | 0.080247 | 0.08642 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006944 | 0.280899 | 801 | 33 | 61 | 24.272727 | 0.836806 | 0.284644 | 0 | 0 | 0 | 0 | 0.028369 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
0326064b23d7678ddd517496292a5871d650ca70 | 869 | py | Python | argostrain/multilang.py | m-stoeckel/argos-train | 6c0103c663c8f0d36d8840ef0e24ca2f981ebfee | [
"MIT"
] | 32 | 2020-08-29T20:52:23.000Z | 2021-10-20T08:08:50.000Z | argostrain/multilang.py | ZendaiOwl/argos-train | e706c1ef72e6c46d321b2bac3328c13ef4bcd39e | [
"MIT"
] | 7 | 2020-12-21T19:49:22.000Z | 2021-10-20T12:17:57.000Z | argostrain/multilang.py | ZendaiOwl/argos-train | e706c1ef72e6c46d321b2bac3328c13ef4bcd39e | [
"MIT"
] | 4 | 2021-11-04T16:46:29.000Z | 2022-02-16T13:06:36.000Z | from argostrain.dataset import *
from argostrain.utils import *
from collections import deque
def multilang_special_token(code):
return f"<translate-to-{code}>"
"""
<translate-to-es>Hello
Hola
<translate-to-fr>Hello
Bonjour
"""
def generate_multilang_data(datasets):
"""Generates data for doing multi-lan... | 23.486486 | 88 | 0.681243 | 105 | 869 | 5.533333 | 0.485714 | 0.056799 | 0.072289 | 0.086059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.23015 | 869 | 36 | 89 | 24.138889 | 0.86846 | 0.30725 | 0 | 0 | 0 | 0 | 0.042 | 0.042 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.25 | 0.083333 | 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 |
03322ed0d738264adb96a620791e53b9758d738a | 279 | py | Python | main/migrations/0002_delete_book.py | algakbk/todo-list | afa940f7bd5165a23bebe8befee53c18ccfe29bf | [
"Apache-2.0"
] | null | null | null | main/migrations/0002_delete_book.py | algakbk/todo-list | afa940f7bd5165a23bebe8befee53c18ccfe29bf | [
"Apache-2.0"
] | null | null | null | main/migrations/0002_delete_book.py | algakbk/todo-list | afa940f7bd5165a23bebe8befee53c18ccfe29bf | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.2.6 on 2021-01-21 16:34
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('main', '0001_initial'),
]
operations = [
migrations.DeleteModel(
name='Book',
),
]
| 16.411765 | 47 | 0.580645 | 30 | 279 | 5.366667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097436 | 0.301075 | 279 | 16 | 48 | 17.4375 | 0.728205 | 0.16129 | 0 | 0 | 1 | 0 | 0.086207 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0333ecd89d812e7a956316682e4898d93c8735eb | 200 | py | Python | src/app/task.py | JeremyAndress/Flask-Celery | 2a06e611df63634795e37d04c53fe25e66559d56 | [
"MIT"
] | 2 | 2020-06-22T00:33:25.000Z | 2020-07-06T00:32:17.000Z | src/app/task.py | JeremyAndress/Flask-Celery | 2a06e611df63634795e37d04c53fe25e66559d56 | [
"MIT"
] | null | null | null | src/app/task.py | JeremyAndress/Flask-Celery | 2a06e611df63634795e37d04c53fe25e66559d56 | [
"MIT"
] | null | null | null | from app import create_celery
from utils.logging import logger
celery_app = create_celery()
@celery_app.task(max_retries=3,time_limit=7200)
def periodic():
print('Hi! from periodic_task')
| 18.181818 | 47 | 0.76 | 30 | 200 | 4.833333 | 0.633333 | 0.165517 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02924 | 0.145 | 200 | 10 | 48 | 20 | 0.818713 | 0 | 0 | 0 | 0 | 0 | 0.11 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.5 | 0.166667 | 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 |
0334669a987094de91f4084aaab35d8230819812 | 278 | py | Python | django_project/posts/constants.py | eshandas/django_key_value_settings | 70ba8c0877f4b59cb66e69507b1e78bbd62f7e65 | [
"MIT"
] | null | null | null | django_project/posts/constants.py | eshandas/django_key_value_settings | 70ba8c0877f4b59cb66e69507b1e78bbd62f7e65 | [
"MIT"
] | 7 | 2020-06-06T00:25:53.000Z | 2022-03-12T00:03:44.000Z | django_project/posts/constants.py | eshandas/django_key_value_settings | 70ba8c0877f4b59cb66e69507b1e78bbd62f7e65 | [
"MIT"
] | null | null | null | class ResponseKeys(object):
POST = 'post'
POSTS = 'posts'
POST_SAVED = 'The post was saved successfully'
POST_UPDATED = 'The post was updated successfully'
POST_DELETED = 'The post was deleted successfully'
POST_NOT_FOUND = 'The post could not be found'
| 34.75 | 54 | 0.705036 | 37 | 278 | 5.162162 | 0.405405 | 0.146597 | 0.157068 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.219424 | 278 | 7 | 55 | 39.714286 | 0.880184 | 0 | 0 | 0 | 0 | 0 | 0.478417 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 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 |
033ab2fa62d4f894a1c980fddd29cc0f57cb9999 | 2,832 | py | Python | tests/integration/optimizers/test_optimizer_pod_choice.py | Rohitpandit021/jina | f3db4d5e480375d8dc3bceda814ac1963dee76d7 | [
"Apache-2.0"
] | 15,179 | 2020-04-28T10:23:56.000Z | 2022-03-31T14:35:25.000Z | tests/integration/optimizers/test_optimizer_pod_choice.py | Rohitpandit021/jina | f3db4d5e480375d8dc3bceda814ac1963dee76d7 | [
"Apache-2.0"
] | 3,912 | 2020-04-28T13:01:29.000Z | 2022-03-31T14:36:46.000Z | tests/integration/optimizers/test_optimizer_pod_choice.py | Rohitpandit021/jina | f3db4d5e480375d8dc3bceda814ac1963dee76d7 | [
"Apache-2.0"
] | 1,955 | 2020-04-28T10:50:49.000Z | 2022-03-31T12:28:34.000Z | import os
import pytest
from jina import Document
from jina.optimizers import FlowOptimizer, EvaluationCallback
from jina.optimizers.flow_runner import SingleFlowRunner
cur_dir = os.path.dirname(os.path.abspath(__file__))
@pytest.fixture
def config(tmpdir):
os.environ['JINA_OPTIMIZER_WORKSPACE_DIR'] = str(tmpd... | 34.962963 | 88 | 0.724223 | 343 | 2,832 | 5.635569 | 0.239067 | 0.024832 | 0.066218 | 0.107605 | 0.792033 | 0.75582 | 0.632178 | 0.496637 | 0.496637 | 0.496637 | 0 | 0.013687 | 0.174435 | 2,832 | 80 | 89 | 35.4 | 0.813088 | 0 | 0 | 0.41791 | 0 | 0 | 0.201624 | 0.157486 | 0 | 0 | 0 | 0 | 0.119403 | 1 | 0.074627 | false | 0 | 0.074627 | 0 | 0.149254 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
033cd8555f09dc436e675abc280153834ab23849 | 327 | py | Python | blockchain/broadcast/bob.py | cliffton/Fractal | 95dd9cd24494f0f668dcdfa6e734d360207f7435 | [
"MIT"
] | null | null | null | blockchain/broadcast/bob.py | cliffton/Fractal | 95dd9cd24494f0f668dcdfa6e734d360207f7435 | [
"MIT"
] | null | null | null | blockchain/broadcast/bob.py | cliffton/Fractal | 95dd9cd24494f0f668dcdfa6e734d360207f7435 | [
"MIT"
] | null | null | null | from pyp2p.net import *
# Setup Bob's p2p node.
bob = Net(passive_bind="127.0.0.1", passive_port=44445, debug=1,
servers=[{'addr': '127.0.0.1', 'port': '8000'}])
bob.start()
bob.bootstrap()
bob.advertise()
# Event loop.
while 1:
print("bob")
for con in bob:
con.send_line("test")
time.sl... | 19.235294 | 64 | 0.605505 | 53 | 327 | 3.679245 | 0.660377 | 0.041026 | 0.051282 | 0.061538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.099617 | 0.201835 | 327 | 16 | 65 | 20.4375 | 0.64751 | 0.100917 | 0 | 0 | 0 | 0 | 0.127148 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.090909 | 0.090909 | 0 | 0.090909 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0356ba4cc95ea83f5ba841c2f15db52911244496 | 525 | py | Python | media.py | dvanetten03/udacity-movie-trailer | e876ec1b2d68f2bc6cd37fb9067c733e2119d75d | [
"MIT"
] | null | null | null | media.py | dvanetten03/udacity-movie-trailer | e876ec1b2d68f2bc6cd37fb9067c733e2119d75d | [
"MIT"
] | null | null | null | media.py | dvanetten03/udacity-movie-trailer | e876ec1b2d68f2bc6cd37fb9067c733e2119d75d | [
"MIT"
] | null | null | null | import webbrowser
# Create the class movie to store movie related information
class Movie():
def __init__(self, movie_title, movie_story, pos_image, trailer_youtube):
# create space in memory for a new instance of class movie
self.title = movie_title
self.storyline = movie_story
s... | 30.882353 | 77 | 0.71619 | 70 | 525 | 5.1 | 0.5 | 0.156863 | 0.10084 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230476 | 525 | 16 | 78 | 32.8125 | 0.883663 | 0.278095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.444444 | 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 |
03588589b90140d511c110cfc496bd0cbe15fba1 | 4,119 | py | Python | indra/tests/test_hprd.py | zebulon2/indra | 7727ddcab52ad8012eb6592635bfa114e904bd48 | [
"BSD-2-Clause"
] | 136 | 2016-02-11T22:06:37.000Z | 2022-03-31T17:26:20.000Z | indra/tests/test_hprd.py | zebulon2/indra | 7727ddcab52ad8012eb6592635bfa114e904bd48 | [
"BSD-2-Clause"
] | 748 | 2016-02-03T16:27:56.000Z | 2022-03-09T14:27:54.000Z | indra/tests/test_hprd.py | zebulon2/indra | 7727ddcab52ad8012eb6592635bfa114e904bd48 | [
"BSD-2-Clause"
] | 56 | 2015-08-28T14:03:44.000Z | 2022-02-04T06:15:55.000Z | from os.path import join, abspath, dirname
from nose.tools import raises
from indra.statements import Complex, Phosphorylation
from indra.sources import hprd
test_dir = join(abspath(dirname(__file__)), 'hprd_tests_data')
id_file = join(test_dir, 'HPRD_ID_MAPPINGS.txt')
def test_process_complexes():
cplx_file ... | 41.19 | 79 | 0.61447 | 533 | 4,119 | 4.559099 | 0.245779 | 0.079012 | 0.085597 | 0.083951 | 0.599588 | 0.551852 | 0.551852 | 0.495473 | 0.469959 | 0.400412 | 0 | 0.087559 | 0.229182 | 4,119 | 99 | 80 | 41.606061 | 0.677795 | 0 | 0 | 0.364706 | 0 | 0 | 0.207675 | 0.063881 | 0 | 0 | 0 | 0 | 0.505882 | 1 | 0.047059 | false | 0 | 0.047059 | 0 | 0.094118 | 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 |
035de3fd4c03aad515d0af249d37ecc3a60b1693 | 1,124 | py | Python | quickstart.py | SamitBaghla/python_qs | 4f48269bf68e3bec55c4547fc6aad71796050a38 | [
"Apache-2.0"
] | 3 | 2020-06-26T12:41:49.000Z | 2020-12-03T18:24:38.000Z | quickstart.py | SamitBaghla/python_qs | 4f48269bf68e3bec55c4547fc6aad71796050a38 | [
"Apache-2.0"
] | 1 | 2020-06-16T14:30:23.000Z | 2020-06-16T14:37:26.000Z | quickstart.py | SamitBaghla/python_qs | 4f48269bf68e3bec55c4547fc6aad71796050a38 | [
"Apache-2.0"
] | 2 | 2020-07-23T04:35:49.000Z | 2020-09-25T15:57:47.000Z | from cassandra.cluster import Cluster
def create_connection():
# TO DO: Fill in your own contact point
cluster = Cluster(['127.0.0.1'])
return cluster.connect('demo')
def set_user(session, lastname, age, city, email, firstname):
# TO DO: execute SimpleStatement that inserts one user into the table
d... | 23.914894 | 75 | 0.698399 | 154 | 1,124 | 4.954545 | 0.37013 | 0.129751 | 0.174312 | 0.136304 | 0.450852 | 0.36173 | 0.241153 | 0.241153 | 0 | 0 | 0 | 0.011287 | 0.211744 | 1,124 | 46 | 76 | 24.434783 | 0.849887 | 0.307829 | 0 | 0.086957 | 0 | 0 | 0.064851 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.043478 | 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 |
0360541156d7299330e2e307373dfd3c6461e77e | 1,001 | py | Python | api/migrations/0001_initial.py | coder-chris-git/django-react-love_backend | 11b7366f6c3c4d9d3b72b145e100b26305c52128 | [
"MIT"
] | null | null | null | api/migrations/0001_initial.py | coder-chris-git/django-react-love_backend | 11b7366f6c3c4d9d3b72b145e100b26305c52128 | [
"MIT"
] | null | null | null | api/migrations/0001_initial.py | coder-chris-git/django-react-love_backend | 11b7366f6c3c4d9d3b72b145e100b26305c52128 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.4 on 2021-06-29 00:58
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='BoastAndRoastModel',
fields=[
... | 34.517241 | 117 | 0.59041 | 102 | 1,001 | 5.686275 | 0.627451 | 0.077586 | 0.065517 | 0.089655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02981 | 0.262737 | 1,001 | 28 | 118 | 35.75 | 0.756098 | 0.044955 | 0 | 0 | 1 | 0 | 0.10587 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.095238 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0364be9713ad5dd89ed793813ab0220f8de45e4c | 14,507 | py | Python | ipd/scripts/ipd.py | GaretJax/ipd | 7900bdacdae3cc0b9d61dabb741b8782df8b8360 | [
"MIT"
] | null | null | null | ipd/scripts/ipd.py | GaretJax/ipd | 7900bdacdae3cc0b9d61dabb741b8782df8b8360 | [
"MIT"
] | 3 | 2021-03-31T18:40:07.000Z | 2021-12-13T19:44:27.000Z | ipd/scripts/ipd.py | GaretJax/ipd | 7900bdacdae3cc0b9d61dabb741b8782df8b8360 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
import argparse
import signal
from ipd import logging
from twisted.internet import reactor, defer
from structlog import get_logger
logger = get_logger()
def setup_async():
"""
Sets up a signal handler which catches the KeyboardInterrupt raised by the
signal handle... | 29.425963 | 135 | 0.627146 | 1,551 | 14,507 | 5.74726 | 0.234043 | 0.021315 | 0.018959 | 0.01952 | 0.263182 | 0.187009 | 0.133834 | 0.09659 | 0.081669 | 0.081669 | 0 | 0.009258 | 0.277797 | 14,507 | 492 | 136 | 29.485772 | 0.841558 | 0.052595 | 0 | 0.304217 | 0 | 0 | 0.061786 | 0.017802 | 0 | 0 | 0 | 0 | 0.006024 | 0 | null | null | 0.018072 | 0.11747 | null | null | 0.048193 | 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 |
03716cb7b4e1acea80444339640a1e008eec2daa | 1,788 | py | Python | jumboSmash/users/s3utils.py | wolfep15/arith | 14e628210e54d8f171dff796e7c71d3ea1574067 | [
"MIT"
] | 1 | 2020-08-04T01:10:56.000Z | 2020-08-04T01:10:56.000Z | jumboSmash/users/s3utils.py | wolfep15/arith | 14e628210e54d8f171dff796e7c71d3ea1574067 | [
"MIT"
] | null | null | null | jumboSmash/users/s3utils.py | wolfep15/arith | 14e628210e54d8f171dff796e7c71d3ea1574067 | [
"MIT"
] | null | null | null | from botocore.exceptions import ClientError
from django.conf import settings
import boto3
import logging
def create_presigned_url(object_name, expiration=3600):
"""Generate a presigned URL to share an S3 object
:param bucket_name: string
:param object_name: string
:param expiration: Time in seconds fo... | 31.928571 | 86 | 0.692953 | 234 | 1,788 | 5.188034 | 0.303419 | 0.088962 | 0.059308 | 0.051895 | 0.450577 | 0.450577 | 0.392916 | 0.392916 | 0.392916 | 0.319605 | 0 | 0.015556 | 0.244966 | 1,788 | 55 | 87 | 32.509091 | 0.883704 | 0.455817 | 0 | 0.461538 | 1 | 0 | 0.025612 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | 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 |
037642afa0c2d245e56032307a0d43a0c4a110c9 | 1,290 | py | Python | optimization/test/test_ir_io_tac.py | zengljnwpu/yaspc | 5e85efb5fb8bee02471814b10e950dfb5b04c5d5 | [
"MIT"
] | null | null | null | optimization/test/test_ir_io_tac.py | zengljnwpu/yaspc | 5e85efb5fb8bee02471814b10e950dfb5b04c5d5 | [
"MIT"
] | null | null | null | optimization/test/test_ir_io_tac.py | zengljnwpu/yaspc | 5e85efb5fb8bee02471814b10e950dfb5b04c5d5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Author : lzc80234@qq.com (liuzhaoci)
# Created : 2017/5/24
'''
read .tac.txt and get instruction lists
'''
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import json
import optimization.BasicBlock.ConstructB... | 30.714286 | 73 | 0.694574 | 157 | 1,290 | 5.420382 | 0.56051 | 0.047004 | 0.056404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013711 | 0.151938 | 1,290 | 41 | 74 | 31.463415 | 0.764168 | 0.171318 | 0 | 0.086957 | 0 | 0 | 0.123195 | 0.071222 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.304348 | 0 | 0.347826 | 0.304348 | 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 |
cee38df253c468b4422cb91f26660f144224d722 | 869 | py | Python | piconumpy/test_cpython_capi.py | paugier/nanonumpy | 43f05f993085912be1ae0167224f68111d4f2038 | [
"BSD-3-Clause"
] | 9 | 2020-03-13T19:02:44.000Z | 2021-07-19T03:29:47.000Z | piconumpy/test_cpython_capi.py | paugier/nanonumpy | 43f05f993085912be1ae0167224f68111d4f2038 | [
"BSD-3-Clause"
] | 5 | 2020-08-06T12:25:50.000Z | 2021-05-01T09:42:50.000Z | piconumpy/test_cpython_capi.py | paugier/nanonumpy | 43f05f993085912be1ae0167224f68111d4f2038 | [
"BSD-3-Clause"
] | 4 | 2020-08-05T20:59:00.000Z | 2021-05-01T09:43:40.000Z | import numpy as np
from . import array
class Tests:
_array = array
def test_init_array(self):
a = self._array([1.0, 2.0])
assert a.size == 2
def test_init_array_numpy(self):
np_a = np.array([1.0, 2.0, 0.0, 0.0])
a = self._array(np_a.tolist())
assert a.size == np_... | 24.138889 | 49 | 0.502877 | 149 | 869 | 2.798658 | 0.187919 | 0.038369 | 0.143885 | 0.115108 | 0.402878 | 0.381295 | 0.381295 | 0.29976 | 0.29976 | 0.184652 | 0 | 0.088333 | 0.309551 | 869 | 35 | 50 | 24.828571 | 0.606667 | 0 | 0 | 0.192308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.346154 | 1 | 0.230769 | false | 0 | 0.076923 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cee79c6838e58c7918ad8c964c7ec55154726403 | 3,808 | py | Python | resource/api/nodetree.py | MaybeRusty/RustyBrain | 4697e462b4b4d830c4521fd4e8b0a307c5dbe694 | [
"MIT"
] | null | null | null | resource/api/nodetree.py | MaybeRusty/RustyBrain | 4697e462b4b4d830c4521fd4e8b0a307c5dbe694 | [
"MIT"
] | null | null | null | resource/api/nodetree.py | MaybeRusty/RustyBrain | 4697e462b4b4d830c4521fd4e8b0a307c5dbe694 | [
"MIT"
] | null | null | null | from flask_restful import Resource, request
from flask_jwt import jwt_required, current_identity
import json
import uuid
from common.ret_status import RetStatus
from common.database import db
from common.satree import TreeManager
from model.nodetree import NodeTree, ReqNodeSchema, RspNodeSchema
class TreeRo... | 41.846154 | 136 | 0.622637 | 477 | 3,808 | 4.78826 | 0.142558 | 0.063047 | 0.047285 | 0.055166 | 0.749124 | 0.700088 | 0.588004 | 0.588004 | 0.561296 | 0.545972 | 0 | 0 | 0.275998 | 3,808 | 90 | 137 | 42.311111 | 0.828437 | 0 | 0 | 0.581395 | 0 | 0 | 0.096826 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069767 | false | 0 | 0.093023 | 0 | 0.44186 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cee88503ce6f536c2401952b5b2c3c76215a819e | 3,642 | py | Python | cnetzer/day12/day12.py | chadnetzer/advent2020 | b992eb202ff9dd5cc353914a136337412c8bd074 | [
"MIT"
] | null | null | null | cnetzer/day12/day12.py | chadnetzer/advent2020 | b992eb202ff9dd5cc353914a136337412c8bd074 | [
"MIT"
] | 1 | 2020-12-06T07:51:48.000Z | 2020-12-08T05:03:11.000Z | cnetzer/day12/day12.py | chadnetzer/advent2020 | b992eb202ff9dd5cc353914a136337412c8bd074 | [
"MIT"
] | 8 | 2020-12-01T21:29:21.000Z | 2020-12-09T23:55:15.000Z | from math import sin,cos,radians
def compass_to_degrees(compass):
d = { 'E': 90, 'N': 0, 'S': 180, 'W': 270 }
return d[compass]
def compass_offsets(compass_dir):
d = {
'E': ( 1, 0),
'N': ( 0, 1),
'W': (-1, 0),
'S': ( 0,-1),
}
return d[compass_dir]
class Shi... | 27.801527 | 76 | 0.525261 | 494 | 3,642 | 3.661943 | 0.139676 | 0.099502 | 0.060807 | 0.066335 | 0.48314 | 0.421227 | 0.353787 | 0.294085 | 0.26534 | 0.2377 | 0 | 0.02637 | 0.333608 | 3,642 | 130 | 77 | 28.015385 | 0.718995 | 0 | 0 | 0.313725 | 0 | 0 | 0.0162 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 1 | 0.137255 | false | 0.196078 | 0.019608 | 0.009804 | 0.215686 | 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 |
ceec98553d7a07a32e3219018b8fa97ee19f375c | 2,450 | py | Python | cs2quiz2.py | steven1695-cmis/steven1695-cmis-cs2 | ccaaa58c45cfb7602b236a7df85e91bc13486f24 | [
"CC0-1.0"
] | null | null | null | cs2quiz2.py | steven1695-cmis/steven1695-cmis-cs2 | ccaaa58c45cfb7602b236a7df85e91bc13486f24 | [
"CC0-1.0"
] | null | null | null | cs2quiz2.py | steven1695-cmis/steven1695-cmis-cs2 | ccaaa58c45cfb7602b236a7df85e91bc13486f24 | [
"CC0-1.0"
] | null | null | null | #PART 1: Terminology
#1) Give 3 examples of boolean expressions.
#a)3 != 5
#b)"Water" == "Water"
#c)36 >= 4
#
#2) What does 'return' do?
#
#Return is the resultant value you recieve from a function after you finish running it.
#
#
#3) What are 2 ways indentation is important in python code?
#a)Indentation specifies tha... | 30.625 | 545 | 0.724082 | 434 | 2,450 | 4.043779 | 0.324885 | 0.019943 | 0.045584 | 0.022792 | 0.080912 | 0.022792 | 0 | 0 | 0 | 0 | 0 | 0.028169 | 0.188571 | 2,450 | 79 | 546 | 31.012658 | 0.854628 | 0.730612 | 0 | 0.090909 | 0 | 0 | 0.178105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cefbcee486bb4a1c438fdfec855cb37a3eb4d0b2 | 168 | py | Python | Math/1085_직사각형에서 탈출/1085_직사각형에서 탈출.py | 7dudtj/BOJ_myCode | 37d105590a7963e2232102b3098fea3c3504b96f | [
"MIT"
] | 1 | 2022-03-30T15:50:47.000Z | 2022-03-30T15:50:47.000Z | Math/1085_직사각형에서 탈출/1085_직사각형에서 탈출.py | 7dudtj/BOJ_myCode | 37d105590a7963e2232102b3098fea3c3504b96f | [
"MIT"
] | null | null | null | Math/1085_직사각형에서 탈출/1085_직사각형에서 탈출.py | 7dudtj/BOJ_myCode | 37d105590a7963e2232102b3098fea3c3504b96f | [
"MIT"
] | 1 | 2021-07-20T07:11:06.000Z | 2021-07-20T07:11:06.000Z |
x, y, w, h = map(int,input().split())
if x >= w-x:
a = w-x
else:
a = x
if y >= h-y:
b = h-y
else:
b = y
if a >= b:
print(b)
else:
print(a)
| 9.333333 | 37 | 0.404762 | 36 | 168 | 1.888889 | 0.361111 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.380952 | 168 | 17 | 38 | 9.882353 | 0.653846 | 0 | 0 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.153846 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cefd41b103c09240f01b25a46d9c3749444b62db | 1,952 | py | Python | shiqi.py | leeamen/logistic-regression | 0703913b6e272990233e41f1f14d320a633b8df8 | [
"MIT"
] | null | null | null | shiqi.py | leeamen/logistic-regression | 0703913b6e272990233e41f1f14d320a633b8df8 | [
"MIT"
] | null | null | null | shiqi.py | leeamen/logistic-regression | 0703913b6e272990233e41f1f14d320a633b8df8 | [
"MIT"
] | null | null | null | #!/usr/bin/python
#coding:utf-8
from mylogistic import *
import numpy as np
import sys
import argparse
def MultiClassification(train_file_x, train_file_y, test_file_x, test_file_y):
train_data = np.loadtxt(train_file_x, delimiter = ',', dtype = np.float)
train_label_data = np.loadtxt(train_file_y, delimiter = ',... | 28.705882 | 80 | 0.696209 | 301 | 1,952 | 4.212625 | 0.322259 | 0.047319 | 0.031546 | 0.066246 | 0.271293 | 0.201893 | 0.119874 | 0.119874 | 0.119874 | 0.119874 | 0 | 0.008475 | 0.153689 | 1,952 | 67 | 81 | 29.134328 | 0.75908 | 0.314549 | 0 | 0 | 0 | 0 | 0.06621 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | 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 |
cefd87badf23deb6445b77dab994f6f637ed7152 | 4,135 | py | Python | src/data_processing/processing.py | mgadaj/ml-house-prices | 42469d2acb1c6d72c10871e8b5b2b54b3fd69635 | [
"MIT"
] | null | null | null | src/data_processing/processing.py | mgadaj/ml-house-prices | 42469d2acb1c6d72c10871e8b5b2b54b3fd69635 | [
"MIT"
] | null | null | null | src/data_processing/processing.py | mgadaj/ml-house-prices | 42469d2acb1c6d72c10871e8b5b2b54b3fd69635 | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
from sklearn.base import BaseEstimator, TransformerMixin
# Imputation of missing values for numerical variables
# by the mode (the value that appears most often in a set of data values).
class ImputerNumericalVariable(BaseEstimator, TransformerMixin):
def __init__(self, var... | 31.325758 | 111 | 0.662394 | 512 | 4,135 | 5.230469 | 0.224609 | 0.11165 | 0.043689 | 0.057132 | 0.533607 | 0.410754 | 0.377147 | 0.348394 | 0.348394 | 0.348394 | 0 | 0.001273 | 0.240387 | 4,135 | 131 | 112 | 31.564886 | 0.851321 | 0.140508 | 0 | 0.62069 | 0 | 0 | 0.009876 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.241379 | false | 0 | 0.034483 | 0.045977 | 0.517241 | 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 |
cefe199ef9563cccb7ee21416a7803c988de273c | 184 | py | Python | src/exceptional.py | misssoft/Fan.Python | c9ffffefa44bc9a67dbf39089acc93b14c1d761c | [
"MIT"
] | null | null | null | src/exceptional.py | misssoft/Fan.Python | c9ffffefa44bc9a67dbf39089acc93b14c1d761c | [
"MIT"
] | null | null | null | src/exceptional.py | misssoft/Fan.Python | c9ffffefa44bc9a67dbf39089acc93b14c1d761c | [
"MIT"
] | null | null | null | """A module for demonstrating exceptions"""
import sys
def convert(s):
'''convert to a integer'''
try:
return int(s)
except (ValueError, TypeError):
raise | 18.4 | 43 | 0.61413 | 22 | 184 | 5.136364 | 0.863636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.266304 | 184 | 10 | 44 | 18.4 | 0.837037 | 0.315217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 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 |
300dd90e237cb872fd760b2bbd4b98794bc00fa7 | 2,562 | py | Python | bad/mod_user.py | contraster-steve/vulpy | bfc60f1e79ff9deb70dbbb8544ba35e2f868e4f3 | [
"MIT"
] | 28 | 2020-01-09T09:50:26.000Z | 2022-03-18T19:27:36.000Z | bad/mod_user.py | contraster-steve/vulpy | bfc60f1e79ff9deb70dbbb8544ba35e2f868e4f3 | [
"MIT"
] | 2 | 2022-02-13T15:43:03.000Z | 2022-02-13T15:44:25.000Z | bad/mod_user.py | contraster-steve/vulpy | bfc60f1e79ff9deb70dbbb8544ba35e2f868e4f3 | [
"MIT"
] | 134 | 2019-12-18T16:37:23.000Z | 2022-03-22T06:09:00.000Z | from flask import Blueprint, render_template, redirect, request, g, session, make_response, flash
import libmfa
import libuser
import libsession
mod_user = Blueprint('mod_user', __name__, template_folder='templates')
@mod_user.route('/login', methods=['GET', 'POST'])
def do_login():
session.pop('username', None... | 30.141176 | 102 | 0.644418 | 288 | 2,562 | 5.621528 | 0.222222 | 0.077826 | 0.069179 | 0.118592 | 0.410747 | 0.347128 | 0.191476 | 0.124768 | 0.124768 | 0.124768 | 0 | 0 | 0.225995 | 2,562 | 84 | 103 | 30.5 | 0.81644 | 0.067916 | 0 | 0.352941 | 0 | 0 | 0.210747 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0.392157 | 0.078431 | 0 | 0.333333 | 0.039216 | 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 |
300ddbcbfa42b3868d7599bd4057703767e7caae | 2,763 | py | Python | chap3tasks.py | AndrewWallace1999/csws-week2 | 5698c58934c598eb9cb5652e9216e552cfbe5d00 | [
"Apache-2.0"
] | null | null | null | chap3tasks.py | AndrewWallace1999/csws-week2 | 5698c58934c598eb9cb5652e9216e552cfbe5d00 | [
"Apache-2.0"
] | null | null | null | chap3tasks.py | AndrewWallace1999/csws-week2 | 5698c58934c598eb9cb5652e9216e552cfbe5d00 | [
"Apache-2.0"
] | null | null | null | #3-1 Names
names = ["Jason", "Bob", "James", "Brian", "Marie"]
print(names[0])
print(names[1])
print(names[2])
print(names[3])
print(names[4])
#3-2 Greetings
message = " you are a friend"
print(names[0] + message)
print(names[1] + message)
print(names[2] + message)
print(names[3] + message)
print(names[4] + message)
... | 27.356436 | 76 | 0.707926 | 448 | 2,763 | 4.301339 | 0.25 | 0.150493 | 0.163467 | 0.128179 | 0.500778 | 0.428646 | 0.40218 | 0.368448 | 0.311365 | 0.311365 | 0 | 0.025364 | 0.129569 | 2,763 | 100 | 77 | 27.63 | 0.775884 | 0.068404 | 0 | 0.366197 | 0 | 0 | 0.37261 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.676056 | 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 |
300e162bfb3181ae7d45aee59318363c04942a7d | 824 | py | Python | data/train/python/300e162bfb3181ae7d45aee59318363c04942a7dplay_ui.py | harshp8l/deep-learning-lang-detection | 2a54293181c1c2b1a2b840ddee4d4d80177efb33 | [
"MIT"
] | 84 | 2017-10-25T15:49:21.000Z | 2021-11-28T21:25:54.000Z | data/train/python/300e162bfb3181ae7d45aee59318363c04942a7dplay_ui.py | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 5 | 2018-03-29T11:50:46.000Z | 2021-04-26T13:33:18.000Z | data/train/python/300e162bfb3181ae7d45aee59318363c04942a7dplay_ui.py | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 24 | 2017-11-22T08:31:00.000Z | 2022-03-27T01:22:31.000Z | from controller.ControllerError import *
class PlayUi:
def __init__(self, controller):
self.__controller = controller
def print_score(self):
print('current score: {}\nhighest score: {}'.format(self.__controller.get_current_score(), self.__controller.get_high_score()))
def run_play(self):
print('\nYou are in... | 25.75 | 129 | 0.68932 | 105 | 824 | 5.114286 | 0.47619 | 0.208566 | 0.094972 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179612 | 824 | 32 | 130 | 25.75 | 0.794379 | 0 | 0 | 0.086957 | 0 | 0 | 0.175758 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.043478 | 0 | 0.217391 | 0.26087 | 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 |
3018bcb3bd1a85efc05d7bf30b1f06d17eb3d72c | 1,786 | py | Python | src/util/NetworkUtil.py | xiby/Combo | bba39f3d2eef58307c360f7284c414947d0b0761 | [
"MIT"
] | null | null | null | src/util/NetworkUtil.py | xiby/Combo | bba39f3d2eef58307c360f7284c414947d0b0761 | [
"MIT"
] | null | null | null | src/util/NetworkUtil.py | xiby/Combo | bba39f3d2eef58307c360f7284c414947d0b0761 | [
"MIT"
] | null | null | null | '''
net work util, for sending msg
'''
import random
def singleton(cls):
_instance = {}
def inner():
if cls not in _instance:
_instance[cls] = cls()
return _instance[cls]
return inner
@singleton
class NetworkUtil():
def __init__(self):
'''
init content
... | 33.074074 | 112 | 0.582867 | 204 | 1,786 | 4.960784 | 0.338235 | 0.130435 | 0.071146 | 0.065217 | 0.115613 | 0.086957 | 0.086957 | 0.086957 | 0 | 0 | 0 | 0.001591 | 0.296193 | 1,786 | 54 | 113 | 33.074074 | 0.8035 | 0.109183 | 0 | 0 | 0 | 0 | 0.055287 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.243243 | false | 0 | 0.027027 | 0.027027 | 0.432432 | 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 |
301d33244ee1537856712bc4b3a99154ad216978 | 2,662 | py | Python | Code/sets_test.py | Keyology/cs-1.3-2020 | 7b6f02c76dc16f1abafc613ebe6088d51b36b3be | [
"MIT"
] | null | null | null | Code/sets_test.py | Keyology/cs-1.3-2020 | 7b6f02c76dc16f1abafc613ebe6088d51b36b3be | [
"MIT"
] | 4 | 2020-02-17T23:27:06.000Z | 2020-03-10T20:21:22.000Z | Code/sets_test.py | Keyology/cs-1.3-2020 | 7b6f02c76dc16f1abafc613ebe6088d51b36b3be | [
"MIT"
] | null | null | null | from sets import Set
import unittest
class SetTest(unittest.TestCase):
def test_init(self):
elements = ['A','B','C','D']
s = Set(elements)
assert s.ht.length() == 4
assert s.size() == 4
def test_add(self):
s = Set()
#Add elements to set
assert s.add('A... | 25.352381 | 42 | 0.470699 | 355 | 2,662 | 3.473239 | 0.174648 | 0.145985 | 0.155718 | 0.145985 | 0.434712 | 0.345499 | 0.324412 | 0.308191 | 0.160584 | 0.145985 | 0 | 0.02867 | 0.344853 | 2,662 | 104 | 43 | 25.596154 | 0.678326 | 0.05973 | 0 | 0.381579 | 0 | 0 | 0.030837 | 0 | 0 | 0 | 0 | 0 | 0.473684 | 1 | 0.105263 | false | 0 | 0.026316 | 0 | 0.144737 | 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 |
30259003af41fbab4856f8fff45cfa6808c3cd57 | 678 | py | Python | models/printing.py | ericthelemur/apollo | 9d5f8c40e6eb88d4a16cc11faa84a4aed3259e33 | [
"MIT"
] | 3 | 2021-05-10T20:03:24.000Z | 2022-02-03T21:56:54.000Z | models/printing.py | ericthelemur/apollo | 9d5f8c40e6eb88d4a16cc11faa84a4aed3259e33 | [
"MIT"
] | 44 | 2020-10-06T09:57:36.000Z | 2022-03-24T13:28:12.000Z | models/printing.py | ericthelemur/apollo | 9d5f8c40e6eb88d4a16cc11faa84a4aed3259e33 | [
"MIT"
] | 10 | 2020-10-08T19:20:35.000Z | 2022-03-11T23:02:29.000Z | from sqlalchemy import Column, Integer, String, Text
from models.models import Base, auto_str
__all__ = ["FilamentType"]
@auto_str
class FilamentType(Base):
FILLAMENTUM = "fillamentum"
PRUSAMENT = "prusament"
__tablename__ = "filament_types"
id = Column(Integer, primary_key=True, nullable=False)
... | 27.12 | 82 | 0.70354 | 76 | 678 | 6.065789 | 0.513158 | 0.084599 | 0.08243 | 0.099783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193215 | 678 | 24 | 83 | 28.25 | 0.842779 | 0 | 0 | 0 | 0 | 0 | 0.067847 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.117647 | 0.058824 | 0.705882 | 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 |
302898c12592a641ad6954ba677745472f2fc706 | 490 | py | Python | pythonProject/03al71exercicio/exercicio.py | D-Wolter/PycharmProjects | c8d6144efa30261bff72a3e0414a0d80f6730f9b | [
"MIT"
] | null | null | null | pythonProject/03al71exercicio/exercicio.py | D-Wolter/PycharmProjects | c8d6144efa30261bff72a3e0414a0d80f6730f9b | [
"MIT"
] | null | null | null | pythonProject/03al71exercicio/exercicio.py | D-Wolter/PycharmProjects | c8d6144efa30261bff72a3e0414a0d80f6730f9b | [
"MIT"
] | null | null | null | #forma de somar comprar de carrinho virtual
carrinho = []
carrinho.append(('Produto 1', 30))
carrinho.append(('Produto 2', '20'))
carrinho.append(('Produto 3', 50))
#no python essa baixo nao eh muito boa
# total = []
# for produto in carrinho:
# total.append(produto[1])
# print(sum(total))
total = sum([float(y)... | 25.789474 | 88 | 0.663265 | 77 | 490 | 4.220779 | 0.441558 | 0.16 | 0.193846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060533 | 0.157143 | 490 | 18 | 89 | 27.222222 | 0.726392 | 0.587755 | 0 | 0 | 0 | 0 | 0.151832 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 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 |
302a7a995db3b6e256af2a9b1bd8301e72ae5a5f | 2,945 | py | Python | tests/test_type/test_clock.py | David-Durst/magma | 425788b66c948a400d58dced3a40b9be596d4448 | [
"MIT"
] | null | null | null | tests/test_type/test_clock.py | David-Durst/magma | 425788b66c948a400d58dced3a40b9be596d4448 | [
"MIT"
] | null | null | null | tests/test_type/test_clock.py | David-Durst/magma | 425788b66c948a400d58dced3a40b9be596d4448 | [
"MIT"
] | null | null | null | from magma import In, Out, Flip, \
Clock, ClockType, ClockKind, \
Reset, ResetType, ResetKind, \
Enable, EnableType, EnableKind
def test_clock():
assert isinstance(Clock, ClockKind)
assert Clock == Clock
assert str(Clock) == 'Clock'
def test_clock_flip():
ClockOut = Out(Clock)
assert i... | 25.17094 | 44 | 0.660781 | 337 | 2,945 | 5.72997 | 0.10089 | 0.124288 | 0.036251 | 0.043501 | 0.353185 | 0.353185 | 0.353185 | 0.105645 | 0.051269 | 0 | 0 | 0 | 0.229542 | 2,945 | 116 | 45 | 25.387931 | 0.851036 | 0 | 0 | 0.284211 | 0 | 0 | 0.027504 | 0 | 0 | 0 | 0 | 0 | 0.578947 | 1 | 0.094737 | false | 0 | 0.010526 | 0 | 0.105263 | 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 |
3030588cf04664e042cd59f101753128f3406dab | 1,934 | py | Python | aws-autoscaling-schedules.py | mrcrilly/aws-autoscaling-schedules | ed94224f0e87f58d0a70da7af1d016702c39a1b7 | [
"MIT"
] | null | null | null | aws-autoscaling-schedules.py | mrcrilly/aws-autoscaling-schedules | ed94224f0e87f58d0a70da7af1d016702c39a1b7 | [
"MIT"
] | null | null | null | aws-autoscaling-schedules.py | mrcrilly/aws-autoscaling-schedules | ed94224f0e87f58d0a70da7af1d016702c39a1b7 | [
"MIT"
] | null | null | null | import time
import datetime
import boto3
import yaml
import logging
def process_scheduling(environment):
if not environment:
return False
datetime_format = "%Y-%m-%dT%H%M%S"
asg = boto3.client("autoscaling")
if not "asg" in environment:
return False
if environment["items"]:
... | 34.535714 | 122 | 0.599276 | 209 | 1,934 | 5.444976 | 0.454545 | 0.043937 | 0.049209 | 0.070299 | 0.12478 | 0.12478 | 0.12478 | 0 | 0 | 0 | 0 | 0.007321 | 0.293692 | 1,934 | 55 | 123 | 35.163636 | 0.825769 | 0.033609 | 0 | 0.045455 | 0 | 0 | 0.136583 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.022727 | 0.113636 | null | null | 0.022727 | 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 |
3031f0d8f253665a292d6f569767f38f04a84562 | 2,373 | py | Python | app/spiders/google_patents/google_patents_search.py | roddehugo/patents-scraper | 38d824d5aaac1ecfd5ffffa85ac36017228f734b | [
"MIT"
] | 2 | 2016-08-08T03:20:36.000Z | 2017-02-23T03:58:24.000Z | app/spiders/google_patents/google_patents_search.py | roddehugo/patents-scraper | 38d824d5aaac1ecfd5ffffa85ac36017228f734b | [
"MIT"
] | 1 | 2017-02-21T19:04:26.000Z | 2017-02-27T17:40:38.000Z | app/spiders/google_patents/google_patents_search.py | roddehugo/patents-scraper | 38d824d5aaac1ecfd5ffffa85ac36017228f734b | [
"MIT"
] | 1 | 2017-03-07T11:12:45.000Z | 2017-03-07T11:12:45.000Z | # -*- coding: utf-8 -*-
import json
import urllib
from scrapy.spiders import Spider
from scrapy.http import Request
from app.loaders import GooglePatentsLoader
from app.spiders.google_patents import GooglePatentsSpider
class GooglePatentsSearchSpider(GooglePatentsSpider):
name = 'GooglePatentsSearch'
search... | 30.423077 | 103 | 0.46692 | 213 | 2,373 | 5.126761 | 0.446009 | 0.032967 | 0.041209 | 0.052198 | 0.099817 | 0.099817 | 0.099817 | 0.071429 | 0 | 0 | 0 | 0.008475 | 0.403287 | 2,373 | 77 | 104 | 30.818182 | 0.762712 | 0.00885 | 0 | 0.287879 | 0 | 0 | 0.12 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | 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 |
303a1dfdd254f001ca769002604a9e6835792294 | 2,365 | py | Python | reko/reko.py | kyhau/reko-k | ddd7f05010b7e5cf4af55116431dd95580169089 | [
"MIT"
] | 4 | 2018-07-05T12:28:39.000Z | 2019-12-17T02:34:51.000Z | reko/reko.py | kyhau/reko-k | ddd7f05010b7e5cf4af55116431dd95580169089 | [
"MIT"
] | 41 | 2020-04-10T07:42:17.000Z | 2021-07-15T09:09:34.000Z | reko/reko.py | kyhau/reko-k | ddd7f05010b7e5cf4af55116431dd95580169089 | [
"MIT"
] | 1 | 2020-09-30T21:39:52.000Z | 2020-09-30T21:39:52.000Z | from reko.cachestore import CacheStore
from reko.cameraman import CameraMan
from reko.rekognition import Rekognition
class Reko(object):
def __init__(self, profile, collection_id):
self.collection_id = collection_id
self._cameraman = CameraMan()
self._cache = CacheStore()
self._rek... | 29.5625 | 105 | 0.631712 | 274 | 2,365 | 5.178832 | 0.244526 | 0.143763 | 0.10148 | 0.146582 | 0.412967 | 0.393235 | 0.246653 | 0.246653 | 0.246653 | 0.246653 | 0 | 0 | 0.290063 | 2,365 | 79 | 106 | 29.936709 | 0.845146 | 0.145455 | 0 | 0.225 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.025 | 0.075 | 0 | 0.575 | 0.025 | 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 |
303e76086d9d5bcf426619b1623ebcf78a99fd9a | 403 | py | Python | Day 4/Solution1.py | joll05/AdventOfCode2020 | d2d93395cec72095d749a07743b70e7fd6f41297 | [
"MIT"
] | null | null | null | Day 4/Solution1.py | joll05/AdventOfCode2020 | d2d93395cec72095d749a07743b70e7fd6f41297 | [
"MIT"
] | null | null | null | Day 4/Solution1.py | joll05/AdventOfCode2020 | d2d93395cec72095d749a07743b70e7fd6f41297 | [
"MIT"
] | null | null | null | import re
f=open("input.txt")
Input=f.read().split("\n\n")
f.close()
fieldRegex = r"^(.{3}):(.+)$"
requiredFields = ("byr", "iyr", "eyr", "hgt", "hcl", "ecl", "pid")
count = 0
for passport in Input:
string_fields = passport.split()
fields = dict([re.match(fieldRegex, f).groups() for f in string_fields])
... | 22.388889 | 76 | 0.605459 | 60 | 403 | 4.033333 | 0.583333 | 0.03719 | 0.049587 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009174 | 0.188586 | 403 | 17 | 77 | 23.705882 | 0.730887 | 0 | 0 | 0 | 0 | 0 | 0.116625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.153846 | 0.076923 | 0 | 0.076923 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
30436b718a5201183775da5c6ba53f463f74cd22 | 503 | py | Python | run.py | rostegg/flask-rest-api-boilerplate | 7e4dc535e9aefed09ab87ac09bffae0b68839fd3 | [
"MIT"
] | 1 | 2020-10-11T10:17:28.000Z | 2020-10-11T10:17:28.000Z | run.py | rostegg/flask-rest-api-boilerplate | 7e4dc535e9aefed09ab87ac09bffae0b68839fd3 | [
"MIT"
] | null | null | null | run.py | rostegg/flask-rest-api-boilerplate | 7e4dc535e9aefed09ab87ac09bffae0b68839fd3 | [
"MIT"
] | null | null | null | import os
from flask import redirect
from app import create_app
from app.api import api_v1
from waitress import serve
app = create_app(os.getenv('FLASK_CONFIG_TYPE') or 'dev')
app.register_blueprint(api_v1)
@app.route('/')
def root():
return redirect('/v1/test')
if __name__ == '__main__':
host = os.environ.g... | 27.944444 | 117 | 0.699801 | 83 | 503 | 4.036145 | 0.445783 | 0.01791 | 0.077612 | 0.113433 | 0.137313 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025404 | 0.139165 | 503 | 18 | 117 | 27.944444 | 0.748268 | 0 | 0 | 0 | 0 | 0 | 0.140873 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.357143 | 0.071429 | 0.5 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
3043a135de45dc2b400654920f9cd4d4c75f370a | 9,608 | py | Python | QCA4020_SDK/target/sectools/qdn/sectools/common/utils/c_config.py | r8d8/lastlock | 78c02e5fbb129b1bc4147bd55eec2882267d7e87 | [
"Apache-2.0"
] | null | null | null | QCA4020_SDK/target/sectools/qdn/sectools/common/utils/c_config.py | r8d8/lastlock | 78c02e5fbb129b1bc4147bd55eec2882267d7e87 | [
"Apache-2.0"
] | null | null | null | QCA4020_SDK/target/sectools/qdn/sectools/common/utils/c_config.py | r8d8/lastlock | 78c02e5fbb129b1bc4147bd55eec2882267d7e87 | [
"Apache-2.0"
] | null | null | null | # ===============================================================================
#
# Copyright (c) 2013-2017 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
#
# ===============================================================================
"""Parses &... | 40.200837 | 145 | 0.61761 | 1,190 | 9,608 | 4.829412 | 0.19916 | 0.057421 | 0.034105 | 0.015312 | 0.302071 | 0.235079 | 0.227771 | 0.210371 | 0.187054 | 0.164956 | 0 | 0.010158 | 0.282785 | 9,608 | 238 | 146 | 40.369748 | 0.823828 | 0.036324 | 0 | 0.224138 | 0 | 0 | 0.128617 | 0 | 0 | 0 | 0 | 0 | 0.086207 | 0 | null | null | 0 | 0.060345 | 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 |
304413170275fa5ab86b225cf3e95027f2116f37 | 2,558 | py | Python | utils/dc_weather.py | d3m-purdue/geoapp | 9d848688b988ec43cb0fe4f11650bbeb7779220e | [
"Apache-2.0"
] | null | null | null | utils/dc_weather.py | d3m-purdue/geoapp | 9d848688b988ec43cb0fe4f11650bbeb7779220e | [
"Apache-2.0"
] | null | null | null | utils/dc_weather.py | d3m-purdue/geoapp | 9d848688b988ec43cb0fe4f11650bbeb7779220e | [
"Apache-2.0"
] | null | null | null | import calendar
import csv
import json
import sys
import time
sptr = csv.reader(open(sys.argv[1]))
header = [key.strip().replace(' ', '').lower() for key in sptr.next()]
weather = {}
for line in sptr:
item = dict(zip(header, [val.strip() for val in line]))
if not item['date'] in weather:
weather[item['... | 36.028169 | 79 | 0.515637 | 339 | 2,558 | 3.861357 | 0.312684 | 0.048892 | 0.033613 | 0.027502 | 0.190985 | 0.120703 | 0.120703 | 0.120703 | 0.120703 | 0.120703 | 0 | 0.031702 | 0.297107 | 2,558 | 70 | 80 | 36.542857 | 0.696329 | 0 | 0 | 0.176471 | 0 | 0 | 0.112197 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.073529 | null | null | 0.014706 | 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 |
30479417628a176dfdf75ff460ead719e424a07f | 15,395 | py | Python | src/FloorplanMakerUI_old.py | ComputerArchitectureGroupPWr/Floorplan-Maker | 8f2922cdab16501d3bb00f93c3130d3f2c593698 | [
"MIT"
] | null | null | null | src/FloorplanMakerUI_old.py | ComputerArchitectureGroupPWr/Floorplan-Maker | 8f2922cdab16501d3bb00f93c3130d3f2c593698 | [
"MIT"
] | null | null | null | src/FloorplanMakerUI_old.py | ComputerArchitectureGroupPWr/Floorplan-Maker | 8f2922cdab16501d3bb00f93c3130d3f2c593698 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'main_window.ui'
#
# Created: Tue Aug 5 12:46:39 2014
# by: PyQt4 UI code generator 4.10.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
from floorplanFrameBeh import FloorplanFrame
from heate... | 66.934783 | 275 | 0.73303 | 1,481 | 15,395 | 7.538825 | 0.193788 | 0.066995 | 0.051232 | 0.078818 | 0.36077 | 0.15674 | 0.064129 | 0.047291 | 0.047291 | 0.047291 | 0 | 0.026938 | 0.153621 | 15,395 | 229 | 276 | 67.227074 | 0.829931 | 0.014031 | 0 | 0.009302 | 1 | 0 | 0.0971 | 0.004021 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009302 | false | 0 | 0.018605 | 0 | 0.032558 | 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 |
3047ba450529813ba3bdf5b61406e17e589e6b3c | 5,788 | py | Python | mydatapreprocessing/feature_engineering.py | Malachov/mydatapreprocessing | aa48e47298885e5a7ed69dca4803ed0c5f37ae64 | [
"MIT"
] | 1 | 2020-10-28T21:55:39.000Z | 2020-10-28T21:55:39.000Z | mydatapreprocessing/feature_engineering.py | Malachov/mydatapreprocessing | aa48e47298885e5a7ed69dca4803ed0c5f37ae64 | [
"MIT"
] | 1 | 2020-11-03T16:09:19.000Z | 2020-11-03T21:12:56.000Z | mydatapreprocessing/feature_engineering.py | Malachov/mydatapreprocessing | aa48e47298885e5a7ed69dca4803ed0c5f37ae64 | [
"MIT"
] | null | null | null | """
You can add new derived columns. This new generated data can help to machine learning models to better results.
In `add_derived_columns` you add first and second derivations, multiplication of columns, rolling means and rolling standard deviation.
In `add_frequency_columns` you can add fast fourier transform resu... | 37.584416 | 135 | 0.647374 | 781 | 5,788 | 4.737516 | 0.243278 | 0.053514 | 0.014595 | 0.038919 | 0.305135 | 0.214595 | 0.171351 | 0.136757 | 0.136757 | 0.11027 | 0 | 0.010293 | 0.244644 | 5,788 | 153 | 136 | 37.830065 | 0.836002 | 0.397028 | 0 | 0.092105 | 1 | 0 | 0.119376 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0 | 0.092105 | 0 | 0.144737 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.