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
ad6d7da417555ea54e6ee28483afa72e65887941
2,188
py
Python
userbot/modules/wall.py
Ajibcdefgh/ProjectYrzzr
769844ecb57da00b8a43d5f872e4c3053da9cd02
[ "Naumen", "Condor-1.1", "MS-PL" ]
6
2021-01-10T13:51:35.000Z
2022-02-28T20:25:55.000Z
userbot/modules/wall.py
Ajibcdefgh/ProjectYrzzr
769844ecb57da00b8a43d5f872e4c3053da9cd02
[ "Naumen", "Condor-1.1", "MS-PL" ]
4
2021-12-19T22:45:50.000Z
2021-12-19T22:45:50.000Z
userbot/modules/wall.py
Ajibcdefgh/ProjectYrzzr
769844ecb57da00b8a43d5f872e4c3053da9cd02
[ "Naumen", "Condor-1.1", "MS-PL" ]
68
2020-11-04T14:22:09.000Z
2022-03-07T14:46:37.000Z
# Copyright (C) 2020 Alfiananda P.A # # Licensed under the General Public License, Version 3.0; # you may not use this file except in compliance with the License. # import asyncio import os from asyncio.exceptions import TimeoutError from telethon.errors.rpcerrorlist import YouBlockedUserError from userbot import CM...
34.730159
82
0.553931
a34baef7eef4d9300437b24419091554c232f1d2
7,419
py
Python
lmctl/client/client.py
manojn97/lmctl
844925cb414722351efac90cb97f10c1185eef7a
[ "Apache-2.0" ]
3
2021-07-19T09:46:01.000Z
2022-03-07T13:51:25.000Z
lmctl/client/client.py
manojn97/lmctl
844925cb414722351efac90cb97f10c1185eef7a
[ "Apache-2.0" ]
43
2019-08-27T12:36:29.000Z
2020-08-27T14:50:40.000Z
lmctl/client/client.py
manojn97/lmctl
844925cb414722351efac90cb97f10c1185eef7a
[ "Apache-2.0" ]
7
2020-09-22T20:32:17.000Z
2022-03-29T12:25:51.000Z
from .api import * from typing import Dict from urllib.parse import urlparse, urlencode from .exceptions import TNCOClientError, TNCOClientHttpError from .auth_type import AuthType from .auth_tracker import AuthTracker from .error_capture import tnco_error_capture from .client_test_result import TestResult, TestResults...
36.367647
122
0.672193
1d4073cf594565707c45cf6e1a2e921c9d032364
12,970
py
Python
server/views/user.py
Yunicorn228/web-tools
056d2d8310f3096c8be90638342bb3cc5715a89f
[ "Apache-2.0" ]
1
2021-07-18T13:08:09.000Z
2021-07-18T13:08:09.000Z
server/views/user.py
Yunicorn228/web-tools
056d2d8310f3096c8be90638342bb3cc5715a89f
[ "Apache-2.0" ]
null
null
null
server/views/user.py
Yunicorn228/web-tools
056d2d8310f3096c8be90638342bb3cc5715a89f
[ "Apache-2.0" ]
null
null
null
import logging from flask import jsonify, request, redirect, send_file import flask_login from mediacloud.error import MCException import tempfile import json import os import csv import io import zipfile from server import app, auth, mc, user_db from server.auth import user_mediacloud_client, user_name, user_is_admin...
41.70418
122
0.679029
25ef2c54dfa2392791f90e94ac69d4d2b872a092
1,969
py
Python
data/compute_budget.py
minorchange/co2_monitor_hd
9d91d3dcc8363c547a9040d9ea2c97d05cc82502
[ "MIT" ]
null
null
null
data/compute_budget.py
minorchange/co2_monitor_hd
9d91d3dcc8363c547a9040d9ea2c97d05cc82502
[ "MIT" ]
null
null
null
data/compute_budget.py
minorchange/co2_monitor_hd
9d91d3dcc8363c547a9040d9ea2c97d05cc82502
[ "MIT" ]
null
null
null
import os, sys import datetime from dateutil.relativedelta import relativedelta from data.read_data import read_budget def get_remaining_paris_budget(df): assert "co2_kt_total" in df.columns budget_start_year, budget_start_value_kt = read_budget() s_total = df["co2_kt_total"].dropna() s_measured_s...
32.278689
85
0.771965
dbbf7db9d3f992062ccce7c4d9e5a13cadec63c6
15,522
py
Python
tensorflow_probability/python/distributions/deterministic.py
nxdao2000/probability
33d2bc1cb0e7b6284579ea7f3692b9d056e0d700
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/distributions/deterministic.py
nxdao2000/probability
33d2bc1cb0e7b6284579ea7f3692b9d056e0d700
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/distributions/deterministic.py
nxdao2000/probability
33d2bc1cb0e7b6284579ea7f3692b9d056e0d700
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
34.802691
87
0.654555
e517d194b897be4daedda09aa4941aa79555c35a
10,125
py
Python
tests/test_validators_br.py
silexsistemas/validator-collection-br
5a6940a07c435e1f9f6c371d9c1d4187b0ada5d0
[ "MIT" ]
2
2020-10-07T19:14:15.000Z
2020-12-06T23:47:13.000Z
tests/test_validators_br.py
silexsistemas/validator-collection-br
5a6940a07c435e1f9f6c371d9c1d4187b0ada5d0
[ "MIT" ]
null
null
null
tests/test_validators_br.py
silexsistemas/validator-collection-br
5a6940a07c435e1f9f6c371d9c1d4187b0ada5d0
[ "MIT" ]
1
2020-06-29T13:02:22.000Z
2020-06-29T13:02:22.000Z
import pytest from validator_collection_br import validators_br, errors_br from validator_collection import errors # malformed_lawsuits_numbers = ['15201201038073', '19890010109053', '19970011037802', '1020857820138200000', '10514093820138200000', '0056758-98.2017', '0062436-28.2016.8.19.000', '0078346-55.2003''0078...
52.190722
3,134
0.659358
0486c127eb46f7a17b270de0daa55426d25b860e
1,670
py
Python
pincer/objects/message/emoji.py
MithicSpirit/Pincer
3e5aee5bc228a77caac59e07299d54e558b7f39d
[ "MIT" ]
1
2021-11-16T05:18:42.000Z
2021-11-16T05:18:42.000Z
pincer/objects/message/emoji.py
Seanpm2001-Discord/Pincer
a2c045f85f44712f3257e5cc50b3acacbd1302f9
[ "MIT" ]
1
2021-11-11T17:22:43.000Z
2021-11-11T17:22:43.000Z
pincer/objects/message/emoji.py
mCodingLLC/Pincer
29445067b438e11647cda2ae8294b38f0b2fbac8
[ "MIT" ]
null
null
null
# Copyright Pincer 2021-Present # Full MIT License can be found in `LICENSE` at the project root. from __future__ import annotations from dataclasses import dataclass from typing import TYPE_CHECKING from ...utils.api_object import APIObject from ...utils.types import MISSING if TYPE_CHECKING: from typing impor...
30.363636
74
0.697006
7c1a430e83d9efbe5cecf9a742ab29e61b978d17
2,690
py
Python
scripts/pylib/twister/scl.py
maxvankessel/zephyr
769d91b922b736860244b22e25328d91d9a17657
[ "Apache-2.0" ]
6,224
2016-06-24T20:04:19.000Z
2022-03-31T20:33:45.000Z
scripts/pylib/twister/scl.py
Conexiotechnologies/zephyr
fde24ac1f25d09eb9722ce4edc6e2d3f844b5bce
[ "Apache-2.0" ]
32,027
2017-03-24T00:02:32.000Z
2022-03-31T23:45:53.000Z
scripts/pylib/twister/scl.py
Conexiotechnologies/zephyr
fde24ac1f25d09eb9722ce4edc6e2d3f844b5bce
[ "Apache-2.0" ]
4,374
2016-08-11T07:28:47.000Z
2022-03-31T14:44:59.000Z
#! /usr/bin/python # # SPDX-License-Identifier: Apache-2.0 # Zephyr's Twister library # # pylint: disable=unused-import # # Set of code that other projects can also import to do things on # Zephyr's sanity check testcases. import logging import yaml try: # Use the C LibYAML parser if available, rather than the Pyt...
32.409639
94
0.688476
38d3957a421a2016185f669b27dba9414c7b2aa2
2,304
py
Python
IPython/qt/console/tests/test_kill_ring.py
pyarnold/ipython
c4797f7f069d0a974ddfa1e4251c7550c809dba0
[ "BSD-3-Clause-Clear" ]
1
2020-12-18T01:07:55.000Z
2020-12-18T01:07:55.000Z
IPython/qt/console/tests/test_kill_ring.py
pyarnold/ipython
c4797f7f069d0a974ddfa1e4251c7550c809dba0
[ "BSD-3-Clause-Clear" ]
null
null
null
IPython/qt/console/tests/test_kill_ring.py
pyarnold/ipython
c4797f7f069d0a974ddfa1e4251c7550c809dba0
[ "BSD-3-Clause-Clear" ]
null
null
null
# Standard library imports import unittest # System library imports from IPython.external.qt import QtGui # Local imports from IPython.qt.console.kill_ring import KillRing, QtKillRing import IPython.testing.decorators as dec setup = dec.skip_file_no_x11(__name__) class TestKillRing(unittest.TestCase): @classm...
25.88764
70
0.601563
984fed1da8014c70d629913fac59e209c0456bdf
7,604
py
Python
dex-net/apps/generate-dataset-canny.py
qingchenkanlu/PointNetGPD
636bcd1e6809c83baff7868df3d65502d4864a75
[ "MIT" ]
1
2020-04-14T16:09:59.000Z
2020-04-14T16:09:59.000Z
dex-net/apps/generate-dataset-canny.py
qingchenkanlu/PointNetGPD
636bcd1e6809c83baff7868df3d65502d4864a75
[ "MIT" ]
null
null
null
dex-net/apps/generate-dataset-canny.py
qingchenkanlu/PointNetGPD
636bcd1e6809c83baff7868df3d65502d4864a75
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Author : Hongzhuo Liang # E-mail : liang@informatik.uni-hamburg.de # Description: # Date : 20/05/2018 2:45 PM # File Name : generate-dataset-canny.py import numpy as np import sys import pickle from dexnet.grasping.quality import PointGraspMetrics3D from...
43.204545
120
0.621515
30a2e88a1fbb60eea5f999d0d86971889b711209
1,243
py
Python
shell/redirect.py
utep-cs-systems-courses/os-shell-jrlopez14
c109f6724947571aa8fd00200a8941f6c74f0b5d
[ "BSD-3-Clause" ]
null
null
null
shell/redirect.py
utep-cs-systems-courses/os-shell-jrlopez14
c109f6724947571aa8fd00200a8941f6c74f0b5d
[ "BSD-3-Clause" ]
null
null
null
shell/redirect.py
utep-cs-systems-courses/os-shell-jrlopez14
c109f6724947571aa8fd00200a8941f6c74f0b5d
[ "BSD-3-Clause" ]
1
2021-03-01T05:09:42.000Z
2021-03-01T05:09:42.000Z
#! /usr/bin/env python3 import os # Redirects command output to specified location # If True, redirections were handled properly, if any. def output_redirect(args): if '>' in args: goes_into_index = args.index('>') # Removes the redirection part of command. args.pop(goes_into_index) ...
30.317073
62
0.612228
78cab8e9572a918d95f93caa9c3e3a72ec6fd42f
10,853
py
Python
tests/theano/test_relations.py
josephwillard/symbolic-pymc
7bef08dd572c3ddc32ddc8e8e3c0b1809b4ce654
[ "Apache-2.0" ]
59
2019-02-16T21:07:48.000Z
2022-03-09T01:01:45.000Z
tests/theano/test_relations.py
josephwillard/symbolic-pymc
7bef08dd572c3ddc32ddc8e8e3c0b1809b4ce654
[ "Apache-2.0" ]
56
2019-02-20T09:06:04.000Z
2021-01-08T21:22:23.000Z
tests/theano/test_relations.py
josephwillard/symbolic-pymc
7bef08dd572c3ddc32ddc8e8e3c0b1809b4ce654
[ "Apache-2.0" ]
9
2019-02-22T06:22:31.000Z
2021-07-05T10:05:35.000Z
import pytest import numpy as np import theano import theano.tensor as tt from functools import partial from unification import var from etuples import etuple, etuplize from kanren import run, eq from kanren.core import lall from kanren.graph import reduceo, walko, applyo from symbolic_pymc.theano.meta import mt...
33.809969
100
0.668018
a6d983a2c74575f160470d1e0c188e34fbcfbc0c
74,892
py
Python
kubernetes/client/apis/coordination_v1beta1_api.py
iamneha/python
5b208a1a49a8d6f8bbab28bcc226b9ef793bcbd0
[ "Apache-2.0" ]
1
2019-02-17T15:28:39.000Z
2019-02-17T15:28:39.000Z
kubernetes/client/apis/coordination_v1beta1_api.py
iamneha/python
5b208a1a49a8d6f8bbab28bcc226b9ef793bcbd0
[ "Apache-2.0" ]
null
null
null
kubernetes/client/apis/coordination_v1beta1_api.py
iamneha/python
5b208a1a49a8d6f8bbab28bcc226b9ef793bcbd0
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.13.4 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import sys import os i...
67.653117
1,390
0.65975
58dca6fccff7907b7e38ed30dcf8e3df1f7fcfd7
11,075
py
Python
tensorflow/tools/pip_package/setup.py
ouakif/tensorflow
63c45aacf30e819b00e74b85bd1c9f11b0760cd3
[ "Apache-2.0" ]
3
2020-05-28T17:04:59.000Z
2021-10-20T12:47:18.000Z
tensorflow/tools/pip_package/setup.py
top-on/tensorflow
6efce9a74d4ba2ba2182d92ac1e4f144b5d755d2
[ "Apache-2.0" ]
3
2019-07-25T16:55:56.000Z
2019-08-01T23:44:31.000Z
tensorflow/tools/pip_package/setup.py
top-on/tensorflow
6efce9a74d4ba2ba2182d92ac1e4f144b5d755d2
[ "Apache-2.0" ]
3
2019-06-20T07:48:58.000Z
2021-05-29T12:25:11.000Z
# Copyright 2015 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...
35.957792
103
0.685147
0ca0258f2dfa763a10162001311e53e9f6caa4ee
3,682
py
Python
toontown/suit/SuitGlobals.py
MasterLoopyBM/Toontown
ebed7fc3f2ef06a529cf02eda7ab46361aceef9d
[ "MIT" ]
1
2020-02-07T18:15:12.000Z
2020-02-07T18:15:12.000Z
toontown/suit/SuitGlobals.py
TrueBlueDogemon/Toontown
ebed7fc3f2ef06a529cf02eda7ab46361aceef9d
[ "MIT" ]
null
null
null
toontown/suit/SuitGlobals.py
TrueBlueDogemon/Toontown
ebed7fc3f2ef06a529cf02eda7ab46361aceef9d
[ "MIT" ]
2
2020-11-08T03:38:35.000Z
2021-09-02T07:03:47.000Z
# SuitGlobals are used to set the appearance of Cogs. from toontown.suit import SuitDNA from pandac.PandaModules import VBase4 SCALE_INDEX = 0 # The scale of the cog HAND_COLOR_INDEX = 1 # The hand color HEADS_INDEX = 2 # A list of heads HEAD_TEXTURE_INDEX = 3 # The texture to use for the head HEIGHT_INDEX = 4 # The h...
66.945455
112
0.508691
5ba8e4b601c80a6cf857f8ee7a46f4a89888e4fc
8,682
py
Python
src/pruning/utils.py
MohammedAljahdali/shrinkbench
f08a0e27d7e1118a46605e5ec9026ecaa931365e
[ "MIT" ]
null
null
null
src/pruning/utils.py
MohammedAljahdali/shrinkbench
f08a0e27d7e1118a46605e5ec9026ecaa931365e
[ "MIT" ]
null
null
null
src/pruning/utils.py
MohammedAljahdali/shrinkbench
f08a0e27d7e1118a46605e5ec9026ecaa931365e
[ "MIT" ]
null
null
null
"""Auxiliary utils for implementing pruning strategies """ from collections import OrderedDict, defaultdict import numpy import torch from torch import nn from detectron2.structures.image_list import ImageList from detectron2.structures.instances import Instances def hook_applyfn(hook, model, forward=False, backwar...
34.047059
99
0.558973
5ab3fde5f29e9b64b2dcd4064fee075d3d89a765
10,144
py
Python
djangae/contrib/uniquetool/models.py
ikedaosushi/djangae
5fd2f8d70699fbbf155740effe42a36b205a6540
[ "BSD-3-Clause" ]
null
null
null
djangae/contrib/uniquetool/models.py
ikedaosushi/djangae
5fd2f8d70699fbbf155740effe42a36b205a6540
[ "BSD-3-Clause" ]
null
null
null
djangae/contrib/uniquetool/models.py
ikedaosushi/djangae
5fd2f8d70699fbbf155740effe42a36b205a6540
[ "BSD-3-Clause" ]
null
null
null
import datetime import logging from django.conf import settings from django.apps import apps from django.db import models, connections from django.dispatch import receiver from django.db.models.signals import post_save from django.utils import six from google.appengine.api import datastore from google.appengine.ext i...
38.424242
150
0.656743
7998657608a89de39ecf0470b034917607e85daf
2,826
py
Python
src/bitmessagekivy/tests/test_trash_message.py
Bitmessage/PyBitmessage
4421b4509caa49d0786b2e89ce8068170d877015
[ "MIT", "BSD-2-Clause-FreeBSD" ]
1,583
2015-01-01T13:03:20.000Z
2022-03-31T23:10:00.000Z
src/bitmessagekivy/tests/test_trash_message.py
Bitmessage/PyBitmessage
4421b4509caa49d0786b2e89ce8068170d877015
[ "MIT", "BSD-2-Clause-FreeBSD" ]
841
2015-01-01T14:51:48.000Z
2022-03-25T06:45:14.000Z
src/bitmessagekivy/tests/test_trash_message.py
Bitmessage/PyBitmessage
4421b4509caa49d0786b2e89ce8068170d877015
[ "MIT", "BSD-2-Clause-FreeBSD" ]
482
2015-01-07T00:53:25.000Z
2022-03-24T15:58:12.000Z
from .telenium_process import TeleniumTestProcess from .common import skip_screen_checks from .common import ordered class TrashMessage(TeleniumTestProcess): """Trash Screen Functionality Testing""" @skip_screen_checks @ordered def test_delete_trash_message(self): """Delete Trash message perm...
54.346154
100
0.668436
49ff16c4b485979ee35f59bc06e7ca34e0b7a947
1,604
py
Python
Python/Buch_ATBS/Teil_2/Kapitel_13_Arbeiten_mit_Word_und_PDF_Dokumenten/06_pdf_seiten_mit_bestimmtem_textinhalt_finden/06_pdf_seiten_mit_bestimmtem_textinhalt_finden.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
null
null
null
Python/Buch_ATBS/Teil_2/Kapitel_13_Arbeiten_mit_Word_und_PDF_Dokumenten/06_pdf_seiten_mit_bestimmtem_textinhalt_finden/06_pdf_seiten_mit_bestimmtem_textinhalt_finden.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
6
2020-12-24T15:15:09.000Z
2022-01-13T01:58:35.000Z
Python/Buch_ATBS/Teil_2/Kapitel_13_Arbeiten_mit_Word_und_PDF_Dokumenten/06_pdf_seiten_mit_bestimmtem_textinhalt_finden/06_pdf_seiten_mit_bestimmtem_textinhalt_finden.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
# 06_pdf_seiten_mit_bestimmtem_textinhalt_finden.py # Dieses Übungsscript soll alle PDF-Dateien eines Unterordners durchsuchen, diese Auslesen # und wenn eine Seite den gesuchten String enthält in ein neues File speichern. import os, PyPDF2, re os.chdir(os.path.dirname(__file__)) target_path='.\\search_me' target_fi...
34.12766
91
0.703865
52d0c6ae377038a2a14e3ab6ae3bfc9c2c72cd60
118
py
Python
figcow/__main__.py
donno2048/figcow
247608d4ee3ba4ed9064bf063940db8df712b325
[ "MIT" ]
null
null
null
figcow/__main__.py
donno2048/figcow
247608d4ee3ba4ed9064bf063940db8df712b325
[ "MIT" ]
null
null
null
figcow/__main__.py
donno2048/figcow
247608d4ee3ba4ed9064bf063940db8df712b325
[ "MIT" ]
null
null
null
from . import cow from sys import argv def main(): print(cow(" ".join(argv[1:]))) if __name__ == "__main__": main()
29.5
43
0.644068
508e3073d9f14ad9b2f078378ca993392b3938d6
134
py
Python
proxies/__init__.py
ivelinahristova/webanalysis
ff73b65799dc1465b9138a8742ea74b9da171c8d
[ "MIT" ]
null
null
null
proxies/__init__.py
ivelinahristova/webanalysis
ff73b65799dc1465b9138a8742ea74b9da171c8d
[ "MIT" ]
8
2021-04-10T17:55:31.000Z
2021-04-19T14:45:14.000Z
proxies/__init__.py
ivelinahristova/webanalysis
ff73b65799dc1465b9138a8742ea74b9da171c8d
[ "MIT" ]
null
null
null
""" proxies ~~~~~~~~~~~~~~~~~~ This module contains Proxies service to extract proxy data (user agenta, ips, etc). """
22.333333
62
0.544776
169c8c2393a919a3ae8c5434745fb9a9718c4669
67
py
Python
text/src/autogluon/text/__init__.py
mseeger/autogluon-1
e8d82363ce07fd8e3087bcdd2d71c6f6bd8fd7a0
[ "Apache-2.0" ]
null
null
null
text/src/autogluon/text/__init__.py
mseeger/autogluon-1
e8d82363ce07fd8e3087bcdd2d71c6f6bd8fd7a0
[ "Apache-2.0" ]
null
null
null
text/src/autogluon/text/__init__.py
mseeger/autogluon-1
e8d82363ce07fd8e3087bcdd2d71c6f6bd8fd7a0
[ "Apache-2.0" ]
null
null
null
from .text_classification import * from .text_prediction import *
16.75
34
0.80597
6364b09274c39e11bfe6951257f8713bcc837e32
204
py
Python
backend/server/apps/games/admin.py
SharyZ/gaming-dashboard-v2
e257371b651d67cd02615068ae05f0847c673a80
[ "MIT" ]
null
null
null
backend/server/apps/games/admin.py
SharyZ/gaming-dashboard-v2
e257371b651d67cd02615068ae05f0847c673a80
[ "MIT" ]
null
null
null
backend/server/apps/games/admin.py
SharyZ/gaming-dashboard-v2
e257371b651d67cd02615068ae05f0847c673a80
[ "MIT" ]
null
null
null
from django.contrib import admin from apps.games.models import Category from apps.games.models import Game # Register your models here. admin.site.register(Category) admin.site.register(Game)
20.4
39
0.77451
a0b9d6380f31de0dc7f896c9332383121696aa4e
1,747
py
Python
coursescan_calibrate.py
cdoolin/labtools
867a2726f5a707a8f5e698bf4a6bb4de40cfbe27
[ "MIT" ]
1
2021-06-07T16:51:09.000Z
2021-06-07T16:51:09.000Z
coursescan_calibrate.py
cdoolin/labtools
867a2726f5a707a8f5e698bf4a6bb4de40cfbe27
[ "MIT" ]
null
null
null
coursescan_calibrate.py
cdoolin/labtools
867a2726f5a707a8f5e698bf4a6bb4de40cfbe27
[ "MIT" ]
null
null
null
#!/usr/bin/env python #from numpy import * #from matplotlib.pyplot import * from time import sleep from datetime import datetime # use argparse module to read commandline options import argparse pars = argparse.ArgumentParser(description=""" scans newfocus piezo using lasernet. takes data at piezo offsets. """) pa...
21.8375
80
0.692044
c946b88ddb79a585b9dabd3268c97246ad8b4c11
131
py
Python
app/main/__init__.py
alphonce-otieno-odhiambo/BOLD-THOUGHTS
50683af21a77682c7f4fb27eef72eb72189d4a82
[ "MIT" ]
null
null
null
app/main/__init__.py
alphonce-otieno-odhiambo/BOLD-THOUGHTS
50683af21a77682c7f4fb27eef72eb72189d4a82
[ "MIT" ]
null
null
null
app/main/__init__.py
alphonce-otieno-odhiambo/BOLD-THOUGHTS
50683af21a77682c7f4fb27eef72eb72189d4a82
[ "MIT" ]
null
null
null
from flask import Blueprint from werkzeug.utils import format_string main = Blueprint('main', __name__) from . import views, forms
26.2
40
0.801527
ed1a9708f71dcac12d84ec6ea4e4a463809b90e7
9,059
py
Python
tpDcc/libs/datalibrary/dccs/maya/core/mirrortable.py
tpDcc/tpDcc-libs-datalibrary
e9678f3d6f0b3a5e0ee3a16d2e8d56627cfb2d54
[ "MIT" ]
null
null
null
tpDcc/libs/datalibrary/dccs/maya/core/mirrortable.py
tpDcc/tpDcc-libs-datalibrary
e9678f3d6f0b3a5e0ee3a16d2e8d56627cfb2d54
[ "MIT" ]
null
null
null
tpDcc/libs/datalibrary/dccs/maya/core/mirrortable.py
tpDcc/tpDcc-libs-datalibrary
e9678f3d6f0b3a5e0ee3a16d2e8d56627cfb2d54
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- """ Module that contains base mirror table data transfer object implementation for Maya """ from __future__ import print_function, division, absolute_import import re import logging import maya.cmds from tpDcc import dcc from tpDcc.libs.python import python, decorator...
36.676113
120
0.556242
e749573d3f72e34329e4365f90cb948132fb418c
10,424
py
Python
python/sklearn/linear-regression/workload-analysis/bench-gpu/post-process/roofline/roofline.py
lijiansong/lang
e255709da2b12e09dea45f86d54f77a19b96f13b
[ "WTFPL" ]
1
2020-01-09T03:22:09.000Z
2020-01-09T03:22:09.000Z
python/sklearn/linear-regression/workload-analysis/bench-gpu/post-process/roofline/roofline.py
lijiansong/lang
e255709da2b12e09dea45f86d54f77a19b96f13b
[ "WTFPL" ]
null
null
null
python/sklearn/linear-regression/workload-analysis/bench-gpu/post-process/roofline/roofline.py
lijiansong/lang
e255709da2b12e09dea45f86d54f77a19b96f13b
[ "WTFPL" ]
null
null
null
#!/usr/bin/env python3 from collections import OrderedDict import matplotlib import matplotlib.pyplot as plt import seaborn as sns; def extract_model_data(data_file_path, debug=True): data_file_reader = open(data_file_path, 'r') # key is net name, value is list of <batch size, gflops, intensity> tuples g...
42.897119
94
0.603799
c2bbe10404c1210fdf2eb272eeb77f1802c695aa
4,859
py
Python
Algo_Ds_Notes-master/Algo_Ds_Notes-master/Binary_Heap/BinaryHeap.py
rajatenzyme/Coding-Journey-
65a0570153b7e3393d78352e78fb2111223049f3
[ "MIT" ]
null
null
null
Algo_Ds_Notes-master/Algo_Ds_Notes-master/Binary_Heap/BinaryHeap.py
rajatenzyme/Coding-Journey-
65a0570153b7e3393d78352e78fb2111223049f3
[ "MIT" ]
null
null
null
Algo_Ds_Notes-master/Algo_Ds_Notes-master/Binary_Heap/BinaryHeap.py
rajatenzyme/Coding-Journey-
65a0570153b7e3393d78352e78fb2111223049f3
[ "MIT" ]
null
null
null
class BinaryHeap(): def __init__(self): # To enable 1-index based array operations self.heapData = [0] self.currentSize = 0 # If the min value is down in the tree, it needs to be bubbled up # to the proper position within the tree def bubbleUp(self, i): # check that i...
27.765714
84
0.596007
8de04caf07e90ac0f9c974eb8d08d7fd4cef3aca
19,022
py
Python
barak/fitcont.py
ntejos/Barak
1333dc1aa9ce9f5f339e3a0197523b4bdfa2dbbb
[ "BSD-3-Clause" ]
null
null
null
barak/fitcont.py
ntejos/Barak
1333dc1aa9ce9f5f339e3a0197523b4bdfa2dbbb
[ "BSD-3-Clause" ]
null
null
null
barak/fitcont.py
ntejos/Barak
1333dc1aa9ce9f5f339e3a0197523b4bdfa2dbbb
[ "BSD-3-Clause" ]
null
null
null
""" Functions and Classes used to fit an estimate of an unabsorbed continuum to a QSO spectrum. """ # p2.6+ compatibility from __future__ import division, print_function, unicode_literals try: unicode except NameError: unicode = basestring = str import numpy as np import matplotlib.pyplot as pl import matplot...
36.793037
95
0.535958
461449409c309f261d09444bfc794646f15726ad
12,774
py
Python
src/python/pants/base/deprecated.py
anthonyjpratti/pants
d98e53af6ddd877861231bce8343f8204da0a9d1
[ "Apache-2.0" ]
null
null
null
src/python/pants/base/deprecated.py
anthonyjpratti/pants
d98e53af6ddd877861231bce8343f8204da0a9d1
[ "Apache-2.0" ]
null
null
null
src/python/pants/base/deprecated.py
anthonyjpratti/pants
d98e53af6ddd877861231bce8343f8204da0a9d1
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import inspect import sys import warnings from contextlib import contextmanager from functools import wraps from typing import Callable, Iterator, Optional from packaging.version import I...
44.048276
104
0.732347
75a908d4fc83d64a620e82c23d539bd90fc65bba
5,281
py
Python
acme/acme/crypto_util_test.py
cybersimon/certbot
174e59486338b8f3e17300ef9937a3182e733ac7
[ "Apache-2.0" ]
2
2016-07-14T14:26:42.000Z
2016-10-04T04:52:21.000Z
acme/acme/crypto_util_test.py
cpu/certbot
9fead41aaf93dde0d36d4aef6fded8dd306c1ddc
[ "Apache-2.0" ]
null
null
null
acme/acme/crypto_util_test.py
cpu/certbot
9fead41aaf93dde0d36d4aef6fded8dd306c1ddc
[ "Apache-2.0" ]
null
null
null
"""Tests for acme.crypto_util.""" import itertools import socket import threading import time import unittest import six from six.moves import socketserver # pylint: disable=import-error import OpenSSL from acme import errors from acme import jose from acme import test_util class SSLSocketAndProbeSNITest(unittest...
34.97351
82
0.629426
f3db1fd8893381de62d48d92c978034dc161498d
11,675
py
Python
lib/bx/align/score.py
tweirick/bx-python
f16a57e9f0a133ab4d62aed6fec087b8ce4ec848
[ "MIT" ]
2
2021-01-19T00:36:14.000Z
2021-04-28T12:09:15.000Z
lib/bx/align/score.py
tweirick/bx-python
f16a57e9f0a133ab4d62aed6fec087b8ce4ec848
[ "MIT" ]
null
null
null
lib/bx/align/score.py
tweirick/bx-python
f16a57e9f0a133ab4d62aed6fec087b8ce4ec848
[ "MIT" ]
null
null
null
""" Support for scoring alignments using arbitrary scoring matrices, arbitrary alphabets, and affine gap penalties. """ from numpy import * class ScoringScheme( object ): # note that gap_open and gap_extend are penalties, which means you should make them positive def __init__( self, gap_open, gap_extend, default...
39.710884
189
0.554176
981e052816d53be8b67e9d9fdb80ab48ba6fc2d5
632
py
Python
core.py
Serubin/Mangler
9f53b464f86dcefc00d72346f369672f9e947119
[ "MIT" ]
1
2016-09-30T21:14:53.000Z
2016-09-30T21:14:53.000Z
core.py
Serubin/Mangler
9f53b464f86dcefc00d72346f369672f9e947119
[ "MIT" ]
1
2018-01-04T04:06:45.000Z
2018-01-04T04:06:45.000Z
core.py
Serubin/Mangler
9f53b464f86dcefc00d72346f369672f9e947119
[ "MIT" ]
1
2019-01-21T17:37:03.000Z
2019-01-21T17:37:03.000Z
from flask import Flask from flask_restful import Resource, Api VERSION = "0.0.1-dev" VERSION_HASH = "" app = Flask(__name__) api = Api(app) class Index(Resource): """ Index Handler """ def get(self): return {'code': '200', 'version': getVersionHash()} api.add_resource(HelloWorld, '/') def APIRes...
18.588235
81
0.618671
fa16296e7efb8962668df664d8de97a90be4a713
277
py
Python
imdb/imdb_prediction_hook.py
iterait/cxflow-examples
e1c8e5a5e0cfe3abe92971748ac7f2c2a3673823
[ "MIT" ]
null
null
null
imdb/imdb_prediction_hook.py
iterait/cxflow-examples
e1c8e5a5e0cfe3abe92971748ac7f2c2a3673823
[ "MIT" ]
3
2019-09-06T11:37:18.000Z
2019-09-10T11:01:07.000Z
imdb/imdb_prediction_hook.py
iterait/emloop-examples
e1c8e5a5e0cfe3abe92971748ac7f2c2a3673823
[ "MIT" ]
null
null
null
import emloop as el class IMDBPredict(el.AbstractHook): SENTIMENTS = {0: 'negative', 1: 'positive'} def after_batch(self, stream_name, batch_data): print('Predicted sentiment: {}'.format(IMDBPredict.SENTIMENTS[batch_data['predictions'][0]])) print()
27.7
101
0.685921
704db6abc3a7e48adac659ac55d7a7027c0113f6
2,012
py
Python
test/lazy/test_matmul_lazy_tensor.py
beyucel/gpytorch
a5394937495756945b831d83035349579d8fac31
[ "MIT" ]
2
2019-04-19T00:35:49.000Z
2019-04-19T02:51:49.000Z
test/lazy/test_matmul_lazy_tensor.py
beyucel/gpytorch
a5394937495756945b831d83035349579d8fac31
[ "MIT" ]
null
null
null
test/lazy/test_matmul_lazy_tensor.py
beyucel/gpytorch
a5394937495756945b831d83035349579d8fac31
[ "MIT" ]
1
2019-05-10T17:52:39.000Z
2019-05-10T17:52:39.000Z
#!/usr/bin/env python3 import torch import unittest from gpytorch.lazy import MatmulLazyTensor from test.lazy._lazy_tensor_test_case import LazyTensorTestCase, RectangularLazyTensorTestCase class TestMatmulLazyTensor(LazyTensorTestCase, unittest.TestCase): seed = 1 def create_lazy_tensor(self): lhs ...
34.101695
98
0.732604
5591dda0a88ab308eda740c775a0b62f83be49ff
127
py
Python
clusterking/maths/__init__.py
celis/B_decays_clustering-
d73739edaf7fa82a0041d9567d27cd490232b75c
[ "MIT" ]
9
2019-03-27T12:32:24.000Z
2021-10-19T10:18:33.000Z
clusterking/maths/__init__.py
celis/B_decays_clustering-
d73739edaf7fa82a0041d9567d27cd490232b75c
[ "MIT" ]
30
2019-03-26T18:32:39.000Z
2019-09-24T06:54:28.000Z
clusterking/maths/__init__.py
celis/B_decays_clustering-
d73739edaf7fa82a0041d9567d27cd490232b75c
[ "MIT" ]
2
2019-08-08T09:42:38.000Z
2019-12-29T22:47:05.000Z
#!/usr/bin/env python3 from clusterking.maths.binning import bin_function # from bclustering.maths.metric import chi2_metric
21.166667
50
0.818898
02dcb0f69722cb6943fda4ff27002bce9ab49b85
21,441
py
Python
SiO2/SiO2_fun.py
bcaplins/NIST_APT_TOOLS
80c25498e8b069b8ee289a2d09c76c932c054cea
[ "Unlicense" ]
null
null
null
SiO2/SiO2_fun.py
bcaplins/NIST_APT_TOOLS
80c25498e8b069b8ee289a2d09c76c932c054cea
[ "Unlicense" ]
null
null
null
SiO2/SiO2_fun.py
bcaplins/NIST_APT_TOOLS
80c25498e8b069b8ee289a2d09c76c932c054cea
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed May 6 12:58:24 2020 @author: capli """ import colorcet as cc import numpy as np import matplotlib.pyplot as plt import matplotlib def extents(f): delta = f[1] - f[0] return [f[0] - delta/2, f[-1] + delta/2] def create_histogram(xs,ys,x_roi=None,y_roi=None,num_x=12...
31.764444
128
0.581409
a9be3bded6bf4922dde9497c0d7aab0797d7c949
111
py
Python
src/gunicorn.conf.py
gixproject/esbook
407a99bbe1625c32e5ed889e25b13f69e75b529b
[ "Apache-2.0" ]
null
null
null
src/gunicorn.conf.py
gixproject/esbook
407a99bbe1625c32e5ed889e25b13f69e75b529b
[ "Apache-2.0" ]
null
null
null
src/gunicorn.conf.py
gixproject/esbook
407a99bbe1625c32e5ed889e25b13f69e75b529b
[ "Apache-2.0" ]
null
null
null
import multiprocessing bind = "0.0.0.0:5000" workers = multiprocessing.cpu_count() * 2 + 1 loglevel = "DEBUG"
18.5
45
0.711712
9c2446b90a0c44ff8d997500e946c76cd7c14ddb
66
py
Python
analysis/__init__.py
mmmaaaggg/QABAT
d6f20d926de047af6857e466cf28084d0ba69993
[ "MIT" ]
3
2019-08-31T18:01:10.000Z
2021-04-04T09:51:17.000Z
analysis/__init__.py
mmmaaaggg/QABAT
d6f20d926de047af6857e466cf28084d0ba69993
[ "MIT" ]
null
null
null
analysis/__init__.py
mmmaaaggg/QABAT
d6f20d926de047af6857e466cf28084d0ba69993
[ "MIT" ]
1
2020-08-15T17:04:14.000Z
2020-08-15T17:04:14.000Z
# -*- coding: utf-8 -*- """ Created on 2018/1/14 @author: MG """
9.428571
23
0.515152
1563de75ac5a7f7e9e2820e0358700d4f73a4864
1,831
py
Python
arch/fileio.py
decagondev/CS_41_long
33cac89c62316943fc539dfe828c386aa1a152ea
[ "MIT" ]
null
null
null
arch/fileio.py
decagondev/CS_41_long
33cac89c62316943fc539dfe828c386aa1a152ea
[ "MIT" ]
null
null
null
arch/fileio.py
decagondev/CS_41_long
33cac89c62316943fc539dfe828c386aa1a152ea
[ "MIT" ]
6
2021-03-08T17:09:42.000Z
2021-03-11T21:58:59.000Z
import sys LDI = 0b10000010 PRN = 0b01000111 HLT = 0b00000001 program = [] if len(sys.argv) < 2: print("Usage: fileio.py <filename>") else: try: # store the first argument as a file name file_name = sys.argv[1] # open the file using the `open()` function with open(file_name) as...
36.62
110
0.500819
2ad5dc8760ebfcfafc20bf8375d386d7d48dd363
6,714
py
Python
electrum/gui/kivy/uix/dialogs/crash_reporter.py
qmutz/electrum
387834164cb28a0853d98f609491bab74d1c0975
[ "MIT" ]
1
2019-05-02T21:46:30.000Z
2019-05-02T21:46:30.000Z
electrum/gui/kivy/uix/dialogs/crash_reporter.py
qmutz/electrum
387834164cb28a0853d98f609491bab74d1c0975
[ "MIT" ]
1
2021-11-15T17:52:18.000Z
2021-11-15T17:52:18.000Z
electrum/gui/kivy/uix/dialogs/crash_reporter.py
qmutz/electrum
387834164cb28a0853d98f609491bab74d1c0975
[ "MIT" ]
null
null
null
import sys import json from aiohttp.client_exceptions import ClientError from kivy import base, utils from kivy.clock import Clock from kivy.core.window import Window from kivy.factory import Factory from kivy.lang import Builder from kivy.uix.label import Label from kivy.utils import platform from electrum.gui.kivy....
33.57
99
0.616324
a30cbe09e8de370961e20751bc850ba8aa045eaf
5,608
py
Python
venv/Lib/site-packages/googlemaps/distance_matrix.py
star10919/drf
77c005794087484d72ffc0d76612a6ac9845821e
[ "BSD-3-Clause" ]
3,797
2015-01-08T05:42:35.000Z
2022-03-30T11:45:13.000Z
venv/Lib/site-packages/googlemaps/distance_matrix.py
star10919/drf
77c005794087484d72ffc0d76612a6ac9845821e
[ "BSD-3-Clause" ]
344
2015-01-09T05:39:11.000Z
2022-03-22T07:08:56.000Z
venv/Lib/site-packages/googlemaps/distance_matrix.py
star10919/drf
77c005794087484d72ffc0d76612a6ac9845821e
[ "BSD-3-Clause" ]
1,368
2015-01-08T13:04:52.000Z
2022-03-29T13:13:31.000Z
# # Copyright 2014 Google 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
40.057143
86
0.692582
65405a6fdc75626bc9d147fbe8553b612414bc7e
1,842
py
Python
setup.py
360youlun/django-nose
8420dfa01d5ebbc76abe53ced1efcd46d20454e2
[ "BSD-3-Clause" ]
null
null
null
setup.py
360youlun/django-nose
8420dfa01d5ebbc76abe53ced1efcd46d20454e2
[ "BSD-3-Clause" ]
null
null
null
setup.py
360youlun/django-nose
8420dfa01d5ebbc76abe53ced1efcd46d20454e2
[ "BSD-3-Clause" ]
null
null
null
import os from setuptools import setup, find_packages ROOT = os.path.abspath(os.path.dirname(__file__)) setup( name='django-nose', version='1.7', description='Makes your Django tests simple and snappy', long_description=open(os.path.join(ROOT, 'README.rst')).read(), author='Jeff Balogh', auth...
38.375
79
0.658523
23a3bc56044e3a2c98d2b3ccb0d103de21a1b677
541
py
Python
students/K33402/Khoroshkeeva_Ksenia/LR1/task_2/server.py
KseniaKhoroshkeeva/ITMO_ICT_WebDevelopment_2021-2022
59cda23fcd82f031dc1504d7f5abdae9e1f458c5
[ "MIT" ]
null
null
null
students/K33402/Khoroshkeeva_Ksenia/LR1/task_2/server.py
KseniaKhoroshkeeva/ITMO_ICT_WebDevelopment_2021-2022
59cda23fcd82f031dc1504d7f5abdae9e1f458c5
[ "MIT" ]
null
null
null
students/K33402/Khoroshkeeva_Ksenia/LR1/task_2/server.py
KseniaKhoroshkeeva/ITMO_ICT_WebDevelopment_2021-2022
59cda23fcd82f031dc1504d7f5abdae9e1f458c5
[ "MIT" ]
null
null
null
import socket # Создание сервера conn = socket.socket(socket.AF_INET, socket.SOCK_STREAM) conn.bind(("127.0.0.1", 5000)) conn.listen(10) # Прием подключения sock, address = conn.accept() # Получение сообщения и разделение на числа data = sock.recv(16384) a, b, h = data.decode("utf-8").split() # Нахождение площади т...
20.037037
56
0.702403
f886a9006c0d886881ffe5c1cd38a5a0193e0874
1,897
py
Python
ietf/group/migrations/0014_set_document_m2m_keys.py
hassanakbar4/ietfdb
cabee059092ae776015410640226064331c293b7
[ "BSD-3-Clause" ]
25
2022-03-05T08:26:52.000Z
2022-03-30T15:45:42.000Z
ietf/group/migrations/0014_set_document_m2m_keys.py
hassanakbar4/ietfdb
cabee059092ae776015410640226064331c293b7
[ "BSD-3-Clause" ]
219
2022-03-04T17:29:12.000Z
2022-03-31T21:16:14.000Z
ietf/group/migrations/0014_set_document_m2m_keys.py
hassanakbar4/ietfdb
cabee059092ae776015410640226064331c293b7
[ "BSD-3-Clause" ]
22
2022-03-04T15:34:34.000Z
2022-03-28T13:30:59.000Z
# Copyright The IETF Trust 2019-2020, All Rights Reserved # -*- coding: utf-8 -*- # Generated by Django 1.11.20 on 2019-05-10 06:48 import sys from tqdm import tqdm from django.db import migrations def forward(apps, schema_editor): Document = apps.get_model('doc','Document') GroupMiles...
32.706897
112
0.636268
429c53a3a334a95b37c4352ce83c2fa946386bed
199
py
Python
molsysmt/item/molsysmt_MolecularMechanics/is_molsysmt_MolecularMechanics.py
uibcdf/MolModMTs
4f6b6f671a9fa3e73008d1e9c48686d5f20a6573
[ "MIT" ]
null
null
null
molsysmt/item/molsysmt_MolecularMechanics/is_molsysmt_MolecularMechanics.py
uibcdf/MolModMTs
4f6b6f671a9fa3e73008d1e9c48686d5f20a6573
[ "MIT" ]
null
null
null
molsysmt/item/molsysmt_MolecularMechanics/is_molsysmt_MolecularMechanics.py
uibcdf/MolModMTs
4f6b6f671a9fa3e73008d1e9c48686d5f20a6573
[ "MIT" ]
null
null
null
def is_molsysmt_MolecularMechanics(item): item_fullname = item.__class__.__module__+'.'+item.__class__.__name__ output = (item_fullname == 'molsysmt.MolecularMechanics') return output
24.875
73
0.758794
76efbd76f0b9dc9089d4407ff533e1d46ea3eaff
5,944
py
Python
src/engine/SCons/Tool/textfile.py
bdbaddog/scons-gh-migrate
c76589c83ec00650a2d07dce79fc6dc5ca6465fb
[ "MIT" ]
null
null
null
src/engine/SCons/Tool/textfile.py
bdbaddog/scons-gh-migrate
c76589c83ec00650a2d07dce79fc6dc5ca6465fb
[ "MIT" ]
null
null
null
src/engine/SCons/Tool/textfile.py
bdbaddog/scons-gh-migrate
c76589c83ec00650a2d07dce79fc6dc5ca6465fb
[ "MIT" ]
null
null
null
# -*- python -*- # # __COPYRIGHT__ # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, # dis...
33.772727
79
0.664536
4904c812edb61f18a2ffe5ee678e5a34d4634f8d
1,004
py
Python
samples/ch04/a4_6_2.py
fengyc/programming-pearls-2nd-python
6a91f768ed69a4d57d8201f929d2860d06b371ed
[ "Apache-2.0" ]
12
2016-11-02T15:59:36.000Z
2021-09-11T00:11:40.000Z
samples/ch04/a4_6_2.py
love112358/programming-pearls-2nd-python
6a91f768ed69a4d57d8201f929d2860d06b371ed
[ "Apache-2.0" ]
null
null
null
samples/ch04/a4_6_2.py
love112358/programming-pearls-2nd-python
6a91f768ed69a4d57d8201f929d2860d06b371ed
[ "Apache-2.0" ]
4
2018-11-08T01:38:16.000Z
2021-05-26T02:34:26.000Z
# -*- coding:utf-8 -*- # # 二分搜索,并返回第一个匹配的数据 # # 输入数据 data 从小到大排序 # # 关键在于对 data[middle] == t 时的处理,需要再次计算 low 与 middle 中间的值 data[q] # 来确定下一步的调整:data[q] < t 时,low = q ; data[q] == t 时,height = q 。然后 # 继续查找 t ,直到第一次出现的位置。 # def binary_search_first(data, t): """ 二分搜索,返回第一个匹配数据的下标 """ low = 0 high = len(data)...
20.916667
65
0.501992
7104121d2983f9ec313266482def67a5b0748c34
125,779
py
Python
tests/test_x509_ext.py
E-Tahta/python-cryptography
d2d82b41877ba3ae04210aa64f7c81540dd0d31a
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
tests/test_x509_ext.py
E-Tahta/python-cryptography
d2d82b41877ba3ae04210aa64f7c81540dd0d31a
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
tests/test_x509_ext.py
E-Tahta/python-cryptography
d2d82b41877ba3ae04210aa64f7c81540dd0d31a
[ "Apache-2.0", "BSD-3-Clause" ]
1
2019-01-23T04:08:17.000Z
2019-01-23T04:08:17.000Z
# This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. from __future__ import absolute_import, division, print_function import binascii import datetime import ipaddress import os import pytest...
34.25354
79
0.571797
1c877b91fbbaff27fa67c77410239a088bdb13a9
1,068
py
Python
guillotina/auth/role.py
rboixaderg/guillotina
fcae65c2185222272f3b8fee4bc2754e81e0e983
[ "BSD-2-Clause" ]
173
2017-03-10T18:26:12.000Z
2022-03-03T06:48:56.000Z
guillotina/auth/role.py
rboixaderg/guillotina
fcae65c2185222272f3b8fee4bc2754e81e0e983
[ "BSD-2-Clause" ]
921
2017-03-08T14:04:43.000Z
2022-03-30T10:28:56.000Z
guillotina/auth/role.py
rboixaderg/guillotina
fcae65c2185222272f3b8fee4bc2754e81e0e983
[ "BSD-2-Clause" ]
60
2017-03-16T19:59:44.000Z
2022-03-03T06:48:59.000Z
from guillotina._settings import app_settings from guillotina.component import get_utilities_for from guillotina.interfaces import IRole from zope.interface import implementer @implementer(IRole) class Role(object): def __init__(self, id, title, description="", local=True): self.id = id self.title...
29.666667
79
0.712547
4b3e935426f9f1d79b91b7301b5cd6725960fb54
58,611
py
Python
python/paddle/fluid/tests/unittests/test_var_base.py
xiaoyangyang2/Paddle
b1a4668c5ff39e44efcfea46d567a5c398fdf3dc
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/tests/unittests/test_var_base.py
xiaoyangyang2/Paddle
b1a4668c5ff39e44efcfea46d567a5c398fdf3dc
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/tests/unittests/test_var_base.py
xiaoyangyang2/Paddle
b1a4668c5ff39e44efcfea46d567a5c398fdf3dc
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2018 PaddlePaddle 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 app...
42.105603
151
0.570951
8363e61526ce20b4aa92f9a5bd946030ec43186d
4,716
py
Python
MultiverseClient/Scripts/SoundSource.py
dmacka/MultiverseClientServer
b64d7d754a0b2b1a3e5acabd4d6ebb80ab1d9379
[ "MIT" ]
5
2020-04-29T19:14:57.000Z
2022-02-18T08:48:37.000Z
MultiverseClient/Scripts/SoundSource.py
dmacka/MultiverseClientServer
b64d7d754a0b2b1a3e5acabd4d6ebb80ab1d9379
[ "MIT" ]
null
null
null
MultiverseClient/Scripts/SoundSource.py
dmacka/MultiverseClientServer
b64d7d754a0b2b1a3e5acabd4d6ebb80ab1d9379
[ "MIT" ]
2
2021-03-09T06:53:30.000Z
2021-03-27T12:02:39.000Z
# # # The Multiverse Platform is made available under the MIT License. # # Copyright (c) 2012 The Multiverse Foundation # # 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 restri...
34.173913
318
0.692748
e31cf8348806c3d7956f8f1f14f90d9032a86f55
11,382
py
Python
vgg16/50/mytest.py
aiiuii/AutoPruner
93627070ed08d00160bad14e20660cddc6ff0e8d
[ "MIT" ]
19
2020-08-09T15:08:41.000Z
2021-12-28T06:46:54.000Z
vgg16/50/mytest.py
aiiuii/AutoPruner
93627070ed08d00160bad14e20660cddc6ff0e8d
[ "MIT" ]
1
2021-07-22T05:51:19.000Z
2021-07-22T05:51:19.000Z
vgg16/50/mytest.py
aiiuii/AutoPruner
93627070ed08d00160bad14e20660cddc6ff0e8d
[ "MIT" ]
5
2020-10-21T08:47:13.000Z
2022-02-11T11:02:51.000Z
# ************************************************************ # Author : Bumsoo Kim, 2017 # Github : https://github.com/meliketoy/fine-tuning.pytorch # # Korea University, Data-Mining Lab # Deep Convolutional Network Fine tuning Implementation # # Description : main.py # The main code for training classification netwo...
38.846416
120
0.613073
3345486131823fdf5062d784ce2823a262e10bca
334
py
Python
frappe_testing/config/docs.py
Abadulrehman/frappe_testing
3aea7f68da4d567eeb3e76bf8f2656c29a61940d
[ "MIT" ]
1
2021-12-15T06:04:34.000Z
2021-12-15T06:04:34.000Z
frappe_testing/config/docs.py
Abadulrehman/frappe_testing
3aea7f68da4d567eeb3e76bf8f2656c29a61940d
[ "MIT" ]
null
null
null
frappe_testing/config/docs.py
Abadulrehman/frappe_testing
3aea7f68da4d567eeb3e76bf8f2656c29a61940d
[ "MIT" ]
null
null
null
""" Configuration for docs """ # source_link = "https://github.com/[org_name]/frappe_testing" # docs_base_url = "https://[org_name].github.io/frappe_testing" # headline = "App that does everything" # sub_heading = "Yes, you got that right the first time, everything" def get_context(context): context.brand_html = "Fr...
27.833333
68
0.736527
8af78292e6562a9e8ea2a7c77104d877cf219543
1,554
py
Python
testing/scripts/e2e_utils/install.py
glindsell/seldon-core
a6992832b74ed71bbd3a91c48b5a79a5cee785b2
[ "Apache-2.0" ]
1
2020-07-14T15:42:41.000Z
2020-07-14T15:42:41.000Z
testing/scripts/e2e_utils/install.py
glindsell/seldon-core
a6992832b74ed71bbd3a91c48b5a79a5cee785b2
[ "Apache-2.0" ]
231
2020-08-10T08:38:42.000Z
2021-08-02T20:56:49.000Z
testing/scripts/e2e_utils/install.py
glindsell/seldon-core
a6992832b74ed71bbd3a91c48b5a79a5cee785b2
[ "Apache-2.0" ]
null
null
null
import os from sh import helm, kubectl SC_ROOT_PATH = os.path.abspath( os.path.join( __file__, os.path.pardir, os.path.pardir, os.path.pardir, os.path.pardir ) ) HELM_CHARTS_PATH = os.path.join(SC_ROOT_PATH, "helm-charts") SC_NAME = "seldon" SC_NAMESPACE = "seldon-system" def install_seldon(name=SC...
25.064516
86
0.65444
8c5f0ae49901556a71833bab35ed08f4d7ed6797
2,786
py
Python
code/deeprt/py/peprt/trainer.py
omidroshani/DeepDIA
2af96056a62a49ff6ff10b6e176f0fba3f495843
[ "BSD-3-Clause" ]
25
2020-01-09T18:30:57.000Z
2021-12-25T20:09:40.000Z
code/deeprt/py/peprt/trainer.py
omidroshani/DeepDIA
2af96056a62a49ff6ff10b6e176f0fba3f495843
[ "BSD-3-Clause" ]
2
2020-10-19T14:28:41.000Z
2021-11-15T18:46:15.000Z
code/deeprt/py/peprt/trainer.py
omidroshani/DeepDIA
2af96056a62a49ff6ff10b6e176f0fba3f495843
[ "BSD-3-Clause" ]
14
2020-01-24T14:44:46.000Z
2022-02-24T12:37:33.000Z
from . import models import numpy as np import pandas as pd from keras.callbacks import EarlyStopping, ModelCheckpoint, CSVLogger from keras.models import load_model def data_to_tensors(data, rt_min=-50, rt_max=150): peptides = data[["sequence"]].values.flatten() rt = data[["irt"]].values x = models.p...
35.717949
150
0.646088
3affbff28a7caff056ce24385db9cb96ab7b19b6
1,574
py
Python
sme_financing/main/models/client.py
BuildForSDG/team-214-backend
f1aff9c27d7b7588b4bbb2bc68956b35051d4506
[ "MIT" ]
1
2020-05-20T16:32:33.000Z
2020-05-20T16:32:33.000Z
sme_financing/main/models/client.py
BuildForSDG/team-214-backend
f1aff9c27d7b7588b4bbb2bc68956b35051d4506
[ "MIT" ]
23
2020-05-19T07:12:53.000Z
2020-06-21T03:57:54.000Z
sme_financing/main/models/client.py
BuildForSDG/team-214-backend
f1aff9c27d7b7588b4bbb2bc68956b35051d4506
[ "MIT" ]
1
2020-05-18T14:18:12.000Z
2020-05-18T14:18:12.000Z
from datetime import datetime from enum import Enum from .. import db class EducationLevel(Enum): doctorate_degree = "Doctorate Degree" masters_degree = "Masters Degree" bachelors_degree = "Bachelors Degree" hnd = "HND" class Client(db.Model): """Client Model for storing client related details....
34.977778
86
0.696315
133e63b44b555b4763787888feeeb54ec133b168
637
py
Python
nengo_loihi/tests/__init__.py
Michaeljurado24/nengo-loihi
47a18efcda3324f74493d014b431cfd0e5b9fbe2
[ "Apache-2.0" ]
null
null
null
nengo_loihi/tests/__init__.py
Michaeljurado24/nengo-loihi
47a18efcda3324f74493d014b431cfd0e5b9fbe2
[ "Apache-2.0" ]
null
null
null
nengo_loihi/tests/__init__.py
Michaeljurado24/nengo-loihi
47a18efcda3324f74493d014b431cfd0e5b9fbe2
[ "Apache-2.0" ]
null
null
null
import nengo_loihi def make_test_sim(request): """A Simulator factory to be used in tests. The factory allows simulator arguments to be controlled via pytest command line arguments. This is used in the ``conftest.Simulator`` fixture, or can be be passed to the ``nengo_simloader`` option when run...
28.954545
83
0.692308
13a4c86b450be363fb11fb9dedb49233e33d678c
12,001
py
Python
pyNastran/dev/op2_reader/tables/oes_stressStrain/real/oes_triax.py
jtran10/pyNastran
4aed8e05b91576c2b50ee835f0497a9aad1d2cb0
[ "BSD-3-Clause" ]
null
null
null
pyNastran/dev/op2_reader/tables/oes_stressStrain/real/oes_triax.py
jtran10/pyNastran
4aed8e05b91576c2b50ee835f0497a9aad1d2cb0
[ "BSD-3-Clause" ]
null
null
null
pyNastran/dev/op2_reader/tables/oes_stressStrain/real/oes_triax.py
jtran10/pyNastran
4aed8e05b91576c2b50ee835f0497a9aad1d2cb0
[ "BSD-3-Clause" ]
null
null
null
from __future__ import (nested_scopes, generators, division, absolute_import, print_function, unicode_literals) from itertools import count from six import integer_types import numpy as np from numpy import zeros, searchsorted, ravel ints = (int, np.int32) from pyNastran.op2.tables.oes_stressSt...
44.121324
135
0.558787
10bd12ba41f5834c3e1092ad668a00a69acf4f56
1,022
py
Python
migrations/0082_auto_20200324_1646.py
audaciouscode/PassiveDataKit-Django
ed1e00c436801b9f49a3e0e6657c2adb6b2ba3d4
[ "Apache-2.0" ]
5
2016-01-26T19:19:44.000Z
2018-12-12T18:04:04.000Z
migrations/0082_auto_20200324_1646.py
audacious-software/PassiveDataKit-Django
da91a375c075ceec938f2c9bb6b011f9f019b024
[ "Apache-2.0" ]
6
2020-02-17T20:16:28.000Z
2021-12-13T21:51:20.000Z
migrations/0082_auto_20200324_1646.py
audacious-software/PassiveDataKit-Django
da91a375c075ceec938f2c9bb6b011f9f019b024
[ "Apache-2.0" ]
4
2020-01-29T15:36:58.000Z
2021-06-01T18:55:26.000Z
# pylint: skip-file # -*- coding: utf-8 -*- # Generated by Django 1.11.28 on 2020-03-24 20:46 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('passive_data_kit', '0081_auto_20200227_0918'), ] operations = [ migrations.AlterField( ...
32.967742
333
0.625245
1c9a8d41ba6271426bd641dd487e7519676c71d9
344
py
Python
zoo/public/hrnet/hrnet_w18.py
megvii-research/basecls
6b395a0a888370b4523764afb78a5a7634a3f6cd
[ "Apache-2.0" ]
23
2021-12-08T02:35:01.000Z
2022-03-16T02:23:19.000Z
zoo/public/hrnet/hrnet_w18.py
megvii-research/basecls
6b395a0a888370b4523764afb78a5a7634a3f6cd
[ "Apache-2.0" ]
4
2021-12-23T11:31:17.000Z
2022-02-28T01:35:31.000Z
zoo/public/hrnet/hrnet_w18.py
megvii-research/basecls
6b395a0a888370b4523764afb78a5a7634a3f6cd
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2021 Megvii Inc. All rights reserved. from basecls.configs import HRNetConfig _cfg = dict( model=dict( name="hrnet_w18", ), ) class Cfg(HRNetConfig): def __init__(self, values_or_file=None, **kwargs): super().__init__(_cfg) self.merge(va...
21.5
58
0.665698
b6981970a55f1f8f442b1f3b0a3b108c073bbf13
9,589
py
Python
pureport_client/commands/accounts/__init__.py
ellievaughn/pureport-python-client
e0c80c7200549723820169da3d137dd771be3f11
[ "MIT" ]
null
null
null
pureport_client/commands/accounts/__init__.py
ellievaughn/pureport-python-client
e0c80c7200549723820169da3d137dd771be3f11
[ "MIT" ]
null
null
null
pureport_client/commands/accounts/__init__.py
ellievaughn/pureport-python-client
e0c80c7200549723820169da3d137dd771be3f11
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*_ # # Copyright (c) 2020, Pureport, Inc. # All Rights Reserved from __future__ import absolute_import from click import ( option, argument ) from pureport_client.util import JSON from pureport_client.commands import CommandBase class Command(CommandBase): """Manage Pureport accoun...
31.336601
97
0.630201
adb319cfa7747d674b6a4e109d081578ddc9f62e
4,302
py
Python
positions/examples/store/tests.py
Elec/django-positions
1ee904ccfc82679d630cbab4358c5d6cc763f6df
[ "BSD-3-Clause" ]
null
null
null
positions/examples/store/tests.py
Elec/django-positions
1ee904ccfc82679d630cbab4358c5d6cc763f6df
[ "BSD-3-Clause" ]
1
2020-09-03T06:06:23.000Z
2020-09-03T06:06:23.000Z
positions/examples/store/tests.py
elec/django-positions
1ee904ccfc82679d630cbab4358c5d6cc763f6df
[ "BSD-3-Clause" ]
null
null
null
import doctest import unittest from django.db import models from positions import PositionField from positions.examples.store.models import Product, Category, ProductCategory from django.test import TestCase class StoreTestCase(TestCase): def setUp(self): pass def tearDown(self): Category.o...
53.111111
151
0.709205
a13f11ff7935da340ca27e899d494890144c5d54
282
py
Python
eggs/numpy-1.9.1-py2.7-linux-x86_64.egg/numpy/random/mtrand.py
kruthikarshankar/bemoss_os
460a5a41b38240bb9f6dacc23d373ae1942259a8
[ "Unlicense" ]
3
2018-11-25T01:09:55.000Z
2021-08-24T01:56:36.000Z
eggs/numpy-1.9.1-py2.7-linux-x86_64.egg/numpy/random/mtrand.py
kwarodom/bemoss_os_1.2
460a5a41b38240bb9f6dacc23d373ae1942259a8
[ "Unlicense" ]
null
null
null
eggs/numpy-1.9.1-py2.7-linux-x86_64.egg/numpy/random/mtrand.py
kwarodom/bemoss_os_1.2
460a5a41b38240bb9f6dacc23d373ae1942259a8
[ "Unlicense" ]
3
2018-11-09T03:38:09.000Z
2020-02-24T06:26:10.000Z
def __bootstrap__(): global __bootstrap__, __loader__, __file__ import sys, pkg_resources, imp __file__ = pkg_resources.resource_filename(__name__, 'mtrand.so') __loader__ = None; del __bootstrap__, __loader__ imp.load_dynamic(__name__,__file__) __bootstrap__()
35.25
69
0.765957
89dec2eb063a651d794528257ed30772ab9dfa18
392
py
Python
users/forms.py
Rohan-cod/sch_webscr
ef954374173ac2fdb9ec067fe9b4571edfde8f2a
[ "MIT" ]
2
2020-10-05T00:40:13.000Z
2021-04-29T07:11:19.000Z
users/forms.py
Rohan-cod/COVID19_TRACKER_AND_VOICE_ASSISTANT
d1203f204a51bc93d8bb5eb8a8c722a46c54815f
[ "MIT" ]
10
2020-05-21T10:30:51.000Z
2021-04-08T21:52:42.000Z
users/forms.py
Rohan-cod/sch_webscr
ef954374173ac2fdb9ec067fe9b4571edfde8f2a
[ "MIT" ]
4
2020-12-04T06:42:13.000Z
2021-01-03T19:33:31.000Z
from django import forms from django.contrib.auth.forms import UserCreationForm, UserChangeForm from .models import CustomUser class CustomUserCreationForm(UserCreationForm): class Meta(UserCreationForm): model = CustomUser fields = ('username', 'email', 'age',) class CustomUserChangeForm(UserChangeForm): c...
23.058824
70
0.762755
e49c0b45bcbf7dcad69f5425e4b95676fa5cf594
10,037
py
Python
security_monkey/auth/modules.py
stackArmor/security_monkey
1966ea47313d3ca69f3088bb9697d5cff0ffdf64
[ "Apache-2.0" ]
null
null
null
security_monkey/auth/modules.py
stackArmor/security_monkey
1966ea47313d3ca69f3088bb9697d5cff0ffdf64
[ "Apache-2.0" ]
2
2018-03-12T17:21:33.000Z
2020-09-03T15:56:11.000Z
security_monkey/auth/modules.py
stackArmor/security_monkey
1966ea47313d3ca69f3088bb9697d5cff0ffdf64
[ "Apache-2.0" ]
2
2018-06-15T16:55:11.000Z
2020-04-30T16:26:59.000Z
import itertools from flask import request, abort, _app_ctx_stack, redirect from flask_security.core import AnonymousUser from security_monkey.datastore import User try: from flask.ext.login import current_user except ImportError: current_user = None from .models import RBACRole, RBACUserMixin from . import...
33.345515
134
0.591511
95c45136f204b517d76398208ffdeff0b403fa70
7,339
py
Python
src/poetry/console/commands/plugin/add.py
danieleades/poetry
9957f6faa3c311533456104bbf35aadce420c32f
[ "MIT" ]
1
2020-02-01T07:13:05.000Z
2020-02-01T07:13:05.000Z
src/poetry/console/commands/plugin/add.py
sthagen/poetry
3e52c7febeef8bf60ea07690a890e547cf3bdd1b
[ "MIT" ]
1
2021-12-31T19:44:26.000Z
2022-03-08T20:52:13.000Z
src/poetry/console/commands/plugin/add.py
Anselmoo/poetry
f6022eade7485a3b017ef0c8060dffed12e3cdb2
[ "MIT" ]
2
2020-12-07T04:26:21.000Z
2021-09-25T21:46:36.000Z
import os from typing import Dict from typing import List from typing import cast from cleo.helpers import argument from cleo.helpers import option from poetry.console.application import Application from poetry.console.commands.init import InitCommand from poetry.console.commands.update import UpdateCommand class ...
37.065657
118
0.637553
63160fb449ff5a5eb845bb01618d147fbf6e5606
512
py
Python
Proyecto/Prueba.py
luisgerardoperalestorres/EstanciasI
2d9add096919d9911a0d40ad8bcabce4f6a24b40
[ "MIT" ]
null
null
null
Proyecto/Prueba.py
luisgerardoperalestorres/EstanciasI
2d9add096919d9911a0d40ad8bcabce4f6a24b40
[ "MIT" ]
null
null
null
Proyecto/Prueba.py
luisgerardoperalestorres/EstanciasI
2d9add096919d9911a0d40ad8bcabce4f6a24b40
[ "MIT" ]
null
null
null
from EstanciasI import * Hacia='estanciaupv@gmail.com' Mensaje="Hola a todos y muchos Saludos" Nombre ='Vida salvaje' Ubicacion ='Mexico' Describcion ='Solo para gatos' year =int('2019') mes =int('09') dia =int('30') hora =int('12') minu =int('00') Conexion=ServicioGoogle() Servicio=Conexion.accesoGoogleApi() Conexio...
26.947368
90
0.763672
e34ca6e40ff2af6fcae9277ae1f02509e7549797
2,122
py
Python
consec_factors.py
marchcarax/Exercises_python
f63a9f214750c5327cad792bfdcd3813b4659718
[ "MIT" ]
null
null
null
consec_factors.py
marchcarax/Exercises_python
f63a9f214750c5327cad792bfdcd3813b4659718
[ "MIT" ]
null
null
null
consec_factors.py
marchcarax/Exercises_python
f63a9f214750c5327cad792bfdcd3813b4659718
[ "MIT" ]
null
null
null
''' Problem 47 The first two consecutive numbers to have two distinct prime factors are: 14 = 2 × 7 15 = 3 × 5 The first three consecutive numbers to have three distinct prime factors are: 644 = 2² × 7 × 23 645 = 3 × 5 × 43 646 = 2 × 17 × 19. Find the first four consecutive integers to have four distinct prime fact...
27.205128
118
0.553252
c114a812ef28f762e19209f21393bee3c81b53cb
4,721
py
Python
ursina/prefabs/window_panel.py
bt530/ursina
5bcc21a2f42c6ae4228bade995de7428b62b0d45
[ "MIT" ]
1
2021-07-26T17:22:51.000Z
2021-07-26T17:22:51.000Z
ursina/prefabs/window_panel.py
bt530/ursina
5bcc21a2f42c6ae4228bade995de7428b62b0d45
[ "MIT" ]
1
2020-12-22T16:59:04.000Z
2020-12-22T16:59:04.000Z
ursina/prefabs/window_panel.py
bt530/ursina
5bcc21a2f42c6ae4228bade995de7428b62b0d45
[ "MIT" ]
null
null
null
from ursina import * from ursina.prefabs.input_field import InputField class Space(): def __init__(self, height=1): self.height = height class WindowPanel(Draggable): def __init__(self, title='', content=[], **kwargs): super().__init__(origin=(-0,.5), scale=(.5, Text.size*2), color=color.bla...
31.473333
122
0.467062
c87205378b8b59715674b5dfa4f53c39a81c0605
464
py
Python
app/rabbitmq/callbacks.py
amanjaiswalofficial/infinity-reads-blog
a008845ca403c4bb07666ed9f9293fffe360bdd8
[ "MIT" ]
null
null
null
app/rabbitmq/callbacks.py
amanjaiswalofficial/infinity-reads-blog
a008845ca403c4bb07666ed9f9293fffe360bdd8
[ "MIT" ]
null
null
null
app/rabbitmq/callbacks.py
amanjaiswalofficial/infinity-reads-blog
a008845ca403c4bb07666ed9f9293fffe360bdd8
[ "MIT" ]
1
2020-12-05T19:09:01.000Z
2020-12-05T19:09:01.000Z
from app import queue @queue(queue='blog-queue', type='direct', exchange='blog-exchange', routing_key='blog-key') def blog_queue(ch, method, props, body): """ declare the queue of direct exchange, flask-rabbitmq will bind automatically by key. :param ch: :param method: :param props: :param bod...
27.294118
91
0.674569
3b899fb5395b330b2dd6e3417ee1abe93e598a1d
95
py
Python
docker/version.py
shoter/docker-py
bb148380e1ea92e26c8e4dc783dd18b8a39506c0
[ "Apache-2.0" ]
null
null
null
docker/version.py
shoter/docker-py
bb148380e1ea92e26c8e4dc783dd18b8a39506c0
[ "Apache-2.0" ]
null
null
null
docker/version.py
shoter/docker-py
bb148380e1ea92e26c8e4dc783dd18b8a39506c0
[ "Apache-2.0" ]
1
2019-12-19T12:50:02.000Z
2019-12-19T12:50:02.000Z
version = "2.6.0-dev" version_info = tuple([int(d) for d in version.split("-")[0].split(".")])
31.666667
72
0.610526
a6ee8c732ee0a7c3cd53d9a30b66c519bc82a0ef
4,541
py
Python
robel/dclaw/screw.py
Del9fina/robel
63dfac65932757134e5766f1e20a339efe281bc7
[ "Apache-2.0" ]
109
2019-08-29T22:55:41.000Z
2022-03-19T18:26:37.000Z
robel/dclaw/screw.py
Del9fina/robel
63dfac65932757134e5766f1e20a339efe281bc7
[ "Apache-2.0" ]
12
2019-11-14T05:16:00.000Z
2021-02-21T07:49:32.000Z
robel/dclaw/screw.py
Del9fina/robel
63dfac65932757134e5766f1e20a339efe281bc7
[ "Apache-2.0" ]
40
2019-09-29T06:50:44.000Z
2022-03-19T18:34:20.000Z
# Copyright 2019 The ROBEL 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 wr...
33.389706
78
0.648756
ae1321144ffab7a5a6f0257155f7416ef4041160
363
gyp
Python
Dependencies/gyp-master/test/same-rule-output-file-name/src/subdirs.gyp
knight666/exlibris
b21b46e0c84e5c4f81f8048022cda88e7bb3dca2
[ "MIT" ]
null
null
null
Dependencies/gyp-master/test/same-rule-output-file-name/src/subdirs.gyp
knight666/exlibris
b21b46e0c84e5c4f81f8048022cda88e7bb3dca2
[ "MIT" ]
null
null
null
Dependencies/gyp-master/test/same-rule-output-file-name/src/subdirs.gyp
knight666/exlibris
b21b46e0c84e5c4f81f8048022cda88e7bb3dca2
[ "MIT" ]
null
null
null
# Copyright (c) 2012 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'targets': [ { 'target_name': 'subdirs', 'type': 'none', 'dependencies': [ 'subdir1/subdir1.gyp:*', 'subdir2/s...
21.352941
73
0.539945
a9907147f49d983acec8df7b01829a158208702a
3,956
py
Python
rolling/map/generator/filler/simple.py
coolkat64/rolling
4c3ee2401128e993a52ac9b52cdbd32e17728129
[ "MIT" ]
null
null
null
rolling/map/generator/filler/simple.py
coolkat64/rolling
4c3ee2401128e993a52ac9b52cdbd32e17728129
[ "MIT" ]
null
null
null
rolling/map/generator/filler/simple.py
coolkat64/rolling
4c3ee2401128e993a52ac9b52cdbd32e17728129
[ "MIT" ]
null
null
null
# coding: utf-8 import random import typing from rolling.map.generator.filler.base import FillerFactory from rolling.map.generator.filler.base import TileMapFiller from rolling.map.generator.generator import Border from rolling.map.generator.generator import TileMapGenerator from rolling.map.source import WorldMapSour...
38.407767
95
0.719666
86220df4501b3ed2cd7b33dedde4114e143b4e0e
767
py
Python
examples/mission_import.py
TSC21/MAVSDK-Python
74178f008af161c180a2f964cbfcdc343c5a25f4
[ "BSD-3-Clause" ]
null
null
null
examples/mission_import.py
TSC21/MAVSDK-Python
74178f008af161c180a2f964cbfcdc343c5a25f4
[ "BSD-3-Clause" ]
null
null
null
examples/mission_import.py
TSC21/MAVSDK-Python
74178f008af161c180a2f964cbfcdc343c5a25f4
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import asyncio from mavsdk import System import mavsdk.mission_raw async def run(): drone = System() await drone.connect(system_address="udp://:14540") print("Waiting for drone to connect...") async for state in drone.core.connection_state(): if state.is_connected: ...
26.448276
103
0.718383
a6b2b7b88d7adc0671086cf894bdd08dab2dd3bb
1,104
py
Python
apis/voting/serializers.py
computablelabs/capi
44e349fa3c71c8d2d390cdf2a5b7b8892807b40a
[ "MIT" ]
null
null
null
apis/voting/serializers.py
computablelabs/capi
44e349fa3c71c8d2d390cdf2a5b7b8892807b40a
[ "MIT" ]
43
2019-09-03T14:50:23.000Z
2019-12-18T17:30:11.000Z
apis/voting/serializers.py
computablelabs/capi
44e349fa3c71c8d2d390cdf2a5b7b8892807b40a
[ "MIT" ]
1
2019-10-15T14:41:28.000Z
2019-10-15T14:41:28.000Z
from flask_restplus import Model, fields from apis.serializers import Listing Candidate = Model('Candidate', { 'kind': fields.Integer(required=True, description='Type of this candidate'), 'owner': fields.String(required=True, description='Proposer of this candidate'), 'stake': fields.Integer(required=True,...
55.2
135
0.744565
769009b6ada646a7e1ea87b6efd704ab12448c84
2,237
py
Python
trax/tf_numpy/numpy/tests/backprop_test.py
yakovkeselman/trax
615432bbc58ffb5bdf83a771e8f8b470995456db
[ "Apache-2.0" ]
1
2020-05-30T15:19:39.000Z
2020-05-30T15:19:39.000Z
trax/tf_numpy/numpy/tests/backprop_test.py
ZachT1711/trax
a0a3dd8d49e53fc48bb24cc08c10a8a53517e7bc
[ "Apache-2.0" ]
null
null
null
trax/tf_numpy/numpy/tests/backprop_test.py
ZachT1711/trax
a0a3dd8d49e53fc48bb24cc08c10a8a53517e7bc
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 The Trax 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 a...
31.957143
75
0.654895
31bd1ffd2ca6ae75efcd4a8b84229efdc4e80ac0
1,050
py
Python
python2/koans/triangle.py
danielklintworth/python_koans
2f8ea0dc5940f539c48899a4e75116186d55d9b6
[ "MIT" ]
1
2017-05-21T11:47:41.000Z
2017-05-21T11:47:41.000Z
python2/koans/triangle.py
danielklintworth/python_koans
2f8ea0dc5940f539c48899a4e75116186d55d9b6
[ "MIT" ]
null
null
null
python2/koans/triangle.py
danielklintworth/python_koans
2f8ea0dc5940f539c48899a4e75116186d55d9b6
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Triangle Project Code. # triangle(a, b, c) analyzes the lengths of the sides of a triangle # (represented by a, b and c) and returns the type of triangle. # # It returns: # 'equilateral' if all sides are equal # 'isosceles' if exactly 2 sides are equal # 'sca...
27.631579
92
0.665714
07e3a905fc05759d82588608f192fc66a658be0a
3,258
py
Python
examples/ITEAD-OLED_shapes.py
gooligumelec/Gooligum-Adafruit_Python_SSD1306
94db7e22e0579b62d4c052f82ebcbf93245f6a14
[ "MIT" ]
1
2015-12-14T03:18:46.000Z
2015-12-14T03:18:46.000Z
examples/ITEAD-OLED_shapes.py
gooligumelec/Gooligum-Adafruit_Python_SSD1306
94db7e22e0579b62d4c052f82ebcbf93245f6a14
[ "MIT" ]
null
null
null
examples/ITEAD-OLED_shapes.py
gooligumelec/Gooligum-Adafruit_Python_SSD1306
94db7e22e0579b62d4c052f82ebcbf93245f6a14
[ "MIT" ]
null
null
null
#!/usr/bin/python # # Example of displaying text and drawing shapes on an "ITEAD RPi OLED v2.0" display # # Based on Adafruit_Python_SSD1306/examples/shapes.py example # v1.0 22/10/15 # # David Meiklejohn # Gooligum Electronics # # -------- # Copyright (c) 2014 Adafruit Industries # Author: Tony DiCola # # Per...
31.631068
109
0.74248
ca2bf11d5c374dbf13d5c45e2752605904784d5b
111
py
Python
Chapter11/removing_nude_picture.py
HowToBeCalculated/Hands-On-Blockchain-for-Python-Developers
f9634259dd3dc509f36a5ccf3a5182c0d2ec79c4
[ "MIT" ]
62
2019-03-18T04:41:41.000Z
2022-03-31T05:03:13.000Z
Chapter11/removing_nude_picture.py
HowToBeCalculated/Hands-On-Blockchain-for-Python-Developers
f9634259dd3dc509f36a5ccf3a5182c0d2ec79c4
[ "MIT" ]
2
2020-06-14T21:56:03.000Z
2022-01-07T05:32:01.000Z
Chapter11/removing_nude_picture.py
HowToBeCalculated/Hands-On-Blockchain-for-Python-Developers
f9634259dd3dc509f36a5ccf3a5182c0d2ec79c4
[ "MIT" ]
42
2019-02-22T03:10:36.000Z
2022-02-20T04:47:04.000Z
import ipfsapi c = ipfsapi.connect() c.pin_rm('QmWgMcTdPY9Rv7SCBusK1gWBRJcBi2MxNkC1yC6uvLYPwK') c.repo_gc()
13.875
58
0.801802
04c700e4eb8bec06e762a43ec06925b6c3a689ce
20,274
py
Python
modules/AR_Scheduler.py
deepsphere/deepsphere-weather
a9c75de9c9852a2832883cd998efd16d6542b083
[ "MIT" ]
38
2021-03-15T15:40:25.000Z
2022-03-10T06:36:50.000Z
modules/AR_Scheduler.py
deepsphere/deepsphere-weather
a9c75de9c9852a2832883cd998efd16d6542b083
[ "MIT" ]
4
2021-06-06T07:47:07.000Z
2022-01-31T11:16:08.000Z
modules/AR_Scheduler.py
deepsphere/deepsphere-weather
a9c75de9c9852a2832883cd998efd16d6542b083
[ "MIT" ]
5
2021-08-07T21:41:46.000Z
2021-12-29T13:25:46.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Jan 23 11:31:21 2021 @author: ghiggi """ import numpy as np from cycler import cycler import matplotlib.pyplot as plt ##----------------------------------------------------------------------------. ### Check AR weights def check_ar_weights(ar_weights...
49.328467
135
0.571619
f5fa3e697640c9794a979fe433949f054179e106
1,045
py
Python
typecube/utils.py
panyam/typecube
e8fa235675b6497acd52c68286bb9e4aefc5c8d1
[ "Apache-2.0" ]
null
null
null
typecube/utils.py
panyam/typecube
e8fa235675b6497acd52c68286bb9e4aefc5c8d1
[ "Apache-2.0" ]
null
null
null
typecube/utils.py
panyam/typecube
e8fa235675b6497acd52c68286bb9e4aefc5c8d1
[ "Apache-2.0" ]
null
null
null
class FQN(object): def __init__(self, name, namespace, ensure_namespaces_are_equal = True): name,namespace = (name or "").strip(), (namespace or "").strip() comps = name.split(".") if len(comps) > 1: n2 = comps[-1] ns2 = ".".join(comps[:-1]) if ensure_nam...
27.5
117
0.544498
c193186c242879b87354b49d293eb993d245ba4e
379
py
Python
exec/pynex/run_test.py
ghewgill/neon-lang
e9bd686a6c566dc6e40f2816cab34c24725847c7
[ "MIT" ]
74
2016-01-18T12:20:53.000Z
2022-01-16T10:26:29.000Z
exec/pynex/run_test.py
ghewgill/neon-lang
e9bd686a6c566dc6e40f2816cab34c24725847c7
[ "MIT" ]
197
2015-01-02T03:50:59.000Z
2022-01-24T05:40:39.000Z
exec/pynex/run_test.py
ghewgill/neon-lang
e9bd686a6c566dc6e40f2816cab34c24725847c7
[ "MIT" ]
2
2015-04-01T03:54:19.000Z
2021-11-29T08:27:12.000Z
#!/usr/bin/env python3 import os import subprocess import sys pynex = "exec/pynex/pynex.py" i = 1 while i < len(sys.argv): if sys.argv[i] == "--pynex": i += 1 pynex = sys.argv[i] else: break i += 1 fullname = sys.argv[i] path, name = os.path.split(fullname) subprocess.check_call...
17.227273
79
0.601583
c614c8715084d181ff86866074e809a7af29c11e
4,089
py
Python
plugin.video.yle/default.py
miok/nettiteevee-xbmc
3cdd0a7a3e139eeb3cf6f7e1f604ffc2f639d243
[ "Unlicense" ]
1
2018-07-17T11:00:25.000Z
2018-07-17T11:00:25.000Z
plugin.video.yle/default.py
miok/nettiteevee-xbmc
3cdd0a7a3e139eeb3cf6f7e1f604ffc2f639d243
[ "Unlicense" ]
null
null
null
plugin.video.yle/default.py
miok/nettiteevee-xbmc
3cdd0a7a3e139eeb3cf6f7e1f604ffc2f639d243
[ "Unlicense" ]
null
null
null
# vim: set fileencoding=utf8 import urllib, urllib2, sys, os import subprocess import feedparser import xbmcplugin,xbmcgui,xbmc import traceback # plugin handle handle = int(sys.argv[1]) teemat={ "TV-uutiset": "http://areena.yle.fi/.rss?q=uutiset&media=video", "Uusimmat ohjelmat": "http://areena.yle.fi/tv/kaikki...
33.793388
109
0.689411
9055c9f0e5fb38a82dfb76d45a09335545a0e464
1,348
py
Python
tronx/pyrogramx/methods/decorators/on_inline.py
TronUb/Tron
55b5067a34cf2849913647533d7d035cab64568e
[ "MIT" ]
4
2022-03-07T07:27:04.000Z
2022-03-29T05:59:57.000Z
tronx/pyrogramx/methods/decorators/on_inline.py
TronUb/Tron
55b5067a34cf2849913647533d7d035cab64568e
[ "MIT" ]
null
null
null
tronx/pyrogramx/methods/decorators/on_inline.py
TronUb/Tron
55b5067a34cf2849913647533d7d035cab64568e
[ "MIT" ]
3
2022-03-05T15:24:51.000Z
2022-03-14T08:48:05.000Z
from typing import Callable import pyrogram from pyrogram.filters import Filter class OnInlineQuery: def on_inline_query( self=None, filters=None, group: int = 0 ) -> Callable: """Decorator for handling inline queries. This does the same thing as :meth:`~pyrogram.Clie...
30.636364
94
0.55638
79401ac2c02e754404a2814c0e7c0a163c086971
427
py
Python
tasks.py
dmitrypol/redis101
49e5ddccff6b799eefc5fcaaf7e1a5335ba570a4
[ "MIT" ]
1
2019-04-17T07:46:50.000Z
2019-04-17T07:46:50.000Z
tasks.py
dmitrypol/redis101
49e5ddccff6b799eefc5fcaaf7e1a5335ba570a4
[ "MIT" ]
null
null
null
tasks.py
dmitrypol/redis101
49e5ddccff6b799eefc5fcaaf7e1a5335ba570a4
[ "MIT" ]
null
null
null
import os import time from redis import Redis redis_conn = Redis(host=os.environ['REDIS_HOST'], port=os.environ['REDIS_PORT']) from rq.decorators import job @job('default', connection=redis_conn) def generate_report(input_param): time.sleep(5) return {'input_param': input_param} @job('default', connection=...
23.722222
80
0.744731
f860857a78dcfc3fa6c3b992c484a9d3d7fa0de0
438
py
Python
keras/__init__.py
Jallet/keras-jl-ac-mean
2bbc1596192fb8c3aefc4a8126482a5283574a59
[ "MIT" ]
1
2016-12-15T07:20:42.000Z
2016-12-15T07:20:42.000Z
keras/__init__.py
Jallet/keras-jl-ac-mean
2bbc1596192fb8c3aefc4a8126482a5283574a59
[ "MIT" ]
null
null
null
keras/__init__.py
Jallet/keras-jl-ac-mean
2bbc1596192fb8c3aefc4a8126482a5283574a59
[ "MIT" ]
null
null
null
from __future__ import absolute_import from . import backend from . import datasets from . import engine from . import layers from . import preprocessing from . import utils from . import wrappers from . import callbacks from . import constraints from . import initializations from . import metrics from . im...
23.052632
39
0.757991
ee0d828a7270c417a66780f9619e15228a2911c9
2,695
py
Python
imagepy/menus/Image/Adjust/threshold_plg.py
muxevola/imagepy
d6d8cbf214f47a4a545a0d283ae393a6932c4c0f
[ "BSD-4-Clause" ]
null
null
null
imagepy/menus/Image/Adjust/threshold_plg.py
muxevola/imagepy
d6d8cbf214f47a4a545a0d283ae393a6932c4c0f
[ "BSD-4-Clause" ]
null
null
null
imagepy/menus/Image/Adjust/threshold_plg.py
muxevola/imagepy
d6d8cbf214f47a4a545a0d283ae393a6932c4c0f
[ "BSD-4-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Nov 18 22:56:50 2016 @author: yxl """ from imagepy import IPy import numpy as np from imagepy.core.engine import Filter from imagepy.ui.panelconfig import ParaDialog from imagepy.ui.widgets import HistCanvas from ....core.manager import WindowsManager class ThresholdDialog(Pa...
35.460526
78
0.530983
75f4e99d8d824439c3806c551a9c6853fbb66678
243
py
Python
python/testData/refactoring/pullup/abstractMethodDocStringPrefixPreserved.after.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/refactoring/pullup/abstractMethodDocStringPrefixPreserved.after.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/refactoring/pullup/abstractMethodDocStringPrefixPreserved.after.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
# coding=utf-8 from abc import ABCMeta, abstractmethod class A: __metaclass__ = ABCMeta @abstractmethod def m(self, x): u"""Юникод""" pass class B(A): def m(self, x): u"""Юникод""" return x
13.5
39
0.55144
aad8fde8001a0241b2c07eee5eeae237e740fbcf
43,342
py
Python
packages/python/plotly/plotly/graph_objs/parcats/_line.py
eisenlohr/plotly.py
3b0e3df45036cf48f772b13bcc10ce347964aefc
[ "MIT" ]
1
2021-12-11T07:01:40.000Z
2021-12-11T07:01:40.000Z
packages/python/plotly/plotly/graph_objs/parcats/_line.py
jiangrongbo/plotly.py
df19fc702b309586cc24e25373b87e8bdbb3ff60
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/graph_objs/parcats/_line.py
jiangrongbo/plotly.py
df19fc702b309586cc24e25373b87e8bdbb3ff60
[ "MIT" ]
1
2021-11-29T22:55:05.000Z
2021-11-29T22:55:05.000Z
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "parcats" _path_str = "parcats.line" _valid_props = { "autocolorscale", "cauto"...
42.326172
87
0.550736
c857f3646988a8e44e345a9f0490fbbb36d1de5d
397
py
Python
ree/canary/lanzafuerte.py
blackleg/reescrapper
d41b8ba1b4e6750539a13b3e18eff84c1407ad0c
[ "MIT" ]
null
null
null
ree/canary/lanzafuerte.py
blackleg/reescrapper
d41b8ba1b4e6750539a13b3e18eff84c1407ad0c
[ "MIT" ]
null
null
null
ree/canary/lanzafuerte.py
blackleg/reescrapper
d41b8ba1b4e6750539a13b3e18eff84c1407ad0c
[ "MIT" ]
null
null
null
from ree.core import Scraper class LanzaroteFuerteventura(Scraper): def __init__(self, session=None, verify=True): super(self.__class__, self).__init__(session, verify) def get(self, date=None, last=True): return super(self.__class__, self).get("LZ_FV", "Atlantic/Canary", "Canarias", date, l...
28.357143
98
0.687657
7490b20715dae7719c9605a9801ca380e8db23dc
39,840
py
Python
ucsmsdk/mometa/equipment/EquipmentSystemIOController.py
vesposito/ucsmsdk
03bc1e19b8582c68d3a94a20a939a48fe91332f8
[ "Apache-2.0" ]
null
null
null
ucsmsdk/mometa/equipment/EquipmentSystemIOController.py
vesposito/ucsmsdk
03bc1e19b8582c68d3a94a20a939a48fe91332f8
[ "Apache-2.0" ]
null
null
null
ucsmsdk/mometa/equipment/EquipmentSystemIOController.py
vesposito/ucsmsdk
03bc1e19b8582c68d3a94a20a939a48fe91332f8
[ "Apache-2.0" ]
null
null
null
"""This module contains the general information for EquipmentSystemIOController ManagedObject.""" from ...ucsmo import ManagedObject from ...ucscoremeta import MoPropertyMeta, MoMeta from ...ucsmeta import VersionMeta class EquipmentSystemIOControllerConsts: ADMIN_POWER_STATE_CYCLE_IMMEDIATE = "cycle-immediate" ...
80.97561
3,747
0.738253
cc776d06187c1fb044f4d5ba882197cce31ba68c
260
py
Python
smallRNA/manager/templatetags/custom_tags.py
ahmetrasit/smallRNA
9e76065b6fdc834b46537519b5aa0c4a0290cfdc
[ "MIT" ]
1
2018-02-22T07:16:29.000Z
2018-02-22T07:16:29.000Z
smallRNA/manager/templatetags/custom_tags.py
ahmetrasit/smallRNA
9e76065b6fdc834b46537519b5aa0c4a0290cfdc
[ "MIT" ]
null
null
null
smallRNA/manager/templatetags/custom_tags.py
ahmetrasit/smallRNA
9e76065b6fdc834b46537519b5aa0c4a0290cfdc
[ "MIT" ]
null
null
null
from django import template from django.contrib.auth.models import Group register = template.Library() @register.filter(name='has_group') def has_group(user, group_name): group = Group.objects.get(name=group_name) return group in user.groups.all()
26
47
0.761538
94c43045eefb770e0aa45cd2aa5c802436fa3973
4,373
py
Python
library/oneview_enclosure_group.py
soodpr/oneview-ansible
f4f07062eda3f6dc17f4c306f376ddebb7313fbb
[ "Apache-2.0" ]
null
null
null
library/oneview_enclosure_group.py
soodpr/oneview-ansible
f4f07062eda3f6dc17f4c306f376ddebb7313fbb
[ "Apache-2.0" ]
null
null
null
library/oneview_enclosure_group.py
soodpr/oneview-ansible
f4f07062eda3f6dc17f4c306f376ddebb7313fbb
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- ### # Copyright (2016-2020) Hewlett Packard Enterprise Development LP # # 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/licen...
30.795775
95
0.669792
c48e7fe17a7b76d12883ea34f8e584c3f61f7c21
2,809
py
Python
sqlalchemy_continuum/__init__.py
labnook/sqlalchemy-continuum
c9273c5f88a05497f01fe857093d07d64685cbc1
[ "BSD-3-Clause" ]
null
null
null
sqlalchemy_continuum/__init__.py
labnook/sqlalchemy-continuum
c9273c5f88a05497f01fe857093d07d64685cbc1
[ "BSD-3-Clause" ]
3
2018-09-26T19:58:45.000Z
2021-07-28T21:26:49.000Z
sqlalchemy_continuum/__init__.py
labnook/sqlalchemy-continuum
c9273c5f88a05497f01fe857093d07d64685cbc1
[ "BSD-3-Clause" ]
1
2020-11-10T23:02:23.000Z
2020-11-10T23:02:23.000Z
import sqlalchemy as sa from .exc import ClassNotVersioned, ImproperlyConfigured from .manager import VersioningManager from .operation import Operation from .transaction import TransactionFactory from .unit_of_work import UnitOfWork from .utils import ( changeset, count_versions, get_versioning_manager, ...
27.811881
78
0.712709
f8fdad3345d8c42392bde9f8a2c764ad0d0a5574
1,945
py
Python
dicom2rawiv/zipextract/gdcm-2.6.3/Examples/Python/ScanDirectory.py
chipbuster/skull-atlas
7f3ee009e1d5f65f101fe853a2cf6e12662970ee
[ "BSD-3-Clause" ]
47
2020-03-30T14:36:46.000Z
2022-03-06T07:44:54.000Z
dicom2rawiv/zipextract/gdcm-2.6.3/Examples/Python/ScanDirectory.py
chipbuster/skull-atlas
7f3ee009e1d5f65f101fe853a2cf6e12662970ee
[ "BSD-3-Clause" ]
null
null
null
dicom2rawiv/zipextract/gdcm-2.6.3/Examples/Python/ScanDirectory.py
chipbuster/skull-atlas
7f3ee009e1d5f65f101fe853a2cf6e12662970ee
[ "BSD-3-Clause" ]
8
2020-04-01T01:22:45.000Z
2022-01-02T13:06:09.000Z
############################################################################ # # Program: GDCM (Grassroots DICOM). A DICOM library # # Copyright (c) 2006-2011 Mathieu Malaterre # All rights reserved. # See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details. # # This software is distributed ...
27.785714
81
0.62365
c9120b8f6b477e144300821ea9dd134a068eecbe
86,166
py
Python
app/main/routes.py
Evantually/cash-and-associates
ffccaf8d1018b312296adc6d432f802fd825b483
[ "MIT" ]
null
null
null
app/main/routes.py
Evantually/cash-and-associates
ffccaf8d1018b312296adc6d432f802fd825b483
[ "MIT" ]
null
null
null
app/main/routes.py
Evantually/cash-and-associates
ffccaf8d1018b312296adc6d432f802fd825b483
[ "MIT" ]
1
2021-08-21T12:42:57.000Z
2021-08-21T12:42:57.000Z
from datetime import datetime, timedelta from flask import render_template, flash, redirect, url_for, request, g, \ jsonify, current_app from flask_login import current_user, login_required, login_user from flask_babel import _, get_locale from langdetect import detect, LangDetectException from sqlalchemy import fu...
49.52069
337
0.65838
154289d8283c62ce9ebd0c4d249a6182619a74b0
943
py
Python
src/check_if_valid_url.py
pranavr2003/selenium-simple
4b7fabf6915fdb8488d60c6641260e0d80b58635
[ "WTFPL" ]
null
null
null
src/check_if_valid_url.py
pranavr2003/selenium-simple
4b7fabf6915fdb8488d60c6641260e0d80b58635
[ "WTFPL" ]
null
null
null
src/check_if_valid_url.py
pranavr2003/selenium-simple
4b7fabf6915fdb8488d60c6641260e0d80b58635
[ "WTFPL" ]
null
null
null
from use_regex_to_filter_url import filter_stuff import warnings # ex_str = r'sel-simple/|https://www.python.org/|/^assert "Python" in title^/?febn=q/c/k-pycon?K-RETURN/}' def check_if_valid_url(url): """Checks if the URL is in the correct format """ getting_route_data = filter_stuff(url) route = get...
36.269231
256
0.709438
893c8e2af25397eab4bd0597130fd856d8b954ae
3,742
py
Python
app/auth/views.py
lin-wish/random-name
91bae70aad4547e06388105136573a7c18525ed0
[ "MIT" ]
null
null
null
app/auth/views.py
lin-wish/random-name
91bae70aad4547e06388105136573a7c18525ed0
[ "MIT" ]
null
null
null
app/auth/views.py
lin-wish/random-name
91bae70aad4547e06388105136573a7c18525ed0
[ "MIT" ]
null
null
null
from . import auth_blueprint from flask.views import MethodView from flask import make_response, request, jsonify from app.models import User class RegistrationView(MethodView): """This class registers a new user.""" def post(self): """Handle POST request for this view. Url ---> /auth/reg...
39.389474
91
0.566809