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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
12524c78db52d066d9359e2f43a4072e7e1d5ad8 | 531 | py | Python | src/main.py | danbailo/CRUD-MySQL | d35364e2d626585eadb90eee00b631a9fc36205e | [
"MIT"
] | null | null | null | src/main.py | danbailo/CRUD-MySQL | d35364e2d626585eadb90eee00b631a9fc36205e | [
"MIT"
] | null | null | null | src/main.py | danbailo/CRUD-MySQL | d35364e2d626585eadb90eee00b631a9fc36205e | [
"MIT"
] | null | null | null | #data for example
#https://github.com/datacharmer/test_db
#https://medium.com/@ramojol/python-context-managers-and-the-with-statement-8f53d4d9f87
#CRUD in SQL
#Create - INSERT
#Read (Retrieve) - SELECT
#Update (Modify) - UPDATE
#Delete (Destroy) - DELETE
from core import MySQLcompatible
import utils
if _... | 27.947368 | 87 | 0.708098 | 66 | 531 | 5.515152 | 0.757576 | 0.038462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038288 | 0.163842 | 531 | 18 | 88 | 29.5 | 0.781532 | 0.472693 | 0 | 0 | 0 | 0 | 0.209559 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
125c4b73686540aa184be14ef9176ed84f4b62e0 | 128,361 | py | Python | modules/spartan/manipulation/grasp_supervisor.py | mpetersen94/spartan | 6998c959d46a475ff73ef38d3e83f8a9f3695e6d | [
"BSD-3-Clause-Clear"
] | null | null | null | modules/spartan/manipulation/grasp_supervisor.py | mpetersen94/spartan | 6998c959d46a475ff73ef38d3e83f8a9f3695e6d | [
"BSD-3-Clause-Clear"
] | null | null | null | modules/spartan/manipulation/grasp_supervisor.py | mpetersen94/spartan | 6998c959d46a475ff73ef38d3e83f8a9f3695e6d | [
"BSD-3-Clause-Clear"
] | null | null | null | # system
import os
import numpy as np
import random
import copy
import time
# ROS
import rospy
import std_msgs.msg
import sensor_msgs.msg
import geometry_msgs.msg
import visualization_msgs.msg
import tf2_ros
import rosbag
import actionlib
from actionlib_msgs.msg import GoalStatus
import ros_numpy
# spartan ROS
import... | 38.861944 | 220 | 0.652262 | 14,156 | 128,361 | 5.609494 | 0.066756 | 0.013802 | 0.010049 | 0.00952 | 0.631851 | 0.555952 | 0.503035 | 0.469474 | 0.442877 | 0.423446 | 0 | 0.006288 | 0.270253 | 128,361 | 3,302 | 221 | 38.873713 | 0.841445 | 0.058772 | 0 | 0.482353 | 0 | 0 | 0.08902 | 0.026736 | 0 | 0 | 0 | 0 | 0.004092 | 0 | null | null | 0 | 0.021483 | null | null | 0.049105 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
125ce800ae52f5aa1662850c0d4f3e2ba765dd97 | 2,284 | py | Python | test/extern/gperf-adakwd-compression.py | vanrein/lillydap | 1ba36e174bf43800de5c7581fb171e531f8abc1c | [
"BSD-2-Clause"
] | 6 | 2017-02-02T21:24:22.000Z | 2021-07-19T19:04:15.000Z | test/extern/gperf-adakwd-compression.py | vanrein/lillydap | 1ba36e174bf43800de5c7581fb171e531f8abc1c | [
"BSD-2-Clause"
] | 7 | 2017-02-24T21:31:11.000Z | 2019-04-19T13:52:21.000Z | test/extern/gperf-adakwd-compression.py | vanrein/lillydap | 1ba36e174bf43800de5c7581fb171e531f8abc1c | [
"BSD-2-Clause"
] | 2 | 2017-02-16T22:18:47.000Z | 2019-05-26T15:57:18.000Z | #!/usr/bin/env python
#
# Attempt to compact the table output by gperf -- it holds empty entries
# that could perhaps go when using modular arithmetic. Especially the
# empty entries at the beginning can go.
#
# From: Rick van Rein <rick@openfortress.nl>
# The model holds "" for non-occupied entries and something el... | 17.705426 | 72 | 0.411121 | 217 | 2,284 | 4.299539 | 0.608295 | 0.042872 | 0.008574 | 0.034298 | 0.036442 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003541 | 0.381786 | 2,284 | 128 | 73 | 17.84375 | 0.657224 | 0.198336 | 0 | 0.229358 | 0 | 0 | 0.192413 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.045872 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
125d46bda371fb8e109e27ae5eafb59a990e7714 | 3,894 | py | Python | 327-Count-of-Range-Sum/solution.py | Tanych/CodeTracking | 86f1cb98de801f58c39d9a48ce9de12df7303d20 | [
"MIT"
] | null | null | null | 327-Count-of-Range-Sum/solution.py | Tanych/CodeTracking | 86f1cb98de801f58c39d9a48ce9de12df7303d20 | [
"MIT"
] | null | null | null | 327-Count-of-Range-Sum/solution.py | Tanych/CodeTracking | 86f1cb98de801f58c39d9a48ce9de12df7303d20 | [
"MIT"
] | null | null | null |
class FenwickTree(object):
def __init__(self,n):
# one dummpy node
self.bittree=[0]*(n+1)
self.cnt=n
def lowbit(self, index):
return index & (-index)
def add(self,index,val):
if index==0:
return
# it's just add when do update,the v... | 33.568966 | 112 | 0.538521 | 557 | 3,894 | 3.728905 | 0.217235 | 0.033702 | 0.014444 | 0.02311 | 0.077997 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017433 | 0.351823 | 3,894 | 116 | 113 | 33.568966 | 0.805468 | 0.214689 | 0 | 0.085714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1261562d809cbccfc6eb574338004dd2748b1b2a | 2,668 | py | Python | admin_changelist_export/csv_utils.py | frankhood/django-admin-changelist-export | b24f130c0b8560428cf1cf98d7273b792a86b7db | [
"MIT"
] | null | null | null | admin_changelist_export/csv_utils.py | frankhood/django-admin-changelist-export | b24f130c0b8560428cf1cf98d7273b792a86b7db | [
"MIT"
] | null | null | null | admin_changelist_export/csv_utils.py | frankhood/django-admin-changelist-export | b24f130c0b8560428cf1cf98d7273b792a86b7db | [
"MIT"
] | null | null | null | import codecs
import csv
import logging
from io import StringIO
logger = logging.getLogger(__name__)
class CsvUnicodeWriter(object):
def __init__(self, f, dialect=csv.excel, encoding="utf-8", **kwds):
"""
CSV writer.
Which will write rows to CSV file "f", which is encoded in the given en... | 29.977528 | 115 | 0.605322 | 339 | 2,668 | 4.634218 | 0.315634 | 0.017823 | 0.035646 | 0.032463 | 0.169319 | 0.108211 | 0.108211 | 0.108211 | 0.108211 | 0.108211 | 0 | 0.005203 | 0.27961 | 2,668 | 88 | 116 | 30.318182 | 0.812175 | 0.149925 | 0 | 0.137931 | 0 | 0 | 0.069307 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0 | 0.068966 | 0.068966 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
12665365d56188b03ab92120bd17761bf304f487 | 2,061 | py | Python | pyhumour/_utilities/pos_tag_bigram_frequency_matrix.py | mellon-collie/pyhumour | 7ce3ad56d4c01174c97aea2d52c2a97d56bd64f3 | [
"BSD-3-Clause"
] | 1 | 2021-08-21T15:35:40.000Z | 2021-08-21T15:35:40.000Z | pyhumour/_utilities/pos_tag_bigram_frequency_matrix.py | mellon-collie/pyhumour | 7ce3ad56d4c01174c97aea2d52c2a97d56bd64f3 | [
"BSD-3-Clause"
] | 1 | 2021-11-27T07:25:35.000Z | 2021-11-27T07:25:35.000Z | pyhumour/_utilities/pos_tag_bigram_frequency_matrix.py | mellon-collie/pyhumour | 7ce3ad56d4c01174c97aea2d52c2a97d56bd64f3 | [
"BSD-3-Clause"
] | 1 | 2021-12-09T08:53:02.000Z | 2021-12-09T08:53:02.000Z | import re
from collections import defaultdict
pos_tag_dict = {'Adjective': ('JJ', 'JJR', 'JJS'), 'Noun': ('NN', 'NNS', 'NNP', 'NNPS')}
class POSTagBigramFrequencyMatrix:
"""
Helps in constructing the POS tag bigram frequency matrix used in computing Conflict, Adjective Absurdity
"""
def _construct_ma... | 42.061224 | 109 | 0.629791 | 281 | 2,061 | 4.224199 | 0.256228 | 0.070767 | 0.065712 | 0.080034 | 0.307498 | 0.236731 | 0.149958 | 0.124684 | 0.124684 | 0.124684 | 0 | 0.007879 | 0.261038 | 2,061 | 48 | 110 | 42.9375 | 0.771504 | 0.050946 | 0 | 0 | 0 | 0 | 0.02732 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.194444 | false | 0 | 0.055556 | 0.138889 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
126bc486b262a68c6813f76c21c0e9ebfadfd89d | 1,097 | py | Python | klap4/services/song_services.py | griffin962/backendbois | ae35fd772d096ce88a8eceb25de81e6bc4ef14e0 | [
"MIT"
] | 1 | 2020-02-12T20:45:41.000Z | 2020-02-12T20:45:41.000Z | klap4/services/song_services.py | griffin962/backendbois | ae35fd772d096ce88a8eceb25de81e6bc4ef14e0 | [
"MIT"
] | null | null | null | klap4/services/song_services.py | griffin962/backendbois | ae35fd772d096ce88a8eceb25de81e6bc4ef14e0 | [
"MIT"
] | 1 | 2020-04-04T20:02:49.000Z | 2020-04-04T20:02:49.000Z | from sqlalchemy import func
from sqlalchemy.orm.exc import NoResultFound
from sqlalchemy.sql.expression import and_
from klap4.db_entities import SQLBase, decompose_tag, get_entity_from_tag
from klap4.db_entities.genre import Genre
from klap4.db_entities.artist import Artist
from klap4.db_entities.album import Album
f... | 26.756098 | 77 | 0.725615 | 159 | 1,097 | 4.779874 | 0.289308 | 0.094737 | 0.101316 | 0.125 | 0.281579 | 0.281579 | 0.281579 | 0.281579 | 0.281579 | 0.171053 | 0 | 0.00905 | 0.194166 | 1,097 | 41 | 78 | 26.756098 | 0.850679 | 0 | 0 | 0.275862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.37931 | 0 | 0.517241 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
126c3afe69bfb97223c2cab4d50b17c757c986f1 | 2,821 | py | Python | api/services/secret.py | endareBrock/http-dockercompose-deploy | dd421f694f19294be0e43268ac61348c05760219 | [
"MIT"
] | 1 | 2019-07-15T15:25:21.000Z | 2019-07-15T15:25:21.000Z | api/services/secret.py | endareBrock/http-dockercompose-deploy | dd421f694f19294be0e43268ac61348c05760219 | [
"MIT"
] | 2 | 2020-03-11T14:56:44.000Z | 2020-04-23T17:08:16.000Z | api/services/secret.py | endareBrock/http-dockercompose-deploy | dd421f694f19294be0e43268ac61348c05760219 | [
"MIT"
] | 3 | 2019-07-15T15:19:29.000Z | 2020-02-28T12:24:13.000Z | import json
from json.decoder import JSONDecodeError
import sys
import boto3
import base64
SECRETS_FILE = "/srv/registry_credentials.json"
KEY_REGISTRY_DOMAIN = "domain"
KEY_REGISTRY_USER = "user"
KEY_REGISTRY_PASSWORD = "password"
KEY_AWS_ACCESSKEY = "aws_access_key_id"
KEY_AWS_SECRET = "aws_secret_access_key"
KEY... | 36.166667 | 144 | 0.634172 | 320 | 2,821 | 5.371875 | 0.26875 | 0.052356 | 0.034904 | 0.040721 | 0.2484 | 0.193136 | 0.112275 | 0.089587 | 0.089587 | 0.089587 | 0 | 0.005013 | 0.292804 | 2,821 | 77 | 145 | 36.636364 | 0.856642 | 0.069124 | 0 | 0.089286 | 0 | 0 | 0.162533 | 0.019458 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.089286 | 0.089286 | 0 | 0.178571 | 0.107143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
89c2f22015941ce24ebbaa94e1f22b65442439ae | 1,147 | py | Python | homeassistant/components/radio_browser/__init__.py | MrDelik/core | 93a66cc357b226389967668441000498a10453bb | [
"Apache-2.0"
] | 30,023 | 2016-04-13T10:17:53.000Z | 2020-03-02T12:56:31.000Z | homeassistant/components/radio_browser/__init__.py | MrDelik/core | 93a66cc357b226389967668441000498a10453bb | [
"Apache-2.0"
] | 24,710 | 2016-04-13T08:27:26.000Z | 2020-03-02T12:59:13.000Z | homeassistant/components/radio_browser/__init__.py | MrDelik/core | 93a66cc357b226389967668441000498a10453bb | [
"Apache-2.0"
] | 11,956 | 2016-04-13T18:42:31.000Z | 2020-03-02T09:32:12.000Z | """The Radio Browser integration."""
from __future__ import annotations
from radios import RadioBrowser, RadioBrowserError
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import __version__
from homeassistant.core import HomeAssistant
from homeassistant.exceptions import ConfigEntryNotRe... | 31 | 85 | 0.765475 | 139 | 1,147 | 6.151079 | 0.47482 | 0.099415 | 0.049123 | 0.063158 | 0.098246 | 0.098246 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166521 | 1,147 | 36 | 86 | 31.861111 | 0.894351 | 0.026155 | 0 | 0.1 | 0 | 0 | 0.069149 | 0.028723 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
89c36642e965d849af50e07ce2a9f93de5733b75 | 532 | py | Python | finance/migrations/0037_alter_eventimportrecord_transaction.py | webclinic017/invertimo | 125995b2f04a0b8cf3fe98df38f2a4f15cf8399b | [
"MIT"
] | null | null | null | finance/migrations/0037_alter_eventimportrecord_transaction.py | webclinic017/invertimo | 125995b2f04a0b8cf3fe98df38f2a4f15cf8399b | [
"MIT"
] | null | null | null | finance/migrations/0037_alter_eventimportrecord_transaction.py | webclinic017/invertimo | 125995b2f04a0b8cf3fe98df38f2a4f15cf8399b | [
"MIT"
] | null | null | null | # Generated by Django 3.2 on 2022-02-02 11:03
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('finance', '0036_auto_20220202_1101'),
]
operations = [
migrations.AlterField(
model_name='eventim... | 26.6 | 149 | 0.667293 | 60 | 532 | 5.783333 | 0.666667 | 0.069164 | 0.080692 | 0.126801 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072115 | 0.218045 | 532 | 19 | 150 | 28 | 0.762019 | 0.080827 | 0 | 0 | 1 | 0 | 0.184805 | 0.047228 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.230769 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
89c803c74d865b4b5c6925f65f8ecead568c8109 | 7,535 | py | Python | tests/integration_tests/test_chunk_biweekly_repeat.py | imposeren/django-happenings | cd9814a561e4ac880d2bc848bde9b4515f1faf3e | [
"BSD-2-Clause"
] | 2 | 2019-12-11T14:39:05.000Z | 2020-06-23T10:28:30.000Z | tests/integration_tests/test_chunk_biweekly_repeat.py | imposeren/django-happenings | cd9814a561e4ac880d2bc848bde9b4515f1faf3e | [
"BSD-2-Clause"
] | null | null | null | tests/integration_tests/test_chunk_biweekly_repeat.py | imposeren/django-happenings | cd9814a561e4ac880d2bc848bde9b4515f1faf3e | [
"BSD-2-Clause"
] | 2 | 2018-12-25T00:34:11.000Z | 2020-06-23T10:28:45.000Z | from __future__ import unicode_literals
from calendar import monthrange
import datetime
try:
from django.core.urlresolvers import reverse
except ImportError:
from django.urls import reverse
from django.utils.six.moves import xrange
from .event_factory import create_event, SetMeUp
class BiweeklyRepeatingChu... | 37.30198 | 79 | 0.438222 | 974 | 7,535 | 3.294661 | 0.146817 | 0.017451 | 0.061701 | 0.037395 | 0.630726 | 0.509816 | 0.427236 | 0.420692 | 0.392022 | 0.392022 | 0 | 0.218975 | 0.409688 | 7,535 | 201 | 80 | 37.487562 | 0.502473 | 0.078301 | 0 | 0.271084 | 0 | 0 | 0.071334 | 0 | 0 | 0 | 0 | 0 | 0.024096 | 1 | 0.036145 | false | 0 | 0.048193 | 0 | 0.090361 | 0 | 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 |
89c808a503aa3193288926c597b6c74826a43f3e | 6,699 | py | Python | theonerig/eyetrack.py | Tom-TBT/TheOneRig | 146583c6749317f8f40010f98f6e42a497fd4cec | [
"Apache-2.0"
] | 1 | 2021-06-18T15:46:24.000Z | 2021-06-18T15:46:24.000Z | theonerig/eyetrack.py | Tom-TBT/TheOneRig | 146583c6749317f8f40010f98f6e42a497fd4cec | [
"Apache-2.0"
] | 2 | 2021-03-29T08:33:28.000Z | 2021-04-08T14:52:55.000Z | theonerig/eyetrack.py | Tom-TBT/TheOneRig | 146583c6749317f8f40010f98f6e42a497fd4cec | [
"Apache-2.0"
] | 4 | 2020-07-15T07:49:25.000Z | 2021-03-10T16:11:10.000Z | # AUTOGENERATED! DO NOT EDIT! File to edit: 06_eyetrack.ipynb (unless otherwise specified).
__all__ = ['interpolate_screen_pos', 'interpolate_checker_pos', 'split_eye_events', 'get_spherical_map',
'apply_spherical_map']
# Cell
import numpy as np
import scipy.interpolate as interpolate
from sklearn import c... | 46.846154 | 154 | 0.659054 | 1,054 | 6,699 | 3.997154 | 0.22296 | 0.032044 | 0.021362 | 0.009494 | 0.273677 | 0.20508 | 0.193686 | 0.174223 | 0.116544 | 0.106812 | 0 | 0.033193 | 0.221973 | 6,699 | 143 | 155 | 46.846154 | 0.775134 | 0.391999 | 0 | 0 | 1 | 0 | 0.071948 | 0.011688 | 0 | 0 | 0 | 0 | 0.045455 | 1 | 0.075758 | false | 0 | 0.045455 | 0 | 0.19697 | 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 |
89cff1d92419784d6c1283d0e5311529501c8bf7 | 2,706 | py | Python | maverick_api/modules/api/authentication/__init__.py | fnoop/maverick-api | 9ce1303c24f40e368e6e10255079c48453ac812a | [
"MIT"
] | null | null | null | maverick_api/modules/api/authentication/__init__.py | fnoop/maverick-api | 9ce1303c24f40e368e6e10255079c48453ac812a | [
"MIT"
] | null | null | null | maverick_api/modules/api/authentication/__init__.py | fnoop/maverick-api | 9ce1303c24f40e368e6e10255079c48453ac812a | [
"MIT"
] | null | null | null | from graphql import (
GraphQLArgument,
GraphQLEnumType,
GraphQLEnumValue,
GraphQLField,
GraphQLInterfaceType,
GraphQLList,
GraphQLNonNull,
GraphQLObjectType,
GraphQLSchema,
GraphQLString,
GraphQLBoolean,
GraphQLInt,
)
from graphql.pyutils.event_emitter import EventEmitter... | 31.103448 | 83 | 0.568367 | 227 | 2,706 | 6.603524 | 0.370044 | 0.026684 | 0.040027 | 0.068045 | 0.12942 | 0.104069 | 0 | 0 | 0 | 0 | 0 | 0.005537 | 0.332594 | 2,706 | 86 | 84 | 31.465116 | 0.824474 | 0.023651 | 0 | 0.150685 | 0 | 0 | 0.093678 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041096 | false | 0.054795 | 0.054795 | 0 | 0.150685 | 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 |
89d7e289abcaddceb882e0fdf8b2e0d98704da9e | 9,027 | py | Python | source/MPI/deliverable_code_3.py | supriyascode/MODIS-Aggregation | cc6ce992b81c358e6b7cb2635a5b8ff72d6e99f9 | [
"Apache-2.0"
] | null | null | null | source/MPI/deliverable_code_3.py | supriyascode/MODIS-Aggregation | cc6ce992b81c358e6b7cb2635a5b8ff72d6e99f9 | [
"Apache-2.0"
] | null | null | null | source/MPI/deliverable_code_3.py | supriyascode/MODIS-Aggregation | cc6ce992b81c358e6b7cb2635a5b8ff72d6e99f9 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# coding:utf8
# -*- coding: utf-8 -*-
"""
Main Program: Run MODIS AGGREGATION IN PARALLEL
Created on 2019
@author: Jianyu Zheng
"""
import random
import numpy as np
from mpi4py import MPI
from jdcal import gcal2jd
from netCDF4 import Dataset
import timeit,itertools,datetime,os,sys,fnmatch
clas... | 33.433333 | 112 | 0.65581 | 1,515 | 9,027 | 3.769637 | 0.219802 | 0.01716 | 0.021012 | 0.024514 | 0.284539 | 0.251795 | 0.196638 | 0.157591 | 0.128174 | 0.098757 | 0 | 0.034049 | 0.154093 | 9,027 | 270 | 113 | 33.433333 | 0.713855 | 0.218123 | 0 | 0.104294 | 0 | 0 | 0.097349 | 0.028306 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.006135 | 0.03681 | null | null | 0.042945 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
89d80354f0f18dec1db7c3100958e6b7d2f30c86 | 3,695 | py | Python | tests/test_pronunciation.py | ftobia/ham | d058c6dd08e2cd740094c5ceff265d215c9a0d7f | [
"MIT"
] | 3 | 2015-01-01T14:08:51.000Z | 2020-07-23T14:55:29.000Z | tests/test_pronunciation.py | ftobia/ham | d058c6dd08e2cd740094c5ceff265d215c9a0d7f | [
"MIT"
] | null | null | null | tests/test_pronunciation.py | ftobia/ham | d058c6dd08e2cd740094c5ceff265d215c9a0d7f | [
"MIT"
] | null | null | null | import pytest
from ham import Pronunciation
class TestPronunciation(object):
def test_constructor(self):
ink = Pronunciation(['IH1', 'NG', 'K'])
ink2 = Pronunciation(ink)
assert ink == ink2
assert ink is not ink2
def test_str(self):
assert str(Pronunciation(['HH', 'A... | 36.95 | 76 | 0.537483 | 465 | 3,695 | 4.245161 | 0.182796 | 0.054711 | 0.072948 | 0.031915 | 0.331307 | 0.241641 | 0.098278 | 0 | 0 | 0 | 0 | 0.038285 | 0.293099 | 3,695 | 99 | 77 | 37.323232 | 0.717458 | 0 | 0 | 0.023256 | 0 | 0 | 0.110149 | 0 | 0 | 0 | 0 | 0 | 0.523256 | 1 | 0.116279 | false | 0 | 0.034884 | 0 | 0.162791 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
89db82f7eec85a5c630b97eb61906782aa5b593f | 3,603 | py | Python | exchange_rates_by/exchange_rates_by.py | peleccom/exchange_rates_by | 579a6f763ff17a80493b25dc5bd3c5eb3442faf7 | [
"MIT"
] | null | null | null | exchange_rates_by/exchange_rates_by.py | peleccom/exchange_rates_by | 579a6f763ff17a80493b25dc5bd3c5eb3442faf7 | [
"MIT"
] | 1 | 2021-04-07T07:32:46.000Z | 2021-04-07T07:32:46.000Z | exchange_rates_by/exchange_rates_by.py | peleccom/exchange_rates_by | 579a6f763ff17a80493b25dc5bd3c5eb3442faf7 | [
"MIT"
] | null | null | null | import re
import json
import datetime
from decimal import Decimal
import requests
from bs4 import BeautifulSoup
from user_agent import generate_user_agent
AVAILAIBLE_CURRENCIES = [
'usd',
'eur',
'rub100',
]
CITY = 'minsk'
class ExchangeRate:
def __init__(self, buy, sell):
self.buy = buy
... | 36.765306 | 115 | 0.611435 | 444 | 3,603 | 4.792793 | 0.295045 | 0.042293 | 0.031015 | 0.042293 | 0.171992 | 0.171992 | 0.151316 | 0.12312 | 0.12312 | 0.093045 | 0 | 0.012729 | 0.258673 | 3,603 | 97 | 116 | 37.14433 | 0.783976 | 0 | 0 | 0.1125 | 1 | 0 | 0.115737 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.0875 | 0 | 0.2125 | 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 |
89e4bed8197d8f2a074fdc751a0573fb758acd59 | 7,098 | py | Python | replicategithub/cli.py | danielparks/replicate-github | 251c2f69c39365de6c30855814e9fe2445890291 | [
"BSD-2-Clause"
] | 2 | 2016-08-23T14:50:58.000Z | 2021-05-17T14:57:56.000Z | replicategithub/cli.py | danielparks/replicate-github | 251c2f69c39365de6c30855814e9fe2445890291 | [
"BSD-2-Clause"
] | null | null | null | replicategithub/cli.py | danielparks/replicate-github | 251c2f69c39365de6c30855814e9fe2445890291 | [
"BSD-2-Clause"
] | 1 | 2016-08-12T00:38:49.000Z | 2016-08-12T00:38:49.000Z | import click
import logging
import multiprocessing
import signal
import sys
import yaml
import replicategithub
def set_up_logging(level=logging.WARNING, library_level=logging.WARNING):
logging.captureWarnings(True)
handler = logging.StreamHandler(stream=sys.stdout)
try:
import colorlog
ha... | 33.63981 | 89 | 0.666385 | 927 | 7,098 | 5.022654 | 0.297735 | 0.028351 | 0.020404 | 0.011168 | 0.093643 | 0.077749 | 0.06701 | 0.020189 | 0.020189 | 0.020189 | 0 | 0.010188 | 0.21175 | 7,098 | 210 | 90 | 33.8 | 0.821984 | 0.213159 | 0 | 0.137681 | 0 | 0 | 0.193002 | 0.016759 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072464 | false | 0.050725 | 0.065217 | 0 | 0.15942 | 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 |
89e8f19b52e1a8330a51316a22ad0aa0f52916ca | 217 | py | Python | Thread_bot/testdeletelater.py | xvang/reddit-bots | 1cd207d1e084672a765aa1e34fbcdc31557ea146 | [
"Unlicense"
] | null | null | null | Thread_bot/testdeletelater.py | xvang/reddit-bots | 1cd207d1e084672a765aa1e34fbcdc31557ea146 | [
"Unlicense"
] | null | null | null | Thread_bot/testdeletelater.py | xvang/reddit-bots | 1cd207d1e084672a765aa1e34fbcdc31557ea146 | [
"Unlicense"
] | null | null | null | import time
import datetime
from time import timezone
import calendar
sss = ['Monday', 'March', '16', '22', '30', 'PM']
dt = datetime.datetime(2015, 3, 16, 22, 30, 0)
s = time.mktime(dt.timetuple())
print(s)
| 12.055556 | 49 | 0.645161 | 33 | 217 | 4.242424 | 0.636364 | 0.142857 | 0.085714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101124 | 0.179724 | 217 | 17 | 50 | 12.764706 | 0.685393 | 0 | 0 | 0 | 0 | 0 | 0.087558 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
89e9dc6793f66da42cc71060bd29cd83d767fa5a | 1,419 | py | Python | DenoisingGCN/parsers.py | ZJUGAPS-YYGroup/GCN-Denoiser | 5d3ee62fdbf8bf56f5399c1717d4d7176924f809 | [
"MIT"
] | 15 | 2021-08-15T13:13:26.000Z | 2022-03-22T13:02:46.000Z | DenoisingGCN/parsers.py | ZJUGAPS-YYGroup/GCN-Denoiser | 5d3ee62fdbf8bf56f5399c1717d4d7176924f809 | [
"MIT"
] | 1 | 2021-10-20T02:34:58.000Z | 2021-10-20T02:34:58.000Z | DenoisingGCN/parsers.py | ZJUGAPS-YYGroup/GCN-Denoiser | 5d3ee62fdbf8bf56f5399c1717d4d7176924f809 | [
"MIT"
] | 4 | 2021-08-06T01:37:56.000Z | 2022-01-20T06:54:58.000Z | import argparse
def getParser():
parser = argparse.ArgumentParser()
parser.add_argument("--num_neighbors", type=int, default=64, help="Number of neignbors of a face.")
parser.add_argument("--batch_size", type=int, default=256, help="Size of one batch.")
parser.add_argument("--learning_rate", type=floa... | 59.125 | 129 | 0.715292 | 197 | 1,419 | 4.984772 | 0.350254 | 0.10998 | 0.207739 | 0.081466 | 0.130346 | 0.087576 | 0.087576 | 0.087576 | 0 | 0 | 0 | 0.0168 | 0.119098 | 1,419 | 23 | 130 | 61.695652 | 0.7688 | 0.06413 | 0 | 0 | 0 | 0 | 0.401961 | 0.040724 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.0625 | 0 | 0.1875 | 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 |
89f245a4ba4e6a56b97dbb6f31e9a17d9ef19ebc | 588 | py | Python | nd.py | mchellmer/NostalgiaDrive | 7d64a4ffef33ee6ff85eb7655976451d1c264cca | [
"MIT"
] | null | null | null | nd.py | mchellmer/NostalgiaDrive | 7d64a4ffef33ee6ff85eb7655976451d1c264cca | [
"MIT"
] | null | null | null | nd.py | mchellmer/NostalgiaDrive | 7d64a4ffef33ee6ff85eb7655976451d1c264cca | [
"MIT"
] | null | null | null | import nd.ndGui
import nd.ndMongo
import subprocess
from os import path, system
# Grab mongodb and output parameters to text
mDb = nd.ndMongo.NdMongo()
# Build Gui to make selections then output to log
x = nd.ndGui.NdGui()
# Grab selections from log and query db
logPath = path.join('docs', 'log.txt')
selection = mD... | 23.52 | 66 | 0.709184 | 83 | 588 | 5.024096 | 0.590361 | 0.057554 | 0.057554 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144558 | 588 | 24 | 67 | 24.5 | 0.829026 | 0.285714 | 0 | 0 | 0 | 0 | 0.157005 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
89f3f936f64c79088d215a21215342342c6fbe70 | 9,871 | py | Python | addons/ofxGuido/lib/guidolib-code/server/regression/test.py | k4rm/AscoGraph | 9038ae785b6f4f144a3ab5c4c5520761c0cd08f2 | [
"MIT"
] | 18 | 2015-01-18T22:34:22.000Z | 2020-09-06T20:30:30.000Z | addons/ofxGuido/lib/guidolib-code/server/regression/test.py | k4rm/AscoGraph | 9038ae785b6f4f144a3ab5c4c5520761c0cd08f2 | [
"MIT"
] | 2 | 2015-08-04T00:07:46.000Z | 2017-05-10T15:53:51.000Z | addons/ofxGuido/lib/guidolib-code/server/regression/test.py | k4rm/AscoGraph | 9038ae785b6f4f144a3ab5c4c5520761c0cd08f2 | [
"MIT"
] | 10 | 2015-01-18T23:46:10.000Z | 2019-08-25T12:10:04.000Z | import urllib
import urllib2
import json
import sys
import urlparse
import os
import difflib
import shutil
import hashlib
import guido_utilities
from optparse import OptionParser
from filecmp import dircmp
'''
BELOW YOU CAN SET CERTAIN SCRIPT VARIABLES
THAT CANNOT BE SET FROM THE COMMAND LINE.
IN THEORY, THESE ARE TH... | 32.903333 | 180 | 0.675514 | 1,470 | 9,871 | 4.467347 | 0.228571 | 0.012791 | 0.015228 | 0.010355 | 0.239683 | 0.176489 | 0.141465 | 0.141465 | 0.110553 | 0.110553 | 0 | 0.005472 | 0.185392 | 9,871 | 299 | 181 | 33.013378 | 0.811218 | 0.05349 | 0 | 0.202765 | 0 | 0.013825 | 0.294517 | 0.002529 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.0553 | null | null | 0.138249 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
89f6bf3f608bcf2b5d991ebc732c8e2fa6b40012 | 3,270 | py | Python | blatann/uuid.py | dkkeller/blatann | 2b72df4812f68fb718ab96d16c82343ee35969a5 | [
"BSD-3-Clause"
] | null | null | null | blatann/uuid.py | dkkeller/blatann | 2b72df4812f68fb718ab96d16c82343ee35969a5 | [
"BSD-3-Clause"
] | null | null | null | blatann/uuid.py | dkkeller/blatann | 2b72df4812f68fb718ab96d16c82343ee35969a5 | [
"BSD-3-Clause"
] | null | null | null | import re
import binascii
import secrets
from blatann.nrf.nrf_types import BLEUUID as _BLEUUID
class Uuid(object):
def __init__(self, nrf_uuid=None):
self.nrf_uuid = nrf_uuid
def __eq__(self, other):
return str(self) == str(other)
def __repr__(self):
return str(self... | 30.849057 | 115 | 0.588991 | 433 | 3,270 | 4.256351 | 0.235566 | 0.069452 | 0.013565 | 0.016278 | 0.123169 | 0.048291 | 0.01465 | 0.01465 | 0.01465 | 0.01465 | 0 | 0.070907 | 0.288379 | 3,270 | 105 | 116 | 31.142857 | 0.7211 | 0.044037 | 0 | 0.135135 | 0 | 0.027027 | 0.122066 | 0.038229 | 0 | 0 | 0.008719 | 0 | 0 | 1 | 0.202703 | false | 0 | 0.054054 | 0.067568 | 0.459459 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
89fb8772555f354600c1394aeda799c17d6ff66b | 444 | py | Python | contest/abc150/C.py | mola1129/atcoder | 1d3b18cb92d0ba18c41172f49bfcd0dd8d29f9db | [
"MIT"
] | null | null | null | contest/abc150/C.py | mola1129/atcoder | 1d3b18cb92d0ba18c41172f49bfcd0dd8d29f9db | [
"MIT"
] | null | null | null | contest/abc150/C.py | mola1129/atcoder | 1d3b18cb92d0ba18c41172f49bfcd0dd8d29f9db | [
"MIT"
] | null | null | null | import itertools
n = int(input())
l = [i + 1 for i in range(n)]
p = list(map(int, input().split()))
q = list(map(int, input().split()))
a = 0
b = 0
cnt = 1
for v in itertools.permutations(l, n):
for i in range(n):
if v[i] != p[i]:
break
if i == n - 1:
a = cnt
for i in ran... | 20.181818 | 38 | 0.441441 | 78 | 444 | 2.512821 | 0.333333 | 0.122449 | 0.091837 | 0.168367 | 0.540816 | 0.27551 | 0.163265 | 0.163265 | 0 | 0 | 0 | 0.025547 | 0.382883 | 444 | 21 | 39 | 21.142857 | 0.689781 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.047619 | 0.047619 | 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 |
89fb8ee4ff10cc4ced2afe475c5df4cf4f259e39 | 2,938 | py | Python | src/test/parser/template/nodes/test_log.py | hiitsme123/python | e08309fe61fd5ed88cfb39e9f402613dd7e39269 | [
"MIT"
] | 5 | 2017-02-03T07:38:45.000Z | 2022-01-06T11:29:29.000Z | src/test/parser/template/nodes/test_log.py | hiitsme123/python | e08309fe61fd5ed88cfb39e9f402613dd7e39269 | [
"MIT"
] | 8 | 2017-02-03T06:59:03.000Z | 2017-04-28T14:23:46.000Z | src/test/parser/template/nodes/test_log.py | hiitsme123/python | e08309fe61fd5ed88cfb39e9f402613dd7e39269 | [
"MIT"
] | 8 | 2017-02-02T15:12:12.000Z | 2017-04-02T13:35:03.000Z | import xml.etree.ElementTree as ET
from programy.parser.template.nodes.base import TemplateNode
from programy.parser.template.nodes.log import TemplateLogNode
from programy.parser.template.nodes.word import TemplateWordNode
from test.parser.template.base import TemplateTestsBaseClass
class TemplateLogNodeTests(Templ... | 31.255319 | 93 | 0.641593 | 348 | 2,938 | 5.316092 | 0.137931 | 0.041622 | 0.064865 | 0.090811 | 0.754595 | 0.704324 | 0.65027 | 0.550811 | 0.526486 | 0.526486 | 0 | 0.004827 | 0.224302 | 2,938 | 93 | 94 | 31.591398 | 0.806933 | 0 | 0 | 0.621212 | 0 | 0 | 0.132743 | 0.035739 | 0 | 0 | 0 | 0 | 0.227273 | 1 | 0.090909 | false | 0 | 0.075758 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d60226e607e06e2a56d2b33be6b18e1fba28687d | 182 | py | Python | Uche Clare/Phase 1/Python Basic 1/Day 14/Task 2.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 6 | 2020-05-23T19:53:25.000Z | 2021-05-08T20:21:30.000Z | Uche Clare/Phase 1/Python Basic 1/Day 14/Task 2.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 8 | 2020-05-14T18:53:12.000Z | 2020-07-03T00:06:20.000Z | Uche Clare/Phase 1/Python Basic 1/Day 14/Task 2.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 39 | 2020-05-10T20:55:02.000Z | 2020-09-12T17:40:59.000Z | '''Write a Python program to empty a variable without destroying it.
Sample data: n=20
d = {"x":200}
Expected Output : 0
{}'''
n = 20
d = {"x":200}
print(type(n)())
print(type(d)()) | 18.2 | 68 | 0.631868 | 32 | 182 | 3.59375 | 0.6875 | 0.052174 | 0.069565 | 0.086957 | 0.13913 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072368 | 0.164835 | 182 | 10 | 69 | 18.2 | 0.684211 | 0.659341 | 0 | 0 | 0 | 0 | 0.017544 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d60fb09a9518123b4a145a5c820062a5fdbe5d93 | 1,111 | py | Python | picomc/cli/config.py | Zajozor/picomc | 3df03c1191544053ea1e237b9860ed9f4782b029 | [
"MIT"
] | 46 | 2020-07-09T22:11:22.000Z | 2022-03-29T05:44:23.000Z | picomc/cli/config.py | Zajozor/picomc | 3df03c1191544053ea1e237b9860ed9f4782b029 | [
"MIT"
] | 20 | 2020-07-13T19:59:48.000Z | 2022-03-15T22:53:37.000Z | picomc/cli/config.py | Zajozor/picomc | 3df03c1191544053ea1e237b9860ed9f4782b029 | [
"MIT"
] | 6 | 2021-04-27T19:55:10.000Z | 2022-01-11T10:07:21.000Z | import click
from picomc.cli.utils import pass_global_config
@click.group()
def config_cli():
"""Configure picomc."""
pass
@config_cli.command()
@pass_global_config
def show(cfg):
"""Print the current config."""
for k, v in cfg.bottom.items():
if k not in cfg:
print("[default] ... | 19.491228 | 53 | 0.630963 | 156 | 1,111 | 4.352564 | 0.288462 | 0.141384 | 0.11782 | 0.111929 | 0.282769 | 0.253314 | 0.253314 | 0.253314 | 0.150221 | 0.150221 | 0 | 0 | 0.207921 | 1,111 | 56 | 54 | 19.839286 | 0.771591 | 0.122412 | 0 | 0.432432 | 0 | 0 | 0.074816 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.162162 | false | 0.162162 | 0.054054 | 0 | 0.216216 | 0.135135 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d61ba5b9f9f445c21ca35d49c801ee2315479359 | 534 | py | Python | python-programming/1128.py | s05252/course-2018-2 | 4695bf1556603fc2549464512afc96765f45132e | [
"Apache-2.0"
] | 1 | 2018-12-13T02:43:25.000Z | 2018-12-13T02:43:25.000Z | python-programming/1128.py | s05252/course-2018-2 | 4695bf1556603fc2549464512afc96765f45132e | [
"Apache-2.0"
] | null | null | null | python-programming/1128.py | s05252/course-2018-2 | 4695bf1556603fc2549464512afc96765f45132e | [
"Apache-2.0"
] | null | null | null | #1
import numpy as np
#2
print(np.__version__)
np.show_config()
#3
nullvector = np.zeros(10)
print(nullvector)
#4
nullvector = np.zeros((10, 10))
print("%d bytes" %(nullvector.size * nullvector.itemsize))
#6
nullvector = np.zeros(10)
nullvector[4] = 1
print(nullvector)
#7
nullvector = np.arange(10, 50)
print(nullv... | 15.257143 | 66 | 0.707865 | 90 | 534 | 4.144444 | 0.444444 | 0.193029 | 0.136729 | 0.152815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08913 | 0.138577 | 534 | 34 | 67 | 15.705882 | 0.721739 | 0.134831 | 0 | 0.411765 | 0 | 0 | 0.01766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.058824 | 0.411765 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d61de31d432b48be04287d45eb35adea59b0d644 | 2,149 | py | Python | networkx/algorithms/centrality/tests/test_second_order_centrality.py | rakschahsa/networkx | 6cac55b1064c3c346665f9281680fa3b66442ad0 | [
"BSD-3-Clause"
] | 445 | 2019-01-26T13:50:26.000Z | 2022-03-18T05:17:38.000Z | Library/lib/python3.7/site-packages/networkx/algorithms/centrality/tests/test_second_order_centrality.py | gengyong/Carnets | 8930a14f69360d4db115a85ff9e0f6efa80fa2e7 | [
"BSD-3-Clause"
] | 242 | 2019-01-29T15:48:27.000Z | 2022-03-31T22:09:21.000Z | site-packages/networkx/algorithms/centrality/tests/test_second_order_centrality.py | Wristlebane/Pyto | 901ac307b68486d8289105c159ca702318bea5b0 | [
"MIT"
] | 31 | 2019-03-10T09:51:27.000Z | 2022-02-14T23:11:12.000Z | """
Tests for second order centrality.
"""
import networkx as nx
from nose import SkipTest
from nose.tools import raises, assert_almost_equal
class TestSecondOrderCentrality(object):
numpy = 1 # nosetests attribute, use nosetests -a 'not numpy' to skip test
@classmethod
def setupClass(cls):
glo... | 27.909091 | 79 | 0.600279 | 311 | 2,149 | 3.980707 | 0.257235 | 0.106624 | 0.203554 | 0.130048 | 0.510501 | 0.394184 | 0.373183 | 0.315024 | 0.315024 | 0.281099 | 0 | 0.048892 | 0.28618 | 2,149 | 76 | 80 | 28.276316 | 0.758149 | 0.144253 | 0 | 0.365385 | 0 | 0 | 0.011044 | 0 | 0 | 0 | 0 | 0 | 0.096154 | 1 | 0.153846 | false | 0 | 0.115385 | 0 | 0.307692 | 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 |
d62061aac4a3ac0ee0ef463c116f444a19585f2e | 34,454 | py | Python | KCNQ/docking/scripts/analysis/mol2extend.py | jilimcaoco/MPProjects | 5b930ce2fdf5def49444f1953457745af964efe9 | [
"MIT"
] | null | null | null | KCNQ/docking/scripts/analysis/mol2extend.py | jilimcaoco/MPProjects | 5b930ce2fdf5def49444f1953457745af964efe9 | [
"MIT"
] | null | null | null | KCNQ/docking/scripts/analysis/mol2extend.py | jilimcaoco/MPProjects | 5b930ce2fdf5def49444f1953457745af964efe9 | [
"MIT"
] | 1 | 2021-06-14T20:08:32.000Z | 2021-06-14T20:08:32.000Z | #!/usr/bin/env python
#Ryan G. Coleman
#mol2 reader/writer
#mol2extend reads lots of mol2 structures into one mol2 object
import string
import sys
import sybyl2dock
import atom_color_table
import collections
import gzip
import operator
import floydwarshall # all pairs shortest paths routine
import shortestpaths # f... | 42.9066 | 80 | 0.656673 | 4,215 | 34,454 | 5.363227 | 0.166311 | 0.020924 | 0.011147 | 0.009953 | 0.335752 | 0.284747 | 0.257542 | 0.25334 | 0.242281 | 0.221401 | 0 | 0.017608 | 0.240088 | 34,454 | 802 | 81 | 42.9601 | 0.84581 | 0.134992 | 0 | 0.315287 | 0 | 0.001592 | 0.021611 | 0.000936 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.004777 | 0.020701 | null | null | 0.004777 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d624b8b5d8772e9e7eef1d27c44930ebd5276a4f | 806 | py | Python | test.py | mm698657/robinbot | 747c90ad7aa23909f64e4377c1f935d3ed086105 | [
"MIT"
] | null | null | null | test.py | mm698657/robinbot | 747c90ad7aa23909f64e4377c1f935d3ed086105 | [
"MIT"
] | null | null | null | test.py | mm698657/robinbot | 747c90ad7aa23909f64e4377c1f935d3ed086105 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import robin_stocks2 as robin_stocks
import os
import configparser
config = configparser.ConfigParser()
def get_creds():
if os.path.isfile('/home/ec2-user/.saver.cfg') is False:
prompt_creds()
data = config.read('/home/ec2-user/.saver.cfg')
if config.has_section('ROBINHOOD') is False:
... | 29.851852 | 58 | 0.739454 | 109 | 806 | 5.302752 | 0.440367 | 0.048443 | 0.089965 | 0.124567 | 0.217993 | 0.152249 | 0.152249 | 0.152249 | 0.152249 | 0 | 0 | 0.025352 | 0.119107 | 806 | 26 | 59 | 31 | 0.788732 | 0.021092 | 0 | 0.181818 | 0 | 0 | 0.213198 | 0.109137 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0.227273 | 0.136364 | 0 | 0.227273 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d6252067c88420134a1febc9470847b24203c5f9 | 905 | py | Python | Scripts/MatchINSPEXPCaseList.py | rjosest/WTC | 7b05f680730a4c0d49785876d42b12b120488e3b | [
"BSD-3-Clause"
] | null | null | null | Scripts/MatchINSPEXPCaseList.py | rjosest/WTC | 7b05f680730a4c0d49785876d42b12b120488e3b | [
"BSD-3-Clause"
] | null | null | null | Scripts/MatchINSPEXPCaseList.py | rjosest/WTC | 7b05f680730a4c0d49785876d42b12b120488e3b | [
"BSD-3-Clause"
] | null | null | null | import csv
import pandas as pd
from optparse import OptionParser
parser = OptionParser()
parser.add_option("-i",dest="case_list",help="input case list to mach INSP and EXP")
(options, args) = parser.parse_args()
case_list=options.case_list
#table=list()
#with open('WTCaseList.txt', 'rb') as csvfile:
# spamreader = ... | 31.206897 | 84 | 0.686188 | 139 | 905 | 4.33813 | 0.460432 | 0.066335 | 0.064677 | 0.059701 | 0.14262 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006274 | 0.119337 | 905 | 28 | 85 | 32.321429 | 0.750314 | 0.234254 | 0 | 0 | 0 | 0 | 0.135371 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1875 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d6294e7fafb3e006207487804aa355724ef6ec3d | 438 | py | Python | kubernetes_typed/client/models/v1_api_versions.py | nikhiljha/kubernetes-typed | 4f4b969aa400c88306f92560e56bda6d19b2a895 | [
"Apache-2.0"
] | 22 | 2020-12-10T13:06:02.000Z | 2022-02-13T21:58:15.000Z | kubernetes_typed/client/models/v1_api_versions.py | nikhiljha/kubernetes-typed | 4f4b969aa400c88306f92560e56bda6d19b2a895 | [
"Apache-2.0"
] | 4 | 2021-03-08T07:06:12.000Z | 2022-03-29T23:41:45.000Z | kubernetes_typed/client/models/v1_api_versions.py | nikhiljha/kubernetes-typed | 4f4b969aa400c88306f92560e56bda6d19b2a895 | [
"Apache-2.0"
] | 2 | 2021-09-05T19:18:28.000Z | 2022-03-14T02:56:17.000Z | # Code generated by `typeddictgen`. DO NOT EDIT.
"""V1APIVersionsDict generated type."""
from typing import TypedDict, List
from kubernetes_typed.client import V1ServerAddressByClientCIDRDict
V1APIVersionsDict = TypedDict(
"V1APIVersionsDict",
{
"apiVersion": str,
"kind": str,
"serverA... | 25.764706 | 76 | 0.700913 | 36 | 438 | 8.5 | 0.694444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014205 | 0.196347 | 438 | 16 | 77 | 27.375 | 0.855114 | 0.184932 | 0 | 0 | 1 | 0 | 0.185185 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d62ba15a1775a28f79a12f88c252e1b66f2d33d0 | 8,596 | py | Python | src/data/make_sampling_spotify_non_hits.py | Germoe/hit-predictor | ae6d1781d97af49f6135cf3b8685706bceca2896 | [
"MIT"
] | 2 | 2020-08-11T18:52:53.000Z | 2021-07-17T23:01:45.000Z | src/data/make_sampling_spotify_non_hits.py | Germoe/hit-predictor | ae6d1781d97af49f6135cf3b8685706bceca2896 | [
"MIT"
] | 7 | 2020-03-24T17:00:49.000Z | 2022-01-13T01:21:14.000Z | src/data/make_sampling_spotify_non_hits.py | Germoe/hit-predictor | ae6d1781d97af49f6135cf3b8685706bceca2896 | [
"MIT"
] | 4 | 2020-04-09T15:54:05.000Z | 2021-10-02T14:47:19.000Z | # Sampling Spotify Data
"""
In the next step we'll generate a sample from Spotify data that roughly resembles the
distribution by year we've seen in the Hot 100 data. To capture the breadth of various songs
we'll sample ~20% of our spotify songs from the 10% least popular songs on Spotify. This is
taking into accou... | 47.755556 | 358 | 0.706724 | 1,274 | 8,596 | 4.576923 | 0.262951 | 0.061739 | 0.024696 | 0.028812 | 0.232722 | 0.149717 | 0.119877 | 0.1065 | 0.087121 | 0.072715 | 0 | 0.020702 | 0.151466 | 8,596 | 180 | 359 | 47.755556 | 0.778722 | 0.172289 | 0 | 0.048387 | 1 | 0.016129 | 0.23207 | 0.025222 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008065 | false | 0 | 0.064516 | 0.008065 | 0.080645 | 0.080645 | 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 |
d62c48003d1693f65d64d9762dc298236a355638 | 686 | py | Python | customerSeg/customerSeg/utils.py | jaredkeil/customer-segmenter | cfd8c59fc99540cc692aac864e0d169ce5680b87 | [
"MIT"
] | null | null | null | customerSeg/customerSeg/utils.py | jaredkeil/customer-segmenter | cfd8c59fc99540cc692aac864e0d169ce5680b87 | [
"MIT"
] | null | null | null | customerSeg/customerSeg/utils.py | jaredkeil/customer-segmenter | cfd8c59fc99540cc692aac864e0d169ce5680b87 | [
"MIT"
] | null | null | null | import os
from customerSeg.config import root
def get_env_var(varname):
try:
env_var_str = os.environ[varname]
print(f"{varname} found:\n{env_var_str}")
return env_var_str
except KeyError:
print(f"""
{varname} not found in environment!
To set environment variable... | 38.111111 | 90 | 0.631195 | 91 | 686 | 4.67033 | 0.593407 | 0.056471 | 0.063529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.295918 | 686 | 18 | 90 | 38.111111 | 0.879917 | 0 | 0 | 0 | 0 | 0 | 0.688501 | 0.030568 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.117647 | 0 | 0.235294 | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d643374dc7c8484799ce544f0088871ee116fcf5 | 1,376 | py | Python | p189_rotate_array.py | moonfruit/leetcode | 796b736d9b7b31f8052df6a0a140e34904b8230c | [
"MIT"
] | null | null | null | p189_rotate_array.py | moonfruit/leetcode | 796b736d9b7b31f8052df6a0a140e34904b8230c | [
"MIT"
] | null | null | null | p189_rotate_array.py | moonfruit/leetcode | 796b736d9b7b31f8052df6a0a140e34904b8230c | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- utf-8 -*-
class Solution:
# @param nums, a list of integer
# @param k, num of steps
# @return nothing, please modify the nums list in-place.
def rotate(self, nums, k):
copy = [e for e in nums]
l = len(nums)
k = l - k % l
for i in range(l):
... | 21.84127 | 60 | 0.417878 | 227 | 1,376 | 2.497797 | 0.251101 | 0.024691 | 0.037037 | 0.049383 | 0.283951 | 0.283951 | 0.273369 | 0.19224 | 0.178131 | 0.155203 | 0 | 0.080503 | 0.422238 | 1,376 | 62 | 61 | 22.193548 | 0.632704 | 0.140262 | 0 | 0.404255 | 0 | 0 | 0.006803 | 0 | 0 | 0 | 0 | 0.016129 | 0 | 1 | 0.06383 | false | 0 | 0 | 0 | 0.148936 | 0.12766 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
d6592984b6b38e3e4cc2cc1cf49b8cdbc052445b | 1,927 | py | Python | csv2libsvm.py | spacedotworks/csv2svmlib-forked-from-phraug | 892562b4ed7fdd036225a99c04adc7071803ce5f | [
"BSD-2-Clause"
] | null | null | null | csv2libsvm.py | spacedotworks/csv2svmlib-forked-from-phraug | 892562b4ed7fdd036225a99c04adc7071803ce5f | [
"BSD-2-Clause"
] | null | null | null | csv2libsvm.py | spacedotworks/csv2svmlib-forked-from-phraug | 892562b4ed7fdd036225a99c04adc7071803ce5f | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
"""
Modified:
(1) -1 is now accepted as argv[2], this will print result to stdout instead of writing to file
(2) string labels(classes) are now mapped to categorical float values
Convert CSV file to libsvm format. Works only with numeric variables.
Put -1 as label index (argv[3]) if there are... | 19.464646 | 94 | 0.650752 | 310 | 1,927 | 3.909677 | 0.306452 | 0.10396 | 0.042904 | 0.024752 | 0.301155 | 0.292079 | 0.292079 | 0.19967 | 0.19967 | 0.19967 | 0 | 0.025777 | 0.214842 | 1,927 | 98 | 95 | 19.663265 | 0.775281 | 0.012455 | 0 | 0.5 | 0 | 0 | 0.016667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.030303 | 0.030303 | null | null | 0.015152 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c386dac34b8d4281bd00c1467b386c9f6159b7f3 | 4,035 | py | Python | client/snowdrop_pb2.py | UCSC-CSE123/snowdrop | 47454b764d0c06702ce4b4ee20d05731e7e9682e | [
"MIT"
] | null | null | null | client/snowdrop_pb2.py | UCSC-CSE123/snowdrop | 47454b764d0c06702ce4b4ee20d05731e7e9682e | [
"MIT"
] | null | null | null | client/snowdrop_pb2.py | UCSC-CSE123/snowdrop | 47454b764d0c06702ce4b4ee20d05731e7e9682e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: snowdrop.proto
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_... | 29.028777 | 346 | 0.744238 | 479 | 4,035 | 5.993737 | 0.273486 | 0.030651 | 0.058516 | 0.033438 | 0.4124 | 0.392894 | 0.392894 | 0.392894 | 0.362243 | 0.323929 | 0 | 0.0361 | 0.128129 | 4,035 | 138 | 347 | 29.23913 | 0.779989 | 0.072615 | 0 | 0.531532 | 1 | 0.009009 | 0.18586 | 0.113819 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.036036 | 0 | 0.036036 | 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 |
c38bea8ecc19b3fd79cf850b56d62dd5751e42d0 | 1,494 | py | Python | Week4-loops.py | ashleycampion/p-and-s | ae3a5d5a2cedeabdf1ab9732f8360b2f9ab910e3 | [
"MIT"
] | null | null | null | Week4-loops.py | ashleycampion/p-and-s | ae3a5d5a2cedeabdf1ab9732f8360b2f9ab910e3 | [
"MIT"
] | null | null | null | Week4-loops.py | ashleycampion/p-and-s | ae3a5d5a2cedeabdf1ab9732f8360b2f9ab910e3 | [
"MIT"
] | null | null | null | # Write a program that asks the user to input any positive integer
# and outputs the successive values of the following calculation.
# At each step calculate the next value by taking the current value and,
# if it is even, divide it by two, but if it is odd, multiply it by three and add one.
# Have the program end if t... | 42.685714 | 89 | 0.688086 | 262 | 1,494 | 3.923664 | 0.446565 | 0.027237 | 0.035019 | 0.029183 | 0.09144 | 0.05642 | 0 | 0 | 0 | 0 | 0 | 0.008734 | 0.233601 | 1,494 | 34 | 90 | 43.941176 | 0.889083 | 0.81593 | 0 | 0.272727 | 0 | 0 | 0.185771 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.272727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c38f3f021d2942bc0d12c671f8f256711634cfdb | 1,139 | py | Python | toolkit/models/mixins.py | CCE-IT/cce-toolkit | a3dc470bd8fd3f01615ff57198dfefc88d3aa50c | [
"BSD-3-Clause"
] | 8 | 2016-06-23T14:41:26.000Z | 2018-07-06T17:54:08.000Z | toolkit/models/mixins.py | cceit/cce-toolkit | a3dc470bd8fd3f01615ff57198dfefc88d3aa50c | [
"BSD-3-Clause"
] | null | null | null | toolkit/models/mixins.py | cceit/cce-toolkit | a3dc470bd8fd3f01615ff57198dfefc88d3aa50c | [
"BSD-3-Clause"
] | null | null | null |
class ModelPermissionsMixin(object):
"""
Defines the permissions methods that most models need,
:raises NotImplementedError: if they have not been overridden.
"""
@classmethod
def can_create(cls, user_obj):
"""
CreateView needs permissions at class (table) level.
We'll... | 27.119048 | 71 | 0.621598 | 127 | 1,139 | 5.488189 | 0.425197 | 0.043042 | 0.129125 | 0.129125 | 0.568149 | 0.568149 | 0.568149 | 0.568149 | 0.484935 | 0.484935 | 0 | 0 | 0.304653 | 1,139 | 41 | 72 | 27.780488 | 0.880051 | 0.449517 | 0 | 0.538462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.384615 | false | 0 | 0 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c390e40f7ba37239fd74cf9bf549827f081df1fd | 739 | py | Python | node.py | niki4etoo/WSN | ab4d9c2d2252163637597da434cc493e10d811db | [
"Apache-2.0"
] | 1 | 2021-05-09T10:18:23.000Z | 2021-05-09T10:18:23.000Z | node.py | niki4etoo/WSN | ab4d9c2d2252163637597da434cc493e10d811db | [
"Apache-2.0"
] | 1 | 2021-07-17T20:19:14.000Z | 2021-07-17T20:19:14.000Z | node.py | niki4etoo/WSN | ab4d9c2d2252163637597da434cc493e10d811db | [
"Apache-2.0"
] | null | null | null | class Node:
starting = True
ending = False
name = ""
weight = [1, 20]
active = True
edge_length = 0
nodes = []
def __init__(self, name, grid, posX, posY, active):
self.name = name # Name of the node
self.grid = grid # Which grid the node will be placed
self.posX = posX # Position X on the grid
s... | 20.527778 | 56 | 0.648173 | 114 | 739 | 4.157895 | 0.438596 | 0.059072 | 0.037975 | 0.054852 | 0.080169 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00713 | 0.240866 | 739 | 35 | 57 | 21.114286 | 0.83779 | 0.158322 | 0 | 0.142857 | 0 | 0 | 0.104235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0 | 0 | 0.428571 | 0.107143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c3944afe998429ea9aa795c9844ac49d82e440be | 1,419 | py | Python | src/python/shared/BAData.py | dsyme/ADBench | 87af0219a568807f8432754688ceb636efac12c6 | [
"MIT"
] | 58 | 2019-12-30T16:22:01.000Z | 2022-01-23T12:26:51.000Z | src/python/shared/BAData.py | dsyme/ADBench | 87af0219a568807f8432754688ceb636efac12c6 | [
"MIT"
] | 112 | 2019-05-25T07:26:58.000Z | 2019-12-28T13:55:33.000Z | src/python/shared/BAData.py | dsyme/ADBench | 87af0219a568807f8432754688ceb636efac12c6 | [
"MIT"
] | 22 | 2020-03-12T16:37:55.000Z | 2022-02-23T10:14:37.000Z | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
from dataclasses import dataclass, field
import numpy as np
from shared.BASparseMat import BASparseMat
from shared.output_utils import save_errors_to_file, objective_file_name,\
save_sparse_j_to_file, jacobian_file_na... | 33.785714 | 80 | 0.642706 | 180 | 1,419 | 4.85 | 0.294444 | 0.109966 | 0.112257 | 0.168385 | 0.640321 | 0.640321 | 0.595647 | 0.52921 | 0.462772 | 0.304696 | 0 | 0.020115 | 0.264271 | 1,419 | 42 | 81 | 33.785714 | 0.816092 | 0.047921 | 0 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.125 | 0 | 0.46875 | 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 |
c3970ac21618548097f6b904ee68de33f67abc52 | 1,788 | py | Python | App/migrations/0001_initial.py | kholdarbekov/Petrol | 7d683def3ade380b0323e42a1d9ef8190bcc68ba | [
"MIT"
] | null | null | null | App/migrations/0001_initial.py | kholdarbekov/Petrol | 7d683def3ade380b0323e42a1d9ef8190bcc68ba | [
"MIT"
] | null | null | null | App/migrations/0001_initial.py | kholdarbekov/Petrol | 7d683def3ade380b0323e42a1d9ef8190bcc68ba | [
"MIT"
] | null | null | null | # Generated by Django 3.1 on 2020-09-01 06:51
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Car',
fields=[
... | 34.384615 | 131 | 0.539709 | 162 | 1,788 | 5.802469 | 0.444444 | 0.081915 | 0.044681 | 0.070213 | 0.304255 | 0.159574 | 0.159574 | 0.159574 | 0.159574 | 0.159574 | 0 | 0.018288 | 0.327181 | 1,788 | 51 | 132 | 35.058824 | 0.763092 | 0.024049 | 0 | 0.340909 | 1 | 0 | 0.134825 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.136364 | 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 |
c3978bb0c1f1416f1fb3a73cd2de1eccf18f4f7a | 2,463 | py | Python | examples/example06.py | IIXIXII/upref | 294ef908faad8bfe68483f531bc5a367d548a7be | [
"MIT"
] | 1 | 2019-09-26T16:38:29.000Z | 2019-09-26T16:38:29.000Z | examples/example06.py | IIXIXII/upref | 294ef908faad8bfe68483f531bc5a367d548a7be | [
"MIT"
] | 1 | 2019-07-10T16:15:41.000Z | 2019-07-10T16:15:49.000Z | examples/example06.py | IIXIXII/upref | 294ef908faad8bfe68483f531bc5a367d548a7be | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
###############################################################################
#
# Copyright (c) 2018 Florent TOURNOIS
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), t... | 42.465517 | 79 | 0.527 | 272 | 2,463 | 4.724265 | 0.525735 | 0.068482 | 0.020233 | 0.024903 | 0.049805 | 0.049805 | 0.049805 | 0 | 0 | 0 | 0 | 0.002404 | 0.155501 | 2,463 | 57 | 80 | 43.210526 | 0.615385 | 0.510759 | 0 | 0 | 0 | 0 | 0.432234 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.133333 | 0.066667 | 0 | 0.133333 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c399877118c67be8fe1559f1ea136c0bfc48ab5b | 2,455 | py | Python | rest-service/manager_rest/rest/resources_v3_1/__init__.py | TS-at-WS/cloudify-manager | 3e062e8dec16c89d2ab180d0b761cbf76d3f7ddc | [
"Apache-2.0"
] | null | null | null | rest-service/manager_rest/rest/resources_v3_1/__init__.py | TS-at-WS/cloudify-manager | 3e062e8dec16c89d2ab180d0b761cbf76d3f7ddc | [
"Apache-2.0"
] | null | null | null | rest-service/manager_rest/rest/resources_v3_1/__init__.py | TS-at-WS/cloudify-manager | 3e062e8dec16c89d2ab180d0b761cbf76d3f7ddc | [
"Apache-2.0"
] | null | null | null | #########
# Copyright (c) 2016 GigaSpaces Technologies Ltd. All rights reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 25.572917 | 77 | 0.634623 | 212 | 2,455 | 7.339623 | 0.613208 | 0.064267 | 0.01671 | 0.020566 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004692 | 0.305499 | 2,455 | 95 | 78 | 25.842105 | 0.907918 | 0.276986 | 0 | 0.028986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.246377 | 0 | 0.246377 | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c39a4b7b3855b77c92a18a8f6d2aca417c3a7183 | 1,902 | py | Python | Python/Graphs/dijkstra_algorithm_adjacency_matrix.py | codervikash/algorithms | 6985dfb00d353e550eec6a15b3a1fd68b4103587 | [
"MIT"
] | 2 | 2022-02-03T03:18:10.000Z | 2022-03-18T02:39:23.000Z | Python/Graphs/dijkstra_algorithm_adjacency_matrix.py | codervikash/algorithms | 6985dfb00d353e550eec6a15b3a1fd68b4103587 | [
"MIT"
] | null | null | null | Python/Graphs/dijkstra_algorithm_adjacency_matrix.py | codervikash/algorithms | 6985dfb00d353e550eec6a15b3a1fd68b4103587 | [
"MIT"
] | null | null | null | #!/usr/bin/python
"""
Given a graph and a source vertex in find shortest paths from source to all vertices in the given graph.
Dijkstra algorithm doesnot work for graphs with negative weight edges.
Time Complexity: is O(V^2). If the input graph is represented using adjacency list, it can be reduced to O(E log V) wit... | 29.71875 | 145 | 0.522082 | 312 | 1,902 | 3.089744 | 0.288462 | 0.064315 | 0.062241 | 0.053942 | 0.147303 | 0.096473 | 0.082988 | 0.043568 | 0 | 0 | 0 | 0.07446 | 0.343323 | 1,902 | 63 | 146 | 30.190476 | 0.697358 | 0.008412 | 0 | 0.05 | 0 | 0 | 0.018674 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.025 | null | null | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c3a1871c1be6d0687e4fd2e5e44e88c3695e4dd7 | 1,816 | py | Python | commands.py | DragonFlayer/oblige-my-doom | 9d6594c26bd756255952d413b5c29c92ed4f303d | [
"MIT"
] | 3 | 2019-03-29T11:37:27.000Z | 2020-09-24T06:53:17.000Z | commands.py | DragonFlayer/oblige-my-doom | 9d6594c26bd756255952d413b5c29c92ed4f303d | [
"MIT"
] | 1 | 2019-03-31T15:14:36.000Z | 2019-04-02T18:27:46.000Z | commands.py | DragonFlayer/oblige-my-doom | 9d6594c26bd756255952d413b5c29c92ed4f303d | [
"MIT"
] | null | null | null | import subprocess
from os import path, makedirs
from datetime import datetime
import shutil
outputFile = ""
# Get the current date and time to timestamp the new Oblige Map .wad to Generate
def updateOutput():
global outputFile
now = datetime.now().strftime("%Y-%m-%d-%H-%M-%S")
outputFile = "output-" + s... | 29.770492 | 90 | 0.654185 | 203 | 1,816 | 5.852217 | 0.44335 | 0.037037 | 0.025253 | 0.025253 | 0.250842 | 0.250842 | 0.250842 | 0.250842 | 0.250842 | 0.250842 | 0 | 0.007305 | 0.246145 | 1,816 | 60 | 91 | 30.266667 | 0.860482 | 0.175661 | 0 | 0.333333 | 1 | 0 | 0.05429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.095238 | 0 | 0.214286 | 0.095238 | 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 |
c3a2bd772a1698e46da4ccd17eae14ffb92f234e | 1,826 | py | Python | animations/ClipClasses.py | videoutpl/Videout | 94ac2643a655fb7d53b2bc1af500c1f81b9e728d | [
"MIT"
] | 2 | 2019-02-27T02:08:31.000Z | 2019-05-10T01:32:10.000Z | animations/ClipClasses.py | videoutpl/Videout | 94ac2643a655fb7d53b2bc1af500c1f81b9e728d | [
"MIT"
] | 3 | 2019-04-03T18:04:19.000Z | 2019-04-22T22:38:23.000Z | animations/ClipClasses.py | videoutpl/Videout | 94ac2643a655fb7d53b2bc1af500c1f81b9e728d | [
"MIT"
] | null | null | null | from moviepy.editor import *
from animations.BaseClip import BaseClip
class videoClip(BaseClip):
def __init__(self, clip, start_time, end_time, fps= 29.97):
BaseClip.__init__(self, VideoFileClip(clip).subclip(start_time, end_time).set_fps(fps))
class photoClip(BaseClip):
def __init__(s... | 32.607143 | 98 | 0.628149 | 228 | 1,826 | 4.877193 | 0.346491 | 0.086331 | 0.040468 | 0.051259 | 0.161871 | 0.120504 | 0 | 0 | 0 | 0 | 0 | 0.005426 | 0.293538 | 1,826 | 55 | 99 | 33.2 | 0.856589 | 0.368018 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.090909 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c3a6f0dd48c1cb58d10dc83f03261a162da70ab7 | 942 | py | Python | NerualNetwork/neural_network/week3/Double_NN.py | RaySunWHUT/NeuralNetwork | aab60f88a69515786b3cddaea5767fc0abba715a | [
"MIT"
] | 3 | 2020-07-28T13:40:42.000Z | 2020-08-10T10:07:25.000Z | NerualNetwork/neural_network/week3/Double_NN.py | liuhaibincs2005/NeuralNetwork | aab60f88a69515786b3cddaea5767fc0abba715a | [
"MIT"
] | null | null | null | NerualNetwork/neural_network/week3/Double_NN.py | liuhaibincs2005/NeuralNetwork | aab60f88a69515786b3cddaea5767fc0abba715a | [
"MIT"
] | 2 | 2020-07-28T14:58:53.000Z | 2022-03-17T01:42:06.000Z | # Package imports
import numpy as np
import matplotlib.pyplot as plot
from testCases_v2 import *
import sklearn
import sklearn.datasets
import sklearn.linear_model
from planar_utils import plot_decision_boundary, sigmoid, load_planar_dataset, load_extra_datasets
X, Y = load_planar_dataset()
print(X.shape)
print(Y.sh... | 24.789474 | 98 | 0.737792 | 144 | 942 | 4.708333 | 0.458333 | 0.057522 | 0.053097 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01227 | 0.13482 | 942 | 37 | 99 | 25.459459 | 0.819632 | 0.107219 | 0 | 0.090909 | 0 | 0 | 0.12201 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.318182 | 0 | 0.318182 | 0.136364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c3b49d12cbb8a7e913fdb45645ad25d3a6916e4b | 1,081 | py | Python | myenv/lib/python3.5/site-packages/djangojs/tests/test_javascript.py | rupeshparab/techscan | ce2558602ddad31873d7129f25b1cc61895b9939 | [
"MIT"
] | 1 | 2019-11-01T11:45:22.000Z | 2019-11-01T11:45:22.000Z | myenv/lib/python3.5/site-packages/djangojs/tests/test_javascript.py | rupeshparab/techscan | ce2558602ddad31873d7129f25b1cc61895b9939 | [
"MIT"
] | 3 | 2020-02-11T23:03:45.000Z | 2021-06-10T18:05:11.000Z | myenv/lib/python3.5/site-packages/djangojs/tests/test_javascript.py | rupeshparab/techscan | ce2558602ddad31873d7129f25b1cc61895b9939 | [
"MIT"
] | 1 | 2019-11-01T11:38:54.000Z | 2019-11-01T11:38:54.000Z | from django.conf import global_settings
from django.test.utils import override_settings
from django.utils.translation import ugettext_lazy as _
from djangojs.runners import JsTestCase, JsTemplateTestCase, JasmineSuite, QUnitSuite
@override_settings(
TEMPLATE_CONTEXT_PROCESSORS=global_settings.TEMPLATE_CONTEXT_PR... | 27.717949 | 85 | 0.744681 | 117 | 1,081 | 6.649573 | 0.401709 | 0.061697 | 0.084833 | 0.100257 | 0.20437 | 0.20437 | 0.20437 | 0.20437 | 0.14653 | 0 | 0 | 0 | 0.150786 | 1,081 | 38 | 86 | 28.447368 | 0.847495 | 0 | 0 | 0.111111 | 0 | 0 | 0.226642 | 0.126735 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.148148 | 0 | 0.666667 | 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 |
c3b890e242c7a4c0c0582a7bdda195df3036ba44 | 846 | py | Python | tests.py | NewKnowledge/unicorn | 62b08b4dc8dc9c72566d06ac1fbeed324a1df07f | [
"MIT"
] | null | null | null | tests.py | NewKnowledge/unicorn | 62b08b4dc8dc9c72566d06ac1fbeed324a1df07f | [
"MIT"
] | null | null | null | tests.py | NewKnowledge/unicorn | 62b08b4dc8dc9c72566d06ac1fbeed324a1df07f | [
"MIT"
] | null | null | null | from unicorn import Unicorn
from logging import Formatter
from nk_logger import get_logger, config_logger
import numpy as np
config_logger(prefix="unicorn", root_log_level="ERROR", formatter=Formatter())
logger = get_logger(__name__)
dim = 100
n_samples = 1000
data = np.random.randn(n_samples, dim)
def test_basic()... | 24.171429 | 78 | 0.716312 | 120 | 846 | 4.808333 | 0.433333 | 0.055459 | 0.131716 | 0.07279 | 0.363951 | 0.363951 | 0.363951 | 0.363951 | 0.363951 | 0.363951 | 0 | 0.024079 | 0.165485 | 846 | 34 | 79 | 24.882353 | 0.793201 | 0.050827 | 0 | 0.347826 | 0 | 0 | 0.038702 | 0 | 0 | 0 | 0 | 0.029412 | 0.26087 | 1 | 0.086957 | false | 0 | 0.173913 | 0 | 0.26087 | 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 |
c3bd7d77b4ea7b050269b6251cb9a88abf6641d1 | 39,083 | py | Python | blades/BitTorrent-5.2.2/BitTorrent/Connector.py | krattai/AEBL | a7b12c97479e1236d5370166b15ca9f29d7d4265 | [
"BSD-2-Clause"
] | 4 | 2016-04-26T03:43:54.000Z | 2016-11-17T08:09:04.000Z | blades/BitTorrent-5.2.2/BitTorrent/Connector.py | krattai/AEBL | a7b12c97479e1236d5370166b15ca9f29d7d4265 | [
"BSD-2-Clause"
] | 17 | 2015-01-05T21:06:22.000Z | 2015-12-07T20:45:44.000Z | blades/BitTorrent-5.2.2/BitTorrent/Connector.py | krattai/AEBL | a7b12c97479e1236d5370166b15ca9f29d7d4265 | [
"BSD-2-Clause"
] | 3 | 2016-04-26T03:43:55.000Z | 2020-11-06T11:02:08.000Z | # The contents of this file are subject to the BitTorrent Open Source License
# Version 1.1 (the License). You may not copy or use this file, in either
# source code or executable form, except in compliance with the License. You
# may obtain a copy of the License at http://www.bittorrent.com/license/.
#
# Software di... | 37.834463 | 205 | 0.533147 | 4,435 | 39,083 | 4.536866 | 0.129876 | 0.027832 | 0.044878 | 0.009045 | 0.331196 | 0.284976 | 0.234283 | 0.177973 | 0.163262 | 0.14388 | 0 | 0.016589 | 0.366093 | 39,083 | 1,032 | 206 | 37.871124 | 0.79556 | 0.082593 | 0 | 0.341176 | 0 | 0 | 0.072677 | 0.001522 | 0 | 0 | 0.006031 | 0.000969 | 0.007059 | 0 | null | null | 0 | 0.018824 | null | null | 0.002353 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c3cc4f8e063890a37960ad91d4f28a7fa7f0fbaa | 515 | py | Python | Final Project/reducer_studgroup.py | amnghd/Map_Reduce_Design_Patterns | 13a44850f95d8b4bab12f17094149182eaa09801 | [
"MIT"
] | null | null | null | Final Project/reducer_studgroup.py | amnghd/Map_Reduce_Design_Patterns | 13a44850f95d8b4bab12f17094149182eaa09801 | [
"MIT"
] | null | null | null | Final Project/reducer_studgroup.py | amnghd/Map_Reduce_Design_Patterns | 13a44850f95d8b4bab12f17094149182eaa09801 | [
"MIT"
] | 1 | 2020-09-07T14:10:51.000Z | 2020-09-07T14:10:51.000Z | #!/usr/bin/python
import sys
old_key = None
collaborators = [] #this list will be used form the list of collaborators
for line in sys.stdin:
line_list = line.strip().split("\t")
if len(line_list) != 2:
continue
node, student = line.strip().split("\t")
this_key = node
if old_key and old_ke... | 23.409091 | 73 | 0.646602 | 74 | 515 | 4.337838 | 0.445946 | 0.130841 | 0.087227 | 0.093458 | 0.174455 | 0.174455 | 0 | 0 | 0 | 0 | 0 | 0.002545 | 0.236893 | 515 | 22 | 74 | 23.409091 | 0.814249 | 0.133981 | 0 | 0.25 | 0 | 0 | 0.017978 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.0625 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c3d229633a1e2e64ea9e455ed1a12936612bfc22 | 54,834 | py | Python | metrics/views/admin.py | IBM/omnia | 588f380e04c697ca9d5ed84822c14b37dad92d27 | [
"Apache-2.0"
] | 1 | 2021-11-25T16:07:38.000Z | 2021-11-25T16:07:38.000Z | metrics/views/admin.py | IBM/omnia | 588f380e04c697ca9d5ed84822c14b37dad92d27 | [
"Apache-2.0"
] | null | null | null | metrics/views/admin.py | IBM/omnia | 588f380e04c697ca9d5ed84822c14b37dad92d27 | [
"Apache-2.0"
] | null | null | null | import csv
import io
import os
import requests
import sys
from django.contrib.admin.views.decorators import staff_member_required
from django.contrib.auth import authenticate, login, logout
from django.contrib.auth.decorators import login_required, user_passes_test
from django.contrib.auth.forms import AuthenticationF... | 29.688143 | 263 | 0.751742 | 5,908 | 54,834 | 6.80281 | 0.088016 | 0.044786 | 0.02717 | 0.051728 | 0.688886 | 0.652111 | 0.607026 | 0.572939 | 0.542908 | 0.416611 | 0 | 0.003342 | 0.12153 | 54,834 | 1,846 | 264 | 29.704225 | 0.831015 | 0.084364 | 0 | 0.597929 | 0 | 0.001726 | 0.176673 | 0.066018 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072476 | false | 0.069888 | 0.02761 | 0.009491 | 0.181191 | 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 |
c3d7bf869b04f45d433d0e78ff973ceb8abb2a22 | 1,374 | py | Python | tests/api/conftest.py | corvust/strawberryfields | fd1b1aa18f5f7309ced9ca494912b4169bd9d19d | [
"Apache-2.0"
] | 646 | 2018-03-26T15:12:35.000Z | 2022-03-21T18:52:42.000Z | tests/api/conftest.py | corvust/strawberryfields | fd1b1aa18f5f7309ced9ca494912b4169bd9d19d | [
"Apache-2.0"
] | 666 | 2018-03-27T20:21:27.000Z | 2022-03-25T18:35:33.000Z | tests/api/conftest.py | corvust/strawberryfields | fd1b1aa18f5f7309ced9ca494912b4169bd9d19d | [
"Apache-2.0"
] | 182 | 2018-04-11T17:09:39.000Z | 2022-03-29T15:38:43.000Z | # Copyright 2020 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agre... | 29.234043 | 86 | 0.723435 | 195 | 1,374 | 5.076923 | 0.574359 | 0.060606 | 0.026263 | 0.032323 | 0.022222 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0161 | 0.186317 | 1,374 | 46 | 87 | 29.869565 | 0.86941 | 0.592431 | 0 | 0.125 | 0 | 0 | 0.017375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.1875 | 0 | 0.5625 | 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 |
c3d8a3773f0bd7123bae424ad2f752d019d7166c | 3,514 | py | Python | Platform Integration Documentation/Single Pane of Glass Deployment Guides/Cisco Connected TAC/Cisco TAC API Adaptor.py | haoransongnetbrain/NetBrain-REST-API-R10 | d366b9f0b6afca13596fce16df7031b01d30164d | [
"CC-BY-2.0"
] | 3 | 2021-04-29T17:03:20.000Z | 2022-02-03T14:23:45.000Z | Platform Integration Documentation/Single Pane of Glass Deployment Guides/Cisco Connected TAC/Cisco TAC API Adaptor.py | haoransongnetbrain/NetBrain-REST-API-R10 | d366b9f0b6afca13596fce16df7031b01d30164d | [
"CC-BY-2.0"
] | 2 | 2021-08-24T16:30:02.000Z | 2021-12-30T11:56:43.000Z | Platform Integration Documentation/Single Pane of Glass Deployment Guides/Cisco Connected TAC/Cisco TAC API Adaptor.py | haoransongnetbrain/NetBrain-REST-API-R10 | d366b9f0b6afca13596fce16df7031b01d30164d | [
"CC-BY-2.0"
] | 5 | 2021-04-21T19:58:36.000Z | 2022-03-05T16:17:44.000Z | import requests
import requests.packages.urllib3 as urllib3
import json
import pythonutil
urllib3.disable_warnings()
def getToken(cred_params):
apiServerId = cred_params['apiServerId']
servInfo = pythonutil.GetApiServerInfo(apiServerId)
username = servInfo['username']
password = servInfo['password']
... | 40.860465 | 105 | 0.640865 | 363 | 3,514 | 6.085399 | 0.30854 | 0.019013 | 0.032594 | 0.061114 | 0.570394 | 0.570394 | 0.516523 | 0.465369 | 0.395654 | 0.395654 | 0 | 0.016 | 0.217416 | 3,514 | 86 | 106 | 40.860465 | 0.787273 | 0.167046 | 0 | 0.462687 | 0 | 0 | 0.215706 | 0.040809 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044776 | false | 0.059701 | 0.059701 | 0 | 0.179104 | 0.059701 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c3dc24353e71d3809f99fba2bd61617a0d602135 | 2,570 | py | Python | hw_diag/tests/diagnostics/test_serial_number_diagnostic.py | KevinWassermann94/hm-diag | 593a53f741b64c9fa029f5643b50abece9ce117b | [
"MIT"
] | 14 | 2021-04-15T02:20:44.000Z | 2022-02-23T19:46:34.000Z | hw_diag/tests/diagnostics/test_serial_number_diagnostic.py | KevinWassermann94/hm-diag | 593a53f741b64c9fa029f5643b50abece9ce117b | [
"MIT"
] | 245 | 2021-02-05T12:35:59.000Z | 2022-03-31T14:50:53.000Z | hw_diag/tests/diagnostics/test_serial_number_diagnostic.py | KevinWassermann94/hm-diag | 593a53f741b64c9fa029f5643b50abece9ce117b | [
"MIT"
] | 16 | 2021-02-15T11:25:33.000Z | 2022-03-14T23:49:34.000Z | import unittest
from unittest.mock import patch, mock_open
from hm_pyhelper.diagnostics.diagnostics_report import \
DIAGNOSTICS_PASSED_KEY, DIAGNOSTICS_ERRORS_KEY, DiagnosticsReport
from hw_diag.diagnostics.serial_number_diagnostic import SerialNumberDiagnostic
VALID_CPU_PROC = """00000000ddd1a4c2"""
PADDED_CPU_P... | 38.358209 | 79 | 0.695331 | 238 | 2,570 | 7.176471 | 0.226891 | 0.129391 | 0.058548 | 0.046838 | 0.724824 | 0.653396 | 0.653396 | 0.653396 | 0.653396 | 0.593677 | 0 | 0.02826 | 0.215175 | 2,570 | 66 | 80 | 38.939394 | 0.818542 | 0 | 0 | 0.62963 | 0 | 0 | 0.138132 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 1 | 0.074074 | false | 0.092593 | 0.074074 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c3e3cc4defc812e8e91b2bfd8cac8798a0bd0d1c | 445 | py | Python | src/helpers/paths/checkpoints.py | markrofail/multi-modal-deep-learning-for-vehicle-sensor-data-abstraction-and-attack-detection | 2f252c072f3091bb27506978dd90311f7f82f386 | [
"MIT"
] | null | null | null | src/helpers/paths/checkpoints.py | markrofail/multi-modal-deep-learning-for-vehicle-sensor-data-abstraction-and-attack-detection | 2f252c072f3091bb27506978dd90311f7f82f386 | [
"MIT"
] | 6 | 2020-09-25T22:41:00.000Z | 2021-06-08T21:50:37.000Z | src/helpers/paths/checkpoints.py | markrofail/multi-modal-deep-learning-for-vehicle-sensor-data-abstraction-and-attack-detection | 2f252c072f3091bb27506978dd90311f7f82f386 | [
"MIT"
] | null | null | null | from .. import paths
CHECKPOINT_PATH = paths.ROOT_PATH.joinpath('checkpoints')
def regnet(rot=None, disp=None):
if rot is not None and disp is not None:
file_string = 'training_{:02d}_{:02d}.hdf5'.format(rot, int(disp*10))
else:
file_string = 'training.hdf5'
path = CHECKPOINT_PATH.joinpath('regnet', f... | 23.421053 | 73 | 0.716854 | 62 | 445 | 5 | 0.451613 | 0.135484 | 0.058065 | 0.167742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023873 | 0.152809 | 445 | 18 | 74 | 24.722222 | 0.798408 | 0 | 0 | 0.166667 | 0 | 0 | 0.179775 | 0.060674 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.083333 | 0 | 0.416667 | 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 |
c3e43487822a870e971314dbbc2ab1265368334d | 396 | py | Python | tests/test.py | Baraldo/spark-lineage | e9f567da80b6734d6a549f061f0529bb2b57dae8 | [
"Apache-2.0"
] | null | null | null | tests/test.py | Baraldo/spark-lineage | e9f567da80b6734d6a549f061f0529bb2b57dae8 | [
"Apache-2.0"
] | null | null | null | tests/test.py | Baraldo/spark-lineage | e9f567da80b6734d6a549f061f0529bb2b57dae8 | [
"Apache-2.0"
] | null | null | null | import sys
sys.path.append('../spark_lineage')
import pyspark.sql.functions as f
from pyspark import SparkContext, SparkConf
from pyspark.sql import SparkSession
spark = SparkSession.builder.appName("spark-lineage").getOrCreate()
df = spark.createDataFrame(["10","11","13"], "string").toDF("age")
print(... | 30.461538 | 82 | 0.727273 | 50 | 396 | 5.72 | 0.68 | 0.083916 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019718 | 0.103535 | 396 | 13 | 82 | 30.461538 | 0.785915 | 0 | 0 | 0 | 0 | 0 | 0.122078 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c3e8e709e12267d2a0caa6e3e4c4ab133e59f783 | 7,819 | py | Python | Python/statistics_with_Python/08_LogisticRegression/Script_Files/01_LogisticRegression.py | snehilk1312/AppliedStatistics | 0e2b9ca45b004f38f796fa6506270382ca3c95a0 | [
"MIT"
] | null | null | null | Python/statistics_with_Python/08_LogisticRegression/Script_Files/01_LogisticRegression.py | snehilk1312/AppliedStatistics | 0e2b9ca45b004f38f796fa6506270382ca3c95a0 | [
"MIT"
] | null | null | null | Python/statistics_with_Python/08_LogisticRegression/Script_Files/01_LogisticRegression.py | snehilk1312/AppliedStatistics | 0e2b9ca45b004f38f796fa6506270382ca3c95a0 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# In[76]:
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
import statsmodels.api as sm
import scipy.stats as st
import pingouin as pg
# In[77]:
data = pd.read_csv('/home/atrides/Desktop/R/statistics_with_Python/08_LogisticRegressi... | 16.255717 | 268 | 0.668883 | 1,247 | 7,819 | 4.095429 | 0.319968 | 0.023497 | 0.010965 | 0.009399 | 0.169963 | 0.110241 | 0.084002 | 0.068729 | 0.056981 | 0.056981 | 0 | 0.06724 | 0.166901 | 7,819 | 480 | 269 | 16.289583 | 0.71661 | 0.421409 | 0 | 0.073395 | 0 | 0 | 0.171738 | 0.041033 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009174 | false | 0 | 0.082569 | 0 | 0.091743 | 0.46789 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c3e92e2e8ae8549b44e9c7d8f27fbbe830d52796 | 2,363 | py | Python | server/ec2-coordinator-app/src/initial_server/wait_for_sync_completion.py | dylanhogg/cloud-ethereum-node | f6ccd5d6ffefbc1d3506c33997e119eca7da61d1 | [
"MIT"
] | null | null | null | server/ec2-coordinator-app/src/initial_server/wait_for_sync_completion.py | dylanhogg/cloud-ethereum-node | f6ccd5d6ffefbc1d3506c33997e119eca7da61d1 | [
"MIT"
] | null | null | null | server/ec2-coordinator-app/src/initial_server/wait_for_sync_completion.py | dylanhogg/cloud-ethereum-node | f6ccd5d6ffefbc1d3506c33997e119eca7da61d1 | [
"MIT"
] | null | null | null | import time
from loguru import logger
from library import ssh, geth_status
def wait(instance_dns, instance_type, datadir_mount, data_dir,
debug_run, interrupt_avail_pct, status_interval_secs):
logger.info(f"Monitoring geth synchronisation. This should take several hours to complete...")
status_count... | 42.196429 | 128 | 0.650444 | 314 | 2,363 | 4.621019 | 0.308917 | 0.068229 | 0.062026 | 0.035148 | 0.165403 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008518 | 0.254761 | 2,363 | 55 | 129 | 42.963636 | 0.815446 | 0.019467 | 0 | 0.047619 | 0 | 0 | 0.262203 | 0.050972 | 0 | 0 | 0 | 0.018182 | 0 | 1 | 0.02381 | false | 0 | 0.071429 | 0 | 0.119048 | 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 |
c3efa961f39f48228dfb149f8cf748a785109427 | 713 | py | Python | di/utils/inspection/module_variables/__init__.py | dlski/python-di | 04dcdf58f3cf820e2d2ba5086e4e89822ae1f409 | [
"MIT"
] | 8 | 2021-02-05T16:17:31.000Z | 2022-03-03T00:01:33.000Z | di/utils/inspection/module_variables/__init__.py | dlski/python-di | 04dcdf58f3cf820e2d2ba5086e4e89822ae1f409 | [
"MIT"
] | null | null | null | di/utils/inspection/module_variables/__init__.py | dlski/python-di | 04dcdf58f3cf820e2d2ba5086e4e89822ae1f409 | [
"MIT"
] | null | null | null | from di.utils.inspection.module_variables.base import (
Variable,
VariableFilter,
VariableFilterCascade,
)
from di.utils.inspection.module_variables.filters import (
AnnotatedVariableFilter,
DefinedVariableFilter,
OptionalAllVariableFilter,
PublicVariableFilter,
UndefinedVariableFilter,
... | 24.586207 | 83 | 0.748948 | 46 | 713 | 11.456522 | 0.434783 | 0.034156 | 0.062619 | 0.119545 | 0.629981 | 0.204934 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171108 | 713 | 28 | 84 | 25.464286 | 0.891709 | 0.030856 | 0 | 0 | 0 | 0 | 0.260553 | 0.199418 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 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 |
c3f170c441bacf0ee88ed6903495326d3e9901a3 | 328 | py | Python | docker_app_generator/settings.py | HouseOfAgile/docker-apps | 7bddac90701a6eb9e5d473bd0894c25f0b653def | [
"MIT"
] | null | null | null | docker_app_generator/settings.py | HouseOfAgile/docker-apps | 7bddac90701a6eb9e5d473bd0894c25f0b653def | [
"MIT"
] | 2 | 2019-03-15T13:22:20.000Z | 2019-12-18T00:31:40.000Z | docker_app_generator/settings.py | HouseOfAgile/docker-apps | 7bddac90701a6eb9e5d473bd0894c25f0b653def | [
"MIT"
] | null | null | null | depl_user = 'darulez'
depl_group = 'docker'
# defaults file for ansible-docker-apps-generator
assembly_path = 'apps-assembly'
apps_path = './apps-universe'
stacks_path = './stacks-universe'
default_docker_network = 'hoa_network'
docker_main_sections = ['docker_from', 'docker_init', 'docker_reqs', 'docker_core', 'docker... | 36.444444 | 98 | 0.768293 | 43 | 328 | 5.511628 | 0.581395 | 0.067511 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091463 | 328 | 8 | 99 | 41 | 0.795302 | 0.143293 | 0 | 0 | 0 | 0 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7f0308698c445dfbc3571afe847dcf721471ab79 | 14,816 | py | Python | fabfile.py | ministryofjustice/jury-summons-deploy | 35d702667e49976866cd0ff2aa7a225532e60833 | [
"MIT"
] | 1 | 2017-07-19T14:38:04.000Z | 2017-07-19T14:38:04.000Z | fabfile.py | ministryofjustice/jury-summons-deploy | 35d702667e49976866cd0ff2aa7a225532e60833 | [
"MIT"
] | null | null | null | fabfile.py | ministryofjustice/jury-summons-deploy | 35d702667e49976866cd0ff2aa7a225532e60833 | [
"MIT"
] | 2 | 2016-07-15T02:13:09.000Z | 2021-04-11T07:00:23.000Z | from collections import defaultdict
import os
import time
import json
import lazy_object_proxy
import random
from functools import partial
import boto.cloudformation
import boto.ec2
from boto.exception import BotoServerError
from fabric.api import task, env, local, run
from fabric.tasks import execute
from fabric imp... | 28.007561 | 92 | 0.640861 | 1,927 | 14,816 | 4.663726 | 0.203944 | 0.024035 | 0.024035 | 0.038389 | 0.270168 | 0.20207 | 0.153444 | 0.121175 | 0.094247 | 0.068877 | 0 | 0.007741 | 0.241428 | 14,816 | 528 | 93 | 28.060606 | 0.791885 | 0.054131 | 0 | 0.192935 | 0 | 0.005435 | 0.137117 | 0.017745 | 0 | 0 | 0 | 0.001894 | 0 | 0 | null | null | 0.005435 | 0.05163 | null | null | 0.01087 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7f0a158e668105943789df99995d85cdc2890500 | 1,194 | py | Python | gplearn/tests/test_utils.py | anshulrai/gplearn | 01ca44026630f56cacce13e0b022488554e4a1fc | [
"BSD-3-Clause"
] | 2 | 2020-01-14T05:35:25.000Z | 2020-07-22T13:11:55.000Z | gplearn/tests/test_utils.py | anshulrai/gplearn | 01ca44026630f56cacce13e0b022488554e4a1fc | [
"BSD-3-Clause"
] | null | null | null | gplearn/tests/test_utils.py | anshulrai/gplearn | 01ca44026630f56cacce13e0b022488554e4a1fc | [
"BSD-3-Clause"
] | 1 | 2019-07-27T05:41:24.000Z | 2019-07-27T05:41:24.000Z | """Testing the utils module."""
# Author: Trevor Stephens <trevorstephens.com>
#
# License: BSD 3 clause
import numpy as np
from sklearn.utils.testing import assert_raises, assert_true
from gplearn.utils import _get_n_jobs, check_random_state, cpu_count
def test_check_random_state():
"""Check the check_random_... | 27.767442 | 75 | 0.736181 | 180 | 1,194 | 4.555556 | 0.322222 | 0.120732 | 0.17561 | 0.128049 | 0.365854 | 0.25122 | 0.190244 | 0.190244 | 0.190244 | 0.190244 | 0 | 0.041708 | 0.156616 | 1,194 | 42 | 76 | 28.428571 | 0.772592 | 0.163317 | 0 | 0.142857 | 0 | 0 | 0.017329 | 0 | 0 | 0 | 0 | 0 | 0.47619 | 1 | 0.095238 | false | 0 | 0.142857 | 0 | 0.238095 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7f10562042b186edf5fafea079830efca5291aea | 2,734 | py | Python | aula06/DFS/ExersiceDFS/paintDashGrids.py | AndyBriyit/LabADAGrupoB | 8390f6cd8c0dd07553096204b32553928792e768 | [
"BSD-3-Clause"
] | null | null | null | aula06/DFS/ExersiceDFS/paintDashGrids.py | AndyBriyit/LabADAGrupoB | 8390f6cd8c0dd07553096204b32553928792e768 | [
"BSD-3-Clause"
] | null | null | null | aula06/DFS/ExersiceDFS/paintDashGrids.py | AndyBriyit/LabADAGrupoB | 8390f6cd8c0dd07553096204b32553928792e768 | [
"BSD-3-Clause"
] | null | null | null | '''ALUMNA: HUAMANI TACOMA ANDY
EJERCICIO : PAINT DASH GRIDS-DFS-RECURSIVE'''
# DESCRIPCION: IMPLEMENTACION DE DFS-RECURSIVE PARA PINTAR LOS DASH GRIDS DE UNA MATRIZ
def dfs_recursive(matrix, startX, startY, simbVisited, simbPared):
# TABLERO, POSICION INICIALX, POSICION INICIALY, SIMBOLO VISITADO, SIMBOLO PA... | 43.396825 | 157 | 0.481712 | 290 | 2,734 | 4.527586 | 0.348276 | 0.054836 | 0.054836 | 0.047982 | 0.262757 | 0.195735 | 0.173648 | 0.173648 | 0.115765 | 0.115765 | 0 | 0.010876 | 0.36101 | 2,734 | 63 | 158 | 43.396825 | 0.740698 | 0.350037 | 0 | 0.210526 | 0 | 0 | 0.095348 | 0.033889 | 0 | 0 | 0 | 0.015873 | 0 | 1 | 0.052632 | false | 0 | 0 | 0 | 0.131579 | 0.289474 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
7f14df53a9c9c379895e5a746ff0a3b9a2169633 | 5,155 | py | Python | tests/unit/facade_tests.py | ibrmora/django-oscar-accounts | 2c4930f6de52f4b9b2ad304c3f17a6c87ad55f96 | [
"BSD-3-Clause"
] | null | null | null | tests/unit/facade_tests.py | ibrmora/django-oscar-accounts | 2c4930f6de52f4b9b2ad304c3f17a6c87ad55f96 | [
"BSD-3-Clause"
] | null | null | null | tests/unit/facade_tests.py | ibrmora/django-oscar-accounts | 2c4930f6de52f4b9b2ad304c3f17a6c87ad55f96 | [
"BSD-3-Clause"
] | null | null | null | from decimal import Decimal as D
from django.db.models import Sum
from django.test import TestCase, TransactionTestCase
from oscar.test.factories import UserFactory
import mock
from oscar_accounts import facade, exceptions
from oscar_accounts.models import Account, Transfer, Transaction
from oscar_accounts.test_facto... | 39.05303 | 94 | 0.694471 | 581 | 5,155 | 5.972461 | 0.201377 | 0.040346 | 0.065706 | 0.027378 | 0.497118 | 0.435735 | 0.369164 | 0.302594 | 0.281844 | 0.281844 | 0 | 0.014366 | 0.203298 | 5,155 | 131 | 95 | 39.351145 | 0.830533 | 0 | 0 | 0.255102 | 0 | 0 | 0.053152 | 0.019787 | 0 | 0 | 0 | 0 | 0.22449 | 1 | 0.234694 | false | 0.010204 | 0.081633 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7f18a08d307685253bda7993b327ccfa7e1a4ea9 | 1,629 | py | Python | dfirtrack_main/tests/systemtype/test_systemtype_models.py | blackhatethicalhacking/dfirtrack | 9c2e13015291f2981d14d63c9683e7c447e91f3a | [
"MIT"
] | 4 | 2020-03-06T17:37:09.000Z | 2020-03-17T07:50:55.000Z | dfirtrack_main/tests/systemtype/test_systemtype_models.py | blackhatethicalhacking/dfirtrack | 9c2e13015291f2981d14d63c9683e7c447e91f3a | [
"MIT"
] | null | null | null | dfirtrack_main/tests/systemtype/test_systemtype_models.py | blackhatethicalhacking/dfirtrack | 9c2e13015291f2981d14d63c9683e7c447e91f3a | [
"MIT"
] | 1 | 2020-03-06T20:54:52.000Z | 2020-03-06T20:54:52.000Z | from django.test import TestCase
from dfirtrack_main.models import Systemtype
class SystemtypeModelTestCase(TestCase):
""" systemtype model tests """
@classmethod
def setUpTestData(cls):
# create object
Systemtype.objects.create(systemtype_name='systemtype_1')
def test_systemtype_str... | 32.58 | 82 | 0.677716 | 180 | 1,629 | 5.85 | 0.222222 | 0.146249 | 0.11396 | 0.118708 | 0.609687 | 0.556505 | 0.556505 | 0.517569 | 0.415005 | 0.415005 | 0 | 0.012759 | 0.230203 | 1,629 | 49 | 83 | 33.244898 | 0.826954 | 0.148557 | 0 | 0.190476 | 0 | 0 | 0.10632 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 1 | 0.238095 | false | 0 | 0.095238 | 0 | 0.380952 | 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 |
7f1da2bd3ec8f03c70fb45bf98acf8ee5297be5d | 345 | py | Python | assn3/Q1.py | vardhan2000/1st-sem-python-assignments | 9f38ab2b15c36b5ae1c6a725f4d4effe026e0bb4 | [
"MIT"
] | null | null | null | assn3/Q1.py | vardhan2000/1st-sem-python-assignments | 9f38ab2b15c36b5ae1c6a725f4d4effe026e0bb4 | [
"MIT"
] | null | null | null | assn3/Q1.py | vardhan2000/1st-sem-python-assignments | 9f38ab2b15c36b5ae1c6a725f4d4effe026e0bb4 | [
"MIT"
] | null | null | null | from Q1input import *
# Your code - begin
#To iterate over the elements of the list and make a dictionary which contains the keys as the elements and their count as the value of the key.
output = {}
for i in inp:
if i in output.keys():
output[i] = output[i] + 1
else:
output[i] = 1
# Your ... | 18.157895 | 144 | 0.649275 | 58 | 345 | 3.862069 | 0.603448 | 0.09375 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012048 | 0.278261 | 345 | 18 | 145 | 19.166667 | 0.88755 | 0.510145 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
612f85cb4809adbefb76b00da60089989ec298c6 | 617 | py | Python | apogee/server/handlers/variables/list_handler.py | markdouthwaite/apogee | 2e8f58809b2af76137793215f4e7853b047d9183 | [
"MIT"
] | 4 | 2019-01-02T06:08:28.000Z | 2019-11-11T08:58:01.000Z | apogee/server/handlers/variables/list_handler.py | markdouthwaite/Apogee | 2e8f58809b2af76137793215f4e7853b047d9183 | [
"MIT"
] | 3 | 2019-10-17T11:56:53.000Z | 2020-05-17T16:04:45.000Z | apogee/server/handlers/variables/list_handler.py | markdouthwaite/apogee | 2e8f58809b2af76137793215f4e7853b047d9183 | [
"MIT"
] | null | null | null | """
The MIT License
Copyright (c) 2017-2020 Mark Douthwaite
"""
import json
from typing import Optional, Any
from tornado.web import RequestHandler
class VariablesListHandler(RequestHandler):
"""A handler that returns a list of the names of variables in the model."""
def initialize(self, model: "Graphical... | 23.730769 | 83 | 0.654781 | 77 | 617 | 5.220779 | 0.597403 | 0.067164 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016632 | 0.220421 | 617 | 25 | 84 | 24.68 | 0.819127 | 0.235008 | 0 | 0 | 0 | 0 | 0.039648 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.272727 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6130b157079637bb4acd54e01f8d4b05a4393349 | 667 | py | Python | python/Sorting algo/shellSort.py | angelopassaro/Hacktoberfest-1 | 21f90f5d49efba9b1a27f4d9b923f5017ab43f0e | [
"Apache-2.0"
] | 1 | 2020-10-06T01:20:07.000Z | 2020-10-06T01:20:07.000Z | python/Sorting algo/shellSort.py | angelopassaro/Hacktoberfest-1 | 21f90f5d49efba9b1a27f4d9b923f5017ab43f0e | [
"Apache-2.0"
] | null | null | null | python/Sorting algo/shellSort.py | angelopassaro/Hacktoberfest-1 | 21f90f5d49efba9b1a27f4d9b923f5017ab43f0e | [
"Apache-2.0"
] | null | null | null | '''We sort a large sublist of a given list and go on reducing the size of the list until all elements are sorted.'''
def shellSort(input_list):
mid = len(input_list) // 2
while mid > 0:
for i in range(mid, len(input_list)):
temp = input_list[i]
j = i
# Sort t... | 35.105263 | 117 | 0.535232 | 103 | 667 | 3.38835 | 0.466019 | 0.206304 | 0.114613 | 0.08596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047393 | 0.367316 | 667 | 19 | 118 | 35.105263 | 0.779621 | 0.266867 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0 | 0 | 0.071429 | 0.071429 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
613ab0237df5fd20cde5133654948581646642ff | 1,018 | py | Python | testing/parsing/TestParserEmoji.py | Berdugo1994/Tweeter-Search-Engine | ff80707d64b792288b877814d79e39c5b5ceb7ad | [
"MIT"
] | null | null | null | testing/parsing/TestParserEmoji.py | Berdugo1994/Tweeter-Search-Engine | ff80707d64b792288b877814d79e39c5b5ceb7ad | [
"MIT"
] | null | null | null | testing/parsing/TestParserEmoji.py | Berdugo1994/Tweeter-Search-Engine | ff80707d64b792288b877814d79e39c5b5ceb7ad | [
"MIT"
] | null | null | null | import unittest
from parser_module import Parse
class TestParserEmoji(unittest.TestCase):
def test_emoji1(self):
text = "I am so 😊"
expected = ['smiling', 'face', 'with', 'smiling', 'eyes']
actual = Parse().parse_sentence(text)
self.assertEqual(expected, actual)
de... | 30.848485 | 66 | 0.584479 | 113 | 1,018 | 5.159292 | 0.415929 | 0.048027 | 0.109777 | 0.164666 | 0.574614 | 0.427101 | 0.427101 | 0.427101 | 0.427101 | 0.329331 | 0 | 0.00542 | 0.275049 | 1,018 | 32 | 67 | 31.8125 | 0.777778 | 0 | 0 | 0.32 | 0 | 0 | 0.1643 | 0 | 0 | 0 | 0 | 0 | 0.16 | 1 | 0.16 | false | 0 | 0.08 | 0 | 0.28 | 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 |
614a5b171799337d673b3d4de086cf020c7254fc | 10,527 | py | Python | birdie/views.py | gr-/birdie | ddfaa8d9e067d533605052214b04e944e0659c26 | [
"MIT"
] | 1 | 2015-08-26T14:00:15.000Z | 2015-08-26T14:00:15.000Z | birdie/views.py | gr-/birdie | ddfaa8d9e067d533605052214b04e944e0659c26 | [
"MIT"
] | 1 | 2015-11-27T16:34:54.000Z | 2015-11-27T16:34:54.000Z | birdie/views.py | gr-/birdie | ddfaa8d9e067d533605052214b04e944e0659c26 | [
"MIT"
] | null | null | null | from pyramid.response import Response
from pyramid.httpexceptions import (
HTTPFound,
HTTPNotFound,
)
from pyramid.renderers import get_renderer
from pyramid.security import (
remember,
forget,
authenticated_userid,
)
from pyramid.view import (
view_config,
forbidden_view_config,
... | 36.3 | 121 | 0.586207 | 1,153 | 10,527 | 5.214224 | 0.19601 | 0.047904 | 0.029275 | 0.028443 | 0.415336 | 0.355289 | 0.292748 | 0.238856 | 0.213906 | 0.189454 | 0 | 0.002217 | 0.314335 | 10,527 | 289 | 122 | 36.425606 | 0.830701 | 0.051582 | 0 | 0.292576 | 0 | 0 | 0.159041 | 0.031908 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043668 | false | 0.052402 | 0.056769 | 0.004367 | 0.165939 | 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 |
614b885d0e658d5fcd33b074437a8f0109ff3538 | 330 | py | Python | load_obama_vec.py | syaffers/obamavec | ac0c98202f489b3b9640498ec5a07c39c75e3c4c | [
"BSD-3-Clause"
] | null | null | null | load_obama_vec.py | syaffers/obamavec | ac0c98202f489b3b9640498ec5a07c39c75e3c4c | [
"BSD-3-Clause"
] | null | null | null | load_obama_vec.py | syaffers/obamavec | ac0c98202f489b3b9640498ec5a07c39c75e3c4c | [
"BSD-3-Clause"
] | null | null | null | import logging
from gensim.models import KeyedVectors
logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s',
level=logging.INFO)
obama_vec = KeyedVectors.load_word2vec_format("obama_vec.bin", binary=True)
print("Testing model...")
obama_vec.accuracy('/home/syafiq/data/questions-wo... | 33 | 75 | 0.730303 | 42 | 330 | 5.619048 | 0.738095 | 0.101695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00346 | 0.124242 | 330 | 9 | 76 | 36.666667 | 0.813149 | 0 | 0 | 0 | 0 | 0 | 0.324242 | 0.112121 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0.142857 | 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 |
6154f1b4ff5542ebb7ea8efd1bcbf7fd874ed496 | 481 | py | Python | _site/neuroblog/src/utils/generate_spikes.py | rschuster3/rschuster3.github.io | fcf62a0655d1060d86aca2c8166b9c0d0bae79e1 | [
"MIT"
] | null | null | null | _site/neuroblog/src/utils/generate_spikes.py | rschuster3/rschuster3.github.io | fcf62a0655d1060d86aca2c8166b9c0d0bae79e1 | [
"MIT"
] | 7 | 2020-03-24T17:53:20.000Z | 2022-02-26T07:34:49.000Z | neuroblog/src/utils/generate_spikes.py | rschuster3/rschuster3.github.io | fcf62a0655d1060d86aca2c8166b9c0d0bae79e1 | [
"MIT"
] | null | null | null | import numpy as np
from scipy import signal
def random_spikes(size):
"""
Generate zeros and ones in an array of size=size.
probabilities = [probability 0 will appear, probability 1 will appear]
"""
spikes = np.random.choice(2, size, p=[0.99, 0.01])
# Get rid of spikes that are on top of each ... | 28.294118 | 75 | 0.621622 | 78 | 481 | 3.820513 | 0.576923 | 0.07047 | 0.067114 | 0.073826 | 0.077181 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039886 | 0.27027 | 481 | 16 | 76 | 30.0625 | 0.809117 | 0.351351 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
615dffccfc88e50acce1a9c49fcfe3fc5fbd0179 | 906 | py | Python | pirates/effects/UsesEffectNode.py | itsyaboyrocket/pirates | 6ca1e7d571c670b0d976f65e608235707b5737e3 | [
"BSD-3-Clause"
] | 3 | 2021-02-25T06:38:13.000Z | 2022-03-22T07:00:15.000Z | pirates/effects/UsesEffectNode.py | itsyaboyrocket/pirates | 6ca1e7d571c670b0d976f65e608235707b5737e3 | [
"BSD-3-Clause"
] | null | null | null | pirates/effects/UsesEffectNode.py | itsyaboyrocket/pirates | 6ca1e7d571c670b0d976f65e608235707b5737e3 | [
"BSD-3-Clause"
] | 1 | 2021-02-25T06:38:17.000Z | 2021-02-25T06:38:17.000Z | # uncompyle6 version 3.2.0
# Python bytecode 2.4 (62061)
# Decompiled from: Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)]
# Embedded file name: pirates.effects.UsesEffectNode
from pandac.PandaModules import *
class UsesEffectNode(NodePath):
__module__ = __name__
def __i... | 36.24 | 123 | 0.698675 | 110 | 906 | 5.645455 | 0.545455 | 0.164251 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077236 | 0.18543 | 906 | 25 | 124 | 36.24 | 0.764228 | 0.227373 | 0 | 0 | 0 | 0 | 0.033046 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.0625 | 0.0625 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
61716883b8c700a39119af4f128c336745ae8b2e | 1,692 | py | Python | view_pyobject.py | harukaeru/InspectViewer | 95f19b64a73fca540c314d6f6d566af9cb7730bf | [
"MIT"
] | null | null | null | view_pyobject.py | harukaeru/InspectViewer | 95f19b64a73fca540c314d6f6d566af9cb7730bf | [
"MIT"
] | null | null | null | view_pyobject.py | harukaeru/InspectViewer | 95f19b64a73fca540c314d6f6d566af9cb7730bf | [
"MIT"
] | null | null | null | import re
import copy
from inspect import getmembers, ismethod
from collections import OrderedDict
class Viewer:
_attribute_regex = re.compile(r'^__.*__$')
METHOD = lambda k, v: ismethod(v)
FIELD = lambda k, v: not ismethod(v)
ATTRIBUTE = lambda k, v: Viewer._attribute_regex.match(k)
NOT_ATTRIBUTE... | 32.538462 | 69 | 0.621158 | 216 | 1,692 | 4.643519 | 0.277778 | 0.02991 | 0.055833 | 0.020937 | 0.251246 | 0.199402 | 0.089731 | 0.089731 | 0.089731 | 0.089731 | 0 | 0.000803 | 0.264184 | 1,692 | 51 | 70 | 33.176471 | 0.804819 | 0 | 0 | 0 | 0 | 0 | 0.016548 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.119048 | false | 0 | 0.095238 | 0.02381 | 0.547619 | 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 |
61787ce2ed78276224087dc18f0b90ddfabf8a7c | 1,821 | py | Python | tests/test_contras_cli_es.py | victaum1/contravic | af9fbd8a66a5905bd551f354b58053cba172b40d | [
"MIT"
] | null | null | null | tests/test_contras_cli_es.py | victaum1/contravic | af9fbd8a66a5905bd551f354b58053cba172b40d | [
"MIT"
] | null | null | null | tests/test_contras_cli_es.py | victaum1/contravic | af9fbd8a66a5905bd551f354b58053cba172b40d | [
"MIT"
] | null | null | null | #
# testin main: contras_cli
import pytest
import sys
import pdb
sys.path.append("./src")
from crypty import encrypt, decrypt
import io_wrap
import contras_cli as cli
@pytest.mark.happy
def test_usr_happy_path_1(mocker, inputs, out_fn, spec_out_es,
out_data):
t_inputs = inputs[0]
t_outputs = []
... | 26.391304 | 63 | 0.683141 | 298 | 1,821 | 3.872483 | 0.238255 | 0.055459 | 0.117851 | 0.138648 | 0.580589 | 0.556326 | 0.516464 | 0.516464 | 0.457539 | 0.457539 | 0 | 0.011456 | 0.185063 | 1,821 | 68 | 64 | 26.779412 | 0.766173 | 0.01318 | 0 | 0.5 | 0 | 0 | 0.038462 | 0 | 0 | 0 | 0 | 0 | 0.134615 | 1 | 0.115385 | false | 0.076923 | 0.115385 | 0 | 0.269231 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
617def4015a0c4af6a64ac67d77bf022c9a3a462 | 1,334 | py | Python | PolTools/utils/bedtools_utils/run_bedtools_coverage.py | GeoffSCollins/PolTools | 1ea9b166efc56610c385802f9491b4c8ec25a1d0 | [
"MIT"
] | null | null | null | PolTools/utils/bedtools_utils/run_bedtools_coverage.py | GeoffSCollins/PolTools | 1ea9b166efc56610c385802f9491b4c8ec25a1d0 | [
"MIT"
] | null | null | null | PolTools/utils/bedtools_utils/run_bedtools_coverage.py | GeoffSCollins/PolTools | 1ea9b166efc56610c385802f9491b4c8ec25a1d0 | [
"MIT"
] | null | null | null | import os
from PolTools.utils.make_random_filename import generate_random_filename
from PolTools.utils.verify_bed_file import verify_bed_files
def run_coverage(regions_filename, sequencing_filename, output_filename='', flags=None):
"""
Runs strand specific bedtools coverage to get the number of counts in the... | 37.055556 | 150 | 0.728636 | 173 | 1,334 | 5.427746 | 0.387283 | 0.104366 | 0.070288 | 0.070288 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2009 | 1,334 | 35 | 151 | 38.114286 | 0.880863 | 0.45952 | 0 | 0 | 1 | 0 | 0.069173 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.230769 | 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 |
617e59be3e92a5fac20a5183b3a53b2d362aab2f | 2,516 | py | Python | tpDcc/tools/datalibrary/core/factory.py | tpDcc/tpDcc-tools-datalibrary | fe867ac35a59d13300af20a998dccdabc2e145ba | [
"MIT"
] | null | null | null | tpDcc/tools/datalibrary/core/factory.py | tpDcc/tpDcc-tools-datalibrary | fe867ac35a59d13300af20a998dccdabc2e145ba | [
"MIT"
] | null | null | null | tpDcc/tools/datalibrary/core/factory.py | tpDcc/tpDcc-tools-datalibrary | fe867ac35a59d13300af20a998dccdabc2e145ba | [
"MIT"
] | null | null | null | #! /usr/bin/env python
# -*- coding: utf-8 -*-
"""
Module that contains base item factory implementation
"""
from __future__ import print_function, division, absolute_import
import os
from tpDcc import dcc
from tpDcc.libs.python import decorators, plugin
from tpDcc.libs.datalibrary.data import folder
from tpDcc.to... | 31.061728 | 94 | 0.701113 | 306 | 2,516 | 5.460784 | 0.362745 | 0.057451 | 0.047876 | 0.059844 | 0.151406 | 0.107121 | 0 | 0 | 0 | 0 | 0 | 0.000502 | 0.207472 | 2,516 | 80 | 95 | 31.45 | 0.837513 | 0.083068 | 0 | 0.086957 | 0 | 0 | 0.010624 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.195652 | false | 0.021739 | 0.195652 | 0.086957 | 0.673913 | 0.021739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6184c8f7939bf7ea1a9e784b299f5c4ed5869650 | 1,914 | py | Python | gaussian1D_profile.py | jfblanchard/gaussian-beam | bab00487e3bc19885abd1b26d759539ff07b0103 | [
"MIT"
] | null | null | null | gaussian1D_profile.py | jfblanchard/gaussian-beam | bab00487e3bc19885abd1b26d759539ff07b0103 | [
"MIT"
] | null | null | null | gaussian1D_profile.py | jfblanchard/gaussian-beam | bab00487e3bc19885abd1b26d759539ff07b0103 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Make a simple 1D gaussian profile.
"""
import numpy as np
import matplotlib.pyplot as plt
def gaussian_1D_profile(x_min, x_max, x_step, center, sigma, amplitude):
"""Function to create a 1D Gaussian distribution.
Parameters
----------
x_min, ... | 24.857143 | 85 | 0.579937 | 269 | 1,914 | 4.033457 | 0.416357 | 0.01106 | 0.047005 | 0.02212 | 0.065438 | 0.035945 | 0 | 0 | 0 | 0 | 0 | 0.017692 | 0.320794 | 1,914 | 76 | 86 | 25.184211 | 0.816923 | 0.548067 | 0 | 0 | 0 | 0 | 0.066038 | 0 | 0 | 0 | 0 | 0.026316 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
618f70c1b0d73568eb91bf985ab3c154406081fb | 322 | py | Python | exercicios/ex 081 a 090/ex085.py | CarlosWillian/python | f863578245fbf402e5b46f844a247355afed0d62 | [
"MIT"
] | null | null | null | exercicios/ex 081 a 090/ex085.py | CarlosWillian/python | f863578245fbf402e5b46f844a247355afed0d62 | [
"MIT"
] | null | null | null | exercicios/ex 081 a 090/ex085.py | CarlosWillian/python | f863578245fbf402e5b46f844a247355afed0d62 | [
"MIT"
] | null | null | null | num = [[], []]
for c in range(0, 7):
n = (int(input(f'Digite o {c + 1}° valor: ')))
if n % 2 == 0:
num[0].append(n)
else:
num[1].append(n)
print('-=' * 24)
num[0].sort()
num[1].sort()
print(f'Os valores pares digitados foram: {num[0]}')
print(f'Os valores ímpares digitados foram: {num[1]}')... | 21.466667 | 54 | 0.534161 | 56 | 322 | 3.089286 | 0.517857 | 0.069364 | 0.092486 | 0.17341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052419 | 0.229814 | 322 | 14 | 55 | 23 | 0.641129 | 0 | 0 | 0 | 0 | 0 | 0.352025 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 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 |
61908f166264d95fd479ef5e840c8ae77aa65a65 | 421 | py | Python | torchflare/utils/imports_check.py | Atharva-Phatak/torchflare | 945f4bee73a855edd8cb19cd646731155499a27f | [
"Apache-2.0"
] | 86 | 2021-04-23T04:55:43.000Z | 2022-03-08T05:25:27.000Z | torchflare/utils/imports_check.py | Neklaustares-tPtwP/torchflare | 7af6b01ef7c26f0277a041619081f6df4eb1e42c | [
"Apache-2.0"
] | 252 | 2021-04-20T21:48:10.000Z | 2022-03-31T21:12:05.000Z | torchflare/utils/imports_check.py | Atharva-Phatak/torchflare | 945f4bee73a855edd8cb19cd646731155499a27f | [
"Apache-2.0"
] | 8 | 2021-04-28T19:57:49.000Z | 2021-08-09T02:31:35.000Z | from importlib.util import find_spec
def module_available(module_path: str) -> bool:
"""Function to check whether the package is available or not.
Args:
module_path : The name of the module.
"""
try:
return find_spec(module_path) is not None
except AttributeError:
# Python... | 23.388889 | 65 | 0.643705 | 54 | 421 | 4.907407 | 0.648148 | 0.113208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013423 | 0.292162 | 421 | 17 | 66 | 24.764706 | 0.875839 | 0.311164 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
61990eac98fbe7b2a3c5d4d6a780f764264c4b2c | 974 | py | Python | old/const/docs.py | hmoon630/Shrimp_bot | 80f618f3c62e093eb56e81b37b9b50b291745f6f | [
"MIT"
] | null | null | null | old/const/docs.py | hmoon630/Shrimp_bot | 80f618f3c62e093eb56e81b37b9b50b291745f6f | [
"MIT"
] | null | null | null | old/const/docs.py | hmoon630/Shrimp_bot | 80f618f3c62e093eb56e81b37b9b50b291745f6f | [
"MIT"
] | null | null | null | class Docs:
helps = """
:shrimp:새우 봇의 명령어 입니다!
새우야 도움말 <명령어>로 상세히 볼 수 있습니다!
**새우야**
새우 봇이 온라인인지 확인합니다!
**도움말**
새우 봇의 명령어를 알려줍니다!
**밥**
GSM의 급식을 알려줍니다!
**초대**
새우 봇을 초대할 수 있는 링크를 줍니다!
**커스텀**
새우 봇에게 새로운 명령어를 추가합니다!
**통계**
이 서버 내에서 새우 봇에게 내렸던 명령들의 횟수를 보여줍니다!
"""
ping = """
새우 봇이 온라인인지 확인합니다!
그리고 반갑게 인사:wav... | 13.162162 | 43 | 0.573922 | 186 | 974 | 3 | 0.478495 | 0.053763 | 0.071685 | 0.032258 | 0.21147 | 0.150538 | 0.150538 | 0.09319 | 0.09319 | 0 | 0 | 0.00277 | 0.258727 | 974 | 73 | 44 | 13.342466 | 0.770083 | 0 | 0 | 0.395833 | 0 | 0 | 0.834702 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
619a8bcc626ed8d29d943fe5118bdb7aa447f115 | 21,943 | py | Python | python/cyber_proto/cyber/dmn/v1beta1/__init__.py | SaveTheAles/cyber.proto | 6d14c9919d6f0c088f1a1e792c3982a1fa9d72e5 | [
"Apache-2.0"
] | null | null | null | python/cyber_proto/cyber/dmn/v1beta1/__init__.py | SaveTheAles/cyber.proto | 6d14c9919d6f0c088f1a1e792c3982a1fa9d72e5 | [
"Apache-2.0"
] | null | null | null | python/cyber_proto/cyber/dmn/v1beta1/__init__.py | SaveTheAles/cyber.proto | 6d14c9919d6f0c088f1a1e792c3982a1fa9d72e5 | [
"Apache-2.0"
] | null | null | null | # Generated by the protocol buffer compiler. DO NOT EDIT!
# sources: cyber/dmn/v1beta1/genesis.proto, cyber/dmn/v1beta1/query.proto, cyber/dmn/v1beta1/tx.proto, cyber/dmn/v1beta1/types.proto
# plugin: python-betterproto
from dataclasses import dataclass
from typing import Dict, List
import betterproto
from betterprot... | 32.412112 | 132 | 0.656656 | 2,127 | 21,943 | 6.597555 | 0.069582 | 0.055156 | 0.035345 | 0.044182 | 0.756716 | 0.649683 | 0.610133 | 0.579705 | 0.563458 | 0.476448 | 0 | 0.008871 | 0.244862 | 21,943 | 676 | 133 | 32.460059 | 0.838021 | 0.009753 | 0 | 0.577299 | 1 | 0 | 0.094453 | 0.078711 | 0 | 0 | 0 | 0 | 0 | 1 | 0.003914 | false | 0.021526 | 0.011742 | 0.003914 | 0.213307 | 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 |
619e570371531ebdc915b8b91344837106b9f291 | 5,267 | py | Python | run_parallel_movie.py | alexkaiser/heart_valves | 53f30ec3680503542890a84949b7fb51d1734272 | [
"BSD-3-Clause"
] | null | null | null | run_parallel_movie.py | alexkaiser/heart_valves | 53f30ec3680503542890a84949b7fb51d1734272 | [
"BSD-3-Clause"
] | null | null | null | run_parallel_movie.py | alexkaiser/heart_valves | 53f30ec3680503542890a84949b7fb51d1734272 | [
"BSD-3-Clause"
] | null | null | null | import os, sys, subprocess, time
def fix_visit_files(viz_directory):
'''
Checks viz directory to find output increment and rewrites visit files
'''
prev_dir = os.getcwd()
os.chdir(viz_directory)
# minimum nonzero step
min_nonzero = float('Inf')
max_idx = 0
... | 31.538922 | 122 | 0.510537 | 632 | 5,267 | 4.079114 | 0.300633 | 0.042669 | 0.027929 | 0.034911 | 0.325834 | 0.308766 | 0.308766 | 0.308766 | 0.287044 | 0.287044 | 0 | 0.025767 | 0.381052 | 5,267 | 166 | 123 | 31.728916 | 0.765031 | 0.063604 | 0 | 0.247525 | 0 | 0.019802 | 0.214463 | 0.007874 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.009901 | null | null | 0.128713 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
61a55b35e2bbf80b81827a58a25f5ca3aee5fd73 | 1,059 | py | Python | samcnet/simple.py | binarybana/samcnet | 84f3ba8241d416115a8aa9ba5c659a9513175072 | [
"MIT"
] | 12 | 2015-11-21T22:32:13.000Z | 2020-10-22T07:41:05.000Z | samcnet/simple.py | binarybana/samcnet | 84f3ba8241d416115a8aa9ba5c659a9513175072 | [
"MIT"
] | null | null | null | samcnet/simple.py | binarybana/samcnet | 84f3ba8241d416115a8aa9ba5c659a9513175072 | [
"MIT"
] | 3 | 2018-08-26T13:17:05.000Z | 2021-09-16T01:09:10.000Z | import numpy as np
import scipy.stats as st
class Simple():
def __init__(self, truemu=2.0, sigma=1.0, N=20, mu0=0.0, tau=5.0):
self.x = 0.0
self.old_x = 0.0
self.truemu = truemu
self.sigma = sigma
self.N = N
self.mu0 = mu0
self.tau = tau
self.data ... | 24.068182 | 81 | 0.542021 | 165 | 1,059 | 3.424242 | 0.29697 | 0.070796 | 0.042478 | 0.024779 | 0.130973 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03989 | 0.313503 | 1,059 | 43 | 82 | 24.627907 | 0.737276 | 0.015109 | 0 | 0.068966 | 0 | 0 | 0.011538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.068966 | null | null | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
61a6309ad5f42b90befd2b5354a5e72500033d32 | 15,966 | py | Python | app/app.py | therealgriehl/handball-stats | 9415123c47685e49c2012d6f38ed6791fd124695 | [
"MIT"
] | null | null | null | app/app.py | therealgriehl/handball-stats | 9415123c47685e49c2012d6f38ed6791fd124695 | [
"MIT"
] | null | null | null | app/app.py | therealgriehl/handball-stats | 9415123c47685e49c2012d6f38ed6791fd124695 | [
"MIT"
] | null | null | null | import pandas as pd
import streamlit as st
import altair as alt
import seaborn as sns
import plotly.express as px
import matplotlib.pyplot as plt
import numpy as np
from collections import Counter
import time
# --- Setup Streamlit ---
st.set_page_config(layout="wide")
#df_report = pd.read_csv(r"C:\Users\rgrie\Pycha... | 46.548105 | 2,000 | 0.698234 | 2,166 | 15,966 | 5.000462 | 0.26362 | 0.022159 | 0.024374 | 0.014126 | 0.211799 | 0.179485 | 0.137753 | 0.113194 | 0.102299 | 0.102299 | 0 | 0.014705 | 0.1822 | 15,966 | 342 | 2,001 | 46.684211 | 0.814429 | 0.043217 | 0 | 0.197183 | 0 | 0.004695 | 0.168335 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018779 | false | 0 | 0.042254 | 0.014085 | 0.075117 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
61a9f984ed478eba63777fe004ae0e750d26a559 | 37,372 | py | Python | tests/snc/environments/test_controlled_random_walk.py | dmcnamee/snc | c2da8c1e9ecdc42c59b9de73224b3d50ee1c9786 | [
"Apache-2.0"
] | 5 | 2021-03-24T16:23:10.000Z | 2021-11-17T12:44:51.000Z | tests/snc/environments/test_controlled_random_walk.py | dmcnamee/snc | c2da8c1e9ecdc42c59b9de73224b3d50ee1c9786 | [
"Apache-2.0"
] | 3 | 2021-03-26T01:16:08.000Z | 2021-05-08T22:06:47.000Z | tests/snc/environments/test_controlled_random_walk.py | dmcnamee/snc | c2da8c1e9ecdc42c59b9de73224b3d50ee1c9786 | [
"Apache-2.0"
] | 2 | 2021-03-24T17:20:06.000Z | 2021-04-19T09:01:12.000Z | import numpy as np
import pytest
from snc.environments.job_generators.discrete_review_job_generator \
import DeterministicDiscreteReviewJobGenerator as drjg
from snc.environments.job_generators.discrete_review_job_generator \
import PoissonDiscreteReviewJobGenerator as prjg
from snc.environments.controlled_ran... | 43.86385 | 101 | 0.627984 | 4,942 | 37,372 | 4.500202 | 0.07669 | 0.009622 | 0.00634 | 0.018705 | 0.752383 | 0.710656 | 0.66295 | 0.635072 | 0.618121 | 0.597482 | 0 | 0.04128 | 0.264931 | 37,372 | 851 | 102 | 43.915394 | 0.768301 | 0.151878 | 0 | 0.5648 | 0 | 0 | 0.000858 | 0 | 0 | 0 | 0 | 0 | 0.1008 | 1 | 0.0624 | false | 0 | 0.0176 | 0 | 0.0832 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
61ab6bae53cf50115f5dac2ae4ca298e8f8b139f | 1,229 | py | Python | tests/test_file.py | jukanntenn/django-tencentcos-storage | c977513607ed72e16784a7603b54a945f36b8362 | [
"BSD-3-Clause"
] | 1 | 2021-06-12T15:18:09.000Z | 2021-06-12T15:18:09.000Z | tests/test_file.py | jukanntenn/django-tencentcos-storage | c977513607ed72e16784a7603b54a945f36b8362 | [
"BSD-3-Clause"
] | 2 | 2021-08-01T08:36:04.000Z | 2021-08-21T18:22:27.000Z | tests/test_file.py | jukanntenn/django-tencentcos-storage | c977513607ed72e16784a7603b54a945f36b8362 | [
"BSD-3-Clause"
] | null | null | null | from io import BytesIO
from tempfile import SpooledTemporaryFile
from unittest.mock import MagicMock
import pytest
from qcloud_cos.cos_client import CosS3Client
from qcloud_cos.streambody import StreamBody
from requests.models import Response
from urllib3.response import HTTPResponse
from tencentcos_storage.file impo... | 35.114286 | 74 | 0.769731 | 147 | 1,229 | 6.278912 | 0.312925 | 0.106176 | 0.097508 | 0.069339 | 0.286024 | 0.212351 | 0.212351 | 0.212351 | 0.095341 | 0 | 0 | 0.004753 | 0.14402 | 1,229 | 34 | 75 | 36.147059 | 0.872624 | 0 | 0 | 0.142857 | 0 | 0 | 0.094386 | 0 | 0 | 0 | 0 | 0 | 0.178571 | 1 | 0.071429 | false | 0 | 0.321429 | 0 | 0.392857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
61af08e53abd64a07f9b0257b1c87fe4127f33d1 | 5,364 | py | Python | Assignment05/Assignment5.py | Ericbrod10/Deep-Learning | 5b0a01597ce19f2da5bf45b76023b898c494f46a | [
"MIT"
] | null | null | null | Assignment05/Assignment5.py | Ericbrod10/Deep-Learning | 5b0a01597ce19f2da5bf45b76023b898c494f46a | [
"MIT"
] | null | null | null | Assignment05/Assignment5.py | Ericbrod10/Deep-Learning | 5b0a01597ce19f2da5bf45b76023b898c494f46a | [
"MIT"
] | null | null | null | import numpy as np
import sys
import os
import pandas as pd
from scipy import signal
from sklearn.metrics import accuracy_score
########## Note: Using Professor's code as a starting template ########################
########################################
### Read images from train directory ###
traindir = sys.... | 32.707317 | 113 | 0.589299 | 839 | 5,364 | 3.643623 | 0.154946 | 0.215898 | 0.09421 | 0.05103 | 0.518155 | 0.515538 | 0.498855 | 0.473013 | 0.457311 | 0.457311 | 0 | 0.074543 | 0.204698 | 5,364 | 163 | 114 | 32.907975 | 0.642053 | 0.070843 | 0 | 0.285714 | 0 | 0 | 0.038988 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.057143 | 0 | 0.057143 | 0.095238 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
61b22f3da4a5e837bdaaa8656fac3d3828cb3a53 | 5,911 | py | Python | source/svfinance/views.py | mverleg/svsite | 5c9dbcacf81020cf0c1960e337bdd33113acd597 | [
"BSD-3-Clause"
] | null | null | null | source/svfinance/views.py | mverleg/svsite | 5c9dbcacf81020cf0c1960e337bdd33113acd597 | [
"BSD-3-Clause"
] | 142 | 2015-06-05T07:53:09.000Z | 2020-03-31T18:37:07.000Z | source/svfinance/views.py | mdilli/svsite | 5c9dbcacf81020cf0c1960e337bdd33113acd597 | [
"BSD-3-Clause"
] | null | null | null |
from display_exceptions import NotFound, PermissionDenied
from django.contrib.auth import get_user_model
from django.contrib.auth.decorators import login_required
from django.core.urlresolvers import reverse
from django.forms import modelformset_factory
from django.shortcuts import redirect
from base.views import rend... | 35.608434 | 133 | 0.767721 | 831 | 5,911 | 5.246691 | 0.219013 | 0.03578 | 0.033028 | 0.025229 | 0.251147 | 0.197936 | 0.134862 | 0.12156 | 0.039908 | 0.016514 | 0 | 0.00251 | 0.123837 | 5,911 | 165 | 134 | 35.824242 | 0.839351 | 0.060734 | 0 | 0.207692 | 0 | 0 | 0.067741 | 0 | 0 | 0 | 0 | 0.012121 | 0.007692 | 1 | 0.069231 | false | 0 | 0.084615 | 0.007692 | 0.215385 | 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 |
61bcba102a9063fcea08835ec391c025fbde18ab | 405 | py | Python | utils.py | bogden1/ScarletsAndBlues | b622ccec5175477a8a0f54f6d53a6dd6028f660e | [
"MIT"
] | null | null | null | utils.py | bogden1/ScarletsAndBlues | b622ccec5175477a8a0f54f6d53a6dd6028f660e | [
"MIT"
] | null | null | null | utils.py | bogden1/ScarletsAndBlues | b622ccec5175477a8a0f54f6d53a6dd6028f660e | [
"MIT"
] | null | null | null | # Utility functions for incrementing counts in dictionaries or appending to a list of values
def add_to_dict_num(D, k, v=1):
if k in D:
D[k] += v
else:
D[k] = v
def add_to_dict_list(D, k, v):
if k in D:
D[k].append(v)
else:
D[k] = [v]
def report(min_verbosity, *args):
... | 23.823529 | 92 | 0.587654 | 69 | 405 | 3.333333 | 0.463768 | 0.052174 | 0.065217 | 0.104348 | 0.165217 | 0.165217 | 0 | 0 | 0 | 0 | 0 | 0.003436 | 0.281481 | 405 | 16 | 93 | 25.3125 | 0.786942 | 0.222222 | 0 | 0.307692 | 0 | 0 | 0.057508 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0 | 0 | 0.230769 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
61bef431217aadfddf7810ef3d5f2405c0e714cf | 4,039 | py | Python | utils/index_scripts.py | asappresearch/neural-ilm | fd7e09960525391f4084a5753429deabd7ff00aa | [
"MIT"
] | null | null | null | utils/index_scripts.py | asappresearch/neural-ilm | fd7e09960525391f4084a5753429deabd7ff00aa | [
"MIT"
] | null | null | null | utils/index_scripts.py | asappresearch/neural-ilm | fd7e09960525391f4084a5753429deabd7ff00aa | [
"MIT"
] | 2 | 2021-02-25T04:42:14.000Z | 2021-02-25T04:43:06.000Z | """
Generates index_auto.md, from the first line of a block comment at the top of each script,
which line should be prefixed with 'summary:'
I suppose I could use sphinx or something for this, but seems like quite a specialized requirement,
Sphinx might be overkill (for now)
Can also add an option line 'category:', w... | 34.818966 | 121 | 0.586284 | 519 | 4,039 | 4.358382 | 0.277457 | 0.039788 | 0.057471 | 0.046419 | 0.204244 | 0.140141 | 0.126437 | 0.036251 | 0.036251 | 0.036251 | 0 | 0.003477 | 0.287943 | 4,039 | 115 | 122 | 35.121739 | 0.783032 | 0.126516 | 0 | 0.087912 | 1 | 0.010989 | 0.10236 | 0.013079 | 0.021978 | 0 | 0 | 0 | 0 | 1 | 0.032967 | false | 0 | 0.065934 | 0 | 0.10989 | 0.054945 | 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 |
61c16bb9c558184f4770821310917b0fbc6cd8c2 | 3,191 | py | Python | vissl/data/torchvision_dataset.py | pcanas/vissl | d293b8295f03a4caeaebd25f3e5ed38866dd4d10 | [
"MIT"
] | 3 | 2021-07-08T15:06:49.000Z | 2021-08-13T18:55:02.000Z | vissl/data/torchvision_dataset.py | pcanas/vissl | d293b8295f03a4caeaebd25f3e5ed38866dd4d10 | [
"MIT"
] | 2 | 2021-07-25T15:46:07.000Z | 2021-08-11T10:08:53.000Z | vissl/data/torchvision_dataset.py | pcanas/vissl | d293b8295f03a4caeaebd25f3e5ed38866dd4d10 | [
"MIT"
] | 2 | 2021-07-08T15:15:55.000Z | 2021-08-25T14:16:01.000Z | # Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from typing import List, Tuple
from fvcore.common.file_io import PathManager
from PIL import Image
from torch.utils.data import Dataset
from t... | 34.311828 | 89 | 0.65246 | 396 | 3,191 | 5.116162 | 0.328283 | 0.059724 | 0.051826 | 0.091313 | 0.207799 | 0.189536 | 0.166831 | 0.138203 | 0.138203 | 0.138203 | 0 | 0.015618 | 0.2576 | 3,191 | 92 | 90 | 34.684783 | 0.839595 | 0.277969 | 0 | 0.041667 | 0 | 0 | 0.059152 | 0 | 0 | 0 | 0 | 0 | 0.020833 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
61c372f14faadfdee4809029423e77cef839953e | 3,978 | py | Python | core/objects/dbs_credentials.py | bopopescu/sdba | f1ecb71ebe627643fd296a07a3ca66b366cd37b9 | [
"MIT"
] | 2 | 2020-08-11T13:55:40.000Z | 2021-01-05T15:23:32.000Z | core/objects/dbs_credentials.py | bopopescu/sdba | f1ecb71ebe627643fd296a07a3ca66b366cd37b9 | [
"MIT"
] | null | null | null | core/objects/dbs_credentials.py | bopopescu/sdba | f1ecb71ebe627643fd296a07a3ca66b366cd37b9 | [
"MIT"
] | 1 | 2020-07-24T07:26:46.000Z | 2020-07-24T07:26:46.000Z | import json
from enum import Enum
from typing import Dict, Any, Union
from core.commons.utils import Utils
class DBSCredentials:
class TYPE(Enum):
MYSQL = 1
__id = 0
__connection = 0
def __init__(self,
id: int,
name: str,
host: str,
... | 19.5 | 84 | 0.423328 | 361 | 3,978 | 4.387812 | 0.141274 | 0.063131 | 0.060606 | 0.063131 | 0.079545 | 0.079545 | 0.040404 | 0.040404 | 0 | 0 | 0 | 0.003311 | 0.468577 | 3,978 | 203 | 85 | 19.596059 | 0.745979 | 0.156863 | 0 | 0.121951 | 0 | 0 | 0.041945 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.182927 | false | 0.073171 | 0.04878 | 0 | 0.45122 | 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 |
61c4b5905c5a460013c9226511a4eee038f4f6c8 | 851 | py | Python | src/arche/__init__.py | victor-torres/arche | 1bc31a1397e15860be7c3762be86c47f9e839704 | [
"MIT"
] | null | null | null | src/arche/__init__.py | victor-torres/arche | 1bc31a1397e15860be7c3762be86c47f9e839704 | [
"MIT"
] | null | null | null | src/arche/__init__.py | victor-torres/arche | 1bc31a1397e15860be7c3762be86c47f9e839704 | [
"MIT"
] | null | null | null | import logging
__version__ = "0.3.5"
SH_URL = "https://app.scrapinghub.com/p" # noqa
from _plotly_future_ import v4 # noqa
from arche.arche import Arche
from arche.readers.items import CollectionItems, JobItems
from arche.rules.duplicates import find_by as find_duplicates_by
from arche.tools.schema import basic_jso... | 27.451613 | 79 | 0.764982 | 112 | 851 | 5.607143 | 0.526786 | 0.057325 | 0.109873 | 0.143312 | 0.124204 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008 | 0.118684 | 851 | 30 | 80 | 28.366667 | 0.829333 | 0.010576 | 0 | 0 | 0 | 0 | 0.231228 | 0.073898 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.36 | 0 | 0.36 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
61c8a2c349d54a39bc0ec564fdf58bda200f09b8 | 756 | py | Python | src/articles/migrations/0002_initial.py | SerhatTeker/django-rest-filtering-tutorial | b02cd9c14cceddbf604cee83026f7134f8109d75 | [
"BSD-3-Clause"
] | null | null | null | src/articles/migrations/0002_initial.py | SerhatTeker/django-rest-filtering-tutorial | b02cd9c14cceddbf604cee83026f7134f8109d75 | [
"BSD-3-Clause"
] | null | null | null | src/articles/migrations/0002_initial.py | SerhatTeker/django-rest-filtering-tutorial | b02cd9c14cceddbf604cee83026f7134f8109d75 | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 3.2.12 on 2022-03-18 19:43
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('regions', '0001_initial'),
('authors', '0001_initial'),
('articles', '0001_initial'),
... | 26.068966 | 126 | 0.600529 | 80 | 756 | 5.5875 | 0.525 | 0.053691 | 0.06264 | 0.098434 | 0.170022 | 0.170022 | 0 | 0 | 0 | 0 | 0 | 0.050542 | 0.267196 | 756 | 28 | 127 | 27 | 0.756318 | 0.060847 | 0 | 0.285714 | 1 | 0 | 0.159605 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.095238 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
61ca1cd70aa4b98a9d1403f01f83be85355de64b | 7,702 | py | Python | models/software_update_status_summary.py | MIchaelMainer/msgraph-v10-models-python | adad66363ebe151be2332f3ef74a664584385748 | [
"MIT"
] | 1 | 2021-03-07T07:02:22.000Z | 2021-03-07T07:02:22.000Z | models/software_update_status_summary.py | MIchaelMainer/msgraph-v10-models-python | adad66363ebe151be2332f3ef74a664584385748 | [
"MIT"
] | null | null | null | models/software_update_status_summary.py | MIchaelMainer/msgraph-v10-models-python | adad66363ebe151be2332f3ef74a664584385748 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
'''
# Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
#
# This file was generated and any changes will be overwritten.
'''
from __future__ import unicode_literals
from ..one_drive_object_bas... | 26.836237 | 151 | 0.596988 | 728 | 7,702 | 6.034341 | 0.120879 | 0.087412 | 0.128386 | 0.051218 | 0.434555 | 0.327339 | 0.307307 | 0.177555 | 0 | 0 | 0 | 0.000194 | 0.331732 | 7,702 | 286 | 152 | 26.93007 | 0.853313 | 0.203064 | 0 | 0.321429 | 0 | 0 | 0.157835 | 0.062795 | 0 | 0 | 0 | 0 | 0 | 1 | 0.221429 | false | 0 | 0.014286 | 0 | 0.457143 | 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 |
61ca784be460e73073441d7dabded101bd49ee9f | 482 | py | Python | bioimg/base/__init__.py | vladchimescu/bioimg-py3 | f40b4747157fb4203ebb9ddebc29f742bc128689 | [
"MIT"
] | null | null | null | bioimg/base/__init__.py | vladchimescu/bioimg-py3 | f40b4747157fb4203ebb9ddebc29f742bc128689 | [
"MIT"
] | null | null | null | bioimg/base/__init__.py | vladchimescu/bioimg-py3 | f40b4747157fb4203ebb9ddebc29f742bc128689 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from .utils import read_image, load_imgstack, load_image_series
from .utils import write_image, write_imgstack
from .plot import plot_channels, combine_channels, show_bbox
from .process import threshold_img
__all__ = ['read_image',
'load_imgstack',
'load_image_series',
... | 30.125 | 63 | 0.655602 | 55 | 482 | 5.309091 | 0.4 | 0.061644 | 0.10274 | 0.143836 | 0.486301 | 0.486301 | 0.246575 | 0 | 0 | 0 | 0 | 0.002786 | 0.255187 | 482 | 15 | 64 | 32.133333 | 0.810585 | 0.043568 | 0 | 0 | 0 | 0 | 0.252174 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4ede3b881bb6004011f704fac00647e5cab40ce8 | 10,800 | py | Python | one_barangay/settings.py | PrynsTag/oneBarangay | 6a8d56003d85b8385e91f5c5d81208619023c1ee | [
"Apache-2.0"
] | null | null | null | one_barangay/settings.py | PrynsTag/oneBarangay | 6a8d56003d85b8385e91f5c5d81208619023c1ee | [
"Apache-2.0"
] | 96 | 2021-08-28T12:37:02.000Z | 2022-03-23T04:25:12.000Z | one_barangay/settings.py | PrynsTag/oneBarangay | 6a8d56003d85b8385e91f5c5d81208619023c1ee | [
"Apache-2.0"
] | null | null | null | """Django settings for one_barangay project.
Generated by 'django-admin startproject' using Django 3.2.6.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
import io... | 31.034483 | 98 | 0.579722 | 1,040 | 10,800 | 5.836538 | 0.421154 | 0.014827 | 0.032619 | 0.037068 | 0.098682 | 0.072323 | 0.060791 | 0.050577 | 0.026359 | 0 | 0 | 0.009027 | 0.292222 | 10,800 | 347 | 99 | 31.123919 | 0.78506 | 0.166389 | 0 | 0.087786 | 1 | 0.007634 | 0.346021 | 0.140976 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.003817 | 0.038168 | 0 | 0.038168 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.