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
1ae47e01ecf2334735d508e647773063f363d739
7,692
py
Python
apis_v1/documentation_source/position_list_for_voter_doc.py
ranadeepmitra21/WeVoteServer_Ranadeep
505945209aad5cef21e118b5bfa7f63d0bd462da
[ "MIT" ]
44
2015-11-19T04:52:39.000Z
2021-03-17T02:08:26.000Z
apis_v1/documentation_source/position_list_for_voter_doc.py
ranadeepmitra21/WeVoteServer_Ranadeep
505945209aad5cef21e118b5bfa7f63d0bd462da
[ "MIT" ]
748
2015-09-03T04:18:33.000Z
2022-03-10T14:08:10.000Z
apis_v1/documentation_source/position_list_for_voter_doc.py
ranadeepmitra21/WeVoteServer_Ranadeep
505945209aad5cef21e118b5bfa7f63d0bd462da
[ "MIT" ]
145
2015-09-19T10:10:44.000Z
2022-03-04T21:01:12.000Z
# apis_v1/documentation_source/position_list_for_voter_doc.py # Brought to you by We Vote. Be good. # -*- coding: UTF-8 -*- def position_list_for_voter_doc_template_values(url_root): """ Show documentation about positionListForVoter """ required_query_parameter_list = [ { 'name': ...
49.625806
121
0.520671
9a7319a8c3ee0656e949aea41bd01f46ce8978b5
143
py
Python
1113.py
heltonricardo/URI
160cca22d94aa667177c9ebf2a1c9864c5e55b41
[ "MIT" ]
6
2021-04-13T00:33:43.000Z
2022-02-10T10:23:59.000Z
1113.py
heltonricardo/URI
160cca22d94aa667177c9ebf2a1c9864c5e55b41
[ "MIT" ]
null
null
null
1113.py
heltonricardo/URI
160cca22d94aa667177c9ebf2a1c9864c5e55b41
[ "MIT" ]
3
2021-03-23T18:42:24.000Z
2022-02-10T10:24:07.000Z
while True: x, y = [int(z) for z in input().split()] if x > y: print('Decrescente') elif x < y: print('Crescente') else: break
23.833333
44
0.559441
cc5884fae2675f90a46e641cca57a1284d695167
19,163
py
Python
pygeos/io.py
caibengbu/pygeos
9666fcf6a26cab34bca17d9515b717af8535169e
[ "BSD-3-Clause" ]
null
null
null
pygeos/io.py
caibengbu/pygeos
9666fcf6a26cab34bca17d9515b717af8535169e
[ "BSD-3-Clause" ]
null
null
null
pygeos/io.py
caibengbu/pygeos
9666fcf6a26cab34bca17d9515b717af8535169e
[ "BSD-3-Clause" ]
null
null
null
import warnings from collections.abc import Sized import numpy as np from . import Geometry # noqa from . import geos_capi_version_string, lib from .decorators import requires_geos from .enum import ParamEnum __all__ = [ "from_geojson", "from_shapely", "from_wkb", "from_wkt", "to_geojson", "...
35.356089
112
0.655743
6a345b7d03ed24802aaa1d9485d5ddd7eefab0fd
474
py
Python
mmdet/models/detectors/eltd.py
masati91/ELTD
e544a6ed3271da61a8e6dbc77d92f27434c1aa3d
[ "Apache-2.0" ]
1
2021-12-23T07:31:35.000Z
2021-12-23T07:31:35.000Z
mmdet/models/detectors/eltd.py
masati91/ELTD
e544a6ed3271da61a8e6dbc77d92f27434c1aa3d
[ "Apache-2.0" ]
null
null
null
mmdet/models/detectors/eltd.py
masati91/ELTD
e544a6ed3271da61a8e6dbc77d92f27434c1aa3d
[ "Apache-2.0" ]
null
null
null
from ..builder import DETECTORS from .single_stage import SingleStageDetector @DETECTORS.register_module() class ELTD(SingleStageDetector): def __init__(self, backbone, neck, bbox_head, train_cfg=None, test_cfg=None, ...
27.882353
72
0.554852
cead3be85b37afe496cfdce43fd27fddef511bcf
39,003
py
Python
mars/dataframe/utils.py
xccheng/mars
8146d1b7d3f3bc2a652c414a336a2f884a06a108
[ "Apache-2.0" ]
1
2020-11-05T05:53:00.000Z
2020-11-05T05:53:00.000Z
mars/dataframe/utils.py
xccheng/mars
8146d1b7d3f3bc2a652c414a336a2f884a06a108
[ "Apache-2.0" ]
null
null
null
mars/dataframe/utils.py
xccheng/mars
8146d1b7d3f3bc2a652c414a336a2f884a06a108
[ "Apache-2.0" ]
null
null
null
# Copyright 1999-2020 Alibaba Group Holding Ltd. # # 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...
38.275761
115
0.640156
761438a215f4b8cf41c812680abaf1695e560d5f
10,176
py
Python
tools/Vitis-AI-Runtime/VART/vart/rnn-runner/apps/open_information_extraction/utils/benchmark.py
hito0512/Vitis-AI
996459fb96cb077ed2f7e789d515893b1cccbc95
[ "Apache-2.0" ]
848
2019-12-03T00:16:17.000Z
2022-03-31T22:53:17.000Z
tools/Vitis-AI-Runtime/VART/vart/rnn-runner/apps/open_information_extraction/utils/benchmark.py
wangyifan778/Vitis-AI
f61061eef7550d98bf02a171604c9a9f283a7c47
[ "Apache-2.0" ]
656
2019-12-03T00:48:46.000Z
2022-03-31T18:41:54.000Z
tools/Vitis-AI-Runtime/VART/vart/rnn-runner/apps/open_information_extraction/utils/benchmark.py
wangyifan778/Vitis-AI
f61061eef7550d98bf02a171604c9a9f283a7c47
[ "Apache-2.0" ]
506
2019-12-03T00:46:26.000Z
2022-03-30T10:34:56.000Z
#Copyright 2021 Xilinx 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 writing, softwa...
40.541833
205
0.613502
88200e47e753d0697cf360b6d34abda21dee58d9
2,529
py
Python
scripts/devops_tasks/build_packages.py
vchske/azure-sdk-for-python
6383ed3676b7355af7be394562b126209961ec13
[ "MIT" ]
null
null
null
scripts/devops_tasks/build_packages.py
vchske/azure-sdk-for-python
6383ed3676b7355af7be394562b126209961ec13
[ "MIT" ]
1
2019-06-04T18:12:16.000Z
2019-06-04T18:12:16.000Z
scripts/devops_tasks/build_packages.py
vchske/azure-sdk-for-python
6383ed3676b7355af7be394562b126209961ec13
[ "MIT" ]
1
2019-06-17T22:18:23.000Z
2019-06-17T22:18:23.000Z
#!/usr/bin/env python # -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # ---------------------------------------------...
42.15
139
0.659945
b433332536ccfede3c17bb0c380fa5b0335bf787
422
py
Python
data/scripts/templates/object/ship/shared_blacksun_medium_s04_tier5.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/ship/shared_blacksun_medium_s04_tier5.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/ship/shared_blacksun_medium_s04_tier5.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Ship() result.template = "object/ship/shared_blacksun_medium_s04_tier5.iff" result.attribute_template_id = -1 re...
24.823529
69
0.71327
3708b5221baae969118e66ae88a91d040db27317
68,861
py
Python
ax/service/ax_client.py
dmitryvinn/Ax-1
a94036392df64dce43223b73b701945daf2852dd
[ "MIT" ]
null
null
null
ax/service/ax_client.py
dmitryvinn/Ax-1
a94036392df64dce43223b73b701945daf2852dd
[ "MIT" ]
null
null
null
ax/service/ax_client.py
dmitryvinn/Ax-1
a94036392df64dce43223b73b701945daf2852dd
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import json import logging import warnings from functools import partial from typing import Callable, Set, Any, Dict,...
44.512605
88
0.635352
be6ee10a66a9d82dcfeac09ebabdabb561efd7e3
4,582
py
Python
bot/ts/model.py
FlussuferOrga/ts-gw2-verifyBot
6d8c81487d2b4eb588087a08ea9d0793f1354ab4
[ "MIT" ]
2
2020-06-18T10:52:45.000Z
2020-08-12T14:56:57.000Z
bot/ts/model.py
FlussuferOrga/ts-gw2-verifyBot
6d8c81487d2b4eb588087a08ea9d0793f1354ab4
[ "MIT" ]
49
2020-06-11T21:28:51.000Z
2022-03-17T23:03:42.000Z
bot/ts/model.py
FlussuferOrga/ts-gw2-verifyBot
6d8c81487d2b4eb588087a08ea9d0793f1354ab4
[ "MIT" ]
1
2020-06-22T18:57:47.000Z
2020-06-22T18:57:47.000Z
import logging from typing import Optional from bot.ts.ThreadSafeTSConnection import default_exception_handler LOG = logging.getLogger(__name__) class User: """ Class that interfaces the Teamspeak-API with user-specific calls more convenient. Since calls to the API are penalised, the class also tries to...
39.5
132
0.642732
6528e307ff0e67807b1c9272182637e483330750
753
py
Python
blog/migrations/0001_initial.py
timptner/farafmb.de
2b154278d8b44ea3adecafcb8554c1b0b0055e01
[ "MIT" ]
1
2017-04-06T09:12:45.000Z
2017-04-06T09:12:45.000Z
blog/migrations/0001_initial.py
timptner/farafmb.de
2b154278d8b44ea3adecafcb8554c1b0b0055e01
[ "MIT" ]
2
2017-09-07T22:09:50.000Z
2020-06-09T14:46:30.000Z
blog/migrations/0001_initial.py
timptner/farafmb.de
2b154278d8b44ea3adecafcb8554c1b0b0055e01
[ "MIT" ]
null
null
null
# Generated by Django 3.1 on 2020-08-26 15:36 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Snippet', fields=[ ('id', models.AutoField(au...
28.961538
114
0.572377
9f4a94e2af9461dcc62755d59683d15c3941e378
237
py
Python
takeoff/builders/android/android_action_builder.py
themarceloribeiro/takeoff-py
dfa4c58ccd9146f82ffe4d5f76aa2a258d3c0d7c
[ "MIT" ]
null
null
null
takeoff/builders/android/android_action_builder.py
themarceloribeiro/takeoff-py
dfa4c58ccd9146f82ffe4d5f76aa2a258d3c0d7c
[ "MIT" ]
null
null
null
takeoff/builders/android/android_action_builder.py
themarceloribeiro/takeoff-py
dfa4c58ccd9146f82ffe4d5f76aa2a258d3c0d7c
[ "MIT" ]
null
null
null
from ...builders.component_builder import ComponentBuilder class AndroidActionBuilder(ComponentBuilder): def __init__(self, options, component=None): self.options = options def build(self): print("Building...")
26.333333
58
0.7173
826eba9c667f17ed717b2fc160dd595c5612078f
2,268
py
Python
fondo_api/services/alexa/model/models.py
Fonmon/Fondo-API
0c78eaab259df18219c01fceb67bd1b6ff8ec941
[ "MIT" ]
null
null
null
fondo_api/services/alexa/model/models.py
Fonmon/Fondo-API
0c78eaab259df18219c01fceb67bd1b6ff8ec941
[ "MIT" ]
48
2018-01-13T14:52:52.000Z
2022-03-13T17:41:42.000Z
fondo_api/services/alexa/model/models.py
Fonmon/Fondo-API
0c78eaab259df18219c01fceb67bd1b6ff8ec941
[ "MIT" ]
null
null
null
from fondo_api.services.alexa.model.enums import CardEnum, SpeechEnum class Card(object): def __init__(self, type, title, content, text): if not isinstance(type, CardEnum): raise Exception('Type must be instance of CardEnum') self.type = type self.title = title self.cont...
31.943662
70
0.655644
bdc2b44cc4b0cabe6919f3a5b7680b87a0d36a9b
2,506
py
Python
src/pytea/tea.py
12Tech/proxytea
472f512daae765b126e2511f19b8970ef868555d
[ "MIT" ]
1
2020-03-20T18:26:17.000Z
2020-03-20T18:26:17.000Z
src/pytea/tea.py
12Tech/proxytea
472f512daae765b126e2511f19b8970ef868555d
[ "MIT" ]
null
null
null
src/pytea/tea.py
12Tech/proxytea
472f512daae765b126e2511f19b8970ef868555d
[ "MIT" ]
1
2020-03-26T08:36:58.000Z
2020-03-26T08:36:58.000Z
import argparse import json import traceback from urllib.parse import urlparse from requests import Request, Session import boto3 sqs = boto3.resource('sqs') s3_client = boto3.client('s3') def read_messages_from_queue(queue): remote_queue = sqs.Queue(queue) yield from remote_queue.receive_messages( ...
22.176991
90
0.611732
4f64553f41840f18233d60830b53ad2f3b569815
12,189
py
Python
ddsp/training/models.py
keunwoochoi/ddsp
f5bc4c13b65b2e774b73ffe31dda5db051dba8eb
[ "Apache-2.0" ]
1
2020-02-13T05:39:07.000Z
2020-02-13T05:39:07.000Z
ddsp/training/models.py
keunwoochoi/ddsp
f5bc4c13b65b2e774b73ffe31dda5db051dba8eb
[ "Apache-2.0" ]
null
null
null
ddsp/training/models.py
keunwoochoi/ddsp
f5bc4c13b65b2e774b73ffe31dda5db051dba8eb
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The DDSP Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
39.446602
117
0.671589
ba9f9414793fcde3eeb135f1aa802e0f2323c5a6
4,891
py
Python
generate.py
nshunt639/turkey-metadata-generator
e5c8d060fb25fd0fe102fddc8b657460f0f75ff0
[ "MIT" ]
null
null
null
generate.py
nshunt639/turkey-metadata-generator
e5c8d060fb25fd0fe102fddc8b657460f0f75ff0
[ "MIT" ]
null
null
null
generate.py
nshunt639/turkey-metadata-generator
e5c8d060fb25fd0fe102fddc8b657460f0f75ff0
[ "MIT" ]
null
null
null
import os import sys import csv import json from random import randrange from shutil import copy import argparse METADATA_CSV = 'metadata.csv' METADATA_TEMPLATE = 'metadata-template.json' ASSET_DIR = './assets' TARGET_DIR = './target' LIMIT = 0 def query_yes_no(question, default="yes"): """Ask a yes/no question v...
37.335878
130
0.641178
634eff39e84b5eda8178ad4e7f68ec2a570e3ab8
17,474
py
Python
ml-agents/mlagents/trainers/tf_policy.py
AdriDmgz/ml-agents
608fdcf4ff39aa94675ff6fc27f4941f96b53f6a
[ "Apache-2.0" ]
1
2020-03-18T10:53:01.000Z
2020-03-18T10:53:01.000Z
ml-agents/mlagents/trainers/tf_policy.py
AdriDmgz/ml-agents
608fdcf4ff39aa94675ff6fc27f4941f96b53f6a
[ "Apache-2.0" ]
null
null
null
ml-agents/mlagents/trainers/tf_policy.py
AdriDmgz/ml-agents
608fdcf4ff39aa94675ff6fc27f4941f96b53f6a
[ "Apache-2.0" ]
null
null
null
import logging from typing import Any, Dict, List, Optional import abc import numpy as np from mlagents.tf_utils import tf from mlagents import tf_utils from mlagents_envs.exception import UnityException from mlagents.trainers.policy import Policy from mlagents.trainers.action_info import ActionInfo from mlagents.tr...
38.488987
104
0.615429
e07d5723fa7435a96673c39bece6dbf2e9737e81
611
py
Python
src/marshmallow_sqlalchemy/__init__.py
mjpieters/marshmallow-sqlalchemy
49b88450be1c9dc8407e56c4f3147bb21fd2248b
[ "MIT" ]
null
null
null
src/marshmallow_sqlalchemy/__init__.py
mjpieters/marshmallow-sqlalchemy
49b88450be1c9dc8407e56c4f3147bb21fd2248b
[ "MIT" ]
20
2021-05-11T06:30:27.000Z
2022-03-28T07:18:00.000Z
src/marshmallow_sqlalchemy/__init__.py
mjpieters/marshmallow-sqlalchemy
49b88450be1c9dc8407e56c4f3147bb21fd2248b
[ "MIT" ]
null
null
null
from .schema import ( SQLAlchemySchema, SQLAlchemyAutoSchema, SQLAlchemySchemaOpts, SQLAlchemyAutoSchemaOpts, auto_field, ) from .convert import ( ModelConverter, fields_for_model, property2field, column2field, field_for, ) from .exceptions import ModelConversionError __version...
19.09375
44
0.695581
459eae87ebe849bde053b96801410a32d2ba3fad
2,778
py
Python
Notatki/2_Programowanie-obiektowe/8_Wlasnosci.py
bzglinicki/python-trainin
4839514572cfd484f17f8a6473d259f807b9f690
[ "MIT" ]
1
2021-03-10T22:32:40.000Z
2021-03-10T22:32:40.000Z
Notatki/2_Programowanie-obiektowe/8_Wlasnosci.py
bzglinicki/python-trainin
4839514572cfd484f17f8a6473d259f807b9f690
[ "MIT" ]
null
null
null
Notatki/2_Programowanie-obiektowe/8_Wlasnosci.py
bzglinicki/python-trainin
4839514572cfd484f17f8a6473d259f807b9f690
[ "MIT" ]
1
2021-03-20T21:01:37.000Z
2021-03-20T21:01:37.000Z
# Programowanie I R # Programowanie obiektowe: własności class Celsius1: def __init__(self, temperature=0): self.temperature = temperature def to_fahrenheit(self): return (self.temperature * 1.8) + 32 human = Celsius1() human.temperature = 37 print(human.temperature) print(human.to_fahrenheit...
24.803571
84
0.601872
32d4d21fa01c13f59020218861072a1a3b7fae79
1,786
py
Python
project/tests/lib/queries.py
moreorem/XMLbridge
40f9e4d0bea10fd220136d8ec3bdc387e72b6ebe
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
project/tests/lib/queries.py
moreorem/XMLbridge
40f9e4d0bea10fd220136d8ec3bdc387e72b6ebe
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
project/tests/lib/queries.py
moreorem/XMLbridge
40f9e4d0bea10fd220136d8ec3bdc387e72b6ebe
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
from lib.services import connection def loadForms(db, selectedDatabaseName): # Create list of Forms db.query('SELECT IDCID, IDCDescription FROM [' + selectedDatabaseName + '].[dbo].[A03_a2af16b2_671d_4465_874e_0b9d61f58f9e] with(nolock)', None) formIds = [] formNames = [] for row in db.c...
35.019608
149
0.631579
eab280e5e17e017f24ce29655e24609243ef8a84
1,633
py
Python
tests/model/opendss/model/pvderaggregation/model/test_pvder_model.py
cuihantao/TDcoSim
bc8f26ccc9e32bd47af039f9efcaf0bdc67daddf
[ "BSD-3-Clause" ]
3
2020-03-18T16:40:09.000Z
2021-04-04T23:21:25.000Z
tests/model/opendss/model/pvderaggregation/model/test_pvder_model.py
cuihantao/TDcoSim
bc8f26ccc9e32bd47af039f9efcaf0bdc67daddf
[ "BSD-3-Clause" ]
null
null
null
tests/model/opendss/model/pvderaggregation/model/test_pvder_model.py
cuihantao/TDcoSim
bc8f26ccc9e32bd47af039f9efcaf0bdc67daddf
[ "BSD-3-Clause" ]
null
null
null
import unittest import sys import os from tdcosim.model.opendss.opendss_data import OpenDSSData from tdcosim.model.opendss.model.pvderaggregation.model.pvder_model import PVDERModel from pvder.DER_components_three_phase import SolarPV_DER_ThreePhase dirlocation = os.path.abspath(sys.modules['__main__'].__file__) roo...
29.690909
158
0.655236
7f0e1afce43c0615906eda549c27df659f75882b
3,117
py
Python
example/settings.py
dkopitsa/django-easy-maps
e9beeb7478cd5bbad265653f704add29e8f5bb9c
[ "MIT" ]
null
null
null
example/settings.py
dkopitsa/django-easy-maps
e9beeb7478cd5bbad265653f704add29e8f5bb9c
[ "MIT" ]
null
null
null
example/settings.py
dkopitsa/django-easy-maps
e9beeb7478cd5bbad265653f704add29e8f5bb9c
[ "MIT" ]
null
null
null
""" Django settings for app project. For more information on this file, see https://docs.djangoproject.com/en/1.7/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.7/ref/settings/ """ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) import...
24.936
82
0.704524
bd08c27120c4848d1417b60ddc17b306c2de693c
433
py
Python
src/ralph/dhcp/api.py
andrzej-jankowski/ralph
68ec18a66b8fe47ddf1c082c3ce2d82b2cd430dc
[ "Apache-2.0" ]
null
null
null
src/ralph/dhcp/api.py
andrzej-jankowski/ralph
68ec18a66b8fe47ddf1c082c3ce2d82b2cd430dc
[ "Apache-2.0" ]
null
null
null
src/ralph/dhcp/api.py
andrzej-jankowski/ralph
68ec18a66b8fe47ddf1c082c3ce2d82b2cd430dc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from ralph.api import RalphAPISerializer, RalphAPIViewSet, router from ralph.dhcp.models import DNSServer class DNSServerSerializer(RalphAPISerializer): class Meta: model = DNSServer depth = 1 class DNSServerViewSet(RalphAPIViewSet): queryset = DNSServer.objects.all()...
22.789474
65
0.743649
11ee76401c0d432efc25a1d67986e0be843a0108
12,555
py
Python
aiida/orm/nodes/repository.py
frssp/aiida-core
e0fb53bb94af72c063397e0c7c796b2f7f191db6
[ "MIT", "BSD-3-Clause" ]
null
null
null
aiida/orm/nodes/repository.py
frssp/aiida-core
e0fb53bb94af72c063397e0c7c796b2f7f191db6
[ "MIT", "BSD-3-Clause" ]
6
2019-12-17T16:01:25.000Z
2020-12-11T10:37:12.000Z
aiida/orm/nodes/repository.py
frssp/aiida-core
e0fb53bb94af72c063397e0c7c796b2f7f191db6
[ "MIT", "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Interface to the file repository of a node instance.""" import contextlib import io import pathlib import tempfile from typing import BinaryIO, Dict, Iterable, Iterator, List, Tuple, Union from aiida.common import exceptions from aiida.repository import File, Repository from aiida.repository...
50.421687
120
0.693668
0bcf14f776f03191f8fa5ebed050788b59b4c1a8
9,248
py
Python
src/globus_sdk/services/auth/response.py
rudyardrichter/globus-sdk-python
e5e395029674472e6a1e6c3a816818a70998ac95
[ "ECL-2.0", "Apache-2.0" ]
47
2016-04-13T21:28:19.000Z
2022-02-28T18:28:18.000Z
src/globus_sdk/services/auth/response.py
rudyardrichter/globus-sdk-python
e5e395029674472e6a1e6c3a816818a70998ac95
[ "ECL-2.0", "Apache-2.0" ]
314
2016-04-12T15:07:32.000Z
2022-03-14T21:00:50.000Z
src/globus_sdk/services/auth/response.py
rudyardrichter/globus-sdk-python
e5e395029674472e6a1e6c3a816818a70998ac95
[ "ECL-2.0", "Apache-2.0" ]
36
2016-06-14T14:05:13.000Z
2022-02-18T17:20:51.000Z
import json import logging import time from typing import TYPE_CHECKING, Any, Dict, Iterator, Optional, Union, cast import jwt from cryptography.hazmat.primitives.asymmetric.rsa import RSAPublicKey from globus_sdk import exc from globus_sdk.response import GlobusHTTPResponse logger = logging.getLogger(__name__) if ...
35.030303
86
0.61343
22ea862bf71d9264cc847a815205250300480b63
1,160
py
Python
test/test_media_encoding_codecs_common_types_profile_level_information.py
stanionascu/python-embyapi
a3f7aa49aea4052277cc43605c0d89bc6ff21913
[ "BSD-3-Clause" ]
null
null
null
test/test_media_encoding_codecs_common_types_profile_level_information.py
stanionascu/python-embyapi
a3f7aa49aea4052277cc43605c0d89bc6ff21913
[ "BSD-3-Clause" ]
null
null
null
test/test_media_encoding_codecs_common_types_profile_level_information.py
stanionascu/python-embyapi
a3f7aa49aea4052277cc43605c0d89bc6ff21913
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 """ Emby Server API Explore the Emby Server API # noqa: E501 OpenAPI spec version: 4.1.1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import embyapi from embyapi.models.media_encoding_codecs_comm...
29
163
0.775862
c307c1e77ac2c5b79e38131cd8491cc7ddbb8cea
1,158
py
Python
src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/setup.py
yugangw-msft/AutoRest
32775a902b522e5e7fda9debb8dfc1d40cfb6de0
[ "MIT" ]
null
null
null
src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/setup.py
yugangw-msft/AutoRest
32775a902b522e5e7fda9debb8dfc1d40cfb6de0
[ "MIT" ]
null
null
null
src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/setup.py
yugangw-msft/AutoRest
32775a902b522e5e7fda9debb8dfc1d40cfb6de0
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
28.243902
76
0.635579
bcdd39f94e4de38d492e9a6b7ef063b35e2fcf1d
1,392
py
Python
dictionary/collins/download_en_mp3.py
JackonYang/personalization-vocabulary
2bef8d98179b8e5e977d90489438e0e3fab99c82
[ "MIT" ]
28
2015-07-09T15:26:56.000Z
2022-02-15T08:43:49.000Z
dictionary/collins/download_en_mp3.py
ikaroso/personalization-vocabulary
2bef8d98179b8e5e977d90489438e0e3fab99c82
[ "MIT" ]
null
null
null
dictionary/collins/download_en_mp3.py
ikaroso/personalization-vocabulary
2bef8d98179b8e5e977d90489438e0e3fab99c82
[ "MIT" ]
16
2016-02-25T13:21:03.000Z
2022-01-15T03:24:43.000Z
import os import requests from bs4 import BeautifulSoup data_dir = 'raw_html_rsp' mp3_dir = 'en-mp3' if not os.path.exists(mp3_dir): os.makedirs(mp3_dir) def download(url, retry=3): for i in range(retry): try: rsp = requests.get(url, timeout=3) except Exception as e: ...
19.333333
61
0.571839
95ce968860cf5231233760ea8e73c5318b97dc51
31,966
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/_packet_captures_operations.py
LianwMS/azure-sdk-for-python
612d7bca9de86ee1bd1fa59291d7bf897ba9213f
[ "MIT" ]
2
2019-05-17T21:24:53.000Z
2020-02-12T11:13:42.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/_packet_captures_operations.py
LianwMS/azure-sdk-for-python
612d7bca9de86ee1bd1fa59291d7bf897ba9213f
[ "MIT" ]
15
2019-07-12T18:18:04.000Z
2019-07-25T20:55:51.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/_packet_captures_operations.py
LianwMS/azure-sdk-for-python
612d7bca9de86ee1bd1fa59291d7bf897ba9213f
[ "MIT" ]
2
2020-05-21T22:51:22.000Z
2020-05-26T20:53:01.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
49.482972
240
0.668054
9aae759913e057879186911f3fa52da3e75cc260
16,332
py
Python
certbot/certbot/crypto_util.py
radek-sprta/certbot
a6772043d6631341b525c4d69b47d6ef2d8b5d02
[ "Apache-2.0" ]
1
2019-12-23T06:39:49.000Z
2019-12-23T06:39:49.000Z
certbot/certbot/crypto_util.py
radek-sprta/certbot
a6772043d6631341b525c4d69b47d6ef2d8b5d02
[ "Apache-2.0" ]
null
null
null
certbot/certbot/crypto_util.py
radek-sprta/certbot
a6772043d6631341b525c4d69b47d6ef2d8b5d02
[ "Apache-2.0" ]
null
null
null
"""Certbot client crypto utility functions. .. todo:: Make the transition to use PSS rather than PKCS1_v1_5 when the server is capable of handling the signatures. """ import hashlib import logging import warnings # See https://github.com/pyca/cryptography/issues/4275 from cryptography import x509 # type: ignore...
33.060729
124
0.689199
1a3687d4817c1c12f850d0fb22bc9572ac258851
3,591
py
Python
code/baseline.py
voldemortX/iCassava-2019
7b9cbb5995bcc157dd4bbb2ec47242b9c2d02e97
[ "Apache-2.0" ]
null
null
null
code/baseline.py
voldemortX/iCassava-2019
7b9cbb5995bcc157dd4bbb2ec47242b9c2d02e97
[ "Apache-2.0" ]
null
null
null
code/baseline.py
voldemortX/iCassava-2019
7b9cbb5995bcc157dd4bbb2ec47242b9c2d02e97
[ "Apache-2.0" ]
null
null
null
import torch import torchvision import torchvision.transforms as transforms import torch.nn as nn import matplotlib.pyplot as plt import numpy as np import time # Baseline: VGG-11 finetuning def return_baseline(): net = torchvision.models.vgg11_bn(pretrained=True) for param in net.parameters(): param....
32.944954
97
0.603175
adcb0683d883b4bba78fa8a990c095c663dc2574
36,803
py
Python
test/test_data_audit.py
JustinJohnWilliams/cbc-syslog
dae4b024214afae18328ee6c000db6312bf49d6d
[ "MIT" ]
null
null
null
test/test_data_audit.py
JustinJohnWilliams/cbc-syslog
dae4b024214afae18328ee6c000db6312bf49d6d
[ "MIT" ]
null
null
null
test/test_data_audit.py
JustinJohnWilliams/cbc-syslog
dae4b024214afae18328ee6c000db6312bf49d6d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- null = "" true = "true" false = "false" test_data_audit={ "notifications": [ { "requestUrl": null, "eventTime": 1529332687006, "eventId": "37075c01730511e89504c9ba022c3fbf", "loginName": "bs@carbonblack.com", "orgName": ...
432.976471
31,428
0.766351
322488f9d4776b1d5b49d04dd9cbb6b2a202827f
9,348
py
Python
colour/appearance/tests/test_ciecam02.py
zachlewis/colour
c248e2913d6c62658e4892e5bc8503d86ed5d9ab
[ "BSD-3-Clause" ]
null
null
null
colour/appearance/tests/test_ciecam02.py
zachlewis/colour
c248e2913d6c62658e4892e5bc8503d86ed5d9ab
[ "BSD-3-Clause" ]
null
null
null
colour/appearance/tests/test_ciecam02.py
zachlewis/colour
c248e2913d6c62658e4892e5bc8503d86ed5d9ab
[ "BSD-3-Clause" ]
null
null
null
# !/usr/bin/env python # -*- coding: utf-8 -*- """ Defines unit tests for :mod:`colour.appearance.ciecam02` module. """ from __future__ import division, unicode_literals import numpy as np from itertools import permutations from colour.appearance import ( VIEWING_CONDITIONS_CIECAM02, InductionFactors_CIECAM02, ...
31.369128
79
0.544929
435ddab22755a13b56483acf0ebec870aef04e3e
420
py
Python
app/migrations/0007_auto_20170311_1704.py
TataneInYourFace/wifill-api
9167306aa4b920b87e57d194b9ad073f16977544
[ "MIT" ]
null
null
null
app/migrations/0007_auto_20170311_1704.py
TataneInYourFace/wifill-api
9167306aa4b920b87e57d194b9ad073f16977544
[ "MIT" ]
1
2018-10-19T07:41:21.000Z
2018-10-19T07:41:21.000Z
app/migrations/0007_auto_20170311_1704.py
TataneInYourFace/wifill-api
9167306aa4b920b87e57d194b9ad073f16977544
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.6 on 2017-03-11 16:04 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('app', '0006_auto_20170310_1531'), ] operations = [ migrations.AlterModelOptions( ...
21
58
0.609524
5fabaab9e2b10efab276c924136021933e0dc9bb
3,192
py
Python
baidupcs_py/commands/share.py
nvv5/BaiduPCS-Py
1552253c268516063059cc7677567c61fbf9eeee
[ "MIT" ]
null
null
null
baidupcs_py/commands/share.py
nvv5/BaiduPCS-Py
1552253c268516063059cc7677567c61fbf9eeee
[ "MIT" ]
null
null
null
baidupcs_py/commands/share.py
nvv5/BaiduPCS-Py
1552253c268516063059cc7677567c61fbf9eeee
[ "MIT" ]
null
null
null
from typing import Optional, Dict, Set import os from pathlib import Path from collections import deque from baidupcs_py.baidupcs import BaiduPCSApi, PcsSharedPath, BaiduPCSError from baidupcs_py.commands.display import display_shared_links from rich import print def share_files(api: BaiduPCSApi, *remotepaths: str,...
30.692308
95
0.622807
64c73af187dce66b5fbcf8d85c63150e56ea8b29
616
py
Python
plenum/test/plugin/demo_plugin/transactions.py
andkononykhin/plenum
28dc1719f4b7e80d31dafbadb38cfec4da949886
[ "Apache-2.0" ]
1
2019-03-19T23:44:56.000Z
2019-03-19T23:44:56.000Z
plenum/test/plugin/demo_plugin/transactions.py
andkononykhin/plenum
28dc1719f4b7e80d31dafbadb38cfec4da949886
[ "Apache-2.0" ]
1
2021-07-14T17:10:04.000Z
2021-07-14T17:10:04.000Z
plenum/test/plugin/demo_plugin/transactions.py
andkononykhin/plenum
28dc1719f4b7e80d31dafbadb38cfec4da949886
[ "Apache-2.0" ]
2
2021-02-19T15:36:50.000Z
2021-07-20T11:37:54.000Z
from plenum.common.transactions import Transactions # DO NOT CHANGE ONCE CODE IS DEPLOYED ON THE LEDGER # TODO: Might need a short hash with unique entropy, plugin name being input of hash. PREFIX = '9999' class DemoTransactions(Transactions): # These numeric constants CANNOT be changed once they have been use...
34.222222
85
0.730519
7b13fdaaffa7d086d78de62966e4793d5303f4e3
4,268
py
Python
v2.5.7/toontown/toonfest/QuizGui.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
4
2019-07-01T15:46:43.000Z
2021-07-23T16:26:48.000Z
v2.5.7/toontown/toonfest/QuizGui.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
1
2019-06-29T03:40:05.000Z
2021-06-13T01:15:16.000Z
v2.5.7/toontown/toonfest/QuizGui.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
4
2019-07-28T21:18:46.000Z
2021-02-25T06:37:25.000Z
from direct.gui.DirectGui import * from panda3d.core import * from toontown.toonbase import TTLocalizer class QuizGui: def __init__(self, quiz): self.quiz = quiz self.gui = None self.answer1 = None self.answer2 = None self.answer3 = None self.answer4 = None ...
52.04878
219
0.371837
35c32720f21e3e1a70d6d4aad956e9738245e1b5
1,424
py
Python
RNN.py
PabloDeTorre/NeuralBTCPredictor
588758401dcb456de06b3390e964bf5bd524ab8c
[ "MIT" ]
null
null
null
RNN.py
PabloDeTorre/NeuralBTCPredictor
588758401dcb456de06b3390e964bf5bd524ab8c
[ "MIT" ]
null
null
null
RNN.py
PabloDeTorre/NeuralBTCPredictor
588758401dcb456de06b3390e964bf5bd524ab8c
[ "MIT" ]
1
2021-02-27T01:48:44.000Z
2021-02-27T01:48:44.000Z
import pandas as pd import keras from keras.models import Model from keras.layers import Activation, Dense, Dropout from keras.layers import Input from keras.layers import CuDNNLSTM, CuDNNGRU from keras.layers import LeakyReLU import utils as ut def createModel(input_shape, output_size): inp = Input(shape=input_...
26.867925
128
0.732444
03cccf4d8f7df6f95b5dedcc2ec7e1cbb0d80ecd
478
py
Python
layouts/count_1.py
Aakriti05/ORCA_Astar-warehouse-navigation
8699b30c25cacf1a7be1f56dc34db90d5a757b36
[ "Apache-2.0" ]
null
null
null
layouts/count_1.py
Aakriti05/ORCA_Astar-warehouse-navigation
8699b30c25cacf1a7be1f56dc34db90d5a757b36
[ "Apache-2.0" ]
null
null
null
layouts/count_1.py
Aakriti05/ORCA_Astar-warehouse-navigation
8699b30c25cacf1a7be1f56dc34db90d5a757b36
[ "Apache-2.0" ]
null
null
null
import numpy as np import random from numpy import savetxt data = np.loadtxt('tight_2_64.cfg', skiprows=10) print(data) print(np.shape(data), type(data)) print(data[3][3], type(data[3][3])) l = np.shape(data)[0] #expanded_layout = np.zeros((2*l,2*l), dtype=int) count = 0 count_zero = 0 for i in range(l): for j in ra...
21.727273
52
0.656904
b3c6b8b6d749ad4ed4b0981d56b110804918509f
1,113
py
Python
CSAW/2020/Quals/slithery/sandbox.py
th3cyb3rc0p/CTFium
3313e8a72594d77e4ce4bacbf01662a27ca5af3e
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
CSAW/2020/Quals/slithery/sandbox.py
th3cyb3rc0p/CTFium
3313e8a72594d77e4ce4bacbf01662a27ca5af3e
[ "MIT" ]
null
null
null
CSAW/2020/Quals/slithery/sandbox.py
th3cyb3rc0p/CTFium
3313e8a72594d77e4ce4bacbf01662a27ca5af3e
[ "MIT" ]
6
2020-09-15T14:00:45.000Z
2020-09-16T12:19:09.000Z
#!/usr/bin/env python3 from base64 import b64decode import blacklist # you don't get to see this :p """ Don't worry, if you break out of this one, we have another one underneath so that you won't wreak any havoc! """ def main(): print("EduPy 3.8.2") while True: try: command = input(">>> "...
30.916667
139
0.631626
985311ff3b72177fb0484c6ef9a3ef46aae49cc6
13,394
py
Python
dwh/indicator_lib.py
I-TECH-UW/openmrs-fhir-analytics
7ee24ecb5434864b363062fb03a06233b161df1e
[ "ECL-2.0", "Apache-2.0" ]
39
2020-08-07T18:10:21.000Z
2021-12-24T14:08:36.000Z
dwh/indicator_lib.py
I-TECH-UW/openmrs-fhir-analytics
7ee24ecb5434864b363062fb03a06233b161df1e
[ "ECL-2.0", "Apache-2.0" ]
205
2020-08-20T05:25:29.000Z
2022-02-04T19:20:44.000Z
dwh/indicator_lib.py
I-TECH-UW/openmrs-fhir-analytics
7ee24ecb5434864b363062fb03a06233b161df1e
[ "ECL-2.0", "Apache-2.0" ]
32
2020-08-13T19:14:50.000Z
2022-03-25T04:45:39.000Z
# Copyright 2021 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 agreed to in writing, ...
43.487013
95
0.723533
3899c3da1b6d1d1eddb091b6a08411160bc6f391
3,391
py
Python
regulations/docket.py
cmc333333/regulations-site
37bb84bc466a948d7bc6ff1e88f835e657cec7c8
[ "CC0-1.0" ]
null
null
null
regulations/docket.py
cmc333333/regulations-site
37bb84bc466a948d7bc6ff1e88f835e657cec7c8
[ "CC0-1.0" ]
null
null
null
regulations/docket.py
cmc333333/regulations-site
37bb84bc466a948d7bc6ff1e88f835e657cec7c8
[ "CC0-1.0" ]
1
2020-04-24T17:17:46.000Z
2020-04-24T17:17:46.000Z
import logging import six import requests from django.conf import settings from django.core.cache import caches logger = logging.getLogger(__name__) cache = caches['regs_gov_cache'] def fetch(url, **kwargs): kwargs['headers'] = kwargs.get( 'headers', {'X-Api-Key': settings.REGS_GOV_API_KEY}) respo...
32.92233
77
0.657328
13e04dec9f9eb4e951b8d3a24ff622bf1760e730
2,539
py
Python
mail/check_new_mail.osx.py
redwindmill/workspace
b55fd80bb744c0d0f6d24143ece06780ad719738
[ "CC0-1.0" ]
1
2019-07-23T14:14:37.000Z
2019-07-23T14:14:37.000Z
mail/check_new_mail.osx.py
redwindmill/workspace
b55fd80bb744c0d0f6d24143ece06780ad719738
[ "CC0-1.0" ]
null
null
null
mail/check_new_mail.osx.py
redwindmill/workspace
b55fd80bb744c0d0f6d24143ece06780ad719738
[ "CC0-1.0" ]
null
null
null
#!/usr/local/bin/python3 import sys import subprocess COLOR_NORM = '\x1B[0m' # normal color COLOR_ERR = '\x1B[1;31m' # bold red COLOR_NOMSGS= '\x1B[1;32m' # bold green COLOR_SUBJ = COLOR_NORM COLOR_DATE = '\x1B[1;34m' # bold blue COLOR_TIME = '\x1B[1;32m' # bold green COLOR_FROM = '\x1B[0;33m' # yellow STR_ERR = CO...
25.138614
115
0.673494
52f93bd6a1e276f24886549319a7a91925caf84b
1,195
py
Python
helper_fxns.py
treybrooks/serverless_taxi_service
0119ae18ad819129e28c246755d5f7b20f523b6a
[ "Unlicense" ]
null
null
null
helper_fxns.py
treybrooks/serverless_taxi_service
0119ae18ad819129e28c246755d5f7b20f523b6a
[ "Unlicense" ]
2
2020-07-16T21:26:23.000Z
2021-05-08T11:24:14.000Z
helper_fxns.py
treybrooks/serverless_taxi_service
0119ae18ad819129e28c246755d5f7b20f523b6a
[ "Unlicense" ]
null
null
null
import boto3 import uuid import json import decimal from boto3.dynamodb.conditions import Key, Attr # Get the service resource. dynamodb_resource = boto3.resource('dynamodb', region_name = 'us-east-1') dynamodb_client = boto3.client('dynamodb', region_name = 'us-east-1') table_name = 'taxiTable' # Helper...
27.790698
74
0.669456
ee43f50ba8c8c68ab9175ccca63bd334f1dc0bed
4,340
py
Python
pak/types/optional.py
friedkeenan/pak.py
dd1ff188fa3274e3e329ec436da47c4db97a09d4
[ "0BSD" ]
6
2021-05-22T21:02:04.000Z
2022-02-12T01:14:12.000Z
pak/types/optional.py
friedkeenan/pak.py
dd1ff188fa3274e3e329ec436da47c4db97a09d4
[ "0BSD" ]
null
null
null
pak/types/optional.py
friedkeenan/pak.py
dd1ff188fa3274e3e329ec436da47c4db97a09d4
[ "0BSD" ]
null
null
null
""":class:`Types <.Type>` for marshaling data that might exist.""" import inspect from .type import Type __all__ = [ "Optional", ] class Optional(Type): """A :class:`~.Type` that might exist. Parameters ---------- elem_type : typelike The underlying :class:`~.Type`. exists : subclas...
28.552632
89
0.556452
3dcda5e4e47323faa2ddf82841480cad819c724c
563
py
Python
start_dist_test.py
rcmorehead/simplanets
3d9b3d1273a4f1a32ce656bdf5e9d6c6c38e3f7b
[ "MIT" ]
null
null
null
start_dist_test.py
rcmorehead/simplanets
3d9b3d1273a4f1a32ce656bdf5e9d6c6c38e3f7b
[ "MIT" ]
null
null
null
start_dist_test.py
rcmorehead/simplanets
3d9b3d1273a4f1a32ce656bdf5e9d6c6c38e3f7b
[ "MIT" ]
null
null
null
import os import sys print "*** Simple Planets - Distance Test ***" name = str(raw_input('Enter run name: ')) print "Running distance test {:}".format(name) pbs_head = ''' #!/bin/bash # #PBS -N {0:} #PBS -M abc-sim@psu.edu #PBS -m abe #PBS -A ebf11_collab #PBS -l pmem=4gb #PBS -l nodes=1:ppn=1 #PBS -l walltime=04:00...
17.59375
46
0.669627
64050bf5b209f73e5df623fcdceb8f0a90efe4b3
2,333
py
Python
tech_notes_code/available_memory/pytorch_demo.py
Paperspace/tutorials
8e20ffb687080c44e75dabea594d2b57acc53713
[ "MIT" ]
null
null
null
tech_notes_code/available_memory/pytorch_demo.py
Paperspace/tutorials
8e20ffb687080c44e75dabea594d2b57acc53713
[ "MIT" ]
null
null
null
tech_notes_code/available_memory/pytorch_demo.py
Paperspace/tutorials
8e20ffb687080c44e75dabea594d2b57acc53713
[ "MIT" ]
1
2022-02-25T12:07:16.000Z
2022-02-25T12:07:16.000Z
#!/usr/bin/env python3 # Copyright (c) 2021 Graphcore Ltd. All rights reserved. import time import torch import poptorch import tqdm import argparse import torchvision.models as models import torch.nn as nn from torch.utils.data import Dataset class GeneratedDataset(Dataset): """ Generated dataset creates a ...
30.697368
139
0.70853
81c216d891adbfe9ec9ee01f9c3ee31d87470c9d
463
py
Python
Combination Sum III.py
HalShaw/Leetcode
27c52aac5a8ecc5b5f02e54096a001920661b4bb
[ "MIT" ]
1
2016-12-22T04:09:25.000Z
2016-12-22T04:09:25.000Z
Combination Sum III.py
HalShaw/Leetcode
27c52aac5a8ecc5b5f02e54096a001920661b4bb
[ "MIT" ]
null
null
null
Combination Sum III.py
HalShaw/Leetcode
27c52aac5a8ecc5b5f02e54096a001920661b4bb
[ "MIT" ]
null
null
null
import itertools class Solution(object): def combinationSum3(self, k, n): """ :type k: int :type n: int :rtype: List[List[int]] """ l=[] ls=list(itertools.combinations_with_replacement(range(1,10),k)) for x in ls: if sum(x)==n and len(set(x...
25.722222
71
0.468683
b2948423ea99803c63a8e0c4eed6f9bbade9e7cf
5,735
py
Python
lib/slack.py
Joi/jibot3
bd39475d38ef7499671b3c6db136bbcfb70edffe
[ "MIT" ]
null
null
null
lib/slack.py
Joi/jibot3
bd39475d38ef7499671b3c6db136bbcfb70edffe
[ "MIT" ]
15
2021-02-02T14:06:37.000Z
2021-04-21T20:36:45.000Z
lib/slack.py
Joi/jibot3
bd39475d38ef7499671b3c6db136bbcfb70edffe
[ "MIT" ]
null
null
null
import ast import glob import inspect import importlib import os import re from slack_bolt import App from slack_bolt.adapter.socket_mode import SocketModeHandler from slack_sdk.errors import SlackApiError from lib.plugin import Plugin from lib.logging import logger whitespace:str = "|".join([' ', '\xa0']) slack_app_...
33.343023
132
0.724847
b473bd0078aa206cfb5592f620d4c912d644e86c
3,297
py
Python
wireless/scripts/launch_q_learn_umts_olpc.py
Ehsannyr/wireless-suite
83860cd418a167b724b57b5cc92c80e17d414a5e
[ "BSD-3-Clause" ]
3
2020-10-21T16:30:40.000Z
2020-10-23T08:35:17.000Z
wireless/scripts/launch_q_learn_umts_olpc.py
Ehsannyr/wireless-suite
83860cd418a167b724b57b5cc92c80e17d414a5e
[ "BSD-3-Clause" ]
null
null
null
wireless/scripts/launch_q_learn_umts_olpc.py
Ehsannyr/wireless-suite
83860cd418a167b724b57b5cc92c80e17d414a5e
[ "BSD-3-Clause" ]
null
null
null
import gym import json import numpy as np import matplotlib.pyplot as plt from collections import defaultdict from sacred import Experiment from wireless.agents.q_learning import QLearningAgent num_episodes = 512 max_steps_per_episode = 512 snr_tgt_db = 4 # Memory allocation episode_rewards = np.zeros(num_episodes)...
31.103774
116
0.66424
2058af13e3c35f95074cd4e82d1ea9daf687d77f
1,785
py
Python
fileProcessing/htmlList.py
mattdays/loy-lunar-lexicon-
28f55c3edbf96bc15e80edb5d5fbd444d1a2e839
[ "MIT" ]
null
null
null
fileProcessing/htmlList.py
mattdays/loy-lunar-lexicon-
28f55c3edbf96bc15e80edb5d5fbd444d1a2e839
[ "MIT" ]
null
null
null
fileProcessing/htmlList.py
mattdays/loy-lunar-lexicon-
28f55c3edbf96bc15e80edb5d5fbd444d1a2e839
[ "MIT" ]
null
null
null
import csv, sys data = [] def formatData(term, link): data.append([term, link]) def csvParse(name): with open(name) as file: reader = csv.DictReader(file, delimiter=",", quotechar='"') try: for row in reader: formatData(row['term'], row['link']) except csv...
24.452055
81
0.536695
11182168274576aff15497effac0b2e038705a63
2,892
py
Python
pytest_rts/utils/git.py
F-Secure/pytest-rts
d9d32afbd67982011ff8b7cc9ddfd3236e414055
[ "Apache-2.0" ]
6
2020-11-26T07:47:22.000Z
2021-11-25T20:09:55.000Z
pytest_rts/utils/git.py
F-Secure/pytest-rts
d9d32afbd67982011ff8b7cc9ddfd3236e414055
[ "Apache-2.0" ]
55
2020-10-29T11:39:20.000Z
2021-05-17T06:20:30.000Z
pytest_rts/utils/git.py
F-Secure/pytest-rts
d9d32afbd67982011ff8b7cc9ddfd3236e414055
[ "Apache-2.0" ]
1
2020-11-18T11:34:10.000Z
2020-11-18T11:34:10.000Z
"""This module contains code for git operations""" import logging import re import subprocess from typing import List, Set from gitdb.exc import BadName from pydriller import Git def commit_exists(commithash: str, repo: Git) -> bool: """Check if a given commithash exists in the Git repository""" if not commi...
31.096774
88
0.64177
9c538e14945d5cc4fe702acdb0073e6402556ee9
3,112
py
Python
Dogproject/Dogproject/settings.py
cs-fullstack-2019-fall/django-models-cw-Dekevion
7d4e6b5486db28ed262e40303d32e1450cb0e412
[ "Apache-2.0" ]
null
null
null
Dogproject/Dogproject/settings.py
cs-fullstack-2019-fall/django-models-cw-Dekevion
7d4e6b5486db28ed262e40303d32e1450cb0e412
[ "Apache-2.0" ]
null
null
null
Dogproject/Dogproject/settings.py
cs-fullstack-2019-fall/django-models-cw-Dekevion
7d4e6b5486db28ed262e40303d32e1450cb0e412
[ "Apache-2.0" ]
null
null
null
""" Django settings for Dogproject project. Generated by 'django-admin startproject' using Django 2.2. For more information on this file, see https://docs.djangoproject.com/en/dev/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/dev/ref/settings/ """ import os ...
25.508197
91
0.696658
a8b619566f1f0865cde6b788dc458442075c65ff
3,984
py
Python
huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_load_balancer_response.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
64
2020-06-12T07:05:07.000Z
2022-03-30T03:32:50.000Z
huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_load_balancer_response.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
11
2020-07-06T07:56:54.000Z
2022-01-11T11:14:40.000Z
huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_load_balancer_response.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
24
2020-06-08T11:42:13.000Z
2022-03-04T06:44:08.000Z
# coding: utf-8 import re import six from huaweicloudsdkcore.sdk_response import SdkResponse from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class UpdateLoadBalancerResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name ...
28.457143
81
0.587098
52c2a1b52288346519e96bbd05f9d195d56f9dc6
4,646
py
Python
homeassistant/components/shelly/sensor.py
rpvelloso/core
f6584c18665bab17d54ac418581918e97c100c45
[ "Apache-2.0" ]
6
2016-11-25T06:36:27.000Z
2021-11-16T11:20:23.000Z
homeassistant/components/shelly/sensor.py
rpvelloso/core
f6584c18665bab17d54ac418581918e97c100c45
[ "Apache-2.0" ]
45
2020-10-15T06:47:06.000Z
2022-03-31T06:26:16.000Z
homeassistant/components/shelly/sensor.py
rusitschka/core
58777f1b7af543651149a58c1cb082cbe08cb271
[ "Apache-2.0" ]
2
2020-11-17T09:19:47.000Z
2020-12-16T03:56:09.000Z
"""Sensor for Shelly.""" from homeassistant.components import sensor from homeassistant.const import ( CONCENTRATION_PARTS_PER_MILLION, DEGREE, ELECTRICAL_CURRENT_AMPERE, ENERGY_KILO_WATT_HOUR, PERCENTAGE, POWER_WATT, ) from .entity import ( BlockAttributeDescription, ShellyBlockAttribu...
33.185714
97
0.655833
c537183448a17240b186390802910454048b55cd
5,954
py
Python
build/lacros/mojo_connection_lacros_launcher.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2,219
2018-03-26T02:57:34.000Z
2022-03-31T00:27:59.000Z
build/lacros/mojo_connection_lacros_launcher.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
250
2018-02-02T23:16:57.000Z
2022-03-21T06:09:53.000Z
build/lacros/mojo_connection_lacros_launcher.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
473
2019-03-24T16:34:23.000Z
2022-03-31T02:01:05.000Z
#!/usr/bin/env vpython3 # # Copyright 2020 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Helps launch lacros-chrome with mojo connection established on Linux or Chrome OS. Use on Chrome OS is for dev purposes. The...
36.981366
80
0.7044
07faf13b7c2310bbe97af35df62ea12851211ccf
4,446
py
Python
IPython/quarantine/ipy_rehashdir.py
tinyclues/ipython
71e32606b0242772b81c9be0d40751ba47d95f2c
[ "BSD-3-Clause-Clear" ]
null
null
null
IPython/quarantine/ipy_rehashdir.py
tinyclues/ipython
71e32606b0242772b81c9be0d40751ba47d95f2c
[ "BSD-3-Clause-Clear" ]
null
null
null
IPython/quarantine/ipy_rehashdir.py
tinyclues/ipython
71e32606b0242772b81c9be0d40751ba47d95f2c
[ "BSD-3-Clause-Clear" ]
null
null
null
# -*- coding: utf-8 -*- """ IPython extension: add %rehashdir magic Usage: %rehashdir c:/bin c:/tools - Add all executables under c:/bin and c:/tools to alias table, in order to make them directly executable from any directory. This also serves as an example on how to extend ipython with new magic functions. ...
31.531915
91
0.54296
0a6cbddd2cc24995cf135db17da68a979d803659
5,940
py
Python
NativeAPIDemo/NativeAPIDemo/common/auto_js.py
HangZhouShuChengKeJi/ZBWNativeAPI
7c3722f5bf16aeb99c444a9c87dd7b84bd39a13f
[ "BSD-2-Clause" ]
null
null
null
NativeAPIDemo/NativeAPIDemo/common/auto_js.py
HangZhouShuChengKeJi/ZBWNativeAPI
7c3722f5bf16aeb99c444a9c87dd7b84bd39a13f
[ "BSD-2-Clause" ]
null
null
null
NativeAPIDemo/NativeAPIDemo/common/auto_js.py
HangZhouShuChengKeJi/ZBWNativeAPI
7c3722f5bf16aeb99c444a9c87dd7b84bd39a13f
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python import sys,os fileApi = open(sys.argv[1], "r") fileJs = open(sys.argv[2], "r") apiList = fileApi.readlines() jsLib = fileJs.readlines() fileApi.close() fileJs.close() startPos = jsLib.index(" //here api start\n") endPos = jsLib.index(" //here api end\n") if startPos != -1: content = []; ...
48.688525
271
0.543771
25cf5c1d97fbad90498120420d00bdd57ca70c1c
4,680
py
Python
geomstats/geometry/lie_algebra.py
tristancabel/geomstats
eeba7b7a652d45fc0053e35219c03627f2e8406f
[ "MIT" ]
2
2020-01-23T04:01:02.000Z
2020-08-18T19:20:27.000Z
geomstats/geometry/lie_algebra.py
tristancabel/geomstats
eeba7b7a652d45fc0053e35219c03627f2e8406f
[ "MIT" ]
null
null
null
geomstats/geometry/lie_algebra.py
tristancabel/geomstats
eeba7b7a652d45fc0053e35219c03627f2e8406f
[ "MIT" ]
1
2021-03-14T06:54:09.000Z
2021-03-14T06:54:09.000Z
"""Module providing an implementation of MatrixLieAlgebras. There are two main forms of representation for elements of a MatrixLieAlgebra implemented here. The first one is as a matrix, as elements of R^(n x n). The second is by choosing a base and remembering the coefficients of an element in that base. This base wil...
35.18797
79
0.605769
53bf1e37d0ca33d3a477f5dd6c8a6a3c1c1055cc
85,687
py
Python
rayml/tests/pipeline_tests/test_component_graph.py
gcode-ai/rayml
92c4f3c6041f465fee27a6c03bd7959c4ef21124
[ "BSD-3-Clause" ]
null
null
null
rayml/tests/pipeline_tests/test_component_graph.py
gcode-ai/rayml
92c4f3c6041f465fee27a6c03bd7959c4ef21124
[ "BSD-3-Clause" ]
null
null
null
rayml/tests/pipeline_tests/test_component_graph.py
gcode-ai/rayml
92c4f3c6041f465fee27a6c03bd7959c4ef21124
[ "BSD-3-Clause" ]
null
null
null
import re import warnings from datetime import datetime, timedelta from unittest.mock import patch import numpy as np import pandas as pd import pytest from pandas.testing import ( assert_frame_equal, assert_index_equal, assert_series_equal, ) from woodwork.logical_types import Double, Integer from rayml....
34.509464
174
0.583659
bdcf9d5629e487d1e42f255d6460c36a9b8639d1
3,066
py
Python
Home/models.py
n3trob3/nimrodage
578eb14e2e8f7dc7ae58913b6131fd60c1596c0b
[ "Apache-2.0" ]
null
null
null
Home/models.py
n3trob3/nimrodage
578eb14e2e8f7dc7ae58913b6131fd60c1596c0b
[ "Apache-2.0" ]
null
null
null
Home/models.py
n3trob3/nimrodage
578eb14e2e8f7dc7ae58913b6131fd60c1596c0b
[ "Apache-2.0" ]
null
null
null
from django.db import models from django.db.models.signals import post_save, pre_save from django.dispatch import receiver from .utils import makeCode, create_slug # Create your models here. class Contact(models.Model): CLIENT_TYPE=( ('N','New',), ('E','Existing'), ) MEETING_TYPE=( ('G','Google/In...
36.939759
111
0.733855
7673f67b28fd1962592aec39f93af5bf1104c35f
1,152
py
Python
kubernetes/test/test_extensions_v1beta1_fs_group_strategy_options.py
TomasTomecek/kubernetes-python
c37c074303a13c72662b9201ccc023fb0ca45755
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_extensions_v1beta1_fs_group_strategy_options.py
TomasTomecek/kubernetes-python
c37c074303a13c72662b9201ccc023fb0ca45755
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_extensions_v1beta1_fs_group_strategy_options.py
TomasTomecek/kubernetes-python
c37c074303a13c72662b9201ccc023fb0ca45755
[ "Apache-2.0" ]
1
2020-05-09T07:16:55.000Z
2020-05-09T07:16:55.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.12.4 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys i...
25.6
128
0.756944
7931affe862215ca4b9d03a32cf22d5823033100
8,067
py
Python
tasks/uk/odl.py
CartoDB/bigmetadata
a32325382500f23b8a607e4e02cc0ec111360869
[ "BSD-3-Clause" ]
45
2015-12-14T03:05:55.000Z
2021-06-29T22:46:40.000Z
tasks/uk/odl.py
CartoDB/bigmetadata
a32325382500f23b8a607e4e02cc0ec111360869
[ "BSD-3-Clause" ]
480
2016-02-19T15:58:44.000Z
2021-09-10T16:38:56.000Z
tasks/uk/odl.py
CartoDB/bigmetadata
a32325382500f23b8a607e4e02cc0ec111360869
[ "BSD-3-Clause" ]
13
2016-08-09T21:03:02.000Z
2020-04-29T23:40:20.000Z
from tasks.base_tasks import (RepoFileUnzipTask, GeoFile2TempTableTask, SimplifiedTempTableTask, TagsTask, ColumnsTask, TableTask) from tasks.tags import SectionTags, SubsectionTags, LicenseTags, BoundaryTags from tasks.meta import GEOM_REF, OBSTag, OBSColumn, OBSTable, current_session fro...
28.5053
108
0.581505
16dec853bd409d4cb0d2998f5725e898671f3747
1,424
py
Python
iFixDelta.py
gghezzo/iFixDelta
03141cfd48ddf98f4a9ae2d1170746da7a563575
[ "CC0-1.0" ]
null
null
null
iFixDelta.py
gghezzo/iFixDelta
03141cfd48ddf98f4a9ae2d1170746da7a563575
[ "CC0-1.0" ]
null
null
null
iFixDelta.py
gghezzo/iFixDelta
03141cfd48ddf98f4a9ae2d1170746da7a563575
[ "CC0-1.0" ]
null
null
null
# name: iFixDelta.py # description: Identify what changed from one iFix to another # # Which version? (exm 407, 502, 602) # Which iFixes do you want to compare? # Get a list of APARs in the current iFix # Get a list of APARs in the target iFix # Out put the delta setCurrent - setTarget import datetime import...
20.342857
62
0.696629
9b4d48a6325ad00ccc4301b27d892edc554beffe
8,537
py
Python
bindings/python/iree/runtime/function.py
frgossen/iree
0b3289aea9fcea8d0e00117045a1256fdddb93f7
[ "Apache-2.0" ]
null
null
null
bindings/python/iree/runtime/function.py
frgossen/iree
0b3289aea9fcea8d0e00117045a1256fdddb93f7
[ "Apache-2.0" ]
null
null
null
bindings/python/iree/runtime/function.py
frgossen/iree
0b3289aea9fcea8d0e00117045a1256fdddb93f7
[ "Apache-2.0" ]
null
null
null
# Lint as: python3 # Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
32.96139
84
0.707274
8bfda46107de479aaa79317884be893c277374d3
4,077
py
Python
google/ads/googleads/v7/googleads-py/google/ads/googleads/v7/services/services/campaign_simulation_service/transports/base.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
7
2021-02-21T10:39:41.000Z
2021-12-07T07:31:28.000Z
google/ads/googleads/v7/googleads-py/google/ads/googleads/v7/services/services/campaign_simulation_service/transports/base.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
6
2021-02-02T23:46:11.000Z
2021-11-15T01:46:02.000Z
google/ads/googleads/v7/googleads-py/google/ads/googleads/v7/services/services/campaign_simulation_service/transports/base.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
4
2021-01-28T23:25:45.000Z
2021-08-30T01:55:16.000Z
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
36.401786
79
0.669119
f03131bc9ee3f322f3cc8cce457c8fd4c906aaf5
17,945
py
Python
dev/tutorials/mnist/mnist_tutorial.py
dapatil211/deep_architect
feadfb545d166216e27532ea47e8efa178e0d142
[ "MIT" ]
272
2017-05-01T08:14:15.000Z
2022-02-02T15:21:24.000Z
dev/tutorials/mnist/mnist_tutorial.py
dapatil211/deep_architect
feadfb545d166216e27532ea47e8efa178e0d142
[ "MIT" ]
16
2017-09-25T02:19:40.000Z
2022-02-10T00:37:09.000Z
dev/tutorials/mnist/mnist_tutorial.py
dapatil211/deep_architect
feadfb545d166216e27532ea47e8efa178e0d142
[ "MIT" ]
35
2017-05-10T14:39:40.000Z
2021-01-17T10:09:34.000Z
### ${MARKDOWN} # Simple Architecture Search for MNIST Tutorial # === # # Outline: # 1. Goals of this tutorial # 2. Overview # - What is Architecture Search # - Decompose the problem # - Running the program # 3. Search Space # - What is search space # - Baseline architecture and our current search space # ...
46.853786
927
0.713792
bb0abb96bd45bba7411aadca3075353c2a4464b5
85
py
Python
djvuesax/__init__.py
hdknr/django-vuesax
8c76c22bba02c9ab6a17fa54115f5c77c25048f0
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
djvuesax/__init__.py
hdknr/django-vuesax
8c76c22bba02c9ab6a17fa54115f5c77c25048f0
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
djvuesax/__init__.py
hdknr/django-vuesax
8c76c22bba02c9ab6a17fa54115f5c77c25048f0
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
# coding: utf-8 __version__ = '0.0.1' default_app_config = 'djvuesax.apps.AppConfig'
21.25
46
0.741176
d5ef0a56702e7f7d9e205e1e49752d205265d0a9
1,326
py
Python
build/lib/tests/test_rpclib.py
zhangzhen273/python3-dubbo-client
19d4aec2a6facdbacfddd4ce2427eeb633e341d7
[ "Apache-2.0" ]
null
null
null
build/lib/tests/test_rpclib.py
zhangzhen273/python3-dubbo-client
19d4aec2a6facdbacfddd4ce2427eeb633e341d7
[ "Apache-2.0" ]
null
null
null
build/lib/tests/test_rpclib.py
zhangzhen273/python3-dubbo-client
19d4aec2a6facdbacfddd4ce2427eeb633e341d7
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 """ 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"); yo...
42.774194
100
0.769231
b8e5fce6af7150d13dbd423320b2ec561f53d1b6
2,777
py
Python
packages/syft/src/syft/lib/torch/__init__.py
vishalbelsare/PySyft
fb04404fcfbef82fad1fb47407b35a24e9afb599
[ "Apache-1.1" ]
8,428
2017-08-10T09:17:49.000Z
2022-03-31T08:20:14.000Z
packages/syft/src/syft/lib/torch/__init__.py
vishalbelsare/PySyft
fb04404fcfbef82fad1fb47407b35a24e9afb599
[ "Apache-1.1" ]
4,779
2017-08-09T23:19:00.000Z
2022-03-29T11:49:36.000Z
packages/syft/src/syft/lib/torch/__init__.py
vishalbelsare/PySyft
fb04404fcfbef82fad1fb47407b35a24e9afb599
[ "Apache-1.1" ]
2,307
2017-08-10T08:52:12.000Z
2022-03-30T05:36:07.000Z
# stdlib from typing import Any from typing import Dict from typing import Union # third party from packaging import version import torch # relative from . import device # noqa: 401 from . import parameter # noqa: 401 from . import return_types # noqa: 401 from . import size # noqa: 401 from . import uppercase_te...
34.283951
88
0.667627
a56b454fff6f89efa1b903ef212b3944ea06d54f
755
py
Python
my-custom-checks/AWS_location_check.py
monch1962/using-checkov
47e941e692c1545cc303c5e0923f86ddf49d9942
[ "MIT" ]
null
null
null
my-custom-checks/AWS_location_check.py
monch1962/using-checkov
47e941e692c1545cc303c5e0923f86ddf49d9942
[ "MIT" ]
null
null
null
my-custom-checks/AWS_location_check.py
monch1962/using-checkov
47e941e692c1545cc303c5e0923f86ddf49d9942
[ "MIT" ]
null
null
null
from checkov.common.models.enums import CheckResult, CheckCategories from checkov.terraform.checks.resource.base_resource_check import BaseResourceCheck class AWSLocationCheck(BaseResourceCheck): def __init__(self): name = """Ensure AWS assets are stored in ap-southeast-2 region""" id = "DRAC_AWS_LOCATION" ...
37.75
102
0.743046
ba1849cb6f65d94223a49597ce8514c68070f3ac
5,071
py
Python
napari_svg/_shape_to_xml.py
nclack/napari-svg
0e222857c3a61befe1ea4b4e97fd48b285877d02
[ "BSD-3-Clause" ]
null
null
null
napari_svg/_shape_to_xml.py
nclack/napari-svg
0e222857c3a61befe1ea4b4e97fd48b285877d02
[ "BSD-3-Clause" ]
13
2020-04-26T04:27:12.000Z
2021-12-17T16:56:46.000Z
napari_svg/_shape_to_xml.py
nclack/napari-svg
0e222857c3a61befe1ea4b4e97fd48b285877d02
[ "BSD-3-Clause" ]
8
2020-04-19T21:47:37.000Z
2022-01-25T16:39:01.000Z
from xml.etree.ElementTree import Element import numpy as np def ellipse_to_xml(data, svg_props): """Generates an xml element for an ellipse. Only two dimensional ellipses are supported. Parameters ---------- data : (4, 2) array Ellipse vertices. Only two dimensional ellipses data are su...
26.005128
79
0.589036
61be0cd7366ab92c13995376c20cefe60bd64e3e
29,184
py
Python
language/question_answering/b2t2/run_b2t2.py
naveenjafer/language
efc5183855a7aeecac3e81fe12ce60fc824f8ca7
[ "Apache-2.0" ]
1,199
2018-10-16T01:30:18.000Z
2022-03-31T21:05:24.000Z
language/question_answering/b2t2/run_b2t2.py
naveenjafer/language
efc5183855a7aeecac3e81fe12ce60fc824f8ca7
[ "Apache-2.0" ]
116
2018-10-18T03:31:46.000Z
2022-03-24T13:40:50.000Z
language/question_answering/b2t2/run_b2t2.py
naveenjafer/language
efc5183855a7aeecac3e81fe12ce60fc824f8ca7
[ "Apache-2.0" ]
303
2018-10-22T12:35:12.000Z
2022-03-27T17:38:17.000Z
# coding=utf-8 # Copyright 2018 The Google AI Language Team 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 ...
39.868852
82
0.677426
f6f081aee2d1e07db74a869c842617c6869b1936
1,314
py
Python
tests/test_simple_geometry.py
mozaiques/denis
b39e2c1aed717387dbaf2721f0b526dd0728d1b5
[ "MIT" ]
null
null
null
tests/test_simple_geometry.py
mozaiques/denis
b39e2c1aed717387dbaf2721f0b526dd0728d1b5
[ "MIT" ]
null
null
null
tests/test_simple_geometry.py
mozaiques/denis
b39e2c1aed717387dbaf2721f0b526dd0728d1b5
[ "MIT" ]
null
null
null
import math import denis paris_lat_lng = (48.864716, 2.349014) def test_pythagore(): base = denis.Base(paris_lat_lng) somewhere1 = base.make_point(x_y=(10, 0)) somewhere2 = base.make_point(x_y=(0, 10)) distance = denis.Segment(somewhere1, somewhere2).length assert denis.is_zero(distance - math...
21.540984
59
0.634703
51d8eecb33e4e8e4a93bf5f5558beea2c95c531d
189
py
Python
botrytis/server/filters.py
althonos/botrytis
304f24567ccb2776b764f53696b41d165e9b5266
[ "MIT" ]
null
null
null
botrytis/server/filters.py
althonos/botrytis
304f24567ccb2776b764f53696b41d165e9b5266
[ "MIT" ]
null
null
null
botrytis/server/filters.py
althonos/botrytis
304f24567ccb2776b764f53696b41d165e9b5266
[ "MIT" ]
null
null
null
# coding: utf-8 def sentence(message): message = message.strip().rstrip('.') return "".join([message[0].upper(), message[1:], '.']) def quote(message): return f"{message!r}"
18.9
58
0.603175
cb41d9714ef0d14be9fb02a1155c46cfc62b2e47
20,983
py
Python
fhir/resources/measurereport.py
chgl/fhir.resources
35b22314642640c0b25960ab5b2855e7c51749ef
[ "BSD-3-Clause" ]
null
null
null
fhir/resources/measurereport.py
chgl/fhir.resources
35b22314642640c0b25960ab5b2855e7c51749ef
[ "BSD-3-Clause" ]
null
null
null
fhir/resources/measurereport.py
chgl/fhir.resources
35b22314642640c0b25960ab5b2855e7c51749ef
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Profile: http://hl7.org/fhir/StructureDefinition/MeasureReport Release: R4 Version: 4.0.1 Build ID: 9346c8cc45 Last updated: 2019-11-01T09:29:23.356+11:00 """ import typing from pydantic import Field, root_validator from pydantic.error_wrappers import ErrorWrapper, ValidationError from pyda...
37.402852
93
0.635038
681d367347da1b966839c8caea397db1fbd92586
1,350
py
Python
tests/actions/test_credit_cards_actions.py
jayvdb/django-customer-billing
8d8b3b111a357b4fae0c0c249c1fc2cfdced3b27
[ "MIT" ]
13
2017-11-18T14:31:27.000Z
2021-11-04T08:08:33.000Z
tests/actions/test_credit_cards_actions.py
jayvdb/django-customer-billing
8d8b3b111a357b4fae0c0c249c1fc2cfdced3b27
[ "MIT" ]
3
2020-09-16T04:03:18.000Z
2020-10-05T07:17:57.000Z
tests/actions/test_credit_cards_actions.py
jayvdb/django-customer-billing
8d8b3b111a357b4fae0c0c249c1fc2cfdced3b27
[ "MIT" ]
5
2019-09-10T22:24:52.000Z
2021-10-06T10:43:55.000Z
from django.contrib.auth.models import User from django.test import TestCase from pytest import raises from billing.actions import credit_cards from billing.models import Account, CreditCard from ..models import MyPSPCreditCard class CreditCardActionsTest(TestCase): def setUp(self): user = User.objects.c...
37.5
91
0.687407
9135b799621b699456b9f88eb5c24543d9b556e1
2,336
py
Python
marvmiloTools/dash_tools/nav/__init__.py
marvmilo/marvmiloTools
54666013375dce1288a8a87f9397bf25108880e0
[ "MIT" ]
null
null
null
marvmiloTools/dash_tools/nav/__init__.py
marvmilo/marvmiloTools
54666013375dce1288a8a87f9397bf25108880e0
[ "MIT" ]
null
null
null
marvmiloTools/dash_tools/nav/__init__.py
marvmilo/marvmiloTools
54666013375dce1288a8a87f9397bf25108880e0
[ "MIT" ]
null
null
null
import dash_bootstrap_components as dbc from dash import html from dash.dependencies import Input, Output, State #import other scripts from . import item #function for creating Navbar def bar( logo = None, logo_style = { "width": "3rem", "height": "3rem", "backgroundSize": "cover", ...
26.850575
71
0.383562
6499105d84b44f925aae4c5565d79686436bf623
41,853
py
Python
mesonbuild/backend/backends.py
hackertron/meson
3011f2a2d007b38838794f993b8b92c1aa1bd5a7
[ "Apache-2.0" ]
null
null
null
mesonbuild/backend/backends.py
hackertron/meson
3011f2a2d007b38838794f993b8b92c1aa1bd5a7
[ "Apache-2.0" ]
null
null
null
mesonbuild/backend/backends.py
hackertron/meson
3011f2a2d007b38838794f993b8b92c1aa1bd5a7
[ "Apache-2.0" ]
null
null
null
# Copyright 2012-2016 The Meson development team # 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 agree...
47.345023
124
0.607627
9395bba52548660d4c3f5ad47341e5a7496004a6
12,051
py
Python
work_dirs/bsnet_test_bbox_icdar/bsnet_test_bbox_icdar.py
zzx0226/mmocr
50354895244339a392b4f1af5a35963883923cca
[ "Apache-2.0" ]
null
null
null
work_dirs/bsnet_test_bbox_icdar/bsnet_test_bbox_icdar.py
zzx0226/mmocr
50354895244339a392b4f1af5a35963883923cca
[ "Apache-2.0" ]
null
null
null
work_dirs/bsnet_test_bbox_icdar/bsnet_test_bbox_icdar.py
zzx0226/mmocr
50354895244339a392b4f1af5a35963883923cca
[ "Apache-2.0" ]
null
null
null
checkpoint_config = dict(interval=5) log_config = dict( interval=5, hooks=[dict(type='TextLoggerHook'), dict(type='TensorboardLoggerHook')]) dist_params = dict(backend='nccl') log_level = 'INFO' load_from = None resume_from = None workflow = [('train', 1)] optimizer = dict(type='Adam', lr=0.0001) opt...
34.62931
91
0.542694
eccca4790384a36319ed3a4059b0c714240abaea
724
py
Python
setup.py
spacetelescope/relic
d5fc7bf6dbe01eb89de3ff5c2f6cfec2b4a6047d
[ "BSD-3-Clause" ]
1
2022-01-17T02:33:47.000Z
2022-01-17T02:33:47.000Z
setup.py
spacetelescope/relic
d5fc7bf6dbe01eb89de3ff5c2f6cfec2b4a6047d
[ "BSD-3-Clause" ]
4
2018-06-20T20:44:53.000Z
2018-09-28T18:47:09.000Z
setup.py
spacetelescope/relic
d5fc7bf6dbe01eb89de3ff5c2f6cfec2b4a6047d
[ "BSD-3-Clause" ]
5
2018-06-13T14:03:48.000Z
2020-04-10T13:21:49.000Z
from setuptools import setup, find_packages import relic.release version = relic.release.get_info() relic.release.write_template(version, 'relic/') setup( name='relic', version=version.pep386, author='Joseph Hunkeler', author_email='jhunk@stsci.edu', description='Maintains version information for ...
30.166667
71
0.672652
00605483d0eb1f7e0b04fa6bfdb3710e21b04900
12,312
py
Python
tests/utils.py
zasdfgbnm/TorchSnooper
4bb99705dbb68b2a744d0b8b78ad8f924449695a
[ "MIT" ]
767
2019-05-29T19:36:27.000Z
2022-03-31T07:30:22.000Z
tests/utils.py
zasdfgbnm/TorchSnooper
4bb99705dbb68b2a744d0b8b78ad8f924449695a
[ "MIT" ]
9
2019-06-03T02:19:41.000Z
2020-07-20T22:16:59.000Z
tests/utils.py
zasdfgbnm/TorchSnooper
4bb99705dbb68b2a744d0b8b78ad8f924449695a
[ "MIT" ]
40
2019-06-01T08:39:51.000Z
2021-10-03T17:02:03.000Z
# flake8: noqa # Copyright 2019 Ram Rachum and collaborators. # This program is distributed under the MIT license. import os import re import abc import inspect from pysnooper.utils import DEFAULT_REPR_RE try: from itertools import zip_longest except ImportError: from itertools import izip_longest as zip_lon...
31.012594
86
0.592511
ebb9acaa1e466e7c5ed582460046663cd3359af6
4,645
py
Python
src/head_action/head_action.py
baxter-flowers/baxter_interface
198bb49fb1de0c31b66583070caa1cc3dc99efda
[ "BSD-3-Clause" ]
1
2017-12-22T20:32:04.000Z
2017-12-22T20:32:04.000Z
src/baxter_interface/src/head_action/head_action.py
u3099811/BaxterTictacToe
967ab0ea8496ca4ce54db41b20c05de68cfe1bb9
[ "Apache-2.0" ]
2
2017-08-16T00:18:52.000Z
2017-08-16T04:30:05.000Z
src/baxter_interface/src/head_action/head_action.py
u3099811/BaxterTictacToe
967ab0ea8496ca4ce54db41b20c05de68cfe1bb9
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2013-2015, Rethink Robotics # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, # this list of conditio...
36.865079
86
0.677287
28debf8189cad0304ca3ca421680ece377719762
44
py
Python
gateway/src/gw_mqtt.py
bother3000/Smart-IoT-Planting-System
7c33f150850fb8c9bc250fa02bf306f02f7cafb8
[ "MIT" ]
171
2017-09-22T08:25:18.000Z
2022-02-28T07:56:41.000Z
gateway/src/gw_mqtt.py
bother3000/Smart-IoT-Planting-System
7c33f150850fb8c9bc250fa02bf306f02f7cafb8
[ "MIT" ]
2
2018-06-28T02:33:04.000Z
2021-06-09T06:56:58.000Z
gateway/src/gw_mqtt.py
bother3000/Smart-IoT-Planting-System
7c33f150850fb8c9bc250fa02bf306f02f7cafb8
[ "MIT" ]
108
2017-10-03T20:11:52.000Z
2022-03-19T15:21:48.000Z
#Gateway mqtt source code based on hbmqtt.
22
43
0.772727
e46bba2203fad7ea701a8c18f5996a80c229d60c
2,084
py
Python
app/database.py
taeram/dynamite
b85c4147562b9e6c4e9e1a454ef21be3def8367f
[ "MIT" ]
1
2020-01-05T17:24:58.000Z
2020-01-05T17:24:58.000Z
app/database.py
taeram/dynamite
b85c4147562b9e6c4e9e1a454ef21be3def8367f
[ "MIT" ]
null
null
null
app/database.py
taeram/dynamite
b85c4147562b9e6c4e9e1a454ef21be3def8367f
[ "MIT" ]
null
null
null
from app import app from flask.ext.sqlalchemy import SQLAlchemy from sqlalchemy.dialects.mysql import VARCHAR from flask.ext.script import Manager, prompt_bool from datetime import datetime db = SQLAlchemy(app) manager = Manager(usage="Manage the database") @manager.command def create(): "Create the database" ...
27.786667
155
0.6262
a6a62a7aa6247822fdf7fb52ae8488979c62dfe7
5,125
py
Python
code/python/CapitalStructureReportBuilder/v1/fds/sdk/CapitalStructureReportBuilder/exceptions.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
6
2022-02-07T16:34:18.000Z
2022-03-30T08:04:57.000Z
code/python/CapitalStructureReportBuilder/v1/fds/sdk/CapitalStructureReportBuilder/exceptions.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
2
2022-02-07T05:25:57.000Z
2022-03-07T14:18:04.000Z
code/python/CapitalStructureReportBuilder/v1/fds/sdk/CapitalStructureReportBuilder/exceptions.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
null
null
null
""" FactSet Capital Structure Report Builder API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech """ class OpenApiException(Exception): ...
32.03125
124
0.604683
1581cdbf8786c3884c6ea36548066dc9dae7501f
5,398
py
Python
lib/python3.8/site-packages/ansible_collections/ngine_io/cloudstack/plugins/modules/cs_zone_info.py
cjsteel/python3-venv-ansible-2.10.5
c95395c4cae844dc66fddde9b4343966f4b2ecd5
[ "Apache-1.1" ]
null
null
null
lib/python3.8/site-packages/ansible_collections/ngine_io/cloudstack/plugins/modules/cs_zone_info.py
cjsteel/python3-venv-ansible-2.10.5
c95395c4cae844dc66fddde9b4343966f4b2ecd5
[ "Apache-1.1" ]
null
null
null
lib/python3.8/site-packages/ansible_collections/ngine_io/cloudstack/plugins/modules/cs_zone_info.py
cjsteel/python3-venv-ansible-2.10.5
c95395c4cae844dc66fddde9b4343966f4b2ecd5
[ "Apache-1.1" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (c) 2016, René Moser <mail@renemoser.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 DOCUMENTATION = ''' --- module: cs_zone_...
25.951923
92
0.631901
82e97f3591fc02756bd169e4fcfcde524607306f
59
py
Python
src/iris_admin/gunicorn.py
1mDroid/iris-admin
47aa23f18b7fcc4d7e74456dd2f094eeb19415b4
[ "BSD-2-Clause" ]
7
2017-05-01T20:48:34.000Z
2021-02-13T06:06:01.000Z
src/iris_admin/gunicorn.py
1mDroid/iris-admin
47aa23f18b7fcc4d7e74456dd2f094eeb19415b4
[ "BSD-2-Clause" ]
1
2020-07-15T17:20:12.000Z
2020-07-15T19:16:36.000Z
src/iris_admin/gunicorn.py
1mDroid/iris-admin
47aa23f18b7fcc4d7e74456dd2f094eeb19415b4
[ "BSD-2-Clause" ]
3
2019-08-28T23:18:53.000Z
2020-07-15T17:22:43.000Z
from iris_admin.api import get_app application = get_app()
19.666667
34
0.813559
7ccc3c72f307ec042b3d0bfa0e0e4fbbbaa4b8dd
631
py
Python
examples/run_random.py
Tiamat-Tech/crafter
fce0d3483a6e35bc4656dd39d3b8ca3c9631d5c6
[ "MIT" ]
null
null
null
examples/run_random.py
Tiamat-Tech/crafter
fce0d3483a6e35bc4656dd39d3b8ca3c9631d5c6
[ "MIT" ]
null
null
null
examples/run_random.py
Tiamat-Tech/crafter
fce0d3483a6e35bc4656dd39d3b8ca3c9631d5c6
[ "MIT" ]
null
null
null
import argparse import crafter import tqdm parser = argparse.ArgumentParser() parser.add_argument('--outdir', type=str, default='random-episodes') parser.add_argument('--steps', type=float, default=5e6) args = parser.parse_args() env = crafter.Env() env = crafter.Recorder( env, args.outdir, save_episode=True...
21.033333
68
0.703645
30087de2d37c19870436105d94b6d8f07c4fe8ea
812
py
Python
publish.py
francisykl-91/QuCore-ThirdParty
fd22e5426f75a80aee73c162b5e3dcd3908f807c
[ "Apache-2.0" ]
null
null
null
publish.py
francisykl-91/QuCore-ThirdParty
fd22e5426f75a80aee73c162b5e3dcd3908f807c
[ "Apache-2.0" ]
null
null
null
publish.py
francisykl-91/QuCore-ThirdParty
fd22e5426f75a80aee73c162b5e3dcd3908f807c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import os,sys spec = 'QuCore-ThirdParty.podspec' if len(sys.argv) == 0: print('please input version') else: version = sys.argv[1] with open(spec) as f: lines = f.readlines() for i in range(len(lines)): if lines[i].find('s.version =') != -1: ...
12.888889
74
0.496305
e249a3c7f9a7b1d7f6533d7aa23fb2ee16329659
536
py
Python
packages/django-backend/frontend/urls.py
ZechyW/cs-toolkit
802a28b3a4ce33754b8a986f6d2eb616aad017d4
[ "MIT" ]
1
2021-08-02T18:32:08.000Z
2021-08-02T18:32:08.000Z
packages/django-backend/frontend/urls.py
ZechyW/cs-toolkit
802a28b3a4ce33754b8a986f6d2eb616aad017d4
[ "MIT" ]
5
2021-03-09T17:02:32.000Z
2022-02-26T17:28:38.000Z
packages/django-backend/frontend/urls.py
ZechyW/cs-toolkit
802a28b3a4ce33754b8a986f6d2eb616aad017d4
[ "MIT" ]
1
2021-08-02T18:32:09.000Z
2021-08-02T18:32:09.000Z
from django.urls import re_path, path from . import views # All requests that were not previously resolved are routed through # `views.frontend` urlpatterns = [ # Bare URL (e.g., `http://localhost:8080`) path("", views.frontend), # URLs that end in a filename (as opposed to endpoints, which might # sti...
35.733333
71
0.671642
eef8a78551270b6bb7e4a462800ba7e8f57e5f8e
14,913
py
Python
nova/tests/unit/console/test_websocketproxy.py
cloud-zuiwanyuan/nova
0b59a2d9dc22e4fb172810019dba5ece09bb4526
[ "Apache-2.0" ]
1
2019-07-29T10:30:24.000Z
2019-07-29T10:30:24.000Z
nova/tests/unit/console/test_websocketproxy.py
cloud-zuiwanyuan/nova
0b59a2d9dc22e4fb172810019dba5ece09bb4526
[ "Apache-2.0" ]
1
2016-04-04T18:41:59.000Z
2016-04-04T18:41:59.000Z
nova/tests/unit/console/test_websocketproxy.py
cloud-zuiwanyuan/nova
0b59a2d9dc22e4fb172810019dba5ece09bb4526
[ "Apache-2.0" ]
2
2015-12-04T23:51:46.000Z
2016-06-07T20:01:59.000Z
# 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 agreed to in...
37.189526
79
0.606853
74e2e0b44929a18ffc6abb2eb33864325d32c870
493
py
Python
cride/circles/admin.py
frorozcol-UN/Cride_platzi
0c6160492bf4f7f439ab5a8b56464f0f1b2bd428
[ "MIT" ]
null
null
null
cride/circles/admin.py
frorozcol-UN/Cride_platzi
0c6160492bf4f7f439ab5a8b56464f0f1b2bd428
[ "MIT" ]
null
null
null
cride/circles/admin.py
frorozcol-UN/Cride_platzi
0c6160492bf4f7f439ab5a8b56464f0f1b2bd428
[ "MIT" ]
null
null
null
"""circles admin.""" #Django from django.contrib import admin # Models from cride.circles.models import Circle @admin.register(Circle) class CircleAdmin(admin.ModelAdmin): """Circle admin.""" list_display = ( "slug_name", "name", "is_public", "verified", "is_limited", ...
20.541667
41
0.559838
131421d8977608f66fe2f09c1b562bb65b7f1e99
7,987
py
Python
pypureclient/flasharray/FA_2_1/api/remote_pods_api.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
14
2018-12-07T18:30:27.000Z
2022-02-22T09:12:33.000Z
pypureclient/flasharray/FA_2_1/api/remote_pods_api.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
28
2019-09-17T21:03:52.000Z
2022-03-29T22:07:35.000Z
pypureclient/flasharray/FA_2_1/api/remote_pods_api.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
15
2020-06-11T15:50:08.000Z
2022-03-21T09:27:25.000Z
# coding: utf-8 """ FlashArray REST API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: 2.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import re # pyth...
49.91875
671
0.651684
90a83678bc25d19915b0fdc2e33072636decaab5
373
py
Python
MDX_codes/test.py
Lord-Doubi/MDX_Spin_Local
37ad0a16c95f83398db6a1830794cd1116e64f4a
[ "MIT" ]
null
null
null
MDX_codes/test.py
Lord-Doubi/MDX_Spin_Local
37ad0a16c95f83398db6a1830794cd1116e64f4a
[ "MIT" ]
null
null
null
MDX_codes/test.py
Lord-Doubi/MDX_Spin_Local
37ad0a16c95f83398db6a1830794cd1116e64f4a
[ "MIT" ]
null
null
null
import GPIOcontrol as gc import sys import time def main(): gc.gpiosetup(26,27,18) gc.lineargo(50,18) def close(): gc.led(0,27) if __name__ == "__main__": try: main() time.sleep(5) a = input('close?') if a == 'y': sys.exit else: gc.linea...
16.217391
29
0.522788
09893b35db014f4a05b9c126bd512f9e549c22ea
8,433
py
Python
transit-network-analysis-tools/TNAT_ToolValidator.py
ArcGIS/public-transit-tools
de2db2e959d060951f4a897791062082e5695350
[ "Apache-2.0" ]
null
null
null
transit-network-analysis-tools/TNAT_ToolValidator.py
ArcGIS/public-transit-tools
de2db2e959d060951f4a897791062082e5695350
[ "Apache-2.0" ]
null
null
null
transit-network-analysis-tools/TNAT_ToolValidator.py
ArcGIS/public-transit-tools
de2db2e959d060951f4a897791062082e5695350
[ "Apache-2.0" ]
null
null
null
################################################################################ ## Toolbox: Transit Network Analysis Tools ## Created by: Melinda Morang, Esri ## Last updated: 3 May 2022 ################################################################################ """Shared tool validation methods.""" #############...
47.376404
120
0.635954
8f78eacdb6e86af21acf17106429a138f3e8ddd4
22,625
py
Python
annotations/classification/multiclass_single_binomial_nt.py
marco-willi/crowdsourcing
d2a3cadabe47ee482ca66e9ef46124eabec145ec
[ "MIT" ]
null
null
null
annotations/classification/multiclass_single_binomial_nt.py
marco-willi/crowdsourcing
d2a3cadabe47ee482ca66e9ef46124eabec145ec
[ "MIT" ]
null
null
null
annotations/classification/multiclass_single_binomial_nt.py
marco-willi/crowdsourcing
d2a3cadabe47ee482ca66e9ef46124eabec145ec
[ "MIT" ]
null
null
null
""" MIT License Copyright (c) 2017 Grant Van Horn Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish...
39.075993
119
0.609856
d27694853b71071b3bd5f6304c04ddf6e9826666
2,987
py
Python
tensorflow/python/ops/losses/util.py
shaulr/tensorflow
27a98083a6c16f263d668271889863596efbeb84
[ "Apache-2.0" ]
2
2020-09-14T03:11:08.000Z
2022-02-21T19:06:44.000Z
tensorflow/python/ops/losses/util.py
amineferchichi/tensorflow
4ac9c09d5ca57a03b8daa5fb9e295947b1619854
[ "Apache-2.0" ]
null
null
null
tensorflow/python/ops/losses/util.py
amineferchichi/tensorflow
4ac9c09d5ca57a03b8daa5fb9e295947b1619854
[ "Apache-2.0" ]
1
2017-04-27T07:25:20.000Z
2017-04-27T07:25:20.000Z
# Copyright 2016 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...
28.721154
80
0.737529
0d134591606e9929880f1dfc65bf6498e3791269
297
py
Python
appdir/forms_test.py
rafasysadm/IBM_Containers_flask
f70371d962318c6c4be8e3b5306f3450c24404b7
[ "MIT" ]
1
2015-11-10T21:21:18.000Z
2015-11-10T21:21:18.000Z
appdir/forms_test.py
rafasysadm/IBM_Containers_flask
f70371d962318c6c4be8e3b5306f3450c24404b7
[ "MIT" ]
null
null
null
appdir/forms_test.py
rafasysadm/IBM_Containers_flask
f70371d962318c6c4be8e3b5306f3450c24404b7
[ "MIT" ]
null
null
null
from flask.ext.wtf import Form from wtforms import SubmitField, TextAreaField from wtforms.validators import Required mes = 'This Field is Required.' class CharCounter_form(Form): text = TextAreaField('Insert a text:', validators=[Required(message=mes)]) submit = SubmitField('Count!')
27
78
0.760943
128bfc7f5a27c2b53cade1077f69e6c287c45073
408
py
Python
CODECHEF/LCOLLIS.py
KoolAbhi03/HactoberFest21-1
5bfdd2675f3574aa1253c24720418366136619a8
[ "Unlicense" ]
null
null
null
CODECHEF/LCOLLIS.py
KoolAbhi03/HactoberFest21-1
5bfdd2675f3574aa1253c24720418366136619a8
[ "Unlicense" ]
null
null
null
CODECHEF/LCOLLIS.py
KoolAbhi03/HactoberFest21-1
5bfdd2675f3574aa1253c24720418366136619a8
[ "Unlicense" ]
null
null
null
tc = int(input()) while tc !=0: r,c = map(int, input().split()) arr= [] for i in range(r): temp = list(map(int, input())) arr.append(temp) count = 0 for j in range(c): temp = 0 for i in range(r): if arr[i][j]==1: temp += 1 if tem...
21.473684
39
0.426471