hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
06738e3b6ae780a5e66353fe6a33b1e815780b70
1,637
py
Python
src/finmag/tests/comparison/exchange/run_nmag.py
davidcortesortuno/finmag
9ac0268d2c0e45faf1284cee52a73525aa589e2b
[ "BSL-1.0" ]
10
2018-03-24T07:43:17.000Z
2022-03-26T10:42:27.000Z
src/finmag/tests/comparison/exchange/run_nmag.py
davidcortesortuno/finmag
9ac0268d2c0e45faf1284cee52a73525aa589e2b
[ "BSL-1.0" ]
21
2018-03-26T15:08:53.000Z
2021-07-10T16:11:14.000Z
src/finmag/tests/comparison/exchange/run_nmag.py
davidcortesortuno/finmag
9ac0268d2c0e45faf1284cee52a73525aa589e2b
[ "BSL-1.0" ]
7
2018-04-09T11:50:48.000Z
2021-06-10T09:23:25.000Z
# One dimensional magnetic system studied using nsim import math import numpy as np import nmag from nmag import SI import nmeshlib.unidmesher as unidmesher # Details about the layers and the mesh and the material length = 20.0 # in nanometers mesh_unit = SI(1e-9, "m") # mesh unit (1 nm) layers = [(0.0, l...
32.74
70
0.638974
eb382d5d42b75288b530a6af329d65bcddcd8c05
2,474
py
Python
webapp/apps/dynamic/tests/test_models.py
OpenSourcePolicyCenter/PolicyBrain
5edffcd5cf8bb6544afc1ed982636abe66e246e1
[ "MIT" ]
13
2017-11-07T15:54:42.000Z
2018-09-27T20:56:28.000Z
webapp/apps/dynamic/tests/test_models.py
OpenSourcePolicyCenter/webapp-public
5edffcd5cf8bb6544afc1ed982636abe66e246e1
[ "MIT" ]
547
2015-08-07T21:32:51.000Z
2017-09-14T21:25:43.000Z
webapp/apps/dynamic/tests/test_models.py
OpenSourcePolicyCenter/webapp-public
5edffcd5cf8bb6544afc1ed982636abe66e246e1
[ "MIT" ]
23
2015-08-07T20:55:39.000Z
2017-08-25T19:20:20.000Z
from django.test import TestCase import pytest from ...test_assets.utils import get_taxbrain_model from ...test_assets.test_models import (TaxBrainTableResults, TaxBrainFieldsTest) from ...dynamic.models import DynamicBehaviorOutputUrl from ...dynamic.forms import DynamicBehavi...
39.903226
72
0.650768
49d759a67bc4ce08e39f3212be0214a8ae2f7b7c
579
py
Python
python/iot-sdk-demo/iotSdkDemo/Group/DeleteDeviceGroup.py
aliyun/iot-api-demo
09439d7f616d9a3f04a958353fba3e986b026915
[ "Apache-2.0" ]
86
2017-12-07T13:28:59.000Z
2022-01-26T01:24:18.000Z
python/iot-sdk-demo/iotSdkDemo/Group/DeleteDeviceGroup.py
cxw91/iotx-api-demo
af5413b445b71045a140548919c7e3bb65e1c22d
[ "Apache-2.0" ]
11
2017-12-28T11:23:01.000Z
2022-03-29T23:03:27.000Z
python/iot-sdk-demo/iotSdkDemo/Group/DeleteDeviceGroup.py
cxw91/iotx-api-demo
af5413b445b71045a140548919c7e3bb65e1c22d
[ "Apache-2.0" ]
54
2017-12-13T06:46:58.000Z
2022-03-15T07:59:42.000Z
#!/usr/bin/env python #coding=utf-8 from aliyunsdkcore.client import AcsClient from aliyunsdkcore.acs_exception.exceptions import ClientException from aliyunsdkcore.acs_exception.exceptions import ServerException from aliyunsdkiot.request.v20180120.DeleteDeviceGroupRequest import DeleteDeviceGroupRequest client = Acs...
30.473684
92
0.830743
376f6cc6be5427c91845f4135fee9e3396fb8299
3,937
py
Python
alipay/aop/api/request/AlipayOpenBpaasPushSyncRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/request/AlipayOpenBpaasPushSyncRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/request/AlipayOpenBpaasPushSyncRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayOpenBpaasPushSyncModel import AlipayOpenBpaasPushSyncModel class AlipayOpenBpaasPushSyncRequest(object): def __init__(sel...
27.151724
148
0.641605
1c5ee49ece77388912561debafc85104e7234f39
47,498
py
Python
skulpt.py
mblockelet/skulpt
be2149c9a2c5fe2bc39d0d5f974fc7d8ef35acbc
[ "MIT" ]
null
null
null
skulpt.py
mblockelet/skulpt
be2149c9a2c5fe2bc39d0d5f974fc7d8ef35acbc
[ "MIT" ]
null
null
null
skulpt.py
mblockelet/skulpt
be2149c9a2c5fe2bc39d0d5f974fc7d8ef35acbc
[ "MIT" ]
null
null
null
#!/usr/bin/env python2.7 # # Note: python2.6 is specified because that is what the skulpt parser # used as a reference. This is only important when you are doing # things like regenerating tests and/or regenerating symtabs # If you do not have python 2.6 and you ARE NOT creating new test...
33.591231
658
0.575308
c56dd66e1514a41fb7435c4ecd3b253d7c2eab85
650
py
Python
setup.py
eteq/pykumo
35687627c22f52f9d694320704ed9cd41b96116b
[ "MIT" ]
null
null
null
setup.py
eteq/pykumo
35687627c22f52f9d694320704ed9cd41b96116b
[ "MIT" ]
null
null
null
setup.py
eteq/pykumo
35687627c22f52f9d694320704ed9cd41b96116b
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="pykumo", version="0.1.8", author="Doug Larrick", author_email="doug@parkercat.org", description="Small library for interfacing with Mitsubishi KumoCloud enabled devices", long_descript...
29.545455
90
0.678462
67cce8b1f7c75e2f5e5986db71f2dd5c98b4fd84
477
py
Python
admin_interface/migrations/0013_add_related_modal_close_button.py
theSinner/django-admin-interface
ed25f0fdde025cd64641db2e5c76d9cb052dbe29
[ "MIT" ]
1
2019-09-16T09:39:50.000Z
2019-09-16T09:39:50.000Z
admin_interface/migrations/0013_add_related_modal_close_button.py
theSinner/django-admin-interface
ed25f0fdde025cd64641db2e5c76d9cb052dbe29
[ "MIT" ]
9
2021-03-19T08:15:07.000Z
2022-03-12T00:13:19.000Z
admin_interface/migrations/0013_add_related_modal_close_button.py
theSinner/django-admin-interface
ed25f0fdde025cd64641db2e5c76d9cb052dbe29
[ "MIT" ]
4
2019-09-14T11:12:46.000Z
2019-10-21T21:40:47.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('admin_interface', '0012_update_verbose_names'), ] operations = [ migrations.AddField( model_name='theme', ...
22.714286
89
0.649895
fd2951852722dd3551a084f2ae0efc4a5ae5d90c
3,310
py
Python
azure-mgmt-network/azure/mgmt/network/v2018_11_01/models/vpn_gateway_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
azure-mgmt-network/azure/mgmt/network/v2018_11_01/models/vpn_gateway_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-network/azure/mgmt/network/v2018_11_01/models/vpn_gateway_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "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 ...
42.987013
203
0.638066
d6d6d018b65a2db875cb5672a570ac39af7f23ee
52,130
py
Python
run.py
dongdeji/riscv-dv
a4aefb011174731d17119ecd5c19130fb3d7c170
[ "Apache-2.0" ]
null
null
null
run.py
dongdeji/riscv-dv
a4aefb011174731d17119ecd5c19130fb3d7c170
[ "Apache-2.0" ]
null
null
null
run.py
dongdeji/riscv-dv
a4aefb011174731d17119ecd5c19130fb3d7c170
[ "Apache-2.0" ]
null
null
null
""" Copyright 2019 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, software di...
44.97843
97
0.540322
69921bb4f0d4478d68efa8a3cb8ef0f275294c27
2,028
py
Python
app/__init__.py
severovlink/flask-microblog
c9e99b51f599229ed3f43f802782a08fccd68d58
[ "MIT" ]
null
null
null
app/__init__.py
severovlink/flask-microblog
c9e99b51f599229ed3f43f802782a08fccd68d58
[ "MIT" ]
null
null
null
app/__init__.py
severovlink/flask-microblog
c9e99b51f599229ed3f43f802782a08fccd68d58
[ "MIT" ]
null
null
null
import logging from logging.handlers import SMTPHandler, RotatingFileHandler import os from flask import Flask, request from flask_sqlalchemy import SQLAlchemy from flask_migrate import Migrate from flask_login import LoginManager from flask_mail import Mail from flask_bootstrap import Bootstrap from flask_moment impor...
33.8
79
0.700197
c1b9c8ac640fea36dc44c1f7bd397aeab7dec43e
10,784
py
Python
venv/Lib/site-packages/tensorboard/compat/proto/cpp_shape_inference_pb2.py
masterrey/SmartMachines
e48aff314b1171a13a39c3a41230d900bf090a1f
[ "Apache-2.0" ]
1
2021-12-01T15:21:54.000Z
2021-12-01T15:21:54.000Z
venv/Lib/site-packages/tensorboard/compat/proto/cpp_shape_inference_pb2.py
masterrey/SmartMachines
e48aff314b1171a13a39c3a41230d900bf090a1f
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/tensorboard/compat/proto/cpp_shape_inference_pb2.py
masterrey/SmartMachines
e48aff314b1171a13a39c3a41230d900bf090a1f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: tensorboard/compat/proto/cpp_shape_inference.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message...
46.08547
1,181
0.798312
e6b2029fb0473d40926a115abb53a41f77f0b6fd
205,617
py
Python
toontown/toon/Toon.py
philicheese2003/ToontownProjectAltisServer
cfa225d1bdddacdbd29b621382347fce17e1dc66
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/toon/Toon.py
philicheese2003/ToontownProjectAltisServer
cfa225d1bdddacdbd29b621382347fce17e1dc66
[ "Apache-2.0" ]
null
null
null
toontown/toon/Toon.py
philicheese2003/ToontownProjectAltisServer
cfa225d1bdddacdbd29b621382347fce17e1dc66
[ "Apache-2.0" ]
1
2020-03-11T17:38:45.000Z
2020-03-11T17:38:45.000Z
import random import types from toontown.toon import AccessoryGlobals from toontown.toon import Motion from toontown.toon import TTEmote from toontown.toon import ToonDNA from direct.actor import Actor from direct.directnotify import DirectNotifyGlobal from direct.interval.IntervalGlobal import * from toontown.toonbase...
39.39023
459
0.589698
1c84e3ed2665a79dd697ea1a88809d1d6a9ec654
822
py
Python
stix/test/common/tools_test.py
saegel/python-stix
a777aafa2573d5e66233e29b1909ce178f643891
[ "BSD-3-Clause" ]
194
2015-02-20T17:52:06.000Z
2022-03-06T07:29:08.000Z
stix/test/common/tools_test.py
saegel/python-stix
a777aafa2573d5e66233e29b1909ce178f643891
[ "BSD-3-Clause" ]
136
2015-01-12T05:33:35.000Z
2022-03-12T07:41:42.000Z
stix/test/common/tools_test.py
saegel/python-stix
a777aafa2573d5e66233e29b1909ce178f643891
[ "BSD-3-Clause" ]
82
2015-01-05T14:46:16.000Z
2022-03-30T06:00:45.000Z
# Copyright (c) 2017, The MITRE Corporation. All rights reserved. # See LICENSE.txt for complete terms. import unittest from stix.test import EntityTestCase from stix.test.common import structured_text_test from stix import common class ToolInformationTests(EntityTestCase, unittest.TestCase): klass = common.To...
25.6875
84
0.718978
53098997038fb698ca6f78c1831e95b46b1be614
33,016
py
Python
synapse/api/auth.py
btl-messenger/synapse
ad1c68ad940b2313471723bf64c1948825bd196b
[ "Apache-2.0" ]
null
null
null
synapse/api/auth.py
btl-messenger/synapse
ad1c68ad940b2313471723bf64c1948825bd196b
[ "Apache-2.0" ]
null
null
null
synapse/api/auth.py
btl-messenger/synapse
ad1c68ad940b2313471723bf64c1948825bd196b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2014 - 2016 OpenMarket 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 applic...
39.164887
89
0.591016
4d8a402ef133a0daf3a1a311129c23fb528c705a
11,227
py
Python
omr.py
kiranbalamalynur/omr
513dd2caa0686374278e32227abac8aebd3088bd
[ "MIT" ]
177
2016-11-12T21:34:05.000Z
2022-03-26T16:16:44.000Z
omr.py
kiranbalamalynur/omr
513dd2caa0686374278e32227abac8aebd3088bd
[ "MIT" ]
19
2017-01-11T05:11:16.000Z
2022-01-09T09:47:51.000Z
omr.py
kiranbalamalynur/omr
513dd2caa0686374278e32227abac8aebd3088bd
[ "MIT" ]
86
2017-01-22T02:57:38.000Z
2022-03-30T09:59:56.000Z
import argparse import cv2 import numpy as np # When the four corners are identified, we will do a four-point # perspective transform such that the outmost points of each # corner map to a TRANSF_SIZE x TRANSF_SIZE square image. TRANSF_SIZE = 512 # # Answer sheet properties. # N_QUESTIONS = 10 ANSWER_SHEET_WIDTH = 7...
33.020588
86
0.694041
6a51cdd09286e122a17a035a91ce03a0ad093450
1,521
py
Python
nnutil2/cli/cli.py
aroig/nnutil2
1fc77df351d4eee1166688e25a94287a5cfa27c4
[ "BSD-3-Clause" ]
null
null
null
nnutil2/cli/cli.py
aroig/nnutil2
1fc77df351d4eee1166688e25a94287a5cfa27c4
[ "BSD-3-Clause" ]
3
2020-11-13T18:33:29.000Z
2021-08-25T15:55:57.000Z
nnutil2/cli/cli.py
aroig/nnutil2
1fc77df351d4eee1166688e25a94287a5cfa27c4
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # nnutil2 - Tensorflow utilities for training neural networks # Copyright (c) 2019, Abdó Roig-Maranges <abdo.roig@gmail.com> # # This file is part of 'nnutil2'. # # This file may be modified and distributed under the terms of the 3-clause BSD # license. See the LICENSE fi...
27.654545
81
0.642998
7e21861b4d003798a354b8961e6053077d19b443
10,077
py
Python
methods_add_cards.py
wsp-sag/project_card_registry_template
acdf975217cfe6e33e391671cf7ea46a3fe110e7
[ "CC0-1.0" ]
null
null
null
methods_add_cards.py
wsp-sag/project_card_registry_template
acdf975217cfe6e33e391671cf7ea46a3fe110e7
[ "CC0-1.0" ]
12
2021-02-10T21:48:17.000Z
2021-10-06T18:18:00.000Z
methods_add_cards.py
BayAreaMetro/project_card_registry
049502751a9c3d9109d65ac18015fd648facfaa2
[ "CC0-1.0" ]
null
null
null
from os import write from numpy import True_ import pandas as pd from typing import Tuple from network_wrangler import ProjectCard def add_cards_to_registry( card_file_list: list, input_df: pd.DataFrame, config: dict, write_to_disk: bool ) -> pd.DataFrame: """ Returns an updated registry dataframe. A...
35.607774
183
0.577255
52f1e449af7bce588c3be81d816512bcdca00bba
329
py
Python
Computer science/Programming languages/Python/Object-oriented programming/Classes/Class instances/Shopping/Shopping.py
chanchanchong/PYTHON-TRACK-IN-HYPERSKILL
462fe08ff4a2b183fd45a0235ab1ec7a788bd54c
[ "MIT" ]
null
null
null
Computer science/Programming languages/Python/Object-oriented programming/Classes/Class instances/Shopping/Shopping.py
chanchanchong/PYTHON-TRACK-IN-HYPERSKILL
462fe08ff4a2b183fd45a0235ab1ec7a788bd54c
[ "MIT" ]
null
null
null
Computer science/Programming languages/Python/Object-oriented programming/Classes/Class instances/Shopping/Shopping.py
chanchanchong/PYTHON-TRACK-IN-HYPERSKILL
462fe08ff4a2b183fd45a0235ab1ec7a788bd54c
[ "MIT" ]
null
null
null
# Find the mistakes in the __init__ method of the class Store # and fix them so that the attributes of the object shop would # be printed out correctly. class Store: def __init__(self, name, category): self.name = name self.category = category shop = Store("GAP", "clothes") print(shop.name, shop....
29.909091
63
0.705167
0d241ae52bb2cf40a2544e739f290bd3f96bcfc6
2,481
py
Python
conf.py
DevDooly/answer-doc
739ac0ea5314e1da35ddce0651e5ff9ec09b3c44
[ "BSD-3-Clause" ]
null
null
null
conf.py
DevDooly/answer-doc
739ac0ea5314e1da35ddce0651e5ff9ec09b3c44
[ "BSD-3-Clause" ]
null
null
null
conf.py
DevDooly/answer-doc
739ac0ea5314e1da35ddce0651e5ff9ec09b3c44
[ "BSD-3-Clause" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
34.943662
99
0.68158
15ba5396a1f9f439504891d23acdf5fd2e8c2424
5,792
py
Python
tests/project/capacity/capacity_types/test_gen_ret_lin.py
anamileva/gridpath
e55eacb88ca5e6c034a90b18819e17cbd6f43854
[ "Apache-2.0" ]
44
2020-10-27T19:05:44.000Z
2022-03-22T17:17:37.000Z
tests/project/capacity/capacity_types/test_gen_ret_lin.py
anamileva/gridpath
e55eacb88ca5e6c034a90b18819e17cbd6f43854
[ "Apache-2.0" ]
67
2020-10-08T22:36:53.000Z
2022-03-22T22:58:33.000Z
tests/project/capacity/capacity_types/test_gen_ret_lin.py
anamileva/gridpath
e55eacb88ca5e6c034a90b18819e17cbd6f43854
[ "Apache-2.0" ]
21
2020-10-08T23:23:48.000Z
2022-03-28T01:21:21.000Z
# Copyright 2016-2020 Blue Marble Analytics 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...
33.479769
79
0.602728
6933e8a703629700cbfa8514019f63c75d80dd93
1,065
py
Python
setup.py
ihgazni2/ematmap
e5aca1db403b2765f8d1ceefc29b721f14f72339
[ "MIT" ]
null
null
null
setup.py
ihgazni2/ematmap
e5aca1db403b2765f8d1ceefc29b721f14f72339
[ "MIT" ]
null
null
null
setup.py
ihgazni2/ematmap
e5aca1db403b2765f8d1ceefc29b721f14f72339
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages requirements = [] setup( name="ematmap", version = "0.6", #@version@# description="mat map", author="ihgazni2", url="https://github.com/ihgazni2/ematmap", author_email='', license="MIT", long_description = "refer to .md file...
22.1875
85
0.578404
c337710b1d9d63fc4b124962d258c93dd7a3be82
7,364
py
Python
lspeas/phantom/gausspatterns.py
almarklein/stentseg
48255fffdc2394d1dc4ce2208c9a91e1d4c35a46
[ "BSD-3-Clause" ]
1
2020-08-28T16:34:10.000Z
2020-08-28T16:34:10.000Z
lspeas/phantom/gausspatterns.py
almarklein/stentseg
48255fffdc2394d1dc4ce2208c9a91e1d4c35a46
[ "BSD-3-Clause" ]
null
null
null
lspeas/phantom/gausspatterns.py
almarklein/stentseg
48255fffdc2394d1dc4ce2208c9a91e1d4c35a46
[ "BSD-3-Clause" ]
1
2021-04-25T06:59:36.000Z
2021-04-25T06:59:36.000Z
""" Design motion patterns for CT experiments QRM robot """ from stentseg.utils import aortamotionpattern from stentseg.utils.aortamotionpattern import get_motion_pattern, plot_pattern def correctoffset(aa0): """set t=0 to zero and scale signal """ offset = aa0[0] A = max(aa0) A_no_correction = ...
28.10687
159
0.676942
951eb1c457daa4308857ec34422b1fea1e2d4322
816
py
Python
videos/forms.py
naritotakizawa/django-docker-sample1
9154fd5795378f6439f30027bcdc8763119dfb10
[ "MIT" ]
null
null
null
videos/forms.py
naritotakizawa/django-docker-sample1
9154fd5795378f6439f30027bcdc8763119dfb10
[ "MIT" ]
null
null
null
videos/forms.py
naritotakizawa/django-docker-sample1
9154fd5795378f6439f30027bcdc8763119dfb10
[ "MIT" ]
null
null
null
from django import forms from .models import Video class VideoCreateForm(forms.ModelForm): class Meta: model = Video fields = ('title', 'description', 'thumbnail', 'upload') # 少しツウな書き方 widgets = { 'title': forms.TextInput(attrs={ # <input type="text" class="form-contr...
32.64
105
0.52451
ae88598d344a0161aa2f9bee3d323cdf0f8b5c3e
2,456
py
Python
examples/tutorial.py
Descanonge/tomate
6b24dc4a03230f45ad92670919a225c7e93e8118
[ "MIT" ]
null
null
null
examples/tutorial.py
Descanonge/tomate
6b24dc4a03230f45ad92670919a225c7e93e8118
[ "MIT" ]
null
null
null
examples/tutorial.py
Descanonge/tomate
6b24dc4a03230f45ad92670919a225c7e93e8118
[ "MIT" ]
null
null
null
"""Example from tutorial.""" from tomate import Coord, Time, Constructor from tomate.filegroup import FilegroupNetCDF import tomate.db_types as dt import tomate.scan_library as scanlib # Coordinates lat = Coord('lat', None, fullname='Latitude') lon = Coord('lon', None, fullname='Longitude') time = Time('time', None...
27.288889
78
0.668974
9c9b802e5603dd5a75498c61f5132d28ee9899e3
1,066
py
Python
ns3/ns-3.26/src/tap-bridge/bindings/callbacks_list.py
Aedemon/clusim
7f09cdb79b5f02cf0fed1bd44842981941f29f32
[ "Apache-2.0" ]
7
2017-08-11T06:06:47.000Z
2022-02-27T07:34:33.000Z
ns3/ns-3.26/src/tap-bridge/bindings/callbacks_list.py
Aedemon/clusim
7f09cdb79b5f02cf0fed1bd44842981941f29f32
[ "Apache-2.0" ]
3
2017-08-11T03:04:59.000Z
2017-09-11T14:01:14.000Z
ns3/ns-3.26/src/tap-bridge/bindings/callbacks_list.py
Aedemon/clusim
7f09cdb79b5f02cf0fed1bd44842981941f29f32
[ "Apache-2.0" ]
3
2017-08-08T13:36:30.000Z
2018-07-04T09:49:41.000Z
callback_classes = [ ['void', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'], ['bool', 'ns3::Ptr<ns3::NetDevice>', 'ns3::Ptr<ns3::Packet const>', 'unsigned short', 'ns3::Address const&', 'ns3::Address const&', 'ns3::NetDevice::Packet...
118.444444
208
0.594747
3ce871c3b31ee39b2b21b9fdef45fb61f90d8bc0
1,557
py
Python
examples/BankApp/picoql.py
mfragkoulis/PiCO_QL
165afa114b2ffd3162aae039ffb62e072a62988e
[ "Apache-2.0" ]
11
2015-03-27T21:56:52.000Z
2021-07-26T11:46:27.000Z
examples/BankApp/picoql.py
mfragkoulis/PiCO_QL
165afa114b2ffd3162aae039ffb62e072a62988e
[ "Apache-2.0" ]
12
2016-09-18T23:27:31.000Z
2018-07-15T19:04:39.000Z
examples/BankApp/picoql.py
mfragkoulis/PiCO_QL
165afa114b2ffd3162aae039ffb62e072a62988e
[ "Apache-2.0" ]
7
2015-08-05T16:20:11.000Z
2022-02-21T22:32:23.000Z
# -*- coding: utf-8 -*- from flask import Flask, request, session, g, redirect, url_for, \ abort, render_template, render_template_string, flash, jsonify from urlparse import urlparse import re import json from httplib import HTTPConnection, HTTPSConnection from urlparse import urlparse, parse_qsl, urljoin from u...
34.6
82
0.694284
8cadde001f0e9babc44b34ff34369460ccbf73c0
13,256
py
Python
tensorflow_probability/python/distributions/half_student_t.py
brianwa84/probability
6f8e78d859ac41170be5147c8c7bde54cc5aa83e
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/distributions/half_student_t.py
brianwa84/probability
6f8e78d859ac41170be5147c8c7bde54cc5aa83e
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/distributions/half_student_t.py
brianwa84/probability
6f8e78d859ac41170be5147c8c7bde54cc5aa83e
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The TensorFlow Probability 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 o...
37.235955
81
0.667471
9b63a554232a15d5eb663e9acb541ee6c0da66b7
1,022
py
Python
main/schema/components/bookmark.py
kristianmk/tator
0eb75ee9333316b06f773de2b75e8e797a98ffdb
[ "MIT" ]
50
2019-09-18T14:32:18.000Z
2022-03-31T16:26:07.000Z
main/schema/components/bookmark.py
kristianmk/tator
0eb75ee9333316b06f773de2b75e8e797a98ffdb
[ "MIT" ]
566
2019-09-18T16:33:40.000Z
2022-03-31T20:01:38.000Z
main/schema/components/bookmark.py
kristianmk/tator
0eb75ee9333316b06f773de2b75e8e797a98ffdb
[ "MIT" ]
19
2019-09-21T20:08:12.000Z
2022-03-17T14:53:11.000Z
bookmark_properties = { 'name': { 'description': 'Name of the bookmark.', 'type': 'string', }, 'uri': { 'description': 'URI to the saved link.', 'type': 'string', }, } bookmark_spec = { 'type': 'object', 'properties': { **bookmark_properties, }, } bo...
21.291667
68
0.483366
80488fc18faacd3dd8aa3365e96ed9d0a229fb7a
1,122
py
Python
nltk-examples.py
Benned-H/LING-250
62580def265e16a6a5d689a1e8a2e7a4e5cafdbe
[ "MIT" ]
null
null
null
nltk-examples.py
Benned-H/LING-250
62580def265e16a6a5d689a1e8a2e7a4e5cafdbe
[ "MIT" ]
null
null
null
nltk-examples.py
Benned-H/LING-250
62580def265e16a6a5d689a1e8a2e7a4e5cafdbe
[ "MIT" ]
null
null
null
# Class 6 Notes - 2/3/2022 # To set up my machine, I needed to install Git (using XCode) as well as Anaconda and then nltk # In order to install data and models: """ import nltk print('Downloading NLTK...') nltk.download() print('Done downloading...') """ # Let's use the Genesis corpus, with various translations of ...
32.057143
95
0.738859
0d4d6a411269c886c824d223beac7d15051b40b5
4,386
py
Python
matrx/cases/vis_test.py
matrx-software/matrx
5b36ef1018e85172dc88cd7467e3087ef94c58ba
[ "MIT" ]
6
2020-03-02T10:42:34.000Z
2021-05-16T12:21:25.000Z
matrx/cases/vis_test.py
matrx-software/matrx
5b36ef1018e85172dc88cd7467e3087ef94c58ba
[ "MIT" ]
262
2020-02-27T13:37:40.000Z
2022-03-29T11:44:57.000Z
matrx/cases/vis_test.py
matrx-software/matrx
5b36ef1018e85172dc88cd7467e3087ef94c58ba
[ "MIT" ]
3
2020-02-27T12:59:22.000Z
2021-12-10T13:53:58.000Z
import os from matrx.agents import PatrollingAgentBrain, HumanAgentBrain from matrx.logger.log_messages import MessageLogger from matrx.world_builder import WorldBuilder from matrx.actions import * from datetime import datetime def create_builder(): tick_dur = 0.1 factory = WorldBuilder(random_seed=1, shape...
46.168421
162
0.657775
aeac6420c3f4404040bc00280b1436699ab4a9bb
1,556
py
Python
dependencies/PyMesh/python/pymesh/meshutils/tests/test_quad_to_tri.py
aprieels/3D-watermarking-spectral-decomposition
dcab78857d0bb201563014e58900917545ed4673
[ "MIT" ]
5
2018-06-04T19:52:02.000Z
2022-01-22T09:04:00.000Z
dependencies/PyMesh/python/pymesh/meshutils/tests/test_quad_to_tri.py
aprieels/3D-watermarking-spectral-decomposition
dcab78857d0bb201563014e58900917545ed4673
[ "MIT" ]
null
null
null
dependencies/PyMesh/python/pymesh/meshutils/tests/test_quad_to_tri.py
aprieels/3D-watermarking-spectral-decomposition
dcab78857d0bb201563014e58900917545ed4673
[ "MIT" ]
null
null
null
from pymesh.meshutils import quad_to_tri from pymesh.TestCase import TestCase import numpy as np class QuadToTriTest(TestCase): def test_single_quad(self): vertices = np.array([ [0, 0, 0], [1, 0, 0], [1, 1, 0], [0, 1, 0], ], dtype=float); ...
33.106383
66
0.57455
dce4a5b7fbdcb29fb75fc5ef046d0131ec774c6d
6,386
py
Python
py2/testdir_single_jvm/test_DL_basic.py
suhassatish/h2o-dev
cb82974b93193b9fe6df4db5caa44016f83880c4
[ "Apache-2.0" ]
null
null
null
py2/testdir_single_jvm/test_DL_basic.py
suhassatish/h2o-dev
cb82974b93193b9fe6df4db5caa44016f83880c4
[ "Apache-2.0" ]
null
null
null
py2/testdir_single_jvm/test_DL_basic.py
suhassatish/h2o-dev
cb82974b93193b9fe6df4db5caa44016f83880c4
[ "Apache-2.0" ]
null
null
null
import unittest, time, sys, random sys.path.extend(['.','..','../..','py']) import h2o2 as h2o import h2o_cmd, h2o_import as h2i, h2o_jobs from h2o_test import verboseprint, dump_json, OutputObj class Basic(unittest.TestCase): def tearDown(self): h2o.check_sandbox_for_errors() @classmethod def se...
43.739726
119
0.561697
503627b2cd54d3b5132ddb5d7bb4ee0175e02218
1,407
py
Python
ppgan/models/discriminators/__init__.py
miemie2013/ppgan
48008d85ec6c5fa2e1469acf8507b2614fa550cc
[ "Apache-2.0" ]
null
null
null
ppgan/models/discriminators/__init__.py
miemie2013/ppgan
48008d85ec6c5fa2e1469acf8507b2614fa550cc
[ "Apache-2.0" ]
null
null
null
ppgan/models/discriminators/__init__.py
miemie2013/ppgan
48008d85ec6c5fa2e1469acf8507b2614fa550cc
[ "Apache-2.0" ]
1
2022-01-19T03:01:13.000Z
2022-01-19T03:01:13.000Z
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve. # # 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 appl...
48.517241
79
0.84435
19cb10dd318f69e020616a8481f58688e2fcd460
17,797
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_07_01/operations/_express_route_circuit_peerings_operations.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
1
2021-06-02T08:01:35.000Z
2021-06-02T08:01:35.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_07_01/operations/_express_route_circuit_peerings_operations.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
226
2019-07-24T07:57:21.000Z
2019-10-15T01:07:24.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_07_01/operations/_express_route_circuit_peerings_operations.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
1
2021-06-03T19:31:10.000Z
2021-06-03T19:31:10.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
47.841398
195
0.676519
f2c2913a0b8fd5f14ebc4866a7e29cfaba28cacf
28,587
py
Python
build/env/lib/python2.6/site-packages/pylint-0.28.0-py2.6.egg/pylint/checkers/classes.py
lockhart39/HueQualityAndIngestionApp
c75e55a43a8bdeb7aa0f5bf2101ec72b01dcac1c
[ "Apache-2.0" ]
1
2018-05-07T05:40:36.000Z
2018-05-07T05:40:36.000Z
build/env/lib/python2.6/site-packages/pylint-0.28.0-py2.6.egg/pylint/checkers/classes.py
lockhart39/HueQualityAndIngestionApp
c75e55a43a8bdeb7aa0f5bf2101ec72b01dcac1c
[ "Apache-2.0" ]
null
null
null
build/env/lib/python2.6/site-packages/pylint-0.28.0-py2.6.egg/pylint/checkers/classes.py
lockhart39/HueQualityAndIngestionApp
c75e55a43a8bdeb7aa0f5bf2101ec72b01dcac1c
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2003-2012 LOGILAB S.A. (Paris, FRANCE). # http://www.logilab.fr/ -- mailto:contact@logilab.fr # # This program 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 2 of the License, o...
43.117647
127
0.574632
dae18a67f3b74c9c5986040de4df4edfe69a1e51
8,914
py
Python
mlblocks/mlblock.py
pvk-developer/MLBlocks
e804508faf55136040cb749a8559cc8383d885e6
[ "MIT" ]
null
null
null
mlblocks/mlblock.py
pvk-developer/MLBlocks
e804508faf55136040cb749a8559cc8383d885e6
[ "MIT" ]
null
null
null
mlblocks/mlblock.py
pvk-developer/MLBlocks
e804508faf55136040cb749a8559cc8383d885e6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Package where the MLBlock class is defined.""" import importlib from mlblocks.primitives import load_primitive def import_object(object_name): """Import an object from its Fully Qualified Name.""" package, name = object_name.rsplit('.', 1) return getattr(importlib.import_modu...
36.532787
86
0.610052
9ca39ac51ce5af59db14ab048a48ec4b2c494814
229
py
Python
gems/__init__.py
bastion-gaming/GG-Server
6b0e6054581e5e50223f45977d1ee52dcb90899b
[ "MIT" ]
2
2020-02-06T10:49:28.000Z
2020-04-24T09:31:23.000Z
gems/__init__.py
bastion-gaming/GG-Server
6b0e6054581e5e50223f45977d1ee52dcb90899b
[ "MIT" ]
null
null
null
gems/__init__.py
bastion-gaming/GG-Server
6b0e6054581e5e50223f45977d1ee52dcb90899b
[ "MIT" ]
null
null
null
from os import listdir list_GG_module = list() for file in listdir("gems"): if "gems" in file and ".py" in file: name_file = file.replace(".py", "") list_GG_module.append(name_file) __all__ = list_GG_module
22.9
43
0.663755
755cc79eb03b3983528e5116abb0c10fe5effac6
1,395
py
Python
servicenow/icon_servicenow/actions/create_incident/action.py
isabella232/insightconnect-plugins
13dafc400dbc21eec84611ec88da09b7535049bc
[ "MIT" ]
null
null
null
servicenow/icon_servicenow/actions/create_incident/action.py
isabella232/insightconnect-plugins
13dafc400dbc21eec84611ec88da09b7535049bc
[ "MIT" ]
1
2021-02-23T23:57:37.000Z
2021-02-23T23:57:37.000Z
servicenow/icon_servicenow/actions/create_incident/action.py
isabella232/insightconnect-plugins
13dafc400dbc21eec84611ec88da09b7535049bc
[ "MIT" ]
null
null
null
import insightconnect_plugin_runtime from .schema import CreateIncidentInput, CreateIncidentOutput, Input, Output, Component # Custom imports below from insightconnect_plugin_runtime.exceptions import PluginException class CreateIncident(insightconnect_plugin_runtime.Action): def __init__(self): super(se...
34.875
98
0.624373
e26201d10c69db837362f68ef3c8fb024b322da6
10,437
py
Python
venv/lib/python2.7/site-packages/ansible/modules/network/panos/_panos_nat_policy.py
haind27/test01
7f86c0a33eb0874a6c3f5ff9a923fd0cfc8ef852
[ "MIT" ]
37
2017-08-15T15:02:43.000Z
2021-07-23T03:44:31.000Z
venv/lib/python2.7/site-packages/ansible/modules/network/panos/_panos_nat_policy.py
haind27/test01
7f86c0a33eb0874a6c3f5ff9a923fd0cfc8ef852
[ "MIT" ]
12
2018-01-10T05:25:25.000Z
2021-11-28T06:55:48.000Z
venv/lib/python2.7/site-packages/ansible/modules/network/panos/_panos_nat_policy.py
haind27/test01
7f86c0a33eb0874a6c3f5ff9a923fd0cfc8ef852
[ "MIT" ]
49
2017-08-15T09:52:13.000Z
2022-03-21T17:11:54.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # # Ansible module to manage PaloAltoNetworks Firewall # (c) 2016, techbizdev <techbizdev@paloaltonetworks.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as publish...
30.878698
144
0.61464
161306392ada0c89f0fccd7b231ff96d717c3f77
2,987
py
Python
cases/models.py
mariuslihet/CRM
1323dc358a016d027717466f946ffd3af74897f2
[ "MIT" ]
2
2018-07-25T13:11:19.000Z
2019-04-19T03:45:40.000Z
cases/models.py
mariuslihet/CRM
1323dc358a016d027717466f946ffd3af74897f2
[ "MIT" ]
2
2020-06-05T19:05:09.000Z
2021-06-10T21:08:49.000Z
cases/models.py
mariuslihet/CRM
1323dc358a016d027717466f946ffd3af74897f2
[ "MIT" ]
1
2019-05-07T04:30:36.000Z
2019-05-07T04:30:36.000Z
from django.db import models from django.utils.translation import pgettext_lazy from django.utils.translation import ugettext_lazy as _ from django.contrib.contenttypes.models import ContentType from accounts.models import Account from contacts.models import Contact from common.models import User, Team from common.uti...
45.953846
118
0.731838
b2e3cc286e4c856e37b9a96d1e4c83993bb7c0ce
300
py
Python
Pyramid Patterns/pyramidpattern29.py
vaidehisinha1/Python-PatternHouse
49f71bcc5319a838592e69b0e49ef1edba32bf7c
[ "MIT" ]
8
2021-03-20T11:26:35.000Z
2022-01-05T02:39:15.000Z
Pyramid Patterns/pyramidpattern29.py
vaidehisinha1/Python-PatternHouse
49f71bcc5319a838592e69b0e49ef1edba32bf7c
[ "MIT" ]
851
2021-04-02T09:08:15.000Z
2022-01-12T11:26:57.000Z
Pyramid Patterns/pyramidpattern29.py
vaidehisinha1/Python-PatternHouse
49f71bcc5319a838592e69b0e49ef1edba32bf7c
[ "MIT" ]
15
2021-04-13T06:10:17.000Z
2022-01-08T05:07:21.000Z
n = int(input("Enter the number of rows: ")) spaces = n + (n - 1) counter = 1 for i in range(1, n + 1): b = i for k in range(0, spaces): print(" ", end="") for j in range(0, counter): print(chr(i+64), end=" ") counter = counter + 2 spaces = spaces - 2 print()
23.076923
44
0.513333
a538e78b5a014d9a1b617076b1b80913c4326be4
1,142
py
Python
src/python/pants/jvm/resolve/coursier_test_util.py
mpcusack-color/pants
0ce449f9181c690dbf60b2bc51b0e97f285eb9ae
[ "Apache-2.0" ]
null
null
null
src/python/pants/jvm/resolve/coursier_test_util.py
mpcusack-color/pants
0ce449f9181c690dbf60b2bc51b0e97f285eb9ae
[ "Apache-2.0" ]
null
null
null
src/python/pants/jvm/resolve/coursier_test_util.py
mpcusack-color/pants
0ce449f9181c690dbf60b2bc51b0e97f285eb9ae
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from dataclasses import dataclass from typing import Iterable from pants.jvm.resolve.common import ArtifactRequirement from pants.jvm.resolve.coursier_fetch import CoursierLockfileEntry, ...
35.6875
100
0.742557
c76533cc3e5835458246e7b5ad908314eb192776
4,446
py
Python
setup.py
TheMatthew/knossos
70463d8a4ae1d6cd6f3d0fd9fba4037d94d26bd2
[ "Apache-2.0" ]
5
2021-05-31T13:10:35.000Z
2022-01-13T01:16:08.000Z
setup.py
TheMatthew/knossos
70463d8a4ae1d6cd6f3d0fd9fba4037d94d26bd2
[ "Apache-2.0" ]
4
2021-05-08T13:26:41.000Z
2022-01-12T08:51:39.000Z
setup.py
TheMatthew/knossos
70463d8a4ae1d6cd6f3d0fd9fba4037d94d26bd2
[ "Apache-2.0" ]
1
2021-10-11T17:36:31.000Z
2021-10-11T17:36:31.000Z
#!/usr/bin/python ## Copyright 2015 Knossos authors, see NOTICE file ## ## 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 requ...
33.938931
123
0.609987
199c4cf5b057fae166a1e55f3dd178d9c5a3c4e0
1,755
py
Python
isicle/scripts/parse_mobcal.py
pnnl/isicle
226712a2839f17202ad948997e67ec78f92cc557
[ "BSD-3-Clause" ]
32
2018-08-08T13:15:58.000Z
2022-02-07T03:18:00.000Z
isicle/scripts/parse_mobcal.py
pnnl/isicle
226712a2839f17202ad948997e67ec78f92cc557
[ "BSD-3-Clause" ]
2
2019-07-01T18:07:56.000Z
2020-02-07T20:05:23.000Z
isicle/scripts/parse_mobcal.py
pnnl/isicle
226712a2839f17202ad948997e67ec78f92cc557
[ "BSD-3-Clause" ]
18
2018-11-22T11:35:53.000Z
2022-02-15T07:05:35.000Z
import argparse import pandas as pd from isicle.utils import tail from isicle import __version__ def parse_mobcal(f): done = False lines = tail(f, lines=10) for line in lines: if "average (second order) TM mobility" in line: m_mn = float(line.split('=')[-1]) elif "average TM ...
31.339286
112
0.617094
8be28d13c83c57ee8b60fba1377ad77c8de30202
1,570
py
Python
AgentCode/Lib/aocutils/mesh.py
ManuelHoss/Multiagent-selfconstruction
d3f8af9a55ec9c279d693d311dd58f2caa8b71c9
[ "MIT" ]
2
2020-01-08T11:18:59.000Z
2021-01-02T03:30:20.000Z
AgentCode/Lib/aocutils/mesh.py
ManuelHoss/Multiagent-selfconstruction
d3f8af9a55ec9c279d693d311dd58f2caa8b71c9
[ "MIT" ]
null
null
null
AgentCode/Lib/aocutils/mesh.py
ManuelHoss/Multiagent-selfconstruction
d3f8af9a55ec9c279d693d311dd58f2caa8b71c9
[ "MIT" ]
null
null
null
#!/usr/bin/python # coding: utf-8 r"""mesh.py Summary ------- Meshing logic for shapes, based on shape dimensions Notes ----- BRepMesh_IncrementalMesh (const TopoDS_Shape &theShape, const Standard_Real theLinDeflection, const Standard_Boolean isRelative=Standard_False, const Standard_Real ...
29.622642
117
0.694904
f9c6d6976652126d22c4513740599ec4723049cc
1,425
py
Python
setup.py
mgk/urwid_timed_progress
b7292e78a58f35f285736988c48e815e71fa2060
[ "MIT" ]
9
2016-02-06T11:21:22.000Z
2020-04-14T07:19:30.000Z
setup.py
mgk/urwid_timed_progress
b7292e78a58f35f285736988c48e815e71fa2060
[ "MIT" ]
2
2016-02-07T15:55:29.000Z
2016-02-07T20:55:34.000Z
setup.py
mgk/urwid_timed_progress
b7292e78a58f35f285736988c48e815e71fa2060
[ "MIT" ]
2
2019-02-22T23:06:55.000Z
2019-03-06T20:58:59.000Z
from setuptools import setup, find_packages setup( name='urwid_timed_progress', version='1.1.1', description='Urwid Timed Progress Bar', long_description=open("README.rst").read(), url='https://github.com/mgk/urwid_timed_progress/blob/master/README.rst', author='Michael Keirnan', author_ema...
37.5
77
0.62386
c3e92a71fb4bd4f7eca0598d5cfee106d9ba668b
7,187
py
Python
parsing_utils.py
woctezuma/steam-market
0ce25a0493b966ce30e134bd9b68cc1fd86ad59a
[ "MIT" ]
46
2019-04-25T14:18:15.000Z
2022-03-23T15:40:22.000Z
parsing_utils.py
woctezuma/steam-market
0ce25a0493b966ce30e134bd9b68cc1fd86ad59a
[ "MIT" ]
20
2019-04-25T14:33:54.000Z
2021-12-31T13:52:06.000Z
parsing_utils.py
woctezuma/steam-market
0ce25a0493b966ce30e134bd9b68cc1fd86ad59a
[ "MIT" ]
7
2020-10-30T18:35:11.000Z
2022-03-28T16:10:26.000Z
# Objective: parse all the options to craft 'Booster Packs', available because I own the corresponding games. # # Caveat: this relies: # - either on a previous manual copy-paste of HTML code to data/booster_game_creator.txt # - or on a previous manual copy-paste of javascript code to data/booster_game_creator_from_java...
38.848649
119
0.673021
a599097c2073e71de69e764f9c16d08fd14d9fd2
639
py
Python
machinelearninginaction/Ch13/extras/createFig1.py
jercas/MLiA_Learning_Code
1d8c09f2fcbc81342941f6af97403bd2eb07483b
[ "Apache-2.0" ]
350
2019-04-17T06:48:05.000Z
2022-03-31T11:37:24.000Z
machinelearninginaction/Ch13/extras/createFig1.py
jercas/MLiA_Learning_Code
1d8c09f2fcbc81342941f6af97403bd2eb07483b
[ "Apache-2.0" ]
6
2020-03-04T23:21:03.000Z
2020-07-23T07:46:40.000Z
machinelearninginaction/Ch13/extras/createFig1.py
jercas/MLiA_Learning_Code
1d8c09f2fcbc81342941f6af97403bd2eb07483b
[ "Apache-2.0" ]
121
2019-04-17T06:51:41.000Z
2022-03-29T06:43:12.000Z
''' Created on Jun 1, 2011 @author: Peter ''' from numpy import * import matplotlib import matplotlib.pyplot as plt n = 1000 #number of points to create xcord0 = [] ycord0 = [] xcord1 = [] ycord1 = [] markers =[] colors =[] fw = open('testSet.txt','w') for i in range(n): [r0,r1] = random.standard_normal(2) fF...
19.96875
43
0.644757
9ee66850949f5993ecaf9efb6259d65f7db22113
569
py
Python
tests/models/xsd/test_group.py
gramm/xsdata
082c780757c6d76a5c31a6757276ef6912901ed2
[ "MIT" ]
null
null
null
tests/models/xsd/test_group.py
gramm/xsdata
082c780757c6d76a5c31a6757276ef6912901ed2
[ "MIT" ]
null
null
null
tests/models/xsd/test_group.py
gramm/xsdata
082c780757c6d76a5c31a6757276ef6912901ed2
[ "MIT" ]
null
null
null
from unittest import TestCase from xsdata.models.xsd import Group class GroupTests(TestCase): def test_property_is_attribute(self): obj = Group() self.assertTrue(obj.is_attribute) def test_property_attr_types(self): obj = Group() self.assertEqual([], list(obj.attr_types)) ...
27.095238
84
0.664323
cfb0bc542517cdde20734d3cef9b09e9fb49201f
275
py
Python
heap_test.py
MartinMa28/Algorithms_review
3f2297038c00f5a560941360ca702e6868530f34
[ "MIT" ]
null
null
null
heap_test.py
MartinMa28/Algorithms_review
3f2297038c00f5a560941360ca702e6868530f34
[ "MIT" ]
null
null
null
heap_test.py
MartinMa28/Algorithms_review
3f2297038c00f5a560941360ca702e6868530f34
[ "MIT" ]
null
null
null
import heapq if __name__ == '__main__': l = [(1, 'a'), (3, 'b'), (4, 'c'), (6, 'd'), (2, 'e'), (7, 'f'), (5, 'g')] heapq.heapify(l) print(l) # update the priority l[len(l) - 2] = (-1, 'f') print(l) heapq._siftdown(l, 0, len(l) - 2) print(l)
21.153846
78
0.44
0ca5c8e4d013275f500a97ee25d24d9e6c9059f7
367
py
Python
05_instance_class_attributes.py
Madhav2204/Python-vs-code
6b845573f6e9f77cccf8f67913ad4de05da6593c
[ "Apache-2.0" ]
null
null
null
05_instance_class_attributes.py
Madhav2204/Python-vs-code
6b845573f6e9f77cccf8f67913ad4de05da6593c
[ "Apache-2.0" ]
null
null
null
05_instance_class_attributes.py
Madhav2204/Python-vs-code
6b845573f6e9f77cccf8f67913ad4de05da6593c
[ "Apache-2.0" ]
null
null
null
class Employee: company = "Google" salary = 100 harry = Employee() rajni = Employee() # Creating instance attribute salary for both the objects # harry.salary = 300 # rajni.salary = 400 harry.salary = 45 print(harry.salary) print(rajni.salary) # Below line throws an error as address is not pres...
22.9375
74
0.700272
101dd4612bf79a25c274715c44804e5c0813e4f8
1,916
py
Python
palette.py
M-RBDR/boink
9ae6f8eb21993cff96c46cf0ff1e715656a5a1e8
[ "MIT" ]
null
null
null
palette.py
M-RBDR/boink
9ae6f8eb21993cff96c46cf0ff1e715656a5a1e8
[ "MIT" ]
null
null
null
palette.py
M-RBDR/boink
9ae6f8eb21993cff96c46cf0ff1e715656a5a1e8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import pygame class Palette(): """Une classe pour gérer les palettes des joeurs.""" def __init__(self, jeu, position): """Initialiser la palette et l'associer au jeu.""" # Associer les attributs du jeu à la palette self.ecran = jeu.ecran self.ecran_rect...
39.102041
79
0.649269
a0b7cbe2b9b4d4d518c14c8e7430396a931cc80e
5,360
py
Python
pipelines/toast_cov_invert.py
ziotom78/toast
66aef04c833a28f0928a0bbc221da45882aae475
[ "BSD-2-Clause" ]
null
null
null
pipelines/toast_cov_invert.py
ziotom78/toast
66aef04c833a28f0928a0bbc221da45882aae475
[ "BSD-2-Clause" ]
null
null
null
pipelines/toast_cov_invert.py
ziotom78/toast
66aef04c833a28f0928a0bbc221da45882aae475
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-2019 by the parties listed in the AUTHORS file. # All rights reserved. Use of this source code is governed by # a BSD-style license that can be found in the LICENSE file. """Invert a block diagonal covariance matrix. """ import os import re import sys import argparse impor...
25.645933
85
0.598881
48ca70ffa7664408279f77fefeada27612162b97
4,044
py
Python
tests/TestModules.py
baumrasen/flickr-uploader
55c73dc15a90705c17031ddaf8ac41351e8f481f
[ "MIT" ]
39
2017-11-04T10:10:59.000Z
2021-01-06T22:07:55.000Z
tests/TestModules.py
baumrasen/flickr-uploader
55c73dc15a90705c17031ddaf8ac41351e8f481f
[ "MIT" ]
60
2017-11-01T01:28:46.000Z
2019-09-29T12:26:39.000Z
tests/TestModules.py
baumrasen/flickr-uploader
55c73dc15a90705c17031ddaf8ac41351e8f481f
[ "MIT" ]
9
2017-11-09T20:35:12.000Z
2021-01-10T16:34:32.000Z
""" by oPromessa, 2017 Published on https://github.com/oPromessa/flickr-uploader/ Helper class and functions for Unit Testing flickr-uploader app """ import sys import time import unittest import test.support # ----------------------------------------------------------------------------- import lib.NicePr...
29.518248
79
0.546736
b0000f42a69c4d4d7691c42e08fed55769f15b63
5,201
py
Python
library/src/test/unit/detectors/iforest_benchmark.py
unSAD-admin/unSAD
9f1d0e680a0086d140bc8d1c55fe21dd7de87df5
[ "Apache-2.0" ]
3
2019-11-01T04:51:51.000Z
2019-12-17T04:25:18.000Z
library/src/test/unit/detectors/iforest_benchmark.py
unSAD-admin/unSAD
9f1d0e680a0086d140bc8d1c55fe21dd7de87df5
[ "Apache-2.0" ]
1
2019-11-11T18:29:36.000Z
2019-11-11T18:29:36.000Z
library/src/test/unit/detectors/iforest_benchmark.py
unSAD-admin/unSAD
9f1d0e680a0086d140bc8d1c55fe21dd7de87df5
[ "Apache-2.0" ]
2
2019-12-18T11:49:00.000Z
2020-03-27T20:06:15.000Z
# Created by Yash Shahani on 11/18/2019, 2:03 PM # Made for easy addition of more algorithms, just follow commented directions at HERE comments # Prerequisite: Install pyod from __future__ import division from __future__ import print_function from time import time import sys import os # temporary solution for relativ...
36.118056
97
0.644107
e330ab597d445fae386999c31fd979036e328c07
9,123
py
Python
aiopg/pool.py
1st1/aiopg
1bcbd95f9ff97675788dc3dbc2f7889e26b2fba4
[ "BSD-2-Clause" ]
1
2021-07-07T06:37:02.000Z
2021-07-07T06:37:02.000Z
aiopg/pool.py
1st1/aiopg
1bcbd95f9ff97675788dc3dbc2f7889e26b2fba4
[ "BSD-2-Clause" ]
null
null
null
aiopg/pool.py
1st1/aiopg
1bcbd95f9ff97675788dc3dbc2f7889e26b2fba4
[ "BSD-2-Clause" ]
null
null
null
import asyncio import collections from psycopg2.extensions import TRANSACTION_STATUS_IDLE from .connection import connect, TIMEOUT from .log import logger @asyncio.coroutine def create_pool(dsn=None, *, minsize=10, maxsize=10, loop=None, timeout=TIMEOUT, enable_json=True, enable_hst...
29.05414
78
0.551902
090a126b7051d4b40bbe3b42cf390372824059d7
3,726
py
Python
akshare/stock_feature/stock_us_hist_futunn.py
Joeklepko/akshare
b290fad80cd6fed992b2b18496582cd6c7ae0d90
[ "MIT" ]
1
2020-12-23T08:11:32.000Z
2020-12-23T08:11:32.000Z
akshare/stock_feature/stock_us_hist_futunn.py
Joeklepko/akshare
b290fad80cd6fed992b2b18496582cd6c7ae0d90
[ "MIT" ]
null
null
null
akshare/stock_feature/stock_us_hist_futunn.py
Joeklepko/akshare
b290fad80cd6fed992b2b18496582cd6c7ae0d90
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- """ Date: 2021/12/2 17:26 Desc: 富途牛牛-行情-美股-每日行情 https://www.futunn.com/stock/HON-US?seo_redirect=1&channel=1244&subchannel=2&from=BaiduAladdin&utm_source=alading_user&utm_medium=website_growth """ import pandas as pd import requests from bs4 import BeautifulSoup def stock_...
35.485714
166
0.603865
ac0e3e9c3995b048adb6075a04eb2ee58a1f3c5d
19,794
py
Python
machine-translation/transformer.py
katiehouse3/microsoft-azure-ml-notebooks
1a1e57efc114c9623eb8a75a137cde08bd151ba6
[ "MIT" ]
4
2019-06-10T23:24:37.000Z
2021-04-18T10:48:49.000Z
machine-translation/transformer.py
katiehouse3/microsoft-azure-ml-notebooks
1a1e57efc114c9623eb8a75a137cde08bd151ba6
[ "MIT" ]
1
2019-04-12T13:24:01.000Z
2019-04-12T13:24:01.000Z
machine-translation/transformer.py
katiehouse3/microsoft-azure-ml-notebooks
1a1e57efc114c9623eb8a75a137cde08bd151ba6
[ "MIT" ]
3
2020-04-02T02:55:08.000Z
2021-05-30T03:38:23.000Z
# -*- coding: utf-8 -*- """transformer.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/14flKBuIlHTIxIAzCrHwaMJDwrtmBa6EW # Setting up """ import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F import torch...
32.717355
106
0.586137
7939be15c9191604e1a88550a0b9cdd350f1d126
390
py
Python
projectenv/main/migrations/0007_alter_paint_stock.py
rzsaglam/project-env
f4c02b15cf924ba5d69d8a4a89efcc686b73aa9c
[ "MIT" ]
null
null
null
projectenv/main/migrations/0007_alter_paint_stock.py
rzsaglam/project-env
f4c02b15cf924ba5d69d8a4a89efcc686b73aa9c
[ "MIT" ]
null
null
null
projectenv/main/migrations/0007_alter_paint_stock.py
rzsaglam/project-env
f4c02b15cf924ba5d69d8a4a89efcc686b73aa9c
[ "MIT" ]
null
null
null
# Generated by Django 3.2.3 on 2021-05-28 09:49 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('main', '0006_alter_paint_stock'), ] operations = [ migrations.AlterField( model_name='paint', name='stock', ...
20.526316
60
0.594872
25910ffd0883502c358a6e740c76886f8f5df183
33,688
py
Python
telethon/client/downloads.py
KnorpelSenf/Telethon
e0c314376321617d082206e065d382bbeebf66e9
[ "MIT" ]
null
null
null
telethon/client/downloads.py
KnorpelSenf/Telethon
e0c314376321617d082206e065d382bbeebf66e9
[ "MIT" ]
null
null
null
telethon/client/downloads.py
KnorpelSenf/Telethon
e0c314376321617d082206e065d382bbeebf66e9
[ "MIT" ]
null
null
null
import datetime import io import os import pathlib import typing import inspect from ..crypto import AES from .. import utils, helpers, errors, hints from ..requestiter import RequestIter from ..tl import TLObject, types, functions try: import aiohttp except ImportError: aiohttp = None if typing.TYPE_CHECKI...
37.431111
154
0.563643
8ac8b335c9386aaf4e74d03616456b2a9264ea11
338
py
Python
api/__init__.py
thurstonemerson/memory-game
c078168e509e836a7fdad275ad960b181350caa7
[ "Unlicense", "MIT" ]
7
2016-03-28T21:11:05.000Z
2018-04-12T15:40:53.000Z
api/__init__.py
thurstonemerson/memory-game
c078168e509e836a7fdad275ad960b181350caa7
[ "Unlicense", "MIT" ]
null
null
null
api/__init__.py
thurstonemerson/memory-game
c078168e509e836a7fdad275ad960b181350caa7
[ "Unlicense", "MIT" ]
null
null
null
''' Created on 18/03/2016 This package specifies the google app engine api @author: thurstonemerson ''' import endpoints MEMCACHE_MOVES_REMAINING = 'MOVES_REMAINING' #define the name of the overall application api memory_api = endpoints.api(name='memory', version='v1.0') #import user and game api modules import u...
18.777778
57
0.778107
1970becbb59f6b4a430aba29d1e9b673a9219240
2,253
py
Python
all_frame_models/lstm_with_pooling_model.py
LuChungYing/yt8mtest
bae523eda6bd7e88fc75632c7ee8c023d47cd9a9
[ "Apache-2.0" ]
196
2017-06-16T12:06:56.000Z
2022-02-18T10:50:43.000Z
all_frame_models/lstm_with_pooling_model.py
LuChungYing/yt8mtest
bae523eda6bd7e88fc75632c7ee8c023d47cd9a9
[ "Apache-2.0" ]
5
2017-08-04T02:37:34.000Z
2018-10-27T18:32:38.000Z
youtube-8m-wangheda/all_frame_models/lstm_with_pooling_model.py
wangheda/youtube-8m
07e54b387ee027cb58b0c14f5eb7c88cfa516d58
[ "Apache-2.0" ]
71
2017-06-20T15:04:13.000Z
2021-10-06T16:43:32.000Z
import sys import models import model_utils import math import numpy as np import video_level_models import tensorflow as tf import utils import tensorflow.contrib.slim as slim from tensorflow import flags FLAGS = flags.FLAGS class LstmWithPoolingModel(models.BaseModel): def create_model(self, model_input, vocab_si...
36.934426
104
0.640923
0d784bf8513907ab29c6946dfe9786f0b1765bed
7,533
py
Python
vscode-visual-tests/features/steps/common.py
deepak1725/fabric8-analytics-common
bc62c52c953106780f6a2ec32e2969952324f8ea
[ "Apache-2.0" ]
null
null
null
vscode-visual-tests/features/steps/common.py
deepak1725/fabric8-analytics-common
bc62c52c953106780f6a2ec32e2969952324f8ea
[ "Apache-2.0" ]
null
null
null
vscode-visual-tests/features/steps/common.py
deepak1725/fabric8-analytics-common
bc62c52c953106780f6a2ec32e2969952324f8ea
[ "Apache-2.0" ]
null
null
null
"""Implementation of common test steps.""" # vim: set fileencoding=utf-8 # # (C) Copyright 2019 Pavel Tisnovsky # # All rights reserved. This program and the accompanying materials # are made available under the terms of the Eclipse Public License v1.0 # which accompanies this distribution, and is available at #...
36.043062
95
0.713262
45f1ef9466781d6a5f61f7b776884d91d61f7799
21,290
py
Python
official/vision/beta/projects/panoptic_maskrcnn/modeling/panoptic_maskrcnn_model_test.py
sakibguy/models
662f392677be0e6822eb9852a57f06b3fd1513bf
[ "Apache-2.0" ]
1
2022-02-14T08:47:00.000Z
2022-02-14T08:47:00.000Z
official/vision/beta/projects/panoptic_maskrcnn/modeling/panoptic_maskrcnn_model_test.py
mdsaifhaider/models
7214e17eb425963ec3d0295be215d5d26deaeb32
[ "Apache-2.0" ]
8
2020-05-19T00:52:30.000Z
2020-06-04T23:57:20.000Z
official/vision/beta/projects/panoptic_maskrcnn/modeling/panoptic_maskrcnn_model_test.py
mdsaifhaider/models
7214e17eb425963ec3d0295be215d5d26deaeb32
[ "Apache-2.0" ]
2
2021-10-07T04:47:04.000Z
2021-12-18T04:18:19.000Z
# Copyright 2022 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...
38.429603
108
0.696853
8bf1d5d7693935a91c7467dc0386671ed8d66d9d
968
py
Python
ExampleData/RawDataProcessingScripts/repair_cost_data_reader.py
stuart23/FEAST_PtE
be145fef17389aeff249b4c7dc4af99a6cc6b099
[ "MIT" ]
10
2020-03-26T20:12:19.000Z
2022-02-14T22:47:01.000Z
ExampleData/RawDataProcessingScripts/repair_cost_data_reader.py
stuart23/FEAST_PtE
be145fef17389aeff249b4c7dc4af99a6cc6b099
[ "MIT" ]
1
2021-07-14T21:14:12.000Z
2021-07-14T21:14:12.000Z
ExampleData/RawDataProcessingScripts/repair_cost_data_reader.py
stuart23/FEAST_PtE
be145fef17389aeff249b4c7dc4af99a6cc6b099
[ "MIT" ]
9
2020-03-27T22:57:31.000Z
2021-09-29T17:29:35.000Z
def repair_cost_data_reader(file_in=None, notes=None, file_out=None): """ reads a csv file containing repair cost data and stores the data as a standard python list. The first column of the input csv must contain the leak cost data. If the column has a header, it must be textual (not a number). file_pat...
35.851852
119
0.67562
732c530537a9856e5092a4cb907935f458cf136c
399
py
Python
StudySerial/StudySerial/wsgi.py
IMHOSUNG/django-restframework-study
b1a582f076bd29b5a7ed49af6145cbcaf2fb7178
[ "MIT" ]
null
null
null
StudySerial/StudySerial/wsgi.py
IMHOSUNG/django-restframework-study
b1a582f076bd29b5a7ed49af6145cbcaf2fb7178
[ "MIT" ]
null
null
null
StudySerial/StudySerial/wsgi.py
IMHOSUNG/django-restframework-study
b1a582f076bd29b5a7ed49af6145cbcaf2fb7178
[ "MIT" ]
null
null
null
""" WSGI config for StudySerial 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/3.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_S...
23.470588
78
0.789474
26cc0824bdfda72b0f1acbbca402cb0f481c2a15
5,519
py
Python
capstone/capapi/middleware.py
holtchesley/capstone
ee8870bdfe28a776b941ac1a567a89a6c22da438
[ "MIT" ]
null
null
null
capstone/capapi/middleware.py
holtchesley/capstone
ee8870bdfe28a776b941ac1a567a89a6c22da438
[ "MIT" ]
null
null
null
capstone/capapi/middleware.py
holtchesley/capstone
ee8870bdfe28a776b941ac1a567a89a6c22da438
[ "MIT" ]
null
null
null
from django.conf import settings from django.contrib.auth.middleware import AuthenticationMiddleware as DjangoAuthenticationMiddleware from django.middleware.common import CommonMiddleware as DjangoCommonMiddleware from django.middleware.gzip import GZipMiddleware from django.utils.cache import patch_cache_control fro...
44.508065
131
0.685088
e1ecd7225c624e9f30c1dfbc8d6033326fa827e1
1,325
py
Python
tests/test_xlnk.py
farzamgl/PYNQ
6f3cb705c54e6eecc2a8574631ba947ca3765a11
[ "BSD-3-Clause" ]
1,537
2016-09-26T22:51:50.000Z
2022-03-31T13:33:54.000Z
tests/test_xlnk.py
farzamgl/PYNQ
6f3cb705c54e6eecc2a8574631ba947ca3765a11
[ "BSD-3-Clause" ]
414
2016-10-03T21:12:10.000Z
2022-03-21T14:55:02.000Z
tests/test_xlnk.py
farzamgl/PYNQ
6f3cb705c54e6eecc2a8574631ba947ca3765a11
[ "BSD-3-Clause" ]
826
2016-09-23T22:29:43.000Z
2022-03-29T11:02:09.000Z
import inspect import pynq import pytest import sys import warnings class DummyXlnkLib: pass def fake_root(): return 0 def linenumber(): cf = inspect.currentframe() return cf.f_back.f_lineno def test_deprecation_level(monkeypatch, recwarn): monkeypatch.setattr(pynq.xlnk.os, 'getuid', fake_ro...
27.040816
77
0.670189
adbc8a95e02e4f9a4c73364d88a7b8a3d1965550
5,805
py
Python
examples/multigpu_advtrain/utils_cifar.py
posenhuang/cleverhans
5ec82b2b7d594258df5cf1915013797f30ed5983
[ "MIT" ]
10
2017-06-09T00:54:11.000Z
2021-07-07T14:44:02.000Z
examples/multigpu_advtrain/utils_cifar.py
shreyashankar/cleverhans
0eba0d3a226a022aa3b9090fa17ddcf1cb99d105
[ "MIT" ]
1
2018-11-18T17:33:42.000Z
2018-11-18T17:33:42.000Z
examples/multigpu_advtrain/utils_cifar.py
shreyashankar/cleverhans
0eba0d3a226a022aa3b9090fa17ddcf1cb99d105
[ "MIT" ]
7
2017-06-06T17:18:29.000Z
2021-02-15T11:40:46.000Z
""" https://github.com/renmengye/revnet-public/blob/master/resnet/data/cifar_input.py MIT License Copyright (c) 2017 Mengye Ren 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 restrictio...
32.79661
81
0.720069
4391b6e418586cfaf8f676f3231422f8733a0636
8,572
py
Python
sdk/python/pulumi_azure_native/logic/v20150801preview/get_integration_account_agreement.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/logic/v20150801preview/get_integration_account_agreement.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/logic/v20150801preview/get_integration_account_agreement.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
36.476596
252
0.64314
f77466e94954d65897f595512c5019fdfbf4e59b
2,191
py
Python
strategies/annealing.py
mwkling/rectangle-overlap
3b1a01bf24934dcf775e5b1f76ce9bde0a21285d
[ "MIT" ]
5
2020-11-01T23:24:02.000Z
2022-01-27T14:58:24.000Z
strategies/annealing.py
mwkling/rectangle-overlap
3b1a01bf24934dcf775e5b1f76ce9bde0a21285d
[ "MIT" ]
4
2021-06-08T20:39:26.000Z
2022-03-12T00:06:51.000Z
strategies/annealing.py
mwkling/rectangle-overlap
3b1a01bf24934dcf775e5b1f76ce9bde0a21285d
[ "MIT" ]
null
null
null
import random import math class Annealing: def __init__(self, rectangles): self.rectangles = rectangles self.temperature = 1.0 # TODO how to set/configure these parameters in a smarter way self.magnitude = 10 self.rounds = 5000 # Energy measure is the total area of ove...
33.19697
94
0.492926
55bbe676c54f1807d973ef8dfa565ff98a3c5879
34,765
py
Python
SparseMeasurements/univacIsingSparseChiSweep.py
danielfreeman11/thermal-toric-code
3718f1b16737dfae09443466f6cfb65036faaa89
[ "MIT" ]
6
2017-11-15T00:54:13.000Z
2021-11-21T02:08:21.000Z
SparseMeasurements/univacIsingSparseChiSweep.py
danielfreeman11/thermal-toric-code
3718f1b16737dfae09443466f6cfb65036faaa89
[ "MIT" ]
null
null
null
SparseMeasurements/univacIsingSparseChiSweep.py
danielfreeman11/thermal-toric-code
3718f1b16737dfae09443466f6cfb65036faaa89
[ "MIT" ]
null
null
null
#%matplotlib inline #pylab inline import random from random import choice import copy #import matplotlib.pyplot as plt import sys from compiler.ast import flatten from numpy import * import numpy #arg1 = float(sys.argv[1])%30 + 1 #arg2 = floor(float(sys.argv[1]) / 30.) + 1 #arg3 = floor(float(sys.argv[1...
38.287445
154
0.550554
c685ba459eb0df31dd684dc3fd2984ac5caed9bb
530
py
Python
python-7/main.py
Cadulox/aceleradev-codenation-python
860c4a9f5bcbb93f917e090671d0ff544af95445
[ "MIT" ]
null
null
null
python-7/main.py
Cadulox/aceleradev-codenation-python
860c4a9f5bcbb93f917e090671d0ff544af95445
[ "MIT" ]
null
null
null
python-7/main.py
Cadulox/aceleradev-codenation-python
860c4a9f5bcbb93f917e090671d0ff544af95445
[ "MIT" ]
null
null
null
import requests def get_temperature(lat, lng): key = 'e1ee55658d4a2b28c4841e373c3b3d87' url = 'https://api.darksky.net/forecast/{}/{},{}'.format(key, lat, lng) try: reponse = requests.get(url) data = reponse.json() temperature = data.get('currently').get('temperature') if n...
29.444444
75
0.620755
b23d3214ef11a94abe5dc1168d7377519809f740
4,140
py
Python
recipes/Python/576387_unix_subprocess_wrapper/recipe-576387.py
tdiprima/code
61a74f5f93da087d27c70b2efe779ac6bd2a3b4f
[ "MIT" ]
2,023
2017-07-29T09:34:46.000Z
2022-03-24T08:00:45.000Z
recipes/Python/576387_unix_subprocess_wrapper/recipe-576387.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
32
2017-09-02T17:20:08.000Z
2022-02-11T17:49:37.000Z
recipes/Python/576387_unix_subprocess_wrapper/recipe-576387.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
780
2017-07-28T19:23:28.000Z
2022-03-25T20:39:41.000Z
import time, os, select, signal class subProcess: """Class representing a child process. It's like popen2.Popen3 but there are three main differences. 1. This makes the new child process group leader (using setpgrp()) so that all children can be killed. 2. The output function (read) ...
41.818182
80
0.57343
d2246e0f26a8bee3bbf40d327f85173108b15201
2,517
py
Python
src/pytest/test_replicate.py
ashtul/RediSearch
8aac2bc22fba75bd45ab3c3a12b4ce04fadd33c7
[ "Ruby", "MIT" ]
null
null
null
src/pytest/test_replicate.py
ashtul/RediSearch
8aac2bc22fba75bd45ab3c3a12b4ce04fadd33c7
[ "Ruby", "MIT" ]
null
null
null
src/pytest/test_replicate.py
ashtul/RediSearch
8aac2bc22fba75bd45ab3c3a12b4ce04fadd33c7
[ "Ruby", "MIT" ]
null
null
null
import subprocess import signal import os import os.path from RLTest import Env import time import random from includes import * class TimeoutException(Exception): pass class TimeLimit(object): """ A context manager that fires a TimeExpired exception if it does not return within the specified amount of ...
33.118421
92
0.663886
15d9efbff8472dfea56b5e87b091116eb47f7372
541
py
Python
conformal/square.py
foamliu/Complex-Analysis
6389c69dad680015cb7fa5fe9789793638ccddd0
[ "MIT" ]
1
2021-06-22T11:08:29.000Z
2021-06-22T11:08:29.000Z
conformal/square.py
foamliu/Complex-Analysis
6389c69dad680015cb7fa5fe9789793638ccddd0
[ "MIT" ]
null
null
null
conformal/square.py
foamliu/Complex-Analysis
6389c69dad680015cb7fa5fe9789793638ccddd0
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np u = np.linspace(0, 3, 200) v = np.linspace(0, 3, 200) uu, vv = np.meshgrid(u, v) z0 = uu + 1j * vv z = z0 ** 2 T = np.arctan2(uu, vv) plt.figure(figsize=(14, 6)) plt.subplot(1, 2, 1) plt.scatter(uu, vv, c=T, s=10, lw=0, cmap='hsv') plt.title('real points') plt.xlabel...
20.807692
64
0.621072
de4177944de607c0b282a6fa67e41f2680a2bcf4
8,648
py
Python
setup.py
paretech/pycli
573c7eb3e4d6ccf28562f3c2a315dea8414c4cd5
[ "MIT" ]
null
null
null
setup.py
paretech/pycli
573c7eb3e4d6ccf28562f3c2a315dea8414c4cd5
[ "MIT" ]
null
null
null
setup.py
paretech/pycli
573c7eb3e4d6ccf28562f3c2a315dea8414c4cd5
[ "MIT" ]
null
null
null
"""A setuptools based setup module. See: https://packaging.python.org/guides/distributing-packages-using-setuptools/ https://github.com/pypa/sampleproject """ # Always prefer setuptools over distutils from setuptools import setup, find_packages from os import path # io.open is needed for projects that support Python ...
42.185366
98
0.687789
ddecaf5b8a8d73918e4da98924603d0f295d7837
947
py
Python
getConfig.py
SherlockGuo/seq2seq_chatbot
c7c9777ad23fada151f1882ce48ef7bd1f193b02
[ "Apache-2.0" ]
1
2020-02-26T07:05:54.000Z
2020-02-26T07:05:54.000Z
getConfig.py
SherlockGuo/seq2seq_chatbot
c7c9777ad23fada151f1882ce48ef7bd1f193b02
[ "Apache-2.0" ]
null
null
null
getConfig.py
SherlockGuo/seq2seq_chatbot
c7c9777ad23fada151f1882ce48ef7bd1f193b02
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ __title__ = getConfig.py __author__ = 'guo_h' __mtime__ = 2020/02/24 # code is far away from bugs with the god animal protecting I love animals. They taste delicious. ┏┓ ┏┓ ┏┛┻━━━━━┛┻━┓ ┃ ☃ ┃ ┃ ┳┛ ┗┳ ┃ ...
29.59375
83
0.482577
72d9720df4732a8546efcde5e9a93ff88f665e42
3,549
py
Python
netbox/circuits/urls.py
aslafy-z/netbox
a5512dd4c46c005df8752fc330c1382ac22b31ea
[ "Apache-2.0" ]
1
2021-09-23T00:06:51.000Z
2021-09-23T00:06:51.000Z
netbox/circuits/urls.py
aslafy-z/netbox
a5512dd4c46c005df8752fc330c1382ac22b31ea
[ "Apache-2.0" ]
4
2021-06-08T22:29:06.000Z
2022-03-12T00:48:51.000Z
netbox/circuits/urls.py
aslafy-z/netbox
a5512dd4c46c005df8752fc330c1382ac22b31ea
[ "Apache-2.0" ]
null
null
null
from django.urls import path from dcim.views import CableCreateView, CableTraceView from extras.views import ObjectChangeLogView from . import views from .models import Circuit, CircuitTermination, CircuitType, Provider app_name = 'circuits' urlpatterns = [ # Providers path('providers/', views.ProviderListVi...
69.588235
203
0.750352
9c423546285091a0dc4881d2d697dc6b6fb781a4
280
py
Python
sm64r/Area.py
andrelikesdogs/sm64-randomizer
8c8d2f3e3b9f6b69d3595d78669aa120056b6f98
[ "MIT" ]
49
2019-07-01T16:19:32.000Z
2022-03-28T16:15:36.000Z
sm64r/Area.py
andrelikesdogs/sm64-randomizer
8c8d2f3e3b9f6b69d3595d78669aa120056b6f98
[ "MIT" ]
44
2019-10-19T18:19:56.000Z
2022-03-25T22:53:20.000Z
sm64r/Area.py
andrelikesdogs/sm64-randomizer
8c8d2f3e3b9f6b69d3595d78669aa120056b6f98
[ "MIT" ]
5
2020-03-13T22:56:56.000Z
2021-12-05T03:37:30.000Z
from typing import Dict class Area: def __init__(self, area_id : int, name : str, properties : Dict): self.id = area_id self.name = name self.properties = properties def __str__(self): return f'<Area {hex(self.id)}: {self.name}>: {repr(self.properties)}'
28
73
0.657143
acee0d665eecc65c7a832102ba3d9ace0efd1916
244
py
Python
Aula14/ex08.py
danicon/MD2-Curso_Python
77a2eb2d123eb1359dd7c84360c83bf3b3033ab4
[ "MIT" ]
1
2020-11-28T14:48:03.000Z
2020-11-28T14:48:03.000Z
Aula14/ex08.py
danicon/MD2-Curso_Python
77a2eb2d123eb1359dd7c84360c83bf3b3033ab4
[ "MIT" ]
null
null
null
Aula14/ex08.py
danicon/MD2-Curso_Python
77a2eb2d123eb1359dd7c84360c83bf3b3033ab4
[ "MIT" ]
null
null
null
print('Gerador de PA') print('-='*10) primeiro = int(input('Primeiro termo: ')) razao = int(input('Razao da PA: ')) termo = primeiro cont = 1 while cont <= 10: print(f'{termo} \032 ', end='') termo += razao cont += 1 print('FIM')
22.181818
41
0.586066
4180f172e5bec7b4d6f2cba6cd2b6ca5a99abc5b
314
py
Python
setup.py
bheinzerling/dougu
110965818247c5f78fc4c472b10a8ab5468d1c7e
[ "MIT" ]
20
2018-07-14T17:33:27.000Z
2022-03-28T13:32:24.000Z
setup.py
bheinzerling/dougu
110965818247c5f78fc4c472b10a8ab5468d1c7e
[ "MIT" ]
null
null
null
setup.py
bheinzerling/dougu
110965818247c5f78fc4c472b10a8ab5468d1c7e
[ "MIT" ]
2
2018-07-14T17:35:26.000Z
2020-02-27T19:12:48.000Z
from setuptools import setup setup( name='dougu', version='0.1', description='miscellaneous utilities', url='http://github.com/bheinzerling/dougu', author='Benjamin Heinzerling', author_email='benjamin.heinzerling@h-its.org', license='MIT', packages=['dougu'], zip_safe=False)
24.153846
50
0.678344
9a5a3337a367e06a2ad12eac316d07843d6db2e0
1,822
py
Python
api/get_client_profile.py
Dracanrage/qcloud-ssl-cdn
41f1f0f36925b0b16c4d8ef41ddc6f06b6f6477b
[ "Apache-2.0" ]
null
null
null
api/get_client_profile.py
Dracanrage/qcloud-ssl-cdn
41f1f0f36925b0b16c4d8ef41ddc6f06b6f6477b
[ "Apache-2.0" ]
4
2022-03-23T09:49:08.000Z
2022-03-24T11:25:29.000Z
api/get_client_profile.py
Dracanrage/qcloud-ssl-cdn
41f1f0f36925b0b16c4d8ef41ddc6f06b6f6477b
[ "Apache-2.0" ]
2
2022-03-23T10:01:38.000Z
2022-03-23T14:02:51.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # author: 'zfb' # time: 2020-12-02 15:17 from tencentcloud.common import credential # 导入可选配置类 from tencentcloud.common.profile.client_profile import ClientProfile from tencentcloud.common.profile.http_profile import HttpProfile from tencentcloud.common.exception.tencent_cl...
35.038462
94
0.673985
2f9011f4a0f92cd953d27da70eabbbd682939800
292
py
Python
examples/plot_volcano.py
Donnyvdm/gdsctools
164ccd284e33202117f505210af96ae44d819203
[ "Python-2.0", "OLDAP-2.7" ]
28
2016-03-19T14:43:00.000Z
2022-02-26T14:48:02.000Z
examples/plot_volcano.py
Donnyvdm/gdsctools
164ccd284e33202117f505210af96ae44d819203
[ "Python-2.0", "OLDAP-2.7" ]
182
2015-10-14T10:42:41.000Z
2022-01-06T16:17:14.000Z
examples/plot_volcano.py
Donnyvdm/gdsctools
164ccd284e33202117f505210af96ae44d819203
[ "Python-2.0", "OLDAP-2.7" ]
13
2015-12-27T07:43:39.000Z
2021-11-14T21:50:32.000Z
""" Analyse all associations (drug/feature) ========================================= Volcano plot (all associations) """ ##################################################### # from gdsctools import ANOVA, ic50_test gdsc = ANOVA(ic50_test) results = gdsc.anova_all() results.volcano()
16.222222
53
0.493151
c62347fe939403db6ee3955a69a8eff523d50cfa
307
py
Python
FlaskSeries/class007_model_relationships/market/routes.py
LucasBiason/FlaskStudies
a594846f6eaa1655267f84da73764716e22f719b
[ "MIT" ]
null
null
null
FlaskSeries/class007_model_relationships/market/routes.py
LucasBiason/FlaskStudies
a594846f6eaa1655267f84da73764716e22f719b
[ "MIT" ]
null
null
null
FlaskSeries/class007_model_relationships/market/routes.py
LucasBiason/FlaskStudies
a594846f6eaa1655267f84da73764716e22f719b
[ "MIT" ]
null
null
null
from market import app from flask import render_template from market.models import Item @app.route('/') @app.route('/home') def home_page(): return render_template('home.html') @app.route('/market') def market_page(): items = Item.query.all() return render_template('market.html', items=items)
23.615385
54
0.723127
63f416b6b0c1996c957dc5e3b67acc91c2a682cc
4,915
py
Python
bin/stream2raw.py
VoidDruid/fink-broker
70018c17a609c85c88b5faef26c053beb1f838ca
[ "Apache-2.0" ]
null
null
null
bin/stream2raw.py
VoidDruid/fink-broker
70018c17a609c85c88b5faef26c053beb1f838ca
[ "Apache-2.0" ]
null
null
null
bin/stream2raw.py
VoidDruid/fink-broker
70018c17a609c85c88b5faef26c053beb1f838ca
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2019-2022 AstroLab Software # Author: Julien Peloton # # 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 # # U...
35.615942
78
0.695219
4aa918cfadd2b1b0403530c8da7d6e542dfd4609
2,111
py
Python
cc_early_user_support/migrations/0001_initial.py
msherman64/portal
e5399ef2ed3051d7c9a46c660f028c666ae22ca6
[ "Apache-2.0" ]
null
null
null
cc_early_user_support/migrations/0001_initial.py
msherman64/portal
e5399ef2ed3051d7c9a46c660f028c666ae22ca6
[ "Apache-2.0" ]
null
null
null
cc_early_user_support/migrations/0001_initial.py
msherman64/portal
e5399ef2ed3051d7c9a46c660f028c666ae22ca6
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from django.db import models, migrations from django.conf import settings class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='EarlyUserParti...
37.035088
134
0.558503
838e0785c0cc263c5b858c8cdb1a3d1a24b81c3e
490
py
Python
Exercicios-mundo-1/desafio035.py
talitadeoa/CEV-Exercicios-Python
11e8ad6c6b758c5b5fdf5050a3e97f98c308ea7e
[ "MIT" ]
null
null
null
Exercicios-mundo-1/desafio035.py
talitadeoa/CEV-Exercicios-Python
11e8ad6c6b758c5b5fdf5050a3e97f98c308ea7e
[ "MIT" ]
null
null
null
Exercicios-mundo-1/desafio035.py
talitadeoa/CEV-Exercicios-Python
11e8ad6c6b758c5b5fdf5050a3e97f98c308ea7e
[ "MIT" ]
null
null
null
#Um programa que recebe 3 valores e calcula se esses segmentos podem se tornar um triangulo print('-='*11) print('Analisador de triângulo... ') print('-='*11) s1= float(input('Digite o primeiro valor... ')) s2= float(input('Digite o segundo valor... ')) s3= float(input('Digite o terceiro valor... ')) if s1+s2 > s3 an...
32.666667
91
0.685714
9437f307dc175a975fad99dd32f7cf2962abfdaf
866
py
Python
inic2019/flarex1.0/get_front.py
andrekorol/flare-hunter
530d29275429b934d0ee8a20e21ed3ccc514e40c
[ "MIT" ]
null
null
null
inic2019/flarex1.0/get_front.py
andrekorol/flare-hunter
530d29275429b934d0ee8a20e21ed3ccc514e40c
[ "MIT" ]
1
2021-08-31T19:17:19.000Z
2021-08-31T19:17:19.000Z
inic2019/flarex1.0/get_front.py
andrekorol/flare-hunter
530d29275429b934d0ee8a20e21ed3ccc514e40c
[ "MIT" ]
null
null
null
from urldl import download from pycallisto import chromosphericevaporation as ce import json callisto_archives = 'http://soleil80.cs.technik.fhnw.ch/' \ 'solarradio/data/2002-20yy_Callisto/' filename = "ROSWELL-NM_20140329_174500_59.fit.gz" fits_year = filename.split('_')[1][:4] fits_month = filen...
32.074074
61
0.740185
59ab4cd4b55d0f20545d1a7ab9bf6ea037d0f814
3,847
py
Python
model.py
KhrulkovV/neural_sbs
6c0424444545ff9ad61060216bb4996e1f441f44
[ "MIT" ]
10
2021-06-22T19:33:35.000Z
2022-03-30T03:06:58.000Z
model.py
KhrulkovV/neural_sbs
6c0424444545ff9ad61060216bb4996e1f441f44
[ "MIT" ]
2
2021-12-22T07:29:27.000Z
2021-12-25T01:48:37.000Z
model.py
KhrulkovV/neural_sbs
6c0424444545ff9ad61060216bb4996e1f441f44
[ "MIT" ]
3
2021-08-11T08:49:41.000Z
2022-03-07T03:03:19.000Z
import torchvision import torch import torch.nn as nn import numpy as np def _chop_model(model, remove=1): """ Removes the last layer from the model. """ model = torch.nn.Sequential(*(list(model.children())[:-remove])) return model def _J(dim): res = np.zeros((dim, dim), dtype=np.float32) ...
31.793388
85
0.574994
f5f45fec090ae2da52fa3bfb7594437f77e8a759
1,119
py
Python
dataset.py
mcekwonu/BIMSNet
e8c7764abeec99ddb9514f7d32df3c4c278c7846
[ "MIT" ]
null
null
null
dataset.py
mcekwonu/BIMSNet
e8c7764abeec99ddb9514f7d32df3c4c278c7846
[ "MIT" ]
null
null
null
dataset.py
mcekwonu/BIMSNet
e8c7764abeec99ddb9514f7d32df3c4c278c7846
[ "MIT" ]
null
null
null
import os import numpy as np import torch from torch.utils.data import Dataset from torchvision import transforms from PIL import Image class BIMSDataset(Dataset): """Bubble Image Shadowgraph dataset""" def __init__(self, image_dir, mask_dir, transform=None): super().__init__() ...
27.292683
70
0.635389
a6186a6b89178f9b0ca66c9dc3241702e52e8d2b
2,964
py
Python
truss_ex/structure_test_nonlinear.py
mpentek/pyKratos
40da2c8632bdf3215b54c3324bfe58a212a9c6c7
[ "BSD-2-Clause" ]
null
null
null
truss_ex/structure_test_nonlinear.py
mpentek/pyKratos
40da2c8632bdf3215b54c3324bfe58a212a9c6c7
[ "BSD-2-Clause" ]
null
null
null
truss_ex/structure_test_nonlinear.py
mpentek/pyKratos
40da2c8632bdf3215b54c3324bfe58a212a9c6c7
[ "BSD-2-Clause" ]
null
null
null
from __future__ import print_function, absolute_import, division import sys sys.path.append("..") #print(sys.path) from numpy import * from pyKratos import * # add variables to be allocated from the list in variables.py solution_step_variables = [ DISPLACEMENT_X, #Verschiebung DISPLACEMENT_Y, ROTATIO...
24.907563
127
0.683873
036325b6f3c0e1c4fc13dd06089d398aa70c8a7d
1,623
py
Python
utility/topGene_step3_generate_html.py
Millak/RatsPub
9f39cc14afdfff8aa6003f43194f8230b6b7f769
[ "MIT" ]
null
null
null
utility/topGene_step3_generate_html.py
Millak/RatsPub
9f39cc14afdfff8aa6003f43194f8230b6b7f769
[ "MIT" ]
null
null
null
utility/topGene_step3_generate_html.py
Millak/RatsPub
9f39cc14afdfff8aa6003f43194f8230b6b7f769
[ "MIT" ]
null
null
null
import re import sys ## generate the html page for the top genes ## put gene names and alias in a dictionary #ncbi_gene_symb_syno_name_txid9606_absCnt_sorted_absCnt_sorted_absCnt_absCnt_sorted.txt if (len(sys.argv) != 2): print ("please provide the name of a sorted gene abstract count file") sys.exit() geneN...
27.982759
243
0.626617
778fa95e811944d0ddde8b5889db8795f80e3bcf
1,071
py
Python
vitrage_dashboard/admin_entities/views.py
keuko/vitrage-dashboard
23da7b647118c7eeb5686cccacc069afe8eb8a0a
[ "Apache-2.0" ]
28
2015-11-10T08:07:08.000Z
2021-05-20T14:37:57.000Z
vitrage_dashboard/admin_entities/views.py
delightwook/Integrated-UI
32244339603eb0fd5eae9989d81bc96efcd35ad3
[ "Apache-2.0" ]
null
null
null
vitrage_dashboard/admin_entities/views.py
delightwook/Integrated-UI
32244339603eb0fd5eae9989d81bc96efcd35ad3
[ "Apache-2.0" ]
6
2015-11-23T13:56:41.000Z
2020-01-24T09:23:19.000Z
# Copyright 2012 Alcatel-Lucent, 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 ...
32.454545
78
0.665733
746fa83583388462a76daecf3ab39758b39e9119
262
py
Python
Exercises/02fizzBuzz.py
ahmadsohail404/helloPython
7fa0c1c4ae7badecc6adc6e9ce35cce14e86766f
[ "MIT" ]
null
null
null
Exercises/02fizzBuzz.py
ahmadsohail404/helloPython
7fa0c1c4ae7badecc6adc6e9ce35cce14e86766f
[ "MIT" ]
null
null
null
Exercises/02fizzBuzz.py
ahmadsohail404/helloPython
7fa0c1c4ae7badecc6adc6e9ce35cce14e86766f
[ "MIT" ]
null
null
null
def fizz_buzz(input): if (input % 3 == 0) and (input % 5 == 0): # more specific condition on top return "FizzBuzz" elif input % 3 == 0: return "Fizz" elif input % 5 == 0: return "Buzz" return input print(fizz_buzz(15))
21.833333
79
0.553435
db309b201d0933d3aa9c7db25be8d74f385660ec
8,406
py
Python
phono3py/other/alm_wrapper.py
mitwood/phono3py
9f072df30c134cc78a3ca9bd7cd096225745532f
[ "BSD-3-Clause" ]
null
null
null
phono3py/other/alm_wrapper.py
mitwood/phono3py
9f072df30c134cc78a3ca9bd7cd096225745532f
[ "BSD-3-Clause" ]
null
null
null
phono3py/other/alm_wrapper.py
mitwood/phono3py
9f072df30c134cc78a3ca9bd7cd096225745532f
[ "BSD-3-Clause" ]
null
null
null
# Copyright (C) 2016 Atsushi Togo # All rights reserved. # # This file is part of phonopy. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code must retain the above copyright # notic...
35.025
79
0.581846
6f0764fb7f132249c83a8f778cbed0bc8e513444
1,352
py
Python
com/hwloser/tensorflow/sklearn_demo.py
Hwloser/tensorflow_demo
db122cb60aa6226744ecf2b92d4f35ea45e93670
[ "Apache-2.0" ]
1
2021-06-09T06:05:23.000Z
2021-06-09T06:05:23.000Z
com/hwloser/tensorflow/sklearn_demo.py
Hwloser/tensorflow_demo
db122cb60aa6226744ecf2b92d4f35ea45e93670
[ "Apache-2.0" ]
null
null
null
com/hwloser/tensorflow/sklearn_demo.py
Hwloser/tensorflow_demo
db122cb60aa6226744ecf2b92d4f35ea45e93670
[ "Apache-2.0" ]
null
null
null
# sklearn demo import numpy as np import pandas as pd import tensorflow as tf from tensorflow import feature_column from tensorflow.keras import layers from sklearn.model_selection import train_test_split # 1. build dataframe # path invalidate dataframe = pd.read_csv('heart.csv') # 2. split train dataset, validat...
29.391304
74
0.755178
be8c85a6439b3668df2aef7a2b9a7cb0bf99abf3
13,029
py
Python
desktop/core/ext-py/SQLAlchemy-1.3.17/test/base/test_except.py
yetsun/hue
2e48f0cc70e233ee0e1b40733d4b2a18d8836c66
[ "Apache-2.0" ]
5,079
2015-01-01T03:39:46.000Z
2022-03-31T07:38:22.000Z
desktop/core/ext-py/SQLAlchemy-1.3.17/test/base/test_except.py
yetsun/hue
2e48f0cc70e233ee0e1b40733d4b2a18d8836c66
[ "Apache-2.0" ]
1,623
2015-01-01T08:06:24.000Z
2022-03-30T19:48:52.000Z
desktop/core/ext-py/SQLAlchemy-1.3.17/test/base/test_except.py
yetsun/hue
2e48f0cc70e233ee0e1b40733d4b2a18d8836c66
[ "Apache-2.0" ]
2,033
2015-01-04T07:18:02.000Z
2022-03-28T19:55:47.000Z
#! coding:utf-8 """Tests exceptions and DB-API exception wrapping.""" from sqlalchemy import exc as sa_exceptions from sqlalchemy.engine import default from sqlalchemy.testing import eq_ from sqlalchemy.testing import fixtures from sqlalchemy.util import compat from sqlalchemy.util import u class Error(Exception):...
32.81864
77
0.47755
f13af83b4acc0c5872ac2486cee5bc663f3ff5c1
8,769
py
Python
tests/dpaycli/test_amount.py
dpays/dpay-cli
dfa80898e1faea2cee92ebec6fe04873381bd40f
[ "MIT" ]
null
null
null
tests/dpaycli/test_amount.py
dpays/dpay-cli
dfa80898e1faea2cee92ebec6fe04873381bd40f
[ "MIT" ]
null
null
null
tests/dpaycli/test_amount.py
dpays/dpay-cli
dfa80898e1faea2cee92ebec6fe04873381bd40f
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from builtins import super import unittest from parameterized import parameterized from dpaycli import DPay from dpaycli.amount import Amount from dpaycli.asset import Ass...
33.342205
117
0.573155
405b962b6f35839fbbdea8df2217df96ec9cbe99
450
py
Python
kubernetes_typed/client/models/v1_replication_controller_spec.py
nikhiljha/kubernetes-typed
4f4b969aa400c88306f92560e56bda6d19b2a895
[ "Apache-2.0" ]
22
2020-12-10T13:06:02.000Z
2022-02-13T21:58:15.000Z
kubernetes_typed/client/models/v1_replication_controller_spec.py
nikhiljha/kubernetes-typed
4f4b969aa400c88306f92560e56bda6d19b2a895
[ "Apache-2.0" ]
4
2021-03-08T07:06:12.000Z
2022-03-29T23:41:45.000Z
kubernetes_typed/client/models/v1_replication_controller_spec.py
nikhiljha/kubernetes-typed
4f4b969aa400c88306f92560e56bda6d19b2a895
[ "Apache-2.0" ]
2
2021-09-05T19:18:28.000Z
2022-03-14T02:56:17.000Z
# Code generated by `typeddictgen`. DO NOT EDIT. """V1ReplicationControllerSpecDict generated type.""" from typing import TypedDict, Dict from kubernetes_typed.client import V1PodTemplateSpecDict V1ReplicationControllerSpecDict = TypedDict( "V1ReplicationControllerSpecDict", { "minReadySeconds": int, ...
26.470588
57
0.708889