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
79835144062b94b4574cacab12bc76301fef579b
1,014
py
Python
application/auth/views.py
Ashaba/API-Monitor
533eb6698fcb5decb48f746784af6894844b3c69
[ "MIT" ]
null
null
null
application/auth/views.py
Ashaba/API-Monitor
533eb6698fcb5decb48f746784af6894844b3c69
[ "MIT" ]
22
2018-02-06T19:53:11.000Z
2021-04-30T20:35:01.000Z
application/auth/views.py
Ashaba/API-Monitor
533eb6698fcb5decb48f746784af6894844b3c69
[ "MIT" ]
null
null
null
import logging from flask import Blueprint, render_template, jsonify, session, request from application.auth.helpers import (update_user) auth = Blueprint('auth', __name__, template_folder='templates') logger = logging.getLogger(__name__) @auth.route('/') def login(): context = dict() context["title"] = "AP...
26
71
0.623274
798351e5dbbe14af7a806d29d67cc1781b0f95c9
5,946
py
Python
tests/test_migra.py
schemahq/migra
6265f893d793537dcd109038b30637a11b8b6430
[ "Unlicense" ]
null
null
null
tests/test_migra.py
schemahq/migra
6265f893d793537dcd109038b30637a11b8b6430
[ "Unlicense" ]
null
null
null
tests/test_migra.py
schemahq/migra
6265f893d793537dcd109038b30637a11b8b6430
[ "Unlicense" ]
null
null
null
from __future__ import unicode_literals import io from pytest import raises from sqlbag import S, load_sql_from_file, temporary_database from migra import Migration, Statements, UnsafeMigrationException from migra.command import parse_args, run from schemainspect import get_inspector SQL = """select 1; select 2; ...
28.724638
115
0.618399
7983524c1ffef4bd0a7d657338903ffe09b96e07
1,281
py
Python
projects/oldProyects/EWESim/CoffeMakerAgent.py
GGP00/soba
c193f323f26eccf579a454b8bb4bec4e80644444
[ "MIT" ]
1
2017-03-06T12:33:02.000Z
2017-03-06T12:33:02.000Z
projects/oldProyects/EWESim/CoffeMakerAgent.py
GGP00/soba
c193f323f26eccf579a454b8bb4bec4e80644444
[ "MIT" ]
3
2017-04-26T08:57:35.000Z
2019-04-24T08:28:24.000Z
projects/oldProyects/EWESim/CoffeMakerAgent.py
GGP00/soba
c193f323f26eccf579a454b8bb4bec4e80644444
[ "MIT" ]
1
2019-01-20T17:39:00.000Z
2019-01-20T17:39:00.000Z
from mesa import Agent, Model import random class CoffeMakerAgent(Agent): def __init__(self, unique_id, model, capacity=5): super().__init__(unique_id, model) self.capacity = capacity self.amount = capacity self.recentUsers = dict() self.timeBetweenCoffe = 20 def senso...
35.583333
104
0.565183
798352c8ccdd415dfe945daf369e1c61f1238875
3,341
py
Python
iocage/tests/unit_tests/1001_lib_start_test.py
project-fifo/iocage
1b8669bc2119718dbea8f2707a4eb4c92197c0f0
[ "BSD-2-Clause" ]
null
null
null
iocage/tests/unit_tests/1001_lib_start_test.py
project-fifo/iocage
1b8669bc2119718dbea8f2707a4eb4c92197c0f0
[ "BSD-2-Clause" ]
null
null
null
iocage/tests/unit_tests/1001_lib_start_test.py
project-fifo/iocage
1b8669bc2119718dbea8f2707a4eb4c92197c0f0
[ "BSD-2-Clause" ]
1
2022-03-06T10:09:18.000Z
2022-03-06T10:09:18.000Z
import mock import pytest from iocage.lib.ioc_start import find_bridge_mtu @mock.patch('iocage.lib.ioc_start.checkoutput') def test_should_return_mtu_of_first_member(mock_checkoutput): mock_checkoutput.side_effect = [bridge_if_config, member_if_config] mtu = find_bridge_mtu('bridge0') assert mtu == '1500'...
44.546667
116
0.690213
798354fb0955fca1a763cba5f1a29afe54840f81
46,164
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2021_02_01/aio/operations/_connection_monitors_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/v2021_02_01/aio/operations/_connection_monitors_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/v2021_02_01/aio/operations/_connection_monitors_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 ...
53.001148
242
0.684234
7983552b6f7db6f0368671367a6fc52bef227069
310
py
Python
setup.py
MichaelBuessemeyer/tetrisRL
55ecea82253cbc2bbd4ed6be3f11ef4d1258e1ea
[ "MIT" ]
null
null
null
setup.py
MichaelBuessemeyer/tetrisRL
55ecea82253cbc2bbd4ed6be3f11ef4d1258e1ea
[ "MIT" ]
16
2021-06-17T10:33:42.000Z
2021-07-15T09:35:14.000Z
setup.py
MichaelBuessemeyer/tetrisRL
55ecea82253cbc2bbd4ed6be3f11ef4d1258e1ea
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name="tetrisRL", version="0.5", author="Jay Butera", author_email="buterajay@gmail.com", license="MIT", url="https://github.com/jaybutera/tetrisRL", packages=find_packages(), install_requires=[ 'numpy>=1.13', ], )
20.666667
48
0.635484
79835540fb71185182dcb452b8e30dc68469ffee
4,134
py
Python
nltk/test/unit/test_concordance.py
pyfisch/nltk
71c6b7f181eb4b1b3441d6be232999e8893e394f
[ "Apache-2.0" ]
null
null
null
nltk/test/unit/test_concordance.py
pyfisch/nltk
71c6b7f181eb4b1b3441d6be232999e8893e394f
[ "Apache-2.0" ]
null
null
null
nltk/test/unit/test_concordance.py
pyfisch/nltk
71c6b7f181eb4b1b3441d6be232999e8893e394f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import unittest import contextlib import sys from nose import with_setup from nltk.corpus import gutenberg from nltk.text import Text try: from StringIO import StringIO except ImportError as e: from io import StringIO @contextlib.contextmanager def stdout_redirect(where): sys.s...
38.635514
95
0.648766
7983568e56a4a9d1e71a3374c691087d68e668c8
254
py
Python
testsites/testsite_18/manage.py
TIPvermogensbeheer/django-iprestrict
e854dd841290749e8e201b5dfa10d6fd97ce1d6f
[ "BSD-3-Clause" ]
30
2015-03-23T14:41:35.000Z
2022-02-14T10:57:11.000Z
testsites/testsite_18/manage.py
TIPvermogensbeheer/django-iprestrict
e854dd841290749e8e201b5dfa10d6fd97ce1d6f
[ "BSD-3-Clause" ]
52
2016-01-17T08:36:23.000Z
2021-06-22T08:24:14.000Z
testsites/testsite_18/manage.py
TIPvermogensbeheer/django-iprestrict
e854dd841290749e8e201b5dfa10d6fd97ce1d6f
[ "BSD-3-Clause" ]
17
2015-05-12T09:28:52.000Z
2020-09-10T19:17:59.000Z
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "testsite_18.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
23.090909
75
0.775591
79835930e0d50bb0f13a4a26e3c2f35b211e78dc
216
py
Python
Data Structure/Array Or Vector/Product of Elements in An Array/SolutionByPiyush.py
rajethanm4/Programmers-Community
d16083eb0e84403159d999d4d1a8bbf652ca51f6
[ "MIT" ]
261
2019-09-30T19:47:29.000Z
2022-03-29T18:20:07.000Z
Data Structure/Array Or Vector/Product of Elements in An Array/SolutionByPiyush.py
rajethanm4/Programmers-Community
d16083eb0e84403159d999d4d1a8bbf652ca51f6
[ "MIT" ]
647
2019-10-01T16:51:29.000Z
2021-12-16T20:39:44.000Z
Data Structure/Array Or Vector/Product of Elements in An Array/SolutionByPiyush.py
rajethanm4/Programmers-Community
d16083eb0e84403159d999d4d1a8bbf652ca51f6
[ "MIT" ]
383
2019-09-30T19:32:07.000Z
2022-03-24T16:18:26.000Z
print('Enter the elements of the array (Space Seperated) : ') v = [int(i) for i in input().split(" ")] def product(v): product = 1 for i in v: product = product*i print(product) product(v)
18
61
0.587963
798359f3c2c68a0a9a18baea41b5b0aa347611ab
1,995
py
Python
src/NL_BERT/utils/data_processing.py
Anonym96/Negotiation_Learning
a819f2e688879c0afb3b17964f4fec9ab37161de
[ "MIT" ]
null
null
null
src/NL_BERT/utils/data_processing.py
Anonym96/Negotiation_Learning
a819f2e688879c0afb3b17964f4fec9ab37161de
[ "MIT" ]
null
null
null
src/NL_BERT/utils/data_processing.py
Anonym96/Negotiation_Learning
a819f2e688879c0afb3b17964f4fec9ab37161de
[ "MIT" ]
1
2021-06-20T16:34:31.000Z
2021-06-20T16:34:31.000Z
""" File used to initialize models and make dataloaders. Mainly based on [GitHub repository](https://github.com/intersun/PKD-for-BERT-Model-Compression) for [Patient Knowledge Distillation for BERT Model Compression](https://arxiv.org/abs/1908.09355). """ from utils.nli_data_processing import init_glue_model, get_glue_...
64.354839
247
0.788972
79835a0f8d8f39e51f6acf5fb7695b60bbf6551a
9,287
py
Python
fedjax/experimental/optimizers.py
kho/fedjax
4b8b4ecf945fdfd6ad678ad88adaeabdbd960c60
[ "Apache-2.0" ]
null
null
null
fedjax/experimental/optimizers.py
kho/fedjax
4b8b4ecf945fdfd6ad678ad88adaeabdbd960c60
[ "Apache-2.0" ]
1
2021-04-13T01:58:37.000Z
2021-04-13T01:58:37.000Z
fedjax/experimental/optimizers.py
kho/fedjax
4b8b4ecf945fdfd6ad678ad88adaeabdbd960c60
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 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, ...
36.853175
80
0.720685
79835a48521a21f10ac6146724246c04093f906b
13,323
py
Python
grid/views.py
IlianIliev/opencomparison
1bbf9ab7b383012764adc3054dbaafd664b5520b
[ "MIT" ]
1
2019-04-07T23:21:28.000Z
2019-04-07T23:21:28.000Z
grid/views.py
IlianIliev/opencomparison
1bbf9ab7b383012764adc3054dbaafd664b5520b
[ "MIT" ]
null
null
null
grid/views.py
IlianIliev/opencomparison
1bbf9ab7b383012764adc3054dbaafd664b5520b
[ "MIT" ]
null
null
null
"""views for the :mod:`grid` app""" from django.contrib.auth.decorators import login_required, permission_required from django.contrib import messages from django.core.urlresolvers import reverse from django.http import HttpResponseRedirect, Http404, HttpResponseForbidden from django.shortcuts import get_object_or_404...
35.153034
136
0.656309
79835be4a955a8131c4a3fe9ac660c1fb5b023fa
1,511
py
Python
cride/users/models/users.py
SmithGA97/cride
b1fab88b16f9bbfa0b026300e03c718ea9ca73b5
[ "MIT" ]
null
null
null
cride/users/models/users.py
SmithGA97/cride
b1fab88b16f9bbfa0b026300e03c718ea9ca73b5
[ "MIT" ]
null
null
null
cride/users/models/users.py
SmithGA97/cride
b1fab88b16f9bbfa0b026300e03c718ea9ca73b5
[ "MIT" ]
null
null
null
"""User model""" #Django from django.db import models from django.contrib.auth.models import AbstractUser from django.core.validators import RegexValidator #Utilities from cride.utils.models import CRideModel class User(CRideModel, AbstractUser): """User model Extend from Django's Abstract User, change the ...
26.508772
98
0.629385
79835c41301c847ef9329fe2b1ecf056cdaf8067
7,004
py
Python
sdk/python/pulumi_azure_native/apimanagement/v20180101/api_diagnostic_logger.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/apimanagement/v20180101/api_diagnostic_logger.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/apimanagement/v20180101/api_diagnostic_logger.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "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 from ... import _utilities, _tables __a...
43.775
591
0.650485
79835c57e1dd75b39dd3bf35ced1278230826f35
15,196
py
Python
alpaca_backtrader_api/alpacadata.py
guppykang/alpaca-backtrader-api
9f896c858fd43f5419f71f9dc244e520b5883ccb
[ "Apache-2.0" ]
null
null
null
alpaca_backtrader_api/alpacadata.py
guppykang/alpaca-backtrader-api
9f896c858fd43f5419f71f9dc244e520b5883ccb
[ "Apache-2.0" ]
null
null
null
alpaca_backtrader_api/alpacadata.py
guppykang/alpaca-backtrader-api
9f896c858fd43f5419f71f9dc244e520b5883ccb
[ "Apache-2.0" ]
null
null
null
from __future__ import (absolute_import, division, print_function, unicode_literals) from datetime import datetime, timedelta from backtrader.feed import DataBase from backtrader import date2num, num2date from backtrader.utils.py3 import queue, with_metaclass from alpaca_backtrader_api import...
35.175926
78
0.55508
79835c89ae958117a172883ef7a2a573678cb97d
9,892
py
Python
partners/forms.py
vineethreddyramasa/vineeth-cpi
68ac58fee2270c1e0d5732106721a4220198b4c7
[ "MIT" ]
null
null
null
partners/forms.py
vineethreddyramasa/vineeth-cpi
68ac58fee2270c1e0d5732106721a4220198b4c7
[ "MIT" ]
10
2020-02-11T23:59:42.000Z
2022-01-13T01:09:05.000Z
partners/forms.py
vineethreddyramasa/vineeth-cpi
68ac58fee2270c1e0d5732106721a4220198b4c7
[ "MIT" ]
null
null
null
from django import forms from django.core.files.images import get_image_dimensions from django.forms import ModelForm from home.models import Contact, User, MissionArea from partners.models import * from university.models import * from django.forms import modelformset_factory from django.core.exceptions import NON_FIEL...
37.755725
128
0.58977
79835ca3e825d47ea6917b4da9457ccc4e42c360
11,638
py
Python
src/python/torch/seq2seq_prediction.py
FAIR-UMN/fair_ecal_monitoring
bbbf55451111162c419d414c50367d153a544754
[ "MIT" ]
null
null
null
src/python/torch/seq2seq_prediction.py
FAIR-UMN/fair_ecal_monitoring
bbbf55451111162c419d414c50367d153a544754
[ "MIT" ]
null
null
null
src/python/torch/seq2seq_prediction.py
FAIR-UMN/fair_ecal_monitoring
bbbf55451111162c419d414c50367d153a544754
[ "MIT" ]
null
null
null
# This script includes the functions to make predictions on data from ecal_dataset_prep import * class Seq2Seq_Prediction: def __init__(self, encoder, decoder, Xtrain, Ytrain, df, scaler_cali, device, ...
41.564286
115
0.61514
79835ccbee7d6df948eca34f8ea5b5a93740f4ee
364
py
Python
moban_velocity/__init__.py
ayan-b/moban-velocity
08db756848a5e1600ab7e61885cd986ac48f1b05
[ "MIT" ]
2
2019-02-02T11:40:49.000Z
2019-02-02T11:41:22.000Z
moban_velocity/__init__.py
ayan-b/moban-velocity
08db756848a5e1600ab7e61885cd986ac48f1b05
[ "MIT" ]
4
2019-02-25T21:58:21.000Z
2020-06-03T22:18:50.000Z
moban_velocity/__init__.py
ayan-b/moban-velocity
08db756848a5e1600ab7e61885cd986ac48f1b05
[ "MIT" ]
1
2019-02-02T11:51:24.000Z
2019-02-02T11:51:24.000Z
# flake8: noqa import moban.constants as constants from lml.plugin import PluginInfo, PluginInfoChain from moban_velocity._version import __author__, __version__ PluginInfoChain(__name__).add_a_plugin_instance( PluginInfo( constants.TEMPLATE_ENGINE_EXTENSION, "%s.engine.EngineVelocity" % __name__,...
26
59
0.741758
79835daab6cb412a40131d58d30ee2ca82731c60
4,862
py
Python
openstack/identity/v3/domain.py
allenLew1991/huaweicloud-sdk-python
13d1931372ee096ac3065251c48db16ef6c045c9
[ "Apache-2.0" ]
1
2019-11-12T07:44:16.000Z
2019-11-12T07:44:16.000Z
openstack/identity/v3/domain.py
ArvinSong/huaweicloud-sdk-python
227cd7f68a07974b16794c371f110d1927571fd0
[ "Apache-2.0" ]
null
null
null
openstack/identity/v3/domain.py
ArvinSong/huaweicloud-sdk-python
227cd7f68a07974b16794c371f110d1927571fd0
[ "Apache-2.0" ]
null
null
null
# 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 # distributed under t...
40.181818
87
0.644796
79835de77bfbf1c5f958ac3d452e5023ad08eb3b
2,968
py
Python
flows/distributions.py
terhorst/jax-flows
ac5b452fb62a420eb89ef6c5e926a04f96c335af
[ "MIT" ]
198
2020-03-29T02:39:53.000Z
2022-03-31T00:33:40.000Z
flows/distributions.py
terhorst/jax-flows
ac5b452fb62a420eb89ef6c5e926a04f96c335af
[ "MIT" ]
5
2021-01-07T07:00:41.000Z
2022-03-12T00:51:39.000Z
flows/distributions.py
terhorst/jax-flows
ac5b452fb62a420eb89ef6c5e926a04f96c335af
[ "MIT" ]
15
2020-09-03T08:09:10.000Z
2022-03-04T18:07:47.000Z
import jax.numpy as np from jax import random from jax.scipy.special import logsumexp from jax.scipy.stats import norm, multivariate_normal def Normal(): """ Returns: A function mapping ``(rng, input_dim)`` to a ``(params, log_pdf, sample)`` triplet. """ def init_fun(rng, input_dim): ...
33.727273
96
0.617251
79835f4fb9de79b6e1a3f9eab4d9c6eebc49ea73
7,034
py
Python
flfm/shell/paths.py
m-flak/flfm
e73943dc014e9af87a5c170d17dee15e1c6609bd
[ "Apache-2.0" ]
5
2019-10-24T05:40:26.000Z
2021-01-06T01:41:08.000Z
flfm/shell/paths.py
m-flak/flfm
e73943dc014e9af87a5c170d17dee15e1c6609bd
[ "Apache-2.0" ]
null
null
null
flfm/shell/paths.py
m-flak/flfm
e73943dc014e9af87a5c170d17dee15e1c6609bd
[ "Apache-2.0" ]
null
null
null
""" Paths and Filesystem ~~~~~~~~~~~~~~~~~~~~ Objects representing files, directories, and paths for FLFM. """ from pathlib import Path import mimetypes import re import stat import filetype def create_proper_shellitem(str_path): """Creates either a :class:`ShellFile` or a :class:`ShellDirectory` ...
30.986784
93
0.579471
79835fb36c2ef58943019d92390534a5057e944b
13,271
py
Python
log_mito_act/model_123.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
log_mito_act/model_123.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
log_mito_act/model_123.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
# exported from PySB model 'model' from pysb import Model, Monomer, Parameter, Expression, Compartment, Rule, Observable, Initial, MatchOnce, Annotation, ANY, WILD Model() Monomer('Ligand', ['Receptor']) Monomer('ParpU', ['C3A']) Monomer('C8A', ['BidU']) Monomer('BaxM', ['BidM', 'BaxA']) Monomer('Apop', ['C3pro', 'X...
79.467066
614
0.809736
79836057bc9db31f8816a48350f595006a990530
16,001
py
Python
Cirq/CirqNonOracles/shor_math.py
jclapis/qsfe
941488f8f8a81a4b7d7fe28414ce14fa478a692a
[ "Apache-2.0" ]
11
2019-06-02T01:47:24.000Z
2021-08-10T14:54:35.000Z
Cirq/CirqNonOracles/shor_math.py
jclapis/qsfe
941488f8f8a81a4b7d7fe28414ce14fa478a692a
[ "Apache-2.0" ]
null
null
null
Cirq/CirqNonOracles/shor_math.py
jclapis/qsfe
941488f8f8a81a4b7d7fe28414ce14fa478a692a
[ "Apache-2.0" ]
2
2020-04-19T17:39:23.000Z
2021-03-08T12:35:55.000Z
# ======================================================================== # Copyright (C) 2019 The MITRE Corporation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apa...
36.699541
119
0.68777
798360b57b88c0d22d9842cd2a3b0b907acf9990
3,300
py
Python
bankroll/broker/csvsectionslicer.py
bankroll-py/bankroll-broker
694e275303b933e6e1fdf914299abd5adc12236e
[ "MIT" ]
2
2019-10-08T18:18:51.000Z
2020-04-03T15:48:49.000Z
bankroll/broker/csvsectionslicer.py
bankroll-py/bankroll-broker
694e275303b933e6e1fdf914299abd5adc12236e
[ "MIT" ]
null
null
null
bankroll/broker/csvsectionslicer.py
bankroll-py/bankroll-broker
694e275303b933e6e1fdf914299abd5adc12236e
[ "MIT" ]
null
null
null
from pathlib import Path from typing import Callable, Dict, Iterator, List, NamedTuple, Optional, Sequence import csv CriterionRowFilter = Callable[[List[str]], Optional[List[str]]] class CSVSectionCriterion(object): def __init__( self, startSectionRowMatch: List[str], endSectionRowMatch...
31.428571
84
0.631212
79836226c8d3017f2a57e6e3923a5fff170355e5
132
py
Python
loginsys/apps.py
shvedovskiy/web_technopolis
430d7e74fb87870e369ca615294116c63a51ff25
[ "WTFPL" ]
null
null
null
loginsys/apps.py
shvedovskiy/web_technopolis
430d7e74fb87870e369ca615294116c63a51ff25
[ "WTFPL" ]
1
2016-12-02T17:02:23.000Z
2016-12-02T17:02:23.000Z
loginsys/apps.py
shvedovskiy/web_technopolis
430d7e74fb87870e369ca615294116c63a51ff25
[ "WTFPL" ]
null
null
null
from __future__ import unicode_literals from django.apps import AppConfig class LoginsysConfig(AppConfig): name = 'loginsys'
16.5
39
0.795455
79836266224ac342719657ecb92861af589fe030
4,360
py
Python
bifrost/types/images.py
snek-shipyard/wagtai-bifrost
2a32467c922110aff5b79edaf84f38ee9f684369
[ "Unlicense", "MIT" ]
null
null
null
bifrost/types/images.py
snek-shipyard/wagtai-bifrost
2a32467c922110aff5b79edaf84f38ee9f684369
[ "Unlicense", "MIT" ]
3
2021-01-17T17:58:01.000Z
2021-02-19T09:15:15.000Z
bifrost/types/images.py
snek-shipyard/wagtail-bifrost
2a32467c922110aff5b79edaf84f38ee9f684369
[ "MIT", "Unlicense" ]
1
2021-04-27T12:46:09.000Z
2021-04-27T12:46:09.000Z
import graphene from django.conf import settings from graphene_django import DjangoObjectType # graphql_jwt from graphql_jwt.decorators import login_required from wagtail.images import get_image_model from wagtail.images.models import Image as WagtailImage from wagtail.images.models import Rendition as WagtailImageRen...
27.421384
84
0.611697
79836316858f700c9ce68631d9bfa6211c9b443e
3,771
py
Python
contrib/macdeploy/custom_dsstore.py
mammix2/tele-mn
ffa95bdfe23bc8ad970db66a6a5f5048cbb859c8
[ "MIT" ]
4
2019-01-28T19:06:37.000Z
2021-01-08T14:59:02.000Z
contrib/macdeploy/custom_dsstore.py
mammix2/tele-mn
ffa95bdfe23bc8ad970db66a6a5f5048cbb859c8
[ "MIT" ]
null
null
null
contrib/macdeploy/custom_dsstore.py
mammix2/tele-mn
ffa95bdfe23bc8ad970db66a6a5f5048cbb859c8
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2013-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. from __future__ import division,print_function,unicode_literals import biplist from ds_store import DSStore...
61.819672
1,817
0.727128
7983637cded4e5b8a2dd057b7befd31d1334fa07
5,062
py
Python
progressive_train_script.py
dcleres/keras_cv_attention_models
264876673e369f23eff49b3b589b72f908a9625b
[ "MIT" ]
140
2021-08-04T06:51:41.000Z
2022-03-30T08:08:32.000Z
progressive_train_script.py
dcleres/keras_cv_attention_models
264876673e369f23eff49b3b589b72f908a9625b
[ "MIT" ]
12
2021-09-29T00:43:58.000Z
2022-03-28T07:50:35.000Z
progressive_train_script.py
dcleres/keras_cv_attention_models
264876673e369f23eff49b3b589b72f908a9625b
[ "MIT" ]
20
2021-09-28T20:07:35.000Z
2022-03-31T14:06:40.000Z
#!/usr/bin/env python3 import os import json import tensorflow as tf from train_script import parse_arguments, run_training_by_args def progressive_train_parse_arguments(argv): import argparse parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter) parser.add_argument( ...
58.860465
157
0.721849
798363909a56e7ea5a96819d319a48d1966978cc
31,780
py
Python
lib/d2yabt/dcos/check.py
jeffwhite530/d2yabt
ff70bc9e46f6d7238fdcc48bb2eff106b198270a
[ "BSD-3-Clause" ]
null
null
null
lib/d2yabt/dcos/check.py
jeffwhite530/d2yabt
ff70bc9e46f6d7238fdcc48bb2eff106b198270a
[ "BSD-3-Clause" ]
null
null
null
lib/d2yabt/dcos/check.py
jeffwhite530/d2yabt
ff70bc9e46f6d7238fdcc48bb2eff106b198270a
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 """This file contains the health check functions used on a DC/OS bundle. """ import sys import os import json import re import datetime import glob import pandas pandas.options.display.max_colwidth = 200 ANSI_RED_FG = "\033[31m" ANSI_END_FORMAT = "\033[0m" def nodes_missing_from_bundle(n...
27.467589
163
0.709975
798363f126a5c81506ffd1c74e734c9b49457947
5,032
py
Python
src/pyquickhelper/helpgen/install_custom.py
Pandinosaurus/pyquickhelper
326276f656cf88989e4d0fcd006ada0d3735bd9e
[ "MIT" ]
18
2015-11-10T08:09:23.000Z
2022-02-16T11:46:45.000Z
src/pyquickhelper/helpgen/install_custom.py
Pandinosaurus/pyquickhelper
326276f656cf88989e4d0fcd006ada0d3735bd9e
[ "MIT" ]
321
2015-06-14T21:34:28.000Z
2021-11-28T17:10:03.000Z
src/pyquickhelper/helpgen/install_custom.py
Pandinosaurus/pyquickhelper
326276f656cf88989e4d0fcd006ada0d3735bd9e
[ "MIT" ]
10
2015-06-20T01:35:00.000Z
2022-01-19T15:54:32.000Z
""" @file @brief Various function to install some application such as :epkg:`pandoc`. """ from __future__ import print_function import re import os import shutil from ..filehelper import download, read_url from ..filehelper.internet_helper import ReadUrlException from ..filehelper.compression_helper import unzip_files...
35.942857
101
0.573132
79836411be0321eef17b534a6816613688365a28
1,094
py
Python
src/tantalus_db/conscribo.py
thijsmie/tantalus
6e9777068f9c8ef7f74dc77f1ce4c44dbf682015
[ "MIT" ]
3
2017-09-13T12:21:41.000Z
2021-03-22T16:44:17.000Z
src/tantalus_db/conscribo.py
thijsmie/tantalus
6e9777068f9c8ef7f74dc77f1ce4c44dbf682015
[ "MIT" ]
12
2017-09-18T09:27:37.000Z
2021-12-16T09:46:36.000Z
src/tantalus_db/conscribo.py
thijsmie/tantalus
6e9777068f9c8ef7f74dc77f1ce4c44dbf682015
[ "MIT" ]
1
2017-10-20T15:18:01.000Z
2017-10-20T15:18:01.000Z
from .base import Base, db from sqlalchemy import Column, Text, Integer, Date, ForeignKey from sqlalchemy.orm import relationship import json class ConscriboConfig(Base): config = Column(Text, default="{}") @classmethod def get_config(cls): config = cls.query.one_or_none() if not config...
25.44186
85
0.646252
798364be49040ff39d5db06af0781009e7861387
2,455
py
Python
api/src/api/endpoints/receive_gift.py
whynft/nft-gift-button-backend
43fafb94a02bd431728d0c9382aea33e2523dd07
[ "MIT" ]
null
null
null
api/src/api/endpoints/receive_gift.py
whynft/nft-gift-button-backend
43fafb94a02bd431728d0c9382aea33e2523dd07
[ "MIT" ]
5
2022-01-04T17:33:11.000Z
2022-03-31T14:56:27.000Z
api/src/api/endpoints/receive_gift.py
whynft/nft-gift-button-backend
43fafb94a02bd431728d0c9382aea33e2523dd07
[ "MIT" ]
1
2022-01-07T07:12:18.000Z
2022-01-07T07:12:18.000Z
from fastapi import APIRouter, status from fastapi.responses import JSONResponse import schemas from config.misc import redis from utils.logger import get_app_logger from clients.evm import crypto_book from utils.redisdb import NftGiftRedisKeys from utils.security import verify_verification_code router = APIRouter() ...
37.19697
114
0.710794
798365116a58fdfac5e42eb3a565b14a56cbe7d2
998
py
Python
discord_typings/resources/webhook.py
Bluenix2/discord-typing
aaa3a86fac03149a985cd1b17ea249d568edc4b1
[ "MIT" ]
null
null
null
discord_typings/resources/webhook.py
Bluenix2/discord-typing
aaa3a86fac03149a985cd1b17ea249d568edc4b1
[ "MIT" ]
null
null
null
discord_typings/resources/webhook.py
Bluenix2/discord-typing
aaa3a86fac03149a985cd1b17ea249d568edc4b1
[ "MIT" ]
null
null
null
from __future__ import annotations from typing import TYPE_CHECKING, Optional from typing_extensions import Literal, NotRequired, TypedDict, final if TYPE_CHECKING: from ..shared import Snowflake from .channel import PartialChannelData from .guild import GuildData from .user import UserData __all__ ...
25.589744
88
0.762525
79836539e7151647c2fa7a263c49b899f349e8a5
4,706
py
Python
avionix_airflow/kubernetes/airflow/airflow_orchestrator.py
zbrookle/avionix_airflow
a9b4665ce7699bcee7252a3f10d588a57c1f32c4
[ "BSD-3-Clause" ]
5
2020-08-31T07:33:47.000Z
2022-01-19T09:03:09.000Z
avionix_airflow/kubernetes/airflow/airflow_orchestrator.py
zbrookle/avionix_airflow
a9b4665ce7699bcee7252a3f10d588a57c1f32c4
[ "BSD-3-Clause" ]
20
2020-07-28T23:39:22.000Z
2020-10-06T20:21:32.000Z
avionix_airflow/kubernetes/airflow/airflow_orchestrator.py
zbrookle/avionix_airflow
a9b4665ce7699bcee7252a3f10d588a57c1f32c4
[ "BSD-3-Clause" ]
1
2021-09-27T14:48:41.000Z
2021-09-27T14:48:41.000Z
from avionix.kube.core import Namespace from avionix.kube.meta import ObjectMeta from avionix_airflow.kubernetes.airflow.airflow_options import AirflowOptions from avionix_airflow.kubernetes.airflow.airflow_pods import AirflowDeployment from avionix_airflow.kubernetes.airflow.airflow_roles import AirflowPodRoleGroup f...
42.781818
87
0.669146
79836585e789eaba873e49d489a6998e86fc4572
2,398
py
Python
lib/operators_expr/technical.py
goosemayor/AutoMarketFeature
1ebfea18bd228dfbf09ec051e6b370880f3580ca
[ "MIT" ]
null
null
null
lib/operators_expr/technical.py
goosemayor/AutoMarketFeature
1ebfea18bd228dfbf09ec051e6b370880f3580ca
[ "MIT" ]
null
null
null
lib/operators_expr/technical.py
goosemayor/AutoMarketFeature
1ebfea18bd228dfbf09ec051e6b370880f3580ca
[ "MIT" ]
null
null
null
# coding=utf-8 from .. import prob_engine pe = prob_engine.ProbEngine() def delay(x): """ [Definition] 序列x中前period天的价格 [Category] 技术指标 delay() value of x d days ago """ return 'delay(%s,%s)' %(x, pe.gen_param('delay', 'period')) def delta(x): """ [Definition] 间隔period...
19.031746
84
0.506255
7983659a3d8391da1022e861203a26bdbfa512d9
226
py
Python
1a/LU with pivot/swapRowsV2.py
sje30/catam-julia
8778e5d08888c6d98c41261d9640d2e2c21f4629
[ "MIT" ]
8
2021-07-13T12:55:37.000Z
2022-03-20T14:40:23.000Z
1a/LU with pivot/swapRowsV2.py
sje30/catam-julia
8778e5d08888c6d98c41261d9640d2e2c21f4629
[ "MIT" ]
17
2021-07-11T21:35:47.000Z
2021-08-25T12:10:58.000Z
1a/LU with pivot/swapRowsV2.py
sje30/catam-julia
8778e5d08888c6d98c41261d9640d2e2c21f4629
[ "MIT" ]
1
2021-10-13T21:00:47.000Z
2021-10-13T21:00:47.000Z
# we write a more efficient function that swaps rows u and v of some matrix A def swapRowsV2(A, u, v): # we directly swap rows u and v of A without copying for i, val in enumerate(A[u]): A[u][i] = A[v][i] A[v][i] = val
28.25
77
0.654867
798366fa90183b0242686791e3651ffb07556a3b
3,309
py
Python
Chapter04/01_cartpole.py
castorfou/drl_handson
4f5a07611c483ad20022afd37961559131c5bf31
[ "MIT" ]
1
2020-12-13T10:07:38.000Z
2020-12-13T10:07:38.000Z
Chapter04/01_cartpole.py
castorfou/drl_handson
4f5a07611c483ad20022afd37961559131c5bf31
[ "MIT" ]
null
null
null
Chapter04/01_cartpole.py
castorfou/drl_handson
4f5a07611c483ad20022afd37961559131c5bf31
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import gym from collections import namedtuple import numpy as np from tensorboardX import SummaryWriter import torch import torch.nn as nn import torch.optim as optim HIDDEN_SIZE = 128 BATCH_SIZE = 16 PERCENTILE = 70 class Net(nn.Module): def __init__(self, obs_size, hidden_size, n_actio...
31.216981
78
0.644908
798367fc8034d16f2dc908bc2af7366fce771214
40,945
py
Python
tests/puzzle/test_solver.py
zymergen-luke/poetry
69a6bbe90630b4f1920dc6677771f92f05f564ac
[ "MIT" ]
null
null
null
tests/puzzle/test_solver.py
zymergen-luke/poetry
69a6bbe90630b4f1920dc6677771f92f05f564ac
[ "MIT" ]
null
null
null
tests/puzzle/test_solver.py
zymergen-luke/poetry
69a6bbe90630b4f1920dc6677771f92f05f564ac
[ "MIT" ]
null
null
null
import pytest from cleo.outputs.null_output import NullOutput from cleo.styles import OutputStyle from poetry.packages import dependency_from_pep_508 from poetry.packages import ProjectPackage from poetry.repositories.installed_repository import InstalledRepository from poetry.repositories.pool import Pool from poetr...
27.461435
109
0.607889
798368144af5b55f2e7da8903d25bdf1b813a0d0
7,924
py
Python
plugins/filters.py
vihangapahasara/Auto-Filter-Bot-V2
6b1472ba9c39dfb62705dc4e2905d3a4eb81c185
[ "MIT" ]
null
null
null
plugins/filters.py
vihangapahasara/Auto-Filter-Bot-V2
6b1472ba9c39dfb62705dc4e2905d3a4eb81c185
[ "MIT" ]
null
null
null
plugins/filters.py
vihangapahasara/Auto-Filter-Bot-V2
6b1472ba9c39dfb62705dc4e2905d3a4eb81c185
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # @trojanzhex import re import pyrogram from pyrogram import ( filters, Client ) from pyrogram.types import ( InlineKeyboardButton, InlineKeyboardMarkup, Message, CallbackQuery ) from bot import Bot from script import script from database.mdb...
33.719149
179
0.539626
79836c32be4a4ce8cb93dcb5102e8c13572fcaf9
248
py
Python
scripts/get-dashboard-data.py
udit-saxena/sumologic-python-sdk
4731badc675226efd75fd996a8f93fa8f51e041f
[ "Apache-2.0" ]
null
null
null
scripts/get-dashboard-data.py
udit-saxena/sumologic-python-sdk
4731badc675226efd75fd996a8f93fa8f51e041f
[ "Apache-2.0" ]
null
null
null
scripts/get-dashboard-data.py
udit-saxena/sumologic-python-sdk
4731badc675226efd75fd996a8f93fa8f51e041f
[ "Apache-2.0" ]
null
null
null
# Get all dashboard data # # python get-dashboard-data.py <accessId> <accessKey> import sys from sumologic import SumoLogic args = sys.argv sumo = SumoLogic(args[1], args[2], args[3]) ds = sumo.dashboards(True) print ds #for d in ds: # print d
15.5
53
0.71371
79836c394edcfd64282d9967ae620c8525064760
1,144
py
Python
LeetCode/Template/DisjointUnion.py
thehanemperor/LeetCode
8d120162657a1e29c3e821b51ac4121300fc7a12
[ "MIT" ]
null
null
null
LeetCode/Template/DisjointUnion.py
thehanemperor/LeetCode
8d120162657a1e29c3e821b51ac4121300fc7a12
[ "MIT" ]
null
null
null
LeetCode/Template/DisjointUnion.py
thehanemperor/LeetCode
8d120162657a1e29c3e821b51ac4121300fc7a12
[ "MIT" ]
null
null
null
class DisjointSetUnion(): def __init__(self,size): # initially, each nod is an independent component self.parent = [i for i in range(size+1)] # keep the size of each component self.size = [1]* (size+1) def find(self,x): if self.parent[x] != x: self.parent[x] ...
23.346939
57
0.559441
79836d938d077f9ed2ab86fd140347063a4e8fc0
8,892
py
Python
base/vocab.py
thu-spmi/semi-EBM
393e3ea3566dd60c48872a5c573a335e8e802707
[ "Apache-2.0" ]
2
2021-09-18T14:21:24.000Z
2021-12-20T03:39:13.000Z
base/vocab.py
thu-spmi/semi-EBM
393e3ea3566dd60c48872a5c573a335e8e802707
[ "Apache-2.0" ]
null
null
null
base/vocab.py
thu-spmi/semi-EBM
393e3ea3566dd60c48872a5c573a335e8e802707
[ "Apache-2.0" ]
1
2021-09-12T07:02:23.000Z
2021-09-12T07:02:23.000Z
import os import json import numpy as np class Vocab(object): def __init__(self): self.word_to_id = dict() self.count = list() self.words = list() self.to_lower = False # add character information self.chars = list() # ['a', 'b', 'c', 'd', ...] ...
36.743802
109
0.501012
79836e9976e4005c91494b5e7ddaba4af5f6e00f
126
py
Python
sendinblue/utils.py
apihackers/wagtail-sendinblue
c52a3ab22c1cb6a919326b9b20bb8bb69e95f7bc
[ "MIT" ]
1
2018-02-01T16:39:08.000Z
2018-02-01T16:39:08.000Z
sendinblue/utils.py
apihackers/wagtail-sendinblue
c52a3ab22c1cb6a919326b9b20bb8bb69e95f7bc
[ "MIT" ]
null
null
null
sendinblue/utils.py
apihackers/wagtail-sendinblue
c52a3ab22c1cb6a919326b9b20bb8bb69e95f7bc
[ "MIT" ]
null
null
null
from django.utils.functional import lazy from django.utils.safestring import mark_safe mark_safe_lazy = lazy(mark_safe, str)
25.2
45
0.833333
79836f80179fe53f2bea2cf702bc33c343a7e63d
38,706
py
Python
tensorflow/python/keras/engine/distributed_training_utils.py
ranbir/tensorflow
46924b2f7bc4262b2c4b36841d393741113594ca
[ "Apache-2.0" ]
36
2016-12-17T15:25:25.000Z
2022-01-29T21:50:53.000Z
tensorflow/python/keras/engine/distributed_training_utils.py
ranbir/tensorflow
46924b2f7bc4262b2c4b36841d393741113594ca
[ "Apache-2.0" ]
30
2016-10-04T15:38:08.000Z
2020-07-16T12:09:33.000Z
tensorflow/python/keras/engine/distributed_training_utils.py
ranbir/tensorflow
46924b2f7bc4262b2c4b36841d393741113594ca
[ "Apache-2.0" ]
36
2017-07-27T21:12:40.000Z
2022-02-03T16:45:56.000Z
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
41.089172
94
0.720508
79837090cde1764158bdc4c584ed20627e73ef45
5,222
py
Python
test/functional/rpc_preciousblock.py
Raptor3um/Raptoreum-testnet
34cc879231adeac9df8c740603bd250a9f6e35c3
[ "MIT" ]
3
2021-03-28T13:34:22.000Z
2021-12-29T15:13:51.000Z
test/functional/rpc_preciousblock.py
Raptor3um/Raptoreum-testnet
34cc879231adeac9df8c740603bd250a9f6e35c3
[ "MIT" ]
null
null
null
test/functional/rpc_preciousblock.py
Raptor3um/Raptoreum-testnet
34cc879231adeac9df8c740603bd250a9f6e35c3
[ "MIT" ]
3
2021-11-03T18:41:26.000Z
2022-01-11T20:08:24.000Z
#!/usr/bin/env python3 # Copyright (c) 2015-2016 The Bitcoin Core developers # Copyright (c) 2017-2018 The Raptoreum Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the preciousblock RPC.""" from test_frame...
44.632479
127
0.669092
7983720026c10cb1ae5a22af95d200798fad338f
2,479
py
Python
Models/BiofilmLineage.py
pakpoomton/CellmodellerShadow
c3fdc0aa41ca2cbd56a3eae168e27312a5c0c185
[ "BSD-3-Clause" ]
null
null
null
Models/BiofilmLineage.py
pakpoomton/CellmodellerShadow
c3fdc0aa41ca2cbd56a3eae168e27312a5c0c185
[ "BSD-3-Clause" ]
null
null
null
Models/BiofilmLineage.py
pakpoomton/CellmodellerShadow
c3fdc0aa41ca2cbd56a3eae168e27312a5c0c185
[ "BSD-3-Clause" ]
null
null
null
import random from CellModeller.Regulation.ModuleRegulator import ModuleRegulator from CellModeller.Biophysics.BacterialModels.CLBacterium import CLBacterium from CellModeller.GUI import Renderers import numpy import math rodlen = 3.5 max_cells = 400000 #cell_colors = {0:[0.0, 1.0, 0.0], # 1:[0.0, 0.0...
30.231707
142
0.638161
798372f12a0a5be6f1da61e9703f536a8135af70
9,547
py
Python
charts.py
sebsm/Python_PySimpleGUI
d6e8902497cd2986f8d9bce8d285763954fcd01c
[ "MIT" ]
null
null
null
charts.py
sebsm/Python_PySimpleGUI
d6e8902497cd2986f8d9bce8d285763954fcd01c
[ "MIT" ]
null
null
null
charts.py
sebsm/Python_PySimpleGUI
d6e8902497cd2986f8d9bce8d285763954fcd01c
[ "MIT" ]
null
null
null
from tkinter.constants import Y import PySimpleGUI as sg import numpy as np """ Embedding the Matplotlib toolbar into your application """ # ------------------------------- This is to include a matplotlib figure in a Tkinter canvas import matplotlib.pyplot as plt import matplotlib.ticker as tck from matplotlib.bac...
39.288066
171
0.528857
79837342c267b5d1aedf6dc73a0cf7be88bceaf3
409
py
Python
fileshackproject/wsgi.py
peterkuma/fileshackproject
ac8a5b4ae943f28c8a34d7795cf5fee5b23e2db0
[ "MIT" ]
16
2015-01-21T16:04:59.000Z
2022-02-09T11:09:21.000Z
fileshackproject/wsgi.py
peterkuma/fileshackproject
ac8a5b4ae943f28c8a34d7795cf5fee5b23e2db0
[ "MIT" ]
1
2021-08-03T10:47:47.000Z
2021-08-03T10:47:47.000Z
fileshackproject/wsgi.py
peterkuma/fileshackproject
ac8a5b4ae943f28c8a34d7795cf5fee5b23e2db0
[ "MIT" ]
3
2015-08-06T18:31:44.000Z
2018-01-08T20:54:29.000Z
""" WSGI config for fileshackproject project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJA...
24.058824
78
0.794621
79837394fc3555b203bd8455f0496b567e1fd746
2,854
py
Python
2020-11/src/201313898.py
ivanLM2310/CoronavirusML_ant
e7da9a9ea0417ef3dbe42609958216b4d9eb82c5
[ "Apache-2.0" ]
2
2021-12-26T03:21:05.000Z
2022-01-02T15:03:59.000Z
2020-11/src/201313898.py
ivanLM2310/CoronavirusML_ant
e7da9a9ea0417ef3dbe42609958216b4d9eb82c5
[ "Apache-2.0" ]
41
2020-11-10T02:52:15.000Z
2020-11-16T07:32:26.000Z
2020-11/src/201313898.py
ivanLM2310/CoronavirusML_ant
e7da9a9ea0417ef3dbe42609958216b4d9eb82c5
[ "Apache-2.0" ]
50
2020-11-10T02:08:31.000Z
2020-11-16T06:33:34.000Z
""" Copyright 2020 Eduardo Javier Hevia Calderon Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wr...
46.032258
151
0.778907
798373ad314c7efeb93fb6b67c6640108a06b28b
57,268
py
Python
run_classifier.py
h4ste/oscar
772aa5dba86f1987eb6992a3349b9a16cab92dd4
[ "Apache-2.0" ]
null
null
null
run_classifier.py
h4ste/oscar
772aa5dba86f1987eb6992a3349b9a16cab92dd4
[ "Apache-2.0" ]
null
null
null
run_classifier.py
h4ste/oscar
772aa5dba86f1987eb6992a3349b9a16cab92dd4
[ "Apache-2.0" ]
1
2019-04-30T17:10:41.000Z
2019-04-30T17:10:41.000Z
# coding=utf-8 # Copyright 2018 The Google AI Language Team 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 ...
40.615603
129
0.626371
79837417a5aad75e26569425c32378fb2a01f95f
3,954
py
Python
alipay/aop/api/request/AlipaySecuritySssssssQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/request/AlipaySecuritySssssssQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/request/AlipaySecuritySssssssQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipaySecuritySssssssQueryModel import AlipaySecuritySssssssQueryModel class AlipaySecuritySssssssQueryRequest(object): def __i...
27.268966
148
0.643399
7983751a2d60a837ce87fbdaa964fa0f5c97dd9d
8,766
py
Python
VibroSim_Simulator/read_comsol_probe_txt.py
VibroSim/VibroSim_Simulator
a12dacd7d8fe47074a17d3ae74420786faaf3016
[ "MIT" ]
null
null
null
VibroSim_Simulator/read_comsol_probe_txt.py
VibroSim/VibroSim_Simulator
a12dacd7d8fe47074a17d3ae74420786faaf3016
[ "MIT" ]
null
null
null
VibroSim_Simulator/read_comsol_probe_txt.py
VibroSim/VibroSim_Simulator
a12dacd7d8fe47074a17d3ae74420786faaf3016
[ "MIT" ]
null
null
null
import collections import numpy as np def read(filename): fh=open(filename,"r") metadata=collections.OrderedDict() fieldheaderdata = collections.OrderedDict() fieldrowdata = [] rownum=0 lines=[] line=fh.readline() while line != "": lines.append(line) line=fh.readline(...
41.742857
164
0.492243
798376f0b00b584eaeb0ebe0f3573751f11c8c91
1,533
py
Python
interp_cubic_spline_3d.py
prisae/tmp-share
c09713f6860106cdf203b0644077ed276a9412ca
[ "MIT" ]
9
2018-08-06T18:03:27.000Z
2019-05-10T16:51:10.000Z
interp_cubic_spline_3d.py
prisae/tmp-share
c09713f6860106cdf203b0644077ed276a9412ca
[ "MIT" ]
null
null
null
interp_cubic_spline_3d.py
prisae/tmp-share
c09713f6860106cdf203b0644077ed276a9412ca
[ "MIT" ]
4
2018-09-27T13:53:18.000Z
2020-02-13T07:14:28.000Z
import numpy as np from scipy import interpolate, ndimage def interp_cubic_spline_3d(points, values, xi): """3D cubic spline interpolation. Zeroes are returned for interpolated values requested outside of the domain of the input data. """ # Replicate the same expansion of xi as used in # Regu...
38.325
79
0.656882
79837768598034f50748b7fbe53443720dcbbe37
1,517
py
Python
src/consumer/postgresClient.py
jaymd96/Psyco-Pikachu
8733c1d27ed8b279fe798d3c0cf9a05cd4629aaa
[ "MIT" ]
null
null
null
src/consumer/postgresClient.py
jaymd96/Psyco-Pikachu
8733c1d27ed8b279fe798d3c0cf9a05cd4629aaa
[ "MIT" ]
null
null
null
src/consumer/postgresClient.py
jaymd96/Psyco-Pikachu
8733c1d27ed8b279fe798d3c0cf9a05cd4629aaa
[ "MIT" ]
null
null
null
import psycopg2 import select from src.connection_recovery import Connector, reconnect from tenacity import retry, retry_if_exception_type from src.log.LogMeta import LogMeta class PostgresClient(Connector, metaclass=LogMeta): def __init__(self, conn: dict): self._connection_params: dict = conn...
32.276596
93
0.602505
798378bd978708ae47eaeef3b3692c2878bbfd19
3,439
py
Python
twstock/realtime.py
imidya/twstock
e4dc39d3952f79814b93ecd83ccf47b4f0d87a5f
[ "MIT" ]
1
2021-03-18T07:50:45.000Z
2021-03-18T07:50:45.000Z
twstock/realtime.py
imidya/twstock
e4dc39d3952f79814b93ecd83ccf47b4f0d87a5f
[ "MIT" ]
null
null
null
twstock/realtime.py
imidya/twstock
e4dc39d3952f79814b93ecd83ccf47b4f0d87a5f
[ "MIT" ]
1
2018-09-23T06:05:29.000Z
2018-09-23T06:05:29.000Z
# -*- coding: utf-8 -*- import datetime import json import time import requests import twstock import sys SESSION_URL = 'http://mis.twse.com.tw/stock/index.jsp' STOCKINFO_URL = 'http://mis.twse.com.tw/stock/api/getStockInfo.jsp?ex_ch={stock_id}&_={time}' # Mock data mock = False def _format_stock_info(data) -> di...
28.188525
93
0.589125
798378c7b2c62547cf0f540356370466c212f5b2
7,829
py
Python
config/settings/production.py
tr00st/gameye_database_viewer
ae37a4849aeffba9013613a4e5fede93ec1ab29e
[ "MIT" ]
null
null
null
config/settings/production.py
tr00st/gameye_database_viewer
ae37a4849aeffba9013613a4e5fede93ec1ab29e
[ "MIT" ]
5
2021-06-08T19:13:10.000Z
2022-03-11T23:26:44.000Z
config/settings/production.py
tr00st/gameye_database_viewer
ae37a4849aeffba9013613a4e5fede93ec1ab29e
[ "MIT" ]
null
null
null
""" Production settings for GAMEYE Database Viewer project. - Use WhiteNoise for serving static files - Use Amazon's S3 for storing uploaded media - Use mailgun to send emails - Use Redis for cache - Use sentry for error logging """ import logging from .base import * # noqa # SECRET CONFIGURATION # ----------...
35.265766
117
0.621791
798379d85cf645a424df9040ff5054127154b1fb
1,967
py
Python
data/datasets/partial_iLIDS.py
huangzongheng/NAMA
e9bc5b9ca0c1dd5fff2f0613fdaac9fc5b038152
[ "MIT" ]
null
null
null
data/datasets/partial_iLIDS.py
huangzongheng/NAMA
e9bc5b9ca0c1dd5fff2f0613fdaac9fc5b038152
[ "MIT" ]
null
null
null
data/datasets/partial_iLIDS.py
huangzongheng/NAMA
e9bc5b9ca0c1dd5fff2f0613fdaac9fc5b038152
[ "MIT" ]
null
null
null
from __future__ import print_function, absolute_import import os.path as osp import numpy as np import pdb from glob import glob import re class Partial_iLIDS(object): def __init__(self, root): self.images_dir = osp.join(root, 'Partial_iLIDS') self.query_path = 'Probe' self.gallery_p...
35.763636
93
0.558719
79837a49bdf929e5e506f1970ba7485e28fb93d6
198
py
Python
bird_view/models/factory.py
zwc662/SequentialAttack
677b19c51ea76d794939ee126fccd75ffa0e6fe6
[ "MIT" ]
116
2019-10-26T22:49:42.000Z
2020-11-26T08:59:42.000Z
bird_view/models/factory.py
zwc662/SequentialAttack
677b19c51ea76d794939ee126fccd75ffa0e6fe6
[ "MIT" ]
33
2019-11-16T00:49:32.000Z
2020-11-26T08:59:28.000Z
bird_view/models/factory.py
zwc662/SequentialAttack
677b19c51ea76d794939ee126fccd75ffa0e6fe6
[ "MIT" ]
42
2019-11-02T09:31:04.000Z
2020-11-05T08:51:20.000Z
def get_model(backbone, n_step=5, ss_loss=True): if ss_loss: return BirdViewPolicyModelSS(backbone, n_step=n_step) else: return BirdViewPolicyModel(backbone, n_step=n_step)
28.285714
61
0.722222
79837a98c209fc683f974c8baea8ec4efe6bf00e
483
py
Python
main.py
anshul3485raj/LIBRARY-MANAGEMENT
74c1ddd016988d9a479165d6edb70159bec710fb
[ "MIT" ]
null
null
null
main.py
anshul3485raj/LIBRARY-MANAGEMENT
74c1ddd016988d9a479165d6edb70159bec710fb
[ "MIT" ]
null
null
null
main.py
anshul3485raj/LIBRARY-MANAGEMENT
74c1ddd016988d9a479165d6edb70159bec710fb
[ "MIT" ]
null
null
null
#main start from here user can reg and login using button from tkinter import * import os t=Tk() t.geometry("150x150") title=Label(text="library management") msg=["pls login/ register","s","s","s","s"] tw=Label(text=msg[0]) title.pack() tw.pack() def login(): t.destroy() os.system('Login.py') def r...
23
58
0.648033
79837aab9998cefc86260555c5c87ea50cfb4aee
555
py
Python
technocrats/api/serializers.py
verenceLola/Technocrats
a039dc3ae431e04ab34121b37f2e249e2563662b
[ "MIT" ]
null
null
null
technocrats/api/serializers.py
verenceLola/Technocrats
a039dc3ae431e04ab34121b37f2e249e2563662b
[ "MIT" ]
8
2018-11-23T10:53:07.000Z
2022-01-06T08:36:53.000Z
technocrats/api/serializers.py
verenceLola/Technocrats
a039dc3ae431e04ab34121b37f2e249e2563662b
[ "MIT" ]
null
null
null
# api/serializers.py from rest_framework import serializers from .models import Bucketlist class BucketlistSerializer(serializers.ModelSerializer): """Serializer to map the model instance into json format.""" owner = serializers.ReadOnlyField(source='owner.username') # ADD THIS LINE class Meta: ...
32.647059
90
0.700901
79837b39a8035ab0f96f79f0c97e08f55df0ae19
53
py
Python
deeplog/environments/__init__.py
jairotunior/gym_suppy
71eb58c9e40723e9474d20b7439a50cedea3e085
[ "MIT" ]
null
null
null
deeplog/environments/__init__.py
jairotunior/gym_suppy
71eb58c9e40723e9474d20b7439a50cedea3e085
[ "MIT" ]
null
null
null
deeplog/environments/__init__.py
jairotunior/gym_suppy
71eb58c9e40723e9474d20b7439a50cedea3e085
[ "MIT" ]
null
null
null
from deeplog.environments.supply_env import SupplyEnv
53
53
0.90566
79837b7513f06c398867a1245231af4377c3854f
1,351
py
Python
vk_dev/exception.py
Rhinik/vk_bot
9b86de4331f8119140ec98e8ab6ee94f6af74e82
[ "MIT" ]
null
null
null
vk_dev/exception.py
Rhinik/vk_bot
9b86de4331f8119140ec98e8ab6ee94f6af74e82
[ "MIT" ]
null
null
null
vk_dev/exception.py
Rhinik/vk_bot
9b86de4331f8119140ec98e8ab6ee94f6af74e82
[ "MIT" ]
null
null
null
from textwrap import dedent class VkErr(Exception): """ Errors from response from vk """ lp_faileds = { 1: "The event history went out of date or was partially lost", 2: "The key’s active period expired", 3: "Information was lost", 4: "Invalid version number was passed"...
30.022222
79
0.520355
79837dd11b825801ca70d8c5293c9cb6bf680177
3,318
py
Python
rr/tests/test_serviceprovider_saml.py
UniversityofHelsinki/sp-registry
b1336b89788c076bf93f61b97b5469a99acd902c
[ "MIT" ]
null
null
null
rr/tests/test_serviceprovider_saml.py
UniversityofHelsinki/sp-registry
b1336b89788c076bf93f61b97b5469a99acd902c
[ "MIT" ]
1
2020-08-10T13:16:58.000Z
2020-08-18T06:30:20.000Z
rr/tests/test_serviceprovider_saml.py
UniversityofHelsinki/sp-registry
b1336b89788c076bf93f61b97b5469a99acd902c
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from django.test import RequestFactory, TestCase from django.urls import reverse from rr.models.serviceprovider import ServiceProvider class ServiceProviderSAMLTechnicalTestCase(TestCase): def setUp(self): self.factory = RequestFactory() self.user = Use...
57.206897
119
0.68686
79837eb3cce7a8c15c3daf9c9acc8d112387f5a4
3,225
py
Python
badges/models/batch.py
Siikakala/kompassi
14cdcd966ab689d762cc885e28b6d15465c216f0
[ "CC-BY-3.0" ]
null
null
null
badges/models/batch.py
Siikakala/kompassi
14cdcd966ab689d762cc885e28b6d15465c216f0
[ "CC-BY-3.0" ]
null
null
null
badges/models/batch.py
Siikakala/kompassi
14cdcd966ab689d762cc885e28b6d15465c216f0
[ "CC-BY-3.0" ]
null
null
null
# encoding: utf-8 from django.db import models, transaction from django.utils.timezone import now from django.utils.translation import ugettext_lazy as _ from six import text_type from core.utils import time_bool_property from .constants import BADGE_ELIGIBLE_FOR_BATCHING def contains_moon_runes(unicode_str): ...
31.617647
93
0.660155
79837ec6eb30a5b5d67896a58c10744bf5dc23d6
4,631
py
Python
morsecoder_node.py
TheFerty7/Python_MorseCoder
5900e2e5c7b4e46ee79febc0a08e370b910f900b
[ "MIT" ]
null
null
null
morsecoder_node.py
TheFerty7/Python_MorseCoder
5900e2e5c7b4e46ee79febc0a08e370b910f900b
[ "MIT" ]
null
null
null
morsecoder_node.py
TheFerty7/Python_MorseCoder
5900e2e5c7b4e46ee79febc0a08e370b910f900b
[ "MIT" ]
null
null
null
#Node tree solution, pretty slow but was fun to create. #If you have an idea of how to make this better in any way, please make a branch for it and let me know! #I want to see how other people would do this. import string class Node: def __init__(self, data): self.parent = None self.type = None ...
40.622807
105
0.608076
79837f4e9effe6b786ada2be9f7eae2bd0773c9e
3,086
py
Python
Python/Api With Python/Django Rest Framework/setup/settings.py
FelipeRamosOliveira/Portfolio
37bab38088ba105a8779258370c5008427bf22fb
[ "MIT" ]
3
2021-04-19T17:38:00.000Z
2021-12-09T17:20:40.000Z
Python/Api With Python/Django Rest Framework/setup/settings.py
FelipeRamosOliveira/Portfolio
37bab38088ba105a8779258370c5008427bf22fb
[ "MIT" ]
null
null
null
Python/Api With Python/Django Rest Framework/setup/settings.py
FelipeRamosOliveira/Portfolio
37bab38088ba105a8779258370c5008427bf22fb
[ "MIT" ]
1
2021-04-08T12:36:51.000Z
2021-04-08T12:36:51.000Z
""" Django settings for setup project. Generated by 'django-admin startproject' using Django 3.0.7. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import os # B...
24.887097
91
0.693778
79837f94595676581c972612e087b9fad1fc2de1
2,022
py
Python
tests/regressiontests/syndication/feeds.py
huicheese/Django-test3
ac11d2dce245b48392e52d1f4acfd5e7433b243e
[ "BSD-3-Clause" ]
2
2021-04-27T03:57:00.000Z
2021-06-18T09:39:58.000Z
tests/regressiontests/syndication/feeds.py
joetyson/django
c3699190186561d5c216b2a77ecbfc487d42a734
[ "BSD-3-Clause" ]
null
null
null
tests/regressiontests/syndication/feeds.py
joetyson/django
c3699190186561d5c216b2a77ecbfc487d42a734
[ "BSD-3-Clause" ]
2
2015-01-08T20:47:21.000Z
2020-09-15T01:01:48.000Z
from django.core.exceptions import ObjectDoesNotExist from django.contrib.syndication import feeds from django.utils.feedgenerator import Atom1Feed from django.utils import tzinfo class ComplexFeed(feeds.Feed): def get_object(self, bits): if len(bits) != 1: raise ObjectDoesNotExist retu...
30.636364
76
0.660732
7983808754a003bd64aad52cc88f398371004f75
6,700
py
Python
url_benchmark-main/agent/diayn_vcl.py
SmaleZ/vcl_diayn
b2c47a681675b405d2011bc4a43c3914f3af4ecc
[ "MIT" ]
null
null
null
url_benchmark-main/agent/diayn_vcl.py
SmaleZ/vcl_diayn
b2c47a681675b405d2011bc4a43c3914f3af4ecc
[ "MIT" ]
null
null
null
url_benchmark-main/agent/diayn_vcl.py
SmaleZ/vcl_diayn
b2c47a681675b405d2011bc4a43c3914f3af4ecc
[ "MIT" ]
null
null
null
import math from collections import OrderedDict import hydra import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from dm_env import specs import utils from agent.ddpg import DDPGAgent from discriminator.vcl_nn import DiscriminativeVCL from discriminator.discriminator_learn import ru...
33.5
122
0.626567
798380f3b131b716655bd212f29098ec063210ca
1,964
py
Python
src/uefi/BaseTools/Source/Python/Common/LongFilePathSupport.py
kkennett/oscore.dev
59e786f12f9af969211c95a9d2863b1767528341
[ "BSD-3-Clause" ]
6
2020-01-10T05:16:15.000Z
2022-01-06T17:41:58.000Z
src/uefi/BaseTools/Source/Python/Common/LongFilePathSupport.py
kkennett/oscore.dev
59e786f12f9af969211c95a9d2863b1767528341
[ "BSD-3-Clause" ]
null
null
null
src/uefi/BaseTools/Source/Python/Common/LongFilePathSupport.py
kkennett/oscore.dev
59e786f12f9af969211c95a9d2863b1767528341
[ "BSD-3-Clause" ]
3
2018-04-21T07:59:33.000Z
2018-04-23T02:06:01.000Z
## @file # Override built in function file.open to provide support for long file path # # Copyright (c) 2014 - 2015, Intel Corporation. All rights reserved.<BR> # This program and the accompanying materials # are licensed and made available under the terms and conditions of the BSD License # which accompanies this dist...
30.6875
92
0.698574
7983818761ebd169c94c9f24b3bf70988dcf9802
463
py
Python
server/camphoric/migrations/0017_registrationtype_invitation_email_subject.py
willfulbard/camphoric
32e30e88b97a905dbde00229a34f01cb05316e08
[ "MIT" ]
2
2020-09-25T01:20:14.000Z
2021-08-18T18:49:47.000Z
server/camphoric/migrations/0017_registrationtype_invitation_email_subject.py
camphoric/camphoric
31ad94d0da61cd649fe55b74adfb83196eef0011
[ "MIT" ]
57
2020-05-30T03:22:56.000Z
2022-03-07T01:52:11.000Z
server/camphoric/migrations/0017_registrationtype_invitation_email_subject.py
camphoric/camphoric
31ad94d0da61cd649fe55b74adfb83196eef0011
[ "MIT" ]
1
2020-01-24T04:30:07.000Z
2020-01-24T04:30:07.000Z
# Generated by Django 3.1.5 on 2021-01-18 01:46 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('camphoric', '0016_auto_20210117_0607'), ] operations = [ migrations.AddField( model_name='registrationtype', name='i...
23.15
63
0.62203
7983823b3cdf770a3c86d666eba52cc7de43379b
2,749
py
Python
dpfinder/searcher/statistics/ratio/ratio_cdf.py
barryZZJ/dp-finder
ddf8e3589110b4b35920b437d605b45dd56291da
[ "MIT" ]
15
2018-10-19T05:48:17.000Z
2022-02-14T20:34:16.000Z
dpfinder/searcher/statistics/ratio/ratio_cdf.py
barryZZJ/dp-finder
ddf8e3589110b4b35920b437d605b45dd56291da
[ "MIT" ]
1
2020-04-22T22:55:39.000Z
2020-04-22T22:55:39.000Z
dpfinder/searcher/statistics/ratio/ratio_cdf.py
barryZZJ/dp-finder
ddf8e3589110b4b35920b437d605b45dd56291da
[ "MIT" ]
9
2018-11-13T12:37:55.000Z
2021-11-22T11:11:52.000Z
# ==BEGIN LICENSE== # # MIT License # # Copyright (c) 2018 SRI Lab, ETH Zurich # # 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 right...
33.938272
87
0.75773
7983833f9171dcdeb1836d6c7e79e64c03165205
409
py
Python
pretix_mabel/migrations/0003_remove_ticketlimit_event.py
mabelticketing/pretix-mabel
794c9e54726713f19ef315c2807089f796f4dec0
[ "Apache-2.0" ]
null
null
null
pretix_mabel/migrations/0003_remove_ticketlimit_event.py
mabelticketing/pretix-mabel
794c9e54726713f19ef315c2807089f796f4dec0
[ "Apache-2.0" ]
1
2020-10-27T21:03:46.000Z
2020-10-27T21:03:46.000Z
pretix_mabel/migrations/0003_remove_ticketlimit_event.py
mabelticketing/pretix-mabel
794c9e54726713f19ef315c2807089f796f4dec0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.8 on 2018-01-09 16:11 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('pretix_mabel', '0002_mabelsettings_ticketlimit'), ] operations = [ migrations.Remov...
20.45
59
0.628362
798383caf17b90bd4d6eab1053c4b9c05f9dbb93
437
py
Python
search/models.py
WhiteHacker-cmd/flutter-django-search-api
8a38ddc7aed5831bc81eb7a8202c38ef6d90f847
[ "MIT" ]
null
null
null
search/models.py
WhiteHacker-cmd/flutter-django-search-api
8a38ddc7aed5831bc81eb7a8202c38ef6d90f847
[ "MIT" ]
null
null
null
search/models.py
WhiteHacker-cmd/flutter-django-search-api
8a38ddc7aed5831bc81eb7a8202c38ef6d90f847
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Category(models.Model): name = models.CharField(max_length=50) def __str__(self): return self.name class Food(models.Model): name = models.CharField(max_length=100) price = models.DecimalField(decimal_places=2, max_digits=4) ...
19.863636
68
0.709382
798383e2efcc25828e42aa7ca1555fd7e969ad4e
586
py
Python
vmraid/patches/v13_0/set_read_times.py
sowrisurya/vmraid
f833e00978019dad87af80b41279c0146c063ed5
[ "MIT" ]
null
null
null
vmraid/patches/v13_0/set_read_times.py
sowrisurya/vmraid
f833e00978019dad87af80b41279c0146c063ed5
[ "MIT" ]
null
null
null
vmraid/patches/v13_0/set_read_times.py
sowrisurya/vmraid
f833e00978019dad87af80b41279c0146c063ed5
[ "MIT" ]
null
null
null
import vmraid from vmraid.utils import strip_html_tags, markdown from math import ceil def execute(): vmraid.reload_doc("website", "doctype", "blog_post") for blog in vmraid.get_all("Blog Post"): blog = vmraid.get_doc("Blog Post", blog.name) vmraid.db.set_value("Blog Post", blog.name, "read_time", get_read_time...
32.555556
102
0.755973
7983845a4de36504511678adbd1609a2269f6a07
2,920
py
Python
satchmo/apps/payment/modules/cybersource/config.py
funwhilelost/satchmo
589a5d797533ea15dfde9af7f36e304092d22a94
[ "BSD-3-Clause" ]
null
null
null
satchmo/apps/payment/modules/cybersource/config.py
funwhilelost/satchmo
589a5d797533ea15dfde9af7f36e304092d22a94
[ "BSD-3-Clause" ]
null
null
null
satchmo/apps/payment/modules/cybersource/config.py
funwhilelost/satchmo
589a5d797533ea15dfde9af7f36e304092d22a94
[ "BSD-3-Clause" ]
null
null
null
from livesettings import * from django.utils.translation import ugettext_lazy as _ # this is so that the translation utility will pick up the string gettext = lambda s: s _strings = (gettext('CreditCard'), gettext('Credit Card')) PAYMENT_GROUP = ConfigurationGroup('PAYMENT_CYBERSOURCE', _('Cybersource.net Payment...
33.181818
113
0.638356
7983859f2cf2d9b7a1ea7ce77558538176152c98
735
py
Python
flatbuffers/python/quantra/enums/Ibor.py
joseprupi/quantragrpc
48192a1d490596115252c2ad33e2dee4e2b215b5
[ "BSD-3-Clause" ]
null
null
null
flatbuffers/python/quantra/enums/Ibor.py
joseprupi/quantragrpc
48192a1d490596115252c2ad33e2dee4e2b215b5
[ "BSD-3-Clause" ]
null
null
null
flatbuffers/python/quantra/enums/Ibor.py
joseprupi/quantragrpc
48192a1d490596115252c2ad33e2dee4e2b215b5
[ "BSD-3-Clause" ]
null
null
null
# automatically generated by the FlatBuffers compiler, do not modify # namespace: enums class Ibor(object): Euribor10M = 0 Euribor11M = 1 Euribor1M = 2 Euribor1Y = 3 Euribor2M = 4 Euribor2W = 5 Euribor365_10M = 6 Euribor365_11M = 7 Euribor365_1M = 8 Euribor365_1Y = 9 Euribo...
19.864865
68
0.639456
798386825d802254e2db6f7f6042fbe2077c7cd8
19,665
py
Python
pandas/core/internals/construction.py
Quansight/pandas
511fd46e68b12317eb925d4bf7405c2d33daba6c
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2020-04-06T16:50:48.000Z
2020-04-06T16:50:48.000Z
pandas/core/internals/construction.py
Quansight/pandas
511fd46e68b12317eb925d4bf7405c2d33daba6c
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/core/internals/construction.py
Quansight/pandas
511fd46e68b12317eb925d4bf7405c2d33daba6c
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2020-07-04T10:32:38.000Z
2020-07-04T10:32:38.000Z
""" Functions for preparing various inputs passed to the DataFrame or Series constructors before passing them to a BlockManager. """ from collections import abc import numpy as np import numpy.ma as ma from pandas._libs import lib from pandas.core.dtypes.cast import ( construct_1d_arraylike_from_scalar, mayb...
31.615756
88
0.600203
79838684d450dcfd1375e471f54618c8512829ca
1,218
py
Python
spinoffs/inference_gym/backends/tensorflow_integration_test.py
KonstantinKlepikov/probability
0cc6c5febf3b10ece5bb2b9877bd695137a420ea
[ "Apache-2.0" ]
1
2020-08-28T21:01:19.000Z
2020-08-28T21:01:19.000Z
spinoffs/inference_gym/backends/tensorflow_integration_test.py
KonstantinKlepikov/probability
0cc6c5febf3b10ece5bb2b9877bd695137a420ea
[ "Apache-2.0" ]
null
null
null
spinoffs/inference_gym/backends/tensorflow_integration_test.py
KonstantinKlepikov/probability
0cc6c5febf3b10ece5bb2b9877bd695137a420ea
[ "Apache-2.0" ]
null
null
null
# Lint as: python3 # Copyright 2020 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required ...
34.8
79
0.711823
798386b4e3a0e71614a90ce7fcaf64da46cd9716
4,394
py
Python
fairseq/criterions/trigram_anti_focal_loss.py
vyraun/long-tailed
e6c94a77e5dbf0036de82560f4661e7a9f612ac1
[ "MIT" ]
8
2020-10-14T12:50:42.000Z
2021-09-15T00:50:59.000Z
fairseq/criterions/trigram_anti_focal_loss.py
vyraun/long-tailed
e6c94a77e5dbf0036de82560f4661e7a9f612ac1
[ "MIT" ]
null
null
null
fairseq/criterions/trigram_anti_focal_loss.py
vyraun/long-tailed
e6c94a77e5dbf0036de82560f4661e7a9f612ac1
[ "MIT" ]
3
2020-11-02T04:21:16.000Z
2021-06-03T10:19:54.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import math import numpy as np from pdb import set_trace as bp import torch from torch.autograd import Variable import torch.nn.functional as...
35.152
99
0.621302
798386e52c7e9b87104b139fa71f5f8c2d6d4e73
52,366
py
Python
DatabaseControlWrapper_JE/venv/Lib/site-packages/setuptools/msvc.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
DatabaseControlWrapper_JE/venv/Lib/site-packages/setuptools/msvc.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
DatabaseControlWrapper_JE/venv/Lib/site-packages/setuptools/msvc.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
""" Improved support for Microsoft Visual C++ compilers. Known supported compilers: -------------------------- Microsoft Visual C++ 9.0: Microsoft Visual C++ Compiler for Python 2.7 (x86, amd64) Microsoft Windows SDK 6.1 (x86, x64, ia64) Microsoft Windows SDK 7.0 (x86, x64, ia64) Microsoft Visua...
28.99557
80
0.516136
798386f0581f4c2b6a1bbfacdb39437a3ddbf295
9,789
py
Python
test/test_message_channel_details.py
karixtech/karix-python
e9162d41249a639fdb35cba1263416d76d7b79c9
[ "MIT" ]
5
2019-02-27T07:22:40.000Z
2021-03-28T23:17:23.000Z
test/test_message_channel_details.py
sendbee/karix-python
0f2d72a6949dce5d5db5d3f48b37d3b6fc65a50e
[ "MIT" ]
2
2019-12-03T13:55:07.000Z
2020-03-31T03:44:40.000Z
test/test_message_channel_details.py
sendbee/karix-python
0f2d72a6949dce5d5db5d3f48b37d3b6fc65a50e
[ "MIT" ]
5
2019-04-22T17:33:29.000Z
2021-01-12T19:57:44.000Z
# coding: utf-8 """ karix api # Overview Karix API lets you interact with the Karix platform using an omnichannel messaging API. It also allows you to query your account, set up webhooks and buy phone numbers. # API and Clients Versioning Karix APIs are versioned using the format vX.Y where X is the major ...
238.756098
8,932
0.651446
798387183fb7eb542397a69e8327d9514a9fd55a
837
py
Python
pw32n/lru_dict.py
jjinux/pyweek32-neverending
718027bcc3e02a5c28afb7f7a37d0a32c0f85f86
[ "MIT" ]
null
null
null
pw32n/lru_dict.py
jjinux/pyweek32-neverending
718027bcc3e02a5c28afb7f7a37d0a32c0f85f86
[ "MIT" ]
null
null
null
pw32n/lru_dict.py
jjinux/pyweek32-neverending
718027bcc3e02a5c28afb7f7a37d0a32c0f85f86
[ "MIT" ]
null
null
null
# Forked from: https://www.geeksforgeeks.org/lru-cache-in-python-using-ordereddict/ from collections import OrderedDict from typing import TypeVar, Generic K = TypeVar("K") V = TypeVar("V") class LRUDict(Generic[K, V]): """This is basically a dict (without the full API) that only remembers a fixed number of th...
28.862069
103
0.639188
79838a3df5850b857e7199ca3e3a08ddce4b1f84
16,871
py
Python
src/datadog/azext_datadog/vendored_sdks/datadog/aio/operations/_single_sign_on_configurations_operations.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
207
2017-11-29T06:59:41.000Z
2022-03-31T10:00:53.000Z
src/datadog/azext_datadog/vendored_sdks/datadog/aio/operations/_single_sign_on_configurations_operations.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
4,061
2017-10-27T23:19:56.000Z
2022-03-31T23:18:30.000Z
src/datadog/azext_datadog/vendored_sdks/datadog/aio/operations/_single_sign_on_configurations_operations.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
802
2017-10-11T17:36:26.000Z
2022-03-31T22:24:32.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 ...
51.435976
232
0.678442
79838b51089580371f04382965fef50c8bb1a367
577
py
Python
qbo_joy_control/src/joy_ctrl.py
andreagavazzi/ag_qbo
5a653de3f17e6f166bdabcbb96e659845a91babf
[ "MIT" ]
null
null
null
qbo_joy_control/src/joy_ctrl.py
andreagavazzi/ag_qbo
5a653de3f17e6f166bdabcbb96e659845a91babf
[ "MIT" ]
null
null
null
qbo_joy_control/src/joy_ctrl.py
andreagavazzi/ag_qbo
5a653de3f17e6f166bdabcbb96e659845a91babf
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy from sensor_msgs.msg import JointState from sensor_msgs.msg import Joy def joy_cb(data): pub_head = rospy.Publisher('/cmd_joints', JointState) servo_command = JointState() servo_command.name = ['head_pan_joint', 'head_tilt_joint'] servo_command.position = [dat...
19.233333
62
0.686308
79838c119e9573552b5d144a07d67f2cf6d4ecd9
21,644
py
Python
hyperparameter_hunter/utils/optimization_utils.py
cclauss/hyperparameter_hunter
12fcbbd4ed71447f80e41f3538be824126b3e209
[ "MIT" ]
null
null
null
hyperparameter_hunter/utils/optimization_utils.py
cclauss/hyperparameter_hunter
12fcbbd4ed71447f80e41f3538be824126b3e209
[ "MIT" ]
null
null
null
hyperparameter_hunter/utils/optimization_utils.py
cclauss/hyperparameter_hunter
12fcbbd4ed71447f80e41f3538be824126b3e209
[ "MIT" ]
null
null
null
"""This module defines utility functions used to organize hyperparameter optimization, specifically the gathering of saved Experiment files in order to identify similar Experiments that can be used as learning material for the current OptimizationProtocol. Additionally, :class:`AskingOptimizer` is defined here, which i...
46.546237
139
0.684069
79838ead8eba0663a207a767db0f8b27dfedacc7
17,488
py
Python
coil/optimise.py
anon-coil/coil_gecco
6b8aa410a944e1db26c3acdc77af71b3b5d4fe74
[ "MIT" ]
2
2022-02-15T08:39:26.000Z
2022-02-17T11:51:06.000Z
coil/optimise.py
anon-coil/coil_gecco
6b8aa410a944e1db26c3acdc77af71b3b5d4fe74
[ "MIT" ]
null
null
null
coil/optimise.py
anon-coil/coil_gecco
6b8aa410a944e1db26c3acdc77af71b3b5d4fe74
[ "MIT" ]
null
null
null
# Loads VAE and optimise the objective function with constraints # Uses DEAP https://deap.readthedocs.io/en/master/index.html import importlib import random import numpy as np import pickle import argparse import os, time # for GA from deap import base from deap import creator from deap import tools from matplo...
33.760618
160
0.640725
79838f109f1f12e729b67672d1059c722c7d1c8e
102
py
Python
Execicio 046 aula 013.py
luizgarcindo/exercicio-curso-gustavo-guanabara
8235c942d4a8a5be86e4b27673a023f227dc2b47
[ "MIT" ]
null
null
null
Execicio 046 aula 013.py
luizgarcindo/exercicio-curso-gustavo-guanabara
8235c942d4a8a5be86e4b27673a023f227dc2b47
[ "MIT" ]
null
null
null
Execicio 046 aula 013.py
luizgarcindo/exercicio-curso-gustavo-guanabara
8235c942d4a8a5be86e4b27673a023f227dc2b47
[ "MIT" ]
null
null
null
from time import sleep for cont in range(10, -1, -1): print(cont) sleep(0.5) print('BUM!!!')
17
30
0.598039
7983920afa050ef1425674ee7757a667f4e5245d
5,256
py
Python
python/pynq/iop/grove_light.py
mirajtadhani/PYNQ
03095660487a783228b945ef05d46eec94801b0c
[ "BSD-3-Clause" ]
1
2019-01-01T15:38:34.000Z
2019-01-01T15:38:34.000Z
python/pynq/iop/grove_light.py
linbaiwpi/PYNQ
f690040ec4bd657686ee167e182a4f9b67f79a00
[ "BSD-3-Clause" ]
1
2017-07-26T17:48:59.000Z
2017-07-28T15:48:23.000Z
python/pynq/iop/grove_light.py
drichmond/PYNQ
03095660487a783228b945ef05d46eec94801b0c
[ "BSD-3-Clause" ]
1
2017-05-22T20:53:50.000Z
2017-05-22T20:53:50.000Z
# Copyright (c) 2016, Xilinx, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, # this list of ...
33.477707
79
0.61016
798392212b7ee4ac68958e305859df6d0da0cc63
109
py
Python
packages/syft/src/syft/core/node/device/__init__.py
vishalbelsare/PySyft
fb04404fcfbef82fad1fb47407b35a24e9afb599
[ "Apache-1.1" ]
8,428
2017-08-10T09:17:49.000Z
2022-03-31T08:20:14.000Z
packages/syft/src/syft/core/node/device/__init__.py
vishalbelsare/PySyft
fb04404fcfbef82fad1fb47407b35a24e9afb599
[ "Apache-1.1" ]
4,779
2017-08-09T23:19:00.000Z
2022-03-29T11:49:36.000Z
packages/syft/src/syft/core/node/device/__init__.py
vishalbelsare/PySyft
fb04404fcfbef82fad1fb47407b35a24e9afb599
[ "Apache-1.1" ]
2,307
2017-08-10T08:52:12.000Z
2022-03-30T05:36:07.000Z
# relative from .client import DeviceClient from .device import Device __all__ = ["DeviceClient", "Device"]
18.166667
36
0.761468
7983924cbb6cc56362a35071817fac58d9be46cc
4,801
py
Python
kubernetes/client/models/v1beta1_certificate_signing_request_status.py
jashandeep-sohi/kubernetes-python
e057f273069de445a2d5a250ac5fe37d79671f3b
[ "Apache-2.0" ]
1
2020-05-08T12:41:04.000Z
2020-05-08T12:41:04.000Z
kubernetes/client/models/v1beta1_certificate_signing_request_status.py
jashandeep-sohi/kubernetes-python
e057f273069de445a2d5a250ac5fe37d79671f3b
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/v1beta1_certificate_signing_request_status.py
jashandeep-sohi/kubernetes-python
e057f273069de445a2d5a250ac5fe37d79671f3b
[ "Apache-2.0" ]
2
2021-07-09T08:49:05.000Z
2021-08-03T18:08:36.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.10.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re...
30.579618
173
0.600083
7983930252bcdadd4d8446d584fc8858e5487810
1,805
py
Python
jvm/core/src/test/scripts/test_add_gpu.py
janifer112x/incubator-tvm
98c2096f4944bdbdbbb2b7b20ccd35c6c11dfbf6
[ "Apache-2.0" ]
22
2022-03-18T07:29:31.000Z
2022-03-23T14:54:32.000Z
jvm/core/src/test/scripts/test_add_gpu.py
janifer112x/incubator-tvm
98c2096f4944bdbdbbb2b7b20ccd35c6c11dfbf6
[ "Apache-2.0" ]
3
2020-04-20T15:37:55.000Z
2020-05-13T05:34:28.000Z
jvm/core/src/test/scripts/test_add_gpu.py
janifer112x/incubator-tvm
98c2096f4944bdbdbbb2b7b20ccd35c6c11dfbf6
[ "Apache-2.0" ]
5
2018-03-27T01:02:13.000Z
2020-12-29T00:32:31.000Z
# 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...
34.056604
87
0.683102
7983932d4a69c681bfe4d151b1ca88bc9294bb92
16,739
py
Python
oscar/apps/offer/migrations/0027_auto__del_field_conditionaloffer_applies_to_tax_exclusive_prices.py
LUKKIEN/django-oscar
e3a418e07910806b0605a591106eff2a51d27c83
[ "BSD-3-Clause" ]
null
null
null
oscar/apps/offer/migrations/0027_auto__del_field_conditionaloffer_applies_to_tax_exclusive_prices.py
LUKKIEN/django-oscar
e3a418e07910806b0605a591106eff2a51d27c83
[ "BSD-3-Clause" ]
null
null
null
oscar/apps/offer/migrations/0027_auto__del_field_conditionaloffer_applies_to_tax_exclusive_prices.py
LUKKIEN/django-oscar
e3a418e07910806b0605a591106eff2a51d27c83
[ "BSD-3-Clause" ]
null
null
null
# -*- 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): # Deleting field 'ConditionalOffer.applies_to_tax_exclusive_prices' db.delete_column(u'offer_conditionaloffe...
87.182292
224
0.57608
798393ec6045eb20e24664d0963730a3be21541d
51,274
py
Python
cinder/tests/unit/volume/drivers/netapp/dataontap/test_nfs_base.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/tests/unit/volume/drivers/netapp/dataontap/test_nfs_base.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/tests/unit/volume/drivers/netapp/dataontap/test_nfs_base.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2014 Andrew Kerr. All rights reserved. # Copyright (c) 2015 Tom Barron. All rights reserved. # 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 ...
43.86142
79
0.658053
7983944d4384d619ddcf50a1aab1b1535d867927
2,351
py
Python
crabageprediction/venv/Lib/site-packages/pandas/tests/tools/test_to_time.py
13rianlucero/CrabAgePrediction
92bc7fbe1040f49e820473e33cc3902a5a7177c7
[ "MIT" ]
3
2021-11-23T05:35:28.000Z
2022-02-10T08:05:53.000Z
crabageprediction/venv/Lib/site-packages/pandas/tests/tools/test_to_time.py
13rianlucero/CrabAgePrediction
92bc7fbe1040f49e820473e33cc3902a5a7177c7
[ "MIT" ]
5
2022-02-13T14:38:04.000Z
2022-02-15T00:13:07.000Z
crabageprediction/venv/Lib/site-packages/pandas/tests/tools/test_to_time.py
13rianlucero/CrabAgePrediction
92bc7fbe1040f49e820473e33cc3902a5a7177c7
[ "MIT" ]
4
2022-02-04T22:58:27.000Z
2022-02-14T19:29:18.000Z
from datetime import time import locale import numpy as np import pytest from pandas import Series import pandas._testing as tm from pandas.core.tools.datetimes import to_time as to_time_alias from pandas.core.tools.times import to_time fails_on_non_english = pytest.mark.xfail( locale.getlocale()[0] in ("zh_CN",...
31.346667
80
0.618886
798394b1a0c54cac4a8cf63111d38d414c2c1ee9
2,935
py
Python
zerver/management/commands/rate_limit.py
dehnert/zulip
f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5
[ "Apache-2.0" ]
1
2021-02-13T20:43:29.000Z
2021-02-13T20:43:29.000Z
zerver/management/commands/rate_limit.py
dehnert/zulip
f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5
[ "Apache-2.0" ]
9
2021-02-08T20:22:39.000Z
2022-02-11T03:40:19.000Z
zerver/management/commands/rate_limit.py
tobby2002/zulip
66e7c455759f9368bae16b9a604cf63f8e3524cd
[ "Apache-2.0" ]
1
2021-06-10T15:12:52.000Z
2021-06-10T15:12:52.000Z
from __future__ import absolute_import from __future__ import print_function from typing import Any from argparse import ArgumentParser from zerver.models import UserProfile, get_user_profile_by_email from zerver.lib.rate_limiter import block_user, unblock_user from django.core.management.base import BaseCommand fro...
41.928571
103
0.524702
79839612a8f9f69de2631cb9c51dfa287fe4d460
17,279
py
Python
ventiliser/GUI.py
belteki/ventiliser
5d7afa953e0314289806ebb627fddf9f4de01699
[ "MIT" ]
1
2022-02-18T10:19:57.000Z
2022-02-18T10:19:57.000Z
ventiliser/GUI.py
belteki/ventiliser
5d7afa953e0314289806ebb627fddf9f4de01699
[ "MIT" ]
null
null
null
ventiliser/GUI.py
belteki/ventiliser
5d7afa953e0314289806ebb627fddf9f4de01699
[ "MIT" ]
1
2021-03-21T12:20:44.000Z
2021-03-21T12:20:44.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun May 3 12:31:52 2020 @author: David Chong Tian Wei """ from PyQt5.QtWidgets import QMainWindow, QApplication, QVBoxLayout, QDialog, QDialogButtonBox, QAction, QTableView, QFileDialog, QLabel, QLineEdit, QHBoxLayout, QComboBox, QWidget from PyQt5.QtCore ...
47.081744
273
0.611146
798398cfc076fc5274153c3845cb85041fa2bb5a
3,942
py
Python
test/completion/generators.py
kirat-singh/jedi
65bc1c117b3175cb4d492484775c3fd7f207bc92
[ "MIT" ]
2
2021-06-30T11:14:35.000Z
2021-09-17T14:21:59.000Z
test/completion/generators.py
kirat-singh/jedi
65bc1c117b3175cb4d492484775c3fd7f207bc92
[ "MIT" ]
1
2020-03-26T07:27:50.000Z
2020-04-19T13:54:04.000Z
test/completion/generators.py
PeterJCLaw/jedi
070f191f550990c23220d7f209df076178307cf6
[ "MIT" ]
null
null
null
# ----------------- # yield statement # ----------------- def gen(): if random.choice([0, 1]): yield 1 else: yield "" gen_exe = gen() #? int() str() next(gen_exe) #? int() str() list next(gen_exe, list) def gen_ret(value): yield value #? int() next(gen_ret(1)) #? [] next(gen_ret()). #...
12.634615
77
0.462202
798399981b127a214cbe55045567b6f194c6fa37
2,853
py
Python
setup.py
AzaelCicero/clearml-agent
f7b4548de45edb4c9740df886abcd1b12b7b7da8
[ "Apache-2.0" ]
null
null
null
setup.py
AzaelCicero/clearml-agent
f7b4548de45edb4c9740df886abcd1b12b7b7da8
[ "Apache-2.0" ]
null
null
null
setup.py
AzaelCicero/clearml-agent
f7b4548de45edb4c9740df886abcd1b12b7b7da8
[ "Apache-2.0" ]
null
null
null
""" ClearML - Artificial Intelligence Version Control CLEARML-AGENT DevOps for machine/deep learning https://github.com/allegroai/clearml-agent """ import os.path # Always prefer setuptools over distutils from setuptools import setup, find_packages def read_text(filepath): with open(filepath, "r") as f: ...
33.964286
88
0.674378
79839b9026a9e44b5eab11f56cc498f88cf1dc6b
1,315
py
Python
app/auth/forms.py
melodytowett/pitches
b2ac89f91b2950a42d38d8376c5ec3960299b8fd
[ "Unlicense" ]
null
null
null
app/auth/forms.py
melodytowett/pitches
b2ac89f91b2950a42d38d8376c5ec3960299b8fd
[ "Unlicense" ]
null
null
null
app/auth/forms.py
melodytowett/pitches
b2ac89f91b2950a42d38d8376c5ec3960299b8fd
[ "Unlicense" ]
null
null
null
from flask_wtf import FlaskForm from importlib_metadata import email from wtforms import StringField,PasswordField,SubmitField,ValidationError,BooleanField from wtforms.validators import DataRequired,Email,EqualTo from ..models import User class RegistrationForm(FlaskForm): email = StringField('Your Email Address...
45.344828
127
0.742966
79839d303f6ca41335bbbb74a1ef9bde43496de9
298
py
Python
chatterbot_weather/__init__.py
rj74443/ChatBot
b8a2d552c6b1e33fa54f64867fa6642e95dd2578
[ "MIT" ]
null
null
null
chatterbot_weather/__init__.py
rj74443/ChatBot
b8a2d552c6b1e33fa54f64867fa6642e95dd2578
[ "MIT" ]
null
null
null
chatterbot_weather/__init__.py
rj74443/ChatBot
b8a2d552c6b1e33fa54f64867fa6642e95dd2578
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ A ChatterBot logic adapter that returns information about the weather. """ from .weather_adapter import WeatherLogicAdapter __author__ = 'Gunther Cox' __email__ = 'gunthercx@gmail.com' __version__ = '0.1.1' __url__ = 'https://github.com/gunthercox/chatterbot-weather'
24.833333
70
0.744966