hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
201f5552a3378781916787a5f8761802bd6a2fc2
622
py
Python
tago/account/paymentHistory.py
tago-io/tago-sdk-python
c55c86a002bb5f48dd08a9c2b270d0dee4b1b6d1
[ "Apache-2.0" ]
4
2017-05-01T01:55:29.000Z
2022-02-14T12:55:42.000Z
tago/account/paymentHistory.py
tago-io/tago-python
203b489aa5bcdbb116423049c62d90a7cce9b9a0
[ "Apache-2.0" ]
10
2017-03-20T14:54:46.000Z
2021-12-14T21:52:08.000Z
tago/account/paymentHistory.py
tago-io/tago-python
203b489aa5bcdbb116423049c62d90a7cce9b9a0
[ "Apache-2.0" ]
5
2017-04-04T21:59:06.000Z
2022-02-11T08:35:35.000Z
import requests # Used to make HTTP requests import json # Used to parse JSON import os # Used to infer environment variables API_TAGO = os.environ.get('TAGOIO_API') or 'https://api.tago.io' REALTIME = os.environ.get('TAGOIO_REALTIME') or 'https://realtime.tago.io' class PaymentHistory: def __init__(self, acc_t...
34.555556
132
0.737942
43b134adbb0cdfac87c7b5ca68f8a63a3f8c2097
2,100
py
Python
presenter/uptake.py
fic2/python-dokuwiki-export
3584c4cd146e1d8510504064c8c8094e41a5fc9e
[ "MIT" ]
null
null
null
presenter/uptake.py
fic2/python-dokuwiki-export
3584c4cd146e1d8510504064c8c8094e41a5fc9e
[ "MIT" ]
null
null
null
presenter/uptake.py
fic2/python-dokuwiki-export
3584c4cd146e1d8510504064c8c8094e41a5fc9e
[ "MIT" ]
null
null
null
from . import PresenterBase from visitor import UsedByVisitor from entities import SpecificEnabler, DeprecatedSpecificEnabler, Application class UptakePresenter(PresenterBase): def __init__(self, nice = lambda item: item, hideunused = False): PresenterBase.__init__(self) # self.v = GEVisitor() self.nice = nic...
30.882353
83
0.622857
d1d9fe812ebea7afd3bb9041dcff8661153fad46
323
py
Python
pyrival/strings/min_rotation.py
MattJDavidson/aoc2021
1c26697da55e58408f36525639d201303f808b1b
[ "Apache-2.0" ]
748
2018-09-27T01:08:12.000Z
2022-03-25T17:31:56.000Z
pyrival/strings/min_rotation.py
MattJDavidson/aoc2021
1c26697da55e58408f36525639d201303f808b1b
[ "Apache-2.0" ]
38
2019-02-24T14:50:02.000Z
2022-03-25T01:27:50.000Z
pyrival/strings/min_rotation.py
MattJDavidson/aoc2021
1c26697da55e58408f36525639d201303f808b1b
[ "Apache-2.0" ]
288
2018-10-29T11:55:57.000Z
2022-03-20T04:37:27.000Z
def least_rotation(s): a, n = 0, len(s) s = s + s for b in range(n): for i in range(n): if (a + i == b) or (s[a + i] < s[b + i]): b += max(0, i - 1) break if s[a + i] > s[b + i]: a = b break return s[a:a + ...
21.533333
53
0.315789
f340a1c7454f28fb957024ae9b379627a4b400ef
9,390
py
Python
openmdao/examples/beam_tutorial.py
naylor-b/OpenMDAO1
49d82f6601b33db9bdcf7d146d030d55e3b62ef4
[ "Apache-2.0" ]
17
2018-01-11T20:13:59.000Z
2022-03-22T03:46:05.000Z
openmdao/examples/beam_tutorial.py
naylor-b/OpenMDAO1
49d82f6601b33db9bdcf7d146d030d55e3b62ef4
[ "Apache-2.0" ]
6
2017-10-19T23:14:14.000Z
2020-11-22T17:30:57.000Z
openmdao/examples/beam_tutorial.py
naylor-b/OpenMDAO1
49d82f6601b33db9bdcf7d146d030d55e3b62ef4
[ "Apache-2.0" ]
10
2018-04-12T22:13:33.000Z
2020-05-07T10:02:59.000Z
""" Beam sizing problem""" from openmdao.api import Problem, ScipyOptimizer, Component, IndepVarComp, Group #room_area = room_length * room_width (1) #room_length >= room_width (2) #(29000000 * 228 * 384) / {5 * [(0.24305 * room_width) + 4.83] * (roo...
39.957447
181
0.666454
919a271ddf18c069780a06bcb81fc677f0606a61
1,170
py
Python
tests/test_physics_cosm.py
astrojhgu/ares
42008c8e4bf79f0b000cc833e02a86510bce7611
[ "MIT" ]
1
2019-01-04T15:13:18.000Z
2019-01-04T15:13:18.000Z
tests/test_physics_cosm.py
astrojhgu/ares
42008c8e4bf79f0b000cc833e02a86510bce7611
[ "MIT" ]
null
null
null
tests/test_physics_cosm.py
astrojhgu/ares
42008c8e4bf79f0b000cc833e02a86510bce7611
[ "MIT" ]
null
null
null
""" test_physics_cosm.py Author: Jordan Mirocha Affiliation: University of Colorado at Boulder Created on: Wed Sep 24 15:39:44 MDT 2014 Description: """ import numpy as np from ares.physics import Cosmology from ares.physics.Constants import s_per_gyr, m_H, m_He def test(rtol=1e-3): cosm = Cosmology() ...
26
74
0.653846
7ad929a4be2216bd9769e96de78378246e385d88
957
py
Python
Chapter 6/03 - Using one thread per item/one_thread_per_item.py
moseskim/Expert-Python-Programming-Fourth-Edition
5160f974deb2365597b7be9cc032f24bfa13471a
[ "MIT" ]
null
null
null
Chapter 6/03 - Using one thread per item/one_thread_per_item.py
moseskim/Expert-Python-Programming-Fourth-Edition
5160f974deb2365597b7be9cc032f24bfa13471a
[ "MIT" ]
null
null
null
Chapter 6/03 - Using one thread per item/one_thread_per_item.py
moseskim/Expert-Python-Programming-Fourth-Edition
5160f974deb2365597b7be9cc032f24bfa13471a
[ "MIT" ]
null
null
null
""" "멀티스레드 애플리케이션 예시"절 예시. 가장 간단한 아이템 당 단일 스레드 형태로 `threading` 모듈 사용 예시를 소개한다. """ import time from threading import Thread import requests SYMBOLS = ("USD", "EUR", "PLN", "NOK", "CZK") BASES = ("USD", "EUR", "PLN", "NOK", "CZK") def fetch_rates(base): response = requests.get(f"https://api.vatcomply.com/rates?...
21.266667
84
0.602926
446d4ca5bd87991086ab7617c092ef32585e820a
5,614
py
Python
patientMatcher/match/genotype_matcher.py
john1711/patientMatcher
516a2a73a2cea1e87ed2f9ae6a4f0b1b715281d9
[ "MIT" ]
11
2019-07-02T11:14:21.000Z
2022-03-08T21:43:10.000Z
patientMatcher/match/genotype_matcher.py
john1711/patientMatcher
516a2a73a2cea1e87ed2f9ae6a4f0b1b715281d9
[ "MIT" ]
182
2019-01-23T10:13:30.000Z
2022-03-25T13:17:08.000Z
patientMatcher/match/genotype_matcher.py
john1711/patientMatcher
516a2a73a2cea1e87ed2f9ae6a4f0b1b715281d9
[ "MIT" ]
6
2019-01-09T21:21:43.000Z
2022-03-09T20:26:23.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import logging from patientMatcher.parse.patient import ( gtfeatures_to_genes_symbols, gtfeatures_to_variants, lift_variant, ) LOG = logging.getLogger(__name__) def match(database, gt_features, max_score): """Handles genotype matching algorithm Args:...
40.388489
122
0.638226
ff48ad419296fb16a8e4a0fd9a637b23eac218cc
9,334
py
Python
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/19_features/numtrees_8/rule_3.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/19_features/numtrees_8/rule_3.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/19_features/numtrees_8/rule_3.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
def findDecision(obj): #obj[0]: Passanger, obj[1]: Weather, obj[2]: Temperature, obj[3]: Time, obj[4]: Coupon, obj[5]: Coupon_validity, obj[6]: Gender, obj[7]: Age, obj[8]: Maritalstatus, obj[9]: Children, obj[10]: Education, obj[11]: Occupation, obj[12]: Income, obj[13]: Bar, obj[14]: Coffeehouse, obj[15]: Restaurantl...
39.218487
400
0.5015
1aa065c504cb7ca97dfb85353cbd95af4251d55a
312
py
Python
zipline/pipeline/dtypes.py
leonarduschen/zipline
5e6c9fce7e0f812bd181024ad192ca2976d49667
[ "Apache-2.0" ]
14,525
2015-01-01T02:57:52.000Z
2022-03-31T18:16:35.000Z
zipline/pipeline/dtypes.py
leonarduschen/zipline
5e6c9fce7e0f812bd181024ad192ca2976d49667
[ "Apache-2.0" ]
2,146
2015-01-01T13:03:44.000Z
2022-02-22T03:25:28.000Z
zipline/pipeline/dtypes.py
leonarduschen/zipline
5e6c9fce7e0f812bd181024ad192ca2976d49667
[ "Apache-2.0" ]
4,517
2015-01-01T14:26:47.000Z
2022-03-31T14:38:05.000Z
from zipline.utils.numpy_utils import ( bool_dtype, datetime64ns_dtype, float64_dtype, int64_dtype, object_dtype, ) CLASSIFIER_DTYPES = frozenset({object_dtype, int64_dtype}) FACTOR_DTYPES = frozenset({datetime64ns_dtype, float64_dtype, int64_dtype}) FILTER_DTYPES = frozenset({bool_dtype})
26
75
0.775641
84efe323a2cff3f6a92d0e2d6bc57195fa556daf
548
py
Python
backend/home/migrations/0001_load_initial_data.py
crowdbotics-dev/testappauto20-dev-23504
39f2855f3e3331c8b0b24440a97d46beb45e4ebf
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/home/migrations/0001_load_initial_data.py
crowdbotics-dev/testappauto20-dev-23504
39f2855f3e3331c8b0b24440a97d46beb45e4ebf
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/home/migrations/0001_load_initial_data.py
crowdbotics-dev/testappauto20-dev-23504
39f2855f3e3331c8b0b24440a97d46beb45e4ebf
[ "FTL", "AML", "RSA-MD" ]
null
null
null
from django.db import migrations def create_site(apps, schema_editor): Site = apps.get_model("sites", "Site") custom_domain = "testappauto20-dev-23504.botics.co" site_params = { "name": "TestAppAuto20", } if custom_domain: site_params["domain"] = custom_domain Site.objects.up...
21.076923
61
0.662409
b0d7d521dd33944efee176b162e7303406fa47bf
76
py
Python
tapis_cli/commands/taccapis/v2/apps/models/__init__.py
bpachev/tapis-cli
c3128fb5b63ef74e06b737bbd95ef28fb24f0d32
[ "BSD-3-Clause" ]
8
2020-10-18T22:48:23.000Z
2022-01-10T09:16:14.000Z
tapis_cli/commands/taccapis/v2/apps/models/__init__.py
bpachev/tapis-cli
c3128fb5b63ef74e06b737bbd95ef28fb24f0d32
[ "BSD-3-Clause" ]
238
2019-09-04T14:37:54.000Z
2020-04-15T16:24:24.000Z
tapis_cli/commands/taccapis/v2/apps/models/__init__.py
bpachev/tapis-cli
c3128fb5b63ef74e06b737bbd95ef28fb24f0d32
[ "BSD-3-Clause" ]
5
2019-09-20T04:23:49.000Z
2020-01-16T17:45:14.000Z
from .app import App from .app_history import AppHistory API_NAME = 'apps'
15.2
35
0.776316
55bd4adec0cd0de728a5f35098e544f36cf508ba
789
py
Python
matplotlib_examples/examples_src/pylab_examples/usetex_fonteffects.py
xzlmark/webspider
133c620c65aa45abea1718b0dada09618c2115bf
[ "Apache-2.0" ]
3
2020-04-09T02:35:26.000Z
2021-02-27T17:00:21.000Z
matplotlib_examples/examples_src/pylab_examples/usetex_fonteffects.py
colorworlds/webspider
133c620c65aa45abea1718b0dada09618c2115bf
[ "Apache-2.0" ]
null
null
null
matplotlib_examples/examples_src/pylab_examples/usetex_fonteffects.py
colorworlds/webspider
133c620c65aa45abea1718b0dada09618c2115bf
[ "Apache-2.0" ]
1
2020-04-09T02:35:08.000Z
2020-04-09T02:35:08.000Z
# This script demonstrates that font effects specified in your pdftex.map # are now supported in pdf usetex. import matplotlib import matplotlib.pyplot as plt matplotlib.rc('text', usetex=True) def setfont(font): return r'\font\a %s at 14pt\a ' % font for y, font, text in zip(range(5), ...
32.875
81
0.591888
56bdeda36cc1f9f18b0035b6737d4e9b27fb8b60
38
py
Python
ciphey/basemods/Crackers/__init__.py
gvvynplaine/Ciphey
982bb777162b823685a3c477c393f1240609c118
[ "MIT" ]
2
2020-09-18T00:15:49.000Z
2020-10-06T19:32:16.000Z
ciphey/basemods/Crackers/__init__.py
meitounao1/Ciphey
982bb777162b823685a3c477c393f1240609c118
[ "MIT" ]
null
null
null
ciphey/basemods/Crackers/__init__.py
meitounao1/Ciphey
982bb777162b823685a3c477c393f1240609c118
[ "MIT" ]
null
null
null
from . import caesar, vigenere, XandY
19
37
0.763158
f0136a6feef00c18a60d863976ad1ef3c8a73152
2,725
py
Python
tests/actor/test_reminder_data.py
amulyavarote/python-sdk
ff570466eeef73b5a71cb378af5c4a06384dca1c
[ "MIT" ]
null
null
null
tests/actor/test_reminder_data.py
amulyavarote/python-sdk
ff570466eeef73b5a71cb378af5c4a06384dca1c
[ "MIT" ]
null
null
null
tests/actor/test_reminder_data.py
amulyavarote/python-sdk
ff570466eeef73b5a71cb378af5c4a06384dca1c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Copyright 2021 The Dapr Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
35.855263
72
0.625321
8262786d7988147508e839c0c1afb5b0b8f204f1
9,459
py
Python
tf_agents/policies/q_policy_test.py
gregorgebhardt/agents
b6aeae5e0ed68dd4e4ec2ca73ef971254d3208f3
[ "Apache-2.0" ]
1
2020-01-11T23:11:13.000Z
2020-01-11T23:11:13.000Z
tf_agents/policies/q_policy_test.py
gregorgebhardt/agents
b6aeae5e0ed68dd4e4ec2ca73ef971254d3208f3
[ "Apache-2.0" ]
null
null
null
tf_agents/policies/q_policy_test.py
gregorgebhardt/agents
b6aeae5e0ed68dd4e4ec2ca73ef971254d3208f3
[ "Apache-2.0" ]
3
2019-09-08T22:05:56.000Z
2020-05-27T08:27:15.000Z
# coding=utf-8 # Copyright 2018 The TF-Agents Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
40.423077
78
0.70758
45432cccffee201e5db0d472e9aef334673ae676
11,751
py
Python
audit_trail/watcher.py
askabelin/django_audit_trail
83c8739068782566a2a45adda7eb21e3b18420f7
[ "Apache-2.0" ]
null
null
null
audit_trail/watcher.py
askabelin/django_audit_trail
83c8739068782566a2a45adda7eb21e3b18420f7
[ "Apache-2.0" ]
null
null
null
audit_trail/watcher.py
askabelin/django_audit_trail
83c8739068782566a2a45adda7eb21e3b18420f7
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 from django.conf import settings from django.db.models import signals, NOT_PROVIDED from django.dispatch import receiver from .models import AuditTrail from .signals import audit_trail_app_ready from stringifier import ModelFieldStringifier class AuditTrailWatcher(object): """ Watcher class tha...
40.944251
118
0.643009
a87e58f67d7b9dee797940da35e1c6e1f80fdf58
316
py
Python
lib/python2.7/site-packages/tdl/queue/actions/publish_action.py
DPNT-Sourcecode/CHK-uimw01
87144ae10115d7a8df565f5109666f00bc001ce4
[ "Apache-2.0" ]
null
null
null
lib/python2.7/site-packages/tdl/queue/actions/publish_action.py
DPNT-Sourcecode/CHK-uimw01
87144ae10115d7a8df565f5109666f00bc001ce4
[ "Apache-2.0" ]
null
null
null
lib/python2.7/site-packages/tdl/queue/actions/publish_action.py
DPNT-Sourcecode/CHK-uimw01
87144ae10115d7a8df565f5109666f00bc001ce4
[ "Apache-2.0" ]
null
null
null
class PublishAction: @staticmethod def get_audit_text(): return '' @staticmethod def after_response(remote_broker, headers, response): remote_broker.respond_to(headers, response) @staticmethod def prepare_for_next_request(remote_broker): # Do nothing. pass
21.066667
57
0.674051
f87da613ce51bebeb3d67efc525d924892bd3112
2,224
py
Python
src/pretalx/orga/signals.py
hnzlmnn/pretalx
fcdf1a03c9428c1207ee4f4228694b2ed8e7495b
[ "Apache-2.0" ]
null
null
null
src/pretalx/orga/signals.py
hnzlmnn/pretalx
fcdf1a03c9428c1207ee4f4228694b2ed8e7495b
[ "Apache-2.0" ]
null
null
null
src/pretalx/orga/signals.py
hnzlmnn/pretalx
fcdf1a03c9428c1207ee4f4228694b2ed8e7495b
[ "Apache-2.0" ]
null
null
null
from django.dispatch import Signal from pretalx.common.signals import EventPluginSignal nav_event = EventPluginSignal(providing_args=["request"]) """ This signal allows you to add additional views to the admin panel navigation. You will get the request as a keyword argument ``request``. Receivers are expected to retu...
47.319149
92
0.764388
fb2bc67c6f8a82b95f709a0b02ac855ea50c2e51
748
py
Python
tests/tjctf_2020/test_stop.py
mariuszskon/autorop
5735073008f722fab00f3866ef4a05f04620593b
[ "MIT" ]
15
2020-10-03T05:20:31.000Z
2022-03-20T06:19:29.000Z
tests/tjctf_2020/test_stop.py
mariuszskon/autorop
5735073008f722fab00f3866ef4a05f04620593b
[ "MIT" ]
8
2020-10-02T09:51:39.000Z
2021-04-24T03:14:18.000Z
tests/tjctf_2020/test_stop.py
mariuszskon/autorop
5735073008f722fab00f3866ef4a05f04620593b
[ "MIT" ]
2
2021-04-16T06:33:49.000Z
2021-09-03T09:21:10.000Z
from .. import * BIN = "./tests/tjctf_2020/stop" def test_stop(exploit): # this is the example from the README def send_letter_first(tube, data): # the binary expects us to choose a letter first, before it takes input unsafely tube.sendline("A") # send actual payload tube.send...
29.92
88
0.688503
e2cd84ae5292574ae30d4c172cfb9795cf9df278
6,127
py
Python
Common/extractor.py
RENCI-AUTOMAT/Data_services
eb60f822021b138298eabb3852b20b30739afaa5
[ "MIT" ]
2
2022-02-01T04:10:30.000Z
2022-03-23T22:01:35.000Z
Common/extractor.py
RENCI-AUTOMAT/Data_services
eb60f822021b138298eabb3852b20b30739afaa5
[ "MIT" ]
83
2020-08-18T16:09:43.000Z
2022-03-25T19:17:25.000Z
Common/extractor.py
RENCI-AUTOMAT/Data_services
eb60f822021b138298eabb3852b20b30739afaa5
[ "MIT" ]
null
null
null
from Common.kgxmodel import kgxnode, kgxedge from Common.node_types import ORIGINAL_KNOWLEDGE_SOURCE, PRIMARY_KNOWLEDGE_SOURCE, AGGREGATOR_KNOWLEDGE_SOURCES class Extractor: """ This is a class so that it can be used to accumulate nodes and edges across multiple files or input streams Also so that it can p...
52.367521
183
0.649747
163d36102c08c3d90054cb5e664b034159021e3c
9,330
py
Python
tensorflow/python/keras/utils/losses_utils.py
MKesenheimer/tensorflow
6222d762b86d93ead601cc64e7b3ae16d3311730
[ "Apache-2.0" ]
null
null
null
tensorflow/python/keras/utils/losses_utils.py
MKesenheimer/tensorflow
6222d762b86d93ead601cc64e7b3ae16d3311730
[ "Apache-2.0" ]
null
null
null
tensorflow/python/keras/utils/losses_utils.py
MKesenheimer/tensorflow
6222d762b86d93ead601cc64e7b3ae16d3311730
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Authors. 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 applica...
39.702128
108
0.715005
313cfe763de219e24c79e95f02b9c274217a145d
1,283
py
Python
references/process/textutil.py
arXiv/arxiv-references
a755aeaa864ff807ff16ae2c3960f9fee54d8dd8
[ "MIT" ]
7
2019-04-21T07:22:23.000Z
2022-02-23T18:52:26.000Z
references/process/textutil.py
cul-it/arxiv-references
a755aeaa864ff807ff16ae2c3960f9fee54d8dd8
[ "MIT" ]
4
2017-11-07T16:38:46.000Z
2018-05-04T19:53:55.000Z
references/process/textutil.py
cul-it/arxiv-references
a755aeaa864ff807ff16ae2c3960f9fee54d8dd8
[ "MIT" ]
6
2019-01-10T22:02:15.000Z
2022-02-22T02:00:16.000Z
"""Text cleanup utilities.""" import re import ftfy import unidecode punctuation_pat = re.compile(r"""([!"#$%&\'()*+,-./:;<=>?@[\\\]^_`{|}~])""") hyphenline_pat = re.compile(r"-\s*\n\s*") multiwhite_pat = re.compile(r"\s+") cid_pat = re.compile(r"\(cid:\d+\)") nonlet = re.compile(r"([^A-Za-z0-9 ])") purenum = re.comp...
27.297872
78
0.5947
902e5572ed53ffcbd2b912121161ee8073a6c375
879
py
Python
stress tester/testgen.py
AI-Factor-y/stress-tester
b4f56ab07032ada565a5deed562a905dcf6e885f
[ "Apache-2.0" ]
null
null
null
stress tester/testgen.py
AI-Factor-y/stress-tester
b4f56ab07032ada565a5deed562a905dcf6e885f
[ "Apache-2.0" ]
null
null
null
stress tester/testgen.py
AI-Factor-y/stress-tester
b4f56ab07032ada565a5deed562a905dcf6e885f
[ "Apache-2.0" ]
null
null
null
# code written by abhinav p import random import sys random.seed() sys.stdout=open("testcase.txt","w") #output file def r(lower_limit,upper_limit): return random.randint(lower_limit,upper_limit) def ra(lower_limit,upper_limit): return chr(ord('a')+r((ord(lower_limit)-ord('a')),(ord(upper_limit)-ord(...
15.981818
81
0.645051
44c12fd44f99bf136712726273386f59bc090211
1,205
py
Python
display_temp_onewire.py
jasonbartz/pi-demos
1b551a7ff33dbf8dae0782dd79e1cdce73b2f243
[ "MIT" ]
null
null
null
display_temp_onewire.py
jasonbartz/pi-demos
1b551a7ff33dbf8dae0782dd79e1cdce73b2f243
[ "MIT" ]
null
null
null
display_temp_onewire.py
jasonbartz/pi-demos
1b551a7ff33dbf8dae0782dd79e1cdce73b2f243
[ "MIT" ]
null
null
null
#!/usr/bin/python -u import time import os import glob from Adafruit_LED_Backpack import AlphaNum4 os.system('modprobe w1-gpio') os.system('modprobe w1-therm') base_dir = '/sys/bus/w1/devices/' # Grabs the first probe out of the directory device_folder = glob.glob(base_dir + '28*')[0] device_file = device_folder + ...
20.423729
46
0.653112
9a9b990714825531a581b27ed99a9062e96ad3f9
2,616
py
Python
app/core/models.py
jingr1986/recipie-app-api
74e9b7efb52ddda97bd3f3af715f024ebbe403ad
[ "MIT" ]
null
null
null
app/core/models.py
jingr1986/recipie-app-api
74e9b7efb52ddda97bd3f3af715f024ebbe403ad
[ "MIT" ]
null
null
null
app/core/models.py
jingr1986/recipie-app-api
74e9b7efb52ddda97bd3f3af715f024ebbe403ad
[ "MIT" ]
null
null
null
import uuid import os from django.db import models from django.contrib.auth.models import AbstractBaseUser, BaseUserManager, \ PermissionsMixin from django.conf import settings def recipe_image_file_path(instace, filename): """generate file path for new recipe image""" ...
28.434783
77
0.672401
bf4e40a887f421514a81b4433dcf1200690e0697
882
py
Python
setup.py
nghiemvdv/urbamt
e136f7c8ffbc9491edc2f960f0ecb2e7efa36b32
[ "Apache-2.0" ]
null
null
null
setup.py
nghiemvdv/urbamt
e136f7c8ffbc9491edc2f960f0ecb2e7efa36b32
[ "Apache-2.0" ]
null
null
null
setup.py
nghiemvdv/urbamt
e136f7c8ffbc9491edc2f960f0ecb2e7efa36b32
[ "Apache-2.0" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name='urbamt', version='0.0.1-b1', author="Patrick Phat Nguyen", author_email="me@patrickphat.com", description="Universal Rule-based Machine Translation Toolkit (URBaMT)", long_desc...
27.5625
77
0.587302
d0db3699d4cd2bc881c998d0640b4b6ff764c219
14,610
py
Python
py3status/docstrings.py
apiraino/py3status
b6ebed775e635ffddcbde0f78efceacb21ac47d0
[ "BSD-3-Clause" ]
null
null
null
py3status/docstrings.py
apiraino/py3status
b6ebed775e635ffddcbde0f78efceacb21ac47d0
[ "BSD-3-Clause" ]
null
null
null
py3status/docstrings.py
apiraino/py3status
b6ebed775e635ffddcbde0f78efceacb21ac47d0
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import ast import re import os.path import difflib from py3status.helpers import print_stderr def modules_directory(): """ Get the core modules directory. """ return os.path.join(os.path.dirname(os.path.abspath(__file__)), "modules") def parse_readme(): """ Crude par...
32.611607
88
0.516153
1e545c86d65c440028c25b86f64410e4cbc853e1
29,738
py
Python
sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_backend_operations.py
JianpingChen/azure-sdk-for-python
3072fc8c0366287fbaea1b02493a50259c3248a2
[ "MIT" ]
3
2020-06-23T02:25:27.000Z
2021-09-07T18:48:11.000Z
sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_backend_operations.py
JianpingChen/azure-sdk-for-python
3072fc8c0366287fbaea1b02493a50259c3248a2
[ "MIT" ]
510
2019-07-17T16:11:19.000Z
2021-08-02T08:38:32.000Z
sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_backend_operations.py
JianpingChen/azure-sdk-for-python
3072fc8c0366287fbaea1b02493a50259c3248a2
[ "MIT" ]
5
2019-09-04T12:51:37.000Z
2020-09-16T07:28:40.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
51.09622
205
0.6565
9a423cfc3e893adf99451e4867b6567ebd4ebb1c
3,233
py
Python
virtual/Lib/site-packages/pylint/test/unittest_checker_classes.py
JamesKimari/pitch-one
aac9007716bf2e3b6446588a06508fac068f3d20
[ "MIT" ]
4
2018-08-14T14:08:55.000Z
2021-02-19T02:58:07.000Z
virtual/lib/python3.6/site-packages/pylint/test/unittest_checker_classes.py
evantoh/patient-management-system
6637eb1344775633759165260ed99843581c0e72
[ "Unlicense" ]
32
2018-05-01T05:24:43.000Z
2022-03-11T23:20:39.000Z
virtual/lib/python3.6/site-packages/pylint/test/unittest_checker_classes.py
evantoh/patient-management-system
6637eb1344775633759165260ed99843581c0e72
[ "Unlicense" ]
2
2018-05-16T10:39:48.000Z
2019-02-22T09:13:34.000Z
# Copyright (c) 2014-2016 Claudiu Popa <pcmanticore@gmail.com> # Copyright (c) 2014 Google, Inc. # Copyright (c) 2014 LOGILAB S.A. (Paris, FRANCE) <contact@logilab.fr> # Copyright (c) 2015 Ionel Cristian Maries <contact@ionelmc.ro> # Copyright (c) 2016 Derek Gustafson <degustaf@gmail.com> # Licensed under the GPL: htt...
35.922222
83
0.612125
d87b1a5ff5a4ef1bc77885908e509c8c51a59731
2,125
py
Python
AI1/Lab02-DictionaryCreator/Lab02.py
rashidlasker/artificial-intelligence
da18010145b7dba80e5bc10c2498d5a4b0d60667
[ "MIT" ]
null
null
null
AI1/Lab02-DictionaryCreator/Lab02.py
rashidlasker/artificial-intelligence
da18010145b7dba80e5bc10c2498d5a4b0d60667
[ "MIT" ]
null
null
null
AI1/Lab02-DictionaryCreator/Lab02.py
rashidlasker/artificial-intelligence
da18010145b7dba80e5bc10c2498d5a4b0d60667
[ "MIT" ]
null
null
null
""" +=========================================================================================+ || Lab02: Dictionary Creator || || Name: Rashid Lasker Date: 9/9/14 || +===========================...
40.865385
101
0.497412
ef36b30f5e8f9d916d849b2830315abf17f693f0
5,578
py
Python
2019/02/computer.py
GeoffRiley/AdventOfCode
27fe8670a1923cb3b0675784f5e855ad18c29c93
[ "Unlicense" ]
2
2020-12-12T03:18:45.000Z
2021-12-17T00:35:33.000Z
2019/02/computer.py
GeoffRiley/AdventOfCode
27fe8670a1923cb3b0675784f5e855ad18c29c93
[ "Unlicense" ]
null
null
null
2019/02/computer.py
GeoffRiley/AdventOfCode
27fe8670a1923cb3b0675784f5e855ad18c29c93
[ "Unlicense" ]
null
null
null
from itertools import product def computer(cells): c = [int(v) for v in cells.split(',')] c = simulate(c) return ','.join(str(v) for v in c) def simulate(c): pc = 0 while c[pc] != 99: if c[pc] == 1: c[c[pc + 3]] = c[c[pc + 1]] + c[c[pc + 2]] pc += 4 elif c...
47.271186
425
0.492829
5d99108d1ab4d830bc4c959927f26ac740cc69b3
6,265
py
Python
wb/main/console_tool_wrapper/sh_tools/tools.py
apaniukov/workbench
2f2653ecfd0143d2d53e33ad84379f13443fdfaa
[ "Apache-2.0" ]
23
2022-03-17T12:24:09.000Z
2022-03-31T09:13:30.000Z
wb/main/console_tool_wrapper/sh_tools/tools.py
apaniukov/workbench
2f2653ecfd0143d2d53e33ad84379f13443fdfaa
[ "Apache-2.0" ]
18
2022-03-21T08:17:44.000Z
2022-03-30T12:42:30.000Z
wb/main/console_tool_wrapper/sh_tools/tools.py
apaniukov/workbench
2f2653ecfd0143d2d53e33ad84379f13443fdfaa
[ "Apache-2.0" ]
16
2022-03-17T12:24:14.000Z
2022-03-31T12:15:12.000Z
""" OpenVINO DL Workbench Class for parameters of standard bash tools: rm, mkdir e.t.c. Copyright (c) 2018 Intel Corporation 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.a...
40.419355
114
0.698962
17aa5f0d1e2f6d19dc4000a2824d43dfdb9ec848
1,263
py
Python
line_detection_module/yolov5/TabDetectDewarp/tab_det.py
nhatnxn/ID_Passport-OCR
78322ec2b9648d0b027326dced7c4aec967bcab3
[ "MIT" ]
1
2021-06-30T11:01:25.000Z
2021-06-30T11:01:25.000Z
line_detection_module/yolov5/TabDetectDewarp/tab_det.py
nhatnxn/ID_Passport-OCR
78322ec2b9648d0b027326dced7c4aec967bcab3
[ "MIT" ]
null
null
null
line_detection_module/yolov5/TabDetectDewarp/tab_det.py
nhatnxn/ID_Passport-OCR
78322ec2b9648d0b027326dced7c4aec967bcab3
[ "MIT" ]
null
null
null
import cv2 import numpy as np from .utils import increase_border from .yolov5 import inference, polygon_from_corners def detect_bbox(im): """detect 9 information box Args: im (np.array): input image Returns: dict: { 'address_line_1': [x,y,w,h] ...
25.77551
150
0.471892
ced1a8d5d6d7d1b8843b901cb076f2549b904e4e
1,638
py
Python
VB_Classes/pointPolygonTest_demo.py
bobdavies2000/OpenCVB
1d339a94643a97e2d34f82dc7776677a8566d71d
[ "MIT" ]
69
2019-07-17T21:20:37.000Z
2022-03-23T08:38:03.000Z
VB_Classes/pointPolygonTest_demo.py
bobdavies2000/OpenCVB
1d339a94643a97e2d34f82dc7776677a8566d71d
[ "MIT" ]
5
2021-02-05T05:48:50.000Z
2022-03-12T01:43:15.000Z
VB_Classes/pointPolygonTest_demo.py
bobdavies2000/OpenCVB
1d339a94643a97e2d34f82dc7776677a8566d71d
[ "MIT" ]
6
2019-12-24T05:36:52.000Z
2021-02-19T15:55:13.000Z
import cv2 as cv import numpy as np titleWindow = 'PointPolygonTest_demo.py' # Create an image r = 100 src = np.zeros((4*r, 4*r), dtype=np.uint8) # Create a sequence of points to make a contour vert = [None]*6 vert[0] = (3*r//2, int(1.34*r)) vert[1] = (1*r, 2*r) vert[2] = (3*r//2, int(2.866*r)) vert[3] = (5*r//2, int...
30.333333
72
0.626984
4196a1bcd558b70f0e0c2c625bdf122ac0a4e41a
164
py
Python
blueprints/blue.py
Night-Developer/Flask-Simple-Structure
84f408c2e56427e45482e4edfab72d1d07214522
[ "MIT" ]
1
2021-01-24T03:07:19.000Z
2021-01-24T03:07:19.000Z
blueprints/blue.py
Night-Developer/Flask-Simple-Structure
84f408c2e56427e45482e4edfab72d1d07214522
[ "MIT" ]
null
null
null
blueprints/blue.py
Night-Developer/Flask-Simple-Structure
84f408c2e56427e45482e4edfab72d1d07214522
[ "MIT" ]
1
2020-12-04T13:41:01.000Z
2020-12-04T13:41:01.000Z
from flask import Blueprint blueprint = Blueprint('blueprint',__name__,template_folder='templates') @blueprint.route('/') def show(): return 'Hola blue print'
23.428571
71
0.75
a65a525f8c913ccbb2cf7ade73697a2418e79714
4,053
py
Python
code_search/function_parser/parsers/java_parser.py
novoselrok/codesnippetsearch
11310a8bfc9553df86dd98b120306159fd030b28
[ "MIT" ]
70
2020-05-13T23:43:25.000Z
2022-03-07T07:41:54.000Z
code_search/function_parser/parsers/java_parser.py
novoselrok/codesnippetsearch
11310a8bfc9553df86dd98b120306159fd030b28
[ "MIT" ]
18
2020-05-14T13:59:42.000Z
2022-02-27T09:37:01.000Z
code_search/function_parser/parsers/java_parser.py
novoselrok/codesnippetsearch
11310a8bfc9553df86dd98b120306159fd030b28
[ "MIT" ]
5
2020-05-14T18:13:45.000Z
2022-01-03T07:32:33.000Z
from typing import List, Dict, Any from code_search.function_parser.parsers.language_parser import LanguageParser, match_from_span, tokenize_code from code_search.function_parser.parsers.comment_utils import strip_c_style_comment_delimiters, get_docstring_summary class JavaParser(LanguageParser): BLACKLIS...
45.033333
118
0.529484
978bdea54598603b38b4c5f214b75968d19f8bbe
3,160
py
Python
foxylib/tools/function/function_tool.py
lbox-kr/foxylib
0c3cf236392a6ee639fe919e06dc68cc47812fcd
[ "BSD-3-Clause" ]
null
null
null
foxylib/tools/function/function_tool.py
lbox-kr/foxylib
0c3cf236392a6ee639fe919e06dc68cc47812fcd
[ "BSD-3-Clause" ]
1
2021-05-18T07:08:09.000Z
2021-05-18T07:08:09.000Z
foxylib/tools/function/function_tool.py
lbox-kr/foxylib
0c3cf236392a6ee639fe919e06dc68cc47812fcd
[ "BSD-3-Clause" ]
null
null
null
import inspect import logging import time from functools import wraps, reduce from future.utils import lfilter from nose.tools import assert_equal from foxylib.tools.native.class_tool import ClassTool class FunctionTool: @classmethod def returnvalue2func_simple(cls, rv): return lambda: rv @clas...
24.6875
83
0.616456
c08fa755ceae3b80d171e18b562167143c1e735a
5,106
py
Python
classifiers/DL_classifier.py
LANZhengyang/TSC_gait_analysis
1b7b0ac8e2ee202acb06cd999e156941420c294c
[ "MIT" ]
null
null
null
classifiers/DL_classifier.py
LANZhengyang/TSC_gait_analysis
1b7b0ac8e2ee202acb06cd999e156941420c294c
[ "MIT" ]
null
null
null
classifiers/DL_classifier.py
LANZhengyang/TSC_gait_analysis
1b7b0ac8e2ee202acb06cd999e156941420c294c
[ "MIT" ]
null
null
null
import pytorch_lightning as pl from pytorch_lightning.callbacks.early_stopping import EarlyStopping from pytorch_lightning.callbacks import ModelCheckpoint import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from torch.optim.lr_scheduler import ReduceLROnPlateau from torch.utils.dat...
40.848
162
0.639444
65024524ef5bb3e97b6cfecb4a291cec33e891d3
16,924
py
Python
alfworld/agents/agent/vision_dagger_agent.py
zhaozj89/alfworld_meta_dqn
4ad3ee6e57a6b808d4d90d48f00f14e4e8ec593d
[ "MIT" ]
42
2020-10-19T12:18:58.000Z
2022-03-11T05:48:03.000Z
alfworld/agents/agent/vision_dagger_agent.py
zhaozj89/alfworld_meta_dqn
4ad3ee6e57a6b808d4d90d48f00f14e4e8ec593d
[ "MIT" ]
23
2020-10-26T01:25:36.000Z
2022-03-20T21:29:03.000Z
alfworld/agents/agent/vision_dagger_agent.py
zhaozj89/alfworld_meta_dqn
4ad3ee6e57a6b808d4d90d48f00f14e4e8ec593d
[ "MIT" ]
14
2020-10-19T12:20:27.000Z
2022-02-09T22:58:40.000Z
import os import sys import copy import numpy as np import torch import torch.nn.functional as F import alfworld.agents import alfworld.agents.modules.memory as memory from alfworld.agents.agent import TextDAggerAgent from alfworld.agents.modules.generic import to_np, to_pt, _words_to_ids, pad_sequences, preproc, max...
49.197674
216
0.662018
ed2f270089d6bdbe40581e4887d6aa66c7dec163
2,461
py
Python
nobel_physics_prizes/src/data/country_utils.py
covuworie/nobel-physics-prizes
f89a32cd6eb9bbc9119a231bffee89b177ae847a
[ "MIT" ]
3
2019-08-21T05:35:42.000Z
2020-10-08T21:28:51.000Z
nobel_physics_prizes/src/data/country_utils.py
covuworie/nobel-physics-prizes
f89a32cd6eb9bbc9119a231bffee89b177ae847a
[ "MIT" ]
139
2018-09-01T23:15:59.000Z
2021-02-02T22:01:39.000Z
nobel_physics_prizes/src/data/country_utils.py
covuworie/nobel-physics-prizes
f89a32cd6eb9bbc9119a231bffee89b177ae847a
[ "MIT" ]
null
null
null
import numpy as np def nationality_to_alpha2_code(text, nationalities): """Create ISO 3166-1 alpha-2 country codes from nationalities. Use the nationality to find ISO 3166-1 alpha-2 country codes. This function should only be called for a subset of the places dataframe where country is not define...
33.256757
76
0.659488
3069ae4bc391c5f26697df57ae593e34ff755dc2
3,356
py
Python
find_and_edit.py
shanenoi/Finder
017fa83a5d4d468fd513c207b8f21153daba516a
[ "Unlicense" ]
1
2020-12-05T06:45:18.000Z
2020-12-05T06:45:18.000Z
find_and_edit.py
shanenoi/Finder
017fa83a5d4d468fd513c207b8f21153daba516a
[ "Unlicense" ]
1
2020-12-05T05:26:21.000Z
2020-12-05T05:26:21.000Z
find_and_edit.py
shanenoi/Finder
017fa83a5d4d468fd513c207b8f21153daba516a
[ "Unlicense" ]
null
null
null
from os import popen, system, path, listdir from sys import argv, exit from re import search, findall, sub DEFAULT_EDITOR = "/usr/bin/vi" GREEN = u"\u001b[32;1m" BLUE = u"\u001b[34m" RESET_ALL = u"\u001b[0m" def disable_color(): global GREEN global BLUE global RESET_ALL GREEN = "" BLUE = "" ...
26.425197
77
0.554231
5e854bba3f4a3418ad628da8361ce824a62185d9
836
py
Python
ask-sdk-model-runtime/ask_sdk_model_runtime/lwa/__init__.py
Signal-Kinetics/alexa-apis-for-python
abb8d3dce18a5510c48b215406ed36c024f01495
[ "Apache-2.0" ]
90
2018-09-19T21:56:42.000Z
2022-03-30T11:25:21.000Z
ask-sdk-model-runtime/ask_sdk_model_runtime/lwa/__init__.py
Signal-Kinetics/alexa-apis-for-python
abb8d3dce18a5510c48b215406ed36c024f01495
[ "Apache-2.0" ]
11
2018-09-23T12:16:48.000Z
2021-06-10T19:49:45.000Z
ask-sdk-model-runtime/ask_sdk_model_runtime/lwa/__init__.py
Signal-Kinetics/alexa-apis-for-python
abb8d3dce18a5510c48b215406ed36c024f01495
[ "Apache-2.0" ]
28
2018-09-19T22:30:38.000Z
2022-02-22T22:57:07.000Z
# -*- coding: utf-8 -*- # # Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights # Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). # You may not use this file except in compliance with the License. # A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or i...
36.347826
67
0.777512
d395273cd58442bc1168532d98b1f7b617b45eea
2,604
py
Python
t2/test3.py
thagd/matias.exe
87b5d425bc9a7334179b5fbce9cd5aa41caab302
[ "MIT" ]
2
2019-10-31T03:51:49.000Z
2019-12-03T00:53:50.000Z
t2/test3.py
thagd/matias.exe
87b5d425bc9a7334179b5fbce9cd5aa41caab302
[ "MIT" ]
null
null
null
t2/test3.py
thagd/matias.exe
87b5d425bc9a7334179b5fbce9cd5aa41caab302
[ "MIT" ]
3
2019-09-03T00:48:16.000Z
2019-10-22T17:47:06.000Z
#!/usr/bin/env python3 import os import random from mytcputils import * from mytcp import Servidor class CamadaRede: def __init__(self): self.callback = None self.fila = [] def registrar_recebedor(self, callback): self.callback = callback def enviar(self, segmento, dest_addr): ...
32.962025
143
0.700461
8837f13b086e995bacb06f0469d46794af55ee66
7,797
py
Python
readthedocs/projects/constants.py
durwasa-chakraborty/readthedocs.org
8a2a95ef3f238e6320061a211f9d59c6c7e5b8bd
[ "MIT" ]
1
2021-08-30T08:18:44.000Z
2021-08-30T08:18:44.000Z
readthedocs/projects/constants.py
durwasa-chakraborty/readthedocs.org
8a2a95ef3f238e6320061a211f9d59c6c7e5b8bd
[ "MIT" ]
null
null
null
readthedocs/projects/constants.py
durwasa-chakraborty/readthedocs.org
8a2a95ef3f238e6320061a211f9d59c6c7e5b8bd
[ "MIT" ]
1
2021-01-28T19:18:28.000Z
2021-01-28T19:18:28.000Z
# -*- coding: utf-8 -*- """ Project constants. Default values and other various configuration for projects, including available theme names and repository types. """ from __future__ import ( absolute_import, division, print_function, unicode_literals) import re from django.utils.translation import ugettext_lazy...
24.442006
80
0.518276
5604b08806f3ac5333bd16ffa3dd09298725c336
236
py
Python
Leetcode/0344. Reverse String.py
luckyrabbit85/Python
ed134fd70b4a7b84b183b87b85ad5190f54c9526
[ "MIT" ]
1
2021-07-15T18:40:26.000Z
2021-07-15T18:40:26.000Z
Leetcode/0344. Reverse String.py
luckyrabbit85/Python
ed134fd70b4a7b84b183b87b85ad5190f54c9526
[ "MIT" ]
null
null
null
Leetcode/0344. Reverse String.py
luckyrabbit85/Python
ed134fd70b4a7b84b183b87b85ad5190f54c9526
[ "MIT" ]
null
null
null
class Solution: def reverseString(self, s: list[str]) -> None: left = 0 right = len(s) - 1 while left < right: s[left], s[right] = s[right], s[left] left, right = left + 1, right + 1
26.222222
50
0.491525
abfbb3de1dc0b20f835c187f60dc0768a353041f
16,772
py
Python
gym/monitoring/monitor.py
leopauly/Observation-Learning-Simulations
462c04a87c45aae51537b8ea5b44646afa31d3a5
[ "MIT" ]
49
2017-12-11T11:00:02.000Z
2022-03-30T05:19:31.000Z
gym/monitoring/monitor.py
leopauly/Observation-Learning-Simulations
462c04a87c45aae51537b8ea5b44646afa31d3a5
[ "MIT" ]
2
2018-01-01T17:39:56.000Z
2019-07-24T04:49:08.000Z
gym/monitoring/monitor.py
leopauly/Observation-Learning-Simulations
462c04a87c45aae51537b8ea5b44646afa31d3a5
[ "MIT" ]
12
2017-12-13T11:52:17.000Z
2020-12-03T00:53:29.000Z
import atexit import logging import json import numpy as np import os import six import sys import threading import weakref from gym import error, version from gym.monitoring import stats_recorder, video_recorder from gym.utils import atomic_write, closer, seeding logger = logging.getLogger(__name__) FILE_PREFIX = '...
39.650118
302
0.65347
98a6f97dc7e5d51b44400e6e081f60e61b196b84
257
py
Python
python/main.py
katelyn98/MachineLearning
bb03dd8a9370c509446ceda17b2b623c6efe7106
[ "MIT" ]
null
null
null
python/main.py
katelyn98/MachineLearning
bb03dd8a9370c509446ceda17b2b623c6efe7106
[ "MIT" ]
5
2020-08-14T02:58:46.000Z
2020-08-14T19:31:39.000Z
python/main.py
katelyn98/MachineLearning
bb03dd8a9370c509446ceda17b2b623c6efe7106
[ "MIT" ]
1
2021-06-29T19:17:43.000Z
2021-06-29T19:17:43.000Z
''' Name: main.py Description: author: @katelyn98 ''' import cv2 as cv import func.processVideo as ppv font = cv.FONT_HERSHEY_SIMPLEX if __name__ == '__main__': cap = cv.VideoCapture(0) font = cv.FONT_HERSHEY_SIMPLEX ppv.process(cap, font)
15.117647
34
0.70428
e3b58dff4bf5a42e21a8525fe35fa7903cb71f0a
1,344
py
Python
Undergraduate/COMP312/Assignment6/Programs/to-pattern.py
danielbraithwt/University
50c6a904e1c53c03bce9928975607c35fd741e33
[ "MIT" ]
null
null
null
Undergraduate/COMP312/Assignment6/Programs/to-pattern.py
danielbraithwt/University
50c6a904e1c53c03bce9928975607c35fd741e33
[ "MIT" ]
1
2016-12-09T00:17:19.000Z
2016-12-09T00:28:42.000Z
Undergraduate/COMP312/Assignment6/Programs/to-pattern.py
danielbraithwt/University
50c6a904e1c53c03bce9928975607c35fd741e33
[ "MIT" ]
1
2020-04-23T23:02:31.000Z
2020-04-23T23:02:31.000Z
data = {'Iris-setosa': [], 'Iris-versicolor': [], 'Iris-virginica': []} f = file("part1/iris-training.txt") lines = f.read().split('\n') f.close() maxvals = [Float.MIN_VALUE, Float.MIN_VALUE, Float.MIN_VALUE] minvals = [Float.MAX_VALUE, Float.MAX_VALUE, Float.MAX_VALUE] for line in lines: point = line.split(' ') ...
19.764706
71
0.620536
2d75e99dbc31eafa2535f4145b4c6d1ee877ebae
18,200
py
Python
tests/test_models.py
odinuge/django-push-notifications
03ef4318aafc5135490c12b38979307859ba97ef
[ "MIT" ]
null
null
null
tests/test_models.py
odinuge/django-push-notifications
03ef4318aafc5135490c12b38979307859ba97ef
[ "MIT" ]
1
2021-06-25T15:16:55.000Z
2021-06-25T15:16:55.000Z
tests/test_models.py
gagantrivedi/django-push-notifications
e51692b79be370d66a8e7b67c5c95ec27c5662ab
[ "MIT" ]
null
null
null
from __future__ import absolute_import import json from django.test import TestCase from django.utils import timezone from push_notifications.gcm import GCMError, send_bulk_message from push_notifications.models import APNSDevice, GCMDevice from . import responses from ._mock import mock class GCMModelTestCase(TestC...
39.055794
92
0.73989
74baf400afd4e79e8d9f3b7cc866fe41d3a105a0
8,770
py
Python
imix/utils/distributed_info.py
linxi1158/iMIX
af87a17275f02c94932bb2e29f132a84db812002
[ "Apache-2.0" ]
23
2021-06-26T08:45:19.000Z
2022-03-02T02:13:33.000Z
imix/utils/distributed_info.py
XChuanLee/iMIX
99898de97ef8b45462ca1d6bf2542e423a73d769
[ "Apache-2.0" ]
null
null
null
imix/utils/distributed_info.py
XChuanLee/iMIX
99898de97ef8b45462ca1d6bf2542e423a73d769
[ "Apache-2.0" ]
9
2021-06-10T02:36:20.000Z
2021-11-09T02:18:16.000Z
import enum import functools import pickle import numpy as np import torch import torch.distributed as dist _LOCAL_PROCESS_GROUP = None """ A torch process group which only includes processes that on the same machine as the current process. This variable is set when processes are spawned by `launch()` in "engine/laun...
31.209964
119
0.677651
3948f97cb3dda43a6ebb9a53685ab3955b4254e8
19,067
py
Python
edb/pgsql/ast.py
ambv/edgedb
83a2a4fac2d9dce9b609ddb786331ff431339062
[ "Apache-2.0" ]
4
2020-04-25T13:52:13.000Z
2020-09-23T19:14:07.000Z
edb/pgsql/ast.py
ambv/edgedb
83a2a4fac2d9dce9b609ddb786331ff431339062
[ "Apache-2.0" ]
null
null
null
edb/pgsql/ast.py
ambv/edgedb
83a2a4fac2d9dce9b609ddb786331ff431339062
[ "Apache-2.0" ]
null
null
null
# # This source file is part of the EdgeDB open source project. # # Copyright 2008-present MagicStack Inc. and the EdgeDB authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http...
23.395092
78
0.662401
ef1999a6b83954b35066a0e78f3a05a961ac62df
2,123
py
Python
config.py
tryonelove/tvv-vk-bot
2fda3f32f88303ced64388cd43f08bdccfe82ee4
[ "Apache-2.0" ]
null
null
null
config.py
tryonelove/tvv-vk-bot
2fda3f32f88303ced64388cd43f08bdccfe82ee4
[ "Apache-2.0" ]
null
null
null
config.py
tryonelove/tvv-vk-bot
2fda3f32f88303ced64388cd43f08bdccfe82ee4
[ "Apache-2.0" ]
null
null
null
import os CREATOR_ID = 236965366 GROUP_ID_TEST = os.getenv("GROUP_ID_TEST") GROUP_ID = os.getenv("GROUP_ID") API_KEY_TEST = os.getenv("API_KEY_TEST") API_KEY = os.getenv("API_KEY") OSU_API_KEY = os.getenv("OSU_API_KEY") OSU_MATCHMAKING_KEY = os.getenv("OSU_MATCHMAKING_KEY") RESTRICTED_HIGHLIGHTS = ["@all", "@onlin...
29.082192
86
0.601507
605239e2228af3029e32e4164141a85ebc90bbbc
3,444
py
Python
waterfall/api/v2/views/workflows.py
xiaoquqi/waterfall
c023df8fc4376d93136458dfc4ca956a7249e509
[ "Apache-2.0" ]
null
null
null
waterfall/api/v2/views/workflows.py
xiaoquqi/waterfall
c023df8fc4376d93136458dfc4ca956a7249e509
[ "Apache-2.0" ]
null
null
null
waterfall/api/v2/views/workflows.py
xiaoquqi/waterfall
c023df8fc4376d93136458dfc4ca956a7249e509
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 OpenStack Foundation # 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 requ...
37.846154
88
0.601626
f251f894edfec3b7a73c89ae4666e2c0b3a1949f
64
py
Python
py/start/helloworld.py
zhongwei/ztodo
fef4f24e65fb8d571c6c13e6f82d842023e7a8e1
[ "CC0-1.0" ]
1
2015-09-22T08:28:27.000Z
2015-09-22T08:28:27.000Z
py/start/helloworld.py
zhongwei/ztodo
fef4f24e65fb8d571c6c13e6f82d842023e7a8e1
[ "CC0-1.0" ]
null
null
null
py/start/helloworld.py
zhongwei/ztodo
fef4f24e65fb8d571c6c13e6f82d842023e7a8e1
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 print "Hello, World!";
12.8
22
0.65625
e023b51f25a491e63141cad8c4e4b15c945de5bf
743
py
Python
tasbot/__init__.py
TurBoss/tasbot3
c29a22f98aa8044a415f79d83f620ed6ef7ce000
[ "WTFPL" ]
null
null
null
tasbot/__init__.py
TurBoss/tasbot3
c29a22f98aa8044a415f79d83f620ed6ef7ce000
[ "WTFPL" ]
null
null
null
tasbot/__init__.py
TurBoss/tasbot3
c29a22f98aa8044a415f79d83f620ed6ef7ce000
[ "WTFPL" ]
null
null
null
"""tasbot module docstring""" __version__ = (1, 0, 0) from main import MainApp as DefaultApp import sys #pretty sure there's buitins for this but I couldn't find them def _greater(a, b): return cmp(a, b) > 0 def _less(a, b): return cmp(a, b) < 0 def _compare(vtuple, op): for i in range(len(vtuple)): if op(...
20.081081
67
0.694482
ba9538726e16f8c986fc5ef048aafcc4ed7129d8
14,900
py
Python
src/ezdxf/path/path.py
jpsantos-mf/ezdxf
2b542a551b2cfc3c0920a5dbf302ff58cea90fbd
[ "MIT" ]
null
null
null
src/ezdxf/path/path.py
jpsantos-mf/ezdxf
2b542a551b2cfc3c0920a5dbf302ff58cea90fbd
[ "MIT" ]
null
null
null
src/ezdxf/path/path.py
jpsantos-mf/ezdxf
2b542a551b2cfc3c0920a5dbf302ff58cea90fbd
[ "MIT" ]
null
null
null
# Copyright (c) 2020-2021, Manfred Moitzi # License: MIT License from typing import TYPE_CHECKING, List, Iterable from collections import abc import warnings from ezdxf.math import ( Vec3, NULLVEC, OCS, Bezier3P, Bezier4P, Matrix44, ConstructionEllipse, BSpline, has_clockwise_orientation, ) from ezdxf.entities...
34.976526
80
0.590134
fab8d9005b1a45b36964fd1193c7a65bc84dd41e
2,600
py
Python
app/modules/common/FEAT/F14_individual_heat_supply_costs_per_building/F_14.py
HotMaps/building_h-c
db5a103cb9d41b88e6cdc3c9194fc1ec9fc5c31f
[ "Apache-2.0" ]
1
2017-05-12T11:31:09.000Z
2017-05-12T11:31:09.000Z
app/modules/common/FEAT/F14_individual_heat_supply_costs_per_building/F_14.py
HotMaps/HotMaps-building_h-c
db5a103cb9d41b88e6cdc3c9194fc1ec9fc5c31f
[ "Apache-2.0" ]
2
2017-08-22T13:53:22.000Z
2017-09-25T07:27:28.000Z
app/modules/common/FEAT/F14_individual_heat_supply_costs_per_building/F_14.py
HotMaps/Hotmaps-building_h-c
db5a103cb9d41b88e6cdc3c9194fc1ec9fc5c31f
[ "Apache-2.0" ]
null
null
null
''' This script has been created in the context of the Hotmaps EU project. @author: Sara Fritz @Institute: TUW, Austria @Contact: fritz@eeg.tuwien.ac.at ''' import os import sys path = os.path.dirname(os.path.dirname(os.path.dirname(os.path. abspath(__file__)))) ...
35.135135
199
0.739231
56aa124a5b3848b66114d9a6079b9319a00bb870
2,838
py
Python
ImageBot/to_yolo/YoloConverter.py
FraunhoferIAO/Image-Bot
951258a78a297f3fb27478f5671f6bc804cd5715
[ "MIT" ]
2
2021-12-28T08:33:14.000Z
2022-01-06T15:28:19.000Z
ImageBot/to_yolo/YoloConverter.py
FraunhoferIAO/Image-Bot
951258a78a297f3fb27478f5671f6bc804cd5715
[ "MIT" ]
1
2022-02-17T17:43:11.000Z
2022-02-17T17:43:11.000Z
ImageBot/to_yolo/YoloConverter.py
IAORaisierer/Image-Bot
951258a78a297f3fb27478f5671f6bc804cd5715
[ "MIT" ]
1
2022-02-09T18:24:09.000Z
2022-02-09T18:24:09.000Z
import numpy as np import cv2 import uuid import os import random import imgaug.augmenters as iaa import imgaug.parameters as iap from pathlib import Path from queue import Queue import os from ..Config import CLASS_ID from ..infrastructure.ImageMessage import ImageMessage from ..infrastructure.filter import load_im...
38.351351
122
0.677942
7c0901f83acb1a941985bf451068cfc65e13f65c
3,337
py
Python
infrastructure-provisioning/src/general/scripts/aws/common_create_role_policy.py
GennadiyShpak/incubator-datalab
00f23c6bea160136c4ab106484c7053554915873
[ "Apache-2.0" ]
53
2019-01-24T10:18:26.000Z
2020-09-27T10:44:33.000Z
infrastructure-provisioning/src/general/scripts/aws/common_create_role_policy.py
GennadiyShpak/incubator-datalab
00f23c6bea160136c4ab106484c7053554915873
[ "Apache-2.0" ]
48
2019-02-28T12:11:33.000Z
2020-09-15T08:27:08.000Z
infrastructure-provisioning/src/general/scripts/aws/common_create_role_policy.py
GennadiyShpak/incubator-datalab
00f23c6bea160136c4ab106484c7053554915873
[ "Apache-2.0" ]
44
2019-01-14T10:31:55.000Z
2020-09-22T17:53:33.000Z
#!/usr/bin/python3 # ***************************************************************************** # # 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 ...
45.094595
143
0.637998
16ee9425d4107ab860c52b53f97c802b576ce2ea
14,043
py
Python
lbrynet/lbryfile/client/LBRYFileDownloader.py
sonatagreen/lbry
f6473e3383956b7823a76516622bba6c172619e1
[ "BSD-2-Clause" ]
null
null
null
lbrynet/lbryfile/client/LBRYFileDownloader.py
sonatagreen/lbry
f6473e3383956b7823a76516622bba6c172619e1
[ "BSD-2-Clause" ]
null
null
null
lbrynet/lbryfile/client/LBRYFileDownloader.py
sonatagreen/lbry
f6473e3383956b7823a76516622bba6c172619e1
[ "BSD-2-Clause" ]
null
null
null
import subprocess import binascii from zope.interface import implements from lbrynet.lbryfile.StreamDescriptor import save_sd_info from lbrynet.cryptstream.client.CryptStreamDownloader import CryptStreamDownloader from lbrynet.core.client.StreamProgressManager import FullStreamProgressManager from lbrynet.core.Stream...
39.669492
112
0.631347
499b25c7002886a68ccc0a96a57ee24a95d757b7
1,210
py
Python
camel_tools/disambig/__init__.py
balhafni/camel_tools
84a8149fe6e80b4ecbd4bf8cfb9f0440b4815389
[ "MIT" ]
null
null
null
camel_tools/disambig/__init__.py
balhafni/camel_tools
84a8149fe6e80b4ecbd4bf8cfb9f0440b4815389
[ "MIT" ]
null
null
null
camel_tools/disambig/__init__.py
balhafni/camel_tools
84a8149fe6e80b4ecbd4bf8cfb9f0440b4815389
[ "MIT" ]
2
2020-12-08T18:10:12.000Z
2021-08-30T15:33:50.000Z
# MIT License # # Copyright 2018-2019 New York University Abu Dhabi # # 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, co...
48.4
79
0.780992
aad8692cfd5f7302722068f7c5debb2d9d3fa008
5,397
py
Python
wl.py
camgnostic/Wunderlist-3-Alfred
65fc2fad2c2f7786140ade78140ff0c80aca6e68
[ "AAL" ]
9
2015-03-04T12:44:22.000Z
2018-08-12T05:56:13.000Z
wl.py
camgnostic/Wunderlist-3-Alfred
65fc2fad2c2f7786140ade78140ff0c80aca6e68
[ "AAL" ]
1
2015-02-22T20:19:48.000Z
2016-08-21T07:05:36.000Z
wl.py
camgnostic/Wunderlist-3-Alfred
65fc2fad2c2f7786140ade78140ff0c80aca6e68
[ "AAL" ]
null
null
null
from wl_utils import getLists, getListId, refreshTasks, refreshLists, getTasks, getTask from wl_utils import ICON_ADDTASK, ICON_DELETE, ICON_DONE, ICON_EMPTY, ICON_ITEM, ICON_LIST, ICON_NEWLIST, ICON_STAR, ICON_UNSTAR, ICON_UPDATE from workflow import Workflow, PasswordNotFound from workflow.background import is_runnin...
49.513761
142
0.495831
762646b44b3f3be70513c9299f47da6de6d76ad6
25,596
py
Python
pywps/app/WPSRequest.py
janpisl/pywps
73a1835359f0503e08fb007d75de699bf3cf29ed
[ "MIT" ]
null
null
null
pywps/app/WPSRequest.py
janpisl/pywps
73a1835359f0503e08fb007d75de699bf3cf29ed
[ "MIT" ]
null
null
null
pywps/app/WPSRequest.py
janpisl/pywps
73a1835359f0503e08fb007d75de699bf3cf29ed
[ "MIT" ]
null
null
null
################################################################## # Copyright 2018 Open Source Geospatial Foundation and others # # licensed under MIT, Please consult LICENSE.txt for details # ################################################################## import logging import lxml import lxml.etree...
38.548193
121
0.552469
d7a58dd8095d0bd336daf65ad359a73a7c1cccd0
1,405
py
Python
pico8/pico8.py
fmaida/pico8-mkdocs-plugin
8fac0e651ef41a10d338566f659ad26ba09e425b
[ "MIT" ]
null
null
null
pico8/pico8.py
fmaida/pico8-mkdocs-plugin
8fac0e651ef41a10d338566f659ad26ba09e425b
[ "MIT" ]
null
null
null
pico8/pico8.py
fmaida/pico8-mkdocs-plugin
8fac0e651ef41a10d338566f659ad26ba09e425b
[ "MIT" ]
null
null
null
import re from mkdocs.plugins import BasePlugin class Pico8(BasePlugin): # This snippet of code allows to show a pico-8 # web player in a HTML page snippet = "<div style='width:100%'>" snippet += "<iframe src='https://www.lexaloffle.com/bbs/widget.php?pid={}'" snippet += " allowfullscreen width=...
34.268293
107
0.593594
8229664c8b5b0ef7a728a86aca6818e111454f69
8,851
py
Python
misc/acrn-config/launch_config/launch_cfg_gen.py
yfliuu/acrn-hypervisor
6289124e7c894323e2a5342bf201856d76512a60
[ "BSD-3-Clause" ]
null
null
null
misc/acrn-config/launch_config/launch_cfg_gen.py
yfliuu/acrn-hypervisor
6289124e7c894323e2a5342bf201856d76512a60
[ "BSD-3-Clause" ]
null
null
null
misc/acrn-config/launch_config/launch_cfg_gen.py
yfliuu/acrn-hypervisor
6289124e7c894323e2a5342bf201856d76512a60
[ "BSD-3-Clause" ]
null
null
null
# Copyright (C) 2019 Intel Corporation. All rights reserved. # # SPDX-License-Identifier: BSD-3-Clause # import os import sys sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', 'library')) from launch_item import AvailablePthru, PthruSelected, VirtioDeviceSelect, AcrnDmArgs import launch_cf...
34.98419
128
0.694837
d3f5133cd5d51e549b2a1fefc2bb55ca00c84b2e
7,597
py
Python
sdk/avalon_sdk/ethereum/ethereum_work_order.py
manojsalunke85/avalon
99fc49ac215ac3dfcfb0547f8abebc0b131dfad1
[ "Apache-2.0" ]
null
null
null
sdk/avalon_sdk/ethereum/ethereum_work_order.py
manojsalunke85/avalon
99fc49ac215ac3dfcfb0547f8abebc0b131dfad1
[ "Apache-2.0" ]
null
null
null
sdk/avalon_sdk/ethereum/ethereum_work_order.py
manojsalunke85/avalon
99fc49ac215ac3dfcfb0547f8abebc0b131dfad1
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Intel Corporation # # 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 wri...
38.958974
79
0.618139
faf6ae3f13cb5e77b5e7460191445a9023fdc5a7
8,613
py
Python
chaser/chaser.py
ccr-tools/chaser
75657f765c62ce98f80882d56a65417e427fd73c
[ "BSD-3-Clause" ]
2
2016-02-19T21:58:24.000Z
2016-07-10T12:06:44.000Z
chaser/chaser.py
ccr-tools/chaser
75657f765c62ce98f80882d56a65417e427fd73c
[ "BSD-3-Clause" ]
10
2016-02-19T21:57:44.000Z
2019-03-05T23:37:29.000Z
chaser/chaser.py
ccr-tools/chaser
75657f765c62ce98f80882d56a65417e427fd73c
[ "BSD-3-Clause" ]
1
2019-05-11T12:02:21.000Z
2019-05-11T12:02:21.000Z
import io import tarfile import subprocess import json import re import os import termcolor import progressbar from pkg_resources import parse_version import requests from toposort import toposort_flatten import ccr from chaser import pacman, prompt BUILD_DIR = "/tmp/chaser" def get_source_files(args, workingdir=No...
34.178571
137
0.607918
507fff9e330aee73d66dd446bb7170d7aacd5066
1,031
py
Python
bandstour_geojson_export/testcreate_geojson_polygon_from_viz_json.py
ungentilgarcon/cesiumviz
dd4c2bccde05e4f1272248cc0cedc075cdbeed96
[ "Apache-2.0" ]
null
null
null
bandstour_geojson_export/testcreate_geojson_polygon_from_viz_json.py
ungentilgarcon/cesiumviz
dd4c2bccde05e4f1272248cc0cedc075cdbeed96
[ "Apache-2.0" ]
null
null
null
bandstour_geojson_export/testcreate_geojson_polygon_from_viz_json.py
ungentilgarcon/cesiumviz
dd4c2bccde05e4f1272248cc0cedc075cdbeed96
[ "Apache-2.0" ]
null
null
null
# -- coding: utf-8 -- import json import os from geojson import Feature, Point, FeatureCollection, Polygon '''//ouvrir fichier points de viz, utiliser geojson pour en faire un geojson import json''' with open('exportbands_all_venues-1000.geojson','a+') as dataout_file: f = open('exportbands_all_venues-1000.json'); ...
36.821429
91
0.678952
71be640577dcd40d1ab64c4a3428a084dedb2c32
1,511
py
Python
model/yolo4.py
inacmor/mobiledets-yolov4-pytorch
db285fa061e997032a77fa1ee8c954f2eba2a84d
[ "MIT" ]
1
2021-11-04T07:33:56.000Z
2021-11-04T07:33:56.000Z
model/yolo4.py
inacmor/mobiledets-yolov4-pytorch
db285fa061e997032a77fa1ee8c954f2eba2a84d
[ "MIT" ]
null
null
null
model/yolo4.py
inacmor/mobiledets-yolov4-pytorch
db285fa061e997032a77fa1ee8c954f2eba2a84d
[ "MIT" ]
null
null
null
#encoding=utf-8 ''' @Time : 2020/11/30 08:30 @Author : Inacmor @File : yolo4.py @Noice : @Modificattion : @Author : @Time : @Detail : ''' import torch.nn as nn import torch from model.net.head import YOLO_head from model.net.body import YOLOBODY import time cla...
26.508772
140
0.595632
23f3c59ded1ced6435bd7b444b3e44a9d2205e9b
17,847
py
Python
tests/postgres_tests/test_aggregates.py
robgolding/django
1d0bab0bfd77edcf1228d45bf654457a8ff1890d
[ "PSF-2.0", "BSD-3-Clause" ]
13
2015-04-17T02:12:15.000Z
2021-12-08T19:45:36.000Z
tests/postgres_tests/test_aggregates.py
robgolding/django
1d0bab0bfd77edcf1228d45bf654457a8ff1890d
[ "PSF-2.0", "BSD-3-Clause" ]
6
2019-08-06T06:45:19.000Z
2022-01-27T14:18:08.000Z
tests/postgres_tests/test_aggregates.py
robgolding/django
1d0bab0bfd77edcf1228d45bf654457a8ff1890d
[ "PSF-2.0", "BSD-3-Clause" ]
3
2019-09-26T17:58:34.000Z
2022-01-26T15:32:14.000Z
import json from django.db.models.expressions import F, Value from django.db.models.functions import Concat, Substr from django.test.utils import Approximate from . import PostgreSQLTestCase from .models import AggregateTestModel, StatTestModel try: from django.contrib.postgres.aggregates import ( ArrayA...
46.355844
119
0.668348
a13c5824c0efd94e84eb285124015363fc02f7af
9,083
py
Python
aix360/algorithms/rbm/boolean_rule_cg.py
gdequeiroz/AIX360
e0da163f1e8ced971b92b071856e581d666d2e75
[ "Apache-2.0" ]
null
null
null
aix360/algorithms/rbm/boolean_rule_cg.py
gdequeiroz/AIX360
e0da163f1e8ced971b92b071856e581d666d2e75
[ "Apache-2.0" ]
null
null
null
aix360/algorithms/rbm/boolean_rule_cg.py
gdequeiroz/AIX360
e0da163f1e8ced971b92b071856e581d666d2e75
[ "Apache-2.0" ]
null
null
null
import os import numpy as np import pandas as pd import cvxpy as cvx from sklearn.metrics import confusion_matrix, accuracy_score from .beam_search import beam_search, beam_search_K1 class BooleanRuleCG(object): """BooleanRuleCG is a directly interpretable supervised learning method for binary classification...
39.150862
111
0.560828
2985e862a3191ddcf6431185046c11c79eb7fd1d
261
py
Python
Modulo 3/090.py
thiago19maciel/Exercicios-em-Python
0d46816caf655c6e870510bb1136964854fc875f
[ "MIT" ]
1
2022-03-22T22:36:48.000Z
2022-03-22T22:36:48.000Z
Modulo 3/090.py
thiago19maciel/Exercicios-em-Python
0d46816caf655c6e870510bb1136964854fc875f
[ "MIT" ]
null
null
null
Modulo 3/090.py
thiago19maciel/Exercicios-em-Python
0d46816caf655c6e870510bb1136964854fc875f
[ "MIT" ]
null
null
null
dados_aluno = {'Nome': str(input('Nome do aluno: ')), 'Media': float(input('Média: '))} if dados_aluno['Media'] > 7: dados_aluno['situação'] = 'Aprovado' else: dados_aluno['situação'] = 'Reprovado' print(f'Situação é igual a {dados_aluno["situação"]} ')
43.5
87
0.659004
ae2ee8603fc913332fb504c64f4cddda69f12f65
1,101
py
Python
Chapter08/Exercise8.01/bookr/bookr/urls.py
lmoshood/The-Django-Workshop
52e86a8f93cb38bf70d50e9b8d2c6d7dac416f62
[ "MIT" ]
null
null
null
Chapter08/Exercise8.01/bookr/bookr/urls.py
lmoshood/The-Django-Workshop
52e86a8f93cb38bf70d50e9b8d2c6d7dac416f62
[ "MIT" ]
null
null
null
Chapter08/Exercise8.01/bookr/bookr/urls.py
lmoshood/The-Django-Workshop
52e86a8f93cb38bf70d50e9b8d2c6d7dac416f62
[ "MIT" ]
1
2020-05-27T13:41:58.000Z
2020-05-27T13:41:58.000Z
"""bookr URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/dev/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based v...
34.40625
80
0.721163
03d29a173eab7d1b43e3c4e3fad45ef04a133cbd
2,105
py
Python
labler/db/rdmbs/dbman.py
thenetcircle/coop-labler
43798facfc5488e3c081b3401406a3fb30cb82e3
[ "MIT" ]
1
2019-04-15T08:20:19.000Z
2019-04-15T08:20:19.000Z
labler/db/rdmbs/dbman.py
thenetcircle/coop-labler
43798facfc5488e3c081b3401406a3fb30cb82e3
[ "MIT" ]
3
2021-09-08T00:57:18.000Z
2022-03-11T23:45:24.000Z
labler/db/rdmbs/dbman.py
thenetcircle/coop-labler
43798facfc5488e3c081b3401406a3fb30cb82e3
[ "MIT" ]
null
null
null
from gnenv.environ import GNEnvironment from sqlalchemy import create_engine from sqlalchemy.engine.url import URL from sqlalchemy.orm import scoped_session from sqlalchemy.orm import sessionmaker from labler.config import ConfigKeys # need to keep these here even if "unused", otherwise create_all(engine) won't find ...
39.716981
117
0.678385
22b84df8530466e1873e7446e1034d2e0f020d10
21,553
py
Python
code_python/1.3/corner-extract.py
pinxau1000/Computer-Vision
c1d8da241dfe39467aaa65777c725fdebffe35cf
[ "MIT" ]
null
null
null
code_python/1.3/corner-extract.py
pinxau1000/Computer-Vision
c1d8da241dfe39467aaa65777c725fdebffe35cf
[ "MIT" ]
null
null
null
code_python/1.3/corner-extract.py
pinxau1000/Computer-Vision
c1d8da241dfe39467aaa65777c725fdebffe35cf
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------------ # IMPORTS # ------------------------------------------------------------------------------ from sys import version_info from sys import path as syspath from os import path import json _CURRENT_DIRECTORY =...
37.096386
110
0.512968
bdf0286f8a544c7748f52237cb794903ea1de15b
714
py
Python
Scripts/python/scripts mundo 1/JOGO CURSO EM VIDEO/fase10.py
BrenoNAlmeida/Scripts-Escola
20d886d0401ef7f40a4a46e307eadbf5b1c0a5eb
[ "Apache-2.0" ]
null
null
null
Scripts/python/scripts mundo 1/JOGO CURSO EM VIDEO/fase10.py
BrenoNAlmeida/Scripts-Escola
20d886d0401ef7f40a4a46e307eadbf5b1c0a5eb
[ "Apache-2.0" ]
null
null
null
Scripts/python/scripts mundo 1/JOGO CURSO EM VIDEO/fase10.py
BrenoNAlmeida/Scripts-Escola
20d886d0401ef7f40a4a46e307eadbf5b1c0a5eb
[ "Apache-2.0" ]
null
null
null
print('''\033[1;34mOS EXERCICIOS DESSA FASE SÃO : ! [28] - jogo do adivinha [29] - Radar eletronico [30] - Par ou impar [31] - custo da viagem [32] - Ano bissexto [33] - Maior e menor valor [34] - Almento de salario [35] - Analizando triangulo\033[32m''') opção3 =...
26.444444
59
0.634454
182881b8e6afac3ed91530d110eaed27a944a4f5
278
py
Python
100doc/005-password_generator.py
ralexrivero/python_fundation
34a855db7380d3d91db6a8f02d97f287d038ef5f
[ "Apache-2.0" ]
1
2021-09-19T04:09:48.000Z
2021-09-19T04:09:48.000Z
100doc/005-password_generator.py
ralexrivero/python_fundation
34a855db7380d3d91db6a8f02d97f287d038ef5f
[ "Apache-2.0" ]
null
null
null
100doc/005-password_generator.py
ralexrivero/python_fundation
34a855db7380d3d91db6a8f02d97f287d038ef5f
[ "Apache-2.0" ]
null
null
null
import string import random printable_chars = list(string.printable) j = 0 valid_chars = [] for i in printable_chars: if i == " ": break valid_chars.append(i) for i in range(0, 12): print(valid_chars[random.randint(0, len(valid_chars))], end='') print()
16.352941
67
0.661871
a9e9673fb4dc7e5bb2960d3a4f73b0233b22b9a1
12,754
py
Python
payslip/south_migrations/0001_initial.py
andrejsab/django-payslip
14b7fdc12696bb1894a49467c88c361ac2a12c00
[ "MIT" ]
22
2017-01-09T22:27:08.000Z
2021-05-07T10:26:00.000Z
payslip/south_migrations/0001_initial.py
andrejsab/django-payslip
14b7fdc12696bb1894a49467c88c361ac2a12c00
[ "MIT" ]
1
2018-10-04T15:53:19.000Z
2018-11-10T09:06:22.000Z
payslip/south_migrations/0001_initial.py
andrejsab/django-payslip
14b7fdc12696bb1894a49467c88c361ac2a12c00
[ "MIT" ]
21
2017-02-15T05:15:31.000Z
2021-04-17T09:55:25.000Z
# flake8: noqa # -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'Company' db.create_table('payslip_company', ( ('id', self.gf('dja...
62.519608
182
0.598244
392c2ba16a6d8074314aa4267c6f4071047b1366
3,233
py
Python
tests/middleware/test_errors.py
phillipuniverse/starlette
b032e07f6a883c0de2445fd5953a323ec43a94ed
[ "BSD-3-Clause" ]
null
null
null
tests/middleware/test_errors.py
phillipuniverse/starlette
b032e07f6a883c0de2445fd5953a323ec43a94ed
[ "BSD-3-Clause" ]
17
2022-01-01T21:22:33.000Z
2022-03-07T10:33:37.000Z
tests/middleware/test_errors.py
sthagen/encode-starlette
ba31df75daac7cc3b5fcfea89939372768a166cb
[ "BSD-3-Clause" ]
1
2022-03-25T10:05:17.000Z
2022-03-25T10:05:17.000Z
import pytest from starlette.applications import Starlette from starlette.background import BackgroundTask from starlette.middleware.errors import ServerErrorMiddleware from starlette.responses import JSONResponse, Response from starlette.routing import Route def test_handler(test_client_factory): async def app(...
32.656566
73
0.718218
f13670e398952759140b671c0cf7e3ac1c81866d
4,577
py
Python
python/tvm/contrib/tf_op/module.py
heweiwill/incubator-tvm
5317afb79616454a27dedd4cf3b28dd0986aacdb
[ "Apache-2.0" ]
5
2020-06-19T03:22:24.000Z
2021-03-17T22:16:48.000Z
python/tvm/contrib/tf_op/module.py
heweiwill/incubator-tvm
5317afb79616454a27dedd4cf3b28dd0986aacdb
[ "Apache-2.0" ]
2
2020-07-08T12:34:59.000Z
2020-07-11T15:54:47.000Z
python/tvm/contrib/tf_op/module.py
heweiwill/incubator-tvm
5317afb79616454a27dedd4cf3b28dd0986aacdb
[ "Apache-2.0" ]
2
2019-08-24T00:06:36.000Z
2022-03-03T02:07:27.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...
40.149123
93
0.642124
1bdcf99bc7867589005ac772457741b6ae9eb59a
937
py
Python
src/tests/interactive/cleanup.py
Trundle/js_of_fstar
1c8a2a1b951cc119dd49d3f5d9817571e17aab51
[ "Apache-2.0" ]
1
2017-05-14T21:45:17.000Z
2017-05-14T21:45:17.000Z
src/tests/interactive/cleanup.py
Trundle/js_of_fstar
1c8a2a1b951cc119dd49d3f5d9817571e17aab51
[ "Apache-2.0" ]
null
null
null
src/tests/interactive/cleanup.py
Trundle/js_of_fstar
1c8a2a1b951cc119dd49d3f5d9817571e17aab51
[ "Apache-2.0" ]
null
null
null
"""Cleanup interactive transcript received on standard input. This mostly consists in pretty-pretting JSON messages and sorting their fields, to permit text-based comparisons against reference transcripts. Usage: python2 cleanup.py [fname.clean] < [fname.dirty] """ import io import json import sys def cleanup_one(l...
30.225806
86
0.685165
c221e25030cd0c8a2b7898da8b8d18a047e80730
64,146
py
Python
Tests/test_strformat.py
aisk/ironpython3
d492fd811a0cee4d0a07cd46f02a29a3c90d964b
[ "Apache-2.0" ]
1,872
2015-01-02T18:56:47.000Z
2022-03-31T07:34:39.000Z
Tests/test_strformat.py
aisk/ironpython3
d492fd811a0cee4d0a07cd46f02a29a3c90d964b
[ "Apache-2.0" ]
675
2015-02-27T09:01:01.000Z
2022-03-31T14:03:25.000Z
Tests/test_strformat.py
aisk/ironpython3
d492fd811a0cee4d0a07cd46f02a29a3c90d964b
[ "Apache-2.0" ]
278
2015-01-02T03:48:20.000Z
2022-03-29T20:40:44.000Z
# Licensed to the .NET Foundation under one or more agreements. # The .NET Foundation licenses this file to you under the Apache 2.0 License. # See the LICENSE file in the project root for more information. import _string import sys import unittest from iptest import IronPythonTestCase, is_cli, is_cpython, is_netcore...
51.357886
172
0.348829
93e2e57cc3a09ab6661595d81fc2aa32ef0e6a01
29,293
py
Python
util/design/secded_gen.py
asb/opentitan
af68ff5041b10c81e97adc075a4d042f8ac7ab20
[ "Apache-2.0" ]
1,375
2019-11-05T15:11:00.000Z
2022-03-28T17:50:43.000Z
util/design/secded_gen.py
asb/opentitan
af68ff5041b10c81e97adc075a4d042f8ac7ab20
[ "Apache-2.0" ]
7,045
2019-11-05T16:05:45.000Z
2022-03-31T23:08:08.000Z
util/design/secded_gen.py
asb/opentitan
af68ff5041b10c81e97adc075a4d042f8ac7ab20
[ "Apache-2.0" ]
428
2019-11-05T15:00:20.000Z
2022-03-28T15:34:57.000Z
#!/usr/bin/env python3 # Copyright lowRISC contributors. # Licensed under the Apache License, Version 2.0, see LICENSE for details. # SPDX-License-Identifier: Apache-2.0 r"""SECDED encoder/decoder generator Current version doesn't optimize Fan-In. It uses Hsiao code (modified version of Hamming code + parity). Please ...
30.932418
92
0.594238
44e680def8a8c08539037ebb35fbd0376f4196b5
3,805
py
Python
first_project/first_app/views.py
andihaki/django
e6e2f2afbef4fb2442bf891490dc3013c25b4748
[ "BSD-3-Clause" ]
null
null
null
first_project/first_app/views.py
andihaki/django
e6e2f2afbef4fb2442bf891490dc3013c25b4748
[ "BSD-3-Clause" ]
null
null
null
first_project/first_app/views.py
andihaki/django
e6e2f2afbef4fb2442bf891490dc3013c25b4748
[ "BSD-3-Clause" ]
null
null
null
from django.shortcuts import render #login from django.contrib.auth import authenticate, login, logout from django.http import HttpResponseRedirect, HttpResponse from django.urls import reverse from django.contrib.auth.decorators import login_required # class base view from django.shortcuts import render from django.vi...
29.96063
73
0.689093
977ef2bb28678bb0a64482d6baf80992c5687159
3,452
py
Python
python/external/stacktracer.py
cschutijser/scion
054cef53b31a577ed224a090d6a4fd3883fd520b
[ "Apache-2.0" ]
1
2018-03-18T14:46:34.000Z
2018-03-18T14:46:34.000Z
python/external/stacktracer.py
cschutijser/scion
054cef53b31a577ed224a090d6a4fd3883fd520b
[ "Apache-2.0" ]
1
2020-03-20T01:28:56.000Z
2020-03-20T01:28:56.000Z
python/external/stacktracer.py
cschutijser/scion
054cef53b31a577ed224a090d6a4fd3883fd520b
[ "Apache-2.0" ]
2
2020-03-14T16:03:27.000Z
2020-03-18T08:13:19.000Z
"""Stack tracer for multi-threaded applications. Usage: import stacktracer stacktracer.start_trace("trace.html",interval=5,auto=True) # Set auto flag to always update file! .... stacktracer.stop_trace() """ # Source: http://code.activestate.com/recipes/577334-how-to-debug-deadlocked-multi-threaded-programs/ from d...
29.758621
101
0.626014
3be037a0b945f4a8b26f718aefbe0bb5eb3f27ef
1,532
py
Python
aulabase10.py
jeffhawk/pythontraining
1ba2efbdf0473114036bbd30ec64b54c7d706265
[ "MIT" ]
null
null
null
aulabase10.py
jeffhawk/pythontraining
1ba2efbdf0473114036bbd30ec64b54c7d706265
[ "MIT" ]
null
null
null
aulabase10.py
jeffhawk/pythontraining
1ba2efbdf0473114036bbd30ec64b54c7d706265
[ "MIT" ]
null
null
null
#Declaração de variáveis globais Arq = "biblios.txt" Py = 'PySimpleGUI' Oracx = 'cx_Oracle' biblio = False biblios = ['PySimpleGUI','cx_Oracle','os','ctypes','sys','string','pip','subprocess','system'] #python -m pip install cx_Oracle atua = '' i=0 #Importando as bibliotecas # #Verifica se existe as bibliotecas, caso c...
26.413793
94
0.625326
cfa3c5380c65c3879fb34faf48d1ea7904d85e49
2,921
py
Python
opendeep/utils/tests/test_batch.py
vitruvianscience/OpenDeep
e96efc449101094354b615cf15afe6d03644fc36
[ "Apache-2.0" ]
252
2015-03-13T21:55:22.000Z
2021-09-06T21:37:38.000Z
opendeep/utils/tests/test_batch.py
afcarl/OpenDeep
e96efc449101094354b615cf15afe6d03644fc36
[ "Apache-2.0" ]
16
2015-03-14T06:47:04.000Z
2016-09-23T19:13:35.000Z
opendeep/utils/tests/test_batch.py
afcarl/OpenDeep
e96efc449101094354b615cf15afe6d03644fc36
[ "Apache-2.0" ]
68
2015-03-14T00:05:53.000Z
2020-06-04T13:36:13.000Z
from __future__ import division import unittest from opendeep.utils.batch import * from opendeep.utils.misc import numpy_one_hot import numpy class TestBatch(unittest.TestCase): def setUp(self): # numpy array to test self.np = numpy.eye(10) # generator over word vectors to test word...
33.965116
104
0.539541
bb33fa600fac361d036585f650ffa7a922c3ed76
3,941
py
Python
commode_utils/metrics/sequential_f1.py
SpirinEgor/commode-utils
11b9a26b70544c26de5a4f4aa588723d906db707
[ "Apache-2.0" ]
null
null
null
commode_utils/metrics/sequential_f1.py
SpirinEgor/commode-utils
11b9a26b70544c26de5a4f4aa588723d906db707
[ "Apache-2.0" ]
null
null
null
commode_utils/metrics/sequential_f1.py
SpirinEgor/commode-utils
11b9a26b70544c26de5a4f4aa588723d906db707
[ "Apache-2.0" ]
1
2021-09-24T22:59:27.000Z
2021-09-24T22:59:27.000Z
from typing import Optional, List import torch from torchmetrics import Metric from commode_utils.metrics import ClassificationMetrics class SequentialF1Score(Metric): def __init__(self, pad_idx: int, eos_idx: int, ignore_idx: Optional[List[int]] = None, **kwargs): """Metric for computing f1 score on se...
46.916667
119
0.663537
80779a40c07ff7128683c0870c70ddac11cac1e4
13,149
py
Python
cto/jump.py
losenineai/CTO
6c328b2be7b10ed2b219c8f3e9f99842c9e3d1d0
[ "MIT" ]
138
2021-10-07T21:35:13.000Z
2022-03-26T07:31:20.000Z
cto/jump.py
losenineai/CTO
6c328b2be7b10ed2b219c8f3e9f99842c9e3d1d0
[ "MIT" ]
2
2021-10-10T07:27:28.000Z
2021-10-20T02:34:41.000Z
cto/jump.py
losenineai/CTO
6c328b2be7b10ed2b219c8f3e9f99842c9e3d1d0
[ "MIT" ]
12
2021-10-08T19:38:02.000Z
2022-03-16T08:16:35.000Z
import ida_kernwin import ida_lines import ida_funcs import ida_moves import ida_name import ida_ua import ida_idaapi import ida_xref import idc #import cto_utils #ida_idaapi.require("cto_utils") def jump_to_func_ptr_line_pos(text, func_name, w, tweak=0, add_x=False): flag = False idx = text.fi...
32.708955
136
0.560423
26b85edb07f2e25639420a10fb1cd8534119810a
3,916
py
Python
xDeepFM/modules.py
jingxiufenghua/rec-model
23204f70fc1bf384d3cdd0cc85e43117d3394074
[ "MIT" ]
1,323
2020-08-24T02:34:25.000Z
2022-03-31T06:03:28.000Z
xDeepFM/modules.py
yiLinMaster/Recommender-System-with-TF2.0
cfc7b3fbd4ba2d9157a78938e6bdaeba7df82822
[ "MIT" ]
65
2020-08-25T06:07:41.000Z
2022-03-18T20:10:53.000Z
xDeepFM/modules.py
yiLinMaster/Recommender-System-with-TF2.0
cfc7b3fbd4ba2d9157a78938e6bdaeba7df82822
[ "MIT" ]
395
2020-08-24T00:57:08.000Z
2022-03-31T12:41:13.000Z
""" Created on May 19, 2021 modules of xDeepFM: Linear, DNN, CIN @author: Ziyao Geng(zggzy1996@163.com) """ import tensorflow as tf from tensorflow.keras.regularizers import l2 from tensorflow.keras.layers import Dropout, Dense, Layer class DNN(Layer): def __init__(self, hidden_units, dnn_dropout=0., dnn_activ...
36.943396
117
0.592952
44ff5bc6eec5c08e2b851a22c0cbece0ad51f035
3,359
py
Python
examples/ldc2.py
BIMAU/fvm
fef6e8c577848b105e04273e1357a5e279d26aba
[ "Apache-2.0" ]
1
2021-11-19T17:16:38.000Z
2021-11-19T17:16:38.000Z
examples/ldc2.py
BIMAU/fvm
fef6e8c577848b105e04273e1357a5e279d26aba
[ "Apache-2.0" ]
4
2021-05-20T16:33:19.000Z
2021-06-03T13:52:47.000Z
examples/ldc2.py
BIMAU/fvm
fef6e8c577848b105e04273e1357a5e279d26aba
[ "Apache-2.0" ]
5
2021-05-02T13:24:11.000Z
2021-09-29T12:10:27.000Z
import numpy import matplotlib.pyplot as plt from fvm import Continuation from fvm import Interface from fvm import plot_utils from fvm import utils class Data: def __init__(self): self.mu = [] self.value = [] def append(self, mu, value): self.mu.append(mu) self.value.append...
31.392523
113
0.628461
d4825674739daee4ae751896282e2301a98e6113
2,020
py
Python
setup.py
yoloseem/sqlalchemy-imageattach
385ea31463530fbbb5dafc51313a4982c84dd581
[ "MIT" ]
null
null
null
setup.py
yoloseem/sqlalchemy-imageattach
385ea31463530fbbb5dafc51313a4982c84dd581
[ "MIT" ]
null
null
null
setup.py
yoloseem/sqlalchemy-imageattach
385ea31463530fbbb5dafc51313a4982c84dd581
[ "MIT" ]
null
null
null
import os.path try: from setuptools import setup, find_packages except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages from setuptools.command.test import test from sqlalchemy_imageattach.version import VERSION def readme(): try: ...
28.857143
78
0.639604
6f629ede0ad3a6ad9bf614ae4b3bb078e06d8285
16,017
py
Python
serialmonitor.py
francescozoccheddu/SerialMonitor
66dd983d35be28774c8f4721c46fdca7ed737edb
[ "MIT" ]
null
null
null
serialmonitor.py
francescozoccheddu/SerialMonitor
66dd983d35be28774c8f4721c46fdca7ed737edb
[ "MIT" ]
null
null
null
serialmonitor.py
francescozoccheddu/SerialMonitor
66dd983d35be28774c8f4721c46fdca7ed737edb
[ "MIT" ]
null
null
null
#!/usr/bin/env python ''' Copyright (c) 2017 Francesco Zoccheddu 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, ...
37.335664
220
0.54336
3cba129486a570219fe36a5e8bcd62f6bd5de872
1,606
py
Python
2_faceCrop.py
k-m-irfan/MER_dataset_cleaning
02e6168f0f08f81ead93b0628f30ad0449862cca
[ "MIT" ]
1
2022-03-26T18:18:56.000Z
2022-03-26T18:18:56.000Z
2_faceCrop.py
k-m-irfan/MER_dataset_cleaning
02e6168f0f08f81ead93b0628f30ad0449862cca
[ "MIT" ]
null
null
null
2_faceCrop.py
k-m-irfan/MER_dataset_cleaning
02e6168f0f08f81ead93b0628f30ad0449862cca
[ "MIT" ]
null
null
null
# face detection # to remove multiple face images, non face images and corrupt/non convertible images import os import cv2 import mediapipe as mp sourceDir = 'D:\MER\Dataset\Expressions\duplicate_deleted\Surprise' # Source folder targetDir = 'D:\MER\Dataset\Expressions\Face_crop\Surprise' # Target Folder im...
34.913043
139
0.648194
4fd53fede7bb7dae8ea0ba6a674bdae8895eb1c8
46
py
Python
face_align_example/src/face/__init__.py
O0laf/packaging
c3f5c0ba62909eb0b72251710c3d853c2b1bf8f3
[ "MIT" ]
null
null
null
face_align_example/src/face/__init__.py
O0laf/packaging
c3f5c0ba62909eb0b72251710c3d853c2b1bf8f3
[ "MIT" ]
null
null
null
face_align_example/src/face/__init__.py
O0laf/packaging
c3f5c0ba62909eb0b72251710c3d853c2b1bf8f3
[ "MIT" ]
null
null
null
from .face import * from .align_trans import *
23
26
0.76087
c31595893601f839fd732c00d1e6e1b212e3613f
862
py
Python
th/spacy2/tokenizer_exceptions.py
t-pimpisa/spaCy
a26173d13a3d341822188fec8c410a6d9668f31d
[ "MIT" ]
10
2017-10-19T17:34:10.000Z
2021-04-16T03:06:56.000Z
th/spacy2/tokenizer_exceptions.py
t-pimpisa/spaCy
a26173d13a3d341822188fec8c410a6d9668f31d
[ "MIT" ]
1
2017-09-19T05:44:50.000Z
2017-09-27T09:16:15.000Z
th/spacy2/tokenizer_exceptions.py
t-pimpisa/spaCy
a26173d13a3d341822188fec8c410a6d9668f31d
[ "MIT" ]
5
2018-03-01T11:46:19.000Z
2021-01-03T16:23:26.000Z
# encoding: utf8 from __future__ import unicode_literals from ...symbols import * TOKENIZER_EXCEPTIONS = { "ม.ค.": [ {ORTH: "ม.ค.", LEMMA: "มกราคม"} ], "ก.พ.": [ {ORTH: "ก.พ.", LEMMA: "กุมภาพันธ์"} ], "มี.ค.": [ {ORTH: "มี.ค.", LEMMA: "มีนาคม"} ], "เม.ย.": [ ...
19.590909
43
0.36891
a3f85263dd4cb1997337bb1e2d2305b83d572f86
840
py
Python
keras_declarative/hyperparams/__init__.py
mrphys/keras-declarative
551b3cd01af38cf293027e92829c61b773e33d0f
[ "Apache-2.0" ]
null
null
null
keras_declarative/hyperparams/__init__.py
mrphys/keras-declarative
551b3cd01af38cf293027e92829c61b773e33d0f
[ "Apache-2.0" ]
null
null
null
keras_declarative/hyperparams/__init__.py
mrphys/keras-declarative
551b3cd01af38cf293027e92829c61b773e33d0f
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 The TensorFlow Authors. 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 applica...
42
74
0.783333
5a8323f288b66df8fcf0f247c1769210e12cc017
16,709
py
Python
dask_ml/wrappers.py
souravsingh/dask-ml
37eca7d335509c2a4aa9332aa454f57092318487
[ "BSD-3-Clause" ]
null
null
null
dask_ml/wrappers.py
souravsingh/dask-ml
37eca7d335509c2a4aa9332aa454f57092318487
[ "BSD-3-Clause" ]
null
null
null
dask_ml/wrappers.py
souravsingh/dask-ml
37eca7d335509c2a4aa9332aa454f57092318487
[ "BSD-3-Clause" ]
null
null
null
"""Meta-estimators for parallelizing estimators using the scikit-learn API.""" import logging import dask.array as da import dask.dataframe as dd import dask.delayed import numpy as np import sklearn.base import sklearn.metrics from sklearn.utils.validation import check_is_fitted from dask_ml.utils import _timer fro...
33.755556
129
0.628284
4ae726f74d4ff82903218cdfdd2a12cd8562a50b
1,359
py
Python
pymc3/distributions/dist_math.py
MichielCottaar/pymc3
f37198653e7d09881e7bc411cbd10fffbab442c2
[ "Apache-2.0" ]
1
2020-09-29T12:32:32.000Z
2020-09-29T12:32:32.000Z
pymc3/distributions/dist_math.py
MichielCottaar/pymc3
f37198653e7d09881e7bc411cbd10fffbab442c2
[ "Apache-2.0" ]
null
null
null
pymc3/distributions/dist_math.py
MichielCottaar/pymc3
f37198653e7d09881e7bc411cbd10fffbab442c2
[ "Apache-2.0" ]
null
null
null
''' Created on Mar 7, 2011 @author: johnsalvatier ''' from __future__ import division import theano.tensor as t from theano.tensor import ( sum, switch, log, exp, sqrt, eq, neq, lt, gt, le, ge, all, any, cast, round, arange, max, min, maximum, minimum, floor, ceil, zeros_like, ones, ones_like, ...
18.616438
68
0.628403
59f8d7fbe4cbb6c4383138680a51e1fbc5666343
1,992
py
Python
API/v1/__init__.py
MisakaMikoto0502/XenXenXenSe
58a4d288dd2ef3f09ee0062b542b50f0b11d1c43
[ "MIT" ]
null
null
null
API/v1/__init__.py
MisakaMikoto0502/XenXenXenSe
58a4d288dd2ef3f09ee0062b542b50f0b11d1c43
[ "MIT" ]
null
null
null
API/v1/__init__.py
MisakaMikoto0502/XenXenXenSe
58a4d288dd2ef3f09ee0062b542b50f0b11d1c43
[ "MIT" ]
null
null
null
from xmlrpc.client import Fault from fastapi import APIRouter, Depends, HTTPException from XenAPI.XenAPI import Failure from XenGarden.session import create_session from API.v1.Common import xenapi_failure_jsonify from API.v1.Console import console_router from API.v1.GuestMetrics import guest_router from API.v1.Host ...
30.646154
73
0.771084