hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
1bfd59334a564777e89e096433d85ba16c400228
7,876
py
Python
userbot/plugins/mute.py
saskeuday/sasoke
8ed75e7011172547ba1abc8fb75aa72581b1c0c6
[ "MIT" ]
null
null
null
userbot/plugins/mute.py
saskeuday/sasoke
8ed75e7011172547ba1abc8fb75aa72581b1c0c6
[ "MIT" ]
null
null
null
userbot/plugins/mute.py
saskeuday/sasoke
8ed75e7011172547ba1abc8fb75aa72581b1c0c6
[ "MIT" ]
1
2020-09-03T13:39:52.000Z
2020-09-03T13:39:52.000Z
# Copyright 2019 - 2020 DarkPrinc3 # 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 ...
35.8
131
0.583418
8efb7221a9a48957e7b294046a06aecbcea30867
6,654
py
Python
cms/views.py
hirunatan/django-cms
aa85ced5a9539f593f449b5a195df483580e11ea
[ "BSD-3-Clause" ]
1
2021-04-08T13:49:04.000Z
2021-04-08T13:49:04.000Z
cms/views.py
hirunatan/django-cms
aa85ced5a9539f593f449b5a195df483580e11ea
[ "BSD-3-Clause" ]
null
null
null
cms/views.py
hirunatan/django-cms
aa85ced5a9539f593f449b5a195df483580e11ea
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import with_statement from django.template.response import TemplateResponse from cms.apphook_pool import apphook_pool from cms.appresolver import get_app_urls from cms.models import Title from cms.utils import get_template_from_request, get_language_from_request from cms.utils.i1...
44.36
116
0.653592
bb29ca4d1fad3072a7ea1f38e97748ffe79dfb62
7,726
py
Python
src/semseg/model/psptrans.py
CVMI-Lab/KDEP
5fe3914dac9e522476086bad47bc35b4661c6171
[ "Apache-2.0" ]
32
2022-03-06T09:29:35.000Z
2022-03-28T07:12:35.000Z
src/semseg/model/psptrans.py
CVMI-Lab/KDEP
5fe3914dac9e522476086bad47bc35b4661c6171
[ "Apache-2.0" ]
null
null
null
src/semseg/model/psptrans.py
CVMI-Lab/KDEP
5fe3914dac9e522476086bad47bc35b4661c6171
[ "Apache-2.0" ]
1
2022-03-14T03:08:01.000Z
2022-03-14T03:08:01.000Z
import torch from torch import nn import torch.nn.functional as F from einops import rearrange import model.transformer.net_factory as models from model.transformer.prog_trans import PatchEmbed import util.lovasz_softmax as L class PPM(nn.Module): def __init__(self, in_dim, reduction_dim, bins, BatchNorm): ...
37.872549
142
0.53663
95346323375cf4120a29b3900085cfbd3bd38bb0
3,217
py
Python
harmoni_core/harmoni_decision/scripts/harmoni_decision/behavior_controller.py
riya-ranjan/HARMONI
2207cadf69a622232506fcab538df8bb76412549
[ "MIT" ]
7
2020-09-02T06:31:21.000Z
2022-02-18T21:16:44.000Z
harmoni_core/harmoni_decision/scripts/harmoni_decision/behavior_controller.py
riya-ranjan/HARMONI
2207cadf69a622232506fcab538df8bb76412549
[ "MIT" ]
61
2020-05-15T16:46:32.000Z
2021-07-28T17:44:49.000Z
harmoni_core/harmoni_decision/scripts/harmoni_decision/behavior_controller.py
riya-ranjan/HARMONI
2207cadf69a622232506fcab538df8bb76412549
[ "MIT" ]
3
2020-10-05T23:01:29.000Z
2022-03-02T11:53:34.000Z
#!/usr/bin/env python3 # Importing the libraries import rospy import roslib from harmoni_common_lib.action_client import HarmoniActionClient from harmoni_common_lib import constants import inspect class BehaviorController: """Instantiates behaviors and receives commands/data for them. This class is a singl...
33.164948
85
0.571029
2238424c6c83b698e5c57df985017bbf6c3ce53d
38,442
py
Python
biopal/fh/main_FH.py
ClementAlbinet/BioPAL
1986b90665559e1dab7abecac452ddb019c4f09b
[ "MIT" ]
35
2021-04-26T13:11:34.000Z
2022-03-13T02:27:53.000Z
biopal/fh/main_FH.py
ClementAlbinet/BioPAL
1986b90665559e1dab7abecac452ddb019c4f09b
[ "MIT" ]
13
2021-04-28T20:56:53.000Z
2022-03-25T09:15:26.000Z
biopal/fh/main_FH.py
ClementAlbinet/BioPAL
1986b90665559e1dab7abecac452ddb019c4f09b
[ "MIT" ]
12
2021-04-26T13:11:43.000Z
2022-03-28T06:19:19.000Z
# SPDX-FileCopyrightText: BioPAL <biopal@esa.int> # SPDX-License-Identifier: MIT import logging import os import numpy as np import shutil from scipy.signal import convolve2d from osgeo import gdal from equi7grid.equi7grid import Equi7Grid from equi7grid.image2equi7grid import image2equi7grid # biomassL2 processor im...
41.558919
270
0.57432
dbc50329c769bb08cf8636173050562705975623
44,757
py
Python
test/python/compiler/test_transpiler.py
HuangJunye/qiskit-terra
0c8bb3dbf8d688590431ca79a83ba8aede84ed20
[ "Apache-2.0" ]
null
null
null
test/python/compiler/test_transpiler.py
HuangJunye/qiskit-terra
0c8bb3dbf8d688590431ca79a83ba8aede84ed20
[ "Apache-2.0" ]
2
2022-03-30T10:09:44.000Z
2022-03-30T10:09:45.000Z
test/python/compiler/test_transpiler.py
HuangJunye/qiskit-terra
0c8bb3dbf8d688590431ca79a83ba8aede84ed20
[ "Apache-2.0" ]
null
null
null
# This code is part of Qiskit. # # (C) Copyright IBM 2017, 2019. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivat...
38.851563
99
0.594544
c9d4fb8cb522a9a9ea61cef9b93c81313e7fbed8
4,278
py
Python
code/client/munkilib/munkilog.py
KWik/munki
82b720661a21b532a7c26c687fde671f3b2bdc5e
[ "Apache-2.0" ]
2,536
2015-01-03T18:11:06.000Z
2022-03-29T09:06:02.000Z
code/client/munkilib/munkilog.py
KWik/munki
82b720661a21b532a7c26c687fde671f3b2bdc5e
[ "Apache-2.0" ]
639
2015-01-09T02:42:46.000Z
2022-03-31T14:41:28.000Z
code/client/munkilib/munkilog.py
andre4ik3/munki
fda0c168231edefde8a57a60b133b75cafd38300
[ "Apache-2.0" ]
439
2015-01-05T18:09:53.000Z
2022-03-28T17:15:04.000Z
# encoding: utf-8 # # Copyright 2009-2021 Greg Neagle. # # Licensed under the Apache License, Version 2.0 (the 'License'); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
29.708333
79
0.636279
56701b5712aa0ed72728994915ca54a0a3d3a47a
1,899
py
Python
tallgrass/conus_api_etm/log_logger.py
tonybutzer/etm_v3_tony
ec32d94a8730247af90072c49bdb9f81d036af9b
[ "MIT" ]
null
null
null
tallgrass/conus_api_etm/log_logger.py
tonybutzer/etm_v3_tony
ec32d94a8730247af90072c49bdb9f81d036af9b
[ "MIT" ]
null
null
null
tallgrass/conus_api_etm/log_logger.py
tonybutzer/etm_v3_tony
ec32d94a8730247af90072c49bdb9f81d036af9b
[ "MIT" ]
null
null
null
import logging import os import sys import boto3 from inspect import currentframe def log_init(nameV, log_level): """ Function defines the log file name and output path, as well as the logging level. log_p = print statement log_d = debug statement """ global logger logger = l...
27.926471
76
0.612428
2a94533ba79364ce08103fa31ec368a53ce36d10
22,533
py
Python
script/gen_sql_seq.py
WING-NUS/slsql
ed7162fca2a5a0a24408ec3448a3ec85c92df6a0
[ "MIT" ]
14
2020-11-23T12:59:21.000Z
2022-01-08T08:33:51.000Z
script/gen_sql_seq.py
WING-NUS/slsql
ed7162fca2a5a0a24408ec3448a3ec85c92df6a0
[ "MIT" ]
2
2020-11-29T08:23:14.000Z
2021-06-01T06:59:25.000Z
script/gen_sql_seq.py
WING-NUS/slsql
ed7162fca2a5a0a24408ec3448a3ec85c92df6a0
[ "MIT" ]
4
2020-11-29T11:55:39.000Z
2021-11-12T02:35:00.000Z
# borrowed from Spider dataset repo ################################ # Assumptions: # 1. sql is correct # 2. only table name has alias # 3. only one intersect/union/except # # val: number(float)/string(str)/sql(dict) # col_unit: (agg_id, col_id, isDistinct(bool)) # val_unit: (unit_op, col_unit1, col_unit2) # tabl...
30.491204
117
0.580571
24309dbed3bf83db60c7f4bbd23beda3a0aea947
1,008
py
Python
clock.py
dr-rodriguez/MTA-Notifier
0d09e14fc3dd5d58221dfad6d1c07889316f1419
[ "MIT" ]
1
2016-06-21T01:13:11.000Z
2016-06-21T01:13:11.000Z
clock.py
dr-rodriguez/MTA-Notifier
0d09e14fc3dd5d58221dfad6d1c07889316f1419
[ "MIT" ]
null
null
null
clock.py
dr-rodriguez/MTA-Notifier
0d09e14fc3dd5d58221dfad6d1c07889316f1419
[ "MIT" ]
null
null
null
from apscheduler.schedulers.blocking import BlockingScheduler import notifier sched = BlockingScheduler() # EDT/EST is 4/5 hours ahead of UTC, which is what Heroku runs in # Morning check @sched.scheduled_job('cron', day_of_week='mon-fri', hour=13, minute=55) def scheduled_job_morning(): m = notifier.Notifier() ...
28.8
117
0.709325
a4a952e3e3097e67e25ebca43016ce005d9bc9b7
20,687
py
Python
toontown/hood/InteractiveAnimatedProp.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/hood/InteractiveAnimatedProp.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/hood/InteractiveAnimatedProp.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
import math import random from toontown.hood import GenericAnimatedProp from direct.actor import Actor from direct.interval.IntervalGlobal import Sequence, ActorInterval, Wait, Func, SoundInterval, Parallel from direct.fsm import FSM from toontown.toonbase.ToonPythonUtil import weightedChoice from pandac.PandaModules i...
40.964356
164
0.628414
855c088484c1b137a422f7e33813b256375aa8b9
4,793
py
Python
Categolize/model_print.py
MuAuan/llightning-pytorch
38dc9ed75dd8e6f4a2a05e5a10072a549dcbf4d6
[ "MIT" ]
null
null
null
Categolize/model_print.py
MuAuan/llightning-pytorch
38dc9ed75dd8e6f4a2a05e5a10072a549dcbf4d6
[ "MIT" ]
null
null
null
Categolize/model_print.py
MuAuan/llightning-pytorch
38dc9ed75dd8e6f4a2a05e5a10072a549dcbf4d6
[ "MIT" ]
null
null
null
import torchvision.models as models from torchsummary import summary import torch import pytorch_lightning as pl from torch import nn import torch.nn.functional as F import numpy as np import time class customize_model(nn.Module): def __init__(self, input_size=128, sel_model='resnet18'): super(customize_model, s...
37.155039
112
0.638014
5ca658cdf38f6589076c3aa018c0b0bd5ac565cf
7,274
py
Python
pinax/stripe/actions/accounts.py
proitm/pinax-stripe
c5b05f699fde6bd66cc633669604e5a6d1158d8a
[ "MIT" ]
1
2021-08-17T15:12:02.000Z
2021-08-17T15:12:02.000Z
pinax/stripe/actions/accounts.py
proitm/pinax-stripe
c5b05f699fde6bd66cc633669604e5a6d1158d8a
[ "MIT" ]
114
2017-10-18T09:14:02.000Z
2019-01-24T19:03:01.000Z
pinax/stripe/actions/accounts.py
proitm/pinax-stripe
c5b05f699fde6bd66cc633669604e5a6d1158d8a
[ "MIT" ]
1
2017-10-20T08:13:09.000Z
2017-10-20T08:13:09.000Z
import datetime import stripe from .. import models, utils from .externalaccounts import sync_bank_account_from_stripe_data def create(user, country, **kwargs): """ Create an Account. Args: country: two letter country code for where the individual lives Returns: a pinax.stripe.mode...
32.185841
85
0.684905
62d183c8b3f6786b2d9d2769f9723a4f441b712c
14,848
py
Python
src/TheLanguage/Lexer/Phrases/SequencePhrase.py
davidbrownell/DavidBrownell_TheLanguage
07170b448a0ebd7fa2325c9ccd4cefdb3cf7eb98
[ "BSL-1.0" ]
null
null
null
src/TheLanguage/Lexer/Phrases/SequencePhrase.py
davidbrownell/DavidBrownell_TheLanguage
07170b448a0ebd7fa2325c9ccd4cefdb3cf7eb98
[ "BSL-1.0" ]
null
null
null
src/TheLanguage/Lexer/Phrases/SequencePhrase.py
davidbrownell/DavidBrownell_TheLanguage
07170b448a0ebd7fa2325c9ccd4cefdb3cf7eb98
[ "BSL-1.0" ]
1
2021-06-18T18:58:57.000Z
2021-06-18T18:58:57.000Z
# ---------------------------------------------------------------------- # | # | SequencePhrase.py # | # | David Brownell <db@DavidBrownell.com> # | 2021-09-22 23:06:38 # | # ---------------------------------------------------------------------- # | # | Copyright David Brownell 2021 # | Distributed u...
38.268041
127
0.541083
80febbbe8fc30a072d757572ccbbd9d7d5d7c349
85,840
py
Python
day16/data.py
ogun/advent-of-code-2020
1dcf268f9f1f6cd7c46d442b6aaa9b19ec5b2cf1
[ "MIT" ]
4
2020-12-03T13:22:12.000Z
2020-12-22T21:51:49.000Z
day16/data.py
ogun/advent-of-code-2020
1dcf268f9f1f6cd7c46d442b6aaa9b19ec5b2cf1
[ "MIT" ]
null
null
null
day16/data.py
ogun/advent-of-code-2020
1dcf268f9f1f6cd7c46d442b6aaa9b19ec5b2cf1
[ "MIT" ]
1
2020-12-12T13:41:12.000Z
2020-12-12T13:41:12.000Z
INPUT = { "rules": { "departure location": ((32, 69), (86, 968)), "departure station": ((27, 290), (301, 952)), "departure platform": ((47, 330), (347, 956)), "departure track": ((46, 804), (826, 956)), "departure date": ((25, 302), (320, 959)), "departure time": ((29...
16.447595
54
0.166787
00f738e026d83670fe80cbcbcb9287d32787c171
8,730
py
Python
ENV/lib/python3.6/site-packages/pyramid/tests/test_scripting.py
captain-c00keys/pyramid-stocks
0acf3363a6a7ee61cd41b855f43c9d6f9582ae6a
[ "MIT" ]
null
null
null
ENV/lib/python3.6/site-packages/pyramid/tests/test_scripting.py
captain-c00keys/pyramid-stocks
0acf3363a6a7ee61cd41b855f43c9d6f9582ae6a
[ "MIT" ]
null
null
null
ENV/lib/python3.6/site-packages/pyramid/tests/test_scripting.py
captain-c00keys/pyramid-stocks
0acf3363a6a7ee61cd41b855f43c9d6f9582ae6a
[ "MIT" ]
null
null
null
import unittest class Test_get_root(unittest.TestCase): def _callFUT(self, app, request=None): from pyramid.scripting import get_root return get_root(app, request) def _makeRegistry(self): return DummyRegistry([DummyFactory]) def test_it_norequest(self): registry = self._m...
36.835443
78
0.646163
27d43766b4f7ebf477fcc21947fbbead64eabac7
7,762
py
Python
blockchain_networking/blockchain_networking_env.py
TonnyTran/blockchain_networking_DRL
3d3bbdfc0c12e2b770df1f6243578aa08b27d135
[ "MIT" ]
2
2021-06-21T08:28:33.000Z
2021-11-01T13:37:21.000Z
blockchain_networking/blockchain_networking_env.py
TonnyTran/blockchain_networking_DRL
3d3bbdfc0c12e2b770df1f6243578aa08b27d135
[ "MIT" ]
null
null
null
blockchain_networking/blockchain_networking_env.py
TonnyTran/blockchain_networking_DRL
3d3bbdfc0c12e2b770df1f6243578aa08b27d135
[ "MIT" ]
1
2019-08-02T01:13:14.000Z
2019-08-02T01:13:14.000Z
import gym from gym import spaces, logger from gym.utils import seeding import numpy as np from action_space import ActionSpace from channel_space import ChannelSpace from state_space import StateSpace from mempool import Mempool, Transaction, Block from gym.spaces import Discrete class BlockchainNetworkingEnv(gym.En...
40.638743
119
0.614146
c01edadca16d3536c88cd8ba79f42d01e7e03668
4,590
py
Python
lib/python3.8/site-packages/ansible_collections/community/general/plugins/modules/docker_node_info.py
cjsteel/python3-venv-ansible-2.10.5
c95395c4cae844dc66fddde9b4343966f4b2ecd5
[ "Apache-1.1" ]
5
2020-12-16T21:42:09.000Z
2022-03-28T16:04:32.000Z
.ansible/collections/ansible_collections/community/general/plugins/modules/cloud/docker/docker_node_info.py
chronicc/proving-ground
3e392122a05fb8383a3700954baebb0df330e9e3
[ "MIT" ]
null
null
null
.ansible/collections/ansible_collections/community/general/plugins/modules/cloud/docker/docker_node_info.py
chronicc/proving-ground
3e392122a05fb8383a3700954baebb0df330e9e3
[ "MIT" ]
null
null
null
#!/usr/bin/python # # (c) 2019 Piotr Wojciechowski <piotr@it-playground.pl> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = ''' --- module: docker_node_info short_descri...
29.235669
159
0.701961
54a635a7ad8ddcb1db64f061a7ad746fb5238122
10,632
py
Python
qcdb/programs/nwchem/runner.py
philipmnel/qcdb
68e04b269559d76c40fd7d02235f6fd83824db4c
[ "BSD-3-Clause" ]
null
null
null
qcdb/programs/nwchem/runner.py
philipmnel/qcdb
68e04b269559d76c40fd7d02235f6fd83824db4c
[ "BSD-3-Clause" ]
null
null
null
qcdb/programs/nwchem/runner.py
philipmnel/qcdb
68e04b269559d76c40fd7d02235f6fd83824db4c
[ "BSD-3-Clause" ]
null
null
null
import copy import inspect import pprint import re from typing import Any, Dict, Optional import qcelemental as qcel import qcengine as qcng from qcelemental.models import AtomicInput, AtomicResult, FailedOperation from qcengine.exceptions import InputError from qcengine.programs.nwchem import NWChemHarness from qceng...
43.753086
154
0.623119
0d53971e8ce8d94804b58153006be73c7cc5ce8b
46
py
Python
python/testData/editing/firstParamStaticmethod.after.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/editing/firstParamStaticmethod.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/editing/firstParamStaticmethod.after.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
class A(object): @staticmethod def foo():
11.5
16
0.652174
160a1e2989718eb71420de44d2e60b53ae954bc8
39,244
py
Python
lpot/model/model.py
PawelGlomski-Intel/lpot
ccdb6aec0a95a66b2c747f92a34018e78a91b459
[ "Apache-2.0" ]
null
null
null
lpot/model/model.py
PawelGlomski-Intel/lpot
ccdb6aec0a95a66b2c747f92a34018e78a91b459
[ "Apache-2.0" ]
null
null
null
lpot/model/model.py
PawelGlomski-Intel/lpot
ccdb6aec0a95a66b2c747f92a34018e78a91b459
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2021 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unl...
39.362086
98
0.657859
e9a8170337dcf24b8a1b9fe16807ccc9b6ceeb35
1,986
py
Python
fsuipc_airspaces/fsuipc_airspaces.py
tjensen/fsuipc-airspaces
40100e1b88548350445818a7debd6f26d94f92ad
[ "MIT" ]
null
null
null
fsuipc_airspaces/fsuipc_airspaces.py
tjensen/fsuipc-airspaces
40100e1b88548350445818a7debd6f26d94f92ad
[ "MIT" ]
null
null
null
fsuipc_airspaces/fsuipc_airspaces.py
tjensen/fsuipc-airspaces
40100e1b88548350445818a7debd6f26d94f92ad
[ "MIT" ]
null
null
null
import argparse import logging import sys import time from typing import Union import fsuipc from fsuipc_airspaces.fs_position import FSPosition from fsuipc_airspaces.gps_position import GPSPosition from fsuipc_airspaces.simulator_connection import SimulatorConnection from fsuipc_airspaces.xplane_dataout import XPlan...
31.03125
87
0.638973
bebb2e03c59bada7c05804ca96706fdcaaface21
15,163
py
Python
qa/rpc-tests/rest.py
mattt21/zcoin
730f0c39ba47f762627f13a1e9ea66d76b57a57d
[ "MIT" ]
17
2020-03-21T21:03:31.000Z
2021-04-07T18:45:38.000Z
qa/rpc-tests/rest.py
mattt21/zcoin
730f0c39ba47f762627f13a1e9ea66d76b57a57d
[ "MIT" ]
8
2020-04-05T19:14:44.000Z
2020-05-22T04:15:31.000Z
qa/rpc-tests/rest.py
mattt21/zcoin
730f0c39ba47f762627f13a1e9ea66d76b57a57d
[ "MIT" ]
19
2020-03-04T19:32:03.000Z
2021-11-16T04:27:14.000Z
#!/usr/bin/env python3 # Copyright (c) 2014-2016 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 REST interface # from test_framework.test_framework import BitcoinTestFramework from test_fram...
45.127976
132
0.642419
9afd9b0d7afc637b94e1467881067432a844c938
3,406
py
Python
build/lib.linux-x86_64-2.7/timediff/log_parser.py
nomelif/time-diff
cc713399166d278855004b38e4911c2a07ed478f
[ "MIT" ]
2
2016-04-08T20:14:31.000Z
2019-11-19T12:23:35.000Z
timediff/log_parser.py
nomelif/time-diff
cc713399166d278855004b38e4911c2a07ed478f
[ "MIT" ]
null
null
null
timediff/log_parser.py
nomelif/time-diff
cc713399166d278855004b38e4911c2a07ed478f
[ "MIT" ]
null
null
null
import time import datetime class LogParser(): """ Class used to parse logs. """ first_time = None """ Time of the first line. """ previous_time = None """ Time of the previous line. """ def __init__(self): """ Empty _\_\_init\_\__ -method. """ pass def parse_logs(self, log_arr, time_format,...
29.877193
181
0.716089
5bffa9503299df63c16cc695e9a1089155148451
851
py
Python
2d/rotation_around_circle.py
TheEnvironmentGuy/math-magical
4c186d992aad76efabe3ea3319ecf602eacebfe2
[ "MIT" ]
null
null
null
2d/rotation_around_circle.py
TheEnvironmentGuy/math-magical
4c186d992aad76efabe3ea3319ecf602eacebfe2
[ "MIT" ]
null
null
null
2d/rotation_around_circle.py
TheEnvironmentGuy/math-magical
4c186d992aad76efabe3ea3319ecf602eacebfe2
[ "MIT" ]
null
null
null
import bpy import math """Moves selected object to predefined xyz""" def reset_pos(): bpy.context.object.location[0] = 0 bpy.context.object.location[1] = 0 bpy.context.object.location[2] = 0 """Returns Vector2 around a circle given an angle assuming radius of 1""" def rotate_pos(radian): rotated_pos =...
27.451613
73
0.676851
52c8dfc11d2952c5a9fba70fdc21b3a23a7947d0
69,435
py
Python
packages/python/plotly/plotly/graph_objs/bar/marker/_colorbar.py
eranws/plotly.py
5b0e8d3ccab55fe1a6e4ba123cfc9d718a9ffc5a
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/graph_objs/bar/marker/_colorbar.py
eranws/plotly.py
5b0e8d3ccab55fe1a6e4ba123cfc9d718a9ffc5a
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/graph_objs/bar/marker/_colorbar.py
eranws/plotly.py
5b0e8d3ccab55fe1a6e4ba123cfc9d718a9ffc5a
[ "MIT" ]
null
null
null
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ColorBar(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "bar.marker" _path_str = "bar.marker.colorbar" _valid_props = { "bgcolor", ...
35.791237
96
0.557226
3038e961f6b4cbdda47d04931a05e7382246b269
1,158
py
Python
social_core/tests/backends/test_broken.py
odidev/social-core
71b76511f0b92e4bcba60dc61d9b982bd53c5d5e
[ "BSD-3-Clause" ]
2
2020-10-08T05:44:30.000Z
2021-01-02T02:41:13.000Z
social_core/tests/backends/test_broken.py
odidev/social-core
71b76511f0b92e4bcba60dc61d9b982bd53c5d5e
[ "BSD-3-Clause" ]
6
2021-03-30T13:54:46.000Z
2021-09-22T19:23:39.000Z
virtual/lib/python3.6/site-packages/social_core/tests/backends/test_broken.py
dennismwaniki67/awards
80ed10541f5f751aee5f8285ab1ad54cfecba95f
[ "MIT" ]
3
2020-07-27T16:44:41.000Z
2020-09-03T15:26:22.000Z
import unittest2 as unittest from ...backends.base import BaseAuth from ..strategy import TestStrategy from ..models import TestStorage class BrokenBackendAuth(BaseAuth): name = 'broken' class BrokenBackendTest(unittest.TestCase): def setUp(self): self.backend = BrokenBackendAuth(TestStrategy(TestS...
30.473684
67
0.624352
c71d65d22bd8802bbeb51cc1f67d7819f61b924b
1,057
py
Python
tests/test_py_count.py
fossabot/blaze
3ea4a15de9bfc5211dfeaa6e5e4cdd5928eb2887
[ "MIT" ]
null
null
null
tests/test_py_count.py
fossabot/blaze
3ea4a15de9bfc5211dfeaa6e5e4cdd5928eb2887
[ "MIT" ]
null
null
null
tests/test_py_count.py
fossabot/blaze
3ea4a15de9bfc5211dfeaa6e5e4cdd5928eb2887
[ "MIT" ]
null
null
null
#!/usr/bin/env python from __init__ import * import random def test_count_10(benchmark): sample = generate_random_sample() choice = random.choice(ASCII) benchmark(py_str_count, sample, choice) def test_count_100(benchmark): sample = generate_random_sample(length=100) choice = random.choice(ASCII...
26.425
51
0.748344
f99ec5fb647923106bf853d341e97a63e6edc37f
4,296
py
Python
utils/loader.py
netceteragroup/Flatland-Challenge
4292e8aa778d264d025ad6d32926840864b22a21
[ "MIT" ]
4
2021-01-15T10:49:33.000Z
2021-12-31T08:11:35.000Z
utils/loader.py
netceteragroup/Flatland-Challenge
4292e8aa778d264d025ad6d32926840864b22a21
[ "MIT" ]
null
null
null
utils/loader.py
netceteragroup/Flatland-Challenge
4292e8aa778d264d025ad6d32926840864b22a21
[ "MIT" ]
null
null
null
#!/usr/bin/env python import glob import importlib.machinery import os import types import gym import humps from ray.rllib import MultiAgentEnv from ray.rllib.models import ModelCatalog from ray.rllib.models.modelv2 import ModelV2 from ray.rllib.models.tf.tf_modelv2 import TFModelV2 from ray.rllib.models.tf.attention...
31.357664
93
0.621276
809f90c0aaa247fd0ef718bf0d1a066cb18ac779
213
py
Python
syphon/init/__init__.py
ethall/syphon
dd75fd33f3f9164653f24b33c875615dc1d04182
[ "MIT" ]
null
null
null
syphon/init/__init__.py
ethall/syphon
dd75fd33f3f9164653f24b33c875615dc1d04182
[ "MIT" ]
23
2018-01-06T17:59:58.000Z
2019-02-27T15:52:20.000Z
syphon/init/__init__.py
ethall/syphon
dd75fd33f3f9164653f24b33c875615dc1d04182
[ "MIT" ]
1
2019-02-20T17:17:40.000Z
2019-02-20T17:17:40.000Z
"""syphon.init.__init__.py Copyright (c) 2017-2018 Keithley Instruments, LLC. Licensed under MIT (https://github.com/ehall/syphon/blob/master/LICENSE) """ from .init import init __all__ = [ 'init', ]
17.75
75
0.690141
2c9d4c472c89c2ec7ab2e54b31ed6f7e0f69d394
95
py
Python
thesite/accalascio/apps.py
ValentinaTibs/accalascio
984776d230f6760c6661bd47f1d6ad6e1b2f7f6f
[ "MIT" ]
null
null
null
thesite/accalascio/apps.py
ValentinaTibs/accalascio
984776d230f6760c6661bd47f1d6ad6e1b2f7f6f
[ "MIT" ]
null
null
null
thesite/accalascio/apps.py
ValentinaTibs/accalascio
984776d230f6760c6661bd47f1d6ad6e1b2f7f6f
[ "MIT" ]
null
null
null
from django.apps import AppConfig class AccalascioConfig(AppConfig): name = 'accalascio'
15.833333
34
0.768421
8f8a16386afb4581439e584f5b14cee4272fc821
1,039
py
Python
src/two_counters.py
plug-obp/plug-remote-python
9b57989e3536b34fbbd7d6cafbc674ff6f4686eb
[ "MIT" ]
null
null
null
src/two_counters.py
plug-obp/plug-remote-python
9b57989e3536b34fbbd7d6cafbc674ff6f4686eb
[ "MIT" ]
null
null
null
src/two_counters.py
plug-obp/plug-remote-python
9b57989e3536b34fbbd7d6cafbc674ff6f4686eb
[ "MIT" ]
1
2020-01-28T13:44:52.000Z
2020-01-28T13:44:52.000Z
import functools from soup_language import * from language_server import server def two_counters(max=1): # create the two actions def inc(key, env): env[key] = env[key] + 1 def reset(key, env): env[key] = 0 # define the guard/action behaviors i0 = Behavior(lambda env: env['a'] < ...
30.558824
88
0.639076
fb5e484626aa8ddf6b77732e89a0e226e9b9bacd
391
py
Python
cookery/cookery/wsgi.py
drewbrew/django-cookery
03183c8a7ea46aaf0daddb010ee08491fe7f21cc
[ "MIT" ]
4
2016-06-08T07:58:18.000Z
2021-02-20T12:37:56.000Z
cookery/cookery/wsgi.py
drewbrew/django-cookery
03183c8a7ea46aaf0daddb010ee08491fe7f21cc
[ "MIT" ]
null
null
null
cookery/cookery/wsgi.py
drewbrew/django-cookery
03183c8a7ea46aaf0daddb010ee08491fe7f21cc
[ "MIT" ]
1
2019-04-06T01:39:50.000Z
2019-04-06T01:39:50.000Z
""" WSGI config for cookery 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_SETTI...
23
78
0.785166
fd3bfda21ed75bda5bdacea619f06d9905664ca9
1,098
py
Python
pipeline/contrib/external_plugins/utils/importer/__init__.py
wkma/bk-sops
8fb5609c0c4495c28d588fbafa9d9f5f2976929b
[ "Apache-2.0" ]
55
2021-09-07T11:50:35.000Z
2022-03-23T13:19:38.000Z
pipeline/contrib/external_plugins/utils/importer/__init__.py
wkma/bk-sops
8fb5609c0c4495c28d588fbafa9d9f5f2976929b
[ "Apache-2.0" ]
64
2021-09-07T12:04:12.000Z
2022-03-29T03:47:18.000Z
pipeline/contrib/external_plugins/utils/importer/__init__.py
wkma/bk-sops
8fb5609c0c4495c28d588fbafa9d9f5f2976929b
[ "Apache-2.0" ]
20
2021-09-07T11:52:08.000Z
2022-03-28T08:05:22.000Z
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
61
115
0.810565
08cd979a029d2ed9253d71a7c1be6f006d044c62
2,219
py
Python
mydata/mydata/settings.py
jdkizer9/cs5555Lab2
30e325ef77c66aed49e61f167ce2750cebc44396
[ "MIT" ]
null
null
null
mydata/mydata/settings.py
jdkizer9/cs5555Lab2
30e325ef77c66aed49e61f167ce2750cebc44396
[ "MIT" ]
null
null
null
mydata/mydata/settings.py
jdkizer9/cs5555Lab2
30e325ef77c66aed49e61f167ce2750cebc44396
[ "MIT" ]
null
null
null
""" Django settings for mydata project. For more information on this file, see https://docs.djangoproject.com/en/1.7/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.7/ref/settings/ """ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) imp...
23.357895
71
0.725552
8acecf552512ed95d77fa892c3d1339c59e35c66
550
py
Python
plotly/validators/scatterternary/marker/colorbar/tickformatstop/_templateitemname.py
gnestor/plotly.py
a8ae062795ddbf9867b8578fe6d9e244948c15ff
[ "MIT" ]
12
2020-04-18T18:10:22.000Z
2021-12-06T10:11:15.000Z
plotly/validators/scatterternary/marker/colorbar/tickformatstop/_templateitemname.py
Vesauza/plotly.py
e53e626d59495d440341751f60aeff73ff365c28
[ "MIT" ]
27
2020-04-28T21:23:12.000Z
2021-06-25T15:36:38.000Z
plotly/validators/scatterternary/marker/colorbar/tickformatstop/_templateitemname.py
Vesauza/plotly.py
e53e626d59495d440341751f60aeff73ff365c28
[ "MIT" ]
6
2020-04-18T23:07:08.000Z
2021-11-18T07:53:06.000Z
import _plotly_utils.basevalidators class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): def __init__( self, plotly_name='templateitemname', parent_name='scatterternary.marker.colorbar.tickformatstop', **kwargs ): super(TemplateitemnameValidat...
28.947368
78
0.645455
1e02c74f2c3bf4d2f0eddc2ac9909c7c44f12548
7,084
py
Python
common/migrations/0048_auto_20170111_1744.py
baylee-d/cos.io
3f88acb0feb7a167bf9e81c42e28f9d2d38bbd43
[ "Apache-2.0" ]
null
null
null
common/migrations/0048_auto_20170111_1744.py
baylee-d/cos.io
3f88acb0feb7a167bf9e81c42e28f9d2d38bbd43
[ "Apache-2.0" ]
null
null
null
common/migrations/0048_auto_20170111_1744.py
baylee-d/cos.io
3f88acb0feb7a167bf9e81c42e28f9d2d38bbd43
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.2 on 2017-01-11 17:44 from __future__ import unicode_literals import common.blocks.collapsebox import common.blocks.columns import common.blocks.table import common.blocks.tabs from django.db import migrations import wagtail.wagtailcore.blocks import wagtail.wagtailco...
244.275862
6,432
0.756211
42bb860262587161bdc5068005b4891cde427d7a
1,563
py
Python
hashdd/decompressor/formats/compression.py
hashdd/pyhashdd
938366a8c1ff26e074c419d71b09d592730940e9
[ "Apache-2.0", "BSD-3-Clause" ]
20
2017-02-22T11:32:24.000Z
2019-11-25T18:51:41.000Z
hashdd/decompressor/formats/compression.py
hashdd/pyhashdd
938366a8c1ff26e074c419d71b09d592730940e9
[ "Apache-2.0", "BSD-3-Clause" ]
11
2017-02-24T15:18:15.000Z
2022-01-13T00:41:29.000Z
hashdd/decompressor/formats/compression.py
hashdd/pyhashdd
938366a8c1ff26e074c419d71b09d592730940e9
[ "Apache-2.0", "BSD-3-Clause" ]
4
2017-02-22T14:42:52.000Z
2017-11-26T21:24:04.000Z
""" Originally from https://stackoverflow.com/questions/13044562/python-mechanism-to-identify-compressed-file-type-and-uncompress """ class CompressedFile (object): magic = None file_type = None mime_type = None proper_extension = None def __init__(self, f): # f is an open file or file like...
22.652174
125
0.644914
a05718fbc6b0a448ea1b5b769ae5e98890398ea5
250
py
Python
src/tensor/set/_op/cumdiff.py
jedhsu/tensor
3b2fe21029fa7c50b034190e77d79d1a94ea5e8f
[ "Apache-2.0" ]
null
null
null
src/tensor/set/_op/cumdiff.py
jedhsu/tensor
3b2fe21029fa7c50b034190e77d79d1a94ea5e8f
[ "Apache-2.0" ]
null
null
null
src/tensor/set/_op/cumdiff.py
jedhsu/tensor
3b2fe21029fa7c50b034190e77d79d1a94ea5e8f
[ "Apache-2.0" ]
null
null
null
""" *Cumulative Difference* """ from dataclasses import dataclass import jax.numpy as jnp from ._operator import SetOperator __all__ = ["OuterProduct"] @dataclass class CumulativeDifference( SetOperator, ): operator = jnp.ediff1d
11.904762
34
0.724
8c39e8b7fb37b871eb2e165b0cbd84b395b07db8
3,369
py
Python
pytorch_metric_learning/losses/base_metric_loss_function.py
jacobdanovitch/pytorch_metric_learning
dbcf2d49fffe92f7dc1221b939e182c214633520
[ "MIT" ]
1
2021-05-18T01:51:04.000Z
2021-05-18T01:51:04.000Z
pytorch_metric_learning/losses/base_metric_loss_function.py
xianhuaxizi/pytorch_metric_learning
dbcf2d49fffe92f7dc1221b939e182c214633520
[ "MIT" ]
null
null
null
pytorch_metric_learning/losses/base_metric_loss_function.py
xianhuaxizi/pytorch_metric_learning
dbcf2d49fffe92f7dc1221b939e182c214633520
[ "MIT" ]
1
2021-05-18T01:51:00.000Z
2021-05-18T01:51:00.000Z
#! /usr/bin/env python3 import torch class BaseMetricLossFunction(torch.nn.Module): """ All loss functions extend this class Args: normalize_embeddings: type boolean. If True then normalize embeddins to have norm = 1 before computing the loss num_class_per_...
39.635294
90
0.630454
b3adcedf73742b054aab97713057d5eafdac1864
1,237
py
Python
test/functional/p2p-mempool.py
kenfmcoin/kenfmcoin
1fa48487593233f2066757dc54f48b2349e2d9db
[ "MIT" ]
null
null
null
test/functional/p2p-mempool.py
kenfmcoin/kenfmcoin
1fa48487593233f2066757dc54f48b2349e2d9db
[ "MIT" ]
null
null
null
test/functional/p2p-mempool.py
kenfmcoin/kenfmcoin
1fa48487593233f2066757dc54f48b2349e2d9db
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-2016 The KenFMcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test p2p mempool message. Test that nodes are disconnected if they send mempool messages when bloom ...
32.552632
75
0.708165
6e15ae81f4eb0dab4ccee8cbdcda1d50e356ddc4
3,737
py
Python
agentnet/utils/format.py
mraihan19/AgentNet
240b7ac351d5c7a156a6c9c25432d5a7afffe3cc
[ "MIT" ]
337
2016-04-20T09:34:06.000Z
2022-03-23T10:09:15.000Z
agentnet/utils/format.py
mraihan19/AgentNet
240b7ac351d5c7a156a6c9c25432d5a7afffe3cc
[ "MIT" ]
58
2016-04-04T10:21:10.000Z
2017-08-09T07:47:37.000Z
agentnet/utils/format.py
justheuristic/AgentNet
c28b99f11eb5d1c9080c2368f387b2cc4942adc3
[ "MIT" ]
88
2016-04-28T01:18:11.000Z
2021-12-05T02:48:28.000Z
""" A few auxiliary methods that work with supported collection formats. Used widely within AgentNet. """ from collections import OrderedDict from ..utils.logging import warn import lasagne import numpy as np def is_layer(var): """checks if var is lasagne layer""" return isinstance(var, lasagne.layers.Layer...
33.972727
117
0.657212
010649af14ae05ff629848a435fd45067a963449
1,786
py
Python
donkeycar/parts/ultrasonic.py
rwickman/ARC
8e5f76d6480b1844b133cec61beca891df5b37b0
[ "MIT" ]
null
null
null
donkeycar/parts/ultrasonic.py
rwickman/ARC
8e5f76d6480b1844b133cec61beca891df5b37b0
[ "MIT" ]
null
null
null
donkeycar/parts/ultrasonic.py
rwickman/ARC
8e5f76d6480b1844b133cec61beca891df5b37b0
[ "MIT" ]
null
null
null
import RPi.GPIO as GPIO import time GPIO_TRIGGER = 23 GPIO_ECHO = 24 GPIO.setmode(GPIO.BCM) GPIO.setup(GPIO_TRIGGER, GPIO.OUT) GPIO.setup(GPIO_ECHO, GPIO.IN) class Ultrasonic: def __init__(self, n = 10): self.ultrasonic_sensor_wait = 0.025 self.n = n self.distance = 0 self.on = T...
30.271186
128
0.592945
e663db6cb6fc3ee9cc7f7953851e022bc38bce79
14,042
py
Python
Scripts/PY_Files/ServerMain.py
OuNiSang/ELEC490Project
545b3afd4c193c1da04df02aadc82568021fa56f
[ "MIT" ]
null
null
null
Scripts/PY_Files/ServerMain.py
OuNiSang/ELEC490Project
545b3afd4c193c1da04df02aadc82568021fa56f
[ "MIT" ]
null
null
null
Scripts/PY_Files/ServerMain.py
OuNiSang/ELEC490Project
545b3afd4c193c1da04df02aadc82568021fa56f
[ "MIT" ]
null
null
null
import sys import cv2 as cv from cv2 import isContourConvex import numpy as np import time import threading from PyQt5.QtCore import Qt, QThread, pyqtSignal,QDateTime,QMutex,QStringListModel from PyQt5.QtGui import QIcon,QImage,QPixmap from PyQt5.QtWidgets import QDialog, QApplication, Q...
37.148148
150
0.543726
ca3d65b4cfbb24d26238259061ab669bb952aa95
2,753
py
Python
kbs/ApiManager.py
MarcoFavorito/knowledge-based-telegram-bot
a6369856f9d40e288cccf99ac8ee62ff382a8fd3
[ "MIT" ]
null
null
null
kbs/ApiManager.py
MarcoFavorito/knowledge-based-telegram-bot
a6369856f9d40e288cccf99ac8ee62ff382a8fd3
[ "MIT" ]
null
null
null
kbs/ApiManager.py
MarcoFavorito/knowledge-based-telegram-bot
a6369856f9d40e288cccf99ac8ee62ff382a8fd3
[ "MIT" ]
null
null
null
import sys from enum import Enum import requests from typing import List from kbs.models import * class ApiManager(object): """ The API Manager. It simply implements the interface for interact with the KB """ class Method(Enum): GET = 1 POST = 2 def __init__(self, key, prot, host...
30.252747
109
0.598983
24f79492c286edd64f1064f527cfb496b8949b16
18,275
py
Python
allennlp/models/model.py
parus-proj/allennlp
42f6e030f7287d6521bbc3c883a8cbfbf15f806a
[ "Apache-2.0" ]
null
null
null
allennlp/models/model.py
parus-proj/allennlp
42f6e030f7287d6521bbc3c883a8cbfbf15f806a
[ "Apache-2.0" ]
null
null
null
allennlp/models/model.py
parus-proj/allennlp
42f6e030f7287d6521bbc3c883a8cbfbf15f806a
[ "Apache-2.0" ]
1
2020-03-01T13:01:34.000Z
2020-03-01T13:01:34.000Z
""" `Model` is an abstract class representing an AllenNLP model. """ import logging import os from typing import Dict, Union, List, Set, Type import numpy import torch from allennlp.common.checks import ConfigurationError from allennlp.common.params import Params from allennlp.common.registrable import Registrable f...
45.573566
108
0.662763
22905dcc621df527889191f7386113bfb66ff548
1,850
py
Python
mnist_try.py
maxdylan/TensorTest
5de318c2b686a3094b33b455253b04dcfff3c6c9
[ "Apache-2.0" ]
null
null
null
mnist_try.py
maxdylan/TensorTest
5de318c2b686a3094b33b455253b04dcfff3c6c9
[ "Apache-2.0" ]
null
null
null
mnist_try.py
maxdylan/TensorTest
5de318c2b686a3094b33b455253b04dcfff3c6c9
[ "Apache-2.0" ]
null
null
null
#init mnist data and this step is very import for us from tensorflow.examples.tutorials.mnist import input_data mnist = input_data.read_data_sets("./MNIST_data/",one_hot=True) # realize the model of softmax that match mnist, but why the model use this realization is a question for me. import tensorflow as tf x=tf.pla...
37
173
0.762162
b13076f037ec30986dc1aa85c798f662790e3a23
19,235
py
Python
tests/eth2/core/beacon/conftest.py
onyb/trinity
347e2beac23c5c1bb4aab136bb44c162467f6ff7
[ "MIT" ]
null
null
null
tests/eth2/core/beacon/conftest.py
onyb/trinity
347e2beac23c5c1bb4aab136bb44c162467f6ff7
[ "MIT" ]
null
null
null
tests/eth2/core/beacon/conftest.py
onyb/trinity
347e2beac23c5c1bb4aab136bb44c162467f6ff7
[ "MIT" ]
null
null
null
from eth.constants import ZERO_HASH32 from eth_typing import BLSPubkey import pytest from ssz.hashable_list import HashableList from ssz.sedes import List, uint64 from eth2.beacon.constants import ( DEPOSIT_CONTRACT_TREE_DEPTH, FAR_FUTURE_EPOCH, GWEI_PER_ETH, JUSTIFICATION_BITS_LENGTH, ) from eth2.beac...
27.283688
88
0.755394
bbec155468d76bdb996904418e868746bd95c799
8,938
py
Python
dockeroo/utils.py
dockeroo/dockeroo
6395b4008d0d3d6cabdfec9d52ce448b095fdae1
[ "Apache-2.0" ]
4
2016-07-25T09:21:32.000Z
2022-02-11T19:11:23.000Z
dockeroo/utils.py
dockeroo/dockeroo
6395b4008d0d3d6cabdfec9d52ce448b095fdae1
[ "Apache-2.0" ]
null
null
null
dockeroo/utils.py
dockeroo/dockeroo
6395b4008d0d3d6cabdfec9d52ce448b095fdae1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (c) 2016, Giacomo Cariello. 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 # # Un...
30.714777
84
0.60584
222ec9f5e2757b374185715f53a7233f6c5733ca
1,052
py
Python
pal/runner/armv8a_external_runner.py
mars-research/pal
5977394cda8750ff5dcb89c2bf193ec1ef4cd137
[ "MIT" ]
26
2020-01-06T23:53:17.000Z
2022-02-01T08:58:21.000Z
pal/runner/armv8a_external_runner.py
mars-research/pal
5977394cda8750ff5dcb89c2bf193ec1ef4cd137
[ "MIT" ]
30
2019-11-13T00:55:22.000Z
2022-01-06T08:09:35.000Z
pal/runner/armv8a_external_runner.py
mars-research/pal
5977394cda8750ff5dcb89c2bf193ec1ef4cd137
[ "MIT" ]
14
2019-11-15T16:56:22.000Z
2021-12-22T10:14:17.000Z
import os import copy from pal.runner.abstract_runner import AbstractRunner from pal.parser import parse_registers from pal.parser import parse_instructions class Armv8aExternalRunner(AbstractRunner): def run(self, generators): input_root = self.config.pal_data_dir output_root = self.config.pal_ou...
37.571429
74
0.657795
a88fc2a65ec151d6cddd54e0da4d279a39a25401
3,777
py
Python
scripts/list_orphan_snapshots.py
base2Services/alfajor
a88698901264ac041a418110b72de09c69253b54
[ "MIT" ]
2
2015-08-28T05:44:00.000Z
2017-07-12T00:58:54.000Z
scripts/list_orphan_snapshots.py
base2Services/alfajor
a88698901264ac041a418110b72de09c69253b54
[ "MIT" ]
1
2016-06-21T03:38:12.000Z
2016-06-21T03:40:31.000Z
scripts/list_orphan_snapshots.py
base2Services/alfajor
a88698901264ac041a418110b72de09c69253b54
[ "MIT" ]
11
2015-11-27T02:49:13.000Z
2020-05-01T03:47:14.000Z
import sys import re import boto import os from datetime import date sys.path.append("alfajor") from alfajor import aws_ec2 account = "default" if len(sys.argv) > 1: account = sys.argv[1] ec2 = aws_ec2.EC2(debug = True, verbose = True, account = account) reAmi = re.compile('ami-[^ ]+') reVol = re.compile('vol-[^ ]...
33.424779
139
0.616892
11a0f6afcec446aff8cca2d972b9c7c2c2677cfd
2,814
py
Python
scripts/go_egad.py
jhover/cshlwork
d1b6c039c8438a9ec4a5b4e28c9b7a6d13502fcd
[ "BSD-3-Clause" ]
null
null
null
scripts/go_egad.py
jhover/cshlwork
d1b6c039c8438a9ec4a5b4e28c9b7a6d13502fcd
[ "BSD-3-Clause" ]
null
null
null
scripts/go_egad.py
jhover/cshlwork
d1b6c039c8438a9ec4a5b4e28c9b7a6d13502fcd
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/env python import argparse import logging import os import sys gitpath=os.path.expanduser("~/git/cshlwork") sys.path.append(gitpath) from utils.cococonet import * gitpath=os.path.expanduser("~/git/pyEGAD") sys.path.append(gitpath) from egad.egad import * SPECIES_NET=os.path.expanduser('~/data/cococonet/n...
30.923077
109
0.584932
af68500b9ff8dd342e1ab43e7708f22fc360e121
32,757
py
Python
web3/_utils/module_testing/eth_module.py
egalano/web3.py
9e63d1885ad2f56cf2c434f7bb016b5e07a638e0
[ "MIT" ]
null
null
null
web3/_utils/module_testing/eth_module.py
egalano/web3.py
9e63d1885ad2f56cf2c434f7bb016b5e07a638e0
[ "MIT" ]
null
null
null
web3/_utils/module_testing/eth_module.py
egalano/web3.py
9e63d1885ad2f56cf2c434f7bb016b5e07a638e0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import pytest from eth_abi import ( decode_single, ) from eth_utils import ( is_boolean, is_bytes, is_checksum_address, is_dict, is_integer, is_list_like, is_same_address, is_string, ) from hexbytes import ( HexBytes, ) from web3.exceptions import ( ...
38.628538
239
0.638917
4870fa8344ed595430a91de7164513b36ca887f0
8,357
py
Python
mypy/test/testsemanal.py
wkhere/mypy
8b47a773e783a5186210e49438ca774c717fcba6
[ "PSF-2.0" ]
null
null
null
mypy/test/testsemanal.py
wkhere/mypy
8b47a773e783a5186210e49438ca774c717fcba6
[ "PSF-2.0" ]
null
null
null
mypy/test/testsemanal.py
wkhere/mypy
8b47a773e783a5186210e49438ca774c717fcba6
[ "PSF-2.0" ]
1
2020-03-24T05:28:58.000Z
2020-03-24T05:28:58.000Z
"""Semantic analyzer test cases""" import os.path from typing import Dict, List from mypy import build from mypy.build import BuildSource from mypy.myunit import Suite from mypy.test.helpers import ( assert_string_arrays_equal, normalize_error_messages, testfile_pyversion, ) from mypy.test.data import parse_test...
37.142222
90
0.559292
73a1fc3b0c1dfffe3b7fbb12aa630a25f5ca36c7
21,729
py
Python
mains/main_gerste2.py
Janik135/AttentionDeepMIL
03609a56a6527b9cab666d07037b0513be682577
[ "MIT" ]
null
null
null
mains/main_gerste2.py
Janik135/AttentionDeepMIL
03609a56a6527b9cab666d07037b0513be682577
[ "MIT" ]
null
null
null
mains/main_gerste2.py
Janik135/AttentionDeepMIL
03609a56a6527b9cab666d07037b0513be682577
[ "MIT" ]
null
null
null
from __future__ import print_function import argparse import matplotlib.pyplot as plt import numpy as np import os import seaborn as sns import torch import uuid import uv_dataloader from cnn_model import CNNModel from cnn3d_model import ConvNetBarley from hyperparams import get_param_class from matplotlib.ticker imp...
43.89697
122
0.598233
e0a6c89ec8118f136ab88e2e4628035484ef2f4d
2,638
py
Python
server/ppm_request.py
adamjakab/PPMServerPython
2ad077cdfc7894b8e67448d0808291d469cebdcc
[ "MIT" ]
null
null
null
server/ppm_request.py
adamjakab/PPMServerPython
2ad077cdfc7894b8e67448d0808291d469cebdcc
[ "MIT" ]
null
null
null
server/ppm_request.py
adamjakab/PPMServerPython
2ad077cdfc7894b8e67448d0808291d469cebdcc
[ "MIT" ]
null
null
null
# Copyright: Copyright (c) 2020., Adam Jakab # # Author: Adam Jakab <adam at jakab dot pro> # License: MIT import json from abc import ABC from abc import abstractmethod from json import JSONDecodeError from logging import Logger from flask import request, session class PPM_Request(ABC): _config = {} _req...
27.195876
76
0.620925
f9011809a5b5102c56b8c8dc056389f8456cc013
25,634
py
Python
bstore/tests/database_tests.py
LEB-EPFL/bstore
471a24b84f18c7efe0c3e52632fc14fa27611e50
[ "BSD-3-Clause" ]
5
2016-08-29T10:01:43.000Z
2017-09-14T12:12:33.000Z
bstore/tests/database_tests.py
LEB-EPFL/bstore
471a24b84f18c7efe0c3e52632fc14fa27611e50
[ "BSD-3-Clause" ]
63
2016-07-25T06:49:00.000Z
2018-04-25T17:14:21.000Z
bstore/tests/database_tests.py
LEB-EPFL/bstore
471a24b84f18c7efe0c3e52632fc14fa27611e50
[ "BSD-3-Clause" ]
1
2019-06-24T07:40:28.000Z
2019-06-24T07:40:28.000Z
# © All rights reserved. ECOLE POLYTECHNIQUE FEDERALE DE LAUSANNE, # Switzerland, Laboratory of Experimental Biophysics, 2016-2018 # See the LICENSE.txt file for more details. """Unit tests for the database module. Notes ----- nosetests should be run in the directory just above the `tests` folder. """ __author__ =...
37.864106
82
0.586058
3ae6969e04c797294255f5951b865ac06a16df7e
3,205
py
Python
src/p_detector/logger.py
SummerOf15/tiny-instance-segmentation
bfb3f3403a4637d97763443e56841acda9405498
[ "Apache-2.0" ]
null
null
null
src/p_detector/logger.py
SummerOf15/tiny-instance-segmentation
bfb3f3403a4637d97763443e56841acda9405498
[ "Apache-2.0" ]
null
null
null
src/p_detector/logger.py
SummerOf15/tiny-instance-segmentation
bfb3f3403a4637d97763443e56841acda9405498
[ "Apache-2.0" ]
null
null
null
""" Creates a logging utilities such as check point saver and tensorboard summary writer. Specifically defined for convenience of p_detector. """ import torch import os from torch.utils.tensorboard import SummaryWriter from shutil import copyfile class SaveAndLoad(object): """ CheckLogger saves and loads t...
33.385417
89
0.608424
8c3eeb83325458c053291869b19a0cc99e9df56b
310,961
py
Python
mypy/checker.py
alcides/mypy
931e2cd1e0db2d0e3323d40abe2642701e3af3eb
[ "PSF-2.0" ]
null
null
null
mypy/checker.py
alcides/mypy
931e2cd1e0db2d0e3323d40abe2642701e3af3eb
[ "PSF-2.0" ]
null
null
null
mypy/checker.py
alcides/mypy
931e2cd1e0db2d0e3323d40abe2642701e3af3eb
[ "PSF-2.0" ]
null
null
null
"""Mypy type checker.""" import itertools import fnmatch from collections import defaultdict from contextlib import contextmanager from typing import ( Any, Dict, Set, List, cast, Tuple, TypeVar, Union, Optional, NamedTuple, Iterator, Iterable, Sequence, Mapping, Generic, AbstractSet, Callable, overload ) fro...
48.46649
99
0.589167
499416ebb1448880cdbdbff1555a4f682cd1f24f
5,627
py
Python
arcpyext/publishing/_publishing.py
dcworldwide/arcpyext
47ab401b74a2e296f7fc1eef51f80500d1300033
[ "BSD-3-Clause" ]
null
null
null
arcpyext/publishing/_publishing.py
dcworldwide/arcpyext
47ab401b74a2e296f7fc1eef51f80500d1300033
[ "BSD-3-Clause" ]
null
null
null
arcpyext/publishing/_publishing.py
dcworldwide/arcpyext
47ab401b74a2e296f7fc1eef51f80500d1300033
[ "BSD-3-Clause" ]
null
null
null
# coding=utf-8 """This module contains helper functions related to publishing.""" # Python 2/3 compatibility # pylint: disable=wildcard-import,unused-wildcard-import,wrong-import-order,wrong-import-position from __future__ import (absolute_import, division, print_function, unicode_literals) from future.builtins.disabl...
37.513333
107
0.581127
5e615f7b34aae0c8d6b63b538f5844e5d7ad7491
224
py
Python
name_extract.py
devanshu125/ResumeReviewer
de630f405988d7808112efc845f356943b0ca4f0
[ "MIT" ]
8
2019-11-29T16:28:31.000Z
2022-03-05T07:09:09.000Z
name_extract.py
devanshu125/ResumeReviewer
de630f405988d7808112efc845f356943b0ca4f0
[ "MIT" ]
8
2019-12-04T22:34:39.000Z
2019-12-07T13:40:57.000Z
name_extract.py
devanshu125/ResumeReviewer
de630f405988d7808112efc845f356943b0ca4f0
[ "MIT" ]
4
2019-12-05T15:26:28.000Z
2019-12-09T02:08:03.000Z
mylines = [] with open('resume.txt', 'rt') as myfile: for myline in myfile: mylines.append(myline) print("Name: ", end="") for c in mylines[0]: if c == "|": break; else: print(c, end="")
18.666667
40
0.522321
1e8f36a584974f36999ddd1569521d0373be8bc8
15
py
Python
mp_kiwoom/fetch.py
moonstock/mp_kiwoom
459a974159af4f5604da18c1c0e8d4f8b3f1d2e6
[ "MIT" ]
null
null
null
mp_kiwoom/fetch.py
moonstock/mp_kiwoom
459a974159af4f5604da18c1c0e8d4f8b3f1d2e6
[ "MIT" ]
null
null
null
mp_kiwoom/fetch.py
moonstock/mp_kiwoom
459a974159af4f5604da18c1c0e8d4f8b3f1d2e6
[ "MIT" ]
null
null
null
# 주식 관련 데이터 요청
7.5
14
0.6
669ce5ebc63a12a0bb107b7a3efba4975a1a12b6
41,002
py
Python
tensorflow/python/autograph/operators/control_flow_deprecated_py2.py
where-is-brett/tensorflow
5da8599b2cf9edfb9fac4431c705501bf7ceccd8
[ "Apache-2.0" ]
50
2020-03-15T01:04:36.000Z
2021-11-21T23:25:44.000Z
tensorflow/python/autograph/operators/control_flow_deprecated_py2.py
sagol/tensorflow
04f2870814d2773e09dcfa00cbe76a66a2c4de88
[ "Apache-2.0" ]
58
2021-11-22T05:41:28.000Z
2022-01-19T01:33:40.000Z
tensorflow/python/autograph/operators/control_flow_deprecated_py2.py
sagol/tensorflow
04f2870814d2773e09dcfa00cbe76a66a2c4de88
[ "Apache-2.0" ]
66
2020-05-15T10:05:12.000Z
2022-02-14T07:28:18.000Z
# Copyright 2018 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.499567
113
0.685113
ed048e16b8572ecbc0c85529b18d1d1ec5a254d5
20,780
py
Python
ccmlib/scylla_cluster.py
ilya-rarov/scylla-ccm
7ec0cb39478a05a0d5d3f0910dc421b26ed09ac4
[ "Apache-2.0" ]
null
null
null
ccmlib/scylla_cluster.py
ilya-rarov/scylla-ccm
7ec0cb39478a05a0d5d3f0910dc421b26ed09ac4
[ "Apache-2.0" ]
null
null
null
ccmlib/scylla_cluster.py
ilya-rarov/scylla-ccm
7ec0cb39478a05a0d5d3f0910dc421b26ed09ac4
[ "Apache-2.0" ]
null
null
null
# ccm clusters import os import shutil import time import subprocess import signal import yaml import uuid import datetime from six import print_ from distutils.version import LooseVersion from ccmlib import common from ccmlib.cluster import Cluster from ccmlib.scylla_node import ScyllaNode from ccmlib.node import No...
42.581967
202
0.612464
ae4199d91c66253c70aa788c627211098a60f27b
331
py
Python
recipes/how_to_add_a_list_to_a_text_document.py
jdum/odfdo
2494d0bed39f5a55974643206e9bafeed40f3a6b
[ "Apache-2.0" ]
18
2018-04-19T08:30:48.000Z
2022-02-14T11:00:27.000Z
recipes/how_to_add_a_list_to_a_text_document.py
jdum/odfdo
2494d0bed39f5a55974643206e9bafeed40f3a6b
[ "Apache-2.0" ]
15
2018-04-22T00:52:41.000Z
2021-07-05T10:16:38.000Z
recipes/how_to_add_a_list_to_a_text_document.py
jdum/odfdo
2494d0bed39f5a55974643206e9bafeed40f3a6b
[ "Apache-2.0" ]
6
2018-04-22T00:14:12.000Z
2021-12-06T01:42:07.000Z
from odfdo import Document document = Document("text") body = document.body # Lists are a dedicated object from odfdo import List my_list = List(["chocolat", "café"]) # The list factory accepts a Python list of strings and list items. # # The list can be written even though we will modify it afterwards: body.appen...
20.6875
67
0.749245
f7d0276701fde472f15742c626463a5f92848f49
698
py
Python
GDT/ferramentas/cores/__init__.py
GustavoHenriqueSchmitz/GDT
b88b0f708c64a18d19a976b26a1aa88190b3af3a
[ "MIT" ]
null
null
null
GDT/ferramentas/cores/__init__.py
GustavoHenriqueSchmitz/GDT
b88b0f708c64a18d19a976b26a1aa88190b3af3a
[ "MIT" ]
null
null
null
GDT/ferramentas/cores/__init__.py
GustavoHenriqueSchmitz/GDT
b88b0f708c64a18d19a976b26a1aa88190b3af3a
[ "MIT" ]
null
null
null
def preto(): return '\0331;30m' def vermelho(): return '\033[1;31m' def verde(): return '\033[1;32m' def amarelo(): return '\033[1;33m' def azul(): return '\033[1;34m' def magenta(): return '\033[1;35m' def ciano(): return '\033[1;36m' def cinzaclaro(): return '\033[1;37m' def ci...
13.96
23
0.591691
160799a1fcd06a7e4530dd0b224ec5b192472403
9,202
py
Python
particle filter complete.py
codehack9991/VOCOWA
96fb44ae2bd936f3d3f052c2c5e733582cd9117e
[ "MIT" ]
2
2019-01-06T09:59:26.000Z
2019-06-04T05:38:43.000Z
particle filter complete.py
codehack9991/VOCOWA
96fb44ae2bd936f3d3f052c2c5e733582cd9117e
[ "MIT" ]
null
null
null
particle filter complete.py
codehack9991/VOCOWA
96fb44ae2bd936f3d3f052c2c5e733582cd9117e
[ "MIT" ]
null
null
null
from math import * import random max_steering_angle = pi / 4.0 # You do not need to use this value, but keep in mind the limitations of a real car. bearing_noise = 0.1 # Noise parameter: should be included in sense function. steering_noise = 0.1 # Noise parameter: should be included in move function. distance_noise...
34.593985
115
0.599652
8e6fbb0e5908f1549a4a90473501dceb9036427f
540
py
Python
tacotron2_gst/utils.py
tilde-nlp/pip2-expressive-speech-synthesis-for-dialogs
195daa976cbff1c88cc7c5d88f3937764a6d68c0
[ "MIT" ]
null
null
null
tacotron2_gst/utils.py
tilde-nlp/pip2-expressive-speech-synthesis-for-dialogs
195daa976cbff1c88cc7c5d88f3937764a6d68c0
[ "MIT" ]
null
null
null
tacotron2_gst/utils.py
tilde-nlp/pip2-expressive-speech-synthesis-for-dialogs
195daa976cbff1c88cc7c5d88f3937764a6d68c0
[ "MIT" ]
null
null
null
""" Adapted from https://github.com/NVIDIA/tacotron2 """ import torch def get_mask_from_lengths(lengths: torch.Tensor) -> torch.Tensor: max_len = torch.max(lengths).item() ids = torch.arange(0, max_len, out=torch.LongTensor(max_len).to(lengths.device)) mask = (ids < lengths.unsqueeze(1)).bool() return...
30
84
0.7
1c50bed5811c2e9fd81555ef57b893713bb00573
1,798
py
Python
map-api/authentication.py
PADAS/er-map-server
4cce8c97e68697612e268000d415f5b91eb14169
[ "Apache-2.0" ]
null
null
null
map-api/authentication.py
PADAS/er-map-server
4cce8c97e68697612e268000d415f5b91eb14169
[ "Apache-2.0" ]
null
null
null
map-api/authentication.py
PADAS/er-map-server
4cce8c97e68697612e268000d415f5b91eb14169
[ "Apache-2.0" ]
null
null
null
import logging import hashlib from functools import wraps from flask import g, request, redirect, url_for, jsonify from werkzeug.exceptions import Unauthorized, BadRequest import settings import storage logger = logging.getLogger(__name__) def login_required(f): @wraps(f) def decorated_function(*args, **k...
29.966667
76
0.640156
008c508686d498eae15b7f43c74e2b040ccb6eda
1,362
py
Python
login.py
Hongwei-W/cgi-lab
2fd2d3b372abfcb0e75c93c6660a91dcdfdd2b8d
[ "Apache-2.0" ]
null
null
null
login.py
Hongwei-W/cgi-lab
2fd2d3b372abfcb0e75c93c6660a91dcdfdd2b8d
[ "Apache-2.0" ]
null
null
null
login.py
Hongwei-W/cgi-lab
2fd2d3b372abfcb0e75c93c6660a91dcdfdd2b8d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import cgi, cgitb, os from tokenize import cookie_re cgitb.enable() from templates import login_page, secret_page, after_login_incorrect import secret from http.cookies import SimpleCookie # set up cgi form s = cgi.FieldStorage() username = s.getfirst("username") password = s.getfirst("passw...
26.192308
77
0.745962
35bef2be6145907d1fee0c27ee543eae93d284d4
551
py
Python
output/models/nist_data/list_pkg/nmtokens/schema_instance/nistschema_sv_iv_list_nmtokens_pattern_3_xsd/nistschema_sv_iv_list_nmtokens_pattern_3.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/nist_data/list_pkg/nmtokens/schema_instance/nistschema_sv_iv_list_nmtokens_pattern_3_xsd/nistschema_sv_iv_list_nmtokens_pattern_3.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/nist_data/list_pkg/nmtokens/schema_instance/nistschema_sv_iv_list_nmtokens_pattern_3_xsd/nistschema_sv_iv_list_nmtokens_pattern_3.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from dataclasses import dataclass, field from typing import List __NAMESPACE__ = "NISTSchema-SV-IV-list-NMTOKENS-pattern-3-NS" @dataclass class NistschemaSvIvListNmtokensPattern3: class Meta: name = "NISTSchema-SV-IV-list-NMTOKENS-pattern-3" namespace = "NISTSchema-SV-IV-list-NMTOKENS-pattern-3-N...
26.238095
73
0.611615
8d164e9032d5779d3547d2420799066f5a68eaa8
489
py
Python
PC/TCPExample/TCPClient.py
factoryal-dev-iiot03/Wrist-Bayoen
5d33739ed5a6c3d37586611a138b035cdffbd013
[ "MIT" ]
null
null
null
PC/TCPExample/TCPClient.py
factoryal-dev-iiot03/Wrist-Bayoen
5d33739ed5a6c3d37586611a138b035cdffbd013
[ "MIT" ]
null
null
null
PC/TCPExample/TCPClient.py
factoryal-dev-iiot03/Wrist-Bayoen
5d33739ed5a6c3d37586611a138b035cdffbd013
[ "MIT" ]
1
2019-11-27T11:43:31.000Z
2019-11-27T11:43:31.000Z
import socket HOST = '127.0.0.1' # The server's hostname or IP address PORT = 6789 # The port used by the server with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s: s.connect((HOST, PORT)) while True: message = input() if message=='-1': break message += '\n' s...
28.764706
60
0.576687
66dddb5a582bb59f566e7d1ae2b174fd2deb7b6b
14,552
py
Python
mriqc/classifier/cv.py
effigies/mriqc
de60ff0f65e4fe0e315143fe3b75ecd940beb2b1
[ "BSD-3-Clause" ]
null
null
null
mriqc/classifier/cv.py
effigies/mriqc
de60ff0f65e4fe0e315143fe3b75ecd940beb2b1
[ "BSD-3-Clause" ]
null
null
null
mriqc/classifier/cv.py
effigies/mriqc
de60ff0f65e4fe0e315143fe3b75ecd940beb2b1
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Author: oesteban # @Date: 2015-11-19 16:44:27 # @Last Modified by: oesteban # @Last Modified time: 2017-03-07 19:39:20 """ ============================================================ :mod:`mriqc.classifier.cv` -- MRIQC Cross-validation Helpers ====================...
36.654912
98
0.583562
2ba8b5a3d6f789d902a3c35acb169d32315dad19
7,284
py
Python
kubernetes_asyncio/client/models/v2beta2_horizontal_pod_autoscaler.py
PidgeyBE/kubernetes_asyncio
14d15dc309890253c26b6274a022e84441e05217
[ "Apache-2.0" ]
null
null
null
kubernetes_asyncio/client/models/v2beta2_horizontal_pod_autoscaler.py
PidgeyBE/kubernetes_asyncio
14d15dc309890253c26b6274a022e84441e05217
[ "Apache-2.0" ]
null
null
null
kubernetes_asyncio/client/models/v2beta2_horizontal_pod_autoscaler.py
PidgeyBE/kubernetes_asyncio
14d15dc309890253c26b6274a022e84441e05217
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: v1.13.5 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class V2beta2Hor...
32.959276
295
0.63207
b3b8786d666242378710e31ffe1502ded111906b
641
py
Python
neurallog/knowledge/theory/manager/revision/operator/__init__.py
guimaraes13/NeuralLog
63cca557257ec67905b79048718db385cc4c3aab
[ "Apache-2.0" ]
6
2021-05-04T12:24:17.000Z
2021-07-28T03:20:48.000Z
neurallog/knowledge/theory/manager/revision/operator/__init__.py
guimaraes13/NeuralLog
63cca557257ec67905b79048718db385cc4c3aab
[ "Apache-2.0" ]
null
null
null
neurallog/knowledge/theory/manager/revision/operator/__init__.py
guimaraes13/NeuralLog
63cca557257ec67905b79048718db385cc4c3aab
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Victor Guimarães # # 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 i...
35.611111
75
0.74727
70f6767c54c622d95d73508e0ed31380c0f95e82
2,396
py
Python
setup.py
dreipol/django-cookie-monster
d2bdabf385ab2db1f88b62940fd0c12568d87a67
[ "BSD-3-Clause" ]
4
2021-09-17T21:59:54.000Z
2021-09-18T13:23:23.000Z
setup.py
dreipol/django-cookie-monster
d2bdabf385ab2db1f88b62940fd0c12568d87a67
[ "BSD-3-Clause" ]
4
2019-10-21T14:45:53.000Z
2021-05-11T09:57:27.000Z
setup.py
dreipol/django-cookie-monster
d2bdabf385ab2db1f88b62940fd0c12568d87a67
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import re import sys try: from setuptools import setup except ImportError: from distutils.core import setup def get_version(*file_paths): """Retrieves the version from cookie_monster/__init__.py""" filename = os.path.join(os.path.dirname(__file_...
30.329114
70
0.6202
cca421482bb6611434df46f3aeed631dc0bf5948
10,074
py
Python
pandas/tests/arrays/test_array.py
developing-coder/pandas
9feb3ad92cc0397a04b665803a49299ee7aa1037
[ "BSD-3-Clause" ]
1
2019-05-04T03:42:25.000Z
2019-05-04T03:42:25.000Z
pandas/tests/arrays/test_array.py
developing-coder/pandas
9feb3ad92cc0397a04b665803a49299ee7aa1037
[ "BSD-3-Clause" ]
null
null
null
pandas/tests/arrays/test_array.py
developing-coder/pandas
9feb3ad92cc0397a04b665803a49299ee7aa1037
[ "BSD-3-Clause" ]
null
null
null
import datetime import decimal import numpy as np import pytest import pytz from pandas.core.dtypes.dtypes import registry import pandas as pd from pandas.api.extensions import register_extension_dtype from pandas.api.types import is_scalar from pandas.core.arrays import PandasArray, integer_array, period_array from...
32.921569
79
0.62021
4da1e3472de29f4a5230d06710ef30027a360fab
1,174
py
Python
service/utils.py
yutiansut/cilantro
3fa579999e7d5a6d6041ccc7e309c667fc7eac90
[ "Apache-2.0" ]
3
2019-09-04T12:40:33.000Z
2021-12-28T16:33:27.000Z
service/utils.py
yutiansut/cilantro
3fa579999e7d5a6d6041ccc7e309c667fc7eac90
[ "Apache-2.0" ]
97
2018-05-29T13:27:04.000Z
2021-11-02T11:03:33.000Z
service/utils.py
yutiansut/cilantro
3fa579999e7d5a6d6041ccc7e309c667fc7eac90
[ "Apache-2.0" ]
16
2018-04-25T11:39:21.000Z
2019-12-16T14:37:39.000Z
import os def get_all_file_paths_from_dir(dir_path: str): """ Return a list of the paths of files in a given directory with sub-dirs. :param str dir_path: The directory to get the paths from :return: list of the file paths. """ file_list = [] for entry in os.scandir(dir_path): if ...
28.634146
78
0.584327
9b1eda889f6519b8ee30546266200aae83c549a5
3,865
py
Python
tests/test_derivative_structure.py
lan496/dsenum
24412c20737bdaf20179afabb49ff407cb92e880
[ "MIT" ]
null
null
null
tests/test_derivative_structure.py
lan496/dsenum
24412c20737bdaf20179afabb49ff407cb92e880
[ "MIT" ]
15
2019-01-21T07:30:36.000Z
2020-08-14T10:58:24.000Z
tests/test_derivative_structure.py
lan496/dsenum
24412c20737bdaf20179afabb49ff407cb92e880
[ "MIT" ]
null
null
null
import numpy as np from pymatgen.analysis.structure_matcher import StructureMatcher from pymatgen.core import Lattice, Structure from pymatgen.core.periodic_table import Specie, DummySpecie, Element from pymatgen.io.vasp.inputs import Poscar import pytest from dsenum import StructureEnumerator from dsenum.utils import...
28.62963
92
0.639845
f7030c00749497a837fcb1e598f6a89804856653
46,146
py
Python
chia/wallet/wallet_node.py
loueradun/silicoin-blockchain
a199dd86ffb84f214ccd6192ad42d150badc05e1
[ "Apache-2.0" ]
null
null
null
chia/wallet/wallet_node.py
loueradun/silicoin-blockchain
a199dd86ffb84f214ccd6192ad42d150badc05e1
[ "Apache-2.0" ]
4
2021-11-16T08:18:39.000Z
2022-03-29T08:12:41.000Z
chia/wallet/wallet_node.py
Devh4ox4d/silishitcoin
4372d06aa4a54220f2bde29c8081410503679a82
[ "Apache-2.0" ]
null
null
null
import asyncio import json import logging import socket import time import traceback from pathlib import Path from typing import Callable, Dict, List, Optional, Set, Tuple, Union from blspy import PrivateKey from chia.consensus.block_record import BlockRecord from chia.consensus.blockchain_interface import BlockchainI...
45.241176
118
0.616543
c19fc8f65f7546e7848b7f0b9a2f95a898f1c98f
1,557
py
Python
homelab-ios-scp-server-off.py
telcoserf/IOSPackageUploader
3a4be7ef2dc759cca1e82236da7fa95e38b8d949
[ "MIT" ]
null
null
null
homelab-ios-scp-server-off.py
telcoserf/IOSPackageUploader
3a4be7ef2dc759cca1e82236da7fa95e38b8d949
[ "MIT" ]
null
null
null
homelab-ios-scp-server-off.py
telcoserf/IOSPackageUploader
3a4be7ef2dc759cca1e82236da7fa95e38b8d949
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ INFO: This script connects to an IOS device and disables the SCP server. AUTHOR: zmw DATE: 20170504 17:00 PDT """ #Make script compatible with both Python2 and Python3. from __future__ import absolute_import, division, print_function #Import functions/libraries needed. import netmiko impo...
28.833333
122
0.769428
cf21c98a15f1f334acf679a717f6ee080a97277f
5,165
py
Python
source/conf.py
1185072457/linux-note
5dd6ffdc26d84b9edcb8b4ff223cc3c01f125a2e
[ "MIT" ]
null
null
null
source/conf.py
1185072457/linux-note
5dd6ffdc26d84b9edcb8b4ff223cc3c01f125a2e
[ "MIT" ]
null
null
null
source/conf.py
1185072457/linux-note
5dd6ffdc26d84b9edcb8b4ff223cc3c01f125a2e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # linux-note documentation build configuration file, created by # sphinx-quickstart on Thu Jan 4 10:51:31 2018. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this #...
29.855491
79
0.677444
a35e6995893db5f876df60febae997b121b30fe4
20,999
py
Python
train.py
miha2227/GroupSSL
7521111427740dd1e09dfad3e590f3b768b8ddaa
[ "MIT" ]
null
null
null
train.py
miha2227/GroupSSL
7521111427740dd1e09dfad3e590f3b768b8ddaa
[ "MIT" ]
null
null
null
train.py
miha2227/GroupSSL
7521111427740dd1e09dfad3e590f3b768b8ddaa
[ "MIT" ]
null
null
null
from __future__ import print_function import argparse import os import shutil import time import random import numpy as np import torch import torch.nn as nn import torch.nn.parallel import torch.backends.cudnn as cudnn import torch.optim as optim import torch.utils.data as data import torchvision.transforms as tran...
38.041667
194
0.6046
ddbde0ce09a213d36cab927dbbf84b6f69de10ef
7,226
py
Python
posthog/api/test/test_action.py
bcruddy/posthog
9ae6854254085bbe10cc4f9c98820d9efed52424
[ "MIT" ]
2
2020-02-24T20:05:53.000Z
2020-04-16T06:41:19.000Z
posthog/api/test/test_action.py
bcruddy/posthog
9ae6854254085bbe10cc4f9c98820d9efed52424
[ "MIT" ]
null
null
null
posthog/api/test/test_action.py
bcruddy/posthog
9ae6854254085bbe10cc4f9c98820d9efed52424
[ "MIT" ]
3
2020-02-21T23:19:41.000Z
2020-03-12T11:14:47.000Z
from .base import BaseTest from posthog.models import Action, ActionStep, Event, Element, Person from freezegun import freeze_time # type: ignore class TestAction(BaseTest): TESTS_API = True def test_create_and_update_action(self): response = self.client.post('/api/action/', data={ 'name'...
48.824324
162
0.62372
39c045de8177b15b11e090d0ca60a7539e66ff28
14,437
py
Python
tools/infer/utility.py
vinhtq115/PaddleOCR
5730d5cd48b38b163ff06d0f3c57da5991aa9448
[ "Apache-2.0" ]
null
null
null
tools/infer/utility.py
vinhtq115/PaddleOCR
5730d5cd48b38b163ff06d0f3c57da5991aa9448
[ "Apache-2.0" ]
null
null
null
tools/infer/utility.py
vinhtq115/PaddleOCR
5730d5cd48b38b163ff06d0f3c57da5991aa9448
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 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 appli...
36.273869
85
0.615363
b503099e3d79c97b9e64e46205542256310ded9c
403
py
Python
thippiproject/thippiproject/wsgi.py
Anandgowda18/djangocomplete
c9eebe7834e404c73deca295289142a1e95ab573
[ "Apache-2.0" ]
null
null
null
thippiproject/thippiproject/wsgi.py
Anandgowda18/djangocomplete
c9eebe7834e404c73deca295289142a1e95ab573
[ "Apache-2.0" ]
null
null
null
thippiproject/thippiproject/wsgi.py
Anandgowda18/djangocomplete
c9eebe7834e404c73deca295289142a1e95ab573
[ "Apache-2.0" ]
1
2021-08-31T10:20:49.000Z
2021-08-31T10:20:49.000Z
""" WSGI config for thippiproject project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO...
23.705882
78
0.791563
4fdc2031da3e0cc1d0c2e371a44b6acbbbd37d34
2,568
py
Python
calefaction/modules/campaigns/routes.py
earwig/calefaction
fba864431755e07a2a9cc40c03a7958656371bc6
[ "MIT" ]
4
2017-01-11T07:22:43.000Z
2020-01-08T20:43:14.000Z
calefaction/modules/campaigns/routes.py
earwig/calefaction
fba864431755e07a2a9cc40c03a7958656371bc6
[ "MIT" ]
null
null
null
calefaction/modules/campaigns/routes.py
earwig/calefaction
fba864431755e07a2a9cc40c03a7958656371bc6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from flask import abort, g, redirect, request, url_for from flask_mako import render_template from .getters import get_current from .._provided import blueprint, config __all__ = ["home", "navitem", "current_campaign", "campaign", "operation", "set_campaign"] def home(): """R...
37.217391
79
0.66433
292a11d732394658ce678c3e96b6aeaa300e5fd1
5,623
py
Python
src/dnetworks/layers/conv.py
Javicadserres/dnetworks
ff648a24dbc6d882c0986feb9c23549d30a9c1e8
[ "MIT" ]
1
2021-02-07T22:47:11.000Z
2021-02-07T22:47:11.000Z
src/dnetworks/layers/conv.py
Javicadserres/dnetworks
ff648a24dbc6d882c0986feb9c23549d30a9c1e8
[ "MIT" ]
1
2021-01-30T23:37:24.000Z
2021-02-07T21:06:30.000Z
src/dnetworks/layers/conv.py
Javicadserres/DNet
173f9dfa35ae1cff8dbeec3c1d24cb00990b41a6
[ "MIT" ]
null
null
null
import numpy as np from .base import ConvBase class Conv2D(ConvBase): """ Applies a 2D convolution over an input signal composed of several input planes. The formula of the convolution can be described as: .. math:: \text{out}(C_{\text{out}_j}, N_i) = \text{bias}(C_{\text{out}_j}) + ...
28.984536
102
0.548817
3ce057e30e56681b16563620d4399876ca6a875f
14,063
py
Python
tests/test_models.py
RishabhSehgal/keras_cv_attention_models
c1e20e45815339d70a987ec7dd9e6f926b4eb21d
[ "MIT" ]
null
null
null
tests/test_models.py
RishabhSehgal/keras_cv_attention_models
c1e20e45815339d70a987ec7dd9e6f926b4eb21d
[ "MIT" ]
null
null
null
tests/test_models.py
RishabhSehgal/keras_cv_attention_models
c1e20e45815339d70a987ec7dd9e6f926b4eb21d
[ "MIT" ]
null
null
null
import pytest from tensorflow import keras from skimage.data import chelsea import sys sys.path.append(".") import keras_cv_attention_models def test_Beit_defination(): mm = keras_cv_attention_models.beit.BeitBasePatch16(pretrained=None) assert isinstance(mm, keras.models.Model) mm = keras_cv_attention...
36.338501
123
0.75304
bc6408d6d458930b273b9c4766179f81fbd99a42
583
py
Python
dict_sorting.py
iggy2k/cursed_corrector
5f56a34240cfd889400de36e54b2d1fdd09c55d7
[ "MIT" ]
null
null
null
dict_sorting.py
iggy2k/cursed_corrector
5f56a34240cfd889400de36e54b2d1fdd09c55d7
[ "MIT" ]
null
null
null
dict_sorting.py
iggy2k/cursed_corrector
5f56a34240cfd889400de36e54b2d1fdd09c55d7
[ "MIT" ]
null
null
null
words = [] with open('words_alpha.txt', 'r') as fin: for line in fin: words.append(line.strip()) words.sort(key=len) idx = 1 with open('words_sorted.txt', 'w') as fout: length_line_seps = [] # Build the first line of the file, which contains line numbers of where # to find words of a specific...
24.291667
76
0.596913
604eb0ffd55192252c8cba72a5ac580d7affbb1d
143,449
py
Python
src/transformers/generation_utils.py
mayanksingh09/transformers
f54ab12798d746ce6b9717abf32f4d7b8e5d042e
[ "Apache-2.0" ]
15
2021-08-10T01:10:44.000Z
2022-01-20T15:23:49.000Z
src/transformers/generation_utils.py
4nalog/transformers
76cadb7943c8492ec481f4f3925e9e8793a32c9d
[ "Apache-2.0" ]
1
2020-03-21T21:38:47.000Z
2020-03-21T21:38:50.000Z
src/transformers/generation_utils.py
4nalog/transformers
76cadb7943c8492ec481f4f3925e9e8793a32c9d
[ "Apache-2.0" ]
1
2021-04-02T20:42:10.000Z
2021-04-02T20:42:10.000Z
# coding=utf-8 # Copyright 2020 The Google AI Language Team Authors, Facebook AI Research authors and The HuggingFace Inc. team. # Copyright (c) 2020, 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 L...
55.600388
201
0.653194
0d094f41d4ecd583a433f51407b8e1ef8468f31c
4,083
py
Python
pylimit/pyratelimit.py
joaomedeiros95/pylimit
d2170a8c02a9be083f37c9e4ec1e28700a33d64e
[ "Apache-2.0" ]
null
null
null
pylimit/pyratelimit.py
joaomedeiros95/pylimit
d2170a8c02a9be083f37c9e4ec1e28700a33d64e
[ "Apache-2.0" ]
null
null
null
pylimit/pyratelimit.py
joaomedeiros95/pylimit
d2170a8c02a9be083f37c9e4ec1e28700a33d64e
[ "Apache-2.0" ]
2
2019-11-20T12:02:10.000Z
2020-11-10T14:56:56.000Z
import time from pylimit.redis_helper import RedisHelper from pylimit.pyratelimit_exception import PyRateLimitException class PyRateLimit(object): redis_helper = None # type: RedisHelper def __init__(self): self.period = None # type: int self.limit = None # type: int @cla...
38.518868
114
0.67034
054fafa8407e9a461b49bad52cc998c4006bfef8
1,111
py
Python
gfg/arrays/min_distance_in_array.py
rrwt/daily-coding-challenge
b16fc365fd142ebab429e605cb146c8bb0bc97a2
[ "MIT" ]
1
2019-04-18T03:29:02.000Z
2019-04-18T03:29:02.000Z
gfg/arrays/min_distance_in_array.py
rrwt/daily-coding-challenge
b16fc365fd142ebab429e605cb146c8bb0bc97a2
[ "MIT" ]
null
null
null
gfg/arrays/min_distance_in_array.py
rrwt/daily-coding-challenge
b16fc365fd142ebab429e605cb146c8bb0bc97a2
[ "MIT" ]
null
null
null
""" Given an unsorted array arr[] and two numbers x and y, find the minimum distance between x and y in arr[]. The array might also contain duplicates. You may assume that both x and y are different and present in arr[]. """ import random def min_distance(arr: list, x: int, y: int) -> int: index = 0 while arr...
23.638298
68
0.533753
1fa73e76070d9fa72e10752123cc9b7627936d86
19,471
py
Python
op_robot_tests/tests_files/service_keywords.py
alexmudra/robot_tests
3c2b56205aa6d36be18ff306698f7fc57e0955c7
[ "Apache-2.0" ]
null
null
null
op_robot_tests/tests_files/service_keywords.py
alexmudra/robot_tests
3c2b56205aa6d36be18ff306698f7fc57e0955c7
[ "Apache-2.0" ]
null
null
null
op_robot_tests/tests_files/service_keywords.py
alexmudra/robot_tests
3c2b56205aa6d36be18ff306698f7fc57e0955c7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 - import operator from .local_time import get_now, TZ from copy import deepcopy from datetime import timedelta from dateutil.parser import parse from dpath.util import new as xpathnew from haversine import haversine from iso8601 import parse_date from json import load, loads from jsonpath_rw import ...
34.52305
134
0.633763
d74847d81447b5fed4a74e67cd9074086698e740
4,910
py
Python
appProcess.py
DannyPol/flatcam
25a8634d0658e98b7fae31a095f8bef40c1b3067
[ "MIT" ]
1
2022-02-11T06:19:34.000Z
2022-02-11T06:19:34.000Z
appProcess.py
MRemy2/FlatCam
d4f941335ca8a8d5351aab23b396f99da06a9029
[ "MIT" ]
null
null
null
appProcess.py
MRemy2/FlatCam
d4f941335ca8a8d5351aab23b396f99da06a9029
[ "MIT" ]
null
null
null
# ########################################################## # FlatCAM: 2D Post-processing for Manufacturing # # http://flatcam.org # # Author: Juan Pablo Caram (c) # # Date: 2/5/2014 # # MIT Licence ...
27.430168
116
0.601222
c860e0200a9e7e88f9dc6c16c79cf7e580b4d073
12,155
py
Python
graphene_mongo/tests/test_converter.py
wangsha/graphene-mongo
52d30413f1791976546f896a43a74cc4a9318faa
[ "MIT" ]
260
2018-02-03T01:00:42.000Z
2022-02-18T12:42:01.000Z
graphene_mongo/tests/test_converter.py
wangsha/graphene-mongo
52d30413f1791976546f896a43a74cc4a9318faa
[ "MIT" ]
159
2018-02-09T07:35:03.000Z
2022-03-20T03:43:23.000Z
graphene_mongo/tests/test_converter.py
wangsha/graphene-mongo
52d30413f1791976546f896a43a74cc4a9318faa
[ "MIT" ]
124
2018-02-04T20:19:01.000Z
2022-03-25T21:40:41.000Z
import graphene import mongoengine from py.test import raises from .models import ( Article, Editor, EmbeddedArticle, EmbeddedFoo, Player, Reporter, ProfessorMetadata, ProfessorVector, Publisher, ) from .. import registry from .. import advanced_types from ..converter import convert...
30.694444
85
0.735253
a82131681fc3a93bc26f5481ca75666af7cea183
703
py
Python
PruebaFinal/PruebaFinal/urls.py
Estuardiaz2611/PruebaFInal
0ce45adef5bf1e49373348809f0cc4b61b7969c2
[ "MIT" ]
1
2020-05-28T19:40:40.000Z
2020-05-28T19:40:40.000Z
PruebaFinal/PruebaFinal/urls.py
Estuardiaz2611/PruebaFInal
0ce45adef5bf1e49373348809f0cc4b61b7969c2
[ "MIT" ]
null
null
null
PruebaFinal/PruebaFinal/urls.py
Estuardiaz2611/PruebaFInal
0ce45adef5bf1e49373348809f0cc4b61b7969c2
[ "MIT" ]
null
null
null
from django.contrib import admin from django.conf.urls import url, include from django.urls import path from django.contrib.auth.decorators import login_required from django.contrib.auth.views import LoginView, PasswordResetView, logout_then_login,\ PasswordResetDoneView, PasswordResetConfirmView, PasswordResetComp...
43.9375
94
0.763869
f2a129992a533990dee0cb232fa70002117d1c84
2,612
py
Python
qlcp21a/JZ_merge.py
RapidLzj/QLCP21A
52fb295ac72f79f0e5aa3310ed5849960659bf08
[ "MIT" ]
null
null
null
qlcp21a/JZ_merge.py
RapidLzj/QLCP21A
52fb295ac72f79f0e5aa3310ed5849960659bf08
[ "MIT" ]
null
null
null
qlcp21a/JZ_merge.py
RapidLzj/QLCP21A
52fb295ac72f79f0e5aa3310ed5849960659bf08
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ 201901, Dr. Jie Zheng, Beijing & Xinglong, NAOC 202101-? Dr. Jie Zheng & Dr./Prof. Linqiao Jiang Light_Curve_Pipeline v3 (2021A) Upgrade from former version, remove unused code """ import os import numpy as np import astropy.io.fits as fits import astropy.io.ascii as ascii ...
29.681818
96
0.55245
6bf7abceac04b84913cca15cc17d19d87a400440
1,103
py
Python
djangoecommerce/urls.py
roneysousa/oneecommerce
cb201cfb0b04adc3518172f57fca7779eaecdcf6
[ "CC0-1.0" ]
null
null
null
djangoecommerce/urls.py
roneysousa/oneecommerce
cb201cfb0b04adc3518172f57fca7779eaecdcf6
[ "CC0-1.0" ]
null
null
null
djangoecommerce/urls.py
roneysousa/oneecommerce
cb201cfb0b04adc3518172f57fca7779eaecdcf6
[ "CC0-1.0" ]
null
null
null
"""djangoecommerce URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.9/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') C...
35.580645
79
0.711695
6283fd5f2e05e3a148f8326929dead7e4c016ec0
999
py
Python
edgetpu/basic/edgetpu_utils.py
SanggunLee/edgetpu
d3cf166783265f475c1ddba5883e150ee84f7bfe
[ "Apache-2.0" ]
320
2019-09-19T07:10:48.000Z
2022-03-12T01:48:56.000Z
edgetpu/basic/edgetpu_utils.py
Machine-Learning-Practice/edgetpu
6d699665efdc5d84944b5233223c55fe5d3bd1a6
[ "Apache-2.0" ]
563
2019-09-27T06:40:40.000Z
2022-03-31T23:12:15.000Z
edgetpu/basic/edgetpu_utils.py
Machine-Learning-Practice/edgetpu
6d699665efdc5d84944b5233223c55fe5d3bd1a6
[ "Apache-2.0" ]
119
2019-09-25T02:51:10.000Z
2022-03-03T08:11:12.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
41.625
74
0.818819