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
240a3bdc1d5c63b91d07d527be155ad771e6c02e
7,097
py
Python
backend/fms_core/services/container.py
c3g/freezeman
bc4b6c8a2876e888ce41b7d14127cc22bc2b2143
[ "W3C" ]
2
2021-07-31T13:20:08.000Z
2021-09-28T13:18:55.000Z
backend/fms_core/services/container.py
c3g/freezeman
bc4b6c8a2876e888ce41b7d14127cc22bc2b2143
[ "W3C" ]
71
2021-03-12T22:08:19.000Z
2022-03-25T15:24:40.000Z
backend/fms_core/services/container.py
c3g/freezeman
bc4b6c8a2876e888ce41b7d14127cc22bc2b2143
[ "W3C" ]
null
null
null
from datetime import datetime from django.core.exceptions import ValidationError from fms_core.models import Container from ..containers import CONTAINER_KIND_SPECS def get_container(barcode): container = None errors = [] warnings = [] if barcode: try: container = Container.object...
45.203822
207
0.672397
827
7,097
5.650544
0.140266
0.048791
0.041729
0.022256
0.644768
0.561952
0.479349
0.424995
0.415365
0.376204
0
0
0.247569
7,097
157
208
45.203822
0.875094
0.063266
0
0.570248
0
0.033058
0.21036
0.041861
0
0
0
0.006369
0
1
0.041322
false
0
0.033058
0
0.140496
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
240a907bd2e16d0aa3aa271652ece1375536949a
3,298
py
Python
task_09/task.py
prashnts/advent-of-code--2021
315fcf470c8c1260057aeafa6d2c42f4c0f74f3f
[ "MIT" ]
null
null
null
task_09/task.py
prashnts/advent-of-code--2021
315fcf470c8c1260057aeafa6d2c42f4c0f74f3f
[ "MIT" ]
null
null
null
task_09/task.py
prashnts/advent-of-code--2021
315fcf470c8c1260057aeafa6d2c42f4c0f74f3f
[ "MIT" ]
null
null
null
import os from functools import reduce __here__ = os.path.dirname(__file__) TEST_DATA = '''\ 2199943210 3987894921 9856789892 8767896789 9899965678\ ''' def gen_neighbors(array, x, y): '''Generated points in north, south, east, and west directions. On edges only valid points are generated. ''' dir...
25.175573
97
0.593087
494
3,298
3.803644
0.334008
0.015966
0.018627
0.029803
0.119212
0.085152
0.085152
0.085152
0.056413
0.056413
0
0.042006
0.292602
3,298
130
98
25.369231
0.763395
0.259551
0
0.105263
0
0
0.042194
0
0
0
0
0
0.026316
1
0.092105
false
0
0.026316
0
0.184211
0.026316
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
240b42fee6717a7b90d0b1207b8b05b2c8fb6f5b
2,046
py
Python
setup.py
dotpy/step
03a5fa3e2ef35675b6729a00a4752b0c703ee243
[ "BSD-3-Clause" ]
13
2016-06-29T21:19:45.000Z
2021-12-26T20:36:05.000Z
setup.py
dotpy/step
03a5fa3e2ef35675b6729a00a4752b0c703ee243
[ "BSD-3-Clause" ]
3
2015-03-19T22:21:27.000Z
2019-10-10T23:03:45.000Z
setup.py
dotpy/step
03a5fa3e2ef35675b6729a00a4752b0c703ee243
[ "BSD-3-Clause" ]
3
2018-03-27T14:27:31.000Z
2020-08-07T08:23:08.000Z
#!/usr/bin/env python """ This is the installation script of the step module, a light and fast template engine. You can run it by typing: python setup.py install You can also run the test suite by running: python setup.py test """ import sys from distutils.core import setup from step.tests import TestCommand...
37.888889
111
0.583578
215
2,046
5.455814
0.562791
0.035806
0.022165
0.030691
0.092072
0.044331
0
0
0
0
0
0.013669
0.320626
2,046
53
112
38.603774
0.830216
0.148094
0
0
0
0.030303
0.419839
0.025375
0
0
0
0
0
1
0
false
0
0.121212
0
0.121212
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2410cb663e809f3a2cfff7eb2a2ab513d0a3a843
3,006
py
Python
oops_fhir/r4/code_system/effect_estimate_type.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
oops_fhir/r4/code_system/effect_estimate_type.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
oops_fhir/r4/code_system/effect_estimate_type.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
from pathlib import Path from fhir.resources.codesystem import CodeSystem from oops_fhir.utils import CodeSystemConcept __all__ = ["EffectEstimateType"] _resource = CodeSystem.parse_file(Path(__file__).with_suffix(".json")) class EffectEstimateType: """ EffectEstimateType Whether the effect estimate...
24.639344
95
0.600798
287
3,006
6.216028
0.226481
0.149103
0.054933
0.076233
0.454596
0.454596
0.400785
0.387892
0.183857
0
0
0.001897
0.298403
3,006
121
96
24.842975
0.844002
0.119428
0
0
0
0
0.388748
0
0
0
0
0
0
1
0
false
0
0.052632
0
0.210526
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
24149d63fd46dabd5d16d77a5fa8be1e85e8bdf1
1,361
py
Python
about/tests/test_views.py
IMegaMaan/Django-project
7ebe62aacf972410299f92183c6c9e23cd837fe7
[ "BSD-3-Clause" ]
null
null
null
about/tests/test_views.py
IMegaMaan/Django-project
7ebe62aacf972410299f92183c6c9e23cd837fe7
[ "BSD-3-Clause" ]
null
null
null
about/tests/test_views.py
IMegaMaan/Django-project
7ebe62aacf972410299f92183c6c9e23cd837fe7
[ "BSD-3-Clause" ]
null
null
null
from django.test import TestCase, Client from django.urls import reverse class TaskAboutViewsTests(TestCase): def setUp(self): self.guest_client = Client() @classmethod def setUpClass(cls): super().setUpClass() cls.about_views = { 'about:author': 'author.html', ...
34.897436
75
0.588538
130
1,361
6.038462
0.453846
0.050955
0.057325
0.078981
0.132484
0.132484
0.132484
0.132484
0.132484
0.132484
0
0.003261
0.324026
1,361
38
76
35.815789
0.85
0.086701
0
0.133333
0
0
0.131494
0
0
0
0
0
0.066667
1
0.133333
false
0
0.066667
0
0.233333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2415ff143543c2ce9970a39f3d80f9c3542308d9
1,937
py
Python
library/verification/token.py
LongmaoTeamTf/audio_aligner_app
899c27a6ce5b74ec728d70acaa2a9861f8fd7b92
[ "MIT" ]
5
2020-01-19T07:27:31.000Z
2021-03-31T05:56:07.000Z
library/verification/token.py
LongmaoTeamTf/audio_aligner_app
899c27a6ce5b74ec728d70acaa2a9861f8fd7b92
[ "MIT" ]
3
2021-06-02T00:55:11.000Z
2022-03-12T12:11:08.000Z
library/verification/token.py
LongmaoTeamTf/audio_aligner_app
899c27a6ce5b74ec728d70acaa2a9861f8fd7b92
[ "MIT" ]
2
2020-03-17T07:10:48.000Z
2022-01-12T10:13:11.000Z
""" user token @version: v1.0.1 @Company: Thefair @Author: Wang Yao @Date: 2019-11-17 15:21:11 @LastEditors: Wang Yao @LastEditTime: 2019-11-17 21:17:19 """ from functools import wraps from flask import request from itsdangerous import TimedJSONWebSignatureSerializer as Serializer, BadData from library.response.tfexcep...
24.518987
79
0.593702
226
1,937
4.964602
0.376106
0.040107
0.01426
0.032086
0
0
0
0
0
0
0
0.024945
0.296335
1,937
78
80
24.833333
0.798239
0.177594
0
0.057143
0
0
0.055556
0
0
0
0
0
0
1
0.171429
false
0
0.142857
0
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
0
0
0
0
0
0
0
1
0
2418e136a99b83121805fd21e003e44836c184cf
27,910
py
Python
service/artifacts_unittest.py
khromiumos/chromiumos-chromite
a42a85481cdd9d635dc40a04585e427f89f3bb3f
[ "BSD-3-Clause" ]
null
null
null
service/artifacts_unittest.py
khromiumos/chromiumos-chromite
a42a85481cdd9d635dc40a04585e427f89f3bb3f
[ "BSD-3-Clause" ]
2
2021-03-26T00:29:32.000Z
2021-04-30T21:29:33.000Z
service/artifacts_unittest.py
khromiumos/chromiumos-chromite
a42a85481cdd9d635dc40a04585e427f89f3bb3f
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2019 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Artifacts service tests.""" from __future__ import print_function import json import os import shutil import mock from chro...
39.199438
80
0.691903
3,457
27,910
5.394851
0.149841
0.022198
0.036461
0.039035
0.500375
0.427668
0.37555
0.354853
0.320858
0.293566
0
0.022031
0.203117
27,910
711
81
39.254571
0.81651
0.166535
0
0.28172
0
0.004301
0.118328
0.063997
0
0
0
0
0.08172
1
0.08172
false
0
0.043011
0
0.152688
0.002151
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2418e436d32c1b1dc432e02916a5cc98bd2b5e5f
8,044
py
Python
src/lfw.py
LiuNull/dynamic_face_recognition
85b057e64a088fb6def28a3650218e8d6dc069cb
[ "MIT" ]
null
null
null
src/lfw.py
LiuNull/dynamic_face_recognition
85b057e64a088fb6def28a3650218e8d6dc069cb
[ "MIT" ]
null
null
null
src/lfw.py
LiuNull/dynamic_face_recognition
85b057e64a088fb6def28a3650218e8d6dc069cb
[ "MIT" ]
null
null
null
"""Helper for evaluation on the Labeled Faces in the Wild dataset """ # MIT License # # Copyright (c) 2016 David Sandberg # # 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 withou...
47.597633
141
0.603555
1,049
8,044
4.490944
0.218303
0.038208
0.05519
0.035661
0.643388
0.616642
0.587136
0.536616
0.536616
0.536616
0
0.031963
0.280457
8,044
169
142
47.597633
0.781963
0.229861
0
0.613861
0
0
0.004977
0
0
0
0
0
0
1
0.039604
false
0
0.069307
0
0.148515
0.009901
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
241af3ee55d444a940c6be41db409a26214a6a55
3,587
py
Python
nzarttrainer.py
richwalm/nzarttrainer
82c020172106be871771c78675a58f71b0169b17
[ "0BSD" ]
2
2019-04-19T02:26:57.000Z
2021-06-22T13:19:57.000Z
nzarttrainer.py
richwalm/nzaarttrainer
82c020172106be871771c78675a58f71b0169b17
[ "0BSD" ]
2
2019-04-10T22:44:59.000Z
2020-04-06T23:30:33.000Z
nzarttrainer.py
richwalm/nzaarttrainer
82c020172106be871771c78675a58f71b0169b17
[ "0BSD" ]
3
2019-04-24T23:26:59.000Z
2020-04-10T11:38:01.000Z
#!/usr/bin/env python3 # NZART Exam Trainer # Written by Richard Walmsley <richwalm+nzarttrainer@gmail.com> (ZL1RSW) from flask import Flask, request, render_template, redirect, url_for, Response, abort import random import string import json import sys app = Flask(__name__, static_folder = 's') # Constants. Neede...
24.073826
184
0.57346
415
3,587
4.903614
0.349398
0.034398
0.033415
0.020639
0.100246
0.069779
0.043243
0.043243
0.043243
0
0
0.013142
0.299972
3,587
148
185
24.236486
0.797292
0.081684
0
0.181818
0
0
0.068788
0
0
0
0
0
0
1
0.056818
false
0.011364
0.056818
0.022727
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
241ca7dfdf71434c66d3f603fa5f2372d432d554
2,498
py
Python
setup.py
michelp/cxxheaderparser
83bb2903790cf448bf838cdb8a93ca96e758bd1a
[ "BSD-3-Clause" ]
12
2020-12-28T09:40:53.000Z
2022-03-13T15:36:21.000Z
setup.py
michelp/cxxheaderparser
83bb2903790cf448bf838cdb8a93ca96e758bd1a
[ "BSD-3-Clause" ]
28
2021-01-04T14:58:59.000Z
2022-01-03T03:00:16.000Z
setup.py
michelp/cxxheaderparser
83bb2903790cf448bf838cdb8a93ca96e758bd1a
[ "BSD-3-Clause" ]
1
2021-11-06T03:44:53.000Z
2021-11-06T03:44:53.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function from os.path import dirname, exists, join import sys, subprocess from setuptools import find_packages, setup setup_dir = dirname(__file__) git_dir = join(setup_dir, ".git") version_file = join(setup_dir, "cxxheaderparser", "version....
32.025641
92
0.667734
310
2,498
5.264516
0.554839
0.02451
0.044118
0.023284
0
0
0
0
0
0
0
0.007972
0.196557
2,498
77
93
32.441558
0.805182
0.1249
0
0
0
0
0.403396
0.032584
0
0
0
0
0
1
0
false
0
0.068966
0
0.068966
0.034483
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2421fe0c328d6bbf457b874ac44ade8749c82265
371
py
Python
Message Bomber/Message Bomber with Random Words.py
SaiAshish-Konchada/Python-Projects-for-Beginners
bce0a705b636a1090b56f59205c6acb94ab2e54a
[ "MIT" ]
5
2021-01-19T18:32:13.000Z
2021-05-03T05:19:11.000Z
Message Bomber/Message Bomber with Random Words.py
SaiAshish-Konchada/Python-Projects-for-Beginners
bce0a705b636a1090b56f59205c6acb94ab2e54a
[ "MIT" ]
null
null
null
Message Bomber/Message Bomber with Random Words.py
SaiAshish-Konchada/Python-Projects-for-Beginners
bce0a705b636a1090b56f59205c6acb94ab2e54a
[ "MIT" ]
2
2021-05-22T13:35:51.000Z
2021-08-31T07:05:32.000Z
# importing the required libraries import pyautogui, time # delay to switch windows time.sleep(5) #setting count to 5 count = 5 # loop to spam while count >= 1: # fetch and type each word from the file pyautogui.write('Random Annoying Spam Words') # press enter to send the message pyautogui.press('ente...
23.1875
49
0.703504
54
371
4.833333
0.648148
0.045977
0
0
0
0
0
0
0
0
0
0.017361
0.22372
371
15
50
24.733333
0.888889
0.477089
0
0
0
0
0.166667
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
24236339afd01ee7c1bc2adc58b3562319b17c37
3,485
py
Python
wrappers/tensorflow/tools/convert_to_bag.py
NobuoTsukamoto/librealsense
bc0910f8ba3c33307ff247a29dd2b9e9ef1b269d
[ "Apache-2.0" ]
6,457
2016-01-21T03:56:07.000Z
2022-03-31T11:57:15.000Z
wrappers/tensorflow/tools/convert_to_bag.py
NobuoTsukamoto/librealsense
bc0910f8ba3c33307ff247a29dd2b9e9ef1b269d
[ "Apache-2.0" ]
8,393
2016-01-21T09:47:28.000Z
2022-03-31T22:21:42.000Z
wrappers/tensorflow/tools/convert_to_bag.py
NobuoTsukamoto/librealsense
bc0910f8ba3c33307ff247a29dd2b9e9ef1b269d
[ "Apache-2.0" ]
4,874
2016-01-21T09:20:08.000Z
2022-03-31T15:18:00.000Z
import numpy as np import cv2 import pyrealsense2 as rs import time, sys, glob focal = 0.0021 baseline = 0.08 sd = rs.software_device() depth_sensor = sd.add_sensor("Depth") intr = rs.intrinsics() intr.width = 848 intr.height = 480 intr.ppx = 637.951293945312 intr.ppy = 360.783233642578 intr.fx = 638.864135742188 in...
23.389262
74
0.672597
582
3,485
3.857388
0.230241
0.048998
0.028953
0.051225
0.353675
0.291759
0.270379
0.227617
0.188864
0.09755
0
0.062915
0.179053
3,485
148
75
23.547297
0.721776
0
0
0.196721
0
0
0.028694
0
0
0
0
0
0
1
0
false
0
0.032787
0
0.032787
0.016393
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2424352a464760abcf3b0b917902ab3292e94368
1,043
py
Python
src/experiments/eval_minimal.py
peldszus/evidencegraph
1720b74d801e738d08996f22e8be676114426408
[ "MIT" ]
3
2019-07-31T14:48:59.000Z
2021-09-01T07:26:15.000Z
src/experiments/eval_minimal.py
peldszus/evidencegraph
1720b74d801e738d08996f22e8be676114426408
[ "MIT" ]
7
2019-07-30T23:22:15.000Z
2021-05-22T14:11:02.000Z
src/experiments/eval_minimal.py
peldszus/evidencegraph
1720b74d801e738d08996f22e8be676114426408
[ "MIT" ]
1
2019-09-16T07:23:04.000Z
2019-09-16T07:23:04.000Z
from argparse import ArgumentParser from evidencegraph.argtree import RELATION_SETS_BY_NAME from evidencegraph.corpus import CORPORA from evidencegraph.evaluation import evaluate_setting if __name__ == "__main__": parser = ArgumentParser( description="""Evaluate argumentation parsing predictions""" )...
27.447368
68
0.637584
100
1,043
6.4
0.51
0.0625
0.04375
0.05625
0
0
0
0
0
0
0
0.003932
0.268456
1,043
37
69
28.189189
0.834862
0
0
0
0
0
0.159156
0.027804
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2425800f04602f6f58d2c94bce88633d9eebc37c
4,221
py
Python
classifier/hist_classifier.py
adalrsjr1/smart-tuning
d8cb9f4ba41e7c068eda75b0fb581dcc8f329064
[ "MIT" ]
1
2021-10-04T18:02:55.000Z
2021-10-04T18:02:55.000Z
classifier/hist_classifier.py
adalrsjr1/smart-tuning
d8cb9f4ba41e7c068eda75b0fb581dcc8f329064
[ "MIT" ]
null
null
null
classifier/hist_classifier.py
adalrsjr1/smart-tuning
d8cb9f4ba41e7c068eda75b0fb581dcc8f329064
[ "MIT" ]
null
null
null
from common.dataaccess import MongoAccessLayer from common.timeutil import now import numpy as np import os import sys from classifier import workload_comparision as wc # data = [] # data.append({'metric': metric, 'mean': query_mean[0], 'std': query_std[0]}) # data = { # 'metrics': {'n_samples': QUERY_STE...
33.768
120
0.587302
463
4,221
5.207343
0.2527
0.046454
0.019909
0.019909
0.171298
0.148071
0.119867
0.069681
0.069681
0.069681
0
0.005757
0.300403
4,221
124
121
34.040323
0.810701
0.12959
0
0.071429
0
0
0.059612
0.020509
0
0
0
0.008065
0
1
0.107143
false
0
0.095238
0.02381
0.285714
0.02381
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2426476d2dec7acfd35014f0a631024c226cd418
10,199
py
Python
tests/test_cc_oop.py
J08nY/sec-certs
d25a4a7c830c587a45eb8e37d99f8794dec1a5eb
[ "MIT" ]
null
null
null
tests/test_cc_oop.py
J08nY/sec-certs
d25a4a7c830c587a45eb8e37d99f8794dec1a5eb
[ "MIT" ]
null
null
null
tests/test_cc_oop.py
J08nY/sec-certs
d25a4a7c830c587a45eb8e37d99f8794dec1a5eb
[ "MIT" ]
null
null
null
import filecmp import os import shutil import tempfile from datetime import date, datetime from pathlib import Path from tempfile import NamedTemporaryFile, TemporaryDirectory from unittest import TestCase import sec_certs.constants as constants import sec_certs.helpers as helpers from sec_certs.dataset.common_criteri...
42.319502
159
0.618002
1,114
10,199
5.44614
0.223519
0.035602
0.019779
0.024724
0.463161
0.410417
0.327839
0.258283
0.242789
0.160046
0
0.06378
0.282086
10,199
240
160
42.495833
0.764545
0
0
0.212264
0
0.033019
0.27787
0.041769
0
0
0
0
0.103774
1
0.051887
false
0
0.061321
0
0.117925
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
24287f31ba2a1965f69b8b89ba6e4fe27f5a9ecc
1,234
py
Python
mountdisplay/clean.py
Smytten/Tangible_NFT_Thesis
50e6b43c85ec2836b3628015eac1f1389de4a261
[ "MIT", "Unlicense" ]
1
2022-03-25T20:39:31.000Z
2022-03-25T20:39:31.000Z
mountdisplay/clean.py
Smytten/Tangible_NFT_Thesis
50e6b43c85ec2836b3628015eac1f1389de4a261
[ "MIT", "Unlicense" ]
null
null
null
mountdisplay/clean.py
Smytten/Tangible_NFT_Thesis
50e6b43c85ec2836b3628015eac1f1389de4a261
[ "MIT", "Unlicense" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import inkyphat import time import sys print("""Inky pHAT: Clean Displays solid blocks of red, black, and white to clean the Inky pHAT display of any screen burn. """.format(sys.argv[0])) if len(sys.argv) < 2: print("""Usage: {} <colour> <number of cycles> V...
24.196078
81
0.620746
178
1,234
4.269663
0.449438
0.055263
0.031579
0.036842
0.034211
0
0
0
0
0
0
0.013472
0.21799
1,234
51
82
24.196078
0.774093
0.034036
0
0.052632
0
0
0.261125
0
0
0
0
0
0
1
0
false
0
0.078947
0
0.078947
0.210526
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
242ab6a7517cb79f3a010784bb05fa1bc62077cb
1,507
py
Python
project1/scoper-beginner.py
swtornio/pytools
40fa88fa754419b47f71d8f1043f266c9a308f74
[ "BSD-3-Clause" ]
null
null
null
project1/scoper-beginner.py
swtornio/pytools
40fa88fa754419b47f71d8f1043f266c9a308f74
[ "BSD-3-Clause" ]
null
null
null
project1/scoper-beginner.py
swtornio/pytools
40fa88fa754419b47f71d8f1043f266c9a308f74
[ "BSD-3-Clause" ]
null
null
null
# Project 1 - The Scope! # Scenario: Congrats, your Penetration testing company Red Planet has # landed an external assessment for Microsoft! Your point of contact has # give you a few IP addresses for you to test. Like with any test you # should always verify the scope given to you to make sure there wasn't # a mista...
33.488889
74
0.717319
243
1,507
4.36214
0.489712
0.011321
0.011321
0.007547
0.05283
0
0
0
0
0
0
0.007981
0.168547
1,507
44
75
34.25
0.837989
0.603185
0
0
0
0
0.403846
0.201049
0
0
0
0
0
1
0.071429
false
0
0.142857
0
0.214286
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
242e68ec4abda02a1ff36b6149be9f598d440417
4,408
py
Python
full_feature_version/bot/orchestrator.py
inevitablepc/RedditKarmaBot
1716e092f662e379995b28d26881ea33ea40000e
[ "MIT" ]
7
2020-06-24T11:36:31.000Z
2021-11-02T05:44:50.000Z
full_feature_version/bot/orchestrator.py
inevitablepc/RedditKarmaBot
1716e092f662e379995b28d26881ea33ea40000e
[ "MIT" ]
null
null
null
full_feature_version/bot/orchestrator.py
inevitablepc/RedditKarmaBot
1716e092f662e379995b28d26881ea33ea40000e
[ "MIT" ]
7
2020-04-05T22:49:11.000Z
2021-12-25T09:22:24.000Z
import itertools import logging import random from collections import defaultdict from concurrent.futures import wait from concurrent.futures.thread import ThreadPoolExecutor from bot import RedditBot from utils import rand_wait_min, rand_wait_sec class BotOrchestrator: def __init__(self, all_credentials: dict, ...
38.330435
110
0.622958
540
4,408
4.822222
0.283333
0.033794
0.018433
0.023041
0.21275
0.147081
0.070661
0.070661
0.070661
0.041475
0
0.00455
0.301951
4,408
114
111
38.666667
0.841729
0.05422
0
0.176471
0
0
0.02282
0
0
0
0
0
0
1
0.141176
false
0.035294
0.094118
0.023529
0.270588
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
242e831fbeee71641da2d329c6f5ad06e8482bc8
10,476
py
Python
urdf2casadi/numpy_geom.py
ultrainren/urdf2casadi
42318720c2922977e7d57fa638ebf5ad1c092dd6
[ "MIT" ]
1
2020-03-30T10:26:31.000Z
2020-03-30T10:26:31.000Z
urdf2casadi/numpy_geom.py
ultrainren/urdf2casadi
42318720c2922977e7d57fa638ebf5ad1c092dd6
[ "MIT" ]
null
null
null
urdf2casadi/numpy_geom.py
ultrainren/urdf2casadi
42318720c2922977e7d57fa638ebf5ad1c092dd6
[ "MIT" ]
null
null
null
import numpy as np def normalize(v): nv = np.linalg.norm(v) if nv > 0.0: v[0] = v[0]/nv v[1] = v[1]/nv v[2] = v[2]/nv return v def skew_symmetric(v): """Returns a skew symmetric matrix from vector. p q r""" return np.array([[0, -v[2], v[1]], [v[2], 0,...
30.631579
96
0.55861
2,005
10,476
2.842893
0.102743
0.013684
0.021053
0.019649
0.500877
0.427018
0.405789
0.394561
0.377018
0.343509
0
0.08151
0.266896
10,476
341
97
30.721408
0.660677
0.253627
0
0.333333
0
0
0
0
0
0
0
0
0
1
0.087719
false
0
0.004386
0
0.179825
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
242e9c8ba99915ee2b252e978052c11b8a27fd13
3,363
py
Python
2. Using Python to Interact with the Operating System/Week-7.py
indahpuspitaa17/IT-Automation-with-Python
f872324b25741769506cc8ef28b5176fb9fa8997
[ "MIT" ]
null
null
null
2. Using Python to Interact with the Operating System/Week-7.py
indahpuspitaa17/IT-Automation-with-Python
f872324b25741769506cc8ef28b5176fb9fa8997
[ "MIT" ]
null
null
null
2. Using Python to Interact with the Operating System/Week-7.py
indahpuspitaa17/IT-Automation-with-Python
f872324b25741769506cc8ef28b5176fb9fa8997
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import re import sys import operator import csv error_counter = {} error_user = {} info_user = {} #This function will read each line of the syslog.log file and check if it is an error or an info message. def search_file(): with open('syslog.log', "r") as myfile: for line in ...
31.429907
124
0.612548
494
3,363
4.072874
0.238866
0.044732
0.023857
0.019384
0.234095
0.15507
0.107356
0.070577
0.070577
0.070577
0
0.011642
0.284865
3,363
107
125
31.429907
0.824948
0.213797
0
0.197674
0
0
0.066009
0
0
0
0
0
0
1
0.081395
false
0
0.05814
0
0.232558
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
242f6533a1559e482c850161d329f84507d8bdcb
2,487
py
Python
twitter/envs/corpus.py
Ra-Ni/Twitter-Language-Identifier
95e28cc8b0cc7b2acd96f240134649a9e601bca7
[ "MIT" ]
null
null
null
twitter/envs/corpus.py
Ra-Ni/Twitter-Language-Identifier
95e28cc8b0cc7b2acd96f240134649a9e601bca7
[ "MIT" ]
null
null
null
twitter/envs/corpus.py
Ra-Ni/Twitter-Language-Identifier
95e28cc8b0cc7b2acd96f240134649a9e601bca7
[ "MIT" ]
null
null
null
from math import log10 from itertools import tee class Corpus: __global_corpus_frequency = 0.0 def __init__(self, size, depth, smoothing_value, label): self.depth = depth self.size = size self.smoothing_value = smoothing_value self.label = label self.frequencies = {}...
30.329268
115
0.617209
278
2,487
5.334532
0.230216
0.094403
0.060688
0.054619
0.184086
0.159137
0.110587
0.064734
0.064734
0
0
0.014648
0.286289
2,487
81
116
30.703704
0.820845
0
0
0.172414
0
0
0
0
0
0
0
0
0
1
0.172414
false
0
0.034483
0.068966
0.362069
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
242f6cf35d21cd6a48c92a34883a88441a76c341
16,117
py
Python
eex/translators/amber/amber_write.py
dgasmith/EEX
7608c9ef25931040524c75d227f0bee18de9ddc1
[ "BSD-3-Clause" ]
null
null
null
eex/translators/amber/amber_write.py
dgasmith/EEX
7608c9ef25931040524c75d227f0bee18de9ddc1
[ "BSD-3-Clause" ]
null
null
null
eex/translators/amber/amber_write.py
dgasmith/EEX
7608c9ef25931040524c75d227f0bee18de9ddc1
[ "BSD-3-Clause" ]
null
null
null
""" Writer for amber """ import time import pandas as pd import math import re import numpy as np from collections import Counter # Python 2/3 compat try: from StringIO import StringIO except ImportError: from io import StringIO import eex import logging # AMBER local imports from . import amber_metadata a...
37.481395
128
0.647453
2,236
16,117
4.449911
0.195886
0.037588
0.021106
0.027136
0.200101
0.094372
0.050352
0.040905
0.040905
0.03206
0
0.011082
0.232984
16,117
429
129
37.568765
0.793804
0.22225
0
0.108434
0
0
0.116397
0.001777
0
0
0
0
0
1
0.016064
false
0.004016
0.048193
0
0.068273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
24324bad9563b1de125f14982150d0bec0525c6c
7,085
py
Python
src/main.py
Mirris/ShiftManager1.1
6b3c1c76c8f66295053b1cf9f1187e57429cdd0b
[ "MIT" ]
null
null
null
src/main.py
Mirris/ShiftManager1.1
6b3c1c76c8f66295053b1cf9f1187e57429cdd0b
[ "MIT" ]
null
null
null
src/main.py
Mirris/ShiftManager1.1
6b3c1c76c8f66295053b1cf9f1187e57429cdd0b
[ "MIT" ]
null
null
null
from helpers.Logger import Logger from calendar import Calendar from employee import Employee import json import sys import prettytable import os import time import re # Logger setup logging = Logger() log = logging.realm('Shift Manager') def main(): # 1] Load Configuration file with open('../data/konfigurac...
39.361111
136
0.660833
837
7,085
5.365591
0.243728
0.031173
0.018704
0.019595
0.251392
0.197951
0.0835
0.067023
0.049655
0.049655
0
0.005539
0.210021
7,085
179
137
39.581006
0.796855
0.180805
0
0.02
0
0
0.241236
0.063346
0
0
0
0.005587
0
1
0.01
false
0
0.09
0
0.1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
243302a8c8d74b6cc33c63504e8000d21f2d83c2
13,792
py
Python
polyphemus/utils.py
Xarthisius/polyphemus
3ae6cb9ff312d90478d8a294681bd898b7f45b1c
[ "BSD-2-Clause" ]
null
null
null
polyphemus/utils.py
Xarthisius/polyphemus
3ae6cb9ff312d90478d8a294681bd898b7f45b1c
[ "BSD-2-Clause" ]
null
null
null
polyphemus/utils.py
Xarthisius/polyphemus
3ae6cb9ff312d90478d8a294681bd898b7f45b1c
[ "BSD-2-Clause" ]
null
null
null
"""Helpers for polyphemus. Utilities API ============= """ from __future__ import print_function import os import io import re import sys import glob import tempfile import functools import subprocess from copy import deepcopy from pprint import pformat from collections import Mapping, Iterable, Hashable, Sequence, na...
30.113537
88
0.59491
1,767
13,792
4.50481
0.234861
0.022111
0.013568
0.009799
0.267839
0.255151
0.232286
0.221482
0.209799
0.207538
0
0.004912
0.291473
13,792
457
89
30.179431
0.80966
0.240792
0
0.248252
0
0
0.048711
0.006393
0
0
0
0
0
1
0.143357
false
0.006993
0.059441
0.024476
0.363636
0.013986
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
24334f8a7788ca759e3c468b57d76d5b40d43699
6,698
py
Python
taxscrape.py
gehilley/KMESTaxScrape
1cf85049b6d2a5fbd532107fbe44f61197ac3263
[ "MIT" ]
null
null
null
taxscrape.py
gehilley/KMESTaxScrape
1cf85049b6d2a5fbd532107fbe44f61197ac3263
[ "MIT" ]
null
null
null
taxscrape.py
gehilley/KMESTaxScrape
1cf85049b6d2a5fbd532107fbe44f61197ac3263
[ "MIT" ]
null
null
null
output_filename = 'kings_mountain_taxes.csv' output_pfilename = 'kmes_taxes.p' base_url = "https://gis.smcgov.org/maps/rest/services/WEBAPPS/COUNTY_SAN_MATEO_TKNS/MapServer/identify" token = "fytmg9tR2rSx-1Yp0SWJ_qkAExGi-ftZoK7h4wk91UY." polygon = [(-13622312.48,4506393.674), (-13622866.64,4504129.241), ...
42.392405
127
0.597044
875
6,698
4.384
0.380571
0.020073
0.031543
0.048749
0.187956
0.177007
0.120699
0.054745
0.054745
0.054745
0
0.15239
0.250523
6,698
157
128
42.66242
0.611753
0
0
0.027027
0
0.006757
0.111708
0.013292
0.006757
0
0
0
0
1
0.02027
false
0
0.054054
0
0.094595
0.013514
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
24377195af086d2d9b533b86147cc02d046d8a1c
2,263
py
Python
tests/test_arraycoords_core.py
sakshamsingh1/micarraylib
e3a87a1ee55dce50ce33d0dfa23e266b733de535
[ "CC-BY-4.0" ]
11
2021-11-14T19:33:33.000Z
2022-03-17T20:38:27.000Z
tests/test_arraycoords_core.py
sakshamsingh1/micarraylib
e3a87a1ee55dce50ce33d0dfa23e266b733de535
[ "CC-BY-4.0" ]
7
2022-01-17T17:50:49.000Z
2022-03-31T14:42:34.000Z
tests/test_arraycoords_core.py
sakshamsingh1/micarraylib
e3a87a1ee55dce50ce33d0dfa23e266b733de535
[ "CC-BY-4.0" ]
4
2021-11-16T14:05:11.000Z
2022-03-23T00:35:00.000Z
from micarraylib.arraycoords.core import micarray from micarraylib.arraycoords import array_shapes_raw from micarraylib.arraycoords.array_shapes_utils import _polar2cart import pytest import numpy as np def test_micarray_init(): arr = micarray(array_shapes_raw.cube2l_raw, "cartesian", None, "foo") assert arr...
33.776119
83
0.691118
323
2,263
4.659443
0.241486
0.017276
0.083721
0.087708
0.499003
0.468439
0.406645
0.375415
0.217276
0.217276
0
0.020174
0.189571
2,263
66
84
34.287879
0.800436
0.089262
0
0.340426
0
0
0.055474
0
0
0
0
0
0.319149
1
0.06383
false
0
0.106383
0
0.170213
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
24395c699d46f97162aa14777bf15b0856cae6e4
491
py
Python
Math/Leetcode5839.py
Rylie-W/LeetRecord
623c4efe88b3af54b8a65f6ec23db850b8c6f46f
[ "Apache-2.0" ]
null
null
null
Math/Leetcode5839.py
Rylie-W/LeetRecord
623c4efe88b3af54b8a65f6ec23db850b8c6f46f
[ "Apache-2.0" ]
null
null
null
Math/Leetcode5839.py
Rylie-W/LeetRecord
623c4efe88b3af54b8a65f6ec23db850b8c6f46f
[ "Apache-2.0" ]
null
null
null
import math import heapq class Solution: def minStoneSum(self, piles, k: int) -> int: q=list() for i in piles: heapq.heappush(q,i) while k: c=q[-1] q.pop() c=c-math.floor(c/2) heapq.heappush(q,c) k-=1 res=0 ...
20.458333
48
0.462322
69
491
3.173913
0.507246
0.054795
0.054795
0
0
0
0
0
0
0
0
0.031142
0.411405
491
24
49
20.458333
0.726644
0
0
0
0
0
0.01626
0
0
0
0
0
0
1
0.045455
false
0
0.090909
0
0.227273
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
243e4ebb71651a1947d9bfa01a4d3102ca1fdc2f
5,115
py
Python
kcwidrp/primitives/SubtractSky.py
scizen9/KCWI_DRP
1d82ee4f82be491628d6baa555401c18aa0472a2
[ "BSD-3-Clause" ]
5
2020-04-09T20:05:52.000Z
2021-08-04T18:04:28.000Z
kcwidrp/primitives/SubtractSky.py
scizen9/KCWI_DRP
1d82ee4f82be491628d6baa555401c18aa0472a2
[ "BSD-3-Clause" ]
80
2020-03-19T00:35:27.000Z
2022-03-07T20:08:23.000Z
kcwidrp/primitives/SubtractSky.py
scizen9/KCWI_DRP
1d82ee4f82be491628d6baa555401c18aa0472a2
[ "BSD-3-Clause" ]
9
2021-01-22T02:00:32.000Z
2022-02-08T19:43:16.000Z
from keckdrpframework.primitives.base_primitive import BasePrimitive from kcwidrp.primitives.kcwi_file_primitives import kcwi_fits_reader, \ kcwi_fits_writer, get_master_name, strip_fname import os class SubtractSky(BasePrimitive): def __init__(self, action, context): BasePrimitive.__init__(self, act...
38.75
85
0.504594
514
5,115
4.92607
0.272374
0.094787
0.121643
0.099526
0.266193
0.199447
0.157188
0.157188
0.157188
0.082938
0
0.005543
0.400391
5,115
131
86
39.045802
0.82002
0.049071
0
0.22449
0
0
0.086443
0
0
0
0
0
0
1
0.030612
false
0
0.030612
0
0.112245
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
243f3be35cd23daccbea4684b6c7521e62d8c778
2,517
py
Python
ask-sdk-model-runtime/ask_sdk_model_runtime/api_configuration.py
Signal-Kinetics/alexa-apis-for-python
abb8d3dce18a5510c48b215406ed36c024f01495
[ "Apache-2.0" ]
90
2018-09-19T21:56:42.000Z
2022-03-30T11:25:21.000Z
ask-sdk-model-runtime/ask_sdk_model_runtime/api_configuration.py
Signal-Kinetics/alexa-apis-for-python
abb8d3dce18a5510c48b215406ed36c024f01495
[ "Apache-2.0" ]
11
2018-09-23T12:16:48.000Z
2021-06-10T19:49:45.000Z
ask-sdk-model-runtime/ask_sdk_model_runtime/api_configuration.py
Signal-Kinetics/alexa-apis-for-python
abb8d3dce18a5510c48b215406ed36c024f01495
[ "Apache-2.0" ]
28
2018-09-19T22:30:38.000Z
2022-02-22T22:57:07.000Z
# -*- coding: utf-8 -*- # # Copyright 2019 Amazon.com, Inc. or its affiliates. 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. A copy of the # License is located at # # http://aws.amazon.com/apache2.0/ # # or in ...
41.95
80
0.72507
322
2,517
5.540373
0.341615
0.060538
0.03139
0.042601
0.567265
0.567265
0.567265
0.567265
0.567265
0.567265
0
0.004525
0.209774
2,517
59
81
42.661017
0.892408
0.740961
0
0
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0.272727
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2442557711a70e9fcc1b17d9d62fad88b7a458da
2,149
py
Python
src/stats/__main__.py
bmcculley/pycalcstats
74501b3fb2c5c061e5629eed127d8554345c0bd3
[ "MIT" ]
null
null
null
src/stats/__main__.py
bmcculley/pycalcstats
74501b3fb2c5c061e5629eed127d8554345c0bd3
[ "MIT" ]
null
null
null
src/stats/__main__.py
bmcculley/pycalcstats
74501b3fb2c5c061e5629eed127d8554345c0bd3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ## Copyright (c) 2011 Steven D'Aprano. ## See the file __init__.py for the licence terms for this software. """ Run the stats package as if it were an executable module. Usage: $ python3 -m stats [options] Options: -h --help Print this help text. -V --version Print the ...
29.040541
73
0.642624
312
2,149
4.336538
0.38141
0.035477
0.023651
0.020695
0.103474
0.103474
0.103474
0.103474
0.103474
0.103474
0
0.008827
0.261982
2,149
73
74
29.438356
0.844262
0.402047
0
0.055556
0
0
0.095987
0
0
0
0
0
0.027778
1
0.055556
false
0
0.111111
0
0.222222
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2442c8f27888189c71758520f5da703f6def7184
4,277
py
Python
tests/field_test.py
intelligenceunion/mongo-driver
02bbc6839c8264d4b06b053e8cc83d42147ede17
[ "MIT" ]
null
null
null
tests/field_test.py
intelligenceunion/mongo-driver
02bbc6839c8264d4b06b053e8cc83d42147ede17
[ "MIT" ]
null
null
null
tests/field_test.py
intelligenceunion/mongo-driver
02bbc6839c8264d4b06b053e8cc83d42147ede17
[ "MIT" ]
1
2019-06-21T17:49:08.000Z
2019-06-21T17:49:08.000Z
import unittest import pymongo import datetime from bson import ObjectId from iu_mongo import Document, connect from iu_mongo.fields import * from iu_mongo.errors import ValidationError import iu_mongo class Person(Document): meta = { 'db_name': 'test' } name = StringField() age = IntField(def...
35.347107
79
0.599018
523
4,277
4.728489
0.193117
0.151638
0.084917
0.083704
0.480793
0.43146
0.22038
0.167004
0.139507
0.139507
0
0.021297
0.253449
4,277
120
80
35.641667
0.75321
0.023848
0
0.188119
0
0
0.068329
0
0
0
0
0
0.29703
1
0.059406
false
0
0.079208
0
0.237624
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2444309351fb1815ca19b79bdbd6b418c960ad90
3,874
py
Python
bitsv/network/services/bchsvexplorer.py
yoursmengle/bitsv
387ff649e3916521fc3528469fdb0eef9c97e624
[ "MIT" ]
1
2019-06-28T05:20:07.000Z
2019-06-28T05:20:07.000Z
bitsv/network/services/bchsvexplorer.py
joshua-s/bitsv
8ca960c39cef7a7d655011fba690510684190f1e
[ "MIT" ]
1
2020-01-10T13:16:36.000Z
2020-01-10T13:16:36.000Z
bitsv/network/services/bchsvexplorer.py
yoursmengle/bitsv
387ff649e3916521fc3528469fdb0eef9c97e624
[ "MIT" ]
null
null
null
import requests import json from decimal import Decimal from bitsv.network import currency_to_satoshi from bitsv.network.meta import Unspent # left here as a reminder to normalize get_transaction() from bitsv.network.transaction import Transaction, TxInput, TxOutput from bitsv.constants import BSV DEFAULT_TIMEOUT = ...
33.982456
93
0.617708
455
3,874
5.048352
0.248352
0.042664
0.027427
0.045712
0.338703
0.286025
0.286025
0.260775
0.260775
0.260775
0
0.002119
0.268973
3,874
113
94
34.283186
0.808969
0.106866
0
0.25
0
0
0.103873
0
0
0
0
0
0
1
0.083333
false
0
0.083333
0
0.369048
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2444ac3c50dcef8edaf375b5ced228049606008a
336
py
Python
utils/common.py
Dineshs91/django-revert-test
e1954f287427e74255f17fb56886fbf90580ab77
[ "MIT" ]
null
null
null
utils/common.py
Dineshs91/django-revert-test
e1954f287427e74255f17fb56886fbf90580ab77
[ "MIT" ]
null
null
null
utils/common.py
Dineshs91/django-revert-test
e1954f287427e74255f17fb56886fbf90580ab77
[ "MIT" ]
null
null
null
from rest_framework.response import Response def create_response(data=None, error=None, status=None): if 200 <= status < 400: success = True else: success = False response = { "data": data, "error": error, "success": success } return Response(data=response,...
21
56
0.607143
37
336
5.459459
0.513514
0.178218
0
0
0
0
0
0
0
0
0
0.025105
0.28869
336
15
57
22.4
0.820084
0
0
0
0
0
0.047619
0
0
0
0
0
0
1
0.083333
false
0
0.083333
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
24468a96f003b4054d7dff4b59d198dddc557f17
1,699
py
Python
email-updates-stonks-AI-ML/venv/Lib/site-packages/pandas_datareader/econdb.py
iVibudh/stock-prediction
3900619224bb86e382c782d39138914294199733
[ "MIT" ]
1
2021-02-06T21:00:00.000Z
2021-02-06T21:00:00.000Z
venv/lib/python3.8/site-packages/pandas_datareader/econdb.py
jsherretts/stock-trading-bot
234bd7b1e67e6e2d9c728dce1851e020aab0662e
[ "MIT" ]
2
2021-03-31T19:54:17.000Z
2021-06-02T02:33:56.000Z
venv/lib/python3.8/site-packages/pandas_datareader/econdb.py
jsherretts/stock-trading-bot
234bd7b1e67e6e2d9c728dce1851e020aab0662e
[ "MIT" ]
1
2021-07-28T20:35:14.000Z
2021-07-28T20:35:14.000Z
import pandas as pd import requests from pandas_datareader.base import _BaseReader class EcondbReader(_BaseReader): """Get data for the given name from Econdb.""" _URL = "https://www.econdb.com/api/series/" _format = None _show = "labels" @property def url(self): """API URL""" ...
29.293103
88
0.535021
205
1,699
4.336585
0.453659
0.035996
0.040495
0.026997
0.096738
0.096738
0.096738
0
0
0
0
0.007881
0.32784
1,699
57
89
29.807018
0.770578
0.071218
0
0.05
0
0
0.128123
0.028828
0
0
0
0
0
1
0.1
false
0
0.075
0.05
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2446ff9bc5f75c50ae2d83b9186ef463217c4dff
2,500
py
Python
adet/modeling/SparseMaskInst/SparseMaskEncoding/utils.py
shuaiqi361/AdelaiDet
35d944033a8d2f7aa623ad607b57bd8a1fe88b43
[ "BSD-2-Clause" ]
null
null
null
adet/modeling/SparseMaskInst/SparseMaskEncoding/utils.py
shuaiqi361/AdelaiDet
35d944033a8d2f7aa623ad607b57bd8a1fe88b43
[ "BSD-2-Clause" ]
null
null
null
adet/modeling/SparseMaskInst/SparseMaskEncoding/utils.py
shuaiqi361/AdelaiDet
35d944033a8d2f7aa623ad607b57bd8a1fe88b43
[ "BSD-2-Clause" ]
null
null
null
# coding:utf-8 import numpy as np import torch import math class IOUMetric(object): """ Class to calculate mean-iou using fast_hist method """ def __init__(self, num_classes): self.num_classes = num_classes self.hist = np.zeros((num_classes, num_classes)) def _fast_hist(self, la...
35.211268
106
0.6164
388
2,500
3.822165
0.332474
0.064734
0.066082
0.037761
0.184761
0.160486
0.122724
0.122724
0.0971
0.056642
0
0.013151
0.2396
2,500
70
107
35.714286
0.766965
0.2052
0
0
0
0
0
0
0
0
0
0
0
1
0.136364
false
0
0.068182
0
0.318182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
24483a88227f9c9ae585353b8fb8fe058a952b42
11,524
py
Python
nautobot_chatops/api/views/mattermost.py
smk4664/nautobot-plugin-chatops
223d15a8a3364b44740f2912b44a2f11837946b3
[ "Apache-2.0" ]
null
null
null
nautobot_chatops/api/views/mattermost.py
smk4664/nautobot-plugin-chatops
223d15a8a3364b44740f2912b44a2f11837946b3
[ "Apache-2.0" ]
null
null
null
nautobot_chatops/api/views/mattermost.py
smk4664/nautobot-plugin-chatops
223d15a8a3364b44740f2912b44a2f11837946b3
[ "Apache-2.0" ]
null
null
null
"""Views to receive inbound notifications from Mattermost, parse them, and enqueue worker actions.""" import json import logging import shlex from django.conf import settings from django.http import HttpResponse from django.utils.decorators import method_decorator from django.views import View from django.views.decor...
42.681481
117
0.622527
1,294
11,524
5.397991
0.220247
0.019041
0.020043
0.015032
0.459699
0.391267
0.358053
0.338869
0.315676
0.315676
0
0.003464
0.273516
11,524
269
118
42.840149
0.830865
0.171295
0
0.365591
0
0
0.199219
0.01836
0
0
0
0
0
1
0.016129
false
0
0.075269
0
0.204301
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
244c391e531a230265dcfe8e38f79f69557d41fd
2,401
py
Python
discordspy/utils.py
NextChai/discordspy
a6f4f2f1c9ad9facfdb92e653d0d9655606878fa
[ "MIT" ]
null
null
null
discordspy/utils.py
NextChai/discordspy
a6f4f2f1c9ad9facfdb92e653d0d9655606878fa
[ "MIT" ]
null
null
null
discordspy/utils.py
NextChai/discordspy
a6f4f2f1c9ad9facfdb92e653d0d9655606878fa
[ "MIT" ]
null
null
null
""" MIT License Copyright (c) 2021 NextChai Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, dist...
33.816901
85
0.68055
327
2,401
4.883792
0.440367
0.033813
0.031309
0.016281
0.041327
0.041327
0.041327
0.041327
0
0
0
0.009315
0.2399
2,401
70
86
34.3
0.865753
0.507289
0
0.125
0
0
0.101724
0
0
0
0
0
0
1
0.1875
false
0
0.0625
0.03125
0.4375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
244f5d19d999147c55383cd2348a0a544bf75692
5,007
py
Python
dump/gui_v1.0.py
axcelerateai/Urdu-Handwriting-Recognition-using-Deep-Learning
38c6e4676b393feac380781cf37ce1abf8051132
[ "MIT" ]
3
2020-10-09T13:30:47.000Z
2021-11-03T17:55:47.000Z
dump/gui_v1.0.py
axcelerateai/Urdu-Handwriting-Recognition-using-Deep-Learning
38c6e4676b393feac380781cf37ce1abf8051132
[ "MIT" ]
2
2020-06-12T20:03:56.000Z
2020-06-16T03:53:17.000Z
dump/gui_v1.0.py
axcelerateai/Urdu-Handwriting-Recognition-using-Deep-Learning
38c6e4676b393feac380781cf37ce1abf8051132
[ "MIT" ]
3
2021-02-25T03:30:32.000Z
2022-02-07T20:04:19.000Z
import os import webbrowser import numpy as np import csv import traceback import arabic_reshaper from tkinter import * from tkinter import messagebox from tkinter.filedialog import askopenfilename from PIL import ImageTk, Image from run_model import create_and_run_model def make_menu(w): global the_menu the_m...
35.764286
94
0.656481
688
5,007
4.550872
0.236919
0.045992
0.029064
0.038007
0.327371
0.174066
0.174066
0.174066
0.132226
0.055573
0
0.02207
0.212702
5,007
139
95
36.021583
0.772197
0.083683
0
0.09901
0
0
0.087593
0.019659
0
0
0
0
0
1
0.059406
false
0
0.108911
0
0.178218
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
245279e99eccc5a89222148405717013b6bf5d45
4,042
py
Python
blaspy/level_2/trmv.py
nicholas-moreles/blaspy
c4af6258e17dd996c4b6d90bbaae15b31b8702b4
[ "BSD-3-Clause" ]
4
2015-01-25T12:44:44.000Z
2022-03-19T08:36:19.000Z
blaspy/level_2/trmv.py
nicholas-moreles/blaspy
c4af6258e17dd996c4b6d90bbaae15b31b8702b4
[ "BSD-3-Clause" ]
7
2015-01-20T13:35:39.000Z
2015-05-31T17:11:50.000Z
blaspy/level_2/trmv.py
nicholas-moreles/blaspy
c4af6258e17dd996c4b6d90bbaae15b31b8702b4
[ "BSD-3-Clause" ]
null
null
null
""" Copyright (c) 2014-2015-2015, The University of Texas at Austin. All rights reserved. This file is part of BLASpy and is available under the 3-Clause BSD License, which can be found in the LICENSE file at the top-level directory or at http://opensource.org/licenses/BSD-3-Clause """ from ..he...
42.104167
98
0.621475
622
4,042
3.913183
0.278135
0.013558
0.010271
0.013147
0.153246
0.14092
0.071487
0.032046
0
0
0
0.006803
0.309005
4,042
96
99
42.104167
0.864662
0.676645
0
0
0
0
0.009892
0
0
0
0
0
0
1
0.05
false
0
0.1
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2453cf34dc912ae247fbb288fdddd145a7ca95cb
13,822
py
Python
Neural Style Transfer/model.py
KingJamesSong/FastDifferentiableMatSqrt
ab5278195e25df0192096581e0c0c288e0c66bd2
[ "MIT" ]
15
2022-01-21T11:57:01.000Z
2022-03-27T07:22:16.000Z
Neural Style Transfer/model.py
KingJamesSong/FastDifferentiableMatSqrt
ab5278195e25df0192096581e0c0c288e0c66bd2
[ "MIT" ]
null
null
null
Neural Style Transfer/model.py
KingJamesSong/FastDifferentiableMatSqrt
ab5278195e25df0192096581e0c0c288e0c66bd2
[ "MIT" ]
1
2022-01-24T11:29:25.000Z
2022-01-24T11:29:25.000Z
import torch import torch.nn as nn import torch.nn.functional as F import numpy as np from utils.torch_utils import * class Content_Encoder(nn.Module): def __init__(self, conv_dim=64, repeat_num=4, norm='in', activation='relu'): super(Content_Encoder, self).__init__() layers = [] ...
39.491429
156
0.576183
1,921
13,822
3.931286
0.123373
0.025424
0.017214
0.018538
0.519862
0.451271
0.416976
0.395392
0.372484
0.320313
0
0.024532
0.292215
13,822
350
157
39.491429
0.747419
0.065186
0
0.329502
0
0
0.027381
0
0
0
0
0
0.007663
1
0.103448
false
0
0.019157
0.02682
0.226054
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2455cb80e1aaf2ba0d39b50ac976cccb541ad91b
13,355
py
Python
main.py
hunterowens/frankenstein
36305cad0ab6552597c707c813d20eaa3ad38f81
[ "Apache-2.0" ]
2
2018-10-17T02:27:59.000Z
2019-03-12T00:58:48.000Z
main.py
hunterowens/frankenstein
36305cad0ab6552597c707c813d20eaa3ad38f81
[ "Apache-2.0" ]
null
null
null
main.py
hunterowens/frankenstein
36305cad0ab6552597c707c813d20eaa3ad38f81
[ "Apache-2.0" ]
null
null
null
import json import pythonosc import argparse import math import datetime from pythonosc import dispatcher, osc_server, udp_client, osc_message_builder import requests from collections import OrderedDict from statistics import mean ## added variables to change the ip and port easily ## testing if Git works with ST ip...
31.646919
198
0.653463
1,678
13,355
5.043504
0.1764
0.038284
0.034149
0.036394
0.284533
0.203828
0.142148
0.083067
0.038166
0.038166
0
0.011121
0.212205
13,355
421
199
31.72209
0.793271
0.172969
0
0.143411
0
0.003876
0.236649
0.002256
0
0
0
0.004751
0
1
0.085271
false
0
0.034884
0
0.189922
0.178295
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2456194d25cdc4ce95af04bc56ef7e00c8643248
635
py
Python
src/lit_tracking/utils/run_converter.py
Actis92/lit-tracking
9e7b243ba77c80ca260bff479e54db271d10c195
[ "MIT" ]
null
null
null
src/lit_tracking/utils/run_converter.py
Actis92/lit-tracking
9e7b243ba77c80ca260bff479e54db271d10c195
[ "MIT" ]
14
2021-11-01T08:48:23.000Z
2022-01-08T14:20:17.000Z
src/lit_tracking/utils/run_converter.py
Actis92/lit-tracking
9e7b243ba77c80ca260bff479e54db271d10c195
[ "MIT" ]
null
null
null
import argparse import importlib if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument('--input_path', help='Path that contains data in MOT format', required=True) parser.add_argument('--output_path', help='Path that will contains the output', required=True) parser.add_argum...
48.846154
109
0.754331
85
635
5.352941
0.435294
0.059341
0.112088
0.07033
0.127473
0
0
0
0
0
0
0.00361
0.127559
635
12
110
52.916667
0.81769
0
0
0
0
0
0.286614
0.053543
0
0
0
0
0
1
0
false
0
0.272727
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2456670193398aaa3aace6b23615d552f25b4839
5,825
py
Python
test/test_npu/test_network_ops/test_neg.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
test/test_npu/test_network_ops/test_neg.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
test/test_npu/test_network_ops/test_neg.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020, Huawei Technologies.All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/licenses/BSD-3-Clause # # Unless required by applicable law...
41.607143
85
0.635365
854
5,825
4.063232
0.168618
0.095101
0.025937
0.04611
0.636023
0.588473
0.569164
0.525937
0.476945
0.436599
0
0.082688
0.246352
5,825
139
86
41.906475
0.707745
0.098541
0
0.371429
0
0
0.003819
0
0
0
0
0
0.038095
1
0.152381
false
0
0.047619
0
0.257143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2456f6933037766ba90c0161dd21869ac9959ef3
370
py
Python
Web_decoder_2.py
cegador/python_exercises
cdae01f845288475c00ed4c7c45db17e7dfb751e
[ "MIT" ]
null
null
null
Web_decoder_2.py
cegador/python_exercises
cdae01f845288475c00ed4c7c45db17e7dfb751e
[ "MIT" ]
null
null
null
Web_decoder_2.py
cegador/python_exercises
cdae01f845288475c00ed4c7c45db17e7dfb751e
[ "MIT" ]
null
null
null
import requests from bs4 import BeautifulSoup url = 'https://www.vanityfair.com/style/society/2014/06/monica-lewinsky-humiliation-culture' vf = requests.get(url) vf.status_code s = BeautifulSoup(vf.text, 'lxml') print(s.prettify()) text_article = s.find('div', attrs={'class' : 'content-background'}).find_all('p') ...
26.428571
92
0.737838
56
370
4.785714
0.696429
0.08209
0
0
0
0
0
0
0
0
0
0.020896
0.094595
370
14
93
26.428571
0.779104
0
0
0
0
0.111111
0.309973
0
0
0
0
0
0
1
0
false
0
0.222222
0
0.222222
0.222222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
245a13172d7f4a65ed0b24d40fe80fd7eeecd806
3,849
py
Python
eva-accession-release-automation/include_mapping_weight_from_dbsnp/export_all_multimap_snps_from_dbsnp_dumps.py
sundarvenkata-EBI/eva-accession
b26f0b5e5acaafe63d0755bad81837b9a5976237
[ "Apache-2.0" ]
3
2018-02-28T17:14:53.000Z
2020-03-17T17:19:45.000Z
eva-accession-release-automation/include_mapping_weight_from_dbsnp/export_all_multimap_snps_from_dbsnp_dumps.py
sundarvenkata-EBI/eva-accession
b26f0b5e5acaafe63d0755bad81837b9a5976237
[ "Apache-2.0" ]
52
2018-03-29T15:44:23.000Z
2022-02-16T00:54:28.000Z
eva-accession-release-automation/include_mapping_weight_from_dbsnp/export_all_multimap_snps_from_dbsnp_dumps.py
sundarvenkata-EBI/eva-accession
b26f0b5e5acaafe63d0755bad81837b9a5976237
[ "Apache-2.0" ]
15
2018-03-02T13:34:19.000Z
2021-06-22T15:54:59.000Z
# Copyright 2020 EMBL - European Bioinformatics Institute # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
50.644737
119
0.71629
499
3,849
5.148297
0.340681
0.038536
0.070066
0.06267
0.326197
0.187622
0.174387
0.091865
0.091865
0.091865
0
0.007275
0.214341
3,849
75
120
51.32
0.842262
0.191998
0
0
0
0
0.161603
0.055268
0
0
0
0
0
1
0.065217
false
0
0.173913
0
0.26087
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
245c288390cedd8347f4657b97e7c373c4bcbfa5
7,357
py
Python
hilbert_curve.py
qypea/disk-usage-visualizer
c26c5866a6d885347a92f1212d132286a6ab9ddc
[ "MIT" ]
null
null
null
hilbert_curve.py
qypea/disk-usage-visualizer
c26c5866a6d885347a92f1212d132286a6ab9ddc
[ "MIT" ]
null
null
null
hilbert_curve.py
qypea/disk-usage-visualizer
c26c5866a6d885347a92f1212d132286a6ab9ddc
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # From https://people.sc.fsu.edu/~jburkardt/py_src/hilbert_curve/hilbert_curve.py # def d2xy ( m, d ): #*****************************************************************************80 # ## D2XY converts a 1D Hilbert coordinate to a 2D Cartesian coordinate. # # Licensing: # # This code is dis...
18.12069
86
0.482126
921
7,357
3.800217
0.15418
0.012
0.043714
0.048857
0.596857
0.537143
0.496286
0.436857
0.379143
0.309143
0
0.036318
0.292646
7,357
405
87
18.165432
0.636241
0.44529
0
0.483221
0
0
0.195292
0
0
0
0
0
0
1
0.060403
false
0
0.040268
0
0.161074
0.355705
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
245ea6b8625b098807a43420900faed747e3a21d
3,314
py
Python
src/search.py
yrwq/ytw
787d5c2d5d49d1cdd99a2d2448210af11727a278
[ "MIT" ]
5
2020-11-26T08:38:45.000Z
2021-03-14T11:38:38.000Z
src/search.py
yrwq/ytw
787d5c2d5d49d1cdd99a2d2448210af11727a278
[ "MIT" ]
null
null
null
src/search.py
yrwq/ytw
787d5c2d5d49d1cdd99a2d2448210af11727a278
[ "MIT" ]
2
2020-11-26T07:21:49.000Z
2021-01-01T13:09:34.000Z
#!/usr/bin/env python import sys import getopt import requests import urllib.parse import json class YoutubeSearch: def __init__(self, search_terms: str, max_results=None): self.search_terms = search_terms self.max_results = max_results self.videos = self.search() def search(self): ...
32.811881
150
0.583585
365
3,314
5.194521
0.347945
0.037975
0.044304
0.023207
0.082806
0.05538
0.023207
0
0
0
0
0.004936
0.266445
3,314
100
151
33.14
0.77499
0.037719
0
0.106667
0
0
0.202639
0.024505
0
0
0
0
0
1
0.08
false
0
0.066667
0.026667
0.226667
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
0
0
0
0
0
0
0
0
1
0
245ebdd8bc1926f462e2a124d6f07b5c8b565ff3
3,716
py
Python
mapmeta/script/script_init.py
bukun/mapserver_meta
0f1dd278b07fa747dafaf801b96eac19ffdbf327
[ "MIT" ]
null
null
null
mapmeta/script/script_init.py
bukun/mapserver_meta
0f1dd278b07fa747dafaf801b96eac19ffdbf327
[ "MIT" ]
null
null
null
mapmeta/script/script_init.py
bukun/mapserver_meta
0f1dd278b07fa747dafaf801b96eac19ffdbf327
[ "MIT" ]
1
2019-06-20T00:29:25.000Z
2019-06-20T00:29:25.000Z
# -*- coding: utf-8 -*- ''' script for initialization. ''' import os import requests from .script_init_tabels import run_init_tables from mapmeta.model.mapmeta_model import MMapMeta from lxml import etree def do_for_maplet(mapserver_ip): ''' 代码来自 `maplet_arch//030_gen_mapproxy.py` , 原用来找到 mapfile , 生成 yaml . ...
30.459016
184
0.558127
465
3,716
4.268817
0.277419
0.044332
0.035264
0.020151
0.58136
0.58136
0.550126
0.510831
0.510831
0.510831
0
0.042396
0.308127
3,716
121
185
30.710744
0.729677
0.191873
0
0.447368
0
0.013158
0.152981
0.062692
0
0
0
0
0
1
0.052632
false
0.026316
0.065789
0
0.131579
0.039474
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
245fd6a78e559e016c8aa53d6a9cbeb14ced94d9
3,713
py
Python
dissect/utils/data_processing.py
dufkan/DiSSECT
834755f106fefff2475bd247c414aa6d13ec0851
[ "MIT" ]
null
null
null
dissect/utils/data_processing.py
dufkan/DiSSECT
834755f106fefff2475bd247c414aa6d13ec0851
[ "MIT" ]
null
null
null
dissect/utils/data_processing.py
dufkan/DiSSECT
834755f106fefff2475bd247c414aa6d13ec0851
[ "MIT" ]
null
null
null
from typing import Dict, Any import pandas as pd from tqdm.contrib import tmap from sage.all import RR, ZZ import dissect.utils.database_handler as database from dissect.definitions import STD_CURVE_DICT, ALL_CURVE_COUNT class Modifier: """a class of lambda functions for easier modifications if visualised values...
28.782946
108
0.64153
467
3,713
4.982869
0.286938
0.018908
0.027933
0.012892
0.069618
0.055866
0.055866
0.035239
0.035239
0.035239
0
0.00175
0.230541
3,713
128
109
29.007813
0.812741
0.058174
0
0.11828
0
0
0.072227
0
0
0
0
0.007813
0
1
0.150538
false
0.010753
0.064516
0.064516
0.376344
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2461451b3428279cbbc4968cdac79244d3d6001a
3,251
py
Python
djcookieauth/middleware.py
benoitc/dj-cookieauth
7397db7adf11e480f9954bf7518a3d522f5b28e5
[ "MIT" ]
3
2015-05-18T13:49:41.000Z
2020-01-21T11:12:08.000Z
djcookieauth/middleware.py
benoitc/dj-cookieauth
7397db7adf11e480f9954bf7518a3d522f5b28e5
[ "MIT" ]
null
null
null
djcookieauth/middleware.py
benoitc/dj-cookieauth
7397db7adf11e480f9954bf7518a3d522f5b28e5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # This file is part of dj-cookieauth released under the Apache 2 license. # See the NOTICE for more information. import base64 import hmac import hashlib import time from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.contrib.auth.models import...
28.769912
88
0.569978
342
3,251
5.27193
0.327485
0.042707
0.038824
0.027732
0.228508
0.143095
0.118691
0.118691
0.08985
0.08985
0
0.008891
0.342664
3,251
112
89
29.026786
0.834815
0.044602
0
0.358025
0
0
0.055144
0
0
0
0
0
0
1
0.049383
false
0.024691
0.08642
0
0.246914
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2461bf3779f8f53bfec6956001ecc2d3efe42214
1,225
py
Python
src/20.py
sroccaserra/aoc2021
a9024ac59fdbe519271d6fab937b9123095955e1
[ "BSD-3-Clause" ]
1
2021-12-16T13:25:38.000Z
2021-12-16T13:25:38.000Z
src/20.py
sroccaserra/aoc2021
a9024ac59fdbe519271d6fab937b9123095955e1
[ "BSD-3-Clause" ]
null
null
null
src/20.py
sroccaserra/aoc2021
a9024ac59fdbe519271d6fab937b9123095955e1
[ "BSD-3-Clause" ]
null
null
null
import sys import fileinput from collections import defaultdict from itertools import chain def solve(algo, grid, times): defaults = ['.', algo[0]] image = grid for i in range(times): image = enhance(algo, defaults[i%2], image) return sum(map(lambda c: c == '#', chain.from_iterable(image))) ...
25
95
0.513469
184
1,225
3.369565
0.326087
0.022581
0.048387
0.019355
0.090323
0.090323
0
0
0
0
0
0.037603
0.305306
1,225
48
96
25.520833
0.690952
0
0
0
0
0
0.010612
0
0
0
0
0
0
1
0.075
false
0
0.1
0
0.25
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
24629d61c69e7cc1eb4d14dec1215374f034c8fe
981
py
Python
leetcode/_429.py
simonzhang0428/LeetCode
7daee7572d8235a34071aa831452ed5d0e93d947
[ "Apache-2.0" ]
2
2021-07-09T23:22:25.000Z
2021-07-27T23:15:52.000Z
leetcode/_429.py
simonzhang0428/LeetCode
7daee7572d8235a34071aa831452ed5d0e93d947
[ "Apache-2.0" ]
null
null
null
leetcode/_429.py
simonzhang0428/LeetCode
7daee7572d8235a34071aa831452ed5d0e93d947
[ "Apache-2.0" ]
null
null
null
# Definition for a Node. class Node: def __init__(self, val=None, children=None): self.val = val self.children = children """ 11:23 - 11:36 7/30 high level: BFS, level order traversal mid level: queue store cur level res, for the popped node, for its all children, add them to queue test: size = ...
24.525
98
0.538226
137
981
3.788321
0.50365
0.046243
0.030829
0.034682
0
0
0
0
0
0
0
0.032407
0.33945
981
40
99
24.525
0.768519
0.022426
0
0.095238
0
0
0.006182
0
0
0
0
0
0
1
0.095238
false
0
0.047619
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
246405a3df29d2d69c702ebd40ef421c5c95784b
12,036
py
Python
python/special.py
rodluger/starrynight
d3f015e466621189cb271d4d18b538430b14a557
[ "MIT" ]
5
2020-05-20T09:30:30.000Z
2021-06-27T14:17:33.000Z
python/special.py
rodluger/starrynight
d3f015e466621189cb271d4d18b538430b14a557
[ "MIT" ]
5
2020-05-16T18:49:42.000Z
2021-02-11T21:46:32.000Z
python/special.py
rodluger/starrynight
d3f015e466621189cb271d4d18b538430b14a557
[ "MIT" ]
1
2020-05-19T17:11:57.000Z
2020-05-19T17:11:57.000Z
from utils import * from mpmath import ellipe, ellipk, ellippi from scipy.integrate import quad import numpy as np C1 = 3.0 / 14.0 C2 = 1.0 / 3.0 C3 = 3.0 / 22.0 C4 = 3.0 / 26.0 def J(N, k2, kappa, gradient=False): # We'll need to solve this with gaussian quadrature func = ( lambda x: np.sin(x) ** (...
28.121495
88
0.465022
1,843
12,036
2.978296
0.15898
0.00838
0.005465
0.020404
0.368555
0.300237
0.259428
0.183822
0.177992
0.148843
0
0.076378
0.389747
12,036
427
89
28.187354
0.670933
0.122798
0
0.221498
0
0
0.019049
0
0
0
0
0.002342
0
1
0.039088
false
0
0.013029
0
0.107492
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
24646d858bd45611b38521c81ad12d15324e8859
821
py
Python
capitalist/contrib/django/django_capitalist/validators.py
wit4er/python-capitalist
08f74ab80155b9a4a72c3a03bd1b13153fbdb891
[ "MIT" ]
null
null
null
capitalist/contrib/django/django_capitalist/validators.py
wit4er/python-capitalist
08f74ab80155b9a4a72c3a03bd1b13153fbdb891
[ "MIT" ]
null
null
null
capitalist/contrib/django/django_capitalist/validators.py
wit4er/python-capitalist
08f74ab80155b9a4a72c3a03bd1b13153fbdb891
[ "MIT" ]
3
2020-03-02T12:40:00.000Z
2021-12-24T12:04:36.000Z
from django.core.exceptions import ValidationError from django.utils.deconstruct import deconstructible from django.utils.translation import gettext_lazy as _ @deconstructible class CapitalistAccountValidator: message = _('Invalid Capitalist account number.') code = 'invalid_capitalist_account' account_ty...
29.321429
64
0.644336
92
821
5.554348
0.554348
0.117417
0.093933
0.121331
0.168297
0.168297
0.168297
0
0
0
0
0.004951
0.261876
821
27
65
30.407407
0.838284
0.031669
0
0.086957
0
0
0.082383
0.032953
0
0
0
0
0
1
0.086957
false
0
0.130435
0
0.391304
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
246a10b85099e22d96ea411de65b12bcd5947ba4
2,644
py
Python
src/query_spec.py
jdiaz/snorkel
d553480f3193f105d6f5befa04afb3656cd94d49
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
src/query_spec.py
jdiaz/snorkel
d553480f3193f105d6f5befa04afb3656cd94d49
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
src/query_spec.py
jdiaz/snorkel
d553480f3193f105d6f5befa04afb3656cd94d49
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
import werkzeug try: import dotmap except: dotmap = None try: import addict except: addict = None class QuerySpec(object): def __init__(self, query): # TODO: list all attributes of a query spec up front so others know what to expect md = werkzeug.MultiDict() for q in query...
22.991304
90
0.507943
337
2,644
3.908012
0.27003
0.068337
0.041002
0.022779
0.18451
0.099468
0.064541
0.028094
0
0
0
0.001208
0.374054
2,644
114
91
23.192982
0.794562
0.049546
0
0.289157
0
0
0.043842
0
0
0
0
0.008772
0
1
0.144578
false
0
0.036145
0.024096
0.301205
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
79e0e2d611865157c4511898cc3f7aa9623c7290
1,268
py
Python
mysite/note/management/commands/create_note.py
t2y/wagtail-app-sample
9c0592d80ccec3dd0d6f385f46372dccbcbd2a01
[ "Apache-2.0" ]
null
null
null
mysite/note/management/commands/create_note.py
t2y/wagtail-app-sample
9c0592d80ccec3dd0d6f385f46372dccbcbd2a01
[ "Apache-2.0" ]
null
null
null
mysite/note/management/commands/create_note.py
t2y/wagtail-app-sample
9c0592d80ccec3dd0d6f385f46372dccbcbd2a01
[ "Apache-2.0" ]
null
null
null
from datetime import datetime from django.contrib.auth import get_user_model from django.core.management.base import BaseCommand, no_translations from note.models import NoteIndexPage from note.models import NotePage class Command(BaseCommand): help = 'Create note page' def add_arguments(self, parser): ...
30.926829
71
0.615142
144
1,268
5.326389
0.388889
0.046936
0.088657
0.119948
0.156454
0.156454
0
0
0
0
0
0
0.259464
1,268
40
72
31.7
0.816826
0
0
0.125
0
0
0.12224
0
0
0
0
0
0
1
0.0625
false
0
0.15625
0
0.28125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
79ea9a1464ec72ae217a22521335fffd9916b5cc
6,241
py
Python
danceschool/discounts/admin.py
django-danceschool/django-danceschool
65ae09ffdcb0821e82df0e1f634fe13c0384a525
[ "BSD-3-Clause" ]
32
2017-09-12T04:25:25.000Z
2022-03-21T10:48:07.000Z
danceschool/discounts/admin.py
django-danceschool/django-danceschool
65ae09ffdcb0821e82df0e1f634fe13c0384a525
[ "BSD-3-Clause" ]
97
2017-09-01T02:43:08.000Z
2022-01-03T18:20:34.000Z
danceschool/discounts/admin.py
django-danceschool/django-danceschool
65ae09ffdcb0821e82df0e1f634fe13c0384a525
[ "BSD-3-Clause" ]
19
2017-09-26T13:34:46.000Z
2022-03-21T10:48:10.000Z
from django.forms import ModelForm, ModelChoiceField from django.contrib import admin from django.utils.translation import gettext_lazy as _ from dal import autocomplete from .models import ( DiscountCategory, DiscountCombo, DiscountComboComponent, PointGroup, PricingTierGroup, RegistrationDiscount, Custo...
32.170103
90
0.645089
534
6,241
7.438202
0.391386
0.016616
0.011329
0.007049
0.156093
0.143001
0.124874
0.105237
0.08006
0.08006
0
0.00298
0.247236
6,241
193
91
32.336788
0.842486
0.050633
0
0.233333
0
0
0.216458
0.041061
0
0
0
0
0
1
0.033333
false
0
0.04
0.013333
0.406667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
79eaca1eab171f82b2698cf469eb4057caa27f84
9,666
py
Python
tools/create_cluster.py
cosh/compute-cassandra-python
2ae6454bbb86d00252afa415042a5e8b823c763d
[ "Apache-2.0" ]
1
2016-12-21T09:59:16.000Z
2016-12-21T09:59:16.000Z
tools/create_cluster.py
cosh/compute-cassandra-python
2ae6454bbb86d00252afa415042a5e8b823c763d
[ "Apache-2.0" ]
null
null
null
tools/create_cluster.py
cosh/compute-cassandra-python
2ae6454bbb86d00252afa415042a5e8b823c763d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2013 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 re...
38.357143
78
0.61049
1,219
9,666
4.703856
0.235439
0.024939
0.038368
0.032961
0.367457
0.28392
0.262121
0.189571
0.167771
0.146669
0
0.005436
0.257707
9,666
251
79
38.50996
0.793728
0.200807
0
0.132184
0
0
0.245908
0.011916
0
0
0
0
0
1
0.063218
false
0
0.017241
0
0.109195
0.097701
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
79eb237c4bd2d1099cc8ababd7408be4112e4eb8
770
py
Python
lakey_finicity/models/connect/answered_mfa_question.py
jeremydeanlakey/lakey-finicity-python
f0b5ae6febb9337f0e28731f631b726fca940d2c
[ "MIT" ]
1
2021-02-09T14:44:55.000Z
2021-02-09T14:44:55.000Z
lakey_finicity/models/connect/answered_mfa_question.py
jeremydeanlakey/lakey-finicity-python
f0b5ae6febb9337f0e28731f631b726fca940d2c
[ "MIT" ]
null
null
null
lakey_finicity/models/connect/answered_mfa_question.py
jeremydeanlakey/lakey-finicity-python
f0b5ae6febb9337f0e28731f631b726fca940d2c
[ "MIT" ]
1
2022-01-26T18:09:33.000Z
2022-01-26T18:09:33.000Z
from dataclasses import dataclass # https://community.finicity.com/s/article/207505363-Multi-Factor-Authentication-MFA @dataclass class AnsweredMfaQuestion(object): text: str answer: str # Added by the partner for calls to the "MFA Answers" services _unused_fields: dict # this is for forward compatibili...
28.518519
84
0.623377
89
770
5.325843
0.573034
0.063291
0.050633
0.067511
0
0
0
0
0
0
0
0.016334
0.284416
770
26
85
29.615385
0.84392
0.28961
0
0
0
0
0.0369
0
0
0
0
0
0
1
0.095238
false
0
0.047619
0.047619
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
79ebb38627cea4de632bbd11155e51f5abc082e1
3,829
py
Python
test/python/k8s/test_client_cert_inject.py
cyberark/conjur-openapi-spec
40f2f1a6b14fb3536facc628e63321a17667148c
[ "Apache-2.0" ]
6
2020-12-03T19:48:30.000Z
2021-07-19T08:36:43.000Z
test/python/k8s/test_client_cert_inject.py
cyberark/conjur-openapi-spec
40f2f1a6b14fb3536facc628e63321a17667148c
[ "Apache-2.0" ]
116
2020-11-24T21:56:49.000Z
2021-12-10T19:27:39.000Z
test/python/k8s/test_client_cert_inject.py
cyberark/conjur-openapi-spec
40f2f1a6b14fb3536facc628e63321a17667148c
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import import base64 import os import pathlib import unittest import conjur from OpenSSL import crypto, SSL CERT_DIR = pathlib.Path('config/https') SSL_CERT_FILE = 'ca.crt' CONJUR_CERT_FILE = 'conjur.crt' CONJUR_KEY_FILE = 'conjur.key' def generateKey(type, bits): """Generates a...
30.632
103
0.641682
452
3,829
5.263274
0.347345
0.014712
0.021858
0.026902
0.270282
0.270282
0.190416
0.155107
0.134931
0.093737
0
0.028253
0.251241
3,829
124
104
30.879032
0.801535
0.171063
0
0.128205
0
0
0.112198
0.035225
0
0
0
0
0.102564
1
0.102564
false
0
0.089744
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
79ecb3c7117dbfd7119dcd2c527e73deda680a91
2,909
py
Python
khl/websocket/net_client_websocket.py
hang333/khl.py
1d235541528b070a1206eaf31ccaded9eac52da1
[ "MIT" ]
null
null
null
khl/websocket/net_client_websocket.py
hang333/khl.py
1d235541528b070a1206eaf31ccaded9eac52da1
[ "MIT" ]
null
null
null
khl/websocket/net_client_websocket.py
hang333/khl.py
1d235541528b070a1206eaf31ccaded9eac52da1
[ "MIT" ]
null
null
null
import asyncio from asyncio.events import AbstractEventLoop import json import logging import zlib from aiohttp import ClientSession, ClientWebSocketResponse from ..cert import Cert from ..hardcoded import API_URL from ..net_client import BaseClient class WebsocketClient(BaseClient): """ implements BaseClie...
33.056818
77
0.562049
325
2,909
4.836923
0.338462
0.019084
0.026718
0.020356
0.033079
0
0
0
0
0
0
0.005768
0.344448
2,909
87
78
33.436782
0.818563
0.075627
0
0.048387
0
0
0.08035
0.008759
0
0
0
0
0
1
0.048387
false
0
0.145161
0
0.322581
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
79f1612b542eb9d1c94aaf73dc2f5954230da328
5,305
py
Python
taattack/utils.py
linerxliner/ValCAT
e62985c6c64f6415bb2bb4716bd02d9686badd47
[ "MIT" ]
null
null
null
taattack/utils.py
linerxliner/ValCAT
e62985c6c64f6415bb2bb4716bd02d9686badd47
[ "MIT" ]
null
null
null
taattack/utils.py
linerxliner/ValCAT
e62985c6c64f6415bb2bb4716bd02d9686badd47
[ "MIT" ]
null
null
null
import flair import numpy as np import spacy import tensorflow_hub as hub import torch from flair.data import Sentence from flair.models import SequenceTagger from nltk.tokenize.treebank import TreebankWordDetokenizer from sklearn.metrics.pairwise import cosine_similarity from string import punctuation from transformer...
32.746914
112
0.684826
713
5,305
4.798036
0.175316
0.03157
0.049108
0.065478
0.326805
0.196141
0.111371
0.028939
0.018123
0.018123
0
0.032896
0.209237
5,305
161
113
32.950311
0.782598
0
0
0.094828
0
0
0.090858
0.009237
0
0
0
0
0
1
0.163793
false
0
0.103448
0.034483
0.465517
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
79f1aa731dd46a3731e4a9c3f27085c9eb89008f
765
py
Python
solutions/57.py
pacokwon/leetcode
37c943d371c106d1e6f24e065700e5edd1c3f9f9
[ "MIT" ]
2
2022-01-18T08:57:13.000Z
2022-01-18T15:49:06.000Z
solutions/57.py
pacokwon/leetcode
37c943d371c106d1e6f24e065700e5edd1c3f9f9
[ "MIT" ]
null
null
null
solutions/57.py
pacokwon/leetcode
37c943d371c106d1e6f24e065700e5edd1c3f9f9
[ "MIT" ]
null
null
null
# Insert Interval class Solution: def insert(self, intervals, newInterval): ans = [] [nst, nen] = newInterval for index, [st, en] in enumerate(intervals): if en < nst: ans.append(intervals[index]) elif nen < st: # can return now ...
26.37931
52
0.491503
88
765
4.181818
0.488636
0.048913
0.065217
0.081522
0.130435
0.130435
0
0
0
0
0
0.045267
0.364706
765
28
53
27.321429
0.711934
0.039216
0
0.090909
0
0
0.010929
0
0
0
0
0
0
1
0.045455
false
0
0
0
0.181818
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
79f1af18baf4d6560c556e9a2520a03a8a86dced
25,595
py
Python
cyvn/trader/app/ctaStrategy/strategy/strategyBollingerBot01.py
mumuwoyou/pytrader
6b94e0c8ecbc3ef238cf31715acf8474b9d26b4a
[ "MIT" ]
4
2019-03-14T05:30:59.000Z
2021-11-21T20:05:22.000Z
cyvn/trader/app/ctaStrategy/strategy/strategyBollingerBot01.py
mumuwoyou/pytrader
6b94e0c8ecbc3ef238cf31715acf8474b9d26b4a
[ "MIT" ]
null
null
null
cyvn/trader/app/ctaStrategy/strategy/strategyBollingerBot01.py
mumuwoyou/pytrader
6b94e0c8ecbc3ef238cf31715acf8474b9d26b4a
[ "MIT" ]
4
2019-02-14T14:30:46.000Z
2021-01-05T09:46:19.000Z
# encoding: UTF-8 """" 基于布林带的交易策略 观察周期:1min 策略周期:5min 策略逻辑: 1. 信号:突破上轨、下轨 2. 过滤:均线多头、空头排列 3. 出场:分级止盈;固定止损 """ import talib import numpy as np from cyvn.trader.vtObject import VtBarData from cyvn.trader.vtConstant import EMPTY_STRING from cyvn.trader.app.ctaStrategy.ctaTemplate import CtaTemplate, BarGenerator, Arr...
44.513043
149
0.477789
2,200
25,595
5.537727
0.159091
0.035623
0.037019
0.027579
0.609456
0.576049
0.540015
0.535582
0.491915
0.491505
0
0.022699
0.368314
25,595
575
150
44.513043
0.730826
0.450635
0
0.169492
0
0
0.037827
0.001613
0
0
0
0
0
1
0.042373
false
0
0.042373
0
0.237288
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
79f212ed18232d9a20e96553e02496b414e7481c
4,577
py
Python
cabu/drivers.py
thylong/cabu
b883293f35d22443de1ba8129b2efd1c346c7e61
[ "BSD-3-Clause" ]
16
2016-02-05T22:49:16.000Z
2020-03-20T13:28:05.000Z
cabu/drivers.py
thylong/cabu
b883293f35d22443de1ba8129b2efd1c346c7e61
[ "BSD-3-Clause" ]
null
null
null
cabu/drivers.py
thylong/cabu
b883293f35d22443de1ba8129b2efd1c346c7e61
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import os import re from selenium import webdriver from xvfbwrapper import Xvfb from cabu.exceptions import DriverException from cabu.utils.headers import Headers from selenium.webdriver.common.desired_capabilities import DesiredCapabilities from selenium import webdriver try: from urllib....
27.908537
91
0.674022
524
4,577
5.755725
0.240458
0.039788
0.03183
0.028183
0.327255
0.310013
0.274867
0.252984
0.252984
0.252984
0
0.001959
0.219139
4,577
163
92
28.079755
0.841914
0.274634
0
0.101266
0
0
0.164231
0.028272
0
0
0
0
0
1
0.088608
false
0
0.151899
0
0.316456
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
79fcc9de775f5e6d9c7b155ff6baf8f84042ddd0
10,468
py
Python
easistrain/EDD/fitEDD.py
EASI-STRESS/easistrain
86192d1c4135875daec8e4e4abcb67e372f86efb
[ "MIT" ]
null
null
null
easistrain/EDD/fitEDD.py
EASI-STRESS/easistrain
86192d1c4135875daec8e4e4abcb67e372f86efb
[ "MIT" ]
11
2021-11-10T08:36:22.000Z
2022-03-21T08:31:17.000Z
easistrain/EDD/fitEDD.py
EASI-STRESS/easistrain
86192d1c4135875daec8e4e4abcb67e372f86efb
[ "MIT" ]
null
null
null
from typing import Sequence import numpy as np import h5py from easistrain.EDD.io import ( create_info_group, peak_dataset_data, save_fit_data, ) from easistrain.EDD.utils import fit_detector_data, run_from_cli def fitEDD( fileRead: str, fileSave: str, sample: str, dataset: str, scanNu...
39.353383
122
0.579862
984
10,468
6.029472
0.215447
0.021911
0.013484
0.020226
0.197034
0.142087
0.066745
0.0418
0.0418
0.028316
0
0.013928
0.327856
10,468
265
123
39.501887
0.829306
0.106993
0
0.120332
0
0
0.127609
0.057134
0
0
0
0
0.012448
1
0.008299
false
0
0.020747
0
0.037344
0.012448
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03004212ee99b61faeb0548d5a85b4b203430ddc
2,784
py
Python
support_functions.py
yellingviv/dungeons_on_demand
ced5d6b1b0c12ad8e22f7fac1cfaeecc82a821bb
[ "OML" ]
null
null
null
support_functions.py
yellingviv/dungeons_on_demand
ced5d6b1b0c12ad8e22f7fac1cfaeecc82a821bb
[ "OML" ]
null
null
null
support_functions.py
yellingviv/dungeons_on_demand
ced5d6b1b0c12ad8e22f7fac1cfaeecc82a821bb
[ "OML" ]
1
2020-04-18T16:47:57.000Z
2020-04-18T16:47:57.000Z
from dungeon_model import Monsters, Players import re import math def initiative_sort(init_order): """sorts all the characters for a given combat by initiative""" print("passed into sort function: ", init_order) for i in range(len(init_order)): check = init_order[i] print("the check is: ",...
31.636364
67
0.530532
327
2,784
4.281346
0.275229
0.135
0.04
0.025714
0.035
0
0
0
0
0
0
0.006271
0.369971
2,784
87
68
32
0.791904
0.084052
0
0
0
0
0.075464
0
0
0
0
0
0
1
0.042857
false
0.014286
0.042857
0
0.128571
0.057143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03007634c85b96a08566af89f356d770fc155ed9
2,306
py
Python
experiments/architectures/PAE_network.py
Butters-cloud/denoising-normalizing-flow
12d56a0d069e10a744acabf5e78fdbfba8df54ee
[ "MIT" ]
12
2021-11-18T15:01:17.000Z
2022-02-22T16:17:42.000Z
experiments/architectures/PAE_network.py
Butters-cloud/denoising-normalizing-flow
12d56a0d069e10a744acabf5e78fdbfba8df54ee
[ "MIT" ]
2
2022-01-22T00:41:13.000Z
2022-02-01T15:41:42.000Z
experiments/architectures/PAE_network.py
Butters-cloud/denoising-normalizing-flow
12d56a0d069e10a744acabf5e78fdbfba8df54ee
[ "MIT" ]
1
2022-01-26T22:44:07.000Z
2022-01-26T22:44:07.000Z
def infoGAN_encoder(params,is_training): is_training = tf.constant(is_training, dtype=tf.bool) def encoder(x): with tf.variable_scope('model/encoder',['x'], reuse=tf.AUTO_REUSE): net = lrelu(conv2d(x, 64, 4, 4, 2, 2, name='conv1', use_sn=True)) net = conv2d(net, 128, 4, 4, 2...
42.703704
196
0.602342
325
2,306
4.116923
0.249231
0.149477
0.147982
0.104634
0.704783
0.630792
0.505232
0.372197
0.372197
0.372197
0
0.042182
0.228968
2,306
53
197
43.509434
0.710349
0.009107
0
0.322581
0
0
0.114363
0
0
0
0
0
0
1
0.129032
false
0
0
0
0.258065
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0301c782c51b1c6595901ee0b2e38930f8a7ecd2
2,344
py
Python
agents/a2c.py
TomMakkink/transformers-for-rl
9d025f92611e957004030af9ef05a07e320856a7
[ "MIT" ]
1
2022-03-09T20:44:27.000Z
2022-03-09T20:44:27.000Z
agents/a2c.py
TomMakkink/transformers-for-rl
9d025f92611e957004030af9ef05a07e320856a7
[ "MIT" ]
null
null
null
agents/a2c.py
TomMakkink/transformers-for-rl
9d025f92611e957004030af9ef05a07e320856a7
[ "MIT" ]
null
null
null
from agents.agent import Agent from models.actor_critic_mlp import ActorCriticMLP import numpy as np import torch import torch.optim as optim from utils import plot_grad_flow class A2C(Agent): def __init__( self, state_size, action_size, hidden_size, memory, lr, ...
27.904762
83
0.58959
282
2,344
4.716312
0.319149
0.03609
0.03609
0.042857
0.078947
0.078947
0.078947
0
0
0
0
0.006109
0.301621
2,344
83
84
28.240964
0.806353
0.018345
0
0.086957
0
0
0
0
0
0
0
0
0
1
0.086957
false
0
0.086957
0
0.231884
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03026b2e47c7dd4c6d92ff2379d10e3b1de12161
329
py
Python
gan_train_parameters.py
Amitdedhia6/DrugDiscovery
c70dec96cee4d0d643a8b9de30530b6871fdf05e
[ "Apache-2.0" ]
null
null
null
gan_train_parameters.py
Amitdedhia6/DrugDiscovery
c70dec96cee4d0d643a8b9de30530b6871fdf05e
[ "Apache-2.0" ]
null
null
null
gan_train_parameters.py
Amitdedhia6/DrugDiscovery
c70dec96cee4d0d643a8b9de30530b6871fdf05e
[ "Apache-2.0" ]
null
null
null
from common import google_cloud class GANTrainParameters(): def __init__(self): self.num_epochs = 2000 self.batch_size = 10000 self.num_steps = 1 self.lr_d = 0.01 self.lr_g = 0.001 if not google_cloud: self.batch_size = 1 training_param = GANTrainPara...
19.352941
37
0.620061
43
329
4.44186
0.651163
0.115183
0.136126
0
0
0
0
0
0
0
0
0.078947
0.306991
329
16
38
20.5625
0.758772
0
0
0
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0.090909
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0306c30fc6b959f99f270569a581136d38981cb5
8,672
py
Python
tools/medico_classify.py
1512159/tf-faster-rcnn-medico
94c5cff76ef7bd271de050a8de53bd0145c6c8ec
[ "MIT" ]
null
null
null
tools/medico_classify.py
1512159/tf-faster-rcnn-medico
94c5cff76ef7bd271de050a8de53bd0145c6c8ec
[ "MIT" ]
null
null
null
tools/medico_classify.py
1512159/tf-faster-rcnn-medico
94c5cff76ef7bd271de050a8de53bd0145c6c8ec
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -------------------------------------------------------- # Tensorflow Faster R-CNN # Licensed under The MIT License [see LICENSE for details] # Written by Xinlei Chen, based on code from Ross Girshick # -------------------------------------------------------- """ Demo script showing detections...
32.479401
148
0.602975
1,163
8,672
4.320722
0.291488
0.01791
0.022289
0.023881
0.155622
0.131741
0.102687
0.102687
0.07602
0.056915
0
0.025181
0.23524
8,672
266
149
32.601504
0.732509
0.10286
0
0.153439
0
0
0.146291
0.028043
0
0
0
0
0
1
0.021164
false
0
0.111111
0
0.153439
0.079365
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
030752d970037ce742be150222524d388e311557
6,705
py
Python
speech.py
jsarchibald/room-designer
d90f39f6b7a98d66f2f4c09529aaa46aea68611b
[ "MIT" ]
null
null
null
speech.py
jsarchibald/room-designer
d90f39f6b7a98d66f2f4c09529aaa46aea68611b
[ "MIT" ]
null
null
null
speech.py
jsarchibald/room-designer
d90f39f6b7a98d66f2f4c09529aaa46aea68611b
[ "MIT" ]
null
null
null
import pygame import speech_recognition as sr from time import sleep import events import objects as obj_types from settings import SPEECH_CRED_FILE from speech_helpers import correct_text, either_side, get_after, get_position, get_positions, get_size, is_in_objects, process_relative, select_obj_type # A variable lis...
35.104712
207
0.595824
812
6,705
4.783251
0.235222
0.044799
0.065654
0.050978
0.32724
0.31102
0.257467
0.199279
0.168126
0.152935
0
0.001715
0.304101
6,705
190
208
35.289474
0.83069
0.11484
0
0.238095
0
0
0.08652
0
0
0
0
0
0
1
0.055556
false
0
0.055556
0
0.126984
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
0
0
0
0
0
0
0
0
1
0
0309577959891e0612c1c6a69dda2ed2d8030359
600
py
Python
colosseum/mdps/river_swim/episodic/mdp.py
MichelangeloConserva/Colosseum
b0711fd9ce75520deb74cda75c148984a8e4152f
[ "MIT" ]
null
null
null
colosseum/mdps/river_swim/episodic/mdp.py
MichelangeloConserva/Colosseum
b0711fd9ce75520deb74cda75c148984a8e4152f
[ "MIT" ]
null
null
null
colosseum/mdps/river_swim/episodic/mdp.py
MichelangeloConserva/Colosseum
b0711fd9ce75520deb74cda75c148984a8e4152f
[ "MIT" ]
null
null
null
import gin from colosseum.loops import human_loop from colosseum.mdps import EpisodicMDP from colosseum.mdps.river_swim.river_swim import RiverSwimMDP @gin.configurable class RiverSwimEpisodic(EpisodicMDP, RiverSwimMDP): @property def _graph_layout(self): return {node: tuple(node) for node in self.G}...
21.428571
61
0.691667
75
600
5.266667
0.666667
0.098734
0.086076
0
0
0
0
0
0
0
0
0.023605
0.223333
600
27
62
22.222222
0.824034
0.056667
0
0
0
0
0.014184
0
0
0
0
0
0
1
0.052632
false
0
0.210526
0.052632
0.368421
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
030af46d63eb07552bbcb49eb543b45022dab354
16,780
py
Python
okokyst_station_mapping.py
trondkr/okokyst_toolbox
3d5484458e4f346d593beb5b268378c70d391abd
[ "MIT" ]
null
null
null
okokyst_station_mapping.py
trondkr/okokyst_toolbox
3d5484458e4f346d593beb5b268378c70d391abd
[ "MIT" ]
null
null
null
okokyst_station_mapping.py
trondkr/okokyst_toolbox
3d5484458e4f346d593beb5b268378c70d391abd
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import datetime from okokyst_metadata import surveys_lookup_table import os import re import glob import gsw from okokyst_tools import pressure_to_depth encoding = "ISO-8859-1" __author__ = 'Elizaveta Protsenko' __email__ = 'Elizaveta.Protsenko@niva.no' __created__ = datet...
35.475687
164
0.589035
2,126
16,780
4.454374
0.167921
0.021964
0.031679
0.040127
0.40982
0.360612
0.291658
0.232629
0.194403
0.190285
0
0.02644
0.280989
16,780
472
165
35.550847
0.758475
0.273123
0
0.259843
0
0
0.124896
0.029397
0
0
0
0
0
1
0.047244
false
0.015748
0.03937
0
0.114173
0.090551
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
030c9f62ddfe8e4538cc0711a16b8bb6b36078a9
715
py
Python
Python/350_Intersection_of_Two_arrays_II.py
simonecorbo99/hacktoberfest2019-leetcode
1e7150dafe337455616b2aea7a2cf2ffaf02cfd5
[ "MIT" ]
5
2019-10-01T17:07:36.000Z
2020-10-30T21:01:35.000Z
Python/350_Intersection_of_Two_arrays_II.py
simonecorbo99/hacktoberfest2019-leetcode
1e7150dafe337455616b2aea7a2cf2ffaf02cfd5
[ "MIT" ]
7
2019-10-05T17:52:33.000Z
2020-10-29T04:52:29.000Z
Python/350_Intersection_of_Two_arrays_II.py
simonecorbo99/hacktoberfest2019-leetcode
1e7150dafe337455616b2aea7a2cf2ffaf02cfd5
[ "MIT" ]
50
2019-10-01T21:07:07.000Z
2021-11-05T07:15:36.000Z
'''Given two arrays, write a function to compute their intersection. ''' class Solution(object): def intersect(self, nums1, nums2): """ :type nums1: List[int] :type nums2: List[int] :rtype: List[int] """ m,n=len(nums1),len(nums2) l=[] if len(nums1)...
23.833333
68
0.446154
82
715
3.890244
0.426829
0.037618
0.068966
0.100313
0.087774
0
0
0
0
0
0
0.04914
0.430769
715
29
69
24.655172
0.734644
0.18042
0
0
0
0
0
0
0
0
0
0
0
1
0.066667
false
0
0
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
030d393657be4aeb44ea123011d64e69a5d1d746
5,609
py
Python
dataset/egtea_gaze.py
AllenXuuu/DCR
2240b78ea7e03c43be8ba0a8649e6ab07db36fbd
[ "Apache-2.0" ]
null
null
null
dataset/egtea_gaze.py
AllenXuuu/DCR
2240b78ea7e03c43be8ba0a8649e6ab07db36fbd
[ "Apache-2.0" ]
null
null
null
dataset/egtea_gaze.py
AllenXuuu/DCR
2240b78ea7e03c43be8ba0a8649e6ab07db36fbd
[ "Apache-2.0" ]
null
null
null
from collections import defaultdict import json from pandas.core import frame import torch import pandas as pd import os import pickle as pkl import numpy as np import cv2 import h5py import tqdm import functools import lmdb class EGTEA_GAZE_DATASET(torch.utils.data.Dataset): def __init__(self, logger, config, ro...
33.386905
125
0.54466
683
5,609
4.267936
0.234261
0.037736
0.033619
0.020583
0.142024
0.10566
0.058319
0.03705
0.026072
0
0
0.00997
0.338385
5,609
167
126
33.586826
0.775532
0.015333
0
0.015504
0
0
0.114275
0
0
0
0
0
0.031008
1
0.046512
false
0
0.100775
0.007752
0.193798
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
030da47412e4bfcf6e77f631335b3a50a2f71685
1,092
py
Python
LinkedList/Merge two sorted linked lists.py
Bomma-Pranay/InterviewBit
3bc436cffd3afc7a28c67042e1589fbe7547952f
[ "MIT" ]
null
null
null
LinkedList/Merge two sorted linked lists.py
Bomma-Pranay/InterviewBit
3bc436cffd3afc7a28c67042e1589fbe7547952f
[ "MIT" ]
null
null
null
LinkedList/Merge two sorted linked lists.py
Bomma-Pranay/InterviewBit
3bc436cffd3afc7a28c67042e1589fbe7547952f
[ "MIT" ]
null
null
null
''' Merge Two Sorted Lists Asked in: Microsoft Yahoo Amazon Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists, and should also be sorted. For example, given following linked lists : 5 -> 8 -> 20 4 -> 11 -> 15 The merged ...
22.75
109
0.53022
158
1,092
3.639241
0.392405
0.043478
0.048696
0.055652
0.069565
0
0
0
0
0
0
0.05052
0.3837
1,092
47
110
23.234043
0.803863
0.462454
0
0.181818
0
0
0.001736
0
0
0
0
0
0
1
0.090909
false
0
0
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
030e8114c7513a4a89a8a24f6c91ba6ed8c9d8ae
299
py
Python
Lista 1 Banin/ex08.py
qnomon/Python-Studies
dbd592cf2a161bb9ddbec66f020c602bddc6d44b
[ "MIT" ]
null
null
null
Lista 1 Banin/ex08.py
qnomon/Python-Studies
dbd592cf2a161bb9ddbec66f020c602bddc6d44b
[ "MIT" ]
null
null
null
Lista 1 Banin/ex08.py
qnomon/Python-Studies
dbd592cf2a161bb9ddbec66f020c602bddc6d44b
[ "MIT" ]
null
null
null
v = int(input('Digite um valor: ')) validador = 0 contador = 1 while contador < v: if v % contador == 0: validador += 1 contador +=1 if validador > 1: print(f'Esse número NÃO é primo, pois é divisível por {validador+1} números diferentes ') else: print('Esse número é primo')
27.181818
93
0.64214
45
299
4.266667
0.555556
0.15625
0
0
0
0
0
0
0
0
0
0.030837
0.240803
299
11
94
27.181818
0.814978
0
0
0
0
0
0.383333
0
0
0
0
0
0
1
0
false
0
0
0
0
0.181818
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03121b48c8c35b2b0f007ab147db73d43b9f5419
10,819
py
Python
python/cthreepo/core/models.py
sdss/cthreepo
86804657cae90bf69b77367a355bb49eb220a4b2
[ "BSD-3-Clause" ]
1
2019-06-19T09:30:39.000Z
2019-06-19T09:30:39.000Z
python/cthreepo/core/models.py
sdss/cthreepo
86804657cae90bf69b77367a355bb49eb220a4b2
[ "BSD-3-Clause" ]
null
null
null
python/cthreepo/core/models.py
sdss/cthreepo
86804657cae90bf69b77367a355bb49eb220a4b2
[ "BSD-3-Clause" ]
null
null
null
# !/usr/bin/env python # -*- coding: utf-8 -*- # # Filename: models.py # Project: core # Author: Brian Cherinka # Created: Saturday, 12th September 2020 12:55:22 pm # License: BSD 3-clause "New" or "Revised" License # Copyright (c) 2020 Brian Cherinka # Last Modified: Saturday, 12th September 2020 12:55:22 pm # Modifie...
31.914454
100
0.634994
1,422
10,819
4.7609
0.199719
0.013442
0.009749
0.007681
0.131019
0.110192
0.102216
0.08449
0.074742
0.074742
0
0.004833
0.273315
10,819
338
101
32.008876
0.856271
0.481098
0
0.122951
0
0
0.082321
0.005684
0
0
0
0
0.016393
1
0.114754
false
0.008197
0.057377
0
0.336066
0.008197
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03124cf711ceb00968f5cacee727fb9c26ed3485
1,458
py
Python
project_src/deep_learning/pytorch_openai_transformer/datasets.py
tcvrick/COMP551-IMDB-Competition
64f83142c86e895db3a0ca037c31efb404910723
[ "MIT" ]
2
2019-08-12T13:47:21.000Z
2020-05-03T11:53:38.000Z
project_src/deep_learning/pytorch_openai_transformer/datasets.py
tcvrick/COMP551-IMDB-Competition
64f83142c86e895db3a0ca037c31efb404910723
[ "MIT" ]
null
null
null
project_src/deep_learning/pytorch_openai_transformer/datasets.py
tcvrick/COMP551-IMDB-Competition
64f83142c86e895db3a0ca037c31efb404910723
[ "MIT" ]
null
null
null
import re import html import pandas as pd re1 = re.compile(r' +') def imdb(fold_id: int, split_size: int): df = pd.read_pickle('df_train.pkl') df = df.reindex(columns=['sentiment', 'text']) df['text'] = df['text'].apply(fixup) # Split the data into k-folds. df_val = df[split_size * fold_id:split...
40.5
109
0.603567
203
1,458
4.187192
0.433498
0.049412
0.061176
0.070588
0.06
0
0
0
0
0
0
0.010906
0.182442
1,458
35
110
41.657143
0.702181
0.121399
0
0
0
0
0.170713
0
0
0
0
0
0
1
0.083333
false
0
0.125
0
0.291667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
031365d53b1a04b88852c96530151afb17b9aec7
1,136
py
Python
coyaml/cli.py
tailhook/coyaml
2de4f0d99446afb43d9e1a0cb576e048f47c108a
[ "MIT" ]
8
2015-01-28T15:08:38.000Z
2021-11-17T05:27:21.000Z
coyaml/cli.py
tailhook/coyaml
2de4f0d99446afb43d9e1a0cb576e048f47c108a
[ "MIT" ]
3
2016-06-08T09:55:12.000Z
2019-09-14T12:40:46.000Z
coyaml/cli.py
tailhook/coyaml
2de4f0d99446afb43d9e1a0cb576e048f47c108a
[ "MIT" ]
1
2015-05-28T12:22:16.000Z
2015-05-28T12:22:16.000Z
from .core import Config def simple(): from optparse import OptionParser op = OptionParser(usage="\n %prog\n %prog -c config.yaml") op.add_option('-c', '--config', metavar="FILENAME", help="Configuration file to parse", dest="configfile", default=None, type="string") op.add_option...
39.172414
76
0.618838
139
1,136
5.014388
0.467626
0.028694
0.063128
0.064562
0.12769
0.097561
0.097561
0
0
0
0
0.001139
0.227113
1,136
28
77
40.571429
0.792711
0
0
0
0
0
0.316901
0
0
0
0
0
0
1
0.037037
false
0
0.111111
0
0.185185
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03163282de6da6741659d1e1e50c91fdd514f086
869
py
Python
gtfs/stop.py
fabiotanniguchi/emdec-gtfs
823274d45263409d1d3ee56cf07f60e12d64003a
[ "WTFPL" ]
null
null
null
gtfs/stop.py
fabiotanniguchi/emdec-gtfs
823274d45263409d1d3ee56cf07f60e12d64003a
[ "WTFPL" ]
null
null
null
gtfs/stop.py
fabiotanniguchi/emdec-gtfs
823274d45263409d1d3ee56cf07f60e12d64003a
[ "WTFPL" ]
null
null
null
from google.appengine.ext import ndb from protorpc import messages from google.appengine.ext.ndb import msgprop from csvmodel import CsvModel class Stop(CsvModel): class LocationType(messages.Enum): STOP = 0 STATION = 1 class WheelchairBoarding(messages.Enum): UNKNOWN = 0 POSSI...
31.035714
66
0.714614
100
869
6.06
0.47
0.112211
0.062706
0.072607
0
0
0
0
0
0
0
0.007174
0.197929
869
27
67
32.185185
0.862267
0
0
0
0
0
0.027618
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.791667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
031a0bb9c7e7eb89c3804e46ae64112b02ade8a2
1,701
py
Python
appdaemon/settings/apps/presence/home/alarm_panel.py
monster1025/home-assistant
194723e228a798b99693220ad332a2c55d06e248
[ "Apache-2.0" ]
null
null
null
appdaemon/settings/apps/presence/home/alarm_panel.py
monster1025/home-assistant
194723e228a798b99693220ad332a2c55d06e248
[ "Apache-2.0" ]
null
null
null
appdaemon/settings/apps/presence/home/alarm_panel.py
monster1025/home-assistant
194723e228a798b99693220ad332a2c55d06e248
[ "Apache-2.0" ]
null
null
null
import appdaemon.plugins.hass.hassapi as hass # # Listen for presence sensor change state and change alarm control panel state. # # Args: # sensor - home presence 'sensor' # ha_panel - alarm control panel entity (to arm and disarm). # constraint - (optional, input_boolen), if turned off - alarm panel will be n...
36.978261
97
0.680188
239
1,701
4.677824
0.317992
0.071556
0.076029
0.039356
0.259392
0.259392
0.218247
0.218247
0.218247
0.218247
0
0.001461
0.195179
1,701
46
98
36.978261
0.815194
0.184597
0
0.25
0
0
0.209023
0.049624
0
0
0
0
0
1
0.178571
false
0
0.035714
0
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
031c6ddb51fddc4e6b54071f60cd8121116d2c91
398
py
Python
general/scry_message.py
kcunning/gamemaster-scripts
ec0658e498807d9c7017da313ecf1b9ed3eb6862
[ "MIT" ]
15
2019-01-17T20:09:45.000Z
2022-01-05T15:56:32.000Z
general/scry_message.py
palikhov/CnM-GM-RPG-scripts
ec0658e498807d9c7017da313ecf1b9ed3eb6862
[ "MIT" ]
5
2020-04-27T19:48:54.000Z
2022-03-11T23:39:49.000Z
general/scry_message.py
palikhov/CnM-GM-RPG-scripts
ec0658e498807d9c7017da313ecf1b9ed3eb6862
[ "MIT" ]
8
2019-02-20T21:18:46.000Z
2021-04-30T03:43:20.000Z
from random import randint import datetime lvl = 10 base_rounds = 10 rounds = lvl * base_rounds print("You have", rounds, "rounds to try to get through.") for i in range(rounds): r = randint(1, 100) print(r) if r >= 96: break print("Number of rounds:", i) if i == rounds - 1: print("Nothing ...
19.9
58
0.645729
63
398
4.047619
0.587302
0.078431
0
0
0
0
0
0
0
0
0
0.038835
0.223618
398
20
59
19.9
0.786408
0
0
0
0
0
0.200501
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0.3125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
031df329773b42e6e3ea2acdd1a1f8a14ec08d3e
5,566
py
Python
src/qibo/tests/test_core_hamiltonians_trotter.py
mlazzarin/qibo
e82bc3e27c5182be7b6f0b23bd20bc1057e31701
[ "Apache-2.0" ]
81
2020-09-04T10:54:40.000Z
2021-05-17T13:20:38.000Z
src/qibo/tests/test_core_hamiltonians_trotter.py
mlazzarin/qibo
e82bc3e27c5182be7b6f0b23bd20bc1057e31701
[ "Apache-2.0" ]
201
2020-08-24T08:41:33.000Z
2021-05-18T12:23:19.000Z
src/qibo/tests/test_core_hamiltonians_trotter.py
mlazzarin/qibo
e82bc3e27c5182be7b6f0b23bd20bc1057e31701
[ "Apache-2.0" ]
13
2020-09-08T12:34:35.000Z
2021-04-29T22:46:21.000Z
"""Test Trotter Hamiltonian methods from `qibo/core/hamiltonians.py`.""" import pytest import numpy as np import qibo from qibo import hamiltonians, K from qibo.tests.utils import random_state, random_complex, random_hermitian @pytest.mark.parametrize("nqubits", [3, 4]) @pytest.mark.parametrize("model", ["TFIM", "XXZ...
40.333333
82
0.7129
769
5,566
4.972692
0.159948
0.046025
0.108264
0.112971
0.547071
0.489801
0.482479
0.43227
0.423117
0.412395
0
0.023326
0.168164
5,566
137
83
40.627737
0.802592
0.106899
0
0.3
0
0
0.008731
0
0
0
0
0
0.14
1
0.08
false
0
0.08
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
0
0
0
0
0
1
0
031ef69a071c2f61a4e58bcde34b41a5a2f122f6
6,186
py
Python
models/utils/layers.py
icarus945/Torch_Detection
4cb8ca22a7fa2f45c72b60d794ae2a2ed1a35cd8
[ "MIT" ]
3
2018-12-23T14:07:39.000Z
2019-10-18T03:05:39.000Z
models/utils/layers.py
icarus945/Torch_Detection
4cb8ca22a7fa2f45c72b60d794ae2a2ed1a35cd8
[ "MIT" ]
20
2018-11-24T15:59:20.000Z
2019-01-30T16:42:25.000Z
models/utils/layers.py
icarus945/Torch_Detection
4cb8ca22a7fa2f45c72b60d794ae2a2ed1a35cd8
[ "MIT" ]
6
2018-11-14T13:12:24.000Z
2019-01-03T02:40:49.000Z
import warnings import torch.nn as nn def conv1x1_group(in_planes, out_planes, stride=1, groups=1): """ 1x1 convolution with group, without bias - Normal 1x1 convolution when groups == 1 - Grouped 1x1 convolution when groups > 1 """ return nn.Conv2d(in_channels=in_planes, ...
30.472906
79
0.534756
739
6,186
4.309878
0.196211
0.02763
0.021978
0.022606
0.261852
0.159184
0.152276
0.117425
0.117425
0.094819
0
0.020502
0.369221
6,186
202
80
30.623762
0.795746
0.132881
0
0.296296
0
0
0.025394
0
0
0
0
0.004951
0.02963
1
0.096296
false
0
0.014815
0
0.214815
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
031fd2613a36677be2ac3e5ad262f6fafd120692
1,073
py
Python
src/app.py
kangheeyong/PROJECT-datahub-api-server
1593603f0fbb6a2a027a677494b25584ebc91573
[ "MIT" ]
null
null
null
src/app.py
kangheeyong/PROJECT-datahub-api-server
1593603f0fbb6a2a027a677494b25584ebc91573
[ "MIT" ]
null
null
null
src/app.py
kangheeyong/PROJECT-datahub-api-server
1593603f0fbb6a2a027a677494b25584ebc91573
[ "MIT" ]
null
null
null
from sanic import Sanic from sanic.response import json from sanic_openapi import doc, swagger_blueprint from util import authorized app = Sanic(__name__) app.config["API_TITLE"] = "My-DataHub-OpenAPI" app.config["API_VERSION"] = "0.1.0" app.config["API_DESCRIPTION"] = "An example Swagger from Sanic-OpenAPI" app.co...
26.825
100
0.737185
155
1,073
4.922581
0.490323
0.070773
0.094364
0.049803
0
0
0
0
0
0
0
0.022822
0.101584
1,073
39
101
27.512821
0.768672
0
0
0
0
0
0.334579
0
0
0
0
0
0
1
0
false
0
0.153846
0
0.269231
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0323bfe0266dc12dfb65c5926feae4f31ef1770b
1,323
py
Python
bouser_db/service.py
MarsStirner/bouser.db
86c0cb8991b96b908af0dec7843e8ffbd0f18ae8
[ "0BSD" ]
null
null
null
bouser_db/service.py
MarsStirner/bouser.db
86c0cb8991b96b908af0dec7843e8ffbd0f18ae8
[ "0BSD" ]
null
null
null
bouser_db/service.py
MarsStirner/bouser.db
86c0cb8991b96b908af0dec7843e8ffbd0f18ae8
[ "0BSD" ]
null
null
null
# -*- coding: utf-8 -*- import contextlib import sqlalchemy import sqlalchemy.orm from twisted.application.service import Service from zope.interface.declarations import implementer from bouser.helpers.plugin_helpers import Dependency, BouserPlugin from .interfaces import IDataBaseService __author__ = 'mmalkov' @i...
24.962264
71
0.642479
136
1,323
6.132353
0.463235
0.065947
0.035971
0.043165
0.079137
0.079137
0
0
0
0
0
0.005165
0.26833
1,323
52
72
25.442308
0.856405
0.015873
0
0.15
0
0
0.019246
0
0
0
0
0
0
1
0.125
false
0
0.175
0.025
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03245e36530e8be45e6254760cac36f4e2d93c2b
581
py
Python
wavutils/wav_connect.py
makobouzu/rnnoise
3a3b854722cdc511860744e11bdbba22d63ed2b5
[ "BSD-3-Clause" ]
null
null
null
wavutils/wav_connect.py
makobouzu/rnnoise
3a3b854722cdc511860744e11bdbba22d63ed2b5
[ "BSD-3-Clause" ]
null
null
null
wavutils/wav_connect.py
makobouzu/rnnoise
3a3b854722cdc511860744e11bdbba22d63ed2b5
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from pydub import AudioSegment import sys import glob if __name__ == "__main__": args = sys.argv folder = glob.glob(args[1] + "/*.wav") initial = False for file in folder: soundfile = AudioSegment.from_file(file, "wav") if initial == False: soundfil...
26.409091
60
0.562823
66
581
4.80303
0.484848
0.047319
0.126183
0.107256
0.126183
0
0
0
0
0
0
0.012407
0.306368
581
21
61
27.666667
0.774194
0.036145
0
0
0
0
0.060932
0
0
0
0
0
0
1
0
false
0
0.176471
0
0.176471
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0326b6925c35f8d5ffa44459a0582e31350f4aa2
6,326
py
Python
attributes_data/nearestNeighborTest.py
aeksco/FRMA-Ontology
1eab8731bdad49328dddfbf52468d2a107d3f247
[ "MIT" ]
null
null
null
attributes_data/nearestNeighborTest.py
aeksco/FRMA-Ontology
1eab8731bdad49328dddfbf52468d2a107d3f247
[ "MIT" ]
1
2018-11-03T00:10:01.000Z
2018-11-03T00:10:01.000Z
attributes_data/nearestNeighborTest.py
aeksco/FRMA-Ontology
1eab8731bdad49328dddfbf52468d2a107d3f247
[ "MIT" ]
2
2018-11-03T00:02:29.000Z
2018-11-03T00:11:53.000Z
""" This is a test that we're using to gather example data from our two example models. This is passed a list of image names, image numbers, and the vector representing the face in the photo, and this script takes that and a split of testing vs training data to determine how accurate the model was by simply checking wh...
42.743243
170
0.727948
1,017
6,326
4.39823
0.26057
0.022356
0.023251
0.013414
0.1167
0.064163
0.049184
0.033982
0.033982
0.033982
0
0.009176
0.173095
6,326
148
171
42.743243
0.845919
0.472969
0
0
0
0
0.042662
0
0
0
0
0
0
1
0.037975
false
0
0.025316
0
0.088608
0.063291
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
032895bcd14a3671ab5030eaa6c072fe010b5493
792
py
Python
Miscillanious/random_split_train_val.py
b-safwat/multi_action_recognition
1a85da64cf236b9fb7c9a58ae75bdd092d05fab8
[ "Apache-2.0" ]
1
2019-12-21T17:29:08.000Z
2019-12-21T17:29:08.000Z
Miscillanious/random_split_train_val.py
b-safwat/multi_action_recognition
1a85da64cf236b9fb7c9a58ae75bdd092d05fab8
[ "Apache-2.0" ]
null
null
null
Miscillanious/random_split_train_val.py
b-safwat/multi_action_recognition
1a85da64cf236b9fb7c9a58ae75bdd092d05fab8
[ "Apache-2.0" ]
null
null
null
import numpy as np def save_list_to_file(z_list, z_file): with open(z_file, 'w') as fw: fw.writelines(z_list) def random_split_train_test(train_file, out_train_file, out_test_file, train_percentage=0.8): with open(train_file) as fr: lines = fr.readlines() np.random.shuffle(lines) t...
36
111
0.72096
125
792
4.192
0.32
0.068702
0.057252
0.080153
0.30916
0.209924
0.156489
0.156489
0.156489
0
0
0.004552
0.167929
792
22
112
36
0.790592
0
0
0
0
0
0.230769
0.229508
0
0
0
0
0
1
0.142857
false
0
0.071429
0
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
032a7743edf88f77da5c9d56359f55cc608dcd5a
3,596
py
Python
src/thompson/codered.py
thepolicylab/COVID-SMSExperiment
2eb41a2fea4858b7e794bb7a6af396f66d41f1a6
[ "MIT" ]
null
null
null
src/thompson/codered.py
thepolicylab/COVID-SMSExperiment
2eb41a2fea4858b7e794bb7a6af396f66d41f1a6
[ "MIT" ]
null
null
null
src/thompson/codered.py
thepolicylab/COVID-SMSExperiment
2eb41a2fea4858b7e794bb7a6af396f66d41f1a6
[ "MIT" ]
null
null
null
""" Functions and classes for interacting with the CodeRED data format """ from dataclasses import dataclass from typing import List, Optional, Union import pandas as pd from .types import FilenameType # The required headers for CodeRED EXCEL_HEADERS = ( "Command", "CustomKey", "ContactId", "First Na...
26.057971
87
0.629588
444
3,596
4.948198
0.326577
0.075102
0.102412
0.036413
0.071006
0.030951
0
0
0
0
0
0.003476
0.280033
3,596
137
88
26.248175
0.845114
0.236096
0
0
0
0
0.08671
0
0
0
0
0
0
1
0.033708
false
0
0.044944
0
0.359551
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
032c7a1695749c8763dea4e548dc9e5de7308f19
2,516
py
Python
ecommercejockey/premier/admin/inlines.py
anniethiessen/dieselr-ecommerce
9268b72553845a4650cdfe7c88b398db3cf92258
[ "MIT" ]
null
null
null
ecommercejockey/premier/admin/inlines.py
anniethiessen/dieselr-ecommerce
9268b72553845a4650cdfe7c88b398db3cf92258
[ "MIT" ]
11
2020-06-06T00:04:26.000Z
2022-03-12T00:57:41.000Z
ecommercejockey/premier/admin/inlines.py
anniethiessen/ecommerce-jockey
9268b72553845a4650cdfe7c88b398db3cf92258
[ "MIT" ]
null
null
null
from imagekit.admin import AdminThumbnail from django.contrib.admin import TabularInline from core.admin.forms import LimitedInlineFormSet from core.admin.utils import ( get_change_view_link, get_changelist_view_link ) from ..models import PremierProduct class PremierManufacturerProductsTabularInline(Tabula...
26.208333
79
0.635135
272
2,516
5.518382
0.334559
0.027981
0.043304
0.045303
0.025316
0.025316
0
0
0
0
0
0.001641
0.27345
2,516
95
80
26.484211
0.819475
0
0
0.189873
0
0
0.20151
0.056041
0
0
0
0
0
1
0.075949
false
0
0.063291
0.025316
0.405063
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
032de55c5e8bb65a3b5acc0d233be5fff6131de6
4,191
py
Python
dictionary_service.py
radomd92/botjagwar
1dc96600c40041057a9f9afde38c31ca34b8db38
[ "MIT" ]
7
2015-01-23T17:24:04.000Z
2022-01-12T16:54:24.000Z
dictionary_service.py
radomd92/botjagwar
1dc96600c40041057a9f9afde38c31ca34b8db38
[ "MIT" ]
18
2017-12-09T01:11:23.000Z
2021-09-22T13:26:24.000Z
dictionary_service.py
radomd92/botjagwar
1dc96600c40041057a9f9afde38c31ca34b8db38
[ "MIT" ]
1
2015-06-22T02:17:55.000Z
2015-06-22T02:17:55.000Z
#!/usr/bin/python3 import argparse import logging as log from aiohttp import web from api.databasemanager import DictionaryDatabaseManager from api.dictionary import \ entry, \ definition, \ translation, \ configuration from api.dictionary import \ get_dictionary, \ get_dictionary_xml, \ g...
31.044444
92
0.720353
532
4,191
5.443609
0.244361
0.074586
0.099448
0.135014
0.28384
0.164365
0.098757
0
0
0
0
0.004098
0.1267
4,191
134
93
31.276119
0.787158
0.02577
0
0.169492
0
0
0.22421
0.108307
0
0
0
0
0
1
0
false
0
0.059322
0
0.059322
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03308bb8046fd0dc61b44e11e40b5b2918967121
3,578
py
Python
classification/libs/utils.py
96lives/matrixlstm
83332111a459dd3fbca944898fffd935faac8820
[ "Apache-2.0" ]
19
2020-08-11T09:18:28.000Z
2022-03-10T13:53:13.000Z
N-ROD/evrepr/thirdparty/matrixlstm/classification/libs/utils.py
Chiaraplizz/home
18cc93a795ce132e05b886aa34565a102915b1c6
[ "MIT" ]
4
2021-01-04T11:55:50.000Z
2021-09-18T14:00:50.000Z
N-ROD/evrepr/thirdparty/matrixlstm/classification/libs/utils.py
Chiaraplizz/home
18cc93a795ce132e05b886aa34565a102915b1c6
[ "MIT" ]
4
2020-09-03T07:12:55.000Z
2021-08-19T11:37:55.000Z
import torch import numpy as np import re import itertools from textwrap import wrap import matplotlib.pyplot as plt def padding_mask(lengths, batch_size, time_size=None): """ Computes a [batch_size, time_size] binary mask which selects all and only the non padded values in the input tensor :param t...
31.946429
97
0.671325
545
3,578
4.297248
0.33945
0.0269
0.016652
0.021776
0.152861
0.105892
0.087105
0
0
0
0
0.026435
0.196478
3,578
111
98
32.234234
0.788174
0.259083
0
0.035088
0
0
0.030944
0
0
0
0
0
0
1
0.087719
false
0
0.105263
0
0.280702
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03315e91b0c1b2d1e2f30824173b23c77f6b76f7
1,642
py
Python
faq_module/commands/faq_on_message.py
alentoghostflame/StupidAlentoBot
c024bfb79a9ecb0d9fda5ddc4e361a0cb878baba
[ "MIT" ]
1
2021-12-12T02:50:20.000Z
2021-12-12T02:50:20.000Z
faq_module/commands/faq_on_message.py
alentoghostflame/StupidAlentoBot
c024bfb79a9ecb0d9fda5ddc4e361a0cb878baba
[ "MIT" ]
17
2020-02-07T23:40:36.000Z
2020-12-22T16:38:44.000Z
faq_module/commands/faq_on_message.py
alentoghostflame/StupidAlentoBot
c024bfb79a9ecb0d9fda5ddc4e361a0cb878baba
[ "MIT" ]
null
null
null
from faq_module.storage import FAQManager # , FAQConfig, FAQData # from faq_module.commands import text # from discord.ext import commands # import faq_module.text # import logging import discord # import typing import re async def faq_on_message(faq_manager: FAQManager, message: discord.Message): embed = discor...
34.208333
122
0.685749
221
1,642
4.877828
0.352941
0.055659
0.038961
0.04731
0.06679
0
0
0
0
0
0
0.006907
0.206456
1,642
47
123
34.93617
0.820414
0.10475
0
0
0
0
0.023256
0
0
0
0.005472
0
0
1
0.103448
false
0
0.103448
0
0.310345
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03337a286707757f1d435b3aaef9ca40f548193a
2,298
py
Python
tests/devices_test.py
jebabi/controllerx
bc68cdd69e416880e6394b3ecf92522b3871e959
[ "MIT" ]
null
null
null
tests/devices_test.py
jebabi/controllerx
bc68cdd69e416880e6394b3ecf92522b3871e959
[ "MIT" ]
null
null
null
tests/devices_test.py
jebabi/controllerx
bc68cdd69e416880e6394b3ecf92522b3871e959
[ "MIT" ]
null
null
null
from tests.utils import hass_mock, get_instances import devices as devices_module from core import Controller from core import type as type_module def _import_modules(file_dir, package): pkg_dir = os.path.dirname(file_dir) for (module_loader, name, ispkg) in pkgutil.iter_modules([pkg_dir]): if ispkg: ...
35.353846
88
0.656223
278
2,298
5.032374
0.291367
0.107219
0.051465
0.055754
0.276626
0.276626
0.223731
0.223731
0.184417
0.184417
0
0.001176
0.260226
2,298
64
89
35.90625
0.821765
0
0
0.09434
0
0
0.137511
0.031332
0
0
0
0
0
1
0.09434
false
0
0.150943
0.018868
0.301887
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0337794490e59afb0d50e7e70f8ff18f29c9d996
1,912
py
Python
Data Manipulation with pandas/Transforming-Data.py
shreejitverma/Data-Scientist
03c06936e957f93182bb18362b01383e5775ffb1
[ "MIT" ]
2
2022-03-12T04:53:03.000Z
2022-03-27T12:39:21.000Z
Data Manipulation with pandas/Transforming-Data.py
shivaniverma1/Data-Scientist
f82939a411484311171465591455880c8e354750
[ "MIT" ]
null
null
null
Data Manipulation with pandas/Transforming-Data.py
shivaniverma1/Data-Scientist
f82939a411484311171465591455880c8e354750
[ "MIT" ]
2
2022-03-12T04:52:21.000Z
2022-03-27T12:45:32.000Z
# Import pandas using the alias pd import pandas as pd # Print the head of the homelessness data print(homelessness.head()) # Print the values of homelessness print(homelessness.values) # Print the column index of homelessness print(homelessness.columns) # Print the row index of homelessness print(homelessness.i...
26.929577
82
0.780335
252
1,912
5.753968
0.269841
0.037241
0.06069
0.064138
0.073103
0
0
0
0
0
0
0.024625
0.129184
1,912
70
83
27.314286
0.846246
0.421548
0
0
0
0
0.191136
0
0
0
0
0
0
1
0
false
0
0.043478
0
0.043478
0.391304
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
033779b299ba043f0969f3a671cd13882ea21786
1,599
py
Python
models/bittrex.py
etherionlab/the_token_fund_asset_parser
c0d7346a8df6ca44992d7c852b58a114692865ae
[ "MIT" ]
6
2017-06-11T19:24:36.000Z
2017-09-21T21:17:15.000Z
models/bittrex.py
baby636/the-token-fund-asset-parser
c0d7346a8df6ca44992d7c852b58a114692865ae
[ "MIT" ]
4
2017-07-24T10:57:26.000Z
2017-07-30T10:09:42.000Z
models/bittrex.py
baby636/the-token-fund-asset-parser
c0d7346a8df6ca44992d7c852b58a114692865ae
[ "MIT" ]
6
2018-08-02T05:57:11.000Z
2021-02-09T06:55:22.000Z
import aiohttp from time import time import json from hashlib import sha512 import hmac from .fetcher import Fetcher class BittrexAPI(Fetcher): _URL = 'https://bittrex.com/api/v1.1/' _KEY = None _SECRET = None def __init__(self, key, secret): if key is None or secret is None: rai...
31.98
89
0.553471
164
1,599
5.286585
0.463415
0.024221
0.029988
0
0
0
0
0
0
0
0
0.008654
0.349594
1,599
49
90
32.632653
0.825
0
0
0
0
0
0.09631
0.023765
0
0
0
0
0
1
0.046512
false
0
0.139535
0
0.325581
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
033938e07676961c14e3b120f246c45a2d3f66be
1,051
py
Python
facerecognition.py
Srijani-Chakroborty/Face-Recognition-System
60b1ef10bd724ddcd5d9e35ec5639ae73917047c
[ "MIT" ]
1
2022-02-27T18:34:57.000Z
2022-02-27T18:34:57.000Z
facerecognition.py
Srijani-Chakroborty/Face-Recognition-System
60b1ef10bd724ddcd5d9e35ec5639ae73917047c
[ "MIT" ]
null
null
null
facerecognition.py
Srijani-Chakroborty/Face-Recognition-System
60b1ef10bd724ddcd5d9e35ec5639ae73917047c
[ "MIT" ]
null
null
null
import cv2 import numpy as np face_classifier=cv2.CascadeClassifier('HaarCascade/haarcascade_frontalface_default.xml') def face_extractor(img): gray=cv2.cvtColor(img,cv2.COLOR_BGR2GRAY) faces=face_classifier.detectMultiScale(gray,1.3,5) if faces is(): return None for(x,y,w,h) in face...
30.911765
89
0.656518
152
1,051
4.427632
0.506579
0.041605
0.047548
0
0
0
0
0
0
0
0
0.054282
0.211227
1,051
34
90
30.911765
0.757539
0
0
0
0
0
0.114818
0.046124
0
0
0
0
0
1
0.032258
false
0.032258
0.064516
0
0.16129
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
0
0
0
0
0
0
0
0
1
0