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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
19310709fccc926261a99f530ec7e2d84e44988f | 3,142 | py | Python | Drop7/test/Disk_Test.py | SanderP99/Drop7 | b11c2590d3cc1e311fb34a4635a1f6c075d9cb59 | [
"MIT"
] | null | null | null | Drop7/test/Disk_Test.py | SanderP99/Drop7 | b11c2590d3cc1e311fb34a4635a1f6c075d9cb59 | [
"MIT"
] | null | null | null | Drop7/test/Disk_Test.py | SanderP99/Drop7 | b11c2590d3cc1e311fb34a4635a1f6c075d9cb59 | [
"MIT"
] | null | null | null | # import Drop7.Board as Board
import Drop7.Disk as Disk
def test_Is_Proper_Disk__Legal_Case(score, max_score):
"""Function is_proper_disk: given disk is proper disk."""
max_score.value += 1
try:
assert Disk.is_proper_disk(4, Disk.init_disk(Disk.VISIBLE, 4))
assert Disk.is_proper_disk(4, Dis... | 26.854701 | 74 | 0.638765 | 449 | 3,142 | 4.160356 | 0.11804 | 0.068522 | 0.089936 | 0.089936 | 0.807816 | 0.655246 | 0.566381 | 0.448608 | 0.292827 | 0.252141 | 0 | 0.020051 | 0.253978 | 3,142 | 116 | 75 | 27.086207 | 0.776877 | 0.120624 | 0 | 0.518072 | 0 | 0 | 0.001103 | 0 | 0 | 0 | 0 | 0 | 0.156627 | 1 | 0.096386 | false | 0.096386 | 0.012048 | 0 | 0.108434 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
19340df43351011be81d21c8afe59df9e5f9d483 | 1,821 | py | Python | Sensors/MaxSonarTTY.py | paceaux/pi-projects | c9eb1f138868d41f8304c4251382cc4a6d161ba8 | [
"MIT"
] | null | null | null | Sensors/MaxSonarTTY.py | paceaux/pi-projects | c9eb1f138868d41f8304c4251382cc4a6d161ba8 | [
"MIT"
] | null | null | null | Sensors/MaxSonarTTY.py | paceaux/pi-projects | c9eb1f138868d41f8304c4251382cc4a6d161ba8 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# Filename: maxSonarTTY.py
# Reads serial data from Maxbotix ultrasonic rangefinders
# Gracefully handles most common serial data glitches
# Use as an importable module with "import MaxSonarTTY"
# Returns an integer value representing distance to target in millimeters
from time import time
from ser... | 33.109091 | 84 | 0.556837 | 186 | 1,821 | 5.430108 | 0.553763 | 0.079208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012965 | 0.364635 | 1,821 | 54 | 85 | 33.722222 | 0.859983 | 0.253707 | 0 | 0.228571 | 0 | 0 | 0.048399 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.057143 | 0 | 0.142857 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1935874de5ab32170824f8aa54ca87bd5761ec1c | 4,697 | py | Python | src/estimator.py | NoumbissiValere/covid-19-cure | 7b4ace8cb746c6ee5952bfd678303500f5ab58dc | [
"MIT"
] | null | null | null | src/estimator.py | NoumbissiValere/covid-19-cure | 7b4ace8cb746c6ee5952bfd678303500f5ab58dc | [
"MIT"
] | null | null | null | src/estimator.py | NoumbissiValere/covid-19-cure | 7b4ace8cb746c6ee5952bfd678303500f5ab58dc | [
"MIT"
] | null | null | null | def estimator(data):
currentlyInfected = covid19ImpactEstimator(data['reportedCases'])
severeCurrentlyInfected = covid19ImpactEstimator(data['reportedCases'],
severe=True)
infectionsByRequestedTime = getInfectionsByRequestedTime(currentlyInfected,
... | 51.054348 | 110 | 0.604003 | 225 | 4,697 | 12.608889 | 0.284444 | 0.049348 | 0.059217 | 0.031724 | 0.049348 | 0.049348 | 0.049348 | 0 | 0 | 0 | 0 | 0.009804 | 0.326804 | 4,697 | 91 | 111 | 51.615385 | 0.887413 | 0 | 0 | 0.227848 | 0 | 0 | 0.129231 | 0.06898 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088608 | false | 0 | 0 | 0.025316 | 0.21519 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1935e935a94ea899193f63cf6a01d898e2f578ec | 2,577 | py | Python | tests/output/TestFile.py | dstore-dbap/LumberMill | b7cbadc209a83386871735b8ad88b61da917a6ab | [
"Apache-2.0"
] | 15 | 2015-12-14T19:07:28.000Z | 2022-02-28T13:32:11.000Z | tests/output/TestFile.py | dstore-dbap/LumberMill | b7cbadc209a83386871735b8ad88b61da917a6ab | [
"Apache-2.0"
] | null | null | null | tests/output/TestFile.py | dstore-dbap/LumberMill | b7cbadc209a83386871735b8ad88b61da917a6ab | [
"Apache-2.0"
] | 4 | 2017-02-08T10:49:55.000Z | 2019-03-19T18:47:46.000Z | import sys
import os
import io
import gzip
import mock
import tempfile
import lumbermill.utils.DictUtils as DictUtils
from tests.ModuleBaseTestCase import ModuleBaseTestCase
from lumbermill.output import File
class TestFile(ModuleBaseTestCase):
def setUp(self):
super(TestFile, self).setUp(File.File(mock... | 37.347826 | 128 | 0.629414 | 299 | 2,577 | 5.244147 | 0.324415 | 0.102041 | 0.107143 | 0.040816 | 0.451531 | 0.369898 | 0.369898 | 0.369898 | 0.335459 | 0.335459 | 0 | 0.003203 | 0.273186 | 2,577 | 69 | 129 | 37.347826 | 0.833956 | 0 | 0 | 0.305085 | 0 | 0 | 0.11249 | 0.017067 | 0 | 0 | 0 | 0 | 0.050847 | 1 | 0.101695 | false | 0 | 0.152542 | 0 | 0.305085 | 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 |
19368974491b6add6e004f6c293a6ac67a000708 | 4,517 | py | Python | user_scripts/decode_logits.py | DavidHribek/pero-ocr | 8d274282813878b3e31dd560563a36b3f02e5c33 | [
"BSD-3-Clause"
] | null | null | null | user_scripts/decode_logits.py | DavidHribek/pero-ocr | 8d274282813878b3e31dd560563a36b3f02e5c33 | [
"BSD-3-Clause"
] | null | null | null | user_scripts/decode_logits.py | DavidHribek/pero-ocr | 8d274282813878b3e31dd560563a36b3f02e5c33 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
import argparse
import pickle
import time
import sys
from safe_gpu.safe_gpu import GPUOwner
from pero_ocr.decoding import confusion_networks
from pero_ocr.decoding.decoding_itf import prepare_dense_logits, construct_lm, get_ocr_charset, BLANK_SYMBOL
import pero_ocr.decoding.decoders as decoder... | 34.480916 | 150 | 0.651317 | 611 | 4,517 | 4.621931 | 0.276596 | 0.044618 | 0.084278 | 0.03364 | 0.190864 | 0.093484 | 0.093484 | 0.052408 | 0.030453 | 0 | 0 | 0.003977 | 0.220722 | 4,517 | 130 | 151 | 34.746154 | 0.798295 | 0.004649 | 0 | 0.12 | 0 | 0 | 0.169967 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.09 | 0 | 0.18 | 0.01 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1936ec832cd585d63cf22975d9e0473abed83035 | 1,608 | py | Python | PiCN/Layers/ICNLayer/ContentStore/ContentStoreMemoryExact.py | NikolaiRutz/PiCN | 7775c61caae506a88af2e4ec34349e8bd9098459 | [
"BSD-3-Clause"
] | null | null | null | PiCN/Layers/ICNLayer/ContentStore/ContentStoreMemoryExact.py | NikolaiRutz/PiCN | 7775c61caae506a88af2e4ec34349e8bd9098459 | [
"BSD-3-Clause"
] | 5 | 2020-07-15T09:01:42.000Z | 2020-09-28T08:45:21.000Z | PiCN/Layers/ICNLayer/ContentStore/ContentStoreMemoryExact.py | NikolaiRutz/PiCN | 7775c61caae506a88af2e4ec34349e8bd9098459 | [
"BSD-3-Clause"
] | null | null | null | """ An in-memory content store with exact matching"""
import time
from PiCN.Packets import Content, Name
from PiCN.Layers.ICNLayer.ContentStore import BaseContentStore, ContentStoreEntry
class ContentStoreMemoryExact(BaseContentStore):
""" A in memory Content Store using exact matching"""
def __init__(self... | 34.212766 | 83 | 0.65796 | 196 | 1,608 | 5.168367 | 0.285714 | 0.069102 | 0.0385 | 0.050346 | 0.090819 | 0.041461 | 0 | 0 | 0 | 0 | 0 | 0.001676 | 0.258085 | 1,608 | 46 | 84 | 34.956522 | 0.847443 | 0.085199 | 0 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.088235 | 0 | 0.382353 | 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 |
193ab624d131e849acb875b0bc59e01faf091e1d | 279 | py | Python | texaslan/slack/pipelines/on_success.py | hsmeans/texaslan.org | a981e7835381e77320e39536a619981ba9d03451 | [
"MIT"
] | 2 | 2018-02-06T06:24:03.000Z | 2018-03-20T03:32:13.000Z | texaslan/slack/pipelines/on_success.py | hsmeans/texaslan.org | a981e7835381e77320e39536a619981ba9d03451 | [
"MIT"
] | 32 | 2017-02-21T20:01:43.000Z | 2020-02-08T21:52:16.000Z | texaslan/slack/pipelines/on_success.py | hsmeans/texaslan.org | a981e7835381e77320e39536a619981ba9d03451 | [
"MIT"
] | 6 | 2017-03-21T21:16:40.000Z | 2020-02-08T20:46:20.000Z | from django_slack_oauth.models import SlackOAuthRequest
def register_token(request, api_data):
SlackOAuthRequest.objects.create(
associated_user=request.user,
access_token=api_data.pop('access_token'),
extras=api_data
)
return request, api_data | 27.9 | 55 | 0.749104 | 34 | 279 | 5.852941 | 0.617647 | 0.140704 | 0.140704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175627 | 279 | 10 | 56 | 27.9 | 0.865217 | 0 | 0 | 0 | 0 | 0 | 0.042857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
193b0ac325ef43006df164a8a14a3f901439a20c | 185 | py | Python | main_app/forms.py | reeshabhkumarranjan/SocPay | ba3f3ea0b7b814e1ca40293b14f192b6d40adbbd | [
"MIT"
] | null | null | null | main_app/forms.py | reeshabhkumarranjan/SocPay | ba3f3ea0b7b814e1ca40293b14f192b6d40adbbd | [
"MIT"
] | null | null | null | main_app/forms.py | reeshabhkumarranjan/SocPay | ba3f3ea0b7b814e1ca40293b14f192b6d40adbbd | [
"MIT"
] | null | null | null | from django.forms import ModelForm
# class add_money_form(ModelForm):
# class Meta:
# model = Transaction
# fields = ['transaction_user_2', 'transaction_amount']
| 20.555556 | 63 | 0.675676 | 20 | 185 | 6 | 0.8 | 0.233333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006993 | 0.227027 | 185 | 8 | 64 | 23.125 | 0.832168 | 0.745946 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
193c6a68a587626a9b404a216a915daaf939afcb | 7,187 | py | Python | leetcode_python/Design/first-unique-number.py | yennanliu/Python_basics | 6a597442d39468295946cefbfb11d08f61424dc3 | [
"Unlicense"
] | null | null | null | leetcode_python/Design/first-unique-number.py | yennanliu/Python_basics | 6a597442d39468295946cefbfb11d08f61424dc3 | [
"Unlicense"
] | null | null | null | leetcode_python/Design/first-unique-number.py | yennanliu/Python_basics | 6a597442d39468295946cefbfb11d08f61424dc3 | [
"Unlicense"
] | null | null | null | """
1429. First Unique Number
# https://leetcode.ca/all/1429.html
You have a queue of integers, you need to retrieve the first unique integer in the queue.
Implement the FirstUnique class:
FirstUnique(int[] nums) Initializes the object with the numbers in the queue.
int showFirstUnique() returns the value of the f... | 27.856589 | 125 | 0.579797 | 945 | 7,187 | 4.379894 | 0.167196 | 0.019812 | 0.024644 | 0.026093 | 0.452283 | 0.376661 | 0.37497 | 0.293308 | 0.285335 | 0.276637 | 0 | 0.051214 | 0.266453 | 7,187 | 258 | 126 | 27.856589 | 0.733877 | 0.159315 | 0 | 0.518868 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.028302 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
193cb661b098c4c5b452e6a65209cb9479f364c3 | 4,326 | py | Python | get_git/github_client.py | alanahanson/get-git | a3b078a64ce8f4bb7103fcd46a0eee80cd35f87c | [
"MIT"
] | null | null | null | get_git/github_client.py | alanahanson/get-git | a3b078a64ce8f4bb7103fcd46a0eee80cd35f87c | [
"MIT"
] | null | null | null | get_git/github_client.py | alanahanson/get-git | a3b078a64ce8f4bb7103fcd46a0eee80cd35f87c | [
"MIT"
] | null | null | null | import os
from get_git.utils import make_request
GH_URL = 'https://api.github.com/graphql'
TOKEN=os.environ.get('GH_API_TOKEN')
class GithubClient:
def __init__(self, username):
self.username = username
def get_user(self):
query = """
{user(login:"%s") {
starredRepos... | 35.170732 | 100 | 0.487286 | 350 | 4,326 | 5.837143 | 0.211429 | 0.0744 | 0.082232 | 0.096916 | 0.52325 | 0.441997 | 0.441997 | 0.408223 | 0.33676 | 0.33676 | 0 | 0.006998 | 0.405455 | 4,326 | 122 | 101 | 35.459016 | 0.787325 | 0 | 0 | 0.4 | 0 | 0 | 0.596625 | 0.035599 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072727 | false | 0 | 0.018182 | 0 | 0.172727 | 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 |
193eb2395e6afc892c407dab660196002686ac81 | 15,517 | py | Python | Naluno/model.py | dstarrago/Naluno | de2a498b65ac7e10599f797e41c77d0ceae56c3e | [
"MIT"
] | null | null | null | Naluno/model.py | dstarrago/Naluno | de2a498b65ac7e10599f797e41c77d0ceae56c3e | [
"MIT"
] | null | null | null | Naluno/model.py | dstarrago/Naluno | de2a498b65ac7e10599f797e41c77d0ceae56c3e | [
"MIT"
] | null | null | null |
from __future__ import division, print_function, unicode_literals
from config import *
__all__ = ['Map', 'Vertex', 'Edge', 'State']
class State:
FREE = 0
CLOSED = 1
MANDATORY = 2
OPTIONAL = 3
class Square:
def __init__(self):
self._has_card = False
@property
... | 32.875 | 98 | 0.569827 | 1,980 | 15,517 | 4.198485 | 0.049495 | 0.057019 | 0.02887 | 0.036569 | 0.654276 | 0.549621 | 0.463491 | 0.371587 | 0.261037 | 0.248767 | 0 | 0.007443 | 0.333312 | 15,517 | 471 | 99 | 32.944798 | 0.796133 | 0.00638 | 0 | 0.400517 | 0 | 0 | 0.001205 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.191214 | false | 0 | 0.005168 | 0.095607 | 0.374677 | 0.002584 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
194088485187df0c1ce817432f67940ecca472cb | 1,035 | py | Python | combo/search/score.py | yanpei18345156216/COMBO_Python3 | 666a116dfece71e6236291e89ea2ab4d6db0ead9 | [
"MIT"
] | 139 | 2016-02-18T02:31:04.000Z | 2022-02-18T10:38:06.000Z | combo/search/score.py | yanpei18345156216/COMBO_Python3 | 666a116dfece71e6236291e89ea2ab4d6db0ead9 | [
"MIT"
] | 8 | 2016-04-18T08:10:44.000Z | 2020-12-30T08:49:33.000Z | combo/search/score.py | yanpei18345156216/COMBO_Python3 | 666a116dfece71e6236291e89ea2ab4d6db0ead9 | [
"MIT"
] | 50 | 2016-05-21T01:17:23.000Z | 2022-02-18T01:27:41.000Z | import numpy as np
import scipy.stats
def EI(predictor, training, test, fmax=None):
fmean = predictor.get_post_fmean(training, test)
fcov = predictor.get_post_fcov(training, test)
fstd = np.sqrt(fcov)
if fmax is None:
fmax = np.max(predictor.get_post_fmean(training, training))
temp1 = (f... | 24.069767 | 67 | 0.656039 | 142 | 1,035 | 4.683099 | 0.28169 | 0.144361 | 0.168421 | 0.126316 | 0.526316 | 0.526316 | 0.526316 | 0.526316 | 0.526316 | 0.526316 | 0 | 0.011321 | 0.231884 | 1,035 | 42 | 68 | 24.642857 | 0.825157 | 0 | 0 | 0.433333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.033333 | 0.066667 | 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 |
19414c412df3d7fe628fab1103ed1b978f8a57d8 | 1,528 | py | Python | dags/calculating_google_ads_network.py | BjMrq/Python-AirflowReportPipeline | 261812488d661580cb0f41808d94249cc8e0951b | [
"MIT"
] | 2 | 2019-06-28T20:08:56.000Z | 2021-03-30T15:24:10.000Z | dags/calculating_google_ads_network.py | BjMrq/Python-AirflowReportPipeline | 261812488d661580cb0f41808d94249cc8e0951b | [
"MIT"
] | null | null | null | dags/calculating_google_ads_network.py | BjMrq/Python-AirflowReportPipeline | 261812488d661580cb0f41808d94249cc8e0951b | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
LOCAL_DIR = '/tmp/'
def main(**kwargs):
# Retrieve acampus from Xcom
ti = kwargs["ti"]
source = ti.xcom_pull(
task_ids="report_init_task")
campus_name = source["campus"]
# Read data file to create a data frame
df = pd.read_csv(LOCAL_DIR + camp... | 27.781818 | 78 | 0.621073 | 198 | 1,528 | 4.631313 | 0.479798 | 0.043621 | 0.023991 | 0.037077 | 0.058888 | 0.058888 | 0 | 0 | 0 | 0 | 0 | 0.005978 | 0.233639 | 1,528 | 54 | 79 | 28.296296 | 0.777114 | 0.176047 | 0 | 0 | 0 | 0 | 0.216974 | 0.045637 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.071429 | 0 | 0.107143 | 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 |
1941b9b85d89dbfd9a868d046110eb8fc8e84d5a | 1,401 | py | Python | src/auditor/org_checker.py | agrc/agol-validator | b17f3fee55bf0b1f7d2ed21ae86b1556072da4d8 | [
"MIT"
] | null | null | null | src/auditor/org_checker.py | agrc/agol-validator | b17f3fee55bf0b1f7d2ed21ae86b1556072da4d8 | [
"MIT"
] | 21 | 2020-01-29T22:03:54.000Z | 2020-07-29T17:55:44.000Z | src/auditor/org_checker.py | agrc/agol-validator | b17f3fee55bf0b1f7d2ed21ae86b1556072da4d8 | [
"MIT"
] | null | null | null | """
Holds an OrgChecker object that runs checks at the organization level (instead of at the item level)
"""
class OrgChecker:
"""
An OrgChecker runs checks at the org level, as opposed to the item level. For example, checking whether there are
any items with the same title.
To use, instantiate and t... | 29.808511 | 117 | 0.628837 | 180 | 1,401 | 4.722222 | 0.388889 | 0.082353 | 0.056471 | 0.081176 | 0.063529 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001007 | 0.291221 | 1,401 | 46 | 118 | 30.456522 | 0.854985 | 0.403283 | 0 | 0 | 0 | 0 | 0.034621 | 0.034621 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0 | 0 | 0.315789 | 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 |
1941f729283db4adc38960fd6ecd423a78269f4b | 994 | py | Python | create_post.py | schlop/blog | 74fe7d5ce4e1c00942cb033710720098ac493844 | [
"MIT"
] | null | null | null | create_post.py | schlop/blog | 74fe7d5ce4e1c00942cb033710720098ac493844 | [
"MIT"
] | null | null | null | create_post.py | schlop/blog | 74fe7d5ce4e1c00942cb033710720098ac493844 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
from datetime import datetime
import sys
def create_blog_post(title=""):
file_date = datetime.now().strftime("%Y-%m-%d")
file_name = file_date + "---" + title.replace(" ", "-") + ".md"
print(file_name)
try:
file = open("content/posts/" + file_name, "x")
except FileExists... | 26.157895 | 80 | 0.573441 | 120 | 994 | 4.558333 | 0.541667 | 0.054845 | 0.076782 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005249 | 0.2334 | 994 | 37 | 81 | 26.864865 | 0.712598 | 0.017103 | 0 | 0 | 0 | 0 | 0.347336 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.064516 | 0 | 0.096774 | 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 |
194306ac920374768433626240e00df6f0b039ac | 1,436 | py | Python | src/python/procyon/py3.py | orbea/procyon | 469d94427d3b6e7cc2ab93606bdf968717a49150 | [
"Apache-2.0"
] | null | null | null | src/python/procyon/py3.py | orbea/procyon | 469d94427d3b6e7cc2ab93606bdf968717a49150 | [
"Apache-2.0"
] | null | null | null | src/python/procyon/py3.py | orbea/procyon | 469d94427d3b6e7cc2ab93606bdf968717a49150 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright 2017 The Procyon Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Un... | 29.306122 | 74 | 0.664345 | 194 | 1,436 | 4.917526 | 0.530928 | 0.062893 | 0.044025 | 0.04717 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012658 | 0.229805 | 1,436 | 48 | 75 | 29.916667 | 0.84991 | 0.673398 | 0 | 0.352941 | 0 | 0 | 0.071588 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1943cab210caf1760efe3b398e0efc3f17bdc7ab | 693 | py | Python | interlens/criterions/criterion.py | cctien/bimultialign | d0dad62651c25545fb7539639cb72fc8ea2570aa | [
"MIT"
] | null | null | null | interlens/criterions/criterion.py | cctien/bimultialign | d0dad62651c25545fb7539639cb72fc8ea2570aa | [
"MIT"
] | null | null | null | interlens/criterions/criterion.py | cctien/bimultialign | d0dad62651c25545fb7539639cb72fc8ea2570aa | [
"MIT"
] | null | null | null | from allennlp.common import Registrable
import torch
class Criterion(torch.nn.Module, Registrable):
"""
A `Criterion` is a `Module` that ...
"""
def __init__(self,
reduction: str = 'mean',
verbose: bool = False,) -> None:
super().__init__()
self.redu... | 23.896552 | 51 | 0.572872 | 69 | 693 | 5.565217 | 0.536232 | 0.041667 | 0.088542 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.31746 | 693 | 28 | 52 | 24.75 | 0.811839 | 0.125541 | 0 | 0.117647 | 0 | 0 | 0.018644 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.117647 | 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 |
1944d33ab633803b83a02f71e2b185489b6751ce | 2,180 | py | Python | week10_classes/seminar/generator_widgets.py | fortminors/msai-python | 1dfe19c132cd59125ef64164cce007845ffb6cf8 | [
"MIT"
] | 9 | 2021-03-12T06:59:10.000Z | 2022-01-21T20:23:31.000Z | week10_classes/seminar/generator_widgets.py | fortminors/msai-python | 1dfe19c132cd59125ef64164cce007845ffb6cf8 | [
"MIT"
] | null | null | null | week10_classes/seminar/generator_widgets.py | fortminors/msai-python | 1dfe19c132cd59125ef64164cce007845ffb6cf8 | [
"MIT"
] | 14 | 2021-03-25T15:23:19.000Z | 2022-02-05T14:34:40.000Z | # Form implementation generated from reading ui file 'generator.ui'
#
# Created by: PyQt6 UI code generator 6.2.2
#
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt6 import QtCore, QtGui, QtWidgets
class Ui_... | 45.416667 | 86 | 0.707798 | 231 | 2,180 | 6.640693 | 0.419913 | 0.099087 | 0.068449 | 0.062581 | 0.050847 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032457 | 0.180275 | 2,180 | 47 | 87 | 46.382979 | 0.825965 | 0.115138 | 0 | 0 | 1 | 0 | 0.086889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.028571 | 0 | 0.114286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
19455519ed74bb43e4ac991488c150b0c157ddd6 | 5,247 | py | Python | sportradar/NFL.py | scrambldchannel/SportradarAPIs | e42e128313647d51784b6f1f3aa201b07fca0a08 | [
"MIT"
] | 33 | 2018-07-05T17:07:06.000Z | 2022-02-05T16:32:19.000Z | sportradar/NFL.py | scrambldchannel/SportradarAPIs | e42e128313647d51784b6f1f3aa201b07fca0a08 | [
"MIT"
] | 6 | 2018-11-16T15:53:33.000Z | 2021-06-26T23:04:33.000Z | sportradar/NFL.py | scrambldchannel/SportradarAPIs | e42e128313647d51784b6f1f3aa201b07fca0a08 | [
"MIT"
] | 17 | 2018-08-08T08:10:49.000Z | 2021-10-06T00:25:21.000Z | # Sportradar APIs
# Copyright 2018 John W. Miller
# See LICENSE for details.
from sportradar.api import API
class NFL(API):
def __init__(self, api_key, format_='json', access_level='ot',
version=2, timeout=5, sleep_time=1.5):
super().__init__(api_key, format_, timeout, sleep_time)
... | 45.232759 | 90 | 0.658853 | 714 | 5,247 | 4.610644 | 0.161064 | 0.087485 | 0.068044 | 0.102066 | 0.519745 | 0.498177 | 0.481166 | 0.46294 | 0.415553 | 0.390644 | 0 | 0.00984 | 0.225272 | 5,247 | 115 | 91 | 45.626087 | 0.8 | 0.237278 | 0 | 0.301587 | 0 | 0 | 0.154008 | 0.143196 | 0 | 0 | 0 | 0 | 0 | 1 | 0.269841 | false | 0 | 0.015873 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
1945a3089e1f6313c2cc75593bf5a6b3e3eaea61 | 4,767 | py | Python | rain/models/posemb_transformer.py | qq1418381215/caat | 1422707bef7a2aeca272fa085f410bff07ced760 | [
"MIT"
] | 14 | 2021-09-15T02:49:18.000Z | 2022-03-15T06:00:54.000Z | rain/models/posemb_transformer.py | qq1418381215/caat | 1422707bef7a2aeca272fa085f410bff07ced760 | [
"MIT"
] | 11 | 2021-09-17T03:17:07.000Z | 2022-02-08T03:12:41.000Z | rain/models/posemb_transformer.py | qq1418381215/caat | 1422707bef7a2aeca272fa085f410bff07ced760 | [
"MIT"
] | 2 | 2021-11-06T19:22:29.000Z | 2022-03-24T11:56:11.000Z | import torch
import os
from torch import Tensor
import torch.nn as nn
from fairseq import options, utils, checkpoint_utils
from fairseq.dataclass import ChoiceEnum, FairseqDataclass
from fairseq.models import (
transformer,
FairseqLanguageModel,
register_model,
register_model_architecture,
FairseqEn... | 42.5625 | 102 | 0.680092 | 540 | 4,767 | 5.688889 | 0.209259 | 0.041667 | 0.041667 | 0.030924 | 0.374349 | 0.244466 | 0.178385 | 0.122396 | 0.122396 | 0.122396 | 0 | 0.008071 | 0.246276 | 4,767 | 111 | 103 | 42.945946 | 0.846925 | 0.016782 | 0 | 0.171717 | 0 | 0.010101 | 0.10831 | 0.033753 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050505 | false | 0 | 0.090909 | 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 |
1946122a44cafe21fe0a3f27b222402b8e3d88b9 | 6,345 | py | Python | ensembl_map/symbol.py | mattdoug604/ensembl_map | 5edb8a48943df4b53effe3cd7ddf4d461fdd4bae | [
"MIT"
] | null | null | null | ensembl_map/symbol.py | mattdoug604/ensembl_map | 5edb8a48943df4b53effe3cd7ddf4d461fdd4bae | [
"MIT"
] | 1 | 2020-03-24T18:20:15.000Z | 2020-03-25T22:56:06.000Z | ensembl_map/symbol.py | mattdoug604/ensembl_map | 5edb8a48943df4b53effe3cd7ddf4d461fdd4bae | [
"MIT"
] | null | null | null | from .ensembl import Ensembl
from .util import is_ensembl_id
##########
## Exon ##
##########
def get_exons(feature, feature_type):
exons = []
for exon_id in get_exon_ids(feature, feature_type):
exons.append(_query(exon_id, "exon", Ensembl().data.exon_by_id))
return exons
def get_exon_ids(featur... | 35.446927 | 96 | 0.695035 | 859 | 6,345 | 4.759022 | 0.083818 | 0.191047 | 0.149706 | 0.063601 | 0.710861 | 0.652887 | 0.565802 | 0.536937 | 0.475049 | 0.364726 | 0 | 0.00058 | 0.18424 | 6,345 | 178 | 97 | 35.646067 | 0.789219 | 0.040032 | 0 | 0.297521 | 0 | 0 | 0.105503 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.132231 | false | 0 | 0.016529 | 0.008264 | 0.380165 | 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 |
194675cce0a60e3494b3def09e1010cda20f0f00 | 1,113 | py | Python | MiGRIDS/InputHandler/readAllTimeSeries.py | mmuellerstoffels/GBSTools | aebd8aa6667a2284aaa16424f9b9d22ca3a2a375 | [
"MIT"
] | 8 | 2019-02-18T14:18:55.000Z | 2022-03-04T12:34:24.000Z | MiGRIDS/InputHandler/readAllTimeSeries.py | mmuellerstoffels/GBSTools | aebd8aa6667a2284aaa16424f9b9d22ca3a2a375 | [
"MIT"
] | 3 | 2018-09-01T00:30:19.000Z | 2018-09-01T01:09:50.000Z | MiGRIDS/InputHandler/readAllTimeSeries.py | acep-uaf/GBSTools | aebd8aa6667a2284aaa16424f9b9d22ca3a2a375 | [
"MIT"
] | 3 | 2019-06-10T19:49:22.000Z | 2021-05-08T08:42:57.000Z | from MiGRIDS.InputHandler.readCsv import readCsv
def readAllTimeSeries(inputDict):
'''
Cycles through a list of files in the AVEC format and imports them into a single dataframe.
:param inputDict:
:return: pandas.DataFrame with data from all input files.
'''
df = None
for i in range(len(inp... | 33.727273 | 95 | 0.591195 | 132 | 1,113 | 4.977273 | 0.522727 | 0.082192 | 0.057839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010724 | 0.329739 | 1,113 | 32 | 96 | 34.78125 | 0.869973 | 0.340521 | 0 | 0 | 0 | 0 | 0.055477 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.055556 | 0 | 0.166667 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1946a0c16887bdd25321c997aa98e68109542c3a | 12,725 | py | Python | tests/test_dryruns.py | gmcgoldr/pyteal_utils | 6dc33d1f18b73ce26163040e37fb145ccd5c1de8 | [
"MIT"
] | 2 | 2021-12-16T15:43:46.000Z | 2022-01-11T13:24:50.000Z | tests/test_dryruns.py | gmcgoldr/pyteal_utils | 6dc33d1f18b73ce26163040e37fb145ccd5c1de8 | [
"MIT"
] | null | null | null | tests/test_dryruns.py | gmcgoldr/pyteal_utils | 6dc33d1f18b73ce26163040e37fb145ccd5c1de8 | [
"MIT"
] | 1 | 2022-01-11T13:25:03.000Z | 2022-01-11T13:25:03.000Z | import algosdk as ag
import pyteal as tl
import pytest
from algosdk.future.transaction import OnComplete
from algosdk.v2client.algod import AlgodClient
from algosdk.v2client.models.application_local_state import ApplicationLocalState
from algosdk.v2client.models.application_state_schema import ApplicationStateSchema
f... | 36.048159 | 88 | 0.691473 | 1,660 | 12,725 | 5.040361 | 0.112048 | 0.052588 | 0.033465 | 0.040158 | 0.715071 | 0.618143 | 0.547747 | 0.506155 | 0.404805 | 0.358193 | 0 | 0.01623 | 0.186562 | 12,725 | 352 | 89 | 36.150568 | 0.792097 | 0.035678 | 0 | 0.371025 | 0 | 0 | 0.039484 | 0 | 0 | 0 | 0 | 0 | 0.261484 | 1 | 0.09894 | false | 0.053004 | 0.031802 | 0 | 0.130742 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
19476d50e68179e3181c58bfc67d757bccf5c292 | 6,191 | py | Python | aatrn.py | kmkurn/uxtspwsd | ea4da18cec023d0dc487ee061861e6715edc2e85 | [
"MIT"
] | null | null | null | aatrn.py | kmkurn/uxtspwsd | ea4da18cec023d0dc487ee061861e6715edc2e85 | [
"MIT"
] | null | null | null | aatrn.py | kmkurn/uxtspwsd | ea4da18cec023d0dc487ee061861e6715edc2e85 | [
"MIT"
] | null | null | null | # Copyright (c) 2021 Kemal Kurniawan
from typing import Optional
import math
from einops import rearrange
from torch import BoolTensor, Tensor
from crf import DepTreeCRF, LinearCRF
def compute_aatrn_loss(
scores: Tensor,
aa_mask: BoolTensor,
mask: Optional[BoolTensor] = None,
projective: bool = Fal... | 37.295181 | 95 | 0.709255 | 876 | 6,191 | 4.769406 | 0.139269 | 0.03686 | 0.015318 | 0.034466 | 0.689086 | 0.664433 | 0.606032 | 0.574677 | 0.453088 | 0.432504 | 0 | 0.011621 | 0.19383 | 6,191 | 165 | 96 | 37.521212 | 0.825486 | 0.139557 | 0 | 0.363636 | 0 | 0 | 0.070877 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 1 | 0.072727 | false | 0 | 0.045455 | 0 | 0.209091 | 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 |
1947c38029e5b214e95d735bbab912cedc55ad7e | 5,151 | py | Python | wildlifelicensing/apps/returns/models.py | jawaidm/wildlifelicensing | 87e8e9ab163e0d7bbb0c7a654a13ce8a4d8fcf82 | [
"Apache-2.0"
] | null | null | null | wildlifelicensing/apps/returns/models.py | jawaidm/wildlifelicensing | 87e8e9ab163e0d7bbb0c7a654a13ce8a4d8fcf82 | [
"Apache-2.0"
] | 11 | 2019-03-19T02:03:11.000Z | 2019-05-31T07:20:59.000Z | wildlifelicensing/apps/returns/models.py | jawaidm/wildlifelicensing | 87e8e9ab163e0d7bbb0c7a654a13ce8a4d8fcf82 | [
"Apache-2.0"
] | 2 | 2020-08-10T10:17:10.000Z | 2021-10-31T23:20:53.000Z | from __future__ import unicode_literals
from django.db import models
from django.contrib.postgres.fields.jsonb import JSONField
from django.core.exceptions import ValidationError
import datapackage
import jsontableschema
from ledger.accounts.models import RevisionedMixin, EmailUser
from wildlifelicensing.apps.main.m... | 34.57047 | 113 | 0.664143 | 555 | 5,151 | 6.061261 | 0.291892 | 0.03805 | 0.015458 | 0.020214 | 0.023187 | 0.023187 | 0 | 0 | 0 | 0 | 0 | 0.003549 | 0.234129 | 5,151 | 148 | 114 | 34.804054 | 0.849176 | 0.116482 | 0 | 0.136842 | 0 | 0 | 0.083871 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.094737 | false | 0 | 0.084211 | 0.042105 | 0.589474 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
194979bac6f323e9a28bd3fab05ed2877e60ddea | 605 | py | Python | CE_to_AE_enemy_converter.py | Plouni/mari0_se_ce_to_ae_level_converter | 9aa0d0ebffac4df1b5d541ff003bd9abeb187a0a | [
"MIT"
] | 1 | 2022-02-03T23:07:20.000Z | 2022-02-03T23:07:20.000Z | CE_to_AE_enemy_converter.py | Plouni/mari0_se_ce_to_ae_level_converter | 9aa0d0ebffac4df1b5d541ff003bd9abeb187a0a | [
"MIT"
] | null | null | null | CE_to_AE_enemy_converter.py | Plouni/mari0_se_ce_to_ae_level_converter | 9aa0d0ebffac4df1b5d541ff003bd9abeb187a0a | [
"MIT"
] | null | null | null | import os
import json
import logging
cwd = os.getcwd()
list_enemy = [file for file in os.listdir(cwd) if '.json' in file[-5:]]
for enemy in list_enemy:
try:
with open(cwd + '\\' + enemy, 'r') as f:
enemy_txt = f.read()
enemy_txt = enemy_txt.replace('offsetx','offsetX').... | 26.304348 | 194 | 0.591736 | 77 | 605 | 4.558442 | 0.428571 | 0.11396 | 0.062678 | 0.091168 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002188 | 0.244628 | 605 | 22 | 195 | 27.5 | 0.765864 | 0 | 0 | 0 | 0 | 0 | 0.196694 | 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 |
1949bf476b27ab37588853e2472ecb87a7d25778 | 5,485 | py | Python | tests/python/tensor_graph/test/test_internal/correctness/grad-op-test/te-cat-case2.py | QinHan-Erin/AMOS | 634bf48edf4015e4a69a8c32d49b96bce2b5f16f | [
"Apache-2.0"
] | 22 | 2022-03-18T07:29:31.000Z | 2022-03-23T14:54:32.000Z | tests/python/tensor_graph/test/test_internal/correctness/grad-op-test/te-cat-case2.py | QinHan-Erin/AMOS | 634bf48edf4015e4a69a8c32d49b96bce2b5f16f | [
"Apache-2.0"
] | null | null | null | tests/python/tensor_graph/test/test_internal/correctness/grad-op-test/te-cat-case2.py | QinHan-Erin/AMOS | 634bf48edf4015e4a69a8c32d49b96bce2b5f16f | [
"Apache-2.0"
] | 2 | 2022-03-18T08:26:34.000Z | 2022-03-20T06:02:48.000Z | from tvm import testing
from tvm from tvm import topi
import tvm
import numpy as np
import torch
dim0 = 3
dim1 = 4
dim2 = 1
shape_size1 = [dim0, dim1, dim2]
shape_size2 = [dim0, dim1, dim2 * 8]
dtype = "float32"
cap0 = tvm.te.placeholder(shape_size1, dtype=dtype, name="cap0")
cap1 = tvm.te.placeholder(shape_size1, ... | 43.531746 | 95 | 0.699909 | 924 | 5,485 | 3.953463 | 0.117965 | 0.068437 | 0.03942 | 0.064057 | 0.42294 | 0.42294 | 0.39228 | 0.311799 | 0.202299 | 0.194087 | 0 | 0.072335 | 0.138013 | 5,485 | 125 | 96 | 43.88 | 0.700296 | 0.010392 | 0 | 0 | 0 | 0 | 0.046276 | 0 | 0 | 0 | 0 | 0 | 0.078431 | 0 | null | null | 0 | 0.04902 | null | null | 0.039216 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
194c38c24bff2dd1b26d3bd458a2d3f23f28316b | 121 | py | Python | controle_de_estoque/app.py | rodrigo-labs/controle_estoque | 890acefef2c3dace68723d086a0d40f27ff20476 | [
"MIT"
] | 6 | 2020-09-20T21:38:47.000Z | 2021-11-15T10:45:02.000Z | controle_de_estoque/app.py | rodrigo-labs/controle_estoque | 890acefef2c3dace68723d086a0d40f27ff20476 | [
"MIT"
] | null | null | null | controle_de_estoque/app.py | rodrigo-labs/controle_estoque | 890acefef2c3dace68723d086a0d40f27ff20476 | [
"MIT"
] | 6 | 2019-06-27T18:15:51.000Z | 2022-02-17T19:31:59.000Z | from controle_de_estoque.controllers import controllers
if __name__ == "__main__":
controllers.principal_controle()
| 24.2 | 55 | 0.809917 | 13 | 121 | 6.692308 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115702 | 121 | 4 | 56 | 30.25 | 0.813084 | 0 | 0 | 0 | 0 | 0 | 0.066116 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
194c851ed5bb33eaa2cf355799844f072e6955b4 | 2,334 | py | Python | pagewalker/pagewalker/analyzer/devtools/devtools_protocol.py | rafal-qa/page-walker | 8940a819d436d46f729c9307effc5118d692cad0 | [
"MIT"
] | 16 | 2018-07-08T19:20:15.000Z | 2021-01-08T22:08:49.000Z | pagewalker/pagewalker/analyzer/devtools/devtools_protocol.py | rafal-qa/page-walker | 8940a819d436d46f729c9307effc5118d692cad0 | [
"MIT"
] | null | null | null | pagewalker/pagewalker/analyzer/devtools/devtools_protocol.py | rafal-qa/page-walker | 8940a819d436d46f729c9307effc5118d692cad0 | [
"MIT"
] | 5 | 2018-10-26T13:08:10.000Z | 2020-06-20T21:03:17.000Z | from .connector import websocket_connector, http_connector
class DevtoolsProtocol(object):
def __init__(self):
self._http = http_connector.HttpConnector()
self.tab_socket = None
self.tab_target_id = None
@property
def browser_data(self):
return self._http.browser_data
... | 33.342857 | 86 | 0.653385 | 286 | 2,334 | 4.982517 | 0.20979 | 0.068772 | 0.082105 | 0.052632 | 0.162105 | 0.143158 | 0.143158 | 0.143158 | 0.116491 | 0.065965 | 0 | 0 | 0.252785 | 2,334 | 69 | 87 | 33.826087 | 0.817087 | 0 | 0 | 0.196429 | 0 | 0 | 0.059554 | 0 | 0 | 0 | 0 | 0 | 0.107143 | 1 | 0.214286 | false | 0 | 0.017857 | 0.017857 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
194c8b5cc1cd58612c803208f1241b2813f11d98 | 9,523 | py | Python | pysnmp/CISCO-IETF-PW-FR-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/CISCO-IETF-PW-FR-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/CISCO-IETF-PW-FR-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module CISCO-IETF-PW-FR-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-IETF-PW-FR-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 17:43:46 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (defau... | 119.0375 | 1,132 | 0.748609 | 1,108 | 9,523 | 6.43231 | 0.148014 | 0.008699 | 0.012207 | 0.016276 | 0.469342 | 0.408587 | 0.358636 | 0.350779 | 0.3244 | 0.322436 | 0 | 0.069954 | 0.084322 | 9,523 | 79 | 1,133 | 120.544304 | 0.747362 | 0.035073 | 0 | 0.057143 | 0 | 0 | 0.191721 | 0.012092 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
195261959efe1d29efc067b8292d053eeea3aa60 | 1,639 | py | Python | Chapter05/non-model-view_code.py | trappn/Mastering-GUI-Programming-with-Python | 14392c06dd3b9cf655420d09853bce6bfe8fe16d | [
"MIT"
] | 138 | 2018-12-06T15:48:07.000Z | 2022-03-28T12:23:12.000Z | Chapter05/non-model-view_code.py | thema27/Mastering-GUI-Programming-with-Python | 66f33ff6c07b7e22a396a982a5502bd93c20d785 | [
"MIT"
] | 16 | 2019-11-21T08:17:42.000Z | 2020-08-19T06:56:48.000Z | Chapter05/non-model-view_code.py | thema27/Mastering-GUI-Programming-with-Python | 66f33ff6c07b7e22a396a982a5502bd93c20d785 | [
"MIT"
] | 116 | 2018-12-08T18:13:02.000Z | 2022-03-22T14:30:57.000Z | import sys
from os import path
from PyQt5 import QtWidgets as qtw
from PyQt5 import QtGui as qtg
from PyQt5 import QtCore as qtc
class MainWindow(qtw.QMainWindow):
def __init__(self):
"""MainWindow constructor.
This widget will be our main window.
We'll define all the UI components in h... | 27.779661 | 60 | 0.583282 | 191 | 1,639 | 4.921466 | 0.513089 | 0.051064 | 0.047872 | 0.073404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002686 | 0.318487 | 1,639 | 58 | 61 | 28.258621 | 0.838854 | 0.147651 | 0 | 0 | 0 | 0 | 0.060895 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.125 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
195268ef4f0f6c79ac3ca7cf1356d6b54616df26 | 31 | py | Python | src/__init__.py | abdelsamea/DeTraC | 2c94d55908285fc9cbb24086da63078ee917525a | [
"MIT"
] | 1 | 2020-09-17T14:17:50.000Z | 2020-09-17T14:17:50.000Z | src/__init__.py | arkkhanu/DeTraC_COVId19 | ab03719b49a1a048f74f08600a6670f6757bbe60 | [
"MIT"
] | null | null | null | src/__init__.py | arkkhanu/DeTraC_COVId19 | ab03719b49a1a048f74f08600a6670f6757bbe60 | [
"MIT"
] | 1 | 2021-04-14T08:52:36.000Z | 2021-04-14T08:52:36.000Z | import tools
import frameworks
| 10.333333 | 17 | 0.870968 | 4 | 31 | 6.75 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129032 | 31 | 2 | 18 | 15.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
19536799d88c875ad08a6f5696624ad8dc96acf2 | 442,707 | py | Python | data/chars.py | Shadybloom/dnd-mass-combat-simulation | 169bc6cfb967f871290014b342e926b1f71cde81 | [
"MIT"
] | 3 | 2020-05-27T08:36:00.000Z | 2021-11-22T09:04:08.000Z | data/chars.py | Shadybloom/dnd-mass-combat-simulation | 169bc6cfb967f871290014b342e926b1f71cde81 | [
"MIT"
] | null | null | null | data/chars.py | Shadybloom/dnd-mass-combat-simulation | 169bc6cfb967f871290014b342e926b1f71cde81 | [
"MIT"
] | 1 | 2021-11-21T03:57:33.000Z | 2021-11-21T03:57:33.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Загружаем комплекты снаряжения (soldiers_pack)
from data.items import *
#----
# Лишённые индивидуальности заготовки солдат. Используются в squad_generation
metadict_chars = {}
#----
# Сельское ополчение (крестьяне и городская беднота):
metadict_chars['Commoner 1 lvl ... | 29.188831 | 133 | 0.551602 | 44,288 | 442,707 | 5.282853 | 0.055139 | 0.007933 | 0.027974 | 0.045237 | 0.886753 | 0.861519 | 0.836229 | 0.817487 | 0.80322 | 0.788654 | 0 | 0.023333 | 0.274123 | 442,707 | 15,166 | 134 | 29.190756 | 0.704641 | 0.119587 | 0 | 0.838338 | 0 | 0 | 0.477312 | 0.039806 | 0 | 0 | 0 | 0.000066 | 0 | 1 | 0 | false | 0.000946 | 0.000079 | 0 | 0.000079 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
1953a970695d2673fad8c3f0a83d3f344f3fbfa4 | 5,647 | py | Python | sandbox/kl_div/kl.py | samuelfneumann/RLControl | 71430b1de2e4262483908932eb44579c2ec8216d | [
"Apache-2.0"
] | 9 | 2018-07-30T20:12:47.000Z | 2021-02-05T17:02:04.000Z | sandbox/kl_div/kl.py | samuelfneumann/RLControl | 71430b1de2e4262483908932eb44579c2ec8216d | [
"Apache-2.0"
] | 14 | 2020-01-28T22:38:58.000Z | 2022-02-10T00:11:21.000Z | sandbox/kl_div/kl.py | samuelfneumann/RLControl | 71430b1de2e4262483908932eb44579c2ec8216d | [
"Apache-2.0"
] | 3 | 2018-08-08T14:52:53.000Z | 2021-01-23T18:00:05.000Z | import numpy as np
import scipy as sp
import scipy.stats
import matplotlib.pyplot as plt
class GaussianMixture1D:
def __init__(self, mixture_probs, means, stds):
self.num_mixtures = len(mixture_probs)
self.mixture_probs = mixture_probs
self.means = means
self.stds = stds
def s... | 38.155405 | 168 | 0.64583 | 899 | 5,647 | 3.684093 | 0.150167 | 0.084541 | 0.092995 | 0.084541 | 0.452899 | 0.422705 | 0.384662 | 0.306763 | 0.28744 | 0.270531 | 0 | 0.015242 | 0.233221 | 5,647 | 147 | 169 | 38.414966 | 0.749654 | 0.019834 | 0 | 0.243478 | 0 | 0 | 0.042134 | 0.007957 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069565 | false | 0 | 0.034783 | 0.008696 | 0.165217 | 0.017391 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1953dea348e57ea12a9ad8bb64e5c7842c0eba20 | 37,416 | py | Python | pysnmp-with-texts/CIRCUIT-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/CIRCUIT-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/CIRCUIT-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module CIRCUIT-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CIRCUIT-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:49:40 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 0... | 146.729412 | 3,536 | 0.795836 | 4,434 | 37,416 | 6.715156 | 0.128778 | 0.064081 | 0.112141 | 0.010747 | 0.581763 | 0.435365 | 0.342233 | 0.32712 | 0.319261 | 0.278388 | 0 | 0.050678 | 0.09397 | 37,416 | 254 | 3,537 | 147.307087 | 0.82764 | 0.008446 | 0 | 0 | 0 | 0.1417 | 0.33531 | 0.002373 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.02834 | 0.02834 | 0 | 0.02834 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
19556d177fed4def9f6818303c33e5aa562c38b8 | 904 | py | Python | SortingAlgorithm/shell_sort.py | hpf0532/algorithms_demo | 4f02444ee634295e5cbf8e5624d4e5b65931897d | [
"MIT"
] | null | null | null | SortingAlgorithm/shell_sort.py | hpf0532/algorithms_demo | 4f02444ee634295e5cbf8e5624d4e5b65931897d | [
"MIT"
] | null | null | null | SortingAlgorithm/shell_sort.py | hpf0532/algorithms_demo | 4f02444ee634295e5cbf8e5624d4e5b65931897d | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
# author: hpf
# create time: 2020/7/16 21:33
# file: shell_sort.py
# IDE: PyCharm
# 希尔排序(Shell Sort)是插入排序的一种。也称缩小增量排序,是直接插入排序算法的一种更高效的改进版本。
# 希尔排序是非稳定排序算法。该方法因DL.Shell于1959年提出而得名。 希尔排序是把记录按下标的一定增量分组,
# 对每组使用直接插入排序算法排序;随着增量逐渐减少,每组包含的关键词越来越多,当增量减至1时,整个文件恰被分成一组,算法便终止。
def shell_sort(alist):
n... | 21.52381 | 67 | 0.535398 | 112 | 904 | 4.223214 | 0.625 | 0.07611 | 0.069767 | 0.07611 | 0.095137 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064784 | 0.334071 | 904 | 42 | 68 | 21.52381 | 0.72093 | 0.390487 | 0 | 0.111111 | 0 | 0 | 0.014953 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0 | 0 | 0.055556 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
19557822a163b70d4aa82e704dabbed7f22587fe | 4,273 | py | Python | tests/rl/test_rainbow.py | pocokhc/simple_rl | 765f12f392f87e6897027905d74f1bced6a2b7bf | [
"MIT"
] | 1 | 2022-03-01T09:16:57.000Z | 2022-03-01T09:16:57.000Z | tests/rl/test_rainbow.py | pocokhc/simple_rl | 765f12f392f87e6897027905d74f1bced6a2b7bf | [
"MIT"
] | null | null | null | tests/rl/test_rainbow.py | pocokhc/simple_rl | 765f12f392f87e6897027905d74f1bced6a2b7bf | [
"MIT"
] | null | null | null | import unittest
import srl
from srl.test import TestRL
class Test(unittest.TestCase):
def setUp(self) -> None:
self.tester = TestRL()
self.rl_config = srl.rl.rainbow.Config()
def test_sequence(self):
self.tester.play_sequence(self.rl_config)
def test_mp(self):
self.teste... | 36.521368 | 101 | 0.670723 | 585 | 4,273 | 4.577778 | 0.17094 | 0.15534 | 0.228529 | 0.089619 | 0.668036 | 0.567214 | 0.513443 | 0.513443 | 0.473114 | 0.437267 | 0 | 0.049121 | 0.228177 | 4,273 | 116 | 102 | 36.836207 | 0.762887 | 0.092441 | 0 | 0.388235 | 0 | 0 | 0.039566 | 0.006465 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.035294 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1955c95ee465de712840c70524c29d14aa03188f | 353 | py | Python | challenge_3/python/bryantpq/find_majority.py | rchicoli/2017-challenges | 44f0b672e5dea34de1dde131b6df837d462f8e29 | [
"Apache-2.0"
] | 271 | 2017-01-01T22:58:36.000Z | 2021-11-28T23:05:29.000Z | challenge_3/python/bryantpq/find_majority.py | AakashOfficial/2017Challenges | a8f556f1d5b43c099a0394384c8bc2d826f9d287 | [
"Apache-2.0"
] | 283 | 2017-01-01T23:26:05.000Z | 2018-03-23T00:48:55.000Z | challenge_3/python/bryantpq/find_majority.py | AakashOfficial/2017Challenges | a8f556f1d5b43c099a0394384c8bc2d826f9d287 | [
"Apache-2.0"
] | 311 | 2017-01-01T22:59:23.000Z | 2021-09-23T00:29:12.000Z | def find_majority(a):
d = {}
l = len(a)
for i in a:
if i in d:
d[i] += 1
if d[i] > l / 2:
return i
else:
d[i] = 1
return
if __name__ == "__main__":
a = [2,2,3,7,5,7,7,7,4,7,2,7,4,5,6,7,7,8,6,7,7,8,10,12,29,30,19,10,7,7,7,7,7,7,7,... | 19.611111 | 89 | 0.413598 | 76 | 353 | 1.789474 | 0.381579 | 0.176471 | 0.176471 | 0.176471 | 0.066176 | 0.066176 | 0.066176 | 0.066176 | 0 | 0 | 0 | 0.211009 | 0.382436 | 353 | 17 | 90 | 20.764706 | 0.412844 | 0 | 0 | 0 | 0 | 0 | 0.022663 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0 | 0 | 0.214286 | 0.071429 | 0 | 0 | 1 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1956211e1137a8ec3efab729e58887fd70b0e317 | 7,307 | py | Python | data-structures/double-list.py | costincaraivan/cs-refresher | 008fdb2af661310c65f656f017ec34e5df004424 | [
"MIT"
] | 1 | 2018-06-12T12:00:33.000Z | 2018-06-12T12:00:33.000Z | data-structures/double-list.py | costincaraivan/cs-refresher | 008fdb2af661310c65f656f017ec34e5df004424 | [
"MIT"
] | null | null | null | data-structures/double-list.py | costincaraivan/cs-refresher | 008fdb2af661310c65f656f017ec34e5df004424 | [
"MIT"
] | null | null | null | # Completely silly exercises, in real life use:
# Python lists: https://docs.python.org/3/tutorial/datastructures.html
import unittest
import logging
logging.basicConfig(level=logging.INFO)
# - DoublyLinkedListNode class.
class DoublyLinkedListNode:
value = None
previousNode = None
nextNode = None
... | 26.765568 | 72 | 0.596141 | 801 | 7,307 | 5.319601 | 0.154806 | 0.080028 | 0.118751 | 0.036142 | 0.547524 | 0.47172 | 0.437691 | 0.411406 | 0.37057 | 0.306736 | 0 | 0.012621 | 0.306008 | 7,307 | 272 | 73 | 26.863971 | 0.827647 | 0.11359 | 0 | 0.505682 | 0 | 0 | 0.002339 | 0 | 0 | 0 | 0 | 0 | 0.051136 | 1 | 0.136364 | false | 0 | 0.011364 | 0.011364 | 0.267045 | 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 |
19580f1da14543fc46625b13a2d4fdf6ece370dd | 888 | py | Python | Ch. 2/tcp_server.py | Kediel/BHP | b0cd2aa82c95eef58f50d9d7d137fddcb70644cb | [
"MIT"
] | null | null | null | Ch. 2/tcp_server.py | Kediel/BHP | b0cd2aa82c95eef58f50d9d7d137fddcb70644cb | [
"MIT"
] | 4 | 2017-07-27T17:34:24.000Z | 2017-07-31T23:13:03.000Z | Ch. 2/tcp_server.py | Kediel/BHP | b0cd2aa82c95eef58f50d9d7d137fddcb70644cb | [
"MIT"
] | null | null | null | import socket
import threading
bind_ip = "0.0.0.0"
bind_port = 9999
server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server.bind((bind_ip, bind_port))
server.listen(5)
print "[*] Listening on %s:%d" % (bind_ip, bind_port)
# This is our client-handling thread
def handle_client(client_socket):
#... | 23.368421 | 79 | 0.614865 | 114 | 888 | 4.649123 | 0.517544 | 0.090566 | 0.011321 | 0.05283 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02322 | 0.272523 | 888 | 37 | 80 | 24 | 0.797214 | 0.152027 | 0 | 0 | 0 | 0 | 0.112299 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
195b152f91cd032e891708e898116a34b190d47e | 210 | py | Python | setup.py | nycz/ishu | 6596b6e330c3439516dbd6cafe48d99388874aba | [
"MIT"
] | null | null | null | setup.py | nycz/ishu | 6596b6e330c3439516dbd6cafe48d99388874aba | [
"MIT"
] | 40 | 2015-08-14T23:11:08.000Z | 2019-11-11T22:27:29.000Z | setup.py | nycz/ishu | 6596b6e330c3439516dbd6cafe48d99388874aba | [
"MIT"
] | null | null | null | import setuptools
import site
import sys
# This is a workaround to allow --user and -e combined
# See https://github.com/pypa/pip/issues/7953
site.ENABLE_USER_SITE = "--user" in sys.argv[1:]
setuptools.setup()
| 26.25 | 54 | 0.752381 | 35 | 210 | 4.457143 | 0.771429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027174 | 0.12381 | 210 | 7 | 55 | 30 | 0.820652 | 0.457143 | 0 | 0 | 0 | 0 | 0.054054 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.6 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
195cbcd5dccdd7c73a9db51970b9798eb35a32b9 | 466 | py | Python | Python Programs/guess the number.py | sayanpoddar123/RTU-DigitalLibrary | 658500ce3ee089d622cea0f6b49dfb8b485d0be6 | [
"MIT"
] | null | null | null | Python Programs/guess the number.py | sayanpoddar123/RTU-DigitalLibrary | 658500ce3ee089d622cea0f6b49dfb8b485d0be6 | [
"MIT"
] | null | null | null | Python Programs/guess the number.py | sayanpoddar123/RTU-DigitalLibrary | 658500ce3ee089d622cea0f6b49dfb8b485d0be6 | [
"MIT"
] | null | null | null | #Guess program
n=18
a=0
y = 1
print("Number of guesses is limited to only 4 times")
while a<=3:
z=int(input("Enter your choice="))
if z>n:
print("Please less your number")
a+=1
elif z<n:
print("Please increase your number")
a += 1
else:
print("You win")
... | 16.642857 | 64 | 0.555794 | 76 | 466 | 3.407895 | 0.539474 | 0.015444 | 0.11583 | 0.100386 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034375 | 0.313305 | 466 | 27 | 65 | 17.259259 | 0.775 | 0.027897 | 0 | 0.1 | 0 | 0 | 0.412027 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.35 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
195cc099346d6a0faa355accfa24ab213925cda9 | 8,019 | py | Python | src/soundsystem.py | WinterLicht/Chaos-Projectile | 3fffb788b241b7baa4247c1e630d83a7210ddc2e | [
"CC-BY-4.0"
] | 59 | 2015-03-25T21:29:06.000Z | 2022-01-17T22:48:05.000Z | src/soundsystem.py | WinterLicht/Chaos-Projectile | 3fffb788b241b7baa4247c1e630d83a7210ddc2e | [
"CC-BY-4.0"
] | 11 | 2015-07-07T07:10:42.000Z | 2021-11-21T12:47:42.000Z | src/soundsystem.py | WinterLicht/Chaos-Projectile | 3fffb788b241b7baa4247c1e630d83a7210ddc2e | [
"CC-BY-4.0"
] | 19 | 2015-07-13T06:44:44.000Z | 2022-02-05T03:09:27.000Z | """
.. module:: soundsystem
:Platform: Unix, Windows
:Synopsis: Sound system
"""
import os
import pygame
import events
import ai
class SoundSystem(object):
"""Render system.
:Attributes:
- *evManager*: event manager
- *world*: game world
- *screen*: game screen
"""
... | 43.819672 | 111 | 0.60419 | 959 | 8,019 | 4.790407 | 0.148071 | 0.036569 | 0.04963 | 0.078363 | 0.623422 | 0.535263 | 0.428603 | 0.415107 | 0.386156 | 0.328907 | 0 | 0.007389 | 0.308018 | 8,019 | 183 | 112 | 43.819672 | 0.820508 | 0.07981 | 0 | 0.344828 | 0 | 0 | 0.034091 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02069 | false | 0.006897 | 0.027586 | 0 | 0.062069 | 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 |
195d27bed09f6f47effd9b2ab9128a9b8b6d2db2 | 2,227 | py | Python | hammer/django_bulk/bulk_create_test.py | awolfly9/hammer | 03add3037461154fd764bb3340e68393e16f015f | [
"MIT"
] | null | null | null | hammer/django_bulk/bulk_create_test.py | awolfly9/hammer | 03add3037461154fd764bb3340e68393e16f015f | [
"MIT"
] | null | null | null | hammer/django_bulk/bulk_create_test.py | awolfly9/hammer | 03add3037461154fd764bb3340e68393e16f015f | [
"MIT"
] | null | null | null | # -*- coding=utf-8 -*-
import django
import os
import sys
import datetime
import random
import time
os.environ['DJANGO_SETTINGS_MODULE'] = 'web.settings'
django.setup()
from web.other.models import BilibiliPlay
from .helper import bulk_create
def test_once_get():
start = time.time()
for i in range(0, 1000... | 26.511905 | 186 | 0.606646 | 287 | 2,227 | 4.508711 | 0.236934 | 0.123648 | 0.162287 | 0.120556 | 0.646832 | 0.611283 | 0.595054 | 0.55796 | 0.493045 | 0.443586 | 0 | 0.017857 | 0.245622 | 2,227 | 83 | 187 | 26.831325 | 0.752381 | 0.033678 | 0 | 0.421053 | 0 | 0 | 0.130123 | 0.01127 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070175 | false | 0 | 0.140351 | 0 | 0.210526 | 0.070175 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
195d837e267b2d3b0b05977370db15211b8d4942 | 37,304 | py | Python | tests/rnacentral/search_export/exporter_test.py | RNAcentral/rnacentral-import-pipeline | 238e573440c72581a051b16c15f56fcd25bece74 | [
"Apache-2.0"
] | 1 | 2018-08-09T14:41:16.000Z | 2018-08-09T14:41:16.000Z | tests/rnacentral/search_export/exporter_test.py | RNAcentral/rnacentral-import-pipeline | 238e573440c72581a051b16c15f56fcd25bece74 | [
"Apache-2.0"
] | 60 | 2015-02-04T16:43:53.000Z | 2022-01-27T10:28:43.000Z | tests/rnacentral/search_export/exporter_test.py | RNAcentral/rnacentral-import-pipeline | 238e573440c72581a051b16c15f56fcd25bece74 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Copyright [2009-2017] EMBL-European Bioinformatics Institute
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... | 31.829352 | 134 | 0.562781 | 3,450 | 37,304 | 5.865507 | 0.306377 | 0.022238 | 0.019767 | 0.045068 | 0.24827 | 0.21526 | 0.179729 | 0.154774 | 0.121467 | 0.077337 | 0 | 0.216419 | 0.297314 | 37,304 | 1,171 | 135 | 31.856533 | 0.555526 | 0.077418 | 0 | 0.164506 | 0 | 0 | 0.351747 | 0.028698 | 0 | 0 | 0 | 0 | 0.045862 | 1 | 0.050847 | false | 0 | 0.013958 | 0.000997 | 0.071785 | 0.005982 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
195f3150d0257121a8dd90bf3f90e35c01b0fa1c | 1,921 | py | Python | misago/threads/tests/test_thread_poll_api.py | HenryChenV/iJiangNan | 68f156d264014939f0302222e16e3125119dd3e3 | [
"MIT"
] | 1 | 2017-07-25T03:04:36.000Z | 2017-07-25T03:04:36.000Z | misago/threads/tests/test_thread_poll_api.py | HenryChenV/iJiangNan | 68f156d264014939f0302222e16e3125119dd3e3 | [
"MIT"
] | null | null | null | misago/threads/tests/test_thread_poll_api.py | HenryChenV/iJiangNan | 68f156d264014939f0302222e16e3125119dd3e3 | [
"MIT"
] | null | null | null | import json
from django.urls import reverse
from misago.acl.testutils import override_acl
from misago.categories.models import Category
from misago.threads import testutils
from misago.users.testutils import AuthenticatedUserTestCase
class ThreadPollApiTestCase(AuthenticatedUserTestCase):
def setUp(self):
... | 30.015625 | 93 | 0.605934 | 228 | 1,921 | 4.947368 | 0.289474 | 0.031915 | 0.039894 | 0.031915 | 0.31383 | 0.31383 | 0.267731 | 0.148936 | 0.083333 | 0.083333 | 0 | 0.005764 | 0.27746 | 1,921 | 63 | 94 | 30.492063 | 0.806916 | 0 | 0 | 0.122449 | 0 | 0 | 0.135867 | 0.042686 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102041 | false | 0 | 0.122449 | 0.040816 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
19618fa1e0fd69bf4ce89b6dd9ce0cf4d5bdf4a2 | 33 | py | Python | PosPy/__init__.py | richierh/PointofSalePy | 54fc11b5f167d361c75b6b1cb890c7020393d46c | [
"Apache-2.0"
] | null | null | null | PosPy/__init__.py | richierh/PointofSalePy | 54fc11b5f167d361c75b6b1cb890c7020393d46c | [
"Apache-2.0"
] | null | null | null | PosPy/__init__.py | richierh/PointofSalePy | 54fc11b5f167d361c75b6b1cb890c7020393d46c | [
"Apache-2.0"
] | null | null | null | #!usr/bin/python
import __main__
| 11 | 16 | 0.787879 | 5 | 33 | 4.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 33 | 2 | 17 | 16.5 | 0.733333 | 0.454545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
196257af7109744f1d324ddf851e3f43ec9a1048 | 457 | py | Python | __init__.py | patilaja/sqlalchemy-challenge | 96e210106d31beb74d4ec5e42b20f5fd2d60db05 | [
"ADSL"
] | null | null | null | __init__.py | patilaja/sqlalchemy-challenge | 96e210106d31beb74d4ec5e42b20f5fd2d60db05 | [
"ADSL"
] | null | null | null | __init__.py | patilaja/sqlalchemy-challenge | 96e210106d31beb74d4ec5e42b20f5fd2d60db05 | [
"ADSL"
] | null | null | null | #Helper method that implements the logic to look up an application.
def get_app(self, reference_app=None):
if reference_app is not None:
return reference_app
if self.app is not None:
return self.app
if current_app:
return current_app._get_current_object()
... | 30.466667 | 68 | 0.617068 | 57 | 457 | 4.789474 | 0.596491 | 0.131868 | 0.058608 | 0.087912 | 0.131868 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.315098 | 457 | 15 | 69 | 30.466667 | 0.872204 | 0.14442 | 0 | 0 | 0 | 0 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
196317379bcca4ea114372256f94af6d980d0618 | 9,717 | py | Python | demisto_sdk/commands/run_test_playbook/test_playbook_runner.py | SergeBakharev/demisto-sdk | 17d00942a1bd33039a8aba9ddffecfd81008d275 | [
"MIT"
] | null | null | null | demisto_sdk/commands/run_test_playbook/test_playbook_runner.py | SergeBakharev/demisto-sdk | 17d00942a1bd33039a8aba9ddffecfd81008d275 | [
"MIT"
] | null | null | null | demisto_sdk/commands/run_test_playbook/test_playbook_runner.py | SergeBakharev/demisto-sdk | 17d00942a1bd33039a8aba9ddffecfd81008d275 | [
"MIT"
] | null | null | null | import os
import re
import time
import demisto_client
from demisto_client.demisto_api.rest import ApiException
from demisto_sdk.commands.common.tools import LOG_COLORS, get_yaml, print_color
from demisto_sdk.commands.upload.uploader import Uploader
SUCCESS_RETURN_CODE = 0
ERROR_RETURN_CODE = 1
ENTRY_TYPE_ERROR = 4
... | 41.348936 | 115 | 0.653185 | 1,281 | 9,717 | 4.675254 | 0.18345 | 0.122224 | 0.03974 | 0.033395 | 0.251461 | 0.112373 | 0.061279 | 0.039907 | 0 | 0 | 0 | 0.001973 | 0.269631 | 9,717 | 234 | 116 | 41.525641 | 0.841905 | 0.184522 | 0 | 0.130435 | 0 | 0 | 0.152725 | 0.030729 | 0 | 0 | 0 | 0 | 0 | 1 | 0.101449 | false | 0.007246 | 0.050725 | 0 | 0.23913 | 0.123188 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
19646232e69c582660ce7e5151741a5f639b0987 | 871 | py | Python | procurement_portal/records/migrations/0017_auto_20201024_1438.py | rikusv/procurement-portal-backend | a00eb1d9d9da7737a84d9c495db0f59b26839157 | [
"MIT"
] | null | null | null | procurement_portal/records/migrations/0017_auto_20201024_1438.py | rikusv/procurement-portal-backend | a00eb1d9d9da7737a84d9c495db0f59b26839157 | [
"MIT"
] | 19 | 2020-09-18T17:10:55.000Z | 2020-10-18T09:54:16.000Z | procurement_portal/records/migrations/0017_auto_20201024_1438.py | rikusv/procurement-portal-backend | a00eb1d9d9da7737a84d9c495db0f59b26839157 | [
"MIT"
] | 2 | 2020-10-21T17:58:44.000Z | 2022-02-13T17:21:22.000Z | # Generated by Django 3.1.1 on 2020-10-24 14:38
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('records', '0016_auto_20201012_0943'),
]
operations = [
migrations.AddField(
model_name='purchaserecord',
name='imple... | 30.034483 | 90 | 0.61194 | 90 | 871 | 5.744444 | 0.5 | 0.104449 | 0.133462 | 0.156673 | 0.603482 | 0.603482 | 0.516441 | 0.516441 | 0.516441 | 0.516441 | 0 | 0.062794 | 0.268657 | 871 | 28 | 91 | 31.107143 | 0.748823 | 0.051665 | 0 | 0.545455 | 1 | 0 | 0.158981 | 0.080097 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
19646d9adaadbd2e2fc9af7b3104bea3fb1c2bae | 1,030 | py | Python | docs/examples/template_query.py | Fourcast/flycs_sdk | 4bf206c26f59726d0ce0caa51bd3a893a34fed2a | [
"MIT"
] | 7 | 2020-12-15T13:25:43.000Z | 2021-08-31T14:35:06.000Z | docs/examples/template_query.py | Fourcast/flycs_sdk | 4bf206c26f59726d0ce0caa51bd3a893a34fed2a | [
"MIT"
] | 2 | 2020-11-12T12:46:28.000Z | 2021-12-21T07:26:28.000Z | docs/examples/template_query.py | Fourcast/flycs_sdk | 4bf206c26f59726d0ce0caa51bd3a893a34fed2a | [
"MIT"
] | null | null | null | from datetime import datetime, timezone
from flycs_sdk.entities import Entity
from flycs_sdk.pipelines import Pipeline, PipelineKind
from flycs_sdk.transformations import Transformation
# Define your transformation SQL query using jinja template for the table name and define the list of table on which this transforma... | 27.105263 | 154 | 0.694175 | 139 | 1,030 | 5.05036 | 0.446043 | 0.049858 | 0.021368 | 0.02849 | 0.02849 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029343 | 0.172816 | 1,030 | 37 | 155 | 27.837838 | 0.794601 | 0.233981 | 0 | 0.071429 | 0 | 0 | 0.194904 | 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 |
1965469fd09240b19440049eb433930a5143a25d | 13,252 | py | Python | try/run_eval.py | CleverShovel/AIJ2020-digital-peter | baf07200e607cd39398fc0db1ba699c7af5cea77 | [
"MIT"
] | null | null | null | try/run_eval.py | CleverShovel/AIJ2020-digital-peter | baf07200e607cd39398fc0db1ba699c7af5cea77 | [
"MIT"
] | null | null | null | try/run_eval.py | CleverShovel/AIJ2020-digital-peter | baf07200e607cd39398fc0db1ba699c7af5cea77 | [
"MIT"
] | null | null | null | import torch.nn.functional as F
import torch.nn as nn
import torch
import torchvision.transforms.functional as VF
from PIL import Image
import numpy as np
import os
from os.path import join
from collections import Counter
# device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
import math
from ct... | 34.066838 | 145 | 0.60821 | 1,873 | 13,252 | 4.111052 | 0.180993 | 0.024026 | 0.056364 | 0.035325 | 0.522078 | 0.410779 | 0.327662 | 0.296883 | 0.28 | 0.25961 | 0 | 0.046904 | 0.235813 | 13,252 | 389 | 146 | 34.066838 | 0.712353 | 0.555916 | 0 | 0.025 | 0 | 0 | 0.054653 | 0.017461 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075 | false | 0 | 0.1 | 0 | 0.225 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1966ed8573024a45a35bef1db87d4c67dcc7b5bc | 496 | py | Python | phr/ciudadano/migrations/0002_ciudadano_fecha_nacimiento.py | richardqa/django-ex | e5b8585f28a97477150ac5daf5e55c74b70d87da | [
"CC0-1.0"
] | null | null | null | phr/ciudadano/migrations/0002_ciudadano_fecha_nacimiento.py | richardqa/django-ex | e5b8585f28a97477150ac5daf5e55c74b70d87da | [
"CC0-1.0"
] | null | null | null | phr/ciudadano/migrations/0002_ciudadano_fecha_nacimiento.py | richardqa/django-ex | e5b8585f28a97477150ac5daf5e55c74b70d87da | [
"CC0-1.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2017-01-09 09:43
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ciudadano', '0001_initial'),
]
operations = [
migrations.AddField(
... | 24.8 | 94 | 0.633065 | 55 | 496 | 5.545455 | 0.727273 | 0.059016 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0563 | 0.247984 | 496 | 19 | 95 | 26.105263 | 0.761394 | 0.137097 | 0 | 0 | 1 | 0 | 0.152941 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1967b5cbe9cc4d8e1820eb5ee22aea8355578e45 | 8,306 | py | Python | experiments/track_deep_trial.py | tcstewar/davis_tracking | 4813eeaf66bdfad7b90f17831f6b0946daa8cbdf | [
"MIT"
] | 5 | 2019-06-13T02:38:51.000Z | 2021-07-29T03:32:41.000Z | experiments/track_deep_trial.py | tcstewar/davis_tracking | 4813eeaf66bdfad7b90f17831f6b0946daa8cbdf | [
"MIT"
] | 1 | 2019-08-05T17:30:31.000Z | 2019-08-05T17:30:31.000Z | experiments/track_deep_trial.py | tcstewar/davis_tracking | 4813eeaf66bdfad7b90f17831f6b0946daa8cbdf | [
"MIT"
] | 3 | 2019-06-05T18:42:14.000Z | 2019-06-19T19:36:02.000Z | import pytry
import os
import random
import nengo
import nengo_extras
import numpy as np
import nengo_dl
import tensorflow as tf
import davis_tracking
class TrackingTrial(pytry.PlotTrial):
def params(self):
self.param('number of data sets to use', n_data=-1)
self.param('data directory', dataset_d... | 44.655914 | 131 | 0.567903 | 1,034 | 8,306 | 4.348162 | 0.181818 | 0.048043 | 0.019573 | 0.018906 | 0.355205 | 0.25089 | 0.216637 | 0.155694 | 0.155694 | 0.137456 | 0 | 0.023576 | 0.325909 | 8,306 | 185 | 132 | 44.897297 | 0.779425 | 0.010956 | 0 | 0.054422 | 0 | 0 | 0.062234 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013605 | false | 0 | 0.061224 | 0 | 0.088435 | 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 |
196901465c6a28bf050c45315b7c684ef13a92ea | 1,337 | py | Python | apps/collection/tests/public/test_public_collection_list.py | magocod/django_repository | 660664ba2321499e92c3c5c23719756db2569e90 | [
"MIT"
] | 1 | 2019-10-01T01:39:29.000Z | 2019-10-01T01:39:29.000Z | apps/collection/tests/public/test_public_collection_list.py | magocod/django_repository | 660664ba2321499e92c3c5c23719756db2569e90 | [
"MIT"
] | 7 | 2019-12-04T21:40:40.000Z | 2020-06-26T21:49:51.000Z | apps/collection/tests/public/test_public_collection_list.py | magocod/django_repository | 660664ba2321499e92c3c5c23719756db2569e90 | [
"MIT"
] | 1 | 2020-04-08T02:46:31.000Z | 2020-04-08T02:46:31.000Z | """
...
"""
# Django
from django.conf import settings
# local Django
from apps.collection.models import Collection
from apps.collection.serializers import CollectionSlugSerializer
from apps.tests.fixtures import RepositoryTestCase
PAGE_SIZE = settings.REST_FRAMEWORK["PAGE_SIZE"]
class CollectionPublicListTest(Rep... | 31.093023 | 86 | 0.703067 | 142 | 1,337 | 6.415493 | 0.359155 | 0.052689 | 0.083425 | 0.037322 | 0.645445 | 0.583974 | 0.583974 | 0.583974 | 0.583974 | 0.583974 | 0 | 0.006335 | 0.173523 | 1,337 | 42 | 87 | 31.833333 | 0.8181 | 0.026926 | 0 | 0.421053 | 0 | 0 | 0.086109 | 0.056052 | 0 | 0 | 0 | 0 | 0.315789 | 1 | 0.105263 | false | 0 | 0.210526 | 0 | 0.421053 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
196a103d422e501e45fed5d95aa6423587fcbc43 | 2,033 | py | Python | main.py | uditarora/fashion-product-classification | 686f8a6c34c54f2a09baa7fba89fe446582e8408 | [
"MIT"
] | 9 | 2020-04-28T17:26:42.000Z | 2021-07-13T14:47:42.000Z | main.py | uditarora/fashion-product-classification | 686f8a6c34c54f2a09baa7fba89fe446582e8408 | [
"MIT"
] | 2 | 2021-09-08T01:55:51.000Z | 2022-03-12T00:25:38.000Z | main.py | uditarora/fashion-product-classification | 686f8a6c34c54f2a09baa7fba89fe446582e8408 | [
"MIT"
] | 1 | 2020-08-03T15:27:05.000Z | 2020-08-03T15:27:05.000Z | import argparse
import logging
import os
from src.train import setup_top20, setup_ft, setup_bottom
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger('fashion')
def main(data_path, ckpt_path, mt, train_bottom=False):
# Train on top-20 classes (train subsplit)
logger.info("Training on top-20 cl... | 37.648148 | 98 | 0.711264 | 295 | 2,033 | 4.657627 | 0.291525 | 0.052402 | 0.046579 | 0.043668 | 0.229258 | 0.188501 | 0.188501 | 0.126638 | 0.075691 | 0.075691 | 0 | 0.02512 | 0.17757 | 2,033 | 53 | 99 | 38.358491 | 0.796651 | 0.084112 | 0 | 0 | 0 | 0 | 0.215401 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0 | 0.102564 | 0 | 0.128205 | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
196bb8f934a37aeb286c8e9a73930e525b7e413c | 8,508 | py | Python | src/toil_scripts/transfer_gtex_to_s3/transfer_gtex_to_s3.py | BD2KGenomics/toil-scripts | f878d863defcdccaabb7fe06f991451b7a198fb7 | [
"Apache-2.0"
] | 33 | 2015-10-28T18:26:31.000Z | 2021-10-10T21:19:31.000Z | src/toil_scripts/transfer_gtex_to_s3/transfer_gtex_to_s3.py | BD2KGenomics/toil-scripts | f878d863defcdccaabb7fe06f991451b7a198fb7 | [
"Apache-2.0"
] | 464 | 2015-08-11T04:12:10.000Z | 2018-02-21T21:29:11.000Z | src/toil_scripts/transfer_gtex_to_s3/transfer_gtex_to_s3.py | BD2KGenomics/toil-scripts | f878d863defcdccaabb7fe06f991451b7a198fb7 | [
"Apache-2.0"
] | 21 | 2015-09-08T18:07:49.000Z | 2020-11-24T01:02:08.000Z | #!/usr/bin/env python2.7
"""
Toil script to move TCGA data into an S3 bucket.
Dependencies
Curl: apt-get install curl
Docker: wget -qO- https://get.docker.com/ | sh
Toil: pip install toil
S3AM: pip install --pre s3am
"""
import argparse
import glob
import hashlib
import os
import shutil
import su... | 42.328358 | 118 | 0.629525 | 1,180 | 8,508 | 4.383051 | 0.266102 | 0.027069 | 0.023202 | 0.029776 | 0.20959 | 0.174014 | 0.152552 | 0.118329 | 0.076179 | 0.040603 | 0 | 0.015216 | 0.258463 | 8,508 | 201 | 119 | 42.328358 | 0.804565 | 0.239892 | 0 | 0.057851 | 0 | 0 | 0.171651 | 0.011931 | 0 | 0 | 0 | 0 | 0.041322 | 1 | 0.066116 | false | 0 | 0.066116 | 0 | 0.157025 | 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 |
196bec7ed8b6cf58b1516910c7416d81061dacce | 1,885 | py | Python | tests/metrics/cpu_psutil_tests.py | shareablee/apm-agent-python | 29f12ceb410b3c1a7f933b29dcecccf628dbbb6c | [
"BSD-3-Clause"
] | null | null | null | tests/metrics/cpu_psutil_tests.py | shareablee/apm-agent-python | 29f12ceb410b3c1a7f933b29dcecccf628dbbb6c | [
"BSD-3-Clause"
] | null | null | null | tests/metrics/cpu_psutil_tests.py | shareablee/apm-agent-python | 29f12ceb410b3c1a7f933b29dcecccf628dbbb6c | [
"BSD-3-Clause"
] | null | null | null | import time
import pytest
from elasticapm.utils import compat
cpu_psutil = pytest.importorskip("elasticapm.metrics.sets.cpu_psutil")
pytestmark = pytest.mark.psutil
def test_cpu_mem_from_psutil():
metricset = cpu_psutil.CPUMetricSet()
# do something that generates some CPU load
for i in compat.irange(1... | 33.660714 | 97 | 0.658886 | 250 | 1,885 | 4.868 | 0.348 | 0.090386 | 0.139688 | 0.073952 | 0.607231 | 0.527527 | 0.410025 | 0.393591 | 0.263763 | 0.11668 | 0 | 0.013324 | 0.203714 | 1,885 | 55 | 98 | 34.272727 | 0.797468 | 0.164456 | 0 | 0.263158 | 0 | 0 | 0.294455 | 0.205864 | 0 | 0 | 0 | 0 | 0.210526 | 1 | 0.052632 | false | 0 | 0.131579 | 0 | 0.184211 | 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 |
196e9f2b4480f78817f1f39de8dbbca5da718152 | 3,785 | py | Python | day11/main.py | josteinl/advent2020 | f109f9c1ef4fcb14582cda6b114d7648000decc6 | [
"Apache-2.0"
] | null | null | null | day11/main.py | josteinl/advent2020 | f109f9c1ef4fcb14582cda6b114d7648000decc6 | [
"Apache-2.0"
] | null | null | null | day11/main.py | josteinl/advent2020 | f109f9c1ef4fcb14582cda6b114d7648000decc6 | [
"Apache-2.0"
] | null | null | null | """
Day 11 - Seating
"""
from itertools import chain
import collections
def occupied_count(seating):
return ''.join(chain.from_iterable(seating)).count('#')
def adjacent_occupied(x, y, seating):
occupied = 0
# Above
for look_x in range(x - 1, x + 2):
for look_y in range(y - 1, y + 2):
... | 29.115385 | 91 | 0.57675 | 534 | 3,785 | 3.874532 | 0.155431 | 0.100532 | 0.052199 | 0.057999 | 0.647173 | 0.544224 | 0.465926 | 0.465926 | 0.450459 | 0.450459 | 0 | 0.016147 | 0.296433 | 3,785 | 129 | 92 | 29.341085 | 0.760796 | 0.084016 | 0 | 0.463415 | 0 | 0 | 0.016527 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097561 | false | 0 | 0.02439 | 0.012195 | 0.243902 | 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 |
19709fd1d6df22996971f4e668193dabf3b6aadc | 388 | py | Python | firmware/pipelines.py | armijnhemel/FirmwareScraper | 9684767bfbe076013386f6ee0b466f9282baf587 | [
"MIT"
] | 3 | 2022-02-13T09:12:57.000Z | 2022-03-08T23:41:03.000Z | firmware/pipelines.py | armijnhemel/FirmwareScraper | 9684767bfbe076013386f6ee0b466f9282baf587 | [
"MIT"
] | 4 | 2021-12-22T08:29:50.000Z | 2022-03-02T18:48:53.000Z | firmware/pipelines.py | armijnhemel/FirmwareScraper | 9684767bfbe076013386f6ee0b466f9282baf587 | [
"MIT"
] | 5 | 2019-11-19T06:26:07.000Z | 2022-02-28T06:48:35.000Z | from scrapy.pipelines.files import FilesPipeline
class FirmwarePipeline(FilesPipeline):
def file_path(self, request, response=None, info=None):
return request.url.split('/')[-1]
class HpPipeline(FirmwarePipeline):
pass
class LinksysPipeline(FirmwarePipeline):
pass
class AvmPipeline(FirmwareP... | 16.869565 | 59 | 0.747423 | 39 | 388 | 7.410256 | 0.641026 | 0.276817 | 0.259516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003077 | 0.162371 | 388 | 22 | 60 | 17.636364 | 0.886154 | 0 | 0 | 0.333333 | 0 | 0 | 0.002577 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.333333 | 0.083333 | 0.083333 | 0.666667 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
1971dea6d61ad931626506926b94703bc0412249 | 2,843 | py | Python | research/cv/yolox/src/boxes.py | mindspore-ai/models | 9127b128e2961fd698977e918861dadfad00a44c | [
"Apache-2.0"
] | 77 | 2021-10-15T08:32:37.000Z | 2022-03-30T13:09:11.000Z | research/cv/yolox/src/boxes.py | mindspore-ai/models | 9127b128e2961fd698977e918861dadfad00a44c | [
"Apache-2.0"
] | 3 | 2021-10-30T14:44:57.000Z | 2022-02-14T06:57:57.000Z | research/cv/yolox/src/boxes.py | mindspore-ai/models | 9127b128e2961fd698977e918861dadfad00a44c | [
"Apache-2.0"
] | 24 | 2021-10-15T08:32:45.000Z | 2022-03-24T18:45:20.000Z | # Copyright 2022 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 30.569892 | 89 | 0.562082 | 418 | 2,843 | 3.638756 | 0.287081 | 0.087442 | 0.047337 | 0.04142 | 0.378041 | 0.330703 | 0.25904 | 0.192636 | 0.130835 | 0.105194 | 0 | 0.032471 | 0.25255 | 2,843 | 92 | 90 | 30.902174 | 0.683294 | 0.291242 | 0 | 0.136364 | 0 | 0 | 0.019812 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068182 | false | 0 | 0.045455 | 0 | 0.159091 | 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 |
19720b08a53678ae7b601ebc496e7b65a4ff6078 | 3,343 | py | Python | main/control/welcome.py | lipis/crypto-pocket | ec40e9f49e521d7b095c9065f89b8888a871313a | [
"MIT"
] | 4 | 2018-01-17T12:41:18.000Z | 2018-01-26T18:59:57.000Z | main/control/welcome.py | lipis/crypto-pocket | ec40e9f49e521d7b095c9065f89b8888a871313a | [
"MIT"
] | 43 | 2018-01-29T06:15:52.000Z | 2018-09-19T02:14:40.000Z | main/control/welcome.py | lipis/crypto-pocket | ec40e9f49e521d7b095c9065f89b8888a871313a | [
"MIT"
] | null | null | null | # coding: utf-8
import flask
from google.appengine.ext import ndb
import auth
import config
import model
from main import app
###############################################################################
# Welcome
###############################################################################
@app.route('/')
def... | 33.43 | 126 | 0.608436 | 402 | 3,343 | 4.783582 | 0.256219 | 0.056162 | 0.041602 | 0.037442 | 0.236089 | 0.173687 | 0.123765 | 0.123765 | 0.123765 | 0.069683 | 0 | 0.002783 | 0.139994 | 3,343 | 99 | 127 | 33.767677 | 0.666087 | 0.024529 | 0 | 0.178082 | 0 | 0 | 0.096728 | 0 | 0 | 0 | 0 | 0.010101 | 0 | 1 | 0.054795 | false | 0 | 0.082192 | 0.013699 | 0.205479 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1973e78021509b21a44ae56187ef66052677e85e | 2,029 | py | Python | qa_multi_span/model.py | chunchiehy/musst | 1525f917d8802d18c302720125ef9720b9c743fd | [
"MIT"
] | 14 | 2021-02-26T15:19:21.000Z | 2022-03-31T18:49:12.000Z | qa_multi_span/model.py | chunchiehy/musst | 1525f917d8802d18c302720125ef9720b9c743fd | [
"MIT"
] | null | null | null | qa_multi_span/model.py | chunchiehy/musst | 1525f917d8802d18c302720125ef9720b9c743fd | [
"MIT"
] | 1 | 2021-11-16T07:20:32.000Z | 2021-11-16T07:20:32.000Z | from transformers import AlbertModel
from transformers import AlbertPreTrainedModel
import torch.nn as nn
import torch
import torch.nn.functional as F
class MUSTTransformerModel(AlbertPreTrainedModel):
def __init__(self, config, max_num_spans, max_seq_len):
super(MUSTTransformerModel, self).__init__(config)
... | 33.816667 | 73 | 0.667817 | 254 | 2,029 | 4.952756 | 0.255906 | 0.078696 | 0.04372 | 0.035771 | 0.063593 | 0.044515 | 0 | 0 | 0 | 0 | 0 | 0.005921 | 0.250862 | 2,029 | 59 | 74 | 34.389831 | 0.821711 | 0.056678 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.108696 | 0 | 0.195652 | 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 |
19753cc35369937ec7625ed05051badbaa38c37c | 1,160 | py | Python | class_one/02_strings.py | nclairesays/intro-python-hackforla | 65ab8584ab9d5082aaa405b40c47cbeacfff610c | [
"MIT"
] | null | null | null | class_one/02_strings.py | nclairesays/intro-python-hackforla | 65ab8584ab9d5082aaa405b40c47cbeacfff610c | [
"MIT"
] | null | null | null | class_one/02_strings.py | nclairesays/intro-python-hackforla | 65ab8584ab9d5082aaa405b40c47cbeacfff610c | [
"MIT"
] | null | null | null | # STRINGS
# https://docs.python.org/3/tutorial/introduction.html#strings
s = str(42)
s # convert another data type into a string (casting)
s = 'I like you'
# examine a string
s[0] # returns 'I'
len(s) # returns 10
# string slicing like lists
s[0:7] # returns 'I like '
s[6:] # returns 'you'
s[-1] # returns... | 22.745098 | 67 | 0.655172 | 186 | 1,160 | 4.080645 | 0.510753 | 0.02635 | 0.031621 | 0.051383 | 0.167325 | 0.083004 | 0 | 0 | 0 | 0 | 0 | 0.059276 | 0.214655 | 1,160 | 51 | 68 | 22.745098 | 0.773875 | 0.622414 | 0 | 0.111111 | 0 | 0 | 0.430657 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1975eb951bcdc39a34c55d4b1e7b13067352c07a | 11,809 | py | Python | amqpy/transport.py | veegee/amqpy | c5346b1f6910b8553ca96769d2c88a7807f83417 | [
"MIT"
] | 32 | 2015-02-04T03:57:28.000Z | 2021-01-17T13:19:02.000Z | amqpy/transport.py | veegee/amqpy | c5346b1f6910b8553ca96769d2c88a7807f83417 | [
"MIT"
] | 33 | 2015-01-12T21:17:16.000Z | 2018-03-14T22:54:13.000Z | amqpy/transport.py | veegee/amqpy | c5346b1f6910b8553ca96769d2c88a7807f83417 | [
"MIT"
] | 9 | 2015-02-17T04:44:31.000Z | 2021-12-09T20:36:29.000Z | from __future__ import absolute_import, division, print_function
__metaclass__ = type
import errno
import six
import socket
import ssl
from abc import ABCMeta, abstractmethod
import logging
from threading import RLock
from ssl import SSLError
import datetime
import time
from . import compat
from .proto import Frame
f... | 32.53168 | 110 | 0.597172 | 1,461 | 11,809 | 4.715264 | 0.225873 | 0.031354 | 0.013064 | 0.019161 | 0.280012 | 0.246044 | 0.203658 | 0.159675 | 0.125127 | 0.125127 | 0 | 0.006899 | 0.324922 | 11,809 | 362 | 111 | 32.621547 | 0.85725 | 0.35329 | 0 | 0.314286 | 0 | 0 | 0.021872 | 0 | 0 | 0 | 0.000568 | 0 | 0.005714 | 1 | 0.102857 | false | 0.017143 | 0.097143 | 0 | 0.285714 | 0.005714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
197751283e20cfc29bc1ae41f28e04248f1f81be | 2,795 | py | Python | code/aditya.py | nyamako/hacktoberfest-2018 | bf7939d4b0cfb57a854a1644dbbae7ddf8af3c4f | [
"MIT"
] | 67 | 2018-09-25T21:37:23.000Z | 2020-11-03T02:03:22.000Z | code/aditya.py | nyamako/hacktoberfest-2018 | bf7939d4b0cfb57a854a1644dbbae7ddf8af3c4f | [
"MIT"
] | 245 | 2018-09-18T10:07:28.000Z | 2020-09-30T19:00:11.000Z | code/aditya.py | nyamako/hacktoberfest-2018 | bf7939d4b0cfb57a854a1644dbbae7ddf8af3c4f | [
"MIT"
] | 1,192 | 2018-09-18T11:27:55.000Z | 2021-10-17T10:24:37.000Z | import random
import time
#list of words
words = ("python", "india", "japan", "mother", "computer", "watch", "keyboard", "compass",
"bottle", "monitor", "switch", "shoes", "chain", "mobile", "coffee", "alfredo", "mouse",
"stomach", "tablet", "mojito", "halapeneos", "pizza", "nutella", "peanut", "broccoli")
n = 0
#d... | 28.814433 | 105 | 0.608945 | 338 | 2,795 | 5.023669 | 0.37574 | 0.058304 | 0.070082 | 0.064782 | 0.246761 | 0.220848 | 0.089517 | 0.045936 | 0 | 0 | 0 | 0.039179 | 0.232916 | 2,795 | 97 | 106 | 28.814433 | 0.752799 | 0.068694 | 0 | 0.310811 | 0 | 0 | 0.285879 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054054 | false | 0.013514 | 0.027027 | 0 | 0.108108 | 0.432432 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
19775af3ac0af2c8563350d3a05ceb55a427a779 | 639 | py | Python | tracking/urls.py | KolibriSolutions/BepMarketplace | c47d252fd744cde6b927e37c34d7a103c6162be5 | [
"BSD-3-Clause"
] | 1 | 2019-06-29T15:24:24.000Z | 2019-06-29T15:24:24.000Z | tracking/urls.py | KolibriSolutions/BepMarketplace | c47d252fd744cde6b927e37c34d7a103c6162be5 | [
"BSD-3-Clause"
] | 2 | 2020-01-12T17:47:33.000Z | 2020-01-12T17:47:45.000Z | tracking/urls.py | KolibriSolutions/BepMarketplace | c47d252fd744cde6b927e37c34d7a103c6162be5 | [
"BSD-3-Clause"
] | 2 | 2019-06-29T15:24:26.000Z | 2020-01-08T15:15:03.000Z | # Bep Marketplace ELE
# Copyright (c) 2016-2021 Kolibri Solutions
# License: See LICENSE file or https://github.com/KolibriSolutions/BepMarketplace/blob/master/LICENSE
#
from django.urls import path
from . import views
app_name = 'tracking'
urlpatterns = [
path('user/login/', views.list_user_login, name='listu... | 37.588235 | 102 | 0.744914 | 77 | 639 | 6.038961 | 0.61039 | 0.058065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014134 | 0.114241 | 639 | 16 | 103 | 39.9375 | 0.80742 | 0.255086 | 0 | 0 | 0 | 0 | 0.265957 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1977d36fe2b99e051c145c78f7a06b38fad7e1e1 | 394 | py | Python | admin_log_entries/settings.py | ataylor32/django-adminlogentries | 6aa99b0444b3747369404bcaee4b50183f8194e0 | [
"MIT"
] | 5 | 2017-12-05T13:44:48.000Z | 2021-07-29T14:04:57.000Z | admin_log_entries/settings.py | ataylor32/django-adminlogentries | 6aa99b0444b3747369404bcaee4b50183f8194e0 | [
"MIT"
] | null | null | null | admin_log_entries/settings.py | ataylor32/django-adminlogentries | 6aa99b0444b3747369404bcaee4b50183f8194e0 | [
"MIT"
] | null | null | null | from django.conf import settings
default_settings = {
'has_module_permission_false': False,
}
ADMIN_LOG_ENTRIES_SETTINGS = {}
def compute_settings():
for name, value in default_settings.items():
ADMIN_LOG_ENTRIES_SETTINGS[name] = value
if hasattr(settings, 'ADMIN_LOG_ENTRIES'):
ADMIN_LO... | 21.888889 | 69 | 0.756345 | 49 | 394 | 5.673469 | 0.469388 | 0.143885 | 0.269784 | 0.248201 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15736 | 394 | 17 | 70 | 23.176471 | 0.837349 | 0 | 0 | 0 | 0 | 0 | 0.111675 | 0.068528 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
19782f36845f0387a12cf4d653a628e8d252f1ee | 205 | py | Python | katas/beta/reverse_the_number.py | the-zebulan/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | 40 | 2016-03-09T12:26:20.000Z | 2022-03-23T08:44:51.000Z | katas/beta/reverse_the_number.py | akalynych/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | null | null | null | katas/beta/reverse_the_number.py | akalynych/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | 36 | 2016-11-07T19:59:58.000Z | 2022-03-31T11:18:27.000Z | def reverse(n):
exp = 1
while n / 10 ** exp:
exp += 1
return sum((n % 10 ** a / 10 ** (a - 1)) * (10 ** b)
for a, b in zip(xrange(1, exp + 1), xrange(exp - 1, -1, -1)))
| 25.625 | 76 | 0.404878 | 35 | 205 | 2.371429 | 0.428571 | 0.192771 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126984 | 0.385366 | 205 | 7 | 77 | 29.285714 | 0.531746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1979aba1d17f885ed392d4535bcc74a5d8e636bc | 464 | py | Python | lwrl/optimizers/multistep_optimizer.py | sealday/lwrl | 52bcd67751e605c38db4afa609c58938c7034e8d | [
"MIT"
] | 2 | 2019-04-11T11:55:48.000Z | 2020-05-29T18:09:51.000Z | lwrl/optimizers/multistep_optimizer.py | sealday/lwrl | 52bcd67751e605c38db4afa609c58938c7034e8d | [
"MIT"
] | 6 | 2021-06-01T22:21:00.000Z | 2022-03-11T23:24:36.000Z | lwrl/optimizers/multistep_optimizer.py | sealday/lwrl | 52bcd67751e605c38db4afa609c58938c7034e8d | [
"MIT"
] | 1 | 2019-04-12T03:09:47.000Z | 2019-04-12T03:09:47.000Z | from lwrl.optimizers import MetaOptimizer
class MultistepOptimizer(MetaOptimizer):
def __init__(self, parameters, optimizer, num_steps=10):
self.num_steps = num_steps
super().__init__(parameters, optimizer)
def step(self, fn_loss, arguments, fn_reference, **kwargs):
arguments['referen... | 33.142857 | 69 | 0.709052 | 54 | 464 | 5.759259 | 0.462963 | 0.102894 | 0.07717 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005305 | 0.1875 | 464 | 13 | 70 | 35.692308 | 0.819629 | 0 | 0 | 0 | 0 | 0 | 0.019397 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
197a1ef6fa46d979a05f557aa10ddfcfec221a69 | 5,301 | py | Python | saefportal/saef/views/connection_view.py | harry-consulting/SAEF | 12ef43bbcc3178b8a988e21c1bef035881cf6e6d | [
"BSD-2-Clause"
] | 4 | 2020-12-16T13:14:26.000Z | 2022-03-26T08:54:12.000Z | saefportal/saef/views/connection_view.py | harry-consulting/SAEF | 12ef43bbcc3178b8a988e21c1bef035881cf6e6d | [
"BSD-2-Clause"
] | 1 | 2022-03-26T09:09:04.000Z | 2022-03-26T09:09:04.000Z | saefportal/saef/views/connection_view.py | harry-consulting/SAEF | 12ef43bbcc3178b8a988e21c1bef035881cf6e6d | [
"BSD-2-Clause"
] | 1 | 2020-12-16T13:20:17.000Z | 2020-12-16T13:20:17.000Z | from saef.connections import ConnectionFormHelper
from ..models import Connection
from ..forms import ConnectionTypeForm
from saefportal.settings import MSG_SUCCESS_CONNECTION_UPDATE, MSG_SUCCESS_CONNECTION_VALID, \
MSG_ERROR_CONNECTION_INVALID, MSG_SUCCESS_CONNECTION_SAVED, MSG_ERROR_CONNECTION_SELECT_INVALID, \
... | 41.414063 | 105 | 0.716469 | 580 | 5,301 | 6.215517 | 0.139655 | 0.08932 | 0.037448 | 0.062136 | 0.556172 | 0.527046 | 0.457143 | 0.427739 | 0.332039 | 0.300971 | 0 | 0.001412 | 0.198642 | 5,301 | 127 | 106 | 41.740157 | 0.847222 | 0 | 0 | 0.409524 | 0 | 0 | 0.088097 | 0.018676 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038095 | false | 0 | 0.085714 | 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 |
197a2e031fcb6bc8c3c7153d570a652bf400420f | 6,206 | py | Python | modules/niftitools.py | NeuroSainteAnne/synthFLAIR | ddb083e0ddbb5a7a3131e947c8a84809f25b93a1 | [
"BSD-3-Clause"
] | 2 | 2022-01-09T11:25:40.000Z | 2022-03-24T04:00:11.000Z | modules/niftitools.py | yunfei920406/synthFLAIR | ddb083e0ddbb5a7a3131e947c8a84809f25b93a1 | [
"BSD-3-Clause"
] | null | null | null | modules/niftitools.py | yunfei920406/synthFLAIR | ddb083e0ddbb5a7a3131e947c8a84809f25b93a1 | [
"BSD-3-Clause"
] | 2 | 2022-03-24T04:00:17.000Z | 2022-03-25T00:36:13.000Z | import os
import pydicom
import glob
import numpy as np
import nibabel as nib
from skimage import filters, morphology
from scipy.ndimage.morphology import binary_fill_holes
from scipy.ndimage import label
from dipy.segment.mask import median_otsu
def padvolume(volume):
"Applies a padding/cropping to a volume in or... | 31.502538 | 91 | 0.618595 | 838 | 6,206 | 4.497613 | 0.220764 | 0.05731 | 0.021226 | 0.020695 | 0.122314 | 0.059432 | 0.03741 | 0.023879 | 0.023879 | 0.023879 | 0 | 0.094673 | 0.25282 | 6,206 | 197 | 92 | 31.502538 | 0.718137 | 0.084434 | 0 | 0.059603 | 0 | 0 | 0.048452 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.092715 | false | 0 | 0.059603 | 0 | 0.238411 | 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 |
197baac1afa4b35de9d60fc8d92a0d5870b20c39 | 1,937 | py | Python | recognition.py | 1159186649/Raspberry-Car | d1114793dd45be4e60a5d8a8da57b01ae3210f94 | [
"Apache-2.0"
] | 1 | 2020-11-04T02:28:32.000Z | 2020-11-04T02:28:32.000Z | recognition.py | 1159186649/Raspberry-Car | d1114793dd45be4e60a5d8a8da57b01ae3210f94 | [
"Apache-2.0"
] | null | null | null | recognition.py | 1159186649/Raspberry-Car | d1114793dd45be4e60a5d8a8da57b01ae3210f94 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from aip import AipFace
from picamera import PiCamera
import urllib.request
import RPi.GPIO as GPIO
import base64
import time
import Main
#百度智能云人脸识别id、key
APP_ID = '*****'
API_KEY = '**********'
SECRET_KEY ='**********'
client = AipFace(APP_ID, API_KEY, SECRE... | 25.826667 | 87 | 0.573051 | 231 | 1,937 | 4.683983 | 0.502165 | 0.033272 | 0.027726 | 0.020333 | 0.075786 | 0.036969 | 0 | 0 | 0 | 0 | 0 | 0.029371 | 0.261745 | 1,937 | 74 | 88 | 26.175676 | 0.727273 | 0.224574 | 0 | 0.125 | 0 | 0 | 0.164393 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.145833 | 0 | 0.291667 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
197c315cc4fccd63e25903e81134070c4aabf0c5 | 2,939 | py | Python | base/3base.py | chenliangold4j/MyPyDictionnary | 3428333f42249f33732da71e420bdc41a412f594 | [
"Apache-2.0"
] | null | null | null | base/3base.py | chenliangold4j/MyPyDictionnary | 3428333f42249f33732da71e420bdc41a412f594 | [
"Apache-2.0"
] | null | null | null | base/3base.py | chenliangold4j/MyPyDictionnary | 3428333f42249f33732da71e420bdc41a412f594 | [
"Apache-2.0"
] | null | null | null | L = ['Michael', 'Sarah', 'Tracy', 'Bob', 'Jack']
print(L[0:3]);
# L[0:3]表示,从索引0开始取,直到索引3为止,但不包括索引3。即索引0,1,2,正好是3个元素。
# 如果第一个索引是0,还可以省略:
print(L[:3]);
# 类似的,既然Python支持L[-1]取倒数第一个元素,那么它同样支持倒数切片,试试:
print(L[-2:])
L = list(range(100))
# 前10个数,每两个取一个:
print(L[:10:2])
# 甚至什么都不写,只写[:]就可以原样复制一个list:
# ,tuple也可以用切片操作,只是操作的结果仍是t... | 27.726415 | 106 | 0.697856 | 370 | 2,939 | 5.543243 | 0.435135 | 0.087762 | 0.012189 | 0.017065 | 0.140419 | 0.140419 | 0.134081 | 0.134081 | 0.086299 | 0.066797 | 0 | 0.019654 | 0.134399 | 2,939 | 106 | 107 | 27.726415 | 0.786557 | 0.433821 | 0 | 0.098361 | 0 | 0 | 0.067651 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016393 | false | 0 | 0.04918 | 0 | 0.081967 | 0.557377 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
197f119da149ba3627c410ef123a293d7183c17e | 4,986 | py | Python | rssxkcd.py | bkentropy/xkcd-updater | 732b60428a9fdc79c2cd847623c7416cb4b6022d | [
"MIT"
] | null | null | null | rssxkcd.py | bkentropy/xkcd-updater | 732b60428a9fdc79c2cd847623c7416cb4b6022d | [
"MIT"
] | null | null | null | rssxkcd.py | bkentropy/xkcd-updater | 732b60428a9fdc79c2cd847623c7416cb4b6022d | [
"MIT"
] | null | null | null | #!/usr/local/bin/python2
import argparse
import requests
import feedparser
import time
import sys
import sqlite3
import datetime
# Command line args
parser = argparse.ArgumentParser(description='Provide HipChat integration url to post xkcd comics')
parser.add_argument('url', type=str, help='(string) a special url for ... | 33.689189 | 113 | 0.583233 | 632 | 4,986 | 4.511076 | 0.265823 | 0.036478 | 0.028411 | 0.026307 | 0.27429 | 0.201684 | 0.130831 | 0.098913 | 0.075061 | 0.075061 | 0 | 0.006663 | 0.277577 | 4,986 | 147 | 114 | 33.918367 | 0.784842 | 0.056558 | 0 | 0.186992 | 0 | 0 | 0.170467 | 0.004475 | 0 | 0 | 0 | 0.006803 | 0 | 1 | 0.081301 | false | 0 | 0.056911 | 0 | 0.195122 | 0.065041 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
197ff79f1f26876a9752bd0bf842c448b0d64426 | 401 | py | Python | Conditional/Lista 1/Thiago/07.py | Vitor-ORB/algorithms-and-programming-1-ufms | 10821e9b580b78b7f78c27e740f3ead9c6b9f0bd | [
"MIT"
] | 7 | 2021-05-25T16:49:20.000Z | 2022-02-17T11:57:32.000Z | Conditional/Lista 1/Thiago/07.py | Vitor-ORB/algorithms-and-programming-1-ufms | 10821e9b580b78b7f78c27e740f3ead9c6b9f0bd | [
"MIT"
] | null | null | null | Conditional/Lista 1/Thiago/07.py | Vitor-ORB/algorithms-and-programming-1-ufms | 10821e9b580b78b7f78c27e740f3ead9c6b9f0bd | [
"MIT"
] | 8 | 2021-05-25T16:49:39.000Z | 2021-09-30T18:02:07.000Z | # Leia 2 valores numéricos e um símbolo correspondente a uma das operações.
# soma (+), subtração(-), divisão(/) e multiplicação(*)
n1, n2, op = input().split()
n1 = int(n1)
n2 = int(n2)
if op == "+":
print(n1 + n2)
elif op == "-":
print(n1 - n2)
elif op == "/":
print(n1 / n2)
elif op == "*":... | 22.277778 | 76 | 0.55611 | 56 | 401 | 3.982143 | 0.571429 | 0.107623 | 0.161435 | 0.197309 | 0.251121 | 0.251121 | 0.251121 | 0.251121 | 0.251121 | 0.251121 | 0 | 0.050676 | 0.261845 | 401 | 17 | 77 | 23.588235 | 0.702703 | 0.316708 | 0 | 0 | 0 | 0 | 0.161417 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.384615 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
19822fbb662c35172c55da381ed0906814ac3187 | 2,000 | py | Python | ciphers/caeser_cipher.py | nairraghav/ron-cipher | e7cbac6cd8f0fe30e71b7d7f26fddb8af4d6a88a | [
"MIT"
] | null | null | null | ciphers/caeser_cipher.py | nairraghav/ron-cipher | e7cbac6cd8f0fe30e71b7d7f26fddb8af4d6a88a | [
"MIT"
] | 2 | 2021-02-02T23:46:26.000Z | 2021-04-20T20:09:33.000Z | ciphers/caeser_cipher.py | nairraghav/ron-cipher | e7cbac6cd8f0fe30e71b7d7f26fddb8af4d6a88a | [
"MIT"
] | null | null | null | from ciphers.cipher_helper import get_character_map, flip_dict
class CaeserCipher:
def __init__(self, rotation: int = None):
self.default_character_map = get_character_map()
self.flipped_default_character_map = flip_dict(
self.default_character_map
)
if rotation:
... | 29.411765 | 66 | 0.607 | 213 | 2,000 | 5.389671 | 0.239437 | 0.146341 | 0.165505 | 0.160279 | 0.204704 | 0.118467 | 0.062718 | 0 | 0 | 0 | 0 | 0.00074 | 0.3245 | 2,000 | 67 | 67 | 29.850746 | 0.849001 | 0.0125 | 0 | 0.134615 | 0 | 0 | 0.013685 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.019231 | 0.019231 | 0.211538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
198277b32eac2b22c43af843c0ee4c66623b8afb | 327 | py | Python | instagram/migrations/0020_remove_profile_follow.py | 01king-ori/Kings-instagram | 5e3c523462883879fe33834d68bdf1ebe4b75d8d | [
"MIT"
] | 3 | 2020-06-25T22:35:05.000Z | 2022-01-11T03:50:08.000Z | instagram/migrations/0020_remove_profile_follow.py | 01king-ori/Kings-instagram | 5e3c523462883879fe33834d68bdf1ebe4b75d8d | [
"MIT"
] | 5 | 2020-06-05T23:38:22.000Z | 2021-06-10T19:05:02.000Z | instagram/migrations/0020_remove_profile_follow.py | 01king-ori/Kings-instagram | 5e3c523462883879fe33834d68bdf1ebe4b75d8d | [
"MIT"
] | 5 | 2020-01-07T05:39:10.000Z | 2021-09-14T05:31:08.000Z | # Generated by Django 2.2.6 on 2019-10-14 13:19
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('instagram', '0019_profile_follow'),
]
operations = [
migrations.RemoveField(
model_name='profile',
name='follow',
),... | 18.166667 | 47 | 0.590214 | 34 | 327 | 5.588235 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082609 | 0.296636 | 327 | 17 | 48 | 19.235294 | 0.743478 | 0.137615 | 0 | 0 | 1 | 0 | 0.146429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1982e8dcbffc500675e9501f2db4214567aa2081 | 24,054 | py | Python | boundaries/ca_qc_districts/definition.py | imhangoo/represent-canada-data | 0d9cc818b343079f81a00c15438d79c079a10c9b | [
"OML"
] | null | null | null | boundaries/ca_qc_districts/definition.py | imhangoo/represent-canada-data | 0d9cc818b343079f81a00c15438d79c079a10c9b | [
"OML"
] | null | null | null | boundaries/ca_qc_districts/definition.py | imhangoo/represent-canada-data | 0d9cc818b343079f81a00c15438d79c079a10c9b | [
"OML"
] | null | null | null | # coding: utf-8
import re
from datetime import date
import boundaries
# Noting that the "union" merge strategy fails with:
#
# GEOS_ERROR: TopologyException: found non-noded intersection between
# LINESTRING (...) and LINESTRING (...)
#
# django.contrib.gis.geos.error.GEOSException: Could not initialize G... | 42.877005 | 186 | 0.61204 | 2,645 | 24,054 | 5.528166 | 0.342533 | 0.030844 | 0.050472 | 0.05608 | 0.25742 | 0.242443 | 0.230338 | 0.130352 | 0.130352 | 0.122555 | 0 | 0.096505 | 0.197015 | 24,054 | 560 | 187 | 42.953571 | 0.659021 | 0.059491 | 0 | 0.107071 | 0 | 0.014141 | 0.50341 | 0.181029 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006061 | false | 0 | 0.010101 | 0 | 0.046465 | 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 |
198370b8aa4515542204d0344e7d286fb2f76907 | 1,803 | py | Python | pdbfairy/commands/compare_interactions.py | dannyroberts/pdbfairy | 2cefd4a5e6c40f32e6fa3974ffd595fc336c582b | [
"BSD-3-Clause"
] | null | null | null | pdbfairy/commands/compare_interactions.py | dannyroberts/pdbfairy | 2cefd4a5e6c40f32e6fa3974ffd595fc336c582b | [
"BSD-3-Clause"
] | null | null | null | pdbfairy/commands/compare_interactions.py | dannyroberts/pdbfairy | 2cefd4a5e6c40f32e6fa3974ffd595fc336c582b | [
"BSD-3-Clause"
] | null | null | null | import difflib
import io
import click
from pdbfairy import utils
from pdbfairy.commands import find_interactions
@click.argument('pdb_file_1')
@click.argument('pdb_file_2')
@click.option('--max-distance', default=find_interactions.MAX_DISTANCE, help=(
"The distance in Angstroms under which atoms should "
"b... | 33.388889 | 78 | 0.653356 | 233 | 1,803 | 4.832618 | 0.313305 | 0.0746 | 0.028419 | 0.035524 | 0.286856 | 0.101243 | 0 | 0 | 0 | 0 | 0 | 0.019512 | 0.204104 | 1,803 | 53 | 79 | 34.018868 | 0.765157 | 0.035496 | 0 | 0.071429 | 0 | 0 | 0.142774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02381 | false | 0.02381 | 0.119048 | 0 | 0.142857 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1983c2bf22bdcb42a662ebdbf2a359de7f422d6f | 444 | py | Python | accelerator/migrations/023_alter_topics_field_office_hours.py | masschallenge/django-accelerator | 8af898b574be3b8335edc8961924d1c6fa8b5fd5 | [
"MIT"
] | 6 | 2017-06-14T19:34:01.000Z | 2020-03-08T07:16:59.000Z | accelerator/migrations/023_alter_topics_field_office_hours.py | masschallenge/django-accelerator | 8af898b574be3b8335edc8961924d1c6fa8b5fd5 | [
"MIT"
] | 160 | 2017-06-20T17:12:13.000Z | 2022-03-30T13:53:12.000Z | accelerator/migrations/023_alter_topics_field_office_hours.py | masschallenge/django-accelerator | 8af898b574be3b8335edc8961924d1c6fa8b5fd5 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accelerator', '0022_add_meeting_info_on_office_hour_model'),
]
operations = [
migrations.AlterField(
model_name='mentorprogramofficehour... | 23.368421 | 76 | 0.655405 | 42 | 444 | 6.595238 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023881 | 0.245496 | 444 | 18 | 77 | 24.666667 | 0.802985 | 0 | 0 | 0 | 0 | 0 | 0.184685 | 0.146396 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
198549dbef342bfbbd642fd61a76b181c129ac11 | 1,085 | py | Python | guanabara/mundo1/ex018.py | thekilian/Python-pratica | 875661addd5b8eb4364bc638832c7ab55dcefce4 | [
"MIT"
] | null | null | null | guanabara/mundo1/ex018.py | thekilian/Python-pratica | 875661addd5b8eb4364bc638832c7ab55dcefce4 | [
"MIT"
] | null | null | null | guanabara/mundo1/ex018.py | thekilian/Python-pratica | 875661addd5b8eb4364bc638832c7ab55dcefce4 | [
"MIT"
] | null | null | null | # 018 - Faça um programa que leia um ângulo qualquer e mostre na tela o valor do seno, cosseno e tangente desse ângulo.
'''
from math import sin, cos, tan
ang = float(input('Digite um ângulo: '))
sen = sin(ang)
cos = cos(ang)
tan = tan(ang)
print('Ângulo de {}°: \n Seno = {:.2f} \n Cosseno = {:.2f} \n Tangente = {:.... | 31 | 119 | 0.648848 | 181 | 1,085 | 3.900552 | 0.265193 | 0.09915 | 0.077904 | 0.080737 | 0.454674 | 0.430595 | 0.314448 | 0.271955 | 0.17847 | 0.17847 | 0 | 0.01323 | 0.164055 | 1,085 | 35 | 120 | 31 | 0.762955 | 0.375115 | 0 | 0 | 0 | 0.166667 | 0.332103 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 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 |
198848a18a09b75e39b55e572e9958bb26729aae | 1,174 | py | Python | models/basic_module.py | matsu911/CQTNet | e775f53fd91bbb9583d6640ae4e36f49031d1efd | [
"MIT"
] | 25 | 2020-04-10T05:43:49.000Z | 2022-03-28T02:25:44.000Z | models/basic_module.py | matsu911/CQTNet | e775f53fd91bbb9583d6640ae4e36f49031d1efd | [
"MIT"
] | 2 | 2021-02-23T03:30:50.000Z | 2021-06-28T09:02:38.000Z | models/basic_module.py | matsu911/CQTNet | e775f53fd91bbb9583d6640ae4e36f49031d1efd | [
"MIT"
] | 7 | 2020-04-10T05:43:51.000Z | 2021-12-23T09:34:44.000Z | import torch
from torch import nn
import torchvision
import torch.nn.functional as F
import time
import os
class BasicModule(torch.nn.Module):
"""
封装了nn.Module,主要是提供了save和load两个方法
"""
def __init__(self):
super(BasicModule, self).__init__()
self.model_name = str(type(self))
def load(... | 29.35 | 84 | 0.602215 | 149 | 1,174 | 4.577181 | 0.416107 | 0.052786 | 0.057185 | 0.049853 | 0.222874 | 0.087977 | 0.087977 | 0 | 0 | 0 | 0 | 0.001147 | 0.25724 | 1,174 | 40 | 85 | 29.35 | 0.780963 | 0.05707 | 0 | 0.076923 | 0 | 0 | 0.072658 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.192308 | false | 0 | 0.230769 | 0.038462 | 0.538462 | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
1989abd5efbf0b7dfe6d6083f611454b62427f76 | 654 | py | Python | exp1_bot_detection/Cresci/Cresci.py | GabrielHam/SATAR_Twitter_Bot_Detection_with_Self-supervised_User_Representation_Learning | ac73e5deb9d748f02d1396d1458e716408470cc9 | [
"MIT"
] | 5 | 2021-08-10T14:15:18.000Z | 2022-03-09T07:06:19.000Z | exp1_bot_detection/Cresci/Cresci.py | GabrielHam/SATAR_Twitter_Bot_Detection_with_Self-supervised_User_Representation_Learning | ac73e5deb9d748f02d1396d1458e716408470cc9 | [
"MIT"
] | null | null | null | exp1_bot_detection/Cresci/Cresci.py | GabrielHam/SATAR_Twitter_Bot_Detection_with_Self-supervised_User_Representation_Learning | ac73e5deb9d748f02d1396d1458e716408470cc9 | [
"MIT"
] | null | null | null | import math
result = [1] * 4355
list = []
flag = ''
def issub(strrr):
global list
cnt = 0
for dna in list:
if strrr in dna:
cnt = cnt + 1
return cnt
def tryy(strrr):
num = issub(strrr)
if num > 1:
for tmp in range(num):
result[tmp] = max(result[tmp], ... | 15.571429 | 63 | 0.524465 | 97 | 654 | 3.525773 | 0.474227 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028953 | 0.313456 | 654 | 41 | 64 | 15.95122 | 0.732739 | 0 | 0 | 0 | 0 | 0 | 0.063077 | 0.043077 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.035714 | 0 | 0.142857 | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
198aafa829b773ab465bf52f7c98972087fa1385 | 3,119 | py | Python | examples/smiley_face.py | Markichu/PythonAutoNifty | ab646601058297b6bfe14332f17b836ee3dfbe69 | [
"MIT"
] | null | null | null | examples/smiley_face.py | Markichu/PythonAutoNifty | ab646601058297b6bfe14332f17b836ee3dfbe69 | [
"MIT"
] | 6 | 2021-11-24T00:48:57.000Z | 2022-03-17T07:51:36.000Z | examples/smiley_face.py | Markichu/PythonAutoNifty | ab646601058297b6bfe14332f17b836ee3dfbe69 | [
"MIT"
] | null | null | null | import random
from pyautonifty.constants import DRAWING_SIZE, YELLOW, BLACK, MAGENTA, BLUE
from pyautonifty.pos import Pos
from pyautonifty.drawing import Drawing
from pyautonifty.renderer import Renderer
def smiley_face(drawing):
# Set a background colour to be used for the drawing
background_colour = MAGEN... | 43.319444 | 114 | 0.721064 | 435 | 3,119 | 4.850575 | 0.314943 | 0.072986 | 0.042654 | 0.028436 | 0.23128 | 0.208531 | 0.208531 | 0.178199 | 0.145024 | 0.120379 | 0 | 0.022409 | 0.198782 | 3,119 | 71 | 115 | 43.929577 | 0.821929 | 0.167041 | 0 | 0 | 0 | 0 | 0.076625 | 0.032508 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020833 | false | 0 | 0.125 | 0 | 0.166667 | 0.020833 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
198b6c8bdf9c4c45a62fc10ae148a99e4911a2b1 | 1,074 | py | Python | cumulusci/tests/test_schema.py | davisagli/CumulusCI | fd74c324ad3ff662484b159395c639879011e711 | [
"BSD-3-Clause"
] | 109 | 2015-01-20T14:28:48.000Z | 2018-08-31T12:12:39.000Z | cumulusci/tests/test_schema.py | davisagli/CumulusCI | fd74c324ad3ff662484b159395c639879011e711 | [
"BSD-3-Clause"
] | 365 | 2015-01-07T19:54:25.000Z | 2018-09-11T15:10:02.000Z | cumulusci/tests/test_schema.py | davisagli/CumulusCI | fd74c324ad3ff662484b159395c639879011e711 | [
"BSD-3-Clause"
] | 125 | 2015-01-17T16:05:39.000Z | 2018-09-06T19:05:00.000Z | import json
import yaml
from jsonschema import validate
from cumulusci.utils.yaml import cumulusci_yml
class TestSchema:
def test_schema_validates(self, cumulusci_test_repo_root):
schemapath = (
cumulusci_test_repo_root / "cumulusci/schema/cumulusci.jsonschema.json"
)
with op... | 32.545455 | 96 | 0.666667 | 129 | 1,074 | 5.341085 | 0.333333 | 0.09434 | 0.123367 | 0.152395 | 0.377358 | 0.261248 | 0.261248 | 0.261248 | 0.261248 | 0.261248 | 0 | 0 | 0.257914 | 1,074 | 32 | 97 | 33.5625 | 0.864492 | 0 | 0 | 0.24 | 0 | 0 | 0.211359 | 0.102421 | 0 | 0 | 0 | 0 | 0.08 | 1 | 0.08 | false | 0 | 0.16 | 0 | 0.28 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
198b7bfde744c3980b7b517559c0d495392afa36 | 7,650 | py | Python | luxon/core/networking/sock.py | HieronymusCrouse/luxon | b0b08c103936adcbb3dd03b1701d44a65de8f61e | [
"BSD-3-Clause"
] | 7 | 2018-02-27T00:18:02.000Z | 2019-05-16T16:57:00.000Z | luxon/core/networking/sock.py | HieronymusCrouse/luxon | b0b08c103936adcbb3dd03b1701d44a65de8f61e | [
"BSD-3-Clause"
] | 47 | 2018-01-23T13:49:28.000Z | 2019-06-06T13:14:59.000Z | luxon/core/networking/sock.py | HieronymusCrouse/luxon | b0b08c103936adcbb3dd03b1701d44a65de8f61e | [
"BSD-3-Clause"
] | 14 | 2018-01-15T08:47:11.000Z | 2019-12-27T12:05:41.000Z | # -*- coding: utf-8 -*-
# Copyright (c) 2019-2020 Christiaan Frans Rademan <chris@fwiw.co.za>.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the ... | 33.116883 | 79 | 0.555817 | 794 | 7,650 | 5.215365 | 0.278338 | 0.075344 | 0.055059 | 0.032601 | 0.369717 | 0.305723 | 0.241971 | 0.203091 | 0.203091 | 0.183289 | 0 | 0.005738 | 0.362092 | 7,650 | 230 | 80 | 33.26087 | 0.842828 | 0.218693 | 0 | 0.531429 | 0 | 0 | 0.019852 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108571 | false | 0.017143 | 0.034286 | 0.011429 | 0.245714 | 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 |
198cce97dd571e2e8a46ea89d848568e280efd25 | 739 | py | Python | merge.py | Graze-Lab/SDE-of-species | c53ca05ff840e722fec3d71b5794057713d221f8 | [
"MIT"
] | null | null | null | merge.py | Graze-Lab/SDE-of-species | c53ca05ff840e722fec3d71b5794057713d221f8 | [
"MIT"
] | null | null | null | merge.py | Graze-Lab/SDE-of-species | c53ca05ff840e722fec3d71b5794057713d221f8 | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
"A script to perform the linear regression and create the plot."
# Python program to
# demonstrate merging of
# two files
# Creating a list of filenames
filenames = ['A.591-search-immune-dmel-FlyBase_IDs.txt', 'B.432_search-defense-dmel-FlyBase_IDs.txt']
# Open file3 in write mode
with open(... | 26.392857 | 101 | 0.653586 | 110 | 739 | 4.354545 | 0.563636 | 0.068894 | 0.087683 | 0.106472 | 0.100209 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021661 | 0.250338 | 739 | 27 | 102 | 27.37037 | 0.84296 | 0.464141 | 0 | 0 | 0 | 0 | 0.425056 | 0.279642 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
198e2ea49efeb318a688dffd17a8ff15bcc42c01 | 13 | py | Python | dmm/dmm_data/__init__.py | voghoei/Different-Models | ede4a48a7960ccb4a8519bfb77d234328f2936d1 | [
"MIT"
] | 11 | 2017-11-16T13:01:47.000Z | 2021-12-26T20:07:24.000Z | optvaedatasets/__init__.py | rahulk90/inference_introspection | 102b3cf72abae8d66718b945df365edd4a23a62d | [
"MIT"
] | null | null | null | optvaedatasets/__init__.py | rahulk90/inference_introspection | 102b3cf72abae8d66718b945df365edd4a23a62d | [
"MIT"
] | null | null | null | all=['load']
| 6.5 | 12 | 0.538462 | 2 | 13 | 3.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 13 | 1 | 13 | 13 | 0.583333 | 0 | 0 | 0 | 0 | 0 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
19901da7c7a1960491cefcc10a95446ff706e6be | 10,996 | py | Python | game/sdktools/python/global/lib/site-packages/python_sfm.py | Andrej730/python-sfm | dc693b9d221fa046000a41ffdbb59b5ddca6d9dc | [
"MIT"
] | null | null | null | game/sdktools/python/global/lib/site-packages/python_sfm.py | Andrej730/python-sfm | dc693b9d221fa046000a41ffdbb59b5ddca6d9dc | [
"MIT"
] | null | null | null | game/sdktools/python/global/lib/site-packages/python_sfm.py | Andrej730/python-sfm | dc693b9d221fa046000a41ffdbb59b5ddca6d9dc | [
"MIT"
] | null | null | null | # encoding: utf-8
import os
import pydoc
import inspect
import PySide
import vs
import sfm
import sfmApp
class SFMElement(object):
def __init__(self, element):
self._original = element
@property
def name(self):
return self._original.GetName()
@property
def attributes(self):
... | 29.013193 | 99 | 0.636049 | 1,192 | 10,996 | 5.708054 | 0.244128 | 0.070547 | 0.011317 | 0.023663 | 0.129042 | 0.115667 | 0.099353 | 0.068489 | 0.057613 | 0.043945 | 0 | 0.002108 | 0.266733 | 10,996 | 379 | 100 | 29.013193 | 0.841746 | 0.129411 | 0 | 0.214575 | 0 | 0 | 0.04994 | 0.00229 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.004049 | 0.02834 | null | null | 0.020243 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
19918c7e3202a1fa8b8c6f798ca7ec26ed75c1a5 | 1,778 | py | Python | waterApp/migrations/0014_gwmonitoringkobo.py | csisarep/groundwater_dashboard | 4f93d7b7c9fd6b48ace54e7b62cae717decc98d2 | [
"MIT"
] | null | null | null | waterApp/migrations/0014_gwmonitoringkobo.py | csisarep/groundwater_dashboard | 4f93d7b7c9fd6b48ace54e7b62cae717decc98d2 | [
"MIT"
] | null | null | null | waterApp/migrations/0014_gwmonitoringkobo.py | csisarep/groundwater_dashboard | 4f93d7b7c9fd6b48ace54e7b62cae717decc98d2 | [
"MIT"
] | null | null | null | # Generated by Django 2.2 on 2021-09-14 07:38
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('waterApp', '0013_gwlocationsdata_location'),
]
operations = [
migrations.CreateModel(
name='GwMonitoringKobo',
fields=... | 46.789474 | 174 | 0.596738 | 195 | 1,778 | 5.230769 | 0.374359 | 0.123529 | 0.114706 | 0.15 | 0.553922 | 0.526471 | 0.231373 | 0.231373 | 0.172549 | 0 | 0 | 0.025152 | 0.262092 | 1,778 | 37 | 175 | 48.054054 | 0.752287 | 0.024184 | 0 | 0 | 1 | 0 | 0.166763 | 0.064051 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.032258 | 0 | 0.129032 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1991dc4138a00addb007b9c008442a088b976ece | 255 | py | Python | graphs.py | spencerparkin/ComplexFunctionGrapher | 780eea1fa704d3dcf0f41e701acbe709d0e8c410 | [
"MIT"
] | null | null | null | graphs.py | spencerparkin/ComplexFunctionGrapher | 780eea1fa704d3dcf0f41e701acbe709d0e8c410 | [
"MIT"
] | null | null | null | graphs.py | spencerparkin/ComplexFunctionGrapher | 780eea1fa704d3dcf0f41e701acbe709d0e8c410 | [
"MIT"
] | null | null | null | # graphs.py
# TODO: Import zeta function here or assume that the calling/loading program puts it into our global scope for us?
def func1(z):
# This, of course, is just the identity function.
return z
def func2(z):
return (1.0 - z)*(1.0 + z) | 25.5 | 114 | 0.678431 | 45 | 255 | 3.844444 | 0.777778 | 0.023121 | 0.034682 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030303 | 0.223529 | 255 | 10 | 115 | 25.5 | 0.843434 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
1992027ec84925790a7d6fb4bda0cd8820388c0a | 2,891 | py | Python | src/rhc_hqa/rhc_hqa.py | Minyus/rhc_hqa | 2b9f37a8b6ddb9dd36c08764acd2dcf9cbd7c551 | [
"Apache-2.0"
] | null | null | null | src/rhc_hqa/rhc_hqa.py | Minyus/rhc_hqa | 2b9f37a8b6ddb9dd36c08764acd2dcf9cbd7c551 | [
"Apache-2.0"
] | null | null | null | src/rhc_hqa/rhc_hqa.py | Minyus/rhc_hqa | 2b9f37a8b6ddb9dd36c08764acd2dcf9cbd7c551 | [
"Apache-2.0"
] | null | null | null | import pandas as pd
import numpy as np
from sklearn.linear_model import LogisticRegression
from lightgbm import LGBMRegressor
def cv_index_list_to_df(d):
out_dict = {}
for group, index_list in d.items():
for index in index_list:
out_dict[index] = group
df = pd.DataFrame.from_dict(out_d... | 32.852273 | 80 | 0.649256 | 400 | 2,891 | 4.29 | 0.215 | 0.04662 | 0.04662 | 0.045455 | 0.200466 | 0.184149 | 0.041958 | 0.041958 | 0.041958 | 0 | 0 | 0.014034 | 0.235905 | 2,891 | 87 | 81 | 33.229885 | 0.762789 | 0 | 0 | 0.030303 | 0 | 0 | 0.097198 | 0.022484 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0.090909 | 0 | 0.151515 | 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 |
1992310a23c16a6b24ee79181f9ba76bf057b0f3 | 2,301 | py | Python | 257.py | wilbertgeng/LeetCode_exercise | f00c08e0d28ffa88d61d4262c6d1f49f1fa91ebc | [
"MIT"
] | null | null | null | 257.py | wilbertgeng/LeetCode_exercise | f00c08e0d28ffa88d61d4262c6d1f49f1fa91ebc | [
"MIT"
] | null | null | null | 257.py | wilbertgeng/LeetCode_exercise | f00c08e0d28ffa88d61d4262c6d1f49f1fa91ebc | [
"MIT"
] | null | null | null | """257. Binary Tree Paths"""
# Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution(object):
def binaryTreePaths(self, root):
"""
:type roo... | 29.883117 | 72 | 0.49761 | 276 | 2,301 | 4.119565 | 0.17029 | 0.084433 | 0.079156 | 0.063325 | 0.430079 | 0.335092 | 0.319261 | 0.153914 | 0.129288 | 0.129288 | 0 | 0.004051 | 0.356367 | 2,301 | 76 | 73 | 30.276316 | 0.763673 | 0.12299 | 0 | 0.433962 | 0 | 0 | 0.008167 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09434 | false | 0 | 0 | 0 | 0.301887 | 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 |
1992ec78bc5a151f3be755b884f124a14b674536 | 213 | py | Python | bot/tasks/__init__.py | gugarosa/botty | 5d286c87716cb3ee55a58bdc560024be2276589f | [
"MIT"
] | null | null | null | bot/tasks/__init__.py | gugarosa/botty | 5d286c87716cb3ee55a58bdc560024be2276589f | [
"MIT"
] | null | null | null | bot/tasks/__init__.py | gugarosa/botty | 5d286c87716cb3ee55a58bdc560024be2276589f | [
"MIT"
] | null | null | null | """A tasks package, used to support different tasks that the bot can execute.
Essentialy, one can define any kind of operation that the bot can perform over a type
of input data (audio, text, video and voice).
""" | 53.25 | 85 | 0.760563 | 37 | 213 | 4.378378 | 0.783784 | 0.08642 | 0.123457 | 0.160494 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173709 | 213 | 4 | 86 | 53.25 | 0.920455 | 0.967136 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1993e0484cd76cbe8ee03395dd60ee7a00db241f | 2,179 | py | Python | crm/forms.py | zhangyafeii/CRM | 4d93fb276c7210676590da48b18d8e72cc202ef0 | [
"MIT"
] | null | null | null | crm/forms.py | zhangyafeii/CRM | 4d93fb276c7210676590da48b18d8e72cc202ef0 | [
"MIT"
] | null | null | null | crm/forms.py | zhangyafeii/CRM | 4d93fb276c7210676590da48b18d8e72cc202ef0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
@Datetime: 2018/10/23
@Author: Zhang Yafei
"""
from django.forms import ModelForm, forms
from crm import models
class EnrollmentForm(ModelForm):
def __new__(cls, *args, **kwargs):
# print('__new__',cls,args,kwargs)
for field_name in cls.base_fields:
file_ob... | 35.145161 | 119 | 0.620009 | 254 | 2,179 | 5.019685 | 0.346457 | 0.028235 | 0.031373 | 0.050196 | 0.486275 | 0.458039 | 0.458039 | 0.392157 | 0.392157 | 0.392157 | 0 | 0.005535 | 0.253786 | 2,179 | 61 | 120 | 35.721311 | 0.778598 | 0.114273 | 0 | 0.5 | 0 | 0 | 0.146583 | 0.011476 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.05 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
199526a23444f21fe4ced48163607211a83fd853 | 3,911 | py | Python | api/user_api.py | HuQi2018/BiSheServer | 66fd77865e131f0a06313562b5d127e530128944 | [
"Apache-2.0"
] | 44 | 2021-06-03T04:01:30.000Z | 2022-03-31T15:46:00.000Z | api/user_api.py | HuQi2018/BiSheServer | 66fd77865e131f0a06313562b5d127e530128944 | [
"Apache-2.0"
] | 1 | 2022-02-21T05:40:01.000Z | 2022-03-17T10:50:51.000Z | api/user_api.py | HuQi2018/BiSheServer | 66fd77865e131f0a06313562b5d127e530128944 | [
"Apache-2.0"
] | 8 | 2021-06-05T17:13:35.000Z | 2022-03-24T05:04:30.000Z | import uuid
from django.core.files.base import ContentFile
from django.core.files.storage import default_storage
from django.db.models import Q
from BiSheServer import settings
from api.model_json import queryset_to_json
from user.models import UsersPerfer, UsersDetail, UserTag
# 用户api
class User:
def __init__(... | 35.554545 | 116 | 0.611864 | 477 | 3,911 | 4.698113 | 0.272537 | 0.080321 | 0.035698 | 0.029005 | 0.21419 | 0.147702 | 0.147702 | 0.147702 | 0.134761 | 0.134761 | 0 | 0.004367 | 0.297366 | 3,911 | 109 | 117 | 35.880734 | 0.811135 | 0.076451 | 0 | 0.2125 | 0 | 0 | 0.049582 | 0.00585 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.0125 | 0.0875 | 0.0125 | 0.35 | 0.0125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
199538a4a4f978d0b56aadb122776630718bac24 | 1,777 | py | Python | Diretide/lib.py | sleibrock/dotacli | e361fbcf787f13232fcf8994b839d4c9f08bc67a | [
"MIT"
] | null | null | null | Diretide/lib.py | sleibrock/dotacli | e361fbcf787f13232fcf8994b839d4c9f08bc67a | [
"MIT"
] | null | null | null | Diretide/lib.py | sleibrock/dotacli | e361fbcf787f13232fcf8994b839d4c9f08bc67a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#-*- coding: utf-8 -*-
"""
lib.py
"""
from string import printable as printable_chrs
from collections import namedtuple
from requests import get as re_get
from datetime import datetime
# Define constants
API_URL = "http://dailydota2.com/match-api"
Match = namedtuple("Match", ["timediff", "seri... | 26.924242 | 78 | 0.621835 | 234 | 1,777 | 4.602564 | 0.461538 | 0.03714 | 0.031569 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00656 | 0.227912 | 1,777 | 65 | 79 | 27.338462 | 0.778426 | 0.214969 | 0 | 0.057143 | 0 | 0 | 0.215474 | 0.031815 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.114286 | 0.057143 | 0.371429 | 0.228571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1996ff9cbd376245bbd4ada8ffdff6a62803fa08 | 417 | py | Python | hash-tool/vv_hash.py | amjunliang/virtualview_tools | 7fcf62134b0a23a71bb8f4b54a6aac19cf858ef6 | [
"MIT"
] | 186 | 2017-12-06T09:17:07.000Z | 2022-01-10T04:04:09.000Z | hash-tool/vv_hash.py | amjunliang/virtualview_tools | 7fcf62134b0a23a71bb8f4b54a6aac19cf858ef6 | [
"MIT"
] | 16 | 2017-12-18T04:15:57.000Z | 2021-04-15T06:50:37.000Z | hash-tool/vv_hash.py | amjunliang/virtualview_tools | 7fcf62134b0a23a71bb8f4b54a6aac19cf858ef6 | [
"MIT"
] | 47 | 2018-01-12T06:23:26.000Z | 2022-02-22T05:56:59.000Z | import sys
if len(sys.argv) <= 1:
print("python vv_hash.py property_name")
exit(0)
propertyName = sys.argv[1]
if len(propertyName) == 0:
print("empty element name")
exit(0)
hashCode = 0
for i in range(0, len(propertyName)):
hashCode = (31 * hashCode + ord(propertyName[i])) & 0xFFFFFFFF
if has... | 24.529412 | 66 | 0.654676 | 57 | 417 | 4.754386 | 0.526316 | 0.0369 | 0.059041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066465 | 0.206235 | 417 | 17 | 67 | 24.529412 | 0.752266 | 0 | 0 | 0.142857 | 0 | 0 | 0.148325 | 0 | 0 | 0 | 0.074163 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0.214286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1998df4907ac93692e766bee0d9c71f2e17b5c12 | 237 | py | Python | pycounter/test/test_jr1_tabs.py | loadbrain/pycounter | e5533d0ebe3685df0c29f8e491ea6dd1c14c6b66 | [
"MIT"
] | null | null | null | pycounter/test/test_jr1_tabs.py | loadbrain/pycounter | e5533d0ebe3685df0c29f8e491ea6dd1c14c6b66 | [
"MIT"
] | 2 | 2020-08-27T14:12:44.000Z | 2020-08-27T14:16:18.000Z | pycounter/test/test_jr1_tabs.py | loadbrain/pycounter | e5533d0ebe3685df0c29f8e491ea6dd1c14c6b66 | [
"MIT"
] | null | null | null | """Test COUNTER JR1 journal report (TSV)"""
def test_html(tsv_jr1):
assert [pub.html_total for pub in tsv_jr1.pubs] == [0, 15, 33, 0]
def test_pdf(tsv_jr1):
assert [pub.pdf_total for pub in tsv_jr1.pubs] == [32, 12, 855, 40]
| 23.7 | 71 | 0.662447 | 44 | 237 | 3.386364 | 0.5 | 0.161074 | 0.161074 | 0.201342 | 0.308725 | 0.308725 | 0.308725 | 0 | 0 | 0 | 0 | 0.103627 | 0.185654 | 237 | 9 | 72 | 26.333333 | 0.668394 | 0.156118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.5 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |