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
795236d47b3fabc037de675331efa5a541e17a5f
9,140
py
Python
xclim/testing/tests/test_cli.py
fossabot/xclim
31fbdce6545d29e8a762b64b880e04eeb601f9eb
[ "Apache-2.0" ]
null
null
null
xclim/testing/tests/test_cli.py
fossabot/xclim
31fbdce6545d29e8a762b64b880e04eeb601f9eb
[ "Apache-2.0" ]
null
null
null
xclim/testing/tests/test_cli.py
fossabot/xclim
31fbdce6545d29e8a762b64b880e04eeb601f9eb
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Tests for `xclim` package, command line interface import numpy as np import pytest import xarray as xr from click.testing import CliRunner import xclim from xclim.cli import cli from xclim.testing import open_dataset try: from dask.distributed import Client except I...
27.95107
92
0.595295
795238cdd140f802daad16798b0f06c4193fee09
1,908
py
Python
encoding.py
AnuragAnalog/Machine-learning
4ec2657524cb54d715b0bddeb7d8ea3b7644a302
[ "MIT" ]
2
2020-02-23T07:08:08.000Z
2020-06-15T15:11:36.000Z
encoding.py
AnuragAnalog/Machine-learning
4ec2657524cb54d715b0bddeb7d8ea3b7644a302
[ "MIT" ]
1
2020-01-08T13:30:33.000Z
2020-01-08T13:30:33.000Z
encoding.py
AnuragAnalog/Machine-learning
4ec2657524cb54d715b0bddeb7d8ea3b7644a302
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import numpy as np class OneHotEncoder(): def __init__(self): self.unique = dict() self.fit_called = False self.row = 2 self.column = 2 def __str__(self): if self.fit_called: return "Encoding is: "+str(self.unique) else: ...
25.44
80
0.527778
795239ab78c6ead04df71b340941a444cfc25d19
61,589
py
Python
pandas/plotting/_core.py
liaoaoyuan97/pandas
6e707f2f68a4ed7fd990438bc489374641374cff
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2021-03-24T21:56:40.000Z
2021-03-24T21:56:40.000Z
pandas/plotting/_core.py
amrezz13/pandas
2fad6a38f8ecb1f4f7568ca57cb974f7f058cb9d
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/plotting/_core.py
amrezz13/pandas
2fad6a38f8ecb1f4f7568ca57cb974f7f058cb9d
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
import importlib from typing import TYPE_CHECKING, Optional, Sequence, Tuple, Union from pandas._config import get_option from pandas._typing import Label from pandas.util._decorators import Appender, Substitution from pandas.core.dtypes.common import is_integer, is_list_like from pandas.core.dtypes.generic import A...
34.197113
88
0.567634
79523a4c312c1f4481d0cf4659af74932bbf980b
1,438
py
Python
conans/test/functional/settings_constraint_test.py
wahlm/conan
1afadb5cca9e1c688c7b37c69a0ff3c6a6dbe257
[ "MIT" ]
null
null
null
conans/test/functional/settings_constraint_test.py
wahlm/conan
1afadb5cca9e1c688c7b37c69a0ff3c6a6dbe257
[ "MIT" ]
null
null
null
conans/test/functional/settings_constraint_test.py
wahlm/conan
1afadb5cca9e1c688c7b37c69a0ff3c6a6dbe257
[ "MIT" ]
null
null
null
import unittest from conans.test.utils.tools import TestClient from conans.util.files import save import os class SettingConstraintTest(unittest.TestCase): def settings_constraint_test(self): conanfile = """from conans import ConanFile class Test(ConanFile): name = "Hello" version = "0.1" set...
39.944444
91
0.653686
79523acce2a54299a63e6840c2e0f7c465ab818f
1,939
py
Python
contest/abc156/D.py
mola1129/atcoder
1d3b18cb92d0ba18c41172f49bfcd0dd8d29f9db
[ "MIT" ]
null
null
null
contest/abc156/D.py
mola1129/atcoder
1d3b18cb92d0ba18c41172f49bfcd0dd8d29f9db
[ "MIT" ]
null
null
null
contest/abc156/D.py
mola1129/atcoder
1d3b18cb92d0ba18c41172f49bfcd0dd8d29f9db
[ "MIT" ]
null
null
null
MOD = 10 ** 9 + 7 class ModInt: def __init__(self, x): self.x = x % MOD def __str__(self): return str(self.x) __repr__ = __str__ def __add__(self, other): return ( ModInt(self.x + other.x) if isinstance(other, ModInt) else ModInt(self.x + other) ...
24.2375
79
0.507478
79523ad7c4bc264cf85af4a15171c2d3980018f5
4,070
py
Python
examples/scara/animation.py
yinanl/rocs
bf2483903e39f4c0ea254a9ef56720a1259955ad
[ "BSD-3-Clause" ]
null
null
null
examples/scara/animation.py
yinanl/rocs
bf2483903e39f4c0ea254a9ef56720a1259955ad
[ "BSD-3-Clause" ]
null
null
null
examples/scara/animation.py
yinanl/rocs
bf2483903e39f4c0ea254a9ef56720a1259955ad
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import re import matplotlib.pyplot as plt import matplotlib.patches as patches import matplotlib.lines as lines import matplotlib.animation as animation import sys from os.path import dirname, realpath pypath = dirname(dirname(dirname(realpath(__file__)))) + '/python/' sys.path.insert(1, pypath) from...
31.796875
76
0.578624
79523afeaa88924ca2693659a2e3adab3587009d
39
py
Python
examples/celery/client.py
mastak/pybrake
32968efbebea07580680f16228be818726c13933
[ "MIT" ]
36
2018-04-24T09:26:12.000Z
2022-02-17T13:44:41.000Z
examples/celery/client.py
mastak/pybrake
32968efbebea07580680f16228be818726c13933
[ "MIT" ]
90
2018-03-06T15:13:53.000Z
2022-03-25T11:32:25.000Z
examples/celery/client.py
mastak/pybrake
32968efbebea07580680f16228be818726c13933
[ "MIT" ]
21
2018-04-04T14:50:12.000Z
2022-03-23T05:48:51.000Z
from tasks import add add.delay(4, 4)
9.75
21
0.717949
79523b8d4d3293a476946b65f6dbae10ebd073c7
4,052
py
Python
gae/layers.py
floregol/gae
d5db3f32a8d26001a9b44f7a863a75a61807461f
[ "MIT" ]
null
null
null
gae/layers.py
floregol/gae
d5db3f32a8d26001a9b44f7a863a75a61807461f
[ "MIT" ]
null
null
null
gae/layers.py
floregol/gae
d5db3f32a8d26001a9b44f7a863a75a61807461f
[ "MIT" ]
null
null
null
from gae.initializations import * import tensorflow as tf flags = tf.app.flags FLAGS = flags.FLAGS # global unique layer ID dictionary for layer name assignment _LAYER_UIDS = {} def get_layer_uid(layer_name=''): """Helper function, assigns unique layer IDs """ if layer_name not in _LAYER_UIDS: _...
33.487603
107
0.638944
79523ba966f2526d316bb824bb1a129f8f2f69ee
2,895
py
Python
djstripe/contrib/rest_framework/views.py
Korben11/dj-stripe
06661c174f0cda52b33be9a421f8b80438d71ab0
[ "MIT" ]
null
null
null
djstripe/contrib/rest_framework/views.py
Korben11/dj-stripe
06661c174f0cda52b33be9a421f8b80438d71ab0
[ "MIT" ]
null
null
null
djstripe/contrib/rest_framework/views.py
Korben11/dj-stripe
06661c174f0cda52b33be9a421f8b80438d71ab0
[ "MIT" ]
null
null
null
""" .. module:: dj-stripe.contrib.rest_framework.views. :synopsis: Views for the dj-stripe REST API. .. moduleauthor:: Philippe Luickx (@philippeluickx) """ from rest_framework import status from rest_framework.permissions import IsAuthenticated from rest_framework.response import Response from rest_framework.v...
34.058824
84
0.648705
79523bc1d88d5b25c01fb290e8b37b77fb78ab35
2,719
py
Python
ui/widgets/video.py
AP-Atul/Torpido
a646b4d6de7f2e2c96de4c64ce3113f53e3931c2
[ "Unlicense" ]
21
2020-12-23T07:13:10.000Z
2022-01-12T10:32:22.000Z
ui/widgets/video.py
AP-Atul/Torpido
a646b4d6de7f2e2c96de4c64ce3113f53e3931c2
[ "Unlicense" ]
2
2020-12-30T10:45:42.000Z
2021-09-25T09:52:00.000Z
ui/widgets/video.py
AP-Atul/Torpido
a646b4d6de7f2e2c96de4c64ce3113f53e3931c2
[ "Unlicense" ]
1
2021-02-06T21:39:41.000Z
2021-02-06T21:39:41.000Z
""" QWidget for Open cv im show alternative with Qt """ import cv2 import numpy as np from PyQt5 import QtCore, QtWidgets, QtGui from PyQt5.QtGui import QPixmap, QImage from PyQt5.QtWidgets import QMainWindow, QLabel class OpenCVQImage(QtGui.QImage): """ Conversion of open cv image to QImage """ def __init_...
31.252874
91
0.614564
79523bee7dba5a4e57064a2c4fa6da646614ceac
3,626
py
Python
cfgov/v1/management/commands/update_data_snapshot_values.py
higs4281/cfgov-refresh
a02b193fb2373d443265c21845adf8a196e05675
[ "CC0-1.0" ]
1
2019-11-26T20:18:22.000Z
2019-11-26T20:18:22.000Z
cfgov/v1/management/commands/update_data_snapshot_values.py
higs4281/cfgov-refresh
a02b193fb2373d443265c21845adf8a196e05675
[ "CC0-1.0" ]
8
2021-03-11T00:55:51.000Z
2022-02-13T21:10:14.000Z
cfgov/v1/management/commands/update_data_snapshot_values.py
higs4281/cfgov-refresh
a02b193fb2373d443265c21845adf8a196e05675
[ "CC0-1.0" ]
1
2019-12-28T14:04:07.000Z
2019-12-28T14:04:07.000Z
import json import logging import os from django.core.management.base import BaseCommand from v1.models.browse_page import BrowsePage from v1.tests.wagtail_pages.helpers import publish_changes logger = logging.getLogger(__name__) class Command(BaseCommand): help = 'Monthly updates to data snapshot values' ...
37.770833
79
0.608935
79523d1fbc085ed5592b2e401854fe1a8138a05b
519
py
Python
questions.py
guptaaastha/quiz
db0dbb005e91b7e418f97e8cdf1329da6ac088ff
[ "MIT" ]
null
null
null
questions.py
guptaaastha/quiz
db0dbb005e91b7e418f97e8cdf1329da6ac088ff
[ "MIT" ]
null
null
null
questions.py
guptaaastha/quiz
db0dbb005e91b7e418f97e8cdf1329da6ac088ff
[ "MIT" ]
null
null
null
question_prompts = [ "In olden days people used the bark of the ________ tree to make a medicine for Malaria.\n (a)Cinchona\n (b)Banyan\n (c)Peepal\n\n", "On which day the world water day is celebrated?\n (a)23rd March\n (b)22nd March\n (c)21st March\n\n", "Which is a method to prevent rust?\n (a)Crystallization\n (b)S...
86.5
159
0.739884
79523d2b3a60a9b1bf3f0b7d6b706b9174736b66
12,502
py
Python
detectron/utils/boxes.py
singhnarotam1997/Detectron
ecc6b25fc8869486126f1384b4e6e042a718bd5b
[ "Apache-2.0" ]
60
2021-08-07T09:16:52.000Z
2022-03-14T09:09:00.000Z
detectron/utils/boxes.py
singhnarotam1997/Detectron
ecc6b25fc8869486126f1384b4e6e042a718bd5b
[ "Apache-2.0" ]
4
2021-10-14T02:44:49.000Z
2022-03-14T08:18:20.000Z
detectron/utils/boxes.py
singhnarotam1997/Detectron
ecc6b25fc8869486126f1384b4e6e042a718bd5b
[ "Apache-2.0" ]
11
2021-11-01T00:30:37.000Z
2021-12-08T10:01:52.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. ############################################################################## # # Based on: # -----------------------------...
37.770393
80
0.610942
79523d32928d5b66646be72dc85788219dbf989e
3,032
py
Python
nova/db/api/migrations/env.py
MagnusR/nova
798b8d2d825fcf259279ba4370e734242598f76f
[ "Apache-2.0" ]
null
null
null
nova/db/api/migrations/env.py
MagnusR/nova
798b8d2d825fcf259279ba4370e734242598f76f
[ "Apache-2.0" ]
3
2019-05-17T15:49:12.000Z
2019-11-21T10:49:54.000Z
nova/db/api/migrations/env.py
MagnusR/nova
798b8d2d825fcf259279ba4370e734242598f76f
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under th...
31.915789
79
0.722296
79523e7b163963d02daf1131c462ffb25713ab85
12,850
py
Python
asreview/review/factory.py
DominiqueMaciejewski/asreview
eb1066074613a5f6f930ff610ff92184e9244f4f
[ "Apache-2.0" ]
280
2020-02-06T12:40:16.000Z
2022-03-19T21:13:55.000Z
asreview/review/factory.py
DominiqueMaciejewski/asreview
eb1066074613a5f6f930ff610ff92184e9244f4f
[ "Apache-2.0" ]
519
2020-02-06T12:08:29.000Z
2022-03-31T16:02:01.000Z
asreview/review/factory.py
DominiqueMaciejewski/asreview
eb1066074613a5f6f930ff610ff92184e9244f4f
[ "Apache-2.0" ]
77
2020-03-06T15:22:08.000Z
2022-03-30T11:21:06.000Z
# Copyright 2019-2020 The ASReview 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 appl...
40.793651
82
0.583502
79523e98d86d0844dbe52845ad09d768b13b8c35
427
py
Python
accelerator/migrations/0071_partnerteammember_champion_admin.py
masschallenge/django-accelerator
8af898b574be3b8335edc8961924d1c6fa8b5fd5
[ "MIT" ]
6
2017-06-14T19:34:01.000Z
2020-03-08T07:16:59.000Z
accelerator/migrations/0071_partnerteammember_champion_admin.py
masschallenge/django-accelerator
8af898b574be3b8335edc8961924d1c6fa8b5fd5
[ "MIT" ]
160
2017-06-20T17:12:13.000Z
2022-03-30T13:53:12.000Z
accelerator/migrations/0071_partnerteammember_champion_admin.py
masschallenge/django-accelerator
8af898b574be3b8335edc8961924d1c6fa8b5fd5
[ "MIT" ]
null
null
null
# Generated by Django 2.2.10 on 2021-08-26 17:49 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accelerator', '0070_judginground_champion_partner_label') ] operations = [ migrations.AddField( model_name='partnerteammember',...
22.473684
67
0.639344
79523eb4acb1729bfa56a8a1f4d17b5c1574642e
12,690
py
Python
webapp/python/app.py
g4-5u/isucon7-qualify
4598bbe1941a5df14e55c7150970a3f16e32bcfc
[ "MIT" ]
null
null
null
webapp/python/app.py
g4-5u/isucon7-qualify
4598bbe1941a5df14e55c7150970a3f16e32bcfc
[ "MIT" ]
null
null
null
webapp/python/app.py
g4-5u/isucon7-qualify
4598bbe1941a5df14e55c7150970a3f16e32bcfc
[ "MIT" ]
null
null
null
import MySQLdb.cursors import flask import functools import hashlib import math import os import pathlib import random import string import tempfile import time from flask_caching import Cache static_folder = pathlib.Path(__file__).resolve().parent.parent / 'public' icons_folder = static_folder / 'icons' app = flask....
30.726392
132
0.619307
79523eedb4e3585cf02cda1512a11b90da2d1239
1,248
py
Python
cgi-bin/registro.py
raulsenaferreira/Projeto-Myosotis
b51cc4d7970f8647bcfde8f6dc9fa3d0c96093b6
[ "Apache-2.0" ]
5
2015-09-15T15:30:49.000Z
2021-07-16T23:11:35.000Z
cgi-bin/registro.py
raulsenaferreira/Projeto-Myosotis
b51cc4d7970f8647bcfde8f6dc9fa3d0c96093b6
[ "Apache-2.0" ]
6
2015-08-08T22:47:19.000Z
2015-09-08T01:37:49.000Z
cgi-bin/registro.py
raulsenaferreira/Projeto-Myosotis
b51cc4d7970f8647bcfde8f6dc9fa3d0c96093b6
[ "Apache-2.0" ]
2
2016-07-11T19:56:26.000Z
2018-04-08T14:07:52.000Z
class Registro(object): def __init__(self, nome, imagem, sexo, olhos, corDaPele, cabelo, pesoAproximado, alturaAproximada, tipoFisico, transtornoMental, idade, dataNascimento, diasDesaparecido, dataDesaparecimento, bairroDesaparecimento, cidadeDesaparecimento, ufDesaparecimento, marcaCaracteristica, status, inform...
49.92
328
0.72516
79523fdc5318bd999f7805caf1edfefeb50d75b7
859
py
Python
scam/types/coin_solution.py
grayfallstown/scam-blockchain
2183020cc74bbd1a63dda6eb0d0e73c2a3429594
[ "Apache-2.0" ]
12
2021-08-04T14:35:02.000Z
2022-02-09T04:31:44.000Z
scam/types/coin_solution.py
grayfallstown/scam-blockchain
2183020cc74bbd1a63dda6eb0d0e73c2a3429594
[ "Apache-2.0" ]
8
2021-08-04T20:58:10.000Z
2021-09-11T17:08:28.000Z
scam/types/coin_solution.py
grayfallstown/scam-blockchain
2183020cc74bbd1a63dda6eb0d0e73c2a3429594
[ "Apache-2.0" ]
4
2021-07-28T09:50:55.000Z
2022-03-15T08:43:53.000Z
from dataclasses import dataclass from typing import List from scam.types.blockchain_format.coin import Coin from scam.types.blockchain_format.program import SerializedProgram, INFINITE_COST from scam.util.chain_utils import additions_for_solution from scam.util.streamable import Streamable, streamable @dataclass(fr...
34.36
105
0.784633
7952408e177f6ebf5dc3b4321167f07018bd57ba
7,476
py
Python
web_scraper.py
lschimmel/scraper
1937e0a4b1f7206b8871b3e93314e67635a4012c
[ "MIT" ]
null
null
null
web_scraper.py
lschimmel/scraper
1937e0a4b1f7206b8871b3e93314e67635a4012c
[ "MIT" ]
null
null
null
web_scraper.py
lschimmel/scraper
1937e0a4b1f7206b8871b3e93314e67635a4012c
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup import requests import os import pathlib import re import csv N = 100 # scrapes webpage's search results # saves a subset of the webpage, and images to a folder def main(): #test conditions # url = 'URL GOES HERE' # i = 1 # scrape_how_to(url, i) # lo...
35.942308
226
0.535447
795240d1b6fde8dbab5e8d0739943a699c504a76
2,693
py
Python
data/plugins/npcs/dialogue/vorki_pet.py
FavyTeam/Elderscape_server
38bf75396e4e13222be67d5f15eb0b9862dca6bb
[ "MIT" ]
3
2019-05-09T16:59:13.000Z
2019-05-09T18:29:57.000Z
data/plugins/npcs/dialogue/vorki_pet.py
FavyTeam/Elderscape_server
38bf75396e4e13222be67d5f15eb0b9862dca6bb
[ "MIT" ]
null
null
null
data/plugins/npcs/dialogue/vorki_pet.py
FavyTeam/Elderscape_server
38bf75396e4e13222be67d5f15eb0b9862dca6bb
[ "MIT" ]
7
2019-07-11T23:04:40.000Z
2021-08-02T14:27:13.000Z
#Plugin to handle dialogue for Vorki (Vorkath) pet #Written by Owain #15/08/18 dialogue_ids = [8501, 8502, 8503, 8504, 8503, 8504, 8505, 8506, 8507, 8508, 8509, 8510] def first_click_npc_8025(player): player.getDH().sendDialogues(8500) def chat_8500(player): player.getDH().sendPlayerChat("Hey Vorki, got an...
53.86
256
0.738953
7952417bbbe7ba6bc326dcfe2f03b6078660121a
60,255
py
Python
alphax/factor_alpha101.py
wangjiehui11235/panther
cf1ca2f0c7107c5cdacf2f7ff4002d43427d9b07
[ "Apache-2.0" ]
3
2020-01-23T22:23:08.000Z
2020-10-12T20:02:16.000Z
alphax/factor_alpha101.py
wangjiehui11235/panther
cf1ca2f0c7107c5cdacf2f7ff4002d43427d9b07
[ "Apache-2.0" ]
1
2019-10-28T05:53:08.000Z
2019-10-28T05:53:08.000Z
alphax/factor_alpha101.py
wangjiehui11235/panther
cf1ca2f0c7107c5cdacf2f7ff4002d43427d9b07
[ "Apache-2.0" ]
9
2019-08-21T07:48:32.000Z
2020-04-04T09:17:54.000Z
# -*- coding: utf-8 -*- import pdb import numba import six import pandas as pd import numpy as np import inspect import datetime from sklearn import preprocessing from numpy import log from utilities.singleton import Singleton # rolling corr of two pandas dataframes def rolling_corr(x, y, win): corr_df = pd.DataF...
52.078652
152
0.614422
795241b7895e6ede3731f43193a16154039353c7
5,834
py
Python
onlinecourse/views.py
acromafireair/final-onlinecourseapp
1c2a0e8304548b5e612d487545d7aeb757150d78
[ "Apache-2.0" ]
null
null
null
onlinecourse/views.py
acromafireair/final-onlinecourseapp
1c2a0e8304548b5e612d487545d7aeb757150d78
[ "Apache-2.0" ]
null
null
null
onlinecourse/views.py
acromafireair/final-onlinecourseapp
1c2a0e8304548b5e612d487545d7aeb757150d78
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponseRedirect # <HINT> Import any new Models here from .models import Course, Enrollment, Question, Choice, Submission from django.contrib.auth.models import User from django.shortcuts import get_object_or_404, render, redirect from django.urls import r...
38.381579
129
0.69592
7952436a9c3207148bd6d7e5075d21bb3cbe02a4
1,430
py
Python
setup.py
tcordiello/electrumx
f62c982f9b5ace30bdb962d07c4c9c8e7d87032a
[ "MIT" ]
1
2021-08-14T13:46:27.000Z
2021-08-14T13:46:27.000Z
setup.py
denza/electrumx
2ab1dce09152ff917881c2b5e45c15d0efe8e31a
[ "MIT" ]
null
null
null
setup.py
denza/electrumx
2ab1dce09152ff917881c2b5e45c15d0efe8e31a
[ "MIT" ]
null
null
null
import setuptools version = '1.8.6' setuptools.setup( name='electrumX', version=version, scripts=['electrumx_server', 'electrumx_rpc'], python_requires='>=3.6', # via environment variables, in which case I've tested with 15.0.4 # "x11_hash" package (1.4) is required to sync DASH network. # ...
39.722222
73
0.645455
79524407262885df9a9939287a346d65a627c7a9
3,456
bzl
Python
test/generate_tests.bzl
raytracer/as-tree
991629712f43429874bbf11089d9efcff9c04c45
[ "BlueOak-1.0.0" ]
333
2020-05-10T15:44:48.000Z
2022-03-30T15:10:20.000Z
test/generate_tests.bzl
raytracer/as-tree
991629712f43429874bbf11089d9efcff9c04c45
[ "BlueOak-1.0.0" ]
19
2020-05-13T11:02:34.000Z
2021-11-19T08:22:02.000Z
test/generate_tests.bzl
raytracer/as-tree
991629712f43429874bbf11089d9efcff9c04c45
[ "BlueOak-1.0.0" ]
18
2020-05-13T10:57:09.000Z
2021-12-28T01:34:09.000Z
_update_tags = [ # Avoid being caught with `//...` "manual", # Forces the test to be run locally, without sandboxing "local", # Unconditionally run this rule, and don't run in the sandbox "external", ] def fixture_tests(input_files): tests = [] updates = [] for input_txt_file in inp...
27.870968
65
0.471065
79524441bb74895ed09d43e8732db5ef6aa5db26
2,678
py
Python
drf_encrypt_content/mixins.py
oguzhancelikarslan/drf-encrypt-content
ec9912dd0938d727374c7215bfc3c5040322e72c
[ "BSD-3-Clause" ]
8
2020-10-03T18:45:29.000Z
2022-02-17T10:21:36.000Z
drf_encrypt_content/mixins.py
oguzhancelikarslan/drf-encrypt-content
ec9912dd0938d727374c7215bfc3c5040322e72c
[ "BSD-3-Clause" ]
1
2021-04-20T08:02:42.000Z
2021-12-20T10:39:00.000Z
drf_encrypt_content/mixins.py
oguzhancelikarslan/drf-encrypt-content
ec9912dd0938d727374c7215bfc3c5040322e72c
[ "BSD-3-Clause" ]
1
2022-02-17T10:21:39.000Z
2022-02-17T10:21:39.000Z
from collections import OrderedDict from django.core.exceptions import ImproperlyConfigured from drf_encrypt_content.rest_encrypt_content import RestEncryptContent class RestEncryptContentMixin(RestEncryptContent): __ALL__ = '__all__' def to_representation(self, instance): representation = super(Re...
39.970149
117
0.59186
7952467e84ec1fb8c8bda205ccd35954409ff891
3,032
py
Python
setup.py
technige/pansi
8014f67f14372bb6d88ca522d40744fff575814a
[ "Apache-2.0" ]
null
null
null
setup.py
technige/pansi
8014f67f14372bb6d88ca522d40744fff575814a
[ "Apache-2.0" ]
null
null
null
setup.py
technige/pansi
8014f67f14372bb6d88ca522d40744fff575814a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- # Copyright 2020, Nigel Small # # 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 re...
30.938776
82
0.615435
795246857529c74f1c239c7c6dcedfa69df6398b
911
py
Python
BOJ/graph_boj/game_develop.py
mrbartrns/swacademy_structure
778f0546030385237c383d81ec37d5bd9ed1272d
[ "MIT" ]
null
null
null
BOJ/graph_boj/game_develop.py
mrbartrns/swacademy_structure
778f0546030385237c383d81ec37d5bd9ed1272d
[ "MIT" ]
null
null
null
BOJ/graph_boj/game_develop.py
mrbartrns/swacademy_structure
778f0546030385237c383d81ec37d5bd9ed1272d
[ "MIT" ]
null
null
null
# BOJ 1516 from collections import deque import sys sys.stdin = open("../input.txt", "r") si = sys.stdin.readline def topological_sort(indegree): que = deque() ret = [0] * (N + 1) for i in range(1, N + 1): if indegree[i] == 0: ret[i] = time[i] que.append(i) while que: ...
23.358974
59
0.507135
795247061340c63f7bb7c956d6bf7cf15a1b9162
3,084
py
Python
src/run_directory.py
zhutianpeng/ImgProcessPlatform_pose
748be1b98a44450671809e1d6040fd9aa0ff7998
[ "Apache-2.0" ]
4
2019-03-05T08:58:18.000Z
2019-09-16T08:30:31.000Z
src/run_directory.py
zhutianpeng/ImgProcessPlatform_pose
748be1b98a44450671809e1d6040fd9aa0ff7998
[ "Apache-2.0" ]
null
null
null
src/run_directory.py
zhutianpeng/ImgProcessPlatform_pose
748be1b98a44450671809e1d6040fd9aa0ff7998
[ "Apache-2.0" ]
null
null
null
import argparse import logging import time import glob import ast import os # import dill import redis from RedisQueue import RedisQueue import dealimg import common import cv2 import numpy as np from estimator import TfPoseEstimator from networks import get_graph_path, model_wh from lifting.prob_model import Prob3...
34.651685
118
0.646887
7952490068a9005138fea4fef6a6f9e7c5bf0836
6,430
py
Python
tests/mpd/test_tokenizer.py
rdbhost/mopidy
cb15ccef08b15c30ab6cbbac2419622d0804e7ac
[ "Apache-2.0" ]
null
null
null
tests/mpd/test_tokenizer.py
rdbhost/mopidy
cb15ccef08b15c30ab6cbbac2419622d0804e7ac
[ "Apache-2.0" ]
null
null
null
tests/mpd/test_tokenizer.py
rdbhost/mopidy
cb15ccef08b15c30ab6cbbac2419622d0804e7ac
[ "Apache-2.0" ]
null
null
null
import unittest from mopidy.mpd import exceptions, tokenize class TestTokenizer(unittest.TestCase): def assertTokenizeEquals(self, expected, line): # noqa: N802 self.assertEqual(expected, tokenize.split(line)) def assertTokenizeRaises(self, exception, message, line): # noqa: N802 with self...
43.445946
77
0.630638
795249480cc0f47f2a08c7ca9cdcc4b29850734b
11,295
py
Python
Mobility Algorithms/Queues at Known Locations/Machine_Learning/train_test_export_ML_model_offline.py
James-OHara/NCHRP-BSM-Traffic-Measures
d6842c9dc63de8c2d470482fbfd1ec91a9c2ae56
[ "Apache-2.0" ]
null
null
null
Mobility Algorithms/Queues at Known Locations/Machine_Learning/train_test_export_ML_model_offline.py
James-OHara/NCHRP-BSM-Traffic-Measures
d6842c9dc63de8c2d470482fbfd1ec91a9c2ae56
[ "Apache-2.0" ]
null
null
null
Mobility Algorithms/Queues at Known Locations/Machine_Learning/train_test_export_ML_model_offline.py
James-OHara/NCHRP-BSM-Traffic-Measures
d6842c9dc63de8c2d470482fbfd1ec91a9c2ae56
[ "Apache-2.0" ]
null
null
null
"""This python script trains supervised machine learning Random Forest models on the complete data provided, ouptputs performance metrics, and exports the trained Random Forest to a pickle file. Test with: python train_test_export_ML_model_offline.py sample_BSMs_X_file.csv sample_max_queues_Y_file.csv sample_vehicle_...
49.108696
237
0.723063
795249e8fde080574bbc776ca2d274f0a0a663dd
15,430
py
Python
desktop/libs/notebook/src/notebook/connectors/base.py
integrateai/hue
ca2ea6c5e3979b963b151931ac4a689f69131b54
[ "Apache-2.0" ]
null
null
null
desktop/libs/notebook/src/notebook/connectors/base.py
integrateai/hue
ca2ea6c5e3979b963b151931ac4a689f69131b54
[ "Apache-2.0" ]
null
null
null
desktop/libs/notebook/src/notebook/connectors/base.py
integrateai/hue
ca2ea6c5e3979b963b151931ac4a689f69131b54
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you ma...
32.690678
184
0.663383
79524a683cc4cfed3e8143de34ed0d5259d60a0a
21,312
py
Python
third_party/protobuf/src/gtest/test/run_tests_test.py
apkbox/nano-rpc
d9d253b104399b443fb377cac2856b8997b1dab6
[ "BSD-3-Clause" ]
null
null
null
third_party/protobuf/src/gtest/test/run_tests_test.py
apkbox/nano-rpc
d9d253b104399b443fb377cac2856b8997b1dab6
[ "BSD-3-Clause" ]
null
null
null
third_party/protobuf/src/gtest/test/run_tests_test.py
apkbox/nano-rpc
d9d253b104399b443fb377cac2856b8997b1dab6
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # # Copyright 2009 Google Inc. All Rights Reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of...
34.653659
80
0.637669
79524ad739458878d268280471fd6bc0f3019965
6,586
py
Python
S7/python_files/model.py
garima-mahato/EVA4
e8efe40a4de2d5da3a04314f52a02610ecde16f1
[ "MIT" ]
null
null
null
S7/python_files/model.py
garima-mahato/EVA4
e8efe40a4de2d5da3a04314f52a02610ecde16f1
[ "MIT" ]
null
null
null
S7/python_files/model.py
garima-mahato/EVA4
e8efe40a4de2d5da3a04314f52a02610ecde16f1
[ "MIT" ]
1
2020-05-02T17:15:22.000Z
2020-05-02T17:15:22.000Z
from __future__ import print_function import math import numpy import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torchvision import datasets, transforms from torch.optim.lr_scheduler import StepLR import matplotlib.pyplot as plt from torchsummary import summar...
42.766234
136
0.600668
79524b60de15e6362b16730d5d05073917209179
4,829
py
Python
p3_collab-compet/maddpg_agentlab.py
francelico/deep-reinforcement-learning
65ea99a4ecf527cb9d8a703313da4815f4688ff0
[ "MIT" ]
null
null
null
p3_collab-compet/maddpg_agentlab.py
francelico/deep-reinforcement-learning
65ea99a4ecf527cb9d8a703313da4815f4688ff0
[ "MIT" ]
6
2020-01-28T22:59:05.000Z
2022-02-10T01:12:12.000Z
p3_collab-compet/maddpg_agentlab.py
francelico/deep-reinforcement-learning
65ea99a4ecf527cb9d8a703313da4815f4688ff0
[ "MIT" ]
null
null
null
# main code that contains the neural network setup # policy + critic updates # see ddpg.py for other details in the network from ddpg import DDPGAgent import torch from utilities import soft_update, transpose_to_tensor, transpose_list #device = torch.device("cuda" if torch.cuda.is_available() else "cpu") device = 'cpu...
39.581967
122
0.625388
79524b941919fc9fe975167cb7a6682bf87cd63e
4,989
py
Python
test/vanilla/legacy/Expected/AcceptanceTests/BodyBinary/bodybinary/aio/operations/_upload_operations.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/vanilla/legacy/Expected/AcceptanceTests/BodyBinary/bodybinary/aio/operations/_upload_operations.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/vanilla/legacy/Expected/AcceptanceTests/BodyBinary/bodybinary/aio/operations/_upload_operations.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
1
2022-03-28T08:58:03.000Z
2022-03-28T08:58:03.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
39.595238
106
0.670876
79524c05c8c18ef0440cd7afdeb79eec47f39750
408
py
Python
GCL/losses/losses.py
lem0nle/PyGCL
340b0201a5edf4236fef4c96b958ff373ceb7f28
[ "Apache-2.0" ]
361
2021-07-09T15:15:23.000Z
2022-03-30T07:08:10.000Z
GCL/losses/losses.py
lem0nle/PyGCL
340b0201a5edf4236fef4c96b958ff373ceb7f28
[ "Apache-2.0" ]
25
2021-08-21T11:06:26.000Z
2022-03-29T02:51:56.000Z
GCL/losses/losses.py
lem0nle/PyGCL
340b0201a5edf4236fef4c96b958ff373ceb7f28
[ "Apache-2.0" ]
45
2021-08-07T02:59:45.000Z
2022-03-29T05:07:17.000Z
import torch from abc import ABC, abstractmethod class Loss(ABC): @abstractmethod def compute(self, anchor, sample, pos_mask, neg_mask, *args, **kwargs) -> torch.FloatTensor: pass def __call__(self, anchor, sample, pos_mask=None, neg_mask=None, *args, **kwargs) -> torch.FloatTensor: loss ...
31.384615
107
0.683824
79524caab16dd28e6b2536bf40a39304e7d920cf
516
py
Python
tests/test_python.py
jayvdb/dephell_pythons
17afb28bd89652718410998dcd13bfdde9dfd865
[ "MIT" ]
2
2019-03-20T14:39:55.000Z
2019-04-21T15:48:36.000Z
tests/test_python.py
jayvdb/dephell_pythons
17afb28bd89652718410998dcd13bfdde9dfd865
[ "MIT" ]
4
2019-07-24T13:51:09.000Z
2020-05-28T14:28:14.000Z
tests/test_python.py
jayvdb/dephell_pythons
17afb28bd89652718410998dcd13bfdde9dfd865
[ "MIT" ]
3
2019-12-19T01:38:56.000Z
2021-09-28T02:43:43.000Z
import sys from dephell_pythons import Pythons def test_lib_paths(): p = Pythons().current assert len(p.lib_paths) > 2 # appveyor makes some hacks for python path libs_found = {path for path in sys.path if 'Scripts' not in path and 'dephell' not in path} libs_real = {str(path) for path in p.lib_pa...
30.352941
112
0.699612
79524cdfda340a378ede662e359fa940dbd9655a
951
py
Python
setup.py
Arfaouim/moire-lattice-generator
c46065d27f64010d4bf4c8b0209c27369c316e1e
[ "MIT" ]
1
2021-06-24T13:59:00.000Z
2021-06-24T13:59:00.000Z
setup.py
Arfaouim/moire-lattice-generator
c46065d27f64010d4bf4c8b0209c27369c316e1e
[ "MIT" ]
null
null
null
setup.py
Arfaouim/moire-lattice-generator
c46065d27f64010d4bf4c8b0209c27369c316e1e
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() with open('requirements.txt') as f: requirements = f.read().splitlines() setuptools.setup( name="latticegen", version="0.0.1", author="T.A. de Jong", author_email="tobiasadejong@gmail.com", ...
28.818182
70
0.6551
79524d9ebddca959d8ecc93fa7911704399810b4
826
py
Python
com/jefferson/bd.py
jefferson-paixao/devops_ac03_testes
a069be042de162ea19e973a157280b16d1c60d12
[ "Apache-2.0" ]
null
null
null
com/jefferson/bd.py
jefferson-paixao/devops_ac03_testes
a069be042de162ea19e973a157280b16d1c60d12
[ "Apache-2.0" ]
null
null
null
com/jefferson/bd.py
jefferson-paixao/devops_ac03_testes
a069be042de162ea19e973a157280b16d1c60d12
[ "Apache-2.0" ]
null
null
null
class bancodedados(): def criando_tabela(self,coluna,campo,valor): import sqlite3 conn = sqlite3.connect(':memory:') c = conn.cursor() with open('criando_tabela.sql', 'r') as content_file: content = content_file.read() c.execute(content) wit...
28.482759
62
0.521792
79524df2c022ab3e2c9a52de1ec6d746cdfffadf
4,179
py
Python
model_src/colour/bw_network/backward_model.py
imbyjuli/blackboard-tensorflow-nrp
93fb4b5ba18e5e3c55526670160ee3ec21626e43
[ "Apache-2.0" ]
null
null
null
model_src/colour/bw_network/backward_model.py
imbyjuli/blackboard-tensorflow-nrp
93fb4b5ba18e5e3c55526670160ee3ec21626e43
[ "Apache-2.0" ]
null
null
null
model_src/colour/bw_network/backward_model.py
imbyjuli/blackboard-tensorflow-nrp
93fb4b5ba18e5e3c55526670160ee3ec21626e43
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function # Imports import numpy as np import tensorflow as tf import cv2 import csv from backward_weights import init_locally_backward_weights ,initiate_backward_weights from backward_layers import ait_backwards,pit_bac...
32.146154
108
0.581718
79524e14ef26f9e56c447ba4dd5e8b39e5a7bfac
873
py
Python
tests/test_jira_connection.py
Lee-Sutton/pyjournal
a91457ea327f7df3b865c3a8fce38dd580a4cb14
[ "MIT" ]
null
null
null
tests/test_jira_connection.py
Lee-Sutton/pyjournal
a91457ea327f7df3b865c3a8fce38dd580a4cb14
[ "MIT" ]
13
2019-03-30T01:52:51.000Z
2021-06-01T23:01:33.000Z
tests/test_jira_connection.py
Lee-Sutton/pyjournal
a91457ea327f7df3b865c3a8fce38dd580a4cb14
[ "MIT" ]
null
null
null
from collections import namedtuple from unittest.mock import patch from pyjournal.jira_connection import Jira @patch('pyjournal.jira_connection.JIRA') def test_jira(jira_api, fake): url = fake.url() email = fake.email() password = 'password' Jira(url, email, password) jira_api.assert_called_with...
24.942857
82
0.706758
79524ecc2e51c375b32965f9dbd6cf66a839077d
3,510
py
Python
gilp/tests/test_graphic.py
xbrq/gilp
7fb1d2425d905aa43a5bcde25713b40878bc30d1
[ "MIT" ]
18
2020-07-24T02:35:14.000Z
2022-01-28T18:51:46.000Z
gilp/tests/test_graphic.py
xbrq/gilp
7fb1d2425d905aa43a5bcde25713b40878bc30d1
[ "MIT" ]
3
2021-01-25T11:18:45.000Z
2021-09-04T23:21:28.000Z
gilp/tests/test_graphic.py
xbrq/gilp
7fb1d2425d905aa43a5bcde25713b40878bc30d1
[ "MIT" ]
3
2021-02-12T05:02:31.000Z
2021-09-04T22:29:58.000Z
import pytest import numpy as np import plotly.graph_objects as plt from gilp._graphic import (Figure, num_format, linear_string, equation_string, label) # The following functions are not tested since they create visual objects: # table, vector, scatter, line, equation, and polygon @pytes...
33.75
78
0.538462
79524fce4649054912206a3339e867a4b0d5ae8a
6,902
py
Python
tensorflow/python/data/experimental/kernel_tests/matching_files_dataset_test.py
AdaAlarm/tensorflow
e0db063159751276a92d88a4ad6d481b1199318c
[ "Apache-2.0" ]
10
2021-05-25T17:43:04.000Z
2022-03-08T10:46:09.000Z
tensorflow/python/data/experimental/kernel_tests/matching_files_dataset_test.py
CaptainGizzy21/tensorflow
3457a2b122e50b4d44ceaaed5a663d635e5c22df
[ "Apache-2.0" ]
1,056
2019-12-15T01:20:31.000Z
2022-02-10T02:06:28.000Z
tensorflow/python/data/experimental/kernel_tests/matching_files_dataset_test.py
CaptainGizzy21/tensorflow
3457a2b122e50b4d44ceaaed5a663d635e5c22df
[ "Apache-2.0" ]
6
2016-09-07T04:00:15.000Z
2022-01-12T01:47:38.000Z
# Copyright 2018 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...
35.035533
80
0.67111
79524fe027206757c991850457d43905974adb25
40,616
py
Python
elephant/spike_train_generation.py
healther/elephant
b4525dcabc1f4c2204479f580100151eaebd8603
[ "BSD-3-Clause" ]
null
null
null
elephant/spike_train_generation.py
healther/elephant
b4525dcabc1f4c2204479f580100151eaebd8603
[ "BSD-3-Clause" ]
null
null
null
elephant/spike_train_generation.py
healther/elephant
b4525dcabc1f4c2204479f580100151eaebd8603
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Functions to generate spike trains from analog signals, or to generate random spike trains. Some functions are based on the NeuroTools stgen module, which was mostly written by Eilif Muller, or from the NeuroTools signals.analogs module. :copyright: Copyright 2015 by the Elephant team, see...
38.172932
93
0.641274
7952505591894de61ba5269d2ed071b733a940c4
5,371
py
Python
mypy_django_plugin/main.py
Naddiseo/django-stubs
cff5ab463c911283a9c43a26a38cb7bd4deebbd5
[ "BSD-3-Clause" ]
null
null
null
mypy_django_plugin/main.py
Naddiseo/django-stubs
cff5ab463c911283a9c43a26a38cb7bd4deebbd5
[ "BSD-3-Clause" ]
null
null
null
mypy_django_plugin/main.py
Naddiseo/django-stubs
cff5ab463c911283a9c43a26a38cb7bd4deebbd5
[ "BSD-3-Clause" ]
null
null
null
import os from typing import Callable, Optional, cast, Dict from mypy.checker import TypeChecker from mypy.nodes import TypeInfo from mypy.options import Options from mypy.plugin import Plugin, FunctionContext, ClassDefContext, MethodContext from mypy.types import Type, Instance from mypy_django_plugin import helpers...
41.635659
128
0.689443
7952508f8557f8db3bef292a9c99cc827c410152
3,365
py
Python
AutenticacioJuego.py
Kelly901/Proyecto2
198c04c3324253e0ec7ea74d3edaefbd182e026f
[ "Apache-2.0" ]
null
null
null
AutenticacioJuego.py
Kelly901/Proyecto2
198c04c3324253e0ec7ea74d3edaefbd182e026f
[ "Apache-2.0" ]
null
null
null
AutenticacioJuego.py
Kelly901/Proyecto2
198c04c3324253e0ec7ea74d3edaefbd182e026f
[ "Apache-2.0" ]
null
null
null
from Juego import Juego import json class AutenticacionJuego: juego=[] juego2=[] def __init__(self): self.contador=0 def crearJuego(self,nombre,anio,precio,categoria1,categoria2,categoria3,foto,banner,descripcion): self.juego.append(Juego(self.contador,nombre,anio,precio,categoria1,categoria2,categoria3,foto...
23.865248
152
0.658247
795250dabe27df678f8cdb20201f3cb38ab3fef4
5,003
py
Python
tests/modules/file_list_handling/test_remote_file_list_creation.py
mhaberler/gribmagic
f7a8c3f0653e421ca57f4200ec2e0ba0ce4064e0
[ "MIT" ]
1
2021-11-14T06:25:44.000Z
2021-11-14T06:25:44.000Z
tests/modules/file_list_handling/test_remote_file_list_creation.py
mhaberler/gribmagic
f7a8c3f0653e421ca57f4200ec2e0ba0ce4064e0
[ "MIT" ]
null
null
null
tests/modules/file_list_handling/test_remote_file_list_creation.py
mhaberler/gribmagic
f7a8c3f0653e421ca57f4200ec2e0ba0ce4064e0
[ "MIT" ]
null
null
null
from datetime import datetime from pathlib import Path from unittest.mock import patch import pytest from src.enumerations.weather_models import WeatherModels from src.exceptions.wrong_weather_model_exception import \ WrongWeatherModelException from src.modules.config.constants import KEY_VARIABLES, KEY_GRIB_PACK...
43.885965
120
0.63262
7952513fcaecee979d79e7eb79fe616b5c6524a9
4,387
py
Python
ktapp/helpers/search.py
cu2/KT
8a0964b77dce150358637faa679d969a07e42f07
[ "CC-BY-3.0" ]
5
2015-04-13T09:44:31.000Z
2017-10-19T01:07:58.000Z
ktapp/helpers/search.py
cu2/KT
8a0964b77dce150358637faa679d969a07e42f07
[ "CC-BY-3.0" ]
49
2015-02-15T07:12:05.000Z
2022-03-11T23:11:43.000Z
ktapp/helpers/search.py
cu2/KT
8a0964b77dce150358637faa679d969a07e42f07
[ "CC-BY-3.0" ]
null
null
null
from django.conf import settings from django.db.models import Q from django.template.defaultfilters import slugify from ktapp import models from ktapp import utils as kt_utils def get_q_pieces(q): # limit length of query string and number of query pieces return q[:200].split()[:20] def find_film_by_link(q): ...
36.865546
146
0.644632
79525285bf6a67a9880597766525a93f9f200be5
8,821
py
Python
src/collision_manager.py
Tomaszu97/game-engine
dcf34e0741edecdb2902871ef7488ea873844e65
[ "MIT" ]
1
2022-02-09T07:41:30.000Z
2022-02-09T07:41:30.000Z
src/collision_manager.py
Tomaszu97/game-engine
dcf34e0741edecdb2902871ef7488ea873844e65
[ "MIT" ]
null
null
null
src/collision_manager.py
Tomaszu97/game-engine
dcf34e0741edecdb2902871ef7488ea873844e65
[ "MIT" ]
null
null
null
from pygame import Rect from .shared import * from .game_object import * class CollisionManager(): #TODO first load the whole level ,then handle this stuff, otherwise race condition sometimes happens def __init__(self): # collision handlers # elastic collision def BNC(obj...
53.460606
155
0.488833
7952528a99e67b752388a5669b6b0b5216d34e2c
3,827
py
Python
tests/components/sensor/test_rflink.py
bxnyintuc/home-assistant
70fff26383ed02cd8acf4c0f336e8d9ab9e0d598
[ "Apache-2.0" ]
null
null
null
tests/components/sensor/test_rflink.py
bxnyintuc/home-assistant
70fff26383ed02cd8acf4c0f336e8d9ab9e0d598
[ "Apache-2.0" ]
null
null
null
tests/components/sensor/test_rflink.py
bxnyintuc/home-assistant
70fff26383ed02cd8acf4c0f336e8d9ab9e0d598
[ "Apache-2.0" ]
null
null
null
"""Test for RFlink sensor components. Test setup of rflink sensor component/platform. Verify manual and automatic sensor creation. """ from homeassistant.components.rflink import ( CONF_RECONNECT_INTERVAL) from homeassistant.const import STATE_UNKNOWN from ..test_rflink import mock_rflink DOMAIN = 'sensor' CON...
28.139706
79
0.642279
795253857d177009dd688f2eadfc2447131b928d
3,323
py
Python
asposeslidescloud/models/i_shape_export_options.py
rizwanniazigroupdocs/aspose-slides-cloud-python
f692a7082387350f80f0b389c1914e33b800a76f
[ "MIT" ]
null
null
null
asposeslidescloud/models/i_shape_export_options.py
rizwanniazigroupdocs/aspose-slides-cloud-python
f692a7082387350f80f0b389c1914e33b800a76f
[ "MIT" ]
null
null
null
asposeslidescloud/models/i_shape_export_options.py
rizwanniazigroupdocs/aspose-slides-cloud-python
f692a7082387350f80f0b389c1914e33b800a76f
[ "MIT" ]
1
2020-12-25T16:28:49.000Z
2020-12-25T16:28:49.000Z
# coding: utf-8 # ----------------------------------------------------------------------------------- # <copyright company="Aspose"> # Copyright (c) 2018 Aspose.Slides for Cloud # </copyright> # <summary> # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associa...
33.908163
85
0.585615
795253cc36d0064e285be6f46b6d3bdeab66069c
2,603
py
Python
esperancanordeste/context_processors.py
klebercode/esperancanordeste
5ceb28f9b04619db21e83c2417e453b7c84647a6
[ "MIT" ]
null
null
null
esperancanordeste/context_processors.py
klebercode/esperancanordeste
5ceb28f9b04619db21e83c2417e453b7c84647a6
[ "MIT" ]
null
null
null
esperancanordeste/context_processors.py
klebercode/esperancanordeste
5ceb28f9b04619db21e83c2417e453b7c84647a6
[ "MIT" ]
null
null
null
# coding: utf-8 from django.shortcuts import get_object_or_404 from esperancanordeste.core.models import Enterprise, SocialLogo from esperancanordeste.catalog.models import Category from esperancanordeste.newsletter.models import Subscribe from esperancanordeste.newsletter.forms import SubscribeForm def enterprise_...
31.743902
77
0.632731
795255ce6c7514658d17d893e1e7fb1bfd0b7a60
5,872
py
Python
push_notifications/south_migrations/0002_auto__add_field_apnsdevice_date_created__add_field_gcmdevice_date_created.py
peterhinson/django-push-notifications
bf4e781aa4e67ea287027aa0d93c0faa0953c591
[ "MIT" ]
1
2015-03-04T04:30:19.000Z
2015-03-04T04:30:19.000Z
push_notifications/south_migrations/0002_auto__add_field_apnsdevice_date_created__add_field_gcmdevice_date_created.py
peterhinson/django-push-notifications
bf4e781aa4e67ea287027aa0d93c0faa0953c591
[ "MIT" ]
null
null
null
push_notifications/south_migrations/0002_auto__add_field_apnsdevice_date_created__add_field_gcmdevice_date_created.py
peterhinson/django-push-notifications
bf4e781aa4e67ea287027aa0d93c0faa0953c591
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models from django.conf import settings try: from django.contrib.auth import get_user_model except ImportError: # django < 1.5 from django.contrib.auth.models...
53.87156
152
0.647139
795255ce9558cdcebad46a90da7b6ff0c9173971
11,176
py
Python
lib/fast_rcnn/config.py
Turoad/py-RFCN-priv
f2837b0aa2b74941bf5a62304798b74547d486f4
[ "MIT" ]
1
2021-05-14T15:12:22.000Z
2021-05-14T15:12:22.000Z
lib/fast_rcnn/config.py
Turoad/py-RFCN-priv
f2837b0aa2b74941bf5a62304798b74547d486f4
[ "MIT" ]
null
null
null
lib/fast_rcnn/config.py
Turoad/py-RFCN-priv
f2837b0aa2b74941bf5a62304798b74547d486f4
[ "MIT" ]
null
null
null
# -------------------------------------------------------- # Fast R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick # -------------------------------------------------------- """Fast R-CNN config system. This file specifies default config option...
32.967552
118
0.698908
79525657ca25cd7a1a45c008198d2521372793ef
18,836
py
Python
data/level/level124.py
levelupai/match3-level-similarity
cc9b28b8741b41bea1273c8bc9b4d265d79a1dca
[ "Apache-2.0" ]
null
null
null
data/level/level124.py
levelupai/match3-level-similarity
cc9b28b8741b41bea1273c8bc9b4d265d79a1dca
[ "Apache-2.0" ]
6
2020-07-04T02:53:08.000Z
2022-03-11T23:53:14.000Z
data/level/level124.py
levelupai/match3-level-similarity
cc9b28b8741b41bea1273c8bc9b4d265d79a1dca
[ "Apache-2.0" ]
3
2019-12-31T11:42:59.000Z
2021-03-28T20:06:13.000Z
data = { 'level_index': 124, 'move_count': 32, 'board_info': { (0, 0): { 'base': (14, 1), 'cover': (64, 1), 'fall_point': (0, -1), 'next': (0, 1), 'prev': (0, -1) }, (0, 1): { 'base': (4, 1), 'cover':...
23.283066
34
0.196114
7952568943402b63936a3af28376de4aaa6410c4
700
py
Python
nbr/schemas/session.py
zhivykh/nbrunner
b5b77aec3b9c71d594ca116f2b5eefeb08dd0475
[ "MIT" ]
null
null
null
nbr/schemas/session.py
zhivykh/nbrunner
b5b77aec3b9c71d594ca116f2b5eefeb08dd0475
[ "MIT" ]
null
null
null
nbr/schemas/session.py
zhivykh/nbrunner
b5b77aec3b9c71d594ca116f2b5eefeb08dd0475
[ "MIT" ]
null
null
null
from typing import Optional from pydantic import BaseModel class Kernel(BaseModel): """Kernel model.""" id: str name: str last_activity: str execution_state: str connections: int class Notebook(BaseModel): """Notebook model.""" path: Optional[str] = None name: str class Sess...
14.893617
37
0.627143
79525894106470b417346e762a67939d672214ea
23,559
py
Python
uspy/features/lsr.py
jwarndt/uspy
ab5bb73f9243a1d7978c83ccb63e7189fc18cd8a
[ "MIT" ]
null
null
null
uspy/features/lsr.py
jwarndt/uspy
ab5bb73f9243a1d7978c83ccb63e7189fc18cd8a
[ "MIT" ]
null
null
null
uspy/features/lsr.py
jwarndt/uspy
ab5bb73f9243a1d7978c83ccb63e7189fc18cd8a
[ "MIT" ]
null
null
null
import math import os import cv2 from osgeo import gdal from osgeo import ogr from osgeo import osr import skimage from skimage.color import rgb2gray from skimage._shared._warnings import expected_warnings from scipy.stats import entropy import numpy as np from nmapy.utilities.io import * class LSR_da...
41.043554
248
0.585636
79525ab2de58efae22644e9364fd217576d7c5eb
8,670
py
Python
package_control/cmd.py
Shekharrajak/my_sublime_packages
4627b7faa47b0b03578c339fb5081be9d92867a6
[ "Unlicense", "MIT" ]
1
2018-06-23T08:07:39.000Z
2018-06-23T08:07:39.000Z
package_control/cmd.py
Shekharrajak/my_sublime_packages
4627b7faa47b0b03578c339fb5081be9d92867a6
[ "Unlicense", "MIT" ]
null
null
null
package_control/cmd.py
Shekharrajak/my_sublime_packages
4627b7faa47b0b03578c339fb5081be9d92867a6
[ "Unlicense", "MIT" ]
null
null
null
import os import subprocess import re import sys if os.name == 'nt': from ctypes import windll, create_unicode_buffer try: # Allow using this file on the website where the sublime # module is unavailable import sublime except (ImportError): sublime = None from .console_write import console_write ...
31.18705
108
0.51511
79525aec2be7db4c5a2bcc9affd18d707018f860
5,278
py
Python
Models/classTemplateTF/model.py
UTS-AnimalLogicAcademy/nuke-ML-server
3bec5e9efc1f3101e7506401eb57e7b8c955f84c
[ "Apache-2.0" ]
123
2019-05-14T19:50:42.000Z
2022-03-21T11:32:30.000Z
Models/classTemplateTF/model.py
UTS-AnimalLogicAcademy/nuke-ML-server
3bec5e9efc1f3101e7506401eb57e7b8c955f84c
[ "Apache-2.0" ]
30
2019-05-23T18:48:29.000Z
2021-06-26T01:17:13.000Z
Models/classTemplateTF/model.py
UTS-AnimalLogicAcademy/nuke-ML-server
3bec5e9efc1f3101e7506401eb57e7b8c955f84c
[ "Apache-2.0" ]
34
2019-05-14T17:43:26.000Z
2021-11-10T23:53:02.000Z
from __future__ import print_function import sys import os import time import scipy.misc import numpy as np import cv2 import tensorflow as tf tf.compat.v1.disable_eager_execution() # For TF 2.x compatibility from ..baseModel import BaseModel from ..common.util import print_, get_saved_model_list, linear_to_srgb i...
41.234375
102
0.636036
79525cf11f35655760597ff820c2b99354cf838c
4,921
py
Python
clusterman/cli/manage.py
akshaysharma096/clusterman
27f4bd217fe201a4c0b9bf460c5a9e155ee88041
[ "Apache-2.0" ]
281
2019-11-15T03:12:43.000Z
2022-01-07T06:36:58.000Z
clusterman/cli/manage.py
akshaysharma096/clusterman
27f4bd217fe201a4c0b9bf460c5a9e155ee88041
[ "Apache-2.0" ]
38
2019-11-18T20:15:47.000Z
2022-03-28T11:28:45.000Z
clusterman/cli/manage.py
akshaysharma096/clusterman
27f4bd217fe201a4c0b9bf460c5a9e155ee88041
[ "Apache-2.0" ]
21
2019-11-16T07:49:40.000Z
2022-02-09T18:13:48.000Z
# Copyright 2019 Yelp 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 writing, so...
39.368
118
0.731355
79525e47465a3120276741fcfebcf63773fdc65e
19,381
py
Python
research/object_detection/protos/box_predictor_pb2.py
nobillowseagit/models
cbac8468537edbe679ddadad365da47a5ac966d8
[ "Apache-2.0" ]
16
2018-12-17T15:30:16.000Z
2021-08-20T03:07:07.000Z
research/object_detection/protos/box_predictor_pb2.py
nobillowseagit/models
cbac8468537edbe679ddadad365da47a5ac966d8
[ "Apache-2.0" ]
null
null
null
research/object_detection/protos/box_predictor_pb2.py
nobillowseagit/models
cbac8468537edbe679ddadad365da47a5ac966d8
[ "Apache-2.0" ]
13
2019-05-13T11:01:43.000Z
2022-03-28T07:39:53.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: object_detection/protos/box_predictor.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protob...
51.545213
2,256
0.774573
79525eb8bf148e6484aed8e264c929a8f0ca9145
129
py
Python
unobase/commenting/signals.py
unomena/unobase
175e768afa1608f9f34d1e5a053763ad27db0f7e
[ "BSD-3-Clause" ]
null
null
null
unobase/commenting/signals.py
unomena/unobase
175e768afa1608f9f34d1e5a053763ad27db0f7e
[ "BSD-3-Clause" ]
null
null
null
unobase/commenting/signals.py
unomena/unobase
175e768afa1608f9f34d1e5a053763ad27db0f7e
[ "BSD-3-Clause" ]
null
null
null
__author__ = 'michael' from django.dispatch import Signal user_commented = Signal(providing_args=['user', 'request', 'comment'])
32.25
70
0.767442
79525fb76b6d260cd6a5ed91ddad96dfa1d316c5
4,087
py
Python
utils/metrics.py
leonardozcm/Point-Completion-Fig-AutoGenerator
109f5a414f51469fac82d0d23cde69efb9cf97e0
[ "Apache-2.0" ]
31
2021-08-22T15:01:58.000Z
2022-03-19T12:26:21.000Z
utils/metrics.py
leonardozcm/ASFM-Net-Pytorch
2584d2d098c760e559d3f632b72b9ad9881c59d5
[ "MIT" ]
10
2021-09-06T09:07:38.000Z
2022-02-12T08:12:54.000Z
utils/metrics.py
leonardozcm/SnowflakeNet
93e7151610765e7e2b41ace2d03c8750f0b6c80c
[ "MIT" ]
5
2021-08-30T00:53:17.000Z
2022-03-20T11:57:25.000Z
# -*- coding: utf-8 -*- # @Author: Haozhe Xie # @Date: 2019-08-08 14:31:30 # @Last Modified by: Haozhe Xie # @Last Modified time: 2020-05-25 09:13:32 # @Email: cshzxie@gmail.com import logging import open3d import torch from Chamfer3D.dist_chamfer_3D import chamfer_3DDist class Metrics(object): ITEMS = [{ ...
32.181102
93
0.590898
7952609e9f72568f6207d4ca79537c3b28a117d4
203
py
Python
classy_start/paths.py
mfonism/django-classy-start
70b73e1a836c2ae4c3bae6f53846b07a30a81ac0
[ "MIT" ]
1
2022-01-20T18:48:46.000Z
2022-01-20T18:48:46.000Z
classy_start/paths.py
mfonism/django-classy-start
70b73e1a836c2ae4c3bae6f53846b07a30a81ac0
[ "MIT" ]
8
2020-10-05T15:27:07.000Z
2021-02-16T17:17:54.000Z
classy_start/paths.py
mfonism/django-classy-start
70b73e1a836c2ae4c3bae6f53846b07a30a81ac0
[ "MIT" ]
5
2020-10-05T18:11:44.000Z
2022-01-21T18:33:13.000Z
import pathlib TEMPLATES_DIR = pathlib.Path(__file__).resolve(strict=True).parent / 'conf' APP_TEMPLATES_DIR = TEMPLATES_DIR / 'app_template' PROJECT_TEMPLATES_DIR = TEMPLATES_DIR / 'project_template'
29
75
0.807882
795260caef24ee8f231bab564ac699dadd75fb00
1,375
py
Python
cogdl/data/dataloader.py
Somefive/cogdl
1c5ab88aafc27529495d0d22f781055619e27cb2
[ "MIT" ]
1
2021-03-17T07:23:51.000Z
2021-03-17T07:23:51.000Z
cogdl/data/dataloader.py
yingyukexiansheng/cogdl
cf594cdb3a97f45333d08c937205d1a691828a33
[ "MIT" ]
null
null
null
cogdl/data/dataloader.py
yingyukexiansheng/cogdl
cf594cdb3a97f45333d08c937205d1a691828a33
[ "MIT" ]
null
null
null
import torch.utils.data from torch.utils.data.dataloader import default_collate from cogdl.data import Batch, Data class DataLoader(torch.utils.data.DataLoader): r"""Data loader which merges data objects from a :class:`cogdl.data.dataset` to a mini-batch. Args: dataset (Dataset): The dataset fro...
34.375
114
0.633455
795260edc9b41a9d3c0c76ccf0622e352e51fd4a
132
py
Python
myproj/api/routes/hello_v1/__init__.py
jbarguil/python-rest-server
d050d095555c9bad3e2e94b4e0c51075cc6ad3bc
[ "MIT" ]
null
null
null
myproj/api/routes/hello_v1/__init__.py
jbarguil/python-rest-server
d050d095555c9bad3e2e94b4e0c51075cc6ad3bc
[ "MIT" ]
null
null
null
myproj/api/routes/hello_v1/__init__.py
jbarguil/python-rest-server
d050d095555c9bad3e2e94b4e0c51075cc6ad3bc
[ "MIT" ]
null
null
null
"""v1 of the Hello API """ from .api import api, blueprint from .hello import namespace as ns_hello api.add_namespace(ns_hello)
13.2
40
0.742424
7952611de7e54899944a86432e54961eb181d179
1,055
py
Python
src/groups/migrations/0001_initial.py
OmarYehia/django-social_network
83fc6fd288fe23684409c43bf51c7fca01297481
[ "MIT" ]
null
null
null
src/groups/migrations/0001_initial.py
OmarYehia/django-social_network
83fc6fd288fe23684409c43bf51c7fca01297481
[ "MIT" ]
null
null
null
src/groups/migrations/0001_initial.py
OmarYehia/django-social_network
83fc6fd288fe23684409c43bf51c7fca01297481
[ "MIT" ]
1
2021-05-13T15:08:12.000Z
2021-05-13T15:08:12.000Z
# Generated by Django 3.2 on 2021-05-03 23:05 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('profiles', '0007_alter_relationship_managers'), ] operations = [ migrations.CreateModel( ...
36.37931
131
0.617062
7952619ae3844ac0b36c3566ebb9a2737af62eb2
7,587
py
Python
gsae/utils/load_splits.py
dbhaskar92/GSAE
3340dfc38f95b29ff04d890d93deedf8dcae9324
[ "Apache-2.0" ]
3
2021-05-18T21:28:54.000Z
2022-01-29T23:59:18.000Z
gsae/utils/load_splits.py
dbhaskar92/GSAE
3340dfc38f95b29ff04d890d93deedf8dcae9324
[ "Apache-2.0" ]
null
null
null
gsae/utils/load_splits.py
dbhaskar92/GSAE
3340dfc38f95b29ff04d890d93deedf8dcae9324
[ "Apache-2.0" ]
3
2021-07-07T17:48:28.000Z
2022-01-29T23:59:21.000Z
import numpy as np import torch import torch.utils.data from torch import nn, optim from torch.nn import functional as F from gsae.utils import eval_metrics # DEFINE THESE GLOBAL VARIABLES WITH YOUR OWN PATHS TO DATA ######################################## SEQ3_DATA_DIR = '' SEQ4_DATA_DIR = '' HIVTAR_DATA_DIR = '' ...
33.131004
99
0.626203
795261c4a0db7e1ccd4e62ff4c7a884211b985e0
3,567
py
Python
accelerator/test_methods/a_test_rechain.py
sebras/berkeman-accelerator
be9d1b25ffdb66411db465bdbf3932ab937c5ace
[ "Apache-2.0" ]
null
null
null
accelerator/test_methods/a_test_rechain.py
sebras/berkeman-accelerator
be9d1b25ffdb66411db465bdbf3932ab937c5ace
[ "Apache-2.0" ]
null
null
null
accelerator/test_methods/a_test_rechain.py
sebras/berkeman-accelerator
be9d1b25ffdb66411db465bdbf3932ab937c5ace
[ "Apache-2.0" ]
null
null
null
############################################################################ # # # Copyright (c) 2019 Carl Drougge # # # # Licensed u...
46.934211
99
0.583403
795263e8dea3e395ad6bb8df0351e520a0a4f702
219
py
Python
dsat/test/__init__.py
jul/dsat
f1d4263eb29530f931273f0dd2e74b93b8bacca3
[ "BSD-2-Clause" ]
2
2015-10-25T04:07:40.000Z
2017-06-22T20:18:10.000Z
dsat/test/__init__.py
jul/dsat
f1d4263eb29530f931273f0dd2e74b93b8bacca3
[ "BSD-2-Clause" ]
5
2015-01-20T14:44:28.000Z
2015-01-20T14:50:12.000Z
dsat/test/__init__.py
jul/dsat
f1d4263eb29530f931273f0dd2e74b93b8bacca3
[ "BSD-2-Clause" ]
null
null
null
from __future__ import absolute_import import unittest from dsat.test.test_state import TestFilterDict from dsat.test.test_st_send_parse import TestSendParse if __name__ == '__main__': unittest.main(verbosity=4)
21.9
54
0.821918
7952644ebf47766b7f6eae6f77084e12872117a4
3,702
py
Python
RAISoft/instruments/TTi.py
daveraees/EMA_Test_Lab
a3073c5ec205d6ee327a993b38e92698c12cb0a6
[ "MIT" ]
null
null
null
RAISoft/instruments/TTi.py
daveraees/EMA_Test_Lab
a3073c5ec205d6ee327a993b38e92698c12cb0a6
[ "MIT" ]
null
null
null
RAISoft/instruments/TTi.py
daveraees/EMA_Test_Lab
a3073c5ec205d6ee327a993b38e92698c12cb0a6
[ "MIT" ]
null
null
null
#from GPIBdevices import GPIBDevice #from SERIALdevices import SERIALDevice from DummyMeter import Bedna # import bus from numpy import array from time import sleep class PStsx3510P(Bedna): """ # test PowerSource from threading import Thread from time import sleep import random ...
30.097561
71
0.548622
7952648bd92bca9903e524922674905dc24b5a47
2,601
py
Python
cumulusci/tasks/salesforce/BaseRetrieveMetadata.py
justindonnaruma/CumulusCI
cc097c1f6f102a104f83ad9a9684af9d6bc0af31
[ "BSD-3-Clause" ]
null
null
null
cumulusci/tasks/salesforce/BaseRetrieveMetadata.py
justindonnaruma/CumulusCI
cc097c1f6f102a104f83ad9a9684af9d6bc0af31
[ "BSD-3-Clause" ]
2
2021-03-25T23:56:47.000Z
2021-03-31T19:52:05.000Z
cumulusci/tasks/salesforce/BaseRetrieveMetadata.py
justindonnaruma/CumulusCI
cc097c1f6f102a104f83ad9a9684af9d6bc0af31
[ "BSD-3-Clause" ]
null
null
null
from cumulusci.core.utils import process_bool_arg from cumulusci.tasks.salesforce import BaseSalesforceMetadataApiTask from cumulusci.utils import zip_inject_namespace from cumulusci.utils import zip_strip_namespace from cumulusci.utils import zip_tokenize_namespace class BaseRetrieveMetadata(BaseSalesforceMetadataAp...
49.075472
296
0.678201
795264c0eb2e7292c1dd16f454213f7cbda121ea
1,664
py
Python
origins/migrations/0081_auto_20220106_0124.py
dennereed/paleocore
d6da6c39cde96050ee4b9e7213ec1200530cbeee
[ "MIT" ]
null
null
null
origins/migrations/0081_auto_20220106_0124.py
dennereed/paleocore
d6da6c39cde96050ee4b9e7213ec1200530cbeee
[ "MIT" ]
null
null
null
origins/migrations/0081_auto_20220106_0124.py
dennereed/paleocore
d6da6c39cde96050ee4b9e7213ec1200530cbeee
[ "MIT" ]
null
null
null
# Generated by Django 3.2.5 on 2022-01-06 01:24 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('origins', '0080_auto_20211209_1423'), ] operations = [ migrations.AddField( model_name='nomen', name='generic_name',...
37.818182
186
0.602163
79526558c7b20033331dcc6b639869c681bc3b2e
16,733
py
Python
app/engine/skill_system.py
zerorock1312/lt-maker-master
82f733683f9dba763a5de8567c41fd7cbcfb0173
[ "MIT" ]
null
null
null
app/engine/skill_system.py
zerorock1312/lt-maker-master
82f733683f9dba763a5de8567c41fd7cbcfb0173
[ "MIT" ]
null
null
null
app/engine/skill_system.py
zerorock1312/lt-maker-master
82f733683f9dba763a5de8567c41fd7cbcfb0173
[ "MIT" ]
null
null
null
class Defaults(): @staticmethod def can_select(unit) -> bool: return unit.team == 'player' @staticmethod def check_ally(unit1, unit2) -> bool: if unit1 is unit2: return True elif unit1.team == 'player' or unit1.team == 'other': return unit2.team == 'playe...
37.350446
149
0.595769
795265591cb23f5862ab396366f61bce30369b4a
710
py
Python
NTA_detect_domain_flux.py
SYANiDE-/ViolentPython
1e56ef7f006272b170bba0a642860a892c016baa
[ "BSD-2-Clause" ]
2
2019-02-21T08:38:32.000Z
2019-02-22T03:15:02.000Z
NTA_detect_domain_flux.py
SYANiDE-/ViolentPython
1e56ef7f006272b170bba0a642860a892c016baa
[ "BSD-2-Clause" ]
null
null
null
NTA_detect_domain_flux.py
SYANiDE-/ViolentPython
1e56ef7f006272b170bba0a642860a892c016baa
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python2 from scapy.all import * import sys def QRTest(pk): if pk.haslayer(DNSRR) and pk.getlayer(UDP).sport == 53: rcode = pk.getlayer(DNS).rcode qname = pk.getlayer(DNSQR).qname if rcode == 3: print("[!] Name lookup failed: %s" % qname) return True ...
21.515152
60
0.504225
795267097d2f8a808fe305716e45f2dd983268d2
6,106
py
Python
canopy/openapi/models/new_study_data_source.py
CanopySimulations/canopy-python
9ec37e674e65d6fbef0402ac0c612c163d55631e
[ "MIT" ]
null
null
null
canopy/openapi/models/new_study_data_source.py
CanopySimulations/canopy-python
9ec37e674e65d6fbef0402ac0c612c163d55631e
[ "MIT" ]
1
2022-01-31T10:18:08.000Z
2022-01-31T10:18:08.000Z
canopy/openapi/models/new_study_data_source.py
CanopySimulations/canopy-python
9ec37e674e65d6fbef0402ac0c612c163d55631e
[ "MIT" ]
null
null
null
# coding: utf-8 """ Canopy.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 pprint import re # noqa: F401 import six from ca...
27.137778
143
0.585653
7952671517cfbf1dc7e9bc8daf3e7bd62e1d2b1d
4,919
py
Python
read_data_cifar100.py
ImLaoBJie/yolo3_sort_deepsort
ae34fab9a2a7ae122a38bc44d145f049e2808b52
[ "MIT" ]
13
2020-07-16T16:59:49.000Z
2022-02-06T14:12:32.000Z
read_data_cifar100.py
ronyclear/yolo3sort
6a6028d42f240aa0b79656f36f85f96b9a90ab00
[ "MIT" ]
2
2020-10-13T02:03:55.000Z
2021-04-24T14:59:04.000Z
read_data_cifar100.py
ronyclear/yolo3sort
6a6028d42f240aa0b79656f36f85f96b9a90ab00
[ "MIT" ]
4
2019-12-28T05:59:32.000Z
2020-04-12T14:13:35.000Z
import pickle import numpy as np import os import matplotlib.pyplot as plt PATH = 'cifar-100-python/' REMOVE = list(range(0, 100)) REMAIN = list(np.concatenate([[11, 35, 46, 98], [8, 13, 48, 58], [81, 85]])) for i in REMAIN: REMOVE.remove(i) def filter(image, label): # filter remove_index = [] for in...
29.106509
87
0.630616
7952675efdb3678e523cae7768d4d265a384a903
654
py
Python
taco_aug_scripts/get_zw_metal_avg_wxh.py
dbash/zerowaste
4047ae92a31cece9d848d38a57fd33cc85e7a8bb
[ "MIT" ]
11
2021-06-09T04:16:39.000Z
2022-03-02T07:33:25.000Z
taco_aug_scripts/get_zw_metal_avg_wxh.py
dbash/zerowaste
4047ae92a31cece9d848d38a57fd33cc85e7a8bb
[ "MIT" ]
2
2022-01-11T10:15:15.000Z
2022-03-24T23:16:13.000Z
create_zerowasteaug/get_zw_metal_avg_wxh.py
dbash/zerowaste
4047ae92a31cece9d848d38a57fd33cc85e7a8bb
[ "MIT" ]
3
2021-11-02T08:26:10.000Z
2022-02-24T06:09:58.000Z
import json import os import shutil import ntpath # f = open('/research/axns2/mabdelfa/TACO/data/coco_format/labels.json',) data = json.load(f) total_w = 0 total_h = 0 n = 0 for ann in data['annotations']: if ann['category_id'] == 3: total_w += ann['bbox'][2] total_h += ann['bbox'][3] n +=...
21.8
77
0.619266
795267c3f831a21d6f02048c881ca79c8ce5cbe4
2,090
py
Python
tests/providers/google/cloud/operators/test_video_intelligence_system.py
IGIT-CN/airflow
a6e5bcd59198afe5716813e84ebc4c59eade532c
[ "Apache-2.0" ]
3
2015-08-25T13:56:44.000Z
2020-03-21T10:26:58.000Z
tests/providers/google/cloud/operators/test_video_intelligence_system.py
IGIT-CN/airflow
a6e5bcd59198afe5716813e84ebc4c59eade532c
[ "Apache-2.0" ]
37
2020-07-21T07:50:02.000Z
2022-03-29T22:31:28.000Z
tests/providers/google/cloud/operators/test_video_intelligence_system.py
IGIT-CN/airflow
a6e5bcd59198afe5716813e84ebc4c59eade532c
[ "Apache-2.0" ]
4
2020-07-17T14:02:28.000Z
2022-02-23T04:29:58.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...
38.703704
103
0.745455
795268ec9e57b5fa316a76d81f92ba12d0f3ef4f
30,778
py
Python
bin/jbam_tools_v02.py
yasinkaymaz/ViralGenomeAssembly
03e75ee7358946823660a299e0718213dbbd161c
[ "MIT" ]
null
null
null
bin/jbam_tools_v02.py
yasinkaymaz/ViralGenomeAssembly
03e75ee7358946823660a299e0718213dbbd161c
[ "MIT" ]
null
null
null
bin/jbam_tools_v02.py
yasinkaymaz/ViralGenomeAssembly
03e75ee7358946823660a299e0718213dbbd161c
[ "MIT" ]
null
null
null
#!/usr/bin/python ###standard modules import argparse #parse initial arguements from command line import re import os import os.path import pickle import sys import subprocess import textwrap import glob import csv from collections import defaultdict, Counter #from collections import namedtuple import collections #k...
38.665829
255
0.662649
795268edd6c4ccd02cba51eeca0a18534bcc7c6f
3,387
py
Python
python_package/madflow/parameters.py
simonthor/madflow
cc4ee123d1d6cea7295a8f4be774eff87ea727cf
[ "Apache-2.0" ]
6
2021-06-22T06:49:48.000Z
2021-06-24T02:38:37.000Z
python_package/madflow/parameters.py
simonthor/madflow
cc4ee123d1d6cea7295a8f4be774eff87ea727cf
[ "Apache-2.0" ]
13
2021-06-14T13:27:03.000Z
2022-03-28T09:53:46.000Z
python_package/madflow/parameters.py
simonthor/madflow
cc4ee123d1d6cea7295a8f4be774eff87ea727cf
[ "Apache-2.0" ]
1
2022-02-15T19:27:36.000Z
2022-02-15T19:27:36.000Z
""" Utilities and functions to deal with the parameters of the model """ from .config import DTYPE, DTYPECOMPLEX, complex_me, float_me, run_eager import numpy as np import tensorflow as tf from itertools import chain GS_SIGNATURE = [tf.TensorSpec(shape=[None], dtype=DTYPECOMPLEX)] ALPHAS_SIGNATURE = [tf.TensorSpec...
34.212121
93
0.64659
79526936d823fb0451afd6fbf6985a5c34d9f1e0
2,640
py
Python
saleor/order/tests/test_order_search.py
Vultik/saleor
dc8548f7ad49cc26950dbfa0fd81f02617350240
[ "CC-BY-4.0" ]
null
null
null
saleor/order/tests/test_order_search.py
Vultik/saleor
dc8548f7ad49cc26950dbfa0fd81f02617350240
[ "CC-BY-4.0" ]
null
null
null
saleor/order/tests/test_order_search.py
Vultik/saleor
dc8548f7ad49cc26950dbfa0fd81f02617350240
[ "CC-BY-4.0" ]
null
null
null
from decimal import Decimal from ...discount import DiscountValueType from ..models import OrderLine from ..search import prepare_order_search_vector_value, update_order_search_vector def test_update_order_search_vector(order): # given order.search_vector = "" order.save(update_fields=["search_vector"]) ...
27.5
82
0.723106
7952697d914fdc80daa0d4bd33b92e0970954677
992
py
Python
tests/test_cband_h5.py
RocketRoss/setigen
fde4434094b5cc0d095c341d0b90e8f65c9e9215
[ "MIT" ]
21
2019-01-25T20:44:56.000Z
2022-03-16T23:30:26.000Z
tests/test_cband_h5.py
RocketRoss/setigen
fde4434094b5cc0d095c341d0b90e8f65c9e9215
[ "MIT" ]
7
2020-07-15T08:54:27.000Z
2021-09-24T03:57:30.000Z
tests/test_cband_h5.py
RocketRoss/setigen
fde4434094b5cc0d095c341d0b90e8f65c9e9215
[ "MIT" ]
10
2020-03-17T17:59:26.000Z
2022-02-01T08:33:11.000Z
import pytest import os import numpy as np # from astropy import units as u import setigen as stg @pytest.fixture() def frame_setup_from_h5(): my_path = os.path.abspath(os.path.dirname(__file__)) path = os.path.join(my_path, 'assets/sample.fil') frame = stg.Frame(waterfall=path) return frame def te...
28.342857
57
0.714718
79526a360c29da4c2b5320e1dc30a9a350d4bff9
5,249
py
Python
molar/backend/database/query.py
aspuru-guzik-group/molar
a3e0c337bd8a41c94b2c25831c95048cc7614f04
[ "BSD-3-Clause" ]
4
2021-07-20T18:49:44.000Z
2021-10-15T00:58:12.000Z
molar/backend/database/query.py
aspuru-guzik-group/molar
a3e0c337bd8a41c94b2c25831c95048cc7614f04
[ "BSD-3-Clause" ]
null
null
null
molar/backend/database/query.py
aspuru-guzik-group/molar
a3e0c337bd8a41c94b2c25831c95048cc7614f04
[ "BSD-3-Clause" ]
2
2022-01-07T17:57:42.000Z
2022-01-13T21:00:20.000Z
# std from typing import Any, Dict, List, Optional, Union # external import pkg_resources import sqlalchemy from sqlalchemy.orm import aliased, Session # molar from molar.backend import schemas from molar.backend.database.utils import sqlalchemy_to_dict INFORMATION_QUERY = open( pkg_resources.resource_filename("...
30.34104
87
0.594589
79526a522d81da774830d310028e606e8f0cd906
14,324
py
Python
metal/unit.py
cHemingway/test
7fcbd56ad6fe5368b927ea146363bf3d69cd7617
[ "Apache-2.0" ]
24
2020-07-24T18:33:58.000Z
2022-03-23T21:00:19.000Z
metal/unit.py
cHemingway/test
7fcbd56ad6fe5368b927ea146363bf3d69cd7617
[ "Apache-2.0" ]
4
2020-07-27T05:44:26.000Z
2021-09-02T16:05:47.000Z
metal/unit.py
cHemingway/test
7fcbd56ad6fe5368b927ea146363bf3d69cd7617
[ "Apache-2.0" ]
1
2020-07-25T15:13:20.000Z
2020-07-25T15:13:20.000Z
import json import sys class Control: enter = "enter" exit = "exit" cancel = "cancel" class Level: info = "info" warning = "expect" assertion = "assert" class Scope: def __init__(self, name): self.executed = 0 self.errors = 0 self.warnings = 0 self....
53.447761
247
0.590687
79526b32e1bed3a119aff208442acaf6a1cd2382
9,656
py
Python
excel_validator.py
Vinaychalluru/excel_validator
9e5f7d643694abccd807a5417030f0e67a4b1a40
[ "MIT" ]
null
null
null
excel_validator.py
Vinaychalluru/excel_validator
9e5f7d643694abccd807a5417030f0e67a4b1a40
[ "MIT" ]
null
null
null
excel_validator.py
Vinaychalluru/excel_validator
9e5f7d643694abccd807a5417030f0e67a4b1a40
[ "MIT" ]
1
2019-11-08T03:09:03.000Z
2019-11-08T03:09:03.000Z
#!/usr/bin/python -u # -*- coding: UTF-8 -*- import argparse import os.path import sys import time import yaml from openpyxl.reader.excel import load_workbook from openpyxl.styles import PatternFill from openpyxl.utils import column_index_from_string, get_column_letter from progress.bar import Bar from validator import...
33.880702
140
0.613815
79526c03d69ed64515442e861d8f14dbac929b0b
15,175
py
Python
google/ads/google_ads/v6/proto/resources/ad_group_ad_asset_view_pb2.py
arammaliachi/google-ads-python
a4fe89567bd43eb784410523a6306b5d1dd9ee67
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v6/proto/resources/ad_group_ad_asset_view_pb2.py
arammaliachi/google-ads-python
a4fe89567bd43eb784410523a6306b5d1dd9ee67
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v6/proto/resources/ad_group_ad_asset_view_pb2.py
arammaliachi/google-ads-python
a4fe89567bd43eb784410523a6306b5d1dd9ee67
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/ads/googleads/v6/resources/ad_group_ad_asset_view.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf imp...
69.610092
2,385
0.816738
79526d509f0b5aebf6b83e2b5a23e69b459f8168
6,913
py
Python
tests/testapp/models.py
behconsci/django-extensions
716832fb9fbe78c6970930b378e0c0962beccd2e
[ "MIT" ]
null
null
null
tests/testapp/models.py
behconsci/django-extensions
716832fb9fbe78c6970930b378e0c0962beccd2e
[ "MIT" ]
null
null
null
tests/testapp/models.py
behconsci/django-extensions
716832fb9fbe78c6970930b378e0c0962beccd2e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django.db import models from django_extensions.db.fields import ( AutoSlugField, RandomCharField, ShortUUIDField, ) from django_extensions.db.fields.json import JSONField from django_extensions.db.models import ActivatorModel, TimeStampedModel class Secret(models.Model): ...
25.047101
92
0.729929
79526d97613a8658719e35ea734ad3566bf14f36
9,484
py
Python
enigma/machine.py
spgill/enigma
b9cf3aff2e3c4ef442c578cbddc39a9b53dadb4e
[ "MIT" ]
1
2021-01-01T14:02:53.000Z
2021-01-01T14:02:53.000Z
enigma/machine.py
spgill/enigma
b9cf3aff2e3c4ef442c578cbddc39a9b53dadb4e
[ "MIT" ]
null
null
null
enigma/machine.py
spgill/enigma
b9cf3aff2e3c4ef442c578cbddc39a9b53dadb4e
[ "MIT" ]
null
null
null
# stdlib imports import array import enum import io import pickle import random # third party imports # local module imports import enigma.rotors as rotors class OUTPUT(enum.Enum): PENTAGRAPH = 1 CONTINUOUS = 2 class Machine: def __init__( self, plugboardStack=[], r...
29.453416
78
0.560418
79526dc8083815714585aa4e3c0857f0f19c6166
28,272
py
Python
neutron/services/segments/plugin.py
acdc-cloud/neutron
2510836886555179f9e9e39b1fdbf94296befc51
[ "Apache-2.0" ]
1
2018-10-19T01:48:37.000Z
2018-10-19T01:48:37.000Z
neutron/services/segments/plugin.py
acdc-cloud/neutron
2510836886555179f9e9e39b1fdbf94296befc51
[ "Apache-2.0" ]
null
null
null
neutron/services/segments/plugin.py
acdc-cloud/neutron
2510836886555179f9e9e39b1fdbf94296befc51
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Hewlett Packard Enterprise Development, LP # # 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/LICENS...
46.271686
79
0.624186
79526e3a2cbb8312099bad294c645cd36ef0b1cb
2,819
py
Python
build/lib/anipick/char.py
pengode-handal/anipick
f711620d9c12581f13f951204151b60eac4e1736
[ "MIT" ]
1
2022-03-02T07:59:15.000Z
2022-03-02T07:59:15.000Z
build/lib/anipick/char.py
pengode-handal/anipick
f711620d9c12581f13f951204151b60eac4e1736
[ "MIT" ]
null
null
null
build/lib/anipick/char.py
pengode-handal/anipick
f711620d9c12581f13f951204151b60eac4e1736
[ "MIT" ]
null
null
null
import requests from googlesearch import search from bs4 import BeautifulSoup from .error_handling import SearchNotWork, NoResultFound class Charapedia: def __init__(self, char: str): try: mal_char_id = search('site:myanimelist.net {} character info inurl:/character/'.format(char), num_results=0) ...
27.105769
114
0.60447
79526ed527e874489a5258e088040fb8d2ea6fc8
5,485
py
Python
tests/python/contrib/test_ethosu/test_replace_pooling.py
Xuyuanjia2014/tvm
892f8305e77ad506660b851f9ce4c81be0f95d9d
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
tests/python/contrib/test_ethosu/test_replace_pooling.py
Xuyuanjia2014/tvm
892f8305e77ad506660b851f9ce4c81be0f95d9d
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
tests/python/contrib/test_ethosu/test_replace_pooling.py
Xuyuanjia2014/tvm
892f8305e77ad506660b851f9ce4c81be0f95d9d
[ "Zlib", "Unlicense", "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 u...
33.858025
95
0.60948
79526f539b86da455bb0ee580c6958bcb341cb8a
1,105
py
Python
setup.py
srimani-programmer/password-checker
8a069e7806d53ee2d274e3d2362253215d49446e
[ "MIT" ]
null
null
null
setup.py
srimani-programmer/password-checker
8a069e7806d53ee2d274e3d2362253215d49446e
[ "MIT" ]
null
null
null
setup.py
srimani-programmer/password-checker
8a069e7806d53ee2d274e3d2362253215d49446e
[ "MIT" ]
null
null
null
from setuptools import setup def readme(): with open('README.md') as f: README = f.read() return README setup( name="password-checker", version="1.0.0", description="A Python package to check vulnerability and strength of a password.", long_description=readme(), long_description_c...
33.484848
86
0.644344
79526fb74a18df42297d4ef1cdf728ec17327d74
10,054
py
Python
SOURCES/ddstat/ddstat.py
dingqiangliu/vertica-minio
0defc75084743f872b659f1dd35a989a57939de3
[ "Apache-2.0" ]
null
null
null
SOURCES/ddstat/ddstat.py
dingqiangliu/vertica-minio
0defc75084743f872b659f1dd35a989a57939de3
[ "Apache-2.0" ]
null
null
null
SOURCES/ddstat/ddstat.py
dingqiangliu/vertica-minio
0defc75084743f872b659f1dd35a989a57939de3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python2 #encoding: utf-8 # # Copyright (c) 2017 - 2020 # Description: cluster monitoring # Author: DingQiang Liu import os, sys from optparse import OptionParser import logging import time from cStringIO import StringIO import re from getpass import getuser from cluster import getCluster import util.re...
30.466667
178
0.582455
7952719678e7657e79ff48d081e9d315ed60c5ff
757
py
Python
ckanext/scheming/tests/test_group_display.py
fjelltopp/ckanext-scheming
e7f863d5b94547d2362f93b0888a60b34ff6bae5
[ "MIT" ]
null
null
null
ckanext/scheming/tests/test_group_display.py
fjelltopp/ckanext-scheming
e7f863d5b94547d2362f93b0888a60b34ff6bae5
[ "MIT" ]
10
2020-03-17T19:21:12.000Z
2021-05-10T10:47:16.000Z
ckanext/scheming/tests/test_group_display.py
fjelltopp/ckanext-scheming
e7f863d5b94547d2362f93b0888a60b34ff6bae5
[ "MIT" ]
null
null
null
import pytest from ckantoolkit.tests.factories import Sysadmin, Organization, Group @pytest.mark.usefixtures("clean_db") class TestOrganizationDisplay(object): def test_organization_displays_custom_fields(self, app): user = Sysadmin() Organization(user=user, name="org-one", department_id="3008") ...
32.913043
82
0.712021
795271d979672aace5c79565e2cb6c238daa0259
5,788
py
Python
custom_components/sensor/folder.py
robmarkcole/HASS-folder-sensor
3d451415ef8e72270b37162b9d84eb746c068477
[ "MIT" ]
3
2018-02-02T10:40:17.000Z
2018-02-23T00:38:58.000Z
custom_components/sensor/folder.py
robmarkcole/HASS-folder-sensor
3d451415ef8e72270b37162b9d84eb746c068477
[ "MIT" ]
1
2018-02-01T09:17:16.000Z
2018-02-01T19:07:55.000Z
custom_components/sensor/folder.py
robmarkcole/HASS-folder-sensor
3d451415ef8e72270b37162b9d84eb746c068477
[ "MIT" ]
null
null
null
""" Sensor for monitoring the contents of a folder. For more details about this platform, refer to the documentation at https://home-assistant.io/components/sensor.folder/ """ import datetime from datetime import timedelta import glob import logging import os import voluptuous as vol from homeassistant.helpers.entit...
33.456647
78
0.646856
795272827e309bb50ffc78a45ab9a5f53ebaf313
1,798
py
Python
scss/tests/functions/compass/test_gradients.py
ojengwa/pyScss
fcd3b4604bc5cd34b0d36e845f89e5abaa7058ea
[ "MIT" ]
1
2016-02-13T15:46:39.000Z
2016-02-13T15:46:39.000Z
scss/tests/functions/compass/test_gradients.py
ojengwa/pyScss
fcd3b4604bc5cd34b0d36e845f89e5abaa7058ea
[ "MIT" ]
null
null
null
scss/tests/functions/compass/test_gradients.py
ojengwa/pyScss
fcd3b4604bc5cd34b0d36e845f89e5abaa7058ea
[ "MIT" ]
null
null
null
"""Tests for Compass gradient generation.""" from scss.expression import Calculator from scss.functions.compass.gradients import COMPASS_GRADIENTS_LIBRARY, linear_gradient from scss.rule import Namespace from scss.types import String, List, Number, Color import pytest @pytest.fixture def calc(): ns = Namespace(...
31
87
0.660178
795272d39e4a6dacdb4d5a3ddb7b34a1a3d778e7
4,270
py
Python
lib/ssds.py
iSmida/DetectionYolo
b7e1eb26ca874da797cee02cb3e1639cf3546e0c
[ "MIT" ]
3
2019-08-28T10:08:24.000Z
2020-08-10T08:58:42.000Z
lib/ssds.py
iSmida/DetectionYolo
b7e1eb26ca874da797cee02cb3e1639cf3546e0c
[ "MIT" ]
null
null
null
lib/ssds.py
iSmida/DetectionYolo
b7e1eb26ca874da797cee02cb3e1639cf3546e0c
[ "MIT" ]
1
2020-04-29T11:01:43.000Z
2020-04-29T11:01:43.000Z
from __future__ import print_function import numpy as np import torch from torch.autograd import Variable import torch.backends.cudnn as cudnn import timeit from lib.layers import * from lib.utils.timer import Timer from lib.utils.data_augment import preproc from lib.modeling.model_builder import create_model from li...
39.174312
116
0.605152
7952734c32f89b44a128eeda5c79b42a2ebda219
545
py
Python
manage.py
panda1994zhang/earthquake
1dead943782a73a535e04929a5302ef1db2b4d84
[ "MIT" ]
3
2018-09-19T10:57:27.000Z
2019-05-08T02:10:41.000Z
manage.py
aoii103/EarthquakeSpy
437228128dbe40bd7976013d4187c062109360bc
[ "MIT" ]
6
2020-08-05T11:08:13.000Z
2021-06-10T19:57:20.000Z
manage.py
panda1994zhang/earthquake
1dead943782a73a535e04929a5302ef1db2b4d84
[ "MIT" ]
1
2020-08-31T11:33:54.000Z
2020-08-31T11:33:54.000Z
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "EarthquakeSpy.settings") try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django...
34.0625
77
0.689908