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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
78d62e77bb5a0e308415b3859755172e2afc77ca | 11,335 | py | Python | train_classifier.py | SteveCruz/icpr-syn2real | 179065de9552673fa9d627b42044de7cd0ddd08f | [
"MIT"
] | null | null | null | train_classifier.py | SteveCruz/icpr-syn2real | 179065de9552673fa9d627b42044de7cd0ddd08f | [
"MIT"
] | null | null | null | train_classifier.py | SteveCruz/icpr-syn2real | 179065de9552673fa9d627b42044de7cd0ddd08f | [
"MIT"
] | null | null | null | ##############################################################################################################################################################
##############################################################################################################################################################
""... | 40.773381 | 230 | 0.52307 | 1,122 | 11,335 | 5.111408 | 0.258467 | 0.024935 | 0.014647 | 0.020924 | 0.260854 | 0.251264 | 0.245336 | 0.235571 | 0.195118 | 0.195118 | 0 | 0.003943 | 0.19453 | 11,335 | 278 | 231 | 40.773381 | 0.624206 | 0.165505 | 0 | 0.131783 | 0 | 0.015504 | 0.129735 | 0.008742 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031008 | false | 0 | 0.100775 | 0 | 0.155039 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
78d6a169b3036fe9e92a2cdc8970817da6e3f700 | 1,072 | py | Python | main.py | felixenzogarofalo/PrectionModel | 839b3a419d19c486bcb34207a3c583c8ece573ec | [
"MIT"
] | null | null | null | main.py | felixenzogarofalo/PrectionModel | 839b3a419d19c486bcb34207a3c583c8ece573ec | [
"MIT"
] | null | null | null | main.py | felixenzogarofalo/PrectionModel | 839b3a419d19c486bcb34207a3c583c8ece573ec | [
"MIT"
] | null | null | null | from model.utils.data_engineering import DataEngineering
from model.prediction_model.regression import Regression
# Create an instance for DataEngineering and load data from CSV
csv_path = "data/area_01.csv"
data_e = DataEngineering()
data_e.load_data(csv_path)
data_e.clean_data()
# Create new features
# "age" featur... | 25.52381 | 76 | 0.695896 | 166 | 1,072 | 4.259036 | 0.379518 | 0.106082 | 0.033946 | 0.050919 | 0.062235 | 0.062235 | 0.062235 | 0 | 0 | 0 | 0 | 0.004362 | 0.14459 | 1,072 | 41 | 77 | 26.146341 | 0.76554 | 0.198694 | 0 | 0 | 0 | 0 | 0.180212 | 0.042403 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1524c9829dea3a19277582b4ca26f8bf2c1167f1 | 324 | py | Python | Web/flask/simple2.py | kasztp/python-lessons | 2a159ad5e1186c749b96c5d0ede45b7142c6bbb5 | [
"MIT"
] | 35 | 2015-05-18T08:08:41.000Z | 2022-03-07T09:38:02.000Z | Web/flask/simple2.py | kasztp/python-lessons | 2a159ad5e1186c749b96c5d0ede45b7142c6bbb5 | [
"MIT"
] | 1 | 2021-09-29T02:08:26.000Z | 2021-09-29T02:08:26.000Z | Web/flask/simple2.py | kasztp/python-lessons | 2a159ad5e1186c749b96c5d0ede45b7142c6bbb5 | [
"MIT"
] | 40 | 2015-04-28T00:38:54.000Z | 2022-02-13T14:18:34.000Z | from random import choice
from flask import Flask, render_template
app = Flask(__name__)
@app.route("/")
def index():
fortune = choice(
'You will have good health',
'You will not have good health'
)
return render_template('simple2.html', fortune=fortune)
app.run(host='127.0.0.1', debug=Tr... | 21.6 | 59 | 0.67284 | 46 | 324 | 4.608696 | 0.630435 | 0.132075 | 0.132075 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027132 | 0.203704 | 324 | 14 | 60 | 23.142857 | 0.794574 | 0 | 0 | 0 | 0 | 0 | 0.234568 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1526ef7cf55091ee19bea03ca2f08af75d7666a3 | 2,559 | py | Python | contacts/testing/test_integration/test_audit.py | rossm6/accounts | 74633ce4038806222048d85ef9dfe97a957a6a71 | [
"MIT"
] | 11 | 2021-01-23T01:09:54.000Z | 2021-01-25T07:16:30.000Z | contacts/testing/test_integration/test_audit.py | rossm6/accounts | 74633ce4038806222048d85ef9dfe97a957a6a71 | [
"MIT"
] | 7 | 2021-04-06T18:19:10.000Z | 2021-09-22T19:45:03.000Z | contacts/testing/test_integration/test_audit.py | rossm6/accounts | 74633ce4038806222048d85ef9dfe97a957a6a71 | [
"MIT"
] | 3 | 2021-01-23T18:55:32.000Z | 2021-02-16T17:47:59.000Z | from accountancy.helpers import bulk_delete_with_history
from accountancy.signals import audit_post_delete
from contacts.models import Contact
from django.test import TestCase
from simple_history.models import HistoricalRecords
from django.db import models
class ContactAuditTests(TestCase):
"""
Check that the... | 34.581081 | 109 | 0.601798 | 287 | 2,559 | 5.160279 | 0.38676 | 0.054018 | 0.030385 | 0.028359 | 0.21607 | 0.175557 | 0.137745 | 0.082377 | 0.082377 | 0.082377 | 0 | 0.003507 | 0.331379 | 2,559 | 74 | 110 | 34.581081 | 0.862069 | 0.192653 | 0 | 0.4 | 0 | 0 | 0.105056 | 0.027528 | 0 | 0 | 0 | 0 | 0.04 | 1 | 0.08 | false | 0 | 0.12 | 0 | 0.22 | 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 | 0 | 0 | 1 | 0 |
15297f43a9cedd42da9b97021c8f787a4eb27e46 | 17,512 | py | Python | home_user/dj_iot/users/views.py | IoTree/IoTree42 | b7bb31f39add4e719a04e63cdd336983f8017137 | [
"MIT"
] | 4 | 2020-06-04T08:43:54.000Z | 2021-11-15T17:29:23.000Z | home_user/dj_iot/users/views.py | IoTree/IoTree42 | b7bb31f39add4e719a04e63cdd336983f8017137 | [
"MIT"
] | 3 | 2020-05-02T10:53:03.000Z | 2021-05-20T13:17:08.000Z | home_user/dj_iot/users/views.py | IoTree/IoTree42 | b7bb31f39add4e719a04e63cdd336983f8017137 | [
"MIT"
] | 3 | 2020-10-27T13:06:51.000Z | 2022-01-08T14:56:36.000Z |
"""
//Iotree42 sensor Network
//purpose: for handle requests and to process the wep pages
//used software: python3, django, time, datetime, rest_framework
//for hardware: Debian-Server
//design by Sebastian Stadler
//on behalf of the university of munich.
//NO WARRANTY AND NO LIABILITY
//use of the code at your own... | 39.8 | 119 | 0.600331 | 1,947 | 17,512 | 5.285054 | 0.20339 | 0.036929 | 0.027697 | 0.023324 | 0.344995 | 0.274636 | 0.233236 | 0.202041 | 0.182604 | 0.160253 | 0 | 0.006286 | 0.2914 | 17,512 | 439 | 120 | 39.890661 | 0.822951 | 0.084285 | 0 | 0.364146 | 0 | 0 | 0.152826 | 0.021073 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042017 | false | 0.011204 | 0.070028 | 0.008403 | 0.204482 | 0.005602 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
15299d729865a3bce0bda4fe56dd32f67a9cb475 | 4,506 | py | Python | art/classifiers/cnn.py | yalechang/adversarial-robustness-toolbox | df4efc86c3ed963c82687b3ab8cd5cdbd5fe5c57 | [
"MIT"
] | 1 | 2022-03-02T19:05:12.000Z | 2022-03-02T19:05:12.000Z | art/classifiers/cnn.py | yalechang/adversarial-robustness-toolbox | df4efc86c3ed963c82687b3ab8cd5cdbd5fe5c57 | [
"MIT"
] | null | null | null | art/classifiers/cnn.py | yalechang/adversarial-robustness-toolbox | df4efc86c3ed963c82687b3ab8cd5cdbd5fe5c57 | [
"MIT"
] | null | null | null | # MIT License
#
# Copyright (C) IBM Corporation 2018
#
# 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... | 42.509434 | 120 | 0.644918 | 559 | 4,506 | 5.100179 | 0.382826 | 0.034725 | 0.026307 | 0.025254 | 0.129779 | 0.115047 | 0.086286 | 0.061031 | 0.061031 | 0 | 0 | 0.017699 | 0.272747 | 4,506 | 105 | 121 | 42.914286 | 0.852304 | 0.419663 | 0 | 0.235294 | 0 | 0 | 0.072211 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.098039 | 0 | 0.215686 | 0.019608 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
152a22d4bca66cc2215242c3badf755c586421f1 | 5,380 | py | Python | promoterz/sequence/standard_loop.py | caux/japonicus | 3a9f000f1ff1eb01fa569b531ebf682dd73db90d | [
"MIT"
] | null | null | null | promoterz/sequence/standard_loop.py | caux/japonicus | 3a9f000f1ff1eb01fa569b531ebf682dd73db90d | [
"MIT"
] | null | null | null | promoterz/sequence/standard_loop.py | caux/japonicus | 3a9f000f1ff1eb01fa569b531ebf682dd73db90d | [
"MIT"
] | null | null | null | #!/bin/python
from deap import tools
from copy import deepcopy
import random
from deap import algorithms
import promoterz
import statistics
from .. import evolutionHooks
def checkPopulation(population, message):
if not (len(population)):
print(message)
def standard_loop(World, locale):
# --assertion... | 40.149254 | 113 | 0.69145 | 569 | 5,380 | 6.506151 | 0.321617 | 0.155592 | 0.053485 | 0.0443 | 0.168558 | 0.12939 | 0.070773 | 0.055105 | 0.055105 | 0 | 0 | 0.004249 | 0.212639 | 5,380 | 133 | 114 | 40.451128 | 0.869688 | 0.148699 | 0 | 0.073684 | 0 | 0 | 0.072636 | 0 | 0 | 0 | 0 | 0 | 0.063158 | 1 | 0.021053 | false | 0 | 0.073684 | 0 | 0.094737 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
152be5684baefcb1596d9ac70a5e86c1b23ee43b | 1,675 | py | Python | docs/source/conf.py | vforgione/logging2 | 9d620c14d9b5f67e3dc285082330296cf1ecbfcd | [
"MIT"
] | 25 | 2017-05-01T10:24:21.000Z | 2022-03-30T18:07:47.000Z | docs/source/conf.py | vforgione/logging2 | 9d620c14d9b5f67e3dc285082330296cf1ecbfcd | [
"MIT"
] | 8 | 2017-05-01T05:50:31.000Z | 2020-06-29T00:51:17.000Z | docs/source/conf.py | vforgione/logging2 | 9d620c14d9b5f67e3dc285082330296cf1ecbfcd | [
"MIT"
] | 4 | 2019-03-07T15:07:40.000Z | 2022-01-05T14:52:21.000Z | #!/usr/bin/env python3
import codecs
import os
import re
import sys
sys.path.insert(0, os.path.abspath("../../logging2"))
# -- General configuration ------------------------------------------------
extensions = [
"sphinx.ext.autodoc",
"sphinx_autodoc_annotation",
]
templates_path = ["_templates"]
source... | 20.180723 | 87 | 0.552836 | 152 | 1,675 | 5.907895 | 0.539474 | 0.055679 | 0.056793 | 0.057906 | 0.097996 | 0.097996 | 0 | 0 | 0 | 0 | 0 | 0.013523 | 0.161194 | 1,675 | 82 | 88 | 20.426829 | 0.625623 | 0.29194 | 0 | 0.04878 | 0 | 0 | 0.303056 | 0.021222 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.097561 | 0 | 0.097561 | 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 | 0 | 0 | 1 | 0 |
15306ffbef39ca8ee5c2ab4f5a0173b6cc547bab | 3,925 | py | Python | tox_add_factor/hooks.py | jayvdb/tox-add-factor | 38742451c74a7655592d6930f8f365574cb13ee7 | [
"MIT"
] | 1 | 2020-12-17T11:14:00.000Z | 2020-12-17T11:14:00.000Z | tox_add_factor/hooks.py | jayvdb/tox-add-factor | 38742451c74a7655592d6930f8f365574cb13ee7 | [
"MIT"
] | 3 | 2020-10-15T14:49:04.000Z | 2020-10-20T07:49:25.000Z | tox_add_factor/hooks.py | jayvdb/tox-add-factor | 38742451c74a7655592d6930f8f365574cb13ee7 | [
"MIT"
] | null | null | null | """Tox hook implementations."""
from __future__ import print_function
import os
import tox
try:
from tox.reporter import warning
except ImportError:
warning = lambda s: None
from .envlist import add_factors, AFTER, BEFORE
@tox.hookimpl
def tox_addoption(parser):
"""Add arguments."""
parser.add_arg... | 31.910569 | 103 | 0.637452 | 465 | 3,925 | 5.172043 | 0.234409 | 0.12474 | 0.150104 | 0.14553 | 0.45447 | 0.357588 | 0.230353 | 0.138877 | 0.138877 | 0.097713 | 0 | 0.006887 | 0.260127 | 3,925 | 122 | 104 | 32.172131 | 0.821281 | 0.027006 | 0 | 0.265957 | 0 | 0 | 0.161053 | 0.025263 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021277 | false | 0.021277 | 0.106383 | 0 | 0.12766 | 0.010638 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
1530d85391603c1e9fcd521da0d319ec5ab96b05 | 6,704 | py | Python | EAC-code/Commitment.py | kvakil/BulletProofLib | 0cf22deff1746c03f16c3fb62541c5c02990bb3b | [
"MIT"
] | 162 | 2017-11-17T09:46:36.000Z | 2022-03-31T09:32:28.000Z | EAC-code/Commitment.py | GENERALBYTESCOM/BulletProofLib | fd154f28c1729f7f9bd20aa6bed10c952ade4e49 | [
"MIT"
] | 2 | 2017-11-22T20:05:11.000Z | 2019-08-29T10:36:15.000Z | EAC-code/Commitment.py | GENERALBYTESCOM/BulletProofLib | fd154f28c1729f7f9bd20aa6bed10c952ade4e49 | [
"MIT"
] | 56 | 2017-11-23T05:25:43.000Z | 2022-02-23T07:53:48.000Z | from petlib.ec import EcGroup,EcPt
from petlib.ec import _FFI,_C
from petlib.bn import Bn
from hashlib import sha256
#from memory_profiler import profile
def commitment_key_gen(n, trap=None,nid=714): #713 std, 415/714
'''Generates a key for a pedersen-like multicommitment.
It outputs a ECgroup specified by n... | 35.659574 | 163 | 0.641706 | 1,030 | 6,704 | 4.065049 | 0.16699 | 0.081443 | 0.020062 | 0.040124 | 0.638405 | 0.611655 | 0.588727 | 0.558634 | 0.531884 | 0.505135 | 0 | 0.006242 | 0.211366 | 6,704 | 187 | 164 | 35.850267 | 0.785701 | 0.381116 | 0 | 0.387097 | 0 | 0 | 0.03635 | 0 | 0 | 0 | 0 | 0 | 0.010753 | 1 | 0.107527 | false | 0 | 0.043011 | 0 | 0.290323 | 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 | 0 | 0 | 1 | 0 |
15311f6820c17879300a6f94c1498f7a667b022d | 692 | py | Python | saleor/graphql/core/enums.py | acabezasg/urpi-master | 7c9cd0fbe6d89dad70652482712ca38b21ba6f84 | [
"BSD-3-Clause"
] | 1 | 2019-05-02T17:24:05.000Z | 2019-05-02T17:24:05.000Z | saleor/graphql/core/enums.py | acabezasg/urpi-master | 7c9cd0fbe6d89dad70652482712ca38b21ba6f84 | [
"BSD-3-Clause"
] | 5 | 2021-03-09T16:22:37.000Z | 2022-02-10T19:10:03.000Z | saleor/graphql/core/enums.py | acabezasg/urpi-master | 7c9cd0fbe6d89dad70652482712ca38b21ba6f84 | [
"BSD-3-Clause"
] | 1 | 2020-12-26T10:25:37.000Z | 2020-12-26T10:25:37.000Z | import graphene
from ...core import TaxRateType as CoreTaxRateType
from ...core.permissions import MODELS_PERMISSIONS
from ...core.weight import WeightUnits
from .utils import str_to_enum
class ReportingPeriod(graphene.Enum):
TODAY = 'TODAY'
THIS_MONTH = 'THIS_MONTH'
TaxRateType = graphene.Enum(
'TaxRa... | 24.714286 | 74 | 0.719653 | 83 | 692 | 5.855422 | 0.373494 | 0.041152 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008621 | 0.16185 | 692 | 27 | 75 | 25.62963 | 0.82931 | 0 | 0 | 0 | 0 | 0 | 0.080925 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.277778 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1535835675e5bdbdd9ebedbf81f869ade75e556f | 2,152 | py | Python | src/mutation_waterfall/plot.py | dohlee/python-mutation-waterfall | 642f13884986df6df82419edbbb0cb2ff396adc7 | [
"MIT"
] | 1 | 2019-05-02T01:59:35.000Z | 2019-05-02T01:59:35.000Z | src/mutation_waterfall/plot.py | dohlee/python-mutation-waterfall | 642f13884986df6df82419edbbb0cb2ff396adc7 | [
"MIT"
] | null | null | null | src/mutation_waterfall/plot.py | dohlee/python-mutation-waterfall | 642f13884986df6df82419edbbb0cb2ff396adc7 | [
"MIT"
] | 3 | 2020-08-19T19:46:28.000Z | 2021-10-17T21:03:24.000Z | import matplotlib
matplotlib.use('agg')
import matplotlib.pyplot as plt
import numpy as np
import mutation_waterfall.preprocess as preprocess
def plot(mutation_list_file, n_genes=30, ax=None, file=None):
"""Generates a waterfall plot describing mutational landscape of samples.
Args:
mutation_list_fil... | 31.647059 | 128 | 0.657528 | 315 | 2,152 | 4.371429 | 0.387302 | 0.095861 | 0.034858 | 0.021786 | 0.207698 | 0.130719 | 0.087146 | 0.045025 | 0 | 0 | 0 | 0.017119 | 0.212825 | 2,152 | 67 | 129 | 32.119403 | 0.79575 | 0.286245 | 0 | 0 | 0 | 0 | 0.023304 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.125 | 0 | 0.21875 | 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 | 0 | 0 | 1 | 0 |
1536ddab0c3e440ac09a7120c95386059693e88a | 1,730 | py | Python | leetcode/381.Insert-Delete-GetRandom-Duplicates-allowed.py | sogapalag/problems | 0ea7d65448e1177f8b3f81124a82d187980d659c | [
"MIT"
] | 1 | 2020-04-04T14:56:12.000Z | 2020-04-04T14:56:12.000Z | leetcode/381.Insert-Delete-GetRandom-Duplicates-allowed.py | sogapalag/problems | 0ea7d65448e1177f8b3f81124a82d187980d659c | [
"MIT"
] | null | null | null | leetcode/381.Insert-Delete-GetRandom-Duplicates-allowed.py | sogapalag/problems | 0ea7d65448e1177f8b3f81124a82d187980d659c | [
"MIT"
] | null | null | null | import random
from collections import defaultdict
class RandomizedCollection(object):
def __init__(self):
"""
Initialize your data structure here.
"""
self.collection = defaultdict(set)
self.element = []
def insert(self, val):
"""
Inserts ... | 30.350877 | 121 | 0.571676 | 198 | 1,730 | 4.959596 | 0.343434 | 0.145621 | 0.07332 | 0.045825 | 0.262729 | 0.209776 | 0.156823 | 0.077393 | 0 | 0 | 0 | 0.01113 | 0.324855 | 1,730 | 56 | 122 | 30.892857 | 0.829623 | 0.327168 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.076923 | 0 | 0.461538 | 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 | 0 | 0 | 1 | 0 |
15370089ce5fcb552e4d40b96066b973e9871c2f | 553 | py | Python | Python-code-snippets-201-300/287-pywebview-display-text-and-image.py | abartoha/python-snippets-ref | 04e4feada96077f0e849b277204c012194e8fbcd | [
"Unlicense"
] | null | null | null | Python-code-snippets-201-300/287-pywebview-display-text-and-image.py | abartoha/python-snippets-ref | 04e4feada96077f0e849b277204c012194e8fbcd | [
"Unlicense"
] | null | null | null | Python-code-snippets-201-300/287-pywebview-display-text-and-image.py | abartoha/python-snippets-ref | 04e4feada96077f0e849b277204c012194e8fbcd | [
"Unlicense"
] | null | null | null | """Code snippets vol-58
287-pywebview display text and image.
Requires:
pip3 install pywebview
display_txt_img.html
and model.jpg both in cwd.
Origin:
https://github.com/r0x0r/pywebview/tree/master/examples
"""
import webview
if __name__ == '__main__':
master_window = webview.create_window('Pywebview-text an... | 25.136364 | 77 | 0.59132 | 62 | 553 | 5.032258 | 0.741935 | 0.102564 | 0.076923 | 0.108974 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037135 | 0.318264 | 553 | 21 | 78 | 26.333333 | 0.790451 | 0.377939 | 0 | 0 | 0 | 0 | 0.178042 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 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 | 0 | 0 | 1 | 0 |
15385c2c32a27dc2532eed862036074f470c9bb8 | 6,861 | py | Python | nombrar_numero.py | roberpot/python-nombrar-numero | 135df1822acd0480f7bbe3602d85c1615c509c71 | [
"Apache-2.0"
] | null | null | null | nombrar_numero.py | roberpot/python-nombrar-numero | 135df1822acd0480f7bbe3602d85c1615c509c71 | [
"Apache-2.0"
] | null | null | null | nombrar_numero.py | roberpot/python-nombrar-numero | 135df1822acd0480f7bbe3602d85c1615c509c71 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (C) 2016 Roberto García Carvajal
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | 34.134328 | 80 | 0.56741 | 984 | 6,861 | 3.885163 | 0.319106 | 0.015694 | 0.011771 | 0.005493 | 0.082658 | 0.075334 | 0.075334 | 0.047083 | 0.030866 | 0.030866 | 0 | 0.039649 | 0.319924 | 6,861 | 200 | 81 | 34.305 | 0.779683 | 0.417869 | 0 | 0.144068 | 0 | 0 | 0.14852 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025424 | false | 0 | 0 | 0 | 0.059322 | 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 | 0 | 0 | 1 | 0 |
15388b76c9881d845bcff748e013ef5c592637d8 | 141,183 | py | Python | openzgy/test/black.py | equinor/pyzgy | 94cd3d9050c3027d042a83b98779da9182041137 | [
"Apache-2.0"
] | null | null | null | openzgy/test/black.py | equinor/pyzgy | 94cd3d9050c3027d042a83b98779da9182041137 | [
"Apache-2.0"
] | null | null | null | openzgy/test/black.py | equinor/pyzgy | 94cd3d9050c3027d042a83b98779da9182041137 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
"""
Black-box end to end tests for OpenZGY.
If the old ZGY-Public Python module is available, several of the
tests will be run both on the old and the new implementation to
verify that they mach. This is a bit messy. Because there are some
known bugs in the old code and some deliberate changes ... | 45.048819 | 219 | 0.613289 | 18,747 | 141,183 | 4.593802 | 0.092015 | 0.007757 | 0.011705 | 0.01902 | 0.443556 | 0.4049 | 0.365769 | 0.334638 | 0.297503 | 0.279726 | 0 | 0.053968 | 0.272242 | 141,183 | 3,133 | 220 | 45.063198 | 0.784208 | 0.305462 | 0 | 0.384931 | 0 | 0.001538 | 0.052946 | 0.002709 | 0 | 0 | 0 | 0.001277 | 0.17837 | 1 | 0.048693 | false | 0.010764 | 0.009739 | 0.001025 | 0.082522 | 0.031266 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
1539f874694fa29d5e5b0f1fdffa08f018772b5b | 3,041 | py | Python | D/D.py | budes/Exploracao-Tkinter | 594c13e8c6765dc3bc673360c423a4b47c91f197 | [
"MIT"
] | null | null | null | D/D.py | budes/Exploracao-Tkinter | 594c13e8c6765dc3bc673360c423a4b47c91f197 | [
"MIT"
] | null | null | null | D/D.py | budes/Exploracao-Tkinter | 594c13e8c6765dc3bc673360c423a4b47c91f197 | [
"MIT"
] | null | null | null | from tkinter import *
from functools import partial
from PIL import Image, ImageTk
class Calculadora():
def __init__(self):
# Coloquei a instancia Tk e o background
self.inst = Tk()
self.inst.geometry('720x1200')
self.inst['background'] = 'white'
# Fontes e imagens usadas
fonte = ('Verdana', 12, '... | 23.037879 | 78 | 0.541927 | 385 | 3,041 | 4.277922 | 0.361039 | 0.11354 | 0.136612 | 0.013358 | 0.043716 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023777 | 0.267017 | 3,041 | 132 | 79 | 23.037879 | 0.713773 | 0.11345 | 0 | 0.136364 | 0 | 0 | 0.090097 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034091 | false | 0 | 0.034091 | 0 | 0.079545 | 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 | 0 | 0 | 1 | 0 |
153c2c1e71181268aa8af58caed4e86170ecfd56 | 8,970 | py | Python | forum/views.py | RAGNAROSaa/- | 833688d556ecc70570a9b464160271ace07380d9 | [
"Apache-2.0"
] | 5 | 2016-09-25T02:59:13.000Z | 2018-07-18T05:20:58.000Z | forum/views.py | RAGNAROSaa/- | 833688d556ecc70570a9b464160271ace07380d9 | [
"Apache-2.0"
] | 1 | 2016-12-01T01:11:53.000Z | 2016-12-01T01:11:53.000Z | forum/views.py | RAGNAROSaa/- | 833688d556ecc70570a9b464160271ace07380d9 | [
"Apache-2.0"
] | 6 | 2016-09-24T02:42:57.000Z | 2016-11-10T13:35:13.000Z | from django.core.urlresolvers import reverse_lazy, reverse
from forum.models import Category, Question, Answer
from utils.mixin import AjaxableResponseMixin
from django.views.generic.edit import CreateView, UpdateView, DeleteView
from django.views.generic.list import ListView
from django.views.generic.detail import Det... | 36.024096 | 117 | 0.711037 | 1,044 | 8,970 | 5.91954 | 0.128352 | 0.018447 | 0.040777 | 0.031715 | 0.631715 | 0.579773 | 0.528317 | 0.500809 | 0.419417 | 0.345793 | 0 | 0.003653 | 0.176031 | 8,970 | 248 | 118 | 36.169355 | 0.832499 | 0 | 0 | 0.540107 | 0 | 0 | 0.102007 | 0.030212 | 0 | 0 | 0 | 0 | 0 | 1 | 0.160428 | false | 0.037433 | 0.058824 | 0.058824 | 0.780749 | 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 | 0 | 0 | 1 | 0 |
15407f3fe8f1c7f69d1779e6d91d10fdf27f7862 | 3,779 | py | Python | subprojects/sno-snapshot/src/common.py | openshift-psap/gpu-burst | cae1c71737c72caf0e980aa6361aeb0c145b4df3 | [
"Apache-2.0"
] | 1 | 2020-07-09T22:30:56.000Z | 2020-07-09T22:30:56.000Z | subprojects/sno-snapshot/src/common.py | openshift-psap/gpu-burst | cae1c71737c72caf0e980aa6361aeb0c145b4df3 | [
"Apache-2.0"
] | null | null | null | subprojects/sno-snapshot/src/common.py | openshift-psap/gpu-burst | cae1c71737c72caf0e980aa6361aeb0c145b4df3 | [
"Apache-2.0"
] | 1 | 2020-07-09T22:30:59.000Z | 2020-07-09T22:30:59.000Z | import time, datetime
import urllib3
print("Importing OpenShift/Kubernetes packages ...")
import kubernetes
import ocp_resources
import openshift
import ocp_resources.node
import ocp_resources.machine
import openshift.dynamic
print("Importing AWS boto3 ...")
import boto3
import botocore
client_k8s = None
client_... | 27.583942 | 103 | 0.663668 | 459 | 3,779 | 5.348584 | 0.294118 | 0.032994 | 0.021996 | 0.008554 | 0.19389 | 0.133605 | 0.107943 | 0.09613 | 0.052138 | 0.052138 | 0 | 0.017406 | 0.224663 | 3,779 | 136 | 104 | 27.786765 | 0.820478 | 0.02408 | 0 | 0.12766 | 0 | 0 | 0.169837 | 0.01087 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074468 | false | 0.021277 | 0.12766 | 0.010638 | 0.265957 | 0.159574 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
1545108723e1d95162092c28d39a13b5a922862e | 2,053 | py | Python | docs/examples/code/serialization.py | pombredanne/mogwai-2 | 536650c8abf5befac4269410fdfac5626be02a23 | [
"Apache-2.0"
] | 43 | 2015-09-17T14:13:17.000Z | 2017-06-18T17:45:40.000Z | docs/examples/code/serialization.py | pombredanne/mogwai-2 | 536650c8abf5befac4269410fdfac5626be02a23 | [
"Apache-2.0"
] | 20 | 2015-09-17T17:25:16.000Z | 2020-04-20T15:17:43.000Z | docs/examples/code/serialization.py | pombredanne/mogwai-2 | 536650c8abf5befac4269410fdfac5626be02a23 | [
"Apache-2.0"
] | 13 | 2015-10-12T09:35:43.000Z | 2022-01-10T23:55:12.000Z | from mogwai.connection import setup
from mogwai.models import Vertex, Edge
from mogwai import properties
from mogwai import relationships
from mogwai._compat import print_
import datetime
from pytz import utc
from functools import partial
import pickle
setup('127.0.0.1')
class OwnsObject(Edge):
label = 'owns_o... | 28.915493 | 79 | 0.758402 | 238 | 2,053 | 6.411765 | 0.306723 | 0.032765 | 0.041284 | 0.023591 | 0.104849 | 0.104849 | 0.104849 | 0.051114 | 0.051114 | 0 | 0 | 0.007412 | 0.145641 | 2,053 | 70 | 80 | 29.328571 | 0.8626 | 0.102776 | 0 | 0 | 0 | 0 | 0.117294 | 0 | 0 | 0 | 0 | 0 | 0.073171 | 1 | 0 | false | 0 | 0.219512 | 0 | 0.487805 | 0.170732 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
1545bae10e175ce363c87f5e99b847280194257d | 1,877 | py | Python | Practice_Itertools/Permutations_Combinations.py | SugaanthMohan/Python_Tools | 7772d4832fb6aa80befa7bb7961ee9a5987f7b48 | [
"Unlicense"
] | 2 | 2020-10-05T14:06:51.000Z | 2021-04-02T04:39:48.000Z | Practice_Itertools/Permutations_Combinations.py | SugaanthMohan/Python_Tools | 7772d4832fb6aa80befa7bb7961ee9a5987f7b48 | [
"Unlicense"
] | null | null | null | Practice_Itertools/Permutations_Combinations.py | SugaanthMohan/Python_Tools | 7772d4832fb6aa80befa7bb7961ee9a5987f7b48 | [
"Unlicense"
] | 1 | 2019-08-20T11:01:37.000Z | 2019-08-20T11:01:37.000Z | import itertools
def test_product_combinator(container_, repeat_times):
"""
cartesian product, equivalent to a nested for-loop
product('ABCD', repeat=2)
AA AB AC AD BA BB BC BD CA CB CC CD DA DB DC DD
"""
return list(itertools.product(container_, repeat=repeat_times))
def test_permutation_... | 24.376623 | 125 | 0.626532 | 219 | 1,877 | 5.118721 | 0.324201 | 0.135593 | 0.021409 | 0.099911 | 0.447814 | 0.438002 | 0.319358 | 0.319358 | 0.228368 | 0.228368 | 0 | 0.010234 | 0.271177 | 1,877 | 76 | 126 | 24.697368 | 0.809211 | 0.236548 | 0 | 0.083333 | 0 | 0 | 0.066468 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.027778 | 0 | 0.25 | 0.138889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
154643bad32b0b2a24af7c2c4e6381e45fcf7cf0 | 1,922 | py | Python | test/test_cram.py | Indy2222/mbg-codon-usage | d415076a8150cd712010c0389c71ef22ba9ad850 | [
"MIT"
] | null | null | null | test/test_cram.py | Indy2222/mbg-codon-usage | d415076a8150cd712010c0389c71ef22ba9ad850 | [
"MIT"
] | null | null | null | test/test_cram.py | Indy2222/mbg-codon-usage | d415076a8150cd712010c0389c71ef22ba9ad850 | [
"MIT"
] | null | null | null | from cdnu.ccds import CdsPos, load_ccds
from cdnu.cram import load_cds_list
def test_load_cds_list():
cds = load_cds_list('./test/cramExample.cram',
[CdsPos('first', [(33036411, 33036588)], '21')])
assert len(cds) is 1
single_cds = cds[0]
assert single_cds is not None
asser... | 33.137931 | 78 | 0.612383 | 270 | 1,922 | 4.188889 | 0.274074 | 0.099027 | 0.087533 | 0.049514 | 0.580018 | 0.4916 | 0.435013 | 0.392573 | 0.392573 | 0.314766 | 0 | 0.116011 | 0.233091 | 1,922 | 57 | 79 | 33.719298 | 0.651289 | 0 | 0 | 0.222222 | 0 | 0.044444 | 0.238293 | 0.194589 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.088889 | false | 0 | 0.044444 | 0 | 0.133333 | 0.044444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
15496d9beace3067196af6dad11d3e5b49c379cc | 1,033 | py | Python | setup.py | OvalMoney/horus | 90d839e9465f5089fa2632dad9f28190db3a829b | [
"MIT"
] | 2 | 2020-07-17T07:43:53.000Z | 2020-12-03T11:14:59.000Z | setup.py | OvalMoney/horus | 90d839e9465f5089fa2632dad9f28190db3a829b | [
"MIT"
] | 1 | 2020-01-27T15:49:33.000Z | 2020-01-27T15:49:33.000Z | setup.py | OvalMoney/horus | 90d839e9465f5089fa2632dad9f28190db3a829b | [
"MIT"
] | 2 | 2020-07-17T07:44:04.000Z | 2020-12-01T11:10:00.000Z | import io
from setuptools import setup, find_packages
def make_long_description():
with io.open("README.md", encoding="utf-8") as fp:
long_description = fp.read()
return long_description
setup(
name="nephthys",
description="Advanced Python Logger",
long_description=make_long_description... | 29.514286 | 76 | 0.64666 | 113 | 1,033 | 5.769912 | 0.663717 | 0.138037 | 0.058282 | 0.079755 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012107 | 0.200387 | 1,033 | 34 | 77 | 30.382353 | 0.77724 | 0 | 0 | 0 | 0 | 0 | 0.385286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.068966 | 0 | 0.137931 | 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 | 0 | 0 | 1 | 0 |
154c465ae5c00585f053431c72e2c927627c992c | 1,420 | py | Python | inlineplz/linters/rflint.py | CtrlZvi/inline-plz | 208195372a8138dce78a165dd8410a8ce15aea80 | [
"0BSD"
] | 30 | 2016-01-11T18:43:38.000Z | 2022-01-29T19:09:53.000Z | inlineplz/linters/rflint.py | CtrlZvi/inline-plz | 208195372a8138dce78a165dd8410a8ce15aea80 | [
"0BSD"
] | 237 | 2016-01-09T23:01:19.000Z | 2022-03-01T16:12:10.000Z | inlineplz/linters/rflint.py | CtrlZvi/inline-plz | 208195372a8138dce78a165dd8410a8ce15aea80 | [
"0BSD"
] | 14 | 2016-01-19T00:51:52.000Z | 2022-01-12T20:49:31.000Z | # -*- coding: utf-8 -*-
import sys
from ..decorators import linter
from ..parsers.base import ParserBase
@linter(
name="robotframework-lint",
install=[[sys.executable, "-m", "pip", "install", "-U", "robotframework-lint"]],
help_cmd=["rflint", "--help"],
run=["rflint"],
rundefault=["rflint", "-A"... | 30.212766 | 86 | 0.48169 | 124 | 1,420 | 5.370968 | 0.580645 | 0.04955 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004556 | 0.38169 | 1,420 | 46 | 87 | 30.869565 | 0.753986 | 0.030282 | 0 | 0.054054 | 0 | 0 | 0.109409 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0 | 0.081081 | 0 | 0.162162 | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
154e0a5afabdd063dcf184a1b9ec15c5e991fb02 | 6,676 | py | Python | catnip/client.py | google/catnip | 0b8c8c5f93e32931c97a561180c70c9480462717 | [
"Apache-2.0"
] | 24 | 2015-01-15T02:31:52.000Z | 2021-08-10T08:46:03.000Z | catnip/client.py | google/catnip | 0b8c8c5f93e32931c97a561180c70c9480462717 | [
"Apache-2.0"
] | 1 | 2018-01-10T08:37:02.000Z | 2018-01-10T08:45:45.000Z | catnip/client.py | google/catnip | 0b8c8c5f93e32931c97a561180c70c9480462717 | [
"Apache-2.0"
] | 11 | 2015-03-05T09:22:27.000Z | 2021-09-05T09:31:01.000Z | # Copyright 2014 Google Inc. All rights reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | 34.590674 | 80 | 0.603805 | 748 | 6,676 | 5.248663 | 0.295455 | 0.015283 | 0.030565 | 0.026745 | 0.253948 | 0.195874 | 0.169384 | 0.141875 | 0.141875 | 0.141875 | 0 | 0.004294 | 0.267525 | 6,676 | 192 | 81 | 34.770833 | 0.798569 | 0.088826 | 0 | 0.248322 | 0 | 0 | 0.109967 | 0.022302 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107383 | false | 0.013423 | 0.040268 | 0.020134 | 0.194631 | 0.013423 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
155087d21e98b773714728f3ab09117912df0457 | 1,455 | py | Python | app/models/project.py | lguobin/KB_API | f7180cf430cb8de2eac8fa78e3937666da950c7a | [
"Apache-2.0"
] | null | null | null | app/models/project.py | lguobin/KB_API | f7180cf430cb8de2eac8fa78e3937666da950c7a | [
"Apache-2.0"
] | null | null | null | app/models/project.py | lguobin/KB_API | f7180cf430cb8de2eac8fa78e3937666da950c7a | [
"Apache-2.0"
] | null | null | null | # !/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date : 2021/08/09 11:32:25
# @File : project.py
# @Author : K.B.Lam
# @Version : 1.0
from .base import _BaseModel
from app.extensions import db
from app.models.tools import get_username
class Project(_BaseModel):
__tablename__ = "Project"
__bind_ke... | 33.068182 | 99 | 0.601375 | 166 | 1,455 | 5.10241 | 0.439759 | 0.047226 | 0.094451 | 0.042503 | 0.070838 | 0.070838 | 0 | 0 | 0 | 0 | 0 | 0.026728 | 0.254296 | 1,455 | 43 | 100 | 33.837209 | 0.753917 | 0.091409 | 0 | 0 | 0 | 0 | 0.146768 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.1 | 0.033333 | 0.566667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1550c30a3bf09658744df4a415c92773c8c8951d | 5,542 | py | Python | labellab-flask/api/controllers/classificationscontroller.py | AkMo3/LabelLab | 1f16905bba1a332035d082cfc6337b8551478e05 | [
"Apache-2.0"
] | 70 | 2019-01-25T19:16:00.000Z | 2022-03-23T14:37:28.000Z | labellab-flask/api/controllers/classificationscontroller.py | AkMo3/LabelLab | 1f16905bba1a332035d082cfc6337b8551478e05 | [
"Apache-2.0"
] | 350 | 2019-01-30T10:50:34.000Z | 2022-03-31T19:58:44.000Z | labellab-flask/api/controllers/classificationscontroller.py | AkMo3/LabelLab | 1f16905bba1a332035d082cfc6337b8551478e05 | [
"Apache-2.0"
] | 140 | 2019-01-30T08:53:35.000Z | 2022-03-25T15:37:12.000Z | from flask.views import MethodView
from flask import request, make_response, jsonify, current_app
from flask_jwt_extended import (jwt_required, get_jwt_identity, get_raw_jwt)
from datetime import datetime
from api.helpers.classification import (
get_classified_data, find_by_id, find_all_by_id, save_image, save_to_... | 32.034682 | 90 | 0.576326 | 526 | 5,542 | 5.86692 | 0.230038 | 0.054439 | 0.086196 | 0.105314 | 0.415749 | 0.36455 | 0.317239 | 0.222618 | 0.222618 | 0.186325 | 0 | 0.012101 | 0.343919 | 5,542 | 172 | 91 | 32.22093 | 0.836634 | 0.071093 | 0 | 0.449612 | 0 | 0 | 0.138938 | 0.025881 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031008 | false | 0 | 0.046512 | 0 | 0.209302 | 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 | 0 | 0 | 1 | 0 |
1551ac1a6a79309991708839cd5a99e957a025cb | 6,263 | py | Python | pycdr/pycdr.py | wlchin/pycdr | 96e64a05f1b84fd01fbb003d3256e297d6492df4 | [
"MIT"
] | null | null | null | pycdr/pycdr.py | wlchin/pycdr | 96e64a05f1b84fd01fbb003d3256e297d6492df4 | [
"MIT"
] | null | null | null | pycdr/pycdr.py | wlchin/pycdr | 96e64a05f1b84fd01fbb003d3256e297d6492df4 | [
"MIT"
] | null | null | null |
import numpy as np
import scipy.sparse as ss
import logging
import time
import warnings
from .feature_selection import get_significant_genes
from .feature_selection import calculate_minmax
warnings.simplefilter("ignore")
logging.basicConfig(format='%(process)d - %(levelname)s : %(asctime)s - %(message)s', level=logg... | 31.315 | 111 | 0.653201 | 943 | 6,263 | 4.207847 | 0.299046 | 0.020161 | 0.014365 | 0.009073 | 0.114919 | 0.095766 | 0.029738 | 0.016633 | 0.016633 | 0 | 0 | 0.01367 | 0.229123 | 6,263 | 199 | 112 | 31.472362 | 0.808202 | 0.244452 | 0 | 0.049587 | 0 | 0 | 0.084889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.107438 | 0 | 0.280992 | 0.008264 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
15530d060380d749b116a3b7a27afff3e009ff61 | 1,925 | py | Python | commands.py | fivunlm/sbb8 | 9493cfb9d799b57ae4b3bb8a44672fa92736881e | [
"MIT"
] | null | null | null | commands.py | fivunlm/sbb8 | 9493cfb9d799b57ae4b3bb8a44672fa92736881e | [
"MIT"
] | null | null | null | commands.py | fivunlm/sbb8 | 9493cfb9d799b57ae4b3bb8a44672fa92736881e | [
"MIT"
] | null | null | null | import re
from feed import get_builds
def _filter_old_builds(builds):
to_remove = []
for build in builds:
for b in builds:
if b['artifact'] == build['artifact']:
partial_b_version = b['version'][:b['version'].rfind('.')]
partial_build_version = build['versi... | 32.627119 | 105 | 0.607792 | 239 | 1,925 | 4.669456 | 0.230126 | 0.078853 | 0.010753 | 0.0681 | 0.526882 | 0.526882 | 0.460573 | 0.460573 | 0.460573 | 0.460573 | 0 | 0.000689 | 0.245714 | 1,925 | 58 | 106 | 33.189655 | 0.767906 | 0 | 0 | 0.4 | 0 | 0 | 0.194805 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.044444 | 0 | 0.177778 | 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 | 0 | 0 | 1 | 0 |
15532dfb542002fe8f2372645ba607827e292a39 | 2,124 | py | Python | src/NLP/NLP.py | dinispeixoto/Kaydara | 5a22be3f9e931a00f3f3c9bcd1dbda8e1cce0b4d | [
"MIT"
] | null | null | null | src/NLP/NLP.py | dinispeixoto/Kaydara | 5a22be3f9e931a00f3f3c9bcd1dbda8e1cce0b4d | [
"MIT"
] | 3 | 2021-02-08T20:22:41.000Z | 2022-03-25T14:38:24.000Z | src/NLP/NLP.py | dinispeixoto/Kaydara | 5a22be3f9e931a00f3f3c9bcd1dbda8e1cce0b4d | [
"MIT"
] | null | null | null | from src.APIs import IBMWatsonAPI, FacebookAPI
from src.NLP import ReminderNLP, WeatherNLP, NewsNLP, GmailNLP, CalendarNLP
from src.MsgBuilder import NLPMB
from src.Models import Client
import json
# processes the client message and select the related API
def process_message(client_id, msg):
cli = Client.get_clie... | 30.782609 | 107 | 0.702919 | 261 | 2,124 | 5.509579 | 0.298851 | 0.058414 | 0.038943 | 0.025035 | 0.255911 | 0.21975 | 0.139082 | 0.139082 | 0.139082 | 0.139082 | 0 | 0.000592 | 0.204802 | 2,124 | 68 | 108 | 31.235294 | 0.850799 | 0.085217 | 0 | 0.24 | 0 | 0 | 0.073787 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.2 | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1555ea7d41c4bf7bec602435933ff7dd2f16b76a | 1,043 | py | Python | src/tale/runtime/objects.py | tale-lang/tale | 1779f94aa13545e58a1d5a8819b85ad02ada4144 | [
"MIT"
] | 17 | 2020-02-11T10:38:19.000Z | 2020-09-22T16:36:25.000Z | src/tale/runtime/objects.py | tale-lang/tale | 1779f94aa13545e58a1d5a8819b85ad02ada4144 | [
"MIT"
] | 18 | 2020-02-14T20:36:25.000Z | 2020-05-26T21:52:46.000Z | src/tale/runtime/objects.py | tale-lang/tale | 1779f94aa13545e58a1d5a8819b85ad02ada4144 | [
"MIT"
] | 1 | 2020-02-16T12:04:07.000Z | 2020-02-16T12:04:07.000Z | from typing import Any
class TaleObject:
"""A basic block of Tale's object model.
All values in Tale exist only as instances of this class.
For example, in the following expression:
x = 1
`1` is an instance of `TaleObject`.
Attributes:
type: An instance of `TaleObject` that repr... | 28.189189 | 74 | 0.685523 | 131 | 1,043 | 5.396947 | 0.40458 | 0.141443 | 0.050919 | 0.062235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00246 | 0.220518 | 1,043 | 36 | 75 | 28.972222 | 0.867159 | 0.361457 | 0 | 0 | 0 | 0 | 0.051696 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.214286 | 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 | 0 | 0 | 1 | 0 |
15584c787333f66306e7fcabad2c6a63a9103c83 | 666 | py | Python | src/genderumrevelio/misc/jsonfilter.py | Conan88/GenderumRevelio | 6e047dba990ff6c7ae05fd8ee8388487c6d32ea9 | [
"MIT"
] | null | null | null | src/genderumrevelio/misc/jsonfilter.py | Conan88/GenderumRevelio | 6e047dba990ff6c7ae05fd8ee8388487c6d32ea9 | [
"MIT"
] | null | null | null | src/genderumrevelio/misc/jsonfilter.py | Conan88/GenderumRevelio | 6e047dba990ff6c7ae05fd8ee8388487c6d32ea9 | [
"MIT"
] | null | null | null | import json
def twitterfilter(filename, outputpath="filteredtweets/", inputpath="unfilteredtweets/"):
with open(inputpath + filename + ".json", "r") as f:
data = json.load(f)
indexs = []
for i in range(0, len(data)):
if data[i]["user"].lower() != filename.lower():
... | 28.956522 | 89 | 0.548048 | 79 | 666 | 4.620253 | 0.493671 | 0.057534 | 0.09863 | 0.093151 | 0.115068 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002114 | 0.28979 | 666 | 22 | 90 | 30.272727 | 0.769556 | 0 | 0 | 0 | 0 | 0 | 0.148649 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.066667 | 0 | 0.133333 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
15590c98b9bcc040e125c855d59afa23bb2ae6d3 | 1,038 | py | Python | linear_search/test_linear_search.py | agconti/searches | 930aa4e8c7315d5db039f633b11b337aaf9920d4 | [
"MIT"
] | null | null | null | linear_search/test_linear_search.py | agconti/searches | 930aa4e8c7315d5db039f633b11b337aaf9920d4 | [
"MIT"
] | null | null | null | linear_search/test_linear_search.py | agconti/searches | 930aa4e8c7315d5db039f633b11b337aaf9920d4 | [
"MIT"
] | null | null | null | import unittest
import random
from linear_search import linear_search
class TestLinearSearch(unittest.TestCase):
def setUp(self):
self.items_length = 20
self.unsorted_values = [random.random() for i in range(self.items_length)]
self.target = random.choice(self.unsorted_values)
def te... | 32.4375 | 86 | 0.712909 | 132 | 1,038 | 5.30303 | 0.401515 | 0.137143 | 0.154286 | 0.081429 | 0.254286 | 0.148571 | 0.148571 | 0.148571 | 0.148571 | 0 | 0 | 0.003628 | 0.203276 | 1,038 | 31 | 87 | 33.483871 | 0.842805 | 0 | 0 | 0.086957 | 0 | 0 | 0.034682 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 1 | 0.173913 | false | 0 | 0.130435 | 0 | 0.347826 | 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 | 0 | 0 | 1 | 0 |
155a6708533a37b4522eab82627523cc40c0ea99 | 1,793 | py | Python | whowlong/management/commands/agspGetTrajetsAround.py | guillaut5/ttpu | 9d47f762a1064000f4443eaf12c3f843570a441e | [
"Apache-2.0"
] | null | null | null | whowlong/management/commands/agspGetTrajetsAround.py | guillaut5/ttpu | 9d47f762a1064000f4443eaf12c3f843570a441e | [
"Apache-2.0"
] | null | null | null | whowlong/management/commands/agspGetTrajetsAround.py | guillaut5/ttpu | 9d47f762a1064000f4443eaf12c3f843570a441e | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
'''
Created on 3 mars 2017
@author: guillaume
'''
from django.core.management.base import BaseCommand, CommandError
import time
import logging
from django.test.client import Client
# Create your tests here.
from whowlong.models import Place,Trajet
from whowlong.computingtools.calculator impo... | 30.389831 | 132 | 0.654769 | 197 | 1,793 | 5.903553 | 0.532995 | 0.034394 | 0.043852 | 0.032674 | 0.072227 | 0.072227 | 0.072227 | 0.072227 | 0 | 0 | 0 | 0.020999 | 0.229782 | 1,793 | 59 | 133 | 30.389831 | 0.821144 | 0.144451 | 0 | 0 | 0 | 0 | 0.166886 | 0.03088 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.275862 | 0 | 0.413793 | 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 | 0 | 0 | 1 | 0 |
155c37c9b2d90ac1125a6333fdc53a42a8125eeb | 2,759 | py | Python | ocdsmerge/util.py | open-contracting/ocds-merge | 80c7cb380d191c75f88feefd34b607bc0de13ee1 | [
"BSD-3-Clause"
] | 4 | 2017-09-06T06:14:09.000Z | 2019-07-05T13:11:40.000Z | ocdsmerge/util.py | open-contracting/ocds-merge | 80c7cb380d191c75f88feefd34b607bc0de13ee1 | [
"BSD-3-Clause"
] | 20 | 2017-11-25T02:29:41.000Z | 2020-01-08T18:45:49.000Z | ocdsmerge/util.py | open-contracting/ocds-merge | 80c7cb380d191c75f88feefd34b607bc0de13ee1 | [
"BSD-3-Clause"
] | 1 | 2018-11-07T14:05:12.000Z | 2018-11-07T14:05:12.000Z | import re
from functools import lru_cache
import requests
from ocdsmerge.exceptions import (MissingDateKeyError, NonObjectReleaseError, NonStringDateValueError,
NullDateValueError)
@lru_cache()
def get_tags():
"""
Returns the tags of all versions of OCDS in alphabetical ord... | 46.762712 | 119 | 0.631388 | 364 | 2,759 | 4.755495 | 0.315934 | 0.032351 | 0.046216 | 0.078567 | 0.440786 | 0.401502 | 0.358752 | 0.312536 | 0.285962 | 0.22877 | 0 | 0.005486 | 0.273287 | 2,759 | 58 | 120 | 47.568966 | 0.857855 | 0.119246 | 0 | 0.051282 | 0 | 0.051282 | 0.408728 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.102564 | 0 | 0.282051 | 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 | 0 | 0 | 1 | 0 |
155c3cff7ec88893e5e3afc0e765ecc9f4bcd784 | 2,566 | py | Python | geometry_analysis/tests/test_geometry_analysis.py | ErikVazquezM/geometry_analysis | f12cdd04f1d9dbb1547297aa05095aa390bd5ee0 | [
"BSD-3-Clause"
] | null | null | null | geometry_analysis/tests/test_geometry_analysis.py | ErikVazquezM/geometry_analysis | f12cdd04f1d9dbb1547297aa05095aa390bd5ee0 | [
"BSD-3-Clause"
] | null | null | null | geometry_analysis/tests/test_geometry_analysis.py | ErikVazquezM/geometry_analysis | f12cdd04f1d9dbb1547297aa05095aa390bd5ee0 | [
"BSD-3-Clause"
] | null | null | null | """
Unit and regression test for the geometry_analysis package.
"""
# Import package, test suite, and other packages as needed
import geometry_analysis
import pytest
import sys
import numpy as np
import math
@pytest.fixture()
def water_molecule():
name = "water"
symbols = ["H", "O", "H"]
coordinates = np... | 26.729167 | 84 | 0.681216 | 371 | 2,566 | 4.533693 | 0.237197 | 0.029727 | 0.017836 | 0.032105 | 0.482759 | 0.448276 | 0.347206 | 0.250297 | 0.225922 | 0.210464 | 0 | 0.048815 | 0.177709 | 2,566 | 95 | 85 | 27.010526 | 0.748341 | 0.13484 | 0 | 0.145455 | 0 | 0 | 0.024703 | 0 | 0 | 0 | 0 | 0 | 0.145455 | 1 | 0.145455 | false | 0 | 0.109091 | 0 | 0.272727 | 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 | 0 | 0 | 1 | 0 |
155d76276a8be0807befc12dbb2b607bf3e8e928 | 1,656 | py | Python | journal_venv/lib/python3.9/site-packages/cartopy/examples/regridding_arrows.py | ushham/JournalTool | f0ab9b6711b733f3c68a8a94bbb9773ffd3a95fe | [
"MIT"
] | 2 | 2020-07-29T13:23:42.000Z | 2020-10-24T08:48:13.000Z | journal_venv/lib/python3.9/site-packages/cartopy/examples/regridding_arrows.py | ushham/JournalTool | f0ab9b6711b733f3c68a8a94bbb9773ffd3a95fe | [
"MIT"
] | null | null | null | journal_venv/lib/python3.9/site-packages/cartopy/examples/regridding_arrows.py | ushham/JournalTool | f0ab9b6711b733f3c68a8a94bbb9773ffd3a95fe | [
"MIT"
] | 1 | 2022-03-10T16:12:09.000Z | 2022-03-10T16:12:09.000Z | """
Regridding vectors with quiver
------------------------------
This example demonstrates the regridding functionality in quiver (there exists
equivalent functionality in :meth:`cartopy.mpl.geoaxes.GeoAxes.barbs`).
Regridding can be an effective way of visualising a vector field, particularly
if the data is dense o... | 27.6 | 78 | 0.652174 | 245 | 1,656 | 4.314286 | 0.436735 | 0.011353 | 0.017029 | 0.018921 | 0.213813 | 0.138127 | 0.113529 | 0.113529 | 0 | 0 | 0 | 0.048302 | 0.199879 | 1,656 | 59 | 79 | 28.067797 | 0.749434 | 0.327295 | 0 | 0 | 0 | 0 | 0.051996 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.107143 | 0 | 0.214286 | 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 | 0 | 0 | 1 | 0 |
155f265672b80abeaf4e072085fcf28eb806c6db | 1,543 | py | Python | letsencrypt/client/tests/log_test.py | rivy/lets-encrypt-preview | 759e233aaa36f33c413918e8ebbf1b949af1ce5d | [
"Apache-2.0"
] | null | null | null | letsencrypt/client/tests/log_test.py | rivy/lets-encrypt-preview | 759e233aaa36f33c413918e8ebbf1b949af1ce5d | [
"Apache-2.0"
] | null | null | null | letsencrypt/client/tests/log_test.py | rivy/lets-encrypt-preview | 759e233aaa36f33c413918e8ebbf1b949af1ce5d | [
"Apache-2.0"
] | 1 | 2020-07-20T00:19:40.000Z | 2020-07-20T00:19:40.000Z | """Tests for letsencrypt.client.log."""
import unittest
import mock
class DialogHandlerTest(unittest.TestCase):
def setUp(self):
self.d = mock.MagicMock() # pylint: disable=invalid-name
from letsencrypt.client.log import DialogHandler
self.handler = DialogHandler(height=2, width=6, d=s... | 35.068182 | 79 | 0.682437 | 219 | 1,543 | 4.607306 | 0.328767 | 0.130823 | 0.074331 | 0.094153 | 0.446977 | 0.419227 | 0.367691 | 0.221011 | 0.145689 | 0.099108 | 0 | 0.050633 | 0.180817 | 1,543 | 43 | 80 | 35.883721 | 0.747627 | 0.04083 | 0 | 0 | 0 | 0 | 0.061058 | 0 | 0 | 0 | 0 | 0 | 0.3 | 1 | 0.2 | false | 0 | 0.1 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
156048287df26174870e86440b151e9aefd7c0af | 19,312 | py | Python | tests/twitter/test_fetch_savers.py | garrettc/django-ditto | fcf15beb8f9b4d61634efd4a88064df12ee16a6f | [
"MIT"
] | 54 | 2016-08-15T17:32:41.000Z | 2022-02-27T03:32:05.000Z | tests/twitter/test_fetch_savers.py | garrettc/django-ditto | fcf15beb8f9b4d61634efd4a88064df12ee16a6f | [
"MIT"
] | 229 | 2015-07-23T12:50:47.000Z | 2022-03-24T10:33:20.000Z | tests/twitter/test_fetch_savers.py | garrettc/django-ditto | fcf15beb8f9b4d61634efd4a88064df12ee16a6f | [
"MIT"
] | 8 | 2015-09-10T17:10:35.000Z | 2022-03-25T13:05:01.000Z | import datetime
from decimal import Decimal
import json
import os
import pytz
import tempfile
from unittest.mock import patch
from freezegun import freeze_time
from ditto.core.utils import datetime_now
from ditto.core.utils.downloader import DownloadException, filedownloader
from django.test import override_settings
... | 37.71875 | 116 | 0.624948 | 2,356 | 19,312 | 4.974533 | 0.212224 | 0.131826 | 0.059727 | 0.010751 | 0.405119 | 0.339761 | 0.275256 | 0.229352 | 0.219795 | 0.20256 | 0 | 0.039822 | 0.27703 | 19,312 | 511 | 117 | 37.792564 | 0.799169 | 0.110398 | 0 | 0.234536 | 0 | 0.002577 | 0.248627 | 0.026726 | 0 | 0 | 0 | 0 | 0.296392 | 1 | 0.054124 | false | 0 | 0.036082 | 0 | 0.126289 | 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 | 0 | 0 | 1 | 0 |
1566077a68f63bcb1bb1604faa0f1cbc023913fa | 4,335 | py | Python | cellrank/tl/_transition_matrix.py | WeilerP/cellrank | c8c2b9f6bd2448861fb414435aee7620ca5a0bad | [
"BSD-3-Clause"
] | 172 | 2020-03-19T19:50:53.000Z | 2022-03-28T09:36:04.000Z | cellrank/tl/_transition_matrix.py | WeilerP/cellrank | c8c2b9f6bd2448861fb414435aee7620ca5a0bad | [
"BSD-3-Clause"
] | 702 | 2020-03-19T08:09:04.000Z | 2022-03-30T09:55:14.000Z | cellrank/tl/_transition_matrix.py | WeilerP/cellrank | c8c2b9f6bd2448861fb414435aee7620ca5a0bad | [
"BSD-3-Clause"
] | 17 | 2020-04-07T03:11:02.000Z | 2022-02-02T20:39:16.000Z | from typing import Union, Callable, Iterable, Optional
from typing_extensions import Literal
from anndata import AnnData
from cellrank import logging as logg
from cellrank.ul._docs import d, inject_docs
from cellrank.tl._utils import _deprecate
from cellrank.tl.kernels import VelocityKernel, ConnectivityKernel
from ce... | 36.737288 | 112 | 0.687659 | 496 | 4,335 | 5.84879 | 0.340726 | 0.055153 | 0.04102 | 0.028956 | 0.107204 | 0.087211 | 0.087211 | 0.074457 | 0.074457 | 0.074457 | 0 | 0.004474 | 0.226528 | 4,335 | 117 | 113 | 37.051282 | 0.860722 | 0.337024 | 0 | 0.140845 | 0 | 0 | 0.098901 | 0.027106 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028169 | false | 0 | 0.140845 | 0.014085 | 0.197183 | 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 | 0 | 0 | 1 | 0 |
15673650b27d37a68700c313fcef5b17abf771b6 | 516 | py | Python | tests/users/api/test_user.py | arkhn/fhir-river | a12179c34fad131d16dedc20c61297ed83d805e6 | [
"Apache-2.0"
] | 42 | 2020-03-25T16:47:30.000Z | 2022-01-31T21:26:38.000Z | tests/users/api/test_user.py | arkhn/fhir-river | a12179c34fad131d16dedc20c61297ed83d805e6 | [
"Apache-2.0"
] | 367 | 2020-04-08T12:46:34.000Z | 2022-02-16T01:15:32.000Z | tests/users/api/test_user.py | arkhn/fhir-river | a12179c34fad131d16dedc20c61297ed83d805e6 | [
"Apache-2.0"
] | 3 | 2020-05-14T08:24:46.000Z | 2021-08-04T05:00:16.000Z | import pytest
from django.urls import reverse
pytestmark = pytest.mark.django_db
def test_retrieve_unauthenticated_user(api_client):
url = reverse("auth-user-detail")
response = api_client.get(url)
assert response.status_code == 403, response.data
@pytest.mark.as_user
def test_retrieve_authenticated... | 21.5 | 55 | 0.742248 | 71 | 516 | 5.197183 | 0.422535 | 0.097561 | 0.081301 | 0.097561 | 0.384824 | 0.384824 | 0.384824 | 0.384824 | 0.384824 | 0.384824 | 0 | 0.01373 | 0.153101 | 516 | 23 | 56 | 22.434783 | 0.830664 | 0 | 0 | 0.307692 | 0 | 0 | 0.065891 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 1 | 0.153846 | false | 0 | 0.153846 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1567d9ad382f0a244898929137268b5c664dab10 | 13,753 | py | Python | ngshare_exchange/course_management.py | lauri3k/shhhh | 92d985e5dbe4f39ab9bf8103c9ba5376e93c8af8 | [
"BSD-3-Clause"
] | 1 | 2021-03-23T04:31:38.000Z | 2021-03-23T04:31:38.000Z | ngshare_exchange/course_management.py | lauri3k/shhhh | 92d985e5dbe4f39ab9bf8103c9ba5376e93c8af8 | [
"BSD-3-Clause"
] | 6 | 2020-06-08T21:38:24.000Z | 2021-03-26T05:20:35.000Z | ngshare_exchange/course_management.py | lauri3k/shhhh | 92d985e5dbe4f39ab9bf8103c9ba5376e93c8af8 | [
"BSD-3-Clause"
] | 1 | 2021-03-23T03:17:33.000Z | 2021-03-23T03:17:33.000Z | import os
import sys
import requests
import csv
import subprocess
import json
import argparse
from urllib.parse import quote
# https://www.geeksforgeeks.org/print-colors-python-terminal/
def prRed(skk, exit=True):
print('\033[91m {}\033[00m'.format(skk))
if exit:
sys.exit(-1)
def prGreen(skk):
p... | 29.137712 | 223 | 0.609612 | 1,611 | 13,753 | 4.998759 | 0.145872 | 0.029057 | 0.046442 | 0.015646 | 0.432882 | 0.367813 | 0.302496 | 0.264994 | 0.244505 | 0.226624 | 0 | 0.004343 | 0.280157 | 13,753 | 471 | 224 | 29.199575 | 0.809091 | 0.011416 | 0 | 0.315245 | 0 | 0.002584 | 0.213965 | 0.002722 | 0 | 0 | 0 | 0 | 0 | 1 | 0.059432 | false | 0 | 0.023256 | 0.002584 | 0.113695 | 0.01292 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
156946b470a7a457642d3b02e6f6bc4fecddde64 | 1,968 | py | Python | misc/visualizer.py | jacobandreas/nmn2 | 7e42dd98420f9580fd34185ba670490a5d86fb04 | [
"Apache-2.0"
] | 427 | 2016-01-27T01:08:58.000Z | 2022-03-22T17:55:34.000Z | misc/visualizer.py | jacobandreas/nmn2 | 7e42dd98420f9580fd34185ba670490a5d86fb04 | [
"Apache-2.0"
] | 22 | 2016-06-01T15:48:36.000Z | 2017-07-27T02:07:46.000Z | misc/visualizer.py | jacobandreas/nmn2 | 7e42dd98420f9580fd34185ba670490a5d86fb04 | [
"Apache-2.0"
] | 107 | 2016-02-14T02:11:42.000Z | 2022-03-25T06:27:29.000Z | #!/usr/bin/env python2
import numpy as np
import os
import scipy
VIS_DIR = "vis"
class Visualizer:
def __init__(self):
self.active = False
def begin(self, dest, max_entries):
self.lines = []
self.active = True
self.max_entries = max_entries
self.next_entry = 0
... | 31.238095 | 105 | 0.533028 | 243 | 1,968 | 4.160494 | 0.320988 | 0.076162 | 0.118694 | 0.037587 | 0.225519 | 0.150346 | 0.051434 | 0 | 0 | 0 | 0 | 0.00304 | 0.331301 | 1,968 | 62 | 106 | 31.741935 | 0.765198 | 0.057419 | 0 | 0.142857 | 0 | 0 | 0.088505 | 0.011873 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102041 | false | 0 | 0.061224 | 0 | 0.204082 | 0.183673 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
156a1cbfdf040c739583016c1ecadb31b207e37f | 6,509 | py | Python | dnachisel/builtin_specifications/AvoidChanges.py | rfuisz/DnaChisel | 1e29a18af88ae249169743746dd4c73a4e027b19 | [
"MIT"
] | 124 | 2017-11-14T14:42:25.000Z | 2022-03-31T08:02:07.000Z | dnachisel/builtin_specifications/AvoidChanges.py | rfuisz/DnaChisel | 1e29a18af88ae249169743746dd4c73a4e027b19 | [
"MIT"
] | 65 | 2017-11-15T07:25:38.000Z | 2022-01-31T10:38:45.000Z | dnachisel/builtin_specifications/AvoidChanges.py | rfuisz/DnaChisel | 1e29a18af88ae249169743746dd4c73a4e027b19 | [
"MIT"
] | 31 | 2018-10-18T12:59:47.000Z | 2022-02-11T16:54:43.000Z | """Implementation of AvoidChanges."""
import numpy as np
from ..Specification import Specification, SpecEvaluation
# from .VoidSpecification import VoidSpecification
from ..biotools import (
sequences_differences_array,
group_nearby_indices,
)
from ..Location import Location
class AvoidChanges(Specificatio... | 35.961326 | 84 | 0.626671 | 762 | 6,509 | 5.206037 | 0.246719 | 0.057474 | 0.024956 | 0.0242 | 0.091001 | 0.052937 | 0.016637 | 0.016637 | 0 | 0 | 0 | 0.005863 | 0.292518 | 6,509 | 180 | 85 | 36.161111 | 0.855592 | 0.207252 | 0 | 0.094828 | 0 | 0 | 0.002596 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.034483 | 0.017241 | 0.275862 | 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 | 0 | 0 | 1 | 0 |
156a46a2364e4b4f08406ce869ce396572c9d10c | 2,795 | py | Python | users/views.py | samsonosiomwan/Hotels-Management-System | d37bc13faafd2cfc2f0ad4cbe56bc83b64eded36 | [
"MIT"
] | null | null | null | users/views.py | samsonosiomwan/Hotels-Management-System | d37bc13faafd2cfc2f0ad4cbe56bc83b64eded36 | [
"MIT"
] | null | null | null | users/views.py | samsonosiomwan/Hotels-Management-System | d37bc13faafd2cfc2f0ad4cbe56bc83b64eded36 | [
"MIT"
] | null | null | null | from django.contrib.auth import get_user_model
from ekohms.models import User
from django.contrib.auth.tokens import default_token_generator
from django.contrib.sites.shortcuts import get_current_site
from django.core.mail import EmailMessage
from django.http import HttpResponse
from django.shortcuts import render,redi... | 35.379747 | 107 | 0.675134 | 326 | 2,795 | 5.650307 | 0.337423 | 0.054289 | 0.036916 | 0.039088 | 0.209555 | 0.209555 | 0.190011 | 0.190011 | 0.190011 | 0.131379 | 0 | 0.005621 | 0.236136 | 2,795 | 78 | 108 | 35.833333 | 0.857143 | 0.131306 | 0 | 0.115385 | 0 | 0 | 0.122365 | 0.011162 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.230769 | 0 | 0.346154 | 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 | 0 | 0 | 1 | 0 |
156b887af38fc2be248562a6c65c5110758d7475 | 277 | py | Python | url.py | beboy01/nan-project | 0e43e2b3e3a4e34b47b8a4815312ec137572aa87 | [
"MIT"
] | null | null | null | url.py | beboy01/nan-project | 0e43e2b3e3a4e34b47b8a4815312ec137572aa87 | [
"MIT"
] | null | null | null | url.py | beboy01/nan-project | 0e43e2b3e3a4e34b47b8a4815312ec137572aa87 | [
"MIT"
] | null | null | null | ############# exo ###############
# Ne modifiez pas les variables ci-dessous
protocole = "https://"
nom_du_site = "docstring"
extension = "fr"
page = "glossaire"
# Modifiez le code à partir d'ici
URL = f"{protocole+nom_du_site+'.'+extension+'/'+page}"
print(URL) | 23.083333 | 56 | 0.595668 | 35 | 277 | 4.6 | 0.771429 | 0.062112 | 0.111801 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169675 | 277 | 12 | 57 | 23.083333 | 0.7 | 0.281588 | 0 | 0 | 0 | 0 | 0.468354 | 0.291139 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
156f0f7798172ab04ff11fbc879e1ba5277dba3b | 1,079 | py | Python | setup.py | pltoledo/py-publicbr | 84e4cf8b71754217c4814d26c4b76a397fef84fc | [
"MIT"
] | null | null | null | setup.py | pltoledo/py-publicbr | 84e4cf8b71754217c4814d26c4b76a397fef84fc | [
"MIT"
] | null | null | null | setup.py | pltoledo/py-publicbr | 84e4cf8b71754217c4814d26c4b76a397fef84fc | [
"MIT"
] | null | null | null | from setuptools import setup
with open('README.md', encoding='utf-8') as f:
long_description = f.read()
setup(
name = 'py-publicbr',
packages = ['publicbr', 'publicbr.cnpj'],
version = '0.1',
license='MIT',
description = 'Extract and consolidate Brazilian public datasets',
long_description... | 30.828571 | 81 | 0.608897 | 114 | 1,079 | 5.666667 | 0.692982 | 0.092879 | 0.058824 | 0.092879 | 0.108359 | 0.108359 | 0.108359 | 0 | 0 | 0 | 0 | 0.013317 | 0.234476 | 1,079 | 35 | 82 | 30.828571 | 0.768765 | 0 | 0 | 0.060606 | 0 | 0 | 0.443519 | 0.02037 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.030303 | 0 | 0.030303 | 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 | 0 | 0 | 1 | 0 |
1577ce3ebf29865269a0cbf508c8f0ae892e5915 | 2,545 | py | Python | src/yass/visual/soft_assignment.py | jaib1/yass | 9899c7d63c522a26b160ac7a223c794dfd3e23c6 | [
"Apache-2.0"
] | 59 | 2017-10-29T02:21:17.000Z | 2022-03-23T01:12:27.000Z | src/yass/visual/soft_assignment.py | jaib1/yass | 9899c7d63c522a26b160ac7a223c794dfd3e23c6 | [
"Apache-2.0"
] | 257 | 2017-10-25T17:11:36.000Z | 2021-10-21T19:12:00.000Z | src/yass/visual/soft_assignment.py | jaib1/yass | 9899c7d63c522a26b160ac7a223c794dfd3e23c6 | [
"Apache-2.0"
] | 24 | 2017-10-28T19:59:44.000Z | 2021-07-14T09:56:45.000Z | """Providing a class for dealing with soft assignments of spikes at the end."""
import copy as copy
import numpy as np
from tqdm import tqdm
from yass.template import WaveForms
from yass.merge.merge import template_dist_linear_align, template_spike_dist_linear_align
def get_soft_assignments(templates, templates_ups... | 34.863014 | 89 | 0.663261 | 337 | 2,545 | 4.774481 | 0.362018 | 0.065258 | 0.040398 | 0.028589 | 0.034804 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00987 | 0.243615 | 2,545 | 72 | 90 | 35.347222 | 0.825974 | 0.205501 | 0 | 0 | 0 | 0 | 0.013171 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.119048 | 0 | 0.214286 | 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 | 0 | 0 | 1 | 0 |
1577cf0ad58074e0901998c62043957a5ad89b97 | 3,473 | py | Python | wikiWebCrawler/dumpWikiExtraction.py | chrhenning/image_text_relation | 8d09483b48babe9bf90ca15a8cd67e389a0bd00c | [
"Apache-2.0"
] | null | null | null | wikiWebCrawler/dumpWikiExtraction.py | chrhenning/image_text_relation | 8d09483b48babe9bf90ca15a8cd67e389a0bd00c | [
"Apache-2.0"
] | null | null | null | wikiWebCrawler/dumpWikiExtraction.py | chrhenning/image_text_relation | 8d09483b48babe9bf90ca15a8cd67e389a0bd00c | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# Tool that dumps all the information we need from the WikiExtraction parser [1] to create our own dataset into a file, such that it is later easily accessible
# [1]: https://github.com/attardi/wikiextractor
# Important: not efficient code, but it only has to run once on simple wiki, which is sm... | 30.734513 | 159 | 0.701699 | 433 | 3,473 | 5.598152 | 0.381062 | 0.017327 | 0.016502 | 0.022277 | 0.260726 | 0.212871 | 0.175743 | 0.175743 | 0.15099 | 0.15099 | 0 | 0.003813 | 0.169306 | 3,473 | 112 | 160 | 31.008929 | 0.836395 | 0.17161 | 0 | 0.28169 | 0 | 0 | 0.166376 | 0.020579 | 0 | 0 | 0 | 0 | 0.112676 | 1 | 0.028169 | false | 0 | 0.056338 | 0 | 0.098592 | 0.014085 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
1578c4686ca3835c9e673bb51e7120e98cb9af4a | 1,127 | py | Python | mkdat.py | pachenya/MeiroPy | c11f4e1a35a1d31127fb9cb0109faae6c88dcb21 | [
"MIT"
] | null | null | null | mkdat.py | pachenya/MeiroPy | c11f4e1a35a1d31127fb9cb0109faae6c88dcb21 | [
"MIT"
] | null | null | null | mkdat.py | pachenya/MeiroPy | c11f4e1a35a1d31127fb9cb0109faae6c88dcb21 | [
"MIT"
] | null | null | null | # mkdat.py
#
# To make the list of monsters data.
#
import string
class enuming:
def __init__(self, n, namekey, ch='?'):
self.n = int(n)
self.namekey = str(namekey)
self.ch = ch = str(ch)
def DEBUGP(self):
print(self.n, self.namekey, self.ch)
class enuml:
def __init__(self, filename, debugmode=F... | 18.47541 | 51 | 0.507542 | 163 | 1,127 | 3.447853 | 0.361963 | 0.02669 | 0.039146 | 0.046263 | 0.05694 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01178 | 0.322094 | 1,127 | 60 | 52 | 18.783333 | 0.723822 | 0.038154 | 0 | 0.085106 | 0 | 0 | 0.038997 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148936 | false | 0 | 0.021277 | 0.042553 | 0.255319 | 0.06383 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
157b334c31453897c1c551b1f1fa0ea95b15795f | 20,732 | py | Python | archive/nexus-api-v2/API/Git/Lab/Schemas/Repository.py | cloud-hybrid/delta | 402b00ed5aaa32ccef628361e9635879b7ace44f | [
"BSD-3-Clause"
] | null | null | null | archive/nexus-api-v2/API/Git/Lab/Schemas/Repository.py | cloud-hybrid/delta | 402b00ed5aaa32ccef628361e9635879b7ace44f | [
"BSD-3-Clause"
] | null | null | null | archive/nexus-api-v2/API/Git/Lab/Schemas/Repository.py | cloud-hybrid/delta | 402b00ed5aaa32ccef628361e9635879b7ace44f | [
"BSD-3-Clause"
] | 1 | 2022-01-03T05:33:15.000Z | 2022-01-03T05:33:15.000Z | from . import *
from . import Base as Scheme
__module__ = __name__
Schema = Scheme.Model
class Base(Schema):
"""
...
"""
class Config(Schema.Configuration): title = "Gitlab" + "-" + "{0}".format(__module__.split(".").pop())
class Query(Base):
"""
API Search-Query Schema
"""
archive... | 29.532764 | 234 | 0.625265 | 2,077 | 20,732 | 5.966298 | 0.11844 | 0.082311 | 0.05552 | 0.07061 | 0.329567 | 0.218286 | 0.197789 | 0.166478 | 0.116043 | 0.069884 | 0 | 0.001519 | 0.269487 | 20,732 | 701 | 235 | 29.574893 | 0.816705 | 0.001592 | 0 | 0.061837 | 0 | 0.007067 | 0.309737 | 0.096064 | 0.001767 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.017668 | 0 | 0.266784 | 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 | 0 | 0 | 1 | 0 |
157f7bac2f471946f836b8c5ee08c6cfd3a2fe43 | 2,324 | py | Python | server/TenantManagementService/tenant-provisioning.py | snetty/aws-saas-factory-ref-solution-serverless-saas | 34403ac7ad74847106cc7318d54afb51932d3711 | [
"Apache-2.0",
"MIT-0"
] | 1 | 2021-07-10T22:07:16.000Z | 2021-07-10T22:07:16.000Z | server/TenantManagementService/tenant-provisioning.py | snetty/aws-saas-factory-ref-solution-serverless-saas | 34403ac7ad74847106cc7318d54afb51932d3711 | [
"Apache-2.0",
"MIT-0"
] | null | null | null | server/TenantManagementService/tenant-provisioning.py | snetty/aws-saas-factory-ref-solution-serverless-saas | 34403ac7ad74847106cc7318d54afb51932d3711 | [
"Apache-2.0",
"MIT-0"
] | null | null | null | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: MIT-0
import json
import boto3
import utils
from botocore.exceptions import ClientError
import logger
import os
from aws_lambda_powertools import Tracer
tracer = Tracer()
tenant_stack_mapping_table_name = os.environ['TENAN... | 29.794872 | 108 | 0.660069 | 241 | 2,324 | 6.124481 | 0.406639 | 0.047425 | 0.073171 | 0.062331 | 0.310976 | 0.191057 | 0.138211 | 0.088076 | 0.088076 | 0.088076 | 0 | 0.003507 | 0.263769 | 2,324 | 77 | 109 | 30.181818 | 0.859147 | 0.08778 | 0 | 0.267857 | 0 | 0 | 0.130907 | 0.025992 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.125 | 0 | 0.196429 | 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 | 0 | 0 | 1 | 0 |
157fa5c40b8382a262791d36d2b4de815c319516 | 643 | py | Python | P25034-zhaojie/week-07/homework1.py | xiaohh2016/python-25 | 8981ba89bfb32754c3f9c881ee8fcaf13332ce51 | [
"Apache-2.0"
] | 1 | 2019-09-11T23:24:58.000Z | 2019-09-11T23:24:58.000Z | P25034-zhaojie/week-07/homework1.py | xiaohh2016/python-25 | 8981ba89bfb32754c3f9c881ee8fcaf13332ce51 | [
"Apache-2.0"
] | null | null | null | P25034-zhaojie/week-07/homework1.py | xiaohh2016/python-25 | 8981ba89bfb32754c3f9c881ee8fcaf13332ce51 | [
"Apache-2.0"
] | 5 | 2019-09-11T06:33:34.000Z | 2020-02-17T12:52:31.000Z | #!/usr/bin/env python
# encoding:utf-8
# file: homework1.py
# 1、请将 "1,2,3",变成 ["1","2","3"]
# 方法1
a = '1,2,3'
print(a.split(','))
# 方法2 遍历一下
a = '1,2,3'
sep = ','
result = []
for i in range(len(a)):
if a[i] == sep:
continue
result.append(a[i])
print(result)
"""
第一种方法比较简单,略过。
第二种方法,遍历的思路是对的,但是只针对本题给出... | 15.309524 | 47 | 0.541213 | 107 | 643 | 3.205607 | 0.504673 | 0.087464 | 0.034985 | 0.023324 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074534 | 0.248834 | 643 | 41 | 48 | 15.682927 | 0.635611 | 0.178849 | 0 | 0.454545 | 0 | 0 | 0.097744 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.136364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
158093f827c44fb31f9d2b1f817125c9d5ad8bef | 575 | py | Python | code/selection_sort.py | Rustam-Z/data-structures-and-algorithms | 0ed253c433198fb6fa6d609a806f4ae7e820af06 | [
"MIT"
] | 6 | 2021-09-19T11:01:27.000Z | 2021-11-11T08:53:31.000Z | code/selection_sort.py | Rustam-Z/data-structures-and-algorithms | 0ed253c433198fb6fa6d609a806f4ae7e820af06 | [
"MIT"
] | null | null | null | code/selection_sort.py | Rustam-Z/data-structures-and-algorithms | 0ed253c433198fb6fa6d609a806f4ae7e820af06 | [
"MIT"
] | 1 | 2021-12-20T13:25:12.000Z | 2021-12-20T13:25:12.000Z | """
Selection sort algorithm implementation.
Time Complexity:
Best O(n^2)
Worst O(n^2)
Average O(n^2)
Space Complexity: O(1)
"""
def selection_sort(array):
for i in range(len(array)):
min_index = i
for j in range(i + 1, len(array)):
if array[j] < array[min_index]:
... | 23 | 63 | 0.606957 | 85 | 575 | 3.882353 | 0.435294 | 0.121212 | 0.157576 | 0.109091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033097 | 0.264348 | 575 | 24 | 64 | 23.958333 | 0.747045 | 0.229565 | 0 | 0 | 0 | 0 | 0.018391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.166667 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
158547efcb33f290119505b7dad81583331db6a6 | 885 | py | Python | pycritty/cli/install.py | binRick/pycritty | ae27e61fe597c22e6830d62533e11d64bf06a3ae | [
"MIT"
] | 159 | 2020-12-13T19:38:32.000Z | 2022-03-30T23:12:49.000Z | pycritty/cli/install.py | binRick/pycritty | ae27e61fe597c22e6830d62533e11d64bf06a3ae | [
"MIT"
] | 4 | 2021-01-10T16:31:10.000Z | 2022-02-15T17:38:51.000Z | pycritty/cli/install.py | binRick/pycritty | ae27e61fe597c22e6830d62533e11d64bf06a3ae | [
"MIT"
] | 50 | 2020-12-13T22:35:34.000Z | 2022-03-30T01:29:28.000Z | import argparse
from .pycritty import subparsers, formatter
install_parser = subparsers.add_parser(
'install',
formatter_class=formatter(),
help="Install a config file or theme from a url",
argument_default=argparse.SUPPRESS,
)
install_parser.add_argument(
'url',
help='URL where the config is... | 20.581395 | 70 | 0.680226 | 110 | 885 | 5.3 | 0.418182 | 0.111492 | 0.109777 | 0.123499 | 0.096055 | 0.096055 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183051 | 885 | 42 | 71 | 21.071429 | 0.806362 | 0 | 0 | 0.235294 | 0 | 0 | 0.329944 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.058824 | 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 | 0 | 0 | 1 | 0 |
158778c93cc9dac58b6a4fb948f20e547d063f46 | 442 | py | Python | manejo-de-excepciones.py | OscarPalominoC/PensamientoComputacionalPython | b2797475d25452c69467c7e24720671777ad3ed9 | [
"MIT"
] | null | null | null | manejo-de-excepciones.py | OscarPalominoC/PensamientoComputacionalPython | b2797475d25452c69467c7e24720671777ad3ed9 | [
"MIT"
] | null | null | null | manejo-de-excepciones.py | OscarPalominoC/PensamientoComputacionalPython | b2797475d25452c69467c7e24720671777ad3ed9 | [
"MIT"
] | null | null | null | def divide_elementos_en_lista(lista, divisor):
# Utilizando la programación defensiva para evitar que el usuario ingrese un 0 como divisor.
try:
return [i / divisor for i in lista]
except ZeroDivisionError as e:
print(e)
return 'No se puede dividir entre 0'
lista = range(10)
if __n... | 34 | 96 | 0.69457 | 61 | 442 | 4.803279 | 0.688525 | 0.102389 | 0.116041 | 0.150171 | 0.232082 | 0.232082 | 0 | 0 | 0 | 0 | 0 | 0.011662 | 0.223982 | 442 | 13 | 97 | 34 | 0.842566 | 0.20362 | 0 | 0 | 0 | 0 | 0.156695 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.3 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1588ca5cc544c21212b83dbab38deb4721020810 | 5,259 | py | Python | openomics_web/layouts/datatable_view.py | JonnyTran/open-omics | ef5db2dc2fdf486ee5e9fa4e0cf5be61b4531232 | [
"MIT"
] | 12 | 2021-01-14T19:33:48.000Z | 2022-01-06T16:13:03.000Z | openomics_web/layouts/datatable_view.py | JonnyTran/open-omics | ef5db2dc2fdf486ee5e9fa4e0cf5be61b4531232 | [
"MIT"
] | 13 | 2020-12-31T20:38:11.000Z | 2021-11-24T06:21:12.000Z | openomics_web/layouts/datatable_view.py | JonnyTran/open-omics | ef5db2dc2fdf486ee5e9fa4e0cf5be61b4531232 | [
"MIT"
] | 7 | 2021-02-08T13:42:01.000Z | 2021-10-21T21:37:14.000Z | import dash_core_components as dcc
import dash_html_components as html
import dash_table as dt
from openomics_web.utils.str_utils import longest_common_prefix
def DataTableColumnSelect(columns):
"""
Args:
columns:
"""
longest_common_prefixes = longest_common_prefix(columns)
return html.D... | 30.398844 | 86 | 0.424415 | 431 | 5,259 | 5.025522 | 0.403712 | 0.033241 | 0.018006 | 0.014774 | 0.048938 | 0.028624 | 0.028624 | 0.028624 | 0 | 0 | 0 | 0.025782 | 0.446853 | 5,259 | 172 | 87 | 30.575581 | 0.718804 | 0.043925 | 0 | 0.142857 | 0 | 0 | 0.186543 | 0.01672 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030075 | false | 0 | 0.037594 | 0.007519 | 0.105263 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
158cad16a3a956c3d72457100289dace28f8f3ee | 994 | py | Python | start.py | reddelexc/cryptoping-trader | c2b0fe1626fa985e8a1bfb84e26019a94af27c42 | [
"MIT"
] | 12 | 2019-04-12T07:13:56.000Z | 2022-03-07T06:21:18.000Z | start.py | reddelexc/cryptoping-trader | c2b0fe1626fa985e8a1bfb84e26019a94af27c42 | [
"MIT"
] | null | null | null | start.py | reddelexc/cryptoping-trader | c2b0fe1626fa985e8a1bfb84e26019a94af27c42 | [
"MIT"
] | 4 | 2021-01-29T19:28:04.000Z | 2021-12-09T01:52:12.000Z | import sys
from src import Bot, Client, Collector, \
Predictor, PredictorLearnThread, Scribe, \
Trader, TraderThreadCleaner, GarbageCleanerThread
if __name__ == '__main__':
use_proxy = len(sys.argv) > 1 and sys.argv[1] == '-p'
pool = {
'client': Client(use_proxy),
'bot': Bot(use_proxy)... | 31.0625 | 97 | 0.678068 | 105 | 994 | 6.12381 | 0.352381 | 0.037325 | 0.097978 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002491 | 0.192153 | 994 | 31 | 98 | 32.064516 | 0.798257 | 0 | 0 | 0 | 0 | 0 | 0.079477 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.08 | 0 | 0.08 | 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 | 0 | 0 | 1 | 0 |
158d3ba98e41c3cfa0005f23668ccbdb8759e04a | 5,733 | py | Python | bot/users/basedGuild.py | Trimatix-indie/SuperDeckBreaker | 6c5f0a6593df5e7f6807b1e2b09aff65dcf8a6fc | [
"MIT"
] | null | null | null | bot/users/basedGuild.py | Trimatix-indie/SuperDeckBreaker | 6c5f0a6593df5e7f6807b1e2b09aff65dcf8a6fc | [
"MIT"
] | 34 | 2021-03-20T22:42:16.000Z | 2021-09-29T15:50:31.000Z | bot/users/basedGuild.py | Trimatix-indie/SuperDeckBreaker | 6c5f0a6593df5e7f6807b1e2b09aff65dcf8a6fc | [
"MIT"
] | null | null | null | from __future__ import annotations
from typing import Dict, Union
from discord import Guild, TextChannel
import traceback
from .. import botState, lib
from ..baseClasses import serializable
from ..cfg import cfg
from ..game import sdbGame, sdbDeck
from ..reactionMenus import SDBSignupMenu
class BasedGuild(serializa... | 50.289474 | 217 | 0.664922 | 621 | 5,733 | 6.095008 | 0.280193 | 0.022193 | 0.015852 | 0.009511 | 0.233554 | 0.215059 | 0.201849 | 0.180185 | 0.163804 | 0.132629 | 0 | 0.002549 | 0.24734 | 5,733 | 113 | 218 | 50.734513 | 0.874623 | 0.171115 | 0 | 0.057971 | 0 | 0.014493 | 0.163774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.130435 | 0 | 0.231884 | 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 | 0 | 0 | 1 | 0 |
158daa9a2fa7c45f9dc4c8cd8863b5ada982780f | 8,720 | py | Python | dataspot/config/builders/network_configurator_builder.py | patrickdehoon/dataspot | f06a4606837fa3e0a8f9f679026d01a0b2bd3e37 | [
"MIT"
] | 3 | 2019-09-19T15:46:49.000Z | 2019-09-30T18:09:57.000Z | dataspot/config/builders/network_configurator_builder.py | patrickdehoon/dataspot | f06a4606837fa3e0a8f9f679026d01a0b2bd3e37 | [
"MIT"
] | null | null | null | dataspot/config/builders/network_configurator_builder.py | patrickdehoon/dataspot | f06a4606837fa3e0a8f9f679026d01a0b2bd3e37 | [
"MIT"
] | 3 | 2019-09-19T15:52:07.000Z | 2019-10-08T08:15:32.000Z | from dataspot.config.configurators.network_configurators.plot_height_configurator import PlotHeightConfigurator
from dataspot.config.configurators.network_configurators.plot_width_configurator import PlotWidthConfigurator
from dataspot.config.configurators.network_configurators.xrange_configurator import XRangeConfigur... | 43.819095 | 125 | 0.686927 | 1,061 | 8,720 | 5.441093 | 0.116871 | 0.022519 | 0.016629 | 0.03118 | 0.5815 | 0.558289 | 0.523991 | 0.498008 | 0.484843 | 0.468561 | 0 | 0 | 0.254243 | 8,720 | 198 | 126 | 44.040404 | 0.887744 | 0.39094 | 0 | 0.211765 | 0 | 0 | 0.11609 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.188235 | false | 0 | 0.070588 | 0 | 0.352941 | 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 | 0 | 0 | 1 | 0 |
1590abe2fcf4885ac2f64c9cfcad25ae46f3b4fb | 3,842 | py | Python | subdomain_takeover_tools/confirm_takeover.py | martinvw/subdomain-takeover-tools | a3899a259c88e4324e3e44a345575072dfbd4966 | [
"MIT"
] | 2 | 2022-01-19T22:24:29.000Z | 2022-01-28T07:50:49.000Z | subdomain_takeover_tools/confirm_takeover.py | martinvw/subdomain-takeover-tools | a3899a259c88e4324e3e44a345575072dfbd4966 | [
"MIT"
] | null | null | null | subdomain_takeover_tools/confirm_takeover.py | martinvw/subdomain-takeover-tools | a3899a259c88e4324e3e44a345575072dfbd4966 | [
"MIT"
] | null | null | null | import sys
from subdomain_takeover_tools.confirm_agile_crm import is_valid as agile_crm_is_valid
from subdomain_takeover_tools.confirm_azure_app_service import is_valid as azure_app_service_is_valid
from subdomain_takeover_tools.confirm_azure_edge_cdn import is_valid as azure_edge_cdn_is_valid
from subdomain_takeover_... | 37.300971 | 109 | 0.726184 | 511 | 3,842 | 5.136986 | 0.172211 | 0.122667 | 0.079238 | 0.11581 | 0.545143 | 0.462857 | 0.334857 | 0.139048 | 0.048 | 0.048 | 0 | 0.002597 | 0.198074 | 3,842 | 102 | 110 | 37.666667 | 0.8494 | 0.011973 | 0 | 0.109756 | 0 | 0 | 0.069338 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04878 | false | 0 | 0.195122 | 0 | 0.487805 | 0.012195 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
15975c5c1d59b3336b3cbfe96936dc3ab25cc893 | 5,606 | py | Python | custom_nn.py | penpy/neural-network | 5bc71577c6c13d937c036f3c7babb31f24e1cd6d | [
"MIT"
] | null | null | null | custom_nn.py | penpy/neural-network | 5bc71577c6c13d937c036f3c7babb31f24e1cd6d | [
"MIT"
] | null | null | null | custom_nn.py | penpy/neural-network | 5bc71577c6c13d937c036f3c7babb31f24e1cd6d | [
"MIT"
] | null | null | null | import numpy as np
def softmax(x):
exp_x = np.exp(x)
return exp_x / np.sum(exp_x, axis=0)
def sigmoid(x):
return 1 / (1+np.exp(-x))
def deriv_sigmoid(s):
"""Derivative of the sigmoid given the output s of the sigmoid"""
return s * (1 - s)
def relu(x):
return x * (x > 0)
def heaviside_step(... | 33.171598 | 77 | 0.587585 | 823 | 5,606 | 3.831106 | 0.18955 | 0.020932 | 0.011418 | 0.020932 | 0.23882 | 0.16746 | 0.142087 | 0.100222 | 0.053917 | 0.045036 | 0 | 0.017048 | 0.26757 | 5,606 | 169 | 78 | 33.171598 | 0.750852 | 0.071531 | 0 | 0.080645 | 0 | 0 | 0.041215 | 0.009288 | 0 | 0 | 0 | 0 | 0.008065 | 1 | 0.112903 | false | 0 | 0.008065 | 0.024194 | 0.233871 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1598b7dee19781329e09f02bed28f00c924a7fb7 | 850 | py | Python | Max/Max_0075_20200318.py | Morek999/OMSCS_Taiwan_Leetcode | 8ec18e08e9313bc3326846ca6ef6e569380a133f | [
"MIT"
] | 1 | 2020-01-08T14:10:24.000Z | 2020-01-08T14:10:24.000Z | Max/Max_0075_20200318.py | Morek999/OMSCS_Taiwan_Leetcode | 8ec18e08e9313bc3326846ca6ef6e569380a133f | [
"MIT"
] | null | null | null | Max/Max_0075_20200318.py | Morek999/OMSCS_Taiwan_Leetcode | 8ec18e08e9313bc3326846ca6ef6e569380a133f | [
"MIT"
] | null | null | null | """
75. Sort Colors
https://leetcode.com/problems/sort-colors/
Time complexity: O()
Space complexity: O()
"""
from typing import List
class Solution:
def sortColors(self, nums: List[int]) -> None:
"""
Do not return anything, modify nums in-place instead.
"""
p0 = curr... | 24.285714 | 62 | 0.445882 | 103 | 850 | 3.679612 | 0.456311 | 0.126649 | 0.126649 | 0.084433 | 0.105541 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062124 | 0.412941 | 850 | 34 | 63 | 25 | 0.697395 | 0.216471 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.05 | 0 | 0.15 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
159b88e9ded1306f1bbc757eafe9af1af8292c32 | 5,590 | py | Python | dane/document.py | CLARIAH/DANE-util | 8a3edec69be18ac3bdee476b65059409af05c1bb | [
"Apache-2.0"
] | null | null | null | dane/document.py | CLARIAH/DANE-util | 8a3edec69be18ac3bdee476b65059409af05c1bb | [
"Apache-2.0"
] | 1 | 2019-12-11T19:46:20.000Z | 2019-12-11T21:30:38.000Z | dane/document.py | CLARIAH/DANE-util | 8a3edec69be18ac3bdee476b65059409af05c1bb | [
"Apache-2.0"
] | null | null | null | # Copyright 2020-present, Netherlands Institute for Sound and Vision (Nanne van Noord)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#... | 34.9375 | 86 | 0.615742 | 705 | 5,590 | 4.797163 | 0.283688 | 0.018628 | 0.018924 | 0.023655 | 0.215849 | 0.205204 | 0.19929 | 0.133057 | 0.086931 | 0.086931 | 0 | 0.002232 | 0.278712 | 5,590 | 159 | 87 | 35.157233 | 0.836558 | 0.404651 | 0 | 0.147059 | 0 | 0 | 0.150556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.073529 | 0.014706 | 0.338235 | 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 | 0 | 0 | 1 | 0 |
159d44799a9c56a805e0bf7bdc7f5ca0be5ac255 | 3,551 | py | Python | pterygium_inference.py | SERI-EPI-DS/pterygium_detection | 5d56896cec4f154bd5e10ddf4db079b1e8d8564d | [
"MIT"
] | null | null | null | pterygium_inference.py | SERI-EPI-DS/pterygium_detection | 5d56896cec4f154bd5e10ddf4db079b1e8d8564d | [
"MIT"
] | null | null | null | pterygium_inference.py | SERI-EPI-DS/pterygium_detection | 5d56896cec4f154bd5e10ddf4db079b1e8d8564d | [
"MIT"
] | null | null | null | import argparse
import numpy as np
import pandas as pd
from tqdm import tqdm
from PIL import Image
import torch, torchvision
from torchvision import transforms
from torch.nn import functional as F
from torchvision.models.utils import load_state_dict_from_url
SEED = 123
torch.manual_seed(SEED)
torch.backends.cudnn.det... | 30.350427 | 130 | 0.62405 | 424 | 3,551 | 5.023585 | 0.367925 | 0.028169 | 0.035211 | 0.015962 | 0.034742 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009619 | 0.268093 | 3,551 | 116 | 131 | 30.612069 | 0.809927 | 0.004506 | 0 | 0 | 0 | 0.012821 | 0.140957 | 0.006227 | 0 | 0 | 0 | 0 | 0.012821 | 1 | 0.064103 | false | 0 | 0.115385 | 0 | 0.25641 | 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 | 0 | 0 | 1 | 0 |
15a23a52ff14d809f1cafc15020c2e60fa07129d | 6,578 | py | Python | db/executions_tab.py | Jaleyhd/Krama | 5f29096828fe659eccf8525ff31bc4d7a273c049 | [
"MIT"
] | null | null | null | db/executions_tab.py | Jaleyhd/Krama | 5f29096828fe659eccf8525ff31bc4d7a273c049 | [
"MIT"
] | null | null | null | db/executions_tab.py | Jaleyhd/Krama | 5f29096828fe659eccf8525ff31bc4d7a273c049 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from . import db_util
from ..proto import krama_pb2
from ..conf import common
import MySQLdb
import os
from google.protobuf import text_format
import simplejson
from ..protobufjson.protobuf_json import *
# CREATE TABLE executions_tab
# (
# exec_id INT NOT NULL AUTO_INCREMENT,
# j... | 37.375 | 113 | 0.633475 | 888 | 6,578 | 4.35473 | 0.149775 | 0.088699 | 0.039824 | 0.032583 | 0.416861 | 0.162141 | 0.15128 | 0.134213 | 0.125162 | 0.108094 | 0 | 0.009881 | 0.230769 | 6,578 | 176 | 114 | 37.375 | 0.754348 | 0.09927 | 0 | 0.12381 | 0 | 0 | 0.128231 | 0.017976 | 0 | 0 | 0 | 0 | 0 | 1 | 0.114286 | false | 0 | 0.085714 | 0 | 0.247619 | 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 | 0 | 0 | 1 | 0 |
15a5974f19858186082ef01ae0c5530964542d3d | 3,533 | py | Python | Downloader.py | PriyanshuG13/AnimeDownloader | cb5893339c8789fbedcebc73e8c1d91e8632846d | [
"MIT"
] | null | null | null | Downloader.py | PriyanshuG13/AnimeDownloader | cb5893339c8789fbedcebc73e8c1d91e8632846d | [
"MIT"
] | null | null | null | Downloader.py | PriyanshuG13/AnimeDownloader | cb5893339c8789fbedcebc73e8c1d91e8632846d | [
"MIT"
] | null | null | null | import os
import subprocess
import webbrowser
import clipboard
import requests
from bs4 import BeautifulSoup
from pyfiglet import Figlet
from Database.DatabaseManager import DatabaseManager as Animedb
class Downloader(Animedb):
def __init__(self, delay=60):
self._COLS = os.get_terminal_size().columns
... | 31.544643 | 108 | 0.546844 | 407 | 3,533 | 4.636364 | 0.346437 | 0.081611 | 0.030207 | 0.046105 | 0.18601 | 0.104928 | 0.068892 | 0.068892 | 0.068892 | 0.068892 | 0 | 0.011208 | 0.318143 | 3,533 | 111 | 109 | 31.828829 | 0.772105 | 0 | 0 | 0.237113 | 0 | 0 | 0.171243 | 0.005944 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103093 | false | 0 | 0.082474 | 0 | 0.257732 | 0.051546 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
15a7b6d2d29c51ea6c81fd90e9bae8cfd595d7fd | 924 | py | Python | figures/scripts/studentst.py | mattpitkin/GraWIToNStatisticsLectures | 09175a3a8cb3c9f0f15535d64deaef1275eac870 | [
"MIT"
] | 1 | 2018-02-09T21:01:54.000Z | 2018-02-09T21:01:54.000Z | figures/scripts/studentst.py | mattpitkin/GraWIToNStatisticsLectures | 09175a3a8cb3c9f0f15535d64deaef1275eac870 | [
"MIT"
] | null | null | null | figures/scripts/studentst.py | mattpitkin/GraWIToNStatisticsLectures | 09175a3a8cb3c9f0f15535d64deaef1275eac870 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
Make plots of the Student's t-distribution for different degrees of freedom
"""
import matplotlib.pyplot as pl
from scipy.stats import norm
from scipy.stats import t
import numpy as np
mu = 0. # the mean, mu
nus = [1., 2., 5, 10, 100] # standard deviations, sigma
markers = ['b-', 'r-', 'm-'... | 22 | 75 | 0.645022 | 166 | 924 | 3.572289 | 0.60241 | 0.020236 | 0.047218 | 0.067454 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040404 | 0.142857 | 924 | 41 | 76 | 22.536585 | 0.708333 | 0.234848 | 0 | 0 | 0 | 0 | 0.109827 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
15a91f68e5ff17be773436d601a24af7798d38aa | 9,248 | py | Python | usr/local/lib/python3.6/dist-packages/html2text/cli.py | threefoldtech/threebot_prebuilt | 1f0e1c65c14cef079cd80f73927d7c8318755c48 | [
"Apache-2.0"
] | null | null | null | usr/local/lib/python3.6/dist-packages/html2text/cli.py | threefoldtech/threebot_prebuilt | 1f0e1c65c14cef079cd80f73927d7c8318755c48 | [
"Apache-2.0"
] | null | null | null | usr/local/lib/python3.6/dist-packages/html2text/cli.py | threefoldtech/threebot_prebuilt | 1f0e1c65c14cef079cd80f73927d7c8318755c48 | [
"Apache-2.0"
] | null | null | null | import argparse
import sys
from html2text import HTML2Text, __version__, config
def main():
baseurl = ""
class bcolors:
HEADER = "\033[95m"
OKBLUE = "\033[94m"
OKGREEN = "\033[92m"
WARNING = "\033[93m"
FAIL = "\033[91m"
ENDC = "\033[0m"
BOLD = "\033[1m... | 30.123779 | 87 | 0.596453 | 1,105 | 9,248 | 4.78733 | 0.2181 | 0.024953 | 0.074858 | 0.039509 | 0.126465 | 0.086389 | 0.01758 | 0 | 0 | 0 | 0 | 0.006511 | 0.2859 | 9,248 | 306 | 88 | 30.222222 | 0.794518 | 0.001514 | 0 | 0.244068 | 0 | 0 | 0.312717 | 0.007257 | 0 | 0 | 0 | 0 | 0 | 1 | 0.00339 | false | 0.013559 | 0.010169 | 0 | 0.044068 | 0.00339 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
15aa3d879d1c430956af982477b50e91fe1a8bdc | 2,848 | py | Python | handybeam/solver.py | ultraleap/HandyBeam | 9f80b97742cde4b75d3478d554dc9bc2cd9dfd96 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2019-10-20T09:15:46.000Z | 2020-12-03T00:31:23.000Z | handybeam/solver.py | ultraleap/HandyBeam | 9f80b97742cde4b75d3478d554dc9bc2cd9dfd96 | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2020-04-04T18:36:54.000Z | 2021-10-12T22:57:34.000Z | handybeam/solver.py | ultraleap/HandyBeam | 9f80b97742cde4b75d3478d554dc9bc2cd9dfd96 | [
"ECL-2.0",
"Apache-2.0"
] | 5 | 2019-11-29T16:05:26.000Z | 2021-07-01T22:56:39.000Z | """
.. the following is a link to enable linking to this file:
.. solver_:
Contains excitation solvers.
A basic single-point-focus excitation solver is :meth:`handybeam.solver.Solver.single_focus_solver`
"""
# Imports
import warnings
warnings.warn('solver.py is obsolete - use beamformer.py instead')
import handybea... | 33.505882 | 122 | 0.589537 | 318 | 2,848 | 5.113208 | 0.305031 | 0.04059 | 0.062731 | 0.027675 | 0.252153 | 0.252153 | 0.207872 | 0.130381 | 0.130381 | 0.092251 | 0 | 0.001621 | 0.35007 | 2,848 | 84 | 123 | 33.904762 | 0.876823 | 0.505618 | 0 | 0 | 0 | 0 | 0.043401 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.117647 | 0 | 0.352941 | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
15aaa43978d8eaa0042bd4ae9f02f92ad679604f | 36,550 | py | Python | rest-service/manager_rest/deployment_update/manager.py | cloudify-cosmo/cloudify-manager | 4a3f44ceb49d449bc5ebc8766b1c7b9c174ff972 | [
"Apache-2.0"
] | 124 | 2015-01-22T22:28:37.000Z | 2022-02-26T23:12:06.000Z | rest-service/manager_rest/deployment_update/manager.py | cloudify-cosmo/cloudify-manager | 4a3f44ceb49d449bc5ebc8766b1c7b9c174ff972 | [
"Apache-2.0"
] | 345 | 2015-01-08T15:49:40.000Z | 2022-03-29T08:33:00.000Z | rest-service/manager_rest/deployment_update/manager.py | cloudify-cosmo/cloudify-manager | 4a3f44ceb49d449bc5ebc8766b1c7b9c174ff972 | [
"Apache-2.0"
] | 77 | 2015-01-07T14:04:35.000Z | 2022-03-07T22:46:00.000Z | ########
# Copyright (c) 2017-2019 Cloudify Platform Ltd. All rights reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless ... | 46.090794 | 79 | 0.601532 | 3,728 | 36,550 | 5.580204 | 0.125 | 0.03288 | 0.019997 | 0.014373 | 0.281209 | 0.2142 | 0.153199 | 0.127289 | 0.099649 | 0.087439 | 0 | 0.001124 | 0.342627 | 36,550 | 792 | 80 | 46.14899 | 0.864694 | 0.147305 | 0 | 0.153716 | 0 | 0 | 0.050104 | 0.009364 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04223 | false | 0 | 0.030405 | 0.006757 | 0.113176 | 0.033784 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
15ab520350fbf5d2df3da6de772dd557ce6bea6a | 595 | py | Python | kmeans.py | Tilmanator/Stock-Predictor | c67efa24d8c9ab65aba33280e7fc56a12ded7261 | [
"MIT"
] | null | null | null | kmeans.py | Tilmanator/Stock-Predictor | c67efa24d8c9ab65aba33280e7fc56a12ded7261 | [
"MIT"
] | null | null | null | kmeans.py | Tilmanator/Stock-Predictor | c67efa24d8c9ab65aba33280e7fc56a12ded7261 | [
"MIT"
] | null | null | null | from sklearn.cluster import KMeans
import numpy as np
import matplotlib.pyplot as plt
x = np.array([1,2,3,7,8,9])
y = np.array([7,6,7,3,2,2])
plt.scatter(x, y)
plt.show()
X = np.array(zip(x,y))
kmeans = KMeans(n_clusters=2)
kmeans.fit(X)
centroids = kmeans.cluster_centers_
labels = kmeans.labels_
colours = ['g.'... | 22.037037 | 78 | 0.635294 | 108 | 595 | 3.462963 | 0.5 | 0.05615 | 0.042781 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044834 | 0.137815 | 595 | 27 | 79 | 22.037037 | 0.684211 | 0.042017 | 0 | 0.111111 | 0 | 0 | 0.033392 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
15b0920b82c1636984d52cd2a1a47d2d9c032561 | 14,288 | py | Python | dataproxy/implementations.py | peerplays-network/bos-dataproxy | ff19ce97981a10d8ff8d6ad3ed6afe7b4cdd42fc | [
"MIT"
] | 6 | 2019-12-05T18:37:33.000Z | 2019-12-20T17:58:32.000Z | dataproxy/implementations.py | peerplays-network/bos-dataproxy | ff19ce97981a10d8ff8d6ad3ed6afe7b4cdd42fc | [
"MIT"
] | 2 | 2019-08-06T10:40:45.000Z | 2020-02-21T14:14:12.000Z | dataproxy/implementations.py | peerplays-network/bos-dataproxy | ff19ce97981a10d8ff8d6ad3ed6afe7b4cdd42fc | [
"MIT"
] | 1 | 2019-07-01T13:25:15.000Z | 2019-07-01T13:25:15.000Z | import logging
from .processors import JsonProcessor
from . import Config
from .stores import IncidentFileStore, RawStore, ProcessedFileStore
from .routes.push import PushReceiver
import json
from bos_incidents.exceptions import DuplicateIncidentException
import threading
import time
from strict_rfc3339 import Inval... | 42.778443 | 206 | 0.569219 | 1,439 | 14,288 | 5.366921 | 0.166782 | 0.049722 | 0.062152 | 0.039881 | 0.300401 | 0.240839 | 0.213 | 0.200181 | 0.160171 | 0.135181 | 0 | 0.012278 | 0.338746 | 14,288 | 333 | 207 | 42.906907 | 0.805144 | 0.068239 | 0 | 0.241509 | 0 | 0 | 0.114557 | 0.004591 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018868 | false | 0.018868 | 0.060377 | 0 | 0.101887 | 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 | 0 | 0 | 1 | 0 |
15b670262fd9d1d5bb5bbf2c9ec8c0581b614760 | 4,418 | py | Python | main.py | kantegory/accreditation_system | d5595b265788cf9b63431650d2911695ad737038 | [
"MIT"
] | null | null | null | main.py | kantegory/accreditation_system | d5595b265788cf9b63431650d2911695ad737038 | [
"MIT"
] | 4 | 2020-04-16T17:52:37.000Z | 2021-12-13T20:35:51.000Z | main.py | kantegory/accreditation_system | d5595b265788cf9b63431650d2911695ad737038 | [
"MIT"
] | 1 | 2020-04-07T06:18:40.000Z | 2020-04-07T06:18:40.000Z | import bottle
from bottle import request, route, template, auth_basic, redirect
from utils.db_helper import create_blank
from utils.db_manage import get_all_blanks, get_all_questions_by_token, \
get_blank_id_by_token, add_new_users_answers, \
get_blank_info_by_token, get_report_by_token, get_all_standards_by_to... | 29.851351 | 154 | 0.717972 | 613 | 4,418 | 4.805873 | 0.158238 | 0.052274 | 0.052953 | 0.028853 | 0.391718 | 0.251527 | 0.14664 | 0.075356 | 0.032587 | 0 | 0 | 0.001617 | 0.160254 | 4,418 | 147 | 155 | 30.054422 | 0.792453 | 0 | 0 | 0.106796 | 0 | 0 | 0.102082 | 0.026483 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097087 | false | 0.019417 | 0.087379 | 0.009709 | 0.23301 | 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 | 0 | 0 | 1 | 0 |
15b7a264d607ff095bc9d427c0c9c5d6ae9bc122 | 1,063 | py | Python | ImageProcessing-Python/blog12-warpAffine/blog12-image03.py | Songner/image_classfication | c1f15b2b96544e859e14a92373eb57c6a2644a93 | [
"MIT"
] | null | null | null | ImageProcessing-Python/blog12-warpAffine/blog12-image03.py | Songner/image_classfication | c1f15b2b96544e859e14a92373eb57c6a2644a93 | [
"MIT"
] | null | null | null | ImageProcessing-Python/blog12-warpAffine/blog12-image03.py | Songner/image_classfication | c1f15b2b96544e859e14a92373eb57c6a2644a93 | [
"MIT"
] | null | null | null | #encoding:utf-8
import cv2
import numpy as np
import matplotlib.pyplot as plt
#读取图片
src = cv2.imread('test01.jpg')
#获取图像大小
rows, cols = src.shape[:2]
#将源图像高斯模糊
img = cv2.GaussianBlur(src, (3,3), 0)
#进行灰度化处理
gray = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)
#边缘检测(检测出图像的边缘信息)
edges = cv2.Canny(gray,50,250,... | 21.693878 | 77 | 0.650988 | 169 | 1,063 | 4.088757 | 0.508876 | 0.034732 | 0.052098 | 0.069465 | 0.118669 | 0.081042 | 0.081042 | 0.054993 | 0 | 0 | 0 | 0.140607 | 0.163688 | 1,063 | 48 | 78 | 22.145833 | 0.63667 | 0.110066 | 0 | 0.166667 | 0 | 0 | 0.037288 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
15b7b434f546b16436f33e7ab0369ff24dbf0a48 | 846 | py | Python | v2e/run_v2e.py | ibugueno/UOH-EventCameras | 1941e90499955e199be33c706547b25ba6856eb4 | [
"MIT"
] | 1 | 2021-07-06T08:53:26.000Z | 2021-07-06T08:53:26.000Z | v2e/run_v2e.py | ibugueno/UOH-EventCameras | 1941e90499955e199be33c706547b25ba6856eb4 | [
"MIT"
] | null | null | null | v2e/run_v2e.py | ibugueno/UOH-EventCameras | 1941e90499955e199be33c706547b25ba6856eb4 | [
"MIT"
] | 1 | 2021-07-06T08:53:26.000Z | 2021-07-06T08:53:26.000Z | from os import listdir
from os.path import isfile, join
from videoprops import get_video_properties
import math
import subprocess
import time
input_path = 'input/Test_Set/'
output_path = 'output/Test_Set/'
files = [f for f in listdir(input_path) if isfile(join(input_path, f))]
for file in files:
input_full_path ... | 24.171429 | 126 | 0.689125 | 132 | 846 | 4.189394 | 0.363636 | 0.072333 | 0.070524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006906 | 0.144208 | 846 | 34 | 127 | 24.882353 | 0.754144 | 0 | 0 | 0 | 0 | 0 | 0.183432 | 0.040237 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0.190476 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
15b9e21e51e269288bc47d66331e512cd62e6c38 | 610 | py | Python | simulated_experiments/create_config.py | elerson/NetworkedRobotsProject | d2b9d0a121c5421a40e806a93e6a8f1315f24441 | [
"MIT"
] | null | null | null | simulated_experiments/create_config.py | elerson/NetworkedRobotsProject | d2b9d0a121c5421a40e806a93e6a8f1315f24441 | [
"MIT"
] | null | null | null | simulated_experiments/create_config.py | elerson/NetworkedRobotsProject | d2b9d0a121c5421a40e806a93e6a8f1315f24441 | [
"MIT"
] | null | null | null | #!/usr/bin/python
config_exp = '''
robots:
1:
id: 1
ip: 192.168.0.1
macaddress: ec:08:6b:0d:68:ef
cable_ip: 150.164.212.43
configs:
map: DIR_/map/ambiente.png
treefile: DIR_/steinerData1.dat
resolution: 0.05
exit: 1
simulation: 1
broadcast_address: 127.255.255.255
algorithm_port: 3998... | 16.052632 | 47 | 0.659016 | 95 | 610 | 4 | 0.694737 | 0.047368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114519 | 0.198361 | 610 | 37 | 48 | 16.486486 | 0.662577 | 0.02623 | 0 | 0 | 0 | 0 | 0.576729 | 0.070826 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.107143 | 0 | 0.178571 | 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 | 0 | 0 | 1 | 0 |
15bb3cbfcfa07f95701ecd2783316238c64ed5b5 | 3,960 | py | Python | firebirdsql/tests/test_proc.py | dand-oss/pyfirebirdsql | 1b8148f8937929cdd74774fef2611dd55ea6a757 | [
"BSD-2-Clause"
] | 31 | 2015-03-28T09:43:53.000Z | 2022-02-27T18:20:06.000Z | firebirdsql/tests/test_proc.py | dand-oss/pyfirebirdsql | 1b8148f8937929cdd74774fef2611dd55ea6a757 | [
"BSD-2-Clause"
] | 24 | 2015-01-16T03:00:33.000Z | 2022-02-08T00:06:05.000Z | firebirdsql/tests/test_proc.py | dand-oss/pyfirebirdsql | 1b8148f8937929cdd74774fef2611dd55ea6a757 | [
"BSD-2-Clause"
] | 21 | 2015-01-15T23:00:26.000Z | 2020-11-04T08:30:13.000Z | from __future__ import with_statement
import datetime
import firebirdsql
from firebirdsql.tests.base import * # noqa
from firebirdsql.consts import * # noqa
class TestProc(TestBase):
def setUp(self):
TestBase.setUp(self)
cur = self.connection.cursor()
cur.execute('''
... | 33.277311 | 82 | 0.49798 | 469 | 3,960 | 4.127932 | 0.270789 | 0.056818 | 0.061467 | 0.083161 | 0.47469 | 0.420455 | 0.344008 | 0.192665 | 0.157541 | 0.098141 | 0 | 0.059015 | 0.379545 | 3,960 | 118 | 83 | 33.559322 | 0.728938 | 0.027778 | 0 | 0.443396 | 0 | 0.018868 | 0.50026 | 0 | 0 | 0 | 0 | 0 | 0.084906 | 1 | 0.037736 | false | 0.028302 | 0.04717 | 0 | 0.09434 | 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 | 0 | 0 | 1 | 0 |
15bcb236ed8a4476a796d56e5b8eb69e73ae26a3 | 2,630 | py | Python | backend/assignment/views/student.py | skku-npc/SKKU_Coding_Platform | 1d972e8922484cf94f6735fd08b2565e5d3517d0 | [
"MIT"
] | 1 | 2022-03-30T14:03:23.000Z | 2022-03-30T14:03:23.000Z | backend/assignment/views/student.py | skku-npc/SKKU_Coding_Platform | 1d972e8922484cf94f6735fd08b2565e5d3517d0 | [
"MIT"
] | 56 | 2022-02-19T08:13:48.000Z | 2022-03-25T10:17:07.000Z | backend/assignment/views/student.py | skku-npc/SKKU_Coding_Platform | 1d972e8922484cf94f6735fd08b2565e5d3517d0 | [
"MIT"
] | 1 | 2022-03-25T15:02:46.000Z | 2022-03-25T15:02:46.000Z | from utils.api import APIView
from utils.decorators import login_required
from course.models import Course, Registration
from ..models import Assignment
from ..serializers import AssignmentSerializer
from drf_yasg.utils import swagger_auto_schema
from drf_yasg import openapi
class AssignmentAPI(APIView):
@swagg... | 36.027397 | 104 | 0.605323 | 270 | 2,630 | 5.744444 | 0.288889 | 0.061896 | 0.045132 | 0.041264 | 0.246293 | 0.162476 | 0.162476 | 0.108317 | 0.108317 | 0.05158 | 0 | 0.003326 | 0.314068 | 2,630 | 72 | 105 | 36.527778 | 0.85643 | 0 | 0 | 0.285714 | 0 | 0 | 0.123954 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015873 | false | 0 | 0.111111 | 0 | 0.238095 | 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 | 0 | 0 | 1 | 0 |
15beb740c74dbae31445d5c0271c8943a849e3b1 | 913 | py | Python | task_1_su.py | cicadina1/python_edu | 7d5ce26050b16b8dca09ec54f3544abf02f46eac | [
"MIT"
] | null | null | null | task_1_su.py | cicadina1/python_edu | 7d5ce26050b16b8dca09ec54f3544abf02f46eac | [
"MIT"
] | null | null | null | task_1_su.py | cicadina1/python_edu | 7d5ce26050b16b8dca09ec54f3544abf02f46eac | [
"MIT"
] | null | null | null | seq = "AACTGAGAC"
def split(sequence):
return [char for char in seq]
word = 'sequence'
seqlist=(split(word))
print("Task 1: разделена секвенция\n",seqlist)
def revetring (sequence):
reversed_seq = seqlist[::-1]
#reversed_seq = ''.join(reversed_seq)
return reversed_seq
print("Task 2: обратна секвенция... | 30.433333 | 65 | 0.696605 | 116 | 913 | 5.37931 | 0.344828 | 0.057692 | 0.070513 | 0.044872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006527 | 0.161008 | 913 | 29 | 66 | 31.482759 | 0.808094 | 0.079956 | 0 | 0 | 0 | 0 | 0.186158 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0 | 0.045455 | 0.272727 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
15c0b4a7aa18f44f069e90d242770b8b30f3462c | 751 | py | Python | isee/pip_utils.py | i2mint/isee | cb38a734420af1ab4489b9938cea48f443e66b13 | [
"MIT"
] | null | null | null | isee/pip_utils.py | i2mint/isee | cb38a734420af1ab4489b9938cea48f443e66b13 | [
"MIT"
] | 15 | 2021-02-01T20:13:28.000Z | 2021-12-15T20:38:18.000Z | isee/pip_utils.py | i2mint/isee | cb38a734420af1ab4489b9938cea48f443e66b13 | [
"MIT"
] | null | null | null | import configparser
import pip
from isee.common import get_env_var, get_file_path
def install_requires(project_dir=None):
if not project_dir:
project_dir = get_env_var('GITHUB_WORKSPACE')
path = get_file_path('setup.cfg', project_dir)
config = configparser.ConfigParser()
config.read(path)
... | 32.652174 | 84 | 0.712383 | 96 | 751 | 5.34375 | 0.489583 | 0.077973 | 0.035088 | 0.116959 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154461 | 751 | 22 | 85 | 34.136364 | 0.807874 | 0 | 0 | 0 | 0 | 0 | 0.143808 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.176471 | 0 | 0.294118 | 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 | 0 | 0 | 1 | 0 |
ec5c5a3367b8409735b414d000ae6d691a2e9b7a | 829 | py | Python | debug.py | FrancoisData/BigGAN-pytorch | 5fee762b83ff1de24876547d1cb1b2d9e99834e3 | [
"Apache-2.0"
] | 458 | 2018-11-15T00:20:38.000Z | 2020-04-11T11:05:17.000Z | debug.py | FrancoisData/BigGAN-pytorch | 5fee762b83ff1de24876547d1cb1b2d9e99834e3 | [
"Apache-2.0"
] | 18 | 2018-11-27T06:34:05.000Z | 2020-03-26T05:33:28.000Z | debug.py | FrancoisData/BigGAN-pytorch | 5fee762b83ff1de24876547d1cb1b2d9e99834e3 | [
"Apache-2.0"
] | 84 | 2018-11-17T07:36:50.000Z | 2020-04-20T02:57:51.000Z | from model_resnet import *
from demo import *
from utils import *
dim_z = 120
vocab_size = 1000
num_samples = 12 #@param {type:"slider", min:1, max:20, step:1}
truncation = 0.32 #@param {type:"slider", min:0.02, max:1, step:0.02}
noise_seed = 0 #@param {type:"slider", min:0, max:100, step:1}
category = "951"
z = t... | 21.815789 | 69 | 0.694813 | 138 | 829 | 4.007246 | 0.471014 | 0.057866 | 0.081374 | 0.097649 | 0.166365 | 0.097649 | 0 | 0 | 0 | 0 | 0 | 0.064649 | 0.12304 | 829 | 37 | 70 | 22.405405 | 0.696011 | 0.500603 | 0 | 0 | 0 | 0 | 0.0275 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ec5db73a5e8c1e84b7771da0358c010b16de6f7f | 3,350 | py | Python | venv/lib/python3.8/site-packages/vsts/member_entitlement_management/v4_1/models/extension_summary_data.py | amcclead7336/Enterprise_Data_Science_Final | ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28 | [
"Unlicense",
"MIT"
] | null | null | null | venv/lib/python3.8/site-packages/vsts/member_entitlement_management/v4_1/models/extension_summary_data.py | amcclead7336/Enterprise_Data_Science_Final | ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28 | [
"Unlicense",
"MIT"
] | null | null | null | venv/lib/python3.8/site-packages/vsts/member_entitlement_management/v4_1/models/extension_summary_data.py | amcclead7336/Enterprise_Data_Science_Final | ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28 | [
"Unlicense",
"MIT"
] | 2 | 2021-05-23T16:46:31.000Z | 2021-05-26T23:51:09.000Z | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -----------------------------------------------------------------... | 54.032258 | 272 | 0.645373 | 352 | 3,350 | 5.889205 | 0.295455 | 0.040521 | 0.074288 | 0.027979 | 0.042451 | 0.042451 | 0 | 0 | 0 | 0 | 0 | 0.00145 | 0.176418 | 3,350 | 61 | 273 | 54.918033 | 0.749909 | 0.443582 | 0 | 0 | 0 | 0 | 0.26384 | 0.060071 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.041667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ec5fb3f3115f92782ad4a5cdee350a82801348f1 | 3,816 | py | Python | src/CreeDictionary/CreeDictionary/urls.py | aarppe/cree-intelligent-dictionary | 79717a08f95827a024061a5a27000bbd3d684363 | [
"Apache-2.0"
] | null | null | null | src/CreeDictionary/CreeDictionary/urls.py | aarppe/cree-intelligent-dictionary | 79717a08f95827a024061a5a27000bbd3d684363 | [
"Apache-2.0"
] | null | null | null | src/CreeDictionary/CreeDictionary/urls.py | aarppe/cree-intelligent-dictionary | 79717a08f95827a024061a5a27000bbd3d684363 | [
"Apache-2.0"
] | null | null | null | """
Definition of urls for CreeDictionary.
"""
from django.conf import settings
from django.contrib import admin
from django.contrib.sitemaps.views import sitemap
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.urls import include, path
from django_js_reverse.views import urls_js
impor... | 37.048544 | 84 | 0.628407 | 425 | 3,816 | 5.517647 | 0.282353 | 0.089552 | 0.099787 | 0.024307 | 0.128785 | 0.063966 | 0.03838 | 0.03838 | 0.03838 | 0.03838 | 0 | 0.000638 | 0.178197 | 3,816 | 102 | 85 | 37.411765 | 0.74713 | 0.195755 | 0 | 0.22973 | 0 | 0 | 0.304475 | 0.24358 | 0 | 0 | 0 | 0.009804 | 0 | 1 | 0 | false | 0 | 0.135135 | 0 | 0.135135 | 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 | 0 | 0 | 1 | 0 |
ec61d6c1fe6b3a50c2ba90b0d04d3cc374029153 | 5,406 | py | Python | setup.py | reecechimento/python-project-template | fc4e34343cc6cbee9b887dda1961c2d5d1fa3c3a | [
"MIT"
] | null | null | null | setup.py | reecechimento/python-project-template | fc4e34343cc6cbee9b887dda1961c2d5d1fa3c3a | [
"MIT"
] | null | null | null | setup.py | reecechimento/python-project-template | fc4e34343cc6cbee9b887dda1961c2d5d1fa3c3a | [
"MIT"
] | null | null | null | """A setuptools based setup module.
See:
https://github.com/reecechimento/python-acelerate
"""
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
import pathlib
here = pathlib.Path(__file__).parent.resolve()
# Get the long description from the README file
long_description = (h... | 53 | 155 | 0.544395 | 554 | 5,406 | 5.216607 | 0.458484 | 0.025952 | 0.015917 | 0.018685 | 0.026298 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003555 | 0.375509 | 5,406 | 101 | 156 | 53.524752 | 0.852488 | 0.508694 | 0 | 0.069767 | 0 | 0 | 0.184699 | 0.051777 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.046512 | 0 | 0.046512 | 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 | 0 | 0 | 1 | 0 |
ec62eab66396e7e93ed3e02a393356b10591dc52 | 2,348 | py | Python | pmtg-synthetic-control/utils/loader.py | codyly/pmtg | 2b37200b3d6e38c8d70f25ec6fef19ed18b81496 | [
"MIT"
] | 1 | 2022-02-15T13:40:09.000Z | 2022-02-15T13:40:09.000Z | pmtg-synthetic-control/utils/loader.py | codyly/pmtg | 2b37200b3d6e38c8d70f25ec6fef19ed18b81496 | [
"MIT"
] | null | null | null | pmtg-synthetic-control/utils/loader.py | codyly/pmtg | 2b37200b3d6e38c8d70f25ec6fef19ed18b81496 | [
"MIT"
] | null | null | null | import numpy as np
from utils.visualize import view_trajectory
DEFAULT_SCALE = 1.0
def load_trajectory(file_name: str, num_steps: int, save_results: bool = True) -> np.ndarray:
"""Load paited trajectory and pre-processing
Args:
file_name (string): [description]
num_steps (int): [description... | 33.542857 | 101 | 0.633731 | 326 | 2,348 | 4.41411 | 0.291411 | 0.061154 | 0.031272 | 0.027797 | 0.262682 | 0.262682 | 0.120917 | 0.120917 | 0.045865 | 0 | 0 | 0.031956 | 0.227002 | 2,348 | 69 | 102 | 34.028986 | 0.760882 | 0.192078 | 0 | 0.054054 | 0 | 0 | 0.019355 | 0 | 0 | 0 | 0 | 0 | 0.027027 | 1 | 0.027027 | false | 0 | 0.054054 | 0 | 0.108108 | 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 | 0 | 0 | 1 | 0 |
ec644d6a76b9ebec8b12e7c2b679fb791dbf5fcc | 1,110 | py | Python | problems/115.py | mengshun/Leetcode | 8bb676f2fff093e1417a4bed13d9ad708149be78 | [
"MIT"
] | null | null | null | problems/115.py | mengshun/Leetcode | 8bb676f2fff093e1417a4bed13d9ad708149be78 | [
"MIT"
] | null | null | null | problems/115.py | mengshun/Leetcode | 8bb676f2fff093e1417a4bed13d9ad708149be78 | [
"MIT"
] | null | null | null | """
115. 不同的子序列
https://leetcode-cn.com/problems/distinct-subsequences/
"""
def numDistinct(s: str, t: str):
m, n = len(s), len(t)
if n > m:
return 0
dp = [[0] * (n+1) for _ in range(m+1)]
for i in range(m+1):
dp[i][n] = 1
for i in range(m-1, -1, -1):
for j in range(n-1, -1... | 21.346154 | 65 | 0.454955 | 191 | 1,110 | 2.633508 | 0.198953 | 0.063618 | 0.079523 | 0.089463 | 0.417495 | 0.345924 | 0.345924 | 0.246521 | 0.246521 | 0.246521 | 0 | 0.053548 | 0.327027 | 1,110 | 52 | 66 | 21.346154 | 0.619813 | 0.066667 | 0 | 0.387097 | 0 | 0 | 0.068588 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0 | 0 | 0.193548 | 0.096774 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
ec6513c05b81af621f85dc42a34ad6180c6b7cdd | 3,902 | py | Python | scripts/update_dreqs/update_dreqs_0183.py | jonseddon/primavera-dmt | 1239044e37f070b925a3d06db68351f285df780c | [
"BSD-3-Clause"
] | null | null | null | scripts/update_dreqs/update_dreqs_0183.py | jonseddon/primavera-dmt | 1239044e37f070b925a3d06db68351f285df780c | [
"BSD-3-Clause"
] | 49 | 2018-11-14T17:00:03.000Z | 2021-12-20T11:04:22.000Z | scripts/update_dreqs/update_dreqs_0183.py | jonseddon/primavera-dmt | 1239044e37f070b925a3d06db68351f285df780c | [
"BSD-3-Clause"
] | 2 | 2018-07-04T10:58:43.000Z | 2018-09-29T14:55:08.000Z | #!/usr/bin/env python
"""
update_dreqs_0183.py
ESGF AttributeUpdate
Called from a Rose suite to update the checksums in MPI AMIP files that have
already been updated with the first version that didn't preserve checksums.
"""
from __future__ import (unicode_literals, division, absolute_import,
p... | 28.481752 | 80 | 0.604049 | 457 | 3,902 | 4.919037 | 0.404814 | 0.049822 | 0.022687 | 0.012456 | 0.088078 | 0.032918 | 0.032918 | 0 | 0 | 0 | 0 | 0.008636 | 0.287801 | 3,902 | 136 | 81 | 28.691176 | 0.800288 | 0.11225 | 0 | 0.073684 | 0 | 0 | 0.160573 | 0.013162 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021053 | false | 0 | 0.084211 | 0 | 0.115789 | 0.010526 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
ec66e4ff2212655f50190f485778b9d0bb5f89f4 | 2,149 | py | Python | main.py | 0x437968/overexposure-correction-dise | 08bedbc1b418a23b1ab6e849c3c7d4fdef04e472 | [
"MIT"
] | 4 | 2020-09-30T03:00:57.000Z | 2021-06-28T04:51:47.000Z | main.py | 0x437968/overexposure-correction-dise | 08bedbc1b418a23b1ab6e849c3c7d4fdef04e472 | [
"MIT"
] | 1 | 2021-11-05T00:50:56.000Z | 2022-03-03T13:17:17.000Z | main.py | 0x437968/overexposure-correction-dise | 08bedbc1b418a23b1ab6e849c3c7d4fdef04e472 | [
"MIT"
] | 1 | 2022-03-03T13:15:07.000Z | 2022-03-03T13:15:07.000Z | from data_cfg import project_dataset
from tensorboardX import SummaryWriter
from utils import init_folder
from options import ProjectOptions
from model import create_model
import time
import os
import torch
if __name__ == '__main__':
opt=ProjectOptions().get_opt()
ProjectOptions.print_options(opt)... | 35.229508 | 97 | 0.579339 | 273 | 2,149 | 4.377289 | 0.307692 | 0.033473 | 0.016736 | 0.025105 | 0.203347 | 0.174059 | 0.132218 | 0.132218 | 0.082008 | 0 | 0 | 0.012574 | 0.296882 | 2,149 | 60 | 98 | 35.816667 | 0.778293 | 0 | 0 | 0.142857 | 0 | 0 | 0.077144 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.232143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
ec680a486a8b041372298819a8d2017978d1f0dd | 752 | py | Python | mult.py | jonathanbell/using-python-with-excel | 2a3355d060216e9911159bed9b3c4f9f11b944ae | [
"WTFPL"
] | null | null | null | mult.py | jonathanbell/using-python-with-excel | 2a3355d060216e9911159bed9b3c4f9f11b944ae | [
"WTFPL"
] | null | null | null | mult.py | jonathanbell/using-python-with-excel | 2a3355d060216e9911159bed9b3c4f9f11b944ae | [
"WTFPL"
] | null | null | null | import pandas
from openpyxl import load_workbook
from openpyxl.styles import Font
df1 = pandas.read_excel('data/shifts.xlsx', sheet_name='Sheet')
df2 = pandas.read_excel('data/shifts.xlsx', sheet_name='Sheet1')
df3 = pandas.read_excel('data/shift_3.xlsx')
df_all = pandas.concat([df1, df2, df3], sort=False)
to_excel ... | 26.857143 | 64 | 0.718085 | 128 | 752 | 4.023438 | 0.429688 | 0.058252 | 0.087379 | 0.11068 | 0.147573 | 0.147573 | 0.147573 | 0.147573 | 0 | 0 | 0 | 0.019637 | 0.119681 | 752 | 27 | 65 | 27.851852 | 0.758308 | 0 | 0 | 0 | 0 | 0 | 0.178191 | 0.055851 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.15 | 0 | 0.15 | 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 | 0 | 0 | 1 | 0 |
ec69ff59cf02e6fc2fd5b3c7379eb1801389f065 | 6,141 | py | Python | functions.py | traian-d/fractals | a8666c9b6eb446beef0fe71d6d1e6ccfa9f2108e | [
"MIT"
] | null | null | null | functions.py | traian-d/fractals | a8666c9b6eb446beef0fe71d6d1e6ccfa9f2108e | [
"MIT"
] | null | null | null | functions.py | traian-d/fractals | a8666c9b6eb446beef0fe71d6d1e6ccfa9f2108e | [
"MIT"
] | null | null | null | import fractal
class Mandelbrot(fractal.Fractal):
__slots__ = ('__w', '__h', '__max_iter', '__grid')
def __init__(self, re_start, re_end, im_start, im_end, max_iter=100, w=600, h=400):
self.__max_iter = max_iter
self.__w = w
self.__h = h
self.__grid = self.make_grid(re_start, ... | 34.5 | 123 | 0.579873 | 876 | 6,141 | 3.718037 | 0.216895 | 0.02794 | 0.019343 | 0.018422 | 0.244704 | 0.178385 | 0.166104 | 0.134173 | 0.126804 | 0.126804 | 0 | 0.039348 | 0.300603 | 6,141 | 177 | 124 | 34.694915 | 0.718976 | 0.141996 | 0 | 0.277778 | 0 | 0 | 0.065439 | 0.004606 | 0 | 0 | 0 | 0 | 0 | 1 | 0.134921 | false | 0 | 0.047619 | 0.055556 | 0.333333 | 0.007937 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ec6a0fc301cf85afc5c914d15d835f6315fb62d6 | 2,204 | py | Python | 101-150/142_linked_list_cycle_ii.py | ChenhaoJiang/LeetCode-Solution | b2119ad938c18f75948d0f5cf4ae3773820dcc93 | [
"MIT"
] | 16 | 2019-03-30T07:25:27.000Z | 2020-07-28T15:34:53.000Z | 101-150/142_linked_list_cycle_ii.py | ChenhaoJiang/LeetCode-Solution | b2119ad938c18f75948d0f5cf4ae3773820dcc93 | [
"MIT"
] | null | null | null | 101-150/142_linked_list_cycle_ii.py | ChenhaoJiang/LeetCode-Solution | b2119ad938c18f75948d0f5cf4ae3773820dcc93 | [
"MIT"
] | 2 | 2020-06-26T13:02:14.000Z | 2020-07-28T04:59:15.000Z | """
Given a linked list, return the node where the cycle begins. If there is no cycle, return null.
To represent a cycle in the given linked list, we use an integer pos which represents the position (0-indexed) in the linked list where tail connects to.
If pos is -1, then there is no cycle in the linked list.
Note: Do... | 35.548387 | 154 | 0.651543 | 296 | 2,204 | 4.841216 | 0.402027 | 0.062805 | 0.054431 | 0.052338 | 0.365666 | 0.276343 | 0.235869 | 0.235869 | 0.171668 | 0.171668 | 0 | 0.012262 | 0.259982 | 2,204 | 61 | 155 | 36.131148 | 0.865727 | 0.57441 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ec6c02a550bff95ca8a0b04da83c54cb712ce0cf | 1,161 | py | Python | tests/test_settings.py | martimarkov/django-ajax-datatable | d132504a199cb2afe2cfd74a2e6d5d5f2969c4a4 | [
"MIT"
] | 1 | 2021-11-19T13:36:30.000Z | 2021-11-19T13:36:30.000Z | tests/test_settings.py | martimarkov/django-ajax-datatable | d132504a199cb2afe2cfd74a2e6d5d5f2969c4a4 | [
"MIT"
] | null | null | null | tests/test_settings.py | martimarkov/django-ajax-datatable | d132504a199cb2afe2cfd74a2e6d5d5f2969c4a4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8
from __future__ import unicode_literals, absolute_import
DEBUG = True
USE_TZ = True
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = "77777777777777777777777777777777777777777777777777"
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql'... | 25.23913 | 89 | 0.643411 | 127 | 1,161 | 5.755906 | 0.629921 | 0.038304 | 0.060192 | 0.098495 | 0.123119 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070078 | 0.225668 | 1,161 | 45 | 90 | 25.8 | 0.743048 | 0.332472 | 0 | 0 | 0 | 0 | 0.413072 | 0.2 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.032258 | 0.032258 | 0 | 0.032258 | 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 | 0 | 0 | 1 | 0 |
ec6de7bbb85c5d6dd0a3ddc51579d47f873de627 | 2,213 | py | Python | generate_areacode_lookup_data.py | EricSchles/investigator | 88b4215667b24483efbd9aba690e7c3a231539f6 | [
"MIT"
] | 17 | 2016-06-17T23:42:42.000Z | 2020-06-29T19:17:09.000Z | generate_areacode_lookup_data.py | EricSchles/investigator | 88b4215667b24483efbd9aba690e7c3a231539f6 | [
"MIT"
] | 6 | 2016-06-16T18:46:45.000Z | 2017-07-02T16:41:45.000Z | generate_areacode_lookup_data.py | EricSchles/investigator | 88b4215667b24483efbd9aba690e7c3a231539f6 | [
"MIT"
] | 11 | 2016-06-21T21:17:46.000Z | 2020-06-30T05:25:36.000Z | from selenium import webdriver
from selenium.webdriver.common.by import By
from app.models import AreaCodeLookup
from pyzipcode import ZipCodeDatabase
from app import db
import us
from geopy.geocoders import Nominatim
from easydict import EasyDict as edict
print("starting webdriver")
driver = webdriver.Firefox()
print... | 32.072464 | 92 | 0.553999 | 257 | 2,213 | 4.673152 | 0.396887 | 0.053289 | 0.036636 | 0.037469 | 0.167361 | 0.120733 | 0.120733 | 0.05995 | 0.05995 | 0 | 0 | 0.031373 | 0.308631 | 2,213 | 68 | 93 | 32.544118 | 0.753595 | 0 | 0 | 0.109375 | 0 | 0 | 0.096249 | 0.010393 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.140625 | 0 | 0.140625 | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ec71f4c0538be0f19f562102f9375c395809b744 | 3,471 | py | Python | pybargain_protocol/bargaining_cancellation.py | LaurentMT/pybargain_protocol | 3b4c6040ec3562ce6921f917c97a9931d5c6e5de | [
"MIT"
] | 1 | 2015-06-30T15:34:41.000Z | 2015-06-30T15:34:41.000Z | pybargain_protocol/bargaining_cancellation.py | LaurentMT/pybargain_protocol | 3b4c6040ec3562ce6921f917c97a9931d5c6e5de | [
"MIT"
] | null | null | null | pybargain_protocol/bargaining_cancellation.py | LaurentMT/pybargain_protocol | 3b4c6040ec3562ce6921f917c97a9931d5c6e5de | [
"MIT"
] | null | null | null | #!/usr/bin/env python
'''
Version: 0.0.1
Python library for the bargaining protocol
'''
from pybargain_protocol import bargaining_pb2
from pybargain_protocol.constants import MAINNET
from pybargain_protocol.exceptions import SerializationError, DeserializationError
from pybargain_protocol.protocol_rules import check_ti... | 32.745283 | 164 | 0.60098 | 347 | 3,471 | 5.907781 | 0.308357 | 0.039512 | 0.040976 | 0.040976 | 0.27122 | 0.27122 | 0.219512 | 0.181463 | 0.181463 | 0.181463 | 0 | 0.003918 | 0.338231 | 3,471 | 106 | 165 | 32.745283 | 0.88855 | 0.221262 | 0 | 0.153846 | 0 | 0 | 0.115497 | 0.028265 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102564 | false | 0 | 0.102564 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ec7214eeeb62991a6453d69509efc08658687c8c | 37,375 | py | Python | geodesic.py | aconz2/blender-addon-geodesic | 8b5d48fcaaa42524cba43d2b0d9c328974e9ccd7 | [
"Unlicense"
] | null | null | null | geodesic.py | aconz2/blender-addon-geodesic | 8b5d48fcaaa42524cba43d2b0d9c328974e9ccd7 | [
"Unlicense"
] | null | null | null | geodesic.py | aconz2/blender-addon-geodesic | 8b5d48fcaaa42524cba43d2b0d9c328974e9ccd7 | [
"Unlicense"
] | null | null | null |
bl_info = {
'name': 'Geodesic',
'description': 'Geodesic like things; weighted shortest path and walking along a mesh',
'blender': (2, 92, 0),
'category': 'Object',
}
import itertools
import random
from functools import partial
from itertools import starmap
import math
import logging
import networkx ... | 34.415285 | 169 | 0.632241 | 5,136 | 37,375 | 4.454634 | 0.12169 | 0.017308 | 0.012238 | 0.012238 | 0.443201 | 0.374536 | 0.319026 | 0.290441 | 0.251453 | 0.226321 | 0 | 0.012166 | 0.254448 | 37,375 | 1,085 | 170 | 34.447005 | 0.8089 | 0.112615 | 0 | 0.401022 | 0 | 0.003831 | 0.097735 | 0.012387 | 0 | 0 | 0 | 0.001843 | 0.014049 | 1 | 0.079183 | false | 0.003831 | 0.015326 | 0.016603 | 0.240102 | 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 | 0 | 0 | 1 | 0 |
ec74193abc892521102cb21f200e6fc43face9bf | 937 | py | Python | birch/paths.py | shaypal5/birch | f3d1b7b9701f8a13fb62c9d606aa0a99697ae5b4 | [
"MIT"
] | 14 | 2018-02-11T13:56:02.000Z | 2022-02-17T14:29:45.000Z | birch/paths.py | shaypal5/birch | f3d1b7b9701f8a13fb62c9d606aa0a99697ae5b4 | [
"MIT"
] | 2 | 2018-04-19T14:35:48.000Z | 2020-07-22T14:58:11.000Z | birch/paths.py | shaypal5/birch | f3d1b7b9701f8a13fb62c9d606aa0a99697ae5b4 | [
"MIT"
] | 11 | 2018-04-10T19:41:22.000Z | 2022-02-17T13:18:32.000Z | """Path-related functions for birch."""
import os
def _legacy_cfg_dpath(namespace):
return os.path.join(
os.path.expanduser('~'),
'.{}'.format(namespace),
)
XDG_CONFIG_HOME_VARNAME = 'XDG_CONFIG_HOME'
def _xdg_cfg_dpath(namespace):
if XDG_CONFIG_HOME_VARNAME in os.environ: # pragma: ... | 21.790698 | 65 | 0.607257 | 113 | 937 | 4.761062 | 0.238938 | 0.089219 | 0.111524 | 0.148699 | 0.526022 | 0.475836 | 0.475836 | 0.475836 | 0.475836 | 0.475836 | 0 | 0 | 0.277481 | 937 | 42 | 66 | 22.309524 | 0.794682 | 0.108858 | 0 | 0.4 | 0 | 0 | 0.058111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.033333 | 0.033333 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ec75d8f9432b77a66901b060a53c5ffc3d0850ee | 1,085 | py | Python | 2015/day18.py | kyz/adventofcode | b3dd544624a8fc313ca1fad0d2f02f53bd79ce3d | [
"MIT"
] | null | null | null | 2015/day18.py | kyz/adventofcode | b3dd544624a8fc313ca1fad0d2f02f53bd79ce3d | [
"MIT"
] | null | null | null | 2015/day18.py | kyz/adventofcode | b3dd544624a8fc313ca1fad0d2f02f53bd79ce3d | [
"MIT"
] | null | null | null | def read_state(lines):
out = dict()
for y, row in enumerate(lines):
for x, char in enumerate(row):
out[x,y] = 1 if char == '#' else 0
return out, len(lines[0]), len(lines)
def simulate(state, w, h, corners):
neighbours = {(x,y): [(i,j) for i in range(x-1,x+2) for j in range(y-1,y+2... | 38.75 | 79 | 0.527189 | 202 | 1,085 | 2.821782 | 0.277228 | 0.084211 | 0.049123 | 0.078947 | 0.291228 | 0.147368 | 0.147368 | 0.147368 | 0.147368 | 0.147368 | 0 | 0.065274 | 0.294009 | 1,085 | 27 | 80 | 40.185185 | 0.678851 | 0 | 0 | 0.16 | 0 | 0 | 0.04977 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0 | 0 | 0.16 | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ec76a5ad52a10a7333ca973d639bf92204a67540 | 1,149 | py | Python | schedule/ScheduleData.py | unkSonert/Vk-Bot-Uni-Dubna | e229a0200d2033693442fa22d02dcedd171e5510 | [
"MIT"
] | null | null | null | schedule/ScheduleData.py | unkSonert/Vk-Bot-Uni-Dubna | e229a0200d2033693442fa22d02dcedd171e5510 | [
"MIT"
] | null | null | null | schedule/ScheduleData.py | unkSonert/Vk-Bot-Uni-Dubna | e229a0200d2033693442fa22d02dcedd171e5510 | [
"MIT"
] | 2 | 2019-03-20T19:04:20.000Z | 2019-03-20T21:32:19.000Z | import pickle
from os.path import isfile
from schedule.Week import Week
from schedule.default import list_of_week_days_names, list_of_lesson_names
class ScheduleData(object):
homework = None
week = None
@staticmethod
def get_day_number(name):
return next(i for i, x in enumerate(list_of_week_... | 28.02439 | 90 | 0.671889 | 149 | 1,149 | 5.006711 | 0.362416 | 0.085791 | 0.112601 | 0.128686 | 0.290885 | 0.254692 | 0.254692 | 0.254692 | 0.115282 | 0.115282 | 0 | 0.002275 | 0.234987 | 1,149 | 40 | 91 | 28.725 | 0.846416 | 0 | 0 | 0.166667 | 0 | 0 | 0.040035 | 0.038294 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.133333 | 0.1 | 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 | 0 | 0 | 0 | 0 | 1 | 0 |
ec77c8bf9c27a03f5c191007f8bb35cba9a7948b | 1,373 | py | Python | examples/quick_start/nested.py | timdavis3991/do-py | 921d3b3bdeb108f3e6379dcacab6ed6ffaaa0776 | [
"MIT"
] | 7 | 2020-07-07T02:53:44.000Z | 2022-03-28T00:56:36.000Z | examples/quick_start/nested.py | timdavis3991/do-py | 921d3b3bdeb108f3e6379dcacab6ed6ffaaa0776 | [
"MIT"
] | 31 | 2020-03-24T17:55:05.000Z | 2022-03-31T04:27:14.000Z | examples/quick_start/nested.py | timdavis3991/do-py | 921d3b3bdeb108f3e6379dcacab6ed6ffaaa0776 | [
"MIT"
] | null | null | null | """
Nest a DataObject in another DataObject.
"""
from do_py import DataObject, R
class Contact(DataObject):
_restrictions = {
'phone_number': R.STR
}
class Author(DataObject):
"""
This DataObject is nested under `VideoGame` and nests `Contact`.
:restriction id:
:restriction name:... | 24.963636 | 137 | 0.593591 | 151 | 1,373 | 5.344371 | 0.397351 | 0.040892 | 0.05948 | 0.064436 | 0.391574 | 0.218092 | 0 | 0 | 0 | 0 | 0 | 0.03 | 0.271668 | 1,373 | 54 | 138 | 25.425926 | 0.777 | 0.477058 | 0 | 0.172414 | 0 | 0 | 0.155725 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.034483 | 0 | 0.241379 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |