hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
8f6156ef6884b47bc40451cdcd9dcce2fcbca3b0
10,817
py
Python
Algorithm.Python/stubs/QuantConnect/Data/__Fundamental_30.py
gaoxiaojun/Lean
9dca43bccb720d0df91e4bfc1d363b71e3a36cb5
[ "Apache-2.0" ]
2
2020-12-08T11:27:20.000Z
2021-04-06T13:21:15.000Z
Algorithm.Python/stubs/QuantConnect/Data/__Fundamental_30.py
gaoxiaojun/Lean
9dca43bccb720d0df91e4bfc1d363b71e3a36cb5
[ "Apache-2.0" ]
null
null
null
Algorithm.Python/stubs/QuantConnect/Data/__Fundamental_30.py
gaoxiaojun/Lean
9dca43bccb720d0df91e4bfc1d363b71e3a36cb5
[ "Apache-2.0" ]
1
2020-12-08T11:27:21.000Z
2020-12-08T11:27:21.000Z
from .__Fundamental_31 import * import typing import System.IO import System.Collections.Generic import System import QuantConnect.Data.Fundamental.MultiPeriodField import QuantConnect.Data.Fundamental import QuantConnect.Data import QuantConnect import datetime class GainsLossesNotAffectingRetainedEarningsBalanceShe...
32.289552
211
0.734769
59f3ea9e37ccc4c20402f15f6e222b3b44adcccb
8,660
py
Python
tkgui/advanced.py
armoha/python-lnp
aaee5582e4024f839b8155360292a427fc5639e2
[ "0BSD" ]
null
null
null
tkgui/advanced.py
armoha/python-lnp
aaee5582e4024f839b8155360292a427fc5639e2
[ "0BSD" ]
null
null
null
tkgui/advanced.py
armoha/python-lnp
aaee5582e4024f839b8155360292a427fc5639e2
[ "0BSD" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # pylint:disable=unused-wildcard-import,wildcard-import,invalid-name,attribute-defined-outside-init """Advanced tab for the TKinter GUI.""" from __future__ import print_function, unicode_literals, absolute_import import sys # pylint:disable=wrong-import-order if sys.versi...
44.870466
99
0.590185
cd79f36dac015857f3ceb8dad3382e2ba5fa8933
8,002
py
Python
lib/streamlit/elements/number_input.py
hyerrakalva/streamlit
a1714d364a6c7ce8d9e812e4092a2960b7fd26c1
[ "Apache-2.0" ]
null
null
null
lib/streamlit/elements/number_input.py
hyerrakalva/streamlit
a1714d364a6c7ce8d9e812e4092a2960b7fd26c1
[ "Apache-2.0" ]
null
null
null
lib/streamlit/elements/number_input.py
hyerrakalva/streamlit
a1714d364a6c7ce8d9e812e4092a2960b7fd26c1
[ "Apache-2.0" ]
null
null
null
# Copyright 2018-2021 Streamlit Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
37.924171
84
0.591727
78d684b2dfba8fea52e61767b0aac07646bb57a4
2,941
py
Python
dyn_sim.py
whoiszyc/lfd_lqr
219910262bc7ea3ac66feceb94d20620de4ff533
[ "Apache-2.0" ]
null
null
null
dyn_sim.py
whoiszyc/lfd_lqr
219910262bc7ea3ac66feceb94d20620de4ff533
[ "Apache-2.0" ]
null
null
null
dyn_sim.py
whoiszyc/lfd_lqr
219910262bc7ea3ac66feceb94d20620de4ff533
[ "Apache-2.0" ]
null
null
null
import numpy as np def dyn_sim_discrete_time(A, Bu, Bd, x0, u, d, t_series): """ Simulate discrete-time ODE Args: A: discrete-time A Bu: discrete-time B for control Bd: discrete-time B for disturbance x0: Initial condition in numpy array nx*1 u: Control signal in nu...
30.635417
69
0.455627
ad20e5264046deb7afacd19c4a7ce59f3ba9801b
12,782
py
Python
skysquares.py
rsiverd/kwhere
5acd561b1e58d254d80a94f8a5e1a6af6bf17547
[ "BSD-2-Clause" ]
null
null
null
skysquares.py
rsiverd/kwhere
5acd561b1e58d254d80a94f8a5e1a6af6bf17547
[ "BSD-2-Clause" ]
null
null
null
skysquares.py
rsiverd/kwhere
5acd561b1e58d254d80a94f8a5e1a6af6bf17547
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # vim: set fileencoding=utf-8 : # # Test codes to project squares onto celestial sphere, i.e., given the # center and dimensions of a rectangular FOV, directly compute RA,Dec border # coordinates. # # Rob Siverd # Created: 2013-12-13 # Last modified: 2018-05-23 #--------------------------...
33.725594
79
0.5665
f7e88c59ebb6a13fb5f44687f6d0ace960fb7372
2,853
py
Python
profiles_api/models.py
DamienPond001/profiles-rest-api-django
c0caa6467fbf2f8560c1e87a92c1ef760a129844
[ "MIT" ]
null
null
null
profiles_api/models.py
DamienPond001/profiles-rest-api-django
c0caa6467fbf2f8560c1e87a92c1ef760a129844
[ "MIT" ]
1
2021-06-04T23:54:28.000Z
2021-06-04T23:54:28.000Z
profiles_api/models.py
DamienPond001/profiles-rest-api-django
c0caa6467fbf2f8560c1e87a92c1ef760a129844
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractBaseUser, PermissionsMixin, BaseUserManager from django.conf import settings class UserProfileManager(BaseUserManager): """Manager for user profiles""" def create_user(self, email, name, password=None): """Create a new user pr...
32.793103
104
0.687347
5b90b7b11474f2ced1fdbc8422b2b3b02da3b6a5
4,238
py
Python
SketchToolPlus/ktkCmdInputHelper.py
kantoku-code/Fusion360_SketchToolPlus
a2dff5d6a40be8ababdfea8130443f936462b976
[ "MIT" ]
1
2022-03-18T13:06:29.000Z
2022-03-18T13:06:29.000Z
SketchToolPlus/ktkCmdInputHelper.py
kantoku-code/Fusion360_SketchToolPlus
a2dff5d6a40be8ababdfea8130443f936462b976
[ "MIT" ]
null
null
null
SketchToolPlus/ktkCmdInputHelper.py
kantoku-code/Fusion360_SketchToolPlus
a2dff5d6a40be8ababdfea8130443f936462b976
[ "MIT" ]
1
2021-02-22T08:01:52.000Z
2021-02-22T08:01:52.000Z
#Author-kantoku #Description-Support class for Command Inputs #Fusion360API Python import traceback import adsk.core import adsk.fusion import dataclasses # https://qiita.com/tag1216/items/13b032348c893667862a # https://www.mathpython.com/ja/dataclass/ # https://help.autodesk.com/view/fusion360/ENU/?...
30.489209
95
0.642756
0f3c6ce99a08886e312f4a66260b44e60ddf03df
2,278
py
Python
alipay/aop/api/domain/Insured.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/Insured.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/Insured.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "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 * class Insured(object): def __init__(self): self._cert_name = None self._cert_no = None self._cert_type = None self._mobile_no = None @property def cert_name(sel...
26.488372
69
0.567164
e93e2fcd0b859a9ba53b5210f77df88830a03d2d
4,829
py
Python
rlcard/envs/simpledoudizhu.py
thomasthechen/rlcard
0139d0e403b6d844a8f9107237887d73c7e8d752
[ "MIT" ]
null
null
null
rlcard/envs/simpledoudizhu.py
thomasthechen/rlcard
0139d0e403b6d844a8f9107237887d73c7e8d752
[ "MIT" ]
null
null
null
rlcard/envs/simpledoudizhu.py
thomasthechen/rlcard
0139d0e403b6d844a8f9107237887d73c7e8d752
[ "MIT" ]
null
null
null
import numpy as np from rlcard.envs import Env from rlcard.games.simpledoudizhu import Game from rlcard.games.doudizhu.utils import SPECIFIC_MAP, CARD_RANK_STR from rlcard.games.simpledoudizhu.utils import ACTION_LIST, ACTION_SPACE from rlcard.games.doudizhu.utils import encode_cards from rlcard.games.doudizhu.utils i...
37.146154
95
0.592462
3f8a8c339e554ce1c2c97af50af152937f7b8887
3,092
py
Python
msw/urls.py
AntonKuzminRussia/ms-web
968e03bc0e6fad8d04d18a88d5757007a908053f
[ "MIT" ]
null
null
null
msw/urls.py
AntonKuzminRussia/ms-web
968e03bc0e6fad8d04d18a88d5757007a908053f
[ "MIT" ]
null
null
null
msw/urls.py
AntonKuzminRussia/ms-web
968e03bc0e6fad8d04d18a88d5757007a908053f
[ "MIT" ]
null
null
null
from django.conf.urls import url, include from msw.views import mailbox, download, filters_finds, AddFilterForm, EditFilterForm, \ AddAccountForm, EditAccountForm, accounts, attachments, attachments_list, index, del_filter, del_account, \ accounts_errors from msw.api import AccountsResource, FoldersResource, Fi...
50.688525
111
0.677878
c08fd8f84401138cabeeeacd4599da7d42b90978
196
py
Python
bbgateway/__init__.py
lexotero/bbgateway
9cac7aaeb972037ef6509728dd97eef81995c4aa
[ "MIT" ]
null
null
null
bbgateway/__init__.py
lexotero/bbgateway
9cac7aaeb972037ef6509728dd97eef81995c4aa
[ "MIT" ]
null
null
null
bbgateway/__init__.py
lexotero/bbgateway
9cac7aaeb972037ef6509728dd97eef81995c4aa
[ "MIT" ]
null
null
null
from bbgateway.Order import Order from bbgateway.Shipping import Shipping from bbgateway.Billing import Billing from bbgateway.CreditCard import CreditCard from bbgateway.Merchant import Merchant
32.666667
43
0.872449
6deca5184f23bee4fe71d768300cd095faa0f97d
3,195
py
Python
tests/cloudcli_server/test_server_statistics.py
Kamatera/kamateratoolbox
259fd1de0aaa73c596871c32c4938f0c195c8179
[ "MIT" ]
null
null
null
tests/cloudcli_server/test_server_statistics.py
Kamatera/kamateratoolbox
259fd1de0aaa73c596871c32c4938f0c195c8179
[ "MIT" ]
3
2020-08-17T06:05:51.000Z
2020-08-17T09:57:19.000Z
tests/cloudcli_server/test_server_statistics.py
Kamatera/kamateratoolbox
259fd1de0aaa73c596871c32c4938f0c195c8179
[ "MIT" ]
1
2021-04-26T16:21:14.000Z
2021-04-26T16:21:14.000Z
import pytest import datetime from ..common import cloudcli_server_request, assert_only_one_server, assert_no_matching_servers def test_server_statistics_only_one_server(session_server_powered_on, session_server_powered_off): assert_only_one_server([session_server_powered_on, session_server_powered_off], "/server...
39.9375
105
0.649139
c28f541b2659adc893fb88a141e99a2bff70d954
10,936
py
Python
Training_VECTOR/Generate_Data.py
villawang/VECTOR-CARS
420c1a0ff38076d04d74a43d6c9fc63021a8a10a
[ "MIT" ]
null
null
null
Training_VECTOR/Generate_Data.py
villawang/VECTOR-CARS
420c1a0ff38076d04d74a43d6c9fc63021a8a10a
[ "MIT" ]
null
null
null
Training_VECTOR/Generate_Data.py
villawang/VECTOR-CARS
420c1a0ff38076d04d74a43d6c9fc63021a8a10a
[ "MIT" ]
null
null
null
#Dependencies import numpy as np import matplotlib.pyplot as plt import pandas as pd #Global variables for number of data points and wavenumber axis min_wavenumber = 0.1 max_wavenumber = 2000 n_points = 1000 step = (max_wavenumber-min_wavenumber)/(n_points) wavenumber_axis = np.arange(min_wavenumber, max_wavenumber, s...
28.479167
154
0.61741
67bd966bde4a922335fc028f1ab66629b46a00fe
434
py
Python
setup.py
lentinj/scrapegaff
5d90301de5a2ab7a48fbe43ef0de8dc6a6c8650f
[ "MIT" ]
null
null
null
setup.py
lentinj/scrapegaff
5d90301de5a2ab7a48fbe43ef0de8dc6a6c8650f
[ "MIT" ]
null
null
null
setup.py
lentinj/scrapegaff
5d90301de5a2ab7a48fbe43ef0de8dc6a6c8650f
[ "MIT" ]
null
null
null
from distutils.core import setup setup( name='scrapegaff', description='Giffgaff web scraper', version='1.0', author='Jamie Lentin', author_email='jm@lentin.co.uk', license='MIT', py_modules=['scrapegaff'], install_requires=[ 'docopt', 'lxml', 'requests', ],...
18.083333
43
0.559908
c375d6bb2a7a4c558871356bbb84aa8cc79ca298
5,791
py
Python
tools/build/test/rescan_header.py
lijgame/boost
ec2214a19cdddd1048058321a8105dd0231dac47
[ "BSL-1.0" ]
85
2015-02-08T20:36:17.000Z
2021-11-14T20:38:31.000Z
libs/boost/tools/build/test/rescan_header.py
flingone/frameworks_base_cmds_remoted
4509d9f0468137ed7fd8d100179160d167e7d943
[ "Apache-2.0" ]
9
2015-01-28T16:33:19.000Z
2020-04-12T23:03:28.000Z
libs/boost/tools/build/test/rescan_header.py
flingone/frameworks_base_cmds_remoted
4509d9f0468137ed7fd8d100179160d167e7d943
[ "Apache-2.0" ]
27
2015-01-28T16:33:30.000Z
2021-08-12T05:04:39.000Z
#!/usr/bin/python # Copyright 2012 Steven Watanabe # Distributed under the Boost Software License, Version 1.0. # (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) import BoostBuild t = BoostBuild.Tester(use_test_config=False) # Test a header loop that depends on (but does no...
21.770677
82
0.644448
97e97f4750f4a772c85dd9a27c7a9f60a3ed4929
1,627
py
Python
fidesctl/src/fidesctl/cli/options.py
nathanawmk/fides
1ab99b7bcec6dcc1a75df4cbcff50153e10ad115
[ "Apache-2.0" ]
null
null
null
fidesctl/src/fidesctl/cli/options.py
nathanawmk/fides
1ab99b7bcec6dcc1a75df4cbcff50153e10ad115
[ "Apache-2.0" ]
null
null
null
fidesctl/src/fidesctl/cli/options.py
nathanawmk/fides
1ab99b7bcec6dcc1a75df4cbcff50153e10ad115
[ "Apache-2.0" ]
null
null
null
""" Contains all of the options/arguments used by the CLI commands. """ from typing import Callable import click from fideslang import model_list def resource_type_argument(command: Callable) -> Callable: "Add the resource_type option." command = click.argument( "resource_type", type=click.Choice(m...
23.926471
157
0.648433
c49675edf7eec173262f9ba5c41bbf29666c7019
292
py
Python
nsl2.py
w84death/nano-shopping-list
ab7ddc243d7b6b535286316a47d8c001110fe698
[ "MIT" ]
null
null
null
nsl2.py
w84death/nano-shopping-list
ab7ddc243d7b6b535286316a47d8c001110fe698
[ "MIT" ]
null
null
null
nsl2.py
w84death/nano-shopping-list
ab7ddc243d7b6b535286316a47d8c001110fe698
[ "MIT" ]
null
null
null
import filesystem import config import helpers import mailing fs = filesystem.Filesystem() cfg = config.Config() hlp = helpers.Helpers() mail = mailing.Mailing() def main(): print_hello() def print_hello(): print('\n Nano Shopping List') print(' ------------------\n') main()
15.368421
34
0.650685
225f22bd368e3fe2c0a86d7e81b422ebb4788295
474
py
Python
document/migrations/0004_document_telegram_file_id.py
apiaas/drawer-api
e54a1bcd7c3a8ec0f66d1cd1eaac2554e4742d8d
[ "Apache-2.0" ]
null
null
null
document/migrations/0004_document_telegram_file_id.py
apiaas/drawer-api
e54a1bcd7c3a8ec0f66d1cd1eaac2554e4742d8d
[ "Apache-2.0" ]
null
null
null
document/migrations/0004_document_telegram_file_id.py
apiaas/drawer-api
e54a1bcd7c3a8ec0f66d1cd1eaac2554e4742d8d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.5 on 2016-05-11 12:10 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('document', '0003_auto_20160429_1135'), ] operations = [ migrations.AddField(...
22.571429
63
0.624473
bfe49764a155e7b533c773e9fb044cf4fc87dd66
18,280
py
Python
src/compas/geometry/predicates/predicates_3.py
XingxinHE/compas
d2901dbbacdaf4694e5adae78ba8f093f10532bf
[ "MIT" ]
235
2017-11-07T07:33:22.000Z
2022-03-25T16:20:00.000Z
src/compas/geometry/predicates/predicates_3.py
XingxinHE/compas
d2901dbbacdaf4694e5adae78ba8f093f10532bf
[ "MIT" ]
770
2017-09-22T13:42:06.000Z
2022-03-31T21:26:45.000Z
src/compas/geometry/predicates/predicates_3.py
XingxinHE/compas
d2901dbbacdaf4694e5adae78ba8f093f10532bf
[ "MIT" ]
99
2017-11-06T23:15:28.000Z
2022-03-25T16:05:36.000Z
from __future__ import print_function from __future__ import absolute_import from __future__ import division from math import fabs from compas.utilities import window from compas.geometry._core import subtract_vectors from compas.geometry._core import cross_vectors from compas.geometry._core import dot_vectors from ...
25.892351
101
0.60651
5d3ffc447428ec90abb33a386551dc6f7cdf3b82
2,974
py
Python
python/dlxapi/models/message_destination_type.py
dlens/dlxapi
189a6519240ce625d7a9cdb89e305a335d2aa045
[ "MIT" ]
null
null
null
python/dlxapi/models/message_destination_type.py
dlens/dlxapi
189a6519240ce625d7a9cdb89e305a335d2aa045
[ "MIT" ]
1
2020-08-20T17:31:43.000Z
2020-08-20T17:31:43.000Z
python/dlxapi/models/message_destination_type.py
dlens/dlxapi
189a6519240ce625d7a9cdb89e305a335d2aa045
[ "MIT" ]
null
null
null
# coding: utf-8 """ Decision Lens API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import...
28.32381
119
0.575656
ed2d0668a66b2307a8009cb0016919544bce85a3
2,460
py
Python
tests/gold_tests/thread_config/thread_1_10.test.py
TomMD/trafficserver
e1b41823f9b86e03e8495d6e6378f237da70ce24
[ "Apache-2.0" ]
3
2019-10-11T06:19:16.000Z
2020-07-24T05:46:38.000Z
tests/gold_tests/thread_config/thread_1_10.test.py
TomMD/trafficserver
e1b41823f9b86e03e8495d6e6378f237da70ce24
[ "Apache-2.0" ]
1
2021-02-23T12:43:22.000Z
2021-02-23T12:57:13.000Z
tests/gold_tests/thread_config/thread_1_10.test.py
isabella232/trafficserver
a52bd121080dd94f757e54ed65fae2188472b004
[ "Apache-2.0" ]
2
2020-07-24T05:46:43.000Z
2020-08-20T01:27:50.000Z
''' ''' # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License");...
37.272727
141
0.730488
6a649f0d85847d6a7f5c4f114d13be8f583daf11
15,537
py
Python
src/pip/_internal/req/constructors.py
jameshfisher/pip
8365bc3dcc21809f2fb86c4db5e40aaf2384c897
[ "MIT" ]
1
2020-11-29T23:59:03.000Z
2020-11-29T23:59:03.000Z
src/pip/_internal/req/constructors.py
jameshfisher/pip
8365bc3dcc21809f2fb86c4db5e40aaf2384c897
[ "MIT" ]
null
null
null
src/pip/_internal/req/constructors.py
jameshfisher/pip
8365bc3dcc21809f2fb86c4db5e40aaf2384c897
[ "MIT" ]
null
null
null
"""Backing implementation for InstallRequirement's various constructors The idea here is that these formed a major chunk of InstallRequirement's size so, moving them and support code dedicated to them outside of that class helps creates for better understandability for the rest of the code. These are meant to be used...
33.127932
79
0.62393
abaf328bcfaebb487eb1e5f1f3cd4c4e4aea431f
161
py
Python
src/python/WMCore/FwkJobReport/__init__.py
khurtado/WMCore
f74e252412e49189a92962945a94f93bec81cd1e
[ "Apache-2.0" ]
21
2015-11-19T16:18:45.000Z
2021-12-02T18:20:39.000Z
src/python/WMCore/FwkJobReport/__init__.py
khurtado/WMCore
f74e252412e49189a92962945a94f93bec81cd1e
[ "Apache-2.0" ]
5,671
2015-01-06T14:38:52.000Z
2022-03-31T22:11:14.000Z
src/python/WMCore/FwkJobReport/__init__.py
khurtado/WMCore
f74e252412e49189a92962945a94f93bec81cd1e
[ "Apache-2.0" ]
67
2015-01-21T15:55:38.000Z
2022-02-03T19:53:13.000Z
#!/usr/bin/env python """ _FwkJobRep_ Python object support and parsers for generating/manipulating Framework Job Reports. Runtime Safe. """ __all__ = []
10.0625
71
0.726708
dd124f721dffb7d2366ca06e1c8f3e08fbf04f30
655
py
Python
doc/labs/datasets/viz_volume_field.py
bpinsard/nipy
d49e8292adad6619e3dac710752131b567efe90e
[ "BSD-3-Clause" ]
236
2015-01-09T21:28:37.000Z
2022-03-27T11:51:58.000Z
doc/labs/datasets/viz_volume_field.py
bpinsard/nipy
d49e8292adad6619e3dac710752131b567efe90e
[ "BSD-3-Clause" ]
171
2015-03-23T00:31:43.000Z
2021-11-22T12:43:00.000Z
doc/labs/datasets/viz_volume_field.py
bpinsard/nipy
d49e8292adad6619e3dac710752131b567efe90e
[ "BSD-3-Clause" ]
94
2015-02-01T12:39:47.000Z
2022-01-27T06:38:19.000Z
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """ Use Mayavi to visualize the structure of a VolumeData """ from enthought.mayavi import mlab import numpy as np s = np.random.random((5, 5, 5)) # Put the side at 0 s[0, ...] = 0 s[-1, ...] = 0 s[:,...
19.264706
73
0.618321
d605980dc345f996ca4098a92664c2786fa4e76f
795
py
Python
api/users/models/users.py
julianarchila/twitter-clone-api
9c2d77c9144dcb70cf982d9987c70bc7113b7f3e
[ "MIT" ]
null
null
null
api/users/models/users.py
julianarchila/twitter-clone-api
9c2d77c9144dcb70cf982d9987c70bc7113b7f3e
[ "MIT" ]
null
null
null
api/users/models/users.py
julianarchila/twitter-clone-api
9c2d77c9144dcb70cf982d9987c70bc7113b7f3e
[ "MIT" ]
null
null
null
# Django from django.contrib.auth.models import AbstractUser from django.db import models from django.db.models.deletion import SET_NULL # Utils from api.utils.models import TwModel class User(TwModel, AbstractUser): """ Custom user model. """ email = models.EmailField( "email adress", unique...
23.382353
69
0.650314
dc823a6304aac06be4d4dc0041677ee42d19ed02
3,634
py
Python
thrid/mnist/generate.py
Lornatang/tensorflow-dcgan
4aa3ed330e3470f695c373e13bca57569abb6d41
[ "MIT" ]
null
null
null
thrid/mnist/generate.py
Lornatang/tensorflow-dcgan
4aa3ed330e3470f695c373e13bca57569abb6d41
[ "MIT" ]
null
null
null
thrid/mnist/generate.py
Lornatang/tensorflow-dcgan
4aa3ed330e3470f695c373e13bca57569abb6d41
[ "MIT" ]
null
null
null
import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data import numpy as np import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec import os mnist = input_data.read_data_sets('../data/mnist/', one_hot=True) mb_size = 64 Z_dim = 100 X_dim = mnist.train.images.shape[1] y_dim = m...
28.614173
120
0.648872
4653da3446a911d00f26e68773034b18d81c509e
1,480
py
Python
benchexec/tools/jpf.py
MartinSpiessl/benchexec
7bd6c62b0fdc6eac0b6eedbe0315d0de3992c410
[ "Apache-2.0" ]
null
null
null
benchexec/tools/jpf.py
MartinSpiessl/benchexec
7bd6c62b0fdc6eac0b6eedbe0315d0de3992c410
[ "Apache-2.0" ]
1
2020-10-16T21:22:46.000Z
2020-10-16T21:22:46.000Z
benchexec/tools/jpf.py
MartinSpiessl/benchexec
7bd6c62b0fdc6eac0b6eedbe0315d0de3992c410
[ "Apache-2.0" ]
null
null
null
# This file is part of BenchExec, a framework for reliable benchmarking: # https://github.com/sosy-lab/benchexec # # SPDX-FileCopyrightText: 2007-2020 Dirk Beyer <https://www.sosy-lab.org> # # SPDX-License-Identifier: Apache-2.0 import os import benchexec.util as util import benchexec.tools.template import benchexec....
29.6
76
0.651351
ed841dfbb48da18afbc7a2bcd30cac4072f09402
7,341
py
Python
testScript.py
guardian-network/webapp-poc
e9b2079117a52dc94b5fc5a181d1a1632ab8986c
[ "MIT" ]
1
2020-02-11T03:09:37.000Z
2020-02-11T03:09:37.000Z
testScript.py
guardian-network/webapp-poc
e9b2079117a52dc94b5fc5a181d1a1632ab8986c
[ "MIT" ]
14
2019-04-26T02:44:01.000Z
2019-10-09T18:09:48.000Z
testScript.py
guardian-network/webapp-poc
e9b2079117a52dc94b5fc5a181d1a1632ab8986c
[ "MIT" ]
2
2020-05-07T23:06:48.000Z
2020-05-11T22:54:59.000Z
#!/usr/bin/env python3 # std lib from subprocess import Popen, PIPE, DEVNULL import shlex import time import os import shutil import glob import tempfile # Third party lib from termcolor import colored # In house Lib from src.lib.settings import Settings from utils import snps_match, compare_pca, compare_regression ...
34.791469
94
0.697044
2528b8b33f10c48dd29aae52a7e999111601b212
2,410
py
Python
src/widgets/navigation.py
OlafHaag/NeuroPsyResearchApp
dda1ebb62366cccd10256349bfa22ebf02954eaa
[ "Apache-2.0", "MIT" ]
2
2021-07-02T22:00:21.000Z
2021-08-01T21:01:28.000Z
src/widgets/navigation.py
OlafHaag/UCMResearchApp
dda1ebb62366cccd10256349bfa22ebf02954eaa
[ "Apache-2.0", "MIT" ]
5
2020-08-13T19:49:27.000Z
2020-10-21T19:27:53.000Z
src/widgets/navigation.py
OlafHaag/NeuroPsyResearchApp
dda1ebb62366cccd10256349bfa22ebf02954eaa
[ "Apache-2.0", "MIT" ]
null
null
null
from kivy.app import App from kivy.metrics import dp from kivy.properties import StringProperty, NumericProperty from kivy.uix.boxlayout import BoxLayout from kivymd.uix.toolbar import MDToolbar from kivymd.uix.navigationdrawer import MDNavigationDrawer from kivymd.uix.list import OneLineIconListItem class TopBar(MD...
29.390244
83
0.645228
b380aafd4435c8b9853f17d16fb4fc806d00bd57
1,955
py
Python
docs/source/conf.py
radon-h2020/radon-repository-miner
baf5680f7b0f0e5ccb33ea23ff1214b381867cb1
[ "Apache-2.0" ]
5
2021-11-24T20:33:23.000Z
2022-03-18T02:34:39.000Z
docs/source/conf.py
radon-h2020/radon-iac-miner
c3a75d172e31cfb877e8a0c01467876aeee4a069
[ "Apache-2.0" ]
8
2020-09-14T08:57:47.000Z
2020-09-17T13:08:57.000Z
docs/source/conf.py
stefanodallapalma/iac-miner
c3a75d172e31cfb877e8a0c01467876aeee4a069
[ "Apache-2.0" ]
2
2020-12-29T10:53:16.000Z
2021-12-11T00:55:01.000Z
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
36.203704
79
0.6711
57a78ae39abfe75d895c2ba7d9f8fa5b9aeb0599
8,131
py
Python
django/contrib/gis/db/backends/oracle/operations.py
kumarmakala/Django
7724879b524711d61b7491a4a9c104d9cff2e1e3
[ "PSF-2.0", "BSD-3-Clause" ]
1
2019-02-24T18:05:51.000Z
2019-02-24T18:05:51.000Z
django/contrib/gis/db/backends/oracle/operations.py
ssk497/django
489421b01562494ab506de5d30ea97d7b6b5df30
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
django/contrib/gis/db/backends/oracle/operations.py
ssk497/django
489421b01562494ab506de5d30ea97d7b6b5df30
[ "PSF-2.0", "BSD-3-Clause" ]
1
2021-11-30T07:43:44.000Z
2021-11-30T07:43:44.000Z
""" This module contains the spatial lookup types, and the `get_geo_where_clause` routine for Oracle Spatial. Please note that WKT support is broken on the XE version, and thus this backend will not work on such platforms. Specifically, XE lacks support for an internal JVM, and Java libraries are required to use...
38.719048
119
0.650105
14bc983ca055def38f612779375b31abbb0faa68
4,819
py
Python
app/tests/cases_tests/test_dicom.py
njmhendrix/grand-challenge.org
9bc36f5e26561a78bd405e8ea5e4c0f86c95f011
[ "Apache-2.0" ]
1
2021-02-09T10:30:44.000Z
2021-02-09T10:30:44.000Z
app/tests/cases_tests/test_dicom.py
njmhendrix/grand-challenge.org
9bc36f5e26561a78bd405e8ea5e4c0f86c95f011
[ "Apache-2.0" ]
null
null
null
app/tests/cases_tests/test_dicom.py
njmhendrix/grand-challenge.org
9bc36f5e26561a78bd405e8ea5e4c0f86c95f011
[ "Apache-2.0" ]
null
null
null
import os from pathlib import Path from unittest import mock import numpy as np import pydicom import pytest from pydicom.pixel_data_handlers.gdcm_handler import ( is_available as gdcm_is_available, ) from grandchallenge.cases.image_builders.dicom import ( _get_headers_by_study, _validate_dicom_files, ...
30.11875
78
0.645155
30f8a9db5ba511687fa08d35db704b53cfce43bd
2,630
py
Python
cloudshell/networking/arista/autoload/snmp_port_attr_tables.py
QualiSystems/cloudshell-networking-arista-
011ff605244a98bb488fec985bd0e053af9855d0
[ "Apache-2.0" ]
null
null
null
cloudshell/networking/arista/autoload/snmp_port_attr_tables.py
QualiSystems/cloudshell-networking-arista-
011ff605244a98bb488fec985bd0e053af9855d0
[ "Apache-2.0" ]
9
2018-04-03T12:02:29.000Z
2021-07-08T09:07:29.000Z
cloudshell/networking/arista/autoload/snmp_port_attr_tables.py
QualiSystems/cloudshell-networking-arista-
011ff605244a98bb488fec985bd0e053af9855d0
[ "Apache-2.0" ]
2
2017-02-08T23:52:21.000Z
2018-07-04T15:33:36.000Z
from collections import defaultdict class SnmpPortAttrTables(object): def __init__(self, snmp_handler, logger): self._snmp = snmp_handler self._logger = logger self._lldp_remote_table = None self._lldp_local_table = None self._duplex_table = None self._ip_v4_table =...
34.605263
88
0.60038
4494fc4738da2e7cea9754d4eae5a7f4342d352c
11,361
py
Python
file_explorer/package.py
sharksmhi/file_explorer
0d28d16af9ef6562f16c9196821ed96c90651bf9
[ "MIT" ]
null
null
null
file_explorer/package.py
sharksmhi/file_explorer
0d28d16af9ef6562f16c9196821ed96c90651bf9
[ "MIT" ]
null
null
null
file_explorer/package.py
sharksmhi/file_explorer
0d28d16af9ef6562f16c9196821ed96c90651bf9
[ "MIT" ]
null
null
null
import datetime from file_explorer import utils import logging import pathlib logger = logging.getLogger(__name__) class InvalidClassToCompare(Exception): pass def _get_datetime(obj): if isinstance(obj, Package): return obj('datetime') elif isinstance(obj, datetime.datetime): return ob...
30.788618
124
0.536396
46fed544c94e6cda4befb301c12aa397cf565da4
1,674
py
Python
model/contact.py
BrotherGelo/Software-Testing_first_task
c46d5c000fdad2030c119e4cad3a8ba0a8d8aa3f
[ "Apache-2.0" ]
null
null
null
model/contact.py
BrotherGelo/Software-Testing_first_task
c46d5c000fdad2030c119e4cad3a8ba0a8d8aa3f
[ "Apache-2.0" ]
null
null
null
model/contact.py
BrotherGelo/Software-Testing_first_task
c46d5c000fdad2030c119e4cad3a8ba0a8d8aa3f
[ "Apache-2.0" ]
null
null
null
from sys import maxsize class Contact: def __init__(self, id=None, firstname=None, middlename=None, lastname=None, nickname=None, title=None, company=None, address=None, homephone=None, mobilephone=None, workphone=None, secondaryphone=None, all_phones_from_home_page=None, email=...
38.045455
120
0.63859
eae176b5f1c28428bfb239ebb7beac2cd78c8345
5,477
py
Python
bb-master/sandbox/lib/python3.5/site-packages/buildbot/worker/manager.py
Alecto3-D/testable-greeter
09e8e488edfb7e46cf5867b2b5a6ebe0b1929f78
[ "MIT" ]
2
2017-07-11T18:56:27.000Z
2017-07-28T14:01:12.000Z
bb-master/sandbox/lib/python3.5/site-packages/buildbot/worker/manager.py
Alecto3-D/testable-greeter
09e8e488edfb7e46cf5867b2b5a6ebe0b1929f78
[ "MIT" ]
1
2017-07-28T13:53:41.000Z
2017-07-31T15:30:40.000Z
bb-master/sandbox/lib/python3.5/site-packages/buildbot/worker/manager.py
Alecto3-D/testable-greeter
09e8e488edfb7e46cf5867b2b5a6ebe0b1929f78
[ "MIT" ]
null
null
null
# This file is part of Buildbot. Buildbot is free software: you can # redistribute it and/or modify it under the terms of the GNU General Public # License as published by the Free Software Foundation, version 2. # # This program is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without eve...
37.006757
97
0.65419
204c99cfad1749a8ad5262a437643b336bfd9e55
749
py
Python
python_exercicios/desafio079.py
sourcery-ai-bot/Python-Curso-em-Video
426fd6a0427f0d7674daf26e4be06cde9b7e618c
[ "MIT" ]
null
null
null
python_exercicios/desafio079.py
sourcery-ai-bot/Python-Curso-em-Video
426fd6a0427f0d7674daf26e4be06cde9b7e618c
[ "MIT" ]
null
null
null
python_exercicios/desafio079.py
sourcery-ai-bot/Python-Curso-em-Video
426fd6a0427f0d7674daf26e4be06cde9b7e618c
[ "MIT" ]
null
null
null
# Crie um programa onde o usuário possa digitar vários valores numéricos e cadastre-os em uma lista. # Caso o número já exista lá dentro, ele não será adicionado. # No final, serão exibidos todos os valores únicos digitados, em ordem crescente. lista = [] while True: num = int(input('Digite um número: ')) i...
35.666667
101
0.602136
124d45a43cb1f85d0097635d10a992b26c307147
13,943
py
Python
tests/test_image/test_io.py
tycoer/rflib-1
5746c668f990841bd8b8385408e8ddb268d22dd4
[ "Apache-2.0" ]
null
null
null
tests/test_image/test_io.py
tycoer/rflib-1
5746c668f990841bd8b8385408e8ddb268d22dd4
[ "Apache-2.0" ]
null
null
null
tests/test_image/test_io.py
tycoer/rflib-1
5746c668f990841bd8b8385408e8ddb268d22dd4
[ "Apache-2.0" ]
2
2021-07-30T04:22:46.000Z
2021-07-30T05:08:43.000Z
# Copyright (c) Open-MMLab. All rights reserved. import os import os.path as osp import tempfile from pathlib import Path from unittest.mock import patch import cv2 import numpy as np import pytest from numpy.testing import assert_allclose, assert_array_equal import rflib class TestIO: @classmethod def set...
44.546326
80
0.661264
9dc9b808f106724411e9627ce35ac8497581a214
4,221
py
Python
pylib/Utilities/MPIVersion.py
beardeddog/mtt-suitcase
9fedd658aacf9ed4b7ac6366e662d577fb1e6f68
[ "BSD-3-Clause-Open-MPI" ]
null
null
null
pylib/Utilities/MPIVersion.py
beardeddog/mtt-suitcase
9fedd658aacf9ed4b7ac6366e662d577fb1e6f68
[ "BSD-3-Clause-Open-MPI" ]
null
null
null
pylib/Utilities/MPIVersion.py
beardeddog/mtt-suitcase
9fedd658aacf9ed4b7ac6366e662d577fb1e6f68
[ "BSD-3-Clause-Open-MPI" ]
null
null
null
#!/usr/bin/env python # # Copyright (c) 2016-2018 Intel, Inc. All rights reserved. # $COPYRIGHT$ # # Additional copyrights may follow # # $HEADER$ # import os import sys from BaseMTTUtility import * import shlex ## @addtogroup Utilities # @{ # @section MPIVersion # Identify the name and version of MPI in-use # @} cl...
33.23622
170
0.567164
7af042a746c801f521870d3b5df439488175a200
941
py
Python
lib/tools/tools_log.py
galena503/SCR
d5b6581808b4f2fac775e7ff48b3eef548164ca1
[ "MIT" ]
null
null
null
lib/tools/tools_log.py
galena503/SCR
d5b6581808b4f2fac775e7ff48b3eef548164ca1
[ "MIT" ]
null
null
null
lib/tools/tools_log.py
galena503/SCR
d5b6581808b4f2fac775e7ff48b3eef548164ca1
[ "MIT" ]
null
null
null
from datetime import datetime class Tools_log: # error('[1,9]', '[エラー番号]', '[場所]', 'エラー文') def error(self, lv, no, ty, logstr): log = Log() if lv == 9: log.log_add(ty=ty, logfull='Fatal error - ' + no + ' - ' + logstr) log.log_add(ty=ty, logfull='Safely shuts down SCRs...
34.851852
87
0.483528
eee83375023b3b62f52d3550f0b69b40f8123f89
7,042
py
Python
Python/API/wb6Config.py
LawrenceK/webbrick
cf81416653f091bacfbf29eb6e4507db33ac0ca6
[ "BSD-3-Clause" ]
1
2019-01-21T13:10:49.000Z
2019-01-21T13:10:49.000Z
Python/API/wb6Config.py
LawrenceK/webbrick
cf81416653f091bacfbf29eb6e4507db33ac0ca6
[ "BSD-3-Clause" ]
null
null
null
Python/API/wb6Config.py
LawrenceK/webbrick
cf81416653f091bacfbf29eb6e4507db33ac0ca6
[ "BSD-3-Clause" ]
null
null
null
import wb6 import xml.dom import xml.dom.minidom class wb6Config: ToDStrs = ["Commands Disabled", "Startup", "Normal Operation", "Quiescent Operation"] # AStrs = ["Off", "Enabled"] OneWStrs = ["No Sensors Found", "Bus Good, Sensor Found", "Bus Good, Reading Good", "Bus Good, Software Error", "Bus Bad,...
37.860215
137
0.547998
9acb40d8c7a937c80c2d5967ef139022d2eef187
517
py
Python
ada/migrations/0004_auto_20210506_0726.py
praekeltfoundation/ndoh-hub
91d834ff8fe43b930a73d8debdaa0e6af78c5efc
[ "BSD-3-Clause" ]
null
null
null
ada/migrations/0004_auto_20210506_0726.py
praekeltfoundation/ndoh-hub
91d834ff8fe43b930a73d8debdaa0e6af78c5efc
[ "BSD-3-Clause" ]
126
2016-07-12T19:39:44.000Z
2022-03-24T13:39:38.000Z
ada/migrations/0004_auto_20210506_0726.py
praekeltfoundation/ndoh-hub
91d834ff8fe43b930a73d8debdaa0e6af78c5efc
[ "BSD-3-Clause" ]
3
2016-09-28T13:16:11.000Z
2020-11-07T15:32:37.000Z
# Generated by Django 2.2.20 on 2021-05-06 07:26 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("ada", "0003_remove_redirecturl_refresh_url")] operations = [ migrations.AlterField( model_name="redirecturl", name="content", ...
25.85
81
0.599613
fe8afe2d8663575e1ea3ae078a65dd33fcf0c081
17,477
py
Python
mrmap/editor/wizards.py
SvenTUM/mrmap
307e120d0d846645b56fb8f4a7a979857c860c15
[ "MIT" ]
null
null
null
mrmap/editor/wizards.py
SvenTUM/mrmap
307e120d0d846645b56fb8f4a7a979857c860c15
[ "MIT" ]
null
null
null
mrmap/editor/wizards.py
SvenTUM/mrmap
307e120d0d846645b56fb8f4a7a979857c860c15
[ "MIT" ]
null
null
null
from django.contrib.auth.decorators import login_required from django.contrib.auth.mixins import PermissionRequiredMixin from django.core.exceptions import ObjectDoesNotExist from django.forms import modelformset_factory from django.shortcuts import get_object_or_404 from django.urls import reverse, reverse_lazy from d...
40.834112
119
0.647136
489996fb12960dd7abd0158730485c7c708487be
790
py
Python
tensorflow_in_action/tfrecord_queue_and_dataset/load_mnist_tfrecord.py
wdxtub/deep-learning-note
47b83a039b80d4757e0436d5cbd2fa3037de3904
[ "MIT" ]
37
2019-03-27T20:17:05.000Z
2022-02-02T23:20:31.000Z
tensorflow_in_action/tfrecord_queue_and_dataset/load_mnist_tfrecord.py
wdxtub/deep-learning-note
47b83a039b80d4757e0436d5cbd2fa3037de3904
[ "MIT" ]
null
null
null
tensorflow_in_action/tfrecord_queue_and_dataset/load_mnist_tfrecord.py
wdxtub/deep-learning-note
47b83a039b80d4757e0436d5cbd2fa3037de3904
[ "MIT" ]
14
2019-03-31T10:28:47.000Z
2022-03-28T07:25:40.000Z
import tensorflow as tf reader = tf.TFRecordReader() filename_queue = tf.train.string_input_producer(["data/output.tfrecords"]) # 读取一个样例 _, serialized_example = reader.read(filename_queue) # 解析读入的样例 features = tf.parse_single_example( serialized_example, features={ 'image_raw': tf.FixedLenFeature([], ...
25.483871
74
0.7
6439686202de116365abc420e15948ccca469b00
1,679
py
Python
src/cryptography/hazmat/primitives/poly1305.py
dvaerum/cryptography
63dfc57fca688d0f8d0515001f249c317d5e54dc
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
15
2020-06-29T08:33:39.000Z
2022-02-12T00:28:51.000Z
src/cryptography/hazmat/primitives/poly1305.py
dvaerum/cryptography
63dfc57fca688d0f8d0515001f249c317d5e54dc
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
301
2020-10-03T10:46:31.000Z
2022-03-27T23:46:23.000Z
src/cryptography/hazmat/primitives/poly1305.py
dvaerum/cryptography
63dfc57fca688d0f8d0515001f249c317d5e54dc
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
11
2020-06-29T08:40:24.000Z
2022-02-24T17:39:16.000Z
# This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. from __future__ import absolute_import, division, print_function from cryptography import utils from cryptography.exceptions import ( ...
28.457627
79
0.641453
0b21693dec1734105fb4d728ffa59113ee551210
554
py
Python
BallGame/models/user_attributes.py
guildenstern70/BallGame
bc148330d7079d90cfd1165d81d99f4602abd996
[ "MIT" ]
null
null
null
BallGame/models/user_attributes.py
guildenstern70/BallGame
bc148330d7079d90cfd1165d81d99f4602abd996
[ "MIT" ]
null
null
null
BallGame/models/user_attributes.py
guildenstern70/BallGame
bc148330d7079d90cfd1165d81d99f4602abd996
[ "MIT" ]
null
null
null
# # The Ball Game Project # # Copyright (c) 2022 Alessio Saltarin # This software is distributed under MIT License. # See LICENSE. # from django.db import models from django.contrib.auth import get_user_model # User Attributes class UserAttributes(models.Model): has_team = models.BooleanField(default=False) ...
23.083333
75
0.703971
21b9c44f2a79ec341ca69db6febbf3a8671d478f
3,013
py
Python
caffe2/python/layers/reservoir_sampling.py
Hacky-DH/pytorch
80dc4be615854570aa39a7e36495897d8a040ecc
[ "Intel" ]
60,067
2017-01-18T17:21:31.000Z
2022-03-31T21:37:45.000Z
caffe2/python/layers/reservoir_sampling.py
Hacky-DH/pytorch
80dc4be615854570aa39a7e36495897d8a040ecc
[ "Intel" ]
66,955
2017-01-18T17:21:38.000Z
2022-03-31T23:56:11.000Z
caffe2/python/layers/reservoir_sampling.py
Hacky-DH/pytorch
80dc4be615854570aa39a7e36495897d8a040ecc
[ "Intel" ]
19,210
2017-01-18T17:45:04.000Z
2022-03-31T23:51:56.000Z
## @package reservoir_sampling # Module caffe2.python.layers.reservoir_sampling from caffe2.python import core, schema from caffe2.python.layers.layers import ModelLayer class ReservoirSampling(ModelLayer): """ Collect samples from input record w/ reservoir sampling. If you have complex data, use Pac...
33.477778
80
0.563226
065833edf0fcf95b32e6a726198fb18f64c3e218
289
py
Python
blog/models.py
shubha028/covid
be875178b511c9ffa208853392df7ca1198afdbc
[ "MIT" ]
null
null
null
blog/models.py
shubha028/covid
be875178b511c9ffa208853392df7ca1198afdbc
[ "MIT" ]
null
null
null
blog/models.py
shubha028/covid
be875178b511c9ffa208853392df7ca1198afdbc
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Listing(models.Model): business_name = models.CharField(max_length=80) business_email = models.EmailField() business_website = models.CharField(max_length=80) business_phone = models.CharField(max_length=80)
26.272727
54
0.764706
c4c8637041d7ee7ac4c5829af74a06a2edf8265b
9,802
py
Python
python/phonenumbers/__init__.py
elineda/python-phonenumbers
112c05ea2c1bf0b346494456832ffd0fef29be63
[ "Apache-2.0" ]
null
null
null
python/phonenumbers/__init__.py
elineda/python-phonenumbers
112c05ea2c1bf0b346494456832ffd0fef29be63
[ "Apache-2.0" ]
null
null
null
python/phonenumbers/__init__.py
elineda/python-phonenumbers
112c05ea2c1bf0b346494456832ffd0fef29be63
[ "Apache-2.0" ]
null
null
null
"""Python phone number parsing and formatting library Examples of use: >>> import phonenumbers >>> from phonenumbers.util import prnt # equivalent to Py3k print() >>> x = phonenumbers.parse("+442083661177", None) >>> prnt(x) Country Code: 44 National Number: 2083661177 >>> type(x) <class 'phonenumbers.phonenumber.Ph...
43.180617
103
0.600184
60fa7b05db2611c785c1eea42befce904b1038a8
5,877
py
Python
rsa_signature/rsa_sig.py
jahidali25499/BASIEM
2c6a9f5cd2d6e9a6051adf6ecd9aeb4e59ef9d9c
[ "MIT" ]
1
2021-02-09T20:35:46.000Z
2021-02-09T20:35:46.000Z
rsa_signature/rsa_sig.py
jahidali25499/BASIEM
2c6a9f5cd2d6e9a6051adf6ecd9aeb4e59ef9d9c
[ "MIT" ]
null
null
null
rsa_signature/rsa_sig.py
jahidali25499/BASIEM
2c6a9f5cd2d6e9a6051adf6ecd9aeb4e59ef9d9c
[ "MIT" ]
null
null
null
from Crypto.Signature import pkcs1_15 from Crypto.Hash import SHA256 from Crypto.PublicKey import RSA from pathlib import Path import os import sys class RSA_Signature(): def __init__(self): # Add parent directory to import module path = Path(os.getcwd()) parent_path = path.parent ...
33.392045
101
0.639952
321ab291c6f65930748b478020f515176323706c
1,101
py
Python
mean_teacher/teacher_model.py
ivanwhaf/noise-verify
eb6ec0b1f53b3246f863781031c85f1f60ef969e
[ "MIT" ]
2
2021-01-18T02:32:47.000Z
2021-04-01T05:50:41.000Z
mean_teacher/teacher_model.py
ivanwhaf/noise-verify
eb6ec0b1f53b3246f863781031c85f1f60ef969e
[ "MIT" ]
null
null
null
mean_teacher/teacher_model.py
ivanwhaf/noise-verify
eb6ec0b1f53b3246f863781031c85f1f60ef969e
[ "MIT" ]
null
null
null
""" Teacher Model: EMA Model """ class TeacherModel: """ Mean Teacher Model class """ def __init__(self, student_model, beta): self.model = student_model self.beta = beta self.teacher = {} # mean teacher self.backup = {} for name, param in self.model.named_pa...
28.973684
89
0.574024
80a91447fe371b637f7762057d42df3c2bb6729a
1,520
py
Python
src/aioamqp_consumer_best/message.py
tkukushkin/aioamqp-consumer
3283ffdbab076184d7090602dc0fc2e3c499bcd6
[ "MIT" ]
6
2018-10-23T18:29:15.000Z
2020-10-09T11:43:31.000Z
src/aioamqp_consumer_best/message.py
tkukushkin/aioamqp-consumer
3283ffdbab076184d7090602dc0fc2e3c499bcd6
[ "MIT" ]
5
2019-11-24T17:51:42.000Z
2020-01-15T14:15:27.000Z
src/aioamqp_consumer_best/message.py
tkukushkin/aioamqp-consumer
3283ffdbab076184d7090602dc0fc2e3c499bcd6
[ "MIT" ]
1
2018-10-31T09:12:55.000Z
2018-10-31T09:12:55.000Z
from __future__ import annotations from typing import Generic, TypeVar from aioamqp.channel import Channel from aioamqp.envelope import Envelope from aioamqp.properties import Properties T = TypeVar('T') U = TypeVar('U') class Message(Generic[T]): # pylint: disable=unsubscriptable-object body: T envelope...
27.636364
102
0.674342
3ed772084a5ee3ca0b9daaa2172554591b87c557
1,938
py
Python
sqlalchemy_media/optionals.py
Stacrypt/sqlalchemy-media
3159b50fc3911ec1abfb185bf4b841e0d8e54ef4
[ "MIT" ]
null
null
null
sqlalchemy_media/optionals.py
Stacrypt/sqlalchemy-media
3159b50fc3911ec1abfb185bf4b841e0d8e54ef4
[ "MIT" ]
1
2022-01-30T08:27:22.000Z
2022-01-30T08:27:22.000Z
sqlalchemy_media/optionals.py
Stacrypt/sqlalchemy-media
3159b50fc3911ec1abfb185bf4b841e0d8e54ef4
[ "MIT" ]
null
null
null
""" optionals Module ---------------- This module is a helper for handing optional packages. Optional packages are not included in ``setup.py``. So :exc:`.OptionalPackageRequirementError` will be raised if requested package is not provided. """ from .exceptions import OptionalPackageRequirementError # requests-aw...
21.533333
78
0.673891
c5a0fb537b274796db041490f0f853882e7a4f15
8,097
py
Python
Test/ML.py
ADMoreau/Software-Assurance-Defect-Localization
ff5df606fb8684c28e51345a72a51cf14d07d3ea
[ "MIT" ]
1
2018-10-27T11:15:37.000Z
2018-10-27T11:15:37.000Z
Test/ML.py
ADMoreau/Software-Assurance-Defect-Localization
ff5df606fb8684c28e51345a72a51cf14d07d3ea
[ "MIT" ]
null
null
null
Test/ML.py
ADMoreau/Software-Assurance-Defect-Localization
ff5df606fb8684c28e51345a72a51cf14d07d3ea
[ "MIT" ]
null
null
null
import pandas as pd from sklearn.model_selection import train_test_split from sklearn.neural_network import MLPClassifier from sklearn.metrics import classification_report, confusion_matrix from sklearn.ensemble import AdaBoostClassifier from sklearn.model_selection import cross_val_score from sklearn.linear_model ...
96.392857
5,241
0.797332
27efb9dd60d0df9d24b999dd8f2eb9556347bd55
87
py
Python
run.py
IvanLavuna/FlaskApp
661b5803c1ce763b00cf768bcfda3e205119bd0b
[ "Unlicense" ]
null
null
null
run.py
IvanLavuna/FlaskApp
661b5803c1ce763b00cf768bcfda3e205119bd0b
[ "Unlicense" ]
3
2020-11-04T14:03:27.000Z
2020-12-09T14:36:04.000Z
run.py
IvanLavuna/FlaskApp
661b5803c1ce763b00cf768bcfda3e205119bd0b
[ "Unlicense" ]
null
null
null
from flaskapp import app if __name__ == "__main__": app.run(debug=True, port=4200)
21.75
34
0.712644
f07d550c69f3142256117aeefd257ffb84316d79
1,710
py
Python
openr/py/openr/cli/clis/openr.py
jbemmel/openr
fb09346fb983fc1b641d90aac6e4cc3ea5ff279a
[ "MIT" ]
null
null
null
openr/py/openr/cli/clis/openr.py
jbemmel/openr
fb09346fb983fc1b641d90aac6e4cc3ea5ff279a
[ "MIT" ]
1
2021-08-21T07:48:37.000Z
2021-08-21T07:48:37.000Z
openr/py/openr/cli/clis/openr.py
LaudateCorpus1/openr
4190f77cb71ba8a413e172c3a617baddd758b86c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # pyre-strict import click from bunch import Bunch from openr.cli.clis.decision import DecisionRibPolicyCli, ReceivedR...
36.382979
84
0.711696
c8d6e2cbdc09c7f4c680ee73eba1f68da02a3839
334
py
Python
workspaces/ground-station/test-client.py
yar-sac/yar-software
c5738cc16561049002e5325f2eac49f3d0b89051
[ "MIT" ]
null
null
null
workspaces/ground-station/test-client.py
yar-sac/yar-software
c5738cc16561049002e5325f2eac49f3d0b89051
[ "MIT" ]
null
null
null
workspaces/ground-station/test-client.py
yar-sac/yar-software
c5738cc16561049002e5325f2eac49f3d0b89051
[ "MIT" ]
null
null
null
# a test client, to see if data is being sent correctly # thanks https://realpython.com/python-sockets/ import socket HOST = '192.168.0.36' PORT = 3000 SOCKET = socket.socket(socket.AF_INET, socket.SOCK_STREAM) SOCKET.connect((HOST, PORT)) while True: data = SOCKET.recv(1024) data = data.decode() ...
16.7
58
0.691617
d159e7a7eff804e5afc6b1dfa5dd79b45d1bf425
14,448
py
Python
scripts/imgtool/image.py
soburi/mcuboot
2b8a695be1c1ea84e7a5565be69fdc4505202b2b
[ "Apache-2.0" ]
null
null
null
scripts/imgtool/image.py
soburi/mcuboot
2b8a695be1c1ea84e7a5565be69fdc4505202b2b
[ "Apache-2.0" ]
2
2021-09-28T05:58:48.000Z
2022-02-26T11:56:03.000Z
scripts/imgtool/image.py
soburi/mcuboot
2b8a695be1c1ea84e7a5565be69fdc4505202b2b
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Nordic Semiconductor ASA # Copyright 2017 Linaro Limited # Copyright 2019 Arm Limited # # 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/L...
36.392947
100
0.558486
3459d3f92bf75c50c7fcf219f3da27727c73cc84
6,623
py
Python
ibidem/advent_of_code/board.py
mortenlj/advent_of_code
738c1f3116f6a817a67183f076e1fe93680ea407
[ "MIT" ]
null
null
null
ibidem/advent_of_code/board.py
mortenlj/advent_of_code
738c1f3116f6a817a67183f076e1fe93680ea407
[ "MIT" ]
null
null
null
ibidem/advent_of_code/board.py
mortenlj/advent_of_code
738c1f3116f6a817a67183f076e1fe93680ea407
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 import io import re import textwrap import numpy as np GROW_SIZE = 200 class TooSmall(Exception): """The current grid is too small for the wanted operation""" pass class Board(object): def __init__(self, size_x=None, size_y=None, do_translate=True, flip=False,...
32.465686
109
0.543409
8076711f3c940307ce885d9e0b25ea3b08ea8308
20
py
Python
tcp/plc/scadasim_plc/__init__.py
PMaynard/ndn-water-treatment-testbed
926db68237b06f43f6e736f035201ed71fc153bc
[ "MIT" ]
3
2021-01-20T00:54:09.000Z
2021-06-02T01:54:02.000Z
tcp/plc/scadasim_plc/__init__.py
PMaynard/ndn-water-treatment-testbed
926db68237b06f43f6e736f035201ed71fc153bc
[ "MIT" ]
null
null
null
tcp/plc/scadasim_plc/__init__.py
PMaynard/ndn-water-treatment-testbed
926db68237b06f43f6e736f035201ed71fc153bc
[ "MIT" ]
null
null
null
from plc import PLC
10
19
0.8
32a8770e207de2c0141444510f90c1ac7cbd3f8a
4,691
py
Python
app/dishes/tests/test_views.py
asawicki96/eMenu
39850ea9a25932462fdb12c7f6b1341ad94266bc
[ "MIT" ]
null
null
null
app/dishes/tests/test_views.py
asawicki96/eMenu
39850ea9a25932462fdb12c7f6b1341ad94266bc
[ "MIT" ]
null
null
null
app/dishes/tests/test_views.py
asawicki96/eMenu
39850ea9a25932462fdb12c7f6b1341ad94266bc
[ "MIT" ]
null
null
null
from django.test import TestCase from django.urls import reverse from django.contrib.auth import get_user_model from django.utils.text import slugify from datetime import timedelta import tempfile import os from PIL import Image from rest_framework.test import APIClient from rest_framework import status from dishes....
29.689873
97
0.658069
fa1b3e8e15cc0e5ef92d4f92795d4d5d5c9c1d0c
402
py
Python
uni_ticket/migrations/0049_ticketassignment_readonly.py
biotech2021/uniTicket
8c441eac18e67a983e158326b1c4b82f00f1f1ef
[ "Apache-2.0" ]
15
2019-09-06T06:47:08.000Z
2022-01-17T06:39:54.000Z
uni_ticket/migrations/0049_ticketassignment_readonly.py
biotech2021/uniTicket
8c441eac18e67a983e158326b1c4b82f00f1f1ef
[ "Apache-2.0" ]
69
2019-09-06T12:03:19.000Z
2022-03-26T14:30:53.000Z
uni_ticket/migrations/0049_ticketassignment_readonly.py
biotech2021/uniTicket
8c441eac18e67a983e158326b1c4b82f00f1f1ef
[ "Apache-2.0" ]
13
2019-09-11T10:54:20.000Z
2021-11-23T09:09:19.000Z
# Generated by Django 2.2.5 on 2019-09-06 13:45 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('uni_ticket', '0048_auto_20190904_1028'), ] operations = [ migrations.AddField( model_name='ticketassignment', name='...
21.157895
53
0.614428
a8b10ca15acc90a5619c23aacf96d53daf43c857
3,679
py
Python
caer/color/_hls.py
kmamine/caer
d78eccc40d259371a68f834addb6b5b53ce5f340
[ "MIT" ]
3
2021-01-23T19:53:28.000Z
2021-01-23T19:53:53.000Z
caer/color/_hls.py
kmamine/caer
d78eccc40d259371a68f834addb6b5b53ce5f340
[ "MIT" ]
null
null
null
caer/color/_hls.py
kmamine/caer
d78eccc40d259371a68f834addb6b5b53ce5f340
[ "MIT" ]
null
null
null
# _____ ______ _____ # / ____/ /\ | ____ | __ \ # | | / \ | |__ | |__) | Caer - Modern Computer Vision # | | / /\ \ | __| | _ / Languages: Python, C, C++ # | |___ / ____ \ | |____ | | \ \ http://github.com/jasmcaus/caer # \_____\/_/ \_ \______ |_| \_\ # Licensed ...
25.908451
152
0.603968
32a08a0b150c70894eaa4c5384a2135d69a75b30
787
py
Python
solutions/Day15_LinkedList/Day15_LinkedList.py
arsho/Hackerrank_30_Days_of_Code_Solutions
840e5cbe8025b4488a97d1a51313c19c4e7e91ed
[ "MIT" ]
2
2019-04-11T20:27:19.000Z
2020-03-24T11:40:27.000Z
solutions/Day15_LinkedList/Day15_LinkedList.py
arsho/Hackerrank_30_Days_of_Code_Solutions
840e5cbe8025b4488a97d1a51313c19c4e7e91ed
[ "MIT" ]
null
null
null
solutions/Day15_LinkedList/Day15_LinkedList.py
arsho/Hackerrank_30_Days_of_Code_Solutions
840e5cbe8025b4488a97d1a51313c19c4e7e91ed
[ "MIT" ]
1
2020-02-20T16:39:39.000Z
2020-02-20T16:39:39.000Z
''' Title : Day 15: Linked List Domain : Tutorials Author : Ahmedur Rahman Shovon Created : 03 April 2019 ''' class Node: def __init__(self,data): self.data = data self.next = None class Solution: def display(self,head): current = head while current: ...
21.861111
39
0.562897
7420f1baed0a8ba91d2f0467ff3b274b6fd8f739
6,444
py
Python
altaudit/sections/pve.py
clegg89/altaudit
353484c2b39db13ecb294a55d43dd2e4e0ef6541
[ "MIT" ]
null
null
null
altaudit/sections/pve.py
clegg89/altaudit
353484c2b39db13ecb294a55d43dd2e4e0ef6541
[ "MIT" ]
9
2020-09-23T14:47:12.000Z
2021-04-07T22:11:16.000Z
altaudit/sections/pve.py
clegg89/altaudit
353484c2b39db13ecb294a55d43dd2e4e0ef6541
[ "MIT" ]
null
null
null
"""Pull PvE Data from API""" from ..models import RAID_DIFFICULTIES from ..utility import Utility from .raids import VALID_RAIDS "Achievement ID for 200 World Quests Completed (WQ count)" WORLD_QUESTS_COMPLETED_ACHIEVEMENT_ID = 11127 """ Weekly Event Quest IDs To find these I think use: https://www.wowhead.com/que...
41.844156
124
0.66977
cb60bb00d0df6ffb5b6f53e978f68536310fef2a
12,194
py
Python
tests/test_marshmallow.py
abdelrahman-t/falcontyping
738f71a4a74a22ca16739436ebb7d78d9664057e
[ "MIT" ]
1
2020-05-29T01:16:58.000Z
2020-05-29T01:16:58.000Z
tests/test_marshmallow.py
abdelrahman-t/falcontyping
738f71a4a74a22ca16739436ebb7d78d9664057e
[ "MIT" ]
168
2019-10-24T03:58:13.000Z
2021-08-03T03:23:07.000Z
tests/test_marshmallow.py
abdelrahman-t/falcontyping
738f71a4a74a22ca16739436ebb7d78d9664057e
[ "MIT" ]
null
null
null
"""Tests.""" from typing import Union import falcon import falcon.testing import pytest from marshmallow import Schema, fields from falcontyping import TypedAPI, TypedResource from falcontyping.base.exceptions import TypeValidationError class Model(Schema): field = fields.Integer() class AnotherModel(Schema)...
42.785965
117
0.705839
a818be0006bce842b61fe65100de996ba663dd9f
4,386
py
Python
tfx/orchestration/portable/data_types.py
johnPertoft/tfx
c6335684a54651adbcbe50aa52918b9b9948326e
[ "Apache-2.0" ]
null
null
null
tfx/orchestration/portable/data_types.py
johnPertoft/tfx
c6335684a54651adbcbe50aa52918b9b9948326e
[ "Apache-2.0" ]
null
null
null
tfx/orchestration/portable/data_types.py
johnPertoft/tfx
c6335684a54651adbcbe50aa52918b9b9948326e
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
47.16129
80
0.763566
d720c6ab582f2bd5e7885e64e8abad43f67d3548
510
py
Python
ch17-形态学转换/17.dilate.py
makelove/OpenCV-Python-Tutorial
e428d648f7aa50d6a0fb4f4d0fb1bd1a600fef41
[ "MIT" ]
2,875
2016-10-21T01:33:22.000Z
2022-03-30T12:15:28.000Z
ch17-形态学转换/17.dilate.py
makelove/OpenCV-Python-Tutorial
e428d648f7aa50d6a0fb4f4d0fb1bd1a600fef41
[ "MIT" ]
12
2017-07-18T14:24:27.000Z
2021-07-04T10:32:25.000Z
ch17-形态学转换/17.dilate.py
makelove/OpenCV-Python-Tutorial
e428d648f7aa50d6a0fb4f4d0fb1bd1a600fef41
[ "MIT" ]
1,066
2017-03-11T01:43:28.000Z
2022-03-29T14:52:41.000Z
# -*- coding: utf-8 -*- ''' 与腐 相反 与卷积核对应的原图像的像素值中只 有一个是 1 中心元 素的像素值就是 1。所以 个操作会增加图像中的白色区域 前景 。一般在去 噪声时先用腐 再用膨胀。因为腐 在去掉白噪声的同时 也会使前景对 变 小。所以我们再对他 膨胀。 时噪声已经 去 了 不会再回来了 但是 前景 在并会增加。膨胀也可以用来 接两个分开的物体。 ''' import cv2 import numpy as np img = cv2.imread('j.png', 0) cv2.imshow('j.png', img) print(img.shape) kernel = np.ones...
24.285714
167
0.707843
043023562f8e95e3cd060f24a2dc7aceaaffb8d5
12,568
py
Python
cinder/volume/drivers/block_device.py
liangintel/stx-cinder
f4c43797a3f8c0caebfd8fb67244c084d26d9741
[ "Apache-2.0" ]
null
null
null
cinder/volume/drivers/block_device.py
liangintel/stx-cinder
f4c43797a3f8c0caebfd8fb67244c084d26d9741
[ "Apache-2.0" ]
2
2018-10-25T13:04:01.000Z
2019-08-17T13:15:24.000Z
cinder/volume/drivers/block_device.py
liangintel/stx-cinder
f4c43797a3f8c0caebfd8fb67244c084d26d9741
[ "Apache-2.0" ]
2
2018-10-17T13:32:50.000Z
2018-11-08T08:39:39.000Z
# Copyright (c) 2013 Mirantis, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
38.434251
79
0.624443
c379cc0efe7168248d5937ab22fc5adcea115724
18,741
py
Python
build_database/build_database/scripts/load_build_database.py
avsej/build-infra
700a1785fed398b2349af37c016184eb5c7553f9
[ "Apache-2.0" ]
null
null
null
build_database/build_database/scripts/load_build_database.py
avsej/build-infra
700a1785fed398b2349af37c016184eb5c7553f9
[ "Apache-2.0" ]
null
null
null
build_database/build_database/scripts/load_build_database.py
avsej/build-infra
700a1785fed398b2349af37c016184eb5c7553f9
[ "Apache-2.0" ]
null
null
null
""" Program to do initial data load for the build database. Keep document with all branches for build-team-manifests and latest-seen commit for each branch Start with a manifest from build-team-manifests, extract build entry from this Next, step through Git history of build-team-manifests, and use each commit to gen...
38.325153
78
0.620991
4843f4aa045e2167f40c16759693abda6921ea68
9,412
py
Python
gcs_client/bucket.py
Akrog/gcs-client
ccb9f45044cc7c2d37e3d8a6bf655269b9b21329
[ "Apache-2.0" ]
17
2015-11-19T20:59:56.000Z
2020-04-24T19:55:44.000Z
gcs_client/bucket.py
Akrog/gcs-client
ccb9f45044cc7c2d37e3d8a6bf655269b9b21329
[ "Apache-2.0" ]
2
2016-11-19T12:22:16.000Z
2017-03-25T20:04:20.000Z
gcs_client/bucket.py
Akrog/gcs-client
ccb9f45044cc7c2d37e3d8a6bf655269b9b21329
[ "Apache-2.0" ]
4
2017-03-21T03:21:07.000Z
2018-08-16T14:27:52.000Z
# -*- coding: utf-8 -*- # Copyright 2015 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...
45.033493
79
0.618253
2b9d05c13b34b57b8c9ce243032bfc146a21b8fd
21,794
py
Python
personae/core/levelup.py
mtttech/Yari
8cea3219141fb302e461ae666d174b6191f3149b
[ "MIT" ]
1
2020-08-02T03:07:17.000Z
2020-08-02T03:07:17.000Z
personae/core/levelup.py
mtttech/Yari
8cea3219141fb302e461ae666d174b6191f3149b
[ "MIT" ]
3
2020-06-06T13:07:50.000Z
2020-08-11T08:38:12.000Z
personae/core/levelup.py
mtttech/Yari
8cea3219141fb302e461ae666d174b6191f3149b
[ "MIT" ]
null
null
null
from dataclasses import dataclass from .errors import AbilityScoreImprovementError, FlagParserError from .sources import Load from .utils import _ok, _warn, get_character_feats, prompt class FeatOptionParser: """Generates and parses feat characteristic flags by feat. FLAG OPTION PARSER SYSTEM PIPEBAR: ...
40.966165
101
0.510049
c8400e35c75cc31a60f85dcf6e8ad1dbb4eefb12
4,251
py
Python
chainermn/links/n_step_rnn.py
mingxiaoh/chainermn
3b1a4a62a70147bb7420c693e4132883a6e67da0
[ "MIT" ]
null
null
null
chainermn/links/n_step_rnn.py
mingxiaoh/chainermn
3b1a4a62a70147bb7420c693e4132883a6e67da0
[ "MIT" ]
null
null
null
chainermn/links/n_step_rnn.py
mingxiaoh/chainermn
3b1a4a62a70147bb7420c693e4132883a6e67da0
[ "MIT" ]
null
null
null
import chainer import chainer.functions.connection as fconn import chainer.links.connection as lconn import chainermn.functions # Chainer <=v3 CHAINER_VERSION_OLD_RNN = (int(chainer.__version__.split('.')[0]) <= 3) if CHAINER_VERSION_OLD_RNN: _rnn_n_cells = { fconn.n_step_gru.n_step_bigru: 1, fco...
36.646552
78
0.639849
ed17b2169184e9c1c94d90d310a6587cfe2a0b93
14,071
py
Python
Dataset + Code/Restaurant Reviews/train_cnn.py
fajim1/Capstone
8a3225a30d3688361143f6d1dfdab259938e73e6
[ "Apache-2.0" ]
2
2020-12-01T00:13:45.000Z
2021-05-03T01:55:35.000Z
Dataset + Code/Restaurant Reviews/train_cnn.py
fajim1/Capstone
8a3225a30d3688361143f6d1dfdab259938e73e6
[ "Apache-2.0" ]
null
null
null
Dataset + Code/Restaurant Reviews/train_cnn.py
fajim1/Capstone
8a3225a30d3688361143f6d1dfdab259938e73e6
[ "Apache-2.0" ]
null
null
null
# Download the Stanford Sentiment Treebank from https://gluebenchmark.com/tasks and unzip it in the current working dir # Download glove.6B.zip from https://nlp.stanford.edu/projects/glove/, unzip it and move glove.6B.50d.txt to the # current working directory. # %% --------------------------------------- Imports ----...
38.132791
182
0.623978
8de71f87b2316f4aa6267162aea44466fae4882d
2,698
py
Python
urls.py
mir355/virtmgr
3bb340d464b858113f50e24d93eec7114d82f01c
[ "Apache-2.0" ]
27
2015-04-13T15:06:29.000Z
2021-08-02T05:49:03.000Z
urls.py
mir355/virtmgr
3bb340d464b858113f50e24d93eec7114d82f01c
[ "Apache-2.0" ]
1
2020-07-01T09:52:49.000Z
2020-07-01T09:52:49.000Z
urls.py
mir355/virtmgr
3bb340d464b858113f50e24d93eec7114d82f01c
[ "Apache-2.0" ]
17
2015-03-10T21:37:33.000Z
2020-12-24T09:12:11.000Z
from django.conf.urls.defaults import patterns, include, url from virtmgr import settings from registration.forms import RegistrationFormUniqueEmail from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', url(r'^i18n/', include('django.conf.urls.i18n')), # Users url(r'^user/re...
37.472222
194
0.62046
6693388a9a7de28677a51b891aadf7c94fb39bfa
4,378
py
Python
MeanStd.py
kimandsharp/bmb510
5446cd168709dd7f5d6cee66f596e57d3632af3d
[ "BSD-2-Clause" ]
1
2019-05-29T02:10:45.000Z
2019-05-29T02:10:45.000Z
MeanStd.py
kimandsharp/bmb510
5446cd168709dd7f5d6cee66f596e57d3632af3d
[ "BSD-2-Clause" ]
null
null
null
MeanStd.py
kimandsharp/bmb510
5446cd168709dd7f5d6cee66f596e57d3632af3d
[ "BSD-2-Clause" ]
null
null
null
""" implement bayesian estimation of mean of population, using exact (t-distribution) and approximation (Gaussian) posterior pdf and chi-sq posterior pdf of std. dev """ from math import sqrt, exp,log import numpy as np import matplotlib.pyplot as plt import sys from SciInf_utilities import * #import pymol_cgo #------...
29.986301
93
0.653723
841ffa0018c99aaf3f245516866435e3f607bb17
1,385
py
Python
tests/test_context.py
ZipFile/fiicha
37c18decb32583410ca69451168a74612bf5739f
[ "BSD-2-Clause" ]
null
null
null
tests/test_context.py
ZipFile/fiicha
37c18decb32583410ca69451168a74612bf5739f
[ "BSD-2-Clause" ]
null
null
null
tests/test_context.py
ZipFile/fiicha
37c18decb32583410ca69451168a74612bf5739f
[ "BSD-2-Clause" ]
null
null
null
from contextvars import ContextVar from fiicha.context import FeatureFlagsContext from fiicha.core import FeatureFlag, FeatureFlags def test_ctx() -> None: class TestFeatureFlags(FeatureFlags): test = FeatureFlag("Enable test feature.") tset = FeatureFlag("Erutaef tset elbane.") root = TestF...
30.777778
72
0.631769
8a76faf927d26ff6c5e4cc72745b6347faf10ef2
1,077
py
Python
mi/dataset/driver/flord_l_wfp/sio/test/test_flord_l_wfp_sio_telemetered_driver.py
rmanoni/mi-dataset
c1012a0cd8f2ea075e008cdd1ab291ed54f44d43
[ "BSD-2-Clause" ]
null
null
null
mi/dataset/driver/flord_l_wfp/sio/test/test_flord_l_wfp_sio_telemetered_driver.py
rmanoni/mi-dataset
c1012a0cd8f2ea075e008cdd1ab291ed54f44d43
[ "BSD-2-Clause" ]
null
null
null
mi/dataset/driver/flord_l_wfp/sio/test/test_flord_l_wfp_sio_telemetered_driver.py
rmanoni/mi-dataset
c1012a0cd8f2ea075e008cdd1ab291ed54f44d43
[ "BSD-2-Clause" ]
null
null
null
#!/home/mworden/uframes/ooi/uframe-1.0/python/bin/python __author__ = 'mworden' from mi.core.log import get_logger log = get_logger() from mi.idk.config import Config import unittest import os from mi.dataset.driver.flord_l_wfp.sio.flord_l_wfp_sio_telemetered_driver import parse from mi.dataset.dataset_driver impo...
25.642857
99
0.70195
d04f1091c57d7671ffeaef97fa570cc1de2225b1
10,512
py
Python
freezer_api/api/v1/jobs.py
openstack/freezer-api
8a477ffd8bab1c1f74061e1a9cb6b8b5573cba7c
[ "Apache-2.0" ]
22
2015-10-18T02:53:47.000Z
2021-09-19T10:38:12.000Z
freezer_api/api/v1/jobs.py
stackforge/freezer-api
6c06dc58f3cf897cc4134b040d02264203ce8e9b
[ "Apache-2.0" ]
2
2017-03-13T15:43:14.000Z
2017-07-26T10:22:14.000Z
freezer_api/api/v1/jobs.py
stackforge/freezer-api
6c06dc58f3cf897cc4134b040d02264203ce8e9b
[ "Apache-2.0" ]
20
2016-03-08T08:34:56.000Z
2020-10-13T06:50:05.000Z
""" Copyright 2015 Hewlett-Packard 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, softwar...
34.241042
79
0.590088
add5e0d394034d89b2d47c314ff1938294deb6ea
223
py
Python
mmdet/core/bbox/match_costs/__init__.py
evgps/mmdetection_trashcan
aaf4237c2c0d473425cdc7b741d3009177b79751
[ "Apache-2.0" ]
367
2022-01-14T03:32:25.000Z
2022-03-31T04:48:20.000Z
mmdet/core/bbox/match_costs/__init__.py
evgps/mmdetection_trashcan
aaf4237c2c0d473425cdc7b741d3009177b79751
[ "Apache-2.0" ]
170
2020-09-08T12:29:06.000Z
2022-03-31T18:28:09.000Z
mmdet/core/bbox/match_costs/__init__.py
evgps/mmdetection_trashcan
aaf4237c2c0d473425cdc7b741d3009177b79751
[ "Apache-2.0" ]
61
2021-07-30T07:51:41.000Z
2022-03-30T14:40:02.000Z
from .builder import build_match_cost from .match_cost import BBoxL1Cost, ClassificationCost, FocalLossCost, IoUCost __all__ = [ 'build_match_cost', 'ClassificationCost', 'BBoxL1Cost', 'IoUCost', 'FocalLossCost' ]
27.875
78
0.7713
2b3c93cfce3f8c9450fdffdd8609de8e272aa024
9,209
py
Python
streamlit/datacracy_slack.py
cnhhoang850/atom-assignments
1b792660c3113ca09efd254289b089fc52928344
[ "MIT" ]
null
null
null
streamlit/datacracy_slack.py
cnhhoang850/atom-assignments
1b792660c3113ca09efd254289b089fc52928344
[ "MIT" ]
null
null
null
streamlit/datacracy_slack.py
cnhhoang850/atom-assignments
1b792660c3113ca09efd254289b089fc52928344
[ "MIT" ]
null
null
null
import streamlit as st import json import requests import sys import os import pandas as pd import numpy as np import re from datetime import datetime as dt st.set_page_config(layout="wide") st.title('DataCracy ATOM Tiến Độ Lớp Học') with open('./env_variable.json','r') as j: json_data = json.load(j) #SLACK_BEA...
48.21466
175
0.659572
02ca677272a85e64267d410d8b73b323c0e2f96b
9,556
py
Python
ProxiesClean/first_Grade_Clean.py
Liangchengdeye/IPProxiesPool
0de3fc636901b8a2f794e7be4183662edd3d5886
[ "Apache-2.0" ]
1
2019-02-22T02:03:27.000Z
2019-02-22T02:03:27.000Z
ProxiesClean/first_Grade_Clean.py
Liangchengdeye/IPProxiesPool
0de3fc636901b8a2f794e7be4183662edd3d5886
[ "Apache-2.0" ]
null
null
null
ProxiesClean/first_Grade_Clean.py
Liangchengdeye/IPProxiesPool
0de3fc636901b8a2f794e7be4183662edd3d5886
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 """ @version: v1.0 @author: W_H_J @license: Apache Licence @contact: 415900617@qq.com @software: PyCharm @file: first_Grade_Clean.py @time: 2019/1/18 10:28 @describe: 代理IP,初次验证处理-多进程调用 """ import json import random import sys import os import time from multiprocessing...
37.920635
119
0.55023
564a38131cc8f79134e13569497248d5190bd191
19,507
py
Python
ArgditLib/EntrezRecordParser.py
phglab/ARGDIT
913fe0779254eac006e33d3d8c39c2ecd489780d
[ "MIT" ]
13
2018-12-12T10:17:18.000Z
2020-09-16T17:20:20.000Z
ArgditLib/EntrezRecordParser.py
phglab/ARGDIT
913fe0779254eac006e33d3d8c39c2ecd489780d
[ "MIT" ]
null
null
null
ArgditLib/EntrezRecordParser.py
phglab/ARGDIT
913fe0779254eac006e33d3d8c39c2ecd489780d
[ "MIT" ]
null
null
null
'''Collection of data handle parser classes NCBI database searching''' from .CDSRegion import CDSRegion from .Constants import NT_ACC_NUM_PATTERN, PROTEIN_ACC_NUM_PATTERN from .ProteinInfo import ProteinInfo from .Utils import extract_protein_acc_num, trim_version from Bio import Entrez from Bio import SeqIO from xml....
41.860515
119
0.60732
313ceeedf3f108f109f252654ee44cdf01785d21
16,501
py
Python
torchnlp/text_encoders/subword_text_tokenizer.py
floscha/PyTorch-NLP
aa23d5fa6733c724bec620ea5c94fe33e6ed6f78
[ "BSD-3-Clause" ]
3
2018-06-27T13:43:47.000Z
2022-03-11T05:11:13.000Z
torchnlp/text_encoders/subword_text_tokenizer.py
floscha/PyTorch-NLP
aa23d5fa6733c724bec620ea5c94fe33e6ed6f78
[ "BSD-3-Clause" ]
null
null
null
torchnlp/text_encoders/subword_text_tokenizer.py
floscha/PyTorch-NLP
aa23d5fa6733c724bec620ea5c94fe33e6ed6f78
[ "BSD-3-Clause" ]
null
null
null
# coding=utf-8 # Copyright 2017 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
39.194774
95
0.623841
b2be6934490b30ae4750b642f6c0595a73b88390
154
py
Python
finance/modules/dashboard/factories/__init__.py
vsanasc/sbrain
c0d0c24ea347d6bd0f34b9fdc3d7f01563ba0461
[ "BSD-3-Clause" ]
1
2019-10-22T19:17:59.000Z
2019-10-22T19:17:59.000Z
finance/modules/dashboard/factories/__init__.py
vsanasc/sbrain
c0d0c24ea347d6bd0f34b9fdc3d7f01563ba0461
[ "BSD-3-Clause" ]
null
null
null
finance/modules/dashboard/factories/__init__.py
vsanasc/sbrain
c0d0c24ea347d6bd0f34b9fdc3d7f01563ba0461
[ "BSD-3-Clause" ]
null
null
null
from .table import ( TableDatabaseRepoFactory, TableCacheRepoFactory, TableRepoFactory, GetTableInteractorFactory, TableViewFactory )
19.25
30
0.75974
1c80ba98fb27d3deac5844fc5007a60d94a4c4ba
390
py
Python
chapter11-iface-abc/drum.py
cgDeepLearn/fluentpython
ff89ad5a7da59c71f57b6392c9f5d5c6178e0475
[ "MIT" ]
1
2019-11-23T05:57:02.000Z
2019-11-23T05:57:02.000Z
chapter11-iface-abc/drum.py
cgDeepLearn/fluentpython
ff89ad5a7da59c71f57b6392c9f5d5c6178e0475
[ "MIT" ]
null
null
null
chapter11-iface-abc/drum.py
cgDeepLearn/fluentpython
ff89ad5a7da59c71f57b6392c9f5d5c6178e0475
[ "MIT" ]
1
2019-11-23T05:57:43.000Z
2019-11-23T05:57:43.000Z
# -*-coding: utf-8 -*- """ drum.py TumblingDrum是Tombola的子类 """ from random import shuffle from tombola import Tombola class TumblingDrum(Tombola): def __init__(self, iterable): self._balls = [] self.load(iterable) def load(self, iterable): self._balls.extend(iterable) shuff...
16.25
36
0.638462
1e3fcdc266745b6f9c57d4953d032f926a10db5a
4,574
py
Python
qa/rpc-tests/multi_rpc.py
sajeerzeji/ohcoin
2993c9924fd3037f16408bddfddf5e85a703c87f
[ "MIT" ]
null
null
null
qa/rpc-tests/multi_rpc.py
sajeerzeji/ohcoin
2993c9924fd3037f16408bddfddf5e85a703c87f
[ "MIT" ]
null
null
null
qa/rpc-tests/multi_rpc.py
sajeerzeji/ohcoin
2993c9924fd3037f16408bddfddf5e85a703c87f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Test multiple rpc user config option rpcauth # from test_framework.test_framework import BitcoinTest...
37.801653
129
0.645168
ac5d1bbb6e97d0ecf97a5257d5dd661960bfdc7d
599
py
Python
ipcount/count/migrations/0001_initial.py
kelly-ry4n/django-ip-count
b0267298190b85ef24a737ac8475004bd9856922
[ "MIT" ]
null
null
null
ipcount/count/migrations/0001_initial.py
kelly-ry4n/django-ip-count
b0267298190b85ef24a737ac8475004bd9856922
[ "MIT" ]
null
null
null
ipcount/count/migrations/0001_initial.py
kelly-ry4n/django-ip-count
b0267298190b85ef24a737ac8475004bd9856922
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.5 on 2016-04-16 17:02 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Visitor...
23.96
114
0.579299
a62398577ec9cc2475679e610da7414ccf7e2a66
6,626
py
Python
gaussian_wrangler/plot_steps.py
team-mayes/nrel_tools
551f92f2c5448e7888bb2fb11bd04243b26da4a9
[ "MIT" ]
1
2021-05-26T15:29:45.000Z
2021-05-26T15:29:45.000Z
gaussian_wrangler/plot_steps.py
team-mayes/nrel_tools
551f92f2c5448e7888bb2fb11bd04243b26da4a9
[ "MIT" ]
2
2020-08-12T17:05:01.000Z
2021-05-30T00:32:29.000Z
gaussian_wrangler/plot_steps.py
team-mayes/nrel_tools
551f92f2c5448e7888bb2fb11bd04243b26da4a9
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ """ import os import sys import argparse import numpy as np from common_wrangler.common import (InvalidDataError, warning, GOOD_RET, INPUT_ERROR, IO_ERROR, INVALID_DATA, EHPART_TO_KCAL_MOL, DEF_FIG_HEIGHT, DEF_FIG_WIDTH,...
39.207101
119
0.592816
fc9180fc440b1c5b873e6ca3b15d84c5b14d1141
27,349
py
Python
qiskit/ignis/verification/tomography/fitters/gateset_fitter.py
ikkoham/qiskit-ignis
f885a5990aab4ec4eedcf9c6d469f4d71c01382b
[ "Apache-2.0" ]
null
null
null
qiskit/ignis/verification/tomography/fitters/gateset_fitter.py
ikkoham/qiskit-ignis
f885a5990aab4ec4eedcf9c6d469f4d71c01382b
[ "Apache-2.0" ]
1
2019-02-21T12:45:03.000Z
2019-02-21T12:45:03.000Z
qiskit/ignis/verification/tomography/fitters/gateset_fitter.py
ikkoham/qiskit-ignis
f885a5990aab4ec4eedcf9c6d469f4d71c01382b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # This code is part of Qiskit. # # (C) Copyright IBM 2019, 2020. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # An...
39.751453
87
0.579619
47eba9445c298f1c1d5939698435f313be9d66cb
1,578
py
Python
docker-images/taigav2/taiga-back/taiga/external_apps/auth_backends.py
mattcongy/itshop
6be025a9eaa7fe7f495b5777d1f0e5a3184121c9
[ "MIT" ]
1
2017-05-29T19:01:06.000Z
2017-05-29T19:01:06.000Z
docker-images/taigav2/taiga-back/taiga/external_apps/auth_backends.py
mattcongy/itshop
6be025a9eaa7fe7f495b5777d1f0e5a3184121c9
[ "MIT" ]
null
null
null
docker-images/taigav2/taiga-back/taiga/external_apps/auth_backends.py
mattcongy/itshop
6be025a9eaa7fe7f495b5777d1f0e5a3184121c9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (C) 2014-2016 Andrey Antukh <niwi@niwi.nz> # Copyright (C) 2014-2016 Jesús Espino <jespinog@gmail.com> # Copyright (C) 2014-2016 David Barragán <bameda@dbarragan.com> # Copyright (C) 2014-2016 Alejandro Alonso <alejandro.alonso@kaleidos.net> # This program is free software: you can r...
36.697674
80
0.724968
144a4bd518db1fd14dc80a6b8ec03148173ac2f2
26,916
py
Python
scielomanager/journalmanager/migrations/0019_auto__chg_field_section_code__add_unique_section_code.py
jamilatta/scielo-manager
d506c6828ba9b1089faa164bc42ba29a0f228e61
[ "BSD-2-Clause" ]
null
null
null
scielomanager/journalmanager/migrations/0019_auto__chg_field_section_code__add_unique_section_code.py
jamilatta/scielo-manager
d506c6828ba9b1089faa164bc42ba29a0f228e61
[ "BSD-2-Clause" ]
null
null
null
scielomanager/journalmanager/migrations/0019_auto__chg_field_section_code__add_unique_section_code.py
jamilatta/scielo-manager
d506c6828ba9b1089faa164bc42ba29a0f228e61
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Changing field 'Section.code' db.alter_column('journalmanager_section', 'code', self.gf('django.db.models...
85.99361
256
0.569252
ada2142f4f010aa66826bd676da001762205aff8
1,873
py
Python
retweet.py
TheHADILP/docker_retweet_bot
43c41ed200ade8e737a60a11fb8ddcaef6a8fe6d
[ "MIT" ]
null
null
null
retweet.py
TheHADILP/docker_retweet_bot
43c41ed200ade8e737a60a11fb8ddcaef6a8fe6d
[ "MIT" ]
null
null
null
retweet.py
TheHADILP/docker_retweet_bot
43c41ed200ade8e737a60a11fb8ddcaef6a8fe6d
[ "MIT" ]
1
2021-11-23T17:16:43.000Z
2021-11-23T17:16:43.000Z
#!/usr/bin/env python3 # coding: utf8 """This script checks tweets of defined users for defined hashtags in random order. When a suitable tweet is found, which wasn't previously retweeted, it gets retweeted""" import random import time from twython import TwythonError import api_setup while True: with open('data...
32.859649
87
0.46236
3ef0be5f53b961134fe0294aee27095dbd4c7595
442
py
Python
test/simple_source/stmts/04_withas.py
gauravssnl/python-uncompyle6
136f42a610c0701e0770c1c278efd1107b1c6ed1
[ "MIT" ]
1
2021-03-24T11:54:03.000Z
2021-03-24T11:54:03.000Z
test/simple_source/stmts/04_withas.py
gauravssnl/python-uncompyle6
136f42a610c0701e0770c1c278efd1107b1c6ed1
[ "MIT" ]
null
null
null
test/simple_source/stmts/04_withas.py
gauravssnl/python-uncompyle6
136f42a610c0701e0770c1c278efd1107b1c6ed1
[ "MIT" ]
null
null
null
# 2.6.9 calendar.py # Bug in 2.6.9 was handling with as. Added rules # # withasstmt ::= expr setupwithas designator suite_stmts_opt # POP_BLOCK LOAD_CONST COME_FROM WITH_CLEANUP END_FINALLY # setupwithas ::= DUP_TOP LOAD_ATTR ROT_TWO LOAD_ATTR CALL_FUNCTION_0 STORE_FAST # ...
34
86
0.683258
43f5ea751444260e347b09e2d560ca8be4d6698a
4,047
py
Python
setup.py
miquelramirez/tulip-control
ce54897c242689f45ad33650f157bf1805b35ed6
[ "BSD-3-Clause" ]
null
null
null
setup.py
miquelramirez/tulip-control
ce54897c242689f45ad33650f157bf1805b35ed6
[ "BSD-3-Clause" ]
null
null
null
setup.py
miquelramirez/tulip-control
ce54897c242689f45ad33650f157bf1805b35ed6
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """Installation script.""" import logging from setuptools import setup # inline: # import git NAME = 'tulip' VERSION_FILE = '{name}/_version.py'.format(name=NAME) MAJOR = 1 MINOR = 4 MICRO = 0 VERSION = '{major}.{minor}.{micro}'.format( major=MAJOR, minor=MINOR, micro=MICRO) VERSION_TEXT = (...
31.130769
63
0.570793
37a180896a130e7b4bb1b1fa5edf377c3035d321
3,260
py
Python
contrib/zmq/zmq_sub3.4.py
Palem1988/ion_old
2c2b532abf61e2a06231c1d3b4d9b2bd0cdb469a
[ "MIT" ]
2
2017-01-16T13:42:19.000Z
2017-01-16T17:14:59.000Z
contrib/zmq/zmq_sub3.4.py
ionomy/ion_new
759071e12ba2ab889221bf91d99bb052a3b98303
[ "MIT" ]
18
2017-01-19T09:19:48.000Z
2017-01-27T01:59:30.000Z
contrib/zmq/zmq_sub3.4.py
ionomy/ion_new
759071e12ba2ab889221bf91d99bb052a3b98303
[ "MIT" ]
10
2017-01-17T19:54:55.000Z
2017-02-11T19:26:43.000Z
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """ ZMQ example using python3's asyncio Ion should be started with the command line arguments: ...
36.222222
101
0.647239
47138f2edbc8e69125ef092a8de43f7322d0f34a
4,915
py
Python
intake/source/npy.py
gramhagen/intake
de4cbb5df78881dc166b1f02743d22067f2bbd78
[ "BSD-2-Clause" ]
null
null
null
intake/source/npy.py
gramhagen/intake
de4cbb5df78881dc166b1f02743d22067f2bbd78
[ "BSD-2-Clause" ]
null
null
null
intake/source/npy.py
gramhagen/intake
de4cbb5df78881dc166b1f02743d22067f2bbd78
[ "BSD-2-Clause" ]
null
null
null
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2018, Anaconda, Inc. and Intake contributors # All rights reserved. # # The full license is in the LICENSE file, distributed with this software. #------------------------------------------------------------------------...
33.435374
80
0.546694
c39d28b987ba1044f2a05c7b7b42e2c675f4af5e
363
py
Python
test123/Mysqlpytest.py
gokulyc/python123
7a15522a20e8f84261b9daea015b82d1c0b4a435
[ "MIT" ]
null
null
null
test123/Mysqlpytest.py
gokulyc/python123
7a15522a20e8f84261b9daea015b82d1c0b4a435
[ "MIT" ]
1
2020-09-26T07:11:10.000Z
2020-09-26T07:11:10.000Z
test123/Mysqlpytest.py
gokulyc/python123
7a15522a20e8f84261b9daea015b82d1c0b4a435
[ "MIT" ]
null
null
null
import pymysql db = pymysql.connect("localhost", "root", "", "test") cursor = db.cursor() sql = """select * from testtb""" try: cursor.execute(sql) results = cursor.fetchall() num = cursor.rownumber print(num) for row in results: print(row[0], "||", row[1], "||", row[2]) exce...
14.52
53
0.570248
6a943c145126ced6d0cbe5fe1fa3558ac15c6cbe
4,781
py
Python
elliot/evaluation/metrics/accuracy/f1/extended_f1.py
gategill/elliot
113763ba6d595976e14ead2e3d460d9705cd882e
[ "Apache-2.0" ]
175
2021-03-04T15:46:25.000Z
2022-03-31T05:56:58.000Z
elliot/evaluation/metrics/accuracy/f1/extended_f1.py
gategill/elliot
113763ba6d595976e14ead2e3d460d9705cd882e
[ "Apache-2.0" ]
15
2021-03-06T17:53:56.000Z
2022-03-24T17:02:07.000Z
elliot/evaluation/metrics/accuracy/f1/extended_f1.py
gategill/elliot
113763ba6d595976e14ead2e3d460d9705cd882e
[ "Apache-2.0" ]
39
2021-03-04T15:46:26.000Z
2022-03-09T15:37:12.000Z
""" This is the implementation of the F-score metric. It proceeds from a user-wise computation, and average the values over the users. """ __version__ = '0.3.1' __author__ = 'Vito Walter Anelli, Claudio Pomo, Alejandro Bellogín' __email__ = 'vitowalter.anelli@poliba.it, claudio.pomo@poliba.it, alejandro.bellogin@uam.e...
37.944444
124
0.672244
bc670f23e5345ee5cd90742d11829dd34cd6ff53
1,250
py
Python
scmaar/scanner.py
rdammkoehler/SCMAAR
9b7f215c4356c07640c982315c8790d86b5f9209
[ "MIT" ]
null
null
null
scmaar/scanner.py
rdammkoehler/SCMAAR
9b7f215c4356c07640c982315c8790d86b5f9209
[ "MIT" ]
null
null
null
scmaar/scanner.py
rdammkoehler/SCMAAR
9b7f215c4356c07640c982315c8790d86b5f9209
[ "MIT" ]
null
null
null
from os import listdir from os.path import isdir from git import Repo def scan(directory): if not directory: raise NotADirectoryError if not isdir(directory): raise NotADirectoryError listing = listdir(directory) if '.git' not in listing: raise FileNotFoundError(f'{directory} ...
32.051282
69
0.632