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
7371b98c122c72464636a60f8eba1cbfa495c541
5,942
py
Python
mdrsl/rule_generation/association_rule_mining/frequent_itemset_mining.py
joschout/Multi-Directional-Rule-Set-Learning
ef0620b115f4e0fd7fba3e752d238a8020c1ca6b
[ "Apache-2.0" ]
3
2020-08-03T19:25:44.000Z
2021-06-27T22:25:55.000Z
mdrsl/rule_generation/association_rule_mining/frequent_itemset_mining.py
joschout/Multi-Directional-Rule-Set-Learning
ef0620b115f4e0fd7fba3e752d238a8020c1ca6b
[ "Apache-2.0" ]
null
null
null
mdrsl/rule_generation/association_rule_mining/frequent_itemset_mining.py
joschout/Multi-Directional-Rule-Set-Learning
ef0620b115f4e0fd7fba3e752d238a8020c1ca6b
[ "Apache-2.0" ]
2
2020-08-07T22:54:28.000Z
2021-02-18T06:11:01.000Z
from typing import List, Optional, Union, Tuple # import fim import pandas as pd from bidict import bidict attribute_value_separator = ';=;' filter_missing_values = True Item = str ItemEncoding = int Transaction = Union[List[Item], List[ItemEncoding]] def attr_val_to_item(attr_name: str, val: object, separator=N...
36.453988
111
0.664254
7371e20769846df470d026d2693b6ba3b425e1d9
1,642
py
Python
Farmacia/apps/factura/models.py
cluco91/Django_Farmacia
10d787533bcebac8ba35cf8a7feb10ffb14ca45f
[ "MIT" ]
2
2018-11-06T04:05:20.000Z
2020-05-28T23:19:23.000Z
Farmacia/apps/factura/models.py
cluco91/Django_Farmacia
10d787533bcebac8ba35cf8a7feb10ffb14ca45f
[ "MIT" ]
null
null
null
Farmacia/apps/factura/models.py
cluco91/Django_Farmacia
10d787533bcebac8ba35cf8a7feb10ffb14ca45f
[ "MIT" ]
2
2018-11-06T04:12:17.000Z
2019-11-21T18:34:26.000Z
# coding: utf-8 from django.db import models from django.contrib.auth.models import User import decimal from django.conf import settings from apps.clientes.models import Cliente from apps.medicamentos.models import Medicamentos from django.db.models import signals class Factura(models.Model): serie = models.Inte...
33.510204
97
0.744823
7371ebe389345efb6d0604501c75437e7645a060
9,362
py
Python
tensorflow/python/kernel_tests/sparse_add_op_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
522
2016-06-08T02:15:50.000Z
2022-03-02T05:30:36.000Z
tensorflow/python/kernel_tests/sparse_add_op_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/python/kernel_tests/sparse_add_op_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
108
2016-06-16T15:34:05.000Z
2022-03-12T13:23:11.000Z
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
37.003953
80
0.636296
7371f15f1e8a0b1296420c7f618de286d1c7d149
415
py
Python
wsgi/db_bug_fixing.py
AlexeyProskuryakov/rr
dcf598405159a48826f4214fa33abcf57418b680
[ "MIT" ]
null
null
null
wsgi/db_bug_fixing.py
AlexeyProskuryakov/rr
dcf598405159a48826f4214fa33abcf57418b680
[ "MIT" ]
null
null
null
wsgi/db_bug_fixing.py
AlexeyProskuryakov/rr
dcf598405159a48826f4214fa33abcf57418b680
[ "MIT" ]
null
null
null
from pymongo import MongoClient from wsgi import properties if __name__ == '__main__': client = MongoClient(host=properties.mongo_uri) db = client['rr'] collection = db.get_collection("subreddits") for sbrdt_info in collection.find({}): print "will fix subreddit %s"%sbrdt_info.get("name") ...
37.727273
99
0.674699
737249381495be68a4a81e23a9f4606eba408dd5
5,649
py
Python
example_cycles/N+3ref/N3_HPT_map.py
swryan/pyCycleOld
fbab35b74d0e5487abe686ae0823ff52e75afb3b
[ "Apache-2.0" ]
null
null
null
example_cycles/N+3ref/N3_HPT_map.py
swryan/pyCycleOld
fbab35b74d0e5487abe686ae0823ff52e75afb3b
[ "Apache-2.0" ]
null
null
null
example_cycles/N+3ref/N3_HPT_map.py
swryan/pyCycleOld
fbab35b74d0e5487abe686ae0823ff52e75afb3b
[ "Apache-2.0" ]
null
null
null
import numpy as np from pycycle.maps.map_data import MapData """Python version of CFM56 HPT map from NPSS""" HPTmap = MapData() # Map design point values HPTmap.defaults = {} HPTmap.defaults['alphaMap'] = 1.0 HPTmap.defaults['NpMap'] = 100.0 HPTmap.defaults['PRmap'] = 5.0 #effMapDes = 0.9276 # = effMap for no sc...
80.7
188
0.610019
737250317f308588c0da5161fd52b9d64b2aa3e6
1,853
py
Python
src/networking/Client.py
OfekHarel/Orion-Connection-Software
2e767e31f94574bf464e24eaeed87f36b3247ca6
[ "MIT" ]
1
2021-05-18T10:16:05.000Z
2021-05-18T10:16:05.000Z
src/networking/Client.py
OfekHarel/Orion-Connection-Software
2e767e31f94574bf464e24eaeed87f36b3247ca6
[ "MIT" ]
null
null
null
src/networking/Client.py
OfekHarel/Orion-Connection-Software
2e767e31f94574bf464e24eaeed87f36b3247ca6
[ "MIT" ]
null
null
null
import socket from src import Constants from src.networking import NetworkPackets from src.utils.Logger import utilLogger class Client: """ The Client class that """ def __init__(self, host: str, address: tuple): self.client_sock = socket.socket() self.address = address self...
29.412698
99
0.558014
737264f1aa9c3a91ddb18b24dd2593ff5d3cb333
9,322
py
Python
textwiser/textwiser.py
vishalbelsare/textwiser
da500f24c8d35d29e3ff77702b7c5ece244562cc
[ "Apache-2.0" ]
24
2020-07-02T13:31:46.000Z
2022-03-25T02:27:24.000Z
textwiser/textwiser.py
fmr-llc/textwiser
2c5bdd73c26bd3fb7bd2f324f57d99233aa9c17f
[ "Apache-2.0" ]
5
2020-07-23T16:43:02.000Z
2022-02-23T17:05:38.000Z
textwiser/textwiser.py
fmr-llc/textwiser
2c5bdd73c26bd3fb7bd2f324f57d99233aa9c17f
[ "Apache-2.0" ]
6
2021-01-03T08:09:39.000Z
2022-03-25T02:18:59.000Z
# Copyright 2019 FMR LLC <opensource@fidelity.com> # SPDX-License-Identifer: Apache-2.0 from typing import List, Union import warnings import numpy as np import torch from textwiser.base import BaseFeaturizer from textwiser.factory import get_standalone_document_embeddings, _Sequential from textwiser.options import ...
42.56621
151
0.644282
737278f160adb72d9849f3b0464b91f39392c3f3
7,680
py
Python
scripts/scripts_ipynb/Moster_plot.py
Hoseung/pyRamAn
f9386fa5a9f045f98590039988d3cd50bc488dc2
[ "MIT" ]
1
2021-11-25T16:11:56.000Z
2021-11-25T16:11:56.000Z
scripts/scripts_ipynb/Moster_plot.py
Hoseung/pyRamAn
f9386fa5a9f045f98590039988d3cd50bc488dc2
[ "MIT" ]
6
2020-02-17T13:44:43.000Z
2020-06-25T15:35:05.000Z
scripts/scripts_ipynb/Moster_plot.py
Hoseung/pyRamAn
f9386fa5a9f045f98590039988d3cd50bc488dc2
[ "MIT" ]
1
2021-11-25T16:11:56.000Z
2021-11-25T16:11:56.000Z
# coding: utf-8 # # M* vs Mhalo # Again, galaxy - halo matching is required. # In[18]: class Dummy(): def __init__(self): pass def region_from_xyz(x,y,z, r=0): """ create a region to include all points. Parameters ---------- x: float array y: float array z: float arra...
29.312977
111
0.546615
73728725237ee34c37d055a6ee7aa99919ef6e00
3,928
py
Python
ideaman_generateData/run.py
LibRec-Practical/ideaman-offline
f8341fc9ca77adcc1191c01037dda18c02d77b29
[ "MIT" ]
1
2021-06-21T06:41:12.000Z
2021-06-21T06:41:12.000Z
ideaman_generateData/run.py
LibRec-Practical/ideaman-offline
f8341fc9ca77adcc1191c01037dda18c02d77b29
[ "MIT" ]
null
null
null
ideaman_generateData/run.py
LibRec-Practical/ideaman-offline
f8341fc9ca77adcc1191c01037dda18c02d77b29
[ "MIT" ]
null
null
null
import sys import random import os sys.path.append("../../") sys.path.extend([os.path.join(root, name) for root, dirs, _ in os.walk("../../") for name in dirs]) from ideaman_util.db import conn, cur interest_tags = ["1", "2", "3", "4", "5", "6", "8", "9", "10", "11", "12", "13", "16", "18", "20", "23", "24", "25", ...
31.934959
116
0.558554
7372a17450789d9d73a967e88bfe62d62eb85520
1,479
py
Python
main/antennas_on_circular_ring.py
dannyjacobs/PRISim
89e544d771cf5c4113a4d5787a57c9586fa98eac
[ "MIT" ]
null
null
null
main/antennas_on_circular_ring.py
dannyjacobs/PRISim
89e544d771cf5c4113a4d5787a57c9586fa98eac
[ "MIT" ]
null
null
null
main/antennas_on_circular_ring.py
dannyjacobs/PRISim
89e544d771cf5c4113a4d5787a57c9586fa98eac
[ "MIT" ]
null
null
null
import numpy as NP import argparse import yaml from astropy.io import ascii import matplotlib.pyplot as PLT import interferometry as RI import ipdb as PDB parser = argparse.ArgumentParser(description='Program to generate antennas in a circular ring.') parser.add_argument('-i','--input', dest='parms', help='Parameters ...
30.183673
136
0.724138
7372ac2648ed5814d9e7e7a650be33337f4e5663
383
py
Python
{{ cookiecutter.repo_name }}/src/run.py
tortinez/cookiecutter-data-science
7984e513f49f6715e3bdd9ab71c9e92044597af1
[ "MIT" ]
null
null
null
{{ cookiecutter.repo_name }}/src/run.py
tortinez/cookiecutter-data-science
7984e513f49f6715e3bdd9ab71c9e92044597af1
[ "MIT" ]
null
null
null
{{ cookiecutter.repo_name }}/src/run.py
tortinez/cookiecutter-data-science
7984e513f49f6715e3bdd9ab71c9e92044597af1
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- """ Run ------------------- Entrypoint to the application .. module:: Run :synopsis: Entrypoint to the application .. moduleauthor:: Victor Martinez """ # Logging initialization import logging from utilities.log_utils import logger_init logger = logging.getLogger(__name__) import config if ...
19.15
43
0.70235
7372bb7a1a78383662cc93f6ea0d05048a91159d
5,338
py
Python
tensorflow/contrib/learn/python/learn/estimators/estimators_test.py
gnoses/TensorFlow
63a21e054007d86269ed1ad0145ebce04ee57a81
[ "Apache-2.0" ]
2
2017-11-24T04:06:38.000Z
2018-01-07T11:30:04.000Z
tensorflow/contrib/learn/python/learn/estimators/estimators_test.py
amineferchichi/tensorflow
4ac9c09d5ca57a03b8daa5fb9e295947b1619854
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/learn/python/learn/estimators/estimators_test.py
amineferchichi/tensorflow
4ac9c09d5ca57a03b8daa5fb9e295947b1619854
[ "Apache-2.0" ]
1
2022-01-22T05:39:49.000Z
2022-01-22T05:39:49.000Z
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
34.43871
87
0.70251
7372c283885dcca57fdef64a051a561180f070e5
3,816
py
Python
pdfmajor/__init__.py
asosnovsky/pdfmajor
7e24c64b5b4fdc84c12b2f78dcaab0e1aa07f4ad
[ "MIT" ]
23
2019-01-13T23:32:24.000Z
2021-07-08T04:29:15.000Z
pdfmajor/__init__.py
asosnovsky/pdfmajor
7e24c64b5b4fdc84c12b2f78dcaab0e1aa07f4ad
[ "MIT" ]
3
2019-08-09T18:42:01.000Z
2019-12-13T15:43:24.000Z
pdfmajor/__init__.py
asosnovsky/pdfmajor
7e24c64b5b4fdc84c12b2f78dcaab0e1aa07f4ad
[ "MIT" ]
2
2020-01-09T11:18:20.000Z
2020-03-24T06:02:30.000Z
# # DO NOT EDIT THIS PAGE # """ # PDFMajor <table> <tr> <td>Latest Release</td> <td> <a href="https://pypi.org/project/pdfmajor/"> <img src="https://img.shields.io/pypi/v/pdfmajor.svg" alt="latest release" /> </a> </td> </tr> </table> PDF-Major is a **complete re-write** of `PDFMiner.six`. It is...
35.663551
466
0.746331
7372c429500b2ac72d9a654f4af0b08be116c841
9,033
py
Python
main/models.py
OKThess/website
3d5a2a125bfb48179937b058aa7180b751eb2b43
[ "MIT" ]
5
2017-08-25T16:37:18.000Z
2019-02-25T18:26:37.000Z
main/models.py
OKThess/website
3d5a2a125bfb48179937b058aa7180b751eb2b43
[ "MIT" ]
43
2017-01-22T23:58:43.000Z
2018-05-17T21:35:16.000Z
main/models.py
OKThess/website
3d5a2a125bfb48179937b058aa7180b751eb2b43
[ "MIT" ]
2
2017-11-05T08:36:02.000Z
2017-12-22T17:37:19.000Z
from datetime import date from django.db import models from django.contrib.auth.models import User from django.utils import timezone from s3direct.fields import S3DirectField from ckeditor.fields import RichTextField class EnTeamManager(models.Manager): def get_queryset(self): return super(EnTeamManager,...
31.364583
115
0.686704
7373107ff95219610839062788c18b5140424c2c
4,727
py
Python
minihack/envs/skills_lava.py
mohamadmansourX/minihack
3238bf4892ada8aecfe2e71fb493957f7e06b2d8
[ "Apache-2.0" ]
1
2021-11-19T01:51:38.000Z
2021-11-19T01:51:38.000Z
minihack/envs/skills_lava.py
mohamadmansourX/minihack
3238bf4892ada8aecfe2e71fb493957f7e06b2d8
[ "Apache-2.0" ]
null
null
null
minihack/envs/skills_lava.py
mohamadmansourX/minihack
3238bf4892ada8aecfe2e71fb493957f7e06b2d8
[ "Apache-2.0" ]
1
2021-11-17T15:45:02.000Z
2021-11-17T15:45:02.000Z
# Copyright (c) Facebook, Inc. and its affiliates. from minihack import MiniHackSkill from gym.envs import registration class MiniHackLCLevitatePotionPickup(MiniHackSkill): def __init__(self, *args, **kwargs): kwargs["max_episode_steps"] = kwargs.pop("max_episode_steps", 400) des_file = """ MAZE: ...
26.55618
75
0.633594
73731d891dbf6317f4f43c5a71bd8a12f0fd5690
3,270
py
Python
utils/notifications.py
Ibrahem3amer/bala7
70638c121ea85ff0e6a650c5f2641b0b3b04d6d0
[ "Apache-2.0" ]
null
null
null
utils/notifications.py
Ibrahem3amer/bala7
70638c121ea85ff0e6a650c5f2641b0b3b04d6d0
[ "Apache-2.0" ]
null
null
null
utils/notifications.py
Ibrahem3amer/bala7
70638c121ea85ff0e6a650c5f2641b0b3b04d6d0
[ "Apache-2.0" ]
null
null
null
import requests import json from bala7.settings.base import secrets class NotificationDevices(object): def __init__(self): self.app_id = secrets['onesignal_app_id'] self.device_type = 8 self.language = "en" self.tags = { "department": 3 } def get_notificat...
30.277778
88
0.573394
73734125b0fe642d6550a2cf5808fa040b5df488
16,191
gyp
Python
ios/third_party/earl_grey/earl_grey.gyp
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
ios/third_party/earl_grey/earl_grey.gyp
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
ios/third_party/earl_grey/earl_grey.gyp
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
6
2020-09-23T08:56:12.000Z
2021-11-18T03:40:49.000Z
# Copyright 2016 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. { 'targets': [ { 'target_name': 'EarlGrey', 'type': 'shared_library', 'mac_bundle': 1, 'sources': [ 'src/EarlGrey/Actio...
49.818462
104
0.688778
7373523ea40c850e49149b08797728e5bc8d0a64
585
py
Python
filter.py
mn270/Human-Activity-Recognize-HARdataset-
861391174f0780c8fe3d69663491076e4c4b737c
[ "MIT" ]
null
null
null
filter.py
mn270/Human-Activity-Recognize-HARdataset-
861391174f0780c8fe3d69663491076e4c4b737c
[ "MIT" ]
null
null
null
filter.py
mn270/Human-Activity-Recognize-HARdataset-
861391174f0780c8fe3d69663491076e4c4b737c
[ "MIT" ]
null
null
null
""" Create Butterworth filter to use it on Android app """ import numpy as np import scipy.signal as signal import matplotlib.pyplot as plt fs = 50 fn = 20 b, a = signal.butter(3, fn/(fs/2), 'low', analog=False) w, h = signal.freqz(b, a,fs = fs) print("B:") print(b) print("----------------------------------------") p...
21.666667
72
0.634188
73736a49fe8b85edb969cc1ad7f782867723b256
3,594
py
Python
pysimm/apps/equilibrate.py
ElsevierSoftwareX/SOFTX-D-21-00117
8ce9f9b5c1f1bb07733f248763759b05454690c8
[ "MIT" ]
55
2017-01-14T09:11:54.000Z
2022-01-28T17:17:34.000Z
pysimm/apps/equilibrate.py
ElsevierSoftwareX/SOFTX-D-21-00117
8ce9f9b5c1f1bb07733f248763759b05454690c8
[ "MIT" ]
13
2017-03-27T19:32:57.000Z
2022-01-04T17:49:50.000Z
pysimm/apps/equilibrate.py
ElsevierSoftwareX/SOFTX-D-21-00117
8ce9f9b5c1f1bb07733f248763759b05454690c8
[ "MIT" ]
28
2016-08-29T12:30:58.000Z
2021-12-04T07:24:07.000Z
# ****************************************************************************** # pysimm.apps.equilibrate module # ****************************************************************************** # # 21-step equilibration algorithm written using pysimm tools # # **********************************************************...
36.30303
108
0.637451
73736d285e6ebb3b213dcdf747b28073a5ae950c
1,677
py
Python
finetuned_model/feature_maps.py
rtoengi/transfer-learning-for-sign-language-recognition
e0627115e6b68d6b85244d484011bb3895ccf4ee
[ "MIT" ]
1
2021-09-25T14:11:22.000Z
2021-09-25T14:11:22.000Z
finetuned_model/feature_maps.py
rtoengi/transfer-learning-for-sign-language-recognition
e0627115e6b68d6b85244d484011bb3895ccf4ee
[ "MIT" ]
null
null
null
finetuned_model/feature_maps.py
rtoengi/transfer-learning-for-sign-language-recognition
e0627115e6b68d6b85244d484011bb3895ccf4ee
[ "MIT" ]
4
2021-04-10T01:33:03.000Z
2021-11-11T06:58:59.000Z
from pathlib import Path import tensorflow as tf from tensorflow.keras.models import Model from datasets.constants import DatasetName, DatasetType from datasets.tf_record_utils import tf_record_dataset, transform_for_prediction from finetuned_model.constants import TRAINING_RUNS from plotting.plot import feature_maps...
32.25
114
0.741801
7373a8261287002f482a3a352029bed98e7e11e8
1,566
py
Python
gardener/core.py
mangelino/gardener
bf6f2b6cd7d5732516a6f42df4729fbc262e8372
[ "MIT" ]
1
2018-06-13T18:36:23.000Z
2018-06-13T18:36:23.000Z
gardener/core.py
mangelino/gardener
bf6f2b6cd7d5732516a6f42df4729fbc262e8372
[ "MIT" ]
null
null
null
gardener/core.py
mangelino/gardener
bf6f2b6cd7d5732516a6f42df4729fbc262e8372
[ "MIT" ]
null
null
null
from .entity import EntityDefinition from .thing import Thing from itertools import chain import json from .logging import logError, logInfo, logRecycle, logSuccess, logDebug class CoreDefinition(EntityDefinition): """ Create a new Core definition if it does not already exists. Compare LatestVersion with n...
41.210526
121
0.718391
7373ad9cfe4619967aa75a10ebdcaa60aea49c20
106
py
Python
osos/api_conda/__init__.py
NREL/osos
28b2d9382058e17dfa10a873b5f2fd115b319bb1
[ "BSD-3-Clause" ]
null
null
null
osos/api_conda/__init__.py
NREL/osos
28b2d9382058e17dfa10a873b5f2fd115b319bb1
[ "BSD-3-Clause" ]
1
2021-11-19T20:44:38.000Z
2021-11-19T20:45:03.000Z
osos/api_conda/__init__.py
NREL/osos
28b2d9382058e17dfa10a873b5f2fd115b319bb1
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Interface module for conda API """ from osos.api_conda.api_conda import Conda
17.666667
42
0.688679
7373b8e32e171501ec6975022d4b7e377ed1fbaa
40,264
py
Python
domainbed/algorithms.py
abhimanyudubey/DomainBed
5c8373e40a04035081937b0fa3eb4fa5339dae32
[ "MIT" ]
6
2021-08-05T11:50:34.000Z
2022-02-28T15:29:09.000Z
domainbed/algorithms.py
zrt/DomainBed
2f4f19c07d18bb5079cfdd8d71d59062b8271ffe
[ "MIT" ]
null
null
null
domainbed/algorithms.py
zrt/DomainBed
2f4f19c07d18bb5079cfdd8d71d59062b8271ffe
[ "MIT" ]
1
2021-09-30T12:25:07.000Z
2021-09-30T12:25:07.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import torch import torch.nn as nn import torch.nn.functional as F import torch.autograd as autograd from torch.autograd import Variable import copy import numpy as np from collections import defaultdict from domainbed import networks from domain...
35.91793
100
0.589534
7373be53731ebc6cddffa2b3eae30f08b70e33a7
2,330
py
Python
trdg/gu_dict/space_names_generator.py
srividya-p/TextRecognitionDataGenerator
cfba3ef1b5204c5f45d347c1c3db09a77dd3cd01
[ "MIT" ]
null
null
null
trdg/gu_dict/space_names_generator.py
srividya-p/TextRecognitionDataGenerator
cfba3ef1b5204c5f45d347c1c3db09a77dd3cd01
[ "MIT" ]
null
null
null
trdg/gu_dict/space_names_generator.py
srividya-p/TextRecognitionDataGenerator
cfba3ef1b5204c5f45d347c1c3db09a77dd3cd01
[ "MIT" ]
null
null
null
#-*- coding: utf-8 -*- digits = ['૦', '૧', '૨', '૩', '૪', '૫', '૬', '૭', '૮', '૯'] vowels = ['અ', 'આ', 'ઇ', 'ઈ', 'ઉ', 'ઊ', 'ઋ', 'એ', 'ઐ', 'ઓ', 'ઔ'] # 'ઌ', 'ૡ', 'ૃ', 'ૄ' 'ઁ', 'ં' , 'ઃ', '્' 'ૠ' consonants = ['ક', 'ખ', 'ગ', 'ઘ', 'ઙ', 'ચ', 'છ', 'જ', 'ઝ', 'ઞ', 'ટ', 'ઠ', 'ડ', 'ઢ', 'ણ', ...
25.326087
134
0.491845
7373ec92f9d881d58d3cbe1ddfbde2e3c5a2d0ad
22,728
py
Python
lbrynet/extras/wallet/manager.py
Leopere/lbry
af43b21ef6a5de5ce1fee21425bea6f8d6bf335f
[ "MIT" ]
null
null
null
lbrynet/extras/wallet/manager.py
Leopere/lbry
af43b21ef6a5de5ce1fee21425bea6f8d6bf335f
[ "MIT" ]
null
null
null
lbrynet/extras/wallet/manager.py
Leopere/lbry
af43b21ef6a5de5ce1fee21425bea6f8d6bf335f
[ "MIT" ]
null
null
null
import os import json import logging from binascii import unhexlify from datetime import datetime from typing import Optional from lbrynet.schema.schema import SECP256k1 from torba.client.basemanager import BaseWalletManager from torba.rpc.jsonrpc import CodeMessageError from lbrynet.schema.claim import ClaimDict f...
42.80226
120
0.611536
7374141bfb663073eb2030e7c51cb7450b93ac17
15,968
py
Python
esper/__init__.py
elistevens/esper
c54bd44d6528feed6ca01c5f423a89027c21e3b3
[ "MIT" ]
366
2015-12-25T23:37:58.000Z
2022-03-19T09:36:13.000Z
esper/__init__.py
elistevens/esper
c54bd44d6528feed6ca01c5f423a89027c21e3b3
[ "MIT" ]
60
2015-12-26T04:13:40.000Z
2022-03-15T10:57:29.000Z
esper/__init__.py
elistevens/esper
c54bd44d6528feed6ca01c5f423a89027c21e3b3
[ "MIT" ]
67
2016-01-07T12:09:08.000Z
2022-03-28T20:26:47.000Z
import time as _time from typing import Any as _Any from typing import Iterable as _Iterable from typing import List as _List from typing import Optional as _Optional from typing import Tuple as _Tuple from typing import Type as _Type from typing import TypeVar as _TypeVar version = '1.5' _C = _TypeVar('_C') _P = _...
40.94359
114
0.661573
737457f10bb5b8bc431ffe5a4564d64384701b64
4,870
py
Python
experiments/vitchyr/disentanglement/img_obs_state_reward/image_based_pnp_1obj_sweep3.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2020-10-23T14:40:09.000Z
2020-10-23T14:40:09.000Z
experiments/vitchyr/disentanglement/img_obs_state_reward/image_based_pnp_1obj_sweep3.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/vitchyr/disentanglement/img_obs_state_reward/image_based_pnp_1obj_sweep3.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2021-05-27T20:38:45.000Z
2021-05-27T20:38:45.000Z
import rlkit.misc.hyperparameter as hyp from rlkit.launchers.contextual.image_based import \ image_based_goal_conditioned_sac_experiment from rlkit.launchers.launcher_util import run_experiment if __name__ == "__main__": variant = dict( env_id='OneObjectPickAndPlace2DEnv-v0', qf_kwargs=dict( ...
31.419355
90
0.507187
73746ae7a5c1da752437ed2954e94c186795d214
12,247
py
Python
desdeo_emo/EAs/RVEA.py
bonskotti/desdeo-emo
6a607fa96478fd3c76394ac7b2dafdfd3c08eb2a
[ "MIT" ]
1
2022-03-30T17:24:55.000Z
2022-03-30T17:24:55.000Z
desdeo_emo/EAs/RVEA.py
bonskotti/desdeo-emo
6a607fa96478fd3c76394ac7b2dafdfd3c08eb2a
[ "MIT" ]
null
null
null
desdeo_emo/EAs/RVEA.py
bonskotti/desdeo-emo
6a607fa96478fd3c76394ac7b2dafdfd3c08eb2a
[ "MIT" ]
null
null
null
from typing import Dict, Union from desdeo_emo.EAs.BaseEA import BaseDecompositionEA, eaError from desdeo_emo.population.Population import Population # from desdeo_emo.selection.APD_Select import APD_Select from desdeo_emo.selection.APD_Select_constraints import APD_Select from desdeo_emo.selection.oAPD import Optimi...
44.053957
88
0.669225
73747db31c86b67eaad5aeab7d5e80191e12b333
16,857
py
Python
tensorflow/contrib/distributions/python/kernel_tests/cauchy_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/contrib/distributions/python/kernel_tests/cauchy_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/contrib/distributions/python/kernel_tests/cauchy_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
31
2018-09-11T02:17:17.000Z
2021-12-15T10:33:35.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
38.398633
80
0.671709
73749f3fbf109f64ddad49c9ed8b32c9283fe6a2
23
py
Python
h5axeconfig/siaf/__init__.py
Russell-Ryan/aXeConfig
ff52e1981b825a075372c682cb6034cfeec58213
[ "MIT" ]
null
null
null
h5axeconfig/siaf/__init__.py
Russell-Ryan/aXeConfig
ff52e1981b825a075372c682cb6034cfeec58213
[ "MIT" ]
null
null
null
h5axeconfig/siaf/__init__.py
Russell-Ryan/aXeConfig
ff52e1981b825a075372c682cb6034cfeec58213
[ "MIT" ]
1
2019-09-25T14:51:04.000Z
2019-09-25T14:51:04.000Z
from .siaf import SIAF
11.5
22
0.782609
7374c733f14374fe8bd385e1dfd87f4dc6f4ed1e
2,868
py
Python
src/proc.py
hashware/waterfall-zh
f27aaa59c08657c1c665955cff64f2693e4ef912
[ "Apache-2.0" ]
null
null
null
src/proc.py
hashware/waterfall-zh
f27aaa59c08657c1c665955cff64f2693e4ef912
[ "Apache-2.0" ]
null
null
null
src/proc.py
hashware/waterfall-zh
f27aaa59c08657c1c665955cff64f2693e4ef912
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python # Copyright 2016 WebAssembly Community Group participants # # 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 ...
32.965517
78
0.688285
7374cd8a6490cc8c90209f62d09397bf1633a968
123
py
Python
py_sc_fermi/constants.py
kavanase/py-sc-fermi
3df9f0cf0e2edb566f57ff72d8dae5a191287b64
[ "MIT" ]
8
2019-09-10T02:10:49.000Z
2022-03-18T07:13:52.000Z
py_sc_fermi/constants.py
kavanase/py-sc-fermi
3df9f0cf0e2edb566f57ff72d8dae5a191287b64
[ "MIT" ]
6
2021-08-10T12:52:37.000Z
2022-02-15T11:36:00.000Z
py_sc_fermi/constants.py
kavanase/py-sc-fermi
3df9f0cf0e2edb566f57ff72d8dae5a191287b64
[ "MIT" ]
5
2019-08-25T02:54:01.000Z
2022-03-19T03:56:58.000Z
from scipy.constants import physical_constants # type: ignore kboltz = physical_constants['Boltzmann constant in eV/K'][0]
41
61
0.804878
7374d41417a2b5c58d4a9b7caee5714b4191f7cf
464
py
Python
supriya/ugens/LFNoise0.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
supriya/ugens/LFNoise0.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
supriya/ugens/LFNoise0.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
import collections from supriya import CalculationRate from supriya.synthdefs import UGen class LFNoise0(UGen): """ A step noise generator. :: >>> supriya.ugens.LFNoise0.ar() LFNoise0.ar() """ ### CLASS VARIABLES ### __documentation_section__ = "Noise UGens" _ordered...
18.56
79
0.68319
7374dbbb080ac10bb883528568394972e11aefd8
607
py
Python
master/api-master/api-master/api/src/migrations/versions/41fc015bc30c_.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
4
2018-09-07T15:35:24.000Z
2019-03-27T09:48:12.000Z
master/api-master/api-master/api/src/migrations/versions/41fc015bc30c_.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
371
2020-03-04T21:51:56.000Z
2022-03-31T20:59:11.000Z
master/api-master/api-master/api/src/migrations/versions/41fc015bc30c_.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
3
2019-06-18T19:57:17.000Z
2020-11-06T03:55:08.000Z
"""empty message Revision ID: 41fc015bc30c Revises: 890f0f2ba1d1 Create Date: 2016-06-17 14:47:11.944599 """ # revision identifiers, used by Alembic. revision = '41fc015bc30c' down_revision = '890f0f2ba1d1' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - ...
22.481481
78
0.693575
7374e6e68994c5e8a7e8a506106a403652281ead
1,623
py
Python
src/utilities/hash_utility.py
yotam5/secure_gui_chat
dc4a3ba4a9a7b79924a8b304f297174e3564d557
[ "MIT" ]
null
null
null
src/utilities/hash_utility.py
yotam5/secure_gui_chat
dc4a3ba4a9a7b79924a8b304f297174e3564d557
[ "MIT" ]
null
null
null
src/utilities/hash_utility.py
yotam5/secure_gui_chat
dc4a3ba4a9a7b79924a8b304f297174e3564d557
[ "MIT" ]
null
null
null
import hashlib from os import urandom def hash_verify(key: bytes, salt: bytes, password: str, length=64): """[verify password with stored hash, need user salt and entered password] Args: key (bytes): [the user full hash] salt (bytes): [the user salt] password (str): [the user passwor...
31.211538
82
0.601356
7374e989ed69b53c4462e87293aec5da6ac17fb6
836
py
Python
Assignment_4/src/PartDataPrep.py
thealphadollar/ML-Assignments
547c115d0d62c770aa673bf98fd56ff184bcfbd6
[ "MIT" ]
null
null
null
Assignment_4/src/PartDataPrep.py
thealphadollar/ML-Assignments
547c115d0d62c770aa673bf98fd56ff184bcfbd6
[ "MIT" ]
1
2021-02-02T23:14:05.000Z
2021-02-02T23:14:05.000Z
Assignment_4/src/PartDataPrep.py
thealphadollar/CS60050-ML-Assignments
547c115d0d62c770aa673bf98fd56ff184bcfbd6
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # @author: Shivam Kumar Jha # @rollno: 17CS30033 import pandas as pd from sklearn.model_selection import train_test_split with open('../data/seeds_dataset.txt', 'r') as data: with open('../data/seeds_dataset.csv', 'w+') as wData: for line in data.readlines(): ...
26.967742
67
0.650718
7375168e221595c5154935fdf2f70388643eb949
1,424
py
Python
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/display_button_simpletest.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
47
2021-02-15T23:02:36.000Z
2022-03-04T21:30:03.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/display_button_simpletest.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
7
2021-02-19T20:00:08.000Z
2022-01-14T10:51:12.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/display_button_simpletest.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
14
2021-02-20T17:40:56.000Z
2022-01-01T19:53:38.000Z
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries # SPDX-License-Identifier: MIT import board import displayio import terminalio import adafruit_touchscreen from adafruit_button import Button # --| Button Config |------------------------------------------------- BUTTON_X = 110 BUTTON_Y = 95 BUTTON_WIDTH ...
23.344262
70
0.677669
737533241bf4837405d7b31cbc76bdedc9c62033
3,765
py
Python
python/ctakes/format/XMI.py
drgriffis/ctakes-utils
d5da557ee68918fc33326a029f37a24d39acb10a
[ "Apache-2.0" ]
1
2018-10-31T02:31:37.000Z
2018-10-31T02:31:37.000Z
python/ctakes/format/XMI.py
drgriffis/ctakes-utils
d5da557ee68918fc33326a029f37a24d39acb10a
[ "Apache-2.0" ]
1
2018-02-04T19:24:52.000Z
2021-08-25T08:16:36.000Z
python/ctakes/format/XMI.py
drgriffis/ctakes-utils
d5da557ee68918fc33326a029f37a24d39acb10a
[ "Apache-2.0" ]
null
null
null
''' Methods for handling cTAKES XMI output. @depends BeautifulSoup ''' import re import codecs from bs4 import BeautifulSoup from . import common from ..annotations import Mention from ..exceptions import * def getMentions(fpath): '''Get the (ambiguous) entity mentions from the XMI file, as a list of Mention...
32.179487
95
0.651262
7375501294ef29ecedd760846ce44ff50b83e9ff
2,087
py
Python
examples/basics/use_dask.py
lfwin/tflearn
06015c73a4d9ad9edafeb9b61ee9004fd715f69e
[ "MIT" ]
20
2016-04-04T06:15:43.000Z
2021-04-18T18:40:30.000Z
examples/basics/use_dask.py
NLPDev/tflearn
77436978c62124bd91ef739dc77c9ea58277c779
[ "MIT" ]
null
null
null
examples/basics/use_dask.py
NLPDev/tflearn
77436978c62124bd91ef739dc77c9ea58277c779
[ "MIT" ]
9
2016-04-26T05:31:47.000Z
2019-08-24T18:12:21.000Z
# -*- coding: utf-8 -*- """ Example on how to use Dask with TFLearn. Dask is a simple task scheduling system that uses directed acyclic graphs (DAGs) of tasks to break up large computations into many small ones. It can handle large dataset that could not fit totally in ram memory. Note that this example just give a qui...
39.377358
75
0.737422
7375582ea5945f49b523b3076d03d3bed1c98479
6,318
py
Python
tests/test_sensor.py
eifinger/hass-foldingathomecontrol
9f5d9216fc06eb227eb8a7ab4de07f2fd8d8fc8e
[ "MIT" ]
15
2020-03-28T13:28:40.000Z
2022-01-03T11:23:45.000Z
tests/test_sensor.py
eifinger/hass-foldingathomecontrol
9f5d9216fc06eb227eb8a7ab4de07f2fd8d8fc8e
[ "MIT" ]
110
2020-03-29T17:45:25.000Z
2022-03-31T17:12:45.000Z
tests/test_sensor.py
eifinger/hass-foldingathomecontrol
9f5d9216fc06eb227eb8a7ab4de07f2fd8d8fc8e
[ "MIT" ]
5
2020-04-23T17:49:49.000Z
2021-12-31T02:03:22.000Z
"""Tests for the foldingathomecontrol sensor platform.""" import asyncio from asyncio.streams import StreamReader from unittest.mock import AsyncMock, MagicMock, patch import pytest from homeassistant.const import EVENT_HOMEASSISTANT_START from pytest_homeassistant_custom_component.common import MockConfigEntry from ...
31.277228
130
0.588794
73756f4290bebf43efc4c07612f2346ecf9c9752
2,191
py
Python
project_euler/problem_42/solution42.py
tg12/Python
398d1dbf4b780d1725aeae9a91b4c79f4410e2f0
[ "MIT" ]
null
null
null
project_euler/problem_42/solution42.py
tg12/Python
398d1dbf4b780d1725aeae9a91b4c79f4410e2f0
[ "MIT" ]
null
null
null
project_euler/problem_42/solution42.py
tg12/Python
398d1dbf4b780d1725aeae9a91b4c79f4410e2f0
[ "MIT" ]
1
2020-06-26T09:46:17.000Z
2020-06-26T09:46:17.000Z
'''THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OT...
32.220588
80
0.696486
73756f794590a3d616b42fa27649ffced19c16d3
458
py
Python
tests/unit/test_client_initialisation.py
querius-dev/client
91018b78fd199e5653adc022ef628347a4e6c588
[ "Apache-2.0" ]
null
null
null
tests/unit/test_client_initialisation.py
querius-dev/client
91018b78fd199e5653adc022ef628347a4e6c588
[ "Apache-2.0" ]
null
null
null
tests/unit/test_client_initialisation.py
querius-dev/client
91018b78fd199e5653adc022ef628347a4e6c588
[ "Apache-2.0" ]
null
null
null
import json from pathlib import Path from querius import QueriusClient def test_initialising_client_from_json(): service_account_info = json.loads(Path('fake-service-account.json').read_text()) config = { "customer_id": "test_customer_id", "service_account_info": service_account_info, ...
28.625
84
0.727074
73758036289ecfa6446ef9b9120dead2ba4fad9b
9,800
py
Python
tests/synthdefs/test_synthdefs_SynthDefCompiler_basic.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
tests/synthdefs/test_synthdefs_SynthDefCompiler_basic.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
tests/synthdefs/test_synthdefs_SynthDefCompiler_basic.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
# flake8: noqa import supriya.synthdefs import supriya.ugens def test_SynthDefCompiler_basic_01(): with supriya.synthdefs.SynthDefBuilder() as builder: sine_one = supriya.ugens.SinOsc.ar(frequency=420) sine_two = supriya.ugens.SinOsc.ar(frequency=440) sines = sine_one * sine_two s...
34.385965
71
0.423367
737596461a553331f79f231c0b1d984abe67d8ce
1,256
py
Python
tests/apptests.py
marianoleonardo/history
dd99df70c80760d7fc4592eef75d019da975a9ab
[ "Apache-2.0" ]
null
null
null
tests/apptests.py
marianoleonardo/history
dd99df70c80760d7fc4592eef75d019da975a9ab
[ "Apache-2.0" ]
65
2018-05-08T16:53:14.000Z
2022-03-11T18:07:21.000Z
tests/apptests.py
marianoleonardo/history
dd99df70c80760d7fc4592eef75d019da975a9ab
[ "Apache-2.0" ]
28
2018-05-21T16:01:46.000Z
2021-09-29T21:49:29.000Z
from flask import Flask import json app = Flask(__name__) resp_json = { "attrs": { "1": [ { "created": "2018-08-02T12:52:14.569559+00:00", "id": 1, "label": "temperature", "static_value": "", "template_id": "1", ...
26.723404
62
0.397293
7375a6b6b3039e39694c4d6714a9ac08e45d9a85
23,322
py
Python
electrum/submarine_swaps.py
particl/electrum
f1b8c13636c9ffcf6fd37a03340d4eff2d7f0354
[ "MIT" ]
null
null
null
electrum/submarine_swaps.py
particl/electrum
f1b8c13636c9ffcf6fd37a03340d4eff2d7f0354
[ "MIT" ]
null
null
null
electrum/submarine_swaps.py
particl/electrum
f1b8c13636c9ffcf6fd37a03340d4eff2d7f0354
[ "MIT" ]
null
null
null
import asyncio import json import os from typing import TYPE_CHECKING, Optional, Dict, Union from decimal import Decimal import math import attr from .crypto import sha256, hash_160 from .ecc import ECPrivkey from .bitcoin import (script_to_p2wsh, opcodes, p2wsh_nested_script, push_script, is_se...
42.871324
137
0.641969
7375c65a96d728e4c02d54a33240ce796a2a322d
1,658
py
Python
nhps/functions/draw.py
Anirudh-Murali/neural-hawkes-particle-smoothing
96b258838bdab33b781008daeedfa61dec0d553c
[ "BSD-3-Clause" ]
37
2019-05-14T04:42:40.000Z
2021-09-10T11:51:11.000Z
nhps/functions/draw.py
wangjingbo1219/neural-hawkes-particle-smoothing
8f33c75038e739a2a0b61db854dd97d918ce2d19
[ "BSD-3-Clause" ]
5
2019-08-18T12:06:36.000Z
2021-09-21T22:00:29.000Z
nhps/functions/draw.py
wangjingbo1219/neural-hawkes-particle-smoothing
8f33c75038e739a2a0b61db854dd97d918ce2d19
[ "BSD-3-Clause" ]
12
2019-08-11T22:41:55.000Z
2020-11-24T18:11:34.000Z
# -*- coding: utf-8 -*- # !/usr/bin/python """ Draw figures to compare performance of different models @author: hongyuan """ import pickle import time import numpy import os import sys import datetime import matplotlib.pyplot as plt plt.switch_backend('agg') import torch import torch.nn as nn import torch.optim as ...
25.121212
71
0.654403
7375d03a4c1defe1f91ebcde0ee0ff9f0bd3e7e9
1,159
py
Python
test/test_full_email_validation_response.py
doc22940/cloudmersive.apiclient.python
8646291f45ebd7c6572a296e30f693693a6782c4
[ "Apache-2.0" ]
3
2018-06-23T21:37:21.000Z
2020-04-20T23:07:36.000Z
test/test_full_email_validation_response.py
doc22940/cloudmersive.apiclient.python
8646291f45ebd7c6572a296e30f693693a6782c4
[ "Apache-2.0" ]
1
2019-02-04T17:03:35.000Z
2019-03-02T20:16:52.000Z
test/test_full_email_validation_response.py
doc22940/cloudmersive.apiclient.python
8646291f45ebd7c6572a296e30f693693a6782c4
[ "Apache-2.0" ]
2
2019-03-21T15:54:15.000Z
2020-05-27T17:30:43.000Z
# coding: utf-8 """ validateapi The validation APIs help you validate data. Check if an E-mail address is real. Check if a domain is real. Check up on an IP address, and even where it is located. All this and much more is available in the validation API. # noqa: E501 OpenAPI spec version: v1 Ge...
28.268293
240
0.740293
7375d4f9c0732a1867d6a28f2e9ef5286addb8c6
7,512
py
Python
python/examples/datacollection.py
RedEyeDragon/hapBack
6db262f185fa1d8027c4c6cc04a6f45edbcbf12c
[ "BSD-2-Clause" ]
null
null
null
python/examples/datacollection.py
RedEyeDragon/hapBack
6db262f185fa1d8027c4c6cc04a6f45edbcbf12c
[ "BSD-2-Clause" ]
null
null
null
python/examples/datacollection.py
RedEyeDragon/hapBack
6db262f185fa1d8027c4c6cc04a6f45edbcbf12c
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python3 import sys import os import json import random import math import array as arr from os.path import join as pjoin from util.button_util import * class DataHandler: #global distCtr ctr = 0 numRight = 0 distCtr ={'1': ctr, '2': ctr, '3': ctr,'4': ctr, '5': ctr} repeatCounter ...
35.267606
114
0.583466
7375ecf9f64ee74e4184dcab6eb2ca7031a9eea7
16,026
py
Python
test_c_est.py
sitzikbs/DeepF
e6106953ff6d47cb126e1d2ca488a6030bdc9f81
[ "MIT" ]
87
2020-07-21T09:09:03.000Z
2022-03-28T09:29:22.000Z
test_c_est.py
sitzikbs/DeepF
e6106953ff6d47cb126e1d2ca488a6030bdc9f81
[ "MIT" ]
7
2021-01-09T21:44:20.000Z
2021-11-19T08:08:09.000Z
test_c_est.py
sitzikbs/DeepF
e6106953ff6d47cb126e1d2ca488a6030bdc9f81
[ "MIT" ]
19
2020-08-09T03:35:24.000Z
2022-03-25T07:00:41.000Z
# test_c_est.py test a pretrained DeepFit model and export all estimated parameters # Author:Itzik Ben Sabat sitzikbs[at]gmail.com # If you use this code,see LICENSE.txt file and cite our work from __future__ import print_function import argparse import os import sys import random import numpy as np import torch impor...
52.372549
178
0.635967
73766624b6734331919f356cf8e9d7f438b5aa01
195
py
Python
appengine/isolate/proto/__init__.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
1
2017-10-30T15:08:10.000Z
2017-10-30T15:08:10.000Z
appengine/isolate/proto/__init__.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
null
null
null
appengine/isolate/proto/__init__.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
1
2020-07-05T19:54:40.000Z
2020-07-05T19:54:40.000Z
#!/usr/bin/env python # Copyright 2017 The LUCI Authors. All rights reserved. # Use of this source code is governed under the Apache License, Version 2.0 # that can be found in the LICENSE file.
39
75
0.758974
737670d06fd3dab02a84e2ba0c23c296f23ad2dd
2,580
py
Python
main.py
LucasHagen/parabola-reader
655c71b0d2a62a0157b106f51f4ef6d8eb2efa51
[ "MIT" ]
null
null
null
main.py
LucasHagen/parabola-reader
655c71b0d2a62a0157b106f51f4ef6d8eb2efa51
[ "MIT" ]
null
null
null
main.py
LucasHagen/parabola-reader
655c71b0d2a62a0157b106f51f4ef6d8eb2efa51
[ "MIT" ]
null
null
null
import argparse import sys from matplotlib import pyplot as plt import cv2 import numpy as np from parabola import Parabola from axis import Axis """ ============================================================================ Python version verification Required Python version: 3.5 ==========================...
31.463415
84
0.577907
7376a52e8f36b9cba9e4e183eabba6b2914a513c
746
py
Python
ignition/flame/tensors/__init__.py
VictorEijkhout/ignition
95cd8ada9281db31bb7c5a64f5561b43c472cb41
[ "BSD-2-Clause-FreeBSD" ]
1
2019-10-05T23:14:27.000Z
2019-10-05T23:14:27.000Z
ignition/flame/tensors/__init__.py
VictorEijkhout/ignition
95cd8ada9281db31bb7c5a64f5561b43c472cb41
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
ignition/flame/tensors/__init__.py
VictorEijkhout/ignition
95cd8ada9281db31bb7c5a64f5561b43c472cb41
[ "BSD-2-Clause-FreeBSD" ]
1
2019-11-14T01:27:23.000Z
2019-11-14T01:27:23.000Z
"""Symbolic tensor library Provides a small symbolic tensor library for use with flame algorithms. """ # Cyclic dependencies require this order. from tensor_expr import ( ConformityError, TensorExpr, is_zero, is_outer, is_inner, mul_rank, expr_coeff, expr_shape, expr_rank) from tensor import (Tensor) from bas...
41.444444
79
0.797587
7376b18e9f41ad5d20bc933f352ae1ece029b25d
20,742
py
Python
sync2html.py
CentOS/centos-sync-packages
acee00c62054eec8d2d85357785c9cd136b3bee8
[ "MIT" ]
1
2020-03-25T18:46:06.000Z
2020-03-25T18:46:06.000Z
sync2html.py
CentOS/centos-sync-packages
acee00c62054eec8d2d85357785c9cd136b3bee8
[ "MIT" ]
11
2020-03-26T21:13:43.000Z
2020-07-30T22:09:38.000Z
sync2html.py
CentOS/centos-sync-packages
acee00c62054eec8d2d85357785c9cd136b3bee8
[ "MIT" ]
3
2020-02-27T13:39:12.000Z
2020-07-21T18:37:31.000Z
#! /usr/bin/python2 """Sync packages from a dist-git repository to a koji build system. Eg. Build packages which are newer in git than in the tag/compose we are looking at. """ from __future__ import print_function import koji import json import sys import os import shutil import tempfile import spkg import time imp...
31.332326
146
0.551538
7376bf43c70f50ee14757028612097629736c54b
6,688
py
Python
libnamebench/benchmark.py
claudioandre-br/namebench
5bb5df4b4996be6a0947810b800177481f4e7299
[ "Apache-2.0" ]
5
2015-08-19T13:22:38.000Z
2022-02-07T00:22:44.000Z
libnamebench/benchmark.py
claudioandre/namebench
5bb5df4b4996be6a0947810b800177481f4e7299
[ "Apache-2.0" ]
null
null
null
libnamebench/benchmark.py
claudioandre/namebench
5bb5df4b4996be6a0947810b800177481f4e7299
[ "Apache-2.0" ]
2
2021-02-09T15:15:47.000Z
2021-08-28T08:53:52.000Z
# Copyright 2009 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
35.015707
100
0.692883
7376ddf60ef82ca08784515df0592dfa4a3fc606
1,772
py
Python
venv/Lib/site-packages/pyrogram/methods/auth/connect.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
5
2021-09-11T22:01:15.000Z
2022-03-16T21:33:42.000Z
backend/pyrogram/methods/auth/connect.py
iamatlasss/social-media-analyzer
429d1d2bbd8bfce80c50c5f8edda58f87ace668d
[ "Apache-2.0" ]
null
null
null
backend/pyrogram/methods/auth/connect.py
iamatlasss/social-media-analyzer
429d1d2bbd8bfce80c50c5f8edda58f87ace668d
[ "Apache-2.0" ]
3
2022-01-18T11:06:22.000Z
2022-02-26T13:39:28.000Z
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
34.745098
115
0.684537
7377103315cc2a4a3824319356346cf2e817a360
12,141
py
Python
tensorflow_federated/python/core/impl/computation_wrapper_test.py
xueyuuu/federated
ad617401324c133eb838e4e0af7442a4dfa71d6e
[ "Apache-2.0" ]
2
2019-07-09T10:04:39.000Z
2019-10-02T05:10:16.000Z
tensorflow_federated/python/core/impl/computation_wrapper_test.py
xueyuuu/federated
ad617401324c133eb838e4e0af7442a4dfa71d6e
[ "Apache-2.0" ]
null
null
null
tensorflow_federated/python/core/impl/computation_wrapper_test.py
xueyuuu/federated
ad617401324c133eb838e4e0af7442a4dfa71d6e
[ "Apache-2.0" ]
null
null
null
# Lint as: python3 # Copyright 2018, The TensorFlow Federated Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required ...
33.818942
80
0.675645
737710c90c01c42579b6dbda919d0836e8d5cb22
3,305
py
Python
conekt/flask_blast/blast.py
legumeinfo/CoNekT
709a4980cfa255cafd456b268e274db2b4b1f5fb
[ "MIT" ]
14
2018-08-20T03:07:21.000Z
2021-11-04T11:15:31.000Z
conekt/flask_blast/blast.py
mutwil/CoNekT
f4a4496a87d14b15bcf587975b31a2edc24c6bf7
[ "MIT" ]
9
2018-07-17T15:30:47.000Z
2021-07-05T13:11:54.000Z
conekt/flask_blast/blast.py
mutwil/CoNekT
f4a4496a87d14b15bcf587975b31a2edc24c6bf7
[ "MIT" ]
3
2019-08-05T09:16:34.000Z
2019-12-04T23:59:28.000Z
from threading import Thread from queue import Queue from time import sleep import os import sys import subprocess import shlex class BlastThread(Thread): def __init__(self, app=None): """ Sets up thread, empty queue and register with app :param app: flask-app to register with """...
34.789474
119
0.565204
7377202b22561eea0a465211795ea8508a23471d
4,340
py
Python
tests/unit/auto_ml/test_interval_analyser.py
Amplo-GmbH/AutoML
eb6cc83b6e4a3ddc7c3553e9c41d236e8b48c606
[ "MIT" ]
5
2022-01-07T13:34:37.000Z
2022-03-17T06:40:28.000Z
tests/unit/auto_ml/test_interval_analyser.py
Amplo-GmbH/AutoML
eb6cc83b6e4a3ddc7c3553e9c41d236e8b48c606
[ "MIT" ]
5
2022-03-22T13:42:22.000Z
2022-03-31T16:20:44.000Z
tests/unit/auto_ml/test_interval_analyser.py
Amplo-GmbH/AutoML
eb6cc83b6e4a3ddc7c3553e9c41d236e8b48c606
[ "MIT" ]
1
2021-12-17T22:41:11.000Z
2021-12-17T22:41:11.000Z
import pytest from pathlib import Path import numpy as np import pandas as pd from Amplo.AutoML import IntervalAnalyser from Amplo.Utils.testing import make_interval_data from tests import rmtree def create_data_frames(n_samples, n_features): dim = (int(n_samples / 2), n_features) columns = [f'Feature_{i}' ...
39.454545
120
0.624885
73775f568d38fabb6217fd7141f9d70ba24aaff8
290
py
Python
pni_customization/pni_customization/doctype/duty_employee_group/duty_employee_group.py
DaizyModi/pni_customization
577946e91c8fe956ca64c089327ce18174002ec4
[ "MIT" ]
null
null
null
pni_customization/pni_customization/doctype/duty_employee_group/duty_employee_group.py
DaizyModi/pni_customization
577946e91c8fe956ca64c089327ce18174002ec4
[ "MIT" ]
null
null
null
pni_customization/pni_customization/doctype/duty_employee_group/duty_employee_group.py
DaizyModi/pni_customization
577946e91c8fe956ca64c089327ce18174002ec4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2020, Jigar Tarpara and contributors # For license information, please see license.txt from __future__ import unicode_literals # import frappe from frappe.model.document import Document class DutyEmployeeGroup(Document): def validate(self): pass
26.363636
52
0.775862
73778b3768a738db9edfba9fe170ba200ecd7131
4,320
py
Python
main.py
DeniBademi/Fourier-Series-drawing-replicator
78605d2fd263d36a7f03b5f00110f1ad372e1400
[ "MIT" ]
null
null
null
main.py
DeniBademi/Fourier-Series-drawing-replicator
78605d2fd263d36a7f03b5f00110f1ad372e1400
[ "MIT" ]
null
null
null
main.py
DeniBademi/Fourier-Series-drawing-replicator
78605d2fd263d36a7f03b5f00110f1ad372e1400
[ "MIT" ]
null
null
null
# Code by Denis Zahariev(DeniBademi) 2021 # Made with <3 and python # Email: denis.zaharievv@gmail.com import numpy as np import matplotlib.pyplot as plt import matplotlib.animation as animation from matplotlib.cm import get_cmap from basicAnimation import drawingMachine as dW from basicAnimation import animateF impor...
27.169811
115
0.610648
7377967491710827522883f7d8d1528d3e3d4b88
5,037
py
Python
tests/core/consensus/test_pot_iterations.py
hulatang/skynet-blockchain
d7d6f7ec84731c13b9d6d307bb171cf0e266be82
[ "Apache-2.0" ]
7
2021-09-07T02:14:15.000Z
2022-03-27T06:42:35.000Z
tests/core/consensus/test_pot_iterations.py
hulatang/skynet-blockchain
d7d6f7ec84731c13b9d6d307bb171cf0e266be82
[ "Apache-2.0" ]
1
2021-10-21T16:38:56.000Z
2021-11-15T13:03:15.000Z
tests/core/consensus/test_pot_iterations.py
hulatang/skynet-blockchain
d7d6f7ec84731c13b9d6d307bb171cf0e266be82
[ "Apache-2.0" ]
3
2021-10-21T07:17:40.000Z
2022-03-16T12:57:09.000Z
from pytest import raises from skynet.consensus.default_constants import DEFAULT_CONSTANTS from skynet.consensus.pos_quality import _expected_plot_size from skynet.consensus.pot_iterations import ( calculate_ip_iters, calculate_iterations_quality, calculate_sp_iters, is_overflow_block, ) from skynet.ut...
43.422414
120
0.655747
7377ae0f8476ff2b12e7be4d197e8739b2463bb8
10,476
py
Python
collections/ansible_collections/community/general/plugins/modules/pipx.py
escalate/my-smart-home
a9579c845761b980515ff34d2a95568c6e7c2b6c
[ "MIT" ]
22
2021-07-16T08:11:22.000Z
2022-03-31T07:15:34.000Z
Ansible-AWS-Provisioning/collections/ansible_collections/community/general/plugins/modules/pipx.py
premsagar0228/ansible-real-life
1a51193b833ab6ad320100472333b9ffb0da39d4
[ "MIT" ]
1
2022-03-12T02:25:26.000Z
2022-03-12T02:25:26.000Z
Ansible-AWS-Provisioning/collections/ansible_collections/community/general/plugins/modules/pipx.py
premsagar0228/ansible-real-life
1a51193b833ab6ad320100472333b9ffb0da39d4
[ "MIT" ]
39
2021-07-05T02:31:42.000Z
2022-03-31T02:46:03.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2021, Alexei Znamensky <russoz@gmail.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = ''' --- module: pipx short_desc...
36.757895
134
0.610443
7377bfb958ca9fc68772e5e1d0b2735c15a371d2
895
py
Python
jaffle/app/pytest/lexer.py
albert118/jaffle
55da4d75ad3a9ca633af3865cc35b73e3406a4ef
[ "BSD-3-Clause" ]
5
2018-06-13T14:10:43.000Z
2020-04-26T20:48:59.000Z
jaffle/app/pytest/lexer.py
albert118/jaffle
55da4d75ad3a9ca633af3865cc35b73e3406a4ef
[ "BSD-3-Clause" ]
1
2018-05-02T02:31:24.000Z
2018-05-02T02:31:24.000Z
jaffle/app/pytest/lexer.py
albert118/jaffle
55da4d75ad3a9ca633af3865cc35b73e3406a4ef
[ "BSD-3-Clause" ]
2
2021-05-17T16:27:16.000Z
2022-02-09T09:06:12.000Z
# -*- coding: utf-8 -*- from prompt_toolkit.layout.lexers import Lexer from pygments.token import Token class PyTestLexer(Lexer): def lex_document(self, cli, document): lines = document.lines def get_line(lineno): try: line = lines[lineno] if '::' in l...
27.121212
75
0.522905
7377e162e636bf298226a6096f747bfc9b98eb1f
4,760
py
Python
anlg/tokenizers.py
rlebras/abductive-commonsense-reasoning
1632561ea87da2129fc2275498f52e175b75b8ec
[ "Apache-2.0" ]
41
2020-02-27T22:46:13.000Z
2022-03-22T02:53:32.000Z
anlg/tokenizers.py
higuseonhye/abductive-commonsense-reasoning
3407ad999ccc351fc78dd0598d584d1e9f5bd2fc
[ "Apache-2.0" ]
3
2020-04-05T20:20:06.000Z
2020-09-01T10:19:05.000Z
anlg/tokenizers.py
higuseonhye/abductive-commonsense-reasoning
3407ad999ccc351fc78dd0598d584d1e9f5bd2fc
[ "Apache-2.0" ]
16
2020-04-29T22:56:27.000Z
2022-03-20T15:22:00.000Z
from comet.data.atomic import all_categories from pytorch_transformers import GPT2Tokenizer class AnliGpt2Tokenizer(GPT2Tokenizer): def __init__(self, vocab_file, merges_file, errors='replace', unk_token="<|endoftext|>", bos_toke...
35
94
0.536765
7377f33ceedafaae12337d5313cd2b9ef7201431
13,405
py
Python
satella/coding/misc.py
piotrmaslanka/satella
bf4ba7a21ad2ac93a366442a2b4574dc5568b87e
[ "MIT" ]
12
2019-12-13T10:17:38.000Z
2022-01-05T09:01:36.000Z
satella/coding/misc.py
piotrmaslanka/satella
bf4ba7a21ad2ac93a366442a2b4574dc5568b87e
[ "MIT" ]
26
2016-04-01T11:55:26.000Z
2021-12-30T17:03:59.000Z
satella/coding/misc.py
piotrmaslanka/satella
bf4ba7a21ad2ac93a366442a2b4574dc5568b87e
[ "MIT" ]
1
2021-05-31T08:45:22.000Z
2021-05-31T08:45:22.000Z
import enum import typing as tp import warnings from inspect import Parameter, signature from queue import Queue from satella.coding.recast_exceptions import rethrow_as def enum_value(value): """ If value is an enum, extract and return it's value. Otherwise, return it as-is. :param value: value to ...
32.223558
100
0.60925
73780623f90dbadefa7480c6805403279bcaec73
2,513
py
Python
aws-auth0-auth/authorizer.py
skarlekar/ms-auth-tutorials
0de172817e54533be93700de19028cfa8757861f
[ "MIT" ]
null
null
null
aws-auth0-auth/authorizer.py
skarlekar/ms-auth-tutorials
0de172817e54533be93700de19028cfa8757861f
[ "MIT" ]
1
2021-06-01T21:41:36.000Z
2021-06-01T21:41:36.000Z
aws-auth0-auth/authorizer.py
skarlekar/ms-auth-tutorials
0de172817e54533be93700de19028cfa8757861f
[ "MIT" ]
1
2017-10-26T15:08:40.000Z
2017-10-26T15:08:40.000Z
""" Policy Generator. Validate the given token and create an AWS policy. """ import tokenizer import json import logging from argparse import ArgumentParser def authorize(principalId, token, domain, audience, resource): """ Authorize the given resource for the prinicpal if the token is valid. 1. Use th...
33.506667
79
0.611222
7378106c8824039275d1892a0fcc505a448d052e
9,590
py
Python
src/python/pants/releases/packages.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
null
null
null
src/python/pants/releases/packages.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
1
2018-09-04T17:37:34.000Z
2018-09-04T19:42:58.000Z
src/python/pants/releases/packages.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import argparse import json import os import subprocess import sys from collections import defaultdict from configparser import ConfigParser from functools import total_ordering from urlli...
34.496403
187
0.693014
73781d3a85a0b959a3d90e230ece0788166357da
3,242
py
Python
chapter13-op-overloading/vector2d_v3.py
cgDeepLearn/fluentpython
ff89ad5a7da59c71f57b6392c9f5d5c6178e0475
[ "MIT" ]
1
2019-11-23T05:57:02.000Z
2019-11-23T05:57:02.000Z
chapter13-op-overloading/vector2d_v3.py
cgDeepLearn/fluentpython
ff89ad5a7da59c71f57b6392c9f5d5c6178e0475
[ "MIT" ]
null
null
null
chapter13-op-overloading/vector2d_v3.py
cgDeepLearn/fluentpython
ff89ad5a7da59c71f57b6392c9f5d5c6178e0475
[ "MIT" ]
1
2019-11-23T05:57:43.000Z
2019-11-23T05:57:43.000Z
""" A 2-dimensional vector class >>> v1 = Vector2d(3, 4) >>> print(v1.x, v1.y) 3.0 4.0 >>> x, y = v1 >>> x, y (3.0, 4.0) >>> v1 Vector2d(3.0, 4.0) >>> v1_clone = eval(repr(v1)) >>> v1 == v1_clone True >>> print(v1) (3.0, 4.0) >>> octets = bytes(v1) >>> octets...
23.492754
80
0.523442
7378306b2c81de05d7c02f0bff1a514e80d1436a
9,117
py
Python
google-cloud-sdk/.install/.backup/lib/surface/compute/https_health_checks/update.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2017-11-29T18:52:27.000Z
2017-11-29T18:52:27.000Z
google-cloud-sdk/.install/.backup/lib/surface/compute/https_health_checks/update.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/.install/.backup/lib/surface/compute/https_health_checks/update.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2020-07-25T12:09:01.000Z
2020-07-25T12:09:01.000Z
# Copyright 2014 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
39.297414
79
0.660086
73783fd7e19e803f74f3db1ccd74783411de8539
997
py
Python
2021/5/solution1.py
frenzymadness/aoc
c9018e757bae61a696e675a827aef873995abdd3
[ "WTFPL" ]
2
2020-12-04T09:45:38.000Z
2020-12-07T14:06:12.000Z
2021/5/solution1.py
frenzymadness/aoc
c9018e757bae61a696e675a827aef873995abdd3
[ "WTFPL" ]
null
null
null
2021/5/solution1.py
frenzymadness/aoc
c9018e757bae61a696e675a827aef873995abdd3
[ "WTFPL" ]
null
null
null
import re from collections import defaultdict class Line: def __init__(self, x1, y1, x2, y2): self.x1 = min(x1, x2) self.x2 = max(x1, x2) self.y1 = min(y1, y2) self.y2 = max(y1, y2) def all_points(self): for x in range(self.x1, self.x2+1): for y in range(se...
26.236842
63
0.542628
7378a497577e63bfa8ca09ad999741fd04de84d1
58,235
py
Python
deep-conus/08_dlmodel_evaluator.py
mariajmolina/deep-conus
33f9e2af3e39d9f03c7f9b8388fe9cd29224b624
[ "MIT" ]
5
2020-09-28T16:48:52.000Z
2021-03-19T07:54:27.000Z
deep-conus/08_dlmodel_evaluator.py
mariajmolina/deep-conus
33f9e2af3e39d9f03c7f9b8388fe9cd29224b624
[ "MIT" ]
null
null
null
deep-conus/08_dlmodel_evaluator.py
mariajmolina/deep-conus
33f9e2af3e39d9f03c7f9b8388fe9cd29224b624
[ "MIT" ]
2
2021-03-08T21:58:44.000Z
2021-03-09T06:50:38.000Z
from keras.models import load_model import xarray as xr import numpy as np import pandas as pd from sklearn.metrics.cluster import contingency_matrix from sklearn.metrics import roc_curve from sklearn.metrics import roc_auc_score import multiprocessing as mp from hagelslag.evaluation.ProbabilityMetrics import Distribut...
42.168718
208
0.560556
7378a88e2da05bd1552acb77297c588fa9dce9e0
3,740
py
Python
src/zeit/content/cp/browser/blocks/tests/test_automatic.py
ZeitOnline/zeit.content.cp
ee1dbc34e385e47a5c52eabbe01cdae2df09bd76
[ "BSD-3-Clause" ]
null
null
null
src/zeit/content/cp/browser/blocks/tests/test_automatic.py
ZeitOnline/zeit.content.cp
ee1dbc34e385e47a5c52eabbe01cdae2df09bd76
[ "BSD-3-Clause" ]
11
2015-04-16T14:15:08.000Z
2019-02-01T13:23:17.000Z
src/zeit/content/cp/browser/blocks/tests/test_automatic.py
ZeitOnline/zeit.content.cp
ee1dbc34e385e47a5c52eabbe01cdae2df09bd76
[ "BSD-3-Clause" ]
1
2015-12-03T14:58:26.000Z
2015-12-03T14:58:26.000Z
import transaction import unittest import zeit.cms.checkout.interfaces import zeit.content.cp.testing class TestAutomaticTeaserBlock(zeit.content.cp.testing.SeleniumTestCase): def setUp(self): super(TestAutomaticTeaserBlock, self).setUp() self.auto_teaser_title = 'Teaser Title Foo' teaser...
42.022472
78
0.696257
7378bd8ab25794a99d5147cbdf65f9a12c4d6ee3
505
py
Python
math_and_algorithm/033.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
2
2022-01-22T07:56:58.000Z
2022-01-24T00:29:37.000Z
math_and_algorithm/033.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
math_and_algorithm/033.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
import math ax, ay = map(int, input().split()) bx, by = map(int, input().split()) cx, cy = map(int, input().split()) bc = (cx - bx, cy - by) ba = (ax - bx, ay - by) ca = (ax - cx, ay - cy) cb = (bx - cx, by - cy) if bc[0] * ba[0] + bc[1] * ba[1] < 0: print(math.sqrt(ba[0] ** 2 + ba[1] ** 2)) elif cb[0] * ca[0] +...
25.25
47
0.471287
7378e69ea642ee6a8ed02fa8af52dbda9314e266
1,124
py
Python
alipay/aop/api/response/AlipaySocialAntfarmProjectinfoQueryResponse.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/response/AlipaySocialAntfarmProjectinfoQueryResponse.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/response/AlipaySocialAntfarmProjectinfoQueryResponse.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.response.AlipayResponse import AlipayResponse from alipay.aop.api.domain.AntfarmProjectInfo import AntfarmProjectInfo class AlipaySocialAntfarmProjectinfoQueryResponse(AlipayResponse): def __init__(self): super(AlipaySocialAnt...
34.060606
116
0.69395
7378edd72a6595c14261465d110b59c7640802c0
566
py
Python
mortimer/__init__.py
colekowalski/mortimer
f280de0e43a7cecc51a5192eadb77c1b52cbb553
[ "Apache-2.0" ]
1
2016-09-17T10:20:54.000Z
2016-09-17T10:20:54.000Z
mortimer/__init__.py
colekowalski/mortimer
f280de0e43a7cecc51a5192eadb77c1b52cbb553
[ "Apache-2.0" ]
null
null
null
mortimer/__init__.py
colekowalski/mortimer
f280de0e43a7cecc51a5192eadb77c1b52cbb553
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # 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...
43.538462
75
0.761484
737903cdc45b8d9ce26b31ce6fcf6d425bbb7a5f
885
py
Python
tests/test_datasets.py
isaaccorley/detcon-pytorch
a5e03faf0c27bdbe64b72625873c0b2d3a696f04
[ "MIT" ]
5
2021-10-30T05:10:42.000Z
2022-03-26T08:44:17.000Z
tests/test_datasets.py
isaaccorley/detcon-pytorch
a5e03faf0c27bdbe64b72625873c0b2d3a696f04
[ "MIT" ]
2
2021-12-20T08:52:50.000Z
2021-12-28T15:14:48.000Z
tests/test_datasets.py
isaaccorley/detcon-pytorch
a5e03faf0c27bdbe64b72625873c0b2d3a696f04
[ "MIT" ]
1
2022-02-01T11:02:40.000Z
2022-02-01T11:02:40.000Z
from detcon.datasets import VOCSegmentationDataModule, VOCSSLDataModule ROOT = "data" def test_voc_segmentation_datamodule() -> None: dm = VOCSegmentationDataModule(root=ROOT) dm.setup() batch = next(iter(dm.train_dataloader())) batch = dm.on_before_batch_transfer(batch, 0) batch = dm.on_after_b...
29.5
71
0.726554
73792adba67e62ac57638ba6655af9c4d2320378
37,596
py
Python
soepy/solve/solve_auxiliary.py
OpenSourceEconomics/soepy
4ff40292799e248e356d614c1a7141bd35a912c9
[ "MIT" ]
12
2018-12-17T14:46:55.000Z
2022-03-28T21:15:33.000Z
soepy/solve/solve_auxiliary.py
OpenSourceEconomics/soepy
4ff40292799e248e356d614c1a7141bd35a912c9
[ "MIT" ]
129
2019-02-18T08:49:39.000Z
2022-03-25T16:52:08.000Z
soepy/solve/solve_auxiliary.py
OpenSourceEconomics/soepy
4ff40292799e248e356d614c1a7141bd35a912c9
[ "MIT" ]
6
2019-02-19T15:23:40.000Z
2022-03-28T21:16:00.000Z
import numpy as np import numba import pandas as pd from soepy.shared.shared_constants import ( MISSING_INT, NUM_CHOICES, INVALID_FLOAT, HOURS, ) from soepy.shared.shared_auxiliary import calculate_deductions from soepy.shared.shared_auxiliary import calculate_tax @numba.jit(nopython=True) def pyth_c...
38.129817
94
0.497925
737932852cf97c77aadda5a6d6c01b7ce0fd6953
1,721
py
Python
exercise2.py
Michael-Malania/exercises
03ac0662067716f953815a559f1eea78cfdf9d55
[ "MIT" ]
null
null
null
exercise2.py
Michael-Malania/exercises
03ac0662067716f953815a559f1eea78cfdf9d55
[ "MIT" ]
null
null
null
exercise2.py
Michael-Malania/exercises
03ac0662067716f953815a559f1eea78cfdf9d55
[ "MIT" ]
null
null
null
''' Lexicographical order is often known as alphabetical order when dealing with strings. A string is greater than another string if it comes later in a lexicographically sorted list. Given a word, create a new word by swapping some or all of its characters. This new word must meet two criteria: ● It must be grea...
71.708333
179
0.656014
73794281580664c6712229d7195b8afca117dadf
24
py
Python
btd6_memory_info/generated/Assets/Scripts/Unity/UI_New/InGame/TechBotInput/tech_bot_input.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Assets/Scripts/Unity/UI_New/InGame/TechBotInput/tech_bot_input.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Assets/Scripts/Unity/UI_New/InGame/TechBotInput/tech_bot_input.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class TechBotInput: pass
24
24
0.875
737944afed142f8cdc2002c4e6f1c5dee9b53d4f
1,377
py
Python
tweets/migrations/0004_auto_20200608_1501.py
DougCash/twitter-bot
2fee6e39ea407a97c4f23de55374f33cbfcf812c
[ "MIT" ]
null
null
null
tweets/migrations/0004_auto_20200608_1501.py
DougCash/twitter-bot
2fee6e39ea407a97c4f23de55374f33cbfcf812c
[ "MIT" ]
4
2020-06-06T02:30:42.000Z
2021-06-10T20:26:46.000Z
tweets/migrations/0004_auto_20200608_1501.py
DougCash/twitter-bot
2fee6e39ea407a97c4f23de55374f33cbfcf812c
[ "MIT" ]
null
null
null
# Generated by Django 2.2 on 2020-06-08 20:01 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ...
36.236842
137
0.634713
73794e96c2b13bceedfb7e3784a3ae517f5097b8
1,531
py
Python
dtApp/dtData/soton_twin.py
Digital-Twin-Operational-Platform/Cristallo
20e21f6ae0f0f99002a229c8c966fd72020698c3
[ "BSD-3-Clause" ]
6
2021-07-14T08:43:20.000Z
2022-02-02T19:40:26.000Z
dtApp/dtData/soton_twin.py
Digital-Twin-Operational-Platform/Cristallo
20e21f6ae0f0f99002a229c8c966fd72020698c3
[ "BSD-3-Clause" ]
null
null
null
dtApp/dtData/soton_twin.py
Digital-Twin-Operational-Platform/Cristallo
20e21f6ae0f0f99002a229c8c966fd72020698c3
[ "BSD-3-Clause" ]
2
2021-07-05T08:08:43.000Z
2022-03-28T09:46:02.000Z
Soton_twin_data = { 'metadata': { 'location': 'Southampton', 'lastupdate': { 'date': '26/05/2020', 'time': '11:00' } }, 'structure': { 'mass': {'value': 5.201, 'units': 'kg'}, # mass of each storey 'elasticityModulus': {'value': 70e9, 'units': 'Pa'}, 'legWidth': {'value': 25e-3, 'units': 'm'}, 'l...
28.886792
82
0.556499
73795538fffa8fbae5851442df72c119fe903392
1,882
py
Python
experiments/ashvin/icra2021/data_utils/smallify_npy.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icra2021/data_utils/smallify_npy.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icra2021/data_utils/smallify_npy.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
import numpy as np import pickle import skvideo.io import sys from pathlib import Path import glob import json import torch from rlkit.torch import pytorch_util as ptu from torchvision.utils import save_image import scipy.misc import scipy.ndimage import imageio import cv2 import copy from skimage.transform import ...
29.40625
96
0.670032
73795bbd7e493b94a1e7d5e67b4657973fe432d6
6,242
py
Python
consScore/amino_conservation_test.py
suliat16/consScore
c3104e26e665bcccb42f982fbb686bbdbca90f16
[ "MIT" ]
3
2018-10-04T18:45:40.000Z
2022-01-19T14:42:14.000Z
consScore/amino_conservation_test.py
suliat16/consScore
c3104e26e665bcccb42f982fbb686bbdbca90f16
[ "MIT" ]
5
2018-10-04T11:45:03.000Z
2018-10-09T14:16:06.000Z
consScore/amino_conservation_test.py
suliat16/consScore
c3104e26e665bcccb42f982fbb686bbdbca90f16
[ "MIT" ]
1
2018-10-04T11:17:45.000Z
2018-10-04T11:17:45.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Jul 1 16:58:25 2018 @author: suliat16 """ import os from consScore import aminoCons as am import biskit.test class test_amino_conservation(biskit.test.BiskitTest): """ Test suite testing the behaviour of the aminoCons module """ TAGS...
46.237037
120
0.580743
73795bf85cf37eb4b5ee9de8f0c98d7309643a30
10,842
py
Python
apps/logs/tests/test_manualdataupload_authorization.py
remocrevo/celus
682b13168eb475d7f970502113e756e40a899877
[ "MIT" ]
null
null
null
apps/logs/tests/test_manualdataupload_authorization.py
remocrevo/celus
682b13168eb475d7f970502113e756e40a899877
[ "MIT" ]
null
null
null
apps/logs/tests/test_manualdataupload_authorization.py
remocrevo/celus
682b13168eb475d7f970502113e756e40a899877
[ "MIT" ]
null
null
null
from collections import namedtuple from io import StringIO import pytest from django.urls import reverse from annotations.models import Annotation from core.tests.conftest import * from core.models import UL_CONS_ADMIN, UL_ORG_ADMIN, UL_CONS_STAFF from logs.models import ManualDataUpload from organizations.tests.conf...
47.13913
97
0.54418
7379a31938c577c738ed6341c2cacf41f893098b
9,907
py
Python
tests/system/test_measure_interledger_ethereum.py
SOFIE-project/interledger-asset-transfer
d1c2e5ff7af564b1ac1775772132b48a46c71280
[ "Apache-2.0" ]
4
2020-12-11T18:46:35.000Z
2022-01-07T16:58:43.000Z
tests/system/test_measure_interledger_ethereum.py
SOFIE-project/interledger-asset-transfer
d1c2e5ff7af564b1ac1775772132b48a46c71280
[ "Apache-2.0" ]
3
2021-05-11T23:45:18.000Z
2021-09-02T18:45:25.000Z
tests/system/test_measure_interledger_ethereum.py
SOFIE-project/Interledger
d1c2e5ff7af564b1ac1775772132b48a46c71280
[ "Apache-2.0" ]
4
2020-11-04T15:36:35.000Z
2021-08-05T12:38:08.000Z
from web3 import Web3 from unittest.mock import patch import pytest, time import asyncio from uuid import uuid4 from interledger.interledger import Interledger from interledger.adapter.ethereum import EthereumInitiator, EthereumResponder from .test_setup import setUp, create_token, accept_token, transfer_token, calcul...
44.426009
120
0.681942
7379ca7ed2d52c793fee54ab8701b63c44a3fc30
8,514
py
Python
caastools/plots.py
Awesomium40/caastools
acfae5e9117f0d9a49ebf78fd20c471070cf3915
[ "MIT" ]
null
null
null
caastools/plots.py
Awesomium40/caastools
acfae5e9117f0d9a49ebf78fd20c471070cf3915
[ "MIT" ]
null
null
null
caastools/plots.py
Awesomium40/caastools
acfae5e9117f0d9a49ebf78fd20c471070cf3915
[ "MIT" ]
null
null
null
from .database import Utterance from matplotlib import pyplot as plt import numpy import pandas import typing __all__ = ['disagreement_heatmap', 'reliability_plot', 'parsing_alignment_plot'] def _plot_parsing_axis_(results, category_names, ax, pad_first=False, enum_every=25): """ Plots the parsing alignment...
41.735294
119
0.677942
737a049a0f44517f17a68bb64c77c1999b74b33d
6,349
py
Python
src/communication/azext_communication/manual/_help.py
saisankargochhayat/azure-cli-extensions
f89443a766961f984977a2cf1b682973fcb61edd
[ "MIT" ]
null
null
null
src/communication/azext_communication/manual/_help.py
saisankargochhayat/azure-cli-extensions
f89443a766961f984977a2cf1b682973fcb61edd
[ "MIT" ]
null
null
null
src/communication/azext_communication/manual/_help.py
saisankargochhayat/azure-cli-extensions
f89443a766961f984977a2cf1b682973fcb61edd
[ "MIT" ]
1
2022-02-14T21:43:29.000Z
2022-02-14T21:43:29.000Z
# -------------------------------------------------------------------------- # 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 cause incor...
37.568047
170
0.670657
737a1df8ff2780dddfd81b78be83d743cc128417
5,344
py
Python
rlkit/torch/sets/swae.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
rlkit/torch/sets/swae.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
rlkit/torch/sets/swae.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
""" From: https://raw.githubusercontent.com/eifuentes/swae-pytorch/master/swae/trainer.py """ import numpy as np import torch import torch.nn.functional as F import rlkit.torch.pytorch_util as ptu def rand_projections(embedding_dim, num_samples=50): """This function generates `num_samples` random samples from t...
41.107692
99
0.655314
737a1ea9da1d8b2f1d96e2bbaf1aafaec8afed7e
3,350
py
Python
scripts/practice/Amazon/ShortestPathtoGetFood.py
bhimeshchauhan/competitive_programming
e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5
[ "MIT" ]
null
null
null
scripts/practice/Amazon/ShortestPathtoGetFood.py
bhimeshchauhan/competitive_programming
e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5
[ "MIT" ]
8
2020-09-05T16:04:31.000Z
2022-02-27T09:57:51.000Z
scripts/practice/Amazon/ShortestPathtoGetFood.py
bhimeshchauhan/competitive_programming
e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5
[ "MIT" ]
null
null
null
""" Shortest Path to Get Food You are starving and you want to eat food as quickly as possible. You want to find the shortest path to arrive at any food cell. You are given an m x n character matrix, grid, of these different types of cells: '*' is your location. There is exactly one '*' cell. '#' is a food cell. T...
26.171875
103
0.550448
737a3eecd550e5eeac984c966812a21574d2dc67
1,439
py
Python
toontown/building/TutorialBuildingAI.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/building/TutorialBuildingAI.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/building/TutorialBuildingAI.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.building import DistributedDoorAI from toontown.building import DoorTypes from toontown.building.DistributedTutorialInteriorAI import DistributedTutorialInteriorAI class TutorialBuildingAI: def __init__(self, air, exteriorZone, interiorZone, blockNumber, tutorialNpcId): self.air = air ...
41.114286
89
0.724809
737a435a59c6a6d580ed149be511b17403aec72f
5,146
py
Python
galpy/potential/DissipativeForce.py
turnergarrow/galpy
7132eddbf2dab491fe137790e31eacdc604b0534
[ "BSD-3-Clause" ]
1
2019-02-28T08:54:38.000Z
2019-02-28T08:54:38.000Z
galpy/potential/DissipativeForce.py
BurcuAkbulut/galpy
cabb42bef3b4f88a2f593cdb123452cd41451db3
[ "BSD-3-Clause" ]
null
null
null
galpy/potential/DissipativeForce.py
BurcuAkbulut/galpy
cabb42bef3b4f88a2f593cdb123452cd41451db3
[ "BSD-3-Clause" ]
null
null
null
############################################################################### # DissipativeForce.py: top-level class for non-conservative forces ############################################################################### import numpy from .Force import Force from galpy.util.bovy_conversion import physical_conve...
26.802083
102
0.580839
737a671d14eed1f8ef63fe06cdbd10f726fafc37
666
py
Python
LC/48.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
2
2018-02-24T17:20:02.000Z
2018-02-24T17:25:43.000Z
LC/48.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
LC/48.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
class Solution(object): def rotate(self, matrix): """ :type matrix: List[List[int]] :rtype: void Do not return anything, modify matrix in-place instead. """ n=len(matrix) for level in xrange(n/2): for i in xrange(n-2*level-1): matrix[level]...
37
76
0.46997
737a6c7a8e07d314634ed91add929abd8bb94612
459
py
Python
mysql/tests/tags.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
1
2020-08-08T02:01:01.000Z
2020-08-08T02:01:01.000Z
mysql/tests/tags.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
1
2018-08-15T05:50:17.000Z
2018-08-15T05:50:17.000Z
mysql/tests/tags.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
1
2019-03-06T14:30:52.000Z
2019-03-06T14:30:52.000Z
# (C) Datadog, Inc. 2010-2017 # All rights reserved # Licensed under Simplified BSD License (see LICENSE) import common METRIC_TAGS = ['tag1', 'tag2'] SC_TAGS = ['server:' + common.HOST, 'port:' + str(common.PORT), 'tag1', 'tag2'] SC_TAGS_MIN = ['server:' + common.HOST, 'port:' + str(common.PORT)] SC_TAGS_REPLICA = [...
38.25
93
0.675381
737a75df8662cd82feda14b299fffde7a2da9020
420
py
Python
reo/migrations/0117_financialmodel_generator_fuel_escalation_pct.py
NREL/REopt_API
fbc70f3b0cdeec9ee220266d6b3b0c5d64f257a6
[ "BSD-3-Clause" ]
7
2022-01-29T12:10:10.000Z
2022-03-28T13:45:20.000Z
reo/migrations/0117_financialmodel_generator_fuel_escalation_pct.py
NREL/reopt_api
fbc70f3b0cdeec9ee220266d6b3b0c5d64f257a6
[ "BSD-3-Clause" ]
12
2022-02-01T18:23:18.000Z
2022-03-31T17:22:17.000Z
reo/migrations/0117_financialmodel_generator_fuel_escalation_pct.py
NREL/REopt_API
fbc70f3b0cdeec9ee220266d6b3b0c5d64f257a6
[ "BSD-3-Clause" ]
3
2022-02-08T19:44:40.000Z
2022-03-12T11:05:36.000Z
# Generated by Django 3.1.8 on 2021-06-03 16:51 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('reo', '0116_auto_20210520_2348'), ] operations = [ migrations.AddField( model_name='financialmodel', name='generator...
22.105263
59
0.62381
737a82bbec2dde8766dce259398cb09f5ee67c61
46,891
py
Python
tensorflow_federated/python/core/impl/graph_utils_test.py
xueyuuu/federated
ad617401324c133eb838e4e0af7442a4dfa71d6e
[ "Apache-2.0" ]
2
2019-07-09T10:04:39.000Z
2019-10-02T05:10:16.000Z
tensorflow_federated/python/core/impl/graph_utils_test.py
xueyuuu/federated
ad617401324c133eb838e4e0af7442a4dfa71d6e
[ "Apache-2.0" ]
null
null
null
tensorflow_federated/python/core/impl/graph_utils_test.py
xueyuuu/federated
ad617401324c133eb838e4e0af7442a4dfa71d6e
[ "Apache-2.0" ]
null
null
null
# Lint as: python3 # Copyright 2018, The TensorFlow Federated Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required ...
43.019266
80
0.661108
737a84f058d0089f825896a48c20b51633f3fdb2
4,146
py
Python
openapi_client/models/stops.py
hypostulate/mbta-api-client
f18903b6269c523c733a31574ff4579349fed3f8
[ "MIT" ]
null
null
null
openapi_client/models/stops.py
hypostulate/mbta-api-client
f18903b6269c523c733a31574ff4579349fed3f8
[ "MIT" ]
null
null
null
openapi_client/models/stops.py
hypostulate/mbta-api-client
f18903b6269c523c733a31574ff4579349fed3f8
[ "MIT" ]
null
null
null
# coding: utf-8 """ MBTA MBTA service API. https://www.mbta.com Source code: https://github.com/mbta/api # noqa: E501 The version of the OpenAPI document: 3.0 Contact: developer@mbta.com Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from op...
27.456954
97
0.567294
737acc89e1a971dd103563c91a310098da03d546
2,199
py
Python
main_2D_test.py
LMikeH/ocbnn-lmikh
23f6a3c4c668bbffda82aabdd7139eb761091c48
[ "MIT" ]
null
null
null
main_2D_test.py
LMikeH/ocbnn-lmikh
23f6a3c4c668bbffda82aabdd7139eb761091c48
[ "MIT" ]
null
null
null
main_2D_test.py
LMikeH/ocbnn-lmikh
23f6a3c4c668bbffda82aabdd7139eb761091c48
[ "MIT" ]
null
null
null
import numpy as np import torch import logging import matplotlib.pyplot as plt from matplotlib.patches import Rectangle from bnn.svgd import * from bnn.hmc import * def rastrigin(params, noise_factor): """ This function generates :param params: :param noise_factor: :return: """ ras = 10*...
27.4875
141
0.666667
737ad6d9db8fa954938f1326d3dfa11e3e2b07af
450
py
Python
app/models/survivors/special_attributes.py
theLaborInVain/kdm-manager-api
fa8744c9b8a739262d1b94900648254cc69d16e1
[ "MIT" ]
2
2020-03-04T13:43:45.000Z
2020-11-03T20:34:21.000Z
app/models/survivors/special_attributes.py
theLaborInVain/kdm-manager-api
fa8744c9b8a739262d1b94900648254cc69d16e1
[ "MIT" ]
64
2019-07-19T19:19:50.000Z
2022-03-03T21:19:28.000Z
app/models/survivors/special_attributes.py
theLaborInVain/kdm-manager-api
fa8744c9b8a739262d1b94900648254cc69d16e1
[ "MIT" ]
null
null
null
""" Survivor Special Attributes are a pseudo asset: they're essentially pointers to multiple assets or flags that indicate that certain rules apply to a survivor. """ from app.assets.survivors import special_attributes from app import models class Assets(models.AssetCollection): def __init__(self...
23.684211
73
0.733333
737ae990c579db3884aa54faab7d0b72f59d8a86
14,644
py
Python
blatann/nrf/nrf_types/gatt.py
dkkeller/blatann
2b72df4812f68fb718ab96d16c82343ee35969a5
[ "BSD-3-Clause" ]
null
null
null
blatann/nrf/nrf_types/gatt.py
dkkeller/blatann
2b72df4812f68fb718ab96d16c82343ee35969a5
[ "BSD-3-Clause" ]
null
null
null
blatann/nrf/nrf_types/gatt.py
dkkeller/blatann
2b72df4812f68fb718ab96d16c82343ee35969a5
[ "BSD-3-Clause" ]
null
null
null
from enum import Enum import logging from blatann.nrf.nrf_dll_load import driver import blatann.nrf.nrf_driver_types as util from blatann.nrf.nrf_types.generic import BLEUUID, BLEUUIDBase from blatann.nrf.nrf_types.smp import * from blatann.nrf.nrf_types.enums import * logger = logging.getLogger(__name__) N...
35.201923
114
0.640604
737aef856f856277006cf481e542fad2ca9b9a55
39,815
py
Python
ngraph_onnx/onnx_importer/ops_bridge/opset_01.py
bergtholdt/ngraph-onnx
122de3d6c2a6f7f6e24ff2f8a5551b5465c618f6
[ "Apache-2.0" ]
null
null
null
ngraph_onnx/onnx_importer/ops_bridge/opset_01.py
bergtholdt/ngraph-onnx
122de3d6c2a6f7f6e24ff2f8a5551b5465c618f6
[ "Apache-2.0" ]
null
null
null
ngraph_onnx/onnx_importer/ops_bridge/opset_01.py
bergtholdt/ngraph-onnx
122de3d6c2a6f7f6e24ff2f8a5551b5465c618f6
[ "Apache-2.0" ]
null
null
null
# ****************************************************************************** # Copyright 2018 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.o...
41.954689
120
0.671229