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
7981aa38a4cf18bf0d472351145a61de6d770ee0
1,502
py
Python
Task 7_attempt 3.py
ElenaTest-dev/test-repository
f4b5671f43eac612d93993afce0c443e8e1a27cd
[ "Apache-2.0" ]
null
null
null
Task 7_attempt 3.py
ElenaTest-dev/test-repository
f4b5671f43eac612d93993afce0c443e8e1a27cd
[ "Apache-2.0" ]
null
null
null
Task 7_attempt 3.py
ElenaTest-dev/test-repository
f4b5671f43eac612d93993afce0c443e8e1a27cd
[ "Apache-2.0" ]
null
null
null
import pytest from selenium import webdriver from selenium.webdriver.support.wait import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.by import By from selenium.common.exceptions import NoSuchElementException @pytest.fixture def driver(request): ...
37.55
75
0.699734
7981aa9d9ed64dff7d3d4721c28d84f53c19b6bf
435
py
Python
tests/measurement/conftest.py
jerjohste/exopy
0fe3eb94f440ead88c396a1abccf7c22dd633a61
[ "BSD-3-Clause" ]
16
2018-03-20T09:06:23.000Z
2021-09-08T18:46:15.000Z
tests/measurement/conftest.py
jerjohste/exopy
0fe3eb94f440ead88c396a1abccf7c22dd633a61
[ "BSD-3-Clause" ]
118
2015-05-13T07:50:04.000Z
2018-02-14T17:37:20.000Z
tests/measurement/conftest.py
jerjohste/exopy
0fe3eb94f440ead88c396a1abccf7c22dd633a61
[ "BSD-3-Clause" ]
11
2018-03-02T11:17:26.000Z
2021-06-23T22:25:40.000Z
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # Copyright 2015-2018 by Exopy Authors, see AUTHORS for more details. # # Distributed under the terms of the BSD license. # # The full license is in the file LICENCE, distributed with this software. # ---------------...
36.25
79
0.45977
7981ac7b6b8d5e4572f247a7b011801f73e4f432
364
py
Python
news/migrations/0002_news_link.py
seongyeon1/stock
2aa67856ab8590d0d8f1fb1b99a1b1726b80e94c
[ "MIT" ]
null
null
null
news/migrations/0002_news_link.py
seongyeon1/stock
2aa67856ab8590d0d8f1fb1b99a1b1726b80e94c
[ "MIT" ]
null
null
null
news/migrations/0002_news_link.py
seongyeon1/stock
2aa67856ab8590d0d8f1fb1b99a1b1726b80e94c
[ "MIT" ]
null
null
null
# Generated by Django 3.2.8 on 2021-10-29 06:40 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('news', '0001_initial'), ] operations = [ migrations.AddField( model_name='news', name='link', field=mode...
19.157895
48
0.574176
7981ae680c524298eeeaec2bc8c1bdc01188d014
2,328
py
Python
otokon_archive/robotics/models.py
bilbeyt/otokon-archive
2a7e81c59f4489e94cc568661db56eeedcf63bb9
[ "MIT" ]
null
null
null
otokon_archive/robotics/models.py
bilbeyt/otokon-archive
2a7e81c59f4489e94cc568661db56eeedcf63bb9
[ "MIT" ]
null
null
null
otokon_archive/robotics/models.py
bilbeyt/otokon-archive
2a7e81c59f4489e94cc568661db56eeedcf63bb9
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.db import models from ckeditor_uploader.fields import RichTextUploadingField from django.db.models.signals import pre_save from django.template.defaultfilters import slugify from django.dispatch import receiver class Season(models.Model): name = models.CharField...
29.468354
61
0.74957
7981aefcd234af184f9fd66743e6f9c9e9c8725e
710
py
Python
misc/py/generate-dex-data.py
apaszke/dex-lang
b4ce47b24fc8159e403c8825876178d1d62819f2
[ "BSD-Source-Code" ]
1
2021-04-24T20:24:11.000Z
2021-04-24T20:24:11.000Z
misc/py/generate-dex-data.py
apaszke/dex-lang
b4ce47b24fc8159e403c8825876178d1d62819f2
[ "BSD-Source-Code" ]
null
null
null
misc/py/generate-dex-data.py
apaszke/dex-lang
b4ce47b24fc8159e403c8825876178d1d62819f2
[ "BSD-Source-Code" ]
null
null
null
# Copyright 2019 Google LLC # # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file or at # https://developers.google.com/open-source/licenses/bsd from collections import namedtuple import numpy as np import dex_binary_object as dbo data = (1.2, 12, (), ...
26.296296
58
0.556338
7981af067cbd640e5266fccccb6abd7c80e60b64
2,056
py
Python
spirit/search/forms.py
StepanBakshayev/Spirit
28c053983d8323801d022c5314af7fdff4569228
[ "MIT" ]
null
null
null
spirit/search/forms.py
StepanBakshayev/Spirit
28c053983d8323801d022c5314af7fdff4569228
[ "MIT" ]
null
null
null
spirit/search/forms.py
StepanBakshayev/Spirit
28c053983d8323801d022c5314af7fdff4569228
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django import forms from django.conf import settings from django.utils.translation import ugettext_lazy as _ from django.utils.encoding import smart_text from haystack.forms import SearchForm from haystack.query import EmptySearchQuerySet from ..t...
31.630769
103
0.655156
7981af88c10ab1d04d9c9e45923b3d3d10778c2a
381
py
Python
backend/connect/models.py
anubhav06/connect
7f9b7558995eb33d8355b5c69734530ff4eb5573
[ "MIT" ]
null
null
null
backend/connect/models.py
anubhav06/connect
7f9b7558995eb33d8355b5c69734530ff4eb5573
[ "MIT" ]
2
2021-12-12T11:42:30.000Z
2021-12-12T14:47:40.000Z
backend/connect/models.py
anubhav06/connect
7f9b7558995eb33d8355b5c69734530ff4eb5573
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User # Create your models here. class Files(models.Model): user = models.ForeignKey(User, on_delete=models.CASCADE, related_name="filesUser") audioFile = models.FileField() videoFile = models.FileField() def __str__(self): ...
23.8125
86
0.71916
7981b07ffb3578eb4d035241502e836bcf32470c
572
py
Python
etsiit_bot/__main__.py
jorgechp/etsiit_bot
91a50bbe140793b2d228ea694c2576def8b80d5b
[ "MIT" ]
1
2020-02-24T21:56:21.000Z
2020-02-24T21:56:21.000Z
etsiit_bot/__main__.py
jorgechp/etsiit_bot
91a50bbe140793b2d228ea694c2576def8b80d5b
[ "MIT" ]
39
2020-04-27T20:31:30.000Z
2021-01-11T21:45:34.000Z
etsiit_bot/__main__.py
jorgechp/etsiit_bot
91a50bbe140793b2d228ea694c2576def8b80d5b
[ "MIT" ]
null
null
null
# Copyright (c) 2020 Jorge Chamorro Padiel, Luis Liñán Villafranca. All rights # reserved. # This work is licensed under the terms of the MIT license. # For a copy, see <https://opensource.org/licenses/MIT> """ETSIIT bot main entrypoint.""" try: from etsiit_bot.bot import run_bot except ModuleNotFoundError: fro...
24.869565
78
0.706294
7981b36553a3e46d74d8147f0829377e2b946093
4,550
py
Python
timeWindowGridSearch/GenCalibPDFAlg/share/tut_calib2rec.py
jiangw425/JUNOOfflineProcess
60b267593a79ec06833c5d5d4270bbe1bbccf500
[ "Apache-2.0" ]
null
null
null
timeWindowGridSearch/GenCalibPDFAlg/share/tut_calib2rec.py
jiangw425/JUNOOfflineProcess
60b267593a79ec06833c5d5d4270bbe1bbccf500
[ "Apache-2.0" ]
null
null
null
timeWindowGridSearch/GenCalibPDFAlg/share/tut_calib2rec.py
jiangw425/JUNOOfflineProcess
60b267593a79ec06833c5d5d4270bbe1bbccf500
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- # author: lintao import Sniper def get_parser(): import argparse parser = argparse.ArgumentParser(description='Run Atmospheric Simulation.') parser.add_argument("--evtmax", type=int, default=1, help='events to be processed') parser.add_argument("--detopti...
43.333333
169
0.708791
7981b46650f685be0a3042231e1e727a6da7bb29
456
py
Python
BE/shop/orders/migrations/0002_auto_20180205_1655.py
kosior/ngLearn-1
4cc52153876aca409d56bd9cabace9283946bd32
[ "MIT" ]
1
2018-05-06T00:31:35.000Z
2018-05-06T00:31:35.000Z
BE/shop/orders/migrations/0002_auto_20180205_1655.py
kosior/ngLearn-1
4cc52153876aca409d56bd9cabace9283946bd32
[ "MIT" ]
null
null
null
BE/shop/orders/migrations/0002_auto_20180205_1655.py
kosior/ngLearn-1
4cc52153876aca409d56bd9cabace9283946bd32
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.8 on 2018-02-05 16:55 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('orders', '0001_initial'), ] operations = [ migrations.AlterField( ...
21.714286
69
0.614035
7981b4ba92b29d6bd20a15dd6a39dadeb952985c
16,731
py
Python
okclient/configuration.py
max-bytes/omnikeeper-client-python
0e74e7f86636e908ac0161d907892480a2998eda
[ "Apache-2.0" ]
null
null
null
okclient/configuration.py
max-bytes/omnikeeper-client-python
0e74e7f86636e908ac0161d907892480a2998eda
[ "Apache-2.0" ]
null
null
null
okclient/configuration.py
max-bytes/omnikeeper-client-python
0e74e7f86636e908ac0161d907892480a2998eda
[ "Apache-2.0" ]
null
null
null
""" Landscape omnikeeper REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1 Generated by: https://openapi-generator.tech """ import copy import logging import multiprocessing import...
36.214286
124
0.617237
7981b5b9dfa86b41acf4e1e36b27cb989d9e183d
4,299
py
Python
examples/feeds/create_feed_item_set.py
claudiapaveljlp/google-ads-python
c143e81804e237a9549dd5936503d921033c4e5a
[ "Apache-2.0" ]
null
null
null
examples/feeds/create_feed_item_set.py
claudiapaveljlp/google-ads-python
c143e81804e237a9549dd5936503d921033c4e5a
[ "Apache-2.0" ]
null
null
null
examples/feeds/create_feed_item_set.py
claudiapaveljlp/google-ads-python
c143e81804e237a9549dd5936503d921033c4e5a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
37.382609
97
0.708769
7981b5c01468fa2f955988a0376928f1492ff5dc
4,097
py
Python
osc_placement_tree/graph.py
gibizer/osc-placement-tree
89e2b91cbf98cf613ed8624291b48451ff5348b1
[ "Apache-2.0" ]
2
2019-07-02T08:17:40.000Z
2019-11-05T07:01:34.000Z
osc_placement_tree/graph.py
gibizer/osc-placement-tree
89e2b91cbf98cf613ed8624291b48451ff5348b1
[ "Apache-2.0" ]
1
2019-08-14T09:09:14.000Z
2019-08-14T12:30:51.000Z
osc_placement_tree/graph.py
gibizer/osc-placement-tree
89e2b91cbf98cf613ed8624291b48451ff5348b1
[ "Apache-2.0" ]
3
2019-08-14T08:53:17.000Z
2020-11-09T22:17:17.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 t...
28.852113
79
0.610203
7981b5fe4d132d45134fb0752968ba04f2df66f2
1,423
py
Python
pyspark-postgres/src/raw-zone.py
carlosbpy/pyspark-3.1.1-pgsql
8a2d672d57da7977e6374f9a71bbc89605710c3a
[ "Apache-2.0" ]
5
2021-05-01T12:08:10.000Z
2021-05-03T18:55:14.000Z
pyspark-postgres/src/raw-zone.py
carlosbpy/pyspark-3.1.1-pgsql
8a2d672d57da7977e6374f9a71bbc89605710c3a
[ "Apache-2.0" ]
null
null
null
pyspark-postgres/src/raw-zone.py
carlosbpy/pyspark-3.1.1-pgsql
8a2d672d57da7977e6374f9a71bbc89605710c3a
[ "Apache-2.0" ]
null
null
null
import os from pyspark.sql import SparkSession from dotenv import load_dotenv, find_dotenv load_dotenv() username = os.environ.get("USERNAME") password = os.environ.get("PASSWORD") host = os.environ.get("HOST") port = os.environ.get("PORT") database = os.environ.get("DATABASE") table = os.environ.get("TABLE") jars = ...
23.716667
66
0.54603
7981b6e7dbe793d21f1fabf992f022102df3efc1
2,801
py
Python
MHD/FEniCS/NS/NS.py
wathen/PhD
35524f40028541a4d611d8c78574e4cf9ddc3278
[ "MIT" ]
3
2020-10-25T13:30:20.000Z
2021-08-10T21:27:30.000Z
MHD/FEniCS/NS/NS.py
wathen/PhD
35524f40028541a4d611d8c78574e4cf9ddc3278
[ "MIT" ]
null
null
null
MHD/FEniCS/NS/NS.py
wathen/PhD
35524f40028541a4d611d8c78574e4cf9ddc3278
[ "MIT" ]
3
2019-10-28T16:12:13.000Z
2020-01-13T13:59:44.000Z
import scipy import os import cProfile from dolfin import * from block import * from block.algebraic.trilinos import * import block.iterative as bat import numpy import scipy.sparse as sps import scipy.io as save def StoreMatrix(A,name): Aarray = A.array() sA = sps.csr_matrix(Aarray) test ="".join([name,"....
23.537815
95
0.594788
7981b73731fd2c4fad615ee31b1346c9565af9d3
74,513
py
Python
Papers/MongoDB Paper/bookdb-master/BookFlask2/pymongo/collection.py
nelmiux/CS347-Data_Management
1e9d87097b5a373f9312b0d6b413198e495fd6c0
[ "CNRI-Jython" ]
12
2017-12-15T06:50:16.000Z
2020-02-02T12:22:09.000Z
commit/lib/python2.7/site-packages/pymongo/collection.py
abhishekjairath/codeyard
e1e558ee25f3496ff90bca2d66fa43f85b921e1d
[ "MIT" ]
null
null
null
commit/lib/python2.7/site-packages/pymongo/collection.py
abhishekjairath/codeyard
e1e558ee25f3496ff90bca2d66fa43f85b921e1d
[ "MIT" ]
4
2018-01-16T01:26:22.000Z
2019-04-30T13:42:38.000Z
# Copyright 2009-2014 MongoDB, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
43.574854
109
0.596124
7981b8c7686c7a07076e95938e7080f98dac4645
28,269
py
Python
tests/test_0057-virtual-array.py
reikdas/awkward-1.0
40fdf1e6bf427dab7923934d6180e1621ea59e73
[ "BSD-3-Clause" ]
null
null
null
tests/test_0057-virtual-array.py
reikdas/awkward-1.0
40fdf1e6bf427dab7923934d6180e1621ea59e73
[ "BSD-3-Clause" ]
null
null
null
tests/test_0057-virtual-array.py
reikdas/awkward-1.0
40fdf1e6bf427dab7923934d6180e1621ea59e73
[ "BSD-3-Clause" ]
null
null
null
# BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/master/LICENSE from __future__ import absolute_import import sys import json try: # pybind11 only supports cPickle protocol 2+ (-1 in pickle.dumps) # (automatically satisfied in Python 3; this is just to keep testing Python 2.7) im...
60.66309
517
0.629594
7981b9c502fcf7e05d153fb1758977191e6a0864
5,026
py
Python
built-in/PyTorch/Official/cv/semantic_segmentation/DeepLabv3+_ID1695_for_PyTorch/dataloaders/utils.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
12
2020-12-13T08:34:24.000Z
2022-03-20T15:17:17.000Z
built-in/PyTorch/Official/cv/semantic_segmentation/DeepLabv3+_ID1695_for_PyTorch/dataloaders/utils.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
1
2022-01-20T03:11:05.000Z
2022-01-20T06:53:39.000Z
built-in/PyTorch/Official/cv/semantic_segmentation/DeepLabv3+_ID1695_for_PyTorch/dataloaders/utils.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
2
2021-07-10T12:40:46.000Z
2021-12-17T07:55:15.000Z
# BSD 3-Clause License # # Copyright (c) 2017 xxxx # All rights reserved. # Copyright 2021 Huawei Technologies Co., Ltd # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain th...
37.789474
84
0.618583
7981ba6d00eec44a166be0faf253e2e0746e6759
4,758
py
Python
test/functional/interface_zmq.py
Kozisto/FreedomCoin-Core
ba4f6def338c58616ece13d890393552e657d3f0
[ "MIT" ]
null
null
null
test/functional/interface_zmq.py
Kozisto/FreedomCoin-Core
ba4f6def338c58616ece13d890393552e657d3f0
[ "MIT" ]
1
2022-02-11T23:23:05.000Z
2022-02-11T23:23:05.000Z
test/functional/interface_zmq.py
FreedomCoin-Project/FreedomCoin-Core
46e09320dd9903137433fc71aa9186fa3cdbe866
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the ZMQ notification interface.""" import configparser from io import BytesIO import os import st...
36.045455
148
0.64586
7981bc1c9127ff9884b048cb9631cf6993a43ca1
704
py
Python
work/General/zz.py
youdar/work
d5f32015e7be1d58ede255eeadbd1d12acb3f270
[ "MIT" ]
null
null
null
work/General/zz.py
youdar/work
d5f32015e7be1d58ede255eeadbd1d12acb3f270
[ "MIT" ]
null
null
null
work/General/zz.py
youdar/work
d5f32015e7be1d58ede255eeadbd1d12acb3f270
[ "MIT" ]
null
null
null
import os import iotbx.pdb def full_pdb_file_paths(): pdb_dir = os.environ["PDB_MIRROR_PDB"] pdb_files = open(os.path.join(pdb_dir, "INDEX"), "r").readlines() result = [] for pdb_file in pdb_files: pdb_code = pdb_file[-12:-8] pdb_file = os.path.join(pdb_dir, pdb_file.strip()) result.append(pdb_file...
28.16
67
0.693182
7981bc232bb683d450340a4048e8ed9405f99b06
4,892
py
Python
thorpy/__init__.py
YannThorimbert/Thorpy-1.5.2a
2f0e5c9c1e17f984498b93bbdb1848e658f5d979
[ "MIT" ]
null
null
null
thorpy/__init__.py
YannThorimbert/Thorpy-1.5.2a
2f0e5c9c1e17f984498b93bbdb1848e658f5d979
[ "MIT" ]
null
null
null
thorpy/__init__.py
YannThorimbert/Thorpy-1.5.2a
2f0e5c9c1e17f984498b93bbdb1848e658f5d979
[ "MIT" ]
null
null
null
__version__ = "1.5.2a" import sys import os # verify that pygame is on the machine try: import pygame except Exception: print("Pygame doesn't seem to be installed on this machine.") # add thorpy folder to Windows and Python search paths THORPY_PATH = os.path.abspath(os.path.dirname(__file__)) ##THORPY_PATH ...
42.172414
138
0.850368
7981bc2f8a3a22c20e8f5d2e176ec201304000e0
6,930
py
Python
pyg/pyg_web.py
essoca/Pygnals
4d75fdc191ce225448e33fcc7c94219837da7b9d
[ "MIT" ]
null
null
null
pyg/pyg_web.py
essoca/Pygnals
4d75fdc191ce225448e33fcc7c94219837da7b9d
[ "MIT" ]
null
null
null
pyg/pyg_web.py
essoca/Pygnals
4d75fdc191ce225448e33fcc7c94219837da7b9d
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup # Doing this with BeatufilSoup is ugly. The webpy templator is much better! # Will update later. class Stock(object): """ Defines the basic attributes to render for a stock """ def __init__(self,name,symbol,sector,industry): self.name = name self.symbo...
33.478261
96
0.544444
7981bc6e4aaa7504956928b8d6b1e5a0fd552006
6,950
py
Python
test/test_preprocess.py
almaan/eggplant
f9e507e809b9a0abe6f080d726a666283bbcfceb
[ "MIT" ]
12
2021-11-11T09:28:40.000Z
2022-03-26T09:18:38.000Z
test/test_preprocess.py
almaan/eggplant
f9e507e809b9a0abe6f080d726a666283bbcfceb
[ "MIT" ]
null
null
null
test/test_preprocess.py
almaan/eggplant
f9e507e809b9a0abe6f080d726a666283bbcfceb
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import anndata as ad import squidpy as sq import eggplant as eg from scipy.spatial.distance import cdist import torch as t import unittest import gpytorch as gp from . import utils as ut class GetLandmarkDistance(unittest.TestCase): def test_default_wo_ref( self, ...
25.932836
85
0.563453
7981bce1e94c3649cc9ba99ac1ad42a79ac7b7f6
5,655
py
Python
tests/st/ops/graph_kernel/test_logsoftmax.py
GuoSuiming/mindspore
48afc4cfa53d970c0b20eedfb46e039db2a133d5
[ "Apache-2.0" ]
55
2020-12-17T10:26:06.000Z
2022-03-28T07:18:26.000Z
tests/st/ops/graph_kernel/test_logsoftmax.py
forwhat461/mindspore
59a277756eb4faad9ac9afcc7fd526e8277d4994
[ "Apache-2.0" ]
null
null
null
tests/st/ops/graph_kernel/test_logsoftmax.py
forwhat461/mindspore
59a277756eb4faad9ac9afcc7fd526e8277d4994
[ "Apache-2.0" ]
14
2021-01-29T02:39:47.000Z
2022-03-23T05:00:26.000Z
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
44.880952
120
0.632184
7981bed99f2d94085e66b56e4bc60b88435e69ed
1,824
py
Python
src/litecore/validation/boolean.py
practicallypredictable/praccore
5a8976f6941da19441dbbb1d4230e3b90fb26759
[ "BSD-3-Clause" ]
null
null
null
src/litecore/validation/boolean.py
practicallypredictable/praccore
5a8976f6941da19441dbbb1d4230e3b90fb26759
[ "BSD-3-Clause" ]
null
null
null
src/litecore/validation/boolean.py
practicallypredictable/praccore
5a8976f6941da19441dbbb1d4230e3b90fb26759
[ "BSD-3-Clause" ]
null
null
null
from typing import ( Any, Tuple, ) import litecore.validation.base as base import litecore.validation.exceptions as exc DEFAULT_TRUE_STRINGS = ('true', 't', 'yes', 'y', 'on', '1', 'enable') DEFAULT_FALSE_STRINGS = ('false', 'f', 'no', 'n', 'off', '0', 'null', 'disable') class Boolean(base.Simple): """Va...
28.061538
83
0.589912
7981bf088bba583dd8c4885d36f620e7b2c27c75
1,842
py
Python
backend/apollo/elections/migrations/0008_voterauthorizationrule.py
heidal/apollo
576743e12048985ae8ef127224e1cb8ac49acd28
[ "MIT" ]
2
2020-02-28T16:24:55.000Z
2020-03-27T17:12:50.000Z
backend/apollo/elections/migrations/0008_voterauthorizationrule.py
heidal/apollo
576743e12048985ae8ef127224e1cb8ac49acd28
[ "MIT" ]
51
2020-02-12T20:52:08.000Z
2022-02-27T00:23:20.000Z
backend/apollo/elections/migrations/0008_voterauthorizationrule.py
heidal/apollo
576743e12048985ae8ef127224e1cb8ac49acd28
[ "MIT" ]
null
null
null
# Generated by Django 3.0.6 on 2020-05-18 18:16 from django.db import migrations, models import django.utils.timezone import django_utils.choices class Migration(migrations.Migration): dependencies = [ ("elections", "0007_election_keys"), ] operations = [ migrations.CreateModel( ...
31.220339
74
0.442997
7981bf25844ffd6711082d6be960b890aec3ecba
490
py
Python
django_project/webapp/migrations/0005_auto_20170601_1603.py
ludsvick/millage_site
60ff4f6b4239cffd05e07bcba0369111e201e69f
[ "MIT" ]
null
null
null
django_project/webapp/migrations/0005_auto_20170601_1603.py
ludsvick/millage_site
60ff4f6b4239cffd05e07bcba0369111e201e69f
[ "MIT" ]
null
null
null
django_project/webapp/migrations/0005_auto_20170601_1603.py
ludsvick/millage_site
60ff4f6b4239cffd05e07bcba0369111e201e69f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.1 on 2017-06-01 20:03 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('webapp', '0004_auto_20170601_1352'), ] operations = [ migrations.AlterField...
23.333333
70
0.640816
7981c37ec1510c9094ed985f96da41b692e9f8d2
407
py
Python
example/demo/author/models.py
iwwxiong/flask_restapi
57fca3bf07d913b31b6b7ef877328b0e07056c39
[ "MIT" ]
6
2019-04-23T02:18:55.000Z
2019-12-10T13:16:21.000Z
example/demo/author/models.py
dracarysX/flask_scaffold
57fca3bf07d913b31b6b7ef877328b0e07056c39
[ "MIT" ]
null
null
null
example/demo/author/models.py
dracarysX/flask_scaffold
57fca3bf07d913b31b6b7ef877328b0e07056c39
[ "MIT" ]
3
2019-05-22T06:00:17.000Z
2020-01-14T17:02:35.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- from peewee import * from flask_restapi.model import UUIDBaseModel class Author(UUIDBaseModel): """ Author model """ id = PrimaryKeyField() name = CharField(max_length=50, unique=True) age = IntegerField(default=0) class Meta: db_tab...
19.380952
48
0.63145
7981c43517c0e67d8c7cd02e841816059ea151bf
2,684
py
Python
polymorphic/admin/generic.py
likeanaxon/django-polymorphic
ad4e6e90c82f897300c1c135bd7a95e4b2d802a3
[ "BSD-3-Clause" ]
1
2021-03-12T17:42:37.000Z
2021-03-12T17:42:37.000Z
polymorphic/admin/generic.py
likeanaxon/django-polymorphic
ad4e6e90c82f897300c1c135bd7a95e4b2d802a3
[ "BSD-3-Clause" ]
10
2020-02-12T01:46:41.000Z
2022-02-10T09:00:03.000Z
polymorphic/admin/generic.py
likeanaxon/django-polymorphic
ad4e6e90c82f897300c1c135bd7a95e4b2d802a3
[ "BSD-3-Clause" ]
1
2021-11-04T22:07:37.000Z
2021-11-04T22:07:37.000Z
from django.contrib.contenttypes.admin import GenericInlineModelAdmin from django.contrib.contenttypes.models import ContentType from django.utils.functional import cached_property from polymorphic.formsets import ( BaseGenericPolymorphicInlineFormSet, GenericPolymorphicFormSetChild, polymorphic_child_form...
35.786667
108
0.690387
7981c458581aed552a054fe99efd8b0a8bdf5aae
5,941
py
Python
tests/test_yandex_transport_core.py
Yrok472/YandexTransportProxy
dd1531ffb99ce8435f87aee7592dd9a4931e0902
[ "MIT" ]
14
2019-04-05T07:38:55.000Z
2022-02-15T15:19:03.000Z
tests/test_yandex_transport_core.py
Yrok472/YandexTransportProxy
dd1531ffb99ce8435f87aee7592dd9a4931e0902
[ "MIT" ]
4
2019-03-31T11:04:07.000Z
2021-12-14T12:18:58.000Z
tests/test_yandex_transport_core.py
Yrok472/YandexTransportProxy
dd1531ffb99ce8435f87aee7592dd9a4931e0902
[ "MIT" ]
5
2020-06-08T05:53:18.000Z
2022-02-15T15:19:15.000Z
""" Yandex Transport Core unit tests. NOTE: These are Unit Tests, they should test function behaviour based on input data only, and should NOT rely on current state of Yandex API. These tests are executed once during "build" stage. Do not use Live Data from Yandex MassTransit here, only saved one. Live Dat...
48.300813
169
0.657802
7981c54401fbaa27fda4bdf4c12de4d3b797dc98
3,682
py
Python
ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/capture/currentpacket/stack/field/field.py
Vibaswan/ixnetwork_restpy
239fedc7050890746cbabd71ea1e91c68d9e5cad
[ "MIT" ]
null
null
null
ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/capture/currentpacket/stack/field/field.py
Vibaswan/ixnetwork_restpy
239fedc7050890746cbabd71ea1e91c68d9e5cad
[ "MIT" ]
null
null
null
ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/capture/currentpacket/stack/field/field.py
Vibaswan/ixnetwork_restpy
239fedc7050890746cbabd71ea1e91c68d9e5cad
[ "MIT" ]
null
null
null
# MIT LICENSE # # Copyright 1997 - 2020 by IXIA Keysight # # 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, modify,...
37.191919
159
0.67925
7981c5bbd1648a276994b5094cc12a3175993e21
3,426
py
Python
examples/numerical/optimization_advanced_num.py
stjordanis/QMLT
fc9487f89bf894576d2001abe5a5d07f35f19d7a
[ "Apache-2.0" ]
117
2018-07-03T19:37:52.000Z
2022-01-02T21:41:43.000Z
examples/numerical/optimization_advanced_num.py
stjordanis/QMLT
fc9487f89bf894576d2001abe5a5d07f35f19d7a
[ "Apache-2.0" ]
10
2018-07-23T08:58:32.000Z
2020-03-02T19:57:57.000Z
examples/numerical/optimization_advanced_num.py
stjordanis/QMLT
fc9487f89bf894576d2001abe5a5d07f35f19d7a
[ "Apache-2.0" ]
26
2018-07-23T08:04:01.000Z
2022-02-06T01:45:59.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright 2018 Xanadu Quantum Technologies Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2...
33.588235
116
0.720665
7981c719463bcb609d1318e7364fcbb65c7d1a61
1,278
py
Python
tests/utils/GeneratorTestCase.py
OnToologyUser/biolink-model
2d352f809351df0dbd59b8d3a331b7b5c0633867
[ "CC0-1.0" ]
1
2018-08-22T18:02:41.000Z
2018-08-22T18:02:41.000Z
tests/utils/GeneratorTestCase.py
OnToologyUser/biolink-model
2d352f809351df0dbd59b8d3a331b7b5c0633867
[ "CC0-1.0" ]
20
2018-06-09T22:58:57.000Z
2018-07-09T23:58:38.000Z
tests/utils/GeneratorTestCase.py
OnToologyUser/biolink-model
2d352f809351df0dbd59b8d3a331b7b5c0633867
[ "CC0-1.0" ]
null
null
null
import os import unittest from typing import Tuple from metamodel.utils.schemaloader import SchemaLoader class GeneratorTestCase(unittest.TestCase): cwd = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) compdir = os.path.join(cwd, 'source') targetdir = os.path.join(cwd, 'target') os.ma...
34.540541
73
0.63615
7981c7a3756af77b08f14c2945d78ae6012be0b5
4,745
py
Python
extra_data/utils.py
kakhahmed/EXtra-data
67a9405cd67dd8b333dbc1633276611a8d9cb538
[ "BSD-3-Clause" ]
null
null
null
extra_data/utils.py
kakhahmed/EXtra-data
67a9405cd67dd8b333dbc1633276611a8d9cb538
[ "BSD-3-Clause" ]
null
null
null
extra_data/utils.py
kakhahmed/EXtra-data
67a9405cd67dd8b333dbc1633276611a8d9cb538
[ "BSD-3-Clause" ]
null
null
null
""" Helpers functions for the euxfel_h5tools package. Copyright (c) 2017, European X-Ray Free-Electron Laser Facility GmbH All rights reserved. You should have received a copy of the 3-Clause BSD License along with this program. If not, see <https://opensource.org/licenses/BSD-3-Clause> """ from psutil import net_if...
27.587209
85
0.609273
7981c8d7b020cff894859516617ce334e2336657
19,016
py
Python
beast/physicsmodel/helpers/hdfstore.py
marthaboyer/beast
1ca71fb64ab60827e4e4e1937b64f319a98166c3
[ "BSD-3-Clause" ]
null
null
null
beast/physicsmodel/helpers/hdfstore.py
marthaboyer/beast
1ca71fb64ab60827e4e4e1937b64f319a98166c3
[ "BSD-3-Clause" ]
null
null
null
beast/physicsmodel/helpers/hdfstore.py
marthaboyer/beast
1ca71fb64ab60827e4e4e1937b64f319a98166c3
[ "BSD-3-Clause" ]
null
null
null
""" HDFStore High level interface to PyTables for reading and writing structures to disk Could work either as a (key, value) storage or as a classic tables.file.File object. Example Usage:: import numpy as np #make a store with HDFStore('tmp.hd5', mode='w') as hd: #make some variables d = {...
31.959664
106
0.555217
7981c9025730a854b402d43a58fc2a04cb3d72ad
957
py
Python
kubernetes/test/test_v1beta2_deployment_spec.py
craigtracey/python
177564c655c0ea3f9cf38e61ca275ef6c6256aab
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1beta2_deployment_spec.py
craigtracey/python
177564c655c0ea3f9cf38e61ca275ef6c6256aab
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1beta2_deployment_spec.py
craigtracey/python
177564c655c0ea3f9cf38e61ca275ef6c6256aab
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.9.4 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys im...
21.266667
105
0.711599
7981c9219f0c4ee20646363e74df21ac171a1caa
378
py
Python
AppFiles/websocketMains/clientClasses/HttpRequest.py
palomalo/RedRoomDiscussion
5637cfbe37f29e91c8a047b4c05058b302302ef6
[ "FSFAP" ]
1
2020-03-26T20:53:57.000Z
2020-03-26T20:53:57.000Z
AppFiles/websocketMains/clientClasses/HttpRequest.py
palomalo/RedRoomDiscussion
5637cfbe37f29e91c8a047b4c05058b302302ef6
[ "FSFAP" ]
null
null
null
AppFiles/websocketMains/clientClasses/HttpRequest.py
palomalo/RedRoomDiscussion
5637cfbe37f29e91c8a047b4c05058b302302ef6
[ "FSFAP" ]
null
null
null
from AppFiles.websocketMains.clientClasses.URL import URL from typing import Callable, Deque, Dict, List, Optional, Union, cast class HttpRequest: def __init__( self, method: str, url: URL, content: bytes = b"", headers: Dict = {} ) -> None: self.content = content self.headers = he...
29.076923
81
0.637566
7981c941171cac406656d67b9732e9ce8675a202
488
py
Python
app/src/handlers/requests.py
kennethgoodman/no-sql-lite
f53f59ae2f1e69f4b212cdd399537a313cc52a3a
[ "MIT" ]
null
null
null
app/src/handlers/requests.py
kennethgoodman/no-sql-lite
f53f59ae2f1e69f4b212cdd399537a313cc52a3a
[ "MIT" ]
null
null
null
app/src/handlers/requests.py
kennethgoodman/no-sql-lite
f53f59ae2f1e69f4b212cdd399537a313cc52a3a
[ "MIT" ]
null
null
null
from flask import request, Blueprint from src.db import API requests = Blueprint('requests', __name__) db = API() @requests.route('/get_data', methods=["GET"]) def get_data(): key = request.args.get("key") resp = db.read_data(key) if resp is None: resp = {} return resp @requests.route('/writ...
22.181818
67
0.641393
7981c95f5ea89207a0a0ed75cc0ceaf641fb8f81
4,069
py
Python
openstack/baremetal/v1/_common.py
horion/openstacksdk
cbb0e12e1dc944847f2ba0e67bf35b9c7a67b3a3
[ "Apache-2.0" ]
99
2018-03-28T15:41:45.000Z
2022-01-23T17:22:13.000Z
openstack/baremetal/v1/_common.py
horion/openstacksdk
cbb0e12e1dc944847f2ba0e67bf35b9c7a67b3a3
[ "Apache-2.0" ]
5
2018-05-25T16:54:23.000Z
2021-11-21T02:27:16.000Z
openstack/baremetal/v1/_common.py
horion/openstacksdk
cbb0e12e1dc944847f2ba0e67bf35b9c7a67b3a3
[ "Apache-2.0" ]
104
2018-04-06T14:33:54.000Z
2022-03-01T01:58:09.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 t...
30.593985
78
0.672401
7981ca44f55615507f2f3f5957747d3cc4de6c35
33,626
py
Python
zfit/core/interfaces.py
donalrinho/zfit
9769ef7d56a6be9a5d438e47b80ea5a8f772bc24
[ "BSD-3-Clause" ]
null
null
null
zfit/core/interfaces.py
donalrinho/zfit
9769ef7d56a6be9a5d438e47b80ea5a8f772bc24
[ "BSD-3-Clause" ]
null
null
null
zfit/core/interfaces.py
donalrinho/zfit
9769ef7d56a6be9a5d438e47b80ea5a8f772bc24
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020 zfit import abc from abc import ABCMeta, abstractmethod from typing import Union, List, Dict, Callable, Tuple, Optional, Set import numpy as np import tensorflow as tf from ..util.deprecation import deprecated from ..util import ztyping class ZfitObject(abc.ABC): # TODO: make abstractmet...
36.156989
122
0.641498
7981cc77ef4860dc6c8a84c759b1c2099419e835
27,249
py
Python
libcloud/storage/base.py
Chaffelson/libcloud
8518aa0ee097632d1bd8255ccbdf911f6fb0f91d
[ "Apache-2.0" ]
null
null
null
libcloud/storage/base.py
Chaffelson/libcloud
8518aa0ee097632d1bd8255ccbdf911f6fb0f91d
[ "Apache-2.0" ]
null
null
null
libcloud/storage/base.py
Chaffelson/libcloud
8518aa0ee097632d1bd8255ccbdf911f6fb0f91d
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use ...
35.114691
115
0.592719
7981cd8bffe883f8fd9dd833aac9fec502ed891c
4,509
py
Python
src/k8s-extension/azext_k8s_extension/_params.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
207
2017-11-29T06:59:41.000Z
2022-03-31T10:00:53.000Z
src/k8s-extension/azext_k8s_extension/_params.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
4,061
2017-10-27T23:19:56.000Z
2022-03-31T23:18:30.000Z
src/k8s-extension/azext_k8s_extension/_params.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
802
2017-10-11T17:36:26.000Z
2022-03-31T22:24:32.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
51.827586
113
0.57485
7981cdc41311821f4b43a4e2c2ad3c7919b1cb73
3,047
py
Python
dvc/command/checkout.py
zimka/dvc
659d1c2a8e090bff9955833019e7beca75c91198
[ "Apache-2.0" ]
null
null
null
dvc/command/checkout.py
zimka/dvc
659d1c2a8e090bff9955833019e7beca75c91198
[ "Apache-2.0" ]
null
null
null
dvc/command/checkout.py
zimka/dvc
659d1c2a8e090bff9955833019e7beca75c91198
[ "Apache-2.0" ]
null
null
null
import argparse import operator import colorama from dvc.command import completion from dvc.command.base import CmdBase, append_doc_link from dvc.exceptions import CheckoutError from dvc.ui import ui def log_changes(stats): colors = [ ("modified", colorama.Fore.YELLOW), ("added", colorama.Fore.G...
26.964602
71
0.586479
7981ce23f1b2c494b43a422fb317ff3bd14ae0f0
14,780
py
Python
main_app/views.py
zaryab2000/Medical-Insurance-on-EThereum
fded065bafe7bd2552374c65b99496fbcc0c781a
[ "MIT" ]
3
2020-08-06T02:08:24.000Z
2021-05-08T07:45:02.000Z
main_app/views.py
zaryab2000/Medical-Insurance-on-EThereum
fded065bafe7bd2552374c65b99496fbcc0c781a
[ "MIT" ]
null
null
null
main_app/views.py
zaryab2000/Medical-Insurance-on-EThereum
fded065bafe7bd2552374c65b99496fbcc0c781a
[ "MIT" ]
3
2020-09-13T09:57:57.000Z
2021-12-08T03:56:03.000Z
import json from web3 import Web3 from datetime import datetime from django.contrib import messages from django.core.paginator import Paginator from django.shortcuts import render,redirect,HttpResponse url = 'https://rpc-mumbai.matic.today' web3 = Web3(Web3.HTTPProvider(url)) address = web3.toChecksumAddress("0x9354d...
18.314746
79
0.56935
7981cf948bb9ec6672b75349dc59077df8f4416d
4,698
py
Python
homeassistant/components/upcloud/__init__.py
shanbs/home-assistant
818776d2b4f11e4f51992dc88bc0a6f9055833b2
[ "Apache-2.0" ]
2
2017-10-26T19:43:55.000Z
2017-12-30T23:29:00.000Z
homeassistant/components/upcloud/__init__.py
shanbs/home-assistant
818776d2b4f11e4f51992dc88bc0a6f9055833b2
[ "Apache-2.0" ]
3
2021-09-08T03:34:57.000Z
2022-03-12T00:59:48.000Z
homeassistant/components/upcloud/__init__.py
shanbs/home-assistant
818776d2b4f11e4f51992dc88bc0a6f9055833b2
[ "Apache-2.0" ]
1
2019-09-28T07:06:08.000Z
2019-09-28T07:06:08.000Z
"""Support for UpCloud.""" import logging from datetime import timedelta import voluptuous as vol from homeassistant.const import ( CONF_USERNAME, CONF_PASSWORD, CONF_SCAN_INTERVAL, STATE_ON, STATE_OFF, STATE_PROBLEM) from homeassistant.core import callback import homeassistant.helpers.config_validation as cv...
27.473684
72
0.667944
7981d002b2aeaee7dfc700f58deeb6ad15fc92b0
145
py
Python
test.py
liubaishuo-github/peening-post-processor
61f4c2d2385469bc1e9d1b7a692b72eb6afd7f75
[ "MIT" ]
null
null
null
test.py
liubaishuo-github/peening-post-processor
61f4c2d2385469bc1e9d1b7a692b72eb6afd7f75
[ "MIT" ]
null
null
null
test.py
liubaishuo-github/peening-post-processor
61f4c2d2385469bc1e9d1b7a692b72eb6afd7f75
[ "MIT" ]
null
null
null
def GLASS(apt): if apt == 3: a = ['M51 (GLASS ON)', 'G04X5'] return 2, a print('hhhh') apt = 2 GLASS(apt)
12.083333
40
0.427586
7981d011e14c5742ed18727ae1ac4908a5d381b0
17,297
py
Python
sktime/forecasting/ets.py
FilipBronic/sktime
d613d704cdc7263ad28fb4519d2d301f2ebd0779
[ "BSD-3-Clause" ]
null
null
null
sktime/forecasting/ets.py
FilipBronic/sktime
d613d704cdc7263ad28fb4519d2d301f2ebd0779
[ "BSD-3-Clause" ]
2
2021-04-19T17:38:33.000Z
2021-07-25T18:44:10.000Z
sktime/forecasting/ets.py
FilipBronic/sktime
d613d704cdc7263ad28fb4519d2d301f2ebd0779
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # !/usr/bin/env python3 -u # copyright: sktime developers, BSD-3-Clause License (see LICENSE file) """Implements automatic and manually exponential time series smoothing models.""" __all__ = ["AutoETS"] __author__ = ["Hongyi Yang"] from itertools import product import numpy as np from joblib ...
37.602174
105
0.596693
7981d071399bf0d06f71f0c3cea60791c5e41350
480
py
Python
euro_diffusion/city.py
cl0ne/kpi-euro-diffusion
5e0afed33b5f7ad3f20251bacb1f07c7bf6732bb
[ "Apache-2.0" ]
1
2020-02-04T19:08:08.000Z
2020-02-04T19:08:08.000Z
euro_diffusion/city.py
cl0ne/kpi-euro-diffusion
5e0afed33b5f7ad3f20251bacb1f07c7bf6732bb
[ "Apache-2.0" ]
11
2018-11-30T14:52:47.000Z
2018-12-07T16:59:18.000Z
euro_diffusion/city.py
cl0ne/euro-diffusion
5e0afed33b5f7ad3f20251bacb1f07c7bf6732bb
[ "Apache-2.0" ]
null
null
null
class City: def __init__(self, country, x: int, y: int): self.country: 'Country' = country self.x = x self.y = y self.balance = 0 self.cached_income = 0 @property def is_empty(self): return self.balance == 0 and self.cached_income == 0 def add_income(se...
24
60
0.591667
7981d16b582f3d668c5187f5b03f4e0ad5cd15ab
46,370
py
Python
sdk/python/pulumi_aws/ecs/_inputs.py
Otanikotani/pulumi-aws
00e2b352da42c5b1b0ec7b4760eec5ad2b23ff21
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/ecs/_inputs.py
Otanikotani/pulumi-aws
00e2b352da42c5b1b0ec7b4760eec5ad2b23ff21
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/ecs/_inputs.py
Otanikotani/pulumi-aws
00e2b352da42c5b1b0ec7b4760eec5ad2b23ff21
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from .. import _utilitie...
45.150925
358
0.676386
7981d4311c28a8a2c1911d6f24eac14463c35eaa
758
py
Python
manage.py
lewis-murgor/pitch
8a250d419db0d69c1f236d533e1db8a7adadb64c
[ "MIT" ]
null
null
null
manage.py
lewis-murgor/pitch
8a250d419db0d69c1f236d533e1db8a7adadb64c
[ "MIT" ]
null
null
null
manage.py
lewis-murgor/pitch
8a250d419db0d69c1f236d533e1db8a7adadb64c
[ "MIT" ]
null
null
null
from app import create_app, db from flask_script import Manager,Server from app.models import User,Category,Pitch,UpVote,DownVote from flask_migrate import Migrate, MigrateCommand # Creating app instance app = create_app('production') manager = Manager(app) manager.add_command('server',Server) migrate = Migrate(app...
28.074074
120
0.745383
7981d4a77a03d4d6b248f9c5abb508f8e2edfb8f
22,517
py
Python
python-profiles/STANDA/8MR191-30-28.py
EPC-MSU/libximc
b0349721f57c8274b098a7b646d7ae67b8e70b9d
[ "BSD-2-Clause" ]
3
2020-12-08T14:41:48.000Z
2022-02-23T13:42:42.000Z
python-profiles/STANDA/8MR191-30-28.py
EPC-MSU/libximc
b0349721f57c8274b098a7b646d7ae67b8e70b9d
[ "BSD-2-Clause" ]
4
2020-12-08T20:15:06.000Z
2021-12-08T14:15:24.000Z
python-profiles/STANDA/8MR191-30-28.py
EPC-MSU/libximc
b0349721f57c8274b098a7b646d7ae67b8e70b9d
[ "BSD-2-Clause" ]
2
2020-11-02T02:17:35.000Z
2021-03-18T14:13:56.000Z
def set_profile_8MR191_30_28(lib, id): worst_result = Result.Ok result = Result.Ok feedback_settings = feedback_settings_t() feedback_settings.IPS = 4000 class FeedbackType_: FEEDBACK_ENCODER_MEDIATED = 6 FEEDBACK_NONE = 5 FEEDBACK_EMF = 4 FEEDBACK_ENCODER = 1 f...
35.628165
185
0.69201
7981d4bc00b4c84eac143004d94c647c95af325f
2,443
py
Python
CodeAnalysis/SourceMeter_Interface/SourceMeter-8.2.0-x64-linux/Python/Demo/ceilometer/ceilometer/tests/storage/test_base.py
ishtjot/susereumutep
56e20c1777e0c938ac42bd8056f84af9e0b76e46
[ "Apache-2.0" ]
2
2018-11-07T20:52:53.000Z
2019-10-20T15:57:01.000Z
CodeAnalysis/SourceMeter_Interface/SourceMeter-8.2.0-x64-linux/Python/Demo/ceilometer/ceilometer/tests/storage/test_base.py
ishtjot/susereumutep
56e20c1777e0c938ac42bd8056f84af9e0b76e46
[ "Apache-2.0" ]
3
2021-12-14T20:57:54.000Z
2022-01-21T23:50:36.000Z
CodeAnalysis/SourceMeter_Interface/SourceMeter-8.2.0-x64-linux/Python/Demo/ceilometer/ceilometer/tests/storage/test_base.py
ishtjot/susereumutep
56e20c1777e0c938ac42bd8056f84af9e0b76e46
[ "Apache-2.0" ]
2
2018-11-16T04:20:06.000Z
2019-03-28T23:49:13.000Z
# # Copyright 2013 eNovance # # Author: Julien Danjou <julien@danjou.info> # # 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 # # U...
40.04918
77
0.60745
7981d5f5623d46312039f8e4c8cb2b8fbffad125
4,730
py
Python
tests/test_rtpPayload_ttml.py
bbc/rd-apmm-python-lib-rtpPayload_ttml
805d13242b44f26f38e5a9d940ee2ec4862528c3
[ "Apache-1.1" ]
null
null
null
tests/test_rtpPayload_ttml.py
bbc/rd-apmm-python-lib-rtpPayload_ttml
805d13242b44f26f38e5a9d940ee2ec4862528c3
[ "Apache-1.1" ]
null
null
null
tests/test_rtpPayload_ttml.py
bbc/rd-apmm-python-lib-rtpPayload_ttml
805d13242b44f26f38e5a9d940ee2ec4862528c3
[ "Apache-1.1" ]
null
null
null
#!/usr/bin/python # # James Sandford, copyright BBC 2020 # # 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 l...
33.785714
79
0.65074
7981d7d2b9042d73292f46885fe9211173869642
3,265
py
Python
examples/text/hashing_vs_dict_vectorizer.py
ZiBuDo/MyCareer
41a686f199e5e88ff4d863c54304b8128bd87580
[ "CC0-1.0" ]
null
null
null
examples/text/hashing_vs_dict_vectorizer.py
ZiBuDo/MyCareer
41a686f199e5e88ff4d863c54304b8128bd87580
[ "CC0-1.0" ]
null
null
null
examples/text/hashing_vs_dict_vectorizer.py
ZiBuDo/MyCareer
41a686f199e5e88ff4d863c54304b8128bd87580
[ "CC0-1.0" ]
null
null
null
""" =========================================== FeatureHasher and DictVectorizer Comparison =========================================== Compares FeatureHasher and DictVectorizer by using both to vectorize text documents. The example demonstrates syntax and speed only; it doesn't actually do anything useful with the e...
29.151786
73
0.709035
7981d7e1de2e011355ba840000fc475877da54cf
2,257
py
Python
scorebot/urls.py
isabella232/scorebot
71f26a73b04c419ed0ccfbe73575d4b02fa26595
[ "Apache-2.0" ]
63
2019-11-22T23:54:21.000Z
2020-10-15T16:42:34.000Z
scorebot/urls.py
isabella232/scorebot
71f26a73b04c419ed0ccfbe73575d4b02fa26595
[ "Apache-2.0" ]
null
null
null
scorebot/urls.py
isabella232/scorebot
71f26a73b04c419ed0ccfbe73575d4b02fa26595
[ "Apache-2.0" ]
11
2019-11-23T04:41:15.000Z
2021-06-10T15:14:21.000Z
"""SCORE Bot URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-bas...
43.403846
119
0.646433
7981d7e5146df063ea7d6b6bf6cec788863732c1
4,636
py
Python
interactionBD.py
zabka14/InSPDL
d23b71b48aa0487352587d30680638f987e976ce
[ "MIT" ]
1
2015-03-20T00:48:25.000Z
2015-03-20T00:48:25.000Z
interactionBD.py
zabka14/InSPDL
d23b71b48aa0487352587d30680638f987e976ce
[ "MIT" ]
null
null
null
interactionBD.py
zabka14/InSPDL
d23b71b48aa0487352587d30680638f987e976ce
[ "MIT" ]
null
null
null
import mysql.connector import csv def connexion(): try : global cursor,db db = mysql.connector.connect(host="infoweb",user="E134918A",password="E134918A",database="E134918A") cursor = db.cursor() except Exception as e: print(e) def deconnexion(): try : db.close() except Exception as e: print(e) def a...
25.059459
163
0.572261
7981d7eef6d34990bb9377655fd1734e784dd5c5
1,669
py
Python
empower/core/acl.py
ericbrinckhaus/empower-runtime-modified
ecd7c1e9f1c19a629abdcb5c55257377313246ea
[ "Apache-2.0" ]
null
null
null
empower/core/acl.py
ericbrinckhaus/empower-runtime-modified
ecd7c1e9f1c19a629abdcb5c55257377313246ea
[ "Apache-2.0" ]
null
null
null
empower/core/acl.py
ericbrinckhaus/empower-runtime-modified
ecd7c1e9f1c19a629abdcb5c55257377313246ea
[ "Apache-2.0" ]
2
2018-09-24T09:44:19.000Z
2018-10-12T09:57:36.000Z
#!/usr/bin/env python3 # # Copyright (c) 2019 Roberto Riggio # # 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 applicabl...
26.078125
68
0.668664
7981d832d65351663b8e07351d19a82e16910485
7,869
py
Python
Lib/objc/_ScreenTimeCore.py
snazari/Pyto
bcea7bbef35cab21ce73087b1a0c00a07d07ec72
[ "MIT" ]
701
2018-10-22T11:54:09.000Z
2022-03-31T14:39:30.000Z
Lib/objc/_ScreenTimeCore.py
snazari/Pyto
bcea7bbef35cab21ce73087b1a0c00a07d07ec72
[ "MIT" ]
229
2018-10-24T09:15:31.000Z
2021-12-24T16:51:37.000Z
Lib/objc/_ScreenTimeCore.py
snazari/Pyto
bcea7bbef35cab21ce73087b1a0c00a07d07ec72
[ "MIT" ]
131
2018-11-25T18:33:03.000Z
2022-03-24T03:18:07.000Z
""" Classes from the 'ScreenTimeCore' framework. """ try: from rubicon.objc import ObjCClass except ValueError: def ObjCClass(name): return None def _Class(name): try: return ObjCClass(name) except NameError: return None STXPCRemoteObjectProxy = _Class("STXPCRemoteObjectPro...
43.960894
87
0.852967
7981d855fa6c13d91a2a72e97fa227e3e44486fb
486
py
Python
bioalgo/strings/pattern_to_number.py
jcalendo/BioAlgo
a75c62e69572081af9c48ae5ae645bee6d408ad9
[ "MIT" ]
null
null
null
bioalgo/strings/pattern_to_number.py
jcalendo/BioAlgo
a75c62e69572081af9c48ae5ae645bee6d408ad9
[ "MIT" ]
null
null
null
bioalgo/strings/pattern_to_number.py
jcalendo/BioAlgo
a75c62e69572081af9c48ae5ae645bee6d408ad9
[ "MIT" ]
null
null
null
def pattern_to_number(pattern: str) -> int: """"Transform a k-mer pattern into an integer Arguments: pattern {str} -- text to convert Returns: int -- numerical representation of pattern Example: >>> pattern_to_number("AGT") 11 """ if not pattern: r...
22.090909
62
0.572016
7981d8d8dd0b0ccbc62c20231d0553b60fc6093d
5,542
py
Python
homepage.py
mattl1598/library.database_system
c61db28ba2aeb0169b16db4cacee9ab692215ad9
[ "MIT" ]
null
null
null
homepage.py
mattl1598/library.database_system
c61db28ba2aeb0169b16db4cacee9ab692215ad9
[ "MIT" ]
6
2019-02-22T17:29:51.000Z
2019-02-23T17:39:43.000Z
homepage.py
mattl1598/library.database_system
c61db28ba2aeb0169b16db4cacee9ab692215ad9
[ "MIT" ]
null
null
null
from tkinter import * from tkinter import StringVar import input as input1 import json import settings import time import multientry import requests import urllib.request import os import schoolDetails import gui import sql from win32com.shell import shell, shellcon def gettheme(): docs = shell.SHGetF...
32.409357
106
0.696499
7981d9de4487d0a1d62d7927409214da3cc12c49
3,740
py
Python
scp/plugins/user/createEnitity.py
ALiwoto/SCP-5170
7f9e52aa19fce11cdb898f25c1818bfb00f34a56
[ "Apache-2.0" ]
null
null
null
scp/plugins/user/createEnitity.py
ALiwoto/SCP-5170
7f9e52aa19fce11cdb898f25c1818bfb00f34a56
[ "Apache-2.0" ]
null
null
null
scp/plugins/user/createEnitity.py
ALiwoto/SCP-5170
7f9e52aa19fce11cdb898f25c1818bfb00f34a56
[ "Apache-2.0" ]
null
null
null
import asyncio from scp import user from scp.utils import parser __PLUGIN__ = 'create' __DOC__ = str( user.md.KanTeXDocument( user.md.Section( 'create', user.md.SubSection( 'create a super group / channel / bot', user.md.Code('(*prefix)create {type} ...
31.694915
70
0.405348
7981d9f19383524a4886e6e343ac51f556fda61e
808
py
Python
pset6/crack/crack.py
ashudva/CS50_PSets
662886dd89063be330ba0aeb9e6e74c8776b91f6
[ "MIT" ]
null
null
null
pset6/crack/crack.py
ashudva/CS50_PSets
662886dd89063be330ba0aeb9e6e74c8776b91f6
[ "MIT" ]
null
null
null
pset6/crack/crack.py
ashudva/CS50_PSets
662886dd89063be330ba0aeb9e6e74c8776b91f6
[ "MIT" ]
null
null
null
from sys import argv from cs50 import get_string import crypt # Ensuring correct usage if len(argv) != 2: print("Usage: python crack.py <hash>") exit(1) # Compute the length of the string # 26 LC + 26 UC = 52 lc = 52 lt = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" has = argv[1] salt = has[0:2] key...
23.764706
59
0.528465
7981dc9fdbfac4678392b57a893212f65f07b02f
2,807
py
Python
network.py
paulesta55/PPO-PyTorch
a609c1a9a33533d80130cad7b43436c92c69c97d
[ "MIT" ]
null
null
null
network.py
paulesta55/PPO-PyTorch
a609c1a9a33533d80130cad7b43436c92c69c97d
[ "MIT" ]
null
null
null
network.py
paulesta55/PPO-PyTorch
a609c1a9a33533d80130cad7b43436c92c69c97d
[ "MIT" ]
null
null
null
import random from collections import namedtuple import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F import torchvision.transforms as T import logging Transition = namedtuple('Transition', ('state', 'action', 'next_state', 'reward')) # We use a replay...
37.932432
79
0.638404
7981dcaa3a5575d28862082c556b98d4a4cec016
11,133
py
Python
ddht/v5_1/alexandria/content_storage.py
kdeme/ddht
743f3f3eaabb3b864b70e1bf78d441b5f0bdad46
[ "MIT" ]
17
2020-07-25T07:49:07.000Z
2021-11-20T04:19:07.000Z
ddht/v5_1/alexandria/content_storage.py
kdeme/ddht
743f3f3eaabb3b864b70e1bf78d441b5f0bdad46
[ "MIT" ]
146
2020-07-27T22:18:32.000Z
2021-03-04T20:37:36.000Z
ddht/v5_1/alexandria/content_storage.py
kdeme/ddht
743f3f3eaabb3b864b70e1bf78d441b5f0bdad46
[ "MIT" ]
14
2020-07-24T17:31:02.000Z
2022-03-28T17:54:31.000Z
import contextlib import sqlite3 from typing import Any, ContextManager, Iterable, Iterator, Optional, Set, Tuple from eth_typing import NodeID from ddht.v5_1.alexandria.abc import ContentStorageAPI from ddht.v5_1.alexandria.content import content_key_to_content_id from ddht.v5_1.alexandria.typing import ContentKey ...
31.360563
88
0.673044
7981dd7a9daa279538946e58d2edd1f31af76ff7
13,194
py
Python
tests/test_config.py
daobook/sphinx
ef8daca1f9a82ede9b4b0b5cde93f3414cee3dfe
[ "BSD-2-Clause" ]
null
null
null
tests/test_config.py
daobook/sphinx
ef8daca1f9a82ede9b4b0b5cde93f3414cee3dfe
[ "BSD-2-Clause" ]
null
null
null
tests/test_config.py
daobook/sphinx
ef8daca1f9a82ede9b4b0b5cde93f3414cee3dfe
[ "BSD-2-Clause" ]
null
null
null
"""Test the sphinx.config.Config class.""" from unittest import mock import pytest import sphinx from sphinx.config import ENUM, Config, check_confval_types from sphinx.errors import ConfigError, ExtensionError, VersionRequirementError from sphinx.testing.path import path @pytest.mark.sphinx(testroot='config', con...
34.359375
94
0.637259
7981dd8f5abbeebf28f4e4482d5cf4fc4331daa3
841
py
Python
which_key/config.py
bsamseth/which-key
c0e76b01d709cdf0ced94527e7fca39bc02b3fda
[ "MIT" ]
null
null
null
which_key/config.py
bsamseth/which-key
c0e76b01d709cdf0ced94527e7fca39bc02b3fda
[ "MIT" ]
null
null
null
which_key/config.py
bsamseth/which-key
c0e76b01d709cdf0ced94527e7fca39bc02b3fda
[ "MIT" ]
null
null
null
from typing import Any, Optional from pydantic import BaseModel, Extra, Field class WhichKeyConfig(BaseModel): action_templates: dict[str, str] default_template: str template_variables: dict[str, str] width: int = 300 height: int = 100 x: float = Field(0.5, ge=0, le=1) y: float = Field(0....
24.028571
82
0.631391
7981ddf54bd37ce330af75e5c82a6010d3dba235
5,202
py
Python
examples/xarm7_redundancy_res/scripts/robot_jogging.py
byhob/xarm_ros
52a3b08198e950c287dafac0029ee62862369a5e
[ "BSD-3-Clause" ]
108
2018-12-02T19:15:02.000Z
2022-03-14T20:26:42.000Z
examples/xarm7_redundancy_res/scripts/robot_jogging.py
byhob/xarm_ros
52a3b08198e950c287dafac0029ee62862369a5e
[ "BSD-3-Clause" ]
86
2019-02-12T06:18:28.000Z
2022-03-30T10:31:29.000Z
examples/xarm7_redundancy_res/scripts/robot_jogging.py
byhob/xarm_ros
52a3b08198e950c287dafac0029ee62862369a5e
[ "BSD-3-Clause" ]
90
2019-01-25T20:22:55.000Z
2022-03-30T16:13:29.000Z
#!/usr/bin/env python import argparse import rospy import actionlib from control_msgs.msg import FollowJointTrajectoryActionFeedback, FollowJointTrajectoryActionResult, \ FollowJointTrajectoryAction, FollowJointTrajectoryGoal from trajectory_msgs.msg import JointTrajectory, JointTrajectoryPoint import moveit_comman...
40.015385
109
0.699923
7981defe78b0fd9385990548920ecd9893b45e82
55,480
py
Python
tensorflow/python/client/session.py
AlexChrisF/udacity
b7f85a74058fc63ccb7601c418450ab934ef5953
[ "Apache-2.0" ]
22
2017-06-26T01:27:45.000Z
2021-06-23T10:00:31.000Z
tensorflow/python/client/session.py
AlexChrisF/udacity
b7f85a74058fc63ccb7601c418450ab934ef5953
[ "Apache-2.0" ]
7
2017-07-13T09:40:59.000Z
2019-04-08T22:46:51.000Z
tensorflow/python/client/session.py
AlexChrisF/udacity
b7f85a74058fc63ccb7601c418450ab934ef5953
[ "Apache-2.0" ]
38
2017-04-28T04:15:48.000Z
2019-09-28T05:11:46.000Z
# Copyright 2015 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.662021
114
0.677199
7981df373d92a2a9eadf93fd84cb41f16f191e38
598
py
Python
HW3/raw_protocol.py
maynard242/Machine-Learning-At-Scale
00406de025e3a94d3514d056a0ec7d46473444ef
[ "MIT" ]
1
2021-10-03T07:52:32.000Z
2021-10-03T07:52:32.000Z
HW3/raw_protocol.py
maynard242/Machine-Learning-At-Scale
00406de025e3a94d3514d056a0ec7d46473444ef
[ "MIT" ]
null
null
null
HW3/raw_protocol.py
maynard242/Machine-Learning-At-Scale
00406de025e3a94d3514d056a0ec7d46473444ef
[ "MIT" ]
1
2020-01-30T02:59:50.000Z
2020-01-30T02:59:50.000Z
from mrjob.job import MRJob from mrjob.protocol import RawProtocol class RawProtocolExample(MRJob): INPUT_PROTOCOL = RawProtocol OUTPUT_PROTOCOL = RawProtocol INTERNAL_PROTOCOL = RawProtocol def mapper(self, key, value): assert key == "1001" assert value == "{\"value\":10}" ...
27.181818
44
0.59699
7981dfc9c05891eb01eba2c630b91c4a0356a2a5
1,888
py
Python
day-2/part-two.py
NEKERAFA/Advent-of-Code-2021
8f1fd1e626378a0511e36a047aba15f06d989302
[ "MIT" ]
null
null
null
day-2/part-two.py
NEKERAFA/Advent-of-Code-2021
8f1fd1e626378a0511e36a047aba15f06d989302
[ "MIT" ]
null
null
null
day-2/part-two.py
NEKERAFA/Advent-of-Code-2021
8f1fd1e626378a0511e36a047aba15f06d989302
[ "MIT" ]
null
null
null
from tokenizer import tokenize, TokenType class ParseException(Exception): def __init__(self, token, message): self.message = f"{token.position}, {token.line}: {message}" def calculatestatus(): position = 0 aim = 0 depth = 0 with open('input.txt', 'r') as f: tokens = tokenize(f) ...
34.327273
97
0.541314
7981e033ef3fd7256d4bbfd73d3db64cdb79b845
5,759
py
Python
apps/develop/models.py
Visualway/Vitary
c7db9a25837fa7390b2177b9db48e73c6f1ab3c8
[ "BSD-3-Clause" ]
4
2021-12-24T16:07:44.000Z
2022-03-04T02:30:20.000Z
apps/develop/models.py
Visualway/Vitary
c7db9a25837fa7390b2177b9db48e73c6f1ab3c8
[ "BSD-3-Clause" ]
4
2021-12-30T13:32:56.000Z
2022-03-15T03:58:48.000Z
apps/develop/models.py
Visualway/Vitary
c7db9a25837fa7390b2177b9db48e73c6f1ab3c8
[ "BSD-3-Clause" ]
null
null
null
from django.db import models from django.contrib.auth.models import User import uuid class DevProfile(models.Model): """ DevProfile model for developers """ user = models.OneToOneField(User, on_delete=models.CASCADE) first_name = models.CharField(max_length=50) last_name = models.CharField(max...
31.81768
106
0.619726
7981e18a442fd5f8766081bb88ef21f191ce4dfb
10,343
py
Python
intersight/model/iam_sso_session_attributes_all_of.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
5
2021-12-16T15:13:32.000Z
2022-03-29T16:09:54.000Z
intersight/model/iam_sso_session_attributes_all_of.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
4
2022-01-25T19:05:51.000Z
2022-03-29T20:18:37.000Z
intersight/model/iam_sso_session_attributes_all_of.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
2
2020-07-07T15:01:08.000Z
2022-01-31T04:27:35.000Z
""" Cisco Intersight Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advan...
53.041026
1,678
0.64169
7981e21d480db7254b047e70898821314c25b79d
3,001
py
Python
shdw/utils/dictparser.py
wbrandenburger/ShadowDetection
2a58df93e32e8baf99806555655a7daf7e68735a
[ "MIT" ]
2
2020-09-06T16:45:37.000Z
2021-04-25T15:16:20.000Z
shdw/utils/dictparser.py
wbrandenburger/ShadowDetection
2a58df93e32e8baf99806555655a7daf7e68735a
[ "MIT" ]
null
null
null
shdw/utils/dictparser.py
wbrandenburger/ShadowDetection
2a58df93e32e8baf99806555655a7daf7e68735a
[ "MIT" ]
1
2020-04-30T03:08:56.000Z
2020-04-30T03:08:56.000Z
# =========================================================================== # dictparser.py ----------------------------------------------------------- # =========================================================================== # import ------------------------------------------------------------------ # -----...
34.102273
105
0.474175
7981e230f2af76b768894904056b5404ee8c289a
5,130
py
Python
tests/models/test_pool.py
chaitushiva/airflow
cc1d802cb8f2945cbcdcb84370025df173de139d
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
2
2021-06-26T13:36:58.000Z
2021-06-26T15:03:45.000Z
tests/models/test_pool.py
yuqian90/airflow
6d3c6f665a7027da9abe6ef15fcf5593d6eb5377
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
tests/models/test_pool.py
yuqian90/airflow
6d3c6f665a7027da9abe6ef15fcf5593d6eb5377
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
34.2
90
0.596686
7981e3aeef8e9c881104e8b4f5b558141b49d107
770
py
Python
django_test/posting/migrations/0003_auto_20200530_1216.py
sdfxisme/lesson21
52752fb4b4698bffcd8df9a562c473637b2dc3b7
[ "MIT" ]
null
null
null
django_test/posting/migrations/0003_auto_20200530_1216.py
sdfxisme/lesson21
52752fb4b4698bffcd8df9a562c473637b2dc3b7
[ "MIT" ]
null
null
null
django_test/posting/migrations/0003_auto_20200530_1216.py
sdfxisme/lesson21
52752fb4b4698bffcd8df9a562c473637b2dc3b7
[ "MIT" ]
null
null
null
# Generated by Django 3.0.6 on 2020-05-30 09:16 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('posting', '0002_auto_20200527_2053'), ] operations = [ migrations.AddField( model_name='my_post', na...
25.666667
99
0.581818
7981e4a97393d014587184e044581f7e2b947015
3,288
py
Python
experiments/robomove/process_robomove.py
sebascuri/GPSSMtorch
799db18bebd4cc70ed4c054cadfcf5c4693c95ae
[ "MIT" ]
3
2021-07-17T15:20:57.000Z
2022-03-19T10:21:32.000Z
experiments/robomove/process_robomove.py
sebascuri/GPSSMtorch
799db18bebd4cc70ed4c054cadfcf5c4693c95ae
[ "MIT" ]
1
2021-04-22T02:09:35.000Z
2021-04-22T02:43:39.000Z
experiments/robomove/process_robomove.py
sebascuri/GPSSMtorch
799db18bebd4cc70ed4c054cadfcf5c4693c95ae
[ "MIT" ]
1
2021-04-24T08:57:08.000Z
2021-04-24T08:57:08.000Z
"""Python Script Template.""" from gpssm.plotters import plot_evaluation_datasets import numpy as np import matplotlib.pyplot as plt from itertools import product SPLITS = ['test', 'train', 'last'] def parse_file(file_name): """Parse a file.""" with open(file_name) as file: data = file.readlines() ...
32.88
87
0.525852
7981e652e18a598c2053b180cb39e3faccd024c5
1,664
py
Python
test/utils/test_testing.py
SamuelMarks/botorch
7801e2f56dc447322b2b6c92cab683d8900e4c7f
[ "MIT" ]
2,344
2019-05-01T04:57:26.000Z
2022-03-29T17:00:41.000Z
test/utils/test_testing.py
SamuelMarks/botorch
7801e2f56dc447322b2b6c92cab683d8900e4c7f
[ "MIT" ]
942
2019-05-01T05:11:30.000Z
2022-03-31T21:58:24.000Z
test/utils/test_testing.py
SamuelMarks/botorch
7801e2f56dc447322b2b6c92cab683d8900e4c7f
[ "MIT" ]
280
2019-05-01T05:14:53.000Z
2022-03-29T16:00:33.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import torch from botorch.utils.testing import BotorchTestCase, MockModel, MockPosterior class TestMock(BotorchTestCa...
36.977778
79
0.645433
7981e6e1289afb7a02a4f37751164f2ca85b663c
5,241
py
Python
2022-03-09/utils.py
GrahamAnto/cannabis-data-science
1d5f3085e7b2858b6791840b90335be4669268b3
[ "MIT" ]
1
2022-03-10T12:37:02.000Z
2022-03-10T12:37:02.000Z
2022-03-09/utils.py
GrahamAnto/cannabis-data-science
1d5f3085e7b2858b6791840b90335be4669268b3
[ "MIT" ]
null
null
null
2022-03-09/utils.py
GrahamAnto/cannabis-data-science
1d5f3085e7b2858b6791840b90335be4669268b3
[ "MIT" ]
null
null
null
""" Utility Functions | Cannabis Data Science Copyright (c) 2021-2022 Cannlytics Author: Keegan Skeate <keegan@cannlytics.com> Created: 10/27/2021 Updated: 1/18/2022 License: MIT License <https://opensource.org/licenses/MIT> """ # Standard imports. from datetime import datetime import re from typing import Any, List, ...
33.812903
102
0.654455
7981e7e68f14db28c96763b67a80fe62452c9190
1,784
py
Python
aliyun-python-sdk-dataworks-public/aliyunsdkdataworks_public/request/v20200518/GetBaselineStatusRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
1,001
2015-07-24T01:32:41.000Z
2022-03-25T01:28:18.000Z
aliyun-python-sdk-dataworks-public/aliyunsdkdataworks_public/request/v20200518/GetBaselineStatusRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
363
2015-10-20T03:15:00.000Z
2022-03-08T12:26:19.000Z
aliyun-python-sdk-dataworks-public/aliyunsdkdataworks_public/request/v20200518/GetBaselineStatusRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
682
2015-09-22T07:19:02.000Z
2022-03-22T09:51:46.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...
35.68
83
0.765135
7981e8c1cfa7d4efac3ed7ccae93607db2414da5
3,743
py
Python
setup.py
bjodah/pyneqsys
1e8b63ee6e820d33a87b95c057655df03e1e4fc6
[ "BSD-2-Clause" ]
30
2015-11-12T09:18:36.000Z
2022-03-16T23:25:03.000Z
setup.py
bjodah/pyneqsys
1e8b63ee6e820d33a87b95c057655df03e1e4fc6
[ "BSD-2-Clause" ]
9
2016-01-01T22:37:28.000Z
2018-08-15T11:17:48.000Z
setup.py
bjodah/pyneqsys
1e8b63ee6e820d33a87b95c057655df03e1e4fc6
[ "BSD-2-Clause" ]
4
2018-01-17T02:53:21.000Z
2021-02-02T22:52:56.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import io from itertools import chain import os import re import shutil import subprocess import sys import warnings from setuptools import setup pkg_name = 'pyneqsys' url = 'https://github.com/bjodah/' + pkg_name license = 'BSD' RELEASE_VERSION = os.environ.get('%s_RELE...
35.647619
109
0.653487
7981ea0fded8178c8219e94aab09e298968dc1d0
612
py
Python
tensorflow_datasets/scripts/documentation/__init__.py
sourcery-ai-bot/datasets
b623ab0abf3f03bacf6a7ba22c8d37bf76a4db28
[ "Apache-2.0" ]
1
2021-05-10T10:41:27.000Z
2021-05-10T10:41:27.000Z
tensorflow_datasets/scripts/documentation/__init__.py
sourcery-ai-bot/datasets
b623ab0abf3f03bacf6a7ba22c8d37bf76a4db28
[ "Apache-2.0" ]
null
null
null
tensorflow_datasets/scripts/documentation/__init__.py
sourcery-ai-bot/datasets
b623ab0abf3f03bacf6a7ba22c8d37bf76a4db28
[ "Apache-2.0" ]
1
2021-07-04T11:07:35.000Z
2021-07-04T11:07:35.000Z
# coding=utf-8 # Copyright 2021 The TensorFlow Datasets Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
38.25
74
0.763072
7981ea8839a62fe1776c390fc2d1273ed8126cf9
64,458
py
Python
old_STRIFE_changes2.py
lucyvost/STRIFE
3557e9b989db2fd37bf187214e5dcfc5bcf67bf7
[ "BSD-3-Clause" ]
null
null
null
old_STRIFE_changes2.py
lucyvost/STRIFE
3557e9b989db2fd37bf187214e5dcfc5bcf67bf7
[ "BSD-3-Clause" ]
null
null
null
old_STRIFE_changes2.py
lucyvost/STRIFE
3557e9b989db2fd37bf187214e5dcfc5bcf67bf7
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Jul 26 17:12:05 2021 @author: Tom Hadfield Main class for STRIFE algorithm python STRIFE_changes2.py -p Mpro.pdb -f less_fragments_to_elaborate2.sdf -o otw -s less_fragments_to_elaborate2.smi -it otw -m new_hotspots100 """ #########Standard Libra...
47.221978
412
0.607015
7981ecb3a9bcdc258ba42497f3a5d5303705e01b
8,476
py
Python
source/soca/cluster_manager/nodes_manager.py
veloduff/scale-out-computing-on-aws
f87491f8699b57ebd1615daad8544fff74f4eb86
[ "Apache-2.0" ]
null
null
null
source/soca/cluster_manager/nodes_manager.py
veloduff/scale-out-computing-on-aws
f87491f8699b57ebd1615daad8544fff74f4eb86
[ "Apache-2.0" ]
null
null
null
source/soca/cluster_manager/nodes_manager.py
veloduff/scale-out-computing-on-aws
f87491f8699b57ebd1615daad8544fff74f4eb86
[ "Apache-2.0" ]
null
null
null
import boto3 import subprocess import json import sys import os sys.path.append(os.path.dirname(__file__)) import configuration from ast import literal_eval def run_command(cmd, type): try: if type == "check_output": command = subprocess.check_output(cmd) return literal_eval(command...
40.170616
295
0.578103
7981ed96d51055bb6d6473353148fe6f7d3ea306
16,602
py
Python
test/jit/test_type_sharing.py
jsun94/nimble
e5c899a69677818b1becc58100577441e15ede13
[ "BSD-3-Clause" ]
206
2020-11-28T22:56:38.000Z
2022-03-27T02:33:04.000Z
test/jit/test_type_sharing.py
jsun94/nimble
e5c899a69677818b1becc58100577441e15ede13
[ "BSD-3-Clause" ]
19
2020-12-09T23:13:14.000Z
2022-01-24T23:24:08.000Z
test/jit/test_type_sharing.py
jsun94/nimble
e5c899a69677818b1becc58100577441e15ede13
[ "BSD-3-Clause" ]
28
2020-11-29T15:25:12.000Z
2022-01-20T02:16:27.000Z
import os import sys import io import torch # Make the helper files in test/ importable pytorch_test_dir = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) sys.path.append(pytorch_test_dir) from torch.testing._internal.jit_utils import JitTestCase from torch.testing._internal.common_utils import suppress_...
29.488455
105
0.513854
7981ee0e7c038c884877e7998543f3b3ef1d2dad
6,029
py
Python
theano/sparse/type.py
ganguli-lab/Theano
d61c929b6d1a5bae314545cba79c879de687ea18
[ "BSD-3-Clause" ]
null
null
null
theano/sparse/type.py
ganguli-lab/Theano
d61c929b6d1a5bae314545cba79c879de687ea18
[ "BSD-3-Clause" ]
null
null
null
theano/sparse/type.py
ganguli-lab/Theano
d61c929b6d1a5bae314545cba79c879de687ea18
[ "BSD-3-Clause" ]
null
null
null
import numpy try: import scipy.sparse imported_scipy = True except ImportError: imported_scipy = False import theano from theano import gof def _is_sparse(x): """ @rtype: boolean @return: True iff x is a L{scipy.sparse.spmatrix} (and not a L{numpy.ndarray}) """ if not isinstance(x...
37.918239
79
0.584176
7981eed2a159b9faa854ae7f0578d11b99790564
738
py
Python
tests/test_image_concern_polls.py
carlosmarca/polls-trump-covid
8e484f1560d8379716daefb2b56b0374eb23c44b
[ "MIT" ]
1
2021-06-14T14:35:38.000Z
2021-06-14T14:35:38.000Z
tests/test_image_concern_polls.py
carlosmarca/polls-trump-covid
8e484f1560d8379716daefb2b56b0374eb23c44b
[ "MIT" ]
null
null
null
tests/test_image_concern_polls.py
carlosmarca/polls-trump-covid
8e484f1560d8379716daefb2b56b0374eb23c44b
[ "MIT" ]
null
null
null
import unittest from filtered_csv import filtered_df from image_concern_polls import number_interviewed from image_concern_polls import create_concern_bar class TestImageConcernPolls(unittest.TestCase): @classmethod def setUpClass(cls): cls.df_2 = filtered_df("data/covid_concern_polls.csv") def ...
32.086957
80
0.708672
7981efa2489e431edf3b8be0a50dd65a9d77cf04
1,833
py
Python
ns1/rest/views.py
nsone/ns1-python
b563d22076d25279b42209824add7ec281f0f0c4
[ "MIT" ]
null
null
null
ns1/rest/views.py
nsone/ns1-python
b563d22076d25279b42209824add7ec281f0f0c4
[ "MIT" ]
null
null
null
ns1/rest/views.py
nsone/ns1-python
b563d22076d25279b42209824add7ec281f0f0c4
[ "MIT" ]
null
null
null
# # Copyright (c) 2014 NSONE, Inc. # # License under The MIT License (MIT). See LICENSE in project root. from . import resource class Views(resource.BaseResource): ROOT = "views" INT_FIELDS = [ "preference", ] PASSTHRU_FIELDS = [ "read_acls", "update_acls", "zones", ...
25.458333
73
0.546099
7981f0a06d1c44eee353e944910fd767d2ea1f0e
8,483
py
Python
fundamentals/strategies/incubator/stock_picking.py
marcellogoccia/deep-value-investing
4d45cc92c157246485b638d2052596a76975ec8a
[ "MIT" ]
null
null
null
fundamentals/strategies/incubator/stock_picking.py
marcellogoccia/deep-value-investing
4d45cc92c157246485b638d2052596a76975ec8a
[ "MIT" ]
null
null
null
fundamentals/strategies/incubator/stock_picking.py
marcellogoccia/deep-value-investing
4d45cc92c157246485b638d2052596a76975ec8a
[ "MIT" ]
null
null
null
import os import math from fundamentals.strategies.basic_strategy.stock_picking import StockPicking from fundamentals.strategies.incubator.melting_pot import MeltingPot from utilities.pickle_manager import PickleManager as pckl from utilities import log from utilities.common_methods import getDebugInfo class StockP...
40.588517
121
0.657315
7981f1190a494cf425913811170d5a60caf3fe3f
40,539
py
Python
venv/lib/python3.8/site-packages/mercurial/dagop.py
JesseDavids/mqtta
389eb4f06242d4473fe1bcff7fc6a22290e0d99c
[ "Apache-2.0" ]
4
2021-02-05T10:57:39.000Z
2022-02-25T04:43:23.000Z
venv/lib/python3.8/site-packages/mercurial/dagop.py
JesseDavids/mqtta
389eb4f06242d4473fe1bcff7fc6a22290e0d99c
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.8/site-packages/mercurial/dagop.py
JesseDavids/mqtta
389eb4f06242d4473fe1bcff7fc6a22290e0d99c
[ "Apache-2.0" ]
null
null
null
# dagop.py - graph ancestry and topology algorithm for revset # # Copyright 2010 Matt Mackall <mpm@selenic.com> # # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. from __future__ import absolute_import import heapq from .node impor...
36.423181
80
0.584943
7981f27a68314ba9359bbaf6478ccada51677949
2,081
py
Python
service/pwgan/model.py
airenas/pwgan-pytorch-serving
fb16498946b880e2f147acdeb76372e0b7ab6b4a
[ "BSD-3-Clause" ]
null
null
null
service/pwgan/model.py
airenas/pwgan-pytorch-serving
fb16498946b880e2f147acdeb76372e0b7ab6b4a
[ "BSD-3-Clause" ]
null
null
null
service/pwgan/model.py
airenas/pwgan-pytorch-serving
fb16498946b880e2f147acdeb76372e0b7ab6b4a
[ "BSD-3-Clause" ]
null
null
null
import base64 import io import logging import os import time import soundfile import torch import yaml from parallel_wavegan.utils import load_model from service.metrics import ElapsedLogger logger = logging.getLogger(__name__) def as_string(data, sampling_rate): buffer = io.BytesIO() soundfile.write(buffe...
30.15942
83
0.641519
7981f2cef11ce7b853d7fd5b025747711f26862c
6,207
py
Python
tests/components/flux_led/test_init.py
andersop91/core
0e0ef0aa17073609eae7c974cf4c73306b7c414b
[ "Apache-2.0" ]
4
2021-07-11T09:11:00.000Z
2022-02-27T14:43:50.000Z
tests/components/flux_led/test_init.py
andersop91/core
0e0ef0aa17073609eae7c974cf4c73306b7c414b
[ "Apache-2.0" ]
277
2021-10-04T06:39:33.000Z
2021-12-28T22:04:17.000Z
tests/components/flux_led/test_init.py
andersop91/core
0e0ef0aa17073609eae7c974cf4c73306b7c414b
[ "Apache-2.0" ]
1
2022-02-09T00:30:51.000Z
2022-02-09T00:30:51.000Z
"""Tests for the flux_led component.""" from __future__ import annotations from datetime import timedelta from unittest.mock import patch import pytest from homeassistant.components import flux_led from homeassistant.components.flux_led.const import DOMAIN from homeassistant.config_entries import ConfigEntryState fr...
39.037736
97
0.734654
7981f34911f0ffbd668591924c5b4862e5a0ada8
95
py
Python
Previous Versions/ProjectWithLibrary/DHP/paths.py
HarshPatel5940/DataHandlingProject
9c8e1e9ed764c08c0e0b18b1d8553d9d71298ace
[ "MIT" ]
2
2021-09-18T12:50:15.000Z
2021-12-13T11:47:36.000Z
Previous Versions/ProjectWithLibrary/DHP/paths.py
HarshPatel5940/DataHandlingProject
9c8e1e9ed764c08c0e0b18b1d8553d9d71298ace
[ "MIT" ]
1
2021-12-10T15:43:07.000Z
2021-12-14T13:37:43.000Z
Previous Versions/ProjectWithLibrary/DHP/paths.py
HarshPatel5940/DataHandlingProject
9c8e1e9ed764c08c0e0b18b1d8553d9d71298ace
[ "MIT" ]
null
null
null
app_data_path = "data/" user_file_path = "data_user.csv" admin_file_path = "data_admin.csv"
23.75
35
0.747368
7981f4b3cbc83e148b8e120906026eb653c71251
8,918
py
Python
loaddata.py
ppold/lambtastic
29d96f0f111a950a6ecd7af1cdc172addd64de04
[ "Unlicense" ]
null
null
null
loaddata.py
ppold/lambtastic
29d96f0f111a950a6ecd7af1cdc172addd64de04
[ "Unlicense" ]
1
2021-06-01T21:53:04.000Z
2021-06-01T21:53:04.000Z
loaddata.py
ppold/lambtastic
29d96f0f111a950a6ecd7af1cdc172addd64de04
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function import re import csv import json import logging from os import path from collections import namedtuple try: from urllib.request import urlretrieve except ImportError: # python2 from urllib import urlretrieve from urllib3 impo...
35.815261
154
0.594528
7981f6dfec0e377aa4a84ef68865d8c30907a07a
6,861
py
Python
packages/risksense_api/__subject/__host_unique_findings/__host_unique_findings.py
PRASANTHBHARADHWAAJ/risksense_tools
d9f95ac3c7107bb4114c958455c7194211ff951b
[ "Apache-2.0" ]
4
2020-12-24T15:20:23.000Z
2021-12-26T17:41:46.000Z
packages/risksense_api/__subject/__host_unique_findings/__host_unique_findings.py
PRASANTHBHARADHWAAJ/risksense_tools
d9f95ac3c7107bb4114c958455c7194211ff951b
[ "Apache-2.0" ]
4
2020-10-08T19:53:36.000Z
2020-11-11T20:52:36.000Z
packages/risksense_api/__subject/__host_unique_findings/__host_unique_findings.py
PRASANTHBHARADHWAAJ/risksense_tools
d9f95ac3c7107bb4114c958455c7194211ff951b
[ "Apache-2.0" ]
2
2021-06-18T01:27:31.000Z
2021-12-20T03:19:31.000Z
""" ******************************************************************************************************************* | | Name : __host_unique_findings.py | Module : risksense_api | Description : A class to be used for searching for Unique HostFindings on the RiskSense Platform. | Copyright : (c...
32.671429
133
0.592771
7981f6e6e4fb48e23b2ae728e6206b8f1cb5f490
5,300
py
Python
chess_net_simple.py
michaelwolz/ChessML
72d82804cac0554440ef39caf0f25eb399f4a34f
[ "MIT" ]
7
2019-04-05T10:33:28.000Z
2021-06-07T17:14:55.000Z
chess_net_simple.py
michaelwolz/ChessML
72d82804cac0554440ef39caf0f25eb399f4a34f
[ "MIT" ]
null
null
null
chess_net_simple.py
michaelwolz/ChessML
72d82804cac0554440ef39caf0f25eb399f4a34f
[ "MIT" ]
2
2019-03-29T18:57:48.000Z
2020-09-13T10:11:26.000Z
#!/usr/bin/env python # coding: utf-8 # The SimpleNet just decides whether a given chess tile is empty or full. This class is just intended for testing and # to simplify the labeling progress while sorting out empty tiles that make up a large part of the data. import torch import torch.optim as optim import torch.nn....
30.994152
117
0.598679
7981f8ef2251a364422d201f326bdf80f4fb8d5d
833
py
Python
final_design/tests/Arduino2Raspberry/arduino_test.py
DFEC-R2D2/r2d2
9b64233865ebfe9f0ca3f1b400b55cc8d6494adf
[ "MIT" ]
3
2017-08-02T04:46:17.000Z
2020-03-30T12:11:13.000Z
final_design/tests/Arduino2Raspberry/arduino_test.py
DFEC-R2D2/r2d2
9b64233865ebfe9f0ca3f1b400b55cc8d6494adf
[ "MIT" ]
null
null
null
final_design/tests/Arduino2Raspberry/arduino_test.py
DFEC-R2D2/r2d2
9b64233865ebfe9f0ca3f1b400b55cc8d6494adf
[ "MIT" ]
null
null
null
#!/usr/bin/env python ############################################## # The MIT License (MIT) # Copyright (c) 2016 Kevin Walchko # see LICENSE for full details ############################################## from __future__ import division, print_function import time import serial port = '/dev/serial/by-id/usb-Arduino__...
25.242424
86
0.638655
7981f8f014aa698ca97d00308a70e92440e5ab94
1,687
py
Python
misc/utils.py
amhajavi/SiameseCapsule
7caac103399c1bb4c492b55f4af62909ddd51a1b
[ "CC0-1.0" ]
null
null
null
misc/utils.py
amhajavi/SiameseCapsule
7caac103399c1bb4c492b55f4af62909ddd51a1b
[ "CC0-1.0" ]
null
null
null
misc/utils.py
amhajavi/SiameseCapsule
7caac103399c1bb4c492b55f4af62909ddd51a1b
[ "CC0-1.0" ]
null
null
null
# Third Party import librosa import numpy as np import math # =============================================== # code from Arsha for loading data. # =============================================== def load_wav(vid_path, sr, mode='train'): wav, sr_ret = librosa.load(vid_path, sr=sr) assert sr_ret == sr ...
36.673913
110
0.614108
7981f91f2fd3aae63458597587b3967ed8368e50
3,598
py
Python
events/contrib/plugins/form_elements/fields/select/forms.py
mansonul/events
4f6ca37bc600dcba3f74400d299826882d53b7d2
[ "MIT" ]
null
null
null
events/contrib/plugins/form_elements/fields/select/forms.py
mansonul/events
4f6ca37bc600dcba3f74400d299826882d53b7d2
[ "MIT" ]
null
null
null
events/contrib/plugins/form_elements/fields/select/forms.py
mansonul/events
4f6ca37bc600dcba3f74400d299826882d53b7d2
[ "MIT" ]
null
null
null
from django import forms from django.utils.translation import ugettext_lazy as _ from fobi.base import BaseFormFieldPluginForm, get_theme from fobi.helpers import validate_initial_for_choices __title__ = 'fobi.contrib.plugins.form_elements.fields.select.forms' __author__ = 'Artur Barseghyan <artur.barseghyan@gmail.co...
36.714286
77
0.544747
7981f92c4c5eba508f4acd810f89f5f5b7bf7742
3,459
py
Python
appengine/config_service/acl_test.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
1
2017-10-30T15:08:10.000Z
2017-10-30T15:08:10.000Z
appengine/config_service/acl_test.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
null
null
null
appengine/config_service/acl_test.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 2015 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. from test_env import future import test_env test_env.setup_test_env() from test_support import test_case import mock from ...
33.911765
80
0.750506
7981f99c1d6091121ffeed8a140241d8cb3d6aa6
508
py
Python
exercicio25.py
profnssorg/henriqueJoner1
be5ddd3be50716a9d0c99bc74a434b4fc396e0a0
[ "MIT" ]
null
null
null
exercicio25.py
profnssorg/henriqueJoner1
be5ddd3be50716a9d0c99bc74a434b4fc396e0a0
[ "MIT" ]
null
null
null
exercicio25.py
profnssorg/henriqueJoner1
be5ddd3be50716a9d0c99bc74a434b4fc396e0a0
[ "MIT" ]
null
null
null
""" Descrição: Este programa soma três variáveis diferentes Autor:Henrique Joner Versão:0.0.1 Data:23/11/2018 """ #Inicialização de variáveis a = 0 b = 0 c = 0 resultado = 0 #Entrada de dados a = float(input("Digite o valor de a: ")) b = float(input("Digite o valor de b: ")) c = float(input("Digite o valor de...
14.941176
111
0.649606