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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
beb16798a75175cfecf30b84eb0cbc6b8b815e76 | 3,453 | py | Python | env/lib/python3.5/site-packages/cachetools/__init__.py | creekhead/RPI_google_asst | 65dc7b08bb8333f8977488f37f7d3ec652489a44 | [
"Apache-2.0"
] | 3 | 2019-04-10T20:36:57.000Z | 2019-04-11T04:10:09.000Z | env/lib/python3.5/site-packages/cachetools/__init__.py | creekhead/RPI_google_asst | 65dc7b08bb8333f8977488f37f7d3ec652489a44 | [
"Apache-2.0"
] | 2 | 2020-08-20T08:15:35.000Z | 2021-04-30T20:42:06.000Z | env/lib/python3.5/site-packages/cachetools/__init__.py | creekhead/RPI_google_asst | 65dc7b08bb8333f8977488f37f7d3ec652489a44 | [
"Apache-2.0"
] | null | null | null | """Extensible memoizing collections and decorators."""
from __future__ import absolute_import
import functools
from . import keys
from .cache import Cache
from .lfu import LFUCache
from .lru import LRUCache
from .rr import RRCache
from .ttl import TTLCache
__all__ = (
'Cache', 'LFUCache', 'LRUCache', 'RRCache',... | 30.557522 | 79 | 0.476687 | 344 | 3,453 | 4.69186 | 0.218023 | 0.099133 | 0.064436 | 0.034696 | 0.628253 | 0.614622 | 0.584882 | 0.584882 | 0.584882 | 0.535316 | 0 | 0.002583 | 0.439328 | 3,453 | 112 | 80 | 30.830357 | 0.831095 | 0.103388 | 0 | 0.688172 | 0 | 0 | 0.022928 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107527 | false | 0.086022 | 0.086022 | 0.010753 | 0.365591 | 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 |
bebcfa7d5f5fae539b9f19d258a3a65ac05121c0 | 2,472 | py | Python | computer_system/graphUtils.py | sharadaryaz/Computer-System-Damage-Potential | abf2e8db3e3a4e8717bad856af8bce305f7fd59a | [
"MIT"
] | null | null | null | computer_system/graphUtils.py | sharadaryaz/Computer-System-Damage-Potential | abf2e8db3e3a4e8717bad856af8bce305f7fd59a | [
"MIT"
] | null | null | null | computer_system/graphUtils.py | sharadaryaz/Computer-System-Damage-Potential | abf2e8db3e3a4e8717bad856af8bce305f7fd59a | [
"MIT"
] | null | null | null | class Object:
index = 0
data = None
def __init__(self, type, *args):
self.index = Object.index
Object.index += 1
self.type = type
if type == 'Data':
self.loc = args[0]
self.data = args[1]
elif type == 'Proc':
self.loc = args[0]
self.data = args[1]
self.clist = args[2]
self.execute = 0
p... | 29.783133 | 122 | 0.651699 | 390 | 2,472 | 4.038462 | 0.184615 | 0.048889 | 0.038095 | 0.030476 | 0.207619 | 0.207619 | 0.154921 | 0.154921 | 0.090159 | 0.090159 | 0 | 0.014911 | 0.186084 | 2,472 | 82 | 123 | 30.146341 | 0.767893 | 0 | 0 | 0.131579 | 0 | 0.013158 | 0.146559 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.223684 | false | 0 | 0 | 0.065789 | 0.394737 | 0.078947 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bebd7eaf321f315730b7814d7fcb47518cd1df0a | 33,589 | py | Python | python-shell/src/test/test_gaffer_functions.py | j8934893/gaffer-tools | 26a3c84f1ba0c620ca83d9b0adc8c06fa7b661c9 | [
"Apache-2.0"
] | 49 | 2016-10-13T11:32:12.000Z | 2021-12-04T03:54:36.000Z | python-shell/src/test/test_gaffer_functions.py | j8934893/gaffer-tools | 26a3c84f1ba0c620ca83d9b0adc8c06fa7b661c9 | [
"Apache-2.0"
] | 571 | 2016-10-11T13:30:10.000Z | 2022-03-25T17:03:39.000Z | python-shell/src/test/test_gaffer_functions.py | j8934893/gaffer-tools | 26a3c84f1ba0c620ca83d9b0adc8c06fa7b661c9 | [
"Apache-2.0"
] | 43 | 2017-01-16T23:49:04.000Z | 2021-11-26T12:13:53.000Z | #
# Copyright 2016-2019 Crown Copyright
#
# Licensed under the Apache License, Version 2.0 (the 'License');
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | 28.856529 | 118 | 0.365358 | 2,124 | 33,589 | 5.751883 | 0.158192 | 0.053614 | 0.096505 | 0.148973 | 0.659655 | 0.641974 | 0.610625 | 0.479414 | 0.382991 | 0.309569 | 0 | 0.013907 | 0.501206 | 33,589 | 1,163 | 119 | 28.881341 | 0.715292 | 0.016583 | 0 | 0.268939 | 0 | 0.001894 | 0.055364 | 0.007886 | 0 | 0 | 0 | 0 | 0.001894 | 1 | 0.001894 | false | 0 | 0.005682 | 0 | 0.011364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bebf4a80201c62fdc75678a8a203378f5e075ab1 | 1,155 | py | Python | src/python/WMCore/WMBS/MySQL/Workflow/FailedJobs.py | khurtado/WMCore | f74e252412e49189a92962945a94f93bec81cd1e | [
"Apache-2.0"
] | 21 | 2015-11-19T16:18:45.000Z | 2021-12-02T18:20:39.000Z | src/python/WMCore/WMBS/MySQL/Workflow/FailedJobs.py | khurtado/WMCore | f74e252412e49189a92962945a94f93bec81cd1e | [
"Apache-2.0"
] | 5,671 | 2015-01-06T14:38:52.000Z | 2022-03-31T22:11:14.000Z | src/python/WMCore/WMBS/MySQL/Workflow/FailedJobs.py | khurtado/WMCore | f74e252412e49189a92962945a94f93bec81cd1e | [
"Apache-2.0"
] | 67 | 2015-01-21T15:55:38.000Z | 2022-02-03T19:53:13.000Z | #!/usr/bin/env python
"""
_FailedJobs_
MySQL implementation of Workflow.FailedJobs
"""
from WMCore.Database.DBFormatter import DBFormatter
class FailedJobs(DBFormatter):
sql = """SELECT wmbs_users.cert_dn as owner, wmbs_workflow.task, wmbs_job.id
FROM wmbs_workflow
INNER JOI... | 35 | 87 | 0.625108 | 134 | 1,155 | 5.171642 | 0.402985 | 0.090909 | 0.08658 | 0.073593 | 0.05772 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001253 | 0.309091 | 1,155 | 32 | 88 | 36.09375 | 0.867168 | 0.067532 | 0 | 0 | 0 | 0 | 0.726848 | 0.048644 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.05 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bec65332609d49bcedccbb4344171b9b49370934 | 7,974 | py | Python | Plugins/ChatLikeCMD/ChatLikeCMD.py | Psiphonc/EasierLife | ad9143a6362d70489ef4b36651ce58a3cc1d0fa3 | [
"MIT"
] | 203 | 2016-04-02T07:43:47.000Z | 2022-01-05T11:41:03.000Z | Plugins/ChatLikeCMD/ChatLikeCMD.py | Psiphonc/EasierLife | ad9143a6362d70489ef4b36651ce58a3cc1d0fa3 | [
"MIT"
] | 4 | 2016-05-13T11:20:09.000Z | 2018-09-23T01:12:07.000Z | Plugins/ChatLikeCMD/ChatLikeCMD.py | Psiphonc/EasierLife | ad9143a6362d70489ef4b36651ce58a3cc1d0fa3 | [
"MIT"
] | 169 | 2016-04-26T03:20:04.000Z | 2022-03-09T18:36:19.000Z | #coding=utf8
import thread, time, sys, os, platform
try:
import termios, tty
termios.tcgetattr, termios.tcsetattr
import threading
OS = 'Linux'
except (ImportError, AttributeError):
try:
import msvcrt
OS = 'Windows'
except ImportError:
raise Exception('Mac i... | 34.820961 | 115 | 0.467645 | 870 | 7,974 | 4.204598 | 0.182759 | 0.061509 | 0.06889 | 0.028704 | 0.278841 | 0.199563 | 0.156096 | 0.110443 | 0.110443 | 0.083106 | 0 | 0.023728 | 0.413343 | 7,974 | 228 | 116 | 34.973684 | 0.75823 | 0.013419 | 0 | 0.390909 | 0 | 0 | 0.031336 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.004545 | 0.027273 | null | null | 0.063636 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
bec8afc4c03d381f26489c3def87b596b6dfc185 | 10,399 | py | Python | dianhua/bmp_api/bmp_lib/BillStaticHandler.py | Svolcano/python_exercise | a50e05891cc7f1fbb40ebcae324b09b6a14473d2 | [
"MIT"
] | 6 | 2015-07-09T08:47:08.000Z | 2020-05-16T10:47:31.000Z | dianhua/bmp_api/bmp_lib/BillStaticHandler.py | Svolcano/python_exercise | a50e05891cc7f1fbb40ebcae324b09b6a14473d2 | [
"MIT"
] | 7 | 2019-03-27T04:13:12.000Z | 2022-03-02T14:54:56.000Z | dianhua/bmp_api/bmp_lib/BillStaticHandler.py | Svolcano/python_exercise | a50e05891cc7f1fbb40ebcae324b09b6a14473d2 | [
"MIT"
] | 2 | 2019-06-21T06:46:28.000Z | 2019-12-23T09:31:09.000Z | # _*_ coding:utf-8 _*_
import tornado.web
import ujson
import pymongo
import datetime
import logging
from Constant import ConstantVar, SUtils
logger = logging.getLogger()
class BillStaticHandler(tornado.web.RequestHandler):
"""
daily report handler
has get and post method
same logic ... | 42.971074 | 101 | 0.520242 | 1,258 | 10,399 | 4.015898 | 0.155008 | 0.030087 | 0.031671 | 0.020586 | 0.480008 | 0.423991 | 0.393903 | 0.306611 | 0.281671 | 0.225653 | 0 | 0.007374 | 0.374074 | 10,399 | 241 | 102 | 43.149378 | 0.768782 | 0.047408 | 0 | 0.331461 | 0 | 0 | 0.103726 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.033708 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fe24f6888e8fdc0d8d875f0e7d5105d887d1e9a6 | 1,244 | py | Python | tests/test_main.py | ymoch/csv2sql | 22e20c1ccb7a5b21bacec6bd94b72d3c2e06bb4a | [
"MIT"
] | 7 | 2017-03-07T03:05:12.000Z | 2021-03-19T17:12:46.000Z | tests/test_main.py | ymoch/csv2sql | 22e20c1ccb7a5b21bacec6bd94b72d3c2e06bb4a | [
"MIT"
] | 15 | 2017-02-06T17:11:01.000Z | 2018-08-18T02:55:17.000Z | tests/test_main.py | ymoch/csv2sql | 22e20c1ccb7a5b21bacec6bd94b72d3c2e06bb4a | [
"MIT"
] | 5 | 2017-02-05T18:20:00.000Z | 2021-11-14T20:20:42.000Z | from unittest import TestCase
from nose.tools import ok_, eq_, raises
from nose_parameterized import parameterized
from csv2sql.main import parse_args
class ParseArgs(TestCase):
@parameterized.expand([
('all',),
('schema',),
('data',),
])
def test_query_dumper(self, command_name)... | 31.1 | 60 | 0.617363 | 138 | 1,244 | 5.282609 | 0.376812 | 0.148148 | 0.246914 | 0.078189 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003135 | 0.230707 | 1,244 | 39 | 61 | 31.897436 | 0.758621 | 0 | 0 | 0.117647 | 0 | 0 | 0.151125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.117647 | 0 | 0.205882 | 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 |
fe38ab9d625ef8ed7d50572434d80cb23c9d6b5e | 651 | pyde | Python | esha_sketch/esha_sketch.pyde | alechapp/Processingcodes | 883c4b2b98382ff2772962b141beea0d2df0397b | [
"MIT"
] | null | null | null | esha_sketch/esha_sketch.pyde | alechapp/Processingcodes | 883c4b2b98382ff2772962b141beea0d2df0397b | [
"MIT"
] | null | null | null | esha_sketch/esha_sketch.pyde | alechapp/Processingcodes | 883c4b2b98382ff2772962b141beea0d2df0397b | [
"MIT"
] | null | null | null | delta = 5
x=450
y=450
def setup():
size(900,900)
background(128)
def draw():
global delta
global x, y
strokeWeight(5)
px = x
py = y
line(x,y,x,y)
if keyPressed :
if keyCode == UP :
y = y - delta
if keyCode == DOWN :
y = y + del... | 15.139535 | 28 | 0.382488 | 86 | 651 | 2.895349 | 0.313953 | 0.032129 | 0.168675 | 0.072289 | 0.128514 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113208 | 0.511521 | 651 | 42 | 29 | 15.5 | 0.669811 | 0 | 0 | 0.060606 | 0 | 0 | 0.001536 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0 | 0 | 0.060606 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fe39ae4976e7a4228481ce0780dab2f34f5843e8 | 1,259 | py | Python | rust/test/public-charremove/driver.py | Rushnett/autograde-templates | f3455c61c4092b00076707f6d5f811e0b545320c | [
"MIT"
] | null | null | null | rust/test/public-charremove/driver.py | Rushnett/autograde-templates | f3455c61c4092b00076707f6d5f811e0b545320c | [
"MIT"
] | null | null | null | rust/test/public-charremove/driver.py | Rushnett/autograde-templates | f3455c61c4092b00076707f6d5f811e0b545320c | [
"MIT"
] | null | null | null | #!/usr/bin/python3
#####################################################
############# LEAVE CODE BELOW ALONE #############
# Include base directory into path
import os, sys
sys.path.append(os.path.abspath(os.path.join(os.path.dirname( __file__ ), '..', '..')))
# Import tester
from tester import failtest, passtest,... | 24.211538 | 87 | 0.573471 | 141 | 1,259 | 5.049645 | 0.567376 | 0.025281 | 0.02809 | 0.039326 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006358 | 0.125496 | 1,259 | 51 | 88 | 24.686275 | 0.640327 | 0.207307 | 0 | 0.08 | 0 | 0 | 0.161842 | 0 | 0 | 0 | 0 | 0 | 0.08 | 1 | 0 | false | 0.08 | 0.12 | 0 | 0.12 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
fe3cba113af9d1a7a4e2296d37d0014b25bfee35 | 3,208 | py | Python | tests/test_xdg.py | darkfeline/mir.xdg | fda188f9c1df059670003c9565610d830c39407d | [
"Apache-2.0"
] | null | null | null | tests/test_xdg.py | darkfeline/mir.xdg | fda188f9c1df059670003c9565610d830c39407d | [
"Apache-2.0"
] | null | null | null | tests/test_xdg.py | darkfeline/mir.xdg | fda188f9c1df059670003c9565610d830c39407d | [
"Apache-2.0"
] | null | null | null | # Copyright (C) 2017 Allen Li
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | 30.552381 | 75 | 0.640586 | 436 | 3,208 | 4.497706 | 0.233945 | 0.078021 | 0.107088 | 0.135645 | 0.626721 | 0.487506 | 0.421214 | 0.395716 | 0.390617 | 0.369199 | 0 | 0.004691 | 0.202618 | 3,208 | 104 | 76 | 30.846154 | 0.761923 | 0.171135 | 0 | 0.237288 | 0 | 0 | 0.192439 | 0.018147 | 0 | 0 | 0 | 0 | 0.271186 | 1 | 0.254237 | false | 0 | 0.050847 | 0 | 0.305085 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fe3ef34c3dbf837504f217a97da3594ba277d929 | 9,366 | py | Python | settings.py | pirati-cz/helios-server | 7d37ce7db21dfe998e4b5d5ac25901cb8c6a90d0 | [
"Apache-2.0"
] | 2 | 2017-05-15T09:57:51.000Z | 2018-10-02T19:58:54.000Z | settings.py | pirati-cz/helios-server | 7d37ce7db21dfe998e4b5d5ac25901cb8c6a90d0 | [
"Apache-2.0"
] | 6 | 2016-03-31T16:43:45.000Z | 2018-01-06T00:44:08.000Z | settings.py | pirati-cz/helios-server | 7d37ce7db21dfe998e4b5d5ac25901cb8c6a90d0 | [
"Apache-2.0"
] | 6 | 2016-02-23T10:44:42.000Z | 2020-01-12T12:17:29.000Z |
import os, json
# a massive hack to see if we're testing, in which case we use different settings
import sys
TESTING = 'test' in sys.argv
# go through environment variables and override them
def get_from_env(var, default):
if not TESTING and os.environ.has_key(var):
return os.environ[var]
else:
... | 32.520833 | 147 | 0.744074 | 1,350 | 9,366 | 4.896296 | 0.316296 | 0.044478 | 0.06354 | 0.013616 | 0.10938 | 0.045688 | 0.038124 | 0.029955 | 0 | 0 | 0 | 0.007325 | 0.139974 | 9,366 | 287 | 148 | 32.634146 | 0.813284 | 0.354153 | 0 | 0 | 0 | 0 | 0.338087 | 0.143624 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.014184 | 0.035461 | null | null | 0.007092 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
fe41f56502cd995c62d39804309d5322b97a0004 | 2,485 | py | Python | examples/dfa/v1_20/get_user_roles.py | dietrichc/streamline-ppc-reports | 256f79246aba3c2cf8f792d87a066391a2f471e0 | [
"Apache-2.0"
] | 1 | 2015-08-12T14:47:40.000Z | 2015-08-12T14:47:40.000Z | examples/dfa/v1_20/get_user_roles.py | dietrichc/streamline-ppc-reports | 256f79246aba3c2cf8f792d87a066391a2f471e0 | [
"Apache-2.0"
] | 1 | 2020-07-24T15:10:10.000Z | 2020-07-24T15:10:10.000Z | examples/dfa/v1_20/get_user_roles.py | coxmediagroup/googleads-python-lib | f85d5d8ab771e93b03b616ef65e2d3082aeef484 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
#
# Copyright 2014 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | 35 | 80 | 0.701408 | 328 | 2,485 | 5.219512 | 0.47561 | 0.074766 | 0.024533 | 0.038551 | 0.028037 | 0.028037 | 0 | 0 | 0 | 0 | 0 | 0.007564 | 0.202012 | 2,485 | 70 | 81 | 35.5 | 0.855774 | 0.351308 | 0 | 0.074074 | 0 | 0 | 0.356966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.037037 | null | null | 0.185185 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
fe49c242c37398e536cac6a1880218487b07bad5 | 2,473 | py | Python | scrapper.py | ridlees/knihobotbot | aa12d94b60a6b368f5baa64509f9db39c82b77df | [
"MIT"
] | null | null | null | scrapper.py | ridlees/knihobotbot | aa12d94b60a6b368f5baa64509f9db39c82b77df | [
"MIT"
] | null | null | null | scrapper.py | ridlees/knihobotbot | aa12d94b60a6b368f5baa64509f9db39c82b77df | [
"MIT"
] | null | null | null | from tkinter import COMMAND
import requests as r
from bs4 import BeautifulSoup as bs
import UserAgents as ua
import random
baseURL = "https://knihobot.cz"
googleAnal = "?utm_source=knihobotbot&utm_medium=twitter"
def createUserAgents():
return f"User-Agent : ${ua.UserAgents[random.randint(0,len(ua.UserAgents)-1... | 27.786517 | 92 | 0.62596 | 287 | 2,473 | 5.358885 | 0.372822 | 0.042263 | 0.048765 | 0.042913 | 0.1671 | 0.1671 | 0.084525 | 0.084525 | 0 | 0 | 0 | 0.010741 | 0.247068 | 2,473 | 88 | 93 | 28.102273 | 0.815252 | 0.00647 | 0 | 0.166667 | 0 | 0.013889 | 0.168974 | 0.039902 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.097222 | 0.083333 | 0.513889 | 0.013889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fe5494d323fc0c9807b33560e5cc57c18c2d196c | 40,859 | py | Python | blender-2.49/iqm_export.py | razor85/iqm | 777d946f6ba65fa93874d43c2fd728aac6c70b2d | [
"MIT"
] | null | null | null | blender-2.49/iqm_export.py | razor85/iqm | 777d946f6ba65fa93874d43c2fd728aac6c70b2d | [
"MIT"
] | null | null | null | blender-2.49/iqm_export.py | razor85/iqm | 777d946f6ba65fa93874d43c2fd728aac6c70b2d | [
"MIT"
] | 1 | 2020-07-15T04:55:13.000Z | 2020-07-15T04:55:13.000Z | #!BPY
"""
Name: 'Inter-Quake Model'
Blender: 249
Group: 'Export'
Tip: 'Export Inter-Quake Model files'
"""
import struct, math
import Blender
import BPyArmature
IQM_POSITION = 0
IQM_TEXCOORD = 1
IQM_NORMAL = 2
IQM_TANGENT = 3
IQM_BLENDINDEXES = 4
IQM_BLENDWEIGHTS = 5
IQM_COLOR ... | 42.166151 | 396 | 0.532416 | 4,748 | 40,859 | 4.532645 | 0.105308 | 0.00381 | 0.007806 | 0.008178 | 0.278379 | 0.257284 | 0.222852 | 0.186562 | 0.178663 | 0.149947 | 0 | 0.032761 | 0.348565 | 40,859 | 968 | 397 | 42.209711 | 0.775782 | 0.012922 | 0 | 0.257803 | 0 | 0.003468 | 0.033885 | 0 | 0 | 0 | 0.004433 | 0 | 0 | 0 | null | null | 0 | 0.003468 | null | null | 0.012717 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
fe54b1848c96f7a39acc2c771527437f9165c652 | 149 | py | Python | boj/bruteforce/boj_1748.py | ruslanlvivsky/python-algorithm | 2b49bed33cd0e95b8a1e758008191f4392b3f667 | [
"MIT"
] | 3 | 2021-07-18T14:40:24.000Z | 2021-08-14T18:08:13.000Z | boj/bruteforce/boj_1748.py | jinsuSang/python-algorithm | 524849a0a7e71034d329fef63c4f384930334177 | [
"MIT"
] | null | null | null | boj/bruteforce/boj_1748.py | jinsuSang/python-algorithm | 524849a0a7e71034d329fef63c4f384930334177 | [
"MIT"
] | null | null | null | import sys
N = int(sys.stdin.readline().strip())
result = 0
i = 1
while i <= N:
result += N - i + 1
i *= 10
sys.stdout.write(str(result))
| 12.416667 | 37 | 0.57047 | 26 | 149 | 3.269231 | 0.615385 | 0.047059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044643 | 0.248322 | 149 | 11 | 38 | 13.545455 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fe591db1d43f52cf33f8c1f566df9f79b89f015e | 1,168 | py | Python | var/spack/repos/builtin/packages/mixcr/package.py | jeanbez/spack | f4e51ce8f366c85bf5aa0eafe078677b42dae1ba | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | var/spack/repos/builtin/packages/mixcr/package.py | jeanbez/spack | f4e51ce8f366c85bf5aa0eafe078677b42dae1ba | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 8 | 2021-11-09T20:28:40.000Z | 2022-03-15T03:26:33.000Z | var/spack/repos/builtin/packages/mixcr/package.py | jeanbez/spack | f4e51ce8f366c85bf5aa0eafe078677b42dae1ba | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 2 | 2019-02-08T20:37:20.000Z | 2019-03-31T15:19:26.000Z | # Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import *
class Mixcr(Package):
"""MiXCR is a universal framework that processes big immunome data... | 38.933333 | 95 | 0.743151 | 153 | 1,168 | 5.640523 | 0.777778 | 0.006952 | 0.006952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063655 | 0.166096 | 1,168 | 29 | 96 | 40.275862 | 0.822382 | 0.534247 | 0 | 0 | 0 | 0.1 | 0.407045 | 0.125245 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
fe61fbb2345799327425e47f9b70a0cde619673c | 5,750 | py | Python | lib/kb_stringtie/kb_stringtieImpl.py | ugswork/kb_stringtie | 1272ae44149baab7b4aa640abaf166e8e584bb56 | [
"MIT"
] | null | null | null | lib/kb_stringtie/kb_stringtieImpl.py | ugswork/kb_stringtie | 1272ae44149baab7b4aa640abaf166e8e584bb56 | [
"MIT"
] | null | null | null | lib/kb_stringtie/kb_stringtieImpl.py | ugswork/kb_stringtie | 1272ae44149baab7b4aa640abaf166e8e584bb56 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#BEGIN_HEADER
import os
import json
from kb_stringtie.Utils.StringTieUtil import StringTieUtil
#END_HEADER
class kb_stringtie:
'''
Module Name:
kb_stringtie
Module Description:
A KBase module: kb_stringtie
'''
######## WARNING FOR GEVENT USERS ####### noqa
# ... | 47.131148 | 78 | 0.657565 | 704 | 5,750 | 5.194602 | 0.34517 | 0.029532 | 0.028712 | 0.013126 | 0.160788 | 0.124145 | 0.124145 | 0.124145 | 0.124145 | 0.124145 | 0 | 0.009194 | 0.262261 | 5,750 | 121 | 79 | 47.520661 | 0.8529 | 0.113391 | 0 | 0.064516 | 0 | 0 | 0.207031 | 0.048828 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.032258 | 0.096774 | null | null | 0.064516 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
fe6fb3a00abd4374202995aef97326cb6f62619b | 1,900 | py | Python | census-us/python-connectors/census_metadata/connector.py | acloudfrontier/dataiku-contrib | 726ed46492cd522c50f75b687f87a1272ea946d8 | [
"Apache-2.0"
] | 1 | 2020-10-11T14:53:53.000Z | 2020-10-11T14:53:53.000Z | census-us/python-connectors/census_metadata/connector.py | acloudfrontier/dataiku-contrib | 726ed46492cd522c50f75b687f87a1272ea946d8 | [
"Apache-2.0"
] | null | null | null | census-us/python-connectors/census_metadata/connector.py | acloudfrontier/dataiku-contrib | 726ed46492cd522c50f75b687f87a1272ea946d8 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from dataiku.connector import Connector
import dataiku
from dataiku import pandasutils as pdu
import pandas as pd
import numpy as np
import os
import census_resources
import common
import census_metadata
class USCensusConnector(Connector):
def __init__(self, config, plugin_config):
... | 25 | 96 | 0.59 | 219 | 1,900 | 4.817352 | 0.447489 | 0.03981 | 0.041706 | 0.068246 | 0.185782 | 0.117536 | 0.054976 | 0 | 0 | 0 | 0 | 0.005435 | 0.322105 | 1,900 | 75 | 97 | 25.333333 | 0.813665 | 0.054211 | 0 | 0.04878 | 0 | 0 | 0.065848 | 0.011719 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.219512 | null | null | 0.04878 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
fe6fe3b392ef39716b48454562ee477b2cefea7c | 4,140 | py | Python | tests/python/doufo/tensor/test_tensor.py | Hong-Xiang/doufo | 3d375fef30670597768a6eef809b75b4b1b5a3fd | [
"Apache-2.0"
] | 3 | 2018-08-05T07:16:34.000Z | 2018-08-10T05:28:24.000Z | tests/python/doufo/tensor/test_tensor.py | tech-pi/doufo | 3d375fef30670597768a6eef809b75b4b1b5a3fd | [
"Apache-2.0"
] | 10 | 2018-09-16T15:44:19.000Z | 2018-10-06T10:39:59.000Z | tests/python/doufo/tensor/test_tensor.py | tech-pi/doufo | 3d375fef30670597768a6eef809b75b4b1b5a3fd | [
"Apache-2.0"
] | 1 | 2018-08-04T08:13:50.000Z | 2018-08-04T08:13:50.000Z | import pytest
from doufo.tensor import Tensor, all_close
import numpy as np
from doufo.tensor.unary import *
from doufo.tensor.construct import *
from doufo.tensor.unary_reduce import *
from doufo.tensor.unary_with_args import *
import tensorflow as tf
def test_add():
a, b = Tensor([1, 2]), Tensor([3, 4])
c =... | 22.622951 | 98 | 0.549517 | 709 | 4,140 | 3.088858 | 0.148096 | 0.049315 | 0.105936 | 0.040183 | 0.422374 | 0.299543 | 0.223288 | 0.181279 | 0.181279 | 0.181279 | 0 | 0.09452 | 0.215459 | 4,140 | 182 | 99 | 22.747253 | 0.579741 | 0.020531 | 0 | 0.090909 | 0 | 0 | 0.004935 | 0 | 0 | 0 | 0 | 0.005495 | 0.390909 | 1 | 0.290909 | false | 0.009091 | 0.081818 | 0.009091 | 0.381818 | 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 |
fe7295f3fce340a28b89c0e7967a2cee7a61bb7e | 1,017 | py | Python | tools/sparse_matrix_gen.py | AlexP11223/HadoopMapReduceMatrixMult | aed8f6ee4f0b8ea8556ea702e2520d524e21afcc | [
"MIT"
] | 1 | 2021-05-23T11:08:49.000Z | 2021-05-23T11:08:49.000Z | tools/sparse_matrix_gen.py | AlexP11223/HadoopMapReduceMatrixMult | aed8f6ee4f0b8ea8556ea702e2520d524e21afcc | [
"MIT"
] | null | null | null | tools/sparse_matrix_gen.py | AlexP11223/HadoopMapReduceMatrixMult | aed8f6ee4f0b8ea8556ea702e2520d524e21afcc | [
"MIT"
] | null | null | null | # https://docs.scipy.org/doc/scipy/reference/generated/scipy.sparse.random.html
from sys import argv
from scipy.sparse import random
from scipy import stats
import numpy as np
class CustomRandomState(object):
def randint(self, k):
i = np.random.randint(k)
return i - i % 2
if len(arg... | 26.763158 | 106 | 0.630285 | 158 | 1,017 | 3.968354 | 0.474684 | 0.051037 | 0.028708 | 0.031898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02583 | 0.20059 | 1,017 | 37 | 107 | 27.486486 | 0.745387 | 0.075713 | 0 | 0 | 1 | 0 | 0.067703 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.148148 | 0 | 0.259259 | 0.074074 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fe75a1b5cc4d7c6beba9388eada74a29fb898424 | 1,470 | py | Python | setup.py | SmBe19/praw-OAuth2Util | ca0a2d4d7eefcc681aac92c9cd4b83cd9ea6c5fe | [
"MIT"
] | 53 | 2015-07-02T23:45:50.000Z | 2019-06-20T09:18:09.000Z | setup.py | SmBe19/praw-OAuth2Util | ca0a2d4d7eefcc681aac92c9cd4b83cd9ea6c5fe | [
"MIT"
] | 14 | 2015-06-28T12:50:52.000Z | 2017-02-19T18:45:28.000Z | setup.py | SmBe19/praw-OAuth2Util | ca0a2d4d7eefcc681aac92c9cd4b83cd9ea6c5fe | [
"MIT"
] | 23 | 2015-06-26T06:52:39.000Z | 2018-10-06T21:39:49.000Z | #!/usr/bin/env python
from setuptools import setup, find_packages
import os
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
with open('requirements.txt') as f:
requirements = f.read().splitlines()
version = '0.3.5'
setup(
name='praw-oauth2util',
version=version,
... | 31.956522 | 71 | 0.62517 | 156 | 1,470 | 5.814103 | 0.564103 | 0.146637 | 0.192944 | 0.14333 | 0.059537 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021183 | 0.229252 | 1,470 | 45 | 72 | 32.666667 | 0.779347 | 0.013605 | 0 | 0 | 0 | 0 | 0.513458 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0 | 0.051282 | 0.025641 | 0.102564 | 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 |
fe7932f29d3ddcf6a85dad8cd6d1a0c1b4a0ad4b | 670 | py | Python | neo_autoscript/config.py | jakovsch/NEO-Autoscript | 046f1c87595051dabd320b457aa010871eb96f02 | [
"MIT"
] | null | null | null | neo_autoscript/config.py | jakovsch/NEO-Autoscript | 046f1c87595051dabd320b457aa010871eb96f02 | [
"MIT"
] | null | null | null | neo_autoscript/config.py | jakovsch/NEO-Autoscript | 046f1c87595051dabd320b457aa010871eb96f02 | [
"MIT"
] | null | null | null | from enum import Enum
NEOCONFIRM_URL = 'https://www.minorplanetcenter.net/iau/NEO/toconfirm_tabular.html'
NEOCONFIRM_CGI = 'https://cgi.minorplanetcenter.net/cgi-bin/confirmeph2.cgi'
DATA_FILE = './output/NEO_data.pkl'
DATA_DIR = './output'
class EphemInterval(int, Enum):
MINUTES_60 = 0
MINUTES_30 = 1
... | 21.612903 | 83 | 0.69403 | 92 | 670 | 4.728261 | 0.673913 | 0.091954 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044944 | 0.202985 | 670 | 30 | 84 | 22.333333 | 0.769663 | 0 | 0 | 0 | 0 | 0 | 0.228358 | 0.031343 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.045455 | 0 | 0.772727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
fe816aabfb8aad4bcc9df26c6b0c6b055737417a | 2,753 | py | Python | xml_filter.py | wrightaprilm/plaus | ace7e008fc76f83d75e2219a2cb9ed2ddf776775 | [
"MIT"
] | null | null | null | xml_filter.py | wrightaprilm/plaus | ace7e008fc76f83d75e2219a2cb9ed2ddf776775 | [
"MIT"
] | null | null | null | xml_filter.py | wrightaprilm/plaus | ace7e008fc76f83d75e2219a2cb9ed2ddf776775 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#Small script to filter xml files [metadata] to increase independance of data#
# #
#call as: python xml_filter.py dir_of_xml directory_for_parents dir_for_sibs #
# Example: python choose_nexus.py ./my_xmlfiles ./parents ./siblings #
# Copyright ... | 45.131148 | 90 | 0.534326 | 317 | 2,753 | 4.564669 | 0.457413 | 0.049758 | 0.022115 | 0.030408 | 0.109191 | 0.073255 | 0.034554 | 0 | 0 | 0 | 0 | 0.005562 | 0.346894 | 2,753 | 60 | 91 | 45.883333 | 0.799221 | 0.519797 | 0 | 0.142857 | 0 | 0 | 0.049356 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.035714 | 0.142857 | null | null | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fe887b860e2b3966d95a2d3593ce84c12a075d62 | 3,459 | py | Python | data_preprocessing/04generatePersonalXmlObj.py | koonyook/muscle-from-kinematic | ea96e82251e3028f3e03cca44d57065236e6ca00 | [
"MIT"
] | null | null | null | data_preprocessing/04generatePersonalXmlObj.py | koonyook/muscle-from-kinematic | ea96e82251e3028f3e03cca44d57065236e6ca00 | [
"MIT"
] | null | null | null | data_preprocessing/04generatePersonalXmlObj.py | koonyook/muscle-from-kinematic | ea96e82251e3028f3e03cca44d57065236e6ca00 | [
"MIT"
] | null | null | null | #with the same input as 04displayScaledModel.py
#output files to generate
#1.human.xml
#2.muscle.xml
#3.all the bone.obj
#for xml, find library that can modify and save
#for obj, find library that can modify and save (without changing order)
#have to also think about mass distribution too
import numpy as np
from xm... | 31.445455 | 89 | 0.714079 | 406 | 3,459 | 6.064039 | 0.357143 | 0.006499 | 0.004874 | 0.012998 | 0.050366 | 0.050366 | 0.025183 | 0 | 0 | 0 | 0 | 0.01257 | 0.126048 | 3,459 | 110 | 90 | 31.445455 | 0.801852 | 0.206996 | 0 | 0 | 1 | 0 | 0.120227 | 0.008696 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.016667 | 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 |
fe94f60cf669624ff8451fd79617ff75da16bb78 | 2,847 | py | Python | scripts/create_release_post.py | runtime1point0/hawkthorne-journey | 4d5c6c3d9cc57f53d594dbbdb1e72455c290d688 | [
"MIT"
] | 1 | 2016-11-05T16:34:22.000Z | 2016-11-05T16:34:22.000Z | scripts/create_release_post.py | runtime1point0/hawkthorne-journey | 4d5c6c3d9cc57f53d594dbbdb1e72455c290d688 | [
"MIT"
] | null | null | null | scripts/create_release_post.py | runtime1point0/hawkthorne-journey | 4d5c6c3d9cc57f53d594dbbdb1e72455c290d688 | [
"MIT"
] | null | null | null | import os
from datetime import datetime
import argparse
import requests
import jinja2
import json
import time
import tweepy
import subprocess
class Reddit(object):
def __init__(self, user_agent):
self.user_agent = user_agent
def _authenticate(self, auth):
username, password = auth
pa... | 28.47 | 82 | 0.672638 | 355 | 2,847 | 5.202817 | 0.349296 | 0.029778 | 0.040606 | 0.048728 | 0.216567 | 0.114781 | 0.084461 | 0.084461 | 0.084461 | 0 | 0 | 0.009162 | 0.194942 | 2,847 | 99 | 83 | 28.757576 | 0.796684 | 0.01686 | 0 | 0.044776 | 0 | 0 | 0.241794 | 0.044128 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.044776 | 0.134328 | null | null | 0.014925 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
fe97505c1ebe9489af1dbe49c1bc6d18ea76c0a6 | 2,297 | py | Python | blazar-3.0.0/blazar/api/v2/app.py | scottwedge/OpenStack-Stein | 7077d1f602031dace92916f14e36b124f474de15 | [
"Apache-2.0"
] | 24 | 2015-10-18T02:53:07.000Z | 2022-01-04T12:01:07.000Z | blazar-3.0.0/blazar/api/v2/app.py | scottwedge/OpenStack-Stein | 7077d1f602031dace92916f14e36b124f474de15 | [
"Apache-2.0"
] | 19 | 2017-05-23T21:34:09.000Z | 2022-02-21T19:15:29.000Z | blazar-3.0.0/blazar/api/v2/app.py | scottwedge/OpenStack-Stein | 7077d1f602031dace92916f14e36b124f474de15 | [
"Apache-2.0"
] | 22 | 2015-10-30T07:42:40.000Z | 2021-05-31T14:33:38.000Z | # Copyright (c) 2014 Bull.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, sof... | 28.358025 | 76 | 0.667828 | 301 | 2,297 | 4.976744 | 0.475083 | 0.040053 | 0.022029 | 0.021362 | 0.028037 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006336 | 0.244232 | 2,297 | 80 | 77 | 28.7125 | 0.856567 | 0.370048 | 0 | 0.044444 | 0 | 0 | 0.126227 | 0.021038 | 0 | 0 | 0 | 0.0125 | 0 | 1 | 0.044444 | false | 0 | 0.155556 | 0 | 0.244444 | 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 |
fe9835f3bf401773b545420dd8f05374044d2bc1 | 1,567 | py | Python | third_party/webrtc/src/chromium/src/infra/scripts/runtest_wrapper.py | bopopescu/webrtc-streaming-node | 727a441204344ff596401b0253caac372b714d91 | [
"MIT"
] | 8 | 2016-02-08T11:59:31.000Z | 2020-05-31T15:19:54.000Z | third_party/webrtc/src/chromium/src/infra/scripts/runtest_wrapper.py | bopopescu/webrtc-streaming-node | 727a441204344ff596401b0253caac372b714d91 | [
"MIT"
] | 1 | 2021-05-05T11:11:31.000Z | 2021-05-05T11:11:31.000Z | third_party/webrtc/src/chromium/src/infra/scripts/runtest_wrapper.py | bopopescu/webrtc-streaming-node | 727a441204344ff596401b0253caac372b714d91 | [
"MIT"
] | 7 | 2016-02-09T09:28:14.000Z | 2020-07-25T19:03:36.000Z | #!/usr/bin/env python
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Wrapper for runtest.py, makes it possible to control src-side
which file gets used and test the changes on trybots before landing.""... | 31.34 | 80 | 0.700064 | 225 | 1,567 | 4.777778 | 0.528889 | 0.03907 | 0.037209 | 0.048372 | 0.203721 | 0.203721 | 0.167442 | 0.137674 | 0.137674 | 0.093023 | 0 | 0.003855 | 0.172304 | 1,567 | 49 | 81 | 31.979592 | 0.824981 | 0.352904 | 0 | 0.107143 | 0 | 0 | 0.192807 | 0 | 0 | 0 | 0 | 0.020408 | 0 | 1 | 0.035714 | false | 0.035714 | 0.178571 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fe9ce4dd4995ae7e9ec77fd13f66734b2bee08e9 | 1,282 | py | Python | tests/util.py | KaKkouo/sphindexer | d6540e0d1cee463ceb8f32a7d790884a9af8ab80 | [
"BSD-2-Clause"
] | null | null | null | tests/util.py | KaKkouo/sphindexer | d6540e0d1cee463ceb8f32a7d790884a9af8ab80 | [
"BSD-2-Clause"
] | 6 | 2021-10-18T21:53:45.000Z | 2022-02-23T20:10:17.000Z | tests/util.py | KaKkouo/sphindexer | d6540e0d1cee463ceb8f32a7d790884a9af8ab80 | [
"BSD-2-Clause"
] | null | null | null | from src import IndexRack
class domain(object):
def __init__(self, entries):
self.entries = entries
class env(object):
def __init__(self, entries):
self.domain = {}
self.domain['index'] = domain(entries)
def get_domain(self, domain_type):
return self.domain[domai... | 31.268293 | 59 | 0.631825 | 157 | 1,282 | 4.770701 | 0.280255 | 0.046729 | 0.073431 | 0.090788 | 0.149533 | 0.149533 | 0.074766 | 0.074766 | 0 | 0 | 0 | 0 | 0.268331 | 1,282 | 40 | 60 | 32.05 | 0.798507 | 0 | 0 | 0.171429 | 0 | 0 | 0.023349 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.228571 | false | 0 | 0.028571 | 0.057143 | 0.485714 | 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 |
fe9f8030467f90afa78b0b581475f5ca879e8b65 | 2,281 | py | Python | mnist_cnn/train.py | rueberger/project_template | e6fe32473948c40032c54d2e73d7abf41a20e4b8 | [
"MIT"
] | 1 | 2017-12-28T00:21:51.000Z | 2017-12-28T00:21:51.000Z | mnist_cnn/train.py | rueberger/project_template | e6fe32473948c40032c54d2e73d7abf41a20e4b8 | [
"MIT"
] | null | null | null | mnist_cnn/train.py | rueberger/project_template | e6fe32473948c40032c54d2e73d7abf41a20e4b8 | [
"MIT"
] | null | null | null | """ This module contains the pipeline train method
"""
from mnist_cnn.model import build_model, generate_model_config
from mnist_cnn.batch_gen import pipeline_batch_gen, generate_batch_spec
from keras.optimizers import Adam
def generate_train_config(model_spec, train_batch_spec, val_batch_spec, epoch_size,
... | 36.206349 | 87 | 0.683911 | 307 | 2,281 | 4.710098 | 0.247557 | 0.118257 | 0.067773 | 0.074689 | 0.334716 | 0.233748 | 0.199862 | 0.133472 | 0.133472 | 0.133472 | 0 | 0.012543 | 0.231039 | 2,281 | 62 | 88 | 36.790323 | 0.811859 | 0.204296 | 0 | 0 | 1 | 0 | 0.111808 | 0.013691 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.212121 | 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 |
fea1b6a03788d036a5197b509328c4361bb5a6d7 | 9,031 | py | Python | adb/windows/platform-tools/systrace/catapult/devil/devil/android/settings.py | llaske/sugarizer-deployment-tool-desktop | 34df1a56b68b15b6771671f87ab66586d60c514a | [
"Apache-2.0"
] | 1 | 2019-01-17T19:03:17.000Z | 2019-01-17T19:03:17.000Z | adb/linux/platform-tools/systrace/catapult/devil/devil/android/settings.py | llaske/sugarizer-deployment-tool-desktop | 34df1a56b68b15b6771671f87ab66586d60c514a | [
"Apache-2.0"
] | 2 | 2017-09-08T20:26:05.000Z | 2017-09-08T20:29:07.000Z | adb/windows/platform-tools/systrace/catapult/devil/devil/android/settings.py | llaske/sugarizer-deployment-tool-desktop | 34df1a56b68b15b6771671f87ab66586d60c514a | [
"Apache-2.0"
] | null | null | null | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import logging
logger = logging.getLogger(__name__)
_LOCK_SCREEN_SETTINGS_PATH = '/data/system/locksettings.db'
_ALTERNATE_LOCK_SCREEN_SETTINGS_PATH = (
... | 32.959854 | 93 | 0.668697 | 1,111 | 9,031 | 5.265527 | 0.305131 | 0.061538 | 0.027692 | 0.022564 | 0.238974 | 0.207009 | 0.187521 | 0.15265 | 0.097436 | 0.077265 | 0 | 0.008049 | 0.202082 | 9,031 | 273 | 94 | 33.080586 | 0.803775 | 0.146495 | 0 | 0.195402 | 0 | 0 | 0.260283 | 0.090456 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.022989 | 0.005747 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fea28b2859bdc63aab37cb71c3383f3c87777066 | 2,731 | py | Python | api/migrations/versions/129ea023f600_.py | dheepak-aot/queue-management-1 | a96e3ab4b8e4e14e2d70e940de6d9551f6f093be | [
"Apache-2.0"
] | 30 | 2018-09-19T03:30:51.000Z | 2022-03-07T02:57:05.000Z | api/migrations/versions/129ea023f600_.py | dheepak-aot/queue-management-1 | a96e3ab4b8e4e14e2d70e940de6d9551f6f093be | [
"Apache-2.0"
] | 159 | 2018-09-17T23:45:58.000Z | 2022-03-30T17:35:05.000Z | api/migrations/versions/129ea023f600_.py | dheepak-aot/queue-management-1 | a96e3ab4b8e4e14e2d70e940de6d9551f6f093be | [
"Apache-2.0"
] | 52 | 2018-05-18T18:30:06.000Z | 2021-08-25T12:00:29.000Z | """empty message
Revision ID: 129ea023f600
Revises: c1b93103c752
Create Date: 2019-08-29 08:47:55.638081
"""
from alembic import op
import sqlalchemy as sa
import sqlalchemy_utc
# revision identifiers, used by Alembic.
revision = '129ea023f600'
down_revision = 'c1b93103c752'
branch_labels = None
depends_on = None
... | 47.912281 | 143 | 0.720615 | 339 | 2,731 | 5.59292 | 0.256637 | 0.082278 | 0.040612 | 0.037975 | 0.524262 | 0.379219 | 0.303797 | 0.17827 | 0.131857 | 0.131857 | 0 | 0.026338 | 0.12413 | 2,731 | 56 | 144 | 48.767857 | 0.766304 | 0.188209 | 0 | 0 | 0 | 0 | 0.300735 | 0.043618 | 0 | 0 | 0 | 0.017857 | 0 | 1 | 0.055556 | false | 0 | 0.083333 | 0 | 0.138889 | 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 |
fea30fdbd652605c6058f3a5c529d6d032ac3069 | 1,862 | py | Python | python/fundamentals/2.3.tuple.py | enesonmez/data-science-tutorial-turkish | 755c539f44b9f5571cd3efc3e0358f14f96bc096 | [
"CC0-1.0"
] | 1 | 2022-02-02T08:41:23.000Z | 2022-02-02T08:41:23.000Z | python/fundamentals/2.3.tuple.py | enesonmez/data-science-tutorial-turkish | 755c539f44b9f5571cd3efc3e0358f14f96bc096 | [
"CC0-1.0"
] | null | null | null | python/fundamentals/2.3.tuple.py | enesonmez/data-science-tutorial-turkish | 755c539f44b9f5571cd3efc3e0358f14f96bc096 | [
"CC0-1.0"
] | null | null | null | """
Listeden çok fazla bir farkı yoktur. İlkel veri tiplerini ve koleksiyonları
kendi içinde barındıran koleksiyon veri tipidir.
Listelerden tek bir farkı vardır. O da eklenen elemanlar değiştirilemez. (unmutable)
"""
demet = (1,2,3,4,5,6)
demet_one = 1,2,3,4,5
karisik_demet = ("yazi",155,12.5,[45,21,45]... | 28.212121 | 92 | 0.728786 | 253 | 1,862 | 5.3083 | 0.616601 | 0.035741 | 0.006701 | 0.008935 | 0.007446 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023492 | 0.154135 | 1,862 | 66 | 93 | 28.212121 | 0.827937 | 0.272825 | 0 | 0 | 0 | 0 | 0.139007 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fea4d5a00408a3e7f2a589ca6b6ea4516e6ff30b | 938 | py | Python | app/inventory/tests/test_api.py | DevelopwithTom/simple_inventory_api | 5ce67be1c6ddbe7f5283256d52cf38779cbfdd89 | [
"MIT"
] | null | null | null | app/inventory/tests/test_api.py | DevelopwithTom/simple_inventory_api | 5ce67be1c6ddbe7f5283256d52cf38779cbfdd89 | [
"MIT"
] | null | null | null | app/inventory/tests/test_api.py | DevelopwithTom/simple_inventory_api | 5ce67be1c6ddbe7f5283256d52cf38779cbfdd89 | [
"MIT"
] | null | null | null | from rest_framework.test import APITestCase
# from django.urls import reverse
from core.models import Product
class ProductTest(APITestCase):
def test_empty_products(self):
link = '/inventory/product/'
response = self.client.get(link)
self.assertEqual(response.status_code, 200)
s... | 31.266667 | 75 | 0.672708 | 115 | 938 | 5.4 | 0.347826 | 0.144928 | 0.096618 | 0.135266 | 0.706924 | 0.706924 | 0.637681 | 0.515298 | 0.515298 | 0.515298 | 0 | 0.026702 | 0.201493 | 938 | 29 | 76 | 32.344828 | 0.802403 | 0.033049 | 0 | 0.55 | 0 | 0 | 0.069613 | 0 | 0 | 0 | 0 | 0 | 0.3 | 1 | 0.15 | false | 0 | 0.1 | 0 | 0.3 | 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 |
fea6ac35d20defdfb6f6a279d2f726225304d854 | 521 | py | Python | biblioteca/urls.py | Dagmoores/ProjetoIntegradorIUnivesp | 86f5004c359b760cceec87bfa905db16e3375653 | [
"MIT"
] | null | null | null | biblioteca/urls.py | Dagmoores/ProjetoIntegradorIUnivesp | 86f5004c359b760cceec87bfa905db16e3375653 | [
"MIT"
] | null | null | null | biblioteca/urls.py | Dagmoores/ProjetoIntegradorIUnivesp | 86f5004c359b760cceec87bfa905db16e3375653 | [
"MIT"
] | null | null | null | from sys import setswitchinterval
from django.urls import path
from django.urls.resolvers import URLPattern
from django.contrib.staticfiles.urls import static
from . import views
app_name = "biblioteca"
urlpatterns = [
path('', views.Home.as_view(), name = "index"),
path('biblioteca/', views.BooksListView.a... | 32.5625 | 86 | 0.725528 | 62 | 521 | 6.016129 | 0.435484 | 0.064343 | 0.107239 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128599 | 521 | 16 | 87 | 32.5625 | 0.821586 | 0 | 0 | 0 | 0 | 0 | 0.168582 | 0.044061 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
feacdb64f23a5bb9c27584a5f61dd74d19767f2e | 894 | py | Python | src/ecsnipet/map25519.py | piraz/ECPy | 615c4976e0b408f0c45c0969e63f388ffa22c5d3 | [
"Apache-2.0"
] | 17 | 2018-09-06T13:57:05.000Z | 2022-03-28T21:13:47.000Z | src/ecsnipet/map25519.py | piraz/ECPy | 615c4976e0b408f0c45c0969e63f388ffa22c5d3 | [
"Apache-2.0"
] | 28 | 2018-08-20T14:44:38.000Z | 2022-03-03T16:44:05.000Z | src/ecsnipet/map25519.py | piraz/ECPy | 615c4976e0b408f0c45c0969e63f388ffa22c5d3 | [
"Apache-2.0"
] | 14 | 2019-07-14T17:17:40.000Z | 2022-03-28T21:13:51.000Z |
import hashlib
from ecpy.curves import Curve,Point
cv = Curve.get_curve('Curve25519')
ed = Curve.get_curve('Ed25519')
p = 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffed
d = 0x52036cee2b6ffe738cc740797779e89800700a4d4141d8ab75eb4dca135978a3
a = -1
x = 0x36ab384c9f5a046c3d043b7d1833e7ac080d8e... | 19.434783 | 70 | 0.616331 | 140 | 894 | 3.921429 | 0.271429 | 0.018215 | 0.047359 | 0.021858 | 0.025501 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225352 | 0.205817 | 894 | 45 | 71 | 19.866667 | 0.547887 | 0 | 0 | 0 | 0 | 0 | 0.027996 | 0 | 0 | 0 | 0.295633 | 0 | 0 | 1 | 0.125 | false | 0 | 0.0625 | 0.03125 | 0.28125 | 0.0625 | 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 |
feb32d8914509455779f26220a8c2f5127ee9f16 | 225 | py | Python | loops.py | BernardoAguayoOrtega/CS50-s-Python-2020 | 66fc60d584220c81b03f4157f2da99a2b2910234 | [
"MIT"
] | null | null | null | loops.py | BernardoAguayoOrtega/CS50-s-Python-2020 | 66fc60d584220c81b03f4157f2da99a2b2910234 | [
"MIT"
] | null | null | null | loops.py | BernardoAguayoOrtega/CS50-s-Python-2020 | 66fc60d584220c81b03f4157f2da99a2b2910234 | [
"MIT"
] | null | null | null | # for loop
for i in [0, 2, 5, 57, 7, 9]:
print(i + 10)
# range with loop
for i in range(5):
print(i)
# list of names
names = ["harry", "Ron", "Herminone", "Ginny"]
# loops with names
for names in names:
print(names) | 17.307692 | 46 | 0.604444 | 41 | 225 | 3.317073 | 0.536585 | 0.102941 | 0.117647 | 0.147059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057803 | 0.231111 | 225 | 13 | 47 | 17.307692 | 0.728324 | 0.244444 | 0 | 0 | 0 | 0 | 0.13253 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
feb5facac4cafe8d2e742adcbff547751a1886dc | 505 | py | Python | email-worker-compose/worker/worker.py | JeronimoHermano/udemy-docker | 63cc1128df39ee3db60b88c1a332c3cc7f858e13 | [
"MIT"
] | null | null | null | email-worker-compose/worker/worker.py | JeronimoHermano/udemy-docker | 63cc1128df39ee3db60b88c1a332c3cc7f858e13 | [
"MIT"
] | null | null | null | email-worker-compose/worker/worker.py | JeronimoHermano/udemy-docker | 63cc1128df39ee3db60b88c1a332c3cc7f858e13 | [
"MIT"
] | null | null | null | import redis
import json
import os
from time import sleep
from random import randint
if __name__ == "__main__":
redis_host = os.getenv('REDIS_HOST', 'queue')
r = redis.Redis(host=redis_host, port=6379, db=0)
print('Aguardando e-mails...')
while True:
mensage = json.loads(r.blpop('sender')[1])... | 25.25 | 60 | 0.637624 | 66 | 505 | 4.712121 | 0.621212 | 0.115756 | 0.141479 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025253 | 0.215842 | 505 | 19 | 61 | 26.578947 | 0.760101 | 0.047525 | 0 | 0 | 0 | 0 | 0.210856 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.357143 | 0 | 0.357143 | 0.214286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
feb622aad2ceb4300a3523c6c9eccce0f039c86e | 306 | py | Python | {{cookiecutter.project_slug}}/tests/unit/user/test_models.py | Stormbase/django-cookiecutter | b43ae5ba1fec914f4ecf1bb00d137bc3985f4a5d | [
"MIT"
] | 1 | 2020-08-15T13:55:46.000Z | 2020-08-15T13:55:46.000Z | {{cookiecutter.project_slug}}/tests/unit/user/test_models.py | Stormbase/django-cookiecutter | b43ae5ba1fec914f4ecf1bb00d137bc3985f4a5d | [
"MIT"
] | null | null | null | {{cookiecutter.project_slug}}/tests/unit/user/test_models.py | Stormbase/django-cookiecutter | b43ae5ba1fec914f4ecf1bb00d137bc3985f4a5d | [
"MIT"
] | null | null | null | import pytest
from django.contrib.auth import get_user_model
User = get_user_model()
@pytest.mark.django_db
def test_admin_superuser():
User.objects.create_superuser("admin", email="admin@example.com", password="secret")
admin = User.objects.get(username="admin")
assert admin.is_superuser
| 23.538462 | 88 | 0.764706 | 43 | 306 | 5.232558 | 0.581395 | 0.062222 | 0.106667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 306 | 12 | 89 | 25.5 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.107843 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | false | 0.125 | 0.25 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
feb94a63451e35d4d9a5d16718dec702f3e847d2 | 1,608 | py | Python | day11/day11.py | protocol114/AdventOfCode | eec7eed81cf9f096e2dce9a9a39f5e9890a3deaf | [
"MIT"
] | null | null | null | day11/day11.py | protocol114/AdventOfCode | eec7eed81cf9f096e2dce9a9a39f5e9890a3deaf | [
"MIT"
] | null | null | null | day11/day11.py | protocol114/AdventOfCode | eec7eed81cf9f096e2dce9a9a39f5e9890a3deaf | [
"MIT"
] | null | null | null | alphabet = "abcdefghijklmnopqrstuvwxyz"
def rule1(password):
for i in range(len(password) - 2):
try:
if password[i:i + 3] in alphabet:
return True
except IndexError:
continue
return False
def rule2(password):
if 'i' in password or 'o' in password or ... | 24.738462 | 97 | 0.623134 | 184 | 1,608 | 5.445652 | 0.271739 | 0.011976 | 0.092814 | 0.116766 | 0.181637 | 0.181637 | 0.137725 | 0.137725 | 0.137725 | 0 | 0 | 0.023932 | 0.272388 | 1,608 | 64 | 98 | 25.125 | 0.832479 | 0.006219 | 0 | 0.411765 | 0 | 0 | 0.067669 | 0.016291 | 0 | 0 | 0 | 0 | 0.137255 | 1 | 0.098039 | false | 0.392157 | 0 | 0 | 0.27451 | 0.039216 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
feb973fc0248d1e01af16271415b75a6b7b0a75e | 449 | py | Python | plotly/validators/layout/_hoverdistance.py | faezs/plotly.py | 6009b5b9c746e5d2a2849ad255a4eb234b551ed7 | [
"MIT"
] | 2 | 2020-03-24T11:41:14.000Z | 2021-01-14T07:59:43.000Z | plotly/validators/layout/_hoverdistance.py | faezs/plotly.py | 6009b5b9c746e5d2a2849ad255a4eb234b551ed7 | [
"MIT"
] | null | null | null | plotly/validators/layout/_hoverdistance.py | faezs/plotly.py | 6009b5b9c746e5d2a2849ad255a4eb234b551ed7 | [
"MIT"
] | 4 | 2019-06-03T14:49:12.000Z | 2022-01-06T01:05:12.000Z | import _plotly_utils.basevalidators
class HoverdistanceValidator(_plotly_utils.basevalidators.IntegerValidator):
def __init__(
self, plotly_name='hoverdistance', parent_name='layout', **kwargs
):
super(HoverdistanceValidator, self).__init__(
plotly_name=plotly_name,
pa... | 26.411765 | 76 | 0.621381 | 40 | 449 | 6.5 | 0.575 | 0.115385 | 0.192308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003106 | 0.282851 | 449 | 16 | 77 | 28.0625 | 0.804348 | 0 | 0 | 0 | 0 | 0 | 0.060134 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.076923 | 0 | 0.230769 | 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 |
feb9ea3fe32ef646ba89f8b6d7d66bd1986f768f | 6,738 | py | Python | backup53/route53.py | hootsuite/backup53 | ecd16b7d5442204321e7416fe0e6ffb26c7ef204 | [
"Apache-2.0"
] | 8 | 2015-03-24T08:28:47.000Z | 2022-02-11T17:27:39.000Z | backup53/route53.py | hootsuite/backup53 | ecd16b7d5442204321e7416fe0e6ffb26c7ef204 | [
"Apache-2.0"
] | null | null | null | backup53/route53.py | hootsuite/backup53 | ecd16b7d5442204321e7416fe0e6ffb26c7ef204 | [
"Apache-2.0"
] | 5 | 2016-02-11T16:32:49.000Z | 2022-02-21T07:20:58.000Z | # Copyright 2014 Steven Richards - Hootsuite Media -
# <steven.richards@hootsuite.com>
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/license/LICENSE-2.0
# Unless r... | 36.619565 | 94 | 0.58133 | 800 | 6,738 | 4.7325 | 0.24125 | 0.038035 | 0.031432 | 0.027734 | 0.274696 | 0.185948 | 0.139461 | 0.107237 | 0.033809 | 0.033809 | 0 | 0.007463 | 0.323835 | 6,738 | 183 | 95 | 36.819672 | 0.823529 | 0.103295 | 0 | 0.256757 | 0 | 0 | 0.06868 | 0.003484 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.047297 | null | null | 0.087838 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
228b03d7a618688d95003789110bc1407848c30b | 551 | py | Python | deployments/migrations/0044_personnel_molnix_status.py | IFRCGo/ifrcgo-api | c1c3e0cf1076ab48d03db6aaf7a00f8485ca9e1a | [
"MIT"
] | null | null | null | deployments/migrations/0044_personnel_molnix_status.py | IFRCGo/ifrcgo-api | c1c3e0cf1076ab48d03db6aaf7a00f8485ca9e1a | [
"MIT"
] | null | null | null | deployments/migrations/0044_personnel_molnix_status.py | IFRCGo/ifrcgo-api | c1c3e0cf1076ab48d03db6aaf7a00f8485ca9e1a | [
"MIT"
] | null | null | null | # Generated by Django 2.2.27 on 2022-03-10 14:31
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('deployments', '0043_personnel_country_to_fill'),
]
operations = [
migrations.AddField(
model_name='personnel',
name... | 29 | 195 | 0.62069 | 59 | 551 | 5.661017 | 0.728814 | 0.05988 | 0.095808 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048951 | 0.221416 | 551 | 18 | 196 | 30.611111 | 0.729604 | 0.083485 | 0 | 0 | 1 | 0 | 0.258449 | 0.059642 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
228c900701e3f72d4efd9682fc441cdbe6701644 | 22,238 | py | Python | amd64-linux/lib/python/fiesta_nvram.py | qiyancos/Simics-3.0.31 | 9bd52d5abad023ee87a37306382a338abf7885f1 | [
"BSD-4-Clause",
"FSFAP"
] | 1 | 2020-06-15T10:41:18.000Z | 2020-06-15T10:41:18.000Z | amd64-linux/lib/python/fiesta_nvram.py | qiyancos/Simics-3.0.31 | 9bd52d5abad023ee87a37306382a338abf7885f1 | [
"BSD-4-Clause",
"FSFAP"
] | null | null | null | amd64-linux/lib/python/fiesta_nvram.py | qiyancos/Simics-3.0.31 | 9bd52d5abad023ee87a37306382a338abf7885f1 | [
"BSD-4-Clause",
"FSFAP"
] | 3 | 2020-08-10T10:25:02.000Z | 2021-09-12T01:12:09.000Z | from cli import *
from components import get_component, mac_as_list
def mp_state(state):
if state == 0:
return "Inactive"
elif state == 1:
return "Active (Slave CPUs not yet disabled)"
elif state == 2:
return "Active (Slave CPUs disabled)"
elif state == 3:
return "Done (... | 40.213382 | 164 | 0.533052 | 2,779 | 22,238 | 4.127744 | 0.156531 | 0.031732 | 0.033999 | 0.023015 | 0.407811 | 0.323076 | 0.260832 | 0.221777 | 0.201377 | 0.169558 | 0 | 0.055895 | 0.337081 | 22,238 | 552 | 165 | 40.286232 | 0.722222 | 0.107564 | 0 | 0.297052 | 0 | 0 | 0.152761 | 0.020176 | 0 | 0 | 0.037621 | 0 | 0 | 0 | null | null | 0.004535 | 0.004535 | null | null | 0.015873 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
228d41db5a12bd7af3f637ddb698756425b9590d | 1,222 | py | Python | pwn/tanchishe/exp.py | Noname0519/NUAACTF2021-Challenges | 0726fd7c08cd17bf7152944a079a5406ef7be4b8 | [
"MIT"
] | 6 | 2021-12-12T07:57:33.000Z | 2021-12-25T07:41:45.000Z | pwn/tanchishe/exp.py | Noname0519/NUAACTF2021-Challenges | 0726fd7c08cd17bf7152944a079a5406ef7be4b8 | [
"MIT"
] | 1 | 2021-12-17T03:51:48.000Z | 2021-12-17T03:51:48.000Z | pwn/tanchishe/exp.py | Noname0519/NUAACTF2021-Challenges | 0726fd7c08cd17bf7152944a079a5406ef7be4b8 | [
"MIT"
] | 11 | 2021-12-12T06:43:32.000Z | 2022-02-23T15:03:51.000Z | #utf-8
from pwn import *
context.log_level='debug'
sh = process('./snake')
#sh = remote('47.104.143.202',25997)
#s = ssh(host='127.0.0.1',user='ctf',password='NUAA2021',port=65500)
#sh = s.process('/home/ctf/tanchishe')
libc = ELF('/lib/x86_64-linux-gnu/libc.so.6')
elf = ELF('./snake')
sh.recvuntil('Continue...')
sh.... | 26.565217 | 141 | 0.628478 | 191 | 1,222 | 3.984293 | 0.481675 | 0.086728 | 0.027595 | 0.023653 | 0.212878 | 0.165572 | 0.165572 | 0.165572 | 0.165572 | 0.165572 | 0 | 0.189873 | 0.094926 | 1,222 | 45 | 142 | 27.155556 | 0.498192 | 0.216039 | 0 | 0.12 | 0 | 0 | 0.17666 | 0.087794 | 0 | 0 | 0.156317 | 0 | 0 | 1 | 0 | false | 0 | 0.04 | 0 | 0.04 | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
22948d972f4232bc5ee0b787daaf7e6f61c51a95 | 489 | py | Python | S5/operaciones.py | Escannor/Algoritmia_21-2 | 284e35a040eae7aa1a0a6cb9336f0d4c2b782a48 | [
"MIT"
] | 1 | 2021-04-18T04:54:04.000Z | 2021-04-18T04:54:04.000Z | S5/operaciones.py | Alexship896/Algoritmia_21-2 | 1ffb33fc2b93899d813e67d958e437d66a39070e | [
"MIT"
] | null | null | null | S5/operaciones.py | Alexship896/Algoritmia_21-2 | 1ffb33fc2b93899d813e67d958e437d66a39070e | [
"MIT"
] | 1 | 2021-04-18T05:01:08.000Z | 2021-04-18T05:01:08.000Z |
def operaciones(a=1, b=1) -> list:
"""[Realiza todas las operaciones]
Args:
a (int, optional): [description]. Defaults to 1.
b (int, optional): [description]. Defaults to 1.
Returns:
[int, float]: [description]
"""
print("Proceso terminado")
return [a+b, a-b, a*b, a/b]... | 16.862069 | 56 | 0.584867 | 64 | 489 | 4.46875 | 0.46875 | 0.027972 | 0.031469 | 0.041958 | 0.258741 | 0.258741 | 0 | 0 | 0 | 0 | 0 | 0.016349 | 0.249489 | 489 | 28 | 57 | 17.464286 | 0.762943 | 0.380368 | 0 | 0 | 0 | 0 | 0.177122 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0 | 0 | 0.4 | 0.3 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
22985f211826303ce1be981bf40fb69376a465c7 | 1,722 | py | Python | tests/unit/test_start.py | dasm/charm-opensearch-k8s | 0adcf5640bc3bf4f7c5ad05beb8ac80a6abef3cc | [
"Apache-2.0"
] | null | null | null | tests/unit/test_start.py | dasm/charm-opensearch-k8s | 0adcf5640bc3bf4f7c5ad05beb8ac80a6abef3cc | [
"Apache-2.0"
] | null | null | null | tests/unit/test_start.py | dasm/charm-opensearch-k8s | 0adcf5640bc3bf4f7c5ad05beb8ac80a6abef3cc | [
"Apache-2.0"
] | null | null | null | from unittest.mock import MagicMock, patch
import charm
from ops.charm import ActionEvent
import pytest
import requests_mock
@pytest.mark.parametrize(
"config_expected",
[
(200, (True, "random_password")),
(404, (False, "random_password")),
],
ids=[
"success",
"fail... | 25.323529 | 84 | 0.688734 | 193 | 1,722 | 5.823834 | 0.336788 | 0.104093 | 0.050712 | 0.058719 | 0.316726 | 0.133452 | 0.076512 | 0 | 0 | 0 | 0 | 0.007236 | 0.197445 | 1,722 | 67 | 85 | 25.701493 | 0.806078 | 0 | 0 | 0.28 | 0 | 0 | 0.198026 | 0.051103 | 0 | 0 | 0 | 0 | 0.06 | 1 | 0.06 | false | 0.38 | 0.1 | 0 | 0.16 | 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 |
229ab89dd0632345267809e3c73f36aaaa462aec | 3,414 | py | Python | mailpile/plugins/html_magic.py | JocelynDelalande/Mailpile | 3e53a54195a0dd8ca48e7cb3be44dd7b3acabd74 | [
"Apache-2.0"
] | null | null | null | mailpile/plugins/html_magic.py | JocelynDelalande/Mailpile | 3e53a54195a0dd8ca48e7cb3be44dd7b3acabd74 | [
"Apache-2.0"
] | null | null | null | mailpile/plugins/html_magic.py | JocelynDelalande/Mailpile | 3e53a54195a0dd8ca48e7cb3be44dd7b3acabd74 | [
"Apache-2.0"
] | null | null | null | # This plugin generates Javascript, HTML or CSS fragments based on the
# current theme, skin and active plugins.
#
import mailpile.config
from mailpile.commands import Command
from mailpile.i18n import gettext as _
from mailpile.i18n import ngettext as _n
from mailpile.plugins import PluginManager
from mailpile.urlmap ... | 34.836735 | 78 | 0.507616 | 325 | 3,414 | 5.166154 | 0.384615 | 0.042883 | 0.021441 | 0.028588 | 0.230494 | 0.147707 | 0.147707 | 0.05003 | 0.05003 | 0 | 0 | 0.004863 | 0.337434 | 3,414 | 97 | 79 | 35.195876 | 0.737401 | 0.11775 | 0 | 0.253731 | 1 | 0 | 0.104878 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014925 | false | 0 | 0.104478 | 0 | 0.208955 | 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 |
22a4cc6dd54f0aff1c958adee10cdc3ce77794b9 | 279 | py | Python | creds--TEMPLATE.py | jftuga/nfl_sentiment_analysis | 3090d10cdf4a04cbd2ce536ce7f705df9781fb39 | [
"MIT"
] | null | null | null | creds--TEMPLATE.py | jftuga/nfl_sentiment_analysis | 3090d10cdf4a04cbd2ce536ce7f705df9781fb39 | [
"MIT"
] | null | null | null | creds--TEMPLATE.py | jftuga/nfl_sentiment_analysis | 3090d10cdf4a04cbd2ce536ce7f705df9781fb39 | [
"MIT"
] | null | null | null | # rename this file to creds.py
# reddit API:
reddit_client_id = "ChangeThis"
reddit_client_secret = "ChangeThis"
# The Reddit API prefers a USER-AGENT containing this information:
project_url = "https://github.com/YourName/YourProject"
project_author = "/u/YourRedditUsername"
| 27.9 | 66 | 0.784946 | 37 | 279 | 5.756757 | 0.783784 | 0.084507 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11828 | 279 | 9 | 67 | 31 | 0.865854 | 0.376344 | 0 | 0 | 0 | 0 | 0.470588 | 0.123529 | 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 |
22aee74cce2f3a8082f8d72a10434bb23ca42a6f | 842 | py | Python | hard-gists/3760670/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 21 | 2019-07-08T08:26:45.000Z | 2022-01-24T23:53:25.000Z | hard-gists/3760670/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 5 | 2019-06-15T14:47:47.000Z | 2022-02-26T05:02:56.000Z | hard-gists/3760670/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 17 | 2019-05-16T03:50:34.000Z | 2021-01-14T14:35:12.000Z | from java.io import File
from java.io import FileInputStream
from java.util import Properties
#Load properties file in java.util.Properties
def loadPropsFil(propsFil):
properties={}
propFil = Properties()
propFil.load(FileInputStream(propsFil))
properties.update(propFil)
return properties
propertyfile='/opt/dat... | 24.764706 | 100 | 0.767221 | 100 | 842 | 6.46 | 0.46 | 0.037152 | 0.03096 | 0.049536 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001332 | 0.108076 | 842 | 33 | 101 | 25.515152 | 0.858855 | 0.052257 | 0 | 0 | 0 | 0 | 0.169192 | 0.034091 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.130435 | null | null | 0.130435 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
22b040fe43591209de5290ed632cfc1d42f8b8a0 | 11,460 | py | Python | outputDocVec.py | sidenver/ConstituentRetrofit | ca68c9dc9494d955aa50cd6676d5cde6ead0f4cb | [
"Apache-2.0"
] | null | null | null | outputDocVec.py | sidenver/ConstituentRetrofit | ca68c9dc9494d955aa50cd6676d5cde6ead0f4cb | [
"Apache-2.0"
] | null | null | null | outputDocVec.py | sidenver/ConstituentRetrofit | ca68c9dc9494d955aa50cd6676d5cde6ead0f4cb | [
"Apache-2.0"
] | null | null | null | """Usage:
outputDocVec.py -v <vectorsFile> -d <dataset> [options]
outputDocVec.py (-h | --help)
Arguments:
-v <vectorsFile> to specify VSM input file
-d <dataset> to specify dataset
Options:
-o <outputDir> set output directory
-f <w2vFormat> can be set t... | 40.4947 | 122 | 0.544939 | 1,073 | 11,460 | 5.794967 | 0.239515 | 0.038598 | 0.048247 | 0.034738 | 0.444516 | 0.43165 | 0.407848 | 0.368446 | 0.352525 | 0.352525 | 0 | 0.012997 | 0.33534 | 11,460 | 282 | 123 | 40.638298 | 0.803335 | 0.037784 | 0 | 0.43379 | 0 | 0 | 0.100976 | 0.024789 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.059361 | null | null | 0.031963 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
22b168af021aabcced13710f94648c012e7e450f | 4,992 | py | Python | gollahalli_cms/editor/tests/test_view.py | akshaybabloo/gollahalli-cms | f74fbb6d88bf3a8acc7c4b0439e97d2bcc44a17f | [
"MIT"
] | 1 | 2020-08-08T22:46:40.000Z | 2020-08-08T22:46:40.000Z | gollahalli_cms/editor/tests/test_view.py | akshaybabloo/gollahalli-com | f74fbb6d88bf3a8acc7c4b0439e97d2bcc44a17f | [
"MIT"
] | 41 | 2017-06-23T03:28:17.000Z | 2018-03-01T08:26:42.000Z | gollahalli_cms/editor/tests/test_view.py | akshaybabloo/gollahalli-com | f74fbb6d88bf3a8acc7c4b0439e97d2bcc44a17f | [
"MIT"
] | null | null | null | from django.contrib.auth.models import User
from django.core.files.uploadedfile import SimpleUploadedFile, InMemoryUploadedFile
from django.test import TestCase, Client
from io import BytesIO
from PIL import Image
class ViewsTests(TestCase):
"""
Test case for ``views``
"""
def setUp(self):
pa... | 40.918033 | 123 | 0.446915 | 431 | 4,992 | 5.046404 | 0.266821 | 0.068966 | 0.105747 | 0.041839 | 0.495632 | 0.495632 | 0.495632 | 0.495632 | 0.446897 | 0.413793 | 0 | 0.010496 | 0.446514 | 4,992 | 121 | 124 | 41.256198 | 0.776692 | 0.048678 | 0 | 0.375 | 0 | 0 | 0.154583 | 0.00958 | 0 | 0 | 0 | 0 | 0.138889 | 1 | 0.097222 | false | 0.138889 | 0.069444 | 0 | 0.180556 | 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 |
22b527df567098839962b71438c236fbaa88e7c9 | 1,108 | py | Python | simplejson/tests/test_raw_json.py | Daybreak2019/simplejson | 9be9bc0742d1dfaff26e418138643b5b253c4242 | [
"AFL-2.1"
] | null | null | null | simplejson/tests/test_raw_json.py | Daybreak2019/simplejson | 9be9bc0742d1dfaff26e418138643b5b253c4242 | [
"AFL-2.1"
] | null | null | null | simplejson/tests/test_raw_json.py | Daybreak2019/simplejson | 9be9bc0742d1dfaff26e418138643b5b253c4242 | [
"AFL-2.1"
] | null | null | null | import unittest
import simplejson as json
dct1 = {
'key1': 'value1'
}
dct2 = {
'key2': 'value2',
'd1': dct1
}
dct3 = {
'key2': 'value2',
'd1': json.dumps(dct1)
}
dct4 = {
'key2': 'value2',
'd1': json.RawJSON(json.dumps(dct1))
}
class TestRawJson(unittest.TestCase):
def test_normal... | 22.612245 | 69 | 0.587545 | 130 | 1,108 | 4.892308 | 0.253846 | 0.240566 | 0.163522 | 0.157233 | 0.553459 | 0.518868 | 0.518868 | 0.460692 | 0.396226 | 0.396226 | 0 | 0.038554 | 0.250903 | 1,108 | 49 | 70 | 22.612245 | 0.727711 | 0 | 0 | 0.179487 | 0 | 0 | 0.048693 | 0 | 0 | 0 | 0 | 0 | 0.179487 | 1 | 0.102564 | false | 0 | 0.051282 | 0 | 0.179487 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
22b5a480a732fa7c9bc48963c524bf79cd8e2dc3 | 18,083 | py | Python | content/test/gpu/gpu_tests/power_measurement_integration_test.py | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | content/test/gpu/gpu_tests/power_measurement_integration_test.py | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | content/test/gpu/gpu_tests/power_measurement_integration_test.py | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | # Copyright 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""This script only works on Windows with Intel CPU. Intel Power Gadget needs
to be installed on the machine before this script works. The software can be
dow... | 34.842004 | 80 | 0.659293 | 2,026 | 18,083 | 5.687562 | 0.233959 | 0.019526 | 0.013885 | 0.011455 | 0.260609 | 0.200989 | 0.156036 | 0.141109 | 0.121496 | 0.121496 | 0 | 0.00975 | 0.239949 | 18,083 | 518 | 81 | 34.909266 | 0.828653 | 0.042416 | 0 | 0.334107 | 0 | 0 | 0.449819 | 0.118409 | 0 | 0 | 0 | 0.001931 | 0.013921 | 0 | null | null | 0.041763 | 0.018561 | null | null | 0.00232 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
22bca146a88ad5005776078bfe1673fc86d82334 | 11,149 | py | Python | game/enums.py | villinvic/Georges | 64575409f484213966ae0ace6ebce7c133b482ec | [
"MIT"
] | 6 | 2021-08-18T02:10:49.000Z | 2022-03-18T12:36:49.000Z | game/enums.py | villinvic/Georges | 64575409f484213966ae0ace6ebce7c133b482ec | [
"MIT"
] | null | null | null | game/enums.py | villinvic/Georges | 64575409f484213966ae0ace6ebce7c133b482ec | [
"MIT"
] | null | null | null | import enum
class PlayerType(enum.IntEnum):
Human = 0
CPU = 1
Demo = 2
Unselected = 3
class Character(enum.IntEnum):
Doc = 0
Mario = 1
Luigi = 2
Bowser = 3
Peach = 4
Yoshi = 5
DK = 6
Falcon = 7
Ganon = 8
Falco = 9
Fox = 10
Ness = 11
Icies = 12
... | 23.620763 | 36 | 0.671181 | 930 | 11,149 | 8.046237 | 0.939785 | 0.00882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.235959 | 0.286124 | 11,149 | 471 | 37 | 23.670913 | 0.704234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206655 | 0 | 0 | 1 | 0 | false | 0.015251 | 0.002179 | 0 | 1 | 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 |
22bd56b5954d5a1b22cbcb3c8c85df32775e4158 | 914 | py | Python | src/pdfbase/config.py | pritamps/PDF-Package | 91b418dd6582c6f40f4c68df79ea0e7b378d7780 | [
"MIT"
] | null | null | null | src/pdfbase/config.py | pritamps/PDF-Package | 91b418dd6582c6f40f4c68df79ea0e7b378d7780 | [
"MIT"
] | null | null | null | src/pdfbase/config.py | pritamps/PDF-Package | 91b418dd6582c6f40f4c68df79ea0e7b378d7780 | [
"MIT"
] | null | null | null | KAFKA_CREDENTIAL = {'topic': 'u518r2qy-form',
'bootstrap_servers': ['moped-01.srvs.cloudkafka.com:9094',
'moped-02.srvs.cloudkafka.com:9094',
'moped-03.srvs.cloudkafka.com:9094'],
'security_protoc... | 60.933333 | 96 | 0.528446 | 81 | 914 | 5.753086 | 0.691358 | 0.090129 | 0.109442 | 0.135193 | 0.111588 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126036 | 0.340263 | 914 | 15 | 96 | 60.933333 | 0.646766 | 0 | 0 | 0 | 0 | 0 | 0.530055 | 0.168306 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
22bfff7227c81a535b7d0c9ab5dd3cb4ae47d912 | 602 | py | Python | HW8/EX2/fairpy/time_limit.py | ShmuelLa/research-algorithms | 43cab0e9c13ce9ddb9646f7539f1a865e86f9841 | [
"MIT"
] | null | null | null | HW8/EX2/fairpy/time_limit.py | ShmuelLa/research-algorithms | 43cab0e9c13ce9ddb9646f7539f1a865e86f9841 | [
"MIT"
] | null | null | null | HW8/EX2/fairpy/time_limit.py | ShmuelLa/research-algorithms | 43cab0e9c13ce9ddb9646f7539f1a865e86f9841 | [
"MIT"
] | null | null | null | """
A context for running functions with a time-limit.
Throws an exception if the function does not finish within the limit.
USAGE:
with time_limit(10):
foo()
NOTE: This does not work on Windows. See:
https://stackoverflow.com/a/8420498/827927
"""
import signal
import contextlib
class TimeoutException(Exceptio... | 20.758621 | 69 | 0.722591 | 79 | 602 | 5.455696 | 0.670886 | 0.062645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032653 | 0.186047 | 602 | 28 | 70 | 21.5 | 0.846939 | 0.408638 | 0 | 0 | 0 | 0 | 0.028736 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.076923 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
22c19721fed89c148b29d6395d48dc0fa9a69961 | 3,843 | py | Python | Lib/test/test_pow.py | marcosptf/cpython-2.0.1 | 73c739a764e8b1dc84640e73b880bc66e1916bca | [
"PSF-2.0"
] | 5 | 2022-03-26T21:53:36.000Z | 2022-03-30T21:47:20.000Z | Lib/test/test_pow.py | marcosptf/cpython-2.0.1 | 73c739a764e8b1dc84640e73b880bc66e1916bca | [
"PSF-2.0"
] | 6 | 2020-11-18T15:48:14.000Z | 2021-05-03T21:20:50.000Z | Lib/test/test_pow.py | marcosptf/cpython-2.0.1 | 73c739a764e8b1dc84640e73b880bc66e1916bca | [
"PSF-2.0"
] | 2 | 2015-07-16T08:14:13.000Z | 2022-03-27T01:55:17.000Z | import sys
import test_support
def powtest(type):
if type != float:
print " Testing 2-argument pow() function..."
for i in range(-1000, 1000):
if pow(type(i), 0) != 1:
raise ValueError, 'pow('+str(i)+',0) != 1'
if pow(type(i), 1) != type(i):
... | 31.760331 | 79 | 0.453292 | 617 | 3,843 | 2.820097 | 0.155592 | 0.073563 | 0.017241 | 0.027586 | 0.404598 | 0.272989 | 0.240805 | 0.202874 | 0.187931 | 0.187931 | 0 | 0.083871 | 0.354671 | 3,843 | 120 | 80 | 32.025 | 0.617742 | 0.033047 | 0 | 0.084906 | 0 | 0 | 0.103448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.018868 | 0.018868 | null | null | 0.264151 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
22c49dc6d722b1fdd7ff44550dde17a85c52b273 | 666 | py | Python | src/data_visualization/display_pairwise.py | rz4/DeepProteinScoring | 059791a54133c2d03eb14cf98fba1c6ef27c8f49 | [
"MIT"
] | 2 | 2018-05-09T11:55:33.000Z | 2018-10-15T23:19:14.000Z | src/data_visualization/display_pairwise.py | rz4/DeepProteinScoring | 059791a54133c2d03eb14cf98fba1c6ef27c8f49 | [
"MIT"
] | null | null | null | src/data_visualization/display_pairwise.py | rz4/DeepProteinScoring | 059791a54133c2d03eb14cf98fba1c6ef27c8f49 | [
"MIT"
] | 4 | 2019-04-04T19:02:50.000Z | 2021-07-02T02:03:32.000Z | '''
display_pairwise.py
Updated: 3/20/18
'''
import os
import h5py as hp
import numpy as np
import matplotlib.pyplot as plt
# Data parameters
data_folder = '../../data/T0882/'
################################################################################
if __name__ == '__main__':
# Set paths relative to thi... | 22.2 | 80 | 0.564565 | 89 | 666 | 4.011236 | 0.617978 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023679 | 0.175676 | 666 | 29 | 81 | 22.965517 | 0.626594 | 0.183183 | 0 | 0 | 0 | 0 | 0.123894 | 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 |
22cd7c466be17fc4d82a3a9c3af6bc97ea775c44 | 4,358 | py | Python | article/yaml-to-latex.py | sepehrmn/mahmoudian-2020-rescience | 6501ad2ce902915a6bdefef1de9910f0bb34fba9 | [
"MIT"
] | null | null | null | article/yaml-to-latex.py | sepehrmn/mahmoudian-2020-rescience | 6501ad2ce902915a6bdefef1de9910f0bb34fba9 | [
"MIT"
] | null | null | null | article/yaml-to-latex.py | sepehrmn/mahmoudian-2020-rescience | 6501ad2ce902915a6bdefef1de9910f0bb34fba9 | [
"MIT"
] | 3 | 2020-05-07T16:25:40.000Z | 2020-06-08T21:49:16.000Z | #! /usr/bin/env python3
# ReScience yaml to latex converter
# Released under the BSD two-clauses licence
def generate_latex_metadata(filename, article):
abstract = article.abstract.replace("&", "\&")
content = (
"% DO NOT EDIT - automatically generated from {filename}\n\n"
"\\def \\codeUR... | 42.31068 | 106 | 0.561037 | 457 | 4,358 | 5.159737 | 0.374179 | 0.066158 | 0.020356 | 0.016964 | 0.024597 | 0.024597 | 0 | 0 | 0 | 0 | 0 | 0.004965 | 0.214318 | 4,358 | 102 | 107 | 42.72549 | 0.683703 | 0.09385 | 0 | 0.0375 | 1 | 0 | 0.50964 | 0.374176 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0125 | false | 0 | 0.0375 | 0 | 0.0625 | 0.025 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
22db06036169030c629b4b0243de8ac36f37e8d2 | 753 | py | Python | hipo_rank/directions/undirected.py | mukul-mehta/HipoRank | b44490c4f1f3e0ff8015e3eb0f2b1955947dfe80 | [
"MIT"
] | 14 | 2021-02-04T16:05:57.000Z | 2022-03-29T08:31:59.000Z | hipo_rank/directions/undirected.py | mukul-mehta/HipoRank | b44490c4f1f3e0ff8015e3eb0f2b1955947dfe80 | [
"MIT"
] | 2 | 2021-07-02T10:44:09.000Z | 2022-03-23T12:56:45.000Z | hipo_rank/directions/undirected.py | mukul-mehta/HipoRank | b44490c4f1f3e0ff8015e3eb0f2b1955947dfe80 | [
"MIT"
] | 3 | 2021-06-10T15:41:19.000Z | 2021-11-11T16:21:43.000Z | from hipo_rank import Similarities
class Undirected:
def update_directions(self, similarities: Similarities) -> Similarities:
similarities.sect_to_sect.directions = ["undirected" for _ in similarities.sect_to_sect.directions]
for sect1_index, sent_sims in enumerate(similarities.sent_to_sect):
... | 27.888889 | 107 | 0.671979 | 82 | 753 | 5.853659 | 0.268293 | 0.2 | 0.225 | 0.15625 | 0.69375 | 0.529167 | 0.45 | 0 | 0 | 0 | 0 | 0.005367 | 0.257636 | 753 | 26 | 108 | 28.961538 | 0.853309 | 0 | 0 | 0 | 0 | 0 | 0.040268 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.285714 | 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 |
22db5761a68ccec8dd4f95871377a6d407a9b76e | 331 | py | Python | python exercicios/Laços For/for6.py | gabrielqoliveiraa/bomdia | b5e0fe6aa347a0e31b5960a69fbd6f32df352094 | [
"MIT"
] | null | null | null | python exercicios/Laços For/for6.py | gabrielqoliveiraa/bomdia | b5e0fe6aa347a0e31b5960a69fbd6f32df352094 | [
"MIT"
] | null | null | null | python exercicios/Laços For/for6.py | gabrielqoliveiraa/bomdia | b5e0fe6aa347a0e31b5960a69fbd6f32df352094 | [
"MIT"
] | null | null | null | count17 = 0
count18 = 0
for c in range (0,8,1):
a = int(input('Digite uma idade: '))
if a >= 18:
count18 = count18 + 1
else:
count17 = count17 +1
print('A quantidade de poessoas com maior de 18 anos é: {}'.format(count18))
print('A quantidade de poessoas com menor de 18 anos é: {}'.format(... | 25.461538 | 76 | 0.616314 | 53 | 331 | 3.849057 | 0.528302 | 0.058824 | 0.156863 | 0.176471 | 0.431373 | 0.284314 | 0 | 0 | 0 | 0 | 0 | 0.117409 | 0.253776 | 331 | 12 | 77 | 27.583333 | 0.708502 | 0 | 0 | 0 | 0 | 0 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 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 |
22dd378e95465c06314698a8b2d23d8e731f8c5e | 6,650 | py | Python | plans/ATTIC/cocktail_party_pypnpnaoqi.py | LCAS/spqrel_tools | 9dc27364811393082b86a9be5dcc654239317515 | [
"MIT"
] | 9 | 2017-07-29T06:17:19.000Z | 2020-12-07T08:22:57.000Z | plans/ATTIC/cocktail_party_pypnpnaoqi.py | LCAS/spqrel_tools | 9dc27364811393082b86a9be5dcc654239317515 | [
"MIT"
] | 48 | 2017-06-01T09:29:18.000Z | 2020-09-16T19:50:12.000Z | plans/ATTIC/cocktail_party_pypnpnaoqi.py | LCAS/spqrel_tools | 9dc27364811393082b86a9be5dcc654239317515 | [
"MIT"
] | 11 | 2017-06-01T08:13:02.000Z | 2020-11-11T20:25:36.000Z | import os
import sys
try:
sys.path.insert(0, os.getenv('PNP_HOME')+'/PNPnaoqi/py')
except:
print "Please set PNP_HOME environment variable to PetriNetPlans folder."
sys.exit(1)
import pnp_cmd_naoqi
from pnp_cmd_naoqi import *
p = PNPCmd()
p.begin()
p.exec_action('taskstep', 'waiting')
p.exec_action('mo... | 26.181102 | 136 | 0.673233 | 846 | 6,650 | 5.046099 | 0.229314 | 0.060904 | 0.133989 | 0.052471 | 0.649098 | 0.591708 | 0.476692 | 0.429843 | 0.364722 | 0.350668 | 0 | 0.014038 | 0.175188 | 6,650 | 253 | 137 | 26.284585 | 0.764266 | 0.224511 | 0 | 0.321429 | 0 | 0 | 0.302598 | 0.117601 | 0 | 0 | 0 | 0.003953 | 0 | 0 | null | null | 0 | 0.035714 | null | null | 0.044643 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
22e2bd065b4a35f82a1051b3c5a1362e57378d1b | 586 | py | Python | authors/apps/ah_notifications/urls.py | Mutuba/Sims | 794cc9686d9da2cb8acf056e9b62b9d13c622885 | [
"BSD-3-Clause"
] | null | null | null | authors/apps/ah_notifications/urls.py | Mutuba/Sims | 794cc9686d9da2cb8acf056e9b62b9d13c622885 | [
"BSD-3-Clause"
] | 5 | 2021-05-21T08:49:43.000Z | 2021-06-09T19:41:36.000Z | authors/apps/ah_notifications/urls.py | Mutuba/Sims | 794cc9686d9da2cb8acf056e9b62b9d13c622885 | [
"BSD-3-Clause"
] | null | null | null | """
ah_notifications urls
"""
from django.conf.urls import include, url
from django.urls import path
from .views import NotificationViewList, NotificationRetrieveView
from authors.apps.profiles.views import (
SubscribeNotificationAPIView,
UnsubscribeNotificationAPIView,
)
urlpatterns = [
path("notificatio... | 30.842105 | 80 | 0.784983 | 52 | 586 | 8.75 | 0.461538 | 0.149451 | 0.065934 | 0.151648 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107509 | 586 | 18 | 81 | 32.555556 | 0.869981 | 0.035836 | 0 | 0 | 0 | 0 | 0.141831 | 0.086176 | 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 |
22e5d83df224eb0f32327860c06c9fc642b1ec88 | 764 | py | Python | cl_inn/pos/migrations/0007_auto_20170831_1024.py | Ibrahem3amer/pos_api | af758680c583b85f87ed2fba985b5d2955ebdb23 | [
"MIT"
] | null | null | null | cl_inn/pos/migrations/0007_auto_20170831_1024.py | Ibrahem3amer/pos_api | af758680c583b85f87ed2fba985b5d2955ebdb23 | [
"MIT"
] | null | null | null | cl_inn/pos/migrations/0007_auto_20170831_1024.py | Ibrahem3amer/pos_api | af758680c583b85f87ed2fba985b5d2955ebdb23 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-08-31 10:24
from __future__ import unicode_literals
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pos', '0006_auto_20170830_2311'),
]
operations = [
... | 29.384615 | 227 | 0.647906 | 83 | 764 | 5.831325 | 0.674699 | 0.061983 | 0.123967 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061538 | 0.234293 | 764 | 25 | 228 | 30.56 | 0.765812 | 0.089005 | 0 | 0.111111 | 1 | 0 | 0.181818 | 0.033189 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
22e7a595edccdb8761ca538cebc6e57de73fc806 | 4,153 | py | Python | src/probnum/diffeq/ode/ode.py | coldfix/probnum | 9b93d822c8d6501f9a12a783da84867ea54e6f6c | [
"MIT"
] | null | null | null | src/probnum/diffeq/ode/ode.py | coldfix/probnum | 9b93d822c8d6501f9a12a783da84867ea54e6f6c | [
"MIT"
] | null | null | null | src/probnum/diffeq/ode/ode.py | coldfix/probnum | 9b93d822c8d6501f9a12a783da84867ea54e6f6c | [
"MIT"
] | null | null | null | """
Ordinary differential equations.
Subclassed by the types of ODEs: IVPs, BVPs and whatever you
can imagine.
See Also
--------
IVP : Initial value problems (ivp.py)
"""
from abc import ABC, abstractmethod
class ODE(ABC):
"""
Ordinary differential equations.
Extended by the types of ODEs, e.g. IVPs, ... | 28.641379 | 95 | 0.564411 | 563 | 4,153 | 4.076377 | 0.314387 | 0.014815 | 0.034858 | 0.027887 | 0.265795 | 0.216122 | 0.216122 | 0.137691 | 0.137691 | 0.137691 | 0 | 0.009053 | 0.308452 | 4,153 | 144 | 96 | 28.840278 | 0.790042 | 0.581267 | 0 | 0.275 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.025 | 0.05 | 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 |
22eb4cf993f76b3498567e66727a6d1354c9f3f6 | 412 | py | Python | epaper/uart/load.py | amancevice/e-Paper | a88031912033cdd09c469f42095da7ad4c92d70c | [
"MIT"
] | null | null | null | epaper/uart/load.py | amancevice/e-Paper | a88031912033cdd09c469f42095da7ad4c92d70c | [
"MIT"
] | null | null | null | epaper/uart/load.py | amancevice/e-Paper | a88031912033cdd09c469f42095da7ad4c92d70c | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import time
from RPi import GPIO # noqa
from waveshare.uart import (
EPaper,
Handshake,
ImportImage,
SetStorageMode,
)
def main():
with EPaper() as paper:
paper.send(Handshake())
time.sleep(2)
paper.send(SetStorageMode(SetStorageMode.TF_MODE))
... | 17.166667 | 58 | 0.628641 | 47 | 412 | 5.319149 | 0.617021 | 0.108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013029 | 0.254854 | 412 | 23 | 59 | 17.913043 | 0.801303 | 0.063107 | 0 | 0 | 0 | 0 | 0.020833 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | true | 0 | 0.294118 | 0 | 0.352941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
22ec35ecb6512326c5479e974e4ffc0ca4d0f767 | 781 | py | Python | categories/models.py | aykutgk/GoNaturalistic | f1f5e529eef94ae1f642e056cdfb01711333a929 | [
"MIT"
] | null | null | null | categories/models.py | aykutgk/GoNaturalistic | f1f5e529eef94ae1f642e056cdfb01711333a929 | [
"MIT"
] | null | null | null | categories/models.py | aykutgk/GoNaturalistic | f1f5e529eef94ae1f642e056cdfb01711333a929 | [
"MIT"
] | null | null | null | from django.db import models
#Category Model##############
class Category(models.Model):
category_name = models.CharField(max_length=40, verbose_name="Name",unique=True)
category_description = models.CharField("Description",max_length=100)
category_style = models.CharField("Style", max_length=40,defau... | 37.190476 | 88 | 0.619718 | 84 | 781 | 5.547619 | 0.47619 | 0.077253 | 0.04721 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017742 | 0.206146 | 781 | 20 | 89 | 39.05 | 0.733871 | 0.017926 | 0 | 0 | 0 | 0 | 0.080282 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
22ef636b4c81cb23a990e929ba80f6e7bbfec169 | 468 | py | Python | baekjoon/python/fibonacci_5_10870.py | yskang/AlgorithmPractice | 31b76e38b4c2f1e3e29fb029587662a745437912 | [
"MIT"
] | null | null | null | baekjoon/python/fibonacci_5_10870.py | yskang/AlgorithmPractice | 31b76e38b4c2f1e3e29fb029587662a745437912 | [
"MIT"
] | 1 | 2019-11-04T06:44:04.000Z | 2019-11-04T06:46:55.000Z | baekjoon/python/fibonacci_5_10870.py | yskang/AlgorithmPractice | 31b76e38b4c2f1e3e29fb029587662a745437912 | [
"MIT"
] | null | null | null | # Title: 피보나치 수 5
# Link: https://www.acmicpc.net/problem/10870
import sys
sys.setrecursionlimit(10 ** 6)
read_single_int = lambda: int(sys.stdin.readline().strip())
def get_fibonacci(n: int):
if n == 0:
return 0
if n == 1:
return 1
return get_fibonacci(n-1) + get_fibonacci(n-2)
def ... | 15.6 | 59 | 0.628205 | 71 | 468 | 3.915493 | 0.507042 | 0.172662 | 0.18705 | 0.136691 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041551 | 0.228632 | 468 | 30 | 60 | 15.6 | 0.728532 | 0.126068 | 0 | 0 | 0 | 0 | 0.019656 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.0625 | 0.0625 | 0.5 | 0.0625 | 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 |
22fd4ae94462c44d45af2428589062dc90f6dfc1 | 1,546 | py | Python | Django/Video_Project/Mission/DjangoMission/App/migrations/0001_initial.py | pyforspider/LearningLog | ac5988d7fbb0d07d6e7485f9050250af5bcba089 | [
"MIT"
] | null | null | null | Django/Video_Project/Mission/DjangoMission/App/migrations/0001_initial.py | pyforspider/LearningLog | ac5988d7fbb0d07d6e7485f9050250af5bcba089 | [
"MIT"
] | 18 | 2020-02-12T01:18:12.000Z | 2022-03-12T00:42:15.000Z | Django/Video_Project/Mission/DjangoMission/App/migrations/0001_initial.py | pyforspider/LearningLog | ac5988d7fbb0d07d6e7485f9050250af5bcba089 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.3 on 2019-08-02 08:16
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Grade',
fields=[
... | 36.809524 | 114 | 0.576326 | 163 | 1,546 | 5.319018 | 0.380368 | 0.036909 | 0.048443 | 0.076125 | 0.471742 | 0.407151 | 0.407151 | 0.407151 | 0.407151 | 0.407151 | 0 | 0.020739 | 0.282665 | 1,546 | 41 | 115 | 37.707317 | 0.761046 | 0.029107 | 0 | 0.441176 | 1 | 0 | 0.073382 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.176471 | 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 |
22fed9287cd8799b7459d9bced24560eb13327a0 | 3,209 | py | Python | src/test_models.py | kahvel/MAProject | 1c17d0c3fde6d9acc7dd3861f926e8af0ddac222 | [
"MIT"
] | null | null | null | src/test_models.py | kahvel/MAProject | 1c17d0c3fde6d9acc7dd3861f926e8af0ddac222 | [
"MIT"
] | null | null | null | src/test_models.py | kahvel/MAProject | 1c17d0c3fde6d9acc7dd3861f926e8af0ddac222 | [
"MIT"
] | null | null | null | from main import normaliseAndScale, readData, binariseLabels, getTrueLabels, buildDataMatrix, removePacketsAfterChange, printMetrics
from voting import Voting
import pickle
from sklearn import metrics
from matplotlib import pyplot as plt
import matplotlib2tikz
# models = {
# "boost": dict(),
# "logistic": dict... | 33.427083 | 132 | 0.652228 | 439 | 3,209 | 4.644647 | 0.259681 | 0.066209 | 0.082393 | 0.064738 | 0.271702 | 0.212849 | 0.095145 | 0.095145 | 0.047082 | 0.047082 | 0 | 0.041269 | 0.184481 | 3,209 | 95 | 133 | 33.778947 | 0.737868 | 0.197258 | 0 | 0.032258 | 0 | 0 | 0.094642 | 0.018772 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.096774 | null | null | 0.112903 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
fe035508b62418e35136c8cf2c6505b19750cc26 | 430 | py | Python | api/migrations/0024_gradingbatch_things_to_grade.py | minneapolis-edu/web-autograder | 96e8e976166576a396ac7b6f6fb978d62c20d665 | [
"Unlicense"
] | 1 | 2019-02-27T00:38:08.000Z | 2019-02-27T00:38:08.000Z | api/migrations/0024_gradingbatch_things_to_grade.py | minneapolis-edu/web-autograder | 96e8e976166576a396ac7b6f6fb978d62c20d665 | [
"Unlicense"
] | 5 | 2020-02-11T23:32:47.000Z | 2022-03-02T02:54:52.000Z | api/migrations/0024_gradingbatch_things_to_grade.py | minneapolis-edu/web-autograder | 96e8e976166576a396ac7b6f6fb978d62c20d665 | [
"Unlicense"
] | null | null | null | # Generated by Django 2.1.1 on 2018-10-24 16:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0023_auto_20181024_1608'),
]
operations = [
migrations.AddField(
model_name='gradingbatch',
name='things_to_g... | 21.5 | 49 | 0.604651 | 46 | 430 | 5.5 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104575 | 0.288372 | 430 | 19 | 50 | 22.631579 | 0.722222 | 0.104651 | 0 | 0 | 1 | 0 | 0.138381 | 0.060052 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fe03a8674697eb373ded38cfd8974510c2b228b9 | 1,061 | py | Python | opencity/fetcher/shp_fetcher.py | KonradUdoHannes/konstanz-open-data-api | cfd2cc0c3a054600195069655882e7cc450ead61 | [
"MIT"
] | null | null | null | opencity/fetcher/shp_fetcher.py | KonradUdoHannes/konstanz-open-data-api | cfd2cc0c3a054600195069655882e7cc450ead61 | [
"MIT"
] | null | null | null | opencity/fetcher/shp_fetcher.py | KonradUdoHannes/konstanz-open-data-api | cfd2cc0c3a054600195069655882e7cc450ead61 | [
"MIT"
] | null | null | null | import json
import requests
from pandas import pandas as pd
import geopandas as gpd # install
class shpFetcher:
"""
SHPFetcher: fetches GeoData
"""
def __init__(self):
self.flag_final = True
def parse_geo(self, url):
"""
parses data from url to dataframe
PARAMETE... | 20.403846 | 51 | 0.497644 | 109 | 1,061 | 4.724771 | 0.458716 | 0.087379 | 0.100971 | 0.08932 | 0.23301 | 0.23301 | 0.23301 | 0.23301 | 0.23301 | 0.23301 | 0 | 0 | 0.392083 | 1,061 | 51 | 52 | 20.803922 | 0.79845 | 0.363808 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.25 | 0 | 0.6875 | 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 |
fe03c4164ab5b35f5de90f25a8bbdb10b7e286bd | 2,913 | py | Python | .qt_for_python/uic/runAnalysisInput2.py | open-pulse/OpenPulse | ef49cd1ff672821c4b57729c0ef9f4ff5a83eadf | [
"MIT"
] | 23 | 2020-01-14T12:49:11.000Z | 2021-11-10T05:19:29.000Z | .qt_for_python/uic/runAnalysisInput2.py | open-pulse/OpenPulse | ef49cd1ff672821c4b57729c0ef9f4ff5a83eadf | [
"MIT"
] | 101 | 2020-01-23T19:29:00.000Z | 2022-03-15T17:56:23.000Z | .qt_for_python/uic/runAnalysisInput2.py | open-pulse/OpenPulse | ef49cd1ff672821c4b57729c0ef9f4ff5a83eadf | [
"MIT"
] | 3 | 2020-01-14T12:49:26.000Z | 2022-01-13T02:06:53.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'c:\Users\Kula\Petrobras\OpenPulse\data\user_input\ui\Analysis\runAnalysisInput2.ui'
#
# Created by: PyQt5 UI code generator 5.15.0
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this f... | 44.815385 | 192 | 0.69413 | 359 | 2,913 | 5.529248 | 0.362117 | 0.077078 | 0.063476 | 0.02267 | 0.380856 | 0.289169 | 0.138035 | 0.104786 | 0.056423 | 0.056423 | 0 | 0.037489 | 0.185033 | 2,913 | 64 | 193 | 45.515625 | 0.797388 | 0.118091 | 0 | 0.2 | 1 | 0 | 0.070285 | 0.021476 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.02 | 0 | 0.08 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fe07ef4bca81f7fa4ba397b282524cb4990fbc85 | 355 | py | Python | geokey/subsets/serializers.py | chabies/config_socialauth_geokey | cbb3248847f6ad2d6c95752976f5161557b1db2e | [
"Apache-2.0"
] | null | null | null | geokey/subsets/serializers.py | chabies/config_socialauth_geokey | cbb3248847f6ad2d6c95752976f5161557b1db2e | [
"Apache-2.0"
] | null | null | null | geokey/subsets/serializers.py | chabies/config_socialauth_geokey | cbb3248847f6ad2d6c95752976f5161557b1db2e | [
"Apache-2.0"
] | null | null | null | """Serializers for subsets."""
from rest_framework.serializers import ModelSerializer
from geokey.subsets.models import Subset
class SubsetSerializer(ModelSerializer):
"""Serializer for a subset."""
class Meta:
"""Serializer meta."""
model = Subset
depth = 1
fields = ('id',... | 20.882353 | 57 | 0.653521 | 35 | 355 | 6.6 | 0.685714 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003623 | 0.222535 | 355 | 16 | 58 | 22.1875 | 0.833333 | 0.185915 | 0 | 0 | 0 | 0 | 0.087912 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.571429 | 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 |
fe1049b1af66288bb7023a19759f9270281fb95c | 288 | py | Python | tests/conftest.py | gradhep/smooth | 9ed6f1d622fb5346c46f1b9f62aed886b73fe09a | [
"BSD-3-Clause"
] | 4 | 2020-05-18T17:43:07.000Z | 2020-07-13T12:05:10.000Z | tests/conftest.py | gradhep/relaxed | 9ed6f1d622fb5346c46f1b9f62aed886b73fe09a | [
"BSD-3-Clause"
] | 13 | 2021-05-13T20:59:55.000Z | 2022-03-25T12:04:44.000Z | tests/conftest.py | gradhep/relaxed | 9ed6f1d622fb5346c46f1b9f62aed886b73fe09a | [
"BSD-3-Clause"
] | 3 | 2020-05-21T13:24:10.000Z | 2021-04-22T12:36:33.000Z | import jax.numpy as jnp
import pytest
from dummy_pyhf import uncorrelated_background
@pytest.fixture
def example_model():
return uncorrelated_background(
signal_data=jnp.asarray([5, 5]),
bkg_data=jnp.asarray([50, 50]),
bkg_uncerts=jnp.asarray([5, 5]),
)
| 22.153846 | 46 | 0.694444 | 39 | 288 | 4.948718 | 0.589744 | 0.15544 | 0.145078 | 0.124352 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0.194444 | 288 | 12 | 47 | 24 | 0.797414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | true | 0 | 0.3 | 0.1 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fe1074b8b54ba86cb1a9f7e9209c71496c574c4d | 1,174 | py | Python | release/stubs.min/System/Windows/Forms/__init___parts/ToolStripItemImageRenderEventArgs.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/System/Windows/Forms/__init___parts/ToolStripItemImageRenderEventArgs.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/System/Windows/Forms/__init___parts/ToolStripItemImageRenderEventArgs.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | class ToolStripItemImageRenderEventArgs(ToolStripItemRenderEventArgs):
"""
Provides data for the System.Windows.Forms.ToolStripRenderer.RenderItemImage event.
ToolStripItemImageRenderEventArgs(g: Graphics,item: ToolStripItem,imageRectangle: Rectangle)
ToolStripItemImageRenderEventArgs(g: Graphics,it... | 26.681818 | 107 | 0.710392 | 112 | 1,174 | 7.321429 | 0.383929 | 0.073171 | 0.063415 | 0.126829 | 0.514634 | 0.434146 | 0.346341 | 0.290244 | 0.146341 | 0.146341 | 0 | 0 | 0.191652 | 1,174 | 43 | 108 | 27.302326 | 0.864067 | 0.386712 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
fe1232690ea85452be6c38d84d4dc4fe40a872d9 | 403 | py | Python | users/migrations/0004_alter_avatar_content.py | herschel-ma/BlogApp | 30182bafea9eb3083759d5c4b97389e6efa115bb | [
"MIT"
] | 2 | 2021-11-08T08:03:08.000Z | 2021-12-17T09:53:50.000Z | users/migrations/0004_alter_avatar_content.py | herschel-ma/BlogApp | 30182bafea9eb3083759d5c4b97389e6efa115bb | [
"MIT"
] | null | null | null | users/migrations/0004_alter_avatar_content.py | herschel-ma/BlogApp | 30182bafea9eb3083759d5c4b97389e6efa115bb | [
"MIT"
] | 1 | 2021-11-08T08:03:09.000Z | 2021-11-08T08:03:09.000Z | # Generated by Django 3.2.8 on 2021-12-16 05:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0003_alter_avatar_content'),
]
operations = [
migrations.AlterField(
model_name='avatar',
name='content',
... | 21.210526 | 66 | 0.593052 | 45 | 403 | 5.2 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065068 | 0.275434 | 403 | 18 | 67 | 22.388889 | 0.736301 | 0.111663 | 0 | 0 | 1 | 0 | 0.16573 | 0.070225 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fe1bd24618140ff079485b11b278912dff3b2d09 | 732 | py | Python | peewee-learn/modules/create_person.py | ljm516/python-repo | a1071cbf4e4a021cc1ccd902edd4a60246ea4fcc | [
"Apache-2.0"
] | null | null | null | peewee-learn/modules/create_person.py | ljm516/python-repo | a1071cbf4e4a021cc1ccd902edd4a60246ea4fcc | [
"Apache-2.0"
] | 6 | 2020-03-24T16:48:36.000Z | 2022-02-11T03:42:50.000Z | peewee-learn/modules/create_person.py | ljm516/python-repo | a1071cbf4e4a021cc1ccd902edd4a60246ea4fcc | [
"Apache-2.0"
] | null | null | null | from datetime import date
from peewee import *
db = SqliteDatabase('people.db')
class Person(Model):
name = CharField()
birthday = DateField()
is_relative = BooleanField()
class Meta:
database = db
class Pet(Model):
owner = ForeignKeyField(Person, related_name='pets')
name = CharF... | 20.333333 | 84 | 0.68306 | 96 | 732 | 5.114583 | 0.479167 | 0.081466 | 0.069246 | 0.077393 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035176 | 0.184426 | 732 | 35 | 85 | 20.914286 | 0.78727 | 0.021858 | 0 | 0.285714 | 0 | 0 | 0.037868 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.095238 | 0 | 0.571429 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
fe1e733424905a1e992f3317bfa2e84254defb65 | 729 | py | Python | paper-topo/ph201.py | Cyphysecurity/ICS-SDN-1 | c04d9e7bb7ad945166e969e071a2f82fb5bd18bf | [
"MIT"
] | 4 | 2019-12-17T08:59:57.000Z | 2022-01-09T19:52:27.000Z | paper-topo/ph201.py | Cyphysecurity/ICS-SDN-1 | c04d9e7bb7ad945166e969e071a2f82fb5bd18bf | [
"MIT"
] | 3 | 2020-08-13T16:05:46.000Z | 2021-10-17T07:49:33.000Z | paper-topo/ph201.py | Cyphysecurity/ICS-SDN-1 | c04d9e7bb7ad945166e969e071a2f82fb5bd18bf | [
"MIT"
] | 4 | 2017-06-14T23:41:50.000Z | 2021-03-01T18:54:03.000Z | from minicps.devices import PLC
from utils import *
import time
import signal
import sys
SENSOR_ADDR = IP['ph201']
PH201 = ('PH201', 2)
class Ph201(PLC):
def sigint_handler(self, sig, frame):
print "I received a SIGINT!"
sys.exit(0)
def pre_loop(self, sleep=0.1):
signal.signal(signal.SIGINT, self.sigint_ha... | 23.516129 | 102 | 0.733882 | 111 | 729 | 4.630631 | 0.468468 | 0.093385 | 0.070039 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060413 | 0.137174 | 729 | 30 | 103 | 24.3 | 0.756757 | 0 | 0 | 0 | 0 | 0 | 0.106996 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.217391 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a3af3b492b4541e114a5788c22b2bbbad740b0ab | 13,866 | py | Python | trwwapi/rainfall/views.py | 3rww/data-api | 38ef1eeb4bd62208259ed0e45eae62f0a2b1ecc6 | [
"Apache-2.0"
] | 1 | 2021-08-05T16:44:21.000Z | 2021-08-05T16:44:21.000Z | trwwapi/rainfall/views.py | 3rww/data-api | 38ef1eeb4bd62208259ed0e45eae62f0a2b1ecc6 | [
"Apache-2.0"
] | 12 | 2020-11-19T17:31:32.000Z | 2022-02-10T08:43:57.000Z | trwwapi/rainfall/views.py | 3rww/data-api | 38ef1eeb4bd62208259ed0e45eae62f0a2b1ecc6 | [
"Apache-2.0"
] | 1 | 2021-08-05T16:44:24.000Z | 2021-08-05T16:44:24.000Z | from datetime import timedelta
from collections import OrderedDict
# from django.contrib.auth.models import User, Group
from django.utils.safestring import mark_safe
from django.core.paginator import Paginator
from django.utils.functional import cached_property
from django_filters import filters
from django.contrib.gis... | 37.885246 | 804 | 0.702438 | 1,597 | 13,866 | 5.981841 | 0.251096 | 0.018424 | 0.028473 | 0.014236 | 0.292578 | 0.285669 | 0.262849 | 0.244635 | 0.222129 | 0.20224 | 0 | 0.007038 | 0.190538 | 13,866 | 366 | 805 | 37.885246 | 0.844084 | 0.277297 | 0 | 0.248826 | 0 | 0.004695 | 0.172792 | 0.002538 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061033 | false | 0 | 0.089202 | 0.046948 | 0.57277 | 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 |
a3b3de56401a0ba62d44751c04c55f2229c3a896 | 4,148 | py | Python | rospy/openarms_perception/src/detection.py | ARTITROBOTICS/OpenArms-Research_Project | 7562a16acb01a43693d6cf4476887aa33eb96120 | [
"MIT"
] | 2 | 2018-05-20T23:18:53.000Z | 2018-08-18T03:44:23.000Z | rospy/openarms_perception/src/detection.py | ARTITLABS/OpenArms_Research | 7562a16acb01a43693d6cf4476887aa33eb96120 | [
"MIT"
] | null | null | null | rospy/openarms_perception/src/detection.py | ARTITLABS/OpenArms_Research | 7562a16acb01a43693d6cf4476887aa33eb96120 | [
"MIT"
] | 2 | 2020-07-10T17:12:47.000Z | 2022-02-07T04:18:44.000Z | #!/usr/bin/env python
import std_msgs, rospy
rospy.init_node('main_dealer', anonymous=True)
res_publisher = rospy.Publisher('result_detection', std_msgs.msg.Float64, queue_size=10)
import sys, os, cv2, time
import matplotlib.pyplot as plt
import numpy as np
import tensorflow as tf
from keras.backend import tensorflow... | 35.452991 | 119 | 0.619576 | 559 | 4,148 | 4.443649 | 0.484794 | 0.014493 | 0.014493 | 0.021739 | 0.101852 | 0.040258 | 0 | 0 | 0 | 0 | 0 | 0.047988 | 0.221311 | 4,148 | 116 | 120 | 35.758621 | 0.721053 | 0.014224 | 0 | 0.067416 | 0 | 0 | 0.192317 | 0.005628 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.078652 | null | null | 0.078652 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a3befc0cd29d7ed19179cd295cfddfc2806507e5 | 9,832 | py | Python | src/emo_cls.py | wojtekwalczak/EmoClassifier | 035e7110d8c7ba486b56ae98eb3abcc832cc7519 | [
"MIT"
] | 1 | 2018-09-21T21:09:00.000Z | 2018-09-21T21:09:00.000Z | src/emo_cls.py | wojtekwalczak/EmoClassifier | 035e7110d8c7ba486b56ae98eb3abcc832cc7519 | [
"MIT"
] | null | null | null | src/emo_cls.py | wojtekwalczak/EmoClassifier | 035e7110d8c7ba486b56ae98eb3abcc832cc7519 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- encoding: utf-8
"""
Classify the emotional affinity of sentences.
"""
from __future__ import division
import re
import gzip
import codecs
import msgpack
import nltk
from feature_extraction import FeatureExtraction, emoticons
from cls_cache import ClsCache
from corpus_reader import ... | 30.345679 | 79 | 0.580553 | 1,206 | 9,832 | 4.478441 | 0.179934 | 0.029809 | 0.026477 | 0.036104 | 0.272172 | 0.179411 | 0.121274 | 0.107202 | 0.07943 | 0.058508 | 0 | 0.005846 | 0.338893 | 9,832 | 323 | 80 | 30.439628 | 0.825077 | 0.06784 | 0 | 0.179348 | 0 | 0 | 0.023367 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.054348 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a3c0b94e9be8d8e383a41481060fccfb7d78e3ed | 2,295 | py | Python | examples/dfp/v201602/user_service/deactivate_users.py | wbrp/googleads-python-lib | c0f8ce6c4acfe88ce8f913a4f0e0e92b548e1022 | [
"Apache-2.0"
] | 1 | 2020-05-23T11:32:32.000Z | 2020-05-23T11:32:32.000Z | examples/dfp/v201602/user_service/deactivate_users.py | wbrp/googleads-python-lib | c0f8ce6c4acfe88ce8f913a4f0e0e92b548e1022 | [
"Apache-2.0"
] | null | null | null | examples/dfp/v201602/user_service/deactivate_users.py | wbrp/googleads-python-lib | c0f8ce6c4acfe88ce8f913a4f0e0e92b548e1022 | [
"Apache-2.0"
] | 2 | 2018-04-20T02:16:33.000Z | 2020-11-12T20:58:54.000Z | #!/usr/bin/python
#
# Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | 31.875 | 77 | 0.683224 | 294 | 2,295 | 5.244898 | 0.527211 | 0.038911 | 0.016861 | 0.020752 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008233 | 0.2061 | 2,295 | 71 | 78 | 32.323944 | 0.83809 | 0.346405 | 0 | 0 | 0 | 0 | 0.285714 | 0.026046 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.033333 | null | null | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a3c441926a9704cbe6c245d7ec833471b3a93ee8 | 2,126 | py | Python | nba_api/stats/endpoints/draftcombinespotshooting.py | adureja/nba_api | 2e1f8ee55e513689aea410bf663a09a3d7c34283 | [
"MIT"
] | 1 | 2019-02-20T19:19:19.000Z | 2019-02-20T19:19:19.000Z | nba_api/stats/endpoints/draftcombinespotshooting.py | adureja/nba_api | 2e1f8ee55e513689aea410bf663a09a3d7c34283 | [
"MIT"
] | null | null | null | nba_api/stats/endpoints/draftcombinespotshooting.py | adureja/nba_api | 2e1f8ee55e513689aea410bf663a09a3d7c34283 | [
"MIT"
] | 2 | 2020-08-09T06:00:19.000Z | 2022-03-04T16:39:30.000Z | from nba_api.stats.endpoints._base import Endpoint
from nba_api.stats.library.http import NBAStatsHTTP
from nba_api.stats.library.parameters import LeagueID, Season
class DraftCombineSpotShooting(Endpoint):
endpoint = 'draftcombinespotshooting'
expected_data = {'Results': ['TEMP_PLAYER_ID', 'PLAYER_ID', 'FIRS... | 92.434783 | 1,312 | 0.76905 | 285 | 2,126 | 5.154386 | 0.185965 | 0.061266 | 0.020422 | 0.030633 | 0.029952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121355 | 2,126 | 22 | 1,313 | 96.636364 | 0.786403 | 0 | 0 | 0 | 0 | 0 | 0.531985 | 0.364534 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.157895 | 0 | 0.368421 | 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 |
a3c78df1033356da6c3175b104372add83506b4d | 3,740 | py | Python | cls/models/build.py | Frank-Abagnal/HRFormer | d7d362770de8648f8e0a379a71cee25f42954503 | [
"MIT"
] | 254 | 2021-08-13T10:05:22.000Z | 2022-03-25T09:21:45.000Z | cls/models/build.py | Sense-X/HRFormer | 1245b88b5824fbd8cdb358b5ee909a4e537a2ef5 | [
"MIT"
] | 17 | 2021-09-08T01:40:49.000Z | 2022-03-23T10:53:47.000Z | cls/models/build.py | Sense-X/HRFormer | 1245b88b5824fbd8cdb358b5ee909a4e537a2ef5 | [
"MIT"
] | 48 | 2021-08-13T14:06:58.000Z | 2022-03-30T02:41:26.000Z | # --------------------------------------------------------
# High Resolution Transformer
# Copyright (c) 2021 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Written by Ze Liu
# Modified by Rao Fu, RainbowSecret
# --------------------------------------------------------
from .swin_transformer im... | 39.787234 | 70 | 0.642246 | 454 | 3,740 | 5.035242 | 0.196035 | 0.245407 | 0.098425 | 0.045932 | 0.413823 | 0.349956 | 0.23622 | 0.195538 | 0.164917 | 0.107612 | 0 | 0.002822 | 0.241979 | 3,740 | 93 | 71 | 40.215054 | 0.803527 | 0.074599 | 0 | 0.077922 | 0 | 0 | 0.013901 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012987 | false | 0 | 0.064935 | 0 | 0.090909 | 0.012987 | 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 |
a3ca7218bbfa49b622bd54cd45cd279474313587 | 641 | py | Python | internalCheck/internal_checker.py | dario617/RSE-Puppy-bot | f25df7364def0f58ce7abf9f646bb3acbf25b646 | [
"MIT"
] | null | null | null | internalCheck/internal_checker.py | dario617/RSE-Puppy-bot | f25df7364def0f58ce7abf9f646bb3acbf25b646 | [
"MIT"
] | null | null | null | internalCheck/internal_checker.py | dario617/RSE-Puppy-bot | f25df7364def0f58ce7abf9f646bb3acbf25b646 | [
"MIT"
] | 1 | 2019-11-27T15:43:00.000Z | 2019-11-27T15:43:00.000Z | #coding: utf-8
import os, time, sys, sender
def main(ip, port):
while 1:
try:
print "\n[*] Enviando información."
run(ip, port)
time.sleep(5)
except KeyboardInterrupt: #cierro servicio con ctrl+c, pero que se vea lindo
print "\n[*] Cerrando Micro-Servicio ..."
sys.exit(1)
def run(ip, port):
try:
... | 22.103448 | 78 | 0.628705 | 106 | 641 | 3.716981 | 0.59434 | 0.091371 | 0.050761 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033203 | 0.201248 | 641 | 29 | 79 | 22.103448 | 0.736328 | 0.096724 | 0 | 0.08 | 0 | 0 | 0.209343 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.04 | null | null | 0.16 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a3cab42c6cc3867f93df0a45378d85043aead8e7 | 901 | py | Python | tests/test_ttcal_tags.py | datakortet/ttcal | 0df8000d1b4e6d64d25a0fe1dcdbd328dcc5a8af | [
"MIT"
] | null | null | null | tests/test_ttcal_tags.py | datakortet/ttcal | 0df8000d1b4e6d64d25a0fe1dcdbd328dcc5a8af | [
"MIT"
] | 3 | 2020-03-06T10:36:41.000Z | 2022-01-19T16:21:20.000Z | tests/test_ttcal_tags.py | datakortet/ttcal | 0df8000d1b4e6d64d25a0fe1dcdbd328dcc5a8af | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from ttcal import Today, Year, Month, Day
from ttcal.templatetags.ttcal_tags import surround, chop_at_now, previous, is_current
def test_surround():
t = Today()
assert list(surround(t)) == [t-1, t]
assert list(surround(t, '2')) == [t-2, t-1, t, t+1]
def test_chop_at_now():
y ... | 25.027778 | 85 | 0.592675 | 152 | 901 | 3.348684 | 0.197368 | 0.141454 | 0.10609 | 0.117878 | 0.094303 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031206 | 0.217536 | 901 | 35 | 86 | 25.742857 | 0.69078 | 0.023307 | 0 | 0.08 | 0 | 0 | 0.002278 | 0 | 0 | 0 | 0 | 0 | 0.56 | 1 | 0.16 | false | 0 | 0.08 | 0 | 0.24 | 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 |
a3cd583a56c9f3562d7300c63c089cac812a122c | 716 | py | Python | python/easy/strings/string_validators.py | Razor-87/hackerrank | b82dd1f97eeb3c2a9141b196b30b2820acd050e7 | [
"Unlicense"
] | null | null | null | python/easy/strings/string_validators.py | Razor-87/hackerrank | b82dd1f97eeb3c2a9141b196b30b2820acd050e7 | [
"Unlicense"
] | null | null | null | python/easy/strings/string_validators.py | Razor-87/hackerrank | b82dd1f97eeb3c2a9141b196b30b2820acd050e7 | [
"Unlicense"
] | null | null | null | # -*- coding: utf-8 -*-
from typing import Tuple
def string_validators(string: str) -> Tuple[bool, ...]:
"""
>>> string_validators('qA2')
(True, True, True, True, True)
>>> string_validators('123')
(True, False, True, False, False)
"""
dict_methods = {
'isalnum': (char.isalnum() fo... | 28.64 | 55 | 0.593575 | 85 | 716 | 4.835294 | 0.435294 | 0.085158 | 0.109489 | 0.182482 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009074 | 0.230447 | 716 | 24 | 56 | 29.833333 | 0.736842 | 0.202514 | 0 | 0 | 0 | 0 | 0.082873 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.076923 | 0 | 0.230769 | 0.076923 | 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 |
a3ced2bbe3f300d128e05f38e7bcb481034a82d3 | 2,322 | py | Python | partialsmiles/exceptions.py | baoilleach/partialsmiles | f9856cd7a153450b2686c435f7a3a6f286a72e7f | [
"MIT"
] | 18 | 2019-09-03T13:04:32.000Z | 2022-03-23T08:21:54.000Z | partialsmiles/exceptions.py | baoilleach/partialsmiles | f9856cd7a153450b2686c435f7a3a6f286a72e7f | [
"MIT"
] | 4 | 2022-03-22T14:59:03.000Z | 2022-03-23T19:59:24.000Z | partialsmiles/exceptions.py | baoilleach/partialsmiles | f9856cd7a153450b2686c435f7a3a6f286a72e7f | [
"MIT"
] | 3 | 2020-07-05T18:34:59.000Z | 2022-03-23T16:40:12.000Z | # MIT License
#
# Copyright (c) 2019 Noel O'Boyle
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merg... | 39.355932 | 80 | 0.708872 | 321 | 2,322 | 5.102804 | 0.429907 | 0.043956 | 0.058608 | 0.054945 | 0.240537 | 0.240537 | 0.240537 | 0.240537 | 0.240537 | 0.240537 | 0 | 0.002773 | 0.223514 | 2,322 | 58 | 81 | 40.034483 | 0.905713 | 0.77907 | 0 | 0 | 0 | 0 | 0.01467 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0 | 0 | 0.636364 | 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 |
a3d1f66451085630fbf6ae091bb80d19bc65d2fd | 2,042 | py | Python | pycaw/eth.py | Unique-Divine/crypto-apis | c8f577cdef1ba120c0424fcc5be63e710249f8f1 | [
"MIT"
] | null | null | null | pycaw/eth.py | Unique-Divine/crypto-apis | c8f577cdef1ba120c0424fcc5be63e710249f8f1 | [
"MIT"
] | null | null | null | pycaw/eth.py | Unique-Divine/crypto-apis | c8f577cdef1ba120c0424fcc5be63e710249f8f1 | [
"MIT"
] | null | null | null | import dataclasses
import pandas as pd
from typing import Any, Dict, List, Optional, TypedDict, Union
@dataclasses.dataclass
class GasInfo:
"""Transaction gas info in units of wei.
Attributes:
gas_used_wei (int): Gas units (wei) used by the txn.
gas_price_wei (int): Current Ethereuem ga... | 27.972603 | 71 | 0.641528 | 292 | 2,042 | 4.35274 | 0.239726 | 0.033045 | 0.035405 | 0.028324 | 0.519276 | 0.374508 | 0.374508 | 0.374508 | 0.265146 | 0.162077 | 0 | 0.02549 | 0.250735 | 2,042 | 73 | 72 | 27.972603 | 0.805229 | 0.311459 | 0 | 0.358974 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.153846 | false | 0 | 0.076923 | 0.051282 | 0.538462 | 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 |
a3d3111407df794cd2aefde23d54fc44d5bc12f7 | 6,420 | py | Python | sdk/python/pulumi_aws/ec2clientvpn/authorization_rule.py | michael-golden/pulumi-aws | 165e876e166ecab1870e857822247585d78aef64 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/ec2clientvpn/authorization_rule.py | michael-golden/pulumi-aws | 165e876e166ecab1870e857822247585d78aef64 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/ec2clientvpn/authorization_rule.py | michael-golden/pulumi-aws | 165e876e166ecab1870e857822247585d78aef64 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Union
from .. import utilities, tables
class AuthorizationRule... | 53.057851 | 221 | 0.706542 | 836 | 6,420 | 5.101675 | 0.199761 | 0.037984 | 0.067526 | 0.053458 | 0.575381 | 0.547011 | 0.536694 | 0.485111 | 0.458851 | 0.458851 | 0 | 0.001397 | 0.219315 | 6,420 | 120 | 222 | 53.5 | 0.849561 | 0.384735 | 0 | 0.035714 | 1 | 0 | 0.181589 | 0.044451 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.017857 | 0.089286 | 0.035714 | 0.321429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a3d3ef275d784de7dd2e1628be15a8697cd60d2e | 4,815 | py | Python | lib/exabgp/application/netlink.py | bopopescu/exabgp_priv | 25aac31f2b1166350aa40d9f48447173998246b6 | [
"BSD-3-Clause"
] | 2 | 2017-03-20T22:54:40.000Z | 2021-02-24T02:05:38.000Z | lib/exabgp/application/netlink.py | bopopescu/exabgp_priv | 25aac31f2b1166350aa40d9f48447173998246b6 | [
"BSD-3-Clause"
] | null | null | null | lib/exabgp/application/netlink.py | bopopescu/exabgp_priv | 25aac31f2b1166350aa40d9f48447173998246b6 | [
"BSD-3-Clause"
] | 1 | 2020-07-23T16:54:49.000Z | 2020-07-23T16:54:49.000Z | #!/usr/bin/python
import sys
import socket
from exabgp.netlink import NetMask
from exabgp.netlink.message import NetLinkMessage
from exabgp.netlink.attributes import Attributes
from exabgp.netlink.route.link import Link
from exabgp.netlink.route.neighbor import Neighbor
from exabgp.netlink.route.address import Addre... | 30.66879 | 105 | 0.677882 | 706 | 4,815 | 4.553824 | 0.15864 | 0.010575 | 0.009331 | 0.062208 | 0.605288 | 0.562675 | 0.533437 | 0.533437 | 0.521617 | 0.502333 | 0 | 0.018218 | 0.156386 | 4,815 | 156 | 106 | 30.865385 | 0.773264 | 0.162409 | 0 | 0.346154 | 0 | 0 | 0.088778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.086538 | null | null | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a3dbd0ae44beeb2e078b6cc099fc25fafaad3836 | 713 | py | Python | 8-model_summary.py | firebuggirl/neural-networks | 047b206ff2855dd0c4e62062cb8534ebdfb2e29f | [
"MIT"
] | 1 | 2020-10-18T17:33:52.000Z | 2020-10-18T17:33:52.000Z | 8-model_summary.py | firebuggirl/neural-networks | 047b206ff2855dd0c4e62062cb8534ebdfb2e29f | [
"MIT"
] | null | null | null | 8-model_summary.py | firebuggirl/neural-networks | 047b206ff2855dd0c4e62062cb8534ebdfb2e29f | [
"MIT"
] | 1 | 2019-06-28T16:00:33.000Z | 2019-06-28T16:00:33.000Z |
from keras.models import Sequential
from keras.layers import Dense, Activation
import numpy as np
# 10.5, 5, 9.5, 12 => 18.5
model = Sequential()
model.add(Dense(8, activation='relu', input_dim=4))
model.add(Dense(100, activation='relu'))
model.add(Dense(1, activation='linear'))
model.compile(optimizer='adam', lo... | 28.52 | 82 | 0.748948 | 113 | 713 | 4.699115 | 0.59292 | 0.045198 | 0.073446 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028146 | 0.152875 | 713 | 24 | 83 | 29.708333 | 0.850993 | 0.506311 | 0 | 0 | 0 | 0 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a3dd441d60ee7f05e282a854a1e888de1f0b4792 | 1,078 | py | Python | dashboard/apps/dashboard_auth/backends.py | ministryofjustice/moj-product-dashboard | 13657feeedd66ec53b1e886bdfdfb13316704022 | [
"MIT"
] | 6 | 2016-05-22T15:33:34.000Z | 2017-08-04T10:20:36.000Z | dashboard/apps/dashboard_auth/backends.py | ministryofjustice/moj-product-dashboard | 13657feeedd66ec53b1e886bdfdfb13316704022 | [
"MIT"
] | 138 | 2016-05-05T09:50:44.000Z | 2022-02-24T16:19:03.000Z | dashboard/apps/dashboard_auth/backends.py | ministryofjustice/moj-product-dashboard | 13657feeedd66ec53b1e886bdfdfb13316704022 | [
"MIT"
] | 5 | 2016-10-07T19:32:08.000Z | 2021-04-11T06:53:49.000Z | # -*- coding: utf-8 -*-
from django.contrib.auth import backends
from django.core.validators import validate_email, ValidationError
from .models import DashboardUser
class ModelBackend(backends.ModelBackend):
"""
Extending to provide a proxy for user
"""
def get_user(self, user_id):
try:
... | 30.8 | 77 | 0.637291 | 110 | 1,078 | 6.2 | 0.5 | 0.029326 | 0.067449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001307 | 0.290353 | 1,078 | 34 | 78 | 31.705882 | 0.890196 | 0.222635 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.15 | 0.15 | 0 | 0.45 | 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 |
a3e00df10804d3ff8d266615693bdb6ebba7943e | 2,892 | py | Python | bodies/__init___.py | phytonic-systems/phyton | 0428c4beca562e6e17070953896306e8d3ac7b1a | [
"MIT"
] | 3 | 2021-09-15T10:06:48.000Z | 2021-12-13T14:04:06.000Z | bodies/__init___.py | phytonic-systems/phyton | 0428c4beca562e6e17070953896306e8d3ac7b1a | [
"MIT"
] | 1 | 2021-05-15T13:14:34.000Z | 2021-05-15T13:14:34.000Z | bodies/__init___.py | phytonic-systems/phyton | 0428c4beca562e6e17070953896306e8d3ac7b1a | [
"MIT"
] | 1 | 2021-04-30T16:22:14.000Z | 2021-04-30T16:22:14.000Z | from phyton.constants import *
from phyton.vectors import *
class Location:
def __init__(self, M=ME, h=RE, μ=0):
self.M = Mass(M.value)
self.h = Displacement(0, h.value)
print(self.M, self.h)
self.μ = 0
@property
def g(self):
return Acceleration(0, -(G*f... | 25.368421 | 147 | 0.534232 | 385 | 2,892 | 3.955844 | 0.218182 | 0.086671 | 0.064347 | 0.019698 | 0.151018 | 0.130007 | 0.095863 | 0.095863 | 0.095863 | 0.045962 | 0 | 0.019771 | 0.335408 | 2,892 | 113 | 148 | 25.59292 | 0.772633 | 0 | 0 | 0.268817 | 0 | 0 | 0.02267 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.193548 | false | 0.021505 | 0.021505 | 0.129032 | 0.419355 | 0.053763 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a3e17e063cb0bdab148330143994e1d9425e5546 | 12,294 | py | Python | venv/lib/python3.7/site-packages/h5py/_hl/base.py | aMp37/SimpleHTR | 2a8bad2990d83caaa004530cd3b3d87c5bd38ab4 | [
"MIT"
] | 8 | 2019-05-29T09:38:30.000Z | 2021-01-20T03:36:59.000Z | Lib/site-packages/h5py/_hl/base.py | caiyongji/Anaconda-py36.5-tensorflow-built-env | f4eb40b5ca3f49dfc929ff3ad2b4bb877e9663e2 | [
"PSF-2.0"
] | 12 | 2021-03-09T03:01:16.000Z | 2022-03-11T23:59:36.000Z | venv/Lib/site-packages/h5py/_hl/base.py | jaykang-heo/poseAnalysis | 34cfac4a889e2c973651c1c07740ea0908542d68 | [
"MIT"
] | 1 | 2020-07-17T12:49:49.000Z | 2020-07-17T12:49:49.000Z | # This file is part of h5py, a Python interface to the HDF5 library.
#
# http://www.h5py.org
#
# Copyright 2008-2013 Andrew Collette and contributors
#
# License: Standard 3-clause BSD; see "license.txt" for full license terms
# and contributor agreement.
"""
Implements operations common to all high-lev... | 28.132723 | 80 | 0.606881 | 1,522 | 12,294 | 4.793035 | 0.242444 | 0.027416 | 0.015079 | 0.00891 | 0.221385 | 0.151885 | 0.095545 | 0.062783 | 0.046607 | 0.025223 | 0 | 0.009592 | 0.30462 | 12,294 | 436 | 81 | 28.197248 | 0.843724 | 0.376281 | 0 | 0.375587 | 0 | 0 | 0.01998 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.197183 | false | 0.00939 | 0.065728 | 0.018779 | 0.553991 | 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 |
a3f3b29816df7aa8f84ebab341ee23d0ce18e962 | 1,249 | py | Python | script.py | wesleytian/mint_transaction_filter | 2a99ddbcdbf2875390e92c572198853b6e547cb5 | [
"MIT"
] | null | null | null | script.py | wesleytian/mint_transaction_filter | 2a99ddbcdbf2875390e92c572198853b6e547cb5 | [
"MIT"
] | null | null | null | script.py | wesleytian/mint_transaction_filter | 2a99ddbcdbf2875390e92c572198853b6e547cb5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from datetime import datetime
import csv
transactions = open("transactions.csv")
transfer_names_raw = ["ACH Withdrawal DISCOVER", "BA ELECTRONIC PAYMENT ", "INTERNET PAYMENT - THANK YOU ", "ACH Withdrawal CHASE CREDIT CRD", "Transfer To CHECKING 0798", "Transfer From ONLINE SA... | 34.694444 | 328 | 0.710969 | 171 | 1,249 | 5.05848 | 0.491228 | 0.075145 | 0.052023 | 0.076301 | 0.062428 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023742 | 0.156926 | 1,249 | 35 | 329 | 35.685714 | 0.797721 | 0.176141 | 0 | 0 | 0 | 0 | 0.407262 | 0 | 0 | 0 | 0 | 0.028571 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 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 |
a3f8d2ba23d460461bfa0b413650c957eaa0b117 | 30,212 | py | Python | atom/proton/python/proton_api/models/variable_annuity_request.py | AbhiGupta03/SDK | f3a61aae7a847f07f0c22a154ca88dc378e9d25e | [
"Apache-2.0"
] | 11 | 2019-04-16T02:11:17.000Z | 2021-12-16T22:51:40.000Z | atom/proton/python/proton_api/models/variable_annuity_request.py | AbhiGupta03/SDK | f3a61aae7a847f07f0c22a154ca88dc378e9d25e | [
"Apache-2.0"
] | 81 | 2019-11-19T23:24:28.000Z | 2022-03-28T11:35:47.000Z | atom/proton/python/proton_api/models/variable_annuity_request.py | AbhiGupta03/SDK | f3a61aae7a847f07f0c22a154ca88dc378e9d25e | [
"Apache-2.0"
] | 11 | 2020-07-08T02:29:56.000Z | 2022-03-28T10:05:33.000Z | # coding: utf-8
"""
Hydrogen Proton API
Financial engineering module of Hydrogen Atom # noqa: E501
OpenAPI spec version: 1.9.2
Contact: info@hydrogenplatform.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
from proton_... | 35.048724 | 646 | 0.652952 | 3,441 | 30,212 | 5.477477 | 0.055217 | 0.050085 | 0.160441 | 0.137521 | 0.681717 | 0.55157 | 0.4835 | 0.414474 | 0.290482 | 0.171742 | 0 | 0.018972 | 0.268999 | 30,212 | 861 | 647 | 35.089431 | 0.834458 | 0.320965 | 0 | 0.122549 | 1 | 0 | 0.148588 | 0.02759 | 0 | 0 | 0 | 0 | 0 | 1 | 0.147059 | false | 0 | 0.009804 | 0 | 0.247549 | 0.004902 | 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 |
a3f99134276a86f9903404124b184400ba55b1c3 | 6,272 | py | Python | satchmo/apps/tax/templatetags/satchmo_tax.py | pyarun/satchmo | 78fc9a923aada312924c1476e4653ee6527c11ef | [
"BSD-3-Clause"
] | 16 | 2015-03-06T14:42:27.000Z | 2019-12-23T21:37:01.000Z | satchmo/apps/tax/templatetags/satchmo_tax.py | pyarun/satchmo | 78fc9a923aada312924c1476e4653ee6527c11ef | [
"BSD-3-Clause"
] | null | null | null | satchmo/apps/tax/templatetags/satchmo_tax.py | pyarun/satchmo | 78fc9a923aada312924c1476e4653ee6527c11ef | [
"BSD-3-Clause"
] | 8 | 2015-01-28T16:02:37.000Z | 2022-03-03T21:29:40.000Z | from decimal import Decimal
from django import template
from l10n.utils import moneyfmt
from satchmo_utils.templatetags import get_filter_args
from tax.utils import get_tax_processor
from threaded_multihost.threadlocals import get_thread_variable, set_thread_variable, get_current_user
import logging
log = logging.getL... | 31.36 | 102 | 0.631218 | 703 | 6,272 | 5.506401 | 0.174964 | 0.018083 | 0.022733 | 0.0186 | 0.458538 | 0.425988 | 0.416172 | 0.400155 | 0.400155 | 0.374064 | 0 | 0.00705 | 0.276307 | 6,272 | 199 | 103 | 31.517588 | 0.845781 | 0.024235 | 0 | 0.379845 | 0 | 0 | 0.063699 | 0.004797 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.007752 | 0.054264 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a3fc7a185b27178035fa2e69e56e9700f854c373 | 4,243 | py | Python | afterglow_core/errors/auth.py | SkynetRTN/afterglow-access-server | 3d8d62f622577fdd1ae7b0076cb536251f7bf0cd | [
"Apache-2.0"
] | 2 | 2021-05-24T15:12:07.000Z | 2022-02-17T19:58:16.000Z | afterglow_core/errors/auth.py | SkynetRTN/afterglow-access-server | 3d8d62f622577fdd1ae7b0076cb536251f7bf0cd | [
"Apache-2.0"
] | 1 | 2022-02-27T03:01:06.000Z | 2022-02-27T03:01:06.000Z | afterglow_core/errors/auth.py | SkynetRTN/afterglow-access-server | 3d8d62f622577fdd1ae7b0076cb536251f7bf0cd | [
"Apache-2.0"
] | 2 | 2021-06-08T18:16:40.000Z | 2021-07-09T14:19:49.000Z | """
Afterglow Core: authentication errors
"""
from . import AfterglowError
__all__ = [
'AdminOrSameUserRequiredError', 'AdminRequiredError', 'AuthError',
'CannotDeactivateTheOnlyAdminError', 'CannotDeleteCurrentUserError',
'CannotSetProtectedUserDataError', 'DuplicateUsernameError',
'HttpAuthFailedEr... | 22.68984 | 79 | 0.680886 | 409 | 4,243 | 7.0489 | 0.339853 | 0.078044 | 0.065904 | 0.072147 | 0.209504 | 0.1547 | 0.139091 | 0.039542 | 0.039542 | 0 | 0 | 0.006518 | 0.240632 | 4,243 | 186 | 80 | 22.811828 | 0.888268 | 0.405374 | 0 | 0.085106 | 0 | 0 | 0.392322 | 0.108614 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.021277 | 0.021277 | 0 | 0.829787 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.