hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
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
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
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
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
79671f3f38a41ba953ec2168f2bd23071d0f652a
1,187
py
Python
licencias/users/admin.py
rulotr/licencia
68b2ee3e32ce38b91b64c62d11888b2b9c094f78
[ "MIT" ]
null
null
null
licencias/users/admin.py
rulotr/licencia
68b2ee3e32ce38b91b64c62d11888b2b9c094f78
[ "MIT" ]
null
null
null
licencias/users/admin.py
rulotr/licencia
68b2ee3e32ce38b91b64c62d11888b2b9c094f78
[ "MIT" ]
null
null
null
from django.contrib import admin from django.contrib.auth import admin as auth_admin from django.contrib.auth import get_user_model from django.utils.translation import gettext_lazy as _ from licencias.users.forms import UserChangeForm, UserCreationForm from licencias.users.models import Licencia User = get_user_mod...
28.95122
74
0.581297
79671f7f0e1ee9d54c475182fd3bd10a61a87baf
31,477
py
Python
egret/models/acopf.py
dilr/Egret-1
a4afe34e377e65b3b538042bb8a98ce352add10e
[ "BSD-3-Clause" ]
null
null
null
egret/models/acopf.py
dilr/Egret-1
a4afe34e377e65b3b538042bb8a98ce352add10e
[ "BSD-3-Clause" ]
null
null
null
egret/models/acopf.py
dilr/Egret-1
a4afe34e377e65b3b538042bb8a98ce352add10e
[ "BSD-3-Clause" ]
null
null
null
# ___________________________________________________________________________ # # EGRET: Electrical Grid Research and Engineering Tools # Copyright 2019 National Technology & Engineering Solutions of Sandia, LLC # (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S. # Government retains certain r...
48.277607
144
0.586809
79671fc83f6656f30c6074c1b351a64eeeecad56
3,750
py
Python
src/utils/common/prediction_helper.py
Supreeth-Shetty/Projectathon---Simplified-AI
3fc26a58a9370d119811ac4e864af977c21f6c40
[ "MIT" ]
8
2021-12-23T06:05:00.000Z
2021-12-26T05:39:00.000Z
src/utils/common/prediction_helper.py
Supreeth-Shetty/Projectathon---Simplified-AI
3fc26a58a9370d119811ac4e864af977c21f6c40
[ "MIT" ]
null
null
null
src/utils/common/prediction_helper.py
Supreeth-Shetty/Projectathon---Simplified-AI
3fc26a58a9370d119811ac4e864af977c21f6c40
[ "MIT" ]
2
2021-12-23T06:10:11.000Z
2021-12-23T07:24:28.000Z
import os from flask import session from src.utils.common.common_helper import load_project_encdoing, load_project_model, load_project_pca, \ load_project_scaler, read_config from loguru import logger from from_root import from_root from src.utils.databases.mysql_helper import MySqlHelper from src.preprocessing.pre...
43.604651
117
0.560533
79672051733be33ef64e266597c101b7451274f2
1,688
py
Python
setup.py
ro-56/Projeto-Mestrado
5bc685f9b5bc69202aaae413f3478d817a1f3af0
[ "MIT" ]
null
null
null
setup.py
ro-56/Projeto-Mestrado
5bc685f9b5bc69202aaae413f3478d817a1f3af0
[ "MIT" ]
null
null
null
setup.py
ro-56/Projeto-Mestrado
5bc685f9b5bc69202aaae413f3478d817a1f3af0
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from distutils.core import setup NAME = 'sampleproject' VERSION = '0.0.1' DESCRIPTION = 'A sample Python project.' URL = 'https://github.com/me/myproject' AUTHOR = 'A. Random Developer' AUTHOR_EMAIL = 'author@example.com' MAINTAINER = AUTHOR MAINTAINER_EMAIL = AUTHOR_EMAI...
27.225806
72
0.623223
796720635eb56f048cdbea9531604f0edf36ea88
9,029
py
Python
h/test/streamer_test.py
Treora/h
2316ffb9190e49c44711f20caf1cad5fc1f056f4
[ "MIT" ]
null
null
null
h/test/streamer_test.py
Treora/h
2316ffb9190e49c44711f20caf1cad5fc1f056f4
[ "MIT" ]
null
null
null
h/test/streamer_test.py
Treora/h
2316ffb9190e49c44711f20caf1cad5fc1f056f4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Defines unit tests for h.streamer.""" import unittest from collections import namedtuple import json from mock import ANY from mock import MagicMock from mock import patch from pyramid.testing import DummyRequest from pyramid.testing import testConfig from h.streamer import FilterToElasti...
28.939103
79
0.594086
796720fffa9f90f253740c5cfcc1bac230916fdd
14,617
py
Python
src/logplot/logging_plotting.py
oplatek/merlin
df7e3494b0662fec3a2fbe4d51d056e80cc6b682
[ "Apache-2.0" ]
1
2019-05-23T00:46:24.000Z
2019-05-23T00:46:24.000Z
src/logplot/logging_plotting.py
oplatek/merlin
df7e3494b0662fec3a2fbe4d51d056e80cc6b682
[ "Apache-2.0" ]
null
null
null
src/logplot/logging_plotting.py
oplatek/merlin
df7e3494b0662fec3a2fbe4d51d056e80cc6b682
[ "Apache-2.0" ]
1
2021-06-28T09:49:40.000Z
2021-06-28T09:49:40.000Z
################################################################################ # The Neural Network (NN) based Speech Synthesis System # https://svn.ecdf.ed.ac.uk/repo/inf/dnn_tts/ # # Centre for Speech Technology Research # ...
39.082888
141
0.634261
7967216c12ba7cd24ac2ac9ac8fbb31a6201f906
4,076
py
Python
jasmin/redis/client.py
balsagoth/jasmin
53d55f6af8c0d5faca51849e5953452a0dd93452
[ "Apache-2.0" ]
null
null
null
jasmin/redis/client.py
balsagoth/jasmin
53d55f6af8c0d5faca51849e5953452a0dd93452
[ "Apache-2.0" ]
null
null
null
jasmin/redis/client.py
balsagoth/jasmin
53d55f6af8c0d5faca51849e5953452a0dd93452
[ "Apache-2.0" ]
null
null
null
import logging from logging.handlers import TimedRotatingFileHandler import jasmin.vendor.txredisapi as redis from twisted.internet import reactor from twisted.internet import defer from jasmin.redis.configs import RedisForJasminConfig LOG_CATEGORY = "jasmin-redis-client" # Overloading https://github.com/fiorix/txred...
33.966667
113
0.683513
796722315dcf871255d2ca149f4450e12088ba0c
1,865
py
Python
src/djai/model/models/__init__.py
Django-AI/DjAI
85e624de78726ac52f42580121e1a04efe2da2d7
[ "MIT" ]
3
2021-12-03T13:53:17.000Z
2021-12-15T11:51:52.000Z
src/djai/model/models/__init__.py
Django-AI/DjAI
85e624de78726ac52f42580121e1a04efe2da2d7
[ "MIT" ]
null
null
null
src/djai/model/models/__init__.py
Django-AI/DjAI
85e624de78726ac52f42580121e1a04efe2da2d7
[ "MIT" ]
1
2022-01-31T08:57:16.000Z
2022-01-31T08:57:16.000Z
"""DjAI base AIModel class & its subclasses.""" from sys import version_info from .base import AIModel from .cloud_ai_svc import ( CloudAIService, GoogleTranslate, ) from .ml import ( SKLModel, KerasModel, PreTrainedKerasImageNetClassifier, TorchModel, PreTrainedHuggingFaceTransform...
24.866667
49
0.784987
7967226f917dce58f88ff4848c5941e72fc045d5
3,838
py
Python
examples/plugin_examples/plugin_templates/general/plugin_template5.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
39
2015-03-30T14:03:42.000Z
2022-03-16T16:50:33.000Z
examples/plugin_examples/plugin_templates/general/plugin_template5.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
670
2015-02-11T11:08:09.000Z
2022-03-21T09:27:57.000Z
examples/plugin_examples/plugin_templates/general/plugin_template5.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
54
2015-02-13T14:09:52.000Z
2022-01-24T13:57:09.000Z
# Copyright 2014 Diamond Light Source Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
38.38
79
0.609432
79672483ee5d6ecaa7b4d370003f0dd590fbf341
4,771
py
Python
yosim/rules/migrations/0001_initial.py
thoongnv/yosim
22bcaceb2c40735363496d9404970a73c4b944bc
[ "MIT" ]
2
2022-02-15T03:41:13.000Z
2022-02-15T03:44:46.000Z
yosim/rules/migrations/0001_initial.py
thoongnv/yosim
22bcaceb2c40735363496d9404970a73c4b944bc
[ "MIT" ]
5
2021-06-08T22:26:24.000Z
2022-03-12T00:21:35.000Z
yosim/rules/migrations/0001_initial.py
thoongnv/yosim
22bcaceb2c40735363496d9404970a73c4b944bc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.8 on 2017-12-25 16:34 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.Crea...
53.606742
122
0.567596
796725cf390f34405f95e8c330757d787e504b07
3,678
py
Python
setup.py
alanhdu/maturin
6be0fadeeef58d3eac08e1dd78e7f658890249f8
[ "Apache-2.0", "MIT" ]
null
null
null
setup.py
alanhdu/maturin
6be0fadeeef58d3eac08e1dd78e7f658890249f8
[ "Apache-2.0", "MIT" ]
null
null
null
setup.py
alanhdu/maturin
6be0fadeeef58d3eac08e1dd78e7f658890249f8
[ "Apache-2.0", "MIT" ]
null
null
null
# pyo3 is self bootstraping, however on platforms like alpine linux that aren't # manylinux, pip will try installing maturin from the source distribution. # That source distribution obviously can't depend on maturin, so we're using # the always available setuptools. # # Note that this is really only a workaround for bo...
37.151515
113
0.677542
796725d72c9863ed2a3259fadc815cbc5bdca14c
1,984
py
Python
docs/conf.py
airstandley/figenv
909fcf248594f2fe9eb6f7b2eb6a02c62c3cbbc8
[ "Apache-2.0" ]
3
2021-02-23T00:34:49.000Z
2021-09-28T22:53:07.000Z
docs/conf.py
airstandley/figenv
909fcf248594f2fe9eb6f7b2eb6a02c62c3cbbc8
[ "Apache-2.0" ]
6
2020-07-01T13:02:09.000Z
2022-03-11T21:56:55.000Z
docs/conf.py
gtmanfred/figenv
909fcf248594f2fe9eb6f7b2eb6a02c62c3cbbc8
[ "Apache-2.0" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
33.627119
79
0.674395
796726200a2fab56832b0fd64534ec3d99331a96
5,211
py
Python
perfkitbenchmarker/benchmark_status.py
mdemeke/mickysbenchmarker
a61896f273577ea61a646f74bd3c4aa3d5996db2
[ "Apache-2.0" ]
null
null
null
perfkitbenchmarker/benchmark_status.py
mdemeke/mickysbenchmarker
a61896f273577ea61a646f74bd3c4aa3d5996db2
[ "Apache-2.0" ]
1
2021-09-09T07:43:25.000Z
2021-09-09T10:47:56.000Z
perfkitbenchmarker/benchmark_status.py
mdemeke/mickysbenchmarker
a61896f273577ea61a646f74bd3c4aa3d5996db2
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 PerfKitBenchmarker Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
40.395349
80
0.634619
796726d505b73bfbc6f4bf355b13cca333bfb03c
509
py
Python
Trees/979. Distribute Coins in Binary Tree.py
thewires2/Leetcode
a37ff81d60dd9195ba637b970b40aabbea5f4680
[ "Unlicense" ]
1
2021-06-30T17:51:56.000Z
2021-06-30T17:51:56.000Z
Trees/979. Distribute Coins in Binary Tree.py
thewires2/Leetcode
a37ff81d60dd9195ba637b970b40aabbea5f4680
[ "Unlicense" ]
null
null
null
Trees/979. Distribute Coins in Binary Tree.py
thewires2/Leetcode
a37ff81d60dd9195ba637b970b40aabbea5f4680
[ "Unlicense" ]
null
null
null
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def distributeCoins(self, root: TreeNode) -> int: self.ans=0 def dfs(node): ...
28.277778
55
0.53831
796726e6e7b95044f9832abeb1609acd4b068cdc
9,980
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/aio/operations/_virtual_machine_extension_images_operations.py
dubiety/azure-sdk-for-python
62ffa839f5d753594cf0fe63668f454a9d87a346
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/aio/operations/_virtual_machine_extension_images_operations.py
ellhe-blaster/azure-sdk-for-python
82193ba5e81cc5e5e5a5239bba58abe62e86f469
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/aio/operations/_virtual_machine_extension_images_operations.py
ellhe-blaster/azure-sdk-for-python
82193ba5e81cc5e5e5a5239bba58abe62e86f469
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRe...
41.069959
211
0.668136
796727890f0886e2abaf110a2194e9c4d90ef3a3
1,302
py
Python
legacy/python/strapon/__main__.py
M3TIOR/roses-cuddly-packages
b14ac79dfeede27ac3c6d7fd82b4e1012b0361a5
[ "MIT" ]
null
null
null
legacy/python/strapon/__main__.py
M3TIOR/roses-cuddly-packages
b14ac79dfeede27ac3c6d7fd82b4e1012b0361a5
[ "MIT" ]
null
null
null
legacy/python/strapon/__main__.py
M3TIOR/roses-cuddly-packages
b14ac79dfeede27ac3c6d7fd82b4e1012b0361a5
[ "MIT" ]
null
null
null
# -- encoding=utf-8 -- # Copyright 2020 Ruby Allison Rose (aka. M3TIOR) # # 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...
37.2
82
0.764209
796729cb67b5d6084317c2ccd1ae66ffc88b4ba1
1,075
py
Python
src/routers/posts.py
er5bus/apollo-back
0a50a07917d08b176ee94c33419f10cb2a7d6fb0
[ "MIT" ]
null
null
null
src/routers/posts.py
er5bus/apollo-back
0a50a07917d08b176ee94c33419f10cb2a7d6fb0
[ "MIT" ]
null
null
null
src/routers/posts.py
er5bus/apollo-back
0a50a07917d08b176ee94c33419f10cb2a7d6fb0
[ "MIT" ]
null
null
null
from fastapi import APIRouter, Depends from typing import List from src.utils.crud_router import include_generic_collection_document_router from src.dependencies import current_active_user from src.services.posts import CommentService, PostService, PageService dependencies: List[Depends] = [Depends(current_active_us...
38.392857
76
0.767442
79672abb07e8b5d4e663a876174ea124a0aa7dd4
3,807
py
Python
struct2tensor/expression_impl/apply_schema_test.py
KendallPark/struct2tensor
7e42ed9938dfb88aa451f07b943b6308cd758411
[ "Apache-2.0" ]
2
2019-07-25T12:53:00.000Z
2019-08-18T16:26:13.000Z
struct2tensor/expression_impl/apply_schema_test.py
priyansh19/struct2tensor
1b9ada0c4018323a0549cc13437c561d39a46a05
[ "Apache-2.0" ]
null
null
null
struct2tensor/expression_impl/apply_schema_test.py
priyansh19/struct2tensor
1b9ada0c4018323a0549cc13437c561d39a46a05
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
41.380435
78
0.764907
79672b260efa525ef98b157f03ab8efa63d8b86a
108
py
Python
Course/syntax/example_40.py
zevgenia/Python_shultais
e51c31de221c5e7f36ede857a960138009ec8a05
[ "Apache-2.0" ]
null
null
null
Course/syntax/example_40.py
zevgenia/Python_shultais
e51c31de221c5e7f36ede857a960138009ec8a05
[ "Apache-2.0" ]
null
null
null
Course/syntax/example_40.py
zevgenia/Python_shultais
e51c31de221c5e7f36ede857a960138009ec8a05
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import sys #print(sys.__doc__) #print(str.upper.__doc__) print(str.isupper.__doc__)
18
26
0.703704
79672b8f6673a75d71131e4d60b60039265e6ed0
54,626
py
Python
webauthn/webauthn.py
slokhorst/py_webauthn
3507eb900aa70ad0a30fd9056bc0a3a3ff68b6fe
[ "BSD-3-Clause" ]
null
null
null
webauthn/webauthn.py
slokhorst/py_webauthn
3507eb900aa70ad0a30fd9056bc0a3a3ff68b6fe
[ "BSD-3-Clause" ]
null
null
null
webauthn/webauthn.py
slokhorst/py_webauthn
3507eb900aa70ad0a30fd9056bc0a3a3ff68b6fe
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function from __future__ import absolute_import import base64 import hashlib import json import os import struct import sys import binascii import codecs from builtins import bytes import cbor2 import six from cryptography import x509 from cryptography.exception...
42.182239
94
0.600575
79672bf22757738cbb5911c8b871d5d132d20acb
9,358
py
Python
functsql/tests/nist_tests.py
bpeterso2000/functsql
a02058a2354fc28344ead21c526a34b2ce72bd17
[ "Apache-2.0" ]
null
null
null
functsql/tests/nist_tests.py
bpeterso2000/functsql
a02058a2354fc28344ead21c526a34b2ce72bd17
[ "Apache-2.0" ]
null
null
null
functsql/tests/nist_tests.py
bpeterso2000/functsql
a02058a2354fc28344ead21c526a34b2ce72bd17
[ "Apache-2.0" ]
null
null
null
""" Based on http://www.itl.nist.gov/div897/ctg/dm/sql_examples.htm Reference docs/examples.rst for test numbers. """ import unittest from functsql.query import * from functsql.dictsql import * def avg(seq, digits=2): if iter(seq) is seq: seq = list(seq) return round(sum(seq) / len(seq), digits) cl...
43.934272
88
0.454584
79672cf01157495ce0265d2e6e3be7989444fbce
8,476
py
Python
motion/trajectory/polynomial_wrsold.py
liang324/wrs
46eadec355c61a9c7bac1fa0f3cf419b2aac19aa
[ "MIT" ]
null
null
null
motion/trajectory/polynomial_wrsold.py
liang324/wrs
46eadec355c61a9c7bac1fa0f3cf419b2aac19aa
[ "MIT" ]
null
null
null
motion/trajectory/polynomial_wrsold.py
liang324/wrs
46eadec355c61a9c7bac1fa0f3cf419b2aac19aa
[ "MIT" ]
null
null
null
import math import numpy as np class TrajPoly(object): def __init__(self, method="cubic"): if method == "cubic": self.fit = self._cubic_coeffs self.predict = self._predict_cubic elif method == "quintic": self.fit = self._quintic_coeffs self.predict ...
44.376963
112
0.524422
79672d38803bd326d619a096cbe477f54be5c2ce
1,922
py
Python
ocdsdocumentationsupport/babel_extractors.py
open-contracting/ocds-docs-base
14f21b2131c947de35be6637f6a71fe1eb375327
[ "Apache-2.0" ]
null
null
null
ocdsdocumentationsupport/babel_extractors.py
open-contracting/ocds-docs-base
14f21b2131c947de35be6637f6a71fe1eb375327
[ "Apache-2.0" ]
16
2018-06-08T04:32:58.000Z
2018-09-06T14:13:33.000Z
ocdsdocumentationsupport/babel_extractors.py
open-contracting/ocds-docs-base
14f21b2131c947de35be6637f6a71fe1eb375327
[ "Apache-2.0" ]
null
null
null
""" `Babel extractors <http://babel.pocoo.org/en/latest/messages.html>`__ for codelist CSV files and JSON Schema files. """ import csv import json import os from io import StringIO from ocdsdocumentationsupport import TRANSLATABLE_CODELIST_HEADERS, TRANSLATABLE_SCHEMA_KEYWORDS def extract_codelist(fileobj, keywords...
37.686275
115
0.635276
79672ea2734e9d9bf91f79d717b46832cdbd78dc
59,083
py
Python
ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/isisl3pseudointerface_9126bc028693cbbf9d918cf385cfa24d.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/isisl3pseudointerface_9126bc028693cbbf9d918cf385cfa24d.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/isisl3pseudointerface_9126bc028693cbbf9d918cf385cfa24d.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,...
43.032047
1,256
0.666402
79672eef1b68147e298e7d0bdc5189d598aebb6f
991
py
Python
05.Trabalhando_com_Dados _da_Internet/003.manipulaHTML.py
heliton1986/Descubra_Python
66738b295b0c5f526529ce0588fa3189eff110a1
[ "MIT" ]
null
null
null
05.Trabalhando_com_Dados _da_Internet/003.manipulaHTML.py
heliton1986/Descubra_Python
66738b295b0c5f526529ce0588fa3189eff110a1
[ "MIT" ]
null
null
null
05.Trabalhando_com_Dados _da_Internet/003.manipulaHTML.py
heliton1986/Descubra_Python
66738b295b0c5f526529ce0588fa3189eff110a1
[ "MIT" ]
null
null
null
# Exemplo de processamento e parse em HTML from html.parser import HTMLParser class meuParser(HTMLParser): # Inicio das Tags def handle_starttag(self, tag, attrs): print("Tag de abertura encontrada!") if attrs.__len__() > 0: for a in attrs: print(f"Valores encont...
29.147059
111
0.630676
79672f67b8811a6f8608fcb5bd4f38891a340898
4,051
py
Python
extraction.py
ericlee0920/Cluster-Viz
2958de21dc948931611cd1eaef5a0527ca55208d
[ "MIT" ]
null
null
null
extraction.py
ericlee0920/Cluster-Viz
2958de21dc948931611cd1eaef5a0527ca55208d
[ "MIT" ]
null
null
null
extraction.py
ericlee0920/Cluster-Viz
2958de21dc948931611cd1eaef5a0527ca55208d
[ "MIT" ]
null
null
null
import itertools import numpy as np import pandas as pd import networkx as nx from scipy.stats import zscore from scipy.spatial.distance import squareform, pdist import matplotlib.pyplot as plt """ How to use: expression_matrix, location_matrix, axis_matrix, size = read_data(pd.read_csv(network_0.csv), 5, "I...
37.859813
104
0.692422
7967302ebfce1eb40459c039ef5c1be7d8e73eea
172,815
py
Python
test/16k.py
foxueyuan/svc_ai
a81406f7fd6e8b04a0bad16adbee8d3335161fa5
[ "MIT" ]
null
null
null
test/16k.py
foxueyuan/svc_ai
a81406f7fd6e8b04a0bad16adbee8d3335161fa5
[ "MIT" ]
null
null
null
test/16k.py
foxueyuan/svc_ai
a81406f7fd6e8b04a0bad16adbee8d3335161fa5
[ "MIT" ]
null
null
null
TEST_16K = b'sv/o/wIA+v8GAAoA9v/a/+b/9v/w/+D/8v8aABQA9P8OAP7/2P/4/wYA8v/u/y4AOAAYAC4AMAA2ACIAKAA2AB4ABADq/wwAGAAWACoAHAA4AFIAQAAaAB4ALgAgAAYA2P/o/+7/EgA8ADoASgASAPj/FAAEAAwAIAAwADoADACw/57/0v/0/x4AMgA8ADoABAC2/47/oP/E/+z/+P/a/87/7v8OAPr/1P/S/9j/wP/K//z/IgA8AB4A+v/s/9r/+P/m/8D/2P/y/wQA9P/e/+D//P/w/7b/1P/o//z/GgAOAOr/xP/...
86,407.5
172,814
0.812962
796730646afbe8c481474c6f6e15c683796e1753
2,264
py
Python
scripts/helper/tex_helper.py
lovaulonze/nice_pub_figure
311c04f6bc97f5a22c3bdf75ef1d192dfa8475a7
[ "MIT" ]
null
null
null
scripts/helper/tex_helper.py
lovaulonze/nice_pub_figure
311c04f6bc97f5a22c3bdf75ef1d192dfa8475a7
[ "MIT" ]
null
null
null
scripts/helper/tex_helper.py
lovaulonze/nice_pub_figure
311c04f6bc97f5a22c3bdf75ef1d192dfa8475a7
[ "MIT" ]
null
null
null
# Handled several things about TeX output import re from tempfile import gettempdir from pathlib import Path from subprocess import run from .path_helper import tex_path, script_path tex_file = tex_path / ".test.tex" # header_file = tex_path / "header.tex" # simple header file header_file = tex_path / "preamble_pl...
31.013699
75
0.55212
7967306c43ec2158fa69c022aaa01a341141334a
10,827
py
Python
tests/auth_tests/test_models.py
ioinfinity/django
b6a0ab523751c13ae3eaec102de70f58f73a0d94
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
tests/auth_tests/test_models.py
ioinfinity/django
b6a0ab523751c13ae3eaec102de70f58f73a0d94
[ "PSF-2.0", "BSD-3-Clause" ]
1
2020-07-02T21:10:44.000Z
2020-07-02T21:11:21.000Z
tests/auth_tests/test_models.py
ioinfinity/django
b6a0ab523751c13ae3eaec102de70f58f73a0d94
[ "PSF-2.0", "BSD-3-Clause" ]
1
2020-08-11T18:46:32.000Z
2020-08-11T18:46:32.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.conf.global_settings import PASSWORD_HASHERS from django.contrib.auth import get_user_model from django.contrib.auth.hashers import get_hasher from django.contrib.auth.models import ( AbstractUser, Group, Permission, User, UserManager, ) f...
37.856643
102
0.656969
7967311777c98533e33e3a0f88fcc475b1d5edb5
508
py
Python
Input/dynamic_file_variables.py
oyvorha/TIO4905
009fda350bb2cbf0dc50564db0e30255d30cb134
[ "MIT" ]
null
null
null
Input/dynamic_file_variables.py
oyvorha/TIO4905
009fda350bb2cbf0dc50564db0e30255d30cb134
[ "MIT" ]
null
null
null
Input/dynamic_file_variables.py
oyvorha/TIO4905
009fda350bb2cbf0dc50564db0e30255d30cb134
[ "MIT" ]
2
2019-11-14T07:42:43.000Z
2020-02-03T13:28:10.000Z
class DynamicFileVariables: def __init__(self): self.start_stations = [3, 4] self.init_vehicle_load = [5, 6] self.init_station_load = [0, 1, 8, 3, 2, 0] self.init_flat_station_load = [0, 6, 2, 6, 7, 0] self.ideal_state = [0, 5, 5, 5, 5, 0] self.driving_to_start = [3...
36.285714
63
0.549213
7967323d7b002e47653d12e07e446dcd4cdb396d
1,557
py
Python
indico/web/http_api/metadata/atom.py
bkmgit/indico
d77ee121e35880a416b9b05e6098ea912d870b5c
[ "MIT" ]
1
2021-06-11T20:02:10.000Z
2021-06-11T20:02:10.000Z
indico/web/http_api/metadata/atom.py
bkmgit/indico
d77ee121e35880a416b9b05e6098ea912d870b5c
[ "MIT" ]
null
null
null
indico/web/http_api/metadata/atom.py
bkmgit/indico
d77ee121e35880a416b9b05e6098ea912d870b5c
[ "MIT" ]
null
null
null
# This file is part of Indico. # Copyright (C) 2002 - 2022 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. from datetime import datetime import dateutil.parser from feedgen.feed import FeedGenerator from pytz imp...
31.77551
84
0.665382
79673399595ccd37af886ab5c85b95c38ff58357
1,249
py
Python
pyscf/nao/test/test_0061_gw_rescf_g0w0_h2o.py
robert-anderson/pyscf
cdc56e168cb15f47e8cdc791a92d689fa9b655af
[ "Apache-2.0" ]
2
2019-05-28T05:25:56.000Z
2019-11-09T02:16:43.000Z
pyscf/nao/test/test_0061_gw_rescf_g0w0_h2o.py
robert-anderson/pyscf
cdc56e168cb15f47e8cdc791a92d689fa9b655af
[ "Apache-2.0" ]
2
2019-09-16T17:58:31.000Z
2019-09-22T17:26:01.000Z
pyscf/nao/test/test_0061_gw_rescf_g0w0_h2o.py
robert-anderson/pyscf
cdc56e168cb15f47e8cdc791a92d689fa9b655af
[ "Apache-2.0" ]
1
2019-11-09T02:13:16.000Z
2019-11-09T02:13:16.000Z
from __future__ import print_function, division import os,unittest,numpy as np from pyscf.nao import gw as gw_c class KnowValues(unittest.TestCase): def test_rescf(self): """ reSCF then G0W0 """ fc = \ """-1.176137582599898090e+00 -6.697973984258517310e-01 -5.155143130039178123e-01 -4.36544872408...
27.755556
118
0.772618
79673530b7d77e88d15e4400efeae7120af6d0ea
2,328
py
Python
tests/common/ptf_agent_updater.py
congh-nvidia/sonic-mgmt
05094321ed58270ac06d1a0ef575a4ab9ea3ddd6
[ "Apache-2.0" ]
2
2021-11-24T09:33:41.000Z
2021-12-03T09:08:29.000Z
tests/common/ptf_agent_updater.py
congh-nvidia/sonic-mgmt
05094321ed58270ac06d1a0ef575a4ab9ea3ddd6
[ "Apache-2.0" ]
null
null
null
tests/common/ptf_agent_updater.py
congh-nvidia/sonic-mgmt
05094321ed58270ac06d1a0ef575a4ab9ea3ddd6
[ "Apache-2.0" ]
null
null
null
PTF_NN_AGENT_CONF = '/etc/supervisor/conf.d/ptf_nn_agent.conf' class PtfAgentUpdater(object): """ PtfAgentUpdater class for updating ptf_nn_agent on PTF host """ def __init__(self, ptfhost, ptfadapter, ptf_nn_agent_template): """ Initialize an object for updating ptf_nn_agent ...
35.272727
114
0.662801
79673579a5851bcd2701c87d254e5dbf2d525e6c
506
py
Python
src/py/statiskit/core/base.py
StatisKit/Core
79d8ec07c203eb7973a6cf482852ddb2e8e1e93e
[ "Apache-2.0" ]
null
null
null
src/py/statiskit/core/base.py
StatisKit/Core
79d8ec07c203eb7973a6cf482852ddb2e8e1e93e
[ "Apache-2.0" ]
7
2018-03-20T14:23:16.000Z
2019-04-09T11:57:57.000Z
src/py/statiskit/core/base.py
StatisKit/Core
79d8ec07c203eb7973a6cf482852ddb2e8e1e93e
[ "Apache-2.0" ]
7
2017-04-28T07:41:01.000Z
2021-03-15T18:17:20.000Z
from functools import wraps from . import _core from .__core.statiskit import (_Optimization,) __all__ = [] def optimization_decorator(cls): cls.minits = property(cls.get_minits, cls.set_minits) del cls.get_minits, cls.set_minits cls.maxits = property(cls.get_maxits, cls.set_maxits) del cls.get_max...
24.095238
60
0.749012
7967358666c1871c63f181874c64cb034fe1549b
6,421
py
Python
SSTCN-for-SLR/train_parallel.py
Sun1992/T-Pose-model-for-SLR
301087fd14f1c36c6b922c075269aa398120defa
[ "CC0-1.0" ]
9
2021-03-24T05:10:18.000Z
2022-01-28T18:00:48.000Z
SSTCN-for-SLR/train_parallel.py
Sun1992/T-Pose-model-for-SLR
301087fd14f1c36c6b922c075269aa398120defa
[ "CC0-1.0" ]
null
null
null
SSTCN-for-SLR/train_parallel.py
Sun1992/T-Pose-model-for-SLR
301087fd14f1c36c6b922c075269aa398120defa
[ "CC0-1.0" ]
1
2021-06-09T03:28:22.000Z
2021-06-09T03:28:22.000Z
import torch import sys import numpy as np import itertools from SSTCN_Pose_model import * from load_newfeature import * from torch.utils.data import DataLoader from torch.autograd import Variable import torch.nn.parallel import argparse import time import datetime if __name__ == "__main__": parser = argparse.Argu...
38.680723
121
0.581218
796735cb3e8f257c9ce80ed2d307d59eb4eb6c4b
2,390
py
Python
example/research/signal_return_ic_analysis_single.py
WestXu/JAQS
3c9389afab518f188b8628af72297d750c07dfb1
[ "Apache-2.0" ]
602
2017-11-21T00:39:40.000Z
2022-03-16T06:13:08.000Z
example/research/signal_return_ic_analysis_single.py
WestXu/JAQS
3c9389afab518f188b8628af72297d750c07dfb1
[ "Apache-2.0" ]
63
2017-12-08T08:21:16.000Z
2020-03-07T13:57:35.000Z
example/research/signal_return_ic_analysis_single.py
WestXu/JAQS
3c9389afab518f188b8628af72297d750c07dfb1
[ "Apache-2.0" ]
365
2017-11-21T01:38:36.000Z
2022-03-30T15:55:30.000Z
# encoding: utf-8 from __future__ import unicode_literals import numpy as np import pandas as pd from jaqs.data import DataView from jaqs.data import RemoteDataService from jaqs.research import SignalDigger import jaqs.util as jutil from config_path import DATA_CONFIG_PATH data_config = jutil.read_json(DATA_CONFIG_P...
36.769231
93
0.468619
796735eda91d4c4250f61609a1f62dab28b7e8c7
1,244
py
Python
cwbot/kolextra/request/CustomOutfitListRequest.py
DamianDominoDavis/cwbot-ndy
53b826232eadb7ef558f568872a945d04d8d4252
[ "BSD-3-Clause" ]
null
null
null
cwbot/kolextra/request/CustomOutfitListRequest.py
DamianDominoDavis/cwbot-ndy
53b826232eadb7ef558f568872a945d04d8d4252
[ "BSD-3-Clause" ]
1
2021-03-02T21:41:31.000Z
2021-03-02T21:41:31.000Z
cwbot/kolextra/request/CustomOutfitListRequest.py
DamianDominoDavis/cwbot-ndy
53b826232eadb7ef558f568872a945d04d8d4252
[ "BSD-3-Clause" ]
4
2018-05-01T01:06:41.000Z
2021-03-02T17:49:43.000Z
import re from kol.request.GenericRequest import GenericRequest class CustomOutfitListRequest(GenericRequest): """Gets a list of custom outfits""" _matcher = re.compile(r'(?i)<b>#(\d+)</b></td><td><input type=text class=text size=30 name=name(?:\d*) value="([^"]+)"></td><td align=center><input type=checkbox n...
46.074074
296
0.605305
796736868e4d5fca6aa07dd01265f9a721815a2b
6,435
py
Python
generations.py
raulorteg/cellular-automata101
de7731c10cd8adc9a42d0049922016747886d63f
[ "MIT" ]
null
null
null
generations.py
raulorteg/cellular-automata101
de7731c10cd8adc9a42d0049922016747886d63f
[ "MIT" ]
null
null
null
generations.py
raulorteg/cellular-automata101
de7731c10cd8adc9a42d0049922016747886d63f
[ "MIT" ]
null
null
null
""" Created on Fri April 9 2021 @author: Raul Ortega """ import pygame import numpy as np import random import argparse import copy from time import sleep import matplotlib.pyplot as plt from numba import jit # RGB colors of cells BLACK = (0, 0, 0) WHITE = (255, 255, 255) GRAY = (211,211,211) # Dime...
33
110
0.558197
7967369f94e25bea3252353a6c8dd0c6b59862b1
1,459
py
Python
Data_preparation/images_to_numpy.py
Rukaume/LRCN
0d1928cc72544f59a4335fea7febc561d3dfc118
[ "MIT" ]
1
2020-11-07T05:57:32.000Z
2020-11-07T05:57:32.000Z
Data_preparation/images_to_numpy.py
Rukaume/LRCN
0d1928cc72544f59a4335fea7febc561d3dfc118
[ "MIT" ]
1
2020-11-07T00:30:22.000Z
2021-01-26T02:22:16.000Z
Data_preparation/images_to_numpy.py
Rukaume/LRCN
0d1928cc72544f59a4335fea7febc561d3dfc118
[ "MIT" ]
1
2020-11-07T05:57:52.000Z
2020-11-07T05:57:52.000Z
# -*- coding: utf-8 -*- """ Created on Thu Sep 3 09:30:18 2020 @author: miyas This script is for converting Images to Numpy binary file. """ import pandas as pd from tkinter import messagebox from tkinter import filedialog import tkinter import numpy as np from scipy import stats import matplotlib.pyplot as plt impo...
23.532258
80
0.694311
7967372623880ab1304d441e8290faba7818ce52
189
py
Python
investing_algorithm_framework/core/workers/__init__.py
investing-algorithms/investing-algorithm-framework
d579e142a3857e2e2dfb59b7d6e54202f7df5466
[ "Apache-2.0" ]
1
2019-12-23T21:23:45.000Z
2019-12-23T21:23:45.000Z
investing_algorithm_framework/core/workers/__init__.py
investing-algorithms/investing-algorithm-framework
d579e142a3857e2e2dfb59b7d6e54202f7df5466
[ "Apache-2.0" ]
null
null
null
investing_algorithm_framework/core/workers/__init__.py
investing-algorithms/investing-algorithm-framework
d579e142a3857e2e2dfb59b7d6e54202f7df5466
[ "Apache-2.0" ]
1
2019-12-23T21:23:50.000Z
2019-12-23T21:23:50.000Z
from investing_algorithm_framework.core.workers.strategy_worker import \ Strategy from investing_algorithm_framework.core.workers.worker import Worker __all__ = ['Worker', 'Strategy']
31.5
72
0.825397
7967373427c4938964f49d3e49af5404f5f8479f
3,931
py
Python
metaworld/envs/mujoco/sawyer_xyz/v1/sawyer_button_press.py
rmrafailov/metaworld
463f1afb1bffbe1fa6b50715ee4a1eeff7c4f463
[ "MIT" ]
3
2021-06-25T03:35:59.000Z
2022-03-02T00:08:57.000Z
metaworld/envs/mujoco/sawyer_xyz/v1/sawyer_button_press.py
zchuning/metaworld
b2cd055e5f2413ec6d66ef29e45d05af989dca3b
[ "MIT" ]
null
null
null
metaworld/envs/mujoco/sawyer_xyz/v1/sawyer_button_press.py
zchuning/metaworld
b2cd055e5f2413ec6d66ef29e45d05af989dca3b
[ "MIT" ]
1
2021-11-25T14:55:37.000Z
2021-11-25T14:55:37.000Z
import numpy as np from gym.spaces import Box from metaworld.envs.asset_path_utils import full_v1_path_for from metaworld.envs.mujoco.sawyer_xyz.sawyer_xyz_env import SawyerXYZEnv, _assert_task_is_set class SawyerButtonPressEnv(SawyerXYZEnv): def __init__(self): hand_low = (-0.5, 0.40, 0.05) han...
31.95935
117
0.598321
7967376e380b9ded53547800e46d2cab2d1fcf7c
3,467
py
Python
huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/show_partners_service_info_response.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
64
2020-06-12T07:05:07.000Z
2022-03-30T03:32:50.000Z
huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/show_partners_service_info_response.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
11
2020-07-06T07:56:54.000Z
2022-01-11T11:14:40.000Z
huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/show_partners_service_info_response.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
24
2020-06-08T11:42:13.000Z
2022-03-04T06:44:08.000Z
# coding: utf-8 import re import six from huaweicloudsdkcore.sdk_response import SdkResponse from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class ShowPartnersServiceInfoResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name ...
30.681416
104
0.609461
796737c291d4dac291076958c851b1a11f2225cd
7,271
py
Python
sandbox_code/viz_explore_two_arrival_story.py
liuvictoria/sleepingbeauty
e165bea614d58ddd2c5c2a860df622241065cf47
[ "MIT" ]
null
null
null
sandbox_code/viz_explore_two_arrival_story.py
liuvictoria/sleepingbeauty
e165bea614d58ddd2c5c2a860df622241065cf47
[ "MIT" ]
null
null
null
sandbox_code/viz_explore_two_arrival_story.py
liuvictoria/sleepingbeauty
e165bea614d58ddd2c5c2a860df622241065cf47
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.3' # jupytext_version: 0.8.6 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- """ code to generate Figure 2, ...
24.399329
124
0.62041
7967396c0415f8a688cc704a873677a8c19cf724
743
py
Python
PrettyScanner.py
cocomo29/PrettyScanner
0a22514f335e87e67f11aa374ab53f6984bfe6f2
[ "MIT" ]
null
null
null
PrettyScanner.py
cocomo29/PrettyScanner
0a22514f335e87e67f11aa374ab53f6984bfe6f2
[ "MIT" ]
null
null
null
PrettyScanner.py
cocomo29/PrettyScanner
0a22514f335e87e67f11aa374ab53f6984bfe6f2
[ "MIT" ]
null
null
null
import socket from termcolor import colored sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) socket.setdefaulttimeout(0.01) def portscanner(port): if sock.connect_ex((host,port)): print(colored("[-] Port {} is closed".format(port),"red")) else: print(colored("[+] Port {} is open".for...
24.766667
86
0.632571
7967397f5f26d9b7cc2835d8acd25be5336c2749
2,142
py
Python
python_challenges/project_euler/p065_convergents_of_e.py
bruckhaus/challenges
c53d13fa89bd5ac0436310a6cfe82cfc3b2d122f
[ "MIT" ]
1
2015-09-28T18:05:39.000Z
2015-09-28T18:05:39.000Z
python_challenges/project_euler/p065_convergents_of_e.py
bruckhaus/challenges
c53d13fa89bd5ac0436310a6cfe82cfc3b2d122f
[ "MIT" ]
null
null
null
python_challenges/project_euler/p065_convergents_of_e.py
bruckhaus/challenges
c53d13fa89bd5ac0436310a6cfe82cfc3b2d122f
[ "MIT" ]
2
2016-09-21T00:42:51.000Z
2017-11-28T19:56:00.000Z
# coding=utf-8 """ Convergents of e Problem 65 The square root of 2 can be written as an infinite continued fraction. √2 = 1 + 1 / (2 + 1 / (2 + 1 / (2 + 1 / (2 + ... The infinite continued fraction can be written, √2 = [1;(2)], (2) indicates that 2 repeats ad infinitum. In a similar way, √23 = [4;(1,3,1,8)]. It turn...
38.25
119
0.655462
79673a1a4f4f66e5c0a757640e155659baaf00e5
15,371
py
Python
tensorflow_probability/python/distributions/beta_test.py
sanket-kamthe/probability
c22b6201155c2e58d08a4ad30641d1aff59fbe7c
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/distributions/beta_test.py
sanket-kamthe/probability
c22b6201155c2e58d08a4ad30641d1aff59fbe7c
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/distributions/beta_test.py
sanket-kamthe/probability
c22b6201155c2e58d08a4ad30641d1aff59fbe7c
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Probability 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 o...
37.581907
80
0.644656
79673b3c861e68f7190a4805157a84b8f9ced469
2,582
py
Python
UIs/resultPan..py
DaraSamii/EnglishWordQuiz
4cc807f89a5e8456836b2ccbb99a2b7e6b681369
[ "MIT" ]
1
2020-07-13T05:15:48.000Z
2020-07-13T05:15:48.000Z
UIs/resultPan..py
DaraSamii/EnglishWordQuiz
4cc807f89a5e8456836b2ccbb99a2b7e6b681369
[ "MIT" ]
null
null
null
UIs/resultPan..py
DaraSamii/EnglishWordQuiz
4cc807f89a5e8456836b2ccbb99a2b7e6b681369
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file '.\resultPan.ui' # # Created by: PyQt5 UI code generator 5.15.0 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 impor...
42.327869
76
0.698683
79673e0e57f7a74a318c1f836af0df5bf1c59ac4
774
py
Python
daiquiri/auth/migrations/0011_meta.py
agy-why/daiquiri
4d3e2ce51e202d5a8f1df404a0094a4e018dcb4d
[ "Apache-2.0" ]
14
2018-12-23T18:35:02.000Z
2021-12-15T04:55:12.000Z
daiquiri/auth/migrations/0011_meta.py
agy-why/daiquiri
4d3e2ce51e202d5a8f1df404a0094a4e018dcb4d
[ "Apache-2.0" ]
40
2018-12-20T12:44:05.000Z
2022-03-21T11:35:20.000Z
daiquiri/auth/migrations/0011_meta.py
agy-why/daiquiri
4d3e2ce51e202d5a8f1df404a0094a4e018dcb4d
[ "Apache-2.0" ]
5
2019-05-16T08:03:35.000Z
2021-08-23T20:03:11.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.12 on 2018-05-16 11:20 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('daiquiri_auth', '0010_profile_consent'), ] operations = [ migrations.Alter...
29.769231
132
0.642119
79673f1308d258cc3e3479a3b1b513dcd7eacfe2
16,043
py
Python
simulation.py
mscschliemann/customer_simulation
95df976db1a41e3ba6933ef1ca420ceafa10a138
[ "MIT" ]
1
2020-09-29T13:27:48.000Z
2020-09-29T13:27:48.000Z
simulation.py
mscschliemann/customer_simulation
95df976db1a41e3ba6933ef1ca420ceafa10a138
[ "MIT" ]
null
null
null
simulation.py
mscschliemann/customer_simulation
95df976db1a41e3ba6933ef1ca420ceafa10a138
[ "MIT" ]
1
2020-09-29T17:25:52.000Z
2020-09-29T17:25:52.000Z
import os import random import pandas as pd import numpy as np from PIL import Image from PIL import GifImagePlugin from PIL import ImageFont from PIL import ImageDraw cwd = os.getcwd() class Goods(): def __init__(self): self.goods = {'drinks': [(9,4), (9,5), (9,6), (13,6)], ...
48.468278
125
0.431403
796740094723dba24e6216f40b73336bd4b740b2
221
py
Python
src/auth/adapters/user_adapter.py
Midburn/midburn-profiles-django
e124a617986931baed0b17f5d7a1ba6c7d5528e9
[ "MIT" ]
null
null
null
src/auth/adapters/user_adapter.py
Midburn/midburn-profiles-django
e124a617986931baed0b17f5d7a1ba6c7d5528e9
[ "MIT" ]
20
2019-10-05T13:23:47.000Z
2022-03-11T23:37:37.000Z
src/auth/adapters/user_adapter.py
Midburn/midburn-profiles-django
e124a617986931baed0b17f5d7a1ba6c7d5528e9
[ "MIT" ]
1
2019-09-30T11:40:45.000Z
2019-09-30T11:40:45.000Z
from allauth.account.adapter import DefaultAccountAdapter class CustomAccountAdapter(DefaultAccountAdapter): def send_mail(self, template_prefix, email, context): print(template_prefix, email) pass
24.555556
57
0.769231
7967403740b663b7ea73435d97c262e1800878b2
9,475
py
Python
pycounter/test/test_sushi.py
yannsta/pycounter
7171b234dba3f575de4deefb3acbcf683c30c1b6
[ "MIT" ]
60
2015-04-02T14:46:52.000Z
2022-03-25T06:37:39.000Z
pycounter/test/test_sushi.py
yannsta/pycounter
7171b234dba3f575de4deefb3acbcf683c30c1b6
[ "MIT" ]
99
2015-04-02T18:54:44.000Z
2020-08-25T19:42:12.000Z
pycounter/test/test_sushi.py
yannsta/pycounter
7171b234dba3f575de4deefb3acbcf683c30c1b6
[ "MIT" ]
23
2015-04-17T23:17:14.000Z
2021-08-04T14:26:40.000Z
"""Tests for pycounter.sushi""" import datetime import logging import os from click.testing import CliRunner from httmock import HTTMock, urlmatch import mock import pytest from pycounter import sushi from pycounter import sushiclient import pycounter.exceptions @urlmatch(netloc=r"(.*\.)?example\.com$") def report_...
29.517134
86
0.67124
796740c46909ecd6958b81f5259d938b730f99b8
7,430
py
Python
litex/soc/cores/cpu/ibex/core.py
JosephBushagour/litex
2b49430f2c53c4a8caa66b678af4660127b546e4
[ "ADSL" ]
3
2020-09-22T08:06:25.000Z
2021-12-28T23:09:28.000Z
litex/soc/cores/cpu/ibex/core.py
JosephBushagour/litex
2b49430f2c53c4a8caa66b678af4660127b546e4
[ "ADSL" ]
null
null
null
litex/soc/cores/cpu/ibex/core.py
JosephBushagour/litex
2b49430f2c53c4a8caa66b678af4660127b546e4
[ "ADSL" ]
1
2022-01-26T04:52:58.000Z
2022-01-26T04:52:58.000Z
# # This file is part of LiteX. # # Copyright (c) 2021 Florent Kermarrec <florent@enjoy-digital.fr> # Copyright (c) 2020 Antmicro <www.antmicro.com> # SPDX-License-Identifier: BSD-2-Clause import os from migen import * from litex import get_data_mod from litex.soc.interconnect import wishbone from litex.soc.cores.cp...
32.445415
100
0.474428
796741662208d120744851770109022b04879e99
6,064
py
Python
rtdm_analyze/db.py
vasyanch/gpbhack_not_set
a5015b2702021a70d882afb161b7c145e56cccda
[ "MIT" ]
null
null
null
rtdm_analyze/db.py
vasyanch/gpbhack_not_set
a5015b2702021a70d882afb161b7c145e56cccda
[ "MIT" ]
null
null
null
rtdm_analyze/db.py
vasyanch/gpbhack_not_set
a5015b2702021a70d882afb161b7c145e56cccda
[ "MIT" ]
1
2021-05-31T13:25:35.000Z
2021-05-31T13:25:35.000Z
import os from sqlalchemy import create_engine, Column, Integer, String, ForeignKey, Table from sqlalchemy.orm import registry, relationship, Session mapper_registry = registry() Base = mapper_registry.generate_base() SCHEMA = "RTDM_TECH" db_url = os.getenv("RTDM_ANALYZER_DB_URL") campaigns_blocks_data_processe...
38.624204
119
0.669525
7967417a12fbb0a2104afeae97bbfc082fe4028f
3,316
py
Python
Source/JackBasicStructLib/ImgProc/DataAugmentation.py
NPU-IAP/NLCA-Net
a5e03dd8370a8fa41552155aabaf8fb531b0ac22
[ "MIT" ]
9
2020-07-31T10:00:48.000Z
2022-03-23T06:14:14.000Z
Source/JackBasicStructLib/ImgProc/DataAugmentation.py
NPU-IAP/NLCA-Net
a5e03dd8370a8fa41552155aabaf8fb531b0ac22
[ "MIT" ]
4
2020-10-17T12:58:24.000Z
2022-02-10T03:34:40.000Z
Source/JackBasicStructLib/ImgProc/DataAugmentation.py
NPU-IAP/NLCA-Net
a5e03dd8370a8fa41552155aabaf8fb531b0ac22
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from JackBasicStructLib.Basic.Define import * def RandomOrg(w, h, crop_w, crop_h): x = random.randint(0, w - crop_w) y = random.randint(0, h - crop_h) return x, y def VerticalFlip(imgL, imgR, disp_gt, cls_gt): flip_prop = np.random.randint(low=0, high=2) if flip_prop == ...
29.087719
79
0.588963
796742832becd9376d9f4aeeea9d21e1ba36ad8f
6,343
py
Python
admin/views.py
dob9601/CollaboDev
cb1c3e3c6106ec8b0db8b570204b7fd959e0284e
[ "MIT" ]
7
2018-01-22T23:21:42.000Z
2021-01-27T12:06:02.000Z
admin/views.py
ViesLink/CollaboDev
1ab51f4d5e58dd8610861095632e1cd7f91edc21
[ "MIT" ]
9
2018-03-05T23:54:12.000Z
2022-02-10T10:54:56.000Z
admin/views.py
ViesLink/CollaboDev
1ab51f4d5e58dd8610861095632e1cd7f91edc21
[ "MIT" ]
2
2020-09-30T01:27:27.000Z
2021-01-27T12:05:46.000Z
"""Views for admin app.""" import random import os import requests from django.shortcuts import render from django.contrib.auth.models import User from django.contrib.auth.decorators import user_passes_test from django.http import HttpResponseRedirect, JsonResponse from django.urls import reverse from djan...
31.715
80
0.610752
796742929f0ee7eb714bc69a3d45218db039e9c9
23,965
py
Python
scss/extension/core.py
asergi/pyScss
42b7e5270407b1abd8063a11080ea5ea987076eb
[ "MIT" ]
null
null
null
scss/extension/core.py
asergi/pyScss
42b7e5270407b1abd8063a11080ea5ea987076eb
[ "MIT" ]
null
null
null
scss/extension/core.py
asergi/pyScss
42b7e5270407b1abd8063a11080ea5ea987076eb
[ "MIT" ]
null
null
null
"""Extension for built-in Sass functionality.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from itertools import product import math import os.path from pathlib import PurePosixPath from six.moves import xrange ...
26.836506
80
0.612226
7967436e549a4acae483bf940248b8c7a544d839
1,802
py
Python
built-in/PyTorch/Official/cv/image_object_detection/YoloV3_ID1790_for_PyTorch/configs/hrnet/cascade_mask_rcnn_hrnetv2p_w32_20e_coco.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
12
2020-12-13T08:34:24.000Z
2022-03-20T15:17:17.000Z
built-in/PyTorch/Official/cv/image_object_detection/YoloV3_ID1790_for_PyTorch/configs/hrnet/cascade_mask_rcnn_hrnetv2p_w32_20e_coco.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
1
2022-01-20T03:11:05.000Z
2022-01-20T06:53:39.000Z
built-in/PyTorch/Official/cv/image_object_detection/YoloV3_ID1790_for_PyTorch/configs/hrnet/cascade_mask_rcnn_hrnetv2p_w32_20e_coco.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
2
2021-07-10T12:40:46.000Z
2021-12-17T07:55:15.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
33.37037
74
0.560488
7967445bef700d076274046548db68355d653ebb
18,054
py
Python
tests/test_grizzly/users/test_servicebus.py
boffman/grizzly
eabe7b8f6cd7098914a1473928135c1e05758af7
[ "MIT" ]
null
null
null
tests/test_grizzly/users/test_servicebus.py
boffman/grizzly
eabe7b8f6cd7098914a1473928135c1e05758af7
[ "MIT" ]
9
2022-01-05T08:53:41.000Z
2022-03-31T07:26:05.000Z
tests/test_grizzly/users/test_servicebus.py
boffman/grizzly
eabe7b8f6cd7098914a1473928135c1e05758af7
[ "MIT" ]
null
null
null
import logging from typing import cast import pytest from pytest_mock import MockerFixture from _pytest.logging import LogCaptureFixture from locust.exception import StopUser from zmq.sugar.constants import REQ as ZMQ_REQ from zmq.error import Again as ZMQAgain from grizzly.users.base import GrizzlyUser, RequestLog...
42.985714
150
0.634375
7967448c9a52136d73f2ccefbcc28646f5344942
1,216
py
Python
script.module.streamlink.base/resources/lib/streamlink/plugins/younow.py
bobbybark/tantrumrepo
1451c481254d3fedec9f430139d18db7312a9b1a
[ "Beerware" ]
3
2020-03-03T13:21:44.000Z
2021-07-21T09:53:31.000Z
script.module.streamlink.base/resources/lib/streamlink/plugins/younow.py
eggman19/tantrumrepo
1451c481254d3fedec9f430139d18db7312a9b1a
[ "Beerware" ]
null
null
null
script.module.streamlink.base/resources/lib/streamlink/plugins/younow.py
eggman19/tantrumrepo
1451c481254d3fedec9f430139d18db7312a9b1a
[ "Beerware" ]
1
2018-08-30T20:04:34.000Z
2018-08-30T20:04:34.000Z
"""Plugin for younow.com by WeinerRinkler""" import re from streamlink.plugin import Plugin from streamlink.plugin.api import http from streamlink.stream import RTMPStream jsonapi = "https://api.younow.com/php/api/broadcast/info/curId=0/user=" _url_re = re.compile(r"http(s)?://(\w+.)?younow.com/(?P<channel>[^/&?]+)...
24.32
99
0.620066
796747ac34c59c4c614ed469e262b54a0e0f9fe8
3,888
py
Python
elenasTest/core/settings.py
DavidRoldan523/elenas_test
8b520fae68a275654a42ad761713c9c932d17a76
[ "MIT" ]
null
null
null
elenasTest/core/settings.py
DavidRoldan523/elenas_test
8b520fae68a275654a42ad761713c9c932d17a76
[ "MIT" ]
null
null
null
elenasTest/core/settings.py
DavidRoldan523/elenas_test
8b520fae68a275654a42ad761713c9c932d17a76
[ "MIT" ]
null
null
null
""" Django settings for elenasTest project. Generated by 'django-admin startproject' using Django 3.0.11. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import o...
25.411765
91
0.685957
796747eaa03ae32e1cd6acdfb6d46c4f990176c8
721
py
Python
mpesa/migrations/0007_auto_20220121_0911.py
mainaerick/django-mpesa
8035e0ba818f6700b6af5eff9ec3de1548cafcb7
[ "BSD-2-Clause" ]
1
2022-02-16T23:15:56.000Z
2022-02-16T23:15:56.000Z
mpesa/migrations/0007_auto_20220121_0911.py
mainaerick/django-mpesa
8035e0ba818f6700b6af5eff9ec3de1548cafcb7
[ "BSD-2-Clause" ]
null
null
null
mpesa/migrations/0007_auto_20220121_0911.py
mainaerick/django-mpesa
8035e0ba818f6700b6af5eff9ec3de1548cafcb7
[ "BSD-2-Clause" ]
null
null
null
# Generated by Django 2.2.20 on 2022-01-21 09:11 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('mpesa', '0006_auto_20220108_1033'), ] operations = [ migrations.RenameField( model_name='paymenttransaction', old_name='che...
24.862069
48
0.588072
7967489e2e8ae587d85cebadfcd0bf279f33ffe2
6,637
py
Python
tests/roots/test-base/target/configuration.py
lilyminium/autodoc_pydantic
c9bc8430e5341863370f27b7d6cb1a2568e14b04
[ "MIT" ]
46
2021-04-03T20:54:14.000Z
2022-03-21T22:56:27.000Z
tests/roots/test-base/target/configuration.py
lilyminium/autodoc_pydantic
c9bc8430e5341863370f27b7d6cb1a2568e14b04
[ "MIT" ]
74
2021-04-05T22:18:02.000Z
2022-03-31T22:59:13.000Z
tests/roots/test-base/target/configuration.py
lilyminium/autodoc_pydantic
c9bc8430e5341863370f27b7d6cb1a2568e14b04
[ "MIT" ]
6
2021-05-04T12:03:06.000Z
2022-03-30T13:25:51.000Z
from pydantic import BaseModel, validator, Field, BaseSettings, root_validator class ModelShowJson(BaseModel): """ModelShowJson.""" class ModelShowConfigSummary(BaseModel): """ModelShowConfigSummary.""" class Config: title: str = "FooBar" allow_mutation: bool = True class ModelShowVal...
18.035326
78
0.608558
79674a9212a839fd181fc721f84c3b6777e467b6
6,988
py
Python
zhi/twopc.py
Rustem/ZLU
9e050bdbc317f6fbddb4eed64d9ebdec995a9add
[ "MIT" ]
1
2017-08-26T14:47:48.000Z
2017-08-26T14:47:48.000Z
zhi/twopc.py
Rustem/ZLU
9e050bdbc317f6fbddb4eed64d9ebdec995a9add
[ "MIT" ]
null
null
null
zhi/twopc.py
Rustem/ZLU
9e050bdbc317f6fbddb4eed64d9ebdec995a9add
[ "MIT" ]
null
null
null
from kazoo.retry import ( KazooRetry, RetryFailedError, ForceRetryError ) from kazoo.client import KazooClient import json import functools import logging logging.basicConfig() class TwoPCState(object): BEGIN = 'begin' PREPARE = 'prep' COMMIT = 'commit' ACK_COMMIT = 'ack_commit' ABOR...
32.055046
110
0.584717
79674ac44f49d6fd7be967e74356df2363f2c848
17,407
py
Python
perfectextractor/apps/extractor/base.py
UUDigitalHumanitieslab/time-in-translation
2b1a3ef2d382b725ec87f0266fc726fbeb818e7b
[ "MIT" ]
3
2020-04-22T15:12:58.000Z
2021-05-31T16:36:23.000Z
perfectextractor/apps/extractor/base.py
UUDigitalHumanitieslab/time-in-translation
2b1a3ef2d382b725ec87f0266fc726fbeb818e7b
[ "MIT" ]
13
2017-08-17T13:31:40.000Z
2022-03-11T10:29:22.000Z
perfectextractor/apps/extractor/base.py
UUDigitalHumanitieslab/time-in-translation
2b1a3ef2d382b725ec87f0266fc726fbeb818e7b
[ "MIT" ]
1
2020-04-16T10:33:05.000Z
2020-04-16T10:33:05.000Z
from abc import abstractmethod import codecs import os import time from typing import Dict, Generator, List, Optional, Tuple, Union import click from lxml import etree from perfectextractor.apps.core.base import BaseWorker from .models import Alignment, MultiWordExpression from .utils import TXT, XML, CSV, open_csv, ...
39.471655
121
0.584305
79674bcac403ad407177a8a2d43eeed99684cb30
3,648
py
Python
Deep-Learning-Papers-Reading-Roadmap/download.py
shanunizar/DeepLearning_Summary
ba4302a8d65ac8b63627bcfa8e3b23871fa2c390
[ "CC0-1.0" ]
23
2017-07-07T07:00:52.000Z
2022-03-09T06:49:17.000Z
Deep-Learning-Papers-Reading-Roadmap/download.py
zhwhong/awesome-deep-learning
ba4302a8d65ac8b63627bcfa8e3b23871fa2c390
[ "CC0-1.0" ]
null
null
null
Deep-Learning-Papers-Reading-Roadmap/download.py
zhwhong/awesome-deep-learning
ba4302a8d65ac8b63627bcfa8e3b23871fa2c390
[ "CC0-1.0" ]
26
2017-06-13T01:44:24.000Z
2021-06-17T18:11:26.000Z
import os import re import urllib2 import shutil import argparse import mistune import bs4 as BeautifulSoup def download_pdf(link, location, name): try: response = urllib2.urlopen(link) file = open(os.path.join(location, name), 'w') file.write(response.read()) file.close() excep...
34.093458
100
0.553728
79674cebc4b40c0e1b2f1a406db604e69c028896
3,923
py
Python
labfunctions/client/labstate.py
nuxion/nb_workflows
8d6e226a8dbd12b337def1d187a75b773ee4a2fe
[ "Apache-2.0" ]
4
2022-02-17T19:47:52.000Z
2022-02-17T20:11:06.000Z
labfunctions/client/labstate.py
nuxion/nb_workflows
8d6e226a8dbd12b337def1d187a75b773ee4a2fe
[ "Apache-2.0" ]
2
2022-03-26T00:07:05.000Z
2022-03-30T21:20:00.000Z
labfunctions/client/labstate.py
nuxion/nb_workflows
8d6e226a8dbd12b337def1d187a75b773ee4a2fe
[ "Apache-2.0" ]
1
2022-02-18T13:33:00.000Z
2022-02-18T13:33:00.000Z
from collections import OrderedDict from typing import Dict, List, Optional, Union from labfunctions import defaults, types from labfunctions.utils import IndentDumper, open_yaml, write_yaml class LabState: """This manage workflows state, is NOT Thread safe""" def __init__( self, project: Op...
29.059259
69
0.602855
79674ced44d5e9251a7777e926709a2a21383147
2,157
py
Python
tests/dist/utils.py
ketyi/dgl
a1b859c29b63a673c148d13231a49504740e0e01
[ "Apache-2.0" ]
null
null
null
tests/dist/utils.py
ketyi/dgl
a1b859c29b63a673c148d13231a49504740e0e01
[ "Apache-2.0" ]
null
null
null
tests/dist/utils.py
ketyi/dgl
a1b859c29b63a673c148d13231a49504740e0e01
[ "Apache-2.0" ]
null
null
null
import subprocess import multiprocessing as mp from typing import Optional import os def run(ssh_cmd): subprocess.check_call(ssh_cmd, shell=True) def execute_remote( cmd: str, ip: str, port: Optional[int] = 22, username: Optional[str] = "" ) -> mp.Process: """Execute command line on remote ma...
31.720588
111
0.631896
79674e2fe5eb0d86b862f9c427dc05b80bd38a13
33,297
py
Python
sdk/python/lib/pulumi/runtime/proto/resource_pb2.py
eric-gonzales/pulumi
6782f892382d7e7a29a11421dfa223e6b338f24c
[ "Apache-2.0" ]
null
null
null
sdk/python/lib/pulumi/runtime/proto/resource_pb2.py
eric-gonzales/pulumi
6782f892382d7e7a29a11421dfa223e6b338f24c
[ "Apache-2.0" ]
null
null
null
sdk/python/lib/pulumi/runtime/proto/resource_pb2.py
eric-gonzales/pulumi
6782f892382d7e7a29a11421dfa223e6b338f24c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: resource.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf im...
44.995946
3,165
0.763552
79675036e22fc5858c36bdc317176911a00f53c3
1,806
py
Python
cinder/tests/unit/volume/drivers/disco/test_delete_volume.py
aarunsai81/netapp
8f0f7bf9be7f4d9fb9c3846bfc639c90a05f86ba
[ "Apache-2.0" ]
11
2015-08-25T13:11:18.000Z
2020-10-15T11:29:20.000Z
cinder/tests/unit/volume/drivers/disco/test_delete_volume.py
aarunsai81/netapp
8f0f7bf9be7f4d9fb9c3846bfc639c90a05f86ba
[ "Apache-2.0" ]
5
2018-01-25T11:31:56.000Z
2019-05-06T23:13:35.000Z
cinder/tests/unit/volume/drivers/disco/test_delete_volume.py
aarunsai81/netapp
8f0f7bf9be7f4d9fb9c3846bfc639c90a05f86ba
[ "Apache-2.0" ]
11
2015-02-20T18:48:24.000Z
2021-01-30T20:26:18.000Z
# (c) Copyright 2015 Industrial Technology Research Institute. # # 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 re...
36.12
78
0.680509
796750b21765392cdbd533754566935e778a23a3
762
py
Python
Python/Algorithms/102.py
DimitrisJim/leetcode_solutions
765ea578748f8c9b21243dec9dc8a16163e85c0c
[ "Unlicense" ]
2
2021-01-15T17:22:54.000Z
2021-05-16T19:58:02.000Z
Python/Algorithms/102.py
DimitrisJim/leetcode_solutions
765ea578748f8c9b21243dec9dc8a16163e85c0c
[ "Unlicense" ]
null
null
null
Python/Algorithms/102.py
DimitrisJim/leetcode_solutions
765ea578748f8c9b21243dec9dc8a16163e85c0c
[ "Unlicense" ]
null
null
null
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def levelOrder(self, root): if not root: return [] stack, results = [(root, 0)...
28.222222
62
0.489501
79675249ea3f9cd7da41d237dbc52aacef6ad775
9,526
py
Python
python/src/ouster/sdk/examples/open3d.py
gbull25/ouster_example
09950a863c94a87eb9d31f7073df84e66a7add13
[ "BSD-3-Clause" ]
null
null
null
python/src/ouster/sdk/examples/open3d.py
gbull25/ouster_example
09950a863c94a87eb9d31f7073df84e66a7add13
[ "BSD-3-Clause" ]
null
null
null
python/src/ouster/sdk/examples/open3d.py
gbull25/ouster_example
09950a863c94a87eb9d31f7073df84e66a7add13
[ "BSD-3-Clause" ]
null
null
null
"""Ouster Open3D visualizations examples.""" import time from more_itertools import consume, nth import numpy as np import open3d as o3d # type: ignore from ouster import client from .colormaps import normalize, colorize Z_NEAR = 1.0 def view_from(vis: o3d.visualization.Visualizer, from_point: np.nd...
33.076389
81
0.640668
79675287836b7602bc61b6cd381564b6c26967e3
160
py
Python
mailchimp/constants.py
ConsumerAffairs/django-mailchimp
d1fb53a5d65f9428ee7d897ff076f8204effc7f8
[ "BSD-3-Clause" ]
65
2015-10-24T20:39:43.000Z
2021-08-23T03:40:16.000Z
mailchimp/constants.py
philippze/django-mailchimp
9db53795564d330a0619bbc47627db6efc06c910
[ "BSD-3-Clause" ]
35
2015-10-24T04:11:15.000Z
2018-08-28T06:13:46.000Z
mailchimp/constants.py
philippze/django-mailchimp
9db53795564d330a0619bbc47627db6efc06c910
[ "BSD-3-Clause" ]
79
2015-10-31T00:10:58.000Z
2020-06-11T16:36:48.000Z
REGULAR_CAMPAIGN = 'regular' PLAINTEXT_CAMPAIGN = 'plaintext' ABSPLIT_CAMPAIGN = 'absplit' RSS_CAMPAIGN = 'rss' TRANS_CAMPAIGN = 'trans' AUTO_CAMPAIGN = 'auto'
22.857143
32
0.775
796752a60f3ab98597dfff2a6cec79fc8ec8281c
2,506
py
Python
examples/src/main/python/ml/generalized_linear_regression_example.py
YoufuLi/radlog
669c2b28f7ef4f9f6d94d353a3b180c1ad3b99e5
[ "BSD-3-Clause-Open-MPI", "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "MIT-0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause-Clear", "PostgreSQL", "BSD-3-Clause" ]
675
2016-12-21T00:15:05.000Z
2022-03-31T07:15:59.000Z
examples/src/main/python/ml/generalized_linear_regression_example.py
YoufuLi/radlog
669c2b28f7ef4f9f6d94d353a3b180c1ad3b99e5
[ "BSD-3-Clause-Open-MPI", "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "MIT-0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause-Clear", "PostgreSQL", "BSD-3-Clause" ]
607
2016-12-12T21:56:43.000Z
2019-11-14T22:21:06.000Z
examples/src/main/python/ml/generalized_linear_regression_example.py
YoufuLi/radlog
669c2b28f7ef4f9f6d94d353a3b180c1ad3b99e5
[ "BSD-3-Clause-Open-MPI", "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "MIT-0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause-Clear", "PostgreSQL", "BSD-3-Clause" ]
168
2017-01-12T00:47:04.000Z
2021-12-02T08:08:10.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 us...
37.402985
99
0.72905
796752f8cf737b0ad6ba44355a69a236315ece28
2,091
py
Python
contrib/devtools/check-doc.py
Hser2bio/CARI
a7c251f2bd4fcb08e58af57b319ecc0c98a8e62d
[ "MIT" ]
null
null
null
contrib/devtools/check-doc.py
Hser2bio/CARI
a7c251f2bd4fcb08e58af57b319ecc0c98a8e62d
[ "MIT" ]
null
null
null
contrib/devtools/check-doc.py
Hser2bio/CARI
a7c251f2bd4fcb08e58af57b319ecc0c98a8e62d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' This checks if all command line args are documented. Return value is 0 to indicate no error. Author:...
43.5625
316
0.688187
7967539045caa61e419b639f9b5f0908a8f2f80e
1,032
py
Python
skompiler/toskast/string.py
odinsemvosem/SKompiler
e46264796c8695497f43f6653688f5bcdbc0cfae
[ "MIT" ]
112
2018-12-12T03:54:28.000Z
2022-01-14T14:18:42.000Z
skompiler/toskast/string.py
odinsemvosem/SKompiler
e46264796c8695497f43f6653688f5bcdbc0cfae
[ "MIT" ]
10
2018-12-20T17:21:09.000Z
2022-03-24T19:31:55.000Z
skompiler/toskast/string.py
odinsemvosem/SKompiler
e46264796c8695497f43f6653688f5bcdbc0cfae
[ "MIT" ]
7
2019-02-05T05:20:05.000Z
2021-03-21T16:31:38.000Z
""" String to SKAST translator. """ import ast from .python import translate as from_python def translate(expr): """Convert a given (restricted) Python code string to a SK-AST. So far we only need this functionality for debugging purposes, hence instead of implementing a full-fledged parser,...
30.352941
77
0.563953
796753ee346367bd6503f7adc9382012eba5de57
4,751
py
Python
test/functional/tiertwo_masternode_ping.py
PassionCash/PassionCashCoin
389a2fce7458cb400b900b0e816ed24db90f3c92
[ "MIT" ]
null
null
null
test/functional/tiertwo_masternode_ping.py
PassionCash/PassionCashCoin
389a2fce7458cb400b900b0e816ed24db90f3c92
[ "MIT" ]
null
null
null
test/functional/tiertwo_masternode_ping.py
PassionCash/PassionCashCoin
389a2fce7458cb400b900b0e816ed24db90f3c92
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2020 The Passion developers # Distributed under the MIT software license, see the accompanying # file COPYING or https://www.opensource.org/licenses/mit-license.php. from test_framework.test_framework import PassionTestFramework from test_framework.util import ( assert_equal,...
38.314516
99
0.644285
796754e402078eb0033e0e37445dbe42c23cef5a
111
py
Python
tester/test_model/test_post_hist.py
seaioheroes/TorCMS-master
266aa6dcf8e2d36024dd278e6f56fd638c88c6ff
[ "MIT" ]
null
null
null
tester/test_model/test_post_hist.py
seaioheroes/TorCMS-master
266aa6dcf8e2d36024dd278e6f56fd638c88c6ff
[ "MIT" ]
null
null
null
tester/test_model/test_post_hist.py
seaioheroes/TorCMS-master
266aa6dcf8e2d36024dd278e6f56fd638c88c6ff
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- from torcms.model.post_hist_model import MPostHist def Test(): assert MPostHist()
15.857143
50
0.693694
796755b6e5eb7fb84d21465afa45a8e933a4c709
679
py
Python
tests/util.py
geopython/pygml
825a6a400e7dc9fd55365669572dcdbe62bf41e5
[ "MIT" ]
3
2021-07-15T07:46:11.000Z
2021-09-08T17:51:52.000Z
tests/util.py
geopython/pygml
825a6a400e7dc9fd55365669572dcdbe62bf41e5
[ "MIT" ]
1
2021-09-09T08:06:08.000Z
2021-09-17T19:46:04.000Z
tests/util.py
geopython/pygml
825a6a400e7dc9fd55365669572dcdbe62bf41e5
[ "MIT" ]
2
2021-11-02T12:15:20.000Z
2022-03-22T06:56:49.000Z
def compare_trees(e1, e2): # from https://stackoverflow.com/a/24349916/746961 if e1.tag != e2.tag: raise AssertionError(f'Tag: {e1.tag} != {e2.tag}') if (e1.text or '').strip() != (e2.text or '').strip(): raise AssertionError(f'Text: {e1.text} != {e2.text}') if (e1.tail or '').strip() !=...
48.5
76
0.584683
796755bd6019670c4e558a313277819e55b21560
280
py
Python
functions/using break to exit a loop.py
Mukulphougat/Python
4a12e5cb4ddff81dc6675695fcd1bdba8f2e2dd2
[ "MIT" ]
null
null
null
functions/using break to exit a loop.py
Mukulphougat/Python
4a12e5cb4ddff81dc6675695fcd1bdba8f2e2dd2
[ "MIT" ]
null
null
null
functions/using break to exit a loop.py
Mukulphougat/Python
4a12e5cb4ddff81dc6675695fcd1bdba8f2e2dd2
[ "MIT" ]
null
null
null
# using break statement prompt = "\nPlease enter the name of a city you have visited:" prompt += "\n(Enter 'quit' when you are finished.)" while True: city = input(prompt) if city == 'quit': break else: print("I'd love to go to " + city.title() + "!")
28
62
0.6
796756ed9ac83d2234c934fdec7e74d026bee260
281,030
py
Python
Parser/ProtoCCParser.py
Errare-humanum-est/ProtoGen
e8701dbfabb9c5148abc649fc76c5095d9cc4f9f
[ "MIT" ]
13
2018-06-10T07:14:31.000Z
2022-01-06T20:44:16.000Z
Parser/ProtoCCParser.py
Errare-humanum-est/ProtoGen
e8701dbfabb9c5148abc649fc76c5095d9cc4f9f
[ "MIT" ]
1
2018-06-12T15:03:12.000Z
2018-06-12T15:03:12.000Z
Parser/ProtoCCParser.py
icsa-caps/ProtoGen
639c62947314c427661cb66ebc3ac7e26798fc7e
[ "MIT" ]
5
2018-06-12T14:45:38.000Z
2021-03-20T06:29:25.000Z
# $ANTLR 3.5.2 /home/tux/PycharmProjects/ProtoGen_public/Parser/ProtoCC.g 2018-06-27 16:26:45 import sys from antlr3 import * from antlr3.tree import * # for convenience in actions HIDDEN = BaseRecognizer.HIDDEN # token types EOF=-1 T__87=87 T__88=88 T__89=89 T__90=90 T__91=91 T__92=92 T__93=93 T__94=94 T__95=95...
33.046802
427
0.564036
796758a9112c41966b43b823dc46706cfbf20f9d
1,288
py
Python
spid_cie_oidc/entity/tests/test_01_op_metadata.py
peppelinux/spid-cie-oidc-authority
816636fece10f410f5d6fce85fd79bb409d0c8b8
[ "Apache-2.0" ]
4
2022-03-08T09:05:13.000Z
2022-03-16T17:59:43.000Z
spid_cie_oidc/entity/tests/test_01_op_metadata.py
peppelinux/spid-cie-oidc-authority
816636fece10f410f5d6fce85fd79bb409d0c8b8
[ "Apache-2.0" ]
64
2022-03-08T01:11:40.000Z
2022-03-31T17:23:49.000Z
spid_cie_oidc/entity/tests/test_01_op_metadata.py
peppelinux/spid-cie-oidc-authority
816636fece10f410f5d6fce85fd79bb409d0c8b8
[ "Apache-2.0" ]
8
2022-03-09T12:00:08.000Z
2022-03-31T13:52:14.000Z
import logging from django.test import TestCase from pydantic import ValidationError from spid_cie_oidc.entity.schemas.op_metadata import OPMetadataCie, OPMetadataSpid from spid_cie_oidc.entity.tests.op_metadata_settings import ( OP_METADATA_CIE, OP_METADATA_CIE_JWKS_AND_JWKS_URI, OP_METADATA_SPID, OP_...
33.025641
82
0.788043
7967590b15a4d01fc7f1cb53d7a448831996c41e
219
py
Python
pynance/__init__.py
neosb/pynance
d9e69bba2648efee9acb0eec186cde9ae73a9a4d
[ "MIT" ]
1
2021-09-07T07:52:32.000Z
2021-09-07T07:52:32.000Z
pynance/__init__.py
neosb/pynance
d9e69bba2648efee9acb0eec186cde9ae73a9a4d
[ "MIT" ]
null
null
null
pynance/__init__.py
neosb/pynance
d9e69bba2648efee9acb0eec186cde9ae73a9a4d
[ "MIT" ]
1
2019-10-31T02:01:29.000Z
2019-10-31T02:01:29.000Z
# -*- coding: utf-8 -*- from . yahoo_pynance import ( Stock, quote_request, sector_data, HistoricalData, StockChart ) from . portfolio import Portfolio from . quandl import DataManager, Fundamentals
18.25
46
0.69863
79675a21e6fee85f09b6a8134c826c384c69ba5b
1,838
py
Python
ote_sdk/ote_sdk/tests/entities/interfaces/test_graph_interface.py
ntyukaev/training_extensions
c897d42e50828fea853ceda0795e1f0e7d6e9909
[ "Apache-2.0" ]
775
2019-03-01T02:13:33.000Z
2020-09-07T22:49:15.000Z
ote_sdk/ote_sdk/tests/entities/interfaces/test_graph_interface.py
ntyukaev/training_extensions
c897d42e50828fea853ceda0795e1f0e7d6e9909
[ "Apache-2.0" ]
229
2019-02-28T21:37:08.000Z
2020-09-07T15:11:49.000Z
ote_sdk/ote_sdk/tests/entities/interfaces/test_graph_interface.py
ntyukaev/training_extensions
c897d42e50828fea853ceda0795e1f0e7d6e9909
[ "Apache-2.0" ]
290
2019-02-28T20:32:11.000Z
2020-09-07T05:51:41.000Z
# Copyright (C) 2021-2022 Intel Corporation # SPDX-License-Identifier: Apache-2.0 # from unittest.mock import patch import pytest from ote_sdk.entities.interfaces.graph_interface import IGraph from ote_sdk.tests.constants.ote_sdk_components import OteSdkComponent from ote_sdk.tests.constants.requirements import Requi...
33.418182
87
0.678455
79675a240f75da5743dfb7ce4de2d5a7f19e6296
2,802
py
Python
tools/split_coco_train_val.py
jireh-father/mmdetection
b797e4d5b81c5a3d7d868ee2dc9aa27dbab23e7d
[ "Apache-2.0" ]
null
null
null
tools/split_coco_train_val.py
jireh-father/mmdetection
b797e4d5b81c5a3d7d868ee2dc9aa27dbab23e7d
[ "Apache-2.0" ]
null
null
null
tools/split_coco_train_val.py
jireh-father/mmdetection
b797e4d5b81c5a3d7d868ee2dc9aa27dbab23e7d
[ "Apache-2.0" ]
null
null
null
import argparse import random import json import os import cv2 def parse_args(): parser = argparse.ArgumentParser(description='Evaluate metric of the ' 'results saved in pkl format') parser.add_argument('--annotation_file', type=str, default=None) parser.ad...
30.456522
82
0.61813
79675b652ea759985a7723cd2ec9ba7965780938
19,292
py
Python
telethon/tl/custom/conversation.py
fx2hero/Telethon
2c9d43d60027a0ae4bd37bb80cd5e1020b703cbc
[ "MIT" ]
null
null
null
telethon/tl/custom/conversation.py
fx2hero/Telethon
2c9d43d60027a0ae4bd37bb80cd5e1020b703cbc
[ "MIT" ]
null
null
null
telethon/tl/custom/conversation.py
fx2hero/Telethon
2c9d43d60027a0ae4bd37bb80cd5e1020b703cbc
[ "MIT" ]
1
2022-02-07T22:01:45.000Z
2022-02-07T22:01:45.000Z
import asyncio import functools import inspect import itertools import time from .chatgetter import ChatGetter from ... import helpers, utils, errors # Sometimes the edits arrive very fast (within the same second). # In that case we add a small delta so that the age is older, for # comparision purposes. This value is...
36.4
92
0.603722
79675bc1f79ff712aa88eb782a5f52cd84669ffb
5,921
py
Python
test/unit_tests/test_catkin_make_isolated.py
lsolanka-seebyte/catkin
5f38a990a9f096b6148e743948095d819a726624
[ "BSD-3-Clause" ]
742
2017-07-05T02:49:36.000Z
2022-03-30T12:55:43.000Z
test/unit_tests/test_catkin_make_isolated.py
lsolanka-seebyte/catkin
5f38a990a9f096b6148e743948095d819a726624
[ "BSD-3-Clause" ]
73
2017-07-06T12:50:51.000Z
2022-03-07T08:07:07.000Z
test/unit_tests/test_catkin_make_isolated.py
lsolanka-seebyte/catkin
5f38a990a9f096b6148e743948095d819a726624
[ "BSD-3-Clause" ]
425
2017-07-04T22:03:29.000Z
2022-03-29T06:59:06.000Z
from __future__ import print_function import os import shutil import subprocess import sys import tempfile import unittest try: from catkin.builder import extract_cmake_and_make_arguments except ImportError as e: raise ImportError( 'Please adjust your pythonpath before running this test: %s' % str(e) ...
37.713376
102
0.622023
79675c2731c4a54d83d52093ac5bae2e7e2804e4
11,178
py
Python
alf/utils/math_ops.py
Haichao-Zhang/alf_randperm_reproduce
d5223b7534ab20ca725aac940ad274ef806d1d3e
[ "Apache-2.0" ]
null
null
null
alf/utils/math_ops.py
Haichao-Zhang/alf_randperm_reproduce
d5223b7534ab20ca725aac940ad274ef806d1d3e
[ "Apache-2.0" ]
null
null
null
alf/utils/math_ops.py
Haichao-Zhang/alf_randperm_reproduce
d5223b7534ab20ca725aac940ad274ef806d1d3e
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2019 Horizon Robotics. 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 applicab...
30.457766
99
0.635355
79675cd59eeb09bc90b3dbe9c37d2458f942edda
12,152
py
Python
autoencoder_program_synthesis/model_utils/metrics_helper.py
sander102907/autoencoder_program_synthesis
752954f9ef268908553189a1c3323bad15b39f04
[ "Apache-2.0" ]
4
2021-08-14T17:38:37.000Z
2022-02-03T20:47:54.000Z
autoencoder_program_synthesis/model_utils/metrics_helper.py
sander102907/autoencoder_program_synthesis
752954f9ef268908553189a1c3323bad15b39f04
[ "Apache-2.0" ]
2
2021-04-28T10:41:30.000Z
2022-02-02T14:30:58.000Z
autoencoder_program_synthesis/model_utils/metrics_helper.py
sander102907/autoencoder_program_synthesis
752954f9ef268908553189a1c3323bad15b39f04
[ "Apache-2.0" ]
1
2021-08-14T17:38:39.000Z
2021-08-14T17:38:39.000Z
class MetricsHelperTree2Tree: @staticmethod def log_to_sacred(train, current_iteration, total_loss, kl_loss, reconstruction_loss, individual_losses, accuracies, kl_weight, vocabs, _run): if train: loss_type = 'train' else: loss_type = 'validation' ...
69.44
158
0.682851
79675d8f0c330248b77207c53ce888fdd1fbc234
701
py
Python
plugins/auth_mappers/__init__.py
Aspect13/carrier-auth
1d6e3da182993e5c39eba3b2a0cb056bfd80b680
[ "Apache-2.0" ]
null
null
null
plugins/auth_mappers/__init__.py
Aspect13/carrier-auth
1d6e3da182993e5c39eba3b2a0cb056bfd80b680
[ "Apache-2.0" ]
null
null
null
plugins/auth_mappers/__init__.py
Aspect13/carrier-auth
1d6e3da182993e5c39eba3b2a0cb056bfd80b680
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # coding=utf-8 # Copyright 2021 getcarrier.io # # 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 req...
33.380952
76
0.734665
79675dbb9566aabdcc4a97f0e28c09f356c8345f
6,337
py
Python
sandbox/normalize-by-median-pct.py
maarten1983/khmer
417aaa57f0659685c01887a6910de1c08d0a73e5
[ "BSD-3-Clause" ]
1
2019-11-02T15:12:44.000Z
2019-11-02T15:12:44.000Z
sandbox/normalize-by-median-pct.py
ibest/khmer
fbc307abd64363b329745709846d77444ce0c025
[ "BSD-3-Clause" ]
null
null
null
sandbox/normalize-by-median-pct.py
ibest/khmer
fbc307abd64363b329745709846d77444ce0c025
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/env python2 # # This file is part of khmer, http://github.com/ged-lab/khmer/, and is # Copyright (C) Michigan State University, 2009-2013. It is licensed under # the three-clause BSD license; see doc/LICENSE.txt. # Contact: khmer-project@idyll.org # """ Eliminate reads with median k-mer abundance higher tha...
35.601124
129
0.558624
79675e52a10482989e52d9493f8ca0c0fdcf3c7e
393
py
Python
kalp.py
sahintuter/Basic-Python-Examples
97e8e1d5e918c154ebac88b850200c1d461c128f
[ "Apache-2.0" ]
null
null
null
kalp.py
sahintuter/Basic-Python-Examples
97e8e1d5e918c154ebac88b850200c1d461c128f
[ "Apache-2.0" ]
null
null
null
kalp.py
sahintuter/Basic-Python-Examples
97e8e1d5e918c154ebac88b850200c1d461c128f
[ "Apache-2.0" ]
null
null
null
import turtle turtle.speed(0) turtle.bgcolor("pink") def donus(): for i in range(200): turtle.right(1) turtle.forward(1) turtle.color("red") turtle.begin_fill() turtle.left(140) turtle.forward(111.65) donus() turtle.left(120) donus() turtle.f...
9.357143
26
0.587786
79675e56617e78250741b45814529503d484c9f8
711
py
Python
7-BERT/train.py
SilenceX12138/Cheetah
e20cb4e2623786d9dc7540e3252b8bbf7a0b2553
[ "MIT" ]
30
2021-09-06T11:50:30.000Z
2021-09-09T11:22:48.000Z
7-BERT/train.py
SilenceX12138/Cheetah
e20cb4e2623786d9dc7540e3252b8bbf7a0b2553
[ "MIT" ]
null
null
null
7-BERT/train.py
SilenceX12138/Cheetah
e20cb4e2623786d9dc7540e3252b8bbf7a0b2553
[ "MIT" ]
1
2021-12-15T08:25:24.000Z
2021-12-15T08:25:24.000Z
from transformers import BertForQuestionAnswering, BertTokenizerFast from utils.data import get_dataloader from utils.env import enable_reproduce, get_device from utils.model import model_function def train(): enable_reproduce() # You can safely ignore the warning message (it pops up because new prediction h...
35.55
121
0.783404
79675e6e201dd67dd504023a1da3b8ce691a1c59
3,140
py
Python
setup.py
betodealmeida/pydap
ca4d34f88ab1879ed865855ee84364cee0c8bef5
[ "MIT" ]
null
null
null
setup.py
betodealmeida/pydap
ca4d34f88ab1879ed865855ee84364cee0c8bef5
[ "MIT" ]
null
null
null
setup.py
betodealmeida/pydap
ca4d34f88ab1879ed865855ee84364cee0c8bef5
[ "MIT" ]
1
2019-03-08T09:34:54.000Z
2019-03-08T09:34:54.000Z
from setuptools import setup, find_packages import sys __version__ = '3.2.2' install_requires = [ 'numpy', 'Webob', 'Jinja2', 'docopt', 'six >= 1.4.0', 'beautifulsoup4', 'requests' ] if sys.version_info < (3, 5): install_requires.append('singledispatch') functions_extras = [ 'gsw...
26.610169
68
0.576433
79675e9e3e65497570eb6d0319886d598e6b7b5a
7,600
py
Python
utils/data_processing.py
svakulenk0/MP_EL
605cdfd70bd5b5ad2148b548b2d2d30e2ecaef90
[ "MIT" ]
null
null
null
utils/data_processing.py
svakulenk0/MP_EL
605cdfd70bd5b5ad2148b548b2d2d30e2ecaef90
[ "MIT" ]
null
null
null
utils/data_processing.py
svakulenk0/MP_EL
605cdfd70bd5b5ad2148b548b2d2d30e2ecaef90
[ "MIT" ]
null
null
null
import pandas as pd from tqdm.auto import tqdm import sys import csv csv.field_size_limit(sys.maxsize) def add_beginnings(df, target_column='NE-COARSE-LIT'): ''' Turns starting I-labels into B-labels and returns a modified df ''' all_labels = df[target_column].tolist() res = df.copy() ...
30.769231
109
0.544211
79675fdc739e52b7ffff9eb23ab84e58083a2ed6
345
py
Python
ndg/xacml/core/context/pip.py
philipkershaw/ndg_xacml
f24ccbb4d4c053c585b0369dfe5a5949d49f9715
[ "BSD-3-Clause" ]
5
2015-01-26T12:37:34.000Z
2020-10-06T14:24:25.000Z
ndg/xacml/core/context/pip.py
philipkershaw/ndg_xacml
f24ccbb4d4c053c585b0369dfe5a5949d49f9715
[ "BSD-3-Clause" ]
null
null
null
ndg/xacml/core/context/pip.py
philipkershaw/ndg_xacml
f24ccbb4d4c053c585b0369dfe5a5949d49f9715
[ "BSD-3-Clause" ]
1
2016-05-12T16:55:10.000Z
2016-05-12T16:55:10.000Z
"""NDG XACML Policy Information Point type definition """ __author__ = "P J Kershaw" __date__ = "25/02/10" __copyright__ = "(C) 2010 Science and Technology Facilities Council" __contact__ = "Philip.Kershaw@stfc.ac.uk" __license__ = "BSD - see LICENSE file in top-level directory" __contact__ = "Philip.Kershaw@stfc.ac.u...
31.363636
68
0.744928
7967615dfade55fd29d1f9141895676187956121
2,705
py
Python
src/day13.py
StenAL/Advent-of-Code-2021
57c1b11c3a83ed75520875f4811f3bb1e9ebc950
[ "MIT" ]
1
2021-12-03T20:11:51.000Z
2021-12-03T20:11:51.000Z
src/day13.py
StenAL/Advent-of-Code-2021
57c1b11c3a83ed75520875f4811f3bb1e9ebc950
[ "MIT" ]
null
null
null
src/day13.py
StenAL/Advent-of-Code-2021
57c1b11c3a83ed75520875f4811f3bb1e9ebc950
[ "MIT" ]
null
null
null
from util import * from collections import * import copy from functools import reduce day = 13 def task1(): data = get_input_for_day(day) # data = get_input_for_file("test") dots = set() folds = [] mode = "dots" for line in data: if line == "": mode = "folds" c...
28.776596
61
0.462107
796762ed44a80244ce7bbf55877492ad58922805
1,078
py
Python
lib/idrsa_pub_disector.py
CrackerCat/RsaCtfTool
4c2c22d15f9729fce161e4f4bc46e6fe9c53e820
[ "Beerware" ]
3,493
2015-03-10T19:45:52.000Z
2022-03-31T09:09:36.000Z
lib/idrsa_pub_disector.py
CrackerCat/RsaCtfTool
4c2c22d15f9729fce161e4f4bc46e6fe9c53e820
[ "Beerware" ]
184
2017-04-29T21:48:04.000Z
2022-03-29T19:35:55.000Z
lib/idrsa_pub_disector.py
CrackerCat/RsaCtfTool
4c2c22d15f9729fce161e4f4bc46e6fe9c53e820
[ "Beerware" ]
741
2016-03-08T12:50:03.000Z
2022-03-31T02:46:25.000Z
# ssh id_rsa.pub field decoder import binascii import sys import os import time import base64 def disect_idrsa_pub(pub): a = pub.split(" ") bindata = None if a[0].find("|1|") > -1 and a[1] == "ssh-rsa": bindata = base64.standard_b64decode(a[2]) if a[0] == "ssh-rsa": bindata = base64....
22
51
0.495362
7967634ecdd3bef9228723575d6af67972a2d44a
658
py
Python
html_parsing/Wikipedia__Timeline_of_release_years/Fallout__series.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
117
2015-12-18T07:18:27.000Z
2022-03-28T00:25:54.000Z
html_parsing/Wikipedia__Timeline_of_release_years/Fallout__series.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
8
2018-10-03T09:38:46.000Z
2021-12-13T19:51:09.000Z
html_parsing/Wikipedia__Timeline_of_release_years/Fallout__series.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
28
2016-08-02T17:43:47.000Z
2022-03-21T08:31:12.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = 'ipetrash' # Хронология выхода игр from common import get_parsed_two_column_wikitable def is_match_table_func(table) -> bool: return 'TIMELINE OF RELEASE YEARS' in table.caption.text.strip().upper() url = 'https://en.wikipedia.org/wiki/Fallout_(se...
21.933333
76
0.727964
7967635ba939acd7109a4c384fd1cc5ba0db8eaa
288
py
Python
DMOJ/CCC/time on task.py
eddiegz/Personal-C
f7869826216e5c665f8f646502141f0dc680e545
[ "MIT" ]
3
2021-05-15T08:18:09.000Z
2021-05-17T04:41:57.000Z
DMOJ/CCC/time on task.py
eddiegz/Personal-C
f7869826216e5c665f8f646502141f0dc680e545
[ "MIT" ]
null
null
null
DMOJ/CCC/time on task.py
eddiegz/Personal-C
f7869826216e5c665f8f646502141f0dc680e545
[ "MIT" ]
null
null
null
t=int(input()) c=int(input()) list1=[] for i in range(c): list1.append(int(input())) list1.sort() total=0 number=0 for i in list1: if total<t: total+=i number+=1 else: break if total>t: number-=1 break print(number)
16
31
0.513889
7967649f4b6b87f15120a1a99f08c28c2f2faddc
5,740
py
Python
openGaussBase/testcase/SECURITY/MODIFY/Opengauss_Function_Security_SelectPrivilege_Case0010.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/SECURITY/MODIFY/Opengauss_Function_Security_SelectPrivilege_Case0010.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/SECURITY/MODIFY/Opengauss_Function_Security_SelectPrivilege_Case0010.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
""" Copyright (c) 2022 Huawei Technologies Co.,Ltd. openGauss is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, W...
40.422535
84
0.601916