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
e2af09249eabdf6c6cfac1108013ff5630a16a85
371
py
Python
src/applications/reviews/urls.py
Alex-T13/sxw_data_conversion
ae70198960af1af004ad28b73d6e885c5afa74c2
[ "MIT" ]
null
null
null
src/applications/reviews/urls.py
Alex-T13/sxw_data_conversion
ae70198960af1af004ad28b73d6e885c5afa74c2
[ "MIT" ]
null
null
null
src/applications/reviews/urls.py
Alex-T13/sxw_data_conversion
ae70198960af1af004ad28b73d6e885c5afa74c2
[ "MIT" ]
null
null
null
from django.urls import path from applications.reviews import views urlpatterns = [ path('', views.AllPostView.as_view(), name='reviews'), path('add_post', views.AddPostView.as_view(), name='add_post'), path('post/<int:pk>', views.ShowPostView.as_view(), name='post'), path('update_post/<int:pk>', view...
33.727273
85
0.700809
0
0
0
0
0
0
0
0
87
0.234501
e2af6e967078f9ead2d03be919925056b558ae89
13,207
py
Python
tests/tests_with_server_and_cached_results/test_planner/test_canvas.py
aquariumbio/trident
d1712cae544103fb145e3171894e4b35141f6813
[ "MIT" ]
5
2019-01-21T11:12:05.000Z
2020-03-05T20:52:14.000Z
tests/tests_with_server_and_cached_results/test_planner/test_canvas.py
aquariumbio/pydent
d1712cae544103fb145e3171894e4b35141f6813
[ "MIT" ]
28
2020-11-18T02:07:09.000Z
2021-06-08T15:49:41.000Z
tests/tests_with_server_and_cached_results/test_planner/test_canvas.py
aquariumbio/trident
d1712cae544103fb145e3171894e4b35141f6813
[ "MIT" ]
2
2021-02-27T19:23:45.000Z
2021-09-14T10:29:07.000Z
import pytest from pydent.planner import Planner from pydent.planner import PlannerException from pydent.planner.utils import get_subgraphs def test_canvas_create(session): canvas = Planner(session) canvas.create() assert canvas.plan.id def test_raises_exception_wiring_with_no_afts(session): canvas...
31.595694
88
0.687211
0
0
0
0
0
0
0
0
2,808
0.212615
e2b0056c08e76535e1062630476c66ecd0573a56
1,021
py
Python
icekit/plugins/image/migrations/0015_auto_20170310_2004.py
ic-labs/django-icekit
c507ea5b1864303732c53ad7c5800571fca5fa94
[ "MIT" ]
52
2016-09-13T03:50:58.000Z
2022-02-23T16:25:08.000Z
icekit/plugins/image/migrations/0015_auto_20170310_2004.py
ic-labs/django-icekit
c507ea5b1864303732c53ad7c5800571fca5fa94
[ "MIT" ]
304
2016-08-11T14:17:30.000Z
2020-07-22T13:35:18.000Z
icekit/plugins/image/migrations/0015_auto_20170310_2004.py
ic-labs/django-icekit
c507ea5b1864303732c53ad7c5800571fca5fa94
[ "MIT" ]
12
2016-09-21T18:46:35.000Z
2021-02-15T19:37:50.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('icekit_plugins_image', '0014_image_external_ref'), ] operations = [ migrations.RenameField( model_name='image', ...
34.033333
197
0.643487
912
0.893242
0
0
0
0
0
0
385
0.377081
e2b14a40b24c80800d570e25ab804585deb5e038
3,531
py
Python
b3j0f/conf/parser/resolver/base.py
b3j0f/configuration
18dd6d5d6560f9b202793739e2330a2181163511
[ "MIT" ]
3
2016-02-18T18:58:24.000Z
2017-03-14T08:40:01.000Z
b3j0f/conf/parser/resolver/base.py
b3j0f/configuration
18dd6d5d6560f9b202793739e2330a2181163511
[ "MIT" ]
1
2016-02-18T15:27:35.000Z
2016-04-02T10:36:43.000Z
b3j0f/conf/parser/resolver/base.py
b3j0f/configuration
18dd6d5d6560f9b202793739e2330a2181163511
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # -------------------------------------------------------------------- # The MIT License (MIT) # # Copyright (c) 2015 Jonathan Labéjof <jonathan.labejof@gmail.com> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation fi...
35.666667
79
0.704616
1,160
0.328333
0
0
856
0.242287
0
0
2,777
0.786018
e2b187b27bc8c59eec3870b18d05e4350c4e270b
1,670
py
Python
statement_renamer/extractors/capitalone360.py
mkazin/StatementRenamer
ef03c71f0e627a15a4bba08e45bfa90ecacd28fc
[ "Apache-2.0" ]
null
null
null
statement_renamer/extractors/capitalone360.py
mkazin/StatementRenamer
ef03c71f0e627a15a4bba08e45bfa90ecacd28fc
[ "Apache-2.0" ]
15
2018-05-01T12:48:30.000Z
2021-05-14T02:52:48.000Z
statement_renamer/extractors/capitalone360.py
mkazin/StatementRenamer
ef03c71f0e627a15a4bba08e45bfa90ecacd28fc
[ "Apache-2.0" ]
1
2019-07-09T22:59:50.000Z
2019-07-09T22:59:50.000Z
from datetime import datetime from .extractor import DateExtractor, ExtractedData, ExtractorException class CapitalOne360ExtractorException(ExtractorException): def __init__(self, *args, **kwargs): ExtractorException.__init__(self, *args, **kwargs) class CapitalOne360DateExtractor(DateExtractor): ...
29.821429
83
0.592814
1,562
0.935329
0
0
104
0.062275
0
0
164
0.098204
e2b274a05a49e36d3f5f1623c359598acd291590
1,335
py
Python
setup.py
oeg-upm/ya2ro
799b59046c77a9277b92f2adfa1521d353dfe93d
[ "Apache-2.0" ]
1
2021-10-06T09:34:48.000Z
2021-10-06T09:34:48.000Z
setup.py
oeg-upm/ya2ro
799b59046c77a9277b92f2adfa1521d353dfe93d
[ "Apache-2.0" ]
30
2021-11-17T18:35:31.000Z
2022-03-28T10:46:45.000Z
setup.py
PavelAntonia/EELISA-research-object
799b59046c77a9277b92f2adfa1521d353dfe93d
[ "Apache-2.0" ]
1
2021-11-22T17:15:53.000Z
2021-11-22T17:15:53.000Z
from setuptools import find_packages, setup version = {} with open("src/ya2ro/ya2ro.py") as fp: exec(fp.read(), version) setup( name='ya2ro', author='Antonia Pavel', author_email='floriana.antonia.pavel@gmail.com', description='Tool to which you pass basic information of a project or a research ar...
37.083333
393
0.64794
0
0
0
0
0
0
0
0
782
0.585768
e2b3842f07dbcbc4ffcb207564d327421078951a
13,816
py
Python
google/ads/google_ads/v3/proto/resources/ad_group_simulation_pb2.py
jphanwebstaurant/google-ads-python
600812b2afcc4d57f00b47dfe436620ce50bfe9b
[ "Apache-2.0" ]
1
2019-11-30T23:42:39.000Z
2019-11-30T23:42:39.000Z
google/ads/google_ads/v3/proto/resources/ad_group_simulation_pb2.py
jphanwebstaurant/google-ads-python
600812b2afcc4d57f00b47dfe436620ce50bfe9b
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v3/proto/resources/ad_group_simulation_pb2.py
jphanwebstaurant/google-ads-python
600812b2afcc4d57f00b47dfe436620ce50bfe9b
[ "Apache-2.0" ]
1
2020-09-30T17:04:06.000Z
2020-09-30T17:04:06.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/ads/googleads_v3/proto/resources/ad_group_simulation.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf...
65.478673
2,070
0.799797
0
0
0
0
0
0
0
0
6,156
0.44557
e2b4314ef8bc163fb60b81c13fb7809c116746e2
1,958
py
Python
notebook/filter_usage.py
vhn0912/python-snippets
80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038
[ "MIT" ]
174
2018-05-30T21:14:50.000Z
2022-03-25T07:59:37.000Z
notebook/filter_usage.py
vhn0912/python-snippets
80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038
[ "MIT" ]
5
2019-08-10T03:22:02.000Z
2021-07-12T20:31:17.000Z
notebook/filter_usage.py
vhn0912/python-snippets
80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038
[ "MIT" ]
53
2018-04-27T05:26:35.000Z
2022-03-25T07:59:37.000Z
l = [-2, -1, 0, 1, 2] print(filter(lambda x: x % 2 == 0, l)) # <filter object at 0x10bb38580> print(type(filter(lambda x: x % 2 == 0, l))) # <class 'filter'> for i in filter(lambda x: x % 2 == 0, l): print(i) # -2 # 0 # 2 print(list(filter(lambda x: x % 2 == 0, l))) # [-2, 0, 2] print(list(filter(lambda x: x % ...
20.610526
66
0.528601
0
0
0
0
0
0
0
0
498
0.254341
e2b54a9ef95fb28def62c063b36281a5860a7e5a
3,487
py
Python
model/ANOVA.py
narayan954/fellowship-prediction
e6e58389533307fd79d28703fdff3c664242d8da
[ "MIT" ]
47
2021-09-23T00:29:13.000Z
2022-02-27T10:02:55.000Z
model/ANOVA.py
narayan954/fellowship-prediction
e6e58389533307fd79d28703fdff3c664242d8da
[ "MIT" ]
7
2021-09-22T19:50:35.000Z
2021-11-30T08:20:19.000Z
model/ANOVA.py
narayan954/fellowship-prediction
e6e58389533307fd79d28703fdff3c664242d8da
[ "MIT" ]
6
2021-09-21T22:34:37.000Z
2021-09-30T18:25:41.000Z
import pandas as pd import json # plots import matplotlib.pyplot as plt import seaborn as sns import scipy.stats as stats # Load and read json data df = pd.read_json('full_info.json', lines=True) user_name, commits, followers, repo, stars, forks, organizations, issues, contributions = \ [], [], [], [], [], [], [], [...
35.222222
104
0.70261
0
0
0
0
0
0
0
0
1,537
0.44078
e2b5c67e502f994e897f387d32a8d2db81b2df7b
3,400
py
Python
BeagleBone/Green/Grove/Software/Python/Grove_dht.py
zhanglongqi/cloud9-examples
db73b843a807361153a00e17a703206202cf73f8
[ "MIT" ]
37
2019-05-30T16:40:01.000Z
2021-11-29T10:34:36.000Z
BeagleBone/Green/Grove/Software/Python/Grove_dht.py
zhanglongqi/cloud9-examples
db73b843a807361153a00e17a703206202cf73f8
[ "MIT" ]
35
2019-04-03T17:35:26.000Z
2022-03-23T12:28:08.000Z
BeagleBone/Green/Grove/Software/Python/Grove_dht.py
zhanglongqi/cloud9-examples
db73b843a807361153a00e17a703206202cf73f8
[ "MIT" ]
40
2019-05-13T00:25:42.000Z
2022-03-23T05:13:15.000Z
import time import Adafruit_BBIO.GPIO as GPIO Debug = True class DHT(): global Debug def __init__(self, pin, type = "DHT22", count = 6): self._pin = pin self._type = type self._count = count self.firstreading = True self.MAXTIMINGS = 85 self._lastreadtime = int(...
28.813559
104
0.437059
3,170
0.932353
0
0
0
0
0
0
89
0.026176
e2b5f97fc73e692fc433612b8f6ee7e770757d71
31
py
Python
victoria/__init__.py
Vitens/Victoria
9f464105f00165ab3f9fd47837455cb68d4bd704
[ "Apache-2.0" ]
1
2020-09-08T15:02:06.000Z
2020-09-08T15:02:06.000Z
victoria/__init__.py
Vitens/Victoria
9f464105f00165ab3f9fd47837455cb68d4bd704
[ "Apache-2.0" ]
null
null
null
victoria/__init__.py
Vitens/Victoria
9f464105f00165ab3f9fd47837455cb68d4bd704
[ "Apache-2.0" ]
1
2020-01-08T18:32:25.000Z
2020-01-08T18:32:25.000Z
from .victoria import Victoria
15.5
30
0.83871
0
0
0
0
0
0
0
0
0
0
e2b8e2b89a1d109f4bd53134df5660df9751af92
545
py
Python
actstream/tests/test_apps.py
kimbugp/django-activity-stream
4e53e62adf2b82cd01ab70a033839ab61b2d087b
[ "BSD-3-Clause" ]
1,489
2015-01-02T02:46:30.000Z
2022-03-30T07:32:45.000Z
actstream/tests/test_apps.py
kimbugp/django-activity-stream
4e53e62adf2b82cd01ab70a033839ab61b2d087b
[ "BSD-3-Clause" ]
277
2015-01-02T19:54:09.000Z
2022-03-28T12:07:20.000Z
actstream/tests/test_apps.py
kimbugp/django-activity-stream
4e53e62adf2b82cd01ab70a033839ab61b2d087b
[ "BSD-3-Clause" ]
345
2015-01-13T01:02:42.000Z
2022-03-21T09:39:26.000Z
from unittest import TestCase from django.apps.registry import apps class ActstreamConfigTestCase(TestCase): def test_data_field_is_added_to_action_class_only_once_even_if_app_is_loaded_again(self): actstream_config = apps.get_app_config('actstream') actstream_config.ready() actstream_co...
28.684211
93
0.702752
473
0.86789
0
0
0
0
0
0
17
0.031193
2c3378c740ae8e44f9721f70acf8526419bc1dcc
26,445
py
Python
viz_platform/dynamic_datasets/model/classes.py
alexanderzimmerman/smart-vp-server
3aa57b5fa32e90a8406684d0d0a2860e224d7916
[ "Apache-2.0" ]
null
null
null
viz_platform/dynamic_datasets/model/classes.py
alexanderzimmerman/smart-vp-server
3aa57b5fa32e90a8406684d0d0a2860e224d7916
[ "Apache-2.0" ]
null
null
null
viz_platform/dynamic_datasets/model/classes.py
alexanderzimmerman/smart-vp-server
3aa57b5fa32e90a8406684d0d0a2860e224d7916
[ "Apache-2.0" ]
null
null
null
import numpy as np import scipy import scipy.special import scipy.interpolate import pickle import sklearn import matplotlib as mpl mpl.use('Agg') import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec import MySQLdb import sqlalchemy from sqlalchemy.ext.declarative import declarative_base import sqla...
49.615385
163
0.690187
24,066
0.91004
0
0
0
0
0
0
3,083
0.116582
2c33c3656f1470ff41575901a7b5533eecb2a153
20,247
py
Python
out.py
CYB3R73/hiro-bot
a1217d950b4bb228689b1a4b585cecbb064f3a2b
[ "Apache-2.0" ]
null
null
null
out.py
CYB3R73/hiro-bot
a1217d950b4bb228689b1a4b585cecbb064f3a2b
[ "Apache-2.0" ]
null
null
null
out.py
CYB3R73/hiro-bot
a1217d950b4bb228689b1a4b585cecbb064f3a2b
[ "Apache-2.0" ]
null
null
null
[2021-06-17T19:47:05.267189+03:00] DiscordPHP.INFO: gateway retrieved and set {"gateway":"wss://gateway.discord.gg/?v=6&encoding=json","session":{"total":1000,"remaining":983,"reset_after":62092171,"max_concurrency":1}} [] [2021-06-17T19:47:05.270016+03:00] DiscordPHP.INFO: starting connection to websocket {"gateway":"...
54.721622
426
0.703265
0
0
0
0
0
0
0
0
4,658
0.230059
2c3545b94818bca3c82a497be99bd356be44a3e7
7,592
py
Python
lokii/table.py
dorukerenaktas/lok
0fce198cfc3e5293a2666a66a5d1ee80b81fca48
[ "MIT" ]
1
2021-02-07T09:57:28.000Z
2021-02-07T09:57:28.000Z
lokii/table.py
dorukerenaktas/lokii
0fce198cfc3e5293a2666a66a5d1ee80b81fca48
[ "MIT" ]
null
null
null
lokii/table.py
dorukerenaktas/lokii
0fce198cfc3e5293a2666a66a5d1ee80b81fca48
[ "MIT" ]
null
null
null
import random from typing import Dict, Callable, List, Any, Optional import pandas as pd class Table: def __init__(self, name: str, outfile: str, index_cache_size: int, random_cache_size: int, debug: bool): """ D...
37.584158
107
0.601159
7,499
0.98775
0
0
0
0
0
0
2,360
0.310854
2c36eb0bb22cd8a2ed48443d1c87d8de5ed364ca
13,428
py
Python
powerspectrum.py
ronniyjoseph/Beam-Perturbations
0122fed7e3018f2e188e12b62ad760e11f6eb158
[ "MIT" ]
null
null
null
powerspectrum.py
ronniyjoseph/Beam-Perturbations
0122fed7e3018f2e188e12b62ad760e11f6eb158
[ "MIT" ]
4
2019-06-25T02:02:56.000Z
2019-10-24T08:12:41.000Z
powerspectrum.py
ronniyjoseph/Beam-Perturbations
0122fed7e3018f2e188e12b62ad760e11f6eb158
[ "MIT" ]
null
null
null
import numpy import powerbox import matplotlib from matplotlib import pyplot import matplotlib.colors as colors from plottools import colorbar from generaltools import symlog_bounds from radiotelescope import beam_width """ This file is going to contain all relevant power spectrum functions, i.e data gridding, (freq...
44.611296
126
0.629803
1,166
0.086833
0
0
0
0
0
0
991
0.073801
2c3893825d290c60d6561bfc9ae6b13bc756d82e
298
py
Python
AutotestWebD/apps/common/config/permissionConst.py
yangjourney/sosotest
2e88099a829749910ca325253c9b1a2e368d21a0
[ "MIT" ]
422
2019-08-18T05:04:20.000Z
2022-03-31T06:49:19.000Z
AutotestWebD/apps/common/config/permissionConst.py
LinSongJian1985/sosotest
091863dee531b5726650bb63efd6f169267cbeb4
[ "MIT" ]
10
2019-10-24T09:55:38.000Z
2021-09-29T17:28:43.000Z
AutotestWebD/apps/common/config/permissionConst.py
LinSongJian1985/sosotest
091863dee531b5726650bb63efd6f169267cbeb4
[ "MIT" ]
202
2019-08-18T05:04:27.000Z
2022-03-30T05:57:18.000Z
class PermissionConst: ''' 目前有几种权限: add / edit / check / copy / run / delete / distinct ''' urlAllPermission = "urlAllPermission" urlDefaultPermission = "urlDefaultPermission" user_permission = "user_permission" team_url_permission = "team_url_permission"
21.285714
57
0.671141
310
0.987261
0
0
0
0
0
0
180
0.573248
2c3a2df09b00838929b47a69b48dbd4d97a14392
3,089
py
Python
banditpylib/protocols/single_player.py
XiGYmax/banditpylib
07698a1c6b17720a8199dea76580546fe3dfb9be
[ "MIT" ]
null
null
null
banditpylib/protocols/single_player.py
XiGYmax/banditpylib
07698a1c6b17720a8199dea76580546fe3dfb9be
[ "MIT" ]
null
null
null
banditpylib/protocols/single_player.py
XiGYmax/banditpylib
07698a1c6b17720a8199dea76580546fe3dfb9be
[ "MIT" ]
null
null
null
from typing import List, Dict import numpy as np from absl import logging from banditpylib.bandits import Bandit from banditpylib.learners import Learner from .utils import Protocol class SinglePlayerProtocol(Protocol): """Single player protocol This protocol is used to simulate the ordinary single-player gam...
28.601852
79
0.672062
2,901
0.939139
0
0
102
0.03302
0
0
1,381
0.44707
2c3ba3a7de0cd2d1f09de245212daad861a07972
2,873
py
Python
3pxnet-inference/scripts/runValidation.py
SRavit1/3pxnet
1f81a2bdcbb97c42163e914b01dba4e6c73ade60
[ "MIT" ]
7
2020-12-11T16:06:03.000Z
2022-02-13T20:56:06.000Z
3pxnet-inference/scripts/runValidation.py
SRavit1/3pxnet
1f81a2bdcbb97c42163e914b01dba4e6c73ade60
[ "MIT" ]
4
2021-07-13T10:50:49.000Z
2021-08-13T16:06:20.000Z
3pxnet-inference/scripts/runValidation.py
SRavit1/3pxnet
1f81a2bdcbb97c42163e914b01dba4e6c73ade60
[ "MIT" ]
1
2021-07-06T03:41:55.000Z
2021-07-06T03:41:55.000Z
#!/usr/bin/env python ################################################################################ # MIT License # # Copyright (c) 2019 UCLA NanoCAD Laboratory # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "So...
34.614458
95
0.577445
1,126
0.391925
0
0
0
0
0
0
1,845
0.642186
2c3c00e8f94657bbf831d69554620cc2f14d7279
978
py
Python
setup.py
nous-consulting/basecamp-next
33851de091056a33663c9370f564cf3d41fe868f
[ "MIT" ]
2
2015-03-28T21:50:36.000Z
2015-09-10T22:29:17.000Z
setup.py
GetBlimp/basecamp-next
f7ebdd3da97ee13cd5ca18f440506fbbc84e7800
[ "MIT" ]
null
null
null
setup.py
GetBlimp/basecamp-next
f7ebdd3da97ee13cd5ca18f440506fbbc84e7800
[ "MIT" ]
4
2015-04-14T16:18:26.000Z
2021-03-28T19:00:21.000Z
import os try: from setuptools import setup except ImportError: from distutils.core import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() required = ['requests>=1.0.0', 'requests-oauth2>=0.2.0'] setup( name='basecampx', version='0.1.8', ...
27.166667
70
0.641104
0
0
0
0
0
0
0
0
436
0.445808
2c3c2a730b5f9ebaec5a9cf2153e02f5e709d39e
2,602
py
Python
crop_align/crop_align_affectnet.py
AutoLV/NoisyFER
353ff60bad90dd346cd6a8fc54d7a6acd5897044
[ "MIT" ]
15
2020-11-09T16:35:08.000Z
2022-02-12T14:53:11.000Z
crop_align/crop_align_affectnet.py
AutoLV/NoisyFER
353ff60bad90dd346cd6a8fc54d7a6acd5897044
[ "MIT" ]
1
2021-07-21T03:33:46.000Z
2021-08-08T20:24:12.000Z
crop_align/crop_align_affectnet.py
AutoLV/NoisyFER
353ff60bad90dd346cd6a8fc54d7a6acd5897044
[ "MIT" ]
3
2021-03-30T10:21:52.000Z
2021-09-12T15:55:32.000Z
import sys rootPath = '/Users/siwei/Desktop/noisyFER' sys.path.append(rootPath) import os from tqdm import tqdm import cv2 import csv import numpy as np import argparse from crop_align.align import MyFaceAligner parser = argparse.ArgumentParser() parser.add_argument("--root", type=str, default='datasets/affectnet')...
35.162162
103
0.618755
0
0
0
0
0
0
0
0
699
0.26864
2c3c89d30724c38d60dae13286e13556b05ebcb3
640
py
Python
bot/cli.py
LukasForst/toggl-wire-bot
1a242ef281b3cb501f30a1acee9cda7fd2cb2a84
[ "MIT" ]
null
null
null
bot/cli.py
LukasForst/toggl-wire-bot
1a242ef281b3cb501f30a1acee9cda7fd2cb2a84
[ "MIT" ]
null
null
null
bot/cli.py
LukasForst/toggl-wire-bot
1a242ef281b3cb501f30a1acee9cda7fd2cb2a84
[ "MIT" ]
null
null
null
#!/usr/bin/env python import argparse from Toggl.togglApi import getTogglReport if __name__ == '__main__': parser = argparse.ArgumentParser(description='Obtain report from Toggl.') parser.add_argument("--toggl-token", "-tt", help="Set Toggl token.") parser.add_argument("--toggl-workspace", "-w", help="S...
32
96
0.698438
0
0
0
0
0
0
0
0
220
0.34375
2c3e24b4b6d91fcd05c76dfb86067fae1b3b498e
3,746
py
Python
a_storage/codec/codec_agroup.py
praefrontalis/Anfisa-Annotations
b4127c68e3696b75b2972f6759437034cc56f8e3
[ "Apache-2.0" ]
null
null
null
a_storage/codec/codec_agroup.py
praefrontalis/Anfisa-Annotations
b4127c68e3696b75b2972f6759437034cc56f8e3
[ "Apache-2.0" ]
3
2022-03-28T13:44:24.000Z
2022-03-28T13:53:57.000Z
a_storage/codec/codec_agroup.py
praefrontalis/Anfisa-Annotations
b4127c68e3696b75b2972f6759437034cc56f8e3
[ "Apache-2.0" ]
3
2019-02-18T17:05:06.000Z
2022-03-22T19:42:38.000Z
from ._codec_data import _CodecData #=============================================== class CodecAGroup(_CodecData): def __init__(self, master, parent, schema_instr, default_name): self.mGroupName = "?" _CodecData.__init__(self, master, parent, schema_instr, default_name) self.mGroup = self._...
38.618557
77
0.540577
3,660
0.977042
0
0
0
0
0
0
242
0.064602
2c3ea335989982f0ae8f5847cf419f798c2e40fa
3,528
py
Python
app/customer/models/bottle_message.py
B-ROY/TESTGIT
40221cf254c90d37d21afb981635740aebf11949
[ "Apache-2.0" ]
2
2017-12-02T13:58:30.000Z
2018-08-02T17:07:59.000Z
app/customer/models/bottle_message.py
B-ROY/TESTGIT
40221cf254c90d37d21afb981635740aebf11949
[ "Apache-2.0" ]
null
null
null
app/customer/models/bottle_message.py
B-ROY/TESTGIT
40221cf254c90d37d21afb981635740aebf11949
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 import random from mongoengine import * from base.settings import CHATPAMONGO import datetime connect(CHATPAMONGO.db, host=CHATPAMONGO.host, port=CHATPAMONGO.port, username=CHATPAMONGO.username, password=CHATPAMONGO.password) class BottleMessageText(Document): USER_TYPE = [ (0, "主...
23.837838
100
0.622166
3,459
0.926849
0
0
1,904
0.510182
0
0
463
0.124062
2c3fd53f9be0ab6b23ce5e13685ed3cedb8f6c3f
1,440
py
Python
app/twitter_client/services/twitter.py
TennaGraph/TennaGraph
002998d94300ee67168f1a8164c0e6bc86836e1f
[ "Apache-2.0" ]
7
2018-11-13T17:39:15.000Z
2019-03-27T04:55:24.000Z
app/twitter_client/services/twitter.py
TennaGraph/TennaGraph
002998d94300ee67168f1a8164c0e6bc86836e1f
[ "Apache-2.0" ]
72
2018-11-09T14:20:25.000Z
2020-06-05T19:28:19.000Z
app/twitter_client/services/twitter.py
TennaGraph/TennaGraph
002998d94300ee67168f1a8164c0e6bc86836e1f
[ "Apache-2.0" ]
3
2018-11-19T19:10:39.000Z
2019-08-23T20:52:23.000Z
# Stdlib import logging # Django imports from django.conf import settings # Pip imports import twitter logger = logging.getLogger(__name__) class TwitterClient: api = None def __init__(self): self.api = twitter.Api(consumer_key=settings.TWITTER_CONSUMER_KEY, ...
27.692308
99
0.609028
1,294
0.898611
0
0
0
0
0
0
336
0.233333
2c4009a74bdc9f67bd15c60010e651ad516d4094
5,834
py
Python
app/unit_test_text_buffer.py
nthparameter/ci_edit
e9227fbdf99ac1c0afa3a5af4e458409d9c6ce55
[ "Apache-2.0" ]
229
2017-05-25T04:59:28.000Z
2022-03-30T17:35:33.000Z
app/unit_test_text_buffer.py
nthparameter/ci_edit
e9227fbdf99ac1c0afa3a5af4e458409d9c6ce55
[ "Apache-2.0" ]
185
2017-06-08T17:48:48.000Z
2022-03-15T12:25:18.000Z
app/unit_test_text_buffer.py
nthparameter/ci_edit
e9227fbdf99ac1c0afa3a5af4e458409d9c6ce55
[ "Apache-2.0" ]
76
2017-05-25T17:16:21.000Z
2022-03-12T23:48:06.000Z
# Copyright 2016 Google 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 writing, ...
37.883117
86
0.495886
5,067
0.868529
0
0
0
0
0
0
1,584
0.271512
2c4056e4df5f108b083b534021811e7cb612782d
1,399
py
Python
watchmate/user_app/tests.py
bvmcardoso/drf_python_api
cbb7289594287039a133131b73bdc75c8c4e0530
[ "MIT" ]
null
null
null
watchmate/user_app/tests.py
bvmcardoso/drf_python_api
cbb7289594287039a133131b73bdc75c8c4e0530
[ "MIT" ]
null
null
null
watchmate/user_app/tests.py
bvmcardoso/drf_python_api
cbb7289594287039a133131b73bdc75c8c4e0530
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from django.urls import reverse from rest_framework import status from rest_framework.authtoken.models import Token from rest_framework.test import APITestCase class RegisterTestCase(APITestCase): def test_register(self): data = { 'username': 'test...
31.795455
89
0.647605
1,181
0.844174
0
0
0
0
0
0
196
0.1401
2c414ad869d7c8870326e68eef3da496a4777bf5
663
py
Python
reports/views.py
erinspace/rivannastreamwatch
23bfcee247d539449fca2ab9357bd450aa0a431d
[ "MIT" ]
null
null
null
reports/views.py
erinspace/rivannastreamwatch
23bfcee247d539449fca2ab9357bd450aa0a431d
[ "MIT" ]
null
null
null
reports/views.py
erinspace/rivannastreamwatch
23bfcee247d539449fca2ab9357bd450aa0a431d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.contrib.auth.models import User from rest_framework.generics import ListCreateAPIView, RetrieveUpdateDestroyAPIView, RetrieveAPIView from reports.models import Report from reports.serializers import ReportSerializer, UserSerializer class R...
26.52
100
0.803922
343
0.517345
0
0
0
0
0
0
23
0.034691
2c415bbaa990e45ba44ba5f6b832f5d35a83609a
67,578
py
Python
qt4a/androiddriver/webdriver.py
qtateam/QT4A
3852e1a7740229e9930c610072bbbc700fb13f81
[ "BSD-3-Clause" ]
1
2018-11-27T03:32:38.000Z
2018-11-27T03:32:38.000Z
qt4a/androiddriver/webdriver.py
qtateam/QT4A
3852e1a7740229e9930c610072bbbc700fb13f81
[ "BSD-3-Clause" ]
null
null
null
qt4a/androiddriver/webdriver.py
qtateam/QT4A
3852e1a7740229e9930c610072bbbc700fb13f81
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Tencent is pleased to support the open source community by making QTA available. # Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved. # Licensed under the BSD 3-Clause License (the "License"); you may not use this # file except in compliance with the License. You may...
32.287625
160
0.40892
1,947
0.028706
0
0
0
0
0
0
66,396
0.978917
2c43035692fa6a7c9793606b200857a4997d78db
3,646
py
Python
names_generator/__init__.py
glentner/names_generator
c3526a90f3c0f8d2b388542dc3770baa4cc455fe
[ "Apache-2.0" ]
1
2020-12-03T08:52:58.000Z
2020-12-03T08:52:58.000Z
names_generator/__init__.py
glentner/names_generator
c3526a90f3c0f8d2b388542dc3770baa4cc455fe
[ "Apache-2.0" ]
null
null
null
names_generator/__init__.py
glentner/names_generator
c3526a90f3c0f8d2b388542dc3770baa4cc455fe
[ "Apache-2.0" ]
2
2021-01-16T08:52:33.000Z
2022-02-24T13:53:58.000Z
# This program is free software: you can redistribute it and/or modify it under the # terms of the Apache License (v2.0) as published by the Apache Software Foundation. # # This program is distributed in the hope that it will be useful, but WITHOUT ANY # WARRANTY; without even the implied warranty of MERCHANTABILITY or...
28.708661
93
0.694185
580
0.159078
0
0
0
0
0
0
1,811
0.496709
2c431d85cef6b81fa14e9c6e9f5d7057ee4c9176
849
py
Python
cotd/plugins/motivationv2.py
5h4d0w4rt/cotd-telegram-bot
2185353047557aa0864d64d464597993d0b5eb02
[ "MIT" ]
1
2021-01-14T10:03:49.000Z
2021-01-14T10:03:49.000Z
cotd/plugins/motivationv2.py
5h4d0w4rt/cotd-telegram-bot
2185353047557aa0864d64d464597993d0b5eb02
[ "MIT" ]
2
2020-09-13T00:47:54.000Z
2021-09-25T16:14:35.000Z
cotd/plugins/motivationv2.py
5h4d0w4rt/cotd-telegram-bot
2185353047557aa0864d64d464597993d0b5eb02
[ "MIT" ]
1
2020-09-12T22:34:04.000Z
2020-09-12T22:34:04.000Z
import io import typing import uuid import ratelimit import telegram import telegram.ext from cotd.plugins.helpers import make_image from PIL import Image ONE_SECOND = 1 def motivation_inline( update: telegram.Update, context: telegram.ext.CallbackContext ) -> telegram.InlineQueryResultCachedPhoto: db = con...
24.257143
83
0.714959
0
0
0
0
0
0
0
0
42
0.04947
2c4650e94fee91b5f49f98368ac81c86ddacf390
265
py
Python
torabot/lang/targets/test/ut.py
Answeror/torabot
b6260190ec1f0dc8bf3f7ba3512c0522668c59ed
[ "MIT" ]
42
2015-01-20T10:45:08.000Z
2021-04-17T05:10:27.000Z
torabot/lang/targets/test/ut.py
Answeror/torabot
b6260190ec1f0dc8bf3f7ba3512c0522668c59ed
[ "MIT" ]
4
2015-01-23T05:40:44.000Z
2016-12-19T03:52:20.000Z
torabot/lang/targets/test/ut.py
Answeror/torabot
b6260190ec1f0dc8bf3f7ba3512c0522668c59ed
[ "MIT" ]
8
2015-05-07T03:51:05.000Z
2019-03-20T05:40:47.000Z
import os from ...envs.fs import Env CURRENT_PATH = os.path.abspath(os.path.dirname(__file__)) def make_fs_env(): return Env(CURRENT_PATH) def read(name): with open(os.path.join(CURRENT_PATH, name), 'rb') as f: return f.read().decode('utf-8')
17.666667
59
0.675472
0
0
0
0
0
0
0
0
11
0.041509
2c4678c8414aab0401b6d84d47eed85060f96ad3
1,844
py
Python
btorch/device.py
vladstreltsin/blox
2822b84220e512c8012b1b4ec51d6e534bd4d652
[ "MIT" ]
null
null
null
btorch/device.py
vladstreltsin/blox
2822b84220e512c8012b1b4ec51d6e534bd4d652
[ "MIT" ]
null
null
null
btorch/device.py
vladstreltsin/blox
2822b84220e512c8012b1b4ec51d6e534bd4d652
[ "MIT" ]
null
null
null
from __future__ import annotations from blox_old.core.engine.device import BlockDevice from blox_old.btorch.module import TorchModule, TorchModuleError import torch from blox_old.utils import raise_if from blox_old.core.block.base import Block import typing as T class TorchCudaError(TorchModuleError): pass def ...
32.350877
118
0.66974
1,498
0.812364
0
0
76
0.041215
0
0
264
0.143167
2c46b8c428613c0415bcebe2afa738881759f61c
2,987
py
Python
DARPAScripts/farsight_Split_Montage.py
tostathaina/farsight
7e9d6d15688735f34f7ca272e4e715acd11473ff
[ "Apache-2.0" ]
8
2016-07-22T11:24:19.000Z
2021-04-10T04:22:31.000Z
DARPAScripts/farsight_Split_Montage.py
YanXuHappygela/Farsight
1711b2a1458c7e035edd21fe0019a1f7d23fcafa
[ "Apache-2.0" ]
null
null
null
DARPAScripts/farsight_Split_Montage.py
YanXuHappygela/Farsight
1711b2a1458c7e035edd21fe0019a1f7d23fcafa
[ "Apache-2.0" ]
7
2016-07-21T07:39:17.000Z
2020-01-29T02:03:27.000Z
import ij import os import math global foldername foldername=None tilesize=1024 ############################## ''' Start of actual script ''' ############################## #fd = OpenDialog("Save Tiles In",None) prefixval = 'Chan3_' fd= DirectoryChooser("Save Tiles In") foldername= fd.getDirectory() if foldername: ...
31.776596
259
0.668899
0
0
0
0
0
0
0
0
1,194
0.399732
2c46ebea0fe0e050587aad5c5ac6a903aa168e9c
21,090
py
Python
renderSDK/Rayvision.py
wangshunhui/renderSDK
b512c43fd0111c114b6abc6398c4609b758436e4
[ "Apache-2.0" ]
2
2020-02-12T09:57:46.000Z
2020-04-03T07:40:07.000Z
renderSDK/Rayvision.py
wangshunhui/renderSDK
b512c43fd0111c114b6abc6398c4609b758436e4
[ "Apache-2.0" ]
null
null
null
renderSDK/Rayvision.py
wangshunhui/renderSDK
b512c43fd0111c114b6abc6398c4609b758436e4
[ "Apache-2.0" ]
1
2020-04-16T11:19:58.000Z
2020-04-16T11:19:58.000Z
#!/usr/bin/env python # -*- coding:utf-8 -*- """ Main """ from .compat import * import os import sys import logging import codecs import time from .RayvisionUtil import get_os, hump2underline, cg_id_name_dict, decorator_use_in_class, format_time from .RayvisionAPI import RayvisionAPI from .RayvisionJob import Rayvi...
46.048035
233
0.625273
20,506
0.970836
0
0
10,598
0.501752
0
0
7,790
0.36881
2c46f1ebeef6b35cb302f6dc0cc36da77f79c3c9
2,943
py
Python
python/mxnet/gluon/data/dataset.py
Adesun/incubator-mxnet
2586c6691ca74d2df455a49cad964bcac8e34f25
[ "Apache-2.0" ]
116
2018-01-01T03:53:49.000Z
2021-09-06T07:09:09.000Z
python/mxnet/gluon/data/dataset.py
wkcn/incubator-mxnet
2586c6691ca74d2df455a49cad964bcac8e34f25
[ "Apache-2.0" ]
null
null
null
python/mxnet/gluon/data/dataset.py
wkcn/incubator-mxnet
2586c6691ca74d2df455a49cad964bcac8e34f25
[ "Apache-2.0" ]
40
2018-01-16T04:12:39.000Z
2022-02-25T11:53:17.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 u...
31.645161
81
0.652396
1,984
0.674142
0
0
0
0
0
0
1,659
0.56371
2c473e9063a2d9474f913c2996b82cf153785914
576
py
Python
party_parrot/_slack_parrots.py
tylercroberts/PartyParrot
89894ea054a466f2ec1c5a620fd312cdc2008a77
[ "BSD-3-Clause" ]
null
null
null
party_parrot/_slack_parrots.py
tylercroberts/PartyParrot
89894ea054a466f2ec1c5a620fd312cdc2008a77
[ "BSD-3-Clause" ]
null
null
null
party_parrot/_slack_parrots.py
tylercroberts/PartyParrot
89894ea054a466f2ec1c5a620fd312cdc2008a77
[ "BSD-3-Clause" ]
null
null
null
""" Parrots ~~~~~~~ """ from party_parrot._utils import get_parrots slack_parrots = """ :aussie_parrot: :blonde_sassy_parrot: :bored_parrot: :chill_parrot: :christmas_parrot: :coffee_parrot: :confused_parrot: :conga_parrot: :dark_beer_parrot: :deal_with_it_parrot: :angel_parrot: :fieri_parrot: :goth_parrot: ...
32
107
0.776042
0
0
0
0
0
0
0
0
475
0.824653
2c4810e4fa88798c039566c38fcfb8acd43be82c
13,764
py
Python
scqubits/io_utils/fileio_backends.py
dmtvanzanten/scqubits
d4d8a0f71ac91077594a6173348279aa490ed048
[ "BSD-3-Clause" ]
null
null
null
scqubits/io_utils/fileio_backends.py
dmtvanzanten/scqubits
d4d8a0f71ac91077594a6173348279aa490ed048
[ "BSD-3-Clause" ]
null
null
null
scqubits/io_utils/fileio_backends.py
dmtvanzanten/scqubits
d4d8a0f71ac91077594a6173348279aa490ed048
[ "BSD-3-Clause" ]
null
null
null
# fileio_backends.py # # This file is part of scqubits. # # Copyright (c) 2019 and later, Jens Koch and Peter Groszkowski # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. ###############################...
35.84375
89
0.613266
12,281
0.892255
0
0
3,105
0.225588
0
0
3,802
0.276228
2c4c3f89728261e77401999119b2d00bd703d99b
7,855
py
Python
backend/tests/baserow/api/groups/test_group_user_views.py
cjh0613/baserow
62871f5bf53c9d25446976031aacb706c0abe584
[ "MIT" ]
839
2020-07-20T13:29:34.000Z
2022-03-31T21:09:16.000Z
backend/tests/baserow/api/groups/test_group_user_views.py
cjh0613/baserow
62871f5bf53c9d25446976031aacb706c0abe584
[ "MIT" ]
28
2020-08-07T09:23:58.000Z
2022-03-01T22:32:40.000Z
backend/tests/baserow/api/groups/test_group_user_views.py
cjh0613/baserow
62871f5bf53c9d25446976031aacb706c0abe584
[ "MIT" ]
79
2020-08-04T01:48:01.000Z
2022-03-27T13:30:54.000Z
import pytest from rest_framework.status import ( HTTP_200_OK, HTTP_204_NO_CONTENT, HTTP_400_BAD_REQUEST, HTTP_404_NOT_FOUND, ) from django.shortcuts import reverse from baserow.core.handler import CoreHandler from baserow.core.models import GroupUser from baserow.core.trash.handler import TrashHandl...
40.282051
84
0.711903
0
0
0
0
7,520
0.957352
0
0
1,718
0.218714
2c4c4b657eb3513f16420ddec79e50b77562fbf1
4,636
py
Python
superscript/security/pwdcheck.py
AngeIo/projet_python_netway
629c7e8573e4630a5da64fd7166f2b3b6a7697d9
[ "Unlicense" ]
null
null
null
superscript/security/pwdcheck.py
AngeIo/projet_python_netway
629c7e8573e4630a5da64fd7166f2b3b6a7697d9
[ "Unlicense" ]
null
null
null
superscript/security/pwdcheck.py
AngeIo/projet_python_netway
629c7e8573e4630a5da64fd7166f2b3b6a7697d9
[ "Unlicense" ]
null
null
null
# Ce fichier contient une fonction permettant de vérifier si le mot de passe est assez complexe et s'il peut être brute force grâce à un dictonnaire de mots communs # Permet la recherche import re # Permet de faire une pause dans le programme import time # Importe nos fonctions utiles import sys sys.path.insert(0, '...
40.313043
266
0.628991
0
0
0
0
0
0
0
0
2,680
0.575972
2c4d45ff10bd4e69f4855abfc1937bd80b3bc0d3
524
py
Python
lib/galaxy_ext/cwl/handle_outputs.py
hmenager/galaxy
d65d6b586c4760ff65cf294d2587e729b65e7fea
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy_ext/cwl/handle_outputs.py
hmenager/galaxy
d65d6b586c4760ff65cf294d2587e729b65e7fea
[ "CC-BY-3.0" ]
4
2021-02-08T20:28:34.000Z
2022-03-02T02:52:55.000Z
lib/galaxy_ext/cwl/handle_outputs.py
hmenager/galaxy
d65d6b586c4760ff65cf294d2587e729b65e7fea
[ "CC-BY-3.0" ]
1
2018-05-30T07:38:54.000Z
2018-05-30T07:38:54.000Z
""" """ import logging import os import sys # insert *this* galaxy before all others on sys.path sys.path.insert(1, os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir))) from galaxy.tool_util.cwl import handle_outputs # ensure supported version assert sys.version_info[:2] >= (2, 6) and sys...
23.818182
136
0.727099
0
0
0
0
0
0
0
0
133
0.253817
2c4e1b3188875d9cc7ead2bb542721689bd51cbf
2,107
py
Python
util/trig.py
alemigliardi/talkbot
371f2c9e7240a4438cbb202865cf18dbefb0c352
[ "MIT" ]
2
2021-08-07T12:01:26.000Z
2022-01-31T13:48:25.000Z
util/trig.py
alemigliardi/talkbot
371f2c9e7240a4438cbb202865cf18dbefb0c352
[ "MIT" ]
null
null
null
util/trig.py
alemigliardi/talkbot
371f2c9e7240a4438cbb202865cf18dbefb0c352
[ "MIT" ]
1
2021-08-07T12:01:28.000Z
2021-08-07T12:01:28.000Z
import os import re import asyncio from pyrogram.types import Message from util.message import send_media class Trigger: def __init__(self, regex:str, response:str = "", from_self:bool = False, from_others:bool = True, mention:bool = True, media_path:str = "", auto_vanish:int = -1, ): self.re...
24.218391
79
0.688657
1,967
0.933555
0
0
252
0.119601
330
0.156621
253
0.120076
2c4fccadd03cd528d853e80ad9d2e69c96250a99
3,185
py
Python
back-app/research/form_vision/template_matching.py
AntoineAwaida/ad-covia
1dd10a0361421149e6e318fee146ccf370a81074
[ "MIT" ]
1
2020-04-15T13:48:34.000Z
2020-04-15T13:48:34.000Z
back-app/research/form_vision/template_matching.py
AntoineAwaida/ad-covia
1dd10a0361421149e6e318fee146ccf370a81074
[ "MIT" ]
1
2022-02-13T09:58:43.000Z
2022-02-13T09:58:43.000Z
back-app/research/form_vision/template_matching.py
AntoineAwaida/ad-covia
1dd10a0361421149e6e318fee146ccf370a81074
[ "MIT" ]
null
null
null
import cv2 from typing import Tuple, Generator from research.form_vision.image import Image, NormalizedCoords import numpy as np class TemplateMatcher: width = 800 def __init__( self, template_image: Image, reference_region: Tuple[NormalizedCoords, NormalizedCoords] ): self._template = te...
44.236111
96
0.663736
3,053
0.958556
416
0.130612
0
0
0
0
0
0
2c5166b8cabcb5a4f633be4f4e1a16e185d3520c
763
py
Python
src/run.py
ShaghayeghAmeri/test
968eea52ce0ea309f020add61ab597ca402feb14
[ "MIT" ]
null
null
null
src/run.py
ShaghayeghAmeri/test
968eea52ce0ea309f020add61ab597ca402feb14
[ "MIT" ]
null
null
null
src/run.py
ShaghayeghAmeri/test
968eea52ce0ea309f020add61ab597ca402feb14
[ "MIT" ]
null
null
null
import os import emoji import telebot from loguru import logger from src.utils.constant import keyboards from src.utils.io import write_json class But: """ telegram bot to randomly connect two strangers """ def __init__(self): self.bot = telebot.TeleBot(os.environ['BOT_TOKEN']) self....
23.84375
89
0.673657
560
0.733945
0
0
0
0
0
0
116
0.152031
2c52b06ffe9aba58e5600ed9c53a392211b57c2c
713
py
Python
PythonFiles/MCQGame.py
IamVaibhavsar/Python_Files
283d73929a3e11955c71499407c4f8bff56e4273
[ "MIT" ]
null
null
null
PythonFiles/MCQGame.py
IamVaibhavsar/Python_Files
283d73929a3e11955c71499407c4f8bff56e4273
[ "MIT" ]
null
null
null
PythonFiles/MCQGame.py
IamVaibhavsar/Python_Files
283d73929a3e11955c71499407c4f8bff56e4273
[ "MIT" ]
1
2019-07-26T15:25:21.000Z
2019-07-26T15:25:21.000Z
from MCQGame2 import Question MCQ=[ "What color of apples? \na)red\nb)blue\nc)green\nd)yellow", "Half adder has how many inputs?\na)1\nb)2\nc)3\nd)4", "which operator can be overloaded?\na).\nb).*\nc)::\nd)+" ] questions = [ Question(MCQ[0],"a"), #Objects of class Question Question...
31
82
0.601683
0
0
0
0
0
0
0
0
289
0.40533
2c52e41b928f577557908dcb035f2bea35861221
5,286
py
Python
gada/main.py
gadalang/gada
2dd4f4dfd5b7390c06307040cad23203a015f7a4
[ "MIT" ]
null
null
null
gada/main.py
gadalang/gada
2dd4f4dfd5b7390c06307040cad23203a015f7a4
[ "MIT" ]
null
null
null
gada/main.py
gadalang/gada
2dd4f4dfd5b7390c06307040cad23203a015f7a4
[ "MIT" ]
1
2021-06-15T13:52:33.000Z
2021-06-15T13:52:33.000Z
from __future__ import annotations __all__ = ["run", "main"] import os import sys import io import argparse from typing import Optional from gada import component, runners, datadir def split_unknown_args(argv: list[str]) -> tuple[list[str], list[str]]: """Separate known command-line arguments from unknown one. ...
30.034091
90
0.541241
0
0
0
0
0
0
0
0
3,646
0.689747
2c542dbe200f504a92d4395bd7676e95bb9c6b42
2,912
py
Python
Example_Cases/Gypsum_Model/Scripts/external_gyp1d.py
koverholt/bayes-fire
4333cdf7b93bf77d8e021f0c4a1931a77056534d
[ "BSD-3-Clause" ]
6
2016-06-19T12:44:22.000Z
2021-12-21T07:01:38.000Z
Example_Cases/Gypsum_Model/Scripts/external_gyp1d.py
koverholt/bayes-fire
4333cdf7b93bf77d8e021f0c4a1931a77056534d
[ "BSD-3-Clause" ]
null
null
null
Example_Cases/Gypsum_Model/Scripts/external_gyp1d.py
koverholt/bayes-fire
4333cdf7b93bf77d8e021f0c4a1931a77056534d
[ "BSD-3-Clause" ]
2
2017-10-15T02:37:25.000Z
2022-03-04T16:22:44.000Z
#!/usr/bin/env python """Module for gyp1d functions""" import numpy as np import platform import subprocess import os import data_expt as de # Detect operating system op_sys = platform.system() def gen_input( k1, k2, k3, k4, rho_0, c_p1, c_p2, c_p3, eps, Y1_0, A1, A2, E1, E2, dh1, dh2 ): """Genera...
26
76
0.457074
0
0
0
0
0
0
0
0
1,394
0.478709
2c54677ea98da9a5515de3a923f5ef0038257527
6,356
py
Python
datacollector/collector/maincollector.py
samharju/5GDrones-data-collector
331d8c433f5b46eaba62a55c39bbe12d365b2474
[ "Apache-2.0" ]
2
2021-04-26T07:08:26.000Z
2021-05-01T16:01:26.000Z
datacollector/collector/maincollector.py
samharju/5GDrones-data-collector
331d8c433f5b46eaba62a55c39bbe12d365b2474
[ "Apache-2.0" ]
null
null
null
datacollector/collector/maincollector.py
samharju/5GDrones-data-collector
331d8c433f5b46eaba62a55c39bbe12d365b2474
[ "Apache-2.0" ]
1
2021-05-01T15:04:46.000Z
2021-05-01T15:04:46.000Z
# © 2021 Nokia # # Licensed under the Apache license, version 2.0 # SPDX-License-Identifier: Apache-2.0 """Class for handling collector threads.""" import logging import time from datetime import datetime from threading import Event, Thread from datacollector.collector.connection_config_parser import ConnectionConfig...
35.50838
118
0.637823
5,886
0.925908
0
0
455
0.071575
0
0
1,912
0.300771
2c55b9fde76dce6c7aa8c956dc28575c3c2afb98
5,959
py
Python
utils/memory.py
alanmackey/DRL-for-BG-Control
a7c5015b828c250205b9ecb1bf4bdb928e0d975f
[ "MIT" ]
null
null
null
utils/memory.py
alanmackey/DRL-for-BG-Control
a7c5015b828c250205b9ecb1bf4bdb928e0d975f
[ "MIT" ]
null
null
null
utils/memory.py
alanmackey/DRL-for-BG-Control
a7c5015b828c250205b9ecb1bf4bdb928e0d975f
[ "MIT" ]
null
null
null
import numpy as np import torch class ReplayBuffer(object): def __init__( self, state_dim, action_dim, hidden_size, max_size=int(5e3), recurrent=False ): self.max_size = int(max_size) self.ptr = 0 self.size = 0 self.recurrent = recurrent s...
38.445161
80
0.538345
5,919
0.993287
0
0
0
0
0
0
818
0.137271
2c55cb60066b63268c6e425f58d7bb8433e5fe69
1,226
py
Python
src/five/grok/subscribers.py
zopefoundation/five.grok
d5fcbe2e081a4cec96d8ec658498f9fc33963bf9
[ "ZPL-2.1" ]
1
2016-10-26T16:45:57.000Z
2016-10-26T16:45:57.000Z
src/five/grok/subscribers.py
zopefoundation/five.grok
d5fcbe2e081a4cec96d8ec658498f9fc33963bf9
[ "ZPL-2.1" ]
2
2021-01-05T14:30:32.000Z
2021-03-25T18:38:06.000Z
src/five/grok/subscribers.py
zopefoundation/five.grok
d5fcbe2e081a4cec96d8ec658498f9fc33963bf9
[ "ZPL-2.1" ]
2
2015-04-03T04:41:12.000Z
2019-08-20T08:02:52.000Z
############################################################################## # # Copyright (c) 2006-2009 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THI...
38.3125
78
0.675367
0
0
0
0
402
0.327896
0
0
904
0.737357
2c566a2dcb7cec78c109c0686b33ccf0da89a5b9
1,043
py
Python
TilingDomains/main.py
ClathomasPrime/linear-prefs
e700589a82667ca0f307459816e4f5b211fbd7d2
[ "BSD-3-Clause" ]
null
null
null
TilingDomains/main.py
ClathomasPrime/linear-prefs
e700589a82667ca0f307459816e4f5b211fbd7d2
[ "BSD-3-Clause" ]
null
null
null
TilingDomains/main.py
ClathomasPrime/linear-prefs
e700589a82667ca0f307459816e4f5b211fbd7d2
[ "BSD-3-Clause" ]
null
null
null
from GraphDraw import * from Graph import * from Implicit import * from impExamples import * import os import errno flags = os.O_CREAT | os.O_EXCL | os.O_WRONLY # For trying stuff # Currently just displays the alternating domain on 9 outcomes n = 9 impG = impAlternatingDomain(n) G = impG.explicit() d = G.d G.comp...
21.285714
71
0.700863
0
0
0
0
0
0
0
0
353
0.338447
2c583e62e222fa52ab726c248c5d0731a9185e71
3,647
py
Python
reinforcement-learning/deep-line-wars/game_1.py
cair/experiments
d19a9eda0e9e743e401f46eec358f0c815c64a7c
[ "MIT" ]
null
null
null
reinforcement-learning/deep-line-wars/game_1.py
cair/experiments
d19a9eda0e9e743e401f46eec358f0c815c64a7c
[ "MIT" ]
null
null
null
reinforcement-learning/deep-line-wars/game_1.py
cair/experiments
d19a9eda0e9e743e401f46eec358f0c815c64a7c
[ "MIT" ]
null
null
null
import random import numpy as np from PIL import Image from DeepLineWars.Game import Game import uuid # https://github.com/cair/DeepRTS # https://github.com/reinforceio/tensorforce class GameInstance: @staticmethod def start(data_queue): g = GameInstance(data_queue) g.loop() return T...
26.427536
87
0.502879
2,807
0.769674
0
0
114
0.031259
0
0
518
0.142035
2c59f1356149160db7e39588bbaf937c38c8c634
790
py
Python
src/back-django/scraper_api/tests/views/test_page_list_view.py
Arkko002/PyWalker
9e8a02b74a1217cfed385898654815a218297cce
[ "MIT" ]
null
null
null
src/back-django/scraper_api/tests/views/test_page_list_view.py
Arkko002/PyWalker
9e8a02b74a1217cfed385898654815a218297cce
[ "MIT" ]
null
null
null
src/back-django/scraper_api/tests/views/test_page_list_view.py
Arkko002/PyWalker
9e8a02b74a1217cfed385898654815a218297cce
[ "MIT" ]
null
null
null
import json import pytest from django.urls import reverse from scraper_api.models import ScrapedPage class TestPageListView: @pytest.mark.django_db def test_get(self, client, fill_db, url, html): url = reverse("pages/") response = client.get(url) pages = json.loads(response.body) ...
23.939394
53
0.605063
684
0.865823
0
0
650
0.822785
0
0
45
0.056962
2c5b65c5e6531b659a8e6e99893df6321affb8d2
1,566
py
Python
budgeted_bo/experiment_manager.py
RaulAstudillo06/BudgetedBO
740cbf8397ac68bcdb1a196f2b56381adb1be1b4
[ "MIT" ]
1
2022-03-30T11:45:59.000Z
2022-03-30T11:45:59.000Z
budgeted_bo/experiment_manager.py
RaulAstudillo06/BudgetedBO
740cbf8397ac68bcdb1a196f2b56381adb1be1b4
[ "MIT" ]
null
null
null
budgeted_bo/experiment_manager.py
RaulAstudillo06/BudgetedBO
740cbf8397ac68bcdb1a196f2b56381adb1be1b4
[ "MIT" ]
null
null
null
from typing import Callable, Dict, List, Optional import os import sys from budgeted_bo.budgeted_bo_trial import budgeted_bo_trial def experiment_manager( problem: str, algo: str, algo_params: Dict, restart: bool, first_trial: int, last_trial: int, get_objective_cost_function: Callable,...
29.54717
84
0.658365
0
0
0
0
0
0
0
0
0
0
2c5bc0aa11bc0c3b60a29a13ecd16e57a11921fb
594
py
Python
skfasttext/sk_ft_example.py
tatacoa/hatespeech
fab054d86848c2242443ae3ddf532e94f404f529
[ "MIT" ]
2
2020-03-15T13:46:46.000Z
2020-05-26T06:56:52.000Z
skfasttext/sk_ft_example.py
tatacoa/hatespeech
fab054d86848c2242443ae3ddf532e94f404f529
[ "MIT" ]
1
2018-05-22T20:22:39.000Z
2018-05-22T20:22:39.000Z
skfasttext/sk_ft_example.py
tatacoa/hatespeech
fab054d86848c2242443ae3ddf532e94f404f529
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed May 2 17:34:43 2018 @author: arndt """ # http://scikit-learn.org/stable/developers/contributing.html#rolling-your-own-estimator # https://github.com/vishnumani2009/sklearn-fasttext from os import chdir chdir("/home/arndt/git-reps/hatespeech/") from ...
25.826087
88
0.76936
0
0
0
0
0
0
0
0
378
0.636364
2c5c4a72fd65572e3fc2aa97977ae16747547c5e
15,366
py
Python
src/niweb/apps/noclook/tests/schema/admin/test_schema.py
SUNET/ni
f652e230524346bf0801cdf8bbb6ee63f4985cc2
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
src/niweb/apps/noclook/tests/schema/admin/test_schema.py
SUNET/ni
f652e230524346bf0801cdf8bbb6ee63f4985cc2
[ "BSD-2-Clause-FreeBSD" ]
2
2019-07-24T12:41:11.000Z
2020-03-31T10:10:04.000Z
src/niweb/apps/noclook/tests/schema/admin/test_schema.py
SUNET/ni
f652e230524346bf0801cdf8bbb6ee63f4985cc2
[ "BSD-2-Clause-FreeBSD" ]
1
2019-02-25T14:58:20.000Z
2019-02-25T14:58:20.000Z
# -*- coding: utf-8 -*- __author__ = 'ffuentes' from apps.noclook.tests.schema.base import Neo4jGraphQLGenericTest from apps.noclook.models import NodeHandleContext from django.contrib.auth.models import User from niweb.schema import schema from pprint import pformat from . import BasicAdminTest import apps.noclook....
32.486258
84
0.416829
14,996
0.975921
0
0
0
0
0
0
4,161
0.270793
2c5dd0656347646332272640e2221b08b0557874
179
py
Python
src/codebots/utilities/message.py
franaudo/codebots
f45ee9f665cadc4627d397ae74eefca226269656
[ "MIT" ]
5
2021-05-06T21:51:30.000Z
2022-01-10T17:53:00.000Z
src/codebots/utilities/message.py
franaudo/codebots
f45ee9f665cadc4627d397ae74eefca226269656
[ "MIT" ]
10
2021-04-03T12:00:27.000Z
2021-11-04T16:27:48.000Z
src/codebots/utilities/message.py
franaudo/codebots
f45ee9f665cadc4627d397ae74eefca226269656
[ "MIT" ]
null
null
null
def format_message(message, to_replace=["_", "*", "[", "`"]): for symbol in to_replace: message.replace(symbol, '\\' + symbol) message.rp return message
22.375
61
0.581006
0
0
0
0
0
0
0
0
16
0.089385
2c5e15ddaa18b77dfb245e91f9e636201f9744ac
1,542
py
Python
alphamind/tests/analysis/test_perfanalysis.py
rongliang-tech/alpha-mind
39f720974c637d17e185e445dc05c9fc4863a241
[ "MIT" ]
186
2017-11-27T01:26:44.000Z
2022-03-28T16:11:33.000Z
alphamind/tests/analysis/test_perfanalysis.py
atefar2/alpha-mind
66d839affb5d81d31d5cac7e5e224278e3f99a8b
[ "MIT" ]
2
2017-12-19T02:47:36.000Z
2021-01-09T05:25:18.000Z
alphamind/tests/analysis/test_perfanalysis.py
atefar2/alpha-mind
66d839affb5d81d31d5cac7e5e224278e3f99a8b
[ "MIT" ]
65
2017-11-27T01:26:47.000Z
2022-03-17T10:50:52.000Z
# -*- coding: utf-8 -*- """ Created on 2017-5-12 @author: cheng.li """ import unittest import numpy as np import pandas as pd from alphamind.analysis.perfanalysis import perf_attribution_by_pos class TestPerformanceAnalysis(unittest.TestCase): @classmethod def test_perf_attribution_by_pos(cls): n...
33.521739
90
0.630999
1,292
0.837873
0
0
1,237
0.802205
0
0
80
0.051881
2c5f7612ff8eec29cef986e54718511e7172e74e
1,457
py
Python
appengine/src/greenday_api/tests/test_distinct_channels_api.py
meedan/montage
4da0116931edc9af91f226876330645837dc9bcc
[ "Apache-2.0" ]
6
2018-07-31T16:48:07.000Z
2020-02-01T03:17:51.000Z
appengine/src/greenday_api/tests/test_distinct_channels_api.py
meedan/montage
4da0116931edc9af91f226876330645837dc9bcc
[ "Apache-2.0" ]
41
2018-08-07T16:43:07.000Z
2020-06-05T18:54:50.000Z
appengine/src/greenday_api/tests/test_distinct_channels_api.py
meedan/montage
4da0116931edc9af91f226876330645837dc9bcc
[ "Apache-2.0" ]
1
2018-08-07T16:40:18.000Z
2018-08-07T16:40:18.000Z
""" Tests for :mod:`greenday_api.misc.distinct_channels_api <greenday_api.misc.distinct_channels_api>` """ from protorpc import message_types from .base import ApiTestCase from ..misc.distinct_channels_api import DistinctChannelsAPI class DistinctChannelsAPITests(ApiTestCase): """ Test case for ...
29.734694
102
0.660261
1,215
0.833905
0
0
0
0
0
0
421
0.28895
2c61fe287fc769d5cf8304f253d442e59d2612c9
1,043
py
Python
lib/augment/random_intensity_shift.py
Healingl/3DAPRNet
7c5e0028ae844df4e1f26327e8b438532ca0745f
[ "BSD-2-Clause" ]
null
null
null
lib/augment/random_intensity_shift.py
Healingl/3DAPRNet
7c5e0028ae844df4e1f26327e8b438532ca0745f
[ "BSD-2-Clause" ]
null
null
null
lib/augment/random_intensity_shift.py
Healingl/3DAPRNet
7c5e0028ae844df4e1f26327e8b438532ca0745f
[ "BSD-2-Clause" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # @Author: ZhuangYuZhou # @E-mail: 605540375@qq.com # @Desc: # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # import numpy as np def random_intensity_shift(img_numpy, limit=0.1): shift...
26.74359
79
0.541707
558
0.534995
0
0
0
0
0
0
526
0.504314
2c6286fd32645a00f545efe144b70f41a29faabd
291
py
Python
src/djask/exceptions.py
z-t-y/Djask
d9867b3b91e2c50a07c701b4e2ef51a0c583c82c
[ "MIT" ]
19
2021-11-10T07:26:56.000Z
2022-02-07T08:45:48.000Z
src/djask/exceptions.py
z-t-y/Djask
d9867b3b91e2c50a07c701b4e2ef51a0c583c82c
[ "MIT" ]
2
2021-11-10T07:25:19.000Z
2021-11-30T14:23:53.000Z
src/djask/exceptions.py
z-t-y/Djask
d9867b3b91e2c50a07c701b4e2ef51a0c583c82c
[ "MIT" ]
1
2021-11-10T13:06:57.000Z
2021-11-10T13:06:57.000Z
AuthModelInvalid = Exception( "The auth model you passed to the app config" "should be a subclass of djask.auth.abstract.AbstractUser." ) ModelTypeError = TypeError( "The arg passed to register_model() must be a subclass of" "Model instead of PureModel or something else." )
32.333333
63
0.735395
0
0
0
0
0
0
0
0
209
0.718213
2c6349a307102d7f6afaff901e97fb40d85722ea
3,142
py
Python
pypipegraph/utils/log_listen.py
bopopescu/pypipegraph-2
3a3f9ba565789d8d73c8cd503703a957de2be9d8
[ "MIT" ]
4
2017-05-24T16:57:42.000Z
2017-09-21T19:55:27.000Z
pypipegraph/utils/log_listen.py
bopopescu/pypipegraph-2
3a3f9ba565789d8d73c8cd503703a957de2be9d8
[ "MIT" ]
2
2019-11-22T15:33:47.000Z
2020-07-27T11:59:44.000Z
pypipegraph/utils/log_listen.py
bopopescu/pypipegraph-2
3a3f9ba565789d8d73c8cd503703a957de2be9d8
[ "MIT" ]
4
2015-08-26T15:43:00.000Z
2020-07-20T03:36:40.000Z
""" The MIT License (MIT) Copyright (c) 2012, Florian Finkernagel <finkernagel@imt.uni-marburg.de> 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 limitatio...
33.425532
88
0.693507
1,228
0.390834
0
0
0
0
0
0
1,644
0.523234
2c68214d1193846a164314f13ae12a80f459ffd1
9,130
py
Python
ldapauthenticator/ldapauthenticator.py
jbmarcille/ldapauthenticator
f6037d72bd8c76317b8741d96de1c7b1dee26298
[ "BSD-3-Clause" ]
null
null
null
ldapauthenticator/ldapauthenticator.py
jbmarcille/ldapauthenticator
f6037d72bd8c76317b8741d96de1c7b1dee26298
[ "BSD-3-Clause" ]
null
null
null
ldapauthenticator/ldapauthenticator.py
jbmarcille/ldapauthenticator
f6037d72bd8c76317b8741d96de1c7b1dee26298
[ "BSD-3-Clause" ]
null
null
null
import ldap3 import re from jupyterhub.auth import Authenticator from tornado import gen from traitlets import Unicode, Int, Bool, List, Union class LDAPAuthenticator(Authenticator): server_address = Unicode( config=True, help=""" Address of the LDAP server to contact. Could be a...
37.572016
142
0.571742
8,983
0.983899
0
0
4,107
0.449836
0
0
4,712
0.516101
2c690bc84bca9b6e4b870cf8e5b1443608a944f6
6,567
py
Python
mayan/apps/mailer/tests/mixins.py
atitaya1412/Mayan-EDMS
bda9302ba4b743e7d829ad118b8b836221888172
[ "Apache-2.0" ]
336
2019-05-09T07:05:19.000Z
2022-03-25T09:50:22.000Z
mayan/apps/mailer/tests/mixins.py
atitaya1412/Mayan-EDMS
bda9302ba4b743e7d829ad118b8b836221888172
[ "Apache-2.0" ]
9
2019-10-29T00:12:27.000Z
2021-09-09T15:16:51.000Z
mayan/apps/mailer/tests/mixins.py
atitaya1412/Mayan-EDMS
bda9302ba4b743e7d829ad118b8b836221888172
[ "Apache-2.0" ]
257
2019-05-14T10:26:37.000Z
2022-03-30T03:37:36.000Z
import json from ..models import UserMailer from .literals import ( TEST_EMAIL_ADDRESS, TEST_EMAIL_FROM_ADDRESS, TEST_USER_MAILER_BACKEND_PATH, TEST_USER_MAILER_LABEL ) class DocumentMailerViewTestMixin: def _request_test_document_send_link_single_view(self): return self.post( viewna...
33.676923
77
0.568296
6,373
0.970458
0
0
0
0
0
0
1,193
0.181666
2c695519ed44dfa893d318d7ce5d6dc9b04a5db7
223
py
Python
method_photo2paint/loader.py
Qwinpin/NeuroDemo
52220dd2904e96485ce92adb171e68522915a1fb
[ "MIT" ]
1
2021-03-09T22:59:55.000Z
2021-03-09T22:59:55.000Z
method_photo2paint/loader.py
Qwinpin/NeuroDemo
52220dd2904e96485ce92adb171e68522915a1fb
[ "MIT" ]
null
null
null
method_photo2paint/loader.py
Qwinpin/NeuroDemo
52220dd2904e96485ce92adb171e68522915a1fb
[ "MIT" ]
null
null
null
import json import io from PIL import Image import cv2 import numpy as np def load(data): image = Image.open(io.BytesIO(data)) opencvImage = cv2.cvtColor(np.array(image), cv2.COLOR_RGB2BGR) return opencvImage
18.583333
66
0.73991
0
0
0
0
0
0
0
0
0
0
2c6b0c96f51c49cf2ddaf1214e424470ce2b7534
23,329
py
Python
PyText3.py
Shock9616/PyText3
f16214060390ae8b457fc8dfbdb0943c7c34720b
[ "MIT" ]
null
null
null
PyText3.py
Shock9616/PyText3
f16214060390ae8b457fc8dfbdb0943c7c34720b
[ "MIT" ]
null
null
null
PyText3.py
Shock9616/PyText3
f16214060390ae8b457fc8dfbdb0943c7c34720b
[ "MIT" ]
1
2021-11-06T13:45:11.000Z
2021-11-06T13:45:11.000Z
#!/usr/bin/env python3 """ The main file for a basic code editor written entirely with the python standard library main.py PyText3 Text Editor Created by Kaleb Rosborough on 10/23/2018 Copyright © Shock9616 2018 All rights reserved """ #region Imports from tkinter import * import tkinter as tk from ...
37.207337
114
0.582365
2,037
0.087309
0
0
0
0
0
0
6,223
0.266727
2c6b575ef99f368943f9457f0e564df734ee7fbc
569
py
Python
array/0075_sort_colors/0075_sort_colors.py
zdyxry/LeetCode
33371285d0f3302158230f46e8b1b63b9f4639c4
[ "Xnet", "X11" ]
6
2019-09-16T01:50:44.000Z
2020-09-17T08:52:25.000Z
array/0075_sort_colors/0075_sort_colors.py
zdyxry/LeetCode
33371285d0f3302158230f46e8b1b63b9f4639c4
[ "Xnet", "X11" ]
null
null
null
array/0075_sort_colors/0075_sort_colors.py
zdyxry/LeetCode
33371285d0f3302158230f46e8b1b63b9f4639c4
[ "Xnet", "X11" ]
4
2020-02-07T12:43:16.000Z
2021-04-11T06:38:55.000Z
class Solution(object): def sortColors(self, nums): def triPartition(nums, target): i,j,n = 0, 0,len(nums) -1 while j <= n: if nums[j] < target: nums[i], nums[j] = nums[j], nums[i] i += 1 j += 1 ...
27.095238
55
0.391916
506
0.889279
0
0
0
0
0
0
0
0
2c6b6b00c0e5fe6ce8b9350c4a38df05692a0c5c
2,545
py
Python
transforms/h52h5.py
srujanm/ibex
ed8167b8b1573830bee39c469db7733fdfcb41d1
[ "MIT" ]
3
2018-08-10T21:11:09.000Z
2019-07-26T13:47:24.000Z
transforms/h52h5.py
srujanm/ibex
ed8167b8b1573830bee39c469db7733fdfcb41d1
[ "MIT" ]
null
null
null
transforms/h52h5.py
srujanm/ibex
ed8167b8b1573830bee39c469db7733fdfcb41d1
[ "MIT" ]
6
2018-03-05T20:14:11.000Z
2020-07-23T18:39:16.000Z
# general functions for transforming h5 files from ibex.utilities.constants import * from numba import jit import numpy as np import math # downsample the data by (z, y, x) ratio @jit(nopython=True) def DownsampleData(data, ratio=(1, 2, 2)): # get the size of the current dataset (zres, yres, xres) = data.shap...
31.036585
118
0.604715
0
0
0
0
2,300
0.903733
0
0
469
0.184283
2c6b8ac427b82ce738a5cf54c3cc83a98bf7c03e
278
py
Python
bank_card.py
rizuchaa/atm-machine
272882c336e43249d5910c3832be4c605da504a9
[ "Apache-2.0" ]
null
null
null
bank_card.py
rizuchaa/atm-machine
272882c336e43249d5910c3832be4c605da504a9
[ "Apache-2.0" ]
null
null
null
bank_card.py
rizuchaa/atm-machine
272882c336e43249d5910c3832be4c605da504a9
[ "Apache-2.0" ]
null
null
null
# inisiasi set awal kartu class bank_card: # finish def __init__(self, pin, balance): self.set_pin = pin self.set_balance = balance def check_set_pin(self): return self.set_pin def check_set_bal(self): return self.set_balance
21.384615
37
0.643885
249
0.895683
0
0
0
0
0
0
35
0.125899
2c6cb0e6002ce145b860df144f89f8a9ed73d281
5,629
py
Python
unpythonic/syntax/test/test_conts_topo.py
aisha-w/unpythonic
0f63abf6ac7efb7304b676d0e1ebce0ef4040438
[ "BSD-2-Clause" ]
null
null
null
unpythonic/syntax/test/test_conts_topo.py
aisha-w/unpythonic
0f63abf6ac7efb7304b676d0e1ebce0ef4040438
[ "BSD-2-Clause" ]
null
null
null
unpythonic/syntax/test/test_conts_topo.py
aisha-w/unpythonic
0f63abf6ac7efb7304b676d0e1ebce0ef4040438
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Test exotic program topologies. For pictures, see ``macro_extras/callcc_topology.pdf`` in the source distribution. """ from inspect import stack from ...syntax import macros, continuations, call_cc def me(): """Return the caller's function name.""" callstack = stack() framerec...
25.703196
83
0.445905
0
0
0
0
0
0
0
0
1,290
0.22917
2c6ed73d803fe3c8ab6eab6f07fcada596456cd6
7,933
py
Python
src/lingcomp/farm/prediction_head.py
CharlottePouw/interpreting-complexity
b9a73c0aff18e4c6b4209a6511d00639494c70da
[ "Apache-2.0" ]
2
2020-12-18T12:26:22.000Z
2020-12-19T18:47:07.000Z
src/lingcomp/farm/prediction_head.py
CharlottePouw/interpreting-complexity
b9a73c0aff18e4c6b4209a6511d00639494c70da
[ "Apache-2.0" ]
null
null
null
src/lingcomp/farm/prediction_head.py
CharlottePouw/interpreting-complexity
b9a73c0aff18e4c6b4209a6511d00639494c70da
[ "Apache-2.0" ]
1
2021-05-19T13:39:45.000Z
2021-05-19T13:39:45.000Z
import logging import os import torch from farm.modeling.prediction_head import FeedForwardBlock, PredictionHead from torch.nn import MSELoss from torch.nn.functional import pad from lingcomp.farm.utils import roll logger = logging.getLogger(__name__) # TokenRegressionHead class TokenRegressionHead(PredictionHead...
46.391813
154
0.607715
7,652
0.964578
0
0
1,172
0.147737
0
0
2,357
0.297113
2c7013fe7de804ea6c1f8cce79d5e2ec488e9041
381
py
Python
6.00.2x/week1/lecture1/more_on_plotting.py
NicholasAsimov/courses
d60981f25816445578eb9e89bbbeef2d38eaf014
[ "MIT" ]
null
null
null
6.00.2x/week1/lecture1/more_on_plotting.py
NicholasAsimov/courses
d60981f25816445578eb9e89bbbeef2d38eaf014
[ "MIT" ]
null
null
null
6.00.2x/week1/lecture1/more_on_plotting.py
NicholasAsimov/courses
d60981f25816445578eb9e89bbbeef2d38eaf014
[ "MIT" ]
null
null
null
import matplotlib.pyplot as pylab principal = 10000 interestRate = 0.05 years = 20 values = [] for i in range(years + 1): values.append(principal) principal += principal * interestRate pylab.plot(range(years + 1), values, linewidth=3) pylab.title('5% Growth, Compaunded Annually') pylab.xlabel('Years or Compo...
22.411765
49
0.721785
0
0
0
0
0
0
0
0
78
0.204724
2c71d0c31bdecb9c1cda6baa928bcf39966a850b
1,455
py
Python
account/migrations/0003_passwordexpiry_passwordhistory.py
ProgrammingLanguageLeader/django-user-accounts
ad301bd57ae65c456ed6e45ae3b5cb06d4e2378b
[ "MIT" ]
841
2015-01-03T13:15:52.000Z
2022-03-31T14:08:23.000Z
account/migrations/0003_passwordexpiry_passwordhistory.py
ProgrammingLanguageLeader/django-user-accounts
ad301bd57ae65c456ed6e45ae3b5cb06d4e2378b
[ "MIT" ]
187
2015-01-05T17:03:47.000Z
2022-01-26T06:56:09.000Z
account/migrations/0003_passwordexpiry_passwordhistory.py
massware/django-user-accounts
8fe4633cbbed89eb7ced8b0b4b0337c3bded4247
[ "MIT" ]
317
2015-01-11T04:24:22.000Z
2022-03-26T16:28:56.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2016-09-13 08:55 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ...
39.324324
174
0.645361
1,202
0.826117
0
0
0
0
0
0
225
0.154639
2c71f92a4a5781b16a490c2760b6a652cc5afb93
780
py
Python
microsentry/models.py
feliperuhland/microsentry
8fc640b22f69c3759d87c2358cad025ec45c8cc7
[ "MIT" ]
null
null
null
microsentry/models.py
feliperuhland/microsentry
8fc640b22f69c3759d87c2358cad025ec45c8cc7
[ "MIT" ]
null
null
null
microsentry/models.py
feliperuhland/microsentry
8fc640b22f69c3759d87c2358cad025ec45c8cc7
[ "MIT" ]
null
null
null
import dataclasses import datetime import typing @dataclasses.dataclass class Context: build: str name: str version: str @dataclasses.dataclass class Frame: abs_path: str context_line: str filename: str function: str lineno: int module: str pre_context: typing.List[str] p...
17.333333
48
0.697436
627
0.803846
0
0
719
0.921795
0
0
0
0
2c7445d1033e462318cd29a86e11ffd318baee78
3,986
py
Python
src/t2m/user.py
time2meet/time2meet-cli
3aa41de084572d242c51375fed6bcaaf6694c24e
[ "MIT" ]
1
2021-12-10T06:03:11.000Z
2021-12-10T06:03:11.000Z
src/t2m/user.py
time2meet/time2meet-cli
3aa41de084572d242c51375fed6bcaaf6694c24e
[ "MIT" ]
1
2021-12-05T23:57:37.000Z
2021-12-09T17:15:31.000Z
src/t2m/user.py
time2meet/time2meet-cli
3aa41de084572d242c51375fed6bcaaf6694c24e
[ "MIT" ]
null
null
null
import os from getpass import getpass from .request_handler import request, set_dry from .yaml_validator import yaml_user, yaml_update, yaml_reset from .tokens import new_token from datetime import datetime, timedelta import json def list_methods(): return ["user_info", "register", "edit_profile", "delete_profil...
29.308824
128
0.617411
0
0
0
0
0
0
0
0
1,359
0.340943
2c7496e73af3dc1a12f6aa6a4517eb8851e79e00
972
py
Python
activitypub/lib.py
wakin-/simple_ap
f13013fdc79207cfb07f3944caeeef45fe31bbf7
[ "MIT" ]
10
2018-06-18T09:17:59.000Z
2020-04-22T11:46:12.000Z
activitypub/lib.py
wakin-/simple_ap
f13013fdc79207cfb07f3944caeeef45fe31bbf7
[ "MIT" ]
4
2020-06-05T18:24:12.000Z
2021-06-10T20:29:49.000Z
activitypub/lib.py
wakin-/simple_ap
f13013fdc79207cfb07f3944caeeef45fe31bbf7
[ "MIT" ]
null
null
null
import requests import json from urllib.parse import urlparse from httpsig import HeaderSigner from datetime import datetime def sign_headers(account, method, path): sign = HeaderSigner(account.ap_id(), account.private_key, algorithm='rsa-sha256', headers=['(request-target)', 'date']).sign({'Date': datetime.now()....
38.88
192
0.68107
0
0
0
0
0
0
0
0
197
0.202675
2c74d6e02e3c3e03fa94c6d04730c15d838799a4
4,230
py
Python
account/views.py
josephdubon/boilerplate_image_share_app
e079715577ca112e4de234c8a35dde73639c3366
[ "Unlicense" ]
null
null
null
account/views.py
josephdubon/boilerplate_image_share_app
e079715577ca112e4de234c8a35dde73639c3366
[ "Unlicense" ]
3
2021-09-22T18:45:21.000Z
2022-03-12T00:58:12.000Z
account/views.py
josephdubon/boilerplate_image_share_app
e079715577ca112e4de234c8a35dde73639c3366
[ "Unlicense" ]
null
null
null
from django.http import HttpResponse from django.shortcuts import render from django.contrib import messages from django.contrib.auth import authenticate, login from django.contrib.auth.decorators import login_required from .forms import ( LoginForm, UserRegistrationForm, UserEditForm, ProfileEditForm ...
35.25
105
0.56052
0
0
0
0
1,245
0.294326
0
0
1,289
0.304728
2c7682b009eb38c54e309396068e17197bba18a5
2,478
py
Python
web/app/ponthe/config.py
ENPC-Ponthe/Galeries
77648d880f4f71f62f620227d50452fa7a1482e3
[ "MIT" ]
null
null
null
web/app/ponthe/config.py
ENPC-Ponthe/Galeries
77648d880f4f71f62f620227d50452fa7a1482e3
[ "MIT" ]
1
2021-01-05T03:43:06.000Z
2021-01-05T03:43:06.000Z
web/app/ponthe/config.py
ENPC-Ponthe/Galeries
77648d880f4f71f62f620227d50452fa7a1482e3
[ "MIT" ]
3
2020-09-09T17:50:01.000Z
2021-07-29T19:48:49.000Z
import os from datetime import datetime from flask import Flask IS_PROD_ENV = True # CHANGE BETWEEN STAGING AND PRODUCTION ENVS SUBDOMAIN_NAME = 'ponthe' if IS_PROD_ENV else 'ponthe-testing' DOMAIN_NAME = f'https://{SUBDOMAIN_NAME}.enpc.org/' def get_latest_promotion(): now = datetime.now() prom_increment =...
42
102
0.661421
137
0.055242
0
0
0
0
0
0
840
0.33871
2c7775424a57f17a890bdf4b7a7ff0cf9abb892f
932
py
Python
admin_tasks.py
draem0507/rietveld
70bda77edf3a642ef51ecc2d73c165345af5fdee
[ "Apache-2.0" ]
583
2015-03-28T23:49:34.000Z
2022-03-25T10:58:07.000Z
admin_tasks.py
draem0507/rietveld
70bda77edf3a642ef51ecc2d73c165345af5fdee
[ "Apache-2.0" ]
61
2015-04-02T01:08:34.000Z
2021-05-27T16:19:35.000Z
admin_tasks.py
draem0507/rietveld
70bda77edf3a642ef51ecc2d73c165345af5fdee
[ "Apache-2.0" ]
175
2015-03-29T13:06:36.000Z
2022-03-31T07:02:20.000Z
"""Collection of mapreduce jobs.""" import logging from mapreduce import operation as op from codereview.models import Account, Issue def delete_unused_accounts(account): """Delete accounts for uses that don't participate in any reviews.""" email = account.user.email() if Issue.query(Issue.owner_email == email...
31.066667
78
0.730687
0
0
791
0.848712
0
0
0
0
411
0.440987
2c778b23ac35cdce2fabe050d19757ad54f60c5c
3,426
py
Python
core/pwc_tiny.py
hologerry/RAFT
a80209c442ea2e2a8860af3c9ca96e62498533ca
[ "BSD-3-Clause" ]
null
null
null
core/pwc_tiny.py
hologerry/RAFT
a80209c442ea2e2a8860af3c9ca96e62498533ca
[ "BSD-3-Clause" ]
null
null
null
core/pwc_tiny.py
hologerry/RAFT
a80209c442ea2e2a8860af3c9ca96e62498533ca
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from core.corr import AlternateCorrBlock, CorrBlock from core.extractor import BasicEncoder, SmallEncoder from core.mobilenetv3 import MobileNetV3 from core.pwc_decoder import Decoder from core.pwc_refiner import Refiner from core.up...
34.606061
125
0.646235
1,963
0.572971
0
0
0
0
0
0
492
0.143608
2c784ec9ca5bd9cab47e3e48eed02b1261eb6710
1,631
py
Python
dependencies_analysis/src/utils.py
afdaniele/director
845ba027f9009803fcf77f44874f2ab9d7ab72e3
[ "BSD-3-Clause" ]
null
null
null
dependencies_analysis/src/utils.py
afdaniele/director
845ba027f9009803fcf77f44874f2ab9d7ab72e3
[ "BSD-3-Clause" ]
null
null
null
dependencies_analysis/src/utils.py
afdaniele/director
845ba027f9009803fcf77f44874f2ab9d7ab72e3
[ "BSD-3-Clause" ]
null
null
null
''' Created by: @author: Andrea F Daniele - TTIC - Toyota Technological Institute at Chicago Feb 6, 2019 - Mountain View, CA ''' import sys import numpy as np from os.path import isfile class ProgressBar(object): def __init__(self, maxVal=100, precision=5, doneMessage=True ): self.maxVal = float( max(1.0, ma...
28.614035
92
0.650521
1,437
0.881055
0
0
0
0
0
0
241
0.147762
2c78b387f4bdb0a5aec5ed308c83c4da0844e7b4
1,673
py
Python
attendees/persons/serializers/folk_serializer.py
xjlin0/-attendees30
48a2f2cbec11ec471d7a40d24903b48890feebf9
[ "MIT" ]
null
null
null
attendees/persons/serializers/folk_serializer.py
xjlin0/-attendees30
48a2f2cbec11ec471d7a40d24903b48890feebf9
[ "MIT" ]
null
null
null
attendees/persons/serializers/folk_serializer.py
xjlin0/-attendees30
48a2f2cbec11ec471d7a40d24903b48890feebf9
[ "MIT" ]
null
null
null
from attendees.persons.models import Folk, FolkAttendee, Relation, Utility, Attendee from attendees.whereabouts.serializers import PlaceSerializer from rest_framework import serializers class FolkSerializer(serializers.ModelSerializer): places = PlaceSerializer(many=True, read_only=True) class Meta: ...
30.418182
85
0.569038
1,483
0.886432
0
0
0
0
0
0
256
0.153019
2c7a4215e79452e900349586a25792c9f22bcf7f
114
py
Python
layoutlm/examples/__init__.py
Cedrusco/unilm
f5485696aad9a39b733bc16d40e5e5d2c37284eb
[ "MIT" ]
null
null
null
layoutlm/examples/__init__.py
Cedrusco/unilm
f5485696aad9a39b733bc16d40e5e5d2c37284eb
[ "MIT" ]
null
null
null
layoutlm/examples/__init__.py
Cedrusco/unilm
f5485696aad9a39b733bc16d40e5e5d2c37284eb
[ "MIT" ]
null
null
null
# flake8: noqa from .classification.predict import make_prediction from .classification.predict_api import predict
38
51
0.859649
0
0
0
0
0
0
0
0
14
0.122807
2c7a53fa7046ae0ca4fe288507356e009d06bfd4
6,826
py
Python
V4 - HybridTTS/Utils/functions.py
riju-stone/chatbot
cfbd1a162f777440b138e2824d07f70cca8c4a48
[ "MIT" ]
null
null
null
V4 - HybridTTS/Utils/functions.py
riju-stone/chatbot
cfbd1a162f777440b138e2824d07f70cca8c4a48
[ "MIT" ]
1
2021-10-06T15:56:14.000Z
2021-10-07T04:54:15.000Z
V4 - HybridTTS/Utils/functions.py
riju-stone/chatbot
cfbd1a162f777440b138e2824d07f70cca8c4a48
[ "MIT" ]
null
null
null
import string import random from nltk.tokenize import TweetTokenizer import re import time import sys import numpy as np # source: https://gist.github.com/nealrs/96342d8231b75cf4bb82 cList = { "ain't": "am not", "aren't": "are not", "can't": "cannot", "can't've": "cannot have", "'cause": "because",...
28.206612
200
0.547612
0
0
0
0
0
0
0
0
3,306
0.483899
2c7b3b7be42370503ba918b7f804028312f44fe9
896
py
Python
reverse_integer.py
alexhla/programming-problems-in-python
2db759f6196c026f43c6f2d6c9104d04a6850829
[ "MIT" ]
null
null
null
reverse_integer.py
alexhla/programming-problems-in-python
2db759f6196c026f43c6f2d6c9104d04a6850829
[ "MIT" ]
null
null
null
reverse_integer.py
alexhla/programming-problems-in-python
2db759f6196c026f43c6f2d6c9104d04a6850829
[ "MIT" ]
null
null
null
class Solution: def reverse(self, x): sign = -1 if x<0 else 1 x = abs(x) # floor division ALWAYS rounds down (-1//10 = -1) n = 0 # thus save sign and take absolute value while x != 0: n *= 10 # left shift digits one place n += x%10 # push least significant digit x //= 10 # pop processed digit ...
28.903226
81
0.626116
730
0.814732
0
0
0
0
0
0
396
0.441964
2c7b635f7078761a4178b130bfb1d6906ad54eea
405
py
Python
grid.py
Hec98/tkinterIntro
03d33b97aa4fc2d9d12c4590cf17dccdb343980a
[ "MIT" ]
2
2022-01-12T04:25:55.000Z
2022-01-12T04:31:18.000Z
grid.py
Hec98/tkinterIntro
03d33b97aa4fc2d9d12c4590cf17dccdb343980a
[ "MIT" ]
null
null
null
grid.py
Hec98/tkinterIntro
03d33b97aa4fc2d9d12c4590cf17dccdb343980a
[ "MIT" ]
null
null
null
from tkinter import Tk, Label root = Tk() root.title('Hello World') root.geometry('500x300') lb1 = Label(root, text = 'Hello, this is a tag -> 1') lb2 = Label(root, text = 'Hello, this is a tag -> 2') lb3 = Label(root, text = 'Hello, this is a tag -> 3') # Label(root, text = 'Hello, this is a tag').pack() lb1.grid(r...
23.823529
53
0.646914
0
0
0
0
0
0
0
0
154
0.380247
2c7bfdfed15f5f5901f0720b936cf94f5ee4a1ec
836
py
Python
populus/contracts/backends/testing.py
mandarvaze/populus
4577bba67f6cba3c4800d250f2a228562a5d9a8f
[ "MIT" ]
1
2022-03-14T03:35:17.000Z
2022-03-14T03:35:17.000Z
populus/contracts/backends/testing.py
mandarvaze/populus
4577bba67f6cba3c4800d250f2a228562a5d9a8f
[ "MIT" ]
null
null
null
populus/contracts/backends/testing.py
mandarvaze/populus
4577bba67f6cba3c4800d250f2a228562a5d9a8f
[ "MIT" ]
1
2021-12-06T04:03:32.000Z
2021-12-06T04:03:32.000Z
from __future__ import absolute_import from populus.utils.contracts import ( is_test_contract, ) from .base import ( BaseContractBackend, ) class TestContractsBackend(BaseContractBackend): """ Provides access to compiled contract assets sources from the project `tests_dir` """ is_provide...
23.885714
76
0.690191
683
0.816986
0
0
0
0
0
0
115
0.13756
2c7c784cba091d8ae89f7a03a13304373982e2b3
2,125
py
Python
powmap.py
jossef/power-scanner
729a4de35a5de11284aa6c14b2871536cc321d0a
[ "MIT" ]
3
2017-01-04T18:27:28.000Z
2018-05-19T14:08:14.000Z
powmap.py
Jossef/power-scanner
729a4de35a5de11284aa6c14b2871536cc321d0a
[ "MIT" ]
3
2016-10-21T05:53:33.000Z
2016-10-21T05:53:47.000Z
powmap.py
Jossef/power-scanner
729a4de35a5de11284aa6c14b2871536cc321d0a
[ "MIT" ]
null
null
null
import argparse import logging import re import struct import uuid import sys from struct import * import sys import os import array import fcntl import socket import fcntl import struct import array from multiprocessing.pool import ThreadPool from powscan_common.banner_grabber import * from powscan_common.network_ma...
26.234568
145
0.704
0
0
0
0
0
0
0
0
574
0.270118
2c7e9414f375e98aa585b74113d615f72c0ae399
1,563
py
Python
ts_bot_stream.py
JonthanLT/ts-slack-twitter
191ba5d1f94e70057c8b4c611230d3d08f40d1bd
[ "MIT" ]
null
null
null
ts_bot_stream.py
JonthanLT/ts-slack-twitter
191ba5d1f94e70057c8b4c611230d3d08f40d1bd
[ "MIT" ]
null
null
null
ts_bot_stream.py
JonthanLT/ts-slack-twitter
191ba5d1f94e70057c8b4c611230d3d08f40d1bd
[ "MIT" ]
null
null
null
#!/usr/bin/env python import time import json import sys import tweepy import slackweb import configparser from tweepy import Stream from tweepy import OAuthHandler from tweepy.streaming import StreamListener def read_config(filename = 'twitter.ini'): config = configparser.ConfigParser() config.read(filename)...
25.622951
75
0.651312
447
0.285988
0
0
0
0
0
0
201
0.128599
2c7f21cfb7367dac7b5dd73bdc08aa5b0d9426f9
102
py
Python
myflaskapp/selling/__init__.py
RubyHome/Parking-Dev
20f5e1c44160ecc80b65ef0df63f1cd96e2de564
[ "BSD-3-Clause" ]
null
null
null
myflaskapp/selling/__init__.py
RubyHome/Parking-Dev
20f5e1c44160ecc80b65ef0df63f1cd96e2de564
[ "BSD-3-Clause" ]
null
null
null
myflaskapp/selling/__init__.py
RubyHome/Parking-Dev
20f5e1c44160ecc80b65ef0df63f1cd96e2de564
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """The sales features related to parking spots""" from . import views # noqa
25.5
49
0.647059
0
0
0
0
0
0
0
0
78
0.764706
2c827b375cd33ffc35313851f36e3892e6b7ddad
17,537
py
Python
revisiting_rainbow/Agents/quantile_agent_new.py
jiawei415/revisiting_rainbow
7cd2bc6f64d08ebc2233d93210063cc64d2598a7
[ "Apache-2.0" ]
72
2020-11-24T22:12:59.000Z
2022-03-21T21:18:21.000Z
revisiting_rainbow/Agents/quantile_agent_new.py
jiawei415/revisiting_rainbow
7cd2bc6f64d08ebc2233d93210063cc64d2598a7
[ "Apache-2.0" ]
2
2021-06-02T08:01:10.000Z
2021-07-03T03:11:54.000Z
revisiting_rainbow/Agents/quantile_agent_new.py
jiawei415/revisiting_rainbow
7cd2bc6f64d08ebc2233d93210063cc64d2598a7
[ "Apache-2.0" ]
6
2021-01-13T22:15:17.000Z
2021-11-04T04:00:05.000Z
"""An extension of Rainbow to perform quantile regression. This loss is computed as in "Distributional Reinforcement Learning with Quantile Regression" - Dabney et. al, 2017" Specifically, we implement the following components: * n-step updates * prioritized replay * double_dqn * noisy * dueling """ impor...
43.301235
117
0.642584
11,468
0.653932
0
0
16,931
0.965444
0
0
6,252
0.356503
2c8319da00390bc626331c0ea2a57c8feafdc2f3
208
py
Python
read_data.py
AnirudhSridhar/heimdall
8c677e6b346a964a149ea06806b12d8d947a1a1d
[ "Apache-2.0" ]
1
2018-04-03T19:26:10.000Z
2018-04-03T19:26:10.000Z
read_data.py
AnirudhSridhar/heimdall
8c677e6b346a964a149ea06806b12d8d947a1a1d
[ "Apache-2.0" ]
null
null
null
read_data.py
AnirudhSridhar/heimdall
8c677e6b346a964a149ea06806b12d8d947a1a1d
[ "Apache-2.0" ]
null
null
null
import pandas as pd from glob import glob import os path = 'data/' all_files = glob(os.path.join(path, '*.json')) dfs = (pd.read_json(f) for f in all_files) df = pd.concat(dfs, ignore_index=True) print (df)
20.8
46
0.706731
0
0
0
0
0
0
0
0
15
0.072115
2c846fbf1fb31138dd5ef08bbb8178074cf8b762
4,395
py
Python
utils/visualize_utils.py
ljrprocc/Motif-Removal
8979ca91398212248a2be61345c99bdec53ae37e
[ "MIT" ]
null
null
null
utils/visualize_utils.py
ljrprocc/Motif-Removal
8979ca91398212248a2be61345c99bdec53ae37e
[ "MIT" ]
null
null
null
utils/visualize_utils.py
ljrprocc/Motif-Removal
8979ca91398212248a2be61345c99bdec53ae37e
[ "MIT" ]
null
null
null
import torch import os.path from utils.train_utils import load_globals, init_folders, init_nets from loaders.motif_dataset import MotifDS from PIL import Image import numpy as np # network names root_path = '..' train_tag = 'vm_demo_text_remover' load_tag = '' device = torch.device('cuda:0') net_path =...
40.321101
111
0.61661
0
0
0
0
0
0
0
0
266
0.060523
2c848407f39b4ac205ac81625e387c4023a7a21b
3,651
py
Python
djcyradm/urls.py
angeelgarr/django-cyradm
3d8ea83c9b52d79eae25ccdfd92dd39f5fe2ca97
[ "BSD-3-Clause" ]
5
2019-12-16T13:25:44.000Z
2022-01-21T17:42:16.000Z
djcyradm/urls.py
angeelgarr/django-cyradm
3d8ea83c9b52d79eae25ccdfd92dd39f5fe2ca97
[ "BSD-3-Clause" ]
1
2021-03-30T14:23:56.000Z
2021-03-30T14:23:56.000Z
djcyradm/urls.py
angeelgarr/django-cyradm
3d8ea83c9b52d79eae25ccdfd92dd39f5fe2ca97
[ "BSD-3-Clause" ]
1
2021-06-24T01:49:22.000Z
2021-06-24T01:49:22.000Z
from django.conf.urls import include, url from djcyradm.views import locked_out from djcyradm import views urlpatterns = [ url(r"session_security/", include("session_security.urls")), url( r"^mail-users/$", views.MailUsersTableView.as_view(), name="mail-users"), url(r"^login/?$", v...
29.92623
79
0.568064
0
0
0
0
0
0
0
0
1,361
0.372775
2c8726dfb28106d95bb06c1763a01f4331da1d8a
651
py
Python
python/Data Structures and Algorithms in Python Book/stacks/match_delimiter.py
gauravssnl/Data-Structures-and-Algorithms
1c335c72ce514d4f95090241bbd6edf01a1141a8
[ "MIT" ]
7
2020-05-10T09:57:23.000Z
2021-03-27T11:55:07.000Z
python/Data Structures and Algorithms in Python Book/stacks/match_delimiter.py
gauravssnl/Data-Structures-and-Algorithms
1c335c72ce514d4f95090241bbd6edf01a1141a8
[ "MIT" ]
null
null
null
python/Data Structures and Algorithms in Python Book/stacks/match_delimiter.py
gauravssnl/Data-Structures-and-Algorithms
1c335c72ce514d4f95090241bbd6edf01a1141a8
[ "MIT" ]
3
2021-03-27T03:42:57.000Z
2021-08-09T12:03:41.000Z
from arraystack import ArrayStack def is_matched(expr): """Return True if all delimiters properly match (or closed); False otherwise""" left_delimiters = "({[" right_delimiter = ")}]" S = ArrayStack() for c in expr: if c in left_delimiters: S.push(c) elif c in right_del...
28.304348
84
0.572965
0
0
0
0
0
0
0
0
129
0.198157
2c889835bd8ac35d8cbc3f5d416195de17ced7a8
24,522
py
Python
cogs/werewolf.py
vluk/baymaxBot
fb7e7dd4b2d99a6987a8e8c09afc7e43af844ffc
[ "MIT" ]
null
null
null
cogs/werewolf.py
vluk/baymaxBot
fb7e7dd4b2d99a6987a8e8c09afc7e43af844ffc
[ "MIT" ]
4
2021-04-24T06:38:49.000Z
2021-04-24T06:44:21.000Z
cogs/werewolf.py
vluk/baymaxBot
fb7e7dd4b2d99a6987a8e8c09afc7e43af844ffc
[ "MIT" ]
1
2021-05-02T08:04:08.000Z
2021-05-02T08:04:08.000Z
import discord from discord.ext import commands import random import asyncio cards = ["villager", "werewolf", "minion", "mason", "seer", "robber", "troublemaker", "drunk", "insomniac", "tanner", "hunter"] aesthetics = { "werewolf" : { "color" : 0x25d0ff, "thumbnail" : "https://cdn.discordapp.com/a...
38.496075
157
0.540046
24,144
0.981942
0
0
10,622
0.431999
21,567
0.877135
4,382
0.178217
2c8b5792d3174dff39013842e2317ce417ed4a8a
650
py
Python
main.py
KShah707/TweetDownloader
ff6770e2f86273919c279466337a4e5ab2cd63e0
[ "MIT" ]
null
null
null
main.py
KShah707/TweetDownloader
ff6770e2f86273919c279466337a4e5ab2cd63e0
[ "MIT" ]
null
null
null
main.py
KShah707/TweetDownloader
ff6770e2f86273919c279466337a4e5ab2cd63e0
[ "MIT" ]
null
null
null
################################################### # Uses the tweepy client to query a user's tweets # ################################################### import csv import tweepy # Load secrets from separate file from user_secrets import * # Set up API client auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRE...
30.952381
89
0.641538
0
0
0
0
0
0
0
0
259
0.398462
2c8c64b7f637476a4c3e62cdc4f47747851211f2
1,664
py
Python
anime_downloader/sites/nyaa.py
Alsira/anime-downloader
d82b4cfd5c7c6c358d0d8ffd36ce2d5c4a285595
[ "Unlicense" ]
1,077
2020-10-17T15:43:17.000Z
2022-03-31T15:24:29.000Z
anime_downloader/sites/nyaa.py
Alsira/anime-downloader
d82b4cfd5c7c6c358d0d8ffd36ce2d5c4a285595
[ "Unlicense" ]
509
2018-06-01T13:07:56.000Z
2020-10-17T13:34:39.000Z
anime_downloader/sites/nyaa.py
Alsira/anime-downloader
d82b4cfd5c7c6c358d0d8ffd36ce2d5c4a285595
[ "Unlicense" ]
255
2018-05-27T03:52:11.000Z
2020-10-12T17:27:38.000Z
from anime_downloader.sites.anime import Anime, AnimeEpisode, SearchResult from anime_downloader.sites import helpers class Nyaa(Anime, sitename='nyaa'): """ Site: https://nyaa.si Config ~~~~~~ filter: Choose filter method in search. One of ['No filter', 'No remakes', 'Trusted Only'] category...
35.404255
145
0.612981
1,540
0.925481
0
0
921
0.553486
0
0
690
0.414663
2c8d085bc87d2f9a2e5cc8b6d9aa97e5e95633d5
1,212
py
Python
tests/strategies/__init__.py
lycantropos/seidel
d4514f1041fe64c7faf3fd9a3f61769449070b51
[ "MIT" ]
3
2020-07-06T04:28:19.000Z
2021-04-20T07:50:53.000Z
tests/strategies/__init__.py
lycantropos/seidel
d4514f1041fe64c7faf3fd9a3f61769449070b51
[ "MIT" ]
null
null
null
tests/strategies/__init__.py
lycantropos/seidel
d4514f1041fe64c7faf3fd9a3f61769449070b51
[ "MIT" ]
null
null
null
from .factories import (coordinates_to_ported_edges, coordinates_to_ported_edges_with_nodes_pairs, coordinates_to_ported_leaves, coordinates_to_ported_points, coordinates_to_ported_points_pairs_edges_pairs, ...
52.695652
71
0.560231
0
0
0
0
0
0
0
0
0
0
2c8f674fb4bb528a31df28c9e6f31e31a0334ee4
810
py
Python
src/hgg_coffea/tools/xgb_loader.py
holzman/hgg-coffea
5aabdb127edaa15b0f22d54f0e3ccdc74c5c10de
[ "BSD-3-Clause" ]
3
2021-07-22T07:02:03.000Z
2021-09-22T07:01:59.000Z
src/hgg_coffea/tools/xgb_loader.py
holzman/hgg-coffea
5aabdb127edaa15b0f22d54f0e3ccdc74c5c10de
[ "BSD-3-Clause" ]
2
2021-08-16T16:08:09.000Z
2021-11-12T00:41:50.000Z
src/hgg_coffea/tools/xgb_loader.py
holzman/hgg-coffea
5aabdb127edaa15b0f22d54f0e3ccdc74c5c10de
[ "BSD-3-Clause" ]
8
2021-07-22T07:49:19.000Z
2022-01-26T22:58:03.000Z
import gzip import lzma import warnings from typing import Optional import xgboost def _get_gzip(fname: str) -> bytearray: return bytearray(gzip.open(fname, "rb").read()) def _get_lzma(fname: str) -> bytearray: return bytearray(lzma.open(fname, "rb").read()) _magics = { b"\x1f\x8b": _get_gzip, b"...
21.891892
54
0.632099
0
0
0
0
0
0
0
0
31
0.038272