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
48d433d2eef1def8671d48845197a3a897af756f
2,242
py
Python
qiskit/test/mock/backends/boeblingen/fake_boeblingen.py
romainfd/qiskit-terra
b5285ccc5cb1d17b7c73402833f2750b93652426
[ "Apache-2.0" ]
2
2020-12-26T21:12:30.000Z
2021-05-18T12:53:42.000Z
qiskit/test/mock/backends/boeblingen/fake_boeblingen.py
romainfd/qiskit-terra
b5285ccc5cb1d17b7c73402833f2750b93652426
[ "Apache-2.0" ]
1
2020-03-29T19:57:14.000Z
2020-03-29T21:49:25.000Z
qiskit/test/mock/backends/boeblingen/fake_boeblingen.py
romainfd/qiskit-terra
b5285ccc5cb1d17b7c73402833f2750b93652426
[ "Apache-2.0" ]
1
2020-07-13T17:56:46.000Z
2020-07-13T17:56:46.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...
33.462687
77
0.610169
cd513aa3055be59ab3bd7838923516a9f8ad3f01
382
py
Python
credentials.sample.py
Lincest/Badminton-Due
09be77c7ce2edba923bab9d39fea4e377377f777
[ "Apache-2.0" ]
1
2020-10-14T15:14:16.000Z
2020-10-14T15:14:16.000Z
credentials.sample.py
Lincest/Badminton-Due
09be77c7ce2edba923bab9d39fea4e377377f777
[ "Apache-2.0" ]
null
null
null
credentials.sample.py
Lincest/Badminton-Due
09be77c7ce2edba923bab9d39fea4e377377f777
[ "Apache-2.0" ]
null
null
null
# 填写完毕后文件名改为credentials.py class Credentials(): def __init__(self): self.IDS_USERNAME = "" # 学号 self.IDS_PASSWORD = "" # 一站式登录密码 self.phone = "13000000000" # 手机电话 self.stu_name_1 = "张三" # 你的名字 self.stu_id_1 = self.IDS_USERNAME # 你的学号 self.stu_name_2 = "1800000000...
31.833333
49
0.604712
cc23a7d6dd6d6440a0b18f1bbd0fa52f323f4e38
2,160
py
Python
doc/source/TCP.py
sunrise-cubesat/AIT-DSN
6c600c2a585a373aa9e2290842a4f412469810f4
[ "MIT" ]
null
null
null
doc/source/TCP.py
sunrise-cubesat/AIT-DSN
6c600c2a585a373aa9e2290842a4f412469810f4
[ "MIT" ]
null
null
null
doc/source/TCP.py
sunrise-cubesat/AIT-DSN
6c600c2a585a373aa9e2290842a4f412469810f4
[ "MIT" ]
null
null
null
AIT SLE User Guide ================== The TCP forwarding plugin facilitates forwarding pipeline data over TCP. The plugin can be configured for an arbitrary number of server or clients for each PUB/SUB topic. Configuration ^^^^^^^^^^^^^ Customize the template within the config.yaml plugin block: .. code-block:: non...
39.272727
155
0.642593
b1323d6b4b1ac193f86107fe058b9879206da881
3,368
py
Python
plugins/hello_world/hello_world_filter.py
Kitware/VAIME
47b24b9d8a208cf8c621e5bb1088c61fcf507af6
[ "BSD-3-Clause" ]
127
2019-05-23T10:05:25.000Z
2022-03-28T05:14:11.000Z
plugins/hello_world/hello_world_filter.py
Kitware/VAIME
47b24b9d8a208cf8c621e5bb1088c61fcf507af6
[ "BSD-3-Clause" ]
39
2019-06-18T21:44:58.000Z
2022-01-12T14:47:01.000Z
plugins/hello_world/hello_world_filter.py
Kitware/VAIME
47b24b9d8a208cf8c621e5bb1088c61fcf507af6
[ "BSD-3-Clause" ]
40
2016-08-23T21:44:17.000Z
2019-04-20T23:39:53.000Z
#ckwg +28 # Copyright 2017 by Kitware, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, # this list of conditio...
40.095238
80
0.683492
0df0a81ec8b1473fb270de74e66e58e87dabfece
2,519
py
Python
setup.py
RhinosF1/google-auth-library-python
c556f6fcc131f496ac3ec2ea50f2f61cefc34b9f
[ "Apache-2.0" ]
null
null
null
setup.py
RhinosF1/google-auth-library-python
c556f6fcc131f496ac3ec2ea50f2f61cefc34b9f
[ "Apache-2.0" ]
null
null
null
setup.py
RhinosF1/google-auth-library-python
c556f6fcc131f496ac3ec2ea50f2f61cefc34b9f
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
34.986111
82
0.650655
8e1c73196f7c76fb73088c3f1a2f86898018cf92
10,673
py
Python
lvsfunc/util.py
RivenSkaye/lvsfunc
8e284b1a9c0fa670b614bcb7f42cb48144d1a67b
[ "MIT" ]
null
null
null
lvsfunc/util.py
RivenSkaye/lvsfunc
8e284b1a9c0fa670b614bcb7f42cb48144d1a67b
[ "MIT" ]
null
null
null
lvsfunc/util.py
RivenSkaye/lvsfunc
8e284b1a9c0fa670b614bcb7f42cb48144d1a67b
[ "MIT" ]
null
null
null
""" Helper functions for module functions and wrapper. Some of these may also be useful for regular scripting or other modules. """ from __future__ import annotations from typing import Any, Callable, List, Sequence, Tuple, Type, TypeVar, Union import vapoursynth as vs from vsutil import (depth, disallow_vari...
33.990446
111
0.625597
28397bef3f7fe6bef8a42ce9f589b3990189d6aa
1,795
py
Python
src/backend/web/handlers/tests/conftest.py
guineawheek/ftc-data-take-2
337bff2077eadb3bd6bbebd153cbb6181c99516f
[ "MIT" ]
null
null
null
src/backend/web/handlers/tests/conftest.py
guineawheek/ftc-data-take-2
337bff2077eadb3bd6bbebd153cbb6181c99516f
[ "MIT" ]
null
null
null
src/backend/web/handlers/tests/conftest.py
guineawheek/ftc-data-take-2
337bff2077eadb3bd6bbebd153cbb6181c99516f
[ "MIT" ]
null
null
null
import pytest @pytest.fixture def setup_full_team(test_data_importer) -> None: test_data_importer.import_team(__file__, "data/frc148.json") test_data_importer.import_event_list( __file__, "data/frc148_events_2019.json", "frc148" ) test_data_importer.import_match_list(__file__, "data/frc148_mat...
35.196078
88
0.748189
002a0b5b44bf504da15814b44221ec339eedf3ba
540
py
Python
venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/raw/GL/EXT/rescale_normal.py
temelkirci/Motion_Editor
a8b8d4c4d2dcc9be28385600f56066cef92a38ad
[ "MIT" ]
1
2022-03-02T17:07:20.000Z
2022-03-02T17:07:20.000Z
venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/raw/GL/EXT/rescale_normal.py
temelkirci/RealTime_6DOF_Motion_Editor
a8b8d4c4d2dcc9be28385600f56066cef92a38ad
[ "MIT" ]
null
null
null
venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/raw/GL/EXT/rescale_normal.py
temelkirci/RealTime_6DOF_Motion_Editor
a8b8d4c4d2dcc9be28385600f56066cef92a38ad
[ "MIT" ]
null
null
null
'''OpenGL extension EXT.rescale_normal Automatically generated by the get_gl_extensions script, do not edit! ''' from OpenGL import platform, constants, constant, arrays from OpenGL import extensions from OpenGL.GL import glget import ctypes EXTENSION_NAME = 'GL_EXT_rescale_normal' _DEPRECATED = False GL_RESCALE_NORMA...
31.764706
76
0.809259
c0a7ff9f8d5c5cd2e35e9c1ee5a982027091e39b
1,316
py
Python
manager.py
flaxandteal/dp-conceptual-search
16c6383a61ba5b7069337c2626a0dc243bfe9d35
[ "MIT" ]
3
2018-05-10T16:49:27.000Z
2022-03-29T15:23:04.000Z
manager.py
flaxandteal/dp-conceptual-search
16c6383a61ba5b7069337c2626a0dc243bfe9d35
[ "MIT" ]
2
2018-09-20T06:37:27.000Z
2018-11-12T12:05:08.000Z
manager.py
flaxandteal/dp-conceptual-search
16c6383a61ba5b7069337c2626a0dc243bfe9d35
[ "MIT" ]
3
2018-06-25T10:48:43.000Z
2021-04-11T08:01:27.000Z
import os import sys from subprocess import check_output from dp_conceptual_search.app.app import create_app from dp4py_sanic.api.protocol.ons_http_protocol import ONSHttpProtocol def test(): """ Launches unit tests :return: """ print( check_output(['nosetests', '-v'...
28.608696
88
0.600304
07977855604a71287d210d29d679498216906ef4
4,842
py
Python
test/functional/wallet_reorgsrestore.py
fpanettieri/bitcoin
1189b6acab115a7fe7bd67f8b4c6e3f55e53274e
[ "MIT" ]
1
2021-03-17T08:24:51.000Z
2021-03-17T08:24:51.000Z
test/functional/wallet_reorgsrestore.py
fpanettieri/bitcoin
1189b6acab115a7fe7bd67f8b4c6e3f55e53274e
[ "MIT" ]
null
null
null
test/functional/wallet_reorgsrestore.py
fpanettieri/bitcoin
1189b6acab115a7fe7bd67f8b4c6e3f55e53274e
[ "MIT" ]
4
2018-05-16T09:52:06.000Z
2018-05-17T07:14:48.000Z
#!/usr/bin/env python3 # Copyright (c) 2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test tx status in case of reorgs while wallet being shutdown. Wallet txn status rely on block connection/d...
45.252336
144
0.699298
0004e3b4b968d2fd2baad670d2cd74ed2433f445
283,509
py
Python
src/sage/combinat/partition.py
swewers/mein_sage
0e4e2d14aab0a1a2e63292939a9baa997f0e986b
[ "BSL-1.0" ]
null
null
null
src/sage/combinat/partition.py
swewers/mein_sage
0e4e2d14aab0a1a2e63292939a9baa997f0e986b
[ "BSL-1.0" ]
1
2020-04-18T16:30:43.000Z
2020-04-18T16:30:43.000Z
src/sage/combinat/partition.py
dimpase/sage
468f23815ade42a2192b0a9cd378de8fdc594dcd
[ "BSL-1.0" ]
null
null
null
# -*- coding: utf-8 -*- r""" Integer partitions A partition `p` of a nonnegative integer `n` is a non-increasing list of positive integers (the *parts* of the partition) with total sum `n`. A partition can be depicted by a diagram made of rows of cells, where the number of cells in the `i^{th}` row starting from the ...
32.194981
355
0.506121
7c213e6cb69d098604bf0835e3ea1c318af1588e
10,546
py
Python
hoomd/integrate.py
kmoskovtsev/HOOMD-Blue-fork
99560563a5ba9e082b513764bae51a84f48fdc70
[ "BSD-3-Clause" ]
null
null
null
hoomd/integrate.py
kmoskovtsev/HOOMD-Blue-fork
99560563a5ba9e082b513764bae51a84f48fdc70
[ "BSD-3-Clause" ]
null
null
null
hoomd/integrate.py
kmoskovtsev/HOOMD-Blue-fork
99560563a5ba9e082b513764bae51a84f48fdc70
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2009-2016 The Regents of the University of Michigan # This file is part of the HOOMD-blue project, released under the BSD 3-Clause License. # Maintainer: joaander / All Developers are free to add commands for new features ## \package hoomd.integrate # \brief Commands that integrate the equations of mo...
39.796226
121
0.687085
e38ad8a4ab24f7ce8ef7cfca494f5c5602e44bba
392
py
Python
config/wsgi.py
jackxu-eb/hello-umi
7ad6482cf2e130474ee0330d2581cee423c7b7aa
[ "MIT" ]
null
null
null
config/wsgi.py
jackxu-eb/hello-umi
7ad6482cf2e130474ee0330d2581cee423c7b7aa
[ "MIT" ]
null
null
null
config/wsgi.py
jackxu-eb/hello-umi
7ad6482cf2e130474ee0330d2581cee423c7b7aa
[ "MIT" ]
null
null
null
""" WSGI config for hello_umi project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SET...
23.058824
78
0.785714
e482d58e2bdaa536968b34194d4de9c11e965a00
17,574
py
Python
main.py
thanassi360/grimoire-guide
b777fddf1a285c04af48e22ba165e43fc74b37cb
[ "MIT" ]
1
2016-04-12T23:00:13.000Z
2016-04-12T23:00:13.000Z
main.py
thanassi360/grimoire-guide
b777fddf1a285c04af48e22ba165e43fc74b37cb
[ "MIT" ]
null
null
null
main.py
thanassi360/grimoire-guide
b777fddf1a285c04af48e22ba165e43fc74b37cb
[ "MIT" ]
null
null
null
import webapp2 import urllib2 import json import re import datetime from uuid import uuid4 from api_data import * from google.appengine.ext import ndb from google.appengine.api import users class TimeEncoder(json.JSONEncoder): # Defines time format def default(self, obj): if isinstance(obj, datetime.date...
44.267003
123
0.53141
9cfd2ea0e6f55b474e2a5939cee65dca74cc8453
1,258
py
Python
DataValidation.py
Minituff/SSH-Tools
0998db5b462b09779a0f02c886caca95989e0dee
[ "MIT" ]
null
null
null
DataValidation.py
Minituff/SSH-Tools
0998db5b462b09779a0f02c886caca95989e0dee
[ "MIT" ]
null
null
null
DataValidation.py
Minituff/SSH-Tools
0998db5b462b09779a0f02c886caca95989e0dee
[ "MIT" ]
null
null
null
import re def is_valid_ipv4(address): # Validates IPv4 addresses. pattern = re.compile(r""" (?: # Dotted variants: (?: # Decimal 1-255 (no leading 0's) [3-9]\d?|2(?:5[0-5]|[0-4]?\d)?|1\d{0,2} | 0x0*[0-9a-f]{1,2} # Hexadecimal 0...
33.105263
79
0.399046
5d4628242bf76a5c65726daeb094e5c313d13c58
2,671
py
Python
zhaquirks/xiaomi/mija/motion.py
peterVorman/zha-device-handlers
a2ab1ffd866d2b3b640e2b4b2a8b93bef98d6747
[ "Apache-2.0" ]
null
null
null
zhaquirks/xiaomi/mija/motion.py
peterVorman/zha-device-handlers
a2ab1ffd866d2b3b640e2b4b2a8b93bef98d6747
[ "Apache-2.0" ]
null
null
null
zhaquirks/xiaomi/mija/motion.py
peterVorman/zha-device-handlers
a2ab1ffd866d2b3b640e2b4b2a8b93bef98d6747
[ "Apache-2.0" ]
null
null
null
"""Xiaomi mija body sensor.""" import logging from zigpy.profiles import zha from zigpy.zcl.clusters.general import ( Basic, Groups, Identify, LevelControl, OnOff, Ota, Scenes, ) from .. import ( LUMI, XIAOMI_NODE_DESC, BasicCluster, MotionCluster, OccupancyCluster, ...
25.932039
67
0.508798
60b31eccfd38be1a07c6707b24c55231d11de9d8
2,364
py
Python
src/features/pca_latent_space_feature.py
hyzhak/zalando-research-fashionmnist-analyze
5dfff74f80982769c7ffae746abc58fc7113113b
[ "MIT" ]
1
2020-05-29T22:04:52.000Z
2020-05-29T22:04:52.000Z
src/features/pca_latent_space_feature.py
hyzhak/zalando-research-fashionmnist-analyze
5dfff74f80982769c7ffae746abc58fc7113113b
[ "MIT" ]
null
null
null
src/features/pca_latent_space_feature.py
hyzhak/zalando-research-fashionmnist-analyze
5dfff74f80982769c7ffae746abc58fc7113113b
[ "MIT" ]
null
null
null
import luigi import os import pandas as pd from sklearn.decomposition import PCA import numpy as np from src.features.latent_space_features import LatentSpaceFeature from src.utils.params_to_filename import get_task_path # should I use @inherits instead? # https://luigi.readthedocs.io/en/stable/api/luigi.util.html c...
29.185185
73
0.56176
1bea4fc2ce5b14ef5515ab89a63ba2ae3a08bad5
188
py
Python
inbm/dispatcher-agent/dispatcher/aota/aota_error.py
ahameedx/intel-inb-manageability
aca445fa4cef0b608e6e88e74476547e10c06073
[ "Apache-2.0" ]
5
2021-12-13T21:19:31.000Z
2022-01-18T18:29:43.000Z
inbm/dispatcher-agent/dispatcher/aota/aota_error.py
ahameedx/intel-inb-manageability
aca445fa4cef0b608e6e88e74476547e10c06073
[ "Apache-2.0" ]
45
2021-12-30T17:21:09.000Z
2022-03-29T22:47:32.000Z
inbm/dispatcher-agent/dispatcher/aota/aota_error.py
ahameedx/intel-inb-manageability
aca445fa4cef0b608e6e88e74476547e10c06073
[ "Apache-2.0" ]
4
2022-01-26T17:42:54.000Z
2022-03-30T04:48:04.000Z
""" AOTA update tool Copyright (C) 2017-2022 Intel Corporation SPDX-License-Identifier: Apache-2.0 """ class AotaError(Exception): """Class exception Module""" pass
15.666667
45
0.659574
e62bf9c1c48ac3d4453239297c66b473411e5568
3,685
py
Python
as11fixity.py
joshuatj/IFIscripts
2817d53f82a447bb4cbb84bdbc7a87b9b2506de5
[ "MIT" ]
null
null
null
as11fixity.py
joshuatj/IFIscripts
2817d53f82a447bb4cbb84bdbc7a87b9b2506de5
[ "MIT" ]
null
null
null
as11fixity.py
joshuatj/IFIscripts
2817d53f82a447bb4cbb84bdbc7a87b9b2506de5
[ "MIT" ]
1
2020-07-09T06:14:31.000Z
2020-07-09T06:14:31.000Z
''' WORK IN PROGRESS WORKSHOP SCRIPT!!! ''' import sys import subprocess import os from glob import glob import csv from lxml import etree import hashlib #1 starting_dir = sys.argv[1] #2 csv_report_filename = os.path.basename(starting_dir) + "_report" csv_report = os.path.expanduser("~/Desktop/%s.csv") % csv_report_...
27.296296
119
0.664858
25a12ec62f574552fae1f71a467f458e2e9aaf5c
345
py
Python
py/cn/config.py
sonya/eea
b09502354eb6ce7975a21aa97dd3c812852b0626
[ "Apache-2.0" ]
1
2020-08-12T19:42:45.000Z
2020-08-12T19:42:45.000Z
py/cn/config.py
sonya/eea
b09502354eb6ce7975a21aa97dd3c812852b0626
[ "Apache-2.0" ]
null
null
null
py/cn/config.py
sonya/eea
b09502354eb6ce7975a21aa97dd3c812852b0626
[ "Apache-2.0" ]
null
null
null
# # 33 sector io tables exist for 1987, 1990, 1992, 1995 # 40 sectors for 1997 # 17 sectors for 2000 # 42 and 122 sectors for 2002 # 42 sectors for 2005 # for 2007: # 42 sectors (010* - io, 020* - intemediate only, 030* - supply/use) # 135 sectors (040*) # # env tables: 1999, 2003-2009 inclusive SCHEMA = "cn" STU...
20.294118
70
0.669565
dad119814ce9591a60c63dabefdc6e0f9a132154
482
py
Python
2020/day03/one.py
geberl/advent-of-code
152ac94676830ac920bf06a1a3f1aa88377cd775
[ "MIT" ]
null
null
null
2020/day03/one.py
geberl/advent-of-code
152ac94676830ac920bf06a1a3f1aa88377cd775
[ "MIT" ]
null
null
null
2020/day03/one.py
geberl/advent-of-code
152ac94676830ac920bf06a1a3f1aa88377cd775
[ "MIT" ]
null
null
null
tree_count = 0 with open("input.txt") as file_handler: for n, line in enumerate(file_handler): if n == 0: continue if len(line.strip()) == 0: continue charPos = n*3 if charPos > len(line.strip()): multiples = int(charPos / len(line.strip())) ...
22.952381
63
0.518672
ee4ba67a3b6574de943abf4f79dcd139404de52e
5,984
py
Python
src/python/pants/backend/jvm/tasks/bundle_create.py
areitz/pants
9bfb3feb0272c05f36e190c9147091b97ee1950d
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/jvm/tasks/bundle_create.py
areitz/pants
9bfb3feb0272c05f36e190c9147091b97ee1950d
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/jvm/tasks/bundle_create.py
areitz/pants
9bfb3feb0272c05f36e190c9147091b97ee1950d
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import os from twit...
40.707483
104
0.68516
b474a116d7251fa2ed16be8606e871bba1c8f205
9,156
py
Python
transformer/model_concat.py
muqiaoy/dl_signal
3a30d14982016644bfc96a7d1ca0109b441f17fd
[ "MIT" ]
54
2019-10-24T06:32:07.000Z
2022-03-23T01:56:10.000Z
transformer/model_concat.py
muqiaoy/dl_signal
3a30d14982016644bfc96a7d1ca0109b441f17fd
[ "MIT" ]
null
null
null
transformer/model_concat.py
muqiaoy/dl_signal
3a30d14982016644bfc96a7d1ca0109b441f17fd
[ "MIT" ]
6
2019-10-24T06:17:54.000Z
2021-07-12T01:54:48.000Z
import os,sys,inspect currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) parentdir = os.path.dirname(currentdir) sys.path.insert(0,parentdir) import torch from torch import nn import torch.nn.functional as F import numpy as np from modules.transformer import TransformerConcatEncode...
41.808219
193
0.614788
52a5b34cd25e768bd8552fdcff40d6f2726eaebd
910
py
Python
run.py
RafaelCenzano/backer
695607462e1362307986c2d3c34dfbb2b1a816cd
[ "Apache-2.0" ]
null
null
null
run.py
RafaelCenzano/backer
695607462e1362307986c2d3c34dfbb2b1a816cd
[ "Apache-2.0" ]
null
null
null
run.py
RafaelCenzano/backer
695607462e1362307986c2d3c34dfbb2b1a816cd
[ "Apache-2.0" ]
null
null
null
import os import backer import config import logging import datetime from time import sleep as delay ''' Run file ''' # Create config object configurations = config.Config() # create logger logger = logging.getLogger(__name__) # create console and file handler term = logging.StreamHandler() logfile = logging.FileHa...
22.75
115
0.758242
c260940d982de86c357fc3989b6bb79cf3e90664
1,145
py
Python
google/ads/googleads/v8/googleads-py/google/ads/googleads/v8/errors/types/currency_code_error.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
7
2021-02-21T10:39:41.000Z
2021-12-07T07:31:28.000Z
google/ads/googleads/v8/googleads-py/google/ads/googleads/v8/errors/types/currency_code_error.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
6
2021-02-02T23:46:11.000Z
2021-11-15T01:46:02.000Z
google/ads/googleads/v8/googleads-py/google/ads/googleads/v8/errors/types/currency_code_error.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
4
2021-01-28T23:25:45.000Z
2021-08-30T01:55:16.000Z
# -*- coding: utf-8 -*- # 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...
29.358974
74
0.710917
140047202fea270ea19be6ab36957ba3d908ad7b
2,866
py
Python
BaseGame.py
DariHernandez/sports-scraper
15a535d7f42e514551122edd46c5fd045804f0ef
[ "MIT" ]
null
null
null
BaseGame.py
DariHernandez/sports-scraper
15a535d7f42e514551122edd46c5fd045804f0ef
[ "MIT" ]
null
null
null
BaseGame.py
DariHernandez/sports-scraper
15a535d7f42e514551122edd46c5fd045804f0ef
[ "MIT" ]
null
null
null
import datetime class BaseGame(object): def __init__( self, home: str, away: str, home_odds: int, away_odds: int ): self.home_team = home self.away_team = away self.key = f"{away}@{home}" self.home_odds = home_odds self.away_odds = away_odds self.game_d...
29.244898
100
0.591068
14223e4ffcfce0d251f9f3d6a1c567f48de98f33
3,920
py
Python
selfdrive/car/car_helpers.py
johnwaynerobot/openpilot
b63de593824562b35e08f15b31a762e76b062640
[ "MIT" ]
null
null
null
selfdrive/car/car_helpers.py
johnwaynerobot/openpilot
b63de593824562b35e08f15b31a762e76b062640
[ "MIT" ]
null
null
null
selfdrive/car/car_helpers.py
johnwaynerobot/openpilot
b63de593824562b35e08f15b31a762e76b062640
[ "MIT" ]
1
2018-09-05T16:29:40.000Z
2018-09-05T16:29:40.000Z
import os import time from common.basedir import BASEDIR from common.realtime import sec_since_boot from common.fingerprints import eliminate_incompatible_cars, all_known_cars from selfdrive.swaglog import cloudlog import selfdrive.messaging as messaging def load_interfaces(x): ret = {} for interface in x: try...
34.385965
108
0.703316
185c5c72c2f8c35a766736de4b61be79b81b7d01
135
py
Python
GUI.py
Mostafa-Shalaby/PyATM
f0e7cac15df03c8cd4492ed87e8dfe34a82337ff
[ "MIT" ]
null
null
null
GUI.py
Mostafa-Shalaby/PyATM
f0e7cac15df03c8cd4492ed87e8dfe34a82337ff
[ "MIT" ]
null
null
null
GUI.py
Mostafa-Shalaby/PyATM
f0e7cac15df03c8cd4492ed87e8dfe34a82337ff
[ "MIT" ]
null
null
null
# Imports Interface and tkinter modules from Interface.AppWindow import Window # Run this code to see magic happen Window().mainloop()
27
39
0.8
0808f6a03b7ca683638e419173ce6d0f18ae8669
3,123
py
Python
Project/serve/predict.py
kawano8811/sagemaker-deployment
d9647cf4cf3015ee337b4d9275cb2de2bf3e9cd6
[ "MIT" ]
null
null
null
Project/serve/predict.py
kawano8811/sagemaker-deployment
d9647cf4cf3015ee337b4d9275cb2de2bf3e9cd6
[ "MIT" ]
null
null
null
Project/serve/predict.py
kawano8811/sagemaker-deployment
d9647cf4cf3015ee337b4d9275cb2de2bf3e9cd6
[ "MIT" ]
null
null
null
import argparse import json import os import pickle import sys import sagemaker_containers import pandas as pd import numpy as np import torch import torch.nn as nn import torch.optim as optim import torch.utils.data from model import LSTMClassifier from utils import review_to_words, convert_and_pad def model_fn(mod...
33.945652
107
0.701889
d7541a3d3a27732cba56d41f43273251c89fc3f0
1,728
py
Python
app/middleware/correlation.py
uptimedog/Roadmap
e6cebe70c53041799343505aa296af939371a3da
[ "Apache-2.0" ]
1
2022-01-26T10:04:00.000Z
2022-01-26T10:04:00.000Z
app/middleware/correlation.py
uptimedog/Roadmap
e6cebe70c53041799343505aa296af939371a3da
[ "Apache-2.0" ]
57
2021-06-12T23:28:50.000Z
2022-03-25T09:27:43.000Z
app/middleware/correlation.py
uptimedog/roadmap
57b68eaace463a99cfac151bff75e4baee2edaa0
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Uptimedog # # 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 agreed to in writing, s...
24.685714
74
0.677083
e114f2177c44058cb78c0b7696986470533d86ed
459
py
Python
src/rapidpro_community_portal/apps/portal_pages/migrations/0017_auto_20150504_1517.py
rapidpro/rapidpro-community-portal
db86e757a24888bebc4d30f451189a2b743396da
[ "Apache-2.0" ]
19
2015-09-15T09:17:54.000Z
2021-07-13T06:09:49.000Z
src/rapidpro_community_portal/apps/portal_pages/migrations/0017_auto_20150504_1517.py
rapidpro/rapidpro-community-portal
db86e757a24888bebc4d30f451189a2b743396da
[ "Apache-2.0" ]
222
2015-03-13T15:52:20.000Z
2021-04-08T19:18:41.000Z
src/rapidpro_community_portal/apps/portal_pages/migrations/0017_auto_20150504_1517.py
rapidpro/rapidpro-community-portal
db86e757a24888bebc4d30f451189a2b743396da
[ "Apache-2.0" ]
11
2016-03-01T19:56:52.000Z
2021-07-04T22:42:14.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('portal_pages', '0016_marketplaceindexpage'), ] operations = [ migrations.AlterField( model_name='focusarea', ...
21.857143
64
0.614379
b3366cca376171285d92d6772ba364f49db1f348
41,244
py
Python
pandas/core/base.py
lrusnac/pandas
a170e977dc8cc270bdcdee904658f9b6e20c8e86
[ "BSD-3-Clause" ]
1
2020-09-01T12:13:29.000Z
2020-09-01T12:13:29.000Z
pandas/core/base.py
lrusnac/pandas
a170e977dc8cc270bdcdee904658f9b6e20c8e86
[ "BSD-3-Clause" ]
null
null
null
pandas/core/base.py
lrusnac/pandas
a170e977dc8cc270bdcdee904658f9b6e20c8e86
[ "BSD-3-Clause" ]
1
2022-03-08T15:07:11.000Z
2022-03-08T15:07:11.000Z
""" Base and utility classes for pandas objects. """ import builtins import textwrap from typing import ( TYPE_CHECKING, Any, Callable, Dict, FrozenSet, Optional, TypeVar, Union, cast, ) import numpy as np import pandas._libs.lib as lib from pandas._typing import DtypeObj, IndexLa...
31.677419
87
0.559984
12c3cc5f8f023c8c99fc1f82d99e16cb3a10ae6c
505
py
Python
VENV/lib/python3.6/site-packages/PyInstaller/loader/rthooks/pyi_rth_gi.py
workingyifei/display-pattern-generator
b27be84c6221fa93833f283109870737b05bfbf6
[ "MIT" ]
3
2018-11-27T06:30:23.000Z
2021-05-30T15:56:32.000Z
VENV/lib/python3.6/site-packages/PyInstaller/loader/rthooks/pyi_rth_gi.py
workingyifei/display-pattern-generator
b27be84c6221fa93833f283109870737b05bfbf6
[ "MIT" ]
1
2018-11-15T02:00:31.000Z
2021-12-06T02:20:32.000Z
VENV/lib/python3.6/site-packages/PyInstaller/loader/rthooks/pyi_rth_gi.py
workingyifei/display-pattern-generator
b27be84c6221fa93833f283109870737b05bfbf6
[ "MIT" ]
1
2020-11-06T18:46:35.000Z
2020-11-06T18:46:35.000Z
#----------------------------------------------------------------------------- # Copyright (c) 2015-2017, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License with exception # for distributing bootloader. # # The full license is in the file COPYING.txt, distributed with this s...
36.071429
78
0.532673
06a9ce927bbf34482346da6559a32a390d9f9078
24,137
py
Python
smt/veriT/proof.py
crisperdue/holpy
fe88eb91a8db8386184329e3f51a80d11ecdb316
[ "BSD-3-Clause" ]
22
2021-06-15T00:01:27.000Z
2022-03-15T11:22:25.000Z
smt/veriT/proof.py
crisperdue/holpy
fe88eb91a8db8386184329e3f51a80d11ecdb316
[ "BSD-3-Clause" ]
null
null
null
smt/veriT/proof.py
crisperdue/holpy
fe88eb91a8db8386184329e3f51a80d11ecdb316
[ "BSD-3-Clause" ]
2
2021-11-30T08:56:03.000Z
2022-01-24T10:46:39.000Z
""" Basic proof rules in veriT solver. """ from smt.veriT.verit_macro import * from kernel.proofterm import ProofTerm, Thm from logic import basic, matcher, logic, conv from kernel import term import functools from prover.proofrec import int_th_lemma_1_omega basic.load_theory("verit") class Concl(object): def __i...
35.547865
124
0.559432
b69ab462ddb1421425c67bc79fe24b91964ffe2c
1,813
py
Python
tests/components/cloud/test_system_health.py
dlintott/core
a6c83cc46a34084fdc4c0e7221b6ba493f82cbac
[ "Apache-2.0" ]
2
2021-05-19T19:05:08.000Z
2021-06-06T06:51:05.000Z
tests/components/cloud/test_system_health.py
jrhubott/core
89fe232643134f283c041537e9f6841f47dc1c5e
[ "Apache-2.0" ]
56
2020-08-03T07:30:54.000Z
2022-03-31T06:02:04.000Z
tests/components/cloud/test_system_health.py
jrhubott/core
89fe232643134f283c041537e9f6841f47dc1c5e
[ "Apache-2.0" ]
2
2020-12-25T16:31:22.000Z
2020-12-30T20:53:56.000Z
"""Test cloud system health.""" import asyncio from aiohttp import ClientError from homeassistant.setup import async_setup_component from homeassistant.util.dt import utcnow from tests.async_mock import Mock from tests.common import get_system_health_info async def test_cloud_system_health(hass, aioclient_mock): ...
29.721311
81
0.626034
25bc5b43a85ec91bc24bd46aed0fe7e306647ba3
155,866
py
Python
salt/modules/virt.py
joechainz/salt
ae6ca7e4de5d8b214f95e2df98a8346c55186333
[ "Apache-2.0" ]
5
2017-02-07T05:39:29.000Z
2020-06-13T02:07:33.000Z
salt/modules/virt.py
joechainz/salt
ae6ca7e4de5d8b214f95e2df98a8346c55186333
[ "Apache-2.0" ]
86
2017-01-27T11:54:46.000Z
2020-05-20T06:25:26.000Z
salt/modules/virt.py
joechainz/salt
ae6ca7e4de5d8b214f95e2df98a8346c55186333
[ "Apache-2.0" ]
11
2017-01-26T19:36:29.000Z
2021-12-11T07:54:16.000Z
# -*- coding: utf-8 -*- ''' Work with virtual machines managed by libvirt :depends: libvirt Python module Connection ========== The connection to the virtualization host can be either setup in the minion configuration, pillar data or overridden for each individual call. By default, the libvirt connection URL will b...
31.507176
119
0.594228
804803d1e8782fe18761a6e9fdb13d6c11ded556
45,151
py
Python
sympy/physics/quantum/spin.py
Narsil/sympy
4d837e074b871af351b42591697fe126411a910f
[ "BSD-3-Clause" ]
1
2020-12-27T18:43:22.000Z
2020-12-27T18:43:22.000Z
sympy_old/physics/quantum/spin.py
curzel-it/KiPyCalc
909c783d5e6967ea58ca93f875106d8a8e3ca5db
[ "MIT" ]
null
null
null
sympy_old/physics/quantum/spin.py
curzel-it/KiPyCalc
909c783d5e6967ea58ca93f875106d8a8e3ca5db
[ "MIT" ]
1
2022-03-21T09:07:27.000Z
2022-03-21T09:07:27.000Z
"""Quantum mechanical angular momemtum.""" from sympy import ( Add, binomial, cos, diff, exp, Expr, factorial, I, Integer, Matrix, Mul, N, pi, Rational, S, sin, simplify, sqrt, Sum, Symbol, symbols, sympify ) from sympy.matrices.matrices import zeros from sympy.printing.pretty.stringpict import prettyF...
30.735875
172
0.58703
5ba18c4a24c5831a19e3787e9c00b287ec86b5f9
16,247
py
Python
venv/Lib/site-packages/pythonwin/pywin/framework/intpyapp.py
Shuvayan007/Internship_project_heroku
560dcb8f0a4d182c262f72f589d14509d051336c
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/pythonwin/pywin/framework/intpyapp.py
Shuvayan007/Internship_project_heroku
560dcb8f0a4d182c262f72f589d14509d051336c
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/pythonwin/pywin/framework/intpyapp.py
Shuvayan007/Internship_project_heroku
560dcb8f0a4d182c262f72f589d14509d051336c
[ "Apache-2.0" ]
null
null
null
# intpyapp.py - Interactive Python application class # import win32con import win32api import win32ui import __main__ import sys import os from . import app import traceback from pywin.mfc import afxres, dialog import commctrl from . import dbgcommands lastLocateFileName = ".py" # used in the "File/Locate" dialog... ...
33.98954
121
0.726473
6ed594b24e803d51e180f05d79f2395343dec30a
1,816
py
Python
modules/GeneralOptions.py
MuriloChianfa/SimpleChess
02619320f03a6d5bd30623f73056d8714276043e
[ "MIT" ]
2
2020-03-15T03:05:21.000Z
2020-03-18T17:24:56.000Z
modules/GeneralOptions.py
MuriloChianfa/SimpleTrueTable
02619320f03a6d5bd30623f73056d8714276043e
[ "MIT" ]
null
null
null
modules/GeneralOptions.py
MuriloChianfa/SimpleTrueTable
02619320f03a6d5bd30623f73056d8714276043e
[ "MIT" ]
null
null
null
from engine.GUI import * EnabledGeneralOptions = False class GeneralOptions: def __init__(self, root): self.GeneralOptions = GUI('GeneralOptions', 'Module: General Options') self.GeneralOptions.DefaultWindow('DefaultWindow') def SetGeneralOptions(): global EnabledGeneralOptio...
38.638298
126
0.589758
a9356f5f99dd98251d06ac10b83874aec2020932
1,183
py
Python
RecoJets/JetProducers/python/PFClusterJetParameters_cfi.py
gputtley/cmssw
c1ef8454804e4ebea8b65f59c4a952a6c94fde3b
[ "Apache-2.0" ]
3
2018-08-24T19:10:26.000Z
2019-02-19T11:45:32.000Z
RecoJets/JetProducers/python/PFClusterJetParameters_cfi.py
gputtley/cmssw
c1ef8454804e4ebea8b65f59c4a952a6c94fde3b
[ "Apache-2.0" ]
8
2020-03-20T23:18:36.000Z
2020-05-27T11:00:06.000Z
RecoJets/JetProducers/python/PFClusterJetParameters_cfi.py
gputtley/cmssw
c1ef8454804e4ebea8b65f59c4a952a6c94fde3b
[ "Apache-2.0" ]
5
2018-08-21T16:37:52.000Z
2020-01-09T13:33:17.000Z
import FWCore.ParameterSet.Config as cms PFClusterJetParameters = cms.PSet( src = cms.InputTag('pfClusterRefsForJets'), srcPVs = cms.InputTag('offlinePrimaryVertices'), jetType = cms.string('PFClusterJet'), # minimum jet pt jetPtMin = cms.double(3.0), # minimum ...
35.848485
60
0.606932
29c6458926f960d14ff3ab02ccd8cdaeab7167b2
2,782
py
Python
control.py
gwisk/Control
beafebcdcb7b5131d1eef2ef022d11196486e26a
[ "MIT" ]
null
null
null
control.py
gwisk/Control
beafebcdcb7b5131d1eef2ef022d11196486e26a
[ "MIT" ]
null
null
null
control.py
gwisk/Control
beafebcdcb7b5131d1eef2ef022d11196486e26a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from time import sleep import board import busio import adafruit_ads1x15.ads1115 as ADS from adafruit_ads1x15.analog_in import AnalogIn import sys import random import cloud4rpi import ds18b20 import rpi i2c = busio.I2C(board.SCL, board.SDA) ads=ADS.ADS1115(i2c) efficacy = 21.856 area = 3.2*(...
22.079365
73
0.616822
b03ce5fa2f3ce6c2850a099120a1de44e48dc4ae
18,733
py
Python
src/test/tinc/tincrepo/mpp/gpdb/tests/utilities/recoverseg/gprecoverseg_tests/fault/fault.py
lintzc/GPDB
b48c8b97da18f495c10065d0853db87960aebae2
[ "PostgreSQL", "Apache-2.0" ]
1
2017-09-15T06:09:56.000Z
2017-09-15T06:09:56.000Z
src/test/tinc/tincrepo/mpp/gpdb/tests/utilities/recoverseg/gprecoverseg_tests/fault/fault.py
guofengrichard/gpdb
29bdd6ef38d8d9b9cb04ca31d44e279eb9f640d3
[ "PostgreSQL", "Apache-2.0" ]
null
null
null
src/test/tinc/tincrepo/mpp/gpdb/tests/utilities/recoverseg/gprecoverseg_tests/fault/fault.py
guofengrichard/gpdb
29bdd6ef38d8d9b9cb04ca31d44e279eb9f640d3
[ "PostgreSQL", "Apache-2.0" ]
1
2018-12-04T09:13:57.000Z
2018-12-04T09:13:57.000Z
""" Copyright (C) 2004-2015 Pivotal Software, Inc. All rights reserved. This program and the accompanying materials are made available under the terms of the 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 ...
39.190377
150
0.611541
4c76ce72a449c9bad0dd10b23da973452a1c32bf
7,282
py
Python
tests/functional/coercers/test_coercer_non_null_string_field.py
matt-koevort/tartiflette
5777866b133d846ce4f8aa03f735fa81832896cd
[ "MIT" ]
530
2019-06-04T11:45:36.000Z
2022-03-31T09:29:56.000Z
tests/functional/coercers/test_coercer_non_null_string_field.py
matt-koevort/tartiflette
5777866b133d846ce4f8aa03f735fa81832896cd
[ "MIT" ]
242
2019-06-04T11:53:08.000Z
2022-03-28T07:06:27.000Z
tests/functional/coercers/test_coercer_non_null_string_field.py
matt-koevort/tartiflette
5777866b133d846ce4f8aa03f735fa81832896cd
[ "MIT" ]
36
2019-06-21T06:40:27.000Z
2021-11-04T13:11:16.000Z
import pytest from tests.functional.coercers.common import resolve_unwrapped_field @pytest.mark.asyncio @pytest.mark.ttftt_engine( name="coercion", resolvers={"Query.nonNullStringField": resolve_unwrapped_field}, ) @pytest.mark.parametrize( "query,variables,expected", [ ( """query...
34.349057
117
0.363087
26a56d6df98b3b8d73b50ffb02cd8ccc6e71fca5
2,478
py
Python
homeassistant/components/insteon/fan.py
VirtualL/home-assistant
301829d02be8d865ab46c8901ac046d060849320
[ "Apache-2.0" ]
2
2017-10-26T19:43:55.000Z
2017-12-30T23:29:00.000Z
homeassistant/components/insteon/fan.py
VirtualL/home-assistant
301829d02be8d865ab46c8901ac046d060849320
[ "Apache-2.0" ]
3
2021-09-08T03:34:57.000Z
2022-03-12T00:59:48.000Z
homeassistant/components/insteon/fan.py
VirtualL/home-assistant
301829d02be8d865ab46c8901ac046d060849320
[ "Apache-2.0" ]
1
2022-02-20T07:41:14.000Z
2022-02-20T07:41:14.000Z
"""Support for INSTEON fans via PowerLinc Modem.""" import logging from homeassistant.components.fan import ( SPEED_HIGH, SPEED_LOW, SPEED_MEDIUM, SPEED_OFF, SUPPORT_SET_SPEED, FanEntity) from homeassistant.const import STATE_OFF from . import InsteonEntity _LOGGER = logging.getLogger(__name__) DEPENDENCIES...
28.159091
71
0.655771
8ba9be9b246133af15fcde1fa3e6ba6ff33f1116
14,684
py
Python
main.py
JMax45/JMax-Encryption-Tools
a0f8b334077fc6d4196a4c1ebb106adf79cc9fa4
[ "MIT" ]
1
2019-07-22T14:48:43.000Z
2019-07-22T14:48:43.000Z
main.py
JMax45/JMax-Encryption-Tools
a0f8b334077fc6d4196a4c1ebb106adf79cc9fa4
[ "MIT" ]
2
2019-07-25T15:42:24.000Z
2019-07-30T06:45:28.000Z
main.py
JMax45/JMax-Encryption-Tools
a0f8b334077fc6d4196a4c1ebb106adf79cc9fa4
[ "MIT" ]
null
null
null
import sys import json from PyQt5 import QtWidgets, QtTest from PyQt5.Qt import QApplication, QClipboard, QFileDialog from design import design from design.popup.about_jet import Ui_popup_about_jet from design.popup.encryptTXT import Ui_encryptTXT from design.popup.pgen import Ui_pgen from methods.morse import * from m...
42.439306
81
0.608554
2510cc93a4b929d0683508f9f020284608b53eae
13,713
py
Python
python/ql/test/experimental/dataflow/coverage/test.py
momyarp/codeql
50f2557dd21eb6e28f3e8a16b30d03c5aafbe9dc
[ "MIT" ]
null
null
null
python/ql/test/experimental/dataflow/coverage/test.py
momyarp/codeql
50f2557dd21eb6e28f3e8a16b30d03c5aafbe9dc
[ "MIT" ]
null
null
null
python/ql/test/experimental/dataflow/coverage/test.py
momyarp/codeql
50f2557dd21eb6e28f3e8a16b30d03c5aafbe9dc
[ "MIT" ]
null
null
null
# This should cover all the syntactical constructs that we hope to support. # Headings refer to https://docs.python.org/3/reference/expressions.html, # and are selected whenever they incur dataflow. # Intended sources should be the variable `SOURCE` and intended sinks should be # arguments to the function `SINK` (see p...
21.905751
96
0.617297
a8f38f552de944bc7af9312bb63037fc862b1330
1,726
py
Python
manimlib/animation/numbers.py
aDotInTheVoid/manim
eb3e5f419cb164f12b253cf885e19c35c62a2f31
[ "MIT" ]
null
null
null
manimlib/animation/numbers.py
aDotInTheVoid/manim
eb3e5f419cb164f12b253cf885e19c35c62a2f31
[ "MIT" ]
null
null
null
manimlib/animation/numbers.py
aDotInTheVoid/manim
eb3e5f419cb164f12b253cf885e19c35c62a2f31
[ "MIT" ]
null
null
null
import warnings from manimlib.animation.animation import Animation from manimlib.mobject.numbers import DecimalNumber from manimlib.utils.bezier import interpolate class ChangingDecimal(Animation): CONFIG = { "suspend_mobject_updating": False, } def __init__(self, decimal_mob, number_update_func...
32.566038
66
0.628042
a1ce4a5af50ec2a02700a3588b13f0aba54325e1
397
py
Python
example/src/dsodemo/cli.py
navytux/setuptools_dso
6b1b72f012bdba1c891ce7719dbd230345924209
[ "BSD-3-Clause" ]
null
null
null
example/src/dsodemo/cli.py
navytux/setuptools_dso
6b1b72f012bdba1c891ce7719dbd230345924209
[ "BSD-3-Clause" ]
null
null
null
example/src/dsodemo/cli.py
navytux/setuptools_dso
6b1b72f012bdba1c891ce7719dbd230345924209
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function import sys, os def fixpath(): path = os.environ.get('PATH', '').split(os.pathsep) moddir = os.path.dirname(__file__) path.append(os.path.join(moddir, 'lib')) os.environ['PATH'] = os.pathsep.join(path) if sys.platform == "win32": fixpath() from .ext import d...
19.85
55
0.65995
ba849a08141dd9933f34bd4549e20a1324e86e6c
4,420
py
Python
native/jni/external/selinux/sandbox/test_sandbox.py
Joyoe/Magisk-nosbin_magisk-nohide
449441921740bf85926c14f41b3532822ca0eb65
[ "MIT" ]
2
2022-01-16T00:59:54.000Z
2022-02-09T12:00:48.000Z
native/jni/external/selinux/sandbox/test_sandbox.py
Joyoe/Magisk-nosbin_magisk-nohide
449441921740bf85926c14f41b3532822ca0eb65
[ "MIT" ]
null
null
null
native/jni/external/selinux/sandbox/test_sandbox.py
Joyoe/Magisk-nosbin_magisk-nohide
449441921740bf85926c14f41b3532822ca0eb65
[ "MIT" ]
2
2022-02-09T12:00:39.000Z
2022-02-21T18:34:46.000Z
import unittest import os import shutil import sys from tempfile import mkdtemp from subprocess import Popen, PIPE class SandboxTests(unittest.TestCase): def assertDenied(self, err): self.assertTrue(b'Permission denied' in err, '"Permission denied" not found in %r' % err) def...
38.77193
109
0.613348
2c525fbbf89eeeabf9512c4ed25ece3f60390e60
35,899
py
Python
hmAP.py
zhujiaxiaowang/Safety-helmet-detection-based-on-Yolov3
5f68bd391fc1f5ca796b955c28ea8f4074215b09
[ "MIT" ]
null
null
null
hmAP.py
zhujiaxiaowang/Safety-helmet-detection-based-on-Yolov3
5f68bd391fc1f5ca796b955c28ea8f4074215b09
[ "MIT" ]
null
null
null
hmAP.py
zhujiaxiaowang/Safety-helmet-detection-based-on-Yolov3
5f68bd391fc1f5ca796b955c28ea8f4074215b09
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Aug 18 10:33:15 2020 @author: CQU2616 """ import glob import json import os import shutil import operator import sys import argparse import math import numpy as np MINOVERLAP = 0.5 # default value (defined in the PASCAL VOC2012 challenge) parser = argp...
39.536344
135
0.569542
b5b6cb27bf3119558e8ff5802b29b39c2b5f72aa
32,345
py
Python
mobmonitor/checkfile/manager_unittest.py
hustwei/chromite
10eb79abeb64e859362546214b7e039096ac9830
[ "BSD-3-Clause" ]
null
null
null
mobmonitor/checkfile/manager_unittest.py
hustwei/chromite
10eb79abeb64e859362546214b7e039096ac9830
[ "BSD-3-Clause" ]
null
null
null
mobmonitor/checkfile/manager_unittest.py
hustwei/chromite
10eb79abeb64e859362546214b7e039096ac9830
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2015 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Unittests for Mob* Monitor checkfile manager.""" from __future__ import print_function import imp import mock import os import subprocess import time...
35.543956
80
0.681465
5f7f8f0c7f8a4120d0671975ae42bd9ad01bdb75
439
py
Python
djangocms_baseplugins/text/translation.py
benzkji/djangocms-baseplugins
7f041a030ed93dcdec70e4ca777b841846b8f2f2
[ "MIT" ]
2
2019-04-14T01:31:22.000Z
2020-03-05T13:06:57.000Z
djangocms_baseplugins/text/translation.py
benzkji/djangocms-baseplugins
7f041a030ed93dcdec70e4ca777b841846b8f2f2
[ "MIT" ]
32
2017-04-04T09:28:06.000Z
2021-08-18T16:23:02.000Z
djangocms_baseplugins/text/translation.py
bnzk/djangocms-baseplugins
7f041a030ed93dcdec70e4ca777b841846b8f2f2
[ "MIT" ]
null
null
null
from django.conf import settings from modeltranslation.translator import TranslationOptions, translator from djangocms_baseplugins.baseplugin import defaults from . import conf from .models import Text class TextTranslationOptions(TranslationOptions): fields = defaults.TRANSLATED_FIELDS + conf.TRANSLATED_FIELDS ...
29.266667
70
0.838269
6951603c37853d581ab4afb52d1a4d3d95ad2e48
12,462
py
Python
deep3dmap/datasets/scannet.py
achao2013/DeepRecon
1c9b0480710212e1fe86ab75dcf0b30bd9f654e7
[ "Apache-2.0" ]
30
2022-02-05T18:35:27.000Z
2022-02-09T09:14:41.000Z
deep3dmap/datasets/scannet.py
achao2013/DeepRecon
1c9b0480710212e1fe86ab75dcf0b30bd9f654e7
[ "Apache-2.0" ]
null
null
null
deep3dmap/datasets/scannet.py
achao2013/DeepRecon
1c9b0480710212e1fe86ab75dcf0b30bd9f654e7
[ "Apache-2.0" ]
null
null
null
# Copyright (c) achao2013. All rights reserved. import torch import numpy as np import os import cv2 import pickle from PIL import Image from torch.utils.data import Dataset from .builder import DATASETS from .pipelines import Compose import sys sys.path.append('.') import argparse import json import os import numpy...
36.979228
119
0.582491
f5a7fd627f706da58a67bd89caf9990b80a840f3
4,805
py
Python
src/print-alt-fastas.py
cory-weller/pseudodiploidy
33b22e906ccae424ecf065e98032c2843290b57c
[ "MIT" ]
null
null
null
src/print-alt-fastas.py
cory-weller/pseudodiploidy
33b22e906ccae424ecf065e98032c2843290b57c
[ "MIT" ]
null
null
null
src/print-alt-fastas.py
cory-weller/pseudodiploidy
33b22e906ccae424ecf065e98032c2843290b57c
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys import subprocess import gzip chromosome = sys.argv[1] start = sys.argv[2] end = sys.argv[3] chromosome = sys.argv[4] vcfFileName = 'data/external/chromosome12.vcf.gz' chromosomeName = 'chromosome12' def buildGenotypeDictionary(vcfFileName): # Create dictionary for thi...
38.44
172
0.612903
9fd4e408ed45ebc5efce1e70ad9ba75b4d1acdeb
7,887
py
Python
backend/test2_33914/settings.py
crowdbotics-apps/test2-33914
57ae765648af915113375de9cdde558d6499a9ad
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/test2_33914/settings.py
crowdbotics-apps/test2-33914
57ae765648af915113375de9cdde558d6499a9ad
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/test2_33914/settings.py
crowdbotics-apps/test2-33914
57ae765648af915113375de9cdde558d6499a9ad
[ "FTL", "AML", "RSA-MD" ]
null
null
null
""" Django settings for test2_33914 project. Generated by 'django-admin startproject' using Django 2.2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import o...
30.334615
112
0.736402
e4edd42130ed00c59ecaf05e3cef605b4d6ee123
613
py
Python
Algo and DSA/LeetCode-Solutions-master/Python/base-7.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/base-7.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/base-7.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
1,236
2018-10-12T02:51:40.000Z
2022-03-30T13:30:37.000Z
# Time: O(1) # Space: O(1) class Solution(object): def convertToBase7(self, num): if num < 0: return '-' + self.convertToBase7(-num) result = '' while num: result = str(num % 7) + result num //= 7 return result if result else '0' class Solution...
22.703704
59
0.487765
1764586f4e6a7163a54b216a8e80be81ab6ec855
12,368
py
Python
grr/client/client_actions/osx/osx.py
panhania/grr
fe16a7311a528e31fe0e315a880e98273b8df960
[ "Apache-2.0" ]
null
null
null
grr/client/client_actions/osx/osx.py
panhania/grr
fe16a7311a528e31fe0e315a880e98273b8df960
[ "Apache-2.0" ]
null
null
null
grr/client/client_actions/osx/osx.py
panhania/grr
fe16a7311a528e31fe0e315a880e98273b8df960
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """OSX specific actions. Most of these actions share an interface (in/out rdfvalues) with linux actions of the same name. OSX-only actions are registered with the server via libs/server_stubs.py """ import ctypes import logging import os import re import shutil import sys import pytsk3 from g...
32.806366
80
0.644809
33e6ffa679702762014a0851b37eeabfbc5fdfc5
6,736
py
Python
instrumentation/opentelemetry-instrumentation-urllib3/src/opentelemetry/instrumentation/urllib3/__init__.py
ericmustin/opentelemetry-python-contrib
308369004c71a8d07c18560ac1fb46049a0a8105
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
instrumentation/opentelemetry-instrumentation-urllib3/src/opentelemetry/instrumentation/urllib3/__init__.py
ericmustin/opentelemetry-python-contrib
308369004c71a8d07c18560ac1fb46049a0a8105
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
instrumentation/opentelemetry-instrumentation-urllib3/src/opentelemetry/instrumentation/urllib3/__init__.py
ericmustin/opentelemetry-python-contrib
308369004c71a8d07c18560ac1fb46049a0a8105
[ "Apache-2.0", "BSD-3-Clause" ]
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 ...
29.414847
79
0.687203
51249d7ab57083da814e587a381ab4f3be9c31bf
408
py
Python
Level1/Lessons12982/minari - 12982.py
StudyForCoding/ProgrammersLevel
dc957b1c02cc4383a93b8cbf3d739e6c4d88aa25
[ "MIT" ]
null
null
null
Level1/Lessons12982/minari - 12982.py
StudyForCoding/ProgrammersLevel
dc957b1c02cc4383a93b8cbf3d739e6c4d88aa25
[ "MIT" ]
null
null
null
Level1/Lessons12982/minari - 12982.py
StudyForCoding/ProgrammersLevel
dc957b1c02cc4383a93b8cbf3d739e6c4d88aa25
[ "MIT" ]
1
2021-04-05T07:35:59.000Z
2021-04-05T07:35:59.000Z
```python def solution(d, budget): answer = 0 d.sort() #1. #2. for i in range(len(d)): if budget - d[i] >= 0: answer += 1 budget = budget - d[i] else: break return answer #1. 최대한 많은 부서의 물품지원 -> 지원금액이 작은 부서부터 채워야 많은 부...
18.545455
73
0.460784
1e841763a8d173a24b58fd7370c2443a336e938b
612
py
Python
var/spack/repos/builtin/packages/py-doxypypy/package.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2,360
2017-11-06T08:47:01.000Z
2022-03-31T14:45:33.000Z
var/spack/repos/builtin/packages/py-doxypypy/package.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
13,838
2017-11-04T07:49:45.000Z
2022-03-31T23:38:39.000Z
var/spack/repos/builtin/packages/py-doxypypy/package.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1,793
2017-11-04T07:45:50.000Z
2022-03-30T14:31:53.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyDoxypypy(PythonPackage): """A Doxygen filter for Python. A more Pythonic version of...
29.142857
97
0.73366
5d8b2c967e5f5da6f815636b1ab90fcb8cb91b92
3,547
py
Python
src/copuled_hopf_network.py
koriavinash1/Network-Games-for-Coupled-Neuron-Model
9766eee0002b2e0eba22c871349bc9c98aaa575a
[ "MIT" ]
1
2020-04-30T08:00:40.000Z
2020-04-30T08:00:40.000Z
src/copuled_hopf_network.py
koriavinash1/Network-Games-for-Coupled-Neuron-Model
9766eee0002b2e0eba22c871349bc9c98aaa575a
[ "MIT" ]
null
null
null
src/copuled_hopf_network.py
koriavinash1/Network-Games-for-Coupled-Neuron-Model
9766eee0002b2e0eba22c871349bc9c98aaa575a
[ "MIT" ]
null
null
null
import os, sys import numpy as np sys.path.append('../../../Projects/nfm/') from nfm.helper.GaussianStatistics import * from nfm.helper.configure import Config from nfm.SOM import SOM from keras.datasets import mnist import matplotlib.pyplot as plt (x_train, y_train), (x_test, y_test) = mnist.load_data() index = np.a...
23.032468
90
0.594869
440668745ce65f0a6a3c621f9d345207a9fb3927
1,722
py
Python
magellan_models/initializers/initialize_with_yaml.py
3mcloud/magellan-models
aae47496f240a5211e650a5c0efcbc95a15f7bb0
[ "BSD-3-Clause" ]
2
2021-08-11T18:15:28.000Z
2021-08-11T18:33:38.000Z
magellan_models/initializers/initialize_with_yaml.py
3mcloud/magellan-models
aae47496f240a5211e650a5c0efcbc95a15f7bb0
[ "BSD-3-Clause" ]
null
null
null
magellan_models/initializers/initialize_with_yaml.py
3mcloud/magellan-models
aae47496f240a5211e650a5c0efcbc95a15f7bb0
[ "BSD-3-Clause" ]
null
null
null
""" Yaml based initialization module """ import yaml import requests from magellan_models.config import MagellanConfig from magellan_models.model_generator.generate_from_spec import generate_from_spec from magellan_models.exceptions import MagellanParserException def initialize_with_yaml_file(path: str, model_con...
31.888889
94
0.720674
a62de8fcbe7f418cbb7dc8be73fac50a7b7dae27
1,315
py
Python
data-mining/votes_dataset.py
paulopieczarka/cuddly-umbrella
29e1c101db0bd733b92eeb36d0ec334a5a87b9da
[ "MIT" ]
null
null
null
data-mining/votes_dataset.py
paulopieczarka/cuddly-umbrella
29e1c101db0bd733b92eeb36d0ec334a5a87b9da
[ "MIT" ]
null
null
null
data-mining/votes_dataset.py
paulopieczarka/cuddly-umbrella
29e1c101db0bd733b92eeb36d0ec334a5a87b9da
[ "MIT" ]
null
null
null
import pandas as pd import statistics as stcs def HouseVotes_DataSet(filename='house-votes-84.csv'): print("-> Loading %s dataset file." % filename) # read database dataset = pd.read_csv(filename) x = dataset.iloc[:, 1:].values y = dataset.iloc[:, 0].values n_samples, n_instances = x.shape print("-> ...
23.909091
56
0.576426
94eb4ee6e0cac458bf46f3c31de203e4c2a21c09
5,720
py
Python
tensorflow_recommenders/experimental/optimizers/composite_optimizer_test.py
D34D10CK/recommenders
e6e491b4e6bb991b3ad7ce8843c5ed04dfd60996
[ "Apache-2.0" ]
null
null
null
tensorflow_recommenders/experimental/optimizers/composite_optimizer_test.py
D34D10CK/recommenders
e6e491b4e6bb991b3ad7ce8843c5ed04dfd60996
[ "Apache-2.0" ]
null
null
null
tensorflow_recommenders/experimental/optimizers/composite_optimizer_test.py
D34D10CK/recommenders
e6e491b4e6bb991b3ad7ce8843c5ed04dfd60996
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 The TensorFlow Recommenders 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 ...
36.666667
98
0.697203
ffbbd25065fd49e5b4da0b0d1da31ebe3a7da1f9
98
py
Python
era_search/era_search/gunicorn.conf.py
bergonzzi/eracareers
8956bd21770a72ed466791b53aae8cf0cfc9b6db
[ "Apache-2.0" ]
1
2016-01-05T15:21:13.000Z
2016-01-05T15:21:13.000Z
era_search/era_search/gunicorn.conf.py
bergonzzi/eracareers
8956bd21770a72ed466791b53aae8cf0cfc9b6db
[ "Apache-2.0" ]
null
null
null
era_search/era_search/gunicorn.conf.py
bergonzzi/eracareers
8956bd21770a72ed466791b53aae8cf0cfc9b6db
[ "Apache-2.0" ]
null
null
null
daemon = True accesslog = "../../../logs/access_era.log" errorlog = "../../../logs/error_era.log"
24.5
42
0.612245
ec66e18b7ae85923a5e16b2e0a0cffcd12c91bb0
22
py
Python
toolkit/__init__.py
bmorris3/trappist1g_spots
3ee7c5ef523d517bd9e4363fd5292c2bfab3ab77
[ "MIT" ]
4
2020-05-11T00:07:25.000Z
2021-10-05T15:46:32.000Z
toolkit/__init__.py
bmorris3/trappist1g_spots
3ee7c5ef523d517bd9e4363fd5292c2bfab3ab77
[ "MIT" ]
4
2021-11-17T08:45:57.000Z
2021-12-21T15:33:22.000Z
examples/__init__.py
AndreyBychkov/QBee
c444d1bc8c76dcf9c2b316354e215bcaa92d072c
[ "MIT" ]
null
null
null
from .systems import *
22
22
0.772727
348405db68fd368bd4e99a54e49175fdf0e27b9f
1,973
py
Python
everyday_wechat/control/bot/tuling123.py
llht/EverydayWechat
9c46ce10abf2fbbea3c6ea8de4d63e86a0a7e5e5
[ "MIT" ]
1
2019-06-20T07:25:46.000Z
2019-06-20T07:25:46.000Z
everyday_wechat/control/bot/tuling123.py
llht/EverydayWechat
9c46ce10abf2fbbea3c6ea8de4d63e86a0a7e5e5
[ "MIT" ]
null
null
null
everyday_wechat/control/bot/tuling123.py
llht/EverydayWechat
9c46ce10abf2fbbea3c6ea8de4d63e86a0a7e5e5
[ "MIT" ]
null
null
null
# coding=utf-8 ''' 图灵机器人自动回复 官网:http://www.tuling123.com/ apiKey,userid 需要去官网申请。 ''' import requests from everyday_wechat.utils.common import ( is_json, md5_encode ) from everyday_wechat.utils import config # 图灵机器人错误码集合 TULING_ERROR_CODE_LIST = [ 5000, 6000, 4000, 4001, 4002, 4003, 4005, 4007, 4100, ...
24.974684
71
0.547897
296af1eb179dd05907d24d3d75a830143447aade
855
py
Python
osc/users/migrations/0001_initial.py
aqd14/online-shopping
0c76c24cb277c637cb490ef70fae28f85e469059
[ "Apache-2.0" ]
null
null
null
osc/users/migrations/0001_initial.py
aqd14/online-shopping
0c76c24cb277c637cb490ef70fae28f85e469059
[ "Apache-2.0" ]
null
null
null
osc/users/migrations/0001_initial.py
aqd14/online-shopping
0c76c24cb277c637cb490ef70fae28f85e469059
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-09-13 03:43 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='User',...
29.482759
114
0.574269
7e4c9cd1e11ac40d9a9d0235bccbc0b12274f421
1,447
py
Python
smallsmilhandler.py
vmartinezf/ptavi-p3
9d282502d9a40ab8d075f0d20089391fee08eca1
[ "Apache-2.0" ]
null
null
null
smallsmilhandler.py
vmartinezf/ptavi-p3
9d282502d9a40ab8d075f0d20089391fee08eca1
[ "Apache-2.0" ]
null
null
null
smallsmilhandler.py
vmartinezf/ptavi-p3
9d282502d9a40ab8d075f0d20089391fee08eca1
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- from xml.sax import make_parser from xml.sax.handler import ContentHandler class SmallSMILHandler(ContentHandler): """ Clase para manejar smill """ def __init__(self): """ Constructor. Inicializamos las variables """ self.lis...
27.301887
75
0.543193
bde920039aa8f82c5b41aa9b5ffb1c1c2bbf3a28
600
py
Python
SmartHelmet/core/migrations/0005_alter_data_options_data_timestamp.py
amanpandey-crypto/PDP_Group_44
b29ca460dd7f429bf27a0060ea7d377c718a624f
[ "MIT" ]
null
null
null
SmartHelmet/core/migrations/0005_alter_data_options_data_timestamp.py
amanpandey-crypto/PDP_Group_44
b29ca460dd7f429bf27a0060ea7d377c718a624f
[ "MIT" ]
null
null
null
SmartHelmet/core/migrations/0005_alter_data_options_data_timestamp.py
amanpandey-crypto/PDP_Group_44
b29ca460dd7f429bf27a0060ea7d377c718a624f
[ "MIT" ]
null
null
null
# Generated by Django 4.0.3 on 2022-04-24 19:13 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('core', '0004_data'), ] operations = [ migrations.AlterModelOptions( name='data', option...
24
93
0.591667
57e46a262a0d6e40d3856e496302d0d057cd903e
48,254
py
Python
infra/bots/recipes/test.py
iabro/skia
33d8fb035a3d2ad0f2dedb5703b5385f8fd15b84
[ "BSD-3-Clause" ]
null
null
null
infra/bots/recipes/test.py
iabro/skia
33d8fb035a3d2ad0f2dedb5703b5385f8fd15b84
[ "BSD-3-Clause" ]
null
null
null
infra/bots/recipes/test.py
iabro/skia
33d8fb035a3d2ad0f2dedb5703b5385f8fd15b84
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016 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. # Recipe module for Skia Swarming test. DEPS = [ 'env', 'flavor', 'recipe_engine/context', 'recipe_engine/file', 'recipe_engine/path', 'recipe...
38.388226
80
0.625772
43de6d701fd333c80e55f1bc9019f3c9f41a8558
24,580
py
Python
anuga/damage_modelling/tests/test_inundation_damage.py
samcom12/anuga_core
f4378114dbf02d666fe6423de45798add5c42806
[ "Python-2.0", "OLDAP-2.7" ]
null
null
null
anuga/damage_modelling/tests/test_inundation_damage.py
samcom12/anuga_core
f4378114dbf02d666fe6423de45798add5c42806
[ "Python-2.0", "OLDAP-2.7" ]
null
null
null
anuga/damage_modelling/tests/test_inundation_damage.py
samcom12/anuga_core
f4378114dbf02d666fe6423de45798add5c42806
[ "Python-2.0", "OLDAP-2.7" ]
null
null
null
#!/usr/bin/env python # from __future__ import print_function from builtins import str from builtins import range import unittest import tempfile import os, sys import time import csv from random import seed seed(17) #, version=1) # Make probabilistic tests reproducible #from anuga.damage.inundation_damage import _c...
37.641654
142
0.547315
595fc4560c600bc335113e6e337290f1a542385c
3,531
py
Python
problems/template-problem.py
beratyenilen/qc-ga
8c94fe6a89a627fc65a64d3102823c8466f50649
[ "Apache-2.0" ]
null
null
null
problems/template-problem.py
beratyenilen/qc-ga
8c94fe6a89a627fc65a64d3102823c8466f50649
[ "Apache-2.0" ]
14
2021-03-01T11:43:05.000Z
2021-06-16T17:03:59.000Z
problems/template-problem.py
beratyenilen/qc-ga
8c94fe6a89a627fc65a64d3102823c8466f50649
[ "Apache-2.0" ]
null
null
null
# Importing the necessary modules. import projectq from projectq.ops import H, X, Y, Z, T, Tdagger, S, Sdagger, CNOT, Measure, All, Rx, Ry, Rz, SqrtX import numpy as np import copy from constants import * from deap import creator, base, tools from candidate import Candidate from constants import * from evolution impor...
44.696203
121
0.745681
ff07e26a80b7fe412bd0ed9a28b94488072a3691
28
py
Python
python/quicktest.py
elsampsa/darknet-python
6c62a5934082157154087809d67d0ee43384cc7a
[ "MIT" ]
10
2019-05-10T07:26:56.000Z
2021-04-22T18:59:12.000Z
python/quicktest.py
elsampsa/darknet-python
6c62a5934082157154087809d67d0ee43384cc7a
[ "MIT" ]
null
null
null
python/quicktest.py
elsampsa/darknet-python
6c62a5934082157154087809d67d0ee43384cc7a
[ "MIT" ]
4
2018-11-16T00:55:41.000Z
2020-09-29T03:44:28.000Z
from darknet.core import *
9.333333
26
0.75
80f9204e1fbb385e86dfd99daa1ffd07e231c5ec
4,725
py
Python
mac_vendor_lookup.py
Terrarasa/mac_vendor_lookup
994847656bf44ae90c41e73e6f365172280e2465
[ "Apache-2.0" ]
null
null
null
mac_vendor_lookup.py
Terrarasa/mac_vendor_lookup
994847656bf44ae90c41e73e6f365172280e2465
[ "Apache-2.0" ]
null
null
null
mac_vendor_lookup.py
Terrarasa/mac_vendor_lookup
994847656bf44ae90c41e73e6f365172280e2465
[ "Apache-2.0" ]
null
null
null
##-----------------------------------------------## # MAC Lookup basic functions # @author Mike https://github.com/terrarasa # Based on work by Johann Bauer https://github.com/bauerj # Based on @project https://github.com/bauerj/mac_vendor_lookup ##-----------------------------------------------## import os, lo...
40.042373
128
0.582434
15a6ca4381a2d22d3c8f997214722bead4b3c3ca
27,901
py
Python
xclim/sdba/utils.py
Ouranosinc/dcvar
0737c66a36f8969e7a17276990bc7e76f7b410c4
[ "Apache-2.0" ]
1
2018-08-20T16:36:40.000Z
2018-08-20T16:36:40.000Z
xclim/sdba/utils.py
Ouranosinc/dcvar
0737c66a36f8969e7a17276990bc7e76f7b410c4
[ "Apache-2.0" ]
3
2018-08-23T13:25:47.000Z
2018-08-23T15:59:45.000Z
xclim/sdba/utils.py
Ouranosinc/hailstorm
494c850164a9f553eeeba66c6cc90fe398eb2094
[ "Apache-2.0" ]
null
null
null
# noqa: D205,D400 """ Statistical Downscaling and Bias Adjustment Utilities ===================================================== """ from __future__ import annotations import itertools from typing import Callable, Mapping, Union from warnings import warn import numpy as np import xarray as xr from boltons.funcutils ...
33.69686
250
0.617505
f9df2aa2f332a0c987dfd2e2421bdf8b81331a76
529
py
Python
tests/check_behaviour_with_minimal_settings.py
pakal/django-compat-patcher
62c1a766807f2be11b03ea481fbb4c9f9e6529ba
[ "MIT" ]
12
2017-05-21T10:52:45.000Z
2022-03-04T09:52:58.000Z
tests/check_behaviour_with_minimal_settings.py
pakal/django-compat-patcher
62c1a766807f2be11b03ea481fbb4c9f9e6529ba
[ "MIT" ]
18
2019-04-18T12:42:18.000Z
2022-02-23T09:38:45.000Z
tests/check_behaviour_with_minimal_settings.py
pakal/django-compat-patcher
62c1a766807f2be11b03ea481fbb4c9f9e6529ba
[ "MIT" ]
2
2019-05-07T20:28:25.000Z
2022-03-03T22:13:15.000Z
from __future__ import absolute_import, print_function, unicode_literals import os import sys sys.path.append(os.path.dirname(os.path.abspath(__file__))) os.environ["DJANGO_SETTINGS_MODULE"] = "test_project.minimal_settings" import django import django_compat_patcher django_compat_patcher.patch() # fi...
26.45
87
0.773157
ccbc3a0e09f687d0e2efd3a61e621a0cf259062c
690
py
Python
api/services/q1.py
kazishuvo22/Health-Data-Analytics
d93b863429ee360f58d24dffcac21ebfed29d36c
[ "Apache-2.0" ]
null
null
null
api/services/q1.py
kazishuvo22/Health-Data-Analytics
d93b863429ee360f58d24dffcac21ebfed29d36c
[ "Apache-2.0" ]
null
null
null
api/services/q1.py
kazishuvo22/Health-Data-Analytics
d93b863429ee360f58d24dffcac21ebfed29d36c
[ "Apache-2.0" ]
null
null
null
from flask import jsonify from flask.views import MethodView from api.querycontroller.q1 import Query1 class Query1API(MethodView): def __init__(self): self.q1 = Query1() def get(self): ''' Get the data of querycontroller 1 :return: [{ ‘division’: “Dhaka”, ...
23
48
0.478261
e07a34a79802da2a53dd138d8316c6a3f4be0fe1
235
py
Python
design_patterns/creational/object_pool/resource_module.py
gsingh79/obi_explorations
bcae6bb4c691b8806fcbb2bc35ea1bac604f7dd9
[ "Apache-2.0" ]
null
null
null
design_patterns/creational/object_pool/resource_module.py
gsingh79/obi_explorations
bcae6bb4c691b8806fcbb2bc35ea1bac604f7dd9
[ "Apache-2.0" ]
null
null
null
design_patterns/creational/object_pool/resource_module.py
gsingh79/obi_explorations
bcae6bb4c691b8806fcbb2bc35ea1bac604f7dd9
[ "Apache-2.0" ]
1
2021-11-15T22:32:40.000Z
2021-11-15T22:32:40.000Z
class ResourceModule: _value = 0 def get_value(self): return self._value def set_obj_value(self, number): print('Number', number) self._value = number def reset(self): self._value = 0
18.076923
36
0.595745
691f697295c66262fddb35c30e2cece72bfddbd6
4,227
py
Python
flask_resources/resources.py
ppanero/flask-resources
f0b99f7ceb31054ac3c4b1da705e9a009476996c
[ "MIT" ]
null
null
null
flask_resources/resources.py
ppanero/flask-resources
f0b99f7ceb31054ac3c4b1da705e9a009476996c
[ "MIT" ]
null
null
null
flask_resources/resources.py
ppanero/flask-resources
f0b99f7ceb31054ac3c4b1da705e9a009476996c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2020 CERN. # Copyright (C) 2020 Northwestern University. # # Flask-Resources is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Resource view.""" from flask import Blueprint from marshmallow i...
27.448052
88
0.585758
31374d5208258f5bd270f1286029fd440dbcda8d
7,179
py
Python
nntoolbox/sequence/components/cells/multiplicative.py
nhatsmrt/nn-toolbox
689b9924d3c88a433f8f350b89c13a878ac7d7c3
[ "Apache-2.0" ]
16
2019-07-11T15:57:41.000Z
2020-09-08T13:52:45.000Z
nntoolbox/sequence/components/cells/multiplicative.py
nhatsmrt/nn-toolbox
689b9924d3c88a433f8f350b89c13a878ac7d7c3
[ "Apache-2.0" ]
1
2022-01-18T22:21:57.000Z
2022-01-18T22:21:57.000Z
nntoolbox/sequence/components/cells/multiplicative.py
nhatsmrt/nn-toolbox
689b9924d3c88a433f8f350b89c13a878ac7d7c3
[ "Apache-2.0" ]
1
2019-08-07T10:07:09.000Z
2019-08-07T10:07:09.000Z
import torch from torch import nn, Tensor from typing import Tuple, Optional from ....init import sqrt_uniform_init from torch import jit __all__ = ['MultiplicativeRNNCell', 'MILSTMCell', 'MIGRUCell'] class MultiplicativeRNNCell(jit.ScriptModule): """ Multiplicative RNN. Allowing input to change the hidden ...
41.022857
115
0.667502
40e930d5c7e90e135b493745a8b79515798613c3
4,232
py
Python
pyASH/exceptions.py
dhrone/pyASH
85da060d135fb8be6475d58d4dc33acf88a3a9b2
[ "MIT" ]
null
null
null
pyASH/exceptions.py
dhrone/pyASH
85da060d135fb8be6475d58d4dc33acf88a3a9b2
[ "MIT" ]
null
null
null
pyASH/exceptions.py
dhrone/pyASH
85da060d135fb8be6475d58d4dc33acf88a3a9b2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2018 by dhrone. All Rights Reserved. # # Credit for the concepts behind this module go entirely to Matěj Hlaváček (https://github.com/mathead) class pyASH_EXCEPTION(Exception): def __init__(self, message, *args, **kwargs): if hasattr(self, 'payload'): self...
30.228571
103
0.678166
0107e628367d9dc9f4a06dbd5ccd917717068c2b
990
py
Python
bangoo/navigation/urlresolvers.py
slapec/bangoo
34facf122f15943a4368d5c2f45fe178ff01edaa
[ "MIT" ]
null
null
null
bangoo/navigation/urlresolvers.py
slapec/bangoo
34facf122f15943a4368d5c2f45fe178ff01edaa
[ "MIT" ]
null
null
null
bangoo/navigation/urlresolvers.py
slapec/bangoo
34facf122f15943a4368d5c2f45fe178ff01edaa
[ "MIT" ]
null
null
null
from .models import Menu from django.core.urlresolvers import reverse as rev, NoReverseMatch def reverse(viewname, urlconf=None, args=None, kwargs=None, prefix=None, current_app=None): url = None try: ### Try static url first url = rev(viewname=viewname, args=args, kwargs=kwargs, prefix=prefix...
38.076923
123
0.634343
2186d7e015c631ff7cac875c8673008ab5d72e46
875
py
Python
processing.py
dremovd/data-fusion-1-baseline
0e4b2055b49bd52b08ccd5ac3562e416fa4d17ae
[ "MIT" ]
41
2021-01-30T18:56:28.000Z
2021-04-02T13:51:17.000Z
processing.py
dremovd/data-fusion-1-baseline
0e4b2055b49bd52b08ccd5ac3562e416fa4d17ae
[ "MIT" ]
null
null
null
processing.py
dremovd/data-fusion-1-baseline
0e4b2055b49bd52b08ccd5ac3562e416fa4d17ae
[ "MIT" ]
6
2021-01-30T23:04:58.000Z
2021-11-18T09:58:50.000Z
import numpy as np import pandas as pd def load_dataset(dataset_name, drop_unlabeled=True): data = pd.read_parquet(dataset_name) data['weight'] = 1 receipt_item_count = data.groupby('receipt_id').agg( {'weight': 'count'}).rename({'weight': 'receipt_item_count'}, axis=1) data = data.merge(rece...
27.34375
77
0.64
fe979ba9631aec07b8f8fddaf035b7cad26cec47
6,590
py
Python
scripts/addRing.py
ekraka/EDHB
a6aa3ab4f41448894b821c2a0944d37d441a7d96
[ "MIT" ]
1
2021-03-07T17:19:09.000Z
2021-03-07T17:19:09.000Z
scripts/addRing.py
ekraka/EDHB
a6aa3ab4f41448894b821c2a0944d37d441a7d96
[ "MIT" ]
null
null
null
scripts/addRing.py
ekraka/EDHB
a6aa3ab4f41448894b821c2a0944d37d441a7d96
[ "MIT" ]
1
2021-03-04T18:44:33.000Z
2021-03-04T18:44:33.000Z
import sys import hb_connections as hb import os def get_ids(path,suffix='_ah'): f=open(path,'r') lines=f.readlines() f.close() i=-1 i2=0 ref=0 lm={} length=0 kr_st=None for line in lines: i+=1 if ref==5: ...
30.651163
145
0.355994
968f3fa973045054b20d6f040a284809161df57b
6,343
py
Python
CTL/causal_tree/sig_diff/sig.py
Youngyi/CTL
3dc578b17adf7ddc4eecb5630ed96b3693c53f68
[ "MIT" ]
38
2019-08-03T08:06:44.000Z
2022-03-27T17:24:35.000Z
CTL/causal_tree/sig_diff/sig.py
springbarley/CTL
3dc578b17adf7ddc4eecb5630ed96b3693c53f68
[ "MIT" ]
6
2019-09-19T02:43:43.000Z
2021-07-29T03:40:23.000Z
CTL/causal_tree/sig_diff/sig.py
springbarley/CTL
3dc578b17adf7ddc4eecb5630ed96b3693c53f68
[ "MIT" ]
6
2019-10-24T18:31:36.000Z
2022-02-25T01:31:14.000Z
# from CTL.causal_tree.util import * try: from CTL.causal_tree.util_c import * except: from CTL.causal_tree.util import * from CTL.causal_tree.ct import * import numpy as np from scipy.stats import ttest_ind_from_stats class SigNode(CTNode): def __init__(self, p_val=1.0, effect=0.0, node_depth=0, control...
29.919811
115
0.539335
1f2eb09d98c9984b79308aaee685cb79f8ed5953
3,840
py
Python
docs/conf.py
ihsan1852/edge
6f15a5a3f19f6b7dfd8ba0641ae5deddbb7d145d
[ "MIT" ]
56
2021-01-22T17:05:21.000Z
2022-03-31T11:09:56.000Z
docs/conf.py
ihsan1852/edge
6f15a5a3f19f6b7dfd8ba0641ae5deddbb7d145d
[ "MIT" ]
null
null
null
docs/conf.py
ihsan1852/edge
6f15a5a3f19f6b7dfd8ba0641ae5deddbb7d145d
[ "MIT" ]
7
2021-05-25T00:31:36.000Z
2022-02-01T16:52:42.000Z
import os import sys from datetime import datetime import alabaster sys.path.insert(0, os.path.abspath('../leaf')) # -- Project information ----------------------------------------------------- project = "LEAF" author = "Philipp Wiesner" copyright = f"{datetime.now().year} {author}" # The short X.Y version try: ...
29.767442
134
0.665625
c83531fe55fad97a3eb341db1ea94b6926be0d04
806
py
Python
src/importTerminology.py
aws-samples/aim317-uncover-insights-customer-conversations
663ba08fe9ad1cf1e520e77a88dc6a96b611619b
[ "MIT-0" ]
null
null
null
src/importTerminology.py
aws-samples/aim317-uncover-insights-customer-conversations
663ba08fe9ad1cf1e520e77a88dc6a96b611619b
[ "MIT-0" ]
null
null
null
src/importTerminology.py
aws-samples/aim317-uncover-insights-customer-conversations
663ba08fe9ad1cf1e520e77a88dc6a96b611619b
[ "MIT-0" ]
1
2021-12-20T16:40:55.000Z
2021-12-20T16:40:55.000Z
import boto3 def lambda_handler(event, context): record = event['Records'][0] print("Record: " + str(record)) s3bucket = record['s3']['bucket']['name'] s3object = record['s3']['object']['key'] s3Path = "s3://" + s3bucket + "/" + s3object s3_resource = boto3.resource('s3') ...
23.705882
68
0.578164
233736af717ba5172be48d9c0bde225177a5a352
1,381
py
Python
KTU/Programavimo Kalbu Teorija/L1 PYTHON/Lab1.py
sandybridge9/KTU-darbai-ir-ataskaitos
4d2e9874efdae5d1e55725c089946ecac3532c3a
[ "MIT" ]
null
null
null
KTU/Programavimo Kalbu Teorija/L1 PYTHON/Lab1.py
sandybridge9/KTU-darbai-ir-ataskaitos
4d2e9874efdae5d1e55725c089946ecac3532c3a
[ "MIT" ]
null
null
null
KTU/Programavimo Kalbu Teorija/L1 PYTHON/Lab1.py
sandybridge9/KTU-darbai-ir-ataskaitos
4d2e9874efdae5d1e55725c089946ecac3532c3a
[ "MIT" ]
null
null
null
#Number class used to store a number and a number which shows a cumulative sum of each numbers divisors from 1 to number class Number: def __init__(self, number, cumulativeSum): self.number = number self.cumulativeSum = cumulativeSum def get_number(self): return self.number #fi...
32.116279
120
0.666908
b4a153898455863facf5d726011513fd94cd18bc
4,107
py
Python
models/blocks.py
PRBonn/segcontrast
3dbdb19aecfe1d78f88637b0ecb3b453daac8d97
[ "MIT" ]
22
2022-01-03T22:51:18.000Z
2022-03-31T10:11:41.000Z
models/blocks.py
PRBonn/segcontrast
3dbdb19aecfe1d78f88637b0ecb3b453daac8d97
[ "MIT" ]
3
2022-03-07T08:42:25.000Z
2022-03-31T10:09:54.000Z
models/blocks.py
PRBonn/segcontrast
3dbdb19aecfe1d78f88637b0ecb3b453daac8d97
[ "MIT" ]
2
2022-03-29T12:06:18.000Z
2022-03-31T07:02:46.000Z
import torch.nn as nn import MinkowskiEngine as ME class BasicBlock(nn.Module): expansion = 1 def __init__(self, inplanes, planes, stride=1, dilation=1, downsample=None, bn_momentum=0.1, dime...
29.335714
99
0.602873
fc55e1e64b3a634b6468d3bf95b3f6e141092509
35,446
py
Python
c7n/resources/account.py
fadiguezel/cloud-custodian
147fffcf9a109ffd4248a746775b55def5a727c5
[ "Apache-2.0" ]
null
null
null
c7n/resources/account.py
fadiguezel/cloud-custodian
147fffcf9a109ffd4248a746775b55def5a727c5
[ "Apache-2.0" ]
null
null
null
c7n/resources/account.py
fadiguezel/cloud-custodian
147fffcf9a109ffd4248a746775b55def5a727c5
[ "Apache-2.0" ]
null
null
null
# Copyright 2016-2017 Capital One Services, 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 ...
36.655636
99
0.567906
daad082596d259673fe4bba215bf2cd9e3b91096
1,587
py
Python
src/backend/expungeservice/models/disposition.py
KentShikama/recordexpungPDX
4d3d14339e9f408ae466b867615101bdee42e98b
[ "MIT" ]
null
null
null
src/backend/expungeservice/models/disposition.py
KentShikama/recordexpungPDX
4d3d14339e9f408ae466b867615101bdee42e98b
[ "MIT" ]
null
null
null
src/backend/expungeservice/models/disposition.py
KentShikama/recordexpungPDX
4d3d14339e9f408ae466b867615101bdee42e98b
[ "MIT" ]
null
null
null
from dataclasses import dataclass from datetime import date from enum import Enum class DispositionStatus(str, Enum): CONVICTED = "Convicted" DISMISSED = "Dismissed" NO_COMPLAINT = "No Complaint" DIVERTED = "Diverted" UNRECOGNIZED = "Unrecognized" @dataclass(frozen=True) class Disposition: d...
28.339286
114
0.647133
6eef6dcb38a57d37b3dc4cbf4df3476989300c43
6,913
py
Python
sdk/python/pulumi_azure/apimanagement/named_value.py
davidobrien1985/pulumi-azure
811beeea473bd798d77354521266a87a2fac5888
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/apimanagement/named_value.py
davidobrien1985/pulumi-azure
811beeea473bd798d77354521266a87a2fac5888
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/apimanagement/named_value.py
davidobrien1985/pulumi-azure
811beeea473bd798d77354521266a87a2fac5888
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import json import warnings import pulumi import pulumi.runtime from typing import Union from .. import utilities, tables class NamedV...
52.770992
217
0.689426
9c8c46e6fa2672175fd7631b2fa6d376ddea0c3b
5,010
py
Python
pose_estimation/configs/fashion/udp/deepfashion/hrnet_w32_deepfashion_full_256x192_udp.py
AK391/UniFormer
22c6b3b98b68236dda6a8fa7152a32af1af62a20
[ "MIT" ]
367
2022-01-14T03:32:25.000Z
2022-03-31T04:48:20.000Z
pose_estimation/configs/fashion/udp/deepfashion/hrnet_w32_deepfashion_full_256x192_udp.py
hadlang/UniFormer
e8024703bffb89cb7c7d09e0d774a0d2a9f96c25
[ "MIT" ]
27
2022-01-27T07:12:49.000Z
2022-03-31T04:31:13.000Z
pose_estimation/configs/fashion/udp/deepfashion/hrnet_w32_deepfashion_full_256x192_udp.py
hadlang/UniFormer
e8024703bffb89cb7c7d09e0d774a0d2a9f96c25
[ "MIT" ]
53
2022-01-18T11:21:43.000Z
2022-03-31T06:42:41.000Z
log_level = 'INFO' load_from = None resume_from = None dist_params = dict(backend='nccl') workflow = [('train', 1)] checkpoint_config = dict(interval=5, create_symlink=False) evaluation = dict(interval=10, metric='PCK', key_indicator='PCK') optimizer = dict( type='Adam', lr=5e-4, ) optimizer_config = dict(grad...
28.305085
79
0.586028
bdf269ce2a956875e13721438968639668e5e7bd
5,531
py
Python
py/bitbox02/u2fhid/u2fhid.py
jstrnbrg/bitbox02-firmware
173a1fe340daf1a839b888286a654fb75745102d
[ "Apache-2.0" ]
1
2019-11-29T07:06:59.000Z
2019-11-29T07:06:59.000Z
py/bitbox02/u2fhid/u2fhid.py
jstrnbrg/bitbox02-firmware
173a1fe340daf1a839b888286a654fb75745102d
[ "Apache-2.0" ]
null
null
null
py/bitbox02/u2fhid/u2fhid.py
jstrnbrg/bitbox02-firmware
173a1fe340daf1a839b888286a654fb75745102d
[ "Apache-2.0" ]
1
2019-11-29T07:07:01.000Z
2019-11-29T07:07:01.000Z
# Copyright 2019 Shift Cryptosecurity AG # # 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...
32.727811
98
0.619056
5b96c0befe2a9434560bdd357f3d8e8dc2a92bc5
3,144
py
Python
nixos/modules/tests/stripe-api-double.py
PrivateStorageio/PrivateStorageio
fc3cf0fd0a3ccb31780984b99f4c04d96d1c3820
[ "Apache-2.0" ]
1
2020-12-22T23:40:34.000Z
2020-12-22T23:40:34.000Z
nixos/modules/tests/stripe-api-double.py
PrivateStorageio/PrivateStorageio
fc3cf0fd0a3ccb31780984b99f4c04d96d1c3820
[ "Apache-2.0" ]
25
2019-08-08T15:54:29.000Z
2021-03-08T18:06:10.000Z
nixos/modules/tests/stripe-api-double.py
PrivateStorageio/PrivateStorageio
fc3cf0fd0a3ccb31780984b99f4c04d96d1c3820
[ "Apache-2.0" ]
2
2019-10-24T20:08:17.000Z
2020-05-19T21:09:48.000Z
#!/usr/bin/env python3 from sys import stdout, argv from json import dumps from twisted.internet.defer import Deferred from twisted.internet.endpoints import serverFromString from twisted.internet.task import react from twisted.web.resource import Resource from twisted.web.server import Site from twisted.python.log i...
30.823529
144
0.577608
8bd11f4af6e22c1087e3d5260f9d58249b97c553
3,029
py
Python
app.py
bkhanale/SlackContestWatcherBot
744dac74aecfedeeee8fa41b781d454fe105e6a1
[ "MIT" ]
12
2018-07-28T19:39:25.000Z
2021-08-29T17:39:35.000Z
app.py
bkhanale/slackcontestwatcherbot
744dac74aecfedeeee8fa41b781d454fe105e6a1
[ "MIT" ]
8
2018-07-28T19:41:03.000Z
2018-08-20T17:14:56.000Z
app.py
bkhanale/slackcontestwatcherbot
744dac74aecfedeeee8fa41b781d454fe105e6a1
[ "MIT" ]
2
2018-07-29T09:38:29.000Z
2018-07-29T11:11:37.000Z
import datetime from dateutil import tz import json import requests from os import environ base_url = "https://clist.by/api/v1/contest/" header = {"Authorization": environ["CLIST_API_TOKEN"]} def convert_time(utc): return str( utc.replace(tzinfo=tz.gettz('UTC')) .astimezone(tz.gettz(...
33.655556
79
0.555629
801729b67723302bafcc0f41bcf618c63a1abcea
1,763
py
Python
job_scripts/cori-haswell/slack_job_start.py
dwillcox/workflow
ff4a0e98eda5dd8ac002f6c0b518c5c9aa94bd8d
[ "MIT" ]
3
2018-11-27T20:19:47.000Z
2021-03-11T02:14:02.000Z
job_scripts/cori-haswell/slack_job_start.py
dwillcox/workflow
ff4a0e98eda5dd8ac002f6c0b518c5c9aa94bd8d
[ "MIT" ]
6
2018-04-09T23:24:48.000Z
2021-09-28T18:21:31.000Z
job_scripts/cori-haswell/slack_job_start.py
dwillcox/workflow
ff4a0e98eda5dd8ac002f6c0b518c5c9aa94bd8d
[ "MIT" ]
6
2018-12-25T01:06:17.000Z
2022-03-25T22:40:24.000Z
#!/usr/bin/env python import json import sys import subprocess import shlex def slack_post(name, channel, message, webhook): payload = {} payload["channel"] = channel payload["username"] = name payload["text"] = message s = json.dumps(payload) cmd = "curl -X POST --data-urlencode 'payload={...
25.550725
102
0.581963
1bdb6d2dd320d7c51a7c0bcf01377c345a20ccdf
1,110
py
Python
apps/account/views.py
hakancelik96/eatingword
722e0c5ce2c92812b79db106eb9df7bd90a83143
[ "MIT" ]
10
2020-09-24T12:25:59.000Z
2020-09-24T12:28:11.000Z
apps/account/views.py
hakancelik96/eatingword
722e0c5ce2c92812b79db106eb9df7bd90a83143
[ "MIT" ]
4
2021-06-04T23:52:28.000Z
2021-09-22T19:34:29.000Z
apps/account/views.py
hakancelik96/eatingword
722e0c5ce2c92812b79db106eb9df7bd90a83143
[ "MIT" ]
null
null
null
from django.contrib import messages from django.contrib.auth import authenticate, login from django.contrib.auth import views as auth_views from django.urls import reverse_lazy from django.views import generic from apps.account.forms import AuthenticationForm, RegisterForm from apps.views import MessageMixin class R...
33.636364
69
0.722523
65977c52122caa1854d2df3c5485a7e08c0d074f
96
py
Python
python3-cgdk/model/WeatherType.py
leloykun/russian-ai-cup
aa06dcd594f8a33aa5d1accc128b931812de7297
[ "MIT" ]
null
null
null
python3-cgdk/model/WeatherType.py
leloykun/russian-ai-cup
aa06dcd594f8a33aa5d1accc128b931812de7297
[ "MIT" ]
null
null
null
python3-cgdk/model/WeatherType.py
leloykun/russian-ai-cup
aa06dcd594f8a33aa5d1accc128b931812de7297
[ "MIT" ]
null
null
null
from enum import IntEnum class WeatherType(IntEnum): CLEAR = 0 CLOUD = 1 RAIN = 2
12
27
0.635417