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
97a1cc7ced61edd92db7fa9ed5cf9456fae2e68b
1,342
py
Python
wiki/web/__init__.py
konzy/CSC440-Wiki-Project
53b60d17828912924c413c3c9ff6b8e8887a75a6
[ "BSD-3-Clause" ]
null
null
null
wiki/web/__init__.py
konzy/CSC440-Wiki-Project
53b60d17828912924c413c3c9ff6b8e8887a75a6
[ "BSD-3-Clause" ]
null
null
null
wiki/web/__init__.py
konzy/CSC440-Wiki-Project
53b60d17828912924c413c3c9ff6b8e8887a75a6
[ "BSD-3-Clause" ]
null
null
null
import os from flask import current_app from flask import Flask from flask import g from flask_login import LoginManager from werkzeug.local import LocalProxy from wiki.core import Wiki from user import UserManager class WikiError(Exception): pass def get_wiki(): wiki = getattr(g, '_wiki', None) if wiki...
22.745763
72
0.697466
6b99888a461cab086bd4284de0d4c3a340755fc0
32,310
py
Python
opentelemetry-sdk/src/opentelemetry/sdk/trace/__init__.py
crflynn/opentelemetry-python
e3c3b9430e438d26d5cafb69154bb746d75a5294
[ "Apache-2.0" ]
null
null
null
opentelemetry-sdk/src/opentelemetry/sdk/trace/__init__.py
crflynn/opentelemetry-python
e3c3b9430e438d26d5cafb69154bb746d75a5294
[ "Apache-2.0" ]
null
null
null
opentelemetry-sdk/src/opentelemetry/sdk/trace/__init__.py
crflynn/opentelemetry-python
e3c3b9430e438d26d5cafb69154bb746d75a5294
[ "Apache-2.0" ]
null
null
null
# Copyright The OpenTelemetry 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 in ...
34.046365
83
0.615011
2f7aa0be2e55bebb4eda811641b3a4b16c6b9591
2,901
py
Python
lib/tfflat/saver.py
ducky777/PoseFix_RELEASE
0b50ef9b49b2581aa1bb820bca0509de5a74eb42
[ "MIT" ]
336
2019-03-10T13:37:48.000Z
2022-03-23T06:45:32.000Z
lib/tfflat/saver.py
ducky777/PoseFix_RELEASE
0b50ef9b49b2581aa1bb820bca0509de5a74eb42
[ "MIT" ]
51
2019-03-12T03:39:59.000Z
2021-05-27T22:40:10.000Z
lib/tfflat/saver.py
ducky777/PoseFix_RELEASE
0b50ef9b49b2581aa1bb820bca0509de5a74eb42
[ "MIT" ]
69
2019-03-14T07:49:44.000Z
2022-02-11T09:52:16.000Z
import tensorflow as tf from tensorflow.python import pywrap_tensorflow import numpy as np from config import cfg import os import os.path as osp def get_variables_in_checkpoint_file(file_name): try: reader = pywrap_tensorflow.NewCheckpointReader(file_name) var_to_shape_map = reader.get_variable_t...
36.721519
81
0.631851
3f0c9abcc44c5d31653ef1d7ddee2b58d3bccb8e
13,834
py
Python
habitat/utils/visualizations/utils.py
albert-yue/objectnav
95ce9bc2c1d953887275e8d9809a506aeb5682fb
[ "MIT", "Unlicense" ]
15
2021-04-12T04:36:14.000Z
2022-03-20T04:16:36.000Z
habitat/utils/visualizations/utils.py
albert-yue/objectnav
95ce9bc2c1d953887275e8d9809a506aeb5682fb
[ "MIT", "Unlicense" ]
4
2021-07-12T18:14:08.000Z
2021-11-11T13:44:34.000Z
habitat/utils/visualizations/utils.py
albert-yue/objectnav
95ce9bc2c1d953887275e8d9809a506aeb5682fb
[ "MIT", "Unlicense" ]
10
2021-06-23T23:14:16.000Z
2022-03-20T07:47:32.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import os import textwrap from typing import Dict, List, Optional, Tuple import imageio import numpy as np import tqdm ...
36.890667
114
0.586887
62fc3c7e638dc5c340baf928ab1b07ce9810a31c
6,470
py
Python
stac_api/api/app.py
lossyrob/arturo-stac-api
3cd885639caaefd521d354a7f70ce86eea4e36e5
[ "MIT" ]
1
2021-03-25T11:39:59.000Z
2021-03-25T11:39:59.000Z
stac_api/api/app.py
lossyrob/arturo-stac-api
3cd885639caaefd521d354a7f70ce86eea4e36e5
[ "MIT" ]
null
null
null
stac_api/api/app.py
lossyrob/arturo-stac-api
3cd885639caaefd521d354a7f70ce86eea4e36e5
[ "MIT" ]
null
null
null
"""fastapi app creation""" from typing import Dict, List, Optional, Type import attr from fastapi import APIRouter, FastAPI from fastapi.openapi.utils import get_openapi from stac_pydantic import ItemCollection from stac_pydantic.api import ConformanceClasses, LandingPage from stac_api.api.extensions import FieldsExt...
34.414894
88
0.632457
9e1ccfd730314d6716cdb444f51f0117bcacdc8e
132
py
Python
value_swapping.py
KenMwaura1/python-hacks
13b22d92178fb0e6cae0b1eeca3a9e4aea3e420b
[ "Apache-2.0" ]
2
2020-08-13T00:00:52.000Z
2020-08-13T01:05:27.000Z
value_swapping.py
KenMwaura1/python-hacks
13b22d92178fb0e6cae0b1eeca3a9e4aea3e420b
[ "Apache-2.0" ]
null
null
null
value_swapping.py
KenMwaura1/python-hacks
13b22d92178fb0e6cae0b1eeca3a9e4aea3e420b
[ "Apache-2.0" ]
1
2021-05-02T12:43:06.000Z
2021-05-02T12:43:06.000Z
""" swap values between two variables """ x, y = 7, 14 print(x, y) # returns 7, 14 x, y = y, x print(x, y) # returns 14, 7
18.857143
42
0.545455
92c5c99ba32afaf712ac5a018d8c77a7bcd46a02
16,016
py
Python
lambda/py/mutagen/easyid3.py
frivas/alexa-mixed-polly
bf0fde9005a66f3d6f0193799eacef934d166de7
[ "W3C" ]
2
2019-07-29T15:45:31.000Z
2019-11-17T23:33:58.000Z
venv/lib/python3.8/site-packages/mutagen/easyid3.py
oguzhan2142/Youtube-Spotify-Music-Downloader
3dfa51aa5e5549f3f82b87444bd27aa684a93061
[ "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/mutagen/easyid3.py
oguzhan2142/Youtube-Spotify-Music-Downloader
3dfa51aa5e5549f3f82b87444bd27aa684a93061
[ "MIT" ]
1
2019-01-06T15:18:58.000Z
2019-01-06T15:18:58.000Z
# -*- coding: utf-8 -*- # Copyright (C) 2006 Joe Wreschnig # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. """Easier...
28.498221
78
0.60527
e0549ebf3f2bc14ca6ac77078abdc0af9fa429a7
91
py
Python
discordBot/bot/utils/__init__.py
IPLSplatoon/Radia-Productions
e7d27f3dd686557cee95340be56cee81a0d02c2f
[ "MIT" ]
null
null
null
discordBot/bot/utils/__init__.py
IPLSplatoon/Radia-Productions
e7d27f3dd686557cee95340be56cee81a0d02c2f
[ "MIT" ]
1
2021-07-17T11:40:46.000Z
2021-07-17T13:58:24.000Z
discordBot/bot/utils/__init__.py
IPLSplatoon/Radia-Productions
e7d27f3dd686557cee95340be56cee81a0d02c2f
[ "MIT" ]
1
2021-05-19T21:26:17.000Z
2021-05-19T21:26:17.000Z
"""Import all of the utilities.""" from .embed import Embed from .help import HelpCommand
18.2
34
0.747253
e32f1d4aef41d23ec43de445ece8f4380d7d6021
6,850
py
Python
purity_fb/purity_fb_1dot7/models/object_store_access_key.py
tlewis-ps/purity_fb_python_client
652835cbd485c95a86da27f8b661679727ec6ea0
[ "Apache-2.0" ]
5
2017-09-08T20:47:22.000Z
2021-06-29T02:11:05.000Z
purity_fb/purity_fb_1dot7/models/object_store_access_key.py
tlewis-ps/purity_fb_python_client
652835cbd485c95a86da27f8b661679727ec6ea0
[ "Apache-2.0" ]
16
2017-11-27T20:57:48.000Z
2021-11-23T18:46:43.000Z
purity_fb/purity_fb_1dot7/models/object_store_access_key.py
tlewis-ps/purity_fb_python_client
652835cbd485c95a86da27f8b661679727ec6ea0
[ "Apache-2.0" ]
22
2017-10-13T15:33:05.000Z
2021-11-08T19:56:21.000Z
# coding: utf-8 """ Pure Storage FlashBlade REST 1.7 Python SDK Pure Storage FlashBlade REST 1.7 Python SDK, developed by [Pure Storage, Inc](http://www.purestorage.com/). Documentations can be found at [purity-fb.readthedocs.io](http://purity-fb.readthedocs.io/). OpenAPI spec version: 1.7 Contact: i...
29.148936
204
0.592847
fb2196ebefc4e6ef53babcd7fce1f9149b2681c5
758
py
Python
Classes and Objects/Class.py
vasetousa/Python-fundamentals
3180c03de28b4f4d36d966221719069a7e18e521
[ "MIT" ]
null
null
null
Classes and Objects/Class.py
vasetousa/Python-fundamentals
3180c03de28b4f4d36d966221719069a7e18e521
[ "MIT" ]
null
null
null
Classes and Objects/Class.py
vasetousa/Python-fundamentals
3180c03de28b4f4d36d966221719069a7e18e521
[ "MIT" ]
null
null
null
class Class: __students_count = 22 def __init__(self, name): self.name = name self.students = [] self.grades = [] def add_student(self, name, grade): if Class.__students_count > 0: self.students.append(name) self.grades.append(grade) Clas...
26.137931
116
0.616095
6f9d0de2276e0d6acda44ffc6558e2e85a10cb2e
1,131
py
Python
qiskit/scheduler/__init__.py
EnriqueL8/qiskit-terra
08b801f1f8598c4e44680b4a75c232ed92db0262
[ "Apache-2.0" ]
2
2019-06-28T19:58:42.000Z
2019-07-26T05:04:02.000Z
qiskit/scheduler/__init__.py
EnriqueL8/qiskit-terra
08b801f1f8598c4e44680b4a75c232ed92db0262
[ "Apache-2.0" ]
3
2018-11-13T17:33:37.000Z
2018-12-03T09:35:00.000Z
qiskit/scheduler/__init__.py
EnriqueL8/qiskit-terra
08b801f1f8598c4e44680b4a75c232ed92db0262
[ "Apache-2.0" ]
2
2017-12-03T15:48:14.000Z
2018-03-11T13:08:03.000Z
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2019. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modif...
26.302326
77
0.69496
e42b7c016f7fc6d1081d79de8cd08da92d9ba26e
1,280
py
Python
content/course/Sesion06/fig_code/helpers.py
MikelBa/python-ehu
794cc602da943605ab176408b52695babf6e672c
[ "MIT" ]
null
null
null
content/course/Sesion06/fig_code/helpers.py
MikelBa/python-ehu
794cc602da943605ab176408b52695babf6e672c
[ "MIT" ]
null
null
null
content/course/Sesion06/fig_code/helpers.py
MikelBa/python-ehu
794cc602da943605ab176408b52695babf6e672c
[ "MIT" ]
null
null
null
""" Small helpers for code that is not shown in the notebooks """ from sklearn import neighbors, datasets import pylab as pl import numpy as np from matplotlib.colors import ListedColormap # Create color maps for 3-class classification problem, as with iris cmap_light = ListedColormap(['#FFAAAA', '#AAFFAA', '#AAAAFF'...
31.219512
76
0.621094
a70345f68ee11952c30df16c50ded06e2dd696e7
18,418
py
Python
bentoml/marshal/marshal.py
tjcarroll11/BentoML
74ef207b91f9b2c2a0c379d7e802e26307fc892e
[ "Apache-2.0" ]
null
null
null
bentoml/marshal/marshal.py
tjcarroll11/BentoML
74ef207b91f9b2c2a0c379d7e802e26307fc892e
[ "Apache-2.0" ]
null
null
null
bentoml/marshal/marshal.py
tjcarroll11/BentoML
74ef207b91f9b2c2a0c379d7e802e26307fc892e
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Atalaya Tech, Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, ...
38.531381
88
0.6043
8bc58a629cd24a9e3fdea2e21820e92077ad381e
46,496
py
Python
GP/python/restapi/shapefile/shapefile.py
Bolton-and-Menk-GIS/Geoprocessing-Services-JSAPI-2018
afb8f9153edc04bd81335b177ff45d895bcfc711
[ "MIT" ]
2
2018-09-25T19:38:50.000Z
2019-01-06T14:08:12.000Z
GP/python/restapi/shapefile/shapefile.py
Bolton-and-Menk-GIS/Geoprocessing-Services-JSAPI-2018
afb8f9153edc04bd81335b177ff45d895bcfc711
[ "MIT" ]
null
null
null
GP/python/restapi/shapefile/shapefile.py
Bolton-and-Menk-GIS/Geoprocessing-Services-JSAPI-2018
afb8f9153edc04bd81335b177ff45d895bcfc711
[ "MIT" ]
null
null
null
""" shapefile.py Provides read and write support for ESRI Shapefiles. author: jlawhead<at>geospatialpython.com date: 2015/06/22 version: 1.2.3 Compatible with Python versions 2.4-3.x version changelog: Reader.iterShapeRecords() bugfix for Python 3 """ __version__ = "1.2.3" from struct import pack, unpack, calcsize, e...
38.682196
136
0.524325
61c5d98432c62a70dbae7741f55f714dc929792c
1,055
py
Python
evetrade/HomepageHandler.py
Dennovin/eve-trade
61dbca1f8d19a6b9cab2b2e14660c103406dc97a
[ "MIT" ]
null
null
null
evetrade/HomepageHandler.py
Dennovin/eve-trade
61dbca1f8d19a6b9cab2b2e14660c103406dc97a
[ "MIT" ]
null
null
null
evetrade/HomepageHandler.py
Dennovin/eve-trade
61dbca1f8d19a6b9cab2b2e14660c103406dc97a
[ "MIT" ]
null
null
null
from datetime import datetime, timedelta import logging from WebHandler import WebHandler from DailyStats import DateRange from GeneralStats import GeneralStats class HomepageHandler(WebHandler): def get(self): stats = { "days": [], "weeks": [], "months": [], ...
37.678571
148
0.636019
75e93d9225093c8c67fbaaf1368fbf5c97196936
604
py
Python
webobsclient/models.py
bpptkg/python-webobsclient
9572bb64dc9724a9c7d1e9146f13ba969885e369
[ "MIT" ]
1
2021-11-24T02:34:44.000Z
2021-11-24T02:34:44.000Z
webobsclient/models.py
bpptkg/webobsclient
9572bb64dc9724a9c7d1e9146f13ba969885e369
[ "MIT" ]
null
null
null
webobsclient/models.py
bpptkg/webobsclient
9572bb64dc9724a9c7d1e9146f13ba969885e369
[ "MIT" ]
null
null
null
import six class ApiModel(object): """ Base API model class. """ @classmethod def object_from_dictionary(cls, entry): if entry is None: return '' entry_dict = dict([ (str(key), value) for key, value in entry.items() ]) return cls(**entry_dic...
21.571429
77
0.559603
934e1f217e7fe413c2e8f1510444aef9bffb40eb
1,983
py
Python
regexChecks.py
simplisafe/git-all-secrets
4bfbbfd4b688c83574e24a36d61aec50587b655a
[ "MIT" ]
1
2022-02-03T15:12:58.000Z
2022-02-03T15:12:58.000Z
regexChecks.py
simplisafe/git-all-secrets
4bfbbfd4b688c83574e24a36d61aec50587b655a
[ "MIT" ]
null
null
null
regexChecks.py
simplisafe/git-all-secrets
4bfbbfd4b688c83574e24a36d61aec50587b655a
[ "MIT" ]
2
2020-12-09T20:38:32.000Z
2021-04-09T19:15:32.000Z
import re regexes = { # "Internal subdomain": re.compile('([a-z0-9]+[.]*supersecretinternal[.]com)'), "Generic AppSecret": re.compile('[a|A][p|P][p|P][s|S][e|E][c|C][r|R][e|E][t|T].*.[0-9a-zA-Z]{32,45}'), "Generic AppSecret 2": re.compile('[a|A][p|P][p|P][s|S][e|E][c|C][r|R][e|E][t|T].*[\'|"][0-9a-zA-Z]{32...
76.269231
143
0.495209
812f3de3ebec8aba082eb652fabc78accb92a306
53,927
py
Python
ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/igmpquerier_38c883b0cec7ffb5405af90bf1b8cda5.py
OpenIxia/ixnetwork_restpy
f628db450573a104f327cf3c737ca25586e067ae
[ "MIT" ]
20
2019-05-07T01:59:14.000Z
2022-02-11T05:24:47.000Z
ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/igmpquerier_38c883b0cec7ffb5405af90bf1b8cda5.py
OpenIxia/ixnetwork_restpy
f628db450573a104f327cf3c737ca25586e067ae
[ "MIT" ]
60
2019-04-03T18:59:35.000Z
2022-02-22T12:05:05.000Z
ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/igmpquerier_38c883b0cec7ffb5405af90bf1b8cda5.py
OpenIxia/ixnetwork_restpy
f628db450573a104f327cf3c737ca25586e067ae
[ "MIT" ]
13
2019-05-20T10:48:31.000Z
2021-10-06T07:45:44.000Z
# MIT LICENSE # # Copyright 1997 - 2020 by IXIA Keysight # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, modify,...
52.714565
406
0.647338
bcc0ded977cfc103cb1f6e6ffc3d5d8c98c8a2bf
279
py
Python
catalog/urls.py
Atanielo/ansecommerce
a4cb94787ca635ea87c8061bedb7fd0db5916cb6
[ "CC0-1.0" ]
null
null
null
catalog/urls.py
Atanielo/ansecommerce
a4cb94787ca635ea87c8061bedb7fd0db5916cb6
[ "CC0-1.0" ]
5
2021-03-19T09:38:08.000Z
2022-02-10T12:09:27.000Z
catalog/urls.py
Atanielo/ansecommerce
a4cb94787ca635ea87c8061bedb7fd0db5916cb6
[ "CC0-1.0" ]
null
null
null
from django.urls import path from . import views app_name = 'catalog' urlpatterns =[ path('', views.product_list, name='core_product_list'), path('<slug:slug>/', views.category, name='category'), path('produtos/<slug:slug>/', views.product, name='product'), ]
18.6
65
0.670251
bc20e6f97e2e84ed5aedd72c52ed546890ce3774
1,387
py
Python
ex4.py
BjornChrisnach/Learn_python_3_The_hard_way
ab187c4755d4878724761bbe5f28678fce27cfc7
[ "MIT" ]
null
null
null
ex4.py
BjornChrisnach/Learn_python_3_The_hard_way
ab187c4755d4878724761bbe5f28678fce27cfc7
[ "MIT" ]
null
null
null
ex4.py
BjornChrisnach/Learn_python_3_The_hard_way
ab187c4755d4878724761bbe5f28678fce27cfc7
[ "MIT" ]
null
null
null
# Assigns 100 into cars variable cars = 100 # Assigns 4.0 into space_in_a_car variable space_in_a_car = 4.0 # Assigns 30 into drivers variable drivers = 30 # Assigns 90 into passengers variable passengers = 90 # Assigns the substraction between the cars and drivers variable cars_not_driven = cars - drivers # Assigns dr...
42.030303
105
0.794521
4ef442fa4ebca7c3b40cf576db4863f5c6e3a437
167
py
Python
seata/tm/api/GlobalTransactionRole.py
opentrx/seata-python
66fb3382217a43effa3d1bc5ec2b62204d499dba
[ "Apache-2.0" ]
8
2021-09-09T06:28:08.000Z
2022-03-06T04:58:40.000Z
seata/tm/api/GlobalTransactionRole.py
opentrx/seata-python
66fb3382217a43effa3d1bc5ec2b62204d499dba
[ "Apache-2.0" ]
null
null
null
seata/tm/api/GlobalTransactionRole.py
opentrx/seata-python
66fb3382217a43effa3d1bc5ec2b62204d499dba
[ "Apache-2.0" ]
4
2021-08-23T07:44:27.000Z
2022-02-11T08:42:54.000Z
#!/usr/bin/env python3 # -*- coding:utf-8 -*- # @author jsbxyyx # @since 1.0 import enum class GlobalTransactionRole(enum.Enum): Launcher = 0 Participant = 1
16.7
39
0.664671
95be8cced20fc7cc40282537331ac6ba733410fa
6,926
py
Python
setup-traffic-analyzers/session.testapi.py
vlvassilev/ecoc-demo-2018
3f813fdff3c2405561b32122bbe3c51c001ff81b
[ "BSD-3-Clause" ]
1
2019-03-06T13:52:14.000Z
2019-03-06T13:52:14.000Z
setup-traffic-analyzers/session.testapi.py
vlvassilev/ecoc-demo-2018
3f813fdff3c2405561b32122bbe3c51c001ff81b
[ "BSD-3-Clause" ]
null
null
null
setup-traffic-analyzers/session.testapi.py
vlvassilev/ecoc-demo-2018
3f813fdff3c2405561b32122bbe3c51c001ff81b
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python import lxml from lxml import etree import time import sys, os import argparse from collections import namedtuple import tntapi sys.path.append("../common") import testsuiteapi import yangrpc from yangcli import yangcli namespaces={"nc":"urn:ietf:params:xml:ns:netconf:base:1.0", "nd":"urn:ietf:params...
45.86755
208
0.773318
6d9b6bec15623af951f711d0344014f87ad0f8ac
1,590
py
Python
tests/conftest.py
infinet/UDR
49ca8b5ab63b46c835c6d90ffc5ab4f1bf26ea0c
[ "Apache-2.0" ]
23
2018-07-18T14:14:39.000Z
2022-03-26T02:47:46.000Z
tests/conftest.py
jwagnerhki/UDR
351afc727d9e8d6d136f8c65bd69a39a7aa2a4f4
[ "Apache-2.0" ]
null
null
null
tests/conftest.py
jwagnerhki/UDR
351afc727d9e8d6d136f8c65bd69a39a7aa2a4f4
[ "Apache-2.0" ]
7
2018-06-23T19:46:57.000Z
2021-08-24T16:47:23.000Z
# -*- coding: utf-8 -*- """ conftest.py ---------------------------------- Setup for UDR pytest test suite """ from subprocess import Popen, PIPE from os.path import dirname, realpath, join from os import environ import pytest def raise_for_error(proc): """Raises a RuntimeError if :param:`proc` did not exit su...
22.394366
74
0.640881
f5f9b25070432c17f82e459741bad248dfe3f7cc
1,670
py
Python
model.py
csams/musical-desks
4db5883a820b12b57332d0a55c16049567821e2f
[ "Apache-2.0" ]
1
2018-08-18T03:04:40.000Z
2018-08-18T03:04:40.000Z
model.py
csams/musical-desks
4db5883a820b12b57332d0a55c16049567821e2f
[ "Apache-2.0" ]
null
null
null
model.py
csams/musical-desks
4db5883a820b12b57332d0a55c16049567821e2f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from collections import namedtuple Point = namedtuple('Point', ['x', 'y']) class Desk(object): def __init__(self, pos): self.pos = pos self.t_pos = Point(pos.y, pos.x) dom = [-1, 0, 1] self.around = set() for x in dom: for y in dom: ...
26.09375
83
0.524551
f2da7d515fc1bae92dfc6e700aaece4ecd6f8d67
1,223
py
Python
datafeeds/parsers/first_elasticsearch/first_elasticsearch_team_details_parser.py
samuelcouch/the-blue-alliance
8c7977071dbe9d9745ffdfbb03e37bd016792511
[ "MIT" ]
null
null
null
datafeeds/parsers/first_elasticsearch/first_elasticsearch_team_details_parser.py
samuelcouch/the-blue-alliance
8c7977071dbe9d9745ffdfbb03e37bd016792511
[ "MIT" ]
null
null
null
datafeeds/parsers/first_elasticsearch/first_elasticsearch_team_details_parser.py
samuelcouch/the-blue-alliance
8c7977071dbe9d9745ffdfbb03e37bd016792511
[ "MIT" ]
null
null
null
import urlparse from google.appengine.ext import ndb from models.team import Team class FIRSTElasticSearchTeamDetailsParser(object): def __init__(self, year): self.year = int(year) def parse(self, response): teams = [] for team in response['hits']['hits']: first_tpid = i...
34.942857
172
0.587081
0ca770b04453938af236c7d456a81960a9853942
9,307
py
Python
sakt/train_sakt_new.py
scaomath/kaggle-riiid-test
6c99deccc33def7e5d0c982b0a9a19612138e893
[ "MIT" ]
null
null
null
sakt/train_sakt_new.py
scaomath/kaggle-riiid-test
6c99deccc33def7e5d0c982b0a9a19612138e893
[ "MIT" ]
null
null
null
sakt/train_sakt_new.py
scaomath/kaggle-riiid-test
6c99deccc33def7e5d0c982b0a9a19612138e893
[ "MIT" ]
null
null
null
#%% import os import gc import sys import pickle from time import time import datatable as dt import matplotlib.pyplot as plt import numpy as np import pandas as pd import seaborn as sns import torch import torch.nn as nn from torch import optim from sklearn.metrics import roc_auc_score from sklearn.model_selection i...
39.944206
178
0.69249
99fcc2c5b707ce004f1b499279d7b5ca1fcb83e4
2,386
py
Python
configs/configs_mnist_auto/mnist_auto_bp.py
meulemansalex/deep_feedback_control
0a592c595334ce81d0c753f65f1cde7c02c8222b
[ "Apache-2.0" ]
4
2021-06-15T06:28:29.000Z
2021-11-27T17:59:05.000Z
configs/configs_mnist_auto/mnist_auto_bp.py
meulemansalex/deep_feedback_control
0a592c595334ce81d0c753f65f1cde7c02c8222b
[ "Apache-2.0" ]
null
null
null
configs/configs_mnist_auto/mnist_auto_bp.py
meulemansalex/deep_feedback_control
0a592c595334ce81d0c753f65f1cde7c02c8222b
[ "Apache-2.0" ]
null
null
null
config = { 'lr': 1.3674117423775684e-06, 'epsilon': 9.190510113850847e-07, 'dataset': 'mnist_autoencoder', 'num_train': 1000, 'num_test': 1000, 'num_val': 1000, 'no_preprocessing_mnist': False, 'no_val_set': False, 'epochs': 25, 'batch_size': 128, 'lr_fb': 0.1, 'lr_fb_init': 0.1, 'target_stepsize': 0.001, 'optimizer': ...
23.623762
48
0.723806
5d5571fda44d5b2a69d551f267e907d12265b62c
3,003
py
Python
sc_utilities/log_utils.py
Scott-Lau/sc-utilities
78ee98dc95e9d6f7c93e6faeb127d143d9cfadb5
[ "MIT" ]
2
2021-02-08T12:06:50.000Z
2021-10-09T03:27:42.000Z
sc_utilities/log_utils.py
Scott-Lau/sc-utilities
78ee98dc95e9d6f7c93e6faeb127d143d9cfadb5
[ "MIT" ]
null
null
null
sc_utilities/log_utils.py
Scott-Lau/sc-utilities
78ee98dc95e9d6f7c93e6faeb127d143d9cfadb5
[ "MIT" ]
1
2021-10-09T03:27:09.000Z
2021-10-09T03:27:09.000Z
# The MIT License (MIT) # # Copyright (c) 2021. Scott Lau # # 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.5375
96
0.721279
89a6f88511cc3083eba7af0647cbf66bf130514e
12,637
py
Python
asteroid/losses/pit_wrapper.py
tux-coder/asteroid
d9c76ec728dc95ef695daf5743f21750c3218e0a
[ "MIT" ]
1
2020-08-14T14:27:49.000Z
2020-08-14T14:27:49.000Z
asteroid/losses/pit_wrapper.py
tux-coder/asteroid
d9c76ec728dc95ef695daf5743f21750c3218e0a
[ "MIT" ]
null
null
null
asteroid/losses/pit_wrapper.py
tux-coder/asteroid
d9c76ec728dc95ef695daf5743f21750c3218e0a
[ "MIT" ]
null
null
null
from itertools import permutations import torch from torch import nn class PITLossWrapper(nn.Module): """ Permutation invariant loss wrapper. Args: loss_func: function with signature (targets, est_targets, **kwargs). pit_from (str): Determines how PIT is applied. * ``'pw_mtx'`` (...
46.630996
85
0.596186
239e79235069162808ee1c14cf8fa947fa8c1928
1,917
py
Python
fltk/nets/custom.py
ahreurink/fltk-testbed
f36581cb4a36e7d6c4d9c87618be67a77aeef13b
[ "BSD-2-Clause" ]
null
null
null
fltk/nets/custom.py
ahreurink/fltk-testbed
f36581cb4a36e7d6c4d9c87618be67a77aeef13b
[ "BSD-2-Clause" ]
null
null
null
fltk/nets/custom.py
ahreurink/fltk-testbed
f36581cb4a36e7d6c4d9c87618be67a77aeef13b
[ "BSD-2-Clause" ]
null
null
null
import torch import torch.nn as nn class CustomModelMNIST(nn.Module): def __init__(self, convolutionalFilters, convolutionalLayers, linearLayers, linearLayerParameters, imageSize): super(CustomModelMNIST, self).__init__() self.convolutionalFilters = convolutionalFilters self.convolutionalL...
39.9375
126
0.625456
eb92c23afac869959016c7876f0185677f37eedf
32,567
py
Python
scripts/topModuleGen/src/TopModuleGen.py
shanshuixiangyi/openlane
aaecdf12b61308b374f1963587882c691574bba2
[ "Apache-2.0" ]
null
null
null
scripts/topModuleGen/src/TopModuleGen.py
shanshuixiangyi/openlane
aaecdf12b61308b374f1963587882c691574bba2
[ "Apache-2.0" ]
null
null
null
scripts/topModuleGen/src/TopModuleGen.py
shanshuixiangyi/openlane
aaecdf12b61308b374f1963587882c691574bba2
[ "Apache-2.0" ]
1
2021-12-22T15:24:13.000Z
2021-12-22T15:24:13.000Z
# Copyright 2020 Efabless 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...
39.715854
209
0.552308
f91ecacf12062b23f3a25189d8ab9924767259a3
1,441
py
Python
backend/app/app/api/api_v1/robots/search.py
H-HChen/rmt_web_devkit
ef38447320f98fbd44a330303c644d2915bf035a
[ "Apache-2.0" ]
null
null
null
backend/app/app/api/api_v1/robots/search.py
H-HChen/rmt_web_devkit
ef38447320f98fbd44a330303c644d2915bf035a
[ "Apache-2.0" ]
13
2021-05-20T02:29:19.000Z
2021-08-23T10:14:57.000Z
backend/app/app/api/api_v1/robots/search.py
H-HChen/rmt_web_devkit
ef38447320f98fbd44a330303c644d2915bf035a
[ "Apache-2.0" ]
3
2021-05-10T07:55:40.000Z
2022-02-28T16:52:01.000Z
from typing import Any, Optional from fastapi import APIRouter, Depends from sqlalchemy.orm import Session from app import models, schemas from app.api import deps from app.extensions.utils import list_to_tree import rmt_py_wrapper import json router = APIRouter() def rmt_discovery(): num_ptr = rmt_py_wrapper.ne...
29.408163
113
0.659958
e4f9f924827e78a4de26f9a13425a17d3d039160
3,963
py
Python
dailyfresh/apps/goods/models.py
wangaqiang/dailyfresh
767a668c5a3573f1dc60b4875b8e34e8d867b446
[ "MIT" ]
4
2019-08-24T17:15:58.000Z
2019-09-05T08:39:31.000Z
dailyfresh/apps/goods/models.py
wangaqiang/dailyfresh
767a668c5a3573f1dc60b4875b8e34e8d867b446
[ "MIT" ]
null
null
null
dailyfresh/apps/goods/models.py
wangaqiang/dailyfresh
767a668c5a3573f1dc60b4875b8e34e8d867b446
[ "MIT" ]
null
null
null
# -*-coding:utf-8-*- from django.db import models from db.base_model import BaseModel from tinymce.models import HTMLField class GoodsType(BaseModel): """商品类型模型类""" name = models.CharField(max_length=20, verbose_name='种类名称') logo = models.CharField(max_length=20, verbose_name='标识') image = models.Imag...
31.204724
105
0.680545
629646bc1db602e297262211ed885ed4295fda7b
2,626
py
Python
label_smoothing.py
aliayub7/EEC
ffb65e6701f5316b69c1ef3c3c130f00b73a18da
[ "MIT" ]
6
2021-05-25T03:21:07.000Z
2021-11-18T13:38:10.000Z
label_smoothing.py
aliayub7/EEC
ffb65e6701f5316b69c1ef3c3c130f00b73a18da
[ "MIT" ]
null
null
null
label_smoothing.py
aliayub7/EEC
ffb65e6701f5316b69c1ef3c3c130f00b73a18da
[ "MIT" ]
1
2021-05-25T12:07:49.000Z
2021-05-25T12:07:49.000Z
import torch import torch.nn as nn class LSR(nn.Module): def __init__(self, e=0.1, reduction='mean'): super().__init__() self.log_softmax = nn.LogSoftmax(dim=1) self.e = e self.reduction = reduction def _one_hot(self, labels, classes, value=1): """ Conver...
30.534884
98
0.583778
042181fb8ce2aab79714f2159c68420c21b3936e
10,653
py
Python
reporter/uhl_reports/predict/data_quality/redcap.py
LCBRU/reporter
8cb0ae403346e375a5e99d1d4df375cf2d5f3b81
[ "MIT" ]
null
null
null
reporter/uhl_reports/predict/data_quality/redcap.py
LCBRU/reporter
8cb0ae403346e375a5e99d1d4df375cf2d5f3b81
[ "MIT" ]
null
null
null
reporter/uhl_reports/predict/data_quality/redcap.py
LCBRU/reporter
8cb0ae403346e375a5e99d1d4df375cf2d5f3b81
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from reporter.connections import RedcapInstance from reporter.emailing import ( RECIPIENT_PREDICT_ADMIN as RECIPIENT_ADMIN, RECIPIENT_PREDICT_MANAGER as RECIPIENT_MANAGER, RECIPIENT_IT_DQ, ) from reporter.application_abstract_reports.redcap.data_quality import ( RedcapIn...
29.106557
91
0.596358
066357115bc0618fafea6b49826d9023fe8cff64
13,469
py
Python
src/ralph/admin/sitetrees.py
pinoatrome/ralph
d46ac6a0e120ecda4dcc30296a9544ead9c09c53
[ "Apache-2.0" ]
1,668
2015-01-01T12:51:20.000Z
2022-03-29T09:05:35.000Z
src/ralph/admin/sitetrees.py
pinoatrome/ralph
d46ac6a0e120ecda4dcc30296a9544ead9c09c53
[ "Apache-2.0" ]
2,314
2015-01-02T13:26:26.000Z
2022-03-29T04:06:03.000Z
src/ralph/admin/sitetrees.py
pinoatrome/ralph
d46ac6a0e120ecda4dcc30296a9544ead9c09c53
[ "Apache-2.0" ]
534
2015-01-05T12:40:28.000Z
2022-03-29T21:10:12.000Z
# -*- coding: utf-8 -*- from django.apps import apps from django.conf import settings from django.utils.translation import ugettext_lazy as _ from django.utils.translation import activate from sitetree.sitetreeapp import register_i18n_trees from sitetree.utils import item, tree from ralph.admin.sites import ralph_site...
39.731563
80
0.49536
91e74b891d5187d29680ed1e9de16e616b6e6312
36,194
py
Python
trident/backend/tensorflow_serialization.py
cronin4392/trident
1c1eb01bcde861496ce83e265ff071fc9bcb9db2
[ "MIT" ]
68
2020-11-13T06:40:52.000Z
2022-03-28T12:40:59.000Z
trident/backend/tensorflow_serialization.py
cronin4392/trident
1c1eb01bcde861496ce83e265ff071fc9bcb9db2
[ "MIT" ]
1
2021-08-15T17:06:35.000Z
2021-11-10T04:42:52.000Z
trident/backend/tensorflow_serialization.py
cronin4392/trident
1c1eb01bcde861496ce83e265ff071fc9bcb9db2
[ "MIT" ]
11
2020-11-24T13:14:16.000Z
2021-12-26T07:41:29.000Z
import difflib import os import io import shutil import struct import sys import tarfile import tempfile import warnings import copyreg from contextlib import closing, contextmanager try: import _pickle as pickle except: import pickle import pathlib import inspect import tensorflow as tf from trident.backend.te...
38.751606
126
0.623308
ed0ca4bf331912888336452ec60e7ef06cf82b6a
261
py
Python
blog/user/urls.py
znf896/Django-React-
44bfbffc8f6a6fa13e001f3fc4b42005afa426bc
[ "MIT" ]
1
2021-05-10T15:29:00.000Z
2021-05-10T15:29:00.000Z
blog/user/urls.py
znf896/Django-React-
44bfbffc8f6a6fa13e001f3fc4b42005afa426bc
[ "MIT" ]
7
2020-09-07T12:44:21.000Z
2022-02-26T18:35:20.000Z
blog/user/urls.py
znf896/Django-React-
44bfbffc8f6a6fa13e001f3fc4b42005afa426bc
[ "MIT" ]
null
null
null
from django.conf.urls import url from django.contrib import admin from django.http import HttpResponse, HttpRequest,JsonResponse from . import views urlpatterns = [ url(r'reg', views.register), url(r'login', views.login), url(r'test', views.test) ]
26.1
62
0.735632
bed24e6064f69be11185e377fa10e7c14b5b9195
3,537
py
Python
bindings/python/ensmallen/datasets/string/campylobacterpeloridislmg23910.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
5
2021-02-17T00:44:45.000Z
2021-08-09T16:41:47.000Z
bindings/python/ensmallen/datasets/string/campylobacterpeloridislmg23910.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
18
2021-01-07T16:47:39.000Z
2021-08-12T21:51:32.000Z
bindings/python/ensmallen/datasets/string/campylobacterpeloridislmg23910.py
AnacletoLAB/ensmallen
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
3
2021-01-14T02:20:59.000Z
2021-08-04T19:09:52.000Z
""" This file offers the methods to automatically retrieve the graph Campylobacter peloridis LMG 23910. The graph is automatically retrieved from the STRING repository. References --------------------- Please cite the following if you use the data: ```bib @article{szklarczyk2019string, title={STRING v11: prote...
33.685714
223
0.681934
a1bc8e2e71a7b7829442a6fbc797fca400dd7096
301
py
Python
Chapter 6/naive-pin.py
indrag49/Computational-Stat-Mech
0877f54a0245fce815f03478f4fb219fd6314951
[ "MIT" ]
19
2018-06-29T12:22:47.000Z
2022-03-10T03:18:18.000Z
Chapter 6/naive-pin.py
indrag49/Computational-Stat-Mech
0877f54a0245fce815f03478f4fb219fd6314951
[ "MIT" ]
null
null
null
Chapter 6/naive-pin.py
indrag49/Computational-Stat-Mech
0877f54a0245fce815f03478f4fb219fd6314951
[ "MIT" ]
7
2018-11-30T01:56:36.000Z
2021-12-23T15:29:56.000Z
import random def naive_pin(N, sigma, L): x=[0.]*N for k in range(1, N+1): x[k-1]=random.uniform(sigma, L-sigma) for l in range(1, k): if abs(x[k-1]-x[l-1])<2*sigma: return naive_pin(N, sigma, L) return x for i in range(1000): print(naive_pin(8, 0.4, 20))
25.083333
72
0.55814
f8a8923420ce161eb806c734cfb5342b2538b30a
13,343
py
Python
airflow/providers/docker/operators/docker.py
mebelousov/airflow
d99833c9b5be9eafc0c7851343ee86b6c20aed40
[ "Apache-2.0" ]
2
2021-07-30T17:35:51.000Z
2021-08-03T13:50:57.000Z
airflow/providers/docker/operators/docker.py
mebelousov/airflow
d99833c9b5be9eafc0c7851343ee86b6c20aed40
[ "Apache-2.0" ]
9
2021-02-08T20:50:21.000Z
2022-03-29T22:29:28.000Z
airflow/providers/docker/operators/docker.py
mebelousov/airflow
d99833c9b5be9eafc0c7851343ee86b6c20aed40
[ "Apache-2.0" ]
1
2020-04-25T00:31:39.000Z
2020-04-25T00:31:39.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...
41.055385
105
0.633741
8e0a94c2b5b9d65ef723b3732909cd898131ce4f
9,946
py
Python
reports/configs/all_logs_gin8_2/other_config.py
hengwei-chan/graph_network_demo
542f2a59b1b9708abdc718d77db7111f3ba2df96
[ "MIT" ]
1
2021-10-18T03:44:53.000Z
2021-10-18T03:44:53.000Z
reports/configs/all_logs_gin8_2/other_config.py
hengwei-chan/graph_network_demo
542f2a59b1b9708abdc718d77db7111f3ba2df96
[ "MIT" ]
null
null
null
reports/configs/all_logs_gin8_2/other_config.py
hengwei-chan/graph_network_demo
542f2a59b1b9708abdc718d77db7111f3ba2df96
[ "MIT" ]
1
2022-02-22T08:32:01.000Z
2022-02-22T08:32:01.000Z
from dataclasses import dataclass, field from typing import List import tensorflow as tf from graph_networks.utilities import * import logging import os ATOM_FEATURE_DIM = DGIN8_ATOM_FEATURE_DIM EDGE_FEATURE_DIM = DGIN8_EDGE_FEATURE_DIM @dataclass class BasicModelConfig: """ Config for model1/2/3 run file. ...
44.401786
169
0.667404
ef67430884016b9978c175f7c04324bb233e7420
15,392
py
Python
env/Lib/site-packages/sqlalchemy/ext/asyncio/session.py
m4573rn3rd/flaskaiml
076c4064a52e8717a80fc5e79304e1c5d889116c
[ "MIT" ]
null
null
null
env/Lib/site-packages/sqlalchemy/ext/asyncio/session.py
m4573rn3rd/flaskaiml
076c4064a52e8717a80fc5e79304e1c5d889116c
[ "MIT" ]
null
null
null
env/Lib/site-packages/sqlalchemy/ext/asyncio/session.py
m4573rn3rd/flaskaiml
076c4064a52e8717a80fc5e79304e1c5d889116c
[ "MIT" ]
1
2021-06-20T19:28:37.000Z
2021-06-20T19:28:37.000Z
# ext/asyncio/session.py # Copyright (C) 2020-2021 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php from . import engine from . import result as _result from .base import...
30.784
79
0.613111
b68de535f82ffde7140f97bb7423965c20e3e68b
6,789
py
Python
cubes-ga/browser.py
DataBrewery/cubes-ga
a4fe44133ad4a4606e18c6cd35febba96a6395d0
[ "MIT" ]
6
2015-01-24T08:35:57.000Z
2021-11-16T10:52:07.000Z
cubes-ga/browser.py
DataBrewery/cubes-ga
a4fe44133ad4a4606e18c6cd35febba96a6395d0
[ "MIT" ]
null
null
null
cubes-ga/browser.py
DataBrewery/cubes-ga
a4fe44133ad4a4606e18c6cd35febba96a6395d0
[ "MIT" ]
2
2016-05-14T13:39:24.000Z
2020-12-27T12:16:24.000Z
# -*-coding=utf -*- from __future__ import absolute_import from cubes.browser import * from .mapper import GoogleAnalyticsMapper from cubes.logging import get_logger from cubes.calendar import Calendar # Google Python API Documentation: # https://developers.google.com/api-client-library/python/start/get_started _DE...
32.483254
95
0.552953
aea4668144224ba2af4dc99df34c342ad4e58213
5,450
py
Python
pytest_motor/plugin.py
frepond/pytest-motor
fa7a241c2105386f8b5fd34846c2095fa5b8c10c
[ "MIT" ]
null
null
null
pytest_motor/plugin.py
frepond/pytest-motor
fa7a241c2105386f8b5fd34846c2095fa5b8c10c
[ "MIT" ]
null
null
null
pytest_motor/plugin.py
frepond/pytest-motor
fa7a241c2105386f8b5fd34846c2095fa5b8c10c
[ "MIT" ]
1
2021-07-15T16:42:05.000Z
2021-07-15T16:42:05.000Z
"""A pytest plugin which helps test applications using Motor.""" import asyncio import platform import secrets import shutil import socket import tarfile import tempfile from pathlib import Path from typing import AsyncIterator, Iterator, List, Tuple import aiohttp import pytest from _pytest.config import Config as Py...
33.231707
100
0.681468
75ad733911cdcfc4eb59a4405d8708aed4f63255
395
py
Python
halo_events.py
eatwithforks/connector
4fc889a905713b3ad11192bbf96d0bc76f3fd439
[ "Unlicense" ]
1
2017-09-05T09:20:46.000Z
2017-09-05T09:20:46.000Z
halo_events.py
eatwithforks/connector
4fc889a905713b3ad11192bbf96d0bc76f3fd439
[ "Unlicense" ]
null
null
null
halo_events.py
eatwithforks/connector
4fc889a905713b3ad11192bbf96d0bc76f3fd439
[ "Unlicense" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """Event Connector""" from lib.utility import Utility from lib.event import Event def main(): """Main function for retrieve_events""" utility = Utility() args = utility.updated_hash() for i in args["api_keys"]: event = Event(i['key_id'], i['secret_key'...
20.789474
51
0.627848
1318cbf4da80afdaa696357b349e13132be46e38
3,229
py
Python
tests/test_version.py
pypdfium2-team/pypdfium2
9a1796ba9f058102997652086a48e28af9cd3579
[ "Apache-2.0", "BSD-3-Clause" ]
17
2021-12-13T05:36:20.000Z
2022-03-13T22:56:16.000Z
tests/test_version.py
pypdfium2-team/pypdfium2
9a1796ba9f058102997652086a48e28af9cd3579
[ "Apache-2.0", "BSD-3-Clause" ]
51
2021-12-04T13:21:35.000Z
2022-03-28T13:33:29.000Z
tests/test_version.py
pypdfium2-team/pypdfium2
9a1796ba9f058102997652086a48e28af9cd3579
[ "Apache-2.0", "BSD-3-Clause" ]
2
2022-02-01T22:56:47.000Z
2022-03-16T13:26:35.000Z
# SPDX-FileCopyrightText: 2022 geisserml <geisserml@gmail.com> # SPDX-License-Identifier: Apache-2.0 OR BSD-3-Clause import copy import shutil import tempfile from os.path import join import pypdfium2.version as pdfium_ver from pl_setup import setup_base import pl_setup.packaging_base as pkg_base import pl_setup.upda...
27.598291
98
0.64664
1da761ffad2b412b49bd8e08feb5d63fbf84d0de
216
py
Python
melange/domain_event_bus/debugger.py
mangeld/melange
1650268b312f3fea7b26afa2fc8ea4f8dd3948e3
[ "MIT" ]
null
null
null
melange/domain_event_bus/debugger.py
mangeld/melange
1650268b312f3fea7b26afa2fc8ea4f8dd3948e3
[ "MIT" ]
null
null
null
melange/domain_event_bus/debugger.py
mangeld/melange
1650268b312f3fea7b26afa2fc8ea4f8dd3948e3
[ "MIT" ]
null
null
null
from melange.domain_event_bus import DomainEventHandler class Debugger(DomainEventHandler): def process(self, event): print(f"Event received: {type(event).__name__} at {event.occurred_on.isoformat()}")
30.857143
91
0.759259
c8a1f619805e7e06da34c0d947f0e9f5a1e4fa6d
998
py
Python
tests/test_modules/test_builtin/test_choicepart.py
aaron-parsons/pymalcolm
4e7ebd6b09382ab7e013278a81097d17873fa5c4
[ "Apache-2.0" ]
null
null
null
tests/test_modules/test_builtin/test_choicepart.py
aaron-parsons/pymalcolm
4e7ebd6b09382ab7e013278a81097d17873fa5c4
[ "Apache-2.0" ]
null
null
null
tests/test_modules/test_builtin/test_choicepart.py
aaron-parsons/pymalcolm
4e7ebd6b09382ab7e013278a81097d17873fa5c4
[ "Apache-2.0" ]
null
null
null
import unittest from malcolm.core import Controller from malcolm.modules.builtin.parts import ChoicePart class TestChoicePart(unittest.TestCase): def setUp(self): self.o = ChoicePart(name="cp", description="desc", choices=["a", "b"], value="a", writeable=True) self.c ...
32.193548
78
0.589178
aabea2652a852b5f09871327f0feaa8e92175b0c
896
py
Python
Services/FriendShipApiService.py
AiursoftWeb/Kahla.CLI
5f83fa79914fab8ad5ce628b56d18d83d77cc049
[ "MIT" ]
10
2019-03-21T13:38:24.000Z
2019-12-15T11:42:02.000Z
Services/FriendShipApiService.py
AiursoftWeb/Kahla.CLI
5f83fa79914fab8ad5ce628b56d18d83d77cc049
[ "MIT" ]
31
2019-04-10T04:29:40.000Z
2019-08-11T10:05:31.000Z
Services/FriendShipApiService.py
AiursoftWeb/Kahla.CLI
5f83fa79914fab8ad5ce628b56d18d83d77cc049
[ "MIT" ]
8
2019-03-21T14:17:42.000Z
2019-08-14T00:04:24.000Z
import requests from Services.ApiAddressService import ApiAddressService from Services.StorageCookieService import StorageCookieService class FriendShipApiService(object): def __init__(self): self.apiaddress = ApiAddressService() self.storagecookie = StorageCookieService() def Mine(self): ...
38.956522
113
0.676339
fb6096bb45b0c11d32fe201fac261a856a91eaf0
821
py
Python
goto/commands/update.py
technocake/goto
3bd2997ccd7ef4ee9bcf4f9b72b1e13f11738faf
[ "MIT" ]
10
2017-11-05T16:12:08.000Z
2021-10-05T08:18:12.000Z
goto/commands/update.py
technocake/goto
3bd2997ccd7ef4ee9bcf4f9b72b1e13f11738faf
[ "MIT" ]
81
2017-11-05T20:22:27.000Z
2021-11-12T12:40:50.000Z
goto/commands/update.py
technocake/goto
3bd2997ccd7ef4ee9bcf4f9b72b1e13f11738faf
[ "MIT" ]
3
2017-12-14T18:20:52.000Z
2019-05-24T09:37:56.000Z
from ..gotomagic.text import GotoError, GotoWarning def help(): return "{0:10}{1:30}{2}".format('update', '<magicword> <new url/path>', 'Update shortcut') def names(): return [ 'update', '--update' ] def run(magic, command, args, options): """ Update magicword """ if (le...
21.605263
94
0.538368
040dc368d5dbff7b34247b2848bc6701a88dc2e6
4,467
py
Python
nbody.py
RickvTatenhove/GEO1000_assignment4_Rick-Sarah
b7a3aaea9ee1ca5ff6f2520e75d3be25fda53415
[ "BSD-3-Clause" ]
null
null
null
nbody.py
RickvTatenhove/GEO1000_assignment4_Rick-Sarah
b7a3aaea9ee1ca5ff6f2520e75d3be25fda53415
[ "BSD-3-Clause" ]
null
null
null
nbody.py
RickvTatenhove/GEO1000_assignment4_Rick-Sarah
b7a3aaea9ee1ca5ff6f2520e75d3be25fda53415
[ "BSD-3-Clause" ]
null
null
null
# Taken from: # The Computer Language Benchmarks Game # https://salsa.debian.org/benchmarksgame-team/benchmarksgame/ # # originally by Kevin Carson # modified by Tupteq, Fredrik Johansson, and Daniel Nanz # modified by Maciej Fijalkowski # 2to3 # modified by Andriy Misyura # slightly modified by bmmeijers # finalized ...
30.806897
103
0.544437
d9b2639b877251fb78e76700f574e0f0f2b289b9
98
py
Python
_Music.py
kibalab/KIBA-TION-CODE-
6d5c4d6ed958b61a9b014cf4bf51511e45e0309a
[ "MIT" ]
1
2018-06-12T07:13:03.000Z
2018-06-12T07:13:03.000Z
_Music.py
kibalab/KIBA-TION-CODE-
6d5c4d6ed958b61a9b014cf4bf51511e45e0309a
[ "MIT" ]
null
null
null
_Music.py
kibalab/KIBA-TION-CODE-
6d5c4d6ed958b61a9b014cf4bf51511e45e0309a
[ "MIT" ]
null
null
null
import os,sys,inspect, time import bot import asyncio import discord import youtube_dl
10.888889
28
0.744898
288d0d0450733624752a3daea5acdbf275be565a
630
py
Python
apps/terreno/admin.py
Ajerhy/proyectosigetebr
5b63f194bbe06adb92d1cdbba93d1e0028b4164f
[ "MIT" ]
1
2020-05-11T13:29:41.000Z
2020-05-11T13:29:41.000Z
apps/terreno/admin.py
Ajerhy/proyectosigetebr
5b63f194bbe06adb92d1cdbba93d1e0028b4164f
[ "MIT" ]
11
2020-02-12T03:19:44.000Z
2022-03-12T00:10:31.000Z
apps/terreno/admin.py
Ajerhy/proyectosigetebr
5b63f194bbe06adb92d1cdbba93d1e0028b4164f
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Ubicacion from .models import Lote from .models import Manzano from .models import Medida from .models import Distrito """ class lotesInlines(admin.TabularInline): model = Manzano.lotes.through class LoteAdmin(admin.ModelAdmin): inlines = [ lotesInli...
22.5
42
0.74127
693f93fe17893e1328df2f74ca3b0b68267d15ae
2,261
py
Python
site/public/courses/CS-1.2/src/linked-list/whole_linked_list.py
KitsuneNoctus/makeschool
5eec1a18146abf70bb78b4ee3d301f6a43c9ede4
[ "MIT" ]
1
2021-08-24T20:22:19.000Z
2021-08-24T20:22:19.000Z
site/public/courses/CS-1.2/src/linked-list/whole_linked_list.py
KitsuneNoctus/makeschool
5eec1a18146abf70bb78b4ee3d301f6a43c9ede4
[ "MIT" ]
null
null
null
site/public/courses/CS-1.2/src/linked-list/whole_linked_list.py
KitsuneNoctus/makeschool
5eec1a18146abf70bb78b4ee3d301f6a43c9ede4
[ "MIT" ]
null
null
null
class Node: def __init__(self,initdata): self.data = initdata # Data part self.next = None # Address part def getData(self): # getter method return self.data def getNext(self): # getter method return self.next def setData(self,newdata): # setter method ...
22.386139
48
0.533835
8e6f130a3e0faac2bc2e4712f3144f329cd84164
5,589
py
Python
run_all.py
elalamik/NLP_Capgemini_Data_Camp
31143116e02dad07a379bb81524cdc0e1fe796bd
[ "MIT" ]
null
null
null
run_all.py
elalamik/NLP_Capgemini_Data_Camp
31143116e02dad07a379bb81524cdc0e1fe796bd
[ "MIT" ]
null
null
null
run_all.py
elalamik/NLP_Capgemini_Data_Camp
31143116e02dad07a379bb81524cdc0e1fe796bd
[ "MIT" ]
1
2021-02-09T18:33:10.000Z
2021-02-09T18:33:10.000Z
import logging import logzero from logzero import logger from scraper.merger import merge_files from cleaner.src.cleaner import Cleaner from embedder.src.embedder import Embedder from cleaner.src.helpers import save_wordcloud, save_tfidf from embedder.src.model import RatingPredictor import json import os import ar...
48.181034
162
0.719449
a60fd442250fb3d9fb5bd5e3e20d7141ad86cbc7
12,749
py
Python
salt/auth/__init__.py
grischa/salt
e7d95eed5a5d3762c96b89b9a9c685d793881912
[ "Apache-2.0" ]
null
null
null
salt/auth/__init__.py
grischa/salt
e7d95eed5a5d3762c96b89b9a9c685d793881912
[ "Apache-2.0" ]
null
null
null
salt/auth/__init__.py
grischa/salt
e7d95eed5a5d3762c96b89b9a9c685d793881912
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Salt's pluggable authentication system This system allows for authentication to be managed in a module pluggable way so that any external authentication system can be used inside of Salt ''' from __future__ import absolute_import # 1. Create auth loader instance # 2. Accept arguments as a...
32.689744
83
0.526316
30a29ab1633de3c14e79ac0ada51c453b8957663
2,989
py
Python
test.py
Khanhnn00/image-retrieval
7c6c5fe9ec5fd6cb0f0906027fd80787e2ad1cf8
[ "MIT" ]
null
null
null
test.py
Khanhnn00/image-retrieval
7c6c5fe9ec5fd6cb0f0906027fd80787e2ad1cf8
[ "MIT" ]
null
null
null
test.py
Khanhnn00/image-retrieval
7c6c5fe9ec5fd6cb0f0906027fd80787e2ad1cf8
[ "MIT" ]
null
null
null
import argparse import os import shutil import matplotlib.pyplot as plt import torch from PIL import Image, ImageDraw if __name__ == '__main__': parser = argparse.ArgumentParser(description='Test CGD') parser.add_argument('--query_img_name', default='/home/data/car/uncropped/008055.jpg', type=str, ...
49
113
0.670458
e2d80eac6d62030da64fef6e54ea9a0289f19656
1,696
py
Python
dialogue-engine/test/programytest/dynamic/sets/test_numeric.py
cotobadesign/cotoba-agent-oss
3833d56e79dcd7529c3e8b3a3a8a782d513d9b12
[ "MIT" ]
104
2020-03-30T09:40:00.000Z
2022-03-06T22:34:25.000Z
dialogue-engine/test/programytest/dynamic/sets/test_numeric.py
cotobadesign/cotoba-agent-oss
3833d56e79dcd7529c3e8b3a3a8a782d513d9b12
[ "MIT" ]
25
2020-06-12T01:36:35.000Z
2022-02-19T07:30:44.000Z
dialogue-engine/test/programytest/dynamic/sets/test_numeric.py
cotobadesign/cotoba-agent-oss
3833d56e79dcd7529c3e8b3a3a8a782d513d9b12
[ "MIT" ]
10
2020-04-02T23:43:56.000Z
2021-05-14T13:47:01.000Z
""" Copyright (c) 2020 COTOBA DESIGN, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distri...
48.457143
126
0.78184
02d5f1980b14c753ea62c7831b023c4efd527ad4
12,418
py
Python
bin/bactopia/bactopia-prepare.py
bactopia/bactopia-ap
f87c55f3c9f8c7aca230d7a6146db078acd6d141
[ "MIT" ]
null
null
null
bin/bactopia/bactopia-prepare.py
bactopia/bactopia-ap
f87c55f3c9f8c7aca230d7a6146db078acd6d141
[ "MIT" ]
9
2019-05-20T17:05:09.000Z
2019-08-29T12:59:57.000Z
bin/bactopia/bactopia-prepare.py
bactopia/bactopia-ap
f87c55f3c9f8c7aca230d7a6146db078acd6d141
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 """ usage: bactopia prepare [-h] [-f STR] [-a STR] [--pe1_pattern STR] [--pe2_pattern STR] [--fastq_separator STR] [-r] [--long_reads] [--merge] [--prefix STR] [--examples] [--version] STR bactopia prepare - Read a directory and prepare a FOFN of ...
41.393333
150
0.58077
b936e60a4a42911f12c0a663036bfe3fb50309f2
3,865
py
Python
surfaise/common/cmd.py
gautelinga/Surfaise
da9e2a9850c2f0a5a162303939741a34fb26a54b
[ "MIT" ]
null
null
null
surfaise/common/cmd.py
gautelinga/Surfaise
da9e2a9850c2f0a5a162303939741a34fb26a54b
[ "MIT" ]
null
null
null
surfaise/common/cmd.py
gautelinga/Surfaise
da9e2a9850c2f0a5a162303939741a34fb26a54b
[ "MIT" ]
null
null
null
from __future__ import print_function import sys import json from dolfin import MPI RED = "\033[1;37;31m{s}\033[0m" BLUE = "\033[1;37;34m{s}\033[0m" GREEN = "\033[1;37;32m{s}\033[0m" YELLOW = "\033[1;37;33m{s}\033[0m" CYAN = "\033[1;37;36m{s}\033[0m" NORMAL = "{s}" ON_RED = "\033[41m{s}\033[0m" __all__ = ["mpi_comm...
23.283133
79
0.613454
63a79823a987bbff36b3d4be9a26fcc531af97b0
7,857
py
Python
test_frcnn.py
rohitMalhotra07/frcnn
d9eaed861879063e1b2edeede1fbaa941a7b870d
[ "Apache-2.0" ]
null
null
null
test_frcnn.py
rohitMalhotra07/frcnn
d9eaed861879063e1b2edeede1fbaa941a7b870d
[ "Apache-2.0" ]
null
null
null
test_frcnn.py
rohitMalhotra07/frcnn
d9eaed861879063e1b2edeede1fbaa941a7b870d
[ "Apache-2.0" ]
null
null
null
from __future__ import division import os import cv2 import numpy as np import sys import pickle from optparse import OptionParser import time from keras_frcnn import config from keras import backend as K from keras.layers import Input from keras.models import Model from keras_frcnn import roi_helpers sys.setrecursion...
31.302789
151
0.696067
8889f823a95509525d721bdfe9fab15a319b65c8
2,042
py
Python
phi/tf/profiling.py
Neroware/PhiFlow
f85d1f46847d27332559e3d2b7ef6ac5d37796eb
[ "MIT" ]
13
2020-12-05T13:40:59.000Z
2021-12-26T09:58:59.000Z
phi/tf/profiling.py
tum-pbs/CG-Solver-in-the-Loop
f6cb28819c7559d4afa972abc02f810c0c81515f
[ "MIT" ]
null
null
null
phi/tf/profiling.py
tum-pbs/CG-Solver-in-the-Loop
f6cb28819c7559d4afa972abc02f810c0c81515f
[ "MIT" ]
1
2021-05-04T16:31:41.000Z
2021-05-04T16:31:41.000Z
import json import os import threading from . import tf from tensorflow.python.client import timeline class Timeliner: _timeline_dict = None options = tf.RunOptions(trace_level=tf.RunOptions.FULL_TRACE) run_metadata = tf.RunMetadata() def update_timeline(self, chrome_trace): # convert chrom...
33.47541
86
0.649853
64919bf0417ff2e8e71203e29a12e20ab395a24a
2,639
py
Python
consent_processor/consent_processor/handler.py
DavidJFaulkenberry/sawtooth-healthcare
3204d66526209a309dff616f7e5754782fe61efb
[ "Apache-2.0" ]
20
2019-01-31T07:20:59.000Z
2022-02-26T15:58:55.000Z
consent_processor/consent_processor/handler.py
LonieN/sawtooth-healthcare
ea44e5eb6fe22e35c2061ed9248603cf36a47bde
[ "Apache-2.0" ]
2
2019-10-09T17:02:01.000Z
2019-11-20T16:26:42.000Z
consent_processor/consent_processor/handler.py
LonieN/sawtooth-healthcare
ea44e5eb6fe22e35c2061ed9248603cf36a47bde
[ "Apache-2.0" ]
15
2019-01-03T17:17:03.000Z
2022-03-31T13:13:44.000Z
import logging from sawtooth_sdk.processor.exceptions import InvalidTransaction from sawtooth_sdk.processor.handler import TransactionHandler import consent_processor.consent_common.helper as helper from consent_processor.payload import ConsentPayload from consent_processor.state import ConsentState logging.basicCon...
33.833333
109
0.646078
3eac87e5e0cc8c0b22231ad2f6bb91f8aa640a31
3,556
py
Python
legacy/repo/zenml_config_test.py
ParikhKadam/zenml
867e4d4c982a50447bd182b30af37f2141dac5a4
[ "Apache-2.0" ]
1,275
2020-11-19T14:18:25.000Z
2021-08-13T07:31:39.000Z
legacy/repo/zenml_config_test.py
ParikhKadam/zenml
867e4d4c982a50447bd182b30af37f2141dac5a4
[ "Apache-2.0" ]
62
2020-11-30T16:06:14.000Z
2021-08-10T08:34:52.000Z
legacy/repo/zenml_config_test.py
ParikhKadam/zenml
867e4d4c982a50447bd182b30af37f2141dac5a4
[ "Apache-2.0" ]
75
2020-12-22T19:15:08.000Z
2021-08-13T03:07:50.000Z
# Copyright (c) ZenML GmbH 2021. 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...
30.655172
79
0.765186
d5de687ed76fd580255b1749f82212e971e39d33
12,158
py
Python
sympy/core/tests/test_symbol.py
utkarshdeorah/sympy
dcdf59bbc6b13ddbc329431adf72fcee294b6389
[ "BSD-3-Clause" ]
1
2018-11-20T11:40:30.000Z
2018-11-20T11:40:30.000Z
sympy/core/tests/test_symbol.py
utkarshdeorah/sympy
dcdf59bbc6b13ddbc329431adf72fcee294b6389
[ "BSD-3-Clause" ]
14
2018-02-08T10:11:03.000Z
2019-04-16T10:32:46.000Z
sympy/core/tests/test_symbol.py
utkarshdeorah/sympy
dcdf59bbc6b13ddbc329431adf72fcee294b6389
[ "BSD-3-Clause" ]
1
2022-02-04T13:50:29.000Z
2022-02-04T13:50:29.000Z
from sympy.core.numbers import (I, Rational, pi) from sympy.core.relational import (GreaterThan, LessThan, StrictGreaterThan, StrictLessThan) from sympy.core.symbol import (Dummy, Symbol, Wild, symbols) from sympy.core.sympify import sympify # can't import as S yet from sympy.core.symbol import uniquely_named_symbol, ...
31.015306
92
0.483797
be7b24b2e2fd4449a08d461ca448be96f9004436
607
py
Python
django/http/__init__.py
pomarec/django
98514849dce07acfaa224a90a784bba9d97249e5
[ "BSD-3-Clause" ]
1
2015-06-14T07:55:29.000Z
2015-06-14T07:55:29.000Z
django/http/__init__.py
pomarec/django
98514849dce07acfaa224a90a784bba9d97249e5
[ "BSD-3-Clause" ]
null
null
null
django/http/__init__.py
pomarec/django
98514849dce07acfaa224a90a784bba9d97249e5
[ "BSD-3-Clause" ]
null
null
null
from django.http.cookie import SimpleCookie, parse_cookie from django.http.request import (HttpRequest, QueryDict, UnreadablePostError, build_request_repr) from django.http.response import (HttpResponse, StreamingHttpResponse, HttpResponseRedirect, HttpResponsePermanentRedirect, HttpResponseNotModified, Htt...
55.181818
80
0.848435
5ea18b14e29d8271d91153b496d00d04892cb9e7
17,633
py
Python
virt/ansible-latest/lib/python2.7/site-packages/ansible/modules/database/proxysql/proxysql_backend_servers.py
lakhlaifi/RedHat-Ansible
27c5077cced9d416081fcd5d69ea44bca0317fa4
[ "Apache-2.0" ]
1
2020-03-29T18:41:01.000Z
2020-03-29T18:41:01.000Z
ansible/ansible/modules/database/proxysql/proxysql_backend_servers.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
7
2020-09-07T17:27:56.000Z
2022-03-02T06:25:46.000Z
ansible/ansible/modules/database/proxysql/proxysql_backend_servers.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
1
2020-10-30T12:48:24.000Z
2020-10-30T12:48:24.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2017, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = ''' --- module: proxysql_backend_servers v...
34.847826
92
0.561561
90d3a1ed3fae309a3a87885f6988d550fa212c25
14,746
py
Python
anytree/exporter/dotexporter.py
cinek810/anytree
73655eb7a5cb739555a434c47a248c4ad958093d
[ "Apache-2.0" ]
null
null
null
anytree/exporter/dotexporter.py
cinek810/anytree
73655eb7a5cb739555a434c47a248c4ad958093d
[ "Apache-2.0" ]
null
null
null
anytree/exporter/dotexporter.py
cinek810/anytree
73655eb7a5cb739555a434c47a248c4ad958093d
[ "Apache-2.0" ]
null
null
null
import codecs import logging import re from os import path from os import remove from subprocess import check_call from tempfile import NamedTemporaryFile import six from anytree import PreOrderIter _RE_ESC = re.compile(r'["\\]') class DotExporter(object): def __init__(self, node, graph="digraph", name="tree"...
37.050251
112
0.53818
0d7faa2aa6ef80023f546e21a81c9498b4dab4d8
4,426
py
Python
Deeplog_demo/loglizer/loglizer/models/PCA.py
nafiz6/DeepLog
c622e8c89c83bcb53452c045ae9b2f9906743be3
[ "MIT" ]
null
null
null
Deeplog_demo/loglizer/loglizer/models/PCA.py
nafiz6/DeepLog
c622e8c89c83bcb53452c045ae9b2f9906743be3
[ "MIT" ]
null
null
null
Deeplog_demo/loglizer/loglizer/models/PCA.py
nafiz6/DeepLog
c622e8c89c83bcb53452c045ae9b2f9906743be3
[ "MIT" ]
null
null
null
""" The implementation of PCA model for anomaly detection. Authors: LogPAI Team Reference: [1] Wei Xu, Ling Huang, Armando Fox, David Patterson, Michael I. Jordan. Large-Scale System Problems Detection by Mining Console Logs. ACM Symposium on Operating Systems Principles (SOSP), 2...
40.605505
103
0.536828
7c5723fe425882f9e1debb02661bf1cf5599b297
251
py
Python
src/grokcore/view/tests/base/view/shared_template_fixture/first_module.py
zopefoundation/grokcore.view
c574c0d041130ac607c95feb610a2b75bfc30abf
[ "ZPL-2.1" ]
null
null
null
src/grokcore/view/tests/base/view/shared_template_fixture/first_module.py
zopefoundation/grokcore.view
c574c0d041130ac607c95feb610a2b75bfc30abf
[ "ZPL-2.1" ]
8
2016-02-02T13:42:20.000Z
2022-02-16T07:06:52.000Z
src/grokcore/view/tests/base/view/shared_template_fixture/first_module.py
zopefoundation/grokcore.view
c574c0d041130ac607c95feb610a2b75bfc30abf
[ "ZPL-2.1" ]
5
2015-04-03T05:01:45.000Z
2018-06-13T08:41:30.000Z
import grokcore.view as grok grok.templatedir("templates") class Mammoth(grok.Context): pass class CavePainting(grok.View): pass unassociated_instance = grok.PageTemplate(""" <html><body><h1>GROK PAINT MAMMOTH!</h1></body></html> """)
13.944444
54
0.705179
e7dd4df89be4ecc84b82b20d813fad5ba351f74d
6,178
py
Python
tests/paradrop/lib/utils/test_dockerapi.py
VegetableChook/Paradrop
a38e1773877d5b136c3b626edd8c033a12b43e56
[ "Apache-2.0" ]
1
2018-03-22T13:04:19.000Z
2018-03-22T13:04:19.000Z
tests/paradrop/lib/utils/test_dockerapi.py
VegetableChook/Paradrop
a38e1773877d5b136c3b626edd8c033a12b43e56
[ "Apache-2.0" ]
null
null
null
tests/paradrop/lib/utils/test_dockerapi.py
VegetableChook/Paradrop
a38e1773877d5b136c3b626edd8c033a12b43e56
[ "Apache-2.0" ]
null
null
null
from paradrop.core.container import dockerapi from mock import patch, MagicMock from nose.tools import assert_raises DOCKER_CONF = """ # Docker systemd configuration # # This configuration file was automatically generated by Paradrop. Any changes # will be overwritten on startup. # Tell docker not to start container...
33.576087
93
0.728229
8a80d819bb1f8effac417ddf5a3d4bfc73e86299
10,615
py
Python
nlptoolkit/ASR/models/LAS/LAS_model.py
jackashore/NLP_Toolkit
e5bd8bcfad87f4906c45e66351adf93bd5c2727f
[ "Apache-2.0" ]
2
2020-09-26T11:20:13.000Z
2021-09-17T13:15:48.000Z
nlptoolkit/ASR/models/LAS/LAS_model.py
jackashore/NLP_Toolkit
e5bd8bcfad87f4906c45e66351adf93bd5c2727f
[ "Apache-2.0" ]
null
null
null
nlptoolkit/ASR/models/LAS/LAS_model.py
jackashore/NLP_Toolkit
e5bd8bcfad87f4906c45e66351adf93bd5c2727f
[ "Apache-2.0" ]
1
2021-03-11T21:14:24.000Z
2021-03-11T21:14:24.000Z
# -*- coding: utf-8 -*- """ Created on Fri Jul 12 16:58:24 2019 @author: WT """ import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F import numpy as np class pBLSTMLayer(nn.Module): def __init__(self,input_size, lstm_hidden_size, num_layers=1): super(pBLSTMLayer,...
51.033654
163
0.621008
2dbb90546e731ab84c4e846e7cee4326f0cd001f
19,461
py
Python
electrum/plugins/trezor/trezor.py
c4pt000/electrum-ravencoin-lite
fe0f139a3708261467beb855700f56b5fbc7c2e9
[ "MIT" ]
null
null
null
electrum/plugins/trezor/trezor.py
c4pt000/electrum-ravencoin-lite
fe0f139a3708261467beb855700f56b5fbc7c2e9
[ "MIT" ]
null
null
null
electrum/plugins/trezor/trezor.py
c4pt000/electrum-ravencoin-lite
fe0f139a3708261467beb855700f56b5fbc7c2e9
[ "MIT" ]
1
2021-09-15T21:25:08.000Z
2021-09-15T21:25:08.000Z
import traceback import sys from typing import NamedTuple, Any, Optional, Dict, Union, List, Tuple, TYPE_CHECKING from electrum.util import bfh, bh2u, versiontuple, UserCancelled, UserFacingException from electrum.bip32 import BIP32Node, convert_bip32_path_to_list_of_uint32 as parse_path from electrum import constants...
40.798742
122
0.633986
c723e87b950f65c3d0ed96517ea59c9ad95f1476
423
py
Python
desensitize/__init__.py
aws-samples/desensitize-cn
3992837e22b521ee460f3fb8b228c7eecc029d08
[ "MIT-0" ]
null
null
null
desensitize/__init__.py
aws-samples/desensitize-cn
3992837e22b521ee460f3fb8b228c7eecc029d08
[ "MIT-0" ]
null
null
null
desensitize/__init__.py
aws-samples/desensitize-cn
3992837e22b521ee460f3fb8b228c7eecc029d08
[ "MIT-0" ]
1
2021-06-10T19:00:39.000Z
2021-06-10T19:00:39.000Z
# convenient imports from .desensitize import Desensitize from . import implement from . import detectors __version__ = VERSION = "1.2.1" def clean(text, cls=None, **kwargs): """Public facing function to clean ``text`` using the scrubber ``cls`` by replacing all personal information with ``{{PLACEHOLDERS}}`...
24.882353
77
0.687943
8c65a848ca2e0c0e9385441dd743031bc0670fa0
5,065
py
Python
LAStools/ArcGIS_toolbox/scripts_production/lasinfoPro.py
imjoy-team/imjoy-potree-converter
95f9f2e99f76bf2704cc1d2002ebdddc2b088247
[ "BSD-2-Clause-FreeBSD" ]
17
2016-02-27T11:28:55.000Z
2021-04-16T02:59:23.000Z
LAStools/ArcGIS_toolbox/scripts_production/lasinfoPro.py
imjoy-team/imjoy-potree-converter
95f9f2e99f76bf2704cc1d2002ebdddc2b088247
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
LAStools/ArcGIS_toolbox/scripts_production/lasinfoPro.py
imjoy-team/imjoy-potree-converter
95f9f2e99f76bf2704cc1d2002ebdddc2b088247
[ "BSD-2-Clause-FreeBSD" ]
3
2017-08-04T06:24:53.000Z
2019-03-30T14:37:25.000Z
# # lasinfoPro.py # # (c) 2013, martin isenburg - http://rapidlasso.com # rapidlasso GmbH - fast tools to catch reality # # uses lasinfo.exe to output info or repair the bounding box # # LiDAR input: LAS/LAZ/BIN/TXT/SHP/BIL/ASC/DTM # # for licensing see http://lastools.org/LICENSE.txt # import sys, os, arcgisscr...
25.841837
130
0.654492
bbc0a730f653672519716f40b8646f6cf26e7226
4,759
py
Python
examples/ObstacleAlarm/section_divide.py
BoonthichaSaejia/depthai-python
7467eea56ff879aea81c80bf3e685efc91059934
[ "MIT" ]
null
null
null
examples/ObstacleAlarm/section_divide.py
BoonthichaSaejia/depthai-python
7467eea56ff879aea81c80bf3e685efc91059934
[ "MIT" ]
null
null
null
examples/ObstacleAlarm/section_divide.py
BoonthichaSaejia/depthai-python
7467eea56ff879aea81c80bf3e685efc91059934
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import cv2 import depthai as dai import numpy as np # Closer-in minimum depth, disparity range is doubled (from 95 to 190): extended_disparity = False # Better accuracy for longer distance, fractional disparity 32-levels: subpixel = False # Better handling for occlusions: lr_check = True # Cre...
36.05303
115
0.621349
7f117d2e4e528f7117bdd76a93fa038d863e694e
1,310
py
Python
Examples/DicomImagePrintTags/DicomImagePrintTags.py
HongdaZ/SimpleITK
c4bc2f9beb25f7c9bbc2daa934c08072a04949d6
[ "Apache-2.0" ]
1
2021-03-30T19:29:34.000Z
2021-03-30T19:29:34.000Z
Examples/DicomImagePrintTags/DicomImagePrintTags.py
resace3/SimpleITK
4e04ab7936038d91c5dc8bac991833becb88a69e
[ "Apache-2.0" ]
null
null
null
Examples/DicomImagePrintTags/DicomImagePrintTags.py
resace3/SimpleITK
4e04ab7936038d91c5dc8bac991833becb88a69e
[ "Apache-2.0" ]
1
2021-03-09T07:13:26.000Z
2021-03-09T07:13:26.000Z
#!/usr/bin/env python # ========================================================================= # # Copyright NumFOCUS # # 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:/...
30.465116
75
0.639695
9a074cf9cd2eb353cc7c6802fa3861057b8af3d2
5,573
py
Python
ailib/mdp/agent/adaptive_dynamic_programming.py
jeremiedecock/pyai
5ac032b487670d258ecb3d5fa85a416c76c9871b
[ "MIT" ]
2
2018-05-09T01:54:38.000Z
2019-08-27T23:18:58.000Z
ailib/mdp/agent/adaptive_dynamic_programming.py
jeremiedecock/pyai
5ac032b487670d258ecb3d5fa85a416c76c9871b
[ "MIT" ]
null
null
null
ailib/mdp/agent/adaptive_dynamic_programming.py
jeremiedecock/pyai
5ac032b487670d258ecb3d5fa85a416c76c9871b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright (c) 2014,2015,2016,2017 Jeremie DECOCK (http://www.jdhp.org) # 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, ...
45.308943
229
0.647048
dfe6e93a4222fed7b6abd4a95b86165c60a48f34
1,389
py
Python
panelapp/accounts/migrations/0005_auto_20170816_0954.py
genomicsengland/panelapp
f72537ae1e5ddf13eda74dd91d8018aba1890d32
[ "Apache-2.0" ]
7
2019-04-03T12:57:17.000Z
2021-11-16T12:53:14.000Z
panelapp/accounts/migrations/0005_auto_20170816_0954.py
genomicsengland/panelapp
f72537ae1e5ddf13eda74dd91d8018aba1890d32
[ "Apache-2.0" ]
6
2019-04-11T01:55:22.000Z
2019-08-19T10:50:11.000Z
panelapp/accounts/migrations/0005_auto_20170816_0954.py
genomicsengland/panelapp
f72537ae1e5ddf13eda74dd91d8018aba1890d32
[ "Apache-2.0" ]
5
2019-04-11T00:28:26.000Z
2019-05-15T13:03:07.000Z
## ## Copyright (c) 2016-2019 Genomics England Ltd. ## ## This file is part of PanelApp ## (see https://panelapp.genomicsengland.co.uk). ## ## Licensed to the Apache Software Foundation (ASF) under one ## or more contributor license agreements. See the NOTICE file ## distributed with this work for additional informati...
33.071429
63
0.712743
1533a80cba078ba520c9c241396ae0896625c793
13,899
py
Python
EDMScripts/PreLock.py
jstammers/EDMSuite
2841c0edef32a496855ca41deaa0f710b017ae2f
[ "MIT" ]
2
2020-09-27T09:19:57.000Z
2022-03-05T11:08:26.000Z
EDMScripts/PreLock.py
jstammers/EDMSuite
2841c0edef32a496855ca41deaa0f710b017ae2f
[ "MIT" ]
null
null
null
EDMScripts/PreLock.py
jstammers/EDMSuite
2841c0edef32a496855ca41deaa0f710b017ae2f
[ "MIT" ]
1
2020-05-11T12:26:46.000Z
2020-05-11T12:26:46.000Z
# Import a whole load of stuff from System.IO import * from System.Drawing import * from System.Runtime.Remoting import * from System.Threading import * from System.Windows.Forms import * from System.Xml.Serialization import * from System import * from Analysis.EDM import * from DAQ.Environment import * fro...
40.17052
133
0.720124
bc83bb284021753066ee62d894821a7b4433d3b1
25,260
py
Python
pyqtgraph/widgets/SpinBox.py
ltirrell/pyqtgraph
4a24598bcb631ecaf1140c44afba1e62be8ce1ab
[ "MIT" ]
1
2021-05-31T06:43:22.000Z
2021-05-31T06:43:22.000Z
pyqtgraph/widgets/SpinBox.py
ltirrell/pyqtgraph
4a24598bcb631ecaf1140c44afba1e62be8ce1ab
[ "MIT" ]
null
null
null
pyqtgraph/widgets/SpinBox.py
ltirrell/pyqtgraph
4a24598bcb631ecaf1140c44afba1e62be8ce1ab
[ "MIT" ]
1
2022-02-21T03:09:29.000Z
2022-02-21T03:09:29.000Z
# -*- coding: utf-8 -*- from math import isnan, isinf from decimal import Decimal as D ## Use decimal to avoid accumulating floating-point errors import decimal import weakref import re from ..Qt import QtGui, QtCore from ..python2_3 import asUnicode, basestring from ..SignalProxy import SignalProxy from .. import fu...
40.351438
150
0.529177
2ce448b625ee7cdd4e412298a98cdf3a784cce0b
1,204
py
Python
tools/nni_cmd/tests/test_config_validation.py
PeterouZh/nni
0a6c234a2ebb2c368d9bbfe2685e14ad12afc6ff
[ "MIT" ]
3
2021-01-05T07:41:58.000Z
2021-01-11T02:08:01.000Z
tools/nni_cmd/tests/test_config_validation.py
PeterouZh/nni
0a6c234a2ebb2c368d9bbfe2685e14ad12afc6ff
[ "MIT" ]
21
2020-11-13T19:01:01.000Z
2022-02-27T09:12:51.000Z
tools/nni_cmd/tests/test_config_validation.py
PeterouZh/nni
0a6c234a2ebb2c368d9bbfe2685e14ad12afc6ff
[ "MIT" ]
3
2020-10-23T02:53:47.000Z
2020-11-15T22:05:09.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import glob from unittest import TestCase, main from schema import SchemaError from nni_cmd.launcher_utils import validate_all_content from nni_cmd.nnictl_utils import get_yml_content from nni_cmd.common_utils import print_error, print_green cla...
37.625
104
0.682724
58add1431510fc60ed3de114499da9f7399097ac
16,501
py
Python
src/sage/combinat/words/lyndon_word.py
hsm207/sage
020bd59ec28717bfab9af44d2231c53da1ff99f1
[ "BSL-1.0" ]
1
2021-10-18T01:24:04.000Z
2021-10-18T01:24:04.000Z
src/sage/combinat/words/lyndon_word.py
hsm207/sage
020bd59ec28717bfab9af44d2231c53da1ff99f1
[ "BSL-1.0" ]
1
2020-04-18T16:30:43.000Z
2020-04-18T16:30:43.000Z
src/sage/combinat/words/lyndon_word.py
dimpase/sage
468f23815ade42a2192b0a9cd378de8fdc594dcd
[ "BSL-1.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Lyndon words """ # **************************************************************************** # Copyright (C) 2007 Mike Hansen <mhansen@gmail.com> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as publis...
28.255137
110
0.520756
6b6b655ecfc5fd296fcda8735939c173b960c850
4,048
py
Python
tools/python/post_generation/localads_mwm_to_csv.py
suke-blog/omim
f3e75dad4fc2f8c2ec6f3b48fe3841084f8831eb
[ "Apache-2.0" ]
null
null
null
tools/python/post_generation/localads_mwm_to_csv.py
suke-blog/omim
f3e75dad4fc2f8c2ec6f3b48fe3841084f8831eb
[ "Apache-2.0" ]
null
null
null
tools/python/post_generation/localads_mwm_to_csv.py
suke-blog/omim
f3e75dad4fc2f8c2ec6f3b48fe3841084f8831eb
[ "Apache-2.0" ]
null
null
null
import csv import ctypes import logging import os import sys from multiprocessing import Pool from multiprocessing import Process from multiprocessing import Queue from zlib import adler32 from mwm import MetadataField from mwm import Mwm from mwm.ft2osm import read_osm2ft HEADERS = { "mapping": "osmid fid mwm_id...
38.923077
92
0.585474
e464d69bfde3fff0c092fc04b84fa7564616374c
2,756
py
Python
PCR - Trend Statistics Model.py
baycelik/PCR---Trend-Statistics-Model
d35848623e9fc62f33583d8036b0cbfd25d3d53d
[ "Apache-2.0" ]
null
null
null
PCR - Trend Statistics Model.py
baycelik/PCR---Trend-Statistics-Model
d35848623e9fc62f33583d8036b0cbfd25d3d53d
[ "Apache-2.0" ]
null
null
null
PCR - Trend Statistics Model.py
baycelik/PCR---Trend-Statistics-Model
d35848623e9fc62f33583d8036b0cbfd25d3d53d
[ "Apache-2.0" ]
null
null
null
import numpy as np import pandas as pd import os for dirname, _, filenames in os.walk('/kaggle/input'): for filename in filenames: print(os.path.join(dirname, filename)) import pandas as pd import numpy as np from sklearn.metrics import mean_squared_error, r2_score from sklearn.linear_...
23.355932
95
0.698839
c29b55b49a3041e342e361b85396d1a2d13a61f4
487
py
Python
Algo and DSA/LeetCode-Solutions-master/Python/stone-game.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
3,269
2018-10-12T01:29:40.000Z
2022-03-31T17:58:41.000Z
Algo and DSA/LeetCode-Solutions-master/Python/stone-game.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
53
2018-12-16T22:54:20.000Z
2022-02-25T08:31:20.000Z
Algo and DSA/LeetCode-Solutions-master/Python/stone-game.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
1,236
2018-10-12T02:51:40.000Z
2022-03-30T13:30:37.000Z
# Time: O(n^2) # Space: O(n) class Solution(object): def stoneGame(self, piles): """ :type piles: List[int] :rtype: bool """ if len(piles) % 2 == 0 or len(piles) == 1: return True dp = [0] * len(piles) for i in reversed(xrange(len(piles))): ...
24.35
67
0.445585
e5573c1affe7d960706add0ada80f7d48d4d6c3f
272
py
Python
parsl/providers/cobalt/template.py
benclifford/parsl
21f8681882779050d2e074591e95ada43789748f
[ "Apache-2.0" ]
323
2017-07-28T21:31:27.000Z
2022-03-05T13:06:05.000Z
parsl/providers/cobalt/template.py
benclifford/parsl
21f8681882779050d2e074591e95ada43789748f
[ "Apache-2.0" ]
1,286
2017-06-01T16:50:00.000Z
2022-03-31T16:45:14.000Z
parsl/providers/cobalt/template.py
benclifford/parsl
21f8681882779050d2e074591e95ada43789748f
[ "Apache-2.0" ]
113
2017-06-03T11:38:40.000Z
2022-03-26T16:43:05.000Z
template_string = '''#!/bin/bash -e ${scheduler_options} ${worker_init} echo "Starting Cobalt job script" echo "----Cobalt Nodefile: -----" cat $$COBALT_NODEFILE echo "--------------------------" export JOBNAME="${jobname}" $user_script echo "End of Cobalt job" '''
15.111111
35
0.613971
147b7b70c1b998a01968f85c0573e7ce12bed907
4,638
py
Python
ietf/person/migrations/0004_populate_email_origin.py
hassanakbar4/ietfdb
cabee059092ae776015410640226064331c293b7
[ "BSD-3-Clause" ]
25
2022-03-05T08:26:52.000Z
2022-03-30T15:45:42.000Z
ietf/person/migrations/0004_populate_email_origin.py
hassanakbar4/ietfdb
cabee059092ae776015410640226064331c293b7
[ "BSD-3-Clause" ]
219
2022-03-04T17:29:12.000Z
2022-03-31T21:16:14.000Z
ietf/person/migrations/0004_populate_email_origin.py
hassanakbar4/ietfdb
cabee059092ae776015410640226064331c293b7
[ "BSD-3-Clause" ]
22
2022-03-04T15:34:34.000Z
2022-03-28T13:30:59.000Z
# Copyright The IETF Trust 2018-2020, All Rights Reserved # -*- coding: utf-8 -*- # Generated by Django 1.11.12 on 2018-05-10 05:28 import sys from django.db import migrations import debug # pyflakes:ignore def populate_email_origin(apps, schema_editor): Submission = apps.get_mo...
41.783784
115
0.581932
ff7f37b9b14a7f5886c2b7f0f21c3884634f40e6
2,619
py
Python
skcycling/tests/test_base.py
nogrets/scikit-cycling
8263fda28fa1f39711b5e011db0a59dbf3ac2520
[ "BSD-3-Clause" ]
19
2017-12-18T02:12:19.000Z
2022-02-07T23:12:10.000Z
skcycling/tests/test_base.py
nogrets/scikit-cycling
8263fda28fa1f39711b5e011db0a59dbf3ac2520
[ "BSD-3-Clause" ]
23
2017-12-17T21:18:41.000Z
2020-04-01T15:07:17.000Z
skcycling/tests/test_base.py
nogrets/scikit-cycling
8263fda28fa1f39711b5e011db0a59dbf3ac2520
[ "BSD-3-Clause" ]
3
2017-12-17T19:59:58.000Z
2021-07-11T13:26:39.000Z
# Authors: Guillaume Lemaitre <g.lemaitre58@gmail.com> # Cedric Lemaitre # License: BSD 3 clause import os import shutil from tempfile import mkdtemp import pytest from pandas.testing import assert_frame_equal from skcycling.base import Rider from skcycling.datasets import load_fit from skcycling.datasets i...
31.178571
73
0.697976
4ed01cc1940c688955354ac8e601eea68fd71fae
63
py
Python
tests/__init__.py
bio2bel/gwascatalog
79742addc700d2437690c37029a007d825f4fc19
[ "MIT" ]
null
null
null
tests/__init__.py
bio2bel/gwascatalog
79742addc700d2437690c37029a007d825f4fc19
[ "MIT" ]
null
null
null
tests/__init__.py
bio2bel/gwascatalog
79742addc700d2437690c37029a007d825f4fc19
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Tests for Bio2BEL GWAS Catalog."""
15.75
37
0.571429
1af8f936875089e07953e360566c60805b9c3975
5,053
py
Python
scripts/manual_control.py
ryanp543/agrobotarmcontrol
cf1bed8a2fb36e5d9c64039c20e3e4d6cea4a31c
[ "MIT" ]
null
null
null
scripts/manual_control.py
ryanp543/agrobotarmcontrol
cf1bed8a2fb36e5d9c64039c20e3e4d6cea4a31c
[ "MIT" ]
null
null
null
scripts/manual_control.py
ryanp543/agrobotarmcontrol
cf1bed8a2fb36e5d9c64039c20e3e4d6cea4a31c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import time import numpy as np import rospy import pygame from std_msgs.msg import String from agrobot_arm_v2.msg import FloatList from struct import * HOST = "localhost" PORT = 4223 UID_step = "6yJzPW" # Motor settings POS_MIN_STEP = 0.02 # Minimum step to be taken b...
33.243421
126
0.621413
bf0abca414821ed8239e1d68db9a579103bb6952
19,479
py
Python
Python/Test/NSRDB_Data_Processing.py
crouchc/SmartCommunityPlantModel
32872cd77bac721500367762b1d30478c25cf37f
[ "MIT" ]
null
null
null
Python/Test/NSRDB_Data_Processing.py
crouchc/SmartCommunityPlantModel
32872cd77bac721500367762b1d30478c25cf37f
[ "MIT" ]
null
null
null
Python/Test/NSRDB_Data_Processing.py
crouchc/SmartCommunityPlantModel
32872cd77bac721500367762b1d30478c25cf37f
[ "MIT" ]
1
2022-01-14T14:23:05.000Z
2022-01-14T14:23:05.000Z
#Conversion of WeatherData_Extractor from matlab to python # Author: Chris Crouch and Ninad Gaikwad import sys import os import numpy as np import pandas as pd import datetime from scipy.io import savemat sys.path.append(os.getcwd()) #Need to put path of CodesFromSwefaConverted in order to run from CodeFrom_SWEEFA...
39.753061
169
0.631655
9ba2affef0382c846c433c530a4be5a03665ff96
103
py
Python
automatisation/apps.py
LSSTDESC/tom-marshall
18572b1c3474c22b72acdcd8634aa1020e8e8d57
[ "BSD-3-Clause" ]
null
null
null
automatisation/apps.py
LSSTDESC/tom-marshall
18572b1c3474c22b72acdcd8634aa1020e8e8d57
[ "BSD-3-Clause" ]
null
null
null
automatisation/apps.py
LSSTDESC/tom-marshall
18572b1c3474c22b72acdcd8634aa1020e8e8d57
[ "BSD-3-Clause" ]
null
null
null
from django.apps import AppConfig class AutomatisationConfig(AppConfig): name = 'automatisation'
17.166667
38
0.786408
612eddb160745325060fb9218700f04f6e2d7cd5
114
py
Python
tests/test_files/weird_annotations.py
michael-k/flake8-annotations-complexity
c555f6fd7dcb5aab72c5f8374325ccf16a7a24f4
[ "MIT" ]
37
2019-02-07T14:26:04.000Z
2022-03-03T14:59:58.000Z
tests/test_files/weird_annotations.py
michael-k/flake8-annotations-complexity
c555f6fd7dcb5aab72c5f8374325ccf16a7a24f4
[ "MIT" ]
17
2019-02-26T10:10:47.000Z
2021-12-01T00:24:46.000Z
tests/test_files/weird_annotations.py
michael-k/flake8-annotations-complexity
c555f6fd7dcb5aab72c5f8374325ccf16a7a24f4
[ "MIT" ]
10
2019-03-23T06:54:52.000Z
2021-02-19T16:33:38.000Z
def foo(a: None, b: 1) -> 'String Annontation': # PEP 3107 allows any expressions in type annotations pass
22.8
102
0.684211
d3a19f049ea78902cc2705fa6f191e0ec21268d1
4,156
py
Python
fkie_node_manager_daemon/src/fkie_node_manager_daemon/screen_stub.py
stertingen/multimaster_fkie
95c2f5fae71c8337cc18b02db4e529b6900a91b2
[ "BSD-3-Clause" ]
1
2021-12-17T17:16:52.000Z
2021-12-17T17:16:52.000Z
fkie_node_manager_daemon/src/fkie_node_manager_daemon/screen_stub.py
stertingen/multimaster_fkie
95c2f5fae71c8337cc18b02db4e529b6900a91b2
[ "BSD-3-Clause" ]
null
null
null
fkie_node_manager_daemon/src/fkie_node_manager_daemon/screen_stub.py
stertingen/multimaster_fkie
95c2f5fae71c8337cc18b02db4e529b6900a91b2
[ "BSD-3-Clause" ]
null
null
null
# Software License Agreement (BSD License) # # Copyright (c) 2018, Fraunhofer FKIE/CMS, Alexander Tiderko # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code mu...
39.580952
90
0.696583
dd4a76afde18277e9dbba55908eb80dccfe0ea04
1,114
py
Python
cultural/forms.py
jperaltar/2015-sat-pfinal
08c213164905e812532ab42be8cf6c47e7e63ea3
[ "Apache-2.0" ]
null
null
null
cultural/forms.py
jperaltar/2015-sat-pfinal
08c213164905e812532ab42be8cf6c47e7e63ea3
[ "Apache-2.0" ]
null
null
null
cultural/forms.py
jperaltar/2015-sat-pfinal
08c213164905e812532ab42be8cf6c47e7e63ea3
[ "Apache-2.0" ]
null
null
null
from django import forms COLORS_CHOICES = (('aqua', 'Aqua'), ('green', 'Green'), ('red', 'Red'), ('white', 'White')) CHOICES = (('Gratuito', 'Gratuito'), ('2 euros', '2 euros'), ('5 euros', '5 euros')) class LoginForm(forms.Form): ...
42.846154
108
0.675045
6fa562150d4736f382752c21a56c05ac82b76931
2,425
py
Python
docs/examples/335_autotune_example.py
lakeshorecryotronics/python-driver
03e4dff76b1758296e345af4a23069ba218aa8df
[ "MIT" ]
6
2019-02-21T17:24:42.000Z
2022-03-07T17:46:02.000Z
docs/examples/335_autotune_example.py
lakeshorecryotronics/python-driver
03e4dff76b1758296e345af4a23069ba218aa8df
[ "MIT" ]
3
2020-11-30T23:41:38.000Z
2022-03-04T15:05:20.000Z
docs/examples/335_autotune_example.py
lakeshorecryotronics/python-driver
03e4dff76b1758296e345af4a23069ba218aa8df
[ "MIT" ]
null
null
null
from lakeshore import Model335 from lakeshore.model_335 import Model335DisplaySetup, Model335HeaterResistance, \ Model335HeaterOutputDisplay, Model335HeaterRange, Model335AutoTuneMode, Model335HeaterError from time import sleep # Connect to the first available Model 335 temperature controller over USB using a baud...
45.754717
113
0.808247
bac9ce4c078dc46f6a0cec6b4482b9c5008acf76
5,496
py
Python
catalyst/metrics/_map.py
sergunya17/catalyst
f98d71138c09cd1b5a69b788cb5006115f5c7fda
[ "Apache-2.0" ]
2,693
2019-01-23T19:16:12.000Z
2022-03-31T02:12:42.000Z
catalyst/metrics/_map.py
sergunya17/catalyst
f98d71138c09cd1b5a69b788cb5006115f5c7fda
[ "Apache-2.0" ]
763
2019-01-22T20:12:56.000Z
2022-03-27T18:36:10.000Z
catalyst/metrics/_map.py
sergunya17/catalyst
f98d71138c09cd1b5a69b788cb5006115f5c7fda
[ "Apache-2.0" ]
445
2019-01-23T17:07:09.000Z
2022-03-30T05:38:45.000Z
from typing import Iterable from catalyst.metrics._topk_metric import TopKMetric from catalyst.metrics.functional._average_precision import mean_average_precision class MAPMetric(TopKMetric): """ Calculates the Mean Average Precision (MAP) for RecSys. The precision metric summarizes the fraction of relev...
33.925926
95
0.536754
fbf672c992aea77ce6c1fee46914d71a519f0190
261
py
Python
ttracker/model/messages/edictal_message.py
lmeilibr/ttracker
a06cc0876fb1898cc45b168d7d87f37089900dae
[ "MIT" ]
null
null
null
ttracker/model/messages/edictal_message.py
lmeilibr/ttracker
a06cc0876fb1898cc45b168d7d87f37089900dae
[ "MIT" ]
null
null
null
ttracker/model/messages/edictal_message.py
lmeilibr/ttracker
a06cc0876fb1898cc45b168d7d87f37089900dae
[ "MIT" ]
null
null
null
class EdictalMessage: def __init__(self, content): self.system_seats_ids = content['systemSeatIds'] self.msg_id = content['msgId'] self.game_state_id = content['gameStateId'] self.edictal_message = content['edictalMessage']
32.625
56
0.681992