hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
63f1bbf7c5bc0ddb0546934f8c64da5077e3f88c
5,343
py
Python
pitfall/utils.py
bincyber/pitfall
680c33ae30a2ed1d2bbf742f74accc34b81b1f5b
[ "Apache-2.0" ]
33
2019-11-06T03:45:55.000Z
2020-12-15T09:14:42.000Z
pitfall/utils.py
bincyber/pitfall
680c33ae30a2ed1d2bbf742f74accc34b81b1f5b
[ "Apache-2.0" ]
3
2019-11-19T19:02:44.000Z
2020-03-29T17:52:11.000Z
pitfall/utils.py
bincyber/pitfall
680c33ae30a2ed1d2bbf742f74accc34b81b1f5b
[ "Apache-2.0" ]
1
2020-07-29T07:33:52.000Z
2020-07-29T07:33:52.000Z
# Copyright 2019 Ali (@bincyber) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
31.429412
102
0.703724
0
0
0
0
0
0
0
0
2,123
0.397342
63f2138c7f6ecd04713fbbea646ddb3dcb6f6400
93
py
Python
ch06/matplotlib_demo.py
jabrena/space-math
313d66f48ef642d7ce4d2c9765d55bc4bdade17b
[ "Apache-2.0" ]
1
2021-07-26T18:40:15.000Z
2021-07-26T18:40:15.000Z
ch06/matplotlib_demo.py
jabrena/space-math
313d66f48ef642d7ce4d2c9765d55bc4bdade17b
[ "Apache-2.0" ]
24
2021-07-10T15:31:05.000Z
2022-03-17T06:43:36.000Z
ch06/matplotlib_demo.py
jabrena/space-math
313d66f48ef642d7ce4d2c9765d55bc4bdade17b
[ "Apache-2.0" ]
null
null
null
import matplotlib.pyplot as plt plt.plot([1,23,2,4]) plt.ylabel('some numbers') plt.show()
13.285714
31
0.709677
0
0
0
0
0
0
0
0
14
0.150538
63f28425c3f52ac3335ca7b5ceae3be50c402ea4
62,779
py
Python
pysnmp/HP-ICF-IP-ROUTING.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/HP-ICF-IP-ROUTING.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/HP-ICF-IP-ROUTING.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module HP-ICF-IP-ROUTING (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HP-ICF-IP-ROUTING # Produced by pysmi-0.3.4 at Mon Apr 29 19:21:41 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Ma...
136.77342
9,869
0.751079
1,196
0.019051
0
0
0
0
0
0
12,520
0.19943
63f3eca2bcc5a707c88b9689f2ad3589628e5416
13,261
py
Python
chb/bctypes/BCTyp.py
kestreltechnology/CodeHawk-Binary
aa0b2534e0318e5fb3770ec7b4d78feb0feb2394
[ "MIT" ]
null
null
null
chb/bctypes/BCTyp.py
kestreltechnology/CodeHawk-Binary
aa0b2534e0318e5fb3770ec7b4d78feb0feb2394
[ "MIT" ]
null
null
null
chb/bctypes/BCTyp.py
kestreltechnology/CodeHawk-Binary
aa0b2534e0318e5fb3770ec7b4d78feb0feb2394
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------------ # CodeHawk Binary Analyzer # Author: Henny Sipma # ------------------------------------------------------------------------------ # The MIT License (MIT) # # Copyright (c) 2021-2022 Aarno Labs LLC # # Permission is hereby granted, free of ...
25.900391
80
0.567981
8,710
0.656813
0
0
8,397
0.63321
0
0
3,508
0.264535
63f444046bb1df157608c2a56987485735098de5
1,810
py
Python
select_language.py
elviscruz45/Selenium
4959b552fe3658802663520fc817f5e3c86aa2b7
[ "MIT" ]
null
null
null
select_language.py
elviscruz45/Selenium
4959b552fe3658802663520fc817f5e3c86aa2b7
[ "MIT" ]
null
null
null
select_language.py
elviscruz45/Selenium
4959b552fe3658802663520fc817f5e3c86aa2b7
[ "MIT" ]
null
null
null
import unittest from selenium import webdriver #submodulo para usar el dropdown from selenium.webdriver.support.ui import Select class LanguageOptions(unittest.TestCase): def setUp(self): self.driver = webdriver.Chrome(executable_path = r'./chromedriver') driver = self.driver driver.implicitly_wait(30) driv...
36.2
89
0.781215
1,622
0.893664
0
0
0
0
0
0
760
0.418733
63f4edbce00fde34ebff1d87a9721442ae30e42f
819
py
Python
tests/test_control.py
chaostoolkit-incubator/chaostoolkit-opentracing
c3b4cf755f81db40a4a5fbf342fc6d70455eee42
[ "Apache-2.0" ]
4
2019-03-06T07:02:28.000Z
2021-12-14T05:16:46.000Z
tests/test_control.py
chaostoolkit-incubator/chaostoolkit-opentracing
c3b4cf755f81db40a4a5fbf342fc6d70455eee42
[ "Apache-2.0" ]
2
2019-05-23T16:53:09.000Z
2019-06-20T10:10:59.000Z
tests/test_control.py
chaostoolkit-incubator/chaostoolkit-opentracing
c3b4cf755f81db40a4a5fbf342fc6d70455eee42
[ "Apache-2.0" ]
2
2019-04-27T20:17:43.000Z
2019-11-29T21:44:21.000Z
# -*- coding: utf-8 -*- from unittest.mock import patch import opentracing from chaoslib.types import Configuration from chaostracing.control import cleanup_control, configure_control def test_create_noop_tracer(configuration: Configuration): assert opentracing.is_global_tracer_registered() is False tracer ...
30.333333
67
0.765568
0
0
0
0
0
0
0
0
36
0.043956
63f5d05472c335001bf35ef47f9208c6df7b37a9
1,870
py
Python
rnn/lang_model_pred_next_word/config.py
hautan/train_tf
0946c7a497703f13c156de9f0135296fd91127ee
[ "Apache-2.0" ]
null
null
null
rnn/lang_model_pred_next_word/config.py
hautan/train_tf
0946c7a497703f13c156de9f0135296fd91127ee
[ "Apache-2.0" ]
null
null
null
rnn/lang_model_pred_next_word/config.py
hautan/train_tf
0946c7a497703f13c156de9f0135296fd91127ee
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf import flags logging = tf.logging BASIC = "basic" CUDNN = "cudnn" BLOCK = "block" def get_config(): """Get model config.""" config = None if flags.FLAGS.model == "small": config = SmallConfig() elif flags.FLAGS.model == "medium": config = MediumConfig() elif flags.FLAGS.mode...
19.684211
60
0.664706
1,192
0.637433
0
0
0
0
0
0
187
0.1
63f9a97f8a1d12a0c494ff5ebbdc9c80c2a7869b
1,752
py
Python
sensor/components/rf24.py
mattgrogan/ledmatrix
3a54de98ab107cf1266404400c7eb576007c8b17
[ "MIT" ]
1
2017-10-27T20:27:13.000Z
2017-10-27T20:27:13.000Z
sensor/components/rf24.py
mattgrogan/ledmatrix
3a54de98ab107cf1266404400c7eb576007c8b17
[ "MIT" ]
null
null
null
sensor/components/rf24.py
mattgrogan/ledmatrix
3a54de98ab107cf1266404400c7eb576007c8b17
[ "MIT" ]
null
null
null
import logging import time import requests import influxdb from nrf24 import NRF24 log = logging.getLogger("ledmatrix") class RF24_Sensor(object): def __init__(self, dbclient): # Set up the RF24 pipes = [[0xe7, 0xe7, 0xe7, 0xe7, 0xe7], [0xc2, 0xc2, 0xc2, 0xc2, 0xc2]] ...
20.372093
65
0.586758
1,615
0.921804
0
0
0
0
0
0
255
0.145548
63fc3f147de82089b59cb13ec3cb28b094d1398f
4,465
py
Python
spider/spider.py
omilab/internet-archive-link-extractor
c6940134ccaa68fff57b71001ff9d1c3e80cab9b
[ "MIT" ]
3
2018-04-30T08:06:40.000Z
2021-06-28T05:29:14.000Z
spider/spider.py
omilab/internet-archive-link-extractor
c6940134ccaa68fff57b71001ff9d1c3e80cab9b
[ "MIT" ]
1
2021-03-18T15:21:31.000Z
2021-03-18T15:21:31.000Z
spider/spider.py
omilab/internet-archive-link-extractor
c6940134ccaa68fff57b71001ff9d1c3e80cab9b
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup, SoupStrainer import tldextract import json import re from urlparse import urlparse, urlunparse import requests ARCHIVE_WEB_URL = 'http://web.archive.org/web' ARCHIVE_CDX_URL = 'http://web.archive.org/cdx/search/cdx' MAX_EXTRACTION_LEVEL = 5 class Spider: def __init__(self, extrac...
36.598361
166
0.533707
4,186
0.937514
0
0
0
0
0
0
855
0.191489
63fcf04b9b9a8d66be7df9996321e5a3e5b4d7e9
9,145
py
Python
test/test_SM/test_ploshadki/test_ploshadka_b2b_center.py
IrinaSlobodchikova/marker
72f981134fb025a94348cd2bc829fa8430a01372
[ "Apache-2.0" ]
null
null
null
test/test_SM/test_ploshadki/test_ploshadka_b2b_center.py
IrinaSlobodchikova/marker
72f981134fb025a94348cd2bc829fa8430a01372
[ "Apache-2.0" ]
null
null
null
test/test_SM/test_ploshadki/test_ploshadka_b2b_center.py
IrinaSlobodchikova/marker
72f981134fb025a94348cd2bc829fa8430a01372
[ "Apache-2.0" ]
null
null
null
def test_sm_b2b_center_include_eic_yestoday(app): app.testhelpersm.refresh_page() app.session.open_SM_page(app.smPurchases) app.session.ensure_login_sm(app.username, app.password) app.session.ensure_login_sm(app.username, app.password) app.session.open_SM_page(app.smPurchases) app.testHelperS...
48.386243
113
0.774522
0
0
0
0
0
0
0
0
2,630
0.257717
63fd4bd54b5d3ab935a4584d74cf20a2fb417b19
38
py
Python
tests/functional/modules/a_hidden_import/__init__.py
hawkhai/pyinstaller
016a24479b34de161792c72dde455a81ad4c78ae
[ "Apache-2.0" ]
9,267
2015-01-01T04:08:45.000Z
2022-03-31T11:42:38.000Z
tests/functional/modules/a_hidden_import/__init__.py
hawkhai/pyinstaller
016a24479b34de161792c72dde455a81ad4c78ae
[ "Apache-2.0" ]
5,150
2015-01-01T12:09:56.000Z
2022-03-31T18:06:12.000Z
tests/functional/modules/a_hidden_import/__init__.py
hawkhai/pyinstaller
016a24479b34de161792c72dde455a81ad4c78ae
[ "Apache-2.0" ]
2,101
2015-01-03T10:25:27.000Z
2022-03-30T11:04:42.000Z
from . import submodule # noqa: F401
19
37
0.710526
0
0
0
0
0
0
0
0
12
0.315789
63fdd3f4280910bb636973ee1df67b1888e017fe
340
py
Python
celery_project/tools/exceptions.py
JasonLearning/dzdp_spider
2e09b1a18ae7f168ff1cd7457dc6b50f2cb364a7
[ "Apache-2.0" ]
null
null
null
celery_project/tools/exceptions.py
JasonLearning/dzdp_spider
2e09b1a18ae7f168ff1cd7457dc6b50f2cb364a7
[ "Apache-2.0" ]
null
null
null
celery_project/tools/exceptions.py
JasonLearning/dzdp_spider
2e09b1a18ae7f168ff1cd7457dc6b50f2cb364a7
[ "Apache-2.0" ]
null
null
null
# !/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 17/2/17 下午2:39 # @Author : Jason # @File : exceptions.py class InvalidGoodUrlException(Exception): pass class InvalidCategoryUrlException(Exception): pass class DocumentNotFoundException(Exception): pass class InvalidParamException(E...
15.454545
45
0.688235
204
0.593023
0
0
0
0
0
0
123
0.357558
63fdf7825ab44c67de691a26081114f91b5fc925
9,985
bzl
Python
cc/private/common.bzl
EtherealWake/tools
54e81b4cd01c1af34e4180376aac60bb96668865
[ "0BSD" ]
1
2019-08-13T01:11:11.000Z
2019-08-13T01:11:11.000Z
cc/private/common.bzl
EtherealWake/tools
54e81b4cd01c1af34e4180376aac60bb96668865
[ "0BSD" ]
null
null
null
cc/private/common.bzl
EtherealWake/tools
54e81b4cd01c1af34e4180376aac60bb96668865
[ "0BSD" ]
null
null
null
# # Copyright (c) 2019 Jonathan McGee <broken.source@etherealwake.com> # # Permission to use, copy, modify, and distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS I...
33.733108
80
0.665699
0
0
0
0
0
0
0
0
3,762
0.376765
120014680c2bd2d7ca378ada98745e9de9eb3aee
7,094
py
Python
platforms/m3/programming/program_via_i2c.py
lab11/M-ulator
95b49c6194678c74accca4a20af71380efbcac5f
[ "Apache-2.0", "MIT" ]
19
2015-01-26T10:47:23.000Z
2021-08-13T11:07:54.000Z
platforms/m3/programming/program_via_i2c.py
lab11/M-ulator
95b49c6194678c74accca4a20af71380efbcac5f
[ "Apache-2.0", "MIT" ]
14
2015-08-24T02:35:46.000Z
2021-05-05T03:53:44.000Z
platforms/m3/programming/program_via_i2c.py
lab11/M-ulator
95b49c6194678c74accca4a20af71380efbcac5f
[ "Apache-2.0", "MIT" ]
9
2015-05-27T23:27:35.000Z
2020-10-05T22:02:43.000Z
#!/usr/bin/env python # # self-test: socat -x pty,link=/tmp/com1,raw,echo=0 pty,link=/tmp/com2,raw,echo=0 from math import ceil from m3_common import printing_sleep as sleep import socket import sys import os import mimetypes import queue import logging logging.basicConfig(level=logging.INFO, format="%(message)s") log...
31.669643
89
0.64914
0
0
0
0
0
0
0
0
2,466
0.347618
1200fc9093c669658eb3eda6038151eb69622171
7,889
py
Python
aviacme/cert.py
vidarno/aviacme
6a00c29fda1664e5f546c879487bba84ca9d3681
[ "MIT" ]
null
null
null
aviacme/cert.py
vidarno/aviacme
6a00c29fda1664e5f546c879487bba84ca9d3681
[ "MIT" ]
null
null
null
aviacme/cert.py
vidarno/aviacme
6a00c29fda1664e5f546c879487bba84ca9d3681
[ "MIT" ]
null
null
null
"""Functions related to certificates""" import json import logging import uuid from datetime import datetime, timedelta from enum import Enum from pathlib import Path import attr from cryptography import x509 from cryptography.hazmat.backends import default_backend logger = logging.getLogger(__name__) class CertErr...
30.110687
88
0.591837
5,267
0.667638
0
0
4,932
0.625174
0
0
1,838
0.232983
12016e4fe64bb35056a54608c56a4fed76dd5e23
4,456
py
Python
LeNetWithS3Pooling/training/pooling.py
cclauss/DL4AGX
b4d73f6c39b0428e32ce5656352800cc7e2cfb22
[ "Apache-2.0" ]
1
2021-04-16T10:20:08.000Z
2021-04-16T10:20:08.000Z
LeNetWithS3Pooling/training/pooling.py
andi4191/DL4AGX
b2aec0cc0d1375bcc29a94999e8cf66ca8e218fd
[ "Apache-2.0" ]
null
null
null
LeNetWithS3Pooling/training/pooling.py
andi4191/DL4AGX
b2aec0cc0d1375bcc29a94999e8cf66ca8e218fd
[ "Apache-2.0" ]
null
null
null
########################################################################## # Copyright (c) 2018-2019 NVIDIA Corporation. 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 #...
37.445378
84
0.559022
3,466
0.777828
0
0
0
0
0
0
1,862
0.417864
1203afb61ab68811b0be249f8039a7d8df5ddf01
85,636
py
Python
hubspot/cms/blogs/blog_posts/models/blog_post.py
Ronfer/hubspot-api-python
1c87274ecbba4aa3c7728f890ccc6e77b2b6d2e4
[ "Apache-2.0" ]
117
2020-04-06T08:22:53.000Z
2022-03-18T03:41:29.000Z
hubspot/cms/blogs/blog_posts/models/blog_post.py
Ronfer/hubspot-api-python
1c87274ecbba4aa3c7728f890ccc6e77b2b6d2e4
[ "Apache-2.0" ]
62
2020-04-06T16:21:06.000Z
2022-03-17T16:50:44.000Z
hubspot/cms/blogs/blog_posts/models/blog_post.py
Ronfer/hubspot-api-python
1c87274ecbba4aa3c7728f890ccc6e77b2b6d2e4
[ "Apache-2.0" ]
45
2020-04-06T16:13:52.000Z
2022-03-30T21:33:17.000Z
# coding: utf-8 """ Blog Post endpoints \"Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags\" # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from hubspot.cms.blo...
32.315472
181
0.57115
85,264
0.995656
0
0
70,891
0.827818
0
0
43,318
0.505839
1204747831fc9864ec931f9ad42fa72ea7913318
4,743
py
Python
detector/train.py
EthanLuu/code-clone-detector
0b6270ba18f9f266de0160c758e3e4554912fe08
[ "MIT" ]
3
2021-11-22T03:57:43.000Z
2022-01-11T12:08:52.000Z
detector/train.py
EthanLuu/code-clone-detector
0b6270ba18f9f266de0160c758e3e4554912fe08
[ "MIT" ]
null
null
null
detector/train.py
EthanLuu/code-clone-detector
0b6270ba18f9f266de0160c758e3e4554912fe08
[ "MIT" ]
1
2021-07-12T04:25:32.000Z
2021-07-12T04:25:32.000Z
import pandas as pd import os import torch import numpy as np import pickle import dill from settings import settings from model import BatchProgramCC from torch.autograd import Variable from gensim.models.word2vec import Word2Vec from sklearn.metrics import precision_recall_fscore_support categories = 5 HIDDEN_DIM =...
33.167832
118
0.571157
0
0
0
0
0
0
0
0
431
0.090036
1205449d8dab287437413d7a919c70335600e9bd
653
py
Python
src/lesson02/06-function.py
shq-shq-shq/python-lessons
fac96b0c95c676e8256329ac269ad4530f245d84
[ "MIT" ]
null
null
null
src/lesson02/06-function.py
shq-shq-shq/python-lessons
fac96b0c95c676e8256329ac269ad4530f245d84
[ "MIT" ]
null
null
null
src/lesson02/06-function.py
shq-shq-shq/python-lessons
fac96b0c95c676e8256329ac269ad4530f245d84
[ "MIT" ]
null
null
null
def поздороваться(): print("Привет, программист!") поздороваться() поздороваться() поздороваться() поздороваться() поздороваться() def поздравить_с(как, чем): print(как + " поздравляю с " + чем + "!") поздравить_с("непременно", "новым годом") поздороваться() поздравить_с("вяло", "днём тунеядца и разгильдяя"...
20.40625
50
0.7366
0
0
0
0
0
0
0
0
294
0.268004
1205b697340a6ca66a4b5eefeee7e83d113d7439
3,336
py
Python
whatthefood/data/visualise.py
lychanl/WhatTheFood
94b6eec2c306e7e55b19395cde207d6e6beec7fe
[ "MIT" ]
null
null
null
whatthefood/data/visualise.py
lychanl/WhatTheFood
94b6eec2c306e7e55b19395cde207d6e6beec7fe
[ "MIT" ]
null
null
null
whatthefood/data/visualise.py
lychanl/WhatTheFood
94b6eec2c306e7e55b19395cde207d6e6beec7fe
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import pickle import numpy as np import argparse from whatthefood.data.xml_to_obj import parse_file from whatthefood.data.obj_to_nparray import get_objects_from_output, load_input_image from whatthefood.data.preprocessing import ScalePreprocessor from whatthefood.classification.utils im...
34.391753
103
0.658573
0
0
0
0
0
0
0
0
215
0.064448
120640bc4f94db61aa5fd8dea942754f11d7021a
855
py
Python
simulator.py
kryzsec/TOS_Prankster_Simulator
4ef6f7133bf50607dc1a720e97ed636e740a9dc0
[ "Unlicense" ]
null
null
null
simulator.py
kryzsec/TOS_Prankster_Simulator
4ef6f7133bf50607dc1a720e97ed636e740a9dc0
[ "Unlicense" ]
null
null
null
simulator.py
kryzsec/TOS_Prankster_Simulator
4ef6f7133bf50607dc1a720e97ed636e740a9dc0
[ "Unlicense" ]
null
null
null
from random import randint d3 = 0 d4 = 0 d5 = 0 d6 = 0 d7 = 0 d8 = 0 d9p = 0 nm = 100000 def roll(): return randint(1,10); def count(): num = 0 n2 = 0; while(num<3): n2+=1 r = roll() if r == 10: pass else: num+=1 return n2 def avg_win_day(): return (d3*3+d4*4+d5*5+d6*6+d7*7+d8*8+d9p*9)/nm te...
15.545455
262
0.523977
0
0
0
0
0
0
0
0
171
0.2
1206d8e2c1e71e7cdd590a11a2f6c861efb19b7e
12,320
py
Python
1_code/cluster/predict_symptoms_scv_grid.py
lindenmp/NormativeNeuroDev_CrossSec_DWI
af54928f047dd0c08fefcd7102b604cfeb84d364
[ "MIT" ]
null
null
null
1_code/cluster/predict_symptoms_scv_grid.py
lindenmp/NormativeNeuroDev_CrossSec_DWI
af54928f047dd0c08fefcd7102b604cfeb84d364
[ "MIT" ]
7
2020-03-25T14:09:37.000Z
2022-01-13T02:37:09.000Z
1_code/cluster/predict_symptoms_scv_grid.py
lindenmp/neurodev_cs_predictive
af54928f047dd0c08fefcd7102b604cfeb84d364
[ "MIT" ]
null
null
null
import argparse # Essentials import os, sys, glob import pandas as pd import numpy as np import copy import json # Stats import scipy as sp from scipy import stats # Sklearn from sklearn.pipeline import Pipeline from sklearn.preprocessing import StandardScaler from sklearn.model_selection import KFold, GridSearchCV,...
43.380282
173
0.589205
0
0
0
0
0
0
0
0
3,635
0.295049
1206fe6c45497b764461237225d86918b1452f87
941
py
Python
code/Interpreters/RThread.py
antuniooh/Dattebayo-compiler
fd6767aee1c131dcbf76fc061bce43224df03f8b
[ "MIT" ]
null
null
null
code/Interpreters/RThread.py
antuniooh/Dattebayo-compiler
fd6767aee1c131dcbf76fc061bce43224df03f8b
[ "MIT" ]
null
null
null
code/Interpreters/RThread.py
antuniooh/Dattebayo-compiler
fd6767aee1c131dcbf76fc061bce43224df03f8b
[ "MIT" ]
1
2021-12-05T14:00:39.000Z
2021-12-05T14:00:39.000Z
from threading import Thread class ThreadWithReturnValue(Thread): def __init__(self, group=None, target=None, name=None, args=(), kwargs={}, Verbose=None): """ Performs the creation of an object of type ThreadWithReturnValue :param group: group of thread :param target: ta...
28.515152
76
0.564293
909
0.965994
0
0
0
0
0
0
389
0.41339
1207c0c819347d26f1f5ae9a5c2ef2ea9e853dbd
1,783
py
Python
src/recognize.py
avi09/Desktop-Assistant
58019b41872af932c219106db94f7c3772cdde36
[ "MIT" ]
1
2020-11-24T11:34:57.000Z
2020-11-24T11:34:57.000Z
src/recognize.py
avi09/Desktop-Assistant
58019b41872af932c219106db94f7c3772cdde36
[ "MIT" ]
null
null
null
src/recognize.py
avi09/Desktop-Assistant
58019b41872af932c219106db94f7c3772cdde36
[ "MIT" ]
null
null
null
import speech_recognition as sr from gtts import gTTS import os import threading import time heard = False control = False r = sr.Recognizer() audio = "" def secondary_detect(): global heard, control, audio, r while True: s = "" if control==True: try: s = r.recognize_google(audio).lower() except sr.U...
23.155844
92
0.658441
0
0
0
0
0
0
0
0
440
0.246775
1209b37a5fff85e6894affb2d4a1eb23e4cf32e9
838
py
Python
counting_test.py
marcoher/rbm
94e16393048c6a70353580c59cf0c8dc1977dd19
[ "MIT" ]
null
null
null
counting_test.py
marcoher/rbm
94e16393048c6a70353580c59cf0c8dc1977dd19
[ "MIT" ]
null
null
null
counting_test.py
marcoher/rbm
94e16393048c6a70353580c59cf0c8dc1977dd19
[ "MIT" ]
null
null
null
from __future__ import division from model2 import RBM2 import numpy as np n = 15 samples = 400 X = np.zeros((samples, n, 2), dtype=np.int32) for i in xrange(samples): m = np.random.randint(1, n//2) j1 = np.random.choice(n, size=(m), replace=False) j2 = np.random.choice(n, size=(m), replace=False) X...
22.648649
83
0.607399
0
0
0
0
0
0
0
0
62
0.073986
1209cdcba3e6b97b1c44983c53df59e38dab1068
629
py
Python
experiments/swiss-roll2-17May.py
ishank011/gp-structure-search
7984693f359baad07870ca24f058ff0bb52468b5
[ "MIT" ]
1
2020-04-08T12:25:37.000Z
2020-04-08T12:25:37.000Z
experiments/swiss-roll2-17May.py
hassan-bdw/gp-structure-search
ca6771cb08ee993f474b8e206a0410aa0b62e58a
[ "MIT" ]
null
null
null
experiments/swiss-roll2-17May.py
hassan-bdw/gp-structure-search
ca6771cb08ee993f474b8e206a0410aa0b62e58a
[ "MIT" ]
null
null
null
# Runs on all swiss roll datasets, quickly. Experiment(description='Swiss roll normalized slow', data_dir='../data/swiss-roll2/', max_depth=10, random_order=False, k=1, debug=False, local_computation=False, n_rand=3, sd=4, ...
26.208333
52
0.508744
0
0
0
0
0
0
0
0
130
0.206677
120b99a0975e33345360483fef0a78b371c52141
2,633
py
Python
ai/split-chinese/jieba-base.py
veaba/ncov
6019f6b90761fd39363f8a7182ffcee22b9cb7ed
[ "MIT" ]
288
2020-01-21T06:12:03.000Z
2022-01-16T08:03:13.000Z
ai/split-chinese/jieba-base.py
veaba/ncov
6019f6b90761fd39363f8a7182ffcee22b9cb7ed
[ "MIT" ]
26
2020-01-20T05:07:31.000Z
2022-03-12T00:24:56.000Z
ai/split-chinese/jieba-base.py
veaba/ncov
6019f6b90761fd39363f8a7182ffcee22b9cb7ed
[ "MIT" ]
48
2020-01-22T09:05:59.000Z
2022-01-16T08:03:11.000Z
# encoding=utf-8 import jieba.posseg as psg # string="来到北京清华大学" string ="""  4月12日0—24时,31个省(自治区、直辖市)和新疆生产建设兵团报告新增确诊病例108例,其中98例为境外输入病例,10例为本土病例(黑龙江7例,广东3例);新增死亡病例2例(湖北2例);新增疑似病例6例,均为境外输入病例(黑龙江4例,上海2例)。   当日新增治愈出院病例88例,解除医学观察的密切接触者1092人,重症病例减少18例。   境外输入现有确诊病例867例(含重症病例38例),现有疑似病例72例。累计确诊病例1378例,累计治愈出院病例511例,无死亡病例。 ...
65.825
179
0.550703
0
0
0
0
0
0
0
0
4,948
0.978059
120ca5c4ac58e2fc2895a4b9f281ee43dcb77564
2,120
py
Python
venv/lib/python3.7/site-packages/allauth/socialaccount/providers/azure/views.py
vikram0207/django-rest
eafec575999dce6859dc7b99177cff339b2bcbdd
[ "MIT" ]
12
2019-08-02T07:58:16.000Z
2022-01-31T23:45:08.000Z
venv/lib/python3.7/site-packages/allauth/socialaccount/providers/azure/views.py
vikram0207/django-rest
eafec575999dce6859dc7b99177cff339b2bcbdd
[ "MIT" ]
23
2019-01-19T08:54:48.000Z
2022-03-11T23:39:37.000Z
venv/lib/python3.7/site-packages/allauth/socialaccount/providers/azure/views.py
vikram0207/django-rest
eafec575999dce6859dc7b99177cff339b2bcbdd
[ "MIT" ]
17
2020-03-03T08:42:17.000Z
2020-10-03T16:08:49.000Z
from __future__ import unicode_literals import requests from allauth.socialaccount.providers.oauth2.views import ( OAuth2Adapter, OAuth2CallbackView, OAuth2LoginView, ) from .provider import AzureProvider LOGIN_URL = 'https://login.microsoftonline.com/common/oauth2/v2.0' GRAPH_URL = 'https://graph.micr...
33.650794
108
0.692925
1,645
0.775943
0
0
0
0
0
0
1,087
0.512736
120ca81e28bba9f7cc8389252be215df8a98086a
44,887
py
Python
meerk40t/lihuiyu/gui/lhystudiosdrivergui.py
joerlane/meerk40t
a75d78848ff1682640e112111fb6ac4e23e08616
[ "MIT" ]
null
null
null
meerk40t/lihuiyu/gui/lhystudiosdrivergui.py
joerlane/meerk40t
a75d78848ff1682640e112111fb6ac4e23e08616
[ "MIT" ]
null
null
null
meerk40t/lihuiyu/gui/lhystudiosdrivergui.py
joerlane/meerk40t
a75d78848ff1682640e112111fb6ac4e23e08616
[ "MIT" ]
null
null
null
# -*- coding: ISO-8859-1 -*- import wx from meerk40t.core.units import Length from meerk40t.gui.icons import icons8_administrative_tools_50 from meerk40t.gui.mwindow import MWindow from meerk40t.kernel import signal_listener _ = wx.GetTranslation FIX_SPEEDS_RATIO = 0.9195 class ConfigurationUsb(wx.Panel): def...
39.409131
414
0.646111
44,592
0.993428
0
0
524
0.011674
0
0
6,455
0.143806
120cce945b9f176ef8b7f631e3e71f050cc39657
2,686
py
Python
fast_multiplier_utils.py
morozyto/SMASH
70a42bfd27b593a5ddb13a8afe58a0853a9f3a46
[ "MIT" ]
null
null
null
fast_multiplier_utils.py
morozyto/SMASH
70a42bfd27b593a5ddb13a8afe58a0853a9f3a46
[ "MIT" ]
null
null
null
fast_multiplier_utils.py
morozyto/SMASH
70a42bfd27b593a5ddb13a8afe58a0853a9f3a46
[ "MIT" ]
null
null
null
import tools from multiprocessing import SimpleQueue, Process import numpy as np __all__ = ['fast_multiply'] def get_b(i, level_to_nodes, max_level, b): indices = level_to_nodes[max_level][i].Indices start, end = indices[0], indices[-1] res = b[start:end + 1] return res def get_G(k, i, level_to_no...
31.6
119
0.61653
0
0
0
0
0
0
0
0
15
0.005585
120dee089b6cc07493a0c81d69883ab91214ae37
187
py
Python
storage/urls.py
Robin8Put/pmes
338bec94162098f05b75bad035417317e1252fd2
[ "Apache-2.0" ]
5
2018-07-31T07:37:09.000Z
2019-05-27T04:40:38.000Z
storage/urls.py
Robin8Put/pmes
338bec94162098f05b75bad035417317e1252fd2
[ "Apache-2.0" ]
4
2018-08-01T11:11:54.000Z
2022-03-11T23:20:53.000Z
storage/urls.py
Robin8Put/pmes
338bec94162098f05b75bad035417317e1252fd2
[ "Apache-2.0" ]
5
2018-06-09T07:42:04.000Z
2018-12-28T21:15:52.000Z
import tornado.web import settings import views storage_router = tornado.web.Application([ (settings.ENDPOINTS["storage"], views.StorageHandler) ], debug=settings.DEBUG)
26.714286
62
0.73262
0
0
0
0
0
0
0
0
9
0.048128
1210c5c1adc2120eef651c0b252f64a8824fdac1
449
py
Python
MPNet/AE/data_loader.py
liqi17thu/MPNet
b2dd2fa6037c5a307708de865c10c8ba86856e59
[ "MIT" ]
null
null
null
MPNet/AE/data_loader.py
liqi17thu/MPNet
b2dd2fa6037c5a307708de865c10c8ba86856e59
[ "MIT" ]
null
null
null
MPNet/AE/data_loader.py
liqi17thu/MPNet
b2dd2fa6037c5a307708de865c10c8ba86856e59
[ "MIT" ]
null
null
null
import torch import torch.utils.data as data import os import pickle import numpy as np import nltk from PIL import Image import os.path import random def load_dataset(N=30000, NP=1800): obstacles = np.zeros((N, 2800), dtype=np.float32) for i in range(0, N): temp = np.fromfile('../dataset2/obs_cloud/o...
22.45
73
0.668151
0
0
0
0
0
0
0
0
33
0.073497
12112f7d0f3727152084ea033286d88e53e8c329
2,885
py
Python
module3-nosql-and-document-oriented-databases/rpg_mongo.py
krsmith/DS-Unit-3-Sprint-2-SQL-and-Databases
9617528ad5fd23354623926b819f98f9a063d252
[ "MIT" ]
null
null
null
module3-nosql-and-document-oriented-databases/rpg_mongo.py
krsmith/DS-Unit-3-Sprint-2-SQL-and-Databases
9617528ad5fd23354623926b819f98f9a063d252
[ "MIT" ]
null
null
null
module3-nosql-and-document-oriented-databases/rpg_mongo.py
krsmith/DS-Unit-3-Sprint-2-SQL-and-Databases
9617528ad5fd23354623926b819f98f9a063d252
[ "MIT" ]
null
null
null
import pymongo import json import urllib.request connection_string = 'mongodb://<USERNAME>:<PASSWORD>@cluster0-shard-00-00-pjgev.mongodb.net:27017,cluster0-shard-00-01-pjgev.mongodb.net:27017,cluster0-shard-00-02-pjgev.mongodb.net:27017/test?ssl=true&replicaSet=Cluster0-shard-0&authSource=admin&retryWrites=true' clien...
38.466667
264
0.744194
0
0
0
0
0
0
0
0
1,294
0.448527
121240feaf02f8178ec17474cc615822de1faa36
411
py
Python
twikwak17/phases/__init__.py
shaypal5/gender_augmented_twitter_network
3a33feb4dfdb9413201d7844a15ecacf21ef9ba0
[ "MIT" ]
null
null
null
twikwak17/phases/__init__.py
shaypal5/gender_augmented_twitter_network
3a33feb4dfdb9413201d7844a15ecacf21ef9ba0
[ "MIT" ]
null
null
null
twikwak17/phases/__init__.py
shaypal5/gender_augmented_twitter_network
3a33feb4dfdb9413201d7844a15ecacf21ef9ba0
[ "MIT" ]
null
null
null
"""The different phases of the data generation pipeline.""" from .phase1 import ( # noqa: F401 phase1, ) from .phase2 import ( # noqa: F401 phase2, ) from .phase3 import ( # noqa: F401 phase3, ) from .phase4 import ( # noqa: F401 phase4, ) from .phase5 import ( # noqa: F401 phase5, ) from .pha...
17.125
59
0.620438
0
0
0
0
0
0
0
0
143
0.347932
121268fc44398fa4d8c57e08b1e5e38fe9e492b2
4,458
py
Python
AlyMoly/tags/templatetags/tags.py
CreceLibre/alymoly
1420e305f41301b8548dfbbabfc64330b74403be
[ "MIT" ]
null
null
null
AlyMoly/tags/templatetags/tags.py
CreceLibre/alymoly
1420e305f41301b8548dfbbabfc64330b74403be
[ "MIT" ]
null
null
null
AlyMoly/tags/templatetags/tags.py
CreceLibre/alymoly
1420e305f41301b8548dfbbabfc64330b74403be
[ "MIT" ]
null
null
null
#!/usr/bin/env python #-*- encoding: UTF-8 -*- ############################################### # Todos los derechos reservados a: # # CreceLibre Consultores en Tecnologías Ltda. # # # # ©Milton Inostroza Aguilera # # minostro@minostro.com ...
33.268657
84
0.482952
0
0
0
0
1,484
0.33162
0
0
1,657
0.370279
12139f49154f34b8c8740a61c1db66b2f3f6df64
453
py
Python
airodb_analyzer/ui/aboutBoxForm.py
jeremydumais/airodb-analyzer
2056b95891b3543c51758bc586a98b90e54c9670
[ "MIT" ]
null
null
null
airodb_analyzer/ui/aboutBoxForm.py
jeremydumais/airodb-analyzer
2056b95891b3543c51758bc586a98b90e54c9670
[ "MIT" ]
null
null
null
airodb_analyzer/ui/aboutBoxForm.py
jeremydumais/airodb-analyzer
2056b95891b3543c51758bc586a98b90e54c9670
[ "MIT" ]
null
null
null
from PyQt5 import QtCore, QtGui, QtWidgets, uic import qdarkgraystyle class Ui_AboutBoxForm(QtWidgets.QDialog): def __init__(self): super(Ui_AboutBoxForm, self).__init__() uic.loadUi('airodb_analyzer/designer/aboutBoxForm.ui', self) self.setStyleSheet(qdarkgraystyle.load_stylesheet()) ...
34.846154
68
0.717439
382
0.843267
0
0
0
0
0
0
50
0.110375
1216510f06846187ec2c36e2c66ddc29c2a13123
4,263
py
Python
flashback/thread.py
miroli/flashback
a7ac89a522c09f3b2277fb0cf3a8cf8da95ae3d1
[ "MIT" ]
1
2017-06-09T13:14:35.000Z
2017-06-09T13:14:35.000Z
flashback/thread.py
miroli/flashback
a7ac89a522c09f3b2277fb0cf3a8cf8da95ae3d1
[ "MIT" ]
1
2016-12-27T19:23:34.000Z
2016-12-27T19:23:34.000Z
flashback/thread.py
miroli/flashback
a7ac89a522c09f3b2277fb0cf3a8cf8da95ae3d1
[ "MIT" ]
1
2016-12-26T16:25:18.000Z
2016-12-26T16:25:18.000Z
# -*- coding: utf-8 -*- import csv import json import datetime import urllib from collections import Counter import requests from bs4 import BeautifulSoup from .post import Post class TrashException(Exception): pass class AuthException(Exception): pass class LoginException(Exception): pass class ...
29.19863
75
0.594183
3,201
0.747199
0
0
380
0.088702
0
0
1,240
0.289449
121677d83b1b19d4371425c9caf2a48da8fb17ef
1,152
py
Python
utils/print_statistics.py
tianchenji/Multimodal-SVAE
c76b7f8984610e32819510a7a5295124b97460be
[ "MIT" ]
8
2020-11-12T23:43:28.000Z
2022-01-14T02:01:18.000Z
utils/print_statistics.py
tianchenji/Multimodal-SVAE
c76b7f8984610e32819510a7a5295124b97460be
[ "MIT" ]
null
null
null
utils/print_statistics.py
tianchenji/Multimodal-SVAE
c76b7f8984610e32819510a7a5295124b97460be
[ "MIT" ]
2
2020-11-18T03:35:38.000Z
2021-10-21T12:38:59.000Z
import numpy as np import pandas as pd def print_statistics(correct, confusion_m, total, confusion_m_flag): if confusion_m_flag == 0: accuracy = 100 * np.array(correct) / np.array(total) index = ['normal', 'untvbl obs', 'tvbl obs', 'crash'] columns = ['accuracy'] print('Accuracy of...
44.307692
95
0.598958
0
0
0
0
0
0
0
0
283
0.24566
1219cb36a0069666978851302744932b7773dff4
1,185
py
Python
chaperone/cproc/pt/oneshot.py
msabramo/chaperone
9ff2c3a5b9c6820f8750320a564ea214042df06f
[ "Apache-2.0" ]
186
2015-07-22T00:08:04.000Z
2021-11-05T21:51:09.000Z
chaperone/cproc/pt/oneshot.py
msabramo/chaperone
9ff2c3a5b9c6820f8750320a564ea214042df06f
[ "Apache-2.0" ]
24
2015-07-27T15:30:14.000Z
2021-09-11T21:19:37.000Z
chaperone/cproc/pt/oneshot.py
msabramo/chaperone
9ff2c3a5b9c6820f8750320a564ea214042df06f
[ "Apache-2.0" ]
26
2016-01-11T21:02:30.000Z
2021-08-31T11:09:25.000Z
import asyncio from chaperone.cproc.subproc import SubProcess from chaperone.cutil.errors import ChProcessError class OneshotProcess(SubProcess): process_timeout = 60.0 # default for a oneshot is 90 seconds @asyncio.coroutine def process_started_co(self): result = yield from self.timed_wait...
42.321429
127
0.654852
1,071
0.903797
458
0.386498
481
0.405907
0
0
279
0.235443
121a3ac8ab5af490306c27ce4f405eed59364158
7,994
py
Python
Flask Application/App.py
kalninandre/Harvard
0c4e5de4a54873b2f9ce663ee1776a055c7dd3ac
[ "MIT" ]
null
null
null
Flask Application/App.py
kalninandre/Harvard
0c4e5de4a54873b2f9ce663ee1776a055c7dd3ac
[ "MIT" ]
null
null
null
Flask Application/App.py
kalninandre/Harvard
0c4e5de4a54873b2f9ce663ee1776a055c7dd3ac
[ "MIT" ]
null
null
null
import os from cs50 import SQL from flask import Flask, flash, redirect, render_template, request, session from flask_session import Session from tempfile import mkdtemp from werkzeug.security import check_password_hash, generate_password_hash from helpers import apology, login_required, lookup, usd # Configure appl...
30.166038
173
0.628596
0
0
0
0
7,133
0.892294
0
0
2,986
0.37353
121a3b6415753931da04c67d483406265b360d92
673,905
py
Python
pysnmp/BLADETYPE6-NETWORK-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/BLADETYPE6-NETWORK-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/BLADETYPE6-NETWORK-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module BLADETYPE6-NETWORK-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/BLADETYPE6-NETWORK-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:22:26 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (d...
154.105877
17,458
0.729892
0
0
0
0
0
0
0
0
83,607
0.124063
121d25679819deafcd527e85f968ff7009bafc54
1,918
py
Python
setup.py
dnif-archive/fnExchange
d75431b37da3193447b919b4be2e0104266156f1
[ "Apache-2.0" ]
1
2017-07-19T22:13:54.000Z
2017-07-19T22:13:54.000Z
setup.py
dnif/fnExchange
d75431b37da3193447b919b4be2e0104266156f1
[ "Apache-2.0" ]
1
2021-03-25T21:27:21.000Z
2021-03-25T21:27:21.000Z
setup.py
dnif-archive/fnExchange
d75431b37da3193447b919b4be2e0104266156f1
[ "Apache-2.0" ]
1
2021-07-07T18:55:19.000Z
2021-07-07T18:55:19.000Z
""" fnExchange is a scalable, open source API layer (also called an API "router") that provides a consistent proxy web interface for invoking various web APIs without the caller having to write separate, special-purpose code for each of them. fnExchange is packaged as a command line interface executable ``fnexchange``...
28.626866
69
0.663712
0
0
0
0
0
0
0
0
1,259
0.656413
121d57b33c2245662cdd146e4a68652096cf0275
3,026
py
Python
local_traction_control.py
ngrabbs/traction_control
0289604658d68b144a1867f2c70e3c177cc559fe
[ "MIT" ]
null
null
null
local_traction_control.py
ngrabbs/traction_control
0289604658d68b144a1867f2c70e3c177cc559fe
[ "MIT" ]
null
null
null
local_traction_control.py
ngrabbs/traction_control
0289604658d68b144a1867f2c70e3c177cc559fe
[ "MIT" ]
null
null
null
################################################################################ # Time SPK: Traction retard VSS1 VSS2 VSS1 ms 1 VSS2 ms 1 TC slip * time # the info for traction control says "slip% X 0.01s" # Retard 0.0 3.3 6.7 10.0 # slip x time 0.0 6.7 13.3 20.0 # settings were above 50.1 mph and 10% slip...
35.186047
143
0.639128
0
0
0
0
0
0
0
0
897
0.296235
121df04623646121d44d2f0b190065f249970791
869
py
Python
key_value_store/models.py
nahidsaikat/Key-Value-Store
a8e8422727bb4e221b0a78bdb279888cb95cd7ab
[ "MIT" ]
null
null
null
key_value_store/models.py
nahidsaikat/Key-Value-Store
a8e8422727bb4e221b0a78bdb279888cb95cd7ab
[ "MIT" ]
6
2020-06-05T20:17:24.000Z
2021-06-10T18:05:59.000Z
key_value_store/models.py
nahidsaikat/Key-Value-Store
a8e8422727bb4e221b0a78bdb279888cb95cd7ab
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth import get_user_model User = get_user_model() class KeyValue(models.Model): key = models.CharField(max_length=128) value = models.TextField() ttl = models.DecimalField(max_digits=10, decimal_places=6) created_by = models.ForeignKey(User, related_...
41.380952
119
0.747986
765
0.880322
0
0
0
0
0
0
64
0.073648
121f6860127d88688471d0adde04fc41ca279285
6,455
py
Python
util/Spotify.py
broskh/YouSpotify
fcdfe9edb07085a3a607c07adfa60434088e1da5
[ "MIT" ]
null
null
null
util/Spotify.py
broskh/YouSpotify
fcdfe9edb07085a3a607c07adfa60434088e1da5
[ "MIT" ]
null
null
null
util/Spotify.py
broskh/YouSpotify
fcdfe9edb07085a3a607c07adfa60434088e1da5
[ "MIT" ]
null
null
null
import codecs import eyed3 import http.client import http.server import json import re from sys import exit import taglib import time import urllib.error import urllib.parse import urllib.request import webbrowser from util import log class Spotify: # Requires an OAuth token. def __init__(self, auth): ...
40.85443
115
0.612703
5,509
0.853447
0
0
0
0
0
0
2,299
0.356158
1220a3fd8450e8b80799d200f0692602eebe42b1
5,003
py
Python
L4/4.2/PEP8/L1_PEP8.py
Wittline/Python_scripts
9d576e8cc9ef08ec7f1bcc8bb6207dae5ccc5734
[ "MIT" ]
1
2021-08-20T08:25:40.000Z
2021-08-20T08:25:40.000Z
L4/4.2/PEP8/L1_PEP8.py
Wittline/Python_scripts
9d576e8cc9ef08ec7f1bcc8bb6207dae5ccc5734
[ "MIT" ]
null
null
null
L4/4.2/PEP8/L1_PEP8.py
Wittline/Python_scripts
9d576e8cc9ef08ec7f1bcc8bb6207dae5ccc5734
[ "MIT" ]
1
2021-08-20T08:25:41.000Z
2021-08-20T08:25:41.000Z
import math import unittest def calculate_sd(d): m = calculate_mean(d) v = sum([((i - m) ** 2) for i in d]) / len(d) return v ** 0.5 def calculate_mean(n): return sum(n)/len(n) def calculate_median(d): d.sort() n = len(d) if n % 2 == 0: m1 = d[n//2] m...
31.866242
66
0.496302
3,052
0.610034
0
0
0
0
0
0
64
0.012792
1220c122965971e839f7899fd39817e879a3842e
6,173
py
Python
foodx_devops_tools/pipeline_config/_paths.py
Food-X-Technologies/foodx_devops_tools
57d1bf1304d9c9a386eaffa427f9eb36c410c350
[ "MIT" ]
3
2021-06-23T20:53:43.000Z
2022-01-26T14:19:43.000Z
foodx_devops_tools/pipeline_config/_paths.py
Food-X-Technologies/foodx_devops_tools
57d1bf1304d9c9a386eaffa427f9eb36c410c350
[ "MIT" ]
33
2021-08-09T15:44:51.000Z
2022-03-03T18:28:02.000Z
foodx_devops_tools/pipeline_config/_paths.py
Food-X-Technologies/foodx_devops_tools
57d1bf1304d9c9a386eaffa427f9eb36c410c350
[ "MIT" ]
1
2021-06-23T20:53:52.000Z
2021-06-23T20:53:52.000Z
# Copyright (c) 2021 Food-X Technologies # # This file is part of foodx_devops_tools. # # You should have received a copy of the MIT License along with # foodx_devops_tools. If not, see <https://opensource.org/licenses/MIT>. """Configuration file path management.""" import logging import pathlib import typing fr...
32.151042
80
0.609266
5,477
0.887251
0
0
3,739
0.605702
0
0
1,654
0.267941
1221ab57e777c610f8f73a258240f6686a45ed69
65
py
Python
nestor/datasets/__init__.py
usnistgov/nestor-tmp
6cc35dcf4dac029f94c4bc92783b5dc37bc205ce
[ "RSA-MD" ]
16
2018-07-06T16:36:56.000Z
2021-12-13T03:02:02.000Z
nestor/datasets/__init__.py
usnistgov/nestor-tmp
6cc35dcf4dac029f94c4bc92783b5dc37bc205ce
[ "RSA-MD" ]
46
2018-08-06T15:51:35.000Z
2021-08-02T21:00:51.000Z
nestor/datasets/__init__.py
usnistgov/nestor-tmp
6cc35dcf4dac029f94c4bc92783b5dc37bc205ce
[ "RSA-MD" ]
7
2020-04-27T18:56:24.000Z
2021-08-14T02:44:40.000Z
from .base import load_excavators __all__ = ["load_excavators"]
16.25
33
0.784615
0
0
0
0
0
0
0
0
17
0.261538
12227937dd3e5390b3fd917fdf9a71333a4de64c
414
py
Python
easy/n-repeated element in size 2n array/solution.py
ilya-sokolov/leetcode
ad421111d0d7c5ec5245f33552e94a373b6fd426
[ "MIT" ]
4
2021-06-03T22:19:13.000Z
2021-10-05T18:14:12.000Z
easy/n-repeated element in size 2n array/solution.py
ilya-sokolov/leetcode
ad421111d0d7c5ec5245f33552e94a373b6fd426
[ "MIT" ]
null
null
null
easy/n-repeated element in size 2n array/solution.py
ilya-sokolov/leetcode
ad421111d0d7c5ec5245f33552e94a373b6fd426
[ "MIT" ]
null
null
null
from typing import List class Solution: def repeatedNTimes(self, nums: List[int]) -> int: for k in range(1, 4): for i in range(len(nums) - k): if nums[i] == nums[i + k]: return nums[i] return -1 s = Solution() print(s.repeatedNTimes([1, 2, 3, 3])) ...
24.352941
53
0.52657
238
0.574879
0
0
0
0
0
0
0
0
1222c7282f49d3772df08b9a182251c1657c7ca1
948
py
Python
deploy/show_events.py
Acria-Network/Acria-Contracts
3c8b0e6f453ef531a8464ee0bed3cf5642938633
[ "MIT" ]
29
2021-03-11T14:30:21.000Z
2022-02-23T09:15:48.000Z
deploy/show_events.py
harshitvermadu/Acria-Contracts
3c8b0e6f453ef531a8464ee0bed3cf5642938633
[ "MIT" ]
3
2021-05-02T13:58:53.000Z
2022-01-11T19:12:49.000Z
deploy/show_events.py
harshitvermadu/Acria-Contracts
3c8b0e6f453ef531a8464ee0bed3cf5642938633
[ "MIT" ]
8
2021-04-08T12:32:26.000Z
2022-02-23T09:23:56.000Z
import json from web3 import Web3, HTTPProvider, IPCProvider from web3.middleware import geth_poa_middleware import os from os.path import join, dirname from dotenv import load_dotenv load_dotenv(join(dirname(__file__), '.env')) if(os.environ.get("WEB3_USE_IPC") == False): web3 = Web3(HTTPProvider(os.environ.get(...
33.857143
93
0.778481
0
0
0
0
0
0
0
0
157
0.165612
12280aa5408dc93a80e62d7f0a71a4647ad5b226
5,088
py
Python
branches/old/python/ansi-C-generator/generate_source_a4d.py
jeffhammond/spaghetty
e2dbe2dd2621110b899b21dff590906a579e8bf5
[ "BSD-2-Clause" ]
1
2018-01-05T16:13:08.000Z
2018-01-05T16:13:08.000Z
branches/old/python/ansi-C-generator/generate_source_a4d.py
jeffhammond/spaghetty
e2dbe2dd2621110b899b21dff590906a579e8bf5
[ "BSD-2-Clause" ]
null
null
null
branches/old/python/ansi-C-generator/generate_source_a4d.py
jeffhammond/spaghetty
e2dbe2dd2621110b899b21dff590906a579e8bf5
[ "BSD-2-Clause" ]
null
null
null
import fileinput import string import sys import os c_compiler = 'icc' c_link_flags = '-g -O1 -xT -march=core2 -mtune=core2 -align'# -strict-ansi' c_opt_flags = '-g -O3 -xT -march=core2 -mtune=core2 -funroll-loops -align'# -strict-ansi' fortran_compiler = 'ifort' fortran_link_flags = '-g -O1 -xT -march=core2 -mtune=co...
47.551402
128
0.584906
0
0
0
0
0
0
0
0
2,878
0.565645
122bd4054f1dcb784497724ac66a52927f337457
42,079
py
Python
pybin3/insts.py
avielazari/vlsistuff
34304dc64437fc849d74addd09963dca587df537
[ "MIT" ]
26
2018-03-17T18:14:22.000Z
2022-03-14T07:23:13.000Z
pybin3/insts.py
psumesh/vlsistuff
1fe64b093d0581d99c7d826b74c31b8655fa0b31
[ "MIT" ]
1
2019-10-16T10:31:11.000Z
2019-10-17T04:14:53.000Z
pybin3/insts.py
psumesh/vlsistuff
1fe64b093d0581d99c7d826b74c31b8655fa0b31
[ "MIT" ]
7
2018-07-16T07:51:25.000Z
2022-02-15T14:22:54.000Z
#! /usr/bin/env python3 import os,string,sys,types instructions={} inst_id=1 OpcodeWidth=25 Dnops={} DmanualIfields={} DmanualOpcodes={} DnfSpecials = {} Chip = 'chip' def get_inst_id(): global inst_id x = inst_id inst_id=inst_id+1 return x class Instruction: def __init__(self,Name): self...
29.080166
136
0.502887
173
0.004111
0
0
0
0
0
0
9,925
0.235866
122c1bf9143cdfc0dacdc43325b18177c4f1fcae
7,598
py
Python
tests/test_types.py
theLine/LSP
b0c1045862601ee6e6fd3250d3a441d46a6e8d7c
[ "MIT" ]
753
2017-04-21T23:58:56.000Z
2019-12-21T13:39:08.000Z
tests/test_types.py
theLine/LSP
b0c1045862601ee6e6fd3250d3a441d46a6e8d7c
[ "MIT" ]
776
2019-12-21T19:12:46.000Z
2022-03-27T16:04:14.000Z
tests/test_types.py
theLine/LSP
b0c1045862601ee6e6fd3250d3a441d46a6e8d7c
[ "MIT" ]
125
2017-08-14T21:10:34.000Z
2019-12-21T02:34:38.000Z
from LSP.plugin.core.types import diff from LSP.plugin.core.types import DocumentSelector from LSP.plugin.core.typing import List from unittest.mock import MagicMock import sublime import unittest class TestDiff(unittest.TestCase): def test_add(self) -> None: added, removed = diff(("a", "b", "c"), ("a", ...
51.337838
116
0.655436
7,397
0.973289
0
0
0
0
0
0
2,058
0.270789
122d72a559d873a88dff7bb5b54a57ab59446d18
97
py
Python
tests/inline_test_resources/5/subA/script.py
thesynman/pybricksdev
6f34cfb7a5f26628fe3cedae1ce51ee6024f57b9
[ "MIT" ]
null
null
null
tests/inline_test_resources/5/subA/script.py
thesynman/pybricksdev
6f34cfb7a5f26628fe3cedae1ce51ee6024f57b9
[ "MIT" ]
null
null
null
tests/inline_test_resources/5/subA/script.py
thesynman/pybricksdev
6f34cfb7a5f26628fe3cedae1ce51ee6024f57b9
[ "MIT" ]
null
null
null
import subB.importA import importB my_local = 'ggg' print(subB.importA.foo) print(importB.flab)
13.857143
23
0.783505
0
0
0
0
0
0
0
0
5
0.051546
122df72ef8387bf146c14aba36a7307760cd2cfc
1,242
py
Python
demo/py/shap.py
berak/opencv_smallfry
fd8f64980dff0527523791984d6cb3dfcd2bc9bc
[ "BSD-3-Clause" ]
57
2015-02-16T06:43:24.000Z
2022-03-16T06:21:36.000Z
demo/py/shap.py
berak/opencv_smallfry
fd8f64980dff0527523791984d6cb3dfcd2bc9bc
[ "BSD-3-Clause" ]
4
2016-03-08T09:51:09.000Z
2021-03-29T10:18:55.000Z
demo/py/shap.py
berak/opencv_smallfry
fd8f64980dff0527523791984d6cb3dfcd2bc9bc
[ "BSD-3-Clause" ]
27
2015-03-28T19:55:34.000Z
2022-01-09T15:03:15.000Z
import numpy as np import cv2 im = cv2.imread('py/shap.png') cv2.imshow('original image',im) cv2.waitKey() imgray = cv2.cvtColor(im,cv2.COLOR_BGR2GRAY) cv2.imshow('gray image',imgray) cv2.waitKey() ret,thresh = cv2.threshold(imgray,80,255,1) cv2.imshow('thresh image',thresh) cv2.waitKey() image, contours, hierarchy...
24.84
91
0.624799
0
0
0
0
0
0
0
0
143
0.115137
12309dafba73623c841ad45a9bf13a6868d28f00
182
py
Python
scripts/dir.py
DEMON1A/EasyShell
d37589b616f844c4d6f01ad594642033463f346b
[ "MIT" ]
3
2021-02-02T15:07:27.000Z
2021-05-21T10:02:08.000Z
scripts/dir.py
DEMON1A/EasyShell
d37589b616f844c4d6f01ad594642033463f346b
[ "MIT" ]
7
2021-02-03T11:14:04.000Z
2021-02-18T19:39:25.000Z
scripts/dir.py
DEMON1A/EasyShell
d37589b616f844c4d6f01ad594642033463f346b
[ "MIT" ]
null
null
null
from os import system , name def Run(Input): if name == "nt": # Windows Machine system('dir') else: # Linux/Unix Machine system('ls')
20.222222
29
0.505495
0
0
0
0
0
0
0
0
52
0.285714
123220df37e0808414ed2913c0bf8b65b7d004a4
5,840
py
Python
dmlab2d/random_agent.py
jifflund/lab2d
f634c378d428dd19e8b154aa5b590d33f42438bf
[ "Apache-2.0" ]
377
2020-11-16T01:30:06.000Z
2022-03-24T09:30:00.000Z
dmlab2d/random_agent.py
jifflund/lab2d
f634c378d428dd19e8b154aa5b590d33f42438bf
[ "Apache-2.0" ]
17
2020-11-18T13:57:12.000Z
2022-03-28T01:20:52.000Z
dmlab2d/random_agent.py
jifflund/lab2d
f634c378d428dd19e8b154aa5b590d33f42438bf
[ "Apache-2.0" ]
47
2020-11-16T12:36:10.000Z
2022-03-24T17:50:18.000Z
# Copyright 2019 The DMLab2D Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
31.73913
80
0.682363
2,570
0.440068
0
0
0
0
0
0
1,929
0.330308
12342b9334c2a4a3508d4c58273cbcad27a8143b
7,336
py
Python
KthFoldADXMultiPeriod.py
adamrvfisher/TechnicalAnalysisLibrary
38a22b2b2b5052623f81edb11b3c5460fc254e45
[ "Apache-2.0" ]
3
2019-04-26T11:13:14.000Z
2020-01-10T05:58:16.000Z
KthFoldADXMultiPeriod.py
adamrvfisher/TechnicalAnalysisLibrary
38a22b2b2b5052623f81edb11b3c5460fc254e45
[ "Apache-2.0" ]
null
null
null
KthFoldADXMultiPeriod.py
adamrvfisher/TechnicalAnalysisLibrary
38a22b2b2b5052623f81edb11b3c5460fc254e45
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ @author: Adam Reinhold Von Fisher - https://www.linkedin.com/in/adamrvfisher/ """ #pandas_datareader is deprecated, use YahooGrabber #This is part of a k-th fold optimization tool #Import modules #import numpy as np #from pandas_datareader import data import pandas as pd import time as t ...
33.497717
83
0.643675
0
0
0
0
0
0
0
0
2,871
0.391358
1235812bfd2f59b3e973436432bfcc56572fe49f
2,292
py
Python
python/hw5/logger.py
jeremy24/494-graph-algos
031a90e46304f405829bad7658965aae215833e1
[ "MIT" ]
null
null
null
python/hw5/logger.py
jeremy24/494-graph-algos
031a90e46304f405829bad7658965aae215833e1
[ "MIT" ]
null
null
null
python/hw5/logger.py
jeremy24/494-graph-algos
031a90e46304f405829bad7658965aae215833e1
[ "MIT" ]
null
null
null
from __future__ import print_function import logging import sys import pip import os def install(package): try: pip.main(["install", package]) except Exception as ex: raise "Unable to install " + package + ex try: install("colorlog") import colorlog except Exception as ex: raise...
25.186813
87
0.545375
1,111
0.484729
0
0
532
0.232112
0
0
411
0.179319
1237cd245f6b8ab6e5c7b528805435a944e1e442
18,438
py
Python
agents.py
fiorenza2/OffCon3
b5e139e40cee74c4f8d507ed4786fd33ed025157
[ "MIT" ]
17
2021-01-28T17:54:23.000Z
2021-12-21T15:22:22.000Z
agents.py
jparkerholder/OffCon3
b5e139e40cee74c4f8d507ed4786fd33ed025157
[ "MIT" ]
1
2021-02-15T19:28:05.000Z
2021-03-14T23:25:04.000Z
agents.py
fiorenza2/OffCon3
b5e139e40cee74c4f8d507ed4786fd33ed025157
[ "MIT" ]
2
2021-06-21T12:14:44.000Z
2021-08-08T10:04:30.000Z
import copy import numpy as np import torch import torch.nn.functional as F from utils import ReplayPool from networks import Policy, StochasticPolicy, DoubleQFunc device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu") class OffPolicyAgent: def __init__(self, seed, state_dim, action_dim, ...
42.87907
176
0.642911
18,184
0.986224
0
0
694
0.03764
0
0
1,485
0.08054
12383b0b628c1ffcd2fa0c6b1e0b4f97764ed9f1
33,002
py
Python
egg/platform_cpu.py
eschnett/nsimd
11a58156ac8f1d8b60f1112c41efd9ef91d91c3d
[ "MIT" ]
null
null
null
egg/platform_cpu.py
eschnett/nsimd
11a58156ac8f1d8b60f1112c41efd9ef91d91c3d
[ "MIT" ]
null
null
null
egg/platform_cpu.py
eschnett/nsimd
11a58156ac8f1d8b60f1112c41efd9ef91d91c3d
[ "MIT" ]
null
null
null
# Copyright (c) 2019 Agenium Scale # # 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, distr...
40.050971
80
0.43158
0
0
0
0
0
0
0
0
15,702
0.475789
1238eb6ce8b77f02945606bdd4829850e210eefb
1,160
py
Python
app/types/hitbox.py
Ahmed-Khaled-dev/modern-meerkats
e54304303c77928a2566f4e4c3eefb98135acfc7
[ "MIT" ]
1
2022-01-07T02:38:08.000Z
2022-01-07T02:38:08.000Z
app/types/hitbox.py
Ahmed-Khaled-dev/modern-meerkats
e54304303c77928a2566f4e4c3eefb98135acfc7
[ "MIT" ]
null
null
null
app/types/hitbox.py
Ahmed-Khaled-dev/modern-meerkats
e54304303c77928a2566f4e4c3eefb98135acfc7
[ "MIT" ]
null
null
null
from typing import Type from blessed import Terminal from pydantic import BaseModel from app import constants as const class HitBox(BaseModel): """A hitbox is any entity that provides some sort of interaction""" pos_x: int pos_y: int content: str time: int parent: Type def __lt__(self,...
29
74
0.622414
1,036
0.893103
0
0
429
0.369828
0
0
175
0.150862
1239594d29a58dedb1b0d505621f1a432d45aa38
21,907
py
Python
stf/dataset/TestSet_avg_mars.py
TencentYoutuResearch/PersonReID-TSF
b56ba8f4b2cbd7569ab15f62474369dd40d3dca7
[ "Apache-2.0" ]
19
2021-01-07T11:09:46.000Z
2021-12-31T13:05:02.000Z
stf/dataset/TestSet_avg_mars.py
TencentYoutuResearch/PersonReID-TSF
b56ba8f4b2cbd7569ab15f62474369dd40d3dca7
[ "Apache-2.0" ]
null
null
null
stf/dataset/TestSet_avg_mars.py
TencentYoutuResearch/PersonReID-TSF
b56ba8f4b2cbd7569ab15f62474369dd40d3dca7
[ "Apache-2.0" ]
2
2021-01-08T08:30:32.000Z
2021-02-04T02:18:55.000Z
from __future__ import print_function import sys import time import os.path as osp from PIL import Image import cv2 import numpy as np import random from collections import defaultdict from .Dataset import Dataset from ..utils.utils import measure_time from ..utils.re_ranking import re_ranking from ..utils.metric imp...
38.568662
111
0.545305
21,381
0.975989
0
0
0
0
0
0
9,548
0.435842
1239dd44b691726320f6ca0baac8f4ca02b74a2c
1,793
py
Python
aiautomation/log/simple_log.py
marvinren/aiautomation
639f57f502104dd170dca24dd9ff15d80c031e21
[ "MIT" ]
null
null
null
aiautomation/log/simple_log.py
marvinren/aiautomation
639f57f502104dd170dca24dd9ff15d80c031e21
[ "MIT" ]
null
null
null
aiautomation/log/simple_log.py
marvinren/aiautomation
639f57f502104dd170dca24dd9ff15d80c031e21
[ "MIT" ]
null
null
null
from aiautomation.log.abstract_log import AbstractLog from aiautomation.utils.log import get_logger ''' 写入控制台和文件的日志 ''' class SimpleLog(AbstractLog): def step_log_before(self, oper_type, oper_name, oper_id, parent_oper_id=None, *key, **kwargs): if oper_type == AbstractLog.STEP_TYPE_COMPONENT: ...
49.805556
144
0.654769
1,844
0.927099
0
0
0
0
0
0
480
0.241327
123ad9a6c56f78cf322240c246b2a2483aa5e071
326
py
Python
config.py
statsu1990/kaggle_google_quest_qa
4b3569aa6d8b58d2315301a3ad86e6ed1d71c6db
[ "MIT" ]
3
2020-02-13T02:11:02.000Z
2021-09-05T13:15:34.000Z
config.py
statsu1990/kaggle_google_quest_qa
4b3569aa6d8b58d2315301a3ad86e6ed1d71c6db
[ "MIT" ]
null
null
null
config.py
statsu1990/kaggle_google_quest_qa
4b3569aa6d8b58d2315301a3ad86e6ed1d71c6db
[ "MIT" ]
null
null
null
PATH = '../input/google-quest-challenge/' #BERT_PRETRAINED_MODEL = 'bert-base-cased' BERT_PRETRAINED_MODEL = 'bert-base-uncased' BERT_TOKENIZER_PATH = '../input/transformers/' + BERT_PRETRAINED_MODEL + '/tokenizer/' BERT_PRETRAINED_MODEL_PATH = '../input/transformers/' + BERT_PRETRAINED_MODEL + '/pretrained_mod...
40.75
101
0.751534
0
0
0
0
0
0
0
0
177
0.542945
123c1170a7e53c991d85e76f7f6ae02014930f9c
1,875
py
Python
server/dive_server/training.py
Minious/dive
a3867e524021899c7231e4908452d70d9e30aaed
[ "Apache-2.0" ]
null
null
null
server/dive_server/training.py
Minious/dive
a3867e524021899c7231e4908452d70d9e30aaed
[ "Apache-2.0" ]
null
null
null
server/dive_server/training.py
Minious/dive
a3867e524021899c7231e4908452d70d9e30aaed
[ "Apache-2.0" ]
null
null
null
from girder.models.assetstore import Assetstore from girder.models.file import File from girder.models.folder import Folder from girder.models.item import Item from girder.models.upload import Upload from girder.models.user import User from dive_server.utils import get_annotation_csv_generator from dive_utils.constant...
31.779661
96
0.703467
0
0
0
0
0
0
0
0
429
0.2288
123e93ac8a310f95ec894f08e807cdf1c4916bbf
504
py
Python
stacks/345.Reverse Vowels of a string.py
Rage-ops/Leetcode-Solutions
48d4ecbb92a0bb7a7bb74a1445b593a67357ac02
[ "MIT" ]
1
2020-11-23T13:52:11.000Z
2020-11-23T13:52:11.000Z
stacks/345.Reverse Vowels of a string.py
harsha-sam/Leetcode-Solutions
48d4ecbb92a0bb7a7bb74a1445b593a67357ac02
[ "MIT" ]
null
null
null
stacks/345.Reverse Vowels of a string.py
harsha-sam/Leetcode-Solutions
48d4ecbb92a0bb7a7bb74a1445b593a67357ac02
[ "MIT" ]
null
null
null
# Easy # https://leetcode.com/problems/reverse-vowels-of-a-string/ # Time Complexity: O(N) # Space Complexity: O(N) class Solution: def reverseVowels(self, s: str) -> str: stack = [] for letter in s: if letter in "aeiouAEIOU": stack.append(letter) word = "" ...
26.526316
59
0.494048
366
0.72619
0
0
0
0
0
0
138
0.27381
1240429f9a41acc91fc6ae8891a5c5c03f0644c3
1,360
py
Python
cowsay/lib/cows/awesome_face.py
Ovlic/cowsay_py
1ee8d11d6d895d7695d57e26003d71ce18379d3b
[ "MIT" ]
null
null
null
cowsay/lib/cows/awesome_face.py
Ovlic/cowsay_py
1ee8d11d6d895d7695d57e26003d71ce18379d3b
[ "MIT" ]
null
null
null
cowsay/lib/cows/awesome_face.py
Ovlic/cowsay_py
1ee8d11d6d895d7695d57e26003d71ce18379d3b
[ "MIT" ]
null
null
null
def Awesome_face(thoughts, eyes, eye, tongue): return f""" {thoughts} {thoughts} \#[/[#:xxxxxx:#[/[\\x [/\\ &3N W3& \\/[x [[x\@W W\@x[[\\ /#&N N_# /#\@ \@#/x ...
45.333333
83
0.263235
0
0
0
0
0
0
0
0
1,304
0.958824
12447d579d2c9381064673a0bdaf590d555c5609
280
py
Python
pygarlic_validator/__init__.py
bybatkhuu/pygarlic_validator
8ea42545dbcede3faee553e02a5f7e560f9179c1
[ "MIT" ]
1
2022-03-31T06:37:43.000Z
2022-03-31T06:37:43.000Z
pygarlic_validator/__init__.py
bybatkhuu/pygarlic_validator
8ea42545dbcede3faee553e02a5f7e560f9179c1
[ "MIT" ]
null
null
null
pygarlic_validator/__init__.py
bybatkhuu/pygarlic_validator
8ea42545dbcede3faee553e02a5f7e560f9179c1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- try: from pygarlic_validator.validator import validators, checkers, errors from pygarlic_validator.__version__ import __version__ except ImportError: from .validator import validators, checkers, errors from .__version__ import __version__
31.111111
73
0.771429
0
0
0
0
0
0
0
0
23
0.082143
12480d98d0d64204e46e36015b2e324e7c79f23a
13,460
py
Python
spanclient/_endpoint_wrapper.py
illuscio-dev/spanclient-py
6308d221d179ed0db7c211c7a7ec7e2944e8864c
[ "MIT" ]
null
null
null
spanclient/_endpoint_wrapper.py
illuscio-dev/spanclient-py
6308d221d179ed0db7c211c7a7ec7e2944e8864c
[ "MIT" ]
null
null
null
spanclient/_endpoint_wrapper.py
illuscio-dev/spanclient-py
6308d221d179ed0db7c211c7a7ec7e2944e8864c
[ "MIT" ]
null
null
null
import functools import copy from dataclasses import dataclass from marshmallow import Schema from typing import ( Optional, MutableMapping, Any, Union, Callable, Tuple, Dict, AsyncGenerator, Generator, Sequence, ) from spantools import MimeType, convert_params_headers, MimeType...
35.702918
88
0.6
12,853
0.954903
2,269
0.168574
12,117
0.900223
2,849
0.211664
3,341
0.248217
12482b1ff107157da56ff15cc84b2172386b95f3
3,240
py
Python
SimpleGP/tests/test_gppg.py
mgraffg/simplegp
7e4639e3ac76571a4e67669cad6e8e775b3fc345
[ "Apache-2.0" ]
2
2015-03-18T17:26:20.000Z
2019-03-18T17:28:16.000Z
SimpleGP/tests/test_gppg.py
mgraffg/simplegp
7e4639e3ac76571a4e67669cad6e8e775b3fc345
[ "Apache-2.0" ]
1
2015-04-19T17:02:49.000Z
2015-07-21T18:48:34.000Z
SimpleGP/tests/test_gppg.py
mgraffg/simplegp
7e4639e3ac76571a4e67669cad6e8e775b3fc345
[ "Apache-2.0" ]
null
null
null
import test_classification import numpy as np from SimpleGP import SparseGPPG, SparseArray from SimpleGP.gppg import PGCl import os cl = test_classification.cl X = test_classification.X def test_gppg(): x = map(lambda x: SparseArray.fromlist(X[x]), range(X.shape[0])) fname = 'gppg.npy.gz' gp = SparseGPPG...
32.079208
71
0.591975
112
0.034568
0
0
0
0
0
0
75
0.023148
124879265e549764033ecbb3482f5f663c09d3b1
1,911
py
Python
shift_detector/precalculations/embedding_distance_precalculation.py
hpi-bp1819-naumann/shift-detector
5d081d05ec084021f11827aa3fd3e167854b2a2a
[ "Apache-2.0" ]
3
2019-06-21T11:41:08.000Z
2019-10-24T06:41:51.000Z
shift_detector/precalculations/embedding_distance_precalculation.py
hpi-bp1819-naumann/shift-detector
5d081d05ec084021f11827aa3fd3e167854b2a2a
[ "Apache-2.0" ]
63
2019-05-16T12:09:57.000Z
2022-02-10T00:21:01.000Z
shift_detector/precalculations/embedding_distance_precalculation.py
hpi-bp1819-naumann/shift-detector
5d081d05ec084021f11827aa3fd3e167854b2a2a
[ "Apache-2.0" ]
null
null
null
from shift_detector.precalculations.text_embedding_precalculation import TextEmbeddingPrecalculation from shift_detector.precalculations.store import Store from shift_detector.precalculations.precalculation import Precalculation from datawig.utils import random_split import numpy as np from numpy.linalg import norm c...
38.22
116
0.672423
1,591
0.832548
0
0
202
0.105704
0
0
206
0.107797
1249f53ad50c951d95cda4379ed3d03ccaa7e132
694
py
Python
examples/sync_tx.py
tebzzz/archon
5276e06ccc2e08e034473108a4dd8e36b6ba6078
[ "MIT" ]
78
2018-09-20T12:50:42.000Z
2021-12-17T11:44:03.000Z
examples/sync_tx.py
tebzzz/archon
5276e06ccc2e08e034473108a4dd8e36b6ba6078
[ "MIT" ]
49
2018-11-18T16:58:27.000Z
2019-09-29T18:41:51.000Z
examples/sync_tx.py
tebzzz/archon
5276e06ccc2e08e034473108a4dd8e36b6ba6078
[ "MIT" ]
21
2018-09-20T11:31:50.000Z
2021-10-19T17:01:47.000Z
""" """ import archon.facade as facade import archon.broker as broker import archon.exchange.exchanges as exc import archon.model.models as models from archon.util import * from pymongo import MongoClient import time import datetime import math afacade = facade.Facade() broker.setClientsFromFile(afacade) a = brok...
20.411765
61
0.682997
0
0
0
0
0
0
0
0
54
0.07781
124b92d2c7084377d87fc8f02f1de1ed63f57eef
505
py
Python
web-scraping/scrapy/items.py
mponweiser/thesis-LDA-in-R
e3be172f97e96c53c3941801e0b913d68621a1a0
[ "MIT" ]
4
2016-03-14T12:17:16.000Z
2021-01-27T01:14:30.000Z
web-scraping/scrapy/items.py
mponweiser/thesis-LDA-in-R
e3be172f97e96c53c3941801e0b913d68621a1a0
[ "MIT" ]
null
null
null
web-scraping/scrapy/items.py
mponweiser/thesis-LDA-in-R
e3be172f97e96c53c3941801e0b913d68621a1a0
[ "MIT" ]
3
2016-03-14T12:17:24.000Z
2020-05-05T22:53:53.000Z
# Define here the models for your scraped items # # See documentation in: # http://doc.scrapy.org/topics/items.html from scrapy.item import Item, Field class PnasItem(Item): # define the fields for your item here like: category = Field() category_minor = Field() authors = Field() title = Field() ...
22.954545
48
0.647525
350
0.693069
0
0
0
0
0
0
156
0.308911
124c0cc2c66967fcbd74c872c18100920840b8b1
792
py
Python
scripts/format_files.py
paltmey/masterthesis
43ed469bcd0ad7f0d578277743f9776078a2c3c3
[ "MIT" ]
null
null
null
scripts/format_files.py
paltmey/masterthesis
43ed469bcd0ad7f0d578277743f9776078a2c3c3
[ "MIT" ]
null
null
null
scripts/format_files.py
paltmey/masterthesis
43ed469bcd0ad7f0d578277743f9776078a2c3c3
[ "MIT" ]
null
null
null
import subprocess from argparse import ArgumentParser def run(src_dir, fast=False): print(f'Formatting all files under {src_dir} using black.') cmd = ['black'] if fast: cmd.append('--fast') cmd.append(src_dir) subprocess.run(cmd) if __name__ == '__main__': parser = ArgumentParser(des...
31.68
124
0.683081
0
0
0
0
0
0
0
0
270
0.340909
124da53c618c855ab0d8247e2652d534cd052cf4
873
py
Python
eval_empatheticdialogues.py
skywalker023/focused-empathy
04bdd0cf2fcd7bb4ee204cacb54ce970f426c916
[ "MIT" ]
29
2021-09-07T06:54:23.000Z
2022-03-25T12:33:04.000Z
eval_empatheticdialogues.py
skywalker023/focused-empathy
04bdd0cf2fcd7bb4ee204cacb54ce970f426c916
[ "MIT" ]
8
2021-09-25T05:39:40.000Z
2022-03-29T07:04:08.000Z
eval_empatheticdialogues.py
skywalker023/focused-empathy
04bdd0cf2fcd7bb4ee204cacb54ce970f426c916
[ "MIT" ]
2
2021-11-07T08:27:38.000Z
2022-01-09T05:28:41.000Z
import socket import datetime import os import better_exceptions from from_parlai.eval_model import eval_model from from_parlai.eval_model import setup_args as eval_setupargs better_exceptions.hook() __PATH__ = os.path.abspath(os.path.dirname(__file__)) def setup_args(current_time): parser = eval_setupargs() ...
27.28125
65
0.705613
0
0
0
0
0
0
0
0
133
0.152348
124edb12bc0b4f9c7c2db07a2a02bfd911251b8c
315
py
Python
ares/phenom/__init__.py
jlashner/ares
6df2b676ded6bd59082a531641cb1dadd475c8a8
[ "MIT" ]
null
null
null
ares/phenom/__init__.py
jlashner/ares
6df2b676ded6bd59082a531641cb1dadd475c8a8
[ "MIT" ]
null
null
null
ares/phenom/__init__.py
jlashner/ares
6df2b676ded6bd59082a531641cb1dadd475c8a8
[ "MIT" ]
1
2021-06-16T23:13:56.000Z
2021-06-16T23:13:56.000Z
from ares.phenom.Tanh21cm import Tanh21cm from ares.phenom.OpticalDepth import Madau1995 from ares.phenom.Gaussian21cm import Gaussian21cm from ares.phenom.DustCorrection import DustCorrection from ares.phenom.Parametric21cm import Parametric21cm from ares.phenom.ParameterizedQuantity import ParameterizedQuantity
45
67
0.885714
0
0
0
0
0
0
0
0
0
0
124f15794814742ded4d3518fa8a3f798acf1841
5,408
py
Python
klsh/utils.py
tonygrey/klsh
77dbcd2bdd3f04e4d9add136201afda31c964580
[ "BSD-3-Clause" ]
28
2015-08-21T07:42:52.000Z
2022-03-23T23:18:14.000Z
klsh/utils.py
tonygrey/klsh
77dbcd2bdd3f04e4d9add136201afda31c964580
[ "BSD-3-Clause" ]
2
2016-02-04T12:52:28.000Z
2016-02-19T07:25:25.000Z
klsh/utils.py
tonygrey/klsh
77dbcd2bdd3f04e4d9add136201afda31c964580
[ "BSD-3-Clause" ]
6
2016-02-04T06:18:43.000Z
2020-05-10T10:42:27.000Z
import itertools import contextlib import time import numbers import numpy as np @contextlib.contextmanager def timeit(fmt=None): if fmt is None: fmt = "{0:.2g} sec" t0 = time.time() yield t1 = time.time() print(fmt.format(t1 - t0)) def create_rng(seed): """Turn seed into a np.random...
29.878453
78
0.568787
0
0
152
0.028107
179
0.033099
0
0
2,111
0.390348
12504e8a755643f44ae1e7436164776d1957ad7b
622
py
Python
RecoEgamma/EgammaElectronProducers/python/lowPtGsfElectrons_cfi.py
gputtley/cmssw
c1ef8454804e4ebea8b65f59c4a952a6c94fde3b
[ "Apache-2.0" ]
2
2020-01-27T15:21:37.000Z
2020-05-11T11:13:18.000Z
RecoEgamma/EgammaElectronProducers/python/lowPtGsfElectrons_cfi.py
gputtley/cmssw
c1ef8454804e4ebea8b65f59c4a952a6c94fde3b
[ "Apache-2.0" ]
8
2020-03-20T23:18:36.000Z
2020-05-27T11:00:06.000Z
RecoEgamma/EgammaElectronProducers/python/lowPtGsfElectrons_cfi.py
gputtley/cmssw
c1ef8454804e4ebea8b65f59c4a952a6c94fde3b
[ "Apache-2.0" ]
3
2017-06-07T15:22:28.000Z
2019-02-28T20:48:30.000Z
import FWCore.ParameterSet.Config as cms from RecoEgamma.EgammaElectronProducers.gsfElectrons_cfi import * lowPtGsfElectrons = ecalDrivenGsfElectrons.clone( gsfElectronCoresTag = "lowPtGsfElectronCores", gedElectronMode = True, ) from Configuration.Eras.Modifier_fastSim_cff import fastSim fastSim.toModify(lo...
38.875
92
0.85209
0
0
0
0
0
0
0
0
50
0.080386
12538ece1750dfd1837c7ec0ab51c093bdd2eb86
1,767
py
Python
Apps/Black_Jack.py
srp98/Python-Stuff
fade8934718e01a3d30cf9db93515b8f02a20b18
[ "MIT" ]
null
null
null
Apps/Black_Jack.py
srp98/Python-Stuff
fade8934718e01a3d30cf9db93515b8f02a20b18
[ "MIT" ]
null
null
null
Apps/Black_Jack.py
srp98/Python-Stuff
fade8934718e01a3d30cf9db93515b8f02a20b18
[ "MIT" ]
1
2019-10-31T03:16:04.000Z
2019-10-31T03:16:04.000Z
def hand_total(hand): total = 0 # Count number of aces and deal with how to apply them at the end aces = 0 for card in hand: if card in ['J', 'Q', 'K']: total += 10 elif card == 'A': aces += 1 else: # Convert the number on card to int's ...
36.061224
94
0.615167
0
0
0
0
0
0
0
0
1,227
0.694397
1254aa54269ff251642c4464e9329b6e5da57064
6,281
py
Python
models/gaussian/gaussian/Gaussian.py
lijun99/altar
92c2915de3de0c51138d382c8192ead7d6eed1a1
[ "BSD-3-Clause" ]
6
2019-07-25T08:02:09.000Z
2022-02-09T04:19:31.000Z
models/gaussian/gaussian/Gaussian.py
lijun99/altar
92c2915de3de0c51138d382c8192ead7d6eed1a1
[ "BSD-3-Clause" ]
null
null
null
models/gaussian/gaussian/Gaussian.py
lijun99/altar
92c2915de3de0c51138d382c8192ead7d6eed1a1
[ "BSD-3-Clause" ]
null
null
null
# -*- python -*- # -*- coding: utf-8 -*- # # michael a.g. aïvázis <michael.aivazis@para-sim.com> # # (c) 2013-2021 parasim inc # (c) 2010-2021 california institute of technology # all rights reserved # # externals import math # the package import altar # declaration class Gaussian(altar.models.bayesian, family="alt...
30.342995
96
0.61694
6,065
0.954367
0
0
3,197
0.503068
0
0
3,063
0.481983
1255698f615a2ee79f73dfb0cbca1d3e028c33b4
2,486
py
Python
prototype/crawling/harvesta/modules/naverfuncs.py
latte-horse/jaehyun
159963b405b1726717f99df0e4ba62df195aeb94
[ "MIT" ]
null
null
null
prototype/crawling/harvesta/modules/naverfuncs.py
latte-horse/jaehyun
159963b405b1726717f99df0e4ba62df195aeb94
[ "MIT" ]
null
null
null
prototype/crawling/harvesta/modules/naverfuncs.py
latte-horse/jaehyun
159963b405b1726717f99df0e4ba62df195aeb94
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #naverFuncs.py import requests import urllib.request from bs4 import BeautifulSoup import re import json if __name__ != '__main__': from . import config #-------------------------------------------------------------------------- # 실시간 인기 검색어 cnt개 반환 #--------------------------------------...
33.146667
98
0.498793
0
0
0
0
0
0
0
0
1,092
0.414579
1255cd8f4e10c6adbb9a42935b7c7849e265c1ab
2,922
py
Python
Setup.py
uHappyLogic/GaiaDbConsumer
a615b689fc30a3cc9dfd0b581d279899bf7a0f8b
[ "MIT" ]
null
null
null
Setup.py
uHappyLogic/GaiaDbConsumer
a615b689fc30a3cc9dfd0b581d279899bf7a0f8b
[ "MIT" ]
null
null
null
Setup.py
uHappyLogic/GaiaDbConsumer
a615b689fc30a3cc9dfd0b581d279899bf7a0f8b
[ "MIT" ]
null
null
null
#!/usr/bin/python import argparse import multiprocessing from distutils.util import strtobool def configure_argparse(): ap = argparse.ArgumentParser() ap.add_argument("-p", "--password", required=True, type=str, help="database password") ap.add_argument("-u", "--user", required=True, t...
32.831461
107
0.469884
0
0
0
0
0
0
0
0
1,118
0.382615
1256c1154db4f6069ce7c07c379eb4a4a4e45448
1,893
py
Python
src/opencmiss/utils/iron/doc/doxygen/exampleprocessor/BaseHTMLProcessor.py
tsalemink/opencmiss.utils
c727d9b922330e3ca38967fa7dbe6480f698f9a2
[ "Apache-2.0" ]
null
null
null
src/opencmiss/utils/iron/doc/doxygen/exampleprocessor/BaseHTMLProcessor.py
tsalemink/opencmiss.utils
c727d9b922330e3ca38967fa7dbe6480f698f9a2
[ "Apache-2.0" ]
null
null
null
src/opencmiss/utils/iron/doc/doxygen/exampleprocessor/BaseHTMLProcessor.py
tsalemink/opencmiss.utils
c727d9b922330e3ca38967fa7dbe6480f698f9a2
[ "Apache-2.0" ]
null
null
null
from sgmllib import SGMLParser import htmlentitydefs class BaseHTMLProcessor(SGMLParser): def reset(self): # extend (called by SGMLParser.__init__) self.pieces = [] self.buffer = "" self.parents = [] SGMLParser.reset(self) def unknown_starttag(self, tag, attrs): strattrs = "".join([' %s="%s"' % (key,...
27.434783
73
0.624934
1,760
0.929741
0
0
0
0
0
0
292
0.154253
125988da139b4ae5434a553bc0bdc723e1b0fa96
2,708
py
Python
neo/Network/core/uintbase.py
BarracudaPff/code-golf-data-pythpn
42e8858c2ebc6a061012bcadb167d29cebb85c5e
[ "MIT" ]
null
null
null
neo/Network/core/uintbase.py
BarracudaPff/code-golf-data-pythpn
42e8858c2ebc6a061012bcadb167d29cebb85c5e
[ "MIT" ]
null
null
null
neo/Network/core/uintbase.py
BarracudaPff/code-golf-data-pythpn
42e8858c2ebc6a061012bcadb167d29cebb85c5e
[ "MIT" ]
null
null
null
if TYPE_CHECKING: pass class UIntBase(serializable.SerializableMixin): _data = bytearray() _hash: int = 0 def __init__(self, num_bytes: int, data: Union[bytes, bytearray] = None) -> None: super(UIntBase, self).__init__() if data is None: self._data = bytearray(num_bytes) else: if isinstance(data, bytes)...
32.626506
138
0.677253
2,684
0.991137
0
0
89
0.032866
0
0
445
0.164328
125bc5ecf5acb0a84b6c7d88d2625e8761895e24
1,171
py
Python
_lib/settings.py
bjuggler/lvrobi
f7831b471058414d9ca383ab3729f3f6f26990c9
[ "MIT" ]
null
null
null
_lib/settings.py
bjuggler/lvrobi
f7831b471058414d9ca383ab3729f3f6f26990c9
[ "MIT" ]
null
null
null
_lib/settings.py
bjuggler/lvrobi
f7831b471058414d9ca383ab3729f3f6f26990c9
[ "MIT" ]
null
null
null
from pathlib import Path PROJECT_DIR = Path(__file__).resolve().parent.parent DATA_DIR = PROJECT_DIR.joinpath("data") DATA_ORIGIN_DIR = DATA_DIR.joinpath("_origin") DATA_AFTER_PREPARATION_DIR = DATA_DIR.joinpath("prepared") DATA_TRIPS_AS_HEXES_DIR = DATA_DIR.joinpath("trips_as_hexes") DATA_ORIGIN_AMIENS_DIR = DATA_O...
39.033333
70
0.676345
0
0
0
0
0
0
0
0
309
0.263877
125c09cc6e61d12b4e11b62f59ed5ddecd04ee2c
231
py
Python
class2/class2_ex1.py
daveg999/Automation_class
d23652ecae56b790684971dda6e85a1d2367e22b
[ "Apache-2.0" ]
null
null
null
class2/class2_ex1.py
daveg999/Automation_class
d23652ecae56b790684971dda6e85a1d2367e22b
[ "Apache-2.0" ]
null
null
null
class2/class2_ex1.py
daveg999/Automation_class
d23652ecae56b790684971dda6e85a1d2367e22b
[ "Apache-2.0" ]
null
null
null
# Python libraries # Ex1a import pysnmp import paramiko # Ex1b dir(pysnmp) ver = pysnmp.__version__ print "pysnmp version is: %s " % ver dir(paramiko) ver = paramiko.__version__ print "paramiko version is: %s " % ver # Ex1c
12.157895
38
0.714286
0
0
0
0
0
0
0
0
86
0.372294
125df78648f1c8732c0895fa28745acc66e1387e
18,971
py
Python
pyhrt/continuous.py
tansey/hrt
f6d271a34590d073a08f0fc40f40e898f38cdf97
[ "MIT" ]
19
2018-11-05T19:08:03.000Z
2022-02-15T03:58:47.000Z
pyhrt/continuous.py
tansey/hrt
f6d271a34590d073a08f0fc40f40e898f38cdf97
[ "MIT" ]
1
2019-11-20T22:35:54.000Z
2019-11-20T23:06:51.000Z
pyhrt/continuous.py
tansey/hrt
f6d271a34590d073a08f0fc40f40e898f38cdf97
[ "MIT" ]
5
2019-04-15T23:17:26.000Z
2020-04-10T04:18:22.000Z
import os import sys import numpy as np import torch import torch.autograd as autograd import torch.nn as nn import torch.optim as optim from scipy.stats import norm from scipy.stats.mstats import gmean from pyhrt.utils import batches, create_folds, logsumexp ###########################################################...
40.278132
132
0.600706
3,875
0.204259
0
0
0
0
0
0
4,703
0.247905
125e4ce6af2e9208f22b7dc0cf1dfcc12caa2872
178
py
Python
src/__init__.py
mldev-ai/ML-Text-Classification
fc3d64aaa56796c4ed22b7842df66d59eb90b8ab
[ "MIT" ]
null
null
null
src/__init__.py
mldev-ai/ML-Text-Classification
fc3d64aaa56796c4ed22b7842df66d59eb90b8ab
[ "MIT" ]
null
null
null
src/__init__.py
mldev-ai/ML-Text-Classification
fc3d64aaa56796c4ed22b7842df66d59eb90b8ab
[ "MIT" ]
null
null
null
from src.FeatureExtractor import Extractor from src.DataLoader import Dataset from src.Trainer import TrainClf from src.Inference import PredictClf from src.Models import MLModel
35.6
42
0.865169
0
0
0
0
0
0
0
0
0
0
126250776d5fa66f301a109cdcf5f21aeacb6568
3,637
py
Python
swig/python2/tests/ConcurrentHelpers/SysrepoTester.py
rastislavszabo/sysrepo
dd947fee3b606d354eb7bf50fecef020b943b523
[ "Apache-2.0" ]
null
null
null
swig/python2/tests/ConcurrentHelpers/SysrepoTester.py
rastislavszabo/sysrepo
dd947fee3b606d354eb7bf50fecef020b943b523
[ "Apache-2.0" ]
null
null
null
swig/python2/tests/ConcurrentHelpers/SysrepoTester.py
rastislavszabo/sysrepo
dd947fee3b606d354eb7bf50fecef020b943b523
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = "Rastislav Szabo <raszabo@cisco.com>, Lukas Macko <lmacko@cisco.com>" __copyright__ = "Copyright 2016, Cisco Systems, Inc." __license__ = "Apache 2.0" # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compl...
33.990654
115
0.670058
2,792
0.767666
0
0
0
0
0
0
795
0.218587
12638715ec5a1d40ed4f3618c30418ac709c540c
1,144
py
Python
ars2/utils.py
Stranger469/ARS2
b6d62b66997180abe01b676d5359c20daa42b7ad
[ "Apache-2.0" ]
null
null
null
ars2/utils.py
Stranger469/ARS2
b6d62b66997180abe01b676d5359c20daa42b7ad
[ "Apache-2.0" ]
null
null
null
ars2/utils.py
Stranger469/ARS2
b6d62b66997180abe01b676d5359c20daa42b7ad
[ "Apache-2.0" ]
null
null
null
import numpy as np from typing import List from wrench.basemodel import BaseClassModel from wrench.dataset import BaseDataset from sklearn.metrics import f1_score from snorkel.utils import probs_to_preds def calc_prior(labels: List, n_class: int): return [labels.count(i) for i in range(n_class)] def create_unb...
33.647059
95
0.704545
0
0
0
0
0
0
0
0
12
0.01048
1266741504356d2c9f8af5c310226fc914cad6c6
663
py
Python
homedisplay/info_internet_connection/views.py
ojarva/home-info-display
873d022308732baff94d0dc2381cf9dc7dce23b7
[ "BSD-3-Clause" ]
1
2016-11-28T04:35:06.000Z
2016-11-28T04:35:06.000Z
homedisplay/info_internet_connection/views.py
ojarva/home-info-display
873d022308732baff94d0dc2381cf9dc7dce23b7
[ "BSD-3-Clause" ]
160
2015-01-01T20:59:29.000Z
2016-04-25T13:36:52.000Z
homedisplay/info_internet_connection/views.py
ojarva/home-info-display
873d022308732baff94d0dc2381cf9dc7dce23b7
[ "BSD-3-Clause" ]
1
2015-02-25T21:24:01.000Z
2015-02-25T21:24:01.000Z
from .models import get_latest_serialized from django.core import serializers from django.http import HttpResponse from django.views.generic import View from django.conf import settings import json class GetJson(View): def get(self, _): # pylint:disable=no-self-use return HttpResponse(json.dumps(get_late...
30.136364
97
0.720965
459
0.692308
0
0
0
0
0
0
110
0.165913
12695b68be997681bd60160adfb2433e6ae6d592
363
py
Python
stko/calculators/results/rmsd_results.py
stevenbennett96/stko
ee340af4fc549d5a2c3e9cba8360661335efe0fd
[ "MIT" ]
null
null
null
stko/calculators/results/rmsd_results.py
stevenbennett96/stko
ee340af4fc549d5a2c3e9cba8360661335efe0fd
[ "MIT" ]
null
null
null
stko/calculators/results/rmsd_results.py
stevenbennett96/stko
ee340af4fc549d5a2c3e9cba8360661335efe0fd
[ "MIT" ]
2
2020-05-08T17:51:25.000Z
2020-05-11T09:03:24.000Z
""" RMSD Results ============= #. :class:`.RmsdResults` Results class for extracting RMSD of two molecules. """ from .results import Results class RmsdResults(Results): """ Results class containing RMSD measures. """ def __init__(self, generator): self._value = next(generator) def ...
13.961538
51
0.630854
215
0.592287
0
0
0
0
0
0
170
0.46832
126a6a2bd916dd0fdaa7da08e0f5d55a3f54c764
235
py
Python
section_5_price_alert/src/models/stores/views.py
sagarnildass/The-complete-python-web-course
d5c21eebeeea466a0fa46c9dfac203c0e5b01433
[ "MIT" ]
null
null
null
section_5_price_alert/src/models/stores/views.py
sagarnildass/The-complete-python-web-course
d5c21eebeeea466a0fa46c9dfac203c0e5b01433
[ "MIT" ]
null
null
null
section_5_price_alert/src/models/stores/views.py
sagarnildass/The-complete-python-web-course
d5c21eebeeea466a0fa46c9dfac203c0e5b01433
[ "MIT" ]
null
null
null
from flask import Blueprint store_blueprint = Blueprint('stores', __name__) @store_blueprint.route('/') def index(): return "This is the stores index" @store_blueprint.route('store/<string:name>') def store_page(name): pass
19.583333
47
0.731915
0
0
0
0
154
0.655319
0
0
58
0.246809
126ad831faaee91fb0ce16251134cb082143384a
5,462
py
Python
program_helper/ast/parser/ast_similarity_checker.py
jajajaqlt/nsg
1873f2b5e10441110c3c69940ceb4650f9684ac0
[ "Apache-2.0" ]
10
2021-11-02T18:30:38.000Z
2022-03-21T06:31:33.000Z
program_helper/ast/parser/ast_similarity_checker.py
rohanmukh/nag
f2c4b8e60a97c58a6a1c549cc8b4753ebfe8a5e3
[ "Apache-2.0" ]
2
2021-11-05T18:40:42.000Z
2022-03-30T04:33:08.000Z
program_helper/ast/parser/ast_similarity_checker.py
rohanmukh/nag
f2c4b8e60a97c58a6a1c549cc8b4753ebfe8a5e3
[ "Apache-2.0" ]
2
2021-11-03T19:14:06.000Z
2021-11-03T23:47:09.000Z
# Copyright 2017 Rice University # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
36.172185
115
0.658184
4,628
0.847309
0
0
250
0.045771
0
0
864
0.158184
126b7d17b9178997cd2b9b067f78352641394f99
375
py
Python
supervised/regression/ridgeRegression.py
SaadChaouki/ml-eli5-cli5
625a69edadf4737e41c58193873cf8a54273d7f0
[ "MIT" ]
1
2021-05-04T19:53:12.000Z
2021-05-04T19:53:12.000Z
supervised/regression/ridgeRegression.py
SaadChaouki/ml-eli5-cli5
625a69edadf4737e41c58193873cf8a54273d7f0
[ "MIT" ]
null
null
null
supervised/regression/ridgeRegression.py
SaadChaouki/ml-eli5-cli5
625a69edadf4737e41c58193873cf8a54273d7f0
[ "MIT" ]
null
null
null
from supervised.base.baseRegression import BaseRegression from processing.regularization import L2Regularization class RidgeRegression(BaseRegression): def __init__(self, iterations=5000, learning_rate=.01, alpha=1): super(RidgeRegression, self).__init__(iterations=iterations, learning_rate=learning_rate)...
41.666667
97
0.808
259
0.690667
0
0
0
0
0
0
0
0
126c70cfd4f5dd58b70d6563429b9753c64c44e8
941
py
Python
merpy/__init__.py
AndreLamurias/merpy
eebfa602f07603178d8ae8706e2e7d18b068f7c8
[ "Apache-2.0" ]
5
2019-06-25T11:00:14.000Z
2022-03-31T17:31:38.000Z
merpy/__init__.py
AndreLamurias/merpy
eebfa602f07603178d8ae8706e2e7d18b068f7c8
[ "Apache-2.0" ]
4
2020-01-08T11:05:35.000Z
2020-11-12T12:32:38.000Z
merpy/__init__.py
AndreLamurias/merpy
eebfa602f07603178d8ae8706e2e7d18b068f7c8
[ "Apache-2.0" ]
2
2021-03-14T21:24:59.000Z
2021-10-03T10:53:36.000Z
from .merpy import ( get_entities, get_similarities, generate_lexicon, process_lexicon, show_lexicons, get_lexicons, download_lexicon, create_lexicon, create_mappings, download_mer, download_lexicons, mer_path, get_entities_mp, create_lexicon_from_file, delete...
20.021277
31
0.68119
0
0
0
0
0
0
0
0
352
0.37407
126d523eba5326c29ad99290557c03112dd4b6ae
3,231
py
Python
sk_pymc3/model/base_model.py
drewblasius/pymc3-sklearn
a46c325179459a2eae394f72c4be186d3e074214
[ "MIT" ]
1
2020-07-13T12:45:20.000Z
2020-07-13T12:45:20.000Z
sk_pymc3/model/base_model.py
drewblasius/pymc3-sklearn
a46c325179459a2eae394f72c4be186d3e074214
[ "MIT" ]
null
null
null
sk_pymc3/model/base_model.py
drewblasius/pymc3-sklearn
a46c325179459a2eae394f72c4be186d3e074214
[ "MIT" ]
null
null
null
import logging import numpy as np import pandas as pd import pymc3 as pm import theano as tt from abc import ABC, abstractmethod from contextlib import contextmanager from sklearn.base import BaseEstimator from typing import List, Optional, Tuple, Union logger = logging.getLogger(__name__) class BasePyMC3Model(ABC,...
29.108108
101
0.561436
2,935
0.908387
176
0.054472
780
0.241411
0
0
439
0.135871
126e4a7de56e62d9de7e709a7a92d3187bd9274a
2,678
py
Python
ww/website_domain.py
hbradleyiii/ww
5a537ab6865fcfb43a253cdb8cf2397a53d940a7
[ "MIT" ]
null
null
null
ww/website_domain.py
hbradleyiii/ww
5a537ab6865fcfb43a253cdb8cf2397a53d940a7
[ "MIT" ]
null
null
null
ww/website_domain.py
hbradleyiii/ww
5a537ab6865fcfb43a253cdb8cf2397a53d940a7
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # name: website_domain.py # author: Harold Bradley III # email: harold@bradleystudio.net # created on: 11/03/2015 # # TODO: add DNS API capabilities """ ww.website_domain ~~~~~~~~~~~~~~~~~ A class to describe and ...
36.189189
85
0.519417
1,681
0.627707
0
0
0
0
0
0
1,555
0.580657
126e7487809cb90beb4de4d2e2b2d8e5ed3bbb80
275
py
Python
03-datatypes/examples/03-floats.py
luxwarp/python-course
d6ec4961ef43bd9d99954cffaea837220638e83f
[ "0BSD" ]
null
null
null
03-datatypes/examples/03-floats.py
luxwarp/python-course
d6ec4961ef43bd9d99954cffaea837220638e83f
[ "0BSD" ]
null
null
null
03-datatypes/examples/03-floats.py
luxwarp/python-course
d6ec4961ef43bd9d99954cffaea837220638e83f
[ "0BSD" ]
null
null
null
#!/usr/bin/env python3 # Floats (float) is numeric values like 1.0, 100,5 0,478, -1.36 print("1.0 + 0.2 =", 1.0 + 0.2) print("2.4 - 100.7 =", 2.4 - 100.7) print("2.7 * 1.5 =", 2.7 * 1.5) # You can do expressions and mixing integers and floats. print("1 + 2.5 =", 1 + 2.5)
25
63
0.574545
0
0
0
0
0
0
0
0
193
0.701818