hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
55820c4e9bc3610f9e11e13031b4f14985df3508
7,955
py
Python
pysnmp/ITOUCH-EVENT-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/ITOUCH-EVENT-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/ITOUCH-EVENT-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module ITOUCH-EVENT-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ITOUCH-EVENT-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:46:50 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar ...
139.561404
1,032
0.726838
6983708261accaee0fb9b705386f68b97acf8514
498
py
Python
veripy/steps/navigation/actions/press_keyboard_key.py
m-martinez/veripy
993bb498e4cdac44d76284a624d306aaf2e2215a
[ "MIT" ]
null
null
null
veripy/steps/navigation/actions/press_keyboard_key.py
m-martinez/veripy
993bb498e4cdac44d76284a624d306aaf2e2215a
[ "MIT" ]
null
null
null
veripy/steps/navigation/actions/press_keyboard_key.py
m-martinez/veripy
993bb498e4cdac44d76284a624d306aaf2e2215a
[ "MIT" ]
null
null
null
import logging from behave import when from veripy import custom_types # noqa logger = logging.getLogger('navigation') @when('the user presses the "{keyboard_key:pressable_key_type}" key') def when_press_key(context, keyboard_key): """ Press the given key. :: the user presses the "Return" key "...
27.666667
72
0.73494
2e8caab4be5101bd2972a7e99016ae576c48bc9f
161
py
Python
tests/web_platform/css_flexbox_1/test_flex_wrap_wrap_reverse.py
fletchgraham/colosseum
77be4896ee52b8f5956a3d77b5f2ccd2c8608e8f
[ "BSD-3-Clause" ]
null
null
null
tests/web_platform/css_flexbox_1/test_flex_wrap_wrap_reverse.py
fletchgraham/colosseum
77be4896ee52b8f5956a3d77b5f2ccd2c8608e8f
[ "BSD-3-Clause" ]
null
null
null
tests/web_platform/css_flexbox_1/test_flex_wrap_wrap_reverse.py
fletchgraham/colosseum
77be4896ee52b8f5956a3d77b5f2ccd2c8608e8f
[ "BSD-3-Clause" ]
1
2020-01-16T01:56:41.000Z
2020-01-16T01:56:41.000Z
from tests.utils import W3CTestCase class TestFlexWrap_WrapReverse(W3CTestCase): vars().update(W3CTestCase.find_tests(__file__, 'flex-wrap_wrap-reverse'))
26.833333
77
0.807453
5951a2cf6d809b252bd569740997fd02371afe68
3,448
py
Python
sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/odata_resource_dataset_py3.py
tzhanl/azure-sdk-for-python
18cd03f4ab8fd76cc0498f03e80fbc99f217c96e
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/odata_resource_dataset_py3.py
tzhanl/azure-sdk-for-python
18cd03f4ab8fd76cc0498f03e80fbc99f217c96e
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/odata_resource_dataset_py3.py
tzhanl/azure-sdk-for-python
18cd03f4ab8fd76cc0498f03e80fbc99f217c96e
[ "MIT" ]
1
2019-06-17T22:18:23.000Z
2019-06-17T22:18:23.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
47.232877
270
0.666763
b08cff79c754d41293c8f65359b099619996a4b6
2,161
py
Python
pygazebo/msg/sonar_stamped_pb2.py
WindhoverLabs/pygazebo
9c977703be5c04fe931e7ec522fb7aa1e6bbe05e
[ "Apache-2.0" ]
null
null
null
pygazebo/msg/sonar_stamped_pb2.py
WindhoverLabs/pygazebo
9c977703be5c04fe931e7ec522fb7aa1e6bbe05e
[ "Apache-2.0" ]
null
null
null
pygazebo/msg/sonar_stamped_pb2.py
WindhoverLabs/pygazebo
9c977703be5c04fe931e7ec522fb7aa1e6bbe05e
[ "Apache-2.0" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: sonar_stamped.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import descriptor_pb2 # @@protoc_insertion_point(impo...
31.318841
240
0.763998
1078f89303a730ec37e746c907e1a30f1cb3b056
5,871
py
Python
test/test_GetUrls.py
AngusLean/wechat_articles_spider
ff268beb8dbe774fb1ed87e425668f02f93a6c08
[ "Apache-2.0" ]
null
null
null
test/test_GetUrls.py
AngusLean/wechat_articles_spider
ff268beb8dbe774fb1ed87e425668f02f93a6c08
[ "Apache-2.0" ]
null
null
null
test/test_GetUrls.py
AngusLean/wechat_articles_spider
ff268beb8dbe774fb1ed87e425668f02f93a6c08
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import html import os import random import re import time from pprint import pprint import json # import pandas as pd # 如果需要保存至excel表格的话 import requests from wechatarticles import ArticlesInfo, ArticlesUrls from wechatarticles.GetUrls import MobileUrls, PCUrls from wechatarticles.ReadOutfile import Re...
25.415584
77
0.580991
2f6f904b8e2ee080fff64045638f65ca568a166c
219
py
Python
setup.py
ashili/StatCalculator
a221d6c8cd7cd0b324158b15f6cb23e58bf594a3
[ "MIT" ]
1
2020-07-09T04:05:45.000Z
2020-07-09T04:05:45.000Z
setup.py
ashili/StatCalculator
a221d6c8cd7cd0b324158b15f6cb23e58bf594a3
[ "MIT" ]
null
null
null
setup.py
ashili/StatCalculator
a221d6c8cd7cd0b324158b15f6cb23e58bf594a3
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup(name='Calculator', version='0.0.1', description='Calculator', author='', author_email='', url='', packages=find_packages(), )
19.909091
43
0.593607
361687572c2d14058ae481e92acba205f0096066
5,265
py
Python
rnn/external_rnn.py
fberanizo/neural_network
aa48707ea3de80bcf83176b0c3379f935ab01843
[ "BSD-2-Clause" ]
null
null
null
rnn/external_rnn.py
fberanizo/neural_network
aa48707ea3de80bcf83176b0c3379f935ab01843
[ "BSD-2-Clause" ]
null
null
null
rnn/external_rnn.py
fberanizo/neural_network
aa48707ea3de80bcf83176b0c3379f935ab01843
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import numpy, matplotlib.pyplot as plt, time from sklearn.metrics import mean_squared_error, accuracy_score, roc_auc_score class ExternalRNN(object): """Class that implements a External Recurent Neural Network""" def __init__(self, hidden_layer_size=3, learning_rate=0.2, max_epochs=100...
37.077465
97
0.588224
c0d4cc01a91baf18dd02165da251d155093e1bb3
4,254
py
Python
var/spack/repos/builtin/packages/slurm/package.py
asmaahassan90/spack
b6779d2e31170eb77761f59bed640afbc469e4ec
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2020-05-24T15:23:12.000Z
2020-05-24T15:23:12.000Z
var/spack/repos/builtin/packages/slurm/package.py
danlipsa/spack
699ae50ebf13ee425a482988ccbd4c3c994ab5e6
[ "ECL-2.0", "Apache-2.0", "MIT" ]
6
2022-02-26T11:44:34.000Z
2022-03-12T12:14:50.000Z
var/spack/repos/builtin/packages/slurm/package.py
danlipsa/spack
699ae50ebf13ee425a482988ccbd4c3c994ab5e6
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2021-01-06T18:58:26.000Z
2021-01-06T18:58:26.000Z
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Slurm(AutotoolsPackage): """Slurm is an open source, fault-tolerant, and highly scalable ...
38.324324
99
0.657969
6ca2b8b4791bad1b3561c34f8ab1cf0c38e25794
1,433
py
Python
web/feeds.py
nonomal/oh-my-rss
68b9284e0acaf44ea389d675b71949177f9f3256
[ "MIT" ]
270
2019-09-05T05:51:19.000Z
2022-03-12T18:26:13.000Z
web/feeds.py
nonomal/oh-my-rss
68b9284e0acaf44ea389d675b71949177f9f3256
[ "MIT" ]
6
2019-09-06T03:52:47.000Z
2021-04-10T06:21:14.000Z
web/feeds.py
nonomal/oh-my-rss
68b9284e0acaf44ea389d675b71949177f9f3256
[ "MIT" ]
37
2019-09-06T05:13:24.000Z
2022-01-21T08:05:33.000Z
from django.contrib.syndication.views import Feed from django.urls import reverse from .models import Site, Article from web.utils import get_content class SiteFeed(Feed): ttl = 12 * 3600 def get_object(self, request, site_id): try: return Site.objects.get(pk=site_id, status='active', cr...
25.140351
98
0.638521
22f80d0abbb0e0dc917ecc3ac2984c412730869b
1,259
py
Python
p2.py
iagooteroc/spark
1d6f34a076ef949697b385d5c9f68368c41f8562
[ "MIT" ]
null
null
null
p2.py
iagooteroc/spark
1d6f34a076ef949697b385d5c9f68368c41f8562
[ "MIT" ]
null
null
null
p2.py
iagooteroc/spark
1d6f34a076ef949697b385d5c9f68368c41f8562
[ "MIT" ]
null
null
null
#!/usr/bin/python3 from pyspark import SparkContext, SparkConf import fitting_alignment n_proc = "local[8]" conf = SparkConf().setAppName("p2").setMaster(n_proc) sc = SparkContext(conf=conf) sc.setLogLevel("INFO") working_dir = '' dataset_dir = working_dir + 'dataset.txt' cadena_dir = working_dir + 'cadena.txt' # Le...
33.131579
93
0.633042
dafa9890288f8cda740b6257924d5bd50e0377b5
447
py
Python
openshift/e2e-add-service-account.py
bbrowning/tektoncd-catalog
f5d5e85b0c24b76356b35f21e8f6d4fdc70b05c8
[ "Apache-2.0" ]
null
null
null
openshift/e2e-add-service-account.py
bbrowning/tektoncd-catalog
f5d5e85b0c24b76356b35f21e8f6d4fdc70b05c8
[ "Apache-2.0" ]
null
null
null
openshift/e2e-add-service-account.py
bbrowning/tektoncd-catalog
f5d5e85b0c24b76356b35f21e8f6d4fdc70b05c8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # This will add a serviceAccount to a TaskRun/PipelineRun with pyyaml via # STDIN/STDOUT eg: # # python openshift/e2e-add-service-account-tr.py \ # SERVICE_ACCOUNT < run.yaml > newfile.yaml # import yaml import sys data = list(yaml.load_all(sys.stdin)) for x in data: if x['kind'] in ('Pipeli...
29.8
73
0.713647
55428178b4d9d8f2e18c1c477d8829eb3498aeee
10,199
py
Python
sdk/python/pulumi_google_native/networkmanagement/v1beta1/get_connectivity_test.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
44
2021-04-18T23:00:48.000Z
2022-02-14T17:43:15.000Z
sdk/python/pulumi_google_native/networkmanagement/v1beta1/get_connectivity_test.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
354
2021-04-16T16:48:39.000Z
2022-03-31T17:16:39.000Z
sdk/python/pulumi_google_native/networkmanagement/v1beta1/get_connectivity_test.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
8
2021-04-24T17:46:51.000Z
2022-01-05T10:40:21.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! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
47.658879
958
0.689774
c4066854fa767de41c78c9973267e208c5d738f4
11,419
py
Python
tests/test_authorizer.py
dotlambda/prawcore
ec23b29186fd4cbfffa7a156620518dbee845472
[ "BSD-2-Clause" ]
null
null
null
tests/test_authorizer.py
dotlambda/prawcore
ec23b29186fd4cbfffa7a156620518dbee845472
[ "BSD-2-Clause" ]
null
null
null
tests/test_authorizer.py
dotlambda/prawcore
ec23b29186fd4cbfffa7a156620518dbee845472
[ "BSD-2-Clause" ]
null
null
null
"""Test for prawcore.auth.Authorizer classes.""" import prawcore import unittest from .config import (CLIENT_ID, CLIENT_SECRET, PASSWORD, PERMANENT_GRANT_CODE, REDIRECT_URI, REFRESH_TOKEN, REQUESTOR, TEMPORARY_GRANT_CODE, USERNAME) from betamax import Betamax class Authorizer...
44.25969
79
0.704965
e060d555282354addbf990eda86a5f6b91f1566f
65
py
Python
snmpsim_data/__init__.py
timlegge/snmpsim-data
b6f14d2922e8ff72ed54564ec7a6db3178ed6932
[ "BSD-2-Clause" ]
30
2020-09-03T06:02:38.000Z
2022-03-11T16:34:18.000Z
nesi/__init__.py
Tubbz-alt/NESi
0db169dd6378fbd097380280cc41440e652de19e
[ "BSD-2-Clause" ]
27
2019-03-14T21:50:56.000Z
2019-07-09T13:38:29.000Z
nesi/__init__.py
Tubbz-alt/NESi
0db169dd6378fbd097380280cc41440e652de19e
[ "BSD-2-Clause" ]
3
2020-10-08T23:41:29.000Z
2021-02-09T17:28:28.000Z
# http://www.python.org/dev/peps/pep-0396/ __version__ = '0.0.1'
21.666667
42
0.676923
577fb12e186ec0ad325e24f891df8106b79f9b98
3,363
py
Python
azurelinuxagent/common/future.py
ezeeyahoo/WALinuxAgent
7bb93ee0d75b91c6e9bc6d69003b4fdce9697ec2
[ "Apache-2.0" ]
null
null
null
azurelinuxagent/common/future.py
ezeeyahoo/WALinuxAgent
7bb93ee0d75b91c6e9bc6d69003b4fdce9697ec2
[ "Apache-2.0" ]
null
null
null
azurelinuxagent/common/future.py
ezeeyahoo/WALinuxAgent
7bb93ee0d75b91c6e9bc6d69003b4fdce9697ec2
[ "Apache-2.0" ]
1
2020-08-18T20:15:17.000Z
2020-08-18T20:15:17.000Z
import platform import sys import os import re # Note broken dependency handling to avoid potential backward # compatibility issues on different distributions try: import distro except Exception: pass """ Add alias for python2 and python3 libs and functions. """ if sys.version_info[0] == 3: import http.c...
31.726415
100
0.666072
c5a804d3e4faebb0ba1600b2bee79aa7f60d263b
5,034
py
Python
Voting/views.py
MihaiBorsu/EVS2
33c8ebec6e9795c4da31e646622afdee4768fb23
[ "MIT" ]
null
null
null
Voting/views.py
MihaiBorsu/EVS2
33c8ebec6e9795c4da31e646622afdee4768fb23
[ "MIT" ]
3
2020-02-12T03:23:55.000Z
2021-06-10T22:24:31.000Z
Voting/views.py
MihaiBorsu/EVS2
33c8ebec6e9795c4da31e646622afdee4768fb23
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.http import HttpResponse, HttpResponseRedirect from django.shortcuts import get_object_or_404,render, redirect, reverse from django.urls import reverse from django.views import generic from django.utils import timezone from django.forms.models...
31.074074
98
0.684545
ca5eb4e17ce93c3359b6f1513760a6f51e938f77
34,409
py
Python
snntoolbox/parsing/utils.py
qian-liu/snn_toolbox
9693647f9b2421a4f1ab789a97cc19fd17781e87
[ "MIT" ]
null
null
null
snntoolbox/parsing/utils.py
qian-liu/snn_toolbox
9693647f9b2421a4f1ab789a97cc19fd17781e87
[ "MIT" ]
null
null
null
snntoolbox/parsing/utils.py
qian-liu/snn_toolbox
9693647f9b2421a4f1ab789a97cc19fd17781e87
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Functions common to input model parsers. The core of this module is an abstract base class extracts an input model written in some neural network library and prepares it for further processing in the SNN toolbox. .. autosummary:: :nosignatures: AbstractModelParser The idea is to m...
28.866611
153
0.580342
f1ce280c74657622e221a4ffaa05f48a90510c0c
2,354
py
Python
koans/about_asserts.py
slcushing/python_koans
70e4301ac4cec1293bc1eb36032d018ec1eed0f9
[ "MIT" ]
null
null
null
koans/about_asserts.py
slcushing/python_koans
70e4301ac4cec1293bc1eb36032d018ec1eed0f9
[ "MIT" ]
null
null
null
koans/about_asserts.py
slcushing/python_koans
70e4301ac4cec1293bc1eb36032d018ec1eed0f9
[ "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.797468
83
0.608751
0e3b6d70547ff6e172275def3d0e9c5cac4b24fd
668
py
Python
schemas.py
strcho/sayhello
b9ad082cc5e3fccbe95190079944d094493207a8
[ "MIT" ]
13
2021-02-18T08:07:12.000Z
2022-03-28T06:48:36.000Z
schemas.py
strcho/sayhello
b9ad082cc5e3fccbe95190079944d094493207a8
[ "MIT" ]
1
2021-01-29T06:36:44.000Z
2021-01-29T08:29:02.000Z
schemas.py
strcho/sayhello
b9ad082cc5e3fccbe95190079944d094493207a8
[ "MIT" ]
6
2021-04-08T09:37:39.000Z
2022-03-02T02:13:30.000Z
from datetime import datetime from fastapi import Body from pydantic import BaseModel from typing import List class MessageBase(BaseModel): name: str = Body(..., min_length=2, max_length=8) body: str = Body(..., min_length=1, max_length=200) class MessageCreate(MessageBase): pass class Message(Messa...
16.7
55
0.679641
c2a32195b41b68af78cce42513a2bfe97e2a91d5
3,695
py
Python
tests/validation/tests/v3_api/test_catalog_library.py
httpsOmkar/rancher
810740fcdb3b1b73a890cb120f58165195ee02c9
[ "Apache-2.0" ]
1
2020-02-19T08:36:18.000Z
2020-02-19T08:36:18.000Z
tests/validation/tests/v3_api/test_catalog_library.py
httpsOmkar/rancher
810740fcdb3b1b73a890cb120f58165195ee02c9
[ "Apache-2.0" ]
null
null
null
tests/validation/tests/v3_api/test_catalog_library.py
httpsOmkar/rancher
810740fcdb3b1b73a890cb120f58165195ee02c9
[ "Apache-2.0" ]
null
null
null
""" This file has tests to deploy apps in a project created in a cluster. Test requirements: Env variables - Cattle_url, Admin Token, User Token, Cluster Name Test on at least 3 worker nodes App versions are given in 'cataloglib_appversion.json' file """ import json from .common import os from .common import pytest f...
37.704082
76
0.70203
e6412f47d4c4a8aad1204ad98b2231f9db244346
6,192
py
Python
src/dials/algorithms/indexing/basis_vector_search/real_space_grid_search.py
dials-src/dials
25055c1f6164dc33e672e7c5c6a9c5a35e870660
[ "BSD-3-Clause" ]
1
2021-12-10T17:28:16.000Z
2021-12-10T17:28:16.000Z
src/dials/algorithms/indexing/basis_vector_search/real_space_grid_search.py
dials-src/dials
25055c1f6164dc33e672e7c5c6a9c5a35e870660
[ "BSD-3-Clause" ]
null
null
null
src/dials/algorithms/indexing/basis_vector_search/real_space_grid_search.py
dials-src/dials
25055c1f6164dc33e672e7c5c6a9c5a35e870660
[ "BSD-3-Clause" ]
1
2021-12-07T12:39:04.000Z
2021-12-07T12:39:04.000Z
from __future__ import annotations import logging import math from libtbx import phil from rstbx.array_family import ( flex, # required to load scitbx::af::shared<rstbx::Direction> to_python converter ) from rstbx.dps_core import SimpleSamplerTool from scitbx import matrix from dials.algorithms.indexing import ...
39.189873
170
0.682332
cce431b00f79e2416e833ba7d9b91ff7ac01b7c2
5,035
py
Python
docs/conf.py
vznncv/vznncv-miniterm
a5999744435350304e26c4b4c97f7a999b2e5abd
[ "MIT" ]
1
2022-02-17T20:23:12.000Z
2022-02-17T20:23:12.000Z
docs/conf.py
vznncv/vznncv-miniterm
a5999744435350304e26c4b4c97f7a999b2e5abd
[ "MIT" ]
null
null
null
docs/conf.py
vznncv/vznncv-miniterm
a5999744435350304e26c4b4c97f7a999b2e5abd
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # This file is execfiled with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All configuration values have a default; values that are commented out # serve to show the de...
31.46875
77
0.684608
b37252e8cfd1fc3f8bdc8b6104a1cda421cd3fb8
449
py
Python
learn/migrations/0038_auto_20210622_2013.py
Shivamjha12/Mybio
e4bbcffa58341612ee684d74ba00cdb2125ef07b
[ "Unlicense", "MIT" ]
2
2021-08-29T08:07:03.000Z
2021-12-11T07:26:24.000Z
learn/migrations/0038_auto_20210622_2013.py
Shivamjha12/Mybio
e4bbcffa58341612ee684d74ba00cdb2125ef07b
[ "Unlicense", "MIT" ]
null
null
null
learn/migrations/0038_auto_20210622_2013.py
Shivamjha12/Mybio
e4bbcffa58341612ee684d74ba00cdb2125ef07b
[ "Unlicense", "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-06-22 14:43 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('learn', '0037_auto_20210622_2003'), ] operations = [ migrations.AlterField( model_name='images', name='ProfileImage'...
23.631579
109
0.623608
7c1597cb1a5c5579e20cf49f15b80f901775cf2c
1,047
py
Python
operator/hacks/csv_prep.py
deeghuge/ibm-spectrum-scale-csi
572a94a263aa9a850e8377eacfe3d25be8df12c8
[ "Apache-2.0" ]
null
null
null
operator/hacks/csv_prep.py
deeghuge/ibm-spectrum-scale-csi
572a94a263aa9a850e8377eacfe3d25be8df12c8
[ "Apache-2.0" ]
null
null
null
operator/hacks/csv_prep.py
deeghuge/ibm-spectrum-scale-csi
572a94a263aa9a850e8377eacfe3d25be8df12c8
[ "Apache-2.0" ]
1
2020-07-30T10:12:37.000Z
2020-07-30T10:12:37.000Z
#!/bin/python import argparse import sys import os import yaml BASE_DIR="{0}/../".format(os.path.dirname(os.path.realpath(__file__))) DEFAULT_VERSION="1.0.1" CSV_PATH="{0}deploy/olm-catalog/ibm-spectrum-scale-csi-operator/{1}/ibm-spectrum-scale-csi-operator.v{1}.clusterserviceversion.yaml" def main(args): parser =...
25.536585
132
0.684814
47c3f02b531c730d269fd3c266800d770d7bf003
3,347
py
Python
tests/test_pdf_polynomials.py
simonthor/zfit
97a18cd6cf14240be2cf52185681d0132f866179
[ "BSD-3-Clause" ]
null
null
null
tests/test_pdf_polynomials.py
simonthor/zfit
97a18cd6cf14240be2cf52185681d0132f866179
[ "BSD-3-Clause" ]
null
null
null
tests/test_pdf_polynomials.py
simonthor/zfit
97a18cd6cf14240be2cf52185681d0132f866179
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2021 zfit import copy import numpy as np import pytest import tensorflow as tf import zfit obs1_random = zfit.Space(obs="obs1", limits=(-1.5, 1.2)) obs1 = zfit.Space(obs="obs1", limits=(-1, 1)) coeffs_parametrization = [ 1.4, [0.6], [1.42, 1.2], [0.2, 0.8, 0.5], [8.1, 1.4, 3.6, ...
40.325301
111
0.722737
9a0a2e39e0b3815955ab9b4fb41507654fa498ea
3,206
py
Python
fasthangul/python/fasthangul/chars_test.py
jeongukjae/fasthangul
e9c8c88247ce6710f339317a687835a52750fb33
[ "MIT" ]
6
2019-12-16T01:15:38.000Z
2021-02-19T06:13:52.000Z
fasthangul/python/fasthangul/chars_test.py
jeongukjae/fasthangul
e9c8c88247ce6710f339317a687835a52750fb33
[ "MIT" ]
14
2019-12-15T20:40:15.000Z
2021-09-09T04:16:43.000Z
fasthangul/python/fasthangul/chars_test.py
jeongukjae/fasthangul
e9c8c88247ce6710f339317a687835a52750fb33
[ "MIT" ]
1
2020-06-25T01:26:07.000Z
2020-06-25T01:26:07.000Z
import random import string import unittest from fasthangul import chars class TestChars(unittest.TestCase): def test_compose_jamos(self): assert chars.compose_jamos("ㅇㅏㄴㄴㅕㅇ") == "안녕" assert chars.compose_jamos("ㅇㅏㄴㄴㅕㅇ ") == "안녕 " assert chars.compose_jamos("abcdㅇㅏㄴㄴㅕㅇ ") == "abcd안녕 "...
39.580247
139
0.650031
b9287c19264f8eb0d52f2af07d433453731a65b8
720
py
Python
idact/detail/log/get_logger.py
intdata-bsc/idact
54cb65a711c145351e205970c27c83e6393cccf5
[ "MIT" ]
5
2018-12-06T15:40:34.000Z
2019-06-19T11:22:58.000Z
idact/detail/log/get_logger.py
garstka/idact
b9c8405c94db362c4a51d6bfdf418b14f06f0da1
[ "MIT" ]
9
2018-12-06T16:35:26.000Z
2019-04-28T19:01:40.000Z
idact/detail/log/get_logger.py
intdata-bsc/idact
54cb65a711c145351e205970c27c83e6393cccf5
[ "MIT" ]
2
2019-04-28T19:18:58.000Z
2019-06-17T06:56:28.000Z
"""This module contains functions for getting a logger from a global provider. """ import logging from idact.detail.log.logger_provider import LoggerProvider def get_logger(name: str) -> logging.Logger: """Returns a logger with the proper logging level set. See :class:`.LoggerProvider`. :param...
24.827586
78
0.691667
a796992917038fd11cda55a1da0f6f8afc38b0c6
1,031
py
Python
schmecko/echo_server.py
rmfitzpatrick/schmecko
b2ed842aaf89be80bcd4387d8a3928e4ea4a040d
[ "MIT" ]
null
null
null
schmecko/echo_server.py
rmfitzpatrick/schmecko
b2ed842aaf89be80bcd4387d8a3928e4ea4a040d
[ "MIT" ]
null
null
null
schmecko/echo_server.py
rmfitzpatrick/schmecko
b2ed842aaf89be80bcd4387d8a3928e4ea4a040d
[ "MIT" ]
null
null
null
#! /usr/bin/env python import gzip from argparse import ArgumentParser from pprint import pprint import io from werkzeug.routing import Rule from flask import Flask, request, jsonify app = Flask(__name__) app.url_map.add(Rule('/<path:path>', endpoint='path')) @app.endpoint('path') def echo(path): data = reques...
23.431818
74
0.625606
e63b46dcb71dbc4e79618bd9786031fb87dcc671
2,167
py
Python
gooey/tests/test_header.py
Jacke/Gooey
329b6954befcb74f0243e1282e77ab7bff8e7abf
[ "MIT" ]
13,430
2015-01-01T04:52:02.000Z
2022-03-31T23:34:03.000Z
gooey/tests/test_header.py
Jacke/Gooey
329b6954befcb74f0243e1282e77ab7bff8e7abf
[ "MIT" ]
669
2015-01-02T04:51:28.000Z
2022-03-29T08:32:30.000Z
gooey/tests/test_header.py
Jacke/Gooey
329b6954befcb74f0243e1282e77ab7bff8e7abf
[ "MIT" ]
890
2015-01-09T19:15:46.000Z
2022-03-31T12:34:24.000Z
import unittest from argparse import ArgumentParser from itertools import * from tests.harness import instrumentGooey from gooey.tests import * class TestGooeyHeader(unittest.TestCase): def make_parser(self): parser = ArgumentParser(description='description') return parser def test_header_vi...
32.833333
88
0.596677
a8e9ad9ff7cc9e10de5b0db6c30f99f73ac60910
91,239
py
Python
pandas/tests/arithmetic/test_datetime64.py
s-scherrer/pandas
837daf18d480cce18c25844c591c39da19437252
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2020-04-18T14:29:33.000Z
2020-04-18T14:29:33.000Z
pandas/tests/arithmetic/test_datetime64.py
s-scherrer/pandas
837daf18d480cce18c25844c591c39da19437252
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/tests/arithmetic/test_datetime64.py
s-scherrer/pandas
837daf18d480cce18c25844c591c39da19437252
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2020-06-19T11:52:05.000Z
2020-06-19T11:52:05.000Z
# Arithmetic tests for DataFrame/Series/Index/Array classes that should # behave identically. # Specifically for datetime64 and datetime64tz dtypes from datetime import datetime, time, timedelta from itertools import product, starmap import operator import warnings import numpy as np import pytest import pytz from pa...
36.568737
88
0.582996
b63885b6644c4d3455efd5a7f6d5b086985f0db1
957
gyp
Python
base/base_untrusted.gyp
codenote/chromium-test
0637af0080f7e80bf7d20b29ce94c5edc817f390
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2018-03-10T13:08:49.000Z
2018-03-10T13:08:49.000Z
base/base_untrusted.gyp
sinmx/chromium-android
3fef3b3612d096db83a84126d6f2efacf1962efa
[ "Apache-2.0" ]
null
null
null
base/base_untrusted.gyp
sinmx/chromium-android
3fef3b3612d096db83a84126d6f2efacf1962efa
[ "Apache-2.0" ]
1
2019-10-26T13:42:14.000Z
2019-10-26T13:42:14.000Z
# Copyright (c) 2012 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. { 'variables': { 'chromium_code': 1, }, 'includes': [ '../build/common_untrusted.gypi', 'base.gypi', ], 'conditions': [ ['disab...
24.538462
72
0.495298
f701d938aba4d8300cacab21080c0e69d8ac18c8
2,597
py
Python
day05.py
spgill/AdventOfCode2021
58218062d64de12dac9761a30a1f9762d9a9ab6e
[ "MIT" ]
null
null
null
day05.py
spgill/AdventOfCode2021
58218062d64de12dac9761a30a1f9762d9a9ab6e
[ "MIT" ]
null
null
null
day05.py
spgill/AdventOfCode2021
58218062d64de12dac9761a30a1f9762d9a9ab6e
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 ### stdlib imports import pathlib ### local imports import utils @utils.part1 def part1(puzzleInput: str): # Parse the coordinate pairs from the puzzle input coordList = [ [ tuple(int(coord) for coord in pair.split(",")) for pair in line.split(" -> ") ...
32.4625
99
0.58298
f1aba606237e303796ac4c0c2d7689a69218aa04
3,403
py
Python
tests/contacts/test_contact_ftp.py
Mati607/caldera
895c3ff84715aa7333ea02545ba8d022cbc9e053
[ "Apache-2.0" ]
3,385
2017-11-29T02:08:31.000Z
2022-03-31T13:38:11.000Z
tests/contacts/test_contact_ftp.py
Mati607/caldera
895c3ff84715aa7333ea02545ba8d022cbc9e053
[ "Apache-2.0" ]
1,283
2017-11-29T16:45:31.000Z
2022-03-31T20:10:04.000Z
tests/contacts/test_contact_ftp.py
Mati607/caldera
895c3ff84715aa7333ea02545ba8d022cbc9e053
[ "Apache-2.0" ]
800
2017-11-29T17:48:43.000Z
2022-03-30T22:39:40.000Z
import pytest import os from app.contacts import contact_ftp from app.utility.base_world import BaseWorld beacon_profile = {'architecture': 'amd64', 'contact': 'ftp', 'paw': '8924', 'exe_name': 'sandcat.exe', 'executors': ['cmd', 'psh'], ...
39.569767
92
0.489274
e72254380ee2414185a347800c127fb13d718c3a
12,404
py
Python
scripts/contract_interaction.py
defistar/Sovryn-smart-contracts
57562f62dc126c154c998b051dc75ea09e98f87a
[ "Apache-2.0" ]
1
2020-11-18T13:40:56.000Z
2020-11-18T13:40:56.000Z
scripts/contract_interaction.py
defistar/Sovryn-smart-contracts
57562f62dc126c154c998b051dc75ea09e98f87a
[ "Apache-2.0" ]
null
null
null
scripts/contract_interaction.py
defistar/Sovryn-smart-contracts
57562f62dc126c154c998b051dc75ea09e98f87a
[ "Apache-2.0" ]
1
2020-11-18T13:41:30.000Z
2020-11-18T13:41:30.000Z
''' This script serves the purpose of interacting with existing smart contracts on the testnet. ''' from brownie import * from brownie.network.contract import InterfaceContainer def main(): acct = accounts.load("rskdeployer") iSUSD = '0xD1A979EDE2c17FCD31800Bed859e5EC3DA178Cb9' iRBTC = '0x08118a219a4e34E...
50.628571
152
0.733554
df23e69bdbbf58545e6f32b6895aa9addd38d03e
355
py
Python
setup.py
Danielhp95/gym-kuhn-poker
28fc047a0c605ae38cb01eb3fe7fee4c7e8114db
[ "MIT" ]
9
2020-03-07T19:03:05.000Z
2021-12-21T19:38:57.000Z
setup.py
Danielhp95/gym-kuhn-poker
28fc047a0c605ae38cb01eb3fe7fee4c7e8114db
[ "MIT" ]
null
null
null
setup.py
Danielhp95/gym-kuhn-poker
28fc047a0c605ae38cb01eb3fe7fee4c7e8114db
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup(name='gym_kuhn_poker', version='0.2', description='OpenAI gym environment for Kuhn poker', url='https://github.com/Danielhp95/gym-kuhn-poker', author='Sarios', author_email='madness@xcape.com', packages=find_packages(), install...
29.583333
58
0.664789
5abb08f7b487ec986ece9c7e579a947dc43f385c
4,728
py
Python
src/sha256.py
c1m50c/sha256
68d79f71217e4e95ba506d1ff43af3caaf4a772a
[ "MIT" ]
null
null
null
src/sha256.py
c1m50c/sha256
68d79f71217e4e95ba506d1ff43af3caaf4a772a
[ "MIT" ]
null
null
null
src/sha256.py
c1m50c/sha256
68d79f71217e4e95ba506d1ff43af3caaf4a772a
[ "MIT" ]
null
null
null
# FIXME: Encoding is not properly hashing the given input. from typing import List, Union # Constants # ADDITION_MODULO: int = 2 ** 32 # Modulo to perform addition in, defined in the specification sheet. WORD_BITS: int = 32 # Bits of Words, defined in the specification sheet. K: List[int] = [ # Word Constants ~...
43.777778
115
0.606599
75c5c2c80c501d338049d9de133436ef90d88c97
12,263
py
Python
weighted_graph.py
michibo/feyncop
19aafd73feb39335e0e1451c81c5b2a50af01112
[ "MIT" ]
12
2015-02-02T12:39:47.000Z
2021-03-24T13:25:04.000Z
weighted_graph.py
michibo/feyncop
19aafd73feb39335e0e1451c81c5b2a50af01112
[ "MIT" ]
1
2016-02-05T00:13:20.000Z
2016-02-05T00:13:54.000Z
weighted_graph.py
michibo/feyncop
19aafd73feb39335e0e1451c81c5b2a50af01112
[ "MIT" ]
1
2016-02-05T12:58:29.000Z
2016-02-05T12:58:29.000Z
"""weighted_graph.py: This file is part of the feyncop/feyngen package. Implements the WeightedGraph class. """ # See also: http://people.physik.hu-berlin.de/~borinsky/ __author__ = "Michael Borinsky" __email__ = "borinsky@physik.hu-berlin.de" __copyright__ = "Copyright (C) 2014 Michael Borinsky" __license__ = "...
47.34749
209
0.645519
4930c1eb499e9af51e7ac73532919e9ace902e97
1,721
py
Python
examples/zips/soundly_pylons/soundly_pylons.py
PhilNyeThePhysicsGuy/refraction_render
c315d7c23db990b9609386a1e16be76b55bcb235
[ "BSD-2-Clause" ]
1
2018-07-06T08:32:57.000Z
2018-07-06T08:32:57.000Z
examples/zips/soundly_pylons/soundly_pylons.py
PhilNyeThePhysicsGuy/refraction_render
c315d7c23db990b9609386a1e16be76b55bcb235
[ "BSD-2-Clause" ]
null
null
null
examples/zips/soundly_pylons/soundly_pylons.py
PhilNyeThePhysicsGuy/refraction_render
c315d7c23db990b9609386a1e16be76b55bcb235
[ "BSD-2-Clause" ]
2
2018-07-25T19:15:58.000Z
2021-03-02T12:30:09.000Z
from refraction_render.renderers import Scene,Renderer_35mm from refraction_render.calcs import CurveCalc,FlatCalc from pyproj import Geod import numpy as np import os def T_prof(h): e1 = np.exp(h/1.5) e2 = np.exp(h/0.1) return (2/(1+e1))*0.1+(2/(1+e2))*0.05 calc_args = dict(T_prof=T_prof) calc = CurveCalc(**calc...
32.471698
71
0.756537
b889954e5a0ff8df51ff128ef093144cf22f521f
1,010
py
Python
AtCoder/ABC/033/d.py
ttyskg/ProgrammingCompetition
65fb9e131803e4f1a1a6369e68ed1b504f08b00f
[ "MIT" ]
null
null
null
AtCoder/ABC/033/d.py
ttyskg/ProgrammingCompetition
65fb9e131803e4f1a1a6369e68ed1b504f08b00f
[ "MIT" ]
null
null
null
AtCoder/ABC/033/d.py
ttyskg/ProgrammingCompetition
65fb9e131803e4f1a1a6369e68ed1b504f08b00f
[ "MIT" ]
null
null
null
from bisect import bisect_right, bisect_left from math import pi, atan2 import sys def main(): input = sys.stdin.readline N = int(input()) pos = [tuple(map(int, input().split())) for _ in range(N)] ERR = 1e-9 right = 0 obtuse = 0 for ori in pos: angles = [atan2(a[1] - ori[1], a...
25.25
79
0.524752
86bf3ac029a06a86959ebea67aed6e6049873c5c
436
py
Python
05. Corner Detection/cornerDetection.py
codePerfectPlus/ComputerVision-Essentials
cfaa9e45ddc73cf6f3a6450f64a0d03268a60392
[ "MIT" ]
15
2021-05-04T15:03:14.000Z
2022-03-20T11:57:55.000Z
05. Corner Detection/cornerDetection.py
codePerfectPlus/ComputerVision-Essentials
cfaa9e45ddc73cf6f3a6450f64a0d03268a60392
[ "MIT" ]
12
2020-09-24T16:57:45.000Z
2020-10-23T15:13:06.000Z
05. Corner Detection/cornerDetection.py
codePerfectPlus/OpenCv-tutorial
cfaa9e45ddc73cf6f3a6450f64a0d03268a60392
[ "MIT" ]
18
2020-09-21T13:01:37.000Z
2020-10-15T19:42:28.000Z
''' Corner detection in Python ''' import cv2 import numpy as np img = cv2.imread('./Media/corner_detection.jpg') gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) gray = np.float32(gray) corners = cv2.goodFeaturesToTrack(gray, 100, 0.01, 10) corners = np.int0(corners) for corner in corners: x, y = corner.ravel() ...
18.956522
54
0.68578
b75373cf24a7344bf59b3c6fcb9c4c3969be6503
2,892
py
Python
python/paddle/fluid/tests/unittests/test_while_op.py
jichangjichang/Paddle
4fa3cee5499c6df0ad6043b0cfa220d09f2034e8
[ "Apache-2.0" ]
9
2017-12-04T02:58:01.000Z
2020-12-03T14:46:30.000Z
python/paddle/fluid/tests/unittests/test_while_op.py
jichangjichang/Paddle
4fa3cee5499c6df0ad6043b0cfa220d09f2034e8
[ "Apache-2.0" ]
7
2017-12-05T20:29:08.000Z
2018-10-15T08:57:40.000Z
python/paddle/fluid/tests/unittests/test_while_op.py
jichangjichang/Paddle
4fa3cee5499c6df0ad6043b0cfa220d09f2034e8
[ "Apache-2.0" ]
6
2018-03-19T22:38:46.000Z
2019-11-01T22:28:27.000Z
# Copyright (c) 2018 PaddlePaddle 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 app...
34.843373
76
0.63278
78d4af749815ff4b9141dc92b0095bb308e95ae9
3,356
py
Python
pv_sim/run.py
ederlf/pv-sim
2c8a44d4a9552fdea1dbc9802d558f1f56a38b79
[ "BSD-3-Clause-Clear" ]
null
null
null
pv_sim/run.py
ederlf/pv-sim
2c8a44d4a9552fdea1dbc9802d558f1f56a38b79
[ "BSD-3-Clause-Clear" ]
null
null
null
pv_sim/run.py
ederlf/pv-sim
2c8a44d4a9552fdea1dbc9802d558f1f56a38b79
[ "BSD-3-Clause-Clear" ]
null
null
null
import argparse import sys import threading import meter import msgbroker import pv_gen import pv parser = argparse.ArgumentParser() # Broker arguments parser.add_argument( "-b", "--broker", help="Chooses the msg broker. If not set, the simulator " "uses rabbitmq", default="rabbitmq") parser.add_argument( ...
36.879121
79
0.603993
21687b49ce611a320ee42a6a08b0d2c84ae77f2a
9,393
py
Python
python/GafferSceneUI/StandardOptionsUI.py
ivanimanishi/gaffer
7cfd79d2f20c25ed1d680730de9d6a2ee356dd4c
[ "BSD-3-Clause" ]
1
2019-08-02T16:49:59.000Z
2019-08-02T16:49:59.000Z
python/GafferSceneUI/StandardOptionsUI.py
rkoschmitzky/gaffer
ec6262ae1292767bdeb9520d1447d65a4a511884
[ "BSD-3-Clause" ]
2
2017-08-23T21:35:45.000Z
2018-01-29T08:59:33.000Z
python/GafferSceneUI/StandardOptionsUI.py
rkoschmitzky/gaffer
ec6262ae1292767bdeb9520d1447d65a4a511884
[ "BSD-3-Clause" ]
null
null
null
########################################################################## # # Copyright (c) 2013, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistrib...
26.91404
156
0.657617
2e4c54557388af0158f44984dfe160d3a67a5603
1,272
py
Python
pollbot/display/misc.py
tigerdar004/RweddingPoll
8617c63798dbebe6aee3ea7bd61d995a588fc048
[ "MIT" ]
null
null
null
pollbot/display/misc.py
tigerdar004/RweddingPoll
8617c63798dbebe6aee3ea7bd61d995a588fc048
[ "MIT" ]
null
null
null
pollbot/display/misc.py
tigerdar004/RweddingPoll
8617c63798dbebe6aee3ea7bd61d995a588fc048
[ "MIT" ]
1
2020-11-06T01:54:41.000Z
2020-11-06T01:54:41.000Z
"""Display helper for misc stuff.""" from pollbot.i18n import i18n from pollbot.models import Poll from pollbot.telegram.keyboard import ( get_help_keyboard, get_poll_list_keyboard, ) def get_help_text_and_keyboard(user, current_category): """Create the help message depending on the currently selected hel...
27.06383
84
0.647013
eed3363f9ac69e7487e2e9cfded01882afee7aad
318
py
Python
server/application/__init__.py
c-jordi/pdf2data
daa9f8b58e6603063b411ba7fba89054c924c5bc
[ "MIT" ]
null
null
null
server/application/__init__.py
c-jordi/pdf2data
daa9f8b58e6603063b411ba7fba89054c924c5bc
[ "MIT" ]
1
2022-01-09T12:06:40.000Z
2022-01-09T12:06:40.000Z
server/application/__init__.py
c-jordi/pdf2data
daa9f8b58e6603063b411ba7fba89054c924c5bc
[ "MIT" ]
null
null
null
__version__ = '0.1.0' def init_database(): """ Create a database """ from sqlalchemy import create_engine from sqlalchemy_utils import database_exists, create_database engine = create_engine("sqlite:///db.sqlite") if not database_exists(engine.url): create_database(engine.url)
21.2
65
0.691824
61654d0d5ba34a716dc57dc18432e7eb9d5225f1
670
py
Python
leetcode/191.py
pingrunhuang/CodeChallenge
a8e5274e04c47d851836197907266418af4f1a22
[ "MIT" ]
null
null
null
leetcode/191.py
pingrunhuang/CodeChallenge
a8e5274e04c47d851836197907266418af4f1a22
[ "MIT" ]
null
null
null
leetcode/191.py
pingrunhuang/CodeChallenge
a8e5274e04c47d851836197907266418af4f1a22
[ "MIT" ]
null
null
null
''' 191. Number of 1 Bits Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as the Hamming weight). For example, the 32-bit integer ’11' has binary representation 00000000000000000000000000001011, so the function should return 3. ''' class Solution(object): de...
23.928571
129
0.591045
5ac834a1352119ce433f4d48f73b80157a5eba0e
10,198
py
Python
pywikibot/families/wikipedia_family.py
magul/pywikibot-core
4874edc0f3f314108bcd25486d9df817da8457fe
[ "MIT" ]
2
2017-09-16T09:12:31.000Z
2017-09-19T19:12:32.000Z
pywikibot/families/wikipedia_family.py
magul/pywikibot-core
4874edc0f3f314108bcd25486d9df817da8457fe
[ "MIT" ]
56
2016-12-13T04:57:36.000Z
2017-11-24T10:05:41.000Z
pywikibot/families/wikipedia_family.py
magul/pywikibot-core
4874edc0f3f314108bcd25486d9df817da8457fe
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Family module for Wikipedia.""" # # (C) Pywikibot team, 2004-2018 # # Distributed under the terms of the MIT license. # from __future__ import absolute_import, unicode_literals from pywikibot import family # The Wikimedia family that is known as Wikipedia, the Free Encyclopedia class Famil...
45.936937
79
0.415474
120555bdfb31d9fc323b5ebfbfe022e108da8d6e
1,126
py
Python
python/app/blog/views.py
templain/php-python-opencensus-example
806463ac6c9ab3784c3339bedf5ac49fd96368cc
[ "MIT" ]
null
null
null
python/app/blog/views.py
templain/php-python-opencensus-example
806463ac6c9ab3784c3339bedf5ac49fd96368cc
[ "MIT" ]
null
null
null
python/app/blog/views.py
templain/php-python-opencensus-example
806463ac6c9ab3784c3339bedf5ac49fd96368cc
[ "MIT" ]
null
null
null
# coding: utf-8 import django_filters from rest_framework import viewsets, filters from .models import User, Entry from .serializer import UserSerializer, EntrySerializer from django.shortcuts import get_object_or_404 from rest_framework.response import Response import logging class UserViewSet(viewsets.ViewSet): ...
32.171429
57
0.715808
fc2445c94759f1cde88122f72ffbd15d19912fc3
308
py
Python
project/com/vo/BankVO.py
sahilshah8141/ChequeClearanceSystem
f02efeb45b950be8bb34a35a399a358e7eeed03b
[ "Apache-2.0" ]
null
null
null
project/com/vo/BankVO.py
sahilshah8141/ChequeClearanceSystem
f02efeb45b950be8bb34a35a399a358e7eeed03b
[ "Apache-2.0" ]
null
null
null
project/com/vo/BankVO.py
sahilshah8141/ChequeClearanceSystem
f02efeb45b950be8bb34a35a399a358e7eeed03b
[ "Apache-2.0" ]
null
null
null
from wtforms import * class BankVO: bankId = IntegerField bankName = StringField bankCode = StringField bankContact = StringField bank_LoginId = IntegerField # bankEmail = StringField bank_CityId = IntegerField bank_AreaId = IntegerField bankActiveStatus = StringField
20.533333
34
0.724026
5ddd5c5fe6470de5972bcc86a05cf85938328d33
3,177
py
Python
flexget/tests/test_exec.py
Jeremiad/Flexget
73e6e062eeb126eaec8737a6d6c94ccf3d250b03
[ "MIT" ]
1,322
2015-01-01T22:00:25.000Z
2022-03-30T05:37:46.000Z
flexget/tests/test_exec.py
Jeremiad/Flexget
73e6e062eeb126eaec8737a6d6c94ccf3d250b03
[ "MIT" ]
2,384
2015-01-01T04:23:15.000Z
2022-03-31T01:06:43.000Z
flexget/tests/test_exec.py
Jeremiad/Flexget
73e6e062eeb126eaec8737a6d6c94ccf3d250b03
[ "MIT" ]
617
2015-01-02T15:15:07.000Z
2022-03-15T12:29:31.000Z
import os import sys import pytest class TestExec: __tmp__ = True config = ( """ templates: global: set: temp_dir: '__tmp__' accept_all: yes tasks: replace_from_entry: mock: - {title: 'replace'} ...
38.743902
98
0.491029
010a0c0a00a176bdabb561cc2a141aa0d1bbf139
12,572
py
Python
tools/manifest/tests/test_manifest.py
QuantumDecaydev/wpt
604bdb79a265e54c398052a6e28557d26b23ce61
[ "BSD-3-Clause" ]
null
null
null
tools/manifest/tests/test_manifest.py
QuantumDecaydev/wpt
604bdb79a265e54c398052a6e28557d26b23ce61
[ "BSD-3-Clause" ]
null
null
null
tools/manifest/tests/test_manifest.py
QuantumDecaydev/wpt
604bdb79a265e54c398052a6e28557d26b23ce61
[ "BSD-3-Clause" ]
null
null
null
import os import mock import hypothesis as h import hypothesis.strategies as hs import pytest from .. import manifest, item, utils def SourceFileWithTest(path, hash, cls, *args): s = mock.Mock(rel_path=path, hash=hash) test = cls(s, utils.rel_path_to_url(path), *args) s.manifest_items = mock.Mock(retu...
31.508772
108
0.575962
b8706e1676e4c696ef2702d01539dce42e9e14b9
5,791
py
Python
tests/scripts/thread-cert/Cert_9_2_09_PendingPartition.py
MarekPorwisz/openthread-zep
acd72411235a0630a4efaeac8969419d15fecdaa
[ "BSD-3-Clause" ]
1
2022-03-18T11:20:13.000Z
2022-03-18T11:20:13.000Z
tests/scripts/thread-cert/Cert_9_2_09_PendingPartition.py
MarekPorwisz/openthread-zep
acd72411235a0630a4efaeac8969419d15fecdaa
[ "BSD-3-Clause" ]
3
2017-03-30T22:36:13.000Z
2020-05-29T15:04:28.000Z
tests/scripts/thread-cert/Cert_9_2_09_PendingPartition.py
MarekPorwisz/openthread-zep
acd72411235a0630a4efaeac8969419d15fecdaa
[ "BSD-3-Clause" ]
1
2016-07-05T14:44:21.000Z
2016-07-05T14:44:21.000Z
#!/usr/bin/env python3 # # Copyright (c) 2016, The OpenThread Authors. # 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 # ...
35.09697
79
0.631497
59d18fc57799f1824506438666897b5526d34140
8,520
py
Python
src/lib/Bcfg2/Server/Lint/Comments.py
stpierre/bcfg2
363ad4fd2b36febbbe6b766dac9e76c572048e08
[ "mpich2" ]
null
null
null
src/lib/Bcfg2/Server/Lint/Comments.py
stpierre/bcfg2
363ad4fd2b36febbbe6b766dac9e76c572048e08
[ "mpich2" ]
null
null
null
src/lib/Bcfg2/Server/Lint/Comments.py
stpierre/bcfg2
363ad4fd2b36febbbe6b766dac9e76c572048e08
[ "mpich2" ]
null
null
null
import os import lxml.etree import Bcfg2.Server.Lint from Bcfg2.Server import XI, XI_NAMESPACE from Bcfg2.Server.Plugins.Cfg.CfgPlaintextGenerator import CfgPlaintextGenerator from Bcfg2.Server.Plugins.Cfg.CfgGenshiGenerator import CfgGenshiGenerator from Bcfg2.Server.Plugins.Cfg.CfgCheetahGenerator import CfgCheetahGe...
43.030303
92
0.538732
045f565445756c396db17f0733b8e39589fb434d
1,069
py
Python
etsyProducts/urls.py
tugberkozkara/etsy-products
07fc8d3ce5b7d4806a7c2dedf6cc1bd868dcf878
[ "MIT" ]
null
null
null
etsyProducts/urls.py
tugberkozkara/etsy-products
07fc8d3ce5b7d4806a7c2dedf6cc1bd868dcf878
[ "MIT" ]
null
null
null
etsyProducts/urls.py
tugberkozkara/etsy-products
07fc8d3ce5b7d4806a7c2dedf6cc1bd868dcf878
[ "MIT" ]
null
null
null
"""etsyProducts URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-...
39.592593
77
0.710945
504d48cdcd52d45cb7c7bd079a809066d66f5766
776
py
Python
tests/test_integration.py
trickhub/echelonpy
75d04eb83116fabf6d86451055ca8ef4e79929bd
[ "MIT" ]
null
null
null
tests/test_integration.py
trickhub/echelonpy
75d04eb83116fabf6d86451055ca8ef4e79929bd
[ "MIT" ]
null
null
null
tests/test_integration.py
trickhub/echelonpy
75d04eb83116fabf6d86451055ca8ef4e79929bd
[ "MIT" ]
null
null
null
from os import path from freezegun import freeze_time from nose.tools import assert_equals from echelonpy.__main__ import generate_output @freeze_time("2017-04-23T12:57:42Z") def test_single_stage(): _integration_test('single_stage') @freeze_time("2017-04-23T12:59:00Z") def test_multi_stage(): _integration...
28.740741
103
0.756443
428f699275fb7ddbd6c7237eb5166b999e6cbe22
558
py
Python
alembic/versions/6f1e7ecaa9fd_add_stages_authors.py
scifanchain/api
eadb46625971bdc9ffe1893fa634907d54e9919f
[ "MIT" ]
2
2021-06-22T14:13:33.000Z
2021-07-04T18:18:37.000Z
alembic/versions/6f1e7ecaa9fd_add_stages_authors.py
scifanchain/api
eadb46625971bdc9ffe1893fa634907d54e9919f
[ "MIT" ]
null
null
null
alembic/versions/6f1e7ecaa9fd_add_stages_authors.py
scifanchain/api
eadb46625971bdc9ffe1893fa634907d54e9919f
[ "MIT" ]
null
null
null
"""add stages_authors Revision ID: 6f1e7ecaa9fd Revises: cdd8c82b1f69 Create Date: 2021-07-03 18:45:46.796481 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '6f1e7ecaa9fd' down_revision = 'cdd8c82b1f69' branch_labels = None depends_on = None def upgrade(): ...
19.241379
65
0.689964
6b21f0df35d958116672f8882f1cf8b3d09452a0
669
py
Python
deposit/migrations/0003_auto_20201207_0159.py
10sujitkhanal/forzza
d51332fe0655f85deb5acd612754f0b0ed9d2f3f
[ "MIT" ]
null
null
null
deposit/migrations/0003_auto_20201207_0159.py
10sujitkhanal/forzza
d51332fe0655f85deb5acd612754f0b0ed9d2f3f
[ "MIT" ]
null
null
null
deposit/migrations/0003_auto_20201207_0159.py
10sujitkhanal/forzza
d51332fe0655f85deb5acd612754f0b0ed9d2f3f
[ "MIT" ]
null
null
null
# Generated by Django 3.1.3 on 2020-12-07 01:59 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('deposit', '0002_auto_20201205_0154'), ] operations = [ migrations.RemoveField( model_name='deposit', name='deposit_amount_es...
22.3
47
0.54858
d68916de96de1cb94856855011ee6e15328ed730
2,636
py
Python
logstash/handler_http.py
MWedl/python-logstash
d318f3c3a91576a6d86522506aad5e04c479ee60
[ "MIT" ]
1
2019-06-27T19:39:15.000Z
2019-06-27T19:39:15.000Z
logstash/handler_http.py
MWedl/python-logstash
d318f3c3a91576a6d86522506aad5e04c479ee60
[ "MIT" ]
null
null
null
logstash/handler_http.py
MWedl/python-logstash
d318f3c3a91576a6d86522506aad5e04c479ee60
[ "MIT" ]
1
2019-07-03T14:36:09.000Z
2019-07-03T14:36:09.000Z
from logging import NullHandler import requests from requests.auth import HTTPBasicAuth from logstash import formatter class HTTPLogstashHandler(NullHandler, object): """Python logging handler for Logstash. Sends events over HTTP. :param host: The host of the logstash server. :param port: The port of t...
37.657143
113
0.624431
d1ec33b632b3c97892194bf506095de341f9bc74
6,959
py
Python
java/javaentity-dto-splitter/main.py
kinow/dork-scripts
a4fa7980a8cdff41df806bb4d4b70f7b4ac89349
[ "CC-BY-4.0" ]
1
2016-08-07T07:45:24.000Z
2016-08-07T07:45:24.000Z
java/javaentity-dto-splitter/main.py
kinow/dork-scripts
a4fa7980a8cdff41df806bb4d4b70f7b4ac89349
[ "CC-BY-4.0" ]
null
null
null
java/javaentity-dto-splitter/main.py
kinow/dork-scripts
a4fa7980a8cdff41df806bb4d4b70f7b4ac89349
[ "CC-BY-4.0" ]
null
null
null
#!/usr/bin/env python3 # requirements: javalang import os import re import sys import javalang """ Because there is no way :) """ # Patterns we do not want in an Entity ENTITY_FILTER_PATTERNS = [ '^import .*javax\.xml\.bind.*', '^@Xml.*' ] # Patterns we do not want in a DTO DTO_FILTER_PATTERNS = [ '^i...
31.346847
177
0.558845
90c0f235eae4d495be2b248654935d42184ce72a
4,894
py
Python
mmdet/models/necks/fpn.py
tjsongzw/mmdetection
1cbc88e3f528fa27489b9d68595b47ddb5cb1f34
[ "Apache-2.0" ]
16
2021-03-02T07:41:01.000Z
2022-03-14T08:55:45.000Z
mmdet/models/necks/fpn.py
superlxt/mmdetection
0e1f3b0d42ee7e1623322d76538aac8510abf6c2
[ "Apache-2.0" ]
2
2022-01-06T20:54:13.000Z
2022-02-24T03:50:51.000Z
mmdet/models/necks/fpn.py
superlxt/mmdetection
0e1f3b0d42ee7e1623322d76538aac8510abf6c2
[ "Apache-2.0" ]
2
2021-05-26T19:23:35.000Z
2022-01-06T20:30:24.000Z
import torch.nn as nn import torch.nn.functional as F from mmcv.cnn import xavier_init from ..utils import ConvModule from ..registry import NECKS @NECKS.register_module class FPN(nn.Module): def __init__(self, in_channels, out_channels, num_outs, ...
36.796992
79
0.552718
c47295e1350f8571b300abc6cfe8ffe8ce27b77d
5,864
py
Python
ape_etherscan/client.py
unparalleled-js/ape-etherscan
a970233426c6ac4793340077a1105800fa1f0747
[ "Apache-2.0" ]
null
null
null
ape_etherscan/client.py
unparalleled-js/ape-etherscan
a970233426c6ac4793340077a1105800fa1f0747
[ "Apache-2.0" ]
null
null
null
ape_etherscan/client.py
unparalleled-js/ape-etherscan
a970233426c6ac4793340077a1105800fa1f0747
[ "Apache-2.0" ]
null
null
null
import json import os from dataclasses import dataclass from typing import Dict, Iterator, List, Optional, Union import requests from ape.utils import USER_AGENT from ape_etherscan.exceptions import UnsupportedEcosystemError, get_request_error from ape_etherscan.utils import API_KEY_ENV_VAR_NAME def get_etherscan_u...
33.129944
98
0.636426
c83ae0a0a71d06f3c3e3bcb29db2f4d649cb22c6
5,366
py
Python
milk/unsupervised/gaussianmixture.py
luispedro/milk
abc2a28b526c199414d42c0a26092938968c3caf
[ "MIT" ]
284
2015-01-21T09:07:55.000Z
2022-03-19T07:39:17.000Z
milk/unsupervised/gaussianmixture.py
pursh2002/milk
abc2a28b526c199414d42c0a26092938968c3caf
[ "MIT" ]
6
2015-04-22T15:17:44.000Z
2018-04-22T16:06:24.000Z
milk/unsupervised/gaussianmixture.py
pursh2002/milk
abc2a28b526c199414d42c0a26092938968c3caf
[ "MIT" ]
109
2015-02-03T07:39:59.000Z
2022-01-16T00:16:13.000Z
# -*- coding: utf-8 -*- # Copyright (C) 2008-2011, Luis Pedro Coelho <luis@luispedro.org> # vim: set ts=4 sts=4 sw=4 expandtab smartindent: # # License: MIT. See COPYING.MIT file in the milk distribution from __future__ import division import numpy as np from numpy import log, pi, array from numpy.linalg import det, i...
29.322404
105
0.608647
f4a8a8a65fe5af1fb0e357c070bcc57435b12516
110
py
Python
django_extended/models/__init__.py
dalou/django-extended
a7ba952ea7089cfb319b4615ae098579c9ab14f9
[ "BSD-3-Clause" ]
1
2015-12-14T17:16:04.000Z
2015-12-14T17:16:04.000Z
django_extended/models/__init__.py
dalou/django-extended
a7ba952ea7089cfb319b4615ae098579c9ab14f9
[ "BSD-3-Clause" ]
null
null
null
django_extended/models/__init__.py
dalou/django-extended
a7ba952ea7089cfb319b4615ae098579c9ab14f9
[ "BSD-3-Clause" ]
null
null
null
from .user import User from ..emailing.models import * from ..flatpages.models import * from .tree import Tree
27.5
32
0.772727
9e1c703956fb66322ef009f7f13ff1a5f8925597
1,878
py
Python
electrum_atom/plot.py
rootSig/electrum-atom
338b0dbcde96335b92d1301bf4fdd0854937c8cf
[ "MIT" ]
4
2021-02-14T08:48:36.000Z
2021-04-23T11:14:41.000Z
electrum_atom/plot.py
bitcoin-atom/electrum-atom
156d4d54c5493bcda930efcb972a0c600c36a11d
[ "MIT" ]
1
2019-11-12T03:09:15.000Z
2019-11-12T03:09:15.000Z
electrum_atom/plot.py
bitcoin-atom/electrum-atom
156d4d54c5493bcda930efcb972a0c600c36a11d
[ "MIT" ]
1
2018-09-11T23:30:16.000Z
2018-09-11T23:30:16.000Z
import datetime from collections import defaultdict import matplotlib matplotlib.use('Qt5Agg') import matplotlib.pyplot as plt import matplotlib.dates as md from .i18n import _ from .bitcoin import COIN class NothingToPlotException(Exception): def __str__(self): return _("Nothing to plot.") def plot_h...
29.34375
76
0.633653
4146ac6d3c44e023cd5cd3f2f054a678a127f9d9
1,570
py
Python
eventsourcing/tests/test_cipher.py
alexanderlarin/eventsourcing
6f2a4ded3c783ba3ee465243a48f66ecdee20f52
[ "BSD-3-Clause" ]
1
2020-02-10T08:12:31.000Z
2020-02-10T08:12:31.000Z
eventsourcing/tests/test_cipher.py
alexanderlarin/eventsourcing
6f2a4ded3c783ba3ee465243a48f66ecdee20f52
[ "BSD-3-Clause" ]
null
null
null
eventsourcing/tests/test_cipher.py
alexanderlarin/eventsourcing
6f2a4ded3c783ba3ee465243a48f66ecdee20f52
[ "BSD-3-Clause" ]
null
null
null
from unittest import TestCase from eventsourcing.exceptions import DataIntegrityError class TestAESCipher(TestCase): def test_encrypt_mode_gcm(self): from eventsourcing.utils.cipher.aes import AESCipher from eventsourcing.utils.random import encode_random_bytes, decode_bytes # Unicode s...
34.888889
80
0.67707
f463343eba65a4bce1c0b6b31a25811ace4ba4e3
19,688
py
Python
test/python/bindings/end_to_end/test_model_dir.py
ryansun117/marius
c6a81b2ea6b6b468baf5277cf6955f9543b66c82
[ "Apache-2.0" ]
null
null
null
test/python/bindings/end_to_end/test_model_dir.py
ryansun117/marius
c6a81b2ea6b6b468baf5277cf6955f9543b66c82
[ "Apache-2.0" ]
null
null
null
test/python/bindings/end_to_end/test_model_dir.py
ryansun117/marius
c6a81b2ea6b6b468baf5277cf6955f9543b66c82
[ "Apache-2.0" ]
null
null
null
import unittest import shutil from pathlib import Path import pytest import os import marius as m import torch from test.python.constants import TMP_TEST_DIR, TESTING_DATA_DIR from test.test_data.generate import generate_random_dataset from test.test_configs.generate_test_configs import generate_configs_for_dataset ...
42.9869
131
0.552469
fd2b88d95b4b384b097101a23f2da893b971540c
2,881
py
Python
feature_extraction/genome_browser_tool.py
ramseylab/cerenkov
19570ad2a47416a70ae7bb066cc67842b3cdee1b
[ "Apache-2.0" ]
1
2020-06-25T08:10:10.000Z
2020-06-25T08:10:10.000Z
ground_truth/osu17/genome_browser_tool.py
ramseylab/cerenkov
19570ad2a47416a70ae7bb066cc67842b3cdee1b
[ "Apache-2.0" ]
2
2017-08-23T21:09:10.000Z
2018-03-28T23:42:24.000Z
ground_truth/osu17/genome_browser_tool.py
ramseylab/cerenkov
19570ad2a47416a70ae7bb066cc67842b3cdee1b
[ "Apache-2.0" ]
null
null
null
# This file is copyright 2002 Jim Kent, but license is hereby # granted for all use - public, private or commercial. # Bin indexing system used in UCSC Genome Browser # See http://genomewiki.ucsc.edu/index.php/Bin_indexing_system # Note that `bin` is NOT a index column. Its ability to accelerate queries is limited....
38.413333
104
0.688303
ad3fe30df71df2956c5eb4e6c23ce0d923b0fe54
10,650
py
Python
src/segmentpy/_taskManager/blanketColorPalette_design.py
ZeliangSu/LRCS-Xlearn
50ff9c64f36c0d80417aa44aac2db68f392130f0
[ "Apache-2.0" ]
4
2021-06-08T07:53:55.000Z
2022-02-16T15:10:15.000Z
src/segmentpy/_taskManager/blanketColorPalette_design.py
ZeliangSu/LRCS-Xlearn
50ff9c64f36c0d80417aa44aac2db68f392130f0
[ "Apache-2.0" ]
7
2021-06-01T21:19:47.000Z
2022-02-25T07:36:58.000Z
src/segmentpy/_taskManager/blanketColorPalette_design.py
ZeliangSu/LRCS-Xlearn
50ff9c64f36c0d80417aa44aac2db68f392130f0
[ "Apache-2.0" ]
1
2021-11-13T16:44:32.000Z
2021-11-13T16:44:32.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'src/segmentpy/_taskManager/blanketColorPalette.ui', # licensing of 'src/segmentpy/_taskManager/blanketColorPalette.ui' applies. # # Created: Tue May 4 10:18:09 2021 # by: pyside2-uic running on PySide2 5.9.0~a1 # # WARNING! All change...
58.839779
114
0.734366
d46dd25a7f67fc0faf562ea063b646920eba78ca
5,449
py
Python
PDI - Fourier e Wavelet/01 - Fourier/codes/Python/src/T13+-+Code.py
lapisco/Lapisco_Courses
3c0346b2c787307a52d6bee32f1a04efb4bba65d
[ "MIT" ]
2
2020-01-03T15:32:39.000Z
2020-02-27T22:49:26.000Z
PDI - Fourier e Wavelet/01 - Fourier/codes/Python/src/T13+-+Code.py
lapisco/Lapisco_Courses
3c0346b2c787307a52d6bee32f1a04efb4bba65d
[ "MIT" ]
null
null
null
PDI - Fourier e Wavelet/01 - Fourier/codes/Python/src/T13+-+Code.py
lapisco/Lapisco_Courses
3c0346b2c787307a52d6bee32f1a04efb4bba65d
[ "MIT" ]
9
2019-09-24T16:42:52.000Z
2021-09-14T19:33:49.000Z
# coding: utf-8 # # Introdução # A transformação para domínios alternativos ao tempo contínuo ou discreto pode provê características importantes para análise do sinal. Em particular a transformação para o dominío da frequência utilizando a transformada de Fourier visa exibir comportamentos relativos as parte que com...
32.242604
521
0.758121
6ddc8dc31ef9bc47e72cb210e98f1a3586326b90
1,427
py
Python
src/main/wallpaper/wallpaperCompiler.py
cassianomaia/compilador-wallpaper
e4aa4cb969b0e49148c3177af60851310519f55e
[ "MIT" ]
null
null
null
src/main/wallpaper/wallpaperCompiler.py
cassianomaia/compilador-wallpaper
e4aa4cb969b0e49148c3177af60851310519f55e
[ "MIT" ]
null
null
null
src/main/wallpaper/wallpaperCompiler.py
cassianomaia/compilador-wallpaper
e4aa4cb969b0e49148c3177af60851310519f55e
[ "MIT" ]
null
null
null
from __future__ import annotations import sys from antlr4 import * from wallpaperLexer import wallpaperLexer from wallpaperParser import wallpaperParser from Semantico import Semantico from Wallpaper import Wallpaper def main(argv): input = FileStream(argv[1]) lexer = wallpaperLexer(input) stream = Common...
27.442308
55
0.672039
9fc3ab97104abe9c32ee27eee6a52fbaf7d71e40
123,910
py
Python
preprocess/segmentation/mrcnn/model.py
wan-h/JD-AI-Fashion-Challenge
817f693672f418745e3a4c89a0417a3165b08130
[ "MIT" ]
3
2018-05-06T15:15:21.000Z
2018-05-13T12:31:42.000Z
preprocess/segmentation/mrcnn/model.py
wan-h/JD-AI-Fashion-Challenge
817f693672f418745e3a4c89a0417a3165b08130
[ "MIT" ]
null
null
null
preprocess/segmentation/mrcnn/model.py
wan-h/JD-AI-Fashion-Challenge
817f693672f418745e3a4c89a0417a3165b08130
[ "MIT" ]
null
null
null
""" Mask R-CNN The main Mask R-CNN model implemenetation. Copyright (c) 2017 Matterport, Inc. Licensed under the MIT License (see LICENSE for details) Written by Waleed Abdulla """ import os import random import datetime import re import math import logging from collections import OrderedDict import multiprocessing i...
43.846426
115
0.610839
3d234db44ccc9e505ca50662dfbe06091e5327ff
2,788
py
Python
ml/equationGen.py
Shivams9/pythoncodecamp
e6cd27f4704a407ee360414a8c9236b254117a59
[ "MIT" ]
6
2021-08-04T08:15:22.000Z
2022-02-02T11:15:56.000Z
ML/equationGen.py
Maurya232Abhishek/Python-repository-for-basics
3dcec5c529a0847df07c9dcc1424675754ce6376
[ "MIT" ]
14
2021-08-02T06:28:00.000Z
2022-03-25T10:44:15.000Z
ML/equationGen.py
Maurya232Abhishek/Python-repository-for-basics
3dcec5c529a0847df07c9dcc1424675754ce6376
[ "MIT" ]
6
2021-07-16T04:56:41.000Z
2022-02-16T04:40:06.000Z
#from sympy import symbols,diff import cv2 import matplotlib.pyplot as plt from sklearn.metrics import r2_score import numpy as np """class PredictorImage: def __init__(self,pic,label): self.pic = pic self.label = label""" def readimg(path): a= cv2.imread(path) return a def showimg(img,imgna...
25.577982
86
0.539096
72c7a4e7bc9c0b19204a0f02913f8a083242441c
123
py
Python
leet/settings.py
Syhen/leet-code
55ab719de012693588da878cc97f20d9b9f32ab5
[ "MIT" ]
null
null
null
leet/settings.py
Syhen/leet-code
55ab719de012693588da878cc97f20d9b9f32ab5
[ "MIT" ]
null
null
null
leet/settings.py
Syhen/leet-code
55ab719de012693588da878cc97f20d9b9f32ab5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ create on 2020-04-16 12:26 author @66492 """ import os BASE_PATH = os.path.dirname(__file__)
12.3
37
0.642276
84ac51530b496793069539f88e30d15f0fee4c01
4,071
py
Python
influxdb_client/domain/run_log.py
kelseiv/influxdb-client-python
9a0d2d659157cca96f6a04818fdeb215d699bdd7
[ "MIT" ]
1
2021-06-06T10:39:47.000Z
2021-06-06T10:39:47.000Z
influxdb_client/domain/run_log.py
kelseiv/influxdb-client-python
9a0d2d659157cca96f6a04818fdeb215d699bdd7
[ "MIT" ]
null
null
null
influxdb_client/domain/run_log.py
kelseiv/influxdb-client-python
9a0d2d659157cca96f6a04818fdeb215d699bdd7
[ "MIT" ]
null
null
null
# coding: utf-8 """ Influx API Service No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: 0.1.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class RunL...
24.672727
124
0.53918
dc14657c3f3e415b728c5c54fd46b0f78a102754
3,344
py
Python
bitcoin-talk-crawler/bitcoin_talk_crawler/settings.py
daedalus/scraper
7052024d0113dc71896eafba3843307054cf4394
[ "MIT" ]
11
2017-08-11T09:43:56.000Z
2021-03-27T13:47:48.000Z
bitcoin-talk-crawler/bitcoin_talk_crawler/settings.py
Georgehe4/scraper
7052024d0113dc71896eafba3843307054cf4394
[ "MIT" ]
1
2021-11-13T12:22:54.000Z
2021-11-13T12:22:54.000Z
bitcoin_talk_crawler/settings.py
goldmar/bitcoin-talk-crawler
f5b5b229e61d8721165a0ee2a0add7101c316bbf
[ "Apache-2.0" ]
7
2018-01-26T02:31:55.000Z
2021-11-13T12:14:20.000Z
# -*- coding: utf-8 -*- # Scrapy settings for bitcoin_talk_crawler project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # http://doc.scrapy.org/en/latest/topics/settings.html # http://scrapy.readthedocs....
35.2
109
0.794557
34b58b03deb2c99fa3a1ca8d6a683116576c3af9
8,692
py
Python
python2/tests/DirectSMBConnectionTests/test_storefile.py
0x4a47/pysmb
79dbb2039b97589cae913769fcfe27035e302d40
[ "Zlib" ]
null
null
null
python2/tests/DirectSMBConnectionTests/test_storefile.py
0x4a47/pysmb
79dbb2039b97589cae913769fcfe27035e302d40
[ "Zlib" ]
null
null
null
python2/tests/DirectSMBConnectionTests/test_storefile.py
0x4a47/pysmb
79dbb2039b97589cae913769fcfe27035e302d40
[ "Zlib" ]
null
null
null
# -*- coding: utf-8 -*- import os, tempfile, random, time from StringIO import StringIO from smb.SMBConnection import SMBConnection from smb.smb2_constants import SMB2_DIALECT_2 from util import getConnectionInfo from nose.tools import with_setup from smb import smb_structs try: import hashlib def MD5(): retu...
32.192593
140
0.692706
ce1ef3532cc9075a0b49a3cc463a0801d71434f9
617
py
Python
Chapter16/example1.py
DeeMATT/AdvancedPythonProgramming
97091dae4f177fd2c06b20265be2aedf9d1c41e7
[ "MIT" ]
66
2018-11-21T02:07:16.000Z
2021-11-08T13:13:31.000Z
Chapter16/example1.py
DeeMATT/AdvancedPythonProgramming
97091dae4f177fd2c06b20265be2aedf9d1c41e7
[ "MIT" ]
2
2020-03-11T19:56:39.000Z
2021-11-15T14:07:05.000Z
Chapter16/example1.py
DeeMATT/AdvancedPythonProgramming
97091dae4f177fd2c06b20265be2aedf9d1c41e7
[ "MIT" ]
58
2018-11-03T14:06:10.000Z
2022-03-17T14:06:55.000Z
# ch9/example1.py from math import sqrt def is_prime(x): print('Processing %i...' % x) if x < 2: print('%i is not a prime number.' % x) elif x == 2: print('%i is a prime number.' % x) elif x % 2 == 0: print('%i is not a prime number.' % x) else: limit = int(sqrt...
19.903226
54
0.49919
4b68bc9e67f072791486b9c244996278742510b6
1,076
py
Python
utils.py
KuanHaoHuang/tbrain-tomofun-audio-classification
6040c8d58f6738795596c166eb008d9c21c05cd1
[ "MIT" ]
2
2021-08-17T10:57:58.000Z
2021-09-01T01:32:13.000Z
utils.py
KuanHaoHuang/tbrain-tomofun-audio-classification
6040c8d58f6738795596c166eb008d9c21c05cd1
[ "MIT" ]
null
null
null
utils.py
KuanHaoHuang/tbrain-tomofun-audio-classification
6040c8d58f6738795596c166eb008d9c21c05cd1
[ "MIT" ]
3
2021-09-01T01:32:22.000Z
2021-12-13T01:44:52.000Z
import librosa import numpy as np import pickle as pkl import re from pathlib import Path import torch import torchvision import torchaudio from PIL import Image SAMPLING_RATE = 8000 num_channels = 3 window_sizes = [25, 50, 100] hop_sizes = [10, 25, 50] eps = 1e-6 limits = ((-2, 2), (0.9, 1.2)) def extract_feature(f...
31.647059
157
0.685874
2f9e416e6df279574c37fb34c97013c6d94c59c8
2,841
py
Python
tests/database/test_psycopg2.py
uranusjr/sqlian
8f029e91af032e23ebb95cb599aa7267ebe75e05
[ "0BSD" ]
null
null
null
tests/database/test_psycopg2.py
uranusjr/sqlian
8f029e91af032e23ebb95cb599aa7267ebe75e05
[ "0BSD" ]
null
null
null
tests/database/test_psycopg2.py
uranusjr/sqlian
8f029e91af032e23ebb95cb599aa7267ebe75e05
[ "0BSD" ]
null
null
null
import pytest from sqlian import connect, star from sqlian.postgresql import Psycopg2Database psycopg2 = pytest.importorskip('psycopg2') @pytest.fixture(scope='module') def database_name(request): try: conn = psycopg2.connect(database='postgres') except psycopg2.OperationalError: pytest.ski...
28.41
73
0.623372
b10e1fee45811ece6ed4d199a4b72e2998fcfce8
3,211
py
Python
examples/variational_autoencoder.py
codeheadshopon/keras
3a4c683d5c83b53d401f0eef6d930a23ad3db7d7
[ "MIT" ]
1
2016-08-29T15:07:53.000Z
2016-08-29T15:07:53.000Z
examples/variational_autoencoder.py
sabirdvd/keras
3a4c683d5c83b53d401f0eef6d930a23ad3db7d7
[ "MIT" ]
null
null
null
examples/variational_autoencoder.py
sabirdvd/keras
3a4c683d5c83b53d401f0eef6d930a23ad3db7d7
[ "MIT" ]
1
2016-09-07T13:18:58.000Z
2016-09-07T13:18:58.000Z
'''This script demonstrates how to build a variational autoencoder with Keras. Reference: "Auto-Encoding Variational Bayes" https://arxiv.org/abs/1312.6114 ''' import numpy as np import matplotlib.pyplot as plt from keras.layers import Input, Dense, Lambda from keras.models import Model from keras import backend as K...
32.765306
89
0.728745
bf9bc91b6bbcddd8d9a2ac17529fb4bb255063de
1,616
py
Python
Python/Caesar_Cipher/cipher.py
iamakkkhil/Rotten-Scripts
116ae502271d699db88add5fd1cf733d01134b7d
[ "MIT" ]
1,127
2020-02-16T04:14:00.000Z
2022-03-31T21:37:24.000Z
Python/Caesar_Cipher/cipher.py
iamakkkhil/Rotten-Scripts
116ae502271d699db88add5fd1cf733d01134b7d
[ "MIT" ]
1,123
2020-06-20T04:00:11.000Z
2022-03-31T13:23:45.000Z
Python/Caesar_Cipher/cipher.py
iamakkkhil/Rotten-Scripts
116ae502271d699db88add5fd1cf733d01134b7d
[ "MIT" ]
669
2020-05-30T16:14:43.000Z
2022-03-31T14:36:11.000Z
""" A Python Script to implement Caesar Cipher. The technique is really basic. # It shifts every character by a certain number (Shift Key) # This number is secret and only the sender, receiver knows it. # Using Such a Key, the message can be easily decoded as well. # This Script Focuses on Encryption Part """ def ci...
30.490566
74
0.592203
b13cfd7d37030373fe922c99d4ca46f93ccbcf6a
53,580
py
Python
homeassistant/components/alexa/capabilities.py
lekobob/home-assistant
31996120dd19541499d868f8f97c1ecb0a7dd8aa
[ "Apache-2.0" ]
2
2018-07-17T06:40:53.000Z
2020-08-11T09:44:09.000Z
homeassistant/components/alexa/capabilities.py
lekobob/home-assistant
31996120dd19541499d868f8f97c1ecb0a7dd8aa
[ "Apache-2.0" ]
1
2020-07-29T22:08:40.000Z
2020-07-29T22:08:40.000Z
homeassistant/components/alexa/capabilities.py
lekobob/home-assistant
31996120dd19541499d868f8f97c1ecb0a7dd8aa
[ "Apache-2.0" ]
6
2019-12-01T19:06:52.000Z
2020-09-17T00:57:06.000Z
"""Alexa capabilities.""" import logging from homeassistant.components import ( cover, fan, image_processing, input_number, light, vacuum, ) from homeassistant.components.alarm_control_panel import ATTR_CODE_FORMAT, FORMAT_NUMBER import homeassistant.components.climate.const as climate import h...
30.953206
127
0.610844
002230f3fb8240ca98fe43d8de8472283d055579
5,646
py
Python
contrib/seeds/makeseeds.py
spayse/hello_world
5b01834dfbfbd21e8d1bf12c418097576368bc10
[ "MIT" ]
1
2018-08-07T06:53:41.000Z
2018-08-07T06:53:41.000Z
contrib/seeds/makeseeds.py
spayse/hello_world
5b01834dfbfbd21e8d1bf12c418097576368bc10
[ "MIT" ]
null
null
null
contrib/seeds/makeseeds.py
spayse/hello_world
5b01834dfbfbd21e8d1bf12c418097576368bc10
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2013-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Generate seeds.txt from Pieter's DNS seeder # NSEEDS=512 MAX_SEEDS_PER_ASN=2 MIN_BLOCKS = 615801 #...
32.825581
186
0.567836
f126241da2a02cbab7f103ead77a2c7da945648f
5,131
py
Python
pulsar/apps/ds/utils.py
PyCN/pulsar
fee44e871954aa6ca36d00bb5a3739abfdb89b26
[ "BSD-3-Clause" ]
1,410
2015-01-02T14:55:07.000Z
2022-03-28T17:22:06.000Z
pulsar/apps/ds/utils.py
PyCN/pulsar
fee44e871954aa6ca36d00bb5a3739abfdb89b26
[ "BSD-3-Clause" ]
194
2015-01-22T06:18:24.000Z
2020-10-20T21:21:58.000Z
pulsar/apps/ds/utils.py
PyCN/pulsar
fee44e871954aa6ca36d00bb5a3739abfdb89b26
[ "BSD-3-Clause" ]
168
2015-01-31T10:29:55.000Z
2022-03-14T10:22:24.000Z
import shutil import pickle def save_data(cfg, filename, data): logger = cfg.configured_logger('pulsar.ds') temp = 'temp_%s' % filename with open(temp, 'wb') as file: pickle.dump(data, file, protocol=2) shutil.move(temp, filename) logger.info('wrote data into "%s"', filename) def sort_co...
25.78392
77
0.510817
c1f998ee333606c07e0a91bbdaa241d5b73d0add
1,999
py
Python
scraping/normask1.py
Asyikin98/SkinFerm
72fd1ad6339c96adf5ec154bde566de9eb1472c3
[ "MIT" ]
null
null
null
scraping/normask1.py
Asyikin98/SkinFerm
72fd1ad6339c96adf5ec154bde566de9eb1472c3
[ "MIT" ]
2
2021-02-03T01:55:13.000Z
2021-04-30T12:46:33.000Z
scraping/normask1.py
Asyikin98/SkinFerm
72fd1ad6339c96adf5ec154bde566de9eb1472c3
[ "MIT" ]
null
null
null
import urllib.request import random from bs4 import BeautifulSoup from requests import get import mysql.connector conn = mysql.connector.connect(user="root", passwd="",host="localhost", database="product") cursor = conn.cursor() sql = """INSERT INTO normask (image, name, price, rating) VALUES (%s, %s, %s, %s)""" d...
43.456522
433
0.67984
9a0029cec94b74efbc5c3a03460845186a2652e2
57,809
py
Python
_utils/vault.py
jbirdkerr/vault-formula
745324690c9e14b636e836d6ff780a5ff41c7415
[ "BSD-3-Clause" ]
null
null
null
_utils/vault.py
jbirdkerr/vault-formula
745324690c9e14b636e836d6ff780a5ff41c7415
[ "BSD-3-Clause" ]
null
null
null
_utils/vault.py
jbirdkerr/vault-formula
745324690c9e14b636e836d6ff780a5ff41c7415
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ''' :maintainer: SaltStack :maturity: new :platform: all Utilities supporting modules for Hashicorp Vault. Configuration instructions are documented in the execution module docs. ''' from __future__ import absolute_import, print_function, unicode_literals import base64 import logg...
31.641489
101
0.529952
b093de44181274cc23c5048acf6be31d3288f81f
1,027
py
Python
src/thelist/migrations/0001_initial.py
terean-dspd/data-tables-plus-django-rest-famework-related-object-sotring
3a5604d80b21193ce80f3ff5c9e40c43c0b8edda
[ "MIT" ]
null
null
null
src/thelist/migrations/0001_initial.py
terean-dspd/data-tables-plus-django-rest-famework-related-object-sotring
3a5604d80b21193ce80f3ff5c9e40c43c0b8edda
[ "MIT" ]
null
null
null
src/thelist/migrations/0001_initial.py
terean-dspd/data-tables-plus-django-rest-famework-related-object-sotring
3a5604d80b21193ce80f3ff5c9e40c43c0b8edda
[ "MIT" ]
null
null
null
# Generated by Django 2.0.6 on 2018-06-08 11:49 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Client', fields=[ ...
32.09375
134
0.5852
09109172e7cb455c525a1b807092892986a4b6be
6,082
py
Python
kinopoisk/movie/__init__.py
GitBib/kinopoiskpy
37fb13fc7b04905572e02a1f576fdf4bb17177f3
[ "BSD-3-Clause" ]
null
null
null
kinopoisk/movie/__init__.py
GitBib/kinopoiskpy
37fb13fc7b04905572e02a1f576fdf4bb17177f3
[ "BSD-3-Clause" ]
null
null
null
kinopoisk/movie/__init__.py
GitBib/kinopoiskpy
37fb13fc7b04905572e02a1f576fdf4bb17177f3
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from future.utils import python_2_unicode_compatible from bs4 import BeautifulSoup from .sources import ( MovieLink, MoviePremierLink, MovieMainPage, MoviePostersPage, MovieTrailersPage, MovieSeries, MovieCareerLink, MovieCastPage, MovieRoleLink, ...
29.381643
159
0.606708
5c522637fc18dc0fc429b3f6430c0e7f878e39ea
952
py
Python
job_app/transformers.py
ahmedezzeldin93/heyjobs
ada72a4ede5eabf04f465ecd0b5f677253e95579
[ "MIT" ]
null
null
null
job_app/transformers.py
ahmedezzeldin93/heyjobs
ada72a4ede5eabf04f465ecd0b5f677253e95579
[ "MIT" ]
null
null
null
job_app/transformers.py
ahmedezzeldin93/heyjobs
ada72a4ede5eabf04f465ecd0b5f677253e95579
[ "MIT" ]
null
null
null
import numpy as np from sklearn.base import BaseEstimator, TransformerMixin class CombinedAttributesAdder(BaseEstimator, TransformerMixin): def __init__(self, salary_ix, hours_ix): self.salary_ix = salary_ix self.hours_ix = hours_ix def fit(self, X, y=None): return self def tran...
23.219512
68
0.670168
d89233fa782515866f4b6d46fdf8d445021c861d
7,901
py
Python
torch_geometric/datasets/molecule_net.py
lsj2408/pytorch_geometric
21cc1efd7c3b2912f4c2c98ddd5e9065a9aef6d4
[ "MIT" ]
null
null
null
torch_geometric/datasets/molecule_net.py
lsj2408/pytorch_geometric
21cc1efd7c3b2912f4c2c98ddd5e9065a9aef6d4
[ "MIT" ]
null
null
null
torch_geometric/datasets/molecule_net.py
lsj2408/pytorch_geometric
21cc1efd7c3b2912f4c2c98ddd5e9065a9aef6d4
[ "MIT" ]
null
null
null
import os import os.path as osp import re import torch from torch_geometric.data import (InMemoryDataset, Data, download_url, extract_gz) x_map = { 'atomic_num': list(range(0, 119)), 'chirality': [ 'CHI_UNSPECIFIED', 'CHI_TETRAHEDRAL_CW', 'CHI_TETR...
35.751131
79
0.545754
20438a65880bf71c1a409d04640f816b0f7d1588
587
py
Python
iconconsole/transaction.py
eunsoo-icon/icon-console
60268ba09b69e7095841886d26d4aa70bb700230
[ "Apache-2.0" ]
null
null
null
iconconsole/transaction.py
eunsoo-icon/icon-console
60268ba09b69e7095841886d26d4aa70bb700230
[ "Apache-2.0" ]
null
null
null
iconconsole/transaction.py
eunsoo-icon/icon-console
60268ba09b69e7095841886d26d4aa70bb700230
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from iconconsole.network import Network class TransactionResult: def __init__(self, net: Network, tx_hash: str): self._net = net self._hash = tx_hash def net(self) -> Network: return self._net def hash(self) -> str: return self._hash def trans...
24.458333
69
0.640545
35ba27f223a1d9f60a8748f8ee1926f53a5cd142
780
py
Python
toscaparser/elements/attribute_definition.py
mikidep/tosca-parser
6cef1dfc712165c4d75aeae36f6bd4758fcfff5c
[ "Apache-2.0" ]
99
2015-09-02T23:07:47.000Z
2022-02-02T14:13:07.000Z
toscaparser/elements/attribute_definition.py
mikidep/tosca-parser
6cef1dfc712165c4d75aeae36f6bd4758fcfff5c
[ "Apache-2.0" ]
26
2019-09-09T04:45:17.000Z
2021-06-25T15:23:52.000Z
toscaparser/elements/attribute_definition.py
mikidep/tosca-parser
6cef1dfc712165c4d75aeae36f6bd4758fcfff5c
[ "Apache-2.0" ]
59
2015-10-28T09:14:01.000Z
2022-02-13T13:54:24.000Z
# 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 # d...
37.142857
78
0.697436
33c67f7311a0ff85547869f95109b610dd62bf06
219
py
Python
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/__init__.py
robertopreste/cc-pypackage
8c4639516fa7291a40d700f3bdde497196827c89
[ "BSD-3-Clause" ]
null
null
null
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/__init__.py
robertopreste/cc-pypackage
8c4639516fa7291a40d700f3bdde497196827c89
[ "BSD-3-Clause" ]
22
2019-04-04T03:29:36.000Z
2020-02-09T08:06:52.000Z
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/__init__.py
robertopreste/cc-pypackage
8c4639516fa7291a40d700f3bdde497196827c89
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: UTF-8 -*- # Created by {{ cookiecutter.full_name }} __author__ = """{{ cookiecutter.full_name }}""" __email__ = "{{ cookiecutter.email }}" __version__ = '{{ cookiecutter.version }}'
27.375
47
0.648402
0c469e5435854b00b5eed7dbfdc0d289f9c1ba25
10,067
py
Python
LINETCR/Api/channel.py
neo251214/odah
48518fcd3c6919746c6bc6c81d76a214526d8b56
[ "MIT" ]
null
null
null
LINETCR/Api/channel.py
neo251214/odah
48518fcd3c6919746c6bc6c81d76a214526d8b56
[ "MIT" ]
null
null
null
LINETCR/Api/channel.py
neo251214/odah
48518fcd3c6919746c6bc6c81d76a214526d8b56
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os, sys, json path = os.path.join(os.path.dirname(__file__), '../lib/') sys.path.insert(0, path) import requests from thrift.transport import THttpClient from thrift.protocol import TCompactProtocol from curve import LineService from curve.ttypes import * import tempfile class Channel:...
30.598784
161
0.496871
6fffb35224b0d8674bf036b692e2f3a4acbe7b54
37,512
py
Python
notebooks/eval.py
Baukebrenninkmeijer/On-the-Generation-and-Evaluation-of-Synthetic-Tabular-Data-using-GANs
6883f83409e5c90ea3917224bf259fe30b223303
[ "MIT" ]
21
2019-12-23T15:16:21.000Z
2022-03-25T14:17:06.000Z
notebooks/eval.py
Baukebrenninkmeijer/On-the-Generation-and-Evaluation-of-Synthetic-Tabular-Data-using-GANs
6883f83409e5c90ea3917224bf259fe30b223303
[ "MIT" ]
1
2020-12-02T10:49:13.000Z
2020-12-10T16:23:28.000Z
notebooks/eval.py
Baukebrenninkmeijer/On-the-Generation-and-Evaluation-of-Synthetic-Tabular-Data-using-GANs
6883f83409e5c90ea3917224bf259fe30b223303
[ "MIT" ]
4
2020-06-22T15:49:35.000Z
2022-01-24T12:45:52.000Z
import copy import warnings import logging import pandas as pd import numpy as np import seaborn as sns import matplotlib.pyplot as plt from tqdm import tqdm from scipy import stats from scipy.spatial.distance import cdist from dython.nominal import * from sklearn.preprocessing import MinMaxScaler from sklearn.model_se...
44.870813
158
0.636036
93223cd882c2be90b01bfe2a0a09b6eae746c2f6
12,258
py
Python
tests/test_encrypted_fields.py
kaozdl/django-extensions
bbc3ae686d2cba9c0bb0a6b88f5e71ddf1a6af36
[ "MIT" ]
null
null
null
tests/test_encrypted_fields.py
kaozdl/django-extensions
bbc3ae686d2cba9c0bb0a6b88f5e71ddf1a6af36
[ "MIT" ]
null
null
null
tests/test_encrypted_fields.py
kaozdl/django-extensions
bbc3ae686d2cba9c0bb0a6b88f5e71ddf1a6af36
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import shutil import tempfile from contextlib import contextmanager import pytest from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.db import connection, models from django.forms.widgets import Textarea, TextInput from django.test import TestCa...
42.123711
147
0.676211
fed107fe85a8282872ddce7ebace8d252a1c14b1
10,604
py
Python
src/Honeybee_Set EnergyPlus Zone Thresholds.py
rdzeldenrust/Honeybee
e91e58badc1c9b082596d2cf97baeccdb6d7d0af
[ "CC-BY-3.0" ]
1
2016-03-04T09:47:42.000Z
2016-03-04T09:47:42.000Z
src/Honeybee_Set EnergyPlus Zone Thresholds.py
rdzeldenrust/Honeybee
e91e58badc1c9b082596d2cf97baeccdb6d7d0af
[ "CC-BY-3.0" ]
null
null
null
src/Honeybee_Set EnergyPlus Zone Thresholds.py
rdzeldenrust/Honeybee
e91e58badc1c9b082596d2cf97baeccdb6d7d0af
[ "CC-BY-3.0" ]
null
null
null
# By Mostapha Sadeghipour Roudsari # Sadeghipour@gmail.com # Honeybee started by Mostapha Sadeghipour Roudsari is licensed # under a Creative Commons Attribution-ShareAlike 3.0 Unported License. """ Set Zone Thresholds - Provided by Honeybee 0.0.55 Args: _HBZones:... daylightThreshold_: ... ...
38.007168
131
0.633912
ca8e1c64dfa2a60ed8a2918b805d2ff8bdbbc66d
12,033
py
Python
src/dhtmlparser/htmlelement/html_query.py
Bystroushaak/pyDHTMLParser
8444bd9f78f94b0d94ece8115a5f1c23fd71e641
[ "MIT" ]
4
2017-05-18T00:21:22.000Z
2022-02-28T02:34:34.000Z
src/dhtmlparser/htmlelement/html_query.py
Bystroushaak/pyDHTMLParser
8444bd9f78f94b0d94ece8115a5f1c23fd71e641
[ "MIT" ]
16
2015-02-14T06:27:23.000Z
2020-06-10T05:54:59.000Z
src/dhtmlparser/htmlelement/html_query.py
Bystroushaak/pyDHTMLParser
8444bd9f78f94b0d94ece8115a5f1c23fd71e641
[ "MIT" ]
2
2016-01-25T14:35:05.000Z
2020-04-12T21:02:30.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- # # Interpreter version: python 2.7 # # Imports ===================================================================== from .html_parser import HTMLParser from .html_parser import _is_str from .html_parser import _is_dict from .html_parser import _is_iterable # Variables...
34.777457
82
0.516164
f1f7f2cec8a2c5cc70310c5e0b5d04d1c5bdfc41
2,206
py
Python
python/constructor.py
IshitaTakeshi/Louds-Trie
32cb83cf9ac2cf8befa643f3265958502115949f
[ "MIT" ]
18
2015-02-27T19:30:46.000Z
2021-05-01T13:05:55.000Z
python/constructor.py
IshitaTakeshi/Louds-Trie
32cb83cf9ac2cf8befa643f3265958502115949f
[ "MIT" ]
2
2015-03-01T15:51:07.000Z
2016-10-18T02:24:41.000Z
python/constructor.py
IshitaTakeshi/Louds-Trie
32cb83cf9ac2cf8befa643f3265958502115949f
[ "MIT" ]
4
2015-07-05T11:28:30.000Z
2019-05-24T00:50:15.000Z
class Node(object): """ The node of the tree. Each node has one character as its member. """ def __init__(self, value): self.value = value self.children = [] self.visited = False def __str__(self): return str(self.value) def add_child(self, child): s...
25.952941
68
0.537625