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
4a1321778296a6f3f88a46d32d703f26a780cf1a
1,421
py
Python
coupons/migrations/0003_auto_20150416_0617.py
jelukas/django-coupons
b4de97570720c30ca034fdc8c121ad1645e8cb53
[ "BSD-3-Clause" ]
null
null
null
coupons/migrations/0003_auto_20150416_0617.py
jelukas/django-coupons
b4de97570720c30ca034fdc8c121ad1645e8cb53
[ "BSD-3-Clause" ]
null
null
null
coupons/migrations/0003_auto_20150416_0617.py
jelukas/django-coupons
b4de97570720c30ca034fdc8c121ad1645e8cb53
[ "BSD-3-Clause" ]
1
2021-08-30T10:50:41.000Z
2021-08-30T10:50:41.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('coupons', '0002_coupon_valid_until'), ] operations = [ migrations.CreateModel( name='Campaign', fiel...
35.525
167
0.582688
34b7a0cf3cd2a9e01d49610638f22defe4ea0909
267
py
Python
netbox/utilities/querysets.py
BrnoPCmaniak/netbox
7b517abdb68a6324950dfd0375861163c7bfff00
[ "Apache-2.0" ]
6
2017-12-01T05:13:39.000Z
2020-01-23T13:04:43.000Z
netbox/utilities/querysets.py
BrnoPCmaniak/netbox
7b517abdb68a6324950dfd0375861163c7bfff00
[ "Apache-2.0" ]
4
2021-06-08T22:29:06.000Z
2022-03-12T00:48:51.000Z
netbox/utilities/querysets.py
BrnoPCmaniak/netbox
7b517abdb68a6324950dfd0375861163c7bfff00
[ "Apache-2.0" ]
3
2017-11-18T01:28:22.000Z
2018-05-17T14:04:43.000Z
class DummyQuerySet: """ A fake QuerySet that can be used to cache relationships to objects that have been deleted. """ def __init__(self, queryset): self._cache = [obj for obj in queryset.all()] def all(self): return self._cache
26.7
94
0.64794
e27a34dc35d06d6a94e9017594f0d563e36c45e3
29,142
py
Python
fv3gfs/util/partitioner.py
ai2cm/fv3gfs-util
56fd8e93cefe6951396717a49390c4020a0bc20c
[ "BSD-3-Clause" ]
1
2021-01-05T20:55:01.000Z
2021-01-05T20:55:01.000Z
fv3gfs/util/partitioner.py
VulcanClimateModeling/fv3gfs-util
1d7c302b836befe905d776b0a972f464bfd3a255
[ "BSD-3-Clause" ]
34
2020-11-10T18:06:18.000Z
2021-07-20T22:46:31.000Z
fv3gfs/util/partitioner.py
ai2cm/fv3gfs-util
56fd8e93cefe6951396717a49390c4020a0bc20c
[ "BSD-3-Clause" ]
1
2021-08-10T21:36:44.000Z
2021-08-10T21:36:44.000Z
from typing import Tuple, Callable, Iterable, Optional, Union, cast, Sequence import copy import abc import functools import dataclasses from . import constants, utils from .constants import ( NORTH, SOUTH, WEST, EAST, NORTHWEST, NORTHEAST, SOUTHWEST, SOUTHEAST, ) import numpy as np from...
35.280872
98
0.625592
b5ee63b3c240d869d1ac7c486ac0bf0dd2e225cb
802
py
Python
app/_test/suite/unit/test/types/test_data.py
ewie/gbd-websuite
6f2814c7bb64d11cb5a0deec712df751718fb3e1
[ "Apache-2.0" ]
null
null
null
app/_test/suite/unit/test/types/test_data.py
ewie/gbd-websuite
6f2814c7bb64d11cb5a0deec712df751718fb3e1
[ "Apache-2.0" ]
null
null
null
app/_test/suite/unit/test/types/test_data.py
ewie/gbd-websuite
6f2814c7bb64d11cb5a0deec712df751718fb3e1
[ "Apache-2.0" ]
null
null
null
"""Test the types.Data object""" import gws.core.util as cu import gws.types as t import _test.util as u def test_init(): d = t.Data( { 'dict1': 'DICT1', 'dict2': 'DICT2', }, t.Data(data1='DATA1', data2='DATA2'), kw1='KW1', kw2='KW2' ) ass...
17.822222
45
0.476309
fc103be1d960b90c30d8323b1371f60d61efe58b
1,864
py
Python
e2e_tests/tests/fixtures/pytorch_amp/manual_amp_model_def.py
gh-determined-ai/determined
9a1ab33a3a356b69681b3351629fef4ab98ddb56
[ "Apache-2.0" ]
1,729
2020-04-27T17:36:40.000Z
2022-03-31T05:48:39.000Z
e2e_tests/tests/fixtures/pytorch_amp/manual_amp_model_def.py
ChrisW09/determined
5c37bfe9cfcc69174ba29a3f1a115c3e9e3632e0
[ "Apache-2.0" ]
1,940
2020-04-27T17:34:14.000Z
2022-03-31T23:02:28.000Z
e2e_tests/tests/fixtures/pytorch_amp/manual_amp_model_def.py
ChrisW09/determined
5c37bfe9cfcc69174ba29a3f1a115c3e9e3632e0
[ "Apache-2.0" ]
214
2020-04-27T19:57:28.000Z
2022-03-29T08:17:16.000Z
""" This example demonstrates how to modify a model to use PyTorch's native AMP (automatic mixed precision) support in Determined. In the `__init__` method, amp_init() is called (and this accepts parameters to tune the GradScaler). The methods `train_batch` and `evaluate_batch` are modified to use an autocast context...
33.285714
81
0.688305
c3954d5f3109aa657e62240c9aff821e671e1119
158,788
py
Python
pydal/validators.py
anonymous378/pydal
232e841765ee97ac6f7af45be794d46432085c4d
[ "BSD-3-Clause" ]
1
2022-01-29T17:09:27.000Z
2022-01-29T17:09:27.000Z
pydal/validators.py
anonymous378/pydal
232e841765ee97ac6f7af45be794d46432085c4d
[ "BSD-3-Clause" ]
null
null
null
pydal/validators.py
anonymous378/pydal
232e841765ee97ac6f7af45be794d46432085c4d
[ "BSD-3-Clause" ]
null
null
null
#!/bin/env python # -*- coding: utf-8 -*- # pylint: disable=line-too-long,invalid-name """ | This file is part of the web2py Web Framework | Copyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu> | License: BSD | Thanks to ga2arch for help with IS_IN_DB and IS_NOT_IN_DB on GAE Validators ----------- """ import os...
28.818149
264
0.538492
a0f0980357066729dd12e4667410826a05ad8550
1,243
py
Python
setup.py
iamdefinitelyahuman/abi2solc
65526eced1888d10067d14099b5668c14a0bfbcd
[ "MIT" ]
8
2019-09-30T11:51:17.000Z
2021-12-30T14:30:48.000Z
setup.py
iamdefinitelyahuman/abi2solc
65526eced1888d10067d14099b5668c14a0bfbcd
[ "MIT" ]
null
null
null
setup.py
iamdefinitelyahuman/abi2solc
65526eced1888d10067d14099b5668c14a0bfbcd
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages with open("README.md", "r") as fh: long_description = fh.read() setup( name="abi2solc", version="0.1.0", # do not change manually! use bumpversion instead description="""A library for generating Solidity interfa...
33.594595
78
0.637168
8861dea484e63dc0ebae1a9530d8e949241ad954
601
py
Python
db/garfield.py
FreakyGoblin/odie-server
472c4971d7b50e8cc2a362e42cf914def7feb079
[ "MIT" ]
9
2015-06-04T17:13:45.000Z
2021-11-09T21:26:39.000Z
db/garfield.py
FreakyGoblin/odie-server
472c4971d7b50e8cc2a362e42cf914def7feb079
[ "MIT" ]
49
2015-02-15T14:42:42.000Z
2020-08-19T11:42:55.000Z
db/garfield.py
FreakyGoblin/odie-server
472c4971d7b50e8cc2a362e42cf914def7feb079
[ "MIT" ]
8
2015-06-04T20:46:18.000Z
2020-08-18T15:38:06.000Z
from odie import sqla, Column class Location(sqla.Model): __tablename__ = 'locations' __table_args__ = { 'schema': 'garfield', 'info': {'bind_key': 'garfield'} } id = Column(sqla.Integer, name='location_id', primary_key=True) name = Column(sqla.String, name='location_name') des...
28.619048
74
0.66223
74635e12729f7079d45734986154d6be5d38f513
12,508
py
Python
core/src/main/python/wlsdeploy/yaml/yaml_translator.py
desamoss/weblogic-deploy-tooling
dac1eb70515fd0e4f3cd35c245b47968ecb5be8c
[ "Apache-2.0", "MIT" ]
null
null
null
core/src/main/python/wlsdeploy/yaml/yaml_translator.py
desamoss/weblogic-deploy-tooling
dac1eb70515fd0e4f3cd35c245b47968ecb5be8c
[ "Apache-2.0", "MIT" ]
null
null
null
core/src/main/python/wlsdeploy/yaml/yaml_translator.py
desamoss/weblogic-deploy-tooling
dac1eb70515fd0e4f3cd35c245b47968ecb5be8c
[ "Apache-2.0", "MIT" ]
null
null
null
""" Copyright (c) 2019, 2020, Oracle Corporation and/or its affiliates. Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. Module to handle translating between Yaml files and Python dictionaries. """ import re import java.io.FileNotFoundException as JFileNotFoundExc...
40.742671
120
0.626959
cdf3b01c7ee89b287ffa7f6d83e9379ed285951b
5,188
py
Python
rt.py
chansearrington/rectec_status
a8f6fccb80971c66f265964f734df4a76308bd17
[ "Apache-2.0" ]
23
2018-07-17T02:39:31.000Z
2021-12-13T16:31:32.000Z
rt.py
chansearrington/rectec_status
a8f6fccb80971c66f265964f734df4a76308bd17
[ "Apache-2.0" ]
3
2019-03-25T13:07:34.000Z
2020-10-04T21:44:59.000Z
rt.py
chansearrington/rectec_status
a8f6fccb80971c66f265964f734df4a76308bd17
[ "Apache-2.0" ]
6
2019-08-07T17:13:08.000Z
2022-03-18T01:09:33.000Z
""" Simple platform to control **SOME** Tuya switch devices. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/switch.tuya/ """ import voluptuous as vol from homeassistant.components.switch import SwitchDevice, PLATFORM_SCHEMA from homeassistant.const impor...
28.98324
109
0.605436
7c68f80dd14fefff814f4e96a098278ea6e875da
4,431
py
Python
basicsr/models/lr_scheduler.py
yuangan/Simple-SR
630d2f9441b116620af88ff882eca4673dedc047
[ "MIT" ]
null
null
null
basicsr/models/lr_scheduler.py
yuangan/Simple-SR
630d2f9441b116620af88ff882eca4673dedc047
[ "MIT" ]
null
null
null
basicsr/models/lr_scheduler.py
yuangan/Simple-SR
630d2f9441b116620af88ff882eca4673dedc047
[ "MIT" ]
null
null
null
import math from collections import Counter from torch.optim.lr_scheduler import _LRScheduler class MultiStepRestartLR(_LRScheduler): """ MultiStep with restarts learning rate scheme. Args: optimizer (torch.nn.optimizer): Torch optimizer. milestones (list): Iterations that will decr...
37.235294
80
0.596705
38ddf38b2fbe536121cea73cc25edd30a85ab746
111
py
Python
src/mlservicewrapper/core/debug/__init__.py
MaJaHa95/ml-job-wrapper
d02bd2e67ad1f64e3e6a8a126bd9e445ad9a2ba6
[ "MIT" ]
null
null
null
src/mlservicewrapper/core/debug/__init__.py
MaJaHa95/ml-job-wrapper
d02bd2e67ad1f64e3e6a8a126bd9e445ad9a2ba6
[ "MIT" ]
4
2020-09-09T05:41:16.000Z
2022-01-24T05:03:39.000Z
src/mlservicewrapper/core/debug/__init__.py
MaJaHa95/ml-job-wrapper
d02bd2e67ad1f64e3e6a8a126bd9e445ad9a2ba6
[ "MIT" ]
1
2020-09-23T14:12:35.000Z
2020-09-23T14:12:35.000Z
from .local import run, get_input_dataframe, run_async __all__ = ["run", "run_async", "get_input_dataframe"]
22.2
54
0.756757
36daadb95d240fd7d87c1bf7d16917be7eea07d1
96
py
Python
venv/lib/python3.8/site-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_defaults.py
Retraces/UkraineBot
3d5d7f8aaa58fa0cb8b98733b8808e5dfbdb8b71
[ "MIT" ]
2
2022-03-13T01:58:52.000Z
2022-03-31T06:07:54.000Z
venv/lib/python3.8/site-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_defaults.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
19
2021-11-20T04:09:18.000Z
2022-03-23T15:05:55.000Z
venv/lib/python3.8/site-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_defaults.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
null
null
null
/home/runner/.cache/pip/pool/30/fb/41/9c6bca467eb921b1077ed97463f287d18cbf8d736366ecc42fca844262
96
96
0.895833
8c42c01f1859e0f7b9db8f300c873eba164f78e6
6,457
py
Python
Orio/orio/module/splingo/printer.py
HPCL/nametbd
1b588cd6ce94ab39a8ba6f89d9eb64e1d3726af5
[ "MIT" ]
null
null
null
Orio/orio/module/splingo/printer.py
HPCL/nametbd
1b588cd6ce94ab39a8ba6f89d9eb64e1d3726af5
[ "MIT" ]
null
null
null
Orio/orio/module/splingo/printer.py
HPCL/nametbd
1b588cd6ce94ab39a8ba6f89d9eb64e1d3726af5
[ "MIT" ]
null
null
null
#============================================================================== # The unparser of the AST nodes #============================================================================== import orio.main.util.globals as g from orio.module.splingo.ast import * #----------------------------------------------------...
37.540698
102
0.387177
32ecf272ccce416426025d521e60897232007422
7,374
py
Python
hubspot/crm/extensions/videoconferencing/models/external_settings.py
cclauss/hubspot-api-python
7c60c0f572b98c73e1f1816bf5981396a42735f6
[ "Apache-2.0" ]
null
null
null
hubspot/crm/extensions/videoconferencing/models/external_settings.py
cclauss/hubspot-api-python
7c60c0f572b98c73e1f1816bf5981396a42735f6
[ "Apache-2.0" ]
null
null
null
hubspot/crm/extensions/videoconferencing/models/external_settings.py
cclauss/hubspot-api-python
7c60c0f572b98c73e1f1816bf5981396a42735f6
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Video Conference Extension These APIs allow you to specify URLs that can be used to interact with a video conferencing application, to allow HubSpot to add video conference links to meeting requests with contacts. # noqa: E501 The version of the OpenAPI document: v3 Generated by:...
35.451923
204
0.651749
a0d7fef1cbb483e86cc76d02b381814d12b76d19
5,833
py
Python
FuncoesDados.py
inaciolimaf/Microdados-Enem
88024569108d9f54de5c7d115a1b5c6d2b09f89a
[ "MIT" ]
2
2021-10-31T22:47:43.000Z
2021-11-01T17:21:13.000Z
FuncoesDados.py
inaciolimaf/Microdados-Enem
88024569108d9f54de5c7d115a1b5c6d2b09f89a
[ "MIT" ]
null
null
null
FuncoesDados.py
inaciolimaf/Microdados-Enem
88024569108d9f54de5c7d115a1b5c6d2b09f89a
[ "MIT" ]
null
null
null
from numpy import NaN import pandas as pd from tqdm import tqdm # Todo essa parte é só para funcionar a orientação à objeto # Ela não é obrigatória para chegar no resultado # O jeito mais fácil seria usar o Jupyter e sem Orientação à objeto # Fiz usando isso para poder aprender class MicrodadosENEM: def __init__...
45.929134
114
0.629693
d8c20952521990faa28f5ab5f370149c10ef9010
1,227
py
Python
Abaqus/PulloutSim/Python/geomHoney.py
bbanerjee/SandwichSim
a07f4436cc82bec139782ade9c8eacb6d3bcc4a4
[ "MIT" ]
3
2019-05-05T15:23:22.000Z
2022-02-22T21:36:42.000Z
Abaqus/PulloutSim/Python/geomHoney.py
bbanerjee/SandwichSim
a07f4436cc82bec139782ade9c8eacb6d3bcc4a4
[ "MIT" ]
null
null
null
Abaqus/PulloutSim/Python/geomHoney.py
bbanerjee/SandwichSim
a07f4436cc82bec139782ade9c8eacb6d3bcc4a4
[ "MIT" ]
1
2018-04-14T14:52:17.000Z
2018-04-14T14:52:17.000Z
""" slabGeom - a module of slab geometry features""" import math from math import * import part import assembly #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ def getCorners( lx, nx, ny ): s = lx*sin(pi/3) c = lx*cos(pi/3) centers = [] for jj in range(ny): for ii in range(nx): x0 = ii*2*(lx+c) ...
17.28169
64
0.512632
2916c588575c1de64ce721a67af76b29372f0334
1,633
py
Python
supplier/views.py
alvinMemphis/greenmill_backend
450dfd777ea18fb14b035c3365093dfc0f083f6b
[ "MIT" ]
null
null
null
supplier/views.py
alvinMemphis/greenmill_backend
450dfd777ea18fb14b035c3365093dfc0f083f6b
[ "MIT" ]
null
null
null
supplier/views.py
alvinMemphis/greenmill_backend
450dfd777ea18fb14b035c3365093dfc0f083f6b
[ "MIT" ]
null
null
null
from django.shortcuts import render from .serializers import PackageSerializer,SupplierSerializer from rest_framework import status, generics,viewsets from supplier.models import Supplier from rest_framework.permissions import AllowAny, IsAuthenticated from rest_framework.response import Response from person.models im...
32.66
91
0.749541
4268fb3443a0916143ab603ba43a68ab9240c886
5,607
py
Python
test/test_networking_project_firewall_api.py
hyperonecom/h1-client-python
4ce355852ba3120ec1b8f509ab5894a5c08da730
[ "MIT" ]
null
null
null
test/test_networking_project_firewall_api.py
hyperonecom/h1-client-python
4ce355852ba3120ec1b8f509ab5894a5c08da730
[ "MIT" ]
null
null
null
test/test_networking_project_firewall_api.py
hyperonecom/h1-client-python
4ce355852ba3120ec1b8f509ab5894a5c08da730
[ "MIT" ]
null
null
null
""" HyperOne HyperOne API # noqa: E501 The version of the OpenAPI document: 0.1.0 Generated by: https://openapi-generator.tech """ import unittest import h1 from h1.api.networking_project_firewall_api import NetworkingProjectFirewallApi # noqa: E501 class TestNetworkingProjectFirewallApi(unitte...
27.485294
93
0.682005
b123db2c74011b81b53aac4fca1eb505fbee2bcb
412
py
Python
src/documents/migrations/0005_auto_20151210_1045.py
Talengi/phase
60ff6f37778971ae356c5b2b20e0d174a8288bfe
[ "MIT" ]
8
2016-01-29T11:53:40.000Z
2020-03-02T22:42:02.000Z
src/documents/migrations/0005_auto_20151210_1045.py
Talengi/phase
60ff6f37778971ae356c5b2b20e0d174a8288bfe
[ "MIT" ]
289
2015-03-23T07:42:52.000Z
2022-03-11T23:26:10.000Z
src/documents/migrations/0005_auto_20151210_1045.py
Talengi/phase
60ff6f37778971ae356c5b2b20e0d174a8288bfe
[ "MIT" ]
7
2015-12-08T09:03:20.000Z
2020-05-11T15:36:51.000Z
# -*- coding: utf-8 -*- from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('documents', '0004_fill_document_numbers'), ] operations = [ migrations.AlterField( model_name='document', name='document_number', ...
20.6
83
0.606796
1ead279d0594dea27563a0ad1c52e10ec225f030
1,269
py
Python
json_try.py
2rintf/noob-face-comparison
000413f1a3cd837960196f7069a894bd272aa14b
[ "MIT" ]
null
null
null
json_try.py
2rintf/noob-face-comparison
000413f1a3cd837960196f7069a894bd272aa14b
[ "MIT" ]
null
null
null
json_try.py
2rintf/noob-face-comparison
000413f1a3cd837960196f7069a894bd272aa14b
[ "MIT" ]
null
null
null
import json import os import cv2 as cv import face_recognition as fc base_path = "./data_pic/lfw" a = os.listdir(base_path) # print(a) # print(len(a)) # print(a[0:3]) # total = [] # total_dict = {'num':0,'path':[]} # # fc.compare_faces() # true_num_of_pic = 0 # for i in range(0,2000): # print(base_path+'/'+a[i]+'...
23.5
73
0.620173
01ac3e98009aa3b75adf98ffc6ea05c551ab7f7d
2,233
py
Python
test/test_extract.py
ta-assistant/Admin-CLI
1c03ede0e09d8ddc270646937aa7af463c55f1f5
[ "MIT" ]
1
2021-07-22T15:43:02.000Z
2021-07-22T15:43:02.000Z
test/test_extract.py
ta-assistant/Admin-CLI
1c03ede0e09d8ddc270646937aa7af463c55f1f5
[ "MIT" ]
28
2021-05-15T08:18:21.000Z
2021-08-02T06:12:30.000Z
test/test_extract.py
ta-assistant/TA-CLI
1c03ede0e09d8ddc270646937aa7af463c55f1f5
[ "MIT" ]
null
null
null
import unittest import os,sys,inspect import zipfile import json currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) parentdir = os.path.dirname(currentdir) sys.path.insert(0,parentdir) from lib.file_management.file_management_lib import FileEditor, DirManagement from lib.file_mana...
34.353846
86
0.647112
a751cf8aa34fb072995c9cf088efa9111fac666e
3,660
py
Python
bank_ddd_es_cqrs/accounts/api/client.py
Hyaxia/Bank-DDD-CQRS-ES
116e3eb3e93d549c1da53e6d506ab47667d77445
[ "MIT" ]
8
2020-10-27T09:46:20.000Z
2022-01-27T12:16:48.000Z
bank_ddd_es_cqrs/accounts/api/client.py
Hyaxia/Bank-DDD-CQRS-ES
116e3eb3e93d549c1da53e6d506ab47667d77445
[ "MIT" ]
null
null
null
bank_ddd_es_cqrs/accounts/api/client.py
Hyaxia/Bank-DDD-CQRS-ES
116e3eb3e93d549c1da53e6d506ab47667d77445
[ "MIT" ]
2
2021-05-29T08:11:48.000Z
2021-07-26T04:44:53.000Z
from flask import Response, request from flask_restplus import Namespace, Resource # type: ignore from bank_ddd_es_cqrs.shared.model import UniqueID, StatusCodes from ..use_cases import add_account_to_client, create_client, ClientDetailsDTO from ..composition_root import get_client_write_repo from .operation_id import...
41.590909
120
0.620492
18a25f7176a0db8da28ee23fca335e14183d324f
2,134
py
Python
886.py
OmangRawat/Leetcode
6fa696367ef9c5e6b08940b11e2202382d1afc07
[ "MIT" ]
null
null
null
886.py
OmangRawat/Leetcode
6fa696367ef9c5e6b08940b11e2202382d1afc07
[ "MIT" ]
null
null
null
886.py
OmangRawat/Leetcode
6fa696367ef9c5e6b08940b11e2202382d1afc07
[ "MIT" ]
null
null
null
""" ---> Possible Bipartition ---> Medium """ from collections import defaultdict, deque class Solution: def possibleBipartition(self, n: int, dislikes) -> bool: if not dislikes: return True queue, visited = deque(), {} dislike_graph = defaultdict(set) for p1, p2 in...
26.345679
115
0.53702
7c2ff475c916a2a190691918799cb5b29ed0141b
6,026
py
Python
tests/test_get_trusted_inputs.py
NeblioTeam/ledger-app-neblio
cd083e2ca8e390c1462f735f6575792d2b341a04
[ "Apache-2.0" ]
38
2020-07-03T03:18:40.000Z
2022-02-22T10:39:29.000Z
tests/test_get_trusted_inputs.py
NeblioTeam/ledger-app-neblio
cd083e2ca8e390c1462f735f6575792d2b341a04
[ "Apache-2.0" ]
39
2018-08-24T09:04:43.000Z
2020-04-29T16:39:43.000Z
tests/test_get_trusted_inputs.py
NeblioTeam/ledger-app-neblio
cd083e2ca8e390c1462f735f6575792d2b341a04
[ "Apache-2.0" ]
110
2018-08-21T13:01:32.000Z
2020-04-27T05:03:42.000Z
from io import BytesIO from bitcoin_client.hwi.serialization import CTransaction from bitcoin_client.utils import deser_trusted_input def test_get_trusted_inputs(cmd): raw_tx: bytes = bytes.fromhex( # Version no (4 bytes little endian) "02000000" # In-counter (varint 1-9 bytes) "0...
34.434286
84
0.628443
3c8b8ae67355a2ec1f0a07ae4678e1260838ac3e
3,210
py
Python
ALL/settings.py
wictor-parmenis/FreelancerManagerWeb
ff07b7b8b57f7e00ebdacc1e2bbaf177d8dc6eaa
[ "MIT" ]
null
null
null
ALL/settings.py
wictor-parmenis/FreelancerManagerWeb
ff07b7b8b57f7e00ebdacc1e2bbaf177d8dc6eaa
[ "MIT" ]
null
null
null
ALL/settings.py
wictor-parmenis/FreelancerManagerWeb
ff07b7b8b57f7e00ebdacc1e2bbaf177d8dc6eaa
[ "MIT" ]
null
null
null
""" Django settings for ALL project. Generated by 'django-admin startproject' using Django 2.2.3. 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 os # Bui...
25.68
91
0.695016
c228a73a5c6abfa9c8071717066bc4c6591bbbc5
243
py
Python
resources/main.py
AdriBloober/DiscordSearchBot
cdb203068053a0dda781f2fe3a0c346ef817b425
[ "Apache-2.0" ]
7
2020-02-26T19:14:39.000Z
2020-06-29T16:47:25.000Z
resources/main.py
AdriBloober/DiscordSearchBot
cdb203068053a0dda781f2fe3a0c346ef817b425
[ "Apache-2.0" ]
42
2020-02-26T19:33:10.000Z
2020-07-22T16:47:06.000Z
resources/main.py
AdriDevelopsThings/DiscordSearchBot
cdb203068053a0dda781f2fe3a0c346ef817b425
[ "Apache-2.0" ]
5
2020-02-26T19:28:33.000Z
2020-07-22T12:23:32.000Z
from discord import Activity, Status from . import client @client.event async def on_ready(): print("Ready") activity = Activity(name="Crawling gooooogle...") await client.change_presence(activity=activity, status=Status.online)
24.3
73
0.744856
6e80b9d72f65ebd98a2fc5b20e4c4cee8b2b8721
444
py
Python
repos/system_upgrade/el7toel8/models/requiredupgradeinitrampackages.py
panovotn/leapp-repository
e80bdbf65393e68bc2e91b43b46fdd9b9b787878
[ "Apache-2.0" ]
null
null
null
repos/system_upgrade/el7toel8/models/requiredupgradeinitrampackages.py
panovotn/leapp-repository
e80bdbf65393e68bc2e91b43b46fdd9b9b787878
[ "Apache-2.0" ]
1
2020-04-03T07:41:43.000Z
2020-04-03T07:41:43.000Z
repos/system_upgrade/el7toel8/models/requiredupgradeinitrampackages.py
panovotn/leapp-repository
e80bdbf65393e68bc2e91b43b46fdd9b9b787878
[ "Apache-2.0" ]
null
null
null
from leapp.models import Model, fields from leapp.topics import BootPrepTopic class RequiredUpgradeInitramPackages(Model): """ Requests packages to be installed that the leapp upgrade dracut image generation will succeed """ topic = BootPrepTopic packages = fields.List(fields.String(), default=[]) """...
37
114
0.747748
121d09ea1862268161b9f8d7dcac02a86f63072b
5,536
py
Python
seaice/shapefiles/test/test_smoke/test_smoke.py
andypbarrett/nsidc-seaice
167a16309f7eaadd5c613b54a7df26eb1f48c2f3
[ "MIT" ]
2
2020-08-27T08:40:22.000Z
2021-04-14T15:42:09.000Z
seaice/shapefiles/test/test_smoke/test_smoke.py
andypbarrett/nsidc-seaice
167a16309f7eaadd5c613b54a7df26eb1f48c2f3
[ "MIT" ]
null
null
null
seaice/shapefiles/test/test_smoke/test_smoke.py
andypbarrett/nsidc-seaice
167a16309f7eaadd5c613b54a7df26eb1f48c2f3
[ "MIT" ]
null
null
null
import os import shutil from unittest import TestCase import pandas as pd from click.testing import CliRunner from seaice.nasateam import VERSION_STRING as version from seaice.shapefiles.cli.sii_shp import cli class Test_cli_sii_shp(TestCase): output_dir = 'smoke_test_output' runner = CliRunner() def r...
37.405405
100
0.611633
39cb569b725c0e2bc4c9c9aa92388c2a8734e593
1,285
py
Python
fan_tools/mon_server/gitlab_runners.py
micro-fan/fan_tools
6e146ac4bf6fbe5119a03eb931498c45776a8928
[ "MIT" ]
1
2021-12-29T19:27:34.000Z
2021-12-29T19:27:34.000Z
fan_tools/mon_server/gitlab_runners.py
micro-fan/fan_tools
6e146ac4bf6fbe5119a03eb931498c45776a8928
[ "MIT" ]
1
2021-10-30T18:47:05.000Z
2021-10-30T18:47:05.000Z
fan_tools/mon_server/gitlab_runners.py
micro-fan/fan_tools
6e146ac4bf6fbe5119a03eb931498c45776a8928
[ "MIT" ]
null
null
null
import asyncio import logging import gitlab LOOP = 20 log = logging.getLogger('mon_server.gitlab_runners') def update_gitlab_runners(gitlab_api): metrics = {} try: log.debug('Going to update runners state') runners = gitlab_api.runners.all(scope='online') for runner in runners: ...
29.883721
95
0.618677
24c402862606bfeaaa8176db7c93f87a2026ec0c
2,369
py
Python
synthesis_classifier/multiprocessing_classifier.py
zhugeyicixin/MatBERT-synthesis-classifier
1ec448422a60afc2ea3689465697091c91050ea3
[ "MIT" ]
null
null
null
synthesis_classifier/multiprocessing_classifier.py
zhugeyicixin/MatBERT-synthesis-classifier
1ec448422a60afc2ea3689465697091c91050ea3
[ "MIT" ]
2
2020-12-02T07:30:27.000Z
2020-12-09T04:50:23.000Z
synthesis_classifier/multiprocessing_classifier.py
zhugeyicixin/MatBERT-synthesis-classifier
1ec448422a60afc2ea3689465697091c91050ea3
[ "MIT" ]
1
2021-02-26T07:46:46.000Z
2021-02-26T07:46:46.000Z
import logging import os from math import ceil from multiprocessing.pool import ThreadPool from typing import Union, Sized, Iterator from tqdm import tqdm from synthesis_classifier.model import get_tokenizer from synthesis_classifier.pclassifier import MultiprocessingClassifier, paragraphs2batch, batch2numpy __all__...
32.013514
101
0.598987
83b0b2cd429ab1c15e637174dca89dd3436381b3
8,613
py
Python
lspeas/analysis/modify_dynamicmodel.py
almarklein/stentseg
48255fffdc2394d1dc4ce2208c9a91e1d4c35a46
[ "BSD-3-Clause" ]
1
2020-08-28T16:34:10.000Z
2020-08-28T16:34:10.000Z
lspeas/analysis/modify_dynamicmodel.py
almarklein/stentseg
48255fffdc2394d1dc4ce2208c9a91e1d4c35a46
[ "BSD-3-Clause" ]
null
null
null
lspeas/analysis/modify_dynamicmodel.py
almarklein/stentseg
48255fffdc2394d1dc4ce2208c9a91e1d4c35a46
[ "BSD-3-Clause" ]
1
2021-04-25T06:59:36.000Z
2021-04-25T06:59:36.000Z
# created august 2016 - Maaike Koenrades """ Modify dynamic model and make dynamic again """ def on_key(event): """KEY commands for user interaction UP/DOWN = show/hide nodes DELETE = remove edge [select 2 nodes] or pop node [select 1 node] or remove seed sd._nodes1 closest to [picked point] ...
38.110619
123
0.600604
1c9cc5f99fdcd39e7de2da3342deb0a18e8e02ec
839
py
Python
scripts/write_Larson_UrbanPublicParks_SI.py
modelearth/flowsa
d4dcf5ef8764b4ef895080a54d0546668daf0e1a
[ "CC0-1.0" ]
13
2020-04-10T20:43:00.000Z
2022-02-12T09:00:56.000Z
scripts/write_Larson_UrbanPublicParks_SI.py
modelearth/flowsa
d4dcf5ef8764b4ef895080a54d0546668daf0e1a
[ "CC0-1.0" ]
93
2020-03-05T14:22:42.000Z
2022-03-30T20:33:06.000Z
scripts/write_Larson_UrbanPublicParks_SI.py
modelearth/flowsa
d4dcf5ef8764b4ef895080a54d0546668daf0e1a
[ "CC0-1.0" ]
16
2020-05-03T13:54:59.000Z
2022-01-06T16:42:53.000Z
# write_Larson_UrbanPublicParks_SI.py (scripts) # !/usr/bin/env python3 # coding=utf-8 """ Load and save the SI parks data from Larson LR, Jennings V, Cloutier SA (2016) Public Parks and Wellbeing in Urban Areas of the United States. PLoS ONE 11(4): e0153211. https://doi.org/10.1371/journal.pone.0153211 ...
26.21875
88
0.734207
7ea8acde4146857be8ae53019ec75c977c2abdcf
824
py
Python
gmssl/func.py
KyrinCode/python-sdk
57dd02388d6b8552ad346d72838c2fd8177fec65
[ "MIT" ]
61
2019-07-03T07:40:17.000Z
2022-03-06T13:30:53.000Z
gmssl/func.py
KyrinCode/python-sdk
57dd02388d6b8552ad346d72838c2fd8177fec65
[ "MIT" ]
105
2019-07-25T08:48:59.000Z
2022-03-23T03:47:34.000Z
gmssl/func.py
KyrinCode/python-sdk
57dd02388d6b8552ad346d72838c2fd8177fec65
[ "MIT" ]
61
2019-07-03T06:58:42.000Z
2022-02-16T08:50:14.000Z
from random import choice def xor(a, b): return list(map(lambda x, y: x ^ y, a, b)) def rotl(x, n): return ((x << n) & 0xffffffff) | ((x >> (32 - n)) & 0xffffffff) def get_uint32_be(key_data): return ( (key_data[0] << 24) | ( key_data[1] << 16) | ( key_data[2] << 8) | ( key...
21.684211
81
0.555825
c6bb29ce14a40d9a8e18fb4ff87736b13bd562ca
34
py
Python
tests/__init__.py
bronsonrudner/vsot
35dc66c4ae208719161f50f312ae6aaf665f24d2
[ "MIT" ]
17
2020-04-21T13:42:20.000Z
2022-01-18T11:31:17.000Z
tests/__init__.py
bronsonrudner/vsot
35dc66c4ae208719161f50f312ae6aaf665f24d2
[ "MIT" ]
8
2020-04-21T11:38:37.000Z
2020-06-01T19:59:43.000Z
tests/__init__.py
bronsonrudner/vsot
35dc66c4ae208719161f50f312ae6aaf665f24d2
[ "MIT" ]
4
2021-03-02T16:08:57.000Z
2022-01-03T20:25:53.000Z
"""Unit test package for vsot."""
17
33
0.647059
d58b8b04aede3c33f6ffed9bdfd18fcfe628fe73
3,410
py
Python
src/oncall/scheduler/round-robin.py
seuf/oncall
a689c1795cc9e48c05d390f7bc21650332265b86
[ "BSD-2-Clause" ]
null
null
null
src/oncall/scheduler/round-robin.py
seuf/oncall
a689c1795cc9e48c05d390f7bc21650332265b86
[ "BSD-2-Clause" ]
null
null
null
src/oncall/scheduler/round-robin.py
seuf/oncall
a689c1795cc9e48c05d390f7bc21650332265b86
[ "BSD-2-Clause" ]
null
null
null
from oncall.utils import gen_link_id import default import logging logger = logging.getLogger() class Scheduler(default.Scheduler): def guess_last_scheduled_user(self, schedule, start, roster, cursor): cursor.execute(''' SELECT MAX(`last_end`), `user_id` FROM ...
47.361111
108
0.540762
d6b94e8ffed61b1d124fb212a308467570144de7
4,551
py
Python
test/test_producer.py
silentben/kafka-python
b13a95c272cf0a09477d71b4b27fdfe9133835fa
[ "Apache-2.0" ]
null
null
null
test/test_producer.py
silentben/kafka-python
b13a95c272cf0a09477d71b4b27fdfe9133835fa
[ "Apache-2.0" ]
null
null
null
test/test_producer.py
silentben/kafka-python
b13a95c272cf0a09477d71b4b27fdfe9133835fa
[ "Apache-2.0" ]
null
null
null
import gc import platform import time import threading import pytest from kafka import KafkaConsumer, KafkaProducer, TopicPartition from kafka.producer.buffer import SimpleBufferPool from test.conftest import version from test.fixtures import random_string def test_buffer_pool(): pool = SimpleBufferPool(1000, 1...
32.741007
100
0.629752
ab8b66168ee4bdde7a8a43144faca2e3211705a0
10,893
py
Python
pychron/experiment/tasks/experiment_actions.py
WiscAr/pychron
8d335d53ba7a5fc70760d9a7cb60540ad169ae84
[ "Apache-2.0" ]
null
null
null
pychron/experiment/tasks/experiment_actions.py
WiscAr/pychron
8d335d53ba7a5fc70760d9a7cb60540ad169ae84
[ "Apache-2.0" ]
80
2018-07-17T20:10:20.000Z
2021-08-17T15:38:24.000Z
pychron/experiment/tasks/experiment_actions.py
UManPychron/pychron
b84c9fd70072f9cbda30abe2c471e64fe3dd75d8
[ "Apache-2.0" ]
null
null
null
# =============================================================================== # Copyright 2011 Jake Ross # # 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...
31.944282
104
0.633893
be90a43ed3b98243817a5ab00ed977e9e9bb3763
21,230
py
Python
examples/v12/ad_extensions.py
channable/BingAds-Python-SDK
205ebf9bdd9701d5d05c5f9ac59702083754f553
[ "MIT" ]
null
null
null
examples/v12/ad_extensions.py
channable/BingAds-Python-SDK
205ebf9bdd9701d5d05c5f9ac59702083754f553
[ "MIT" ]
null
null
null
examples/v12/ad_extensions.py
channable/BingAds-Python-SDK
205ebf9bdd9701d5d05c5f9ac59702083754f553
[ "MIT" ]
1
2019-03-15T10:43:21.000Z
2019-03-15T10:43:21.000Z
import base64 from auth_helper import * from campaignmanagement_example_helper import * # You must provide credentials in auth_helper.py. # To run this example you'll need to provide your own image. # For required aspect ratios and recommended dimensions please see # Image remarks at https://go.microsoft.com/fwli...
46.557018
154
0.721667
29686009699b2ae4e9b8a0a3475be2ed05677536
61,781
py
Python
opentamp/src/policy_hooks/robosuite/holdout_agent.py
Algorithmic-Alignment-Lab/openTAMP-legacy
3b7c3be164cc968ad77a928286d6460cd70a670e
[ "MIT" ]
2
2022-03-09T19:48:20.000Z
2022-03-26T17:31:07.000Z
opentamp/src/policy_hooks/robosuite/holdout_agent.py
Algorithmic-Alignment-Lab/OpenTAMP
eecb950bd273da8cbed4394487630e8453f2c242
[ "MIT" ]
null
null
null
opentamp/src/policy_hooks/robosuite/holdout_agent.py
Algorithmic-Alignment-Lab/OpenTAMP
eecb950bd273da8cbed4394487630e8453f2c242
[ "MIT" ]
null
null
null
import copy import random import sys import time import traceback import pickle as pickle import ctypes import numpy as np import scipy.interpolate from scipy.spatial.transform import Rotation from PIL import Image, ImageDraw, ImageFont, ImageOps import xml.etree.ElementTree as xml from sco_py.expr import * impor...
44.736423
199
0.571891
63f1b08ed54b817bf9bf630e339e040c9e566226
3,700
py
Python
gcloud/iam_auth/resource_api/project.py
springborland/bk-sops
a9057672c10efb5f2414a805a30ead4092429c76
[ "Apache-2.0" ]
1
2021-05-19T04:31:34.000Z
2021-05-19T04:31:34.000Z
gcloud/iam_auth/resource_api/project.py
sighttviewliu/bk-sops
6bf2f38bd93990f20f7c3a4decafc310e09e679c
[ "Apache-2.0" ]
null
null
null
gcloud/iam_auth/resource_api/project.py
sighttviewliu/bk-sops
6bf2f38bd93990f20f7c3a4decafc310e09e679c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2020 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
37
115
0.662162
bf7776995a89fc9c48252fc9b1be46e1d0c2c42b
6,737
py
Python
opencensus/trace/exporters/zipkin_exporter.py
zeako/opencensus-python
5331d7476edd4af65885295f10d23b7864e5e741
[ "Apache-2.0" ]
null
null
null
opencensus/trace/exporters/zipkin_exporter.py
zeako/opencensus-python
5331d7476edd4af65885295f10d23b7864e5e741
[ "Apache-2.0" ]
null
null
null
opencensus/trace/exporters/zipkin_exporter.py
zeako/opencensus-python
5331d7476edd4af65885295f10d23b7864e5e741
[ "Apache-2.0" ]
null
null
null
# Copyright 2017, OpenCensus 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 w...
31.92891
78
0.604869
a1a008c9b1e3570ac16cecc862cadb0bc7d97c7e
74,252
py
Python
src/sage/combinat/cluster_algebra_quiver/mutation_type.py
Findstat/sage
d661c2c2bd18676014c151e9eec1e81ed12db9f6
[ "BSL-1.0" ]
null
null
null
src/sage/combinat/cluster_algebra_quiver/mutation_type.py
Findstat/sage
d661c2c2bd18676014c151e9eec1e81ed12db9f6
[ "BSL-1.0" ]
null
null
null
src/sage/combinat/cluster_algebra_quiver/mutation_type.py
Findstat/sage
d661c2c2bd18676014c151e9eec1e81ed12db9f6
[ "BSL-1.0" ]
null
null
null
r""" This file contains helper functions for detecting the mutation type of a cluster algebra or quiver. For the compendium on the cluster algebra and quiver package see :arxiv:`1102.4844` AUTHORS: - Gregg Musiker - Christian Stump """ #***************************************************************************** ...
49.700134
437
0.542585
37c8ff089b5274d85169267b960a316fc1ba36de
1,228
py
Python
plot_acf.py
bco-bc/panalysis
4a21c26fde716599fec8a194e1e1001afa1e1233
[ "MIT" ]
null
null
null
plot_acf.py
bco-bc/panalysis
4a21c26fde716599fec8a194e1e1001afa1e1233
[ "MIT" ]
null
null
null
plot_acf.py
bco-bc/panalysis
4a21c26fde716599fec8a194e1e1001afa1e1233
[ "MIT" ]
null
null
null
"""Reads time and values of scalar quantity (components of vector) from input file, computes quantity' (vector's) auto util function (ACF), and generates a plot. Input file should contain 2 or more columns of data. The first column represents time, the remaining one(s) holds (hold) the values of the scalar quantity (th...
28.55814
113
0.697883
8abb25f3ee4e83eb906665af5d1041b9aaa5cc43
2,166
py
Python
JumpScale9AYS/jobcontroller/SourceLoader.py
Jumpscale/ays9
63bd414ff06372ba885c55eec528f427e63bcbe1
[ "Apache-2.0" ]
4
2017-06-07T08:10:06.000Z
2017-11-10T02:20:38.000Z
JumpScale9AYS/jobcontroller/SourceLoader.py
Jumpscale/ays9
63bd414ff06372ba885c55eec528f427e63bcbe1
[ "Apache-2.0" ]
242
2017-05-18T10:51:48.000Z
2019-09-18T15:09:47.000Z
JumpScale9AYS/jobcontroller/SourceLoader.py
Jumpscale/ays9
63bd414ff06372ba885c55eec528f427e63bcbe1
[ "Apache-2.0" ]
5
2017-06-16T15:43:25.000Z
2017-09-29T12:48:06.000Z
import importlib import types from js9 import j class SourceLoader: """ holds the logic of building the code of a service actions """ def __init__(self, service): self._module = None self._source = None self.service = service def _load(self): """ load all ...
27.417722
90
0.518929
d7db2de70a593dbe8e35c8685552c58436937c56
11,673
py
Python
workers/release_worker/release_worker.py
bostonossi/augur-pre-20201009
5641700941a882e856da05e744dfa632876cb158
[ "MIT" ]
2
2020-08-30T00:03:46.000Z
2020-09-17T23:00:20.000Z
workers/release_worker/release_worker.py
bostonossi/augur-pre-20201009
5641700941a882e856da05e744dfa632876cb158
[ "MIT" ]
7
2020-12-06T06:25:17.000Z
2020-12-21T00:21:34.000Z
workers/release_worker/release_worker.py
bostonossi/augur-pre-20201009
5641700941a882e856da05e744dfa632876cb158
[ "MIT" ]
null
null
null
import logging, os, sys, time, requests, json from datetime import datetime from multiprocessing import Process, Queue from urllib.parse import urlparse import pandas as pd import sqlalchemy as s from sqlalchemy import MetaData from sqlalchemy.ext.automap import automap_base from workers.worker_base import Worker #TOD...
42.293478
139
0.48625
ac3484bb4447dd4856f8392cbe9cd873cb1f7083
15,201
py
Python
ampoule/pool.py
openbridge/ampoule
b14b2f6b76b37dfd7a10a3df28e7e663cf153db2
[ "MIT" ]
10
2018-01-26T03:12:51.000Z
2021-08-20T09:42:07.000Z
ampoule/pool.py
openbridge/ampoule
b14b2f6b76b37dfd7a10a3df28e7e663cf153db2
[ "MIT" ]
18
2017-12-14T04:04:17.000Z
2017-12-18T05:56:31.000Z
ampoule/pool.py
openbridge/ampoule
b14b2f6b76b37dfd7a10a3df28e7e663cf153db2
[ "MIT" ]
17
2017-12-25T00:50:31.000Z
2022-03-18T21:52:42.000Z
import time import random import heapq import itertools import functools import signal choice = random.choice now = time.time count = functools.partial(next, itertools.count()) pop = heapq.heappop from twisted import logger from twisted.internet import defer, task, error from twisted.python.failure import Failure fro...
35.025346
82
0.584567
4925af96481a21e055bdc4d3f335ea822a51850e
11,788
py
Python
text/src/autogluon/text/automm/data/infer_types.py
plseal/autogluon
10d3236f07456f683326107172776944603aeed4
[ "Apache-2.0" ]
null
null
null
text/src/autogluon/text/automm/data/infer_types.py
plseal/autogluon
10d3236f07456f683326107172776944603aeed4
[ "Apache-2.0" ]
null
null
null
text/src/autogluon/text/automm/data/infer_types.py
plseal/autogluon
10d3236f07456f683326107172776944603aeed4
[ "Apache-2.0" ]
null
null
null
import collections import pandas as pd import warnings import PIL from typing import Union, Optional, List, Dict, Tuple from ..constants import ( NULL, CATEGORICAL, NUMERICAL, TEXT, IMAGE_PATH, MULTICLASS, BINARY, REGRESSION, ) def is_categorical_column( data: pd.Series, valid_data: pd.Series,...
34.670588
100
0.618171
609d4836fb3744a6c20bdb38baec05ad062f4c97
9,430
py
Python
cromwell_tools/cli.py
fuego0607/cromwell-tools
89449f0769c336404f33d5532d6458791b3f982a
[ "BSD-3-Clause" ]
null
null
null
cromwell_tools/cli.py
fuego0607/cromwell-tools
89449f0769c336404f33d5532d6458791b3f982a
[ "BSD-3-Clause" ]
null
null
null
cromwell_tools/cli.py
fuego0607/cromwell-tools
89449f0769c336404f33d5532d6458791b3f982a
[ "BSD-3-Clause" ]
null
null
null
import argparse import requests from cromwell_tools.cromwell_api import CromwellAPI from cromwell_tools.cromwell_auth import CromwellAuth from cromwell_tools.diag import task_runtime from cromwell_tools import __version__ as cromwell_tools_version import sys diagnostic_index = {'task_runtime': task_runtime.run} cla...
31.122112
141
0.615801
5b65259a7e0a9320c2bb3a771aa7e3d869d99820
86,315
py
Python
marathon_lb.py
unai-ttxu/marathon-lb-sec
a893cc7c550af02b15d307f941023c7d26a9f1ba
[ "Apache-2.0" ]
23
2017-04-17T14:15:10.000Z
2021-03-27T12:14:58.000Z
marathon_lb.py
unai-ttxu/marathon-lb-sec
a893cc7c550af02b15d307f941023c7d26a9f1ba
[ "Apache-2.0" ]
13
2017-11-10T11:31:04.000Z
2019-07-02T08:13:21.000Z
marathon_lb.py
unai-ttxu/marathon-lb-sec
a893cc7c550af02b15d307f941023c7d26a9f1ba
[ "Apache-2.0" ]
17
2017-03-17T08:48:59.000Z
2020-04-13T15:06:48.000Z
#!/usr/bin/env python3 """# marathon-lb ### Overview The marathon-lb is a service discovery and load balancing tool for Marathon based on HAProxy. It reads the Marathon task information and dynamically generates HAProxy configuration details. To gather the task information, marathon-lb needs to know where to find Mar...
40.888205
104
0.553901
4250a3d1529f8450594c621f354f15dd78c5a792
5,223
py
Python
bsp/stm32/stm32l475-atk-pandora/rtconfig.py
rockonedege/rt-thread
4fe6c709d0bfe719bed6c927f0144ba373bbda5a
[ "Apache-2.0" ]
7,482
2015-01-01T09:23:08.000Z
2022-03-31T19:34:05.000Z
bsp/stm32/stm32l475-atk-pandora/rtconfig.py
rockonedege/rt-thread
4fe6c709d0bfe719bed6c927f0144ba373bbda5a
[ "Apache-2.0" ]
2,543
2015-01-09T02:01:34.000Z
2022-03-31T23:10:14.000Z
bsp/stm32/stm32l475-atk-pandora/rtconfig.py
rockonedege/rt-thread
4fe6c709d0bfe719bed6c927f0144ba373bbda5a
[ "Apache-2.0" ]
4,645
2015-01-06T07:05:31.000Z
2022-03-31T18:21:50.000Z
import os # toolchains options ARCH='arm' CPU='cortex-m4' CROSS_TOOL='gcc' # bsp lib config BSP_LIBRARY_TYPE = None if os.getenv('RTT_CC'): CROSS_TOOL = os.getenv('RTT_CC') if os.getenv('RTT_ROOT'): RTT_ROOT = os.getenv('RTT_ROOT') # cross_tool provides the cross compiler # EXEC_PATH is the compiler execute...
28.080645
117
0.581467
7dbfc991c37140477f612c710913e37797093f68
22
py
Python
tccli/services/gse/v20191112/__init__.py
ivandksun/tencentcloud-cli-intl-en
41b84e339918961b8bc92f7498e56347d21e16d3
[ "Apache-2.0" ]
null
null
null
tccli/services/gse/v20191112/__init__.py
ivandksun/tencentcloud-cli-intl-en
41b84e339918961b8bc92f7498e56347d21e16d3
[ "Apache-2.0" ]
1
2022-02-07T13:39:09.000Z
2022-02-07T13:39:09.000Z
tccli/services/gse/v20191112/__init__.py
ivandksun/tencentcloud-cli-intl-en
41b84e339918961b8bc92f7498e56347d21e16d3
[ "Apache-2.0" ]
4
2020-07-20T01:51:58.000Z
2021-08-13T08:25:22.000Z
version = "2019-11-12"
22
22
0.681818
7040f83642aa77e17a6a87bba06b4bbe1144c96c
8,329
py
Python
BL_Server_Engine_Utils.py
john-mestas-t/impi-core
fff85327760fd8f14d0610a20154730af032385e
[ "Apache-2.0" ]
null
null
null
BL_Server_Engine_Utils.py
john-mestas-t/impi-core
fff85327760fd8f14d0610a20154730af032385e
[ "Apache-2.0" ]
null
null
null
BL_Server_Engine_Utils.py
john-mestas-t/impi-core
fff85327760fd8f14d0610a20154730af032385e
[ "Apache-2.0" ]
null
null
null
from DB_Controlers import * import datetime import dropbox import os import sys import stat import time import onedrivesdk from onedrivesdk.helpers import GetAuthCodeServer class Convert(object): def __init__(self): pass @classmethod def to_list(self, nm_ser_prm, dt_ac_prm): ls_data_ac =...
31.430189
85
0.560692
a518d71a2593597ae074f9c5d79ffceca5642cb5
4,949
py
Python
bin/fdpr_dl.py
rpsene/fdpr-wrap
4b2ff9f0f8bb3e039c37823a58aa1661ab61dd5f
[ "Apache-2.0" ]
2
2019-10-17T17:52:01.000Z
2021-07-29T04:16:35.000Z
bin/fdpr_dl.py
rpsene/fdpr-wrap
4b2ff9f0f8bb3e039c37823a58aa1661ab61dd5f
[ "Apache-2.0" ]
null
null
null
bin/fdpr_dl.py
rpsene/fdpr-wrap
4b2ff9f0f8bb3e039c37823a58aa1661ab61dd5f
[ "Apache-2.0" ]
2
2017-12-14T00:38:15.000Z
2018-09-06T12:55:09.000Z
#!/usr/bin/python ''' Copyright (C) 2017 IBM Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to ...
27.803371
139
0.675894
5dba429006853d7775b5fb99f54cc669f6ad24d5
3,475
py
Python
BioSTEAM 2.x.x/biorefineries/actag/_units.py
yoelcortes/Bioindustrial-Complex
d39edfec88e443ef7a62218ca0215e3b105f4b96
[ "MIT" ]
2
2020-01-03T21:04:41.000Z
2020-01-09T01:15:48.000Z
BioSTEAM 2.x.x/biorefineries/actag/_units.py
yoelcortes/Bioindustrial-Complex
d39edfec88e443ef7a62218ca0215e3b105f4b96
[ "MIT" ]
6
2020-01-03T21:31:27.000Z
2020-02-28T13:53:56.000Z
BioSTEAM 2.x.x/biorefineries/actag/_units.py
yoelcortes/Bioindustrial-Complex
d39edfec88e443ef7a62218ca0215e3b105f4b96
[ "MIT" ]
2
2020-01-07T14:04:06.000Z
2020-01-08T23:05:25.000Z
# -*- coding: utf-8 -*- """ """ import biosteam as bst from thermosteam import PRxn, Rxn __all__ = ('OleinCrystallizer', 'Fermentation') class OleinCrystallizer(bst.BatchCrystallizer): def __init__(self, ID='', ins=None, outs=(), thermo=None, *, T, crystal_TAG_purity=0.95, melt_AcTAG_purity...
40.882353
117
0.582158
19c0c30dd67942ce8d471f2a5578619caa5af5dc
4,075
py
Python
covid19/probes/covid.py
clambin/covid19mon
78a2f7144f4b15c707208115ea99bea772eb95f6
[ "MIT" ]
null
null
null
covid19/probes/covid.py
clambin/covid19mon
78a2f7144f4b15c707208115ea99bea772eb95f6
[ "MIT" ]
1
2020-11-16T20:57:01.000Z
2020-11-16T20:57:01.000Z
covid19/probes/covid.py
clambin/covid19mon
78a2f7144f4b15c707208115ea99bea772eb95f6
[ "MIT" ]
null
null
null
from abc import ABC import logging from datetime import datetime import pytz from prometheus_client import Summary, Gauge from pimetrics.probe import APIProbe from covid19.pgconnectors.pgconnector import DBError from covid19.probes.countries import country_codes from covid19.metrics import MetricsPusher REQUEST_TIME =...
41.161616
109
0.606135
8e164ab9d13b2dc34db1b83cc40b33c5fab3c10f
2,106
py
Python
buildroot-2017.08/support/scripts/pycompile.py
xregist/v3s-linux-sdk
a2b013e3959662d65650a13fc23ec1cd503865eb
[ "Apache-2.0" ]
31
2018-01-16T17:11:44.000Z
2022-03-16T13:51:24.000Z
rootfs/buildroot-2017.11.1/support/scripts/pycompile.py
linlyv/SUDA_V3S
1809657dfdbd07c15304e941775441c478de2efb
[ "Apache-2.0" ]
1
2021-04-29T09:08:08.000Z
2021-05-08T07:57:06.000Z
rootfs/buildroot-2017.11.1/support/scripts/pycompile.py
linlyv/SUDA_V3S
1809657dfdbd07c15304e941775441c478de2efb
[ "Apache-2.0" ]
30
2018-05-02T08:43:27.000Z
2022-01-23T03:25:54.000Z
#!/usr/bin/env python '''Wrapper for python2 and python3 around compileall to raise exception when a python byte code generation failed. Inspired from: http://stackoverflow.com/questions/615632/how-to-detect-errors-from-compileall-compile-dir ''' from __future__ import print_function import sys import py_compile i...
31.432836
96
0.686135
5542faaa9af403eb5b3e6ca1da58a0f1f7390a3b
113
py
Python
spectacle/fitting/__init__.py
nmearl/spectacle
ae2d11a41dfae5430de392d54b06bf991003fd69
[ "BSD-3-Clause" ]
null
null
null
spectacle/fitting/__init__.py
nmearl/spectacle
ae2d11a41dfae5430de392d54b06bf991003fd69
[ "BSD-3-Clause" ]
1
2021-05-13T20:51:13.000Z
2021-05-13T20:51:13.000Z
spectacle/fitting/__init__.py
nmearl/spectacle
ae2d11a41dfae5430de392d54b06bf991003fd69
[ "BSD-3-Clause" ]
null
null
null
from .line_finder import LineFinder1D from .curve_fitter import CurveFitter from .mcmc_fitter import EmceeFitter
28.25
37
0.867257
516356b845877fd38e67ce91fb31ec495c6fd27c
1,862
py
Python
routerconfig/Interface.py
lbmello/router-config
721063f5744e8812d7087425bc088c3b0e274e09
[ "Apache-2.0" ]
2
2020-04-18T23:10:19.000Z
2020-05-15T02:55:47.000Z
routerconfig/Interface.py
lbmello/router-config
721063f5744e8812d7087425bc088c3b0e274e09
[ "Apache-2.0" ]
null
null
null
routerconfig/Interface.py
lbmello/router-config
721063f5744e8812d7087425bc088c3b0e274e09
[ "Apache-2.0" ]
null
null
null
"""Modulo que gerencia as interfaces de rede dos routers.""" class Interface: def __init__(self, name, description, full_ip): """Interface - Gerencia as interfaces de rede dos routers. :name: Nome da interface - str. :description: Dado descritivo da interface - str. :full_ip: End...
26.985507
92
0.593448
99588129ac938e9b6c5c15b9606d91e861c16c29
342
py
Python
src/cube/op/mold/resize/squeeze.py
jedhsu/cortex
d610570743d59272c7e6326d10c53d55950e87fc
[ "Apache-2.0" ]
null
null
null
src/cube/op/mold/resize/squeeze.py
jedhsu/cortex
d610570743d59272c7e6326d10c53d55950e87fc
[ "Apache-2.0" ]
null
null
null
src/cube/op/mold/resize/squeeze.py
jedhsu/cortex
d610570743d59272c7e6326d10c53d55950e87fc
[ "Apache-2.0" ]
null
null
null
""" *Squeeze* """ import jax.numpy as jnp from ._operator import ShapingOperator __all__ = ["Squeeze"] class Squeeze( ShapingOperator, ): operator = jnp.squeeze def __init__( self, *args, **kwargs, ): super(Squeeze, self).__init__( *args, ...
12.666667
38
0.520468
6ff3e53c6ef1c896bb88eba1743dd5915ba245aa
1,060
py
Python
BlackJackFunctions.py
Joshua-Sottile/SimpleBlackJack
4500d98ea7029b74e91295e308e158813f1bea1f
[ "MIT" ]
null
null
null
BlackJackFunctions.py
Joshua-Sottile/SimpleBlackJack
4500d98ea7029b74e91295e308e158813f1bea1f
[ "MIT" ]
null
null
null
BlackJackFunctions.py
Joshua-Sottile/SimpleBlackJack
4500d98ea7029b74e91295e308e158813f1bea1f
[ "MIT" ]
null
null
null
def count_ace(somelist): count = 0 for card in somelist: if card.rank == 'Ace': count += 1 return count def print_values(c, p): print(f'*Computer hand value: {c}') print(f'*Player hand value: {p}') print('\n') def sub_ace(hand_value, ace_func): # 1 Ace + hand > 21 ...
21.2
49
0.528302
95afbc1446976e055dd7256dde77d0b26bbf176f
556
py
Python
adquisitions/migrations/0063_auto_20200605_1917.py
amado-developer/ReadHub-RestfulAPI
8d8b445c4a84810d52bbf78a2593e0b48351590c
[ "MIT" ]
null
null
null
adquisitions/migrations/0063_auto_20200605_1917.py
amado-developer/ReadHub-RestfulAPI
8d8b445c4a84810d52bbf78a2593e0b48351590c
[ "MIT" ]
7
2021-03-19T03:09:53.000Z
2022-01-13T02:48:44.000Z
adquisitions/migrations/0063_auto_20200605_1917.py
amado-developer/ReadHub-RestfulAPI
8d8b445c4a84810d52bbf78a2593e0b48351590c
[ "MIT" ]
null
null
null
# Generated by Django 3.0.6 on 2020-06-05 19:17 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('digital_books', '0008_digital_book_rating'), ('adquisitions', '0062_auto_20200605_1859'), ] operations = [ ...
26.47619
125
0.656475
8ec2c83f1f93431568b2f33680af654a9a46ffb7
551
py
Python
src/models/enviroment/wall.py
timseymore/depths-of-madness
5d4929eb2dca2469c60cb4e2d145959fa3c2b780
[ "MIT" ]
null
null
null
src/models/enviroment/wall.py
timseymore/depths-of-madness
5d4929eb2dca2469c60cb4e2d145959fa3c2b780
[ "MIT" ]
null
null
null
src/models/enviroment/wall.py
timseymore/depths-of-madness
5d4929eb2dca2469c60cb4e2d145959fa3c2b780
[ "MIT" ]
null
null
null
import pygame from src.ui.tools.colors import Color class Wall(pygame.sprite.Sprite): """ A wall that the player can run into. """ def __init__(self, x, y, width, height): """ Constructor Method - x: int : x position - y: int : y position - width: int : width of block ...
25.045455
67
0.580762
978a2fa5c3d45e5c3f1e72478ad1e60f4c7894e5
683
py
Python
circle_core/workers/__init__.py
glucoseinc/CircleCore
577f814ce2944efb6e5997f3d7838c71ce9aea6a
[ "MIT" ]
3
2019-01-11T04:30:18.000Z
2019-01-11T04:31:18.000Z
circle_core/workers/__init__.py
glucoseinc/CircleCore
577f814ce2944efb6e5997f3d7838c71ce9aea6a
[ "MIT" ]
16
2018-11-21T11:47:18.000Z
2021-09-01T03:52:35.000Z
circle_core/workers/__init__.py
glucoseinc/CircleCore
577f814ce2944efb6e5997f3d7838c71ce9aea6a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """workers. invoked by `crcr worker run <module_name>`.""" import typing from . import (datareceiver, http, slave_driver) # noqa from .base import CircleWorker, make_worker from .blobstore import BlobStoreWorker, WORKER_BLOBSTORE WORKER_DATARECEIVER = datareceiver.WORKER_DATARECEIVER WORKER_...
26.269231
74
0.737921
51d2174dc9c88e07f69c3753e9556f8678ca1a72
3,558
py
Python
threedb/evaluators/classification.py
3db/3db
b3aa0175ad45572337d6a16ac3fb6d434609f007
[ "MIT" ]
83
2021-04-28T11:54:21.000Z
2022-01-29T03:47:03.000Z
threedb/evaluators/classification.py
3db/3db
b3aa0175ad45572337d6a16ac3fb6d434609f007
[ "MIT" ]
3
2021-05-01T22:27:39.000Z
2021-05-01T22:28:22.000Z
threedb/evaluators/classification.py
3db/3db
b3aa0175ad45572337d6a16ac3fb6d434609f007
[ "MIT" ]
3
2021-04-27T21:26:13.000Z
2021-06-16T13:05:15.000Z
""" threedb.evaluators.classification ================================== Implements a basic evaluator for classification-based tasks. """ import json from typing import Dict, List, Tuple, Any import torch as ch from torch import nn, Tensor from typeguard import check_type from threedb.evaluators.base_evaluator impo...
33.566038
108
0.624508
8db4437ddd3ae860abf79aed5456cf5df1fdcc73
2,954
py
Python
chatbot_voice.py
vaishnaviverma/CHEERBOT-Your-Emotional-Companion
2cb73231a0ccc5144018f99a83865964bd990231
[ "CC0-1.0" ]
6
2020-09-17T07:09:46.000Z
2022-01-14T16:40:34.000Z
chatbot_voice.py
vaishnaviverma/CHEERBOT-Your-Emotional-Companion
2cb73231a0ccc5144018f99a83865964bd990231
[ "CC0-1.0" ]
10
2020-09-11T18:00:56.000Z
2021-06-25T15:45:57.000Z
chatbot_voice.py
vaishnaviverma/CHEERBOT-Your-Emotional-Companion
2cb73231a0ccc5144018f99a83865964bd990231
[ "CC0-1.0" ]
13
2020-09-11T16:46:02.000Z
2022-02-18T19:35:51.000Z
# -*- coding: utf-8 -*- """ Created on Fri Oct 20 11:19:53 2017 @author: Chintan """ import random, os, broize from gtts import gTTS from playsound import playsound import speech_recognition as hear def greeting(sentence): for word in sentence: if word.lower() in GREETING_KEYWORDS: return rand...
34.752941
94
0.495938
1a5fbf834e9f3a3daf1dde99ebe0076d651e9959
374
py
Python
djoser/social/token/jwt.py
nschlemm/djoser
68aae064ad2a9783e512430454367f8b7dde0884
[ "MIT" ]
null
null
null
djoser/social/token/jwt.py
nschlemm/djoser
68aae064ad2a9783e512430454367f8b7dde0884
[ "MIT" ]
null
null
null
djoser/social/token/jwt.py
nschlemm/djoser
68aae064ad2a9783e512430454367f8b7dde0884
[ "MIT" ]
1
2018-12-27T02:35:44.000Z
2018-12-27T02:35:44.000Z
class TokenStrategy: @classmethod def obtain(cls, user): from rest_framework_simplejwt.tokens import RefreshToken from django.utils.six import text_type refresh = RefreshToken.for_user(user) return { 'access': text_type(refresh.access_token), 'refresh': te...
31.166667
64
0.620321
5ce3f8f5a2a4694f08339b14c22b581473dfa84b
166
py
Python
Src/Clova/vendor/future/moves/itertools.py
NishiYusuke/Line-boot-award
d77f26b9109f3cba45be5906bcb6c9314974cd92
[ "MIT" ]
2
2020-08-17T07:52:48.000Z
2020-12-18T16:39:32.000Z
Src/Clova/vendor/future/moves/itertools.py
NishiYusuke/Line-boot-award
d77f26b9109f3cba45be5906bcb6c9314974cd92
[ "MIT" ]
5
2020-12-15T23:40:14.000Z
2022-02-23T15:43:18.000Z
Src/Clova/vendor/future/moves/itertools.py
NishiYusuke/Line-boot-award
d77f26b9109f3cba45be5906bcb6c9314974cd92
[ "MIT" ]
4
2019-05-16T09:57:33.000Z
2021-07-14T12:31:21.000Z
from __future__ import absolute_import from itertools import * try: zip_longest = izip_longest filterfalse = ifilterfalse except NameError: pass
18.444444
39
0.73494
be699d4be593482f2bc3d61e97e478ea661c1518
3,665
py
Python
luigi/mock.py
Mappy/luigi
539cd2cf69902bb6cef688afdf55e991cae4b537
[ "Apache-2.0" ]
null
null
null
luigi/mock.py
Mappy/luigi
539cd2cf69902bb6cef688afdf55e991cae4b537
[ "Apache-2.0" ]
null
null
null
luigi/mock.py
Mappy/luigi
539cd2cf69902bb6cef688afdf55e991cae4b537
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2012 Spotify AB # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy of # the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
31.869565
79
0.622374
e71742c45f66d3e8d3474efe58e1934fb407cbe4
84
py
Python
01-basics/app.py
vitoOmbero/python-notes
062c05c216d8a59678868d62dd5aacea6249e0b2
[ "Unlicense" ]
null
null
null
01-basics/app.py
vitoOmbero/python-notes
062c05c216d8a59678868d62dd5aacea6249e0b2
[ "Unlicense" ]
null
null
null
01-basics/app.py
vitoOmbero/python-notes
062c05c216d8a59678868d62dd5aacea6249e0b2
[ "Unlicense" ]
null
null
null
print("Just bought some time for python :zany_face:") print("#" * 50) print("err")
16.8
53
0.666667
5463cfccfff0e6fab861f6d9d8ab982e993322f3
361
py
Python
wastd/observations/resources.py
ropable/wastd
295c60760548d177859de9c0bebdae93342767d0
[ "MIT" ]
1
2022-01-27T09:39:58.000Z
2022-01-27T09:39:58.000Z
wastd/observations/resources.py
ropable/wastd
295c60760548d177859de9c0bebdae93342767d0
[ "MIT" ]
79
2020-07-27T06:06:14.000Z
2022-03-12T01:44:34.000Z
wastd/observations/resources.py
ropable/wastd
295c60760548d177859de9c0bebdae93342767d0
[ "MIT" ]
null
null
null
from import_export.resources import ModelResource from wastd.observations.models import AnimalEncounter class AnimalEncounterResource(ModelResource): class Meta: model = AnimalEncounter fields = [ 'when', 'area', 'site', 'where', 'name', 'taxon', 'species', 'sex', 'maturity', ...
32.818182
91
0.67313
5074472493784cba3c801e43803e983eef4eb38d
2,450
py
Python
xadmin/plugins/aggregation.py
phuonghoanglua/cadmin
2c61ee15716f15e1ec5ff1670c1003d6496959de
[ "BSD-3-Clause" ]
10
2020-06-13T14:42:29.000Z
2021-03-15T03:26:18.000Z
xadmin/plugins/aggregation.py
phuonghoanglua/cadmin
2c61ee15716f15e1ec5ff1670c1003d6496959de
[ "BSD-3-Clause" ]
null
null
null
xadmin/plugins/aggregation.py
phuonghoanglua/cadmin
2c61ee15716f15e1ec5ff1670c1003d6496959de
[ "BSD-3-Clause" ]
3
2020-11-26T04:57:49.000Z
2021-03-25T17:08:39.000Z
from django.core.exceptions import FieldDoesNotExist from django.db.models import Avg, Max, Min, Count, Sum from django.utils.translation import ugettext as _ from django.forms import Media from xadmin.sites import site from xadmin.views import BaseAdminPlugin, ListAdminView from xadmin.views.list import ResultRow, R...
35
130
0.627347
064c32055d5194519b1a0beff62a31483574def4
93
py
Python
qrpc/__init__.py
oangeor/QRpc
99ae966c850fb4427f8f620004d1abe1d62da753
[ "MIT" ]
4
2017-09-04T08:56:25.000Z
2018-06-19T14:27:31.000Z
qrpc/__init__.py
oangeor/QRpc
99ae966c850fb4427f8f620004d1abe1d62da753
[ "MIT" ]
null
null
null
qrpc/__init__.py
oangeor/QRpc
99ae966c850fb4427f8f620004d1abe1d62da753
[ "MIT" ]
null
null
null
# coding=utf-8 def setup(): # TODO: """ Configure the settings, """ pass
11.625
27
0.494624
4009df64acb4ce805cc24c1a41eb42d927c35bbd
3,792
py
Python
Python_Challenge_Day_Twelve/Python_Challenge_Day_Twelve.py
alstn2468/Nomad_Coder_Python_Challenge
6be4f8c7eb010c9ab9deafc2e78fff4215909eef
[ "MIT" ]
null
null
null
Python_Challenge_Day_Twelve/Python_Challenge_Day_Twelve.py
alstn2468/Nomad_Coder_Python_Challenge
6be4f8c7eb010c9ab9deafc2e78fff4215909eef
[ "MIT" ]
null
null
null
Python_Challenge_Day_Twelve/Python_Challenge_Day_Twelve.py
alstn2468/Nomad_Coder_Python_Challenge
6be4f8c7eb010c9ab9deafc2e78fff4215909eef
[ "MIT" ]
null
null
null
import requests import re from bs4 import BeautifulSoup from flask import Flask, render_template, request, redirect, url_for """ When you try to scrape reddit make sure to send the 'headers' on your request. Reddit blocks scrappers so we have to include these headers to make reddit think that we are a normal computer ...
24.947368
139
0.644515
b53fc24fc9081a5b49113127bdd1bffff556ebf4
1,531
py
Python
threatstack/komand_threatstack/actions/get_alerts/schema.py
emartin-merrill-r7/insightconnect-plugins
a589745dbcc9f01d3e601431e77ab7221a84c117
[ "MIT" ]
1
2020-03-18T09:14:55.000Z
2020-03-18T09:14:55.000Z
threatstack/komand_threatstack/actions/get_alerts/schema.py
OSSSP/insightconnect-plugins
846758dab745170cf1a8c146211a8bea9592e8ff
[ "MIT" ]
null
null
null
threatstack/komand_threatstack/actions/get_alerts/schema.py
OSSSP/insightconnect-plugins
846758dab745170cf1a8c146211a8bea9592e8ff
[ "MIT" ]
null
null
null
# GENERATED BY KOMAND SDK - DO NOT EDIT import komand import json class Component: DESCRIPTION = "Get alerts by filter" class Input: END = "end" FIELDS = "fields" START = "start" class Output: ALERTS = "alerts" COUNT = "count" class GetAlertsInput(komand.Input): schema = json...
17.597701
57
0.501633
1925c40d1a4d1775341db0432324295c77231de6
432
py
Python
Data-Analysis/venv_macos/lib/python3.8/site-packages/echarts_china_cities_pypkg/__init__.py
Qiaozhi94/Python-Projects
aefc6cf49c1f4f2cc9beba8dbe80cfa826ba75c4
[ "MIT" ]
null
null
null
Data-Analysis/venv_macos/lib/python3.8/site-packages/echarts_china_cities_pypkg/__init__.py
Qiaozhi94/Python-Projects
aefc6cf49c1f4f2cc9beba8dbe80cfa826ba75c4
[ "MIT" ]
null
null
null
Data-Analysis/venv_macos/lib/python3.8/site-packages/echarts_china_cities_pypkg/__init__.py
Qiaozhi94/Python-Projects
aefc6cf49c1f4f2cc9beba8dbe80cfa826ba75c4
[ "MIT" ]
null
null
null
# flake8: noqa import os from echarts_china_cities_pypkg._version import __version__ from echarts_china_cities_pypkg._version import __author__ from lml.plugin import PluginInfoChain, PluginInfo @PluginInfo('pyecharts_js_extension', tags=['map']) class Pypkg(): def __init__(self): __package_path__ = os.p...
28.8
59
0.759259
d5afb3d246caa3cc0be1017586cb020878a3b76e
5,187
py
Python
sumy/__main__.py
isarth/sumy
ea7e01a8708d6ff6d5efa6845091f93a0927d895
[ "Apache-2.0" ]
56
2019-03-16T09:49:57.000Z
2021-09-20T08:24:29.000Z
sumy/__main__.py
isarth/sumy
ea7e01a8708d6ff6d5efa6845091f93a0927d895
[ "Apache-2.0" ]
10
2019-03-30T01:57:22.000Z
2020-12-01T02:25:54.000Z
sumy/__main__.py
isarth/sumy
ea7e01a8708d6ff6d5efa6845091f93a0927d895
[ "Apache-2.0" ]
12
2019-04-02T12:25:40.000Z
2020-10-09T16:06:49.000Z
# -*- coding: utf-8 -*- """ Sumy - automatic text summarizer. Usage: sumy (luhn | edmundson | lsa | text-rank | lex-rank | sum-basic | kl) [--length=<length>] [--language=<lang>] [--stopwords=<file_path>] [--format=<format>] sumy (luhn | edmundson | lsa | text-rank | lex-rank | sum-basic | kl) [--length=<leng...
37.586957
178
0.674378
81e5b5c31ddab54d30b11267a9904791db7d7e0d
5,017
py
Python
src/oemof/thermal/solar_thermal_collector.py
oemof/oemof-thermal
1c1fb8f6ea6255d854c7a535c8d199a4ba0abc5e
[ "MIT" ]
18
2019-10-17T17:22:58.000Z
2022-03-31T07:21:17.000Z
src/oemof/thermal/solar_thermal_collector.py
oemof/oemof-thermal
1c1fb8f6ea6255d854c7a535c8d199a4ba0abc5e
[ "MIT" ]
137
2019-07-25T13:56:30.000Z
2022-02-21T17:16:13.000Z
src/oemof/thermal/solar_thermal_collector.py
oemof/oemof-thermal
1c1fb8f6ea6255d854c7a535c8d199a4ba0abc5e
[ "MIT" ]
9
2019-07-25T12:58:51.000Z
2021-09-23T12:42:12.000Z
# -*- coding: utf-8 """ This module is designed to hold functions for calculating a solar thermal collector. This file is part of project oemof (github.com/oemof/oemof-thermal). It's copyrighted by the contributors recorded in the version control history of the file, available from its original location: oemof-therma...
25.211055
98
0.63524
d2eaca6d4487fffcc612925ab1207926cd675ad0
4,744
py
Python
qiskit/converters/circuit_to_instruction.py
georgios-ts/qiskit-terra
44e0a7ae967be2a95808f47b42ddef26704fc5b7
[ "Apache-2.0" ]
null
null
null
qiskit/converters/circuit_to_instruction.py
georgios-ts/qiskit-terra
44e0a7ae967be2a95808f47b42ddef26704fc5b7
[ "Apache-2.0" ]
null
null
null
qiskit/converters/circuit_to_instruction.py
georgios-ts/qiskit-terra
44e0a7ae967be2a95808f47b42ddef26704fc5b7
[ "Apache-2.0" ]
null
null
null
# This code is part of Qiskit. # # (C) Copyright IBM 2017, 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 modifications or derivat...
38.258065
91
0.657462
e6be80005cc0aa4ecf88f4b8d35f6313274d36ca
1,393
py
Python
mariadb_kernel/maria_magics/lsmagic.py
robertbindar/mariadb_kernel-1
22a58dd0e4d2fbb687f0ed02415bd5278d3ed046
[ "BSD-3-Clause" ]
null
null
null
mariadb_kernel/maria_magics/lsmagic.py
robertbindar/mariadb_kernel-1
22a58dd0e4d2fbb687f0ed02415bd5278d3ed046
[ "BSD-3-Clause" ]
null
null
null
mariadb_kernel/maria_magics/lsmagic.py
robertbindar/mariadb_kernel-1
22a58dd0e4d2fbb687f0ed02415bd5278d3ed046
[ "BSD-3-Clause" ]
null
null
null
"""This class implements %lsmagic magic command""" help_text = """ The %lsmagic magic command prints the magics currently supported by the kernel. It also prints the help text for each command """ # Copyright (c) MariaDB Foundation. # Distributed under the terms of the Modified BSD License. from mariadb_kernel.maria...
29.020833
82
0.622398
9ee2b62650d726ab392f47d9b060b8701fb9db8d
6,653
py
Python
qa/rpc-tests/txn_doublespend.py
SkyStation3/Methuselah
56b7a721d543233e8e1b92560896f5d3d18ca6ee
[ "MIT" ]
null
null
null
qa/rpc-tests/txn_doublespend.py
SkyStation3/Methuselah
56b7a721d543233e8e1b92560896f5d3d18ca6ee
[ "MIT" ]
null
null
null
qa/rpc-tests/txn_doublespend.py
SkyStation3/Methuselah
56b7a721d543233e8e1b92560896f5d3d18ca6ee
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The Methuselah Developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Test proper accounting with a double-spend conflict # from test_framework.test_framework import Methus...
44.952703
111
0.606042
160159e1665d26ffde8a174802ddfbc2682d5891
8,191
py
Python
rbac/__init__.py
muratgozel/py-rbac
8ec911b33dd698af6e8be4e315918cc2586cf688
[ "MIT" ]
4
2020-12-21T03:09:12.000Z
2021-10-19T07:51:36.000Z
rbac/__init__.py
kchoudhu/py-rbac
8ec911b33dd698af6e8be4e315918cc2586cf688
[ "MIT" ]
null
null
null
rbac/__init__.py
kchoudhu/py-rbac
8ec911b33dd698af6e8be4e315918cc2586cf688
[ "MIT" ]
5
2021-02-13T06:58:19.000Z
2021-12-08T18:06:11.000Z
class RBACError(Exception): """docstring for RBACError.""" pass class RBACConfigurationError(RBACError): """docstring for RBACConfigurationError.""" def __init__(self, msg): self.msg = msg class RBACAuthorizationError(RBACError): """docstring for RBACAuthorizationError.""" def __init__(self, msg): ...
30.563433
118
0.674887
4c4c262dc99690a983bafc615930f8f05854d2b3
14,320
py
Python
mloop/interfaces.py
matth2peters/M-LOOP
d8d301a39aece34c6d1b520c9ca2aa646a41e8ae
[ "MIT" ]
162
2015-08-29T15:00:39.000Z
2021-12-02T13:50:02.000Z
mloop/interfaces.py
matth2peters/M-LOOP
d8d301a39aece34c6d1b520c9ca2aa646a41e8ae
[ "MIT" ]
57
2016-09-06T02:14:27.000Z
2022-03-24T00:13:56.000Z
mloop/interfaces.py
matth2peters/M-LOOP
d8d301a39aece34c6d1b520c9ca2aa646a41e8ae
[ "MIT" ]
54
2016-05-17T12:17:54.000Z
2022-01-14T15:12:06.000Z
''' Module of the interfaces used to connect the controller to the experiment. ''' from __future__ import absolute_import, division, print_function __metaclass__ = type import time import subprocess as sp import numpy as np import os import sys import threading import multiprocessing as mp import mloop.u...
41.507246
481
0.602933
de6f9e0810802c1f88b66403102bc96c86d796e5
1,126
py
Python
oauthenticator/tests/conftest.py
jeff-sternberg/oauthenticator
158eb206dd2b59961442a4d3b67fbbb179a3030a
[ "BSD-3-Clause" ]
4
2019-09-17T08:10:57.000Z
2020-09-03T21:27:21.000Z
oauthenticator/tests/conftest.py
jeff-sternberg/oauthenticator
158eb206dd2b59961442a4d3b67fbbb179a3030a
[ "BSD-3-Clause" ]
2
2017-05-02T18:44:55.000Z
2017-10-06T15:11:23.000Z
oauthenticator/tests/conftest.py
jeff-sternberg/oauthenticator
158eb206dd2b59961442a4d3b67fbbb179a3030a
[ "BSD-3-Clause" ]
4
2019-09-27T03:22:44.000Z
2021-01-20T08:47:34.000Z
"""Py.Test fixtures""" import inspect from tornado.httpclient import AsyncHTTPClient from tornado import ioloop from tornado.platform.asyncio import AsyncIOMainLoop from pytest import fixture from .mocks import MockAsyncHTTPClient def pytest_collection_modifyitems(items): """add asyncio marker to all async tes...
25.590909
68
0.738011
5f76ff62d200daf5a10f0c3711e3d477308af15b
27,329
py
Python
python/pyarrow/tests/test_serialization.py
revit13/parquet_cpp_aad
89ada49d0ab8ed42bbc11d95d37e28a94dbc6606
[ "Apache-2.0" ]
1
2019-02-02T07:49:23.000Z
2019-02-02T07:49:23.000Z
python/pyarrow/tests/test_serialization.py
azkh93/arrow
f08e109ff009e911bb772e5b0490c7cacf02140e
[ "Apache-2.0" ]
null
null
null
python/pyarrow/tests/test_serialization.py
azkh93/arrow
f08e109ff009e911bb772e5b0490c7cacf02140e
[ "Apache-2.0" ]
2
2019-11-18T06:31:46.000Z
2020-11-19T13:36:36.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
33.450428
79
0.628563
8075239c008c6476d4f3b8684800be47b83cb60f
30,087
py
Python
tensorflow/contrib/learn/python/learn/estimators/dnn.py
My-Technical-Architect/tensorflow
35cf4653e6fe15953e2e565afc5a0fd2ab4d5290
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/learn/python/learn/estimators/dnn.py
My-Technical-Architect/tensorflow
35cf4653e6fe15953e2e565afc5a0fd2ab4d5290
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/learn/python/learn/estimators/dnn.py
My-Technical-Architect/tensorflow
35cf4653e6fe15953e2e565afc5a0fd2ab4d5290
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
40.331099
102
0.6781
4d5bb262f7fb5d509538d52ae84c24354224e156
15,662
py
Python
set-generation/gen_color_sets.py
mpetroff/accessible-color-cycles
473ad74eab8fb8926ea8ea15240f9ed5784e73bd
[ "MIT" ]
6
2021-07-10T09:57:58.000Z
2022-01-13T09:27:46.000Z
set-generation/gen_color_sets.py
mpetroff/accessible-color-cycles
473ad74eab8fb8926ea8ea15240f9ed5784e73bd
[ "MIT" ]
null
null
null
set-generation/gen_color_sets.py
mpetroff/accessible-color-cycles
473ad74eab8fb8926ea8ea15240f9ed5784e73bd
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Copyright (c) 2018-2021 Matthew Petroff 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, modif...
34.421978
93
0.618823
8c30325bedb3d24a4f3710d610d881b0d1defa88
6,937
py
Python
beastx/__init__.py
Digasi123percy/Beast-X
cf2c47db6af0c4afaa3b51b76ef7a1a2f0e0bc81
[ "MIT" ]
11
2021-11-07T12:04:20.000Z
2022-03-10T10:32:59.000Z
beastx/__init__.py
Digasi123percy/Beast-X
cf2c47db6af0c4afaa3b51b76ef7a1a2f0e0bc81
[ "MIT" ]
null
null
null
beastx/__init__.py
Digasi123percy/Beast-X
cf2c47db6af0c4afaa3b51b76ef7a1a2f0e0bc81
[ "MIT" ]
114
2021-11-07T13:11:19.000Z
2022-03-31T02:00:04.000Z
# hmm@hhh import asyncio import logging import os import sys import time from distutils.util import strtobool as sb from logging import DEBUG, INFO, basicConfig, getLogger from telethon.tl.functions.users import GetFullUserRequest import pylast import wget from dotenv import load_dotenv from nospampl...
32.876777
130
0.678247
bff1ee6445f35c32558e9ba49a052e8abb08df12
1,473
py
Python
course2/week5/task5_2.py
astarostin/MachineLearningSpecializationCoursera
aebecae1effd5e4b148354d28cdad8bc6bd3a415
[ "Apache-2.0" ]
1
2019-06-23T19:32:59.000Z
2019-06-23T19:32:59.000Z
course2/week5/task5_2.py
astarostin/MachineLearningSpecializationCoursera
aebecae1effd5e4b148354d28cdad8bc6bd3a415
[ "Apache-2.0" ]
null
null
null
course2/week5/task5_2.py
astarostin/MachineLearningSpecializationCoursera
aebecae1effd5e4b148354d28cdad8bc6bd3a415
[ "Apache-2.0" ]
4
2016-08-21T21:20:28.000Z
2021-05-10T15:24:16.000Z
from sklearn.datasets import load_digits from sklearn.metrics import accuracy_score from scipy.spatial.distance import euclidean from sklearn.cross_validation import cross_val_score from sklearn.ensemble import RandomForestClassifier from sklearn.tree import DecisionTreeRegressor import xgboost as xgb from sklearn.line...
24.147541
55
0.750849
167ddb6b5b085f8b99f998d0bfe595bf0a12927a
819
py
Python
code/model/repdistiller_models/classifier.py
wukailu/EDSR-PyTorch
5625cf83ce88050b68e649beb4155b32c38018fa
[ "MIT" ]
1,347
2019-10-24T02:30:04.000Z
2022-03-31T12:01:21.000Z
models/classifier.py
WeiChengTseng/RepDistiller
dcc043277f2820efafd679ffb82b8e8195b7e222
[ "BSD-2-Clause" ]
45
2019-10-28T07:16:25.000Z
2022-03-19T03:34:36.000Z
models/classifier.py
WeiChengTseng/RepDistiller
dcc043277f2820efafd679ffb82b8e8195b7e222
[ "BSD-2-Clause" ]
282
2019-10-24T03:58:04.000Z
2022-03-25T19:52:39.000Z
from __future__ import print_function import torch.nn as nn ######################################### # ===== Classifiers ===== # ######################################### class LinearClassifier(nn.Module): def __init__(self, dim_in, n_label=10): super(LinearClassifier, self).__init__() self.n...
22.75
51
0.53602
2d60863f48b92a66e43264c2578fd7c4dfb87326
4,214
py
Python
test/test_measure_error_mitigation.py
diogo-cruz/qiskit-aqua
29a4d7e5475aa0ec700a4b8072d5b5527edde971
[ "Apache-2.0" ]
null
null
null
test/test_measure_error_mitigation.py
diogo-cruz/qiskit-aqua
29a4d7e5475aa0ec700a4b8072d5b5527edde971
[ "Apache-2.0" ]
null
null
null
test/test_measure_error_mitigation.py
diogo-cruz/qiskit-aqua
29a4d7e5475aa0ec700a4b8072d5b5527edde971
[ "Apache-2.0" ]
null
null
null
# -*- 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...
39.018519
118
0.668723
845bc3fe59aa04da7afaf7ca21d51145105827ba
2,125
py
Python
main/migrations/versions/c089c44a60fc_.py
shitianfang/flask-blog-platform
a9f41db8bb6b0440078d23e27b76b37090ff9f2f
[ "MIT" ]
22
2020-08-07T14:44:36.000Z
2022-03-03T06:28:48.000Z
main/migrations/versions/c089c44a60fc_.py
shitianfang/flask-blog-platform
a9f41db8bb6b0440078d23e27b76b37090ff9f2f
[ "MIT" ]
null
null
null
main/migrations/versions/c089c44a60fc_.py
shitianfang/flask-blog-platform
a9f41db8bb6b0440078d23e27b76b37090ff9f2f
[ "MIT" ]
6
2020-09-21T04:26:22.000Z
2022-01-15T16:50:17.000Z
"""empty message Revision ID: c089c44a60fc Revises: 0982f7d5be45 Create Date: 2020-07-04 01:45:34.801099 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'c089c44a60fc' down_revision = '0982f7d5be45' branch_labels = None depends_on = None def upgrade(): # ...
33.203125
83
0.68
0c26a4009ca7f141a5a3db5163f24a812255e9a4
2,832
py
Python
src/ovirtcli/shell/addcmdshell.py
oVirt/ovirt-engine-cli
422d70e1dc422f0ca248abea47a472e3605caa4b
[ "Apache-2.0" ]
4
2015-11-29T08:53:03.000Z
2022-02-05T14:10:24.000Z
src/ovirtcli/shell/addcmdshell.py
oVirt/ovirt-engine-cli
422d70e1dc422f0ca248abea47a472e3605caa4b
[ "Apache-2.0" ]
null
null
null
src/ovirtcli/shell/addcmdshell.py
oVirt/ovirt-engine-cli
422d70e1dc422f0ca248abea47a472e3605caa4b
[ "Apache-2.0" ]
4
2015-02-06T02:06:53.000Z
2020-03-24T07:13:05.000Z
# # Copyright (c) 2010 Red Hat, 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 t...
44.25
119
0.652895
f18168303904885565df5b57fa8e048cb97c5224
878
py
Python
section _7_par_2/ex 21.py
thiagofreitascarneiro/Python-avancado-Geek-University
861b742ad6b30955fcbe63274b8cf8afc6ca028f
[ "MIT" ]
null
null
null
section _7_par_2/ex 21.py
thiagofreitascarneiro/Python-avancado-Geek-University
861b742ad6b30955fcbe63274b8cf8afc6ca028f
[ "MIT" ]
null
null
null
section _7_par_2/ex 21.py
thiagofreitascarneiro/Python-avancado-Geek-University
861b742ad6b30955fcbe63274b8cf8afc6ca028f
[ "MIT" ]
null
null
null
matriz = [[valor + 2 * lista for lista in range(1, 3)] for valor in range(1, 3)] print(matriz) opc = 5 while True: opc = int(input('''Digite a opção desejada: [1] somar duas matrizes, [2] - subtrair a primeira matriz da segunda [3] - adicionar uma constante em duas matrizes - [4] - imprimir as matrizes e sair ...
35.12
117
0.555809
e55bfcc4fd049f4dd28cc64a196bd7f573a93de4
2,931
py
Python
benchmark/startCirq2729.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startCirq2729.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startCirq2729.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 5/15/20 4:49 PM # @File : grover.py # qubit number=4 # total number=31 import cirq import cirq.google as cg from typing import Optional import sys from math import log2 import numpy as np #thatsNoCode from cirq.contrib.svg import SVGCircuit # Symbols for...
35.743902
77
0.684067
bb12bd8b0a637939cc591270720cd5857c0f0312
5,397
py
Python
hass_apps/heaty/util.py
taste66/hass-apps
93f03a823f0ed8b3b32be5da30c5aaf0fcb1d92a
[ "Apache-2.0" ]
null
null
null
hass_apps/heaty/util.py
taste66/hass-apps
93f03a823f0ed8b3b32be5da30c5aaf0fcb1d92a
[ "Apache-2.0" ]
null
null
null
hass_apps/heaty/util.py
taste66/hass-apps
93f03a823f0ed8b3b32be5da30c5aaf0fcb1d92a
[ "Apache-2.0" ]
null
null
null
""" Utility functions that are used everywhere inside Heaty. """ import typing as T import collections import datetime import re # matches any character that is not allowed in Python variable names INVALID_VAR_NAME_CHAR_PATTERN = re.compile(r"[^0-9A-Za-z_]") # regexp pattern matching a range like 3-7 without spaces...
34.596154
86
0.605336
194760b3cae3e7d699a4a8f998741642d51052b5
801
py
Python
tests/integration/test_webhook.py
SharperShape/labelbox-python
228d2583bc41af976b4338c699961f07ca607e84
[ "Apache-2.0", "MIT" ]
null
null
null
tests/integration/test_webhook.py
SharperShape/labelbox-python
228d2583bc41af976b4338c699961f07ca607e84
[ "Apache-2.0", "MIT" ]
null
null
null
tests/integration/test_webhook.py
SharperShape/labelbox-python
228d2583bc41af976b4338c699961f07ca607e84
[ "Apache-2.0", "MIT" ]
null
null
null
from labelbox import Webhook def test_webhook_create_update(project, rand_gen): client = project.client url = "https:/" + rand_gen(str) secret = rand_gen(str) topics = [Webhook.LABEL_CREATED, Webhook.LABEL_DELETED] webhook = Webhook.create(client, topics, url, secret, project) assert webhook....
36.409091
74
0.722846
8625832b437d1534cf9e25a95d6ff56368f40eda
3,386
py
Python
test/deploy/face_embedding.py
zza584231732/face-master
19cad6d7b20c9233694dc422d2822a1971b27673
[ "MIT" ]
null
null
null
test/deploy/face_embedding.py
zza584231732/face-master
19cad6d7b20c9233694dc422d2822a1971b27673
[ "MIT" ]
null
null
null
test/deploy/face_embedding.py
zza584231732/face-master
19cad6d7b20c9233694dc422d2822a1971b27673
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function from scipy import misc import sys import os import argparse import tensorflow as tf import numpy as np import mxnet as mx import random import cv2 import sklearn from sklearn.decomposition import PCA from time ...
35.270833
150
0.608387
b961f3f29885d5bf604dc435ced87a37e5d997b9
84
py
Python
Module 3/Chapter13/Chapter 13/application.py
nikitabrazhnik/flask2
fd7a7e26f00402da09ee2159253cc1958df54814
[ "MIT" ]
40
2017-02-11T18:28:53.000Z
2021-10-04T04:52:49.000Z
Module 3/Chapter13/Chapter 13/application.py
nikitabrazhnik/flask2
fd7a7e26f00402da09ee2159253cc1958df54814
[ "MIT" ]
1
2018-06-15T13:46:47.000Z
2018-06-15T13:46:47.000Z
Module 3/Chapter13/Chapter 13/application.py
nikitabrazhnik/flask2
fd7a7e26f00402da09ee2159253cc1958df54814
[ "MIT" ]
40
2017-04-11T12:01:22.000Z
2021-05-30T18:05:27.000Z
from webapp import create_app application = create_app("webapp.config.ProdConfig")
21
52
0.821429
8da07823982506fee421eb058c98fcebe2f4dd7f
394
py
Python
bongstagram/notifications/migrations/0002_notification_comment.py
underbleu/bongstagram
2c6d9d240ceee42e2b6e43832598824990706802
[ "MIT" ]
1
2020-04-24T03:59:11.000Z
2020-04-24T03:59:11.000Z
bongstagram/notifications/migrations/0002_notification_comment.py
underbleu/bongstagram
2c6d9d240ceee42e2b6e43832598824990706802
[ "MIT" ]
1
2020-06-05T18:21:31.000Z
2020-06-05T18:21:31.000Z
bongstagram/notifications/migrations/0002_notification_comment.py
underbleu/bongstagram
2c6d9d240ceee42e2b6e43832598824990706802
[ "MIT" ]
2
2018-06-23T15:47:34.000Z
2021-04-16T18:23:50.000Z
# Generated by Django 2.0.4 on 2018-04-24 15:04 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('notifications', '0001_initial'), ] operations = [ migrations.AddField( model_name='notification', name='comment', ...
20.736842
58
0.598985