hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
797d1bf8d841a14de88718b2a4d20af41a4a91f4
9,804
py
Python
evaluation/02_compute_metrics.py
som-shahlab/psych-audio
83125f0ab0a6fa0193412fa09fd0c5171d88cabf
[ "MIT" ]
10
2020-06-09T11:35:57.000Z
2021-11-25T09:26:53.000Z
evaluation/02_compute_metrics.py
som-shahlab/psych-audio
83125f0ab0a6fa0193412fa09fd0c5171d88cabf
[ "MIT" ]
null
null
null
evaluation/02_compute_metrics.py
som-shahlab/psych-audio
83125f0ab0a6fa0193412fa09fd0c5171d88cabf
[ "MIT" ]
3
2020-08-02T11:36:25.000Z
2021-11-25T09:39:05.000Z
""" Creates a Table 2 using session-level data. """ import os import sys import nltk import math import time import argparse import numpy as np import pandas as pd from typing import * from tqdm import tqdm from queue import Queue from threading import Thread import scipy.spatial.distance import gensim.downloader as ap...
31.524116
94
0.591289
797d1bff0cd0b058d69c23dcac773a50699fea4f
9,559
py
Python
reeds/function_libs/pipeline/worker_scripts/analysis_workers/RE_EDS_soptimization_final.py
candidechamp/reeds
601e4327132f80d7e7fd90d47eecc85cecc0fdd8
[ "MIT" ]
null
null
null
reeds/function_libs/pipeline/worker_scripts/analysis_workers/RE_EDS_soptimization_final.py
candidechamp/reeds
601e4327132f80d7e7fd90d47eecc85cecc0fdd8
[ "MIT" ]
null
null
null
reeds/function_libs/pipeline/worker_scripts/analysis_workers/RE_EDS_soptimization_final.py
candidechamp/reeds
601e4327132f80d7e7fd90d47eecc85cecc0fdd8
[ "MIT" ]
null
null
null
import glob import os import pickle import numpy as np import pandas as pd from typing import Union, List from pygromos.files import repdat from pygromos.utils import bash import reeds.function_libs.visualization.re_plots from reeds.function_libs.analysis.parameter_optimization import get_s_optimization_roundtrips_p...
43.848624
194
0.680197
797d1c5936dcd19fb72385b867092e2a2bbf76f2
1,188
py
Python
polls_service/polls/models.py
KirovVerst/django-polls-site
301103c94e239d5d63e5ffb751abedcf3b927df2
[ "MIT" ]
1
2021-02-27T16:55:45.000Z
2021-02-27T16:55:45.000Z
polls_service/polls/models.py
KirovVerst/django-polls-site
301103c94e239d5d63e5ffb751abedcf3b927df2
[ "MIT" ]
4
2021-03-30T13:26:50.000Z
2021-09-22T19:03:07.000Z
polls_service/polls/models.py
KirovVerst/polls-service
301103c94e239d5d63e5ffb751abedcf3b927df2
[ "MIT" ]
null
null
null
import datetime from django.contrib.auth.models import User from django.db import models from django.utils import timezone # Create your models here. class Question(models.Model): question_text = models.CharField(max_length=200) pub_date = models.DateTimeField(verbose_name="date published") def __str_...
28.285714
71
0.731481
797d1cdb5a95e5e54208c70eacdd8b35e916c0c7
850
py
Python
libpysal/io/iohandlers/tests/test_wkt.py
Kanahiro/dbf-df-translator
6603ca1ac306203bf8c95e6545685c509324a438
[ "MIT" ]
null
null
null
libpysal/io/iohandlers/tests/test_wkt.py
Kanahiro/dbf-df-translator
6603ca1ac306203bf8c95e6545685c509324a438
[ "MIT" ]
null
null
null
libpysal/io/iohandlers/tests/test_wkt.py
Kanahiro/dbf-df-translator
6603ca1ac306203bf8c95e6545685c509324a438
[ "MIT" ]
null
null
null
import unittest from ..wkt import WKTReader from .... import examples as pysal_examples class test_WKTReader(unittest.TestCase): def setUp(self): self.test_file = test_file = pysal_examples.get_path("stl_hom.wkt") self.obj = WKTReader(test_file, "r") def test_close(self): f = self.obj...
27.419355
86
0.641176
797d1ce9b3b4701660faee84e4f37cb1122bfa79
5,854
py
Python
interfaces/ATS_VM/python_apps/pypo/pyponotify.py
krattai/AEBL
a7b12c97479e1236d5370166b15ca9f29d7d4265
[ "BSD-2-Clause" ]
4
2016-04-26T03:43:54.000Z
2016-11-17T08:09:04.000Z
interfaces/ATS_VM/python_apps/pypo/pyponotify.py
krattai/AEBL
a7b12c97479e1236d5370166b15ca9f29d7d4265
[ "BSD-2-Clause" ]
17
2015-01-05T21:06:22.000Z
2015-12-07T20:45:44.000Z
interfaces/ATS_VM/python_apps/pypo/pyponotify.py
krattai/AEBL
a7b12c97479e1236d5370166b15ca9f29d7d4265
[ "BSD-2-Clause" ]
3
2016-04-26T03:43:55.000Z
2020-11-06T11:02:08.000Z
# -*- coding: utf-8 -*- import traceback """ Python part of radio playout (pypo) This function acts as a gateway between liquidsoap and the server API. Mainly used to tell the platform what pypo/liquidsoap does. Main case: - whenever LS starts playing a new track, its on_metadata callback calls a function in ls ...
41.814286
138
0.631363
797d1d045e0ebe4b8d84d073548343736f63b7f0
5,371
py
Python
CNN_using_self_embedding.py
nitiniisc/20_news_group_CNN
8d36f98af4928e7f48d5110d63eb1115e5faf59d
[ "MIT" ]
null
null
null
CNN_using_self_embedding.py
nitiniisc/20_news_group_CNN
8d36f98af4928e7f48d5110d63eb1115e5faf59d
[ "MIT" ]
null
null
null
CNN_using_self_embedding.py
nitiniisc/20_news_group_CNN
8d36f98af4928e7f48d5110d63eb1115e5faf59d
[ "MIT" ]
null
null
null
# coding: utf-8 # In[1]: import numpy as np import os import tensorflow as tf from tensorflow.contrib import learn from data_utils import * embedding_size = 128 filter_sizes =[3,4] num_filters = 32 num_classes =20 batch_size = 64 num_epochs = 10 # In[2]: def weight_variable(shape): initial = tf.truncated_norm...
26.589109
116
0.713834
797d1d7085deb5df2f4b6f0ea6039f53a6d65ee7
6,912
py
Python
app/controller.py
notconfusing/CivilServant
f9c7a2cf4de4f6506e37b7c33a7e512b893069c3
[ "MIT" ]
null
null
null
app/controller.py
notconfusing/CivilServant
f9c7a2cf4de4f6506e37b7c33a7e512b893069c3
[ "MIT" ]
null
null
null
app/controller.py
notconfusing/CivilServant
f9c7a2cf4de4f6506e37b7c33a7e512b893069c3
[ "MIT" ]
null
null
null
import inspect, os, sys, yaml import simplejson as json import reddit.connection import app.controllers.front_page_controller import app.controllers.subreddit_controller import app.controllers.comment_controller import app.controllers.moderator_controller import app.controllers.stylesheet_experiment_controller import a...
40.899408
138
0.751591
797d1da6d1f4914a8cf6b4774a8f613d6ec99579
12,502
py
Python
pytype/pytd/parse/node.py
gvanrossum/pytype
0a804598271167b4fbb1f6a9664faef0918745f4
[ "Apache-2.0" ]
11
2017-02-12T12:19:50.000Z
2022-03-06T08:56:48.000Z
pytype/pytd/parse/node.py
gvanrossum/pytype
0a804598271167b4fbb1f6a9664faef0918745f4
[ "Apache-2.0" ]
null
null
null
pytype/pytd/parse/node.py
gvanrossum/pytype
0a804598271167b4fbb1f6a9664faef0918745f4
[ "Apache-2.0" ]
2
2017-06-27T14:41:57.000Z
2021-12-05T11:27:33.000Z
# -*- coding:utf-8; python-indent:2; indent-tabs-mode:nil -*- # 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/...
35.925287
80
0.68685
797d1e3517e3534ff80d4de80671b1c52438ec04
3,383
py
Python
MODULES/Discovery_SystemNetworkConnectionsDiscovery_GetPublicIP.py
evi1hack/viperpython
04bf8e31e21385edb58ea9d25296df062197df39
[ "BSD-3-Clause" ]
null
null
null
MODULES/Discovery_SystemNetworkConnectionsDiscovery_GetPublicIP.py
evi1hack/viperpython
04bf8e31e21385edb58ea9d25296df062197df39
[ "BSD-3-Clause" ]
null
null
null
MODULES/Discovery_SystemNetworkConnectionsDiscovery_GetPublicIP.py
evi1hack/viperpython
04bf8e31e21385edb58ea9d25296df062197df39
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # @File : SimplePostPythonModule.py # @Date : 2019/1/12 # @Desc : import ipaddress from Lib.ModuleAPI import * from Lib.ipgeo import IPGeo class PostModule(PostMSFPowershellModule): NAME_ZH = "获取互联网出口IP" DESC_ZH = "模块通过访问https://ifconfig.me/ip接口获取当前Session的互联网出口IP地址.\n" \ ...
39.337209
138
0.617204
797d1f7cd059d2d103b203a4005f2187beb541f7
4,766
py
Python
src/predict_per_plane.py
Icebreaker454/MRNet-1
6dca2619d0afcbd97decc3e36609c3baec83411a
[ "MIT" ]
null
null
null
src/predict_per_plane.py
Icebreaker454/MRNet-1
6dca2619d0afcbd97decc3e36609c3baec83411a
[ "MIT" ]
null
null
null
src/predict_per_plane.py
Icebreaker454/MRNet-1
6dca2619d0afcbd97decc3e36609c3baec83411a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3.6 """Calculates predictions on the validation dataset, using CNN models specified in src/cnn_models_paths.txt Usage: predict_per_plane.py <valid_paths_csv> <cnn_models_paths> <output_dir> [options] predict_per_plane.py (-h | --help) General options: -h --help Show this screen. A...
29.7875
117
0.617499
797d1fa22655929cd1e06bc162457afde868863b
617
py
Python
apps/documentos/views.py
MatheusMullerGit/app_empresas
67e7a38bff51b24aa65bdedd421459f37e27a2b2
[ "MIT" ]
1
2020-11-08T16:44:20.000Z
2020-11-08T16:44:20.000Z
apps/documentos/views.py
MatheusMullerGit/app_empresas
67e7a38bff51b24aa65bdedd421459f37e27a2b2
[ "MIT" ]
null
null
null
apps/documentos/views.py
MatheusMullerGit/app_empresas
67e7a38bff51b24aa65bdedd421459f37e27a2b2
[ "MIT" ]
null
null
null
from django.views.generic.edit import CreateView, UpdateView from .models import Documento from django.urls import reverse class DocumentoCreate(CreateView): model = Documento fields = ['descricao', 'arquivo'] def post(self, request, *args, **kwargs): form = self.get_form() form.instan...
30.85
82
0.664506
797d245b472aaf236a1d8f888f32a59c9725db8c
308
py
Python
aquarius/__init__.py
akshay-ap/aquarius
e8b9229e8f7f9932c8b73f302b0c8a2d1b4ecc41
[ "Apache-2.0" ]
null
null
null
aquarius/__init__.py
akshay-ap/aquarius
e8b9229e8f7f9932c8b73f302b0c8a2d1b4ecc41
[ "Apache-2.0" ]
null
null
null
aquarius/__init__.py
akshay-ap/aquarius
e8b9229e8f7f9932c8b73f302b0c8a2d1b4ecc41
[ "Apache-2.0" ]
null
null
null
# # Copyright 2021 Ocean Protocol Foundation # SPDX-License-Identifier: Apache-2.0 # """Provide an off-chain database store for data asset metadata and registration.""" # Copyright 2018 Ocean Protocol Foundation # SPDX-License-Identifier: Apache-2.0 __author__ = """OceanProtocol""" __version__ = "2.2.6"
28
83
0.753247
797d25638a93d99837d034d5eb4f5dedaa3a9f71
1,055
py
Python
test/test_remove_html_from_text_request.py
Cloudmersive/Cloudmersive.APIClient.Python.Convert
dba2fe7257229ebdacd266531b3724552c651009
[ "Apache-2.0" ]
3
2018-07-25T23:04:34.000Z
2021-08-10T16:43:10.000Z
test/test_remove_html_from_text_request.py
Cloudmersive/Cloudmersive.APIClient.Python.Convert
dba2fe7257229ebdacd266531b3724552c651009
[ "Apache-2.0" ]
3
2020-11-23T10:46:48.000Z
2021-12-30T14:09:34.000Z
test/test_remove_html_from_text_request.py
Cloudmersive/Cloudmersive.APIClient.Python.Convert
dba2fe7257229ebdacd266531b3724552c651009
[ "Apache-2.0" ]
2
2020-01-07T09:48:01.000Z
2020-11-23T10:47:00.000Z
# coding: utf-8 """ convertapi Convert API lets you effortlessly convert file formats and types. # noqa: E501 OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import cloudmersive_convert_api_...
25.731707
128
0.751659
797d26198e973b4c645736f43df013782951c675
2,268
py
Python
cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_tunnel_nve_cfg.py
Maikor/ydk-py
b86c4a7c570ae3b2c5557d098420446df5de4929
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_tunnel_nve_cfg.py
Maikor/ydk-py
b86c4a7c570ae3b2c5557d098420446df5de4929
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_tunnel_nve_cfg.py
Maikor/ydk-py
b86c4a7c570ae3b2c5557d098420446df5de4929
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
""" Cisco_IOS_XR_tunnel_nve_cfg This module contains a collection of YANG definitions for Cisco IOS\-XR tunnel\-nve package configuration. This YANG module augments the Cisco\-IOS\-XR\-ifmgr\-cfg module with configuration data. Copyright (c) 2013\-2018 by Cisco Systems, Inc. All rights reserved. """ from collect...
17.71875
126
0.679894
797d268e6b498e1d4d86f36db7a8a74d50d6830b
8,230
py
Python
releasenotes/source/conf.py
riddopic/metal
5432df6b6e0861dcd876c2591c9cb1d51bfdf3d8
[ "Apache-2.0" ]
3
2020-02-07T19:01:48.000Z
2021-05-28T15:44:57.000Z
releasenotes/source/conf.py
riddopic/metal
5432df6b6e0861dcd876c2591c9cb1d51bfdf3d8
[ "Apache-2.0" ]
null
null
null
releasenotes/source/conf.py
riddopic/metal
5432df6b6e0861dcd876c2591c9cb1d51bfdf3d8
[ "Apache-2.0" ]
1
2022-02-09T00:23:34.000Z
2022-02-09T00:23:34.000Z
# -*- coding: utf-8 -*- # # SPDX-License-Identifier: Apache-2.0 # stx-metal Release Notes documentation build configuration file. # # 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 co...
31.776062
79
0.711422
797d274bd697096de7eb3bdec9e7065a995dfc01
2,610
py
Python
lfs/shipping/migrations/0001_initial.py
zhammami/django-lfs
b921295e71fe827377a67b5e7ae1a8bf7f72a1e6
[ "BSD-3-Clause" ]
null
null
null
lfs/shipping/migrations/0001_initial.py
zhammami/django-lfs
b921295e71fe827377a67b5e7ae1a8bf7f72a1e6
[ "BSD-3-Clause" ]
null
null
null
lfs/shipping/migrations/0001_initial.py
zhammami/django-lfs
b921295e71fe827377a67b5e7ae1a8bf7f72a1e6
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import lfs.criteria.base class Migration(migrations.Migration): dependencies = [ ('tax', '__first__'), ('catalog', '0001_initial'), ] operations = [ migrations.CreateModel( ...
51.176471
324
0.609195
797d27afc421add99e8fd490c03863a002fa71fb
8,839
py
Python
raw_data_generation/Sim/simulated_components/hp_types.py
DavidFellner/Malfunctions_in_LV_grid_datase
f92ca5e5ebc6e7d54c8e5c3d7d6e5c4e4c67fb5c
[ "MIT" ]
null
null
null
raw_data_generation/Sim/simulated_components/hp_types.py
DavidFellner/Malfunctions_in_LV_grid_datase
f92ca5e5ebc6e7d54c8e5c3d7d6e5c4e4c67fb5c
[ "MIT" ]
null
null
null
raw_data_generation/Sim/simulated_components/hp_types.py
DavidFellner/Malfunctions_in_LV_grid_datase
f92ca5e5ebc6e7d54c8e5c3d7d6e5c4e4c67fb5c
[ "MIT" ]
null
null
null
def create_t_map_exp(tminus10, tminus8, tminus6, tminus4, tminus2, tminus1, tplus1, tplus2, tplus4, tplus6, tplus8, tplus10): map = { -27: tminus10, -26: tminus10, -25: tminus10, -24: tminus10, -23: tminus10, -22: tminus10, -21: tminus10, ...
40.360731
117
0.358298
797d2823ee86a73659e68e239769f7cc6b462b92
1,481
py
Python
sdk/python/pulumi_azure_native/securityinsights/v20200101/__init__.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/securityinsights/v20200101/__init__.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/securityinsights/v20200101/__init__.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** from ... import _utilities import typing # Export this package's modules as members: from ._enums import * from .aad_data_connector import * from .aatp...
34.44186
80
0.809588
797d28343a60495ea9903e4f0546d3ea907079c0
5,599
py
Python
get_tag_data-0.py
kaebmoo/brew
53a64c1ff51c502fd84cffcbbe569205b83fcaca
[ "MIT" ]
null
null
null
get_tag_data-0.py
kaebmoo/brew
53a64c1ff51c502fd84cffcbbe569205b83fcaca
[ "MIT" ]
null
null
null
get_tag_data-0.py
kaebmoo/brew
53a64c1ff51c502fd84cffcbbe569205b83fcaca
[ "MIT" ]
null
null
null
''' Print sensor data to the screen. Update interval 2 sec. Press Ctrl+C to quit. 2017-02-02 13:45:25.233400 Sensor - F4:9D:33:83:30:29 Temperature: 10 Humidity: 28 Pressure: 689 ''' ''' get sensor data from ruuvitag and send data to ThingSpeak ''' import sys #from urllib.request import urlopen import urllib...
32.364162
139
0.691195
797d291cf4a9ace892b9972c8338ae907f37458a
11,514
py
Python
tests/bugs/core_5142_test.py
reevespaul/firebird-qa
98f16f425aa9ab8ee63b86172f959d63a2d76f21
[ "MIT" ]
null
null
null
tests/bugs/core_5142_test.py
reevespaul/firebird-qa
98f16f425aa9ab8ee63b86172f959d63a2d76f21
[ "MIT" ]
null
null
null
tests/bugs/core_5142_test.py
reevespaul/firebird-qa
98f16f425aa9ab8ee63b86172f959d63a2d76f21
[ "MIT" ]
null
null
null
#coding:utf-8 # # id: bugs.core_5142 # title: Error "no current record to fetch" if some record is to be deleted both by the statement itself and by some trigger fired during statement execution # decription: # Reproduced bug on WI-V3.0.0.32483. # All fine on WI-V3....
79.958333
261
0.694719
797d298549d8a5cef7ece4d32b768d73b558035a
2,086
py
Python
modules/api_gateway.py
mmarukaw/oci-bulk-operations
9dc5434ddbfcb80abaf250036d752e4d22e1c00b
[ "MIT" ]
1
2021-03-22T02:59:19.000Z
2021-03-22T02:59:19.000Z
modules/api_gateway.py
mmarukaw/oci-bulk-operations
9dc5434ddbfcb80abaf250036d752e4d22e1c00b
[ "MIT" ]
null
null
null
modules/api_gateway.py
mmarukaw/oci-bulk-operations
9dc5434ddbfcb80abaf250036d752e4d22e1c00b
[ "MIT" ]
null
null
null
import oci from modules.common import * client_gw = oci.apigateway.GatewayClient client_dp = oci.apigateway.DeploymentClient def purge_deployments(config, signer, compartments): target = TargetResources() target.resource_names = ['api deployments'] target.action = 'DELETE' target.target_stat...
36.596491
80
0.691275
797d29db0b11ae8c861209dfcb6d37085fe005dc
3,656
py
Python
homepage/templates/__dmpcache__/index.html.py
brandenclark/413-Final
d606f825bd1a9cf703e4907fc7b704f7df8d205b
[ "MIT" ]
null
null
null
homepage/templates/__dmpcache__/index.html.py
brandenclark/413-Final
d606f825bd1a9cf703e4907fc7b704f7df8d205b
[ "MIT" ]
null
null
null
homepage/templates/__dmpcache__/index.html.py
brandenclark/413-Final
d606f825bd1a9cf703e4907fc7b704f7df8d205b
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- from mako import runtime, filters, cache UNDEFINED = runtime.UNDEFINED STOP_RENDERING = runtime.STOP_RENDERING __M_dict_builtin = dict __M_locals_builtin = locals _magic_number = 10 _modified_time = 1524257703.6367218 _enable_loop = True _template_filename = '/Users/brand/Desktop/finalexam/homepa...
46.278481
374
0.567287
797d2b9e2d14bd658798715a332f9f6b8011de18
1,802
py
Python
examples/4- burning tokens/main.py
0xOmarA/RadixLib
85d75a47d4c4df4c1a319b74857ae2c513933623
[ "MIT" ]
32
2022-01-12T16:52:28.000Z
2022-03-24T18:05:47.000Z
examples/4- burning tokens/main.py
0xOmarA/RadixLib
85d75a47d4c4df4c1a319b74857ae2c513933623
[ "MIT" ]
3
2022-01-12T17:01:55.000Z
2022-02-12T15:14:16.000Z
examples/4- burning tokens/main.py
0xOmarA/RadixLib
85d75a47d4c4df4c1a319b74857ae2c513933623
[ "MIT" ]
1
2022-01-21T04:28:07.000Z
2022-01-21T04:28:07.000Z
""" This example examines how tokens can be burned after they've been minted. """ import radixlib as radix import os def main() -> None: # Information on the person who we will be burning the tokens from. from_address: str = "tdx1qspqqecwh3tgsgz92l4d4f0e4egmfe86049dj75pgq347fkkfmg84pgx9um0v" token_rri: st...
39.173913
99
0.68535
797d2c635053b57c8eabe64e74905b18ba8e1de9
3,923
py
Python
drawing.py
jagatiyakeval/rrt_simulator
e09f6ae57765c05d6af571bcdaf8eff694021e97
[ "MIT" ]
null
null
null
drawing.py
jagatiyakeval/rrt_simulator
e09f6ae57765c05d6af571bcdaf8eff694021e97
[ "MIT" ]
null
null
null
drawing.py
jagatiyakeval/rrt_simulator
e09f6ae57765c05d6af571bcdaf8eff694021e97
[ "MIT" ]
null
null
null
""" This is the module responsible for handling drawings to the screen. All pygame.draw commands must be executed inside this module. It also contains important variables related to drawing and other uses, that are accessible by other modules, such as startPos and goalPos. """ from config import * import pygame as p...
27.243056
85
0.734132
797d2e10e437907442271a6e46b2b8275b5f9e85
11,423
py
Python
poll.py
DUBLOUR/universiry_distribution
4c058a043850b86ba4da08bd573cd2516b122179
[ "MIT" ]
null
null
null
poll.py
DUBLOUR/universiry_distribution
4c058a043850b86ba4da08bd573cd2516b122179
[ "MIT" ]
null
null
null
poll.py
DUBLOUR/universiry_distribution
4c058a043850b86ba4da08bd573cd2516b122179
[ "MIT" ]
null
null
null
import random import string import json import nltk class Student: id = 0 name = "" prior = 0 _MAX_PRIOR = 1000000 def __init__(self, id, name, prior=None): self.id = id self.name = name if prior == None: self.prior = _MAX_PRIOR else: self.p...
25.785553
106
0.520354
797d2e5edb425e90e76072340f03722d9bf2d922
2,728
py
Python
monitor/alarm/test.py
tlju/task_monitor
74ce6c6edd49d3c35002f97352cf2b987cd93b2d
[ "MIT" ]
3
2018-06-13T03:36:34.000Z
2019-11-19T02:59:51.000Z
monitor/alarm/test.py
tlju/task_monitor
74ce6c6edd49d3c35002f97352cf2b987cd93b2d
[ "MIT" ]
null
null
null
monitor/alarm/test.py
tlju/task_monitor
74ce6c6edd49d3c35002f97352cf2b987cd93b2d
[ "MIT" ]
1
2020-08-17T14:31:43.000Z
2020-08-17T14:31:43.000Z
# -*- coding:utf-8 -*- from threading import Thread from django.db import connection import schedule,datetime,time class SMSSender(Thread): def __init__(self, parent=None): super(SMSSender, self).__init__(parent) self.sql = """SELECT policy,originalid,maindata,alarmid,alarm...
47.859649
111
0.539589
797d301d85f5368917de7ef795e455a71684d96a
1,879
py
Python
pytest_splunk_env/sc4s/dockercompose.py
splunk/pytest-splunk-env
63ce423446f54869e4530627ff7463ea3e26c38a
[ "Apache-2.0" ]
1
2021-03-18T23:35:08.000Z
2021-03-18T23:35:08.000Z
pytest_splunk_env/sc4s/dockercompose.py
splunk/pytest-splunk-env
63ce423446f54869e4530627ff7463ea3e26c38a
[ "Apache-2.0" ]
null
null
null
pytest_splunk_env/sc4s/dockercompose.py
splunk/pytest-splunk-env
63ce423446f54869e4530627ff7463ea3e26c38a
[ "Apache-2.0" ]
1
2022-03-27T16:55:33.000Z
2022-03-27T16:55:33.000Z
# SPDX-FileCopyrightText: 2020 Splunk Inc. # # SPDX-License-Identifier: Apache-2.0 import pytest import os from .base import SC4SEnv from .external import SC4SEnvExternal import splunklib.client as client import logging LOGGER = logging.getLogger(__name__) class SC4SEnvDockerCompose(SC4SEnvExternal): def __init...
29.359375
80
0.599787
797d30a65dae502684d12ed47431e447efc8a4f2
9,659
py
Python
zl_simplebd.py
zawlin/multi-modal-regression
61aa6c066834ab1373275decc38e361db5c2cf04
[ "MIT" ]
null
null
null
zl_simplebd.py
zawlin/multi-modal-regression
61aa6c066834ab1373275decc38e361db5c2cf04
[ "MIT" ]
null
null
null
zl_simplebd.py
zawlin/multi-modal-regression
61aa6c066834ab1373275decc38e361db5c2cf04
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Geodesic Bin and Delta model for the axis-angle representation """ import torch from torch import nn, optim from torch.autograd import Variable from torch.utils.data import DataLoader from dataGenerators import TestImages, my_collate from binDeltaGenerators import GBDGenerator from axisAng...
36.587121
152
0.743866
797d317c688274020797be3adb80ca0d1df395f1
4,791
py
Python
libcloud/utils/py3.py
cedadev/libcloud
cc6ab7188c5f29440a7c95808d900f0973e6c24d
[ "Apache-2.0" ]
1
2015-06-24T15:09:07.000Z
2015-06-24T15:09:07.000Z
libcloud/utils/py3.py
elastacloud/libcloud
f3792b2dca835c548bdbce0da2eb71bfc9463b72
[ "Apache-2.0" ]
null
null
null
libcloud/utils/py3.py
elastacloud/libcloud
f3792b2dca835c548bdbce0da2eb71bfc9463b72
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use ...
28.017544
79
0.668963
797d32e7310732b3bd8b0578bfd267e0da444cad
22,018
py
Python
aoc_2020_16.py
StevenBroadbent/aoc2020
30f8d548f87f54385ff15153be4232edf8a10dca
[ "MIT" ]
null
null
null
aoc_2020_16.py
StevenBroadbent/aoc2020
30f8d548f87f54385ff15153be4232edf8a10dca
[ "MIT" ]
1
2022-03-13T17:27:17.000Z
2022-03-13T17:27:17.000Z
aoc_2020_16.py
StevenBroadbent/AOC2020
30f8d548f87f54385ff15153be4232edf8a10dca
[ "MIT" ]
null
null
null
import re from collections import defaultdict # my_ticket = [int(x) for x in my_ticket.split('\n')[1].split(',')] not used in part one. # https://adventofcode.com/2020/day/16 data2 = ''' class: 0-1 or 4-19 row: 0-5 or 8-19 seat: 0-13 or 16-19 your ticket: 11,12,13 nearby tickets: 3,9,18 15,1,5 5,14,9''' data = ''' ...
60.489011
96
0.72141
797d33d99dc117540ef5ed1e6df55b5d34274333
2,317
py
Python
setup.py
kx-chen/vulture
162434e5ee33f9dec3b6a35c1f5441003ae9c332
[ "MIT" ]
null
null
null
setup.py
kx-chen/vulture
162434e5ee33f9dec3b6a35c1f5441003ae9c332
[ "MIT" ]
null
null
null
setup.py
kx-chen/vulture
162434e5ee33f9dec3b6a35c1f5441003ae9c332
[ "MIT" ]
null
null
null
#! /usr/bin/env python import codecs import os.path import re import sys import setuptools from setuptools.command.test import test as TestCommand def read(*parts): here = os.path.abspath(os.path.dirname(__file__)) with codecs.open(os.path.join(here, *parts), 'r') as f: return f.read() def find_ve...
30.486842
70
0.629262
797d34cebb21c2d6951f63faa053a59d4e690b45
8,835
py
Python
sherlock/sites.py
havocesp/sherlock
225508f660a5357538f0972fe85ffb7e9ec079e7
[ "MIT" ]
2
2020-08-17T07:20:48.000Z
2020-08-18T07:04:21.000Z
sherlock/sites.py
justjavac/sherlock
ddecc147321ded8362fd962572b1f4734631541f
[ "MIT" ]
null
null
null
sherlock/sites.py
justjavac/sherlock
ddecc147321ded8362fd962572b1f4734631541f
[ "MIT" ]
2
2020-08-18T07:04:44.000Z
2021-03-10T17:50:58.000Z
"""Sherlock Sites Information Module This module supports storing information about web sites. This is the raw data that will be used to search for usernames. """ import os import json import operator import requests import sys class SiteInformation(): def __init__(self, name, url_home, url_username_format, user...
40.902778
126
0.467346
797d35715736a37973f958af74346f9ef6362f16
872
py
Python
check-file-encoding.py
ran-huang/pingcap-docs-checks
ccd0f3a443cacb255c206aecb2c54c9fcd047c81
[ "MIT" ]
3
2021-02-04T09:17:06.000Z
2021-07-09T02:15:04.000Z
check-file-encoding.py
ran-huang/pingcap-docs-checks
ccd0f3a443cacb255c206aecb2c54c9fcd047c81
[ "MIT" ]
3
2021-07-06T01:52:28.000Z
2021-09-08T08:48:48.000Z
check-file-encoding.py
ran-huang/pingcap-docs-checks
ccd0f3a443cacb255c206aecb2c54c9fcd047c81
[ "MIT" ]
5
2021-02-04T09:16:50.000Z
2021-07-09T02:15:20.000Z
import sys, os, codecs # Convert the file encoding to the default UTF-8 without BOM. def check_BOM(filename): BUFSIZE = 4096 BOMLEN = len(codecs.BOM_UTF8) with open(filename, "r+b") as fp: chunk = fp.read(BUFSIZE) if chunk.startswith(codecs.BOM_UTF8): i = 0 chunk = ...
32.296296
135
0.558486
797d366d8f81b18b89cb2f79cbec3f54d2919830
93
py
Python
batch-files/train.py
lambdaofgod/examples
26f7dd0ab58aba2f251e307982c34c9bd67d4797
[ "Apache-2.0" ]
9
2017-12-14T01:20:07.000Z
2020-04-30T09:33:55.000Z
batch-files/train.py
lambdaofgod/examples
26f7dd0ab58aba2f251e307982c34c9bd67d4797
[ "Apache-2.0" ]
2
2019-08-15T16:32:00.000Z
2020-03-18T18:22:38.000Z
batch-files/train.py
lambdaofgod/examples
26f7dd0ab58aba2f251e307982c34c9bd67d4797
[ "Apache-2.0" ]
4
2019-08-22T07:25:11.000Z
2020-06-08T07:07:50.000Z
lr = 0.1 batch_size = 100 print("Training with lr=%f and batch_size=%i" % (lr, batch_size))
18.6
65
0.677419
797d36fa86183e8ea48da42ae4774c026424a721
1,695
py
Python
setup.py
michaelbausor/releasetool
5bac8a5ab8f9d993c0b52312ff04e847c322d525
[ "Apache-2.0" ]
null
null
null
setup.py
michaelbausor/releasetool
5bac8a5ab8f9d993c0b52312ff04e847c322d525
[ "Apache-2.0" ]
null
null
null
setup.py
michaelbausor/releasetool
5bac8a5ab8f9d993c0b52312ff04e847c322d525
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
26.484375
74
0.674336
797d39daedd24af1c2e57bc299725ccecfacceb6
449
py
Python
src/midi.py
Sawuare/h
66f9867eec1ed3eaff6df68e2ea5566897e180e7
[ "MIT" ]
3
2021-10-01T18:50:51.000Z
2021-11-01T23:36:18.000Z
src/midi.py
Sawuare/h
66f9867eec1ed3eaff6df68e2ea5566897e180e7
[ "MIT" ]
null
null
null
src/midi.py
Sawuare/h
66f9867eec1ed3eaff6df68e2ea5566897e180e7
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 # midi.py - print a table of MIDI note number, notation, and frequency # Sequence of pitch classes PCS = ["C", "C#", "D", "D#", "E", "F", "F#", "G", "G#", "A", "A#", "B"] PCN = 12 # Number of pitch classes N = 128 # Number of MIDI notes A4N = 69 # Number of note A4 A4F = 440 # Frequency o...
29.933333
98
0.55902
797d39e8265ba4eb238736bf1be17c69def223b8
5,088
py
Python
google/ads/googleads/v10/resources/__init__.py
JakobSteixner/google-ads-python
df2b802cc7e78295a4ece21cc7ef3787cd35dab0
[ "Apache-2.0" ]
null
null
null
google/ads/googleads/v10/resources/__init__.py
JakobSteixner/google-ads-python
df2b802cc7e78295a4ece21cc7ef3787cd35dab0
[ "Apache-2.0" ]
null
null
null
google/ads/googleads/v10/resources/__init__.py
JakobSteixner/google-ads-python
df2b802cc7e78295a4ece21cc7ef3787cd35dab0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
25.69697
74
0.687107
797d3bce1d4f43b29b9a5b6140e6654b0d448d31
1,047
py
Python
embeds/fast.py
kris927b/bilstm-aux
bd6a1b94fc7071bdf90695cc89b45c01960c2c28
[ "Apache-2.0" ]
129
2016-05-04T15:39:05.000Z
2022-03-16T07:42:20.000Z
embeds/fast.py
kris927b/bilstm-aux
bd6a1b94fc7071bdf90695cc89b45c01960c2c28
[ "Apache-2.0" ]
13
2016-11-03T10:21:57.000Z
2020-12-04T16:40:36.000Z
embeds/fast.py
kris927b/bilstm-aux
bd6a1b94fc7071bdf90695cc89b45c01960c2c28
[ "Apache-2.0" ]
46
2016-07-19T23:40:10.000Z
2020-12-28T02:02:28.000Z
import sys import os if len(sys.argv) < 3: print('please provide embeddings and pos conl file') exit(0) #TODO could be more efficient by only generating for unique words? (probably fastText already does that?) posFile = sys.argv[2] embFile = posFile + '.embeds' wordFile = posFile + '.words' cmd = 'cut -f 1 ...
24.348837
128
0.589303
797d3bdcc5f845b97fe64e07d121f14c1bba035e
4,127
py
Python
trinity/protocol/eth/proto.py
stringray55/trinity
d14ad79bfb679d7a8430f5a73605c2c57e542fb0
[ "MIT" ]
null
null
null
trinity/protocol/eth/proto.py
stringray55/trinity
d14ad79bfb679d7a8430f5a73605c2c57e542fb0
[ "MIT" ]
null
null
null
trinity/protocol/eth/proto.py
stringray55/trinity
d14ad79bfb679d7a8430f5a73605c2c57e542fb0
[ "MIT" ]
null
null
null
from typing import ( List, Tuple, TYPE_CHECKING, Union, ) from eth_typing import ( Hash32, BlockNumber, ) from eth.rlp.headers import BlockHeader from eth.rlp.receipts import Receipt from eth.rlp.transactions import BaseTransactionFields from p2p.protocol import ( Protocol, ) from trinit...
28.462069
96
0.640174
797d3bf1665dc0a51381a1018b337b90e312abdc
981
py
Python
python_modules/libraries/dagster-slack/dagster_slack_tests/test_resources.py
ymrzkrrs/dagster
b5713af752146674d1f96436d0a01363e6834cb7
[ "Apache-2.0" ]
2
2021-06-21T17:50:26.000Z
2021-06-21T19:14:23.000Z
python_modules/libraries/dagster-slack/dagster_slack_tests/test_resources.py
ymrzkrrs/dagster
b5713af752146674d1f96436d0a01363e6834cb7
[ "Apache-2.0" ]
1
2021-06-21T18:30:02.000Z
2021-06-25T21:18:39.000Z
python_modules/libraries/dagster-slack/dagster_slack_tests/test_resources.py
ymrzkrrs/dagster
b5713af752146674d1f96436d0a01363e6834cb7
[ "Apache-2.0" ]
1
2021-11-30T21:40:46.000Z
2021-11-30T21:40:46.000Z
import json from dagster import ModeDefinition, execute_solid, solid from dagster_slack import slack_resource from mock import patch @patch("slack.web.base_client.BaseClient._perform_urllib_http_request") def test_slack_resource(mock_urllib_http_request): @solid(required_resource_keys={"slack"}) def slack_so...
30.65625
96
0.666667
797d3c7cf2c2ca79b928c17b1b596021828050fb
18,987
py
Python
bmtk/builder/network_adaptors/dm_network.py
mjhyman/bmtk
42dcce944fe8ff8cab02b19d2d983f73a8cbc0d1
[ "BSD-3-Clause" ]
216
2017-10-03T17:02:42.000Z
2022-03-20T03:35:48.000Z
bmtk/builder/network_adaptors/dm_network.py
mjhyman/bmtk
42dcce944fe8ff8cab02b19d2d983f73a8cbc0d1
[ "BSD-3-Clause" ]
70
2017-10-05T00:50:41.000Z
2022-03-30T18:55:01.000Z
bmtk/builder/network_adaptors/dm_network.py
mjhyman/bmtk
42dcce944fe8ff8cab02b19d2d983f73a8cbc0d1
[ "BSD-3-Clause" ]
97
2017-10-03T22:15:06.000Z
2022-03-23T21:03:26.000Z
# Copyright 2017. Allen Institute. All rights reserved # # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the # following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the follow...
46.536765
120
0.627377
797d3d76092e011aa2d641874ad6601c4a462b89
1,609
py
Python
ogc_edr_lib/formatters/conformance_html.py
eugenegesdisc/gmuedr
e8b3e5c7b8d18421d875f0f6f778a37a6d8ec3fd
[ "MIT" ]
null
null
null
ogc_edr_lib/formatters/conformance_html.py
eugenegesdisc/gmuedr
e8b3e5c7b8d18421d875f0f6f778a37a6d8ec3fd
[ "MIT" ]
null
null
null
ogc_edr_lib/formatters/conformance_html.py
eugenegesdisc/gmuedr
e8b3e5c7b8d18421d875f0f6f778a37a6d8ec3fd
[ "MIT" ]
null
null
null
from ogc_edr_lib.formatters.base import BaseFormatter from ogc_edr_lib.ogc_api_config import OgcApiConfig from ogc_edr_lib.l10n import LocaleTranslator class ConformanceHtmlFormatter(BaseFormatter): """generic Formatter ABC""" type = "formatter" category = "conformance" supported_media_types = ["text/...
30.358491
64
0.654444
797d3db9f6dacd07d82937a1044e6acef64aed62
19,426
py
Python
sdk/python/pulumi_azure_native/network/v20200301/network_security_group.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20200301/network_security_group.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20200301/network_security_group.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
57.815476
5,861
0.702718
797d3e6ad81f259dddcb30fe95cbe63d665d8878
22
py
Python
tests/python/lex-err0.py
jaydeetay/pxt
aad1beaf15edc46e1327806367298cbc942dcbc1
[ "MIT" ]
977
2019-05-06T23:12:55.000Z
2022-03-29T19:11:44.000Z
tests/python/lex-err0.py
jaydeetay/pxt
aad1beaf15edc46e1327806367298cbc942dcbc1
[ "MIT" ]
3,980
2019-05-09T20:48:14.000Z
2022-03-28T20:33:07.000Z
tests/python/lex-err0.py
jaydeetay/pxt
aad1beaf15edc46e1327806367298cbc942dcbc1
[ "MIT" ]
306
2016-04-09T05:28:07.000Z
2019-05-02T14:23:29.000Z
0xO "foo $ foo ` blah
4.4
6
0.590909
797d4009cb0a1bb95e6ba429651809bd1f047c87
240
py
Python
app/utils/size.py
ckhairul/backend
5d22c1f34488cda6bb21eff5fb2bf69f71e7e753
[ "MIT" ]
15
2020-11-27T04:03:34.000Z
2022-03-04T11:00:07.000Z
app/utils/size.py
ckhairul/backend
5d22c1f34488cda6bb21eff5fb2bf69f71e7e753
[ "MIT" ]
18
2021-06-03T06:03:02.000Z
2022-02-21T08:58:09.000Z
app/utils/size.py
ckhairul/backend
5d22c1f34488cda6bb21eff5fb2bf69f71e7e753
[ "MIT" ]
26
2020-11-26T09:00:03.000Z
2022-02-16T04:20:53.000Z
def get_readable_size(num, suffix='B'): for unit in ['','K','M','G','T','P','E','Z']: if abs(num) < 1000.0: return "%3.2f %s%s" % (num, unit, suffix) num /= 1000.0 return "%.2f %s%s" % (num, 'Y', suffix)
34.285714
53
0.4625
797d4031d07a08af59af966162db29364b7cf0e7
7,999
py
Python
tests/test_quadratic_model.py
pierrelouisp/dimod
3db911374825ba211da35a798610b004c54e1c70
[ "Apache-2.0" ]
null
null
null
tests/test_quadratic_model.py
pierrelouisp/dimod
3db911374825ba211da35a798610b004c54e1c70
[ "Apache-2.0" ]
24
2021-07-09T08:19:47.000Z
2022-03-08T08:15:48.000Z
tests/test_quadratic_model.py
29rou/dimod
ea0426f274241b081a560071fc4eeeb633aa1380
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 D-Wave Systems 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...
32.917695
95
0.570821
797d40cca2421b27df40d4ec134edf2dc867b4f9
1,812
py
Python
tests/contrib/hooks/gcp_dataflow_hook.py
rubeshdcube/incubator-airflow
5419fbb78a2ea2388456c356d2f899ea1991b2de
[ "Apache-2.0" ]
6
2016-04-20T20:40:43.000Z
2022-02-20T10:32:00.000Z
tests/contrib/hooks/test_gcp_dataflow_hook.py
curest0x1021/incubator-airflow
e6d3160a061dbaa6042d524095dcd1cbc15e0bcd
[ "Apache-2.0" ]
8
2017-09-07T22:20:35.000Z
2021-05-14T17:35:27.000Z
tests/contrib/hooks/test_gcp_dataflow_hook.py
curest0x1021/incubator-airflow
e6d3160a061dbaa6042d524095dcd1cbc15e0bcd
[ "Apache-2.0" ]
9
2017-08-24T15:47:44.000Z
2022-02-14T03:30:49.000Z
# -*- coding: utf-8 -*- # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software ...
31.789474
75
0.720751
797d41263a4b1408c9be5598ac77f0790cfe8cf4
10,329
py
Python
holoviews/ipython/__init__.py
pepijndevos/holoviews
4a3ae174eeeece49ec0be48d56e8e231431b6d29
[ "BSD-3-Clause" ]
null
null
null
holoviews/ipython/__init__.py
pepijndevos/holoviews
4a3ae174eeeece49ec0be48d56e8e231431b6d29
[ "BSD-3-Clause" ]
null
null
null
holoviews/ipython/__init__.py
pepijndevos/holoviews
4a3ae174eeeece49ec0be48d56e8e231431b6d29
[ "BSD-3-Clause" ]
null
null
null
import os from unittest import SkipTest import param import holoviews from IPython import version_info from IPython.core.completer import IPCompleter from IPython.display import HTML, publish_display_data from param import ipython as param_ext from ..core.dimension import LabelledData from ..core.tree import AttrTre...
37.69708
92
0.619905
797d413a51ec14b1a9ec38cfbbb5d32e101552bf
4,634
py
Python
scripts/pileupplots_consensus_frequency.py
mmolari/morbidostat-genome-analysis
246cf12c07c724a76485cac7aa9a1f7fa660fa9c
[ "MIT" ]
null
null
null
scripts/pileupplots_consensus_frequency.py
mmolari/morbidostat-genome-analysis
246cf12c07c724a76485cac7aa9a1f7fa660fa9c
[ "MIT" ]
null
null
null
scripts/pileupplots_consensus_frequency.py
mmolari/morbidostat-genome-analysis
246cf12c07c724a76485cac7aa9a1f7fa660fa9c
[ "MIT" ]
null
null
null
# %% import numpy as np import pathlib as pth import matplotlib.pyplot as plt import re try: from pileupplots_utils import * except: from .pileupplots_utils import * # %% if __name__ == "__main__": parser = argparser() args = parser.parse_args() data_path = pth.Path(args.vial_fld) fig_path ...
27.583333
89
0.63142
797d4427519daa5c5cf052f784a8aa19cbb17b57
1,415
py
Python
tests/packages/test_url_dependency.py
ashnair1/poetry-core
435adc78ad526f18329f76ea91a893780de939e5
[ "MIT" ]
null
null
null
tests/packages/test_url_dependency.py
ashnair1/poetry-core
435adc78ad526f18329f76ea91a893780de939e5
[ "MIT" ]
null
null
null
tests/packages/test_url_dependency.py
ashnair1/poetry-core
435adc78ad526f18329f76ea91a893780de939e5
[ "MIT" ]
null
null
null
from __future__ import annotations from poetry.core.packages.url_dependency import URLDependency from poetry.core.version.markers import SingleMarker def test_to_pep_508() -> None: dependency = URLDependency( "pytorch", "https://download.pytorch.org/whl/cpu/torch-1.5.1%2Bcpu-cp38-cp38-linux_x86_6...
30.106383
92
0.65583
797d448d90b564676ea3bb75a333ee0cfca1919d
16,173
py
Python
nova/objects/fields.py
rgerganov/nova
57e546699eae500bbc0733e3415a65b486cd88c2
[ "Apache-2.0" ]
1
2021-09-10T15:29:02.000Z
2021-09-10T15:29:02.000Z
nova/objects/fields.py
rgerganov/nova
57e546699eae500bbc0733e3415a65b486cd88c2
[ "Apache-2.0" ]
null
null
null
nova/objects/fields.py
rgerganov/nova
57e546699eae500bbc0733e3415a65b486cd88c2
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 Red Hat, 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 a...
30.117318
79
0.630743
797d4590f3f881651934c3422579efb2fe2e65e5
805
py
Python
manage.py
aditya999123/ace-api
722628d9fea210da8e9a472d4101fa64221d83a0
[ "MIT" ]
null
null
null
manage.py
aditya999123/ace-api
722628d9fea210da8e9a472d4101fa64221d83a0
[ "MIT" ]
null
null
null
manage.py
aditya999123/ace-api
722628d9fea210da8e9a472d4101fa64221d83a0
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ace_api.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure that the ...
35
77
0.642236
797d48a75a860a338a9788865f197efa2ba26e87
8,966
py
Python
python/ray/tune/tests/test_experiment_analysis.py
mch5048/ray_custom
57b6053cdac1fffee9bc766d030a109af7054d01
[ "Apache-2.0" ]
null
null
null
python/ray/tune/tests/test_experiment_analysis.py
mch5048/ray_custom
57b6053cdac1fffee9bc766d030a109af7054d01
[ "Apache-2.0" ]
22
2021-04-24T07:03:31.000Z
2022-03-05T08:06:39.000Z
python/ray/tune/tests/test_experiment_analysis.py
mch5048/ray_custom
57b6053cdac1fffee9bc766d030a109af7054d01
[ "Apache-2.0" ]
null
null
null
import unittest import shutil import tempfile import random import os import pandas as pd from numpy import nan import ray from ray import tune from ray.tune.utils.mock import MyTrainableClass class ExperimentAnalysisSuite(unittest.TestCase): @classmethod def setUpClass(cls): ray.init( nu...
37.514644
79
0.614878
797d49236782035bb67363595e68ce6121f7d3ef
88,531
py
Python
ens/contract_data.py
y19818/web3.py
32a85a287ab63220d1e0c06d77be74de595ff02f
[ "MIT" ]
null
null
null
ens/contract_data.py
y19818/web3.py
32a85a287ab63220d1e0c06d77be74de595ff02f
[ "MIT" ]
null
null
null
ens/contract_data.py
y19818/web3.py
32a85a287ab63220d1e0c06d77be74de595ff02f
[ "MIT" ]
null
null
null
# flake8: noqa import json registrar_abi = json.loads('[{"constant":false,"inputs":[{"name":"_hash","type":"bytes32"}],"name":"releaseDeed","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_hash","type":"bytes32"}],"name":"getAllowedTime","outputs":[...
4,426.55
20,166
0.95213
797d496dfe6881a534384d9697a56d2b4220b018
4,884
py
Python
src/einsteinpy/geodesic/utils.py
epsilonethan/einsteinpy
6b3ab77151b2c23f03c627fce5a54673a66b9254
[ "MIT" ]
485
2019-02-04T09:15:22.000Z
2022-03-19T13:50:17.000Z
src/einsteinpy/geodesic/utils.py
shreyasbapat/einsteinpy
a63f2f9ff7e9010d80d7cbd4a519fd8b523ab865
[ "MIT" ]
570
2019-02-02T10:57:27.000Z
2022-02-26T16:37:05.000Z
src/einsteinpy/geodesic/utils.py
shreyasbapat/einsteinpy
a63f2f9ff7e9010d80d7cbd4a519fd8b523ab865
[ "MIT" ]
250
2019-01-30T14:14:14.000Z
2022-02-28T21:18:18.000Z
""" Utilities for Geodesic Module Unit System: M-Units => :math:`c = G = M = k_e = 1` Metric Signature => :math:`(-, +, +, +)` """ import numpy as np from einsteinpy.utils.dual import DualNumber def _P(g, g_prms, q, p, time_like=True): """ Utility function to compute 4-Momentum of the test particle Pa...
21.803571
86
0.4914
797d4b9198ab1dc773a1d704951f29c5fd42346c
869
py
Python
greengraph/ggraph.py
jscott6/greengraph
bf745e78485f0acc1a95f27c0f391f3aba80f42e
[ "MIT" ]
null
null
null
greengraph/ggraph.py
jscott6/greengraph
bf745e78485f0acc1a95f27c0f391f3aba80f42e
[ "MIT" ]
null
null
null
greengraph/ggraph.py
jscott6/greengraph
bf745e78485f0acc1a95f27c0f391f3aba80f42e
[ "MIT" ]
null
null
null
from .map import Map import numpy as np import geopy from mock import Mock, patch class Greengraph(object): def __init__(self, start, end): self.start=start self.end=end self.geocoder=geopy.geocoders.GoogleV3( domain="maps.google.co.uk") def geolocate(self, place): ...
29.965517
55
0.596087
797d4d57d54924f920a0366d40e910f998a5b315
13,435
py
Python
outputFiles/demo/player2.py
dimtion/jml
dba4db760280cc5ed8c384e36e41d6c7a310fb4f
[ "MIT" ]
1
2015-10-07T19:18:55.000Z
2015-10-07T19:18:55.000Z
outputFiles/demo/player2.py
dimtion/jml
dba4db760280cc5ed8c384e36e41d6c7a310fb4f
[ "MIT" ]
1
2015-10-07T19:28:25.000Z
2015-10-08T19:01:47.000Z
outputFiles/demo/player2.py
dimtion/jml
dba4db760280cc5ed8c384e36e41d6c7a310fb4f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- #################################################################################################################################################################################################################################### ############################################...
77.65896
2,279
0.377745
797d4d9248d0ea42caadf18c2a065c8c9dece5aa
519
py
Python
packages/python/plotly/plotly/validators/contour/colorbar/_showexponent.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/contour/colorbar/_showexponent.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/contour/colorbar/_showexponent.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
import _plotly_utils.basevalidators class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, plotly_name="showexponent", parent_name="contour.colorbar", **kwargs ): super(ShowexponentValidator, self).__init__( plotly_name=plotly_name, ...
34.6
82
0.647399
797d4dbfd15788888108a77f47826998460a2263
189
py
Python
examples/CoinapiDataService/downloadData.py
black0144/vnpy
0d0ea30dad14a0150f7500ff9a62528030321426
[ "MIT" ]
5
2019-01-17T12:14:14.000Z
2021-05-30T10:24:42.000Z
examples/CoinapiDataService/downloadData.py
black0144/vnpy
0d0ea30dad14a0150f7500ff9a62528030321426
[ "MIT" ]
null
null
null
examples/CoinapiDataService/downloadData.py
black0144/vnpy
0d0ea30dad14a0150f7500ff9a62528030321426
[ "MIT" ]
5
2019-03-26T03:17:45.000Z
2019-11-05T08:08:18.000Z
# encoding: UTF-8 """ 立即下载数据到数据库中,用于手动执行更新操作。 """ from dataService import * if __name__ == '__main__': downMinuteBarBySymbol('BINANCE_SPOT_BTC_USDT', '1MIN', '20180725', '20180726')
17.181818
82
0.708995
797d4ee4f4fec6a355f48a825b74a6eb0136cbd2
3,486
py
Python
bindings/python/ensmallen/datasets/string/acetobactertropicalis.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
5
2021-02-17T00:44:45.000Z
2021-08-09T16:41:47.000Z
bindings/python/ensmallen/datasets/string/acetobactertropicalis.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
18
2021-01-07T16:47:39.000Z
2021-08-12T21:51:32.000Z
bindings/python/ensmallen/datasets/string/acetobactertropicalis.py
AnacletoLAB/ensmallen
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
3
2021-01-14T02:20:59.000Z
2021-08-04T19:09:52.000Z
""" This file offers the methods to automatically retrieve the graph Acetobacter tropicalis. The graph is automatically retrieved from the STRING repository. References --------------------- Please cite the following if you use the data: ```bib @article{szklarczyk2019string, title={STRING v11: protein--protein...
33.2
223
0.679002
797d4f777c324f3a4eed6ba56784389330a4a174
14,555
py
Python
test/unitTest/tl_test.py
AgoraV2/devtools-codegen
6cf969f38e39248928483cc3f9562a3c0efa0f03
[ "0BSD" ]
null
null
null
test/unitTest/tl_test.py
AgoraV2/devtools-codegen
6cf969f38e39248928483cc3f9562a3c0efa0f03
[ "0BSD" ]
null
null
null
test/unitTest/tl_test.py
AgoraV2/devtools-codegen
6cf969f38e39248928483cc3f9562a3c0efa0f03
[ "0BSD" ]
null
null
null
# Copyright AllSeen Alliance. All rights reserved. # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR...
36.116625
109
0.590244
797d4ff7220c5672c61eb665194704c3ae545ad0
1,826
py
Python
src/_repobee/ext/defaults/genreviews.py
ShreyaDhananjay/repobee
da501606c351bdbeda3428b245072f1a2d6372b9
[ "MIT" ]
null
null
null
src/_repobee/ext/defaults/genreviews.py
ShreyaDhananjay/repobee
da501606c351bdbeda3428b245072f1a2d6372b9
[ "MIT" ]
null
null
null
src/_repobee/ext/defaults/genreviews.py
ShreyaDhananjay/repobee
da501606c351bdbeda3428b245072f1a2d6372b9
[ "MIT" ]
null
null
null
"""The default implementation of generate_review_allocations. .. module:: genreviews :synopsis: The default implementation of generate_review_allocations .. moduleauthor:: Simon Larsén """ import random import itertools from typing import List import repobee_plug as plug @plug.repobee_hook def generate_review_...
32.035088
75
0.671961
797d50cddf2a7ad3006c952659eab67a8ddb412a
8,674
py
Python
test/test_write_policy.py
cclauss/policy_sentry
98e46f5c785b2845b2971e3c8c484f3e2355d756
[ "MIT" ]
null
null
null
test/test_write_policy.py
cclauss/policy_sentry
98e46f5c785b2845b2971e3c8c484f3e2355d756
[ "MIT" ]
null
null
null
test/test_write_policy.py
cclauss/policy_sentry
98e46f5c785b2845b2971e3c8c484f3e2355d756
[ "MIT" ]
null
null
null
import unittest import json from policy_sentry.command.write_policy import print_policy from policy_sentry.querying.actions import get_dependent_actions from policy_sentry.shared.constants import DATABASE_FILE_PATH from policy_sentry.shared.database import connect_db from policy_sentry.writing.policy import ArnActionGr...
41.304762
113
0.514987
797d50ce676d5bf01566d820ff1a2ba0b92d0ca7
5,054
py
Python
datasets/scientific_papers/scientific_papers.py
tongni1975/nlp
378484960c660244896ed96886bc0ad08eccf90e
[ "Apache-2.0" ]
4
2020-09-09T19:10:52.000Z
2022-03-30T15:31:07.000Z
datasets/scientific_papers/scientific_papers.py
tongni1975/nlp
378484960c660244896ed96886bc0ad08eccf90e
[ "Apache-2.0" ]
null
null
null
datasets/scientific_papers/scientific_papers.py
tongni1975/nlp
378484960c660244896ed96886bc0ad08eccf90e
[ "Apache-2.0" ]
1
2020-12-30T21:24:44.000Z
2020-12-30T21:24:44.000Z
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace NLP 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...
39.795276
138
0.65374
797d5254b64b87c830f2e6cff1010ff583b17d02
1,760
py
Python
test/test_explicit_bool_parameter.py
davegrays/gokart
64999e5441217eafa5f0a6f3d2ee9aea04df740e
[ "MIT" ]
255
2019-01-02T01:31:37.000Z
2022-03-29T13:35:18.000Z
test/test_explicit_bool_parameter.py
davegrays/gokart
64999e5441217eafa5f0a6f3d2ee9aea04df740e
[ "MIT" ]
208
2018-12-25T04:32:24.000Z
2022-03-28T07:28:59.000Z
test/test_explicit_bool_parameter.py
davegrays/gokart
64999e5441217eafa5f0a6f3d2ee9aea04df740e
[ "MIT" ]
48
2019-01-11T06:22:05.000Z
2022-02-11T07:38:42.000Z
import unittest import luigi import luigi.mock from luigi.cmdline_parser import CmdlineParser import gokart def in_parse(cmds, deferred_computation): with CmdlineParser.global_instance(cmds) as cp: deferred_computation(cp.get_task_obj()) class WithDefaultTrue(gokart.TaskOnKart): param = gokart.Exp...
33.207547
100
0.713636
797d52ab47523d258d149d88b3599ab33932e2b4
537
py
Python
src/server/master/master_manager/uid_application_setup/get_admin_media_prefix.py
dpaola2/djangy
4b10e681cb49e5c16aba4429dfbfadfd9b512463
[ "NCSA" ]
15
2015-02-14T02:39:04.000Z
2021-12-13T14:17:15.000Z
src/server/master/master_manager/uid_application_setup/get_admin_media_prefix.py
ojengwa/djangy
4b10e681cb49e5c16aba4429dfbfadfd9b512463
[ "NCSA" ]
null
null
null
src/server/master/master_manager/uid_application_setup/get_admin_media_prefix.py
ojengwa/djangy
4b10e681cb49e5c16aba4429dfbfadfd9b512463
[ "NCSA" ]
11
2015-08-07T11:47:02.000Z
2021-04-29T08:08:24.000Z
#!/usr/bin/env python # # Placeholder -- should import settings.py from the django project and print # out ADMIN_MEDIA_PREFIX. Needs to run as setup_uid and in the application's # virtual environment. # from djangy_server_shared import * def main(): kwargs = check_and_return_keyword_args(sys.argv, ['setup_uid', ...
35.8
121
0.743017
797d52cec58996a0fa2c65742af921aae0482800
2,187
py
Python
alipay/aop/api/domain/BrandInfos.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/domain/BrandInfos.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/domain/BrandInfos.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.constant.ParamConstants import * from alipay.aop.api.domain.SearchBrandBoxInfo import SearchBrandBoxInfo class BrandInfos(object): def __init__(self): self._box_exclusive_info = None self._brand_id = None self....
29.16
87
0.618198
797d54b104a66c4f5c125471379a03675c2960f9
812
py
Python
5.py
flik/python
a5e27ed3c49ef9bc4c7443ad5f0a0272c11dcf5c
[ "MIT" ]
null
null
null
5.py
flik/python
a5e27ed3c49ef9bc4c7443ad5f0a0272c11dcf5c
[ "MIT" ]
null
null
null
5.py
flik/python
a5e27ed3c49ef9bc4c7443ad5f0a0272c11dcf5c
[ "MIT" ]
null
null
null
# To modify the strings, Python’s “re” module provides 3 methods. They are: # split() – uses a regex pattern to “split” a given string into a list. # sub() – locates all substrings where the regex pattern matches and then different string is replaced. # subn() – This method is similar to a sub() and it returns the n...
23.2
110
0.662562
797d5610ff5fe6296cac0aab58e89a27728cf312
977
py
Python
hw_asr/metric/cer_metric.py
qwerty-Bk/dla_hw1
305c71a4bb55c192bd0b6cbdd7dbb11b4731ab22
[ "MIT" ]
null
null
null
hw_asr/metric/cer_metric.py
qwerty-Bk/dla_hw1
305c71a4bb55c192bd0b6cbdd7dbb11b4731ab22
[ "MIT" ]
null
null
null
hw_asr/metric/cer_metric.py
qwerty-Bk/dla_hw1
305c71a4bb55c192bd0b6cbdd7dbb11b4731ab22
[ "MIT" ]
null
null
null
from typing import List import torch from torch import Tensor from hw_asr.base.base_metric import BaseMetric from hw_asr.base.base_text_encoder import BaseTextEncoder from hw_asr.metric.utils import calc_cer class ArgmaxCERMetric(BaseMetric): def __init__(self, text_encoder: BaseTextEncoder, *args, **kwargs): ...
37.576923
93
0.682702
797d56d0431ab3dcc5aee1349143590233d069cc
4,058
py
Python
docs_src/security/tutorial004_py310.py
ddanier/fastapi
440d2d2d1a72867b3f38b5c7359e021cccbfea8b
[ "MIT" ]
13
2022-01-13T10:02:42.000Z
2022-03-23T20:32:14.000Z
docs_src/security/tutorial004_py310.py
numan-hussain/fastapi
672c55ac626b20cc6219696023cdcc5871e5141d
[ "MIT" ]
1
2022-01-07T21:04:04.000Z
2022-01-07T21:04:04.000Z
docs_src/security/tutorial004_py310.py
numan-hussain/fastapi
672c55ac626b20cc6219696023cdcc5871e5141d
[ "MIT" ]
1
2022-01-31T05:13:32.000Z
2022-01-31T05:13:32.000Z
from datetime import datetime, timedelta from fastapi import Depends, FastAPI, HTTPException, status from fastapi.security import OAuth2PasswordBearer, OAuth2PasswordRequestForm from jose import JWTError, jwt from passlib.context import CryptContext from pydantic import BaseModel # to get a string like this run: # op...
29.405797
90
0.716116
797d581ae4ac0013b8594e09868f24551720292b
2,664
py
Python
model/seq2seq2.py
WERimagin/torch_QuestionGeneration
cb23d3c720b043c14e6458227007c61c52784731
[ "MIT" ]
2
2020-01-16T03:26:43.000Z
2020-08-25T09:00:16.000Z
model/seq2seq2.py
WERimagin/QuestionGeneration
25e53ce2e00d77bbcb1cf2fd38e73c9ab723b3a4
[ "MIT" ]
null
null
null
model/seq2seq2.py
WERimagin/QuestionGeneration
25e53ce2e00d77bbcb1cf2fd38e73c9ab723b3a4
[ "MIT" ]
null
null
null
#https://www.pytry3g.com/entry/pytorch-seq2seq import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from func import constants from func.utils import Word2Id,make_tensor,make_vec,make_vec_c,to_var import numpy as np class Encoder(nn.Module): def __init__(self, args): ...
37
128
0.679429
797d58459c26b2606702e2e4b4606639c2711692
2,591
py
Python
firstapp/views.py
MexsonFernandes/classificationModelAnalysis-Django
bddf84546052c58ae0a382257e81b6956a64d53e
[ "Apache-2.0" ]
null
null
null
firstapp/views.py
MexsonFernandes/classificationModelAnalysis-Django
bddf84546052c58ae0a382257e81b6956a64d53e
[ "Apache-2.0" ]
null
null
null
firstapp/views.py
MexsonFernandes/classificationModelAnalysis-Django
bddf84546052c58ae0a382257e81b6956a64d53e
[ "Apache-2.0" ]
2
2018-03-02T09:41:43.000Z
2019-07-10T15:45:02.000Z
from django.shortcuts import render from django.core.files.storage import default_storage from django.core.files.base import ContentFile, File from django.conf import settings from django.core.mail import EmailMessage from django.core.mail import send_mail import os import shutil from django.http import HttpRes...
47.981481
209
0.655731
797d58b96d1b428354f611e23087db6c2d168286
4,095
py
Python
lessons/tests/test_manage_generic_activity.py
keeperaft/personalaltwebsite
b8ad2679c2809c316e8f746ffe1b302460f336be
[ "MIT" ]
null
null
null
lessons/tests/test_manage_generic_activity.py
keeperaft/personalaltwebsite
b8ad2679c2809c316e8f746ffe1b302460f336be
[ "MIT" ]
2
2020-06-05T20:35:57.000Z
2021-06-10T21:24:24.000Z
lessons/tests/test_manage_generic_activity.py
keeperaft/personalaltwebsite
b8ad2679c2809c316e8f746ffe1b302460f336be
[ "MIT" ]
1
2019-04-10T02:03:35.000Z
2019-04-10T02:03:35.000Z
import time, os import selenium from lessons.models import * from paw.constants.tests import * from paw.constants.models import * from lessons.constants import * from datetime import datetime, timedelta from selenium.webdriver.common.keys import Keys from lessons.tests.tests import LessonTestMethods class GenericActiv...
51.835443
204
0.747985
797d59caec07386691cbaf947fb0b01e40749dc2
6,864
py
Python
FastbootFlash.py
longzhenren/Android_Tool_Box
75c8bae1ae034269ffae5c965c3f015ab6e5779d
[ "Apache-2.0" ]
4
2020-09-01T02:23:32.000Z
2020-11-20T10:41:17.000Z
FastbootFlash.py
longzhenren/Android_Tool_Box
75c8bae1ae034269ffae5c965c3f015ab6e5779d
[ "Apache-2.0" ]
null
null
null
FastbootFlash.py
longzhenren/Android_Tool_Box
75c8bae1ae034269ffae5c965c3f015ab6e5779d
[ "Apache-2.0" ]
2
2020-09-01T03:59:47.000Z
2020-09-12T03:49:11.000Z
# coding:utf-8 ''' Target: Python AndroidToolBox Fastboot Flash Module Author: LZR@BUAA Date: 08/26/2020 ''' from Methods import * path = os.getcwd() def fastbootWipe(): cmd("fastboot erase userdata") cmd("fastboot erase cache") def Flashmain(): MobileInfo = getInfo() # os...
39.906977
117
0.408362
797d5b61b017ca54f5297b5e133882856133d209
365
py
Python
bmi.py
Manuferu/pands-problems
31c3c16ef0ef931b12134838104ad35ea2979a0e
[ "MIT" ]
null
null
null
bmi.py
Manuferu/pands-problems
31c3c16ef0ef931b12134838104ad35ea2979a0e
[ "MIT" ]
null
null
null
bmi.py
Manuferu/pands-problems
31c3c16ef0ef931b12134838104ad35ea2979a0e
[ "MIT" ]
null
null
null
# Manuel Fernandez # Script that calculates the Body Mass Index (BMI) # dividing the weight by the hight in metres square # Definition of the variables introduced by the user Weight = float(input("Enter weight (in Kg)")) Height = float(input("Enter Height (in cm)"))*0.01 # BMI formula bmi = Weight/((Height*Height))...
24.333333
52
0.723288
797d5b73b3493ab4972b95151b249ab5b01e9666
26,431
py
Python
tests/models/clip/test_modeling_tf_clip.py
bugface/transformers
ba286fe7d51db12ad663effac83bed8199dd7141
[ "Apache-2.0" ]
8,028
2018-11-05T15:19:44.000Z
2019-07-16T09:14:59.000Z
tests/models/clip/test_modeling_tf_clip.py
bugface/transformers
ba286fe7d51db12ad663effac83bed8199dd7141
[ "Apache-2.0" ]
731
2018-11-05T21:35:52.000Z
2019-07-16T09:51:26.000Z
tests/models/clip/test_modeling_tf_clip.py
bugface/transformers
ba286fe7d51db12ad663effac83bed8199dd7141
[ "Apache-2.0" ]
2,106
2018-11-05T15:29:15.000Z
2019-07-16T08:51:57.000Z
# coding=utf-8 # Copyright 2021 The HuggingFace Inc. team. 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 r...
40.600614
119
0.667928
797d5c3d59725363d246bbf10cca3d2b0ea622db
264
py
Python
venv/lib/python3.6/site-packages/pylint/test/functional/bad_thread_instantiation.py
aitoehigie/britecore_flask
eef1873dbe6b2cc21f770bc6dec783007ae4493b
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/pylint/test/functional/bad_thread_instantiation.py
aitoehigie/britecore_flask
eef1873dbe6b2cc21f770bc6dec783007ae4493b
[ "MIT" ]
1
2021-06-01T23:32:38.000Z
2021-06-01T23:32:38.000Z
venv/lib/python3.6/site-packages/pylint/test/functional/bad_thread_instantiation.py
aitoehigie/britecore_flask
eef1873dbe6b2cc21f770bc6dec783007ae4493b
[ "MIT" ]
null
null
null
# pylint: disable=missing-docstring import threading threading.Thread(lambda: None).run() # [bad-thread-instantiation] threading.Thread(None, lambda: None) threading.Thread(group=None, target=lambda: None).run() threading.Thread() # [bad-thread-instantiation]
29.333333
66
0.768939
797d5e3e06e27e11327e4d8ed92a7732853de85c
1,559
py
Python
analysis/wide/astro/plot.py
iancze/TWA-3-orbit
e852f69b298d315aacc5801dacb42346e3a281c1
[ "MIT" ]
null
null
null
analysis/wide/astro/plot.py
iancze/TWA-3-orbit
e852f69b298d315aacc5801dacb42346e3a281c1
[ "MIT" ]
null
null
null
analysis/wide/astro/plot.py
iancze/TWA-3-orbit
e852f69b298d315aacc5801dacb42346e3a281c1
[ "MIT" ]
null
null
null
import arviz as az import corner import exoplanet as xo import matplotlib.pyplot as plt import pymc3 as pm import os from pathlib import Path import model as m import twa.data as d from twa import wide from twa.constants import * from twa.plot_utils import plot_cline, plot_nodes from twa.plot_utils import efficient_au...
25.557377
81
0.676716
797d5e8f6a1802b11982f0d09766fe89d7a631a8
4,780
py
Python
example/server/settings.py
kurickabides/django-polaris
670004ccc39ff41853f9fd2d253ac063af4ce95a
[ "Apache-2.0" ]
null
null
null
example/server/settings.py
kurickabides/django-polaris
670004ccc39ff41853f9fd2d253ac063af4ce95a
[ "Apache-2.0" ]
null
null
null
example/server/settings.py
kurickabides/django-polaris
670004ccc39ff41853f9fd2d253ac063af4ce95a
[ "Apache-2.0" ]
1
2022-03-25T20:30:15.000Z
2022-03-25T20:30:15.000Z
""" Django settings for reference server. """ import os import environ from django.utils.translation import gettext_lazy as _ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # Load environment variables from .env env = envi...
27.790698
83
0.685565
797d5f2c6d9875fd7ba9f578ad6bb37395c8a7c1
3,203
py
Python
gardenroots/scripts/merge_geoid.py
UA-SRC-data/data_loaders
4a6751358f5771d8702c0152af01fbd81bab9ffb
[ "MIT" ]
1
2020-04-03T17:40:57.000Z
2020-04-03T17:40:57.000Z
gardenroots/scripts/merge_geoid.py
UA-SRC-data/data_loaders
4a6751358f5771d8702c0152af01fbd81bab9ffb
[ "MIT" ]
11
2020-11-12T23:54:52.000Z
2022-01-11T04:42:33.000Z
gardenroots/scripts/merge_geoid.py
UA-SRC-data/data_loaders
4a6751358f5771d8702c0152af01fbd81bab9ffb
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Merge GEOID """ import argparse import csv import os import re import sys from pprint import pprint # -------------------------------------------------- def get_args(): """Get command-line arguments""" parser = argparse.ArgumentParser( description='Merge GEOID', fo...
28.096491
73
0.464877
797d5f7f3c6a924afe93f89a098c74a855eadb99
1,036
py
Python
kubernetes/test/test_v1alpha1_priority_class_list.py
jashandeep-sohi/kubernetes-python
e057f273069de445a2d5a250ac5fe37d79671f3b
[ "Apache-2.0" ]
1
2020-05-08T12:41:04.000Z
2020-05-08T12:41:04.000Z
kubernetes/test/test_v1alpha1_priority_class_list.py
jashandeep-sohi/kubernetes-python
e057f273069de445a2d5a250ac5fe37d79671f3b
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1alpha1_priority_class_list.py
jashandeep-sohi/kubernetes-python
e057f273069de445a2d5a250ac5fe37d79671f3b
[ "Apache-2.0" ]
2
2021-07-09T08:49:05.000Z
2021-08-03T18:08:36.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.10.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys i...
23.022222
105
0.72973
797d604a11bcc7b1d2ffe70cfae0d85bc1a2ca15
5,096
py
Python
malib/algorithm/ppo/loss.py
ReinholdM/play_football_with_human
9ac2f0a8783aede56f4ac1f6074db7daa41b6b6c
[ "MIT" ]
5
2021-11-17T03:11:13.000Z
2021-12-23T09:04:21.000Z
malib/algorithm/ppo/loss.py
ReinholdM/play_football_with_human
9ac2f0a8783aede56f4ac1f6074db7daa41b6b6c
[ "MIT" ]
null
null
null
malib/algorithm/ppo/loss.py
ReinholdM/play_football_with_human
9ac2f0a8783aede56f4ac1f6074db7daa41b6b6c
[ "MIT" ]
null
null
null
import torch from typing import Dict, Tuple, Any from torch.distributions.categorical import Categorical from malib.algorithm.common.loss_func import LossFunc from malib.backend.datapool.offline_dataset_server import Episode from malib.utils.typing import TrainingMetric def cal_entropy(logits): max_value, _ = ...
35.636364
108
0.574961
797d607630b5f1b71e976f8698a8e8ddf43d8c19
4,118
py
Python
baseline/LR/LR_emoji_baseline.py
HLTCHKUST/emotion-dialogue
0d58b339134dd9a2f386948ae474b270a77370f9
[ "MIT" ]
40
2019-04-29T09:17:48.000Z
2021-11-19T06:32:02.000Z
baseline/LR/LR_emoji_baseline.py
HLTCHKUST/emotion-dialogue
0d58b339134dd9a2f386948ae474b270a77370f9
[ "MIT" ]
null
null
null
baseline/LR/LR_emoji_baseline.py
HLTCHKUST/emotion-dialogue
0d58b339134dd9a2f386948ae474b270a77370f9
[ "MIT" ]
4
2019-09-01T10:00:56.000Z
2020-03-08T16:00:22.000Z
from utils.data_reader import prepare_data_for_feature, generate_vocab, read_data from utils.utils import getMetrics from utils.features import get_feature from utils import constant from baseline.baseline_classifier import get_classifier import numpy as np import argparse import math import csv import os ''' Try pyt...
36.442478
162
0.616804
797d61121a59deb7519a9f74639c860c14596bff
14,761
py
Python
cscs-checks/tools/profiling_and_debugging/intel_advisor_roofline.py
smoors/reframe
5163a4a77c8b440b725e18ffbf19f19445d01f9e
[ "BSD-3-Clause" ]
1
2018-08-02T07:34:10.000Z
2018-08-02T07:34:10.000Z
cscs-checks/tools/profiling_and_debugging/intel_advisor_roofline.py
smoors/reframe
5163a4a77c8b440b725e18ffbf19f19445d01f9e
[ "BSD-3-Clause" ]
null
null
null
cscs-checks/tools/profiling_and_debugging/intel_advisor_roofline.py
smoors/reframe
5163a4a77c8b440b725e18ffbf19f19445d01f9e
[ "BSD-3-Clause" ]
null
null
null
import os import reframe as rfm import reframe.utility.sanity as sn @rfm.parameterized_test(*[[repeat, toolversion, datalayout] for repeat in ['100000'] for toolversion in ['597843'] for datalayout in ['G3_AOS_SCALAR', 'G3_SOA_SCALAR', ...
53.288809
79
0.533839
797d611549aac0282cd2e10110bfd26ebcb50b33
22,550
py
Python
vilya/libs/gyt.py
ochukai/code
4865a7e5ee6b42f26fd29c350a2e50d7636a6462
[ "BSD-3-Clause" ]
null
null
null
vilya/libs/gyt.py
ochukai/code
4865a7e5ee6b42f26fd29c350a2e50d7636a6462
[ "BSD-3-Clause" ]
null
null
null
vilya/libs/gyt.py
ochukai/code
4865a7e5ee6b42f26fd29c350a2e50d7636a6462
[ "BSD-3-Clause" ]
null
null
null
# coding=utf-8 import os import shlex import re import subprocess import logging import collections from os.path import splitext from pygit2 import ( GIT_OBJ_COMMIT, GIT_OBJ_TREE, GIT_OBJ_BLOB, GIT_OBJ_TAG, GIT_SORT_TIME, GIT_DIFF_IGNORE_WHITESPACE ) from vilya.libs.git2 import Git2 from vilya.libs.genera...
33.506686
124
0.551929
797d6147bc5b73b0dfff2847f90d3663a22ee81a
20,969
py
Python
QUANTAXIS/QAARP/QARisk.py
wangyuefengGH/QUANTAXIS
2e198b621680c5f3a609f9c202bd4ae583621d31
[ "MIT" ]
1
2018-07-05T01:51:08.000Z
2018-07-05T01:51:08.000Z
QUANTAXIS/QAARP/QARisk.py
Alvin917/QUANTAXIS
4f988776a4b08ac2bbd46c0cbef31a3112771920
[ "MIT" ]
null
null
null
QUANTAXIS/QAARP/QARisk.py
Alvin917/QUANTAXIS
4f988776a4b08ac2bbd46c0cbef31a3112771920
[ "MIT" ]
null
null
null
# coding:utf-8 # # The MIT License (MIT) # # Copyright (c) 2016-2018 yutiansut/QUANTAXIS # # 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 th...
30.567055
151
0.572893
797d62d7ffea483b8a027e05a4b3138f2446a874
464
py
Python
snr/std_mods/io/.controller/controller_factory.py
sfshaw/SNR
593b7b78a91e23e0fcb03985b72f29a66101579c
[ "MIT" ]
1
2021-03-09T21:54:56.000Z
2021-03-09T21:54:56.000Z
snr/std_mods/io/.controller/controller_factory.py
sfshaw-calpoly/SNR
593b7b78a91e23e0fcb03985b72f29a66101579c
[ "MIT" ]
null
null
null
snr/std_mods/io/.controller/controller_factory.py
sfshaw-calpoly/SNR
593b7b78a91e23e0fcb03985b72f29a66101579c
[ "MIT" ]
1
2021-12-04T19:51:18.000Z
2021-12-04T19:51:18.000Z
# from snr.core import * # from snr.prelude import * # from . import controller # class ControllerFactory(LoopFactory): # def __init__(self, output_data_name: str): # super().__init__() # self.output_data_name = output_data_name # def get(self, parent: AbstractNode) -> ThreadLoop: # ...
29
61
0.575431
797d639e3dbd949307d27246d75f661adbc75f92
3,561
py
Python
ERDDAP/ERDDAP_Brad.py
petercunning/notebook
5b26f2dc96bcb36434542b397de6ca5fa3b61a0a
[ "MIT" ]
32
2015-01-07T01:48:05.000Z
2022-03-02T07:07:42.000Z
ERDDAP/ERDDAP_Brad.py
petercunning/notebook
5b26f2dc96bcb36434542b397de6ca5fa3b61a0a
[ "MIT" ]
1
2015-04-13T21:00:18.000Z
2015-04-13T21:00:18.000Z
ERDDAP/ERDDAP_Brad.py
petercunning/notebook
5b26f2dc96bcb36434542b397de6ca5fa3b61a0a
[ "MIT" ]
30
2015-01-28T09:31:29.000Z
2022-03-07T03:08:28.000Z
# coding: utf-8 # #Read realtime data from NERACOOS ERDDAP # Exploring use of Python to formulate [NERACOOS ERDDAP](http://www.neracoos.org/erddap) data requests and process the responses. # ##Initialize # In[1]: import pandas as pd import urllib2 import numpy as np import seawater as sw import matplotlib.pyplot...
25.618705
190
0.692221
797d648ddb7271ec57556dfa83b57a5c5c531166
13,567
py
Python
dndtools/dnd/spells/views.py
dndtools/dndtools
aeafebb78f35249c9b2a941dac9a9541c6e7b190
[ "MIT" ]
55
2015-01-05T12:47:14.000Z
2021-12-19T21:46:35.000Z
dndtools/dnd/spells/views.py
dndtools/dndtools
aeafebb78f35249c9b2a941dac9a9541c6e7b190
[ "MIT" ]
18
2015-01-04T12:11:01.000Z
2018-04-05T04:17:06.000Z
dndtools/dnd/spells/views.py
dndtools/dndtools
aeafebb78f35249c9b2a941dac9a9541c6e7b190
[ "MIT" ]
34
2015-01-04T11:39:47.000Z
2020-03-14T00:17:49.000Z
# Create your views here. from datetime import datetime from django.http import HttpResponseForbidden from django.shortcuts import get_object_or_404, render_to_response from django.template.context import RequestContext from dnd.menu import MenuItem from dnd.menu import menu_item, submenu_item from dnd.dnd_paginator im...
43.345048
114
0.586497
797d662940869fae4a37d169c92f6271d915ca4c
2,241
py
Python
flatpack_pieces.py
spgill/flatpack
9a108efd64c1c7f84333e4468fe7b4745c0d96bf
[ "MIT" ]
null
null
null
flatpack_pieces.py
spgill/flatpack
9a108efd64c1c7f84333e4468fe7b4745c0d96bf
[ "MIT" ]
null
null
null
flatpack_pieces.py
spgill/flatpack
9a108efd64c1c7f84333e4468fe7b4745c0d96bf
[ "MIT" ]
null
null
null
import tkinter import tkinter.ttk import yaml import flatpack import scrolled import storage def piece_tk(registry, parent, element, kwargs): title = kwargs.pop('title', 'tk') icon = kwargs.pop('iconphoto', None) resize = kwargs.pop('resizable', None) root = tkinter.Tk(**kwargs) root.update() ...
24.358696
72
0.689871
797d6687b0149a30ba1bbc13d046d26a7d8e97e3
2,057
py
Python
app.py
Javert899/VisualComparison2EventLogs
a7bda790922928010a7cd8d1691c92a098ffd11d
[ "Apache-2.0" ]
null
null
null
app.py
Javert899/VisualComparison2EventLogs
a7bda790922928010a7cd8d1691c92a098ffd11d
[ "Apache-2.0" ]
null
null
null
app.py
Javert899/VisualComparison2EventLogs
a7bda790922928010a7cd8d1691c92a098ffd11d
[ "Apache-2.0" ]
null
null
null
from flask import Flask, render_template, request, make_response, jsonify, redirect, url_for import base64, os from tempfile import NamedTemporaryFile import uuid from copy import copy from EMDMeasurment.ComparisonMethods import produce_visualizations_from_event_logs_paths from flask_cors import CORS import json import...
25.7125
102
0.697618
797d6756bc85d30dbff3a8da63b26b0acacea742
6,548
py
Python
mac-platform-tools/systrace/catapult/systrace/systrace/util.py
NBPS-Robotics/FTC-Code-Team-9987---2022
180538f3ebd234635fa88f96ae7cf7441df6a246
[ "MIT" ]
2
2022-01-14T23:19:48.000Z
2022-02-08T23:40:26.000Z
mac-platform-tools/systrace/catapult/systrace/systrace/util.py
NBPS-Robotics/FTC-Code-Team-9987---2022
180538f3ebd234635fa88f96ae7cf7441df6a246
[ "MIT" ]
7
2020-07-19T11:24:45.000Z
2022-03-02T07:11:57.000Z
mac-platform-tools/systrace/catapult/systrace/systrace/util.py
NBPS-Robotics/FTC-Code-Team-9987---2022
180538f3ebd234635fa88f96ae7cf7441df6a246
[ "MIT" ]
1
2022-03-04T01:03:53.000Z
2022-03-04T01:03:53.000Z
# Copyright 2015 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. import optparse import os import sys from devil.android.constants import chrome from devil.android import device_utils, device_errors class OptionParserIgn...
37.849711
80
0.667532
797d67d29c32feeaa9a6034527ab9fb24167cade
8,431
py
Python
two_factor/views/utils.py
peperzaken/django-two-factor-auth
56c0b4e4eabc0c4cc8765fc1b8f46e89baeca455
[ "MIT" ]
null
null
null
two_factor/views/utils.py
peperzaken/django-two-factor-auth
56c0b4e4eabc0c4cc8765fc1b8f46e89baeca455
[ "MIT" ]
1
2019-04-04T11:19:13.000Z
2019-04-04T11:19:13.000Z
two_factor/views/utils.py
peperzaken/django-two-factor-auth
56c0b4e4eabc0c4cc8765fc1b8f46e89baeca455
[ "MIT" ]
null
null
null
import logging from django.core.exceptions import ValidationError from django.utils.decorators import method_decorator from django.utils.translation import ugettext as _ try: from formtools.wizard.forms import ManagementForm from formtools.wizard.views import SessionWizardView from formtools.wizard.storag...
40.927184
79
0.647254
797d67f344226b3d9d4fe8eabfe96313b0d25ffb
788
py
Python
Results/sensitivity/param_dim_5/gen_samples_param_dim_5.py
prashjha/BayesForSEIRD
b2faa46f73bbca1bbce8705f4a9b91a223ec6d12
[ "MIT" ]
1
2021-12-10T16:21:30.000Z
2021-12-10T16:21:30.000Z
Results/sensitivity/param_dim_5/gen_samples_param_dim_5.py
prashjha/BayesForSEIRD
b2faa46f73bbca1bbce8705f4a9b91a223ec6d12
[ "MIT" ]
null
null
null
Results/sensitivity/param_dim_5/gen_samples_param_dim_5.py
prashjha/BayesForSEIRD
b2faa46f73bbca1bbce8705f4a9b91a223ec6d12
[ "MIT" ]
1
2021-03-11T06:26:47.000Z
2021-03-11T06:26:47.000Z
import sys from SALib.analyze import morris from SALib.analyze import delta from SALib.sample.morris import sample import matplotlib.pyplot as plt import numpy as np # import forward model # from model import model # define parameters and range PARAM_DIM = 5 problem = { 'num_vars': PARAM_DIM, 'names': ['A', 'beta...
24.625
72
0.633249
797d68323fea9d97639414fadece0b5371db31de
882
py
Python
zenmoney/company.py
pendyurinandrey/python-zenmoney
931a8ecba2cf72ae336d8ad886fc82be55782c42
[ "MIT" ]
13
2019-06-05T11:23:09.000Z
2022-01-21T09:30:38.000Z
zenmoney/company.py
pendyurinandrey/python-zenmoney
931a8ecba2cf72ae336d8ad886fc82be55782c42
[ "MIT" ]
3
2019-08-02T20:41:07.000Z
2020-11-26T21:10:07.000Z
zenmoney/company.py
pendyurinandrey/python-zenmoney
931a8ecba2cf72ae336d8ad886fc82be55782c42
[ "MIT" ]
9
2019-06-05T11:44:49.000Z
2021-11-08T19:15:43.000Z
#!/usr/bin/env python from . import ZenObject, timestamp class Company(ZenObject): ''' Zenmoney bank or another company, see https://github.com/zenmoney/ZenPlugins/wiki/ZenMoney-API#company ''' def __init__(self, *, id: int, changed: i...
27.5625
68
0.485261
797d695949bda66a0146f5ec6eb6ae8404e6d0b4
865
py
Python
research/original/specific_regular.py
thautwarm/BioInfoPlus
b3f404d3f13cfccf4694cfba586ac7efcbf5bf29
[ "Apache-2.0" ]
null
null
null
research/original/specific_regular.py
thautwarm/BioInfoPlus
b3f404d3f13cfccf4694cfba586ac7efcbf5bf29
[ "Apache-2.0" ]
1
2017-10-31T15:27:03.000Z
2018-02-08T18:38:38.000Z
research/original/specific_regular.py
thautwarm/BioInfoPlus
b3f404d3f13cfccf4694cfba586ac7efcbf5bf29
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Oct 31 17:36:38 2017 @author: misaka-wa """ import numpy as np from collections import defaultdict from typing import Dict, Union, Any def specific_report(numpy_arr:np.ndarray, specific:Union[np.ndarray, Dict[int, Any]]): """ numpy_arr : 2D np.array specific ...
24.714286
86
0.601156
797d6aedf7e7fc604610b3b9eae42d35828a3742
80
py
Python
Apps/polls/Tasks/urls.py
shadowofgost/WebEngineering
693af827e3458806cdace959262cf393d29f6504
[ "Apache-2.0" ]
1
2021-04-05T05:40:17.000Z
2021-04-05T05:40:17.000Z
Apps/polls/Tasks/urls.py
shadowofgost/WebEngineering
693af827e3458806cdace959262cf393d29f6504
[ "Apache-2.0" ]
null
null
null
Apps/polls/Tasks/urls.py
shadowofgost/WebEngineering
693af827e3458806cdace959262cf393d29f6504
[ "Apache-2.0" ]
null
null
null
from .Test import add from .QuitWarning import warning from .Email import email
20
32
0.8125
797d6b7caaeed7aced5ec331cb0282f72fb7b351
182
py
Python
crispy/game/utils.py
thegreathippo/crispy
e648a25ff8ec24a3fac3931ba28660b8e22f3020
[ "MIT" ]
null
null
null
crispy/game/utils.py
thegreathippo/crispy
e648a25ff8ec24a3fac3931ba28660b8e22f3020
[ "MIT" ]
null
null
null
crispy/game/utils.py
thegreathippo/crispy
e648a25ff8ec24a3fac3931ba28660b8e22f3020
[ "MIT" ]
null
null
null
import collections __all__ = ["Point3", "Sprite3"] Point3 = collections.namedtuple("Point3", ["x", "y", "z"]) Sprite3 = collections.namedtuple("Sprite3", ["x", "y", "z", "image"])
26
69
0.637363
797d6da18d9ee6e4e226eb39ec9be670c5c92a63
46
py
Python
indra_network_search/autocomplete/__init__.py
kkaris/indra_network_service
4209f1c3ea010fd543bb2fc73905e9146e9a78fe
[ "BSD-2-Clause" ]
null
null
null
indra_network_search/autocomplete/__init__.py
kkaris/indra_network_service
4209f1c3ea010fd543bb2fc73905e9146e9a78fe
[ "BSD-2-Clause" ]
13
2021-08-17T13:43:54.000Z
2022-03-06T02:05:26.000Z
indra_network_search/autocomplete/__init__.py
kkaris/indra_network_service
4209f1c3ea010fd543bb2fc73905e9146e9a78fe
[ "BSD-2-Clause" ]
null
null
null
from .autocomplete import NodesTrie, Prefixes
23
45
0.847826
797d6e60a3719714f1c9204ff06a0cb05f42adfe
38,498
py
Python
openmmforcefields/tests/test_template_generators.py
mattwthompson/openmmforcefields
ddea4f61d508f0cc06ad09dd29d0943721890038
[ "MIT" ]
84
2020-02-17T17:29:39.000Z
2022-03-23T04:53:43.000Z
openmmforcefields/tests/test_template_generators.py
BigBigWu/openmmforcefields
ddea4f61d508f0cc06ad09dd29d0943721890038
[ "MIT" ]
78
2020-02-03T06:04:36.000Z
2022-03-08T22:02:20.000Z
openmmforcefields/tests/test_template_generators.py
BigBigWu/openmmforcefields
ddea4f61d508f0cc06ad09dd29d0943721890038
[ "MIT" ]
31
2020-02-09T20:26:20.000Z
2022-02-17T11:53:03.000Z
import os, sys import unittest import tempfile from openmmforcefields.utils import get_data_filename from openmmforcefields.generators import GAFFTemplateGenerator from openmmforcefields.generators import SMIRNOFFTemplateGenerator import logging _logger = logging.getLogger("openmmforcefields.tests.test_template_gene...
48.979644
195
0.650891