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
67dbe390a996bfb509184679c470396d2c54aa7c
1,170
py
Python
examples/example.py
Kiougar/datapie
90b40ac673da1a21d8cef59701de7e82e3258c0a
[ "MIT" ]
null
null
null
examples/example.py
Kiougar/datapie
90b40ac673da1a21d8cef59701de7e82e3258c0a
[ "MIT" ]
null
null
null
examples/example.py
Kiougar/datapie
90b40ac673da1a21d8cef59701de7e82e3258c0a
[ "MIT" ]
null
null
null
import random import string import gevent from datapie import Mine from datapie import Miner class MyMiner1(Miner): def process(self, data: bytes): return data.upper() class MyMiner2(Miner): def process(self, data: bytes): return data.lower() class MyMine(Mine): @staticmethod def ...
25.434783
117
0.670085
48378780cb94ae24380fa4050079f711adecead0
7,605
py
Python
kubernetes/client/models/networking_v1beta1_http_ingress_path.py
mariusgheorghies/python
68ac7e168963d8b5a81dc493b1973d29e903a15b
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/networking_v1beta1_http_ingress_path.py
mariusgheorghies/python
68ac7e168963d8b5a81dc493b1973d29e903a15b
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/networking_v1beta1_http_ingress_path.py
mariusgheorghies/python
68ac7e168963d8b5a81dc493b1973d29e903a15b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1.20.7 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six fr...
42.724719
945
0.657857
b8ef574bc13ada8862051c37c147b4e196c3261a
1,554
py
Python
supervisor/resolution/evaluations/source_mods.py
agners/hassio
42d993575ba94159046112d5ab16fac82ff5fe57
[ "Apache-2.0" ]
584
2020-01-31T18:53:10.000Z
2022-03-29T21:12:15.000Z
supervisor/resolution/evaluations/source_mods.py
agners/hassio
42d993575ba94159046112d5ab16fac82ff5fe57
[ "Apache-2.0" ]
1,056
2020-01-30T09:59:44.000Z
2022-03-31T10:15:32.000Z
supervisor/resolution/evaluations/source_mods.py
agners/hassio
42d993575ba94159046112d5ab16fac82ff5fe57
[ "Apache-2.0" ]
295
2020-02-03T11:30:42.000Z
2022-03-31T18:53:14.000Z
"""Evaluation class for Content Trust.""" import logging from pathlib import Path from ...const import CoreState from ...coresys import CoreSys from ...exceptions import CodeNotaryError, CodeNotaryUntrusted from ..const import UnsupportedReason from .base import EvaluateBase _SUPERVISOR_SOURCE = Path("/usr/src/superv...
29.884615
79
0.69112
f57eee7f4f9383ba1c8c87b36a6aa94b11d444a5
14,080
py
Python
haystack/nodes/connector/crawler.py
jamescalam/haystack
374155fd5c2d990cf51573a6da50314c3a07f926
[ "Apache-2.0" ]
null
null
null
haystack/nodes/connector/crawler.py
jamescalam/haystack
374155fd5c2d990cf51573a6da50314c3a07f926
[ "Apache-2.0" ]
null
null
null
haystack/nodes/connector/crawler.py
jamescalam/haystack
374155fd5c2d990cf51573a6da50314c3a07f926
[ "Apache-2.0" ]
1
2022-02-17T05:08:53.000Z
2022-02-17T05:08:53.000Z
from typing import List, Optional, Dict, Tuple, Union import re import sys import json import logging from pathlib import Path from urllib.parse import urlparse try: from webdriver_manager.chrome import ChromeDriverManager from selenium import webdriver except (ImportError, ModuleNotFoundError) as ie: fro...
45.863192
124
0.624574
492f2f648924287129d3d064bc2b15ddd201d55a
32,057
py
Python
Lib/idlelib/idle_test/test_config.py
marcoramirezmx/cpython
8b31a11a698cb5aa9b439b349c8de4e388846f73
[ "CNRI-Python-GPL-Compatible" ]
4
2019-09-12T02:35:07.000Z
2022-01-19T23:04:45.000Z
Lib/idlelib/idle_test/test_config.py
marcoramirezmx/cpython
8b31a11a698cb5aa9b439b349c8de4e388846f73
[ "CNRI-Python-GPL-Compatible" ]
3
2020-03-15T21:17:00.000Z
2020-03-15T22:50:40.000Z
Lib/idlelib/idle_test/test_config.py
marcoramirezmx/cpython
8b31a11a698cb5aa9b439b349c8de4e388846f73
[ "CNRI-Python-GPL-Compatible" ]
1
2019-08-23T20:54:20.000Z
2019-08-23T20:54:20.000Z
"""Test config, coverage 93%. (100% for IdleConfParser, IdleUserConfParser*, ConfigChanges). * Exception is OSError clause in Save method. Much of IdleConf is also exercised by ConfigDialog and test_configdialog. """ from idlelib import config import sys import os import tempfile from test.support import captured_stder...
39.772953
107
0.611411
98583d0605afbfc50ff518480116acabd9aef06d
72
py
Python
deephyper/benchmark/hps/autosklearn1/__init__.py
Z223I/deephyper
4fd1054dc22f15197567bdd93c6e7a95a614b8e2
[ "BSD-3-Clause" ]
2
2020-08-26T09:15:27.000Z
2020-08-26T09:19:13.000Z
deephyper/benchmark/hps/autosklearn1/__init__.py
Z223I/deephyper
4fd1054dc22f15197567bdd93c6e7a95a614b8e2
[ "BSD-3-Clause" ]
null
null
null
deephyper/benchmark/hps/autosklearn1/__init__.py
Z223I/deephyper
4fd1054dc22f15197567bdd93c6e7a95a614b8e2
[ "BSD-3-Clause" ]
1
2021-08-31T13:47:27.000Z
2021-08-31T13:47:27.000Z
from deephyper.search.hps.automl.classifier.autosklearn1 import Problem
36
71
0.875
d76c334259adb5ccf7e19eca37f01f80c2ce5145
11,341
py
Python
Collections-a-installer/community-general-2.4.0/plugins/modules/remote_management/manageiq/manageiq_alert_profiles.py
d-amien-b/simple-getwordpress
da90d515a0aa837b633d50db4d91d22b031c04a2
[ "MIT" ]
22
2021-07-16T08:11:22.000Z
2022-03-31T07:15:34.000Z
Collections-a-installer/community-general-2.4.0/plugins/modules/remote_management/manageiq/manageiq_alert_profiles.py
d-amien-b/simple-getwordpress
da90d515a0aa837b633d50db4d91d22b031c04a2
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
Collections-a-installer/community-general-2.4.0/plugins/modules/remote_management/manageiq/manageiq_alert_profiles.py
d-amien-b/simple-getwordpress
da90d515a0aa837b633d50db4d91d22b031c04a2
[ "MIT" ]
39
2021-07-05T02:31:42.000Z
2022-03-31T02:46:03.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright (c) 2017 Red Hat Inc. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import (absolute_import, division, print_function) __metaclass__ = type DOCUMENTATION = ''' module: manageiq_alert_profiles short_...
37.062092
112
0.598713
82a7fbf95bbc5e487ddb985c160b641999d25d17
5,089
py
Python
sdk/python/pulumi_gcp/folder/iam_policy.py
23doors/pulumi-gcp
ded01b199f95b164884266ea3e6f8206c8231270
[ "ECL-2.0", "Apache-2.0" ]
1
2019-12-20T22:08:20.000Z
2019-12-20T22:08:20.000Z
sdk/python/pulumi_gcp/folder/iam_policy.py
pellizzetti/pulumi-gcp
fad74dd55a0cf7723f73046bb0e6fcbfd948ba84
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_gcp/folder/iam_policy.py
pellizzetti/pulumi-gcp
fad74dd55a0cf7723f73046bb0e6fcbfd948ba84
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import json import warnings import pulumi import pulumi.runtime from typing import Union from .. import utilities, tables class IAMPol...
50.386139
223
0.682452
1d67d850be4b51f73bca365a64b186565eba8b50
4,668
py
Python
amqp/amqp_handler.py
jlundy2/service-auto-analyzer
91dbb7155eff84877b29a327d68491467befa168
[ "Apache-2.0" ]
null
null
null
amqp/amqp_handler.py
jlundy2/service-auto-analyzer
91dbb7155eff84877b29a327d68491467befa168
[ "Apache-2.0" ]
null
null
null
amqp/amqp_handler.py
jlundy2/service-auto-analyzer
91dbb7155eff84877b29a327d68491467befa168
[ "Apache-2.0" ]
null
null
null
""" * Copyright 2019 EPAM Systems * * 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,...
33.342857
77
0.688303
b92e18fff271f07e1263f58bdd542dc2bed6a507
4,481
py
Python
setup.py
venustar1228/cactus-blockchain
a2fec724eb19489898ffa306d4203de11edb94b0
[ "Apache-2.0" ]
20
2021-07-16T18:08:13.000Z
2022-03-20T02:38:39.000Z
setup.py
Cactus-Network/cactus-blockchain
9eef13171dff764bd0549de1479d775272e16bcc
[ "Apache-2.0" ]
29
2021-07-17T00:38:18.000Z
2022-03-29T19:11:48.000Z
setup.py
venustar1228/cactus-blockchain
a2fec724eb19489898ffa306d4203de11edb94b0
[ "Apache-2.0" ]
21
2021-07-17T02:18:57.000Z
2022-03-15T08:26:56.000Z
from setuptools import setup dependencies = [ "multidict==5.1.0", # Avoid 5.2.0 due to Avast "blspy==1.0.6", # Signature library "chiavdf==1.0.3", # timelord and vdf verification "chiabip158==1.0", # bip158-style wallet filters "chiapos==1.0.6", # proof of space "clvm==0.9.7", "clvm_rs...
36.137097
90
0.616603
ded2a946dec860b4dcda0280a65fb9f7bf0c38ea
604
py
Python
core/urls.py
mahanfarzaneh2000/Freelara
803cd0e75c5c03ee23ed6dea5202f3e6a7af4864
[ "Apache-2.0" ]
null
null
null
core/urls.py
mahanfarzaneh2000/Freelara
803cd0e75c5c03ee23ed6dea5202f3e6a7af4864
[ "Apache-2.0" ]
null
null
null
core/urls.py
mahanfarzaneh2000/Freelara
803cd0e75c5c03ee23ed6dea5202f3e6a7af4864
[ "Apache-2.0" ]
1
2021-04-11T09:59:54.000Z
2021-04-11T09:59:54.000Z
from django.contrib import admin from django.urls import path, include from django.conf import settings from django.conf.urls.static import static urlpatterns = [ path("", include("pages.urls")), path("admin/", admin.site.urls), path("users/", include("users.urls")), path("gigs/", include("gigs.urls"))...
33.555556
82
0.713576
b3d60fa4ba092306444da6213353b51853c25317
12,109
py
Python
syzygy/build/app_verifier.py
nzeh/syzygy
3573e3d458dbb4285753c28a7cb42ced739f9f55
[ "Apache-2.0" ]
343
2015-01-07T05:58:44.000Z
2022-03-15T14:55:21.000Z
syzygy/build/app_verifier.py
nzeh/syzygy-nzeh
3757e53f850644721284073de318e218224dd411
[ "Apache-2.0" ]
61
2015-03-19T18:20:21.000Z
2019-10-23T12:58:23.000Z
syzygy/build/app_verifier.py
nzeh/syzygy-nzeh
3757e53f850644721284073de318e218224dd411
[ "Apache-2.0" ]
66
2015-01-20T15:35:05.000Z
2021-11-25T16:49:41.000Z
# 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 required by applicable law or a...
36.472892
80
0.680733
f67d19e97c87ad73766d0cdf150e1ce5f321b006
870
py
Python
triple_store_submitter/consts.py
ds-wizard/triple-store-submission-service
5c0403895bab0133745a75c39a069202fcb7b463
[ "Apache-2.0" ]
null
null
null
triple_store_submitter/consts.py
ds-wizard/triple-store-submission-service
5c0403895bab0133745a75c39a069202fcb7b463
[ "Apache-2.0" ]
null
null
null
triple_store_submitter/consts.py
ds-wizard/triple-store-submission-service
5c0403895bab0133745a75c39a069202fcb7b463
[ "Apache-2.0" ]
null
null
null
PACKAGE_NAME = 'triple_store_submitter' NICE_NAME = 'DSW Triple Store Submission Service' PACKAGE_VERSION = '1.2.0' ENV_CONFIG = 'SUBMISSION_CONFIG' _DEFAULT_BUILT_AT = 'BUILT_AT' BUILT_AT = '--BUILT_AT--' _DEFAULT_VERSION = 'VERSION' VERSION = '--VERSION--' DEFAULT_ENCODING = 'utf-8' COMMENT_INSTRUCTION_DELIMITER ...
25.588235
80
0.667816
c64e6d680caad71ea6e4f17dc00339c229af2b2c
356
py
Python
script_runner/celery.py
cscanlin/munger-builder
adb95ae31b8fc15fd914fee469be94895b285a6d
[ "MIT" ]
9
2015-11-06T10:37:37.000Z
2021-02-24T03:59:39.000Z
script_runner/celery.py
cscanlin/munger-builder
adb95ae31b8fc15fd914fee469be94895b285a6d
[ "MIT" ]
null
null
null
script_runner/celery.py
cscanlin/munger-builder
adb95ae31b8fc15fd914fee469be94895b285a6d
[ "MIT" ]
3
2015-12-21T17:40:44.000Z
2018-05-15T13:46:15.000Z
# from __future__ import absolute_import # # import os # # from celery import Celery # # os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'munger_builder.settings') # # from django.conf import settings # # app = Celery('munger_builder') # app.config_from_object('django.conf:settings') # app.autodiscover_task...
25.428571
77
0.75
cea8dff4a0583445cedb532b43ecf25ba7ba0376
729
py
Python
src/idx_proba_dict.py
chimerast/scdv-docker
c833c02f5f63ca9cc3e1ccc45b75e597fc5503a8
[ "Apache-2.0" ]
null
null
null
src/idx_proba_dict.py
chimerast/scdv-docker
c833c02f5f63ca9cc3e1ccc45b75e597fc5503a8
[ "Apache-2.0" ]
null
null
null
src/idx_proba_dict.py
chimerast/scdv-docker
c833c02f5f63ca9cc3e1ccc45b75e597fc5503a8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- Coding: utf-8 -*- import sys import os import signal import pickle import gensim from sklearn.mixture import GaussianMixture signal.signal(signal.SIGINT, signal.SIG_DFL) num_clusters = int(sys.argv[1]) wikiFile = sys.argv[2] baseFile = os.path.splitext(wikiFile)[0] modelFile = baseFile ...
25.137931
107
0.772291
9ab0bcc417b16fe1d81d2f91b97c3f6c25fba5b7
23,158
py
Python
silx/gui/plot/StatsWidget.py
payno/silx
13301e61627f98fa837008250ac74a0627a7a560
[ "CC0-1.0", "MIT" ]
1
2016-10-26T11:05:46.000Z
2016-10-26T11:05:46.000Z
silx/gui/plot/StatsWidget.py
payno/silx
13301e61627f98fa837008250ac74a0627a7a560
[ "CC0-1.0", "MIT" ]
1
2018-05-03T12:39:27.000Z
2018-05-03T12:39:27.000Z
silx/gui/plot/StatsWidget.py
payno/silx
13301e61627f98fa837008250ac74a0627a7a560
[ "CC0-1.0", "MIT" ]
null
null
null
# coding: utf-8 # /*########################################################################## # # Copyright (c) 2017 European Synchrotron Radiation Facility # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal #...
39.722127
96
0.613265
4657aa83299a440d2ea835a0bbc743a427e487b6
3,045
py
Python
magenta/models/onsets_frames_transcription/configs.py
treeson-li/magenta
d5b5dcf3acfa0a9175f555df3b0658a0241a8e9c
[ "Apache-2.0" ]
null
null
null
magenta/models/onsets_frames_transcription/configs.py
treeson-li/magenta
d5b5dcf3acfa0a9175f555df3b0658a0241a8e9c
[ "Apache-2.0" ]
null
null
null
magenta/models/onsets_frames_transcription/configs.py
treeson-li/magenta
d5b5dcf3acfa0a9175f555df3b0658a0241a8e9c
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The Magenta Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
32.052632
74
0.682759
ce0718eb5943e5669e812f44988d7dffd4898237
1,250
py
Python
data_structures/hashing/double_hash.py
Morre525/Python
aaf8fe67d3a792ca4bf0ab89dae276d95e61b109
[ "MIT" ]
null
null
null
data_structures/hashing/double_hash.py
Morre525/Python
aaf8fe67d3a792ca4bf0ab89dae276d95e61b109
[ "MIT" ]
null
null
null
data_structures/hashing/double_hash.py
Morre525/Python
aaf8fe67d3a792ca4bf0ab89dae276d95e61b109
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from hash_table import HashTable from number_theory.prime_numbers import next_prime, check_prime class DoubleHash(HashTable): """ Hash Table example with open addressing and Double Hash """ def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) def...
29.069767
80
0.5992
7aed42be873f673922f7a287421c064ebac114f7
3,150
py
Python
COGCCpy/production.py
dianaceroallard/COGCCpy
cb6fe01dede7b5e861a8dbe4387597576e02e665
[ "MIT" ]
1
2021-02-02T21:49:05.000Z
2021-02-02T21:49:05.000Z
COGCCpy/production.py
dianaceroallard/COGCCpy
cb6fe01dede7b5e861a8dbe4387597576e02e665
[ "MIT" ]
null
null
null
COGCCpy/production.py
dianaceroallard/COGCCpy
cb6fe01dede7b5e861a8dbe4387597576e02e665
[ "MIT" ]
null
null
null
import pandas as pd import requests import time class production: ''' Access production from COGCC. ''' def __init__(self, apis): self.apis = [x.replace('-', '') for x in apis] # Check for only APIs only in Colorado state_codes = [x[:2] for x in self.apis if x[:2]...
36.206897
143
0.492698
34e405c27bda1d09dd2149ceebfd206e58e65d96
2,703
py
Python
mycroft/util/lang/format_pt.py
sowmyavasudeva/SmartBookmark
797a90cfea624d2ab977e5aa78614c0db1177a23
[ "Apache-2.0" ]
2
2018-12-16T15:55:04.000Z
2018-12-29T19:52:38.000Z
mycroft/util/lang/format_pt.py
sowmyavasudeva/SmartBookmark
797a90cfea624d2ab977e5aa78614c0db1177a23
[ "Apache-2.0" ]
3
2021-06-08T21:06:32.000Z
2022-01-13T02:22:38.000Z
mycroft/util/lang/format_pt.py
sowmyavasudeva/SmartBookmark
797a90cfea624d2ab977e5aa78614c0db1177a23
[ "Apache-2.0" ]
1
2020-12-06T18:38:41.000Z
2020-12-06T18:38:41.000Z
# -*- coding: utf-8 -*- # # Copyright 2017 Mycroft AI 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 ...
27.581633
75
0.603774
4d4bcea763da5198e10d61555adf015541914f45
5,360
py
Python
badtray.py
ataradov/badtray
63cea025c3553d7f36e8d7ab5a2fdad689d25340
[ "BSD-3-Clause" ]
1
2021-11-20T16:55:18.000Z
2021-11-20T16:55:18.000Z
badtray.py
ataradov/badtray
63cea025c3553d7f36e8d7ab5a2fdad689d25340
[ "BSD-3-Clause" ]
null
null
null
badtray.py
ataradov/badtray
63cea025c3553d7f36e8d7ab5a2fdad689d25340
[ "BSD-3-Clause" ]
1
2021-11-22T17:00:25.000Z
2021-11-22T17:00:25.000Z
#!/usr/bin/env python3 # SPDX-License-Identifier: BSD-3-Clause # Copyright (c) 2021, Alex Taradov <alex@taradov.com>. All rights reserved. import html import os import time import http.server import socketserver import configparser # curl -T test.bin -utest:12345 http://127.0.0.1:12345/test/1/test-linux.bin #--------...
25.402844
136
0.546828
e0a5082a893ce64e0548b8f5492b2373944929df
23,888
py
Python
python/paddle/fluid/incubate/fleet/parameter_server/pslib/__init__.py
liym27/Paddle
50582071dce846a973a054c40fe194069657960a
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/incubate/fleet/parameter_server/pslib/__init__.py
liym27/Paddle
50582071dce846a973a054c40fe194069657960a
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/incubate/fleet/parameter_server/pslib/__init__.py
liym27/Paddle
50582071dce846a973a054c40fe194069657960a
[ "Apache-2.0" ]
1
2019-04-23T12:36:53.000Z
2019-04-23T12:36:53.000Z
# Copyright (c) 2019 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 app...
41.32872
103
0.571207
689efb23435b9593a08b5289449f315cbb64aba9
369
py
Python
extract1000.py
lavizhao/keyword
f2dc25bfa71b8734ee1140672a5dc1875814453b
[ "Apache-2.0" ]
3
2016-04-05T23:14:24.000Z
2017-05-30T12:49:06.000Z
extract1000.py
lavizhao/keyword
f2dc25bfa71b8734ee1140672a5dc1875814453b
[ "Apache-2.0" ]
null
null
null
extract1000.py
lavizhao/keyword
f2dc25bfa71b8734ee1140672a5dc1875814453b
[ "Apache-2.0" ]
null
null
null
#coding: utf-8 ''' 抽取训练数据400条,用来实验预处理等的效果 ''' import csv if __name__ == '__main__': f = open("data/new_train.csv") a = 0 sample_size = 100 train = [] for a in range(sample_size): row = f.readline() train.append(row) f.close() t = open("data/sub_train.csv"...
13.666667
38
0.536585
36fbc0c9d6725d9ff8198c1ca1c28bb07c910031
33,432
py
Python
l2s-sdn-framework-app.py
Networks-it-uc3m/software-driven-l2-communications
c7d9a24a0741afe728b7f703ce0f43e400b162a2
[ "Apache-2.0" ]
null
null
null
l2s-sdn-framework-app.py
Networks-it-uc3m/software-driven-l2-communications
c7d9a24a0741afe728b7f703ce0f43e400b162a2
[ "Apache-2.0" ]
null
null
null
l2s-sdn-framework-app.py
Networks-it-uc3m/software-driven-l2-communications
c7d9a24a0741afe728b7f703ce0f43e400b162a2
[ "Apache-2.0" ]
null
null
null
import json import logging from ryu.app.wsgi import ControllerBase from ryu.app.wsgi import Response from ryu.app.wsgi import route from ryu.app.wsgi import WSGIApplication from ryu.base import app_manager from ryu.lib import dpid as dpid_lib from ryu.topology.api import get_switch, get_link, get_host, event from ryu....
46.823529
157
0.607681
f807e1a80d4011d6c26c4784470e1710ed7d7b29
103,413
py
Python
calfem/core.py
Karl-Eriksson/calfem-python
e9a88a85d3a73877ec99f7fbd1a296a44c3c9b22
[ "MIT" ]
54
2016-04-11T19:12:13.000Z
2022-02-22T07:15:39.000Z
calfem/core.py
Karl-Eriksson/calfem-python
e9a88a85d3a73877ec99f7fbd1a296a44c3c9b22
[ "MIT" ]
13
2019-07-01T19:48:38.000Z
2022-02-11T12:50:02.000Z
calfem/core.py
Karl-Eriksson/calfem-python
e9a88a85d3a73877ec99f7fbd1a296a44c3c9b22
[ "MIT" ]
273
2017-08-01T10:29:09.000Z
2022-02-16T14:02:36.000Z
# -*- coding: iso-8859-15 -*- """ CALFEM Core module Contains all the functions implementing CALFEM standard functionality """ from scipy.sparse.linalg import dsolve import numpy as np import logging as cflog def error(msg): """Write ``msg`` to error log.""" cflog.error(" calfem.core: "+msg) def info(msg): ...
29.742019
132
0.412453
a3710f78f5947a4c5dffcd1a70622f6f23770c18
2,331
py
Python
keyboards/default/admin_keyboard.py
itcosplay/cryptobot
6890cfde64a631bf0e4db55f6873a2217212d801
[ "MIT" ]
null
null
null
keyboards/default/admin_keyboard.py
itcosplay/cryptobot
6890cfde64a631bf0e4db55f6873a2217212d801
[ "MIT" ]
null
null
null
keyboards/default/admin_keyboard.py
itcosplay/cryptobot
6890cfde64a631bf0e4db55f6873a2217212d801
[ "MIT" ]
null
null
null
from aiogram.types import ReplyKeyboardMarkup, KeyboardButton def create_kb_coustom_main_menu(user_id): from loader import db from data.config import super_admins if not user_id in super_admins: user_status = db.get_user_status(id=user_id) else: user_status = 'admin' keyboard = ...
30.671053
64
0.651223
97c9bb83ce4450206a2d2c317cdb9eb877ecaaec
93
py
Python
cbe/cbe/project/apps.py
cdaf/cbe
7945a3fad11ae4612e22163094571ac9157dca7f
[ "Apache-2.0" ]
3
2019-02-26T19:54:51.000Z
2021-03-23T02:57:02.000Z
cbe/cbe/project/apps.py
cdaf/cbe
7945a3fad11ae4612e22163094571ac9157dca7f
[ "Apache-2.0" ]
6
2016-12-23T02:11:21.000Z
2018-09-30T18:50:59.000Z
cbe/cbe/project/apps.py
cdaf/cbe
7945a3fad11ae4612e22163094571ac9157dca7f
[ "Apache-2.0" ]
4
2017-02-11T04:40:52.000Z
2020-10-12T22:22:54.000Z
from django.apps import AppConfig class ProjectConfig(AppConfig): name = 'cbe.project'
15.5
33
0.752688
be6755846b549048e312b62b83ca9c743769cfb1
10,547
py
Python
craamvert/instruments/poemas/poemas.py
craam/craamvert
ce776346844c83037eb552bdbffb9d5b5c7c9b9d
[ "MIT" ]
null
null
null
craamvert/instruments/poemas/poemas.py
craam/craamvert
ce776346844c83037eb552bdbffb9d5b5c7c9b9d
[ "MIT" ]
null
null
null
craamvert/instruments/poemas/poemas.py
craam/craamvert
ce776346844c83037eb552bdbffb9d5b5c7c9b9d
[ "MIT" ]
1
2021-03-26T22:53:43.000Z
2021-03-26T22:53:43.000Z
from craamvert.instruments import HISTORY, CONVERTED_WITH_FITS_LEVEL from instruments.utils.fits_handlers import set_fits_file_name_and_output_path from craamvert.instruments.poemas import POEMASDataType, POEMAS_FITS_FILE_NAME from craamvert.instruments.poemas.utils.create_hdu import create_data_hdu from craamvert.util...
44.880851
112
0.622357
d74d2a5ab7628e5f7f1439cda355a77610afa909
2,873
py
Python
src/utils/parse.py
cedricfarinazzo/ichronos.py
ae39dfce7e3e9b1b213e019e726da1145b604ae0
[ "MIT" ]
null
null
null
src/utils/parse.py
cedricfarinazzo/ichronos.py
ae39dfce7e3e9b1b213e019e726da1145b604ae0
[ "MIT" ]
null
null
null
src/utils/parse.py
cedricfarinazzo/ichronos.py
ae39dfce7e3e9b1b213e019e726da1145b604ae0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import sys from icalendar import Calendar from datetime import datetime, timedelta from models import * from utils import * def get_lessons(data): lessons = [] try: gcal = Calendar.from_ical(data) except ValueError: print("Wrong group name") ...
29.618557
82
0.597285
242ab19013e7c6e22c5d59ddffe65b7d92dd7f06
9,366
py
Python
tests/nn/checkpoint/test_checkpoint_activations.py
ncilfone/fairscale
b434b7354898febf718f23c7ff21368a6e0bbe1a
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
tests/nn/checkpoint/test_checkpoint_activations.py
ncilfone/fairscale
b434b7354898febf718f23c7ff21368a6e0bbe1a
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
tests/nn/checkpoint/test_checkpoint_activations.py
ncilfone/fairscale
b434b7354898febf718f23c7ff21368a6e0bbe1a
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the BSD license found in the # LICENSE file in the root directory of this source tree. """Test fairscale.nn.misc.checkpoint_activations API.""" import pytest import torch import torch.nn as nn from torch.utils.checkpoint import ...
34.688889
119
0.647769
41f76df82e089723fa87a7dff77777f3cae22d54
4,186
py
Python
api/python/tests/test_api.py
NathanDeMaria/quilt
894c98c23fd4788b90ef75ff1b547c6258e5ccce
[ "Apache-2.0" ]
null
null
null
api/python/tests/test_api.py
NathanDeMaria/quilt
894c98c23fd4788b90ef75ff1b547c6258e5ccce
[ "Apache-2.0" ]
null
null
null
api/python/tests/test_api.py
NathanDeMaria/quilt
894c98c23fd4788b90ef75ff1b547c6258e5ccce
[ "Apache-2.0" ]
null
null
null
from datetime import datetime, timedelta, timezone import numpy as np import pytest import responses import yaml import quilt3 as he from quilt3 import util from .utils import QuiltTestCase DEFAULT_URL = 'https://registry.example.com' class TestAPI(QuiltTestCase): def test_config(self): content = { ...
34.883333
102
0.587912
afb57f27866ce5216b94a5f4c3239f5c21a00d2a
5,583
py
Python
deployment/test/test_maintainlib_etcdfix.py
wyatuestc/pai
65b44e1ab37cab0790af392a016cc9fb1d2318fe
[ "MIT" ]
1,417
2019-05-07T00:51:36.000Z
2022-03-31T10:15:31.000Z
deployment/test/test_maintainlib_etcdfix.py
wyatuestc/pai
65b44e1ab37cab0790af392a016cc9fb1d2318fe
[ "MIT" ]
2,447
2019-05-07T01:36:32.000Z
2022-03-30T08:47:43.000Z
deployment/test/test_maintainlib_etcdfix.py
wyatuestc/pai
65b44e1ab37cab0790af392a016cc9fb1d2318fe
[ "MIT" ]
329
2019-05-07T02:28:06.000Z
2022-03-29T06:12:49.000Z
# Copyright (c) Microsoft Corporation # All rights reserved. # # MIT License # # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated # documentation files (the "Software"), to deal in the Software without restriction, including without limitation # the rights to ...
37.979592
140
0.745477
e36c8fad846e33ba6cc8f9db3ca3d13586007369
5,140
py
Python
ironic/drivers/modules/drac/utils.py
yanndegat/ironic
8857ec76443dea7778bb9c0d66568304e52495e5
[ "Apache-2.0" ]
350
2015-01-02T09:35:49.000Z
2022-03-28T09:25:59.000Z
ironic/drivers/modules/drac/utils.py
yanndegat/ironic
8857ec76443dea7778bb9c0d66568304e52495e5
[ "Apache-2.0" ]
7
2015-05-04T16:12:41.000Z
2021-08-31T12:27:27.000Z
ironic/drivers/modules/drac/utils.py
yanndegat/ironic
8857ec76443dea7778bb9c0d66568304e52495e5
[ "Apache-2.0" ]
333
2015-01-06T09:09:22.000Z
2022-02-20T08:11:40.000Z
# Copyright (c) 2021 Dell Inc. or its subsidiaries. # # 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...
45.486726
79
0.616537
0e32d86af6d92b8a84c3e2a62b58b5ac57b5d6c0
3,562
py
Python
bindings/python/ensmallen/datasets/string/hymenobacterpsychrotoleransdsm18569.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
5
2021-02-17T00:44:45.000Z
2021-08-09T16:41:47.000Z
bindings/python/ensmallen/datasets/string/hymenobacterpsychrotoleransdsm18569.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
18
2021-01-07T16:47:39.000Z
2021-08-12T21:51:32.000Z
bindings/python/ensmallen/datasets/string/hymenobacterpsychrotoleransdsm18569.py
AnacletoLAB/ensmallen
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
3
2021-01-14T02:20:59.000Z
2021-08-04T19:09:52.000Z
""" This file offers the methods to automatically retrieve the graph Hymenobacter psychrotolerans DSM 18569. The graph is automatically retrieved from the STRING repository. References --------------------- Please cite the following if you use the data: ```bib @article{szklarczyk2019string, title={STRING v11: ...
33.92381
223
0.684166
94857936ac6a48ad1855c4a93f241dfe6b775ec5
2,181
py
Python
aliyun-python-sdk-dataworks-public/aliyunsdkdataworks_public/request/v20200518/CreateQualityEntityRequest.py
jia-jerry/aliyun-openapi-python-sdk
e90f3683a250cfec5b681b5f1d73a68f0dc9970d
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-dataworks-public/aliyunsdkdataworks_public/request/v20200518/CreateQualityEntityRequest.py
jia-jerry/aliyun-openapi-python-sdk
e90f3683a250cfec5b681b5f1d73a68f0dc9970d
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-dataworks-public/aliyunsdkdataworks_public/request/v20200518/CreateQualityEntityRequest.py
jia-jerry/aliyun-openapi-python-sdk
e90f3683a250cfec5b681b5f1d73a68f0dc9970d
[ "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...
35.177419
92
0.767079
9db9153d05e86b33d4d0ff761c91b936fb2bce10
13,829
py
Python
yaml_cli/__init__.py
tensX/yaml_cli
ff5155603e50a41d4ec50bd702896f0bb2481077
[ "MIT" ]
36
2017-12-23T23:22:05.000Z
2021-05-28T11:22:31.000Z
yaml_cli/__init__.py
tensX/yaml_cli
ff5155603e50a41d4ec50bd702896f0bb2481077
[ "MIT" ]
8
2018-01-26T10:19:10.000Z
2021-07-12T19:55:07.000Z
yaml_cli/__init__.py
tensX/yaml_cli
ff5155603e50a41d4ec50bd702896f0bb2481077
[ "MIT" ]
11
2018-06-22T19:31:58.000Z
2021-11-21T04:03:30.000Z
#!/usr/bin/env python import sys import argparse import fileinput import sys import os import yaml from yaml_cli.version import __version__ ACTION_SET = 'set' ACTION_RM = 'rm' BOOLEAN_VALUES_TRUE = ('1', 'true', 'True', 'yes') BOOLEAN_VALUES_FALSE = ('', '0', 'false', 'False', 'no') HELP_KEY_SYNTAX = "mykey:subke...
29.052521
205
0.672211
1f62411d5470fbfa81affeac56932f42d15c98cc
2,984
py
Python
malib/policies/explorations/epsilon_greedy_strategy.py
alvaro-serra/malib
fe2b0736974c2a3ed9e41121b6cf475a3ee0b5a0
[ "MIT" ]
23
2020-07-05T11:13:00.000Z
2022-01-28T00:24:41.000Z
malib/policies/explorations/epsilon_greedy_strategy.py
Taospirit/malib
fe2b0736974c2a3ed9e41121b6cf475a3ee0b5a0
[ "MIT" ]
2
2020-09-07T19:09:40.000Z
2021-06-02T02:21:51.000Z
malib/policies/explorations/epsilon_greedy_strategy.py
Taospirit/malib
fe2b0736974c2a3ed9e41121b6cf475a3ee0b5a0
[ "MIT" ]
8
2020-07-06T07:24:37.000Z
2021-09-27T20:28:25.000Z
# Created by yingwen at 2019-03-12 """ ϵ-greedy exploration strategy. Random exploration according to the value of epsilon. """ import numpy as np from malib.policies.explorations.base_exploration import ExplorationBase # from garage.misc.overrides import overrides # TODO: maybe follow this to optimize performance: ht...
37.3
125
0.647453
e702ac7686f87e923850f3a9ec4f19e3da6a4a73
9,931
py
Python
nncf/dynamic_graph/patch_pytorch.py
LeonidBeynenson/nncf_pytorch
f8ded2752aded28d3559308c354235e5011ccbe0
[ "Apache-2.0" ]
null
null
null
nncf/dynamic_graph/patch_pytorch.py
LeonidBeynenson/nncf_pytorch
f8ded2752aded28d3559308c354235e5011ccbe0
[ "Apache-2.0" ]
null
null
null
nncf/dynamic_graph/patch_pytorch.py
LeonidBeynenson/nncf_pytorch
f8ded2752aded28d3559308c354235e5011ccbe0
[ "Apache-2.0" ]
null
null
null
""" Copyright (c) 2019-2020 Intel Corporation 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 w...
41.207469
109
0.692075
aab8c0ae832231425ba641fe6094965aaf5db2a5
7,296
py
Python
qa/rpc-tests/walletbackup.py
maurizio17/C-Bit
73bc5652564d344af6847eefde6d386225d4ad02
[ "MIT" ]
1
2021-04-04T20:40:53.000Z
2021-04-04T20:40:53.000Z
qa/rpc-tests/walletbackup.py
maurizio17/C-Bit
73bc5652564d344af6847eefde6d386225d4ad02
[ "MIT" ]
null
null
null
qa/rpc-tests/walletbackup.py
maurizio17/C-Bit
73bc5652564d344af6847eefde6d386225d4ad02
[ "MIT" ]
1
2017-09-03T18:54:46.000Z
2017-09-03T18:54:46.000Z
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The C-Bit Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """ Exercise the wallet backup code. Ported from walletbackup.sh. Test case is: 4 nodes. 1 2 and 3 send t...
35.940887
95
0.653783
24a2c217db5e1281dc7d7055790a071cd531c185
30,169
py
Python
neutron/tests/unit/ml2/drivers/cisco/apic/test_cisco_apic_manager.py
SnabbCo/neutron
a657c06d10f2171149c6b1863df36522bdc11cd7
[ "Apache-2.0" ]
3
2015-02-02T02:51:39.000Z
2015-02-23T10:20:23.000Z
neutron/tests/unit/ml2/drivers/cisco/apic/test_cisco_apic_manager.py
SnabbCo/neutron
a657c06d10f2171149c6b1863df36522bdc11cd7
[ "Apache-2.0" ]
4
2015-02-23T10:21:11.000Z
2015-03-04T09:28:20.000Z
neutron/tests/unit/ml2/drivers/cisco/apic/test_cisco_apic_manager.py
SnabbCo/neutron
a657c06d10f2171149c6b1863df36522bdc11cd7
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2014 Cisco Systems # 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...
43.160229
79
0.694156
058a645dd3fdea3da28ac62eb3367f6f9f14555e
408
py
Python
jetavator_databricks_local/jetavator_databricks_local/config/secret_lookup/DatabricksSecretLookup.py
jetavator/jetavator_databricks
719c934b6391f6f41ca34b4d4df8c697c1a25283
[ "Apache-2.0" ]
null
null
null
jetavator_databricks_local/jetavator_databricks_local/config/secret_lookup/DatabricksSecretLookup.py
jetavator/jetavator_databricks
719c934b6391f6f41ca34b4d4df8c697c1a25283
[ "Apache-2.0" ]
null
null
null
jetavator_databricks_local/jetavator_databricks_local/config/secret_lookup/DatabricksSecretLookup.py
jetavator/jetavator_databricks
719c934b6391f6f41ca34b4d4df8c697c1a25283
[ "Apache-2.0" ]
null
null
null
from jetavator.config.secret_lookup import SecretLookup from lazy_property import LazyProperty class DatabricksSecretLookup(SecretLookup, register_as='databricks'): @LazyProperty def dbutils(self): import IPython return IPython.get_ipython().user_ns["dbutils"] def lookup_secret(self, se...
27.2
75
0.754902
2b754ee37c2c119486f850073956693d21bd99a4
10,002
py
Python
qa/common/gen_tag_sigdef.py
jiweibo/triton_server
a0f7868eb0cad9d6a119edf845387ceae808d350
[ "BSD-3-Clause" ]
1
2021-12-16T03:54:01.000Z
2021-12-16T03:54:01.000Z
qa/common/gen_tag_sigdef.py
jiweibo/triton_server
a0f7868eb0cad9d6a119edf845387ceae808d350
[ "BSD-3-Clause" ]
null
null
null
qa/common/gen_tag_sigdef.py
jiweibo/triton_server
a0f7868eb0cad9d6a119edf845387ceae808d350
[ "BSD-3-Clause" ]
1
2021-07-26T13:00:08.000Z
2021-07-26T13:00:08.000Z
# Copyright (c) 2021, NVIDIA CORPORATION. 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 # notice, this list of conditions a...
42.74359
112
0.630574
0c10e7de42187b5ff38c7a04fee9d96da4eb6ea0
2,026
py
Python
paddlers/transforms/__init__.py
huilin16/PaddleRS
ca0d6223d8e56cd3bd3cbd3a033c89f1718ce26a
[ "Apache-2.0" ]
40
2022-02-28T02:07:28.000Z
2022-03-31T09:54:29.000Z
paddlers/transforms/__init__.py
wondering516/PaddleRS
b6f7033f3c0ca7bc6952456c0a0f53eef6c1c07f
[ "Apache-2.0" ]
5
2022-03-15T12:13:33.000Z
2022-03-31T15:54:08.000Z
paddlers/transforms/__init__.py
wondering516/PaddleRS
b6f7033f3c0ca7bc6952456c0a0f53eef6c1c07f
[ "Apache-2.0" ]
20
2022-02-28T02:07:31.000Z
2022-03-31T11:40:40.000Z
# Copyright (c) 2022 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 applic...
38.226415
87
0.705824
d3532b268dcfcc065a9c981e6bc1f18c971d1c70
867
py
Python
pyfitterbap/version.py
jetperch/fitterbap
dc29db72c2d7b01d90556a251be0a361574033bc
[ "Apache-2.0" ]
21
2021-05-14T20:16:56.000Z
2022-03-30T18:54:31.000Z
pyfitterbap/version.py
jetperch/fitterbap
dc29db72c2d7b01d90556a251be0a361574033bc
[ "Apache-2.0" ]
null
null
null
pyfitterbap/version.py
jetperch/fitterbap
dc29db72c2d7b01d90556a251be0a361574033bc
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Jetperch 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,...
34.68
74
0.762399
ac9a483e6fd3fc024fb2ad6e2d92bd929abe01af
12,198
py
Python
scripts/fortran_tools/fortran_write.py
pjpegion/ccpp-framework
6874fc9b49237b70df7af9b513ea10df697c27d6
[ "Apache-2.0" ]
17
2018-04-17T16:02:31.000Z
2021-12-06T11:26:43.000Z
scripts/fortran_tools/fortran_write.py
pjpegion/ccpp-framework
6874fc9b49237b70df7af9b513ea10df697c27d6
[ "Apache-2.0" ]
305
2018-03-27T15:44:36.000Z
2022-03-31T02:37:05.000Z
scripts/fortran_tools/fortran_write.py
pjpegion/ccpp-framework
6874fc9b49237b70df7af9b513ea10df697c27d6
[ "Apache-2.0" ]
48
2018-03-26T21:37:46.000Z
2022-03-24T12:29:57.000Z
#!/usr/bin/env python # """Code to write Fortran code """ # Python library imports from __future__ import print_function # CCPP framework imports class FortranWriter(object): """Class to turn output into properly continued and indented Fortran code >>> FortranWriter("foo.F90", 'r', 'test', 'mod_name') #docte...
39.096154
93
0.501476
62730bfa286433260c03cb4df1fb179fc5dde275
12,847
py
Python
Blender/appdata_common/Blender Foundation/Blender/BLENDER_VERSION/scripts/addons/DTB/DtbCommands.py
guto88/DazToBlender
00656eadd67e5c5fca9a651ccc7209c7af67d79f
[ "Apache-2.0" ]
null
null
null
Blender/appdata_common/Blender Foundation/Blender/BLENDER_VERSION/scripts/addons/DTB/DtbCommands.py
guto88/DazToBlender
00656eadd67e5c5fca9a651ccc7209c7af67d79f
[ "Apache-2.0" ]
null
null
null
Blender/appdata_common/Blender Foundation/Blender/BLENDER_VERSION/scripts/addons/DTB/DtbCommands.py
guto88/DazToBlender
00656eadd67e5c5fca9a651ccc7209c7af67d79f
[ "Apache-2.0" ]
null
null
null
import bpy import os import sys sys.path.append(os.path.dirname(__file__)) from . import DataBase from . import Versions from . import MatDct from . import DtbMaterial from . import Util from . import Global from . import Poses from bpy_extras.io_utils import ImportHelper from bpy.props import StringProperty from bpy.t...
35.48895
126
0.56449
916e9c237f7a7bcd712b42cf296d2a9f9ff196b3
6,666
py
Python
imcsdk/mometa/storage/StorageLocalDiskProps.py
kgrozis/UCS-CIMC-Scripts
44069ee853299fe5aeed023e8c998ce2534b8d8b
[ "Apache-2.0" ]
null
null
null
imcsdk/mometa/storage/StorageLocalDiskProps.py
kgrozis/UCS-CIMC-Scripts
44069ee853299fe5aeed023e8c998ce2534b8d8b
[ "Apache-2.0" ]
null
null
null
imcsdk/mometa/storage/StorageLocalDiskProps.py
kgrozis/UCS-CIMC-Scripts
44069ee853299fe5aeed023e8c998ce2534b8d8b
[ "Apache-2.0" ]
null
null
null
"""This module contains the general information for StorageLocalDiskProps ManagedObject.""" from ...imcmo import ManagedObject from ...imccoremeta import ImcVersion, MoPropertyMeta, MoMeta from ...imcmeta import VersionMeta class StorageLocalDiskPropsConsts(): pass class StorageLocalDiskProps(ManagedObject): ...
64.096154
225
0.666817
c89f028890b6ca9ac66f10f1361fca5078168a85
58,956
py
Python
astropy/io/ascii/core.py
nealmcb/astropy
b1addf5ae4ae8c18b048940c460a3be2735f5392
[ "BSD-3-Clause" ]
1
2020-03-27T04:13:08.000Z
2020-03-27T04:13:08.000Z
astropy/io/ascii/core.py
nealmcb/astropy
b1addf5ae4ae8c18b048940c460a3be2735f5392
[ "BSD-3-Clause" ]
null
null
null
astropy/io/ascii/core.py
nealmcb/astropy
b1addf5ae4ae8c18b048940c460a3be2735f5392
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ An extensible ASCII table reader and writer. core.py: Core base classes and functions for reading and writing tables. :Copyright: Smithsonian Astrophysical Observatory (2010) :Author: Tom Aldcroft (aldcroft@head.cfa.harvard.edu) """ import copy i...
36.93985
99
0.610676
2e1b4ff3258f0bee2719e86b244f01ad86854a7c
14,097
py
Python
plugins/CodeCounter/CodeCounter/GUI.py
bopopescu/NovalIDE
590c2adb69d54fa4a6c9dad5459198be057b1329
[ "MulanPSL-1.0" ]
null
null
null
plugins/CodeCounter/CodeCounter/GUI.py
bopopescu/NovalIDE
590c2adb69d54fa4a6c9dad5459198be057b1329
[ "MulanPSL-1.0" ]
null
null
null
plugins/CodeCounter/CodeCounter/GUI.py
bopopescu/NovalIDE
590c2adb69d54fa4a6c9dad5459198be057b1329
[ "MulanPSL-1.0" ]
null
null
null
#coding=utf-8 import tkinter as tk import os import threading import time from tkinter import ttk from tkinter.filedialog import askdirectory,askopenfilename from codecounter import CodeCounter from noval import GetApp import noval.consts as consts import noval.syntax.syntax as syntax import easyplug...
38.411444
143
0.603391
5d45203726472e049638580605603bf430b2c683
5,153
py
Python
Server/src/virtualenv/Lib/site-packages/setuptools/command/setopt.py
ppyordanov/HCI_4_Future_Cities
4dc7dc59acccf30357bde66524c2d64c29908de8
[ "MIT" ]
null
null
null
Server/src/virtualenv/Lib/site-packages/setuptools/command/setopt.py
ppyordanov/HCI_4_Future_Cities
4dc7dc59acccf30357bde66524c2d64c29908de8
[ "MIT" ]
null
null
null
Server/src/virtualenv/Lib/site-packages/setuptools/command/setopt.py
ppyordanov/HCI_4_Future_Cities
4dc7dc59acccf30357bde66524c2d64c29908de8
[ "MIT" ]
null
null
null
import os import distutils from setuptools import Command from distutils.util import convert_path from distutils import log from distutils.errors import DistutilsOptionError __all__ = ['config_file', 'edit_config', 'option_base', 'setopt'] def config_file(kind="local"): """Get the filename of the distutils, loca...
34.583893
79
0.570347
9cc9deffa83bc9f8e4c42fb4a7ac6f372040bf67
950
py
Python
example_code/gcp/example_code/dags/virtual_env_op.py
jbampton/airflow-guides
b56e90d1f4e39456c2d2eb818c32d996f03957e8
[ "Apache-2.0" ]
1
2021-02-21T01:18:57.000Z
2021-02-21T01:18:57.000Z
example_code/gcp/example_code/dags/virtual_env_op.py
vlasvlasvlas/airflow-guides
b61e69669d8573570d81219b5b6f70d375a7a5a9
[ "Apache-2.0" ]
null
null
null
example_code/gcp/example_code/dags/virtual_env_op.py
vlasvlasvlas/airflow-guides
b61e69669d8573570d81219b5b6f70d375a7a5a9
[ "Apache-2.0" ]
1
2020-05-20T19:12:04.000Z
2020-05-20T19:12:04.000Z
from airflow import DAG from airflow.operators.python_operator import PythonOperator from airflow.operators.python_operator import PythonVirtualenvOperator from datetime import datetime, timedelta default_args = { 'owner': 'airflow', 'depends_on_past': False, 'start_date': datetime(2018, 1, 1), 'email_...
20.652174
70
0.697895
07a3fb3432f5e062b3bbe2e4100dacfa99c5f783
4,722
py
Python
tools/report_ci_failure.py
quantumkoen/qiskit-terra
495046d07471e64eab6ddbdfdf8bdef88f0c644f
[ "Apache-2.0" ]
null
null
null
tools/report_ci_failure.py
quantumkoen/qiskit-terra
495046d07471e64eab6ddbdfdf8bdef88f0c644f
[ "Apache-2.0" ]
null
null
null
tools/report_ci_failure.py
quantumkoen/qiskit-terra
495046d07471e64eab6ddbdfdf8bdef88f0c644f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2018, IBM. # # This source code is licensed under the Apache License, Version 2.0 found in # the LICENSE.txt file in the root directory of this source tree. """Utility module to open an issue on the repository when CIs fail.""" import os from github import Github class CIFailureR...
34.977778
103
0.661584
d7b78435beea7d3b2d45b1e41ae831107968e4b6
878
py
Python
src/mailer/management/commands/send_mail.py
srtab/django-mailer
42eb41bf5e09df601512b1c2a8e6ef6624633328
[ "MIT" ]
1
2021-05-17T18:19:56.000Z
2021-05-17T18:19:56.000Z
src/mailer/management/commands/send_mail.py
srtab/django-mailer
42eb41bf5e09df601512b1c2a8e6ef6624633328
[ "MIT" ]
1
2020-03-05T23:47:02.000Z
2020-03-05T23:47:02.000Z
src/mailer/management/commands/send_mail.py
srtab/django-mailer
42eb41bf5e09df601512b1c2a8e6ef6624633328
[ "MIT" ]
null
null
null
import logging from django.conf import settings from django.core.management.base import BaseCommand from mailer.engine import send_all from mailer.management.helpers import CronArgMixin # allow a sysadmin to pause the sending of mail temporarily. PAUSE_SEND = getattr(settings, "MAILER_PAUSE_SEND", False) class Co...
31.357143
77
0.678815
4c9f4d5470e63397ab078c35d0fea07952ec1acd
682
py
Python
retrievers/DANCE/ANCE_setup.py
vishalbelsare/OpenMatch
84b25502bf52c58b9e71bd0754b2fc192d9b448f
[ "MIT" ]
403
2020-01-17T06:54:46.000Z
2022-03-30T05:47:42.000Z
retrievers/DANCE/ANCE_setup.py
vishalbelsare/OpenMatch
84b25502bf52c58b9e71bd0754b2fc192d9b448f
[ "MIT" ]
30
2020-06-07T12:28:07.000Z
2022-03-20T05:26:03.000Z
retrievers/DANCE/ANCE_setup.py
vishalbelsare/OpenMatch
84b25502bf52c58b9e71bd0754b2fc192d9b448f
[ "MIT" ]
48
2020-07-15T09:45:46.000Z
2022-03-01T07:27:59.000Z
from setuptools import setup with open('README.md') as f: readme = f.read() setup( name='ANCE', version='0.1.0', description='Approximate Nearest Neighbor Negative Contrastive Learning for Dense Text Retrieval', url='https://github.com/microsoft/ANCE', classifiers=[ 'Intended Aud...
28.416667
102
0.608504
5368aeb9765dc68477b50279ee653c79f1967cc8
363
py
Python
database/admin.py
erischon/p8_eri_schon
b64de7acad28463a39b40ce9d537ceec4227202b
[ "MIT" ]
null
null
null
database/admin.py
erischon/p8_eri_schon
b64de7acad28463a39b40ce9d537ceec4227202b
[ "MIT" ]
null
null
null
database/admin.py
erischon/p8_eri_schon
b64de7acad28463a39b40ce9d537ceec4227202b
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Categorie, Shop, Brand, Nutriscore, Product, Prodbrand, Prodcat, Prodshop admin.site.register(Categorie) admin.site.register(Shop) admin.site.register(Brand) admin.site.register(Nutriscore) admin.site.register(Product) admin.site.register(Prodbrand) admin.site.regis...
30.25
93
0.820937
fd06bc455e9bd3f4fb0d35d75da268e12e227bea
4,851
py
Python
var/spack/repos/builtin/packages/blis/package.py
carlabguillen/spack
7070bb892f9bdb5cf9e76e0eecd64f6cc5f4695c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1
2020-05-24T15:23:12.000Z
2020-05-24T15:23:12.000Z
var/spack/repos/builtin/packages/blis/package.py
carlabguillen/spack
7070bb892f9bdb5cf9e76e0eecd64f6cc5f4695c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
6
2022-02-26T11:44:34.000Z
2022-03-12T12:14:50.000Z
var/spack/repos/builtin/packages/blis/package.py
carlabguillen/spack
7070bb892f9bdb5cf9e76e0eecd64f6cc5f4695c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1
2019-10-29T09:08:17.000Z
2019-10-29T09:08:17.000Z
# Copyright 2013-2020 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) # Although this looks like an Autotools package, it's not one. Refer to: # https://github.com/flame/blis/issues/17 # https...
33.923077
95
0.666254
49e0a4fee3d17c20041fa6667a6a74e488039aef
1,288
py
Python
app/api/routers/country.py
Mohammed785/Emergency-Numbers-fastapi
345a6a77eea36e5dcac34b103ddfe0f0a7d17bb6
[ "MIT" ]
null
null
null
app/api/routers/country.py
Mohammed785/Emergency-Numbers-fastapi
345a6a77eea36e5dcac34b103ddfe0f0a7d17bb6
[ "MIT" ]
null
null
null
app/api/routers/country.py
Mohammed785/Emergency-Numbers-fastapi
345a6a77eea36e5dcac34b103ddfe0f0a7d17bb6
[ "MIT" ]
null
null
null
from typing import List from fastapi import APIRouter,Depends,status from api import schemas,database,oauth2 from sqlalchemy.orm import Session from api.repository import country router = APIRouter( prefix='/country', tags=['Country'] ) get_db = database.get_db @router.post('/create',status_...
41.548387
146
0.778727
9ef37e2e2008ffb13a6cbecf443c017c58b4f968
1,957
py
Python
iati_parse_n_process.py
brainsqueeze/IATI-parse
136458f690ba7fc0f6c7573564989117cfb92fff
[ "MIT" ]
null
null
null
iati_parse_n_process.py
brainsqueeze/IATI-parse
136458f690ba7fc0f6c7573564989117cfb92fff
[ "MIT" ]
null
null
null
iati_parse_n_process.py
brainsqueeze/IATI-parse
136458f690ba7fc0f6c7573564989117cfb92fff
[ "MIT" ]
null
null
null
import json from urllib import request from xml.etree import ElementTree as Et def strip_text(xml_array, tag, text_type, default): """ Parses XML attributes along the same level :param xml_array: XML attributes (list) :param tag: name of XML tag to search for (str) :param text_type: what type the ...
28.779412
117
0.621359
4ec6f98a8f77362c0ab939db72c778c0245bf43e
1,201
py
Python
src/solutions/common/to/discussion_groups.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
src/solutions/common/to/discussion_groups.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
src/solutions/common/to/discussion_groups.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Green Valley Belgium NV # # 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...
34.314286
92
0.706911
5b498abdf1c6495d375d516e0451627f84cf2857
70,310
py
Python
tf2onnx/graph.py
zerollzeng/tensorflow-onnx
79afdbcebac61c7aea2905790479806b83664b52
[ "Apache-2.0" ]
null
null
null
tf2onnx/graph.py
zerollzeng/tensorflow-onnx
79afdbcebac61c7aea2905790479806b83664b52
[ "Apache-2.0" ]
null
null
null
tf2onnx/graph.py
zerollzeng/tensorflow-onnx
79afdbcebac61c7aea2905790479806b83664b52
[ "Apache-2.0" ]
null
null
null
# SPDX-License-Identifier: Apache-2.0 """ tf2onnx.graph - class to manage graph manipulation on top of onnx """ import collections import copy import logging import six import numpy as np from onnx import helper, numpy_helper, shape_inference, OperatorSetIdProto, AttributeProto, TensorProto from tf2onnx import util...
40.338497
120
0.604452
0b6ff5289d2648b181db81ce7676b8ec6adf5d5b
10,629
py
Python
mybic/labs/migrations/0026_auto__add_sitearticle.py
chop-dbhi/mybic
c6c99c002dacc9c181b640e62a1943943b396561
[ "BSD-2-Clause" ]
1
2016-09-19T15:55:00.000Z
2016-09-19T15:55:00.000Z
mybic/labs/migrations/0026_auto__add_sitearticle.py
chop-dbhi/mybic
c6c99c002dacc9c181b640e62a1943943b396561
[ "BSD-2-Clause" ]
null
null
null
mybic/labs/migrations/0026_auto__add_sitearticle.py
chop-dbhi/mybic
c6c99c002dacc9c181b640e62a1943943b396561
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'SiteArticle' db.create_table(u'labs_sitearticle', ( ...
66.43125
119
0.523003
4e68a5d39b49c938a25fbcd781a8c10da18b3256
200
py
Python
main.py
sahooj105/Major-Project
297c9e89c19e9143a992c90839c27ce40fd2e6f6
[ "MIT" ]
null
null
null
main.py
sahooj105/Major-Project
297c9e89c19e9143a992c90839c27ce40fd2e6f6
[ "MIT" ]
null
null
null
main.py
sahooj105/Major-Project
297c9e89c19e9143a992c90839c27ce40fd2e6f6
[ "MIT" ]
null
null
null
import process_image occupied_grids, planned_path = process_image.main("test_images/test_image4.jpg") print ("Occupied Grids : ") print (occupied_grids) print ("Planned Path :") print (planned_path)
25
80
0.785
5067c361b6cff5fbb0f984340ffd77f426125edc
603
py
Python
app/__init__.py
ShadrackNdolo/MovieDatabaseAP
38d88daa13e72487a63654d38e7544041359228f
[ "MIT" ]
null
null
null
app/__init__.py
ShadrackNdolo/MovieDatabaseAP
38d88daa13e72487a63654d38e7544041359228f
[ "MIT" ]
null
null
null
app/__init__.py
ShadrackNdolo/MovieDatabaseAP
38d88daa13e72487a63654d38e7544041359228f
[ "MIT" ]
null
null
null
from flask import Flask from flask_bootstrap import Bootstrap from config import config_options bootstrap = Bootstrap() def create_app(config_name): app = Flask(__name__) # Creating the app configurations app.config.from_object(config_options[config_name]) # Initializing flask extensions bootst...
22.333333
55
0.752902
87ef4a92365ac21403c1027da566ea80a98ddbbc
408
py
Python
samples/blender-cartography-addon-exec.py
akyruu/blender-cartography-addon
4f34b029d9b6a72619227ab3ceaed9393506934e
[ "Apache-2.0" ]
null
null
null
samples/blender-cartography-addon-exec.py
akyruu/blender-cartography-addon
4f34b029d9b6a72619227ab3ceaed9393506934e
[ "Apache-2.0" ]
null
null
null
samples/blender-cartography-addon-exec.py
akyruu/blender-cartography-addon
4f34b029d9b6a72619227ab3ceaed9393506934e
[ "Apache-2.0" ]
null
null
null
import os import platform import sys print('Python version : ' + platform.python_version()) print('Script arguments: ' + ' '.join(arg for i, arg in enumerate(sys.argv) if i > sys.argv.index('--'))) folder = '.' if folder not in sys.path: sys.path.append(folder) init_file = '__init__.py' sys.argv.extend(['DEBUG...
25.5
105
0.691176
58b4c0265ec54bedd60bec97b70ef2f117338c3a
26,219
py
Python
ooni/utils/onion.py
meejah/ooni-probe
f46dc5879da409763718cfa5aa2635ddf5332a54
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
ooni/utils/onion.py
meejah/ooni-probe
f46dc5879da409763718cfa5aa2635ddf5332a54
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
ooni/utils/onion.py
meejah/ooni-probe
f46dc5879da409763718cfa5aa2635ddf5332a54
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
# # onion.py # ---------- # Utilities for working with Tor. # # This code is largely taken from txtorcon and its documentation, and as such # any and all credit should go to Meejah. Minor adjustments have been made to # use OONI's logging system, and to build custom circuits without actually # attaching streams. # # :a...
37.190071
81
0.625119
3fadc85aee3db6bf35271557e6c831d34f114617
746
py
Python
PyInstaller/hooks/hook-pandas.io.formats.style.py
hawkhai/pyinstaller
016a24479b34de161792c72dde455a81ad4c78ae
[ "Apache-2.0" ]
9,267
2015-01-01T04:08:45.000Z
2022-03-31T11:42:38.000Z
PyInstaller/hooks/hook-pandas.io.formats.style.py
hawkhai/pyinstaller
016a24479b34de161792c72dde455a81ad4c78ae
[ "Apache-2.0" ]
5,150
2015-01-01T12:09:56.000Z
2022-03-31T18:06:12.000Z
PyInstaller/hooks/hook-pandas.io.formats.style.py
hawkhai/pyinstaller
016a24479b34de161792c72dde455a81ad4c78ae
[ "Apache-2.0" ]
2,101
2015-01-03T10:25:27.000Z
2022-03-30T11:04:42.000Z
#----------------------------------------------------------------------------- # Copyright (c) 2021, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License (version 2 # or later) with exception for distributing the bootloader. # # The full license is in the file COPYING.txt, dis...
39.263158
78
0.620643
ce97328e2889f0a8a156a8b65bbc7de8f47a862f
18,373
py
Python
NeuroPy2.py
vlstyxz/Brain-Computer-Interface-with-Neurosky
185d31a6e8d044fb766838947c37eec0af8f84f4
[ "MIT" ]
9
2019-09-29T20:26:04.000Z
2022-02-25T19:01:03.000Z
NeuroPy2.py
vlstyxz/Brain-Computer-Interface-with-Neurosky
185d31a6e8d044fb766838947c37eec0af8f84f4
[ "MIT" ]
null
null
null
NeuroPy2.py
vlstyxz/Brain-Computer-Interface-with-Neurosky
185d31a6e8d044fb766838947c37eec0af8f84f4
[ "MIT" ]
10
2019-09-26T18:21:36.000Z
2021-09-10T19:05:22.000Z
import serial import time import sys from threading import Thread # Byte codes CONNECT = '\xc0' DISCONNECT = '\xc1' AUTOCONNECT = '\xc2' SYNC = '\xaa' EXCODE = '\x55' POOR_SIGNAL = '\x02' ATTENTION = '\x04' MEDITATION = '\x05' BLINK = '\x16' HEADSET_CONNECTED = '\xd0' HEADSET_NOT_FOUND = '\xd1' HEADSET_DISCONNECTED = ...
38.277083
195
0.49834
6a372a1be2122681cd19d9a990a07ced5ea41733
9,497
py
Python
tools/compare_acetz/zptdgenerator.py
arkhipenko/AceTime
bc6e6aa530e309b62a204b7574322ba013066b06
[ "MIT" ]
1
2021-02-23T06:17:36.000Z
2021-02-23T06:17:36.000Z
tools/compare_acetz/zptdgenerator.py
arkhipenko/AceTime
bc6e6aa530e309b62a204b7574322ba013066b06
[ "MIT" ]
null
null
null
tools/compare_acetz/zptdgenerator.py
arkhipenko/AceTime
bc6e6aa530e309b62a204b7574322ba013066b06
[ "MIT" ]
null
null
null
# Copyright 2019 Brian T. Park # # MIT License """ Implements the TestDataGenerator to generate the validation test data using acetz, which uses ZoneSpecififer. Pulling in ZoneSpecifier also means that it pulls in the data structures defined by zonedbpy. """ from typing import Dict from typing import List from typing...
39.570833
80
0.604717
cef18d96e6bb5b3bcea5ab0bc764ab562701d926
30,773
py
Python
test/functional/test_admin_features.py
BalthazarPavot/galaxy_project_reports
aa397de11a9a3425f85c701087af4c5d165b571f
[ "CC-BY-3.0" ]
1
2019-07-03T08:13:57.000Z
2019-07-03T08:13:57.000Z
test/functional/test_admin_features.py
LainOldAccound/galaxy_project_reports
aa397de11a9a3425f85c701087af4c5d165b571f
[ "CC-BY-3.0" ]
null
null
null
test/functional/test_admin_features.py
LainOldAccound/galaxy_project_reports
aa397de11a9a3425f85c701087af4c5d165b571f
[ "CC-BY-3.0" ]
null
null
null
from base.twilltestcase import TwillTestCase from functional import database_contexts import galaxy.model from base.test_db_util import ( get_user, get_private_role, get_all_histories_for_user, get_latest_history_for_user, get_default_history_permissions_by_history, get_latest_dataset, refre...
61.423154
168
0.63052
b530c46e9803b7106220deecd74308df3a4ac3a0
802
py
Python
sa/profiles/Eltex/MA4000/get_config.py
xUndero/noc
9fb34627721149fcf7064860bd63887e38849131
[ "BSD-3-Clause" ]
1
2019-09-20T09:36:48.000Z
2019-09-20T09:36:48.000Z
sa/profiles/Eltex/MA4000/get_config.py
ewwwcha/noc
aba08dc328296bb0e8e181c2ac9a766e1ec2a0bb
[ "BSD-3-Clause" ]
null
null
null
sa/profiles/Eltex/MA4000/get_config.py
ewwwcha/noc
aba08dc328296bb0e8e181c2ac9a766e1ec2a0bb
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # --------------------------------------------------------------------- # Eltex.MA4000.get_config # --------------------------------------------------------------------- # Copyright (C) 2007-2019 The NOC Project # See LICENSE for details # --------------------------------------------------------...
32.08
71
0.477556
a6bf774297d147396daa8fc783252e19cd48dc6c
1,833
py
Python
cities/admin.py
swappsco/django-cities
b74c42af7d236988a86f5bebb9e7aea6dc88a405
[ "MIT" ]
null
null
null
cities/admin.py
swappsco/django-cities
b74c42af7d236988a86f5bebb9e7aea6dc88a405
[ "MIT" ]
null
null
null
cities/admin.py
swappsco/django-cities
b74c42af7d236988a86f5bebb9e7aea6dc88a405
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import * class CitiesAdmin(admin.ModelAdmin): raw_id_fields = ['alt_names'] class CountryAdmin(CitiesAdmin): list_display = ['name', 'code', 'code3', 'tld', 'phone', 'continent', 'area', 'population'] search_fields = ['name', 'code', 'code3', 'tld', 'phone'] ...
32.157895
95
0.68958
74f5009581e43f201202e5e66b19b3f850e27aff
5,635
py
Python
examples/src/main/python/sql/basic.py
ericl/spark
f5ea7fe53974a7e8cbfc222b9a6f47669b53ccfd
[ "BSD-3-Clause-Open-MPI", "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "MIT-0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause-Clear", "PostgreSQL", "BSD-3-Clause" ]
1
2016-07-29T06:38:10.000Z
2016-07-29T06:38:10.000Z
examples/src/main/python/sql/basic.py
hgd250/spark
274f3b9ec86e4109c7678eef60f990d41dc3899f
[ "BSD-3-Clause-Open-MPI", "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "MIT-0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause-Clear", "PostgreSQL", "BSD-3-Clause" ]
null
null
null
examples/src/main/python/sql/basic.py
hgd250/spark
274f3b9ec86e4109c7678eef60f990d41dc3899f
[ "BSD-3-Clause-Open-MPI", "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "MIT-0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause-Clear", "PostgreSQL", "BSD-3-Clause" ]
null
null
null
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
28.897436
97
0.614552
be779c8e4e305bea52eb1ac32f9f8245589b473f
1,290
py
Python
cnn/notebooks/sweeper.py
Wentong-DST/mdnet
13810d6f8785483b4d72a6c6459faca70b89750d
[ "MIT" ]
1,367
2016-05-24T01:10:10.000Z
2022-03-27T08:04:23.000Z
cnn/notebooks/sweeper.py
Wentong-DST/mdnet
13810d6f8785483b4d72a6c6459faca70b89750d
[ "MIT" ]
55
2016-05-24T06:12:06.000Z
2021-08-12T06:42:43.000Z
cnn/notebooks/sweeper.py
Wentong-DST/mdnet
13810d6f8785483b4d72a6c6459faca70b89750d
[ "MIT" ]
340
2016-05-24T02:15:26.000Z
2022-03-23T22:55:08.000Z
import json import numpy as np def loadLog(filename): s = [] for line in open(filename): r = line.find('json_stats') if r > -1: s.append(json.loads(line[r+12:])) return s def findSweepParams(frames): def findConstants(frame): keys = dict() for key in frame...
24.807692
62
0.507752
3010f5d8bfc821b373dca81d0a64e12eff8d2eab
2,011
py
Python
QR_code_module.py
RohiBaner/QR-Code-Detection-in-Video
cbc4d100553679b63835b35203e382eb70723507
[ "Apache-2.0" ]
null
null
null
QR_code_module.py
RohiBaner/QR-Code-Detection-in-Video
cbc4d100553679b63835b35203e382eb70723507
[ "Apache-2.0" ]
null
null
null
QR_code_module.py
RohiBaner/QR-Code-Detection-in-Video
cbc4d100553679b63835b35203e382eb70723507
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Feb 20 11:38:24 2019 @author: Rohini """ from __future__ import print_function import pyzbar.pyzbar as pyzbar import numpy as np import cv2 def decode(im) : # Find barcodes and QR codes # thresholds image to white in back then invert it to black in white...
29.144928
136
0.623073
7bfcef6982a1fbcbabbd2808340a0ee7b8a09bf8
499
py
Python
analyzer/windows/modules/packages/msi.py
Yuanmessi/Bold-Falcon
00fcaba0b3d9c462b9d20ecb256ff85db5d119e2
[ "BSD-3-Clause" ]
71
2016-11-13T03:26:45.000Z
2022-02-22T08:13:04.000Z
data/analyzer/windows/modules/packages/msi.py
iswenhao/Panda-Sandbox
a04069d404cb4326ff459e703f14625dc45759ed
[ "MIT" ]
3
2021-07-01T08:09:05.000Z
2022-01-28T03:38:36.000Z
data/analyzer/windows/modules/packages/msi.py
iswenhao/Panda-Sandbox
a04069d404cb4326ff459e703f14625dc45759ed
[ "MIT" ]
36
2016-12-13T11:37:56.000Z
2021-11-11T12:20:10.000Z
# Copyright (C) 2010-2013 Claudio Guarnieri. # Copyright (C) 2014-2016 Cuckoo Foundation. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. from lib.common.abstracts import Package class Msi(Package): """MSI analysis package.""" PATHS =...
27.722222
68
0.665331
94da7fbe2c9ea0aa22f59e521a9c4c8083bd989f
7,032
py
Python
py/server/deephaven/dtypes.py
jjbrosnan/deephaven-core
ff5f17c1a835756bab827d7cc6caee599738da69
[ "MIT" ]
null
null
null
py/server/deephaven/dtypes.py
jjbrosnan/deephaven-core
ff5f17c1a835756bab827d7cc6caee599738da69
[ "MIT" ]
null
null
null
py/server/deephaven/dtypes.py
jjbrosnan/deephaven-core
ff5f17c1a835756bab827d7cc6caee599738da69
[ "MIT" ]
null
null
null
# # Copyright (c) 2016-2021 Deephaven Data Labs and Patent Pending # """ This module defines the data types supported by the Deephaven engine. Each data type is represented by a DType class which supports creating arrays of the same type and more. """ from __future__ import annotations from typing import Any, Seque...
36.247423
113
0.689278
a3e29d506a52cce4d97bb9bf2cc8e514a0215c09
5,415
py
Python
quantize.py
Tiamat-Tech/ZAQ-code
e7e9f55791e36c6784d58c356d3ced76a7583369
[ "MIT" ]
55
2021-03-30T01:30:46.000Z
2022-03-30T03:05:25.000Z
quantize.py
Tiamat-Tech/ZAQ-code
e7e9f55791e36c6784d58c356d3ced76a7583369
[ "MIT" ]
8
2021-04-23T07:59:20.000Z
2021-06-04T14:28:24.000Z
quantize.py
Tiamat-Tech/ZAQ-code
e7e9f55791e36c6784d58c356d3ced76a7583369
[ "MIT" ]
13
2021-04-08T03:15:47.000Z
2022-03-18T08:39:12.000Z
import os import copy import random import numpy as np import argparse import torch import torch.nn.functional as F import torch.optim as optim import torchvision import network from dataloader import get_dataloader from collections import OrderedDict from quantization import quantize_model def train(args, model, tra...
43.669355
113
0.65891
88d2643caa60c1e7fe8dbed52e46304c19920fad
17,333
py
Python
raiden/messages/transfers.py
ExchangeUnion/raiden
2217bcb698fcfce3499dc1f41ad919ed82e8e45f
[ "MIT" ]
null
null
null
raiden/messages/transfers.py
ExchangeUnion/raiden
2217bcb698fcfce3499dc1f41ad919ed82e8e45f
[ "MIT" ]
12
2019-08-09T19:12:17.000Z
2019-12-05T15:49:29.000Z
raiden/messages/transfers.py
ExchangeUnion/raiden
2217bcb698fcfce3499dc1f41ad919ed82e8e45f
[ "MIT" ]
null
null
null
from dataclasses import dataclass, field from hashlib import sha256 from typing import overload from raiden.constants import EMPTY_SIGNATURE, UINT64_MAX, UINT256_MAX from raiden.messages.abstract import SignedRetrieableMessage from raiden.messages.cmdid import CmdId from raiden.messages.metadata import Metadata, Route...
33.141491
96
0.666301
e922b3e17962a270acc1cd9793355adaea33e56e
11,995
py
Python
srcs/model.py
huy-ha/PIXOR
9ad2b451470aa30c7dd40be23b526f6fbedb6bc1
[ "MIT" ]
259
2019-02-19T07:38:55.000Z
2022-03-28T05:58:42.000Z
srcs/model.py
huy-ha/PIXOR
9ad2b451470aa30c7dd40be23b526f6fbedb6bc1
[ "MIT" ]
30
2019-02-18T08:43:27.000Z
2021-02-05T15:51:36.000Z
srcs/model.py
huy-ha/PIXOR
9ad2b451470aa30c7dd40be23b526f6fbedb6bc1
[ "MIT" ]
59
2018-10-28T17:42:03.000Z
2022-02-15T11:59:32.000Z
import torch import torch.nn as nn import torch.nn.functional as F import math from utils import maskFOV_on_BEV def conv3x3(in_planes, out_planes, stride=1, bias=False): """3x3 convolution with padding""" return nn.Conv2d(in_planes, out_planes, kernel_size=3, stride=stride, padding=1, bia...
33.788732
112
0.573739
6f5ccf793074b0879934c853fa8a5aa0bcb4666b
7,253
py
Python
negative_binomial/core.py
zsusswein/negative_binomial
1e99e31c743354d5a002f97dcaf24f31a5d731cc
[ "MIT" ]
null
null
null
negative_binomial/core.py
zsusswein/negative_binomial
1e99e31c743354d5a002f97dcaf24f31a5d731cc
[ "MIT" ]
null
null
null
negative_binomial/core.py
zsusswein/negative_binomial
1e99e31c743354d5a002f97dcaf24f31a5d731cc
[ "MIT" ]
null
null
null
''' This module contains functions necessary to fit a negative binomial using the maximum likelihood estimator and some numerical analysis @author: Zachary Susswein (based on original code by Peter Xenopoulos) ''' ## Libraries import numpy as np from scipy.optimize import minimize from scipy.stats import nbinom impor...
32.235556
102
0.607059
8f74e0a21cbfb0171884ca0833ab2d9e8fa68034
9,832
py
Python
guillotina/contrib/dyncontent/subscriber.py
vangheem/guillotina
fb678dd81807fd4c63aa1ef3dae4b9a151e3f274
[ "BSD-2-Clause" ]
null
null
null
guillotina/contrib/dyncontent/subscriber.py
vangheem/guillotina
fb678dd81807fd4c63aa1ef3dae4b9a151e3f274
[ "BSD-2-Clause" ]
1
2021-01-16T01:02:36.000Z
2021-01-29T17:07:58.000Z
guillotina/contrib/dyncontent/subscriber.py
vangheem/guillotina
fb678dd81807fd4c63aa1ef3dae4b9a151e3f274
[ "BSD-2-Clause" ]
null
null
null
from guillotina import app_settings from guillotina import BEHAVIOR_CACHE from guillotina import configure from guillotina import FACTORY_CACHE from guillotina.component import get_global_components from guillotina.component import get_utility from guillotina.component import query_utility from guillotina.content impor...
36.014652
106
0.691721
31eb14277707e5887fc4027906ee43cc89da2a46
131
py
Python
source/constant.py
gilbertHuang/CG-diskusage
be448bb76419b43fb43c790836f9182a7773f8ff
[ "MIT" ]
null
null
null
source/constant.py
gilbertHuang/CG-diskusage
be448bb76419b43fb43c790836f9182a7773f8ff
[ "MIT" ]
null
null
null
source/constant.py
gilbertHuang/CG-diskusage
be448bb76419b43fb43c790836f9182a7773f8ff
[ "MIT" ]
null
null
null
size_unit = ['b', 'kb', 'Mb', 'Gb', 'Tb'] size_diff = 1000 size_round = 2 sort_size_name = 'size' sort_children_name = 'children'
18.714286
41
0.656489
38671f73696e5b05a2ce9d8c3567ee9e0b840436
1,811
py
Python
mpisppy/tests/test_sc.py
vishalbelsare/mpi-sppy
019fa1c04396a5bcadf758a31bc96217c17b43c9
[ "BSD-3-Clause" ]
2
2020-06-05T14:31:46.000Z
2020-09-29T20:08:05.000Z
mpisppy/tests/test_sc.py
vishalbelsare/mpi-sppy
019fa1c04396a5bcadf758a31bc96217c17b43c9
[ "BSD-3-Clause" ]
22
2020-06-06T19:30:33.000Z
2020-10-30T23:00:58.000Z
mpisppy/tests/test_sc.py
vishalbelsare/mpi-sppy
019fa1c04396a5bcadf758a31bc96217c17b43c9
[ "BSD-3-Clause" ]
6
2020-06-06T17:57:38.000Z
2020-09-18T22:38:19.000Z
import unittest import sys import os import parapint from mpi4py import MPI comm = MPI.COMM_WORLD rank = comm.Get_rank() class TestSC(unittest.TestCase): def setUp(self): self.original_path = sys.path example_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', '..', 'examples', ...
46.435897
170
0.6709
36c4e2cd935842a9a731c1e7ecd49b493035ece7
324
py
Python
lecciones/44/interfaces_3.py
ImAlexisSaez/curso-python-desde-0
c4a84dae0804adefe4ee6024b411d8ed288da759
[ "MIT" ]
2
2020-08-31T02:17:36.000Z
2022-01-29T15:25:27.000Z
lecciones/44/interfaces_3.py
ImAlexisSaez/curso-python-desde-0
c4a84dae0804adefe4ee6024b411d8ed288da759
[ "MIT" ]
null
null
null
lecciones/44/interfaces_3.py
ImAlexisSaez/curso-python-desde-0
c4a84dae0804adefe4ee6024b411d8ed288da759
[ "MIT" ]
null
null
null
from tkinter import Tk, Frame, Label root = Tk() root.title("Probando el widget Label") root.resizable(width=True, height=True) root.iconbitmap("icon.ico") root.config(bg="lightblue") frame = Frame(root, width=500, height=400) frame.pack() Label(frame, text="Mi primera etiqueta.").place(x=100, y=200) root.mainloo...
19.058824
61
0.725309
67b78701f39a171a2d9ecb8bb5b7b93652fc0346
3,784
py
Python
chap_02/exe_048_date_to_zodiac_sign.py
aleattene/python-workbook
bf26ba716c957316d1463fb25488384e319d5b91
[ "MIT" ]
null
null
null
chap_02/exe_048_date_to_zodiac_sign.py
aleattene/python-workbook
bf26ba716c957316d1463fb25488384e319d5b91
[ "MIT" ]
null
null
null
chap_02/exe_048_date_to_zodiac_sign.py
aleattene/python-workbook
bf26ba716c957316d1463fb25488384e319d5b91
[ "MIT" ]
null
null
null
""" The horoscopes commonly reported in newspapers use the position of the sun at the time of one’s birth to try and predict the future. This system of astrology divides the year into twelve zodiac signs, as outline in the table below: Zodiac Sign Date Range Capricorn December 22 to Janu...
36.384615
96
0.600423
d50898d5ae082b05129d3a437ed8a6eaffde2aac
17,797
py
Python
gs_quant/base.py
S-Manglik/gs-quant
af22aa8574571db45ddc2a9627d25a26bd00e09b
[ "Apache-2.0" ]
null
null
null
gs_quant/base.py
S-Manglik/gs-quant
af22aa8574571db45ddc2a9627d25a26bd00e09b
[ "Apache-2.0" ]
null
null
null
gs_quant/base.py
S-Manglik/gs-quant
af22aa8574571db45ddc2a9627d25a26bd00e09b
[ "Apache-2.0" ]
null
null
null
""" Copyright 2019 Goldman Sachs. 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...
30.318569
117
0.638029
7f7e276506a59face227fc9554f8d1fc5cab4fcd
10,982
py
Python
test/functional/test_framework/test_node.py
trublud/Kids-Coin
a48e9a84fc5b5b053d39795df5ad24f1becbc296
[ "MIT" ]
null
null
null
test/functional/test_framework/test_node.py
trublud/Kids-Coin
a48e9a84fc5b5b053d39795df5ad24f1becbc296
[ "MIT" ]
null
null
null
test/functional/test_framework/test_node.py
trublud/Kids-Coin
a48e9a84fc5b5b053d39795df5ad24f1becbc296
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Class for bitcoind node under test""" import decimal import errno import http.client import json import log...
38.669014
248
0.629667
66e6be53c0c1d73a2c15d9c3416ea7dcff153c59
10,521
py
Python
tensorflow/python/autograph/pyct/templates.py
LucasSloan/tensorflow
eddf3635b41fd457b2a36cf17bba40352c4abc57
[ "Apache-2.0" ]
2
2019-03-14T14:51:00.000Z
2021-06-16T05:06:22.000Z
tensorflow/python/autograph/pyct/templates.py
apeforest/tensorflow
07da23bfa2a9ca10cd7c1dd6bea0f85d981c013e
[ "Apache-2.0" ]
null
null
null
tensorflow/python/autograph/pyct/templates.py
apeforest/tensorflow
07da23bfa2a9ca10cd7c1dd6bea0f85d981c013e
[ "Apache-2.0" ]
1
2019-03-09T23:31:44.000Z
2019-03-09T23:31:44.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
36.030822
80
0.701359
5cb281e38ed705ca34532ce44c2e26ced08addfe
735
py
Python
tensorpack/__init__.py
myelintek/tensorpack
fcbf5869d78cf7f3b59c46318b6c883a7ea12056
[ "Apache-2.0" ]
3
2017-12-02T16:49:42.000Z
2018-11-04T16:53:44.000Z
tensorpack/__init__.py
dongzhuoyao/tensorpack
78bcf6053172075a761eac90ab22f0b631b272a0
[ "Apache-2.0" ]
6
2020-01-28T23:03:24.000Z
2022-02-10T01:21:18.000Z
tensorpack/__init__.py
wdings/Mask-RCNN
8d5ae5cc2cfcf2e4e53b4d1064ac9e727f736d09
[ "Apache-2.0" ]
5
2017-11-15T14:46:27.000Z
2018-11-04T16:54:06.000Z
# -*- coding: utf-8 -*- # File: __init__.py # Author: Yuxin Wu <ppwwyyxx@gmail.com> import os as _os from tensorpack.libinfo import __version__, _HAS_TF from tensorpack.utils import * from tensorpack.dataflow import * # dataflow can be used alone without installing tensorflow if _HAS_TF: from tensorpack.models ...
27.222222
76
0.72517
fe6e7f3257fc05c611f5c41710975f4aabdee379
800
py
Python
tests/test_ublame.py
taintedkernel/ublame
27f3041ada145cfa15e90b0b6cd67b3d4e1dd9ad
[ "MIT" ]
10
2020-11-11T10:41:33.000Z
2021-09-04T22:17:40.000Z
tests/test_ublame.py
taintedkernel/ublame
27f3041ada145cfa15e90b0b6cd67b3d4e1dd9ad
[ "MIT" ]
4
2020-11-13T22:03:55.000Z
2022-03-17T22:18:47.000Z
tests/test_ublame.py
taintedkernel/ublame
27f3041ada145cfa15e90b0b6cd67b3d4e1dd9ad
[ "MIT" ]
1
2022-03-17T18:47:23.000Z
2022-03-17T18:47:23.000Z
import os import unittest from ..ublame import repo_path_for, trim_diff LOREM_IPSUM = """ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. """ LINES = """{} +def trim_diff(diff, token): {} """.format( LOREM_IPSUM * 3, LOREM_IPSUM * 3 ) ...
23.529412
80
0.645
78068d88c6a57d7f15bbe69b52d53101eeba4c50
344
py
Python
phoenix/slackbot/management/commands/postmortem_report_notifications.py
kiwicom/phoenix
19bfbd23387e7d054780cfba9dbb385525aa7d80
[ "MIT" ]
8
2019-03-03T22:46:06.000Z
2021-12-14T20:26:28.000Z
phoenix/slackbot/management/commands/postmortem_report_notifications.py
kiwicom/phoenix
19bfbd23387e7d054780cfba9dbb385525aa7d80
[ "MIT" ]
250
2018-11-21T09:21:11.000Z
2021-09-22T17:48:07.000Z
phoenix/slackbot/management/commands/postmortem_report_notifications.py
kiwicom/phoenix
19bfbd23387e7d054780cfba9dbb385525aa7d80
[ "MIT" ]
1
2021-02-16T08:01:04.000Z
2021-02-16T08:01:04.000Z
import logging from django.core.management.base import BaseCommand from ...tasks import postmortem_notifications logger = logging.getLogger(__name__) class Command(BaseCommand): """Check for missing postmortems in announcements and send out notifications.""" def handle(self, *args, **options): pos...
22.933333
84
0.761628
0c74fdc1accff1a4bafcb184077210ae8ff00c0a
13,433
py
Python
envs/doom/multiplayer/doom_multiagent_wrapper.py
neevparikh/hierarchical-doom
082f794b9c6101c4e94f15bf4f93c718ee219ea5
[ "MIT" ]
1
2021-11-19T19:39:36.000Z
2021-11-19T19:39:36.000Z
envs/doom/multiplayer/doom_multiagent_wrapper.py
neevparikh/hierarchical-doom
082f794b9c6101c4e94f15bf4f93c718ee219ea5
[ "MIT" ]
null
null
null
envs/doom/multiplayer/doom_multiagent_wrapper.py
neevparikh/hierarchical-doom
082f794b9c6101c4e94f15bf4f93c718ee219ea5
[ "MIT" ]
null
null
null
import threading import time from enum import Enum from multiprocessing import Process from queue import Empty, Queue import faster_fifo import cv2 import filelock import gym from filelock import FileLock from envs.doom.doom_gym import doom_lock_file from envs.doom.doom_render import concat_grid, cvt_doom_obs from en...
34.710594
114
0.607385
659315da2586a8a11cc3bd6fe56111c0d791b434
253
py
Python
karanja_me/manage.py
denisKaranja/django-dive-in
451742ac065136cb0f9ac7b042d5913bbc2a36d0
[ "MIT" ]
null
null
null
karanja_me/manage.py
denisKaranja/django-dive-in
451742ac065136cb0f9ac7b042d5913bbc2a36d0
[ "MIT" ]
null
null
null
karanja_me/manage.py
denisKaranja/django-dive-in
451742ac065136cb0f9ac7b042d5913bbc2a36d0
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "karanja_me.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
23
74
0.774704
337c59aff63d5fed88f593f1c2fc399ae66d94c2
6,512
py
Python
influxdb_client/domain/pkg_summary_diff_buckets.py
kelseiv/influxdb-client-python
9a0d2d659157cca96f6a04818fdeb215d699bdd7
[ "MIT" ]
1
2021-06-06T10:39:47.000Z
2021-06-06T10:39:47.000Z
influxdb_client/domain/pkg_summary_diff_buckets.py
kelseiv/influxdb-client-python
9a0d2d659157cca96f6a04818fdeb215d699bdd7
[ "MIT" ]
null
null
null
influxdb_client/domain/pkg_summary_diff_buckets.py
kelseiv/influxdb-client-python
9a0d2d659157cca96f6a04818fdeb215d699bdd7
[ "MIT" ]
null
null
null
# coding: utf-8 """ Influx API Service No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: 0.1.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class PkgS...
26.798354
127
0.582924
c887339f08f310fa9213b9b956dbc1adb7cbbe62
5,853
py
Python
main.py
qarchli/dqn-on-space-invaders
148f1a7b65b2f47dab736b08cc7d6b7de1725a00
[ "MIT" ]
1
2020-06-05T07:05:17.000Z
2020-06-05T07:05:17.000Z
main.py
qarchli/dqn-on-space-invaders
148f1a7b65b2f47dab736b08cc7d6b7de1725a00
[ "MIT" ]
null
null
null
main.py
qarchli/dqn-on-space-invaders
148f1a7b65b2f47dab736b08cc7d6b7de1725a00
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import pickle from collections import deque import gym from gym import wrappers import torch from agent import DQNAgent def train(n_episodes=100, max_t=10000, eps_start=1.0, eps_end=0.01, eps_decay=0.996): """ Training ...
34.429412
89
0.571673
f78a49e89b79ea1c013dedb5cb776bddbe080ff5
3,134
py
Python
launch.py
U039b/frida-scripts
f16b6bd631b52ca9444723d24d6f21550f6ed266
[ "MIT" ]
3
2021-11-21T09:38:08.000Z
2022-01-19T22:06:00.000Z
launch.py
U039b/frida-scripts
f16b6bd631b52ca9444723d24d6f21550f6ed266
[ "MIT" ]
null
null
null
launch.py
U039b/frida-scripts
f16b6bd631b52ca9444723d24d6f21550f6ed266
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import frida import glob import time import json from frida_tools.application import ConsoleApplication PWD = os.path.dirname(os.path.abspath(__file__)) class Application(ConsoleApplication): SESSION_ID_LENGTH = 32 MASTER_KEY_LENGTH = 48 def _add_options(self, parser):...
27.491228
75
0.580728
f7a6088182132a5aabda0e2b1fa218231e2dcb82
11,276
py
Python
napalm_getters/napalm_getters.py
jwbensley/NAPALM_Examples
7095592dc3832b366056125e952038a88e195f6b
[ "MIT" ]
2
2019-03-09T19:19:04.000Z
2022-02-21T03:06:55.000Z
napalm_getters/napalm_getters.py
jwbensley/NAPALM_Examples
7095592dc3832b366056125e952038a88e195f6b
[ "MIT" ]
null
null
null
napalm_getters/napalm_getters.py
jwbensley/NAPALM_Examples
7095592dc3832b366056125e952038a88e195f6b
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """ Loop over a list of devices in a YAML inventory file and run all the the built in NAPALM getters against each device. Log the output to a per-device file as structed YAML data. sudo -H pip3 install napalm example inventory.yml: --- # required: hostname, os # optional: username, pas...
30.724796
97
0.572189
69cb68da05f4e747f80b6e5e35160cef1b6d99ea
969
py
Python
aws_eden_core/validators.py
baikonur-oss/aws-eden-core
bee5bd1d281421df7392222b41e3d32a72106e50
[ "MIT" ]
1
2020-05-26T08:44:07.000Z
2020-05-26T08:44:07.000Z
aws_eden_core/validators.py
baikonur-oss/aws-eden-core
bee5bd1d281421df7392222b41e3d32a72106e50
[ "MIT" ]
71
2019-08-22T03:04:47.000Z
2020-10-09T19:50:09.000Z
aws_eden_core/validators.py
baikonur-oss/aws-eden-core
bee5bd1d281421df7392222b41e3d32a72106e50
[ "MIT" ]
null
null
null
import logging import re import boto3 logger = logging.getLogger() ecr = boto3.client('ecr') def is_string(value): if type(value) == str: return True return False def check_image_uri(image_uri: str): logger.info(f"Checking if image {image_uri} exists") groups = re.match('([0-9]+)\.dkr\.ec...
23.071429
100
0.602683
03b418036627cf9ec72cf4228c761f6f683ff71e
4,281
py
Python
TTS/tts/tf/utils/convert_torch_to_tf_utils.py
mightmay/Mien-TTS
8a22ff0a79558b3cf4981ce1b63f4d1485ea6338
[ "MIT" ]
null
null
null
TTS/tts/tf/utils/convert_torch_to_tf_utils.py
mightmay/Mien-TTS
8a22ff0a79558b3cf4981ce1b63f4d1485ea6338
[ "MIT" ]
null
null
null
TTS/tts/tf/utils/convert_torch_to_tf_utils.py
mightmay/Mien-TTS
8a22ff0a79558b3cf4981ce1b63f4d1485ea6338
[ "MIT" ]
1
2021-04-28T17:30:03.000Z
2021-04-28T17:30:03.000Z
import numpy as np import tensorflow as tf # NOTE: linter has a problem with the current TF release #pylint: disable=no-value-for-parameter #pylint: disable=unexpected-keyword-arg def tf_create_dummy_inputs(): """ Create dummy inputs for TF Tacotron2 model """ batch_size = 4 max_input_length = 32 max_...
50.364706
173
0.687223
129d7fac54a972374147d6109a01e63f0a9384f4
537
py
Python
application/userproject/forms.py
sebazai/tsoha-tyoaikaseuranta
a2c9671d5ad937362bfb90e2150924120f2d2233
[ "MIT" ]
null
null
null
application/userproject/forms.py
sebazai/tsoha-tyoaikaseuranta
a2c9671d5ad937362bfb90e2150924120f2d2233
[ "MIT" ]
2
2019-02-15T19:20:17.000Z
2019-02-25T08:42:45.000Z
application/userproject/forms.py
sebazai/tsoha-tyoajanseuranta
a2c9671d5ad937362bfb90e2150924120f2d2233
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import validators from wtforms import StringField, IntegerField, SelectField, BooleanField from application import db from sqlalchemy.sql import text from application.userproject import models from application.project import models class UserProjectForm(FlaskForm): pr...
29.833333
72
0.782123