hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
4a1347b02d3fc237367e2d4998338508f74966f5
3,059
py
Python
realworldrl_suite/utils/accumulators_test.py
Roryoung/realworldrl_suite
dfcbb700eff20c39c649e235e16d087393bf7e9a
[ "Apache-2.0" ]
284
2020-03-23T17:10:46.000Z
2022-03-27T08:35:12.000Z
realworldrl_suite/utils/accumulators_test.py
dylanamiller/rwrl_pybullet
be7a51cffa7f5f9cb77a387c16bad209e0f851f8
[ "Apache-2.0" ]
2
2021-05-21T14:04:51.000Z
2021-11-29T12:33:08.000Z
realworldrl_suite/utils/accumulators_test.py
dylanamiller/rwrl_pybullet
be7a51cffa7f5f9cb77a387c16bad209e0f851f8
[ "Apache-2.0" ]
21
2020-07-29T03:23:31.000Z
2022-01-16T11:37:49.000Z
# coding=utf-8 # Copyright 2020 The Real-World RL Suite Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
33.988889
77
0.700556
4a1348544e3864510af8295a9190f1b687ccc320
91
py
Python
python/teste2.py
viniciusRG1/salve
b009370430f2338d553301c9a04fdba71f0f68a3
[ "MIT" ]
null
null
null
python/teste2.py
viniciusRG1/salve
b009370430f2338d553301c9a04fdba71f0f68a3
[ "MIT" ]
null
null
null
python/teste2.py
viniciusRG1/salve
b009370430f2338d553301c9a04fdba71f0f68a3
[ "MIT" ]
null
null
null
idade = int(input("digite sua idade")) if idade >= 18 : print("você é maior de idade")
15.166667
39
0.637363
4a134967ffc8bd5254637cde815932708614fd78
6,877
py
Python
code/batch-ai.py
lu-project/batch-ai
ffd8d40f924f75a8efc76f0f359db1c2e183ae7e
[ "MIT" ]
null
null
null
code/batch-ai.py
lu-project/batch-ai
ffd8d40f924f75a8efc76f0f359db1c2e183ae7e
[ "MIT" ]
null
null
null
code/batch-ai.py
lu-project/batch-ai
ffd8d40f924f75a8efc76f0f359db1c2e183ae7e
[ "MIT" ]
null
null
null
###################################################################### # Lablup hackfest concept code for Azure Batch for AI # https://docs.microsoft.com/en-us/azure/batch-ai/quickstart-python ###################################################################### # pip install azure-batch # pip install azure-mgmt-sche...
38.418994
125
0.732151
4a134992c4dbd7df5dd52a1ac840f4640bd6c175
19,541
py
Python
scout/dao/space.py
charlon/scout
9788936c121ebb1022afac21eee497754648448c
[ "Apache-2.0" ]
null
null
null
scout/dao/space.py
charlon/scout
9788936c121ebb1022afac21eee497754648448c
[ "Apache-2.0" ]
null
null
null
scout/dao/space.py
charlon/scout
9788936c121ebb1022afac21eee497754648448c
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 from django.conf import settings from uw_spotseeker import Spotseeker from restclients_core.exceptions import DataFailureException import datetime import pytz import random OPEN_PERIODS = { # 5am - 10:59am 'morning': { ...
34.770463
79
0.580062
4a134a8ea4e0c9ae382c8eb53866f43949857919
30,003
py
Python
galini/sdp/cuts_generator.py
cog-imperial/galini
b27e62b4e981818624f8dc315f0cadee2f7cbed2
[ "Apache-2.0" ]
14
2020-02-17T14:24:16.000Z
2022-03-18T03:21:32.000Z
galini/sdp/cuts_generator.py
JackaChou/galini
b27e62b4e981818624f8dc315f0cadee2f7cbed2
[ "Apache-2.0" ]
7
2020-09-26T19:52:59.000Z
2022-01-10T21:00:44.000Z
galini/sdp/cuts_generator.py
JackaChou/galini
b27e62b4e981818624f8dc315f0cadee2f7cbed2
[ "Apache-2.0" ]
5
2020-03-13T16:00:49.000Z
2022-02-10T10:19:10.000Z
# Copyright 2019 Radu Baltean-Lugojan # # 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 ...
45.597264
163
0.594974
4a134b0771b44df4880a61a366e81adfcc0b5639
691
py
Python
setup.py
ananswam/bootstrapping
3dd412917751b4ea9295311881fe79851a9552b1
[ "MIT" ]
null
null
null
setup.py
ananswam/bootstrapping
3dd412917751b4ea9295311881fe79851a9552b1
[ "MIT" ]
null
null
null
setup.py
ananswam/bootstrapping
3dd412917751b4ea9295311881fe79851a9552b1
[ "MIT" ]
null
null
null
from distutils.core import setup from Cython.Build import cythonize from numpy import get_include from distutils.extension import Extension import os numpyInclude = [get_include(), '.'] sourceFiles = ['random.pyx', 'lib.pyx'] ext_options = {} ext_options['language'] = 'c' ext_options['include_dirs'] = numpyInclude...
21.59375
96
0.704776
4a134b8bd16bb3b8ce8e74f100ea76054fd432d5
342
py
Python
tests/conftest.py
mambocab/simpletimeit
85aecc6543c6f4683fd899ae391278d82fa71925
[ "MIT" ]
3
2015-01-05T23:54:45.000Z
2015-08-15T17:46:29.000Z
tests/conftest.py
mambocab/rumble
85aecc6543c6f4683fd899ae391278d82fa71925
[ "MIT" ]
3
2015-01-13T18:21:18.000Z
2015-01-27T17:49:37.000Z
tests/conftest.py
mambocab/rumble
85aecc6543c6f4683fd899ae391278d82fa71925
[ "MIT" ]
null
null
null
import pytest skip_slow_string = '--skipslow' def pytest_addoption(parser): parser.addoption(skip_slow_string, action='store_true', help='skip slow integration tests') def pytest_runtest_setup(item): if 'slow' in item.keywords and item.config.getoption('--skipslow'): pytest.skip('disabled b...
24.428571
71
0.722222
4a134bbbf049de84796eb8add2dfbede5400dd1b
741
py
Python
manage.py
CynthiaOuma12673/pitches-app
cd7160f69fd382bab2ddfb777823be155b74f1b4
[ "Unlicense", "MIT" ]
null
null
null
manage.py
CynthiaOuma12673/pitches-app
cd7160f69fd382bab2ddfb777823be155b74f1b4
[ "Unlicense", "MIT" ]
null
null
null
manage.py
CynthiaOuma12673/pitches-app
cd7160f69fd382bab2ddfb777823be155b74f1b4
[ "Unlicense", "MIT" ]
null
null
null
from app import create_app,db from flask_script import Manager, Server from app.models import User,Pitch,Upvote,Downvote,Comment from flask_migrate import MigrateCommand,Migrate app = create_app('development') manager = Manager(app) manager.add_command('server',Server) migrate = Migrate(app,db) manager.add_command...
27.444444
104
0.755735
4a134d9de47aa92b2c91450a94afa8b7fce13a5a
3,042
py
Python
mars/tests/test_config.py
haijohn/mars
672b3a33a70565f01b1a3f508908445491d85acf
[ "Apache-2.0" ]
1
2021-06-10T02:43:01.000Z
2021-06-10T02:43:01.000Z
mars/tests/test_config.py
JeffroMF/mars
2805241ac55b50c4f6319baa41113fbf8c723832
[ "Apache-2.0" ]
null
null
null
mars/tests/test_config.py
JeffroMF/mars
2805241ac55b50c4f6319baa41113fbf8c723832
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 1999-2020 Alibaba Group Holding Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-...
26.452174
78
0.591716
4a134e8d1b9ffce97a50980125d1226510d6c84c
7,921
py
Python
powerline/lib/watcher/inotify.py
elventear/powerline
cddfc364c1bf269f721dfdbd765cde2649a3410d
[ "MIT" ]
15
2017-10-02T06:09:07.000Z
2020-01-17T07:53:58.000Z
powerline/lib/watcher/inotify.py
elventear/powerline
cddfc364c1bf269f721dfdbd765cde2649a3410d
[ "MIT" ]
null
null
null
powerline/lib/watcher/inotify.py
elventear/powerline
cddfc364c1bf269f721dfdbd765cde2649a3410d
[ "MIT" ]
6
2017-10-03T15:48:12.000Z
2021-08-28T18:07:29.000Z
# vim:fileencoding=utf-8:noet from __future__ import (unicode_literals, division, absolute_import, print_function) import errno import os import ctypes from threading import RLock from powerline.lib.inotify import INotify from powerline.lib.monotonic import monotonic from powerline.lib.path import realpath class I...
29.446097
152
0.678576
4a134ed4c94c9dc785fbe7a8e86192bff43511c4
1,993
py
Python
distributed_social_network/api/serializers.py
CMPUT404F21-TEAM-PROJECT/cmput404-group-project
5fc929f6bd22d41dc73734d34b1563bcfdc87f27
[ "Apache-2.0" ]
1
2022-02-10T05:50:19.000Z
2022-02-10T05:50:19.000Z
distributed_social_network/api/serializers.py
CMPUT404F21-TEAM-PROJECT/cmput404-group-project
5fc929f6bd22d41dc73734d34b1563bcfdc87f27
[ "Apache-2.0" ]
43
2022-02-08T00:59:49.000Z
2022-03-14T00:10:01.000Z
distributed_social_network/api/serializers.py
CMPUT404F21-TEAM-PROJECT/cmput404-group-project
5fc929f6bd22d41dc73734d34b1563bcfdc87f27
[ "Apache-2.0" ]
1
2022-03-17T22:11:38.000Z
2022-03-17T22:11:38.000Z
from rest_framework import serializers from .models import Author, FollowRequest, Post, Comment, User, Inbox, Like class UserSerializer(serializers.ModelSerializer): class Meta: model = User fields = '__all__' extra_kwargs = { 'password': {'write_only': True} } def...
32.672131
82
0.67135
4a134f2f18d4737fd81fd76974f5d9215a4b6feb
29,061
py
Python
Model Accuracy under Different Scenarios/util.py
jiekeshi/CovTesting_Replication
fd647f4f4a455857476366571af6c7afb50ddab0
[ "MIT" ]
11
2020-10-28T01:26:48.000Z
2021-10-09T02:40:00.000Z
Model Accuracy under Different Scenarios/util.py
jiekeshi/CovTesting_Replication
fd647f4f4a455857476366571af6c7afb50ddab0
[ "MIT" ]
1
2022-03-14T09:21:07.000Z
2022-03-14T09:32:03.000Z
Model Accuracy under Different Scenarios/util.py
jiekeshi/CovTesting_Replication
fd647f4f4a455857476366571af6c7afb50ddab0
[ "MIT" ]
7
2020-11-15T16:21:03.000Z
2021-10-21T02:20:48.000Z
from __future__ import absolute_import from __future__ import print_function import os import multiprocessing as mp from subprocess import call import warnings import numpy as np import scipy.io as sio from tqdm import tqdm import matplotlib.pyplot as plt from sklearn.metrics import roc_curve, auc, roc_auc_score from ...
33.989474
107
0.585665
4a13504d23ee906bfda335abb09b3ec881384777
5,976
py
Python
betahex/models.py
StarvingMarvin/betahex
0626cf4d003e94423f34f3d83149702a5557ddb8
[ "MIT" ]
2
2019-03-17T07:09:14.000Z
2020-05-04T17:40:51.000Z
betahex/models.py
StarvingMarvin/betahex
0626cf4d003e94423f34f3d83149702a5557ddb8
[ "MIT" ]
null
null
null
betahex/models.py
StarvingMarvin/betahex
0626cf4d003e94423f34f3d83149702a5557ddb8
[ "MIT" ]
null
null
null
from io import StringIO import tensorflow as tf from tensorflow.contrib.learn.python import learn def conv_layer(x, filters, size, activation, name=None, bias=True, reg_scale=None, board=None): reg = None if reg_scale is None else tf.contrib.layers.l2_regularizer(scale=reg_scale) conv = tf.la...
31.787234
109
0.595716
4a1350537616c54be4702db21d591af0ef4f48bd
536
py
Python
DjangoBlog/articles/migrations/0008_auto_20210808_0801.py
Dimple278/Publication-Repository
ec274bf5822e160b90f0a5bc8559c1d199e12854
[ "Unlicense", "MIT" ]
null
null
null
DjangoBlog/articles/migrations/0008_auto_20210808_0801.py
Dimple278/Publication-Repository
ec274bf5822e160b90f0a5bc8559c1d199e12854
[ "Unlicense", "MIT" ]
1
2021-08-08T06:46:46.000Z
2021-08-08T06:46:46.000Z
DjangoBlog/articles/migrations/0008_auto_20210808_0801.py
Dimple278/Publication-Repository
ec274bf5822e160b90f0a5bc8559c1d199e12854
[ "Unlicense", "MIT" ]
2
2021-07-03T11:55:11.000Z
2021-08-09T08:27:52.000Z
# Generated by Django 3.2.4 on 2021-08-08 02:16 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('articles', '0007_auto_20210808_0747'), ] operations = [ migrations.RemoveField( model_name='conferencearticle', name...
23.304348
65
0.600746
4a1352003a469543e8cae212516f333438db2a2f
95,525
py
Python
salt/master.py
JesseRhoads/salt
bd5395ea85956e064970710aae03398cbd1b20f5
[ "Apache-2.0" ]
1
2020-10-02T02:29:25.000Z
2020-10-02T02:29:25.000Z
salt/master.py
JesseRhoads/salt
bd5395ea85956e064970710aae03398cbd1b20f5
[ "Apache-2.0" ]
null
null
null
salt/master.py
JesseRhoads/salt
bd5395ea85956e064970710aae03398cbd1b20f5
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' This module contains all of the routines needed to set up a master server, this involves preparing the three listeners and the workers needed by the master. ''' from __future__ import absolute_import # Import python libs import os import re import time import errno import shutil import log...
39.246097
180
0.52335
4a135232d32c469cd93d6a540d73b1702b96a9be
14,364
py
Python
tests/test_menu_response.py
teamtaverna/taverna_integrations
6f1c4bd6b142f55060a8218562b25c5cf3d1f406
[ "MIT" ]
null
null
null
tests/test_menu_response.py
teamtaverna/taverna_integrations
6f1c4bd6b142f55060a8218562b25c5cf3d1f406
[ "MIT" ]
null
null
null
tests/test_menu_response.py
teamtaverna/taverna_integrations
6f1c4bd6b142f55060a8218562b25c5cf3d1f406
[ "MIT" ]
null
null
null
from unittest import TestCase from unittest.mock import patch from freezegun import freeze_time from plugins.menu_plugin import MenuHelper, menu from faker import fake_creds, FakeClient, FakeMessage from common.utils import render, DateHelper def servings(): return [ { 'publicId': 'zaba4r4z'...
34.948905
94
0.610206
4a135294042232d55bf132afa1098b5dfc142ad5
731
py
Python
tests/test_demo.py
bruziev/security_interface
0758a88f3c6ce96502ad287ab1a743cd5040c0b8
[ "MIT" ]
5
2018-11-02T07:50:30.000Z
2019-03-22T19:40:17.000Z
tests/test_demo.py
theruziev/security_interface
cacb85f0736c20f6cbe1b4d148ebb8b56b921642
[ "MIT" ]
146
2019-05-30T09:16:06.000Z
2022-02-04T17:20:51.000Z
tests/test_demo.py
theruziev/security_interface
cacb85f0736c20f6cbe1b4d148ebb8b56b921642
[ "MIT" ]
1
2018-11-13T06:21:01.000Z
2018-11-13T06:21:01.000Z
import pytest from demo.jwt import IdentityMaker, JwtIdentityPolicy, JwtAuthPolicy from security_interface.api import Security SECRET = "SECRET" identity_maker = IdentityMaker(expired_after=1, secret=SECRET) jwt_identity = JwtIdentityPolicy(secret=SECRET) jwt_auth = JwtAuthPolicy() security = Security(jwt_identity...
27.074074
68
0.74829
4a1352f866d86c8eb9c949038a4a4b9bd8063b8f
2,860
py
Python
ac-test.py
simondlevy/pytorch-drl
b197bb93c2cc698971f98095d4e0180811c52042
[ "MIT" ]
null
null
null
ac-test.py
simondlevy/pytorch-drl
b197bb93c2cc698971f98095d4e0180811c52042
[ "MIT" ]
10
2020-11-28T05:29:52.000Z
2020-12-01T22:43:38.000Z
ac-test.py
simondlevy/pytorch-drl
b197bb93c2cc698971f98095d4e0180811c52042
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import argparse import time from gym import wrappers from ac_gym import model, gym_make, is_env_bullet from ac_gym.td3 import TD3, eval_policy import numpy as np import torch def run_td3(parts, env, nhid, nodisplay, is_bullet, dump): policy = TD3( env.observation_space.shape...
25.765766
108
0.61049
4a1353310b99c6ce76227924e7c890366b81f5c9
33,266
py
Python
ironic_python_agent/extensions/image.py
atotala/ironic-python-agent
f9c03a8de29fd3b7c479a2b0c4343585b9f171e8
[ "Apache-2.0" ]
null
null
null
ironic_python_agent/extensions/image.py
atotala/ironic-python-agent
f9c03a8de29fd3b7c479a2b0c4343585b9f171e8
[ "Apache-2.0" ]
null
null
null
ironic_python_agent/extensions/image.py
atotala/ironic-python-agent
f9c03a8de29fd3b7c479a2b0c4343585b9f171e8
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Red Hat, 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...
43.771053
79
0.575963
4a135408cd0959a2bb5065e18c4c5fbb935add79
2,403
py
Python
src/extra_apps/xadmin/__init__.py
NewReStarter/Django_Form
3a9c8b536f5750ed9490533cee64ca358020a265
[ "MIT" ]
null
null
null
src/extra_apps/xadmin/__init__.py
NewReStarter/Django_Form
3a9c8b536f5750ed9490533cee64ca358020a265
[ "MIT" ]
null
null
null
src/extra_apps/xadmin/__init__.py
NewReStarter/Django_Form
3a9c8b536f5750ed9490533cee64ca358020a265
[ "MIT" ]
null
null
null
VERSION = (0,6,0) from xadmin.sites import AdminSite, site class Settings(object): pass def autodiscover(): """ Auto-discover INSTALLED_APPS myadmin.py modules and fail silently when not present. This forces an import on them to register any myadmin bits they may want. """ from importl...
33.84507
80
0.661673
4a1354a955034544dd9d8f8e1edf0fc881262db7
3,204
py
Python
day2/pytorch_dvc_cnn_simple_hvd.py
wikfeldt/intro-to-dl
7fb1fb6c520941143000c5e1b46c48c95db17ed6
[ "MIT" ]
59
2018-04-27T04:34:41.000Z
2022-03-16T02:43:50.000Z
day2/pytorch_dvc_cnn_simple_hvd.py
wikfeldt/intro-to-dl
7fb1fb6c520941143000c5e1b46c48c95db17ed6
[ "MIT" ]
1
2020-10-10T05:04:00.000Z
2020-10-12T08:19:38.000Z
day2/pytorch_dvc_cnn_simple_hvd.py
wikfeldt/intro-to-dl
7fb1fb6c520941143000c5e1b46c48c95db17ed6
[ "MIT" ]
53
2017-04-14T09:35:04.000Z
2022-02-28T19:19:36.000Z
# coding: utf-8 # Dogs-vs-cats classification with CNNs import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from datetime import datetime import horovod.torch as hvd from pytorch_dvc_cnn_hvd import get_train_loader, get_validation_loader, get_test_loader from pytorch_dvc_cn...
27.86087
89
0.627029
4a1354f4a891846927b10177b6dcff7166acce7f
698
py
Python
files/native_extensions/ctypes_mandelbrot.py
mipt-npm-study/sciprog-python
09a0d99254fcd559ec8d13bedd5521e98e86b3ce
[ "MIT" ]
3
2021-09-12T20:54:08.000Z
2021-09-21T14:49:15.000Z
files/native_extensions/ctypes_mandelbrot.py
mipt-npm-study/sciprog-python
09a0d99254fcd559ec8d13bedd5521e98e86b3ce
[ "MIT" ]
null
null
null
files/native_extensions/ctypes_mandelbrot.py
mipt-npm-study/sciprog-python
09a0d99254fcd559ec8d13bedd5521e98e86b3ce
[ "MIT" ]
2
2021-09-14T13:15:41.000Z
2021-09-14T15:18:01.000Z
import time from ctypes import CDLL, POINTER, c_int import matplotlib.pyplot as plt import numpy as np if __name__ == '__main__': ctypes_dll = CDLL("./libmandelbrot.so") ctypes_dll.mandelbrot.restype = POINTER(POINTER(c_int*200)*200) tic = time.perf_counter() image_ctypes = ctypes_dll.mandelbrot(200, 2...
33.238095
67
0.670487
4a135538e9298d5420377b5d8a7e424b9f7c5057
35,050
py
Python
lib/sqlalchemy/sql/traversals.py
eukreign/sqlalchemy
18ce4f9937c2d6753acbb054b4990c7da298a5d7
[ "MIT" ]
null
null
null
lib/sqlalchemy/sql/traversals.py
eukreign/sqlalchemy
18ce4f9937c2d6753acbb054b4990c7da298a5d7
[ "MIT" ]
null
null
null
lib/sqlalchemy/sql/traversals.py
eukreign/sqlalchemy
18ce4f9937c2d6753acbb054b4990c7da298a5d7
[ "MIT" ]
1
2020-05-05T21:56:23.000Z
2020-05-05T21:56:23.000Z
from collections import deque from collections import namedtuple import operator from . import operators from .visitors import ExtendedInternalTraversal from .visitors import InternalTraversal from .. import util from ..inspection import inspect from ..util import collections_abc from ..util import HasMemoized SKIP_T...
33.191288
79
0.561227
4a13557a115409a096ed41e7cf7dcfe04a4118ed
134
py
Python
app/eventFrameAttributeTemplates/__init__.py
DeschutesBrewery/brewerypi
5459dfc6b1ed415920c13a8a7c9a2d3d3c82099f
[ "MIT" ]
27
2017-11-27T05:01:05.000Z
2020-11-14T19:52:26.000Z
app/eventFrameAttributeTemplates/__init__.py
DeschutesBrewery/brewerypi
5459dfc6b1ed415920c13a8a7c9a2d3d3c82099f
[ "MIT" ]
259
2017-11-23T00:43:26.000Z
2020-11-03T01:07:30.000Z
app/eventFrameAttributeTemplates/__init__.py
DeschutesBrewery/brewerypi
5459dfc6b1ed415920c13a8a7c9a2d3d3c82099f
[ "MIT" ]
8
2018-10-29T04:39:29.000Z
2020-10-01T22:18:12.000Z
from flask import Blueprint eventFrameAttributeTemplates = Blueprint("eventFrameAttributeTemplates", __name__) from . import routes
22.333333
82
0.843284
4a135618a7d842f96b8bba06bf2ab3dd80a9311a
1,631
py
Python
BondsPractitioners/spiders/ajzq.py
hahadaxia/BondsPractitioners
a8d5ac82f3385ae5eabeb4e710b6807bf31ccdda
[ "MIT" ]
null
null
null
BondsPractitioners/spiders/ajzq.py
hahadaxia/BondsPractitioners
a8d5ac82f3385ae5eabeb4e710b6807bf31ccdda
[ "MIT" ]
5
2021-03-29T19:44:28.000Z
2022-03-02T15:14:55.000Z
BondsPractitioners/spiders/ajzq.py
hahadaxia/BondsPractitioners
a8d5ac82f3385ae5eabeb4e710b6807bf31ccdda
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import scrapy import json from scrapy import Selector from BondsPractitioners.spiders import set_item class AjzqSpider(scrapy.Spider): name = 'ajzq' allowed_domains = ['ajzq.com'] start_urls = ['http://www.ajzq.com/service/mainArticle/15453'] com_name = '爱建证券有限责任公司' author ...
35.456522
95
0.458614
4a13578af592cd7c80f526c50291ba29100e5062
933
py
Python
maluforce/validators.py
rmcferrao/maluforce
12c776dc129c8d778086e22fd8ad9de996816081
[ "MIT" ]
null
null
null
maluforce/validators.py
rmcferrao/maluforce
12c776dc129c8d778086e22fd8ad9de996816081
[ "MIT" ]
null
null
null
maluforce/validators.py
rmcferrao/maluforce
12c776dc129c8d778086e22fd8ad9de996816081
[ "MIT" ]
null
null
null
import re import os def validId(id): """ [input] * id - str, list with the affiliation_id to be evaluated [output] * list - ['Pagar.me','Mundi','Stone',None] """ strFlag = False if type(id) is str: id = [id] strFlag = True out = [None] * len(id) r...
25.916667
144
0.493033
4a13589b6ef7b4a438327a1de524a4d91ef80211
5,908
py
Python
tensorflow/python/util/tf_decorator.py
TTrapper/tensorflow
64f0ebd33a7c868da3c8f1ea15adf358c578f227
[ "Apache-2.0" ]
null
null
null
tensorflow/python/util/tf_decorator.py
TTrapper/tensorflow
64f0ebd33a7c868da3c8f1ea15adf358c578f227
[ "Apache-2.0" ]
null
null
null
tensorflow/python/util/tf_decorator.py
TTrapper/tensorflow
64f0ebd33a7c868da3c8f1ea15adf358c578f227
[ "Apache-2.0" ]
1
2019-01-08T07:16:49.000Z
2019-01-08T07:16:49.000Z
# Copyright 2017 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...
34.549708
80
0.724949
4a1359255286102e4d5111ee3bd93ea75b79b482
87,054
py
Python
pygem/glacierdynamics.py
Wang518hongyu/PyGEM
1c9fa133133b3d463b1383d4792c535fa61c5b8d
[ "MIT" ]
25
2019-06-12T21:08:24.000Z
2022-03-01T08:05:14.000Z
pygem/glacierdynamics.py
Wang518hongyu/PyGEM
1c9fa133133b3d463b1383d4792c535fa61c5b8d
[ "MIT" ]
2
2020-04-23T14:08:00.000Z
2020-06-04T13:52:44.000Z
pygem/glacierdynamics.py
Wang518hongyu/PyGEM
1c9fa133133b3d463b1383d4792c535fa61c5b8d
[ "MIT" ]
24
2019-06-12T19:48:40.000Z
2022-02-16T03:42:53.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Feb 3 14:00:14 2020 @author: davidrounce """ from collections import OrderedDict from time import gmtime, strftime import numpy as np #import pandas as pd #import netCDF4 import xarray as xr from oggm import cfg, utils from oggm.core.flowline import ...
47.389222
133
0.54341
4a13597501a4db3bfab9383aa4a3faf1a30ce78d
15,717
py
Python
twilio/rest/ip_messaging/v2/service/user/user_binding.py
NCPlayz/twilio-python
08898a4a1a43b636a64c9e98fbb0b6ee1792c687
[ "MIT" ]
null
null
null
twilio/rest/ip_messaging/v2/service/user/user_binding.py
NCPlayz/twilio-python
08898a4a1a43b636a64c9e98fbb0b6ee1792c687
[ "MIT" ]
1
2021-06-02T00:27:34.000Z
2021-06-02T00:27:34.000Z
exercise/venv/lib/python3.7/site-packages/twilio/rest/ip_messaging/v2/service/user/user_binding.py
assuzzanne/notifications-dispatcher-api
81ae0eab417a1dbc0ae6b1778ebfdd71591c3c5b
[ "MIT" ]
null
null
null
# coding=utf-8 r""" This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from twilio.base import deserialize from twilio.base import serialize from twilio.base import values from twilio.base.instance_context import InstanceContext from twilio.base.instance_resource import...
34.093275
123
0.623592
4a1359aee43e9473b2bad07a38a5381b7651301c
476
py
Python
utils/rq_queryjob.py
scopedsecurity/crackq
6c2d79b21e3a9dafb6182867f3cac8cbae3c081f
[ "MIT" ]
null
null
null
utils/rq_queryjob.py
scopedsecurity/crackq
6c2d79b21e3a9dafb6182867f3cac8cbae3c081f
[ "MIT" ]
1
2020-06-29T20:07:11.000Z
2020-06-29T20:07:11.000Z
utils/rq_queryjob.py
scopedsecurity/crackq
6c2d79b21e3a9dafb6182867f3cac8cbae3c081f
[ "MIT" ]
null
null
null
import datetime import rq import sys from rq import use_connection, Queue from redis import Redis if len(sys.argv) < 2: print('Usage: ./{} <queue-name> <job_id>') exit(1) redis_con = Redis('redis', 6379) redis_q = Queue(sys.argv[1], connection=redis_con) job = redis_q.fetch_job(sys.argv[2]) print('Descript...
22.666667
50
0.69958
4a135a187726caf9103ad1b307d11940a023d05e
12,162
py
Python
fossology/__init__.py
alpianon/fossology-python
c38abcaea507f8ef93aa2901aa6078977bfa2df1
[ "MIT" ]
null
null
null
fossology/__init__.py
alpianon/fossology-python
c38abcaea507f8ef93aa2901aa6078977bfa2df1
[ "MIT" ]
null
null
null
fossology/__init__.py
alpianon/fossology-python
c38abcaea507f8ef93aa2901aa6078977bfa2df1
[ "MIT" ]
null
null
null
# Copyright 2019-2021 Siemens AG # SPDX-License-Identifier: MIT import re import logging import requests from datetime import date, timedelta from typing import Dict, List from fossology.obj import ( Agents, Upload, User, File, TokenScope, SearchTypes, get_options, ) from fossology.folders...
32.693548
101
0.61429
4a135ae9bd0248b7d2693db0274eccc1aa18bdc3
3,900
py
Python
models/objects/objects.py
jdj2261/lets-do-mujoco
3786526b89a45b6a9c300ab168ae1bf4c7a32e39
[ "MIT" ]
2
2022-01-08T15:58:22.000Z
2022-02-21T03:52:26.000Z
models/objects/objects.py
jdj2261/lets-do-mujoco
3786526b89a45b6a9c300ab168ae1bf4c7a32e39
[ "MIT" ]
null
null
null
models/objects/objects.py
jdj2261/lets-do-mujoco
3786526b89a45b6a9c300ab168ae1bf4c7a32e39
[ "MIT" ]
null
null
null
import copy import xml.etree.ElementTree as ET import numpy as np from models.base import MujocoXML from utils.mjcf_utils import string_to_array, array_to_string, new_joint, new_geom from utils.transform_utils import euler2mat, mat2quat class MujocoObject: def __init__(self): pass @property def b...
31.2
105
0.633333
4a135bf18f72570dbe9b822af09b674664c4b1da
643
py
Python
cgi/teste_utilidade.py
redienhcs/estrelabot
69f7d3c287e3b532018f0ea4f377356e00d5522d
[ "MIT" ]
null
null
null
cgi/teste_utilidade.py
redienhcs/estrelabot
69f7d3c287e3b532018f0ea4f377356e00d5522d
[ "MIT" ]
null
null
null
cgi/teste_utilidade.py
redienhcs/estrelabot
69f7d3c287e3b532018f0ea4f377356e00d5522d
[ "MIT" ]
null
null
null
import win_unicode_console win_unicode_console.enable() #Ler o conteúdo de arquivos e descobrir se a resposta do chatbot foi útil lista_de_arquivos = { "eventos.yml", "historia.yml", "meio_ambiente.yml", "perguntas_frequentes.yml" } conteudo_arquivos = "" for arquivo in lista_de_arquivos: file = ...
23.814815
83
0.74339
4a135def9c26028dfe16f22fc4233131b099d0a9
633
py
Python
backend/hqlib/__init__.py
ICTU/quality-report
f6234e112228ee7cfe6476c2d709fe244579bcfe
[ "Apache-2.0" ]
25
2016-11-25T10:41:24.000Z
2021-07-03T14:02:49.000Z
backend/hqlib/__init__.py
ICTU/quality-report
f6234e112228ee7cfe6476c2d709fe244579bcfe
[ "Apache-2.0" ]
783
2016-09-19T12:10:21.000Z
2021-01-04T20:39:15.000Z
backend/hqlib/__init__.py
ICTU/quality-report
f6234e112228ee7cfe6476c2d709fe244579bcfe
[ "Apache-2.0" ]
15
2015-03-25T13:52:49.000Z
2021-03-08T17:17:56.000Z
""" Copyright 2012-2019 Ministerie van Sociale Zaken en Werkgelegenheid 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...
33.315789
72
0.777251
4a135e09a36dad04e773cb99a5f02c06a4ec498e
19,646
py
Python
pycti/entities/opencti_stix_observable.py
Cix-16/client-python
91fd5a874f9bf3de9d6ae6dc12fecd4791fb3caf
[ "Apache-2.0" ]
null
null
null
pycti/entities/opencti_stix_observable.py
Cix-16/client-python
91fd5a874f9bf3de9d6ae6dc12fecd4791fb3caf
[ "Apache-2.0" ]
null
null
null
pycti/entities/opencti_stix_observable.py
Cix-16/client-python
91fd5a874f9bf3de9d6ae6dc12fecd4791fb3caf
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import json from pycti.utils.constants import CustomProperties from pycti.utils.opencti_stix2 import SPEC_VERSION class StixObservable: def __init__(self, opencti): self.opencti = opencti self.properties = """ id stix_id_key entity_type ...
35.082143
194
0.438664
4a1360709325241b35168f2e3652e0a4ea3dd626
777
py
Python
education4less/users/migrations/0001_initial.py
xarielx/education4less
24de746d859a859a7413917fcbbb2dcdaa440521
[ "MIT" ]
1
2020-02-05T02:21:25.000Z
2020-02-05T02:21:25.000Z
education4less/users/migrations/0001_initial.py
xarielx/education4less
24de746d859a859a7413917fcbbb2dcdaa440521
[ "MIT" ]
8
2020-02-12T03:03:26.000Z
2022-02-10T09:56:49.000Z
education4less/users/migrations/0001_initial.py
xarielx/education4less
24de746d859a859a7413917fcbbb2dcdaa440521
[ "MIT" ]
null
null
null
# Generated by Django 2.2.4 on 2019-12-05 09:40 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
29.884615
121
0.646075
4a1360cf3427a730a4467c5d1059d09a85ef3175
54
py
Python
pyqt_custom_titlebar_setter/__init__.py
yjg30737/pyqt_custom_titlebar_setter
af0e41d4f3a11d37d085cf2226b8baf9d74d18ef
[ "MIT" ]
null
null
null
pyqt_custom_titlebar_setter/__init__.py
yjg30737/pyqt_custom_titlebar_setter
af0e41d4f3a11d37d085cf2226b8baf9d74d18ef
[ "MIT" ]
null
null
null
pyqt_custom_titlebar_setter/__init__.py
yjg30737/pyqt_custom_titlebar_setter
af0e41d4f3a11d37d085cf2226b8baf9d74d18ef
[ "MIT" ]
null
null
null
from .customTitlebarSetter import CustomTitlebarSetter
54
54
0.925926
4a1360f7dd8efb2a0a84610055d6b28bcb58856c
3,919
py
Python
app/api/v1/answers/routes.py
Adoniswalker/StackOverflow-lite
3679d1e8bf23aca73338e0fa9ff51de63ba85f7d
[ "MIT" ]
16
2018-08-11T13:07:07.000Z
2021-04-06T00:44:34.000Z
app/api/v1/answers/routes.py
PeterCHK/stackoverflow-lite
1d3e46bce494235d608fbec68925ee88b3b83513
[ "MIT" ]
13
2018-08-14T12:48:38.000Z
2021-06-01T22:31:53.000Z
app/api/v1/answers/routes.py
PeterCHK/stackoverflow-lite
1d3e46bce494235d608fbec68925ee88b3b83513
[ "MIT" ]
14
2018-08-10T11:05:13.000Z
2021-12-24T13:10:41.000Z
from flask import Blueprint, request, make_response, jsonify, session from flask.views import MethodView from app.answers.models import Answer from app.questions.models import Question from ....utils import jwt_required answers_blueprint = Blueprint('answers', __name__) class AnswersAPIView(MethodView): @jwt_req...
30.858268
82
0.620822
4a1365a5daf7dc673402aedad52f4f17dfc588d3
59
py
Python
theme_rc.py
pm-str/CountDown-More
90eed19b3d5e417d474f1d79e07c6740f5a9a53d
[ "MIT" ]
null
null
null
theme_rc.py
pm-str/CountDown-More
90eed19b3d5e417d474f1d79e07c6740f5a9a53d
[ "MIT" ]
null
null
null
theme_rc.py
pm-str/CountDown-More
90eed19b3d5e417d474f1d79e07c6740f5a9a53d
[ "MIT" ]
null
null
null
# proxy file for theme modules from static.theme import *
14.75
30
0.762712
4a1365f334d8bcc888c44e6e6695b4e52df6b8aa
3,718
py
Python
src/data.py
waterminer/pixivSpider
7a9beb3dd150850b9dec67e170fc89781d684f7f
[ "MIT" ]
2
2021-05-12T10:02:05.000Z
2021-05-15T17:21:57.000Z
src/data.py
waterminer/pixivSpider
7a9beb3dd150850b9dec67e170fc89781d684f7f
[ "MIT" ]
null
null
null
src/data.py
waterminer/pixivSpider
7a9beb3dd150850b9dec67e170fc89781d684f7f
[ "MIT" ]
1
2021-05-15T16:31:32.000Z
2021-05-15T16:31:32.000Z
from _datetime import datetime from bs4 import BeautifulSoup from src import connect import os import re import json # 定义常量 now = datetime.now() time = now.strftime("%Y%m%d_%H%M%S") date_now = now.strftime("%Y%m%d") path = './Downloads' # 提取规则 rank_re = re.compile(r'data-rank="(.*?)"') date_re = re.compile(r'data-date...
34.110092
113
0.541958
4a136638f0ed8519183ccc86783c80893dfd656e
1,857
py
Python
corehq/apps/export/tests/test_inferred_schema.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
471
2015-01-10T02:55:01.000Z
2022-03-29T18:07:18.000Z
corehq/apps/export/tests/test_inferred_schema.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
14,354
2015-01-01T07:38:23.000Z
2022-03-31T20:55:14.000Z
corehq/apps/export/tests/test_inferred_schema.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
175
2015-01-06T07:16:47.000Z
2022-03-29T13:27:01.000Z
from django.test import SimpleTestCase from corehq.apps.export.models import ( ExportItem, InferredExportGroupSchema, InferredSchema, PathNode, ) class InferredSchemaTest(SimpleTestCase): def test_put_group_schema(self): schema = InferredSchema( domain='inferred-domain', ...
32.578947
76
0.640819
4a136788a27cc22dc5de95c46187fc6538a13320
8,528
py
Python
samples/2D_mixing_nobubble/case.py
henryleberre/MFC-develop
59e94af2d4304b41c9b52280dfd99a300e2664ec
[ "MIT" ]
2
2022-02-26T16:00:42.000Z
2022-02-28T23:25:06.000Z
samples/2D_mixing_nobubble/case.py
henryleberre/MFC-develop
59e94af2d4304b41c9b52280dfd99a300e2664ec
[ "MIT" ]
44
2021-12-07T04:36:24.000Z
2022-03-30T16:29:00.000Z
samples/2D_mixing_nobubble/case.py
henryleberre/MFC
0638f7766ead02a69c386d2acd25af8b85f7d194
[ "MIT" ]
2
2021-12-07T18:59:08.000Z
2021-12-07T19:37:14.000Z
#!/usr/bin/env python2 import math import json # x0 = 10.E-06 x0 = 1. p0 = 101325. rho0 = 1000. u0 = math.sqrt( p0/rho0 ) c0 = 1475. n_tait = 7.1 B_tait = 306.E+06 / p0 gamma_gas = 1.4 # Velocity uu = 4. / u0 #Cavitation number Ca = 1. Ly = 0.5/x0 Lx = Ly*2/x0 Ny = 79 Nx ...
37.403509
80
0.325985
4a1369a0c5855597133e62268eff66efca4d9f03
903
py
Python
chap5/surface_3d.py
wang420349864/dlcv_for_beginners
080c7d3bbb4a68e4fb79e33231ccc666ada16dcc
[ "BSD-3-Clause" ]
1,424
2017-01-04T12:08:01.000Z
2022-03-31T02:57:24.000Z
chap5/surface_3d.py
wang420349864/dlcv_for_beginners
080c7d3bbb4a68e4fb79e33231ccc666ada16dcc
[ "BSD-3-Clause" ]
39
2017-03-16T08:48:28.000Z
2021-03-03T11:30:23.000Z
chap5/surface_3d.py
wang420349864/dlcv_for_beginners
080c7d3bbb4a68e4fb79e33231ccc666ada16dcc
[ "BSD-3-Clause" ]
703
2017-02-22T19:35:45.000Z
2022-03-21T01:31:27.000Z
import matplotlib.pyplot as plt import numpy as np from mpl_toolkits.mplot3d import Axes3D np.random.seed(42) n_grids = 51 c = n_grids / 2 nf = 2 x = np.linspace(0, 1, n_grids) y = np.linspace(0, 1, n_grids) X, Y = np.meshgrid(x, y) spectrum = np.zeros((n_grids, n_grids)...
28.21875
81
0.635659
4a1369e5dfaa46fd825829f077c076e1ec0c6352
5,526
py
Python
saleor/registration/views.py
X10project/rob_photography
baaeed11e13d1f4977c24f5f6601b1c6fbcf39b5
[ "BSD-3-Clause" ]
3
2015-12-30T19:06:27.000Z
2021-10-06T04:23:36.000Z
saleor/registration/views.py
X10project/rob_photography
baaeed11e13d1f4977c24f5f6601b1c6fbcf39b5
[ "BSD-3-Clause" ]
null
null
null
saleor/registration/views.py
X10project/rob_photography
baaeed11e13d1f4977c24f5f6601b1c6fbcf39b5
[ "BSD-3-Clause" ]
4
2019-09-17T11:39:41.000Z
2022-01-24T10:22:50.000Z
try: from urllib.parse import urlencode except ImportError: from urllib import urlencode from django.conf import settings from django.contrib import messages from django.contrib.auth import login as auth_login, logout as auth_logout from django.contrib.auth.decorators import login_required from django.contrib....
36.84
79
0.685668
4a136b23e54347a6391f282bc63162be739ee2fa
193
py
Python
DQMServices/Components/python/DQMScalInfo_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
DQMServices/Components/python/DQMScalInfo_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
DQMServices/Components/python/DQMScalInfo_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer dqmscalInfo = DQMEDAnalyzer('DQMScalInfo', dqmScalFolder = cms.untracked.string('Scal') )
27.571429
56
0.80829
4a136c243e79c7caddbfed4009eecec520829e08
2,788
py
Python
examples/yleareena_example.py
CKVal/pychromecast
ea179bd5664475273a6b6d46b3266e6858ce3b01
[ "MIT" ]
null
null
null
examples/yleareena_example.py
CKVal/pychromecast
ea179bd5664475273a6b6d46b3266e6858ce3b01
[ "MIT" ]
null
null
null
examples/yleareena_example.py
CKVal/pychromecast
ea179bd5664475273a6b6d46b3266e6858ce3b01
[ "MIT" ]
null
null
null
""" Example on how to use the Yle Areena Controller """ # pylint: disable=invalid-name, import-outside-toplevel import argparse import logging import sys from time import sleep import zeroconf import pychromecast from pychromecast.controllers.yleareena import YleAreenaController logger = logging.getLogger(__name__)...
31.681818
86
0.756815
4a136c7945d43544a64c7bea17cf0e0972a6ecec
5,023
py
Python
xldlib/general/mapping/functions.py
Alexhuszagh/XLDiscoverer
60937b1f7f2e23af4219eb26519d6b83fb4232d6
[ "Apache-2.0", "MIT" ]
null
null
null
xldlib/general/mapping/functions.py
Alexhuszagh/XLDiscoverer
60937b1f7f2e23af4219eb26519d6b83fb4232d6
[ "Apache-2.0", "MIT" ]
null
null
null
xldlib/general/mapping/functions.py
Alexhuszagh/XLDiscoverer
60937b1f7f2e23af4219eb26519d6b83fb4232d6
[ "Apache-2.0", "MIT" ]
null
null
null
''' General/Mapping/functions _________________________ Functions (unbound methods in Python 2.x) shared between mapping objects. :copyright: (c) 2015 The Regents of the University of California. :license: GNU GPL, see licenses/GNU GPLv3.txt for more details. ''' # load modules/submodules imp...
23.041284
71
0.644436
4a136c7fd1095282daa2a16060348ee5e1cb12a3
465
py
Python
fdk_client/platform/models/Rule.py
kavish-d/fdk-client-python
a1023eb530473322cb52e095fc4ceb226c1e6037
[ "MIT" ]
null
null
null
fdk_client/platform/models/Rule.py
kavish-d/fdk-client-python
a1023eb530473322cb52e095fc4ceb226c1e6037
[ "MIT" ]
null
null
null
fdk_client/platform/models/Rule.py
kavish-d/fdk-client-python
a1023eb530473322cb52e095fc4ceb226c1e6037
[ "MIT" ]
null
null
null
"""Platform Models.""" from marshmallow import fields, Schema from marshmallow.validate import OneOf from ..enums import * from ..models.BaseSchema import BaseSchema class Rule(BaseSchema): # Cart swagger.json key = fields.Float(required=False) value = fields.Float(required=False) ...
13.676471
47
0.670968
4a136cfb44b6e5433294f2d54f886b3cedb65a0c
2,953
py
Python
tests/test_config.py
admdev8/darglint
d2d0f45861cfe7ed8d0a916eca181b144ed77cba
[ "MIT" ]
1
2020-08-30T11:18:40.000Z
2020-08-30T11:18:40.000Z
tests/test_config.py
admdev8/darglint
d2d0f45861cfe7ed8d0a916eca181b144ed77cba
[ "MIT" ]
4
2020-08-30T11:18:52.000Z
2020-08-30T12:18:17.000Z
tests/test_config.py
Smirenost/darglint
d2d0f45861cfe7ed8d0a916eca181b144ed77cba
[ "MIT" ]
null
null
null
"""Tests configuration scripts.""" from random import ( choice, randint, ) from string import ascii_letters from unittest import ( mock, TestCase, ) from darglint.config import ( walk_path, POSSIBLE_CONFIG_FILENAMES, find_config_file_in_path, get_logger, LogLevel, ) from .utils imp...
28.669903
78
0.608534
4a136d0412be7942223f017989366172b2b04c1e
2,029
py
Python
library/pyjamas/History.safari.py
allbuttonspressed/pyjs
c726fdead530eb63ee4763ae15daaa58d84cd58f
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
library/pyjamas/History.safari.py
allbuttonspressed/pyjs
c726fdead530eb63ee4763ae15daaa58d84cd58f
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
library/pyjamas/History.safari.py
allbuttonspressed/pyjs
c726fdead530eb63ee4763ae15daaa58d84cd58f
[ "ECL-2.0", "Apache-2.0" ]
1
2019-11-18T14:17:59.000Z
2019-11-18T14:17:59.000Z
def init(): JS(""" // Check for existence of the history frame. var historyFrame = $doc.getElementById('__pygwt_historyFrame'); if (!historyFrame) return false; // Get the initial token from the url's hash component. var hash = $wnd.location.hash; if (hash.length > 0) $wnd._...
32.206349
96
0.60276
4a136d37248188bcc810baca093fc6d63d3d2d87
1,349
py
Python
requires.py
openstack-charmers/charm-interface-neutron-api
f3c33764381ae999045b3661b6c7e1d6cce315be
[ "Apache-2.0" ]
null
null
null
requires.py
openstack-charmers/charm-interface-neutron-api
f3c33764381ae999045b3661b6c7e1d6cce315be
[ "Apache-2.0" ]
null
null
null
requires.py
openstack-charmers/charm-interface-neutron-api
f3c33764381ae999045b3661b6c7e1d6cce315be
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Canonical Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
34.589744
79
0.716827
4a136ee826a38a5dba36cb8cbd14f7140945d149
15,493
py
Python
sichu/cabinet/migrations/0009_auto__add_bookborrowrecord2.py
ax003d/sichu_web
f01002f169fb5a683996bd5987572d55f1fa7c3b
[ "MIT" ]
55
2016-04-05T15:42:21.000Z
2018-07-19T07:13:09.000Z
sichu/cabinet/migrations/0009_auto__add_bookborrowrecord2.py
ax003d/sichu_web
f01002f169fb5a683996bd5987572d55f1fa7c3b
[ "MIT" ]
null
null
null
sichu/cabinet/migrations/0009_auto__add_bookborrowrecord2.py
ax003d/sichu_web
f01002f169fb5a683996bd5987572d55f1fa7c3b
[ "MIT" ]
18
2016-04-05T15:40:13.000Z
2018-03-15T23:50:27.000Z
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'BookBorrowRecord2' db.create_table(u'cabinet_bookborrowrecord2', ( (u'id', self....
71.396313
187
0.556122
4a136fd5f741d15f9b16bb511ae89b220554c3a9
3,817
py
Python
huaweicloud-sdk-drs/huaweicloudsdkdrs/v3/model/batch_reset_password_response.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
64
2020-06-12T07:05:07.000Z
2022-03-30T03:32:50.000Z
huaweicloud-sdk-drs/huaweicloudsdkdrs/v3/model/batch_reset_password_response.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
11
2020-07-06T07:56:54.000Z
2022-01-11T11:14:40.000Z
huaweicloud-sdk-drs/huaweicloudsdkdrs/v3/model/batch_reset_password_response.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
24
2020-06-08T11:42:13.000Z
2022-03-04T06:44:08.000Z
# coding: utf-8 import re import six from huaweicloudsdkcore.sdk_response import SdkResponse from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class BatchResetPasswordResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name ...
26.880282
79
0.565889
4a136fde7352293ffac2b706e8b24f755d1ab134
4,271
py
Python
Competitive Programming/Array/Rearrange array in alternating positive & negative items with O(1) extra space.py
shreejitverma/GeeksforGeeks
d7bcb166369fffa9a031a258e925b6aff8d44e6c
[ "MIT" ]
2
2022-02-18T05:14:28.000Z
2022-03-08T07:00:08.000Z
Competitive Programming/Array/Rearrange array in alternating positive & negative items with O(1) extra space.py
shivaniverma1/Competitive-Programming-1
d7bcb166369fffa9a031a258e925b6aff8d44e6c
[ "MIT" ]
6
2022-01-13T04:31:04.000Z
2022-03-12T01:06:16.000Z
Competitive Programming/Array/Rearrange array in alternating positive & negative items with O(1) extra space.py
shivaniverma1/Competitive-Programming-1
d7bcb166369fffa9a031a258e925b6aff8d44e6c
[ "MIT" ]
2
2022-02-14T19:53:53.000Z
2022-02-18T05:14:30.000Z
'''https://www.geeksforgeeks.org/rearrange-array-alternating-positive-negative-items-o1-extra-space/ Given an array of positive and negative numbers, arrange them in an alternate fashion such that every positive number is followed by negative and vice-versa maintaining the order of appearance. Number of positive and n...
32.356061
410
0.632639
4a1370458f1d39e7219fdc0bad6fde6cc37349ad
679
py
Python
src/sentinel/azext_sentinel/_client_factory.py
hpsan/azure-cli-extensions
be1589bb6dd23837796e088d28e65e873050171e
[ "MIT" ]
null
null
null
src/sentinel/azext_sentinel/_client_factory.py
hpsan/azure-cli-extensions
be1589bb6dd23837796e088d28e65e873050171e
[ "MIT" ]
null
null
null
src/sentinel/azext_sentinel/_client_factory.py
hpsan/azure-cli-extensions
be1589bb6dd23837796e088d28e65e873050171e
[ "MIT" ]
1
2020-07-16T23:49:49.000Z
2020-07-16T23:49:49.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
42.4375
94
0.59352
4a13708f8325d60d83e5843489ee05a3c353def9
1,097
py
Python
backend/users/tests/test_forms.py
crowdbotics-apps/test-31818
3c0be5481a1adec1445c703af63db4ff1d0b9146
[ "FTL", "AML", "RSA-MD" ]
2
2021-10-20T04:12:53.000Z
2021-11-08T10:23:14.000Z
backend/users/tests/test_forms.py
crowdbotics-apps/test-31818
3c0be5481a1adec1445c703af63db4ff1d0b9146
[ "FTL", "AML", "RSA-MD" ]
321
2021-07-16T15:22:20.000Z
2021-07-19T20:57:51.000Z
backend/users/tests/test_forms.py
crowdbotics-apps/rwar-33953
69c3a19f094ce817df5dd5f3130f0103c7da4dcd
[ "FTL", "AML", "RSA-MD" ]
1
2021-06-21T14:49:57.000Z
2021-06-21T14:49:57.000Z
import pytest from users.forms import UserCreationForm from users.tests.factories import UserFactory pytestmark = pytest.mark.django_db class TestUserCreationForm: def test_clean_username(self): # A user with proto_user params does not exist yet. proto_user = UserFactory.build() form = ...
26.756098
59
0.588879
4a137288cb5817ebd0f13d8ffe815557525aff94
572
py
Python
src/blog/migrations/0003_post_tags.py
abbeymaniak/django-python-Restaurant-app-
2212e79e3b2e824bb7c6c81869e983bea2ce03a2
[ "MIT" ]
1
2020-05-18T01:05:01.000Z
2020-05-18T01:05:01.000Z
src/blog/migrations/0003_post_tags.py
abbeymaniak/django-python-Restaurant-app-
2212e79e3b2e824bb7c6c81869e983bea2ce03a2
[ "MIT" ]
null
null
null
src/blog/migrations/0003_post_tags.py
abbeymaniak/django-python-Restaurant-app-
2212e79e3b2e824bb7c6c81869e983bea2ce03a2
[ "MIT" ]
null
null
null
# Generated by Django 2.1.4 on 2020-04-11 14:26 from django.db import migrations import taggit.managers class Migration(migrations.Migration): dependencies = [ ('taggit', '0003_taggeditem_add_unique_index'), ('blog', '0002_auto_20200411_1458'), ] operations = [ migrations.AddFie...
27.238095
174
0.645105
4a1372ac14eb698114f2010e0c21b2e17e76f0b6
5,166
py
Python
plugins/custom_thumbnail.py
iamvpk/MNLTheBot
c8e7ba00dd15a52c4528dac7a4a58f810697ff88
[ "Apache-2.0" ]
null
null
null
plugins/custom_thumbnail.py
iamvpk/MNLTheBot
c8e7ba00dd15a52c4528dac7a4a58f810697ff88
[ "Apache-2.0" ]
null
null
null
plugins/custom_thumbnail.py
iamvpk/MNLTheBot
c8e7ba00dd15a52c4528dac7a4a58f810697ff88
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # (c) MNL # the logging things import logging logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s') logger = logging.getLogger(__name__) import numpy import os from PIL import Image import time # the ...
36.380282
137
0.624855
4a137381b585e9f7c5f4ba90e5898586431f64b1
1,880
py
Python
tests/fixtures/schnet_fixtures.py
lmj1029123/schnetpack
5b4c26f06db8fc9947d166840b5faba65519a11b
[ "MIT" ]
null
null
null
tests/fixtures/schnet_fixtures.py
lmj1029123/schnetpack
5b4c26f06db8fc9947d166840b5faba65519a11b
[ "MIT" ]
null
null
null
tests/fixtures/schnet_fixtures.py
lmj1029123/schnetpack
5b4c26f06db8fc9947d166840b5faba65519a11b
[ "MIT" ]
null
null
null
import pytest from schnetpack.nn.cutoff import HardCutoff from schnetpack.representation import SchNet @pytest.fixture(scope="session") def n_atom_basis(): return 128 @pytest.fixture(scope="session") def n_filters(): return 128 @pytest.fixture(scope="session") def n_interactions(): return 1 @pytest....
18.431373
50
0.714362
4a137565298c13f8de930b3365dcd94fc59eb6a3
1,702
py
Python
test/test_add_contact_to_group.py
Alimury/Python_lesson
8e97632fd9f1eaf4ec3cd878280333e1409beb52
[ "Apache-2.0" ]
null
null
null
test/test_add_contact_to_group.py
Alimury/Python_lesson
8e97632fd9f1eaf4ec3cd878280333e1409beb52
[ "Apache-2.0" ]
null
null
null
test/test_add_contact_to_group.py
Alimury/Python_lesson
8e97632fd9f1eaf4ec3cd878280333e1409beb52
[ "Apache-2.0" ]
1
2020-12-29T17:55:13.000Z
2020-12-29T17:55:13.000Z
from model.add_new import Add_New from model.group import Group import random import allure def test_add_contact_to_group(app, db, orm): with allure.step("Given if the list is empty new contact"): if len(db.get_contact_list()) == 0: app.contact.create(Add_New(firstname="c_firstname", lastname="...
50.058824
105
0.60047
4a1376cdc9d2875142b09eff05ca733840e5106f
852
py
Python
src/electionguard_cli/cli_models/__init__.py
PradyumnaKrishna/electionguard-python
e239478972d76195c64fd715bb57682d526aab6c
[ "MIT" ]
null
null
null
src/electionguard_cli/cli_models/__init__.py
PradyumnaKrishna/electionguard-python
e239478972d76195c64fd715bb57682d526aab6c
[ "MIT" ]
null
null
null
src/electionguard_cli/cli_models/__init__.py
PradyumnaKrishna/electionguard-python
e239478972d76195c64fd715bb57682d526aab6c
[ "MIT" ]
null
null
null
from electionguard_cli.cli_models import cli_decrypt_results from electionguard_cli.cli_models import cli_election_inputs_base from electionguard_cli.cli_models import e2e_build_election_results from electionguard_cli.cli_models import encrypt_results from electionguard_cli.cli_models.cli_decrypt_results import ( ...
29.37931
69
0.820423
4a13775bea03d7676ac6c138a884e81602620e67
922
py
Python
riko/bado/__init__.py
SpyHello/riko-py-stream
b52e35f3883596a8eac5b2d5be86dcc766dd0a88
[ "MIT" ]
null
null
null
riko/bado/__init__.py
SpyHello/riko-py-stream
b52e35f3883596a8eac5b2d5be86dcc766dd0a88
[ "MIT" ]
null
null
null
riko/bado/__init__.py
SpyHello/riko-py-stream
b52e35f3883596a8eac5b2d5be86dcc766dd0a88
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # vim: sw=4:ts=4:expandtab """ riko.bado ~~~~~~~~~ Provides functions for creating asynchronous riko pipes Examples: basic usage:: >>> from riko import get_path >>> from riko.bado import react """ from __future__ import ( absolute_import, division, print_function, unico...
22.487805
64
0.706074
4a1377de84629fad3ba63c585cde1d5d0a8aeeed
5,931
py
Python
pybind/nos/v7_1_0/brocade_tunnels_ext_rpc/get_tunnel_info/output/tunnel/rbridges/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/nos/v7_1_0/brocade_tunnels_ext_rpc/get_tunnel_info/output/tunnel/rbridges/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/nos/v7_1_0/brocade_tunnels_ext_rpc/get_tunnel_info/output/tunnel/rbridges/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
1
2021-11-05T22:15:42.000Z
2021-11-05T22:15:42.000Z
from operator import attrgetter import pyangbind.lib.xpathhelper as xpathhelper from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType from pyangbind.lib.base import PybindBase from d...
45.623077
452
0.716574
4a1377f7591e488272f21b514695af0bc7af109f
1,284
py
Python
api/utils/chess.py
p0lygun/astounding-arapaimas
f82dbb2ec75ab7d98da6a46a1276c12583048b3c
[ "MIT" ]
null
null
null
api/utils/chess.py
p0lygun/astounding-arapaimas
f82dbb2ec75ab7d98da6a46a1276c12583048b3c
[ "MIT" ]
19
2021-07-11T10:02:08.000Z
2021-07-20T14:58:29.000Z
api/utils/chess.py
p0lygun/astounding-arapaimas
f82dbb2ec75ab7d98da6a46a1276c12583048b3c
[ "MIT" ]
null
null
null
import logging from Chessnut import Game from api.crud import game from api.endpoints import get_db logger = logging.getLogger(__name__) class ChessBoard: """Base class for chess board game.""" def __init__(self, fen: str, game_id: int): self.FEN = fen # will be given by server when multiplayer i...
29.181818
86
0.641745
4a13784d9c58879dd6ca3eda2b13b2724489d804
763
py
Python
examples/structure_from_motion_psychopy_demo.py
jenca-adam/ratcave
141756f4561c1cbf838b354d4f6421926f0b3987
[ "MIT" ]
84
2018-06-14T12:58:33.000Z
2022-03-26T20:36:46.000Z
examples/structure_from_motion_psychopy_demo.py
jenca-adam/ratcave
141756f4561c1cbf838b354d4f6421926f0b3987
[ "MIT" ]
62
2018-05-18T11:55:32.000Z
2021-10-21T14:47:21.000Z
examples/structure_from_motion_psychopy_demo.py
jenca-adam/ratcave
141756f4561c1cbf838b354d4f6421926f0b3987
[ "MIT" ]
24
2018-06-06T15:21:40.000Z
2021-12-27T00:27:20.000Z
from psychopy import visual, event import ratcave as rc import numpy as np from numpy.random import random n_points = 1000 width, height = 0.2, 0.5 theta = random(n_points) * np.pi * 2 verts = np.vstack((np.sin(theta) * width, (random(n_points) - .5) * height, np.cos(theta) * width)).T cylinder = rc.Mesh.from_incompl...
28.259259
126
0.697248
4a13799c4ce8ab001c22422e46012406adc7968a
1,669
py
Python
tests/berlinium/asleep_server.py
fossabot/tilde-1
143810a711f00dc1c64a6eb10573986dddadfcef
[ "MIT" ]
22
2015-07-15T09:55:11.000Z
2021-06-13T14:48:41.000Z
tests/berlinium/asleep_server.py
fossabot/tilde-1
143810a711f00dc1c64a6eb10573986dddadfcef
[ "MIT" ]
87
2015-11-01T20:51:26.000Z
2022-01-02T18:54:18.000Z
tests/berlinium/asleep_server.py
fossabot/tilde-1
143810a711f00dc1c64a6eb10573986dddadfcef
[ "MIT" ]
4
2015-09-13T16:30:18.000Z
2020-07-17T15:55:53.000Z
#!/usr/bin/env python import time import logging from sqlalchemy import text from tornado import web, ioloop from sockjs.tornado import SockJSRouter import set_path from tilde.core.settings import settings from tilde.core.api import API from tilde.berlinium import Async_Connection logging.basicConfig(level=loggin...
27.816667
77
0.669263
4a137dd65dbaf608fdd62d4fb72445447a0f8ba4
3,059
py
Python
src/encode_task_post_call_peak_atac.py
TomKellyGenetics/atac-seq-pipeline
0a69b767064edf7b0edc7af4aaabb09e0fc23b3d
[ "MIT" ]
1
2019-12-28T00:54:00.000Z
2019-12-28T00:54:00.000Z
src/encode_task_post_call_peak_atac.py
TomKellyGenetics/atac-seq-pipeline
0a69b767064edf7b0edc7af4aaabb09e0fc23b3d
[ "MIT" ]
null
null
null
src/encode_task_post_call_peak_atac.py
TomKellyGenetics/atac-seq-pipeline
0a69b767064edf7b0edc7af4aaabb09e0fc23b3d
[ "MIT" ]
1
2020-04-30T00:17:20.000Z
2020-04-30T00:17:20.000Z
#!/usr/bin/env python # Author: Jin Lee (leepc12@gmail.com) import sys import argparse from encode_lib_common import ( assert_file_not_empty, log, ls_l, mkdir_p) from encode_lib_genomic import ( peak_to_bigbed, peak_to_hammock, get_region_size_metrics, get_num_peaks) from encode_lib_blacklist_filter import bl...
34.370787
80
0.607388
4a137e24b04b87b1425b85d7f1c3371b8f67d268
1,276
py
Python
python/oneflow/test/modules/optimizer_test_util.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
3,285
2020-07-31T05:51:22.000Z
2022-03-31T15:20:16.000Z
python/oneflow/test/modules/optimizer_test_util.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
2,417
2020-07-31T06:28:58.000Z
2022-03-31T23:04:14.000Z
python/oneflow/test/modules/optimizer_test_util.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
520
2020-07-31T05:52:42.000Z
2022-03-29T02:38:11.000Z
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
35.444444
74
0.695925
4a137e36408d5b5457c982448a1c6047a9b85550
8,240
py
Python
src/olympia/amo/tests/test_redirects.py
gijsk/addons-server
7c38f379e3a0b4a5ca231f98ac0c049450c224bd
[ "BSD-3-Clause" ]
null
null
null
src/olympia/amo/tests/test_redirects.py
gijsk/addons-server
7c38f379e3a0b4a5ca231f98ac0c049450c224bd
[ "BSD-3-Clause" ]
null
null
null
src/olympia/amo/tests/test_redirects.py
gijsk/addons-server
7c38f379e3a0b4a5ca231f98ac0c049450c224bd
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Check all our redirects from remora to zamboni.""" from django.db import connection from olympia import amo from olympia.addons.models import Category from olympia.amo.tests import TestCase class TestRedirects(TestCase): fixtures = ['ratings/test_models', 'addons/persona', 'base/global...
43.829787
79
0.586408
4a137ed614c83c5fe391ce30c84e030ca4799ba6
3,632
py
Python
oarepo_model_builder/schema.py
Alzpeta/oarepo-model-builder
0684b505f3e6f41e964747190fe78b938d53182f
[ "MIT" ]
null
null
null
oarepo_model_builder/schema.py
Alzpeta/oarepo-model-builder
0684b505f3e6f41e964747190fe78b938d53182f
[ "MIT" ]
null
null
null
oarepo_model_builder/schema.py
Alzpeta/oarepo-model-builder
0684b505f3e6f41e964747190fe78b938d53182f
[ "MIT" ]
null
null
null
import copy import pathlib from typing import Dict, Callable import munch from jsonpointer import resolve_pointer from .exceptions import IncludedFileNotFoundException from .utils.deepmerge import deepmerge from .utils.hyphen_munch import HyphenMunch class ModelSchema: OAREPO_USE = 'oarepo:use' def __init_...
33.62963
105
0.636013
4a137fe8ed336765232f342362e325593bc263b3
844
py
Python
posts/migrations/0004_auto_20210107_1419.py
KolesnikRV/hw05_final
91985b2a14daae5e66a61bbb71443671a0b063e7
[ "BSD-3-Clause" ]
null
null
null
posts/migrations/0004_auto_20210107_1419.py
KolesnikRV/hw05_final
91985b2a14daae5e66a61bbb71443671a0b063e7
[ "BSD-3-Clause" ]
2
2021-09-08T03:39:22.000Z
2022-01-13T03:54:00.000Z
posts/migrations/0004_auto_20210107_1419.py
KolesnikRV/hw05_final
91985b2a14daae5e66a61bbb71443671a0b063e7
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 2.2.6 on 2021-01-07 14:19 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('posts', '0003_auto_20201214_0429'), ] operations = [ migrations.AlterField( model_name='post', ...
33.76
255
0.64455
4a138209d972f0429132e8fcf0c0508cb6aa7202
784
py
Python
fbpcs/pcf/tests/async_utils.py
joe1234wu/fbpcs
c9f57bf1b65adcbe39c6676ade5fc89e81dc5979
[ "MIT" ]
63
2021-08-18T01:50:22.000Z
2022-03-25T06:44:36.000Z
fbpcs/pcf/tests/async_utils.py
joe1234wu/fbpcs
c9f57bf1b65adcbe39c6676ade5fc89e81dc5979
[ "MIT" ]
672
2021-08-18T05:20:32.000Z
2022-03-31T23:30:13.000Z
fbpcs/pcf/tests/async_utils.py
joe1234wu/fbpcs
c9f57bf1b65adcbe39c6676ade5fc89e81dc5979
[ "MIT" ]
61
2021-08-18T20:02:30.000Z
2022-03-31T22:44:17.000Z
#!/usr/bin/env python3 # Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import asyncio import functools import unittest from typing import Any def AsyncMock(*args, **kwargs): m = unit...
20.631579
65
0.682398
4a13825cedd84ea1933669a22b9649cd4c792286
1,872
py
Python
lambda-func.py
nolorin/workbook-py
48064746532d5ff3b316d048293a737efa92c708
[ "MIT" ]
null
null
null
lambda-func.py
nolorin/workbook-py
48064746532d5ff3b316d048293a737efa92c708
[ "MIT" ]
null
null
null
lambda-func.py
nolorin/workbook-py
48064746532d5ff3b316d048293a737efa92c708
[ "MIT" ]
null
null
null
# Integer multiplication function that uses lambda function arguments. Note: in PHP lambda functions are variable scope function definitions. class Object: def __init__( self, prop ): self.value = prop def __mul__( self, toMult ): n = len( vars( self ) ) setattr( self, 'child_' + str(n), toMult ); return self...
39.829787
155
0.645299
4a1383279eb80f60cc3de2ebcf2402693b4c8e37
4,261
py
Python
spinor_gpe/examples/1_ground_state.py
readthedocs-assistant/spinor-gpe
02ec6ad98479ca182ff3f7f578669690bb1d5379
[ "MIT" ]
null
null
null
spinor_gpe/examples/1_ground_state.py
readthedocs-assistant/spinor-gpe
02ec6ad98479ca182ff3f7f578669690bb1d5379
[ "MIT" ]
1
2021-06-10T12:02:16.000Z
2021-06-10T12:02:16.000Z
spinor_gpe/examples/1_ground_state.py
readthedocs-assistant/spinor-gpe
02ec6ad98479ca182ff3f7f578669690bb1d5379
[ "MIT" ]
1
2022-01-19T20:07:03.000Z
2022-01-19T20:07:03.000Z
""" Example 1: Ground State ======================= Starting with the Thomas-Fermi solution, propagate in imaginary time to reach the ground state. Propagation smooths out the sharp edges on both components' densities. Physical Parameters ------------------- .. topic:: Atom number :math:`\\quad N_{\\rm at} = 100...
26.63125
124
0.582492
4a1383ce7a98518b07e197572022ba5d0b703517
647
py
Python
POO/ClassesAbstratas/aula110_main.py
pinheirogus/Curso-Python-Udemy
d6d52320426172e924081b9df619490baa8c6016
[ "MIT" ]
1
2021-09-01T01:58:13.000Z
2021-09-01T01:58:13.000Z
POO/ClassesAbstratas/aula110_main.py
pinheirogus/Curso-Python-Udemy
d6d52320426172e924081b9df619490baa8c6016
[ "MIT" ]
null
null
null
POO/ClassesAbstratas/aula110_main.py
pinheirogus/Curso-Python-Udemy
d6d52320426172e924081b9df619490baa8c6016
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod # # class A(ABC): # @abstractmethod # def falar(self): # pass # # class B(A): # def falar(self): # print('Falando em B.') # # # b = B() # # b.falar() from classes.contaPoupanca import ContaPoupanca from classes.contaCorrente import ContaCorrente poupanca...
19.606061
87
0.612056
4a13850014b5bc2ff3906c107fa28c763aba2349
8,853
py
Python
releasenotes/source/conf.py
jovial/kayobe-1
3bc8d8957714f3485114864c9efd45f5c9210474
[ "Apache-2.0" ]
1
2021-08-17T13:55:59.000Z
2021-08-17T13:55:59.000Z
releasenotes/source/conf.py
jovial/kayobe-1
3bc8d8957714f3485114864c9efd45f5c9210474
[ "Apache-2.0" ]
1
2018-07-25T14:33:59.000Z
2018-07-25T14:33:59.000Z
releasenotes/source/conf.py
stackhpc/gr-kayobe
86b1e3ef544f22dc7b52f1915c65d483c13c00e9
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software...
32.192727
79
0.71456
4a138617123a1547223f06a4f12df0d89ec7f33e
358
py
Python
tests/datagen/obsscheduleclass.py
faysal-ishtiaq/climsoft-api
46dacdeba5d935ee3b944df00731640170b87ccd
[ "MIT" ]
null
null
null
tests/datagen/obsscheduleclass.py
faysal-ishtiaq/climsoft-api
46dacdeba5d935ee3b944df00731640170b87ccd
[ "MIT" ]
2
2022-01-16T15:41:27.000Z
2022-01-30T18:37:13.000Z
tests/datagen/obsscheduleclass.py
openclimateinitiative/climsoft-api
3591d7499dd7777617b8086332dc83fab1af9588
[ "MIT" ]
2
2021-12-22T21:50:19.000Z
2022-01-28T12:53:32.000Z
import uuid from faker import Faker from climsoft_api.api.obsscheduleclass import schema as obsscheduleclass_schema fake = Faker() def get_valid_obs_schedule_class_input(station_id: str): return obsscheduleclass_schema.ObsScheduleClass( scheduleClass=uuid.uuid4().hex, description=uuid.uuid4().he...
23.866667
79
0.759777
4a138695ee9c9bb360eb485fbeecf2e951f8bbb0
229
py
Python
teleftp/config/__init__.py
MoscowSchool45/teleftp
75442e3e287508246a32ae65fe215f5eccee18f0
[ "BSD-3-Clause" ]
3
2018-04-03T12:14:04.000Z
2020-07-11T15:26:55.000Z
teleftp/config/__init__.py
MoscowSchool45/teleftp
75442e3e287508246a32ae65fe215f5eccee18f0
[ "BSD-3-Clause" ]
null
null
null
teleftp/config/__init__.py
MoscowSchool45/teleftp
75442e3e287508246a32ae65fe215f5eccee18f0
[ "BSD-3-Clause" ]
null
null
null
import json class Config(object): def __init__(self, config_filename): with open(config_filename, "r") as f: self.config = json.load(f) def __getattr__(self, name): return self.config[name]
20.818182
45
0.633188
4a1386d3dea4d077a53d68c5acc4756d9f556d77
5,733
py
Python
preprocessing/helpers/data_utils.py
lbyiuou0329/Copycat-abstractive-opinion-summarizer
650339109ca63f27e00a69eece3a42863eed4524
[ "MIT" ]
null
null
null
preprocessing/helpers/data_utils.py
lbyiuou0329/Copycat-abstractive-opinion-summarizer
650339109ca63f27e00a69eece3a42863eed4524
[ "MIT" ]
null
null
null
preprocessing/helpers/data_utils.py
lbyiuou0329/Copycat-abstractive-opinion-summarizer
650339109ca63f27e00a69eece3a42863eed4524
[ "MIT" ]
null
null
null
import gzip from mltoolkit.mlutils.helpers.formatting.general import unescape from preprocessing.fields import OutputFields, AmazonFields, YelpFields from mltoolkit.mlutils.helpers.paths_and_files import get_file_name, \ safe_mkfdir, \ comb_paths import csv import os import json def opener(filename): f = ...
30.989189
86
0.641723
4a1388a0743ab4e460e50400c13a4cdd0c658a0f
276
py
Python
FictionTools/amitools/amitools/vamos/cfgcore/__init__.py
polluks/Puddle-BuildTools
c1762d53a33002b62d8cffe3db129505a387bec3
[ "BSD-2-Clause" ]
38
2021-06-18T12:56:15.000Z
2022-03-12T20:38:40.000Z
FictionTools/amitools/amitools/vamos/cfgcore/__init__.py
polluks/Puddle-BuildTools
c1762d53a33002b62d8cffe3db129505a387bec3
[ "BSD-2-Clause" ]
2
2021-06-20T16:28:12.000Z
2021-11-17T21:33:56.000Z
FictionTools/amitools/amitools/vamos/cfgcore/__init__.py
polluks/Puddle-BuildTools
c1762d53a33002b62d8cffe3db129505a387bec3
[ "BSD-2-Clause" ]
6
2021-06-18T18:18:36.000Z
2021-12-22T08:01:32.000Z
from .main import MainParser, log_cfg from .parser import Parser from .value import Value, ValueList, ValueDict, parse_scalar, split_nest from .defdict import DefaultDict from .argdict import Argument, ArgumentDict from .trafo import DictTrafo from .cfgdict import ConfigDict
34.5
72
0.82971
4a138958112863eadef4d8bf3702fb21d3733fd3
10,276
py
Python
sdks/python/apache_beam/coders/standard_coders_test.py
niuzhi/beam
1e2b5165c1a4c157ae36312c8d0f078ea64a48ea
[ "Apache-2.0" ]
1
2020-07-24T14:52:25.000Z
2020-07-24T14:52:25.000Z
sdks/python/apache_beam/coders/standard_coders_test.py
niuzhi/beam
1e2b5165c1a4c157ae36312c8d0f078ea64a48ea
[ "Apache-2.0" ]
null
null
null
sdks/python/apache_beam/coders/standard_coders_test.py
niuzhi/beam
1e2b5165c1a4c157ae36312c8d0f078ea64a48ea
[ "Apache-2.0" ]
null
null
null
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
37.097473
80
0.668548
4a13896e428942841347a16f80cd57b3d639d3f0
3,239
py
Python
app/mysite/mysite/settings.py
lassi-dev/pipeline1
bd91d8e3fab636e0d30127976726217ce177d2e8
[ "Unlicense" ]
null
null
null
app/mysite/mysite/settings.py
lassi-dev/pipeline1
bd91d8e3fab636e0d30127976726217ce177d2e8
[ "Unlicense" ]
null
null
null
app/mysite/mysite/settings.py
lassi-dev/pipeline1
bd91d8e3fab636e0d30127976726217ce177d2e8
[ "Unlicense" ]
null
null
null
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 3.2.6. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from pathlib ...
25.706349
91
0.700525
4a138981275e9d5237d80becb5ec4b00833b9da0
22,254
py
Python
tests/test_cassandra.py
smaato/biggraphite
edf2c6e56505806c122196745de149cd6f53b453
[ "Apache-2.0" ]
null
null
null
tests/test_cassandra.py
smaato/biggraphite
edf2c6e56505806c122196745de149cd6f53b453
[ "Apache-2.0" ]
null
null
null
tests/test_cassandra.py
smaato/biggraphite
edf2c6e56505806c122196745de149cd6f53b453
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2016 Criteo # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
38.302926
93
0.618451
4a138a0fa3b2eca11a2054b19e5e6f71a466dbb9
2,920
py
Python
5.4.3-tf-grad-cam.py
83286415/DeepLearningWithPythonKeras
d3e7dd3b206d3d22a45ad4967a00edd26c4cbe75
[ "MIT" ]
null
null
null
5.4.3-tf-grad-cam.py
83286415/DeepLearningWithPythonKeras
d3e7dd3b206d3d22a45ad4967a00edd26c4cbe75
[ "MIT" ]
null
null
null
5.4.3-tf-grad-cam.py
83286415/DeepLearningWithPythonKeras
d3e7dd3b206d3d22a45ad4967a00edd26c4cbe75
[ "MIT" ]
null
null
null
from vgg import vgg16 import tensorflow as tf import numpy as np from skimage import io from skimage.transform import resize from matplotlib import pyplot as plt from imagenet_classes import class_names from scipy.misc import imread, imresize flags = tf.app.flags flags.DEFINE_string("input", "laska.png", "Path to inpu...
28.349515
90
0.693836
4a138b2917860914c9592469ab2a1b2b3193c6c4
1,287
py
Python
python-lib/quotes/spiders.py
lukin0110/quotes
0797ae3ffed19076aedd9b44ca107ad9742afcb4
[ "Apache-2.0" ]
9
2018-06-22T20:39:41.000Z
2022-01-07T12:57:32.000Z
python-lib/quotes/spiders.py
lukin0110/quotes
0797ae3ffed19076aedd9b44ca107ad9742afcb4
[ "Apache-2.0" ]
8
2016-10-17T12:44:40.000Z
2016-10-24T19:08:15.000Z
python-lib/quotes/spiders.py
lukin0110/quotes
0797ae3ffed19076aedd9b44ca107ad9742afcb4
[ "Apache-2.0" ]
4
2019-01-25T19:01:40.000Z
2020-12-15T19:32:56.000Z
import scrapy import tempfile from scrapy.crawler import CrawlerProcess from .write import write class BrainyQuoteSpider(scrapy.Spider): """ Execute from the shell: $ scrapy runspider spiders.py -o in.csv """ name = 'BrainyQuote' start_urls = [''] def parse(self, response): for t...
27.382979
98
0.63481
4a138b81ff0dcb3e84996373cf8c2f61c52dd838
604
py
Python
src/core/tests/widgets/test_icon.py
d3r3kk/toga
2d8c0eb30371c4ef4f0610251233569e9c618e93
[ "BSD-3-Clause" ]
2
2019-02-19T17:19:24.000Z
2020-04-13T21:22:24.000Z
src/core/tests/widgets/test_icon.py
d3r3kk/toga
2d8c0eb30371c4ef4f0610251233569e9c618e93
[ "BSD-3-Clause" ]
2
2019-10-26T20:54:06.000Z
2019-10-26T21:43:43.000Z
src/core/tests/widgets/test_icon.py
d3r3kk/toga
2d8c0eb30371c4ef4f0610251233569e9c618e93
[ "BSD-3-Clause" ]
4
2019-02-13T17:54:15.000Z
2019-10-26T21:16:27.000Z
import unittest from unittest.mock import MagicMock import toga import toga_dummy class TestIcon(unittest.TestCase): def setUp(self): self.factory = MagicMock() self.factory.Icon = MagicMock(return_value=MagicMock(spec=toga_dummy.factory.Icon)) self.test_path = "Example.bmp" self...
28.761905
91
0.708609
4a138c84c2e4211d64e0e94123aa5c7e881018a8
24,719
py
Python
nanodet/data/dataset/coco.py
CPFelix/-nanodet
2af3228d06f7694d274c7b29276abd398630ca21
[ "Apache-2.0" ]
14
2022-03-21T21:04:38.000Z
2022-03-29T12:49:34.000Z
nanodet/data/dataset/coco.py
CPFelix/-nanodet
2af3228d06f7694d274c7b29276abd398630ca21
[ "Apache-2.0" ]
null
null
null
nanodet/data/dataset/coco.py
CPFelix/-nanodet
2af3228d06f7694d274c7b29276abd398630ca21
[ "Apache-2.0" ]
1
2022-03-24T18:46:17.000Z
2022-03-24T18:46:17.000Z
# Copyright 2021 RangiLyu. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, so...
40.857851
138
0.53825
4a138d0d59998bf2a759c9c88abaa9b09b15b3ba
1,838
py
Python
plot_MSE.py
hpphappy/reconstruct_ptychography
a002cdff01e6dbfe9417fd3d764b22a9bbad2d94
[ "MIT" ]
null
null
null
plot_MSE.py
hpphappy/reconstruct_ptychography
a002cdff01e6dbfe9417fd3d764b22a9bbad2d94
[ "MIT" ]
null
null
null
plot_MSE.py
hpphappy/reconstruct_ptychography
a002cdff01e6dbfe9417fd3d764b22a9bbad2d94
[ "MIT" ]
1
2021-08-12T23:07:27.000Z
2021-08-12T23:07:27.000Z
import matplotlib.pyplot as plt import matplotlib matplotlib.use('pdf') import h5py import os from util import * import dxchange import numpy as np path = 'cell/NMF_ptycho_recon' save_path = os.path.join(path, 'comparison') if not os.path.exists(save_path): os.makedirs(save_path) grid_delta = np.load('cell/phant...
32.245614
163
0.708379
4a138e47f388418ef7df8b6c8f66a672b111f944
3,333
py
Python
test.py
sdtaylor/NIST-DSE
0b14407aa9301338d42a7802d02e91739a4f8012
[ "MIT" ]
null
null
null
test.py
sdtaylor/NIST-DSE
0b14407aa9301338d42a7802d02e91739a4f8012
[ "MIT" ]
null
null
null
test.py
sdtaylor/NIST-DSE
0b14407aa9301338d42a7802d02e91739a4f8012
[ "MIT" ]
null
null
null
from skimage.external import tifffile from skimage import io from skimage import measure from skimage.morphology import watershed from scipy import ndimage as ndi import matplotlib.pyplot as plt from skimage.feature import peak_local_max import numpy as np def ndvi_from_hs(i): red_bands = np.array([51,52,53,54,...
37.033333
91
0.631863
4a138f4c73402c45da2cbb276b5123f7eaea78c6
4,448
py
Python
safedelete/tests/test_admin.py
yuekui/django-safedelete
aa16098b31155f44a680a30980559cd468383e4a
[ "BSD-3-Clause" ]
null
null
null
safedelete/tests/test_admin.py
yuekui/django-safedelete
aa16098b31155f44a680a30980559cd468383e4a
[ "BSD-3-Clause" ]
null
null
null
safedelete/tests/test_admin.py
yuekui/django-safedelete
aa16098b31155f44a680a30980559cd468383e4a
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.contrib import admin from django.contrib.admin.sites import AdminSite from django.contrib.admin.views.main import ChangeList from django.contrib.auth.models import User from django.db import models from django.test import RequestFactory, TestC...
35.301587
104
0.641637
4a138fac8cfe9a3698492c156e5e2ac37788d4c3
621
py
Python
cogs/auto_tempunban.py
PyBot-Development/PyBot-v4
7fb821940bf43ded7d6996342b83afda4174d36e
[ "MIT" ]
null
null
null
cogs/auto_tempunban.py
PyBot-Development/PyBot-v4
7fb821940bf43ded7d6996342b83afda4174d36e
[ "MIT" ]
null
null
null
cogs/auto_tempunban.py
PyBot-Development/PyBot-v4
7fb821940bf43ded7d6996342b83afda4174d36e
[ "MIT" ]
null
null
null
from discord.ext import commands, tasks import discord from resources import support, GLOBAL_DATABASE class loop(commands.Cog, name="loop"): def __init__(self, client): self.client = client self.autotempunban.start() @tasks.loop(minutes=2) async def autotempunban(self): for i in aw...
31.05
53
0.690821
4a1390a2b0cf7bc0391a2699c3c3f0d5655c7a53
23,878
py
Python
esmvaltool/diag_scripts/shared/_diag.py
jvegasbsc/ESMValTool
792dd98a07b227779dc5733270b01c6502a784ed
[ "Apache-2.0" ]
1
2022-01-27T22:55:19.000Z
2022-01-27T22:55:19.000Z
esmvaltool/diag_scripts/shared/_diag.py
jvegasbsc/ESMValTool
792dd98a07b227779dc5733270b01c6502a784ed
[ "Apache-2.0" ]
null
null
null
esmvaltool/diag_scripts/shared/_diag.py
jvegasbsc/ESMValTool
792dd98a07b227779dc5733270b01c6502a784ed
[ "Apache-2.0" ]
null
null
null
"""Convenience classes and functions to implement python diagnostics. Example ------- Import and use these basic classes by e.g.:: import esmvaltool.diag_scripts.shared as e datasets = e.Datasets(cfg) variables = e.Variables(cfg) """ import collections import logging import warnings from esmvaltool im...
28.596407
79
0.54033
4a1391719bbce360831028e7784bf5b170c514cb
4,302
py
Python
dbbact_server/dbidval.py
amnona/dbBact
4cae61c26352a7f2d032ef74aee860c66583c616
[ "MIT" ]
null
null
null
dbbact_server/dbidval.py
amnona/dbBact
4cae61c26352a7f2d032ef74aee860c66583c616
[ "MIT" ]
3
2021-02-14T11:55:51.000Z
2022-01-21T09:52:32.000Z
dbbact_server/dbidval.py
amnona/dbbact-server
54dc776444b061373d928aab63c4284d8837671a
[ "MIT" ]
null
null
null
import psycopg2 from .utils import debug def GetIdFromDescription(con, cur, table, description, noneok=False, addifnone=False, commit=True): """ Get the id based on a value for a given table (and add if doesn't exists if addifnone=True) input: con,cur table : str Name of the table to sear...
34.142857
107
0.584612
4a1391bce9290943996595c59cc21fb73b6b249f
801
py
Python
darling_ansible/python_venv/lib/python3.7/site-packages/oci/streaming/__init__.py
revnav/sandbox
f9c8422233d093b76821686b6c249417502cf61d
[ "Apache-2.0" ]
null
null
null
darling_ansible/python_venv/lib/python3.7/site-packages/oci/streaming/__init__.py
revnav/sandbox
f9c8422233d093b76821686b6c249417502cf61d
[ "Apache-2.0" ]
null
null
null
darling_ansible/python_venv/lib/python3.7/site-packages/oci/streaming/__init__.py
revnav/sandbox
f9c8422233d093b76821686b6c249417502cf61d
[ "Apache-2.0" ]
1
2020-06-25T03:12:58.000Z
2020-06-25T03:12:58.000Z
# coding: utf-8 # Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
53.4
245
0.826467
4a1391ef9418c9e1b053d66fb428891890dab26e
322
py
Python
config/api_router.py
luiscberrocal/pty_shopping_list
b6ef499c001c1b2c1d338f94b130c1b3e8c7a796
[ "MIT" ]
1
2022-01-19T23:57:19.000Z
2022-01-19T23:57:19.000Z
config/api_router.py
luiscberrocal/pty_shopping_list
b6ef499c001c1b2c1d338f94b130c1b3e8c7a796
[ "MIT" ]
15
2022-01-15T19:02:55.000Z
2022-03-31T21:32:22.000Z
config/api_router.py
luiscberrocal/pty_shopping_list
b6ef499c001c1b2c1d338f94b130c1b3e8c7a796
[ "MIT" ]
1
2022-01-21T12:54:45.000Z
2022-01-21T12:54:45.000Z
from django.conf import settings from rest_framework.routers import DefaultRouter, SimpleRouter from pty_shopping_list.users.api.views import UserViewSet if settings.DEBUG: router = DefaultRouter() else: router = SimpleRouter() router.register("users", UserViewSet) app_name = "api" urlpatterns = router.url...
20.125
62
0.785714
4a13937cfed2fd7686f6bbb97041be075f4564b4
348
py
Python
mirari/INV/migrations/0002_auto_20190608_2204.py
gcastellan0s/mirariapp
24a9db06d10f96c894d817ef7ccfeec2a25788b7
[ "MIT" ]
null
null
null
mirari/INV/migrations/0002_auto_20190608_2204.py
gcastellan0s/mirariapp
24a9db06d10f96c894d817ef7ccfeec2a25788b7
[ "MIT" ]
18
2019-12-27T19:58:20.000Z
2022-02-27T08:17:49.000Z
mirari/INV/migrations/0002_auto_20190608_2204.py
gcastellan0s/mirariapp
24a9db06d10f96c894d817ef7ccfeec2a25788b7
[ "MIT" ]
null
null
null
# Generated by Django 2.0.5 on 2019-06-09 03:04 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('INV', '0001_initial'), ] operations = [ migrations.RenameField( model_name='fiscalmx', old_name='nocer', new_nam...
18.315789
47
0.566092
4a1395b63f80c98d09e69ff42527e3dbeab29ab4
1,449
py
Python
tests/test_linked_list.py
nyakaz73/datastructure_collection
19922d8d9f95b3588daaafb780c02fa0196d9790
[ "MIT" ]
1
2020-07-27T21:01:37.000Z
2020-07-27T21:01:37.000Z
tests/test_linked_list.py
nyakaz73/datastructure_collection
19922d8d9f95b3588daaafb780c02fa0196d9790
[ "MIT" ]
null
null
null
tests/test_linked_list.py
nyakaz73/datastructure_collection
19922d8d9f95b3588daaafb780c02fa0196d9790
[ "MIT" ]
null
null
null
import unittest from datastructure_collection import LinkedList class TestLinkedList(unittest.TestCase): def test_empty_linked(self): linked = LinkedList() self.assertEqual(len(linked), 0) self.assertTrue(linked.isEmpty()) def test_add(self): linked = LinkedList() ...
25.875
47
0.571429
4a139715b1f3411f17514223c63b946aa9847cbc
3,848
py
Python
zeus/common/ipc/comm_by_zmq.py
TianQi-777/xingtian
9b1678ad6ff12f00c2826a7ec7f42d5350b83b31
[ "MIT" ]
240
2020-08-15T15:11:49.000Z
2022-03-28T07:26:23.000Z
zeus/common/ipc/comm_by_zmq.py
TianQi-777/xingtian
9b1678ad6ff12f00c2826a7ec7f42d5350b83b31
[ "MIT" ]
20
2020-08-29T06:18:21.000Z
2022-03-21T04:35:57.000Z
zeus/common/ipc/comm_by_zmq.py
TianQi-777/xingtian
9b1678ad6ff12f00c2826a7ec7f42d5350b83b31
[ "MIT" ]
69
2020-08-15T15:41:53.000Z
2022-03-16T08:27:47.000Z
# Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved. # # 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 us...
34.981818
79
0.606809
4a139772c4ea1ea54c50f18f91e161b419c68e07
4,344
py
Python
hanlp/pretrained/mtl.py
yatwql/HanLP
584ce7e5ed1b8f2209e14f32c44a55bb5a822e31
[ "Apache-2.0" ]
null
null
null
hanlp/pretrained/mtl.py
yatwql/HanLP
584ce7e5ed1b8f2209e14f32c44a55bb5a822e31
[ "Apache-2.0" ]
null
null
null
hanlp/pretrained/mtl.py
yatwql/HanLP
584ce7e5ed1b8f2209e14f32c44a55bb5a822e31
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- # Author: hankcs # Date: 2020-12-22 13:16 from hanlp_common.constant import HANLP_URL OPEN_TOK_POS_NER_SRL_DEP_SDP_CON_ELECTRA_SMALL_ZH = HANLP_URL + 'mtl/open_tok_pos_ner_srl_dep_sdp_con_electra_small_20201223_035557.zip' "Electra (:cite:`clark2020electra`) small version of joint tok, pos, ner,...
140.129032
1,397
0.78361
4a1398e7503321d4486174e451aa4cb5de874d6f
7,406
py
Python
src/datadog_api_client/v1/model/organization_create_body.py
MichaelTROEHLER/datadog-api-client-python
12c46626622fb1277bb1e172753b342c671348bd
[ "Apache-2.0" ]
null
null
null
src/datadog_api_client/v1/model/organization_create_body.py
MichaelTROEHLER/datadog-api-client-python
12c46626622fb1277bb1e172753b342c671348bd
[ "Apache-2.0" ]
null
null
null
src/datadog_api_client/v1/model/organization_create_body.py
MichaelTROEHLER/datadog-api-client-python
12c46626622fb1277bb1e172753b342c671348bd
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. # This product includes software developed at Datadog (https://www.datadoghq.com/). # Copyright 2019-Present Datadog, Inc. import re # noqa: F401 import sys # noqa: F401 import nulltype # ...
40.25
110
0.600459