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
dd648f873c9e0b7a1a62eebe81b3f595a28bde5d
2,944
py
Python
datadog_checks_dev/datadog_checks/dev/tooling/github.py
justinsousa/integrations-core
223e337492a04de517bc35ec85ddf921108fd8d2
[ "BSD-3-Clause" ]
2
2019-05-28T03:48:29.000Z
2019-07-05T07:05:58.000Z
datadog_checks_dev/datadog_checks/dev/tooling/github.py
justinsousa/integrations-core
223e337492a04de517bc35ec85ddf921108fd8d2
[ "BSD-3-Clause" ]
4
2019-07-03T02:53:19.000Z
2019-07-10T14:52:14.000Z
datadog_checks_dev/datadog_checks/dev/tooling/github.py
justinsousa/integrations-core
223e337492a04de517bc35ec85ddf921108fd8d2
[ "BSD-3-Clause" ]
1
2020-01-15T16:58:51.000Z
2020-01-15T16:58:51.000Z
# (C) Datadog, Inc. 2018 # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import os import re import requests from .constants import CHANGELOG_LABEL_PREFIX API_URL = 'https://api.github.com' PR_ENDPOINT = API_URL + '/repos/DataDog/{}/pulls/{}' DEFAULT_REPO = 'integrations-core' PR_PA...
26.285714
101
0.650815
233ed42d7a88f5cc5491fcb61f22fc58088f76b6
809
py
Python
Mundos/Mundo 2/Aulas/Aula 15/ex069.py
NicolasdeLimaAlves/Curso-de-Python
4987a2c8075a76f676aa69bfd968fdf8d1c7fa52
[ "MIT" ]
null
null
null
Mundos/Mundo 2/Aulas/Aula 15/ex069.py
NicolasdeLimaAlves/Curso-de-Python
4987a2c8075a76f676aa69bfd968fdf8d1c7fa52
[ "MIT" ]
null
null
null
Mundos/Mundo 2/Aulas/Aula 15/ex069.py
NicolasdeLimaAlves/Curso-de-Python
4987a2c8075a76f676aa69bfd968fdf8d1c7fa52
[ "MIT" ]
null
null
null
dezoito = homens = mulher = cont = 0 while True: print('=' * 20) idade = int(input('Idade: ')) sexo = str(input('Sexo [M/F] ')).upper().strip() while sexo != 'F' and sexo != 'M': sexo = str(input('Sexo [M/F] ')).upper().strip() print('=' * 20) continuar = str(input('Quer continuar? [S/N]...
33.708333
72
0.546354
c36cb162b80a75b78ee916804eb325df2bfc0bde
1,535
py
Python
src/components/TesteLista.py
Vini-Dev-Py/Bot-ML
f1dfda7a43940a7ada707ccaa9dde486b3c5ddd3
[ "MIT" ]
null
null
null
src/components/TesteLista.py
Vini-Dev-Py/Bot-ML
f1dfda7a43940a7ada707ccaa9dde486b3c5ddd3
[ "MIT" ]
null
null
null
src/components/TesteLista.py
Vini-Dev-Py/Bot-ML
f1dfda7a43940a7ada707ccaa9dde486b3c5ddd3
[ "MIT" ]
null
null
null
from tkinter import * from tkinter import messagebox from tkinter import ttk import functools jan = Tk() jan.title("Bot Mercado Envios") jan.geometry("800x300") jan.configure(background="#2b2b2b") jan.resizable(width=False, height=False) jan.iconbitmap(default="C:\programas\Programaçâo\GitHub\Bot-ML\Bot-ML\images\Logo...
30.7
106
0.725081
e91183e5e27770e36ca47c2edda313ffafc57452
924
py
Python
codelab/urls.py
mrdulin/django-codelab
b7ff9746fb3be9dc5de90e81e1c604b3aeea692d
[ "MIT" ]
null
null
null
codelab/urls.py
mrdulin/django-codelab
b7ff9746fb3be9dc5de90e81e1c604b3aeea692d
[ "MIT" ]
2
2021-06-09T18:43:26.000Z
2021-06-10T19:25:38.000Z
codelab/urls.py
mrdulin/django-codelab
b7ff9746fb3be9dc5de90e81e1c604b3aeea692d
[ "MIT" ]
1
2021-09-27T10:55:07.000Z
2021-09-27T10:55:07.000Z
"""codelab URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based...
36.96
77
0.695887
96145eecbc5783606145557ab731fa5f91eb42f9
429
py
Python
src/rl/core/recording_policy.py
djjh/reinforcement-learning-labs
22706dab9e7f16e364ee4ed79c0bd67a343e5b08
[ "MIT" ]
1
2019-10-06T11:45:52.000Z
2019-10-06T11:45:52.000Z
src/rl/core/recording_policy.py
djjh/reinforcement-learning-labs
22706dab9e7f16e364ee4ed79c0bd67a343e5b08
[ "MIT" ]
null
null
null
src/rl/core/recording_policy.py
djjh/reinforcement-learning-labs
22706dab9e7f16e364ee4ed79c0bd67a343e5b08
[ "MIT" ]
null
null
null
class RecordingPolicy: def __init__(self, policy): self._policy = policy self._probabilities = [] def action(self, observation, deterministic): action, probability_distribution = self._policy.step(observation, deterministic) self._probabilities.append(probability_distribution...
26.8125
88
0.706294
298b1dbf4c8e09777df2474ffe5966e6df40ad58
4,670
py
Python
utils.py
cometa/cometa-dronek
63b4da12200a9cbcadd08523062df85ca423ff41
[ "Apache-2.0" ]
4
2016-11-16T18:06:21.000Z
2022-03-22T00:05:04.000Z
utils.py
cometa/cometa-dronekit
63b4da12200a9cbcadd08523062df85ca423ff41
[ "Apache-2.0" ]
null
null
null
utils.py
cometa/cometa-dronekit
63b4da12200a9cbcadd08523062df85ca423ff41
[ "Apache-2.0" ]
null
null
null
""" Utility functions Cometa agent for DroneKit. Author: Marco Graziano """ __license__ = """ Copyright 2016 Visible Energy Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at ...
37.36
118
0.721842
3bd5d3d72b33aebfee289e904c35da2b81d68355
6,930
py
Python
backend/t1d_regimen_29628/settings.py
crowdbotics-apps/t1d-regimen-29628
531beffb60980649a8a3a2a48c62ac37143c2f18
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/t1d_regimen_29628/settings.py
crowdbotics-apps/t1d-regimen-29628
531beffb60980649a8a3a2a48c62ac37143c2f18
[ "FTL", "AML", "RSA-MD" ]
26
2021-08-15T19:19:10.000Z
2022-01-30T15:31:33.000Z
backend/t1d_regimen_29628/settings.py
crowdbotics-apps/t1d-regimen-29628
531beffb60980649a8a3a2a48c62ac37143c2f18
[ "FTL", "AML", "RSA-MD" ]
null
null
null
""" Django settings for t1d_regimen_29628 project. Generated by 'django-admin startproject' using Django 2.2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ im...
29.615385
112
0.731025
28fbb87e51c6b6aa8255dc8105338490fdfa27ae
1,591
py
Python
utils/builder/register_builder/riscv/BootPriority.py
jeremybennett/force-riscv
a5222a3b3fa8a0b9464204056ddca148f16b7e49
[ "Apache-2.0" ]
null
null
null
utils/builder/register_builder/riscv/BootPriority.py
jeremybennett/force-riscv
a5222a3b3fa8a0b9464204056ddca148f16b7e49
[ "Apache-2.0" ]
null
null
null
utils/builder/register_builder/riscv/BootPriority.py
jeremybennett/force-riscv
a5222a3b3fa8a0b9464204056ddca148f16b7e49
[ "Apache-2.0" ]
1
2020-06-17T09:37:45.000Z
2020-06-17T09:37:45.000Z
# # Copyright (C) [2020] Futurewei Technologies, Inc. # # FORCE-RISCV is 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 # # THIS SOFTWARE IS PRO...
45.457143
99
0.553111
ee81e4de860e7f4394b6a08e73c8dd0408db2e08
4,914
py
Python
setup.py
ninjapapa/SMV2
42cf9f176c3ec0bed61f66fbf859c18d97027dd6
[ "Apache-2.0" ]
null
null
null
setup.py
ninjapapa/SMV2
42cf9f176c3ec0bed61f66fbf859c18d97027dd6
[ "Apache-2.0" ]
34
2022-02-26T04:27:34.000Z
2022-03-29T23:05:47.000Z
setup.py
ninjapapa/SMV2
42cf9f176c3ec0bed61f66fbf859c18d97027dd6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Template from: https://github.com/kennethreitz/setup.py/blob/master/setup.py # Local test -- inside of a clean virtualenv: # pip install . # pip install .[pyspark] -- to test with pyspark support # Packing Background # # 1) the "name" section indicates the name of our ...
39
102
0.691494
4e6782fee2b4ab668818ec5a146cb452f4d16ab8
32
py
Python
prototype/test/pythonvm_book/test_var.py
zoloypzuo/ZeloPy
43d9242a509737fe1bb66deba73aa9e749b53c62
[ "MIT" ]
null
null
null
prototype/test/pythonvm_book/test_var.py
zoloypzuo/ZeloPy
43d9242a509737fe1bb66deba73aa9e749b53c62
[ "MIT" ]
null
null
null
prototype/test/pythonvm_book/test_var.py
zoloypzuo/ZeloPy
43d9242a509737fe1bb66deba73aa9e749b53c62
[ "MIT" ]
null
null
null
a = 1 b = a + 1 print a print b
6.4
9
0.53125
a410e0c7908a60d6d35ee95578adbd994db73052
1,059
py
Python
tensorflow_datasets/image/cassava_test.py
Ir1d/datasets
2a04ce5208e53bcf9b5acacf690bb7446285176e
[ "Apache-2.0" ]
2
2020-06-09T10:44:36.000Z
2020-06-09T10:44:46.000Z
tensorflow_datasets/image/cassava_test.py
Ir1d/datasets
2a04ce5208e53bcf9b5acacf690bb7446285176e
[ "Apache-2.0" ]
null
null
null
tensorflow_datasets/image/cassava_test.py
Ir1d/datasets
2a04ce5208e53bcf9b5acacf690bb7446285176e
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets 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 appl...
28.621622
74
0.75543
42159a9181a336e965306fbe80d3cb84bb3829c2
624
py
Python
cerberus/__init__.py
peterdemin/cerberus
895d8ba16c48d7f6d0f95229f8443b4793324ca0
[ "0BSD" ]
null
null
null
cerberus/__init__.py
peterdemin/cerberus
895d8ba16c48d7f6d0f95229f8443b4793324ca0
[ "0BSD" ]
null
null
null
cerberus/__init__.py
peterdemin/cerberus
895d8ba16c48d7f6d0f95229f8443b4793324ca0
[ "0BSD" ]
null
null
null
""" Extensible validation for Python dictionaries. :copyright: 2012-2016 by Nicola Iarocci. :license: ISC, see LICENSE for more details. Full documentation is available at http://python-cerberus.org/ """ from __future__ import absolute_import from cerberus.validator import Validator, DocumentError ...
22.285714
75
0.711538
9b88bf47000e0cbaf15c3a966db8f252e88735cf
5,202
py
Python
configs/swin/cascade_mask_rcnn_swin_small_patch4_window7_mstrain_480-800_giou_4conv1f_adamw_3x_coco.py
rahulmangalampalli/UniverseNet
49622e0e8a9672829ebb57979fbae89c36f15c6c
[ "Apache-2.0" ]
null
null
null
configs/swin/cascade_mask_rcnn_swin_small_patch4_window7_mstrain_480-800_giou_4conv1f_adamw_3x_coco.py
rahulmangalampalli/UniverseNet
49622e0e8a9672829ebb57979fbae89c36f15c6c
[ "Apache-2.0" ]
null
null
null
configs/swin/cascade_mask_rcnn_swin_small_patch4_window7_mstrain_480-800_giou_4conv1f_adamw_3x_coco.py
rahulmangalampalli/UniverseNet
49622e0e8a9672829ebb57979fbae89c36f15c6c
[ "Apache-2.0" ]
null
null
null
_base_ = [ '../_base_/models/cascade_mask_rcnn_swin_fpn.py', '../_base_/datasets/coco_instance.py', '../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py' ] model = dict( backbone=dict( embed_dim=96, depths=[2, 2, 18, 2], num_heads=[3, 6, 12, 24], window_si...
36.893617
78
0.502499
dba8f04dfbdd5d15a40c5f9de42e68bc2676ac2d
3,447
py
Python
carbonserver/tests/api/routers/test_users.py
nikhil153/codecarbon
b3cc0cc29abd4b82e39699695d535351e86f1ec0
[ "MIT" ]
346
2020-11-11T02:27:03.000Z
2022-03-30T12:43:21.000Z
carbonserver/tests/api/routers/test_users.py
nikhil153/codecarbon
b3cc0cc29abd4b82e39699695d535351e86f1ec0
[ "MIT" ]
163
2020-11-10T18:57:38.000Z
2022-03-30T14:44:53.000Z
carbonserver/tests/api/routers/test_users.py
nikhil153/codecarbon
b3cc0cc29abd4b82e39699695d535351e86f1ec0
[ "MIT" ]
57
2020-11-11T02:26:15.000Z
2022-03-30T14:36:39.000Z
from unittest import mock import pytest from container import ServerContainer from fastapi import FastAPI, status from fastapi.testclient import TestClient from carbonserver.api.infra.repositories.repository_users import SqlAlchemyRepository from carbonserver.api.routers import users from carbonserver.api.schemas imp...
28.966387
85
0.731651
d4b45b772bdc865fc91f9d58a59bb76869bb2a20
1,589
py
Python
tests/test_python_claml.py
thehyve/python_claml
60126f8cea2ec9aaf0e8292a584ac3316514e241
[ "MIT" ]
7
2019-05-14T07:57:53.000Z
2021-06-07T08:00:04.000Z
tests/test_python_claml.py
thehyve/python_claml
60126f8cea2ec9aaf0e8292a584ac3316514e241
[ "MIT" ]
1
2021-02-21T13:10:41.000Z
2021-02-21T13:10:41.000Z
tests/test_python_claml.py
thehyve/python_claml
60126f8cea2ec9aaf0e8292a584ac3316514e241
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Tests for `python_claml` module. """ import os import time import pytest from python_claml import claml from python_claml.claml_types import ClaML class TestPythonClaml(object): @classmethod def setup_class(cls): pass def test_small_file(self)...
28.375
100
0.599119
48013279547f576b5b3e116cb96874164aa5a7d9
50
py
Python
topic/tests.py
reBiocoder/my_hubu
19dbfc12d9e5ee509b3cc70826eafa6a5014f21a
[ "MIT" ]
6
2020-05-02T11:08:39.000Z
2021-07-20T02:55:47.000Z
topic/tests.py
reBiocoder/my_hubu
19dbfc12d9e5ee509b3cc70826eafa6a5014f21a
[ "MIT" ]
8
2020-06-06T01:45:02.000Z
2022-03-12T00:24:54.000Z
topic/tests.py
reBiocoder/my_hubu
19dbfc12d9e5ee509b3cc70826eafa6a5014f21a
[ "MIT" ]
3
2020-05-04T00:36:46.000Z
2021-02-15T09:49:44.000Z
import datetime print(datetime.datetime.now())
16.666667
30
0.76
89657b38b6b80349e44070a879f64149a26c0931
59
py
Python
ioos_qc/__init__.py
glos/ioos_qc
17e69ad582275be7ad0f5a2af40c11d810b344e8
[ "Apache-2.0" ]
null
null
null
ioos_qc/__init__.py
glos/ioos_qc
17e69ad582275be7ad0f5a2af40c11d810b344e8
[ "Apache-2.0" ]
null
null
null
ioos_qc/__init__.py
glos/ioos_qc
17e69ad582275be7ad0f5a2af40c11d810b344e8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 __version__ = "2.0.0"
14.75
21
0.661017
177b3a6ad417be25d5ae7917714c90e30a7e2dde
5,012
py
Python
runners/mlcube_docker/mlcube_docker/docker_run.py
fridex/mlcube
5e11557d39066b3fc0b90eee360580ad74c925c7
[ "Apache-2.0" ]
null
null
null
runners/mlcube_docker/mlcube_docker/docker_run.py
fridex/mlcube
5e11557d39066b3fc0b90eee360580ad74c925c7
[ "Apache-2.0" ]
null
null
null
runners/mlcube_docker/mlcube_docker/docker_run.py
fridex/mlcube
5e11557d39066b3fc0b90eee360580ad74c925c7
[ "Apache-2.0" ]
null
null
null
import logging import os import typing from mlcube.common import mlcube_metadata logger = logging.getLogger(__name__) class DockerRun(object): def __init__(self, mlcube: mlcube_metadata.MLCube): """Docker Runner. Args: mlcube (mlcube_metadata.MLCube): MLCube specification including ...
42.117647
120
0.591181
3abdd6d1b07fa4cb7e009702de5ed680b15a5cdf
1,174
py
Python
solardatatools/plotting.py
tadatoshi/solar-data-tools
51b3e1ac2d1daefef88b8f110c42db42da3ba952
[ "BSD-2-Clause" ]
null
null
null
solardatatools/plotting.py
tadatoshi/solar-data-tools
51b3e1ac2d1daefef88b8f110c42db42da3ba952
[ "BSD-2-Clause" ]
null
null
null
solardatatools/plotting.py
tadatoshi/solar-data-tools
51b3e1ac2d1daefef88b8f110c42db42da3ba952
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ''' Plotting Module ''' import numpy as np import matplotlib.pyplot as plt import seaborn as sns def plot_2d(D, figsize=(12, 6), units='kW', clear_days=None): if D is not None: with sns.axes_style("white"): fig, ax = plt.subplots(nrows=1, figsize=figsize) ...
33.542857
87
0.524702
50efc70f361d69fb5b9bf5423a84622027145947
372
py
Python
src/hrl/__init__.py
skugele/hrl-algorithms
5a444132b9a3e4ccfbdc15a10a9e1311ae0bf228
[ "MIT" ]
null
null
null
src/hrl/__init__.py
skugele/hrl-algorithms
5a444132b9a3e4ccfbdc15a10a9e1311ae0bf228
[ "MIT" ]
null
null
null
src/hrl/__init__.py
skugele/hrl-algorithms
5a444132b9a3e4ccfbdc15a10a9e1311ae0bf228
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from pkg_resources import get_distribution, DistributionNotFound try: # Change here if project is renamed and does not equal the package name dist_name = 'hrl-algorithms/' __version__ = get_distribution(dist_name).version except DistributionNotFound: __version__ = 'unknown' fina...
31
75
0.763441
a0fb5c17c53881cc5c1fdd4a3fd5dc49b72e4048
193
py
Python
yuno/objects/__init__.py
Animenosekai/yuno
bcc48f7ceda022e26392e653c03606d3f5f66806
[ "MIT" ]
1
2022-02-25T13:39:18.000Z
2022-02-25T13:39:18.000Z
yuno/objects/__init__.py
Animenosekai/yuno
bcc48f7ceda022e26392e653c03606d3f5f66806
[ "MIT" ]
null
null
null
yuno/objects/__init__.py
Animenosekai/yuno
bcc48f7ceda022e26392e653c03606d3f5f66806
[ "MIT" ]
null
null
null
""" Objects Defining objects imitating the behavior of Python's built-in objects but linked to the database. """ from yuno.objects.dict import YunoDict from yuno.objects.list import YunoList
21.444444
96
0.792746
89d658331720148606f0b15c150f54b1cbd68fe7
1,885
py
Python
datawarehouse/edw_migrations/versions/101cfb715b9a_dimrequesttypes.py
bcgov/foi-reporting
25856ce87b668df964ddd16ac7459fae4aa6a7c5
[ "Apache-2.0" ]
null
null
null
datawarehouse/edw_migrations/versions/101cfb715b9a_dimrequesttypes.py
bcgov/foi-reporting
25856ce87b668df964ddd16ac7459fae4aa6a7c5
[ "Apache-2.0" ]
3
2022-01-05T18:01:41.000Z
2022-02-08T21:51:32.000Z
datawarehouse/edw_migrations/versions/101cfb715b9a_dimrequesttypes.py
bcgov/foi-reporting
25856ce87b668df964ddd16ac7459fae4aa6a7c5
[ "Apache-2.0" ]
null
null
null
"""dimRequestTypes Revision ID: 101cfb715b9a Revises: 2e97ccf78659 Create Date: 2022-01-26 23:07:13.900897 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '101cfb715b9a' down_revision = '2e97ccf78659' branch_labels = None depends_on = None def upgrade(): ...
34.272727
59
0.720955
1b34338a697d3b7abe747c0737bb60ed45835918
69
py
Python
variables.py
HrishikV/Ineuron_bankbot_internship
eb044d0047e2ad3cb6c9e69476e23bab7f6074be
[ "MIT" ]
null
null
null
variables.py
HrishikV/Ineuron_bankbot_internship
eb044d0047e2ad3cb6c9e69476e23bab7f6074be
[ "MIT" ]
null
null
null
variables.py
HrishikV/Ineuron_bankbot_internship
eb044d0047e2ad3cb6c9e69476e23bab7f6074be
[ "MIT" ]
null
null
null
i = 0 intent = "" output_type = -2 cust_id = None check = False c = 0
11.5
16
0.623188
a9f2ede825260d8cca809432410dbc8c47f836f7
634
py
Python
projectmanager/migrations/0004_auto_20200924_1549.py
leonolan2020/phoenix
b5956a7003e548f01255cbd5d0d76cfd0ac77a81
[ "MIT" ]
1
2020-09-19T21:56:40.000Z
2020-09-19T21:56:40.000Z
projectmanager/migrations/0004_auto_20200924_1549.py
leonolan2020/phoenix
b5956a7003e548f01255cbd5d0d76cfd0ac77a81
[ "MIT" ]
null
null
null
projectmanager/migrations/0004_auto_20200924_1549.py
leonolan2020/phoenix
b5956a7003e548f01255cbd5d0d76cfd0ac77a81
[ "MIT" ]
5
2020-09-18T18:53:03.000Z
2020-10-21T14:42:00.000Z
# Generated by Django 3.1 on 2020-09-24 12:19 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('projectmanager', '0003_auto_20200924_1537'), ] operations = [ migrations.AlterField( model_name='project', name='statu...
33.368421
292
0.615142
56a4fcf895d52c24d1b1d984d9354c0efb86dda1
449
py
Python
practicas/implementaciones/02/practice2.py
memoherreraacosta/robot_vision
fa73ab234bcea0b0a7b2411364dbb4cca27c3d56
[ "MIT" ]
null
null
null
practicas/implementaciones/02/practice2.py
memoherreraacosta/robot_vision
fa73ab234bcea0b0a7b2411364dbb4cca27c3d56
[ "MIT" ]
null
null
null
practicas/implementaciones/02/practice2.py
memoherreraacosta/robot_vision
fa73ab234bcea0b0a7b2411364dbb4cca27c3d56
[ "MIT" ]
null
null
null
import cv2 import numpy as np from matplotlib import pyplot as plt img = cv2.imread('elephants.png', 0) f = np.fft.fft2(img) fshift = np.fft.fftshift(f) magnitude_spectrum = 20*np.log(np.abs(fshift)) plt.subplot(121), plt.imshow(img, cmap='gray') plt.title('ElephantsDream.mp4'), plt.xticks([]), plt.yticks([]) plt.sub...
32.071429
63
0.719376
72da0ab2e1f4688cc4a22343a790ff7b7445e24f
4,454
py
Python
src/sage/quadratic_forms/quadratic_form__local_density_interfaces.py
bopopescu/sage-5
9d85b34956ca2edd55af307f99c5d3859acd30bf
[ "BSL-1.0" ]
5
2015-01-04T07:15:06.000Z
2022-03-04T15:15:18.000Z
src/sage/quadratic_forms/quadratic_form__local_density_interfaces.py
bopopescu/sage-5
9d85b34956ca2edd55af307f99c5d3859acd30bf
[ "BSL-1.0" ]
null
null
null
src/sage/quadratic_forms/quadratic_form__local_density_interfaces.py
bopopescu/sage-5
9d85b34956ca2edd55af307f99c5d3859acd30bf
[ "BSL-1.0" ]
10
2016-09-28T13:12:40.000Z
2022-02-12T09:28:34.000Z
""" Local Density Interfaces """ ## // This is needed in the filter for primitivity... ## #include "../max-min.h" from sage.rings.arith import valuation from sage.rings.rational_field import QQ def local_density(self, p, m): """ Gives the local density -- should be called by the user. =) NOTE: This ...
30.29932
126
0.585092
71e214cbb7ea76158e7a4602445ff09fc18fc5e6
953
py
Python
framework/framework/branch/standard_branch.py
StepaTa/vkbottle
3b04a5343380cbabe782151e7cb1c1645a9fa9ce
[ "MIT" ]
null
null
null
framework/framework/branch/standard_branch.py
StepaTa/vkbottle
3b04a5343380cbabe782151e7cb1c1645a9fa9ce
[ "MIT" ]
null
null
null
framework/framework/branch/standard_branch.py
StepaTa/vkbottle
3b04a5343380cbabe782151e7cb1c1645a9fa9ce
[ "MIT" ]
null
null
null
from vkbottle.framework.framework.rule import AbstractMessageRule from enum import Enum class Branch: branch_name: str branch_kwargs: dict def __init__(self, branch_name: str, **pass_to_branch): self.branch_name = branch_name self.branch_kwargs = pass_to_branch class ExitBranch: pas...
21.177778
80
0.657922
848ca830045512f85e1693ff67b0d2f5a13d8bb2
32,615
py
Python
test/unit/obj/test_ssync_sender.py
ucsc-hp-group/swift
d6f1cb851d256ceffdff6d61513f42005e7ddcec
[ "Apache-2.0" ]
2
2016-01-26T14:31:04.000Z
2016-01-26T14:31:08.000Z
test/unit/obj/test_ssync_sender.py
ucsc-hp-group/swift
d6f1cb851d256ceffdff6d61513f42005e7ddcec
[ "Apache-2.0" ]
null
null
null
test/unit/obj/test_ssync_sender.py
ucsc-hp-group/swift
d6f1cb851d256ceffdff6d61513f42005e7ddcec
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2013 OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to ...
39.247894
79
0.591384
502cf0af7c80f1a285d57c93338c3a09afdf4eb5
11,270
py
Python
framework/CodeInterfaces/PHISICS/FissionYieldParser.py
sonatsen/raven
30764491e7ecaa16de2a4e0ddab3bc9e169e5f95
[ "Apache-2.0" ]
2
2019-10-11T15:59:10.000Z
2021-04-08T18:23:57.000Z
framework/CodeInterfaces/PHISICS/FissionYieldParser.py
sonatsen/raven
30764491e7ecaa16de2a4e0ddab3bc9e169e5f95
[ "Apache-2.0" ]
1
2018-03-27T13:06:00.000Z
2018-03-27T13:06:00.000Z
framework/CodeInterfaces/PHISICS/FissionYieldParser.py
sonatsen/raven
30764491e7ecaa16de2a4e0ddab3bc9e169e5f95
[ "Apache-2.0" ]
1
2017-08-29T16:09:13.000Z
2017-08-29T16:09:13.000Z
""" Created on June 25th, 2017 @author: rouxpn """ from __future__ import division, print_function, unicode_literals, absolute_import import warnings warnings.simplefilter('default', DeprecationWarning) import os import re from decimal import Decimal class FissionYieldParser(): """ Parses the PHISICS xml fissio...
44.545455
240
0.622981
5dad84f28380998f22f560c059b6ad7b404bf737
978
py
Python
devgram/users/models.py
smc0210/devgram
de7dd2b00f546e3c0ef69a14388870d8f1edfee8
[ "MIT" ]
null
null
null
devgram/users/models.py
smc0210/devgram
de7dd2b00f546e3c0ef69a14388870d8f1edfee8
[ "MIT" ]
16
2020-02-12T00:51:19.000Z
2022-03-11T23:20:09.000Z
devgram/users/models.py
smc0210/devgram
de7dd2b00f546e3c0ef69a14388870d8f1edfee8
[ "MIT" ]
1
2018-04-18T04:32:53.000Z
2018-04-18T04:32:53.000Z
from django.contrib.auth.models import AbstractUser from django.db import models from django.urls import reverse from django.utils.translation import ugettext_lazy as _ class User(AbstractUser): """ User Model """ GENDER_CHOICES = ( ('mail', 'Male'), ('female', 'Female'), ('not-speci...
30.5625
79
0.686094
e3927f66b99afcb8db3d8333e0b424c1b3b3e2e5
2,105
py
Python
connect.py
staticfloat/SidewalkWebpage
6138d24101a8d4288b0126c008314bfd8592f29f
[ "MIT" ]
60
2016-02-12T14:33:05.000Z
2022-03-11T21:33:52.000Z
connect.py
staticfloat/SidewalkWebpage
6138d24101a8d4288b0126c008314bfd8592f29f
[ "MIT" ]
2,292
2016-02-24T18:07:04.000Z
2022-03-28T22:51:08.000Z
connect.py
staticfloat/SidewalkWebpage
6138d24101a8d4288b0126c008314bfd8592f29f
[ "MIT" ]
26
2016-04-08T20:55:09.000Z
2022-03-09T08:40:17.000Z
import os from os.path import expanduser import boto3 import psycopg2 import psycopg2.extras from sqlalchemy import create_engine def connect_to_mturk(): # Get key from an external file secret_key = {} with open("rootkey.csv") as myfile: for line in myfile: name, var = line.partition(...
31.893939
96
0.542043
fcf6b6d29e9e0b700c9287948ee666b3d44edc80
1,972
py
Python
BRUCE_SENSE/util/test_visual_dumper.py
Westwood-Robotics/BRUCE_SENSE
b44f5c9f6dc9c76fee94d0cdc9e7eb11159a2220
[ "Apache-2.0" ]
2
2022-02-04T03:21:47.000Z
2022-02-07T19:00:04.000Z
BRUCE_SENSE/util/test_visual_dumper.py
Westwood-Robotics/BRUCE_SENSE
b44f5c9f6dc9c76fee94d0cdc9e7eb11159a2220
[ "Apache-2.0" ]
null
null
null
BRUCE_SENSE/util/test_visual_dumper.py
Westwood-Robotics/BRUCE_SENSE
b44f5c9f6dc9c76fee94d0cdc9e7eb11159a2220
[ "Apache-2.0" ]
1
2022-03-03T01:04:34.000Z
2022-03-03T01:04:34.000Z
import matplotlib.pyplot as plt import matplotlib.animation as animation import time from bruce_sense import Manager s = Manager.SENSOR(port='COM7', baudrate=2000000) fig = plt.figure() ax1 = fig.add_subplot(221) ax2 = fig.add_subplot(222) ax3 = fig.add_subplot(223) ax4 = fig.add_subplot(224) ts = [] rs = [] ps = [] ...
26.293333
121
0.583671
9a84ef271873d86499080f43e7975fbb2eafccc2
6,217
py
Python
tutorials/Tutorial8_Preprocessing.py
SjSnowball/haystack
bb066c0a2c10253cf2bf7eb8cc829f1a0edde84d
[ "Apache-2.0" ]
4,544
2019-11-14T11:57:49.000Z
2022-03-31T17:41:18.000Z
tutorials/Tutorial8_Preprocessing.py
SjSnowball/haystack
bb066c0a2c10253cf2bf7eb8cc829f1a0edde84d
[ "Apache-2.0" ]
1,679
2020-01-14T15:55:58.000Z
2022-03-31T20:55:25.000Z
tutorials/Tutorial8_Preprocessing.py
SjSnowball/haystack
bb066c0a2c10253cf2bf7eb8cc829f1a0edde84d
[ "Apache-2.0" ]
820
2019-11-27T13:01:42.000Z
2022-03-31T12:54:34.000Z
""" Preprocessing Haystack includes a suite of tools to extract text from different file types, normalize white space and split text into smaller pieces to optimize retrieval. These data preprocessing steps can have a big impact on the systems performance and effective handling of data is key to getting the most out o...
40.633987
154
0.731703
d3286bf109363d2a4fa05797bcba3dd0fd23443d
1,445
py
Python
setup.py
wayfair-tremor/tremor-mkdocs-lexer
6fcaf67d4aac42eb5f65840095937fc6bfaa2808
[ "Apache-2.0" ]
1
2021-02-06T23:16:42.000Z
2021-02-06T23:16:42.000Z
setup.py
wayfair-tremor/tremor-mkdocs-lexer
6fcaf67d4aac42eb5f65840095937fc6bfaa2808
[ "Apache-2.0" ]
null
null
null
setup.py
wayfair-tremor/tremor-mkdocs-lexer
6fcaf67d4aac42eb5f65840095937fc6bfaa2808
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """Setup tremor-mkdocs-lexer.""" from setuptools import setup, find_packages entry_points = ''' [pygments.lexers] tremor=tremor_mkdocs_lexer:TremorLexer trickle=tremor_mkdocs_lexer:TrickleLexer ''' setup( name='tremor-mkdocs-lexer', version='0.8.0', description='Pygments lexer packag...
33.604651
88
0.631834
1379ad8d81d3c415732257ed30ac2123aeb19444
257
py
Python
output/models/nist_data/atomic/any_uri/schema_instance/nistschema_sv_iv_atomic_any_uri_min_length_3_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/nist_data/atomic/any_uri/schema_instance/nistschema_sv_iv_atomic_any_uri_min_length_3_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/nist_data/atomic/any_uri/schema_instance/nistschema_sv_iv_atomic_any_uri_min_length_3_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.nist_data.atomic.any_uri.schema_instance.nistschema_sv_iv_atomic_any_uri_min_length_3_xsd.nistschema_sv_iv_atomic_any_uri_min_length_3 import NistschemaSvIvAtomicAnyUriMinLength3 __all__ = [ "NistschemaSvIvAtomicAnyUriMinLength3", ]
42.833333
197
0.894942
5040c221b5d40e6ad3df7af83c4bb29f3c334626
10,171
py
Python
models/mnist_lenet_fs.py
IsaacChanghau/DeepNaryECOC
08981309e21cf4d7519a36b034d35741c7fe0bf5
[ "MIT" ]
3
2020-12-14T02:21:02.000Z
2021-03-17T14:23:04.000Z
models/mnist_lenet_fs.py
IsaacChanghau/DeepNaryECOC
08981309e21cf4d7519a36b034d35741c7fe0bf5
[ "MIT" ]
null
null
null
models/mnist_lenet_fs.py
IsaacChanghau/DeepNaryECOC
08981309e21cf4d7519a36b034d35741c7fe0bf5
[ "MIT" ]
null
null
null
import os import numpy as np import tensorflow as tf from utils.logger import get_logger, Progbar from utils.prepro_text import remap_labels, dense_to_one_hot from utils.data_funcs import compute_ensemble_accuracy def mnist_lenet(inputs, training=False, reuse=tf.AUTO_REUSE, name="lenet"): # used for mnist with t...
55.884615
119
0.618818
6a2d74f7cb79c48ea083ae55b989865d95e197eb
55
py
Python
lotes/urls.py
20191-ads/glotes_serve
ed48a1b69f051e9f4f017aeef879a782e28be346
[ "MIT" ]
null
null
null
lotes/urls.py
20191-ads/glotes_serve
ed48a1b69f051e9f4f017aeef879a782e28be346
[ "MIT" ]
null
null
null
lotes/urls.py
20191-ads/glotes_serve
ed48a1b69f051e9f4f017aeef879a782e28be346
[ "MIT" ]
null
null
null
from django.urls import path urlpatterns = [ ]
6.875
28
0.636364
aa811f4e6f71a05f3c54c626af3b1711f61ebc40
1,134
py
Python
Active/CodeForces/ContestFetcher.py
pawan-nirpal-031/Algorithms-And-ProblemSolving
24ce9649345dabe7275920f6912e410efc2c8e84
[ "Apache-2.0" ]
2
2021-03-05T08:40:01.000Z
2021-04-25T13:58:42.000Z
Active/CodeForces/ContestFetcher.py
pawan-nirpal-031/Algorithms-And-ProblemSolving
24ce9649345dabe7275920f6912e410efc2c8e84
[ "Apache-2.0" ]
null
null
null
Active/CodeForces/ContestFetcher.py
pawan-nirpal-031/Algorithms-And-ProblemSolving
24ce9649345dabe7275920f6912e410efc2c8e84
[ "Apache-2.0" ]
null
null
null
import requests url = "http://codeforces.com/api" options = '/contest.list' link = 'http://codeforces.com/contest/' data = requests.get(url+options) data = data.json() Div3 = 'Div. 3' Div2 = 'Div. 2' Educational = 'Educational' Contests = {Div3:"Divison_3.txt",Div2:"Divison_2.txt",Educational:"Educational_Round.txt"}...
22.235294
90
0.614638
117139075a55fb54b4e4798bfec70734e858c36e
36
py
Python
datasets/__init__.py
tonysy/clockwork-fcn
19a413e705df091344d1136df1389646be76001a
[ "BSD-4-Clause-UC" ]
162
2016-08-24T05:46:45.000Z
2022-03-14T08:16:42.000Z
datasets/__init__.py
tonysy/clockwork-fcn
19a413e705df091344d1136df1389646be76001a
[ "BSD-4-Clause-UC" ]
11
2016-11-10T03:42:58.000Z
2019-12-10T19:59:56.000Z
datasets/__init__.py
tonysy/clockwork-fcn
19a413e705df091344d1136df1389646be76001a
[ "BSD-4-Clause-UC" ]
61
2016-08-24T05:46:46.000Z
2021-01-09T19:47:42.000Z
# Datasets for clockwork train/eval
18
35
0.805556
62e98a7dee3461912c6cc7c7b9f82bb96f830013
50,191
py
Python
angr/state_plugins/symbolic_memory.py
AkshaySG14/582proj-angr
8c17fcd31332ec115ed01666a6c8229620d1faa1
[ "BSD-2-Clause" ]
1
2020-05-09T13:11:41.000Z
2020-05-09T13:11:41.000Z
angr/state_plugins/symbolic_memory.py
AkshaySG14/582proj-angr
8c17fcd31332ec115ed01666a6c8229620d1faa1
[ "BSD-2-Clause" ]
null
null
null
angr/state_plugins/symbolic_memory.py
AkshaySG14/582proj-angr
8c17fcd31332ec115ed01666a6c8229620d1faa1
[ "BSD-2-Clause" ]
1
2020-05-09T13:15:26.000Z
2020-05-09T13:15:26.000Z
from collections import defaultdict import logging import itertools l = logging.getLogger(name=__name__) import claripy from ..storage.memory import SimMemory, DUMMY_SYMBOLIC_READ_VALUE from ..storage.paged_memory import SimPagedMemory from ..storage.memory_object import SimMemoryObject from ..sim_state_options imp...
42.248316
161
0.601303
dc26cf8e04fb7f045bbea843193fbc83a61e4c91
7,696
py
Python
crae.py
scotty110/ANN-code
05ae6094dfe98c1c9fd0feb87ffb0c0c5206502a
[ "MIT" ]
null
null
null
crae.py
scotty110/ANN-code
05ae6094dfe98c1c9fd0feb87ffb0c0c5206502a
[ "MIT" ]
null
null
null
crae.py
scotty110/ANN-code
05ae6094dfe98c1c9fd0feb87ffb0c0c5206502a
[ "MIT" ]
null
null
null
import tensorflow as tf from tensorflow.contrib.rnn import * import numpy as np import functools #import image_handler as image_handler import image_split_loader as isl import os """ THIS MODEL WORKS """ def lazy_property(function): ''' Danijar Hafner: https://danijar.com/ https://gist.githu...
35.62963
136
0.689969
2e75443b879718b3d2aeefb97db693a47728e297
11,185
py
Python
salt/utils/raetevent.py
l2ol33rt/salt
ff68bbd9f4bda992a3e039822fb32f141e94347c
[ "Apache-2.0" ]
1
2022-02-09T06:40:14.000Z
2022-02-09T06:40:14.000Z
salt/utils/raetevent.py
dv-trading/salt
f5d4334178c50d0dfcd205d5a7fb9cfb27fd369e
[ "Apache-2.0" ]
null
null
null
salt/utils/raetevent.py
dv-trading/salt
f5d4334178c50d0dfcd205d5a7fb9cfb27fd369e
[ "Apache-2.0" ]
4
2020-11-04T06:28:05.000Z
2022-02-09T10:54:49.000Z
# -*- coding: utf-8 -*- ''' Manage events This module is used to manage events via RAET ''' # pylint: disable=3rd-party-module-not-gated # Import python libs from __future__ import absolute_import import os import logging import time from collections import MutableMapping # Import salt libs import salt.payload impor...
35.062696
100
0.526777
9f68c4e23ea59fefb1ab5f291793069bff71e8b3
5,921
py
Python
catkin_ws/devel/lib/python2.7/dist-packages/vision_msgs/msg/_BoundingBox2D.py
Colin1245/ROS-Theory-Application-Shenlan
49986c83a2c73c7ab4310fd3f010e1b6bc0de786
[ "Apache-2.0" ]
null
null
null
catkin_ws/devel/lib/python2.7/dist-packages/vision_msgs/msg/_BoundingBox2D.py
Colin1245/ROS-Theory-Application-Shenlan
49986c83a2c73c7ab4310fd3f010e1b6bc0de786
[ "Apache-2.0" ]
null
null
null
catkin_ws/devel/lib/python2.7/dist-packages/vision_msgs/msg/_BoundingBox2D.py
Colin1245/ROS-Theory-Application-Shenlan
49986c83a2c73c7ab4310fd3f010e1b6bc0de786
[ "Apache-2.0" ]
null
null
null
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from vision_msgs/BoundingBox2D.msg. Do not edit.""" import codecs import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct import geometry_msgs.msg class BoundingBox2D(genpy.Message): _md5sum = "9ab...
38.2
471
0.684344
74fdefa3206508648c8bf951faa05af38d303c11
3,603
py
Python
server/data/ingest_1000.py
OpenDataAnalytics/resonanteco
eb326e4af6d899ed5dc89d1b99e0f3a439c46959
[ "Apache-2.0" ]
4
2019-07-02T13:52:36.000Z
2020-02-14T07:12:12.000Z
server/data/ingest_1000.py
OpenDataAnalytics/resonanteco
eb326e4af6d899ed5dc89d1b99e0f3a439c46959
[ "Apache-2.0" ]
1
2019-07-03T00:00:00.000Z
2019-07-11T02:18:47.000Z
server/data/ingest_1000.py
OpenDataAnalytics/resonanteco
eb326e4af6d899ed5dc89d1b99e0f3a439c46959
[ "Apache-2.0" ]
null
null
null
import csv from girder_client import GirderClient import requests import json import os import re import sys def lookup_envo_number(envo): with open('envo_lookup.json', 'r') as f: lookup_table = json.load(f) if envo in lookup_table: return lookup_table[envo] response = requests.get('https...
28.824
105
0.597558
da3673fc4521a9e6c0aabd973991ce535fa43349
416
py
Python
is_valid/is_decodable_json_where.py
nandoflorestan/transvalid
4e0adbaad35188312189112cac0c4f187116b4b9
[ "MIT" ]
4
2017-10-11T14:04:35.000Z
2019-03-29T08:38:09.000Z
is_valid/is_decodable_json_where.py
nandoflorestan/transvalid
4e0adbaad35188312189112cac0c4f187116b4b9
[ "MIT" ]
1
2021-06-17T19:12:15.000Z
2021-06-17T19:12:15.000Z
is_valid/is_decodable_json_where.py
Daanvdk/is_valid
615c5ae1999095cba398af6ae041a472769857f8
[ "MIT" ]
1
2021-06-05T18:06:49.000Z
2021-06-05T18:06:49.000Z
import json from .is_decodable_where import is_decodable_where from .is_json_where import is_json_where class is_decodable_json_where(is_decodable_where): def __init__( self, predicate, loader=json.loads, encoding='utf-8', errors='strict' ): return super().__init__( is_json_where...
24.470588
77
0.677885
32fd121d66dd69a9547689ee8c56200e3f51b4e4
2,936
py
Python
octavia/amphorae/backends/health_daemon/status_message.py
zjchao/octavia
e07031fa78604568c6e2112cb4cb147661bc57d7
[ "Apache-2.0" ]
null
null
null
octavia/amphorae/backends/health_daemon/status_message.py
zjchao/octavia
e07031fa78604568c6e2112cb4cb147661bc57d7
[ "Apache-2.0" ]
null
null
null
octavia/amphorae/backends/health_daemon/status_message.py
zjchao/octavia
e07031fa78604568c6e2112cb4cb147661bc57d7
[ "Apache-2.0" ]
1
2021-12-27T13:18:38.000Z
2021-12-27T13:18:38.000Z
# Copyright 2014 Hewlett-Packard Development Company, L.P. # # 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 requir...
29.959184
79
0.684946
ea7787caeef8cdf78dfed953bd54966edcd2ae6e
150
py
Python
deepstreampy/constants/call_state.py
sapid/deepstreampy-twisted
78025141bb0ac3aadc248d68f9273bf8993fc3d4
[ "MIT" ]
null
null
null
deepstreampy/constants/call_state.py
sapid/deepstreampy-twisted
78025141bb0ac3aadc248d68f9273bf8993fc3d4
[ "MIT" ]
null
null
null
deepstreampy/constants/call_state.py
sapid/deepstreampy-twisted
78025141bb0ac3aadc248d68f9273bf8993fc3d4
[ "MIT" ]
null
null
null
INITIAL = 'INITIAL' CONNECTING = 'CONNECTING' ESTABLISHED = 'ESTABLISHED' ACCEPTED = 'ACCEPTED' DECLINED = 'DECLINED' ENDED = 'ENDED' ERROR = 'ERROR'
18.75
27
0.72
e8d5a54cad8dd99ce3f7dc275ba97f4ec74cba45
84,732
py
Python
azure_compute/komand_azure_compute/actions/info_vm/schema.py
xhennessy-r7/insightconnect-plugins
59268051313d67735b5dd3a30222eccb92aca8e9
[ "MIT" ]
null
null
null
azure_compute/komand_azure_compute/actions/info_vm/schema.py
xhennessy-r7/insightconnect-plugins
59268051313d67735b5dd3a30222eccb92aca8e9
[ "MIT" ]
null
null
null
azure_compute/komand_azure_compute/actions/info_vm/schema.py
xhennessy-r7/insightconnect-plugins
59268051313d67735b5dd3a30222eccb92aca8e9
[ "MIT" ]
null
null
null
# GENERATED BY KOMAND SDK - DO NOT EDIT import komand import json class Input: MODE = "mode" RESOURCEGROUP = "resourceGroup" SUBSCRIPTIONID = "subscriptionId" VM = "vm" class Output: ID = "id" LOCATION = "location" NAME = "name" PROPERTIES = "properties" TAGS = "tags" TYP...
34.754717
173
0.420821
60ebc05e5609ce8525399cd37f1b06db93d31368
9,237
py
Python
train_tacotron.py
atoms18/WaveRNN
f38f33e7273aaa95566cbd4533ed4a737831592e
[ "MIT" ]
null
null
null
train_tacotron.py
atoms18/WaveRNN
f38f33e7273aaa95566cbd4533ed4a737831592e
[ "MIT" ]
null
null
null
train_tacotron.py
atoms18/WaveRNN
f38f33e7273aaa95566cbd4533ed4a737831592e
[ "MIT" ]
null
null
null
import torch from torch import optim import torch.nn.functional as F from utils import hparams as hp from utils.display import * from utils.dataset import get_tts_datasets from utils.text.symbols import symbols from utils.paths import Paths from models.tacotron import Tacotron import argparse from utils import data_par...
40.16087
157
0.60799
6706643443cdbf2a0884eedda5a2d823ecd23b82
18,881
py
Python
code/YOLO101_1Resolusi_80x60_TrainCDV2_OK1.py
mlcv-lab/mr3dcapsnet
d0b37ca085073257b0c485210ec92a5c6e7d9bb6
[ "Apache-2.0" ]
null
null
null
code/YOLO101_1Resolusi_80x60_TrainCDV2_OK1.py
mlcv-lab/mr3dcapsnet
d0b37ca085073257b0c485210ec92a5c6e7d9bb6
[ "Apache-2.0" ]
null
null
null
code/YOLO101_1Resolusi_80x60_TrainCDV2_OK1.py
mlcv-lab/mr3dcapsnet
d0b37ca085073257b0c485210ec92a5c6e7d9bb6
[ "Apache-2.0" ]
1
2021-02-21T16:07:39.000Z
2021-02-21T16:07:39.000Z
# -*- coding: utf-8 -*- """ Created on Fri Jul 14 13:24:34 2017 @author: user """ #from keras.preprocessing.image import ImageDataGenerator #from keras.models import Sequential #from keras.layers.core import Dense, Dropout, Activation, Flatten, SpatialDropout3D, Merge #from keras.layers.convolutional import...
35.225746
213
0.559557
93f7abb6ce10700486b64f74ff2904abb218ef3e
976
py
Python
mnist-ml-beginners.py
arpitshah101/ImageClassifier
b1b75b81f5ca9b1c3373a75c70588d92aff67eef
[ "MIT" ]
1
2021-01-02T20:22:36.000Z
2021-01-02T20:22:36.000Z
mnist-ml-beginners.py
arpitshah101/ImageClassifier
b1b75b81f5ca9b1c3373a75c70588d92aff67eef
[ "MIT" ]
null
null
null
mnist-ml-beginners.py
arpitshah101/ImageClassifier
b1b75b81f5ca9b1c3373a75c70588d92aff67eef
[ "MIT" ]
null
null
null
import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data mnist = input_data.read_data_sets("MNIST_data/", one_hot=True) x = tf.placeholder(tf.float32, [None, 784]) W = tf.Variable(tf.zeros([784, 10])) b = tf.Variable(tf.zeros([10])) y = tf.nn.softmax(tf.matmul(x, W) + b) # Training y_ = tf...
34.857143
82
0.719262
9ccdb4307a3f387e7f783de9333df594aa59313f
786
py
Python
Example 03 - ORM/address.py
tgroven/PythonSqlAlchemyLunchAndLearn
eebcb74cbf5db007ee9f2597303f4fe7ff1f5a44
[ "MIT" ]
null
null
null
Example 03 - ORM/address.py
tgroven/PythonSqlAlchemyLunchAndLearn
eebcb74cbf5db007ee9f2597303f4fe7ff1f5a44
[ "MIT" ]
null
null
null
Example 03 - ORM/address.py
tgroven/PythonSqlAlchemyLunchAndLearn
eebcb74cbf5db007ee9f2597303f4fe7ff1f5a44
[ "MIT" ]
null
null
null
from sqlalchemy import Column, Integer, String, Boolean, DateTime, ForeignKey from sqlalchemy.orm import relationship from sqlalchemy.dialects.mssql import UNIQUEIDENTIFIER #from customer import Customer from base import Base class Address(Base): __tablename__ = 'address' __table_args__ = {'schema': 'SalesLT'...
37.428571
77
0.744275
7fe71983df4dcc647134af527937152b68d8f23d
1,408
py
Python
tests/integration/link/test_absolute_path.py
Joeyt1008/dash-core-components
c806ea66eb5b674ef84fd9efae01cfa5292f143e
[ "MIT" ]
null
null
null
tests/integration/link/test_absolute_path.py
Joeyt1008/dash-core-components
c806ea66eb5b674ef84fd9efae01cfa5292f143e
[ "MIT" ]
null
null
null
tests/integration/link/test_absolute_path.py
Joeyt1008/dash-core-components
c806ea66eb5b674ef84fd9efae01cfa5292f143e
[ "MIT" ]
null
null
null
import pytest import dash from dash.dependencies import Input, Output import dash_core_components as dcc import dash_html_components as html @pytest.mark.DCC782 def test_lipa001_path(dash_dcc): app = dash.Dash(__name__) app.layout = html.Div( [ dcc.Link("Relative Path", id="link1", href="g...
23.864407
76
0.59517
6131be5603488522710731fb2a10b9750d62a348
1,223
py
Python
src/Data/Database.py
andreisalvador/bills-management-telegram-bot
ac0ae11cd6196ab8940c3d87dc470018d648f757
[ "MIT" ]
null
null
null
src/Data/Database.py
andreisalvador/bills-management-telegram-bot
ac0ae11cd6196ab8940c3d87dc470018d648f757
[ "MIT" ]
null
null
null
src/Data/Database.py
andreisalvador/bills-management-telegram-bot
ac0ae11cd6196ab8940c3d87dc470018d648f757
[ "MIT" ]
null
null
null
import datetime from sqlalchemy import create_engine, Column, String, Enum, Numeric, SmallInteger, Boolean, ForeignKey, Date, \ BigInteger from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker import os from src.Enums.PeriodEnum import PeriodEnum engine = create_engine(o...
29.829268
111
0.751431
5baf196f756ee87bcc1203548c3295ce857d24d2
271
py
Python
setup.py
old-pinky/AioPaperScroll-SDK
f5dbd2edcbeadedfaa3f846db7610ab6cb018bef
[ "MIT" ]
null
null
null
setup.py
old-pinky/AioPaperScroll-SDK
f5dbd2edcbeadedfaa3f846db7610ab6cb018bef
[ "MIT" ]
null
null
null
setup.py
old-pinky/AioPaperScroll-SDK
f5dbd2edcbeadedfaa3f846db7610ab6cb018bef
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name='aiopaperscroll', version='1.0.0', packages=find_packages(), install_requires=[ 'loguru', 'asyncio', 'aiohttp'], url='https://github.com/old-pinky/AioPaperScroll-SDK' )
19.357143
57
0.627306
b33bc428ecb4566db7fba0bc10f9ebe1bbb9eb22
16,205
py
Python
tools/wptrunner/wptrunner/executors/base.py
servo-wpt-sync/web-platform-tests
56e2df852354bc2b89e6d17a9dbafd280d24203c
[ "BSD-3-Clause" ]
null
null
null
tools/wptrunner/wptrunner/executors/base.py
servo-wpt-sync/web-platform-tests
56e2df852354bc2b89e6d17a9dbafd280d24203c
[ "BSD-3-Clause" ]
null
null
null
tools/wptrunner/wptrunner/executors/base.py
servo-wpt-sync/web-platform-tests
56e2df852354bc2b89e6d17a9dbafd280d24203c
[ "BSD-3-Clause" ]
null
null
null
import hashlib import httplib import os import threading import traceback import socket import urlparse from abc import ABCMeta, abstractmethod from ..testrunner import Stop here = os.path.split(__file__)[0] # Extra timeout to use after internal test timeout at which the harness # should force a timeout extra_timeou...
33.690229
112
0.606109
9fbfa6a5f29dd408e0c3343e3d3708c33da8d34b
1,295
py
Python
socialite/test/test_table_stmts.py
Wangqge/PowerLog_ae
8546afbcb9a77d516e8c3f0dfbaf2041a4b888f9
[ "Apache-2.0" ]
null
null
null
socialite/test/test_table_stmts.py
Wangqge/PowerLog_ae
8546afbcb9a77d516e8c3f0dfbaf2041a4b888f9
[ "Apache-2.0" ]
null
null
null
socialite/test/test_table_stmts.py
Wangqge/PowerLog_ae
8546afbcb9a77d516e8c3f0dfbaf2041a4b888f9
[ "Apache-2.0" ]
null
null
null
""" Testing functions in a query. """ import unittest class TestTableStmts(unittest.TestCase): def __init__(self, methodName='runTest'): unittest.TestCase.__init__(self, methodName) def test_drop_non_exit_table(self): try: `drop NonExistingTable42.` self.fail("") ...
22.719298
69
0.518147
6957f99872c70a6d867d974eacb396d071f96cac
8,707
py
Python
rasa_core/policies/two_stage_fallback.py
DavidSted/rasa_core
2b072e564373ad680600947521805911f44f3732
[ "Apache-2.0" ]
1
2019-04-19T18:01:21.000Z
2019-04-19T18:01:21.000Z
rasa_core/policies/two_stage_fallback.py
DavidSted/rasa_core
2b072e564373ad680600947521805911f44f3732
[ "Apache-2.0" ]
1
2019-04-02T17:52:01.000Z
2019-04-02T17:52:01.000Z
rasa_core/policies/two_stage_fallback.py
DavidSted/rasa_core
2b072e564373ad680600947521805911f44f3732
[ "Apache-2.0" ]
1
2019-05-29T15:06:59.000Z
2019-05-29T15:06:59.000Z
import json import logging import os from typing import List, Text from rasa_core import utils from rasa_core.actions.action import (ACTION_REVERT_FALLBACK_EVENTS_NAME, ACTION_DEFAULT_FALLBACK_NAME, ACTION_DEFAULT_ASK_REPHRASE_NAME, ...
47.579235
80
0.617319
c2f8f16b7be2a26f8d0e98728347f1fb066201d9
4,546
py
Python
cohesity_management_sdk/models/environment_remote_protection_job_information_enum.py
chandrashekar-cohesity/management-sdk-python
9e6ec99e8a288005804b808c4e9b19fd204e3a8b
[ "Apache-2.0" ]
1
2019-11-07T23:19:32.000Z
2019-11-07T23:19:32.000Z
cohesity_management_sdk/models/environment_remote_protection_job_information_enum.py
chandrashekar-cohesity/management-sdk-python
9e6ec99e8a288005804b808c4e9b19fd204e3a8b
[ "Apache-2.0" ]
null
null
null
cohesity_management_sdk/models/environment_remote_protection_job_information_enum.py
chandrashekar-cohesity/management-sdk-python
9e6ec99e8a288005804b808c4e9b19fd204e3a8b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2019 Cohesity Inc. class EnvironmentRemoteProtectionJobInformationEnum(object): """Implementation of the 'Environment_RemoteProtectionJobInformation' enum. Specifies the environment type (such as kVMware or kSQL) of the original archived Protection Job. Supported e...
33.925373
79
0.710075
14f4f7854e24eef5e3416cab11f0faa0a458d026
8,766
py
Python
src/sas/sasgui/perspectives/calculator/calculator.py
andyfaff/sasview
c00a797ab9c4ddc60f0fa8a64ae8a2067c225921
[ "BSD-3-Clause" ]
null
null
null
src/sas/sasgui/perspectives/calculator/calculator.py
andyfaff/sasview
c00a797ab9c4ddc60f0fa8a64ae8a2067c225921
[ "BSD-3-Clause" ]
null
null
null
src/sas/sasgui/perspectives/calculator/calculator.py
andyfaff/sasview
c00a797ab9c4ddc60f0fa8a64ae8a2067c225921
[ "BSD-3-Clause" ]
null
null
null
""" Calculator Module """ ################################################################################ #This software was developed by the University of Tennessee as part of the #Distributed Data Analysis of Neutron Scattering Experiments (DANSE) #project funded by the US National Science Foundation. # #See the li...
37.144068
85
0.593543
da05d17476207d1ccd360752affd2d4340edab31
1,155
py
Python
tests/test_comment.py
abbyshabi/PerfectPitches
7299b67784021d74520c2bc6af931c57877d2024
[ "MIT" ]
null
null
null
tests/test_comment.py
abbyshabi/PerfectPitches
7299b67784021d74520c2bc6af931c57877d2024
[ "MIT" ]
null
null
null
tests/test_comment.py
abbyshabi/PerfectPitches
7299b67784021d74520c2bc6af931c57877d2024
[ "MIT" ]
2
2019-02-12T22:54:31.000Z
2019-02-13T23:42:04.000Z
import unittest from app.models import Comment,User from flask_login import current_user from app import db class TestComment(unittest.TestCase): def setUp(self): self.post_Fly = Post(title = 'James',body = 'potato', id = '1') self.new_comment = Comment(body = 'good') ...
36.09375
114
0.62684
51d92107809ab93fb9b53f6a97daa853015dd3d2
436
py
Python
blog/urls.py
robscodebase/django-blog
956e3751ffe352425fb00087a37cb4648f1a176e
[ "BSD-3-Clause" ]
null
null
null
blog/urls.py
robscodebase/django-blog
956e3751ffe352425fb00087a37cb4648f1a176e
[ "BSD-3-Clause" ]
null
null
null
blog/urls.py
robscodebase/django-blog
956e3751ffe352425fb00087a37cb4648f1a176e
[ "BSD-3-Clause" ]
null
null
null
from django.conf.urls import url from . import views urlpatterns = [ # post views url(r'^$', views.post_list, name='post_list'), url(r'^tag/(?P<tag_slug>[-\w]+)/$', views.post_list, name='post_list_by_tag'), url(r'^(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d{2})/(?P<post>[-\w]+)/$', views.post...
31.142857
82
0.580275
eea861b38075d1343f7381a54f1f66aac90b57ba
53,423
py
Python
MLlib/models.py
Vinit-source/ML-DL-implementation
15960151a4d65c24695220ee68e0ffa5b1b40e19
[ "BSD-3-Clause" ]
null
null
null
MLlib/models.py
Vinit-source/ML-DL-implementation
15960151a4d65c24695220ee68e0ffa5b1b40e19
[ "BSD-3-Clause" ]
null
null
null
MLlib/models.py
Vinit-source/ML-DL-implementation
15960151a4d65c24695220ee68e0ffa5b1b40e19
[ "BSD-3-Clause" ]
null
null
null
from MLlib.optimizers import GradientDescent from MLlib.activations import Sigmoid from MLlib.utils.misc_utils import generate_weights from MLlib.utils.decision_tree_utils import partition, find_best_split from MLlib.utils.decision_tree_utils import class_counts from MLlib.utils .knn_utils import get_neighbours from ML...
30.809112
79
0.557999
310ce5d9a9d12111712c1eab2707826ffcebfa99
1,343
py
Python
cogs/Triggers.py
jakebacker/Gompei-Bot
dba3b11874ca19c22f170b8a01928af2b3fb2bd8
[ "MIT" ]
9
2020-02-14T02:07:39.000Z
2022-01-08T03:25:22.000Z
cogs/Triggers.py
jakebacker/Gompei-Bot
dba3b11874ca19c22f170b8a01928af2b3fb2bd8
[ "MIT" ]
16
2020-02-14T02:10:29.000Z
2022-02-04T14:50:58.000Z
cogs/Triggers.py
jakebacker/Gompei-Bot
dba3b11874ca19c22f170b8a01928af2b3fb2bd8
[ "MIT" ]
8
2020-02-21T14:28:07.000Z
2022-02-04T14:49:04.000Z
from discord.ext import commands greetings = ["hello", "hi", "greetings", "howdy", "salutations", "hey", "oi", "dear", "yo ", "morning", "afternoon", "evening", "sup", "G'day", "good day", "bonjour"] gompei_references = ["gompei", "672453835863883787", "goat"] love_references = ["gompeiHug", "love", "ily"...
43.322581
116
0.595681
0e269c09850e065a8861143b9038cb665d0c8f1b
2,770
py
Python
src/inverse_text_normalization/gu/taggers/tokenize_and_classify.py
yashiagar1999/indict_punc
8697ac5a5245c7e0d35b0777b1dc6fb1b8d6d525
[ "MIT" ]
15
2021-07-30T18:18:47.000Z
2022-02-14T09:04:19.000Z
src/inverse_text_normalization/gu/taggers/tokenize_and_classify.py
yashiagar1999/indict_punc
8697ac5a5245c7e0d35b0777b1dc6fb1b8d6d525
[ "MIT" ]
1
2021-12-15T12:42:12.000Z
2022-02-15T05:33:00.000Z
src/inverse_text_normalization/gu/taggers/tokenize_and_classify.py
yashiagar1999/indict_punc
8697ac5a5245c7e0d35b0777b1dc6fb1b8d6d525
[ "MIT" ]
4
2021-07-30T10:03:38.000Z
2021-12-01T14:46:54.000Z
# Copyright (c) 2021, NVIDIA CORPORATION. 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...
36.447368
94
0.711552
6c30804c7a529ba095bc5e76563eb929729a0f94
10,189
py
Python
pomodorr/projects/serializers.py
kamil559/pomodorr
232e6e98ff3481561dd1235794b3960066713210
[ "MIT" ]
null
null
null
pomodorr/projects/serializers.py
kamil559/pomodorr
232e6e98ff3481561dd1235794b3960066713210
[ "MIT" ]
15
2020-04-11T18:30:57.000Z
2020-07-05T09:37:43.000Z
pomodorr/projects/serializers.py
kamil559/pomodorr
232e6e98ff3481561dd1235794b3960066713210
[ "MIT" ]
null
null
null
from datetime import timedelta from rest_framework import serializers from rest_framework.serializers import ModelSerializer from pomodorr.projects.exceptions import ProjectException, PriorityException, TaskException, SubTaskException from pomodorr.projects.models import Project, Priority, Task, SubTask from pomodorr...
48.519048
115
0.688978
e3cf1eeedea8999277c2956bf64ddf377947ebdc
501
py
Python
find_lane_in_mv.py
ishota/CarND-LaneLines-P1
7780ec931d696efb9e5c41d5d91aa8723b7cb2a0
[ "MIT" ]
null
null
null
find_lane_in_mv.py
ishota/CarND-LaneLines-P1
7780ec931d696efb9e5c41d5d91aa8723b7cb2a0
[ "MIT" ]
null
null
null
find_lane_in_mv.py
ishota/CarND-LaneLines-P1
7780ec931d696efb9e5c41d5d91aa8723b7cb2a0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import utl from consts import * def main(): # divide videos into img image_list = utl.get_frame_list('test_videos/' + VID_NAME + '.mp4') # detect lane line line_color = [0, 0, 255] for n, image in enumerate(image_list): image_list[n] = utl.find_lane_line(image, l...
21.782609
86
0.668663
7890429cfa3e7afb401842c3ff15265d5f03d1d4
10,222
py
Python
docs/source/examples/deepmind/dm_manipulation_stack_sac.py
Toni-SM/skrl
15b429d89e3b8a1828b207d88463bf7090288d18
[ "MIT" ]
43
2021-12-19T07:47:43.000Z
2022-03-31T05:24:42.000Z
docs/source/examples/deepmind/dm_manipulation_stack_sac.py
Toni-SM/skrl
15b429d89e3b8a1828b207d88463bf7090288d18
[ "MIT" ]
5
2022-01-05T07:54:13.000Z
2022-03-08T21:00:39.000Z
docs/source/examples/deepmind/dm_manipulation_stack_sac.py
Toni-SM/skrl
15b429d89e3b8a1828b207d88463bf7090288d18
[ "MIT" ]
1
2022-01-31T17:53:52.000Z
2022-01-31T17:53:52.000Z
from dm_control import manipulation import torch import torch.nn as nn # Import the skrl components to build the RL system from skrl.models.torch import GaussianModel, DeterministicModel from skrl.memories.torch import RandomMemory from skrl.agents.torch.sac import SAC, SAC_DEFAULT_CONFIG from skrl.trainers.torch imp...
58.411429
151
0.596165
b4057efcbb0da71a9b4115f58108b5a21c0cb694
12,282
py
Python
sympy/printing/mathml.py
matthew-brett/sympy
7b87b62144c28f2e734e9106897c72806b99d181
[ "BSD-3-Clause" ]
null
null
null
sympy/printing/mathml.py
matthew-brett/sympy
7b87b62144c28f2e734e9106897c72806b99d181
[ "BSD-3-Clause" ]
null
null
null
sympy/printing/mathml.py
matthew-brett/sympy
7b87b62144c28f2e734e9106897c72806b99d181
[ "BSD-3-Clause" ]
null
null
null
""" A MathML printer. """ from sympy import Basic, sympify, S from sympy.simplify import fraction from printer import Printer from conventions import split_super_sub class MathMLPrinter(Printer): """Prints an expression to the MathML markup language Whenever possible tries to use Content markup and not Pres...
33.649315
100
0.561146
70379b5a0b6c1727957fc99098c0dca8026184d9
162
py
Python
PyStacks/test/test_verification.py
0xack13/PyStacks
13136c43089c241680beb216a233d1846119dd7c
[ "MIT" ]
11
2018-02-15T04:27:05.000Z
2020-10-02T11:20:08.000Z
PyStacks/test/test_verification.py
0xack13/PyStacks
13136c43089c241680beb216a233d1846119dd7c
[ "MIT" ]
3
2018-02-15T05:46:54.000Z
2018-03-05T04:46:51.000Z
PyStacks/test/test_verification.py
0xack13/PyStacks
13136c43089c241680beb216a233d1846119dd7c
[ "MIT" ]
8
2018-03-05T04:40:41.000Z
2021-02-22T08:07:58.000Z
from mock import MagicMock import PyStacks.PyStacks.verification as verification class TestVerification: def test_ensure_http_success(self): pass
16.2
53
0.783951
59cbd347b42bbfb41e77a8ee380f937cc09abc48
52,489
py
Python
pennylane/devices/tests/test_measurements.py
MoritzWillmann/pennylane
2b07d22cfcc6406ba28e5c647062340b240a4ee5
[ "Apache-2.0" ]
539
2018-11-13T08:45:42.000Z
2020-07-27T18:17:16.000Z
pennylane/devices/tests/test_measurements.py
MoritzWillmann/pennylane
2b07d22cfcc6406ba28e5c647062340b240a4ee5
[ "Apache-2.0" ]
588
2018-11-14T10:21:47.000Z
2020-07-28T06:27:14.000Z
pennylane/devices/tests/test_measurements.py
MoritzWillmann/pennylane
2b07d22cfcc6406ba28e5c647062340b240a4ee5
[ "Apache-2.0" ]
165
2018-11-13T18:58:56.000Z
2020-07-27T17:18:17.000Z
# Copyright 2018-2021 Xanadu Quantum Technologies 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...
35.48952
118
0.530816
ba812ec545c7f6343b5ecb7defc751652411e09c
30,642
py
Python
raiden/raiden/token_swap.py
yy18/raidenenv
f732de6870de01840a1ad7bb25cc9d31b1781600
[ "MIT" ]
null
null
null
raiden/raiden/token_swap.py
yy18/raidenenv
f732de6870de01840a1ad7bb25cc9d31b1781600
[ "MIT" ]
null
null
null
raiden/raiden/token_swap.py
yy18/raidenenv
f732de6870de01840a1ad7bb25cc9d31b1781600
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import logging import random import time from collections import namedtuple, defaultdict import gevent from gevent.queue import Empty from ethereum import slogging from raiden.network.channelgraph import ( get_best_routes, ) from raiden.tasks import Task from raiden.messages import ( M...
36.007051
97
0.56713
d9d801cbe3e0d0308657f8028fb0b1b31d7ebb8b
2,096
py
Python
languages/python/topics/regex/P012_ReModule_RegexObject.py
lakshmikanth-tesla/DeveloperNotes2Myself
9a5dad930ddbb99ace46d2d672109e8553aecbc2
[ "MIT" ]
2
2019-05-25T10:09:00.000Z
2022-03-11T09:06:23.000Z
languages/python/topics/regex/P012_ReModule_RegexObject.py
lakshmikanth-tesla/DeveloperNotes2Myself
9a5dad930ddbb99ace46d2d672109e8553aecbc2
[ "MIT" ]
2
2020-03-31T04:30:17.000Z
2020-10-30T07:54:28.000Z
languages/python/topics/regex/P012_ReModule_RegexObject.py
lakshmikanth-tesla/DeveloperNotes2Myself
9a5dad930ddbb99ace46d2d672109e8553aecbc2
[ "MIT" ]
4
2019-07-12T13:18:56.000Z
2021-11-17T08:04:55.000Z
# Description: The re.RegexObject import re """ Note 1. The re.RegexObject supports following methods - search(string[, pos[, endpos]]) - match(string[, pos[, endpos]]) - split(string, maxsplit=0) - findall(string[, pos[, endpos]]) - finditer(string[, pos[, endpos]]) - sub(repl, string, count=...
46.577778
123
0.716603
aba85a8982f79dd5cfad67d945512f5c715817c8
371
py
Python
office_tracker/leave_tracker/apps.py
tanvir002700/tracker
567c3be2f36ac120fb412c06126cbd8fa72be4b9
[ "MIT" ]
null
null
null
office_tracker/leave_tracker/apps.py
tanvir002700/tracker
567c3be2f36ac120fb412c06126cbd8fa72be4b9
[ "MIT" ]
11
2020-06-05T18:04:42.000Z
2022-03-11T23:19:32.000Z
office_tracker/leave_tracker/apps.py
tanvir002700/tracker
567c3be2f36ac120fb412c06126cbd8fa72be4b9
[ "MIT" ]
null
null
null
from django.apps import AppConfig from django.db.models.signals import post_save from django.apps import apps from .signals import assign_season_to_all_user class LeaveTrackerConfig(AppConfig): name = 'leave_tracker' def ready(self): Season = apps.get_model('leave_tracker', 'Season') post_save...
30.916667
67
0.773585
ec158b25a1e594847af37d1ac161f674369ae88f
3,166
py
Python
setup/settings.py
hcs42/ExponWords
6cbb7ccea5076a33aeff23c503d168a9f4ade8a2
[ "Apache-2.0" ]
null
null
null
setup/settings.py
hcs42/ExponWords
6cbb7ccea5076a33aeff23c503d168a9f4ade8a2
[ "Apache-2.0" ]
null
null
null
setup/settings.py
hcs42/ExponWords
6cbb7ccea5076a33aeff23c503d168a9f4ade8a2
[ "Apache-2.0" ]
null
null
null
# Django settings for ExponWords project. import os ADMINS = ( # ('Your Name', 'your_email@domain.com'), ) MANAGERS = ADMINS PROJECT_DIR = os.path.normpath(os.path.abspath(os.path.dirname(__file__))) DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(PR...
30.442308
97
0.716361
fd63219fc7f5eacebd684e1839b1bebfe6099865
93
py
Python
midburn/config/prod.py
mtr574/projectMidbrunFirstReg
2569c3f07e1af746bfc1f213632708c76d8fc829
[ "Apache-2.0" ]
null
null
null
midburn/config/prod.py
mtr574/projectMidbrunFirstReg
2569c3f07e1af746bfc1f213632708c76d8fc829
[ "Apache-2.0" ]
1
2016-01-22T09:32:04.000Z
2016-01-22T12:14:12.000Z
midburn/config/prod.py
mtr574/projectMidbrunFirstReg
2569c3f07e1af746bfc1f213632708c76d8fc829
[ "Apache-2.0" ]
3
2016-11-04T12:10:03.000Z
2017-02-23T08:52:53.000Z
from midburn.settings import * DEBUG = True DATABASES['default'] = dj_database_url.config()
18.6
47
0.763441
80cc85554034143d155874a883242839f3e7618e
24,597
py
Python
src/ezdxf/entities/dxfgfx.py
jkjt/ezdxf
2acc5611b81476ea16b98063b9f55446a9182b81
[ "MIT" ]
null
null
null
src/ezdxf/entities/dxfgfx.py
jkjt/ezdxf
2acc5611b81476ea16b98063b9f55446a9182b81
[ "MIT" ]
null
null
null
src/ezdxf/entities/dxfgfx.py
jkjt/ezdxf
2acc5611b81476ea16b98063b9f55446a9182b81
[ "MIT" ]
null
null
null
# Copyright (c) 2019-2021 Manfred Moitzi # License: MIT License from typing import TYPE_CHECKING, Optional, Tuple, Iterable, Dict, Any from ezdxf.entities import factory from ezdxf import options from ezdxf.lldxf import validator from ezdxf.lldxf.attributes import ( DXFAttr, DXFAttributes, DefSubclass, ...
34.692525
84
0.608245
a2c0763378c0cd4c270fb23b9d13ecb02f0ef5c9
3,807
py
Python
couler/tests/mpi_step_test.py
javoweb/couler
1531f31816a1505401c5326dc5fec5a8bb7bf7cd
[ "Apache-2.0" ]
700
2020-08-19T16:50:32.000Z
2022-03-31T11:05:22.000Z
couler/tests/mpi_step_test.py
javoweb/couler
1531f31816a1505401c5326dc5fec5a8bb7bf7cd
[ "Apache-2.0" ]
136
2020-08-19T16:54:20.000Z
2022-03-08T15:23:53.000Z
couler/tests/mpi_step_test.py
javoweb/couler
1531f31816a1505401c5326dc5fec5a8bb7bf7cd
[ "Apache-2.0" ]
74
2020-08-19T19:48:56.000Z
2022-03-04T17:39:42.000Z
# Copyright 2021 The Couler 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 applicable law or...
39.65625
77
0.634095
f4bb6f5bada4498926d734b6d9dd9b69b6d4fca1
1,972
py
Python
xgboost/xgb.py
alvinx31/AI-Pool
9f01ddff1b3a6cbfb1648d75f4c3706c424c9930
[ "MIT" ]
null
null
null
xgboost/xgb.py
alvinx31/AI-Pool
9f01ddff1b3a6cbfb1648d75f4c3706c424c9930
[ "MIT" ]
null
null
null
xgboost/xgb.py
alvinx31/AI-Pool
9f01ddff1b3a6cbfb1648d75f4c3706c424c9930
[ "MIT" ]
null
null
null
#coding=utf-8 """ Created on 2016/09/17 By 我曾经被山河大海跨过 """ import numpy as np import pandas as pd import xgboost as xgb from sklearn.cross_validation import train_test_split #记录程序运行时间 import time start_time = time.time() #读入数据 train = pd.read_csv("train.csv") tests = pd.read_csv("test.csv") params={ 'booster':'gbtr...
27.774648
125
0.742394
32473c66349d7b0b578232016d303fe2db36652f
1,158
py
Python
robot_util.py
bmorrison4/LED-bot-RMR
d8e5abed39f55682b0107ffafcbced5c78be1820
[ "Apache-2.0" ]
null
null
null
robot_util.py
bmorrison4/LED-bot-RMR
d8e5abed39f55682b0107ffafcbced5c78be1820
[ "Apache-2.0" ]
null
null
null
robot_util.py
bmorrison4/LED-bot-RMR
d8e5abed39f55682b0107ffafcbced5c78be1820
[ "Apache-2.0" ]
null
null
null
import os import time import traceback import ssl import urllib2 import getpass import json ConfigFilename = "/home/pi/config_" + getpass.getuser() + ".json" def getWithRetry(url, secure=True): for retryNumber in range(2000): try: print "GET", url if secure: res...
21.444444
71
0.570812
431c9a6ede9bfb15de308f98109b2a0d42a56ef8
5,481
py
Python
virtual/Lib/site-packages/dash_html_components/Output.py
LeonZly90/LeonZly90
935a658814632beca84cab0af6c048dd762f8c56
[ "MIT" ]
2
2021-07-18T11:39:56.000Z
2021-11-06T17:13:05.000Z
venv/Lib/site-packages/dash_html_components/Output.py
wakisalvador/constructed-misdirection
74779e9ec640a11bc08d5d1967c85ac4fa44ea5e
[ "Unlicense" ]
null
null
null
venv/Lib/site-packages/dash_html_components/Output.py
wakisalvador/constructed-misdirection
74779e9ec640a11bc08d5d1967c85ac4fa44ea5e
[ "Unlicense" ]
null
null
null
# AUTO GENERATED FILE - DO NOT EDIT from dash.development.base_component import Component, _explicitize_args class Output(Component): """An Output component. Output is a wrapper for the <output> HTML5 element. CAUTION: <output> is included for completeness, but its typical usage requires the oninput attribute o...
41.839695
667
0.710089
2dcc34751c72483e3921d35c0a6b137fdb07f0c8
6,760
py
Python
sdk/python/pulumi_oci/identity/get_identity_providers.py
EladGabay/pulumi-oci
6841e27d4a1a7e15c672306b769912efbfd3ba99
[ "ECL-2.0", "Apache-2.0" ]
5
2021-08-17T11:14:46.000Z
2021-12-31T02:07:03.000Z
sdk/python/pulumi_oci/identity/get_identity_providers.py
pulumi-oci/pulumi-oci
6841e27d4a1a7e15c672306b769912efbfd3ba99
[ "ECL-2.0", "Apache-2.0" ]
1
2021-09-06T11:21:29.000Z
2021-09-06T11:21:29.000Z
sdk/python/pulumi_oci/identity/get_identity_providers.py
pulumi-oci/pulumi-oci
6841e27d4a1a7e15c672306b769912efbfd3ba99
[ "ECL-2.0", "Apache-2.0" ]
2
2021-08-24T23:31:30.000Z
2022-01-02T19:26:54.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
40.238095
312
0.671746
0fbced832a946f061c872027eaf01a91f3566dfb
7,748
py
Python
mitmproxy/tools/console/defaultkeys.py
developeric/mitmproxy
c996f1ee74a367424b956a77c3e2c7bfc9c86da5
[ "MIT" ]
9
2021-12-19T13:47:10.000Z
2022-03-26T06:34:02.000Z
mitmproxy/tools/console/defaultkeys.py
PeterDaveHello/mitmproxy
4bd7b6c4eadeaca712f63e0e73f20bcf6aadbffb
[ "MIT" ]
null
null
null
mitmproxy/tools/console/defaultkeys.py
PeterDaveHello/mitmproxy
4bd7b6c4eadeaca712f63e0e73f20bcf6aadbffb
[ "MIT" ]
3
2021-12-20T08:21:47.000Z
2022-03-29T17:55:12.000Z
def map(km): km.add(":", "console.command ", ["commonkey", "global"], "Command prompt") km.add("?", "console.view.help", ["global"], "View help") km.add("B", "browser.start", ["global"], "Start an attached browser") km.add("C", "console.view.commands", ["global"], "View commands") km.add("K", "conso...
39.329949
126
0.572019
232b9be87de6124f571d4e0a6d346eae0524f5e3
12,989
py
Python
lib/saq/constants.py
ace-ecosystem/faqueue
a53b5577892ace4ca918f76ef9e676e85e30c93f
[ "Apache-2.0" ]
null
null
null
lib/saq/constants.py
ace-ecosystem/faqueue
a53b5577892ace4ca918f76ef9e676e85e30c93f
[ "Apache-2.0" ]
null
null
null
lib/saq/constants.py
ace-ecosystem/faqueue
a53b5577892ace4ca918f76ef9e676e85e30c93f
[ "Apache-2.0" ]
null
null
null
# vim: sw=4:ts=4:et __all__ = [ 'INSTANCE_TYPE_PRODUCTION', 'INSTANCE_TYPE_QA', 'INSTANCE_TYPE_DEV', 'F_UUID', 'F_ID', 'F_TOOL', 'F_TOOL_INSTANCE', 'F_TYPE', 'F_DESCRIPTION', 'F_EVENT_TIME', 'F_DETAILS', 'F_CIDR', 'F_IPV4', 'F_IPV4_CONVERSATION', 'F_FQDN', ...
28.610132
128
0.732928
d63cd250429cfb78cd33fd33c12b653a66499eec
18,356
py
Python
src/alsc/ar-tnet/layer_no_split_lstm_after_cpt_first_and_last_hidden_reshape_concat_GraphSAGE.py
mainuliitkgp/AR-BERT
d6d5e8542a3a1c76edac49cec9e99ebda6395725
[ "MIT" ]
4
2022-03-06T17:41:57.000Z
2022-03-22T08:42:58.000Z
src/alsc/ar-tnet/layer_no_split_lstm_after_cpt_first_and_last_hidden_reshape_concat_GraphSAGE.py
mainuliitkgp/AR-BERT
d6d5e8542a3a1c76edac49cec9e99ebda6395725
[ "MIT" ]
null
null
null
src/alsc/ar-tnet/layer_no_split_lstm_after_cpt_first_and_last_hidden_reshape_concat_GraphSAGE.py
mainuliitkgp/AR-BERT
d6d5e8542a3a1c76edac49cec9e99ebda6395725
[ "MIT" ]
1
2022-03-19T14:04:42.000Z
2022-03-19T14:04:42.000Z
# -*- coding: utf-8 -*- import os import theano import theano.tensor as T from theano.tensor.nnet import conv from theano.tensor.signal import pool from theano.sandbox.rng_mrg import MRG_RandomStreams as RandomStreams from nn_utils_sentence import * import pickle class LSTM: def __init__(self, bs, n_in, n_out, na...
38.644211
203
0.603563
39565d0a96f1c69760860e88f46e2883c3b20a9e
143
py
Python
platform_control/platforms/apps.py
dmontoya1/platform_control
4be797674dd14dc5fe0a7e8ab9e0ab1ce5c139e2
[ "MIT" ]
null
null
null
platform_control/platforms/apps.py
dmontoya1/platform_control
4be797674dd14dc5fe0a7e8ab9e0ab1ce5c139e2
[ "MIT" ]
2
2022-03-01T03:13:40.000Z
2022-03-02T03:09:57.000Z
platform_control/platforms/apps.py
dmontoya1/platform_control
4be797674dd14dc5fe0a7e8ab9e0ab1ce5c139e2
[ "MIT" ]
null
null
null
from django.apps import AppConfig class PlatformsConfig(AppConfig): name = 'platform_control.platforms' verbose_name = 'Plataformas'
20.428571
39
0.769231
6b8c3dd8e7e725e1082fcb46658641b64e308468
546
py
Python
final_project/main/decorators.py
W7SP/project_defense
550152bd82998333444ace099c47feffffb6c3ab
[ "MIT" ]
null
null
null
final_project/main/decorators.py
W7SP/project_defense
550152bd82998333444ace099c47feffffb6c3ab
[ "MIT" ]
null
null
null
final_project/main/decorators.py
W7SP/project_defense
550152bd82998333444ace099c47feffffb6c3ab
[ "MIT" ]
null
null
null
from django.http import HttpResponse # def allowed_groups(allowed_roles): # def decorator(view_func): # def wrapper(request, *args, **kwargs): # group = None # if request.groups.user.exists(): # group = request.user.groups.all()[0].name # if group in all...
34.125
84
0.571429
8dec106f9d0da892472157dfdb2230138a52dbd5
723
py
Python
tests/snmp/conftest.py
slutati1536/sonic-mgmt
741c735b8bf2385e389b252a9c7a0816641cdf90
[ "Apache-2.0" ]
null
null
null
tests/snmp/conftest.py
slutati1536/sonic-mgmt
741c735b8bf2385e389b252a9c7a0816641cdf90
[ "Apache-2.0" ]
null
null
null
tests/snmp/conftest.py
slutati1536/sonic-mgmt
741c735b8bf2385e389b252a9c7a0816641cdf90
[ "Apache-2.0" ]
1
2021-06-13T07:38:59.000Z
2021-06-13T07:38:59.000Z
import pytest from tests.common.utilities import wait_until @pytest.fixture(scope="module", autouse=True) def setup_check_snmp_ready(duthosts): for duthost in duthosts: assert wait_until(300, 20, duthost.is_service_fully_started, "snmp"), "SNMP service is not running" @pytest.fixture(scope="function", aut...
31.434783
107
0.644537
1494dc3c21d9e489b9c19148e263039d5435041a
116
py
Python
PythonBlog/configs/constant/userConst.py
Nohysiwe/FastAPIBlogBackend
2052c630a1a6e9bb9e6555f734c60020b107afc8
[ "MIT" ]
1
2022-02-09T06:58:44.000Z
2022-02-09T06:58:44.000Z
PythonBlog/configs/constant/userConst.py
Nohysiwe/FastAPIBlogBackend
2052c630a1a6e9bb9e6555f734c60020b107afc8
[ "MIT" ]
null
null
null
PythonBlog/configs/constant/userConst.py
Nohysiwe/FastAPIBlogBackend
2052c630a1a6e9bb9e6555f734c60020b107afc8
[ "MIT" ]
null
null
null
""" 用户常量 """ class UserConst: BLOGGER_ID: int = 1 # 博主id SILENCE: int = 1 # 禁言状态
7.733333
34
0.439655
0541c92f1a1bfff5f2948431b3a7e55cb90861de
12,049
py
Python
ckan/tests/logic/auth/test_create.py
ziveo/ckan
f4cfe5e28789df58b2bf7e73e5989ffda00e5c5c
[ "Apache-2.0" ]
1
2020-01-16T10:46:18.000Z
2020-01-16T10:46:18.000Z
ckan/tests/logic/auth/test_create.py
ziveo/ckan
f4cfe5e28789df58b2bf7e73e5989ffda00e5c5c
[ "Apache-2.0" ]
null
null
null
ckan/tests/logic/auth/test_create.py
ziveo/ckan
f4cfe5e28789df58b2bf7e73e5989ffda00e5c5c
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 """Unit tests for ckan/logic/auth/create.py. """ import mock import pytest import ckan.logic.auth.create as auth_create import ckan.model as core_model import ckan.tests.factories as factories import ckan.tests.helpers as helpers logic = helpers.logic def test_anon_cant_create(): response = ...
33.010959
79
0.625031
edf9325ac1dfa8bfde3dcf2b2c48e46d7e7efedc
26,863
py
Python
nipyapi/registry/apis/buckets_api.py
esecules/nipyapi
e8a53b79a5e1a6b29446f43d2b23b6a3e60873f1
[ "Apache-2.0" ]
null
null
null
nipyapi/registry/apis/buckets_api.py
esecules/nipyapi
e8a53b79a5e1a6b29446f43d2b23b6a3e60873f1
[ "Apache-2.0" ]
null
null
null
nipyapi/registry/apis/buckets_api.py
esecules/nipyapi
e8a53b79a5e1a6b29446f43d2b23b6a3e60873f1
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Apache NiFi Registry REST API The REST API provides an interface to a registry with operations for saving, versioning, reading NiFi flows and components. OpenAPI spec version: 0.5.0 Contact: dev@nifi.apache.org Generated by: https://github.com/swagger-api/swagger-codegen.git "...
40.153961
159
0.560101
1a626b1d80a6b8ac2b8cf5cb607b7740c35e1b27
395
py
Python
yossarian/wsgi.py
avinassh/yossarian
b485da0669d87ad29f57ba2a4a446131aaf820a6
[ "MIT" ]
null
null
null
yossarian/wsgi.py
avinassh/yossarian
b485da0669d87ad29f57ba2a4a446131aaf820a6
[ "MIT" ]
null
null
null
yossarian/wsgi.py
avinassh/yossarian
b485da0669d87ad29f57ba2a4a446131aaf820a6
[ "MIT" ]
null
null
null
""" WSGI config for yossarian project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SET...
23.235294
78
0.787342
3e94d55aea2cad48dcf85e0a037a5db51e09e88a
30
py
Python
pcdet/version.py
Number1JT/PVRCNN-Waymo
60faa8ff6fe4532845719c144f0f9a252e85ddd2
[ "Apache-2.0" ]
null
null
null
pcdet/version.py
Number1JT/PVRCNN-Waymo
60faa8ff6fe4532845719c144f0f9a252e85ddd2
[ "Apache-2.0" ]
null
null
null
pcdet/version.py
Number1JT/PVRCNN-Waymo
60faa8ff6fe4532845719c144f0f9a252e85ddd2
[ "Apache-2.0" ]
null
null
null
__version__ = "0.2.0+fec61a4"
15
29
0.7
c286721a4d4fa0e489a7b57b8d834973606d72f7
765
py
Python
cms/migrations/0002_templateactivity.py
siruku6/life_recorder
1cda45144a2cef832e8b1ffb44894810cc096164
[ "MIT" ]
1
2021-05-08T10:04:20.000Z
2021-05-08T10:04:20.000Z
cms/migrations/0002_templateactivity.py
siruku6/life_recorder
1cda45144a2cef832e8b1ffb44894810cc096164
[ "MIT" ]
34
2021-02-23T09:00:24.000Z
2021-11-28T02:02:15.000Z
cms/migrations/0002_templateactivity.py
siruku6/life_recorder
1cda45144a2cef832e8b1ffb44894810cc096164
[ "MIT" ]
2
2021-05-03T10:16:48.000Z
2021-05-08T10:04:23.000Z
# Generated by Django 3.2.2 on 2021-05-09 06:27 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('cms', '0001_initial'), ] operations = [ migrations.CreateModel( name='TemplateActivity', ...
33.26087
187
0.633987
9998ddd9d03f7458e2af8c8e35093c180f1d24ee
268
py
Python
app/models/User.py
thekiharani/FlaskPlayground
9287431f431cc00a150b0759448b9e4ad64ad139
[ "MIT" ]
null
null
null
app/models/User.py
thekiharani/FlaskPlayground
9287431f431cc00a150b0759448b9e4ad64ad139
[ "MIT" ]
null
null
null
app/models/User.py
thekiharani/FlaskPlayground
9287431f431cc00a150b0759448b9e4ad64ad139
[ "MIT" ]
null
null
null
from datetime import datetime from app.app import db class User(db.Model): id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(255)) location = db.Column(db.String(255)) date_created = db.Column(db.DateTime, default=datetime.now)
26.8
63
0.716418
1a6dea0381ab8d43d2fdfaf641afbf77a20da64c
3,067
py
Python
byceps/blueprints/site/user/avatar/views.py
homeworkprod/byceps
cd0f9f37f7b5eb517106ec761acc7e0bdf75e22e
[ "BSD-3-Clause" ]
23
2015-08-03T23:28:54.000Z
2018-12-12T20:11:45.000Z
byceps/blueprints/site/user/avatar/views.py
homeworkprod/byceps
cd0f9f37f7b5eb517106ec761acc7e0bdf75e22e
[ "BSD-3-Clause" ]
1
2018-09-30T18:18:24.000Z
2018-09-30T18:18:24.000Z
byceps/blueprints/site/user/avatar/views.py
homeworkprod/byceps
cd0f9f37f7b5eb517106ec761acc7e0bdf75e22e
[ "BSD-3-Clause" ]
9
2015-08-06T16:41:36.000Z
2018-09-25T11:17:31.000Z
""" byceps.blueprints.site.user.avatar.views ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2014-2022 Jochen Kupperschmidt :License: Revised BSD (see `LICENSE` file for details) """ from flask import abort, g, request from flask_babel import gettext from .....services.image import service as image_service from...
26.669565
78
0.695468
2d00f4ac5da22f8c6bb46f76e5e845de9da3e5d0
29
py
Python
6-del.py
YpchenLove/py-example
88bef3ebe3e4045b09c9d2efcd6164c9cfb4c87f
[ "MIT" ]
null
null
null
6-del.py
YpchenLove/py-example
88bef3ebe3e4045b09c9d2efcd6164c9cfb4c87f
[ "MIT" ]
null
null
null
6-del.py
YpchenLove/py-example
88bef3ebe3e4045b09c9d2efcd6164c9cfb4c87f
[ "MIT" ]
null
null
null
obj = 5 print(obj) del obj
4.833333
10
0.62069
56ae84b9a24134a4d8397330f173a384b63e0802
3,180
py
Python
qa/rpc-tests/invalidateblock.py
L00119483/TechSquad.io
3ebafca95c5b125f3dbe52d9d4cde29c61a48975
[ "MIT" ]
4
2018-06-16T20:08:19.000Z
2018-08-22T15:44:58.000Z
qa/rpc-tests/invalidateblock.py
L00119483/TechSquad.io
3ebafca95c5b125f3dbe52d9d4cde29c61a48975
[ "MIT" ]
null
null
null
qa/rpc-tests/invalidateblock.py
L00119483/TechSquad.io
3ebafca95c5b125f3dbe52d9d4cde29c61a48975
[ "MIT" ]
7
2018-06-06T18:51:07.000Z
2018-09-08T15:17:04.000Z
#!/usr/bin/env python2 # Copyright (c) 2014-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. # # Test InvalidateBlock code # from test_framework import BitcoinTestFramework from bitcoinrpc.authprox...
41.298701
95
0.650314
b1b38a000e56a0d7333742ec7d111f17b908efe9
2,482
py
Python
kerlas/brain.py
imandr/KeRLas
8c347cbfea982f470372fb7cf8943f4d6bda8a8a
[ "BSD-3-Clause" ]
null
null
null
kerlas/brain.py
imandr/KeRLas
8c347cbfea982f470372fb7cf8943f4d6bda8a8a
[ "BSD-3-Clause" ]
null
null
null
kerlas/brain.py
imandr/KeRLas
8c347cbfea982f470372fb7cf8943f4d6bda8a8a
[ "BSD-3-Clause" ]
null
null
null
import numpy as np np.set_printoptions(precision=4, suppress=True) from keras.models import Model from keras.layers import Dense, Activation, Flatten, Input, Lambda from keras.optimizers import Adam class TrainingContext(object): def __init__(self, brain, in_traning): self.Brain = brain self...
31.417722
95
0.633763
d99483f759b8272439d79d0fe8391f44024ba461
27,361
py
Python
insights/parsers/lvm.py
akshay196/insights-core
598865e6563119089c77152599300de38a77c72c
[ "Apache-2.0" ]
null
null
null
insights/parsers/lvm.py
akshay196/insights-core
598865e6563119089c77152599300de38a77c72c
[ "Apache-2.0" ]
10
2018-04-16T15:38:04.000Z
2018-05-15T18:43:02.000Z
insights/parsers/lvm.py
akshay196/insights-core
598865e6563119089c77152599300de38a77c72c
[ "Apache-2.0" ]
null
null
null
""" Logical Volume Management configuration and status ================================================== Parsers for lvm data based on output of various commands and file contents. This module contains the classes that parse the output of the commands `lvs`, `pvs`, and `vgs`, and the contents of the file `/etc/lvm/l...
41.582067
251
0.526552