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
33f989992e2ab19b1a12d808669585568bd8c549
764
py
Python
python/04_sets/09_set.symmetric_difference()operation.py
jaimiles23/hacker_rank
0580eac82e5d0989afabb5c2e66faf09713f891b
[ "Apache-2.0" ]
null
null
null
python/04_sets/09_set.symmetric_difference()operation.py
jaimiles23/hacker_rank
0580eac82e5d0989afabb5c2e66faf09713f891b
[ "Apache-2.0" ]
null
null
null
python/04_sets/09_set.symmetric_difference()operation.py
jaimiles23/hacker_rank
0580eac82e5d0989afabb5c2e66faf09713f891b
[ "Apache-2.0" ]
3
2021-09-22T11:06:58.000Z
2022-01-25T09:29:24.000Z
# Solution to [Set .symmetric_difference() Operation](https://www.hackerrank.com/challenges/py-set-symmetric-difference-operation/problem) ########## # Imports ########## from typing import Tuple, Set ########## # Input ########## def get_inputs() -> Tuple[Set[int]]: """Returns two lists of integers Retu...
20.105263
138
0.616492
33f9be4f959d3c0fdcdac8d2cbae466531b25d74
1,623
py
Python
src/azure-cli-core/azure/cli/core/_debug.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
null
null
null
src/azure-cli-core/azure/cli/core/_debug.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
3
2021-03-26T00:48:20.000Z
2022-03-29T22:05:39.000Z
src/azure-cli-core/azure/cli/core/_debug.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
1
2017-12-28T04:51:44.000Z
2017-12-28T04:51:44.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
40.575
108
0.675293
33f9c76abe3d74619f71c4a91fb748c703862384
6,668
py
Python
pydefect/corrections/tests/test_efnv_corrections.py
wangvei/pydefect
e909796c429e16982cefe549d16881039bce89e7
[ "MIT" ]
1
2021-06-07T03:05:39.000Z
2021-06-07T03:05:39.000Z
pydefect/corrections/tests/test_efnv_corrections.py
wangvei/pydefect
e909796c429e16982cefe549d16881039bce89e7
[ "MIT" ]
null
null
null
pydefect/corrections/tests/test_efnv_corrections.py
wangvei/pydefect
e909796c429e16982cefe549d16881039bce89e7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import tempfile import numpy as np from pydefect.corrections.efnv_corrections import ( calc_max_sphere_radius, create_lattice_set, calc_relative_potential, Ewald, ExtendedFnvCorrection, point_charge_energy, constants_for_anisotropic_ewald_sum) #from pydefect.corrections.ca...
36.23913
78
0.662867
33f9d22014c2bd2071f20d334a1a6580e1a1de94
130,885
py
Python
Florence/QuadratureRules/QuadraturePointsWeightsTet.py
jdlaubrie/florence
830dca4a34be00d6e53cbec3007c10d438b27f57
[ "MIT" ]
null
null
null
Florence/QuadratureRules/QuadraturePointsWeightsTet.py
jdlaubrie/florence
830dca4a34be00d6e53cbec3007c10d438b27f57
[ "MIT" ]
null
null
null
Florence/QuadratureRules/QuadraturePointsWeightsTet.py
jdlaubrie/florence
830dca4a34be00d6e53cbec3007c10d438b27f57
[ "MIT" ]
null
null
null
from __future__ import print_function import numpy as np from .NumericIntegrator import GaussQuadrature def QuadraturePointsWeightsTet(C,Opt=1): # Opt IS FOR TYPE OF QUADTRATURE # Opt=1 IS FOR OPTIMUM QUADRATURE TECHNIQUE (DEFAULT) # Opt=0 IS FOR GAUSSIAN QUADRATURE TECHNIQUE zw = [] if Opt==0 o...
89.158719
118
0.668702
33f9e00988cfb0292e933908abb0dc936907a8ca
3,249
py
Python
tme3/QueryParser.py
raoufkeskes/SearchEngine_FromScratch
3e8d760efa3673b279b7f5cf61957c71a766cdd8
[ "MIT" ]
1
2021-03-27T14:14:33.000Z
2021-03-27T14:14:33.000Z
tme3/QueryParser.py
raoufkeskes/SearchEngine_FromScratch
3e8d760efa3673b279b7f5cf61957c71a766cdd8
[ "MIT" ]
null
null
null
tme3/QueryParser.py
raoufkeskes/SearchEngine_FromScratch
3e8d760efa3673b279b7f5cf61957c71a766cdd8
[ "MIT" ]
1
2021-05-14T20:30:05.000Z
2021-05-14T20:30:05.000Z
# -*- coding: utf-8 -*- """ Created on Tue Mar 5 10:20:50 2019 @author: raoufks """ from .Query import Query import json class QueryParser : tags = ['.I' , '.W' , '.A' , '.N' ] @staticmethod def buildJSONFormat ( dictionary ) : temp_dict = {} for key in dictionary: ...
33.153061
95
0.357956
33f9e47f7b7f4005963cee779d1217aa1a013151
2,680
py
Python
experiments/syn_scott/complete_inference.py
neptunes5thmoon/simpleference
96c74187bd3d83f6f1e910e72e56f45d6cc8d5d9
[ "MIT" ]
2
2019-10-13T12:10:00.000Z
2021-10-09T11:49:43.000Z
experiments/syn_scott/complete_inference.py
neptunes5thmoon/simpleference
96c74187bd3d83f6f1e910e72e56f45d6cc8d5d9
[ "MIT" ]
null
null
null
experiments/syn_scott/complete_inference.py
neptunes5thmoon/simpleference
96c74187bd3d83f6f1e910e72e56f45d6cc8d5d9
[ "MIT" ]
1
2018-05-08T14:10:59.000Z
2018-05-08T14:10:59.000Z
from __future__ import print_function import sys import os from concurrent.futures import ProcessPoolExecutor from subprocess import call sys.path.append('/groups/saalfeld/home/heinrichl/Projects/simpleference') from simpleference.inference.util import offset_list_from_precomputed import z5py from precompute_offsets ...
36.216216
106
0.677985
33f9e8c8f9a19625cc2db3f1e9b4ef52920431f1
1,382
py
Python
dydx_alerts/run_forever.py
maxholloway/dydx-alerts
d480edf1c96a6330122eb62b15fb0e5a610d38ba
[ "MIT" ]
3
2022-03-07T04:55:16.000Z
2022-03-17T18:35:59.000Z
dydx_alerts/run_forever.py
maxholloway/dydx-alerts
d480edf1c96a6330122eb62b15fb0e5a610d38ba
[ "MIT" ]
null
null
null
dydx_alerts/run_forever.py
maxholloway/dydx-alerts
d480edf1c96a6330122eb62b15fb0e5a610d38ba
[ "MIT" ]
null
null
null
""" Entrypoint for running the bot. """ import asyncio from datetime import datetime as dt from log import get_logger, IMPORTANT_INFO_LEVEL from run import main async def run_forever(timeout_seconds, delay_seconds, logger): """ Thin wrapper above run.py's `main()` function; just run the `main()` on repea...
30.043478
121
0.648336
33f9e90d90a232928df99f11d10d53848215c613
526
py
Python
archive/vizsequence.py
donsheehy/dsviz
d43d3b46507ed76dbc7faf200758abaf856ad7f0
[ "MIT" ]
1
2021-04-25T11:37:43.000Z
2021-04-25T11:37:43.000Z
archive/vizsequence.py
donsheehy/dsviz
d43d3b46507ed76dbc7faf200758abaf856ad7f0
[ "MIT" ]
null
null
null
archive/vizsequence.py
donsheehy/dsviz
d43d3b46507ed76dbc7faf200758abaf856ad7f0
[ "MIT" ]
null
null
null
from ds_viz.style import Style boxstyle = [Style(fill=(1,1,1,0), stroke_width=2.5, stroke=(0,0,0))] def drawlist(L, position, canvas, style = boxstyle): x,y = position padding = 4 height = 26 + 2 * padding width = 20 texty = y + height // 2 for item in L: string = str(item) te...
27.684211
68
0.589354
33f9efadc54c91bd727bab8f3f3a075d54b9afb2
8,584
py
Python
lightly/openapi_generated/swagger_client/configuration.py
Tekrific/lightly
75a1d56b4cee77f68e0f3166e3a412711d0dbb2d
[ "MIT" ]
1,515
2020-10-05T13:04:17.000Z
2022-03-31T16:14:55.000Z
lightly/openapi_generated/swagger_client/configuration.py
Tekrific/lightly
75a1d56b4cee77f68e0f3166e3a412711d0dbb2d
[ "MIT" ]
628
2020-10-14T11:38:51.000Z
2022-03-31T14:40:54.000Z
lightly/openapi_generated/swagger_client/configuration.py
Tekrific/lightly
75a1d56b4cee77f68e0f3166e3a412711d0dbb2d
[ "MIT" ]
108
2020-10-17T08:31:06.000Z
2022-03-20T16:44:22.000Z
# coding: utf-8 """ Lightly API Lightly.ai enables you to do self-supervised learning in an easy and intuitive way. The lightly.ai OpenAPI spec defines how one can interact with our REST API to unleash the full potential of lightly.ai # noqa: E501 OpenAPI spec version: 1.0.0 Contact: support@lightly...
32.638783
220
0.601118
33fa014e4276e95961a5bbd9b8efcb3965c2d3ac
557
py
Python
modoboa_imap_migration/handlers.py
modoboa/modoboa-imap-migration
23ad52b1ed7a0e52bbef0a900b6efd0f364f2633
[ "0BSD" ]
14
2016-05-26T06:27:22.000Z
2021-05-26T13:34:48.000Z
modoboa_imap_migration/handlers.py
modoboa/modoboa-imap-migration
23ad52b1ed7a0e52bbef0a900b6efd0f364f2633
[ "0BSD" ]
88
2015-11-03T11:19:59.000Z
2022-03-01T23:05:11.000Z
modoboa_imap_migration/handlers.py
modoboa/modoboa-imap-migration
23ad52b1ed7a0e52bbef0a900b6efd0f364f2633
[ "0BSD" ]
10
2016-08-11T07:41:11.000Z
2020-11-04T11:14:48.000Z
"""IMAP migration handlers.""" from django.urls import reverse from django.dispatch import receiver from django.utils.translation import ugettext as _ from modoboa.core import signals as core_signals @receiver(core_signals.extra_user_menu_entries) def menu(sender, location, user, **kwargs): """Return extra menu...
27.85
56
0.692998
33fa5717ca8600bb8ce3f6786c582d6ad0c6abc1
41
py
Python
shenanigan/callbacks/__init__.py
deepmagd/shenaniGAN
02f83aec1291c2a2a8821b3a0c162264075157bb
[ "MIT" ]
1
2019-12-13T22:32:50.000Z
2019-12-13T22:32:50.000Z
shenanigan/callbacks/__init__.py
deepmagd/shenaniGAN
02f83aec1291c2a2a8821b3a0c162264075157bb
[ "MIT" ]
40
2020-05-05T08:16:31.000Z
2022-03-12T00:19:16.000Z
shenanigan/callbacks/__init__.py
deepmagd/TexrayGAN
02f83aec1291c2a2a8821b3a0c162264075157bb
[ "MIT" ]
null
null
null
from .callbacks import LearningRateDecay
20.5
40
0.878049
33fa8b32a75509025667889dee2b48f5ac79831b
655
py
Python
old_src/main_plotter.py
faradaymahe/curie_calculator
925d1c4549721333c48d9e0d335204f77339d876
[ "MIT" ]
10
2021-03-19T18:37:37.000Z
2021-11-24T11:28:48.000Z
old_src/main_plotter.py
faradaymahe/curie_calculator
925d1c4549721333c48d9e0d335204f77339d876
[ "MIT" ]
6
2021-09-05T18:55:05.000Z
2021-09-22T11:36:39.000Z
old_src/main_plotter.py
faradaymahe/curie_calculator
925d1c4549721333c48d9e0d335204f77339d876
[ "MIT" ]
8
2021-03-22T09:41:50.000Z
2022-03-09T04:31:25.000Z
from curie_calculator import input_reader from solver import get_results from plotter import plot_E_geom, plot_E_tot, plot_TCs input_folder, num_of_structures, magnetic_atoms, spin = input_reader() print(f'Working with "{num_of_structures}" structures from {input_folder} folder:') out_dict = get_results(input_folder...
38.529412
83
0.80916
33fa925fc490f52fdd2cb6a555d077b4c13f6da1
10,815
py
Python
src/vault/__main__.py
fkantelberg/vault-recovery
274e0cec98dcec223829e233a96767c715236acd
[ "MIT" ]
null
null
null
src/vault/__main__.py
fkantelberg/vault-recovery
274e0cec98dcec223829e233a96767c715236acd
[ "MIT" ]
null
null
null
src/vault/__main__.py
fkantelberg/vault-recovery
274e0cec98dcec223829e233a96767c715236acd
[ "MIT" ]
null
null
null
import argparse import json import os import sys from getpass import getpass from .utils import error, file_type, info, output, serialize from .vault import Tables, Vault def parser_add_basics(parser): parser.add_argument( "-v", "--verbose", default=False, action="store_true", ...
28.763298
87
0.602681
33faa8213672e11d6b13b852b798576a97a859ff
4,273
py
Python
example/cht_interpolation.py
narahahn/continuous_measurement
2391f712880ec18957dc5491af6cd3665b97e086
[ "MIT" ]
null
null
null
example/cht_interpolation.py
narahahn/continuous_measurement
2391f712880ec18957dc5491af6cd3665b97e086
[ "MIT" ]
null
null
null
example/cht_interpolation.py
narahahn/continuous_measurement
2391f712880ec18957dc5491af6cd3665b97e086
[ "MIT" ]
null
null
null
""" Continuous measurement based on modal analysis * point source in a free-field * omnidirectional microphone moving on a circle at a constant speed * captured signal computed by using fractional delay filters + oversampling * system identification based on modal analysis of each set of N sub-samples """ import nump...
29.068027
93
0.698104
33faaa300db3fc79485789a63814cb71b4e77ab8
2,006
py
Python
moto/cognitoidentity/responses.py
harveywi/moto
3a5d857a60c3a2d140ed2c8adfe8dcaf71a4cac8
[ "Apache-2.0" ]
2
2018-01-29T14:50:38.000Z
2018-05-12T10:45:31.000Z
moto/cognitoidentity/responses.py
harveywi/moto
3a5d857a60c3a2d140ed2c8adfe8dcaf71a4cac8
[ "Apache-2.0" ]
1
2021-03-19T11:56:45.000Z
2021-03-19T11:56:45.000Z
moto/cognitoidentity/responses.py
harveywi/moto
3a5d857a60c3a2d140ed2c8adfe8dcaf71a4cac8
[ "Apache-2.0" ]
12
2017-09-06T22:11:15.000Z
2021-05-28T17:22:31.000Z
from __future__ import unicode_literals from moto.core.responses import BaseResponse from .models import cognitoidentity_backends from .utils import get_random_identity_id class CognitoIdentityResponse(BaseResponse): def create_identity_pool(self): identity_pool_name = self._get_param('IdentityPoolName...
46.651163
112
0.775174
33fac30497f228c0ea04903cac1537aaf643f91d
1,598
py
Python
testing_ideas/scraping_with_selenium/selenium_doi_scraper.py
hschilling/data-collection-and-prep
b70ab54fd887592bad05d5748f492fc2f9ef0f6f
[ "Unlicense" ]
null
null
null
testing_ideas/scraping_with_selenium/selenium_doi_scraper.py
hschilling/data-collection-and-prep
b70ab54fd887592bad05d5748f492fc2f9ef0f6f
[ "Unlicense" ]
41
2021-01-01T14:01:30.000Z
2021-01-27T20:17:21.000Z
testing_ideas/scraping_with_selenium/selenium_doi_scraper.py
hschilling/data-collection-and-prep
b70ab54fd887592bad05d5748f492fc2f9ef0f6f
[ "Unlicense" ]
5
2021-02-08T14:19:35.000Z
2021-10-19T12:10:55.000Z
from selenium import webdriver from bs4 import BeautifulSoup import pandas as pd import re options = webdriver.ChromeOptions() options.add_argument('--ignore-certificate-errors') options.add_argument('--incognito') options.add_argument('--headless') path_to_driver = '/Users/jerryqian/Downloads/chromedriver' driver = w...
30.150943
85
0.5801
33fac82968c5ed08ce7b328d3e2ae9ca09bdc93e
1,609
py
Python
ts/torch_handler/video_classifier.py
hahaxun/serve
5f582940b8b4d253c65e4273bc2bdb0b57698681
[ "Apache-2.0" ]
null
null
null
ts/torch_handler/video_classifier.py
hahaxun/serve
5f582940b8b4d253c65e4273bc2bdb0b57698681
[ "Apache-2.0" ]
null
null
null
ts/torch_handler/video_classifier.py
hahaxun/serve
5f582940b8b4d253c65e4273bc2bdb0b57698681
[ "Apache-2.0" ]
null
null
null
""" Module for image classification default handler """ import torch import torch.nn.functional as F from torchvision import transforms from .video_handler import VideoHandler from ..utils.util import map_class_to_label class VideoClassifier(VideoHandler): """ ImageClassifier handler class. This handler tak...
26.816667
79
0.598508
33faede81d5504ead9706827efcba6bcd6d5669c
10,829
py
Python
tf2_dashboard.py
chuckclift/tf2_dashboard
1f42d42ba7cf44237f6e29f2e25e8663262ea7d5
[ "MIT" ]
null
null
null
tf2_dashboard.py
chuckclift/tf2_dashboard
1f42d42ba7cf44237f6e29f2e25e8663262ea7d5
[ "MIT" ]
null
null
null
tf2_dashboard.py
chuckclift/tf2_dashboard
1f42d42ba7cf44237f6e29f2e25e8663262ea7d5
[ "MIT" ]
null
null
null
""" A gui dashboard that reads the Team Fortress 2 log and shows stats about the game """ import os from typing import List, Dict from statistics import mean import tkinter as tk from collections import defaultdict import sqlite3 from PIL import ImageTk, Image # type: ignore from log_parsing import * #pylint: disable...
35.504918
92
0.632099
33fb178ebe79975c7d2f63a68048c5ab22ad53f1
6,919
py
Python
mathics/builtin/numbers/diffeqns.py
rebcabin/mathics-core
0cbf808fb9fb91e0a32d0aa9d1af1477d0258f41
[ "Apache-2.0" ]
null
null
null
mathics/builtin/numbers/diffeqns.py
rebcabin/mathics-core
0cbf808fb9fb91e0a32d0aa9d1af1477d0258f41
[ "Apache-2.0" ]
null
null
null
mathics/builtin/numbers/diffeqns.py
rebcabin/mathics-core
0cbf808fb9fb91e0a32d0aa9d1af1477d0258f41
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Differential Equations """ import sympy from mathics.builtin.base import Builtin from mathics.core.expression import Expression from mathics.core.convert import from_sympy class DSolve(Builtin): """ <dl> <dt>'DSolve[$eq$, $y$[$x$], $x$]' <dd>solves a differential equa...
31.884793
154
0.468998
33fb255086dfde4f9a713e6cd5f22a209eafc4f4
903
py
Python
I2AE/setup.py
Xqua/standalone-Mouse
1655a2cf15563155a13d6094638c5d440a383005
[ "BSD-3-Clause" ]
2
2018-10-16T01:52:14.000Z
2021-03-16T11:53:46.000Z
I2AE/setup.py
Xqua/standalone-Mouse
1655a2cf15563155a13d6094638c5d440a383005
[ "BSD-3-Clause" ]
2
2018-11-24T00:16:44.000Z
2019-11-11T09:01:26.000Z
I2AE/setup.py
Xqua/standalone-Mouse
1655a2cf15563155a13d6094638c5d440a383005
[ "BSD-3-Clause" ]
2
2018-11-21T23:55:04.000Z
2020-12-10T16:52:54.000Z
from setuptools import setup, find_packages from codecs import open from os import path here = path.abspath(path.dirname(__file__)) # Get the long description from the README file with open(path.join(here, 'README.md'), encoding='utf-8') as f: long_description = f.read() # Arguments marked as "Required" below mu...
31.137931
75
0.688815
33fb35c5a5d496113c03a266e25141a13aae4b3b
901
py
Python
src/backend/tests/test_utils/test_utils_funcs.py
rropen/SFM
48bb1dfa5979e2e142fd652ce653a771c9d8a6df
[ "MIT" ]
3
2021-09-13T18:20:23.000Z
2022-02-07T16:13:07.000Z
src/backend/tests/test_utils/test_utils_funcs.py
rropen/SFM
48bb1dfa5979e2e142fd652ce653a771c9d8a6df
[ "MIT" ]
48
2021-08-30T14:17:14.000Z
2022-02-14T14:54:16.000Z
src/backend/tests/test_utils/test_utils_funcs.py
rropen/SFM
48bb1dfa5979e2e142fd652ce653a771c9d8a6df
[ "MIT" ]
1
2021-10-30T12:06:42.000Z
2021-10-30T12:06:42.000Z
import pytest from typing import List from fastapi.testclient import TestClient from requests.sessions import HTTPAdapter from sqlmodel import Session, select, and_ from datetime import datetime, timedelta from fastapi import HTTPException, Request from sfm.models import WorkItem, Project, Commit from sfm.utils import ...
31.068966
63
0.783574
33fb43099830e6d724ac62b8dd7ba6bff46d21a7
3,696
py
Python
dwave/embedding/pegasus.py
davage/dwave-system
b899077ce024e666fe6de6b9c4a8f2d42cc7a991
[ "Apache-2.0" ]
1
2019-11-06T19:17:46.000Z
2019-11-06T19:17:46.000Z
dwave/embedding/pegasus.py
davage/dwave-system
b899077ce024e666fe6de6b9c4a8f2d42cc7a991
[ "Apache-2.0" ]
null
null
null
dwave/embedding/pegasus.py
davage/dwave-system
b899077ce024e666fe6de6b9c4a8f2d42cc7a991
[ "Apache-2.0" ]
null
null
null
from dwave_networkx.generators.chimera import chimera_graph from dwave_networkx.generators.pegasus import (get_tuple_defragmentation_fn, get_tuple_fragmentation_fn, pegasus_coordinates, pegasus_graph) from dwave.embedding.polynomialembedder import processor import networkx as nx @nx.utils.decorators.nodes_or_numb...
45.62963
105
0.732955
33fb4638e4a61331a89a4c17dcfedeca810c41c6
1,476
py
Python
configure.py
BurnySc2/twitch-sc2-irc-bot
da0b19f2395f7121f085c8c9da52308d2d32d4eb
[ "MIT" ]
null
null
null
configure.py
BurnySc2/twitch-sc2-irc-bot
da0b19f2395f7121f085c8c9da52308d2d32d4eb
[ "MIT" ]
null
null
null
configure.py
BurnySc2/twitch-sc2-irc-bot
da0b19f2395f7121f085c8c9da52308d2d32d4eb
[ "MIT" ]
null
null
null
from pathlib import Path import os from models.channels import Channels from models.users import Users def set_up_channels(): channels_file_path = Path(__file__).parent / "data" / "channels.json" channels_to_join = [] input_channel_name = None while input_channel_name is None or input_channel_name !...
31.404255
84
0.695799
33fb4ccdf4f373a9e9bc99c0148e09c497775ee8
1,137
py
Python
src/models/modules/split_attention.py
takedarts/DenseResNet
d5f9c143ed3c484436a2a5bac366c3795e5d47ec
[ "MIT" ]
null
null
null
src/models/modules/split_attention.py
takedarts/DenseResNet
d5f9c143ed3c484436a2a5bac366c3795e5d47ec
[ "MIT" ]
null
null
null
src/models/modules/split_attention.py
takedarts/DenseResNet
d5f9c143ed3c484436a2a5bac366c3795e5d47ec
[ "MIT" ]
null
null
null
import torch.nn as nn import collections import math class SplitAttentionModule(nn.Module): def __init__(self, out_channels, radix, groups, normalization, activation, reduction=4): super().__init__() channels = max(out_channels * radix // reduction, 1) channels = math.cei...
31.583333
89
0.554969
33fb5340e071f251a62ddcd4811dd1f4f30060c9
323
py
Python
bridger/filters/__init__.py
intellineers/django-bridger
ed097984a99df7da40a4d01bd00c56e3c6083056
[ "BSD-3-Clause" ]
2
2020-03-17T00:53:23.000Z
2020-07-16T07:00:33.000Z
bridger/filters/__init__.py
intellineers/django-bridger
ed097984a99df7da40a4d01bd00c56e3c6083056
[ "BSD-3-Clause" ]
76
2019-12-05T01:15:57.000Z
2021-09-07T16:47:27.000Z
bridger/filters/__init__.py
intellineers/django-bridger
ed097984a99df7da40a4d01bd00c56e3c6083056
[ "BSD-3-Clause" ]
1
2020-02-05T15:09:47.000Z
2020-02-05T15:09:47.000Z
from .backends import DjangoFilterBackend from .fields import ( BooleanFilter, CharFilter, ChoiceFilter, DateFilter, DateRangeFilter, DateTimeFilter, ModelChoiceFilter, ModelMultipleChoiceFilter, MultipleChoiceFilter, NumberFilter, TimeFilter, ) from .filterset import FilterS...
20.1875
41
0.739938
33fb817d8fcc1e03f3afd55d3c5443a383d89515
482
py
Python
ai/ModelToTorchScript.py
urhprimozic/gomoku
3c5fa9b13cf0c3252a0e3fa5929d9639dd325b3a
[ "MIT" ]
1
2021-05-06T20:00:52.000Z
2021-05-06T20:00:52.000Z
ai/ModelToTorchScript.py
urhprimozic/gomoku
3c5fa9b13cf0c3252a0e3fa5929d9639dd325b3a
[ "MIT" ]
null
null
null
ai/ModelToTorchScript.py
urhprimozic/gomoku
3c5fa9b13cf0c3252a0e3fa5929d9639dd325b3a
[ "MIT" ]
null
null
null
import torch import torchvision import numpy as np import random from gomoku import GomokuGame from gomokuNNet import GomokuNNet, NNetWrapper game = GomokuGame(15) nnet = NNetWrapper(game) nnet.load_checkpoint('..', 'best.pth.tar') nnet.nnet.eval() board = np.array([[random.randint(-1, 1) for _ in range(15)] for _ ...
22.952381
81
0.755187
33fb8bea03962da96712eeab7d5bd5c4c1474e4c
3,017
py
Python
tests/test_lreplace_extracted_comments.py
mondeja/pre-commit-po-hooks
6c96941357699b283c46528d34821631e1aff324
[ "BSD-3-Clause" ]
null
null
null
tests/test_lreplace_extracted_comments.py
mondeja/pre-commit-po-hooks
6c96941357699b283c46528d34821631e1aff324
[ "BSD-3-Clause" ]
2
2021-08-25T04:56:36.000Z
2022-02-25T16:47:39.000Z
tests/test_lreplace_extracted_comments.py
mondeja/pre-commit-po-hooks
6c96941357699b283c46528d34821631e1aff324
[ "BSD-3-Clause" ]
null
null
null
"""Tests for 'lreplace-extracted-comments' hook.""" import contextlib import io import os import uuid import pytest from hooks.lreplace_extracted_comments import lreplace_extracted_comments @pytest.mark.parametrize("quiet", (False, True), ids=("quiet=False", "quiet=True")) @pytest.mark.parametrize( "dry_run", ...
25.567797
84
0.495857
33fb9c645bcc700f1bad710d87098dbacfb1739b
2,307
py
Python
alipay/aop/api/domain/MybankMarketingMcaplatformContractQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/MybankMarketingMcaplatformContractQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/MybankMarketingMcaplatformContractQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class MybankMarketingMcaplatformContractQueryModel(object): def __init__(self): self._biz_date = None self._cert_no = None self._cert_type = None self._channel = None ...
26.825581
69
0.572605
33fbb2dc7bc5195857486d4611d845c1fbb07275
24,903
py
Python
rally/task/validation.py
LorenzoBianconi/rally
2bbd7ee590cca048fb4ad6a8eefc484989979ff8
[ "Apache-2.0" ]
1
2021-09-29T02:16:09.000Z
2021-09-29T02:16:09.000Z
rally/task/validation.py
noah8713/rally-ovs
2434787c2cf4ca267108966c4ddc55ded3c333d9
[ "Apache-2.0" ]
1
2020-07-14T11:29:31.000Z
2020-07-14T11:29:31.000Z
rally/task/validation.py
noah8713/rally-ovs
2434787c2cf4ca267108966c4ddc55ded3c333d9
[ "Apache-2.0" ]
1
2020-07-02T01:33:48.000Z
2020-07-02T01:33:48.000Z
# Copyright 2014: Mirantis 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 ...
38.549536
79
0.636429
33fbc82cad1485f8de88f5c52fa4c0d58d639b63
1,400
py
Python
aeropy/filehandling/paraview_tools.py
leal26/pyXFOIL
88ff224be25cdb51eb821315f6e094f68fb13247
[ "MIT" ]
50
2016-03-15T17:24:55.000Z
2021-12-28T07:32:45.000Z
aeropy/filehandling/paraview_tools.py
SzymonSzyszko/AeroPy
b061c690e5926fdd834b7c50837c25108e908156
[ "MIT" ]
22
2017-04-20T11:27:28.000Z
2022-02-09T05:57:06.000Z
aeropy/filehandling/paraview_tools.py
SzymonSzyszko/AeroPy
b061c690e5926fdd834b7c50837c25108e908156
[ "MIT" ]
34
2016-03-04T15:57:37.000Z
2022-02-15T20:06:54.000Z
import numpy as np from paraview.simple import STLReader, Transform, Slice, SaveData def cosine_spacing(start, stop, num=50, offset=0): # calculates the cosine spacing index = np.linspace(0., 1., num) spacing = .5*(1.-np.cos(np.pi*(index-offset))) points = start+spacing*(stop-start) return point...
31.111111
71
0.655
33fbdc0bf5396f22aa7d13b9abb8c1babc9b0a7a
1,462
py
Python
feed_sources/SantaRosa.py
azavea/gtfs-feed-fetcher
0cbdcb10d24a15c0e68832064f699dac7ab7c67c
[ "MIT" ]
4
2016-08-02T14:18:54.000Z
2020-05-14T05:39:21.000Z
feed_sources/SantaRosa.py
azavea/gtfs-feed-fetcher
0cbdcb10d24a15c0e68832064f699dac7ab7c67c
[ "MIT" ]
3
2017-06-28T14:48:08.000Z
2017-12-15T20:50:52.000Z
feed_sources/SantaRosa.py
azavea/gtfs-feed-fetcher
0cbdcb10d24a15c0e68832064f699dac7ab7c67c
[ "MIT" ]
null
null
null
"""Fetch Santa Rosa, CA feed via FTP.""" from datetime import datetime import logging import os import urllib from FeedSource import FeedSource, TIMECHECK_FMT LOG = logging.getLogger(__name__) class SantaRosa(FeedSource): """Fetch Santa Rosa, CA feed via FTP.""" def __init__(self): super(SantaRosa,...
33.227273
97
0.564295
33fbf998b45ef3e2f76d8b8bf902935ca0fb55c6
6,847
py
Python
doc/sphinx/example-acoustics-2d-amr/setrun.py
geoflows/geoclaw-4.x
c8879d25405017b38392aa3b1ea422ff3e3604ea
[ "BSD-3-Clause" ]
7
2016-11-13T03:11:51.000Z
2021-09-07T18:59:48.000Z
doc/sphinx/example-acoustics-2d-amr/setrun.py
che-wenchao/D-Claw
8ab5d971c9a7a7130e03a447a4b8642e292f4e88
[ "BSD-3-Clause" ]
11
2020-01-14T18:00:37.000Z
2022-03-29T14:25:24.000Z
doc/sphinx/example-acoustics-2d-amr/setrun.py
che-wenchao/D-Claw
8ab5d971c9a7a7130e03a447a4b8642e292f4e88
[ "BSD-3-Clause" ]
6
2020-01-14T17:15:42.000Z
2021-12-03T17:28:44.000Z
""" Module to set up run time parameters for Clawpack. The values set in the function setrun are then written out to data files that will be read in by the Fortran code. """ import os from pyclaw import data #------------------------------ def setrun(claw_pkg='amrclaw'): #------------------------------ ...
27.946939
79
0.557032
33fc0856a2616e637251f34bcfc91c447e42102d
2,837
py
Python
src/hi_getter/run.py
Cubicpath/HaloInfiniteGetter
5c1e0c77e1e56d1679dce3835e432fea40239135
[ "MIT" ]
null
null
null
src/hi_getter/run.py
Cubicpath/HaloInfiniteGetter
5c1e0c77e1e56d1679dce3835e432fea40239135
[ "MIT" ]
6
2022-02-14T16:11:09.000Z
2022-03-30T22:33:39.000Z
src/hi_getter/run.py
Cubicpath/HaloInfiniteGetter
5c1e0c77e1e56d1679dce3835e432fea40239135
[ "MIT" ]
null
null
null
################################################################################################### # MIT Licence (C) 2022 Cubicpath@Github # ################################################################################################### """Initialize values...
33.376471
139
0.616849
33fc2c95084d06b7b49cc7d50663ccdcd08b775b
3,260
py
Python
fastestimator/op/numpyop/univariate/sharpness.py
gaurav272333/fastestimator
d49e48d7375e19416ef337b3517dcfe42bb56589
[ "Apache-2.0" ]
null
null
null
fastestimator/op/numpyop/univariate/sharpness.py
gaurav272333/fastestimator
d49e48d7375e19416ef337b3517dcfe42bb56589
[ "Apache-2.0" ]
null
null
null
fastestimator/op/numpyop/univariate/sharpness.py
gaurav272333/fastestimator
d49e48d7375e19416ef337b3517dcfe42bb56589
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 The FastEstimator 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 appl...
42.894737
120
0.660736
33fc3b1b1573ef1332b88eeeb7e69df9b3572a74
1,580
py
Python
bot/commands/guess_racetrack_game.py
NMisko/monkalot
965a16ca6a4921c8a9e6e996e9a0e3a9beb8444b
[ "MIT" ]
20
2017-09-08T21:13:38.000Z
2022-01-29T03:24:13.000Z
bot/commands/guess_racetrack_game.py
NMisko/monkalot
965a16ca6a4921c8a9e6e996e9a0e3a9beb8444b
[ "MIT" ]
32
2017-08-20T17:46:14.000Z
2021-11-18T22:54:59.000Z
bot/commands/guess_racetrack_game.py
NMisko/monkalot
965a16ca6a4921c8a9e6e996e9a0e3a9beb8444b
[ "MIT" ]
10
2017-08-19T01:13:41.000Z
2021-08-07T08:45:30.000Z
"""Commands: "!mstart".""" from bot.commands.abstract.guessinggame import GuessingGame from bot.data_sources.hearthstone import Hearthstone import pandas as pd class GuessRacetrackGame(GuessingGame): """Play the Guess The Minion Game. One Minion is randomly chosen from the list and the users have to gue...
28.214286
94
0.640506
33fc4be48f59af157cb5796d87b030b1c5668480
2,177
py
Python
gui/UserThumbnail.py
pfrwilson/snailmail
9c1f55b6e3225faa9f41516766be87452148a915
[ "Apache-2.0" ]
null
null
null
gui/UserThumbnail.py
pfrwilson/snailmail
9c1f55b6e3225faa9f41516766be87452148a915
[ "Apache-2.0" ]
null
null
null
gui/UserThumbnail.py
pfrwilson/snailmail
9c1f55b6e3225faa9f41516766be87452148a915
[ "Apache-2.0" ]
null
null
null
import tkinter as tk from data_classes.PublicInfo import PublicInfo from data_classes.Message import Message from tkinter import ttk from datetime import datetime class UserThumbnail(tk.Frame): def __init__(self, parent, username, public_info): super().__init__(parent) self.configure(bd=3, relief...
35.112903
109
0.608636
33fc6295ee06120080241951b12a95428c35e877
7,913
py
Python
pmaf/pipe/agents/dockers/_mediums/_tax_medium.py
mmtechslv/PhyloMAF
bab43dd4a4d2812951b1fdf4f1abb83edb79ea88
[ "BSD-3-Clause" ]
1
2021-07-02T06:24:17.000Z
2021-07-02T06:24:17.000Z
pmaf/pipe/agents/dockers/_mediums/_tax_medium.py
mmtechslv/PhyloMAF
bab43dd4a4d2812951b1fdf4f1abb83edb79ea88
[ "BSD-3-Clause" ]
1
2021-06-28T12:02:46.000Z
2021-06-28T12:02:46.000Z
pmaf/pipe/agents/dockers/_mediums/_tax_medium.py
mmtechslv/PhyloMAF
bab43dd4a4d2812951b1fdf4f1abb83edb79ea88
[ "BSD-3-Clause" ]
null
null
null
from pmaf.pipe.agents.dockers._metakit import DockerTaxonomyMetabase from pmaf.pipe.agents.dockers._base import DockerBase from pmaf.internal._shared import validate_ranks, extract_valid_ranks, sort_ranks import pandas as pd import numpy as np from typing import Optional, Union, Any, Dict class DockerTaxonomyMedium(D...
40.372449
111
0.526981
33fc64079b6677bc9eb6f7140ea06bb74e8dc06e
2,260
py
Python
tests/test_viz.py
Ishan-Kumar2/datamol
480998ad9e7fdabfab25bc25d78364301e55eccb
[ "Apache-2.0" ]
null
null
null
tests/test_viz.py
Ishan-Kumar2/datamol
480998ad9e7fdabfab25bc25d78364301e55eccb
[ "Apache-2.0" ]
null
null
null
tests/test_viz.py
Ishan-Kumar2/datamol
480998ad9e7fdabfab25bc25d78364301e55eccb
[ "Apache-2.0" ]
null
null
null
import pytest import numpy as np import ipywidgets as widgets import PIL from PIL import Image import datamol as dm # NOTE(hadim): rdkit returns different image objects # according to the Python process context (Jupyter notebook vs terminal). # In consequence, those tests will fail if they are executed within a # ...
25.977011
81
0.674336
33fc8b3dd889d6f8d8d08ebcf820dc35e09d9964
985
py
Python
sdks/python/test/test_ErrorGroupsSearchResult.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/test/test_ErrorGroupsSearchResult.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/test/test_ErrorGroupsSearchResult.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
2
2019-10-23T06:31:05.000Z
2021-08-21T17:32:47.000Z
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ from __future__ import absolute_import import unittest import appcente...
24.625
105
0.736041
33fca8708f692423d472c78950251fcf4d7cb358
19,659
py
Python
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2019_10_17/aio/operations/_private_endpoint_connections_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2019_10_17/aio/operations/_private_endpoint_connections_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2019_10_17/aio/operations/_private_endpoint_connections_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# 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 ...
48.302211
252
0.688845
33fcc53a052fd9e041bc94b9b2a1dec50cc51750
17,601
py
Python
graphinvent/Workflow.py
NikolasGialitsis/GraphINVENT
3bbaf5f1ca8be93b5cc4d105f353b8c818959a03
[ "MIT" ]
2
2021-09-09T16:36:35.000Z
2021-09-10T00:02:19.000Z
graphinvent/Workflow.py
NikolasGialitsis/GraphINVENT
3bbaf5f1ca8be93b5cc4d105f353b8c818959a03
[ "MIT" ]
null
null
null
graphinvent/Workflow.py
NikolasGialitsis/GraphINVENT
3bbaf5f1ca8be93b5cc4d105f353b8c818959a03
[ "MIT" ]
null
null
null
# load general packages and functions import numpy as np import pickle import shutil import time import torch import torch.utils.tensorboard from tqdm import tqdm import os # load program-specific functions import analyze as anal import preprocessing as prep from BlockDatasetLoader import BlockDataLoader, HDFDataset i...
39.200445
103
0.597296
33fcd43fe7cbe74838034db224d8ed5d60e2900b
2,208
py
Python
tests/system/demos/churn/test_churn.py
EdmondIguazio/mlrun
e63b34a610788ebe522ce7a46642e26927e39882
[ "Apache-2.0" ]
null
null
null
tests/system/demos/churn/test_churn.py
EdmondIguazio/mlrun
e63b34a610788ebe522ce7a46642e26927e39882
[ "Apache-2.0" ]
null
null
null
tests/system/demos/churn/test_churn.py
EdmondIguazio/mlrun
e63b34a610788ebe522ce7a46642e26927e39882
[ "Apache-2.0" ]
1
2021-05-05T14:19:46.000Z
2021-05-05T14:19:46.000Z
import mlrun from tests.system.base import TestMLRunSystem from tests.system.demos.base import TestDemo @TestMLRunSystem.skip_test_if_env_not_configured class TestChurn(TestDemo): project_name = "churn-project" use_gpus = False def create_demo_project(self) -> mlrun.projects.MlrunProject: self....
38.736842
116
0.678442
33fce7e8404994bb17b4c9fda4d9f1c6d70bfc1f
920
py
Python
stests/core/mq/middleware/actor_logging.py
goral09/stests
4de26485535cadf1b708188a7133a976536ccba3
[ "Apache-2.0" ]
4
2020-03-10T15:28:17.000Z
2021-10-02T11:41:17.000Z
stests/core/mq/middleware/actor_logging.py
goral09/stests
4de26485535cadf1b708188a7133a976536ccba3
[ "Apache-2.0" ]
1
2020-03-25T11:31:44.000Z
2020-03-25T11:31:44.000Z
stests/core/mq/middleware/actor_logging.py
goral09/stests
4de26485535cadf1b708188a7133a976536ccba3
[ "Apache-2.0" ]
9
2020-02-25T18:43:42.000Z
2021-08-10T17:08:42.000Z
import dramatiq from stests.core.logging import log_event from stests.events import EventType class LoggingMiddleware(dramatiq.Middleware): """Middleware to make available to actors services orthogonal to the execution context. """ def after_process_message(self, broker, message, *, result=None, ex...
26.285714
99
0.68913
33fcf445d9af507333fd1ea8d040e46464d8edfd
6,358
py
Python
SingleTrailingNewLine.py
mattst/sublime-single-trailing-new-line
ebeb99171f0395c3e0763ab12485a3c17556bc8f
[ "MIT" ]
13
2016-09-03T13:06:50.000Z
2020-05-01T04:37:32.000Z
SingleTrailingNewLine.py
mattst/sublime-single-trailing-new-line
ebeb99171f0395c3e0763ab12485a3c17556bc8f
[ "MIT" ]
1
2018-03-06T20:59:29.000Z
2018-03-06T21:03:54.000Z
SingleTrailingNewLine.py
mattst/sublime-single-trailing-new-line
ebeb99171f0395c3e0763ab12485a3c17556bc8f
[ "MIT" ]
1
2020-06-05T20:20:33.000Z
2020-06-05T20:20:33.000Z
# # Name: Single Trailing Newline # # Requirements: Sublime Text v2 and v3 # # Written by: mattst - https://github.com/mattst # # Homepage: https://github.com/mattst/sublime-single-trailing-new-line # # License: MIT License # import sublime, sublime_plugin SETTINGS_FILE = "SingleTrailingNew...
34.934066
100
0.656024
33fcf8317801173603c25fda0f4c1aa0ef424475
3,488
py
Python
coinlendingbot/WebServer.py
m3h7/coinlendingbot
d6d217d46fc6e04caf0d4a963278b9895e6737e9
[ "MIT" ]
3
2018-07-13T12:42:48.000Z
2021-03-22T01:15:32.000Z
coinlendingbot/WebServer.py
m3h7/coinlendingbot
d6d217d46fc6e04caf0d4a963278b9895e6737e9
[ "MIT" ]
1
2018-07-29T14:43:19.000Z
2022-01-16T13:53:11.000Z
coinlendingbot/WebServer.py
m3h7/coinlendingbot
d6d217d46fc6e04caf0d4a963278b9895e6737e9
[ "MIT" ]
3
2020-05-05T12:41:37.000Z
2022-01-21T14:48:17.000Z
# coding=utf-8 import logging import threading logger = logging.getLogger(__name__) server = None web_server_ip = "0.0.0.0" web_server_port = "8000" web_server_template = "www" def initialize_web_server(config): ''' Setup the web server, retrieving the configuration parameters and starting the web server...
35.958763
119
0.65797
33fcfb3b15cc5cd323d85076d8b02d5281743f2d
37
py
Python
oscar/lib/python2.7/site-packages/IPython/kernel/client.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/IPython/kernel/client.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/IPython/kernel/client.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
from jupyter_client.client import *
18.5
36
0.810811
33fcfe00914f7f2c28c50380a6059353078f751a
38,171
py
Python
ssmtoybox/ssmod.py
jacobnzw/SSMToybox
1e2a8fd0634f6d53a30e24c21465c8e32c88999b
[ "MIT" ]
9
2018-08-10T13:33:40.000Z
2021-12-01T19:02:21.000Z
ssmtoybox/ssmod.py
jacobnzw/SSMToybox
1e2a8fd0634f6d53a30e24c21465c8e32c88999b
[ "MIT" ]
35
2018-03-28T13:03:21.000Z
2021-08-12T09:23:56.000Z
ssmtoybox/ssmod.py
jacobnzw/SSMToybox
1e2a8fd0634f6d53a30e24c21465c8e32c88999b
[ "MIT" ]
null
null
null
from abc import ABCMeta, abstractmethod import numpy as np """ Transition models """ class TransitionModel(metaclass=ABCMeta): """State transition model Definition of both discrete and continuous-time dynamics with simulation. Parameters ---------- init_rv : RandomVariable Distribution...
30.390924
120
0.534699
33fd00c1542c2cfabe83665f4a221c40118c947d
8,258
py
Python
unittesting/utils/reloader.py
evandroforks/UnitTesting
df202cd2d4d466a443e31944cf83c3a87c406f06
[ "MIT" ]
53
2017-12-23T06:27:26.000Z
2022-02-09T01:11:44.000Z
unittesting/utils/reloader.py
evandroforks/UnitTesting
df202cd2d4d466a443e31944cf83c3a87c406f06
[ "MIT" ]
100
2017-12-23T07:03:15.000Z
2021-12-11T11:18:24.000Z
unittesting/utils/reloader.py
evandroforks/UnitTesting
df202cd2d4d466a443e31944cf83c3a87c406f06
[ "MIT" ]
21
2018-02-25T00:45:30.000Z
2020-11-02T14:39:08.000Z
import sublime import sublime_plugin import os import threading import builtins import functools import importlib import sys import types from contextlib import contextmanager try: from package_control.package_manager import PackageManager def is_dependency(pkg_name): return PackageManager()._is_depen...
30.138686
105
0.62279
33fd018595aa250189f3fba43c6ab18659589da4
3,923
py
Python
chemiwrap/exceptions.py
SimonBoothroyd/chemiwrap
7394cd44e386a9f280fd61bce5cf4d0d1567c689
[ "MIT" ]
2
2021-06-28T15:20:02.000Z
2021-07-01T03:09:35.000Z
chemiwrap/exceptions.py
SimonBoothroyd/chemiwrap
7394cd44e386a9f280fd61bce5cf4d0d1567c689
[ "MIT" ]
7
2021-06-29T08:21:40.000Z
2022-02-28T21:13:50.000Z
chemiwrap/exceptions.py
SimonBoothroyd/chemiwrap
7394cd44e386a9f280fd61bce5cf4d0d1567c689
[ "MIT" ]
null
null
null
from typing import TYPE_CHECKING, Iterable, Optional, Type if TYPE_CHECKING: from simtk import unit class MissingFeatureProviderError(ValueError): """An exception raised when a feature provider is required but none are available.""" def __init__( self, feature_provider: str, ...
31.134921
106
0.682131
33fd16346a6ba30a04a1daea45774c12cfa9acde
216
py
Python
genomic_data_service/reports/tests/test_reports_csv.py
ENCODE-DCC/genomic-data-service
954017a5bcc5f448fbe2867768186df5e066c67c
[ "MIT" ]
3
2020-10-26T02:15:55.000Z
2022-01-26T18:39:09.000Z
genomic_data_service/reports/tests/test_reports_csv.py
ENCODE-DCC/genomic-data-service
954017a5bcc5f448fbe2867768186df5e066c67c
[ "MIT" ]
3
2021-08-17T02:01:54.000Z
2022-03-30T17:14:02.000Z
genomic_data_service/reports/tests/test_reports_csv.py
ENCODE-DCC/genomic-data-service
954017a5bcc5f448fbe2867768186df5e066c67c
[ "MIT" ]
1
2022-03-24T21:15:34.000Z
2022-03-24T21:15:34.000Z
import pytest def test_reports_csv_csv_generator(): from genomic_data_service.reports.csv import CSVGenerator csv = CSVGenerator() row = csv.writerow(['a', 'b', '123']) assert row == b'a\tb\t123\n'
24
61
0.689815
33fd3b0b43ff688f8c6ef64deb61fb3d8ecb614d
5,178
py
Python
tests/cupy_tests/core_tests/test_ndarray_cuda_array_interface.py
okapies/cupy
4e8394e5e0c4e420295cbc36819e8e0f7de90e9d
[ "MIT" ]
1
2019-04-15T00:06:09.000Z
2019-04-15T00:06:09.000Z
tests/cupy_tests/core_tests/test_ndarray_cuda_array_interface.py
hephaex/cupy
5cf50a93bbdebe825337ed7996c464e84b1495ba
[ "MIT" ]
null
null
null
tests/cupy_tests/core_tests/test_ndarray_cuda_array_interface.py
hephaex/cupy
5cf50a93bbdebe825337ed7996c464e84b1495ba
[ "MIT" ]
null
null
null
import unittest import cupy from cupy import core from cupy import testing class DummyObjectWithCudaArrayInterface(object): def __init__(self, a): self.a = a @property def __cuda_array_interface__(self): desc = { 'shape': self.a.shape, 'strides': self.a.strides, ...
31.381818
74
0.584202
33fd7e5dbbc8b412a4dcc779b694d100840dfa28
796
py
Python
vision_transform_codes/utils/defaults.py
spencerkent/vision-transform-codes
63258ce698e436ee3ce29def75c89337759fb98b
[ "BSD-3-Clause" ]
null
null
null
vision_transform_codes/utils/defaults.py
spencerkent/vision-transform-codes
63258ce698e436ee3ce29def75c89337759fb98b
[ "BSD-3-Clause" ]
null
null
null
vision_transform_codes/utils/defaults.py
spencerkent/vision-transform-codes
63258ce698e436ee3ce29def75c89337759fb98b
[ "BSD-3-Clause" ]
null
null
null
""" Just some basic defaults to keep in one place """ from pathlib import Path import numpy as np logging_directory = Path( '/media/expansion1/spencerkent/logfiles/vision_transform_codes') dataset_directory = Path('/media/expansion1/spencerkent/Datasets') raw_data_filepaths = { 'Field_NW': dataset_directory /...
39.8
91
0.751256
33fd9b444cc1f15510ceb4044b6901109d7b410c
604
py
Python
tests/context.py
Syncleus/apex
99ab661f0993fcee8064578b6a6020f5b742d75f
[ "Apache-2.0" ]
13
2016-03-23T09:35:13.000Z
2019-09-23T09:39:37.000Z
tests/context.py
freemo/apex
99ab661f0993fcee8064578b6a6020f5b742d75f
[ "Apache-2.0" ]
31
2016-09-21T10:29:36.000Z
2016-09-30T12:11:28.000Z
tests/context.py
freemo/apex
99ab661f0993fcee8064578b6a6020f5b742d75f
[ "Apache-2.0" ]
5
2016-03-27T21:32:09.000Z
2022-01-13T17:04:23.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """Context for tests for APRS Python Module.""" # These imports are for python3 compatibility inside python2 from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import sys __author__ = 'Jeffrey Phillips ...
27.454545
65
0.763245
33fda55249590df4bcfeee9964f6d32d2168551e
4,800
py
Python
docs/conf.py
Koodous/python-sdk
987a8d48d1fb1ba599375dc55cb2d283a8cd34c8
[ "Apache-2.0" ]
19
2016-11-24T06:13:20.000Z
2021-07-02T05:06:38.000Z
docs/conf.py
Koodous/python-sdk
987a8d48d1fb1ba599375dc55cb2d283a8cd34c8
[ "Apache-2.0" ]
18
2015-12-05T14:09:24.000Z
2021-06-07T11:55:53.000Z
docs/conf.py
Koodous/python-sdk
987a8d48d1fb1ba599375dc55cb2d283a8cd34c8
[ "Apache-2.0" ]
10
2015-12-04T20:01:53.000Z
2020-12-02T07:30:03.000Z
#!/usr/bin/env python # # koodous documentation build configuration file, created by # sphinx-quickstart on Fri Jun 9 13:47:02 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All...
30
77
0.685417
33fdabae8059e184175722eedf850ed70e5d59a7
5,867
py
Python
cinder/tests/unit/api/v3/test_backups.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/tests/unit/api/v3/test_backups.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
2
2018-10-25T13:04:01.000Z
2019-08-17T13:15:24.000Z
cinder/tests/unit/api/v3/test_backups.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
2
2018-10-17T13:32:50.000Z
2018-11-08T08:39:39.000Z
# Copyright (c) 2016 Intel, 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 ...
40.743056
79
0.600818
33fdce9f12e32d2e1872b3ea0f3753b3d07b3599
1,096
py
Python
mps_database/runtime/threshold5_history.py
slaclab/mps_database
023ed9bb3b333e382cc612f816c3f4b295b66a4c
[ "BSD-3-Clause-LBNL" ]
null
null
null
mps_database/runtime/threshold5_history.py
slaclab/mps_database
023ed9bb3b333e382cc612f816c3f4b295b66a4c
[ "BSD-3-Clause-LBNL" ]
1
2017-07-07T21:31:59.000Z
2017-07-07T21:31:59.000Z
mps_database/runtime/threshold5_history.py
slaclab/mps_database
023ed9bb3b333e382cc612f816c3f4b295b66a4c
[ "BSD-3-Clause-LBNL" ]
4
2017-07-07T20:10:54.000Z
2020-12-13T00:03:37.000Z
from sqlalchemy import Column, Integer, String, ForeignKey, Float, DateTime, func from sqlalchemy.orm import relationship, backref from mps_database.runtime import RuntimeBase class Threshold5History(RuntimeBase): """ Threshold class (thresholds table) Properties: i[0-3]_[l|h]: last LCLS-I threshold set ...
30.444444
81
0.725365
33fdeedfcae14801b91cb3e7f8c6f06e09811c94
3,724
py
Python
LZW/bitarray.py
MapleCCC/LZW-Compressor
df770b557abaa096817a0f158d3eabc515e21d0e
[ "WTFPL" ]
2
2020-04-04T14:20:28.000Z
2020-05-05T11:39:07.000Z
LZW/bitarray.py
MapleCCC/LZW-Compressor
df770b557abaa096817a0f158d3eabc515e21d0e
[ "WTFPL" ]
null
null
null
LZW/bitarray.py
MapleCCC/LZW-Compressor
df770b557abaa096817a0f158d3eabc515e21d0e
[ "WTFPL" ]
null
null
null
# TODO: remove the future statement in Python 4.0 from __future__ import annotations from functools import singledispatchmethod from typing import Any, NoReturn from .bit import Bit # Mimic the interface of the builtin bytearray object class Bitarray: def __init__(self) -> None: self._data = 0 s...
30.77686
92
0.582975
33fe45c01588513c96f30839bde695513479e69b
859
py
Python
stackoverflow-solutions/submission-scripts/SO_Q65643483_bokeh_plot_not_appearing.py
MarkMoretto/python-examples-main
37b8c41d2f175029f4536ca970f037ff19b4e951
[ "MIT" ]
1
2020-07-21T23:24:25.000Z
2020-07-21T23:24:25.000Z
stackoverflow-solutions/submission-scripts/SO_Q65643483_bokeh_plot_not_appearing.py
MarkMoretto/python-examples-main
37b8c41d2f175029f4536ca970f037ff19b4e951
[ "MIT" ]
4
2021-06-29T00:38:57.000Z
2022-01-15T00:22:15.000Z
stackoverflow-solutions/submission-scripts/SO_Q65643483_bokeh_plot_not_appearing.py
MarkMoretto/python-examples-main
37b8c41d2f175029f4536ca970f037ff19b4e951
[ "MIT" ]
null
null
null
""" Purpose: Stackoverflow answer Date created: 2021-01-09 URL: https://stackoverflow.com/questions/65643483/bokeh-plot-is-empty/65643667#65643667 Contributor(s): Mark M. """ import re import pandas as pd import bokeh sample = """ 2018-10-22 7468.629883 2.282400e+09 0.263123 NASDAQ 2018-10-23 7437.540039...
27.709677
87
0.682189
33fe8cdc85f9a4bc1d7d1b738ba525cc801905a6
2,961
py
Python
{{cookiecutter.PROJECT_NAME}}/config/plugins/grappelli.py
pyFigure/cc_django
afb640816291ffc2ed2038bdee6ea60b27d71fb2
[ "BSD-3-Clause" ]
4
2020-09-01T06:37:17.000Z
2020-09-01T07:11:32.000Z
{{cookiecutter.PROJECT_NAME}}/config/plugins/grappelli.py
pyFigure/cc_django
afb640816291ffc2ed2038bdee6ea60b27d71fb2
[ "BSD-3-Clause" ]
null
null
null
{{cookiecutter.PROJECT_NAME}}/config/plugins/grappelli.py
pyFigure/cc_django
afb640816291ffc2ed2038bdee6ea60b27d71fb2
[ "BSD-3-Clause" ]
null
null
null
""" This file was generated with the customdashboard management command and contains the class for the main dashboard. To activate your index dashboard add the following to your settings.py:: GRAPPELLI_INDEX_DASHBOARD = 'config.grappelli.dashboard.CustomIndexDashboard' """ from django.utils.translation import get...
27.672897
81
0.504559
33fe9d3f1a8c6f2acc12a1b322f91e29ba6c4eb2
765
py
Python
Reducer/stats_of_columns.py
monocilindro/qgis-earthengine-examples
82aea8926d34ed3f4ad4a4a345ddbd225819d28f
[ "MIT" ]
646
2019-12-03T06:09:03.000Z
2022-03-28T03:37:08.000Z
Reducer/stats_of_columns.py
csaybar/qgis-earthengine-examples
ba8942683834d2847ff3246bdd1859b36e50fe44
[ "MIT" ]
10
2019-12-30T03:42:44.000Z
2021-05-22T07:34:07.000Z
Reducer/stats_of_columns.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 # Load US cenus data as a FeatureCollection. census = ee.FeatureCollection('TIGER/2010/Blocks') # Filter the collection to include only Benton County, OR. benton = census.filter( ee.Filter.And( ee.Filter.eq('statefp10', '41'), ee.Filter.eq('countyfp10', '003') ) ) # ...
24.677419
69
0.68366
33fea1ccc786edc47c9e3301e7d8db3f507e8aec
4,627
py
Python
chakula/__init__.py
reubano/rsstail
e4c24eeaf48b29add6babbe331c61fe0d82e3b7c
[ "BSD-3-Clause" ]
null
null
null
chakula/__init__.py
reubano/rsstail
e4c24eeaf48b29add6babbe331c61fe0d82e3b7c
[ "BSD-3-Clause" ]
null
null
null
chakula/__init__.py
reubano/rsstail
e4c24eeaf48b29add6babbe331c61fe0d82e3b7c
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # vim: sw=4:ts=4:expandtab import sys import time from datetime import datetime as dt from functools import reduce, lru_cache from traceback import format_exception from bisect import bisect import feedparser import pygogo as gogo __version__ = '0.8.0' __title__ = 'chakula' __package_name__ ...
29.471338
79
0.629566
33febf84668f74da92fd9b150c2e5c6fd71daf01
22,061
py
Python
tests/spellbook.py
majamassarini/packit
b319c4ac2321f012c17ab0b2d0ebfb6c8226eff0
[ "MIT" ]
81
2019-02-07T15:38:34.000Z
2020-07-16T06:33:02.000Z
tests/spellbook.py
majamassarini/packit
b319c4ac2321f012c17ab0b2d0ebfb6c8226eff0
[ "MIT" ]
825
2019-02-07T15:08:16.000Z
2020-08-02T08:11:23.000Z
tests/spellbook.py
majamassarini/packit
b319c4ac2321f012c17ab0b2d0ebfb6c8226eff0
[ "MIT" ]
51
2019-02-08T09:56:29.000Z
2020-06-17T15:34:00.000Z
# Copyright Contributors to the Packit project. # SPDX-License-Identifier: MIT """ A book with our finest spells """ import shutil import subprocess from pathlib import Path from typing import Optional from click.testing import CliRunner from packit.patches import PatchMetadata from packit.utils.repo import create_n...
30.387052
96
0.644214
33fed12cddf9fa2bae562c35b0ed3aa7856de096
942
py
Python
ucb_cs61A/homework/hw08/tests/derive-product.py
tavaresdong/courses-notes
7fb89103bca679f5ef9b14cbc777152daac1402e
[ "MIT" ]
null
null
null
ucb_cs61A/homework/hw08/tests/derive-product.py
tavaresdong/courses-notes
7fb89103bca679f5ef9b14cbc777152daac1402e
[ "MIT" ]
1
2017-07-31T08:15:26.000Z
2017-07-31T08:15:26.000Z
ucb_cs61A/homework/hw08/tests/derive-product.py
tavaresdong/courses-notes
7fb89103bca679f5ef9b14cbc777152daac1402e
[ "MIT" ]
1
2019-10-06T16:52:31.000Z
2019-10-06T16:52:31.000Z
test = { 'name': 'derive-product', 'points': 1, 'suites': [ { 'cases': [ { 'code': r""" scm> (make-product 2 3)) 6 scm> (make-product 'x 0) 0 scm> (make-product 1 'x) x scm> (make-product 'a 'x) (* a x) ...
18.84
48
0.306794
33fef8c72707e2251143527d65f01faa2464b74d
328
py
Python
python3/july/day_1_Arranging Coins.py
kashyapvinay/leetcode-challenge
750b0056cb547dc5266d142a9a5048ebd50d8ae3
[ "MIT" ]
1
2020-06-01T11:35:46.000Z
2020-06-01T11:35:46.000Z
python3/july/day_1_Arranging Coins.py
kashyapvinay/leetcode-challenge
750b0056cb547dc5266d142a9a5048ebd50d8ae3
[ "MIT" ]
null
null
null
python3/july/day_1_Arranging Coins.py
kashyapvinay/leetcode-challenge
750b0056cb547dc5266d142a9a5048ebd50d8ae3
[ "MIT" ]
null
null
null
class Solution: def arrangeCoins(self, n: int) -> int: l = 0 h = n while(l <= h): mid = l + (h - l)//2 curr = (mid * (mid+1))//2 if(curr <= n): ans = mid l = mid + 1 else: h = mid - 1 ret...
21.866667
42
0.320122
33ff022ea46a29f8fad9813086d52d299ffce1a6
1,392
py
Python
opsbro/udprouter.py
naparuba/opsbro
98618a002cd47250d21e7b877a24448fc95fec80
[ "MIT" ]
32
2017-08-29T08:57:16.000Z
2021-04-21T08:53:04.000Z
opsbro/udprouter.py
naparuba/opsbro
98618a002cd47250d21e7b877a24448fc95fec80
[ "MIT" ]
108
2017-09-04T19:59:28.000Z
2022-03-31T08:12:07.000Z
opsbro/udprouter.py
naparuba/kunai
98618a002cd47250d21e7b877a24448fc95fec80
[ "MIT" ]
8
2015-02-03T12:30:53.000Z
2017-07-29T19:43:54.000Z
from .log import LoggerFactory, DEFAULT_LOG_PART logger = LoggerFactory.create_logger(DEFAULT_LOG_PART) class UDPRouting(object): def __init__(self): self.routes = {} def declare_handler(self, route_prefix, handler): self.routes[route_prefix] = handler def route_messag...
37.621622
113
0.649425
33ff0d5135cda26ffe957ebeef2944b6f0bf7419
4,846
py
Python
python/ray/tune/schedulers/median_stopping_rule.py
cumttang/ray
eb1e5fa2cf26233701ccbda3eb8a301ecd418d8c
[ "Apache-2.0" ]
29
2019-05-18T12:18:34.000Z
2022-03-30T01:46:48.000Z
python/ray/tune/schedulers/median_stopping_rule.py
collinswei/ray
2e30f7ba386e716bf80f019dcd473b67d83abb95
[ "Apache-2.0" ]
8
2019-08-15T05:42:10.000Z
2021-05-21T09:41:15.000Z
python/ray/tune/schedulers/median_stopping_rule.py
collinswei/ray
2e30f7ba386e716bf80f019dcd473b67d83abb95
[ "Apache-2.0" ]
8
2019-07-15T22:36:20.000Z
2020-08-09T07:03:26.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import collections import logging import numpy as np from ray.tune.trial import Trial from ray.tune.schedulers.trial_scheduler import FIFOScheduler, TrialScheduler logger = logging.getLogger(__name__) class...
40.049587
79
0.648783
33ff165886317829f707d54921dbcfc1d8411588
886
py
Python
server/jobeditor/resources/configurations.py
zhangyanwei/job-chain-editor
56a2b2b10718abb3dc7e4e313a0ec11c10f5a82a
[ "MIT" ]
null
null
null
server/jobeditor/resources/configurations.py
zhangyanwei/job-chain-editor
56a2b2b10718abb3dc7e4e313a0ec11c10f5a82a
[ "MIT" ]
8
2020-04-30T13:00:32.000Z
2022-02-26T20:05:23.000Z
server/jobeditor/resources/configurations.py
zhangyanwei/job-chain-editor
56a2b2b10718abb3dc7e4e313a0ec11c10f5a82a
[ "MIT" ]
null
null
null
from flask import Blueprint from flask import request from flask_restful import Api from flask_restful import Resource from ..common.configuration import * # noinspection PyTypeChecker def register(app): module_name = __name__.split('.')[-1] api_bp = Blueprint(module_name, app.name, url_prefix='/configuratio...
24.611111
75
0.715576
33ff906f2dce7610cbcd19163d67a764f5375de5
491
py
Python
run.py
wjchicago/Flask_template_auth_with_Dash
f6350bf1f87ae46b8a954f7b417abb69502d67ae
[ "MIT" ]
1
2019-12-21T05:03:39.000Z
2019-12-21T05:03:39.000Z
run.py
wjchicago/Flask_template_auth_with_Dash
f6350bf1f87ae46b8a954f7b417abb69502d67ae
[ "MIT" ]
null
null
null
run.py
wjchicago/Flask_template_auth_with_Dash
f6350bf1f87ae46b8a954f7b417abb69502d67ae
[ "MIT" ]
null
null
null
from flask_migrate import Migrate from configs.config import config_dict from app import create_app, db, socketio import os import sys get_config_mode = os.environ.get('GENTELELLA_CONFIG_MODE', 'Debug') try: config_mode = config_dict[get_config_mode.capitalize()] except KeyError: sys.exit('Error: Invalid GENT...
24.55
81
0.773931
33ffaae78015154d636d537741ef0fc2e95aafef
1,811
py
Python
tests/test_util.py
matheuscas/pyfuzzy_toolbox
57885f3ff53d1b7ab3559c7ff6197ceb97f67c3b
[ "BSD-3-Clause" ]
null
null
null
tests/test_util.py
matheuscas/pyfuzzy_toolbox
57885f3ff53d1b7ab3559c7ff6197ceb97f67c3b
[ "BSD-3-Clause" ]
null
null
null
tests/test_util.py
matheuscas/pyfuzzy_toolbox
57885f3ff53d1b7ab3559c7ff6197ceb97f67c3b
[ "BSD-3-Clause" ]
null
null
null
from pyfuzzy_toolbox import transformation as trans from pyfuzzy_toolbox import preprocessing as pre from pyfuzzy_toolbox import util import pyfuzzy_toolbox.features.base as features import test_preprocessing as tpre import pprint import os print 'Loading test text 1' bow_sentences_1 = pre.start(tpre.text_1) bow_sent...
35.509804
105
0.828272
33ffd38ae32849f695b8b7acec60157d87ea679b
2,534
py
Python
natural_selection/genetic_algorithms/operators/mutation.py
Zipfian-Science/natural-selection
5bf04142a73f39a83e86ad0eb53ba0fecb365864
[ "Apache-2.0" ]
null
null
null
natural_selection/genetic_algorithms/operators/mutation.py
Zipfian-Science/natural-selection
5bf04142a73f39a83e86ad0eb53ba0fecb365864
[ "Apache-2.0" ]
1
2021-02-26T10:10:43.000Z
2021-02-26T10:10:43.000Z
natural_selection/genetic_algorithms/operators/mutation.py
Zipfian-Science/natural-selection
5bf04142a73f39a83e86ad0eb53ba0fecb365864
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Basic methods for mutation operations. """ __author__ = "Justin Hocking" __copyright__ = "Copyright 2020, Zipfian Science" __credits__ = [] __license__ = "" __version__ = "0.0.1" __maintainer__ = "Justin Hocking" __email__ = "justin.hocking@zipfian.science" __status__ = "Development" import ...
38.984615
137
0.676401
33ffe5d2beb69aaf74bafae266252f3752a7ff39
4,439
py
Python
src/login/bklogin/bk_i18n/signal_receivers.py
Canway-shiisa/bk-user
a049e80d12082960828015742cea4b041f4af796
[ "MIT" ]
null
null
null
src/login/bklogin/bk_i18n/signal_receivers.py
Canway-shiisa/bk-user
a049e80d12082960828015742cea4b041f4af796
[ "MIT" ]
null
null
null
src/login/bklogin/bk_i18n/signal_receivers.py
Canway-shiisa/bk-user
a049e80d12082960828015742cea4b041f4af796
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
37.302521
115
0.697229
33fff010a21eaf706fde6fa311d26bcdd7658273
96,257
py
Python
lib/reportlab/platypus/para.py
jwheare/digest
963a0f46862319aa499d4cbbfdbd6380287fc5a5
[ "BSD-3-Clause" ]
5
2016-05-08T23:51:38.000Z
2021-05-02T10:09:29.000Z
lib/reportlab/platypus/para.py
jwheare/digest
963a0f46862319aa499d4cbbfdbd6380287fc5a5
[ "BSD-3-Clause" ]
null
null
null
lib/reportlab/platypus/para.py
jwheare/digest
963a0f46862319aa499d4cbbfdbd6380287fc5a5
[ "BSD-3-Clause" ]
1
2018-01-16T16:03:44.000Z
2018-01-16T16:03:44.000Z
"""new experimental paragraph implementation Intended to allow support for paragraphs in paragraphs, hotlinks, embedded flowables, and underlining. The main entry point is the function def Paragraph(text, style, bulletText=None, frags=None) Which is intended to be plug compatible with the "usual" platypus ...
40.427131
582
0.533426
33fff0d0f6bdec1a049d5023e7050089d5f6ec40
2,033
py
Python
nova/cells/filters/__init__.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
5
2016-04-28T16:20:38.000Z
2021-04-25T11:19:03.000Z
nova/cells/filters/__init__.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/cells/filters/__init__.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
5
2020-04-08T20:24:45.000Z
2020-10-05T19:02:13.000Z
# Copyright (c) 2012-2013 Rackspace Hosting # 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 # # Unles...
33.883333
78
0.699459
d50023099bb1f13e8baf35871450eadeb4fb5acb
51
py
Python
devito/ir/equations/__init__.py
BrunoMot/devito
b6e077857765b7b5fad812ec5774635ca4c6fbb7
[ "MIT" ]
20
2019-08-01T19:08:10.000Z
2022-03-20T05:04:06.000Z
devito/ir/equations/__init__.py
BrunoMot/devito
b6e077857765b7b5fad812ec5774635ca4c6fbb7
[ "MIT" ]
53
2020-11-30T07:50:14.000Z
2022-03-10T17:06:03.000Z
devito/ir/equations/__init__.py
BrunoMot/devito
b6e077857765b7b5fad812ec5774635ca4c6fbb7
[ "MIT" ]
12
2019-10-03T14:47:48.000Z
2021-09-22T14:06:47.000Z
from devito.ir.equations.equation import * # noqa
25.5
50
0.764706
d5004cbe30ffe2563aedb6d7720fcdf5e1d65225
1,444
py
Python
enhterm/mixins/serializable.py
pyl1b/enhterm
b4eacc25ef1bdfecab9a662b5269d016070d4e6b
[ "MIT" ]
null
null
null
enhterm/mixins/serializable.py
pyl1b/enhterm
b4eacc25ef1bdfecab9a662b5269d016070d4e6b
[ "MIT" ]
null
null
null
enhterm/mixins/serializable.py
pyl1b/enhterm
b4eacc25ef1bdfecab9a662b5269d016070d4e6b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Contains the definition of the Serializable class. """ class Serializable(object): """ Defines the methods that need to be implemented by serializable classes. """ def __init__(self, *args, **kwargs): """ Constructor. """ super().__init__(*a...
25.333333
76
0.566482
d500574309c52c0c1ebf6554c114792e91aef470
874
py
Python
gds_tools/heal.py
ljstek/gds_tools
3884ad4a0c7a953713a09231152e47cec73ad051
[ "MIT" ]
3
2020-10-31T06:47:53.000Z
2021-12-27T18:05:45.000Z
gds_tools/heal.py
ljstek/gds_tools
3884ad4a0c7a953713a09231152e47cec73ad051
[ "MIT" ]
null
null
null
gds_tools/heal.py
ljstek/gds_tools
3884ad4a0c7a953713a09231152e47cec73ad051
[ "MIT" ]
1
2020-09-23T11:09:30.000Z
2020-09-23T11:09:30.000Z
import numpy as np import gdspy as gd import gds_tools as gtools #================================================ # Define healing function for transmission lines \\ #========================================================================= # Initialization: radius : radius of healing circle || # ...
46
98
0.459954
d5006992bdce67108bb2bed4c579043e84ebf7bc
651
py
Python
django_xsede_warehouse/rdr_db/migrations/0004_auto_20170203_1253.py
XSEDE/XSEDE_Information_Warehouse
8b3aab42b7afd70ce69b9bf44551a0ded4491831
[ "Apache-2.0" ]
1
2019-10-29T22:50:29.000Z
2019-10-29T22:50:29.000Z
django_xsede_warehouse/rdr_db/migrations/0004_auto_20170203_1253.py
XSEDE/XSEDE_Information_Warehouse
8b3aab42b7afd70ce69b9bf44551a0ded4491831
[ "Apache-2.0" ]
null
null
null
django_xsede_warehouse/rdr_db/migrations/0004_auto_20170203_1253.py
XSEDE/XSEDE_Information_Warehouse
8b3aab42b7afd70ce69b9bf44551a0ded4491831
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2017-02-03 12:53 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('rdr_db', '0003_auto_20160720_1235'), ] operations = [ migrations.AddField( ...
25.038462
61
0.609831
d50079b5817a98ad1161a33ed75bef9d26f81196
26,368
py
Python
torch_rl/envs/opensim_envs.py
JimmyMVP/plain_rl
4780f05fffb62533a339197b49de487cdc9d9954
[ "MIT" ]
10
2018-03-18T21:27:59.000Z
2020-08-13T20:15:05.000Z
torch_rl/envs/opensim_envs.py
JimmyMVP/plain_rl
4780f05fffb62533a339197b49de487cdc9d9954
[ "MIT" ]
1
2018-03-19T09:51:04.000Z
2018-03-19T10:11:02.000Z
torch_rl/envs/opensim_envs.py
JimmyMVP/plain_rl
4780f05fffb62533a339197b49de487cdc9d9954
[ "MIT" ]
3
2018-03-10T09:17:10.000Z
2019-12-17T20:19:56.000Z
import math import numpy as np import os from osim.env.utils.mygym import convert_to_gym import gym import opensim import random import osim ## OpenSim interface # The amin purpose of this class is to provide wrap all # the necessery elements of OpenSim in one place # The actual RL environment then only needs to: # -...
37.994236
174
0.615026
d500858db543ae684032aea40fef5632292010ec
4,545
py
Python
oscar/lib/python2.7/site-packages/IPython/utils/_get_terminal_size.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/IPython/utils/_get_terminal_size.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/IPython/utils/_get_terminal_size.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
# vendored version of backports.get_terminal_size as nemesapece package are a # mess and break, especially on ubuntu. This file is under MIT Licence. # See https://pypi.python.org/pypi/backports.shutil_get_terminal_size # # commit: afc5714b1545a5a3aa44cfb5e078d39165bf76ab (Feb 20, 2016) # from # https://github.co...
34.431818
80
0.668427
d500cb8a430d1674bbabecd9504e969bc816accb
185,666
py
Python
nova/tests/api/openstack/compute/plugins/v3/test_servers.py
osrg/nova
14b6bc655145c832bd9c822e48f877818e0e53ff
[ "Apache-2.0" ]
null
null
null
nova/tests/api/openstack/compute/plugins/v3/test_servers.py
osrg/nova
14b6bc655145c832bd9c822e48f877818e0e53ff
[ "Apache-2.0" ]
null
null
null
nova/tests/api/openstack/compute/plugins/v3/test_servers.py
osrg/nova
14b6bc655145c832bd9c822e48f877818e0e53ff
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2010-2011 OpenStack Foundation # Copyright 2011 Piston Cloud Computing, 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 ...
40.644921
79
0.53746
d500d7b1aa3c9e0eae36b09bd33c81e3d122ea8a
25,818
py
Python
main/problemsets/views.py
mahkhaled/class2go
b32cb441e8d96c257f70cb61274812ebeed2649d
[ "Apache-2.0" ]
null
null
null
main/problemsets/views.py
mahkhaled/class2go
b32cb441e8d96c257f70cb61274812ebeed2649d
[ "Apache-2.0" ]
null
null
null
main/problemsets/views.py
mahkhaled/class2go
b32cb441e8d96c257f70cb61274812ebeed2649d
[ "Apache-2.0" ]
null
null
null
from django.core.urlresolvers import reverse from c2g.models import Exercise, PageVisitLog, ProblemActivity, ProblemSet, ProblemSetToExercise, VideoToExercise from django.http import HttpResponse, Http404 from django.shortcuts import render_to_response, HttpResponseRedirect, render from django.template import RequestCo...
51.739479
250
0.646409
d500e8c3daf5f166ddaa661590425716e5a32cf0
77,052
py
Python
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/_models_py3.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/_models_py3.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/_models_py3.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# 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 ...
34.45975
189
0.626045
d500f13f63342e73c2cedc36582502a53bd308fd
34,674
py
Python
VECO/NLG/fairseq/options.py
onlyrico/AliceMind
a6a070b1610e4c4bfe84ee6c4195b2bc4f725ded
[ "Apache-2.0" ]
1
2021-08-05T05:41:50.000Z
2021-08-05T05:41:50.000Z
VECO/NLG/fairseq/options.py
onlyrico/AliceMind
a6a070b1610e4c4bfe84ee6c4195b2bc4f725ded
[ "Apache-2.0" ]
null
null
null
VECO/NLG/fairseq/options.py
onlyrico/AliceMind
a6a070b1610e4c4bfe84ee6c4195b2bc4f725ded
[ "Apache-2.0" ]
1
2021-07-10T09:50:47.000Z
2021-07-10T09:50:47.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 argparse import sys from typing import Callable, List, Optional import torch from fairseq import utils from fairseq.data.indexed_data...
53.75814
120
0.627761
d5011b55469c7f4cd36144d4a35fe8850a60a3e6
7,873
py
Python
lsgz_subsys.py
jmhull/genz-utils
acf40744fcd77bea5e11c6abaf9cbb65e8d29f9d
[ "MIT" ]
null
null
null
lsgz_subsys.py
jmhull/genz-utils
acf40744fcd77bea5e11c6abaf9cbb65e8d29f9d
[ "MIT" ]
null
null
null
lsgz_subsys.py
jmhull/genz-utils
acf40744fcd77bea5e11c6abaf9cbb65e8d29f9d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright © 2020-2021 IntelliProp Inc. # Copyright (c) 2020 Hewlett Packard Enterprise Development LP # # 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 res...
35.949772
84
0.581989
d50145db864a3eb7c07e22a4c5f4a681b2879139
2,732
py
Python
todo/modules/ufo.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
null
null
null
todo/modules/ufo.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
4
2021-06-08T20:20:08.000Z
2022-03-11T23:30:22.000Z
todo/modules/ufo.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
null
null
null
# # from cloudmesh_web/module/cloud.py # # ============================================================ # ROUTE: SAVE # ============================================================ @cloud_module.route('/save/') @login_required def save(): print "Saving the cloud status" # clouds.save() return redirect(...
24.836364
92
0.484261
d5014a93a7280ca0a77e26be8c41a59ec9ca406a
4,070
py
Python
auto_instance/version_2/rtl_generator.py
jiacaiyuan/uvm-generator
63f4c7bd0dad43b357d1cc859b61011718c597f8
[ "MIT" ]
13
2020-04-15T09:11:53.000Z
2022-03-13T02:05:53.000Z
auto_instance/version_2/rtl_generator.py
jiacaiyuan/uvm-generator
63f4c7bd0dad43b357d1cc859b61011718c597f8
[ "MIT" ]
null
null
null
auto_instance/version_2/rtl_generator.py
jiacaiyuan/uvm-generator
63f4c7bd0dad43b357d1cc859b61011718c597f8
[ "MIT" ]
4
2020-11-27T08:11:24.000Z
2022-02-19T09:11:36.000Z
import re import argparse import os class Rtl_generator: def __init__(self): self.extract_list=[] self.info_list=[] self.module_name = None @staticmethod def display_list_for_test(list_name): print('list :\n') for unit in list_name: print(u...
41.111111
105
0.487224
d50170b4b72c9b3a0d46b0f4acccf2b326ab882b
38,447
py
Python
bootcamp/wiki/views/article.py
basiltiger/easy_bootcamp
875b9ed287f1a7824bb38f142dbe2f3b1ce54389
[ "MIT" ]
null
null
null
bootcamp/wiki/views/article.py
basiltiger/easy_bootcamp
875b9ed287f1a7824bb38f142dbe2f3b1ce54389
[ "MIT" ]
null
null
null
bootcamp/wiki/views/article.py
basiltiger/easy_bootcamp
875b9ed287f1a7824bb38f142dbe2f3b1ce54389
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import difflib import logging from django.contrib import messages from django.contrib.auth.decorators import login_required from django.core.urlresolvers import reverse from django.db import transaction from django.db.models import Q from django.http imp...
38.028684
163
0.605275
d501925de4e148409edd93b075969295380e8dda
45,681
py
Python
parcels/particleset.py
MariusWiggert/parcels
265af7415472929c21ee64341ef6a49648a1235a
[ "MIT" ]
null
null
null
parcels/particleset.py
MariusWiggert/parcels
265af7415472929c21ee64341ef6a49648a1235a
[ "MIT" ]
null
null
null
parcels/particleset.py
MariusWiggert/parcels
265af7415472929c21ee64341ef6a49648a1235a
[ "MIT" ]
null
null
null
from ctypes import Structure, POINTER import time as time_module from datetime import date from datetime import datetime from datetime import timedelta as delta import numpy as np import xarray as xr from operator import attrgetter import progressbar from parcels.compiler import GNUCompiler from parcels.field import ...
50.088816
208
0.615311
d5019ec0ce322478e22532be43d2de18f1a72012
3,731
py
Python
experiments/ashvin/icml2020/hand/sparse/bc3.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icml2020/hand/sparse/bc3.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icml2020/hand/sparse/bc3.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
""" AWR + SAC from demo experiment """ from rlkit.demos.source.dict_to_mdp_stacked_path_loader import DictToMDPStackedPathLoader from rlkit.launchers.experiments.awac.awac_rl import experiment import rlkit.misc.hyperparameter as hyp from rlkit.launchers.arglauncher import run_variants from rlkit.torch.sac.policies i...
30.333333
89
0.56714
d5020b263ea2042ba81f2076c809d0be4f44ca05
2,111
py
Python
bark_ml/library_wrappers/lib_tf_agents/tfa_wrapper.py
mansoorcheema/bark-ml
349c0039a5f54778d6b7aea7fd18e3e979efc3a3
[ "MIT" ]
null
null
null
bark_ml/library_wrappers/lib_tf_agents/tfa_wrapper.py
mansoorcheema/bark-ml
349c0039a5f54778d6b7aea7fd18e3e979efc3a3
[ "MIT" ]
null
null
null
bark_ml/library_wrappers/lib_tf_agents/tfa_wrapper.py
mansoorcheema/bark-ml
349c0039a5f54778d6b7aea7fd18e3e979efc3a3
[ "MIT" ]
null
null
null
# Copyright (c) 2020 fortiss GmbH # # Authors: Patrick Hart # # This work is licensed under the terms of the MIT license. # For a copy, see <https://opensource.org/licenses/MIT>. import numpy as np import tensorflow as tf # tfa specific from tf_agents.environments import py_environment from tf_agents.specs import arr...
28.917808
73
0.717196
d50211aab64110c708b988107521d7189f1c693f
3,518
py
Python
tql/algo_ml/models/classifier/baseline_lgb.py
Jie-Yuan/1_DataMining
f5338388b4f883233f350d4fb9c5903180883430
[ "Apache-2.0" ]
14
2019-06-25T13:46:32.000Z
2020-10-27T02:04:59.000Z
tql/algo_ml/models/classifier/baseline_lgb.py
Jie-Yuan/2_DataMining
f5338388b4f883233f350d4fb9c5903180883430
[ "Apache-2.0" ]
null
null
null
tql/algo_ml/models/classifier/baseline_lgb.py
Jie-Yuan/2_DataMining
f5338388b4f883233f350d4fb9c5903180883430
[ "Apache-2.0" ]
7
2019-06-25T13:26:16.000Z
2020-10-27T02:05:03.000Z
#!/usr/bin/env python # -*- coding= utf-8 -*- """ __title__ = lgb __author__ = JieYuan __mtime__ = 19-1-2 """ import lightgbm as lgb class BaselineLGB(object): """ b_lgb = BaselineLGB(X, y, learning_rate=0.01) b_lgb.run() """ def __init__(self, X, y, learning_rate=0.01, categorical_feature...
34.490196
126
0.575895
d5021526521c1b15fdf579bde5235f87f39394e6
8,634
py
Python
appengine_module/testing_utils/testing.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine_module/testing_utils/testing.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
appengine_module/testing_utils/testing.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from contextlib import contextmanager import collections import mock import time # appengine sdk is supposed to be on the path. import dev_appserver dev_app...
33.08046
80
0.69678
d502225865478c5eac074d4aa67b089db1aabf8b
15,514
py
Python
Followup v0.79/fup/models/batch.py
iaiting/Flask-and-pywebview-followup-application-gui
b665334403b4a8471b5f28054ee2dc7adda7d9fc
[ "MIT" ]
null
null
null
Followup v0.79/fup/models/batch.py
iaiting/Flask-and-pywebview-followup-application-gui
b665334403b4a8471b5f28054ee2dc7adda7d9fc
[ "MIT" ]
null
null
null
Followup v0.79/fup/models/batch.py
iaiting/Flask-and-pywebview-followup-application-gui
b665334403b4a8471b5f28054ee2dc7adda7d9fc
[ "MIT" ]
1
2019-12-25T11:57:45.000Z
2019-12-25T11:57:45.000Z
def create_table_followup(): from fup.utils.dbwrap import execute_query from fup.models.sqlquery import create_table_followup return execute_query(create_table_followup) def create_table_fileshistory(): from fup.utils.dbwrap import execute_query from fup.models.sqlquery import create_table...
34.784753
137
0.619376
d502479f65c3b40fcc850452534c456e2e412ce1
2,392
py
Python
src/sardana/macroserver/recorders/h5util.py
marc2332/sardana
48dc9191baaa63f6c714d8c025e8f3f96548ad26
[ "CC-BY-3.0" ]
43
2016-11-25T15:21:23.000Z
2021-08-20T06:09:40.000Z
src/sardana/macroserver/recorders/h5util.py
marc2332/sardana
48dc9191baaa63f6c714d8c025e8f3f96548ad26
[ "CC-BY-3.0" ]
1,263
2016-11-25T15:58:37.000Z
2021-11-02T22:23:47.000Z
src/sardana/macroserver/recorders/h5util.py
marc2332/sardana
48dc9191baaa63f6c714d8c025e8f3f96548ad26
[ "CC-BY-3.0" ]
58
2016-11-21T11:33:55.000Z
2021-09-01T06:21:21.000Z
#!/usr/bin/env python ############################################################################## ## # This file is part of Sardana ## # http://www.sardana-controls.org/ ## # Copyright 2011 CELLS / ALBA Synchrotron, Bellaterra, Spain ## # Sardana is free software: you can redistribute it and/or modify # it under th...
27.813953
78
0.590301
d5025e435aba26500a5413f9603d64bb799b3472
340
py
Python
cloudmesh_cmd3/plugins/cm_shell_cloud.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
null
null
null
cloudmesh_cmd3/plugins/cm_shell_cloud.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
4
2021-06-08T20:20:08.000Z
2022-03-11T23:30:22.000Z
cloudmesh_cmd3/plugins/cm_shell_cloud.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
null
null
null
from cmd3.shell import function_command from cloudmesh.shell.cm_cloud import shell_command_cloud class cm_shell_cloud: def activate_cm_shell_cloud(self): self.register_command_topic('cloud', 'cloud') @function_command(shell_command_cloud) def do_cloud(self, args, arguments): shell_comma...
24.285714
56
0.770588
d5026685c1a3adb9f5b7d242935e18eb3665fa9e
1,736
py
Python
01-Advanced-Perspective-of-Classes-and-OOP/2.4.1.12-Property-reading-signaler-as-class-LAB/2.4.1.12-Property-reading-signaler-as-class-LAB.py
IvanDemin3467/Python-Professional-by-Python-Institute
7ee4f843eb1951b42d6aa9fc285ff5788f6b6eff
[ "Unlicense" ]
null
null
null
01-Advanced-Perspective-of-Classes-and-OOP/2.4.1.12-Property-reading-signaler-as-class-LAB/2.4.1.12-Property-reading-signaler-as-class-LAB.py
IvanDemin3467/Python-Professional-by-Python-Institute
7ee4f843eb1951b42d6aa9fc285ff5788f6b6eff
[ "Unlicense" ]
null
null
null
01-Advanced-Perspective-of-Classes-and-OOP/2.4.1.12-Property-reading-signaler-as-class-LAB/2.4.1.12-Property-reading-signaler-as-class-LAB.py
IvanDemin3467/Python-Professional-by-Python-Institute
7ee4f843eb1951b42d6aa9fc285ff5788f6b6eff
[ "Unlicense" ]
null
null
null
from __future__ import annotations from datetime import datetime class TimestampDecorator: """ Decorator class that prints timestamp before decorated function run """ def __init__(self, own_function): """ Simple initialization :param own_function: a function to decorate ...
31
79
0.642281
d5026a1ffefccc535ea7055dd45a8430cd1da17d
4,887
py
Python
zytlib/visual/animation.py
sillybun/pyctlib
d4c8b191fd270923ad73924760847f2bdbdd9116
[ "MIT" ]
3
2021-07-03T17:27:44.000Z
2021-09-26T20:48:19.000Z
zytlib/visual/animation.py
sillybun/pyctlib
d4c8b191fd270923ad73924760847f2bdbdd9116
[ "MIT" ]
null
null
null
zytlib/visual/animation.py
sillybun/pyctlib
d4c8b191fd270923ad73924760847f2bdbdd9116
[ "MIT" ]
1
2022-03-08T08:54:03.000Z
2022-03-08T08:54:03.000Z
from matplotlib import pyplot as plt from ..vector import vector from ..table import table import torch class animation_content: def __init__(self, ax, max_frame): self.ax = ax self.max_frame = max_frame self.default_colors = [u'b', u'g', u'r', u'c', u'm', u'y', u'k'] self.title_fu...
38.785714
146
0.607121
d502a5069e660b1457e5c0d57a7c825ad74fd2bf
14,982
py
Python
google/cloud/vision_v1p3beta1/services/image_annotator/transports/grpc_asyncio.py
glaswasser/python-vision
706c314a86b8f35c313bb3e907ae84317dca1a0b
[ "Apache-2.0" ]
3
2021-03-29T19:21:08.000Z
2021-12-31T09:30:11.000Z
google/cloud/vision_v1p3beta1/services/image_annotator/transports/grpc_asyncio.py
glaswasser/python-vision
706c314a86b8f35c313bb3e907ae84317dca1a0b
[ "Apache-2.0" ]
3
2021-09-08T03:19:56.000Z
2022-03-12T00:58:03.000Z
google/cloud/vision_v1p3beta1/services/image_annotator/transports/grpc_asyncio.py
baronrustamov/python-vision
236a5676459abaa3f0b7d991977dc712259a3176
[ "Apache-2.0" ]
1
2021-03-30T05:02:53.000Z
2021-03-30T05:02:53.000Z
# -*- 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 o...
43.552326
94
0.637966
d502c1cb2b15f7cdc68bab8b26ab79ae1f2514a4
9,136
py
Python
jupyterhub/comanage.py
bnl-sdcc/jupyterhub
408afa2cbb5c04a482af05258cc9e9e57da7645c
[ "BSD-3-Clause" ]
null
null
null
jupyterhub/comanage.py
bnl-sdcc/jupyterhub
408afa2cbb5c04a482af05258cc9e9e57da7645c
[ "BSD-3-Clause" ]
null
null
null
jupyterhub/comanage.py
bnl-sdcc/jupyterhub
408afa2cbb5c04a482af05258cc9e9e57da7645c
[ "BSD-3-Clause" ]
1
2019-10-24T20:46:39.000Z
2019-10-24T20:46:39.000Z
# From spawner import asyncio import errno import json import os import pipes import shutil import signal import sys import warnings from subprocess import Popen from tempfile import mkdtemp # FIXME: remove when we drop Python 3.5 support from async_generator import async_generator, yield_ from sqlalchemy import in...
32.628571
95
0.607487
d502f2b459b2fc28875305eb82127255583c2eb1
8,758
py
Python
txdav/common/datastore/query/expression.py
eventable/CalendarServer
384444edb1966b530bc391789afbe3fb9cd6fd3e
[ "Apache-2.0" ]
1
2017-02-18T19:22:19.000Z
2017-02-18T19:22:19.000Z
txdav/common/datastore/query/expression.py
eventable/CalendarServer
384444edb1966b530bc391789afbe3fb9cd6fd3e
[ "Apache-2.0" ]
null
null
null
txdav/common/datastore/query/expression.py
eventable/CalendarServer
384444edb1966b530bc391789afbe3fb9cd6fd3e
[ "Apache-2.0" ]
null
null
null
## # Copyright (c) 2006-2015 Apple 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 l...
22.866841
107
0.639986