hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
d5ba24034be76dafcedc1f76b77d6d4749e322d2
13,160
py
Python
net.py
SeeU1119/BeautyGAN_pytorch
b19fb0ade9d951116464f20e4fbab3015d5fffdf
[ "MIT" ]
176
2019-08-19T09:20:25.000Z
2022-03-31T19:13:58.000Z
net.py
timemao/BeautyGAN_pytorch
b19fb0ade9d951116464f20e4fbab3015d5fffdf
[ "MIT" ]
14
2019-10-18T04:52:28.000Z
2022-03-06T20:23:48.000Z
net.py
timemao/BeautyGAN_pytorch
b19fb0ade9d951116464f20e4fbab3015d5fffdf
[ "MIT" ]
38
2019-09-25T10:00:15.000Z
2021-12-03T08:03:35.000Z
import torch import torch.nn as nn import torch.nn.functional as F from ops.spectral_norm import spectral_norm as SpectralNorm # Defines the GAN loss which uses either LSGAN or the regular GAN. # When LSGAN is used, it is basically same as MSELoss, # but it abstracts away the need to create the target label tensor # ...
44.761905
116
0.628419
d5ba3281acd2644a6e8d38e9f3d53e628bf2ea06
2,149
py
Python
qiskit_experiments/calibration_management/control_channel_map.py
mriedem/qiskit-experiments
b40cb9887061136e26bffd62ee07d5afe79af2b0
[ "Apache-2.0" ]
1
2022-03-17T05:27:28.000Z
2022-03-17T05:27:28.000Z
qiskit_experiments/calibration_management/control_channel_map.py
dongcc/qiskit-experiments
894dcf41ac69ace9e6a0a3c4800d4b6994ac3b5a
[ "Apache-2.0" ]
null
null
null
qiskit_experiments/calibration_management/control_channel_map.py
dongcc/qiskit-experiments
894dcf41ac69ace9e6a0a3c4800d4b6994ac3b5a
[ "Apache-2.0" ]
null
null
null
# This code is part of Qiskit. # # (C) Copyright IBM 2022. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
34.111111
99
0.652396
d5ba3b3642e651dd760a628bdc82e8a5a2b84986
3,619
py
Python
armi/materials/thoriumOxide.py
bsculac/armi
22399244a88e67fc09996981081f7d5aab7032b4
[ "Apache-2.0" ]
null
null
null
armi/materials/thoriumOxide.py
bsculac/armi
22399244a88e67fc09996981081f7d5aab7032b4
[ "Apache-2.0" ]
null
null
null
armi/materials/thoriumOxide.py
bsculac/armi
22399244a88e67fc09996981081f7d5aab7032b4
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 TerraPower, 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 writi...
32.026549
105
0.608179
d5ba609362f4196d0df7d6d525f568d19ba2e313
666
py
Python
angalabiri/users/context_processors.py
dark-codr/ebiangala
0af3de29b2afa71df3e138cd16ecddc69fbd597d
[ "MIT" ]
1
2021-03-25T14:06:23.000Z
2021-03-25T14:06:23.000Z
angalabiri/users/context_processors.py
dark-codr/ebiangala
0af3de29b2afa71df3e138cd16ecddc69fbd597d
[ "MIT" ]
5
2021-09-08T03:08:46.000Z
2022-03-12T00:56:35.000Z
angalabiri/users/context_processors.py
me-edavids/ebiangala
0af3de29b2afa71df3e138cd16ecddc69fbd597d
[ "MIT" ]
null
null
null
from django.shortcuts import get_object_or_404, redirect, render from django.db.models import Count from .models import User def all_citizen(request): return { "all_citizen": User.objects.all().order_by("-id").count(), } def all_chiefs(request): return { "all_chiefs": User.objects.filter...
25.615385
106
0.681682
d5ba837c3979957485608d63e49648cc5acf0740
2,237
py
Python
nova/tests/unit/virt/libvirt/fake_imagebackend.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/virt/libvirt/fake_imagebackend.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/virt/libvirt/fake_imagebackend.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
1
2020-03-01T17:04:57.000Z
2020-03-01T17:04:57.000Z
# Copyright 2012 Grid Dynamics # 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...
34.953125
78
0.613321
d5ba97b02b1c30635b9be3d05d8332af5ad50021
9,709
py
Python
libapparmor/utils/pyronia/rule/signal.py
pyronia-sys/libpyronia
02ccf1d832754f771d1f9a60e5e91819ec878757
[ "Apache-2.0" ]
null
null
null
libapparmor/utils/pyronia/rule/signal.py
pyronia-sys/libpyronia
02ccf1d832754f771d1f9a60e5e91819ec878757
[ "Apache-2.0" ]
2
2020-02-05T01:26:55.000Z
2020-02-05T01:31:32.000Z
libapparmor/utils/pyronia/rule/signal.py
pyronia-sys/libpyronia
02ccf1d832754f771d1f9a60e5e91819ec878757
[ "Apache-2.0" ]
1
2021-12-05T19:53:32.000Z
2021-12-05T19:53:32.000Z
# ---------------------------------------------------------------------- # Copyright (C) 2015 Christian Boltz <apparmor@cboltz.de> # # This program is free software; you can redistribute it and/or # modify it under the terms of version 2 of the GNU General Public # License as published by the Free Software ...
41.139831
148
0.576372
d5baaa31156e5461c94f257e1b6c9aabd401a8c4
15,462
py
Python
app/services/client.py
Simple2B/cortex-backend
9cf6802b0eff9254875bcbe553517500ccfc9082
[ "MIT" ]
1
2021-10-17T13:28:51.000Z
2021-10-17T13:28:51.000Z
app/services/client.py
Simple2B/cortex-backend
9cf6802b0eff9254875bcbe553517500ccfc9082
[ "MIT" ]
null
null
null
app/services/client.py
Simple2B/cortex-backend
9cf6802b0eff9254875bcbe553517500ccfc9082
[ "MIT" ]
null
null
null
import datetime import re from fastapi import HTTPException, status from sqlalchemy.sql.elements import and_ from app.models.test import Test from app.schemas import Client, ClientInfo, ClientInTake, Doctor from app.models import ( Client as ClientDB, Condition, ClientCondition, Disease, ClientDis...
36.041958
88
0.569849
d5bacb2748713ea20418d78a9f1ac4dd3d44206c
6,337
py
Python
experiments/danieljing/val/gan_launcher.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/danieljing/val/gan_launcher.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/danieljing/val/gan_launcher.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
import numpy as np from torch.utils import data from rlkit.torch.grill.common import * def train_gan(variant, return_data = False): from rlkit.torch.gan.dcgan import Generator, Discriminator from rlkit.torch.gan.dcgan_trainer import DCGANTrainer from rlkit.torch.gan.bigan import Generator, Encoder, Discri...
46.595588
147
0.637526
d5badf8c423179a390f02c32b41fe35aa81b449b
32,399
py
Python
google/cloud/devtools/cloudbuild_v1/services/cloud_build/transports/grpc.py
GitLogic01/python-cloudbuild
2f37b402b7fe83aac14fd5372fad2de85025fc4a
[ "Apache-2.0" ]
1
2021-08-01T22:24:14.000Z
2021-08-01T22:24:14.000Z
google/cloud/devtools/cloudbuild_v1/services/cloud_build/transports/grpc.py
GitLogic01/python-cloudbuild
2f37b402b7fe83aac14fd5372fad2de85025fc4a
[ "Apache-2.0" ]
null
null
null
google/cloud/devtools/cloudbuild_v1/services/cloud_build/transports/grpc.py
GitLogic01/python-cloudbuild
2f37b402b7fe83aac14fd5372fad2de85025fc4a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 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...
43.083777
91
0.637118
d5baf175e3461630c4c4b75beeeba772265355bd
2,027
py
Python
sqlalchemy_utils/types/color.py
jd/sqlalchemy-utils
fa78e45f9bd38b46d5aface41914dad022c0099b
[ "BSD-3-Clause" ]
null
null
null
sqlalchemy_utils/types/color.py
jd/sqlalchemy-utils
fa78e45f9bd38b46d5aface41914dad022c0099b
[ "BSD-3-Clause" ]
null
null
null
sqlalchemy_utils/types/color.py
jd/sqlalchemy-utils
fa78e45f9bd38b46d5aface41914dad022c0099b
[ "BSD-3-Clause" ]
null
null
null
import six from sqlalchemy import types from sqlalchemy_utils import ImproperlyConfigured from .scalar_coercible import ScalarCoercible colour = None try: import colour except ImportError: pass class ColorType(types.TypeDecorator, ScalarCoercible): """ ColorType provides a way for saving Color (from ...
26.324675
77
0.646769
d5baff75a3cee88c9590a6806b5fd800aeaab538
50,576
py
Python
easy_gold/utils.py
nakayama-r/Probspace-kiva-3rd
1fe41aa10b4dd2ec992096228a03b85b61a28a2f
[ "MIT" ]
null
null
null
easy_gold/utils.py
nakayama-r/Probspace-kiva-3rd
1fe41aa10b4dd2ec992096228a03b85b61a28a2f
[ "MIT" ]
null
null
null
easy_gold/utils.py
nakayama-r/Probspace-kiva-3rd
1fe41aa10b4dd2ec992096228a03b85b61a28a2f
[ "MIT" ]
null
null
null
# coding:utf-8 import os from pathlib import Path import sys import argparse import pdb import numpy as np # linear algebra import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv) from tqdm import tqdm import pickle import time from datetime import datetime, timedelta from sklearn.metrics import confu...
32.173028
167
0.604931
d5baffa55f02960d299c7e7c2307a90884434f13
14,880
py
Python
SCRAPE/Lib/site-packages/psutil/tests/test_memleaks.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
6
2022-01-04T02:51:33.000Z
2022-01-25T11:36:39.000Z
SCRAPE/Lib/site-packages/psutil/tests/test_memleaks.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
1
2022-01-13T23:27:10.000Z
2022-01-15T05:03:24.000Z
SCRAPE/Lib/site-packages/psutil/tests/test_memleaks.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2009, Giampaolo Rodola'. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Tests for detecting function memory leaks (typically the ones implemented in C). It does so by calling a function many times an...
30.429448
79
0.667675
d5bb0b5a1f9ab910b2642021c428ac034413358b
725
py
Python
lib/cretonne/meta/isa/intel/defs.py
pepyakin/cretonne
95afd15445acd87665d9bcd55ddef974a0cb8f39
[ "Apache-2.0" ]
null
null
null
lib/cretonne/meta/isa/intel/defs.py
pepyakin/cretonne
95afd15445acd87665d9bcd55ddef974a0cb8f39
[ "Apache-2.0" ]
null
null
null
lib/cretonne/meta/isa/intel/defs.py
pepyakin/cretonne
95afd15445acd87665d9bcd55ddef974a0cb8f39
[ "Apache-2.0" ]
null
null
null
""" Intel definitions. Commonly used definitions. """ from __future__ import absolute_import from cdsl.isa import TargetISA, CPUMode import base.instructions from . import instructions as x86 from base.immediates import floatcc ISA = TargetISA('intel', [base.instructions.GROUP, x86.GROUP]) # CPU modes for 32-bit and...
25
72
0.702069
d5bb137c0cba69ad86673e75cf54ca8d6c4f4811
7,334
py
Python
liualgotrader/analytics/consolidate.py
TheSnoozer/LiuAlgoTrader
5ad4e46db126698399d338c4488aa4983385c2d8
[ "MIT" ]
null
null
null
liualgotrader/analytics/consolidate.py
TheSnoozer/LiuAlgoTrader
5ad4e46db126698399d338c4488aa4983385c2d8
[ "MIT" ]
null
null
null
liualgotrader/analytics/consolidate.py
TheSnoozer/LiuAlgoTrader
5ad4e46db126698399d338c4488aa4983385c2d8
[ "MIT" ]
null
null
null
import asyncio from pandas import DataFrame, Timestamp from liualgotrader.analytics.analysis import aload_trades_by_batch_id from liualgotrader.common.database import create_db_connection from liualgotrader.common.decorators import timeit from liualgotrader.common.tlog import tlog from liualgotrader.models.gain_loss ...
36.487562
133
0.464003
d5bb1e6e77660c934f8e0cd243642d1b139d9599
1,304
py
Python
Image/reduce_region.py
monocilindro/qgis-earthengine-examples
82aea8926d34ed3f4ad4a4a345ddbd225819d28f
[ "MIT" ]
646
2019-12-03T06:09:03.000Z
2022-03-28T03:37:08.000Z
Image/reduce_region.py
csaybar/qgis-earthengine-examples
ba8942683834d2847ff3246bdd1859b36e50fe44
[ "MIT" ]
10
2019-12-30T03:42:44.000Z
2021-05-22T07:34:07.000Z
Image/reduce_region.py
csaybar/qgis-earthengine-examples
ba8942683834d2847ff3246bdd1859b36e50fe44
[ "MIT" ]
219
2019-12-06T02:20:53.000Z
2022-03-30T15:14:27.000Z
import ee from ee_plugin import Map # Image.reduceRegion example # # Computes a simple reduction over a region of an image. A reduction # is any process that takes an arbitrary number of inputs (such as # all the pixels of an image in a given region) and computes one or # more fixed outputs. The result is a dictio...
35.243243
69
0.749233
d5bb5f325aac69c1e11d507c0e3b0fdb8d8a5f9d
24,323
py
Python
test/test_connection_observer.py
AdamKlekowski/moler
9d032bad402d9863685b2a8624320566512c14cc
[ "BSD-3-Clause" ]
2
2021-03-14T15:17:10.000Z
2021-03-15T07:12:12.000Z
test/test_connection_observer.py
Laymer/moler
2d7b89efdc2ca5e9975112b97934b396e24b5505
[ "BSD-3-Clause" ]
null
null
null
test/test_connection_observer.py
Laymer/moler
2d7b89efdc2ca5e9975112b97934b396e24b5505
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = 'Grzegorz Latuszek, Marcin Usielski' __copyright__ = 'Copyright (C) 2018-2019, Nokia' __email__ = 'grzegorz.latuszek@nokia.com, marcin.usielski@nokia.com' import importlib import time import pytest from moler.threaded_moler_connection import ThreadedMolerConnection from moler.co...
44.793738
132
0.768532
d5bb61b76e06e28eae3bafccf95b85500dc8940f
1,188
py
Python
pyvisa/testsuite/test_errors.py
KM4YRI/pyvisa
7e9a200df141a06fe2a2b86735aca98da837b6d2
[ "MIT" ]
154
2015-01-04T18:00:19.000Z
2022-01-29T03:34:33.000Z
pyvisa/testsuite/test_errors.py
KM4YRI/pyvisa
7e9a200df141a06fe2a2b86735aca98da837b6d2
[ "MIT" ]
163
2015-01-06T03:14:32.000Z
2017-05-30T09:03:40.000Z
pyvisa/testsuite/test_errors.py
KM4YRI/pyvisa
7e9a200df141a06fe2a2b86735aca98da837b6d2
[ "MIT" ]
88
2015-01-06T12:16:42.000Z
2021-09-15T23:25:20.000Z
# -*- coding: utf-8 -*- from __future__ import division, unicode_literals, print_function, absolute_import import pickle from pyvisa.testsuite import BaseTestCase from pyvisa import errors class TestPicleUnpickle(BaseTestCase): def _test_pickle_unpickle(self, instance): pickled = pickle.d...
31.263158
83
0.694444
d5bb7868e8b1b1f5066622a4c682ef5b29fbce4f
3,487
py
Python
influxdb_client/domain/views.py
kelseiv/influxdb-client-python
9a0d2d659157cca96f6a04818fdeb215d699bdd7
[ "MIT" ]
1
2021-06-06T10:39:47.000Z
2021-06-06T10:39:47.000Z
influxdb_client/domain/views.py
kelseiv/influxdb-client-python
9a0d2d659157cca96f6a04818fdeb215d699bdd7
[ "MIT" ]
null
null
null
influxdb_client/domain/views.py
kelseiv/influxdb-client-python
9a0d2d659157cca96f6a04818fdeb215d699bdd7
[ "MIT" ]
null
null
null
# coding: utf-8 """ Influx API Service No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: 0.1.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class View...
25.086331
124
0.540579
d5bb9d02ab9851c19e5bd4741af6c1893599bf71
14,803
py
Python
opsbro/misc/internalcherrypy/cherrypy/lib/static.py
naparuba/opsbro
98618a002cd47250d21e7b877a24448fc95fec80
[ "MIT" ]
32
2017-08-29T08:57:16.000Z
2021-04-21T08:53:04.000Z
opsbro/misc/internalcherrypy/cherrypy/lib/static.py
naparuba/opsbro
98618a002cd47250d21e7b877a24448fc95fec80
[ "MIT" ]
108
2017-09-04T19:59:28.000Z
2022-03-31T08:12:07.000Z
opsbro/misc/internalcherrypy/cherrypy/lib/static.py
naparuba/kunai
98618a002cd47250d21e7b877a24448fc95fec80
[ "MIT" ]
8
2015-02-03T12:30:53.000Z
2017-07-29T19:43:54.000Z
try: from io import UnsupportedOperation except ImportError: UnsupportedOperation = object() import logging import mimetypes mimetypes.init() mimetypes.types_map['.dwg'] = 'image/x-dwg' mimetypes.types_map['.ico'] = 'image/x-icon' mimetypes.types_map['.bz2'] = 'application/x-bzip2' mimetypes.types_map['.gz'] = ...
39.058047
79
0.599878
d5bbb2d1facd014232e85bdf37076dec9192a2a5
1,822
py
Python
django_grapesjs/models/fields.py
TheLazzziest/django_grapesjs
037234e082a5b2272996ef08008a5d4a2ee9845b
[ "MIT" ]
6
2020-01-19T01:37:11.000Z
2021-04-10T02:08:43.000Z
django_grapesjs/models/fields.py
stajilov/django_grapesjs
766cedf437429cfb00c909fa423da3854a8d1ea1
[ "MIT" ]
null
null
null
django_grapesjs/models/fields.py
stajilov/django_grapesjs
766cedf437429cfb00c909fa423da3854a8d1ea1
[ "MIT" ]
4
2020-01-19T01:38:13.000Z
2020-11-09T10:03:53.000Z
from django.core.management.base import SystemCheckError from django.db import models from django_grapesjs.forms.widgets import GrapesJsWidget from django_grapesjs.forms.fields import GrapesJsField from django_grapesjs.settings import BASE, GRAPESJS_DEFAULT_HTML, REDACTOR_CONFIG __all__ = ( 'GrapesJsHtmlField', )...
32.535714
99
0.660812
d5bbe5468a44b13439186b0df9606082fb1cc57b
488
py
Python
camper/context_processors.py
drinks/camper
82d9f1342886d91bf6787c1bcdb1a7cb62e53ca3
[ "BSD-3-Clause" ]
null
null
null
camper/context_processors.py
drinks/camper
82d9f1342886d91bf6787c1bcdb1a7cb62e53ca3
[ "BSD-3-Clause" ]
null
null
null
camper/context_processors.py
drinks/camper
82d9f1342886d91bf6787c1bcdb1a7cb62e53ca3
[ "BSD-3-Clause" ]
null
null
null
from django.conf import settings def basic_settings(request): return { 'DEBUG': getattr(settings, 'DEBUG'), 'FAVICON': getattr(settings, 'FAVICON'), 'APPLE_TOUCH_ICON': getattr(settings, 'APPLE_TOUCH_ICON'), 'SHARING_IMAGE': getattr(settings, 'SHARING_IMAGE'), 'FB_APP_ID': ...
34.857143
72
0.661885
d5bbed4b3dbd32e4e0606ad09d60505e8eed2714
879
py
Python
app-configurations/sublime/Sublime Text 3/Backup/20170920120316/python-markdown/st3/markdown/__version__.py
michaelDomingues/osx-configurations
e5648012dc5358f3712aa33495de1a05c9dc1655
[ "MIT" ]
182
2017-03-05T07:43:13.000Z
2022-03-15T13:09:07.000Z
Sublime Text 3/Packages/python-markdown/st3/markdown/__version__.py
dusunboy/MySublimeText3Backup
ab1eeeb42fdb6c3552fa5830a74c55ea261c2eb8
[ "Unlicense", "MIT" ]
4
2017-10-24T21:47:53.000Z
2019-09-22T13:12:57.000Z
Sublime Text 3/Packages/python-markdown/st3/markdown/__version__.py
dusunboy/MySublimeText3Backup
ab1eeeb42fdb6c3552fa5830a74c55ea261c2eb8
[ "Unlicense", "MIT" ]
16
2017-03-07T11:01:27.000Z
2022-01-08T09:21:01.000Z
# # markdown/__version__.py # # version_info should conform to PEP 386 # (major, minor, micro, alpha/beta/rc/final, #) # (1, 1, 2, 'alpha', 0) => "1.1.2.dev" # (1, 2, 0, 'beta', 2) => "1.2b2" version_info = (2, 6, 6, 'final', 0) def _get_version(): " Returns a PEP 386-compliant version number from version_info. "...
29.3
69
0.587031
d5bbed6664b977a19a80eb772ebb6668db8a1515
517
py
Python
doc/python_study_code/property.py
beiliwenxiao/vimrc
eb38fc769f3f5f78000060dac674b5c49d63c24c
[ "MIT" ]
null
null
null
doc/python_study_code/property.py
beiliwenxiao/vimrc
eb38fc769f3f5f78000060dac674b5c49d63c24c
[ "MIT" ]
null
null
null
doc/python_study_code/property.py
beiliwenxiao/vimrc
eb38fc769f3f5f78000060dac674b5c49d63c24c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 __metaclass__ = type class Rectangle: """docstring for Rectangle""" def __init__(self): self.width = 0 self.height = 0 def setSize(self, size): """docstring for setSize""" self.width, self.height = size def getSize(self): """do...
19.884615
38
0.62089
d5bbf18535dacda06bd55a6289fea6f2d2d8fa37
1,375
py
Python
setup.py
dszmaj/channels
be07934debaf620bf30f08103d88eff39cb4d6eb
[ "BSD-3-Clause" ]
null
null
null
setup.py
dszmaj/channels
be07934debaf620bf30f08103d88eff39cb4d6eb
[ "BSD-3-Clause" ]
null
null
null
setup.py
dszmaj/channels
be07934debaf620bf30f08103d88eff39cb4d6eb
[ "BSD-3-Clause" ]
null
null
null
from setuptools import find_packages, setup from channels import __version__ setup( name='channels', version=__version__, url='http://github.com/django/channels', author='Django Software Foundation', author_email='foundation@djangoproject.com', description="Brings event-driven capabilities to D...
31.976744
108
0.584
d5bc0d087cef40ea5067f98d11e4ec2874034a1b
2,928
py
Python
server/openapi_server/annotator/annotate.py
cascadianblue/phi-annotator
0da6c102ec1068e6b15c613e2a90a78f79d15935
[ "Apache-2.0" ]
null
null
null
server/openapi_server/annotator/annotate.py
cascadianblue/phi-annotator
0da6c102ec1068e6b15c613e2a90a78f79d15935
[ "Apache-2.0" ]
19
2021-07-29T03:14:38.000Z
2022-03-01T06:03:14.000Z
server/openapi_server/annotator/annotate.py
cascadianblue/phi-annotator
0da6c102ec1068e6b15c613e2a90a78f79d15935
[ "Apache-2.0" ]
null
null
null
import joblib import numpy as np from typing import Union, BinaryIO, List from sklearn.linear_model import SGDClassifier from openapi_server.annotator.label_spans import label_tokens from openapi_server.annotator.load_data import AnnotationSet from openapi_server.annotator.phi_types import PhiType from openapi_server.a...
35.277108
79
0.612705
d5bc3469c625a01aed42c28e6a5bb0a773216721
13,979
py
Python
zerver/tests/webhooks/test_bitbucket.py
dehnert/zulip
f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5
[ "Apache-2.0" ]
null
null
null
zerver/tests/webhooks/test_bitbucket.py
dehnert/zulip
f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5
[ "Apache-2.0" ]
null
null
null
zerver/tests/webhooks/test_bitbucket.py
dehnert/zulip
f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from six import text_type from typing import Union from zerver.lib.webhooks.git import COMMITS_LIMIT from zerver.lib.test_classes import WebhookTestCase class Bitbucket2HookTests(WebhookTestCase): STREAM_NAME = 'bitbucket2' URL_TEMPLATE = "/api/v1/external/bitbucket2?stream={stream}&api...
60.778261
300
0.72845
d5bc4101197ac6ff0a44025bb4391f3cd06c163b
343
py
Python
rulesets/models/session.py
jdr-tools/rulesets
2bbfb280c84da6ef359d47fa6c24d34b84814eeb
[ "MIT" ]
null
null
null
rulesets/models/session.py
jdr-tools/rulesets
2bbfb280c84da6ef359d47fa6c24d34b84814eeb
[ "MIT" ]
3
2018-12-19T08:16:15.000Z
2018-12-19T08:16:47.000Z
rulesets/models/session.py
jdr-tools/rulesets
2bbfb280c84da6ef359d47fa6c24d34b84814eeb
[ "MIT" ]
null
null
null
from pymodm import MongoModel, fields class Session(MongoModel): """ A session is the object representing the connection of a user to the API. """ token = fields.CharField() creator_id = fields.ObjectIdField() class Meta: collection_name = 'arkaan_authentication_sessions' final = True ignor...
24.5
77
0.728863
d5bc4707ce88da3ffbabd2a3dcbde7e0a5a6806e
1,959
py
Python
test/test_device_group_api.py
pallavigopi/esper-client-py
f7e71d3f25a5d91f35628b414e8abe9e6849d316
[ "Apache-2.0" ]
null
null
null
test/test_device_group_api.py
pallavigopi/esper-client-py
f7e71d3f25a5d91f35628b414e8abe9e6849d316
[ "Apache-2.0" ]
null
null
null
test/test_device_group_api.py
pallavigopi/esper-client-py
f7e71d3f25a5d91f35628b414e8abe9e6849d316
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Esper APIs OpenAPI spec version: 1.0.0 Contact: developer@esper.io --------------------------------------------------------- Copyright 2019 Shoonya Enterprises Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. Yo...
21.766667
72
0.65952
d5bc6c62021b44f2da4ce8865687af8d961bfe8d
2,994
py
Python
mudpi/extensions/owmapi/__init__.py
icyspace/mudpi-core
d2afffacee0ba5c5ca57eada3017495d8697c5a4
[ "BSD-4-Clause" ]
null
null
null
mudpi/extensions/owmapi/__init__.py
icyspace/mudpi-core
d2afffacee0ba5c5ca57eada3017495d8697c5a4
[ "BSD-4-Clause" ]
null
null
null
mudpi/extensions/owmapi/__init__.py
icyspace/mudpi-core
d2afffacee0ba5c5ca57eada3017495d8697c5a4
[ "BSD-4-Clause" ]
null
null
null
""" Open Weather API Includes interface for open weather api check current, historical, and forecated weather """ import requests import json from mudpi.exceptions import ConfigError from mudpi.extensions import BaseExtension from mudpi.logger.Logger import Logger, LOG_LEVEL class Extension(BaseExtension...
35.642857
119
0.569806
d5bc9eca4dfbfa135c883f7c887b11916da9e1a9
2,660
py
Python
experiments/vitchyr/nips2018/old/sawyer_sim_state/sac.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2020-10-23T14:40:09.000Z
2020-10-23T14:40:09.000Z
experiments/vitchyr/nips2018/old/sawyer_sim_state/sac.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/vitchyr/nips2018/old/sawyer_sim_state/sac.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2021-05-27T20:38:45.000Z
2021-05-27T20:38:45.000Z
import rlkit.misc.hyperparameter as hyp import rlkit.torch.pytorch_util as ptu from rlkit.envs.mujoco.pusher2d import Pusher2DEnv from rlkit.envs.mujoco.sawyer_gripper_env import SawyerXYZEnv from rlkit.envs.multitask.multitask_env import MultitaskToFlatEnv from rlkit.envs.multitask.pusher2d import CylinderXYPusher2DEn...
27.42268
72
0.622932
d5bcbf54e3a92f31046c587b80609f4fda98e9bc
694
py
Python
widgets/date.py
alberand/lemonbar
baa479edb422b6595794794dcd434a3ab65ae747
[ "MIT" ]
null
null
null
widgets/date.py
alberand/lemonbar
baa479edb422b6595794794dcd434a3ab65ae747
[ "MIT" ]
null
null
null
widgets/date.py
alberand/lemonbar
baa479edb422b6595794794dcd434a3ab65ae747
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys import datetime from widgets.widget import Widget from widgets.config import colors, icons class date(Widget): ''' Abstrac class for all lemonbar widgets. ''' def __init__(self, value=''): ''' Params: bg: background color fg: ...
18.756757
58
0.536023
d5bce436f641e7927d1bbfd3a33e1eeb2846e502
2,791
py
Python
src/part4.py
mremilien/ICP
671c600acc75a4126216cfc11c67d44ccfac037f
[ "MIT" ]
3
2021-02-02T04:11:45.000Z
2021-05-04T17:38:40.000Z
src/part4.py
mremilien/ICP
671c600acc75a4126216cfc11c67d44ccfac037f
[ "MIT" ]
null
null
null
src/part4.py
mremilien/ICP
671c600acc75a4126216cfc11c67d44ccfac037f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """this is for the part 4 of CourseWork 1.""" __author__ = 'Chengkun Li' import sys import os import open3d as o3d import numpy as np import trimesh import time import matplotlib import matplotlib.pyplot as plt import tools.baseICP import tools.tools ...
28.773196
86
0.624866
d5bcef0c07ef9f28aea15e4e9345f1b0d3c64093
836
py
Python
oscar/lib/python2.7/site-packages/phonenumbers/shortdata/region_CD.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/phonenumbers/shortdata/region_CD.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/phonenumbers/shortdata/region_CD.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
"""Auto-generated file, do not edit by hand. CD metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_CD = PhoneMetadata(id='CD', country_code=None, international_prefix=None, general_desc=PhoneNumberDesc(national_number_pattern='[14]\\d{2,4}', possible_length=(3, ...
76
134
0.763158
d5bcf85d4de033e9f47c1b7381cba215b42bf360
57,022
py
Python
pandas/computation/tests/test_eval.py
ssalonen/pandas
1929563fdb5358a41420d103a388aa2bd494d543
[ "PSF-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
pandas/computation/tests/test_eval.py
ssalonen/pandas
1929563fdb5358a41420d103a388aa2bd494d543
[ "PSF-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
pandas/computation/tests/test_eval.py
ssalonen/pandas
1929563fdb5358a41420d103a388aa2bd494d543
[ "PSF-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import unittest import functools import numbers from itertools import product import ast import nose from nose.tools import assert_raises, assert_true, assert_false, assert_equal from numpy.random import randn, rand, randint import numpy as np from numpy.testing import assert_array_equal, asser...
38.68521
91
0.563274
d5bd15a54b4b202bcda544f04895d11f64780b8a
5,456
py
Python
src/boptx/loop.py
sebhoerl/boptx
13804868b82947d7544d48fe4481a1f9983d64b9
[ "MIT" ]
1
2022-01-27T17:58:09.000Z
2022-01-27T17:58:09.000Z
src/boptx/loop.py
sebhoerl/boptx
13804868b82947d7544d48fe4481a1f9983d64b9
[ "MIT" ]
null
null
null
src/boptx/loop.py
sebhoerl/boptx
13804868b82947d7544d48fe4481a1f9983d64b9
[ "MIT" ]
null
null
null
from .evaluator import Evaluator from .algorithm import Algorithm import numpy as np import logging logger = logging.getLogger(__name__) class Loop: def __init__(self, evaluator: Evaluator, algorithm: Algorithm, absolute_tolerance = None, relative_tolerance = None, maximum_iterations = None, maximum_evaluations ...
37.627586
176
0.630132
d5bdd89503c28b17f7aabe53e5adf815069491dc
1,079
py
Python
zlogging/enum/JSON.py
JarryShaw/zlogging
f5c2bec37bc68d295cd4d9557b13d96f20a21b71
[ "BSD-3-Clause" ]
null
null
null
zlogging/enum/JSON.py
JarryShaw/zlogging
f5c2bec37bc68d295cd4d9557b13d96f20a21b71
[ "BSD-3-Clause" ]
3
2021-03-01T17:03:05.000Z
2021-07-19T17:11:34.000Z
zlogging/enum/JSON.py
JarryShaw/zlogging
f5c2bec37bc68d295cd4d9557b13d96f20a21b71
[ "BSD-3-Clause" ]
1
2020-05-22T15:16:44.000Z
2020-05-22T15:16:44.000Z
# -*- coding: utf-8 -*- # pylint: disable=line-too-long,import-error """Namespace: ``JSON``.""" from zlogging._compat import enum @enum.unique class TimestampFormat(enum.IntFlag): """Enum: ``JSON::TimestampFormat``. See Also: `base/init-bare.zeek <https://docs.zeek.org/en/stable/scripts/base/init-ba...
31.735294
125
0.692308
d5be563c4d4bf0fcfb4debff1c5a202ab409ac54
99
py
Python
tests/app/main/views/__init__.py
alphagov/notify-api
16dbafbad69e5bb179ba4b2202a7afa299c88d61
[ "MIT" ]
12
2015-10-06T08:58:28.000Z
2016-08-08T17:51:29.000Z
tests/app/main/views/__init__.py
gds-attic/notify-api
16dbafbad69e5bb179ba4b2202a7afa299c88d61
[ "MIT" ]
1
2015-10-27T12:01:26.000Z
2015-10-27T12:01:26.000Z
tests/app/main/views/__init__.py
gds-attic/notify-api
16dbafbad69e5bb179ba4b2202a7afa299c88d61
[ "MIT" ]
3
2016-05-31T17:40:15.000Z
2021-04-10T20:03:33.000Z
import re uuid_regex = re.compile("[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")
24.75
87
0.535354
d5be8300d5b7ce122051b51757dec51c539599d3
3,569
py
Python
intersight/models/compute_board_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/compute_board_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/compute_board_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Intersight REST API This is Intersight REST API OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class ComputeBoardRef(object): """ NOTE: This class...
23.793333
77
0.536285
d5be9cd9ae5d2b5b33686b0f56bb5161738c078b
3,829
py
Python
families/exchange/hashblock_exchange/processor/services.py
hashblock/sawtooth-uom
0b8f131ee4f2a3a70a19f21bc88fe064d39fe5cd
[ "MIT" ]
5
2018-04-05T07:02:04.000Z
2018-07-10T09:39:03.000Z
families/exchange/hashblock_exchange/processor/services.py
hashblock/sawtooth-uom
0b8f131ee4f2a3a70a19f21bc88fe064d39fe5cd
[ "MIT" ]
89
2018-03-11T14:46:07.000Z
2018-09-07T14:50:42.000Z
families/exchange/hashblock_exchange/processor/services.py
hashblock/sawtooth-uom
0b8f131ee4f2a3a70a19f21bc88fe064d39fe5cd
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------------ # Copyright 2018 Frank V. Castellucci and Arthur Greef # # 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 # # ...
28.362963
80
0.624445
d5bea0ffedfc5aa50772b0b413731d63740e8afb
21,339
py
Python
SCRAPE/Lib/site-packages/twisted/test/test_cooperator.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
null
null
null
SCRAPE/Lib/site-packages/twisted/test/test_cooperator.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
null
null
null
SCRAPE/Lib/site-packages/twisted/test/test_cooperator.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
null
null
null
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ This module contains tests for L{twisted.internet.task.Cooperator} and related functionality. """ from twisted.internet import defer, reactor, task from twisted.trial import unittest class FakeDelayedCall: """ Fake delayed call whi...
30.881331
86
0.589297
d5beaea147c22b76c6a0ad948fb8133318a7e572
574
py
Python
tests/test_mpcfit.py
matthewjohnpayne/MPCFit
88c966d4f4810f631551d821b7801e9ba99c664a
[ "MIT" ]
null
null
null
tests/test_mpcfit.py
matthewjohnpayne/MPCFit
88c966d4f4810f631551d821b7801e9ba99c664a
[ "MIT" ]
null
null
null
tests/test_mpcfit.py
matthewjohnpayne/MPCFit
88c966d4f4810f631551d821b7801e9ba99c664a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for `mpcfit` package.""" import pytest from mpcfit import mpcfit @pytest.fixture def response(): """Sample pytest fixture. See more at: http://doc.pytest.org/en/latest/fixture.html """ # import requests # return requests.get('https://gith...
22.076923
78
0.69338
d5beda900bb47d847c85f3751058b73af91606c2
2,447
py
Python
tests/ampligraph/utils/test_model_utils.py
netsec/AmpliGraph
ac825df91e10f079fba2cd40eda273b0d360f452
[ "Apache-2.0" ]
null
null
null
tests/ampligraph/utils/test_model_utils.py
netsec/AmpliGraph
ac825df91e10f079fba2cd40eda273b0d360f452
[ "Apache-2.0" ]
null
null
null
tests/ampligraph/utils/test_model_utils.py
netsec/AmpliGraph
ac825df91e10f079fba2cd40eda273b0d360f452
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The AmpliGraph Authors. All Rights Reserved. # # This file is Licensed under the Apache License, Version 2.0. # A copy of the Licence is available in LICENCE, or at: # # http://www.apache.org/licenses/LICENSE-2.0 # import os import importlib import numpy as np import numpy.testing as npt from ampli...
34.464789
109
0.606048
d5bedb51ad3357e3b6b88eb7a91462f3cb78042d
2,591
py
Python
tests/test_sparse_regression.py
nirum/descent
074c8452f15a0da638668a4fe139fde06ccfae7f
[ "MIT" ]
25
2015-07-03T20:04:00.000Z
2021-06-15T00:02:13.000Z
tests/test_sparse_regression.py
nirum/descent
074c8452f15a0da638668a4fe139fde06ccfae7f
[ "MIT" ]
5
2015-10-04T08:21:10.000Z
2017-07-16T19:51:57.000Z
tests/test_sparse_regression.py
nirum/descent
074c8452f15a0da638668a4fe139fde06ccfae7f
[ "MIT" ]
8
2015-10-04T08:18:18.000Z
2021-06-15T00:02:15.000Z
""" Test suite for sparse regression """ import numpy as np from descent import algorithms, Consensus from descent.proxops import sparse, linsys def generate_sparse_system(n=100, m=50, p=0.1, eta=0.05, seed=1234): """Generate a sparse, noisy system (Ax = y) Parameters ---------- n : int Numbe...
21.957627
73
0.605172
d5bf4cc99ff10614ba6a4feb88bde7dd9a980bf6
722
py
Python
tests/metaworlds/envs/mujoco/hill/test_ant_hill_env.py
rlworkgroup/metaworlds
be03cfed9890a37b84283c597209b849e8a086cc
[ "MIT" ]
5
2019-02-27T20:55:30.000Z
2019-08-24T19:24:41.000Z
tests/metaworlds/envs/mujoco/hill/test_ant_hill_env.py
rlworkgroup/metaworlds
be03cfed9890a37b84283c597209b849e8a086cc
[ "MIT" ]
8
2019-02-28T04:07:10.000Z
2020-01-02T10:54:10.000Z
tests/metaworlds/envs/mujoco/hill/test_ant_hill_env.py
rlworkgroup/metaworlds
be03cfed9890a37b84283c597209b849e8a086cc
[ "MIT" ]
1
2021-09-13T18:35:34.000Z
2021-09-13T18:35:34.000Z
import pickle import unittest from metaworlds.envs.mujoco.hill.ant_hill_env import AntHillEnv from tests.helpers import step_env class TestAntHillEnv(unittest.TestCase): def test_pickleable(self): env = AntHillEnv(regen_terrain=False) round_trip = pickle.loads(pickle.dumps(env)) assert ro...
27.769231
63
0.666205
d5bf66820b53a56443b02115401409f314dd3029
919
py
Python
savvy/tests/regression_diagnostic_demo_2D_input.py
lmc2179/explain_sklearn
15166f42edd9d12573df23e89bdfe0e55c235ca8
[ "MIT" ]
2
2016-05-18T09:01:19.000Z
2017-11-25T22:20:05.000Z
savvy/tests/regression_diagnostic_demo_2D_input.py
lmc2179/explain_sklearn
15166f42edd9d12573df23e89bdfe0e55c235ca8
[ "MIT" ]
null
null
null
savvy/tests/regression_diagnostic_demo_2D_input.py
lmc2179/explain_sklearn
15166f42edd9d12573df23e89bdfe0e55c235ca8
[ "MIT" ]
null
null
null
import numpy as np from savvy import regression_diagnostic from matplotlib import pyplot as plt from sklearn import linear_model # This is a demo of the diagnostic tool being used where the assumptions of the linear regression model are met. DATA_POINTS = 5000 X1 = np.random.uniform(0, 10, DATA_POINTS).reshape(DATA_PO...
36.76
112
0.782372
d5bf6884d14f0b557e14022b460a373173af8ffc
1,341
py
Python
Leetcode/easy/pascal's triangle.py
jen-sjen/data-structures-basics-leetcode
addac32974b16e0a37aa60c210ab7820b349b279
[ "MIT" ]
6
2021-07-29T03:26:20.000Z
2022-01-28T15:11:45.000Z
Leetcode/easy/pascal's triangle.py
jen-sjen/data-structures-basics-leetcode
addac32974b16e0a37aa60c210ab7820b349b279
[ "MIT" ]
2
2021-09-30T09:47:23.000Z
2022-01-31T03:08:24.000Z
Leetcode/easy/pascal's triangle.py
jen-sjen/data-structures-basics-leetcode
addac32974b16e0a37aa60c210ab7820b349b279
[ "MIT" ]
5
2021-08-10T06:41:11.000Z
2022-01-29T17:50:20.000Z
""" # PASCAL'S TRIANGLE Given a non-negative integer numRows, generate the first numRows of Pascal's triangle. In Pascal's triangle, each number is the sum of the two numbers directly above it. Example: Input: 5 Output: [ [1], [1,1], [1,2,1], [1,3,3,1], [1,4,6,4,1] ] """ class Solution(object): ...
27.9375
131
0.547353
d5bf8479bba1cd75e33e8fc2967425c5b0e950ee
87,450
py
Python
tests/regressiontests/multiple_database/tests.py
jezdez-archive/django-old
9e28c4f4e90f8dfcfbb55bb13be437afb4f870e9
[ "BSD-3-Clause" ]
1
2019-06-13T16:18:27.000Z
2019-06-13T16:18:27.000Z
tests/regressiontests/multiple_database/tests.py
sirmmo/rango
9e28c4f4e90f8dfcfbb55bb13be437afb4f870e9
[ "BSD-3-Clause" ]
null
null
null
tests/regressiontests/multiple_database/tests.py
sirmmo/rango
9e28c4f4e90f8dfcfbb55bb13be437afb4f870e9
[ "BSD-3-Clause" ]
1
2020-07-15T05:01:00.000Z
2020-07-15T05:01:00.000Z
from __future__ import absolute_import import datetime import pickle from StringIO import StringIO from django.conf import settings from django.contrib.auth.models import User from django.contrib.contenttypes.models import ContentType from django.core import management from django.db import connections, router, DEFAU...
45.618153
139
0.630143
d5bf94759d07674f92a586eacf8f86fc44e52612
1,673
py
Python
scripts/practice/FB-reRun/FirstBadVersionofProduct.py
bhimeshchauhan/competitive_programming
e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5
[ "MIT" ]
null
null
null
scripts/practice/FB-reRun/FirstBadVersionofProduct.py
bhimeshchauhan/competitive_programming
e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5
[ "MIT" ]
8
2020-09-05T16:04:31.000Z
2022-02-27T09:57:51.000Z
scripts/practice/FB-reRun/FirstBadVersionofProduct.py
bhimeshchauhan/competitive_programming
e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5
[ "MIT" ]
null
null
null
""" First Bad Version You are a product manager and currently leading a team to develop a new product. Unfortunately, the latest version of your product fails the quality check. Since each version is developed based on the previous version, all the versions after a bad version are also bad. Suppose you have n vers...
24.970149
113
0.625224
d5bf974e33ebcc6c2591c752524119293ed89709
100,604
py
Python
lib/python2.7/matplotlib/mlab.py
ashley8jain/IITD-complaint-system-web
21a94601cba710f558d1689b87cfc391a1541c9f
[ "BSD-3-Clause" ]
1
2017-01-25T00:38:48.000Z
2017-01-25T00:38:48.000Z
lib/python2.7/matplotlib/mlab.py
ashley8jain/IITD-complaint-system-web
21a94601cba710f558d1689b87cfc391a1541c9f
[ "BSD-3-Clause" ]
null
null
null
lib/python2.7/matplotlib/mlab.py
ashley8jain/IITD-complaint-system-web
21a94601cba710f558d1689b87cfc391a1541c9f
[ "BSD-3-Clause" ]
null
null
null
""" Numerical python functions written for compatability with MATLAB commands with the same names. MATLAB compatible functions ------------------------------- :func:`cohere` Coherence (normalized cross spectral density) :func:`csd` Cross spectral density uing Welch's average periodogram :func:`detrend` Remov...
31.626533
141
0.609359
d5bf9e760352cab0b78ed193a404e14367e44077
625
py
Python
epab/core/context.py
132nd-etcher/epab
5226d3a36580f8cc50cf5dcac426adb1350a2c9b
[ "MIT" ]
2
2018-12-13T06:49:10.000Z
2018-12-13T07:37:49.000Z
epab/core/context.py
etcher-be/epab
5226d3a36580f8cc50cf5dcac426adb1350a2c9b
[ "MIT" ]
109
2018-08-22T04:25:56.000Z
2019-10-17T05:10:21.000Z
epab/core/context.py
etcher-be/epab
5226d3a36580f8cc50cf5dcac426adb1350a2c9b
[ "MIT" ]
1
2018-02-25T05:53:18.000Z
2018-02-25T05:53:18.000Z
# coding=utf-8 """ Global runtime CTX """ import os import typing from epab.bases.repo import BaseRepo class CTX: """ Global EPAB context """ run_once: dict = {} known_executables: dict = {} repo: BaseRepo next_version: typing.Optional[str] = None stash: bool = False appveyor: ty...
18.939394
58
0.5952
d5bfa96176527501bfda2177d4786fd594c683e0
905
py
Python
bootcamp/wiki/__init__.py
basiltiger/easy_bootcamp
875b9ed287f1a7824bb38f142dbe2f3b1ce54389
[ "MIT" ]
null
null
null
bootcamp/wiki/__init__.py
basiltiger/easy_bootcamp
875b9ed287f1a7824bb38f142dbe2f3b1ce54389
[ "MIT" ]
null
null
null
bootcamp/wiki/__init__.py
basiltiger/easy_bootcamp
875b9ed287f1a7824bb38f142dbe2f3b1ce54389
[ "MIT" ]
null
null
null
from __future__ import unicode_literals # -*- coding: utf-8 -*- # This package and all its sub-packages are part of django-wiki, # except where otherwise stated. # # django-wiki is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Soft...
37.708333
70
0.758011
d5bfac885368b283ff7b08f5562d9288f90d1d3f
4,814
py
Python
appengine/third_party/python-adb/adb/common_cli.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
5
2017-12-18T08:09:44.000Z
2021-10-10T04:07:51.000Z
appengine/third_party/python-adb/adb/common_cli.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
4
2016-05-26T13:08:36.000Z
2016-06-08T22:48:02.000Z
appengine/third_party/python-adb/adb/common_cli.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
6
2016-01-07T17:46:24.000Z
2021-10-10T04:07:44.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 a...
29.353659
107
0.649356
d5bfbbdf7b4a8cc31fb01d1e8dc7f5082bae1a54
37,146
py
Python
list/fpn.py
PHL22/Backbone
b3f103fdab657f2fca494c4cdf2f8195dc837105
[ "MIT" ]
null
null
null
list/fpn.py
PHL22/Backbone
b3f103fdab657f2fca494c4cdf2f8195dc837105
[ "MIT" ]
null
null
null
list/fpn.py
PHL22/Backbone
b3f103fdab657f2fca494c4cdf2f8195dc837105
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. import math import fvcore.nn.weight_init as weight_init import torch.nn.functional as F from typing import List, Optional #import torch.nn as nn import matplotlib.pyplot as plt import numpy as np import torch from torch import nn from detectron2.layers import ( CNN...
40.464052
195
0.5946
d5c03495e34e73018bf9832bf77cdcf038449488
1,557
py
Python
tensorflow/contrib/data/python/kernel_tests/serialization/optimize_dataset_serialization_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/contrib/data/python/kernel_tests/serialization/optimize_dataset_serialization_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/contrib/data/python/kernel_tests/serialization/optimize_dataset_serialization_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
26
2017-04-12T16:25:44.000Z
2018-10-30T10:10:15.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...
38.925
101
0.748234
d5c03647e3a5e375d038d5e913bc64bc1601bd5b
711
py
Python
prousthon/main.py
deepspaceghost/deme
324741ee8e6ef30de5116f6018966829302796ed
[ "MIT" ]
null
null
null
prousthon/main.py
deepspaceghost/deme
324741ee8e6ef30de5116f6018966829302796ed
[ "MIT" ]
6
2021-07-09T16:56:28.000Z
2022-03-12T00:58:06.000Z
prousthon/main.py
deepspaceghost/demeter.py
324741ee8e6ef30de5116f6018966829302796ed
[ "MIT" ]
1
2021-06-01T23:49:44.000Z
2021-06-01T23:49:44.000Z
import random import os dir_path = os.path.dirname(os.path.realpath(__file__)) with open(os.path.join(dir_path, "proust_questionnaire.txt")) as f: proust_questions = [question.rstrip('\r\n ') for question in f.readlines() if question != ""] with open(os.path.join(dir_path, "inside_the_actor_studio.txt")) as f: ...
35.55
98
0.727145
d5c066206ad636164f8702e4245cb9030d1f8681
34,159
py
Python
salt/modules/pip.py
jbq/pkg-salt
b6742e03cbbfb82f4ce7db2e21a3ff31b270cdb3
[ "Apache-2.0" ]
1
2020-09-16T21:31:02.000Z
2020-09-16T21:31:02.000Z
salt/modules/pip.py
jbq/pkg-salt
b6742e03cbbfb82f4ce7db2e21a3ff31b270cdb3
[ "Apache-2.0" ]
null
null
null
salt/modules/pip.py
jbq/pkg-salt
b6742e03cbbfb82f4ce7db2e21a3ff31b270cdb3
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- r''' Install Python packages with pip to either the system or a virtualenv Windows Support =============== .. versionadded:: 2014.7.4 Salt now uses a portable python. As a result the entire pip module is now functional on the salt installation itself. You can pip install dependencies for your...
32.940212
118
0.591147
d5c06f16c3fcc96993938e0c35fe7c62d8dfa422
8,621
py
Python
nova/tests/virt/docker/test_driver.py
osrg/nova
14b6bc655145c832bd9c822e48f877818e0e53ff
[ "Apache-2.0" ]
null
null
null
nova/tests/virt/docker/test_driver.py
osrg/nova
14b6bc655145c832bd9c822e48f877818e0e53ff
[ "Apache-2.0" ]
null
null
null
nova/tests/virt/docker/test_driver.py
osrg/nova
14b6bc655145c832bd9c822e48f877818e0e53ff
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # # Copyright (c) 2013 dotCloud, 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...
40.85782
79
0.629741
d5c0733b4431b218a7ce63d31a0b28f4c292be8e
47,042
py
Python
NBA Project/venv/Lib/site-packages/plotly/validators/bar/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
1
2020-08-08T21:56:11.000Z
2020-08-08T21:56:11.000Z
NBA Project/venv/Lib/site-packages/plotly/validators/bar/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
2
2021-03-31T19:54:17.000Z
2021-06-02T02:33:56.000Z
NBA Project/venv/Lib/site-packages/plotly/validators/bar/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
null
null
null
import _plotly_utils.basevalidators class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): def __init__(self, plotly_name="ysrc", parent_name="bar", **kwargs): super(YsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, edit_type=kwar...
35.290323
84
0.590026
d5c09b3ac3d1dd968ff989694d0c7ec5f08d8dfe
2,274
py
Python
deepctr/models/dscn.py
whksmo/deep-intent
2617373cf94fccbe9fc37d50ee010a5c2b8418b0
[ "MIT" ]
null
null
null
deepctr/models/dscn.py
whksmo/deep-intent
2617373cf94fccbe9fc37d50ee010a5c2b8418b0
[ "MIT" ]
7
2019-12-16T22:03:26.000Z
2022-02-10T00:17:03.000Z
deepctr/models/dscn.py
whksmo/deep-intent
2617373cf94fccbe9fc37d50ee010a5c2b8418b0
[ "MIT" ]
null
null
null
import tensorflow as tf from ..inputs import input_from_feature_columns,build_input_features,combined_dnn_input from ..layers.core import PredictionLayer, DNN from ..layers.tcn import TCN from ..layers.interaction import * from tensorflow.keras.layers import Activation, Embedding, Input, Flatten, Lambda, CuDNNLSTM, De...
50.533333
112
0.775726
d5c0cca15a0f2370c943aa7dec1b534a27198aa0
2,396
py
Python
test/parallel_harness.py
slinderman/theano_pyglm
c7fc11069dfe91b0eb7c96b8464fcd0f57442952
[ "MIT" ]
37
2015-04-08T15:11:51.000Z
2022-01-05T19:32:58.000Z
test/parallel_harness.py
slinderman/theano_pyglm
c7fc11069dfe91b0eb7c96b8464fcd0f57442952
[ "MIT" ]
2
2016-03-08T02:39:58.000Z
2017-03-29T08:51:08.000Z
test/parallel_harness.py
slinderman/theano_pyglm
c7fc11069dfe91b0eb7c96b8464fcd0f57442952
[ "MIT" ]
10
2015-02-25T21:47:50.000Z
2020-03-06T00:21:48.000Z
import os import cPickle from IPython.parallel import Client from pyglm.utils.parallel_util import initialize_imports, create_population_on_engines from pyglm.utils.io import parse_cmd_line_args, load_data from population import Population from pyglm.models.model_factory import * def initialize_parallel_...
34.724638
87
0.588063
d5c0f26a4c49e0f8b2244a5cbd5e38f4a4fc44e1
4,126
py
Python
webservices/common/views.py
adborden/openFEC
53a0a2b1a56292c5ca8e7a3185832baaed4a63d9
[ "CC0-1.0" ]
null
null
null
webservices/common/views.py
adborden/openFEC
53a0a2b1a56292c5ca8e7a3185832baaed4a63d9
[ "CC0-1.0" ]
null
null
null
webservices/common/views.py
adborden/openFEC
53a0a2b1a56292c5ca8e7a3185832baaed4a63d9
[ "CC0-1.0" ]
1
2020-03-04T00:21:16.000Z
2020-03-04T00:21:16.000Z
import sqlalchemy as sa from flask_apispec import Ref, marshal_with from webservices import utils from webservices import filters from webservices import sorting from webservices import exceptions from webservices.common import counts from webservices.common import models from webservices.utils import use_kwargs cla...
38.203704
112
0.659476
d5c0f8c86d7c57c526a9e5cb12880ec3d710060c
4,946
py
Python
std/pytorch/01-low/47.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
std/pytorch/01-low/47.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
std/pytorch/01-low/47.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
import torch import torch.nn.functional as F import torchvision.transforms as transforms import torchvision.models as models import captum from captum.attr import IntegratedGradients, Occlusion, LayerGradCam, LayerAttribution from captum.attr import visualization as viz import os, sys import json import numpy as np ...
30.9125
114
0.717954
d5c102340caec0a6e35e02640715a61fc467cc30
16,463
py
Python
rls/algorithms/single/modelbased/dreamer_v1.py
StepNeverStop/RLs
25cc97c96cbb19fe859c9387b7547cbada2c89f2
[ "Apache-2.0" ]
371
2019-04-26T00:37:33.000Z
2022-03-31T07:33:12.000Z
rls/algorithms/single/modelbased/dreamer_v1.py
BlueFisher/RLs
25cc97c96cbb19fe859c9387b7547cbada2c89f2
[ "Apache-2.0" ]
47
2019-07-21T11:51:57.000Z
2021-08-31T08:45:22.000Z
rls/algorithms/single/modelbased/dreamer_v1.py
BlueFisher/RLs
25cc97c96cbb19fe859c9387b7547cbada2c89f2
[ "Apache-2.0" ]
102
2019-06-29T13:11:15.000Z
2022-03-28T13:51:04.000Z
#!/usr/bin/env python3 # encoding: utf-8 from typing import Dict import numpy as np import torch as th import torch.distributions as td from rls.algorithms.base.sarl_off_policy import SarlOffPolicy from rls.common.data import Data, get_first_vector, get_first_visual from rls.common.decorator import iton from rls.nn....
46.114846
115
0.561684
d5c12983dadbe86d81c0a30d1428f93c4d7196fe
112,186
py
Python
facebook_business/adobjects/user.py
pasha-r/facebook-python-ads-sdk
76feadd77baed839516b53297628e7a254c8c3c0
[ "CNRI-Python" ]
null
null
null
facebook_business/adobjects/user.py
pasha-r/facebook-python-ads-sdk
76feadd77baed839516b53297628e7a254c8c3c0
[ "CNRI-Python" ]
null
null
null
facebook_business/adobjects/user.py
pasha-r/facebook-python-ads-sdk
76feadd77baed839516b53297628e7a254c8c3c0
[ "CNRI-Python" ]
1
2018-09-24T14:04:48.000Z
2018-09-24T14:04:48.000Z
# 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...
37.926302
130
0.582862
d5c14359c9e4b03d11177af6847d8c2d403e8252
7,314
py
Python
examples/l3dcube/audio_fft_pygame.py
stewartadam/netl3d
a222b7fd65d61a3b8393409a8fe6888d55d949ce
[ "MIT" ]
3
2016-12-09T07:30:26.000Z
2021-04-18T13:50:11.000Z
examples/l3dcube/audio_fft_pygame.py
stewartadam/netl3d
a222b7fd65d61a3b8393409a8fe6888d55d949ce
[ "MIT" ]
null
null
null
examples/l3dcube/audio_fft_pygame.py
stewartadam/netl3d
a222b7fd65d61a3b8393409a8fe6888d55d949ce
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Takes system microphone input (no parameters) or an audio file (with parameter) and performs frequency analysis on the samples read. """ import audiotools import numpy import pyaudio import pygame import scipy import spectra import sys import time import netl3d from ne...
32.506667
222
0.705906
d5c148e058847f2a06d9116f95395580f5680088
12,214
py
Python
Ofpp/mesh_parser.py
qiujiyan/ofpp
fd3362d2a082d502e88a1468b92c3f1092e23401
[ "MIT" ]
null
null
null
Ofpp/mesh_parser.py
qiujiyan/ofpp
fd3362d2a082d502e88a1468b92c3f1092e23401
[ "MIT" ]
null
null
null
Ofpp/mesh_parser.py
qiujiyan/ofpp
fd3362d2a082d502e88a1468b92c3f1092e23401
[ "MIT" ]
null
null
null
""" mesh_parser.py parse mesh data from constant/polymesh """ from __future__ import print_function import numpy as np import os import struct from collections import namedtuple from .field_parser import parse_internal_field, is_binary_format Boundary = namedtuple('Boundary', 'type, num, start, id') ...
35.505814
115
0.484444
d5c16712d0e8b323a8e5dd171f649c4ccd853f02
13,952
py
Python
src/ralph_assets/models_assets.py
andrzej-jankowski/ralph_assets
20ed7ee9cf4dfa02c4b2195835b4f45196ad9bf3
[ "Apache-2.0" ]
null
null
null
src/ralph_assets/models_assets.py
andrzej-jankowski/ralph_assets
20ed7ee9cf4dfa02c4b2195835b4f45196ad9bf3
[ "Apache-2.0" ]
null
null
null
src/ralph_assets/models_assets.py
andrzej-jankowski/ralph_assets
20ed7ee9cf4dfa02c4b2195835b4f45196ad9bf3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Asset management models.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import os import datetime from dateutil.relativedelta import relativedelta from lck.django...
30.663736
78
0.651448
d5c189b4f88a9a58581163ec7cb1f663e34369b2
19,959
py
Python
topopy/profiler.py
geolovic/topopy
0ccfc4bfc0364b99489d08a1d4b87582deb08b81
[ "MIT" ]
5
2020-04-05T18:42:45.000Z
2022-02-17T11:15:32.000Z
topopy/profiler.py
geolovic/topopy
0ccfc4bfc0364b99489d08a1d4b87582deb08b81
[ "MIT" ]
null
null
null
topopy/profiler.py
geolovic/topopy
0ccfc4bfc0364b99489d08a1d4b87582deb08b81
[ "MIT" ]
5
2019-07-02T11:14:54.000Z
2021-12-15T08:43:42.000Z
# -*- coding: iso-8859-15 -*- # # profiler.py # # Copyright (C) 2016 J. Vicente Perez, Universidad de Granada # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the Lice...
36.355191
138
0.568065
d5c1ad85a05697c6a7744ede6ce7fa3a12053001
4,346
py
Python
Projective-Geometry/tony/com.tonybeltramelli.homography/AugmentedReality.py
tonybeltramelli/Graphics-And-Vision
a1dbeada8e907b119ecce1fe421ae91e64ff3371
[ "Apache-2.0" ]
12
2017-05-26T12:04:38.000Z
2021-07-11T04:42:19.000Z
Projective-Geometry/tony/com.tonybeltramelli.homography/AugmentedReality.py
tonybeltramelli/Graphics-And-Vision
a1dbeada8e907b119ecce1fe421ae91e64ff3371
[ "Apache-2.0" ]
null
null
null
Projective-Geometry/tony/com.tonybeltramelli.homography/AugmentedReality.py
tonybeltramelli/Graphics-And-Vision
a1dbeada8e907b119ecce1fe421ae91e64ff3371
[ "Apache-2.0" ]
4
2017-05-09T08:26:44.000Z
2018-04-23T03:16:01.000Z
__author__ = 'tbeltramelli' from UMedia import * from CameraCalibrator import * from Filtering import * from Camera import * from UMath import * from UGraphics import * from AHomography import * class AugmentedReality: _video_path = None _pattern = None _camera_calibrator = None _result = None d...
39.87156
130
0.658767
d5c1ec0cdbee7f115ea151dee5fa9cb8f73a8fc5
9,597
py
Python
exercises/python/encryption-context-complete/test/test_api.py
josecorella/busy-engineers-document-bucket
91f46ba7e6f49833fa3037ed78e0cdd15e88d2b7
[ "Apache-2.0" ]
13
2019-11-05T21:24:24.000Z
2021-11-24T03:01:28.000Z
exercises/python/encryption-context-complete/test/test_api.py
josecorella/busy-engineers-document-bucket
91f46ba7e6f49833fa3037ed78e0cdd15e88d2b7
[ "Apache-2.0" ]
107
2019-11-07T23:19:45.000Z
2022-02-18T05:57:51.000Z
exercises/python/encryption-context-complete/test/test_api.py
josecorella/busy-engineers-document-bucket
91f46ba7e6f49833fa3037ed78e0cdd15e88d2b7
[ "Apache-2.0" ]
16
2019-11-04T21:51:59.000Z
2021-02-04T17:05:40.000Z
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 import io import random import string from unittest import mock from unittest.mock import call import aws_encryption_sdk import pytest from aws_encryption_sdk import StrictAwsKmsMasterKeyProvider # type: i...
33.673684
88
0.729499
d5c1f4f0913c726afb0acb08ecdc2794a8a20038
953
py
Python
src/foal/dynamic_programming/memoize.py
Robert-Ma/foal
ad8eacbb9ebf4ca82fceee1d528e817b051d0027
[ "MIT" ]
null
null
null
src/foal/dynamic_programming/memoize.py
Robert-Ma/foal
ad8eacbb9ebf4ca82fceee1d528e817b051d0027
[ "MIT" ]
null
null
null
src/foal/dynamic_programming/memoize.py
Robert-Ma/foal
ad8eacbb9ebf4ca82fceee1d528e817b051d0027
[ "MIT" ]
null
null
null
""" Memoizing Code is from <<Expert Python Programming>> (Second Edition, Michal Jaworski). Visit: 'https://en.wikipedia.org/wiki/Memoization' for more information. """ import hashlib import pickle import time cache = {} def _is_obsolete(entry, duration): return time.time() - entry['time'] > duration def _comp...
24.435897
77
0.610703
d5c21d39111fcddd7601259997b96260c8e27511
10,226
py
Python
example/example.py
Abnormally/DjangoChannelsGraphqlWs
f741c20706901fc37f37fe08f6894c5614d2ab7d
[ "MIT" ]
259
2018-06-27T12:33:54.000Z
2022-03-26T23:09:04.000Z
example/example.py
Abnormally/DjangoChannelsGraphqlWs
f741c20706901fc37f37fe08f6894c5614d2ab7d
[ "MIT" ]
83
2018-06-27T15:04:25.000Z
2022-03-12T19:05:40.000Z
example/example.py
Abnormally/DjangoChannelsGraphqlWs
f741c20706901fc37f37fe08f6894c5614d2ab7d
[ "MIT" ]
59
2018-07-02T20:29:07.000Z
2022-03-12T16:10:53.000Z
# Copyright (C) DATADVANCE, 2010-2021 # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, # ...
33.973422
88
0.658322
d5c2299fb508fae6a52d431e5e9fc129a67ca79f
2,385
py
Python
ismip6_ocean_forcing/__main__.py
nicojourdain/ismip6-ocean-forcing
2c28be2ce9c0e1e94db275a6a3e668ad4f871343
[ "MIT" ]
null
null
null
ismip6_ocean_forcing/__main__.py
nicojourdain/ismip6-ocean-forcing
2c28be2ce9c0e1e94db275a6a3e668ad4f871343
[ "MIT" ]
null
null
null
ismip6_ocean_forcing/__main__.py
nicojourdain/ismip6-ocean-forcing
2c28be2ce9c0e1e94db275a6a3e668ad4f871343
[ "MIT" ]
null
null
null
""" Script for creating ISMIP6 ocean forcing """ import os import argparse import pkg_resources from configparser import ConfigParser, ExtendedInterpolation # make sure the 'Agg' backend is used before any local module get loaded import matplotlib matplotlib.use('Agg') import ismip6_ocean_forcing from ismip6_ocean_f...
36.136364
79
0.699371
d5c23234dddcd700a2f2cfa3654143c7ba580d2c
5,978
py
Python
hyperbox/mutator/fewshot_mutator.py
marsggbo/hyperbox
91dcd04ad30164bcb12209d818df18961fa3f347
[ "MIT" ]
1
2022-01-17T00:34:14.000Z
2022-01-17T00:34:14.000Z
hyperbox/mutator/fewshot_mutator.py
marsggbo/hyperbox
91dcd04ad30164bcb12209d818df18961fa3f347
[ "MIT" ]
null
null
null
hyperbox/mutator/fewshot_mutator.py
marsggbo/hyperbox
91dcd04ad30164bcb12209d818df18961fa3f347
[ "MIT" ]
null
null
null
import os from typing import Optional, Union import numpy as np import torch import torch.nn.functional as F from hyperbox.mutables.spaces import InputSpace, OperationSpace, ValueSpace from hyperbox.mutator.default_mutator import Mutator from hyperbox.utils.logger import get_logger from hyperbox.utils.utils import la...
45.287879
166
0.658581
d5c234cc5576678f88f145afd20fa34fcb4f4888
1,437
py
Python
airiam/terraform/entity_terraformers/IAMInlinePolicyTransformer.py
metahertz/AirIAM
212f84e1b1a51c7a614384f91b220e7f2a57a079
[ "Apache-2.0" ]
501
2020-03-04T16:00:54.000Z
2022-03-30T17:31:10.000Z
airiam/terraform/entity_terraformers/IAMInlinePolicyTransformer.py
rckasa/AirIAM
5a99dc25354c1bc6525dbaf25a3afcd472f71b2f
[ "Apache-2.0" ]
34
2020-03-23T08:12:18.000Z
2022-02-13T08:50:39.000Z
airiam/terraform/entity_terraformers/IAMInlinePolicyTransformer.py
rckasa/AirIAM
5a99dc25354c1bc6525dbaf25a3afcd472f71b2f
[ "Apache-2.0" ]
51
2020-04-16T06:43:29.000Z
2022-03-20T14:20:24.000Z
from airiam.terraform.entity_terraformers.BaseEntityTransformer import BaseEntityTransformer, Principal from airiam.terraform.entity_terraformers.IAMPolicyDocumentTransformer import IAMPolicyDocumentTransformer class IAMInlinePolicyTransformer(BaseEntityTransformer): def __init__(self, entity_json: dict, principa...
55.269231
164
0.773834
d5c26a85c1542faa0e9182a8f8f26dd4d30bb618
849
py
Python
test/test_config.py
Sirlord-Sen/highlighted-text-extraction-service
e7ba728a624cbe10104423393784047026edd4d5
[ "Apache-2.0" ]
null
null
null
test/test_config.py
Sirlord-Sen/highlighted-text-extraction-service
e7ba728a624cbe10104423393784047026edd4d5
[ "Apache-2.0" ]
null
null
null
test/test_config.py
Sirlord-Sen/highlighted-text-extraction-service
e7ba728a624cbe10104423393784047026edd4d5
[ "Apache-2.0" ]
null
null
null
import os import unittest from flask import current_app from flask_testing import TestCase from manage import app class TestDevelopmentConfig(TestCase): def create_app(self): app.config.from_object('config.config.DevelopmentConfig') return app def test_app_is_development(self): self.a...
29.275862
76
0.718492
d5c2853e00d0fe6e8dfdcd7dbcf5443e273d3aeb
1,936
py
Python
rootfs/scheduler/resources/namespace.py
hanlucen/controller
2be591d44508bbca8058d3f856d10d425fa4f519
[ "MIT" ]
null
null
null
rootfs/scheduler/resources/namespace.py
hanlucen/controller
2be591d44508bbca8058d3f856d10d425fa4f519
[ "MIT" ]
19
2020-07-30T06:31:29.000Z
2022-03-14T07:33:44.000Z
rootfs/scheduler/resources/namespace.py
hanlucen/controller
2be591d44508bbca8058d3f856d10d425fa4f519
[ "MIT" ]
9
2020-07-30T02:50:12.000Z
2020-12-11T06:44:19.000Z
from scheduler.exceptions import KubeHTTPException from scheduler.resources import Resource class Namespace(Resource): short_name = 'ns' def get(self, name=None, **kwargs): """ Fetch a single Namespace or a list """ url = '/namespaces' args = [] if name is not ...
30.730159
86
0.566116
d5c2a2ea0392abd06d1c10b0bc3c56f563ffe4fa
18,142
py
Python
kadi/events/orbit_funcs.py
jzuhone/kadi
de4885327d256e156cfe42b2b1700775f5b4d6cf
[ "BSD-3-Clause" ]
1
2015-07-30T18:33:14.000Z
2015-07-30T18:33:14.000Z
kadi/events/orbit_funcs.py
jzuhone/kadi
de4885327d256e156cfe42b2b1700775f5b4d6cf
[ "BSD-3-Clause" ]
104
2015-01-20T18:44:36.000Z
2022-03-29T18:51:55.000Z
kadi/events/orbit_funcs.py
jzuhone/kadi
de4885327d256e156cfe42b2b1700775f5b4d6cf
[ "BSD-3-Clause" ]
2
2018-08-23T02:36:08.000Z
2020-03-13T19:24:36.000Z
# Licensed under a 3-clause BSD style license - see LICENSE.rst from __future__ import division import re import os import logging from pathlib import Path import numpy as np from Chandra.Time import DateTime class NotFoundError(Exception): pass ORBIT_POINTS_DTYPE = [('date', 'U21'), ('name', 'U8'), ...
37.483471
92
0.582461
d5c2b000e0fd5889ec5b3e0e7670d3bca655ec1c
6,135
py
Python
tutorials/fluidmechanics/jet_2D_emulation_SPOD_time.py
SenhuWong/PySPOD
d37b415a6376b6a13d84ce6b25125bcaa64bdbb8
[ "MIT" ]
1
2022-03-11T14:41:07.000Z
2022-03-11T14:41:07.000Z
tutorials/fluidmechanics/jet_2D_emulation_SPOD_time.py
SenhuWong/PySPOD
d37b415a6376b6a13d84ce6b25125bcaa64bdbb8
[ "MIT" ]
null
null
null
tutorials/fluidmechanics/jet_2D_emulation_SPOD_time.py
SenhuWong/PySPOD
d37b415a6376b6a13d84ce6b25125bcaa64bdbb8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ''' This file is subject to the terms and conditions defined in file 'LICENSE.txt', which is part of this source code package. Written by Dr. Gianmarco Mengaldo, May 2020. ''' # python libraries import os import sys import h5py import shutil import numpy as np from p...
31.787565
134
0.711328
d5c34a4cbb337795a285076e0bc4dbf9260ed834
1,989
py
Python
figures/generate_graph_compare_algos_timequery.py
miqwit/claraprint
c2045a74ad2989fcc087305573b9620797d71633
[ "MIT" ]
3
2020-11-07T14:55:09.000Z
2020-11-09T02:22:18.000Z
figures/generate_graph_compare_algos_timequery.py
miqwit/claraprint
c2045a74ad2989fcc087305573b9620797d71633
[ "MIT" ]
1
2021-04-12T10:44:23.000Z
2021-04-22T16:27:38.000Z
figures/generate_graph_compare_algos_timequery.py
miqwit/claraprint
c2045a74ad2989fcc087305573b9620797d71633
[ "MIT" ]
null
null
null
import matplotlib import matplotlib.pyplot as plt import numpy as np # Got from experiment es_multiple_fp_generated # Config: # configs_to_run = [ # Config(algo="chords_chordino", duration=120, letters_to_use=1, range_words=[range(2, 8)], num_sources=[1]), # Config(algo="chords_crema", duration=120, letters_t...
34.293103
113
0.67823
d5c3588f1a0f01307b383226e968b9fa1b2b8727
7,910
py
Python
miniworld/model/network/backends/vde/Wirefilter.py
miniworld-project/miniworld_core
c591bad232b78eae99e8f55cb1b907c1e228484b
[ "MIT" ]
5
2019-05-11T14:57:15.000Z
2021-07-05T00:35:25.000Z
miniworld/model/network/backends/vde/Wirefilter.py
miniworld-project/miniworld_core
c591bad232b78eae99e8f55cb1b907c1e228484b
[ "MIT" ]
27
2017-03-17T07:11:02.000Z
2019-05-26T23:36:56.000Z
miniworld/model/network/backends/vde/Wirefilter.py
miniworld-project/miniworld_core
c591bad232b78eae99e8f55cb1b907c1e228484b
[ "MIT" ]
6
2017-05-03T12:11:33.000Z
2020-04-03T11:44:27.000Z
import logging import re from io import StringIO from miniworld.model.network.linkqualitymodels import LinkQualityConstants from miniworld.log import get_logger from miniworld.model.ShellCmdWrapper import ShellCmdWrapper from miniworld.model.emulation.InterfaceDependentID import InterfaceDependentID from miniworld.mo...
36.962617
163
0.638559
d5c3642fae54318d3d922a2c498a070f4222fa81
30
py
Python
test/integrated/storage_Z/cli/dev/feature_C/feature_F/__init__.py
orkhanshirin/py-dynacli
6891d922bfb403756e8ebb97e5f9698cdeb725f9
[ "MIT" ]
87
2022-02-01T12:47:48.000Z
2022-03-31T10:46:34.000Z
test/integrated/storage_Z/cli/dev/feature_C/feature_F/__init__.py
orkhanshirin/py-dynacli
6891d922bfb403756e8ebb97e5f9698cdeb725f9
[ "MIT" ]
28
2022-02-01T10:16:42.000Z
2022-03-24T10:53:01.000Z
test/integrated/storage_Z/cli/dev/feature_C/feature_F/__init__.py
orkhanshirin/py-dynacli
6891d922bfb403756e8ebb97e5f9698cdeb725f9
[ "MIT" ]
4
2022-02-09T14:10:32.000Z
2022-03-28T16:45:19.000Z
""" The awesome feature-F """
7.5
21
0.6
d5c3a8d1f2440d67ecaae4644d78a302d6aeb4b2
695
py
Python
CodeChef/FEB21C/TEAMNAME.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
2
2020-06-25T21:10:32.000Z
2020-12-10T06:53:45.000Z
CodeChef/FEB21C/TEAMNAME.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
null
null
null
CodeChef/FEB21C/TEAMNAME.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
3
2020-05-15T14:17:09.000Z
2021-07-25T13:18:20.000Z
def solve(): n = int(input()) strings = input().split() characters = dict() keys = [] for i in range(26): characters[chr(i+97)] = set() keys.append(chr(i+97)) for word in strings: characters[word[0]].add(word[1:]) total_count = 0 for i in range(26): words...
26.730769
61
0.503597
d5c435d60e3c19b9c23b5c599ed6f2ef265b17c8
322
py
Python
test/testDataInterface.py
tobytoyin/TesterFactory
150a2625f8fb4eb50d600611d990a8bb8fed96a4
[ "MIT" ]
null
null
null
test/testDataInterface.py
tobytoyin/TesterFactory
150a2625f8fb4eb50d600611d990a8bb8fed96a4
[ "MIT" ]
null
null
null
test/testDataInterface.py
tobytoyin/TesterFactory
150a2625f8fb4eb50d600611d990a8bb8fed96a4
[ "MIT" ]
null
null
null
import unittest import os from src.DataInterface import DataInterface class TestDataInterface(unittest.TestCase): def test_update(self): ds = DataInterface() with self.assertRaises(AssertionError) as cm: ds.data_load(non_key='some_value') if __name__ == "__main__": unittest.main(...
21.466667
53
0.708075
d5c44f96074d8ebe09c9e5ec9df01a9b32b26f4f
17,801
py
Python
sleap/gui/dataviews.py
preeti98/sleap
203c3a03c0c54f8dab242611d9a8d24595e98081
[ "BSD-3-Clause-Clear" ]
null
null
null
sleap/gui/dataviews.py
preeti98/sleap
203c3a03c0c54f8dab242611d9a8d24595e98081
[ "BSD-3-Clause-Clear" ]
null
null
null
sleap/gui/dataviews.py
preeti98/sleap
203c3a03c0c54f8dab242611d9a8d24595e98081
[ "BSD-3-Clause-Clear" ]
null
null
null
""" Data table widgets and view models used in GUI app. """ from PySide2 import QtCore, QtWidgets, QtGui import numpy as np import os from operator import itemgetter from typing import Any, Callable, Dict, List, Optional, Type from sleap.gui.state import GuiState from sleap.gui.commands import CommandContext from ...
33.397749
102
0.606539
d5c45b200ce07ca5c242a5ba5977005baece8ebd
700
py
Python
trinity/protocol/eth/handlers.py
jin10086/py-evm
da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8
[ "MIT" ]
5
2018-09-28T20:01:42.000Z
2022-02-22T19:54:46.000Z
trinity/protocol/eth/handlers.py
jin10086/py-evm
da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8
[ "MIT" ]
null
null
null
trinity/protocol/eth/handlers.py
jin10086/py-evm
da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8
[ "MIT" ]
1
2019-02-27T21:29:16.000Z
2019-02-27T21:29:16.000Z
from trinity.protocol.common.handlers import ( BaseExchangeHandler, ) from .exchanges import ( GetBlockBodiesExchange, GetBlockHeadersExchange, GetNodeDataExchange, GetReceiptsExchange, ) class ETHExchangeHandler(BaseExchangeHandler): _exchange_config = { 'get_block_bodies': GetBlockB...
26.923077
53
0.757143
d5c47ba519c18f6a65aade0b5205e0cb363995df
33,162
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_gallery_applications_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_gallery_applications_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_gallery_applications_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.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 ...
44.275033
224
0.680267
d5c485d5fc31cc64928746e7da849f9f9c4ccb52
2,342
py
Python
tests/st/ops/ascend/vector/test_erf_ad_001.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
tests/st/ops/ascend/vector/test_erf_ad_001.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
tests/st/ops/ascend/vector/test_erf_ad_001.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
30
2020-07-17T01:04:14.000Z
2021-12-27T14:05:19.000Z
# Copyright 2019 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 # # Unless required by applicable law or a...
30.415584
100
0.59351
d5c4a390c0ccb12ef6b604eb702ae2908bbda2bf
8,322
py
Python
df_config/management/commands/config.py
d9pouces/df_conf
b905e8efea80633c3b95c22c19c0d13604a71a5b
[ "CECILL-B" ]
null
null
null
df_config/management/commands/config.py
d9pouces/df_conf
b905e8efea80633c3b95c22c19c0d13604a71a5b
[ "CECILL-B" ]
null
null
null
df_config/management/commands/config.py
d9pouces/df_conf
b905e8efea80633c3b95c22c19c0d13604a71a5b
[ "CECILL-B" ]
null
null
null
# ############################################################################## # This file is part of df_config # # # # Copyright (C) 2020 Matthieu Gallet <github@19pouces.net> ...
39.818182
117
0.51478
d5c4ab7b69253c2ccd5ca1e1946556ca48f60668
4,475
py
Python
opsbro/zonemanager.py
naparuba/opsbro
98618a002cd47250d21e7b877a24448fc95fec80
[ "MIT" ]
32
2017-08-29T08:57:16.000Z
2021-04-21T08:53:04.000Z
opsbro/zonemanager.py
naparuba/opsbro
98618a002cd47250d21e7b877a24448fc95fec80
[ "MIT" ]
108
2017-09-04T19:59:28.000Z
2022-03-31T08:12:07.000Z
opsbro/zonemanager.py
naparuba/kunai
98618a002cd47250d21e7b877a24448fc95fec80
[ "MIT" ]
8
2015-02-03T12:30:53.000Z
2017-07-29T19:43:54.000Z
import os import threading from .library import libstore from .log import LoggerFactory # Global logger for this part logger = LoggerFactory.create_logger('configuration') class Zone(object): def __init__(self): pass # When you have more than 32 zones level, you fuck up with a loop in fact :) MAX_ZONE...
33.901515
110
0.620559
d5c4c7a0bdbba4355723728f1a96b54544b74913
373
py
Python
tests/test_datasets_manipulation/test_wikidump/test_next_output_file_name.py
gabimelo/portuguese_wsc
b07308712e0e9b63fbb10b5b8a8a4be95fc1ed1c
[ "MIT" ]
6
2020-04-17T17:37:24.000Z
2021-12-04T03:03:46.000Z
tests/test_datasets_manipulation/test_wikidump/test_next_output_file_name.py
gabimelo/portuguese_wsc
b07308712e0e9b63fbb10b5b8a8a4be95fc1ed1c
[ "MIT" ]
62
2019-05-21T21:06:42.000Z
2020-01-26T17:33:45.000Z
tests/test_datasets_manipulation/test_wikidump/test_next_output_file_name.py
gabimelo/portuguese_wsc
b07308712e0e9b63fbb10b5b8a8a4be95fc1ed1c
[ "MIT" ]
1
2019-07-22T10:19:38.000Z
2019-07-22T10:19:38.000Z
from src.datasets_manipulation.wikidump import get_output_file_name from src.helpers.consts import WIKI_PT_TXT_DIR_NAME, WIKI_PT_TXT_FILE_BASE_NAME class TestNextOutputFileName(): def test_get_output_file_name(self): assert get_output_file_name(WIKI_PT_TXT_DIR_NAME, 0) == \ WIKI_PT_TXT_DIR_NAM...
41.444444
83
0.780161
d5c4c7b5366ade5ec6fa08c52e9802fe99272163
5,099
py
Python
api/common/pg_parse.py
weng-lab/SCREEN
e8e7203e2f9baa2de70e2f75bdad3ae24b568367
[ "MIT" ]
5
2020-07-30T02:35:20.000Z
2020-12-24T01:26:47.000Z
api/common/pg_parse.py
weng-lab/SCREEN
e8e7203e2f9baa2de70e2f75bdad3ae24b568367
[ "MIT" ]
6
2021-03-04T10:30:11.000Z
2022-03-16T16:47:47.000Z
api/common/pg_parse.py
weng-lab/SCREEN
e8e7203e2f9baa2de70e2f75bdad3ae24b568367
[ "MIT" ]
2
2020-12-08T10:05:02.000Z
2022-03-10T09:41:19.000Z
#!/usr/bin/env python3 # SPDX-License-Identifier: MIT # Copyright (c) 2016-2020 Michael Purcaro, Henry Pratt, Jill Moore, Zhiping Weng import sys import os from natsort import natsorted from collections import namedtuple import gzip from coord import Coord from pg_common import PGcommon from gene_parse import Gene...
32.896774
123
0.56011
d5c4ff589175b716c91cfc3dddf6c6c926926ac5
85,081
py
Python
spyder/utils/syntaxhighlighters.py
Nicztin/spyder
1c7b2232d2abbf1e101a1e2ab0552b32e8472bd6
[ "MIT" ]
1
2019-09-25T15:08:24.000Z
2019-09-25T15:08:24.000Z
spyder/utils/syntaxhighlighters.py
jorgeps86/spyder
1c7b2232d2abbf1e101a1e2ab0552b32e8472bd6
[ "MIT" ]
null
null
null
spyder/utils/syntaxhighlighters.py
jorgeps86/spyder
1c7b2232d2abbf1e101a1e2ab0552b32e8472bd6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright © Spyder Project Contributors # Licensed under the terms of the MIT License # (see spyder/__init__.py for details) """ Editor widget syntax highlighters based on QtGui.QSyntaxHighlighter (Python syntax highlighting rules are inspired from idlelib) """ # Standard librar...
60.555872
6,096
0.63818
d5c50c27c84038c49764892dd2543e43fcef9b83
473
py
Python
virtual/Scripts/pasteurize-script.py
pjloveshiphop/s3_counter
f9855c855028f1c58c687adc3df3c0e56b000f21
[ "MIT" ]
null
null
null
virtual/Scripts/pasteurize-script.py
pjloveshiphop/s3_counter
f9855c855028f1c58c687adc3df3c0e56b000f21
[ "MIT" ]
null
null
null
virtual/Scripts/pasteurize-script.py
pjloveshiphop/s3_counter
f9855c855028f1c58c687adc3df3c0e56b000f21
[ "MIT" ]
null
null
null
#!"c:\users\default.desktop-6f3btuf\desktop\patrick chang\garbage\s3browser\virtual\scripts\python.exe" # EASY-INSTALL-ENTRY-SCRIPT: 'future==0.18.2','console_scripts','pasteurize' __requires__ = 'future==0.18.2' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0]...
36.384615
103
0.697674
d5c54f986cdcb5de1cc0b00e2a607c416e9b36d4
2,114
py
Python
gold.py
rayjustinhuang/BitesofPy
03b694c5259ff607621419d9677c5caff90a6057
[ "MIT" ]
null
null
null
gold.py
rayjustinhuang/BitesofPy
03b694c5259ff607621419d9677c5caff90a6057
[ "MIT" ]
null
null
null
gold.py
rayjustinhuang/BitesofPy
03b694c5259ff607621419d9677c5caff90a6057
[ "MIT" ]
null
null
null
import pandas as pd # https://pkgstore.datahub.io/core/gold-prices/annual_csv/data/343f626dd4f7bae813cfaac23fccd1bc/annual_csv.csv gold_prices = """ 1950-12,34.720 1951-12,34.660 1952-12,34.790 1953-12,34.850 1954-12,35.040 1955-12,34.970 1956-12,34.900 1957-12,34.990 1958-12,35.090 1959-12,35.050 1960-12,35.540 1961-...
46.977778
110
0.689215
d5c5639dd89563cdbe42f7ee22343766a5ee85e4
5,578
py
Python
src/server.py
amosboldor/http-server
51d7507695aaf3bcfaf0c3d5e6d58b9b6bf74f26
[ "MIT" ]
null
null
null
src/server.py
amosboldor/http-server
51d7507695aaf3bcfaf0c3d5e6d58b9b6bf74f26
[ "MIT" ]
null
null
null
src/server.py
amosboldor/http-server
51d7507695aaf3bcfaf0c3d5e6d58b9b6bf74f26
[ "MIT" ]
null
null
null
# encoding: utf-8 """Small localtcp/ip server to host connections from local client.""" import socket import datetime import os from mimetypes import MimeTypes WALK_DIR = os.getcwd() if WALK_DIR.split('/')[-1] != 'src': # code to make tox work WALK_DIR += '/src' WALK_DIR += '/webroot' ADDRESS = ('127.0.0.1', 50...
34.012195
103
0.609179
d5c58a614b5e13065a284dcd69ac366be1763162
32,890
py
Python
tests/test_invoice.py
trag-stripe/dj-stripe
31fac752ab6540a917a554907d799e41ac3eba9c
[ "MIT" ]
null
null
null
tests/test_invoice.py
trag-stripe/dj-stripe
31fac752ab6540a917a554907d799e41ac3eba9c
[ "MIT" ]
null
null
null
tests/test_invoice.py
trag-stripe/dj-stripe
31fac752ab6540a917a554907d799e41ac3eba9c
[ "MIT" ]
null
null
null
""" dj-stripe Invoice Model Tests. """ from copy import deepcopy from unittest.mock import ANY, patch from django.contrib.auth import get_user_model from django.test.testcases import TestCase from stripe.error import InvalidRequestError from djstripe.models import Invoice, Plan, Subscription, UpcomingInvoice from djs...
33.356998
88
0.680389
d5c58b8db2637903bdcc0f9eb1bcdef06b6f57a4
1,327
py
Python
RandomPointGenerator/RandomUniformSampleGenerator.py
johnsbuck/MapGeneration
0022442995772bc2ec56210a3d6465f7d766ad4d
[ "MIT" ]
5
2019-06-02T22:52:26.000Z
2019-07-18T22:51:19.000Z
RandomPointGenerator/RandomUniformSampleGenerator.py
johnsbuck/MapGeneration
0022442995772bc2ec56210a3d6465f7d766ad4d
[ "MIT" ]
1
2022-02-22T17:48:41.000Z
2022-02-22T17:48:41.000Z
RandomPointGenerator/RandomUniformSampleGenerator.py
johnsbuck/MapGeneration
0022442995772bc2ec56210a3d6465f7d766ad4d
[ "MIT" ]
1
2019-06-03T07:55:10.000Z
2019-06-03T07:55:10.000Z
import numpy as np class RandomUniformSampleGenerator(object): def __init__(self, num_points, extent, seed=None): # -------------------------------- # User Parameters # -------------------------------- # Define self._num_points self.num_points = num_points # Defin...
25.519231
112
0.524491
d5c5accb0ef54ef1b70931f106123ad295d2fb46
1,777
py
Python
experiments/ashvin/vae/fixed/pointmass/sweep_discount.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/vae/fixed/pointmass/sweep_discount.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/vae/fixed/pointmass/sweep_discount.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
from rlkit.envs.multitask.point2d import MultitaskImagePoint2DEnv from rlkit.envs.multitask.pusher2d import FullPusher2DEnv from rlkit.launchers.arglauncher import run_variants import rlkit.misc.hyperparameter as hyp from rlkit.torch.vae.vae_experiment import experiment if __name__ == "__main__": # noinspection P...
29.616667
73
0.603827
d5c5bba60e2dbc9afa5e606c41ac4b189bb31cb9
7,297
py
Python
src/wpipe/Parameter.py
benw1/WINGS
32d4bfd073da0b86d2340cde25a5601d0a1ec95e
[ "RSA-MD" ]
4
2022-01-04T18:24:56.000Z
2022-01-27T08:23:37.000Z
src/wpipe/Parameter.py
benw1/WINGS
32d4bfd073da0b86d2340cde25a5601d0a1ec95e
[ "RSA-MD" ]
null
null
null
src/wpipe/Parameter.py
benw1/WINGS
32d4bfd073da0b86d2340cde25a5601d0a1ec95e
[ "RSA-MD" ]
null
null
null
#!/usr/bin/env python """ Contains the Parameter class definition Please note that this module is private. The Parameter class is available in the main ``wpipe`` namespace - use that instead. """ from .core import datetime, si from .core import initialize_args, wpipe_to_sqlintf_connection, in_session from .core import...
34.419811
105
0.587502