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
b7b04a9512b8ef2440e846a6b55a9e187eb94b01
653
py
Python
agent/deployment_stages/linux_utils.py
Suremaker/consul-deployment-agent
466c36d3fcb9f8bfa144299dde7cb94f4341907b
[ "Apache-2.0" ]
6
2016-10-10T09:26:07.000Z
2018-09-20T08:59:42.000Z
agent/deployment_stages/linux_utils.py
Suremaker/consul-deployment-agent
466c36d3fcb9f8bfa144299dde7cb94f4341907b
[ "Apache-2.0" ]
11
2016-10-10T12:11:07.000Z
2018-05-09T22:11:02.000Z
agent/deployment_stages/linux_utils.py
Suremaker/consul-deployment-agent
466c36d3fcb9f8bfa144299dde7cb94f4341907b
[ "Apache-2.0" ]
16
2016-09-28T16:00:58.000Z
2019-02-25T16:52:12.000Z
# Copyright (c) Trainline Limited, 2016-2017. All rights reserved. See LICENSE.txt in the project root for license information. from grp import getgrnam from pwd import getpwnam def get_gid(name): if getgrnam is None or name is None: return None try: result = getgrnam(name) except KeyError...
24.185185
127
0.653905
b6e4ad5e918b30d470d6ed99b1642e96932b94e3
3,323
py
Python
3rdparty/webkit/Source/JavaScriptCore/inspector/scripts/codegen/generate_objc_internal_header.py
mchiasson/PhaserNative
f867454602c395484bf730a7c43b9c586c102ac2
[ "MIT" ]
null
null
null
3rdparty/webkit/Source/JavaScriptCore/inspector/scripts/codegen/generate_objc_internal_header.py
mchiasson/PhaserNative
f867454602c395484bf730a7c43b9c586c102ac2
[ "MIT" ]
9
2020-04-18T18:47:18.000Z
2020-04-18T18:52:41.000Z
Source/JavaScriptCore/inspector/scripts/codegen/generate_objc_internal_header.py
ijsf/DeniseEmbeddableWebKit
57dfc6783d60f8f59b7129874e60f84d8c8556c9
[ "BSD-3-Clause" ]
1
2019-01-25T13:55:25.000Z
2019-01-25T13:55:25.000Z
#!/usr/bin/env python # # Copyright (c) 2014, 2016 Apple Inc. All rights reserved. # Copyright (c) 2014 University of Washington. 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. Redistributio...
44.306667
122
0.723443
0e68c6a2505b4e2a02ff00f86229c9fe27b62016
12,793
py
Python
forest/main.py
kaedonkers/forest
d087636a7eaf09098f245aa2b83e25e98d29f6b7
[ "BSD-3-Clause" ]
null
null
null
forest/main.py
kaedonkers/forest
d087636a7eaf09098f245aa2b83e25e98d29f6b7
[ "BSD-3-Clause" ]
null
null
null
forest/main.py
kaedonkers/forest
d087636a7eaf09098f245aa2b83e25e98d29f6b7
[ "BSD-3-Clause" ]
null
null
null
import bokeh.plotting import bokeh.models import bokeh.events import bokeh.colors import os from forest import _profile as profile from forest import ( drivers, dimension, screen, tools, series, data, geo, colors, layers, db, keys, ...
30.678657
81
0.628234
ca059fb7bdd7ac838d72f1ce9aa23ec2448608ff
1,215
py
Python
python_resumable/models/chunk.py
akaushik759/python-resumable
0c3a6d908b2c850ea45bfe2a5434ef3cacaa9c51
[ "MIT" ]
6
2017-10-19T20:27:46.000Z
2020-02-24T09:26:25.000Z
python_resumable/models/chunk.py
akaushik759/python-resumable
0c3a6d908b2c850ea45bfe2a5434ef3cacaa9c51
[ "MIT" ]
1
2020-09-10T13:30:33.000Z
2020-09-10T13:30:33.000Z
python_resumable/models/chunk.py
akaushik759/python-resumable
0c3a6d908b2c850ea45bfe2a5434ef3cacaa9c51
[ "MIT" ]
2
2020-09-24T03:41:46.000Z
2020-10-15T17:52:09.000Z
from os import path from base64 import decodebytes class Chunk(object): ''' Contains all the chunk info. Attributes: chunk_number chunk_data chunk_name chunk_path chunk_name is (repo_dict['file_id'] + '.' + resumable_dict['resumableChunkNumber']) ...
26.413043
73
0.61893
36d218598720ae23c4f20bb0da8e17393d85f5bf
410
py
Python
psydac/__init__.py
mayuri-dhote/psydac
01ddbe2d049a599684c45060912d01c2658160a3
[ "MIT" ]
20
2019-07-30T12:37:57.000Z
2022-03-09T11:35:04.000Z
psydac/__init__.py
mayuri-dhote/psydac
01ddbe2d049a599684c45060912d01c2658160a3
[ "MIT" ]
98
2019-04-01T16:32:27.000Z
2022-03-21T19:30:35.000Z
psydac/__init__.py
mayuri-dhote/psydac
01ddbe2d049a599684c45060912d01c2658160a3
[ "MIT" ]
7
2019-10-03T03:49:47.000Z
2022-03-01T09:11:49.000Z
# -*- coding: UTF-8 -*- __all__ = ['__version__', 'api', 'cad', 'core', 'ddm', 'feec', 'fem', 'linalg', 'mapping', 'utilities'] from psydac.version import __version__ from psydac import api from psydac import cad from psydac import core from psydac import ddm from psydac import feec from psydac imp...
25.625
73
0.707317
07fad8996ad382fce895e3c17d8abd9a53f79850
112,633
py
Python
sdk/python/pulumi_aws_native/cloudfront/outputs.py
AaronFriel/pulumi-aws-native
5621690373ac44accdbd20b11bae3be1baf022d1
[ "Apache-2.0" ]
29
2021-09-30T19:32:07.000Z
2022-03-22T21:06:08.000Z
sdk/python/pulumi_aws_native/cloudfront/outputs.py
AaronFriel/pulumi-aws-native
5621690373ac44accdbd20b11bae3be1baf022d1
[ "Apache-2.0" ]
232
2021-09-30T19:26:26.000Z
2022-03-31T23:22:06.000Z
sdk/python/pulumi_aws_native/cloudfront/outputs.py
AaronFriel/pulumi-aws-native
5621690373ac44accdbd20b11bae3be1baf022d1
[ "Apache-2.0" ]
4
2021-11-10T19:42:01.000Z
2022-02-05T10:15:49.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from...
36.61671
171
0.657028
a47676855b00672c610a9e2ee46a17689e203e5b
3,259
py
Python
tests/sc/test_system.py
allenmichael/pyTenable
8372cfdf3ced99de50227f6fbb37d6db2b26291e
[ "MIT" ]
null
null
null
tests/sc/test_system.py
allenmichael/pyTenable
8372cfdf3ced99de50227f6fbb37d6db2b26291e
[ "MIT" ]
null
null
null
tests/sc/test_system.py
allenmichael/pyTenable
8372cfdf3ced99de50227f6fbb37d6db2b26291e
[ "MIT" ]
null
null
null
from tenable.errors import * from ..checker import check, single import pytest, zipfile @pytest.mark.vcr() def test_system_details(unauth): s = unauth.system.details() assert isinstance(s, dict) check(s, 'ACAS', str) check(s, 'PasswordComplexity', str) check(s, 'banner', str) check(s, 'buildID'...
31.640777
92
0.686714
fe5b42839c5db859af897a5a335e9e6d63c87de7
2,299
py
Python
services/lib/api.py
jyaganeh/zenircbot
2484b68c05548ab758855f89ec4b45b2e52d000f
[ "MIT" ]
1
2020-05-14T02:27:53.000Z
2020-05-14T02:27:53.000Z
services/lib/api.py
jyaganeh/zenircbot
2484b68c05548ab758855f89ec4b45b2e52d000f
[ "MIT" ]
null
null
null
services/lib/api.py
jyaganeh/zenircbot
2484b68c05548ab758855f89ec4b45b2e52d000f
[ "MIT" ]
null
null
null
from redis import StrictRedis import json from threading import Thread def send_privmsg(to, message): if isinstance(to, basestring): to = (to,) for channel in to: get_redis_client().publish('out', json.dumps({ 'version':...
37.080645
78
0.472379
ab6a1b0f8df393e8ed5c9d19bdbccf86b154b7a9
371
py
Python
src/users/api/urls.py
aliharby12/Simple-vezeeta-project
feb6df8b354ac284edc645059bea17021169dcfa
[ "MIT" ]
null
null
null
src/users/api/urls.py
aliharby12/Simple-vezeeta-project
feb6df8b354ac284edc645059bea17021169dcfa
[ "MIT" ]
5
2021-03-19T12:06:16.000Z
2022-02-10T11:44:27.000Z
src/users/api/urls.py
aliharby12/Simple-vezeeta-project
feb6df8b354ac284edc645059bea17021169dcfa
[ "MIT" ]
null
null
null
from django.urls import path, include from rest_framework import routers from . import views router = routers.DefaultRouter() router.register('users', views.UserView) router.register('profiles', views.ProfileView) router.register('comments', views.CommentView) router.register('reservation', views.ReservationView) ur...
26.5
53
0.77628
3d9d9e5589abaa3defaea13ad9aa8ee11182b15c
3,204
py
Python
helm/dagster/schema/schema/charts/utils/kubernetes.py
elsenorbw/dagster
b38822d7463812624dab0b2dae7c62e2a8d59828
[ "Apache-2.0" ]
null
null
null
helm/dagster/schema/schema/charts/utils/kubernetes.py
elsenorbw/dagster
b38822d7463812624dab0b2dae7c62e2a8d59828
[ "Apache-2.0" ]
1
2021-06-21T18:30:02.000Z
2021-06-25T21:18:39.000Z
helm/dagster/schema/schema/charts/utils/kubernetes.py
elsenorbw/dagster
b38822d7463812624dab0b2dae7c62e2a8d59828
[ "Apache-2.0" ]
null
null
null
from enum import Enum from typing import Any, Dict, List, Optional from pydantic import BaseModel, Extra # pylint: disable=no-name-in-module from .utils import SupportedKubernetes, create_definition_ref class Annotations(BaseModel): __root__: Dict[str, str] class Config: schema_extra = { ...
23.386861
97
0.654182
37ea81f9715c58e33a6eadde971b59eb52fb0840
5,590
py
Python
src/helheimr_heating/tests/test_broadcast.py
snototter/ragnaroek
b81ef86a8fbbf0be74a039784aedc7bfb5321bc0
[ "MIT" ]
null
null
null
src/helheimr_heating/tests/test_broadcast.py
snototter/ragnaroek
b81ef86a8fbbf0be74a039784aedc7bfb5321bc0
[ "MIT" ]
null
null
null
src/helheimr_heating/tests/test_broadcast.py
snototter/ragnaroek
b81ef86a8fbbf0be74a039784aedc7bfb5321bc0
[ "MIT" ]
null
null
null
import pytest import numpy as np from attributedict.collections import AttributeDict from helheimr_heating.utils import broadcast as bc, img_utils def test_message_bc(): # Helper to verify number of messages for a specific receiver def _check(rcv, num): rsp = bc.peek_broadcasts(rcv) assert rsp...
28.090452
136
0.632916
b0fad354eb06525e09ed2bc1fb486219fcef0ca5
2,468
py
Python
src/controller/python/chip/ble/library_handle.py
SiliconLabs/connectedhomeip-1
e2b2f30b01d13838481d08f79b343a5aeaca91d9
[ "Apache-2.0" ]
14
2021-06-23T19:52:29.000Z
2022-03-31T14:14:03.000Z
src/controller/python/chip/ble/library_handle.py
SiliconLabs/connectedhomeip-1
e2b2f30b01d13838481d08f79b343a5aeaca91d9
[ "Apache-2.0" ]
40
2021-05-04T20:37:25.000Z
2022-01-25T22:25:40.000Z
src/controller/python/chip/ble/library_handle.py
SiliconLabs/connectedhomeip-1
e2b2f30b01d13838481d08f79b343a5aeaca91d9
[ "Apache-2.0" ]
7
2021-08-14T04:36:31.000Z
2022-03-31T10:39:09.000Z
# # Copyright (c) 2021 Project CHIP 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 applica...
41.133333
85
0.763776
5f5c9de0dc9c34a96e949ee394ca0541736cfaa3
920
py
Python
kubernetes/test/test_v1_container.py
TomasTomecek/kubernetes-python
c37c074303a13c72662b9201ccc023fb0ca45755
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1_container.py
TomasTomecek/kubernetes-python
c37c074303a13c72662b9201ccc023fb0ca45755
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1_container.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...
20.444444
105
0.695652
1858b27dd7a47120adc7808ad2a025ba6bb75032
2,986
py
Python
waypoint/utils/cookie_fetcher.py
amickael/waypoint
7e05f58635bdfda32d5a16e28c14cdb4a0fffce9
[ "MIT" ]
null
null
null
waypoint/utils/cookie_fetcher.py
amickael/waypoint
7e05f58635bdfda32d5a16e28c14cdb4a0fffce9
[ "MIT" ]
null
null
null
waypoint/utils/cookie_fetcher.py
amickael/waypoint
7e05f58635bdfda32d5a16e28c14cdb4a0fffce9
[ "MIT" ]
null
null
null
from urllib.parse import urlparse, parse_qs, unquote from typing import Union from selenium.webdriver import Chrome, ChromeOptions from selenium.webdriver.chrome.service import Service from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support im...
40.351351
107
0.689551
4c5254ffc3773c3ca91fa76b55ed873e0e71d7bc
6,970
py
Python
python/rootba/latex/results_table.py
zeta1999/rootba
d1a680a88980d7ac57cf2ff7459d00ac1cab6c9a
[ "BSD-3-Clause" ]
139
2021-06-20T17:20:44.000Z
2022-03-30T01:15:38.000Z
python/rootba/latex/results_table.py
zeta1999/rootba
d1a680a88980d7ac57cf2ff7459d00ac1cab6c9a
[ "BSD-3-Clause" ]
5
2021-07-10T11:51:08.000Z
2022-01-01T00:05:39.000Z
python/rootba/latex/results_table.py
NikolausDemmel/rootba
0762f36a0afa7196709bd0fa147ae75ee7c7632c
[ "BSD-3-Clause" ]
20
2021-06-22T03:33:30.000Z
2022-03-28T11:41:54.000Z
# # BSD 3-Clause License # # This file is part of the RootBA project. # https://github.com/NikolausDemmel/rootba # # Copyright (c) 2021, Nikolaus Demmel. # All rights reserved. # import numbers import os import math import numpy as np from pylatex import Subsection, Tabular, TextColor from pylatex import MultiRow, Fo...
42.5
116
0.521664
a43df9db57fcdc6460f57512677600052c4f8c11
1,364
py
Python
final/170401073/client.py
hasan-se/blm304
893d15282497a426ff96b0c8b6c77d57c406742e
[ "Unlicense" ]
1
2021-05-04T21:46:08.000Z
2021-05-04T21:46:08.000Z
final/170401073/client.py
hasan-se/blm304
893d15282497a426ff96b0c8b6c77d57c406742e
[ "Unlicense" ]
null
null
null
final/170401073/client.py
hasan-se/blm304
893d15282497a426ff96b0c8b6c77d57c406742e
[ "Unlicense" ]
null
null
null
#Mehmet Salih Çelik 170401073 import socket import datetime import os import time import sys ipiste=str(input("Sunucunun ip adresini giriniz :")) HOST = ipiste PORT = 142 with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s: s.connect((HOST, PORT)) a=time.time() data = s.recv(1024) ...
24.357143
95
0.670088
0284231d28993a9e9487209754aaef984b06b8ab
432
py
Python
hca/dss/cli.py
mshadbolt/dcp-cli
4d844f3c3a299162c68e25e9ffc6ffe7e8bf7ce8
[ "MIT" ]
null
null
null
hca/dss/cli.py
mshadbolt/dcp-cli
4d844f3c3a299162c68e25e9ffc6ffe7e8bf7ce8
[ "MIT" ]
null
null
null
hca/dss/cli.py
mshadbolt/dcp-cli
4d844f3c3a299162c68e25e9ffc6ffe7e8bf7ce8
[ "MIT" ]
null
null
null
from . import DSSClient def add_commands(subparsers, help_menu=False): dss_parser = subparsers.add_parser('dss', help="Interact with the HCA Data Storage System") def help(args): dss_parser.print_help() dss_parser.set_defaults(entry_point=help) dss_subparsers = dss_parser.add_subparsers() ...
33.230769
95
0.763889
c279bd7a3be9883d55576c1ca57228b66b78d412
4,083
py
Python
unsupervised_learning/partitioning_around_medoids.py
SuccessionEcologicalServices/ML-From-Scratch
d10c898d2376aa062257321fdfd2c57bf74d5237
[ "MIT" ]
1
2018-05-01T19:40:45.000Z
2018-05-01T19:40:45.000Z
unsupervised_learning/partitioning_around_medoids.py
elmerehbi/ML-From-Scratch
6d5b655f76513a4f19b236a683c3d5028014e951
[ "MIT" ]
null
null
null
unsupervised_learning/partitioning_around_medoids.py
elmerehbi/ML-From-Scratch
6d5b655f76513a4f19b236a683c3d5028014e951
[ "MIT" ]
1
2017-06-13T19:39:14.000Z
2017-06-13T19:39:14.000Z
import sys, os, math, random from sklearn import datasets import numpy as np # Import helper functions dir_path = os.path.dirname(os.path.realpath(__file__)) sys.path.insert(0, dir_path + "/../utils") from data_manipulation import normalize from data_operation import euclidean_distance sys.path.insert(0, dir_path + "/...
29.586957
89
0.715895
1b485b8ff41fe9ceb78d997db282f2edca4d6656
303
py
Python
src/python/Problem097.py
mchrzanowski/ProjectEuler
06a24cadbd2c38fb42c3935779fc7ffb6de4e1b5
[ "MIT" ]
null
null
null
src/python/Problem097.py
mchrzanowski/ProjectEuler
06a24cadbd2c38fb42c3935779fc7ffb6de4e1b5
[ "MIT" ]
null
null
null
src/python/Problem097.py
mchrzanowski/ProjectEuler
06a24cadbd2c38fb42c3935779fc7ffb6de4e1b5
[ "MIT" ]
null
null
null
''' Created on Jan 22, 2012 @author: mchrzanowski ''' from time import time LIMIT = 10 def main(): start = time() print "Last ten digits: ", (28433 * 2 ** 7830457 + 1) % 10 ** LIMIT end = time() print "Runtime: ", end - start, " seconds. " if __name__ == '__main__': main()
15.947368
71
0.567657
bec5e54ea1d82c721dccfee82f6c4271155e2930
12,484
py
Python
google/cloud/aiplatform_v1/services/prediction_service/async_client.py
geraint0923/python-aiplatform
f40f32289e1fbeb93b35e4b66f65d15528a6481c
[ "Apache-2.0" ]
null
null
null
google/cloud/aiplatform_v1/services/prediction_service/async_client.py
geraint0923/python-aiplatform
f40f32289e1fbeb93b35e4b66f65d15528a6481c
[ "Apache-2.0" ]
null
null
null
google/cloud/aiplatform_v1/services/prediction_service/async_client.py
geraint0923/python-aiplatform
f40f32289e1fbeb93b35e4b66f65d15528a6481c
[ "Apache-2.0" ]
null
null
null
# -*- 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...
44.585714
146
0.675665
8c3648c743043666e6bedf9ae44a8dcdbf8c5bf4
782
py
Python
Gems/Atom/RPI/Tools/atom_rpi_tools/utils.py
aaarsene/o3de
37e3b0226958974defd14dd6d808e8557dcd7345
[ "Apache-2.0", "MIT" ]
1
2021-09-13T00:01:12.000Z
2021-09-13T00:01:12.000Z
Gems/Atom/RPI/Tools/atom_rpi_tools/utils.py
aaarsene/o3de
37e3b0226958974defd14dd6d808e8557dcd7345
[ "Apache-2.0", "MIT" ]
null
null
null
Gems/Atom/RPI/Tools/atom_rpi_tools/utils.py
aaarsene/o3de
37e3b0226958974defd14dd6d808e8557dcd7345
[ "Apache-2.0", "MIT" ]
1
2021-07-20T11:07:25.000Z
2021-07-20T11:07:25.000Z
""" Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution. SPDX-License-Identifier: Apache-2.0 OR MIT """ import os.path from os import path import shutil import json def find_or_copy_file(destFilePath, sourceFilePat...
28.962963
155
0.726343
b71275b0e2d9c1fa8459e5d9329358fb2d897c23
10,096
py
Python
examples/text_classification/train.py
Qin-Folks/text
cb1ca5b29c794d87e8351b4b29f8f7544ee69794
[ "BSD-3-Clause" ]
null
null
null
examples/text_classification/train.py
Qin-Folks/text
cb1ca5b29c794d87e8351b4b29f8f7544ee69794
[ "BSD-3-Clause" ]
null
null
null
examples/text_classification/train.py
Qin-Folks/text
cb1ca5b29c794d87e8351b4b29f8f7544ee69794
[ "BSD-3-Clause" ]
null
null
null
import os import logging import argparse import torch import sys from torchtext.datasets import text_classification from torch.utils.data import DataLoader from model import TextSentiment from torch.utils.data.dataset import random_split r""" This file shows the training process of the text classification model. ""...
39.905138
97
0.641343
1ea709cb526c6748b23ee8e96a7a0916fb1594c6
2,314
py
Python
setup.py
adamnovak/PyVCF
b8c0af7ee8382297aaf41409a359410263df5f0c
[ "MIT" ]
null
null
null
setup.py
adamnovak/PyVCF
b8c0af7ee8382297aaf41409a359410263df5f0c
[ "MIT" ]
null
null
null
setup.py
adamnovak/PyVCF
b8c0af7ee8382297aaf41409a359410263df5f0c
[ "MIT" ]
null
null
null
from setuptools import setup from distutils.core import setup from distutils.extension import Extension try: from Cython.Distutils import build_ext CYTHON = True except: CYTHON = False requires = [] # python 2.6 does not have argparse try: import argparse except ImportError: requires.append('argp...
26.597701
73
0.632239
90dcb9647b5b1bdc6d25ab689d26c967b9576abb
1,222
py
Python
modoboa/lib/migrations/0002_rename_parameters.py
HarshCasper/modoboa
a00baa0593107992f545ee3e89cd4346b9615a96
[ "0BSD" ]
1,602
2016-12-15T14:25:34.000Z
2022-03-31T16:49:25.000Z
modoboa/lib/migrations/0002_rename_parameters.py
sebageek/modoboa
57f5d57ea60a57e8dcac970085dfc07082481fc6
[ "0BSD" ]
1,290
2016-12-14T15:39:05.000Z
2022-03-31T13:49:09.000Z
modoboa/lib/migrations/0002_rename_parameters.py
sebageek/modoboa
57f5d57ea60a57e8dcac970085dfc07082481fc6
[ "0BSD" ]
272
2016-12-22T11:58:18.000Z
2022-03-17T15:57:24.000Z
from django.db import models, migrations APPLICATIONS = [ ("admin", "modoboa_admin"), ("amavis", "modoboa_amavis"), ("limits", "modoboa_admin_limits"), ("postfix_autoreply", "modoboa_postfix_autoreply"), ("postfix_relay_domains", "modoboa_admin_relaydomains"), ("radicale", "modoboa_radicale"), ...
28.418605
60
0.651391
ac8e94ec74891883deda87c681e00df6aaccff43
523
py
Python
molecules/utils/helper_functions/clear_dir.py
yngtodd/molecules-deprecated
adf9477e6122fa4e92cedbbba26a358ea903e3a4
[ "MIT" ]
null
null
null
molecules/utils/helper_functions/clear_dir.py
yngtodd/molecules-deprecated
adf9477e6122fa4e92cedbbba26a358ea903e3a4
[ "MIT" ]
null
null
null
molecules/utils/helper_functions/clear_dir.py
yngtodd/molecules-deprecated
adf9477e6122fa4e92cedbbba26a358ea903e3a4
[ "MIT" ]
1
2021-11-19T01:57:35.000Z
2021-11-19T01:57:35.000Z
import os, shutil; # Directory paths for extract_native-contact path_1 = "./native-contact/" path_2 = "./native-contact/raw/" path_3 = "./native-contact/data/" # EFFECTS: Deletes raw and data directories and leaves native-contact directory empty. def empty_directory(dir_path): print "Emptying directory ..." f...
30.764706
86
0.665392
992228510d8298775eb3ca006b9b560215b268fe
1,414
py
Python
Graphic/graphic_image_with_js.py
pyecharts/pyecharts_gallery
8430c37df923860b36c9d1d86f2adc9d94b9d72c
[ "MIT" ]
759
2019-04-28T22:42:10.000Z
2022-03-31T12:32:10.000Z
Graphic/graphic_image_with_js.py
pyecharts/pyecharts_gallery
8430c37df923860b36c9d1d86f2adc9d94b9d72c
[ "MIT" ]
65
2019-06-10T07:38:25.000Z
2022-03-24T10:10:03.000Z
Graphic/graphic_image_with_js.py
pyecharts/pyecharts_gallery
8430c37df923860b36c9d1d86f2adc9d94b9d72c
[ "MIT" ]
505
2019-04-28T08:45:33.000Z
2022-03-29T07:08:33.000Z
from pyecharts import options as opts from pyecharts.charts import Bar, Grid from pyecharts.faker import Faker bar = ( Bar(init_opts=opts.InitOpts(chart_id="1234")) .add_xaxis(Faker.choose()) .add_yaxis("商家A", Faker.values()) .add_yaxis("商家B", Faker.values()) .set_global_opts( title_opts=op...
29.458333
88
0.509194
43527976603141661888e5adf4dd25fd0d0f9b57
9,152
py
Python
tools/tests/test_template_parser.py
Awawdi/zulip
f2e7b92b024cfec6a9babace8298de9537925347
[ "Apache-2.0" ]
3
2020-11-03T15:18:04.000Z
2021-02-16T11:49:51.000Z
tools/tests/test_template_parser.py
adb-web-designs/zulip
1b303e7b2f0271f81265123ad1e7125ed3914d68
[ "Apache-2.0" ]
18
2021-08-14T01:12:30.000Z
2022-03-04T20:28:51.000Z
tools/tests/test_template_parser.py
adb-web-designs/zulip
1b303e7b2f0271f81265123ad1e7125ed3914d68
[ "Apache-2.0" ]
1
2021-08-29T11:13:05.000Z
2021-08-29T11:13:05.000Z
import sys import unittest from typing import Optional try: from tools.lib.template_parser import ( TemplateParserException, is_django_block_tag, tokenize, validate, ) except ImportError: print("ERROR!!! You need to run this via tools/test-tools.") sys.exit(1) class Pa...
28.16
100
0.518247
55646953d75af0537b630bd353627a0b1f625c3f
1,204
py
Python
python-demos/read_write_files/write_json_file.py
zdenek-nemec/sandbox
31572cb790869c4c2036c0a0902c1a054a9043d5
[ "MIT" ]
1
2020-05-31T09:24:51.000Z
2020-05-31T09:24:51.000Z
python-demos/read_write_files/write_json_file.py
zdenek-nemec/sandbox
31572cb790869c4c2036c0a0902c1a054a9043d5
[ "MIT" ]
33
2019-04-21T13:22:03.000Z
2022-03-06T12:11:18.000Z
python-demos/read_write_files/write_json_file.py
zdenek-nemec/sandbox
31572cb790869c4c2036c0a0902c1a054a9043d5
[ "MIT" ]
null
null
null
import json DEFAULT_FILENAME = "output_test_file.json" DEFAULT_CONTENT = [ { "record_id": 1, "calling": { "imsi": "230010000000001", "msisdn": "+420731000001", "operator": "T-Mobile CZ", }, "called": { "imsi": "230010000000002", ...
25.083333
67
0.505814
9563db86f4f40acb75a4897e1831ac76bba49024
16,918
py
Python
opensfm/features.py
YonatanSimson/OpenSfM
358843738359f4b5d767b22df2f3960ded31c981
[ "BSD-2-Clause" ]
1
2019-05-31T13:50:41.000Z
2019-05-31T13:50:41.000Z
opensfm/features.py
Pandinosaurus/OpenSfM
b892ba9fd5e7fd6c7a9e3c81edddca80f71c1cd5
[ "BSD-2-Clause" ]
null
null
null
opensfm/features.py
Pandinosaurus/OpenSfM
b892ba9fd5e7fd6c7a9e3c81edddca80f71c1cd5
[ "BSD-2-Clause" ]
2
2017-03-31T16:54:34.000Z
2018-07-10T11:32:22.000Z
"""Tools to extract features.""" import logging import sys import time import cv2 import numpy as np from opensfm import context, pyfeatures logger = logging.getLogger(__name__) def resized_image(image, max_size): """Resize image to feature_process_size.""" h, w, _ = image.shape size = max(w, h) i...
35.616842
116
0.645053
7be391124b1d1a2a6491b7e4674100439f9b62a9
5,867
py
Python
c2.py
Sigmoid-Frontsquat-LLC/classification-model-backend
7366302063315a245b7ab20219fb22ecf67bd377
[ "MIT" ]
null
null
null
c2.py
Sigmoid-Frontsquat-LLC/classification-model-backend
7366302063315a245b7ab20219fb22ecf67bd377
[ "MIT" ]
null
null
null
c2.py
Sigmoid-Frontsquat-LLC/classification-model-backend
7366302063315a245b7ab20219fb22ecf67bd377
[ "MIT" ]
null
null
null
import sys # this is for extracting command line arguments. def parse_activator(flag, value): if flag[1] == 'a': return (True, value) else: return (False,None) pass def parse_optimizer(flag, value): if flag[1] == 'o': return (True, value) else: return (False,None) ...
25.845815
95
0.647009
3f727d697f7faa9c1f148dfdf8d3d44621a8d10a
509
py
Python
my_lambdata/my_script.py
TravisJRCain/lambdata-zmurray
61a906c896ec629e2cd486b300b04921159840da
[ "MIT" ]
null
null
null
my_lambdata/my_script.py
TravisJRCain/lambdata-zmurray
61a906c896ec629e2cd486b300b04921159840da
[ "MIT" ]
null
null
null
my_lambdata/my_script.py
TravisJRCain/lambdata-zmurray
61a906c896ec629e2cd486b300b04921159840da
[ "MIT" ]
null
null
null
import pandas as pd # import my mod # from my-mod import flto_nc and dato_cl from my_lambdata.my_mod import flto_nc from my_lambdata.my_mod import split_column_date # Instantiate df to test mod.py df = pd.DataFrame({"Friends": ['Gene, Aaron, Dom, Scott, Zack'], "Times won setback": [3, 1, 2, 0, 507...
31.8125
71
0.591356
7e395bf332750acabbf445b806ce6aac0957dbc2
1,658
py
Python
Interface/code.py
vagabond11/Elk-search-analysis
fc7ee38c57bf8eb1abc2ccaaefd75734a5ecc27b
[ "MIT" ]
null
null
null
Interface/code.py
vagabond11/Elk-search-analysis
fc7ee38c57bf8eb1abc2ccaaefd75734a5ecc27b
[ "MIT" ]
null
null
null
Interface/code.py
vagabond11/Elk-search-analysis
fc7ee38c57bf8eb1abc2ccaaefd75734a5ecc27b
[ "MIT" ]
null
null
null
from flask import Flask , render_template , url_for , request, redirect, Markup import json import codecs import pyodbc from tqdm.notebook import tqdm from elasticsearch import Elasticsearch import requests set es = Elasticsearch([{'host': 'localhost', 'port': '9200'}]) app = Flask(__name__ , template_folder = 'te...
29.087719
79
0.486731
27d8c98d1bc0c2ae241f07a40306c297317d6c3b
5,333
py
Python
tangos/web/views/halo_view.py
TobiBu/tangos
decab8c892c5937fd68474a375089abef198dba2
[ "BSD-3-Clause" ]
null
null
null
tangos/web/views/halo_view.py
TobiBu/tangos
decab8c892c5937fd68474a375089abef198dba2
[ "BSD-3-Clause" ]
null
null
null
tangos/web/views/halo_view.py
TobiBu/tangos
decab8c892c5937fd68474a375089abef198dba2
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import from pyramid.view import view_config import tangos from tangos import core import numpy as np from .halo_data import format_number, _relative_description import sqlalchemy, sqlalchemy.orm from six.moves import zip from . import halo_from_request class TimestepInfo(object): de...
40.709924
137
0.606413
f8800b71b2af30725ff065514dd022c3834aa1f4
8,943
py
Python
gslib/addlhelp/metadata.py
maxshine/gsutil
c81d67f2286402accfcdf79f0199844949bebefc
[ "Apache-2.0" ]
1,894
2015-04-17T18:29:53.000Z
2022-03-28T22:41:06.000Z
gslib/addlhelp/metadata.py
maxshine/gsutil
c81d67f2286402accfcdf79f0199844949bebefc
[ "Apache-2.0" ]
4,640
2015-07-08T16:19:08.000Z
2019-12-02T15:01:27.000Z
gslib/addlhelp/metadata.py
maxshine/gsutil
c81d67f2286402accfcdf79f0199844949bebefc
[ "Apache-2.0" ]
698
2015-06-02T19:18:35.000Z
2022-03-29T16:57:15.000Z
# -*- coding: utf-8 -*- # Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
42.183962
80
0.74986
cd0e17de71b2819051cf2e6b0a19521b1e984dce
52
py
Python
old_lambda/lambda_function/__init__.py
jdkandersson/cloudformation-kubernetes
8bd14379540bd2d122283c74166883e375cb348e
[ "Apache-2.0" ]
null
null
null
old_lambda/lambda_function/__init__.py
jdkandersson/cloudformation-kubernetes
8bd14379540bd2d122283c74166883e375cb348e
[ "Apache-2.0" ]
null
null
null
old_lambda/lambda_function/__init__.py
jdkandersson/cloudformation-kubernetes
8bd14379540bd2d122283c74166883e375cb348e
[ "Apache-2.0" ]
null
null
null
"""Custom cloudformation handler for Kubernetes."""
26
51
0.769231
1c609eeb2ae4ca6a6e95e8ddada6e94504cbcf2d
451
py
Python
boost_adaptbx/tests/tst_swig_args.py
dperl-sol/cctbx_project
b9e390221a2bc4fd00b9122e97c3b79c632c6664
[ "BSD-3-Clause-LBNL" ]
155
2016-11-23T12:52:16.000Z
2022-03-31T15:35:44.000Z
boost_adaptbx/tests/tst_swig_args.py
dperl-sol/cctbx_project
b9e390221a2bc4fd00b9122e97c3b79c632c6664
[ "BSD-3-Clause-LBNL" ]
590
2016-12-10T11:31:18.000Z
2022-03-30T23:10:09.000Z
boost_adaptbx/tests/tst_swig_args.py
dperl-sol/cctbx_project
b9e390221a2bc4fd00b9122e97c3b79c632c6664
[ "BSD-3-Clause-LBNL" ]
115
2016-11-15T08:17:28.000Z
2022-02-09T15:30:14.000Z
from __future__ import absolute_import, division, print_function import example import boost_python_swig_args_ext import sys def exercise(): c = example.Circle(10) c.x = 20 c.y = 30 s = example.Square(10) s.x = -10 s.y = 5 forever = "--forever" in sys.argv[1:] while True: boost_python_swig_args_e...
19.608696
64
0.698448
1af78bae29c96149df5fcc66b322cdc7b576767e
12,920
py
Python
sdks/python/appcenter_sdk/models/StackFrame.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/appcenter_sdk/models/StackFrame.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/appcenter_sdk/models/StackFrame.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
2
2019-10-23T06:31:05.000Z
2021-08-21T17:32:47.000Z
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ import pprint import re # noqa: F401 import six class StackFrame(obj...
27.844828
244
0.583359
9ff28a71dc4a95cbff431c182b9284a7de2461b3
14,701
py
Python
preprocess.py
xkortex/Siraj_Chatbot_Challenge
3e2aaafb70afd3301ab79d74c08d6fb714c224c8
[ "Apache-2.0" ]
60
2017-04-08T05:30:21.000Z
2021-06-19T17:40:11.000Z
preprocess.py
xkortex/Siraj_Chatbot_Challenge
3e2aaafb70afd3301ab79d74c08d6fb714c224c8
[ "Apache-2.0" ]
1
2017-04-09T06:03:18.000Z
2017-04-11T03:38:07.000Z
preprocess.py
xkortex/Siraj_Chatbot_Challenge
3e2aaafb70afd3301ab79d74c08d6fb714c224c8
[ "Apache-2.0" ]
39
2017-04-11T08:49:34.000Z
2019-10-07T14:38:46.000Z
'''Preprocessing code for network on bAbI dataset. References: - Jason Weston, Antoine Bordes, Sumit Chopra, Tomas Mikolov, Alexander M. Rush, "Towards AI-Complete Question Answering: A Set of Prerequisite Toy Tasks", http://arxiv.org/abs/1502.05698 - Sainbayar Sukhbaatar, Arthur Szlam, Jason Weston, Rob Fergus, ...
35.424096
123
0.577308
8ad69fcbd4f1ee977e00b5b94eacf77b3737ab0a
9,237
py
Python
nova/notifications/objects/base.py
karimull/nova
9dcff4d4ed3e5ed5c0f58638c863562f4761495c
[ "Apache-2.0" ]
null
null
null
nova/notifications/objects/base.py
karimull/nova
9dcff4d4ed3e5ed5c0f58638c863562f4761495c
[ "Apache-2.0" ]
null
null
null
nova/notifications/objects/base.py
karimull/nova
9dcff4d4ed3e5ed5c0f58638c863562f4761495c
[ "Apache-2.0" ]
null
null
null
# 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...
41.236607
79
0.658439
568e879c9c5d983665843ace84cf11dcffa25212
118,721
py
Python
tensorflow/python/keras/layers/recurrent.py
TaeWoo21/Tensorflow
7b9f418c374b3e919fe88e22ddcaf5528222eef7
[ "Apache-2.0" ]
null
null
null
tensorflow/python/keras/layers/recurrent.py
TaeWoo21/Tensorflow
7b9f418c374b3e919fe88e22ddcaf5528222eef7
[ "Apache-2.0" ]
null
null
null
tensorflow/python/keras/layers/recurrent.py
TaeWoo21/Tensorflow
7b9f418c374b3e919fe88e22ddcaf5528222eef7
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
39.337641
118
0.662006
30daa693b3201b2fc95673daa82c2cad624596b4
937
py
Python
var/spack/repos/builtin/packages/r-cpp11/package.py
varioustoxins/spack
cab0e4cb240f34891a6d753f3393e512f9a99e9a
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/r-cpp11/package.py
varioustoxins/spack
cab0e4cb240f34891a6d753f3393e512f9a99e9a
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
6
2022-01-08T08:41:11.000Z
2022-03-14T19:28:07.000Z
var/spack/repos/builtin/packages/r-cpp11/package.py
foeroyingur/spack
5300cbbb2e569190015c72d0970d25425ea38647
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class RCpp11(RPackage): """cpp11: A C++11 Interface for R's C Interface Provides a header o...
40.73913
95
0.75667
7dcea4aeafabb9c481dccdc1aaf9bd153572bb7d
8,040
py
Python
tools/wptrunner/wptrunner/environment.py
nordzilla/wpt
38ecde806a5f1710d9e5beba700cef7352f7570e
[ "BSD-3-Clause" ]
null
null
null
tools/wptrunner/wptrunner/environment.py
nordzilla/wpt
38ecde806a5f1710d9e5beba700cef7352f7570e
[ "BSD-3-Clause" ]
null
null
null
tools/wptrunner/wptrunner/environment.py
nordzilla/wpt
38ecde806a5f1710d9e5beba700cef7352f7570e
[ "BSD-3-Clause" ]
null
null
null
import json import os import multiprocessing import signal import socket import sys import time from six import iteritems from mozlog import get_default_logger, handlers, proxy from .wptlogging import LogLevelRewriter here = os.path.split(__file__)[0] repo_root = os.path.abspath(os.path.join(here, os.pardir, os.pard...
33.640167
129
0.611194
ef688174f13fe69b9f91fd37ffd18e508e73d731
9,956
py
Python
monai/utils/misc.py
Irme/MONAI
dc4bf661831b14f4231cb325cc1b15d38c1e406c
[ "Apache-2.0" ]
1
2020-12-03T21:28:09.000Z
2020-12-03T21:28:09.000Z
monai/utils/misc.py
Irme/MONAI
dc4bf661831b14f4231cb325cc1b15d38c1e406c
[ "Apache-2.0" ]
null
null
null
monai/utils/misc.py
Irme/MONAI
dc4bf661831b14f4231cb325cc1b15d38c1e406c
[ "Apache-2.0" ]
1
2020-06-11T13:03:02.000Z
2020-06-11T13:03:02.000Z
# Copyright 2020 MONAI Consortium # 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, s...
32.116129
119
0.631579
277552e7f0ed111e6836a8d5bcdd67db7aecfaad
6,233
py
Python
model/general_recommender/MF.py
wubinzzu/TNNLS
1811091edaf4926f202a5a0cdab31814c0310a9e
[ "MIT" ]
null
null
null
model/general_recommender/MF.py
wubinzzu/TNNLS
1811091edaf4926f202a5a0cdab31814c0310a9e
[ "MIT" ]
null
null
null
model/general_recommender/MF.py
wubinzzu/TNNLS
1811091edaf4926f202a5a0cdab31814c0310a9e
[ "MIT" ]
null
null
null
""" Reference: Steffen Rendle et al., "BPR: Bayesian Personalized Ranking from Implicit Feedback." in UAI 2009. GMF: Xiangnan He et al., "Neural Collaborative Filtering." in WWW 2017. @author: wubin """ import tensorflow as tf import numpy as np from time import time from util import learner, tool from model.Abstra...
47.219697
124
0.611744
fe9f5dcc9042b0bf3815baef85f2b61379b6efa1
4,147
py
Python
analyses/fire_season_dataset_diffs.py
akuhnregnier/wildfire-analysis
a04deada145cec864051d2fb15aec1a53a0246b9
[ "MIT" ]
null
null
null
analyses/fire_season_dataset_diffs.py
akuhnregnier/wildfire-analysis
a04deada145cec864051d2fb15aec1a53a0246b9
[ "MIT" ]
null
null
null
analyses/fire_season_dataset_diffs.py
akuhnregnier/wildfire-analysis
a04deada145cec864051d2fb15aec1a53a0246b9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Investigate how fire season estimates differ between datasets. """ import logging import math import os import warnings import iris import matplotlib as mpl import matplotlib.pyplot as plt import numpy as np import pandas as pd from joblib import parallel_backend from wildfires.analysis im...
26.754839
88
0.701471
031b40d3ba85bd6d4106bedb422c96a2015c7f4f
34,196
py
Python
tests/test_study.py
liori/optuna
9f5c5cf5c36df1628567f0b4a9873892d148ad40
[ "MIT" ]
null
null
null
tests/test_study.py
liori/optuna
9f5c5cf5c36df1628567f0b4a9873892d148ad40
[ "MIT" ]
null
null
null
tests/test_study.py
liori/optuna
9f5c5cf5c36df1628567f0b4a9873892d148ad40
[ "MIT" ]
null
null
null
import copy import itertools import multiprocessing import pickle import threading import time from unittest.mock import Mock # NOQA from unittest.mock import patch import uuid import _pytest.capture import joblib import pandas as pd import pytest import optuna from optuna.testing.storage import StorageSupplier from...
32.199623
99
0.651626
6ae0041ec06abb5f41acc8d9e0ad54c9727be449
39,758
py
Python
rmgpy/reactionTest.py
Lyle-zhang/RMG-Py
273eb51fa3c175562056c85d7d61814d5fa2986d
[ "MIT" ]
null
null
null
rmgpy/reactionTest.py
Lyle-zhang/RMG-Py
273eb51fa3c175562056c85d7d61814d5fa2986d
[ "MIT" ]
null
null
null
rmgpy/reactionTest.py
Lyle-zhang/RMG-Py
273eb51fa3c175562056c85d7d61814d5fa2986d
[ "MIT" ]
1
2021-08-14T13:47:18.000Z
2021-08-14T13:47:18.000Z
#!/usr/bin/env python # encoding: utf-8 -*- """ This module contains unit tests of the rmgpy.reaction module. """ import numpy import unittest from external.wip import work_in_progress from rmgpy.species import Species, TransitionState from rmgpy.reaction import Reaction from rmgpy.statmech.translation import Transl...
42.567452
208
0.566452
ae5d278f6c2333d46da84a2f398579bd3e3fda8c
6,087
py
Python
ignoredialog.py
StinGer-ShoGuN/PySpy
14b1c93baff6a6b93588ca36f9754a3292e12658
[ "MIT" ]
null
null
null
ignoredialog.py
StinGer-ShoGuN/PySpy
14b1c93baff6a6b93588ca36f9754a3292e12658
[ "MIT" ]
null
null
null
ignoredialog.py
StinGer-ShoGuN/PySpy
14b1c93baff6a6b93588ca36f9754a3292e12658
[ "MIT" ]
null
null
null
# !/usr/local/bin/python3.6 # MIT licensed # Copyright (c) 2018 White Russsian # Github: <https://github.com/Eve-PySpy/PySpy>********************** ''' Dialog to view and remove entities from PySpy's list of ignored characters, corporations and alliances. ''' # **********************************************************...
38.770701
121
0.617546
6d7d207975aa8f93e264abbeee4e37969f9d553f
393
py
Python
todjando/wsgi.py
jerhow/todjando
38d9039ec81425e07f7e031c3fcd1e7c31a40d29
[ "MIT" ]
null
null
null
todjando/wsgi.py
jerhow/todjando
38d9039ec81425e07f7e031c3fcd1e7c31a40d29
[ "MIT" ]
null
null
null
todjando/wsgi.py
jerhow/todjando
38d9039ec81425e07f7e031c3fcd1e7c31a40d29
[ "MIT" ]
null
null
null
""" WSGI config for todjando project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETT...
23.117647
78
0.78626
903db9a9ddfc85fe40e096e565bf82aba1d383a3
1,946
py
Python
aliyun-python-sdk-cms/aliyunsdkcms/request/v20190101/DescribeCustomMetricListRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-cms/aliyunsdkcms/request/v20190101/DescribeCustomMetricListRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-cms/aliyunsdkcms/request/v20190101/DescribeCustomMetricListRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
32.433333
83
0.755396
c2ac64c028ccfa837d8d90119da88bc174c623ef
3,290
py
Python
tests/generate_test_pipelines.py
ramitsurana/zenml
6994ea7ec0a38e9495306d55c3069107cdd5e65f
[ "Apache-2.0" ]
1
2021-08-13T03:07:53.000Z
2021-08-13T03:07:53.000Z
tests/generate_test_pipelines.py
ramitsurana/zenml
6994ea7ec0a38e9495306d55c3069107cdd5e65f
[ "Apache-2.0" ]
null
null
null
tests/generate_test_pipelines.py
ramitsurana/zenml
6994ea7ec0a38e9495306d55c3069107cdd5e65f
[ "Apache-2.0" ]
null
null
null
# Copyright (c) maiot GmbH 2021. 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...
35
79
0.682675
7cc9e77c46d752ae7017078317b72fc159a5e5eb
823
py
Python
p2p/forms.py
kutuhal/oracle-r12-accounting
4f21368aa3ecbc6c645691f1917c0df6c6f2cbf2
[ "BSD-3-Clause" ]
null
null
null
p2p/forms.py
kutuhal/oracle-r12-accounting
4f21368aa3ecbc6c645691f1917c0df6c6f2cbf2
[ "BSD-3-Clause" ]
null
null
null
p2p/forms.py
kutuhal/oracle-r12-accounting
4f21368aa3ecbc6c645691f1917c0df6c6f2cbf2
[ "BSD-3-Clause" ]
null
null
null
from django import forms class P2PForm(forms.Form): ITEM_TYPES = ( ('Expense','Expense'), ('Inventory','Inventory')) YES_OR_NO = ((True, 'Yes'), (False, 'No')) item_type = forms.ChoiceField( label = 'Item Type' ,initial='Expense', choices=ITEM_TYPES, widget = forms.Select( attrs={'class':...
48.411765
124
0.606318
55b5b304aed17ce07ec68a8ff6b39b11eb134806
656
py
Python
tools/create_classes.py
jpsantos-mf/ezdxf
2b542a551b2cfc3c0920a5dbf302ff58cea90fbd
[ "MIT" ]
1
2021-06-05T09:15:15.000Z
2021-06-05T09:15:15.000Z
tools/create_classes.py
jpsantos-mf/ezdxf
2b542a551b2cfc3c0920a5dbf302ff58cea90fbd
[ "MIT" ]
null
null
null
tools/create_classes.py
jpsantos-mf/ezdxf
2b542a551b2cfc3c0920a5dbf302ff58cea90fbd
[ "MIT" ]
null
null
null
from pathlib import Path import ezdxf FILENAME = Path('xxx.dxf') doc = ezdxf.readfile(FILENAME) if FILENAME.exists() else ezdxf.new('R2018') FMT = """ '{name}': ['{cpp}', '{app}', {flags}, {proxy}, {entity}],\n""" with open('class_definitions.txt', mode='wt') as f: f.write('CLASSES = {\n') for cls in doc....
31.238095
75
0.579268
4721ac1127ea0b4f0336b616720b14c5a59c7e11
12,092
py
Python
build_model_from_species/src/build_model_from_species_BB/assets/build_model_from_species/pypath_functions.py
PerMedCoE/BuildingBlocks
975780dee7cd6f519238933555b01ed1c46768ee
[ "Apache-2.0" ]
1
2022-02-14T11:14:59.000Z
2022-02-14T11:14:59.000Z
build_model_from_species/src/build_model_from_species_BB/assets/build_model_from_species/pypath_functions.py
PerMedCoE/BuildingBlocks
975780dee7cd6f519238933555b01ed1c46768ee
[ "Apache-2.0" ]
null
null
null
build_model_from_species/src/build_model_from_species_BB/assets/build_model_from_species/pypath_functions.py
PerMedCoE/BuildingBlocks
975780dee7cd6f519238933555b01ed1c46768ee
[ "Apache-2.0" ]
null
null
null
import omnipath as op from pypath.utils import mapping import igraph import itertools import os def generate_dict(gene_list, graph): gene_dict = {} for gene in gene_list: name1= list(mapping.map_name(gene, 'genesymbol', 'uniprot'))[0] name2 = list(mapping.map_name(name1, 'uniprot', 'genesymbol...
51.675214
197
0.578234
ccb196c86af70b0671efd39c18972e498e4829b4
11,538
py
Python
sqlshare_rest/util/query_queue.py
uw-it-aca/sqlshare-rest
e441ce9286a915586a68a0bfa3105f122d6ae18f
[ "Apache-2.0" ]
null
null
null
sqlshare_rest/util/query_queue.py
uw-it-aca/sqlshare-rest
e441ce9286a915586a68a0bfa3105f122d6ae18f
[ "Apache-2.0" ]
83
2015-05-19T21:47:15.000Z
2018-03-06T14:40:38.000Z
sqlshare_rest/util/query_queue.py
uw-it-aca/sqlshare-rest
e441ce9286a915586a68a0bfa3105f122d6ae18f
[ "Apache-2.0" ]
1
2015-03-31T22:06:55.000Z
2015-03-31T22:06:55.000Z
from sqlshare_rest.util.db import get_backend from sqlshare_rest.models import Query from sqlshare_rest.dao.dataset import reset_dataset_account_access from django.utils import timezone from django.conf import settings from django import db from time import sleep from sqlshare_rest.util.queue_triggers import trigger_qu...
33.540698
79
0.530855
492019881d10c6aa0734497e5236ed9537bd35b4
330
py
Python
Mundo2/ex053.py
NOBarbosa/Exercicios_Python
f5769d331a38030281b351ee8812e7f75fcf0f87
[ "MIT" ]
null
null
null
Mundo2/ex053.py
NOBarbosa/Exercicios_Python
f5769d331a38030281b351ee8812e7f75fcf0f87
[ "MIT" ]
null
null
null
Mundo2/ex053.py
NOBarbosa/Exercicios_Python
f5769d331a38030281b351ee8812e7f75fcf0f87
[ "MIT" ]
null
null
null
#Detector de Palíndromo frase = str(input('Digite uma frase: ')).strip().upper() palavra = frase.split() junto = ''.join(palavra) inverso = '' for letra in range(len(junto)-1, -1, -1): inverso += junto[letra] if junto == inverso: print('{} é palindromo'.format(frase)) else: print('{} não é palindromo'.form...
27.5
56
0.651515
c4e797972787c68522a3bcf1b2eeee9236434877
1,147
py
Python
configs/deepim/lmCropBlenderSO/FlowNet512_1.5AugCosyAAEGray_AggressiveV2_Flat_lmCropBlender_SO/FlowNet512_1.5AugCosyAAEGray_AggressiveV2_Flat_Blender_06_cat.py
THU-DA-6D-Pose-Group/self6dpp
c267cfa55e440e212136a5e9940598720fa21d16
[ "Apache-2.0" ]
33
2021-12-15T07:11:47.000Z
2022-03-29T08:58:32.000Z
configs/deepim/lmCropBlenderSO/FlowNet512_1.5AugCosyAAEGray_AggressiveV2_Flat_lmCropBlender_SO/FlowNet512_1.5AugCosyAAEGray_AggressiveV2_Flat_Blender_06_cat.py
THU-DA-6D-Pose-Group/self6dpp
c267cfa55e440e212136a5e9940598720fa21d16
[ "Apache-2.0" ]
3
2021-12-15T11:39:54.000Z
2022-03-29T07:24:23.000Z
configs/deepim/lmCropBlenderSO/FlowNet512_1.5AugCosyAAEGray_AggressiveV2_Flat_lmCropBlender_SO/FlowNet512_1.5AugCosyAAEGray_AggressiveV2_Flat_Blender_06_cat.py
THU-DA-6D-Pose-Group/self6dpp
c267cfa55e440e212136a5e9940598720fa21d16
[ "Apache-2.0" ]
null
null
null
_base_ = "./FlowNet512_1.5AugCosyAAEGray_AggressiveV2_Flat_Blender_01_ape.py" OUTPUT_DIR = "output/deepim/lmCropBlenderSO/FlowNet512_1.5AugCosyAAEGray_AggressiveV2_Flat_lmCropBlender_SO/cat" DATASETS = dict(TRAIN=("lm_blender_cat_train",), TEST=("lm_crop_cat_test",)) # iter0 # objects cat Avg(1) # ad_2 2.97 ...
26.068182
112
0.600697
65defea801213cf3208ece53c555f0c85369ce5f
36,440
py
Python
test/dialect/postgresql/test_query.py
atugushev/sqlalchemy
3cb614009ee87a115ec7230949c031402efb17c1
[ "MIT" ]
1
2020-02-08T20:04:42.000Z
2020-02-08T20:04:42.000Z
test/dialect/postgresql/test_query.py
atugushev/sqlalchemy
3cb614009ee87a115ec7230949c031402efb17c1
[ "MIT" ]
null
null
null
test/dialect/postgresql/test_query.py
atugushev/sqlalchemy
3cb614009ee87a115ec7230949c031402efb17c1
[ "MIT" ]
null
null
null
# coding: utf-8 import datetime from sqlalchemy import and_ from sqlalchemy import bindparam from sqlalchemy import Column from sqlalchemy import Date from sqlalchemy import DateTime from sqlalchemy import exc from sqlalchemy import extract from sqlalchemy import ForeignKey from sqlalchemy import func from sqlalchemy...
32.477718
79
0.449259
4f252ab67e09c566a17a2653015b63ff47b5509b
3,839
py
Python
vmtkScripts/vmtksurfacetransform.py
CemrgDevelopers/vmtk
a555b3c1686e70dcad0346acaaed9b3481dcb338
[ "Apache-2.0" ]
1
2017-02-23T09:31:53.000Z
2017-02-23T09:31:53.000Z
vmtkScripts/vmtksurfacetransform.py
haehn/vmtk
e8e2ee9f9bea6a1839a75b57caf82f6a86944db0
[ "Apache-2.0" ]
null
null
null
vmtkScripts/vmtksurfacetransform.py
haehn/vmtk
e8e2ee9f9bea6a1839a75b57caf82f6a86944db0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python ## Program: VMTK ## Module: $RCSfile: vmtksurfacetransform.py,v $ ## Language: Python ## Date: $Date: 2005/09/14 09:49:59 $ ## Version: $Revision: 1.4 $ ## Copyright (c) Luca Antiga, David Steinman. All rights reserved. ## See LICENCE file for details. ## This software is ...
37.637255
118
0.625423
78c14979217c58526882004790aaeafd7d53b3d8
6,422
py
Python
model/dcrnn_supervisor.py
lichunown/DCRNN
847594332b87d3c296dcb8af574f7bb498cb5b32
[ "MIT" ]
9
2018-06-02T02:42:18.000Z
2022-02-22T07:52:49.000Z
model/dcrnn_supervisor.py
lichunown/DCRNN
847594332b87d3c296dcb8af574f7bb498cb5b32
[ "MIT" ]
1
2019-04-22T05:54:45.000Z
2019-04-23T15:54:42.000Z
model/dcrnn_supervisor.py
lichunown/DCRNN
847594332b87d3c296dcb8af574f7bb498cb5b32
[ "MIT" ]
3
2019-08-07T10:45:07.000Z
2022-02-22T07:52:31.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import time import numpy as np import pandas as pd import tensorflow as tf from lib.utils import generate_graph_seq2seq_io_data_with_time from model.dcrnn_model import DCRNNModel from model.tf_model_superviso...
47.220588
113
0.52289
7e40f4021a086699111334394e58dc7331b654eb
869
py
Python
tir/technologies/core/numexec.py
Wilson08/tir
98fc068ceebe6132831a6fe0c210f6d15fea5026
[ "MIT" ]
1
2021-03-12T20:08:18.000Z
2021-03-12T20:08:18.000Z
tir/technologies/core/numexec.py
Wilson08/tir
98fc068ceebe6132831a6fe0c210f6d15fea5026
[ "MIT" ]
null
null
null
tir/technologies/core/numexec.py
Wilson08/tir
98fc068ceebe6132831a6fe0c210f6d15fea5026
[ "MIT" ]
1
2020-06-11T18:50:40.000Z
2020-06-11T18:50:40.000Z
from tir.technologies.core.config import ConfigLoader import requests import json import time class NumExec: def __init__(self): self.config = ConfigLoader() def post_exec(self, url): status = None endtime = time.time() + 120 while(time.time() < endtime and status != 200):...
25.558824
106
0.588032
9a32134b3a9442a5ffb0b61021dd1c1fdcc80218
6,064
py
Python
learners/abstract_learner.py
Liam-zzZ/PocketFlow
24122ed5fbadacbf7886d6030ff46ff0e4f8c2f5
[ "Apache-2.0" ]
1
2019-01-30T02:55:28.000Z
2019-01-30T02:55:28.000Z
learners/abstract_learner.py
Liam-zzZ/PocketFlow
24122ed5fbadacbf7886d6030ff46ff0e4f8c2f5
[ "Apache-2.0" ]
null
null
null
learners/abstract_learner.py
Liam-zzZ/PocketFlow
24122ed5fbadacbf7886d6030ff46ff0e4f8c2f5
[ "Apache-2.0" ]
null
null
null
# Tencent is pleased to support the open source community by making PocketFlow available. # # Copyright (C) 2018 THL A29 Limited, a Tencent company. All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a cop...
38.379747
97
0.728067
403b7fa524d9b089c19b541f6daf69673e4b1e70
5,648
py
Python
config.py
alekseynp/ontario_sunshine_list
1898ec4c8d10964589789d70907db0e698d15d91
[ "MIT" ]
3
2017-01-29T17:17:26.000Z
2018-08-09T20:38:45.000Z
config.py
alekseynp/ontario_sunshine_list
1898ec4c8d10964589789d70907db0e698d15d91
[ "MIT" ]
1
2015-03-07T23:13:53.000Z
2015-03-07T23:14:13.000Z
config.py
alekseynp/ontario_sunshine_list
1898ec4c8d10964589789d70907db0e698d15d91
[ "MIT" ]
1
2020-09-02T12:24:46.000Z
2020-09-02T12:24:46.000Z
configuration = { 2014:{ 'html_dir':'scrape/pssd/', 'addenda':['addenda_14.html'], 'core_exclude':[], }, 2013:{ 'html_dir':'scrape/pssd/', 'addenda':['addenda_13.html'], 'core_exclude':['nosalaries.php&organization=nosalaries&...
36.675325
105
0.556126
f126c1d55e4f9c74a2f558b8d246ed040ecb4279
635
py
Python
src/signature.py
akarinS/aaapi-tipkoto
58781c8286480351b2653d51a0a0fa7fa2e93094
[ "MIT" ]
5
2018-07-02T11:08:42.000Z
2018-08-20T19:03:58.000Z
src/signature.py
akarinS/aaapi-tipkoto
58781c8286480351b2653d51a0a0fa7fa2e93094
[ "MIT" ]
null
null
null
src/signature.py
akarinS/aaapi-tipkoto
58781c8286480351b2653d51a0a0fa7fa2e93094
[ "MIT" ]
null
null
null
import base64 import hashlib import hmac class Signature(object): def __init__(self, consumer_secret): self.consumer_secret = consumer_secret.encode() def _sign(self, msg): # msg must be "<class 'bytes'>" sha256_hash_digest = hmac.new(self.consumer_secret, msg = msg, digestmod = hashlib.sha...
31.75
107
0.72126
37a5d9385d5029f003357e1441d7ff533db5b67a
1,302
py
Python
main.py
ytyaru/Hatena.Blog.API.Service.Get.201702281505
cf57019f3d37766852c1f32854970db60e700c0d
[ "CC0-1.0" ]
null
null
null
main.py
ytyaru/Hatena.Blog.API.Service.Get.201702281505
cf57019f3d37766852c1f32854970db60e700c0d
[ "CC0-1.0" ]
null
null
null
main.py
ytyaru/Hatena.Blog.API.Service.Get.201702281505
cf57019f3d37766852c1f32854970db60e700c0d
[ "CC0-1.0" ]
null
null
null
#!python3 #encoding:utf-8 import xmltodict from collections import OrderedDict from requests_oauthlib import OAuth1Session from bs4 import BeautifulSoup import datetime CREDENTIALS = { 'client_key': 'aaaaaaa', 'client_secret': 'bbbbbbbb', 'resource_owner_key': 'ccccccccc', 'resource_owner_secret': 'ddd...
28.304348
79
0.66129
cf3b96db364acc06901c1e09e133fe07860a43cf
3,467
py
Python
widgets/leftdockwidgets/ldw_plot.py
ostash-group/GeneticPlotter
09389407c6d89b8f525f247e7a8af6ff0de1d665
[ "MIT" ]
3
2021-02-02T18:10:18.000Z
2021-07-27T14:20:20.000Z
widgets/leftdockwidgets/ldw_plot.py
ostash-group/GeneticPlotter
09389407c6d89b8f525f247e7a8af6ff0de1d665
[ "MIT" ]
null
null
null
widgets/leftdockwidgets/ldw_plot.py
ostash-group/GeneticPlotter
09389407c6d89b8f525f247e7a8af6ff0de1d665
[ "MIT" ]
null
null
null
import random from PyQt5 import uic from PyQt5.QtWidgets import QTableWidgetItem, QTableWidget, QWidget, QLabel, QColorDialog from PyQt5.QtGui import QIcon, QPixmap, QPalette, QColor, QImage from PyQt5.QtCore import Qt, QAbstractItemModel, QModelIndex, QDir, QSize from widgets.leftdockwidgets.ui.plot_dockwidget import ...
30.955357
93
0.640611
4b0f976abd938edf139b31916bbc8ab30767901a
814
py
Python
tests/xsd/schema_test.py
jocassid/soapfish
7926335089ec286d3f4f491f72d84ec7096c79c9
[ "BSD-3-Clause" ]
null
null
null
tests/xsd/schema_test.py
jocassid/soapfish
7926335089ec286d3f4f491f72d84ec7096c79c9
[ "BSD-3-Clause" ]
1
2018-02-19T22:40:44.000Z
2018-02-19T22:40:44.000Z
tests/xsd/schema_test.py
jocassid/soapfish
7926335089ec286d3f4f491f72d84ec7096c79c9
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from pythonic_testcase import PythonicTestCase, assert_equals, assert_none from soapfish import xsd class SchemaTest(PythonicTestCase): def test_can_lookup_element_by_name(self): ns = 'http://soap.example/schema.xsd' class CodeType(xsd.String): pattern = r'[0...
33.916667
80
0.593366
0de3c5cf810fddce635b1baa4b46cb990c9552e8
3,313
py
Python
examples/text_frontend/test_textnorm.py
Jackwaterveg/Parakeet
e75a07076ba5766206a6cd1fb2e5f82b0ba3842c
[ "Apache-2.0" ]
7
2020-11-03T10:05:20.000Z
2022-03-29T06:37:17.000Z
examples/text_frontend/test_textnorm.py
Jackwaterveg/Parakeet
e75a07076ba5766206a6cd1fb2e5f82b0ba3842c
[ "Apache-2.0" ]
null
null
null
examples/text_frontend/test_textnorm.py
Jackwaterveg/Parakeet
e75a07076ba5766206a6cd1fb2e5f82b0ba3842c
[ "Apache-2.0" ]
1
2022-02-12T08:35:35.000Z
2022-02-12T08:35:35.000Z
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
33.806122
79
0.66073
a5e8effc79b2502a552f75713b5ffd7f16dfebae
3,053
py
Python
Lib/site-packages/tensorboard/main.py
caiyongji/tf2.3.1-py3.7.9-full-built
ace4efcbf05b2b494388739718a18c13eab83c71
[ "CNRI-Python-GPL-Compatible" ]
4
2020-09-02T16:13:51.000Z
2021-06-05T08:45:59.000Z
Lib/site-packages/tensorboard/main.py
caiyongji/tf2.3.1-py3.7.9-full-built
ace4efcbf05b2b494388739718a18c13eab83c71
[ "CNRI-Python-GPL-Compatible" ]
1
2020-06-30T16:26:47.000Z
2020-06-30T16:27:38.000Z
Lib/site-packages/tensorboard/main.py
caiyongji/tf2.3.1-py3.7.9-full-built
ace4efcbf05b2b494388739718a18c13eab83c71
[ "CNRI-Python-GPL-Compatible" ]
1
2020-06-04T23:23:09.000Z
2020-06-04T23:23:09.000Z
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
34.303371
90
0.724533
4d70ede494c9d4f9141f09eb520e3ddb1ceea916
15,595
py
Python
ironic_neutron_plugin/drivers/cisco/driver.py
rackerlabs/ironic-neutron-plugin
7b3e19840048bc49d846362b84973c2f2b03b05e
[ "Apache-2.0" ]
10
2015-01-21T22:04:40.000Z
2017-06-29T06:55:45.000Z
ironic_neutron_plugin/drivers/cisco/driver.py
rackerlabs/ironic-neutron-plugin
7b3e19840048bc49d846362b84973c2f2b03b05e
[ "Apache-2.0" ]
null
null
null
ironic_neutron_plugin/drivers/cisco/driver.py
rackerlabs/ironic-neutron-plugin
7b3e19840048bc49d846362b84973c2f2b03b05e
[ "Apache-2.0" ]
8
2015-01-30T16:40:30.000Z
2020-07-23T06:06:53.000Z
# Copyright (c) 2014 OpenStack Foundation. # # 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...
36.099537
84
0.58942
e1e91e2707eeeecbd5b67fe5ea28d8fc076a95d2
2,171
py
Python
timemory/api/gperftools/__init__.py
tkonolige/timemory
1662925a3a7b6dfb1b7bba08ebd366d3fe38194a
[ "MIT" ]
284
2019-08-06T17:41:39.000Z
2022-03-25T23:37:47.000Z
timemory/api/gperftools/__init__.py
tkonolige/timemory
1662925a3a7b6dfb1b7bba08ebd366d3fe38194a
[ "MIT" ]
123
2019-08-06T03:09:54.000Z
2022-02-26T01:51:36.000Z
timemory/api/gperftools/__init__.py
tkonolige/timemory
1662925a3a7b6dfb1b7bba08ebd366d3fe38194a
[ "MIT" ]
26
2019-12-06T22:21:09.000Z
2022-03-23T09:34:29.000Z
#!/usr/bin/env python # MIT License # # Copyright (c) 2020, The Regents of the University of California, # through Lawrence Berkeley National Laboratory (subject to receipt of any # required approvals from the U.S. Dept. of Energy). All rights reserved. # # Permission is hereby granted, free of charge, to any person o...
38.087719
80
0.759097
ff455e0dbeddc2ae2add43f51286f663357aa2d5
73
py
Python
ffmpeg_progress_yield/__init__.py
slhck/ffmpeg-progress
dcde02184ca2faf63a24eafd87a8f0845f037dfc
[ "MIT" ]
13
2021-03-01T13:53:44.000Z
2022-02-17T08:09:01.000Z
ffmpeg_progress_yield/__init__.py
slhck/ffmpeg-progress
dcde02184ca2faf63a24eafd87a8f0845f037dfc
[ "MIT" ]
2
2021-06-30T08:52:40.000Z
2021-07-01T11:38:03.000Z
ffmpeg_progress_yield/__init__.py
slhck/ffmpeg-progress
dcde02184ca2faf63a24eafd87a8f0845f037dfc
[ "MIT" ]
2
2021-06-27T19:19:51.000Z
2021-11-02T09:25:01.000Z
from .ffmpeg_progress_yield import FfmpegProgress __version__ = "0.2.0"
18.25
49
0.808219
1dccfe447438d882af6240a947f81f8bc0432f75
848
py
Python
Utils/Classes/discordleveldisabledchannel.py
The-CJ/Phaazebot
83a9563d210718071d4e2cdcca3b212c87abaf51
[ "MIT" ]
2
2017-09-14T08:07:55.000Z
2021-05-18T05:05:05.000Z
Utils/Classes/discordleveldisabledchannel.py
The-CJ/Phaazebot
83a9563d210718071d4e2cdcca3b212c87abaf51
[ "MIT" ]
111
2018-04-15T14:32:14.000Z
2021-03-28T21:06:29.000Z
Utils/Classes/discordleveldisabledchannel.py
The-CJ/Phaazebot
83a9563d210718071d4e2cdcca3b212c87abaf51
[ "MIT" ]
1
2018-04-15T13:24:44.000Z
2018-04-15T13:24:44.000Z
from Utils.Classes.undefined import UNDEFINED from Utils.Classes.contentclass import ContentClass class DiscordLevelDisabledChannel(ContentClass): """ Contains and represents stuff for a level disabled discord channel """ def __repr__(self): return f"<{self.__class__.__name__} server='{self.guild_id}' channel_id...
29.241379
95
0.728774
7f5bd36868d5848eabebb687403a70c00767150b
2,589
py
Python
.code_snippets/custom_components/buspro.py
neroxps/pybuspro
47a0a3a7db4e56dea49f0e7aaf46d3fafebf228c
[ "MIT" ]
2
2019-03-15T03:47:10.000Z
2019-10-30T15:34:09.000Z
.code_snippets/custom_components/buspro.py
neroxps/pybuspro
47a0a3a7db4e56dea49f0e7aaf46d3fafebf228c
[ "MIT" ]
null
null
null
.code_snippets/custom_components/buspro.py
neroxps/pybuspro
47a0a3a7db4e56dea49f0e7aaf46d3fafebf228c
[ "MIT" ]
4
2019-01-12T17:50:24.000Z
2020-01-12T16:56:24.000Z
""" Support for Buspro devices. For more details about this component, please refer to the documentation at https://home-assistant.io/... """ from uuid import uuid4 import asyncio import logging import voluptuous as vol import homeassistant.helpers.config_validation as cv from homeassistant.const import (CONF_HOST,...
20.712
75
0.651217
51b6eff455dc3df50c4a1e2d789191f40d67558a
5,430
py
Python
netspot/lib/spotmax/net_collector.py
MaxIV-KitsControls/netspot
42f505d004bcadcfb32b6ca0511572d38641c23a
[ "MIT" ]
null
null
null
netspot/lib/spotmax/net_collector.py
MaxIV-KitsControls/netspot
42f505d004bcadcfb32b6ca0511572d38641c23a
[ "MIT" ]
null
null
null
netspot/lib/spotmax/net_collector.py
MaxIV-KitsControls/netspot
42f505d004bcadcfb32b6ca0511572d38641c23a
[ "MIT" ]
null
null
null
#!/usr/bin/python -W ignore -tt """Module to collect data from network devices.""" from collections import defaultdict from datetime import datetime import sys import re import warnings import ipaddress import helpers import netspot import netspot_settings from napalm import get_network_driver from spotmax import S...
29.037433
107
0.577532
4f4a229f18e25e763756e6ed9d7cced8241cf1c3
211
py
Python
101notebook/ipython-minibook/chapter2/center.py
OpenBookProjects/ipynb
72a28109e8e30aea0b9c6713e78821e4affa2e33
[ "MIT" ]
6
2015-06-08T12:50:14.000Z
2018-11-20T10:05:01.000Z
101notebook/ipython-minibook/chapter2/center.py
OpenBookProjects/ipynb
72a28109e8e30aea0b9c6713e78821e4affa2e33
[ "MIT" ]
15
2021-09-12T15:06:13.000Z
2022-03-31T19:02:08.000Z
101notebook/ipython-minibook/chapter2/center.py
OpenBookProjects/ipynb
72a28109e8e30aea0b9c6713e78821e4affa2e33
[ "MIT" ]
8
2016-01-26T14:12:50.000Z
2021-02-20T14:24:09.000Z
import networkx as nx g = nx.read_edgelist('data/facebook/0.edges') sg = nx.connected_component_subgraphs(g)[0] center = [node for node in sg.nodes() if nx.eccentricity(sg, node) == nx.radius(sg)] print(center)
35.166667
84
0.739336
5bb64b606b542710d8cdacefd96ceb252274597e
21,751
py
Python
tests/tests.py
tylergannon/snakemake
a10a16a5a65e73b1cc7255eedabef8cc31191163
[ "MIT" ]
2
2020-02-21T08:58:16.000Z
2020-02-21T08:58:30.000Z
tests/tests.py
xuexiaohua-bio/snakemake
14f3c5f56ae35bbcc0b1536bacdec34851a7ad8d
[ "MIT" ]
null
null
null
tests/tests.py
xuexiaohua-bio/snakemake
14f3c5f56ae35bbcc0b1536bacdec34851a7ad8d
[ "MIT" ]
null
null
null
__authors__ = ["Tobias Marschall", "Marcel Martin", "Johannes Köster"] __copyright__ = "Copyright 2015-2019, Johannes Köster" __email__ = "koester@jimmy.harvard.edu" __license__ = "MIT" import os import sys sys.path.insert(0, os.path.dirname(__file__)) from common import * def test_list_untracked(): run(dpath(...
22.217569
151
0.665625
7e10db9a7a41c201087b052a26c36dca7ff70dec
5,421
py
Python
VTK-7.1.1/build/Wrapping/Python/vtk/__init__.py
likewatchk/python-pcl
2a66797719f1b5af7d6a0d0893f697b3786db461
[ "BSD-3-Clause" ]
null
null
null
VTK-7.1.1/build/Wrapping/Python/vtk/__init__.py
likewatchk/python-pcl
2a66797719f1b5af7d6a0d0893f697b3786db461
[ "BSD-3-Clause" ]
null
null
null
VTK-7.1.1/build/Wrapping/Python/vtk/__init__.py
likewatchk/python-pcl
2a66797719f1b5af7d6a0d0893f697b3786db461
[ "BSD-3-Clause" ]
null
null
null
""" This module loads the entire VTK library into its namespace. It also allows one to use specific packages inside the vtk directory..""" from __future__ import absolute_import import os import sys # The dl module is used to force the symbols in the loaded VTK modules to # be global, that is, to force symbols to ...
32.461078
74
0.723852
2ce32883390a95999b43ce8ed04f27ccb21cfdb2
248
py
Python
src/pretalx/cfp/__init__.py
hnzlmnn/pretalx
fcdf1a03c9428c1207ee4f4228694b2ed8e7495b
[ "Apache-2.0" ]
1
2018-12-09T12:35:10.000Z
2018-12-09T12:35:10.000Z
src/pretalx/cfp/__init__.py
hnzlmnn/pretalx
fcdf1a03c9428c1207ee4f4228694b2ed8e7495b
[ "Apache-2.0" ]
1
2019-07-05T20:03:42.000Z
2019-07-05T20:03:42.000Z
src/pretalx/cfp/__init__.py
hnzlmnn/pretalx
fcdf1a03c9428c1207ee4f4228694b2ed8e7495b
[ "Apache-2.0" ]
null
null
null
from django.apps import AppConfig class CfPConfig(AppConfig): name = 'pretalx.cfp' def ready(self): from . import permissions # noqa from .phrases import CfPPhrases # noqa default_app_config = 'pretalx.cfp.CfPConfig'
19.076923
47
0.689516
e021d62d9f1804f8e5c43d1078ee225dea783b07
709
py
Python
precommit.py
iafisher/oeuvre
42ed81894b2836b081c284b4c9e25cec3a93d647
[ "MIT" ]
null
null
null
precommit.py
iafisher/oeuvre
42ed81894b2836b081c284b4c9e25cec3a93d647
[ "MIT" ]
31
2020-05-24T00:27:50.000Z
2020-07-28T04:59:37.000Z
precommit.py
iafisher/oeuvre
42ed81894b2836b081c284b4c9e25cec3a93d647
[ "MIT" ]
null
null
null
"""Pre-commit configuration for git. This file was created by precommit (https://github.com/iafisher/precommit). You are welcome to edit it yourself to customize your pre-commit hook. """ from precommitlib import checks def init(precommit): # Generic checks precommit.check(checks.NoStagedAndUnstagedChanges()...
33.761905
79
0.747532
0799da280014de5f941647d1bd02cf3a180bb2f6
3,501
py
Python
hw3/code/plot_multiple_from_pkl.py
hsilva664/Reinforcement_Learning_Course
6a250bc017965bec76b6fe909068e40127e62fa7
[ "MIT" ]
null
null
null
hw3/code/plot_multiple_from_pkl.py
hsilva664/Reinforcement_Learning_Course
6a250bc017965bec76b6fe909068e40127e62fa7
[ "MIT" ]
null
null
null
hw3/code/plot_multiple_from_pkl.py
hsilva664/Reinforcement_Learning_Course
6a250bc017965bec76b6fe909068e40127e62fa7
[ "MIT" ]
null
null
null
import pickle import sys import os import matplotlib.pyplot as plt import numpy as np import argparse import re out_folder = 'plots' re_pattern = re.compile('.*\.pkl') def filter_infs(np_arr): np_arr[np.logical_not(np.isfinite(np_arr))] = 0 return np_arr def main(): parser = argparse.ArgumentParser() ...
35.363636
165
0.647815
4f7c84a7afa656bcfcc5c88120e16e5f35bdc70d
664
py
Python
web/mysite/app1/migrations/0001_initial.py
aaabbb200909/execjson
fb7fbb462f4ef135dc710e083068fb7c1f10496b
[ "Apache-2.0" ]
null
null
null
web/mysite/app1/migrations/0001_initial.py
aaabbb200909/execjson
fb7fbb462f4ef135dc710e083068fb7c1f10496b
[ "Apache-2.0" ]
2
2016-10-09T13:35:43.000Z
2016-10-09T13:37:42.000Z
web/mysite/app1/migrations/0001_initial.py
aaabbb200909/execjson
fb7fbb462f4ef135dc710e083068fb7c1f10496b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.4 on 2017-03-30 12:24 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='user_i...
25.538462
114
0.578313
ea7f6eb16fe1fb9718677d5b462abb1e184547f3
30,012
py
Python
tests/components/sensibo/test_climate.py
mcx/core
55eca2e2b4ebcf11486749035fd3c7e77ea14b8f
[ "Apache-2.0" ]
null
null
null
tests/components/sensibo/test_climate.py
mcx/core
55eca2e2b4ebcf11486749035fd3c7e77ea14b8f
[ "Apache-2.0" ]
null
null
null
tests/components/sensibo/test_climate.py
mcx/core
55eca2e2b4ebcf11486749035fd3c7e77ea14b8f
[ "Apache-2.0" ]
null
null
null
"""The test for the sensibo binary sensor platform.""" from __future__ import annotations from datetime import datetime, timedelta from unittest.mock import AsyncMock, patch from pysensibo.model import SensiboData import pytest from voluptuous import MultipleInvalid from homeassistant.components.climate.const import...
31.961661
92
0.629848
6b7d1ed9a32809a62b788a2be22c39f6a1602a43
170,868
py
Python
src/azure-cli/azure/cli/command_modules/vm/custom.py
asksven/azure-cli
0f864e9a9d861a7aa54fb62dc4b1b96d4a30cf21
[ "MIT" ]
1
2020-07-08T18:56:32.000Z
2020-07-08T18:56:32.000Z
src/azure-cli/azure/cli/command_modules/vm/custom.py
cindywu/azure-cli
bd011cb91ac6e0ac89f53e1105d76ea30b6609a0
[ "MIT" ]
null
null
null
src/azure-cli/azure/cli/command_modules/vm/custom.py
cindywu/azure-cli
bd011cb91ac6e0ac89f53e1105d76ea30b6609a0
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
51.204076
163
0.69343
2733c18d71d1e9aecc9b71be42ee98848e07bffe
6,228
py
Python
garnett/ciffilewriter.py
glotzerlab/garne
f9cb7bad391299e28feb4010eb77447fdc4512cb
[ "BSD-3-Clause" ]
4
2019-07-30T00:12:44.000Z
2020-03-03T19:58:34.000Z
garnett/ciffilewriter.py
glotzerlab/garne
f9cb7bad391299e28feb4010eb77447fdc4512cb
[ "BSD-3-Clause" ]
62
2019-07-29T20:05:46.000Z
2022-02-16T15:22:01.000Z
garnett/ciffilewriter.py
glotzerlab/garne
f9cb7bad391299e28feb4010eb77447fdc4512cb
[ "BSD-3-Clause" ]
2
2020-03-03T19:59:09.000Z
2021-03-22T14:48:56.000Z
# Copyright (c) 2020 The Regents of the University of Michigan # All rights reserved. # This software is licensed under the BSD 3-Clause License. """cif-file writer for the Glotzer Group, University of Michigan. Authors: Julia Dshemuchadse, Carl Simon Adorf .. code:: writer = CifFileWriter() # write to scre...
35.793103
101
0.599229
9645b8b1a1be6bc1dce74ed03c4d4350c5759b91
3,990
py
Python
win32_definitions.py
jacoblusk/lwatch
c30b326da92cb90847be108c626b486a5707bb0f
[ "MIT" ]
null
null
null
win32_definitions.py
jacoblusk/lwatch
c30b326da92cb90847be108c626b486a5707bb0f
[ "MIT" ]
null
null
null
win32_definitions.py
jacoblusk/lwatch
c30b326da92cb90847be108c626b486a5707bb0f
[ "MIT" ]
null
null
null
from ctypes import windll, CDLL from ctypes import POINTER, Structure, sizeof, byref, cast, Union from ctypes import c_ulong, c_int, c_char, c_ubyte, c_ushort, c_char_p, \ c_void_p, c_wchar, c_wchar_p, c_long from ctypes import create_string_buffer, string_at, memset, \ create_unic...
26.778523
91
0.693985
6c1adcbc9c93b894fc6132358d2abd337a8f9e0b
25,970
py
Python
publications_bibtex/parser.py
lukacu/django-publications
663ace605925f53835f441c7761a6f4b0d2d4143
[ "BSD-3-Clause" ]
null
null
null
publications_bibtex/parser.py
lukacu/django-publications
663ace605925f53835f441c7761a6f4b0d2d4143
[ "BSD-3-Clause" ]
3
2020-02-12T03:15:47.000Z
2021-06-10T22:05:24.000Z
publications_bibtex/parser.py
lukacu/django-publications
663ace605925f53835f441c7761a6f4b0d2d4143
[ "BSD-3-Clause" ]
1
2018-07-23T11:46:37.000Z
2018-07-23T11:46:37.000Z
# -*- Mode: python; indent-tabs-mode: nil; c-basic-offset: 2; tab-width: 2 -*- import re import sys ## {{{ http://code.activestate.com/recipes/81611/ (r2) def int_to_roman(input): """ Convert an integer to Roman numerals. Examples: >>> int_to_roman(0) Traceback (most recent call last): ValueError: ...
29.11435
311
0.555988
e0ba835f9957849eaa18a9bf856b4314ae8864a0
19,694
py
Python
test/functional/feature_backwards_compatibility.py
crptec/sinovate
345a81f99ec7e624e0ec244a7dbe1ebb3698c347
[ "MIT" ]
159
2016-07-09T13:02:19.000Z
2022-03-11T08:15:56.000Z
test/functional/feature_backwards_compatibility.py
crptec/sinovate
345a81f99ec7e624e0ec244a7dbe1ebb3698c347
[ "MIT" ]
40
2016-07-22T17:26:37.000Z
2022-03-22T19:37:32.000Z
test/functional/feature_backwards_compatibility.py
crptec/sinovate
345a81f99ec7e624e0ec244a7dbe1ebb3698c347
[ "MIT" ]
57
2016-10-21T23:57:47.000Z
2022-03-26T20:51:23.000Z
#!/usr/bin/env python3 # Copyright (c) 2018-2020 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Backwards compatibility functional test Test various backwards compatibility scenarios. Requires previ...
45.90676
223
0.636387
75b3bdee35d0357933a73cae0df317855d835228
2,313
py
Python
scripts/automation/trex_control_plane/interactive/trex/emu/emu_plugins/emu_plugin_cdp.py
GabrielGanne/trex-core
688a0fe0adb890964691473723d70ffa98e00dd3
[ "Apache-2.0" ]
956
2015-06-24T15:04:55.000Z
2022-03-30T06:25:04.000Z
scripts/automation/trex_control_plane/interactive/trex/emu/emu_plugins/emu_plugin_cdp.py
hjat2005/trex-core
400f03c86c844a0096dff3f6b13e58a808aaefff
[ "Apache-2.0" ]
782
2015-09-20T15:19:00.000Z
2022-03-31T23:52:05.000Z
scripts/automation/trex_control_plane/interactive/trex/emu/emu_plugins/emu_plugin_cdp.py
hjat2005/trex-core
400f03c86c844a0096dff3f6b13e58a808aaefff
[ "Apache-2.0" ]
429
2015-06-27T19:34:21.000Z
2022-03-23T11:02:51.000Z
from trex.emu.api import * from trex.emu.emu_plugins.emu_plugin_base import * import trex.utils.parsing_opts as parsing_opts import json class CDPPlugin(EMUPluginBase): '''Defines CDP plugin ''' plugin_name = 'CDP' # init jsons example for SDK INIT_JSON_NS = {'cdp': {}} """ :parameters: ...
31.684932
104
0.588413
4ef47e6a9333fbaf13ac074dc96bf892919d1d8c
542
py
Python
0155.min_stack/solution.py
WZMJ/Algorithms
07f648541d38e24df38bda469665c12df6a50637
[ "MIT" ]
5
2020-05-23T02:18:26.000Z
2021-07-05T05:36:01.000Z
0155.min_stack/solution.py
WZMJ/Algorithms
07f648541d38e24df38bda469665c12df6a50637
[ "MIT" ]
1
2020-06-10T07:17:24.000Z
2020-07-20T02:21:24.000Z
0155.min_stack/solution.py
WZMJ/Algorithms
07f648541d38e24df38bda469665c12df6a50637
[ "MIT" ]
1
2019-04-23T13:01:50.000Z
2019-04-23T13:01:50.000Z
class MinStack: def __init__(self): self.stack = [] def push(self, x: int) -> None: """ add a min value and x """ if self.stack: self.stack.append(min(self.stack[-2], x)) else: self.stack.append(x) self.stack.append(x) def pop(self) -> None: ...
22.583333
53
0.498155
809a7b38fc4f2445899579223bd4667e107e0e30
972
py
Python
src/djanban/apps/repositories/migrations/0008_githubpublicrepository.py
diegojromerolopez/djanban
6451688d49cf235d03c604b19a6a8480b33eed87
[ "MIT" ]
33
2017-06-14T18:04:25.000Z
2021-06-15T07:07:56.000Z
src/djanban/apps/repositories/migrations/0008_githubpublicrepository.py
diegojromerolopez/djanban
6451688d49cf235d03c604b19a6a8480b33eed87
[ "MIT" ]
1
2017-05-10T08:45:55.000Z
2017-05-10T08:45:55.000Z
src/djanban/apps/repositories/migrations/0008_githubpublicrepository.py
diegojromerolopez/djanban
6451688d49cf235d03c604b19a6a8480b33eed87
[ "MIT" ]
8
2017-08-27T11:14:25.000Z
2021-03-03T12:11:16.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2016-09-23 18:56 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('repositories', '0007_commit_assessment_datetime'), ] ...
33.517241
204
0.632716
1d6a85c72d7fda34bec0b32b48e4e16a4222d246
2,182
py
Python
Lib/site-packages/fixtures/testcase.py
inging44/python3
fcd8d9d2ee54b46b757ecf34f284b4e60a43097a
[ "bzip2-1.0.6" ]
33
2015-06-22T09:27:08.000Z
2022-01-29T11:03:03.000Z
Lib/site-packages/fixtures/testcase.py
inging44/python3
fcd8d9d2ee54b46b757ecf34f284b4e60a43097a
[ "bzip2-1.0.6" ]
46
2015-03-11T23:18:46.000Z
2022-02-22T16:42:53.000Z
Lib/site-packages/fixtures/testcase.py
inging44/python3
fcd8d9d2ee54b46b757ecf34f284b4e60a43097a
[ "bzip2-1.0.6" ]
27
2015-02-09T15:04:38.000Z
2022-02-05T23:29:38.000Z
# fixtures: Fixtures with cleanups for testing and convenience. # # Copyright (c) 2010, Robert Collins <robertc@robertcollins.net> # # Licensed under either the Apache License, Version 2.0 or the BSD 3-clause # license at the users choice. A copy of both licenses are available in the # project source as Apache-2.0 an...
35.770492
79
0.664528
3c79d3398e96edd5c49b9dfb2ca080487bdc28d3
58,786
py
Python
vspk/v4_0/nusubnet.py
cldelcourt/vspk-python
cdea810cd220e6ddc131407735941b9a26b2edda
[ "BSD-3-Clause" ]
null
null
null
vspk/v4_0/nusubnet.py
cldelcourt/vspk-python
cdea810cd220e6ddc131407735941b9a26b2edda
[ "BSD-3-Clause" ]
null
null
null
vspk/v4_0/nusubnet.py
cldelcourt/vspk-python
cdea810cd220e6ddc131407735941b9a26b2edda
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (c) 2015, Alcatel-Lucent Inc # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # no...
38.02458
5,302
0.70675
a138b7e7930e8f6d049045d2731de939b653bb33
10,849
py
Python
src/gifmaze/gifmaze/algorithms.py
wroldwiedbwe/pywonderland
f9eceba86cc79f476fe99d3dcbe40906a3273713
[ "MIT" ]
4,390
2016-11-15T17:41:45.000Z
2022-03-30T09:40:31.000Z
src/gifmaze/gifmaze/algorithms.py
wroldwiedbwe/pywonderland
f9eceba86cc79f476fe99d3dcbe40906a3273713
[ "MIT" ]
19
2016-11-28T11:03:10.000Z
2021-12-08T16:55:23.000Z
src/gifmaze/gifmaze/algorithms.py
wroldwiedbwe/pywonderland
f9eceba86cc79f476fe99d3dcbe40906a3273713
[ "MIT" ]
468
2016-11-20T22:03:21.000Z
2022-01-28T02:26:34.000Z
# -*- coding: utf-8 -*- """ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Maze generation and maze solving algorithms ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This file contains the maze generation and maze solving algorithms. Each algorithm is implemented as a generator function which runs on a `maze` instance and c...
28.701058
90
0.574154
39c8f27d855a6bbfc2f36896de9217e9b29f551b
392
py
Python
new_pro/shorten/migrations/0004_bitly_user.py
Lavkushmani/URL_SHORTNER
dd97a6b1c63010690b0d06a8c55607a4e1d7865f
[ "MIT" ]
1
2020-05-24T03:40:10.000Z
2020-05-24T03:40:10.000Z
new_pro/shorten/migrations/0004_bitly_user.py
Lavkushmani/URL_SHORTNER
dd97a6b1c63010690b0d06a8c55607a4e1d7865f
[ "MIT" ]
null
null
null
new_pro/shorten/migrations/0004_bitly_user.py
Lavkushmani/URL_SHORTNER
dd97a6b1c63010690b0d06a8c55607a4e1d7865f
[ "MIT" ]
null
null
null
# Generated by Django 2.2.2 on 2019-06-30 08:18 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('shorten', '0003_auto_20190626_1627'), ] operations = [ migrations.AddField( model_name='bitly', name='user', ...
20.631579
61
0.596939
2a003ef00da350111713f7cdc82be3c853d954af
50
py
Python
pyAssignment/Readers/__init__.py
CD3/pyAssignment
bf618457ff10542b1c1f334c89f48f1de72da32b
[ "MIT" ]
1
2020-03-21T15:50:54.000Z
2020-03-21T15:50:54.000Z
pyAssignment/Readers/__init__.py
CD3/pyAssignment
bf618457ff10542b1c1f334c89f48f1de72da32b
[ "MIT" ]
22
2018-03-24T15:04:35.000Z
2022-01-14T20:55:09.000Z
pyAssignment/Readers/__init__.py
CD3/pyAssignment
bf618457ff10542b1c1f334c89f48f1de72da32b
[ "MIT" ]
null
null
null
from .ReaderBase import * from .Markdown import *
16.666667
25
0.76
0349eba703c514146234be496d5cdcb7e912a302
4,522
py
Python
core/models/CornerNet_Squeeze.py
ybai62868/CornerNet-Lite
cad0fb248be1da38451042ff6c5b9979e67a0729
[ "BSD-3-Clause" ]
2
2019-12-10T02:11:32.000Z
2019-12-13T14:26:14.000Z
core/models/CornerNet_Squeeze.py
ybai62868/CornerNet-Lite
cad0fb248be1da38451042ff6c5b9979e67a0729
[ "BSD-3-Clause" ]
null
null
null
core/models/CornerNet_Squeeze.py
ybai62868/CornerNet-Lite
cad0fb248be1da38451042ff6c5b9979e67a0729
[ "BSD-3-Clause" ]
null
null
null
import torch import torch.nn as nn from .py_utils import TopPool, BottomPool, LeftPool, RightPool # corner pooling from .py_utils.utils import convolution, corner_pool, residual from .py_utils.losses import CornerNet_Loss from .py_utils.modules import hg_module, hg, hg_net class fire_module(nn.Module): def __ini...
40.375
104
0.618974
860d57e4aafc5464f26a2c202f689ffb07f12c30
13,171
py
Python
training/main.py
ZTao-z/ProxyNAS
c879afdadd7f71fafc2db383a85fc00c94bb6576
[ "Apache-2.0" ]
1
2021-03-08T07:58:18.000Z
2021-03-08T07:58:18.000Z
training/main.py
ZTao-z/ProxylessNAS
c879afdadd7f71fafc2db383a85fc00c94bb6576
[ "Apache-2.0" ]
null
null
null
training/main.py
ZTao-z/ProxylessNAS
c879afdadd7f71fafc2db383a85fc00c94bb6576
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import os, os.path as osp import math import argparse import torch.backends.cudnn as cudnn import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import torch.utils.data.distributed from torchvision import datasets, transforms import horovod.torch as hv...
38.176812
98
0.650292
19bfc894ac7278d17b7a23a3658d5d893afbc7cf
9,709
py
Python
pn.py
nelsonag/Pn_data
59da11f13efbfd5cdf74cf6ac343888d9f9f28e2
[ "MIT" ]
null
null
null
pn.py
nelsonag/Pn_data
59da11f13efbfd5cdf74cf6ac343888d9f9f28e2
[ "MIT" ]
null
null
null
pn.py
nelsonag/Pn_data
59da11f13efbfd5cdf74cf6ac343888d9f9f28e2
[ "MIT" ]
null
null
null
#!/usr/bin/env ipython2 import numpy as np import scipy.special as ss import scipy.interpolate as sint from statepoint import StatePoint from matplotlib import pyplot as plt from uncertainties import ufloat from gen_mgxs import mgxs import pickle from bisect import bisect import os import sys def Pn_solve(sigtn, sigs...
32.580537
90
0.527552
5c65a9e47f8fa0e664aa98db54c1b525c38a79f5
5,883
py
Python
__init__.py
cdoebler1/winston-chatbot
8bd625b767a5def313961a2fd5ed8223a3b2b6c7
[ "MIT" ]
null
null
null
__init__.py
cdoebler1/winston-chatbot
8bd625b767a5def313961a2fd5ed8223a3b2b6c7
[ "MIT" ]
null
null
null
__init__.py
cdoebler1/winston-chatbot
8bd625b767a5def313961a2fd5ed8223a3b2b6c7
[ "MIT" ]
null
null
null
# fallback-aiml # Copyright (C) 2017 Mycroft AI # # 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 3 of the License, or # (at your option) any later version. # # This program is d...
36.540373
109
0.631141