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
7975f537736459a500a96d0a760bb3b8d74fb58e
2,559
py
Python
core/emotions.py
guilhermealvess/emotions
a65df8f44a9ff4c25421e4b5bf8dc5d918dbd38c
[ "MIT" ]
null
null
null
core/emotions.py
guilhermealvess/emotions
a65df8f44a9ff4c25421e4b5bf8dc5d918dbd38c
[ "MIT" ]
null
null
null
core/emotions.py
guilhermealvess/emotions
a65df8f44a9ff4c25421e4b5bf8dc5d918dbd38c
[ "MIT" ]
1
2019-01-12T13:17:31.000Z
2019-01-12T13:17:31.000Z
import os from collections import OrderedDict import numpy as np from core.gabor import GaborBank from core.data import FaceData from core.faces import FaceDetector from sklearn import svm from sklearn.externals import joblib class InvalidModelException(Exception): pass class EmotionsDetector: def __ini...
33.233766
78
0.545526
7975f544aed2c27b11f9e111362d0d06f24dcdb7
19,551
py
Python
espnet2/train/reporter.py
nmfisher/espnet
529a69b6a7d8627caf12372e3b8b206289f714bb
[ "Apache-2.0" ]
5,053
2017-12-13T06:21:41.000Z
2022-03-31T13:38:29.000Z
espnet2/train/reporter.py
nmfisher/espnet
529a69b6a7d8627caf12372e3b8b206289f714bb
[ "Apache-2.0" ]
3,666
2017-12-14T05:58:50.000Z
2022-03-31T22:11:49.000Z
espnet2/train/reporter.py
nmfisher/espnet
529a69b6a7d8627caf12372e3b8b206289f714bb
[ "Apache-2.0" ]
1,709
2017-12-13T01:02:42.000Z
2022-03-31T11:57:45.000Z
"""Reporter module.""" from collections import defaultdict from contextlib import contextmanager import dataclasses import datetime from distutils.version import LooseVersion import logging from pathlib import Path import time from typing import ContextManager from typing import Dict from typing import List from typing...
33.535163
88
0.547645
7975f6d8890144f32ebd51a0a5e6bdbdec7b45d2
1,309
py
Python
tests/test_serialization.py
DreamEmulator/OpenCLSim
3e35f8d8c308d6f55b8cc3b695603d755b1ee3d4
[ "MIT" ]
null
null
null
tests/test_serialization.py
DreamEmulator/OpenCLSim
3e35f8d8c308d6f55b8cc3b695603d755b1ee3d4
[ "MIT" ]
null
null
null
tests/test_serialization.py
DreamEmulator/OpenCLSim
3e35f8d8c308d6f55b8cc3b695603d755b1ee3d4
[ "MIT" ]
null
null
null
import json import simpy import pytest import datetime import time from openclsim import core @pytest.fixture def env(): simulation_start = datetime.datetime(2019, 1, 1) my_env = simpy.Environment(initial_time=time.mktime(simulation_start.timetuple())) my_env.epoch = time.mktime(simulation_start.timetup...
29.088889
86
0.686784
7975f70cbdefade863a7280a1fbe0588e45d629d
1,220
py
Python
focused_app/linux/models.py
danofsteel32/focused-app
c1e43a913484f765ce7ed171783e00fe07b4054f
[ "MIT" ]
1
2021-08-08T13:52:56.000Z
2021-08-08T13:52:56.000Z
focused_app/linux/models.py
danofsteel32/focused-app
c1e43a913484f765ce7ed171783e00fe07b4054f
[ "MIT" ]
null
null
null
focused_app/linux/models.py
danofsteel32/focused-app
c1e43a913484f765ce7ed171783e00fe07b4054f
[ "MIT" ]
null
null
null
""" linux/models.py Linux specific models""" from enum import Enum class DisplayServer(str, Enum): WAYLAND = "WAYLAND" X11 = "X11" class Desktop(str, Enum): GNOME = "GNOME" class Browser(str, Enum): CHROMIUM = "chromium-browser" GOOGLE_CHROME = "google-chrome" QUTEBROWSER = "org.qutebrowse...
18.208955
47
0.487705
7975f7fd26edaa1c3095319fb5893b656d550c4b
1,066
py
Python
mksc/core/cmd.py
HelloCoyen/mksc2
ede038b87b7a46c2872ac9ae744c4dbfe5d6fe48
[ "MIT" ]
null
null
null
mksc/core/cmd.py
HelloCoyen/mksc2
ede038b87b7a46c2872ac9ae744c4dbfe5d6fe48
[ "MIT" ]
null
null
null
mksc/core/cmd.py
HelloCoyen/mksc2
ede038b87b7a46c2872ac9ae744c4dbfe5d6fe48
[ "MIT" ]
null
null
null
import os import shutil import sys from mksc import __version__ def generate_template(name): """ 创建项目的工作目录与脚本文件 Args: name: 项目名 """ name = f'{name}_{__version__}' if os.path.exists(name): raise TypeError(f"Folder [{name}] is exists already, Please check out the work path") ...
24.790698
108
0.624765
7975f8e702f2df641015ad328943370523b576ae
705
py
Python
node_modules/gdax-trading-toolkit/node_modules/ccxt/examples/py/async-bitfinex-private-post-account-infos.py
hhussaini/H-Bitcoin-Trader
474a22296559f89e569099b0bf92359667ca70c4
[ "Apache-2.0" ]
null
null
null
node_modules/gdax-trading-toolkit/node_modules/ccxt/examples/py/async-bitfinex-private-post-account-infos.py
hhussaini/H-Bitcoin-Trader
474a22296559f89e569099b0bf92359667ca70c4
[ "Apache-2.0" ]
null
null
null
node_modules/gdax-trading-toolkit/node_modules/ccxt/examples/py/async-bitfinex-private-post-account-infos.py
hhussaini/H-Bitcoin-Trader
474a22296559f89e569099b0bf92359667ca70c4
[ "Apache-2.0" ]
1
2020-05-13T22:39:43.000Z
2020-05-13T22:39:43.000Z
# -*- coding: utf-8 -*- import asyncio import os import sys root = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) sys.path.append(root) import ccxt.async as ccxt # noqa: E402 async def test(exchange): print(await exchange.private_post_account_infos()) bitfinex = ccxt.bitfinex({...
26.111111
83
0.748936
7975f9a56cb80ae46bdeefb1d005368d48aa70ae
3,949
py
Python
ffx_rng_tracker/ui_tkinter/actions_tracker.py
Grayfox96/FFX-RNG-tracker
90f40dd396f46faa46043b271bd589de2640bf66
[ "MIT" ]
4
2021-10-30T09:38:04.000Z
2022-01-04T05:42:17.000Z
ffx_rng_tracker/ui_tkinter/actions_tracker.py
Grayfox96/FFX-RNG-tracker
90f40dd396f46faa46043b271bd589de2640bf66
[ "MIT" ]
null
null
null
ffx_rng_tracker/ui_tkinter/actions_tracker.py
Grayfox96/FFX-RNG-tracker
90f40dd396f46faa46043b271bd589de2640bf66
[ "MIT" ]
null
null
null
from ..data.characters import CHARACTERS from ..data.file_functions import get_notes from ..data.monsters import MONSTERS from ..events import Comment from ..ui_functions import (parse_action, parse_encounter, parse_roll, parse_stat_update) from .base_widgets import BaseWidget, BetterText ...
41.135417
78
0.567739
7975fa105a4cef5e7dff12e196f978f1935ea666
257
py
Python
pkgs/numba-0.24.0-np110py27_0/lib/python2.7/site-packages/numba/ctypes_support.py
wangyum/anaconda
6e5a0dbead3327661d73a61e85414cf92aa52be6
[ "Apache-2.0", "BSD-3-Clause" ]
1
2015-01-29T06:52:36.000Z
2015-01-29T06:52:36.000Z
pkgs/numba-0.24.0-np110py27_0/lib/python2.7/site-packages/numba/ctypes_support.py
wangyum/anaconda
6e5a0dbead3327661d73a61e85414cf92aa52be6
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
pkgs/numba-0.24.0-np110py27_0/lib/python2.7/site-packages/numba/ctypes_support.py
wangyum/anaconda
6e5a0dbead3327661d73a61e85414cf92aa52be6
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
""" This file fixes portability issues for ctypes """ from __future__ import absolute_import from numba.config import PYVERSION from ctypes import * if PYVERSION <= (2, 7): c_ssize_t = { 4: c_int32, 8: c_int64, }[sizeof(c_size_t)]
18.357143
45
0.669261
7975fa503bd11af829ee53267844813c40be4dca
1,347
py
Python
cm/cm_heat_demand/worker.py
historeno/enermaps
ad3a97636baa153a56367e374d0fef7f009bf19d
[ "Apache-2.0" ]
null
null
null
cm/cm_heat_demand/worker.py
historeno/enermaps
ad3a97636baa153a56367e374d0fef7f009bf19d
[ "Apache-2.0" ]
null
null
null
cm/cm_heat_demand/worker.py
historeno/enermaps
ad3a97636baa153a56367e374d0fef7f009bf19d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 from os.path import isfile, splitext import BaseCM.cm_base as cm_base import BaseCM.cm_input as cm_input from heat_demand import processing app = cm_base.get_default_app("heat_demand") schema_path = cm_base.get_default_schema_path() input_layers_path = cm_base.get_default_input_layers_path() w...
30.613636
83
0.727543
7975fa9afa6c8cc5fb778a3e7fde442be667668a
11,449
py
Python
rasa_core/remote.py
fdevillard/rasa_core
0d0c2f9d6bb3c0c5b0c1e83dab2d9d8b6819303d
[ "Apache-2.0" ]
1
2019-02-22T11:26:18.000Z
2019-02-22T11:26:18.000Z
rasa_core/remote.py
fdevillard/rasa_core
0d0c2f9d6bb3c0c5b0c1e83dab2d9d8b6819303d
[ "Apache-2.0" ]
null
null
null
rasa_core/remote.py
fdevillard/rasa_core
0d0c2f9d6bb3c0c5b0c1e83dab2d9d8b6819303d
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import io import json import logging import os import time import requests from future.moves.urllib.parse import quote_plus from requests.exceptions import RequestExcept...
37.537705
80
0.570705
7975fb1985e9669c30cf99ebfeb5d05ce4b868bd
1,690
py
Python
examples/napari-and-1d-live-callback.py
lukasz-migas/napari-1d
b0f081a8711ae941b3e4b5c58c3aea56bd0e3277
[ "BSD-3-Clause" ]
13
2021-08-27T23:01:09.000Z
2022-03-22T13:51:35.000Z
examples/napari-and-1d-live-callback.py
lukasz-migas/napari-1d
b0f081a8711ae941b3e4b5c58c3aea56bd0e3277
[ "BSD-3-Clause" ]
71
2021-08-28T13:29:17.000Z
2022-03-28T21:22:12.000Z
examples/napari-and-1d-live-callback.py
lukasz-migas/napari-1d
b0f081a8711ae941b3e4b5c58c3aea56bd0e3277
[ "BSD-3-Clause" ]
null
null
null
"""Create simple callback that modifies the line visual.""" from skimage import data from skimage import measure import numpy as np import napari import napari_plot from napari_plot._qt.qt_viewer import QtViewer def _get_line_data(image, start, end): return measure.profile_line(image, start, end, mode="nearest") ...
28.166667
77
0.715385
7975fb5eb96aab5f3644a99d26f61492732d2f4f
894
py
Python
ml_mnist/utils/_random.py
YashNita/MNIST_Challange_SOL
377d8683bb0b0be2601d467f677035ecc0762888
[ "MIT" ]
62
2017-09-11T19:14:35.000Z
2018-11-17T19:05:07.000Z
ml_mnist/utils/_random.py
YashNita/MNIST_Challange_SOL
377d8683bb0b0be2601d467f677035ecc0762888
[ "MIT" ]
2
2017-09-13T09:51:31.000Z
2017-09-17T09:06:03.000Z
ml_mnist/utils/_random.py
YashNita/MNIST_Challange_SOL
377d8683bb0b0be2601d467f677035ecc0762888
[ "MIT" ]
9
2017-09-12T04:30:32.000Z
2017-11-29T08:37:59.000Z
import numpy as np class RNG(np.random.RandomState): """Class encapsulating random number generator. Creates RNG from `seed`: If `seed` is None, return default RNG. If `seed` is int or [int], return new RNG instance seeded with it. Raises ------ TypeError If `seed` is none from t...
21.285714
70
0.597315
7975fbd654e015e57d93b1cd2d875b48d893e956
1,830
py
Python
aliyun-python-sdk-cloudauth/aliyunsdkcloudauth/request/v20171117/SubmitMaterialsRequest.py
xiaozhao1/aliyun-openapi-python-sdk
7297b69619fbe18a053ce552df9ab378b7c5719f
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-cloudauth/aliyunsdkcloudauth/request/v20171117/SubmitMaterialsRequest.py
xiaozhao1/aliyun-openapi-python-sdk
7297b69619fbe18a053ce552df9ab378b7c5719f
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-cloudauth/aliyunsdkcloudauth/request/v20171117/SubmitMaterialsRequest.py
xiaozhao1/aliyun-openapi-python-sdk
7297b69619fbe18a053ce552df9ab378b7c5719f
[ "Apache-2.0" ]
1
2021-01-26T05:01:42.000Z
2021-01-26T05:01:42.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
38.125
103
0.755738
7975fbd89bfb2c56a8b42d71bec11c2ba75e7ed5
3,262
py
Python
dragonfly/examples.py
stchepanhagn/dragonfly
7ac5249c2d4159694536fc76d673e56823f558bf
[ "MIT" ]
1
2019-02-15T18:07:02.000Z
2019-02-15T18:07:02.000Z
dragonfly/examples.py
flowef/dragonfly-sync-lib
7ac5249c2d4159694536fc76d673e56823f558bf
[ "MIT" ]
null
null
null
dragonfly/examples.py
flowef/dragonfly-sync-lib
7ac5249c2d4159694536fc76d673e56823f558bf
[ "MIT" ]
null
null
null
# MIT License # # Copyright (c) 2019 Flow Executive Finders # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modi...
36.244444
79
0.57756
7975fbfffae59b3d64085ccdd7032be44d8f8681
1,474
py
Python
python/snewpy/tests/test_neutrino.py
joshuashzha/snewpy
5ecefc2b46dfb6f9867e6fe476dc78503077b6e2
[ "BSD-3-Clause" ]
null
null
null
python/snewpy/tests/test_neutrino.py
joshuashzha/snewpy
5ecefc2b46dfb6f9867e6fe476dc78503077b6e2
[ "BSD-3-Clause" ]
null
null
null
python/snewpy/tests/test_neutrino.py
joshuashzha/snewpy
5ecefc2b46dfb6f9867e6fe476dc78503077b6e2
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Unit tests for the neutrino submodule. """ from snewpy.neutrino import Flavor, MassHierarchy, MixingParameters from astropy import units as u def test_flavor(): nue = Flavor.NU_E assert(nue.is_electron) assert(nue.is_neutrino) assert(not nue.is_antineutrino) nux = F...
28.346154
67
0.673677
7975fc07cfe0ad36408f689f2b73f88829bb4407
1,547
py
Python
aiida_nanotech_empa/schedulers/lsf_ethz_euler.py
nanotech-empa/aiida-nanotech-empa
4aeb5133c5c1367a09f195e9283333aa2d49e269
[ "MIT" ]
null
null
null
aiida_nanotech_empa/schedulers/lsf_ethz_euler.py
nanotech-empa/aiida-nanotech-empa
4aeb5133c5c1367a09f195e9283333aa2d49e269
[ "MIT" ]
10
2020-09-05T11:04:34.000Z
2022-02-01T11:14:36.000Z
aiida_nanotech_empa/schedulers/lsf_ethz_euler.py
nanotech-empa/aiida-nanotech-empa
4aeb5133c5c1367a09f195e9283333aa2d49e269
[ "MIT" ]
null
null
null
from aiida.plugins import SchedulerFactory LsfScheduler = SchedulerFactory("lsf") class ETHZEulerLsfScheduler(LsfScheduler): """ The ETHZ Euler LSF scheduler requires memory and scratch space to be reserved with the line #BSUB -R "rusage[mem=X,scratch=Y]" where X and Y are specified in units of ...
37.731707
82
0.60181
7975fd34fa0551844ef2e244ae9ee72149db9aab
7,346
py
Python
osbot_gsuite/apis/GSheets.py
pbx-gs/gsbot-gsuite
21cd88d8aa92d8a2df4c02cf603da56174922766
[ "Apache-2.0" ]
3
2019-10-30T14:45:19.000Z
2021-10-02T04:24:51.000Z
osbot_gsuite/apis/GSheets.py
pbx-gs/gsbot-gsuite
21cd88d8aa92d8a2df4c02cf603da56174922766
[ "Apache-2.0" ]
1
2019-04-30T12:39:14.000Z
2019-04-30T12:39:14.000Z
osbot_gsuite/apis/GSheets.py
pbx-gs/OSBot-gsuite
21cd88d8aa92d8a2df4c02cf603da56174922766
[ "Apache-2.0" ]
null
null
null
from osbot_gsuite.apis.GDrive import GDrive from osbot_gsuite.apis.GSuite import GSuite class GSheets: def __init__(self, gsuite_secret_id=None): self.gdrive = GDrive(gsuite_secret_id) self.spreadsheets = GSuite(gsuite_secret_id).sheets_v4().spreadsheets() def batch_update(self, file_i...
47.089744
156
0.537844
7975fde38b3faaa6433d0b5bc7b1081529e57824
959
py
Python
model-optimizer/extensions/ops/instance_normalization_test.py
calvinfeng/openvino
11f591c16852637506b1b40d083b450e56d0c8ac
[ "Apache-2.0" ]
null
null
null
model-optimizer/extensions/ops/instance_normalization_test.py
calvinfeng/openvino
11f591c16852637506b1b40d083b450e56d0c8ac
[ "Apache-2.0" ]
19
2021-03-26T08:11:00.000Z
2022-02-21T13:06:26.000Z
model-optimizer/extensions/ops/instance_normalization_test.py
calvinfeng/openvino
11f591c16852637506b1b40d083b450e56d0c8ac
[ "Apache-2.0" ]
1
2021-07-28T17:30:46.000Z
2021-07-28T17:30:46.000Z
""" Copyright (C) 2018-2021 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to i...
34.25
73
0.762252
7975fe63ca82c430dc534214fd61b19d6fa30ce2
6,205
py
Python
multiagent/scenarios/simple_tag_guided_2v1.py
amanmalali/reinforment-learning-competition-and-cooperation
2d3ed7a57f6c2882999489f8f5f54fceb8701b50
[ "MIT" ]
1
2021-12-15T10:58:09.000Z
2021-12-15T10:58:09.000Z
multiagent/scenarios/simple_tag_guided_2v1.py
amanmalali/reinforment-learning-competition-and-cooperation
2d3ed7a57f6c2882999489f8f5f54fceb8701b50
[ "MIT" ]
null
null
null
multiagent/scenarios/simple_tag_guided_2v1.py
amanmalali/reinforment-learning-competition-and-cooperation
2d3ed7a57f6c2882999489f8f5f54fceb8701b50
[ "MIT" ]
2
2018-10-04T02:39:23.000Z
2021-12-15T10:59:16.000Z
import numpy as np from multiagent.core import World, Agent, Landmark from multiagent.scenario import BaseScenario class Scenario(BaseScenario): def make_world(self): world = World() # set any world properties first world.dim_c = 2 num_good_agents = 2 num_adversaries = 1 ...
37.835366
109
0.57357
7975ff1d3f481ca48b173bf14c485971632eb57f
5,253
py
Python
packages/preprocess.py
gorchard/facenet
a138b8c08ecd763e067b244b37cec62766658af3
[ "MIT" ]
null
null
null
packages/preprocess.py
gorchard/facenet
a138b8c08ecd763e067b244b37cec62766658af3
[ "MIT" ]
null
null
null
packages/preprocess.py
gorchard/facenet
a138b8c08ecd763e067b244b37cec62766658af3
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import numpy as np import tensorflow as tf from scipy import misc from packages import facenet, detect_face class preprocesses: def __init__(self, input_datadir, output_datadir): self....
50.509615
124
0.477822
7975ff9bdbf62b60696fea453f5fe349edde5d2b
218
py
Python
celalbugra/requestexamples/deleteExample.py
ibrahimediz/flaskrest
e0d52d35dc5b3aff8a7a15832c84e1c3882c4f36
[ "MIT" ]
null
null
null
celalbugra/requestexamples/deleteExample.py
ibrahimediz/flaskrest
e0d52d35dc5b3aff8a7a15832c84e1c3882c4f36
[ "MIT" ]
null
null
null
celalbugra/requestexamples/deleteExample.py
ibrahimediz/flaskrest
e0d52d35dc5b3aff8a7a15832c84e1c3882c4f36
[ "MIT" ]
null
null
null
import requests api_url = "https://jsonplaceholder.typicode.com/todos/19" response = requests.get(api_url) print(response.json()) response = requests.delete(api_url) print(response.json()) print(response.status_code)
24.222222
57
0.788991
7975fffc7f5ae3a51d75d4b052ce54d497b91b57
13,906
py
Python
code/python/Formula/v1/fds/sdk/Formula/model/cross_sectional_request.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
6
2022-02-07T16:34:18.000Z
2022-03-30T08:04:57.000Z
code/python/Formula/v1/fds/sdk/Formula/model/cross_sectional_request.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
2
2022-02-07T05:25:57.000Z
2022-03-07T14:18:04.000Z
code/python/Formula/v1/fds/sdk/Formula/model/cross_sectional_request.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
null
null
null
""" FactSet Formula API **FactSet Formula API** FactSet’s Formula API is a modern, flexible, formula-based API that enables users to access FactSet’s wide range of financial data and content. The API offers two endpoints, one optimized for time-series analysis and one designed for cross-sectional analysis, p...
51.88806
2,620
0.614843
7976007d5627ff9f9ca81ccae7a3883e6019d613
498
py
Python
macros.py
bleach86/bitcoind-ncurses2
6b8b8de88655ffdbfc085fea55568e2766fb1b8a
[ "MIT" ]
null
null
null
macros.py
bleach86/bitcoind-ncurses2
6b8b8de88655ffdbfc085fea55568e2766fb1b8a
[ "MIT" ]
null
null
null
macros.py
bleach86/bitcoind-ncurses2
6b8b8de88655ffdbfc085fea55568e2766fb1b8a
[ "MIT" ]
null
null
null
# Copyright (c) 2014-2017 esotericnonsense (Daniel Edgecumbe) # Distributed under the MIT software license, see the accompanying # file COPYING or https://opensource.org/licenses/mit-license.php VERSION_STRING = "tuxcoind-ncurses v0.3.1" MODES = ["monitor", "peers", "wallet", "block", "transaction", "console", "net"]...
33.2
80
0.75502
79760129e69dd3cf469c7779a1dc447a97860569
29,498
py
Python
components/esp-cryptoauthlib/esp_cryptoauth_utility/helper_scripts/cert2certdef.py
muriloplinio/reconvexo
4f49aaf09e1650dd0a6a468daee6db8d32a74343
[ "Apache-2.0" ]
480
2021-07-15T05:32:09.000Z
2022-03-31T09:25:46.000Z
components/esp-cryptoauthlib/esp_cryptoauth_utility/helper_scripts/cert2certdef.py
muriloplinio/reconvexo
4f49aaf09e1650dd0a6a468daee6db8d32a74343
[ "Apache-2.0" ]
88
2020-12-19T02:39:12.000Z
2022-03-15T18:00:00.000Z
components/esp-cryptoauthlib/esp_cryptoauth_utility/helper_scripts/cert2certdef.py
muriloplinio/reconvexo
4f49aaf09e1650dd0a6a468daee6db8d32a74343
[ "Apache-2.0" ]
150
2021-07-15T05:58:30.000Z
2022-03-31T08:27:50.000Z
#!/usr/bin/env python # ############################################################################# # (c) 2017 Microchip Technology Inc. and its subsidiaries. You may use this # software and any derivatives exclusively with Microchip products. # # THIS SOFTWARE IS SUPPLIED BY MICROCHIP "AS IS". NO WARRANTIES, WHETH...
36.061125
118
0.628687
7976027305dcd7a957e853f3a2f90fa22770cd7d
23,021
py
Python
pm_membership.py
joshuawallace/M4_pm_membership
0a0ce546304ded33dfbfef3a38818a97de3e15b3
[ "BSD-3-Clause" ]
1
2018-11-15T19:37:44.000Z
2018-11-15T19:37:44.000Z
pm_membership.py
joshuawallace/M4_pm_membership
0a0ce546304ded33dfbfef3a38818a97de3e15b3
[ "BSD-3-Clause" ]
null
null
null
pm_membership.py
joshuawallace/M4_pm_membership
0a0ce546304ded33dfbfef3a38818a97de3e15b3
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """ pm_membership.py, code to fit and use a model fit to proper motions to determine cluster membership for M4. Author: Joshua Wallace, advised by Joel Hartman and Gaspar Bakos If you use this code, please cite (fill in information after publication) While this code is focused on M4, it can b...
53.043779
107
0.58451
797602908e5ab769db7b170b4898ffd96d0e6a98
95
py
Python
singlecellmultiomics/fragment/__init__.py
zztin/SingleCellMultiOmics
d3035c33eb1375f0703cc49537417b755ad8a693
[ "MIT" ]
17
2019-05-21T09:12:16.000Z
2022-02-14T19:26:58.000Z
singlecellmultiomics/fragment/__init__.py
zztin/SingleCellMultiOmics
d3035c33eb1375f0703cc49537417b755ad8a693
[ "MIT" ]
70
2019-05-20T08:08:45.000Z
2021-06-22T15:58:01.000Z
singlecellmultiomics/fragment/__init__.py
zztin/SingleCellMultiOmics
d3035c33eb1375f0703cc49537417b755ad8a693
[ "MIT" ]
7
2020-04-09T15:11:12.000Z
2022-02-14T15:23:31.000Z
from .fragment import * from .nlaIII import * from .chic import * from .scartrace import *
19
25
0.705263
7976034a1ca13e3c17175f3f88862e7ab5622582
534
py
Python
Lib/site-packages/plotly/validators/isosurface/caps/x/_fill.py
tytanya/my-first-blog
2b40adb0816c3546e90ad6ca1e7fb50d924c1536
[ "bzip2-1.0.6" ]
12
2020-04-18T18:10:22.000Z
2021-12-06T10:11:15.000Z
plotly/validators/isosurface/caps/x/_fill.py
Vesauza/plotly.py
e53e626d59495d440341751f60aeff73ff365c28
[ "MIT" ]
6
2021-03-18T22:27:08.000Z
2022-03-11T23:40:50.000Z
plotly/validators/isosurface/caps/x/_fill.py
Vesauza/plotly.py
e53e626d59495d440341751f60aeff73ff365c28
[ "MIT" ]
6
2020-04-18T23:07:08.000Z
2021-11-18T07:53:06.000Z
import _plotly_utils.basevalidators class FillValidator(_plotly_utils.basevalidators.NumberValidator): def __init__( self, plotly_name='fill', parent_name='isosurface.caps.x', **kwargs ): super(FillValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_...
29.666667
75
0.599251
7976036dd04717dd29741ff855b37221d4fc128e
222
py
Python
lesson_001/012_reverse_002.py
a1852rw/system_propraming
795ce06e9c1b48552577de472194646bab240541
[ "MIT" ]
2
2018-07-02T09:48:28.000Z
2018-07-04T10:17:40.000Z
lesson_001/012_reverse_002.py
a1852rw/aiit_system_programing
795ce06e9c1b48552577de472194646bab240541
[ "MIT" ]
null
null
null
lesson_001/012_reverse_002.py
a1852rw/aiit_system_programing
795ce06e9c1b48552577de472194646bab240541
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- def reserve(s): return s[::-1] # 引数「s」に格納されている文字列の最後から1文字ずつさかのぼって要素(文字)を取り出す orig = "good" result = reserve(orig) print(result) # 要件1:文字列を反転する関数「reverse」を書く # 出力2:doog
13.058824
45
0.675676
7976048e524d3ac55d59f959d5dde63030c9cfb9
412
py
Python
b2sdk/sync/__init__.py
jhart-r7/b2-sdk-python
d995013768ee9816244d1a6ce49ea6d91014982f
[ "MIT" ]
null
null
null
b2sdk/sync/__init__.py
jhart-r7/b2-sdk-python
d995013768ee9816244d1a6ce49ea6d91014982f
[ "MIT" ]
null
null
null
b2sdk/sync/__init__.py
jhart-r7/b2-sdk-python
d995013768ee9816244d1a6ce49ea6d91014982f
[ "MIT" ]
null
null
null
###################################################################### # # File: b2sdk/sync/__init__.py # # Copyright 2019 Backblaze Inc. All Rights Reserved. # # License https://www.backblaze.com/using_b2_code.html # ###################################################################### from .folder_parser import par...
25.75
70
0.524272
797605f4c492feff7b0f1ab56453793b41378750
584
py
Python
app/diagnostic/routes.py
benjaminhuanghuang/math_clone
8fd5d5ed878559629101c6c33d61f2ead80a652c
[ "MIT" ]
null
null
null
app/diagnostic/routes.py
benjaminhuanghuang/math_clone
8fd5d5ed878559629101c6c33d61f2ead80a652c
[ "MIT" ]
null
null
null
app/diagnostic/routes.py
benjaminhuanghuang/math_clone
8fd5d5ed878559629101c6c33d61f2ead80a652c
[ "MIT" ]
null
null
null
from flask import render_template, request, redirect, url_for , current_app from . import diagnostic @diagnostic.route('/makecrash') def makecrash(): return render_template('diagnostic/index.html') @diagnostic.route('/bottleprocessdemo') def bottle_process_demo(): return render_template('diagnostic/bottle_p...
25.391304
75
0.784247
7976065a327d47ad7762a51fdd4944c08a52c37c
927
py
Python
src/robusta/runner/log_init.py
kandahk/robusta
61a2001cb1c4e90e8a74b810463ec99e6cb80787
[ "MIT" ]
273
2021-12-28T20:48:48.000Z
2022-03-31T16:03:13.000Z
src/robusta/runner/log_init.py
kandahk/robusta
61a2001cb1c4e90e8a74b810463ec99e6cb80787
[ "MIT" ]
103
2022-01-10T11:45:47.000Z
2022-03-31T16:31:11.000Z
src/robusta/runner/log_init.py
kandahk/robusta
61a2001cb1c4e90e8a74b810463ec99e6cb80787
[ "MIT" ]
35
2021-12-30T15:30:14.000Z
2022-03-28T11:43:57.000Z
import logging import os import os.path import colorlog def init_logging(): logging_level = os.environ.get("LOG_LEVEL", "INFO") logging_format = "%(log_color)s%(asctime)s.%(msecs)03d %(levelname)-8s %(message)s" logging_datefmt = "%Y-%m-%d %H:%M:%S" if os.environ.get("ENABLE_COLORED_LOGS", "false").l...
31.965517
87
0.669903
797606a257dc5893b354ae6efc720c9d92a28431
2,407
py
Python
tests/test_parser_always.py
shendrekbharath/opsdroid
c4bd284a27c9cd98036705199d896ea20430e467
[ "Apache-2.0" ]
null
null
null
tests/test_parser_always.py
shendrekbharath/opsdroid
c4bd284a27c9cd98036705199d896ea20430e467
[ "Apache-2.0" ]
null
null
null
tests/test_parser_always.py
shendrekbharath/opsdroid
c4bd284a27c9cd98036705199d896ea20430e467
[ "Apache-2.0" ]
null
null
null
import asynctest import asynctest.mock as amock from opsdroid.__main__ import configure_lang from opsdroid.core import OpsDroid from opsdroid.matchers import match_always from opsdroid.events import Message from opsdroid.parsers.always import parse_always class TestParserAlways(asynctest.TestCase): """Test the ...
33.430556
79
0.646448
797606d4d10a6fd2c70a6407cb52a10f0fa1b85b
5,481
py
Python
meetup2xibo/log_summarizer/log_lines.py
jshprentz/meetup2xibo
236bef01305878943f27d246dac1b21cc78a521b
[ "MIT" ]
3
2019-11-29T04:32:49.000Z
2020-06-03T01:34:45.000Z
meetup2xibo/log_summarizer/log_lines.py
jshprentz/meetup2xibo
236bef01305878943f27d246dac1b21cc78a521b
[ "MIT" ]
194
2020-06-01T01:42:41.000Z
2021-08-02T10:25:58.000Z
meetup2xibo/log_summarizer/log_lines.py
jshprentz/meetup2xibo
236bef01305878943f27d246dac1b21cc78a521b
[ "MIT" ]
1
2019-07-31T14:59:05.000Z
2019-07-31T14:59:05.000Z
"""Various type of log lines.""" class LogLine: """A log line reporting an activity.""" def __init__(self, timestamp, action): """Initialize with a timestamp and an action.""" self._timestamp = timestamp self._action = action @property def timestamp(self): """Return ...
29.154255
78
0.659551
79760767eb6f7cda85d00b3bca894745e584e70b
4,427
py
Python
sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/_text_analytics_client.py
praveenkuttappan/azure-sdk-for-python
4b79413667b7539750a6c7dde15737013a3d4bd5
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/_text_analytics_client.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/_text_analytics_client.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.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.173469
634
0.682855
7976076ce401683cc0070365072d16827c00e825
3,734
py
Python
workspace/src/labs/src/lab5/LongitudinalController.py
goldeneye-barc/goldeneye-barc
f7341cbcc7ac860676a750e0d87f52c3488e49ee
[ "MIT" ]
null
null
null
workspace/src/labs/src/lab5/LongitudinalController.py
goldeneye-barc/goldeneye-barc
f7341cbcc7ac860676a750e0d87f52c3488e49ee
[ "MIT" ]
3
2020-06-05T17:44:59.000Z
2021-06-10T19:30:54.000Z
workspace/src/labs/src/lab5/LongitudinalController.py
goldeneye-barc/goldeneye-barc
f7341cbcc7ac860676a750e0d87f52c3488e49ee
[ "MIT" ]
1
2019-03-24T14:37:13.000Z
2019-03-24T14:37:13.000Z
#!/usr/bin/env python import rospy import time from barc.msg import ECU, Encoder from numpy import pi # from encoder v_meas = 0.0 t0 = time.time() ang_km1 = 0.0 ang_km2 = 0.0 n_FL = 0.0 n_FR = 0.0 n_BL = 0.0 n_BR = 0.0 r_tire = 0.05 # radius of the tire servo_pwm...
28.945736
101
0.615694
797607e026c7fad881b5b9f1a7b11d2e50195b02
4,100
py
Python
custom_components/dlink_presence/device_tracker.py
ayavilevich/homeassistant-dlink-presence
1e273cab8be80ffd9689be704b268f010933bf2f
[ "MIT" ]
7
2020-09-16T17:11:20.000Z
2022-01-08T04:45:48.000Z
custom_components/dlink_presence/device_tracker.py
ayavilevich/homeassistant-dlink-presence
1e273cab8be80ffd9689be704b268f010933bf2f
[ "MIT" ]
4
2020-09-22T13:25:51.000Z
2021-07-13T06:36:56.000Z
custom_components/dlink_presence/device_tracker.py
ayavilevich/homeassistant-dlink-presence
1e273cab8be80ffd9689be704b268f010933bf2f
[ "MIT" ]
null
null
null
"""Support for D-Link devices.""" import logging from homeassistant.components.device_tracker import ( DOMAIN, PLATFORM_SCHEMA, DeviceScanner, ) from .dlink_telnet import DLinkTelnet import voluptuous as vol from homeassistant.const import ( CONF_HOST, CONF_PASSWORD, CONF_PORT, CONF_USERNAM...
34.453782
102
0.649268
7976095f1e235260a043cea5bc0bdef3163dfb30
577
py
Python
examples/_empty/src/dataset.py
and-kul/catalyst
51428d7756e62b9b8ee5379f38e9fd576eeb36e5
[ "Apache-2.0" ]
1
2020-11-14T13:35:22.000Z
2020-11-14T13:35:22.000Z
examples/_empty/src/dataset.py
and-kul/catalyst
51428d7756e62b9b8ee5379f38e9fd576eeb36e5
[ "Apache-2.0" ]
1
2021-01-07T16:13:45.000Z
2021-01-21T09:27:54.000Z
examples/_empty/src/dataset.py
and-kul/catalyst
51428d7756e62b9b8ee5379f38e9fd576eeb36e5
[ "Apache-2.0" ]
1
2021-01-07T02:50:38.000Z
2021-01-07T02:50:38.000Z
from torch.utils.data import Dataset class SomeDataset(Dataset): """Class representing a `Dataset`.""" def __init__(self): """Docs? Contribution is welcome..""" pass def __getitem__(self, index: int): """Fetch a data sample for a given index. Args: index: ind...
20.607143
54
0.549393
797609c90e1dc8aa3d3a7cd4ff3f35b4e2ffbcd4
1,581
py
Python
research/hpc/molecular_dynamics/postprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/hpc/molecular_dynamics/postprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/hpc/molecular_dynamics/postprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 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...
32.265306
78
0.691335
79760a6cb2ff18fa1d2310225f1250b5a0f31cc4
3,335
py
Python
sitri/providers/contrib/json.py
Elastoo-Team/sitri
d5470d9a37d3c944c0976793fce80a630e5625b1
[ "MIT" ]
11
2020-12-16T07:00:29.000Z
2021-05-25T16:24:50.000Z
sitri/providers/contrib/json.py
Elastoo-Team/sitri
d5470d9a37d3c944c0976793fce80a630e5625b1
[ "MIT" ]
1
2021-06-30T05:42:46.000Z
2021-09-03T11:45:56.000Z
sitri/providers/contrib/json.py
Elastoo-Team/sitri
d5470d9a37d3c944c0976793fce80a630e5625b1
[ "MIT" ]
null
null
null
import json import os import typing from sitri.providers.base import ConfigProvider, PathModeStateProvider class JsonConfigProvider(PathModeStateProvider, ConfigProvider): """Config provider for JSON.""" provider_code = "json" def __init__( self, json_path: str = "./data.json", ...
30.59633
97
0.605397
79760b4cca20fbb09116c70df81f20fd223f7188
771
py
Python
test/test_version_service_api.py
RyanSiu1995/argocd-python-client
2e8f097fe09f247a46ac70692241a93d1acd076a
[ "MIT" ]
1
2021-11-20T13:37:43.000Z
2021-11-20T13:37:43.000Z
test/test_version_service_api.py
RyanSiu1995/argocd-python-client
2e8f097fe09f247a46ac70692241a93d1acd076a
[ "MIT" ]
null
null
null
test/test_version_service_api.py
RyanSiu1995/argocd-python-client
2e8f097fe09f247a46ac70692241a93d1acd076a
[ "MIT" ]
null
null
null
""" Consolidate Services Description of all APIs # noqa: E501 The version of the OpenAPI document: version not set Generated by: https://openapi-generator.tech """ import unittest import argocd_python_client from argocd_python_client.api.version_service_api import VersionServiceApi # noqa: E501 ...
21.416667
88
0.693904
79760c1147e607e4ff97822609b948eafd1e7ef9
40
py
Python
bridge/python/wheel/__init__.py
mpbarnwell/lightstep-tracer-cpp
4f8f110e7b69d1b8d24c9ea130cd560295e479b6
[ "MIT" ]
47
2016-05-23T10:39:50.000Z
2022-03-08T08:46:25.000Z
bridge/python/wheel/__init__.py
mpbarnwell/lightstep-tracer-cpp
4f8f110e7b69d1b8d24c9ea130cd560295e479b6
[ "MIT" ]
63
2016-07-26T00:02:09.000Z
2022-03-11T07:20:44.000Z
bridge/python/wheel/__init__.py
mpbarnwell/lightstep-tracer-cpp
4f8f110e7b69d1b8d24c9ea130cd560295e479b6
[ "MIT" ]
19
2016-09-21T17:59:03.000Z
2021-09-16T06:42:40.000Z
from .lightstep_streaming import Tracer
20
39
0.875
79760e5393b0571d324e54b5ec687bc7aa030474
489
py
Python
conversion/indico_conversion/util.py
bpedersen2/indico-plugins-cern
c4f06d11d981c316fc8de2892758484deb58e2f5
[ "MIT" ]
null
null
null
conversion/indico_conversion/util.py
bpedersen2/indico-plugins-cern
c4f06d11d981c316fc8de2892758484deb58e2f5
[ "MIT" ]
null
null
null
conversion/indico_conversion/util.py
bpedersen2/indico-plugins-cern
c4f06d11d981c316fc8de2892758484deb58e2f5
[ "MIT" ]
null
null
null
# This file is part of the CERN Indico plugins. # Copyright (C) 2014 - 2022 CERN # # The CERN Indico plugins are free software; you can redistribute # them and/or modify them under the terms of the MIT License; see # the LICENSE file for more details. import os def get_pdf_title(attachment): name, ext = os.path....
28.764706
65
0.713701
79760f40c391eb4a608c5a5e83387df9a1aaa42f
161
py
Python
google_search/urls.py
jetjokers24895/reviewvn
6d5036ae948dbbf9a3281f61ad63aeddd5446674
[ "MIT" ]
null
null
null
google_search/urls.py
jetjokers24895/reviewvn
6d5036ae948dbbf9a3281f61ad63aeddd5446674
[ "MIT" ]
null
null
null
google_search/urls.py
jetjokers24895/reviewvn
6d5036ae948dbbf9a3281f61ad63aeddd5446674
[ "MIT" ]
null
null
null
from django.conf.urls import url from . import views app_name = "google_search" urlpatterns=[ url(r'^$',views.view_google_search,name="view_google_search") ]
26.833333
65
0.763975
79760fe5fb8f16a138e86668f715df0ecf5b22ae
3,259
py
Python
nsflow/nde/transforms/svd.py
JamesRitchie/nsf
5628a6f8190c9e3840208da8baf5cf403ca9b892
[ "MIT" ]
1
2020-09-24T18:29:23.000Z
2020-09-24T18:29:23.000Z
nsflow/nde/transforms/svd.py
JamesRitchie/nsf
5628a6f8190c9e3840208da8baf5cf403ca9b892
[ "MIT" ]
null
null
null
nsflow/nde/transforms/svd.py
JamesRitchie/nsf
5628a6f8190c9e3840208da8baf5cf403ca9b892
[ "MIT" ]
null
null
null
import numpy as np import torch from torch import nn from torch.nn import init from nsflow.nde import transforms from nsflow.nde.transforms.linear import Linear class SVDLinear(Linear): """A linear module using the SVD decomposition for the weight matrix.""" def __init__(self, features, num_householder, us...
31.95098
100
0.601718
7976109ae53398273960484d0272c780e7e970a1
1,862
py
Python
src/srcom/pending.py
Skycloudd/speedrunbot-plusplus
ced248f23464aa03f032f36e32f803997dfe4a5a
[ "Unlicense" ]
null
null
null
src/srcom/pending.py
Skycloudd/speedrunbot-plusplus
ced248f23464aa03f032f36e32f803997dfe4a5a
[ "Unlicense" ]
null
null
null
src/srcom/pending.py
Skycloudd/speedrunbot-plusplus
ced248f23464aa03f032f36e32f803997dfe4a5a
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3.9 """ This program returns a complete list of all the runs awaiting verificaiton for a given game (argv[1]) and optionally a second given game (argv[2]). """ from datetime import timedelta from sys import argv, exit, stderr from traceback import print_exception from typing import Literal from ...
25.162162
167
0.546724
797610dd10d8b659205e8dcb865f310bd1935433
1,739
py
Python
ibm_was/setup.py
01100010011001010110010101110000/integrations-core
b6216f96c9faa67e9e1e236caa8ddac597f0ef13
[ "BSD-3-Clause" ]
null
null
null
ibm_was/setup.py
01100010011001010110010101110000/integrations-core
b6216f96c9faa67e9e1e236caa8ddac597f0ef13
[ "BSD-3-Clause" ]
null
null
null
ibm_was/setup.py
01100010011001010110010101110000/integrations-core
b6216f96c9faa67e9e1e236caa8ddac597f0ef13
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2018-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) from codecs import open # To use a consistent encoding from os import path from setuptools import setup HERE = path.dirname(path.abspath(__file__)) # Get version info ABOUT = {} with open(path.join(HER...
31.053571
77
0.676251
7976112fc8d9bbe0115f883c3b8ba8588ede42f3
98
py
Python
app/main/__init__.py
petersoleeh/minute-pitch
c2da2f94e43c8159fca523c5baa7dbb3ee1c230b
[ "MIT" ]
null
null
null
app/main/__init__.py
petersoleeh/minute-pitch
c2da2f94e43c8159fca523c5baa7dbb3ee1c230b
[ "MIT" ]
null
null
null
app/main/__init__.py
petersoleeh/minute-pitch
c2da2f94e43c8159fca523c5baa7dbb3ee1c230b
[ "MIT" ]
null
null
null
from flask import Blueprint main = Blueprint('main', __name__) from . import views, error,forms
16.333333
34
0.755102
7976116c8c70be68f8226c75838a4e0cedfb86eb
3,832
py
Python
hummingbot/client/ui/interface_utils.py
BGTCapital/hummingbot
2c50f50d67cedccf0ef4d8e3f4c8cdce3dc87242
[ "Apache-2.0" ]
2
2022-03-03T10:00:27.000Z
2022-03-08T13:57:56.000Z
hummingbot/client/ui/interface_utils.py
BGTCapital/hummingbot
2c50f50d67cedccf0ef4d8e3f4c8cdce3dc87242
[ "Apache-2.0" ]
6
2022-01-31T15:44:54.000Z
2022-03-06T04:27:12.000Z
hummingbot/client/ui/interface_utils.py
BGTCapital/hummingbot
2c50f50d67cedccf0ef4d8e3f4c8cdce3dc87242
[ "Apache-2.0" ]
1
2022-03-31T07:04:49.000Z
2022-03-31T07:04:49.000Z
import asyncio import datetime import psutil from decimal import Decimal from typing import ( List, Set, Tuple, ) from hummingbot.client.performance import PerformanceMetrics from hummingbot.model.trade_fill import TradeFill s_decimal_0 = Decimal("0") def format_bytes(size): for unit in ["B", "KB",...
40.765957
117
0.535491
797612bc47a37d2bb81a0f65bf65676035fcf97a
4,384
py
Python
venv/lib/python3.6/site-packages/ansible_collections/dellemc/enterprise_sonic/plugins/module_utils/network/sonic/facts/vrfs/vrfs.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
1
2020-01-22T13:11:23.000Z
2020-01-22T13:11:23.000Z
venv/lib/python3.6/site-packages/ansible_collections/dellemc/enterprise_sonic/plugins/module_utils/network/sonic/facts/vrfs/vrfs.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/dellemc/enterprise_sonic/plugins/module_utils/network/sonic/facts/vrfs/vrfs.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
2
2020-03-11T12:19:45.000Z
2020-03-11T15:37:53.000Z
# # -*- coding: utf-8 -*- # © Copyright 2020 Dell Inc. or its subsidiaries. All Rights Reserved # GNU General Public License v3.0+ # (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) """ The sonic vrfs fact class It is in this file the configuration is collected from the device for a given resource, parsed, and...
36.231405
118
0.648266
797612daf09ff4c7e1dfc594780a79f8b58f686f
38,130
py
Python
msgraph-cli-extensions/v1_0/notes_v1_0/azext_notes_v1_0/vendored_sdks/notes/operations/_groups_onenote_pages_parent_section_parent_section_group_parent_notebook_operations.py
thewahome/msgraph-cli
33127d9efa23a0e5f5303c93242fbdbb73348671
[ "MIT" ]
null
null
null
msgraph-cli-extensions/v1_0/notes_v1_0/azext_notes_v1_0/vendored_sdks/notes/operations/_groups_onenote_pages_parent_section_parent_section_group_parent_notebook_operations.py
thewahome/msgraph-cli
33127d9efa23a0e5f5303c93242fbdbb73348671
[ "MIT" ]
22
2022-03-29T22:54:37.000Z
2022-03-29T22:55:27.000Z
msgraph-cli-extensions/v1_0/notes_v1_0/azext_notes_v1_0/vendored_sdks/notes/operations/_groups_onenote_pages_parent_section_parent_section_group_parent_notebook_operations.py
thewahome/msgraph-cli
33127d9efa23a0e5f5303c93242fbdbb73348671
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
48.083228
193
0.647705
797613885dff7f8c980ea69157ca350e1499aa72
775
py
Python
TD3/test_exploration.py
LiuXiang199x/DRL_Navigation
336e847bde8261d429fd2de8111b3d24c0ab4bae
[ "MIT" ]
null
null
null
TD3/test_exploration.py
LiuXiang199x/DRL_Navigation
336e847bde8261d429fd2de8111b3d24c0ab4bae
[ "MIT" ]
null
null
null
TD3/test_exploration.py
LiuXiang199x/DRL_Navigation
336e847bde8261d429fd2de8111b3d24c0ab4bae
[ "MIT" ]
null
null
null
import os import time import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import subprocess from collections import deque from test_env_exploration4 import GazeboEnv # Set the parameters for the implementation env_name = "HalfCheetahBulletEnv-v0" # Name of the PyBullet environment. T...
26.724138
124
0.714839
7976174fadd0e9ca7227a5f43b18adc2c6d64c61
1,148
py
Python
chainmodel/chainmodel.py
aaroncox/blockmodel
14fa856a439ee3563ea4cad7b77db9bb998bdc7e
[ "MIT" ]
1
2018-03-29T09:06:03.000Z
2018-03-29T09:06:03.000Z
chainmodel/chainmodel.py
aaroncox/blockmodel
14fa856a439ee3563ea4cad7b77db9bb998bdc7e
[ "MIT" ]
null
null
null
chainmodel/chainmodel.py
aaroncox/blockmodel
14fa856a439ee3563ea4cad7b77db9bb998bdc7e
[ "MIT" ]
null
null
null
class ChainModel(): def __init__(self, schema=None): if not schema: raise Exception('valid_schema_required') self.schema = schema def block(self, blockData): return self.schema.models['block'](blockData) def index(self, opData): return self.schema.models['index...
30.210526
72
0.586237
79761752fb5a461ce02a300d88b9993bd1ee1a0c
3,698
py
Python
solmate/programs/token_program/instructions/burn_checked.py
nimily/solmate
acd12d6e79598ca53fcb94b0fc3c524cb6c50b7c
[ "MIT" ]
3
2022-03-11T19:06:15.000Z
2022-03-22T02:40:53.000Z
solmate/programs/token_program/instructions/burn_checked.py
nimily/solmate
acd12d6e79598ca53fcb94b0fc3c524cb6c50b7c
[ "MIT" ]
null
null
null
solmate/programs/token_program/instructions/burn_checked.py
nimily/solmate
acd12d6e79598ca53fcb94b0fc3c524cb6c50b7c
[ "MIT" ]
null
null
null
# LOCK-BEGIN[imports]: DON'T MODIFY from ..constants import MAX_SIGNERS from .instruction_tag import InstructionTag from dataclasses import dataclass from io import BytesIO from podite import ( BYTES_CATALOG, U64, U8, ) from solana.publickey import PublicKey from solana.transaction import ( AccountMeta,...
27.191176
87
0.626014
797618b2f755270a6ac8b7cb937653e590ebbfe4
8,165
py
Python
train_functions.py
ManifoldFR/point-process-nets
d2fb419f2d5fe2adbb0714fa27d98672df07db68
[ "MIT" ]
43
2019-02-16T05:28:43.000Z
2021-12-19T17:07:36.000Z
train_functions.py
ManifoldFR/point-process-nets
d2fb419f2d5fe2adbb0714fa27d98672df07db68
[ "MIT" ]
4
2019-02-05T16:14:04.000Z
2021-08-12T04:02:45.000Z
train_functions.py
ManifoldFR/point-process-nets
d2fb419f2d5fe2adbb0714fa27d98672df07db68
[ "MIT" ]
8
2019-04-12T18:36:51.000Z
2020-11-09T14:11:18.000Z
""" Training loops for the various models. """ import torch from torch import Tensor from torch import nn import tqdm import numpy as np import sys from torch.optim import Optimizer from models.ctlstm import HawkesLSTM from models.decayrnn import HawkesDecayRNN from utils.load_synth_data import one_hot_embedding from t...
44.862637
120
0.627557
797618c70ae83a3f102e1fdf14af98a93870a96c
28,096
py
Python
tacker/api/v1/base.py
takahashi-tsc/tacker
a0ae01a13dcc51bb374060adcbb4fd484ab37156
[ "Apache-2.0" ]
116
2015-10-18T02:57:08.000Z
2022-03-15T04:09:18.000Z
tacker/api/v1/base.py
takahashi-tsc/tacker
a0ae01a13dcc51bb374060adcbb4fd484ab37156
[ "Apache-2.0" ]
6
2016-11-07T22:15:54.000Z
2021-05-09T06:13:08.000Z
tacker/api/v1/base.py
takahashi-tsc/tacker
a0ae01a13dcc51bb374060adcbb4fd484ab37156
[ "Apache-2.0" ]
166
2015-10-20T15:31:52.000Z
2021-11-12T08:39:49.000Z
# Copyright (c) 2012 OpenStack Foundation. # 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...
46.134647
79
0.578374
7976191feaa86690cbe888bedf930a03d4a4eddb
626
py
Python
chembddb/migrations/0020_auto_20170602_0900.py
shirish510/ChemBDDB
5094b21b14f026ef6f7867d1a2bcf94d34712e4b
[ "BSD-2-Clause" ]
1
2018-12-10T16:17:08.000Z
2018-12-10T16:17:08.000Z
chembddb/migrations/0020_auto_20170602_0900.py
shirish510/ChemBDDB
5094b21b14f026ef6f7867d1a2bcf94d34712e4b
[ "BSD-2-Clause" ]
null
null
null
chembddb/migrations/0020_auto_20170602_0900.py
shirish510/ChemBDDB
5094b21b14f026ef6f7867d1a2bcf94d34712e4b
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-06-02 09:00 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('chembddb', '0019_auto_20170602_0534'), ] operations = [ migrations.RemoveFi...
25.04
111
0.613419
7976197c46293f1946577c1e6fd09c7510c0de9f
17,644
py
Python
jicbioimage/core/image.py
JIC-CSB/jicbioimage.core
8a836b3af7c51926b2d18948babec593cf35ce55
[ "MIT" ]
1
2017-07-11T10:51:22.000Z
2017-07-11T10:51:22.000Z
jicbioimage/core/image.py
JIC-CSB/jicbioimage.core
8a836b3af7c51926b2d18948babec593cf35ce55
[ "MIT" ]
null
null
null
jicbioimage/core/image.py
JIC-CSB/jicbioimage.core
8a836b3af7c51926b2d18948babec593cf35ce55
[ "MIT" ]
null
null
null
"""Module for managing and accessing images.""" import os import json import base64 import tempfile import math import re import shutil import numpy as np import scipy.ndimage import skimage.io from jicbioimage.core.util.array import normalise def _sorted_listdir(directory): """Return list of files sorted in t...
31.507143
79
0.561551
79761a874184f893deb12c8648215ca465ea7031
2,473
py
Python
tidy_and_push.py
praffensperger/turn-taking-measurement-tools
98a1e528ef7e13f6fbc1bd55db1001284721edeb
[ "BSD-3-Clause" ]
null
null
null
tidy_and_push.py
praffensperger/turn-taking-measurement-tools
98a1e528ef7e13f6fbc1bd55db1001284721edeb
[ "BSD-3-Clause" ]
null
null
null
tidy_and_push.py
praffensperger/turn-taking-measurement-tools
98a1e528ef7e13f6fbc1bd55db1001284721edeb
[ "BSD-3-Clause" ]
null
null
null
#!/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # Turn-Taking Measurement Tools # # Tidy and push -- adds headers to source files. # By Peter Raffensperger 2012 #...
33.876712
104
0.653862
79761ba8dd58275b6aa1709fcacafdffaa0ce0e4
28
py
Python
fusions/mult/__init__.py
TianhaoFu/MultiBench
b174a3187124d6f92be1ff3b487eef292f7883bb
[ "MIT" ]
148
2021-03-06T06:54:13.000Z
2022-03-29T19:27:21.000Z
fusions/mult/__init__.py
TianhaoFu/MultiBench
b174a3187124d6f92be1ff3b487eef292f7883bb
[ "MIT" ]
10
2021-07-19T22:57:49.000Z
2022-02-04T03:12:29.000Z
fusions/mult/__init__.py
TianhaoFu/MultiBench
b174a3187124d6f92be1ff3b487eef292f7883bb
[ "MIT" ]
18
2021-07-22T07:17:27.000Z
2022-03-27T16:11:40.000Z
from .mult import MULTModel
14
27
0.821429
79761c3ed43685fef1173895d316152d70b212a4
3,316
py
Python
PhysicsPiece.py
NUUNNUU/SwarmControl
a6db5a1f6cd34065614e91ef423104a85489bc91
[ "MIT" ]
null
null
null
PhysicsPiece.py
NUUNNUU/SwarmControl
a6db5a1f6cd34065614e91ef423104a85489bc91
[ "MIT" ]
null
null
null
PhysicsPiece.py
NUUNNUU/SwarmControl
a6db5a1f6cd34065614e91ef423104a85489bc91
[ "MIT" ]
null
null
null
# PYGAME PHYSICS PIECE # NUUNNUU import time import math import random import pygame # PHYSICS PARAMETERS timestep = 10 # PYGAME PARAMETERS winSize = (1080,720) colorBack = (180,180,180) colorRobot = (255,255,255) colorLaser = (255,0,0) colorWall = (50,50,50) # BOT DIMENSIONS botLength = 10 # default botWidth = ...
27.633333
112
0.570567
79761c5c1e67d2d6701334e9c98efb77146857af
2,878
py
Python
distask/__init__.py
tickbh/distask
266435b1d5ba0b2b54e5f354781d48795b41bb3b
[ "MulanPSL-1.0" ]
1
2021-06-19T01:09:27.000Z
2021-06-19T01:09:27.000Z
distask/__init__.py
tickbh/distask
266435b1d5ba0b2b54e5f354781d48795b41bb3b
[ "MulanPSL-1.0" ]
null
null
null
distask/__init__.py
tickbh/distask
266435b1d5ba0b2b54e5f354781d48795b41bb3b
[ "MulanPSL-1.0" ]
1
2021-06-26T15:04:09.000Z
2021-06-26T15:04:09.000Z
from distask.serializers.json import JSONSerializer from distask.serializers.pickle import PickleSerializer from distask.locks.base import BaseLock from distask.datastores.base import DataStore from distask.schedulers.base import Scheduler from distask.schedulers.background import BackgroundScheduler from distask.tigge...
38.373333
92
0.615358
79761d21d9896fccf14db10a64ac6eeecd77dcb0
3,003
py
Python
numba/tests/test_runtests.py
rs2/numba
ee78bfe3e66439197905551a451ea264704a3cdd
[ "BSD-2-Clause" ]
null
null
null
numba/tests/test_runtests.py
rs2/numba
ee78bfe3e66439197905551a451ea264704a3cdd
[ "BSD-2-Clause" ]
null
null
null
numba/tests/test_runtests.py
rs2/numba
ee78bfe3e66439197905551a451ea264704a3cdd
[ "BSD-2-Clause" ]
null
null
null
from __future__ import division, print_function from numba import unittest_support as unittest import sys import subprocess class TestCase(unittest.TestCase): """These test cases are meant to test the Numba test infrastructure itself. Therefore, the logic used here shouldn't use numba.testing, but only the ...
38.5
85
0.624043
79761e0d1f88f46f56f211da13c165beaa2d6424
3,834
py
Python
src/dirbs/api/v2/resources/version.py
zlucifer/DIRBS-Core
702e93dcefdf0fb5787cb42c2a6bc2574e483057
[ "Unlicense" ]
1
2019-12-10T10:53:00.000Z
2019-12-10T10:53:00.000Z
src/dirbs/api/v2/resources/version.py
zlucifer/DIRBS-Core
702e93dcefdf0fb5787cb42c2a6bc2574e483057
[ "Unlicense" ]
null
null
null
src/dirbs/api/v2/resources/version.py
zlucifer/DIRBS-Core
702e93dcefdf0fb5787cb42c2a6bc2574e483057
[ "Unlicense" ]
null
null
null
""" DIRBS REST-ful version API module. SPDX-License-Identifier: BSD-4-Clause-Clear Copyright (c) 2018-2019 Qualcomm Technologies, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the disclaimer below) provided tha...
55.565217
119
0.779604
79761e32cf38876b619370eb2a778bf980e17dff
1,605
py
Python
10-sequence_hash_slice/vector_v2.py
sexyjoon/fluent-python
8635960f99cd3c46bd8b839e34a148885180164d
[ "CNRI-Python" ]
null
null
null
10-sequence_hash_slice/vector_v2.py
sexyjoon/fluent-python
8635960f99cd3c46bd8b839e34a148885180164d
[ "CNRI-Python" ]
1
2021-06-02T00:33:53.000Z
2021-06-02T00:33:53.000Z
10-sequence_hash_slice/vector_v2.py
sexyjoon/fluent-python
8635960f99cd3c46bd8b839e34a148885180164d
[ "CNRI-Python" ]
null
null
null
from array import array import reprlib import math class VectorV2: typecode = 'd' def __init__(self, components): self._components = array(self.typecode, components) def __iter__(self): return iter(self._components) def __repr__(self): components = reprlib.repr(self._compone...
23.602941
68
0.593769
79761f3a7933d539c4b5fde9bce18c5bd7f90993
2,573
py
Python
taxonomy/models.py
voorloopnul/pipetaxon
984ebab42ae07a1374e72e7b056baab5e2c43bdf
[ "MIT" ]
18
2018-11-26T03:04:18.000Z
2021-05-12T16:25:27.000Z
taxonomy/models.py
voorloopnul/pipetaxon
984ebab42ae07a1374e72e7b056baab5e2c43bdf
[ "MIT" ]
13
2018-11-26T17:41:41.000Z
2022-02-19T19:49:51.000Z
taxonomy/models.py
voorloopnul/pipetaxon
984ebab42ae07a1374e72e7b056baab5e2c43bdf
[ "MIT" ]
3
2018-11-26T15:20:15.000Z
2020-11-27T07:26:17.000Z
from django.db import models from django.utils.functional import cached_property ALL_RANKS = ['no rank', 'superkingdom', 'kingdom', 'subkingdom', 'superphylum', 'phylum', 'subphylum', 'genus', 'subspecies', 'subtribe', 'class', 'parvorder', 'tribe', 'varietas', 'subfamily', 'suborder', 'subclass', ...
29.918605
118
0.642052
79761f9a6afad817a79e6e84fb639890860e6c19
1,107
py
Python
source/data_handling.py
zsvizi/corona-virus-2020
71673bdb8e2b1dc55af1a7b5dce3adf92472972b
[ "Apache-2.0" ]
5
2020-03-05T10:26:40.000Z
2020-06-06T14:59:03.000Z
source/data_handling.py
zsvizi/corona-virus-2020
71673bdb8e2b1dc55af1a7b5dce3adf92472972b
[ "Apache-2.0" ]
null
null
null
source/data_handling.py
zsvizi/corona-virus-2020
71673bdb8e2b1dc55af1a7b5dce3adf92472972b
[ "Apache-2.0" ]
3
2020-03-07T15:07:55.000Z
2020-04-06T13:03:08.000Z
import csv import numpy as np from source.main_SEIR import solve_model from source.model import number_of_E_compartments, number_of_I_compartments, EpidemicModel def get_data(path): # Load data t, data = load_data(path) test = False if test: # generate data t, data = generate_data() ...
27
90
0.65944
79761fdeeeafd6352def89df63edfbe91280902e
6,330
py
Python
mlmodel/check_images.py
mrinaldi2/image-recognition
ff3a731be86402073a78351d16eb701ae1d10ec5
[ "Apache-2.0" ]
null
null
null
mlmodel/check_images.py
mrinaldi2/image-recognition
ff3a731be86402073a78351d16eb701ae1d10ec5
[ "Apache-2.0" ]
null
null
null
mlmodel/check_images.py
mrinaldi2/image-recognition
ff3a731be86402073a78351d16eb701ae1d10ec5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # */AIPND-revision/intropyproject-classify-pet-images/check_images.py # # TODO 0: Add your information below for Programmer & Date Created. # PROGRAMMER: Manuel R. # DATE CREATED: 2020-03-28 ...
48.320611
144
0.727646
79761fe086fd15bd38deb0c79307d93d890f90f3
20,923
py
Python
venv/Lib/site-packages/IPython/core/tests/test_inputsplitter.py
Tyranicangel/dtrans
a5e23d200a310701bb357bff09e35a5629a3f7a3
[ "BSD-3-Clause" ]
2
2015-02-10T18:00:31.000Z
2015-05-01T02:53:46.000Z
IPython/core/tests/test_inputsplitter.py
khinsen/ipython
dfd5cb1d3e34048593ba537dacdbef08fe766624
[ "BSD-3-Clause-Clear" ]
1
2021-09-11T14:30:32.000Z
2021-09-11T14:30:32.000Z
IPython/core/tests/test_inputsplitter.py
khinsen/ipython
dfd5cb1d3e34048593ba537dacdbef08fe766624
[ "BSD-3-Clause-Clear" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
# -*- coding: utf-8 -*- """Tests for the inputsplitter module. Authors ------- * Fernando Perez * Robert Kern """ from __future__ import print_function #----------------------------------------------------------------------------- # Copyright (C) 2010-2011 The IPython Development Team # # Distributed under the term...
35.704778
81
0.569182
79762045064ac3612697b0e876a5c4ac9b91f87d
9,400
py
Python
docs/conf.py
Udbhavbisarya23/owtf
27623937677caf975569f8de8af7983ca57611bc
[ "BSD-3-Clause" ]
1,514
2015-01-15T18:42:58.000Z
2022-03-25T08:14:40.000Z
docs/conf.py
justdvnsh/owtf
3a543b4eb2a7ad67155eb96dd2d99efbc181498d
[ "BSD-3-Clause" ]
652
2015-01-09T18:27:37.000Z
2022-03-21T18:41:01.000Z
docs/conf.py
justdvnsh/owtf
3a543b4eb2a7ad67155eb96dd2d99efbc181498d
[ "BSD-3-Clause" ]
506
2015-01-02T09:28:47.000Z
2022-03-10T23:27:27.000Z
# -*- coding: utf-8 -*- # # Offensive Web Testing Framework documentation build configuration file, # created by sphinx-quickstart on Thu Sep 11 19:54:14 2014. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # a...
31.972789
79
0.704681
797620ddca2cd20916d834d86186eb177e9a7497
3,213
py
Python
angr/knowledge_plugins/cfg/memory_data.py
Alexeyan/angr
445fa2036584598d310ffd58436566847bbc7e1c
[ "BSD-2-Clause" ]
null
null
null
angr/knowledge_plugins/cfg/memory_data.py
Alexeyan/angr
445fa2036584598d310ffd58436566847bbc7e1c
[ "BSD-2-Clause" ]
null
null
null
angr/knowledge_plugins/cfg/memory_data.py
Alexeyan/angr
445fa2036584598d310ffd58436566847bbc7e1c
[ "BSD-2-Clause" ]
null
null
null
# pylint:disable=no-member from ...protos import cfg_pb2 from ...serializable import Serializable class MemoryDataSort: Unspecified = None Unknown = "unknown" Integer = "integer" PointerArray = "pointer-array" String = "string" UnicodeString = "unicode" SegmentBoundary = "segment-boundary"...
29.75
114
0.630875
797620fd48388aa04b7143304095978e13756028
3,312
py
Python
script/analysis/zoh.py
soumide1102/nubhlight
85046add8b7e2c1419538864eb54205d33078772
[ "BSD-3-Clause" ]
16
2020-02-05T22:59:21.000Z
2022-03-18T11:05:37.000Z
script/analysis/zoh.py
soumide1102/nubhlight
85046add8b7e2c1419538864eb54205d33078772
[ "BSD-3-Clause" ]
13
2020-03-06T02:10:48.000Z
2021-06-15T20:00:30.000Z
script/analysis/zoh.py
soumide1102/nubhlight
85046add8b7e2c1419538864eb54205d33078772
[ "BSD-3-Clause" ]
4
2020-02-21T04:59:44.000Z
2020-12-10T21:42:12.000Z
################################################################################ # # # Profiles Integrated over disk # # ...
37.636364
80
0.508152
7976210085b390bd5522b7af202963e4e843244e
1,805
py
Python
22.py
xiaomiwujiecao/effectivePythonNote
772e81864b171dcc19b6bcb1b31fc61bcfa1b9fe
[ "MIT" ]
null
null
null
22.py
xiaomiwujiecao/effectivePythonNote
772e81864b171dcc19b6bcb1b31fc61bcfa1b9fe
[ "MIT" ]
null
null
null
22.py
xiaomiwujiecao/effectivePythonNote
772e81864b171dcc19b6bcb1b31fc61bcfa1b9fe
[ "MIT" ]
null
null
null
# encoding=utf-8 import collections class SimpleGradeBook(object): def __init__(self): self._grades = {} def add_student(self, name): self._grades[name] = {} def report_grade(self, name, subject, grade): by_subject = self._grades[name] grade_list = by_subject.setdefault(subject, []) grade_list.append(g...
22.283951
60
0.702493
79762130b236c304801512910f10611866c516af
1,340
py
Python
accounts/migrations/0018_auto_20200819_2302.py
noelsj007/ecommerceweb
e00edfe9110d2cc54deebd97043e0aa152c8afd4
[ "Unlicense" ]
null
null
null
accounts/migrations/0018_auto_20200819_2302.py
noelsj007/ecommerceweb
e00edfe9110d2cc54deebd97043e0aa152c8afd4
[ "Unlicense" ]
null
null
null
accounts/migrations/0018_auto_20200819_2302.py
noelsj007/ecommerceweb
e00edfe9110d2cc54deebd97043e0aa152c8afd4
[ "Unlicense" ]
null
null
null
# Generated by Django 3.0.5 on 2020-08-19 17:32 import accounts.models from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0017_auto_20200815_1658'), ] operations = [ migrations.CreateModel( name='Order', ...
38.285714
114
0.602239
797622ce072ed31f9b27ef041c545fc631e0754f
4,648
py
Python
lib/rosserial-0.7.7/rosserial_xbee/scripts/setup_xbee.py
andy-Chien/timda_dual_arm
94170d8889218ea0dc4e6031dcbbf59b7e37e70c
[ "MIT" ]
48
2016-11-10T06:00:27.000Z
2022-03-01T12:57:23.000Z
lib/rosserial-0.7.7/rosserial_xbee/scripts/setup_xbee.py
andy-Chien/timda_dual_arm
94170d8889218ea0dc4e6031dcbbf59b7e37e70c
[ "MIT" ]
13
2016-03-25T05:15:17.000Z
2018-05-30T15:53:12.000Z
lib/rosserial-0.7.7/rosserial_xbee/scripts/setup_xbee.py
andy-Chien/timda_dual_arm
94170d8889218ea0dc4e6031dcbbf59b7e37e70c
[ "MIT" ]
20
2017-02-28T13:24:31.000Z
2021-12-06T12:36:46.000Z
#! /usr/bin/env python # Software License Agreement (BSD License) # # Copyright (c) 2011, Willow Garage, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source cod...
30.181818
217
0.704389
797623a72d25d48ccca651eab4c9e1ee3852ac70
4,006
py
Python
create_file.py
Raqeeb01/Copy-in-IDE
346747345154d1c7279522f19079c315bde7a529
[ "Xnet", "X11" ]
null
null
null
create_file.py
Raqeeb01/Copy-in-IDE
346747345154d1c7279522f19079c315bde7a529
[ "Xnet", "X11" ]
null
null
null
create_file.py
Raqeeb01/Copy-in-IDE
346747345154d1c7279522f19079c315bde7a529
[ "Xnet", "X11" ]
null
null
null
#!/usr/bin/env python #to create a file in codesnippets folder import pyperclip import os import re import subprocess def get_extension(file_name): if file_name.find('.')!=-1: ext = file_name.split('.') return (ext[1]) else: return 'txt' def cut(str, len1): return str[len1 + ...
26.012987
233
0.589116
797623baee94e349da1b68beb2d8beb034669d55
547
py
Python
evdev/__init__.py
alexbprofit/python-evdev
a3a7c336e283711d8cb454159d0e860aa8cb4693
[ "BSD-3-Clause" ]
231
2015-01-16T06:49:32.000Z
2022-03-14T23:27:01.000Z
evdev/__init__.py
alexbprofit/python-evdev
a3a7c336e283711d8cb454159d0e860aa8cb4693
[ "BSD-3-Clause" ]
133
2015-03-07T18:27:17.000Z
2022-03-24T15:05:49.000Z
evdev/__init__.py
alexbprofit/python-evdev
a3a7c336e283711d8cb454159d0e860aa8cb4693
[ "BSD-3-Clause" ]
100
2015-05-18T15:17:12.000Z
2022-02-24T17:46:33.000Z
#-------------------------------------------------------------------------- # Gather everything into a single, convenient namespace. #-------------------------------------------------------------------------- from evdev.device import DeviceInfo, InputDevice, AbsInfo, EvdevError from evdev.events import InputEvent, Key...
49.727273
90
0.605119
797624865907743ca0599f03310d0d96d7e9e70b
10,582
py
Python
classification_models_3D/models/densenet.py
alxndrkalinin/classification_models_3D
4ae9f231619a80f5c654dc26a6194413ba9e875f
[ "MIT" ]
46
2020-08-10T11:56:16.000Z
2022-03-22T06:38:03.000Z
classification_models_3D/models/densenet.py
alxndrkalinin/classification_models_3D
4ae9f231619a80f5c654dc26a6194413ba9e875f
[ "MIT" ]
5
2021-01-14T05:37:02.000Z
2021-12-23T17:03:53.000Z
classification_models_3D/models/densenet.py
alxndrkalinin/classification_models_3D
4ae9f231619a80f5c654dc26a6194413ba9e875f
[ "MIT" ]
8
2020-11-13T22:34:23.000Z
2022-02-08T15:46:05.000Z
"""DenseNet models for Keras. # Reference paper - [Densely Connected Convolutional Networks] (https://arxiv.org/abs/1608.06993) (CVPR 2017 Best Paper Award) # Reference implementation - [Torch DenseNets] (https://github.com/liuzhuang13/DenseNet/blob/master/models/densenet.lua) - [TensorNets] (https://github.c...
35.75
90
0.592799
797624c2a37dc42ce11dbe16e94a1ad3b072ea05
2,277
py
Python
pointnet2/data/ActiveVisionDataset.py
archielee/Pointnet2_PyTorch
17790fe7c337e47ccf92390d979cd637fa552062
[ "Unlicense" ]
null
null
null
pointnet2/data/ActiveVisionDataset.py
archielee/Pointnet2_PyTorch
17790fe7c337e47ccf92390d979cd637fa552062
[ "Unlicense" ]
null
null
null
pointnet2/data/ActiveVisionDataset.py
archielee/Pointnet2_PyTorch
17790fe7c337e47ccf92390d979cd637fa552062
[ "Unlicense" ]
null
null
null
from __future__ import ( division, absolute_import, with_statement, print_function, unicode_literals, ) import torch import torch.utils.data as torch_data import numpy as np import os BASE_DIR = os.path.dirname(os.path.abspath(__file__)) class ActiveVisionDataset(torch_data.Dataset): def __in...
33
72
0.627141
797624c5d2912f663ee8e50a8cb6a099414dba58
2,135
py
Python
Superstore/superstore_process.py
Joy917/ToolScripts
c0d31754efb413f0d8a832fc6ec1464fdcd1bd3c
[ "MIT" ]
2
2021-12-07T12:14:38.000Z
2022-01-03T16:02:36.000Z
Superstore/superstore_process.py
Joy917/ToolScripts
c0d31754efb413f0d8a832fc6ec1464fdcd1bd3c
[ "MIT" ]
null
null
null
Superstore/superstore_process.py
Joy917/ToolScripts
c0d31754efb413f0d8a832fc6ec1464fdcd1bd3c
[ "MIT" ]
3
2019-04-14T20:08:51.000Z
2022-01-03T16:02:39.000Z
# !/usr/bin/env python # -*- coding: utf-8 -*- # @Date : 2019/4/10 23:19 # @Author : Joy # @Version : python3.6 import os import re from common.utils import common_error def exchange_captions_to_plays(captions_dir: str, des_dir=None): content_parttern1 = re.compile(r"0,,([\u4E00-\u9FA5\w\s\"\'\-.\,\?\!\$]+)...
42.7
116
0.557377
7976253998b8b77da2e278d41de492266b1db8bd
496
py
Python
tests/test_plugins/recipes_plugin.py
amhaske/groundwork
abd63a54a34434ebdf527b1619c8bc90d8f97c28
[ "MIT" ]
17
2016-07-27T12:32:06.000Z
2022-01-24T15:58:04.000Z
tests/test_plugins/recipes_plugin.py
amhaske/groundwork
abd63a54a34434ebdf527b1619c8bc90d8f97c28
[ "MIT" ]
31
2016-12-16T07:29:54.000Z
2019-05-07T07:08:18.000Z
tests/test_plugins/recipes_plugin.py
amhaske/groundwork
abd63a54a34434ebdf527b1619c8bc90d8f97c28
[ "MIT" ]
6
2018-03-05T13:53:31.000Z
2019-06-07T05:33:54.000Z
import os from groundwork.patterns import GwRecipesPattern class RecipePlugin(GwRecipesPattern): def __init__(self, *args, **kwargs): self.name = self.__class__.__name__ super(RecipePlugin, self).__init__(*args, **kwargs) def activate(self): self.recipes.register("test_recipe", ...
29.176471
96
0.610887
79762567e9f8c8607bfd834deebdb5439fa61cfe
767
py
Python
html_parsing/www_film_ru__movies.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
117
2015-12-18T07:18:27.000Z
2022-03-28T00:25:54.000Z
html_parsing/www_film_ru__movies.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
8
2018-10-03T09:38:46.000Z
2021-12-13T19:51:09.000Z
html_parsing/www_film_ru__movies.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
28
2016-08-02T17:43:47.000Z
2022-03-21T08:31:12.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = 'ipetrash' from urllib.parse import urljoin from bs4 import BeautifulSoup import requests URL = 'https://www.film.ru/movies' rs = requests.get(URL) root = BeautifulSoup(rs.content, 'html.parser') for a in root.select('div.rating.infinite_scroll > a'): ...
28.407407
87
0.734029
797625dc3e18383d5ff583ae17d37dd94976be1e
1,690
py
Python
program_server.py
agtbaskara/apriltag-node-stream
3aeab2302ed087a8be0221fd726b2f119ab6cf20
[ "MIT" ]
null
null
null
program_server.py
agtbaskara/apriltag-node-stream
3aeab2302ed087a8be0221fd726b2f119ab6cf20
[ "MIT" ]
null
null
null
program_server.py
agtbaskara/apriltag-node-stream
3aeab2302ed087a8be0221fd726b2f119ab6cf20
[ "MIT" ]
null
null
null
# run this program on the Mac to display image streams from multiple RPis import cv2 import imagezmq from pupil_apriltags import Detector fx = 472.13107208 fy = 472.3044311 cx = 322.23325564 cy = 238.25801953 tag_size = 0.055 camera_params = ([fx, fy, cx, cy]) at_detector = Detector(families='tag36h11', ...
33.8
107
0.594675
79762654eeb7a46bf5eb8c5f58b1a990073de318
5,177
py
Python
bin/publish_wav.py
synesthesiam/rhasspy-asr-pocketsphinx-hermes
d173b2dedca7fb394bc1aec0b01001a7b174cfaa
[ "MIT" ]
null
null
null
bin/publish_wav.py
synesthesiam/rhasspy-asr-pocketsphinx-hermes
d173b2dedca7fb394bc1aec0b01001a7b174cfaa
[ "MIT" ]
1
2019-12-21T15:45:05.000Z
2019-12-21T15:45:05.000Z
bin/publish_wav.py
synesthesiam/rhasspy-asr-pocketsphinx-hermes
d173b2dedca7fb394bc1aec0b01001a7b174cfaa
[ "MIT" ]
1
2020-07-25T03:27:46.000Z
2020-07-25T03:27:46.000Z
#!/usr/bin/env python3 import argparse import io import json import logging import os import sys import threading import wave from pathlib import Path import paho.mqtt.client as mqtt _LOGGER = logging.getLogger(__name__) TOPIC_TEXT_CAPTURED = "hermes/asr/textCaptured" # ---------------------------------------------...
32.559748
85
0.52598
79762719f69d415dbbcbcfca14a63162e4c58d3a
23,672
py
Python
test/integration/smoke/test_outofbandmanagement.py
ycyun/ablestack-cloud
b7bd36a043e2697d05303246373988aa033c9229
[ "Apache-2.0" ]
1,131
2015-01-08T18:59:06.000Z
2022-03-29T11:31:10.000Z
test/integration/smoke/test_outofbandmanagement.py
ycyun/ablestack-cloud
b7bd36a043e2697d05303246373988aa033c9229
[ "Apache-2.0" ]
5,908
2015-01-13T15:28:37.000Z
2022-03-31T20:31:07.000Z
test/integration/smoke/test_outofbandmanagement.py
ycyun/ablestack-cloud
b7bd36a043e2697d05303246373988aa033c9229
[ "Apache-2.0" ]
1,083
2015-01-05T01:16:52.000Z
2022-03-31T12:14:10.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
38.553746
261
0.643545
7976296655858d577e72eb9361f80ea29774d3a3
251
py
Python
tests/pages/__init__.py
cscomic/behave_project_template
9268a1bc9ab076825a10292bd2997b576f5d1b39
[ "MIT" ]
null
null
null
tests/pages/__init__.py
cscomic/behave_project_template
9268a1bc9ab076825a10292bd2997b576f5d1b39
[ "MIT" ]
null
null
null
tests/pages/__init__.py
cscomic/behave_project_template
9268a1bc9ab076825a10292bd2997b576f5d1b39
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- """ @File : __init__.py @Time : 2022/2/1 6:51 @Author : Tim Chen @Version : 0.0.1 @Contact : cscomicanimation@gmail.com @License : MIT @Desc : None """ # here put the import lib
17.928571
39
0.577689
797629f7fb7b2b62cc7fc1c18fc04e2ccec8cc9f
1,802
py
Python
mesh/test/data/inputs/gen1Deles.py
gonayl/Chaste
498c48489a38a8f4c5fa7c01e691cc82df3d2e6b
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
mesh/test/data/inputs/gen1Deles.py
gonayl/Chaste
498c48489a38a8f4c5fa7c01e691cc82df3d2e6b
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
mesh/test/data/inputs/gen1Deles.py
gonayl/Chaste
498c48489a38a8f4c5fa7c01e691cc82df3d2e6b
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python """Copyright (c) 2005-2017, University of Oxford. All rights reserved. University of Oxford means the Chancellor, Masters and Scholars of the University of Oxford, having an administrative office at Wellington Square, Oxford OX1 2JD, UK. This file is part of Chaste. Redistribution and use in source...
50.055556
79
0.791898
79762ab3e160abdb664c4e34d5ce8317df9d63d5
1,218
py
Python
venv/lib/python3.7/site-packages/django_node/services/__init__.py
Justin-Bee/SER401_Trynkit
3bf826121b2115f67271d88aa253075d71e81a90
[ "Apache-2.0" ]
23
2015-01-26T09:00:49.000Z
2017-03-11T09:36:48.000Z
venv/lib/python3.7/site-packages/django_node/services/__init__.py
Justin-Bee/SER401-Trynkit
3bf826121b2115f67271d88aa253075d71e81a90
[ "Apache-2.0" ]
51
2019-10-08T01:53:02.000Z
2021-06-04T22:02:21.000Z
venv/lib/python3.7/site-packages/django_node/services/__init__.py
Justin-Bee/SER401-Trynkit
3bf826121b2115f67271d88aa253075d71e81a90
[ "Apache-2.0" ]
9
2015-01-18T17:29:35.000Z
2022-03-13T02:07:14.000Z
import os import json from ..base_service import BaseService from ..exceptions import NodeServerConnectionError, NodeServerTimeoutError from ..settings import SERVER_TEST_TIMEOUT class EchoService(BaseService): """ A basic service which will return the value of the parameter `echo` as the response. I...
28.325581
74
0.639573
79762b063b73353dd51ad5a251a15427c12e0ab5
16,218
py
Python
OSCAR.py
rongwang-fudan/OSCAR_Agriculture_Global
559e0d795e003e8b842133593d6201e6c5d4a59d
[ "MIT" ]
null
null
null
OSCAR.py
rongwang-fudan/OSCAR_Agriculture_Global
559e0d795e003e8b842133593d6201e6c5d4a59d
[ "MIT" ]
null
null
null
OSCAR.py
rongwang-fudan/OSCAR_Agriculture_Global
559e0d795e003e8b842133593d6201e6c5d4a59d
[ "MIT" ]
null
null
null
""" Copyright: IIASA (International Institute for Applied Systems Analysis), 2016-2018; CEA (Commissariat a L'Energie Atomique) & UVSQ (Universite de Versailles et Saint-Quentin), 2016 Contributor(s): Thomas Gasser (gasser@iiasa.ac.at) This software is a computer program whose purpose is to simulate the behavior o...
62.860465
666
0.579233
79762b17d01fc341bdccaf11ab4f30424f7936bb
301
py
Python
Hello.py
zhangtao25/HelloTeam
58059c70b7fd50e9d04ab5211afd9edc82216483
[ "Apache-2.0" ]
null
null
null
Hello.py
zhangtao25/HelloTeam
58059c70b7fd50e9d04ab5211afd9edc82216483
[ "Apache-2.0" ]
null
null
null
Hello.py
zhangtao25/HelloTeam
58059c70b7fd50e9d04ab5211afd9edc82216483
[ "Apache-2.0" ]
null
null
null
print("兄弟们开始学习了") for i in range(5): print('*%d'%s) print("增加python语言的语言热度") print("python是最好的语言") print("python能跨平台") print("提升自己才有选择的权利") print("否则,人方为刀俎,你为鱼肉") print("python是最好的语言") print("python能跨平台") print('身体坐直,保持程序员最帅的姿势') print("细思极恐") print("你的情敌在用工,你的对手到磨刀") print("帅军加油,学习使你快乐!")
15.05
24
0.697674
79762bdbd02b94b458f6ea774b9d82f573250878
1,337
py
Python
leetcode/binary-search/single-element-in-a-sorted-array.py
Zenix27/data-structure-and-algorithms
7570a65f40c8fbb8a08845be749f507f58ed773f
[ "MIT" ]
1
2020-06-25T18:51:54.000Z
2020-06-25T18:51:54.000Z
leetcode/binary-search/single-element-in-a-sorted-array.py
Zenix27/data-structure-and-algorithms
7570a65f40c8fbb8a08845be749f507f58ed773f
[ "MIT" ]
null
null
null
leetcode/binary-search/single-element-in-a-sorted-array.py
Zenix27/data-structure-and-algorithms
7570a65f40c8fbb8a08845be749f507f58ed773f
[ "MIT" ]
3
2020-06-04T04:31:55.000Z
2021-09-23T20:54:16.000Z
""" ## Question : Medium ### 540. [Single Element in a Sorted Array](https://leetcode.com/problems/single-element-in-a-sorted-array/) You are given a sorted array consisting of only integers where every element appears exactly twice, except for one element which appears exactly once. Find this single element that appea...
26.74
114
0.622289
79762cae31159c12a0ec1559dd4916322334ddf5
38,838
py
Python
caid-gui/geometryActions.py
ratnania/caid
5bc5428007c8642412762f80c36e8531e56cd15e
[ "MIT" ]
4
2016-03-15T11:28:57.000Z
2018-05-29T15:10:02.000Z
caid-gui/geometryActions.py
pyccel/caid
5bc5428007c8642412762f80c36e8531e56cd15e
[ "MIT" ]
null
null
null
caid-gui/geometryActions.py
pyccel/caid
5bc5428007c8642412762f80c36e8531e56cd15e
[ "MIT" ]
5
2018-11-22T13:06:44.000Z
2021-06-09T11:36:59.000Z
# -*- coding: UTF-8 -*- import wx import os from geometry import geometry from caid.cad_geometry import cad_geometry from viewer import Viewer from numpy import pi, linspace import numpy as np from classActions import * from objectActions import * class GeometryActions(ClassActions): def __init__(self, parent, par...
41.76129
102
0.577321
79762cba10b087b276fbcfcf0ba1ae6979948095
1,818
py
Python
openstack_dashboard/dashboards/project/stacks/resource_types/tables.py
enovance/horizon
2ed6e93c9c4e534883126c93d3283e8c93bc674f
[ "Apache-2.0" ]
3
2015-04-24T22:39:12.000Z
2021-03-29T15:38:53.000Z
openstack_dashboard/dashboards/project/stacks/resource_types/tables.py
enovance/horizon
2ed6e93c9c4e534883126c93d3283e8c93bc674f
[ "Apache-2.0" ]
1
2021-03-21T11:48:09.000Z
2021-03-21T11:48:09.000Z
openstack_dashboard/dashboards/project/stacks/resource_types/tables.py
enovance/horizon
2ed6e93c9c4e534883126c93d3283e8c93bc674f
[ "Apache-2.0" ]
15
2017-01-12T10:40:00.000Z
2019-04-19T08:28:05.000Z
# 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 # distributed under the...
39.521739
79
0.643564
79762d13e3e78cc5accb5a24e3dd93f7a5aed4b0
128,021
py
Python
arc/calculations_atom_pairstate.py
m-schleier/ARC-Alkali-Rydberg-Calculator
eabba3bc9ac2e37ba3a8dbba18d39771dcbbb9fd
[ "BSD-3-Clause" ]
null
null
null
arc/calculations_atom_pairstate.py
m-schleier/ARC-Alkali-Rydberg-Calculator
eabba3bc9ac2e37ba3a8dbba18d39771dcbbb9fd
[ "BSD-3-Clause" ]
null
null
null
arc/calculations_atom_pairstate.py
m-schleier/ARC-Alkali-Rydberg-Calculator
eabba3bc9ac2e37ba3a8dbba18d39771dcbbb9fd
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Pair-state basis level diagram calculations Calculates Rydberg spaghetti of level diagrams, as well as pertubative C6 and similar properties. It also allows calculation of Foster resonances tuned by DC electric fields. Example: Calculation of the Rydberg eigens...
44.951194
128
0.492161
79762eaee8776b1288571b73c507c7056a90c99d
1,749
py
Python
google/cloud/privatecatalog_v1beta1/__init__.py
LaudateCorpus1/python-private-catalog
0878a4ed5f963cc32a23a7e32e47cd89b1db70cc
[ "Apache-2.0" ]
null
null
null
google/cloud/privatecatalog_v1beta1/__init__.py
LaudateCorpus1/python-private-catalog
0878a4ed5f963cc32a23a7e32e47cd89b1db70cc
[ "Apache-2.0" ]
43
2021-06-03T01:32:48.000Z
2022-03-07T17:02:04.000Z
google/cloud/privatecatalog_v1beta1/__init__.py
LaudateCorpus1/python-private-catalog
0878a4ed5f963cc32a23a7e32e47cd89b1db70cc
[ "Apache-2.0" ]
3
2021-06-02T20:46:02.000Z
2022-01-29T08:13:12.000Z
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
34.294118
74
0.787307
797630bff6ff6b8613e2cf92b451b9116b716d0f
8,507
py
Python
examples/loganalyzer/loganalyzer.py
dfrankow/cubetl
cf22b5f80a5e9439dd454b25453d6ee10e755548
[ "MIT" ]
1
2021-01-05T13:57:02.000Z
2021-01-05T13:57:02.000Z
examples/loganalyzer/loganalyzer.py
dfrankow/cubetl
cf22b5f80a5e9439dd454b25453d6ee10e755548
[ "MIT" ]
null
null
null
examples/loganalyzer/loganalyzer.py
dfrankow/cubetl
cf22b5f80a5e9439dd454b25453d6ee10e755548
[ "MIT" ]
null
null
null
# CubETL # Copyright (c) 2013-2019 Jose Juan Montes # This is a CubETL example # See: https://github.com/jjmontesl/cubetl from cubetl import flow, fs, script, olap, table, geoip from cubetl.cubes import cubes10 from cubetl.http import useragent from cubetl.olap import sqlschema, query from cubetl.olap.sql import Tab...
39.938967
158
0.610909
797630cb1f5e409567a2f196aaefcda0e25f693c
1,237
py
Python
google/ads/googleads/v4/services/types/account_budget_service.py
batardo/google-ads-python
a39748521847e85138fca593f3be2681352ad024
[ "Apache-2.0" ]
null
null
null
google/ads/googleads/v4/services/types/account_budget_service.py
batardo/google-ads-python
a39748521847e85138fca593f3be2681352ad024
[ "Apache-2.0" ]
null
null
null
google/ads/googleads/v4/services/types/account_budget_service.py
batardo/google-ads-python
a39748521847e85138fca593f3be2681352ad024
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
29.452381
116
0.727567
797630ed416963a59a40aa435bb65aecdc268fb0
2,229
py
Python
datasets/listdatasets.py
Eric-Hao/DAIN
5c9bcfdae05119ba0ed0f4608d1bf002874f77b9
[ "MIT" ]
null
null
null
datasets/listdatasets.py
Eric-Hao/DAIN
5c9bcfdae05119ba0ed0f4608d1bf002874f77b9
[ "MIT" ]
null
null
null
datasets/listdatasets.py
Eric-Hao/DAIN
5c9bcfdae05119ba0ed0f4608d1bf002874f77b9
[ "MIT" ]
null
null
null
import torch.utils.data as data import os import os.path from scipy.ndimage import imread import numpy as np import random def Vimeo_90K_loader(root, im_path, input_frame_size = (3, 256, 448), output_frame_size = (3, 256, 448), data_aug = True): root = os.path.join(root,'sequences',im_path) if data_aug and ...
32.779412
122
0.632571
7976315ef58252e32e0ec5f2c022365196636d3f
1,537
py
Python
pyPLS/normalisation.py
ocloarec/pyPLS
2b00c8f90c9a0dd4dc70a594dc8300a38aa9a22f
[ "MIT" ]
1
2021-01-23T21:26:57.000Z
2021-01-23T21:26:57.000Z
pyPLS/normalisation.py
hlorenzo/pyPLS
2b00c8f90c9a0dd4dc70a594dc8300a38aa9a22f
[ "MIT" ]
1
2020-05-07T15:27:38.000Z
2020-05-07T15:27:38.000Z
pyPLS/normalisation.py
ocloarec/pyPLS
2b00c8f90c9a0dd4dc70a594dc8300a38aa9a22f
[ "MIT" ]
2
2021-01-18T17:21:22.000Z
2022-01-24T02:31:45.000Z
import numpy as np import pandas as pd from pyPLS.pca import prcomp def unit(X): """ :param X: Matrix to be normalised :return: a normalised matrix, factor used for normalisation, reference vector """ p = X.shape[1] factors = np.sum(X, axis=1) X = X / np.tile(factors, (p, 1)).T retu...
22.275362
81
0.58946
79763181efe2ff46f006ea09fd335839e2b16fa9
4,448
py
Python
ThreeBotPackages/gundb/utils.py
threefoldtech/web_research
f248df9a4b99ec4c913fe75a9394246fbb93f37b
[ "Apache-2.0" ]
null
null
null
ThreeBotPackages/gundb/utils.py
threefoldtech/web_research
f248df9a4b99ec4c913fe75a9394246fbb93f37b
[ "Apache-2.0" ]
4
2020-03-17T07:20:40.000Z
2021-05-11T17:18:14.000Z
ThreeBotPackages/gundb/utils.py
threefoldtech/web_research
f248df9a4b99ec4c913fe75a9394246fbb93f37b
[ "Apache-2.0" ]
null
null
null
import time import math import uuid from .consts import STATE, METADATA, SOUL def stategen(): N = 0 D = 1000 STATE_DRIFT = 0 last = -math.inf while True: t = time.time() if last < t: N = 0 last = t + STATE_DRIFT else: N + 1 ...
26.634731
177
0.585656
797631cd352657b1f8cbdb32e027bd14cff99dfd
28,266
py
Python
mmf/models/uniter.py
sisilmehta2000/mmf
ac1bb736f281ffbde367cfe9cf6f4f78fc890fc4
[ "BSD-3-Clause" ]
1
2022-03-21T22:52:26.000Z
2022-03-21T22:52:26.000Z
mmf/models/uniter.py
sisilmehta2000/mmf
ac1bb736f281ffbde367cfe9cf6f4f78fc890fc4
[ "BSD-3-Clause" ]
null
null
null
mmf/models/uniter.py
sisilmehta2000/mmf
ac1bb736f281ffbde367cfe9cf6f4f78fc890fc4
[ "BSD-3-Clause" ]
1
2022-02-21T23:38:21.000Z
2022-02-21T23:38:21.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # Initial version was taken from https://github.com/ChenRocks/UNITER/ # and adapted for MMF. import copy import logging import random from collections import MutableMapping, namedtuple from dataclasses import asdict, dataclass, field from typing import Any, Dict, Lis...
36.756827
88
0.618411