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
797fd8e7d5f184403dc290bf37a3c4c7dc58abc0
6,760
py
Python
bindings/python/ensmallen_graph/datasets/string/rhodococcuspyridinivorans.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
bindings/python/ensmallen_graph/datasets/string/rhodococcuspyridinivorans.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
bindings/python/ensmallen_graph/datasets/string/rhodococcuspyridinivorans.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
""" This file offers the methods to automatically retrieve the graph Rhodococcus pyridinivorans. The graph is automatically retrieved from the STRING repository. Report --------------------- At the time of rendering these methods (please see datetime below), the graph had the following characteristics: Datetime: ...
35.39267
223
0.706805
797fd971e2e948f59cc87b9b3abae8d7169ada25
624
py
Python
corehq/util/tests/test_json_error.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
471
2015-01-10T02:55:01.000Z
2022-03-29T18:07:18.000Z
corehq/util/tests/test_json_error.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
14,354
2015-01-01T07:38:23.000Z
2022-03-31T20:55:14.000Z
corehq/util/tests/test_json_error.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
175
2015-01-06T07:16:47.000Z
2022-03-29T13:27:01.000Z
from django.test.testcases import SimpleTestCase from corehq.util.test_utils import generate_cases from corehq.util.view_utils import _json_exception_response_data class JsonErrorTests(SimpleTestCase): """Test json_error decorator""" @generate_cases([ (b'ascii bytes', 'ascii bytes'), ('ascii unicode',)...
31.2
68
0.753205
797fda2be2ccd073a8f476e59af096c6524adba0
1,508
py
Python
pretrainedmodels/models/utils.py
sis0truk/pretrained-models.pytorch
4aea6d47996279b4b281355ca3d9738d0dff7469
[ "BSD-3-Clause" ]
18
2019-02-05T14:46:49.000Z
2020-08-12T21:48:45.000Z
student_net_learning/pretrainedmodels/models/utils.py
Sunshine352/mcs_2018_adversarial_attack
01af584fdf1149ee5a661f340aff7e57cb7683a8
[ "MIT" ]
null
null
null
student_net_learning/pretrainedmodels/models/utils.py
Sunshine352/mcs_2018_adversarial_attack
01af584fdf1149ee5a661f340aff7e57cb7683a8
[ "MIT" ]
6
2018-10-29T08:52:48.000Z
2021-08-20T07:28:52.000Z
from .fbresnet import pretrained_settings as fbresnet_settings from .bninception import pretrained_settings as bninception_settings from .resnext import pretrained_settings as resnext_settings from .inceptionv4 import pretrained_settings as inceptionv4_settings from .inceptionresnetv2 import pretrained_settings as ince...
38.666667
82
0.836207
797fdb326243628540ea5e384e599c389e902f80
2,360
py
Python
Code/bin_manager/mgr_admintask/view_customer.py
kailashmuralidharan/smartbin
87f762f7d15e0da6645ce62c49f6a8b4ccfe785d
[ "MIT" ]
null
null
null
Code/bin_manager/mgr_admintask/view_customer.py
kailashmuralidharan/smartbin
87f762f7d15e0da6645ce62c49f6a8b4ccfe785d
[ "MIT" ]
null
null
null
Code/bin_manager/mgr_admintask/view_customer.py
kailashmuralidharan/smartbin
87f762f7d15e0da6645ce62c49f6a8b4ccfe785d
[ "MIT" ]
1
2020-01-22T10:35:38.000Z
2020-01-22T10:35:38.000Z
from django.shortcuts import render, get_object_or_404, redirect from django.views.generic import (TemplateView, ListView, DetailView, CreateView, UpdateView, FormView, DeleteView) from django.urls import reverse_lazy, reverse from .models import AccountForm, CustomerBinForm, CustomerSearchForm from django.db.models im...
28.095238
115
0.688983
797fdc2c2ec5091422e52fc437c78b3790daad95
2,963
py
Python
seventweets/registry.py
sbg/seventweets
a2733ff175e8be6e34f346a9a14f7f30ab24ea74
[ "Apache-2.0" ]
2
2017-06-12T11:00:38.000Z
2018-06-21T07:54:38.000Z
seventweets/registry.py
sbg/seventweets
a2733ff175e8be6e34f346a9a14f7f30ab24ea74
[ "Apache-2.0" ]
null
null
null
seventweets/registry.py
sbg/seventweets
a2733ff175e8be6e34f346a9a14f7f30ab24ea74
[ "Apache-2.0" ]
null
null
null
import logging from functools import partial from seventweets import config from seventweets.db import get_db, get_ops from seventweets.client import Client from seventweets.exceptions import Conflict from typing import List logger = logging.getLogger(__name__) class Node: """ Node represents remote instanc...
26.693694
78
0.629092
797fdcab28388eca3b26d7035cb2832915c89025
770
py
Python
Chapter02/keras_VGG16_prebuilt.py
borisgarbuzov/Deep-Learning-with-Keras
21f37bc92b85be5546066893337977f94c7da0b9
[ "MIT" ]
null
null
null
Chapter02/keras_VGG16_prebuilt.py
borisgarbuzov/Deep-Learning-with-Keras
21f37bc92b85be5546066893337977f94c7da0b9
[ "MIT" ]
null
null
null
Chapter02/keras_VGG16_prebuilt.py
borisgarbuzov/Deep-Learning-with-Keras
21f37bc92b85be5546066893337977f94c7da0b9
[ "MIT" ]
null
null
null
from keras.applications.vgg16 import VGG16 from keras.models import Model from keras.preprocessing import image from keras.applications.vgg16 import preprocess_input import numpy as np # pre-built and pre-trained deep learning VGG16 model base_model = VGG16(weights='imagenet', include_top=True) for i, layer in enumer...
29.615385
88
0.785714
797fdcda9cfaae52104a4df13376884b4772cbbc
986
py
Python
coding/learn_python/object_oriented_programming/vector_v1.py
yatao91/learning_road
e88dc43de98e35922bfc71c222ec71766851e618
[ "MIT" ]
3
2021-05-25T16:58:52.000Z
2022-02-05T09:37:17.000Z
coding/learn_python/object_oriented_programming/vector_v1.py
yataosu/learning_road
e88dc43de98e35922bfc71c222ec71766851e618
[ "MIT" ]
null
null
null
coding/learn_python/object_oriented_programming/vector_v1.py
yataosu/learning_road
e88dc43de98e35922bfc71c222ec71766851e618
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- from array import array import reprlib import math class Vector: typecode = 'd' def __init__(self, components): self._components = array(self.typecode, components) def __iter__(self): return iter(self._components) def __repr__(self): components = repr...
23.47619
59
0.610548
797fdd1d059994df6972e19dc299b9fa0a5c842f
7,805
py
Python
cryptoapis/model/list_transactions_by_block_hash_response_item_blockchain_specific_dash_script_pub_key.py
xan187/Crypto_APIs_2.0_SDK_Python
a56c75df54ef037b39be1315ed6e54de35bed55b
[ "MIT" ]
null
null
null
cryptoapis/model/list_transactions_by_block_hash_response_item_blockchain_specific_dash_script_pub_key.py
xan187/Crypto_APIs_2.0_SDK_Python
a56c75df54ef037b39be1315ed6e54de35bed55b
[ "MIT" ]
null
null
null
cryptoapis/model/list_transactions_by_block_hash_response_item_blockchain_specific_dash_script_pub_key.py
xan187/Crypto_APIs_2.0_SDK_Python
a56c75df54ef037b39be1315ed6e54de35bed55b
[ "MIT" ]
1
2021-07-21T03:35:18.000Z
2021-07-21T03:35:18.000Z
""" CryptoAPIs Crypto APIs 2.0 is a complex and innovative infrastructure layer that radically simplifies the development of any Blockchain and Crypto related applications. Organized around REST, Crypto APIs 2.0 can assist both novice Bitcoin/Ethereum enthusiasts and crypto experts with the development of thei...
41.737968
484
0.596284
797fdd87ed5a06d9cb0b6fca20a8aa918c189bfe
1,606
py
Python
tests/parsers/sqlite_plugins/android_webviewcache.py
jeppetrost/plaso
b48008c6ea79950eeeef3a05b3a859086c8704b6
[ "Apache-2.0" ]
null
null
null
tests/parsers/sqlite_plugins/android_webviewcache.py
jeppetrost/plaso
b48008c6ea79950eeeef3a05b3a859086c8704b6
[ "Apache-2.0" ]
null
null
null
tests/parsers/sqlite_plugins/android_webviewcache.py
jeppetrost/plaso
b48008c6ea79950eeeef3a05b3a859086c8704b6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for the Android WebViewCache plugin.""" from __future__ import unicode_literals import unittest from plaso.formatters import android_webviewcache as _ # pylint: disable=unused-import from plaso.parsers.sqlite_plugins import android_webviewcache from tests impo...
31.490196
87
0.743462
797fde2b1cb45976bc0736416b3def61bec0339a
15,760
py
Python
ascend/video/video_capture.py
bazige/ascendfly
cb176fd35b7f71e2e529f00583edc110f9afd364
[ "Apache-2.0" ]
2
2021-09-17T02:47:50.000Z
2022-02-12T03:21:52.000Z
ascend/video/video_capture.py
bazige/ascendfly
cb176fd35b7f71e2e529f00583edc110f9afd364
[ "Apache-2.0" ]
null
null
null
ascend/video/video_capture.py
bazige/ascendfly
cb176fd35b7f71e2e529f00583edc110f9afd364
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Copyright 2020 Huawei Technologies Co., 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 Unles...
38.252427
109
0.538959
797fdea7df0958ac431a306221aa86a2e129e99d
904
py
Python
officialWebsite/events/migrations/0002_auto_20200207_2211.py
NUMBART/officialWebsite
2eed541fde1fcc792f29b89a3837fe13fd0d610f
[ "MIT" ]
34
2019-11-20T14:13:47.000Z
2022-02-07T06:46:42.000Z
officialWebsite/events/migrations/0002_auto_20200207_2211.py
NUMBART/officialWebsite
2eed541fde1fcc792f29b89a3837fe13fd0d610f
[ "MIT" ]
399
2020-02-02T13:40:06.000Z
2022-03-12T01:07:41.000Z
officialWebsite/events/migrations/0002_auto_20200207_2211.py
NUMBART/officialWebsite
2eed541fde1fcc792f29b89a3837fe13fd0d610f
[ "MIT" ]
95
2019-11-20T14:03:38.000Z
2022-02-01T11:02:34.000Z
# Generated by Django 2.2.5 on 2020-02-07 16:41 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("events", "0001_initial"), ] operations = [ migrations.CreateModel( name="Topic", fields=[ ( ...
25.111111
68
0.435841
797fdf001c05a9447dc195810977fa95c85621ad
90,279
py
Python
src/command_modules/azure-cli-network/azure/cli/command_modules/network/_params.py
IamPeterPan/azure-cli
458a7641bf706601d22ee5b5e6435aab7ec95bca
[ "MIT" ]
null
null
null
src/command_modules/azure-cli-network/azure/cli/command_modules/network/_params.py
IamPeterPan/azure-cli
458a7641bf706601d22ee5b5e6435aab7ec95bca
[ "MIT" ]
null
null
null
src/command_modules/azure-cli-network/azure/cli/command_modules/network/_params.py
IamPeterPan/azure-cli
458a7641bf706601d22ee5b5e6435aab7ec95bca
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
82.37135
390
0.722771
797fe003b998869f795fd1f2f51d78966e7a3361
12,769
py
Python
glow/modules.py
BQZic/glow-pytorch
4b43042326bbe644ccfda3c81a138375321808ed
[ "MIT" ]
479
2018-07-14T15:52:21.000Z
2022-03-29T07:49:45.000Z
glow/modules.py
BQZic/glow-pytorch
4b43042326bbe644ccfda3c81a138375321808ed
[ "MIT" ]
27
2018-07-16T22:00:44.000Z
2021-11-26T10:55:07.000Z
glow/modules.py
BQZic/glow-pytorch
4b43042326bbe644ccfda3c81a138375321808ed
[ "MIT" ]
93
2018-07-24T08:04:22.000Z
2022-03-21T12:21:10.000Z
import torch import torch.nn as nn import torch.nn.functional as F import numpy as np import scipy.linalg from . import thops class _ActNorm(nn.Module): """ Activation Normalization Initialize the bias and scale with a given minibatch, so that the output per-channel have zero mean and unit variance fo...
35.667598
115
0.576474
797fe03b5719309068be35a8265c929c577059cf
300
py
Python
tests/tests_build_workflow/opensearch_dashboards/__init__.py
rishabh6788/opensearch-build
f03a5848397a2758ea29a4edc0bb6b221c0fc2e3
[ "Apache-2.0" ]
62
2021-05-14T04:06:09.000Z
2022-03-23T03:30:13.000Z
tests/tests_build_workflow/opensearch_dashboards/__init__.py
rishabh6788/opensearch-build
f03a5848397a2758ea29a4edc0bb6b221c0fc2e3
[ "Apache-2.0" ]
1,590
2021-05-07T20:21:19.000Z
2022-03-31T23:57:53.000Z
tests/tests_build_workflow/opensearch_dashboards/__init__.py
rishabh6788/opensearch-build
f03a5848397a2758ea29a4edc0bb6b221c0fc2e3
[ "Apache-2.0" ]
134
2021-05-07T19:27:56.000Z
2022-03-24T23:06:17.000Z
# SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to # this file be licensed under the Apache-2.0 license or a # compatible open source license. import os import sys sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "..", "..", "src"))
27.272727
84
0.72
797fe07504851c4459232b5686b54849922ebcf4
2,411
py
Python
login/views.py
LeeSinLiang/course_subscription
ef9d78e09271b0002a74b20358b761fb5bb04e4e
[ "MIT" ]
1
2018-12-30T10:57:46.000Z
2018-12-30T10:57:46.000Z
login/views.py
LeeSinLiang/course_subscription
ef9d78e09271b0002a74b20358b761fb5bb04e4e
[ "MIT" ]
null
null
null
login/views.py
LeeSinLiang/course_subscription
ef9d78e09271b0002a74b20358b761fb5bb04e4e
[ "MIT" ]
1
2019-01-21T06:15:56.000Z
2019-01-21T06:15:56.000Z
from django.shortcuts import render # Create your views here. #views.py from login.forms import * from django.contrib.auth.decorators import login_required from django.contrib.auth import logout from django.views.decorators.csrf import csrf_protect from django.shortcuts import render_to_response from django.http impor...
35.455882
97
0.66321
797fe296cc7556f504aba0e6c6ecb454b0ce8503
25,320
py
Python
graspologic/cluster/autogmm.py
neurodata/graspologic
13577bf3009a6367a385408c252728fab66320fb
[ "MIT" ]
null
null
null
graspologic/cluster/autogmm.py
neurodata/graspologic
13577bf3009a6367a385408c252728fab66320fb
[ "MIT" ]
null
null
null
graspologic/cluster/autogmm.py
neurodata/graspologic
13577bf3009a6367a385408c252728fab66320fb
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation and contributors. # Licensed under the MIT License. import numpy as np import pandas as pd from sklearn.cluster import AgglomerativeClustering from sklearn.metrics import adjusted_rand_score from sklearn.mixture import GaussianMixture from sklearn.mixture._gaussian_mixture import ...
37.511111
96
0.598973
797fe30334aae9a612f0c46354cb0d783e434551
197
py
Python
week_2/37_lesson.py
SekachVitaliy/Python
4d199a571cfedca51ec6e724e4d8c98e086e984d
[ "Unlicense" ]
null
null
null
week_2/37_lesson.py
SekachVitaliy/Python
4d199a571cfedca51ec6e724e4d8c98e086e984d
[ "Unlicense" ]
null
null
null
week_2/37_lesson.py
SekachVitaliy/Python
4d199a571cfedca51ec6e724e4d8c98e086e984d
[ "Unlicense" ]
null
null
null
""" По данному натуральному n вычислите сумму 1²+2²+3²+...+n². Формат ввода Вводится натуральное число. """ n = int(input()) i = 1 sum = 0 while i <= n: sum = sum + i**2 i += 1 print(sum)
14.071429
58
0.604061
797fe3d8a389ab3a2959273afe3a4a33e9ed7506
409
py
Python
backend/neighborly_34090/wsgi.py
crowdbotics-apps/neighborly-34090
9b7e255b30951278864dda75bdb20780199db094
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/neighborly_34090/wsgi.py
crowdbotics-apps/neighborly-34090
9b7e255b30951278864dda75bdb20780199db094
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/neighborly_34090/wsgi.py
crowdbotics-apps/neighborly-34090
9b7e255b30951278864dda75bdb20780199db094
[ "FTL", "AML", "RSA-MD" ]
null
null
null
""" WSGI config for neighborly_34090 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/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJA...
24.058824
78
0.794621
797fe414d13912a57979c789e7b1c446d7f1e94a
6,603
py
Python
bindings/python/ensmallen_graph/datasets/string/bordetellaavium.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
bindings/python/ensmallen_graph/datasets/string/bordetellaavium.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
bindings/python/ensmallen_graph/datasets/string/bordetellaavium.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
""" This file offers the methods to automatically retrieve the graph Bordetella avium. The graph is automatically retrieved from the STRING repository. Report --------------------- At the time of rendering these methods (please see datetime below), the graph had the following characteristics: Datetime: 2021-02-02...
34.936508
223
0.699985
797fe5562baaa564422db95461243a3952e67b72
1,386
py
Python
setup.py
dendisuhubdy/flask-sentinel
342f49a650a9c31663b1ce9e83721a4c2512e1b8
[ "BSD-3-Clause" ]
null
null
null
setup.py
dendisuhubdy/flask-sentinel
342f49a650a9c31663b1ce9e83721a4c2512e1b8
[ "BSD-3-Clause" ]
null
null
null
setup.py
dendisuhubdy/flask-sentinel
342f49a650a9c31663b1ce9e83721a4c2512e1b8
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from setuptools import setup, find_packages DESCRIPTION = ('OAuth2 Provider for Flask applications.') with open('README.rst') as f: LONG_DESCRIPTION = f.read() install_requires = [ 'Flask-OAuthlib==0.9.3', 'Flask-PyMongo', 'bcrypt', 'pyOpenSSL', 'redis', ] setup( na...
29.489362
59
0.626984
797fe5cc1c4835f629abcdb1722e703e578dda2c
373
py
Python
zygoat/utils/shell.py
Ian-MacLeod/zygoat
83773fdebf8cddf06903c2d32bd575e33e23e252
[ "MIT" ]
null
null
null
zygoat/utils/shell.py
Ian-MacLeod/zygoat
83773fdebf8cddf06903c2d32bd575e33e23e252
[ "MIT" ]
1
2020-02-25T13:06:02.000Z
2020-02-25T13:06:02.000Z
zygoat/utils/shell.py
kborer/zygoat
638bbdb2bc8b39510c03c77d968e94aadf5ae51b
[ "MIT" ]
null
null
null
import shlex import subprocess def run(cmd, *args, **kwargs): """ Takes a shell command split into an array and executes it :param cmd: An iterable object with strings inside that form a command """ return subprocess.run( ' '.join([shlex.quote(c) for c in cmd]), *args, she...
20.722222
74
0.592493
797fe5fc872b1204b7c121a78803310cc951d2a8
1,556
py
Python
analysis/online_analysis.py
tgbugs/mlab
dacc1663cbe714bb45c31b1b133fddb7ebcf5c79
[ "MIT" ]
null
null
null
analysis/online_analysis.py
tgbugs/mlab
dacc1663cbe714bb45c31b1b133fddb7ebcf5c79
[ "MIT" ]
null
null
null
analysis/online_analysis.py
tgbugs/mlab
dacc1663cbe714bb45c31b1b133fddb7ebcf5c79
[ "MIT" ]
null
null
null
""" This file contains things for online analysis and provides the interaction with the database so that the actual analysis code and the code that stores the results can be safely segregated """ from sqlalchemy.orm import object_session from analysis.abf_analysis import print_tp_stats def update_online_res_d...
37.047619
162
0.742288
797fe66b01d55fd2cd76fcc86cbe467c8cc4d2f5
12,869
py
Python
django_dashboard/api/api_biogas_contact.py
keepexploring/smartbiogas
ca663435b05666113e3c0cb55e6f087c61497208
[ "MIT" ]
null
null
null
django_dashboard/api/api_biogas_contact.py
keepexploring/smartbiogas
ca663435b05666113e3c0cb55e6f087c61497208
[ "MIT" ]
10
2017-11-24T12:15:40.000Z
2022-02-10T06:41:32.000Z
django_dashboard/api/api_biogas_contact.py
keepexploring/smartbiogas
ca663435b05666113e3c0cb55e6f087c61497208
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from tastypie.resources import ModelResource from tastypie import fields, utils from django_dashboard.models import Company, UserDetail, TechnicianDetail, BiogasPlantContact, BiogasPlant, JobHistory, Dashboard from tastypie.authorization import DjangoAuthorization from tastyp...
46.967153
184
0.606574
797fe89e30e22970ec43c0e643f1b0bbe627e2ce
487
py
Python
first_week/Guess num.py
YvanZ/be_pythonic
e9cb339bef0470c7c880718cafca3f3dabb756b5
[ "MIT" ]
null
null
null
first_week/Guess num.py
YvanZ/be_pythonic
e9cb339bef0470c7c880718cafca3f3dabb756b5
[ "MIT" ]
null
null
null
first_week/Guess num.py
YvanZ/be_pythonic
e9cb339bef0470c7c880718cafca3f3dabb756b5
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import random def play_game(num): while True: a = int(raw_input("Please input a number: ")) if a > num: print "The number is bigger" elif a < num: print "The number is smaller" else : print "You are ri...
21.173913
53
0.513347
797fea8be525bc54abad69973be7e52ba2e9a127
5,201
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_02_01/aio/operations/_usages_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
3
2020-06-23T02:25:27.000Z
2021-09-07T18:48:11.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_02_01/aio/operations/_usages_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
510
2019-07-17T16:11:19.000Z
2021-08-02T08:38:32.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_02_01/aio/operations/_usages_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
5
2019-09-04T12:51:37.000Z
2020-09-16T07:28:40.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
46.026549
134
0.654682
797feacb5e9b599e9c2ef132695475b1a8363ee4
287
py
Python
src/advent/input/__init__.py
nullus/advent2018
b7b139d0128c74e3a744c14367ebb34775ffe747
[ "BSD-2-Clause" ]
null
null
null
src/advent/input/__init__.py
nullus/advent2018
b7b139d0128c74e3a744c14367ebb34775ffe747
[ "BSD-2-Clause" ]
1
2021-06-10T04:56:55.000Z
2021-06-10T04:56:55.000Z
src/advent/input/__init__.py
nullus/advent2018
b7b139d0128c74e3a744c14367ebb34775ffe747
[ "BSD-2-Clause" ]
null
null
null
# coding: utf-8 # # Copyright (c) 2018, Dylan Perry <dylan.perry@gmail.com>. All rights reserved. # Licensed under BSD 2-Clause License. See LICENSE file for full license. from importlib.resources import read_text def text(input_name: str): return read_text(__name__, input_name)
26.090909
79
0.756098
797feb0577a2968b34906e3795b4c105f7296865
450
py
Python
packages/python/plotly/plotly/validators/carpet/baxis/_arraydtick.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/carpet/baxis/_arraydtick.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/carpet/baxis/_arraydtick.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
import _plotly_utils.basevalidators class ArraydtickValidator(_plotly_utils.basevalidators.IntegerValidator): def __init__(self, plotly_name="arraydtick", parent_name="carpet.baxis", **kwargs): super(ArraydtickValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_n...
34.615385
87
0.66
797feb1a8338c6303df80fe0ba35ef298a799a8b
16,736
py
Python
source/conf.py
theTonyHo/armacode
370f148739abef655fdc00808436e4c15be3f663
[ "MIT" ]
1
2019-02-03T22:44:51.000Z
2019-02-03T22:44:51.000Z
source/conf.py
theTonyHo/armacode
370f148739abef655fdc00808436e4c15be3f663
[ "MIT" ]
null
null
null
source/conf.py
theTonyHo/armacode
370f148739abef655fdc00808436e4c15be3f663
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # armacode documentation build configuration file, created by # sphinx-quickstart on Tue Jul 08 13:12:12 2014. # # 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 # autogenerated f...
33.40519
104
0.650872
797fec1edac8a55384df6ac526b3fd77d410e02c
4,957
py
Python
esm_collections/calc.py
NCAR/cesm-collections
6e9f4cdaf0e64ea5fadb33c34167dc70c097e5d4
[ "Apache-2.0" ]
1
2021-12-02T02:31:29.000Z
2021-12-02T02:31:29.000Z
esm_collections/calc.py
NCAR/cesm-collections
6e9f4cdaf0e64ea5fadb33c34167dc70c097e5d4
[ "Apache-2.0" ]
4
2021-12-01T22:52:39.000Z
2022-01-06T21:34:30.000Z
esm_collections/calc.py
NCAR/cesm-collections
6e9f4cdaf0e64ea5fadb33c34167dc70c097e5d4
[ "Apache-2.0" ]
1
2022-01-06T21:26:20.000Z
2022-01-06T21:26:20.000Z
import pop_tools import xarray as xr import numpy as np from xhistogram.xarray import histogram import geocat.comp def _get_tb_name_and_tb_dim(ds): """return the name of the time 'bounds' variable and its second dimension""" assert "bounds" in ds.time.attrs, 'missing "bounds" attr on time' tb_name = ds.ti...
33.493243
164
0.651806
797fec30096eff8acc1b5065495ec858aa02e2d4
1,335
py
Python
pymcws/server_mixins.py
kenomaerz/pyMCWS
62236956888ea69873b8d2458b52b12c598b1681
[ "MIT" ]
8
2019-03-29T02:50:43.000Z
2022-01-28T22:45:04.000Z
pymcws/server_mixins.py
kenomaerz/pyMCWS
62236956888ea69873b8d2458b52b12c598b1681
[ "MIT" ]
7
2019-03-29T17:55:06.000Z
2021-12-16T21:05:50.000Z
pymcws/server_mixins.py
kenomaerz/pyMCWS
62236956888ea69873b8d2458b52b12c598b1681
[ "MIT" ]
2
2019-03-29T14:46:41.000Z
2020-05-21T16:37:09.000Z
""" This file contains householding classes that enable the direct import of API functions into the MediaServer class. Implementing a new function in the API should usually be followed by adding this function here. """ class MediaServerDummy: def __init__(self, server): self.__server = server ...
21.190476
90
0.625468
797fec73dc357b9b41a82666d5ddeb1a8457ab5a
108,888
py
Python
pipeline_web/tests/parser/format/test_format_web_data_to_pipeline.py
chenrb/bk-sops
bed16e9473ba45793b7f45620d8cd6f1ae16ac5d
[ "Apache-2.0" ]
null
null
null
pipeline_web/tests/parser/format/test_format_web_data_to_pipeline.py
chenrb/bk-sops
bed16e9473ba45793b7f45620d8cd6f1ae16ac5d
[ "Apache-2.0" ]
null
null
null
pipeline_web/tests/parser/format/test_format_web_data_to_pipeline.py
chenrb/bk-sops
bed16e9473ba45793b7f45620d8cd6f1ae16ac5d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-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...
46.652956
115
0.26012
797fee1d918109cd55babb9c68b45f2c84d47c68
44,031
py
Python
tests/test_html.py
nbfalcon/coveragepy
677e149df7f18bcc7ec99f90561b43e85f199cea
[ "Apache-2.0" ]
null
null
null
tests/test_html.py
nbfalcon/coveragepy
677e149df7f18bcc7ec99f90561b43e85f199cea
[ "Apache-2.0" ]
1
2021-12-02T21:56:14.000Z
2021-12-14T17:46:46.000Z
tests/test_html.py
nbfalcon/coveragepy
677e149df7f18bcc7ec99f90561b43e85f199cea
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 # For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt """Tests that HTML generation is awesome.""" import datetime import glob import json import os import os.path import re import sys from unittest import mock impor...
37.730077
100
0.577298
797fef591c7610bc426715fdc4a76635b98170e5
3,837
py
Python
databricks_cli/click_types.py
arulajmani/databricks-cli
2740846d8a88605747677d3ee9dd7222ab825bac
[ "Apache-2.0" ]
null
null
null
databricks_cli/click_types.py
arulajmani/databricks-cli
2740846d8a88605747677d3ee9dd7222ab825bac
[ "Apache-2.0" ]
null
null
null
databricks_cli/click_types.py
arulajmani/databricks-cli
2740846d8a88605747677d3ee9dd7222ab825bac
[ "Apache-2.0" ]
null
null
null
# Databricks CLI # Copyright 2017 Databricks, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"), except # that the use of services to which certain application programming # interfaces (each, an "API") connect requires that the user first obtain # a license for the use of the APIs from Databricks,...
32.243697
99
0.6724
797ff061b9770b1f601817b754cdfef439804ac0
1,698
py
Python
src/biopsykit/__init__.py
mad-lab-fau/BioPsyK
8ed7a2949e9c03c7d67b9ac6d17948ae218d94c1
[ "MIT" ]
null
null
null
src/biopsykit/__init__.py
mad-lab-fau/BioPsyK
8ed7a2949e9c03c7d67b9ac6d17948ae218d94c1
[ "MIT" ]
null
null
null
src/biopsykit/__init__.py
mad-lab-fau/BioPsyK
8ed7a2949e9c03c7d67b9ac6d17948ae218d94c1
[ "MIT" ]
null
null
null
"""A Python package for the analysis of biopsychological data.""" import platform import matplotlib import neurokit2 import numpy as np import pandas as pd import pingouin import scipy import biopsykit.carwatch_logs # noqa: F401 import biopsykit.classification # noqa: F401 import biopsykit.colors # noqa: F401 impo...
25.343284
111
0.651355
797ff16f12ed2f80ca138ece5efdd256ff9a2aa9
6,799
py
Python
sdk/python/pulumi_azure_nextgen/containerregistry/v20190601preview/get_task_run.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/containerregistry/v20190601preview/get_task_run.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/containerregistry/v20190601preview/get_task_run.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
35.973545
189
0.648184
797ff23fb3f65082aea6c385ae7e9f36a66bfc3f
3,730
py
Python
flowtext/data/metrics.py
Oneflow-Inc/text
d7c45c4ed517eab49e8578193f18641b213a6643
[ "BSD-3-Clause" ]
1
2022-03-11T07:07:14.000Z
2022-03-11T07:07:14.000Z
flowtext/data/metrics.py
Oneflow-Inc/text
d7c45c4ed517eab49e8578193f18641b213a6643
[ "BSD-3-Clause" ]
2
2021-11-23T02:36:15.000Z
2021-12-01T07:37:30.000Z
flowtext/data/metrics.py
Oneflow-Inc/text
d7c45c4ed517eab49e8578193f18641b213a6643
[ "BSD-3-Clause" ]
null
null
null
import math import collections from flowtext.data.utils import ngrams_iterator import oneflow as flow def _compute_ngram_counter(tokens, max_n): """ Create a Counter with a count of unique n-grams in the tokens list Args: tokens: a list of tokens (typically a string split on whitespaces) max_...
36.213592
117
0.630563
797ff2c3fc3a01883f825c58743de041f90a44b1
341
py
Python
word-count/jobs/hello_spark.py
firasesbai/airflow-spark-jobs
1925a20c212185843fcfb4c9349419bf8c418662
[ "Apache-2.0" ]
null
null
null
word-count/jobs/hello_spark.py
firasesbai/airflow-spark-jobs
1925a20c212185843fcfb4c9349419bf8c418662
[ "Apache-2.0" ]
null
null
null
word-count/jobs/hello_spark.py
firasesbai/airflow-spark-jobs
1925a20c212185843fcfb4c9349419bf8c418662
[ "Apache-2.0" ]
null
null
null
import logging from pyspark.sql import SparkSession from transformations_basic import hello_spark LOG_FILENAME = 'project.log' APP_NAME = "WordCount" if __name__ == '__main__': logging.basicConfig(filename=LOG_FILENAME, level=logging.INFO) spark = SparkSession.builder.appName(APP_NAME).getOrCreate() he...
22.733333
66
0.782991
797ff2e505311b3f10da077ad77623da8ca3a62b
40,557
py
Python
trac/ticket/report.py
exocad/exotrac
c8207efff78d4736745e975abaa359e8bb21ffdb
[ "BSD-3-Clause" ]
null
null
null
trac/ticket/report.py
exocad/exotrac
c8207efff78d4736745e975abaa359e8bb21ffdb
[ "BSD-3-Clause" ]
null
null
null
trac/ticket/report.py
exocad/exotrac
c8207efff78d4736745e975abaa359e8bb21ffdb
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2003-2009 Edgewall Software # Copyright (C) 2003-2004 Jonas Borgström <jonas@edgewall.com> # Copyright (C) 2006 Christian Boos <cboos@edgewall.org> # Copyright (C) 2006 Matthew Good <trac@matt-good.net> # All rights reserved. # # This software is licensed as described in the fi...
40.884073
95
0.516138
797ff36d52ec6223927e1ac0b45ea96850df1d58
140,011
py
Python
sdk/python/pulumi_azure_native/servicefabric/v20210101preview/outputs.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/servicefabric/v20210101preview/outputs.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/servicefabric/v20210101preview/outputs.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
44.976229
559
0.677697
797ff39530a62258b8e1bd4bc6fb9b511afcedc2
3,728
py
Python
pytiled_parser/world.py
Beefy-Swain/pytiled_parser
ba959ded16749136563fe6aafbdcdf2129c04eb0
[ "MIT" ]
13
2019-05-01T01:22:08.000Z
2020-11-12T05:37:59.000Z
pytiled_parser/world.py
Beefy-Swain/pytiled_parser
ba959ded16749136563fe6aafbdcdf2129c04eb0
[ "MIT" ]
30
2019-05-27T20:07:08.000Z
2021-06-12T20:52:31.000Z
pytiled_parser/world.py
benjamin-kirkbride/pytiled_parser
ba959ded16749136563fe6aafbdcdf2129c04eb0
[ "MIT" ]
15
2019-05-02T17:57:42.000Z
2021-04-12T01:56:26.000Z
import json import re from os import listdir from os.path import isfile, join from pathlib import Path from typing import List import attr from typing_extensions import TypedDict from pytiled_parser.common_types import OrderedPair, Size from pytiled_parser.parser import parse_map from pytiled_parser.tiled_map import ...
26.06993
77
0.596298
797ff3c5fb9dae883edb5ab2da5ca7db482c6985
3,431
py
Python
jupyter/CartoCosmos/planetary_gui.py
thareUSGS/CartoCosmos
b83c4bbe70346f755a2fe8b66fe6a5a304b04180
[ "Unlicense" ]
1
2022-02-17T01:07:04.000Z
2022-02-17T01:07:04.000Z
jupyter/CartoCosmos/planetary_gui.py
thareUSGS/CartoCosmos
b83c4bbe70346f755a2fe8b66fe6a5a304b04180
[ "Unlicense" ]
null
null
null
jupyter/CartoCosmos/planetary_gui.py
thareUSGS/CartoCosmos
b83c4bbe70346f755a2fe8b66fe6a5a304b04180
[ "Unlicense" ]
1
2020-05-20T03:54:18.000Z
2020-05-20T03:54:18.000Z
import ipywidgets as widgets class planetary_gui: """ Creates the GUI elements needed for the Planetary Maps. """ def __init__(self): """ Creates Planetary GUI class""" self.longitude_range = None self.lat_domain = None self.longitude_direction = None self.lat_lon_labe...
29.076271
79
0.575925
797ff407710cf8d98a89ea2bcff5d94ce39f7438
5,474
py
Python
lib/googlecloudsdk/api_lib/dns/transaction_util.py
bopopescu/Google-Cloud-SDK-1
c4683bacb2f6192d8a816932e438a0493085469b
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/api_lib/dns/transaction_util.py
bopopescu/Google-Cloud-SDK-1
c4683bacb2f6192d8a816932e438a0493085469b
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/api_lib/dns/transaction_util.py
bopopescu/Google-Cloud-SDK-1
c4683bacb2f6192d8a816932e438a0493085469b
[ "Apache-2.0" ]
1
2020-07-24T20:13:29.000Z
2020-07-24T20:13:29.000Z
# Copyright 2014 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
34.427673
79
0.746255
797ff51ace7a342fbe2021685da12368eef1d4f1
111,058
py
Python
python/tvm/relay/frontend/tensorflow_ops.py
AlexYaoRuihao/tvm
e3bb56e65ed3285708581a965a269fc70a81a353
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
null
null
null
python/tvm/relay/frontend/tensorflow_ops.py
AlexYaoRuihao/tvm
e3bb56e65ed3285708581a965a269fc70a81a353
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
null
null
null
python/tvm/relay/frontend/tensorflow_ops.py
AlexYaoRuihao/tvm
e3bb56e65ed3285708581a965a269fc70a81a353
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-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 u...
36.871846
108
0.585379
797ff5c7f6c85e5f121e371b56b0128ee3be9258
24,177
py
Python
tests/instrumentation/elasticsearch_tests.py
ollyhowell/apm-agent-python
0fd5e2cf63b7d6c9010209d360fbded13dc6e9ab
[ "BSD-3-Clause" ]
350
2017-08-17T12:27:08.000Z
2022-03-30T10:01:33.000Z
tests/instrumentation/elasticsearch_tests.py
ollyhowell/apm-agent-python
0fd5e2cf63b7d6c9010209d360fbded13dc6e9ab
[ "BSD-3-Clause" ]
1,115
2017-08-17T15:30:35.000Z
2022-03-31T16:02:52.000Z
tests/instrumentation/elasticsearch_tests.py
ollyhowell/apm-agent-python
0fd5e2cf63b7d6c9010209d360fbded13dc6e9ab
[ "BSD-3-Clause" ]
180
2017-08-17T12:26:53.000Z
2022-03-25T09:25:37.000Z
# BSD 3-Clause License # # Copyright (c) 2019, Elasticsearch BV # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, t...
42.565141
120
0.671465
797ff72519720b69bf93c8fdf5e6411cf524161e
241
py
Python
weather-app/source_code_step_6/style.py
syberflea/materials
54f44725b40edf00c1b523d7a85b34a85014d7eb
[ "MIT" ]
1
2022-02-03T11:37:51.000Z
2022-02-03T11:37:51.000Z
weather-app/source_code_step_6/style.py
syberflea/materials
54f44725b40edf00c1b523d7a85b34a85014d7eb
[ "MIT" ]
null
null
null
weather-app/source_code_step_6/style.py
syberflea/materials
54f44725b40edf00c1b523d7a85b34a85014d7eb
[ "MIT" ]
null
null
null
import sys PADDING = 20 RED = "\033[1;31m" BLUE = "\033[1;34m" CYAN = "\033[1;36m" GREEN = "\033[0;32m" YELLOW = "\033[33m" WHITE = "\033[37m" REVERSE = "\033[;7m" RESET = "\033[0m" def change_color(color): sys.stdout.write(color)
12.684211
27
0.605809
797ff7ff9a21846450288fbd41598b131755c53b
2,336
py
Python
0101-0200/0148-Sort List/0148-Sort List.py
jiadaizhao/LeetCode
4ddea0a532fe7c5d053ffbd6870174ec99fc2d60
[ "MIT" ]
49
2018-05-05T02:53:10.000Z
2022-03-30T12:08:09.000Z
0101-0200/0148-Sort List/0148-Sort List.py
jolly-fellow/LeetCode
ab20b3ec137ed05fad1edda1c30db04ab355486f
[ "MIT" ]
11
2017-12-15T22:31:44.000Z
2020-10-02T12:42:49.000Z
0101-0200/0148-Sort List/0148-Sort List.py
jolly-fellow/LeetCode
ab20b3ec137ed05fad1edda1c30db04ab355486f
[ "MIT" ]
28
2017-12-05T10:56:51.000Z
2022-01-26T18:18:27.000Z
# Definition for singly-linked list. class ListNode: def __init__(self, x): self.val = x self.next = None class Solution: def sortList(self, head: ListNode) -> ListNode: if head is None or head.next is None: return head slow = head fast = head.next ...
27.162791
51
0.405822
797ffa001affbe13f1c93e00fa71435d54c4330a
3,053
py
Python
src/main/python/msmarco/augment_collection_with_predictions.py
justinborromeo/anserini
7954eab43f17bb8d254987d5873933c0b9596bb4
[ "Apache-2.0" ]
2
2020-10-05T19:42:25.000Z
2021-05-12T04:33:24.000Z
src/main/python/msmarco/augment_collection_with_predictions.py
justinborromeo/anserini
7954eab43f17bb8d254987d5873933c0b9596bb4
[ "Apache-2.0" ]
4
2021-02-03T19:36:27.000Z
2021-12-14T21:52:53.000Z
src/main/python/msmarco/augment_collection_with_predictions.py
justinborromeo/anserini
7954eab43f17bb8d254987d5873933c0b9596bb4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Anserini: A Lucene toolkit for replicable information retrieval research 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 Unle...
41.821918
143
0.675729
797ffa1394dc461d6b1145b332cd4d190bd5c2e6
3,298
py
Python
tests/test_objectStores.py
rmetcalf9/object_store_abstraction
21533f3ff4e785cce30faeedef4fcbe0012031a5
[ "MIT" ]
null
null
null
tests/test_objectStores.py
rmetcalf9/object_store_abstraction
21533f3ff4e785cce30faeedef4fcbe0012031a5
[ "MIT" ]
3
2019-07-11T15:18:47.000Z
2020-02-07T16:14:10.000Z
tests/test_objectStores.py
rmetcalf9/object_store_abstraction
21533f3ff4e785cce30faeedef4fcbe0012031a5
[ "MIT" ]
null
null
null
#Test object stores creation from TestHelperSuperClass import testHelperSuperClass import object_store_abstraction as undertest import json import os ''' #Sample code used to create a store in an application: objectStoreConfigJSON = readFromEnviroment(env, 'APIAPP_OBJECTSTORECONFIG', '{}', None) objectStoreCon...
44.567568
161
0.775925
797ffd7c672ed09cd4f94de463a6871d60cc28ab
1,159
py
Python
leaker/pattern/volume.py
anonleakerdev/LEAKER
bea8623021b3eb0b4fb450f2cdd1b48834d7c196
[ "MIT" ]
null
null
null
leaker/pattern/volume.py
anonleakerdev/LEAKER
bea8623021b3eb0b4fb450f2cdd1b48834d7c196
[ "MIT" ]
null
null
null
leaker/pattern/volume.py
anonleakerdev/LEAKER
bea8623021b3eb0b4fb450f2cdd1b48834d7c196
[ "MIT" ]
null
null
null
from typing import Iterable, List from ..api import LeakagePattern, Dataset from ..extension import VolumeExtension class Volume(LeakagePattern[List[int]]): """ The volume (vol) leakage pattern leaking the volume of every document matching any given query. """ def leak(self, dataset: Dataset, keywor...
36.21875
111
0.666091
797ffe462187e1c98bea95ae1127e8552e219c9c
3,739
py
Python
find_root_suffixes.py
Esukhia/text_utils
562065d4dedba127f8aaeee03ca3d9f071805f62
[ "MIT" ]
1
2017-01-26T22:37:57.000Z
2017-01-26T22:37:57.000Z
find_root_suffixes.py
Esukhia/tibtext_utils
562065d4dedba127f8aaeee03ca3d9f071805f62
[ "MIT" ]
null
null
null
find_root_suffixes.py
Esukhia/tibtext_utils
562065d4dedba127f8aaeee03ca3d9f071805f62
[ "MIT" ]
null
null
null
import re import os from collections import defaultdict from misc.common import open_file, write_csv, tib_sort def pre_processing(string): """ do all the pre_processing here :param string: :return: a list of tokens """ # Todo: make all the input files homogeneous through operations in this fun...
36.300971
115
0.599358
797ffeaedd18fc159eef5afbfdec5e2e383757d1
952
py
Python
cli/setup.py
brain-good/determined
4a80514f514b1cc2aa5dcd604e17c18876b3b76e
[ "Apache-2.0" ]
null
null
null
cli/setup.py
brain-good/determined
4a80514f514b1cc2aa5dcd604e17c18876b3b76e
[ "Apache-2.0" ]
null
null
null
cli/setup.py
brain-good/determined
4a80514f514b1cc2aa5dcd604e17c18876b3b76e
[ "Apache-2.0" ]
null
null
null
from setuptools import find_packages, setup setup( name="determined-cli", version="0.12.8.dev0", author="Determined AI", author_email="hello@determined.ai", url="https://determined.ai/", description="Determined Deep Learning Training Platform", long_description="See https://docs.determined....
34
81
0.617647
797fff81646a4b61921ff1a803bcad3888f5f00e
110
py
Python
frontier/presets/__init__.py
oboynitro/django-frontier
89bec0199aadcc5e976a1cc42ad9284603f6439a
[ "MIT" ]
16
2020-11-14T15:51:26.000Z
2021-06-29T19:43:35.000Z
frontier/presets/__init__.py
oboynitro/django-frontier
89bec0199aadcc5e976a1cc42ad9284603f6439a
[ "MIT" ]
null
null
null
frontier/presets/__init__.py
oboynitro/django-frontier
89bec0199aadcc5e976a1cc42ad9284603f6439a
[ "MIT" ]
1
2020-11-19T05:14:16.000Z
2020-11-19T05:14:16.000Z
from .React import React from .Vue import Vue from .Tailwind import Tailwind from .Bootstrap import Bootstrap
22
32
0.818182
79800279f1961bae72ab4ea1924ea84096e17ca5
3,228
py
Python
feishu_sdk/feishu_server.py
ilpan/feishu-sdk
742d27f59120c23652fe7ea75079cb9426d2070f
[ "MIT" ]
6
2021-01-14T02:14:11.000Z
2022-02-14T12:01:43.000Z
feishu_sdk/feishu_server.py
ilpan/feishu-sdk
742d27f59120c23652fe7ea75079cb9426d2070f
[ "MIT" ]
null
null
null
feishu_sdk/feishu_server.py
ilpan/feishu-sdk
742d27f59120c23652fe7ea75079cb9426d2070f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import logging import pprint import sys from aiohttp import web, web_app, web_request log = logging.getLogger(__name__) class FeishuServer: def __init__(self, config: dict): self.verification_token = config.get("verification_token", None) self.encry...
36.681818
79
0.644052
798002e75ba1189df99b6d869e3a2009171fdc11
12,896
py
Python
jaseci_core/jaseci/jac/tests/book_code.py
Gim3l/jaseci
cca187ed3e6aae31514c6c0353a7844f7703d039
[ "MIT" ]
null
null
null
jaseci_core/jaseci/jac/tests/book_code.py
Gim3l/jaseci
cca187ed3e6aae31514c6c0353a7844f7703d039
[ "MIT" ]
null
null
null
jaseci_core/jaseci/jac/tests/book_code.py
Gim3l/jaseci
cca187ed3e6aae31514c6c0353a7844f7703d039
[ "MIT" ]
null
null
null
basic_arith = \ """ walker init { a = 4 + 4; b = 4 * -5; c = 4 / 4; # Returns a floating point number d = 4 - 6; e = a + b + c + d; std.out(a, b, c, d, e); } """ more_arith = \ """ walker init { a = 4 ^ 4; b = 9 % 5; std.out(a, b); } ...
20.600639
76
0.405862
798002ede47f518a7ece7fd80095ff10223466ac
1,796
py
Python
Python/nested_args_parse.py
Suraj-Rajesh/code
3d554c4d1d5cf4bd9d084b8034641c1f6c2a47c9
[ "MIT" ]
null
null
null
Python/nested_args_parse.py
Suraj-Rajesh/code
3d554c4d1d5cf4bd9d084b8034641c1f6c2a47c9
[ "MIT" ]
null
null
null
Python/nested_args_parse.py
Suraj-Rajesh/code
3d554c4d1d5cf4bd9d084b8034641c1f6c2a47c9
[ "MIT" ]
null
null
null
import sys from argparse import ArgumentParser __author__='Suraj' def parse_arguments(): commands = ['setup', 'enable'] parser = ArgumentParser(\ description = 'Setup and enable disks for root restriction',\ usage = '''nested_args_parse.py <command> [args] setup ...
28.0625
116
0.651448
7980034f41207b18eda05434c508aec4f2ac90ba
2,001
py
Python
cajas/movement/api/views/movement_daily_square/update_daily_square_request_item.py
dmontoya1/cajas
5eb3d5835250d5dafae398082200b79c1ca8063b
[ "MIT" ]
null
null
null
cajas/movement/api/views/movement_daily_square/update_daily_square_request_item.py
dmontoya1/cajas
5eb3d5835250d5dafae398082200b79c1ca8063b
[ "MIT" ]
null
null
null
cajas/movement/api/views/movement_daily_square/update_daily_square_request_item.py
dmontoya1/cajas
5eb3d5835250d5dafae398082200b79c1ca8063b
[ "MIT" ]
null
null
null
from django.shortcuts import get_object_or_404 from rest_framework import generics from rest_framework.response import Response from rest_framework import status from cajas.api.CsrfExempt import CsrfExemptSessionAuthentication from cajas.inventory.models.brand import Brand from ...serializers.movement_daily_square...
42.574468
113
0.711644
798003846bacfb175fa6a4950027290eaecfd4ee
4,232
py
Python
modules/audio/audio_classification/PANNs/cnn10/network.py
David19970306/PaddleHub
53c3e6d26bb3ff4da08ec76901337af46a9dbdd3
[ "Apache-2.0" ]
1
2021-05-14T03:54:13.000Z
2021-05-14T03:54:13.000Z
modules/audio/audio_classification/PANNs/cnn10/network.py
thomas-yanxin/PaddleHub
221088cee8164ffcaa9941260eac1dbceb82d71f
[ "Apache-2.0" ]
null
null
null
modules/audio/audio_classification/PANNs/cnn10/network.py
thomas-yanxin/PaddleHub
221088cee8164ffcaa9941260eac1dbceb82d71f
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 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.17094
111
0.590028
798003fc644702a7ecbbe6c52ecadf9e9f08cd08
155
py
Python
donkeycar/tests/test_management.py
cliffordchow/donkey
cee0f97088565bf5d3523e24468e67afbbdcc023
[ "MIT" ]
13
2018-10-25T17:45:18.000Z
2020-08-27T14:54:12.000Z
donkeycar/tests/test_management.py
cliffordchow/donkey
cee0f97088565bf5d3523e24468e67afbbdcc023
[ "MIT" ]
8
2019-06-12T07:21:39.000Z
2019-06-12T08:03:40.000Z
donkeycar/tests/test_management.py
cliffordchow/donkey
cee0f97088565bf5d3523e24468e67afbbdcc023
[ "MIT" ]
4
2018-10-25T09:41:43.000Z
2020-04-07T13:56:47.000Z
from donkeycar.management import base from tempfile import tempdir def get_test_tub_path(): tempdir() def test_tubcheck(): tc = base.TubCheck()
15.5
37
0.741935
79800411eec1a7a55c8856bc2af6b405f6819536
1,976
bzl
Python
pkg/sql/colexec/COLEXEC.bzl
tc-dc/cockroach
53e7cc5ab0d65157dcfb922e8bf719ac8b65d6d5
[ "MIT", "BSD-3-Clause" ]
null
null
null
pkg/sql/colexec/COLEXEC.bzl
tc-dc/cockroach
53e7cc5ab0d65157dcfb922e8bf719ac8b65d6d5
[ "MIT", "BSD-3-Clause" ]
null
null
null
pkg/sql/colexec/COLEXEC.bzl
tc-dc/cockroach
53e7cc5ab0d65157dcfb922e8bf719ac8b65d6d5
[ "MIT", "BSD-3-Clause" ]
null
null
null
def _generate_impl(ctx): output_files, input_files = [], [] # Gather the full list of all input template files (deconstructing it from # the filegroup input). See [1] for a reference of all types/members within # skylark. # # [1]: https://docs.bazel.build/versions/master/skylark/lib/skylark-over...
44.909091
126
0.671053
79800548aa83953a9c08d808a2bcc73d64610c46
5,097
py
Python
genoml/utils.py
GenoML/genoml_v2
8040f2b1b460cc6085527e5fd65963518459cd11
[ "Apache-2.0" ]
11
2020-10-07T04:12:55.000Z
2022-01-12T16:47:00.000Z
build/lib/genoml/utils.py
GenoML/genoml2
8040f2b1b460cc6085527e5fd65963518459cd11
[ "Apache-2.0" ]
26
2020-08-26T13:58:31.000Z
2022-03-25T14:29:53.000Z
genoml/utils.py
occamzrazor/genoml2
c6a05bc94fd170ec049be415c40319a8a852087c
[ "Apache-2.0" ]
2
2020-10-16T00:59:48.000Z
2020-11-12T23:14:38.000Z
# Copyright 2020 The GenoML 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 ...
27.256684
80
0.574456
7980057d3f6a829dfe534ff8f4e9b00a9d6d09e2
1,673
py
Python
tests/unit/cli/test_cli.py
cxyStephen/chalice
11c8be7faeedfa4b558ad0fc0fef5ec026f9c278
[ "Apache-2.0" ]
null
null
null
tests/unit/cli/test_cli.py
cxyStephen/chalice
11c8be7faeedfa4b558ad0fc0fef5ec026f9c278
[ "Apache-2.0" ]
null
null
null
tests/unit/cli/test_cli.py
cxyStephen/chalice
11c8be7faeedfa4b558ad0fc0fef5ec026f9c278
[ "Apache-2.0" ]
null
null
null
import mock import pytest import re from chalice import cli from chalice.cli.factory import CLIFactory from chalice.config import Config from chalice.local import LocalDevServer, ProxyServerRunner def test_cannot_run_local_mode_with_trailing_slash_route(): local_stage_test = 'local_test' factory = mock.Mock(...
38.906977
76
0.767484
798005e2e46b991314cb7021875cec02e3c769f5
7,602
py
Python
src/solver.py
amal029/eha
7df60a663030d1265f212c64e86eb9a07f9d5dbc
[ "MIT" ]
1
2021-06-15T10:37:22.000Z
2021-06-15T10:37:22.000Z
src/solver.py
amal029/eha
7df60a663030d1265f212c64e86eb9a07f9d5dbc
[ "MIT" ]
null
null
null
src/solver.py
amal029/eha
7df60a663030d1265f212c64e86eb9a07f9d5dbc
[ "MIT" ]
null
null
null
from scipy.optimize import minimize import sympy as S import sympy.abc as ABC from math import factorial import mpmath as M class Solver(object): """The solver for computing the integration step size. n: The number of terms in ODE → Taylor exapansion NUM_TERMS: The number of terms in transcendental → Tayl...
35.690141
79
0.551171
798005f10cfbd65697cf7df84fc5e6b59c6a6cb0
173
py
Python
core/dbt/ui/colors.py
pushpay/dbt
8b96de893af692bd77fe9eb9a8104317be7b5413
[ "Apache-2.0" ]
1
2022-01-09T19:33:25.000Z
2022-01-09T19:33:25.000Z
core/dbt/ui/colors.py
pushpay/dbt
8b96de893af692bd77fe9eb9a8104317be7b5413
[ "Apache-2.0" ]
1
2019-02-14T20:10:46.000Z
2019-02-19T13:06:38.000Z
core/dbt/ui/colors.py
pushpay/dbt
8b96de893af692bd77fe9eb9a8104317be7b5413
[ "Apache-2.0" ]
1
2019-04-16T10:51:10.000Z
2019-04-16T10:51:10.000Z
import colorama COLORS = { 'red': colorama.Fore.RED, 'green': colorama.Fore.GREEN, 'yellow': colorama.Fore.YELLOW, 'reset_all': colorama.Style.RESET_ALL }
17.3
41
0.66474
798007f821ddd6ca60f3ab03cda9346bc115ff8d
361
py
Python
pypkjs/javascript/exceptions.py
Katharine/pypkjs
8d0e53b8dd50dd0c016db8b22ea8b34734c82f1e
[ "MIT" ]
33
2015-01-16T00:47:39.000Z
2020-11-22T11:56:31.000Z
pypkjs/javascript/exceptions.py
Katharine/pypkjs
8d0e53b8dd50dd0c016db8b22ea8b34734c82f1e
[ "MIT" ]
65
2019-09-19T13:04:42.000Z
2021-07-14T10:32:38.000Z
pypkjs/javascript/exceptions.py
gfunkmonk/pypkjs
8a806bbba0ee02ccd9d2a9a34395abfb37106bec
[ "MIT" ]
27
2015-03-28T18:50:45.000Z
2021-03-25T19:51:42.000Z
from __future__ import absolute_import __author__ = 'katharine' import pypkjs.PyV8 as v8 class JSRuntimeException(Exception): def __init__(self, message): trace = v8.JSStackTrace.GetCurrentStackTrace(20, v8.JSStackTrace.Options.Detailed) self.stackTrace = "Error: %s\n%s" % (message, str(trace)) ...
30.083333
90
0.728532
798009b370f3aa83c1753bc9b1ad2bc599375069
418
py
Python
col_gen_estimator/tests/test_common.py
krooonal/col_gen_estimator
afb928eee97a5f1e2a7359a32b31fc6311688527
[ "BSD-3-Clause" ]
1
2021-12-16T15:26:05.000Z
2021-12-16T15:26:05.000Z
col_gen_estimator/tests/test_common.py
krooonal/col_gen_estimator
afb928eee97a5f1e2a7359a32b31fc6311688527
[ "BSD-3-Clause" ]
9
2021-12-16T17:07:15.000Z
2022-03-28T15:39:44.000Z
col_gen_estimator/tests/test_common.py
krooonal/col_gen_estimator
afb928eee97a5f1e2a7359a32b31fc6311688527
[ "BSD-3-Clause" ]
null
null
null
import pytest from sklearn.utils.estimator_checks import check_estimator from col_gen_estimator import BooleanDecisionRuleClassifier from col_gen_estimator import BooleanDecisionRuleClassifierWithHeuristic @pytest.mark.parametrize( "estimator", [BooleanDecisionRuleClassifier(), BooleanDecisionRuleClass...
26.125
72
0.842105
79800a10985776bec2f6e16078b33d82221aae96
951
py
Python
python/phonenumbers/data/region_MZ.py
rodgar-nvkz/python-phonenumbers
4c7c4892211dbc9bc328bc3356b03853eaf993dc
[ "Apache-2.0" ]
2,424
2015-01-05T05:34:45.000Z
2022-03-28T22:37:53.000Z
python/phonenumbers/data/region_MZ.py
rodgar-nvkz/python-phonenumbers
4c7c4892211dbc9bc328bc3356b03853eaf993dc
[ "Apache-2.0" ]
166
2015-01-30T23:59:18.000Z
2022-03-14T21:08:42.000Z
python/phonenumbers/data/region_MZ.py
rodgar-nvkz/python-phonenumbers
4c7c4892211dbc9bc328bc3356b03853eaf993dc
[ "Apache-2.0" ]
345
2015-01-02T00:33:27.000Z
2022-03-26T13:06:57.000Z
"""Auto-generated file, do not edit by hand. MZ metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_MZ = PhoneMetadata(id='MZ', country_code=258, international_prefix='00', general_desc=PhoneNumberDesc(national_number_pattern='(?:2|8\\d)\\d{7}', possible_length=(8, 9...
86.454545
147
0.697161
79800a136b8aa6f1d0756d3db77aa0d4005c4423
13,996
py
Python
scrapy_autounit/utils.py
ryonlife/scrapy-autounit
9f46f89b169530910ea2a4f31e8c2a73717624fe
[ "BSD-3-Clause" ]
null
null
null
scrapy_autounit/utils.py
ryonlife/scrapy-autounit
9f46f89b169530910ea2a4f31e8c2a73717624fe
[ "BSD-3-Clause" ]
null
null
null
scrapy_autounit/utils.py
ryonlife/scrapy-autounit
9f46f89b169530910ea2a4f31e8c2a73717624fe
[ "BSD-3-Clause" ]
null
null
null
import os import sys import copy import zlib import pickle import shutil from importlib import import_module from itertools import islice import six from scrapy import signals from scrapy.crawler import Crawler from scrapy.spiders import CrawlSpider from scrapy.exceptions import NotConfigured from scrapy.http import R...
31.102222
89
0.63168
79800c23a238d8b5837bebc397c6732eb7c2fd5c
77
py
Python
cryptodock_sdk/__init__.py
the-launch-tech/cryptodock-sdk
25b23b7b153a216aa9fb4b51aed4744160ba5fbc
[ "MIT" ]
null
null
null
cryptodock_sdk/__init__.py
the-launch-tech/cryptodock-sdk
25b23b7b153a216aa9fb4b51aed4744160ba5fbc
[ "MIT" ]
null
null
null
cryptodock_sdk/__init__.py
the-launch-tech/cryptodock-sdk
25b23b7b153a216aa9fb4b51aed4744160ba5fbc
[ "MIT" ]
null
null
null
__all__ = [ 'CryptoDockApi' ] from .cryptodock_api import CryptoDockApi
12.833333
41
0.74026
79800c4cb6940299fbc68ea6a0c62e0dd1933f4b
3,361
py
Python
capone/tests/test_factories.py
keinagae/capone
56beaf5aaea4ad073f0d535c86658d81e927156d
[ "MIT" ]
null
null
null
capone/tests/test_factories.py
keinagae/capone
56beaf5aaea4ad073f0d535c86658d81e927156d
[ "MIT" ]
null
null
null
capone/tests/test_factories.py
keinagae/capone
56beaf5aaea4ad073f0d535c86658d81e927156d
[ "MIT" ]
null
null
null
from datetime import datetime from decimal import Decimal from django.test import TestCase from capone.api.actions import credit from capone.api.actions import debit from capone.api.queries import assert_transaction_in_ledgers_for_amounts_with_evidence # noqa: E501 from capone.models import Ledger from capone.models...
33.949495
100
0.626004
79800fe7e4a79de86f146266938cdcbcfa806c2d
8,357
py
Python
program/object-detection-onnx-py/detect.py
hanwenzhu/ck-mlops
d9219e968222abebaf2c9634e779a1029c2da8b5
[ "Apache-2.0" ]
8
2020-11-10T12:18:06.000Z
2021-02-02T10:13:32.000Z
program/object-detection-onnx-py/detect.py
hanwenzhu/ck-mlops
d9219e968222abebaf2c9634e779a1029c2da8b5
[ "Apache-2.0" ]
7
2021-09-17T05:19:19.000Z
2022-03-30T11:38:50.000Z
program/object-detection-onnx-py/detect.py
hanwenzhu/ck-mlops
d9219e968222abebaf2c9634e779a1029c2da8b5
[ "Apache-2.0" ]
4
2021-09-17T03:51:26.000Z
2022-01-06T12:17:20.000Z
# # Copyright (c) 2018 cTuning foundation. # See CK COPYRIGHT.txt for copyright details. # # See CK LICENSE for licensing details. # See CK COPYRIGHT for copyright details. # # import sys import os import json import numpy as np import time import onnxruntime as rt from coco_helper import (load_preprocessed_batch, im...
42.207071
149
0.63731
7980103c82d754335345cc05cc7a04257cc5d9a0
1,279
py
Python
the-rds-proxy/python/setup.py
cplankey/serverless
96a609584b1d414281d910ce92204ca597cd059d
[ "MIT" ]
null
null
null
the-rds-proxy/python/setup.py
cplankey/serverless
96a609584b1d414281d910ce92204ca597cd059d
[ "MIT" ]
null
null
null
the-rds-proxy/python/setup.py
cplankey/serverless
96a609584b1d414281d910ce92204ca597cd059d
[ "MIT" ]
null
null
null
import setuptools with open("README.md") as fp: long_description = fp.read() setuptools.setup( name="the_rds_proxy", version="0.0.1", description="An empty CDK Python app", long_description=long_description, long_description_content_type="text/markdown", author="author", package_d...
24.596154
61
0.590305
798010b7bdebb27640ab8f94f244a2785501e416
13,515
py
Python
infra/build_specified_commit.py
darkma773r/oss-fuzz
3b4dfa5add28aff750729700d59a20eea8d6cb8f
[ "Apache-2.0" ]
3
2018-02-21T20:17:08.000Z
2021-03-13T01:34:20.000Z
infra/build_specified_commit.py
darkma773r/oss-fuzz
3b4dfa5add28aff750729700d59a20eea8d6cb8f
[ "Apache-2.0" ]
10
2020-08-06T11:48:16.000Z
2021-06-28T10:17:12.000Z
infra/build_specified_commit.py
darkma773r/oss-fuzz
3b4dfa5add28aff750729700d59a20eea8d6cb8f
[ "Apache-2.0" ]
1
2018-01-12T03:50:33.000Z
2018-01-12T03:50:33.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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
32.803398
80
0.655568
798010bf9acda8dc9e1139f58750e2912c7775d2
949
py
Python
tfx/tools/cli/cli_main.py
NunoEdgarGFlowHub/tfx
16038b03b1742ef8f537180907289257221a57b7
[ "Apache-2.0" ]
null
null
null
tfx/tools/cli/cli_main.py
NunoEdgarGFlowHub/tfx
16038b03b1742ef8f537180907289257221a57b7
[ "Apache-2.0" ]
null
null
null
tfx/tools/cli/cli_main.py
NunoEdgarGFlowHub/tfx
16038b03b1742ef8f537180907289257221a57b7
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC. 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 a...
27.911765
74
0.767123
798011f5b4a004249711afc89c1488f357a02e82
3,425
py
Python
tests/integrations/test_submission_tracing.py
uk-gov-mirror/alphagov.govuk-shielded-vulnerable-people-service
5b191980dec554155e9d431a514a945072032e7c
[ "MIT" ]
3
2020-08-16T19:36:26.000Z
2020-10-29T14:35:01.000Z
tests/integrations/test_submission_tracing.py
uk-gov-mirror/alphagov.govuk-shielded-vulnerable-people-service
5b191980dec554155e9d431a514a945072032e7c
[ "MIT" ]
101
2020-09-03T11:10:00.000Z
2021-10-01T03:03:46.000Z
tests/integrations/test_submission_tracing.py
alphagov-mirror/govuk-shielded-vulnerable-people-service
f9cb4ae9046fc402f0878503733a23d42546cc53
[ "MIT" ]
6
2020-07-28T09:03:20.000Z
2021-04-10T18:04:56.000Z
import json from flask import Flask from vulnerable_people_form.integrations import submission_tracing _current_app = Flask(__name__) _current_app.secret_key = 'test_secret' _current_app.config["SUBMISSION_TRACING_PEPPER"] = "100fb56c689993f9f05b281491fd2883" def test_anonymised_submission_log_returns_full_log_with...
51.893939
106
0.689927
7980129ed2ff32a5d2cefd0be7d107c6baefefb0
622
py
Python
WEEKS/CD_Sata-Structures/_RESOURCES/CODESIGNAL/file_naming.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
WEEKS/CD_Sata-Structures/_RESOURCES/CODESIGNAL/file_naming.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
WEEKS/CD_Sata-Structures/_RESOURCES/CODESIGNAL/file_naming.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
def fileNaming(names): """ Since two files cannot have equal names, the one which comes later will have an addition to its name in a form of (k), where k is the smallest positive integer such that the obtained name is not used yet. Return an array of names that will be given to the file...
32.736842
61
0.59164
7980131ad5f81b7d6de3c6570ce6e00d725637c8
671
py
Python
insta/migrations/0005_auto_20210525_1633.py
melissa-koi/InstaClone
f3e5f0cbf0ba4ccefb78a833f127e9e8c6594ad2
[ "MIT" ]
null
null
null
insta/migrations/0005_auto_20210525_1633.py
melissa-koi/InstaClone
f3e5f0cbf0ba4ccefb78a833f127e9e8c6594ad2
[ "MIT" ]
null
null
null
insta/migrations/0005_auto_20210525_1633.py
melissa-koi/InstaClone
f3e5f0cbf0ba4ccefb78a833f127e9e8c6594ad2
[ "MIT" ]
null
null
null
# Generated by Django 3.2.3 on 2021-05-25 16:33 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('insta', '0004_auto_20210525_1529'), ] operations = [ migrations.RemoveField( model_name='commen...
24.851852
135
0.593145
7980136dd2397fa782d5b01e08ae4dccf047c2c7
1,052
py
Python
tests/spot/trade/test_get_oco_orders.py
Banging12/binance-connector-python
dc6fbbd0bb64fb08d73ad8b31e0b81d776efa30b
[ "MIT" ]
512
2021-06-15T08:52:44.000Z
2022-03-31T09:49:53.000Z
tests/spot/trade/test_get_oco_orders.py
Banging12/binance-connector-python
dc6fbbd0bb64fb08d73ad8b31e0b81d776efa30b
[ "MIT" ]
75
2021-06-20T13:49:50.000Z
2022-03-30T02:45:31.000Z
tests/spot/trade/test_get_oco_orders.py
Banging12/binance-connector-python
dc6fbbd0bb64fb08d73ad8b31e0b81d776efa30b
[ "MIT" ]
156
2021-06-18T11:56:36.000Z
2022-03-29T16:34:22.000Z
import responses from urllib.parse import urlencode from tests.util import random_str from tests.util import mock_http_response from binance.spot import Spot as Client mock_item = {"key_1": "value_1", "key_2": "value_2"} key = random_str() secret = random_str() params = { "fromId": "1234567", # If supplied, ne...
27.684211
85
0.73289
7980140140b7cb943322d8c3d5e308785761945e
8,619
py
Python
car.py
jcsharp/DriveIt
656fdff219d743794b56d468709456bdaa263ec9
[ "MIT" ]
null
null
null
car.py
jcsharp/DriveIt
656fdff219d743794b56d468709456bdaa263ec9
[ "MIT" ]
null
null
null
car.py
jcsharp/DriveIt
656fdff219d743794b56d468709456bdaa263ec9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Car class for the DriveIt Gym environment. @author: Jean-Claude Manoli """ import math import numpy as np from numpy import cos, sin, pi, sqrt, clip, sign #pylint: disable=E0611 from utils import * from part import * from sensors import * from gym.envs.classic_control import ren...
31.6875
105
0.565959
798014170008bb2859089c82cd78b35c6631add4
627
py
Python
python_helpers/opcode_7xxx.py
RandomBananazz/chip8mc
0e184c392a523c82dbc945325aa2cb9e5487e5e7
[ "MIT" ]
3
2020-09-28T17:50:49.000Z
2020-12-30T18:23:46.000Z
python_helpers/opcode_7xxx.py
RandomBananazz/chip8mc
0e184c392a523c82dbc945325aa2cb9e5487e5e7
[ "MIT" ]
null
null
null
python_helpers/opcode_7xxx.py
RandomBananazz/chip8mc
0e184c392a523c82dbc945325aa2cb9e5487e5e7
[ "MIT" ]
null
null
null
for x in range(16): with open(f'..\\data\\cpu\\functions\\opcode_switch\\opcode_7xxx\\opcode_7xxx_{x}.mcfunction', 'w') as f: f.write(f'scoreboard players operation Global V{hex(x)[2:].upper()} += Global PC_nibble_4\n') f.write(f'execute if score Global V{hex(x)[2:].upper()} matches 256.. run scoreb...
57
144
0.677831
7980144bbb618cf2fc083d7919e0892fb08ac96f
1,382
py
Python
ava.py
dannytszho/FireNation-invasion
3b4fbd1cbb72f42396a150e6472f4ad96ae57094
[ "Apache-2.0" ]
null
null
null
ava.py
dannytszho/FireNation-invasion
3b4fbd1cbb72f42396a150e6472f4ad96ae57094
[ "Apache-2.0" ]
null
null
null
ava.py
dannytszho/FireNation-invasion
3b4fbd1cbb72f42396a150e6472f4ad96ae57094
[ "Apache-2.0" ]
null
null
null
import pygame from pygame.sprite import Sprite class Ava(Sprite): def __init__(self, ai_game): super().__init__() self.screen = ai_game.screen self.settings_sky = ai_game.settings_sky self.screen_rect = ai_game.screen.get_rect() self.image = pygame.image.load('images/ava.bmp') self.rect = self.image.get...
29.404255
69
0.727207
79801455da2fc65996d32c3be34fe6a9d5bd20a2
13,780
py
Python
project/labels/tests/test_label_list.py
beijbom/coralnet
c3f4a44eeb60cb41a079329a0068dc8b34096e89
[ "BSD-2-Clause" ]
31
2019-12-08T14:22:52.000Z
2021-12-27T04:58:12.000Z
project/labels/tests/test_label_list.py
beijbom/coralnet
c3f4a44eeb60cb41a079329a0068dc8b34096e89
[ "BSD-2-Clause" ]
193
2019-12-07T23:27:43.000Z
2022-03-05T08:05:46.000Z
project/labels/tests/test_label_list.py
beijbom/coralnet
c3f4a44eeb60cb41a079329a0068dc8b34096e89
[ "BSD-2-Clause" ]
null
null
null
from bs4 import BeautifulSoup from django.contrib.auth.models import Group from django.urls import reverse from calcification.tests.utils import create_default_calcify_table from images.model_utils import PointGen from lib.tests.utils import BasePermissionTest, ClientTest from ..models import LabelGroup, Label class...
35.424165
78
0.630189
798014d8858bad92f072da68252482e282504e7d
4,288
py
Python
modules/iam__enum_users/main.py
scopedsecurity/pacu
51f6a6371197c937b4b1c391907fd144e4febc49
[ "BSD-3-Clause" ]
null
null
null
modules/iam__enum_users/main.py
scopedsecurity/pacu
51f6a6371197c937b4b1c391907fd144e4febc49
[ "BSD-3-Clause" ]
null
null
null
modules/iam__enum_users/main.py
scopedsecurity/pacu
51f6a6371197c937b4b1c391907fd144e4febc49
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import argparse import botocore import os module_info = { 'name': 'iam__enum_users', 'author': 'Spencer Gietzen of Rhino Security Labs', 'category': 'RECON_UNAUTH', 'one_liner': 'Enumerates IAM users in a separate AWS account, given the account ID.', 'description': 'This ...
44.666667
755
0.664412
7980153d28592897eca09a58377d2efaaa8e4fac
12,368
py
Python
salt/cli/salt.py
mgwilliams/salt
c5f814bfdbc46765f4baa8355082a3528a7c9d8e
[ "Apache-2.0" ]
null
null
null
salt/cli/salt.py
mgwilliams/salt
c5f814bfdbc46765f4baa8355082a3528a7c9d8e
[ "Apache-2.0" ]
null
null
null
salt/cli/salt.py
mgwilliams/salt
c5f814bfdbc46765f4baa8355082a3528a7c9d8e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Import python libs from __future__ import absolute_import, print_function import os import sys # Import Salt libs from salt.utils import parsers, print_cli from salt.exceptions import ( SaltClientError, SaltInvocationError, EauthAuthenticationError ) # Import...
38.291022
106
0.486902
79801577173775f41dcc82b00fdefa83eddd6516
16,348
py
Python
CMASOTB2_ConfGen.py
hal-lab-u-tokyo/GenMap
4ee3eab31826115fe77abeec43df2149efef6279
[ "MIT" ]
null
null
null
CMASOTB2_ConfGen.py
hal-lab-u-tokyo/GenMap
4ee3eab31826115fe77abeec43df2149efef6279
[ "MIT" ]
2
2022-01-12T03:26:12.000Z
2022-01-17T01:21:25.000Z
CMASOTB2_ConfGen.py
hal-lab-u-tokyo/GenMap
4ee3eab31826115fe77abeec43df2149efef6279
[ "MIT" ]
1
2022-01-07T08:03:36.000Z
2022-01-07T08:03:36.000Z
# This file is part of GenMap and released under the MIT License, see LICENSE. # Author: Takuya Kojima from ConfGenBase import ConfGenBase from ConfDrawer import ConfDrawer import os import math from tkinter import TclError # DATA FOMRATS SE_FIELDS = ["OUT_A_NORTH", "OUT_A_SOUTH", "OUT_A_EAST", "OUT_A_WEST", \ ...
43.946237
115
0.543614
79801695085167af23ae0f49f64e6f7ce0390a45
1,869
py
Python
RAnexos/views.py
luizfreinoso/mvlibras
3d934dcde545885371d1629b956314ca5947d9e9
[ "MIT" ]
null
null
null
RAnexos/views.py
luizfreinoso/mvlibras
3d934dcde545885371d1629b956314ca5947d9e9
[ "MIT" ]
null
null
null
RAnexos/views.py
luizfreinoso/mvlibras
3d934dcde545885371d1629b956314ca5947d9e9
[ "MIT" ]
null
null
null
from django.shortcuts import render, HttpResponse, get_object_or_404 from RAnexos.models import Anexo from AP.models import APListaRecursos import json # Create your views here. def anexar(request): print 'anexando....' response_data = {} print request.POST['RAnexosRecursoID'] print request.POST['RAnex...
35.264151
156
0.665597
798016d6de50726efc706973957183ecc4211ccb
29
py
Python
neowebdriver/__init__.py
lukas-linhart/neowebdriver
84ae0a011bef6891c42144cd11f120d27f1e74c5
[ "MIT" ]
null
null
null
neowebdriver/__init__.py
lukas-linhart/neowebdriver
84ae0a011bef6891c42144cd11f120d27f1e74c5
[ "MIT" ]
null
null
null
neowebdriver/__init__.py
lukas-linhart/neowebdriver
84ae0a011bef6891c42144cd11f120d27f1e74c5
[ "MIT" ]
null
null
null
__version__ = '0.0.1' pass
5.8
21
0.62069
7980187d98abdbc377a880549d986b733cf31eb6
3,580
py
Python
Layout/Language.py
King-ofwolf/PACOS
730a6d341640d6f94a8b3d24c0336d71f3b1689e
[ "MIT" ]
2
2019-06-03T12:52:05.000Z
2019-12-12T02:17:41.000Z
Layout/Language.py
King-ofwolf/PACOS
730a6d341640d6f94a8b3d24c0336d71f3b1689e
[ "MIT" ]
1
2019-06-01T16:47:57.000Z
2019-06-03T07:42:26.000Z
Layout/Language.py
King-ofwolf/PACOS
730a6d341640d6f94a8b3d24c0336d71f3b1689e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # @Author: kingofwolf # @Date: 2019-03-17 17:13:49 # @Last Modified by: kingofwolf # @Last Modified time: 2019-06-21 11:45:27 # @Email: wangshenglingQQ@163.com 'Info: a Python file ' __author__ = 'Wang' __version__= '2019-03-17 17:13:49' from PyQt4 import QtGui def QT...
60.677966
186
0.706983
79801939782f4768e9ad98419e8506fe1f111ffb
35,900
py
Python
dryxPython/mysql/__init__.py
thespacedoctor/dryxPython
8f34f997192eebef9403bd40e4b7c1b1d216f53c
[ "BSD-3-Clause" ]
2
2015-08-01T16:00:44.000Z
2017-02-24T21:06:50.000Z
dryxPython/mysql/__init__.py
thespacedoctor/dryxPython
8f34f997192eebef9403bd40e4b7c1b1d216f53c
[ "BSD-3-Clause" ]
null
null
null
dryxPython/mysql/__init__.py
thespacedoctor/dryxPython
8f34f997192eebef9403bd40e4b7c1b1d216f53c
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """ **mysql** **A handful of useful mysql python methods** | Created by David Young on October 8, 2012 | If you have any questions requiring this script please email me: davidrobertyoung@gmail.com **dryx syntax** | ``xxx`` = come back here and do some more work | ``_someOb...
36.632653
207
0.500947
7980194d457c9fc8741cead94d0e719a5287f654
11,932
py
Python
pvlib/clearsky.py
dacoex/pvlib-python
38c0082f264a468015464aff1026a9ac864b4ed5
[ "BSD-3-Clause" ]
null
null
null
pvlib/clearsky.py
dacoex/pvlib-python
38c0082f264a468015464aff1026a9ac864b4ed5
[ "BSD-3-Clause" ]
null
null
null
pvlib/clearsky.py
dacoex/pvlib-python
38c0082f264a468015464aff1026a9ac864b4ed5
[ "BSD-3-Clause" ]
2
2017-03-08T18:38:05.000Z
2018-06-08T07:29:03.000Z
""" The ``clearsky`` module contains several methods to calculate clear sky GHI, DNI, and DHI. """ from __future__ import division import logging logger = logging.getLogger('pvlib') import os import numpy as np import pandas as pd from pvlib import tools from pvlib import irradiance from pvlib import atmosphere f...
36.713846
123
0.650017
798019dba7af69a03e5de6fb54a15ac7288c6ef6
3,601
py
Python
bindings/python/ensmallen/datasets/string/candidatusbathyarchaeotaarchaeonrbg136020.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
5
2021-02-17T00:44:45.000Z
2021-08-09T16:41:47.000Z
bindings/python/ensmallen/datasets/string/candidatusbathyarchaeotaarchaeonrbg136020.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
18
2021-01-07T16:47:39.000Z
2021-08-12T21:51:32.000Z
bindings/python/ensmallen/datasets/string/candidatusbathyarchaeotaarchaeonrbg136020.py
AnacletoLAB/ensmallen
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
3
2021-01-14T02:20:59.000Z
2021-08-04T19:09:52.000Z
""" This file offers the methods to automatically retrieve the graph Candidatus Bathyarchaeota archaeon RBG_13_60_20. The graph is automatically retrieved from the STRING repository. References --------------------- Please cite the following if you use the data: ```bib @article{szklarczyk2019string, title={STR...
34.295238
223
0.687587
79801a0eac6d39299ae99bb4d22edb9a4cc614d1
542
py
Python
event/migrations/0009_auto_20200523_1400.py
Aleccc/gtcrew
7e6e7024afdbf48ee796cb1f9a86b913e6843dda
[ "MIT" ]
null
null
null
event/migrations/0009_auto_20200523_1400.py
Aleccc/gtcrew
7e6e7024afdbf48ee796cb1f9a86b913e6843dda
[ "MIT" ]
21
2019-02-14T02:47:34.000Z
2022-01-23T02:22:54.000Z
event/migrations/0009_auto_20200523_1400.py
Aleccc/gtcrew
7e6e7024afdbf48ee796cb1f9a86b913e6843dda
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2020-05-23 18:00 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('team', '0010_auto_20200415_2332'), ('event', '0008_result_rank'), ] operations = [ migrations.RemoveField( model_name='r...
22.583333
70
0.566421
79801ae212594000a482ab66dc77b76375707d52
4,391
py
Python
dicomtrolley/fields.py
michelkok/dicomtrolley
e20def0fc6f3ee132368a168e07ed3c17c5431fe
[ "Apache-2.0" ]
2
2021-05-11T10:50:08.000Z
2022-03-22T20:45:06.000Z
dicomtrolley/fields.py
michelkok/dicomtrolley
e20def0fc6f3ee132368a168e07ed3c17c5431fe
[ "Apache-2.0" ]
5
2021-03-18T14:06:08.000Z
2022-03-29T13:25:04.000Z
dicomtrolley/fields.py
michelkok/dicomtrolley
e20def0fc6f3ee132368a168e07ed3c17c5431fe
[ "Apache-2.0" ]
3
2021-03-15T02:06:37.000Z
2021-09-27T12:55:39.000Z
"""Fields that can be returned for Study, Series and Instance levels Notes ----- Valid fields per level have all been taken from the Vitrea Connection 8.2.0.1 manual. These list might be different for different software. """ class InstanceLevel: """attributes can be returned if queryLevel=INSTANCE""" fields...
29.668919
85
0.644272
79801af655195a29c2f032e2555d21eff5a90b6c
3,406
py
Python
mathfilters/templatetags/mathfilters.py
dbrgn/django-mathfilters
b71cbe7f4dce0ab67c82dc8dce681d6fb25f6dda
[ "MIT" ]
122
2015-01-08T19:26:53.000Z
2021-12-29T11:10:44.000Z
mathfilters/templatetags/mathfilters.py
dbrgn/django-mathfilters
b71cbe7f4dce0ab67c82dc8dce681d6fb25f6dda
[ "MIT" ]
18
2015-02-14T07:57:23.000Z
2021-11-13T17:57:53.000Z
mathfilters/templatetags/mathfilters.py
dbrgn/django-mathfilters
b71cbe7f4dce0ab67c82dc8dce681d6fb25f6dda
[ "MIT" ]
24
2015-02-01T07:02:21.000Z
2021-11-19T15:57:40.000Z
import logging from decimal import Decimal from django.template import Library register = Library() logger = logging.getLogger(__name__) def valid_numeric(arg): if isinstance(arg, (int, float, Decimal)): return arg try: return int(arg) except ValueError: return float(arg) def ...
25.41791
78
0.588373
79801afe4e63f536fa3ebce9fb907a14ba9d068b
5,773
py
Python
pba/helper_utils.py
cclauss/pba
e368e848298829371dfb9a12ca1e71e319ef082a
[ "Apache-2.0" ]
1
2019-06-08T03:14:16.000Z
2019-06-08T03:14:16.000Z
pba/helper_utils.py
cclauss/pba
e368e848298829371dfb9a12ca1e71e319ef082a
[ "Apache-2.0" ]
null
null
null
pba/helper_utils.py
cclauss/pba
e368e848298829371dfb9a12ca1e71e319ef082a
[ "Apache-2.0" ]
1
2019-06-08T03:14:25.000Z
2019-06-08T03:14:25.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 applicab...
37.487013
106
0.663087
79801bccb574d7e446f7f130e9aa5b5ff1851c3e
4,384
py
Python
aragwas_server/gwasdb/models.py
1001genomes/AraGWAS
be02c0480bf18228b07853740e63f249fe31d7e5
[ "MIT" ]
11
2017-08-03T07:17:56.000Z
2020-08-26T06:23:45.000Z
aragwas_server/gwasdb/models.py
grimmlab/AraGWAS
447db9bff377085a65aea05c0f09545e9405cc6c
[ "MIT" ]
138
2017-02-27T18:33:49.000Z
2022-03-02T04:25:23.000Z
aragwas_server/gwasdb/models.py
grimmlab/AraGWAS
447db9bff377085a65aea05c0f09545e9405cc6c
[ "MIT" ]
9
2017-10-05T08:45:37.000Z
2020-11-06T06:48:58.000Z
from django.db import models from django.conf import settings from django.core.urlresolvers import reverse class Phenotype(models.Model): """ Phenotype model, if possible links to AraPheno """ name = models.CharField(max_length=255) # name of phenotype study_name = models.CharField(max_length=255, ...
51.576471
136
0.720347
79801c458e56b639db431e3d6ed3b929c42fafd6
22,493
py
Python
tidal_dl/tidal.py
preetk10/tidaldl
1060e9ec524812e7e60b13d1a2d5758f1a56ba8e
[ "Apache-2.0" ]
null
null
null
tidal_dl/tidal.py
preetk10/tidaldl
1060e9ec524812e7e60b13d1a2d5758f1a56ba8e
[ "Apache-2.0" ]
null
null
null
tidal_dl/tidal.py
preetk10/tidaldl
1060e9ec524812e7e60b13d1a2d5758f1a56ba8e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 # -*- encoding: utf-8 -*- ''' @File : tidal.py @Time : 2019/02/27 @Author : Yaron Huang @Version : 1.0 @Contact : yaronhuang@qq.com @Desc : Tidal API ''' import os import re import uuid import requests import json from aigpy import fileHelper ...
37.994932
125
0.542702
79801ca8535a31a45d6cf19ebac1bff4c726fa79
29,909
py
Python
facebook_business/api.py
mschmo/facebook-python-ads-sdk
bf273b4627c99dc261e4483ae0a4c5de648b37c8
[ "CNRI-Python" ]
null
null
null
facebook_business/api.py
mschmo/facebook-python-ads-sdk
bf273b4627c99dc261e4483ae0a4c5de648b37c8
[ "CNRI-Python" ]
null
null
null
facebook_business/api.py
mschmo/facebook-python-ads-sdk
bf273b4627c99dc261e4483ae0a4c5de648b37c8
[ "CNRI-Python" ]
null
null
null
# Copyright 2014 Facebook, Inc. # You are hereby granted a non-exclusive, worldwide, royalty-free license to # use, copy, modify, and distribute this software in source code or binary # form for use in connection with the web services and APIs provided by # Facebook. # As with any software that integrates with the Fa...
33.83371
84
0.59009
79801d19534a183fe8574b6dfa96f5b819ed7ffa
17,191
py
Python
gameRule.py
Jasonlmx/Touhou-Star-Salvation
a8804450625957af7b81d0075873a68708374db8
[ "MIT" ]
4
2021-10-15T13:18:43.000Z
2022-03-05T10:49:47.000Z
gameRule.py
Jasonlmx/Touhou-Star-Salvation
a8804450625957af7b81d0075873a68708374db8
[ "MIT" ]
null
null
null
gameRule.py
Jasonlmx/Touhou-Star-Salvation
a8804450625957af7b81d0075873a68708374db8
[ "MIT" ]
1
2021-11-29T04:17:32.000Z
2021-11-29T04:17:32.000Z
import pygame,sys import random import math from pygame.locals import * from pygame.sprite import Group import gF import Bullet import DADcharacter import Slave import global_var import Effect import Item import gameRule def addLastingCancel(tx,ty,slaves,maxFrame,doBonus): new_slave=Slave.bulletCancelLasting(...
42.870324
116
0.624047
79801d5bc8f8c0bdd6dc6fc6e9dc413c68ae76de
195
py
Python
insta/admin.py
ClintonOliera/instagram
382eba141d1aab4f092168eda62f0bac97f9999b
[ "MIT" ]
null
null
null
insta/admin.py
ClintonOliera/instagram
382eba141d1aab4f092168eda62f0bac97f9999b
[ "MIT" ]
null
null
null
insta/admin.py
ClintonOliera/instagram
382eba141d1aab4f092168eda62f0bac97f9999b
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import * # Register your models here. admin.site.register(Post) admin.site.register(Comment) admin.site.register(Follow) admin.site.register(Profile)
27.857143
32
0.810256
79801e8d4f6dec20a19e903208182a691f813cc5
1,892
py
Python
cloudify_agent/tests/shell/test_decorators.py
Cloudify-PS/cloudify-agent
8019b7ef6590339760facd6df220350845ef8db8
[ "Apache-2.0" ]
1
2016-11-18T17:35:55.000Z
2016-11-18T17:35:55.000Z
cloudify_agent/tests/shell/test_decorators.py
Cloudify-PS/cloudify-agent
8019b7ef6590339760facd6df220350845ef8db8
[ "Apache-2.0" ]
null
null
null
cloudify_agent/tests/shell/test_decorators.py
Cloudify-PS/cloudify-agent
8019b7ef6590339760facd6df220350845ef8db8
[ "Apache-2.0" ]
1
2018-09-11T20:54:01.000Z
2018-09-11T20:54:01.000Z
######### # Copyright (c) 2015 GigaSpaces Technologies Ltd. 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...
34.4
77
0.702431