hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
21a3ea69c1fee7e2bd3224fc40ed70f4f398d19b
1,672
py
Python
muzero/games/defaults.py
expz/muzero-general
1333a4faba59527588005abe28211d8e8dadc872
[ "MIT" ]
null
null
null
muzero/games/defaults.py
expz/muzero-general
1333a4faba59527588005abe28211d8e8dadc872
[ "MIT" ]
null
null
null
muzero/games/defaults.py
expz/muzero-general
1333a4faba59527588005abe28211d8e8dadc872
[ "MIT" ]
null
null
null
import copy import datetime import os import tensorflow as tf class MuZeroConfig: pass DEFAULT_CONFIG = { 'seed': 0, # Seed for numpy, tensorflow and the game 'save_model': True, # Save the checkpoint in results_path as model.checkpoint 'train_on_gpu': True if len(tf.config.experimental.list_phys...
34.833333
169
0.705144
21a3f5587c3a41d6e9c3eeba360c89440045d234
4,301
py
Python
tools/chrome_proxy/common/chrome_proxy_measurements.py
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2019-01-28T08:09:58.000Z
2021-11-15T15:32:10.000Z
tools/chrome_proxy/common/chrome_proxy_measurements.py
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
null
null
null
tools/chrome_proxy/common/chrome_proxy_measurements.py
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
6
2020-09-23T08:56:12.000Z
2021-11-18T03:40:49.000Z
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import base64 import logging from common import chrome_proxy_metrics as metrics from telemetry.core import exceptions from telemetry.page import page_test ...
36.449153
80
0.712392
21a406c7b0df037d605a7dd392c18d2a12e7b496
3,327
py
Python
test/test_logo_client.py
nikteliy/python-snap7
6f8bcb15ad2494fd95880171b974b001d33a5111
[ "MIT" ]
412
2015-02-25T11:07:09.000Z
2022-03-28T10:03:09.000Z
test/test_logo_client.py
nikteliy/python-snap7
6f8bcb15ad2494fd95880171b974b001d33a5111
[ "MIT" ]
240
2015-02-24T18:10:13.000Z
2022-03-22T11:10:09.000Z
test/test_logo_client.py
nikteliy/python-snap7
6f8bcb15ad2494fd95880171b974b001d33a5111
[ "MIT" ]
238
2015-02-24T16:12:32.000Z
2022-03-30T08:50:29.000Z
import logging import time import unittest from multiprocessing import Process import snap7 from snap7.server import mainloop logging.basicConfig(level=logging.WARNING) ip = '127.0.0.1' tcpport = 1102 db_number = 1 rack = 0x1000 slot = 0x2000 class TestLogoClient(unittest.TestCase): process = None @class...
27.957983
99
0.599339
21a41bbb6f76f044384589d9266d5a7a8bf65ae5
304
py
Python
my_exp.py
marinimau/elliot
090e11bb8e50af4ee555bab0f6d4ea702373d9f1
[ "Apache-2.0" ]
null
null
null
my_exp.py
marinimau/elliot
090e11bb8e50af4ee555bab0f6d4ea702373d9f1
[ "Apache-2.0" ]
null
null
null
my_exp.py
marinimau/elliot
090e11bb8e50af4ee555bab0f6d4ea702373d9f1
[ "Apache-2.0" ]
null
null
null
# # elliot copyright © 2021 - all rights reserved # Created at: 29/11/21 # By: mauromarini # License: MIT # Repository: https://github.com/marinimau/elliot # Credits: @marinimau (https://github.com/marinimau) # from elliot.run import run_experiment run_experiment("config_files/my_exp.yml")
25.333333
54
0.723684
21a4217c95821d33323b12b2859175297789875e
2,073
py
Python
alipay/aop/api/domain/AlipayIserviceIssalarySettledataCreateModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayIserviceIssalarySettledataCreateModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayIserviceIssalarySettledataCreateModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.SettleDataDetail import SettleDataDetail class AlipayIserviceIssalarySettledataCreateModel(object): def __init__(self): self._data_date = None self._settle_da...
30.485294
82
0.590931
21a4470ddd91dbdfcd8b6bec229f60c5dbf7edf0
8,297
py
Python
neuralmonkey/runners/tensor_runner.py
Simon-Will/neuralmonkey
b686a9d302cb10eda5fca991e1d7ee6b9e84b75a
[ "BSD-3-Clause" ]
null
null
null
neuralmonkey/runners/tensor_runner.py
Simon-Will/neuralmonkey
b686a9d302cb10eda5fca991e1d7ee6b9e84b75a
[ "BSD-3-Clause" ]
null
null
null
neuralmonkey/runners/tensor_runner.py
Simon-Will/neuralmonkey
b686a9d302cb10eda5fca991e1d7ee6b9e84b75a
[ "BSD-3-Clause" ]
null
null
null
from typing import Dict, List, Set, Optional import numpy as np import tensorflow as tf from typeguard import check_argument_types from neuralmonkey.logging import log, warn from neuralmonkey.model.model_part import ModelPart from neuralmonkey.runners.base_runner import ( BaseRunner, Executable, ExecutionResult, ...
39.509524
79
0.61239
21a45d9ee1f20b66a68fe25e82359d387883ef21
22,450
py
Python
SCRAPE/Lib/site-packages/pandas/tests/frame/methods/test_fillna.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
1
2022-03-17T12:56:14.000Z
2022-03-17T12:56:14.000Z
SCRAPE/Lib/site-packages/pandas/tests/frame/methods/test_fillna.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
5
2022-02-13T14:38:04.000Z
2022-02-15T00:13:07.000Z
SCRAPE/Lib/site-packages/pandas/tests/frame/methods/test_fillna.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
4
2022-02-04T22:58:27.000Z
2022-02-14T19:29:18.000Z
import numpy as np import pytest from pandas import ( Categorical, DataFrame, DatetimeIndex, NaT, PeriodIndex, Series, TimedeltaIndex, Timestamp, date_range, ) import pandas._testing as tm from pandas.tests.frame.common import _check_mixed_float class TestFillNA: def test_fill...
34.222561
87
0.53314
21a46904663745b54de3732d6ef085d97ad768e5
1,246
py
Python
src/bin/hooks/connection_manager.py
ddamerell53/ChemiRegV2
906fa4674bfda0088b86b3bcdde0e000510c79e0
[ "CC0-1.0" ]
null
null
null
src/bin/hooks/connection_manager.py
ddamerell53/ChemiRegV2
906fa4674bfda0088b86b3bcdde0e000510c79e0
[ "CC0-1.0" ]
null
null
null
src/bin/hooks/connection_manager.py
ddamerell53/ChemiRegV2
906fa4674bfda0088b86b3bcdde0e000510c79e0
[ "CC0-1.0" ]
null
null
null
# ChemiReg - web-based compound registration platform # Written in 2017 by David Damerell <david.damerell@sgc.ox.ac.uk>, Brian Marsden <brian.marsden@sgc.ox.ac.uk> # # To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain w...
40.193548
213
0.682183
21a47fe336ad47dc1f52c35781454c92a4f5e3bb
26,775
py
Python
related work/train.py
dx199771/ACMMM2021
81f12d5ba319fe6247611f2666c4e49f964fec16
[ "MIT" ]
2
2021-05-31T22:21:18.000Z
2021-07-22T08:31:58.000Z
related work/train.py
dx199771/ACMMM2021
81f12d5ba319fe6247611f2666c4e49f964fec16
[ "MIT" ]
2
2022-03-05T17:59:29.000Z
2022-03-29T03:48:10.000Z
related work/train.py
dx199771/ACMMM2021
81f12d5ba319fe6247611f2666c4e49f964fec16
[ "MIT" ]
2
2021-06-02T10:53:43.000Z
2022-02-24T12:20:49.000Z
import argparse import math import os import random import time from pathlib import Path import numpy as np import torch.distributed as dist import torch.nn.functional as F import torch.optim as optim import torch.optim.lr_scheduler as lr_scheduler import torch.utils.data import yaml from torch.cuda import amp from to...
51.391555
133
0.570644
21a485190cf52a0afcd7a1c83843bdd0599dd19e
13,253
py
Python
evaluation/regression_tests.py
MIT-SPARK/spark_vio_evaluation
8f747065f8a76c5628d5402eba90fd79ee438e58
[ "MIT" ]
15
2020-02-20T09:12:36.000Z
2022-03-31T23:52:00.000Z
evaluation/regression_tests.py
MIT-SPARK/spark_vio_evaluation
8f747065f8a76c5628d5402eba90fd79ee438e58
[ "MIT" ]
17
2020-02-20T22:01:27.000Z
2021-04-27T14:17:43.000Z
evaluation/regression_tests.py
ToniRV/spark_vio_evaluation
9c6826e150f25c2696fe4013537982eca68310e5
[ "MIT" ]
6
2019-09-21T20:57:35.000Z
2021-01-11T15:40:53.000Z
#!/usr/bin/env python from __future__ import print_function import os import yaml import glog as log from shutil import rmtree, copytree, copy2 from tqdm import tqdm from evaluation.tools.filesystem_utils import ensure_dir from evaluation.tools.plotter import draw_regression_simple_boxplot_APE from evaluation.tools.u...
49.267658
142
0.648231
21a4ae0b4df2c27dad87cc1f49cda20183e58a6c
1,087
py
Python
scout/management/commands/run_pinger.py
theteam/django-scout
75d6b708d4c65cca05e8f1678df40543f6e81b0d
[ "BSD-3-Clause" ]
null
null
null
scout/management/commands/run_pinger.py
theteam/django-scout
75d6b708d4c65cca05e8f1678df40543f6e81b0d
[ "BSD-3-Clause" ]
null
null
null
scout/management/commands/run_pinger.py
theteam/django-scout
75d6b708d4c65cca05e8f1678df40543f6e81b0d
[ "BSD-3-Clause" ]
1
2022-03-20T04:22:41.000Z
2022-03-20T04:22:41.000Z
from optparse import make_option from django.core.management.base import BaseCommand from lockfile import FileLock, AlreadyLocked, LockTimeout from scout.engine import PingRunner from scout.logger import log LOCK_WAIT_TIMEOUT = -1 class Command(BaseCommand): """ A management command to run the pinger. "...
25.880952
67
0.609936
21a4ba99be9153a018912b1a474ba8ffaf1a3241
704
py
Python
app/routes/schema.py
ons-eq-team/eq-questionnaire-runner
8d029097faa2b9d53d9621064243620db60c62c7
[ "MIT" ]
null
null
null
app/routes/schema.py
ons-eq-team/eq-questionnaire-runner
8d029097faa2b9d53d9621064243620db60c62c7
[ "MIT" ]
null
null
null
app/routes/schema.py
ons-eq-team/eq-questionnaire-runner
8d029097faa2b9d53d9621064243620db60c62c7
[ "MIT" ]
null
null
null
from flask import Blueprint, jsonify from app.utilities.schema import ( load_schema_from_name, get_schema_path_map_for_language, DEFAULT_LANGUAGE_CODE, ) schema_blueprint = Blueprint("schema", __name__) @schema_blueprint.route("/schemas/<schema_name>", methods=["GET"]) def get_schema_json_from_name(schem...
28.16
80
0.757102
21a50d29ced154160d57d55338075789bed3f11e
3,726
py
Python
server/test/resources/test_execution_play.py
simon-dube/CARMIN-server
1481d2c4231458d33119c57ab2e3e480375da63b
[ "MIT" ]
1
2018-03-12T23:08:12.000Z
2018-03-12T23:08:12.000Z
server/test/resources/test_execution_play.py
simon-dube/CARMIN-server
1481d2c4231458d33119c57ab2e3e480375da63b
[ "MIT" ]
15
2018-03-15T04:23:31.000Z
2018-06-28T21:46:15.000Z
server/test/resources/test_execution_play.py
simon-dube/CARMIN-server
1481d2c4231458d33119c57ab2e3e480375da63b
[ "MIT" ]
null
null
null
import json import copy import os import pytest from server import app from server.test.fakedata.users import standard_user from server.test.utils import load_json_data, error_from_response from server.test.conftest import test_client, session from server.resources.models.execution import ExecutionSchema from server.te...
39.221053
76
0.720075
21a5364e2b9dad643d3201cb221b030bb8ef6b0d
349
py
Python
tasty_alpha/trade.py
jzajpt/tasty_alpha
2f4969bc5b29a4d4ea19d8e11cc37ecbcff782c3
[ "MIT" ]
1
2020-10-19T08:07:26.000Z
2020-10-19T08:07:26.000Z
tasty_alpha/trade.py
jzajpt/tasty_alpha
2f4969bc5b29a4d4ea19d8e11cc37ecbcff782c3
[ "MIT" ]
null
null
null
tasty_alpha/trade.py
jzajpt/tasty_alpha
2f4969bc5b29a4d4ea19d8e11cc37ecbcff782c3
[ "MIT" ]
1
2022-02-13T07:58:03.000Z
2022-02-13T07:58:03.000Z
from dataclasses import dataclass @dataclass class Trade: """ Represents a trade that has occured on a market. Attributes: timestamp (int) amount (float) price (float) """ timestamp: int amount: float price: float @property def dollar_value(self) -> float: retu...
16.619048
52
0.633238
21a53eaa30a077bb4903d7550273594ded904f18
1,853
py
Python
tests/test_model_state.py
clockworksspheres/eisenban
9a61e45a43c57207bded5d1ad69dd9dabb2167e3
[ "Unlicense" ]
null
null
null
tests/test_model_state.py
clockworksspheres/eisenban
9a61e45a43c57207bded5d1ad69dd9dabb2167e3
[ "Unlicense" ]
null
null
null
tests/test_model_state.py
clockworksspheres/eisenban
9a61e45a43c57207bded5d1ad69dd9dabb2167e3
[ "Unlicense" ]
null
null
null
#!/usr/bin/env -S python -u """ Template for tests """ #--- Native python libraries import re import os import sys import time import unittest import tempfile import ctypes as C from datetime import datetime ##### # Include the parent project directory in the PYTHONPATH appendDir = "/".join(os.path.abspath(os.path.d...
20.820225
83
0.428494
21a5506eb78b1e83ce792cdcd586f987c0dad953
1,156
py
Python
packages/fetchai/protocols/default/__init__.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
packages/fetchai/protocols/default/__init__.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
packages/fetchai/protocols/default/__init__.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2022 fetchai # # 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 # #...
37.290323
97
0.651384
21a5685e13ef67b9ccf0f611827553d97f4ab68e
4,046
py
Python
alipay/aop/api/request/AlipayBossFncGfacceptanceAccountingAcceptRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/request/AlipayBossFncGfacceptanceAccountingAcceptRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/request/AlipayBossFncGfacceptanceAccountingAcceptRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayBossFncGfacceptanceAccountingAcceptModel import AlipayBossFncGfacceptanceAccountingAcceptModel class AlipayBossFncGfacceptance...
27.903448
148
0.651013
21a578b1afb58c9eb1fe9a29ba7d0512f830d533
5,216
py
Python
src/fortrace/utility/winmessagepipe.py
dasec/ForTrace
b8187522a2c83fb661e5a1a5f403da8f40a31ead
[ "MIT" ]
1
2022-03-31T14:01:51.000Z
2022-03-31T14:01:51.000Z
src/fortrace/utility/winmessagepipe.py
dasec/ForTrace
b8187522a2c83fb661e5a1a5f403da8f40a31ead
[ "MIT" ]
null
null
null
src/fortrace/utility/winmessagepipe.py
dasec/ForTrace
b8187522a2c83fb661e5a1a5f403da8f40a31ead
[ "MIT" ]
1
2022-03-31T14:02:30.000Z
2022-03-31T14:02:30.000Z
from __future__ import absolute_import import platform if platform.system() == "Windows": import win32pipe import win32file import win32api import ntsecuritycon import pywintypes import time else: raise RuntimeError("This module is ony supported on Windows!") DEFAULT_PIPE_PREFIX = "\\\\.\\p...
38.072993
135
0.512845
21a5970ed5d2ade6bcfbaf3d2cd0e790dbfeeac8
1,662
py
Python
LightWork/routes.py
albertzhu3/LightWork
03b6bab4c6202258fe12063b20217879b069b74b
[ "MIT" ]
1
2022-03-14T12:58:54.000Z
2022-03-14T12:58:54.000Z
LightWork/routes.py
albertzhu3/LightWork
03b6bab4c6202258fe12063b20217879b069b74b
[ "MIT" ]
null
null
null
LightWork/routes.py
albertzhu3/LightWork
03b6bab4c6202258fe12063b20217879b069b74b
[ "MIT" ]
null
null
null
from flask import render_template, request, redirect, flash from LightWork.Workout import returnWorkout from LightWork import app, data # Homepage @app.route("/") def index(): return render_template("index.html") # About page @app.route("/getWorkout", methods=["GET", "POST"]) def getWorkout(): # H...
22.767123
77
0.638387
21a5bca1717ca15b4bd38a52e306faa0743a0a16
22
py
Python
brilws/_version.py
xiezhen/brilws
e3652dd4506dff9d713184ff623b59bc11fbe2c7
[ "MIT" ]
1
2017-03-23T16:26:06.000Z
2017-03-23T16:26:06.000Z
brilws/_version.py
xiezhen/brilws
e3652dd4506dff9d713184ff623b59bc11fbe2c7
[ "MIT" ]
1
2017-03-24T15:02:20.000Z
2017-10-02T13:43:26.000Z
brilws/_version.py
xiezhen/brilws
e3652dd4506dff9d713184ff623b59bc11fbe2c7
[ "MIT" ]
1
2019-12-06T09:23:01.000Z
2019-12-06T09:23:01.000Z
__version__ = "3.6.6"
11
21
0.636364
21a5d35bda8c1222211de2979f88964dc4f4ed49
6,590
py
Python
test/client/test_request_upload.py
autopi-io/py-udsoncan
2351ee02bf4a70e5661d6fd5f48f58db740f244e
[ "MIT" ]
1
2021-03-21T12:18:23.000Z
2021-03-21T12:18:23.000Z
test/client/test_request_upload.py
autopi-io/py-udsoncan
2351ee02bf4a70e5661d6fd5f48f58db740f244e
[ "MIT" ]
null
null
null
test/client/test_request_upload.py
autopi-io/py-udsoncan
2351ee02bf4a70e5661d6fd5f48f58db740f244e
[ "MIT" ]
null
null
null
from __future__ import with_statement from __future__ import absolute_import from udsoncan.client import Client from udsoncan import services, MemoryLocation, DataFormatIdentifier from udsoncan.exceptions import * from test.ClientServerTest import ClientServerTest class TestRequestUpload(ClientServerTest): def __...
51.889764
108
0.752504
21a60a3dbd1c30e8ae43cbdc38b509b7cd7aeb4f
750
py
Python
cmp_file.py
Aesonus/TkLife
8e8f585be7f522134b9a5746b22185c2394d3d8d
[ "MIT" ]
null
null
null
cmp_file.py
Aesonus/TkLife
8e8f585be7f522134b9a5746b22185c2394d3d8d
[ "MIT" ]
4
2021-05-02T17:33:19.000Z
2021-05-16T18:53:51.000Z
cmp_file.py
Aesonus/TkLife
8e8f585be7f522134b9a5746b22185c2394d3d8d
[ "MIT" ]
null
null
null
"""Get lines that are the same between files""" import argparse parser = argparse.ArgumentParser() parser.add_argument('file1') parser.add_argument('file2') args = parser.parse_args() def cmpr(element): return element[0:element.find('=')].strip() with open(args.file1, mode='rt') as file1: with open(args.fi...
26.785714
91
0.677333
21a61d1ce53bc15683f7a41703d4de8e4f8f0832
15,097
py
Python
ascmhl/hashlist_xml_parser.py
ascmitc/mhl
f7671941d0ef12d05a5043fb45f621e7ad2c3981
[ "MIT" ]
28
2019-10-07T18:59:29.000Z
2022-03-19T23:05:04.000Z
ascmhl/hashlist_xml_parser.py
ascmitc/mhl
f7671941d0ef12d05a5043fb45f621e7ad2c3981
[ "MIT" ]
93
2019-08-14T18:02:39.000Z
2022-03-18T19:34:57.000Z
ascmhl/hashlist_xml_parser.py
ascmitc/mhl
f7671941d0ef12d05a5043fb45f621e7ad2c3981
[ "MIT" ]
8
2020-11-04T14:33:42.000Z
2022-02-15T04:19:25.000Z
""" __author__ = "Alexander Sahm" __copyright__ = "Copyright 2020, Pomfort GmbH" __license__ = "MIT" __maintainer__ = "Patrick Renner, Alexander Sahm" __email__ = "opensource@pomfort.com" """ import os import textwrap from timeit import default_timer as timer import dateutil.parser from lxml import etree from lxml.bu...
41.936111
117
0.64271
21a6206de6d6f8a572a9bde12c7dfdd61580bcd8
16,085
py
Python
pygsheets/datarange.py
mqzhang/pygsheets
9d1e18046b01e19326983fc648bfd16a97bd7545
[ "MIT" ]
1
2021-01-28T16:45:40.000Z
2021-01-28T16:45:40.000Z
pygsheets/datarange.py
mqzhang/pygsheets
9d1e18046b01e19326983fc648bfd16a97bd7545
[ "MIT" ]
null
null
null
pygsheets/datarange.py
mqzhang/pygsheets
9d1e18046b01e19326983fc648bfd16a97bd7545
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*-. """ pygsheets.datarange ~~~~~~~~~~~~~~~~~~~ This module contains DataRange class for storing/manipulating a range of data in spreadsheet. This class can be used for group operations, e.g. changing format of all cells in a given range. This can also represent named ranges protected ranges, ban...
37.147806
189
0.600622
21a62a7368850cacd801389f26851957871033b1
6,474
py
Python
rls/algorithms/single/maxsqn.py
StepNeverStop/RLs
25cc97c96cbb19fe859c9387b7547cbada2c89f2
[ "Apache-2.0" ]
371
2019-04-26T00:37:33.000Z
2022-03-31T07:33:12.000Z
rls/algorithms/single/maxsqn.py
BlueFisher/RLs
25cc97c96cbb19fe859c9387b7547cbada2c89f2
[ "Apache-2.0" ]
47
2019-07-21T11:51:57.000Z
2021-08-31T08:45:22.000Z
rls/algorithms/single/maxsqn.py
BlueFisher/RLs
25cc97c96cbb19fe859c9387b7547cbada2c89f2
[ "Apache-2.0" ]
102
2019-06-29T13:11:15.000Z
2022-03-28T13:51:04.000Z
#!/usr/bin/env python3 # encoding: utf-8 from copy import deepcopy import numpy as np import torch as th import torch.distributions as td from rls.algorithms.base.sarl_off_policy import SarlOffPolicy from rls.common.data import Data from rls.common.decorator import iton from rls.nn.models import CriticQv...
44.648276
114
0.549583
21a64bfc8e23c8382becf87e49077072cab7462c
5,872
py
Python
ceciestunepipe/util/sglxexp.py
zekearneodo/ceciestunepipe
7e771783769816f37de44077177152175aecc2b7
[ "MIT" ]
null
null
null
ceciestunepipe/util/sglxexp.py
zekearneodo/ceciestunepipe
7e771783769816f37de44077177152175aecc2b7
[ "MIT" ]
null
null
null
ceciestunepipe/util/sglxexp.py
zekearneodo/ceciestunepipe
7e771783769816f37de44077177152175aecc2b7
[ "MIT" ]
null
null
null
# functions to go through spikeglx experiments using spikeinterface # read metada, concatenate, align and sort import os import sys import glob import logging import datetime import shutil import numpy as np import pandas as pd import warnings import contextlib import multiprocessing import pickle #from intan2kwik.cor...
33.554286
121
0.680177
21a68b99f50698aebc606759c73aea62bd46322d
4,046
py
Python
alipay/aop/api/request/AlipayDataAiserviceCloudbusMetrotimeQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/request/AlipayDataAiserviceCloudbusMetrotimeQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/request/AlipayDataAiserviceCloudbusMetrotimeQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayDataAiserviceCloudbusMetrotimeQueryModel import AlipayDataAiserviceCloudbusMetrotimeQueryModel class AlipayDataAiserviceCloudb...
27.903448
148
0.651013
21a6ae1881bf6e62a189327a79a4c8337dc4f815
7,760
py
Python
signalflowcli/live.py
theletterf/signalflow-cli
f1fd89988ca8ceb35b2ccc205287808eb023551a
[ "Apache-2.0" ]
13
2016-06-28T17:32:39.000Z
2022-02-28T22:16:49.000Z
signalflowcli/live.py
theletterf/signalflow-cli
f1fd89988ca8ceb35b2ccc205287808eb023551a
[ "Apache-2.0" ]
6
2016-11-02T15:00:52.000Z
2019-04-26T18:40:32.000Z
signalflowcli/live.py
theletterf/signalflow-cli
f1fd89988ca8ceb35b2ccc205287808eb023551a
[ "Apache-2.0" ]
15
2016-11-02T14:46:19.000Z
2022-02-10T13:35:18.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (C) 2016-2018 SignalFx, Inc. All Rights Reserved. from __future__ import print_function from ansicolor import green, red, white import json import tslib from signalfx import signalflow import six from . import utils class LiveOutputDisplay(object): _D...
37.487923
79
0.563918
21a6d72f332b43e03b3567f2926c797f890cd020
653
py
Python
components/amp-utility/python/GPIO.py
ekmixon/AliOS-Things
00334295af8aa474d818724149726ca93da4645d
[ "Apache-2.0" ]
4,538
2017-10-20T05:19:03.000Z
2022-03-30T02:29:30.000Z
components/amp-utility/python/GPIO.py
ekmixon/AliOS-Things
00334295af8aa474d818724149726ca93da4645d
[ "Apache-2.0" ]
1,088
2017-10-21T07:57:22.000Z
2022-03-31T08:15:49.000Z
components/amp-utility/python/GPIO.py
willianchanlovegithub/AliOS-Things
637c0802cab667b872d3b97a121e18c66f256eab
[ "Apache-2.0" ]
1,860
2017-10-20T05:22:35.000Z
2022-03-27T10:54:14.000Z
# * coding: UTF8 * """ ================================================================================================= """ def open(type): """ 打开并根据board.json配置实例 :param type: 对象类型 :returns: 0: 成功,其他: 失败 :raises OSError: EINVAL """ pass def write(value): """ 设置GPIO电平值,GPIO引脚为输出模式时可用 ...
13.604167
97
0.467075
21a6e527d620afb9457605b269107e279d73becd
26,615
py
Python
src/sage/repl/interpreter.py
saraedum/sage-renamed
d2da67b14da2ad766a5906425d60d43a3b3e1270
[ "BSL-1.0" ]
1
2016-11-04T16:31:48.000Z
2016-11-04T16:31:48.000Z
src/sage/repl/interpreter.py
rwst/sage
a9d274b9338e6ee24bf35ea8d25875507e51e455
[ "BSL-1.0" ]
null
null
null
src/sage/repl/interpreter.py
rwst/sage
a9d274b9338e6ee24bf35ea8d25875507e51e455
[ "BSL-1.0" ]
null
null
null
r""" Sage's IPython Modifications This module contains all of Sage's customizations to the IPython interpreter. These changes consist of the following major components: - :class:`SageTerminalApp` - :class:`SageInteractiveShell` - :class:`SageTerminalInteractiveShell` - :func:`interface_shell_embed` SageTerm...
34.79085
179
0.62446
21a70d45f0c4bd60befb88da3c58847c05942786
2,359
py
Python
src/encoded/tests/test_upgrade_award.py
aperritano/encoded
c03f6799a2155377321877bf12c079c50b0e08ce
[ "MIT" ]
null
null
null
src/encoded/tests/test_upgrade_award.py
aperritano/encoded
c03f6799a2155377321877bf12c079c50b0e08ce
[ "MIT" ]
1
2018-12-14T18:00:30.000Z
2018-12-14T18:00:30.000Z
src/encoded/tests/test_upgrade_award.py
aperritano/encoded
c03f6799a2155377321877bf12c079c50b0e08ce
[ "MIT" ]
null
null
null
import pytest from unittest import TestCase @pytest.fixture def award(): return{ 'name': 'ENCODE2', } @pytest.fixture def award_1(award): item = award.copy() item.update({ 'schema_version': '1', 'rfa': "ENCODE2" }) return item def test_award_upgrade(upgrader, award_1...
25.641304
72
0.627384
21a728f6ed9821f29c71263da6f219db9b44611b
12,949
py
Python
FacialLandmarkDetection.py
matejcrnac/Face_deidentification_kazemi
434fff49b5a7b555bb3c56a62915fd502e0b75f9
[ "MIT" ]
1
2019-03-27T10:30:54.000Z
2019-03-27T10:30:54.000Z
FacialLandmarkDetection.py
matejcrnac/Face_deidentification_kazemi
434fff49b5a7b555bb3c56a62915fd502e0b75f9
[ "MIT" ]
null
null
null
FacialLandmarkDetection.py
matejcrnac/Face_deidentification_kazemi
434fff49b5a7b555bb3c56a62915fd502e0b75f9
[ "MIT" ]
null
null
null
import dlib import cv2 import numpy class FacialLandmarkDetector: def __init__(self, image_path): self.image_path = image_path self.img = cv2.imread(self.image_path, cv2.IMREAD_COLOR) self.dets = None self.shape = None #Detects frontal face on image #Returns dlib.rectangle...
41.636656
127
0.595876
21a72ae4a0b0016f8e56a03bfede91772a697b11
2,582
py
Python
yggdrasil/metaschema/properties/tests/test_ArgsMetaschemaProperty.py
Xyzic/yggdrasil
44369514ffdf01960bfcce418c172dc6dc564051
[ "BSD-3-Clause" ]
null
null
null
yggdrasil/metaschema/properties/tests/test_ArgsMetaschemaProperty.py
Xyzic/yggdrasil
44369514ffdf01960bfcce418c172dc6dc564051
[ "BSD-3-Clause" ]
null
null
null
yggdrasil/metaschema/properties/tests/test_ArgsMetaschemaProperty.py
Xyzic/yggdrasil
44369514ffdf01960bfcce418c172dc6dc564051
[ "BSD-3-Clause" ]
null
null
null
import weakref from yggdrasil.metaschema.properties.tests import ( test_MetaschemaProperty as parent) class Dummy(object): # pragma: debug pass class ValidArgsClass1(object): test_args = tuple([int(0), Dummy]) test_kwargs = dict(c=int(1), d=Dummy) valid_args = [{'type': 'int'}, {'type': 'class'...
31.108434
73
0.630132
21a72d12d4985149a2417b72f5834905ea33bc5e
710
py
Python
forthic/tokens.py
absheik/forthic
1d481f8a4c0c1cc7250eb5886bed43dfb4f201c0
[ "BSD-2-Clause" ]
6
2021-08-18T19:14:09.000Z
2022-02-20T05:43:46.000Z
forthic/tokens.py
absheik/forthic
1d481f8a4c0c1cc7250eb5886bed43dfb4f201c0
[ "BSD-2-Clause" ]
1
2021-11-25T05:08:28.000Z
2021-12-01T15:41:21.000Z
forthic/tokens.py
absheik/forthic
1d481f8a4c0c1cc7250eb5886bed43dfb4f201c0
[ "BSD-2-Clause" ]
1
2021-11-25T05:03:53.000Z
2021-11-25T05:03:53.000Z
class Token: pass class StringToken(Token): def __init__(self, string: str): self.string: str = string class CommentToken(Token): def __init__(self, string: str): self.string: str = string class StartArrayToken(Token): pass class EndArrayToken(Token): pass class StartModule...
14.791667
36
0.657746
21a741dd049eb8ecb2dddf81e5df68229b7d9d66
6,110
py
Python
database_routines.py
austimbo/Touch_Demo
09b7915dbdbc9dc57d458ac285ce928f07ca0bc8
[ "Beerware" ]
null
null
null
database_routines.py
austimbo/Touch_Demo
09b7915dbdbc9dc57d458ac285ce928f07ca0bc8
[ "Beerware" ]
null
null
null
database_routines.py
austimbo/Touch_Demo
09b7915dbdbc9dc57d458ac285ce928f07ca0bc8
[ "Beerware" ]
null
null
null
#!/usr/bin/env python3 import os import sqlite3 db_filename = 'cxc_incidents.db' schema_filename = 'cxc_incidents_schema.sql' db_is_new = not os.path.exists(db_filename) #Function to insert data into a database table. def create_incident_db_rec(record_dict): with sqlite3.connect(db_filename) as conn: c=...
38.1875
190
0.630606
21a7446d2bb8af0fa923981b6a7bca3b3b512a04
3,423
py
Python
custom_components/bosch_shc/entity.py
tschamm/boschshc-hass
102f93f769cbd41eaddc5c095ad2e5c1cc807925
[ "Apache-2.0" ]
42
2020-01-08T13:43:49.000Z
2022-03-10T21:38:02.000Z
custom_components/bosch_shc/entity.py
tschamm/boschshc-hass
102f93f769cbd41eaddc5c095ad2e5c1cc807925
[ "Apache-2.0" ]
46
2020-04-12T21:44:55.000Z
2022-03-23T07:18:39.000Z
custom_components/bosch_shc/entity.py
tschamm/boschshc-hass
102f93f769cbd41eaddc5c095ad2e5c1cc807925
[ "Apache-2.0" ]
16
2020-04-12T11:57:16.000Z
2021-12-27T19:04:27.000Z
"""Bosch Smart Home Controller base entity.""" from boschshcpy.device import SHCDevice from homeassistant.helpers.device_registry import async_get as get_dev_reg from homeassistant.helpers.entity import Entity from .const import DOMAIN async def async_get_device_id(hass, device_id): """Get device id from device...
31.990654
88
0.648262
21a7f9fdda1f024baf5cb88ee15d8d7092163b98
47,503
py
Python
mindspore/nn/cell.py
king4arabs/mindspore
bc38590e5300588aa551355836043af0ea092a72
[ "Apache-2.0" ]
1
2021-03-10T09:05:13.000Z
2021-03-10T09:05:13.000Z
mindspore/nn/cell.py
king4arabs/mindspore
bc38590e5300588aa551355836043af0ea092a72
[ "Apache-2.0" ]
null
null
null
mindspore/nn/cell.py
king4arabs/mindspore
bc38590e5300588aa551355836043af0ea092a72
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 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...
38.55763
119
0.607393
21a8011c182ef836f7a57c181a56012e5acf9917
233
py
Python
aristotle/apps/test/tests.py
jermnelson/FRBR-Redis-Datastore
d44af821536b82f5fafa5bed7a51fa86e9a92243
[ "Apache-2.0" ]
1
2015-09-24T01:12:02.000Z
2015-09-24T01:12:02.000Z
aristotle/apps/test/tests.py
jermnelson/FRBR-Redis-Datastore
d44af821536b82f5fafa5bed7a51fa86e9a92243
[ "Apache-2.0" ]
1
2021-12-13T19:39:44.000Z
2021-12-13T19:39:44.000Z
aristotle/apps/test/tests.py
jermnelson/FRBR-Redis-Datastore
d44af821536b82f5fafa5bed7a51fa86e9a92243
[ "Apache-2.0" ]
null
null
null
__author__ = "Diane Westerfield" from django.test import TestCase class SimpleTest(TestCase): def test_basic_addition(self): """ Tests that 1 + 1 always equals 2. """ self.assertEqual(1 + 1, 2)
19.416667
41
0.622318
21a80b189679ab7cf33bef6c491fe5040daca8cd
4,052
py
Python
alipay/aop/api/request/AntfortuneContentCommunityContentEventSaveRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/request/AntfortuneContentCommunityContentEventSaveRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/request/AntfortuneContentCommunityContentEventSaveRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AntfortuneContentCommunityContentEventSaveModel import AntfortuneContentCommunityContentEventSaveModel class AntfortuneContentCommun...
27.944828
148
0.65153
21a81105a7c905b25a9f1f9133f882767c7dea48
364
py
Python
toontown/hood/GenericAnimatedBuilding.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
4
2019-07-01T15:46:43.000Z
2021-07-23T16:26:48.000Z
toontown/hood/GenericAnimatedBuilding.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
1
2019-06-29T03:40:05.000Z
2021-06-13T01:15:16.000Z
toontown/hood/GenericAnimatedBuilding.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
from toontown.hood import GenericAnimatedProp class GenericAnimatedBuilding(GenericAnimatedProp.GenericAnimatedProp): def __init__(self, node): GenericAnimatedProp.GenericAnimatedProp.__init__(self, node) def enter(self): if base.config.GetBool('buildings-animate', False): Generic...
36.4
71
0.766484
21a833363a20e78f1db72c7dbe48d9247789c344
1,085
py
Python
marqeta/response_models/chargeback_transition_request.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
21
2019-04-12T09:02:17.000Z
2022-02-18T11:39:06.000Z
marqeta/response_models/chargeback_transition_request.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
1
2020-07-22T21:27:40.000Z
2020-07-23T17:38:43.000Z
marqeta/response_models/chargeback_transition_request.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
10
2019-05-08T14:20:37.000Z
2021-09-20T18:09:26.000Z
from datetime import datetime, date from marqeta.response_models import datetime_object import json import re class ChargebackTransitionRequest(object): def __init__(self, json_response): self.json_response = json_response def __str__(self): return json.dumps(self.json_response, default=self....
24.111111
118
0.690323
21a8883dec168ab304844bbbb18f6ae2dadcbe17
1,376
py
Python
xblock/test/test_user_service.py
edly-io/XBlock
60d01a32e5bfe1b543f598cbc56ba3f4d736129d
[ "Apache-2.0" ]
null
null
null
xblock/test/test_user_service.py
edly-io/XBlock
60d01a32e5bfe1b543f598cbc56ba3f4d736129d
[ "Apache-2.0" ]
null
null
null
xblock/test/test_user_service.py
edly-io/XBlock
60d01a32e5bfe1b543f598cbc56ba3f4d736129d
[ "Apache-2.0" ]
null
null
null
""" Tests for the UserService """ import collections import pytest import six from xblock.reference.user_service import XBlockUser, UserService class SingleUserService(UserService): """ This is a dummy user service for testing that always returns a single user. """ def __init__(self, user): s...
29.913043
102
0.733285
21a8891895cbe15e7afb7f526f36ab6abda2e571
2,746
py
Python
bot/commands/__init__.py
NMisko/monkalot
965a16ca6a4921c8a9e6e996e9a0e3a9beb8444b
[ "MIT" ]
20
2017-09-08T21:13:38.000Z
2022-01-29T03:24:13.000Z
bot/commands/__init__.py
NMisko/monkalot
965a16ca6a4921c8a9e6e996e9a0e3a9beb8444b
[ "MIT" ]
32
2017-08-20T17:46:14.000Z
2021-11-18T22:54:59.000Z
bot/commands/__init__.py
NMisko/monkalot
965a16ca6a4921c8a9e6e996e9a0e3a9beb8444b
[ "MIT" ]
10
2017-08-19T01:13:41.000Z
2021-08-07T08:45:30.000Z
"""Package containing all possible commands. Splits commands into multiple variables: activeGames: Commands that should always react (no cooldown), except when another activeGame is running passiveGames: Commands that should always react (no cooldown) games: activeGames + passiveGames commands: all commands """ from t...
27.46
109
0.782229
21a8a2da64359c93526014b69e7a0c674c9de3ad
953
py
Python
pcdet/models/backbones_3d/__init__.py
zhangweichen2006/SRDAN_Open
47c1bd9d2369d8e486b18a7aea220af7324c9011
[ "Apache-2.0" ]
8
2021-06-23T02:06:56.000Z
2022-03-18T08:34:32.000Z
pcdet/models/backbones_3d/__init__.py
zhangweichen2006/SRDAN_Open
47c1bd9d2369d8e486b18a7aea220af7324c9011
[ "Apache-2.0" ]
2
2021-07-17T11:19:14.000Z
2021-09-25T03:30:36.000Z
pcdet/models/backbones_3d/__init__.py
zhangweichen2006/SRDAN_Open
47c1bd9d2369d8e486b18a7aea220af7324c9011
[ "Apache-2.0" ]
null
null
null
from .pointnet2_backbone import PointNet2Backbone, PointNet2MSG from .spconv_backbone import VoxelBackBone8x, VoxelResBackBone8x, VoxelBackBone8xNoM, VoxelBackBone8xMCD from .spconv_unet import UNetV2 from .spconv_unet_fpn import UNetV2FPN from .spconv_unet_fpn_multi import UNetV2FPNMulti from .spconv_nounet_fpn import...
32.862069
104
0.783841
21a8bf7147f9e0212e1aee87398a59a5cbd1c370
1,207
py
Python
yapu/bash.py
pestrela/yapu
27acb067b89ef0eeaa3da2234141abf9d811e0ae
[ "MIT" ]
null
null
null
yapu/bash.py
pestrela/yapu
27acb067b89ef0eeaa3da2234141abf9d811e0ae
[ "MIT" ]
null
null
null
yapu/bash.py
pestrela/yapu
27acb067b89ef0eeaa3da2234141abf9d811e0ae
[ "MIT" ]
null
null
null
from .imports.internal import * #from .string import * from subprocess import Popen, PIPE, STDOUT def bash(cmd, prnt=True, wait=True): """ Run a command via bash. Optionally prints results and waits for completion. return: stdout """ p = Popen(cmd, stdout=PIPE, stderr=STDOUT, shell=Tru...
23.666667
104
0.631317
21a8c851962a1c2edd5dd8e3ba7f3d1ccba00b61
774
py
Python
coffea/jetmet_tools/__init__.py
bfis/coffea
e5e67d410e86faee1172fcc864774d7024d97653
[ "BSD-3-Clause" ]
77
2019-06-09T14:23:33.000Z
2022-03-22T21:34:01.000Z
coffea/jetmet_tools/__init__.py
bfis/coffea
e5e67d410e86faee1172fcc864774d7024d97653
[ "BSD-3-Clause" ]
353
2019-06-05T23:54:39.000Z
2022-03-31T21:21:47.000Z
coffea/jetmet_tools/__init__.py
bfis/coffea
e5e67d410e86faee1172fcc864774d7024d97653
[ "BSD-3-Clause" ]
71
2019-06-07T02:04:11.000Z
2022-03-05T21:03:45.000Z
"""JetMET tools: CMS analysis-level jet corrections and uncertainties These classes provide computation of CMS jet energy scale and jet energy resolution corrections and uncertainties on columnar data. """ from .FactorizedJetCorrector import FactorizedJetCorrector from .JetResolution import JetResolution from .JetReso...
32.25
83
0.821705
21a8ceee8343c9e5de39ccc0874928ebbba90ff8
2,921
py
Python
outdated_testing_code/main.py
willBear/Insider_Monitor
14eac71a9769ed95f7c8500fd4c6b9dfbf7ca88e
[ "MIT" ]
null
null
null
outdated_testing_code/main.py
willBear/Insider_Monitor
14eac71a9769ed95f7c8500fd4c6b9dfbf7ca88e
[ "MIT" ]
null
null
null
outdated_testing_code/main.py
willBear/Insider_Monitor
14eac71a9769ed95f7c8500fd4c6b9dfbf7ca88e
[ "MIT" ]
null
null
null
import requests import csv import datetime, time # We store several API keys to make more API calls for free account, default is 12 per minute alpha_vantage_api_keys = ["2MFOB84WZRAIGROV", "4NE2ALTFPGT83V3S"] alpha_vantage_base_url = "https://www.alphavantage.co/query?function=OVERVIEW&symbol=" company_dict = [] fail...
33.574713
112
0.663471
21a8e2eb94a5d81d9b503a89f021d78f5a0ae63f
537
py
Python
experiments_dikower/controllers/drlbox/evaluator/make_evaluator.py
prokhn/onti-2019-bigdata
b9296141958f544177388be94072efce7bdc7814
[ "MIT" ]
null
null
null
experiments_dikower/controllers/drlbox/evaluator/make_evaluator.py
prokhn/onti-2019-bigdata
b9296141958f544177388be94072efce7bdc7814
[ "MIT" ]
null
null
null
experiments_dikower/controllers/drlbox/evaluator/make_evaluator.py
prokhn/onti-2019-bigdata
b9296141958f544177388be94072efce7bdc7814
[ "MIT" ]
null
null
null
from .ac_eval import ACEvaluator from .acer_eval import ACEREvaluator from .dqn_eval import DQNEvaluator EVALUATOR_CLS_DICT = {'ac': ACEvaluator, 'acer': ACEREvaluator, 'dqn': DQNEvaluator, } def make_evaluator(algori...
29.833333
70
0.610801
21a9073b68291fab83d948e4e398d49924fc4727
95,089
py
Python
plnn/anderson_linear_approximation.py
alessandrodepalma/oval-bab
014b6ee5071508430c8e515bbae725306db68fe1
[ "MIT" ]
6
2021-06-28T18:06:53.000Z
2022-03-09T09:00:50.000Z
plnn/anderson_linear_approximation.py
alessandrodepalma/oval-bab
014b6ee5071508430c8e515bbae725306db68fe1
[ "MIT" ]
null
null
null
plnn/anderson_linear_approximation.py
alessandrodepalma/oval-bab
014b6ee5071508430c8e515bbae725306db68fe1
[ "MIT" ]
2
2021-06-28T18:06:13.000Z
2021-09-03T11:24:26.000Z
from plnn.network_linear_approximation import LinearizedNetwork from tools.custom_torch_modules import View, Flatten from plnn.proxlp_solver.utils import prod, OptimizationTrace from plnn.branch_and_bound.utils import ParentInit from plnn.proxlp_solver.solver import SaddleLP from torch import nn import torch from iter...
56.939521
196
0.577249
21a92731d621f2fe12f29f64650c25c357b23d30
4,222
py
Python
tuna/optimizers/hillclimber.py
russellnakamura/thetuna
0e445baf780fb65e1d92fe1344ebdf21bf81573c
[ "MIT" ]
null
null
null
tuna/optimizers/hillclimber.py
russellnakamura/thetuna
0e445baf780fb65e1d92fe1344ebdf21bf81573c
[ "MIT" ]
null
null
null
tuna/optimizers/hillclimber.py
russellnakamura/thetuna
0e445baf780fb65e1d92fe1344ebdf21bf81573c
[ "MIT" ]
null
null
null
# this package from tuna.optimizers.baseclimber import BaseClimber class HillClimber(BaseClimber): """ A Hill-Climbing optimizer """ def __init__(self, emit=True, *args, **kwargs): """ HillClimber constructor :param: - `emit`: if True, print new solutions as they ap...
30.594203
82
0.608953
21a92740633e793d568351065f370be24c89f816
23,579
py
Python
tin/main.py
balazsdukai/tin2stardb
efb160ba744f757c4a6d4674c7abec8bf0694415
[ "MIT" ]
null
null
null
tin/main.py
balazsdukai/tin2stardb
efb160ba744f757c4a6d4674c7abec8bf0694415
[ "MIT" ]
null
null
null
tin/main.py
balazsdukai/tin2stardb
efb160ba744f757c4a6d4674c7abec8bf0694415
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Main app.""" from os import listdir from pathlib import Path from sys import stdout import logging import json import pickle import yaml import click from tin import schema, db, formats, utils def parse_config(config): return yaml.load(config, Loader=yaml.FullLoader) def configure...
40.513746
100
0.566055
21a93e8e11104c555135642ca8e344242cc16e5c
1,077
py
Python
setup.py
parantapa/PatchSim
4cf8dc86c422351841d65b708cca40c5fa14b5dd
[ "MIT" ]
null
null
null
setup.py
parantapa/PatchSim
4cf8dc86c422351841d65b708cca40c5fa14b5dd
[ "MIT" ]
null
null
null
setup.py
parantapa/PatchSim
4cf8dc86c422351841d65b708cca40c5fa14b5dd
[ "MIT" ]
null
null
null
"""Setup.""" from setuptools import setup package_name = "PatchSim" description = "A system for simulating the metapopulation SEIR model" with open("README.md", "r") as fh: long_description = fh.read() classifiers = """ Development Status :: 3 - Alpha Environment :: Console Intended Audience :: Developers Inte...
21.979592
69
0.694522
21a941e14bfa1e8c4cf3e58f688318d6307f22e4
1,553
py
Python
test/unittests/test_LuTotNitr.py
mudkipmaster/gwlf-e
9e058445537dd32d1916f76c4b73ca64261771cd
[ "Apache-2.0" ]
null
null
null
test/unittests/test_LuTotNitr.py
mudkipmaster/gwlf-e
9e058445537dd32d1916f76c4b73ca64261771cd
[ "Apache-2.0" ]
6
2018-07-24T22:46:28.000Z
2018-07-29T19:13:09.000Z
test/unittests/test_LuTotNitr.py
mudkipmaster/gwlf-e
9e058445537dd32d1916f76c4b73ca64261771cd
[ "Apache-2.0" ]
1
2018-07-24T18:22:01.000Z
2018-07-24T18:22:01.000Z
import numpy as np from VariableUnittest import VariableUnitTest from gwlfe.Output.Loading import LuTotNitr class TestLuTotNitr(VariableUnitTest): def test_LuTotNitr(self): z = self.z np.testing.assert_array_almost_equal( LuTotNitr.LuTotNitr_f(z.NYrs, z.DaysMonth, z.InitSnow_0, z.Tem...
64.708333
120
0.57888
21a94d45504d9f0f80d923adf9372a78c7458399
19,026
py
Python
code-commentator-server/python/utils.py
SpringHerald/code-commentator
9f97b593048d0fb02f43ddbe679edb8e7999faa6
[ "MIT" ]
10
2020-05-23T13:50:51.000Z
2022-03-26T06:20:03.000Z
source code/utils.py
17385/EMSE-DeepCom
bc29e119f35a03860303c272700d437b699a8e7f
[ "MIT" ]
2
2021-01-20T08:01:02.000Z
2021-03-03T05:43:49.000Z
source code/utils.py
17385/EMSE-DeepCom
bc29e119f35a03860303c272700d437b699a8e7f
[ "MIT" ]
6
2020-05-23T13:50:56.000Z
2022-02-24T08:27:35.000Z
import os import sys import numpy as np import logging import struct import random import math import shutil import functools import operator import heapq from collections import namedtuple from contextlib import contextmanager # special vocabulary symbols _BOS = '<S>' _EOS = '</S>' _UNK = '<UNK>' _KEEP = '<KEEP>' _...
34.035778
125
0.634605
21a96347dde81b8940514f20db70d21b4891457a
5,470
py
Python
test/test_misc.py
ReadAlongs/Studio
3fd89f49466bbed99b6cabaf071b0605e63d1fdc
[ "MIT" ]
16
2020-05-27T18:09:04.000Z
2022-03-16T17:40:57.000Z
test/test_misc.py
ReadAlongs/Studio
3fd89f49466bbed99b6cabaf071b0605e63d1fdc
[ "MIT" ]
77
2020-03-31T16:07:15.000Z
2022-03-17T14:22:51.000Z
test/test_misc.py
ReadAlongs/Studio
3fd89f49466bbed99b6cabaf071b0605e63d1fdc
[ "MIT" ]
7
2021-05-04T17:38:57.000Z
2022-03-25T09:07:23.000Z
#!/usr/bin/env python3 """Test suite for misc stuff that don't need their own stand-alone suite""" import itertools from unittest import TestCase, main import click from lxml import etree from test_dna_utils import segments_from_pairs from readalongs.align import split_silences from readalongs.text.util import get_...
32.754491
107
0.45521
21a96bba7380a99052fed29ad17b1fbf3bf5fb61
536
py
Python
metadata/BRaKE/hooks/pre-stage.py
csdms/wmt-metadata
39207acc376f1cd21b2ae1d5581a1e2c317a6441
[ "MIT" ]
null
null
null
metadata/BRaKE/hooks/pre-stage.py
csdms/wmt-metadata
39207acc376f1cd21b2ae1d5581a1e2c317a6441
[ "MIT" ]
10
2016-09-27T21:13:22.000Z
2018-10-31T19:42:32.000Z
metadata/BRaKE/hooks/pre-stage.py
csdms/wmt-metadata
39207acc376f1cd21b2ae1d5581a1e2c317a6441
[ "MIT" ]
null
null
null
"""A hook for modifying parameter values read from the WMT client.""" from wmt.utils.hook import yaml_dump def execute(env): """Perform pre-stage tasks for running a component. Parameters ---------- env : dict A dict of component parameter values from WMT. """ env['time_to_run'] = int...
25.52381
69
0.606343
21a99c53a1fff9b635b517b2588e50411d486e40
7,263
py
Python
scripts/spikeglx_spikeinterface_pipeline.py
catalystneuro/brody-lab-to-nwb
bb792591eae988b2dec1a3a608979832da8f884d
[ "MIT" ]
null
null
null
scripts/spikeglx_spikeinterface_pipeline.py
catalystneuro/brody-lab-to-nwb
bb792591eae988b2dec1a3a608979832da8f884d
[ "MIT" ]
10
2021-05-24T22:17:27.000Z
2022-03-30T05:42:02.000Z
scripts/spikeglx_spikeinterface_pipeline.py
catalystneuro/brody-lab-to-nwb
bb792591eae988b2dec1a3a608979832da8f884d
[ "MIT" ]
null
null
null
# SpikeInterface pipeline for Brody Lab from pathlib import Path from pprint import pprint import spikeextractors as se import spiketoolkit as st import spikesorters as ss n_jobs = 4 chunk_mb = 2000 export_raw_to_phy = False export_curated_to_phy = True # Define sorter and params sorter = "ironclust" sorter_param...
30.775424
109
0.751755
21a9c32069b62f7eff2c54762bb457279381778d
677
py
Python
completewasteoftime.py
jb262/completewasteoftime
1a4d378e5cf077e81ee5e269c451bec5c3ea4926
[ "MIT" ]
6
2019-09-10T04:30:52.000Z
2022-01-08T18:14:32.000Z
completewasteoftime.py
jb262/completewasteoftime
1a4d378e5cf077e81ee5e269c451bec5c3ea4926
[ "MIT" ]
null
null
null
completewasteoftime.py
jb262/completewasteoftime
1a4d378e5cf077e81ee5e269c451bec5c3ea4926
[ "MIT" ]
null
null
null
''' This module contains a basic example on how to use the package. ''' from websites.gamefaqs.model import GameFAQs from websites.gamerankings.model import Gamerankings if __name__ == '__main__': ''' Basic example displaying the description of the game Monty Pythons Complete Waste of Time. ''' gf = G...
26.038462
94
0.695716
21a9e80df9bdbdfda070b8f76c1b20aaedf415c2
8,070
py
Python
tests/ptlflow/data/test_datasets.py
jasonbian97/ptlflow
8a7307af1c0b241108f3125cb716d64a18c1b87e
[ "Apache-2.0" ]
78
2021-06-15T03:11:33.000Z
2022-03-25T05:51:25.000Z
tests/ptlflow/data/test_datasets.py
jasonbian97/ptlflow
8a7307af1c0b241108f3125cb716d64a18c1b87e
[ "Apache-2.0" ]
12
2021-07-04T17:02:57.000Z
2022-02-09T09:30:43.000Z
tests/ptlflow/data/test_datasets.py
jasonbian97/ptlflow
8a7307af1c0b241108f3125cb716d64a18c1b87e
[ "Apache-2.0" ]
3
2021-07-27T21:28:51.000Z
2021-09-17T10:06:27.000Z
# ============================================================================= # Copyright 2021 Henrique Morimitsu # # 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/l...
32.672065
125
0.531722
21a9f46e7e99f7df54c1b25ccac1b1c6fec15cfa
7,518
py
Python
pyraptor/model/datatypes.py
lmeulen/lRaptor
4890e3b11879ecf0b73f7413abda95d7aa8e9388
[ "MIT" ]
1
2021-02-17T07:23:04.000Z
2021-02-17T07:23:04.000Z
pyraptor/model/datatypes.py
lmeulen/lRaptor
4890e3b11879ecf0b73f7413abda95d7aa8e9388
[ "MIT" ]
4
2021-02-18T19:34:24.000Z
2021-09-27T14:13:54.000Z
pyraptor/model/datatypes.py
lmeulen/lRaptor
4890e3b11879ecf0b73f7413abda95d7aa8e9388
[ "MIT" ]
null
null
null
"""Datatypes""" from collections import defaultdict from typing import List import attr from pyraptor.util import T6H def same_type_and_id(first, second): """Same type and ID""" return type(first) is type(second) and first.id == second.id @attr.s(repr=False, cmp=False) class Stop: """Stop""" id =...
26.946237
97
0.612264
21a9fdeb05d8278f138452ab90510cc5f41967b0
8,661
py
Python
python/rl_environment_grasping.py
mgualti/DeepRLManip
6b982a319edae51d9c7c740c3a83fe8ce3a97ca7
[ "MIT" ]
23
2018-10-30T02:34:39.000Z
2022-01-13T09:58:00.000Z
python/rl_environment_grasping.py
mgualti/DeepRLManip
6b982a319edae51d9c7c740c3a83fe8ce3a97ca7
[ "MIT" ]
null
null
null
python/rl_environment_grasping.py
mgualti/DeepRLManip
6b982a319edae51d9c7c740c3a83fe8ce3a97ca7
[ "MIT" ]
5
2018-11-03T19:56:59.000Z
2020-03-02T08:28:31.000Z
'''Reinforcement learning (RL) environment.''' # python from copy import copy from time import sleep, time # scipy from scipy.spatial import cKDTree from numpy.linalg import inv, norm from numpy.random import rand, randint, randn from numpy import array, arange, cos, dot, eye, hstack, pi, zeros # openrave import openr...
39.190045
100
0.697379
21aa2139dc367ba6c0734472bbfa9262ab59feba
1,465
py
Python
ai_ml_projects/masters_courses/nlp/main.py
5aurabhpathak/src
dda72beba2aaae67542a2f10e89048e86d04cb28
[ "BSD-3-Clause" ]
1
2021-07-07T06:51:18.000Z
2021-07-07T06:51:18.000Z
ai_ml_projects/masters_courses/nlp/main.py
5aurabhpathak/all-I-ve-done
dda72beba2aaae67542a2f10e89048e86d04cb28
[ "BSD-3-Clause" ]
null
null
null
ai_ml_projects/masters_courses/nlp/main.py
5aurabhpathak/all-I-ve-done
dda72beba2aaae67542a2f10e89048e86d04cb28
[ "BSD-3-Clause" ]
1
2020-08-11T09:53:22.000Z
2020-08-11T09:53:22.000Z
#!/bin/env python3.5 #Author: Saurabh Pathak from nltk.internals import find_jars_within_path from nltk.parse.stanford import StanfordParser from nltk.tokenize import sent_tokenize from nltk import download from nltk.tree import ParentedTree import os #download('punkt', quiet=True) #download('names', quiet=True) os.e...
35.731707
216
0.722184
21aa26c7d47359aa213995c59df869a3faf75b5b
2,529
py
Python
python/app/plugins/http/Struts2/S2_061.py
taomujian/linbing
fe772a58f41e3b046b51a866bdb7e4655abaf51a
[ "MIT" ]
351
2020-02-26T05:23:26.000Z
2022-03-26T12:39:19.000Z
python/app/plugins/http/Struts2/S2_061.py
taomujian/linbing
fe772a58f41e3b046b51a866bdb7e4655abaf51a
[ "MIT" ]
15
2020-03-26T07:31:49.000Z
2022-03-09T02:12:17.000Z
python/app/plugins/http/Struts2/S2_061.py
taomujian/linbing
fe772a58f41e3b046b51a866bdb7e4655abaf51a
[ "MIT" ]
99
2020-02-28T07:30:46.000Z
2022-03-16T16:41:09.000Z
#!/usr/bin/env python3 import re from app.lib.utils.request import request from app.lib.utils.common import get_capta, get_useragent class S2_061_BaseVerify: def __init__(self, url): self.info = { 'name': 'S2-061漏洞,又名CVE-2020-17530漏洞', 'description': 'Struts2 Remote Code Execution ...
41.459016
673
0.56979
21aa31a52cc55d114ae8f2c3404a8b27c235962a
865
py
Python
Music/pause.py
Aggis15/T4NK0R
05d1791e51f50bcb44c56ca936e5a11b7de21fb1
[ "MIT" ]
null
null
null
Music/pause.py
Aggis15/T4NK0R
05d1791e51f50bcb44c56ca936e5a11b7de21fb1
[ "MIT" ]
null
null
null
Music/pause.py
Aggis15/T4NK0R
05d1791e51f50bcb44c56ca936e5a11b7de21fb1
[ "MIT" ]
null
null
null
from discord.ext import commands from discord.commands import slash_command import wavelink import json # Initiate json file = open("config.json") data = json.load(file) # Public variables guildID = data["guildID"][0] class musicPause(commands.Cog): def __init__(self, bot): self.bot = bot @commands...
25.441176
70
0.676301
21aa4af0ee94fd70622b160ce27631de6901d9b9
22,376
py
Python
src/lysate_urea_denaturation/plotting/plot_features.py
dezeraecox-manuscripts/COX_Proteome-stability
a5397baae7f0bc73980b88f8ccf7b83e3d05f590
[ "MIT" ]
null
null
null
src/lysate_urea_denaturation/plotting/plot_features.py
dezeraecox-manuscripts/COX_Proteome-stability
a5397baae7f0bc73980b88f8ccf7b83e3d05f590
[ "MIT" ]
null
null
null
src/lysate_urea_denaturation/plotting/plot_features.py
dezeraecox-manuscripts/COX_Proteome-stability
a5397baae7f0bc73980b88f8ccf7b83e3d05f590
[ "MIT" ]
null
null
null
import os, re import pandas as pd import numpy as np import matplotlib.pyplot as plt import matplotlib import seaborn as sns # test upset plot for chaperones in each cluster from upsetplot import generate_counts, from_contents from upsetplot import plot from simple_venn import venn4 from matplotlib.colors import Linear...
54.57561
315
0.737889
21aa4d28ae910a263698657cbc620d7ebacc265a
21,005
py
Python
scapy/scapy/modules/p0f.py
jreynders/BLESuite-1
1c3c15fc2d4e30c3f9c1a15e0268cae84685784b
[ "MIT" ]
null
null
null
scapy/scapy/modules/p0f.py
jreynders/BLESuite-1
1c3c15fc2d4e30c3f9c1a15e0268cae84685784b
[ "MIT" ]
null
null
null
scapy/scapy/modules/p0f.py
jreynders/BLESuite-1
1c3c15fc2d4e30c3f9c1a15e0268cae84685784b
[ "MIT" ]
null
null
null
# This file is part of Scapy # See http://www.secdev.org/projects/scapy for more informations # Copyright (C) Philippe Biondi <phil@secdev.org> # This program is published under a GPLv2 license """ Clone of p0f passive OS fingerprinting """ from __future__ import absolute_import from __future__ import print_function ...
33.824477
114
0.500881
21aa549f523ebb627ce8ba1b3d00ac336672fd9f
9,298
py
Python
noisy_mnist/noisy_mnist_aleatoric_uncertainty_for_poster.py
self-supervisor/Escaping-Stochastic-Traps-With-Aleatoric-Mapping-Agents
b55d8d938fe4c313936c9a15e32b738b5d033809
[ "MIT" ]
null
null
null
noisy_mnist/noisy_mnist_aleatoric_uncertainty_for_poster.py
self-supervisor/Escaping-Stochastic-Traps-With-Aleatoric-Mapping-Agents
b55d8d938fe4c313936c9a15e32b738b5d033809
[ "MIT" ]
null
null
null
noisy_mnist/noisy_mnist_aleatoric_uncertainty_for_poster.py
self-supervisor/Escaping-Stochastic-Traps-With-Aleatoric-Mapping-Agents
b55d8d938fe4c313936c9a15e32b738b5d033809
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[1]: # !pip install pytest==5.4.0 # !pip install pytest # ## Defining Noisy Environment ## # In[2]: from __future__ import print_function import argparse import glob import matplotlib.pyplot as plt import numpy as np import torch import torch.nn as nn import torch.nn....
30.993333
88
0.606797
21aa5d38ffe36ed5b183de63fc76f6bfad9abad8
88
py
Python
cso_classifier/version.py
angelosalatino/cso-matcher
36773d52c5a3ae499acd5e0ffaf41e70cc5271cc
[ "Apache-2.0" ]
63
2018-06-25T15:02:18.000Z
2022-03-11T21:49:48.000Z
cso_classifier/version.py
angelosalatino/cso-matcher
36773d52c5a3ae499acd5e0ffaf41e70cc5271cc
[ "Apache-2.0" ]
5
2019-02-12T18:22:50.000Z
2021-04-21T14:09:54.000Z
cso_classifier/version.py
angelosalatino/cso-matcher
36773d52c5a3ae499acd5e0ffaf41e70cc5271cc
[ "Apache-2.0" ]
13
2018-06-23T10:32:20.000Z
2022-03-28T08:12:34.000Z
from cso_classifier.config import Config __version__ = Config().get_classifier_version()
88
88
0.852273
21aa78ebe4a950dd725edd5edc9db6bdffbe6da2
5,355
py
Python
python/openlattice/models/neighbor_search_filter.py
openlattice/api-clients
1d5be9861785b295089b732f37464e31bf80c8ca
[ "Apache-2.0" ]
null
null
null
python/openlattice/models/neighbor_search_filter.py
openlattice/api-clients
1d5be9861785b295089b732f37464e31bf80c8ca
[ "Apache-2.0" ]
1
2021-01-20T00:20:01.000Z
2021-01-20T00:20:01.000Z
python/openlattice/models/neighbor_search_filter.py
openlattice/api-clients
1d5be9861785b295089b732f37464e31bf80c8ca
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ OpenLattice API OpenLattice API # noqa: E501 The version of the OpenAPI document: 0.0.1 Contact: support@openlattice.com Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from openlattice.configuration import Configuration ...
26.775
120
0.575537
21aa9b416b253026106d0fc1d252c16ac09f8e83
2,481
py
Python
src/spaceone/inventory/model/cloud_service_model.py
choonho/inventory
cc89757490d28fecb7ffccdfd6f89d4c0aa40da5
[ "Apache-2.0" ]
null
null
null
src/spaceone/inventory/model/cloud_service_model.py
choonho/inventory
cc89757490d28fecb7ffccdfd6f89d4c0aa40da5
[ "Apache-2.0" ]
null
null
null
src/spaceone/inventory/model/cloud_service_model.py
choonho/inventory
cc89757490d28fecb7ffccdfd6f89d4c0aa40da5
[ "Apache-2.0" ]
null
null
null
from mongoengine import * from spaceone.core.model.mongo_model import MongoModel from spaceone.inventory.model.region_model import Region from spaceone.inventory.model.collection_info_model import CollectionInfo from spaceone.inventory.model.reference_resource_model import ReferenceResource class CloudService(MongoM...
31.807692
91
0.58283
21aa9f13e00fced0a0367507340bcae79a97e6d0
1,155
py
Python
tools/dockerize/webportal/usr/lib/python2.7/site-packages/oslo_vmware/_i18n.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
1
2019-09-11T11:56:19.000Z
2019-09-11T11:56:19.000Z
tools/dockerize/webportal/usr/lib/python2.7/site-packages/oslo_vmware/_i18n.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
tools/dockerize/webportal/usr/lib/python2.7/site-packages/oslo_vmware/_i18n.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
# 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 # d...
32.083333
78
0.747186
21aaa038fa58f98f243934cd49be5476fd091d48
608
py
Python
rockiot/app/migrations/0002_auto_20210714_2108.py
isocserbia/rockiot
fc0c52cca4ca862ba570d6b2c64b8d30f8989f05
[ "Apache-2.0" ]
2
2022-01-23T11:03:37.000Z
2022-02-26T10:54:10.000Z
rockiot/app/migrations/0002_auto_20210714_2108.py
isocserbia/rockiot
fc0c52cca4ca862ba570d6b2c64b8d30f8989f05
[ "Apache-2.0" ]
null
null
null
rockiot/app/migrations/0002_auto_20210714_2108.py
isocserbia/rockiot
fc0c52cca4ca862ba570d6b2c64b8d30f8989f05
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2.5 on 2021-07-14 21:08 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('app', '0001_initial'), ] operations = [ migrations.RemoveField( model_name='organization', ...
25.333333
138
0.615132
21aad6d5b65763126578271c3902ebfcbd599dae
10,778
py
Python
Core/data_loader.py
StevenChaoo/R-BERT-DDI
6d9666e0bc61397ca942ffad53653690c1e8a899
[ "MIT" ]
null
null
null
Core/data_loader.py
StevenChaoo/R-BERT-DDI
6d9666e0bc61397ca942ffad53653690c1e8a899
[ "MIT" ]
null
null
null
Core/data_loader.py
StevenChaoo/R-BERT-DDI
6d9666e0bc61397ca942ffad53653690c1e8a899
[ "MIT" ]
null
null
null
# Author: StevenChaoo # -*- coding=UTF-8 -*- import copy import csv import json import logging import os import torch from utils import get_label from torch.utils.data import TensorDataset logger = logging.getLogger(__name__) class SemEvalProcessor(object): ''' Process dataset ...
35.570957
121
0.583782
21aaeb32cfa999cae382f92732c55197087b6e33
2,366
py
Python
DCNN-Pytorch/deepracing_models/data_loading/proto_datasets/ControlOutputDataset.py
linklab-uva/deepracing
fc25c47658277df029e7399d295d97a75fe85216
[ "Apache-2.0" ]
11
2020-06-29T15:21:37.000Z
2021-04-12T00:42:26.000Z
DCNN-Pytorch/deepracing_models/data_loading/proto_datasets/ControlOutputDataset.py
linklab-uva/deepracing
fc25c47658277df029e7399d295d97a75fe85216
[ "Apache-2.0" ]
null
null
null
DCNN-Pytorch/deepracing_models/data_loading/proto_datasets/ControlOutputDataset.py
linklab-uva/deepracing
fc25c47658277df029e7399d295d97a75fe85216
[ "Apache-2.0" ]
4
2019-01-23T23:36:57.000Z
2021-07-02T00:18:37.000Z
import scipy import scipy.linalg as la import skimage import PIL from PIL import Image as PILImage import TimestampedPacketMotionData_pb2 import PoseSequenceLabel_pb2 import TimestampedImage_pb2 import Vector3dStamped_pb2 import FrameId_pb2 import Pose3d_pb2 import argparse import os import google.protobuf.json_format...
38.16129
143
0.771767
21ab307aae9dba692101e4a1b4c418dc40f54147
360
py
Python
setup.py
dchansen/radiomics
ea34882df0127c0921f6f412fbb708d1c49b4f29
[ "Apache-2.0" ]
11
2017-06-23T14:23:43.000Z
2020-09-04T01:36:58.000Z
setup.py
dchansen/radiomics
ea34882df0127c0921f6f412fbb708d1c49b4f29
[ "Apache-2.0" ]
null
null
null
setup.py
dchansen/radiomics
ea34882df0127c0921f6f412fbb708d1c49b4f29
[ "Apache-2.0" ]
11
2017-11-30T06:40:38.000Z
2020-12-31T12:44:52.000Z
from distutils.core import setup setup( name='radiomics', version='0.1', packages=['radiomics'], url='https://github.com/dchansen/radiomics', license='Apache', author='dch', author_email='daviha@rm.dk', description='A radiomics implementation in python', install_requires=['numpy', '...
25.714286
69
0.666667
21ab43b49db6e4d440c4966906c80a48c77cf0d3
368
py
Python
easy_transformers/__init__.py
ManoharSai2000/easy-transformers
9f10bcf469ff30093e3af763eaca066740fb1795
[ "Apache-2.0" ]
null
null
null
easy_transformers/__init__.py
ManoharSai2000/easy-transformers
9f10bcf469ff30093e3af763eaca066740fb1795
[ "Apache-2.0" ]
null
null
null
easy_transformers/__init__.py
ManoharSai2000/easy-transformers
9f10bcf469ff30093e3af763eaca066740fb1795
[ "Apache-2.0" ]
null
null
null
import os from easy_transformers import constants TRANSFORMERS_CACHE_SIZE = int( os.environ.get( "EASY_TRANSFORMERS_CACHE_SIZE", constants.DEFAULT_EASY_TRANSFORMERS_CACHE_SIZE ) ) TEXT_EMB_CACHE_SIZE = int( os.environ.get( "EASY_TRANSFORMERS_TEXT_EMB_CACHE_SIZE", constants.DEFAULT...
21.647059
86
0.76087
21aba69ba7234b98d60fbf3615577ca1dfec86a0
3,840
py
Python
classical-machine-learning/classificaton.py
ujjwal190/Machine_Learning
fc7fcc7089179d5e8f2b06c2b40a857eb32b97cf
[ "Unlicense" ]
null
null
null
classical-machine-learning/classificaton.py
ujjwal190/Machine_Learning
fc7fcc7089179d5e8f2b06c2b40a857eb32b97cf
[ "Unlicense" ]
null
null
null
classical-machine-learning/classificaton.py
ujjwal190/Machine_Learning
fc7fcc7089179d5e8f2b06c2b40a857eb32b97cf
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat Nov 4 19:08:08 2017 @author: taoyanqi """ from __future__ import print_function from sklearn import datasets from sklearn.model_selection import cross_val_score from sklearn import preprocessing import time import numpy as np import argparse def knn_classifier(X,y): ...
36.571429
94
0.660417
21abb636f8fa8830673e5107f9c9c926c5fecf4a
5,857
py
Python
top/_version.py
0phoff/topcraft
d1dde9e151e0a5693c4a2231c5b11170d9664817
[ "MIT" ]
41
2018-02-26T11:55:20.000Z
2022-03-10T14:48:11.000Z
top/_version.py
0phoff/topcraft
d1dde9e151e0a5693c4a2231c5b11170d9664817
[ "MIT" ]
32
2018-02-26T12:10:08.000Z
2022-03-03T22:40:17.000Z
top/_version.py
0phoff/topcraft
d1dde9e151e0a5693c4a2231c5b11170d9664817
[ "MIT" ]
7
2018-03-04T22:20:09.000Z
2021-11-13T08:51:17.000Z
# -*- coding: utf-8 -*- # This file is part of 'miniver': https://github.com/jbweston/miniver # from collections import namedtuple import os import subprocess from setuptools.command.build_py import build_py as build_py_orig from setuptools.command.sdist import sdist as sdist_orig Version = namedtuple("Version", ("re...
30.664921
79
0.620113
21abc5fee754787912111d4c1ef11a56dcdce5c7
450
py
Python
examples/sqlalchemyapp/aggregates.py
lukaszb/cq
e32f18c0a873e925d68cfafc53e18328157a6621
[ "MIT" ]
4
2017-03-15T15:01:44.000Z
2021-02-05T03:08:41.000Z
examples/sqlalchemyapp/aggregates.py
lukaszb/cq
e32f18c0a873e925d68cfafc53e18328157a6621
[ "MIT" ]
14
2017-01-09T11:15:40.000Z
2021-03-25T21:58:14.000Z
examples/sqlalchemyapp/aggregates.py
lukaszb/cq
e32f18c0a873e925d68cfafc53e18328157a6621
[ "MIT" ]
1
2017-03-12T18:03:38.000Z
2017-03-12T18:03:38.000Z
from cq import aggregates class Todo(aggregates.Aggregate): __slots__ = ('name', 'done') @aggregates.register_mutator(Todo, 'Added') def mutate_added(todo, event, data): todo.name = data['name'] todo.done = False @aggregates.register_mutator(Todo, 'Finished') def mutate_finished(todo, event, data): ...
20.454545
46
0.715556
21abcb354c9675a635e18378c9c1cbeea159e39a
2,549
py
Python
core/argo/core/network/ArgoNetworkWithDefaults.py
szokejokepu/natural-rws
bb1ad4ca3ec714e6bf071d2136593dc853492b68
[ "MIT" ]
4
2020-12-07T19:13:13.000Z
2022-01-30T18:52:18.000Z
core/argo/core/network/ArgoNetworkWithDefaults.py
szokejokepu/natural-rws
bb1ad4ca3ec714e6bf071d2136593dc853492b68
[ "MIT" ]
12
2020-09-25T22:41:28.000Z
2022-02-09T23:46:34.000Z
core/argo/core/network/ArgoNetworkWithDefaults.py
szokejokepu/natural-rws
bb1ad4ca3ec714e6bf071d2136593dc853492b68
[ "MIT" ]
2
2021-03-02T18:31:04.000Z
2021-03-02T21:56:43.000Z
import tensorflow as tf from .ArgoAbstractNetwork import ArgoAbstractNetwork from .initializers.TFInitializers import TFInitializers from ..utils.argo_utils import method_name_short, get_method_id, eval_method_from_tuple class ArgoNetworkWithDefaults(ArgoAbstractNetwork): """ Abstract class for managing a ne...
38.044776
103
0.65712
21ac0c0b8d71e19e0e6156d88570f645b9ac22a5
3,328
py
Python
tests/facebook/apis/test_albums.py
Socian-Ltd/python-facebook-1
e9a4f626b37541103c9534a29342ef6033c09c06
[ "Apache-2.0" ]
null
null
null
tests/facebook/apis/test_albums.py
Socian-Ltd/python-facebook-1
e9a4f626b37541103c9534a29342ef6033c09c06
[ "Apache-2.0" ]
null
null
null
tests/facebook/apis/test_albums.py
Socian-Ltd/python-facebook-1
e9a4f626b37541103c9534a29342ef6033c09c06
[ "Apache-2.0" ]
1
2021-06-02T07:15:35.000Z
2021-06-02T07:15:35.000Z
import json import unittest import responses from six import iteritems import pyfacebook class AlbumApiTest(unittest.TestCase): BASE_PATH = "testdata/facebook/apidata/albums/" BASE_URL = "https://graph.facebook.com/{}/".format(pyfacebook.Api.VALID_API_VERSIONS[-1]) with open(BASE_PATH + "albums_paged_1...
33.28
93
0.567909
21ac26c70a15111cea03f0e957d6db329e3a38af
31,610
py
Python
tests/test_marshmallow_sqlalchemy.py
seanharr11/marshmallow-sqlalchemy
899c06bff44d89faa9f8be6f770dfa1774949c37
[ "MIT" ]
null
null
null
tests/test_marshmallow_sqlalchemy.py
seanharr11/marshmallow-sqlalchemy
899c06bff44d89faa9f8be6f770dfa1774949c37
[ "MIT" ]
null
null
null
tests/test_marshmallow_sqlalchemy.py
seanharr11/marshmallow-sqlalchemy
899c06bff44d89faa9f8be6f770dfa1774949c37
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import import datetime as dt import decimal import sqlalchemy as sa from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker, relationship, backref, column_property from sqlalchemy.dialects import postgresql from marshmallo...
35.239688
99
0.651503
21ac2cc4bd88acc858fdb0d71a2e4457ba0962fe
12,353
py
Python
test/test_shapes.py
jdum/odfdo
2494d0bed39f5a55974643206e9bafeed40f3a6b
[ "Apache-2.0" ]
18
2018-04-19T08:30:48.000Z
2022-02-14T11:00:27.000Z
test/test_shapes.py
jdum/odfdo
2494d0bed39f5a55974643206e9bafeed40f3a6b
[ "Apache-2.0" ]
15
2018-04-22T00:52:41.000Z
2021-07-05T10:16:38.000Z
test/test_shapes.py
jdum/odfdo
2494d0bed39f5a55974643206e9bafeed40f3a6b
[ "Apache-2.0" ]
6
2018-04-22T00:14:12.000Z
2021-12-06T01:42:07.000Z
#!/usr/bin/env python # Copyright 2018 Jérôme Dumonteil # Copyright (c) 2009-2010 Ars Aperta, Itaapy, Pierlis, Talend. # # 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.apach...
36.547337
80
0.603011
21ac2f109b418e86e7cab2bc432b4e84bc97f4c4
590
py
Python
projects/chapter6_try_yourself/6.9.py
rock-gustavo/Python_Crash_Course
8c08c8f83e70d54f85983777dc29f1094f43f421
[ "MIT" ]
null
null
null
projects/chapter6_try_yourself/6.9.py
rock-gustavo/Python_Crash_Course
8c08c8f83e70d54f85983777dc29f1094f43f421
[ "MIT" ]
null
null
null
projects/chapter6_try_yourself/6.9.py
rock-gustavo/Python_Crash_Course
8c08c8f83e70d54f85983777dc29f1094f43f421
[ "MIT" ]
null
null
null
""" 6-9. Favorite Places: Make a dictionary called favorite_places. Think of three names to use as keys in the dictionary, and store one to three favorite places for each person. To make this exercise a bit more interesting, ask some friends to name a few of their favorite places. Loop through the dictionary, and print...
45.384615
118
0.738983
21ac370781b9b04a3385798a1f6793fb3d0b5e99
3,893
py
Python
mle_scheduler/cluster/sge/manage_sge.py
boazbk/mle-scheduler
4cf83873d9beb75b19b2deb9baf4394931b9624d
[ "MIT" ]
null
null
null
mle_scheduler/cluster/sge/manage_sge.py
boazbk/mle-scheduler
4cf83873d9beb75b19b2deb9baf4394931b9624d
[ "MIT" ]
null
null
null
mle_scheduler/cluster/sge/manage_sge.py
boazbk/mle-scheduler
4cf83873d9beb75b19b2deb9baf4394931b9624d
[ "MIT" ]
null
null
null
import os import time import subprocess as sp from typing import Union from ...local import submit_subprocess, random_id from .helpers_launch_sge import sge_generate_startup_file def submit_sge( filename: str, cmd_line_arguments: str, job_arguments: dict, user_name: str, clean_up: bool = True, ) -...
33.273504
85
0.611611
21ac383fc1e8872a498a187906b84fc4e5e6081d
776
py
Python
setup.py
everilae/furnish
6b282023ee0c89af44ba3a5b46a3f2adef30b26f
[ "MIT" ]
4
2017-05-23T08:09:55.000Z
2017-06-29T18:56:27.000Z
setup.py
everilae/furnish
6b282023ee0c89af44ba3a5b46a3f2adef30b26f
[ "MIT" ]
1
2018-02-15T08:16:06.000Z
2018-02-15T08:16:06.000Z
setup.py
everilae/furnish
6b282023ee0c89af44ba3a5b46a3f2adef30b26f
[ "MIT" ]
null
null
null
from setuptools import setup with open("README.rst") as f: long_description = f.read() setup( name="furnish", version="0.2.1", description="Create HTTP API clients from Python.", long_description=long_description, author="Ilja Everilä", author_email="saarni@gmail.com", license="MIT", ...
26.758621
77
0.625
21ac53753a7b13527d9c5a1c4d28eb59e7d437b7
1,025
py
Python
oscar/lib/python2.7/site-packages/faker/providers/ssn/pt_BR/__init__.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/faker/providers/ssn/pt_BR/__init__.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/faker/providers/ssn/pt_BR/__init__.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from .. import Provider as SsnProvider def checksum(digits): s = 0 p = len(digits) + 1 for i in range(0, len(digits)): s += digits[i] * p p -= 1 reminder = s % 11 if reminder == 0 or reminder == 1: ...
25
83
0.560976
21ac5cd88c573161d4edc735fa76ad681abc1a1d
824
py
Python
examples/run_dynpmsde.py
chinmay3/NiaPy
b4e5c0f98063e2a9eebd8d750f0922cfca88bc55
[ "MIT" ]
202
2018-02-06T12:13:42.000Z
2022-03-18T16:33:20.000Z
examples/run_dynpmsde.py
chinmay3/NiaPy
b4e5c0f98063e2a9eebd8d750f0922cfca88bc55
[ "MIT" ]
262
2018-02-06T14:49:15.000Z
2022-03-25T19:49:46.000Z
examples/run_dynpmsde.py
chinmay3/NiaPy
b4e5c0f98063e2a9eebd8d750f0922cfca88bc55
[ "MIT" ]
136
2018-02-06T16:55:32.000Z
2022-03-05T17:49:52.000Z
# encoding=utf8 # This is temporary fix to import module from parent folder # It will be removed when package is published on PyPI import sys sys.path.append('../') # End of fix from niapy.algorithms.basic import DynNpMultiStrategyDifferentialEvolution from niapy.algorithms.basic.de import cross_best2, cross_curr2bes...
39.238095
122
0.726942
21ac5f8fef8df4ace2f6d9275d68534971e6fac0
1,652
py
Python
xlnet/datasets/squad_tfrecords.py
fanshiqing/DAPPLE
b2d2ceda90f6033b316f672ec05f45123234f130
[ "BSD-3-Clause" ]
50
2020-02-02T09:24:44.000Z
2022-03-01T03:22:19.000Z
xlnet/datasets/squad_tfrecords.py
fanshiqing/DAPPLE
b2d2ceda90f6033b316f672ec05f45123234f130
[ "BSD-3-Clause" ]
1
2020-02-04T03:50:02.000Z
2020-02-04T04:41:37.000Z
xlnet/datasets/squad_tfrecords.py
AlibabaPAI/DAPPLE
fd75dcfbc6c73a7624b9fd9d8c3334e5d04bcd20
[ "BSD-3-Clause" ]
9
2020-02-02T09:23:31.000Z
2021-09-22T07:24:34.000Z
import tensorflow as tf from tensorflow.contrib.distribute.python import prefetching_ops_v2 def input_fn_builder(input_glob, batch_size, is_training, seq_length=512): name_to_features = { "input_ids": tf.FixedLenFeature([seq_length], tf.int64), "input_mask": tf.FixedLenFeature([seq_length], tf.floa...
37.545455
93
0.633777
21ac9b49b6eb02deaaf30ee1c38d35dfed33503f
8,219
py
Python
recipes/recipe_modules/support_3pp/resolved_spec.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
recipes/recipe_modules/support_3pp/resolved_spec.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
recipes/recipe_modules/support_3pp/resolved_spec.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2018 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import re def parse_name_version(name_version): """Parses a package 'name', or 'name@version'. Returns (name, version). If the input was just 'name' t...
33.141129
80
0.689135
21ac9c41d079c721c4d5725334757ec5fd0fe143
931
py
Python
python/super_resolution_token_demo.py
huaweicloudsdk/ais-sdk
623dd366dc3b26ef2eb949a8284f5b0a55e5b0e6
[ "Apache-2.0" ]
48
2018-03-13T06:21:46.000Z
2021-06-23T02:32:14.000Z
python/super_resolution_token_demo.py
huaweicloudsdk/ais-sdk
623dd366dc3b26ef2eb949a8284f5b0a55e5b0e6
[ "Apache-2.0" ]
29
2019-03-27T08:52:38.000Z
2021-12-14T21:15:11.000Z
python/super_resolution_token_demo.py
huaweicloudsdk/ais-sdk
623dd366dc3b26ef2eb949a8284f5b0a55e5b0e6
[ "Apache-2.0" ]
38
2018-03-22T01:06:51.000Z
2020-12-30T12:42:42.000Z
# -*- coding:utf-8 -*- from ais_sdk.gettoken import get_token from ais_sdk.utils import encode_to_base64 from ais_sdk.utils import decode_to_wave_file from ais_sdk.super_resolution import super_resolution from ais_sdk.utils import init_global_env import json if __name__ == '__main__': # Services currently support ...
37.24
108
0.729323
21acdd30f14b86d6efe63abb29ee53ddb33cf2d3
578
py
Python
test/test_data_prep.py
rileyhazard/SmartVA-Analyze-1
0573eeff27d03f54e7506db4f1631c0cd9f54bbb
[ "MIT" ]
4
2019-01-23T12:57:47.000Z
2020-04-18T17:13:08.000Z
test/test_data_prep.py
rileyhazard/SmartVA-Analyze-1
0573eeff27d03f54e7506db4f1631c0cd9f54bbb
[ "MIT" ]
4
2019-01-09T22:10:07.000Z
2022-02-16T04:57:06.000Z
test/test_data_prep.py
rileyhazard/SmartVA-Analyze-1
0573eeff27d03f54e7506db4f1631c0cd9f54bbb
[ "MIT" ]
11
2018-12-11T22:01:13.000Z
2022-01-07T11:38:02.000Z
import pytest from smartva.data_prep import DataPrep class Preppy(DataPrep): INPUT_FILENAME_TEMPLATE = 'preppy_input.csv' OUPUT_FILENAME_TEMPLATE = 'preppy_output.csv' @pytest.fixture def prep(tmpdir): return Preppy(tmpdir.strpath, short_form=False) def test_malformed_jagged_csv(prep): data="""h1...
24.083333
61
0.705882
21ad1c6056471db73c95d551fc2c9a0dac724723
12,887
py
Python
train.py
fyabc/BT4MolGen
05d161ae9a7dbbcc3c95c71417d5e7f92ed0572c
[ "MIT" ]
3
2021-11-01T02:05:20.000Z
2021-12-09T05:42:17.000Z
train.py
fyabc/BT4MolGen
05d161ae9a7dbbcc3c95c71417d5e7f92ed0572c
[ "MIT" ]
null
null
null
train.py
fyabc/BT4MolGen
05d161ae9a7dbbcc3c95c71417d5e7f92ed0572c
[ "MIT" ]
1
2022-01-01T18:54:14.000Z
2022-01-01T18:54:14.000Z
#!/usr/bin/env python3 -u # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ Train a new model on one or across multiple GPUs. """ import collections import math import random import torch...
37.791789
102
0.651664
21ad2074cac9079f1ac1a1b024f134e848e9535f
289
py
Python
examples/attributes/position.py
DaAwesomeP/ARENA-py
876a6b0c6800d7c2b1a592fd5f25529b9c140efc
[ "BSD-3-Clause" ]
4
2021-01-22T23:49:52.000Z
2022-03-04T06:01:18.000Z
examples/attributes/position.py
DaAwesomeP/ARENA-py
876a6b0c6800d7c2b1a592fd5f25529b9c140efc
[ "BSD-3-Clause" ]
50
2020-08-14T22:24:36.000Z
2022-03-18T20:41:12.000Z
examples/attributes/position.py
DaAwesomeP/ARENA-py
876a6b0c6800d7c2b1a592fd5f25529b9c140efc
[ "BSD-3-Clause" ]
10
2019-10-28T20:15:18.000Z
2021-06-29T18:02:06.000Z
from arena import * scene = Scene(host="arenaxr.org", scene="example") position = (1,2,-3) # Position(1,2,-3) works too @scene.run_once def make_oct(): my_oct = Octahedron( object_id="my_oct", position=position ) scene.add_object(my_oct) scene.run_tasks()
17
50
0.647059
21ad79692de2c2bcff6841ae256263c42e5123c5
2,045
py
Python
pyqir-generator/tests/test_conversions.py
LaurentAjdnik/pyqir
68fe277e0b905d3ba41256f2473eb51beac0863f
[ "MIT" ]
22
2021-11-30T21:52:30.000Z
2022-03-17T02:05:17.000Z
pyqir-generator/tests/test_conversions.py
LaurentAjdnik/pyqir
68fe277e0b905d3ba41256f2473eb51beac0863f
[ "MIT" ]
51
2021-11-24T03:42:49.000Z
2022-03-25T20:51:24.000Z
pyqir-generator/tests/test_conversions.py
LaurentAjdnik/pyqir
68fe277e0b905d3ba41256f2473eb51beac0863f
[ "MIT" ]
6
2021-11-30T22:36:49.000Z
2022-03-17T17:21:16.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. from pyqir.generator import BasicQisBuilder, SimpleModule, ir_to_bitcode, bitcode_to_ir def get_module() -> SimpleModule: mod = SimpleModule("test", 1, 1) qis = BasicQisBuilder(mod.builder) qis.m(mod.qubits[0], mod.results[0]) r...
35.877193
87
0.733985
21ad834e23c9e7dc62bb8868d7da48f247799eee
4,768
py
Python
BertSum/src/models/adam.py
BoonthichaSaejia/ThaiSum
fdb99eab23e60a933acf4e84836f53ddf05b7c8b
[ "Apache-2.0" ]
23
2020-11-20T09:10:10.000Z
2022-01-30T16:44:39.000Z
BertSum/src/models/adam.py
BoonthichaSaejia/ThaiSum
fdb99eab23e60a933acf4e84836f53ddf05b7c8b
[ "Apache-2.0" ]
2
2020-12-02T13:41:57.000Z
2021-11-07T17:19:57.000Z
BertSum/src/models/adam.py
nakhunchumpolsathien/ThaiSum
c72b26799c60ff10f31d28af6df41ea97c732285
[ "Apache-2.0" ]
7
2020-12-03T08:16:38.000Z
2021-12-05T13:05:06.000Z
import math import torch from torch.optim.optimizer import Optimizer class Adam(Optimizer): r"""Implements Adam algorithm. It has been proposed in `Adam: A Method for Stochastic Optimization`_. Arguments: params (iterable): iterable of parameters to optimize or dicts defining ...
43.743119
117
0.562919
21ad8e1e74d26665d6a7b2ba8c236a97a5e33add
830
py
Python
src/main/python/test_support/extrapath.py
shuangshuangwang/SMV
021faece3f0fefca6051df8415789b14bc9a60ed
[ "Apache-2.0" ]
null
null
null
src/main/python/test_support/extrapath.py
shuangshuangwang/SMV
021faece3f0fefca6051df8415789b14bc9a60ed
[ "Apache-2.0" ]
null
null
null
src/main/python/test_support/extrapath.py
shuangshuangwang/SMV
021faece3f0fefca6051df8415789b14bc9a60ed
[ "Apache-2.0" ]
null
null
null
# # This file is 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 # distr...
33.2
74
0.73253
21ada82c4dd81869fbef9aa5813eda236408a077
7,168
py
Python
build_matrices.py
oaxiom/te_hic
979a4927bac2ea488aa72ede7d864ec9a74e7bb1
[ "MIT" ]
1
2020-09-03T00:35:15.000Z
2020-09-03T00:35:15.000Z
build_matrices.py
oaxiom/te_hic
979a4927bac2ea488aa72ede7d864ec9a74e7bb1
[ "MIT" ]
null
null
null
build_matrices.py
oaxiom/te_hic
979a4927bac2ea488aa72ede7d864ec9a74e7bb1
[ "MIT" ]
1
2020-05-06T04:29:24.000Z
2020-05-06T04:29:24.000Z
#!/usr/bin/env python3 ''' Part of the te_hic suite Build four (raw) matrices: 1. All 2. TE<=>TE only 3. TE<=>non-TE only 4. non-TE <=> non-TE only TODO: 5. TE<=>non-TE and TE<=>TE only? ''' import sys, os, math, numpy, shutil, gzip #import glbase3 import common class build_matrices: def __init__(self, script...
35.661692
167
0.559989
21adb7f150b48bf8449a7baaedba8256a5488b71
1,483
py
Python
src/ice/parsing/tests/rom_parser_tests.py
geraldhumphries/Ice
ec466e85407361bbbc87b9e484fe427c1769b4fe
[ "MIT" ]
null
null
null
src/ice/parsing/tests/rom_parser_tests.py
geraldhumphries/Ice
ec466e85407361bbbc87b9e484fe427c1769b4fe
[ "MIT" ]
null
null
null
src/ice/parsing/tests/rom_parser_tests.py
geraldhumphries/Ice
ec466e85407361bbbc87b9e484fe427c1769b4fe
[ "MIT" ]
null
null
null
import mock import unittest from nose_parameterized import parameterized from ice.parsing.rom_parser import ROMParser class ROMFinderTests(unittest.TestCase): def setUp(self): self.mock_logger = mock.MagicMock() self.parser = ROMParser(self.mock_logger) @parameterized.expand([ ("The Legend of Zeld...
46.34375
146
0.683749
21ae281147cf7ce43c2a586aefe3f4e41f083f92
11,516
py
Python
custom_components/circadian_lighting/__init__.py
aneisch/home-assistant
d8a866d75f512d23ffa7b9e5d82d7c575ece3c76
[ "Apache-2.0" ]
18
2016-08-10T01:02:27.000Z
2017-10-26T04:19:49.000Z
custom_components/circadian_lighting/__init__.py
aneisch/home-assistant
d8a866d75f512d23ffa7b9e5d82d7c575ece3c76
[ "Apache-2.0" ]
null
null
null
custom_components/circadian_lighting/__init__.py
aneisch/home-assistant
d8a866d75f512d23ffa7b9e5d82d7c575ece3c76
[ "Apache-2.0" ]
4
2017-04-20T19:41:21.000Z
2017-05-16T17:10:05.000Z
""" Circadian Lighting Component for Home-Assistant. This component calculates color temperature and brightness to synchronize your color changing lights with perceived color temperature of the sky throughout the day. This gives your environment a more natural feel, with cooler whites during the midday and warmer tint...
35.763975
88
0.638937