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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
19f8fdc8ed3cbfa5b4ea5b11165d8e65298b58f9 | 1,120 | py | Python | Sprint_Challenge/Northwind.py | connorpheraty/DS-Unit-3-Sprint-2-SQL-and-Databases | d426be6278e1583c56b80e515af480ca732b733d | [
"MIT"
] | null | null | null | Sprint_Challenge/Northwind.py | connorpheraty/DS-Unit-3-Sprint-2-SQL-and-Databases | d426be6278e1583c56b80e515af480ca732b733d | [
"MIT"
] | null | null | null | Sprint_Challenge/Northwind.py | connorpheraty/DS-Unit-3-Sprint-2-SQL-and-Databases | d426be6278e1583c56b80e515af480ca732b733d | [
"MIT"
] | null | null | null | import sqlite3
conn = sqlite3.connect('northwind_small.sqlite3')
curs = conn.cursor()
# Question 1
q1 = curs.execute("""
SELECT ProductName, UnitPrice FROM Product
ORDER BY UnitPrice DESC
LIMIT 10;
""").fetchall()
print("The ten most expensive items (per unite price) in the database are: ", q1)
# Question 2
q2 = cur... | 28.717949 | 108 | 0.753571 | 160 | 1,120 | 5.25625 | 0.475 | 0.052319 | 0.080856 | 0.047562 | 0.159334 | 0.159334 | 0.159334 | 0.159334 | 0.159334 | 0.159334 | 0 | 0.025934 | 0.139286 | 1,120 | 39 | 109 | 28.717949 | 0.846473 | 0.034821 | 0 | 0.25 | 0 | 0 | 0.729128 | 0.041744 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.035714 | 0 | 0.035714 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
19fcabbda03a11679748bc50440c64c10342937e | 4,300 | py | Python | .leetcode/282.expression-add-operators.py | KuiyuanFu/PythonLeetCode | 8962df2fa838eb7ae48fa59de272ba55a89756d8 | [
"MIT"
] | null | null | null | .leetcode/282.expression-add-operators.py | KuiyuanFu/PythonLeetCode | 8962df2fa838eb7ae48fa59de272ba55a89756d8 | [
"MIT"
] | null | null | null | .leetcode/282.expression-add-operators.py | KuiyuanFu/PythonLeetCode | 8962df2fa838eb7ae48fa59de272ba55a89756d8 | [
"MIT"
] | null | null | null | # @lc app=leetcode id=282 lang=python3
#
# [282] Expression Add Operators
#
# https://leetcode.com/problems/expression-add-operators/description/
#
# algorithms
# Hard (37.15%)
# Likes: 1741
# Dislikes: 289
# Total Accepted: 136.2K
# Total Submissions: 365.5K
# Testcase Example: '"123"\n6'
#
# Given a string num... | 24.571429 | 77 | 0.505814 | 514 | 4,300 | 4.215953 | 0.272374 | 0.010152 | 0.011075 | 0.011075 | 0.195662 | 0.179972 | 0.048454 | 0.048454 | 0.027227 | 0.027227 | 0 | 0.071332 | 0.315349 | 4,300 | 175 | 78 | 24.571429 | 0.664742 | 0.271395 | 0 | 0.282609 | 0 | 0 | 0.136763 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032609 | false | 0.01087 | 0.021739 | 0 | 0.086957 | 0.434783 | 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 |
c20615265c68aa5bce52b8272bd48ccd8346ec7f | 400 | py | Python | Flask-Base Backend Server/constants/messages.py | BranKein/AIFB_GIST_WING_2020 | ea71eb58c3dd65f9ec89f8a5140c2c20af6aeadb | [
"MIT"
] | null | null | null | Flask-Base Backend Server/constants/messages.py | BranKein/AIFB_GIST_WING_2020 | ea71eb58c3dd65f9ec89f8a5140c2c20af6aeadb | [
"MIT"
] | null | null | null | Flask-Base Backend Server/constants/messages.py | BranKein/AIFB_GIST_WING_2020 | ea71eb58c3dd65f9ec89f8a5140c2c20af6aeadb | [
"MIT"
] | null | null | null | no_exists = '{}_does_not_exists'
already_exists = '{}_already_exists'
exception_occurred = 'exception_occurred'
no_modification_made = 'mo_modification_made'
no_required_args = 'no_required_args'
add_success = 'add_{}_success'
delete_success = 'delete_{}_success'
__all__ = ['no_exists', 'exception_occurred', 'no_modi... | 33.333333 | 69 | 0.7725 | 48 | 400 | 5.708333 | 0.333333 | 0.186131 | 0.153285 | 0.226277 | 0.540146 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105 | 400 | 11 | 70 | 36.363636 | 0.765363 | 0 | 0 | 0 | 0 | 0 | 0.52 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
c20b94d567e900e0fc819aa4e0c0b66227fb1ea8 | 3,623 | py | Python | algotides/interfaces/main/address/ui_frame.py | CiottiGiorgio/algo-tides | bb504619296d760687efeaacd6bc6d5fa9649ded | [
"MIT"
] | 6 | 2021-07-07T22:46:17.000Z | 2022-02-10T04:02:14.000Z | algotides/interfaces/main/address/ui_frame.py | CiottiGiorgio/algotides | bb504619296d760687efeaacd6bc6d5fa9649ded | [
"MIT"
] | null | null | null | algotides/interfaces/main/address/ui_frame.py | CiottiGiorgio/algotides | bb504619296d760687efeaacd6bc6d5fa9649ded | [
"MIT"
] | 2 | 2020-05-14T21:28:35.000Z | 2021-04-19T11:00:55.000Z | # -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'frame.ui'
##
## Created by: Qt User Interface Compiler version 5.15.2
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
####################... | 39.813187 | 99 | 0.711013 | 338 | 3,623 | 7.517751 | 0.269231 | 0.15427 | 0.101928 | 0.104683 | 0.216844 | 0.06218 | 0.044077 | 0 | 0 | 0 | 0 | 0.00588 | 0.15512 | 3,623 | 90 | 100 | 40.255556 | 0.82424 | 0.061275 | 0 | 0 | 1 | 0 | 0.087105 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037736 | false | 0 | 0.150943 | 0 | 0.207547 | 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 |
c2113d2f7312e84b93c302dbb042858f7f5d01f2 | 1,271 | py | Python | mysite/reviews/migrations/0001_initial.py | Llamasaiko/Track1_Primitive | c6eab039b77f6e06414304193db59fa24668e027 | [
"MIT"
] | null | null | null | mysite/reviews/migrations/0001_initial.py | Llamasaiko/Track1_Primitive | c6eab039b77f6e06414304193db59fa24668e027 | [
"MIT"
] | null | null | null | mysite/reviews/migrations/0001_initial.py | Llamasaiko/Track1_Primitive | c6eab039b77f6e06414304193db59fa24668e027 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2016-11-15 11:46
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Review... | 38.515152 | 107 | 0.616837 | 133 | 1,271 | 5.669173 | 0.481203 | 0.119363 | 0.086207 | 0.112732 | 0.255968 | 0.255968 | 0.119363 | 0.119363 | 0 | 0 | 0 | 0.030591 | 0.254131 | 1,271 | 32 | 108 | 39.71875 | 0.764768 | 0.053501 | 0 | 0 | 1 | 0 | 0.171667 | 0.09 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c21d5fdd0603cf61c57dcc90133e8308a23058fd | 487 | py | Python | setup.py | infolab-csail/lispify | f0156b2ccf5edb3cc77de3cd7ffc63f2883fdd30 | [
"MIT"
] | null | null | null | setup.py | infolab-csail/lispify | f0156b2ccf5edb3cc77de3cd7ffc63f2883fdd30 | [
"MIT"
] | 11 | 2016-07-25T01:23:07.000Z | 2020-11-25T18:35:00.000Z | setup.py | infolab-csail/lispify | f0156b2ccf5edb3cc77de3cd7ffc63f2883fdd30 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name='lispify',
version='1.0.0',
description=('Lispify converts Python objects into Lisp-like '
'encoded strings that are interpretable in Common Lisp.'),
url='https://github.com/infolab-csail/lispify.git',
packages=[
'lispify',
'... | 22.136364 | 75 | 0.574949 | 51 | 487 | 5.431373 | 0.803922 | 0.01444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017192 | 0.283368 | 487 | 21 | 76 | 23.190476 | 0.776504 | 0 | 0 | 0.15 | 0 | 0 | 0.425051 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.05 | 0 | 0.05 | 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 |
c21f6b3c7153fd8b3bd31185832fa31c2b1208a0 | 11,943 | py | Python | samples/copy_feature_service_deforgorg.py | kevinsigwart/ArcREST | 2d83bd87e23f3f78d6bba2131e6d47cf8e2e07c1 | [
"Apache-2.0"
] | 208 | 2015-01-08T18:14:02.000Z | 2022-03-31T02:45:42.000Z | samples/copy_feature_service_deforgorg.py | kevinsigwart/ArcREST | 2d83bd87e23f3f78d6bba2131e6d47cf8e2e07c1 | [
"Apache-2.0"
] | 279 | 2015-01-16T16:30:35.000Z | 2020-03-31T11:57:47.000Z | samples/copy_feature_service_deforgorg.py | kevinsigwart/ArcREST | 2d83bd87e23f3f78d6bba2131e6d47cf8e2e07c1 | [
"Apache-2.0"
] | 164 | 2015-01-21T13:49:05.000Z | 2021-12-01T18:13:05.000Z | """
This sample shows how to copy a feature service
"""
import arcrest
import tempfile
import os
import uuid
import json
from arcresthelper import securityhandlerhelper
def trace():
"""
trace finds the line, the filename
and error message and returns it
to the user
"""
import tra... | 48.54878 | 149 | 0.557649 | 817 | 11,943 | 8.085679 | 0.276622 | 0.009688 | 0.010596 | 0.004239 | 0.066303 | 0.058432 | 0.035725 | 0.035725 | 0.023615 | 0.023615 | 0 | 0.000663 | 0.368082 | 11,943 | 246 | 150 | 48.54878 | 0.874652 | 0.030059 | 0 | 0.08867 | 0 | 0 | 0.102377 | 0.014212 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.009852 | 0.034483 | null | null | 0.054187 | 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 |
c21f9972686c3c4eac3fae40f91fe476b945dfbb | 1,306 | py | Python | food_machine.py | punch2177-cmis/punch2177-cmis-cs2 | 0cc08fadd53366755de64b7dd2eebbaad7dd6fe8 | [
"CC0-1.0"
] | null | null | null | food_machine.py | punch2177-cmis/punch2177-cmis-cs2 | 0cc08fadd53366755de64b7dd2eebbaad7dd6fe8 | [
"CC0-1.0"
] | null | null | null | food_machine.py | punch2177-cmis/punch2177-cmis-cs2 | 0cc08fadd53366755de64b7dd2eebbaad7dd6fe8 | [
"CC0-1.0"
] | null | null | null | #defined functions that are need for the program to work
def total_price(pricePerOne, amount, discountRate, taxRate):
price = float(pricePerOne) * float(amount)
rate = price * float(discountRate)
discount = price - rate
rate_2 = discount * float(taxRate)
total = rate_2 + discount
return total
d... | 31.853659 | 94 | 0.69755 | 188 | 1,306 | 4.787234 | 0.462766 | 0.033333 | 0.046667 | 0.08 | 0.11 | 0.077778 | 0 | 0 | 0 | 0 | 0 | 0.014493 | 0.207504 | 1,306 | 40 | 95 | 32.65 | 0.855072 | 0.129403 | 0 | 0 | 0 | 0 | 0.347443 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.033333 | 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 |
c2208720a326bd809b3e04e2af41729633f0484b | 1,341 | py | Python | week4/Hongda_assignment4.py | da1107/python2a | 1308505bd19eae7481baf7f317ae997412a4e7a9 | [
"MIT"
] | null | null | null | week4/Hongda_assignment4.py | da1107/python2a | 1308505bd19eae7481baf7f317ae997412a4e7a9 | [
"MIT"
] | null | null | null | week4/Hongda_assignment4.py | da1107/python2a | 1308505bd19eae7481baf7f317ae997412a4e7a9 | [
"MIT"
] | null | null | null | import sys
import time
FILENAME = "eng_vocab.txt"
#FILENAME = "dogcat.txt"
class MyFileContextManager():
def __init__(self,filename,operation):
try:
self._file=open(filename,operation)
except:
print('File not found')
sys.exit()
def __enter__(self):
... | 23.12069 | 79 | 0.630872 | 164 | 1,341 | 4.902439 | 0.408537 | 0.039801 | 0.037313 | 0.052239 | 0.131841 | 0.089552 | 0 | 0 | 0 | 0 | 0 | 0.001006 | 0.258762 | 1,341 | 57 | 80 | 23.526316 | 0.807847 | 0.017151 | 0 | 0.093023 | 0 | 0 | 0.117692 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.209302 | false | 0.023256 | 0.046512 | 0.046512 | 0.372093 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c225bcdf63b4c9cb6cec189adcdafba0babd1513 | 6,728 | py | Python | create_alert.py | miwiwa/sample-miwalker-no-git-issues | 4893f56b688739db1a42984a419f861c432d1a9c | [
"MIT"
] | null | null | null | create_alert.py | miwiwa/sample-miwalker-no-git-issues | 4893f56b688739db1a42984a419f861c432d1a9c | [
"MIT"
] | null | null | null | create_alert.py | miwiwa/sample-miwalker-no-git-issues | 4893f56b688739db1a42984a419f861c432d1a9c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# Program submits PagerDuty incidents or Git issues upon request
import pip
package = 'requests'
pip.main(['install', package])
import requests
import json
import argparse
from os import environ
import subprocess
import re
import collections
import sys
# Read in argument(s)
description = 'Speci... | 36.565217 | 155 | 0.664834 | 916 | 6,728 | 4.628821 | 0.209607 | 0.036321 | 0.031132 | 0.014151 | 0.329009 | 0.229717 | 0.188208 | 0.169811 | 0.169811 | 0.127358 | 0 | 0.003535 | 0.2011 | 6,728 | 184 | 156 | 36.565217 | 0.785302 | 0.08368 | 0 | 0.15942 | 0 | 0 | 0.301316 | 0.02129 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.065217 | null | null | 0.181159 | 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 |
c227b7f752e903a980518ae2a8099fdd9405a401 | 406 | py | Python | Leak #5 - Lost In Translation/windows/Resources/Ops/PyScripts/wrappers/hide.py | bidhata/EquationGroupLeaks | 1ff4bc115cb2bd5bf2ed6bf769af44392926830c | [
"Unlicense"
] | 9 | 2019-11-22T04:58:40.000Z | 2022-02-26T16:47:28.000Z | Python.Fuzzbunch/Resources/Ops/PyScripts/wrappers/hide.py | 010001111/Vx-Suites | 6b4b90a60512cce48aa7b87aec5e5ac1c4bb9a79 | [
"MIT"
] | null | null | null | Python.Fuzzbunch/Resources/Ops/PyScripts/wrappers/hide.py | 010001111/Vx-Suites | 6b4b90a60512cce48aa7b87aec5e5ac1c4bb9a79 | [
"MIT"
] | 8 | 2017-09-27T10:31:18.000Z | 2022-01-08T10:30:46.000Z |
import datetime
import sys
import dsz
import ops
import ops.system.systemversion
dsz.control.echo.Off()
version = ops.system.systemversion.get_os_version(maxage=datetime.timedelta.max)
if ((version.versioninfo.major >= 6) and (version.versioninfo.arch == 'x64')):
ops.error('PatchGuard will detect and kill the proc... | 36.909091 | 122 | 0.770936 | 58 | 406 | 5.362069 | 0.689655 | 0.057878 | 0.141479 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011142 | 0.115764 | 406 | 11 | 123 | 36.909091 | 0.855153 | 0 | 0 | 0 | 0 | 0 | 0.26601 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c22cc417270d1d7253dc3b14dd8fa40480995a9a | 653 | py | Python | src/scaler.py | nikhilnrng/german-credit-risk | da535662f1531a6097696b8367e3d687155f0804 | [
"MIT"
] | 1 | 2020-12-07T10:32:08.000Z | 2020-12-07T10:32:08.000Z | src/scaler.py | nikhilnrng/german-credit-risk | da535662f1531a6097696b8367e3d687155f0804 | [
"MIT"
] | null | null | null | src/scaler.py | nikhilnrng/german-credit-risk | da535662f1531a6097696b8367e3d687155f0804 | [
"MIT"
] | 2 | 2019-05-25T18:35:31.000Z | 2020-03-24T16:20:42.000Z | import numpy
from defines import Types
from sklearn.base import BaseEstimator, TransformerMixin
from sklearn.preprocessing import StandardScaler
class NumericScaler(BaseEstimator, TransformerMixin):
def __init__(self, n_numeric, **params):
self.n_numeric = n_numeric
self.scaler = StandardScaler(*... | 29.681818 | 73 | 0.675345 | 84 | 653 | 5.107143 | 0.369048 | 0.111888 | 0.13986 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001934 | 0.20827 | 653 | 21 | 74 | 31.095238 | 0.827853 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.25 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c22f4e68baf159ef62cd190ecba7a07a067c65cd | 1,180 | py | Python | technikosnuoma/views.py | doorsas/rustusgid10 | 6f1cfc16328ebb8a54590a327d7153fcfd487cf8 | [
"MIT"
] | null | null | null | technikosnuoma/views.py | doorsas/rustusgid10 | 6f1cfc16328ebb8a54590a327d7153fcfd487cf8 | [
"MIT"
] | null | null | null | technikosnuoma/views.py | doorsas/rustusgid10 | 6f1cfc16328ebb8a54590a327d7153fcfd487cf8 | [
"MIT"
] | null | null | null | from django.views.generic import TemplateView, ListView, DetailView, CreateView, UpdateView, DeleteView
from django.urls import reverse_lazy
from .forms import TechnikaForm, EditTechnika
from .models import Technika
class ApiePageView(TemplateView):
template_name = 'technikosnuoma/apie.html'
class NuomojuPageVi... | 29.5 | 103 | 0.768644 | 117 | 1,180 | 7.598291 | 0.410256 | 0.094488 | 0.204724 | 0.07649 | 0.148481 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150847 | 1,180 | 40 | 104 | 29.5 | 0.887226 | 0 | 0 | 0.266667 | 0 | 0 | 0.218459 | 0.198137 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c2302d14fa154744e474204243ef25f7153b0165 | 1,278 | py | Python | caesarCipher.py | NickMonks/AlgorithmsAndDataStructure | ec1e7164b511cb755e6ae45c172df82cd0114b57 | [
"MIT"
] | null | null | null | caesarCipher.py | NickMonks/AlgorithmsAndDataStructure | ec1e7164b511cb755e6ae45c172df82cd0114b57 | [
"MIT"
] | null | null | null | caesarCipher.py | NickMonks/AlgorithmsAndDataStructure | ec1e7164b511cb755e6ae45c172df82cd0114b57 | [
"MIT"
] | null | null | null | def caesarCipherEncryptor(string, key):
# To solve this problem, we need first to break the string into a list of chars, and then apply a function
# basically transform each letter the key shifted, and then join them together. Obviously creating the list will take O(n) time and space
# the function can be impleme... | 53.25 | 138 | 0.717527 | 204 | 1,278 | 4.495098 | 0.470588 | 0.032715 | 0.034896 | 0.023991 | 0.043621 | 0.043621 | 0 | 0 | 0 | 0 | 0 | 0.038538 | 0.208138 | 1,278 | 24 | 139 | 53.25 | 0.867589 | 0.707355 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 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 |
c233ac1bf31df138fbf52f96a55d5c0a1e811ca6 | 653 | py | Python | setup.py | nimeshkverma/flask-params | c43169aab6e8ab0b1f75fb886bba75f9a821a24a | [
"MIT"
] | 1 | 2019-11-03T16:33:10.000Z | 2019-11-03T16:33:10.000Z | setup.py | nimeshkverma/flask-params | c43169aab6e8ab0b1f75fb886bba75f9a821a24a | [
"MIT"
] | null | null | null | setup.py | nimeshkverma/flask-params | c43169aab6e8ab0b1f75fb886bba75f9a821a24a | [
"MIT"
] | 1 | 2017-05-21T13:48:56.000Z | 2017-05-21T13:48:56.000Z | from distutils.core import setup
setup(name='flask_params',
packages=['flask_params'],
version='1.0.1',
description='Processes the Request params for Flask served as a Python library ',
author='Nimesh Kiran Verma, Rohit khatana',
author_email='nimesh.aug11@gmail.com, rohitkhatana.khatana@... | 40.8125 | 87 | 0.666156 | 79 | 653 | 5.43038 | 0.64557 | 0.128205 | 0.013986 | 0.079254 | 0.18648 | 0.18648 | 0.18648 | 0 | 0 | 0 | 0 | 0.014787 | 0.171516 | 653 | 15 | 88 | 43.533333 | 0.778189 | 0 | 0 | 0 | 0 | 0 | 0.519142 | 0.081164 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.071429 | 0 | 0.071429 | 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 |
c23f00a13b7a7b27791b3ea0940c7266c447039d | 4,846 | py | Python | rbp-motif/src/core/util/Constants.py | TAGC-Brun/RAINET-RNA | 4d5a6658c41d4ab28d7c3d168eed65fe79233b48 | [
"Linux-OpenIB"
] | null | null | null | rbp-motif/src/core/util/Constants.py | TAGC-Brun/RAINET-RNA | 4d5a6658c41d4ab28d7c3d168eed65fe79233b48 | [
"Linux-OpenIB"
] | null | null | null | rbp-motif/src/core/util/Constants.py | TAGC-Brun/RAINET-RNA | 4d5a6658c41d4ab28d7c3d168eed65fe79233b48 | [
"Linux-OpenIB"
] | null | null | null |
import os
PATH_HOME = os.path.expanduser('~')
PATH_LOG = os.path.expanduser('~') + '/workspace/tagc-rainet/rbp-motif/output/log_file/RBP_motif.log'
PATH_ANCHOR = os.environ.get('ANCHOR_PATH')
PATH_IUPRED = os.environ.get('IUPred_PATH')
#==============================================================================... | 32.306667 | 146 | 0.469666 | 402 | 4,846 | 5.320896 | 0.365672 | 0.016363 | 0.01496 | 0.02244 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004522 | 0.087288 | 4,846 | 149 | 147 | 32.52349 | 0.479087 | 0.457078 | 0 | 0 | 0 | 0 | 0.315708 | 0.08105 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.014085 | 0 | 0.014085 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c2430b3429644370bfa1b7cdeae1601937f8a993 | 3,944 | py | Python | novem/vis/__init__.py | novem-no/novem | dc6bc99afd426dc55f896de611dbe300d5491af3 | [
"MIT"
] | null | null | null | novem/vis/__init__.py | novem-no/novem | dc6bc99afd426dc55f896de611dbe300d5491af3 | [
"MIT"
] | null | null | null | novem/vis/__init__.py | novem-no/novem | dc6bc99afd426dc55f896de611dbe300d5491af3 | [
"MIT"
] | null | null | null | from typing import Any, Dict, Optional
import requests
from ..api import Novem403, Novem404, NovemAPI
from ..version import __version__
from .files import NovemFiles
from .shared import NovemShare
class NovemVisAPI(NovemAPI):
""" """
hdr_post: Dict[str, str] = {
"User-Agent": f"NovemPythonLibrary-{... | 27.388889 | 69 | 0.546653 | 475 | 3,944 | 4.410526 | 0.218947 | 0.012888 | 0.038663 | 0.055847 | 0.645346 | 0.635322 | 0.622434 | 0.594749 | 0.55179 | 0.490215 | 0 | 0.02331 | 0.347363 | 3,944 | 143 | 70 | 27.58042 | 0.790598 | 0.19143 | 0 | 0.409091 | 0 | 0 | 0.144269 | 0.098814 | 0 | 0 | 0 | 0.027972 | 0 | 1 | 0.068182 | false | 0 | 0.068182 | 0 | 0.238636 | 0.102273 | 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 |
c246bb3b116b83545e73ed7fa0dcb63d79b36257 | 6,836 | py | Python | PyDelFEM2/cad.py | stnoh/pydelfem2 | 40224736dda9576a39d2b5a753a1ca1e4f906299 | [
"MIT"
] | 8 | 2020-11-23T01:51:20.000Z | 2022-01-28T04:28:18.000Z | PyDelFEM2/cad.py | stnoh/pydelfem2 | 40224736dda9576a39d2b5a753a1ca1e4f906299 | [
"MIT"
] | null | null | null | PyDelFEM2/cad.py | stnoh/pydelfem2 | 40224736dda9576a39d2b5a753a1ca1e4f906299 | [
"MIT"
] | 2 | 2021-07-13T06:30:37.000Z | 2021-10-19T00:44:49.000Z | ####################################################################
# Copyright (c) 2020 Nobuyuki Umetani #
# #
# This source code is licensed under the MIT license found in the #
# LICENSE file in the root directory of this... | 32.245283 | 103 | 0.667349 | 1,001 | 6,836 | 4.330669 | 0.201798 | 0.064591 | 0.029066 | 0.048443 | 0.356401 | 0.30496 | 0.173472 | 0.136102 | 0.122261 | 0.122261 | 0 | 0.022026 | 0.169836 | 6,836 | 211 | 104 | 32.398104 | 0.74185 | 0.076214 | 0 | 0.116279 | 0 | 0 | 0.000188 | 0 | 0 | 0 | 0 | 0 | 0.031008 | 1 | 0.24031 | false | 0 | 0.093023 | 0.054264 | 0.457364 | 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 |
c2496b37decec112ada77e939ccf19ee1e732370 | 645 | py | Python | mock/mockserver/asset/models.py | Gabydelgado/Invest-Simulator | 120706d0d48146b06e202df58403e5ea23cf53f3 | [
"MIT"
] | null | null | null | mock/mockserver/asset/models.py | Gabydelgado/Invest-Simulator | 120706d0d48146b06e202df58403e5ea23cf53f3 | [
"MIT"
] | null | null | null | mock/mockserver/asset/models.py | Gabydelgado/Invest-Simulator | 120706d0d48146b06e202df58403e5ea23cf53f3 | [
"MIT"
] | null | null | null | from django.db import models
class Asset(models.Model):
SHARE = 'SHARE'
CURRENCY = 'CURRENCY'
TYPE = (
(SHARE, 'share'),
(CURRENCY, 'currency'),
)
name = models.CharField(max_length=50, blank=False, null=False)
type = models.CharField(max_length=8, choices=TYPE, blank=False,
... | 30.714286 | 75 | 0.579845 | 72 | 645 | 5.055556 | 0.458333 | 0.10989 | 0.098901 | 0.142857 | 0.340659 | 0.340659 | 0.340659 | 0.340659 | 0.340659 | 0.340659 | 0 | 0.020179 | 0.308527 | 645 | 20 | 76 | 32.25 | 0.795964 | 0 | 0 | 0.117647 | 0 | 0 | 0.04031 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.058824 | 0.058824 | 0.647059 | 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 |
c24d38050e9a7c089d0a3bbf3524b05ab14c1796 | 1,014 | py | Python | neutron/services/segments/plugin.py | ISCAS-VDI/neutron-base | 687f03d7131839ae8bc324d5823194d1245bb050 | [
"Apache-2.0"
] | null | null | null | neutron/services/segments/plugin.py | ISCAS-VDI/neutron-base | 687f03d7131839ae8bc324d5823194d1245bb050 | [
"Apache-2.0"
] | 3 | 2015-02-27T00:48:55.000Z | 2015-04-21T05:29:37.000Z | neutron/services/segments/plugin.py | ISCAS-VDI/neutron-base | 687f03d7131839ae8bc324d5823194d1245bb050 | [
"Apache-2.0"
] | 3 | 2015-02-26T00:55:17.000Z | 2020-03-01T17:05:40.000Z | # Copyright 2016 Hewlett Packard Enterprise Development, LP
#
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENS... | 30.727273 | 78 | 0.721893 | 135 | 1,014 | 5.37037 | 0.681481 | 0.082759 | 0.035862 | 0.044138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010013 | 0.212032 | 1,014 | 32 | 79 | 31.6875 | 0.897372 | 0.619329 | 0 | 0 | 0 | 0 | 0.018919 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.7 | 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 |
c24e279a7cc5dce7853710bc645278cfa122cb8a | 506 | py | Python | pydicer/input/test.py | ShuchaoPangUNSW/pydicer | 025837d5513d4fd9c52183e93b46bc460947453e | [
"Apache-2.0"
] | 4 | 2021-10-07T23:53:17.000Z | 2022-03-05T12:19:18.000Z | pydicer/input/test.py | CaiJJ2020/pydicer | 025837d5513d4fd9c52183e93b46bc460947453e | [
"Apache-2.0"
] | 61 | 2021-08-22T23:22:55.000Z | 2022-03-15T21:57:13.000Z | pydicer/input/test.py | CaiJJ2020/pydicer | 025837d5513d4fd9c52183e93b46bc460947453e | [
"Apache-2.0"
] | 2 | 2021-09-09T12:17:53.000Z | 2021-09-20T05:54:45.000Z | from pydicer.input.web import WebInput
class TestInput(WebInput):
def __init__(self, working_directory=None):
"""
A test input class to download example data from zenodo
Args:
working_directory (str|pathlib.Path, optional): The working directory in which to
store t... | 29.764706 | 93 | 0.666008 | 63 | 506 | 5.142857 | 0.666667 | 0.197531 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018421 | 0.249012 | 506 | 16 | 94 | 31.625 | 0.834211 | 0.407115 | 0 | 0 | 0 | 0 | 0.194444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
df98f9a830d1fd079119ee1d90087bb99645989b | 2,750 | py | Python | catalog/bindings/csw/symbol_type.py | NIVANorge/s-enda-playground | 56ae0a8978f0ba8a5546330786c882c31e17757a | [
"Apache-2.0"
] | null | null | null | catalog/bindings/csw/symbol_type.py | NIVANorge/s-enda-playground | 56ae0a8978f0ba8a5546330786c882c31e17757a | [
"Apache-2.0"
] | null | null | null | catalog/bindings/csw/symbol_type.py | NIVANorge/s-enda-playground | 56ae0a8978f0ba8a5546330786c882c31e17757a | [
"Apache-2.0"
] | null | null | null | from dataclasses import dataclass, field
from typing import List, Optional
from bindings.csw.actuate_type import ActuateType
from bindings.csw.show_type import ShowType
from bindings.csw.symbol_type_enumeration import SymbolTypeEnumeration
from bindings.csw.type_type import TypeType
__NAMESPACE__ = "http://www.opengis... | 25.943396 | 70 | 0.518909 | 248 | 2,750 | 5.693548 | 0.270161 | 0.093484 | 0.113314 | 0.169972 | 0.552408 | 0.529745 | 0.484419 | 0.484419 | 0.411473 | 0.411473 | 0 | 0.020307 | 0.337455 | 2,750 | 105 | 71 | 26.190476 | 0.754665 | 0.029091 | 0 | 0.453608 | 0 | 0 | 0.219209 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.061856 | 0 | 0.195876 | 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 |
df9b0c8c592d21f57db7db2bd2e6c1b9c65ab961 | 482 | py | Python | src/product/migrations/0010_product_prodoldprice.py | oussamabouchikhi/Bigdeals | be759e664e767349b01ae0f6a96d59062c35a6cb | [
"bzip2-1.0.6"
] | 2 | 2020-02-27T23:52:51.000Z | 2020-02-28T12:05:46.000Z | src/product/migrations/0010_product_prodoldprice.py | oussamabouchikhi/Bigdeals | be759e664e767349b01ae0f6a96d59062c35a6cb | [
"bzip2-1.0.6"
] | null | null | null | src/product/migrations/0010_product_prodoldprice.py | oussamabouchikhi/Bigdeals | be759e664e767349b01ae0f6a96d59062c35a6cb | [
"bzip2-1.0.6"
] | null | null | null | # Generated by Django 3.0.3 on 2020-03-01 15:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('product', '0009_product_prodslug'),
]
operations = [
migrations.AddField(
model_name='product',
name='prodOldPrice',... | 24.1 | 107 | 0.622407 | 53 | 482 | 5.528302 | 0.773585 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062147 | 0.26556 | 482 | 19 | 108 | 25.368421 | 0.765537 | 0.093361 | 0 | 0 | 1 | 0 | 0.128736 | 0.048276 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dfa0f4a233d9bea9998d4479073f160233c323e6 | 980 | py | Python | apliai/accounts/urls.py | manthanchauhan/apli_work | c3c4b3c9bd08195159e5cccc761fd8321033f799 | [
"MIT"
] | null | null | null | apliai/accounts/urls.py | manthanchauhan/apli_work | c3c4b3c9bd08195159e5cccc761fd8321033f799 | [
"MIT"
] | 2 | 2021-04-30T20:43:55.000Z | 2021-06-10T21:34:23.000Z | apliai/accounts/urls.py | manthanchauhan/apli_work | c3c4b3c9bd08195159e5cccc761fd8321033f799 | [
"MIT"
] | 1 | 2020-02-26T13:15:03.000Z | 2020-02-26T13:15:03.000Z | from django.urls import path, include, re_path
from . import views
app_name = 'accounts'
urlpatterns = [
re_path(r'^reachus', views.reachus, name='reachus'),
re_path(r'^login', views.login, name='login'),
re_path(r'^signup', views.signup, name='signup'),
re_path(r'^campus_signup', views.campus_signup, ... | 46.666667 | 104 | 0.714286 | 128 | 980 | 5.265625 | 0.234375 | 0.089021 | 0.093472 | 0.038576 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010345 | 0.112245 | 980 | 20 | 105 | 49 | 0.764368 | 0 | 0 | 0 | 0 | 0 | 0.314286 | 0.09898 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.111111 | 0.111111 | 0 | 0.111111 | 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 |
dfa396562ed1592b2a3d7832fcc76256899c9f60 | 5,867 | py | Python | gen/cli.py | palco003/ofp_sniffer | 5b45db14187aae6adf7b1db96e36457703e2f884 | [
"Apache-2.0"
] | null | null | null | gen/cli.py | palco003/ofp_sniffer | 5b45db14187aae6adf7b1db96e36457703e2f884 | [
"Apache-2.0"
] | null | null | null | gen/cli.py | palco003/ofp_sniffer | 5b45db14187aae6adf7b1db96e36457703e2f884 | [
"Apache-2.0"
] | null | null | null | """
This code handles the CLI parameters
"""
import sys
import getopt
import json
import pcapy
import gen.proxies as proxies
VERSION = '0.3a-dev'
NO_COLOR = False
print_ovs = False
# Change variable below to activate debugging
DEBUGGING = False
def usage(filename):
"""
This funcion prints the Usag... | 31.374332 | 80 | 0.564002 | 726 | 5,867 | 4.482094 | 0.274105 | 0.051936 | 0.03319 | 0.026122 | 0.026429 | 0.013522 | 0 | 0 | 0 | 0 | 0 | 0.009507 | 0.318732 | 5,867 | 186 | 81 | 31.543011 | 0.804603 | 0.020283 | 0 | 0.116071 | 0 | 0.008929 | 0.289154 | 0.031367 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.044643 | null | null | 0.241071 | 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 |
dfa889ca077192eff1aee7801a44ada9ba9db768 | 292 | py | Python | happybase_mock/pool.py | evgenia-ch/happybase-mock | 6fbf4a4f9685829b32ad8dc3de3e01b2a9fba964 | [
"MIT"
] | 9 | 2015-06-08T02:26:37.000Z | 2018-12-13T09:45:04.000Z | happybase_mock/pool.py | evgenia-ch/happybase-mock | 6fbf4a4f9685829b32ad8dc3de3e01b2a9fba964 | [
"MIT"
] | 5 | 2017-02-17T20:35:29.000Z | 2019-12-27T09:33:14.000Z | happybase_mock/pool.py | evgenia-ch/happybase-mock | 6fbf4a4f9685829b32ad8dc3de3e01b2a9fba964 | [
"MIT"
] | 7 | 2016-03-16T17:25:40.000Z | 2019-10-15T13:00:05.000Z | import contextlib
from .connection import Connection
class ConnectionPool(object):
def __init__(self, size, **kwargs):
self._conn = Connection(**kwargs)
@contextlib.contextmanager
def connection(self, timeout=None):
self._conn.open()
yield self._conn
| 19.466667 | 41 | 0.684932 | 31 | 292 | 6.225806 | 0.580645 | 0.124352 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215753 | 292 | 14 | 42 | 20.857143 | 0.842795 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dfacbe48409d51ae0d92c0446fa93a13331c8767 | 1,196 | py | Python | homepage/admin.py | CoronaCircle/coronacircles | 66963d178fe5ebd400e5f9403730ae0f8be4fb4d | [
"MIT"
] | null | null | null | homepage/admin.py | CoronaCircle/coronacircles | 66963d178fe5ebd400e5f9403730ae0f8be4fb4d | [
"MIT"
] | null | null | null | homepage/admin.py | CoronaCircle/coronacircles | 66963d178fe5ebd400e5f9403730ae0f8be4fb4d | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Testimonial, CarouselItem
from django.contrib.flatpages.admin import FlatPageAdmin
from django.contrib.flatpages.models import FlatPage
from django.db import models
from django.utils.translation import ugettext_lazy as _
from ckeditor.widgets import CKEditorWidget
... | 27.181818 | 72 | 0.704013 | 111 | 1,196 | 7.495496 | 0.441441 | 0.060096 | 0.061298 | 0.11899 | 0.277644 | 0.277644 | 0.213942 | 0.213942 | 0.213942 | 0.213942 | 0 | 0 | 0.184783 | 1,196 | 43 | 73 | 27.813953 | 0.853333 | 0 | 0 | 0.166667 | 0 | 0 | 0.109532 | 0.035117 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.066667 | 0.233333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
dfb089899c719d6736fba34add46f973e83368e7 | 257 | py | Python | src/Diagnostics/DisplayInput/displayInput-reduce.py | coolmay/hpcpack-acm | 8c367148e8e9655a497b9589e9d1050faba02382 | [
"MIT"
] | null | null | null | src/Diagnostics/DisplayInput/displayInput-reduce.py | coolmay/hpcpack-acm | 8c367148e8e9655a497b9589e9d1050faba02382 | [
"MIT"
] | null | null | null | src/Diagnostics/DisplayInput/displayInput-reduce.py | coolmay/hpcpack-acm | 8c367148e8e9655a497b9589e9d1050faba02382 | [
"MIT"
] | null | null | null | import sys, json, copy
def main():
result = json.load(sys.stdin)
print(json.dumps(result))
return 0
def printErrorAsJson(errormessage):
print(json.dumps({"Error":errormessage}))
if __name__ == '__main__':
sys.exit(main())
| 19.769231 | 45 | 0.638132 | 31 | 257 | 5.032258 | 0.612903 | 0.115385 | 0.179487 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004951 | 0.214008 | 257 | 12 | 46 | 21.416667 | 0.767327 | 0 | 0 | 0 | 0 | 0 | 0.050584 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.444444 | 0.333333 | 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 |
dfb27a182752915907c5f4fb9dcbd72fccb4fbf5 | 2,333 | py | Python | aigram/posts/migrations/0001_initial.py | jadry92/AIgram-project | bccc16de0f5a90704f68ff1a72591049db6412ec | [
"MIT"
] | 1 | 2020-06-27T21:46:26.000Z | 2020-06-27T21:46:26.000Z | aigram/posts/migrations/0001_initial.py | jadry92/AIgram-project | bccc16de0f5a90704f68ff1a72591049db6412ec | [
"MIT"
] | 1 | 2020-06-18T10:23:14.000Z | 2020-06-18T10:23:14.000Z | aigram/posts/migrations/0001_initial.py | jadry92/AIgram-project | bccc16de0f5a90704f68ff1a72591049db6412ec | [
"MIT"
] | null | null | null | # Generated by Django 3.0 on 2020-09-15 07:24
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Comment',
fields=[
... | 37.031746 | 114 | 0.552508 | 220 | 2,333 | 5.718182 | 0.295455 | 0.100159 | 0.119237 | 0.109698 | 0.585056 | 0.585056 | 0.585056 | 0.585056 | 0.585056 | 0.585056 | 0 | 0.016129 | 0.309044 | 2,333 | 62 | 115 | 37.629032 | 0.764268 | 0.018431 | 0 | 0.618182 | 1 | 0 | 0.070804 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.036364 | 0 | 0.109091 | 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 |
dfb582caf0bd7dad8d538c83af54bf984ac15b7f | 12,408 | py | Python | src/slds_util.py | calderoc/PLoS_scripts | 7888c49213897079135b0c62d7ae53e94b97b6e8 | [
"Apache-2.0"
] | 2 | 2017-08-21T00:47:55.000Z | 2019-11-13T08:45:28.000Z | src/slds_util.py | calderoc/PLoS_scripts | 7888c49213897079135b0c62d7ae53e94b97b6e8 | [
"Apache-2.0"
] | null | null | null | src/slds_util.py | calderoc/PLoS_scripts | 7888c49213897079135b0c62d7ae53e94b97b6e8 | [
"Apache-2.0"
] | null | null | null |
# Written by Chris Calderon 2015 (Chris.Calderon@UrsaAnalytics.com)
# set of scripts illustrating computations used in paper:
# Calderon & Bloom, PLOS ONE (2015)
#
# Copyright 2015 Ursa Analytics, Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compli... | 44.156584 | 190 | 0.618714 | 1,858 | 12,408 | 4.069968 | 0.263186 | 0.01124 | 0.004761 | 0.008596 | 0.434012 | 0.399894 | 0.380852 | 0.354139 | 0.354139 | 0.348321 | 0 | 0.031018 | 0.22832 | 12,408 | 280 | 191 | 44.314286 | 0.758747 | 0.388378 | 0 | 0.206897 | 0 | 0 | 0.066998 | 0.010491 | 0 | 0 | 0 | 0.007143 | 0 | 0 | null | null | 0 | 0.043103 | null | null | 0.146552 | 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 |
dfbf8a393febcc08808fe07af192a1ea09587372 | 1,658 | py | Python | http_requestor/core/fields.py | mscam/http_requestor | 53ee1728ca4b89db8b65cc5c44cb946437109f98 | [
"MIT"
] | null | null | null | http_requestor/core/fields.py | mscam/http_requestor | 53ee1728ca4b89db8b65cc5c44cb946437109f98 | [
"MIT"
] | null | null | null | http_requestor/core/fields.py | mscam/http_requestor | 53ee1728ca4b89db8b65cc5c44cb946437109f98 | [
"MIT"
] | null | null | null | """Custom Django fields."""
import json
from django.db import models
from django.utils.translation import gettext as _
from django.core.exceptions import ValidationError
from django.core.serializers.json import DjangoJSONEncoder
class JSONField(models.TextField):
"""
Add's JSON capabilities (retrieval) to D... | 32.509804 | 76 | 0.668275 | 203 | 1,658 | 5.339901 | 0.423645 | 0.0369 | 0.02583 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225573 | 1,658 | 50 | 77 | 33.16 | 0.844237 | 0.202654 | 0 | 0 | 0 | 0 | 0.140172 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.178571 | false | 0 | 0.178571 | 0 | 0.607143 | 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 |
dfc148aaafbd20e003b234f700a532c4c36796f3 | 1,709 | py | Python | tests/testapp/settings.py | djkartsa/django-add-another | 454c0782a3ae6aab2facdc2fc8dc16d0d12270fe | [
"MIT"
] | null | null | null | tests/testapp/settings.py | djkartsa/django-add-another | 454c0782a3ae6aab2facdc2fc8dc16d0d12270fe | [
"MIT"
] | 1 | 2016-03-18T12:47:01.000Z | 2016-03-18T12:47:01.000Z | tests/testapp/settings.py | djkartsa/django-add-another | 454c0782a3ae6aab2facdc2fc8dc16d0d12270fe | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Django settings for testapp.
import os
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
DEBUG = True
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': '',
}
}... | 20.841463 | 73 | 0.70392 | 186 | 1,709 | 6.290323 | 0.543011 | 0.122222 | 0.061538 | 0.023932 | 0.035897 | 0.035897 | 0 | 0 | 0 | 0 | 0 | 0.011716 | 0.150965 | 1,709 | 81 | 74 | 21.098765 | 0.794624 | 0.053248 | 0 | 0 | 0 | 0 | 0.519827 | 0.452292 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.018182 | 0 | 0.018182 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dfcd49b20e341a0cea96da9427397a51064838da | 396 | py | Python | NovLong/testcasegen.py | mayank-kumar-giri/Competitive-Coding | 4cd26ede051bad15bf25cfd037317c313b607507 | [
"MIT"
] | null | null | null | NovLong/testcasegen.py | mayank-kumar-giri/Competitive-Coding | 4cd26ede051bad15bf25cfd037317c313b607507 | [
"MIT"
] | null | null | null | NovLong/testcasegen.py | mayank-kumar-giri/Competitive-Coding | 4cd26ede051bad15bf25cfd037317c313b607507 | [
"MIT"
] | null | null | null | import random as r
n = r.randint(1,5000)
q = r.randint(1,5000)
k = r.randint(1,n)
a = []
for i in range(n):
a.append(r.randint(0,1))
qu = []
for j in range(q):
qu.append(r.choice(["!","?"]))
print(n,q,k)
for i in range(n):
if i!=n-1:
print(a[i],end=' ')
else:
print(a[i])
for i in range(q... | 18.857143 | 34 | 0.502525 | 79 | 396 | 2.518987 | 0.303797 | 0.160804 | 0.135678 | 0.165829 | 0.120603 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05137 | 0.262626 | 396 | 21 | 35 | 18.857143 | 0.630137 | 0 | 0 | 0.190476 | 0 | 0 | 0.007557 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.047619 | 0.238095 | 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 |
dfce858a526117ec2c7cb44ec23db6681849b238 | 322 | py | Python | singleNumber2.py | gardenia22/leetcode | 1e24425eea5d0aa31742719de80380b3f116ee51 | [
"CC0-1.0"
] | null | null | null | singleNumber2.py | gardenia22/leetcode | 1e24425eea5d0aa31742719de80380b3f116ee51 | [
"CC0-1.0"
] | null | null | null | singleNumber2.py | gardenia22/leetcode | 1e24425eea5d0aa31742719de80380b3f116ee51 | [
"CC0-1.0"
] | null | null | null | class Solution(object):
def singleNumber(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
one, two = 0, 0
for x in nums:
one, two = (one & ~x) | (x & ~one & ~two), (one & x) | (two & ~x)
return one
print Solution().singleNumber([1, 1, 1, 2]... | 23 | 77 | 0.453416 | 41 | 322 | 3.560976 | 0.512195 | 0.123288 | 0.123288 | 0.136986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029851 | 0.375776 | 322 | 13 | 78 | 24.769231 | 0.696517 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dfd10e429efa6ef0951f3b213b25208df7016db7 | 1,003 | py | Python | users/tests/test_models.py | City-of-Helsinki/apartment-application-service | 0cdc902b7cc9b67a67f88913c356e9033d608923 | [
"MIT"
] | 1 | 2021-03-15T11:29:12.000Z | 2021-03-15T11:29:12.000Z | users/tests/test_models.py | City-of-Helsinki/apartment-application-service | 0cdc902b7cc9b67a67f88913c356e9033d608923 | [
"MIT"
] | 130 | 2020-09-07T08:30:29.000Z | 2022-03-29T11:49:27.000Z | users/tests/test_models.py | City-of-Helsinki/apartment-application-service | 0cdc902b7cc9b67a67f88913c356e9033d608923 | [
"MIT"
] | 4 | 2020-09-07T05:34:13.000Z | 2021-11-07T12:51:21.000Z | import pytest
from django.core.exceptions import ValidationError
from users.models import Profile
from users.tests.factories import ProfileFactory
@pytest.mark.django_db
def test_profile_exist_after_user_is_deleted():
profile = ProfileFactory()
profile.user.delete()
assert Profile.objects.all().count()... | 27.108108 | 83 | 0.743769 | 117 | 1,003 | 6.213675 | 0.470085 | 0.082531 | 0.15956 | 0.192572 | 0.34663 | 0.34663 | 0.211829 | 0 | 0 | 0 | 0 | 0.034814 | 0.169492 | 1,003 | 36 | 84 | 27.861111 | 0.837935 | 0.047856 | 0 | 0.26087 | 0 | 0 | 0.119874 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 1 | 0.086957 | false | 0 | 0.173913 | 0 | 0.26087 | 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 |
dfd1ed7293d1e08626d5cce1316878b0bb7d35be | 4,011 | py | Python | src/offchainapi/errors.py | gdanezis/off-chain-reference | ff8168a0a2e6f512c380648823b8f8d4d5438098 | [
"Apache-2.0"
] | null | null | null | src/offchainapi/errors.py | gdanezis/off-chain-reference | ff8168a0a2e6f512c380648823b8f8d4d5438098 | [
"Apache-2.0"
] | null | null | null | src/offchainapi/errors.py | gdanezis/off-chain-reference | ff8168a0a2e6f512c380648823b8f8d4d5438098 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) The Libra Core Contributors
# SPDX-License-Identifier: Apache-2.0
from enum import Enum
class OffChainErrorCode(Enum):
# Codes for protocol errors
# -------------------------
#
# (Protocol error are those that discard the request, rather than storing
# it along a permanent error. ... | 36.135135 | 80 | 0.708302 | 496 | 4,011 | 5.572581 | 0.368952 | 0.051737 | 0.017366 | 0.01013 | 0.095876 | 0.044139 | 0.025687 | 0 | 0 | 0 | 0 | 0.000641 | 0.222388 | 4,011 | 110 | 81 | 36.463636 | 0.88554 | 0.582149 | 0 | 0 | 0 | 0 | 0.256344 | 0.15745 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0.032258 | 0.032258 | 0.064516 | 0.870968 | 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 |
dfd2425bdf187c1ec0e6230a05ac46e55ee59eb0 | 1,378 | py | Python | src/history/migrations/0003_auto_20200710_0608.py | ritvikmahajan17/scrum-2 | 82eae180fefc86764ed61eb80d56fab448de78da | [
"MIT"
] | 8 | 2020-06-09T21:55:03.000Z | 2021-10-06T04:00:01.000Z | src/history/migrations/0003_auto_20200710_0608.py | ritvikmahajan17/scrum-2 | 82eae180fefc86764ed61eb80d56fab448de78da | [
"MIT"
] | 25 | 2020-06-12T04:03:06.000Z | 2022-03-12T00:31:22.000Z | src/history/migrations/0003_auto_20200710_0608.py | ritvikmahajan17/scrum-2 | 82eae180fefc86764ed61eb80d56fab448de78da | [
"MIT"
] | 29 | 2020-06-07T10:54:20.000Z | 2021-03-22T14:02:16.000Z | # Generated by Django 3.0.7 on 2020-07-10 00:38
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('project', '0004_auto_20200701_0437'),
('log', '0010_auto_20200710_0608'),
m... | 35.333333 | 134 | 0.635704 | 158 | 1,378 | 5.379747 | 0.341772 | 0.056471 | 0.082353 | 0.129412 | 0.567059 | 0.567059 | 0.378824 | 0.378824 | 0.378824 | 0.378824 | 0 | 0.060057 | 0.238752 | 1,378 | 38 | 135 | 36.263158 | 0.750238 | 0.032656 | 0 | 0.375 | 1 | 0 | 0.129226 | 0.051841 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.09375 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dfdc5f4fdc2bf03be9819dc500f91686292d02b9 | 3,282 | py | Python | main.py | mathistocrate/TP2---Next-purchase | 038e2c60ad6a198690c1b141f1c59253e093e0b5 | [
"MIT"
] | null | null | null | main.py | mathistocrate/TP2---Next-purchase | 038e2c60ad6a198690c1b141f1c59253e093e0b5 | [
"MIT"
] | null | null | null | main.py | mathistocrate/TP2---Next-purchase | 038e2c60ad6a198690c1b141f1c59253e093e0b5 | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
from numpy import array
import keras
from keras.callbacks import ModelCheckpoint, EarlyStopping
from keras.preprocessing.sequence import pad_sequences
from keras.layers import LSTM, Dense, Dropout
from keras.models import Sequential, Model
from sklearn.metrics import accuracy_sco... | 36.876404 | 153 | 0.531993 | 311 | 3,282 | 5.405145 | 0.37299 | 0.038667 | 0.033314 | 0.047591 | 0.184414 | 0.184414 | 0.184414 | 0.135634 | 0.135634 | 0.072576 | 0 | 0.013761 | 0.136502 | 3,282 | 88 | 154 | 37.295455 | 0.579393 | 0.112127 | 0 | 0.054054 | 0 | 0 | 0.212191 | 0.129239 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.324324 | 0 | 0.324324 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
dfdf86181856df7bde27fd83a5d03ed07a443547 | 2,017 | py | Python | englishQuotesCollector.py | Kazutaka333/quotecollector | 9292570e63c1bc6cd215e9509bbf4b938f200c69 | [
"MIT"
] | null | null | null | englishQuotesCollector.py | Kazutaka333/quotecollector | 9292570e63c1bc6cd215e9509bbf4b938f200c69 | [
"MIT"
] | null | null | null | englishQuotesCollector.py | Kazutaka333/quotecollector | 9292570e63c1bc6cd215e9509bbf4b938f200c69 | [
"MIT"
] | null | null | null | #coding: utf-8
import sys, json, time, urllib2
from pyquery import PyQuery
def getPyQueryFromURL(url):
opener = urllib2.build_opener()
opener.addheaders = [('User-agent', 'mozilla 3.6')] #fake agent
return PyQuery(opener.open(url).read())
def printProgressBar(current,maximum):
percentage = int(float(current)/flo... | 27.256757 | 81 | 0.683193 | 268 | 2,017 | 5.126866 | 0.5 | 0.008734 | 0.0131 | 0.024017 | 0.017467 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013881 | 0.142786 | 2,017 | 73 | 82 | 27.630137 | 0.78022 | 0.057511 | 0 | 0 | 0 | 0 | 0.179947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.036364 | null | null | 0.072727 | 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 |
dfeb1b92e954f328a25ae78432bb647ab5d73efd | 6,551 | py | Python | build_tools/generate_authors_table.py | huzq/scikit-learn | f862129f36786acbae3d9f2d161bbb72d77b87ec | [
"BSD-3-Clause"
] | 1 | 2020-12-03T16:35:55.000Z | 2020-12-03T16:35:55.000Z | build_tools/generate_authors_table.py | huzq/scikit-learn | f862129f36786acbae3d9f2d161bbb72d77b87ec | [
"BSD-3-Clause"
] | 1 | 2022-03-09T19:32:57.000Z | 2022-03-09T20:23:30.000Z | build_tools/generate_authors_table.py | huzq/scikit-learn | f862129f36786acbae3d9f2d161bbb72d77b87ec | [
"BSD-3-Clause"
] | 1 | 2020-02-16T05:40:12.000Z | 2020-02-16T05:40:12.000Z | """
This script generates an html table of contributors, with names and avatars.
The list is generated from scikit-learn's teams on GitHub, plus a small number
of hard-coded contributors.
The table should be updated for each new inclusion in the teams.
Generating the table requires admin rights.
"""
import sys
import ... | 31.800971 | 87 | 0.64036 | 826 | 6,551 | 4.891041 | 0.251816 | 0.047525 | 0.117574 | 0.057426 | 0.335644 | 0.285644 | 0.210644 | 0.153465 | 0.103465 | 0.103465 | 0 | 0.006179 | 0.234163 | 6,551 | 205 | 88 | 31.956098 | 0.799083 | 0.130667 | 0 | 0.163265 | 1 | 0.006803 | 0.195971 | 0.043647 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040816 | false | 0.013605 | 0.040816 | 0 | 0.129252 | 0.020408 | 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 |
dff01cae28271db4aa6c1997fa881d935fa9980f | 5,956 | py | Python | python/essidstate.py | sebastienroy/mamemaradio | 66e605c20345d5578dd31e296e0690233c173c19 | [
"Apache-2.0"
] | 2 | 2020-05-28T13:35:52.000Z | 2020-07-09T13:55:48.000Z | python/essidstate.py | sebastienroy/mamemaradio | 66e605c20345d5578dd31e296e0690233c173c19 | [
"Apache-2.0"
] | 6 | 2020-04-10T19:45:16.000Z | 2020-06-02T07:20:20.000Z | python/essidstate.py | sebastienroy/mamemasradio | 66e605c20345d5578dd31e296e0690233c173c19 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Sep 30 19:29:51 2018
@author: pi
"""
import logging
from radiostate import RadioState
from wifiscanner import WifiScanner
from radioevents import StationButtonEvent, PowerButtonEvent
from encoder import EncoderEvent
from powerbutton import PowerEvent
... | 36.993789 | 133 | 0.584956 | 704 | 5,956 | 4.674716 | 0.193182 | 0.049225 | 0.033424 | 0.031905 | 0.609845 | 0.510179 | 0.470678 | 0.434518 | 0.34883 | 0.320875 | 0 | 0.025397 | 0.312458 | 5,956 | 160 | 134 | 37.225 | 0.778266 | 0.036266 | 0 | 0.488889 | 0 | 0 | 0.027943 | 0.011177 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081481 | false | 0.088889 | 0.051852 | 0 | 0.155556 | 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 |
dffbdda265a94ee0d1e25942a14ce31ec157f350 | 410 | py | Python | Module01/AdvFunctions/MixedParams.py | fenglihanxiao/Python | 872baf3a3a5ee42740161152605ca2b1ddf4cd30 | [
"MIT"
] | null | null | null | Module01/AdvFunctions/MixedParams.py | fenglihanxiao/Python | 872baf3a3a5ee42740161152605ca2b1ddf4cd30 | [
"MIT"
] | null | null | null | Module01/AdvFunctions/MixedParams.py | fenglihanxiao/Python | 872baf3a3a5ee42740161152605ca2b1ddf4cd30 | [
"MIT"
] | null | null | null | """
1. Keyword param
"""
def foo(a = 100, b = 10):
print(a)
print(b)
foo(b=200, a=1000)
foo(1, b=15)
# Problem
# SyntaxError: positional argument
# follows keyword argument
# foo(b=30, 1)
"""
1. key word argument needs to place after position argument
2. 根据我查资料总结结果,很多 python 内置的函数都不支持 keyword 参数... | 17.826087 | 77 | 0.639024 | 62 | 410 | 4.225806 | 0.66129 | 0.030534 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064024 | 0.2 | 410 | 23 | 78 | 17.826087 | 0.734756 | 0.234146 | 0 | 0 | 0 | 0 | 0.10596 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.142857 | 0.571429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
5f008a902c6c97025d0388f5234db5c73d6fbb81 | 698 | py | Python | YakTrack.py | huntergregal/YakTrack | 49aafb876cb19cec10c9c9ae8c721bc21d170cd6 | [
"MIT"
] | 2 | 2015-03-03T08:58:59.000Z | 2018-08-01T07:09:08.000Z | YakTrack.py | huntergregal/YakTrack | 49aafb876cb19cec10c9c9ae8c721bc21d170cd6 | [
"MIT"
] | null | null | null | YakTrack.py | huntergregal/YakTrack | 49aafb876cb19cec10c9c9ae8c721bc21d170cd6 | [
"MIT"
] | null | null | null | ##############################################
#### Author: Hunter Gregal ####
##############################################
##To Do
##add geolocate by zip ...Google Maps API?
##Crack user ID hash scheme
import requests
import json
#Coords of Town
lat = "44.4758800"
lon = "-73.2120700"
raw = requests.get("https... | 30.347826 | 136 | 0.570201 | 83 | 698 | 4.795181 | 0.698795 | 0.040201 | 0.060302 | 0.075377 | 0.125628 | 0.125628 | 0 | 0 | 0 | 0 | 0 | 0.058158 | 0.113181 | 698 | 22 | 137 | 31.727273 | 0.584814 | 0.15616 | 0 | 0 | 0 | 0 | 0.483333 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.3 | 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 |
5f00cd49382104174e5a520c21e7a6d37e3e13f7 | 751 | py | Python | scientific/laplace_1d_generate.py | timasjov/simple-algorithms | 277f138f1000e318e9bd136cd7bf8d5bd8ff11f2 | [
"MIT"
] | 4 | 2015-11-02T07:09:30.000Z | 2018-03-09T13:14:50.000Z | scientific/laplace_1d_generate.py | timasjov/simple-algorithms | 277f138f1000e318e9bd136cd7bf8d5bd8ff11f2 | [
"MIT"
] | null | null | null | scientific/laplace_1d_generate.py | timasjov/simple-algorithms | 277f138f1000e318e9bd136cd7bf8d5bd8ff11f2 | [
"MIT"
] | 1 | 2015-11-02T07:09:32.000Z | 2015-11-02T07:09:32.000Z | #!/usr/local/bin/python
# coding=utf-8
import numpy as np
import matplotlib.pylab as plt
N = 10
# Generates 1D Laplace matrix using Dirichlet boundary conditions
def generate_1D(N):
L = np.zeros(shape=((N - 1), (N - 1)))
for i in range(0, N - 1): # rows
for j in range(0, N - 1): # columns
... | 22.757576 | 65 | 0.532623 | 135 | 751 | 2.948148 | 0.451852 | 0.025126 | 0.022613 | 0.035176 | 0.092965 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053131 | 0.298269 | 751 | 33 | 66 | 22.757576 | 0.702087 | 0.149134 | 0 | 0 | 1 | 0 | 0.004724 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.086957 | 0 | 0.173913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5f01d7ba886f7136f56858dd39fd2ccb3b6daef8 | 268 | py | Python | src/routes/company.py | Gabrielgvl/pontotel_backend | 5cc379ea636e9e9df1348f3e3b2dd38f323961e5 | [
"MIT"
] | null | null | null | src/routes/company.py | Gabrielgvl/pontotel_backend | 5cc379ea636e9e9df1348f3e3b2dd38f323961e5 | [
"MIT"
] | null | null | null | src/routes/company.py | Gabrielgvl/pontotel_backend | 5cc379ea636e9e9df1348f3e3b2dd38f323961e5 | [
"MIT"
] | null | null | null | """
Defines the blueprint for the companies
"""
from flask import Blueprint
from flask_restful import Api
from resources import CompanyResource
COMPANY_BLUEPRINT = Blueprint("company", __name__)
Api(COMPANY_BLUEPRINT).add_resource(
CompanyResource, "/company"
)
| 20.615385 | 50 | 0.794776 | 31 | 268 | 6.612903 | 0.516129 | 0.087805 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126866 | 268 | 12 | 51 | 22.333333 | 0.876068 | 0.145522 | 0 | 0 | 0 | 0 | 0.067873 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0.285714 | 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 |
5f06a8d83f4144f2807e9beed57b2252879f4c9f | 1,547 | py | Python | PYex/Mario Shell Defense/gameUtils.py | iPatso/PyGameProjs | b1eed993649a1e90da5214a1604fdb59d65ff0b4 | [
"Apache-2.0"
] | null | null | null | PYex/Mario Shell Defense/gameUtils.py | iPatso/PyGameProjs | b1eed993649a1e90da5214a1604fdb59d65ff0b4 | [
"Apache-2.0"
] | null | null | null | PYex/Mario Shell Defense/gameUtils.py | iPatso/PyGameProjs | b1eed993649a1e90da5214a1604fdb59d65ff0b4 | [
"Apache-2.0"
] | null | null | null | import pygame, os
from pygame.locals import *
# ----------------------------------------------------
def loadImage(name, colorkey=None):
fullname = os.path.join("data", name)
try:
image = pygame.image.load(fullname)
except pygame.error, message:
print "Cannot load image:", name
... | 23.089552 | 55 | 0.541047 | 200 | 1,547 | 4.16 | 0.32 | 0.024038 | 0.032452 | 0.043269 | 0.242788 | 0.216346 | 0.216346 | 0.112981 | 0 | 0 | 0 | 0.012853 | 0.245637 | 1,547 | 67 | 56 | 23.089552 | 0.700086 | 0.102133 | 0 | 0.186047 | 0 | 0 | 0.031746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.023256 | 0.046512 | null | null | 0.046512 | 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 |
5f0aa09234cd609383884a18f519e433ed758b0b | 236 | py | Python | docs_src/path_params/tutorial003.py | Aryabhata-Rootspring/fastapi | f6237ad05a8468ac19c591181adad38d75372c46 | [
"MIT"
] | 53,007 | 2018-12-08T10:05:29.000Z | 2022-03-31T23:30:02.000Z | docs_src/path_params/tutorial003.py | Aryabhata-Rootspring/fastapi | f6237ad05a8468ac19c591181adad38d75372c46 | [
"MIT"
] | 4,155 | 2019-01-05T05:07:49.000Z | 2022-03-31T21:25:38.000Z | docs_src/path_params/tutorial003.py | Aryabhata-Rootspring/fastapi | f6237ad05a8468ac19c591181adad38d75372c46 | [
"MIT"
] | 4,092 | 2018-12-09T16:21:00.000Z | 2022-03-31T07:59:45.000Z | from fastapi import FastAPI
app = FastAPI()
@app.get("/users/me")
async def read_user_me():
return {"user_id": "the current user"}
@app.get("/users/{user_id}")
async def read_user(user_id: str):
return {"user_id": user_id}
| 16.857143 | 42 | 0.673729 | 38 | 236 | 3.973684 | 0.421053 | 0.198676 | 0.145695 | 0.211921 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15678 | 236 | 13 | 43 | 18.153846 | 0.758794 | 0 | 0 | 0 | 0 | 0 | 0.233051 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.375 | 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 |
5f0c431e4d25c1f1a09a565a30833116348e8d55 | 349 | py | Python | dj_paymill/urls.py | rosscdh/django-paymill-redux | 3cba96242fe0763f351ac4ea303b5fd5cb828383 | [
"MIT"
] | null | null | null | dj_paymill/urls.py | rosscdh/django-paymill-redux | 3cba96242fe0763f351ac4ea303b5fd5cb828383 | [
"MIT"
] | null | null | null | dj_paymill/urls.py | rosscdh/django-paymill-redux | 3cba96242fe0763f351ac4ea303b5fd5cb828383 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from django.conf.urls import patterns, url
from django.views.decorators.csrf import csrf_exempt
from .views import PaymillView
urlpatterns = patterns('',
url(r'^webhook/$',
csrf_exempt(PaymillView.as_view()),
name='p... | 26.846154 | 62 | 0.584527 | 36 | 349 | 5.527778 | 0.638889 | 0.100503 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004098 | 0.30086 | 349 | 12 | 63 | 29.083333 | 0.811475 | 0.060172 | 0 | 0 | 0 | 0 | 0.104294 | 0.07362 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5f0d41fbb764ed4192b2d1524e4245e485e3bf74 | 5,955 | py | Python | omics/omics_dashboard/data_tools/wrappers/sample_groups.py | BiRG/Omics-Dashboard | 835b0fdd9f7b2d0fc41eec975e50c54653a61c5b | [
"MIT"
] | 1 | 2021-08-31T20:31:13.000Z | 2021-08-31T20:31:13.000Z | omics/omics_dashboard/data_tools/wrappers/sample_groups.py | BiRG/Omics-Dashboard | 835b0fdd9f7b2d0fc41eec975e50c54653a61c5b | [
"MIT"
] | null | null | null | omics/omics_dashboard/data_tools/wrappers/sample_groups.py | BiRG/Omics-Dashboard | 835b0fdd9f7b2d0fc41eec975e50c54653a61c5b | [
"MIT"
] | null | null | null | from typing import List, Dict, Any
from data_tools.wrappers.users import is_read_permitted, is_write_permitted, get_read_permitted_records, \
get_all_read_permitted_records
from data_tools.db_models import User, Sample, SampleGroup, db
from data_tools.util import AuthException, NotFoundException
def get_sample_g... | 35.236686 | 132 | 0.693031 | 813 | 5,955 | 4.883149 | 0.123001 | 0.21335 | 0.052897 | 0.052141 | 0.571285 | 0.468514 | 0.439547 | 0.376071 | 0.345592 | 0.286146 | 0 | 0 | 0.207557 | 5,955 | 168 | 133 | 35.446429 | 0.84128 | 0.171788 | 0 | 0.287671 | 0 | 0.027397 | 0.182705 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.150685 | false | 0 | 0.054795 | 0 | 0.356164 | 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 |
5f0e4c682d3116271b8e94cfce2bf9f7d142a5d4 | 4,171 | py | Python | app/tree.py | fberanizo/teachingtool | 2c55a0735a51ee5c3473f715733b87d55fe730f8 | [
"MIT"
] | null | null | null | app/tree.py | fberanizo/teachingtool | 2c55a0735a51ee5c3473f715733b87d55fe730f8 | [
"MIT"
] | null | null | null | app/tree.py | fberanizo/teachingtool | 2c55a0735a51ee5c3473f715733b87d55fe730f8 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import numpy, pandas
from sklearn.base import BaseEstimator, ClassifierMixin
from collections import deque
from . import gain, gini
class DecisionTree:
"""Classe que implementa uma árvore de decisão para classificação."""
def __init__(self, X, y, attributes, attribute_selection_method=... | 47.397727 | 275 | 0.603932 | 482 | 4,171 | 5.105809 | 0.319502 | 0.044697 | 0.058513 | 0.04551 | 0.145063 | 0.060138 | 0.03332 | 0.03332 | 0 | 0 | 0 | 0.00265 | 0.276193 | 4,171 | 87 | 276 | 47.942529 | 0.812521 | 0.157276 | 0 | 0.116667 | 0 | 0 | 0.109711 | 0 | 0 | 0 | 0 | 0.011494 | 0 | 1 | 0.05 | false | 0 | 0.066667 | 0 | 0.183333 | 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 |
5f112a68ee689f7b03ce639e29adb9b8669c1245 | 1,286 | py | Python | setup.py | poypoyan/edhsmm | 9cf98b12a3f07b4d1cdbf8fff4bc4b5b0c88c69f | [
"MIT"
] | 4 | 2021-02-21T11:52:33.000Z | 2022-02-22T03:27:13.000Z | setup.py | UKY-IRA/edhsmm | 420b9bd18a51a8e03f6c7278b82a7c6bf288ff32 | [
"MIT"
] | 9 | 2020-05-04T15:26:52.000Z | 2022-03-04T14:20:00.000Z | setup.py | UKY-IRA/edhsmm | 420b9bd18a51a8e03f6c7278b82a7c6bf288ff32 | [
"MIT"
] | 3 | 2021-06-02T19:04:00.000Z | 2021-08-12T15:59:13.000Z | # Copyright (C) 2021 poypoyan
from setuptools import setup
from Cython.Build import cythonize
import numpy
setup(
name="edhsmm",
version="0.1.2",
description="An(other) implementation of Explicit Duration HMM/HSMM in Python 3",
long_description=open("README.md", encoding="utf-8").read(),
long_desc... | 34.756757 | 85 | 0.639191 | 139 | 1,286 | 5.820144 | 0.690647 | 0.070457 | 0.061805 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02495 | 0.22084 | 1,286 | 37 | 86 | 34.756757 | 0.782435 | 0.103421 | 0 | 0.058824 | 0 | 0 | 0.45122 | 0.038328 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.088235 | 0 | 0.088235 | 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 |
5f14d28a057eb6833af36490b823a3a41d4a0aad | 807 | py | Python | Chapter07-design-patterns/borg.py | showa-yojyo/Software-Architecture-with-Python | 46ba48911065292c9d391f66d7213c01699fca80 | [
"MIT"
] | null | null | null | Chapter07-design-patterns/borg.py | showa-yojyo/Software-Architecture-with-Python | 46ba48911065292c9d391f66d7213c01699fca80 | [
"MIT"
] | null | null | null | Chapter07-design-patterns/borg.py | showa-yojyo/Software-Architecture-with-Python | 46ba48911065292c9d391f66d7213c01699fca80 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# Code Listing #5
"""
Borg - Pattern which allows class instances to share state without the strict requirement
of Singletons
"""
class Borg:
""" I ain't a Singleton """
# クラス変数として dict を持つ
__shared_state = {}
def __init__(self):
self.__dict__ = self.__shared_state
#... | 14.944444 | 89 | 0.577447 | 108 | 807 | 4 | 0.546296 | 0.055556 | 0.050926 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022491 | 0.283767 | 807 | 53 | 90 | 15.226415 | 0.724913 | 0.296159 | 0 | 0.208333 | 0 | 0 | 0.068773 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 0 | 0.041667 | 0.416667 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5f18dee9e65d7ad112c0a792f851ab9c58592cc1 | 1,746 | py | Python | console_logging.py | House-of-IoT/HOI-GeneralServer | 12e621a1332e989b0bf4c8cb053ef46c8c0cf458 | [
"MIT"
] | 1 | 2021-05-17T05:44:22.000Z | 2021-05-17T05:44:22.000Z | console_logging.py | House-of-IoT/HOI-GeneralServer | 12e621a1332e989b0bf4c8cb053ef46c8c0cf458 | [
"MIT"
] | 18 | 2021-07-04T19:24:21.000Z | 2021-12-08T12:35:16.000Z | console_logging.py | House-of-IoT/HOI-GeneralServer | 12e621a1332e989b0bf4c8cb053ef46c8c0cf458 | [
"MIT"
] | null | null | null | from termcolor import colored
from colorama import init
class ConsoleLogger:
def __init__(self,parent):
self.row_number = 0
self.parent = parent
def start_message(self):
print("\x1B[2J\x1B[1;1H") #console cleared
print("Server Started....\n")
print(colored("[~] House of... | 41.571429 | 121 | 0.652921 | 252 | 1,746 | 4.369048 | 0.384921 | 0.043597 | 0.035422 | 0.034514 | 0.134423 | 0.134423 | 0.04723 | 0 | 0 | 0 | 0 | 0.007885 | 0.201031 | 1,746 | 42 | 122 | 41.571429 | 0.781362 | 0.008591 | 0 | 0.0625 | 0 | 0.03125 | 0.376661 | 0.019064 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0 | 0.0625 | 0 | 0.40625 | 0.28125 | 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 |
5f1911bd96c839e1ea00d12521c169cef6da1042 | 1,801 | py | Python | wpclient/api/sync/posts.py | rguillermo/wpclient | 677d00529a5a85c2c48850baa9618a662fa161ca | [
"MIT"
] | null | null | null | wpclient/api/sync/posts.py | rguillermo/wpclient | 677d00529a5a85c2c48850baa9618a662fa161ca | [
"MIT"
] | null | null | null | wpclient/api/sync/posts.py | rguillermo/wpclient | 677d00529a5a85c2c48850baa9618a662fa161ca | [
"MIT"
] | null | null | null | from typing import Literal, Optional
from .crud import CRUD
from wpclient.models.post import Post, PostFilter
class Posts(CRUD):
endpoint = "/wp/v2/posts"
def filter(self, filter: PostFilter) -> list[Post]:
"""
Retrieve all posts matching the filter
"""
filters: dict = filter.... | 25.728571 | 83 | 0.570794 | 216 | 1,801 | 4.666667 | 0.263889 | 0.059524 | 0.099206 | 0.053571 | 0.126984 | 0.055556 | 0.055556 | 0 | 0 | 0 | 0 | 0.000807 | 0.312049 | 1,801 | 69 | 84 | 26.101449 | 0.812752 | 0.070516 | 0 | 0 | 0 | 0 | 0.031451 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.135135 | false | 0.081081 | 0.081081 | 0 | 0.459459 | 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 |
5f1c0d1a3a68b4ed188439b369cdd47064532db2 | 189 | py | Python | ProjectEuler/4_largest_palindrome_product.py | DmitryTsybin/Study | 100fc029b8a9755e2a8be34b925606451068f23a | [
"MIT"
] | null | null | null | ProjectEuler/4_largest_palindrome_product.py | DmitryTsybin/Study | 100fc029b8a9755e2a8be34b925606451068f23a | [
"MIT"
] | null | null | null | ProjectEuler/4_largest_palindrome_product.py | DmitryTsybin/Study | 100fc029b8a9755e2a8be34b925606451068f23a | [
"MIT"
] | null | null | null | a = 999
b = 999
palindromes = []
for n in range(1,1000):
for m in range(1,1000):
num = m*n
if str(num) == str(num)[::-1]:
palindromes.append(num)
print(max(palindromes))
| 14.538462 | 34 | 0.582011 | 32 | 189 | 3.4375 | 0.53125 | 0.127273 | 0.145455 | 0.218182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118056 | 0.238095 | 189 | 12 | 35 | 15.75 | 0.645833 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.111111 | 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 |
5f211581d92b18a2acb042fe2c798ceb19d7ae1f | 18,441 | py | Python | pyb4ml/inference/factored/belief_propagation.py | ax-va/PyB4ML | 309e8152a0f4e16a642522aa531c3f7aeb6aeb3a | [
"BSD-3-Clause"
] | null | null | null | pyb4ml/inference/factored/belief_propagation.py | ax-va/PyB4ML | 309e8152a0f4e16a642522aa531c3f7aeb6aeb3a | [
"BSD-3-Clause"
] | null | null | null | pyb4ml/inference/factored/belief_propagation.py | ax-va/PyB4ML | 309e8152a0f4e16a642522aa531c3f7aeb6aeb3a | [
"BSD-3-Clause"
] | null | null | null | """
The module contains the class of the Belief Propagation algorithm.
Attention: The author is not responsible for any damage that can be caused by the use
of this code. You use this code at your own risk. Any claim against the author is
legally void. By using this code, you agree to the terms imposed by the aut... | 51.655462 | 119 | 0.678759 | 2,254 | 18,441 | 5.253771 | 0.135315 | 0.036311 | 0.045938 | 0.032427 | 0.526685 | 0.471289 | 0.418004 | 0.369279 | 0.33339 | 0.3013 | 0 | 0.002672 | 0.269291 | 18,441 | 356 | 120 | 51.800562 | 0.876067 | 0.325742 | 0 | 0.226804 | 0 | 0 | 0.005892 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.118557 | false | 0.092784 | 0.025773 | 0.005155 | 0.159794 | 0.118557 | 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 |
5f21b68a79abd7011bc9e9df4dad89a63c015bed | 2,587 | py | Python | Face_Generate/selectFrontal.py | corganhejijun/MachineLearning | 40b8aed4b2e9512b2495d4aca1b735b48f9980c6 | [
"MIT"
] | null | null | null | Face_Generate/selectFrontal.py | corganhejijun/MachineLearning | 40b8aed4b2e9512b2495d4aca1b735b48f9980c6 | [
"MIT"
] | null | null | null | Face_Generate/selectFrontal.py | corganhejijun/MachineLearning | 40b8aed4b2e9512b2495d4aca1b735b48f9980c6 | [
"MIT"
] | null | null | null | # -*- coding: UTF-8 -*-
import cv2
from matplotlib import pyplot as plt
from matplotlib.patches import Arrow, Circle
import dlib
import sys, os
import numpy as np
from shutil import copyfile
FRONT_FACE_STANDARD = "Andre_Agassi_0010.jpg"
shapePredict = dlib.shape_predictor("shape_predictor_68_face_landmarks.d... | 34.959459 | 91 | 0.649401 | 355 | 2,587 | 4.630986 | 0.284507 | 0.032847 | 0.042579 | 0.038929 | 0.384428 | 0.356448 | 0.329684 | 0.274331 | 0.274331 | 0.274331 | 0 | 0.021095 | 0.230383 | 2,587 | 74 | 92 | 34.959459 | 0.804621 | 0.008118 | 0 | 0.313433 | 0 | 0 | 0.107945 | 0.023274 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.104478 | null | null | 0.089552 | 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 |
5f265f267542c07e77393d8a49962a8cfb868235 | 284 | py | Python | WEEKS/wk17/CodeSignal-Solutions/57_-_fileNaming.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | null | null | null | WEEKS/wk17/CodeSignal-Solutions/57_-_fileNaming.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | null | null | null | WEEKS/wk17/CodeSignal-Solutions/57_-_fileNaming.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | null | null | null | def fileNaming(names):
outnames = []
for name in names:
if name in outnames:
k = 1
while "{}({})".format(name, k) in outnames:
k += 1
name = "{}({})".format(name, k)
outnames.append(name)
return outnames
| 25.818182 | 55 | 0.46831 | 31 | 284 | 4.290323 | 0.451613 | 0.090226 | 0.165414 | 0.180451 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011561 | 0.390845 | 284 | 10 | 56 | 28.4 | 0.757225 | 0 | 0 | 0 | 0 | 0 | 0.042254 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.2 | 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 |
5f26c04555c3da80c376ac4c3e6c61fd2eb927d3 | 4,195 | py | Python | homebot/homebot.py | ThomasKoscheck/Telegrambots | 74a7be4826f9736a36e8120e8f28baad2eba16e8 | [
"MIT"
] | 2 | 2017-09-13T14:46:29.000Z | 2021-02-11T09:03:45.000Z | homebot/homebot.py | ThomasKoscheck/Telegrambots | 74a7be4826f9736a36e8120e8f28baad2eba16e8 | [
"MIT"
] | null | null | null | homebot/homebot.py | ThomasKoscheck/Telegrambots | 74a7be4826f9736a36e8120e8f28baad2eba16e8 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import time
import datetime
import random
import datetime
import telepot
import os
import threading
import re
import codecs
from telepot.namedtuple import ReplyKeyboardMarkup, KeyboardButton, ForceReply
codecs.register(lambda name: codecs.lookup('utf8') if name ... | 29.964286 | 184 | 0.70298 | 591 | 4,195 | 4.920474 | 0.370558 | 0.049519 | 0.117607 | 0.130674 | 0.335282 | 0.287483 | 0.235557 | 0.225585 | 0.225585 | 0.140303 | 0 | 0.00791 | 0.156138 | 4,195 | 139 | 185 | 30.179856 | 0.813559 | 0.13969 | 0 | 0.123457 | 0 | 0.012346 | 0.285428 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.135802 | null | null | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5f2fc87a60e86b15cace46f02d0b53970ab4f1ad | 3,190 | py | Python | python/neural_network/update_perceptron.py | robertodias/machine_learning | 825928ba0e82405ece33769ae1575249edef0a57 | [
"MIT"
] | 1 | 2017-11-09T15:09:41.000Z | 2017-11-09T15:09:41.000Z | python/neural_network/update_perceptron.py | robertodias/machine_learning | 825928ba0e82405ece33769ae1575249edef0a57 | [
"MIT"
] | null | null | null | python/neural_network/update_perceptron.py | robertodias/machine_learning | 825928ba0e82405ece33769ae1575249edef0a57 | [
"MIT"
] | null | null | null | # ----------
#
# In this exercise, you will update the perceptron class so that it can update
# its weights.
#
# Finish writing the update() method so that it updates the weights according
# to the perceptron update rule. Updates should be performed online, revising
# the weights after each data point.
#
# ----------
... | 35.842697 | 79 | 0.617868 | 446 | 3,190 | 4.374439 | 0.329596 | 0.057406 | 0.024603 | 0.030753 | 0.162993 | 0.054331 | 0.054331 | 0.054331 | 0.036904 | 0 | 0 | 0.041263 | 0.255486 | 3,190 | 89 | 80 | 35.842697 | 0.780211 | 0.132602 | 0 | 0 | 0 | 0 | 0.082184 | 0 | 0 | 0 | 0 | 0 | 0.085714 | 0 | null | null | 0 | 0.028571 | null | null | 0.171429 | 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 |
5f308d1fceb6a6713cec07cb4399ef018a29ba71 | 1,022 | py | Python | 067.py | zlsun/ProjectEuler | 813ec545484924a052f1bd7fd90a4c676eea3bba | [
"MIT"
] | null | null | null | 067.py | zlsun/ProjectEuler | 813ec545484924a052f1bd7fd90a4c676eea3bba | [
"MIT"
] | null | null | null | 067.py | zlsun/ProjectEuler | 813ec545484924a052f1bd7fd90a4c676eea3bba | [
"MIT"
] | null | null | null | #-*- encoding: utf-8 -*-
"""
Maximum path sum II
By starting at the top of the triangle below and moving to adjacent numbers on the row below, the maximum total from top to bottom is 23.
[3]
[7] 4
2 [4] 6
8 5 [9] 3
That is, 3 + 7 + 4 + 9 = 23.
Find the maximum total from top to bottom in triangle.t... | 30.969697 | 316 | 0.649706 | 188 | 1,022 | 3.526596 | 0.601064 | 0.027149 | 0.045249 | 0.057315 | 0.090498 | 0.090498 | 0.090498 | 0 | 0 | 0 | 0 | 0.055699 | 0.244618 | 1,022 | 32 | 317 | 31.9375 | 0.803109 | 0.027397 | 0 | 0 | 0 | 0 | 0.072289 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.111111 | 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 |
5f33ce12060859df8b830a1f9bbbe51557825ef5 | 621 | py | Python | setup.py | pinakinathc/pinakinathc_py | 9d495e41cabb4180acfb66b36c2524d95c6942fd | [
"MIT"
] | 1 | 2022-01-29T13:46:07.000Z | 2022-01-29T13:46:07.000Z | setup.py | pinakinathc/pinakinathc_py | 9d495e41cabb4180acfb66b36c2524d95c6942fd | [
"MIT"
] | null | null | null | setup.py | pinakinathc/pinakinathc_py | 9d495e41cabb4180acfb66b36c2524d95c6942fd | [
"MIT"
] | null | null | null | import setuptools
setuptools.setup(
name="pinakinathc_py",
version="0.0.1",
author="Pinaki Nath Chowdhury",
author_email="mail@pinakinathc.me",
description="A utility library.",
url="http://www.pinakinathc.me",
project_urls={
"Bug Tracker": "https://github.com/pinakinathc/pinakinath... | 28.227273 | 78 | 0.63124 | 67 | 621 | 5.746269 | 0.776119 | 0.067532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01217 | 0.206119 | 621 | 21 | 79 | 29.571429 | 0.768763 | 0 | 0 | 0 | 0 | 0 | 0.455717 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.05 | 0 | 0.05 | 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 |
a02bb7d42b7a9737328166565e7314c12e982dd3 | 5,348 | py | Python | src/paukenator/cli/main.py | nkrot/paukenator | d7d188dd4bc283208c544f2b29530046768df7ee | [
"MIT"
] | null | null | null | src/paukenator/cli/main.py | nkrot/paukenator | d7d188dd4bc283208c544f2b29530046768df7ee | [
"MIT"
] | null | null | null | src/paukenator/cli/main.py | nkrot/paukenator | d7d188dd4bc283208c544f2b29530046768df7ee | [
"MIT"
] | null | null | null | import click
from paukenator import __version__
from paukenator import Config, Lesson, Text, Selector
from paukenator.exercises import HiddenWord
from paukenator import nlp
EPILOGUE = f"""\b
version: {__version__}
Have fun and keep learning!
"""
class SelectorSpec(click.ParamType):
'''Validate value of --selec... | 34.063694 | 78 | 0.638743 | 690 | 5,348 | 4.852174 | 0.326087 | 0.02957 | 0.014337 | 0.012545 | 0.096476 | 0.063919 | 0.040621 | 0.040621 | 0.040621 | 0.040621 | 0 | 0.002459 | 0.239529 | 5,348 | 156 | 79 | 34.282051 | 0.820752 | 0.139117 | 0 | 0.04 | 0 | 0 | 0.242955 | 0 | 0 | 0 | 0 | 0.012821 | 0 | 1 | 0.07 | false | 0.01 | 0.05 | 0 | 0.2 | 0.02 | 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 |
a03341ab1f7f4dd0e5cf9f391532e1c44ab3e81e | 327 | py | Python | models/posts.py | QuiTran86/RestfulAPI | 8fac53c7edb1fe580d9fefa34d6f1630cc747566 | [
"MIT"
] | null | null | null | models/posts.py | QuiTran86/RestfulAPI | 8fac53c7edb1fe580d9fefa34d6f1630cc747566 | [
"MIT"
] | null | null | null | models/posts.py | QuiTran86/RestfulAPI | 8fac53c7edb1fe580d9fefa34d6f1630cc747566 | [
"MIT"
] | null | null | null | from datetime import datetime
from ..app import db
class Post(db.Model):
__tablename__ = 'post'
id = db.Column(db.Integer, primary_key=True)
body = db.Column(db.String(140))
timestamp = db.Column(db.DateTime, index=True, default=datetime.utcnow)
user_id = db.Column(db.Integer, db.ForeignKey('users... | 29.727273 | 75 | 0.706422 | 48 | 327 | 4.6875 | 0.520833 | 0.142222 | 0.177778 | 0.106667 | 0.168889 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01087 | 0.155963 | 327 | 10 | 76 | 32.7 | 0.804348 | 0 | 0 | 0 | 0 | 0 | 0.036697 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a0348d3d4906c8362ffec850b7ce8455a86f4651 | 6,195 | py | Python | kive/librarian/migrations/0201_squashed.py | cfe-lab/Kive | e46b9eb40f085d579c12f47b6b5696d5ee93a9d3 | [
"BSD-3-Clause"
] | 2 | 2016-10-02T18:24:53.000Z | 2019-01-19T09:37:56.000Z | kive/librarian/migrations/0201_squashed.py | cfe-lab/Kive | e46b9eb40f085d579c12f47b6b5696d5ee93a9d3 | [
"BSD-3-Clause"
] | 1,190 | 2015-07-10T22:57:23.000Z | 2022-03-30T05:10:14.000Z | kive/librarian/migrations/0201_squashed.py | cfe-lab/Kive | e46b9eb40f085d579c12f47b6b5696d5ee93a9d3 | [
"BSD-3-Clause"
] | 2 | 2019-07-16T00:25:25.000Z | 2019-11-25T16:32:58.000Z | # Generated by Django 2.2.18 on 2021-04-07 20:09
from django.conf import settings
import django.core.validators
from django.db import migrations, models
import django.utils.timezone
import librarian.models
import re
class Migration(migrations.Migration):
replaces = [('librarian', '0101_squashed'), ('librarian',... | 57.897196 | 659 | 0.654399 | 690 | 6,195 | 5.657971 | 0.282609 | 0.036885 | 0.040984 | 0.05123 | 0.450564 | 0.4229 | 0.313781 | 0.275871 | 0.265881 | 0.265881 | 0 | 0.030222 | 0.214851 | 6,195 | 106 | 660 | 58.443396 | 0.77241 | 0.007425 | 0 | 0.428571 | 1 | 0.010204 | 0.320807 | 0.080852 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.061224 | 0 | 0.112245 | 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 |
a037f5de7c549d3a853bc69f1186de0c24b55eae | 21,841 | py | Python | aurorae/cnab240/v10_7/types.py | vintasoftware/aurorae | 1202a7741cd2d99de8538bc10553476e3eb0e148 | [
"MIT"
] | 9 | 2021-08-20T16:46:42.000Z | 2021-11-05T13:52:59.000Z | aurorae/cnab240/v10_7/types.py | vintasoftware/aurorae | 1202a7741cd2d99de8538bc10553476e3eb0e148 | [
"MIT"
] | null | null | null | aurorae/cnab240/v10_7/types.py | vintasoftware/aurorae | 1202a7741cd2d99de8538bc10553476e3eb0e148 | [
"MIT"
] | null | null | null | # pylint: disable=unsubscriptable-object
from datetime import datetime
from decimal import Decimal
from enum import Enum, IntEnum
from typing import ClassVar, Union
from pydantic import BaseModel, conint, constr, validator
STR_FILL_VALUE = " "
INT_FILL_VALUE = "0"
REGISTRATION_TYPE_MAP = {
"ISENTO/NAO INFORMADO... | 25.191465 | 88 | 0.715672 | 2,651 | 21,841 | 5.39834 | 0.217654 | 0.064775 | 0.083013 | 0.065684 | 0.419887 | 0.409405 | 0.358535 | 0.344979 | 0.304801 | 0.237859 | 0 | 0.040196 | 0.195824 | 21,841 | 866 | 89 | 25.220554 | 0.774596 | 0.017353 | 0 | 0.299663 | 0 | 0 | 0.037027 | 0.004337 | 0 | 0 | 0 | 0 | 0.003367 | 1 | 0.03367 | false | 0 | 0.008418 | 0.018519 | 0.900673 | 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 |
a03896e38afe60dba0432aa0dabd21e5ecec202a | 299 | py | Python | TopQuarkAnalysis/TopEventProducers/python/producers/TtFullLepEvtFilter_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | TopQuarkAnalysis/TopEventProducers/python/producers/TtFullLepEvtFilter_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | TopQuarkAnalysis/TopEventProducers/python/producers/TtFullLepEvtFilter_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | import FWCore.ParameterSet.Config as cms
#
# module to filter events based on member functions of the TtFullLeptonicEvent
#
ttFullLepEventFilter = cms.EDFilter("TtFullLepEvtFilter",
src = cms.InputTag("ttFullLepEvent"),
cut = cms.string("isHypoValid('kGenMatch') & genMatchSumDR < 999.")
)
| 29.9 | 78 | 0.755853 | 32 | 299 | 7.0625 | 0.90625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011628 | 0.137124 | 299 | 9 | 79 | 33.222222 | 0.864341 | 0.254181 | 0 | 0 | 0 | 0 | 0.360731 | 0.109589 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 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 |
a03978628c7c08ef42ec78016cc57df8d81965bd | 12,519 | py | Python | paref.py | davidchern/xtalkit | ef6f5801d585317d458b8a8e4b9103ee3f4c799c | [
"MIT"
] | null | null | null | paref.py | davidchern/xtalkit | ef6f5801d585317d458b8a8e4b9103ee3f4c799c | [
"MIT"
] | null | null | null | paref.py | davidchern/xtalkit | ef6f5801d585317d458b8a8e4b9103ee3f4c799c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#########################################
#
# function: run phenix.refine in parallel and more
# author: David Chen
# created: 2014/7/8
# updated: 2015/2/17
# updated: 2016/12/10
# updated: 2017/1/5
# updated: 2017/1/25
# updated: 2017/12/14
#
##############################... | 29.595745 | 92 | 0.492212 | 1,526 | 12,519 | 4.007864 | 0.250983 | 0.015697 | 0.015697 | 0.011445 | 0.128025 | 0.081426 | 0.075867 | 0.041694 | 0.039895 | 0.039895 | 0 | 0.021248 | 0.349629 | 12,519 | 422 | 93 | 29.665877 | 0.72955 | 0.105759 | 0 | 0.215548 | 0 | 0.007067 | 0.187664 | 0.032478 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.014134 | 0.014134 | null | null | 0.053004 | 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 |
a03dd7262aada0804f1500a27e1a0a5a26590cf4 | 406 | py | Python | argparse_example.py | CliffJumper/python-snippets | eb7f4c211a5d22c49063c290f05724c1257fff6a | [
"Apache-2.0"
] | null | null | null | argparse_example.py | CliffJumper/python-snippets | eb7f4c211a5d22c49063c290f05724c1257fff6a | [
"Apache-2.0"
] | null | null | null | argparse_example.py | CliffJumper/python-snippets | eb7f4c211a5d22c49063c290f05724c1257fff6a | [
"Apache-2.0"
] | null | null | null | import argparse
# Setup Parser and args
parser = argparse.ArgumentParser()
# Add positional Arg
parser.add_argument("square", type=int, help="Number which is to be squared")
# Optional Arg
parser.add_argument("-v", "--verbosity", help="Increase verbosity of output")
# Required Arg
parser.add_argument("-a", "--acc... | 21.368421 | 77 | 0.73399 | 55 | 406 | 5.345455 | 0.581818 | 0.091837 | 0.122449 | 0.204082 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128079 | 406 | 18 | 78 | 22.555556 | 0.830508 | 0.189655 | 0 | 0 | 0 | 0 | 0.312694 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 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 |
a03f2c073a5ab4888577313abeb1a383650d9db1 | 843 | py | Python | alembic/versions/1d3b0df7f698_add_users_table.py | go-lab/appcomposer | c2468f11b8398edc9b16e1552ac8d609d8347677 | [
"BSD-2-Clause"
] | 1 | 2018-01-20T14:56:01.000Z | 2018-01-20T14:56:01.000Z | alembic/versions/1d3b0df7f698_add_users_table.py | go-lab/appcomposer | c2468f11b8398edc9b16e1552ac8d609d8347677 | [
"BSD-2-Clause"
] | 25 | 2015-01-21T09:16:26.000Z | 2021-12-13T20:01:21.000Z | alembic/versions/1d3b0df7f698_add_users_table.py | go-lab/appcomposer | c2468f11b8398edc9b16e1552ac8d609d8347677 | [
"BSD-2-Clause"
] | 3 | 2015-07-28T18:40:05.000Z | 2017-03-28T08:14:37.000Z | """Add Users table
Revision ID: 1d3b0df7f698
Revises: None
Create Date: 2013-09-16 13:16:21.622369
"""
# revision identifiers, used by Alembic.
revision = '1d3b0df7f698'
down_revision = None
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembic - please adjust! #... | 24.794118 | 65 | 0.677343 | 107 | 843 | 5.308411 | 0.46729 | 0.056338 | 0.079225 | 0.089789 | 0.31162 | 0.267606 | 0.267606 | 0.15493 | 0 | 0 | 0 | 0.057225 | 0.170819 | 843 | 33 | 66 | 25.545455 | 0.755365 | 0.338078 | 0 | 0 | 0 | 0 | 0.091429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0.066667 | 0.133333 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a041c805672e04bbc21ba34d99e24d89c4c55869 | 4,430 | py | Python | Files/21-Listas.py | michelelozada/Logica-de-Programacao_e_Algoritmos_em_Python | 4b2275d96d8cbf724e36a55234ffdcae4f833e1b | [
"MIT"
] | null | null | null | Files/21-Listas.py | michelelozada/Logica-de-Programacao_e_Algoritmos_em_Python | 4b2275d96d8cbf724e36a55234ffdcae4f833e1b | [
"MIT"
] | null | null | null | Files/21-Listas.py | michelelozada/Logica-de-Programacao_e_Algoritmos_em_Python | 4b2275d96d8cbf724e36a55234ffdcae4f833e1b | [
"MIT"
] | null | null | null | '''
* Listas
* Repositório: Lógica de Programação e Algoritmos em Python
* GitHub: @michelelozada
'''
# 1 - Imprima na tela uma lista de números que vá de 0 a 20.
numeros = list(range(21))
print(numeros) # Retorna: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]
# 2 - Remova da lis... | 37.542373 | 127 | 0.64763 | 811 | 4,430 | 3.535142 | 0.233046 | 0.050227 | 0.025113 | 0.033484 | 0.32473 | 0.262993 | 0.262993 | 0.262993 | 0.255668 | 0.239623 | 0 | 0.154236 | 0.197968 | 4,430 | 118 | 128 | 37.542373 | 0.652688 | 0.629345 | 0 | 0.204545 | 0 | 0 | 0.202847 | 0 | 0 | 0 | 0 | 0.008475 | 0 | 1 | 0 | false | 0 | 0.022727 | 0 | 0.022727 | 0.522727 | 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 |
a049c3b3058203f2a45e26255884c8df02160fe3 | 958 | py | Python | printChineseNumber.py | chalene/AmountInChineseWord | f349b4a3366155f3113ffb12c879fc7ab09b2134 | [
"MIT"
] | null | null | null | printChineseNumber.py | chalene/AmountInChineseWord | f349b4a3366155f3113ffb12c879fc7ab09b2134 | [
"MIT"
] | null | null | null | printChineseNumber.py | chalene/AmountInChineseWord | f349b4a3366155f3113ffb12c879fc7ab09b2134 | [
"MIT"
] | null | null | null | # coding: utf-8
'''
导入文件后直接调用方法 convertChiNum()
输入:千万以下整数,值域[0,99999999]
输出:中文大写数字
It was written by Chalene Yuan, who can be contacted via chalene.yuan[at]gmail.com
'''
d={0:'零',1:'壹',2:'贰',3:'叁',4:'肆',5:'伍',6:'陆',7:'柒',8:'捌',9:'玖'}
unit = {0:'',1:'拾',2:'佰',3:'仟',4:'万'}
def transferMoney(b,s,outOfRange):
s.append... | 20.826087 | 82 | 0.493737 | 151 | 958 | 3.07947 | 0.503311 | 0.090323 | 0.034409 | 0.086022 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.087798 | 0.298539 | 958 | 45 | 83 | 21.288889 | 0.604167 | 0.01357 | 0 | 0 | 0 | 0 | 0.034221 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.032258 | 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 |
a04a1dd697147a0be6935103780eed3fc02359df | 614 | pyde | Python | mode/examples/Topics/Vectors/AccelerationWithVectors/AccelerationWithVectors.pyde | timgates42/processing.py | 78a237922c2a928b83f4ad579dbf8d32c0099890 | [
"Apache-2.0"
] | 1,224 | 2015-01-01T22:09:23.000Z | 2022-03-29T19:43:56.000Z | mode/examples/Topics/Vectors/AccelerationWithVectors/AccelerationWithVectors.pyde | timgates42/processing.py | 78a237922c2a928b83f4ad579dbf8d32c0099890 | [
"Apache-2.0"
] | 253 | 2015-01-14T03:45:51.000Z | 2022-02-08T01:18:19.000Z | mode/examples/Topics/Vectors/AccelerationWithVectors/AccelerationWithVectors.pyde | timgates42/processing.py | 78a237922c2a928b83f4ad579dbf8d32c0099890 | [
"Apache-2.0"
] | 225 | 2015-01-13T18:38:33.000Z | 2022-03-30T20:27:39.000Z | """
Acceleration with Vectors
by Daniel Shiffman.
Demonstration of the basics of motion with vector.
A "Mover" object stores location, velocity, and acceleration as vectors The
motion is controlled by affecting the acceleration (in this case towards the
mouse)
For more examples of simulating motion and physics with ve... | 22.740741 | 76 | 0.745928 | 80 | 614 | 5.725 | 0.625 | 0.048035 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016064 | 0.188925 | 614 | 26 | 77 | 23.615385 | 0.903614 | 0.697068 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a04d7580e85c2b6d7a4650992bae290e795657e6 | 3,442 | py | Python | script.module.nanscrapers/lib/nanscrapers/scraperplugins/gostream.py | TheWardoctor/BadWolf | a86184a0bd21ffbd255ae264e3f682eff58d2eef | [
"Apache-2.0"
] | 1 | 2019-03-05T09:38:10.000Z | 2019-03-05T09:38:10.000Z | script.module.nanscrapers/lib/nanscrapers/scraperplugins/gostream.py | TheWardoctor/BadWolf | a86184a0bd21ffbd255ae264e3f682eff58d2eef | [
"Apache-2.0"
] | null | null | null | script.module.nanscrapers/lib/nanscrapers/scraperplugins/gostream.py | TheWardoctor/BadWolf | a86184a0bd21ffbd255ae264e3f682eff58d2eef | [
"Apache-2.0"
] | 1 | 2021-11-05T20:48:09.000Z | 2021-11-05T20:48:09.000Z | import re
import requests
import xbmc
from ..scraper import Scraper
from ..common import random_agent, clean_title, googletag, filter_host, clean_search
class Gostream(Scraper):
domains = ['gostream.is']
name = "gostream"
sources = []
def __init__(self):
self.base_link = 'https://gostream.is'
... | 61.464286 | 201 | 0.407031 | 326 | 3,442 | 4.211656 | 0.371166 | 0.04807 | 0.0437 | 0.03496 | 0.103423 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02576 | 0.436084 | 3,442 | 55 | 202 | 62.581818 | 0.681607 | 0.011621 | 0 | 0 | 0 | 0.019608 | 0.167698 | 0.075744 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.019608 | 0.098039 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a0528e13aa5f5ba3b5f7949090ccdf4e038b8a1f | 876 | py | Python | migrations/versions/10243a168c8c_.py | chrisba11/stock_portfolio | 6402a5614720d72fcb9d0003a14031c04e65bbfe | [
"MIT"
] | null | null | null | migrations/versions/10243a168c8c_.py | chrisba11/stock_portfolio | 6402a5614720d72fcb9d0003a14031c04e65bbfe | [
"MIT"
] | 1 | 2019-02-28T15:25:26.000Z | 2019-02-28T15:25:26.000Z | migrations/versions/10243a168c8c_.py | chrisba11/stock_portfolio | 6402a5614720d72fcb9d0003a14031c04e65bbfe | [
"MIT"
] | null | null | null | """empty message
Revision ID: 10243a168c8c
Revises: 40f69d3fd3fa
Create Date: 2019-03-06 16:15:26.654499
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '10243a168c8c'
down_revision = '40f69d3fd3fa'
branch_labels = None
depends_on = None
def upgrade():
# ... | 28.258065 | 99 | 0.72032 | 112 | 876 | 5.428571 | 0.464286 | 0.157895 | 0.197368 | 0.144737 | 0.516447 | 0.516447 | 0.516447 | 0.506579 | 0.348684 | 0.348684 | 0 | 0.066845 | 0.146119 | 876 | 30 | 100 | 29.2 | 0.745989 | 0.336758 | 0 | 0 | 0 | 0 | 0.338235 | 0.183824 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a05bd8600a508e1ee10b2bb0743af949530ca89d | 2,108 | py | Python | merchantsguide/registry.py | Musicted/merchant | dca3d71851a98044c71c7ccac23fae4a060986e3 | [
"MIT"
] | null | null | null | merchantsguide/registry.py | Musicted/merchant | dca3d71851a98044c71c7ccac23fae4a060986e3 | [
"MIT"
] | null | null | null | merchantsguide/registry.py | Musicted/merchant | dca3d71851a98044c71c7ccac23fae4a060986e3 | [
"MIT"
] | null | null | null | """
Registry
========
Keeps information on alien-Roman numeral mapping and mineral unit prices.
"""
from numbers import Number
from singleton_decorator import singleton
@singleton
class Registry:
"""
Keeps information on alien-Roman numeral mapping and mineral unit prices.
Implemented as a singleton.
... | 26.35 | 82 | 0.603416 | 235 | 2,108 | 5.340426 | 0.255319 | 0.057371 | 0.054183 | 0.041434 | 0.297211 | 0.229482 | 0.170518 | 0.111554 | 0.111554 | 0.111554 | 0 | 0 | 0.310721 | 2,108 | 79 | 83 | 26.683544 | 0.86373 | 0.429317 | 0 | 0.333333 | 0 | 0 | 0.06424 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.083333 | 0 | 0.458333 | 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 |
a063ff8d3681c3795a173e4d0bc78c20650666fb | 580 | py | Python | backend/register/signals.py | naritotakizawa/docker-django-template | b5ef15932829045edbc958a3a847780b4baae67f | [
"MIT"
] | 2 | 2021-02-05T04:16:42.000Z | 2021-02-05T12:15:51.000Z | backend/register/signals.py | naritotakizawa/docker-django-template | b5ef15932829045edbc958a3a847780b4baae67f | [
"MIT"
] | null | null | null | backend/register/signals.py | naritotakizawa/docker-django-template | b5ef15932829045edbc958a3a847780b4baae67f | [
"MIT"
] | null | null | null | import os
from django.contrib.auth import get_user_model
def create_superuser(sender, **kwargs):
User = get_user_model()
username = os.environ.get('SUPERUSER_NAME')
password = os.environ.get('SUPERUSER_PASSWORD')
if username and password:
if User.objects.filter(is_superuser=True, username=user... | 34.117647 | 78 | 0.668966 | 66 | 580 | 5.69697 | 0.469697 | 0.037234 | 0.06383 | 0.111702 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.234483 | 580 | 16 | 79 | 36.25 | 0.846847 | 0 | 0 | 0 | 0 | 0 | 0.110345 | 0.055172 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.214286 | 0.142857 | 0 | 0.214286 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a067f12bc282ab6537af034441cf7d0736d7d9c6 | 266 | py | Python | Week 4 - Jan Summary/J1_Quadrant_Section.py | Jasleenk47/BeginnerRoom-2020 | 32903f6917a236fe685106c148b8531c62210f1f | [
"Unlicense"
] | 5 | 2021-01-19T00:31:22.000Z | 2021-03-05T02:31:10.000Z | Week 4 - Jan Summary/J1_Quadrant_Section.py | Jasleenk47/BeginnerRoom-2020 | 32903f6917a236fe685106c148b8531c62210f1f | [
"Unlicense"
] | 34 | 2021-01-14T21:00:18.000Z | 2021-03-11T17:57:26.000Z | Week 4 - Jan Summary/J1_Quadrant_Section.py | Jasleenk47/BeginnerRoom-2020 | 32903f6917a236fe685106c148b8531c62210f1f | [
"Unlicense"
] | 43 | 2021-01-14T20:40:47.000Z | 2021-03-11T02:29:30.000Z | #python J1_Quadrant_Section.py
import math
x = int(input("Coordinate X: "))
y = int(input("Coordinate Y: "))
if (x > 0) and (y > 0):
print("1")
if (x < 0) and (y > 0):
print ("2")
if (x < 0) and (y < 0):
print ("3")
if (x > 0) and (y < 0):
print ("4") | 20.461538 | 32 | 0.515038 | 49 | 266 | 2.755102 | 0.408163 | 0.088889 | 0.118519 | 0.207407 | 0.414815 | 0.414815 | 0.414815 | 0 | 0 | 0 | 0 | 0.065327 | 0.25188 | 266 | 13 | 33 | 20.461538 | 0.613065 | 0.109023 | 0 | 0 | 0 | 0 | 0.135021 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.363636 | 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 |
a06c149bdaff84f7874b8a20b21a32906419ba8d | 11,298 | py | Python | src/server/oasisapi/analysis_models/tests/test_analysis_model.py | macabuag/OasisPlatform_GLP | dd0f856c58a4eee563195c68cc764b4dc5d8de13 | [
"BSD-3-Clause"
] | 36 | 2018-07-23T02:05:03.000Z | 2021-08-06T23:08:32.000Z | src/server/oasisapi/analysis_models/tests/test_analysis_model.py | macabuag/OasisPlatform_GLP | dd0f856c58a4eee563195c68cc764b4dc5d8de13 | [
"BSD-3-Clause"
] | 399 | 2018-10-01T09:10:34.000Z | 2022-03-22T16:41:25.000Z | src/server/oasisapi/analysis_models/tests/test_analysis_model.py | macabuag/OasisPlatform_GLP | dd0f856c58a4eee563195c68cc764b4dc5d8de13 | [
"BSD-3-Clause"
] | 17 | 2018-08-01T08:48:00.000Z | 2021-12-09T04:52:08.000Z | import json
import string
from backports.tempfile import TemporaryDirectory
from django.test import override_settings
from django.urls import reverse
from django_webtest import WebTest, WebTestMixin
from hypothesis import given, settings
from hypothesis.extra.django import TestCase
from hypothesis.strategies import te... | 42.473684 | 156 | 0.507789 | 1,054 | 11,298 | 5.198292 | 0.185009 | 0.027377 | 0.020077 | 0.046724 | 0.731155 | 0.685892 | 0.685709 | 0.672203 | 0.629859 | 0.604307 | 0 | 0.016177 | 0.376261 | 11,298 | 265 | 157 | 42.633962 | 0.761317 | 0.003983 | 0 | 0.548246 | 0 | 0 | 0.197404 | 0.019158 | 0 | 0 | 0 | 0 | 0.074561 | 1 | 0.035088 | false | 0 | 0.057018 | 0 | 0.100877 | 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 |
a06fdb77465f64d8066ef2ac6574ea69778d7212 | 4,557 | py | Python | src/poio/ui/Ui_NewTier.py | cidles/poio-analyzer | 64fd7327164d7d67a3615c10b047a95d5f34a2cd | [
"Apache-2.0"
] | 3 | 2017-04-07T08:20:27.000Z | 2021-01-07T20:32:24.000Z | src/poio/ui/Ui_NewTier.py | cidles/poio-analyzer | 64fd7327164d7d67a3615c10b047a95d5f34a2cd | [
"Apache-2.0"
] | null | null | null | src/poio/ui/Ui_NewTier.py | cidles/poio-analyzer | 64fd7327164d7d67a3615c10b047a95d5f34a2cd | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'NewTier.ui'
#
# Created: Tue May 28 11:30:42 2013
# by: PyQt4 UI code generator 4.9.6
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except Attribu... | 52.37931 | 108 | 0.72043 | 486 | 4,557 | 6.652263 | 0.259259 | 0.055676 | 0.081658 | 0.083514 | 0.267553 | 0.145376 | 0.083514 | 0.083514 | 0.050727 | 0.050727 | 0 | 0.033045 | 0.163265 | 4,557 | 86 | 109 | 52.988372 | 0.814844 | 0.046302 | 0 | 0.084507 | 1 | 0 | 0.077934 | 0.004842 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070423 | false | 0 | 0.014085 | 0.042254 | 0.140845 | 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 |
a071d6023739bd4ac28351543fa2b43364201bd8 | 327 | py | Python | ManipulacaoArquivos/io_v3.py | VictorMello1993/CursoPythonUdemy | d3e2e542a7c3d3f9635f2b88d0e75ab4fa84236d | [
"MIT"
] | null | null | null | ManipulacaoArquivos/io_v3.py | VictorMello1993/CursoPythonUdemy | d3e2e542a7c3d3f9635f2b88d0e75ab4fa84236d | [
"MIT"
] | 4 | 2021-04-08T21:54:09.000Z | 2022-02-10T14:35:13.000Z | ManipulacaoArquivos/io_v3.py | VictorMello1993/CursoPythonUdemy | d3e2e542a7c3d3f9635f2b88d0e75ab4fa84236d | [
"MIT"
] | null | null | null | #usando strip para eliminar espaços vazios nas bordas de uma string. Equivalente ao trim()
arquivo = open('pessoas.csv')
for linha in arquivo:
print('Nome: {}, Idade: {}'.format(*linha.strip().split(','))) #Usando * irá extrair os elementos de uma coleção de dados (lista, tuplas dicionários, sets, etc)
arquivo.... | 65.4 | 168 | 0.712538 | 46 | 327 | 5.065217 | 0.826087 | 0.042918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149847 | 327 | 5 | 169 | 65.4 | 0.83813 | 0.565749 | 0 | 0 | 0 | 0 | 0.226277 | 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 |
a079274229b2e85f78c45ed47936227ee9f697c1 | 434 | py | Python | users.py | Bertik23/bsoprihlasky | 372b37956eebcd4e919287606a6576df126b1ec2 | [
"MIT"
] | null | null | null | users.py | Bertik23/bsoprihlasky | 372b37956eebcd4e919287606a6576df126b1ec2 | [
"MIT"
] | null | null | null | users.py | Bertik23/bsoprihlasky | 372b37956eebcd4e919287606a6576df126b1ec2 | [
"MIT"
] | null | null | null | from dbconnect import connection
from classes import *
import gc
def getUser(id):
c, conn = connection()
x = c.execute("SELECT * FROM users WHERE uid = %s", [id])
if x == 0:
return None
else:
user = c.fetchone()
c.execute("SHOW COLUMNS FROM users")
labels = [i[0] for i... | 24.111111 | 61 | 0.573733 | 59 | 434 | 4.220339 | 0.627119 | 0.064257 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006557 | 0.297235 | 434 | 18 | 62 | 24.111111 | 0.809836 | 0 | 0 | 0 | 0 | 0 | 0.149425 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.066667 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a079f3ef4f741384da65e01a291e5ffea6c8f16e | 1,064 | py | Python | beacons/portal/helper/beacon_helper.py | rajatguptarg/beacons | cef2a135c7bb244413cf6d12d423e24ebb373741 | [
"MIT"
] | 1 | 2016-12-07T02:06:04.000Z | 2016-12-07T02:06:04.000Z | beacons/portal/helper/beacon_helper.py | rajatguptarg/beacons | cef2a135c7bb244413cf6d12d423e24ebb373741 | [
"MIT"
] | 29 | 2015-12-15T09:10:17.000Z | 2021-06-01T21:47:22.000Z | beacons/portal/helper/beacon_helper.py | rajatguptarg/beacons | cef2a135c7bb244413cf6d12d423e24ebb373741 | [
"MIT"
] | 4 | 2015-12-14T12:09:02.000Z | 2015-12-30T09:28:18.000Z | import base64
from beacons.portal.models import IBeacon, EddyStone
class BeaconHelper(object):
"""
Helper of Beacons
"""
@staticmethod
def create_beacon(form):
"""
Return appropiate beacon
"""
if form.get('type') == 'iBEACON':
return IBeacon(form)
... | 28 | 63 | 0.62782 | 115 | 1,064 | 5.556522 | 0.417391 | 0.131455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02584 | 0.272556 | 1,064 | 37 | 64 | 28.756757 | 0.799742 | 0.12406 | 0 | 0 | 0 | 0 | 0.016529 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
a07b9219af298b690d5303804f85a1ea3bdc0ca5 | 2,710 | py | Python | find/finder_result.py | Manu343726/biicode-common | 91b32c6fd1e4a72ce5451183f1766d313cd0e420 | [
"MIT"
] | 17 | 2015-04-15T09:40:23.000Z | 2017-05-17T20:34:49.000Z | find/finder_result.py | Manu343726/biicode-common | 91b32c6fd1e4a72ce5451183f1766d313cd0e420 | [
"MIT"
] | 2 | 2015-04-22T11:29:36.000Z | 2018-09-25T09:31:09.000Z | find/finder_result.py | bowlofstew/common | 45e9ca902be7bbbdd73dafe3ab8957bc4a006020 | [
"MIT"
] | 22 | 2015-04-15T09:46:00.000Z | 2020-09-29T17:03:31.000Z | from biicode.common.utils.serializer import Serializer, SetDeserializer
from biicode.common.model.symbolic.reference import ReferencedDependencies
from biicode.common.model.declare.declaration import Declaration
class FinderResult(object):
SERIAL_RESOLVED_KEY = "r"
SERIAL_UNRESOLVED_KEY = "u"
SERIAL_UPDA... | 38.169014 | 107 | 0.624723 | 279 | 2,710 | 5.853047 | 0.293907 | 0.047152 | 0.031231 | 0.060625 | 0.067361 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000516 | 0.28524 | 2,710 | 70 | 108 | 38.714286 | 0.84254 | 0.030996 | 0 | 0.035088 | 0 | 0 | 0.024809 | 0 | 0 | 0 | 0 | 0.014286 | 0 | 1 | 0.140351 | false | 0 | 0.052632 | 0.052632 | 0.438596 | 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 |
a08dfd8d6a1746d7c30001fd79b5164e40c77ef6 | 333 | py | Python | escapement/cli.py | willingc/escapement | a02cc5f4367acf6cbc7f0734744b5093b4b02597 | [
"MIT"
] | null | null | null | escapement/cli.py | willingc/escapement | a02cc5f4367acf6cbc7f0734744b5093b4b02597 | [
"MIT"
] | null | null | null | escapement/cli.py | willingc/escapement | a02cc5f4367acf6cbc7f0734744b5093b4b02597 | [
"MIT"
] | null | null | null | """Console script for escapement."""
import sys
import click
from .escapement import escapement
@click.command()
def main(args=None):
"""Console script for escapement."""
click.echo("Escapement: Understand your projects")
escapement()
return 0
if __name__ == "__main__":
sys.exit(main()) # prag... | 18.5 | 54 | 0.687688 | 40 | 333 | 5.525 | 0.625 | 0.117647 | 0.144796 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003676 | 0.183183 | 333 | 17 | 55 | 19.588235 | 0.808824 | 0.237237 | 0 | 0 | 0 | 0 | 0.18107 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 0 | 0.5 | 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 |
a08fbe8b3bc2749e5fc4d8d0f9ba5b5545fafa3a | 5,415 | py | Python | All State Purchase Prediction Challenge/state_purchase_baseline.py | rupakc/Kaggle-Compendium | 61634ba742f9a0239f2d1e45973c4bb477ac6306 | [
"MIT"
] | 17 | 2018-01-11T05:49:06.000Z | 2021-08-22T16:50:10.000Z | All State Purchase Prediction Challenge/state_purchase_baseline.py | Tuanlase02874/Machine-Learning-Kaggle | c31651acd8f2407d8b60774e843a2527ce19b013 | [
"MIT"
] | null | null | null | All State Purchase Prediction Challenge/state_purchase_baseline.py | Tuanlase02874/Machine-Learning-Kaggle | c31651acd8f2407d8b60774e843a2527ce19b013 | [
"MIT"
] | 8 | 2017-11-27T06:58:50.000Z | 2021-08-22T16:50:13.000Z | import pandas as pd
from sklearn.ensemble import RandomForestRegressor
from sklearn.ensemble import BaggingRegressor
from sklearn.ensemble import ExtraTreesRegressor
from sklearn.ensemble import AdaBoostRegressor
from sklearn.ensemble import GradientBoostingRegressor
from sklearn.ensemble import RandomTreesEmbedding
fr... | 38.678571 | 113 | 0.742936 | 773 | 5,415 | 4.979301 | 0.221216 | 0.023383 | 0.033255 | 0.038971 | 0.383736 | 0.359574 | 0.339049 | 0.294622 | 0.294622 | 0.286568 | 0 | 0.023679 | 0.1265 | 5,415 | 139 | 114 | 38.956835 | 0.790063 | 0.103786 | 0 | 0.19 | 0 | 0 | 0.095061 | 0.008473 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.17 | null | null | 0.09 | 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 |
a0965d39930825840a6b322b81b157154f9fa84e | 3,965 | py | Python | paul_analysis/Python/analysis/stellar_mass_function.py | lzkelley/arepo-mbh-sims_analysis | f14519552cedd39a040b53e6d7cc538b5b8f38a3 | [
"MIT"
] | null | null | null | paul_analysis/Python/analysis/stellar_mass_function.py | lzkelley/arepo-mbh-sims_analysis | f14519552cedd39a040b53e6d7cc538b5b8f38a3 | [
"MIT"
] | null | null | null | paul_analysis/Python/analysis/stellar_mass_function.py | lzkelley/arepo-mbh-sims_analysis | f14519552cedd39a040b53e6d7cc538b5b8f38a3 | [
"MIT"
] | null | null | null | import illustris
import simread.readsubfHDF5 as readsubfHDF5
import numpy as np
import matplotlib.pyplot as plt
import time
#each quantity at z=0, 1, 2, 4
#-stellar mass function
#-mean or median stellar mass as function of halo mass, for central galaxies
#-mean or median cold gas fraction (m_cold/m_star) as function ... | 42.180851 | 144 | 0.641614 | 606 | 3,965 | 4.019802 | 0.272277 | 0.085796 | 0.049261 | 0.04023 | 0.328818 | 0.273399 | 0.218391 | 0.218391 | 0.150246 | 0.122332 | 0 | 0.044749 | 0.154603 | 3,965 | 93 | 145 | 42.634409 | 0.681981 | 0.134931 | 0 | 0 | 0 | 0.031746 | 0.199297 | 0.017292 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.079365 | 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 |
a09c7bfb0c987e462763262436eb27e0e959fd81 | 543 | py | Python | setup.py | fjo27839/python-localcoinswap | bb6a004e2842ed6f3bf35b14b76130823324f563 | [
"MIT"
] | null | null | null | setup.py | fjo27839/python-localcoinswap | bb6a004e2842ed6f3bf35b14b76130823324f563 | [
"MIT"
] | null | null | null | setup.py | fjo27839/python-localcoinswap | bb6a004e2842ed6f3bf35b14b76130823324f563 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from setuptools import setup
setup(
name='python-localcoinswap',
version='0.0.1',
packages=['localcoinswap'],
description='LocalCoinSwap REST API Client in Python',
url='https://github.com/LocalCoinSwap/python-localcoinswap',
author='LocalCoinSwap',
license='MIT',
... | 28.578947 | 71 | 0.657459 | 54 | 543 | 6.592593 | 0.777778 | 0.106742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009195 | 0.198895 | 543 | 18 | 72 | 30.166667 | 0.809195 | 0.036832 | 0 | 0 | 0 | 0 | 0.542146 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.0625 | 0 | 0.0625 | 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 |
a09fb4c9c4b62518612f254b6037dca93eac7a39 | 7,677 | py | Python | Exome-pipeline/ExmAln.0b.MakeFastqTable.py | ShenLab/SPARK_Scripts | 2b846cdcc02cc29ccbaa1d1a12e788bd81ccd9a7 | [
"MIT"
] | 2 | 2020-10-29T19:47:41.000Z | 2022-03-05T08:11:44.000Z | Exome-pipeline/ExmAln.0b.MakeFastqTable.py | ShenLab/SPARK_Scripts | 2b846cdcc02cc29ccbaa1d1a12e788bd81ccd9a7 | [
"MIT"
] | null | null | null | Exome-pipeline/ExmAln.0b.MakeFastqTable.py | ShenLab/SPARK_Scripts | 2b846cdcc02cc29ccbaa1d1a12e788bd81ccd9a7 | [
"MIT"
] | 1 | 2019-12-14T14:09:24.000Z | 2019-12-14T14:09:24.000Z | #!/home/local/users/jw/bin/python2.7
# Author: jywang explorerwjy@gmail.com
#=========================================================================
# Make FastqTable According to list of fastq names
#=========================================================================
from optparse import OptionParser
import ... | 37.817734 | 146 | 0.519474 | 1,123 | 7,677 | 3.346394 | 0.15138 | 0.073443 | 0.026078 | 0.011176 | 0.405801 | 0.349654 | 0.326237 | 0.315593 | 0.286855 | 0.25173 | 0 | 0.034865 | 0.282663 | 7,677 | 202 | 147 | 38.004951 | 0.64754 | 0.122834 | 0 | 0.325301 | 0 | 0 | 0.075821 | 0.00806 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.012048 | null | null | 0.036145 | 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 |
a0a88abc77974d90dcc8e8f00042056ca84e9eb7 | 672 | py | Python | codeforces/cdf390_2b.py | knuu/competitive-programming | 16bc68fdaedd6f96ae24310d697585ca8836ab6e | [
"MIT"
] | 1 | 2018-11-12T15:18:55.000Z | 2018-11-12T15:18:55.000Z | codeforces/cdf390_2b.py | knuu/competitive-programming | 16bc68fdaedd6f96ae24310d697585ca8836ab6e | [
"MIT"
] | null | null | null | codeforces/cdf390_2b.py | knuu/competitive-programming | 16bc68fdaedd6f96ae24310d697585ca8836ab6e | [
"MIT"
] | null | null | null | N = 4
board = [input() for _ in range(4)]
for i in range(N):
for j in range(N):
cand = []
if j + 2 < N:
cand.append([board[i][j+k] for k in range(3)])
if i + 2 < N:
cand.append([board[i+k][j] for k in range(3)])
if i + 2 < N and j + 2 < N:
cand.app... | 33.6 | 84 | 0.422619 | 118 | 672 | 2.398305 | 0.228814 | 0.19788 | 0.106007 | 0.194346 | 0.583039 | 0.583039 | 0.533569 | 0.466431 | 0.399293 | 0.399293 | 0 | 0.035088 | 0.40625 | 672 | 19 | 85 | 35.368421 | 0.674185 | 0 | 0 | 0 | 0 | 0 | 0.010417 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.105263 | 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 |
a0aaf2fb604a7883140d87d881601e2cb0c619ca | 518 | py | Python | Tradable/chat/migrations/0002_thread_item.py | eddylau328/tradable | 2082da78697484761ddfb5480b28dc5e19aa0958 | [
"MIT"
] | null | null | null | Tradable/chat/migrations/0002_thread_item.py | eddylau328/tradable | 2082da78697484761ddfb5480b28dc5e19aa0958 | [
"MIT"
] | null | null | null | Tradable/chat/migrations/0002_thread_item.py | eddylau328/tradable | 2082da78697484761ddfb5480b28dc5e19aa0958 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.7 on 2019-04-07 07:12
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('items', '0008_auto_20190403_2355'),
('chat', '0001_initial'),
]
operations = [
migrations.AddField(... | 24.666667 | 121 | 0.625483 | 61 | 518 | 5.213115 | 0.688525 | 0.075472 | 0.08805 | 0.138365 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089286 | 0.243243 | 518 | 20 | 122 | 25.9 | 0.721939 | 0.086873 | 0 | 0 | 1 | 0 | 0.135881 | 0.048832 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a0ad81eacb2051d640127746adaaa04a7c609891 | 2,352 | py | Python | qastetray/qt_gui/__main__.py | Akuli/qastetray | 575f1adfb0ae8cb16534daac8a6f36e2c2babe14 | [
"MIT"
] | null | null | null | qastetray/qt_gui/__main__.py | Akuli/qastetray | 575f1adfb0ae8cb16534daac8a6f36e2c2babe14 | [
"MIT"
] | null | null | null | qastetray/qt_gui/__main__.py | Akuli/qastetray | 575f1adfb0ae8cb16534daac8a6f36e2c2babe14 | [
"MIT"
] | null | null | null | # Copyright (c) 2016 Akuli
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, ... | 33.6 | 102 | 0.71216 | 319 | 2,352 | 5.153605 | 0.492163 | 0.053528 | 0.032847 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00324 | 0.212585 | 2,352 | 69 | 103 | 34.086957 | 0.884449 | 0.529762 | 0 | 0 | 0 | 0 | 0.066047 | 0 | 0 | 0 | 0 | 0.014493 | 0 | 1 | 0.032258 | false | 0 | 0.225806 | 0 | 0.258065 | 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 |
a0b7e36f906f14443ea1dfdfdfc257de19f82153 | 392 | py | Python | research_/research/migrations/0005_paper_user.py | yadavshani67/research_paper | 61c22140dff309e4b5d7aee9147cd8547adf7ed2 | [
"Apache-2.0"
] | null | null | null | research_/research/migrations/0005_paper_user.py | yadavshani67/research_paper | 61c22140dff309e4b5d7aee9147cd8547adf7ed2 | [
"Apache-2.0"
] | null | null | null | research_/research/migrations/0005_paper_user.py | yadavshani67/research_paper | 61c22140dff309e4b5d7aee9147cd8547adf7ed2 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.2.2 on 2019-07-07 10:02
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('research', '0004_remove_paper_user'),
]
operations = [
migrations.AddField(
model_name='paper',
name='user',
... | 20.631579 | 61 | 0.596939 | 44 | 392 | 5.204545 | 0.75 | 0.017467 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075 | 0.285714 | 392 | 18 | 62 | 21.777778 | 0.742857 | 0.114796 | 0 | 0 | 1 | 0 | 0.113043 | 0.063768 | 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 |
a0bad704c5b57b931a90eb10b2e6ab872724e397 | 1,060 | py | Python | conversiontools/kml2geojson.py | JamesMilnerUK/Loxo | 6ac35c99b0919d30cf25673cbd52043a2e0d3a25 | [
"MIT"
] | 12 | 2016-02-13T14:05:56.000Z | 2016-03-01T18:06:01.000Z | conversiontools/kml2geojson.py | JamesLMilner/Loxo | 6ac35c99b0919d30cf25673cbd52043a2e0d3a25 | [
"MIT"
] | 1 | 2016-02-25T11:54:43.000Z | 2016-02-25T11:54:43.000Z | conversiontools/kml2geojson.py | JamesLMilner/Loxo | 6ac35c99b0919d30cf25673cbd52043a2e0d3a25 | [
"MIT"
] | 3 | 2016-02-20T00:28:28.000Z | 2019-07-28T09:28:08.000Z | import xml.dom.minidom as dom
from kml import kml
import json
import sys
import traceback
def kml_to_geojson(kml_file, output_name):
kml_one = dom.parse(kml_file) # parse KML file using minidom
if not output_name.endswith(".geojson"):
output_name += ".geojson"
with open( output_name, 'w') as o... | 31.176471 | 99 | 0.611321 | 144 | 1,060 | 4.291667 | 0.388889 | 0.113269 | 0.038835 | 0.042071 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009115 | 0.275472 | 1,060 | 34 | 100 | 31.176471 | 0.795573 | 0.026415 | 0 | 0 | 0 | 0 | 0.155189 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.178571 | null | null | 0.214286 | 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 |
a0bcde4a7db2cabb5ab4621271b45c391515ce17 | 587 | py | Python | PyController/Dualshock4/Dualshock4.py | danmconrad/PyController | 89f889e2dd8766addc48af1361b8115e557fd1f3 | [
"MIT"
] | null | null | null | PyController/Dualshock4/Dualshock4.py | danmconrad/PyController | 89f889e2dd8766addc48af1361b8115e557fd1f3 | [
"MIT"
] | null | null | null | PyController/Dualshock4/Dualshock4.py | danmconrad/PyController | 89f889e2dd8766addc48af1361b8115e557fd1f3 | [
"MIT"
] | null | null | null | import hid
VENDOR_ID = 1356 # 1356 == 0x054c
PRODUCT_ID = 2976 # 2976 == 0x0ba0
class Dualshock4(object):
def __init__(self):
self._open_connection()
def _open_connection(self):
try:
self._device = hid.device()
print(hid.enumerate(VENDOR_ID, PRODUCT_ID))
... | 22.576923 | 55 | 0.606474 | 73 | 587 | 4.60274 | 0.465753 | 0.071429 | 0.089286 | 0.10119 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062802 | 0.294719 | 587 | 25 | 56 | 23.48 | 0.748792 | 0.049404 | 0 | 0 | 0 | 0 | 0.03964 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.055556 | 0.055556 | 0.388889 | 0.111111 | 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 |
a0bf573201c6562ef877265910fc33570f9ef31f | 3,242 | py | Python | django_project/auth_token/api.py | duahimanshu100/basic | be92ce06fb5f4f32aa6186d2fa215d3422de6327 | [
"MIT"
] | null | null | null | django_project/auth_token/api.py | duahimanshu100/basic | be92ce06fb5f4f32aa6186d2fa215d3422de6327 | [
"MIT"
] | null | null | null | django_project/auth_token/api.py | duahimanshu100/basic | be92ce06fb5f4f32aa6186d2fa215d3422de6327 | [
"MIT"
] | null | null | null | from django.conf import settings
from .serializers import UserSerializer, UserLogoutSerializer
from rest_framework import generics, status
from django.contrib.auth import authenticate
from django_project import key_config
from .models import AuthToken
from .serializers import UserLoginSerializer
from rest_framework.res... | 39.536585 | 75 | 0.661629 | 356 | 3,242 | 5.837079 | 0.227528 | 0.058229 | 0.057748 | 0.060635 | 0.541867 | 0.466795 | 0.432146 | 0.417709 | 0.333975 | 0.333975 | 0 | 0.008656 | 0.251696 | 3,242 | 81 | 76 | 40.024691 | 0.847898 | 0 | 0 | 0.478261 | 0 | 0 | 0.027761 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0.057971 | 0.144928 | 0 | 0.391304 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
39fa9a86fc3293fd589e813bfb2b99d66eb1fbe8 | 411 | py | Python | picbiz/core/models/company.py | scottyadean/picbiz | e14bb7456936ee43d8124279456f059affd0fa16 | [
"MIT"
] | null | null | null | picbiz/core/models/company.py | scottyadean/picbiz | e14bb7456936ee43d8124279456f059affd0fa16 | [
"MIT"
] | null | null | null | picbiz/core/models/company.py | scottyadean/picbiz | e14bb7456936ee43d8124279456f059affd0fa16 | [
"MIT"
] | null | null | null | #directories
from django.db import models
class Company(models.Model):
"""
Class to represent Locations
"""
name = models.CharField("Name", max_length=255, unique=True)
description = models.CharField("Description", max_length=255, null=True, blank=True)
def __str__(sel... | 22.833333 | 96 | 0.642336 | 47 | 411 | 5.446809 | 0.638298 | 0.117188 | 0.09375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019481 | 0.250608 | 411 | 17 | 97 | 24.176471 | 0.811688 | 0.097324 | 0 | 0 | 0 | 0 | 0.067606 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0.125 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
39fc3d47abcc38a423d2382472757ce798b02c0f | 1,602 | py | Python | make_db.py | az1k-dev/MathTrainer | 3a2149554fbe760d38beed8b64b22afa498ff951 | [
"Apache-2.0"
] | null | null | null | make_db.py | az1k-dev/MathTrainer | 3a2149554fbe760d38beed8b64b22afa498ff951 | [
"Apache-2.0"
] | null | null | null | make_db.py | az1k-dev/MathTrainer | 3a2149554fbe760d38beed8b64b22afa498ff951 | [
"Apache-2.0"
] | null | null | null | import sqlite3
import os
def make_database(database_name):
sql_con = sqlite3.connect(database_name)
sql_cur = sql_con.cursor()
sql_cur.execute("""
CREATE TABLE Users (
id INTEGER PRIMARY KEY AUTOINCREMENT
NOT NULL
UNIQUE,
login ... | 26.7 | 64 | 0.513109 | 157 | 1,602 | 5.101911 | 0.382166 | 0.139825 | 0.104869 | 0.071161 | 0.292135 | 0.168539 | 0.168539 | 0.168539 | 0 | 0 | 0 | 0.005464 | 0.428839 | 1,602 | 59 | 65 | 27.152542 | 0.869945 | 0 | 0 | 0.4 | 0 | 0 | 0.758427 | 0.026841 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0.02 | 0.04 | 0 | 0.12 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
260230dfac502d12075d737929b709d668ba4655 | 4,389 | py | Python | libs/utils.py | Benjamin-Shengming/flask-vue-club | 6502e5d10d97ce32a7882ce9c1336b03ca50d4ed | [
"MIT"
] | null | null | null | libs/utils.py | Benjamin-Shengming/flask-vue-club | 6502e5d10d97ce32a7882ce9c1336b03ca50d4ed | [
"MIT"
] | null | null | null | libs/utils.py | Benjamin-Shengming/flask-vue-club | 6502e5d10d97ce32a7882ce9c1336b03ca50d4ed | [
"MIT"
] | null | null | null | #!/user/bin/python
import inspect
import json
import datetime
import calendar
from dash.exceptions import PreventUpdate
import coloredlogs, logging
from collections import OrderedDict
from random import randint
logger = logging.getLogger(__name__)
coloredlogs.install(level='DEBUG', logger=logger)
def method_log(log_... | 27.778481 | 98 | 0.670996 | 575 | 4,389 | 4.822609 | 0.293913 | 0.02921 | 0.031735 | 0.053011 | 0.284529 | 0.219618 | 0.219618 | 0.190768 | 0.166967 | 0.151821 | 0 | 0.010756 | 0.216222 | 4,389 | 157 | 99 | 27.955414 | 0.795349 | 0.024379 | 0 | 0.190083 | 0 | 0 | 0.054022 | 0 | 0 | 0 | 0 | 0 | 0.016529 | 1 | 0.214876 | false | 0.033058 | 0.066116 | 0.033058 | 0.479339 | 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 |
2603a01b4c77d87653fd23877f4def5dd1908717 | 25,613 | py | Python | dependencies/src/4Suite-XML-1.0.2/Ft/Xml/Catalog.py | aleasims/Peach | bb56841e943d719d5101fee0a503ed34308eda04 | [
"MIT"
] | null | null | null | dependencies/src/4Suite-XML-1.0.2/Ft/Xml/Catalog.py | aleasims/Peach | bb56841e943d719d5101fee0a503ed34308eda04 | [
"MIT"
] | null | null | null | dependencies/src/4Suite-XML-1.0.2/Ft/Xml/Catalog.py | aleasims/Peach | bb56841e943d719d5101fee0a503ed34308eda04 | [
"MIT"
] | 1 | 2020-07-26T03:57:45.000Z | 2020-07-26T03:57:45.000Z | ########################################################################
# $Source: /var/local/cvsroot/4Suite/Ft/Xml/Catalog.py,v $ $Revision: 1.38 $ $Date: 2006/08/12 15:56:22 $
"""
Classes and functions that help implement OASIS XML and TR9401 Catalogs.
Resolution with Catalogs is handled via the Ft.Xml.InputSource m... | 43.265203 | 156 | 0.588646 | 2,922 | 25,613 | 5.124914 | 0.174196 | 0.024841 | 0.024574 | 0.017362 | 0.490684 | 0.464841 | 0.436127 | 0.392588 | 0.365476 | 0.34384 | 0 | 0.009228 | 0.327256 | 25,613 | 591 | 157 | 43.338409 | 0.859846 | 0.322805 | 0 | 0.308725 | 0 | 0.003356 | 0.076918 | 0.00798 | 0 | 0 | 0 | 0.001692 | 0 | 0 | null | null | 0.003356 | 0.026846 | null | null | 0.003356 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.