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
604c11d1662643b5e9e977b3126e196c0ca94747
1,944
py
Python
edit/editpublisher.py
lokal-profil/isfdb_site
0ce20d6347849926d4eda961ea9249c31519eea5
[ "BSD-3-Clause" ]
null
null
null
edit/editpublisher.py
lokal-profil/isfdb_site
0ce20d6347849926d4eda961ea9249c31519eea5
[ "BSD-3-Clause" ]
null
null
null
edit/editpublisher.py
lokal-profil/isfdb_site
0ce20d6347849926d4eda961ea9249c31519eea5
[ "BSD-3-Clause" ]
null
null
null
#!_PYTHONLOC # # (C) COPYRIGHT 2004-2021 Al von Ruff and Ahasuerus # ALL RIGHTS RESERVED # # The copyright notice above does not evidence any actual or # intended publication of such source code. # # Version: $Revision$ # Date: $Date$ from isfdblib import * from isfdblib_help import * fr...
28.173913
98
0.677469
0
0
0
0
0
0
0
0
824
0.423868
604ecb6f7cdc9275682b21b948b61c6eab42174d
2,988
py
Python
src/dispatch/incident_cost/views.py
vj-codes/dispatch
f9354781956380cac290be02fb987eb50ddc1a5d
[ "Apache-2.0" ]
1
2021-06-16T17:02:35.000Z
2021-06-16T17:02:35.000Z
src/dispatch/incident_cost/views.py
dilbwagsingh/dispatch
ca7c9730dea64e196c6653321552d570dfdad069
[ "Apache-2.0" ]
10
2021-07-17T04:28:07.000Z
2022-02-05T00:40:59.000Z
src/dispatch/incident_cost/views.py
dilbwagsingh/dispatch
ca7c9730dea64e196c6653321552d570dfdad069
[ "Apache-2.0" ]
null
null
null
from fastapi import APIRouter, Depends, HTTPException from sqlalchemy.orm import Session from dispatch.database.core import get_db from dispatch.database.service import common_parameters, search_filter_sort_paginate from dispatch.auth.permissions import SensitiveProjectActionPermission, PermissionsDependency from .mo...
32.835165
100
0.749665
0
0
0
0
2,467
0.825636
0
0
519
0.173695
604ecfc2153a2b8f83182b3e8a28bd46fb2056eb
8,479
py
Python
tests/views/test_admin_committee_questions.py
Lunga001/pmg-cms-2
10cea3979711716817b0ba2a41987df73f2c7642
[ "Apache-2.0" ]
2
2019-06-11T20:46:43.000Z
2020-08-27T22:50:32.000Z
tests/views/test_admin_committee_questions.py
Lunga001/pmg-cms-2
10cea3979711716817b0ba2a41987df73f2c7642
[ "Apache-2.0" ]
70
2017-05-26T14:04:06.000Z
2021-06-30T10:21:58.000Z
tests/views/test_admin_committee_questions.py
OpenUpSA/pmg-cms-2
ec5f259dae81674ac7a8cdb80f124a8b0f167780
[ "Apache-2.0" ]
4
2017-08-29T10:09:30.000Z
2021-05-25T11:29:03.000Z
import os from urllib.parse import urlparse, parse_qs from builtins import str from tests import PMGLiveServerTestCase from pmg.models import db, Committee, CommitteeQuestion from tests.fixtures import dbfixture, UserData, CommitteeData, MembershipData from flask import escape from io import BytesIO class TestAdminCo...
45.342246
927
0.644416
8,177
0.964155
0
0
0
0
0
0
3,499
0.412569
604f0eeff04eca0db1f9e0f762b1e72dacff74c1
2,907
py
Python
audioanalysis_demo/test_audio_analysis.py
tiaotiao/applets
c583a4405ed18c7d74bfba49884525c43d114398
[ "MIT" ]
null
null
null
audioanalysis_demo/test_audio_analysis.py
tiaotiao/applets
c583a4405ed18c7d74bfba49884525c43d114398
[ "MIT" ]
null
null
null
audioanalysis_demo/test_audio_analysis.py
tiaotiao/applets
c583a4405ed18c7d74bfba49884525c43d114398
[ "MIT" ]
null
null
null
import sys, wave import AudioAnalysis FILE_NAME = "snippet.wav" def testWavWrite(): try: f = wave.open(FILE_NAME, "rb") except Exception, e: print e print "File type is not wav!" return c = wave.open("cnv_" + FILE_NAME, "wb") print f.getnchannels() print ...
23.827869
88
0.579635
0
0
0
0
0
0
0
0
797
0.274166
60518bb19a47173a8268f88acf5e74e628053642
4,866
py
Python
syloga/transform/evaluation.py
xaedes/python-symbolic-logic-to-gate
a0dc9be9e04290008cf709fac789d224ab8c14b0
[ "MIT" ]
null
null
null
syloga/transform/evaluation.py
xaedes/python-symbolic-logic-to-gate
a0dc9be9e04290008cf709fac789d224ab8c14b0
[ "MIT" ]
null
null
null
syloga/transform/evaluation.py
xaedes/python-symbolic-logic-to-gate
a0dc9be9e04290008cf709fac789d224ab8c14b0
[ "MIT" ]
null
null
null
from syloga.core.map_expression_args import map_expression_args from syloga.utils.identity import identity from syloga.ast.BooleanNot import BooleanNot from syloga.ast.BooleanValue import BooleanValue from syloga.ast.BooleanOr import BooleanOr from syloga.ast.BooleanAnd import BooleanAnd from syloga.ast.BooleanNand i...
36.313433
102
0.621661
0
0
0
0
0
0
0
0
459
0.094328
605202551fbb724a7df19cd7d70079bcc8b5e6d2
2,753
py
Python
oscar/apps/customer/mixins.py
Idematica/django-oscar
242a0654210d63ba75f798788916c8b2f7abb7fb
[ "BSD-3-Clause" ]
1
2015-08-02T05:36:11.000Z
2015-08-02T05:36:11.000Z
oscar/apps/customer/mixins.py
elliotthill/django-oscar
5a71a1f896f2c14f8ed3e68535a36b26118a65c5
[ "BSD-3-Clause" ]
null
null
null
oscar/apps/customer/mixins.py
elliotthill/django-oscar
5a71a1f896f2c14f8ed3e68535a36b26118a65c5
[ "BSD-3-Clause" ]
null
null
null
from django.conf import settings from django.contrib.auth import authenticate, login as auth_login from django.contrib.sites.models import get_current_site from django.db.models import get_model from oscar.apps.customer.signals import user_registered from oscar.core.loading import get_class from oscar.core.compat impor...
34.848101
79
0.670904
2,257
0.819833
0
0
0
0
0
0
856
0.310934
60522d3489fa0c5b3c558dbb7d715900c3bb9392
2,421
py
Python
plot_integral.py
vfloeser/TumorDelivery
a48252c17b50397b1f51be21c0cf65ade87e9000
[ "Apache-2.0" ]
null
null
null
plot_integral.py
vfloeser/TumorDelivery
a48252c17b50397b1f51be21c0cf65ade87e9000
[ "Apache-2.0" ]
null
null
null
plot_integral.py
vfloeser/TumorDelivery
a48252c17b50397b1f51be21c0cf65ade87e9000
[ "Apache-2.0" ]
null
null
null
from parameters import * from library_time import * from paths import * import numpy as np import pylab as plt import matplotlib.pyplot as mplt mplt.rc('text', usetex=True) mplt.rcParams.update({'font.size': 16}) import logging, getopt, sys import time import os #####################################################...
33.164384
90
0.467575
0
0
0
0
0
0
0
0
1,029
0.425031
605343dd026fb3e41372878d610c32ec85aeb812
1,196
py
Python
tests/unit/combiner/Try.py
wangjeaf/CSSCheckStyle
d1b1ed89c61ca80d65f398ec4a07d73789197b04
[ "BSD-3-Clause" ]
21
2015-04-27T14:54:45.000Z
2021-11-08T09:12:08.000Z
tests/unit/combiner/Try.py
wangjeaf/CSSCheckStyle
d1b1ed89c61ca80d65f398ec4a07d73789197b04
[ "BSD-3-Clause" ]
null
null
null
tests/unit/combiner/Try.py
wangjeaf/CSSCheckStyle
d1b1ed89c61ca80d65f398ec4a07d73789197b04
[ "BSD-3-Clause" ]
6
2015-03-02T08:08:59.000Z
2016-03-16T14:52:38.000Z
from helper import * def doTest(): msg = doCssFileCompress('_test.css') equal(msg, '@import (url-here);.test,.test2,.test3,.test4,.test5{_width:100px;*height:100px}.test6{display:none;_width:100px;*height:100px}', 'totally compressed') msg = doCssFileCompress('_test_different_order.css') equal(msg, '....
56.952381
172
0.723244
0
0
0
0
0
0
0
0
861
0.7199
60535516e66bf2f9d907ac1cbd0eeb26881ca2c7
2,728
py
Python
tests/tests.py
desdelgado/rheology-data-toolkit
054b1659c914b8eed86239d27a746e26404395ec
[ "MIT" ]
null
null
null
tests/tests.py
desdelgado/rheology-data-toolkit
054b1659c914b8eed86239d27a746e26404395ec
[ "MIT" ]
18
2020-04-10T15:06:50.000Z
2020-06-23T20:57:49.000Z
tests/tests.py
desdelgado/rheology-data-toolkit
054b1659c914b8eed86239d27a746e26404395ec
[ "MIT" ]
null
null
null
import sys, os sys.path.append("C:/Users/Delgado/Documents/Research/rheology-data-toolkit/rheodata/extractors") import h5py import pandas as pd from antonpaar import AntonPaarExtractor as APE from ARES_G2 import ARES_G2Extractor # %% sys.path.append("C:/Users/Delgado/Documents/Research/rheology-data-toolkit/rheodata"...
36.373333
189
0.712243
2,236
0.819648
0
0
0
0
0
0
726
0.266129
6053b76dec55ceda546ea38cd4b295199bfedd36
382
py
Python
openslides_backend/action/topic/delete.py
reiterl/openslides-backend
d36667f00087ae8baf25853d4cef18a5e6dc7b3b
[ "MIT" ]
null
null
null
openslides_backend/action/topic/delete.py
reiterl/openslides-backend
d36667f00087ae8baf25853d4cef18a5e6dc7b3b
[ "MIT" ]
null
null
null
openslides_backend/action/topic/delete.py
reiterl/openslides-backend
d36667f00087ae8baf25853d4cef18a5e6dc7b3b
[ "MIT" ]
null
null
null
from ...models.models import Topic from ..default_schema import DefaultSchema from ..generics import DeleteAction from ..register import register_action @register_action("topic.delete") class TopicDelete(DeleteAction): """ Action to delete simple topics that can be shown in the agenda. """ model = To...
25.466667
67
0.740838
193
0.505236
0
0
226
0.591623
0
0
93
0.243455
605585efa2db2b321777e037a609b7a6f87c04a9
686
py
Python
main.py
Dr3xler/CookieConsentChecker
816cdfb9d9dc741c57dbcd5e9c9ef59837196631
[ "MIT" ]
null
null
null
main.py
Dr3xler/CookieConsentChecker
816cdfb9d9dc741c57dbcd5e9c9ef59837196631
[ "MIT" ]
3
2021-04-29T22:57:09.000Z
2021-05-03T15:32:39.000Z
main.py
Dr3xler/CookieConsentChecker
816cdfb9d9dc741c57dbcd5e9c9ef59837196631
[ "MIT" ]
1
2021-08-29T09:53:09.000Z
2021-08-29T09:53:09.000Z
from core import file_handling as file_h, driver_handling as driver_h from website_handling import website_check as wc from cookie_handling import cookie_compare websites = file_h.website_reader() driver = driver_h.webdriver_setup() try: wc.load_with_addon(driver, websites) except: print('ERROR: IN FIREFO...
20.176471
73
0.781341
0
0
0
0
0
0
0
0
145
0.21137
60558cb725da5275f2069f7bb3c1bb96b154754f
4,788
py
Python
PyPBEC/OpticalMedium.py
photonbec/PyPBEC
fd68fa3e6206671e731bc0c2973af1f67d704f05
[ "MIT" ]
1
2020-09-07T10:21:52.000Z
2020-09-07T10:21:52.000Z
PyPBEC/OpticalMedium.py
photonbec/PyPBEC
fd68fa3e6206671e731bc0c2973af1f67d704f05
[ "MIT" ]
null
null
null
PyPBEC/OpticalMedium.py
photonbec/PyPBEC
fd68fa3e6206671e731bc0c2973af1f67d704f05
[ "MIT" ]
1
2022-02-04T00:00:59.000Z
2022-02-04T00:00:59.000Z
import numpy as np from scipy import constants as sc from scipy.interpolate import interp1d from pathlib import Path from scipy.special import erf as Erf import pandas as pd import sys import os import csv class OpticalMedium(): available_media = list() available_media.append("Rhodamine6G") def __init__(self, opt...
38.304
154
0.746658
4,576
0.955723
0
0
0
0
0
0
1,254
0.261905
60563aa2ef81de63dbaea0f3ad170ec8ec84759d
1,251
py
Python
corehq/apps/appstore/urls.py
dslowikowski/commcare-hq
ad8885cf8dab69dc85cb64f37aeaf06106124797
[ "BSD-3-Clause" ]
1
2015-02-10T23:26:39.000Z
2015-02-10T23:26:39.000Z
corehq/apps/appstore/urls.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/appstore/urls.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
null
null
null
from django.conf.urls.defaults import url, include, patterns from corehq.apps.appstore.dispatcher import AppstoreDispatcher store_urls = patterns('corehq.apps.appstore.views', url(r'^$', 'appstore_default', name="appstore_interfaces_default"), AppstoreDispatcher.url_pattern(), ) urlpatterns = patterns('corehq...
46.333333
96
0.657074
0
0
0
0
0
0
0
0
758
0.605915
6057750dc6cf45d0cc166a95aaf751e85207651a
2,667
py
Python
faster-rcnn-vgg16-fpn/model/fpn.py
fengkaibit/faster-rcnn_vgg16_fpn
354efd4b5f4d4a42e9c92f48501e02cd7f0c0cdb
[ "MIT" ]
13
2019-05-21T13:19:56.000Z
2022-02-27T14:36:43.000Z
faster-rcnn-vgg16-fpn/model/fpn.py
fengkaibit/faster-rcnn_vgg16_fpn
354efd4b5f4d4a42e9c92f48501e02cd7f0c0cdb
[ "MIT" ]
2
2019-06-27T07:02:33.000Z
2021-06-30T15:51:12.000Z
faster-rcnn-vgg16-fpn/model/fpn.py
fengkaibit/faster-rcnn_vgg16_fpn
354efd4b5f4d4a42e9c92f48501e02cd7f0c0cdb
[ "MIT" ]
4
2019-05-21T13:19:56.000Z
2021-06-29T01:10:31.000Z
from __future__ import absolute_import import torch from torch.nn import functional class FPN(torch.nn.Module): def __init__(self, out_channels): super(FPN, self).__init__() self.out_channels = out_channels self.P5 = torch.nn.MaxPool2d(kernel_size=1, stride=2, padding=0) self.P4_c...
37.041667
99
0.640045
2,236
0.838395
0
0
0
0
0
0
773
0.289839
6057d15e673e5e8174ccbf2844dfdc2c7b7a4b7d
2,314
py
Python
test/setups/finders/finders_test.py
bowlofstew/client
0d5ae42aaf9863e3871828b6df06170aad17c560
[ "MIT" ]
40
2015-04-15T09:40:23.000Z
2022-02-11T11:07:24.000Z
test/setups/finders/finders_test.py
bowlofstew/client
0d5ae42aaf9863e3871828b6df06170aad17c560
[ "MIT" ]
19
2015-04-15T18:34:53.000Z
2018-11-17T00:11:05.000Z
test/setups/finders/finders_test.py
bowlofstew/client
0d5ae42aaf9863e3871828b6df06170aad17c560
[ "MIT" ]
22
2015-04-15T09:45:46.000Z
2020-09-29T17:04:19.000Z
import unittest from biicode.common.settings.version import Version from mock import patch from biicode.client.setups.finders.finders import gnu_version from biicode.client.setups.rpi_cross_compiler import find_gnu_arm from biicode.client.workspace.bii_paths import get_biicode_env_folder_path GCC_VERSION_MAC = '''Con...
44.5
139
0.709594
1,241
0.536301
0
0
1,192
0.515125
0
0
968
0.418323
60582c7b916077e6db28ad364408137dc3ff3825
784
py
Python
setup.py
mintmachine/arweave-python-client
69e8e2d32090de5fd276efdb9b9103d91b4182f6
[ "MIT" ]
63
2020-01-22T23:43:53.000Z
2022-03-24T23:18:13.000Z
setup.py
mintmachine/arweave-python-client
69e8e2d32090de5fd276efdb9b9103d91b4182f6
[ "MIT" ]
17
2020-01-22T23:41:07.000Z
2022-01-04T11:43:30.000Z
setup.py
mintmachine/arweave-python-client
69e8e2d32090de5fd276efdb9b9103d91b4182f6
[ "MIT" ]
25
2020-08-12T05:00:25.000Z
2022-03-31T01:43:25.000Z
from distutils.core import setup setup( name="arweave-python-client", packages = ['arweave'], # this must be the same as the name above version="1.0.15.dev0", description="Client interface for sending transactions on the Arweave permaweb", author="Mike Hibbert", author_email="mike@hibbertitsolutions.co.uk"...
28
82
0.678571
0
0
0
0
0
0
0
0
510
0.65051
605951901688fbda8e99d2e5f2796e9b32eff1fe
18,195
py
Python
exchange_calendars/extensions/exchange_calendar_krx.py
syonoki/exchange_calendars
639ab0f88a874af99bb601824a8ffef2572820d4
[ "Apache-2.0" ]
null
null
null
exchange_calendars/extensions/exchange_calendar_krx.py
syonoki/exchange_calendars
639ab0f88a874af99bb601824a8ffef2572820d4
[ "Apache-2.0" ]
null
null
null
exchange_calendars/extensions/exchange_calendar_krx.py
syonoki/exchange_calendars
639ab0f88a874af99bb601824a8ffef2572820d4
[ "Apache-2.0" ]
null
null
null
""" Last update: 2018-10-26 """ from exchange_calendars.extensions.calendar_extension import ExtendedExchangeCalendar from pandas import ( Timestamp, ) from pandas.tseries.holiday import ( Holiday, previous_friday, ) from exchange_calendars.exchange_calendar import HolidayCalendar from datetime import tim...
28.474178
85
0.580599
2,032
0.11085
0
0
1,644
0.089684
0
0
7,018
0.382849
605a9a49370c1c190ccbd51f63a583f9a84128cd
5,152
py
Python
utilities.py
ameldocena/StratifiedAggregation
0031fea120bff00c739eb6c3d654a5c6d3f094bb
[ "MIT" ]
null
null
null
utilities.py
ameldocena/StratifiedAggregation
0031fea120bff00c739eb6c3d654a5c6d3f094bb
[ "MIT" ]
null
null
null
utilities.py
ameldocena/StratifiedAggregation
0031fea120bff00c739eb6c3d654a5c6d3f094bb
[ "MIT" ]
null
null
null
import random import numpy #import tensorflow as tf #import torch from abc import abstractmethod from sklearn.decomposition import PCA from aggregators import FedAvg, MultiKrum, AlignedAvg, TrimmedMean, Median, StratifiedAggr class SelectionStrategy: # Unchanged from original work @abstractmethod def select_ro...
39.030303
147
0.695652
815
0.158191
0
0
358
0.069488
0
0
2,520
0.48913
605ad59a9efe4d2c5632efa0fb33e3ddefc540bb
1,301
py
Python
game/player.py
b1naryth1ef/mmo
400f66b0ac76896af2d7108ff3540c42614a32f0
[ "BSD-2-Clause" ]
7
2015-09-29T13:32:36.000Z
2021-06-22T19:24:01.000Z
game/player.py
b1naryth1ef/mmo
400f66b0ac76896af2d7108ff3540c42614a32f0
[ "BSD-2-Clause" ]
null
null
null
game/player.py
b1naryth1ef/mmo
400f66b0ac76896af2d7108ff3540c42614a32f0
[ "BSD-2-Clause" ]
1
2019-03-03T23:24:28.000Z
2019-03-03T23:24:28.000Z
from sprites import PlayerSprite import time class Player(object): def __init__(self, name, game): self.name = name self.pos = [50, 50] self.do_blit = False self.game = game self.surf = game.SCREEN self.lastMove = 99999999999 self.velo_def = [0, 0] ...
30.255814
75
0.544965
1,255
0.964643
0
0
0
0
0
0
98
0.075327
605b1532a73c491b1c591dcd0c51687f13109748
1,019
py
Python
toys/layers/pool.py
cbarrick/toys
0368036ddb7594c0b6e7cdc704aeec918786e58a
[ "MIT" ]
1
2018-04-28T18:29:37.000Z
2018-04-28T18:29:37.000Z
toys/layers/pool.py
cbarrick/csb
0368036ddb7594c0b6e7cdc704aeec918786e58a
[ "MIT" ]
null
null
null
toys/layers/pool.py
cbarrick/csb
0368036ddb7594c0b6e7cdc704aeec918786e58a
[ "MIT" ]
null
null
null
from typing import Sequence import torch from torch import nn class MaxPool2d(nn.Module): def __init__(self, kernel_size, **kwargs): super().__init__() stride = kwargs.setdefault('stride', kernel_size) padding = kwargs.setdefault('padding', 0) dilation = kwargs.setdefault('dilatio...
33.966667
67
0.62316
953
0.935231
0
0
0
0
0
0
78
0.076546
605c46e1dca45ffe66a05a4a91174510b5abbb04
433
py
Python
src/forecastmgmt/ui/masterdata/person_window.py
vvladych/forecastmgmt
9eea272d00bb42031f49b5bb5af01388ecce31cf
[ "Unlicense" ]
null
null
null
src/forecastmgmt/ui/masterdata/person_window.py
vvladych/forecastmgmt
9eea272d00bb42031f49b5bb5af01388ecce31cf
[ "Unlicense" ]
37
2015-07-01T22:18:51.000Z
2016-03-11T21:17:12.000Z
src/forecastmgmt/ui/masterdata/person_window.py
vvladych/forecastmgmt
9eea272d00bb42031f49b5bb5af01388ecce31cf
[ "Unlicense" ]
null
null
null
from gi.repository import Gtk from masterdata_abstract_window import MasterdataAbstractWindow from person_add_mask import PersonAddMask from person_list_mask import PersonListMask class PersonWindow(MasterdataAbstractWindow): def __init__(self, main_window): super(PersonWindow, self).__init__(main_windo...
25.470588
124
0.757506
208
0.48037
0
0
0
0
0
0
0
0
605ed3488c51cb7e0a5749161c5e9f3896da6586
1,792
py
Python
fastseg/model/utils.py
SeockHwa/Segmentation_mobileV3
01d90eeb32232346b8ed071eaf5d03322049be11
[ "MIT" ]
274
2020-08-12T00:29:30.000Z
2022-03-29T18:24:40.000Z
fastseg/model/utils.py
dcmartin/fastseg
c30759e07a52c7370eda11a93396c79f2b141778
[ "MIT" ]
10
2020-08-13T06:15:14.000Z
2021-03-30T16:12:31.000Z
fastseg/model/utils.py
dcmartin/fastseg
c30759e07a52c7370eda11a93396c79f2b141778
[ "MIT" ]
27
2020-08-12T00:29:21.000Z
2021-12-09T02:32:36.000Z
import torch.nn as nn from .efficientnet import EfficientNet_B4, EfficientNet_B0 from .mobilenetv3 import MobileNetV3_Large, MobileNetV3_Small def get_trunk(trunk_name): """Retrieve the pretrained network trunk and channel counts""" if trunk_name == 'efficientnet_b4': backbone = EfficientNet_B4(pretra...
35.137255
84
0.651786
777
0.433594
0
0
0
0
0
0
369
0.205915
6063184472ef835deb60c56bca4bcbb89e09d477
136
py
Python
python/testData/inspections/PyTypeCheckerInspection/ModuleTypeParameter/a.py
06needhamt/intellij-community
63d7b8030e4fdefeb4760e511e289f7e6b3a5c5b
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/inspections/PyTypeCheckerInspection/ModuleTypeParameter/a.py
06needhamt/intellij-community
63d7b8030e4fdefeb4760e511e289f7e6b3a5c5b
[ "Apache-2.0" ]
null
null
null
python/testData/inspections/PyTypeCheckerInspection/ModuleTypeParameter/a.py
06needhamt/intellij-community
63d7b8030e4fdefeb4760e511e289f7e6b3a5c5b
[ "Apache-2.0" ]
null
null
null
import module from types import ModuleType def foo(m: ModuleType): pass def bar(m): return m.__name__ foo(module) bar(module)
12.363636
28
0.720588
0
0
0
0
0
0
0
0
0
0
60634a727fe7a278b36493fb58ad20aeb22882f6
2,151
py
Python
tests/webapp/test_webapp_actions.py
proofdock/chaos-azure
85302f8be18153862656c587988eafb5dd37ddf7
[ "Apache-2.0" ]
1
2021-04-24T20:01:54.000Z
2021-04-24T20:01:54.000Z
tests/webapp/test_webapp_actions.py
proofdock/chaos-azure
85302f8be18153862656c587988eafb5dd37ddf7
[ "Apache-2.0" ]
23
2020-05-22T06:43:14.000Z
2021-02-25T21:02:28.000Z
tests/webapp/test_webapp_actions.py
proofdock/chaos-azure
85302f8be18153862656c587988eafb5dd37ddf7
[ "Apache-2.0" ]
null
null
null
from unittest.mock import patch, MagicMock from pdchaosazure.webapp.actions import stop, restart, delete from tests.data import config_provider, secrets_provider, webapp_provider @patch('pdchaosazure.webapp.actions.fetch_webapps', autospec=True) @patch('pdchaosazure.webapp.actions.client.init', autospec=True) def te...
34.693548
87
0.755927
0
0
0
0
1,962
0.912134
0
0
396
0.1841
6063f7fd8de4dfb10486579a5850fc07ac1891ee
102
py
Python
utils.py
lbesnard/subimporter
66affbca2acdb3c25e70dac23290b5e7b956c2d7
[ "MIT" ]
null
null
null
utils.py
lbesnard/subimporter
66affbca2acdb3c25e70dac23290b5e7b956c2d7
[ "MIT" ]
1
2021-05-05T02:06:23.000Z
2021-05-06T00:42:53.000Z
utils.py
lbesnard/subimporter
66affbca2acdb3c25e70dac23290b5e7b956c2d7
[ "MIT" ]
1
2021-05-05T01:56:07.000Z
2021-05-05T01:56:07.000Z
def stringifySong(song): return f"<'{song['title']}' by '{song['artist']}' in '{song['album']}'>"
34
76
0.578431
0
0
0
0
0
0
0
0
65
0.637255
606417a48449b07f2cec077fb5c3441648a8cb09
30,091
py
Python
echopype/model/modelbase.py
leewujung/echopype-lfs-test
b76dcf42631d0ac9cef0efeced9be4afdc15e659
[ "Apache-2.0" ]
null
null
null
echopype/model/modelbase.py
leewujung/echopype-lfs-test
b76dcf42631d0ac9cef0efeced9be4afdc15e659
[ "Apache-2.0" ]
null
null
null
echopype/model/modelbase.py
leewujung/echopype-lfs-test
b76dcf42631d0ac9cef0efeced9be4afdc15e659
[ "Apache-2.0" ]
null
null
null
""" echopype data model that keeps tracks of echo data and its connection to data files. """ import os import warnings import datetime as dt from echopype.utils import uwa import numpy as np import xarray as xr class ModelBase(object): """Class for manipulating echo data that is already converted to netCDF.""" ...
47.763492
123
0.618557
29,875
0.992822
0
0
5,099
0.169453
0
0
13,223
0.439434
60648a56773ceecb201aec8a10a45d6b2f493b08
2,755
py
Python
Python/face_detect_camera/managers.py
abondar24/OpenCVBase
9b23e3b31304e77ad1135d90efb41e3dc069194a
[ "Apache-2.0" ]
null
null
null
Python/face_detect_camera/managers.py
abondar24/OpenCVBase
9b23e3b31304e77ad1135d90efb41e3dc069194a
[ "Apache-2.0" ]
null
null
null
Python/face_detect_camera/managers.py
abondar24/OpenCVBase
9b23e3b31304e77ad1135d90efb41e3dc069194a
[ "Apache-2.0" ]
null
null
null
import cv2 import numpy as np import time class CaptureManager(object): def __init__(self, capture, preview_window_manager=None, should_mirror_preview = False): self.preview_window_manager = preview_window_manager self.should_mirror_preview = should_mirror_preview self._capture = capture...
28.697917
93
0.642468
2,706
0.982214
0
0
396
0.143739
0
0
182
0.066062
6064dc0f50d6a2d8e20ae50d87b6b6f9606110f6
6,937
py
Python
ELLA/ELLA.py
micaelverissimo/lifelong_ringer
d2e7173ce08d1c087e811f6451cae1cb0e381076
[ "MIT" ]
null
null
null
ELLA/ELLA.py
micaelverissimo/lifelong_ringer
d2e7173ce08d1c087e811f6451cae1cb0e381076
[ "MIT" ]
null
null
null
ELLA/ELLA.py
micaelverissimo/lifelong_ringer
d2e7173ce08d1c087e811f6451cae1cb0e381076
[ "MIT" ]
null
null
null
""" Alpha version of a version of ELLA that plays nicely with sklearn @author: Paul Ruvolo """ from math import log import numpy as np from scipy.special import logsumexp from scipy.linalg import sqrtm, inv, norm from sklearn.linear_model import LinearRegression, Ridge, LogisticRegression, Lasso import matplotlib.pyp...
49.198582
119
0.618135
6,535
0.94205
0
0
0
0
0
0
2,814
0.405651
60652bf0a5fb58eb37f612eac700378eff72f02f
1,970
py
Python
webhook/utils.py
Myst1c-a/phen-cogs
672f9022ddbbd9a84b0a05357347e99e64a776fc
[ "MIT" ]
null
null
null
webhook/utils.py
Myst1c-a/phen-cogs
672f9022ddbbd9a84b0a05357347e99e64a776fc
[ "MIT" ]
null
null
null
webhook/utils.py
Myst1c-a/phen-cogs
672f9022ddbbd9a84b0a05357347e99e64a776fc
[ "MIT" ]
null
null
null
""" MIT License Copyright (c) 2020-present phenom4n4n 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, pub...
35.818182
96
0.740102
103
0.052284
0
0
0
0
510
0.258883
1,222
0.620305
606613f1ae0ac5127e78b4dfa447fad203daeafe
6,736
py
Python
scripts/generate.py
jwise/pebble-caltrain
770497cb38205827fee2e4e4cfdd79bcf60ceb65
[ "MIT" ]
1
2019-06-18T01:17:25.000Z
2019-06-18T01:17:25.000Z
scripts/generate.py
jwise/pebble-caltrain
770497cb38205827fee2e4e4cfdd79bcf60ceb65
[ "MIT" ]
null
null
null
scripts/generate.py
jwise/pebble-caltrain
770497cb38205827fee2e4e4cfdd79bcf60ceb65
[ "MIT" ]
null
null
null
__author__ = 'katharine' import csv import struct import time import datetime def generate_files(source_dir, target_dir): stops_txt = [x for x in csv.DictReader(open("%s/stops.txt" % source_dir, 'rb')) if x['location_type'] == '0'] print "%d stops" % len(stops_txt) name_replacements = ( ('Caltra...
36.215054
138
0.532512
0
0
0
0
0
0
0
0
1,689
0.250742
606629e6c71087f04da2a0bec8e5f2d2e0b13de3
3,218
py
Python
tests/test_is_valid_php_version_file_version.py
gerardroche/sublime-phpunit
73e96ec5e4ac573c5d5247cf87c38e8243da906b
[ "BSD-3-Clause" ]
85
2015-02-18T00:05:54.000Z
2022-01-01T12:20:22.000Z
tests/test_is_valid_php_version_file_version.py
gerardroche/sublime-phpunit
73e96ec5e4ac573c5d5247cf87c38e8243da906b
[ "BSD-3-Clause" ]
98
2015-01-07T22:23:48.000Z
2021-06-03T19:37:50.000Z
tests/test_is_valid_php_version_file_version.py
gerardroche/sublime-phpunit
73e96ec5e4ac573c5d5247cf87c38e8243da906b
[ "BSD-3-Clause" ]
21
2015-08-12T01:02:17.000Z
2021-09-12T09:16:39.000Z
from PHPUnitKit.tests import unittest from PHPUnitKit.plugin import is_valid_php_version_file_version class TestIsValidPhpVersionFileVersion(unittest.TestCase): def test_invalid_values(self): self.assertFalse(is_valid_php_version_file_version('')) self.assertFalse(is_valid_php_version_file_versi...
52.754098
75
0.757613
3,112
0.96706
0
0
0
0
0
0
310
0.096333
6066634d419973bf2d50293d1e8b24d66fea6c84
3,554
py
Python
feed/tests/test_consts.py
cul-it/arxiv-rss
40c0e859528119cc8ba3700312cb8df095d95cdd
[ "MIT" ]
4
2020-06-29T15:05:37.000Z
2022-02-02T10:28:28.000Z
feed/tests/test_consts.py
arXiv/arxiv-feed
82923d062e2524df94c22490cf936a988559ce66
[ "MIT" ]
12
2020-03-06T16:45:00.000Z
2022-03-02T15:36:14.000Z
feed/tests/test_consts.py
cul-it/arxiv-rss
40c0e859528119cc8ba3700312cb8df095d95cdd
[ "MIT" ]
2
2020-12-06T16:30:06.000Z
2021-11-05T12:29:08.000Z
import pytest from feed.consts import FeedVersion from feed.utils import randomize_case from feed.errors import FeedVersionError # FeedVersion.supported def test_feed_version_supported(): assert FeedVersion.supported() == { FeedVersion.RSS_2_0, FeedVersion.ATOM_1_0, } # FeedVersion.get ...
27.765625
69
0.652786
0
0
0
0
0
0
0
0
460
0.129432
6066c37cd5157dfddcd5a311c42cacbf5b1656ab
203
py
Python
cmsplugin_cascade/migrations/0007_add_proxy_models.py
teklager/djangocms-cascade
adc461f7054c6c0f88bc732aefd03b157df2f514
[ "MIT" ]
139
2015-01-08T22:27:06.000Z
2021-08-19T03:36:58.000Z
cmsplugin_cascade/migrations/0007_add_proxy_models.py
teklager/djangocms-cascade
adc461f7054c6c0f88bc732aefd03b157df2f514
[ "MIT" ]
286
2015-01-02T14:15:14.000Z
2022-03-22T11:00:12.000Z
cmsplugin_cascade/migrations/0007_add_proxy_models.py
teklager/djangocms-cascade
adc461f7054c6c0f88bc732aefd03b157df2f514
[ "MIT" ]
91
2015-01-16T15:06:23.000Z
2022-03-23T23:36:54.000Z
from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('cmsplugin_cascade', '0006_bootstrapgallerypluginmodel'), ] operations = [ ]
16.916667
66
0.679803
159
0.783251
0
0
0
0
0
0
53
0.261084
60685790ed05ececd1e05f44f06a9d6c6808d671
1,380
py
Python
theonionbox/tob/credits.py
ralphwetzel/theonionbox
9812fce48153955e179755ea7a58413c3bee182f
[ "MIT" ]
120
2015-12-30T09:41:56.000Z
2022-03-23T02:30:05.000Z
theonionbox/tob/credits.py
nwithan8/theonionbox
9e51fe0b4d07fc89a8a133fdeceb5f97d5d58713
[ "MIT" ]
57
2015-12-29T21:55:14.000Z
2022-01-07T09:48:51.000Z
theonionbox/tob/credits.py
nwithan8/theonionbox
9e51fe0b4d07fc89a8a133fdeceb5f97d5d58713
[ "MIT" ]
17
2018-02-05T08:57:46.000Z
2022-02-28T16:44:41.000Z
Credits = [ ('Bootstrap', 'https://getbootstrap.com', 'The Bootstrap team', 'MIT'), ('Bottle', 'http://bottlepy.org', 'Marcel Hellkamp', 'MIT'), ('Cheroot', 'https://github.com/cherrypy/cheroot', 'CherryPy Team', 'BSD 3-Clause "New" or "Revised" License'), ('Click', 'https://github.com/pallets/click', '...
69
118
0.647101
0
0
0
0
0
0
0
0
1,151
0.834058
606899616433fe3e3273bc5fab025d75f1c9d731
3,953
py
Python
turorials/Google/projects/01_02_TextClassification/01_02_main.py
Ubpa/LearnTF
2c9f5d790a9911a860da1e0db4c7bb56a9eee5cb
[ "MIT" ]
null
null
null
turorials/Google/projects/01_02_TextClassification/01_02_main.py
Ubpa/LearnTF
2c9f5d790a9911a860da1e0db4c7bb56a9eee5cb
[ "MIT" ]
null
null
null
turorials/Google/projects/01_02_TextClassification/01_02_main.py
Ubpa/LearnTF
2c9f5d790a9911a860da1e0db4c7bb56a9eee5cb
[ "MIT" ]
null
null
null
#---------------- # 01_02 文本分类 #---------------- # TensorFlow and tf.keras import tensorflow as tf from tensorflow import keras # Helper libraries import numpy as np import matplotlib.pyplot as plt # TensorFlow's version : 1.12.0 print('TensorFlow\'s version : ', tf.__version__) #---------------- # 1 下载 IMDB 数据集 #-...
24.251534
86
0.583607
0
0
0
0
0
0
0
0
1,305
0.322143
6068adea6b26bf93c6fc76af394fa54701dacddb
6,134
py
Python
backend/api/urls.py
12xiaoni/text-label
7456c5e73d32bcfc81a02be7e0d748f162934d35
[ "MIT" ]
null
null
null
backend/api/urls.py
12xiaoni/text-label
7456c5e73d32bcfc81a02be7e0d748f162934d35
[ "MIT" ]
null
null
null
backend/api/urls.py
12xiaoni/text-label
7456c5e73d32bcfc81a02be7e0d748f162934d35
[ "MIT" ]
null
null
null
from django.urls import include, path from .views import (annotation, auto_labeling, comment, example, example_state, health, label, project, tag, task) from .views.tasks import category, relation, span, text urlpatterns_project = [ path( route='category-types', view=label.Cate...
28.798122
79
0.616074
0
0
0
0
0
0
0
0
1,936
0.315618
6068f5688ef9ffee1272e2ce66f9f86a9888991e
4,855
py
Python
nwbwidgets/test/test_base.py
d-sot/nwb-jupyter-widgets
f9bf5c036c39f29e26b3cdb78198cccfa1b13cef
[ "BSD-3-Clause-LBNL" ]
null
null
null
nwbwidgets/test/test_base.py
d-sot/nwb-jupyter-widgets
f9bf5c036c39f29e26b3cdb78198cccfa1b13cef
[ "BSD-3-Clause-LBNL" ]
null
null
null
nwbwidgets/test/test_base.py
d-sot/nwb-jupyter-widgets
f9bf5c036c39f29e26b3cdb78198cccfa1b13cef
[ "BSD-3-Clause-LBNL" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import pandas as pd from pynwb import TimeSeries from datetime import datetime from dateutil.tz import tzlocal from pynwb import NWBFile from ipywidgets import widgets from pynwb.core import DynamicTable from pynwb.file import Subject from nwbwidgets.view import defaul...
32.366667
98
0.622039
1,925
0.396498
0
0
0
0
0
0
332
0.068383
606923d815b75242b92321d08cd16583deeb515a
7,987
py
Python
subliminal/video.py
orikad/subliminal
5bd87a505f7a4cad2a3a872128110450c69da4f0
[ "MIT" ]
null
null
null
subliminal/video.py
orikad/subliminal
5bd87a505f7a4cad2a3a872128110450c69da4f0
[ "MIT" ]
null
null
null
subliminal/video.py
orikad/subliminal
5bd87a505f7a4cad2a3a872128110450c69da4f0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import division from datetime import datetime, timedelta import logging import os from guessit import guessit logger = logging.getLogger(__name__) #: Video extensions VIDEO_EXTENSIONS = ('.3g2', '.3gp', '.3gp2', '.3gpp', '.60d', '.ajp', '.asf', '.asx', '.avchd', '.avi', '.bik'...
35.497778
116
0.597471
6,983
0.874296
0
0
2,732
0.342056
0
0
3,571
0.447102
6069d2236a48fbb04ece52eba51a580571ed12ab
2,756
py
Python
backend/app/migrations/0001_initial.py
juniorosorio47/client-order
ec429436d822d07d0ec1e0be0c2615087eec6e65
[ "MIT" ]
null
null
null
backend/app/migrations/0001_initial.py
juniorosorio47/client-order
ec429436d822d07d0ec1e0be0c2615087eec6e65
[ "MIT" ]
null
null
null
backend/app/migrations/0001_initial.py
juniorosorio47/client-order
ec429436d822d07d0ec1e0be0c2615087eec6e65
[ "MIT" ]
null
null
null
# Generated by Django 3.2.7 on 2021-10-18 23:21 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
41.757576
142
0.588534
2,597
0.942308
0
0
0
0
0
0
335
0.121553
606baf8442117d47dded1db451079748f48b00b6
4,291
py
Python
nemo/collections/nlp/models/machine_translation/mt_enc_dec_config.py
vadam5/NeMo
3c5db09539293c3c19a6bb7437011f91261119af
[ "Apache-2.0" ]
1
2021-04-13T20:34:16.000Z
2021-04-13T20:34:16.000Z
nemo/collections/nlp/models/machine_translation/mt_enc_dec_config.py
vadam5/NeMo
3c5db09539293c3c19a6bb7437011f91261119af
[ "Apache-2.0" ]
null
null
null
nemo/collections/nlp/models/machine_translation/mt_enc_dec_config.py
vadam5/NeMo
3c5db09539293c3c19a6bb7437011f91261119af
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020, 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
32.022388
110
0.718714
2,831
0.659753
0
0
2,875
0.670007
0
0
915
0.213237
606d3133565f3d0c7f55e0387f7f06dca6adb6f2
7,097
py
Python
shadowsocksr_cli/main.py
MaxSherry/ssr-command-client
e52ea0a74e2a1bbdd7e816e0e2670d66ebdbf159
[ "MIT" ]
null
null
null
shadowsocksr_cli/main.py
MaxSherry/ssr-command-client
e52ea0a74e2a1bbdd7e816e0e2670d66ebdbf159
[ "MIT" ]
null
null
null
shadowsocksr_cli/main.py
MaxSherry/ssr-command-client
e52ea0a74e2a1bbdd7e816e0e2670d66ebdbf159
[ "MIT" ]
null
null
null
""" @author: tyrantlucifer @contact: tyrantlucifer@gmail.com @blog: https://tyrantlucifer.com @file: main.py @time: 2021/2/18 21:36 @desc: shadowsocksr-cli入口函数 """ import argparse import traceback from shadowsocksr_cli.functions import * def get_parser(): parser = argparse.ArgumentParser(description=color.blue(...
52.962687
118
0.683106
0
0
0
0
0
0
0
0
2,102
0.295848
606d8521b79694dc8353d8aa111b68f4f20bff71
9,321
py
Python
examples/Python 2.7/Client_Complete.py
jcjveraa/EDDN
d0cbae6b7a2cac180dd414cbc324c2d84c867cd8
[ "BSD-3-Clause" ]
100
2017-07-19T10:11:04.000Z
2020-07-05T22:07:39.000Z
examples/Python 2.7/Client_Complete.py
Assasinnys/EDDN
f03a0857cf4a2b95903d332697b07cc055c6cee7
[ "BSD-3-Clause" ]
61
2020-09-28T19:05:10.000Z
2022-03-22T09:16:08.000Z
examples/Python 2.7/Client_Complete.py
Assasinnys/EDDN
f03a0857cf4a2b95903d332697b07cc055c6cee7
[ "BSD-3-Clause" ]
28
2020-07-19T22:37:44.000Z
2022-03-22T09:01:39.000Z
import zlib import zmq import simplejson import sys, os, datetime, time """ " Configuration """ __relayEDDN = 'tcp://eddn.edcd.io:9500' #__timeoutEDDN = 600000 # 10 minuts __timeoutEDDN = 60000 # 1 minut # Set False to listen to production stream; True to listen to debug stream __deb...
40.526087
161
0.466259
0
0
0
0
0
0
0
0
2,667
0.286128
606de86a65d9bb68c662f132a9f86b56feda8791
672
py
Python
zad1.py
nadkkka/H8PW
21b5d28bb42af163e7dad43368d21b550ae66618
[ "MIT" ]
6
2019-10-20T18:25:28.000Z
2019-11-17T12:21:42.000Z
zad1.py
nadkkka/H8PW
21b5d28bb42af163e7dad43368d21b550ae66618
[ "MIT" ]
null
null
null
zad1.py
nadkkka/H8PW
21b5d28bb42af163e7dad43368d21b550ae66618
[ "MIT" ]
4
2019-10-20T18:25:28.000Z
2019-11-30T19:33:47.000Z
def repleace_pattern(t,s,r): assert len(t) > 0 assert len(s) > 0 assert len(r) > 0 assert len(t) >= len(s) n = len(t) m = len(s) k = len(r) idx = -1 for i in range(0, n): if t[i] == s[0]: pattern = True for j in range(1,m): ...
18.162162
58
0.383929
0
0
0
0
0
0
0
0
0
0
606dfbab5706a842277bbd2a3b9198129d579201
2,249
py
Python
mycroft/client/enclosure/weather.py
Matjordan/mycroft-core
8b64930f3b3dae671535fc3b096ce9d846c54f6d
[ "Apache-2.0" ]
null
null
null
mycroft/client/enclosure/weather.py
Matjordan/mycroft-core
8b64930f3b3dae671535fc3b096ce9d846c54f6d
[ "Apache-2.0" ]
null
null
null
mycroft/client/enclosure/weather.py
Matjordan/mycroft-core
8b64930f3b3dae671535fc3b096ce9d846c54f6d
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Mycroft AI Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
34.075758
77
0.56514
1,668
0.741663
0
0
0
0
0
0
1,069
0.475322
606fa44df2b3928dca9a1f9a1a195390a91a5ba6
6,698
py
Python
tests/processing_components/test_image_iterators.py
cnwangfeng/algorithm-reference-library
9605eb01652fbfcb9ff003cc12b44c84093b7fb1
[ "Apache-2.0" ]
22
2016-12-14T11:20:07.000Z
2021-08-13T15:23:41.000Z
tests/processing_components/test_image_iterators.py
cnwangfeng/algorithm-reference-library
9605eb01652fbfcb9ff003cc12b44c84093b7fb1
[ "Apache-2.0" ]
30
2017-06-27T09:15:38.000Z
2020-09-11T18:16:37.000Z
tests/processing_components/test_image_iterators.py
cnwangfeng/algorithm-reference-library
9605eb01652fbfcb9ff003cc12b44c84093b7fb1
[ "Apache-2.0" ]
20
2017-07-02T03:45:49.000Z
2019-12-11T17:19:01.000Z
"""Unit tests for image iteration """ import logging import unittest import numpy from data_models.polarisation import PolarisationFrame from processing_components.image.iterators import image_raster_iter, image_channel_iter, image_null_iter from processing_components.image.operations import create_empty_image_li...
49.985075
116
0.591371
6,209
0.926993
0
0
0
0
0
0
616
0.091968
606ffbed507972fed40e1f7c61ad9e16979a735d
1,501
py
Python
a_other_video/MCL-Motion-Focused-Contrastive-Learning/sts/motion_sts.py
alisure-fork/Video-Swin-Transformer
aa0a31bd4df0ad2cebdcfb2ad53df712fce79809
[ "Apache-2.0" ]
null
null
null
a_other_video/MCL-Motion-Focused-Contrastive-Learning/sts/motion_sts.py
alisure-fork/Video-Swin-Transformer
aa0a31bd4df0ad2cebdcfb2ad53df712fce79809
[ "Apache-2.0" ]
null
null
null
a_other_video/MCL-Motion-Focused-Contrastive-Learning/sts/motion_sts.py
alisure-fork/Video-Swin-Transformer
aa0a31bd4df0ad2cebdcfb2ad53df712fce79809
[ "Apache-2.0" ]
null
null
null
import cv2 import numpy as np from scipy import ndimage def compute_motion_boudary(flow_clip): mx = np.array([[-1, 0, 1], [-1, 0, 1], [-1, 0, 1]]) my = np.array([[-1, -1, -1], [0, 0, 0], [1, 1, 1]]) dx_all = [] dy_all = [] mb_x = 0 mb_y = 0 for flow_img in flow_clip: d_x = ndimage...
24.209677
70
0.592938
0
0
0
0
0
0
0
0
0
0
606fff8ef61161b6a42c08c99645ebf6b02a454f
3,618
py
Python
tests/test_button.py
MSLNZ/msl-qt
33abbb4807b54e3a06dbe9c0f9b343802ece9b97
[ "MIT" ]
1
2018-07-14T23:02:24.000Z
2018-07-14T23:02:24.000Z
tests/test_button.py
MSLNZ/msl-qt
33abbb4807b54e3a06dbe9c0f9b343802ece9b97
[ "MIT" ]
1
2019-08-12T04:52:33.000Z
2019-08-21T00:06:59.000Z
tests/test_button.py
MSLNZ/msl-qt
33abbb4807b54e3a06dbe9c0f9b343802ece9b97
[ "MIT" ]
1
2019-08-05T05:22:47.000Z
2019-08-05T05:22:47.000Z
import os import sys import pytest from msl.qt import convert, Button, QtWidgets, QtCore, Qt def test_text(): b = Button(text='hello') assert b.text() == 'hello' assert b.icon().isNull() assert b.toolButtonStyle() == Qt.ToolButtonTextOnly def test_icon(): path = os.path.dirname(__file__) + '/g...
31.46087
93
0.657546
0
0
0
0
0
0
0
0
324
0.089552
60700c79a8bc5322f89b51ceab88a89b92a4de5b
499
py
Python
Exercicios/ex028.py
MateusBarboza99/Python-03-
9c6df88aaa8ba83d385b92722ed1df5873df3a77
[ "MIT" ]
null
null
null
Exercicios/ex028.py
MateusBarboza99/Python-03-
9c6df88aaa8ba83d385b92722ed1df5873df3a77
[ "MIT" ]
null
null
null
Exercicios/ex028.py
MateusBarboza99/Python-03-
9c6df88aaa8ba83d385b92722ed1df5873df3a77
[ "MIT" ]
null
null
null
from random import randint from time import sleep computador = randint(0, 5) # Faz o computador "PENSAR" print('-=-' * 20) print('Vou Pensar em Um Número Entre 0 e 5. Tente Adivinhar Paçoca...') print('-=-' * 20) jogador = int(input('Em que Número eu Pensei? ')) # Jogador tenta Adivinhar print('PROCESSANDO........') sl...
35.642857
84
0.687375
0
0
0
0
0
0
0
0
270
0.532544
6070e1255db727d4dd3901174951be184b84e950
2,691
py
Python
Student Database/input_details.py
manas1410/Miscellaneous-Development
8ffd2b586cb05b12ed0855d97c3015c8bb2a6c01
[ "MIT" ]
null
null
null
Student Database/input_details.py
manas1410/Miscellaneous-Development
8ffd2b586cb05b12ed0855d97c3015c8bb2a6c01
[ "MIT" ]
null
null
null
Student Database/input_details.py
manas1410/Miscellaneous-Development
8ffd2b586cb05b12ed0855d97c3015c8bb2a6c01
[ "MIT" ]
null
null
null
from tkinter import* import tkinter.font as font import sqlite3 name2='' regis2='' branch2='' def main(): inp=Tk() inp.geometry("430x300") inp.title("Enter The Details") inp.iconbitmap("logo/spectrumlogo.ico") f=font.Font(family='Bookman Old Style',size=15,weight='bold') f1=f...
25.149533
106
0.536603
0
0
0
0
0
0
0
0
640
0.23783
60720921ca305f9abf0188d61f032d72e5cdb0ce
16,036
py
Python
IQS5xx/IQS5xx.py
jakezimmerTHT/py_IQS5xx
5f90be17ea0429eeeb3726c7647f0b7ad1fb7b06
[ "MIT" ]
1
2019-02-26T11:56:26.000Z
2019-02-26T11:56:26.000Z
IQS5xx/IQS5xx.py
jakezimmerTHT/py_IQS5xx
5f90be17ea0429eeeb3726c7647f0b7ad1fb7b06
[ "MIT" ]
null
null
null
IQS5xx/IQS5xx.py
jakezimmerTHT/py_IQS5xx
5f90be17ea0429eeeb3726c7647f0b7ad1fb7b06
[ "MIT" ]
1
2022-02-22T19:47:26.000Z
2022-02-22T19:47:26.000Z
import unittest import time import logging logging.basicConfig() from intelhex import IntelHex import Adafruit_GPIO.I2C as i2c from gpiozero import OutputDevice from gpiozero import DigitalInputDevice from ctypes import c_uint8, c_uint16, c_uint32, cast, pointer, POINTER from ctypes import create_string_buffer, Struct...
41.760417
175
0.692816
12,318
0.768147
0
0
480
0.029933
0
0
2,712
0.169119
60730c8aa9c4f71059543c43f3553248624a3054
2,322
py
Python
code/loader/lock.py
IBCNServices/StardogStreamReasoning
646db9cec7bd06ac8bfa75952b9a41773f35544d
[ "Apache-2.0" ]
5
2020-04-08T22:55:17.000Z
2021-07-30T12:12:45.000Z
code/loader/lock.py
IBCNServices/StardogStreamReasoning
646db9cec7bd06ac8bfa75952b9a41773f35544d
[ "Apache-2.0" ]
1
2021-04-29T21:58:32.000Z
2021-05-04T08:05:11.000Z
code/loader/lock.py
IBCNServices/StardogStreamReasoning
646db9cec7bd06ac8bfa75952b9a41773f35544d
[ "Apache-2.0" ]
3
2020-06-12T13:48:08.000Z
2021-07-23T11:24:27.000Z
import threading class RWLock: """Synchronization object used in a solution of so-called second readers-writers problem. In this problem, many readers can simultaneously access a share, and a writer has an exclusive access to this share. Additionally, the following constraints should be met: 1) no reader should b...
31.808219
75
0.736434
2,300
0.990525
0
0
0
0
0
0
1,188
0.511628
6073572f31a3babd2ff3a1985183c4320d96810e
5,627
py
Python
src/pyfmodex/channel_group.py
Loodoor/UnamedPy
7d154c3a652992b3c1f28050f0353451f57b2a2d
[ "MIT" ]
1
2017-02-21T16:46:21.000Z
2017-02-21T16:46:21.000Z
src/pyfmodex/channel_group.py
Loodoor/UnamedPy
7d154c3a652992b3c1f28050f0353451f57b2a2d
[ "MIT" ]
1
2017-02-21T17:57:05.000Z
2017-02-22T11:28:51.000Z
src/pyfmodex/channel_group.py
Loodoor/UnamedPy
7d154c3a652992b3c1f28050f0353451f57b2a2d
[ "MIT" ]
null
null
null
from .fmodobject import * from .globalvars import dll as _dll from .globalvars import get_class class ChannelGroup(FmodObject): def add_dsp(self, dsp): check_type(dsp, get_class("DSP")) c_ptr = c_void_p() self._call_fmod("FMOD_ChannelGroup_AddDSP", d._ptr, byref(c_ptr)) return get_...
31.61236
120
0.675671
5,528
0.982406
0
0
3,124
0.55518
0
0
963
0.171139
60736b2c5b81bc8177746e07c1771f09afc46a66
2,214
py
Python
program.py
siddhi117/ADB_Homework
1751b3cc2d5ec1584efdf7f8961507bc29179e49
[ "MIT" ]
null
null
null
program.py
siddhi117/ADB_Homework
1751b3cc2d5ec1584efdf7f8961507bc29179e49
[ "MIT" ]
null
null
null
program.py
siddhi117/ADB_Homework
1751b3cc2d5ec1584efdf7f8961507bc29179e49
[ "MIT" ]
null
null
null
import sqlite3 from bottle import route, run,debug,template,request,redirect @route('/todo') def todo_list(): conn = sqlite3.connect('todo.db') c = conn.cursor() c.execute("SELECT id, task FROM todo WHERE status LIKE '1'") result = c.fetchall() c.close() output = template('make_table', rows=res...
27.333333
93
0.584914
0
0
0
0
2,068
0.934056
0
0
597
0.269648
60761440b9fc5de896572a3624d9ef4c6e6c7759
3,246
py
Python
pipeline/metadata/maxmind.py
censoredplanet/censoredplanet-analysis
f5e5d82f890e47599bc0baa9a9390f3c5147a6f7
[ "Apache-2.0" ]
6
2021-06-02T11:15:12.000Z
2022-03-04T12:09:35.000Z
pipeline/metadata/maxmind.py
censoredplanet/censoredplanet-analysis
f5e5d82f890e47599bc0baa9a9390f3c5147a6f7
[ "Apache-2.0" ]
24
2021-04-13T18:07:29.000Z
2022-03-25T20:26:27.000Z
pipeline/metadata/maxmind.py
censoredplanet/censoredplanet-analysis
f5e5d82f890e47599bc0baa9a9390f3c5147a6f7
[ "Apache-2.0" ]
2
2021-06-02T11:30:21.000Z
2021-08-20T12:17:12.000Z
"""Module to initialize Maxmind databases and lookup IP metadata.""" import logging import os from typing import Optional, Tuple, NamedTuple import geoip2.database from pipeline.metadata.mmdb_reader import mmdb_reader MAXMIND_CITY = 'GeoLite2-City.mmdb' MAXMIND_ASN = 'GeoLite2-ASN.mmdb' # Tuple(netblock, asn, as_n...
30.336449
78
0.663586
2,597
0.800062
0
0
0
0
0
0
1,255
0.38663
6076505608a2c5b23c1f2f1d1636e9aacc345050
1,105
py
Python
examples/plot_graph.py
huyvo/gevent-websocket-py3.5
b2eb3b5cfb020ac976ac0970508589020dce03ad
[ "Apache-2.0" ]
null
null
null
examples/plot_graph.py
huyvo/gevent-websocket-py3.5
b2eb3b5cfb020ac976ac0970508589020dce03ad
[ "Apache-2.0" ]
null
null
null
examples/plot_graph.py
huyvo/gevent-websocket-py3.5
b2eb3b5cfb020ac976ac0970508589020dce03ad
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function """ This example generates random data and plots a graph in the browser. Run it using Gevent directly using: $ python plot_graph.py Or with an Gunicorn wrapper: $ gunicorn -k "geventwebsocket.gunicorn.workers.GeventWebSocketWorker" \ plot_graph:resource """ impo...
25.113636
76
0.700452
273
0.247059
0
0
0
0
0
0
380
0.343891
60765090bf7eb3ddb56eaccfac94b3add8ca8a04
844
py
Python
nas_big_data/combo/best/combo_4gpu_8_agebo/predict.py
deephyper/NASBigData
18f083a402b80b1d006eada00db7287ff1802592
[ "BSD-2-Clause" ]
3
2020-08-07T12:05:12.000Z
2021-04-05T19:38:37.000Z
nas_big_data/combo/best/combo_2gpu_8_agebo/predict.py
deephyper/NASBigData
18f083a402b80b1d006eada00db7287ff1802592
[ "BSD-2-Clause" ]
2
2020-07-17T14:44:12.000Z
2021-04-04T14:52:11.000Z
nas_big_data/combo/best/combo_4gpu_8_agebo/predict.py
deephyper/NASBigData
18f083a402b80b1d006eada00db7287ff1802592
[ "BSD-2-Clause" ]
1
2021-03-28T01:49:21.000Z
2021-03-28T01:49:21.000Z
import os import numpy as np import tensorflow as tf from nas_big_data.combo.load_data import load_data_npz_gz from deephyper.nas.run.util import create_dir from deephyper.nas.train_utils import selectMetric os.environ["CUDA_VISIBLE_DEVICES"] = ",".join([str(i) for i in range(4)]) HERE = os.path.dirname(os.path.absp...
26.375
89
0.722749
0
0
0
0
0
0
0
0
127
0.150474
6077a342275cffb372223916fb877af7a30c823c
14,744
py
Python
ship/utils/utilfunctions.py
duncan-r/SHIP
2c4c22c77f9c18ea545d3bce70a36aebbd18256a
[ "MIT" ]
6
2016-04-10T17:32:44.000Z
2022-03-13T18:41:21.000Z
ship/utils/utilfunctions.py
duncan-r/SHIP
2c4c22c77f9c18ea545d3bce70a36aebbd18256a
[ "MIT" ]
19
2017-06-23T08:21:53.000Z
2017-07-26T08:23:03.000Z
ship/utils/utilfunctions.py
duncan-r/SHIP
2c4c22c77f9c18ea545d3bce70a36aebbd18256a
[ "MIT" ]
6
2016-10-26T16:04:38.000Z
2019-04-25T23:55:06.000Z
""" Summary: Utility Functions that could be helpful in any part of the API. All functions that are likely to be called across a number of classes and Functions in the API should be grouped here for convenience. Author: Duncan Runnacles Created: 01 Apr 2016 Copyri...
30.151329
89
0.573928
2,086
0.141481
0
0
0
0
0
0
9,095
0.616861
6077af38c7d93f92258618a8fca241844841e829
3,636
py
Python
src/ansible_navigator/ui_framework/content_defs.py
goneri/ansible-navigator
59c5c4e9758404bcf363face09cf46c325b01ad3
[ "Apache-2.0" ]
null
null
null
src/ansible_navigator/ui_framework/content_defs.py
goneri/ansible-navigator
59c5c4e9758404bcf363face09cf46c325b01ad3
[ "Apache-2.0" ]
null
null
null
src/ansible_navigator/ui_framework/content_defs.py
goneri/ansible-navigator
59c5c4e9758404bcf363face09cf46c325b01ad3
[ "Apache-2.0" ]
null
null
null
"""Definitions of UI content objects.""" from dataclasses import asdict from dataclasses import dataclass from enum import Enum from typing import Dict from typing import Generic from typing import TypeVar from ..utils.compatibility import TypeAlias from ..utils.serialize import SerializationFormat class ContentVie...
32.756757
98
0.667217
3,188
0.876788
0
0
3,106
0.854235
0
0
2,053
0.564631
6077b8cff40a612dbe4bda3b40ee9c7455ae0910
1,244
py
Python
FWCore/MessageService/test/u28_cerr_cfg.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
6
2017-09-08T14:12:56.000Z
2022-03-09T23:57:01.000Z
FWCore/MessageService/test/u28_cerr_cfg.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
545
2017-09-19T17:10:19.000Z
2022-03-07T16:55:27.000Z
FWCore/MessageService/test/u28_cerr_cfg.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
14
2017-10-04T09:47:21.000Z
2019-10-23T18:04:45.000Z
# u28_cerr_cfg.py: # # Non-regression test configuration file for MessageLogger service: # distinct threshold level for linked destination, where # import FWCore.ParameterSet.Config as cms process = cms.Process("TEST") import FWCore.Framework.test.cmsExceptionsFatal_cff process.options = FWCore.Framework.test.cmsExc...
29.619048
70
0.728296
0
0
0
0
0
0
0
0
295
0.237138
607a424b8a6541dc8b215105306da525113497c5
2,001
py
Python
content/browse/utils.py
Revibe-Music/core-services
6b11cf16ad2c35d948f3a5c0e7a161e5b7cfc1b2
[ "MIT" ]
2
2022-01-24T23:30:18.000Z
2022-01-26T00:21:22.000Z
content/browse/utils.py
Revibe-Music/core-services
6b11cf16ad2c35d948f3a5c0e7a161e5b7cfc1b2
[ "MIT" ]
null
null
null
content/browse/utils.py
Revibe-Music/core-services
6b11cf16ad2c35d948f3a5c0e7a161e5b7cfc1b2
[ "MIT" ]
null
null
null
""" Created:04 Mar. 2020 Author: Jordan Prechac """ from revibe._helpers import const from administration.utils import retrieve_variable from content.models import Song, Album, Artist from content.serializers import v1 as cnt_ser_v1 # ----------------------------------------------------------------------------- # _...
34.5
127
0.710645
0
0
0
0
0
0
0
0
540
0.269865
607a5c3dca22f0d225966ee1a7f786fad681858e
4,433
py
Python
Segmentation/model.py
vasetrendafilov/ComputerVision
5fcbe57fb1609ef44733aed0fab8c69d71fae21f
[ "MIT" ]
null
null
null
Segmentation/model.py
vasetrendafilov/ComputerVision
5fcbe57fb1609ef44733aed0fab8c69d71fae21f
[ "MIT" ]
null
null
null
Segmentation/model.py
vasetrendafilov/ComputerVision
5fcbe57fb1609ef44733aed0fab8c69d71fae21f
[ "MIT" ]
null
null
null
""" Authors: Elena Vasileva, Zoran Ivanovski E-mail: elenavasileva95@gmail.com, mars@feit.ukim.edu.mk Course: Mashinski vid, FEEIT, Spring 2021 Date: 09.03.2021 Description: function library model operations: construction, loading, saving Python version: 3.6 """ # python imports from keras.layers import ...
47.666667
134
0.723438
0
0
0
0
0
0
0
0
1,324
0.298669
607a8097d7dacf319776f076e01a66d964066e6e
631
py
Python
Day24_Python/part1.py
Rog3rSm1th/PolyglotOfCode
a70f50b5c882139727cbdf75144a8346cb6c538b
[ "MIT" ]
7
2021-03-23T14:08:01.000Z
2021-05-17T16:24:16.000Z
Day24_Python/part1.py
Rog3rSm1th/PolyglotOfCode
a70f50b5c882139727cbdf75144a8346cb6c538b
[ "MIT" ]
null
null
null
Day24_Python/part1.py
Rog3rSm1th/PolyglotOfCode
a70f50b5c882139727cbdf75144a8346cb6c538b
[ "MIT" ]
2
2021-04-29T22:03:02.000Z
2022-01-18T15:55:42.000Z
#!/usr/bin/env python3 #-*- coding: utf-8 -*- from itertools import combinations def solve(packages, groups): total = sum(packages) result = 9999999999999999 # we should use `for i in range(1, len(packages) - 2)` but it would # make the computation significantly slower for i in range(1, 7): ...
30.047619
74
0.62916
0
0
0
0
0
0
0
0
167
0.264241
607b94247f45130f250e70bb74d679462531a2da
5,921
py
Python
generate-album.py
atomicparade/photo-album
437bc18bb00da5ce27216d03b48b78d60a0ad3fd
[ "CC0-1.0", "Unlicense" ]
null
null
null
generate-album.py
atomicparade/photo-album
437bc18bb00da5ce27216d03b48b78d60a0ad3fd
[ "CC0-1.0", "Unlicense" ]
null
null
null
generate-album.py
atomicparade/photo-album
437bc18bb00da5ce27216d03b48b78d60a0ad3fd
[ "CC0-1.0", "Unlicense" ]
null
null
null
import configparser import math import re import urllib from pathlib import Path from PIL import Image def get_images(image_directory, thumbnail_directory, thumbnail_size): thumbnail_directory = Path(thumbnail_directory) for file in [file for file in thumbnail_directory.glob('*')]: file.unlink() ...
22.861004
161
0.570174
0
0
0
0
0
0
0
0
2,972
0.501942
607c6c12c8adb56d644bb03375a7a0619419eb1b
4,385
py
Python
tests/test_sne_truth.py
LSSTDESC/sims_TruthCatalog
348f5d231997eed387aaa6e3fd4218c126e14cdb
[ "BSD-3-Clause" ]
2
2020-02-04T22:59:41.000Z
2020-03-19T00:17:09.000Z
tests/test_sne_truth.py
LSSTDESC/sims_TruthCatalog
348f5d231997eed387aaa6e3fd4218c126e14cdb
[ "BSD-3-Clause" ]
7
2020-02-10T21:59:19.000Z
2021-04-27T16:31:26.000Z
tests/test_sne_truth.py
LSSTDESC/sims_TruthCatalog
348f5d231997eed387aaa6e3fd4218c126e14cdb
[ "BSD-3-Clause" ]
null
null
null
""" Unit tests for SNIa truth catalog code. """ import os import unittest import sqlite3 import numpy as np import pandas as pd from desc.sims_truthcatalog import SNeTruthWriter, SNSynthPhotFactory class SNSynthPhotFactoryTestCase(unittest.TestCase): """ Test case class for SNIa synthetic photometry factory c...
41.367925
77
0.580844
4,132
0.942303
0
0
0
0
0
0
1,046
0.23854
607dfd1e508e9c983974056179f2dfae1594aa2a
10,053
py
Python
testsite/management/commands/load_test_transactions.py
gikoluo/djaodjin-saas
badd7894ac327191008a1b3a0ebd0d07b55908c3
[ "BSD-2-Clause" ]
null
null
null
testsite/management/commands/load_test_transactions.py
gikoluo/djaodjin-saas
badd7894ac327191008a1b3a0ebd0d07b55908c3
[ "BSD-2-Clause" ]
null
null
null
testsite/management/commands/load_test_transactions.py
gikoluo/djaodjin-saas
badd7894ac327191008a1b3a0ebd0d07b55908c3
[ "BSD-2-Clause" ]
null
null
null
# Copyright (c) 2018, DjaoDjin inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, # this list of conditions and t...
34.90625
80
0.552372
8,222
0.817865
0
0
0
0
0
0
3,145
0.312842
607e7c80f119c1c9c55adbd71e291f8ae17a8b06
2,801
py
Python
seq2seq_pt/s2s/xutils.py
magic282/SEASS
b780bf45b47d15145a148e5992bcd157c119d338
[ "MIT" ]
36
2018-05-25T01:09:21.000Z
2022-01-25T02:45:18.000Z
seq2seq_pt/s2s/xutils.py
magic282/SEASS
b780bf45b47d15145a148e5992bcd157c119d338
[ "MIT" ]
11
2018-06-30T14:19:21.000Z
2021-03-19T01:27:09.000Z
seq2seq_pt/s2s/xutils.py
magic282/SEASS
b780bf45b47d15145a148e5992bcd157c119d338
[ "MIT" ]
10
2018-06-06T03:15:51.000Z
2022-01-25T02:45:44.000Z
import sys import struct def save_sf_model(model): name_dicts = {'encoder.word_lut.weight': 'SrcWordEmbed_Embed_W', 'encoder.forward_gru.linear_input.weight': 'EncGRUL2R_GRU_W', 'encoder.forward_gru.linear_input.bias': 'EncGRUL2R_GRU_B', 'encoder.forward_gru.l...
47.474576
87
0.593717
0
0
0
0
0
0
0
0
1,300
0.46412
608009fe5a0b2fb99700c8345bb126060be7366e
4,219
py
Python
pml-services/pml_storage.py
Novartis/Project-Mona-Lisa
f8fcef5b434470e2a17e97fceaef46615eda1b31
[ "Apache-2.0" ]
3
2017-10-17T14:49:54.000Z
2021-01-12T23:37:33.000Z
pml-services/pml_storage.py
Novartis/Project-Mona-Lisa
f8fcef5b434470e2a17e97fceaef46615eda1b31
[ "Apache-2.0" ]
10
2019-12-16T20:37:22.000Z
2021-05-21T14:35:39.000Z
pml-services/pml_storage.py
Novartis/Project-Mona-Lisa
f8fcef5b434470e2a17e97fceaef46615eda1b31
[ "Apache-2.0" ]
1
2018-09-12T17:06:18.000Z
2018-09-12T17:06:18.000Z
# Copyright 2017 Novartis Institutes for BioMedical Research Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agre...
35.754237
584
0.576677
3,486
0.826262
0
0
0
0
0
0
2,586
0.612941
6081b2d6561823daafb84e5aca2d32f42f1d920c
3,196
py
Python
binan.py
Nightleaf0512/PythonCryptoCurriencyPriceChecker
9531d4a6978d280b4ca759d7ba24d3edf77fe5b2
[ "CC0-1.0" ]
null
null
null
binan.py
Nightleaf0512/PythonCryptoCurriencyPriceChecker
9531d4a6978d280b4ca759d7ba24d3edf77fe5b2
[ "CC0-1.0" ]
null
null
null
binan.py
Nightleaf0512/PythonCryptoCurriencyPriceChecker
9531d4a6978d280b4ca759d7ba24d3edf77fe5b2
[ "CC0-1.0" ]
null
null
null
from binance.client import Client import PySimpleGUI as sg api_key = "your_binance_apikey" secret_key = "your_binance_secretkey" client = Client(api_key=api_key, api_secret=secret_key) # price def get_price(coin): return round(float(client.get_symbol_ticker(symbol=f"{coin}USDT")['price']), 5) def colu...
42.613333
172
0.595432
0
0
0
0
0
0
0
0
891
0.278264
608211636fe7f97cd14766030248070475866342
1,026
py
Python
saleor/graphql/ushop/bulk_mutations.py
nlkhagva/saleor
0d75807d08ac49afcc904733724ac870e8359c10
[ "CC-BY-4.0" ]
null
null
null
saleor/graphql/ushop/bulk_mutations.py
nlkhagva/saleor
0d75807d08ac49afcc904733724ac870e8359c10
[ "CC-BY-4.0" ]
1
2022-02-15T03:31:12.000Z
2022-02-15T03:31:12.000Z
saleor/graphql/ushop/bulk_mutations.py
nlkhagva/ushop
abf637eb6f7224e2d65d62d72a0c15139c64bb39
[ "CC-BY-4.0" ]
null
null
null
import graphene from ...unurshop.ushop import models from ..core.mutations import BaseBulkMutation, ModelBulkDeleteMutation class UshopBulkDelete(ModelBulkDeleteMutation): class Arguments: ids = graphene.List( graphene.ID, required=True, description="List of ushop IDs to delete." ) ...
28.5
87
0.660819
895
0.87232
0
0
113
0.110136
0
0
183
0.178363
608242d64b36989e754c60c8ef5cc3a72e5f5595
3,180
py
Python
src/main/NLP/STRING_MATCH/scopus_ha_module_match.py
alvinajacquelyn/COMP0016_2
fd57706a992e1e47af7c802320890e93a15fc0c7
[ "MIT" ]
null
null
null
src/main/NLP/STRING_MATCH/scopus_ha_module_match.py
alvinajacquelyn/COMP0016_2
fd57706a992e1e47af7c802320890e93a15fc0c7
[ "MIT" ]
null
null
null
src/main/NLP/STRING_MATCH/scopus_ha_module_match.py
alvinajacquelyn/COMP0016_2
fd57706a992e1e47af7c802320890e93a15fc0c7
[ "MIT" ]
null
null
null
import os, sys, re import json import pandas as pd import pymongo from main.LOADERS.publication_loader import PublicationLoader from main.MONGODB_PUSHERS.mongodb_pusher import MongoDbPusher from main.NLP.PREPROCESSING.preprocessor import Preprocessor class ScopusStringMatch_HAmodule(): def __ini...
42.972973
136
0.610377
2,916
0.916981
0
0
0
0
0
0
1,030
0.323899
60848af0afddec7b1d22b291ac9bd888d5799291
642
py
Python
tools/urls.py
Cyberdeep/archerysec
a4b1a0c4f736bd70bdea693c7a7c479a69bb0f7d
[ "BSD-3-Clause" ]
null
null
null
tools/urls.py
Cyberdeep/archerysec
a4b1a0c4f736bd70bdea693c7a7c479a69bb0f7d
[ "BSD-3-Clause" ]
null
null
null
tools/urls.py
Cyberdeep/archerysec
a4b1a0c4f736bd70bdea693c7a7c479a69bb0f7d
[ "BSD-3-Clause" ]
1
2018-08-12T17:29:35.000Z
2018-08-12T17:29:35.000Z
# _ # /\ | | # / \ _ __ ___| |__ ___ _ __ _ _ # / /\ \ | '__/ __| '_ \ / _ \ '__| | | | # / ____ \| | | (__| | | | __/ | | |_| | # /_/ \_\_| \___|_| |_|\___|_| \__, | # __/ | # |___/ # Copyright (C) 20...
25.68
43
0.426791
0
0
0
0
0
0
0
0
437
0.680685
6084e8784a7c8fb58869bc711fe87b2383807ac6
7,484
py
Python
api/vm/base/utils.py
erigones/esdc-ce
2e39211a8f5132d66e574d3a657906c7d3c406fe
[ "Apache-2.0" ]
97
2016-11-15T14:44:23.000Z
2022-03-13T18:09:15.000Z
api/vm/base/utils.py
erigones/esdc-ce
2e39211a8f5132d66e574d3a657906c7d3c406fe
[ "Apache-2.0" ]
334
2016-11-17T19:56:57.000Z
2022-03-18T10:45:53.000Z
api/vm/base/utils.py
erigones/esdc-ce
2e39211a8f5132d66e574d3a657906c7d3c406fe
[ "Apache-2.0" ]
33
2017-01-02T16:04:13.000Z
2022-02-07T19:20:24.000Z
from core.celery.config import ERIGONES_TASK_USER from que.tasks import execute, get_task_logger from vms.models import SnapshotDefine, Snapshot, BackupDefine, Backup, IPAddress logger = get_task_logger(__name__) def is_vm_missing(vm, msg): """ Check failed command output and return True if VM is not on comp...
45.084337
120
0.67504
0
0
0
0
0
0
0
0
3,027
0.404463
60855d2a5eca63351c8e4dd3352e1f4b94d4ebb3
1,133
py
Python
993_Cousins-in-Binary-Tree.py
Coalin/Daily-LeetCode-Exercise
a064dcdc3a82314be4571d342c4807291a24f69f
[ "MIT" ]
3
2018-07-05T05:51:10.000Z
2019-05-04T08:35:44.000Z
993_Cousins-in-Binary-Tree.py
Coalin/Daily-LeetCode-Exercise
a064dcdc3a82314be4571d342c4807291a24f69f
[ "MIT" ]
null
null
null
993_Cousins-in-Binary-Tree.py
Coalin/Daily-LeetCode-Exercise
a064dcdc3a82314be4571d342c4807291a24f69f
[ "MIT" ]
null
null
null
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def isCousins(self, root: TreeNode, x: int, y: int) -> bool: x_depth = None x_parent = None...
30.621622
75
0.485437
939
0.828773
0
0
0
0
0
0
186
0.164166
6085668853e75c8ad16430458a509e22fa3b1078
5,433
py
Python
docker-images/taigav2/taiga-back/tests/integration/test_tasks_tags.py
mattcongy/itshop
6be025a9eaa7fe7f495b5777d1f0e5a3184121c9
[ "MIT" ]
1
2017-05-29T19:01:06.000Z
2017-05-29T19:01:06.000Z
docker-images/taigav2/taiga-back/tests/integration/test_tasks_tags.py
mattcongy/itshop
6be025a9eaa7fe7f495b5777d1f0e5a3184121c9
[ "MIT" ]
null
null
null
docker-images/taigav2/taiga-back/tests/integration/test_tasks_tags.py
mattcongy/itshop
6be025a9eaa7fe7f495b5777d1f0e5a3184121c9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (C) 2014-2016 Andrey Antukh <niwi@niwi.nz> # Copyright (C) 2014-2016 Jesús Espino <jespinog@gmail.com> # Copyright (C) 2014-2016 David Barragán <bameda@dbarragan.com> # Copyright (C) 2014-2016 Alejandro Alonso <alejandro.alonso@kaleidos.net> # Copyright (C) 2014-2016 Anler Hernández ...
33.537037
99
0.679735
0
0
0
0
0
0
0
0
1,474
0.271155
6085b11c27e78fe767fa371d2b33135501f31145
679
py
Python
pytorchocr/postprocess/cls_postprocess.py
satchelwu/PaddleOCR2Pytorch
6941565cfd4c45470cc3bf9d434c8c32267a33ef
[ "Apache-2.0" ]
3
2021-04-23T12:31:07.000Z
2021-11-17T04:39:38.000Z
pytorchocr/postprocess/cls_postprocess.py
satchelwu/PaddleOCR2Pytorch
6941565cfd4c45470cc3bf9d434c8c32267a33ef
[ "Apache-2.0" ]
null
null
null
pytorchocr/postprocess/cls_postprocess.py
satchelwu/PaddleOCR2Pytorch
6941565cfd4c45470cc3bf9d434c8c32267a33ef
[ "Apache-2.0" ]
1
2022-03-24T03:31:34.000Z
2022-03-24T03:31:34.000Z
import torch class ClsPostProcess(object): """ Convert between text-label and text-index """ def __init__(self, label_list, **kwargs): super(ClsPostProcess, self).__init__() self.label_list = label_list def __call__(self, preds, label=None, *args, **kwargs): if isinstance(preds, ...
33.95
62
0.60972
664
0.977909
0
0
0
0
0
0
49
0.072165
6088008352658e01cb8328f084aae6c78e40e074
5,717
py
Python
inference_folder.py
aba-ai-learning/Single-Human-Parsing-LIP
b1c0c91cef34dabf598231127886b669838fc085
[ "MIT" ]
null
null
null
inference_folder.py
aba-ai-learning/Single-Human-Parsing-LIP
b1c0c91cef34dabf598231127886b669838fc085
[ "MIT" ]
null
null
null
inference_folder.py
aba-ai-learning/Single-Human-Parsing-LIP
b1c0c91cef34dabf598231127886b669838fc085
[ "MIT" ]
null
null
null
#!/usr/local/bin/python3 # -*- coding: utf-8 -*- import os import argparse import logging import numpy as np from PIL import Image import matplotlib import matplotlib.pyplot as plt import torch import torch.nn as nn from torchvision import transforms import cv2 import tqdm from net.pspnet import PSPNet models = { ...
36.414013
113
0.575477
0
0
0
0
0
0
0
0
920
0.160924
608859a6a315773abcd6cc904b0d54529fd39c40
870
py
Python
src/random_policy.py
shuvoxcd01/Policy-Evaluation
6bfdfdaa67e1dd67edb75fcf5b4664f2584345ac
[ "Apache-2.0" ]
null
null
null
src/random_policy.py
shuvoxcd01/Policy-Evaluation
6bfdfdaa67e1dd67edb75fcf5b4664f2584345ac
[ "Apache-2.0" ]
null
null
null
src/random_policy.py
shuvoxcd01/Policy-Evaluation
6bfdfdaa67e1dd67edb75fcf5b4664f2584345ac
[ "Apache-2.0" ]
null
null
null
from src.gridworld_mdp import GridWorld class EquiprobableRandomPolicy: def __init__(self): self.world_model = GridWorld() def get_prob(self, selected_action, state): assert state in self.world_model.states assert selected_action in self.world_model.actions num_all_possible_a...
31.071429
79
0.651724
827
0.950575
0
0
0
0
0
0
0
0
6088d8cdd329f8f2bb36a7c2566daad3bd603e75
6,013
py
Python
sktime/classification/feature_based/_summary_classifier.py
Rubiel1/sktime
2fd2290fb438224f11ddf202148917eaf9b73a87
[ "BSD-3-Clause" ]
1
2021-09-08T14:24:52.000Z
2021-09-08T14:24:52.000Z
sktime/classification/feature_based/_summary_classifier.py
Rubiel1/sktime
2fd2290fb438224f11ddf202148917eaf9b73a87
[ "BSD-3-Clause" ]
null
null
null
sktime/classification/feature_based/_summary_classifier.py
Rubiel1/sktime
2fd2290fb438224f11ddf202148917eaf9b73a87
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Summary Classifier. Pipeline classifier using the basic summary statistics and an estimator. """ __author__ = ["MatthewMiddlehurst"] __all__ = ["SummaryClassifier"] import numpy as np from sklearn.ensemble import RandomForestClassifier from sktime.base._base import _clone_estimator from s...
32.327957
82
0.617163
5,571
0.926493
0
0
0
0
0
0
3,477
0.578247
60895518586c2070b8a2145b7e9e913530aac964
107
py
Python
coding/reverse_bits/starter.py
skumaravelan/tech-interview-questions
637dfbf131123c77a8e2e4e45ba420355dcb381f
[ "MIT" ]
14
2022-02-08T17:29:29.000Z
2022-03-27T17:22:14.000Z
coding/reverse_bits/starter.py
skumaravelan/tech-interview-questions
637dfbf131123c77a8e2e4e45ba420355dcb381f
[ "MIT" ]
18
2022-01-27T17:37:26.000Z
2022-03-29T15:16:18.000Z
coding/reverse_bits/starter.py
skumaravelan/tech-interview-questions
637dfbf131123c77a8e2e4e45ba420355dcb381f
[ "MIT" ]
9
2022-02-08T16:03:10.000Z
2022-03-19T03:26:30.000Z
class Solution: # @param n, an integer # @return an integer def reverseBits(self, n):
17.833333
29
0.579439
97
0.906542
0
0
0
0
0
0
42
0.392523
608959b12d0989d6fd9417a960a75d31ceab0a32
461
py
Python
Topics/Submitting data/POST Request With Several Keys/main.py
valenciarichards/hypernews-portal
0b6c4d8aefe4f8fc7dc90d6542716e98f52515b3
[ "MIT" ]
1
2021-07-26T03:06:14.000Z
2021-07-26T03:06:14.000Z
Topics/Submitting data/POST Request With Several Keys/main.py
valenciarichards/hypernews-portal
0b6c4d8aefe4f8fc7dc90d6542716e98f52515b3
[ "MIT" ]
null
null
null
Topics/Submitting data/POST Request With Several Keys/main.py
valenciarichards/hypernews-portal
0b6c4d8aefe4f8fc7dc90d6542716e98f52515b3
[ "MIT" ]
null
null
null
from django.shortcuts import redirect from django.views import View class TodoView(View): all_todos = [] def post(self, request, *args, **kwargs): todo = request.POST.get("todo") important = request.POST.get("important") if todo not in self.all_todos: if important: ...
27.117647
56
0.590022
390
0.845987
0
0
0
0
0
0
20
0.043384
608982b20a5decc4b9d80d0fe548b89804a688a8
705
py
Python
pypeln/thread/api/to_iterable_thread_test.py
quarckster/pypeln
f4160d0f4d4718b67f79a0707d7261d249459a4b
[ "MIT" ]
1,281
2018-09-20T05:35:27.000Z
2022-03-30T01:29:48.000Z
pypeln/thread/api/to_iterable_thread_test.py
webclinic017/pypeln
5231806f2cac9d2019dacbbcf913484fd268b8c1
[ "MIT" ]
78
2018-09-18T20:38:12.000Z
2022-03-30T20:16:02.000Z
pypeln/thread/api/to_iterable_thread_test.py
webclinic017/pypeln
5231806f2cac9d2019dacbbcf913484fd268b8c1
[ "MIT" ]
88
2018-09-24T10:46:14.000Z
2022-03-28T09:34:50.000Z
import typing as tp from unittest import TestCase import hypothesis as hp from hypothesis import strategies as st import pypeln as pl import cytoolz as cz MAX_EXAMPLES = 10 T = tp.TypeVar("T") @hp.given(nums=st.lists(st.integers())) @hp.settings(max_examples=MAX_EXAMPLES) def test_from_to_iterable(nums: tp.List[int...
23.5
46
0.721986
0
0
0
0
507
0.719149
0
0
3
0.004255
608996de745b7d9dc600ef6a4f86e57b6a5da416
410,082
py
Python
app/datastore/test.py
sem-onyalo/dnn-training-monitoring-flask
6a81e06a6871b0d6e890f9fd92f4ab79ac8ee639
[ "MIT" ]
null
null
null
app/datastore/test.py
sem-onyalo/dnn-training-monitoring-flask
6a81e06a6871b0d6e890f9fd92f4ab79ac8ee639
[ "MIT" ]
null
null
null
app/datastore/test.py
sem-onyalo/dnn-training-monitoring-flask
6a81e06a6871b0d6e890f9fd92f4ab79ac8ee639
[ "MIT" ]
null
null
null
import json from app.model import TrainMetrics, TrainPlots class DatastoreTest: def getRuns(self): return [ "20211210T132017", "20211209T132017", "20211208T132017" ] def getEvals(self, run): return [40, 30, 20, 10] def getHyperparameters(self, ...
5,467.76
189,814
0.965924
1,047
0.002553
0
0
0
0
0
0
409,026
0.997425
608a1240bebe926df3b7d5f1923157bb4c477433
1,614
py
Python
pybinsim/pose.py
fkleinTUI/pyBinSim
5320f62422e0a92154272f8167b87cabdcafe27f
[ "MIT" ]
null
null
null
pybinsim/pose.py
fkleinTUI/pyBinSim
5320f62422e0a92154272f8167b87cabdcafe27f
[ "MIT" ]
null
null
null
pybinsim/pose.py
fkleinTUI/pyBinSim
5320f62422e0a92154272f8167b87cabdcafe27f
[ "MIT" ]
null
null
null
import logging from collections import namedtuple logger = logging.getLogger("pybinsim.Pose") class Orientation(namedtuple('Orientation', ['yaw', 'pitch', 'roll'])): pass class Position(namedtuple('Position', ['x', 'y', 'z'])): pass class Custom(namedtuple('CustomValues', ['a', 'b', 'c'])): pass cl...
32.938776
103
0.669145
1,507
0.933705
0
0
938
0.581165
0
0
209
0.129492
608acb157c66cbf8e5a515ca2945d9dde9e8ed86
337
py
Python
morphocut_server/extensions.py
madelinetharp/morphocut-server
a82ad5916adbd168816f7b26432b4a98d978c299
[ "MIT" ]
null
null
null
morphocut_server/extensions.py
madelinetharp/morphocut-server
a82ad5916adbd168816f7b26432b4a98d978c299
[ "MIT" ]
1
2019-08-14T20:07:53.000Z
2019-08-14T20:07:53.000Z
morphocut_server/extensions.py
madelinetharp/morphocut-server
a82ad5916adbd168816f7b26432b4a98d978c299
[ "MIT" ]
2
2019-11-28T13:10:28.000Z
2021-11-19T20:37:19.000Z
from flask_sqlalchemy import SQLAlchemy from flask_redis import FlaskRedis from flask_migrate import Migrate # from flask_rq2 import RQ from rq import Queue from morphocut_server.worker import redis_conn database = SQLAlchemy() redis_store = FlaskRedis() migrate = Migrate() redis_queue = Queue(connection=redis_conn)...
22.466667
46
0.824926
0
0
0
0
0
0
0
0
26
0.077151
608b4a53b9f9505194dcc39105a821f7c54562c8
12,881
py
Python
acq4/drivers/ThorlabsMFC1/tmcm.py
aleonlein/acq4
4b1fcb9ad2c5e8d4595a2b9cf99d50ece0c0f555
[ "MIT" ]
1
2020-06-04T17:04:53.000Z
2020-06-04T17:04:53.000Z
acq4/drivers/ThorlabsMFC1/tmcm.py
aleonlein/acq4
4b1fcb9ad2c5e8d4595a2b9cf99d50ece0c0f555
[ "MIT" ]
24
2016-09-27T17:25:24.000Z
2017-03-02T21:00:11.000Z
acq4/drivers/ThorlabsMFC1/tmcm.py
sensapex/acq4
9561ba73caff42c609bd02270527858433862ad8
[ "MIT" ]
4
2016-10-19T06:39:36.000Z
2019-09-30T21:06:45.000Z
from __future__ import print_function """ Low-level serial communication for Trinamic TMCM-140-42-SE controller (used internally for the Thorlabs MFC1) """ import serial, struct, time, collections try: # this is nicer because it provides deadlock debugging information from acq4.util.Mutex import RecursiveMut...
27.760776
98
0.559273
8,942
0.694201
0
0
555
0.043087
0
0
4,764
0.369847
608ba712fb9a01badbb4b12d5b51c50071dede95
981
py
Python
tests/generators/ios/test_core_data.py
brianleungwh/signals
d28d2722d681d390ebd21cd668d0b19f2f184451
[ "MIT" ]
3
2016-02-04T22:58:03.000Z
2017-12-15T13:37:47.000Z
tests/generators/ios/test_core_data.py
brianleungwh/signals
d28d2722d681d390ebd21cd668d0b19f2f184451
[ "MIT" ]
37
2015-08-28T20:17:23.000Z
2021-12-13T19:48:49.000Z
tests/generators/ios/test_core_data.py
brianleungwh/signals
d28d2722d681d390ebd21cd668d0b19f2f184451
[ "MIT" ]
6
2016-01-12T18:51:27.000Z
2016-10-19T10:32:45.000Z
import unittest from signals.generators.ios.core_data import get_current_version, get_core_data_from_folder class CoreDataTestCase(unittest.TestCase): def test_get_current_version(self): version_name = get_current_version('./tests/files/doubledummy.xcdatamodeld') self.assertEqual(version_name, 'du...
49.05
91
0.768603
870
0.88685
0
0
0
0
0
0
248
0.252803
608c22777b56d9cf666ec3250a4f4ccb1c127d26
848
py
Python
mcmc/plot_graph.py
hudalao/mcmc
148d9fbb9ebd85ee5bfd3601d80ebbd96bc25791
[ "MIT" ]
null
null
null
mcmc/plot_graph.py
hudalao/mcmc
148d9fbb9ebd85ee5bfd3601d80ebbd96bc25791
[ "MIT" ]
null
null
null
mcmc/plot_graph.py
hudalao/mcmc
148d9fbb9ebd85ee5bfd3601d80ebbd96bc25791
[ "MIT" ]
null
null
null
# commend the lines for plotting using import matplotlib.pyplot as plt import networkx as nx def plot_graph(G, N, time_point, posi): #setting up for graph plotting #setting the positions for all nodes pos = {} for ii in range(N): pos[ii] = posi[ii] # plt.figure(time_point + 1) elarge=[(...
33.92
110
0.681604
0
0
0
0
0
0
0
0
498
0.587264
608d2fef138f592a57bb71b64db9742a86c572f7
293
py
Python
Number Theory/Sieve_of_Eratosthenes.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
2
2020-06-25T21:10:32.000Z
2020-12-10T06:53:45.000Z
Number Theory/Sieve_of_Eratosthenes.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
null
null
null
Number Theory/Sieve_of_Eratosthenes.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
3
2020-05-15T14:17:09.000Z
2021-07-25T13:18:20.000Z
from sys import stdin input = stdin.readline N = int(input()) primes = [1]*(N+1) primes[0] = 0 primes[1] = 0 for i in range(2,int(N**0.5)+1): if primes[i]: for j in range(i*i,N+1,i): primes[j] = 0 for i in range(N+1): if primes[i]: print(i,end = " ")
19.533333
34
0.522184
0
0
0
0
0
0
0
0
3
0.010239
608e2946d7df6fc1e0129b19ce4192449ba804b9
6,118
py
Python
powerline/lib/tree_watcher.py
kruton/powerline
f6ddb95da5f41b8285cffd1d17c1ef46dc08a7d6
[ "MIT" ]
19
2015-09-01T20:49:16.000Z
2022-01-08T22:13:23.000Z
powerline/lib/tree_watcher.py
kruton/powerline
f6ddb95da5f41b8285cffd1d17c1ef46dc08a7d6
[ "MIT" ]
null
null
null
powerline/lib/tree_watcher.py
kruton/powerline
f6ddb95da5f41b8285cffd1d17c1ef46dc08a7d6
[ "MIT" ]
6
2019-04-25T03:42:35.000Z
2020-06-05T15:25:23.000Z
# vim:fileencoding=utf-8:noet from __future__ import (unicode_literals, absolute_import, print_function) __copyright__ = '2013, Kovid Goyal <kovid at kovidgoyal.net>' __docformat__ = 'restructuredtext en' import sys import os import errno from time import sleep from powerline.lib.monotonic import monotonic from powe...
27.936073
152
0.698431
5,403
0.883132
0
0
0
0
0
0
1,193
0.194998
60903b5f4352258ad0e0ec223250ecb5c743a43e
3,642
py
Python
python/qisys/test/fake_interact.py
PrashantKumar-sudo/qibuild
a16ce425cf25127ceff29507feeeeca37af23351
[ "BSD-3-Clause" ]
null
null
null
python/qisys/test/fake_interact.py
PrashantKumar-sudo/qibuild
a16ce425cf25127ceff29507feeeeca37af23351
[ "BSD-3-Clause" ]
null
null
null
python/qisys/test/fake_interact.py
PrashantKumar-sudo/qibuild
a16ce425cf25127ceff29507feeeeca37af23351
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2012-2019 SoftBank Robotics. All rights reserved. # Use of this source code is governed by a BSD-style license (see the COPYING file). """ Fake Interact """ from __future__ import absolute_import from __future__ import unicode_literals from __future__ import...
31.396552
84
0.556013
3,303
0.906919
0
0
524
0.143877
0
0
750
0.205931
6090c304e6f8f9a2666ec59c479f530bc3d45c1f
7,727
py
Python
muselsl/cli.py
kowalej/muse-lsl
9086f2588bee3b2858b0ff853b7a08cdcd0e7612
[ "BSD-3-Clause" ]
2
2020-12-04T15:01:19.000Z
2021-11-20T23:05:38.000Z
muselsl/cli.py
fahad101/muse-lsl
32aced5eb29db8834cbffd8533607e8d32cfa2b7
[ "BSD-3-Clause" ]
null
null
null
muselsl/cli.py
fahad101/muse-lsl
32aced5eb29db8834cbffd8533607e8d32cfa2b7
[ "BSD-3-Clause" ]
1
2020-12-03T21:28:01.000Z
2020-12-03T21:28:01.000Z
#!/usr/bin/python import sys import argparse class main: def __init__(self): parser = argparse.ArgumentParser( description='Python package for streaming, recording, and visualizing EEG data from the Muse 2016 headset.', usage='''muselsl <command> [<args>] Available commands: ...
52.209459
140
0.533325
7,681
0.994047
0
0
0
0
0
0
3,557
0.460334
609290208240ce63b7e6295f7ddcd5f772b8a453
2,420
py
Python
src/quocspyside2interface/gui/freegradients/GeneralSettingsNM.py
Quantum-OCS/QuOCS-pyside2interface
69436666a67da6884aed1ddd087b7062dcd2ad90
[ "Apache-2.0" ]
1
2021-03-27T17:41:16.000Z
2021-03-27T17:41:16.000Z
src/quocspyside2interface/gui/freegradients/GeneralSettingsNM.py
Quantum-OCS/QuOCS-pyside2interface
69436666a67da6884aed1ddd087b7062dcd2ad90
[ "Apache-2.0" ]
null
null
null
src/quocspyside2interface/gui/freegradients/GeneralSettingsNM.py
Quantum-OCS/QuOCS-pyside2interface
69436666a67da6884aed1ddd087b7062dcd2ad90
[ "Apache-2.0" ]
null
null
null
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # Copyright 2021- QuOCS 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://ww...
48.4
110
0.704132
1,345
0.555785
0
0
0
0
0
0
892
0.368595
60931ff29f096eec340bc02f5f6b68402207873f
5,803
py
Python
pulsar/datadog_checks/pulsar/check.py
divyamamgai/integrations-extras
8c40a9cf870578687cc224ee91d3c70cd3a435a4
[ "BSD-3-Clause" ]
158
2016-06-02T16:25:31.000Z
2022-03-16T15:55:14.000Z
pulsar/datadog_checks/pulsar/check.py
divyamamgai/integrations-extras
8c40a9cf870578687cc224ee91d3c70cd3a435a4
[ "BSD-3-Clause" ]
554
2016-03-15T17:39:12.000Z
2022-03-31T10:29:16.000Z
pulsar/datadog_checks/pulsar/check.py
divyamamgai/integrations-extras
8c40a9cf870578687cc224ee91d3c70cd3a435a4
[ "BSD-3-Clause" ]
431
2016-05-13T15:33:13.000Z
2022-03-31T10:06:46.000Z
from datadog_checks.base import ConfigurationError, OpenMetricsBaseCheck EVENT_TYPE = SOURCE_TYPE_NAME = 'pulsar' class PulsarCheck(OpenMetricsBaseCheck): """ PulsarCheck derives from AgentCheck that provides the required check method """ def __init__(self, name, init_config, instances=None): ...
58.616162
117
0.693607
5,685
0.979666
0
0
0
0
0
0
3,993
0.688092
6093e41de9ab4c93dd30e9d6abbd45ef1d80f2ad
214
py
Python
Chapter11/publish_horoscope1_in_another_ipns.py
HowToBeCalculated/Hands-On-Blockchain-for-Python-Developers
f9634259dd3dc509f36a5ccf3a5182c0d2ec79c4
[ "MIT" ]
62
2019-03-18T04:41:41.000Z
2022-03-31T05:03:13.000Z
Chapter11/publish_horoscope1_in_another_ipns.py
HowToBeCalculated/Hands-On-Blockchain-for-Python-Developers
f9634259dd3dc509f36a5ccf3a5182c0d2ec79c4
[ "MIT" ]
2
2020-06-14T21:56:03.000Z
2022-01-07T05:32:01.000Z
Chapter11/publish_horoscope1_in_another_ipns.py
HowToBeCalculated/Hands-On-Blockchain-for-Python-Developers
f9634259dd3dc509f36a5ccf3a5182c0d2ec79c4
[ "MIT" ]
42
2019-02-22T03:10:36.000Z
2022-02-20T04:47:04.000Z
import ipfsapi c = ipfsapi.connect() peer_id = c.key_list()['Keys'][1]['Id'] c.name_publish('QmYjYGKXqo36GDt6f6qvp9qKAsrc72R9y88mQSLvogu8Ub', key='another_key') result = c.cat('/ipns/' + peer_id) print(result)
19.454545
83
0.728972
0
0
0
0
0
0
0
0
79
0.369159
6093e7dfd679097b8c74873a9180892df2d03fa2
1,756
py
Python
magie/window.py
NiumXp/Magie
f0dc1d135274b5453fde659ba46f09f4b303c099
[ "MIT" ]
1
2020-10-26T17:16:52.000Z
2020-10-26T17:16:52.000Z
magie/window.py
NiumXp/Magie
f0dc1d135274b5453fde659ba46f09f4b303c099
[ "MIT" ]
null
null
null
magie/window.py
NiumXp/Magie
f0dc1d135274b5453fde659ba46f09f4b303c099
[ "MIT" ]
null
null
null
import pygame class Window: def __init__(self, title: str, dimension: tuple): self.surface = None self.initial_title = title self.initial_dimension = dimension @property def title(self) -> str: """Returns the title of the window.""" return pygame.disp...
27.4375
71
0.574601
1,735
0.988041
0
0
611
0.34795
0
0
338
0.192483
6093fc893ebcd37ea362c87f16107050ab4d6124
1,179
py
Python
tests/optimize/test_newton_raphson_hypo.py
dwillmer/fastats
5915423714b32ed7e953e1e3a311fe50c3f30943
[ "MIT" ]
26
2017-07-17T09:19:53.000Z
2021-11-30T01:36:56.000Z
tests/optimize/test_newton_raphson_hypo.py
dwillmer/fastats
5915423714b32ed7e953e1e3a311fe50c3f30943
[ "MIT" ]
320
2017-09-02T16:26:25.000Z
2021-07-28T05:19:49.000Z
tests/optimize/test_newton_raphson_hypo.py
dwillmer/fastats
5915423714b32ed7e953e1e3a311fe50c3f30943
[ "MIT" ]
13
2017-07-06T19:02:29.000Z
2020-01-22T11:36:34.000Z
from hypothesis import given, assume, settings from hypothesis.strategies import floats from numpy import cos from pytest import approx from fastats.optimise.newton_raphson import newton_raphson def func(x): return x**3 - x - 1 def less_or_equal(x, compared_to, rel=1e-6): return ((x < compared_to) ...
21.436364
71
0.676845
0
0
0
0
496
0.420696
0
0
130
0.110263
6096d49f97f28ce9400a93ea2f44d5ab24de77e4
2,701
py
Python
faceRecognition.py
sequery/Face-Recognition-Project
84d29322228e140c3d18c9c4d169819375a8e256
[ "MIT" ]
2
2020-12-23T13:39:54.000Z
2021-01-11T15:34:29.000Z
faceRecognition.py
sequery/Face-Recognition-Project
84d29322228e140c3d18c9c4d169819375a8e256
[ "MIT" ]
null
null
null
faceRecognition.py
sequery/Face-Recognition-Project
84d29322228e140c3d18c9c4d169819375a8e256
[ "MIT" ]
null
null
null
import cv2 import os import numpy as np # This module contains all common functions that are called in tester.py file # Given an image below function returns rectangle for face detected alongwith gray scale image def faceDetection(test_img): gray_img = cv2.cvtColor(test_img, cv2.COLOR_BGR2GRAY) # convert color...
41.553846
120
0.66716
0
0
0
0
0
0
0
0
1,043
0.386153
60985f194b3e048052f9cb34471c7382107a1768
2,704
py
Python
evaluation/datasets/build_dataset_images.py
hsiehkl/pdffigures2
9ff2978a097f3d500dcb840d31587c26d994cb68
[ "Apache-2.0" ]
296
2016-06-19T02:41:09.000Z
2022-03-10T05:46:08.000Z
evaluation/datasets/build_dataset_images.py
hsiehkl/pdffigures2
9ff2978a097f3d500dcb840d31587c26d994cb68
[ "Apache-2.0" ]
37
2016-07-07T00:11:53.000Z
2022-03-18T07:27:32.000Z
evaluation/datasets/build_dataset_images.py
hsiehkl/pdffigures2
9ff2978a097f3d500dcb840d31587c26d994cb68
[ "Apache-2.0" ]
81
2016-07-06T23:51:21.000Z
2022-03-19T13:50:25.000Z
import argparse from os import listdir, mkdir from os.path import join, isdir from subprocess import call import sys import datasets from shutil import which """ Script to use pdftoppm to turn the pdfs into single images per page """ def get_images(pdf_dir, output_dir, dpi, mono=True): if which("pdftoppm") is N...
36.053333
94
0.616864
0
0
0
0
0
0
0
0
618
0.22855
60989896ae8b3f69efc7d2350add8f6f19d85669
220
py
Python
sympy/physics/__init__.py
utkarshdeorah/sympy
dcdf59bbc6b13ddbc329431adf72fcee294b6389
[ "BSD-3-Clause" ]
1
2018-11-20T11:40:30.000Z
2018-11-20T11:40:30.000Z
sympy/physics/__init__.py
utkarshdeorah/sympy
dcdf59bbc6b13ddbc329431adf72fcee294b6389
[ "BSD-3-Clause" ]
14
2018-02-08T10:11:03.000Z
2019-04-16T10:32:46.000Z
sympy/physics/__init__.py
utkarshdeorah/sympy
dcdf59bbc6b13ddbc329431adf72fcee294b6389
[ "BSD-3-Clause" ]
1
2022-02-04T13:50:29.000Z
2022-02-04T13:50:29.000Z
""" A module that helps solving problems in physics. """ from . import units from .matrices import mgamma, msigma, minkowski_tensor, mdft __all__ = [ 'units', 'mgamma', 'msigma', 'minkowski_tensor', 'mdft', ]
16.923077
60
0.677273
0
0
0
0
0
0
0
0
103
0.468182
609c0b0efb59d40f1ab4f4aa98dc75bbea0cab6a
23
py
Python
py.py
avr8082/Hadoop
64b2036e752ac01b9e2256e20b659b1b56a274c9
[ "Apache-2.0" ]
null
null
null
py.py
avr8082/Hadoop
64b2036e752ac01b9e2256e20b659b1b56a274c9
[ "Apache-2.0" ]
null
null
null
py.py
avr8082/Hadoop
64b2036e752ac01b9e2256e20b659b1b56a274c9
[ "Apache-2.0" ]
null
null
null
printf("Hello world")
11.5
22
0.695652
0
0
0
0
0
0
0
0
13
0.565217