hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
7c17e52c3fe60426ceb8799d558d1a3c553bee41
1,331
py
Python
setup.py
EfficientEra/login-and-pay-with-amazon-sdk-python
029175abc9835ba1927cdd04e88209212cee2443
[ "Apache-2.0" ]
1
2019-12-01T09:14:26.000Z
2019-12-01T09:14:26.000Z
setup.py
EfficientEra/login-and-pay-with-amazon-sdk-python
029175abc9835ba1927cdd04e88209212cee2443
[ "Apache-2.0" ]
null
null
null
setup.py
EfficientEra/login-and-pay-with-amazon-sdk-python
029175abc9835ba1927cdd04e88209212cee2443
[ "Apache-2.0" ]
null
null
null
from setuptools import setup import pay_with_amazon.version as pwa_version setup( name='pay_with_amazon', packages=['pay_with_amazon'], version=pwa_version.versions['application_version'], description='Login and Pay with Amazon Python SDK', url='https://github.com/amzn/login-and-pay-with-amazon-sdk...
42.935484
99
0.639369
3bcb2215a3aa7f4a791e6b80516b1afd33a67096
3,060
py
Python
timesketch/lib/analyzers/utils_test.py
macdaliot/timesketch
f6a4984208f4c39f01efd72e36ddf21f630b6699
[ "Apache-2.0" ]
4
2018-11-01T16:13:31.000Z
2022-03-18T12:09:25.000Z
timesketch/lib/analyzers/utils_test.py
macdaliot/timesketch
f6a4984208f4c39f01efd72e36ddf21f630b6699
[ "Apache-2.0" ]
null
null
null
timesketch/lib/analyzers/utils_test.py
macdaliot/timesketch
f6a4984208f4c39f01efd72e36ddf21f630b6699
[ "Apache-2.0" ]
1
2021-11-16T00:01:18.000Z
2021-11-16T00:01:18.000Z
# Copyright 2019 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...
35.172414
74
0.652288
215ae35002af3c2426a7d33004ec4f9389563be3
1,669
py
Python
how-to-use-azureml/automated-machine-learning/forecasting-bike-share/forecasting_script.py
Jaboo9/MachineLearningNotebooks
6fe90ec1bfedcd51da4fa9f709583458cbddcf3c
[ "MIT" ]
null
null
null
how-to-use-azureml/automated-machine-learning/forecasting-bike-share/forecasting_script.py
Jaboo9/MachineLearningNotebooks
6fe90ec1bfedcd51da4fa9f709583458cbddcf3c
[ "MIT" ]
null
null
null
how-to-use-azureml/automated-machine-learning/forecasting-bike-share/forecasting_script.py
Jaboo9/MachineLearningNotebooks
6fe90ec1bfedcd51da4fa9f709583458cbddcf3c
[ "MIT" ]
1
2021-06-02T06:31:15.000Z
2021-06-02T06:31:15.000Z
import argparse import azureml.train.automl from azureml.automl.runtime._vendor.automl.client.core.runtime import forecasting_models from azureml.core import Run from sklearn.externals import joblib import forecasting_helper parser = argparse.ArgumentParser() parser.add_argument( '--max_horizon', type=int, dest='...
29.280702
88
0.777711
e2288dcd49d8a7a8cb34bbd4283e96f8939d59f5
5,682
py
Python
oss2/exceptions.py
rxwen/aliyun-oss-py
090fa82414490cded6c7af12802239f6fdd5d268
[ "Apache-2.0" ]
null
null
null
oss2/exceptions.py
rxwen/aliyun-oss-py
090fa82414490cded6c7af12802239f6fdd5d268
[ "Apache-2.0" ]
null
null
null
oss2/exceptions.py
rxwen/aliyun-oss-py
090fa82414490cded6c7af12802239f6fdd5d268
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ oss2.exceptions ~~~~~~~~~~~~~~ 异常类。 """ import re import xml.etree.ElementTree as ElementTree from xml.parsers import expat from .compat import to_string _OSS_ERROR_TO_EXCEPTION = {} # populated at end of module OSS_CLIENT_ERROR_STATUS = -1 OSS_REQUEST_ERROR_STATUS = -2 OSS_INCONSI...
21.687023
103
0.645723
989a3e62d2d140a347ede66c54d2a50ae51dac9f
516
py
Python
backend/api/authentication/__init__.py
jacorea/ismp
81cf55559005753f3055165689889b18aec958ac
[ "CC0-1.0" ]
3
2020-05-08T03:51:43.000Z
2020-06-13T23:12:26.000Z
backend/api/authentication/__init__.py
jacorea/ismp
81cf55559005753f3055165689889b18aec958ac
[ "CC0-1.0" ]
15
2020-05-04T05:49:17.000Z
2020-06-01T21:31:03.000Z
backend/api/authentication/__init__.py
jacorea/ismp
81cf55559005753f3055165689889b18aec958ac
[ "CC0-1.0" ]
11
2020-05-01T04:35:24.000Z
2020-05-28T17:17:21.000Z
from django.apps import AppConfig class AuthenticationAppConfig(AppConfig): name = 'api.authentication' label = 'authentication' verbose_name = 'Authentication' def ready(self): import api.authentication.signals # This is how we register our custom app config with Django. Django is smart # ...
30.352941
77
0.767442
17f5f3d022cebd9ec1879e82a515bf6d9ebdad4b
16,853
py
Python
sample_data/Set-PD-Ix-100/3_Analyses/DOE_Ix-PD-100/Input_point1/Imperfection_point1/DoE_point10/script_DoE10_meshing.py
hanklu2020/mabessa_F3DAS
57b1bd1cb85d96567ad1044c216535ab3df88db3
[ "BSD-3-Clause" ]
null
null
null
sample_data/Set-PD-Ix-100/3_Analyses/DOE_Ix-PD-100/Input_point1/Imperfection_point1/DoE_point10/script_DoE10_meshing.py
hanklu2020/mabessa_F3DAS
57b1bd1cb85d96567ad1044c216535ab3df88db3
[ "BSD-3-Clause" ]
null
null
null
sample_data/Set-PD-Ix-100/3_Analyses/DOE_Ix-PD-100/Input_point1/Imperfection_point1/DoE_point10/script_DoE10_meshing.py
hanklu2020/mabessa_F3DAS
57b1bd1cb85d96567ad1044c216535ab3df88db3
[ "BSD-3-Clause" ]
null
null
null
# Abaqus/CAE script # Created by M.A. Bessa (M.A.Bessa@tudelft.nl) on 12-Nov-2019 00:39:42 # from abaqus import * from abaqusConstants import * session.viewports['Viewport: 1'].makeCurrent() #session.viewports['Viewport: 1'].maximize() from caeModules import * from driverUtils import executeOnCaeStartup executeOnCaeSta...
44.467018
206
0.692933
8ef0138c93d6fca21405c2b6172e89b5ed02dada
134
py
Python
pymediaroom/__init__.py
MartinHjelmare/pymediaroom
f4f2686c8d5622dd5ae1bcdd76900ba35e148529
[ "MIT" ]
null
null
null
pymediaroom/__init__.py
MartinHjelmare/pymediaroom
f4f2686c8d5622dd5ae1bcdd76900ba35e148529
[ "MIT" ]
null
null
null
pymediaroom/__init__.py
MartinHjelmare/pymediaroom
f4f2686c8d5622dd5ae1bcdd76900ba35e148529
[ "MIT" ]
null
null
null
from .remote import * from .commands import * from .error import * from .notify import install_mediaroom_protocol version = '0.6.3'
19.142857
47
0.753731
4a456bc210d5410287e518416584b5b260be8d2e
288
py
Python
pypesto/profile/__init__.py
m-philipps/pyPESTO
4c30abfca56ba714c302141cd44a9dd366bff4bb
[ "BSD-3-Clause" ]
null
null
null
pypesto/profile/__init__.py
m-philipps/pyPESTO
4c30abfca56ba714c302141cd44a9dd366bff4bb
[ "BSD-3-Clause" ]
null
null
null
pypesto/profile/__init__.py
m-philipps/pyPESTO
4c30abfca56ba714c302141cd44a9dd366bff4bb
[ "BSD-3-Clause" ]
null
null
null
""" Profile ======= """ from .approximate import approximate_parameter_profile from .options import ProfileOptions from .profile import parameter_profile from .util import calculate_approximate_ci, chi2_quantile_to_ratio from .validation_intervals import validation_profile_significance
26.181818
66
0.84375
8d2c5f4ae68bb563025936a8f042a2c95610c030
17,259
py
Python
attentive_gan_model/attentive_gan_net.py
sohaibrabbani/weather-removal-GAN
34e277737d4842f1aa3559919b27d3622ab25075
[ "MIT" ]
235
2018-07-31T15:53:33.000Z
2022-03-28T11:25:00.000Z
attentive_gan_model/attentive_gan_net.py
sohaibrabbani/weather-removal-GAN
34e277737d4842f1aa3559919b27d3622ab25075
[ "MIT" ]
83
2018-09-07T04:29:14.000Z
2022-03-31T17:06:32.000Z
attentive_gan_model/attentive_gan_net.py
sohaibrabbani/weather-removal-GAN
34e277737d4842f1aa3559919b27d3622ab25075
[ "MIT" ]
88
2018-08-16T10:55:16.000Z
2022-03-07T07:19:58.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # @Time : 18-6-26 上午11:45 # @Author : MaybeShewill-CV # @Site : https://github.com/MaybeShewill-CV/attentive-gan-derainnet # @File : attentive_gan_net.py # @IDE: PyCharm """ 实现Attentive GAN Network中的Attentive-Recurrent Network """ import tensorflow as tf from at...
46.395161
107
0.522974
11de698e14944b1b7d21742096c2130579c4d3b3
6,777
py
Python
src/parsing/grammar.py
iwasingh/Wikoogle
ef39b4f96347c9899721ea78403d8db84e0c2b82
[ "MIT" ]
8
2020-06-27T08:56:30.000Z
2021-09-29T21:31:24.000Z
src/parsing/grammar.py
iwasingh/Wikoogle
ef39b4f96347c9899721ea78403d8db84e0c2b82
[ "MIT" ]
2
2020-09-03T15:52:17.000Z
2021-03-31T19:53:56.000Z
src/parsing/grammar.py
iwasingh/Wikoogle
ef39b4f96347c9899721ea78403d8db84e0c2b82
[ "MIT" ]
1
2020-06-29T15:50:51.000Z
2020-06-29T15:50:51.000Z
import logging import re import parsing.parser as p from .combinators import pipe, expect, extract, seq, sor, rep, ParseError from .symbols import Template, Text, Link, Heading, Heading6, Heading5, Heading4, Heading3, Comment, Bold, \ ItalicAndBold, Italic from .utils import recursive # import src.parsing.lexer as...
29.986726
121
0.531504
69bc1b272f2322bb882336928245a5967af4a226
1,502
py
Python
day04/main.py
carterbourette/advent-of-code
b031ea923a4f27487ffb43acdd5bef228c3dfa42
[ "MIT" ]
1
2020-12-05T20:54:08.000Z
2020-12-05T20:54:08.000Z
day04/main.py
carterbourette/advent-of-code
b031ea923a4f27487ffb43acdd5bef228c3dfa42
[ "MIT" ]
null
null
null
day04/main.py
carterbourette/advent-of-code
b031ea923a4f27487ffb43acdd5bef228c3dfa42
[ "MIT" ]
null
null
null
import utility """Day 04: Passport Processing""" inputs = utility.inputs( parse=lambda line: [ field for field in line.split() ], pre_process='\n\n' ) def valid_height(x): is_cm = x.endswith('cm') and 150 <= int(x[:-2]) <= 193 is_in = x.endswith('in') and 59 <= int(x[:-2]) <= 76 return is_cm or ...
25.033333
102
0.563249
c76be2cf1a62170975c718e279b9342f8d6c0d86
5,889
py
Python
loaders/base_loader.py
agis85/spatial_factorisation
233d72511ffb52f52214a68f1c996555345991d0
[ "MIT" ]
15
2019-03-08T13:42:28.000Z
2021-05-06T12:08:24.000Z
loaders/base_loader.py
agis85/spatial_factorisation
233d72511ffb52f52214a68f1c996555345991d0
[ "MIT" ]
null
null
null
loaders/base_loader.py
agis85/spatial_factorisation
233d72511ffb52f52214a68f1c996555345991d0
[ "MIT" ]
3
2019-07-07T14:00:20.000Z
2020-10-07T17:11:00.000Z
import os import numpy as np from abc import abstractmethod class Loader(object): """ Abstract class defining the behaviour of loaders for different datasets. """ def __init__(self): self.num_masks = 0 self.num_volumes = 0 self.input_shape = (None, None, 1) self.data_...
48.669421
111
0.641875
c29f0d4062bbd42e4fecbed6e167798392a23769
5,001
py
Python
tensorflow_datasets/core/utils/version.py
ChAnYaNG97/datasets
0a45e2ea98716d325fc1c5e5494f2575f3bdb908
[ "Apache-2.0" ]
1
2020-05-24T21:30:50.000Z
2020-05-24T21:30:50.000Z
tensorflow_datasets/core/utils/version.py
ChAnYaNG97/datasets
0a45e2ea98716d325fc1c5e5494f2575f3bdb908
[ "Apache-2.0" ]
null
null
null
tensorflow_datasets/core/utils/version.py
ChAnYaNG97/datasets
0a45e2ea98716d325fc1c5e5494f2575f3bdb908
[ "Apache-2.0" ]
1
2020-04-15T19:20:58.000Z
2020-04-15T19:20:58.000Z
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
32.686275
79
0.689662
f59754d50569c0d113bd4036c76988450cc169ed
2,742
py
Python
drf_admin/apps/system/serializers/users.py
liu3734/drf_admin
f47edff36e761380a36834daa017a3c0808a0505
[ "MIT" ]
null
null
null
drf_admin/apps/system/serializers/users.py
liu3734/drf_admin
f47edff36e761380a36834daa017a3c0808a0505
[ "MIT" ]
null
null
null
drf_admin/apps/system/serializers/users.py
liu3734/drf_admin
f47edff36e761380a36834daa017a3c0808a0505
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ @author : Wang Meng @github : https://github.com/tianpangji @software : PyCharm @file : users.py @create : 2020/7/1 22:33 """ import re from django.conf import settings from django.contrib.auth import get_user_model from rest_framework import serializers Users = get_user_model() ...
29.170213
108
0.619621
687d9bdb1bc523d3359e145e4dab5b2deabafbf7
1,889
py
Python
tests/01_integration/conftest.py
wolcomm/eos-prefix-list-agent
a1ec37494048f0f0524ca5ff985838d844c84e4e
[ "MIT" ]
8
2019-06-02T23:47:38.000Z
2021-08-24T07:30:08.000Z
tests/01_integration/conftest.py
wolcomm/eos-prefix-list-agent
a1ec37494048f0f0524ca5ff985838d844c84e4e
[ "MIT" ]
39
2019-04-09T06:21:56.000Z
2022-01-29T10:00:37.000Z
tests/01_integration/conftest.py
wolcomm/eos-prefix-list-agent
a1ec37494048f0f0524ca5ff985838d844c84e4e
[ "MIT" ]
null
null
null
# Copyright (c) 2019 Workonline Communications (Pty) Ltd. All rights reserved. # # The contents of this file are licensed under the MIT License # (the "License"); you may not use this file except in compliance with the # License. # # Unless required by applicable law or agreed to in writing, software # distributed unde...
28.621212
79
0.67549
fd6e6421937d23733c2472458296fa9638ed68b2
1,036
py
Python
spotify/v1/me/player/device.py
geekonedge/spotify
1f4cf733a1fb11ab96259ed1e229b141e5c696f3
[ "MIT" ]
2
2018-10-10T08:00:47.000Z
2021-10-12T04:15:33.000Z
spotify/v1/me/player/device.py
geekonedge/spotify
1f4cf733a1fb11ab96259ed1e229b141e5c696f3
[ "MIT" ]
2
2018-08-31T21:59:47.000Z
2018-08-31T22:27:57.000Z
spotify/v1/me/player/device.py
geekonedge/spotify
1f4cf733a1fb11ab96259ed1e229b141e5c696f3
[ "MIT" ]
1
2018-08-31T21:18:58.000Z
2018-08-31T21:18:58.000Z
from spotify.object.device import Device from spotify.page import Page from spotify.resource import Resource class DeviceInstance(Resource): def __init__(self, version, properties): super(DeviceInstance, self).__init__(version) self._device = Device.from_json(properties) @property def id...
21.142857
68
0.677606
f1b72354618112bdbca91e745a25256fa84bc6a8
6,531
py
Python
tests/test_lastseen.py
pawelkopka/kopf
51a3a70e09a17cf3baec2946b64b125a90595cf4
[ "MIT" ]
null
null
null
tests/test_lastseen.py
pawelkopka/kopf
51a3a70e09a17cf3baec2946b64b125a90595cf4
[ "MIT" ]
null
null
null
tests/test_lastseen.py
pawelkopka/kopf
51a3a70e09a17cf3baec2946b64b125a90595cf4
[ "MIT" ]
null
null
null
import json import pytest from kopf.structs.lastseen import LAST_SEEN_ANNOTATION from kopf.structs.lastseen import has_essence_stored, get_essence from kopf.structs.lastseen import get_essential_diffs from kopf.structs.lastseen import retrieve_essence, refresh_essence def test_annotation_is_fqdn(): assert LAST_...
36.082873
96
0.635125
ecc9ccb82fd4ae56ac6a14dadaffa13326ca3fac
8,594
py
Python
morf-python-api/morf/utils/config.py
jpgard/morf
f17afcacef68929a5ce9e7714208be1002a42418
[ "MIT" ]
14
2018-06-27T13:15:46.000Z
2021-08-30T08:24:38.000Z
morf-python-api/morf/utils/config.py
jpgard/morf
f17afcacef68929a5ce9e7714208be1002a42418
[ "MIT" ]
58
2018-02-03T15:31:15.000Z
2019-10-15T02:12:05.000Z
morf-python-api/morf/utils/config.py
jpgard/morf
f17afcacef68929a5ce9e7714208be1002a42418
[ "MIT" ]
7
2018-03-29T14:47:34.000Z
2021-06-22T01:34:52.000Z
# Copyright (c) 2018 The Regents of the University of Michigan # and the University of Pennsylvania # # 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 li...
40.158879
188
0.671166
34b2fc8089b5b117ff1693342a4e180ea477d736
452
py
Python
_modules/neutronv2/auto_alloc.py
NDPF/salt-formula-neutron
758f3350fa541a41174105c92c0b9cceb6951d81
[ "Apache-2.0" ]
3
2017-06-30T18:09:44.000Z
2017-11-04T18:24:39.000Z
_modules/neutronv2/auto_alloc.py
NDPF/salt-formula-neutron
758f3350fa541a41174105c92c0b9cceb6951d81
[ "Apache-2.0" ]
10
2017-02-25T21:39:01.000Z
2018-09-19T07:53:46.000Z
_modules/neutronv2/auto_alloc.py
NDPF/salt-formula-neutron
758f3350fa541a41174105c92c0b9cceb6951d81
[ "Apache-2.0" ]
21
2017-02-01T18:12:51.000Z
2019-04-29T09:29:01.000Z
from neutronv2.common import send try: from urllib.parse import urlencode except ImportError: from urllib import urlencode @send('get') def auto_alloc_get_details(project_id, **kwargs): url = '/auto-allocated-topology/{}?{}'.format( project_id, urlencode(kwargs) ) return url, {} @send('...
21.52381
58
0.688053
c5a3ffe5aa46824da8062e9a6b5454f33e456021
6,409
py
Python
src/execute_script.py
rrhuffy/hybristools
1c91ffd929f7a1752ec2c1737325c5fa50a159da
[ "MIT" ]
2
2021-03-17T00:16:04.000Z
2021-03-20T08:07:21.000Z
src/execute_script.py
rrhuffy/hybristools
1c91ffd929f7a1752ec2c1737325c5fa50a159da
[ "MIT" ]
null
null
null
src/execute_script.py
rrhuffy/hybristools
1c91ffd929f7a1752ec2c1737325c5fa50a159da
[ "MIT" ]
2
2021-03-22T13:53:00.000Z
2022-01-07T16:28:43.000Z
#!/usr/bin/env python3 import argparse import logging import re import sys from bs4 import BeautifulSoup from lib import argparse_helper from lib import hybris_argparse_helper from lib import hybris_requests_helper from lib import logging_helper from lib import requests_helper class ScriptExecutionResponse: def...
47.125
120
0.697145
a012245c6a67836083b6a8eb4618caba4ce8e40d
6,516
py
Python
scripts/exp_rl_discriminator.py
TUIlmenauAMS/rl_singing_voice
60204c698d48f27b44588c9d6c8dd2c66a13fcd5
[ "MIT" ]
19
2020-03-02T19:52:46.000Z
2021-12-15T00:38:45.000Z
scripts/exp_rl_discriminator.py
TUIlmenauAMS/rl_singing_voice
60204c698d48f27b44588c9d6c8dd2c66a13fcd5
[ "MIT" ]
3
2020-06-28T13:02:16.000Z
2021-04-22T03:31:26.000Z
scripts/exp_rl_discriminator.py
TUIlmenauAMS/rl_singing_voice
60204c698d48f27b44588c9d6c8dd2c66a13fcd5
[ "MIT" ]
3
2021-01-19T07:44:40.000Z
2021-12-15T00:38:25.000Z
# -*- coding: utf-8 -*- __author__ = 'S.I. Mimilakis' __copyright__ = 'Fraunhofer IDMT' # imports import numpy as np import torch from nn_modules import losses from tools import helpers, visualize, nn_loaders from settings.rl_disc_experiment_settings import exp_settings from torch.distributions import Normal def per...
43.152318
120
0.601443
86ca517bb4ccb6ef7a5494f4ec2440ec231905b4
26,306
py
Python
notebooks/__code/bragg_edge/bragg_edge_sample_and_powder.py
mabrahamdevops/python_notebooks
6d5e7383b60cc7fd476f6e85ab93e239c9c32330
[ "BSD-3-Clause" ]
null
null
null
notebooks/__code/bragg_edge/bragg_edge_sample_and_powder.py
mabrahamdevops/python_notebooks
6d5e7383b60cc7fd476f6e85ab93e239c9c32330
[ "BSD-3-Clause" ]
null
null
null
notebooks/__code/bragg_edge/bragg_edge_sample_and_powder.py
mabrahamdevops/python_notebooks
6d5e7383b60cc7fd476f6e85ab93e239c9c32330
[ "BSD-3-Clause" ]
null
null
null
import random import os import glob from pathlib import Path from IPython.core.display import HTML from IPython.display import display import numpy as np from plotly.offline import iplot import plotly.graph_objs as go from ipywidgets import widgets import logging from neutronbraggedge.experiment_handler import * from ...
44.586441
120
0.527522
a9c8fafc8b75bd9e1dc3131811a4cc8342104c23
7,072
py
Python
django_gui/test_django_server_api.py
timburbank/openrvdas
ba77d3958075abd21ff94a396e4a97879962ac0c
[ "BSD-2-Clause" ]
null
null
null
django_gui/test_django_server_api.py
timburbank/openrvdas
ba77d3958075abd21ff94a396e4a97879962ac0c
[ "BSD-2-Clause" ]
null
null
null
django_gui/test_django_server_api.py
timburbank/openrvdas
ba77d3958075abd21ff94a396e4a97879962ac0c
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 ### ### """Note: the Django tests don't run properly when run via normal unittesting, so we need to run them via "./manage.py test". Disabled until we figure out how to force it to use the test database.""" import logging import os import sys import unittest import warnings from django.test im...
31.571429
198
0.479214
c281f26ac1aa92589e736b11431716a3d6b3f1ad
36,775
py
Python
femagtools/ts.py
dapu/femagtools
95eaf750adc2013232cdf482e523b3900ac6eb08
[ "BSD-2-Clause" ]
null
null
null
femagtools/ts.py
dapu/femagtools
95eaf750adc2013232cdf482e523b3900ac6eb08
[ "BSD-2-Clause" ]
null
null
null
femagtools/ts.py
dapu/femagtools
95eaf750adc2013232cdf482e523b3900ac6eb08
[ "BSD-2-Clause" ]
null
null
null
""" Classes for post processing based on vtu-files of created by FEMAG-TS """ __author__ = 'werner b. vetter, ronald tanner' import femagtools.nc import femagtools.vtu as vtu import numpy as np import scipy.integrate as integrate import warnings def losscoeff_frequency_to_time(B0, f0, c, exp): '''Convert Bertott...
37.29716
99
0.511108
de410ba23e79a4f845b2f9c843a8533e017edf1c
2,297
py
Python
tests/test_api_consumer.py
qxl0/chain
92152199257e3232f72ea4326022a39326462c7f
[ "MIT" ]
1
2022-02-10T18:59:52.000Z
2022-02-10T18:59:52.000Z
tests/test_api_consumer.py
qxl0/chain
92152199257e3232f72ea4326022a39326462c7f
[ "MIT" ]
null
null
null
tests/test_api_consumer.py
qxl0/chain
92152199257e3232f72ea4326022a39326462c7f
[ "MIT" ]
1
2022-03-18T15:35:56.000Z
2022-03-18T15:35:56.000Z
import time import pytest from brownie import APIConsumer, network, config from scripts.helpful_scripts import ( LOCAL_BLOCKCHAIN_ENVIRONMENTS, get_account, listen_for_event, get_contract, fund_with_link ) @pytest.fixture def deploy_api_contract(get_job_id, chainlink_fee): # Arrange / Act ...
29.831169
81
0.707444
d521db00d47d430363804d61213d9f5f53ac5abe
1,031
py
Python
hstest/test_chip_compute2.py
Erotemic/hotspotter
3cfa4015798e21385455b937f9083405c4b3cf53
[ "Apache-2.0" ]
2
2015-07-19T02:55:06.000Z
2021-07-07T02:38:26.000Z
hstest/test_chip_compute2.py
Erotemic/hotspotter
3cfa4015798e21385455b937f9083405c4b3cf53
[ "Apache-2.0" ]
5
2017-03-11T16:30:26.000Z
2021-04-10T16:42:10.000Z
hstest/test_chip_compute2.py
Erotemic/hotspotter
3cfa4015798e21385455b937f9083405c4b3cf53
[ "Apache-2.0" ]
10
2015-07-19T03:05:42.000Z
2021-08-24T14:48:59.000Z
from hotspotter import HotSpotterAPI as api from hotspotter import chip_compute2 as cc2 from hscom import argparse2 from hscom import helpers from hscom import helpers as util from hsviz import viz import multiprocessing import numpy as np # NOQA if __name__ == '__main__': multiprocessing.freeze_support() # D...
30.323529
62
0.664403
1b5fa800bcefc9bde23c11369e5b6f27d7c7f39c
15,475
py
Python
plugins/modules/oci_database_migration_connection_actions.py
slmjy/oci-ansible-collection
349c91e2868bf4706a6e3d6fb3b47fc622bfe11b
[ "Apache-2.0" ]
108
2020-05-19T20:46:10.000Z
2022-03-25T14:10:01.000Z
plugins/modules/oci_database_migration_connection_actions.py
slmjy/oci-ansible-collection
349c91e2868bf4706a6e3d6fb3b47fc622bfe11b
[ "Apache-2.0" ]
90
2020-06-14T22:07:11.000Z
2022-03-07T05:40:29.000Z
plugins/modules/oci_database_migration_connection_actions.py
slmjy/oci-ansible-collection
349c91e2868bf4706a6e3d6fb3b47fc622bfe11b
[ "Apache-2.0" ]
42
2020-08-30T23:09:12.000Z
2022-03-25T16:58:01.000Z
#!/usr/bin/python # Copyright (c) 2020, 2021 Oracle and/or its affiliates. # This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Apache License v2.0 # See LICENSE.TXT for d...
36.411765
160
0.56504
4f241bb0eecb594e51f00d5fce47f958adaa9fae
1,704
py
Python
sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2021_08_01/models/_application_insights_management_client_enums.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2021_08_01/models/_application_insights_management_client_enums.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2021_08_01/models/_application_insights_management_client_enums.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 ...
32.150943
94
0.663732
04b8014ea95e305e90c33f41f9a47e39addb271b
1,795
py
Python
setup.py
csmith/docker-rerun
de31a64b5eb43cc3644354bb5980e22e0ee9e7a4
[ "MIT" ]
4
2017-11-23T09:50:35.000Z
2020-08-25T12:42:22.000Z
setup.py
csmith/docker-rerun
de31a64b5eb43cc3644354bb5980e22e0ee9e7a4
[ "MIT" ]
1
2016-12-28T19:30:40.000Z
2016-12-31T02:24:04.000Z
setup.py
csmith/docker-rerun
de31a64b5eb43cc3644354bb5980e22e0ee9e7a4
[ "MIT" ]
3
2016-12-28T20:36:30.000Z
2021-02-08T11:24:16.000Z
"""Setuptools based setup module for docker-rerun.""" from setuptools import setup, find_packages from os import path here = path.abspath(path.dirname(__file__)) setup( name='docker-rerun', version='0.1.1', description='Command-line tool to re-run a docker container', long_description='docker-rerun...
28.492063
80
0.567131
786ed40f07c446a6a75399460163792170141767
410
py
Python
tests/test_base.py
StevenKangWei/musicsa
485894f0c7494163cf2637542729be75c789262c
[ "MIT" ]
null
null
null
tests/test_base.py
StevenKangWei/musicsa
485894f0c7494163cf2637542729be75c789262c
[ "MIT" ]
null
null
null
tests/test_base.py
StevenKangWei/musicsa
485894f0c7494163cf2637542729be75c789262c
[ "MIT" ]
null
null
null
# coding=utf-8 import os import sys import unittest dirname = os.path.dirname(os.path.abspath(__file__)) project = os.path.abspath(os.path.join(dirname, '../musicsa')) if project not in sys.path: sys.path.insert(0, project) class BaseTestCase(unittest.TestCase): def setUp(self): pass def tearD...
17.083333
62
0.665854
09c4912fb7c3840aba8d478a284b923b23a2bc60
83
py
Python
bc1/__init__.py
jpercent/bc
ed8b91543f2854972bcbcc7f6f84cf78fabcf33f
[ "FSFAP" ]
null
null
null
bc1/__init__.py
jpercent/bc
ed8b91543f2854972bcbcc7f6f84cf78fabcf33f
[ "FSFAP" ]
null
null
null
bc1/__init__.py
jpercent/bc
ed8b91543f2854972bcbcc7f6f84cf78fabcf33f
[ "FSFAP" ]
null
null
null
from .pyflex import lex, yacc from .bc import * __author__ = 'jpercent' #del bc
10.375
29
0.698795
e226f811b5337de76fe5dcd1fee6ffcd9a7beb45
404
py
Python
ros/lib/host_inventory.py
RedHatInsights/resource-optimization-test
b94f29964e26e42a930f1ca589db80ed317afa0f
[ "Apache-2.0" ]
null
null
null
ros/lib/host_inventory.py
RedHatInsights/resource-optimization-test
b94f29964e26e42a930f1ca589db80ed317afa0f
[ "Apache-2.0" ]
null
null
null
ros/lib/host_inventory.py
RedHatInsights/resource-optimization-test
b94f29964e26e42a930f1ca589db80ed317afa0f
[ "Apache-2.0" ]
null
null
null
import requests import json from ros.config import INVENTORY_ADDRESS def fetch_host_from_inventory(insights_id, rh_identity): host_api_url = f"{INVENTORY_ADDRESS}/api/inventory/v1/hosts?insights_id={insights_id}" headers = {'x-rh-identity': rh_identity, 'Content-Type': 'application/json'} res = requests.g...
33.666667
90
0.762376
af46d81a2705addc137f456543569bed6f6da6f7
4,256
py
Python
tests/instrumentation/pymssql_tests.py
dpaluch-rp/apm-agent-python
8b11d232f37c0affe0a7c92f590b05106c55b3b3
[ "BSD-3-Clause" ]
null
null
null
tests/instrumentation/pymssql_tests.py
dpaluch-rp/apm-agent-python
8b11d232f37c0affe0a7c92f590b05106c55b3b3
[ "BSD-3-Clause" ]
null
null
null
tests/instrumentation/pymssql_tests.py
dpaluch-rp/apm-agent-python
8b11d232f37c0affe0a7c92f590b05106c55b3b3
[ "BSD-3-Clause" ]
null
null
null
# BSD 3-Clause License # # Copyright (c) 2019, Elasticsearch BV # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, t...
39.045872
104
0.679746
024fc593ba277a7e4baa5b8a88caa218aaffd3aa
1,179
py
Python
networks/network_utils.py
ademiadeniji/lords
75ce115ec7f950d857d0817eb0adf2cc2673ffdd
[ "Apache-2.0" ]
null
null
null
networks/network_utils.py
ademiadeniji/lords
75ce115ec7f950d857d0817eb0adf2cc2673ffdd
[ "Apache-2.0" ]
null
null
null
networks/network_utils.py
ademiadeniji/lords
75ce115ec7f950d857d0817eb0adf2cc2673ffdd
[ "Apache-2.0" ]
null
null
null
"""Network utilities.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import tensorflow as tf def task_multiplex(inputs, z, num_tasks): """The multiplex module for multitask data. Args: inputs: Tensor of shape [batch_size, ..., num_tasks...
28.756098
75
0.644614
dfb10b58d22903dfe3db3d9ca6dcf6bdae336c01
4,037
py
Python
src/upload_images_s3.py
NVIDIA-AI-IOT/deepstream-fpfilter
e00d889e18e618e32ff0020afa1a70496e739516
[ "MIT" ]
6
2021-11-03T15:14:21.000Z
2022-03-22T12:32:41.000Z
src/upload_images_s3.py
NVIDIA-AI-IOT/deepstream-fpfilter
e00d889e18e618e32ff0020afa1a70496e739516
[ "MIT" ]
null
null
null
src/upload_images_s3.py
NVIDIA-AI-IOT/deepstream-fpfilter
e00d889e18e618e32ff0020afa1a70496e739516
[ "MIT" ]
2
2021-09-23T19:11:41.000Z
2021-12-22T00:06:41.000Z
''' Copyright (c) 2020-2021, NVIDIA CORPORATION. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, mod...
31.294574
113
0.72653
ec105dfaeb0f292faca13f02fbb9755da8605aba
251,311
py
Python
tensorflow/python/ops/image_ops_test.py
TheRakeshPurohit/tensorflow
bee6d5a268122df99e1e55a7b92517e84ad25bab
[ "Apache-2.0" ]
1
2022-03-18T17:36:11.000Z
2022-03-18T17:36:11.000Z
tensorflow/python/ops/image_ops_test.py
TheRakeshPurohit/tensorflow
bee6d5a268122df99e1e55a7b92517e84ad25bab
[ "Apache-2.0" ]
null
null
null
tensorflow/python/ops/image_ops_test.py
TheRakeshPurohit/tensorflow
bee6d5a268122df99e1e55a7b92517e84ad25bab
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 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...
39.595242
80
0.633928
d66133add19e25fccf06a37c842504eabe306ff1
1,137
py
Python
sdk/python/pulumi_azure_native/securityandcompliance/v20210111/_enums.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_native/securityandcompliance/v20210111/_enums.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_native/securityandcompliance/v20210111/_enums.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** from enum import Enum __all__ = [ 'Kind', 'ManagedServiceIdentityType', 'PrivateEndpointServiceConnectionStatus', 'PublicNetworkAccess...
24.191489
108
0.677221
91ea91af6f5b97d82d76bd72f14e8e047a93e113
9,429
py
Python
YorForger/modules/ImageEditor/edit_1.py
Voidxtoxic/kita
b2a3007349727280e149dcca017413d7dc2e7648
[ "MIT" ]
null
null
null
YorForger/modules/ImageEditor/edit_1.py
Voidxtoxic/kita
b2a3007349727280e149dcca017413d7dc2e7648
[ "MIT" ]
null
null
null
YorForger/modules/ImageEditor/edit_1.py
Voidxtoxic/kita
b2a3007349727280e149dcca017413d7dc2e7648
[ "MIT" ]
null
null
null
# By @TroJanzHEX import os import shutil import cv2 from PIL import Image, ImageEnhance, ImageFilter async def bright(client, message): try: userid = str(message.chat.id) if not os.path.isdir(f"./DOWNLOADS/{userid}"): os.makedirs(f"./DOWNLOADS/{userid}") download_location = "....
38.020161
80
0.552232
4b9b9a944dd1cd337f0f278193c970003ac2818b
5,594
py
Python
juneberry/plotting.py
sei-nmvanhoudnos/Juneberry
a4824bc74180134a9ef5326addbc83110177102c
[ "MIT" ]
null
null
null
juneberry/plotting.py
sei-nmvanhoudnos/Juneberry
a4824bc74180134a9ef5326addbc83110177102c
[ "MIT" ]
null
null
null
juneberry/plotting.py
sei-nmvanhoudnos/Juneberry
a4824bc74180134a9ef5326addbc83110177102c
[ "MIT" ]
null
null
null
#! /usr/bin/env python """ A set of plotting utilities. """ # ========================================================================================================================================================== # Copyright 2021 Carnegie Mellon University. # # NO WARRANTY. THIS CARNEGIE MELLON UNIVERSITY AND S...
47.008403
156
0.674115
67a54b7df56925dc131a5c214924fa2f5900846f
947
py
Python
openauth/migrations/0001_initial.py
daimon99/django-openauth
8b28fd70eb4a15190606894e8c2f2167ffdddb69
[ "Apache-2.0" ]
null
null
null
openauth/migrations/0001_initial.py
daimon99/django-openauth
8b28fd70eb4a15190606894e8c2f2167ffdddb69
[ "Apache-2.0" ]
null
null
null
openauth/migrations/0001_initial.py
daimon99/django-openauth
8b28fd70eb4a15190606894e8c2f2167ffdddb69
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.2.6 on 2019-11-29 04:41 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
32.655172
142
0.620908
dd9f35cd22ee07b7b54d1b7c11f629c1c8402d61
430
py
Python
opening pic.py
OSAMAMOHAMED1234/python_projects
fb4bc7356847c3f46df690a9386cf970377a6f7c
[ "MIT" ]
null
null
null
opening pic.py
OSAMAMOHAMED1234/python_projects
fb4bc7356847c3f46df690a9386cf970377a6f7c
[ "MIT" ]
null
null
null
opening pic.py
OSAMAMOHAMED1234/python_projects
fb4bc7356847c3f46df690a9386cf970377a6f7c
[ "MIT" ]
null
null
null
import os from PIL import Image img = Image.open(os.path.join(os.path.dirname(__file__), '1.png')).show() os.startfile(os.path.join(os.path.dirname(__file__), '1.png')) img = Image.open(os.path.join(os.path.dirname(__file__), '1.png')).convert('L') img.show() img.save('2.jpg') img = Image.open(os.path.join(os.path.d...
33.076923
80
0.693023
3e9929e3129addcfbcaefd34517b8aee3bd0c1dd
4,531
py
Python
input/test_beam_g10_l200.py
jsdomine/cosyr
a612b2a642c9e288975efbfdab5f1a26f2aaeeeb
[ "BSD-3-Clause" ]
null
null
null
input/test_beam_g10_l200.py
jsdomine/cosyr
a612b2a642c9e288975efbfdab5f1a26f2aaeeeb
[ "BSD-3-Clause" ]
null
null
null
input/test_beam_g10_l200.py
jsdomine/cosyr
a612b2a642c9e288975efbfdab5f1a26f2aaeeeb
[ "BSD-3-Clause" ]
null
null
null
# ----------------------------------------- # - Input deck for realistic beam size - # ----------------------------------------- import numpy as np from input.utils import * from input.misc import * ####################### Preprocessing ########################## run_name = "test_beam_g10_l200" ## electron and t...
43.990291
130
0.672258
e993a485c52dcd593de79eea8bf4e1f61babf585
17,613
py
Python
train.py
NiklasMWeber/CreditCycleForecasting
d50c799a33425a38853d36d61b3f6c3cd0a967d3
[ "Apache-2.0" ]
null
null
null
train.py
NiklasMWeber/CreditCycleForecasting
d50c799a33425a38853d36d61b3f6c3cd0a967d3
[ "Apache-2.0" ]
null
null
null
train.py
NiklasMWeber/CreditCycleForecasting
d50c799a33425a38853d36d61b3f6c3cd0a967d3
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Jan 4 00:03:12 2022 @author: nikth """ import numpy as np import math import iisignature as ii from sklearn.linear_model import Ridge, RidgeCV from sklearn.preprocessing import StandardScaler, MaxAbsScaler from sklearn.model_selection import KFold import matplotlib.pyplot...
32.556377
121
0.577414
7ef210aa963e2352eb50840eb5084b34b9faf651
1,557
py
Python
aiida/work/__init__.py
joepvd/aiida_core
6e9711046753332933f982971db1d7ac7e7ade58
[ "BSD-2-Clause" ]
null
null
null
aiida/work/__init__.py
joepvd/aiida_core
6e9711046753332933f982971db1d7ac7e7ade58
[ "BSD-2-Clause" ]
null
null
null
aiida/work/__init__.py
joepvd/aiida_core
6e9711046753332933f982971db1d7ac7e7ade58
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
33.12766
75
0.558767
a9a9ad917539df994ea7eb20de5bbacf775446f2
2,317
py
Python
portia_server/portia_api/jsonapi/exceptions.py
hackrush01/portia
c7414034361fecada76e1693666674c274b0421a
[ "BSD-3-Clause" ]
6,390
2015-01-01T17:05:13.000Z
2022-03-31T08:20:12.000Z
portia_server/portia_api/jsonapi/exceptions.py
hackrush01/portia
c7414034361fecada76e1693666674c274b0421a
[ "BSD-3-Clause" ]
442
2015-01-04T17:32:20.000Z
2022-03-15T21:21:23.000Z
portia_server/portia_api/jsonapi/exceptions.py
hackrush01/portia
c7414034361fecada76e1693666674c274b0421a
[ "BSD-3-Clause" ]
1,288
2015-01-09T05:54:20.000Z
2022-03-31T03:21:51.000Z
from collections import OrderedDict from uuid import uuid4 from rest_framework.exceptions import APIException, ValidationError from rest_framework.status import (HTTP_400_BAD_REQUEST, HTTP_409_CONFLICT, HTTP_404_NOT_FOUND) from rest_framework.views import exception_handler from .ut...
32.180556
80
0.676737
0078e1ebeb87acd6dd9d2161a2be8538ef77ad4d
14,659
py
Python
st2client/tests/unit/test_commands.py
meghasfdc/st2
7079635e94942e7b44ae74daa6a7378a00e518d9
[ "Apache-2.0" ]
1
2020-10-26T03:26:17.000Z
2020-10-26T03:26:17.000Z
st2client/tests/unit/test_commands.py
meghasfdc/st2
7079635e94942e7b44ae74daa6a7378a00e518d9
[ "Apache-2.0" ]
1
2022-03-31T03:53:22.000Z
2022-03-31T03:53:22.000Z
st2client/tests/unit/test_commands.py
meghasfdc/st2
7079635e94942e7b44ae74daa6a7378a00e518d9
[ "Apache-2.0" ]
1
2019-10-11T14:42:28.000Z
2019-10-11T14:42:28.000Z
# Copyright 2019 Extreme Networks, Inc. # # 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 i...
39.834239
99
0.617232
45e040cc9ef66ee7c20ad2ce3775a8974be55d4e
4,929
py
Python
unit_tests/view_modify_land_charge/test_update_location_confirmation.py
LandRegistry/maintain-frontend
d92446a9972ebbcd9a43a7a7444a528aa2f30bf7
[ "MIT" ]
1
2019-10-03T13:58:29.000Z
2019-10-03T13:58:29.000Z
unit_tests/view_modify_land_charge/test_update_location_confirmation.py
LandRegistry/maintain-frontend
d92446a9972ebbcd9a43a7a7444a528aa2f30bf7
[ "MIT" ]
null
null
null
unit_tests/view_modify_land_charge/test_update_location_confirmation.py
LandRegistry/maintain-frontend
d92446a9972ebbcd9a43a7a7444a528aa2f30bf7
[ "MIT" ]
1
2021-04-11T05:24:57.000Z
2021-04-11T05:24:57.000Z
from maintain_frontend import main from flask_testing import TestCase from flask import url_for from unit_tests.utilities import Utilities from unittest.mock import patch from maintain_frontend.dependencies.session_api.session import Session from maintain_frontend.models import LocalLandChargeItem from maintain_fronten...
46.942857
116
0.742138
77ed7dff8ca7b2f7228852e78ce17954a9a33285
5,394
py
Python
vkbottle/bot/events/processor.py
croogg/vkbottle
7355c2ef89d302410c8e05be162ba71e5f040990
[ "MIT" ]
null
null
null
vkbottle/bot/events/processor.py
croogg/vkbottle
7355c2ef89d302410c8e05be162ba71e5f040990
[ "MIT" ]
null
null
null
vkbottle/bot/events/processor.py
croogg/vkbottle
7355c2ef89d302410c8e05be162ba71e5f040990
[ "MIT" ]
2
2020-05-10T11:48:25.000Z
2021-12-02T09:22:54.000Z
""" MIT License Copyright (c) 2019 Arseniy Timonik 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, ...
31
101
0.54505
62f991041b56f47897169955eb975c24bc7e5520
10,203
py
Python
tests/functional/dashboard/test_offer.py
QueoLda/django-oscar
8dd992d82e31d26c929b3caa0e08b57e9701d097
[ "BSD-3-Clause" ]
4,639
2015-01-01T00:42:33.000Z
2022-03-29T18:32:12.000Z
tests/functional/dashboard/test_offer.py
QueoLda/django-oscar
8dd992d82e31d26c929b3caa0e08b57e9701d097
[ "BSD-3-Clause" ]
2,215
2015-01-02T22:32:51.000Z
2022-03-29T12:16:23.000Z
tests/functional/dashboard/test_offer.py
QueoLda/django-oscar
8dd992d82e31d26c929b3caa0e08b57e9701d097
[ "BSD-3-Clause" ]
2,187
2015-01-02T06:33:31.000Z
2022-03-31T15:32:36.000Z
from django.urls import reverse from django.utils import timezone from oscar.apps.offer import models from oscar.test import factories, testcases class TestAnAdmin(testcases.WebTestCase): # New version of offer tests buy using WebTest is_staff = True def setUp(self): super().setUp() self...
34.941781
102
0.613055
f02054ac75d196f9d24dcbe1fee5d3c87e604dbd
72,823
py
Python
pmagpy_tests/test_imports3.py
schwehr/PmagPy
5e9edc5dc9a7a243b8e7f237fa156e0cd782076b
[ "BSD-3-Clause" ]
2
2020-07-05T01:11:33.000Z
2020-07-05T01:11:39.000Z
pmagpy_tests/test_imports3.py
schwehr/PmagPy
5e9edc5dc9a7a243b8e7f237fa156e0cd782076b
[ "BSD-3-Clause" ]
null
null
null
pmagpy_tests/test_imports3.py
schwehr/PmagPy
5e9edc5dc9a7a243b8e7f237fa156e0cd782076b
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import unittest import os #import sys from pmagpy import pmag from pmagpy import contribution_builder as cb from pmagpy import convert_2_magic as convert WD = pmag.get_test_WD() class Test2g_bin_magic(unittest.TestCase): def setUp(self): os.chdir(WD) def tearDown(self): ...
44.704113
209
0.585392
00108bf215fd6861d561f98ece61b214640d13ac
6,889
py
Python
source/todo2.py
eclipse999/ToDoList
708eb31e112e6592a406e3f3f15d654c9f6fe7c2
[ "MIT" ]
null
null
null
source/todo2.py
eclipse999/ToDoList
708eb31e112e6592a406e3f3f15d654c9f6fe7c2
[ "MIT" ]
null
null
null
source/todo2.py
eclipse999/ToDoList
708eb31e112e6592a406e3f3f15d654c9f6fe7c2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'todo2.ui' # # Created by: PyQt5 UI code generator 5.12.2 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWindo...
38.920904
129
0.631441
6c3ceb8cf1cc0d98c5827893f858e3cfa7c4ce2a
3,833
py
Python
roles/lib_openshift/src/class/oc_scale.py
shgriffi/openshift-ansible
6313f519307cf50055589c3876d8bec398bbc4d4
[ "Apache-2.0" ]
164
2015-07-29T17:35:04.000Z
2021-12-16T16:38:04.000Z
roles/lib_openshift/src/class/oc_scale.py
shgriffi/openshift-ansible
6313f519307cf50055589c3876d8bec398bbc4d4
[ "Apache-2.0" ]
3,634
2015-06-09T13:49:15.000Z
2022-03-23T20:55:44.000Z
roles/lib_openshift/src/class/oc_scale.py
shgriffi/openshift-ansible
6313f519307cf50055589c3876d8bec398bbc4d4
[ "Apache-2.0" ]
250
2015-06-08T19:53:11.000Z
2022-03-01T04:51:23.000Z
# pylint: skip-file # flake8: noqa # pylint: disable=too-many-instance-attributes class OCScale(OpenShiftCLI): ''' Class to wrap the oc command line tools ''' # pylint allows 5 # pylint: disable=too-many-arguments def __init__(self, resource_name, namespace, ...
35.165138
105
0.535351
f69b1523343f2156fd65e3d66d3463d85a8cbdf4
1,705
py
Python
gmaltapi/server.py
gmalt/api
c3d35c87564d21f8b7cd061923c155073b467d3d
[ "MIT" ]
null
null
null
gmaltapi/server.py
gmalt/api
c3d35c87564d21f8b7cd061923c155073b467d3d
[ "MIT" ]
null
null
null
gmaltapi/server.py
gmalt/api
c3d35c87564d21f8b7cd061923c155073b467d3d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # (c) 2017 Jonathan Bouzekri # # This file is part of the gmalt application # # MIT License : # https://raw.githubusercontent.com/gmalt/api/master/LICENSE.txt """ Provide a gevent server to serve gmalt API """ from gevent.pywsgi import WSGIServer class GmaltServer(WSGIServer): """ A ge...
33.431373
78
0.62346
f0c6a443bc4623e19ce3a7ff0f1ed990870734da
3,053
py
Python
imagepy/menus/Plugins/StackReg/stackreg_plgs.py
BioinfoTongLI/imagepy
b86f33f20e872ee8b86471a9ddfbd5ad064fd64d
[ "BSD-4-Clause" ]
2
2019-08-15T06:19:18.000Z
2021-10-09T15:51:57.000Z
imagepy/menus/Plugins/StackReg/stackreg_plgs.py
BioinfoTongLI/imagepy
b86f33f20e872ee8b86471a9ddfbd5ad064fd64d
[ "BSD-4-Clause" ]
null
null
null
imagepy/menus/Plugins/StackReg/stackreg_plgs.py
BioinfoTongLI/imagepy
b86f33f20e872ee8b86471a9ddfbd5ad064fd64d
[ "BSD-4-Clause" ]
null
null
null
from imagepy.core.engine import Filter, Simple from imagepy import IPy from pystackreg import StackReg import numpy as np import pandas as pd from skimage import transform as tf import scipy.ndimage as ndimg from imagepy.core.manager import TableManager class Register(Simple): title = 'Stack Register' note = ['8-bit...
36.783133
120
0.612512
c176790393a1db4945c3d6a00cb554486ac76838
13,102
py
Python
cf_api/deploy_space.py
hsdp/python-cf-api
13fc605e2ea3b5c09cc8a556c58e8c36ae290c8c
[ "Apache-2.0" ]
20
2018-01-19T20:19:02.000Z
2020-06-09T08:45:40.000Z
cf_api/deploy_space.py
hsdp/python-cf-api
13fc605e2ea3b5c09cc8a556c58e8c36ae290c8c
[ "Apache-2.0" ]
4
2018-01-20T00:24:27.000Z
2020-03-16T01:26:27.000Z
cf_api/deploy_space.py
hsdp/python-cf-api
13fc605e2ea3b5c09cc8a556c58e8c36ae290c8c
[ "Apache-2.0" ]
3
2020-02-19T22:56:50.000Z
2021-05-12T19:38:33.000Z
from __future__ import print_function import json from . import deploy_manifest from . import deploy_service from . import exceptions as exc class Space(object): """This class provides support for working with a particular space. It mainly provides convenience functions for deploying, fetching, and destro...
33.594872
79
0.580675
aabd465b870b08d29074ad787f13c2f55c6db4bc
960
py
Python
run.py
thanhbok26b/mujoco-rewards-landscape-visualization
c1a95b38a0ea03468bbbb7ce013eff37ccd67101
[ "MIT" ]
null
null
null
run.py
thanhbok26b/mujoco-rewards-landscape-visualization
c1a95b38a0ea03468bbbb7ce013eff37ccd67101
[ "MIT" ]
null
null
null
run.py
thanhbok26b/mujoco-rewards-landscape-visualization
c1a95b38a0ea03468bbbb7ce013eff37ccd67101
[ "MIT" ]
null
null
null
import os import yaml import pickle from ars import ars from mujoco_parallel import WorkerManager from mujoco_parallel import MujocoParallel, benchmarks results = [] def callback(res): global results results.append(res) def main(): global results config = yaml.load(open('config.yaml').read()) ...
22.325581
64
0.626042
3c7f90d2f04aa6d69159127b401effc466731f38
1,573
py
Python
back-end/Mechanisms/Blob/MinioBlobMechanism.py
cmillani/SPaaS
5c37f6f6583411c856e2cefa9e94971c472f30b5
[ "MIT" ]
null
null
null
back-end/Mechanisms/Blob/MinioBlobMechanism.py
cmillani/SPaaS
5c37f6f6583411c856e2cefa9e94971c472f30b5
[ "MIT" ]
null
null
null
back-end/Mechanisms/Blob/MinioBlobMechanism.py
cmillani/SPaaS
5c37f6f6583411c856e2cefa9e94971c472f30b5
[ "MIT" ]
null
null
null
from minio import Minio from minio.error import ResponseError from .BlobConfiguration import * import os class BlobFile: def __init__(self, name): self.name = name class MinioBlobMechanism: def __init__(self): self.minioClient = Minio(os.environ['MINIO_ENDPOINT'], ...
39.325
82
0.702479
29fc30be65d4dab10be644481b5d420770dbcdf8
10,127
py
Python
example/ssd/symbol/legacy_vgg16_ssd_300.py
Vikas-kum/incubator-mxnet
ba02bf2fe2da423caa59ddb3fd5e433b90b730bf
[ "Apache-2.0" ]
399
2017-05-30T05:12:48.000Z
2022-01-29T05:53:08.000Z
example/ssd/symbol/legacy_vgg16_ssd_300.py
Vikas-kum/incubator-mxnet
ba02bf2fe2da423caa59ddb3fd5e433b90b730bf
[ "Apache-2.0" ]
187
2018-03-16T23:44:43.000Z
2021-12-14T21:19:54.000Z
example/ssd/symbol/legacy_vgg16_ssd_300.py
Vikas-kum/incubator-mxnet
ba02bf2fe2da423caa59ddb3fd5e433b90b730bf
[ "Apache-2.0" ]
107
2017-05-30T05:53:22.000Z
2021-06-24T02:43:31.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
48.454545
96
0.663079
9990339ad0266bf222265cf46651bfb024921aed
265
py
Python
frappe_training/frappe_training/doctype/salary_detail/salary_detail.py
sivaranjanipalanivel/training
b177c56a319c07dc3467ce3113e332ecee9b81fa
[ "MIT" ]
null
null
null
frappe_training/frappe_training/doctype/salary_detail/salary_detail.py
sivaranjanipalanivel/training
b177c56a319c07dc3467ce3113e332ecee9b81fa
[ "MIT" ]
null
null
null
frappe_training/frappe_training/doctype/salary_detail/salary_detail.py
sivaranjanipalanivel/training
b177c56a319c07dc3467ce3113e332ecee9b81fa
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2021, valiantsystems and contributors # For license information, please see license.txt from __future__ import unicode_literals # import frappe from frappe.model.document import Document class SalaryDetail(Document): pass
24.090909
53
0.781132
7abf12cb436fed17e9bd170452989d83f41f56eb
395
py
Python
QACTPBeeBroker/sub.py
kmmao/QACTPBeeBroker
2a39a06a1912aec041c45dc6577d017e5e637e34
[ "MIT" ]
16
2019-07-03T05:56:27.000Z
2022-03-30T10:15:43.000Z
QACTPBeeBroker/sub.py
kmmao/QACTPBeeBroker
2a39a06a1912aec041c45dc6577d017e5e637e34
[ "MIT" ]
3
2019-09-14T05:33:05.000Z
2020-07-16T01:10:52.000Z
QACTPBeeBroker/sub.py
kmmao/QACTPBeeBroker
2a39a06a1912aec041c45dc6577d017e5e637e34
[ "MIT" ]
13
2019-07-07T18:16:07.000Z
2022-03-26T15:59:33.000Z
from QAPUBSUB.consumer import subscriber_routing from QACTPBeeBroker.setting import eventmq_ip import click @click.command() @click.option('--code', default='rb1910') def sub(code): x = subscriber_routing(host=eventmq_ip, exchange='CTPX', routing_key=code) import json def callback(a, b, c, data): ...
18.809524
78
0.703797
3e1d757dca44efb2b66f71eef989b3f87132b34b
5,938
py
Python
toontown/ai/NewsManagerAI.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/ai/NewsManagerAI.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/ai/NewsManagerAI.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
from direct.directnotify.DirectNotifyGlobal import directNotify from direct.distributed.DistributedObjectAI import DistributedObjectAI from toontown.toonbase import ToontownGlobals from otp.ai.MagicWordGlobal import * from HolidayGlobals import * class NewsManagerAI(DistributedObjectAI): notify = directNotify.newC...
37.1125
95
0.71775
da4faa5eb503d098c6e27c088cc6b050f4156887
24,594
py
Python
tests/checks/mock/test_spark.py
takus/dd-agent
3029873135f0f55c1bcdf3f825691aafca5abf97
[ "BSD-3-Clause" ]
2
2018-01-31T03:50:55.000Z
2018-01-31T03:51:04.000Z
tests/checks/mock/test_spark.py
takus/dd-agent
3029873135f0f55c1bcdf3f825691aafca5abf97
[ "BSD-3-Clause" ]
null
null
null
tests/checks/mock/test_spark.py
takus/dd-agent
3029873135f0f55c1bcdf3f825691aafca5abf97
[ "BSD-3-Clause" ]
null
null
null
# stdlib from urlparse import urljoin # 3rd party import mock import json from tests.checks.common import AgentCheckTest, Fixtures # IDs YARN_APP_ID = 'application_1459362484344_0011' SPARK_APP_ID = 'app_001' CLUSTER_NAME = 'SparkCluster' APP_NAME = 'PySparkShell' # URLs for cluster managers SPARK_APP_URL = 'http:/...
36.220913
120
0.643938
22417c7c69b368322a756198a093dd15dd5f091f
17,325
py
Python
src/mainWithTensorboard.py
jacobbettencourt/comp766_project
d044d042adfe8c54e88d7f759fe16854cf1bb1a2
[ "MIT" ]
null
null
null
src/mainWithTensorboard.py
jacobbettencourt/comp766_project
d044d042adfe8c54e88d7f759fe16854cf1bb1a2
[ "MIT" ]
null
null
null
src/mainWithTensorboard.py
jacobbettencourt/comp766_project
d044d042adfe8c54e88d7f759fe16854cf1bb1a2
[ "MIT" ]
null
null
null
import argparse import os import random import shutil import time import warnings import torch import torch.nn as nn import torch.nn.parallel import torch.backends.cudnn as cudnn import torch.distributed as dist import torch.optim import torch.multiprocessing as mp import torch.utils.data import torch.utils.data.distr...
38.845291
91
0.60785
6a7f1568f68bedca990378fb64cf5f81bd14e1db
1,430
py
Python
ambulance/signals.py
shubhamkulkarni01/EMSTrack-Django
32ff9ed94a38730c0e9f6385c75060e2d30a930e
[ "MIT", "BSD-3-Clause" ]
2
2020-07-16T01:44:54.000Z
2020-10-25T02:08:47.000Z
ambulance/signals.py
shubhamkulkarni01/EMSTrack-Django
32ff9ed94a38730c0e9f6385c75060e2d30a930e
[ "MIT", "BSD-3-Clause" ]
8
2020-04-20T22:13:56.000Z
2022-02-04T17:50:44.000Z
ambulance/signals.py
shubhamkulkarni01/EMSTrack-Django
32ff9ed94a38730c0e9f6385c75060e2d30a930e
[ "MIT", "BSD-3-Clause" ]
2
2020-07-20T23:39:44.000Z
2022-02-24T00:29:10.000Z
import logging from django.db.models.signals import post_save, m2m_changed from django.dispatch import receiver from django.conf import settings from django.contrib.auth.models import User from django.utils.translation import ugettext_lazy as _ from emstrack.sms import client from .models import Call logger = loggi...
31.777778
77
0.627273
d9fc0dab844f1705d7ebd633fc775d27b1823175
4,996
py
Python
python/example_code/pinpoint-email/pinpoint_send_email_message_email_api.py
onehitcombo/aws-doc-sdk-examples
03e2e0c5dee75c5decbbb99e849c51417521fd82
[ "Apache-2.0" ]
3
2021-01-19T20:23:17.000Z
2021-01-19T21:38:59.000Z
python/example_code/pinpoint-email/pinpoint_send_email_message_email_api.py
onehitcombo/aws-doc-sdk-examples
03e2e0c5dee75c5decbbb99e849c51417521fd82
[ "Apache-2.0" ]
null
null
null
python/example_code/pinpoint-email/pinpoint_send_email_message_email_api.py
onehitcombo/aws-doc-sdk-examples
03e2e0c5dee75c5decbbb99e849c51417521fd82
[ "Apache-2.0" ]
2
2019-12-27T13:58:00.000Z
2020-05-21T18:35:40.000Z
# Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # This file is licensed under the Apache License, Version 2.0 (the "License"). # You may not use this file except in compliance with the License. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # This file is d...
37.007407
189
0.658527
7a60d990f253eacb755ab5f85b43467cb4bd1282
5,339
py
Python
pygmt/src/grdfilter.py
ankitdobhal/pygmt
88fafa5af57d2b182e0dbac7017912f2d8cabfa0
[ "BSD-3-Clause" ]
null
null
null
pygmt/src/grdfilter.py
ankitdobhal/pygmt
88fafa5af57d2b182e0dbac7017912f2d8cabfa0
[ "BSD-3-Clause" ]
null
null
null
pygmt/src/grdfilter.py
ankitdobhal/pygmt
88fafa5af57d2b182e0dbac7017912f2d8cabfa0
[ "BSD-3-Clause" ]
null
null
null
""" grdfilter - Filter a grid in the space (or time) domain. """ import xarray as xr from pygmt.clib import Session from pygmt.helpers import ( GMTTempFile, build_arg_string, fmt_docstring, kwargs_to_strings, use_alias, ) @fmt_docstring @use_alias( D="distance", F="filter", G="outgrid...
32.754601
87
0.601985
702b40da6a798544a1a847793ad4e5d6d99ace52
4,861
py
Python
userbot/utils/pastebin.py
tofikdn/Man-Userbot
1ba63b30a42332b64fb3e2d1ac41c5db744846d2
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2021-08-16T13:10:59.000Z
2021-08-16T13:10:59.000Z
userbot/utils/pastebin.py
tofikdn/Man-Userbot
1ba63b30a42332b64fb3e2d1ac41c5db744846d2
[ "Naumen", "Condor-1.1", "MS-PL" ]
23
2021-08-20T16:50:46.000Z
2022-01-14T19:05:00.000Z
userbot/utils/pastebin.py
tofikdn/Man-Userbot
1ba63b30a42332b64fb3e2d1ac41c5db744846d2
[ "Naumen", "Condor-1.1", "MS-PL" ]
8
2021-08-16T13:11:14.000Z
2022-03-15T13:27:39.000Z
import re import aiohttp from aiohttp.client_exceptions import ClientConnectorError class PasteBin: DOGBIN_URL = "https://del.dog/" HASTEBIN_URL = "https://www.toptal.com/developers/hastebin/" NEKOBIN_URL = "https://nekobin.com/" KATBIN_URL = "https://katb.in/" _dkey = _hkey = _nkey = _kkey = ret...
31.36129
87
0.521498
4652cc577ba59730a8a97205a6758093b3afe702
4,006
py
Python
jwtcat.py
brightio/jwtcat
86bf874104a8dd2c3df6be4e3776b1bb071dd23c
[ "Apache-2.0" ]
null
null
null
jwtcat.py
brightio/jwtcat
86bf874104a8dd2c3df6be4e3776b1bb071dd23c
[ "Apache-2.0" ]
null
null
null
jwtcat.py
brightio/jwtcat
86bf874104a8dd2c3df6be4e3776b1bb071dd23c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright (C) 2017 Alexandre Teyar # 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 la...
28.211268
87
0.603345
8cf918efc3ceb4a7da1247547d83503797be3cb0
1,205
gyp
Python
library/boost-pool/1.57.0.gyp
KjellSchubert/bru
dd70b721d07fbd27c57c845cc3a29cd8f2dfc587
[ "MIT" ]
3
2015-01-06T15:22:16.000Z
2015-11-27T18:13:04.000Z
library/boost-pool/1.57.0.gyp
KjellSchubert/bru
dd70b721d07fbd27c57c845cc3a29cd8f2dfc587
[ "MIT" ]
7
2015-02-10T15:13:38.000Z
2021-05-30T07:51:13.000Z
library/boost-pool/1.57.0.gyp
KjellSchubert/bru
dd70b721d07fbd27c57c845cc3a29cd8f2dfc587
[ "MIT" ]
3
2015-01-29T17:19:53.000Z
2016-01-06T12:50:06.000Z
{ "targets": [ { "target_name": "boost-pool", "type": "none", "include_dirs": [ "1.57.0/pool-boost-1.57.0/include" ], "all_dependent_settings": { "include_dirs": [ "1.57.0/pool-boost-1.57.0/includ...
32.567568
80
0.409959
3557673aeb7a14de6e5e293a2382ef3197b22806
13,627
py
Python
GhostScan/Calibrations/RadiometricCalibration.py
yyf20001230/GhostScan
5694df4532132be5e916bd72a46dc907eb108bf9
[ "MIT" ]
4
2021-09-27T14:16:08.000Z
2022-03-17T07:03:18.000Z
GhostScan/Calibrations/RadiometricCalibration.py
clkimsdu/GhostScan
5694df4532132be5e916bd72a46dc907eb108bf9
[ "MIT" ]
null
null
null
GhostScan/Calibrations/RadiometricCalibration.py
clkimsdu/GhostScan
5694df4532132be5e916bd72a46dc907eb108bf9
[ "MIT" ]
2
2022-02-04T17:32:04.000Z
2022-03-31T09:53:20.000Z
import numpy as np import os import cv2 import glob import matplotlib.pyplot as plt import skimage from skimage.util import img_as_ubyte from skimage.color import rgb2gray import PIL class RadiometricCalibration: def __init__(self, resolution, gamma=0.57, sampling_points=1000, path='CalibrationImages/Radiometric'...
42.188854
218
0.589565
2463735ede96b66f77679e993ba5bd55450577ed
2,626
py
Python
src/common.py
Antoinehoff/Project_II
120209e695f4f25ecdc6797f683e2b23894689f4
[ "MIT" ]
null
null
null
src/common.py
Antoinehoff/Project_II
120209e695f4f25ecdc6797f683e2b23894689f4
[ "MIT" ]
null
null
null
src/common.py
Antoinehoff/Project_II
120209e695f4f25ecdc6797f683e2b23894689f4
[ "MIT" ]
null
null
null
from enum import Enum class FilterType(Enum): """ Filter type (filter densities, or gradients only) """ NoFilter = 0 Density = 1 Sensitivity = 2 class InterpolationType(Enum): """ Material interpolation scheme: classic SIMP, or Pedersen (for self-weight problems) """ SIMP = 1...
32.825
87
0.664128
50ab83e8dd2f03fdb4b6e963f21dcdec0ad1c14d
2,329
py
Python
sistemadjango/settings.py
pauloupgrad/sistema-django
f1a7fc9f5602ec6eb1e3a777897ff94ee4b2e1ff
[ "MIT" ]
null
null
null
sistemadjango/settings.py
pauloupgrad/sistema-django
f1a7fc9f5602ec6eb1e3a777897ff94ee4b2e1ff
[ "MIT" ]
null
null
null
sistemadjango/settings.py
pauloupgrad/sistema-django
f1a7fc9f5602ec6eb1e3a777897ff94ee4b2e1ff
[ "MIT" ]
null
null
null
import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRET_KEY = 'k6g)@@r-kwa+yz_8x4)d7c@$t!-j7n=m1yim#fi_%dn#ssp*=@' DEBUG = True ALLOWED_HOSTS = [] INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sess...
23.525253
91
0.668527
39a59208fd1d5090c76bd25fd41f379c787cf8ce
192
py
Python
v3/listing1.py
MrWater98/pymag-trees
9b4fba4fca09f7489f6cb1844d2db256377a4af9
[ "WTFPL" ]
149
2015-01-18T14:26:41.000Z
2022-03-27T12:39:38.000Z
doc/v3/listing1.py
EvanED/treelayout
a1250381ccbab005890f58ac4bfc28e2a1933433
[ "WTFPL" ]
5
2015-05-23T04:14:46.000Z
2021-11-04T14:19:06.000Z
doc/v3/listing1.py
EvanED/treelayout
a1250381ccbab005890f58ac4bfc28e2a1933433
[ "WTFPL" ]
33
2015-06-06T04:38:55.000Z
2022-01-11T19:56:14.000Z
class DrawTree(object): def __init__(self, tree, depth=0): self.x = -1 self.y = depth self.tree = tree self.children = [DrawTree(t, depth+1) for t in tree]
27.428571
60
0.567708
a4ae733985a170d2fe19dbbb3e88c6e0708d692b
1,607
py
Python
listing/urls.py
natyz/Studdy-Buddy-Finder
84c50494f2696df2555d6d985534cdd4edbce791
[ "BSD-3-Clause" ]
null
null
null
listing/urls.py
natyz/Studdy-Buddy-Finder
84c50494f2696df2555d6d985534cdd4edbce791
[ "BSD-3-Clause" ]
null
null
null
listing/urls.py
natyz/Studdy-Buddy-Finder
84c50494f2696df2555d6d985534cdd4edbce791
[ "BSD-3-Clause" ]
null
null
null
from django.conf import settings from django.conf.urls.static import static from django.urls import path from . import views app_name = 'listing' urlpatterns = [ # path('listings', views.ListingsView.as_view(), name='listings'), # path('listings', views.index, name='listings'), ...
55.413793
98
0.581829
66dc7c7e7848c8b80685b428334555a2edbca43f
2,136
py
Python
functional-tests/test_full_checkout.py
cornelius/unit-e-clonemachine
e0bf1f3b49502a506c1edf9ea35101424008fa5d
[ "MIT" ]
3
2019-04-18T06:44:30.000Z
2019-05-03T15:15:18.000Z
functional-tests/test_full_checkout.py
cornelius/unit-e-clonemachine
e0bf1f3b49502a506c1edf9ea35101424008fa5d
[ "MIT" ]
2
2019-05-03T15:15:22.000Z
2019-05-17T09:28:18.000Z
functional-tests/test_full_checkout.py
cornelius/unit-e-clonemachine
e0bf1f3b49502a506c1edf9ea35101424008fa5d
[ "MIT" ]
4
2019-04-17T18:05:22.000Z
2019-11-01T19:57:51.000Z
# Copyright (c) 2018-2019 The Unit-e developers # Distributed under the MIT software license, see the accompanying # file COPYING or https://opensource.org/licenses/MIT. # Functional test for clonemachine using a full checkout of the unit-e repo # and a full fetched remote of the bitcoin repo # # Run it with `pytest -...
33.904762
107
0.727528
49121b29b8558d33d519a277f173bc2004b7a034
5,295
py
Python
operator-pipeline-images/operatorcert/entrypoints/index.py
Lawrence-Luo0008/operator-pipelines
61b0e970d377f142ca4249e1021bf01894f36f1f
[ "Apache-2.0" ]
null
null
null
operator-pipeline-images/operatorcert/entrypoints/index.py
Lawrence-Luo0008/operator-pipelines
61b0e970d377f142ca4249e1021bf01894f36f1f
[ "Apache-2.0" ]
null
null
null
operator-pipeline-images/operatorcert/entrypoints/index.py
Lawrence-Luo0008/operator-pipelines
61b0e970d377f142ca4249e1021bf01894f36f1f
[ "Apache-2.0" ]
null
null
null
import argparse import logging import os import time from datetime import datetime, timedelta from typing import Any, List from operatorcert import iib, utils from operatorcert.logger import setup_logger LOGGER = logging.getLogger("operator-cert") def setup_argparser() -> argparse.ArgumentParser: # pragma: no cove...
29.915254
106
0.611331
11a009a6b8dc954dcf0a2d323e6e9528897d984a
626
py
Python
main.py
caffe-mocha/pytorch-wgan-gp
570496f092c37629c872c528737ecdec12b0537b
[ "MIT" ]
1
2021-01-11T14:42:20.000Z
2021-01-11T14:42:20.000Z
main.py
caffe-mocha/pytorch-wgan-gp
570496f092c37629c872c528737ecdec12b0537b
[ "MIT" ]
null
null
null
main.py
caffe-mocha/pytorch-wgan-gp
570496f092c37629c872c528737ecdec12b0537b
[ "MIT" ]
null
null
null
from utils.config import parse_args from utils.data_loader import get_data_loader from model.dcgan import DCGAN def main(args): model = None if args.model == 'dcgan': model = DCGAN(args) else: print("Model type non-existing. Try again.") exit(-1) print('----------------- confi...
23.185185
62
0.536741
81be118feda1bab7b5117a5de29e19e31669d826
690
py
Python
tests/test_deprecation.py
ppanero/flask-limiter
129bd922948f843518429190e915c5ebe4fec51f
[ "MIT" ]
1
2019-08-30T15:28:58.000Z
2019-08-30T15:28:58.000Z
tests/test_deprecation.py
ppanero/flask-limiter
129bd922948f843518429190e915c5ebe4fec51f
[ "MIT" ]
null
null
null
tests/test_deprecation.py
ppanero/flask-limiter
129bd922948f843518429190e915c5ebe4fec51f
[ "MIT" ]
null
null
null
""" """ import unittest import warnings class DeprecationTests(unittest.TestCase): def test_insecure_setup(self): with warnings.catch_warnings(record=True) as w: from flask import Flask from flask_limiter import Limiter app = Flask(__name__) Limiter(app) ...
28.75
79
0.623188
deaa9581e0bedb01283824a8d2699f480d7078e3
3,775
py
Python
awx/main/tests/functional/api/test_pagination.py
DamoR25/awxnew
03ed6e97558ae090ea52703caf6ed1b196557981
[ "Apache-2.0" ]
11,396
2017-09-07T04:56:02.000Z
2022-03-31T13:56:17.000Z
awx/main/tests/functional/api/test_pagination.py
DamoR25/awxnew
03ed6e97558ae090ea52703caf6ed1b196557981
[ "Apache-2.0" ]
11,046
2017-09-07T09:30:46.000Z
2022-03-31T20:28:01.000Z
awx/main/tests/functional/api/test_pagination.py
TinLe/awx
73d8c12e3bf5b193305ed1202549331ea00088c1
[ "Apache-2.0" ]
3,592
2017-09-07T04:14:31.000Z
2022-03-31T23:53:09.000Z
import pytest import json from unittest.mock import patch from urllib.parse import urlencode from awx.main.models.inventory import Group, Host from awx.main.models.ad_hoc_commands import AdHocCommand from awx.api.pagination import Pagination from awx.api.versioning import reverse @pytest.fixture def host(inventory):...
34.953704
124
0.684768
6945047baa0c8cec9b789a182d3e0a4924fd25ff
3,051
py
Python
lib/surface/compute/rolling_updates/pause.py
bopopescu/SDK
e6d9aaee2456f706d1d86e8ec2a41d146e33550d
[ "Apache-2.0" ]
null
null
null
lib/surface/compute/rolling_updates/pause.py
bopopescu/SDK
e6d9aaee2456f706d1d86e8ec2a41d146e33550d
[ "Apache-2.0" ]
null
null
null
lib/surface/compute/rolling_updates/pause.py
bopopescu/SDK
e6d9aaee2456f706d1d86e8ec2a41d146e33550d
[ "Apache-2.0" ]
2
2020-11-04T03:08:21.000Z
2020-11-05T08:14:41.000Z
# Copyright 2014 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
35.068966
89
0.706981
8dfd4fec68cf0faa623a7573934e27b6d82c8764
767
py
Python
app/controller/__init__.py
MacosPrintes001/webservice-paem
fa992e4bda40eaae3b585cee2ad2b65685104cc3
[ "Apache-2.0" ]
null
null
null
app/controller/__init__.py
MacosPrintes001/webservice-paem
fa992e4bda40eaae3b585cee2ad2b65685104cc3
[ "Apache-2.0" ]
null
null
null
app/controller/__init__.py
MacosPrintes001/webservice-paem
fa992e4bda40eaae3b585cee2ad2b65685104cc3
[ "Apache-2.0" ]
null
null
null
from ..model import app from .usuario_controller import UsuarioController from .discente_controller import DiscenteController from .docente_controller import DocenteController from .tecnico_controller import TecnicoController from .portaria_controller import PortariaController from .direcao_controller import DirecaoCon...
51.133333
85
0.907432
d7eb616aa921299dc4048d584f259139ae7e17c6
19,508
py
Python
hummingbot/strategy/perpetual_market_making/perpetual_market_making_config_map.py
rince83/hummingbot
9023822744202624fad276b326cc999b72048d67
[ "Apache-2.0" ]
4
2021-12-03T10:40:57.000Z
2022-03-28T10:32:48.000Z
hummingbot/strategy/perpetual_market_making/perpetual_market_making_config_map.py
rince83/hummingbot
9023822744202624fad276b326cc999b72048d67
[ "Apache-2.0" ]
null
null
null
hummingbot/strategy/perpetual_market_making/perpetual_market_making_config_map.py
rince83/hummingbot
9023822744202624fad276b326cc999b72048d67
[ "Apache-2.0" ]
3
2021-11-29T10:05:37.000Z
2021-12-12T15:35:00.000Z
from decimal import Decimal from hummingbot.client.config.config_var import ConfigVar from hummingbot.client.config.config_validators import ( validate_exchange, validate_derivative, validate_market_trading_pair, validate_bool, validate_decimal, validate_int ) from hummingbot.client.settings im...
49.262626
158
0.604726
f01a444d8c9edd7eeb5b483e2e12ba5a74028e11
1,223
py
Python
collision_metric/planning/BFS.py
Jan-Blaha/pedestrian-collision-metric
06863161e3a12e52a78c1bf4df0439b3f90daef6
[ "MIT" ]
null
null
null
collision_metric/planning/BFS.py
Jan-Blaha/pedestrian-collision-metric
06863161e3a12e52a78c1bf4df0439b3f90daef6
[ "MIT" ]
null
null
null
collision_metric/planning/BFS.py
Jan-Blaha/pedestrian-collision-metric
06863161e3a12e52a78c1bf4df0439b3f90daef6
[ "MIT" ]
null
null
null
import heapq from collision_metric.state_spaces.StateSpace import StateSpace class BFS: space = None # type: StateSpace def __init__(self, state_space=None): if state_space is None or issubclass(type(state_space), StateSpace): raise Exception("No or invalid state space specified...
27.795455
100
0.589534
666b521b42ecbb15675721aac1773d8c4ff1909b
13,906
py
Python
alipay/aop/api/request/AlipayOpenAgentMobilepaySignRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/request/AlipayOpenAgentMobilepaySignRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/request/AlipayOpenAgentMobilepaySignRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * class AlipayOpenAgentMobilepaySignRequest(object): def __init__(self, biz_model=None): self._biz_model = biz_model self._app_market = None...
34.506203
176
0.638717
19e719fc7eced7f4ea52d6e1caa493a0fd459527
5,302
py
Python
collection/plugins/modules/thola_read_interfaces_facts.py
inexio/thola-ansible
f07618d69873fe6fb81941baec522646397d2d54
[ "BSD-2-Clause" ]
3
2021-05-28T09:05:53.000Z
2021-06-25T20:04:44.000Z
collection/plugins/modules/thola_read_interfaces_facts.py
inexio/thola-ansible
f07618d69873fe6fb81941baec522646397d2d54
[ "BSD-2-Clause" ]
null
null
null
collection/plugins/modules/thola_read_interfaces_facts.py
inexio/thola-ansible
f07618d69873fe6fb81941baec522646397d2d54
[ "BSD-2-Clause" ]
null
null
null
import json import sys import urllib3 from ansible.module_utils.basic import AnsibleModule DOCUMENTATION = """ --- module: thola_read_interfaces_facts author: "Thola team" version_added: "1.0.5" short_description: "Reads interfaces of a given device" description: - "Reads the interfaces of a given device with SNM...
28.972678
78
0.63146
4d3247d661fe96d8f522096ce584768901ef550e
3,340
py
Python
boto3/__init__.py
adamatan/boto3
4f2a12de5285d036cef6f61a9a8bbda05f7a761e
[ "Apache-2.0" ]
null
null
null
boto3/__init__.py
adamatan/boto3
4f2a12de5285d036cef6f61a9a8bbda05f7a761e
[ "Apache-2.0" ]
null
null
null
boto3/__init__.py
adamatan/boto3
4f2a12de5285d036cef6f61a9a8bbda05f7a761e
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompa...
30.09009
81
0.703593
3df668f29edabb50190a7b44daa2a191125be6d5
4,012
py
Python
SuperSafety/Utils/HistoryStructs.py
BDEvan5/SuperSafety
73edd8d8b191e291a6f369043698b8763887a1f7
[ "Apache-2.0" ]
null
null
null
SuperSafety/Utils/HistoryStructs.py
BDEvan5/SuperSafety
73edd8d8b191e291a6f369043698b8763887a1f7
[ "Apache-2.0" ]
null
null
null
SuperSafety/Utils/HistoryStructs.py
BDEvan5/SuperSafety
73edd8d8b191e291a6f369043698b8763887a1f7
[ "Apache-2.0" ]
null
null
null
import os, shutil import csv import numpy as np from matplotlib import pyplot as plt SIZE = 20000 def plot_data(values, moving_avg_period=10, title="Results", figure_n=2): plt.figure(figure_n) plt.clf() plt.title(title) plt.xlabel('Episode') plt.ylabel('Duration') plt.plot(values) ...
29.718519
97
0.579013
26d668fa2dd39a9128d13c49817fb75e09ce98ec
2,002
py
Python
autotest/gdrivers/eir.py
dtusk/gdal1
30dcdc1eccbca2331674f6421f1c5013807da609
[ "MIT" ]
3
2017-01-12T10:18:56.000Z
2020-03-21T16:42:55.000Z
autotest/gdrivers/eir.py
ShinNoNoir/gdal-1.11.5-vs2015
5d544e176a4c11f9bcd12a0fe66f97fd157824e6
[ "MIT" ]
null
null
null
autotest/gdrivers/eir.py
ShinNoNoir/gdal-1.11.5-vs2015
5d544e176a4c11f9bcd12a0fe66f97fd157824e6
[ "MIT" ]
null
null
null
#!/usr/bin/env python ############################################################################### # $Id$ # # Project: GDAL/OGR Test Suite # Purpose: Test EIR driver # Author: Even Rouault, <even dot rouault at mines dash paris dot org> # #########################################################################...
34.517241
79
0.621878
af9bd09bef8c7698aaef8edcc412d994ff8ceafc
2,319
py
Python
python3/koans/about_asserts.py
mitulp236/python-koans
8b39cdc346576bbbd4a56c3ff1b90ed8ea070db4
[ "MIT" ]
null
null
null
python3/koans/about_asserts.py
mitulp236/python-koans
8b39cdc346576bbbd4a56c3ff1b90ed8ea070db4
[ "MIT" ]
null
null
null
python3/koans/about_asserts.py
mitulp236/python-koans
8b39cdc346576bbbd4a56c3ff1b90ed8ea070db4
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from runner.koan import * class AboutAsserts(Koan): def test_assert_truth(self): """ We shall contemplate truth by testing reality, via asserts. """ # Confused? This video should help: # # http://bit.ly/about_asserts...
29.35443
83
0.606296
9ba9486bd024752c03c2077eeffde9273a6497e8
28,972
py
Python
graalpython/lib-python/3/trace.py
muellren/graalpython
9104425805f1d38ad7a521c75e53798a3b79b4f0
[ "UPL-1.0", "Apache-2.0", "OpenSSL" ]
4
2018-07-06T12:18:06.000Z
2021-02-26T03:46:53.000Z
graalpython/lib-python/3/trace.py
muellren/graalpython
9104425805f1d38ad7a521c75e53798a3b79b4f0
[ "UPL-1.0", "Apache-2.0", "OpenSSL" ]
null
null
null
graalpython/lib-python/3/trace.py
muellren/graalpython
9104425805f1d38ad7a521c75e53798a3b79b4f0
[ "UPL-1.0", "Apache-2.0", "OpenSSL" ]
1
2018-07-09T09:42:18.000Z
2018-07-09T09:42:18.000Z
#!/usr/bin/env python3 # portions copyright 2001, Autonomous Zones Industries, Inc., all rights... # err... reserved and offered to the public under the terms of the # Python 2.2 license. # Author: Zooko O'Whielacronx # http://zooko.com/ # mailto:zooko@zooko.com # # Copyright 2000, Mojam Media, Inc., all rights reser...
38.993271
82
0.574451
7e4e8b41efd9e7ca58ca095311cca57b253b987c
31,278
py
Python
pdf_tool.py
carlovogel/pdf_tool
f8c02489b4baeb45406eeef2e005b917fa3a3f1f
[ "MIT" ]
null
null
null
pdf_tool.py
carlovogel/pdf_tool
f8c02489b4baeb45406eeef2e005b917fa3a3f1f
[ "MIT" ]
null
null
null
pdf_tool.py
carlovogel/pdf_tool
f8c02489b4baeb45406eeef2e005b917fa3a3f1f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -* import sys import subprocess import re from pathlib import Path from PyQt5 import QtWidgets from PyQt5.QtGui import QIcon from PyQt5.QtCore import QSize, Qt class PdfTool(QtWidgets.QDialog): """Main Window containing the three tabs 'Compress', 'Split' and 'Merge'. ...
48.046083
119
0.681949
fb642fb6e19317066d397d79e3781b54cc7b7abd
15,092
py
Python
council_bot.py
DT-1236/council_bot_legacy
633ffb078a1d1092553315fd9eb24e25cb4f2724
[ "MIT" ]
1
2017-04-21T08:28:28.000Z
2017-04-21T08:28:28.000Z
council_bot.py
DT-1236/council_bot
633ffb078a1d1092553315fd9eb24e25cb4f2724
[ "MIT" ]
null
null
null
council_bot.py
DT-1236/council_bot
633ffb078a1d1092553315fd9eb24e25cb4f2724
[ "MIT" ]
1
2020-02-22T02:32:36.000Z
2020-02-22T02:32:36.000Z
import datetime import urllib import re import discord from discord.ext import commands from fuzzywuzzy import fuzz from fuzzywuzzy import process import logging import Levenshtein import member_info logger = logging.getLogger('discord') logger.setLevel(logging.CRITICAL) handler = logging.FileHandler(file...
47.015576
249
0.647893
fe8510a81c5105c4f794f82600e27a5478c8e2a3
4,672
py
Python
dmlab/env.py
do-not-be-hasty/seed_rl
1e94de42dd7f40c6981a5099fb1acdc395d6b147
[ "Apache-2.0" ]
2
2021-11-23T17:50:59.000Z
2022-01-13T12:10:00.000Z
dmlab/env.py
awarelab/seed_rl
b738be03e4d3c49ca259fae88d26cb747b771a65
[ "Apache-2.0" ]
3
2020-11-12T03:32:54.000Z
2020-11-14T14:31:31.000Z
dmlab/env.py
awarelab/seed_rl
b738be03e4d3c49ca259fae88d26cb747b771a65
[ "Apache-2.0" ]
2
2020-10-25T03:21:48.000Z
2020-12-28T06:00:04.000Z
# coding=utf-8 # Copyright 2019 The SEED Authors # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
31.782313
79
0.658604
c34b5f2387e700c991c23890b520f897b1b2c0c3
59,916
py
Python
KMC_allinone.py
laurisikk/KMC_GUI
77bdd186c06537447e5eb41c21d5f95a11cf8c2e
[ "MIT" ]
null
null
null
KMC_allinone.py
laurisikk/KMC_GUI
77bdd186c06537447e5eb41c21d5f95a11cf8c2e
[ "MIT" ]
null
null
null
KMC_allinone.py
laurisikk/KMC_GUI
77bdd186c06537447e5eb41c21d5f95a11cf8c2e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import math import sys import os import numpy as np import KMC_test8 as KMC_engine import matplotlib.pyplot as plt from PyQt5.QtWidgets import QMainWindow, QApplication, QWidget, QPushButton, QAction, QVBoxLayout, QGraphicsView, QToolBar, QGraphicsScene, QButtonGroup, QHBoxLayout, QGraphicsRect...
37.494368
300
0.762367
092852d84578c73be83e6b2d059814fe9e9fa719
742
py
Python
fitness-backend/src/app/models/gym.py
cuappdev/archives
061d0f9cccf278363ffaeb27fc655743b1052ae5
[ "MIT" ]
null
null
null
fitness-backend/src/app/models/gym.py
cuappdev/archives
061d0f9cccf278363ffaeb27fc655743b1052ae5
[ "MIT" ]
null
null
null
fitness-backend/src/app/models/gym.py
cuappdev/archives
061d0f9cccf278363ffaeb27fc655743b1052ae5
[ "MIT" ]
null
null
null
from . import * class Gym(Base): __tablename__ = 'gyms' id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(255), nullable=False, unique=True) equipment = db.Column(db.String(1500)) image_url = db.Column(db.String(1500), default="") is_gym = db.Column(db.Boolean, nullable=False, defaul...
30.916667
63
0.683288
12921869cfc5f2001e8c5a6e6c4a2604c12ed722
1,008
py
Python
plugins/salesforce/komand_salesforce/actions/simple_search/action.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
46
2019-06-05T20:47:58.000Z
2022-03-29T10:18:01.000Z
plugins/salesforce/komand_salesforce/actions/simple_search/action.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
386
2019-06-07T20:20:39.000Z
2022-03-30T17:35:01.000Z
plugins/salesforce/komand_salesforce/actions/simple_search/action.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
43
2019-07-09T14:13:58.000Z
2022-03-28T12:04:46.000Z
import komand from .schema import SimpleSearchInput, SimpleSearchOutput # Custom imports below from komand.helper import clean class SimpleSearch(komand.Action): def __init__(self): super(self.__class__, self).__init__( name="simple_search", description="Execute a simple search fo...
29.647059
69
0.572421
468aa788e3f51cb2b1bcea1de5c1537f5d8b7b2b
4,116
py
Python
arcade/examples/platform_tutorial/04_add_gravity.py
markjoshua12/arcade
74a8012a001229cee677acbf2a285ef677c8b691
[ "MIT" ]
1
2020-01-18T04:48:38.000Z
2020-01-18T04:48:38.000Z
arcade/examples/platform_tutorial/04_add_gravity.py
markjoshua12/arcade
74a8012a001229cee677acbf2a285ef677c8b691
[ "MIT" ]
null
null
null
arcade/examples/platform_tutorial/04_add_gravity.py
markjoshua12/arcade
74a8012a001229cee677acbf2a285ef677c8b691
[ "MIT" ]
null
null
null
""" Platformer Game """ import arcade # Constants SCREEN_WIDTH = 1000 SCREEN_HEIGHT = 650 SCREEN_TITLE = "Platformer" # Constants used to scale our sprites from their original size CHARACTER_SCALING = 1 TILE_SCALING = 0.5 COIN_SCALING = 0.5 # Movement speed of player, in pixels per frame PLAYER_MOVEMENT_SPEED = 5 GR...
31.419847
106
0.615403
882dac9e23f0eae9625a8a91da0b41ddb3064ce2
2,471
py
Python
pyci/tests/utils.py
iliapolo/pyrelease
85784c556a0760d560378ef6edcfb32ab87048a5
[ "Apache-2.0" ]
5
2018-05-03T15:20:12.000Z
2019-12-13T20:19:47.000Z
pyci/tests/utils.py
iliapolo/pyci
85784c556a0760d560378ef6edcfb32ab87048a5
[ "Apache-2.0" ]
54
2018-04-09T06:34:50.000Z
2020-03-30T06:13:39.000Z
pyci/tests/utils.py
iliapolo/pyrelease
85784c556a0760d560378ef6edcfb32ab87048a5
[ "Apache-2.0" ]
null
null
null
############################################################################# # Copyright (c) 2018 Eli Polonsky. 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...
30.134146
84
0.66208
380e150f7cc43502bb88f0379d24545a960fb87a
14,264
py
Python
.venv/lib/python2.7/site-packages/celery/contrib/migrate.py
MansoorHanif/FYP-web-app
918008d3b5eedaa904f3e720296afde9d73ac3f4
[ "BSD-3-Clause" ]
4
2018-10-19T04:36:20.000Z
2020-02-13T16:14:09.000Z
.venv/lib/python2.7/site-packages/celery/contrib/migrate.py
MansoorHanif/FYP-web-app
918008d3b5eedaa904f3e720296afde9d73ac3f4
[ "BSD-3-Clause" ]
3
2020-02-11T23:03:45.000Z
2021-06-10T18:05:11.000Z
oo/lib/python3.5/site-packages/celery/contrib/migrate.py
chunky2808/SPOJ-history-Django-App
490c58b1593cd3626f0ddc27fdd09c6e8d1c56e1
[ "MIT" ]
1
2019-10-26T04:20:52.000Z
2019-10-26T04:20:52.000Z
# -*- coding: utf-8 -*- """Message migration tools (Broker <-> Broker).""" from __future__ import absolute_import, print_function, unicode_literals import socket from functools import partial from itertools import cycle, islice from kombu import eventloop, Queue from kombu.common import maybe_declare from kombu.util...
34.288462
79
0.614344
819eaaa4421808baa54812a71fdb7aadd449765b
10,951
py
Python
stickytape/__init__.py
wenoptics/stickytape
12f5e64d97be70e9f58c068ce6ca429d0cfba97e
[ "BSD-2-Clause" ]
null
null
null
stickytape/__init__.py
wenoptics/stickytape
12f5e64d97be70e9f58c068ce6ca429d0cfba97e
[ "BSD-2-Clause" ]
null
null
null
stickytape/__init__.py
wenoptics/stickytape
12f5e64d97be70e9f58c068ce6ca429d0cfba97e
[ "BSD-2-Clause" ]
null
null
null
import os.path import codecs import subprocess import ast import sys def script(path, add_python_modules=None, add_python_paths=None, python_binary=None): if add_python_modules is None: add_python_modules = [] if add_python_paths is None: add_python_paths = [] python_paths = [os.path.dir...
21.685149
138
0.586065