hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
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
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
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
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
7959f2b20cb87e5a7794dafbb97222d684aaba8b
1,316
py
Python
var/spack/repos/builtin/packages/angsd/package.py
adrianjhpc/spack
0a9e4fcee57911f2db586aa50c8873d9cca8de92
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2020-10-15T01:08:42.000Z
2021-10-18T01:28:18.000Z
var/spack/repos/builtin/packages/angsd/package.py
adrianjhpc/spack
0a9e4fcee57911f2db586aa50c8873d9cca8de92
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2019-07-30T10:12:28.000Z
2019-12-17T09:02:27.000Z
var/spack/repos/builtin/packages/angsd/package.py
adrianjhpc/spack
0a9e4fcee57911f2db586aa50c8873d9cca8de92
[ "ECL-2.0", "Apache-2.0", "MIT" ]
5
2019-07-30T09:42:14.000Z
2021-01-25T05:39:20.000Z
# Copyright 2013-2019 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 Angsd(MakefilePackage): """Angsd is a program for analysing NGS data. The software can han...
38.705882
95
0.715046
7959f31fd40cac1e14f726eb7be54ea312f8e647
12,587
py
Python
electronics_abstract_parts/AbstractPowerConverters.py
lab11/PolymorphicBlocks
52e5ee332fddc9a9f583ebabfca863365e873bf7
[ "BSD-3-Clause" ]
null
null
null
electronics_abstract_parts/AbstractPowerConverters.py
lab11/PolymorphicBlocks
52e5ee332fddc9a9f583ebabfca863365e873bf7
[ "BSD-3-Clause" ]
null
null
null
electronics_abstract_parts/AbstractPowerConverters.py
lab11/PolymorphicBlocks
52e5ee332fddc9a9f583ebabfca863365e873bf7
[ "BSD-3-Clause" ]
null
null
null
from electronics_model import * from .Categories import * from .AbstractPassives import Inductor, DecouplingCapacitor @abstract_block class DcDcConverter(PowerConditioner): """Base class for all DC-DC converters with shared ground (non-isoalted).""" @init_in_parent def __init__(self, output_voltage: RangeExpr =...
48.976654
152
0.726384
7959f3783ba03583b1f6c773e0051b374b030d39
13,965
py
Python
nova/tests/rpc/test_qpid.py
bopopescu/openstack-12
2c7e0d1e63cae7aaa38095439843c9a2abb0382b
[ "Apache-2.0" ]
null
null
null
nova/tests/rpc/test_qpid.py
bopopescu/openstack-12
2c7e0d1e63cae7aaa38095439843c9a2abb0382b
[ "Apache-2.0" ]
null
null
null
nova/tests/rpc/test_qpid.py
bopopescu/openstack-12
2c7e0d1e63cae7aaa38095439843c9a2abb0382b
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # Copyright 2012, Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # no...
41.19469
79
0.59642
7959f44b320e8af507eed230b3646ff203621324
5,361
py
Python
AddNewUser.py
najla88/SaedRobot
6c7e00d6572715f2fdaff96a3ca4b221b2c0af9e
[ "MIT" ]
null
null
null
AddNewUser.py
najla88/SaedRobot
6c7e00d6572715f2fdaff96a3ca4b221b2c0af9e
[ "MIT" ]
null
null
null
AddNewUser.py
najla88/SaedRobot
6c7e00d6572715f2fdaff96a3ca4b221b2c0af9e
[ "MIT" ]
null
null
null
#!/usr/bin/python ######################################################################## # written by : Reem AlJunaid, CS, # # Imam Abdulrahman AlFaisal University # #----------------------------------------------------------------------# # # # This interface manages the...
38.847826
156
0.626003
7959f45c36ca3723dc1e68771c51f05cade94ec6
631
py
Python
scripts/state.py
mimno/mallet_state_tools
5bf47b74e4ce875b65c4919227d7c9f8f7839be5
[ "Apache-2.0" ]
null
null
null
scripts/state.py
mimno/mallet_state_tools
5bf47b74e4ce875b65c4919227d7c9f8f7839be5
[ "Apache-2.0" ]
null
null
null
scripts/state.py
mimno/mallet_state_tools
5bf47b74e4ce875b65c4919227d7c9f8f7839be5
[ "Apache-2.0" ]
null
null
null
import regex import gzip, regex whitespace_pattern = regex.compile("\s+") def read_state(filename): tokens = [] with gzip.open(filename, "rt", encoding="UTF8") as reader: for line in reader: if not line.startswith("#"): tokens.append(parse_line(line)) return tokens de...
26.291667
62
0.616482
7959f47d2adae58aaf73689e9e1c9f8fa5660f9d
4,698
py
Python
tools/fetch_ztf_matchfiles.py
dannygoldstein/kowalski
db955f85f8e2737534c40266a7ca500c96cef80d
[ "MIT" ]
null
null
null
tools/fetch_ztf_matchfiles.py
dannygoldstein/kowalski
db955f85f8e2737534c40266a7ca500c96cef80d
[ "MIT" ]
2
2021-02-02T19:42:19.000Z
2021-03-16T00:10:25.000Z
tools/fetch_ztf_matchfiles.py
dannygoldstein/kowalski
db955f85f8e2737534c40266a7ca500c96cef80d
[ "MIT" ]
null
null
null
import argparse from bs4 import BeautifulSoup import multiprocessing as mp from multiprocessing.pool import ThreadPool import os import pandas as pd import pathlib import requests import subprocess from tqdm.auto import tqdm from utils import load_config ''' load config and secrets ''' # config = load_config(path='...
29.734177
104
0.557684
7959f4f37cd95c3c025120b6b4a4d392f342b7af
2,391
py
Python
examples/ffchangeglyphnames.py
simoncozens/pysilfont
bb8a9fc58a83e074bbcc466ba058841845b9107e
[ "MIT" ]
41
2015-05-21T21:12:26.000Z
2022-02-17T17:23:14.000Z
examples/ffchangeglyphnames.py
simoncozens/pysilfont
bb8a9fc58a83e074bbcc466ba058841845b9107e
[ "MIT" ]
63
2015-05-15T10:25:55.000Z
2021-02-23T04:51:17.000Z
examples/ffchangeglyphnames.py
simoncozens/pysilfont
bb8a9fc58a83e074bbcc466ba058841845b9107e
[ "MIT" ]
12
2015-06-12T11:52:08.000Z
2020-09-23T10:40:59.000Z
#!/usr/bin/env python from __future__ import unicode_literals '''Update glyph names in a font based on csv file - Using FontForge rather than UFOlib so it can work with ttf (or sfd) files''' __url__ = 'http://github.com/silnrsi/pysilfont' __copyright__ = 'Copyright (c) 2016 SIL International (http://www.sil.org)' __...
36.227273
99
0.630698
7959f59ee9c899e24361ec50118dfe6f66211ea8
2,907
py
Python
electrum/gui/qt/fee_slider.py
mgrychow/electrum-vault
a15b0fc5db4e83801cd7f1ba3defd56daa0b058a
[ "MIT" ]
8
2020-03-18T21:55:38.000Z
2021-03-01T12:54:47.000Z
electrum/gui/qt/fee_slider.py
mgrychow/electrum-vault
a15b0fc5db4e83801cd7f1ba3defd56daa0b058a
[ "MIT" ]
6
2020-07-10T13:17:21.000Z
2021-04-26T11:47:22.000Z
electrum/gui/qt/fee_slider.py
mgrychow/electrum-vault
a15b0fc5db4e83801cd7f1ba3defd56daa0b058a
[ "MIT" ]
8
2020-05-10T11:04:15.000Z
2021-05-06T14:51:46.000Z
import threading from PyQt5.QtGui import QCursor from PyQt5.QtCore import Qt from PyQt5.QtWidgets import QSlider, QToolTip from electrum.i18n import _ class FeeSlider(QSlider): def __init__(self, window, config, callback): QSlider.__init__(self, Qt.Horizontal) self.config = config self....
33.802326
123
0.569659
7959f7e28b6acf69cd9c0a164c4e381afc32c4b7
10,308
py
Python
plot_utils.py
wangkua1/Glow-PyTorch
efec083a4bb0cee971868f49b80a17276ef2cab0
[ "MIT" ]
null
null
null
plot_utils.py
wangkua1/Glow-PyTorch
efec083a4bb0cee971868f49b80a17276ef2cab0
[ "MIT" ]
null
null
null
plot_utils.py
wangkua1/Glow-PyTorch
efec083a4bb0cee971868f49b80a17276ef2cab0
[ "MIT" ]
null
null
null
"""Plotting utilities. """ import os import csv import ipdb import argparse from collections import defaultdict import numpy as np import matplotlib.pyplot as plt import matplotlib.ticker as mtick import seaborn as sns sns.set(style='white') def load_epoch_log(exp_dir): epoch_dict = defaultdict(list) with o...
36.424028
125
0.588669
7959f92b4634be2f84ceeda26f7a1088a73a7d82
13,192
py
Python
numpy/array_api/tests/test_array_object.py
iam-abbas/numpy
2fb5e969fded3cd468f2ca01d5b954c953545dd9
[ "BSD-3-Clause" ]
20,453
2015-01-02T09:00:47.000Z
2022-03-31T23:35:56.000Z
numpy/array_api/tests/test_array_object.py
iam-abbas/numpy
2fb5e969fded3cd468f2ca01d5b954c953545dd9
[ "BSD-3-Clause" ]
14,862
2015-01-01T01:28:34.000Z
2022-03-31T23:48:52.000Z
numpy/array_api/tests/test_array_object.py
iam-abbas/numpy
2fb5e969fded3cd468f2ca01d5b954c953545dd9
[ "BSD-3-Clause" ]
9,362
2015-01-01T15:49:43.000Z
2022-03-31T21:26:51.000Z
import operator from numpy.testing import assert_raises import numpy as np from .. import ones, asarray, result_type from .._dtypes import ( _all_dtypes, _boolean_dtypes, _floating_dtypes, _integer_dtypes, _integer_or_boolean_dtypes, _numeric_dtypes, int8, int16, int32, int64, ...
45.805556
132
0.56087
7959f960e48a7fa830f76a55219700c9a6ed3991
1,304
py
Python
custom/icds_reports/ucr/tests/test_beneficiary_form.py
rochakchauhan/commcare-hq
aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236
[ "BSD-3-Clause" ]
1
2020-07-14T13:00:23.000Z
2020-07-14T13:00:23.000Z
custom/icds_reports/ucr/tests/test_beneficiary_form.py
rochakchauhan/commcare-hq
aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236
[ "BSD-3-Clause" ]
1
2021-06-02T04:45:16.000Z
2021-06-02T04:45:16.000Z
custom/icds_reports/ucr/tests/test_beneficiary_form.py
rochakchauhan/commcare-hq
aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236
[ "BSD-3-Clause" ]
null
null
null
from mock import patch from custom.icds_reports.ucr.tests.test_base_form_ucr import BaseFormsTest @patch('custom.icds_reports.ucr.expressions._get_user_location_id', lambda user_id: 'qwe56poiuytr4xcvbnmkjfghwerffdaa') @patch('corehq.apps.locations.ucr_expressions._get_location_type_name', lambda loc_id...
40.75
74
0.682515
7959f9a2765abe135f1a785b808240745bc29024
5,429
py
Python
project/apps/main_site/migrations/0005_auto__chg_field_gutterbumper_work_hrs__chg_field_gutterbumper_friend_h.py
skoczen/the-steven-manual
20599347ed1618886290c596332738013ac45500
[ "BSD-2-Clause" ]
null
null
null
project/apps/main_site/migrations/0005_auto__chg_field_gutterbumper_work_hrs__chg_field_gutterbumper_friend_h.py
skoczen/the-steven-manual
20599347ed1618886290c596332738013ac45500
[ "BSD-2-Clause" ]
4
2020-02-12T01:09:50.000Z
2021-06-10T20:34:59.000Z
project/apps/main_site/migrations/0005_auto__chg_field_gutterbumper_work_hrs__chg_field_gutterbumper_friend_h.py
skoczen/the-steven-manual
20599347ed1618886290c596332738013ac45500
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Changing field 'GutterBumper.work_hrs' db.alter_column('main_site_gutterbumper', 'work_hrs', self.gf('dja...
61
129
0.60361
7959fa019c0eddbd5ba62ca8fb644fc2ab163018
3,411
py
Python
inst/python/gpt2/interactive_conditional_examples.py
JBX028/gpt2
875a97b11e35a6d8b5de8023b071b0fb5a3776d2
[ "MIT" ]
25
2019-10-13T17:44:22.000Z
2022-02-16T11:27:06.000Z
inst/python/gpt2/interactive_conditional_examples.py
JBX028/gpt2
875a97b11e35a6d8b5de8023b071b0fb5a3776d2
[ "MIT" ]
5
2019-10-14T08:05:31.000Z
2021-04-13T14:17:07.000Z
inst/python/gpt2/interactive_conditional_examples.py
JBX028/gpt2
875a97b11e35a6d8b5de8023b071b0fb5a3776d2
[ "MIT" ]
6
2019-10-24T12:06:53.000Z
2021-11-30T02:34:14.000Z
#!/usr/bin/env python3 import fire import json import os import numpy as np import tensorflow as tf import model, sample, encoder def interact_model( model_name='124M', seed=None, nsamples=1, batch_size=1, length=None, temperature=1, top_k=0, top_p=1, models_dir='models', ): "...
37.076087
89
0.635004
7959fa096a719e75d0939df7f80f0bc80df08108
2,705
py
Python
tests/unit/test_views.py
OpenPermissions/perch
36d78994133918f3c52c187f19e50132960a0156
[ "Apache-2.0" ]
3
2016-05-03T20:07:25.000Z
2020-12-22T07:16:11.000Z
tests/unit/test_views.py
OpenPermissions/perch
36d78994133918f3c52c187f19e50132960a0156
[ "Apache-2.0" ]
17
2016-04-26T09:35:42.000Z
2016-08-18T10:07:40.000Z
tests/unit/test_views.py
OpenPermissions/perch
36d78994133918f3c52c187f19e50132960a0156
[ "Apache-2.0" ]
1
2019-05-20T01:40:56.000Z
2019-05-20T01:40:56.000Z
# -*- coding: utf-8 -*- Copyright 2016 Open Permissions Platform Coalition # # 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 ap...
30.393258
89
0.555268
7959fa6da59685f6c3d4230a07ec27c118d3f8eb
805
py
Python
libact/query_strategies/tests/utils.py
afedyukova/libact
947f92d42690bfae758180e8809ccd5252e656df
[ "BSD-2-Clause" ]
788
2015-12-17T08:34:50.000Z
2022-03-30T15:29:29.000Z
libact/query_strategies/tests/utils.py
afedyukova/libact
947f92d42690bfae758180e8809ccd5252e656df
[ "BSD-2-Clause" ]
173
2015-12-15T17:46:39.000Z
2021-08-22T17:50:38.000Z
libact/query_strategies/tests/utils.py
afedyukova/libact
947f92d42690bfae758180e8809ccd5252e656df
[ "BSD-2-Clause" ]
192
2015-12-31T14:37:33.000Z
2022-03-06T07:45:24.000Z
"""This module includes some functions to be reused in query strategy testing. """ import numpy as np def run_qs(trn_ds, qs, truth, quota): """Run query strategy on specified dataset and return quering sequence. Parameters ---------- trn_ds : Dataset object The dataset to be run on. qs ...
22.361111
78
0.623602
7959fa6f97308f69b9b39e22aaf13a016312fbf8
5,004
py
Python
backtest/backtest.py
lorne-luo/qsforex
87976aef91a3f4dd4ef1d3de17db1b014b46e4d8
[ "Unlicense", "MIT" ]
null
null
null
backtest/backtest.py
lorne-luo/qsforex
87976aef91a3f4dd4ef1d3de17db1b014b46e4d8
[ "Unlicense", "MIT" ]
7
2020-02-11T23:56:08.000Z
2022-02-10T07:35:07.000Z
backtest/backtest.py
lorne-luo/qsforex
87976aef91a3f4dd4ef1d3de17db1b014b46e4d8
[ "Unlicense", "MIT" ]
null
null
null
import logging from datetime import datetime import settings try: import Queue as queue except ImportError: import queue import time from strategy import PortfolioAllocation, RSIStrategy from portfolio import Portfolio from price import HistoricCSVPriceHandler class Backtest(object): "...
39.714286
112
0.571343
7959fa72e1ee66bafe7f471dda1c67f02ead8a62
3,596
py
Python
sdk/python/pulumi_azure_native/devspaces/v20190401/outputs.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/devspaces/v20190401/outputs.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/devspaces/v20190401/outputs.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
33.296296
177
0.658788
7959fac14bd6b2459061e432a84c13dc75c931fa
1,469
py
Python
exchange_api.py
jeremyhahn/altcoin-autosell
72afea4378cb45a5110de015a933d6a8ec24fd7b
[ "Apache-2.0" ]
1
2017-09-29T03:24:29.000Z
2017-09-29T03:24:29.000Z
exchange_api.py
jeremyhahn/altcoin-autosell
72afea4378cb45a5110de015a933d6a8ec24fd7b
[ "Apache-2.0" ]
null
null
null
exchange_api.py
jeremyhahn/altcoin-autosell
72afea4378cb45a5110de015a933d6a8ec24fd7b
[ "Apache-2.0" ]
null
null
null
# An exception that any methods in exchange may raise. class ExchangeException(Exception): def __init__(self, message): Exception.__init__(self, message) # An available market. class Market(object): source_currency_id = None target_currency_id = None market_id = None trade_minimum = 0.0000...
27.203704
77
0.646018
7959fb20bcb51b5a49a89fc495c310bf8a9be5ae
224
py
Python
Data Scientist Career Path/5. Data Manipulation with Pandas/4. Multiple Tables in Pandas/8. outer.py
myarist/Codecademy
2ba0f104bc67ab6ef0f8fb869aa12aa02f5f1efb
[ "MIT" ]
23
2021-06-06T15:35:55.000Z
2022-03-21T06:53:42.000Z
Data Scientist Career Path/5. Data Manipulation with Pandas/4. Multiple Tables in Pandas/8. outer.py
shivaniverma1/Data-Scientist
f82939a411484311171465591455880c8e354750
[ "MIT" ]
null
null
null
Data Scientist Career Path/5. Data Manipulation with Pandas/4. Multiple Tables in Pandas/8. outer.py
shivaniverma1/Data-Scientist
f82939a411484311171465591455880c8e354750
[ "MIT" ]
9
2021-06-08T01:32:04.000Z
2022-03-18T15:38:09.000Z
import codecademylib import pandas as pd store_a = pd.read_csv('store_a.csv') print(store_a) store_b = pd.read_csv('store_b.csv') print(store_b) store_a_b_outer = store_a.merge(store_b, how='outer') print(store_a_b_outer)
20.363636
53
0.78125
7959fcbf7e78b34dfc97dee347500831c8fe486f
262
py
Python
venv/lib/python3.8/site-packages/nbclient/tests/conftest.py
johncollinsai/post-high-frequency-data
88533b0e0afc7e7f82fee1d3ca4b68abc30aaeb4
[ "MIT" ]
92
2020-01-28T19:50:40.000Z
2022-03-29T07:31:13.000Z
venv/lib/python3.8/site-packages/nbclient/tests/conftest.py
johncollinsai/post-high-frequency-data
88533b0e0afc7e7f82fee1d3ca4b68abc30aaeb4
[ "MIT" ]
175
2020-01-27T01:09:27.000Z
2022-03-31T15:51:32.000Z
venv/lib/python3.8/site-packages/nbclient/tests/conftest.py
johncollinsai/post-high-frequency-data
88533b0e0afc7e7f82fee1d3ca4b68abc30aaeb4
[ "MIT" ]
49
2020-01-26T22:17:59.000Z
2022-03-31T16:02:43.000Z
import os # This is important for ipykernel to show the same string # instead of randomly generated file names in outputs. # See: https://github.com/ipython/ipykernel/blob/360685c6/ipykernel/compiler.py#L50-L55 os.environ["IPYKERNEL_CELL_NAME"] = "<IPY-INPUT>"
37.428571
87
0.778626
7959fd472fc134ded7fd78efce0e5a057b2796bd
4,894
py
Python
pyapprox/tests/test_indexing.py
QianWanghhu/pyapprox
14754f987868de827a968d07486e733cde4276bf
[ "MIT" ]
null
null
null
pyapprox/tests/test_indexing.py
QianWanghhu/pyapprox
14754f987868de827a968d07486e733cde4276bf
[ "MIT" ]
null
null
null
pyapprox/tests/test_indexing.py
QianWanghhu/pyapprox
14754f987868de827a968d07486e733cde4276bf
[ "MIT" ]
1
2020-04-01T05:26:29.000Z
2020-04-01T05:26:29.000Z
import unittest from pyapprox.indexing import * from functools import partial from scipy.special import binom class TestIndexing(unittest.TestCase): def test_nchoosek(self): assert nchoosek(3, 2) == binom(3, 2) def test_compute_hyperbolic_indices(self): num_vars = 3 level = 3 ...
37.646154
82
0.641398
7959fddf87caa036fb94f58fc809cbba7ce43962
29,558
py
Python
python/examples/beacon/beacon_record.py
w2naf/digital_rf
482608dcc5608b9d9a0aacf77e75f83edbec1f0e
[ "BSD-3-Clause" ]
null
null
null
python/examples/beacon/beacon_record.py
w2naf/digital_rf
482608dcc5608b9d9a0aacf77e75f83edbec1f0e
[ "BSD-3-Clause" ]
null
null
null
python/examples/beacon/beacon_record.py
w2naf/digital_rf
482608dcc5608b9d9a0aacf77e75f83edbec1f0e
[ "BSD-3-Clause" ]
1
2020-08-03T07:49:22.000Z
2020-08-03T07:49:22.000Z
#!python # ---------------------------------------------------------------------------- # Copyright (c) 2017 Massachusetts Institute of Technology (MIT) # All rights reserved. # # Distributed under the terms of the BSD 3-clause license. # # The full license is in the LICENSE file, distributed with this software. # ----...
41.630986
252
0.556567
7959ffb948d5d5621ea47e68b3e48191384f32a4
24,336
py
Python
node_modules/shaka-player/build/stats.py
CocoaZX/RNVideo
4989b82ec17d83a3499d1a941314cb79fbdf7877
[ "MIT" ]
null
null
null
node_modules/shaka-player/build/stats.py
CocoaZX/RNVideo
4989b82ec17d83a3499d1a941314cb79fbdf7877
[ "MIT" ]
1
2018-11-09T17:18:20.000Z
2018-11-09T17:18:20.000Z
build/stats.py
xrtube/shaka-player
c53786e71fd542e45dcb000613d367e522df027d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2016 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 requir...
29.750611
80
0.653723
795a00a96c5fbb1919f84823d53495156d05827f
3,685
py
Python
src/hub/dataload/sources/gnomad/gnomad_v3_parser.py
erikyao/myvariant.info
a4eaaca7ab6c069199f8942d5afae2dece908147
[ "Apache-2.0" ]
39
2017-07-01T22:34:39.000Z
2022-03-15T22:25:59.000Z
src/hub/dataload/sources/gnomad/gnomad_v3_parser.py
erikyao/myvariant.info
a4eaaca7ab6c069199f8942d5afae2dece908147
[ "Apache-2.0" ]
105
2017-06-28T17:26:06.000Z
2022-03-17T17:49:53.000Z
src/hub/dataload/sources/gnomad/gnomad_v3_parser.py
erikyao/myvariant.info
a4eaaca7ab6c069199f8942d5afae2dece908147
[ "Apache-2.0" ]
14
2017-06-12T18:29:36.000Z
2021-03-18T15:51:27.000Z
import vcf import math from itertools import chain from .gnomad_common_parser import PopulationName, PopulationFrequencyParser, ProfileParser, \ AbstractSiteQualityMetricsParser, GnomadVcfRecordParser # Globals of population names _FEMALE, _MALE = "XX", "XY" _POPULATION_NAME_OBJ_LIST = [ PopulationName("afr", ...
42.848837
124
0.681411
795a00ec1a79cfba253b4f816242eea5ccc578b8
807
py
Python
test/test_instance_stop_action_response_data.py
p-fruck/python-contabo
c3abd362a0b90783118f36bec0e557bdbe5a8f2c
[ "Apache-2.0" ]
2
2022-01-27T10:36:33.000Z
2022-03-09T14:21:12.000Z
test/test_instance_stop_action_response_data.py
p-fruck/python-contabo
c3abd362a0b90783118f36bec0e557bdbe5a8f2c
[ "Apache-2.0" ]
7
2022-01-13T10:44:19.000Z
2022-02-15T23:44:44.000Z
test/test_instance_stop_action_response_data.py
p-fruck/python-contabo
c3abd362a0b90783118f36bec0e557bdbe5a8f2c
[ "Apache-2.0" ]
null
null
null
""" Contabo API The version of the OpenAPI document: 1.0.0 Contact: support@contabo.com Generated by: https://openapi-generator.tech """ import sys import unittest import pfruck_contabo from pfruck_contabo.model.instance_stop_action_response_data import InstanceStopActionResponseData class TestIn...
22.416667
98
0.723668
795a036f801f18973a6d3f41a5a8b9dc0bbd9280
1,106
py
Python
starlette_cbge/schema_backends/pydantic.py
gvbgduh/starlette-cbge
4c18a1cf1cfa088d67a61b89e64217e2e4dac809
[ "MIT" ]
7
2019-09-01T21:37:23.000Z
2020-05-12T19:36:04.000Z
starlette_cbge/schema_backends/pydantic.py
gvbgduh/starlette-cbge
4c18a1cf1cfa088d67a61b89e64217e2e4dac809
[ "MIT" ]
null
null
null
starlette_cbge/schema_backends/pydantic.py
gvbgduh/starlette-cbge
4c18a1cf1cfa088d67a61b89e64217e2e4dac809
[ "MIT" ]
null
null
null
""" Pydantic schema backend """ from typing import Dict, List, Any try: import pydantic except ImportError: pydantic = None # type: ignore from starlette_cbge.interfaces import SchemaInterface, ListSchemaInterface class PydanticSchema(SchemaInterface, pydantic.BaseModel): @classmethod def perform_l...
26.97561
78
0.668174
795a03848dc9704f61b9d1475d4b2c42dea3dc63
5,949
py
Python
tests/test_trainer.py
flavell-lab/pytorch-3dunet
066717dcbf8d491ee3420a35a7db3384e3fc2137
[ "MIT" ]
1
2021-08-04T04:03:37.000Z
2021-08-04T04:03:37.000Z
tests/test_trainer.py
LalithShiyam/pytorch-3dunet
f6b6c13cb0bb6194e95976b0245b76aaa9e9a496
[ "MIT" ]
null
null
null
tests/test_trainer.py
LalithShiyam/pytorch-3dunet
f6b6c13cb0bb6194e95976b0245b76aaa9e9a496
[ "MIT" ]
1
2022-03-14T04:43:24.000Z
2022-03-14T04:43:24.000Z
import os from tempfile import NamedTemporaryFile import h5py import numpy as np import torch from pytorch3dunet.datasets.utils import get_train_loaders from pytorch3dunet.train import _create_optimizer, _create_lr_scheduler from pytorch3dunet.unet3d.losses import get_loss_criterion from pytorch3dunet.unet3d.metrics ...
43.423358
115
0.676752
795a0431dbbb9c2fbf6e306562c76be4ae711a7a
84
py
Python
gluoncv/auto/estimators/faster_rcnn/__init__.py
Kh4L/gluon-cv
849411ed56632cd854850b07142087d599f97dcb
[ "Apache-2.0" ]
5,447
2018-04-25T18:02:51.000Z
2022-03-31T00:59:49.000Z
gluoncv/auto/estimators/faster_rcnn/__init__.py
Kh4L/gluon-cv
849411ed56632cd854850b07142087d599f97dcb
[ "Apache-2.0" ]
1,566
2018-04-25T21:14:04.000Z
2022-03-31T06:42:42.000Z
gluoncv/auto/estimators/faster_rcnn/__init__.py
Kh4L/gluon-cv
849411ed56632cd854850b07142087d599f97dcb
[ "Apache-2.0" ]
1,345
2018-04-25T18:44:13.000Z
2022-03-30T19:32:53.000Z
"""R-CNN Estimator implementations""" from .faster_rcnn import FasterRCNNEstimator
21
44
0.809524
795a057a07a36b0d623981f5810cf11f5de902d0
7,432
py
Python
Plugins/UnrealEnginePython/Binaries/Win64/Lib/site-packages/tensorflow/contrib/keras/api/keras/layers/__init__.py
JustinACoder/H22-GR3-UnrealAI
361eb9ef1147f8a2991e5f98c4118cd823184adf
[ "MIT" ]
6
2022-02-04T18:12:24.000Z
2022-03-21T23:57:12.000Z
Lib/site-packages/tensorflow/contrib/keras/api/keras/layers/__init__.py
shfkdroal/Robot-Learning-in-Mixed-Adversarial-and-Collaborative-Settings
1fa4cd6a566c8745f455fc3d2273208f21f88ced
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/tensorflow/contrib/keras/api/keras/layers/__init__.py
shfkdroal/Robot-Learning-in-Mixed-Adversarial-and-Collaborative-Settings
1fa4cd6a566c8745f455fc3d2273208f21f88ced
[ "bzip2-1.0.6" ]
1
2022-02-08T03:53:23.000Z
2022-02-08T03:53:23.000Z
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
49.879195
81
0.832347
795a05d6b94684f6dd1538ee422b11c97eeb5880
1,218
py
Python
tests/test_sort.py
michael-kuhlmann/lazy_dataset
8faf09b7c8a9ff8ce1eaf14285853cafcf1e2cd1
[ "MIT" ]
14
2019-03-26T15:30:44.000Z
2021-12-19T00:56:51.000Z
tests/test_sort.py
michael-kuhlmann/lazy_dataset
8faf09b7c8a9ff8ce1eaf14285853cafcf1e2cd1
[ "MIT" ]
36
2019-03-04T15:40:09.000Z
2022-01-17T16:57:42.000Z
tests/test_sort.py
michael-kuhlmann/lazy_dataset
8faf09b7c8a9ff8ce1eaf14285853cafcf1e2cd1
[ "MIT" ]
7
2019-03-05T16:25:10.000Z
2021-05-27T16:52:23.000Z
import pytest import lazy_dataset def get_examples(): examples = { 'b': {'value': 2}, 'c': {'value': 3}, 'a': {'value': 1}, 'e': {'value': 5}, 'd': {'value': 4}, } for example_id, example in examples.items(): example['example_id'] = example_id return ex...
22.555556
49
0.584565
795a06602a90a8394c0012a6ae1b2e7a027c4d7e
4,666
py
Python
sample_onnx.py
Kazuhito00/NanoDet-Colaboratory-Training-Sample
38e51c5d08697395e9778ea4bd0810000e1058d7
[ "Apache-2.0" ]
13
2021-09-20T09:21:01.000Z
2021-11-20T07:40:04.000Z
sample_onnx.py
Kazuhito00/NanoDet-Colaboratory-Training-Sample
38e51c5d08697395e9778ea4bd0810000e1058d7
[ "Apache-2.0" ]
null
null
null
sample_onnx.py
Kazuhito00/NanoDet-Colaboratory-Training-Sample
38e51c5d08697395e9778ea4bd0810000e1058d7
[ "Apache-2.0" ]
1
2021-11-05T15:36:37.000Z
2021-11-05T15:36:37.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import copy import time import argparse import cv2 from nanodet import NanoDetONNX def get_args(): parser = argparse.ArgumentParser() parser.add_argument("--device", type=int, default=0) parser.add_argument("--movie", type=str, default=None) parser.add_...
26.213483
79
0.479854
795a068182eca67ab0b70738e73a34be45ec3eeb
15,445
py
Python
astropy/io/fits/tests/test_fitstime.py
jbkalmbach/astropy
88ae8c615533efd1e60de4aded204943f66f881c
[ "BSD-3-Clause" ]
null
null
null
astropy/io/fits/tests/test_fitstime.py
jbkalmbach/astropy
88ae8c615533efd1e60de4aded204943f66f881c
[ "BSD-3-Clause" ]
1
2018-05-08T13:59:56.000Z
2018-05-08T13:59:56.000Z
astropy/io/fits/tests/test_fitstime.py
jbkalmbach/astropy
88ae8c615533efd1e60de4aded204943f66f881c
[ "BSD-3-Clause" ]
1
2019-10-09T21:30:57.000Z
2019-10-09T21:30:57.000Z
# Licensed under a 3-clause BSD style license - see LICENSE.rst import os import pytest import numpy as np from . import FitsTestCase from ..fitstime import GLOBAL_TIME_INFO, time_to_fits, is_time_column_keyword from ....coordinates import EarthLocation from ....io import fits from ....table import Table, QTable fro...
40.751979
87
0.593784
795a0704fd3fa35114687135a9a67c2348b1d3c6
6,210
py
Python
python/services/iam/alpha/workload_identity_pool.py
trodge/declarative-resource-client-library
2cb7718a5074776b3113cc18a7483b54022238f3
[ "Apache-2.0" ]
null
null
null
python/services/iam/alpha/workload_identity_pool.py
trodge/declarative-resource-client-library
2cb7718a5074776b3113cc18a7483b54022238f3
[ "Apache-2.0" ]
null
null
null
python/services/iam/alpha/workload_identity_pool.py
trodge/declarative-resource-client-library
2cb7718a5074776b3113cc18a7483b54022238f3
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
38.09816
88
0.700644
795a070d9e5c9845522e0da06ca8e772b3f1d6b1
2,503
py
Python
main.py
JeyDi/GameOfLife
963d2d084e82321eb814e07d146af9af4e6106ff
[ "MIT" ]
null
null
null
main.py
JeyDi/GameOfLife
963d2d084e82321eb814e07d146af9af4e6106ff
[ "MIT" ]
null
null
null
main.py
JeyDi/GameOfLife
963d2d084e82321eb814e07d146af9af4e6106ff
[ "MIT" ]
null
null
null
""" Game of Life: Object plain python implementation Author: Andrea Guzzo (JeyDi) """ import time import typer import logging from config import configure_logging, ROWS, COLUMNS, MAX_PROB from src.board import GameBoard from src.rules import game_status def main( user: int = typer.Option(1, min=0, max=...
28.443182
86
0.610467
795a071d6d4d757db0d24007cdfe6916ce62eb59
2,290
py
Python
2019/24_rockem_sockem_robots/my_solution.py
erik-kristofer-anderson/codewars
fda780f40d1a2d8c5210cfd6ccf81148444bc9e8
[ "MIT" ]
null
null
null
2019/24_rockem_sockem_robots/my_solution.py
erik-kristofer-anderson/codewars
fda780f40d1a2d8c5210cfd6ccf81148444bc9e8
[ "MIT" ]
1
2019-07-27T15:42:25.000Z
2019-07-27T15:42:25.000Z
2019/24_rockem_sockem_robots/my_solution.py
erik-kristofer-anderson/Codewars
fda780f40d1a2d8c5210cfd6ccf81148444bc9e8
[ "MIT" ]
null
null
null
def fight(robot_1, robot_2, tactics): class My_robot: """ represents a robot this class is mutable attributes: name: string health: integer speed: integer tactics: list of strings """ def __init__(self, name = "", health = 0, speed = 0, tacti...
34.69697
105
0.524891
795a071f5cbb9b2dbf4bc78a8dac457b3360ccd2
534
py
Python
packages/python/plotly/plotly/validators/scattergl/line/_dash.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/scattergl/line/_dash.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/scattergl/line/_dash.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
import _plotly_utils.basevalidators class DashValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__(self, plotly_name="dash", parent_name="scattergl.line", **kwargs): super(DashValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
35.6
88
0.61236
795a078d14b1208ce1970cbea0cf52eae570c0c3
20,672
py
Python
sympy/combinatorics/partitions.py
ricopicone/sympy
de27c97214d540247a35c8215c7920e9a46b54ed
[ "BSD-3-Clause" ]
2
2019-02-05T19:20:24.000Z
2019-04-23T13:24:38.000Z
sympy/combinatorics/partitions.py
ricopicone/sympy
de27c97214d540247a35c8215c7920e9a46b54ed
[ "BSD-3-Clause" ]
null
null
null
sympy/combinatorics/partitions.py
ricopicone/sympy
de27c97214d540247a35c8215c7920e9a46b54ed
[ "BSD-3-Clause" ]
1
2019-10-15T10:55:42.000Z
2019-10-15T10:55:42.000Z
from __future__ import print_function, division from sympy.core import Basic, Dict, sympify from sympy.core.compatibility import as_int, default_sort_key, range from sympy.core.sympify import _sympify from sympy.functions.combinatorial.numbers import bell from sympy.matrices import zeros from sympy.sets.sets import Fi...
28.317808
80
0.50803
795a0791f07218a1f2a8f9f4e81e8b3eef66c6a0
7,771
py
Python
Resnet_models/res50.py
a5372935/Oct_resnet18
9e835634151398bb6704c251807d28b21fde5b86
[ "MIT" ]
3
2019-06-17T17:58:48.000Z
2020-12-15T06:58:54.000Z
Resnet_models/res50.py
a5372935/Oct_resnet18
9e835634151398bb6704c251807d28b21fde5b86
[ "MIT" ]
null
null
null
Resnet_models/res50.py
a5372935/Oct_resnet18
9e835634151398bb6704c251807d28b21fde5b86
[ "MIT" ]
2
2020-12-16T08:57:36.000Z
2020-12-26T06:48:58.000Z
import numpy as np import warnings from tensorflow.keras.layers import Input, Conv2D, BatchNormalization, Activation, ZeroPadding2D, AveragePooling2D, MaxPooling2D, GlobalAveragePooling2D, GlobalMaxPooling2D from tensorflow.keras.layers import Dense from tensorflow.keras.layers import add, Flatten from tensorflo...
42.933702
173
0.564663
795a08ae443d0d4645330d2b9f093b9460256edc
326
py
Python
4-1/WIndow Programing/20180427/Code10-20.py
define16/Class
8b0771a348b2bcb19ba338ebff94326828a293ea
[ "Apache-2.0" ]
null
null
null
4-1/WIndow Programing/20180427/Code10-20.py
define16/Class
8b0771a348b2bcb19ba338ebff94326828a293ea
[ "Apache-2.0" ]
null
null
null
4-1/WIndow Programing/20180427/Code10-20.py
define16/Class
8b0771a348b2bcb19ba338ebff94326828a293ea
[ "Apache-2.0" ]
null
null
null
from tkinter import * from tkinter.filedialog import * ## 함수 정의 부분 ## window = Tk() window.geometry("400x100") label1 = Label(window, text = "선택된 파일 이름 ") label1.pack() filename = askopenfilename(parent = window, filetypes = (("GIF 파일", "*.gif"), ("모든 파일", "*.*"))) label1.configure(text=str(filename)) window.mainl...
20.375
96
0.665644
795a08c25acbe9cba9a4efa0da6185bbac064358
3,670
py
Python
huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/delete_rule_request.py
NQLoong/huaweicloud-sdk-python-v3
677944a0b722147c6e105c53df9110724d64152a
[ "Apache-2.0" ]
1
2021-11-03T07:54:50.000Z
2021-11-03T07:54:50.000Z
huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/delete_rule_request.py
mawenbo-huawei/huaweicloud-sdk-python-v3
677944a0b722147c6e105c53df9110724d64152a
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/delete_rule_request.py
mawenbo-huawei/huaweicloud-sdk-python-v3
677944a0b722147c6e105c53df9110724d64152a
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import pprint import re import six class DeleteRuleRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value ...
26.788321
80
0.564033
795a08fd3142bd46b6e574daf65dd9e9c2b5e9c3
6,504
py
Python
lib/model/feature_extractors/resnet_feature_extractor_duo.py
jennyabr/faster-rcnn.pytorch
90639b26e9bcdbca0b3da140448913b5c41182e0
[ "MIT" ]
null
null
null
lib/model/feature_extractors/resnet_feature_extractor_duo.py
jennyabr/faster-rcnn.pytorch
90639b26e9bcdbca0b3da140448913b5c41182e0
[ "MIT" ]
null
null
null
lib/model/feature_extractors/resnet_feature_extractor_duo.py
jennyabr/faster-rcnn.pytorch
90639b26e9bcdbca0b3da140448913b5c41182e0
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division import torch.nn as nn from torchvision.models import resnet101 from torchvision.models.resnet import resnet50, resnet152 from model.feature_extractors.feature_extractor_duo import FeatureExtractorDuo from model.utils.net_utils import global_averag...
43.945946
116
0.619311
795a09130cc2807bd1c505859b8fdc9838652d11
2,030
py
Python
tools/obfuscator.py
anima-libera/ports
782ea3291eb3f66a043a3bc8e3cf2d35ccd62815
[ "Unlicense" ]
4
2020-05-14T22:27:08.000Z
2021-07-23T18:56:04.000Z
tools/obfuscator.py
anima-libera/ports
782ea3291eb3f66a043a3bc8e3cf2d35ccd62815
[ "Unlicense" ]
null
null
null
tools/obfuscator.py
anima-libera/ports
782ea3291eb3f66a043a3bc8e3cf2d35ccd62815
[ "Unlicense" ]
1
2021-05-14T09:33:07.000Z
2021-05-14T09:33:07.000Z
""" TODO Please note that this is clearly unoptimized because who cares """ import re from random import choice SPECIAL_NAMES = ["o", "o0", "o1", "of", "os", "sa", "ia", "ir"] NAME_CHARS = "".join([chr(n) for n in range(ord("a"), ord("z")+1)]+[str(i) for i in range(10)]) generated_names = {} def _generate_name(n): ...
26.710526
95
0.639409
795a093d72b9183329c74f285a3cd5db8e7d475a
2,563
py
Python
pydemoji/emoji.py
DJStompZone/DiscordEmoji-Wrapper
e3c017c7e7ff888202a068f3e8804d594ecf6e39
[ "MIT" ]
null
null
null
pydemoji/emoji.py
DJStompZone/DiscordEmoji-Wrapper
e3c017c7e7ff888202a068f3e8804d594ecf6e39
[ "MIT" ]
null
null
null
pydemoji/emoji.py
DJStompZone/DiscordEmoji-Wrapper
e3c017c7e7ff888202a068f3e8804d594ecf6e39
[ "MIT" ]
null
null
null
from .errors import InvalidQuery, InvalidOption import aiohttp async def fetch(by:str, query, endpoint=None, case_sensitive=None): """ Fetch an emoji Parameters ---------- by : str, fetch an emoji by (option) query : query that you want to search for endpoint : optional, if ...
38.253731
137
0.531409
795a0a2236e63fa8b6ff21374c687334f97927c4
34,468
py
Python
mesonbuild/linkers.py
mine260309/meson
e19a49b8957cd06d6f121812b7b00ef60a57fc7c
[ "Apache-2.0" ]
null
null
null
mesonbuild/linkers.py
mine260309/meson
e19a49b8957cd06d6f121812b7b00ef60a57fc7c
[ "Apache-2.0" ]
null
null
null
mesonbuild/linkers.py
mine260309/meson
e19a49b8957cd06d6f121812b7b00ef60a57fc7c
[ "Apache-2.0" ]
null
null
null
# Copyright 2012-2017 The Meson development team # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agree...
36.016719
106
0.63279
795a0aa4772cf37c8a90b3b18c38faf49e9dd316
10,879
py
Python
src/modlunky2/ui/widgets.py
mriswithe/modlunky2
20de5c7d226df7134cf87a9b9351fc9c28a89d6a
[ "Apache-2.0" ]
null
null
null
src/modlunky2/ui/widgets.py
mriswithe/modlunky2
20de5c7d226df7134cf87a9b9351fc9c28a89d6a
[ "Apache-2.0" ]
null
null
null
src/modlunky2/ui/widgets.py
mriswithe/modlunky2
20de5c7d226df7134cf87a9b9351fc9c28a89d6a
[ "Apache-2.0" ]
null
null
null
import logging import os import queue import tkinter as tk from tkinter import ttk from tkinter.scrolledtext import ScrolledText logger = logging.getLogger("modlunky2") class QueueHandler(logging.Handler): def __init__(self, log_queue): super().__init__() self.log_queue = log_queue def emit(...
32.966667
92
0.594448
795a0c13ac99a253fae579a867a400298ab95559
3,731
py
Python
ooobuild/lo/uno/uik.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/uno/uik.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/uno/uik.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # 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 applicab...
26.274648
196
0.579201
795a0d7430e0837732b2c119c916065add941106
857
py
Python
django_easy_scraper/switch.py
dearopen/django-easy-scraper
eeddf2c6da220ac7c19ed0ea0b5173000c9e4227
[ "BSD-3-Clause" ]
2
2020-11-17T08:48:51.000Z
2022-01-28T11:53:24.000Z
django_easy_scraper/switch.py
dearopen/django-easy-scraper
eeddf2c6da220ac7c19ed0ea0b5173000c9e4227
[ "BSD-3-Clause" ]
4
2020-11-22T10:17:43.000Z
2020-11-26T09:59:30.000Z
django_easy_scraper/switch.py
dearopen/django-easy-scraper
eeddf2c6da220ac7c19ed0ea0b5173000c9e4227
[ "BSD-3-Clause" ]
1
2020-11-17T08:48:54.000Z
2020-11-17T08:48:54.000Z
import re def get_domain_name(url): domain_name_pat = re.compile(r'.*\://(?:www.)?([^\/]+)') extract = domain_name_pat.findall(url) if len(extract) == 0: raise ValueError("Invalid domain name !! We couldn't parse domain name from your given url") else: return extract[0] class BaseS...
25.969697
123
0.654609
795a0d8d3dd7b5490374e7bc40cf3632df6f5f1f
2,168
py
Python
mnist/restore.py
tensorflow123/python_tutorial
0226237010127594b7e8a8b8fc3ed9fbd1c7bab2
[ "Apache-2.0" ]
3
2019-02-25T04:28:04.000Z
2019-11-23T07:12:28.000Z
mnist/restore.py
tensorflow123/python_tutorial
0226237010127594b7e8a8b8fc3ed9fbd1c7bab2
[ "Apache-2.0" ]
null
null
null
mnist/restore.py
tensorflow123/python_tutorial
0226237010127594b7e8a8b8fc3ed9fbd1c7bab2
[ "Apache-2.0" ]
1
2020-04-09T02:35:03.000Z
2020-04-09T02:35:03.000Z
import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data mnist = input_data.read_data_sets("MNIST_data", one_hot=True) saved_model_dir='./model' index=1 signature_key = 'test_signature' input_key_x = 'input_x' input_key_y = 'input_y' input_key_keep_prob = 'keep_prob' output_key_prediction = ...
39.418182
89
0.734779
795a0dfea26ea15aaec8a3f832c20383413aa497
20,178
py
Python
src/genie/libs/parser/asa/show_interface.py
kacann/genieparser
76e19003199c393c59a33546726de3ff5486da80
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/asa/show_interface.py
kacann/genieparser
76e19003199c393c59a33546726de3ff5486da80
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/asa/show_interface.py
kacann/genieparser
76e19003199c393c59a33546726de3ff5486da80
[ "Apache-2.0" ]
1
2021-07-07T18:07:56.000Z
2021-07-07T18:07:56.000Z
''' show_interface.py Parser for the following show commands: * show interface summary * show interface ip brief * show interface details ''' # Python import re # Metaparser from genie.metaparser import MetaParser from genie.metaparser.util.schemaengine import Schema, Any, Optional # ===================...
39.642436
96
0.483051
795a0e120da150f4ca49bb637967a8deaa1819e0
106
py
Python
Taekwon/Python/implementation/knight.py
sonnysorry/codingtest
478e0168e3209eb97b6b16910027bf12ccc3ccd0
[ "MIT" ]
2
2021-09-27T19:10:36.000Z
2021-11-09T05:40:39.000Z
Taekwon/Python/implementation/knight.py
sonnysorry/codingtest
478e0168e3209eb97b6b16910027bf12ccc3ccd0
[ "MIT" ]
1
2021-11-15T14:56:54.000Z
2021-11-15T14:56:54.000Z
Taekwon/Python/implementation/knight.py
sonnysorry/codingtest
478e0168e3209eb97b6b16910027bf12ccc3ccd0
[ "MIT" ]
null
null
null
a = input() dx = [-1, -2, -2, -1, 1, 2, 2, 1] dy = [2, 1, -1, -2, -2, -1, 1, 2] for i in range(8):
13.25
33
0.358491
795a0e8d2ab744563d04372b83cc232012451cc3
15,578
py
Python
sdk/python/pulumi_azure_native/network/v20160901/get_application_gateway.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20160901/get_application_gateway.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20160901/get_application_gateway.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
44.130312
528
0.694248
795a0f396bd73004af5bcb891e25299664a1c46f
44,490
py
Python
scripts/vk_validation_stats.py
shannon-lunarg/Vulkan-ValidationLayers
ff80a937c8a505abbdddb95d8ffaa446820c8391
[ "Apache-2.0" ]
1
2019-09-22T22:45:07.000Z
2019-09-22T22:45:07.000Z
scripts/vk_validation_stats.py
shannon-lunarg/Vulkan-ValidationLayers
ff80a937c8a505abbdddb95d8ffaa446820c8391
[ "Apache-2.0" ]
null
null
null
scripts/vk_validation_stats.py
shannon-lunarg/Vulkan-ValidationLayers
ff80a937c8a505abbdddb95d8ffaa446820c8391
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-2019 The Khronos Group Inc. # Copyright (c) 2015-2019 Valve Corporation # Copyright (c) 2015-2019 LunarG, Inc. # Copyright (c) 2015-2019 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the L...
56.174242
247
0.614767
795a0f604f8c99e979c022f3d2f6ff099d5dbaf7
2,583
py
Python
tests/ut/python/parallel/test_linear.py
ZephyrChenzf/mindspore
8f191847cf71e12715ced96bc3575914f980127a
[ "Apache-2.0" ]
7
2020-05-24T03:19:26.000Z
2020-05-24T03:20:00.000Z
tests/ut/python/parallel/test_linear.py
dilingsong/mindspore
4276050f2494cfbf8682560a1647576f859991e8
[ "Apache-2.0" ]
null
null
null
tests/ut/python/parallel/test_linear.py
dilingsong/mindspore
4276050f2494cfbf8682560a1647576f859991e8
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
34.905405
80
0.67712
795a0feb9b33f5a507d835c5e65d281436a11c0f
5,669
py
Python
onepiece/site/c18comic.py
fenglui/TencentComicBook
5ea70a0d1fcb6cd29492ba7b1148f7b55ecc97c9
[ "MIT" ]
null
null
null
onepiece/site/c18comic.py
fenglui/TencentComicBook
5ea70a0d1fcb6cd29492ba7b1148f7b55ecc97c9
[ "MIT" ]
null
null
null
onepiece/site/c18comic.py
fenglui/TencentComicBook
5ea70a0d1fcb6cd29492ba7b1148f7b55ecc97c9
[ "MIT" ]
null
null
null
import re import logging from urllib.parse import urljoin from ..crawlerbase import CrawlerBase logger = logging.getLogger(__name__) class C18comicCrawler(CrawlerBase): SITE = "18comic" SITE_INDEX = 'https://18comic.org/' SOURCE_NAME = "禁漫天堂" LOGIN_URL = SITE_INDEX R18 = True DEFAULT_COMIC...
38.828767
102
0.540131
795a129d9b75b89eee617ee93d830fd83b867eaf
317
py
Python
Data Scientist Career Path/10. Natural Language Processing/5. Word Embeding/3. what.py
myarist/Codecademy
2ba0f104bc67ab6ef0f8fb869aa12aa02f5f1efb
[ "MIT" ]
23
2021-06-06T15:35:55.000Z
2022-03-21T06:53:42.000Z
Data Scientist Career Path/10. Natural Language Processing/5. Word Embeding/3. what.py
shivaniverma1/Data-Scientist
f82939a411484311171465591455880c8e354750
[ "MIT" ]
null
null
null
Data Scientist Career Path/10. Natural Language Processing/5. Word Embeding/3. what.py
shivaniverma1/Data-Scientist
f82939a411484311171465591455880c8e354750
[ "MIT" ]
9
2021-06-08T01:32:04.000Z
2022-03-18T15:38:09.000Z
import spacy # load word embedding model nlp = spacy.load('en') # define word embedding vectors happy_vec = nlp('happy').vector print(happy_vec) sad_vec = nlp('sad').vector print(sad_vec) angry_vec = nlp('angry').vector print(angry_vec) # find vector length here vector_length = len(happy_vec) print(vector_length)
19.8125
31
0.760252
795a12c607c6315af44fde7ad7a75a7b5336a496
15,034
bzl
Python
source/extensions/extensions_build_config.bzl
ryanmcnamara/envoy
29b30911dbfb3f9760efeb28238ceac36e1a1a23
[ "Apache-2.0" ]
null
null
null
source/extensions/extensions_build_config.bzl
ryanmcnamara/envoy
29b30911dbfb3f9760efeb28238ceac36e1a1a23
[ "Apache-2.0" ]
null
null
null
source/extensions/extensions_build_config.bzl
ryanmcnamara/envoy
29b30911dbfb3f9760efeb28238ceac36e1a1a23
[ "Apache-2.0" ]
null
null
null
# See bazel/README.md for details on how this system works. EXTENSIONS = { # # Access loggers # "envoy.access_loggers.file": "//source/extensions/access_loggers/file:config", "envoy.access_loggers.http_grpc": "//source/extensions/access_loggers/grpc:http_con...
58.726563
132
0.636025
795a13bbca4157f8898bd1e47ccf63d6fe8e9727
772
py
Python
Phase-2/Json/Day-38.py
emetowinner/python-challenges
520da69da0f2632deb1e81136d2b62d40555a4aa
[ "MIT" ]
3
2020-05-21T20:19:40.000Z
2022-02-27T08:20:10.000Z
Phase-2/Json/tasks.py
emetowinner/python-challenges
520da69da0f2632deb1e81136d2b62d40555a4aa
[ "MIT" ]
null
null
null
Phase-2/Json/tasks.py
emetowinner/python-challenges
520da69da0f2632deb1e81136d2b62d40555a4aa
[ "MIT" ]
4
2020-05-12T16:41:52.000Z
2020-05-21T20:17:22.000Z
1. Write a Python program to convert JSON data to Python object. 2. Write a Python program to convert Python object to JSON data. 3. Write a Python program to convert Python objects into JSON strings. Print all the values. 4. Write a Python program to convert Python dictionary object (sort by key) to JSON data. P...
29.692308
135
0.772021
795a13fda03ad4d84d2b7ec872218f7207ec5de5
478
py
Python
egs/zeroth/s5/data/local/lm/buildLM/_scripts_/checkPronun.py
SYHPARK/kaldi
71af1b0d3c3885936cb4b2a92048a9fa2371bd32
[ "Apache-2.0" ]
330
2018-02-03T02:12:05.000Z
2022-03-31T14:18:18.000Z
egs/zeroth/s5/data/local/lm/buildLM/_scripts_/checkPronun.py
SYHPARK/kaldi
71af1b0d3c3885936cb4b2a92048a9fa2371bd32
[ "Apache-2.0" ]
17
2018-02-12T06:28:30.000Z
2022-03-16T08:36:54.000Z
egs/zeroth/s5/data/local/lm/buildLM/_scripts_/checkPronun.py
SYHPARK/kaldi
71af1b0d3c3885936cb4b2a92048a9fa2371bd32
[ "Apache-2.0" ]
125
2018-02-03T00:51:25.000Z
2022-03-19T05:06:04.000Z
#!/usr/bin/env python3 import fileinput import sys import re def main(): nLine=0 for line in fileinput.input(): if nLine%1000 == 0: print(' %d line processed' %(nLine), end='\r', file=sys.stderr) sys.stderr.flush() nLine+=1 tstr = line.strip() ...
20.782609
76
0.529289
795a14749f265aa825635d79de27cc0396ab1b5e
10,380
py
Python
sdk/yapily/models/pre_authorisation_request.py
yapily/yapily-sdk-python
c09930c44e8795e270e2846a2c0fb783200df76a
[ "MIT" ]
11
2018-05-18T14:38:49.000Z
2021-09-08T13:24:37.000Z
sdk/yapily/models/pre_authorisation_request.py
yapily/yapily-sdk-python
c09930c44e8795e270e2846a2c0fb783200df76a
[ "MIT" ]
5
2019-10-23T15:06:33.000Z
2021-08-03T21:18:50.000Z
sdk/yapily/models/pre_authorisation_request.py
yapily/yapily-sdk-python
c09930c44e8795e270e2846a2c0fb783200df76a
[ "MIT" ]
8
2019-04-27T00:02:18.000Z
2021-11-21T02:54:12.000Z
# coding: utf-8 """ Yapily API To access endpoints that require authentication, use your application key and secret created in the Dashboard (https://dashboard.yapily.com) # noqa: E501 The version of the OpenAPI document: 1.154.0 Generated by: https://openapi-generator.tech """ import pprint impor...
33.162939
219
0.641137
795a158f721c5e990d32fad5dc6cdb09cc729de2
18,658
py
Python
casaconfig/jplephem_request.py
casangi/casaconfig
1f7fa1f4b149eb5e6b5ac3206a27b9a99307eed2
[ "Apache-2.0" ]
null
null
null
casaconfig/jplephem_request.py
casangi/casaconfig
1f7fa1f4b149eb5e6b5ac3206a27b9a99307eed2
[ "Apache-2.0" ]
null
null
null
casaconfig/jplephem_request.py
casangi/casaconfig
1f7fa1f4b149eb5e6b5ac3206a27b9a99307eed2
[ "Apache-2.0" ]
null
null
null
# # Utilities for having JPL-Horizons ephemerides mailed to you. # See JPL_ephem_reader.py for doing something with them. # # Examples: # # import recipes.ephemerides.request as jplreq # # # I recommend you not ask for more than ~18 months of anything with # # date_incr ~ 1h, because the result would be split into mult...
39.28
114
0.5231
795a165a5b8005cc04d67fcaecc27e13d510a1c7
2,387
py
Python
context/opencensus-context/tests/test_runtime_context.py
jtbeach/opencensus-python
2e396b063a238b3e823b6efc136b9a0405dd5565
[ "Apache-2.0" ]
1
2019-09-21T13:52:19.000Z
2019-09-21T13:52:19.000Z
context/opencensus-context/tests/test_runtime_context.py
dineshkrishnareddy/opencensus-python
e5e752ceab3371ec4b78cec23a717168e2ed9372
[ "Apache-2.0" ]
null
null
null
context/opencensus-context/tests/test_runtime_context.py
dineshkrishnareddy/opencensus-python
e5e752ceab3371ec4b78cec23a717168e2ed9372
[ "Apache-2.0" ]
null
null
null
# Copyright 2019, OpenCensus 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 w...
33.152778
78
0.697528
795a17808709cacf8cf15d6849b43ce3533a95fa
3,026
py
Python
Src/StdLib/Lib/site-packages/pythonwin/pywin/Demos/ocx/ocxserialtest.py
cwensley/ironpython2
f854444e1e08afc8850cb7c1a739a7dd2d10d32a
[ "Apache-2.0" ]
1,078
2016-07-19T02:48:30.000Z
2022-03-30T21:22:34.000Z
Src/StdLib/Lib/site-packages/pythonwin/pywin/Demos/ocx/ocxserialtest.py
cwensley/ironpython2
f854444e1e08afc8850cb7c1a739a7dd2d10d32a
[ "Apache-2.0" ]
576
2017-05-21T12:36:48.000Z
2022-03-30T13:47:03.000Z
Src/StdLib/Lib/site-packages/pythonwin/pywin/Demos/ocx/ocxserialtest.py
cwensley/ironpython2
f854444e1e08afc8850cb7c1a739a7dd2d10d32a
[ "Apache-2.0" ]
269
2017-05-21T04:44:47.000Z
2022-03-31T16:18:13.000Z
# ocxserialtest.py # # Sample that uses the mscomm OCX to talk to a serial # device. # Very simple - queries a modem for ATI responses import win32ui, win32uiole import win32con from pywin.mfc import dialog, activex from win32com.client import gencache import pythoncom SERIAL_SETTINGS = '19200,n,8,1' SERIAL_PORT = ...
29.666667
156
0.692003
795a18cd9d9916678d5bffaaf081f614f2a7f26e
1,990
py
Python
sdk/media/azure-mgmt-media/azure/mgmt/media/operations/__init__.py
JianpingChen/azure-sdk-for-python
3072fc8c0366287fbaea1b02493a50259c3248a2
[ "MIT" ]
3
2020-06-23T02:25:27.000Z
2021-09-07T18:48:11.000Z
sdk/media/azure-mgmt-media/azure/mgmt/media/operations/__init__.py
JianpingChen/azure-sdk-for-python
3072fc8c0366287fbaea1b02493a50259c3248a2
[ "MIT" ]
510
2019-07-17T16:11:19.000Z
2021-08-02T08:38:32.000Z
sdk/media/azure-mgmt-media/azure/mgmt/media/operations/__init__.py
JianpingChen/azure-sdk-for-python
3072fc8c0366287fbaea1b02493a50259c3248a2
[ "MIT" ]
5
2019-09-04T12:51:37.000Z
2020-09-16T07:28:40.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
45.227273
94
0.779899
795a1a9a0fe929f68be1a5b83bbb027909722c55
3,017
py
Python
fixture/contact.py
kate-moroz/python_work
9d52c7d3fdfe6c1a4956a66ed74cb47420437276
[ "Apache-2.0" ]
null
null
null
fixture/contact.py
kate-moroz/python_work
9d52c7d3fdfe6c1a4956a66ed74cb47420437276
[ "Apache-2.0" ]
null
null
null
fixture/contact.py
kate-moroz/python_work
9d52c7d3fdfe6c1a4956a66ed74cb47420437276
[ "Apache-2.0" ]
null
null
null
class ContactHelper: def __init__(self, app): self.app = app def create(self, contact): wd = self.app.wd # init contact creation if not wd.current_url.endswith("/edit.php"): wd.find_element_by_link_text("add new").click() # fill contact form wd.find_...
37.7125
108
0.649652
795a1ab64cb59c04ac1064a932fc7e303ccac1c4
271
py
Python
pyAitu/models/update/form_submitted.py
waihislam/pyAitu
6e7c3bfa7454d6ae91ba998017cf772bb6a25770
[ "Apache-2.0" ]
11
2019-09-26T05:09:20.000Z
2021-05-20T10:45:28.000Z
pyAitu/models/update/form_submitted.py
waihislam/pyAitu
6e7c3bfa7454d6ae91ba998017cf772bb6a25770
[ "Apache-2.0" ]
8
2019-10-08T13:41:09.000Z
2020-06-25T11:35:56.000Z
pyAitu/models/update/form_submitted.py
waihislam/pyAitu
6e7c3bfa7454d6ae91ba998017cf772bb6a25770
[ "Apache-2.0" ]
4
2020-02-18T09:02:37.000Z
2020-11-25T06:11:05.000Z
from .form_update import FormUpdate class FormSubmitted(FormUpdate): def __init__(self, json_object): super().__init__(json_object) self.metadata = json_object.get("metadata") self.additional_metadata = json_object.get("additionalMetadata")
30.111111
72
0.730627
795a1ab72288c1f4d34500768098a1bd58fb6522
41,089
py
Python
src/sage/functions/hypergeometric.py
LaisRast/sage
5fb2a6ea44400e469caee82748cf863ca0c5f724
[ "BSL-1.0" ]
null
null
null
src/sage/functions/hypergeometric.py
LaisRast/sage
5fb2a6ea44400e469caee82748cf863ca0c5f724
[ "BSL-1.0" ]
null
null
null
src/sage/functions/hypergeometric.py
LaisRast/sage
5fb2a6ea44400e469caee82748cf863ca0c5f724
[ "BSL-1.0" ]
null
null
null
r""" Hypergeometric Functions This module implements manipulation of infinite hypergeometric series represented in standard parametric form (as `\,_pF_q` functions). AUTHORS: - Fredrik Johansson (2010): initial version - Eviatar Bach (2013): major changes EXAMPLES: Examples from :trac:`9908`:: sage: maxima('...
36.265666
97
0.467935
795a1aed2de71edd17ccb1cec491f3a1c9f49428
8,555
py
Python
models/res_lstm_l.py
wangkenpu/rsrgan
0efafbdb4008becd3a81650ca0237c660e976d4a
[ "MIT" ]
66
2018-07-06T07:07:56.000Z
2021-07-30T07:59:54.000Z
models/res_lstm_l.py
wangkenpu/rsrgan
0efafbdb4008becd3a81650ca0237c660e976d4a
[ "MIT" ]
7
2018-09-01T03:03:14.000Z
2019-11-04T10:51:04.000Z
models/res_lstm_l.py
wangkenpu/rsrgan
0efafbdb4008becd3a81650ca0237c660e976d4a
[ "MIT" ]
15
2018-07-03T13:47:26.000Z
2021-10-17T04:26:13.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2017 Ke Wang """Build the LSTM neural networks. This module provides an example of definiting compute graph with tensorflow. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import ...
42.775
80
0.477382
795a1b5bf0319d3307bed2fda7f44e3ac7eef547
563
py
Python
webapp/home/migrations/0013_alter_notice_notice_class.py
usegalaxy-au/galaxy-media-site
3ec13e0f42591d2543768f252be037784933e271
[ "MIT" ]
null
null
null
webapp/home/migrations/0013_alter_notice_notice_class.py
usegalaxy-au/galaxy-media-site
3ec13e0f42591d2543768f252be037784933e271
[ "MIT" ]
36
2021-11-14T21:34:22.000Z
2022-03-24T22:46:42.000Z
webapp/home/migrations/0013_alter_notice_notice_class.py
neoformit/galaxy-content-site
a6eeaf1893c12dd4d7d714fb823f43509a0a3893
[ "MIT" ]
null
null
null
# Generated by Django 3.2 on 2022-02-25 01:36 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('home', '0012_alter_notice_notice_class'), ] operations = [ migrations.AlterField( model_name='notice', name='notice_cl...
29.631579
219
0.612789
795a1dbe0431c9dc89274fa4cbb529410c97c566
432
py
Python
feed/china_market.py
datar/finer
204a806dd8c81759dedddc141eaea0a59bfe573f
[ "Apache-2.0" ]
null
null
null
feed/china_market.py
datar/finer
204a806dd8c81759dedddc141eaea0a59bfe573f
[ "Apache-2.0" ]
null
null
null
feed/china_market.py
datar/finer
204a806dd8c81759dedddc141eaea0a59bfe573f
[ "Apache-2.0" ]
null
null
null
company_people_page_url_pattern = 'http://www.cfachina.org/cfainfo/organbaseinfoOneServlet?organid=+%s+&currentPage=1&pageSize=2000&selectType=personinfo&all=undefined' ALL_PEOPLE_PAGE_URL = 'http://www.cfachina.org/cfainfo/personinfoServlet?organid=&currentPage=1&pageSize=100000&selectType=check&cardid=' trunk_of_all_...
108
168
0.826389
795a1de0d19a1f57d9957fb928e914d363ef48c2
39,461
py
Python
pybea/client.py
areed1192/python-bureau-economic-analysis-api-client
04c5572b924428822e9d4d8e1b2b7d1f7785ec11
[ "MIT" ]
10
2020-07-12T15:46:33.000Z
2022-03-31T18:27:38.000Z
pybea/client.py
areed1192/python-bureau-economic-analysis-api-client
04c5572b924428822e9d4d8e1b2b7d1f7785ec11
[ "MIT" ]
1
2020-12-23T09:46:58.000Z
2021-03-13T00:18:33.000Z
pybea/client.py
areed1192/python-bureau-economic-analysis-api-client
04c5572b924428822e9d4d8e1b2b7d1f7785ec11
[ "MIT" ]
5
2020-08-13T23:22:06.000Z
2022-01-16T14:59:29.000Z
from typing import List from typing import Union import requests class BureauEconomicAnalysisClient: """ ### Overview ---- Represents the main BEA Client that is used to access the different services. """ def __init__(self, api_key: str) -> None: """Initalize the Bureau of Econo...
33.188394
97
0.559743
795a1e01d5803c9202620dd51f48f074c82a7daf
1,746
py
Python
tests/sentry/api/endpoints/team_projects.py
pierredup/sentry
0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80
[ "BSD-3-Clause" ]
null
null
null
tests/sentry/api/endpoints/team_projects.py
pierredup/sentry
0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80
[ "BSD-3-Clause" ]
null
null
null
tests/sentry/api/endpoints/team_projects.py
pierredup/sentry
0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import import six from django.core.urlresolvers import reverse from sentry.models import Project from sentry.testutils import APITestCase from sentry.utils.compat import map class TeamProjectIndexTest(APITestCase): def test_simple(self): self.login_as(user=self.user) ...
36.375
89
0.644903
795a1e317671d4f15c79d312aca70476e184af55
6,521
py
Python
imbalanced_ensemble/datasets/_imbalance.py
ZhiningLiu1998/imbalanced-ensemble
26670c8a6b7bab26ae1e18cba3174a9d9038a680
[ "MIT" ]
87
2021-05-19T08:29:26.000Z
2022-03-30T23:59:05.000Z
imbalanced_ensemble/datasets/_imbalance.py
ZhiningLiu1998/imbalanced-ensemble
26670c8a6b7bab26ae1e18cba3174a9d9038a680
[ "MIT" ]
8
2021-05-28T10:27:28.000Z
2022-01-11T11:21:03.000Z
imbalanced_ensemble/datasets/_imbalance.py
ZhiningLiu1998/imbalanced-ensemble
26670c8a6b7bab26ae1e18cba3174a9d9038a680
[ "MIT" ]
18
2021-05-19T08:30:29.000Z
2022-03-28T08:30:10.000Z
"""Transform a dataset into an imbalanced dataset.""" # Adapted from imbalanced-learn # Authors: Dayvid Oliveira # Guillaume Lemaitre <g.lemaitre58@gmail.com> # Christos Aridas # Zhining Liu <zhining.liu@outlook.com> # License: MIT from collections import Counter from sklearn.datasets impor...
37.051136
166
0.67551
795a1e5e2730d29f9742cfabda267184835b8664
1,952
py
Python
static/extension/dynamic_scope/dynamic_permission.py
EOEPCA/um-login-persistence
290636438390e4ab6f6b6dbfe9c6b3e1e9135110
[ "Apache-2.0" ]
null
null
null
static/extension/dynamic_scope/dynamic_permission.py
EOEPCA/um-login-persistence
290636438390e4ab6f6b6dbfe9c6b3e1e9135110
[ "Apache-2.0" ]
1
2020-11-05T08:03:26.000Z
2020-11-05T08:03:26.000Z
static/extension/dynamic_scope/dynamic_permission.py
EOEPCA/um-login-persistence
290636438390e4ab6f6b6dbfe9c6b3e1e9135110
[ "Apache-2.0" ]
null
null
null
# oxAuth is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text. # Copyright (c) 2016, Gluu # # Author: Yuriy Movchan # from org.gluu.model.custom.script.type.scope import DynamicScopeType from org.gluu.service.cdi.util import CdiUtil from org.gluu.oxauth.service import...
36.148148
106
0.712602
795a1e87056d27d1831e8829525b3ee13f41c897
6,846
py
Python
compass/core/_scrapers/hierarchy.py
MrNoScript/compass-interface-core
8c945ef36f7bee396bd5a744404eaa88d280a845
[ "MIT" ]
null
null
null
compass/core/_scrapers/hierarchy.py
MrNoScript/compass-interface-core
8c945ef36f7bee396bd5a744404eaa88d280a845
[ "MIT" ]
null
null
null
compass/core/_scrapers/hierarchy.py
MrNoScript/compass-interface-core
8c945ef36f7bee396bd5a744404eaa88d280a845
[ "MIT" ]
null
null
null
from __future__ import annotations import json import typing from typing import Literal, TYPE_CHECKING, Union from lxml import html import pydantic from compass.core.interface_base import InterfaceBase from compass.core.schemas import hierarchy as schema from compass.core.settings import Settings from compass.core.u...
37.005405
131
0.624598
795a1eec5a7a00d957fb52c4ecc7f11a24b65963
104,142
py
Python
aim/tests/unit/agent/test_agent.py
gaurav-dalvi/aci-integration-module
5d31f65f4fca3e0322d6003e7736ca14aa7ec72d
[ "Apache-2.0" ]
null
null
null
aim/tests/unit/agent/test_agent.py
gaurav-dalvi/aci-integration-module
5d31f65f4fca3e0322d6003e7736ca14aa7ec72d
[ "Apache-2.0" ]
null
null
null
aim/tests/unit/agent/test_agent.py
gaurav-dalvi/aci-integration-module
5d31f65f4fca3e0322d6003e7736ca14aa7ec72d
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2016 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...
46.491964
79
0.618012
795a1f8cfd1f470f4f707aeaa37dadf130bfa930
1,195
py
Python
game/save.py
martendo7/sunny-day
9d61294dc1e475140eb44f99ff06636d2e4e9868
[ "MIT" ]
null
null
null
game/save.py
martendo7/sunny-day
9d61294dc1e475140eb44f99ff06636d2e4e9868
[ "MIT" ]
null
null
null
game/save.py
martendo7/sunny-day
9d61294dc1e475140eb44f99ff06636d2e4e9868
[ "MIT" ]
null
null
null
import json class SaveDataError(Exception): pass class SaveReader: def __init__(self, game): self.game = game def load(self, filename): self.game.savefile = filename with open(self.game.savefile, "r") as file: try: data = json.load(file) ...
33.194444
83
0.569874
795a1ffaa7a8432ec2a59c33d2a0a9067904e130
1,073
py
Python
net_models/models/services/cisco_ios/IosLineModels.py
ashkalikava/net_models
1a99f6dc743665b47c4c4731bbca2a52176ded3f
[ "MIT" ]
null
null
null
net_models/models/services/cisco_ios/IosLineModels.py
ashkalikava/net_models
1a99f6dc743665b47c4c4731bbca2a52176ded3f
[ "MIT" ]
null
null
null
net_models/models/services/cisco_ios/IosLineModels.py
ashkalikava/net_models
1a99f6dc743665b47c4c4731bbca2a52176ded3f
[ "MIT" ]
null
null
null
from net_models.models import BaseNetModel from net_models.fields import GENERIC_OBJECT_NAME, VRF_NAME from net_models.models.services.cisco_ios.AaaMethods import IosLineAaaConfig from pydantic.types import conlist, conint from pydantic.typing import Optional, Literal, List class IosLineTransport(BaseNetModel): ...
32.515152
76
0.741845
795a2218adf4ebe15852e2fe65d9e3084e87acf0
386
py
Python
doc/build/html/add_font.py
yhilpisch/rpi
3379078699554c25806b7b4ed716b45e16c42f16
[ "BSD-2-Clause" ]
3
2015-12-19T17:28:01.000Z
2018-05-27T01:40:42.000Z
doc/build/html/add_font.py
yhilpisch/rpi
3379078699554c25806b7b4ed716b45e16c42f16
[ "BSD-2-Clause" ]
null
null
null
doc/build/html/add_font.py
yhilpisch/rpi
3379078699554c25806b7b4ed716b45e16c42f16
[ "BSD-2-Clause" ]
8
2015-05-05T04:51:25.000Z
2022-03-14T04:50:18.000Z
import os to_add = "<link href='http://fonts.googleapis.com/css?family=PT+Sans' " to_add += "rel='stylesheet' type='text/css'>\n" files = os.listdir('.') for f in files: if f.endswith('.html') and f[0] in ['0', 'i']: r = open(f, 'r').readlines() n = open(f, 'w') n.writelines(r[:12]) ...
24.125
71
0.53886
795a23b7dbdd931cc8227eb9a11e1c9c849cf4cc
11,218
py
Python
Configs/Non_lab.py
yochaiedlitz/T2DM_UKB_predictions
1e6b22e3d51d515eb065d7d5f46408f86f33d0b8
[ "MIT" ]
1
2022-01-17T13:13:02.000Z
2022-01-17T13:13:02.000Z
Configs/Non_lab.py
yochaiedlitz/T2DM_UKB_predictions
1e6b22e3d51d515eb065d7d5f46408f86f33d0b8
[ "MIT" ]
null
null
null
Configs/Non_lab.py
yochaiedlitz/T2DM_UKB_predictions
1e6b22e3d51d515eb065d7d5f46408f86f33d0b8
[ "MIT" ]
null
null
null
import collections # Used for ordered dictionary from PRS import PRS_sumstats as PRS_sumstats from UKBB_Functions import PROBA_FOLDER import sys Top_Gen_Dict = PRS_sumstats.Get_Top_Gen_Dict() Hyp_Param_Dict_A = collections.OrderedDict() Hyp_Param_Dict_R = collections.OrderedDict() # TRAIN_PATH = '/net/mraid08/export/j...
60.637838
301
0.708593
795a242ae30acda268a0bd877c743610408f8752
468
py
Python
modeling/ibn.py
sunggukcha/deeplabs
739be4accdc27fbb912c131aaafc9fcf10e04929
[ "MIT" ]
34
2019-08-07T20:44:15.000Z
2021-12-05T10:23:47.000Z
modeling/ibn.py
toluwajosh/deeplabs
59e292e6777d1e53ed7716b7afd3c3489d57f61a
[ "MIT" ]
9
2020-05-08T07:55:12.000Z
2020-12-23T08:36:08.000Z
modeling/ibn.py
toluwajosh/deeplabs
59e292e6777d1e53ed7716b7afd3c3489d57f61a
[ "MIT" ]
6
2020-03-09T15:42:51.000Z
2021-09-12T19:33:08.000Z
import torch import torch.nn as nn import math class IBN(nn.Module): def __init__(self, planes, bn): super(IBN, self).__init__() half1 = int(planes/2) self.half = half1 half2 = planes - half1 self.IN = nn.InstanceNorm2d(half1, affine=True) self.BN = bn(half2) def forward(self, x): split = torch.spl...
24.631579
50
0.666667
795a24629fe51b30acec07a3e96efc920f1bc25e
3,500
py
Python
test_pyramids/test_code_quality.py
leomauro/pyramids
4f7a8e97e13a5ee0b037dc528e5ba72f31ac36e5
[ "MIT" ]
9
2015-09-04T22:33:40.000Z
2019-04-11T14:05:11.000Z
test_pyramids/test_code_quality.py
leomauro/pyramids
4f7a8e97e13a5ee0b037dc528e5ba72f31ac36e5
[ "MIT" ]
2
2015-09-04T22:31:44.000Z
2017-07-29T04:11:53.000Z
test_pyramids/test_code_quality.py
hosford42/pyramids
4f7a8e97e13a5ee0b037dc528e5ba72f31ac36e5
[ "MIT" ]
3
2015-10-14T12:41:26.000Z
2022-01-08T19:43:47.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Tests to ensure code quality standards are met.""" import os from pylama.main import check_path, parse_options ERROR_TYPE_MAP = { 'W': 'Warning', 'D': 'Documentation', 'E': 'Code Checker Error', 'C': 'Coding Style', 'R': 'Code Complexity', } PYL...
32.71028
96
0.584
795a24d820f2eec96f7ea8cfd388c5e93eede514
6,437
py
Python
motif/experiments.py
NThande/matched-motif
3d5338a5db8c8ae69d42c3141d81a8812cd82bd7
[ "MIT" ]
1
2019-11-06T00:53:58.000Z
2019-11-06T00:53:58.000Z
motif/experiments.py
NThande/matched-motif
3d5338a5db8c8ae69d42c3141d81a8812cd82bd7
[ "MIT" ]
null
null
null
motif/experiments.py
NThande/matched-motif
3d5338a5db8c8ae69d42c3141d81a8812cd82bd7
[ "MIT" ]
null
null
null
import config as cfg import explots import exputils import fileutils import metrics import motifutils as motif import visutils as vis import visualizations # Runs the segmentation experiment on an audio file with the given name in bin/test. def segmentation_experiment(name, in_dir, out_dir, write_motifs=False, show_p...
43.201342
108
0.64471
795a252846308c81e66ff72aaec807afdccfea55
1,363
py
Python
pipeline/transform/cta_train_stops.py
scarletstudio/transithealth
408e6c1a063e46edb95040c26db93c2ff93c6d33
[ "MIT" ]
2
2021-05-18T15:34:19.000Z
2021-10-07T01:29:31.000Z
pipeline/transform/cta_train_stops.py
scarletstudio/transithealth
408e6c1a063e46edb95040c26db93c2ff93c6d33
[ "MIT" ]
89
2021-05-21T18:31:04.000Z
2021-08-16T01:13:02.000Z
pipeline/transform/cta_train_stops.py
scarletstudio/transithealth
408e6c1a063e46edb95040c26db93c2ff93c6d33
[ "MIT" ]
1
2021-06-15T10:28:26.000Z
2021-06-15T10:28:26.000Z
import argparse import json import pandas as pd from shapely.geometry import shape, Polygon, MultiPolygon, Point from timeit import default_timer as timer cli = argparse.ArgumentParser(description="Transform CTA L Train stop data.") cli.add_argument("--input_file", help="File path to read CTA L Train stop data from."...
26.72549
89
0.707263
795a254a05cce8c9ee1afc46cf7137d206793840
594
py
Python
setup.py
antoinedelia/bullet
8950d0459169a544e89821d17dbacde44e5380ae
[ "MIT" ]
null
null
null
setup.py
antoinedelia/bullet
8950d0459169a544e89821d17dbacde44e5380ae
[ "MIT" ]
null
null
null
setup.py
antoinedelia/bullet
8950d0459169a544e89821d17dbacde44e5380ae
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name='bullet', version='2.0.0', description='Beautiful Python prompts made simple.', long_description="Extensive support for Python list prompts \ formatting and colors", url='https://github.com/Mckinsey666/bullets', ...
31.263158
68
0.574074
795a2608aad868816a898556a84e0bfa9ba060cc
17,939
py
Python
pandaserver/dataservice/EventPicker.py
eschanet/QMonit
83f3323fa465b3ae41f9a49f28332bdb5e748685
[ "MIT" ]
1
2020-12-05T16:59:13.000Z
2020-12-05T16:59:13.000Z
pandaserver/dataservice/EventPicker.py
eschanet/QMonit
83f3323fa465b3ae41f9a49f28332bdb5e748685
[ "MIT" ]
null
null
null
pandaserver/dataservice/EventPicker.py
eschanet/QMonit
83f3323fa465b3ae41f9a49f28332bdb5e748685
[ "MIT" ]
null
null
null
''' add data to dataset ''' import os import re import sys import fcntl import datetime import traceback import pandaserver.brokerage.broker from pandaserver.dataservice import DynDataDistributer from pandaserver.dataservice.MailUtils import MailUtils from pandaserver.dataservice.Notifier import Notifier from pandase...
45.530457
126
0.480685
795a2645e89df84281d6a81a1b4f1287d2923ad6
5,373
py
Python
test/unicode/unicode1.py
kylebarron/MagicPython
da6fa0793e2c85d3bf7709ff1d4f65ccf468db11
[ "MIT" ]
1,482
2015-10-16T21:59:32.000Z
2022-03-30T11:44:40.000Z
test/unicode/unicode1.py
kylebarron/MagicPython
da6fa0793e2c85d3bf7709ff1d4f65ccf468db11
[ "MIT" ]
226
2015-10-15T15:53:44.000Z
2022-03-25T03:08:27.000Z
test/unicode/unicode1.py
kylebarron/MagicPython
da6fa0793e2c85d3bf7709ff1d4f65ccf468db11
[ "MIT" ]
129
2015-10-20T02:41:49.000Z
2022-03-22T01:44:36.000Z
class Üa(Êa): 'Œ\nŃ' @æaœ def ŌÏŒĘ(self, Ú=1): print('превед 你好') return Ù ÜBER = 1 你好 = lambda: 你好 def 你好(): pass class : meta.class.python, source.python, storage.type.class.python : meta.class.python, source.python Üa : entity.name.type.clas...
69.779221
187
0.685837
795a26bea992464ba89e24952a70f9220a74c645
956
py
Python
tests/vasp/test_potential.py
pmrv/pyiron
3631053231761510a2fd4b1416a93adee44fd6f7
[ "BSD-3-Clause" ]
null
null
null
tests/vasp/test_potential.py
pmrv/pyiron
3631053231761510a2fd4b1416a93adee44fd6f7
[ "BSD-3-Clause" ]
null
null
null
tests/vasp/test_potential.py
pmrv/pyiron
3631053231761510a2fd4b1416a93adee44fd6f7
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) Max-Planck-Institut für Eisenforschung GmbH - Computational Materials Design (CM) Department # Distributed under the terms of "New BSD License", see the LICENSE file. import unittest import os from pyiron.vasp.potential import get_enmax_among_species class TestPotential(unittest.TestC...
32.965517
108
0.735356
795a2722be2891e65032c147b8778d9f9e44f7ef
16,402
py
Python
cit-api/pipeline/views/proximity.py
bcgov/CIT
b9db4f169b52e9a6293b3ee1e61935888074215a
[ "Apache-2.0" ]
10
2020-11-12T15:13:40.000Z
2022-03-05T22:33:08.000Z
cit-api/pipeline/views/proximity.py
bcgov/CIT
b9db4f169b52e9a6293b3ee1e61935888074215a
[ "Apache-2.0" ]
28
2020-07-17T16:33:55.000Z
2022-03-21T16:24:25.000Z
cit-api/pipeline/views/proximity.py
bcgov/CIT
b9db4f169b52e9a6293b3ee1e61935888074215a
[ "Apache-2.0" ]
5
2020-11-02T23:39:53.000Z
2022-03-01T19:09:45.000Z
from django.http import HttpResponse from rest_framework.views import APIView from rest_framework.response import Response from rest_framework import status from django.core import serializers from django.db.models import Sum, F from django.contrib.gis.geos import Point from django.contrib.gis.db.models.functions impor...
52.909677
299
0.637178
795a27aa20a16731329d0958742511da3dc6e246
8,003
py
Python
yolo/test_yolo.py
simenvg/cloud_detection_framework
97db2eb2cf3da91aa64ae90bf404adbd4744578b
[ "MIT" ]
4
2020-06-26T06:47:26.000Z
2022-01-10T07:46:54.000Z
yolo/test_yolo.py
simenvg/cloud-detection-framework
97db2eb2cf3da91aa64ae90bf404adbd4744578b
[ "MIT" ]
null
null
null
yolo/test_yolo.py
simenvg/cloud-detection-framework
97db2eb2cf3da91aa64ae90bf404adbd4744578b
[ "MIT" ]
4
2020-05-13T08:23:48.000Z
2021-04-19T07:58:47.000Z
# Instead just add darknet.py to somewhere in your python path # OK actually that might not be a great idea, idk, work in progress # Use at your own risk. or don't, i don't care import xml.etree.ElementTree as ET import os import cv2 import sqlite3 as db import argparse import matplotlib as mpl if os.environ.get('DISP...
37.050926
121
0.628389
795a289541a01141e09be2ecd60e65071bb19c65
54,334
py
Python
numpy/linalg/tests/test_linalg.py
gogulnie/numpy
485b099cd4b82d65dc38cb2b28c7119f003c76c4
[ "BSD-3-Clause" ]
null
null
null
numpy/linalg/tests/test_linalg.py
gogulnie/numpy
485b099cd4b82d65dc38cb2b28c7119f003c76c4
[ "BSD-3-Clause" ]
null
null
null
numpy/linalg/tests/test_linalg.py
gogulnie/numpy
485b099cd4b82d65dc38cb2b28c7119f003c76c4
[ "BSD-3-Clause" ]
null
null
null
""" Test functions for linalg module """ from __future__ import division, absolute_import, print_function import os import sys import itertools import traceback import warnings import numpy as np from numpy import array, single, double, csingle, cdouble, dot, identity from numpy import multiply, atleast_2d, inf, asa...
35.628852
96
0.548717
795a294ee03f4d64f43df5c35cc5d04b965cc964
941
py
Python
launch/ros2_player_bridge.launch.py
betab0t/ros2_player_bridge
99da0581565006e6abf295ba003ba6c02d46d88b
[ "Apache-2.0" ]
null
null
null
launch/ros2_player_bridge.launch.py
betab0t/ros2_player_bridge
99da0581565006e6abf295ba003ba6c02d46d88b
[ "Apache-2.0" ]
null
null
null
launch/ros2_player_bridge.launch.py
betab0t/ros2_player_bridge
99da0581565006e6abf295ba003ba6c02d46d88b
[ "Apache-2.0" ]
null
null
null
import launch_ros.actions import launch.actions from launch import LaunchDescription from launch.substitutions import LaunchConfiguration def generate_launch_description(): return LaunchDescription([ launch.actions.DeclareLaunchArgument('player_ip', default_va...
44.809524
85
0.550478
795a2951d27cfbf4908b5ee3d20ce443fde2175e
2,695
py
Python
jdcloud_sdk/services/vm/apis/ImageTasksRequest.py
jdcloud-apigateway/jdcloud-sdk-python
0886769bcf1fb92128a065ff0f4695be099571cc
[ "Apache-2.0" ]
14
2018-04-19T09:53:56.000Z
2022-01-27T06:05:48.000Z
jdcloud_sdk/services/vm/apis/ImageTasksRequest.py
jdcloud-apigateway/jdcloud-sdk-python
0886769bcf1fb92128a065ff0f4695be099571cc
[ "Apache-2.0" ]
15
2018-09-11T05:39:54.000Z
2021-07-02T12:38:02.000Z
jdcloud_sdk/services/vm/apis/ImageTasksRequest.py
jdcloud-apigateway/jdcloud-sdk-python
0886769bcf1fb92128a065ff0f4695be099571cc
[ "Apache-2.0" ]
33
2018-04-20T05:29:16.000Z
2022-02-17T09:10:05.000Z
# coding=utf8 # Copyright 2018 JDCLOUD.COM # # 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 ...
26.421569
82
0.642301
795a2967892cc90ba2124981fef6e9ca094ab3e1
13,965
py
Python
ENV/lib/python3.6/site-packages/webob/multidict.py
captain-c00keys/pyramid-stocks
0acf3363a6a7ee61cd41b855f43c9d6f9582ae6a
[ "MIT" ]
2
2018-10-02T15:47:45.000Z
2018-10-02T15:50:55.000Z
lib/webob/multidict.py
uetopia/metagame
4f48418e5a8e691698ff347370ef1447021b9a4f
[ "Apache-2.0" ]
1
2018-08-30T21:35:33.000Z
2018-08-30T21:35:33.000Z
lib/webob/multidict.py
uetopia/metagame
4f48418e5a8e691698ff347370ef1447021b9a4f
[ "Apache-2.0" ]
1
2018-08-20T16:55:05.000Z
2018-08-20T16:55:05.000Z
# (c) 2005 Ian Bicking and contributors; written for Paste # (http://pythonpaste.org) Licensed under the MIT license: # http://www.opensource.org/licenses/mit-license.php """ Gives a multi-value dictionary object (MultiDict) plus several wrappers """ from collections import MutableMapping import binascii import warnin...
27.490157
84
0.529252
795a2a5f079bb372769da74a40fa122aa25f7ffd
289
py
Python
src/5/5054.py
youngdaLee/Baekjoon
7d858d557dbbde6603fe4e8af2891c2b0e1940c0
[ "MIT" ]
11
2020-09-20T15:17:11.000Z
2022-03-17T12:43:33.000Z
src/5/5054.py
youngdaLee/Baekjoon
7d858d557dbbde6603fe4e8af2891c2b0e1940c0
[ "MIT" ]
3
2021-10-30T07:51:36.000Z
2022-03-09T05:19:23.000Z
src/5/5054.py
youngdaLee/Baekjoon
7d858d557dbbde6603fe4e8af2891c2b0e1940c0
[ "MIT" ]
13
2021-01-21T03:19:08.000Z
2022-03-28T10:44:58.000Z
""" 5054. 주차의 신 작성자: xCrypt0r 언어: Python 3 사용 메모리: 29,380 KB 소요 시간: 76 ms 해결 날짜: 2020년 9월 16일 """ def main(): for _ in range(int(input())): input() pos = sorted(map(int, input().split())) print((pos[-1] - pos[0]) * 2) if __name__ == '__main__': main()
13.761905
47
0.532872
795a2aee5bbb8ddc20920d889d1442a10aa91852
5,522
py
Python
examples/reID/caffe/modelscripts/generate_vgg16.py
yuqj1990/deepano_train
c7247801ccea4c3a5c0be9c9091fc91876dbf279
[ "Unlicense" ]
21
2019-11-28T06:11:17.000Z
2020-06-15T00:45:46.000Z
examples/reID/caffe/modelscripts/generate_vgg16.py
yuqj1990/deepano_train
c7247801ccea4c3a5c0be9c9091fc91876dbf279
[ "Unlicense" ]
12
2019-11-20T01:38:28.000Z
2020-06-30T06:29:40.000Z
examples/reID/caffe/modelscripts/generate_vgg16.py
yuqj1990/deepano_face_train
c7247801ccea4c3a5c0be9c9091fc91876dbf279
[ "Unlicense" ]
10
2019-11-26T00:50:06.000Z
2020-06-20T05:43:45.000Z
import _init_paths import os import os.path as osp import caffe from caffe import layers as L, params as P from caffe import tools from caffe.model_libs import * def vgg16_body(net, data, post, is_train): # the net itself #param = [dict(lr_mult=0.5,decay_mult=1), dict(lr_mult=1,decay_mult=0)] param = None nuni...
43.825397
116
0.660811
795a2c0c8e419372650770606437e1a445aa6041
21
py
Python
chemisova-helloworld.py
masha719/lab6
4928d682ee10184c163730341a8f168714f8d6a5
[ "MIT" ]
null
null
null
chemisova-helloworld.py
masha719/lab6
4928d682ee10184c163730341a8f168714f8d6a5
[ "MIT" ]
null
null
null
chemisova-helloworld.py
masha719/lab6
4928d682ee10184c163730341a8f168714f8d6a5
[ "MIT" ]
null
null
null
print('Helllo world')
21
21
0.761905
795a2cea537a2cb1d91c2a5dfad32ef4687b818b
9,895
py
Python
open_spiel/python/algorithms/psro_variations/nash_solver/general_nash_solver.py
wyz2368/open_spiel_egta
6bcb3d4d863e7d89283029dd860412c3ef1731dd
[ "Apache-2.0" ]
null
null
null
open_spiel/python/algorithms/psro_variations/nash_solver/general_nash_solver.py
wyz2368/open_spiel_egta
6bcb3d4d863e7d89283029dd860412c3ef1731dd
[ "Apache-2.0" ]
null
null
null
open_spiel/python/algorithms/psro_variations/nash_solver/general_nash_solver.py
wyz2368/open_spiel_egta
6bcb3d4d863e7d89283029dd860412c3ef1731dd
[ "Apache-2.0" ]
1
2020-12-25T03:02:31.000Z
2020-12-25T03:02:31.000Z
# Copyright 2019 DeepMind Technologies Ltd. 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 appl...
37.059925
115
0.637393
795a2cee0ed333971b4806b53c079eb59e4f77e0
689
py
Python
dql_course/exercises/random_policy.py
ecly/ai_experiments
94b5b063345761cd1668132610ddc59749b84a47
[ "MIT" ]
null
null
null
dql_course/exercises/random_policy.py
ecly/ai_experiments
94b5b063345761cd1668132610ddc59749b84a47
[ "MIT" ]
null
null
null
dql_course/exercises/random_policy.py
ecly/ai_experiments
94b5b063345761cd1668132610ddc59749b84a47
[ "MIT" ]
null
null
null
import gym import numpy as np import matplotlib.pyplot as plt def main(): env = gym.make("FrozenLake-v1") env.reset() running_win_perc = [] scores = [] for i in range(1000): score = 0 while True: action = env.action_space.sample() _observation, reward, done, ...
22.225806
64
0.561684
795a2dee9e98c86c435ec0756a648e904229572f
1,409
py
Python
blog/middleware.py
sunguotao/DjangoMysqlBlog
136a21007475a302a62341ac6b9ab3fbb1bfafb9
[ "MIT" ]
null
null
null
blog/middleware.py
sunguotao/DjangoMysqlBlog
136a21007475a302a62341ac6b9ab3fbb1bfafb9
[ "MIT" ]
11
2020-02-11T23:51:47.000Z
2022-03-11T23:17:21.000Z
blog/middleware.py
sunguotao/DjangoMysqlBlog
136a21007475a302a62341ac6b9ab3fbb1bfafb9
[ "MIT" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 """ @version: ?? @author: systemsgt.cn @license: MIT Licence @contact: 18653076096@163.com @site: http://www.systemsgt.cn @software: PyCharm @file: middleware.py @time: 2017/1/19 上午12:36 """ import time from ipware.ip import get_real_ip from DjangoBlog.utils import cache cla...
27.096154
104
0.634493
795a2e632f18ca66cac6fd171d99e3881f86321f
10,453
py
Python
samples_to_sprite.py
skratchdot/media-tools
bca0c683fb637aeefda1c49454a118f809047d97
[ "MIT" ]
null
null
null
samples_to_sprite.py
skratchdot/media-tools
bca0c683fb637aeefda1c49454a118f809047d97
[ "MIT" ]
null
null
null
samples_to_sprite.py
skratchdot/media-tools
bca0c683fb637aeefda1c49454a118f809047d97
[ "MIT" ]
1
2021-05-25T08:11:10.000Z
2021-05-25T08:11:10.000Z
# -*- coding: utf-8 -*- import argparse import math import numpy as np import os from PIL import Image from pprint import pprint import sys from lib.audio_mixer import * from lib.audio_utils import * from lib.clip import * from lib.collection_utils import * from lib.color_utils import * from lib.composition_utils imp...
40.992157
173
0.671195