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
3768f3ba1595d85981a62e468f1663abf36a9838
7,179
py
Python
mmf/utils/logger.py
san2597/mmf
c0812e9281c6e679cb7f00af78a5eda267820aab
[ "BSD-3-Clause" ]
2
2021-02-22T12:15:42.000Z
2021-05-02T15:22:24.000Z
mmf/utils/logger.py
san2597/mmf
c0812e9281c6e679cb7f00af78a5eda267820aab
[ "BSD-3-Clause" ]
7
2021-03-01T21:16:26.000Z
2022-02-27T07:07:11.000Z
mmf/utils/logger.py
krantirk/MMF
2e4acaad7ca8eee4319e1205a560eed81733a0be
[ "BSD-3-Clause" ]
1
2022-03-04T14:19:43.000Z
2022-03-04T14:19:43.000Z
# Copyright (c) Facebook, Inc. and its affiliates. import collections import json import logging import os import sys from typing import Type from mmf.utils.configuration import get_mmf_env from mmf.utils.distributed import is_master from mmf.utils.file_io import PathManager from mmf.utils.timer import Timer class ...
32.337838
86
0.620003
6,858
0.955286
0
0
0
0
0
0
858
0.119515
3769cb9e6e30558704c62fd2397c4328d7099939
163
py
Python
myvenv/lib/python3.5/site-packages/allauth/socialaccount/providers/hubic/urls.py
tuvapp/tuvappcom
5ca2be19f4b0c86a1d4a9553711a4da9d3f32841
[ "MIT" ]
1
2018-04-06T21:36:59.000Z
2018-04-06T21:36:59.000Z
myvenv/lib/python3.5/site-packages/allauth/socialaccount/providers/hubic/urls.py
tuvapp/tuvappcom
5ca2be19f4b0c86a1d4a9553711a4da9d3f32841
[ "MIT" ]
6
2020-06-05T18:44:19.000Z
2022-01-13T00:48:56.000Z
myvenv/lib/python3.5/site-packages/allauth/socialaccount/providers/hubic/urls.py
tuvapp/tuvappcom
5ca2be19f4b0c86a1d4a9553711a4da9d3f32841
[ "MIT" ]
1
2022-02-01T17:19:28.000Z
2022-02-01T17:19:28.000Z
from allauth.socialaccount.providers.oauth2.urls import default_urlpatterns from .provider import HubicProvider urlpatterns = default_urlpatterns(HubicProvider)
27.166667
75
0.871166
0
0
0
0
0
0
0
0
0
0
376ac08cf10241073ec03135469cc20f62b04104
1,710
py
Python
mex.py
hagai-helman/mex
d4ee6f79dd0f96346a1b16727e5aa91ab808aed5
[ "MIT" ]
null
null
null
mex.py
hagai-helman/mex
d4ee6f79dd0f96346a1b16727e5aa91ab808aed5
[ "MIT" ]
null
null
null
mex.py
hagai-helman/mex
d4ee6f79dd0f96346a1b16727e5aa91ab808aed5
[ "MIT" ]
null
null
null
class MexFinder: """This class collects non-negative integers, and finds the minimal non-negative integer that was not added to it. """ def __init__(self): # We maintain a dict, representing a set, with the following # invariants: # (a) Its keys are the elements of the set (and -...
32.884615
78
0.580117
1,472
0.860819
0
0
0
0
0
0
1,025
0.599415
376b687ba9788b6a0541074221d59f6f3f6f83f8
1,672
py
Python
tests/conftest.py
karolow/geocoder
e88014015a3ae2643203944401e7e4030948a635
[ "MIT" ]
null
null
null
tests/conftest.py
karolow/geocoder
e88014015a3ae2643203944401e7e4030948a635
[ "MIT" ]
null
null
null
tests/conftest.py
karolow/geocoder
e88014015a3ae2643203944401e7e4030948a635
[ "MIT" ]
null
null
null
from collections import namedtuple from pytest import fixture from geocoder.geocoding import ( Addresses, Coordinates, ) @fixture def mock_csv_coordinates(tmp_path): data = [ "city,street,number,postal_code,state,lon,lat", "Katowice,Armii Krajowej,102,40-671,istniejacy,259921.7313,498200....
28.827586
80
0.668062
0
0
357
0.213262
1,529
0.913381
0
0
547
0.326762
376bc7a4f7b334355a7cb7a86e7b94a23206268d
15,949
py
Python
shop/views.py
log-Z/django_shop
5c68dcd9a583bda3244edccdadfca74fd841c7ee
[ "MIT" ]
4
2019-08-21T06:05:03.000Z
2021-01-26T04:21:19.000Z
shop/views.py
log-Z/django_shop
5c68dcd9a583bda3244edccdadfca74fd841c7ee
[ "MIT" ]
null
null
null
shop/views.py
log-Z/django_shop
5c68dcd9a583bda3244edccdadfca74fd841c7ee
[ "MIT" ]
2
2021-01-26T04:21:22.000Z
2021-02-22T07:51:39.000Z
from django.http import HttpRequest from django.views import generic from django.shortcuts import render, reverse, get_object_or_404, HttpResponseRedirect from django.db.utils import IntegrityError from .models import User, UserType, Goods from .forms import (RegisterFEForm, RegisterBEForm, LoginFEForm, LoginBEForm, C...
31.898
116
0.621669
11,973
0.694369
0
0
4,908
0.284637
0
0
4,479
0.259758
376df6d7f89516a0e412a13d0db28bac87a6c75e
7,176
py
Python
update/update_db.py
reclada/db
09dfdeaad8d1f48082aa0512eed7ba3394f1d737
[ "Apache-2.0" ]
null
null
null
update/update_db.py
reclada/db
09dfdeaad8d1f48082aa0512eed7ba3394f1d737
[ "Apache-2.0" ]
2
2021-06-04T11:42:27.000Z
2021-06-04T16:16:21.000Z
update/update_db.py
reclada/db
09dfdeaad8d1f48082aa0512eed7ba3394f1d737
[ "Apache-2.0" ]
2
2021-04-16T09:00:04.000Z
2021-06-23T12:07:45.000Z
import os import json import stat from pathlib import Path import sys import urllib.parse import uuid import shutil os.chdir(os.path.dirname(os.path.abspath(__file__))) j = '' with open('update_config.json') as f: j = f.read() j = json.loads(j) branch_db = j["branch_db"] branch_runtime = j["branch_runtime"] bran...
28.589641
133
0.603958
0
0
0
0
0
0
0
0
2,035
0.283584
376e19ebc1589ff77a8fc478cb226ea8ba133c58
2,922
py
Python
Configuration/PyReleaseValidation/python/relval_machine.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
Configuration/PyReleaseValidation/python/relval_machine.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
Configuration/PyReleaseValidation/python/relval_machine.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
from Configuration.PyReleaseValidation.relval_steps import Matrix, InputInfo, Steps import os import json import collections workflows = Matrix() steps = Steps() def get_json_files(): cwd = os.path.join(os.getcwd(), "json_data") if not os.path.exists(cwd): return [] json_files = [] for f i...
34.785714
104
0.600616
0
0
0
0
0
0
0
0
572
0.195756
376ea9466a6314f03a1e7da915e45334793f2ec3
2,260
py
Python
cvxpy/atoms/norm_nuc.py
NunoEdgarGFlowHub/cvxpy
43270fcc8af8fc4742f1b3519800b0074f2e6693
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
cvxpy/atoms/norm_nuc.py
NunoEdgarGFlowHub/cvxpy
43270fcc8af8fc4742f1b3519800b0074f2e6693
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
cvxpy/atoms/norm_nuc.py
NunoEdgarGFlowHub/cvxpy
43270fcc8af8fc4742f1b3519800b0074f2e6693
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
""" Copyright 2013 Steven Diamond This file is part of CVXPY. CVXPY is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. CVXPY is distributed i...
27.228916
79
0.633186
1,518
0.671681
0
0
0
0
0
0
1,437
0.635841
376fcab57617bb6cde8c9472e7ac7b41d22d82ce
15,579
py
Python
yoyo/tests/test_migrations.py
emurphy/yoyo
f9a32d5448970da3a81041692420d5def490b7b0
[ "Apache-2.0" ]
null
null
null
yoyo/tests/test_migrations.py
emurphy/yoyo
f9a32d5448970da3a81041692420d5def490b7b0
[ "Apache-2.0" ]
null
null
null
yoyo/tests/test_migrations.py
emurphy/yoyo
f9a32d5448970da3a81041692420d5def490b7b0
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Oliver Cope # # 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, ...
35.649886
86
0.642275
7,759
0.498042
0
0
7,439
0.477502
0
0
4,487
0.288016
376fd9796861e2c39787309023f2cdb3f5ebed40
88
py
Python
kg_covid_19/transform_utils/drug_central/__init__.py
matentzn/kg-covid-19
86dbb348509e2133c3e3b3d66bfa29a299673b66
[ "BSD-3-Clause" ]
66
2020-03-22T21:23:32.000Z
2022-03-24T09:34:03.000Z
kg_covid_19/transform_utils/drug_central/__init__.py
MrBearWithHisSword/KGQA-COVID
d7aa08d5892aab77e3e829f61d7cb6ba80cff009
[ "BSD-3-Clause" ]
340
2020-03-22T19:04:18.000Z
2022-03-30T14:55:42.000Z
kg_covid_19/transform_utils/drug_central/__init__.py
MrBearWithHisSword/KGQA-COVID
d7aa08d5892aab77e3e829f61d7cb6ba80cff009
[ "BSD-3-Clause" ]
26
2020-03-23T15:20:12.000Z
2021-09-07T16:57:30.000Z
from .drug_central import DrugCentralTransform __all__ = [ "DrugCentralTransform" ]
17.6
46
0.784091
0
0
0
0
0
0
0
0
22
0.25
377084db60ebee117b24913239fec5ff9e73b737
2,613
py
Python
aiogram_oop_framework/core/project.py
drforse/aiogram_oop_framework
ee56b6a0893300fea43f01c2f4c4ea8b5fae1424
[ "MIT" ]
null
null
null
aiogram_oop_framework/core/project.py
drforse/aiogram_oop_framework
ee56b6a0893300fea43f01c2f4c4ea8b5fae1424
[ "MIT" ]
null
null
null
aiogram_oop_framework/core/project.py
drforse/aiogram_oop_framework
ee56b6a0893300fea43f01c2f4c4ea8b5fae1424
[ "MIT" ]
null
null
null
from pathlib import Path from aiogram_oop_framework.core.funcs import get_init_py class ProjectStructure: def __init__(self, project: 'Project'): self.root: Path = project.path / project.name self.directories = {'root': {'directory': self.root, 'tree': {}}} def add_dir_to_root(self, name: st...
34.381579
104
0.566781
2,524
0.96594
0
0
0
0
0
0
518
0.19824
37744040390dced1c5df204c66d947e6161d822b
7,666
py
Python
project/Shici/Analyzer.py
zhengbomo/python_practice
1bc5c4ff426f806639bbc01249e66747271ec398
[ "MIT" ]
2
2016-10-03T10:20:02.000Z
2018-03-20T00:38:53.000Z
project/Shici/Analyzer.py
zhengbomo/python_practice
1bc5c4ff426f806639bbc01249e66747271ec398
[ "MIT" ]
2
2019-10-08T07:13:44.000Z
2019-10-08T07:13:46.000Z
project/Shici/Analyzer.py
zhengbomo/python_practice
1bc5c4ff426f806639bbc01249e66747271ec398
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding:utf-8 -*- import os from bs4 import BeautifulSoup class Analyzer(object): def __init__(self): pass @staticmethod def get_page_count(html): soup = BeautifulSoup(html, 'html.parser') # <span style="color:#65645F;">共75661篇</span> ...
34.071111
114
0.499739
7,713
0.988339
0
0
7,595
0.973219
0
0
1,571
0.201307
37756f838d9a991c6fb09146913f58963f4cf285
3,149
py
Python
gender_detection_keras.py
matejcrnac/Face_deidentification_kazemi
434fff49b5a7b555bb3c56a62915fd502e0b75f9
[ "MIT" ]
1
2019-03-27T10:30:54.000Z
2019-03-27T10:30:54.000Z
gender_detection_keras.py
matejcrnac/Face_deidentification_kazemi
434fff49b5a7b555bb3c56a62915fd502e0b75f9
[ "MIT" ]
null
null
null
gender_detection_keras.py
matejcrnac/Face_deidentification_kazemi
434fff49b5a7b555bb3c56a62915fd502e0b75f9
[ "MIT" ]
null
null
null
#Classifier 1------------------------------------------------------------- # author: Arun Ponnusamy # website: https://www.arunponnusamy.com # import necessary packages from keras.preprocessing.image import img_to_array from keras.models import load_model import numpy as np import cv2 import cvlib as cv class Gend...
33.5
117
0.659257
1,428
0.453477
0
0
0
0
0
0
1,341
0.425849
3775c014edc4cfe9bbf99059dbab03441eae21fe
3,389
py
Python
dnppy/convert/_extract_HDF_layer_data.py
NASA-DEVELOP/dnppy
8f7ef6f0653f5a4ea730ee557c72a2c89c06ce0b
[ "NASA-1.3" ]
65
2015-09-10T12:59:56.000Z
2022-02-27T22:09:03.000Z
dnppy/convert/_extract_HDF_layer_data.py
snowzm/dnppy
8f7ef6f0653f5a4ea730ee557c72a2c89c06ce0b
[ "NASA-1.3" ]
40
2015-04-08T19:23:30.000Z
2015-08-04T15:53:11.000Z
dnppy/convert/_extract_HDF_layer_data.py
snowzm/dnppy
8f7ef6f0653f5a4ea730ee557c72a2c89c06ce0b
[ "NASA-1.3" ]
45
2015-08-14T19:09:38.000Z
2022-02-15T18:53:16.000Z
__author__ = ['djjensen', 'jwely'] __all__ = ["_extract_HDF_layer_data"] import gdal import os def _extract_HDF_layer_data(hdfpath, layer_indexs = None): """ Extracts one or more layers from an HDF file and returns a dictionary with all the data available in the HDF layer for use in further format conver...
33.89
154
0.691059
0
0
0
0
0
0
0
0
2,333
0.688404
377821387853d45c0c5a9841c83920bc6e3f180e
1,964
py
Python
network/R2plus1d.py
sabarim/3DC-Seg
210ee5b9ddebfed7b44c544e2eeb8c3d00e2a7d7
[ "MIT" ]
50
2020-09-11T07:57:49.000Z
2022-03-27T06:37:37.000Z
network/R2plus1d.py
sabarim/3DC-Seg
210ee5b9ddebfed7b44c544e2eeb8c3d00e2a7d7
[ "MIT" ]
15
2020-09-11T12:54:34.000Z
2022-01-13T08:38:38.000Z
network/R2plus1d.py
sabarim/3DC-Seg
210ee5b9ddebfed7b44c544e2eeb8c3d00e2a7d7
[ "MIT" ]
12
2020-10-01T07:29:53.000Z
2021-09-18T11:00:49.000Z
import torch from torch import nn from torchvision.models.video.resnet import VideoResNet, BasicBlock, Conv2Plus1D, R2Plus1dStem model_urls = { "r2plus1d_34_8_ig65m": "https://github.com/moabitcoin/ig65m-pytorch/releases/download/v1.0.0/r2plus1d_34_clip8_ig65m_from_scratch-9bae36ae.pth", # noqa: E501 ...
44.636364
171
0.682281
0
0
0
0
0
0
0
0
831
0.423116
3778b68ea4424c5dd5d977058233e58cf1a45c2c
2,213
py
Python
mapillary_tools/gps_parser.py
didier2020/mapillary_tools
23b8f422559f8dfdabdebc26d0d2001d40fbe2ef
[ "BSD-2-Clause" ]
null
null
null
mapillary_tools/gps_parser.py
didier2020/mapillary_tools
23b8f422559f8dfdabdebc26d0d2001d40fbe2ef
[ "BSD-2-Clause" ]
null
null
null
mapillary_tools/gps_parser.py
didier2020/mapillary_tools
23b8f422559f8dfdabdebc26d0d2001d40fbe2ef
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python import datetime from .geo import utc_to_localtime import gpxpy import pynmea2 """ Methods for parsing gps data from various file format e.g. GPX, NMEA, SRT. """ def get_lat_lon_time_from_gpx(gpx_file, local_time=True): """ Read location and time stamps from a track in a GPX file. Re...
27.6625
88
0.612743
0
0
0
0
0
0
0
0
660
0.298238
37795fd108033032ce115714c706b125640ba1c5
1,685
py
Python
src/polyd_events/consumer.py
supernothing/polyd-events
527dbd4c538253bed9a4096711e1ba4ee32202bf
[ "MIT" ]
null
null
null
src/polyd_events/consumer.py
supernothing/polyd-events
527dbd4c538253bed9a4096711e1ba4ee32202bf
[ "MIT" ]
null
null
null
src/polyd_events/consumer.py
supernothing/polyd-events
527dbd4c538253bed9a4096711e1ba4ee32202bf
[ "MIT" ]
null
null
null
import logging import time import inflection from .events import Event, RedisEvent logger = logging.getLogger(__name__) class EventConsumer(object): def __init__(self, streams, group, consumer_name, db, consume_from_end=False): """ An event consumer :param streams: List of stream names ...
31.203704
121
0.563798
1,560
0.925816
974
0.578042
0
0
0
0
300
0.178042
3779f2dd899eee84d4f004b19e2e63ab076d4e73
222
py
Python
#1/problem.py
alinoancea/dcp
1c1a5da226596b8447064392cc220dfc7ed3e95d
[ "MIT" ]
null
null
null
#1/problem.py
alinoancea/dcp
1c1a5da226596b8447064392cc220dfc7ed3e95d
[ "MIT" ]
null
null
null
#1/problem.py
alinoancea/dcp
1c1a5da226596b8447064392cc220dfc7ed3e95d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 def check(lst, k): d = set() for n in lst: if k - n in d: return True d.add(n) return False print(check([10, 15, 3, 7], 17)) print(check([10, 15, 3, 7], 11))
18.5
32
0.495495
0
0
0
0
0
0
0
0
22
0.099099
377d93c2d0000d6272f263fea0646a212046d38a
10,124
py
Python
principal/models.py
carborgar/gestionalumnostfg
87c6d97ad95cfcd55a88b2f3cb69da7134b80149
[ "MIT" ]
null
null
null
principal/models.py
carborgar/gestionalumnostfg
87c6d97ad95cfcd55a88b2f3cb69da7134b80149
[ "MIT" ]
null
null
null
principal/models.py
carborgar/gestionalumnostfg
87c6d97ad95cfcd55a88b2f3cb69da7134b80149
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # This is an auto-generated Django model module. # You'll have to do the following manually to clean this up: # * Rearrange models' order # * Make sure each model has one field with primary_key=True # * Remove `managed = False` lines if you wish to allow Django to create, modify, and delet...
36.157143
120
0.669696
8,961
0.885124
0
0
5,500
0.543264
0
0
2,536
0.250494
377f8c4605d4ec6f7f0742bad0873d2139c831e7
1,845
py
Python
raw_data_profchp.py
mcsoini/PROFILE_READER
c14806116cd20ba83620ded90832498451ed9597
[ "BSD-2-Clause" ]
null
null
null
raw_data_profchp.py
mcsoini/PROFILE_READER
c14806116cd20ba83620ded90832498451ed9597
[ "BSD-2-Clause" ]
null
null
null
raw_data_profchp.py
mcsoini/PROFILE_READER
c14806116cd20ba83620ded90832498451ed9597
[ "BSD-2-Clause" ]
null
null
null
import os from xlrd import open_workbook import pandas as pd from grimsel_h.auxiliary.aux_general import print_full, expand_rows, read_xlsx_table def get_chp_profiles(target_dir=None): print('Directory get_chp_profiles:', os.getcwd()) fn = 'heat_demand_profiles_20170614.xlsx' dct = '../.....
36.9
122
0.657453
0
0
0
0
0
0
0
0
287
0.155556
378287ed5b55d57f24765ff2c9e50d71d392d932
3,438
py
Python
urdu_tts/tts/text_processor/number_strings.py
mhsiddiqui/nlp_with_docker
a44191f2acc4e7cb62bea8bfdff6ffca123613e9
[ "Apache-2.0" ]
null
null
null
urdu_tts/tts/text_processor/number_strings.py
mhsiddiqui/nlp_with_docker
a44191f2acc4e7cb62bea8bfdff6ffca123613e9
[ "Apache-2.0" ]
3
2020-06-05T18:09:02.000Z
2021-06-10T20:06:02.000Z
urdu_tts/tts/text_processor/number_strings.py
mhsiddiqui/nlp_with_docker
a44191f2acc4e7cb62bea8bfdff6ffca123613e9
[ "Apache-2.0" ]
null
null
null
import csv import re import collections from tts.text_processor import RESOURCE_PATH class GetStringType(object): """ Get String type if it is Date, Time, Number Number formats which are handled are below 1. Date (12.12.12 or 12/12/12 or 12-12-12) 2. Time (12:12:12 or 12:12) 3....
30.157895
98
0.559046
3,345
0.972949
0
0
0
0
0
0
637
0.185282
37832b3e73a3242cb9e73840ccdaa64e7234eb27
37
py
Python
simclr/modules/transformations/__init__.py
martinmamql/SimCLR-2
60fb488a1914ec97af2bd01c85a9ec64e804db1e
[ "MIT" ]
496
2020-03-10T11:29:19.000Z
2022-03-30T04:52:08.000Z
simclr/modules/transformations/__init__.py
martinmamql/SimCLR-2
60fb488a1914ec97af2bd01c85a9ec64e804db1e
[ "MIT" ]
34
2020-03-12T15:03:02.000Z
2022-01-10T18:46:05.000Z
simclr/modules/transformations/__init__.py
martinmamql/SimCLR-2
60fb488a1914ec97af2bd01c85a9ec64e804db1e
[ "MIT" ]
125
2020-03-11T21:50:37.000Z
2022-03-16T08:24:58.000Z
from .simclr import TransformsSimCLR
18.5
36
0.864865
0
0
0
0
0
0
0
0
0
0
37862852a9d332b6eed256faa5e15ad4b5cc2386
100
py
Python
setup.py
mulh8377/pybind11-skeleton
84e7a7b14475fc03025118aecdfbf0df27a6f86f
[ "MIT" ]
null
null
null
setup.py
mulh8377/pybind11-skeleton
84e7a7b14475fc03025118aecdfbf0df27a6f86f
[ "MIT" ]
null
null
null
setup.py
mulh8377/pybind11-skeleton
84e7a7b14475fc03025118aecdfbf0df27a6f86f
[ "MIT" ]
null
null
null
from setuptools import setup setup( name="example", version="0.1", author="mulh8377", )
14.285714
28
0.64
0
0
0
0
0
0
0
0
24
0.24
378664d0639f1190d52a650c3361c0ffe40a077a
1,029
py
Python
tests/unit/test_param_initializer.py
olavolav/textplot
f665a0d8cf1822b46db7c3ffe1766888ff1de3bf
[ "MIT" ]
156
2020-08-17T19:05:52.000Z
2022-03-29T13:40:42.000Z
tests/unit/test_param_initializer.py
olavolav/textplot
f665a0d8cf1822b46db7c3ffe1766888ff1de3bf
[ "MIT" ]
11
2020-08-17T12:42:52.000Z
2021-12-12T09:53:02.000Z
tests/unit/test_param_initializer.py
olavolav/textplot
f665a0d8cf1822b46db7c3ffe1766888ff1de3bf
[ "MIT" ]
5
2020-09-12T03:12:50.000Z
2022-02-17T00:12:48.000Z
import pytest import numpy as np # type: ignore from uniplot.param_initializer import validate_and_transform_options from uniplot.multi_series import MultiSeries def test_passing_simple_list(): series = MultiSeries(ys=[1, 2, 3]) options = validate_and_transform_options(series=series) assert options.inte...
32.15625
83
0.727891
0
0
0
0
0
0
0
0
35
0.034014
378755b6e4a6d1df5540651db412b6b7152b2607
2,055
py
Python
classes/entities/song.py
Xindictus/Simple-Web-Based-Interface-CRUD
274fe6aa4e6e2583a04b3bb1a8ba3f9aa213c263
[ "Apache-2.0" ]
null
null
null
classes/entities/song.py
Xindictus/Simple-Web-Based-Interface-CRUD
274fe6aa4e6e2583a04b3bb1a8ba3f9aa213c263
[ "Apache-2.0" ]
null
null
null
classes/entities/song.py
Xindictus/Simple-Web-Based-Interface-CRUD
274fe6aa4e6e2583a04b3bb1a8ba3f9aa213c263
[ "Apache-2.0" ]
null
null
null
#!/Python27/python from ..database.database import Database # A class used for song insertion class Song: def __init__(self, title, production_year, cd, singer, composer, song_writer): self.title = title self.production_year = production_year self.cd = cd self.singer = singer ...
35.431034
112
0.552798
1,956
0.951825
0
0
0
0
0
0
690
0.335766
378979218302d31b75d0e2659058fd19f5495d01
1,237
py
Python
NeoAnalysis_Py3.5/NeoAnalysis/readio/h5_io.py
Research-lab-KUMS/NeoAnalysis
32b508dfade3069b1ec5cc7664574b8d3f2d5f57
[ "MIT" ]
23
2017-09-04T13:20:38.000Z
2022-03-08T08:15:17.000Z
NeoAnalysis_Py3.5/NeoAnalysis/readio/h5_io.py
Research-lab-KUMS/NeoAnalysis
32b508dfade3069b1ec5cc7664574b8d3f2d5f57
[ "MIT" ]
4
2018-01-05T13:44:29.000Z
2021-09-30T17:08:15.000Z
NeoAnalysis_Py2.7/NeoAnalysis/readio/h5_io.py
neoanalysis/NeoAnalysis
c5f25b71e16997f3a05f70b1eead11f99a3b7e2b
[ "MIT" ]
5
2017-11-26T19:40:46.000Z
2021-03-11T17:25:23.000Z
import h5py as hp import numpy as np import re def h5_io(filename, spike_to_load, analog_to_load): spikes = dict() analogs = dict() events = dict() comments = dict() with hp.File(filename,'r') as f: for key in f.keys(): if key=='events': events['times'] = f[key]['...
44.178571
98
0.514956
0
0
0
0
0
0
0
0
171
0.138238
37898a9927617dbd9f99330a279d83944466a398
142
py
Python
sys_add_path/toy_project_python3/src/folder_1/file_1.py
tedhuang96/python_tricks
1579176144b8ca32bf2eb5ba0c5291237d8b8935
[ "MIT" ]
null
null
null
sys_add_path/toy_project_python3/src/folder_1/file_1.py
tedhuang96/python_tricks
1579176144b8ca32bf2eb5ba0c5291237d8b8935
[ "MIT" ]
null
null
null
sys_add_path/toy_project_python3/src/folder_1/file_1.py
tedhuang96/python_tricks
1579176144b8ca32bf2eb5ba0c5291237d8b8935
[ "MIT" ]
null
null
null
from src.folder_0.file_0 import func_sum def func_sum_product(a,b,c,d): e = func_sum(a, b) f = func_sum(c, d) return e * f
15.777778
40
0.619718
0
0
0
0
0
0
0
0
0
0
378a6f60c85208588264fa4b0e5b9304df902135
1,601
py
Python
device_gateway/gateway.py
dastultz/home-automation
4007dbca43726cdf5949ee2aa1cd4d40ba67b5d3
[ "MIT" ]
null
null
null
device_gateway/gateway.py
dastultz/home-automation
4007dbca43726cdf5949ee2aa1cd4d40ba67b5d3
[ "MIT" ]
null
null
null
device_gateway/gateway.py
dastultz/home-automation
4007dbca43726cdf5949ee2aa1cd4d40ba67b5d3
[ "MIT" ]
null
null
null
import time import network_manager from components import Heartbeat, LogManager from message_bus import MessageBus import logger class Gateway: def __init__(self): self._message_bus = MessageBus(self._on_message) self._components = [] self._component_dict = {} def add_component(self...
28.087719
91
0.610868
1,467
0.916302
0
0
0
0
0
0
96
0.059963
378b8c1c8a129943980f58b79ee2233ffe6b0bae
3,439
py
Python
haco/DIDrive_core/demo/latent_rl/collect_data.py
decisionforce/HACO
ebd1dc49598e6ae2704e58c053cc35f2d9e28429
[ "Apache-2.0" ]
21
2022-02-15T10:11:54.000Z
2022-03-24T17:44:29.000Z
haco/DIDrive_core/demo/latent_rl/collect_data.py
decisionforce/HACO
ebd1dc49598e6ae2704e58c053cc35f2d9e28429
[ "Apache-2.0" ]
null
null
null
haco/DIDrive_core/demo/latent_rl/collect_data.py
decisionforce/HACO
ebd1dc49598e6ae2704e58c053cc35f2d9e28429
[ "Apache-2.0" ]
3
2022-02-22T11:11:43.000Z
2022-03-17T17:58:44.000Z
import os from functools import partial import numpy as np from ding.envs import SyncSubprocessEnvManager from ding.utils.default_helper import deep_merge_dicts from easydict import EasyDict from tqdm import tqdm from haco.DIDrive_core.data import CarlaBenchmarkCollector, BenchmarkDatasetSaver from haco.DIDrive_core....
30.433628
105
0.639139
0
0
0
0
0
0
0
0
185
0.053795
378fb80fb53ae0d7cd227f1351a2926e938d591b
25,206
py
Python
recent2.py
hongyi-zhao/recent2
5b072ff5d6419c444bb013b88e5e2a4de19b0851
[ "MIT" ]
null
null
null
recent2.py
hongyi-zhao/recent2
5b072ff5d6419c444bb013b88e5e2a4de19b0851
[ "MIT" ]
null
null
null
recent2.py
hongyi-zhao/recent2
5b072ff5d6419c444bb013b88e5e2a4de19b0851
[ "MIT" ]
null
null
null
#!/usr/bin/env python #https://github.com/kislyuk/argcomplete#synopsis import argcomplete import argparse import hashlib import json import os import re import socket import sqlite3 import sys import time from pathlib import Path from tabulate import tabulate from datetime import datetime # pip install python-dateutil...
37.620896
165
0.568119
5,361
0.212687
0
0
763
0.030271
0
0
10,185
0.40407
379060b8d18463c11ec809578384596203b2dae7
2,381
py
Python
sprout/core/auth.py
tjduigna/sprout
d8762ce7e6f04bb082b8ca1e65f73d8900338d9d
[ "Apache-2.0" ]
null
null
null
sprout/core/auth.py
tjduigna/sprout
d8762ce7e6f04bb082b8ca1e65f73d8900338d9d
[ "Apache-2.0" ]
null
null
null
sprout/core/auth.py
tjduigna/sprout
d8762ce7e6f04bb082b8ca1e65f73d8900338d9d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2019, Sprout Development Team # Distributed under the terms of the Apache License 2.0 import hashlib import secrets import string import base64 import hmac _allowed = (string.digits + string.ascii_lowercase + string.ascii_uppercase) def get_random_str(): ...
29.7625
66
0.613608
1,104
0.463671
0
0
0
0
0
0
335
0.140697
3790bcbb0c53fecdcdd2285bc764dfa70337dd15
139
py
Python
src/lambda_codebase/initial_commit/bootstrap_repository/adf-build/__init__.py
cattz/aws-deployment-framework
089ac40b5a91b4d1ae3151be601a818244eaf1c6
[ "Apache-2.0" ]
3
2019-03-07T00:33:36.000Z
2020-01-16T02:32:52.000Z
src/lambda_codebase/initial_commit/bootstrap_repository/adf-build/__init__.py
cattz/aws-deployment-framework
089ac40b5a91b4d1ae3151be601a818244eaf1c6
[ "Apache-2.0" ]
null
null
null
src/lambda_codebase/initial_commit/bootstrap_repository/adf-build/__init__.py
cattz/aws-deployment-framework
089ac40b5a91b4d1ae3151be601a818244eaf1c6
[ "Apache-2.0" ]
1
2019-11-12T10:08:32.000Z
2019-11-12T10:08:32.000Z
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: MIT-0 """ __init__ for adf-build """
19.857143
73
0.726619
0
0
0
0
0
0
0
0
135
0.971223
3791a86fa50aa3b089136b2339b5891bf69c1ce0
13,959
py
Python
sdk/python/pulumi_okta/user_factor_question.py
pulumi/pulumi-okta
83f7617a85b3d05213901773fa4e6a151ab6076b
[ "ECL-2.0", "Apache-2.0" ]
5
2019-10-29T21:59:22.000Z
2021-11-08T12:00:24.000Z
sdk/python/pulumi_okta/user_factor_question.py
pulumi/pulumi-okta
83f7617a85b3d05213901773fa4e6a151ab6076b
[ "ECL-2.0", "Apache-2.0" ]
109
2020-01-06T10:28:09.000Z
2022-03-25T19:52:40.000Z
sdk/python/pulumi_okta/user_factor_question.py
pulumi/pulumi-okta
83f7617a85b3d05213901773fa4e6a151ab6076b
[ "ECL-2.0", "Apache-2.0" ]
2
2020-09-11T16:31:04.000Z
2020-11-24T12:23:17.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
38.243836
134
0.624328
13,521
0.968622
0
0
11,360
0.813812
0
0
6,965
0.498961
3791e586a9b8f892c8036023d9ce18df5f8e863a
2,499
py
Python
cnn_model.py
Onimee58/bangla_ocr_cnn
c274d05adbbf2381d0d467ee7fad57fd89bc4019
[ "MIT" ]
null
null
null
cnn_model.py
Onimee58/bangla_ocr_cnn
c274d05adbbf2381d0d467ee7fad57fd89bc4019
[ "MIT" ]
null
null
null
cnn_model.py
Onimee58/bangla_ocr_cnn
c274d05adbbf2381d0d467ee7fad57fd89bc4019
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon May 10 04:24:41 2021 @author: Saif """ import numpy as np from keras.models import Sequential from keras.layers import Conv2D, MaxPooling2D, GlobalAveragePooling2D from keras.layers import Dropout, Flatten, Dense from keras.preprocessing import image ...
34.232877
124
0.666667
0
0
0
0
0
0
0
0
719
0.287715
3792a6aef987fb5eec6a52d26d7f616c91150edf
452
py
Python
tests/test_get.py
bio2bel/uniprot
a4f2ac033a46530ac249969f9a731beb39b12733
[ "MIT" ]
null
null
null
tests/test_get.py
bio2bel/uniprot
a4f2ac033a46530ac249969f9a731beb39b12733
[ "MIT" ]
3
2017-08-19T14:57:49.000Z
2017-08-19T14:58:12.000Z
tests/test_get.py
bio2bel/uniprot
a4f2ac033a46530ac249969f9a731beb39b12733
[ "MIT" ]
1
2019-10-22T00:50:37.000Z
2019-10-22T00:50:37.000Z
# -*- coding: utf-8 -*- """Test functions that get data.""" import os import unittest from bio2bel_uniprot import get_mappings_df HERE = os.path.abspath(os.path.dirname(__file__)) URL = os.path.join(HERE, 'test.tsv') class TestGet(unittest.TestCase): """Test getting data.""" def test_get_mappings(self): ...
21.52381
50
0.672566
228
0.504425
0
0
0
0
0
0
134
0.29646
37940bf72d979b6ddcf361e5f37474a801422c7b
6,520
py
Python
tests/plugins/test_types.py
prusse-martin/alfasim-sdk
f6992cb3c1c51e25bf55470508f406ee6c5a5e9b
[ "MIT" ]
17
2019-02-04T12:58:10.000Z
2021-07-16T12:36:23.000Z
tests/plugins/test_types.py
prusse-martin/alfasim-sdk
f6992cb3c1c51e25bf55470508f406ee6c5a5e9b
[ "MIT" ]
201
2018-08-07T19:39:10.000Z
2022-03-15T00:20:24.000Z
tests/plugins/test_types.py
prusse-martin/alfasim-sdk
f6992cb3c1c51e25bf55470508f406ee6c5a5e9b
[ "MIT" ]
5
2019-06-07T15:45:34.000Z
2021-10-13T18:49:52.000Z
import re import pytest from alfasim_sdk._internal.types import MultipleReference from alfasim_sdk._internal.types import Reference @pytest.mark.parametrize("expression_type", ["enable_expr", "visible_expr"]) def test_enable_expr_and_visible_expr(expression_type): from alfasim_sdk._internal.types import String ...
30.900474
135
0.661963
89
0.0136
0
0
2,367
0.361705
0
0
1,912
0.292176
3794ba9a44060b3cd6e66adb831807d3aaf08691
6,153
py
Python
math_signals/test/test_relation.py
Omnivanitate/sweep_design
00c20066d83a2eebf8402294b413737f49a97564
[ "MIT" ]
null
null
null
math_signals/test/test_relation.py
Omnivanitate/sweep_design
00c20066d83a2eebf8402294b413737f49a97564
[ "MIT" ]
null
null
null
math_signals/test/test_relation.py
Omnivanitate/sweep_design
00c20066d83a2eebf8402294b413737f49a97564
[ "MIT" ]
null
null
null
import unittest import numpy as np from scipy.integrate import cumulative_trapezoid from numpy.testing import assert_array_equal from math_signals.math_relation import Relation from math_signals.defaults.base_structures import BaseXY def pre_integr(x, y): return BaseXY(x=x[1:], y=np.ones(x[1:].size)) ...
39.191083
102
0.568178
5,333
0.866732
0
0
4,530
0.736226
0
0
252
0.040956
3794d2cf81706b3a4b46cdb0956d6d92b0823772
4,910
py
Python
nglp/lib/openapi.py
mauromsl/NGLP-Analytics
d6df05f82dbf2ffa5e136a20b6e89f7ef3bcbef2
[ "MIT" ]
null
null
null
nglp/lib/openapi.py
mauromsl/NGLP-Analytics
d6df05f82dbf2ffa5e136a20b6e89f7ef3bcbef2
[ "MIT" ]
54
2021-04-28T05:14:45.000Z
2021-12-10T09:14:28.000Z
nglp/lib/openapi.py
mauromsl/NGLP-Analytics
d6df05f82dbf2ffa5e136a20b6e89f7ef3bcbef2
[ "MIT" ]
1
2022-03-09T16:09:25.000Z
2022-03-09T16:09:25.000Z
from copy import deepcopy from nglp.lib.seamless import Construct, SeamlessException class OpenAPISupport(object): DEFAULT_OPENAPI_TRANS = { # The default translation from our coerce to openapi is {"type": "string"} # if there is no matching entry in the trans dict here. "unicode": {"type...
46.761905
222
0.578411
4,822
0.982077
0
0
0
0
0
0
2,149
0.437678
37962a94c4bab8df8fabf49b0401e28ebeb74d78
110
py
Python
bot/DataBase/Logic/MigrationManager.py
Amirioelmos/zekranehbot
0868cafa74059814923dec90c0b488ff747ada52
[ "MIT" ]
1
2020-04-13T04:46:54.000Z
2020-04-13T04:46:54.000Z
bot/DataBase/Logic/MigrationManager.py
Amirioelmos/zekranehbot
0868cafa74059814923dec90c0b488ff747ada52
[ "MIT" ]
null
null
null
bot/DataBase/Logic/MigrationManager.py
Amirioelmos/zekranehbot
0868cafa74059814923dec90c0b488ff747ada52
[ "MIT" ]
null
null
null
from bot.DataBase.Logic import Page, MainText def run_migrate(): Page.migrate() MainText.migrate()
13.75
45
0.709091
0
0
0
0
0
0
0
0
0
0
379775ff8a53d3afa965e36ca834f885ac3d5ba5
1,919
py
Python
netconf/ncc/rc-xr.py
reachtoashish/ltrmpl-2203-sandiego
0a17e6c8431d3529a03b72132231a82cd4b54acc
[ "Apache-2.0" ]
62
2017-01-15T10:29:44.000Z
2022-03-12T07:25:42.000Z
netconf/ncc/rc-xr.py
reachtoashish/ltrmpl-2203-sandiego
0a17e6c8431d3529a03b72132231a82cd4b54acc
[ "Apache-2.0" ]
22
2017-01-13T09:54:44.000Z
2018-07-23T23:41:24.000Z
netconf/ncc/rc-xr.py
reachtoashish/ltrmpl-2203-sandiego
0a17e6c8431d3529a03b72132231a82cd4b54acc
[ "Apache-2.0" ]
29
2017-01-10T11:15:18.000Z
2021-05-14T04:23:39.000Z
#!/usr/bin/env python # # Copyright (c) 2018 Cisco and/or its affiliates # import sys import requests from argparse import ArgumentParser from requests.auth import HTTPBasicAuth def send_request(protocol, host, port, username, password): '''Generate a simple RESTCONF request. ''' # url = "{}://{}:{}/restc...
36.207547
163
0.615425
0
0
0
0
0
0
0
0
763
0.397603
37990b900d049794f3a0a486dc1c773935bc6ed9
584
py
Python
5_0_even_odd.py
ChuckChen2020/ElementsOfProgrammingInterviews
635817bab6cddb397c45aa4b57c07a74b5ddb0a8
[ "MIT" ]
null
null
null
5_0_even_odd.py
ChuckChen2020/ElementsOfProgrammingInterviews
635817bab6cddb397c45aa4b57c07a74b5ddb0a8
[ "MIT" ]
null
null
null
5_0_even_odd.py
ChuckChen2020/ElementsOfProgrammingInterviews
635817bab6cddb397c45aa4b57c07a74b5ddb0a8
[ "MIT" ]
null
null
null
def even_odd(A): pe, po = 0, len(A) - 1 while pe < po: if A[pe] % 2 == 0: pe += 1 else: # if it pe hits an odd, swap with the one at po. if this po bears 1) an even value, next round pe will move right and therefore skip to the next. 2) an odd value, then next round it wi...
36.5
302
0.556507
0
0
0
0
0
0
0
0
300
0.513699
379a96fa891f104347b8acc6017c208b33cfdbbb
4,072
py
Python
sdks/python/apache_beam/tests/pipeline_verifiers.py
chamikaramj/beam
7c710360868d784c5b6bf99b8341748807b08101
[ "Apache-2.0" ]
1
2019-05-24T14:03:58.000Z
2019-05-24T14:03:58.000Z
sdks/python/apache_beam/tests/pipeline_verifiers.py
kavyasmj/beam0.6
d59dfeb339bd56feb7569531e5c421a297b0d3dc
[ "Apache-2.0" ]
2
2017-04-24T20:32:25.000Z
2022-03-29T12:59:55.000Z
sdks/python/apache_beam/tests/pipeline_verifiers.py
kavyasmj/beam0.6
d59dfeb339bd56feb7569531e5c421a297b0d3dc
[ "Apache-2.0" ]
2
2019-03-04T02:12:46.000Z
2021-08-10T20:29:37.000Z
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
33.933333
75
0.747299
2,396
0.588409
0
0
520
0.127701
0
0
1,781
0.437377
379c7664f3196827528f606b799c51a4a8796797
450
py
Python
AuthenticationSystem/models/user.py
ljnath/RBAC
7a4c2b0b4fd2d533ffdbf92d8b2d00b1ff510cae
[ "MIT" ]
null
null
null
AuthenticationSystem/models/user.py
ljnath/RBAC
7a4c2b0b4fd2d533ffdbf92d8b2d00b1ff510cae
[ "MIT" ]
null
null
null
AuthenticationSystem/models/user.py
ljnath/RBAC
7a4c2b0b4fd2d533ffdbf92d8b2d00b1ff510cae
[ "MIT" ]
null
null
null
""" Base model class for User """ class UserModel(): def __init__(self, name:str, roles:list): """ Creates a user with given name and role :param name : name as string is the user name :param role : role as list of role """ self.__name = name self.__roles = r...
22.5
57
0.575556
415
0.922222
0
0
114
0.253333
0
0
193
0.428889
379d365c3b72852583302df9254d3e745ae62646
4,975
py
Python
flappy.py
mrlmaia/myFlappyBird
393421c6d33051e3e5f9fb9b872651e2e8615de3
[ "MIT" ]
null
null
null
flappy.py
mrlmaia/myFlappyBird
393421c6d33051e3e5f9fb9b872651e2e8615de3
[ "MIT" ]
null
null
null
flappy.py
mrlmaia/myFlappyBird
393421c6d33051e3e5f9fb9b872651e2e8615de3
[ "MIT" ]
null
null
null
import pygame, random from pygame.locals import * SCREEN_WIDTH = 400 SCREEN_HEIGTH = 800 SPEED = 10 GRAVITY = 1 GAME_SPEED = 10 X = 0 Y = 1 GROUND_WIDTH = 2 * SCREEN_WIDTH GROUND_HEIGHT = 100 PIPE_WIDTH = 80 PIPE_HEIGHT = 500 PIPE_GAP = 200 class Bird(pygame.sprite.Sprite): def __init__(self): pygame....
26.604278
102
0.637186
2,417
0.485829
0
0
0
0
0
0
489
0.098291
379d69c530c32691ab9a0100007cee3fa8cae31c
2,487
py
Python
GolVe_Classification/GolVe+lr/train_model.py
majingliang/machine_learning
cd70e3a07bd1f0803ebcffebca565e70aff96de8
[ "MIT" ]
1
2019-09-29T13:36:29.000Z
2019-09-29T13:36:29.000Z
GolVe_Classification/GolVe+lr/train_model.py
yummydeli/machine_learning
54471182ac21ef0eee26557a7bd6f3a3dc3a09bd
[ "MIT" ]
null
null
null
GolVe_Classification/GolVe+lr/train_model.py
yummydeli/machine_learning
54471182ac21ef0eee26557a7bd6f3a3dc3a09bd
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from sklearn.datasets.base import Bunch import os import pickle from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.cross_validation import train_test_split import random from collections import defaultdict from sklearn.linear_model import LogisticRegressionCV...
36.573529
136
0.644552
0
0
0
0
0
0
0
0
525
0.211098
379d9ac43e5f8a9e61641e45c339fb8f78a1a4d0
3,136
py
Python
homeassistant/components/sensor/wink.py
TastyPi/home-assistant
aa1e4c564cb8660bf6b7637bc25317ee58869214
[ "MIT" ]
13
2017-02-01T13:25:34.000Z
2022-01-26T01:30:39.000Z
homeassistant/components/sensor/wink.py
1Forward1Back/home-assistant
ce24ef0c20dea0fd671d6f2c2a8b1456b4b66ba6
[ "MIT" ]
9
2017-07-26T18:05:32.000Z
2021-12-05T14:16:34.000Z
homeassistant/components/sensor/wink.py
1Forward1Back/home-assistant
ce24ef0c20dea0fd671d6f2c2a8b1456b4b66ba6
[ "MIT" ]
21
2017-07-26T17:09:40.000Z
2022-03-27T22:37:22.000Z
""" Support for Wink sensors. For more details about this platform, please refer to the documentation at at https://home-assistant.io/components/sensor.wink/ """ import logging from homeassistant.const import TEMP_CELSIUS from homeassistant.helpers.entity import Entity from homeassistant.components.wink import WinkDe...
32.666667
79
0.638712
2,014
0.642015
0
0
1,338
0.426522
0
0
722
0.230156
379e0ba70961375d128909802ed03cfc631262e2
2,925
py
Python
src/backend/opsbot/stdlib.py
xiashuqin89/bk-chatbot
d3f95363032f699cbc7e6617060642e0763443a6
[ "MIT" ]
null
null
null
src/backend/opsbot/stdlib.py
xiashuqin89/bk-chatbot
d3f95363032f699cbc7e6617060642e0763443a6
[ "MIT" ]
null
null
null
src/backend/opsbot/stdlib.py
xiashuqin89/bk-chatbot
d3f95363032f699cbc7e6617060642e0763443a6
[ "MIT" ]
null
null
null
""" TencentBlueKing is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaSCommunity Edition) available. Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in compliance with the...
28.676471
93
0.631111
1,240
0.416807
0
0
0
0
0
0
1,145
0.384874
379e75e6e2f4c60b9d24105610450fe718d5528e
7,552
py
Python
testing/unit-tests/python/python_database_entry_test.py
ncorgan/libpkmn
c683bf8b85b03eef74a132b5cfdce9be0969d523
[ "MIT" ]
4
2017-06-10T13:21:44.000Z
2019-10-30T21:20:19.000Z
testing/unit-tests/python/python_database_entry_test.py
PMArkive/libpkmn
c683bf8b85b03eef74a132b5cfdce9be0969d523
[ "MIT" ]
12
2017-04-05T11:13:34.000Z
2018-06-03T14:31:03.000Z
testing/unit-tests/python/python_database_entry_test.py
PMArkive/libpkmn
c683bf8b85b03eef74a132b5cfdce9be0969d523
[ "MIT" ]
2
2019-01-22T21:02:31.000Z
2019-10-30T21:20:20.000Z
#!/usr/bin/env python # # Copyright (c) 2016-2018 Nicholas Corgan (n.corgan@gmail.com) # # Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt # or copy at http://opensource.org/licenses/MIT) # import pkmn import os import sys import unittest class database_entry_test(unittest.TestCase): ...
39.957672
79
0.626589
7,055
0.93419
0
0
0
0
0
0
598
0.079184
37a04284c1db8c872e8f613b6e64d74da4d5e0ad
4,303
py
Python
lavalink/nodemanager.py
Massinez/Lavalink.py
df841c1e2a98d1de5e0ed4634e2a925577b603dc
[ "MIT" ]
null
null
null
lavalink/nodemanager.py
Massinez/Lavalink.py
df841c1e2a98d1de5e0ed4634e2a925577b603dc
[ "MIT" ]
null
null
null
lavalink/nodemanager.py
Massinez/Lavalink.py
df841c1e2a98d1de5e0ed4634e2a925577b603dc
[ "MIT" ]
null
null
null
import logging from .node import Node from .events import NodeConnectedEvent, NodeDisconnectedEvent log = logging.getLogger('lavalink') class NodeManager: def __init__(self, lavalink, regions: dict): self._lavalink = lavalink self.nodes = [] self.regions = regions or { 'asia'...
30.51773
121
0.565884
4,163
0.967465
68
0.015803
349
0.081106
1,086
0.252382
1,351
0.313967
37a06a46bd7dbc7b3904bddfec3b2e850b11c9b4
518
py
Python
tests/endpoints/test_pricing.py
tacchang001/oandapyV20helper
c8bff56ce9b3d69207911c899652df4328a8a847
[ "MIT" ]
null
null
null
tests/endpoints/test_pricing.py
tacchang001/oandapyV20helper
c8bff56ce9b3d69207911c899652df4328a8a847
[ "MIT" ]
null
null
null
tests/endpoints/test_pricing.py
tacchang001/oandapyV20helper
c8bff56ce9b3d69207911c899652df4328a8a847
[ "MIT" ]
null
null
null
import json import pytest from oandaV20helper.endpoints.pricing import to_dom class TestPricing: @pytest.mark.parametrize("num, filename", [ (1, 'test_pricing01.json'), (3, 'test_pricing02.json'), (15, 'test_pricing03.json') ]) def test_to_dataframe(self, num, filename): ...
22.521739
51
0.606178
368
0.710425
0
0
345
0.666023
0
0
144
0.277992
37a25acc37f7d6522679e3d2bfe44a22a8595cc0
2,364
py
Python
tests/__init__.py
utsc-networking/utsc-tools
d5bc10cf825f1be46999d5a42da62cc0df456f0c
[ "MIT" ]
null
null
null
tests/__init__.py
utsc-networking/utsc-tools
d5bc10cf825f1be46999d5a42da62cc0df456f0c
[ "MIT" ]
null
null
null
tests/__init__.py
utsc-networking/utsc-tools
d5bc10cf825f1be46999d5a42da62cc0df456f0c
[ "MIT" ]
null
null
null
import logging from pathlib import Path from utsc.core import Util class PropogateHandler(logging.Handler): def emit(self, record): logging.getLogger(record.name).handle(record) class MockFolders: class ConfDir: def __init__(self, path: Path, app_name: str) -> None: self.dir = pa...
38.129032
88
0.648054
2,288
0.967851
0
0
0
0
0
0
803
0.339679
37a39ff3342130319876ca4904644fe3206688ea
3,889
py
Python
esphome/components/modbus_controller/number/__init__.py
OttoWinter/esphomeyaml
6a85259e4d6d1b0a0f819688b8e555efcb99ecb0
[ "MIT" ]
249
2018-04-07T12:04:11.000Z
2019-01-25T01:11:34.000Z
esphome/components/modbus_controller/number/__init__.py
OttoWinter/esphomeyaml
6a85259e4d6d1b0a0f819688b8e555efcb99ecb0
[ "MIT" ]
243
2018-04-11T16:37:11.000Z
2019-01-25T16:50:37.000Z
esphome/components/modbus_controller/number/__init__.py
OttoWinter/esphomeyaml
6a85259e4d6d1b0a0f819688b8e555efcb99ecb0
[ "MIT" ]
40
2018-04-10T05:50:14.000Z
2019-01-25T15:20:36.000Z
import esphome.codegen as cg import esphome.config_validation as cv from esphome.components import number from esphome.const import ( CONF_ADDRESS, CONF_ID, CONF_MAX_VALUE, CONF_MIN_VALUE, CONF_MULTIPLY, CONF_STEP, ) from .. import ( MODBUS_WRITE_REGISTER_TYPE, add_modbus_base_propertie...
30.865079
92
0.674466
0
0
0
0
0
0
1,390
0.357418
385
0.098997
37a3c304b781c6585c4f8031de43d9bb105b23e7
306
py
Python
scp/validateLog.py
GAStudyGroup/VRP
54ec7ff3f0a4247d3effe609cf916fc235a08664
[ "MIT" ]
8
2018-11-28T15:13:26.000Z
2021-10-08T18:34:28.000Z
scp/validateLog.py
GAStudyGroup/VRP
54ec7ff3f0a4247d3effe609cf916fc235a08664
[ "MIT" ]
4
2018-03-28T19:26:27.000Z
2018-04-07T03:02:15.000Z
scp/validateLog.py
GAStudyGroup/VRP
54ec7ff3f0a4247d3effe609cf916fc235a08664
[ "MIT" ]
2
2019-12-12T09:36:48.000Z
2020-04-23T08:26:22.000Z
#!/usr/bin/env python import sys try: file = open("log.txt","r") except OSError: pass i=0 for line in file: i+=1 if line.find("CROSSOVER ")!=-1: array = line.split(" ") if (float(array[3]) < float(array[1])) and (float(array[3]) < float(array[2])): print(line)
20.4
87
0.54902
0
0
0
0
0
0
0
0
48
0.156863
37a850ace9c07a91ce0bd72124b829282874be9a
3,827
py
Python
src/training/scheduler.py
jplasser/cloob
8a16009440f8e8eb9acba8fbb046180719003b28
[ "MIT" ]
44
2021-10-30T06:20:59.000Z
2022-03-29T10:26:11.000Z
src/training/scheduler.py
afiaka87/cloob
d1c0fa166f4e8c42eba3fcd133caa2477b331860
[ "MIT" ]
9
2021-11-03T04:23:49.000Z
2022-03-31T15:48:17.000Z
src/training/scheduler.py
afiaka87/cloob
d1c0fa166f4e8c42eba3fcd133caa2477b331860
[ "MIT" ]
3
2021-12-29T22:08:25.000Z
2022-02-10T19:27:45.000Z
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # # 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/LICEN...
43.488636
117
0.679906
0
0
0
0
0
0
0
0
2,582
0.67468
37ad7164ae63d5ffb588e864b6d5d0bdac217918
9,305
py
Python
flowsa/USDA_CoA_Cropland.py
cchiq/flowsa
fc21e8da7c3ba66ca4ae4a0c72f568af7ef5e6c0
[ "CC0-1.0" ]
null
null
null
flowsa/USDA_CoA_Cropland.py
cchiq/flowsa
fc21e8da7c3ba66ca4ae4a0c72f568af7ef5e6c0
[ "CC0-1.0" ]
null
null
null
flowsa/USDA_CoA_Cropland.py
cchiq/flowsa
fc21e8da7c3ba66ca4ae4a0c72f568af7ef5e6c0
[ "CC0-1.0" ]
null
null
null
# USDA_CoA_Cropland.py (flowsa) # !/usr/bin/env python3 # coding=utf-8 import json import numpy as np import pandas as pd from flowsa.common import * def CoA_Cropland_URL_helper(build_url, config, args): """This helper function uses the "build_url" input from flowbyactivity.py, which is a base url for coa cropla...
58.522013
153
0.629339
0
0
0
0
0
0
0
0
5,592
0.600967
37ae25cb640514b4b69d9fbcf3fe21ab2db9d1d8
4,762
py
Python
chiron/apps/visits/views.py
vahidzee/chiron
66115f935a65253ec9c8a7feabfb7db0842acb29
[ "MIT" ]
null
null
null
chiron/apps/visits/views.py
vahidzee/chiron
66115f935a65253ec9c8a7feabfb7db0842acb29
[ "MIT" ]
null
null
null
chiron/apps/visits/views.py
vahidzee/chiron
66115f935a65253ec9c8a7feabfb7db0842acb29
[ "MIT" ]
null
null
null
from django.db import IntegrityError from rest_framework.authentication import TokenAuthentication, SessionAuthentication from rest_framework.response import Response import django.shortcuts as shortcuts from rest_framework import ( status, viewsets, serializers as drf_serializers, permissions as drf_pe...
37.203125
201
0.666107
4,286
0.900042
0
0
1,392
0.292314
0
0
1,955
0.410542
37ae7793ffa7e66b7097c469d3d38ac44ab471b7
804
py
Python
bin/banner_grab.py
r4mmer/dotfiles
4036245c9737a1fe8043f9bb919bbc75f45447bb
[ "MIT" ]
null
null
null
bin/banner_grab.py
r4mmer/dotfiles
4036245c9737a1fe8043f9bb919bbc75f45447bb
[ "MIT" ]
null
null
null
bin/banner_grab.py
r4mmer/dotfiles
4036245c9737a1fe8043f9bb919bbc75f45447bb
[ "MIT" ]
null
null
null
#!/usr/bin/python import socket import sys import os #grab the banner def grab_banner(ip_address,port): try: s=socket.socket() s.connect((ip_address,port)) banner = s.recv(1024) print ip_address + ':' + banner except: return def checkVulns(banner): if len(sys.argv) >=...
25.125
48
0.553483
0
0
0
0
0
0
0
0
102
0.126866
37aec59f9b17b9d32ce9730876f6d8d46a79c1b0
478
py
Python
3-natural-language-processing/2-nlp-character-pred.py
MLStruckmann/tensorflow-templates
ca35a8f055929ee4ec552fa03737d808a0fe3491
[ "MIT" ]
null
null
null
3-natural-language-processing/2-nlp-character-pred.py
MLStruckmann/tensorflow-templates
ca35a8f055929ee4ec552fa03737d808a0fe3491
[ "MIT" ]
null
null
null
3-natural-language-processing/2-nlp-character-pred.py
MLStruckmann/tensorflow-templates
ca35a8f055929ee4ec552fa03737d808a0fe3491
[ "MIT" ]
null
null
null
# Simple character prediction model (stateful) model = keras.models.Sequential([ keras.layers.GRU(128, return_sequences=True, stateful=True, dropout=0.2, recurrent_dropout=0.2, batch_input_shape=[batch_size, None, max_id]), keras.layers.GRU(128, return_sequences=True, stateful=True, ...
43.454545
62
0.669456
0
0
0
0
0
0
0
0
56
0.117155
37b007b20e0af00196c2315cf92bfae9d58c871d
12,681
py
Python
data_format_scripts/makeDatasetTxt_4Points_fromCasper.py
TT-happy-work/keras-yolo3
92ed71769c1040a18cf18e88dab30bfaa16248f4
[ "MIT" ]
null
null
null
data_format_scripts/makeDatasetTxt_4Points_fromCasper.py
TT-happy-work/keras-yolo3
92ed71769c1040a18cf18e88dab30bfaa16248f4
[ "MIT" ]
null
null
null
data_format_scripts/makeDatasetTxt_4Points_fromCasper.py
TT-happy-work/keras-yolo3
92ed71769c1040a18cf18e88dab30bfaa16248f4
[ "MIT" ]
null
null
null
import os from xml.etree import ElementTree from scipy.spatial import distance as dist import numpy as np from time import sleep import cv2 from PIL import Image, ImageDraw import colorsys def order_points(ptsArr): # pt_a, pt_b: out of the 2 left X, a is thr top one and b is the bottom. # pt_c, pt_d: out of ...
56.865471
439
0.59459
0
0
0
0
0
0
0
0
5,627
0.443735
37b0b5325153d70a2933be3c3353f2d91d004e2d
194
py
Python
Exam/oppgave_3.py
Chillu1/PythonUiS
7169f0d625d6419a3e002b1e3285ca08fc99c020
[ "MIT" ]
null
null
null
Exam/oppgave_3.py
Chillu1/PythonUiS
7169f0d625d6419a3e002b1e3285ca08fc99c020
[ "MIT" ]
null
null
null
Exam/oppgave_3.py
Chillu1/PythonUiS
7169f0d625d6419a3e002b1e3285ca08fc99c020
[ "MIT" ]
1
2021-04-26T14:32:52.000Z
2021-04-26T14:32:52.000Z
def translate_date(date:str): split_date = date.split(".") modified_date = split_date[2]+"-"+split_date[1]+"-"+split_date[0] return modified_date print(translate_date("19.05.2021"))
32.333333
69
0.695876
0
0
0
0
0
0
0
0
21
0.108247
37b2a8a74db0c97f1c16318f9a8201defdfcd005
129
py
Python
bangoo/theming/context_processors.py
slapec/bangoo
34facf122f15943a4368d5c2f45fe178ff01edaa
[ "MIT" ]
null
null
null
bangoo/theming/context_processors.py
slapec/bangoo
34facf122f15943a4368d5c2f45fe178ff01edaa
[ "MIT" ]
null
null
null
bangoo/theming/context_processors.py
slapec/bangoo
34facf122f15943a4368d5c2f45fe178ff01edaa
[ "MIT" ]
null
null
null
from django.conf import settings def act_theme(request): return {'ACT_THEME': getattr(request, 'ACT_THEME', settings.THEME)}
32.25
71
0.75969
0
0
0
0
0
0
0
0
22
0.170543
37b6eafa409acb5528b0f4f84a8bb707d55e196c
3,839
py
Python
pyspider/libs/wsgi_xmlrpc.py
zgwcome/pyspider
1e6375850538d8e04793f5e26b6d92adf8db6a9e
[ "Apache-2.0" ]
13,935
2015-01-01T04:48:55.000Z
2022-03-30T02:02:42.000Z
pyspider/libs/wsgi_xmlrpc.py
zgwcome/pyspider
1e6375850538d8e04793f5e26b6d92adf8db6a9e
[ "Apache-2.0" ]
848
2015-01-04T14:13:40.000Z
2022-03-04T02:29:44.000Z
pyspider/libs/wsgi_xmlrpc.py
zgwcome/pyspider
1e6375850538d8e04793f5e26b6d92adf8db6a9e
[ "Apache-2.0" ]
4,077
2015-01-02T03:01:27.000Z
2022-03-27T12:06:40.000Z
# Copyright (c) 2006-2007 Open Source Applications Foundation # # 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 require...
39.989583
109
0.655379
3,041
0.792133
0
0
0
0
0
0
1,897
0.494139
37b7d635ca3c11179e0de2c573fb71ee96d85d19
38,975
py
Python
dremail.py
shofutex/duplicati-sqs-report
e9257dae228f774fb818389cfd192f8886282bae
[ "MIT" ]
null
null
null
dremail.py
shofutex/duplicati-sqs-report
e9257dae228f774fb818389cfd192f8886282bae
[ "MIT" ]
null
null
null
dremail.py
shofutex/duplicati-sqs-report
e9257dae228f774fb818389cfd192f8886282bae
[ "MIT" ]
null
null
null
##### # # Module name: dremail.com # Purpose: Manage email connections for dupReport # # Notes: # ##### # Import system modules import imaplib import poplib import email import quopri import base64 import re import datetime import time import smtplib import os from email.mime.multipart import MIMEMultipart from...
58.345808
245
0.556459
33,388
0.856608
0
0
0
0
0
0
16,032
0.411319
37b838e0d54c247d6c2708be9b4641d2684a62fb
4,557
py
Python
tacker/extensions/common_services.py
hyunchic86/NDN-test
2417ececbd9a1b9bb4438baf5404cee872e4ec78
[ "Apache-2.0" ]
null
null
null
tacker/extensions/common_services.py
hyunchic86/NDN-test
2417ececbd9a1b9bb4438baf5404cee872e4ec78
[ "Apache-2.0" ]
null
null
null
tacker/extensions/common_services.py
hyunchic86/NDN-test
2417ececbd9a1b9bb4438baf5404cee872e4ec78
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Brocade Communications Systems 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 # # ...
28.841772
78
0.65745
2,607
0.572087
0
0
1,474
0.323458
0
0
1,429
0.313583
37b92a6bf223f5761c53562b6e0bd7327e57e2bf
2,373
py
Python
uiworld.py
touilleMan/trimps
603335009a1768f104e4ed317d24a75579f1aeb1
[ "WTFPL" ]
2
2021-11-08T02:46:09.000Z
2021-11-08T09:41:00.000Z
uiworld.py
touilleMan/trimps
603335009a1768f104e4ed317d24a75579f1aeb1
[ "WTFPL" ]
null
null
null
uiworld.py
touilleMan/trimps
603335009a1768f104e4ed317d24a75579f1aeb1
[ "WTFPL" ]
null
null
null
from PyQt4 import QtCore, QtGui class UiWorld(QtGui.QWidget): """Qt widget representing the world """ def __init__(self, parent): super(UiWorld, self).__init__(parent) self.__last_point = None self.image = QtGui.QImage(800, 600, QtGui.QImage.Format_ARGB32) self.image.fill(Qt...
35.954545
73
0.581542
2,339
0.985672
0
0
0
0
0
0
235
0.099031
37b9584c00e84d083226a073ff4103362f7643d1
7,215
py
Python
src/kblue/rfcomm.py
tulare/kblue
731aa3c4600f3b7c0e53efb51075335ca266b665
[ "MIT" ]
null
null
null
src/kblue/rfcomm.py
tulare/kblue
731aa3c4600f3b7c0e53efb51075335ca266b665
[ "MIT" ]
null
null
null
src/kblue/rfcomm.py
tulare/kblue
731aa3c4600f3b7c0e53efb51075335ca266b665
[ "MIT" ]
null
null
null
# -*- encoding: utf8 -*- import logging import re import socket import subprocess __all__ = [ 'RFComm' ] class RFCommNotConnected(BaseException) : pass class RFCommError(BaseException) : pass class RFComm : def __init__(self, bdaddr, port, timeout=5, encoding='utf-8') : self.logger = logging.g...
27.643678
151
0.537076
6,388
0.885378
0
0
1,233
0.170894
0
0
1,558
0.215939
37ba68fb7f6a88c20de7da3f55c3be19e782456c
27,203
py
Python
preprocess/raven_preprocess/format_parser.py
TwoRavens/raven-metadata-service
9461522219f5ef0f4877f24c8f5923e462bd9557
[ "Apache-2.0" ]
null
null
null
preprocess/raven_preprocess/format_parser.py
TwoRavens/raven-metadata-service
9461522219f5ef0f4877f24c8f5923e462bd9557
[ "Apache-2.0" ]
103
2018-03-13T20:43:59.000Z
2021-02-06T19:27:16.000Z
preprocess/raven_preprocess/format_parser.py
TwoRavens/raven-metadata-service
9461522219f5ef0f4877f24c8f5923e462bd9557
[ "Apache-2.0" ]
1
2019-09-11T22:36:14.000Z
2019-09-11T22:36:14.000Z
from dateutil import parser from dateutil import relativedelta, tz from calendar import monthrange from six import text_type, binary_type, integer_types import datetime import string import collections import time '''Modified _ymd object that support format detection''' class _format_ymd(list): def __init__(self...
38.422316
117
0.396133
26,021
0.956549
0
0
1,078
0.039628
0
0
3,420
0.125721
37bb688f46ffd73cd913e78b3be6c48784ad0dc1
10,517
py
Python
SplineMeasurement/engine/vtk_widgets/ro_psi_spline_widget.py
TiNezlobinsky/SplineLV
7281bca555f8eda802091cfbe3687b8ab59bfa4b
[ "MIT" ]
null
null
null
SplineMeasurement/engine/vtk_widgets/ro_psi_spline_widget.py
TiNezlobinsky/SplineLV
7281bca555f8eda802091cfbe3687b8ab59bfa4b
[ "MIT" ]
null
null
null
SplineMeasurement/engine/vtk_widgets/ro_psi_spline_widget.py
TiNezlobinsky/SplineLV
7281bca555f8eda802091cfbe3687b8ab59bfa4b
[ "MIT" ]
null
null
null
from vtk import vtkSplineWidget, vtkLineSource, vtkActor, vtkPolyDataMapper from numpy import linspace from math import pi, asin, sqrt, sin from scipy import interpolate import numpy as np # CODE REGIONS: # 1) Spline computing # 2) Spline redrawing # 3) Setters # 4) Getters # 5) Coordinates transformation # 6) Handle...
32.865625
102
0.625464
10,146
0.964724
0
0
0
0
0
0
1,666
0.15841
37bb9c548de28b45dc95933c0395c9827f5a0ea9
679
py
Python
top_secret/__init__.py
trym-inc/top-secret
dd5681a682745e2fedc9e80cca99445d143d18e9
[ "MIT" ]
null
null
null
top_secret/__init__.py
trym-inc/top-secret
dd5681a682745e2fedc9e80cca99445d143d18e9
[ "MIT" ]
null
null
null
top_secret/__init__.py
trym-inc/top-secret
dd5681a682745e2fedc9e80cca99445d143d18e9
[ "MIT" ]
null
null
null
from ._vault import Vault from ._vault import vault from .exceptions import SecretMissingError from .exceptions import CastError from .exceptions import CastHandlerMissingError from .secret_sources import FileSecretSource from .secret_sources import EnvironmentVariableSecretSource from .preprocessors import base64prepr...
25.148148
59
0.792342
0
0
0
0
0
0
0
0
181
0.266568
37bc562d644920ed8a17d263dab7566987d50ba4
1,054
py
Python
scripts/MakeHomList.py
danydoerr/GraphTeams
4b4257275ded8248eb54748b5b833a9d2d21cf37
[ "MIT" ]
null
null
null
scripts/MakeHomList.py
danydoerr/GraphTeams
4b4257275ded8248eb54748b5b833a9d2d21cf37
[ "MIT" ]
1
2018-07-10T17:08:17.000Z
2018-07-10T17:08:17.000Z
scripts/MakeHomList.py
danydoerr/GraphTeams
4b4257275ded8248eb54748b5b833a9d2d21cf37
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 from argparse import ArgumentParser, ArgumentDefaultsHelpFormatter as ADHF import sys import csv def readHomologyFromEnsemble(data): res = list() isHeader = True for line in csv.reader(data, delimiter=','): if isHeader: isHeader = False continue ...
23.422222
76
0.627135
0
0
0
0
0
0
0
0
223
0.211575
37c1663589684a97815ff0fdc370dc7704b856ea
7,534
py
Python
warcunpack_ia.py
ArchiveTeam/warctozip
d36bbbaa529d146b5b25252edbcc8f966528d8aa
[ "MIT" ]
5
2016-03-13T01:57:09.000Z
2021-10-02T00:22:10.000Z
warcunpack_ia.py
ArchiveTeam/warctozip
d36bbbaa529d146b5b25252edbcc8f966528d8aa
[ "MIT" ]
1
2021-10-31T05:15:54.000Z
2021-10-31T05:15:54.000Z
warcunpack_ia.py
ArchiveTeam/warctozip
d36bbbaa529d146b5b25252edbcc8f966528d8aa
[ "MIT" ]
2
2016-05-19T12:38:35.000Z
2016-11-27T20:01:24.000Z
#!/usr/bin/env python """warcextract - dump warc record context to directory""" import os import sys import os.path import uuid import mimetypes import shlex from optparse import OptionParser from contextlib import closing from urlparse import urlparse from hanzo.warctools import ArchiveRecord, WarcRecord from hanz...
34.559633
150
0.599151
0
0
0
0
0
0
0
0
972
0.129015
37c285e9e7b95a28d005834ffa6baf7dadf6349d
3,017
py
Python
twilio/rest/resources/task_router/reservations.py
quippp/twilio-python
22b84cdfd19a6b1bde84350053870a7c507af410
[ "MIT" ]
78
2017-08-19T03:46:13.000Z
2020-02-19T04:29:45.000Z
venv/lib/python2.7/site-packages/twilio/rest/resources/task_router/reservations.py
jideobs/twilioAngular
eb95308d287d7dbb72fe516a633199a0af8b76b9
[ "MIT" ]
5
2017-08-21T16:33:08.000Z
2018-06-21T18:37:18.000Z
venv/lib/python2.7/site-packages/twilio/rest/resources/task_router/reservations.py
jideobs/twilioAngular
eb95308d287d7dbb72fe516a633199a0af8b76b9
[ "MIT" ]
13
2017-08-19T16:46:08.000Z
2018-11-05T23:11:34.000Z
from .. import NextGenInstanceResource, NextGenListResource class Reservation(NextGenInstanceResource): """ A Reservation resource. See the `TaskRouter API reference <https://www.twilio.com/docs/taskrouter/tasks#reservation>_` for more information. .. attribute:: sid The unique ID o...
35.081395
77
0.668213
2,951
0.978124
0
0
0
0
0
0
2,618
0.867749
37c5b7a57373382792f04fb19c487676bd6c5d39
12,537
py
Python
csaws_creation/train_val_creation/generate_patches.py
ChrisMats/seemingly_uninformative_labels
bcbe060f8be89d731626e3f37752d5906c0a6752
[ "MIT" ]
4
2020-10-14T03:57:52.000Z
2021-09-23T13:34:03.000Z
csaws_creation/train_val_creation/generate_patches.py
ChrisMats/seemingly_uninformative_labels
bcbe060f8be89d731626e3f37752d5906c0a6752
[ "MIT" ]
1
2021-06-04T10:34:32.000Z
2021-06-07T04:54:35.000Z
csaws_creation/train_val_creation/generate_patches.py
ChrisMats/seemingly_uninformative_labels
bcbe060f8be89d731626e3f37752d5906c0a6752
[ "MIT" ]
4
2021-02-23T07:05:31.000Z
2021-09-08T19:48:57.000Z
"""This script creates the patched dataset""" import sys import glob import json from tqdm import tqdm import numpy as np from PIL import Image import multiprocessing from datetime import datetime from joblib import Parallel, delayed from scipy.interpolate import interp1d from scipy.ndimage import generic_filter from ...
38.457055
126
0.582755
0
0
0
0
0
0
0
0
2,554
0.203717
37c805b450d20bb9b6a8e39a0e4789acb07d84c1
4,677
py
Python
lwtestsuite/bvttest/lwtestssh/nbpipe.py
kbore/pbis-open
a05eb9309269b6402b4d6659bc45961986ea5eab
[ "Apache-2.0" ]
372
2016-10-28T10:50:35.000Z
2022-03-18T19:54:37.000Z
lwtestsuite/bvttest/lwtestssh/nbpipe.py
kbore/pbis-open
a05eb9309269b6402b4d6659bc45961986ea5eab
[ "Apache-2.0" ]
317
2016-11-02T17:41:48.000Z
2021-11-08T20:28:19.000Z
lwtestsuite/bvttest/lwtestssh/nbpipe.py
kenferrara/pbis-open
690c325d947b2bf6fb3032f9d660e41b94aea4be
[ "Apache-2.0" ]
107
2016-11-03T19:25:16.000Z
2022-03-20T21:15:22.000Z
"""Implements a non-blocking pipe class.""" # Since it uses thread rather than select, it is portable to at least # posix and windows environments. # Author: Rasjid Wilcox, copyright (c) 2002 # Ideas taken from the Python 2.2 telnetlib.py library. # # Last modified: 3 August 2002 # Licence: Python 2.2 Style ...
34.902985
88
0.5418
3,954
0.845414
0
0
0
0
0
0
1,740
0.372033
805ba55ed86af7e1a77e310df139512e78b99f6e
61,165
py
Python
iptv_proxy/providers/iptv_provider/configuration.py
sfanous/IPTVProxy
23047be01a229ef8f69ea6ca55185eae93adc56e
[ "MIT" ]
9
2018-11-02T02:51:50.000Z
2022-01-12T06:22:33.000Z
iptv_proxy/providers/iptv_provider/configuration.py
sfanous/IPTVProxy
23047be01a229ef8f69ea6ca55185eae93adc56e
[ "MIT" ]
3
2019-05-11T21:28:32.000Z
2020-04-27T00:58:46.000Z
iptv_proxy/providers/iptv_provider/configuration.py
sfanous/IPTVProxy
23047be01a229ef8f69ea6ca55185eae93adc56e
[ "MIT" ]
7
2019-01-03T20:31:30.000Z
2022-01-29T04:09:24.000Z
import copy import json import logging from iptv_proxy.providers import ProvidersController from iptv_proxy.security import SecurityManager logger = logging.getLogger(__name__) class ProviderConfiguration(object): __slots__ = [] _configuration_schema = {} _provider_name = None @classmethod def...
42.066713
154
0.457615
60,980
0.996975
0
0
60,740
0.993052
0
0
8,442
0.13802
805d2ac887895555a1420da719830b54829502f8
173
py
Python
Python-desenvolvimento/ex014.py
MarcosMaciel-MMRS/Desenvolvimento-python
2b2fc54788da3ca110d495b9e80a494f2b31fb09
[ "MIT" ]
null
null
null
Python-desenvolvimento/ex014.py
MarcosMaciel-MMRS/Desenvolvimento-python
2b2fc54788da3ca110d495b9e80a494f2b31fb09
[ "MIT" ]
null
null
null
Python-desenvolvimento/ex014.py
MarcosMaciel-MMRS/Desenvolvimento-python
2b2fc54788da3ca110d495b9e80a494f2b31fb09
[ "MIT" ]
null
null
null
# um programa que pega a ºC, e transforma em Fº c = float(input('informe a temperatura: ')) f = ((9*c)/5)+32 print('A temperatura {}ºc, corresponde à {}ºf'.format(c,f))
34.6
60
0.647399
0
0
0
0
0
0
0
0
118
0.662921
805da18c2eba7f3fc55361ca302201ceacee9c53
2,927
py
Python
psx/_dump_/48/_dump_ida_/overlay_d/make_psx.py
maoa3/scalpel
2e7381b516cded28996d290438acc618d00b2aa7
[ "Unlicense" ]
15
2018-06-28T01:11:25.000Z
2021-09-27T15:57:18.000Z
psx/_dump_/48/_dump_ida_/overlay_d/make_psx.py
maoa3/scalpel
2e7381b516cded28996d290438acc618d00b2aa7
[ "Unlicense" ]
7
2018-06-29T04:08:23.000Z
2019-10-17T13:57:22.000Z
psx/_dump_/48/_dump_ida_/overlay_d/make_psx.py
maoa3/scalpel
2e7381b516cded28996d290438acc618d00b2aa7
[ "Unlicense" ]
7
2018-06-28T01:11:34.000Z
2020-05-23T09:21:48.000Z
set_name(0x80123B68, "EA_cd_seek", SN_NOWARN) set_name(0x80123B70, "MY_CdGetSector", SN_NOWARN) set_name(0x80123BA4, "init_cdstream", SN_NOWARN) set_name(0x80123BB4, "flush_cdstream", SN_NOWARN) set_name(0x80123BD8, "check_complete_frame", SN_NOWARN) set_name(0x80123C58, "reset_cdstream", SN_NOWARN) set_name(0x80123C80...
49.610169
58
0.82166
0
0
0
0
0
0
0
0
955
0.326273
806068b887f576294d51b641529a19d602f962e8
423
py
Python
impc_etl/workflow/config.py
ficolo/impc-etl
3ca0fadaaa2b6e5d6fc424f949a9faa7680cd5f5
[ "Apache-2.0" ]
4
2021-04-14T09:28:51.000Z
2022-02-07T10:52:14.000Z
impc_etl/workflow/config.py
ficolo/impc-etl
3ca0fadaaa2b6e5d6fc424f949a9faa7680cd5f5
[ "Apache-2.0" ]
85
2018-10-30T10:49:28.000Z
2022-03-25T13:51:31.000Z
impc_etl/workflow/config.py
ficolo/impc-etl
3ca0fadaaa2b6e5d6fc424f949a9faa7680cd5f5
[ "Apache-2.0" ]
7
2018-10-30T11:36:57.000Z
2021-07-15T15:36:14.000Z
import luigi from luigi.contrib.hdfs import HdfsTarget class ImpcConfig(luigi.Config): dcc_xml_path = luigi.Parameter(default="./") output_path = luigi.Parameter(default="./") deploy_mode = luigi.Parameter(default="client") def get_target(self, path): return ( luigi.LocalTarget(pa...
26.4375
54
0.640662
365
0.862884
0
0
0
0
0
0
31
0.073286
8061201f4d94b2f8e4d053bc0f34429d3c1312e3
468
py
Python
portfolio/newsletter/admin.py
Tobi-De/portfolio
ef627539cfaf4117abfdea39bab16c90c79f82eb
[ "MIT" ]
null
null
null
portfolio/newsletter/admin.py
Tobi-De/portfolio
ef627539cfaf4117abfdea39bab16c90c79f82eb
[ "MIT" ]
null
null
null
portfolio/newsletter/admin.py
Tobi-De/portfolio
ef627539cfaf4117abfdea39bab16c90c79f82eb
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import News, Subscriber @admin.register(News) class NewsAdmin(admin.ModelAdmin): list_display = ["subject", "key_identifier", "dispatch_date", "modified", "created"] search_fields = ["subject", "message"] @admin.register(Subscriber) class SubscriberAdmin(admin....
27.529412
88
0.711538
341
0.728632
0
0
391
0.83547
0
0
138
0.294872
80615ede9944c60d7f347d9b93800d3c39e08d0f
1,258
py
Python
tests/test_value.py
DanielTOsborne/repgen5
a13e0005dc2a471bb9c112b53ab5e2e0d2596f72
[ "MIT" ]
null
null
null
tests/test_value.py
DanielTOsborne/repgen5
a13e0005dc2a471bb9c112b53ab5e2e0d2596f72
[ "MIT" ]
1
2021-12-17T16:45:56.000Z
2022-02-02T20:40:57.000Z
tests/test_value.py
DanielTOsborne/repgen5
a13e0005dc2a471bb9c112b53ab5e2e0d2596f72
[ "MIT" ]
1
2021-03-31T21:38:55.000Z
2021-03-31T21:38:55.000Z
import unittest from nose2.tools import params import sys import datetime sys.path.append("../") from repgen.data import Value from repgen.util import TZ def test_gents_scalar(): t_end = datetime.datetime.now().replace(minute=0,second=0,microsecond=0,tzinfo=TZ("UTC")) t_start = t_end-datetime.timedelta(hours...
34
139
0.645469
0
0
0
0
0
0
0
0
75
0.059618
8061f8f83585386d7f3cee51d2a8ec30b9f44859
9,096
py
Python
Data Science Project/Mall Customer Segmentation & Analysis/Mall Customer Segmentation & Analysis.py
jrderek/Data-science-master-resources
95adab02dccbf5fbe6333389324a1f8d032d3165
[ "MIT" ]
14
2020-09-17T17:04:04.000Z
2021-08-19T05:08:49.000Z
Data Science Project/Mall Customer Segmentation & Analysis/Mall Customer Segmentation & Analysis.py
jrderek/Data-science-master-resources
95adab02dccbf5fbe6333389324a1f8d032d3165
[ "MIT" ]
85
2020-10-01T16:53:21.000Z
2021-07-08T17:44:17.000Z
Data Science Project/Mall Customer Segmentation & Analysis/Mall Customer Segmentation & Analysis.py
jrderek/Data-science-master-resources
95adab02dccbf5fbe6333389324a1f8d032d3165
[ "MIT" ]
5
2020-09-18T08:53:01.000Z
2021-08-19T05:12:52.000Z
#!/usr/bin/env python # coding: utf-8 # ### Author : Sanjoy Biswas # ### Topic : Mall Customer Segmentation & Analysis # ### Email : sanjoy.eee32@gmail.com # # **Data Import And Preprocessing** # In[1]: import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns from plotly.offlin...
30.626263
498
0.744173
0
0
0
0
0
0
0
0
6,199
0.681508
80624346f155364d7ebf81125c59e583fc168c60
4,319
py
Python
colorlight-5a-75b/uart-probe/colorlight-uart-probe.py
TomKeddie/prj-litex
cc79c041d22ad552a12b49f531d007491b536521
[ "MIT" ]
2
2019-08-26T13:49:22.000Z
2019-11-11T18:43:29.000Z
colorlight-5a-75b/uart-probe/colorlight-uart-probe.py
TomKeddie/prj-litex
cc79c041d22ad552a12b49f531d007491b536521
[ "MIT" ]
null
null
null
colorlight-5a-75b/uart-probe/colorlight-uart-probe.py
TomKeddie/prj-litex
cc79c041d22ad552a12b49f531d007491b536521
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # This file is Copyright (c) 2020 Florent Kermarrec <florent@enjoy-digital.fr> # License: BSD # Disclaimer: This SoC is still a Proof of Concept with large timings violations on the IP/UDP and # Etherbone stack that need to be optimized. It was initially just used to validate the reversed # pin...
34.277778
115
0.552674
2,280
0.5279
0
0
0
0
0
0
1,448
0.335263
8062ec2ad344155703ac04ea390798756763b6a7
508
py
Python
obsolete/multithreadTest.py
gilesp/quickdrawmcgraw
c85a8c073d7e4681386cab78ef646728f3f66cb0
[ "MIT" ]
null
null
null
obsolete/multithreadTest.py
gilesp/quickdrawmcgraw
c85a8c073d7e4681386cab78ef646728f3f66cb0
[ "MIT" ]
null
null
null
obsolete/multithreadTest.py
gilesp/quickdrawmcgraw
c85a8c073d7e4681386cab78ef646728f3f66cb0
[ "MIT" ]
null
null
null
from time import sleep import threading import stepper import RPi.GPIO as GPIO motor1Pins = [7, 8, 9, 10] motor2Pins = [17, 18, 22, 23] def moveMotor(pins, degrees): sleep(1) GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) motor = stepper.Motor(pins) motor.rpm = 15 motor.moveTo(degrees) motor1...
23.090909
75
0.718504
0
0
0
0
0
0
0
0
0
0
8063b17195dc598c722e984e0438f0d945c3c21d
4,109
py
Python
src/jig/commands/tests/test_sticky.py
robmadole/jig
6596e15afb0bb7f69850a71d9071440ba101f539
[ "BSD-2-Clause" ]
16
2015-04-07T19:26:01.000Z
2020-03-05T21:09:07.000Z
src/jig/commands/tests/test_sticky.py
robmadole/jig
6596e15afb0bb7f69850a71d9071440ba101f539
[ "BSD-2-Clause" ]
2
2015-02-11T13:29:35.000Z
2015-03-02T21:03:08.000Z
src/jig/commands/tests/test_sticky.py
robmadole/jig
6596e15afb0bb7f69850a71d9071440ba101f539
[ "BSD-2-Clause" ]
2
2020-05-29T06:48:16.000Z
2020-05-29T06:54:36.000Z
# coding=utf-8 import git from os.path import expanduser from mock import patch, MagicMock from jig.tests.testcase import CommandTestCase, result_with_hint from jig.commands import sticky from jig.exc import ( ForcedExit, JigUserDirectoryError, GitConfigError, InitTemplateDirAlreadySet, GitTemplatesMissing, Gi...
28.534722
76
0.607204
3,642
0.886347
0
0
0
0
0
0
1,065
0.259187
8063da22cb97bc1092b0a5274319e07381b8faeb
5,624
py
Python
model/utils.py
yhygao/CBIM-Medical-Image-Segmentation
5586f705156ef3c442393276d184e4d51d2a2408
[ "Apache-2.0" ]
20
2022-03-02T08:47:25.000Z
2022-03-30T11:18:26.000Z
model/utils.py
yhygao/CBIM-Medical-Image-Segmentation
5586f705156ef3c442393276d184e4d51d2a2408
[ "Apache-2.0" ]
3
2022-03-04T04:23:10.000Z
2022-03-05T17:29:52.000Z
model/utils.py
yhygao/CBIM-Medical-Image-Segmentation
5586f705156ef3c442393276d184e4d51d2a2408
[ "Apache-2.0" ]
5
2022-03-02T08:47:32.000Z
2022-03-30T11:18:53.000Z
import numpy as np import torch import torch.nn as nn import pdb def get_model(args, pretrain=False): if args.dimension == '2d': if args.model == 'unet': from .dim2 import UNet if pretrain: raise ValueError('No pretrain model available') return UNet(...
48.068376
477
0.641536
0
0
0
0
0
0
0
0
469
0.083393
806408d9791890be53cd6c762cf29adc75259e09
1,925
py
Python
app/core/tests/test_admin.py
osakoh/recipe-API
2c7163a63479a16b64e885a27170b3d76ad554f1
[ "MIT" ]
null
null
null
app/core/tests/test_admin.py
osakoh/recipe-API
2c7163a63479a16b64e885a27170b3d76ad554f1
[ "MIT" ]
null
null
null
app/core/tests/test_admin.py
osakoh/recipe-API
2c7163a63479a16b64e885a27170b3d76ad554f1
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.test import Client, TestCase # Client: test request in the application for unit test from django.urls import reverse # generate urls for django admin page from django.utils.translation import gettext as _ class AdminSiteTests(TestCase): """Contains unit...
42.777778
111
0.671688
1,656
0.86026
0
0
0
0
0
0
828
0.43013
80647f5099199c99b0e0a984c775048c1fbf6fda
8,731
py
Python
parser.py
envlh/henry
53a1097a8650b99a8145b16853dbfece13922cb4
[ "CC0-1.0" ]
2
2022-01-10T12:36:21.000Z
2022-01-18T11:13:40.000Z
parser.py
envlh/henry
53a1097a8650b99a8145b16853dbfece13922cb4
[ "CC0-1.0" ]
null
null
null
parser.py
envlh/henry
53a1097a8650b99a8145b16853dbfece13922cb4
[ "CC0-1.0" ]
1
2022-01-10T13:15:43.000Z
2022-01-10T13:15:43.000Z
import json import re import requests import unidecode import urllib.parse def normalize_lemma(lemma): return re.sub(r'[^a-z]', '', unidecode.unidecode(lemma)) def get_existing_entries(user_agent): url = 'https://query.wikidata.org/sparql?{}'.format(urllib.parse.urlencode({'query': 'SELECT DISTINCT (REPLACE...
45.712042
285
0.569465
0
0
0
0
0
0
0
0
2,952
0.337951
8064b62c6658077a658035b75bf939d6a102f7cb
1,591
py
Python
tests/test_solidarity_tax_credit.py
RogerEMO/srd
40eb8bb02cfd3b1f60ed9eb3e361877fea744cb5
[ "MIT" ]
1
2021-11-22T18:15:09.000Z
2021-11-22T18:15:09.000Z
tests/test_solidarity_tax_credit.py
RogerEMO/srd
40eb8bb02cfd3b1f60ed9eb3e361877fea744cb5
[ "MIT" ]
3
2021-05-10T18:46:16.000Z
2021-06-01T16:51:48.000Z
tests/test_solidarity_tax_credit.py
RogerEMO/srd
40eb8bb02cfd3b1f60ed9eb3e361877fea744cb5
[ "MIT" ]
1
2021-05-05T17:20:06.000Z
2021-05-05T17:20:06.000Z
import pytest from math import isclose import sys sys.path.append('/Users/pyann/Dropbox (CEDIA)/srd/Model') import srd from srd import quebec qc_form = quebec.form(2016) @pytest.mark.parametrize('income, amount', [(0, 966), (33e3, 966), (51e3, 0), (34e3+(51e3-34...
32.469388
80
0.529855
0
0
0
0
1,394
0.876179
0
0
100
0.062854
80650e96ed810fec1ddeaacf215ceee808005014
952
py
Python
application.py
crawftv/python-portfolio
5264f4339428279e611539be67a53cc2c0135150
[ "BSD-3-Clause" ]
null
null
null
application.py
crawftv/python-portfolio
5264f4339428279e611539be67a53cc2c0135150
[ "BSD-3-Clause" ]
2
2020-03-24T17:07:58.000Z
2020-03-31T03:19:38.000Z
application.py
crawftv/python-portfolio
5264f4339428279e611539be67a53cc2c0135150
[ "BSD-3-Clause" ]
null
null
null
from flask import Flask, render_template from firestore_utilities import get_medium, db, get_github_events, get_projects application = Flask(__name__) @application.route("/") def root(): return render_template("root.html") @application.route("/blog") def blog(): blog_list = get_medium(db) return rende...
21.636364
79
0.719538
0
0
0
0
717
0.753151
0
0
142
0.14916
806566fc4d9daeabfef5f2000f79ccd69c7d32a1
49,754
py
Python
2021/BondwireProfileEditor_Win_Linux.py
zhangjq933/HowtoSim_Script
d958cc6cc743106e8f6ddf58dead6551a8ac7784
[ "MIT" ]
79
2019-04-01T04:35:01.000Z
2022-03-30T10:59:32.000Z
2021/BondwireProfileEditor_Win_Linux.py
raflzhang/HowtoSim_Script
90fb8cca87d47d2c45b8ff5d07a35e8a6c846685
[ "MIT" ]
1
2020-03-29T20:52:06.000Z
2020-03-30T05:35:30.000Z
2021/BondwireProfileEditor_Win_Linux.py
raflzhang/HowtoSim_Script
90fb8cca87d47d2c45b8ff5d07a35e8a6c846685
[ "MIT" ]
73
2019-05-07T10:26:53.000Z
2022-03-24T02:25:08.000Z
# coding=utf-8 import os, re, sys, clr, json, math, logging, random, time from itertools import combinations os.chdir(os.path.dirname(__file__)) logging.basicConfig(filename='gui.log', filemode='w', encoding='utf-8', level=logging.DEBUG) clr.AddReference('System.Drawing') clr.AddReference('System.Windows.Forms') ...
39.8032
116
0.552116
34,229
0.687965
0
0
0
0
0
0
4,427
0.088978
8065e364ac71356df1a3bb45b9af18ea539918a5
750
py
Python
testing.py
louisack/instagram_bot
83ef95f369fd25a16889a0c7b2d006cbc266481c
[ "MIT" ]
null
null
null
testing.py
louisack/instagram_bot
83ef95f369fd25a16889a0c7b2d006cbc266481c
[ "MIT" ]
null
null
null
testing.py
louisack/instagram_bot
83ef95f369fd25a16889a0c7b2d006cbc266481c
[ "MIT" ]
null
null
null
from time import sleep from selenium import webdriver from secrets import password from selenium.webdriver.common.keys import Keys from time import sleep, strftime chromedriver_path ='/mnt/c/Users/louis/Documents/GitHub/instagram_bot/chromedriver.exe' class Instabot: def __init__(self, username, password):...
39.473684
90
0.728
486
0.648
0
0
0
0
0
0
179
0.238667
806640663332b26791d299631d7a07702f2f99ab
1,738
py
Python
nodedge/blocks/custom/input_block.py
Nodedge/nodedge
5658269a1841f33b3c42d6f79b8b50411e105787
[ "MIT" ]
7
2020-03-25T19:54:56.000Z
2021-06-09T04:43:58.000Z
nodedge/blocks/custom/input_block.py
Nodedge/nodedge
5658269a1841f33b3c42d6f79b8b50411e105787
[ "MIT" ]
9
2020-01-17T10:47:54.000Z
2021-05-30T12:40:28.000Z
nodedge/blocks/custom/input_block.py
nodedge/nodedge
5658269a1841f33b3c42d6f79b8b50411e105787
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from typing import List from nodedge.blocks.block import Block from nodedge.blocks.block_config import BLOCKS_ICONS_PATH, OP_NODE_INPUT, registerNode from nodedge.blocks.graphics_block import GraphicsBlock from nodedge.blocks.graphics_input_block_content import GraphicsInputBlockContent from no...
30.491228
86
0.705984
1,350
0.776755
0
0
1,379
0.793441
0
0
188
0.10817
8066624d5dffeae87c4031c186ee89c3a0ab8dcd
5,890
py
Python
app/core.py
JulienPetit-1/DataTools_Project
60dc787e219e3a00a4a0b14808e8ad32a7e0f878
[ "MIT" ]
null
null
null
app/core.py
JulienPetit-1/DataTools_Project
60dc787e219e3a00a4a0b14808e8ad32a7e0f878
[ "MIT" ]
null
null
null
app/core.py
JulienPetit-1/DataTools_Project
60dc787e219e3a00a4a0b14808e8ad32a7e0f878
[ "MIT" ]
null
null
null
import pandas as pd class Core: def __init__(self, players): index_with_nan = players.index[players.isnull().any(axis=1)] players.drop(index_with_nan,0, inplace=True) self.Players = players def roi_top_players(self): ''' Sorted the player list by ROI from the top ...
38.496732
168
0.543633
5,869
0.996435
0
0
0
0
0
0
2,757
0.468081
80676fec9d54f2f82f75da34b314f6afd4212486
3,799
py
Python
main/classify_program.py
Abel-Huang/simple-image-classifier
89d2822c2b06cdec728f734d43d9638f4b601348
[ "MIT" ]
4
2017-05-17T08:01:38.000Z
2018-07-22T11:13:55.000Z
main/classify_program.py
Abel-Huang/ImageClassifier
89d2822c2b06cdec728f734d43d9638f4b601348
[ "MIT" ]
null
null
null
main/classify_program.py
Abel-Huang/ImageClassifier
89d2822c2b06cdec728f734d43d9638f4b601348
[ "MIT" ]
null
null
null
import cv2 import numpy as np from sklearn import svm from sklearn.externals import joblib from main import data_set as ds from main import feature_program as fp from util import save_2_db as db from util import file_manage as fm # 训练分类器 def train_classifier(feature_type): train_data = np.float32([]).reshape(0, 50...
37.245098
90
0.61253
0
0
0
0
0
0
0
0
722
0.184986
8067b4374ba41b815a9a3686f3eb5766d004309f
75
py
Python
__init__.py
interruping/naver_ai_hackathon_2018_kin_964turon
dfdff75a2a83b3ca71c05f25bc70b16c9d7728f3
[ "MIT" ]
null
null
null
__init__.py
interruping/naver_ai_hackathon_2018_kin_964turon
dfdff75a2a83b3ca71c05f25bc70b16c9d7728f3
[ "MIT" ]
null
null
null
__init__.py
interruping/naver_ai_hackathon_2018_kin_964turon
dfdff75a2a83b3ca71c05f25bc70b16c9d7728f3
[ "MIT" ]
null
null
null
from .konlpy_set import KinQueryDatasetVer2, preprocess, get_embedding_dim
37.5
74
0.88
0
0
0
0
0
0
0
0
0
0
80693af1a223015fc9f6a5347749723828613409
102
py
Python
library/test/test_compiler/testcorpus/91_line_numbers2_comp.py
creativemindplus/skybison
d1740e08d8de85a0a56b650675717da67de171a0
[ "CNRI-Python-GPL-Compatible" ]
278
2021-08-31T00:46:51.000Z
2022-02-13T19:43:28.000Z
library/test/test_compiler/testcorpus/91_line_numbers2_comp.py
creativemindplus/skybison
d1740e08d8de85a0a56b650675717da67de171a0
[ "CNRI-Python-GPL-Compatible" ]
9
2021-11-05T22:28:43.000Z
2021-11-23T08:39:04.000Z
library/test/test_compiler/testcorpus/91_line_numbers2_comp.py
tekknolagi/skybison
bea8fc2af0a70e7203b4c19f36c14a745512a335
[ "CNRI-Python-GPL-Compatible" ]
12
2021-08-31T07:49:54.000Z
2021-10-08T01:09:01.000Z
# Copyright (c) Facebook, Inc. and its affiliates. (http://www.facebook.com) a = [ x for x in y ]
20.4
76
0.627451
0
0
0
0
0
0
0
0
76
0.745098
8069c80b4ba47527c4c176a2e51cb7a78d306b86
4,616
py
Python
momoichigo/app/views/resource_queue_view.py
nothink/momoichigo
85710c31a4dddb85fc1597ceb31c80d97779502b
[ "MIT" ]
null
null
null
momoichigo/app/views/resource_queue_view.py
nothink/momoichigo
85710c31a4dddb85fc1597ceb31c80d97779502b
[ "MIT" ]
174
2021-06-21T08:19:03.000Z
2022-03-30T23:44:55.000Z
momoichigo/app/views/resource_queue_view.py
nothink/momoichigo
85710c31a4dddb85fc1597ceb31c80d97779502b
[ "MIT" ]
1
2021-09-24T13:40:53.000Z
2021-09-24T13:40:53.000Z
"""momoichigo views.""" from __future__ import annotations import io import logging from typing import Any, List, Tuple from urllib.parse import urlparse import pendulum import requests from django.core.exceptions import ValidationError from django.db import transaction from rest_framework import mixins, status, view...
34.192593
85
0.620234
4,204
0.862536
0
0
2,008
0.411982
0
0
1,077
0.220968
806dd6f207f96deb9deb2732e42a0bf1d99fbad0
993
py
Python
uds/uds_config_tool/SupportedServices/iContainer.py
J3rome/python-uds
fe0f7a9505cb7b87f693ab736d713d7871dff288
[ "MIT" ]
62
2019-02-13T20:26:12.000Z
2022-02-23T19:47:34.000Z
uds/uds_config_tool/SupportedServices/iContainer.py
J3rome/python-uds
fe0f7a9505cb7b87f693ab736d713d7871dff288
[ "MIT" ]
58
2018-07-09T10:58:33.000Z
2022-01-31T20:27:13.000Z
uds/uds_config_tool/SupportedServices/iContainer.py
J3rome/python-uds
fe0f7a9505cb7b87f693ab736d713d7871dff288
[ "MIT" ]
33
2019-03-25T07:30:34.000Z
2022-03-08T12:55:35.000Z
#!/usr/bin/env python __author__ = "Richard Clubb" __copyrights__ = "Copyright 2018, the python-uds project" __credits__ = ["Richard Clubb"] __license__ = "MIT" __maintainer__ = "Richard Clubb" __email__ = "richard.clubb@embeduk.com" __status__ = "Development" from abc import ABCMeta, abstractmethod class iContain...
31.03125
81
0.775428
686
0.690836
0
0
636
0.640483
0
0
315
0.317221
806ddac5cfe116c67e0d9529de64b5b850440192
347
py
Python
Algoritmo(Python)/Alg_S7_4.py
Daniel-Conte/Exercicios-de-Algoritmo
5a42722516097d0aec14d80549e18501b182eebd
[ "MIT" ]
null
null
null
Algoritmo(Python)/Alg_S7_4.py
Daniel-Conte/Exercicios-de-Algoritmo
5a42722516097d0aec14d80549e18501b182eebd
[ "MIT" ]
null
null
null
Algoritmo(Python)/Alg_S7_4.py
Daniel-Conte/Exercicios-de-Algoritmo
5a42722516097d0aec14d80549e18501b182eebd
[ "MIT" ]
null
null
null
#variables media = 0 maior = 0 menor = 9999 #input + process for(i) in range(1, 11): N = int(input("Digite um número: ")) if(N > maior): maior = N if(N < menor): menor = N media = (media + (N / 10)) print("Maior número: {0}".format(maior)) print("Menor número: {0}".format(menor)) print(...
23.133333
40
0.570605
0
0
0
0
0
0
0
0
99
0.282857
806f5dbad8693bef1f42f7424619c01bd49c62cd
2,464
py
Python
test_depth_cityscapes.py
sanweiliti/Segmentation-MonoDepth-Pytorch
d1a3de8d10c60fe9d3b86b585e0f0089555fc8a6
[ "MIT" ]
25
2019-02-09T21:19:15.000Z
2022-01-24T22:11:20.000Z
test_depth_cityscapes.py
sanweiliti/Segmentation-MonoDepth-Pytorch
d1a3de8d10c60fe9d3b86b585e0f0089555fc8a6
[ "MIT" ]
null
null
null
test_depth_cityscapes.py
sanweiliti/Segmentation-MonoDepth-Pytorch
d1a3de8d10c60fe9d3b86b585e0f0089555fc8a6
[ "MIT" ]
4
2019-02-21T07:08:06.000Z
2022-01-25T12:43:24.000Z
import yaml import torch import argparse from torch.utils import data from tqdm import tqdm from ptsemseg.models import get_model from ptsemseg.loader import get_loader from ptsemseg.metrics import runningScoreDepth, averageMeter def count_parameters(model): return sum(p.numel() for p in model.parameters() if p...
28.988235
100
0.616477
0
0
0
0
0
0
0
0
464
0.188312