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
340d1910d2fe91e2c40ee2105bc0bd2df345ee58
45,879
py
Python
venv/lib/python3.8/site-packages/cssutils/tests/test_value.py
vieee/Scraper_Myntra
05034d8294c7011cd943ddbef57d1c65526cd95b
[ "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/cssutils/tests/test_value.py
vieee/Scraper_Myntra
05034d8294c7011cd943ddbef57d1c65526cd95b
[ "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/cssutils/tests/test_value.py
vieee/Scraper_Myntra
05034d8294c7011cd943ddbef57d1c65526cd95b
[ "MIT" ]
null
null
null
"""Testcases for cssutils.css.CSSValue and CSSPrimitiveValue.""" # from decimal import Decimal # maybe for later tests? import xml.dom from . import basetest import cssutils class PropertyValueTestCase(basetest.BaseTestCase): def setUp(self): self.r = cssutils.css.PropertyValue() def test_init(self)...
39.825521
123
0.452015
114e360a4d55580ef9a106bebd8e1ee947f88ad7
445
py
Python
examples/example7-all-boards.py
KebabLord/py8chan
e52081a728c172e3bbbf1fa88951d24295930f90
[ "WTFPL" ]
16
2016-01-29T01:06:24.000Z
2021-01-11T17:33:14.000Z
examples/example7-all-boards.py
KebabLord/py8chan
e52081a728c172e3bbbf1fa88951d24295930f90
[ "WTFPL" ]
20
2015-10-23T14:47:58.000Z
2021-07-05T23:39:17.000Z
examples/example7-all-boards.py
KebabLord/py8chan
e52081a728c172e3bbbf1fa88951d24295930f90
[ "WTFPL" ]
13
2016-10-07T18:46:10.000Z
2022-03-27T16:08:43.000Z
# This example demonstrates the use of the get_all_boards function import py8chan def main(): # Get a list of all boards boards = py8chan.get_all_boards() # Sort boards by the number of posts boards.sort(key=lambda x: x.num_posts, reverse=True) # Print the title and subtitle of the first 10 boards ...
29.666667
66
0.676404
fa729824bf66b945b01e2b7c4a282b63a89c915c
12,539
py
Python
pymdwizard/gui/ui_files/UI_timeinfo.py
mmfink/fort-pymdwizard
96f46e8cc2594b82b475b4f3fcae96a05ebc03e4
[ "CC-BY-4.0" ]
53
2017-05-01T05:03:33.000Z
2022-03-13T04:49:15.000Z
pymdwizard/gui/ui_files/UI_timeinfo.py
mmfink/fort-pymdwizard
96f46e8cc2594b82b475b4f3fcae96a05ebc03e4
[ "CC-BY-4.0" ]
109
2017-05-17T15:15:40.000Z
2022-03-24T21:12:45.000Z
pymdwizard/gui/ui_files/UI_timeinfo.py
mmfink/fort-pymdwizard
96f46e8cc2594b82b475b4f3fcae96a05ebc03e4
[ "CC-BY-4.0" ]
17
2017-02-08T16:18:18.000Z
2021-01-28T19:38:09.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'timeinfo.ui' # # Created by: PyQt5 UI code generator 5.6 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_Form(object): def setupUi(self, Form): Form.setObjectName("F...
48.042146
113
0.70181
1b0792d07b0972f963515f262d508bed46e496cc
542
py
Python
sark/plumbing.py
bmeisels/Sark
f02b7e7b501b73d786d2286b72ee6651812fb720
[ "MIT" ]
572
2015-03-09T09:26:02.000Z
2022-03-20T14:13:34.000Z
sark/plumbing.py
shemesh999/Sark
421f22124006567d79443135046519f0487c7261
[ "MIT" ]
78
2015-05-25T12:54:19.000Z
2022-03-28T00:36:52.000Z
sark/plumbing.py
shemesh999/Sark
421f22124006567d79443135046519f0487c7261
[ "MIT" ]
105
2015-05-17T20:31:18.000Z
2022-03-21T15:45:30.000Z
import os SARK_PLUGINS_ENV_NAME = "sarkPlugins" SARK_DEFAULT_PATH = os.path.normpath(os.path.join(os.path.dirname(__file__), "../")) def get_sark_dir(dirname, envname=None): if envname in os.environ: return os.environ[envname] return os.path.join(SARK_DEFAULT_PATH, dirname) def get_plugins_dir(): ...
23.565217
84
0.750923
dfca9a3367d71c40fc615c97c387e6a3efa1cd70
247,900
py
Python
src/azure-cli/azure/cli/command_modules/network/_help.py
damienbod/azure-cli
a804e5f8ebdfe2af145f51eedd44266076d3cccb
[ "MIT" ]
4
2016-08-23T06:19:01.000Z
2018-03-20T22:47:15.000Z
src/azure-cli/azure/cli/command_modules/network/_help.py
damienbod/azure-cli
a804e5f8ebdfe2af145f51eedd44266076d3cccb
[ "MIT" ]
120
2018-03-27T19:14:40.000Z
2020-12-10T23:53:35.000Z
src/azure-cli/azure/cli/command_modules/network/_help.py
damienbod/azure-cli
a804e5f8ebdfe2af145f51eedd44266076d3cccb
[ "MIT" ]
11
2018-08-23T21:31:06.000Z
2020-09-03T21:39:51.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. # -----------------------------------------------------...
39.193676
693
0.730932
3e6eb26bdee7b331141ff872bae71decca11e900
2,796
py
Python
problems/speed_of_light.py
benallan/lovelace-problems
3780d2bfc58fe0531d60a92ae0a6c45e9814f58f
[ "MIT" ]
29
2019-07-23T16:51:36.000Z
2022-03-08T21:42:05.000Z
problems/speed_of_light.py
benallan/lovelace-problems
3780d2bfc58fe0531d60a92ae0a6c45e9814f58f
[ "MIT" ]
44
2019-03-22T00:05:32.000Z
2021-05-04T13:25:12.000Z
problems/speed_of_light.py
benallan/lovelace-problems
3780d2bfc58fe0531d60a92ae0a6c45e9814f58f
[ "MIT" ]
3
2019-08-04T13:06:21.000Z
2021-04-20T07:41:42.000Z
import logging from typing import Tuple from numpy.random import uniform from problems.test_case import TestCase, TestCaseTypeEnum from problems.solutions.speed_of_light import light_time logger = logging.getLogger(__name__) FUNCTION_NAME = "light_time" INPUT_VARS = ['distance'] OUTPUT_VARS = ['time'] STATIC_RESOUR...
31.41573
118
0.70887
36686dc5ddea0bd07453acb21bea157854ade437
18,530
py
Python
tap_gmail_csv/gmail_client/client.py
food-spotter/tap-gmail-csv
e3f866b462b60ad87b885a7fdcd0945fdb68779a
[ "Apache-2.0" ]
null
null
null
tap_gmail_csv/gmail_client/client.py
food-spotter/tap-gmail-csv
e3f866b462b60ad87b885a7fdcd0945fdb68779a
[ "Apache-2.0" ]
null
null
null
tap_gmail_csv/gmail_client/client.py
food-spotter/tap-gmail-csv
e3f866b462b60ad87b885a7fdcd0945fdb68779a
[ "Apache-2.0" ]
null
null
null
import pickle import base64 import os.path import email from io import BytesIO from typing import List, Dict, Generator, Iterable, Optional, Union, Set from googleapiclient.discovery import build, Resource from google.oauth2.credentials import Credentials from bs4 import BeautifulSoup from tap_gmail_csv.gm...
39.849462
120
0.598057
91c3490ba9646f104c9401b39337fcaefa2d487d
3,337
py
Python
bcs-ui/backend/uniapps/application/serializers.py
laodiu/bk-bcs
2a956a42101ff6487ff521fb3ef429805bfa7e26
[ "Apache-2.0" ]
599
2019-06-25T03:20:46.000Z
2022-03-31T12:14:33.000Z
bcs-ui/backend/uniapps/application/serializers.py
laodiu/bk-bcs
2a956a42101ff6487ff521fb3ef429805bfa7e26
[ "Apache-2.0" ]
537
2019-06-27T06:03:44.000Z
2022-03-31T12:10:01.000Z
bcs-ui/backend/uniapps/application/serializers.py
laodiu/bk-bcs
2a956a42101ff6487ff521fb3ef429805bfa7e26
[ "Apache-2.0" ]
214
2019-06-25T03:26:05.000Z
2022-03-31T07:52:03.000Z
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
41.7125
115
0.740485
092dd9e752235361ab50063012a505da00c496fe
16,536
py
Python
reconcile/test/test_openshift_base.py
fishi0x01/qontract-reconcile
3d9d27812feabb2ad1a94fa3afdbfd7482cbb8a8
[ "Apache-2.0" ]
null
null
null
reconcile/test/test_openshift_base.py
fishi0x01/qontract-reconcile
3d9d27812feabb2ad1a94fa3afdbfd7482cbb8a8
[ "Apache-2.0" ]
null
null
null
reconcile/test/test_openshift_base.py
fishi0x01/qontract-reconcile
3d9d27812feabb2ad1a94fa3afdbfd7482cbb8a8
[ "Apache-2.0" ]
null
null
null
import logging from typing import Any, cast import pytest import yaml import reconcile.openshift_base as sut import reconcile.utils.openshift_resource as resource from reconcile.test.fixtures import Fixtures from reconcile.utils import oc from reconcile.utils.semver_helper import make_semver fxt = Fixtures("namespace...
26.4576
89
0.597303
78cc4c67fd2b307a3cbdc91e66abb3a9ab2e9957
21,269
py
Python
client/apply_annotations.py
HybridDeveloper/pyre-check
48d1f8bbf19003417e64950561c786e28af1251a
[ "MIT" ]
null
null
null
client/apply_annotations.py
HybridDeveloper/pyre-check
48d1f8bbf19003417e64950561c786e28af1251a
[ "MIT" ]
null
null
null
client/apply_annotations.py
HybridDeveloper/pyre-check
48d1f8bbf19003417e64950561c786e28af1251a
[ "MIT" ]
null
null
null
# Copyright (c) 2016-present, Facebook, Inc. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree from typing import ( IO, Any, Dict, List, NamedTuple, Optional, Sequence, Set, Tuple, Union, overload, )...
40.589695
88
0.628332
7ea29e303b3adee10026aa5dc908c49273ba5fd1
244
py
Python
user_management/users/urls.py
abdulwahed-dev/django
f104c90fc3dd94e868a841234d5585b9ce5a61d7
[ "MIT" ]
1
2022-03-23T15:15:33.000Z
2022-03-23T15:15:33.000Z
user_management/users/urls.py
abdulwahed-dev/django
f104c90fc3dd94e868a841234d5585b9ce5a61d7
[ "MIT" ]
null
null
null
user_management/users/urls.py
abdulwahed-dev/django
f104c90fc3dd94e868a841234d5585b9ce5a61d7
[ "MIT" ]
null
null
null
from django.urls import path from .views import home, RegisterView # Import the view here urlpatterns = [ path('', home, name='users-home'), path('register/', RegisterView.as_view(), name='users-register'), # This is what we added ]
30.5
94
0.692623
85214c9242f451caeb6c20e658d6a5212184255a
3,150
py
Python
filter_plugins/listoflists.py
chepazzo/ansible-filters-extras
2373d66089cb6497a29577c9de2a705ec9a67ea2
[ "BSD-2-Clause" ]
1
2016-06-22T06:23:58.000Z
2016-06-22T06:23:58.000Z
filter_plugins/listoflists.py
chepazzo/ansible-filters-extras
2373d66089cb6497a29577c9de2a705ec9a67ea2
[ "BSD-2-Clause" ]
null
null
null
filter_plugins/listoflists.py
chepazzo/ansible-filters-extras
2373d66089cb6497a29577c9de2a705ec9a67ea2
[ "BSD-2-Clause" ]
null
null
null
''' This is a collection of filters that deals with lists of lists ''' from __future__ import absolute_import from ansible import errors import itertools class FilterModule(object): ''' Class to make filters available to Ansible ''' def filters(self): ''' List of filters to import into Ansible ''' ...
27.155172
104
0.552698
6e646c02b344a3c96d38b25862a43d8250b4520f
33,856
py
Python
flow/util/genMetrics.py
mathursanjiv/OpenROAD-flow-scripts
99889aac8cfbe6c96da2001e43f71d4522f144e2
[ "BSD-3-Clause" ]
null
null
null
flow/util/genMetrics.py
mathursanjiv/OpenROAD-flow-scripts
99889aac8cfbe6c96da2001e43f71d4522f144e2
[ "BSD-3-Clause" ]
null
null
null
flow/util/genMetrics.py
mathursanjiv/OpenROAD-flow-scripts
99889aac8cfbe6c96da2001e43f71d4522f144e2
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # This scripts attempts to extract relevant data from a completed flow design # and save it into a 'metadata.json'. It achieves this by looking for specific # information in specific files using regular expressions # ----------------------------------------------------------------------------- ...
40.692308
83
0.514207
e8bbb6bbed50992bcaa9c9c026723edaf24acdaa
1,479
py
Python
src/fleetctrl/charging/ChargingBase.py
TUM-VT/FleetPy
596bcec9fbd2fe52206079641d549bf028d2879d
[ "MIT" ]
19
2021-12-11T17:17:00.000Z
2022-03-24T07:27:06.000Z
src/fleetctrl/charging/ChargingBase.py
TUM-VT/FleetPy
596bcec9fbd2fe52206079641d549bf028d2879d
[ "MIT" ]
null
null
null
src/fleetctrl/charging/ChargingBase.py
TUM-VT/FleetPy
596bcec9fbd2fe52206079641d549bf028d2879d
[ "MIT" ]
1
2021-12-21T11:20:39.000Z
2021-12-21T11:20:39.000Z
from abc import abstractmethod, ABC import logging LOG = logging.getLogger(__name__) class ChargingBase(ABC): def __init__(self, fleetctrl, operator_attributes, solver="Gurobi"): """Initialization of charging class. :param fleetctrl: FleetControl class :param operator_attributes: operato...
34.395349
120
0.686951
fc582b66ce12409fde254083aba2fb73a39b3c0c
303
py
Python
src/endpoints/sample/args.py
C-I-D-A-S/python-project-template
99946bb36a4aa25dcac90a1ff9662ca1a8d45536
[ "Apache-2.0" ]
null
null
null
src/endpoints/sample/args.py
C-I-D-A-S/python-project-template
99946bb36a4aa25dcac90a1ff9662ca1a8d45536
[ "Apache-2.0" ]
null
null
null
src/endpoints/sample/args.py
C-I-D-A-S/python-project-template
99946bb36a4aa25dcac90a1ff9662ca1a8d45536
[ "Apache-2.0" ]
null
null
null
""" Module for API arguments config Author: Po-Chun, Lu """ def add_post_args(post_parser): """ defining post arguments """ post_parser.add_argument( "job_id", type=str, required=True, location="json", help="job_id parameter should be list", )
16.833333
47
0.594059
7cd73d653bcaab2dbd6c30c08ee291e261d0abfc
4,252
py
Python
S4/S4 Library/simulation/objects/components/autonomy.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
1
2021-05-20T19:33:37.000Z
2021-05-20T19:33:37.000Z
S4/S4 Library/simulation/objects/components/autonomy.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
S4/S4 Library/simulation/objects/components/autonomy.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
from autonomy.settings import AutonomyRandomization from sims4.tuning.tunable import TunableTuple, TunableSet, TunableReference, Tunable, OptionalTunable, TunableEnumEntry import services class TunableParameterizedAutonomy(TunableTuple, is_fragment=True): def __init__(self): super().__init__(commodities=T...
472.444444
3,969
0.703904
f8a8cced9c54b3e1935d9b4451847d493adbf6b0
8,006
py
Python
tfx/dependencies.py
v1incent/tfx
ce6d6f64d326be3d57761a31b60f951fa95a39e5
[ "Apache-2.0" ]
null
null
null
tfx/dependencies.py
v1incent/tfx
ce6d6f64d326be3d57761a31b60f951fa95a39e5
[ "Apache-2.0" ]
null
null
null
tfx/dependencies.py
v1incent/tfx
ce6d6f64d326be3d57761a31b60f951fa95a39e5
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 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...
36.557078
96
0.663128
3588b8e3e89088f442925be6d65bf8e40587267b
1,340
py
Python
app/core/tests/test_admin.py
Kane-Ryans/recipe-app-api
23f43bdf7cae98209edfc43d81c735fa83994c8e
[ "MIT" ]
null
null
null
app/core/tests/test_admin.py
Kane-Ryans/recipe-app-api
23f43bdf7cae98209edfc43d81c735fa83994c8e
[ "MIT" ]
null
null
null
app/core/tests/test_admin.py
Kane-Ryans/recipe-app-api
23f43bdf7cae98209edfc43d81c735fa83994c8e
[ "MIT" ]
null
null
null
from django.test import TestCase from django.contrib.auth import get_user_model from django.urls import reverse from django.test import Client class AdminSiteTests(TestCase): def setUp(self): self.client = Client() self.admin_user = get_user_model().objects.create_superuser( email='ad...
31.162791
68
0.642537
ae6c9bea7d918b85f70a41bbf97843d7245ac74b
1,812
py
Python
blog-server/blog/initialization/graphql.py
rob-blackbourn/blog-engine
9b0239996732f377b70c82eb908bae826f35e67c
[ "Apache-2.0" ]
1
2019-05-13T19:40:32.000Z
2019-05-13T19:40:32.000Z
blog-server/blog/initialization/graphql.py
rob-blackbourn/blog-engine
9b0239996732f377b70c82eb908bae826f35e67c
[ "Apache-2.0" ]
null
null
null
blog-server/blog/initialization/graphql.py
rob-blackbourn/blog-engine
9b0239996732f377b70c82eb908bae826f35e67c
[ "Apache-2.0" ]
null
null
null
import aiohttp_cors from easydict import EasyDict as edict from graphql.pyutils import EventEmitter from ..schema import schema from ..middlewares import AuthenticationMiddleware from ..repositories import ( AdminRepository, UserRepository, BlogRepository, PostRepository, CommentRepository ) from ....
24.16
71
0.672737
ba7e361b5a0327ec85e4f96e9c04a0e4f2e6d78a
2,355
py
Python
raidquaza/database/dbhandler.py
Breee/pokemon-discord-report-bot
48321195e976a34ad52827e16e9d20aed89d39a6
[ "MIT" ]
2
2019-03-12T16:44:24.000Z
2020-04-13T21:06:20.000Z
authicuno/database/dbhandler.py
Breee/Authicuno
1d9fc54be3adb842695a0e6c20f4d3db03f43fd5
[ "MIT" ]
5
2019-07-13T00:11:42.000Z
2021-07-29T11:55:39.000Z
raidquaza/database/dbhandler.py
Breee/raidquaza
308d643e71eddf6f6dc432c01322a02d604ac70e
[ "MIT" ]
null
null
null
import sqlalchemy from utility.globals import LOGGER from sqlalchemy.orm import sessionmaker def transaction_wrapper(func): def _wrap_func(*args, **kwargs): self = args[0] session = sessionmaker(bind=self.engine, expire_on_commit=False) # new session. no connections are in use. ...
36.230769
103
0.600425
de16c45bc946f6c963a17667e14864b49a76bc58
3,654
py
Python
gcloud/tests/apigw/views/test_get_user_project_detail.py
springborland/bk-sops
a9057672c10efb5f2414a805a30ead4092429c76
[ "Apache-2.0" ]
1
2020-08-16T09:21:58.000Z
2020-08-16T09:21:58.000Z
gcloud/tests/apigw/views/test_get_user_project_detail.py
ZhuoZhuoCrayon/bk-sops
d1475d53c19729915727ce7adc24e3226f15e332
[ "Apache-2.0" ]
null
null
null
gcloud/tests/apigw/views/test_get_user_project_detail.py
ZhuoZhuoCrayon/bk-sops
d1475d53c19729915727ce7adc24e3226f15e332
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2020 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
33.833333
115
0.653804
627733149441de9d253e4da4111d26f09eb68c8c
3,024
py
Python
playground/infrastructure/test_grpc_client.py
ex00/beam
c4d23298a75038899cfc6d05fcea35089f1745f0
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
playground/infrastructure/test_grpc_client.py
ex00/beam
c4d23298a75038899cfc6d05fcea35089f1745f0
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
playground/infrastructure/test_grpc_client.py
ex00/beam
c4d23298a75038899cfc6d05fcea35089f1745f0
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use ...
36.878049
100
0.765542
fdbda0dbe260fdd4fc43cc1618d8692074ea1079
272
py
Python
config.py
gonzageraci/dydx-bot
d2cd3526c1eb7fbe5d07610510c74a2d428d3c4d
[ "Apache-2.0" ]
1
2021-11-13T20:38:29.000Z
2021-11-13T20:38:29.000Z
config.py
gonzageraci/dydx-bot
d2cd3526c1eb7fbe5d07610510c74a2d428d3c4d
[ "Apache-2.0" ]
null
null
null
config.py
gonzageraci/dydx-bot
d2cd3526c1eb7fbe5d07610510c74a2d428d3c4d
[ "Apache-2.0" ]
1
2021-12-13T09:22:15.000Z
2021-12-13T09:22:15.000Z
API_ENDPOINT = "https://api.dydx.exchange" StarkPrivateKey = "0x6d6300ffa9a563f84fc628251a3499459903354e33c965d83a613d56f1bdd8d" eth_private_key = "48d5c67094243f36207f0dc21967e005dccca0756d63e77d4e680adf7e4b66fe" eth_address = "0xb6eDcE2198cC2063906169fD4339B0F15EC558ea"
68
85
0.897059
19e50da2c50074e2800fd6d970993a294d188c64
6,720
py
Python
ci/util.py
VonRosenchild/plaidml
762d5fff6467b43a15623f927502892ce8df91a4
[ "Apache-2.0" ]
1
2019-09-11T11:18:50.000Z
2019-09-11T11:18:50.000Z
ci/util.py
HubBucket-Team/plaidml
762d5fff6467b43a15623f927502892ce8df91a4
[ "Apache-2.0" ]
null
null
null
ci/util.py
HubBucket-Team/plaidml
762d5fff6467b43a15623f927502892ce8df91a4
[ "Apache-2.0" ]
1
2019-09-11T11:18:52.000Z
2019-09-11T11:18:52.000Z
import argparse import os import platform import shutil import subprocess import sys verbose = False # pylint: disable=invalid-name def printf(*args, **kwargs): excludes_env = {key: kwargs[key] for key in kwargs if key not in ['env']} if excludes_env: print(*args, excludes_env) else: pri...
31.111111
99
0.537054
e39c010914a118b111904e86e8b07d93c2ba835e
645
py
Python
freebilly/domain/PendulumWorkTime.py
emileten/billy
3fd0ab381382f7e64c67bc37b4ea2555e6b09822
[ "MIT" ]
null
null
null
freebilly/domain/PendulumWorkTime.py
emileten/billy
3fd0ab381382f7e64c67bc37b4ea2555e6b09822
[ "MIT" ]
1
2022-01-20T02:36:03.000Z
2022-01-20T02:36:03.000Z
freebilly/domain/PendulumWorkTime.py
emileten/billy
3fd0ab381382f7e64c67bc37b4ea2555e6b09822
[ "MIT" ]
null
null
null
from freebilly.domain.AbstractWorkTime import AbstractWorkTime import pendulum as pdl class PendulumWorkTime(AbstractWorkTime): def __init__(self, time: pdl.DateTime): raise NotImplementedError def now(self) -> AbstractWorkTime: raise NotImplementedError def diff(self, other: AbstractW...
22.241379
62
0.716279
5b425f42332d87991f208e18ff3686e4d21104b4
16,241
py
Python
samples/openapi3/client/petstore/python/petstore_api/model/format_test.py
rotty3000/openapi-generator
40d3331e789412d8f42df0148cc089a9d330b759
[ "Apache-2.0" ]
1
2022-01-11T15:49:34.000Z
2022-01-11T15:49:34.000Z
samples/openapi3/client/petstore/python/petstore_api/model/format_test.py
rotty3000/openapi-generator
40d3331e789412d8f42df0148cc089a9d330b759
[ "Apache-2.0" ]
9
2021-11-01T08:59:31.000Z
2022-03-31T08:31:57.000Z
samples/openapi3/client/petstore/python/petstore_api/model/format_test.py
rotty3000/openapi-generator
40d3331e789412d8f42df0148cc089a9d330b759
[ "Apache-2.0" ]
1
2022-03-20T14:46:48.000Z
2022-03-20T14:46:48.000Z
""" OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech """ import re # noq...
42.852243
178
0.539006
013015bcf3b77597eaa1ad272ec68e054cb150ac
515
py
Python
env/Lib/site-packages/plotly/validators/layout/scene/xaxis/_showexponent.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
11,750
2015-10-12T07:03:39.000Z
2022-03-31T20:43:15.000Z
venv/Lib/site-packages/plotly/validators/layout/scene/xaxis/_showexponent.py
wakisalvador/constructed-misdirection
74779e9ec640a11bc08d5d1967c85ac4fa44ea5e
[ "Unlicense" ]
2,951
2015-10-12T00:41:25.000Z
2022-03-31T22:19:26.000Z
venv/Lib/site-packages/plotly/validators/layout/scene/xaxis/_showexponent.py
wakisalvador/constructed-misdirection
74779e9ec640a11bc08d5d1967c85ac4fa44ea5e
[ "Unlicense" ]
2,623
2015-10-15T14:40:27.000Z
2022-03-28T16:05:50.000Z
import _plotly_utils.basevalidators class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, plotly_name="showexponent", parent_name="layout.scene.xaxis", **kwargs ): super(ShowexponentValidator, self).__init__( plotly_name=plotly_name, ...
34.333333
84
0.64466
436feab5ecc5284b6b7b2a58304e91c04c04fa85
4,742
py
Python
usaspending_api/common/tests/test_helpers.py
animatecitizen/usaspending-api
556511ff51fe80a8be8361daa5876fd684a04efe
[ "CC0-1.0" ]
null
null
null
usaspending_api/common/tests/test_helpers.py
animatecitizen/usaspending-api
556511ff51fe80a8be8361daa5876fd684a04efe
[ "CC0-1.0" ]
1
2021-11-15T17:54:12.000Z
2021-11-15T17:54:12.000Z
usaspending_api/common/tests/test_helpers.py
mikepsinn/usaspending-api
ef61e13c286eb51949e16b760fa7516255b2bfd3
[ "CC0-1.0" ]
null
null
null
import datetime as dt import re import time import pytest from usaspending_api.common.helpers.generic_helper import fy, get_pagination, timer legal_dates = { dt.datetime(2017, 2, 2, 16, 43, 28, 377373): 2017, dt.date(2017, 2, 2): 2017, dt.datetime(2017, 10, 2, 16, 43, 28, 377373): 2018, dt.date(2017,...
44.317757
117
0.648461
517dcdbb1bfa41caeb3d60faf4ecf2e302591403
2,349
py
Python
ospweb/users/tests/test_views.py
asheeq/ospweb
4aeb3037d8c59d5dcfca2e929902b609d5c8ef5c
[ "MIT" ]
null
null
null
ospweb/users/tests/test_views.py
asheeq/ospweb
4aeb3037d8c59d5dcfca2e929902b609d5c8ef5c
[ "MIT" ]
null
null
null
ospweb/users/tests/test_views.py
asheeq/ospweb
4aeb3037d8c59d5dcfca2e929902b609d5c8ef5c
[ "MIT" ]
null
null
null
import pytest from django.contrib.auth.models import AnonymousUser from django.http.response import Http404 from django.test import RequestFactory from ospweb.users.models import User from ospweb.users.tests.factories import UserFactory from ospweb.users.views import UserRedirectView, UserUpdateView, user_detail_view ...
30.907895
81
0.677735
3f9c1c9442a2f364a10fc1718bebff5653cf7007
898
py
Python
end_to_end_tests/golden-record/my_test_api_client/models/test_inline_objects_response_200.py
JamesHinshelwood/openapi-python-client
08bc2acf91d50d4fcdd7f0e50a8b0d3f00a187d9
[ "MIT" ]
172
2020-02-15T20:14:16.000Z
2021-06-09T07:09:15.000Z
end_to_end_tests/golden-record/my_test_api_client/models/test_inline_objects_response_200.py
guioliveirabh/openapi-python-client
d8d9cecffe41c5dc1c43bc667598b90f0d9253ca
[ "MIT" ]
410
2020-02-15T19:39:29.000Z
2021-06-09T19:28:57.000Z
end_to_end_tests/golden-record/my_test_api_client/models/test_inline_objects_response_200.py
guioliveirabh/openapi-python-client
d8d9cecffe41c5dc1c43bc667598b90f0d9253ca
[ "MIT" ]
38
2020-04-12T09:36:27.000Z
2021-06-11T08:57:07.000Z
from typing import Any, Dict, Type, TypeVar, Union import attr from ..types import UNSET, Unset T = TypeVar("T", bound="TestInlineObjectsResponse200") @attr.s(auto_attribs=True) class TestInlineObjectsResponse200: """ Attributes: a_property (Union[Unset, str]): """ a_property: Union[Unset,...
23.025641
63
0.632517
3b4af9a1941ee723cc89b4143076ab53eb2f6d3e
83,719
py
Python
python/ccxt/base/exchange.py
haobtc/ccxt
c4a00014a66bd015091ff5c4e94b043a9a5a799a
[ "MIT" ]
null
null
null
python/ccxt/base/exchange.py
haobtc/ccxt
c4a00014a66bd015091ff5c4e94b043a9a5a799a
[ "MIT" ]
null
null
null
python/ccxt/base/exchange.py
haobtc/ccxt
c4a00014a66bd015091ff5c4e94b043a9a5a799a
[ "MIT" ]
1
2021-05-15T16:13:38.000Z
2021-05-15T16:13:38.000Z
# -*- coding: utf-8 -*- """Base exchange class""" # ----------------------------------------------------------------------------- __version__ = '1.21.20' # ----------------------------------------------------------------------------- from ccxt.base.errors import ExchangeError from ccxt.base.errors import NetworkEr...
40.230178
299
0.593223
4da799463338bea99c3933b1b8084cc56ab6a076
7,233
py
Python
userbot/modules/heroku.py
AnggaraArif/Telebot
7601643d51cecbdc4d8d9ad9a72c5366804250a8
[ "Naumen", "Condor-1.1", "MS-PL" ]
7
2020-06-27T20:15:34.000Z
2021-01-21T12:45:48.000Z
userbot/modules/heroku.py
AnggaraArif/Telebot
7601643d51cecbdc4d8d9ad9a72c5366804250a8
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2020-02-19T20:07:34.000Z
2020-02-19T20:07:34.000Z
userbot/modules/heroku.py
AnggaraArif/Telebot
7601643d51cecbdc4d8d9ad9a72c5366804250a8
[ "Naumen", "Condor-1.1", "MS-PL" ]
70
2020-04-26T02:47:50.000Z
2022-01-26T10:13:13.000Z
# Copyright (C) 2020 Adek Maulana. # All rights reserved. # # Licensed under the Raphielscape Public License, Version 1.d (the "License"); # you may not use this file except in compliance with the License. # """ Heroku manager for your userbot """ import heroku3 import aiohttp import math from userbot import ( ...
33.957746
78
0.521499
1652e9ed5baedccf6a74c917351cc8a965434792
1,331
py
Python
ERation/shop/urls.py
mishelshaji/ERation
0e755ae63ae2c9cc009e18b72425ac508670a1cf
[ "MIT" ]
null
null
null
ERation/shop/urls.py
mishelshaji/ERation
0e755ae63ae2c9cc009e18b72425ac508670a1cf
[ "MIT" ]
null
null
null
ERation/shop/urls.py
mishelshaji/ERation
0e755ae63ae2c9cc009e18b72425ac508670a1cf
[ "MIT" ]
null
null
null
from django.urls import path from . import views as v urlpatterns = [ path('', v.home, name='shop_home'), path('shopprofile/', v.shop_profile, name='shop_profile'), path('newcustomer/', v.new_customer, name='shop_new_customer'), path('viewcustomer/<int:id>', v.view_customer, name='shop_view_customer')...
41.59375
87
0.722014
d1bf981de4deb8fb9974128afe005df061a3506d
8,003
py
Python
frontend/tdop.py
adisbladis/oil
8ae78500da543dfa899404bdca830b90277d17ad
[ "Apache-2.0" ]
null
null
null
frontend/tdop.py
adisbladis/oil
8ae78500da543dfa899404bdca830b90277d17ad
[ "Apache-2.0" ]
null
null
null
frontend/tdop.py
adisbladis/oil
8ae78500da543dfa899404bdca830b90277d17ad
[ "Apache-2.0" ]
null
null
null
""" tdop.py - Library for expression parsing. """ from _devbuild.gen.id_kind_asdl import Id, Id_t from _devbuild.gen.syntax_asdl import ( arith_expr, arith_expr_t, arith_expr__ArithWord, arith_expr__UnaryAssign, arith_expr__VarRef, arith_expr__Binary, arith_expr__BinaryAssign, sh_lhs_expr, sh_lhs_expr_...
28.080702
77
0.655629
f13047ab2222ba207d0ee275dd3f0c9fe9d1b5c6
1,851
py
Python
GPyOpt/acquisitions/LCB.py
zhenwendai/GPyOpt
fd96875e7ec0cb0f78014d96813ece400648827d
[ "BSD-3-Clause" ]
850
2015-05-31T21:12:41.000Z
2022-03-24T17:25:37.000Z
GPyOpt/acquisitions/LCB.py
lakshaykc/GPyOpt
097ba66e81c7e22b5bf9fdbe64fd135753bc4a67
[ "BSD-3-Clause" ]
340
2015-09-10T14:08:06.000Z
2022-03-28T20:35:26.000Z
GPyOpt/acquisitions/LCB.py
lakshaykc/GPyOpt
097ba66e81c7e22b5bf9fdbe64fd135753bc4a67
[ "BSD-3-Clause" ]
299
2015-07-30T13:18:37.000Z
2022-03-22T21:27:31.000Z
# Copyright (c) 2016, the GPyOpt Authors # Licensed under the BSD 3-clause license (see LICENSE.txt) from .base import AcquisitionBase from ..util.general import get_quantiles class AcquisitionLCB(AcquisitionBase): """ GP-Lower Confidence Bound acquisition function with constant exploration weight. See: ...
35.596154
103
0.688277
901d9efd3ffd97f58dce5dfd6bef6e4deb4fda71
1,308
py
Python
tests/caliban/util/test_tqdm.py
Anon-Artist/caliban
6d12561f735fe1f9157e45b06d9da002ee5059e5
[ "ECL-2.0", "Apache-2.0" ]
425
2020-06-02T18:14:09.000Z
2022-03-30T17:32:08.000Z
tests/caliban/util/test_tqdm.py
Anon-Artist/caliban
6d12561f735fe1f9157e45b06d9da002ee5059e5
[ "ECL-2.0", "Apache-2.0" ]
95
2020-06-11T22:50:29.000Z
2022-01-10T06:10:30.000Z
tests/caliban/util/test_tqdm.py
Anon-Artist/caliban
6d12561f735fe1f9157e45b06d9da002ee5059e5
[ "ECL-2.0", "Apache-2.0" ]
50
2020-06-11T22:01:18.000Z
2022-01-12T19:54:10.000Z
#!/usr/bin/python # # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
27.25
78
0.692661
62daca9b6f092568638bf3886f9f14ecdd051875
6,930
py
Python
kolibri/core/device/translation.py
yujinyuz/kolibri
4d5c6c87679f01c0bbb53bb850b8f4c8041ed860
[ "MIT" ]
null
null
null
kolibri/core/device/translation.py
yujinyuz/kolibri
4d5c6c87679f01c0bbb53bb850b8f4c8041ed860
[ "MIT" ]
null
null
null
kolibri/core/device/translation.py
yujinyuz/kolibri
4d5c6c87679f01c0bbb53bb850b8f4c8041ed860
[ "MIT" ]
null
null
null
""" Modified from django.utils.translation.trans_real """ from __future__ import unicode_literals import re from django.conf import settings from django.core.cache import cache from django.db.utils import OperationalError from django.db.utils import ProgrammingError from django.urls import resolve from django.urls im...
37.258065
94
0.71443
810c51b498ed1ce277311369fa429420cbf1efb3
18,032
py
Python
svutil/gen/LatexGen.py
enhoshen/SVutil
6fff5a4d1f53519e1806f20371ef99cdd350e3e5
[ "MIT" ]
2
2019-10-03T06:27:02.000Z
2019-12-27T15:58:24.000Z
svutil/gen/LatexGen.py
enhoshen/SVutil
6fff5a4d1f53519e1806f20371ef99cdd350e3e5
[ "MIT" ]
null
null
null
svutil/gen/LatexGen.py
enhoshen/SVutil
6fff5a4d1f53519e1806f20371ef99cdd350e3e5
[ "MIT" ]
null
null
null
import os import sys from svutil.SVparse import * from svutil.SVgen import * from svutil.SVclass import * import itertools import numpy as np import re @SVgen.user_class class LatexGen(SVgen): # TODO $clog2 in latex def __init__(self, session=None, regbk=None, dut=None): super().__init__(session=sessi...
37.802935
134
0.481755
96e08a40e55218f1e7ae62b37394da859bd1d6eb
195
py
Python
fileupload/constants.py
myacera100/ai-django-fileupload
25c0cbd10c93a4556cec82cc5ccaf3e21e0335ec
[ "MIT" ]
null
null
null
fileupload/constants.py
myacera100/ai-django-fileupload
25c0cbd10c93a4556cec82cc5ccaf3e21e0335ec
[ "MIT" ]
null
null
null
fileupload/constants.py
myacera100/ai-django-fileupload
25c0cbd10c93a4556cec82cc5ccaf3e21e0335ec
[ "MIT" ]
null
null
null
from django.templatetags.static import static UPLOADER_DEFAULT_THUMBNAIL = static('img/default-thumbnail.png') UPLOADER_LOGIN_REQUIRED = False UPLOADER_UPLOAD_DIRECTORY = 'media/attachments/'
24.375
64
0.835897
5e24bc733f0b142ea9c64d15ee861780d5bceab7
1,167
py
Python
raporty_siecobywatelska_pl/ranking/views.py
kbiernat/raporty_siecobywatelska_pl
6657f21f5668411f5ae3e2c13effd0d7cf42035f
[ "MIT" ]
null
null
null
raporty_siecobywatelska_pl/ranking/views.py
kbiernat/raporty_siecobywatelska_pl
6657f21f5668411f5ae3e2c13effd0d7cf42035f
[ "MIT" ]
null
null
null
raporty_siecobywatelska_pl/ranking/views.py
kbiernat/raporty_siecobywatelska_pl
6657f21f5668411f5ae3e2c13effd0d7cf42035f
[ "MIT" ]
null
null
null
from audioop import reverse from django.db.models import Count from django.utils.functional import cached_property from django.views.generic import ListView, DetailView, RedirectView from raporty_siecobywatelska_pl.ranking import models from raporty_siecobywatelska_pl.ranking.models import Ranking class RankingRedi...
27.785714
67
0.724079
aab4e2eff247aac34c8623da6afee9ad63010590
2,080
py
Python
rltoolkit/algorithms/a2c/test/test_a2c.py
raznem/rlex
d24b964d80067becc81d86f6ce87e5be413b7049
[ "MIT" ]
null
null
null
rltoolkit/algorithms/a2c/test/test_a2c.py
raznem/rlex
d24b964d80067becc81d86f6ce87e5be413b7049
[ "MIT" ]
null
null
null
rltoolkit/algorithms/a2c/test/test_a2c.py
raznem/rlex
d24b964d80067becc81d86f6ce87e5be413b7049
[ "MIT" ]
null
null
null
import copy import numpy as np import pytest import torch from rltoolkit.algorithms.a2c.a2c import A2C from rltoolkit.buffer import Memory @pytest.fixture() def memory(): buffer = Memory() observations = np.ones((13, 2)) actions = np.ones((12, 2)) rewards = np.array([i for i in range(10)] + [1, 2]) ...
28.493151
84
0.635577
75ccf99f9fde0ccad0914678f429c04f5d2da35f
10,512
py
Python
timezonefinder/helpers_numba.py
Tmdean/timezonefinder
7ddfd1c1eea459336b76673122665afd5284a2ca
[ "MIT" ]
null
null
null
timezonefinder/helpers_numba.py
Tmdean/timezonefinder
7ddfd1c1eea459336b76673122665afd5284a2ca
[ "MIT" ]
null
null
null
timezonefinder/helpers_numba.py
Tmdean/timezonefinder
7ddfd1c1eea459336b76673122665afd5284a2ca
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function, unicode_literals from math import asin, atan2, ceil, cos, degrees, radians, sin, sqrt from numba import b1, f8, i2, i4, jit, typeof, u2, u8 # # for Ahead-Of-Time Compilation: # from numba.pycc import CC # cc = CC('compiled_helpers', ) # # Uncomment the...
41.223529
120
0.641457
201be016bf89436624195239791807e2dbca7e4a
1,887
py
Python
q2_types/distance_matrix/tests/test_format.py
Leo-Simpson/q2-types
2946fda4fe2817fde1646ddcdc8e8ebf41abe5a4
[ "BSD-3-Clause" ]
null
null
null
q2_types/distance_matrix/tests/test_format.py
Leo-Simpson/q2-types
2946fda4fe2817fde1646ddcdc8e8ebf41abe5a4
[ "BSD-3-Clause" ]
null
null
null
q2_types/distance_matrix/tests/test_format.py
Leo-Simpson/q2-types
2946fda4fe2817fde1646ddcdc8e8ebf41abe5a4
[ "BSD-3-Clause" ]
null
null
null
# ---------------------------------------------------------------------------- # Copyright (c) 2016-2020, QIIME 2 development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file LICENSE, distributed with this software. # ------------------------------------------------...
35.603774
79
0.63487
ce71aa19be52b6003a704ffc8686cbeedf1a7b16
1,161
py
Python
src/olympia/addons/api_urls.py
makyen/Mozilla-addons-server
555d9f31cc4b00799466f16c8809edd5f1858ab8
[ "BSD-3-Clause" ]
1
2020-12-03T10:02:15.000Z
2020-12-03T10:02:15.000Z
src/olympia/addons/api_urls.py
makyen/Mozilla-addons-server
555d9f31cc4b00799466f16c8809edd5f1858ab8
[ "BSD-3-Clause" ]
null
null
null
src/olympia/addons/api_urls.py
makyen/Mozilla-addons-server
555d9f31cc4b00799466f16c8809edd5f1858ab8
[ "BSD-3-Clause" ]
null
null
null
from django.conf.urls import include, url from rest_framework.routers import SimpleRouter from rest_framework_nested.routers import NestedSimpleRouter from olympia.activity.views import VersionReviewNotesViewSet from .views import ( AddonFeaturedView, AddonSearchView, AddonVersionViewSet, AddonViewSet, Stati...
37.451613
79
0.752799
594d795ecd54c724bde8f6c67c16cc8f07734722
3,959
py
Python
qa/rpc-tests/maxblocksinflight.py
mirzaei-ce/linux-ausbit
6d4f8ba69c46ce5c03c79fbaecaec69c6a54acd5
[ "MIT" ]
null
null
null
qa/rpc-tests/maxblocksinflight.py
mirzaei-ce/linux-ausbit
6d4f8ba69c46ce5c03c79fbaecaec69c6a54acd5
[ "MIT" ]
null
null
null
qa/rpc-tests/maxblocksinflight.py
mirzaei-ce/linux-ausbit
6d4f8ba69c46ce5c03c79fbaecaec69c6a54acd5
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # # Distributed under the MIT/X11 software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # from test_framework.mininode import * from test_framework.test_framework import AusbitTestFramework from test_framework.util import * import logging '...
39.19802
114
0.608234
fe91f28ddad3f6a55822aeb8bf0de8ea1d52fddd
7,895
py
Python
Projects/PlantMaker/archive/20100520/src/scheduler.py
fredmorcos/attic
0da3b94aa525df59ddc977c32cb71c243ffd0dbd
[ "Unlicense" ]
2
2021-01-24T09:00:51.000Z
2022-01-23T20:52:17.000Z
Projects/PlantMaker/archive/20100520/src/scheduler.py
fredmorcos/attic
0da3b94aa525df59ddc977c32cb71c243ffd0dbd
[ "Unlicense" ]
6
2020-02-29T01:59:03.000Z
2022-02-15T10:25:40.000Z
Projects/PlantMaker/archive/20100520/src/scheduler.py
fredmorcos/attic
0da3b94aa525df59ddc977c32cb71c243ffd0dbd
[ "Unlicense" ]
1
2019-03-22T14:41:21.000Z
2019-03-22T14:41:21.000Z
""" This module provides the main Scheduler logic of the program. """ from constraint import Problem from constraints import MachineBreaksConstraint from printer import pprint, BLUE, YELLOW, RED class Scheduler(object): """ This class provides the constraint-based Scheduler. """ def __init__(self, plant, orderList...
33.739316
75
0.717796
850ceb07c85f337c1606f876f5ea09488d925719
7,685
py
Python
MoSwA.py
macelik/MoSwA
92fc74a207cbdc309eeac337dac1528a0596f564
[ "MIT" ]
3
2021-08-31T12:37:11.000Z
2022-01-12T09:33:40.000Z
MoSwA.py
macelik/MoSwA
92fc74a207cbdc309eeac337dac1528a0596f564
[ "MIT" ]
1
2021-08-05T09:35:42.000Z
2021-10-02T16:22:54.000Z
MoSwA.py
macelik/MoSwA
92fc74a207cbdc309eeac337dac1528a0596f564
[ "MIT" ]
null
null
null
#!/usr/bin/env python from argparse import ArgumentParser from build import RunAndCompare,SplitsMergers,BuildConsensus,Clustering,PlotHotClusters from build import NetworkPlot,report,align import os,random,json def is_valid_file(parser, arg): if not os.path.isfile(arg): parser.error("The file %s does not e...
50.228758
194
0.690696
0e3f3910b5ac236f25134b82c56d14691c26bb66
847
py
Python
tncProject/wsgi.py
haueyne/tnc-site
8e5c853b5f48598210c2733a33039f77bd97762a
[ "MIT" ]
null
null
null
tncProject/wsgi.py
haueyne/tnc-site
8e5c853b5f48598210c2733a33039f77bd97762a
[ "MIT" ]
3
2020-06-05T18:08:54.000Z
2021-06-10T20:15:38.000Z
tncProject/wsgi.py
haueyne/tnc-site
8e5c853b5f48598210c2733a33039f77bd97762a
[ "MIT" ]
null
null
null
""" WSGI config for tncProject project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/ """ import os import threading import requests import time from whitenoise.django import DjangoWh...
21.175
78
0.698937
8a77de9c326d98c2045a1274f54128e3da4b41d1
5,478
py
Python
django/contrib/gis/geos/tests/test_geos_mutation.py
vsajip/django
bb41826571f5e12f6f60daf3639e7d8c063d163e
[ "BSD-3-Clause" ]
3
2015-10-14T09:13:48.000Z
2021-01-01T06:31:25.000Z
django/contrib/gis/geos/tests/test_geos_mutation.py
vsajip/django
bb41826571f5e12f6f60daf3639e7d8c063d163e
[ "BSD-3-Clause" ]
null
null
null
django/contrib/gis/geos/tests/test_geos_mutation.py
vsajip/django
bb41826571f5e12f6f60daf3639e7d8c063d163e
[ "BSD-3-Clause" ]
1
2015-10-14T09:13:48.000Z
2015-10-14T09:13:48.000Z
# Copyright (c) 2008-2009 Aryeh Leib Taurog, all rights reserved. # Modified from original contribution by Aryeh Leib Taurog, which was # released under the New BSD license. from django.contrib.gis.geos import * from django.contrib.gis.geos.error import GEOSIndexError from django.utils import unittest from django.util...
39.985401
104
0.581964
1507296711d111655ac4311d4b56d93d6c880ed8
127
py
Python
finite-mdp/finite_mdp/__init__.py
DinisMoreira/Dissert
d59a810992a32a0e033a58204afbbc386958dd32
[ "MIT" ]
null
null
null
finite-mdp/finite_mdp/__init__.py
DinisMoreira/Dissert
d59a810992a32a0e033a58204afbbc386958dd32
[ "MIT" ]
null
null
null
finite-mdp/finite_mdp/__init__.py
DinisMoreira/Dissert
d59a810992a32a0e033a58204afbbc386958dd32
[ "MIT" ]
2
2021-09-21T14:53:34.000Z
2022-01-04T09:39:37.000Z
from gym.envs.registration import register register( id='finite-mdp-v0', entry_point='finite_mdp.envs:FiniteMDPEnv', )
21.166667
47
0.748031
e211a84bcde5ea452ce7ae0d26dfd93c779afdab
358
py
Python
hottbox/core/__init__.py
bscalzo/hottbox
332620b34971511a3b59df4dee7f9d9b17cb4b46
[ "Apache-2.0" ]
null
null
null
hottbox/core/__init__.py
bscalzo/hottbox
332620b34971511a3b59df4dee7f9d9b17cb4b46
[ "Apache-2.0" ]
null
null
null
hottbox/core/__init__.py
bscalzo/hottbox
332620b34971511a3b59df4dee7f9d9b17cb4b46
[ "Apache-2.0" ]
null
null
null
""" This module contains methods for the most common operations within multilinear algebra and classes for the tensors represented through various tensor decompositions """ from .structures import Tensor, TensorCPD, TensorTKD, TensorTT, super_diag_tensor, residual_tensor from .operations import khatri_rao, hadamard, k...
51.142857
98
0.832402
7ee48f5bf930758f217f70d2afa5a744f06da8f0
9,105
py
Python
sdk/lusid/models/bucketed_cash_flow_response.py
finbourne/lusid-sdk-python-preview
6b1ae2c634f4b9a816e070470e9c8e6e06eae0ee
[ "MIT" ]
5
2019-06-01T11:37:48.000Z
2021-08-23T17:37:33.000Z
sdk/lusid/models/bucketed_cash_flow_response.py
finbourne/lusid-sdk-python-preview
6b1ae2c634f4b9a816e070470e9c8e6e06eae0ee
[ "MIT" ]
98
2020-04-15T06:05:43.000Z
2022-03-01T10:25:25.000Z
sdk/lusid/models/bucketed_cash_flow_response.py
finbourne/lusid-sdk-python-preview
6b1ae2c634f4b9a816e070470e9c8e6e06eae0ee
[ "MIT" ]
9
2019-09-30T11:19:25.000Z
2021-11-17T19:49:59.000Z
# coding: utf-8 """ LUSID API FINBOURNE Technology # noqa: E501 The version of the OpenAPI document: 0.11.3648 Contact: info@finbourne.com Generated by: https://openapi-generator.tech """ try: from inspect import getfullargspec except ImportError: from inspect import getargspec as getf...
34.751908
372
0.630203
b20337576934644d88b1848ffb1b624bff01e682
5,874
py
Python
homeassistant/components/mitemp_bt/sensor.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
4
2020-07-29T17:47:10.000Z
2020-09-16T13:39:13.000Z
homeassistant/components/mitemp_bt/sensor.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
6
2020-11-08T19:40:10.000Z
2022-03-01T11:11:07.000Z
homeassistant/components/mitemp_bt/sensor.py
klauern/home-assistant-core
c18ba6aec0627e6afb6442c678edb5ff2bb17db6
[ "Apache-2.0" ]
5
2020-03-29T00:29:13.000Z
2021-09-06T20:58:40.000Z
"""Support for Xiaomi Mi Temp BLE environmental sensor.""" import logging import btlewrap from btlewrap.base import BluetoothBackendException from mitemp_bt import mitemp_bt_poller import voluptuous as vol from homeassistant.components.sensor import PLATFORM_SCHEMA from homeassistant.const import ( CONF_FORCE_UPD...
30.915789
87
0.655601
9a1165dfdb989fc6937714a8a2bb01ee352db77f
31,319
py
Python
Valkyries/FASTQ_Tools.py
Gaorav-Gupta-Lab/Volundr
0142c03b233e15609ad0688ef918aecc45522430
[ "MIT" ]
1
2020-10-28T15:36:57.000Z
2020-10-28T15:36:57.000Z
Valkyries/FASTQ_Tools.py
pkMyt1/Volundr
0142c03b233e15609ad0688ef918aecc45522430
[ "MIT" ]
6
2019-05-07T16:47:06.000Z
2020-10-21T13:05:57.000Z
Valkyries/FASTQ_Tools.py
Gaorav-Gupta-Lab/Volundr
0142c03b233e15609ad0688ef918aecc45522430
[ "MIT" ]
2
2020-03-28T02:39:12.000Z
2020-10-26T14:42:27.000Z
""" Some helpers to make it easier to manipulate FASTQ files. @author: Dennis A. Simpson University of North Carolina at Chapel Hill Chapel Hill, NC 27517 @copyright: 2020 """ import pathlib import gzip import ntpath import itertools from operator import add import collections import time import nat...
40.307593
126
0.570229
8a53151e0c799d627c477ec7623bbef6ae8b1979
4,628
py
Python
moto/ec2/responses/vpcs.py
gvlproject/moto
b1c51faaf5dbf79a76eca29724b7d22b87e27502
[ "Apache-2.0" ]
1
2021-06-14T18:05:40.000Z
2021-06-14T18:05:40.000Z
moto/ec2/responses/vpcs.py
gvlproject/moto
b1c51faaf5dbf79a76eca29724b7d22b87e27502
[ "Apache-2.0" ]
1
2021-12-13T20:51:54.000Z
2021-12-13T20:51:54.000Z
moto/ec2/responses/vpcs.py
gvlproject/moto
b1c51faaf5dbf79a76eca29724b7d22b87e27502
[ "Apache-2.0" ]
1
2019-06-19T06:56:40.000Z
2019-06-19T06:56:40.000Z
from __future__ import unicode_literals from moto.core.responses import BaseResponse from moto.core.utils import camelcase_to_underscores from moto.ec2.utils import filters_from_querystring class VPCs(BaseResponse): def create_vpc(self): cidr_block = self._get_param('CidrBlock') instance_tenancy ...
38.890756
123
0.654927
f41f65e93674ff34d66bc80f53248d89896d17bc
2,414
py
Python
data/p4VQE/R4/benchmark/startQiskit_noisy425.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R4/benchmark/startQiskit_noisy425.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R4/benchmark/startQiskit_noisy425.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=3 # total number=11 import numpy as np from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ import networkx as nx from qiskit.visualization import plot_histogram from typing import * from pprint import pprint from math import log2 from collectio...
26.822222
118
0.630489
476e7f1c75c9d6dffeea266de39268e2a0b825ea
14,521
py
Python
llvm/utils/UpdateTestChecks/asm.py
dongkyunahn-intel/llvm
a3bbc1105cf41809e6ea546ee1c541e8522db6d6
[ "Apache-2.0" ]
null
null
null
llvm/utils/UpdateTestChecks/asm.py
dongkyunahn-intel/llvm
a3bbc1105cf41809e6ea546ee1c541e8522db6d6
[ "Apache-2.0" ]
null
null
null
llvm/utils/UpdateTestChecks/asm.py
dongkyunahn-intel/llvm
a3bbc1105cf41809e6ea546ee1c541e8522db6d6
[ "Apache-2.0" ]
1
2021-11-23T17:16:34.000Z
2021-11-23T17:16:34.000Z
from __future__ import print_function import re import sys from . import common if sys.version_info[0] > 2: class string: expandtabs = str.expandtabs else: import string # RegEx: this is where the magic happens. ##### Assembly parser ASM_FUNCTION_X86_RE = re.compile( r'^_?(?P<func>[^:]+):[ \t]*#+[ \t]*...
38.112861
140
0.62234
4b2bb42cb6b141e3f7ae7b9ad1d43045f57eb201
11,697
py
Python
tensorflow/python/kernel_tests/proto/decode_proto_op_test_base.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
null
null
null
tensorflow/python/kernel_tests/proto/decode_proto_op_test_base.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
null
null
null
tensorflow/python/kernel_tests/proto/decode_proto_op_test_base.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
null
null
null
# ============================================================================= # Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License...
37.854369
91
0.638112
1cc4f05590314ddbf622feac2b2baba9a39089d6
1,760
py
Python
majority rule/majority_rule.py
hide-dog/kaggle_titanic
010d8b5621a54e95df9162265b655b91eeee00cf
[ "MIT" ]
null
null
null
majority rule/majority_rule.py
hide-dog/kaggle_titanic
010d8b5621a54e95df9162265b655b91eeee00cf
[ "MIT" ]
null
null
null
majority rule/majority_rule.py
hide-dog/kaggle_titanic
010d8b5621a54e95df9162265b655b91eeee00cf
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import glob import csv # ------------------------------------------------ # main # ------------------------------------------------ def main(): ofile = "majority_rule.csv" fff = glob.glob("solution*") y = np.loadtxt(fff[0], delimiter=',', skiprows = 1, usecols =...
26.268657
93
0.49375
fc891624af957e64cc2b4894fff16eb343846c1f
317
py
Python
app.py
leirbag95/instaget
c0403742d065ba7797039382f43323d265bde8bc
[ "Apache-2.0" ]
null
null
null
app.py
leirbag95/instaget
c0403742d065ba7797039382f43323d265bde8bc
[ "Apache-2.0" ]
null
null
null
app.py
leirbag95/instaget
c0403742d065ba7797039382f43323d265bde8bc
[ "Apache-2.0" ]
null
null
null
from src import InstaGet from os import environ import subprocess import sys if __name__ == "__main__": try: username = str(input("username: ")) except Exception as e: raise Exception(e) instaget = InstaGet(username=username) profile = instaget.get_profile() print(profile)
19.8125
43
0.671924
e63b81676f36c455ff1f220721726184bb8994b1
5,322
py
Python
Gem/PythonTests/Automated/test_suites/periodic/PhysicalSkyComponent_test_case.py
incisor/o3de-atomtest
026fef06827bf0dd559510882df5cb426ab00a99
[ "Apache-2.0", "MIT" ]
2
2021-07-18T11:20:41.000Z
2022-02-01T20:17:50.000Z
Gem/PythonTests/Automated/test_suites/periodic/PhysicalSkyComponent_test_case.py
incisor/o3de-atomtest
026fef06827bf0dd559510882df5cb426ab00a99
[ "Apache-2.0", "MIT" ]
5
2021-07-14T02:24:07.000Z
2021-10-04T21:24:35.000Z
Gem/PythonTests/Automated/test_suites/periodic/PhysicalSkyComponent_test_case.py
incisor/o3de-atomtest
026fef06827bf0dd559510882df5cb426ab00a99
[ "Apache-2.0", "MIT" ]
7
2021-07-06T18:21:14.000Z
2021-12-06T09:12:40.000Z
""" Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution. SPDX-License-Identifier: Apache-2.0 OR MIT Hydra script that is used to test the Physical Sky component functionality inside the Editor. Opens the MeshTest le...
42.919355
112
0.756295
b61d7e8dabafb604bdca63d8e4b563d89d442d3e
1,538
py
Python
sdk/python/pulumi_alicloud/gpdb/__init__.py
pulumi/pulumi-alicloud
9c34d84b4588a7c885c6bec1f03b5016e5a41683
[ "ECL-2.0", "Apache-2.0" ]
42
2019-03-18T06:34:37.000Z
2022-03-24T07:08:57.000Z
sdk/python/pulumi_alicloud/gpdb/__init__.py
pulumi/pulumi-alicloud
9c34d84b4588a7c885c6bec1f03b5016e5a41683
[ "ECL-2.0", "Apache-2.0" ]
152
2019-04-15T21:03:44.000Z
2022-03-29T18:00:57.000Z
sdk/python/pulumi_alicloud/gpdb/__init__.py
pulumi/pulumi-alicloud
9c34d84b4588a7c885c6bec1f03b5016e5a41683
[ "ECL-2.0", "Apache-2.0" ]
3
2020-08-26T17:30:07.000Z
2021-07-05T01:37:45.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: from .connection import * from .elastic_instance import * from .get_instances import * from...
37.512195
97
0.691808
9456883c37da11e7315132d2928421e27defaad7
2,719
py
Python
RSA/rsa.py
conejo11/PAA
a97debddd63925a5f54cd50443e49ad313e9b966
[ "MIT" ]
null
null
null
RSA/rsa.py
conejo11/PAA
a97debddd63925a5f54cd50443e49ad313e9b966
[ "MIT" ]
null
null
null
RSA/rsa.py
conejo11/PAA
a97debddd63925a5f54cd50443e49ad313e9b966
[ "MIT" ]
1
2019-10-16T14:38:47.000Z
2019-10-16T14:38:47.000Z
import math import random def extendedEuclidean(a, b): if a == 0: return (b, 0, 1) else: gcd, x, y = extendedEuclidean(b % a, a) return (gcd, y - b//a * x, x) ################################################################################ ######################################################################...
18.623288
80
0.500552
a4104bd0c94ca62ea7fc1647ea97c5112f244ce2
7,892
py
Python
src/schnetpack/nn/base.py
lizhifeng1998/schnetpack
7a665f19b785addcc8f3e0abf9b1fd8fa6fe2c3d
[ "MIT" ]
450
2018-09-04T08:37:47.000Z
2022-03-30T08:05:37.000Z
src/schnetpack/nn/base.py
lizhifeng1998/schnetpack
7a665f19b785addcc8f3e0abf9b1fd8fa6fe2c3d
[ "MIT" ]
239
2018-09-11T21:09:08.000Z
2022-03-18T09:25:11.000Z
src/schnetpack/nn/base.py
lizhifeng1998/schnetpack
7a665f19b785addcc8f3e0abf9b1fd8fa6fe2c3d
[ "MIT" ]
166
2018-09-13T13:01:06.000Z
2022-03-31T12:59:12.000Z
import torch from torch import nn from torch.nn.init import xavier_uniform_ from schnetpack.nn.initializers import zeros_initializer __all__ = ["Dense", "GetItem", "ScaleShift", "Standardize", "Aggregate"] class Dense(nn.Linear): r"""Fully connected linear layer with activation function. .. math:: ...
28.490975
85
0.592499
b293ddfa7ba20f5b009ec834da13ed062057e693
420
py
Python
src/junit_report/__init__.py
eliorerz/junit-report
e0ed2c5b5b38500b020a2dc09a7ff172d01609ed
[ "MIT" ]
4
2021-03-30T16:24:40.000Z
2021-04-04T12:43:03.000Z
src/junit_report/__init__.py
eliorerz/junit-report
e0ed2c5b5b38500b020a2dc09a7ff172d01609ed
[ "MIT" ]
2
2021-04-05T08:49:22.000Z
2021-04-11T10:19:53.000Z
src/junit_report/__init__.py
eliorerz/junit-report
e0ed2c5b5b38500b020a2dc09a7ff172d01609ed
[ "MIT" ]
null
null
null
from .decorators import JunitFixtureTestCase, DuplicateSuiteError, JunitTestCase, JunitTestSuite, TestCaseCategories from .json_junit_exporter import JsonJunitExporter, CaseFormatKeys from .utils import CaseFailure __all__ = [ "JunitTestCase", "CaseFailure", "TestCaseCategories", "JunitFixtureTestCase"...
28
116
0.769048
05f9ae21b174d31f909f15c00df2952244050ffa
215,624
py
Python
tensorflow/python/framework/ops.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/python/framework/ops.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/python/framework/ops.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
26
2017-04-12T16:25:44.000Z
2018-10-30T10:10:15.000Z
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
36.227151
116
0.685708
a9d5ae8df8d4e4f3a51b2f22f62d88bf2d2f91ab
3,763
py
Python
webauthn_rp/utils.py
enceladus-rex/webauthn-rp
71037d19889c4dfd18c42d31e8a44542ee2b34f7
[ "MIT" ]
3
2020-10-17T00:29:54.000Z
2021-07-30T13:33:31.000Z
webauthn_rp/utils.py
enceladus-rex/webauthn-rp
71037d19889c4dfd18c42d31e8a44542ee2b34f7
[ "MIT" ]
8
2020-10-30T04:32:32.000Z
2022-03-12T09:38:07.000Z
webauthn_rp/utils.py
enceladus-rex/webauthn-rp
71037d19889c4dfd18c42d31e8a44542ee2b34f7
[ "MIT" ]
1
2020-03-16T20:51:00.000Z
2020-03-16T20:51:00.000Z
import base64 import re from typing import TYPE_CHECKING, Dict, Type, Union from cryptography.hazmat.primitives.hashes import (SHA256, SHA384, SHA512, HashAlgorithm) from webauthn_rp.constants import (ED448_COORDINATE_BYTE_LENGTH, E...
27.071942
79
0.636726
1ad748b3512667031571437b38a0099ef8c01df6
16,525
py
Python
xtreme-view/vsynthlib/deepmvs_wrapper.py
NVlabs/extreme-view-synth
2820ffdda9f44e70cd2fdd0845ec9145293e4183
[ "BSD-2-Clause" ]
80
2019-08-15T08:10:38.000Z
2022-01-22T10:54:19.000Z
xtreme-view/vsynthlib/deepmvs_wrapper.py
NVlabs/extreme-view-synth
2820ffdda9f44e70cd2fdd0845ec9145293e4183
[ "BSD-2-Clause" ]
9
2019-11-07T09:43:14.000Z
2021-01-18T05:57:39.000Z
xtreme-view/vsynthlib/deepmvs_wrapper.py
NVlabs/extreme-view-synth
2820ffdda9f44e70cd2fdd0845ec9145293e4183
[ "BSD-2-Clause" ]
8
2019-11-12T19:18:01.000Z
2021-03-16T06:11:58.000Z
""" Copyright (C) 2019 NVIDIA Corporation. All rights reserved. Licensed under the NVIDIA Source Code License. See LICENSE.md at https://github.com/NVlabs/extreme-view-synth. Authors: Inchang Choi, Orazio Gallo, Alejandro Troccoli, Min H. Kim, and Jan Kautz """ import torch import torchvision as vision import torch.n...
44.662162
133
0.519334
8d4cacbd742147da5d6989b10bcdb6b6304489da
17,064
py
Python
eng/mgmt/automation/generate.py
yifan-zhou922/azure-sdk-for-java
e8dddefaa739e2a680529a910c81249685ea5e30
[ "MIT" ]
null
null
null
eng/mgmt/automation/generate.py
yifan-zhou922/azure-sdk-for-java
e8dddefaa739e2a680529a910c81249685ea5e30
[ "MIT" ]
null
null
null
eng/mgmt/automation/generate.py
yifan-zhou922/azure-sdk-for-java
e8dddefaa739e2a680529a910c81249685ea5e30
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import re import sys import json import glob import yaml import shutil import logging import argparse import requests import tempfile import subprocess import urllib.parse from typing import Tuple pwd = os.getcwd() os.chdir(os.path.abspath(os.path.dirname(sys.argv[0]))) from parameters...
33.263158
156
0.597398
d98085f8f4d98c54e03e40d80217b31e8a9bb189
3,414
py
Python
scripts/kconfig/kconfig.py
FingerprintCardsAB/zephyr
2055b84f7909453904606a83192497f10ce132d4
[ "Apache-2.0" ]
null
null
null
scripts/kconfig/kconfig.py
FingerprintCardsAB/zephyr
2055b84f7909453904606a83192497f10ce132d4
[ "Apache-2.0" ]
null
null
null
scripts/kconfig/kconfig.py
FingerprintCardsAB/zephyr
2055b84f7909453904606a83192497f10ce132d4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Modified from: https://github.com/ulfalizer/Kconfiglib/blob/master/examples/merge_config.py import argparse import sys from kconfiglib import Kconfig, Symbol, BOOL, STRING, TRISTATE, TRI_TO_STR def main(): parse_args() print("Parsing Kconfig tree in {}".format(args.kconfig_root)) ...
33.145631
93
0.668424
58411c0bd9ad916e2af7fae25d0dfab6028602dc
3,218
py
Python
my_plugins/YouCompleteMe/third_party/ycmd/ycmd/tests/javascript/__init__.py
liutongliang/myVim
6c7ab36f25f4a5e2e1daeab8c43509975eb031e3
[ "MIT" ]
2
2018-04-16T03:08:42.000Z
2021-01-06T10:21:49.000Z
my_plugins/YouCompleteMe/third_party/ycmd/ycmd/tests/javascript/__init__.py
liutongliang/myVim
6c7ab36f25f4a5e2e1daeab8c43509975eb031e3
[ "MIT" ]
null
null
null
my_plugins/YouCompleteMe/third_party/ycmd/ycmd/tests/javascript/__init__.py
liutongliang/myVim
6c7ab36f25f4a5e2e1daeab8c43509975eb031e3
[ "MIT" ]
null
null
null
# Copyright (C) 2018 ycmd contributors # # This file is part of ycmd. # # ycmd 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, either version 3 of the License, or # (at your option) any later version. # # ycmd...
34.978261
80
0.726538
6d4882b3c8b168ce59786832f20b97eebd5ecad5
161
py
Python
pyorbit/services/__init__.py
davidchristine88/pyorbit
6bf81573145ec3c6fe22f046920f069817eb0845
[ "MIT" ]
null
null
null
pyorbit/services/__init__.py
davidchristine88/pyorbit
6bf81573145ec3c6fe22f046920f069817eb0845
[ "MIT" ]
2
2018-02-02T18:34:12.000Z
2018-02-03T14:37:08.000Z
pyorbit/services/__init__.py
davidchristine88/pyorbit
6bf81573145ec3c6fe22f046920f069817eb0845
[ "MIT" ]
3
2018-02-02T20:14:37.000Z
2018-06-22T17:54:52.000Z
from .config import Config from .status import Status from .system import System from .fw import Firmware from .cell_fw import CellFirmware from .pki import PKI
23
33
0.813665
8445832ebe9055d8f68a97292e9cb16c6ae5895d
1,538
py
Python
models/base_rnn.py
sarrouti/multi-class-text-classification-pytorch
7d208e0b57afa0bdfdd12ac50d5b1f962333f1dc
[ "MIT" ]
3
2021-03-09T02:39:30.000Z
2022-01-05T06:00:55.000Z
models/base_rnn.py
sarrouti/multi-class-text-classification-pytorch
7d208e0b57afa0bdfdd12ac50d5b1f962333f1dc
[ "MIT" ]
null
null
null
models/base_rnn.py
sarrouti/multi-class-text-classification-pytorch
7d208e0b57afa0bdfdd12ac50d5b1f962333f1dc
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Apr 10 02:09:09 2020 @author: sarroutim2 """ import torch.nn as nn class BaseRNN(nn.Module): """Applies a multi-layer RNN to an input sequence. Note: Do not use this class directly, use one of the sub classes. Inputs: ``*args``,...
30.76
82
0.613134
9ab025fd6e39fbf843e98780bcef23db09059a1e
901
py
Python
Flask/Dashboards/Light/app/models.py
stanman71/Python
fe442e421362b22f61d05235e835a568d9ce3aef
[ "MIT" ]
1
2019-02-18T18:56:07.000Z
2019-02-18T18:56:07.000Z
Flask/Dashboards/Light/app/models.py
stanman71/Python
fe442e421362b22f61d05235e835a568d9ce3aef
[ "MIT" ]
null
null
null
Flask/Dashboards/Light/app/models.py
stanman71/Python
fe442e421362b22f61d05235e835a568d9ce3aef
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- """ Light Bootstrap Dashboard - coded in Flask Author : AppSeed App Generator Design : Creative-Tim.com License : MIT Support : https://appseed.us/support """ from app import db from flask_login import UserMixin class User(UserMixin, db.Model): id = db.Column(db.Integ...
23.710526
58
0.599334
d277e4cebdcff47cf9c3e5ff62409a3bd0eec276
49,290
py
Python
rvGraph.py
ArmelliniMG/sumoDRToffline
8cb6b24232818ddeb4ec713cd7b124b2d4326cda
[ "MIT" ]
2
2021-07-22T01:47:20.000Z
2021-09-21T17:55:51.000Z
rvGraph.py
ArmelliniMG/sumoDRToffline
8cb6b24232818ddeb4ec713cd7b124b2d4326cda
[ "MIT" ]
null
null
null
rvGraph.py
ArmelliniMG/sumoDRToffline
8cb6b24232818ddeb4ec713cd7b124b2d4326cda
[ "MIT" ]
null
null
null
# (C) 2021 Armellini # This code is licensed under MIT license (see LICENSE for details) # @file rvGraph.py # @author Maria Giuliana Armellini # @date 2020-01-01 # Creates the pairwise Graph for requests and vehicles try: import xml.etree.cElementTree as ET except ImportError as e: print("recovering f...
53.057051
171
0.493528
f797f526dbb1dc66f3acaa9aad6df2c4ff4abe75
203
py
Python
python-tf/sample_counter.py
vfonov/DARQ
4845e416a3939b4e86e1441a4a44f4fea337caf5
[ "MIT" ]
2
2021-08-24T13:13:48.000Z
2021-12-20T14:27:39.000Z
python-tf/sample_counter.py
vfonov/DARQ
4845e416a3939b4e86e1441a4a44f4fea337caf5
[ "MIT" ]
null
null
null
python-tf/sample_counter.py
vfonov/DARQ
4845e416a3939b4e86e1441a4a44f4fea337caf5
[ "MIT" ]
null
null
null
import tensorflow as tf import sys tf.logging.set_verbosity('WARN') tf.compat.v1.enable_eager_execution() files=sys.argv for f in sys.argv[1:]: print(f, sum(1 for i in tf.data.TFRecordDataset(f)))
20.3
56
0.743842
4b4dd7eb6e0822232a0e1b571b600f28f2e10a02
2,320
py
Python
nesta/core/batchables/general/companies/sql2es/run.py
anniyanvr/nesta
4b3ae79922cebde0ad33e08ac4c40b9a10e8e7c3
[ "MIT" ]
13
2019-06-18T16:53:53.000Z
2021-03-04T10:58:52.000Z
nesta/core/batchables/general/companies/sql2es/run.py
nestauk/old_nesta_daps
4b3ae79922cebde0ad33e08ac4c40b9a10e8e7c3
[ "MIT" ]
208
2018-08-10T13:15:40.000Z
2021-07-21T10:16:07.000Z
nesta/core/batchables/general/companies/sql2es/run.py
nestauk/old_nesta_daps
4b3ae79922cebde0ad33e08ac4c40b9a10e8e7c3
[ "MIT" ]
8
2018-09-20T15:19:23.000Z
2020-12-15T17:41:34.000Z
""" run.py (general.companies.sql2es) ================================== Pipe curated Companies data from MySQL to Elasticsearch. """ from nesta.core.luigihacks.elasticsearchplus import ElasticsearchPlus from nesta.core.orms.orm_utils import db_session, get_mysql_engine from nesta.core.orms.orm_utils import object_to...
35.151515
82
0.65
ffcd6fc317efb8bbc81e09bdb48854caffcb9129
6,794
py
Python
tests/cli/commands/test_info_command.py
aditishankar/test
dd3c46115ed3d5af7e6a4a6f8745cffb9b762c3a
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
3
2021-01-29T20:33:56.000Z
2021-08-06T17:35:16.000Z
tests/cli/commands/test_info_command.py
aditishankar/test
dd3c46115ed3d5af7e6a4a6f8745cffb9b762c3a
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
210
2021-07-17T00:25:52.000Z
2021-12-29T00:44:48.000Z
tests/cli/commands/test_info_command.py
aditishankar/test
dd3c46115ed3d5af7e6a4a6f8745cffb9b762c3a
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
2
2021-04-14T11:15:17.000Z
2021-12-15T16:58:24.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
34.313131
100
0.636885
d55f914897d268a4a849334de14037679847b738
1,512
py
Python
process_pipelines/xiaohuangji.py
LaudateCorpus1/chinese_chatbot_corpus
3f1516947753744919611b5dc7f74e513d157036
[ "Apache-2.0" ]
2,321
2019-04-16T06:14:55.000Z
2022-03-31T08:10:34.000Z
process_pipelines/xiaohuangji.py
wysstartgo/chinese_chatbot_corpus
a05452654b8b374eee646dd6bf43e4e9f4e57661
[ "Apache-2.0" ]
9
2019-05-08T02:14:07.000Z
2021-08-04T07:39:33.000Z
process_pipelines/xiaohuangji.py
wysstartgo/chinese_chatbot_corpus
a05452654b8b374eee646dd6bf43e4e9f4e57661
[ "Apache-2.0" ]
506
2019-04-19T09:14:40.000Z
2022-03-28T02:31:45.000Z
import codecs import os from config import Config from util import * def prepocess(raw_corpus_file_name, result_file_name): start_end_symbol = "E" utterance_symbol = "M" raw_corpus_file = codecs.open(raw_corpus_file_name, encoding=Config.encoding, errors="replace") result_file = codecs.open(result_f...
32.869565
99
0.685185
4b747db6febe0ebbd94750f23cec38c3b81673e6
8,097
py
Python
otcextensions/sdk/cce/cce_service.py
zsoltn/python-otcextensions
4c0fa22f095ebd5f9636ae72acbae5048096822c
[ "Apache-2.0" ]
10
2018-03-03T17:59:59.000Z
2020-01-08T10:03:00.000Z
otcextensions/sdk/cce/cce_service.py
zsoltn/python-otcextensions
4c0fa22f095ebd5f9636ae72acbae5048096822c
[ "Apache-2.0" ]
208
2020-02-10T08:27:46.000Z
2022-03-29T15:24:21.000Z
otcextensions/sdk/cce/cce_service.py
zsoltn/python-otcextensions
4c0fa22f095ebd5f9636ae72acbae5048096822c
[ "Apache-2.0" ]
15
2020-04-01T20:45:54.000Z
2022-03-23T12:45:43.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 # distributed under t...
44.489011
79
0.599975
95af28e73996a762ed6bf6bc6be73ab61923539c
26,857
py
Python
python/plano.py
jirkadanek/quiver
49785bbbabdd3b3e2197566cacbbffef55b1272e
[ "Apache-2.0" ]
22
2016-09-16T15:34:17.000Z
2021-08-30T14:14:36.000Z
python/plano.py
jirkadanek/quiver
49785bbbabdd3b3e2197566cacbbffef55b1272e
[ "Apache-2.0" ]
42
2016-09-16T16:31:29.000Z
2021-10-31T15:40:23.000Z
python/plano.py
jirkadanek/quiver
49785bbbabdd3b3e2197566cacbbffef55b1272e
[ "Apache-2.0" ]
23
2016-08-26T15:50:34.000Z
2021-12-09T14:51:13.000Z
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
25.700478
111
0.646982
ea8e37c93624e24f6f51490b6c62c5a90f3a56b0
4,245
py
Python
APIs/APIs 8 - Hashing/app/main.py
Nikolas010101/Projects
1338e8073dd85b5b9d2b107b51eff966eb4051e9
[ "MIT" ]
null
null
null
APIs/APIs 8 - Hashing/app/main.py
Nikolas010101/Projects
1338e8073dd85b5b9d2b107b51eff966eb4051e9
[ "MIT" ]
null
null
null
APIs/APIs 8 - Hashing/app/main.py
Nikolas010101/Projects
1338e8073dd85b5b9d2b107b51eff966eb4051e9
[ "MIT" ]
null
null
null
from typing import Optional, List import bcrypt from fastapi import Body, FastAPI, Response, status, HTTPException, Depends from fastapi.params import Body from random import randrange import psycopg2 from psycopg2.extras import RealDictCursor import time from . import models, schemas from .database import engine, get_...
36.594828
164
0.686926
209ab058269786d1bc289dd5ee3e9aba0db6d8a7
2,594
py
Python
objectextensions/extension.py
immijimmi/objectextensions
783d799263e37757116cb7d2785e889e48c77506
[ "MIT" ]
null
null
null
objectextensions/extension.py
immijimmi/objectextensions
783d799263e37757116cb7d2785e889e48c77506
[ "MIT" ]
null
null
null
objectextensions/extension.py
immijimmi/objectextensions
783d799263e37757116cb7d2785e889e48c77506
[ "MIT" ]
null
null
null
from wrapt import decorator from inspect import getfullargspec from copy import deepcopy from typing import Generator, Callable, Any, Union, Type from .constants import ErrorMessages class Extension: @staticmethod def can_extend(target_cls: Type["Extendable"]) -> bool: """ Should return a bo...
31.253012
119
0.646106
95f00be37bfc9cafbcbee9651eb5da002664fb14
2,600
py
Python
scripts/plot_training_metrics.py
shahrukhqasim/HGCalML
2808564b31c89d9b7eb882734f6aebc6f35e94f3
[ "BSD-3-Clause" ]
null
null
null
scripts/plot_training_metrics.py
shahrukhqasim/HGCalML
2808564b31c89d9b7eb882734f6aebc6f35e94f3
[ "BSD-3-Clause" ]
null
null
null
scripts/plot_training_metrics.py
shahrukhqasim/HGCalML
2808564b31c89d9b7eb882734f6aebc6f35e94f3
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import sql_credentials import experiment_database_reading_manager import argparse from training_metrics_plots import TrainingMetricPlots parser = argparse.ArgumentParser( 'Produce running metrics plot (loss, efficiency and more)') parser.add_argument('experiment_name', he...
60.465116
211
0.721154
f279b1fbcca1a462e6822d1175a2f0f0c6071c79
1,402
py
Python
app/app/urls.py
anhlt59/Blog-app
f91eeaddcd338b9e8d3cf53b99affea9df923eda
[ "MIT" ]
null
null
null
app/app/urls.py
anhlt59/Blog-app
f91eeaddcd338b9e8d3cf53b99affea9df923eda
[ "MIT" ]
null
null
null
app/app/urls.py
anhlt59/Blog-app
f91eeaddcd338b9e8d3cf53b99affea9df923eda
[ "MIT" ]
null
null
null
"""app URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.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-b...
37.891892
78
0.738944
943d0d0b2b48850762f7eb43a40bde7eafee6e6e
2,565
py
Python
vklad/migrations/0001_initial.py
ghostforpy/bonds-docker
fda77225b85264cb4ba06b15ff63bc807858425a
[ "MIT" ]
2
2020-09-08T12:51:56.000Z
2021-08-18T15:27:52.000Z
vklad/migrations/0001_initial.py
ghostforpy/bonds-docker
fda77225b85264cb4ba06b15ff63bc807858425a
[ "MIT" ]
1
2021-12-13T20:43:35.000Z
2021-12-13T20:43:35.000Z
vklad/migrations/0001_initial.py
ghostforpy/bonds-docker
fda77225b85264cb4ba06b15ff63bc807858425a
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-05-15 08:36 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
45
122
0.596881
a34e5952d01cb043976d9ee3e15d1e59fafc07cd
36,823
py
Python
venv/lib/python2.7/site-packages/ansible/modules/web_infrastructure/acme_certificate.py
haind27/test01
7f86c0a33eb0874a6c3f5ff9a923fd0cfc8ef852
[ "MIT" ]
null
null
null
venv/lib/python2.7/site-packages/ansible/modules/web_infrastructure/acme_certificate.py
haind27/test01
7f86c0a33eb0874a6c3f5ff9a923fd0cfc8ef852
[ "MIT" ]
null
null
null
venv/lib/python2.7/site-packages/ansible/modules/web_infrastructure/acme_certificate.py
haind27/test01
7f86c0a33eb0874a6c3f5ff9a923fd0cfc8ef852
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2016 Michael Gruener <michael.gruener@chaosmoon.net> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_versio...
41.560948
139
0.621405
aa6dedf3c3e590ed9b920fd1dfe1c8b621be16c3
927
py
Python
BOJwithDongbinNa/1991/1991.py
jiyolla/StudyForCodingTestWithDongbinNa
c070829dd9c7b02b139e56511832c4a3b9f5982f
[ "MIT" ]
null
null
null
BOJwithDongbinNa/1991/1991.py
jiyolla/StudyForCodingTestWithDongbinNa
c070829dd9c7b02b139e56511832c4a3b9f5982f
[ "MIT" ]
null
null
null
BOJwithDongbinNa/1991/1991.py
jiyolla/StudyForCodingTestWithDongbinNa
c070829dd9c7b02b139e56511832c4a3b9f5982f
[ "MIT" ]
null
null
null
def solve(): n = int(input()) child = {} for _ in range(n): node, left, right = input().split() child[node] = (left, right) print_buf = [] def preorder(node): print_buf.append(node) if child[node][0] in child: preorder(child[node][0]) if child[no...
23.175
43
0.528587
f8be4548bef7cc6a5e6fde200706178fc2ad8c1c
15,118
py
Python
py_zipkin/logging_helper.py
gugu/py_zipkin
f48ffeb8bb15608209b6eef449dac9a42246fe75
[ "Apache-2.0" ]
null
null
null
py_zipkin/logging_helper.py
gugu/py_zipkin
f48ffeb8bb15608209b6eef449dac9a42246fe75
[ "Apache-2.0" ]
null
null
null
py_zipkin/logging_helper.py
gugu/py_zipkin
f48ffeb8bb15608209b6eef449dac9a42246fe75
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import logging import time from collections import defaultdict from logging import NullHandler from py_zipkin import _encoding_helpers from py_zipkin import thrift from py_zipkin.exception import ZipkinError from py_zipkin.transport import BaseTransportHandler from py_zipkin.util import generat...
36.783455
83
0.611853
ab05fa79323c7f161ad27b944b78ebb40e546882
4,411
py
Python
circuit-python/code.py
aws-samples/aws-serverless-pyportal-mars-weather-display
156dddc4f971e40368a5e45ba7420b76e6fff276
[ "MIT-0" ]
7
2020-05-17T13:54:58.000Z
2022-03-27T20:57:34.000Z
circuit-python/code.py
aws-samples/aws-serverless-pyportal-mars-weather-display
156dddc4f971e40368a5e45ba7420b76e6fff276
[ "MIT-0" ]
2
2020-08-01T12:56:44.000Z
2021-01-16T21:03:31.000Z
circuit-python/code.py
aws-samples/aws-serverless-pyportal-mars-weather-display
156dddc4f971e40368a5e45ba7420b76e6fff276
[ "MIT-0" ]
1
2021-11-03T01:50:43.000Z
2021-11-03T01:50:43.000Z
# Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. # Permission is hereby granted, free of charge, to any person obtaining a copy of this # software and associated documentation files (the "Software"), to deal in the Software # without restriction, including without limitation the rights to us...
34.732283
88
0.687599
c0bcc4a462cfe4a02bbf8809fa40ecda2481f1cc
3,738
py
Python
tests/devices/test_renpho_rp_ap001s.py
pascaltippelt/tuya-local
03f4a8135e085081b30e6e0abd3ba4d3e4ae491e
[ "MIT" ]
null
null
null
tests/devices/test_renpho_rp_ap001s.py
pascaltippelt/tuya-local
03f4a8135e085081b30e6e0abd3ba4d3e4ae491e
[ "MIT" ]
null
null
null
tests/devices/test_renpho_rp_ap001s.py
pascaltippelt/tuya-local
03f4a8135e085081b30e6e0abd3ba4d3e4ae491e
[ "MIT" ]
null
null
null
from homeassistant.components.fan import SUPPORT_PRESET_MODE from homeassistant.components.light import COLOR_MODE_ONOFF from homeassistant.components.lock import STATE_LOCKED, STATE_UNLOCKED from homeassistant.const import STATE_UNAVAILABLE from ..const import RENPHO_PURIFIER_PAYLOAD from ..helpers import asser...
32.789474
81
0.635099
9d1a43588ff6c5f584151404ce877f43b0b65bc2
8,278
py
Python
thread_queue.py
timmartin19/thread-queue
6e69144fe1bc7f4246ff25ea93eeeeaca0c7c268
[ "MIT" ]
null
null
null
thread_queue.py
timmartin19/thread-queue
6e69144fe1bc7f4246ff25ea93eeeeaca0c7c268
[ "MIT" ]
null
null
null
thread_queue.py
timmartin19/thread-queue
6e69144fe1bc7f4246ff25ea93eeeeaca0c7c268
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import logging from threading import Thread try: from queue import Queue, Empty except ImportError: from Queue import Queue, Empty __author__ = 'Tim Martin' __em...
34.635983
100
0.604494
211cc869ce2d1d99371136fa8f6ae9c143f40171
44,705
py
Python
tensorflow/python/ops/summary_ops_v2.py
xykong1958/tensorflow
d8fe10aae9e6be9cd49ab7e68c1ca4989f0be42b
[ "Apache-2.0" ]
3
2016-08-20T04:02:24.000Z
2019-04-21T06:18:41.000Z
tensorflow/python/ops/summary_ops_v2.py
xiyihong/tensorflow
f90532431c3785166cff35ff427b652fe460f60b
[ "Apache-2.0" ]
2
2018-03-23T00:03:36.000Z
2018-03-28T23:50:51.000Z
tensorflow/python/ops/summary_ops_v2.py
xiyihong/tensorflow
f90532431c3785166cff35ff427b652fe460f60b
[ "Apache-2.0" ]
1
2019-10-31T09:22:30.000Z
2019-10-31T09:22:30.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
36.58347
104
0.714394
71d7f95ef7fb17b904525b064c0600174e180e12
22,474
py
Python
examples/full-screen/ansi-art-and-textarea.py
AnthonyDiGirolamo/python-prompt-toolkit
4a66820d464b4f304ca3b647ff86809b20e887a4
[ "BSD-3-Clause" ]
null
null
null
examples/full-screen/ansi-art-and-textarea.py
AnthonyDiGirolamo/python-prompt-toolkit
4a66820d464b4f304ca3b647ff86809b20e887a4
[ "BSD-3-Clause" ]
null
null
null
examples/full-screen/ansi-art-and-textarea.py
AnthonyDiGirolamo/python-prompt-toolkit
4a66820d464b4f304ca3b647ff86809b20e887a4
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from __future__ import unicode_literals from prompt_toolkit.application import Application from prompt_toolkit.formatted_text import ANSI, HTML from prompt_toolkit.key_binding import KeyBindings from prompt_toolkit.layout import ( FormattedTextControl, HSplit, Layout, VSplit, ...
244.282609
1,457
0.6346
1913133823fd64e554b3941719bf51c7f8af7d75
2,441
py
Python
tests/links_tests/update_tests/test_cgcnn_update.py
pfnet/chainerchem
efe323aa21f63a815130d673781e7cca1ccb72d2
[ "MIT" ]
184
2019-11-27T12:59:01.000Z
2022-03-29T19:18:54.000Z
tests/links_tests/update_tests/test_cgcnn_update.py
pfnet/chainerchem
efe323aa21f63a815130d673781e7cca1ccb72d2
[ "MIT" ]
21
2019-12-08T01:53:33.000Z
2020-10-23T01:19:56.000Z
tests/links_tests/update_tests/test_cgcnn_update.py
pfnet/chainerchem
efe323aa21f63a815130d673781e7cca1ccb72d2
[ "MIT" ]
45
2019-11-28T09:59:54.000Z
2022-02-07T02:42:46.000Z
import numpy import pytest from chainer import cuda from chainer_chemistry.links.update.cgcnn_update import CGCNNUpdate # node_size_list means the first moleculae has three nodes, # and the seconde molecule has five nodes node_size_list = [3, 5] max_num_nbr = 6 node_feature_dim = 10 edge_feature_dim = 15 out_dim = ...
29.059524
78
0.649324
8ca5674b7dd82166d8c953e450e3d08f4ccb3297
314
py
Python
kite_runner/signals.py
thinhnguyenuit/kite_runner
17f23f872318a78e573b0ff6bed04f783f082de1
[ "MIT" ]
null
null
null
kite_runner/signals.py
thinhnguyenuit/kite_runner
17f23f872318a78e573b0ff6bed04f783f082de1
[ "MIT" ]
1
2021-11-10T16:29:38.000Z
2021-11-10T16:29:38.000Z
kite_runner/signals.py
thinhnguyenuit/kite_runner
17f23f872318a78e573b0ff6bed04f783f082de1
[ "MIT" ]
null
null
null
from django.db.models.signals import post_save from django.dispatch import receiver from kite_runner.models import Profile, User @receiver(post_save, sender=User) def create_user_profile(sender, instance=None, created=False, **kwargs): if instance and created: Profile.objects.create(user=instance)
28.545455
72
0.786624
eac63180cc630987e16fe35de4ac342c044e1679
221
py
Python
contrib/wallettools/walletchangepass.py
siriusnlz/test123
7f579d28094439d9be5d4d23301b21c19e636588
[ "MIT" ]
null
null
null
contrib/wallettools/walletchangepass.py
siriusnlz/test123
7f579d28094439d9be5d4d23301b21c19e636588
[ "MIT" ]
null
null
null
contrib/wallettools/walletchangepass.py
siriusnlz/test123
7f579d28094439d9be5d4d23301b21c19e636588
[ "MIT" ]
null
null
null
from jsonrpc import ServiceProxy access = ServiceProxy("http://127.0.0.1:22057") pwd = raw_input("Enter old wallet passphrase: ") pwd2 = raw_input("Enter new wallet passphrase: ") access.walletpassphrasechange(pwd, pwd2)
36.833333
49
0.769231
4604333b6e8eadfa7c35aec2acacece0f69cefd8
19,105
py
Python
cisco-ios-xr/ydk/models/cisco_ios_xr/_meta/_Cisco_IOS_XR_ncs1k_macsec_ea_oper.py
tkamata-test/ydk-py
b637e7853a8edbbd31fbc05afa3aa4110b31c5f9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
cisco-ios-xr/ydk/models/cisco_ios_xr/_meta/_Cisco_IOS_XR_ncs1k_macsec_ea_oper.py
tkamata-test/ydk-py
b637e7853a8edbbd31fbc05afa3aa4110b31c5f9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
cisco-ios-xr/ydk/models/cisco_ios_xr/_meta/_Cisco_IOS_XR_ncs1k_macsec_ea_oper.py
tkamata-test/ydk-py
b637e7853a8edbbd31fbc05afa3aa4110b31c5f9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import re import collections from enum import Enum from ydk._core._dm_meta_info import _MetaInfoClassMember, _MetaInfoClass, _MetaInfoEnum from ydk.types import Empty, YList, YLeafList, DELETE, Decimal64, FixedBitsDict from ydk._core._dm_meta_info import ATTRIBUTE, REFERENCE_CLASS, REFERENCE_LIST, REFERENCE_LEAFLI...
55.057637
266
0.55865
9371a20331f510d162e06e85427e248c67874d46
12,937
py
Python
mmseg/models/backbones/stdcnet.py
evgeniya-egupova/mmsegmentation
3857f19321ad6af41c8a6af364898ee050225f4c
[ "Apache-2.0" ]
null
null
null
mmseg/models/backbones/stdcnet.py
evgeniya-egupova/mmsegmentation
3857f19321ad6af41c8a6af364898ee050225f4c
[ "Apache-2.0" ]
null
null
null
mmseg/models/backbones/stdcnet.py
evgeniya-egupova/mmsegmentation
3857f19321ad6af41c8a6af364898ee050225f4c
[ "Apache-2.0" ]
null
null
null
import math import torch import torch.nn as nn import torch.nn.functional as F from mmcv.runner import load_checkpoint from mmcv.utils.parrots_wrapper import _BatchNorm from mmseg.utils import get_root_logger from ..builder import BACKBONES class ConvX(nn.Module): def __init__(self, in_planes, out_planes, kern...
34.134565
120
0.562263
3b12ec8b7aa4c7692628b379b3500204ebad21cc
186
py
Python
MascotasPasto/views.py
Esteban-Rosas/Frameworks-7a-2020B
768d354ee8d966c93465ff9bb2d7da27ad3e1baa
[ "MIT" ]
null
null
null
MascotasPasto/views.py
Esteban-Rosas/Frameworks-7a-2020B
768d354ee8d966c93465ff9bb2d7da27ad3e1baa
[ "MIT" ]
null
null
null
MascotasPasto/views.py
Esteban-Rosas/Frameworks-7a-2020B
768d354ee8d966c93465ff9bb2d7da27ad3e1baa
[ "MIT" ]
null
null
null
from django.http import HttpResponse def MascotasPasto(request): return HttpResponse("MascotasPasto") def salida(request): return HttpResponse("Hasta Luego de Mascotas Pasto")
23.25
56
0.77957