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
796fa9b0ae0d4b7e2f14a93641e07cfd6bf35441
6,978
py
Python
src/_pytest/config/findpaths.py
iwanb/pytest
10cee92955f9fbd5c39ba2b02e7d8d206458c0eb
[ "MIT" ]
null
null
null
src/_pytest/config/findpaths.py
iwanb/pytest
10cee92955f9fbd5c39ba2b02e7d8d206458c0eb
[ "MIT" ]
null
null
null
src/_pytest/config/findpaths.py
iwanb/pytest
10cee92955f9fbd5c39ba2b02e7d8d206458c0eb
[ "MIT" ]
null
null
null
import os from typing import Dict from typing import Iterable from typing import List from typing import Optional from typing import Tuple from typing import Union import iniconfig import py from .exceptions import UsageError from _pytest.compat import TYPE_CHECKING from _pytest.outcomes import fail if TYPE_CHECKING...
34.89
116
0.60877
796faa04fae22122c167894818ed6e5a4c4e425a
789
py
Python
third_party/thop/my_test.py
zwxu064/RANP
92135583e0ced21fa5634823b289c5aea366de21
[ "MIT" ]
9
2020-11-17T08:44:55.000Z
2022-02-14T12:02:32.000Z
third_party/thop/my_test.py
zwxu064/RANP
92135583e0ced21fa5634823b289c5aea366de21
[ "MIT" ]
null
null
null
third_party/thop/my_test.py
zwxu064/RANP
92135583e0ced21fa5634823b289c5aea366de21
[ "MIT" ]
1
2021-03-17T02:34:12.000Z
2021-03-17T02:34:12.000Z
import sys import copy import torch import torch.nn as nn import random import numpy as np from thop.profile import profile from torchvision.models import resnet50 if __name__ == '__main__': seed = 2019 random.seed(seed) np.random.seed(seed) torch.manual_seed(seed) torch.cuda.manual_seed(seed) torch.cuda....
26.3
80
0.709759
796faa0d4efff7a6fa578fbac3c9577c4a082eea
3,725
py
Python
utils/fofb_hla_interface.py
NSLS-II/aphla
ceb5410dc836a8fb16321b6dc5e10d442be765c5
[ "BSD-3-Clause" ]
null
null
null
utils/fofb_hla_interface.py
NSLS-II/aphla
ceb5410dc836a8fb16321b6dc5e10d442be765c5
[ "BSD-3-Clause" ]
1
2020-02-17T18:56:18.000Z
2020-02-20T17:06:20.000Z
utils/fofb_hla_interface.py
NSLS-II/aphla
ceb5410dc836a8fb16321b6dc5e10d442be765c5
[ "BSD-3-Clause" ]
1
2021-03-08T16:07:11.000Z
2021-03-08T16:07:11.000Z
""" This is a demo of HLA interface to Fast Orbit FeedBack. to run it on box32, in command line: python fofb_hla_interface.py v2sr_orm.hdf5 """ # :author: Lingyun Yang <lyyang@bnl.gov> import sys import h5py import numpy as np from cothread.catools import caput if __name__ == "__main__": if len(sys.argv) != 2...
39.62766
79
0.587651
796faaaf84aeb682f047fcd5f1382e474b9b6ff0
6,814
py
Python
mobtypingmodules/mobmods.py
AlexOrlek/MOBtyping
a7d454669dbb7e2d337118e36d4979d7fe8e2fae
[ "MIT" ]
1
2018-03-26T09:00:42.000Z
2018-03-26T09:00:42.000Z
mobtypingmodules/mobmods.py
AlexOrlek/MOBtyping
a7d454669dbb7e2d337118e36d4979d7fe8e2fae
[ "MIT" ]
null
null
null
mobtypingmodules/mobmods.py
AlexOrlek/MOBtyping
a7d454669dbb7e2d337118e36d4979d7fe8e2fae
[ "MIT" ]
null
null
null
"""This module contains functions for general bioinformatic tasks such as handling fasta files, running BLAST searches, and using the built-in subprocess module flexibly and safely""" #HANDLING FASTA FILES def extractfromfasta(fastafilepath): """extract FASTA headers ('comments') and sequences from FASTA file"""...
36.438503
359
0.576167
796faabe1a696fbbcb23ecd022c24aac96135207
51
py
Python
shipment/__init__.py
96tm/warehouse-management-test
61b134a05d5a37d6bfbec061d7673eebaeeb9676
[ "MIT" ]
1
2022-02-19T03:21:39.000Z
2022-02-19T03:21:39.000Z
shipment/__init__.py
96tm/warehouse-management-test
61b134a05d5a37d6bfbec061d7673eebaeeb9676
[ "MIT" ]
22
2020-01-30T12:45:23.000Z
2022-03-12T00:42:00.000Z
shipment/__init__.py
96tm/warehouse-management-test
61b134a05d5a37d6bfbec061d7673eebaeeb9676
[ "MIT" ]
12
2020-01-23T06:48:18.000Z
2020-03-06T07:09:16.000Z
default_app_config = 'shipment.apps.ShipmentConfig'
51
51
0.862745
796fab0dbf579e68fe44a49fe82f0273a82a737d
992
py
Python
gym_jsbsim/__init__.py
anubhabdg7/gym-jsbsim
96cc92bd57dc8caf6318b945bd9604c5d6277f30
[ "MIT" ]
44
2019-02-24T21:27:42.000Z
2022-03-29T06:22:56.000Z
gym_jsbsim/__init__.py
anubhabdg7/gym-jsbsim
96cc92bd57dc8caf6318b945bd9604c5d6277f30
[ "MIT" ]
45
2019-01-18T19:48:15.000Z
2021-11-04T09:38:47.000Z
gym_jsbsim/__init__.py
anubhabdg7/gym-jsbsim
96cc92bd57dc8caf6318b945bd9604c5d6277f30
[ "MIT" ]
33
2019-01-09T08:31:48.000Z
2022-03-19T04:45:39.000Z
import os try: from .version import __version__, __jsbsim_version__ # noqa: F401 except ImportError: pass from jsbsim import __version__ as jsbsim_version from gym.envs.registration import registry, register, make, spec from gym_jsbsim.envs import TASKS from gym_jsbsim.catalogs import Catalog """ This scr...
24.8
127
0.731855
796fab29d8a4fb353feb44d0b217bf7e11315aba
20,108
py
Python
pysnmp_mibs/ATM-ACCOUNTING-INFORMATION-MIB.py
jackjack821/pysnmp-mibs
9835ea0bb2420715caf4ee9aaa07d59bb263acd6
[ "BSD-2-Clause" ]
6
2017-04-21T13:48:08.000Z
2022-01-06T19:42:52.000Z
pysnmp_mibs/ATM-ACCOUNTING-INFORMATION-MIB.py
jackjack821/pysnmp-mibs
9835ea0bb2420715caf4ee9aaa07d59bb263acd6
[ "BSD-2-Clause" ]
1
2020-05-05T16:42:25.000Z
2020-05-05T16:42:25.000Z
pysnmp_mibs/ATM-ACCOUNTING-INFORMATION-MIB.py
jackjack821/pysnmp-mibs
9835ea0bb2420715caf4ee9aaa07d59bb263acd6
[ "BSD-2-Clause" ]
6
2020-02-08T20:28:49.000Z
2021-09-14T13:36:46.000Z
# # PySNMP MIB module ATM-ACCOUNTING-INFORMATION-MIB (http://pysnmp.sf.net) # ASN.1 source http://mibs.snmplabs.com:80/asn1/ATM-ACCOUNTING-INFORMATION-MIB # Produced by pysmi-0.0.7 at Sun Feb 14 00:06:19 2016 # On host bldfarm platform Linux version 4.1.13-100.fc21.x86_64 by user goose # Using Python version 3.5.0 (def...
209.458333
2,311
0.753531
796fabae3019524f3b0b88356bf804b504cf86a9
18,435
py
Python
tensorflow/python/debug/lib/check_numerics_callback.py
Arushacked/tensorflow
9abd61ae0b2d239d3060cdd3d46b54a105159828
[ "Apache-2.0" ]
78
2020-08-04T12:36:25.000Z
2022-03-25T04:23:40.000Z
tensorflow/python/debug/lib/check_numerics_callback.py
Arushacked/tensorflow
9abd61ae0b2d239d3060cdd3d46b54a105159828
[ "Apache-2.0" ]
2
2021-08-25T16:14:36.000Z
2022-02-10T05:39:47.000Z
tensorflow/python/debug/lib/check_numerics_callback.py
Arushacked/tensorflow
9abd61ae0b2d239d3060cdd3d46b54a105159828
[ "Apache-2.0" ]
25
2020-08-31T12:21:19.000Z
2022-03-20T05:16:32.000Z
# Copyright 2019 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...
39.057203
81
0.683374
796fac4b225b88781fbf331cd8a72c2f7ee3e827
2,724
py
Python
src/core/runtime/clause/star.py
thomasmf/nomenine
ead48185b150fdc07a5019499511f696c5326d45
[ "MIT" ]
1
2015-10-21T14:31:10.000Z
2015-10-21T14:31:10.000Z
src/core/runtime/clause/star.py
thomasmf/nomenine
ead48185b150fdc07a5019499511f696c5326d45
[ "MIT" ]
null
null
null
src/core/runtime/clause/star.py
thomasmf/nomenine
ead48185b150fdc07a5019499511f696c5326d45
[ "MIT" ]
null
null
null
ROOT_SCOPE_METHOD( MD( 'Star', 'STAR_FACTORY_single()' ) ) TEST( """ Star @ ( Integer ) consume [ 11 22 33 a b c ] value next value == 22 """ ) TEST( """ Star @ ( Integer ) consume [] """ ) TEST( """ Pattern @ ( . [ ( Word ) ( Star @ ( Integer ) ) ] flatten () ) consume [ asdf 1 2 3 asdf 111 a b c ] next next valu...
34.05
183
0.591043
796fac83659a2c2dda4ff667c8954b99d5b50cf6
11,379
py
Python
chainer/links/rnn/lstm.py
mr4msm/chainer
7942e1cd425b29868ff872a5b9031f90a9bcda53
[ "MIT" ]
2
2018-10-09T15:37:43.000Z
2019-04-28T02:45:22.000Z
chainer/links/rnn/lstm.py
dr4mohamed/chainer
6fa28004889b260ae13484f17dc1ac68b25d52bb
[ "MIT" ]
1
2019-10-17T09:56:18.000Z
2019-10-17T09:56:18.000Z
chainer/links/rnn/lstm.py
dr4mohamed/chainer
6fa28004889b260ae13484f17dc1ac68b25d52bb
[ "MIT" ]
null
null
null
import six import chainer from chainer import initializers from chainer import link from chainer import utils from chainer import variable from chainer.functions.array import concat from chainer.functions.array import split_axis from chainer.functions.rnn import lstm from chainer.links.connection import linear class...
35.670846
79
0.588716
796fad526a12cfe01312242c8fcfcf755b194e67
3,793
py
Python
tasrif/test_scripts/test_pipeline_AggregateActivityDatesOperator.py
qcri/tasrif
327bc1eccb8f8e11d8869ba65a7c72ad038aa094
[ "BSD-3-Clause" ]
20
2021-12-06T10:41:54.000Z
2022-03-13T16:25:43.000Z
tasrif/test_scripts/test_pipeline_AggregateActivityDatesOperator.py
qcri/tasrif
327bc1eccb8f8e11d8869ba65a7c72ad038aa094
[ "BSD-3-Clause" ]
33
2021-12-06T08:27:18.000Z
2022-03-14T05:07:53.000Z
tasrif/test_scripts/test_pipeline_AggregateActivityDatesOperator.py
qcri/tasrif
327bc1eccb8f8e11d8869ba65a7c72ad038aa094
[ "BSD-3-Clause" ]
2
2022-02-07T08:06:48.000Z
2022-02-14T07:13:42.000Z
# --- # jupyter: # jupytext: # formats: ipynb,py:light # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.11.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- import numpy as np impor...
36.825243
76
0.471658
796fadd78127030c22b4d8ec52ab300cf149cdb4
19,702
py
Python
tests/src/Exceptions_Reports/Periodic_Exception/pat_scripts.py
sreenivas8084/cQube
3352a13f41679d707979e287d1880f0723b27510
[ "MIT" ]
null
null
null
tests/src/Exceptions_Reports/Periodic_Exception/pat_scripts.py
sreenivas8084/cQube
3352a13f41679d707979e287d1880f0723b27510
[ "MIT" ]
2
2022-02-01T00:55:12.000Z
2022-03-29T22:29:09.000Z
tests/src/Exceptions_Reports/Periodic_Exception/pat_scripts.py
SreenivasNimmagadda/cQube
3352a13f41679d707979e287d1880f0723b27510
[ "MIT" ]
null
null
null
import csv import os import re import time from selenium.webdriver.support.select import Select from Data.parameters import Data from filenames import file_extention from get_dir import pwd from reuse_func import GetData class pat_exception_report(): def __init__(self,driver): self.driver = driver ...
45.712297
220
0.570094
796faea433b98855c0662daad2b12385b1b4d22e
299
py
Python
_24_DICTIONARIES/_5_Word_Synonyms.py
YordanPetrovDS/Python_Fundamentals
81163054cd3ac780697eaa43f099cc455f253a0c
[ "MIT" ]
null
null
null
_24_DICTIONARIES/_5_Word_Synonyms.py
YordanPetrovDS/Python_Fundamentals
81163054cd3ac780697eaa43f099cc455f253a0c
[ "MIT" ]
null
null
null
_24_DICTIONARIES/_5_Word_Synonyms.py
YordanPetrovDS/Python_Fundamentals
81163054cd3ac780697eaa43f099cc455f253a0c
[ "MIT" ]
null
null
null
from _collections import defaultdict words_with_synonyms = defaultdict(list) n = int(input()) for _ in range(n): word = input() synonym = input() words_with_synonyms[word].append(synonym) for word, synonyms in words_with_synonyms.items(): print(f'{word} - {", ".join(synonyms)}')
23
50
0.695652
796faecdb6a42a23b17907638ab29e4e9058037a
5,809
py
Python
tests/test_filters.py
buildfail/frontera
84f9e1034d2868447db88e865596c0fbb32e70f6
[ "BSD-3-Clause" ]
1,267
2015-04-15T04:47:12.000Z
2022-03-29T07:55:15.000Z
tests/test_filters.py
buildfail/frontera
84f9e1034d2868447db88e865596c0fbb32e70f6
[ "BSD-3-Clause" ]
316
2015-04-14T21:28:26.000Z
2021-05-31T05:31:15.000Z
tests/test_filters.py
buildfail/frontera
84f9e1034d2868447db88e865596c0fbb32e70f6
[ "BSD-3-Clause" ]
250
2015-04-20T07:15:10.000Z
2022-03-28T15:17:15.000Z
import unittest from frontera.logger.filters import PLAINVALUES, INCLUDEFIELDS, EXCLUDEFIELDS from tests.utils import LoggingCaptureMixin, SetupDefaultLoggingMixin class BaseTestFilters(SetupDefaultLoggingMixin, LoggingCaptureMixin, unittest.TestCase): def tearDown(self): super(BaseTestFilters, self).set...
47.227642
89
0.686349
796faff04705a5bc9def504730ee006c1b7e6536
424
py
Python
cli/__init__.py
ralphdc/blog
fe3ebe3aea4da38a3cf592c90b0dd9914e47f8de
[ "Apache-2.0" ]
null
null
null
cli/__init__.py
ralphdc/blog
fe3ebe3aea4da38a3cf592c90b0dd9914e47f8de
[ "Apache-2.0" ]
null
null
null
cli/__init__.py
ralphdc/blog
fe3ebe3aea4da38a3cf592c90b0dd9914e47f8de
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 from .import_illegal_items import import_illegal_items class BgCommand(): bg_dict = { 'illegal': import_illegal_items } @classmethod def get_unit(cls, *args, **kwargs): action = args[0] or None if action in cls.bg_dict: return cls.bg_dict.ge...
24.941176
70
0.620283
796fb06901ac603e0893fd0191041bffb764866c
2,119
py
Python
archive/nexus-api-v2/Database/User/Schemas/Base.py
cloud-hybrid/delta
402b00ed5aaa32ccef628361e9635879b7ace44f
[ "BSD-3-Clause" ]
null
null
null
archive/nexus-api-v2/Database/User/Schemas/Base.py
cloud-hybrid/delta
402b00ed5aaa32ccef628361e9635879b7ace44f
[ "BSD-3-Clause" ]
null
null
null
archive/nexus-api-v2/Database/User/Schemas/Base.py
cloud-hybrid/delta
402b00ed5aaa32ccef628361e9635879b7ace44f
[ "BSD-3-Clause" ]
1
2022-01-03T05:33:15.000Z
2022-01-03T05:33:15.000Z
# #!/usr/bin/env python3 # # # -*- Coding: UTF-8 -*- # # # -*- System: Linux -*- # # # -*- Usage: *.py -*- # # # # Owner: Jacob B. Sanders # # Source: code.cloud-technology.io # # License: BSD 2-Clause License # # """ # ... # """ # # import dataclasses # # # import ujson # import json # # from . import * # # __...
24.079545
82
0.507787
796fb0d04282b7508cb0a50058c138d5c1722bb0
1,146
py
Python
tbutton_maker/management/commands/tbutton_update_stats.py
codefisher/tbutton_web
357bddc26b42c8511e7b5ce087bb0ac115f97e4c
[ "MIT" ]
null
null
null
tbutton_maker/management/commands/tbutton_update_stats.py
codefisher/tbutton_web
357bddc26b42c8511e7b5ce087bb0ac115f97e4c
[ "MIT" ]
null
null
null
tbutton_maker/management/commands/tbutton_update_stats.py
codefisher/tbutton_web
357bddc26b42c8511e7b5ce087bb0ac115f97e4c
[ "MIT" ]
null
null
null
import datetime from collections import Counter from operator import itemgetter from django.http import QueryDict from django.core.management.base import BaseCommand from tbutton_web.tbutton_maker.models import UpdateSession from tbutton_web.tbutton_maker.views import locale_str_getter class Command(BaseCommand): ...
39.517241
115
0.677138
796fb25d82125b85ef851bdbecc658db95358476
10,154
py
Python
scripts/poorscrum_burndown.py
r09491/poorscrum
cdbbc0db03fde842f546093f46e70d03a105bbbd
[ "MIT" ]
null
null
null
scripts/poorscrum_burndown.py
r09491/poorscrum
cdbbc0db03fde842f546093f46e70d03a105bbbd
[ "MIT" ]
7
2021-03-18T22:37:46.000Z
2022-03-11T23:41:39.000Z
scripts/poorscrum_burndown.py
r09491/poorscrum
cdbbc0db03fde842f546093f46e70d03a105bbbd
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = "sepp.heid@t-online.de" __doc__ = """ """ import argparse import os import sys from pptx import Presentation from pptx.exc import PackageNotFoundError from pptx.util import Inches from poorscrum import SPRINT_FILE, BURNDOWN_SAVE_NAME, read_fields, __version...
33.074919
109
0.614438
796fb368f4fa0de1dd9de95f39b6919cf5464be9
10,540
py
Python
Scripts/simulation/situations/complex/single_sim_leave_situation.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
Scripts/simulation/situations/complex/single_sim_leave_situation.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
Scripts/simulation/situations/complex/single_sim_leave_situation.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
# uncompyle6 version 3.7.4 # Python bytecode 3.7 (3394) # Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)] # Embedded file name: T:\InGame\Gameplay\Scripts\Server\situations\complex\single_sim_leave_situation.py # Compiled at: 2016-10-21 01:42:24 # Size of source...
57.595628
465
0.635009
796fb396b66060574c6748026ae3d2529ec2359e
2,256
py
Python
src/greenbudget/app/fringe/models.py
nickmflorin/django-proper-architecture-testing
da7c4019697e85f921695144375d2f548f1e98ad
[ "MIT" ]
null
null
null
src/greenbudget/app/fringe/models.py
nickmflorin/django-proper-architecture-testing
da7c4019697e85f921695144375d2f548f1e98ad
[ "MIT" ]
null
null
null
src/greenbudget/app/fringe/models.py
nickmflorin/django-proper-architecture-testing
da7c4019697e85f921695144375d2f548f1e98ad
[ "MIT" ]
null
null
null
from model_utils import Choices from django.db import models from .managers import FringeManager class Fringe(models.Model): name = models.CharField(max_length=128) description = models.CharField(null=True, max_length=128) cutoff = models.FloatField(null=True) rate = models.FloatField(null=True) ...
30.08
80
0.625887
796fb3b1d443ec6b9556ee1e163c5e1668a897fd
2,149
py
Python
tests/test_docstyle.py
michaelgale/pdfdoc-py
21d23fa7aa8da02ccaa6777ff10ff82af6d5c849
[ "MIT" ]
1
2021-07-15T23:31:01.000Z
2021-07-15T23:31:01.000Z
tests/test_docstyle.py
michaelgale/pdfdoc-py
21d23fa7aa8da02ccaa6777ff10ff82af6d5c849
[ "MIT" ]
null
null
null
tests/test_docstyle.py
michaelgale/pdfdoc-py
21d23fa7aa8da02ccaa6777ff10ff82af6d5c849
[ "MIT" ]
1
2021-01-20T11:36:26.000Z
2021-01-20T11:36:26.000Z
# Sample Test passing with nose and pytest import os import sys import pytest from pdfdoc import * _test_dict = {"left-margin": 2, "right-margin": 3, "horz-align": "left"} def test_docstyle_attr(): s1 = DocStyle() a1 = s1.get_attr("nonexistant") assert a1 is None a1 = s1.get_attr("nonexistant", 7) ...
30.267606
72
0.65007
796fb3baf74297036b3ffd9729e26c8a68744d2b
250
py
Python
web scraping/imdb/imdb/items.py
ihaseebkhan/web-scraping-and-data-analysis
26fca9aa644e79cc58bbb02ac2be4679cee60057
[ "MIT" ]
null
null
null
web scraping/imdb/imdb/items.py
ihaseebkhan/web-scraping-and-data-analysis
26fca9aa644e79cc58bbb02ac2be4679cee60057
[ "MIT" ]
2
2021-03-31T19:57:44.000Z
2021-12-13T20:42:10.000Z
web scraping/imdb/imdb/items.py
ihaseebkhan/web-scraping-and-data-analysis
26fca9aa644e79cc58bbb02ac2be4679cee60057
[ "MIT" ]
null
null
null
#items.py file import scrapy class ImdbItem(scrapy.Item): title = scrapy.Field() total_number_of_ratings = scrapy.Field() rating_score = scrapy.Field() genre = scrapy.Field() budget = scrapy.Field() gross_USA = scrapy.Field()
25
44
0.688
796fb423472dbd521aa0d08ba375d474966c0fd1
2,977
py
Python
automates/model_assembly/code_types.py
rsulli55/automates
1647a8eef85c4f03086a10fa72db3b547f1a0455
[ "Apache-2.0" ]
17
2018-12-19T16:32:38.000Z
2021-10-05T07:58:15.000Z
automates/model_assembly/code_types.py
rsulli55/automates
1647a8eef85c4f03086a10fa72db3b547f1a0455
[ "Apache-2.0" ]
183
2018-12-20T17:03:01.000Z
2022-02-23T22:21:42.000Z
automates/model_assembly/code_types.py
rsulli55/automates
1647a8eef85c4f03086a10fa72db3b547f1a0455
[ "Apache-2.0" ]
5
2019-01-04T22:37:49.000Z
2022-01-19T17:34:16.000Z
from enum import Enum, auto, unique import networkx as nx @unique class CodeType(Enum): ACCESSOR = auto() CALCULATION = auto() CONVERSION = auto() FILEIO = auto() HELPER = auto() LOGGING = auto() MODEL = auto() PIPELINE = auto() UNKNOWN = auto() def build_code_type_decision_tree...
28.902913
70
0.576083
796fb4788a3cceba8c44ae3367e95be67b1c5600
2,602
py
Python
benchmarks/benchmark.py
timgates42/pyahocorasick
3eab1ed66cea1dd30a48eff03927326a166502e5
[ "BSD-3-Clause" ]
707
2015-03-26T02:43:06.000Z
2022-03-28T07:54:06.000Z
benchmarks/benchmark.py
timgates42/pyahocorasick
3eab1ed66cea1dd30a48eff03927326a166502e5
[ "BSD-3-Clause" ]
140
2015-04-18T04:47:19.000Z
2022-03-09T11:24:50.000Z
benchmarks/benchmark.py
timgates42/pyahocorasick
3eab1ed66cea1dd30a48eff03927326a166502e5
[ "BSD-3-Clause" ]
112
2015-06-17T03:51:32.000Z
2022-03-09T01:58:58.000Z
from time import clock from random import choice, randint, seed from sys import stdout import ahocorasick def write(str): stdout.write(str) stdout.flush() def writeln(str): stdout.write(str) stdout.write('\n') class ElapsedTime: def __init__(self, msg): self.msg = msg def __enter...
22.050847
84
0.571483
796fb4cfabe7ff7ada67e28bc29a19b48f5ec2fe
8,227
py
Python
Rasterio_osgeo_shapely_PIL_pyproj_numpy/source/rasterio/plot.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
1
2019-06-27T12:09:44.000Z
2019-06-27T12:09:44.000Z
Rasterio_osgeo_shapely_PIL_pyproj_numpy/source/rasterio/plot.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
null
null
null
Rasterio_osgeo_shapely_PIL_pyproj_numpy/source/rasterio/plot.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
null
null
null
"""Implementations of various common operations. Including `show()` for displaying an array or with matplotlib. Most can handle a numpy array or `rasterio.Band()`. Primarily supports `$ rio insp`. """ from __future__ import absolute_import import logging import warnings import numpy as np import rasterio from rast...
32.011673
93
0.619181
796fb553dfb3feece694d718f64ff27b8a5b8e56
5,367
py
Python
salt/states/gem.py
ryan-lane/salt
69527e4e8a95edfdf402ecc1ac48930de1b65440
[ "Apache-2.0" ]
1
2018-02-03T17:30:56.000Z
2018-02-03T17:30:56.000Z
salt/states/gem.py
jvasallo/salt
eeea7b8b0e183c34e6c54b8f3bb4d36960a25ba4
[ "Apache-2.0" ]
null
null
null
salt/states/gem.py
jvasallo/salt
eeea7b8b0e183c34e6c54b8f3bb4d36960a25ba4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Installation of Ruby modules packaged as gems ============================================= A state module to manage rubygems. Gems can be set up to be installed or removed. This module will use RVM if it is installed. In that case, you can specify what ruby version and gemset to target. ....
29.489011
79
0.555431
796fb5bc6ef79002490961eaab3caf64539443a8
51
py
Python
autoscaler/__init__.py
bsafwen/k8sautoscaler
1a5e7cd5f3995a46bef01ed156d5e5e3baaa3daf
[ "Apache-2.0" ]
null
null
null
autoscaler/__init__.py
bsafwen/k8sautoscaler
1a5e7cd5f3995a46bef01ed156d5e5e3baaa3daf
[ "Apache-2.0" ]
null
null
null
autoscaler/__init__.py
bsafwen/k8sautoscaler
1a5e7cd5f3995a46bef01ed156d5e5e3baaa3daf
[ "Apache-2.0" ]
null
null
null
''' Created on May 26, 2017 @author: bsafwene '''
8.5
23
0.627451
796fb6bbcd5590efda70b6ea025e2e70a0da32e4
1,320
py
Python
xtract_sdk/downloaders/tests/test_families.py
xtracthub/xtract-sdk
fe88cd440591110d60e74c101a0b49d2385ac0a4
[ "MIT" ]
4
2020-08-06T19:11:29.000Z
2021-12-01T20:08:02.000Z
xtract_sdk/downloaders/tests/test_families.py
xtracthub/xtract-sdk
fe88cd440591110d60e74c101a0b49d2385ac0a4
[ "MIT" ]
10
2020-08-06T15:58:28.000Z
2022-01-12T19:06:36.000Z
xtract_sdk/downloaders/tests/test_families.py
xtracthub/xtract-sdk
fe88cd440591110d60e74c101a0b49d2385ac0a4
[ "MIT" ]
null
null
null
from xtract_sdk.packagers.family import Family # GLOBUS HTTPS FAMILIES base_url = "https://data.materialsdatafacility.org" family_1 = Family() family_1.add_group(files=[ {'path': '/thurston_selfassembled_peptide_spectra_v1.1/DFT/MoleculeConfigs/di_30_-50.xyz/INCAR'}, {'path': '/thurston_selfassembled_peptide_...
31.428571
108
0.747727
796fb84390c17ce043673d80b363a5a2b1f38d0a
2,146
py
Python
zero/logger.py
hipacloud/zero
3e957c7a3730dad2a28e24e08d91399a99572e09
[ "MIT" ]
304
2021-05-29T08:34:31.000Z
2022-03-30T21:23:58.000Z
zero/logger.py
webclinic017/zero
5219075285227a1a25086c17fdb67a09f1ddf6df
[ "MIT" ]
10
2021-07-02T07:36:48.000Z
2022-03-31T05:01:37.000Z
zero/logger.py
webclinic017/zero
5219075285227a1a25086c17fdb67a09f1ddf6df
[ "MIT" ]
19
2021-06-27T14:56:08.000Z
2022-01-30T17:56:27.000Z
import logging import os import sys import zmq.asyncio class _AsyncLogger: # pragma: no cover """ *We don't have any support for async logger now.* The idea is to have a push pull based logger to reduce io time in main process. Logger will serve the methods like info, warn, error, exception and pus...
33.015385
121
0.625349
796fb84dc186ba4a5daad40b947eb9330e43aa21
3,239
py
Python
eval-bike-perf.py
ingako/AOTrAdaBoost
6e71e9ff7d0309c01a153ea928f9a46d3a67b093
[ "Apache-2.0" ]
1
2021-12-07T19:25:42.000Z
2021-12-07T19:25:42.000Z
eval-bike-perf.py
ingako/AOTrAdaBoost
6e71e9ff7d0309c01a153ea928f9a46d3a67b093
[ "Apache-2.0" ]
null
null
null
eval-bike-perf.py
ingako/AOTrAdaBoost
6e71e9ff7d0309c01a153ea928f9a46d3a67b093
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import os import sys import math import pandas as pd import numpy as np from dataclasses import dataclass from pprint import PrettyPrinter from scipy.stats import friedmanchisquare generator = "bike-bk/bike-weekday-weekend" benchmark_list = ["disable_transfer", "no_boost", ...
31.446602
82
0.600803
796fb8dc2c7a83dd866154765669ea2248c812c1
490
py
Python
cgcs-patch/cgcs-patch/cgcs_patch/authapi/config.py
MarioCarrilloA/x.stx-update
2fc8ef2f21d6ff952ba48bbc67d9b57c1d57aa7e
[ "Apache-2.0" ]
1
2020-02-07T19:00:05.000Z
2020-02-07T19:00:05.000Z
cgcs-patch/cgcs-patch/cgcs_patch/authapi/config.py
starlingx/update
451378f1ad381f65e65f5da357bc5dbcc7c0c3a4
[ "Apache-2.0" ]
null
null
null
cgcs-patch/cgcs-patch/cgcs_patch/authapi/config.py
starlingx/update
451378f1ad381f65e65f5da357bc5dbcc7c0c3a4
[ "Apache-2.0" ]
1
2021-01-05T16:22:42.000Z
2021-01-05T16:22:42.000Z
""" Copyright (c) 2014-2017 Wind River Systems, Inc. SPDX-License-Identifier: Apache-2.0 """ # Server Specific Configurations server = { 'port': '5491', 'host': '0.0.0.0' } # Pecan Application Configurations app = { 'root': 'cgcs_patch.api.controllers.root.RootController', 'modules': ['cgcs_patch.ap...
20.416667
61
0.634694
796fb90a05ddc3bd0bcab05d7e7e11a166516a5d
1,194
py
Python
cogs/antispam.py
PyBot-Development/PyBot-v4
7fb821940bf43ded7d6996342b83afda4174d36e
[ "MIT" ]
null
null
null
cogs/antispam.py
PyBot-Development/PyBot-v4
7fb821940bf43ded7d6996342b83afda4174d36e
[ "MIT" ]
null
null
null
cogs/antispam.py
PyBot-Development/PyBot-v4
7fb821940bf43ded7d6996342b83afda4174d36e
[ "MIT" ]
null
null
null
from discord.ext import commands import discord from resources import checks, support, colours from discord.ext.commands import cooldown, BucketType class command(commands.Cog, name="hello"): def __init__(self, client): self.client = client @checks.log() @checks.default() @cooldown(1, supp...
41.172414
140
0.693467
796fb92b577c54b4dfad1af218e49d746dd4a1d3
835
py
Python
example/example/urls.py
kajigga/dj-pylti
2388719ee799b3033a9ab7ccf28667e69bcd8cd6
[ "BSD-3-Clause" ]
null
null
null
example/example/urls.py
kajigga/dj-pylti
2388719ee799b3033a9ab7ccf28667e69bcd8cd6
[ "BSD-3-Clause" ]
null
null
null
example/example/urls.py
kajigga/dj-pylti
2388719ee799b3033a9ab7ccf28667e69bcd8cd6
[ "BSD-3-Clause" ]
null
null
null
"""example URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.9/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-bas...
34.791667
79
0.699401
796fbacc210460060af2f9a8417c4e91861c946e
8,958
py
Python
docs/poc.py
mithro/pyIPCMI
dd3bb6ddbf150fffb7b104d96e0ab786e0558fd2
[ "Apache-2.0" ]
5
2018-05-12T22:38:28.000Z
2020-10-10T17:22:37.000Z
docs/poc.py
mithro/pyIPCMI
dd3bb6ddbf150fffb7b104d96e0ab786e0558fd2
[ "Apache-2.0" ]
5
2019-10-13T01:39:38.000Z
2020-09-28T04:36:38.000Z
docs/poc.py
mithro/pyIPCMI
dd3bb6ddbf150fffb7b104d96e0ab786e0558fd2
[ "Apache-2.0" ]
4
2018-05-12T22:38:32.000Z
2019-05-19T21:27:37.000Z
# EMACS settings: -*- tab-width: 2; indent-tabs-mode: t -*- # vim: tabstop=2:shiftwidth=2:noexpandtab # kate: tab-width 2; replace-tabs off; indent-width 2; # # ============================================================================== # Authors: Patrick Lehmann # Thomas B. Preußer # # Py...
35.975904
154
0.647131
796fbb5047853f36d92d6a8e07820dc441ab5264
12,914
py
Python
streamdeck_ui/api.py
slmb3/streamdeck-ui
b38403dd9278b63b540c80dc0e1daa43e7e6d959
[ "MIT" ]
null
null
null
streamdeck_ui/api.py
slmb3/streamdeck-ui
b38403dd9278b63b540c80dc0e1daa43e7e6d959
[ "MIT" ]
null
null
null
streamdeck_ui/api.py
slmb3/streamdeck-ui
b38403dd9278b63b540c80dc0e1daa43e7e6d959
[ "MIT" ]
null
null
null
"""Defines the Python API for interacting with the StreamDeck Configuration UI""" import json import os import threading from functools import partial from typing import Dict, Tuple, Union, cast from warnings import warn from PIL import Image, ImageDraw, ImageFont from PySide2.QtCore import QObject, Signal from Stream...
36.897143
100
0.647824
796fbbda87e61d015690a86ba1dc0691ec1130ac
6,364
py
Python
src/wavestate/iirrational/v1/nyquist_move.py
wavestate/wavestate-iirrational
01d6dba8b2131fa2a099a74f17e6540f30cee606
[ "Apache-2.0" ]
null
null
null
src/wavestate/iirrational/v1/nyquist_move.py
wavestate/wavestate-iirrational
01d6dba8b2131fa2a099a74f17e6540f30cee606
[ "Apache-2.0" ]
null
null
null
src/wavestate/iirrational/v1/nyquist_move.py
wavestate/wavestate-iirrational
01d6dba8b2131fa2a099a74f17e6540f30cee606
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # SPDX-License-Identifier: Apache-2.0 # SPDX-FileCopyrightText: © 2021 Massachusetts Institute of Technology. # SPDX-FileCopyrightText: © 2021 Lee McCuller <mcculler@mit.edu> # NOTICE: authors should document their contributions in concisely in NOTICE # with details inline ...
32.469388
106
0.509742
796fbc4de452a206e57776fce078ff97a2d4aabf
2,633
py
Python
genie-client/src/main/python/setup.py
piaozhexiu/genie
44f9d6e7e07cd07209ea6d47cf8ddca7edb56c3d
[ "Apache-2.0" ]
null
null
null
genie-client/src/main/python/setup.py
piaozhexiu/genie
44f9d6e7e07cd07209ea6d47cf8ddca7edb56c3d
[ "Apache-2.0" ]
null
null
null
genie-client/src/main/python/setup.py
piaozhexiu/genie
44f9d6e7e07cd07209ea6d47cf8ddca7edb56c3d
[ "Apache-2.0" ]
null
null
null
""" Copyright 2014 Netflix, 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 agre...
32.109756
77
0.663502
796fbccc1ea076459a6404c49f2ebca54f02d635
597
py
Python
tests/test_random_ci.py
ismaelpadilla/ciuy_py
d08e4269ac6dfae630a56fbf67ce589989ace106
[ "MIT" ]
null
null
null
tests/test_random_ci.py
ismaelpadilla/ciuy_py
d08e4269ac6dfae630a56fbf67ce589989ace106
[ "MIT" ]
null
null
null
tests/test_random_ci.py
ismaelpadilla/ciuy_py
d08e4269ac6dfae630a56fbf67ce589989ace106
[ "MIT" ]
null
null
null
""" A word of caution: Due to the nature of the random() method, no unit test can guarantee that it's function correctly. The tests in this class should be considered nothing more than smoke tests. """ import ciuy def test_random_ci_length(): random_ci = ciuy.random_ci() length_valid = len(random_ci) >= 7 an...
25.956522
98
0.720268
796fbda0bb3da7951d176286a995e45c9e9062b1
32,054
py
Python
src/prefect/cli/build_register.py
suryatmodulus/prefect
e4ac9f6aa831140c7fba0397f3e5e0884b1b9e42
[ "Apache-2.0" ]
3
2021-11-09T10:46:58.000Z
2022-03-11T04:22:35.000Z
src/prefect/cli/build_register.py
suryatmodulus/prefect
e4ac9f6aa831140c7fba0397f3e5e0884b1b9e42
[ "Apache-2.0" ]
8
2021-10-11T16:42:59.000Z
2022-03-31T08:42:24.000Z
src/prefect/cli/build_register.py
suryatmodulus/prefect
e4ac9f6aa831140c7fba0397f3e5e0884b1b9e42
[ "Apache-2.0" ]
1
2022-03-11T04:22:40.000Z
2022-03-11T04:22:40.000Z
import functools import hashlib import importlib import json import multiprocessing import os import runpy import sys import time import traceback import glob from collections import Counter, defaultdict from types import ModuleType from typing import Union, NamedTuple, List, Dict, Iterator, Tuple import marshmallow i...
32.943474
89
0.593654
796fbda9bf7cbd38592985774b91f70855bfaf79
859
py
Python
scripts/plain_models/cifar_resnet/train_cifar100.py
microsoft/archai
900f95020f8f1dc37783eb0126bb8a34fc05bf4f
[ "MIT" ]
344
2020-06-12T22:12:56.000Z
2022-03-29T06:48:20.000Z
scripts/plain_models/cifar_resnet/train_cifar100.py
QPC-database/archai
50f70ccccf536466cc0370c8a63401e05dec33fd
[ "MIT" ]
29
2020-06-13T19:56:49.000Z
2022-03-30T20:26:48.000Z
scripts/plain_models/cifar_resnet/train_cifar100.py
QPC-database/archai
50f70ccccf536466cc0370c8a63401e05dec33fd
[ "MIT" ]
68
2020-06-12T19:32:43.000Z
2022-03-05T06:58:40.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import torch from archai import cifar10_models from archai.common.trainer import Trainer from archai.common.config import Config from archai.common.common import common_init from archai.datasets import data def train_test(conf_eval:Con...
27.709677
95
0.710128
796fbe88ef0e2d0735b57681b54287dff34e4cfa
1,611
py
Python
configs/_base_/datasets/mfnet_bs32.py
TriplePool/mmclassification
525d5abacb201c5f4a77d7bdc9528bf25f222a33
[ "Apache-2.0" ]
null
null
null
configs/_base_/datasets/mfnet_bs32.py
TriplePool/mmclassification
525d5abacb201c5f4a77d7bdc9528bf25f222a33
[ "Apache-2.0" ]
null
null
null
configs/_base_/datasets/mfnet_bs32.py
TriplePool/mmclassification
525d5abacb201c5f4a77d7bdc9528bf25f222a33
[ "Apache-2.0" ]
null
null
null
# dataset settings dataset_type = 'MFNet' img_norm_cfg = dict( mean=[123.675, 116.28, 103.53], std=[58.395, 57.12, 57.375], to_rgb=True) train_pipeline = [ dict(type='LoadImageFromFile'), dict(type='RandomResizedCrop', size=224), dict(type='RandomFlip', flip_prob=0.5, direction='horizontal'), dict(t...
38.357143
96
0.660459
796fbe9097b8aa65118968448ca0a51c234de283
75,143
py
Python
sdk/python/pulumi_aws/emr/cluster.py
michael-golden/pulumi-aws
165e876e166ecab1870e857822247585d78aef64
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/emr/cluster.py
michael-golden/pulumi-aws
165e876e166ecab1870e857822247585d78aef64
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/emr/cluster.py
michael-golden/pulumi-aws
165e876e166ecab1870e857822247585d78aef64
[ "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 Union from .. import utilities, tables class Cluster(pulumi.Cu...
78.192508
749
0.679518
796fbfcf0ec92c03c8207ebe509f3b1b6be31e78
5,514
py
Python
weather-data/lambda/dataset_processor.py
Napuu/matalapaine
84931e7b629be09b295c2c3def1cd15ae811f0c2
[ "MIT" ]
null
null
null
weather-data/lambda/dataset_processor.py
Napuu/matalapaine
84931e7b629be09b295c2c3def1cd15ae811f0c2
[ "MIT" ]
null
null
null
weather-data/lambda/dataset_processor.py
Napuu/matalapaine
84931e7b629be09b295c2c3def1cd15ae811f0c2
[ "MIT" ]
null
null
null
import boto3 import rasterio import os import numpy as np from osgeo import gdal from botocore.handlers import disable_signing from typing import List from datetime import datetime DATASET_TMP_PATH = "/tmp/tmp.grib2" GDAL_TMP_FILE = "/tmp/temp.tiff" FINAL_IMG = "/tmp/final.jpeg" NOAA_BUCKET = 'noaa-gfs-bdp-pds' PROCES...
39.385714
144
0.692238
796fbff62c90607821fab4989fb2cab77ffd6daa
4,312
py
Python
pock/mock.py
atbentley/pock
d7cefee40dd967707948d7253857629767f2599b
[ "MIT" ]
1
2017-10-13T15:05:50.000Z
2017-10-13T15:05:50.000Z
pock/mock.py
atbentley/pock
d7cefee40dd967707948d7253857629767f2599b
[ "MIT" ]
null
null
null
pock/mock.py
atbentley/pock
d7cefee40dd967707948d7253857629767f2599b
[ "MIT" ]
null
null
null
import inspect from collections import OrderedDict from .behaviour import ValueResult, Behaviour from .matchers import MatchCriteria overrides = ( '_spec', '_strict', '_add_call_behaviour', '_add_property_behaviour', '_add_item_behaviour', '_add_method_behaviour', '_call_behaviours', ...
33.169231
75
0.608766
796fc01494af0b677d47cd16031b3b7e706c447e
4,305
py
Python
src/appi/capstone/app_solution.py
Kaju-Bubanja/APPI
011afc872a0055ff56001547be6da73017042ad5
[ "MIT" ]
null
null
null
src/appi/capstone/app_solution.py
Kaju-Bubanja/APPI
011afc872a0055ff56001547be6da73017042ad5
[ "MIT" ]
null
null
null
src/appi/capstone/app_solution.py
Kaju-Bubanja/APPI
011afc872a0055ff56001547be6da73017042ad5
[ "MIT" ]
null
null
null
import urllib.parse from flask import Flask, render_template, request, jsonify import sqlite3 import json app = Flask(__name__) db_name = "animals.db" # return dictionary instead of tuple def dict_factory(cursor, row): d = {} for idx, description in enumerate(cursor.description): # 0 is the column ...
27.954545
124
0.630662
796fc0a021b837c47f0536c71db21b24c8ca125a
2,628
py
Python
sample/5_12_21_Challenge.py
ryankimball/pyna
86b67e775925953abdc8d3ecaf786dda08d91bfa
[ "MIT" ]
null
null
null
sample/5_12_21_Challenge.py
ryankimball/pyna
86b67e775925953abdc8d3ecaf786dda08d91bfa
[ "MIT" ]
null
null
null
sample/5_12_21_Challenge.py
ryankimball/pyna
86b67e775925953abdc8d3ecaf786dda08d91bfa
[ "MIT" ]
null
null
null
#!/usr/bin/python3 def showInstructions(): print(''' RPG Game ======== Commands: go [direction, i.e. north, south, east, or west] get [item] ''') def showStatus(): print('---------------------------') print('You are in the ' + currentRoom) print('Inventory : ' + str(invento...
25.028571
82
0.348935
796fc0f3274bb5b910f168c5575c9d9f6c2593b9
120
py
Python
leetcode/single-element-in-a-sorted-array.py
hg-pyun/algorithm
cf92483c399f05e488b6febc79c80620f115fadf
[ "MIT" ]
7
2018-09-15T13:57:37.000Z
2022-03-13T10:01:56.000Z
leetcode/single-element-in-a-sorted-array.py
hg-pyun/algorithm
cf92483c399f05e488b6febc79c80620f115fadf
[ "MIT" ]
1
2019-04-26T07:02:28.000Z
2019-04-26T07:02:28.000Z
leetcode/single-element-in-a-sorted-array.py
hg-pyun/algorithm
cf92483c399f05e488b6febc79c80620f115fadf
[ "MIT" ]
1
2020-05-03T23:43:38.000Z
2020-05-03T23:43:38.000Z
class Solution: def singleNonDuplicate(self, nums: List[int]) -> int: return reduce(lambda x, y: x^y, nums)
30
57
0.65
796fc21ca3dfb8d7e84ade45b083d6b37ee7d02b
1,262
py
Python
browseGUI.py
rfaile313/Abstract-Scraper
a6b19489d3274be4a54617f02cbdd1890fe58bdf
[ "MIT" ]
1
2021-10-11T21:23:07.000Z
2021-10-11T21:23:07.000Z
browseGUI.py
rfaile313/Abstract-Scraper
a6b19489d3274be4a54617f02cbdd1890fe58bdf
[ "MIT" ]
null
null
null
browseGUI.py
rfaile313/Abstract-Scraper
a6b19489d3274be4a54617f02cbdd1890fe58bdf
[ "MIT" ]
null
null
null
import PySimpleGUI as sg from constants import Constants class BrowseGUI: def __init__(self): sg.theme('LightGrey5') self.layout = [] def append_journal(self, text, journalName, journalKey): #Append Journal Text, Name, and Key specified in call to the laout self.layout.append(...
32.358974
173
0.614105
796fc22197e5d6af1de335d58c33e4c80d8f3b75
12,396
py
Python
gpu_vi_engine_s.py
idigitopia/Distributed-VI
323be8c50862d8dff9cae68313c518080a9df72e
[ "MIT" ]
6
2019-08-18T17:04:36.000Z
2022-03-26T08:31:22.000Z
gpu_vi_engine_s.py
idigitopia/Distributed-VI
323be8c50862d8dff9cae68313c518080a9df72e
[ "MIT" ]
null
null
null
gpu_vi_engine_s.py
idigitopia/Distributed-VI
323be8c50862d8dff9cae68313c518080a9df72e
[ "MIT" ]
null
null
null
# !/usr/bin/env python # -*- coding: utf-8 -*- """ Multiplies two square matrices together using a *single* block of threads and global memory only. Each thread computes one element of the resulting matrix. """ import numpy as np from pycuda import driver, compiler, gpuarray, tools import pycuda.driver as cuda import...
38.496894
152
0.615763
796fc278742c7fd5e5b8fa166a8010ee634e0106
3,369
py
Python
year_2020/day_16_2020.py
TheTomcat/AdventOfCode
bb81a46f7064bd69e924a0b58e6c5e0cc450e102
[ "MIT" ]
null
null
null
year_2020/day_16_2020.py
TheTomcat/AdventOfCode
bb81a46f7064bd69e924a0b58e6c5e0cc450e102
[ "MIT" ]
null
null
null
year_2020/day_16_2020.py
TheTomcat/AdventOfCode
bb81a46f7064bd69e924a0b58e6c5e0cc450e102
[ "MIT" ]
null
null
null
from util.helpers import solution_timer from util.input_helper import read_entire_input data = read_entire_input(2020,16) def parse(data): # departure time: 45-533 or 547-970 first_index_of_new_line = data.index("") rule_dict = {} for line in data[:first_index_of_new_line]: command, ruletext =...
34.030303
100
0.64203
796fc2a9e6a8560987e3b553890d8253ddadde23
2,234
py
Python
util/fcn.py
margitantal68/sapimouse
40b5ea6cf10c6f1d64b9dd0427d21138cc4f75e2
[ "Apache-2.0" ]
2
2021-03-27T16:36:50.000Z
2021-07-05T04:24:52.000Z
util/fcn.py
margitantal68/sapimouse
40b5ea6cf10c6f1d64b9dd0427d21138cc4f75e2
[ "Apache-2.0" ]
null
null
null
util/fcn.py
margitantal68/sapimouse
40b5ea6cf10c6f1d64b9dd0427d21138cc4f75e2
[ "Apache-2.0" ]
null
null
null
import os import time import numpy as np import pandas as pd import tensorflow.keras as keras from pathlib import Path from sklearn.ensemble import RandomForestClassifier from sklearn.preprocessing import LabelEncoder, OneHotEncoder from sklearn.model_selection import train_test_split from sklearn import metr...
45.591837
127
0.725604
796fc34045e769efd3e574bf193cd0d1aa73e1d3
18,350
py
Python
gs_api_client/swagger/models/task_events_ipaddr_ipaddr_update_reverse_dns.py
gridscale/gridscale_api_client_python
755b8e8a017784a4f5c6b3a577338ff988c41a9a
[ "MIT" ]
7
2019-07-12T13:59:45.000Z
2021-03-16T08:46:20.000Z
gs_api_client/swagger/models/task_events_ipaddr_ipaddr_update_reverse_dns.py
gridscale/gridscale_api_client_python
755b8e8a017784a4f5c6b3a577338ff988c41a9a
[ "MIT" ]
13
2020-01-23T07:50:29.000Z
2022-03-21T14:32:40.000Z
gs_api_client/swagger/models/task_events_ipaddr_ipaddr_update_reverse_dns.py
gridscale/gridscale_api_client_python
755b8e8a017784a4f5c6b3a577338ff988c41a9a
[ "MIT" ]
null
null
null
# coding: utf-8 """ API Specification # Introduction Welcome to gridscales API documentation. A REST API is a programming interface that allows you to access and send data directly to our systems using HTTPS requests, without the need to use a web GUI. All the functionality you are already familiar with in y...
94.587629
12,787
0.702834
796fc439176b40e3891418e6bb7eef6c82b84a76
2,160
py
Python
mock_stream.py
ckljohn/dash-live-table
13403abf9ec5104478035df786769929ddecf388
[ "MIT" ]
null
null
null
mock_stream.py
ckljohn/dash-live-table
13403abf9ec5104478035df786769929ddecf388
[ "MIT" ]
null
null
null
mock_stream.py
ckljohn/dash-live-table
13403abf9ec5104478035df786769929ddecf388
[ "MIT" ]
null
null
null
""" This script is to stream tcpdump to local Elasticsearch. Require root permission. """ from datetime import datetime import subprocess as sub import re from elasticsearch import Elasticsearch, RequestsHttpConnection, helpers tcpdump_reg = re.compile(r"IP (?P<IP1>[\w.-]+)\.(?P<Port1>\w+) > (?P<IP2>[\w.-]+)\.(?P<Por...
29.189189
139
0.586111
796fc58528e20b763d5ee35b620d55798c73d3a1
4,658
py
Python
Sequence Models/utils.py
yenlow/coursera_dl
b092a290d5120b2dfeecce65fd9ae63df470adee
[ "MIT" ]
null
null
null
Sequence Models/utils.py
yenlow/coursera_dl
b092a290d5120b2dfeecce65fd9ae63df470adee
[ "MIT" ]
null
null
null
Sequence Models/utils.py
yenlow/coursera_dl
b092a290d5120b2dfeecce65fd9ae63df470adee
[ "MIT" ]
null
null
null
import numpy as np def softmax(x): e_x = np.exp(x - np.max(x)) return e_x / e_x.sum(axis=0) def smooth(loss, cur_loss): return loss * 0.999 + cur_loss * 0.001 def print_sample(sample_ix, ix_to_char): txt = ''.join(ix_to_char[ix] for ix in sample_ix) txt = txt[0].upper() + txt[1:] # capitalize fi...
36.968254
123
0.601331
796fc76e36c909bd134b318fbf478be8f9ea0a45
4,697
py
Python
code/EconomicSuitability.py
slibby/PyAEZ
fffba1028586c9d14a8c3a1377a12a05868b8403
[ "MIT" ]
17
2020-09-10T16:10:59.000Z
2022-03-28T13:35:53.000Z
code/EconomicSuitability.py
sbaber1/PyAEZ
fffba1028586c9d14a8c3a1377a12a05868b8403
[ "MIT" ]
1
2021-07-25T14:21:08.000Z
2021-08-04T15:59:18.000Z
code/EconomicSuitability.py
sbaber1/PyAEZ
fffba1028586c9d14a8c3a1377a12a05868b8403
[ "MIT" ]
22
2020-09-10T16:10:39.000Z
2022-03-21T04:00:16.000Z
""" PyAEZ Written by Thaileng Thol BETA version - under development and in testing phase """ import numpy as np from scipy import stats class EconomicSuitability(object): def __init__(self): self.crop_name_list = [] self.net_revenue_list = [] self.revenue_min_list = [] ...
46.97
124
0.674473
796fc774dcbc219b60669eb5654d52e3ab6d14ff
633
py
Python
adb_android/var.py
dingzhi86/adb_android
de53dc54f27b14dc8c2ae64b136a60a59e1a1cb1
[ "BSD-3-Clause" ]
63
2015-09-09T15:44:41.000Z
2021-11-18T23:07:44.000Z
adb_android/var.py
dingzhi86/adb_android
de53dc54f27b14dc8c2ae64b136a60a59e1a1cb1
[ "BSD-3-Clause" ]
32
2015-07-06T09:27:09.000Z
2018-09-06T23:31:59.000Z
adb_android/var.py
dingzhi86/adb_android
de53dc54f27b14dc8c2ae64b136a60a59e1a1cb1
[ "BSD-3-Clause" ]
40
2015-08-17T23:28:57.000Z
2022-01-31T15:29:06.000Z
ADB_COMMAND_PREFIX = 'adb' ADB_COMMAND_SHELL = 'shell' ADB_COMMAND_PULL = 'pull' ADB_COMMAND_PUSH = 'push' ADB_COMMAND_RM = 'rm -r' ADB_COMMAND_CHMOD = 'chmod -R 777' ADB_COMMAND_UNINSTALL = 'uninstall' ADB_COMMAND_INSTALL = 'install' ADB_COMMAND_UNINSTALL = 'uninstall' ADB_COMMAND_FORWARD = 'forward' ADB_COMMAND_DEVIC...
33.315789
45
0.804107
796fc875d52d2c8fb72a2d51de498c693d9138d6
433
py
Python
app/config_example.py
rubenlorenzo/Flask_Scaffold_Admin
e029e7d3ff9a9d2a8880b0c3fa230f2a6d2deea9
[ "BSD-2-Clause", "MIT" ]
2
2017-12-20T17:25:22.000Z
2018-06-01T13:17:15.000Z
app/config_example.py
rubenlorenzo/Flask_Scaffold_Admin
e029e7d3ff9a9d2a8880b0c3fa230f2a6d2deea9
[ "BSD-2-Clause", "MIT" ]
null
null
null
app/config_example.py
rubenlorenzo/Flask_Scaffold_Admin
e029e7d3ff9a9d2a8880b0c3fa230f2a6d2deea9
[ "BSD-2-Clause", "MIT" ]
null
null
null
import os #Flask settings os.environ['SECRET_KEY'] = '22222' os.environ['UPLOADED_PHOTOS_DEST'] = "app/upload_photos" #Flask-Mail settings os.environ['MAIL_USERNAME'] = 'email@example.com' os.environ['MAIL_PASSWORD'] = 'password' os.environ['MAIL_DEFAULT_SENDER'] = 'email@example.com' #Admin user default os.environ[...
27.0625
56
0.743649
796fc87dc99a663045b468d0f778b2a06518106d
3,392
py
Python
contrib/devtools/optimize-pngs.py
knotcoin/knotcoin
3f4ade4e2cabf94acd80bc043deec3d9a4209938
[ "MIT" ]
null
null
null
contrib/devtools/optimize-pngs.py
knotcoin/knotcoin
3f4ade4e2cabf94acd80bc043deec3d9a4209938
[ "MIT" ]
null
null
null
contrib/devtools/optimize-pngs.py
knotcoin/knotcoin
3f4ade4e2cabf94acd80bc043deec3d9a4209938
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2014-2017 The Knotcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Run this script every time you change one of the png files. Using pngcrush, it will optimize the png f...
42.936709
193
0.623821
796fc98744e01f2f81bd9079322ecdf537182c82
9,821
py
Python
zasim/examples/notebooks/notebook_app.py
timo/zasim
54d8eb329af73700bf0df2be6e753e309e9d8191
[ "BSD-3-Clause" ]
2
2017-05-15T12:24:57.000Z
2018-03-09T10:25:45.000Z
zasim/examples/notebooks/notebook_app.py
timo/zasim
54d8eb329af73700bf0df2be6e753e309e9d8191
[ "BSD-3-Clause" ]
null
null
null
zasim/examples/notebooks/notebook_app.py
timo/zasim
54d8eb329af73700bf0df2be6e753e309e9d8191
[ "BSD-3-Clause" ]
null
null
null
"""============================== Branded IPython Notebook Launcher ================================= Executing this module will create an overlay over ipython notebooks own static files and templates and overrides static files and templates and copies over all example notebooks into a temporary folder and launches th...
34.219512
99
0.688728
796fc9fc32f02a2861e2c0c18e65d03728bd4a71
689
py
Python
102/save4_passed.py
rayjustinhuang/BitesofPy
03b694c5259ff607621419d9677c5caff90a6057
[ "MIT" ]
null
null
null
102/save4_passed.py
rayjustinhuang/BitesofPy
03b694c5259ff607621419d9677c5caff90a6057
[ "MIT" ]
null
null
null
102/save4_passed.py
rayjustinhuang/BitesofPy
03b694c5259ff607621419d9677c5caff90a6057
[ "MIT" ]
null
null
null
VALID_COLORS = ['blue', 'yellow', 'red'] def print_colors(): """In the while loop ask the user to enter a color, lowercase it and store it in a variable. Next check: - if 'quit' was entered for color, print 'bye' and break. - if the color is not in VALID_COLORS, print 'Not a valid color' an...
32.809524
85
0.561684
796fca3ce397057db2bca55d481fce10434cb4b7
2,317
py
Python
tests/test_mpl_plotting_utils.py
alliecc/argoverse-api
8d96ebd92195a4fdb228d45b4584fdc61d4522c9
[ "MIT" ]
26
2020-04-06T18:11:51.000Z
2022-03-26T02:53:10.000Z
tests/test_mpl_plotting_utils.py
alliecc/argoverse-api
8d96ebd92195a4fdb228d45b4584fdc61d4522c9
[ "MIT" ]
5
2020-04-03T00:07:20.000Z
2022-01-13T03:20:21.000Z
tests/test_mpl_plotting_utils.py
alliecc/argoverse-api
8d96ebd92195a4fdb228d45b4584fdc61d4522c9
[ "MIT" ]
6
2020-06-02T14:51:22.000Z
2021-08-02T12:47:54.000Z
# <Copyright 2019, Argo AI, LLC. Released under the MIT license.> import matplotlib.pyplot as plt import numpy as np from argoverse.utils.mpl_plotting_utils import ( animate_polyline, draw_lane_polygons, draw_polygon_mpl, draw_polygonpatch_matplotlib, plot_bbox_2D, plot_lane_segment_patch, ...
27.915663
73
0.621062
796fca8b73debcf46dca231759a8c13fdf66ab49
6,954
py
Python
gan/datasets/common_ds.py
jianliang90/MedCommon
961384c7387cf8307275752d6399c6f9c8ce227c
[ "MIT" ]
1
2021-12-16T15:06:59.000Z
2021-12-16T15:06:59.000Z
gan/datasets/common_ds.py
jianliang90/MedCommon
961384c7387cf8307275752d6399c6f9c8ce227c
[ "MIT" ]
null
null
null
gan/datasets/common_ds.py
jianliang90/MedCommon
961384c7387cf8307275752d6399c6f9c8ce227c
[ "MIT" ]
null
null
null
import os import sys import torch import torchvision gan_root = os.path.abspath(os.path.join(os.path.dirname(__file__), os.path.pardir)) sys.path.append(os.path.join(gan_root, 'external_lib/torchio')) import torchio as tio from torch.utils.data import Dataset, DataLoader from utils.data_aug_utils import DATA_AUGMEN...
44.864516
138
0.545298
796fcb90cddb6be626658e64f73406eb69396533
783
py
Python
meals/dates.py
CodeSmitty/django-menu-planner
63d1b8ef36ffe855198b35d9b831febb313a1741
[ "MIT" ]
null
null
null
meals/dates.py
CodeSmitty/django-menu-planner
63d1b8ef36ffe855198b35d9b831febb313a1741
[ "MIT" ]
null
null
null
meals/dates.py
CodeSmitty/django-menu-planner
63d1b8ef36ffe855198b35d9b831febb313a1741
[ "MIT" ]
1
2022-01-18T16:38:57.000Z
2022-01-18T16:38:57.000Z
import datetime def today(): return datetime.date.today() def next_day(date): return date + datetime.timedelta(days=1) def day_of_week(date=today()): num = date.weekday() if num == 6: return 0 else: return num + 1 def start_of_week(date=today()): return date - datetim...
20.076923
90
0.688378
796fcbb0e1d261b3bf900f9db5165f18fa151a13
688
py
Python
x_rebirth_station_calculator/station_data/ol__technocore_parts.py
Phipsz/XRebirthStationCalculator
ac31c2f5816be34a7df2d7c4eb4bd5e01f7ff835
[ "MIT" ]
1
2016-04-17T11:00:22.000Z
2016-04-17T11:00:22.000Z
x_rebirth_station_calculator/station_data/ol__technocore_parts.py
Phipsz/XRebirthStationCalculator
ac31c2f5816be34a7df2d7c4eb4bd5e01f7ff835
[ "MIT" ]
null
null
null
x_rebirth_station_calculator/station_data/ol__technocore_parts.py
Phipsz/XRebirthStationCalculator
ac31c2f5816be34a7df2d7c4eb4bd5e01f7ff835
[ "MIT" ]
null
null
null
from x_rebirth_station_calculator.station_data import modules from x_rebirth_station_calculator.station_data.station_base import Station names = {'L044': 'TechnoCore Parts', 'L049': 'TechnoCore-Teile'} smodules = [modules.GelFactory(production_method='ar', efficiency=162), modules.GelFactory(prod...
45.866667
74
0.734012
796fcc55e647943fa2e23b216b1a63496c34a276
966
py
Python
tests/test_pyiges.py
TormodLandet/pyiges
8cdc6b576c0547f8ddbb0c7f3485bac4327f6a40
[ "MIT" ]
20
2020-04-18T19:00:27.000Z
2022-02-03T13:26:41.000Z
tests/test_pyiges.py
TormodLandet/pyiges
8cdc6b576c0547f8ddbb0c7f3485bac4327f6a40
[ "MIT" ]
17
2019-11-19T04:57:20.000Z
2022-02-03T13:22:32.000Z
tests/test_pyiges.py
TormodLandet/pyiges
8cdc6b576c0547f8ddbb0c7f3485bac4327f6a40
[ "MIT" ]
5
2021-05-24T21:45:19.000Z
2022-03-10T09:23:06.000Z
import pytest import pyiges from pyiges import examples @pytest.fixture(scope='module') def sample(): return pyiges.read(examples.sample) @pytest.fixture(scope='module') def impeller(): return pyiges.read(examples.impeller) def test_str(sample): assert 'Number of Entities: 5' in str(sample) def tes...
20.125
71
0.71118
796fcccfc3bdea62da14c1e5dae9462b8cb2ac75
18,669
py
Python
src/sentry/migrations/0045_auto__add_pendingprojectmember__add_unique_pendingprojectmember_projec.py
Casecommons/sentry
b69a2373a658c5c775671fe9985c3fa4f2eafcfd
[ "BSD-3-Clause" ]
null
null
null
src/sentry/migrations/0045_auto__add_pendingprojectmember__add_unique_pendingprojectmember_projec.py
Casecommons/sentry
b69a2373a658c5c775671fe9985c3fa4f2eafcfd
[ "BSD-3-Clause" ]
null
null
null
src/sentry/migrations/0045_auto__add_pendingprojectmember__add_unique_pendingprojectmember_projec.py
Casecommons/sentry
b69a2373a658c5c775671fe9985c3fa4f2eafcfd
[ "BSD-3-Clause" ]
null
null
null
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'PendingProjectMember' db.create_table('sentry_pendingprojectmember', ( ('id', self.gf(...
78.441176
182
0.565215
796fce0a0deace3187a69e92fbcfc7276f935af5
51
py
Python
cisc108/__init__.py
ElBell/cisc108-python-support-library
cfa1a2ac469dcd89b4eaa1248f6be18b84f5e897
[ "MIT" ]
null
null
null
cisc108/__init__.py
ElBell/cisc108-python-support-library
cfa1a2ac469dcd89b4eaa1248f6be18b84f5e897
[ "MIT" ]
null
null
null
cisc108/__init__.py
ElBell/cisc108-python-support-library
cfa1a2ac469dcd89b4eaa1248f6be18b84f5e897
[ "MIT" ]
null
null
null
from cisc108.assertions import assert_equal, QUIET
25.5
50
0.862745
796fce0be072b0872b88eafafec5aacfedc50d62
2,738
py
Python
modoboa/lib/templatetags/form_tags.py
Makakken-Crew/modoboa
faac20fe36e26bd7c01edc2adb12312dda4cfaa2
[ "ISC" ]
2
2021-04-20T19:40:09.000Z
2021-04-20T20:23:57.000Z
modoboa/lib/templatetags/form_tags.py
vavilon/modoboa
9fcd133bc883a94cbf66c5bc9687787caadc8ca2
[ "0BSD" ]
19
2021-05-05T03:31:52.000Z
2021-12-11T09:58:52.000Z
modoboa/lib/templatetags/form_tags.py
vavilon/modoboa
9fcd133bc883a94cbf66c5bc9687787caadc8ca2
[ "0BSD" ]
1
2020-01-10T11:43:00.000Z
2020-01-10T11:43:00.000Z
# -*- coding: utf-8 -*- """ Form rendering tags. """ from __future__ import unicode_literals from django import forms, template from django.template.loader import render_to_string from django.utils.encoding import smart_text from django.utils.safestring import mark_safe from modoboa.lib.form_utils import SeparatorF...
28.520833
75
0.661432
796fce3597ee1c2c636b64f3d6700189cba98d4b
6,299
py
Python
cabot3/cabotapp/tests/tests_jenkins.py
senzil/cabot
a5d609b815d01dfac85f38e3fee6bc65d962e8bc
[ "MIT" ]
3
2021-07-24T05:49:32.000Z
2021-09-13T13:59:12.000Z
cabot3/cabotapp/tests/tests_jenkins.py
senzil/cabot
a5d609b815d01dfac85f38e3fee6bc65d962e8bc
[ "MIT" ]
5
2021-08-31T00:07:39.000Z
2021-08-31T01:43:55.000Z
cabot3/cabotapp/tests/tests_jenkins.py
senzil/cabot
a5d609b815d01dfac85f38e3fee6bc65d962e8bc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import unittest from datetime import timedelta import jenkins from cabot3.cabotapp import jenkins as cabot_jenkins from cabot3.cabotapp.models import JenkinsConfig from cabot3.cabotapp.models.jenkins_check_plugin import JenkinsStatusCheck from django.utils import timezone from freezegun import...
32.302564
84
0.583267
796fce4a3b3d888bfb7e519205fd3ba506a91cd9
126
py
Python
posts/urls.py
william-cass-wright/django_proj
62a1a9cb4a4ca5acd9eb40a246cdf8e220708098
[ "Apache-2.0" ]
null
null
null
posts/urls.py
william-cass-wright/django_proj
62a1a9cb4a4ca5acd9eb40a246cdf8e220708098
[ "Apache-2.0" ]
null
null
null
posts/urls.py
william-cass-wright/django_proj
62a1a9cb4a4ca5acd9eb40a246cdf8e220708098
[ "Apache-2.0" ]
null
null
null
from django.urls import path from .views import HomePageView urlpatterns = [ path('', HomePageView.as_view(), name='home') ]
21
46
0.738095
796fce86664d23aa53d637a9991e8818d9297d3f
425
py
Python
models.py
Dwarf-Community/Dwarf-Wiki
923181faf76d54546e6afb0165a51be31c8ce4bd
[ "MIT" ]
null
null
null
models.py
Dwarf-Community/Dwarf-Wiki
923181faf76d54546e6afb0165a51be31c8ce4bd
[ "MIT" ]
null
null
null
models.py
Dwarf-Community/Dwarf-Wiki
923181faf76d54546e6afb0165a51be31c8ce4bd
[ "MIT" ]
null
null
null
from django.db import models from dwarf.models import Guild class Wiki(models.Model): guild = models.OneToOneField(Guild, on_delete=models.CASCADE, primary_key=True) root = models.CharField(max_length=256) @property def api_url(self): return self.root + 'api.php' @property def artic...
21.25
83
0.672941
796fcf10d568d4e365d5f182186f0e4561d65dd5
6,267
py
Python
lib/pwiki/LogWindow.py
dszmaj/wikidpad
1127375665935524ddb623da8dd5137038c7e53e
[ "Apache-2.0", "MIT" ]
16
2015-02-05T17:32:04.000Z
2022-01-14T13:46:36.000Z
lib/pwiki/LogWindow.py
dszmaj/wikidpad
1127375665935524ddb623da8dd5137038c7e53e
[ "Apache-2.0", "MIT" ]
8
2015-06-20T20:02:41.000Z
2016-02-23T14:52:32.000Z
lib/pwiki/LogWindow.py
dszmaj/wikidpad
1127375665935524ddb623da8dd5137038c7e53e
[ "Apache-2.0", "MIT" ]
11
2015-05-19T09:17:16.000Z
2017-09-14T00:43:13.000Z
""" GUI support and error checking for handling attributes (=properties) """ import traceback import wx, wx.xrc from wxHelper import * from WikiExceptions import * class LogMessage: """ Represents a message (hint, warning, error) presented in the log window and defines a reaction o...
31.492462
84
0.596458
796fcf5e9ff6f716f6b447a0a2e790143a5e0667
50,417
py
Python
google/cloud/aiplatform_v1/services/job_service/transports/grpc.py
lclc19/python-aiplatform
d8da2e365277441abadb04328943f23345d72b0e
[ "Apache-2.0" ]
null
null
null
google/cloud/aiplatform_v1/services/job_service/transports/grpc.py
lclc19/python-aiplatform
d8da2e365277441abadb04328943f23345d72b0e
[ "Apache-2.0" ]
null
null
null
google/cloud/aiplatform_v1/services/job_service/transports/grpc.py
lclc19/python-aiplatform
d8da2e365277441abadb04328943f23345d72b0e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
44.459436
116
0.658647
796fcfce62c21ed0ba462af3b25dd4dc9d81f5d5
704
py
Python
utils/admin.py
remigermain/chernobyl-disaster.org-backend
28f45a1946c7052246421444522208880369e263
[ "MIT" ]
1
2022-02-16T06:19:06.000Z
2022-02-16T06:19:06.000Z
utils/admin.py
remigermain/chernobyl-disaster.org-backend
28f45a1946c7052246421444522208880369e263
[ "MIT" ]
1
2022-03-12T01:01:54.000Z
2022-03-12T01:01:54.000Z
utils/admin.py
remigermain/chernobyl-disaster.org-backend
28f45a1946c7052246421444522208880369e263
[ "MIT" ]
null
null
null
from django.contrib import admin from utils.models import Issue, Commit, Contact @admin.register(Issue) class IssueAdmin(admin.ModelAdmin): list_display = ('id', 'creator', 'content_type', 'content_object', 'created') exclude = ('uuid',) @admin.register(Commit) class CommitAdmin(admin.ModelAdmin): list_...
26.074074
81
0.680398
796fd0155ff29644e806aea205f5fd162c67a794
6,119
py
Python
kubernetes/client/models/v1_subject.py
jashandeep-sohi/kubernetes-python
e057f273069de445a2d5a250ac5fe37d79671f3b
[ "Apache-2.0" ]
1
2020-05-08T12:41:04.000Z
2020-05-08T12:41:04.000Z
kubernetes/client/models/v1_subject.py
jashandeep-sohi/kubernetes-python
e057f273069de445a2d5a250ac5fe37d79671f3b
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/v1_subject.py
jashandeep-sohi/kubernetes-python
e057f273069de445a2d5a250ac5fe37d79671f3b
[ "Apache-2.0" ]
2
2021-07-09T08:49:05.000Z
2021-08-03T18:08:36.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.10.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re...
28.7277
215
0.572316
796fd051d43b0bd5b408afb14fb92cc99f600ef3
742
py
Python
fbPost.py
ritesInc/FaceRocognition
d6d3a496275d126b7b44a19a5f1ef1b2a1e3567b
[ "Apache-2.0" ]
null
null
null
fbPost.py
ritesInc/FaceRocognition
d6d3a496275d126b7b44a19a5f1ef1b2a1e3567b
[ "Apache-2.0" ]
null
null
null
fbPost.py
ritesInc/FaceRocognition
d6d3a496275d126b7b44a19a5f1ef1b2a1e3567b
[ "Apache-2.0" ]
null
null
null
import os from selenium import webdriver from selenium.webdriver.common.keys import Keys driver = webdriver.Chrome() driver.get("https://www.facebook.com/?stype=lo&jlou=AfepT-WrekrwrbThp14svDOVKZJ-VxvUMRqkcUdagoA4Uf9a88BdqjjPO7kT_JtEmPWYajYI4LOhlwGzKg4VbwuK0kubCEm4smUhKHJsVdf86g&smuh=57832&lh=Ac9J_2GzcYO7NajY") in...
41.222222
196
0.803235
796fd076c6a5e5b144d1a8b0e3dc64f5ef3ca650
2,745
py
Python
Lib/test/test_crypt.py
yungyu/cpython
97588f439d35a918c95f6785c0fa17d3fbc40c31
[ "PSF-2.0" ]
7
2018-04-28T12:39:00.000Z
2020-12-17T11:22:25.000Z
Lib/test/test_crypt.py
yungyu/cpython
97588f439d35a918c95f6785c0fa17d3fbc40c31
[ "PSF-2.0" ]
null
null
null
Lib/test/test_crypt.py
yungyu/cpython
97588f439d35a918c95f6785c0fa17d3fbc40c31
[ "PSF-2.0" ]
3
2019-04-22T21:31:38.000Z
2020-04-23T08:51:10.000Z
import sys from test import support import unittest crypt = support.import_module('crypt') class CryptTestCase(unittest.TestCase): def test_crypt(self): cr = crypt.crypt('mypassword') cr2 = crypt.crypt('mypassword', cr) self.assertEqual(cr2, cr) cr = crypt.crypt('mypassword', 'ab'...
38.661972
79
0.604007
796fd0b95ecf05543935176663298f2a5d80ff4f
92,008
py
Python
webbpsf/optics.py
check-spelling/webbpsf
88d2915e623750dff8be4b9ddbdf15ed15285f4f
[ "BSD-3-Clause" ]
1
2019-04-09T19:11:26.000Z
2019-04-09T19:11:26.000Z
webbpsf/optics.py
check-spelling/webbpsf
88d2915e623750dff8be4b9ddbdf15ed15285f4f
[ "BSD-3-Clause" ]
3
2022-02-01T10:04:25.000Z
2022-03-01T10:03:57.000Z
webbpsf/optics.py
check-spelling/webbpsf
88d2915e623750dff8be4b9ddbdf15ed15285f4f
[ "BSD-3-Clause" ]
1
2021-12-27T04:24:30.000Z
2021-12-27T04:24:30.000Z
import os import poppy import poppy.utils import numpy as np import matplotlib import matplotlib.pyplot as plt from astropy.table import Table import astropy.io.fits as fits import astropy.units as units from scipy.interpolate import griddata, RegularGridInterpolator from scipy.ndimage import rotate from . import ut...
44.149712
198
0.611273
796fd12251fd37f96f45df3c440b968c3218cdf7
828
py
Python
scripts/coverage/coverage_report.py
353swe/Marvin-353
4c2184e973d725f508023ae26c9261fd299ee4e8
[ "MIT" ]
7
2018-04-16T16:57:18.000Z
2018-08-06T12:25:13.000Z
scripts/coverage/coverage_report.py
353swe/Marvin-353
4c2184e973d725f508023ae26c9261fd299ee4e8
[ "MIT" ]
null
null
null
scripts/coverage/coverage_report.py
353swe/Marvin-353
4c2184e973d725f508023ae26c9261fd299ee4e8
[ "MIT" ]
2
2018-05-25T15:49:31.000Z
2019-01-09T11:09:14.000Z
from bs4 import BeautifulSoup import subprocess import unirest import json import os def push(type): coverage_html_file = {"SOL": "./coverage/lcov-report/index.html", "JS": "./js-coverage/lcov-report/index.html"} html_doc, error = subprocess.Popen(["cat", coverage_html_file[type]], stdout=subprocess.PIPE).communi...
36
152
0.68599
796fd17996d873336fe2caa28557d8fad21c6177
4,153
py
Python
sopel/modules/wiktionary.py
jonringer/sopel
f8c287c180ec482bef162e6fd8b4ff33ad9327d2
[ "EFL-2.0" ]
null
null
null
sopel/modules/wiktionary.py
jonringer/sopel
f8c287c180ec482bef162e6fd8b4ff33ad9327d2
[ "EFL-2.0" ]
null
null
null
sopel/modules/wiktionary.py
jonringer/sopel
f8c287c180ec482bef162e6fd8b4ff33ad9327d2
[ "EFL-2.0" ]
null
null
null
# coding=utf-8 """ wiktionary.py - Sopel Wiktionary Module Copyright 2009, Sean B. Palmer, inamidst.com Licensed under the Eiffel Forum License 2. https://sopel.chat """ from __future__ import unicode_literals, absolute_import, print_function, division import re import requests from sopel import web from sopel.modu...
32.445313
114
0.594992
796fd1de9cefc77441f708872ff195e90135afb1
15,896
py
Python
lib/util/log.py
mrmansano/sublime-ycmd
fece62f0ce4e9cbf96ed8ba07f5cecb24b21427e
[ "MIT" ]
12
2018-01-24T20:58:10.000Z
2021-12-21T15:02:10.000Z
lib/util/log.py
mrmansano/sublime-ycmd
fece62f0ce4e9cbf96ed8ba07f5cecb24b21427e
[ "MIT" ]
4
2018-01-13T14:39:45.000Z
2020-11-25T00:05:27.000Z
lib/util/log.py
mrmansano/sublime-ycmd
fece62f0ce4e9cbf96ed8ba07f5cecb24b21427e
[ "MIT" ]
2
2018-10-23T17:13:44.000Z
2019-05-12T04:10:17.000Z
#!/usr/bin/env python3 ''' lib/util/log.py Contains additional logic to help improve logging output. ''' import collections import functools import logging import os import re # NOTE : ST provides module sources from 'python3.3.zip' # e.g. '/opt/st/python3.3.zip/logging/__init.pyo' # However while runnin...
33.116667
79
0.62349
796fd219cb13fd72a8402c58539c58143bad98b6
4,109
py
Python
esrally/time.py
Kua-Fu/rally
7c58ef6f81f618fbc142dfa58b0ed00a5b05fbae
[ "Apache-2.0" ]
1,577
2016-04-19T12:38:58.000Z
2022-03-31T07:18:25.000Z
esrally/time.py
Kua-Fu/rally
7c58ef6f81f618fbc142dfa58b0ed00a5b05fbae
[ "Apache-2.0" ]
1,079
2016-04-19T12:09:16.000Z
2022-03-31T05:38:50.000Z
esrally/time.py
Kua-Fu/rally
7c58ef6f81f618fbc142dfa58b0ed00a5b05fbae
[ "Apache-2.0" ]
300
2016-04-19T18:27:12.000Z
2022-03-23T07:54:16.000Z
# Licensed to Elasticsearch B.V. under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Elasticsearch B.V. licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use this f...
31.607692
123
0.681918
796fd220d3aaeac63c111097dfaf7626e20ad6fd
202,429
py
Python
src/sage/combinat/cluster_algebra_quiver/cluster_seed.py
rwst/sage
a9d274b9338e6ee24bf35ea8d25875507e51e455
[ "BSL-1.0" ]
1
2016-11-04T16:31:48.000Z
2016-11-04T16:31:48.000Z
src/sage/combinat/cluster_algebra_quiver/cluster_seed.py
rwst/sage
a9d274b9338e6ee24bf35ea8d25875507e51e455
[ "BSL-1.0" ]
null
null
null
src/sage/combinat/cluster_algebra_quiver/cluster_seed.py
rwst/sage
a9d274b9338e6ee24bf35ea8d25875507e51e455
[ "BSL-1.0" ]
null
null
null
# -*- coding: utf-8 -*- r""" ClusterSeed A *cluster seed* is a pair `(B,\mathbf{x})` with `B` being a *skew-symmetrizable* `(n+m \times n)` *-matrix* and with `\mathbf{x}` being an `n`-tuple of *independent elements* in the field of rational functions in `n` variables. For the compendium on the cluster algebra and qu...
38.616749
391
0.515178
796fd28c9bd6d751d43a8bab43c209a9ffbc57f2
809
py
Python
main.py
stanlee321/object_detector
9d678a6f28e697e35920937b64d8bafb1b3834f4
[ "Apache-2.0" ]
null
null
null
main.py
stanlee321/object_detector
9d678a6f28e697e35920937b64d8bafb1b3834f4
[ "Apache-2.0" ]
null
null
null
main.py
stanlee321/object_detector
9d678a6f28e697e35920937b64d8bafb1b3834f4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python2.7 # test_dnnmodel.py import argparse from ownLibraries.object_detection import model_cardetector parser = argparse.ArgumentParser(description='Add folder to process') parser.add_argument('-f', '--checkImage', default = None, type=str, help="Add path to the folder to check") args = parser.parse...
27.896552
107
0.744129
796fd393a568236d5ff17843a6417dd72d94e27d
11,318
py
Python
main_vicreg.py
jeanne-ber/vicreg
5e7b38f4586384bbb0d9a035352fab1d8f03b3b4
[ "MIT" ]
206
2022-03-02T11:54:31.000Z
2022-03-31T16:18:14.000Z
main_vicreg.py
jeanne-ber/vicreg
5e7b38f4586384bbb0d9a035352fab1d8f03b3b4
[ "MIT" ]
4
2022-03-15T18:55:37.000Z
2022-03-31T21:08:26.000Z
main_vicreg.py
jeanne-ber/vicreg
5e7b38f4586384bbb0d9a035352fab1d8f03b3b4
[ "MIT" ]
35
2022-03-03T15:07:46.000Z
2022-03-31T14:03:56.000Z
# Copyright (c) Meta Platforms, Inc. and 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. from pathlib import Path import argparse import json import math import os import sys import time import torch import to...
33.386431
117
0.586499
796fd4fd4365ff65b4a2d7542a2d0927b4d17b37
14,626
py
Python
modeling/backbone/drn.py
ichimei/dlcot
6ba405a5fc75be7b5c93c5615d99e1311dc85187
[ "MIT" ]
2
2021-03-17T10:25:29.000Z
2021-09-09T09:50:09.000Z
modeling/backbone/drn.py
ichimei/dlcot
6ba405a5fc75be7b5c93c5615d99e1311dc85187
[ "MIT" ]
null
null
null
modeling/backbone/drn.py
ichimei/dlcot
6ba405a5fc75be7b5c93c5615d99e1311dc85187
[ "MIT" ]
null
null
null
import torch.nn as nn import math import torch.utils.model_zoo as model_zoo from dlcot.modeling.sync_batchnorm.batchnorm import SynchronizedBatchNorm2d webroot = 'http://dl.yf.io/drn/' model_urls = { 'resnet50': 'https://download.pytorch.org/models/resnet50-19c8e357.pth', 'drn-c-26': webroot + 'drn_c_26-ddedf...
36.292804
100
0.580815
796fd5150cfecf418dec46dbd9d005ecb98446c7
3,400
py
Python
src/garage/tf/_functions.py
thanhkaist/garage
1d840df357282a675b8fce839bb0e5f72a8abba9
[ "MIT" ]
7
2022-02-01T03:02:24.000Z
2022-02-10T12:54:05.000Z
src/garage/tf/_functions.py
thanhkaist/garage
1d840df357282a675b8fce839bb0e5f72a8abba9
[ "MIT" ]
null
null
null
src/garage/tf/_functions.py
thanhkaist/garage
1d840df357282a675b8fce839bb0e5f72a8abba9
[ "MIT" ]
2
2022-02-03T03:33:25.000Z
2022-02-10T12:54:07.000Z
"""Utility functions for tf-based Reinforcement learning algorithms.""" import numpy as np from garage.misc import tensor_utils as np_tensor_utils from garage.tf.misc import tensor_utils def paths_to_tensors(paths, max_path_length, baseline_predictions, discount, gae_lambda): """Return proce...
34
78
0.65
796fd533eb5780ed01109661c11e3fcb52c4ea54
1,778
py
Python
var/spack/repos/builtin/packages/patchelf/package.py
healther/spack
389e9c11f6927ea27d629ed0e77ca0a52e402bc9
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2020-08-13T15:24:33.000Z
2021-10-18T18:38:19.000Z
var/spack/repos/builtin/packages/patchelf/package.py
abouteiller/spack
95f54195021d3d32dec75bed6d8dbbaeac3d921f
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
4
2020-07-24T17:09:12.000Z
2022-01-17T22:39:06.000Z
var/spack/repos/builtin/packages/patchelf/package.py
abouteiller/spack
95f54195021d3d32dec75bed6d8dbbaeac3d921f
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2019-01-22T14:01:28.000Z
2020-07-23T21:35:12.000Z
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * import os class Patchelf(AutotoolsPackage): """PatchELF is a small utility to modify the dynamic ...
42.333333
94
0.646232
796fd809fccd8da8feff96b23cd0cebdf9d8ebf1
4,787
py
Python
mmtrack/core/utils/visualization.py
sht47/mmtracking
5a25e418e9c598d1b576bce8702f5e156cbbefe7
[ "Apache-2.0" ]
1
2021-04-30T01:49:17.000Z
2021-04-30T01:49:17.000Z
mmtrack/core/utils/visualization.py
sht47/mmtracking
5a25e418e9c598d1b576bce8702f5e156cbbefe7
[ "Apache-2.0" ]
null
null
null
mmtrack/core/utils/visualization.py
sht47/mmtracking
5a25e418e9c598d1b576bce8702f5e156cbbefe7
[ "Apache-2.0" ]
1
2021-07-15T00:26:35.000Z
2021-07-15T00:26:35.000Z
import random import cv2 import matplotlib import matplotlib.pyplot as plt import mmcv import numpy as np import seaborn as sns from matplotlib.patches import Rectangle def random_color(seed): """Random a color according to the input seed.""" random.seed(seed) colors = sns.color_palette() color = ran...
28.837349
79
0.529977
796fd84d6dadef8778b3b48ef45dd3fa34fdaf49
3,958
py
Python
strips_sat_x_1_9.py
connorescajeda/sat
b121c8fba702f09204864f9aade1e813a10397d2
[ "Apache-2.0" ]
null
null
null
strips_sat_x_1_9.py
connorescajeda/sat
b121c8fba702f09204864f9aade1e813a10397d2
[ "Apache-2.0" ]
null
null
null
strips_sat_x_1_9.py
connorescajeda/sat
b121c8fba702f09204864f9aade1e813a10397d2
[ "Apache-2.0" ]
null
null
null
from pyhop_anytime import * global state, goals state = State('state') state.calibration_target = Oset([('instrument0','groundstation0'),('instrument1','star3'),('instrument10','star3'),('instrument11','star1'),('instrument12','groundstation0'),('instrument13','star1'),('instrument14','groundstation2'),('instrument15',...
232.823529
1,205
0.718039
796fd87627c682d5b9f0d14d316b4b5beffbc83d
154
py
Python
settings/__init__.py
colinshin/webpyBlog
d46e3570d17a9202b1a7346884bf7b35afd90abd
[ "MIT" ]
1
2021-08-02T10:34:45.000Z
2021-08-02T10:34:45.000Z
settings/__init__.py
colinshin/webpyCMS
d46e3570d17a9202b1a7346884bf7b35afd90abd
[ "MIT" ]
null
null
null
settings/__init__.py
colinshin/webpyCMS
d46e3570d17a9202b1a7346884bf7b35afd90abd
[ "MIT" ]
null
null
null
from .product import ProductConfig from .develop import DevelopConfig mod = 1 if mod == 1: config = DevelopConfig else: config = ProductConfig
14
34
0.727273
796fd8b497631aac332fa8b5ce5ff4582fcde8a2
6,757
py
Python
examples/u2f_server.py
frankcash/python-u2flib-server
79e8cc77388fa952d4db52491ec3b70b0554bafc
[ "BSD-2-Clause" ]
1
2021-08-22T19:38:54.000Z
2021-08-22T19:38:54.000Z
examples/u2f_server.py
shuffle2/python-u2flib-server
501fd588fac7c20839b7c92031f44ae5ac13a6ac
[ "BSD-2-Clause" ]
null
null
null
examples/u2f_server.py
shuffle2/python-u2flib-server
501fd588fac7c20839b7c92031f44ae5ac13a6ac
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2013 Yubico AB # All rights reserved. # # Redistribution and use in source and binary forms, with or # without modification, are permitted provided that the following # conditions are met: # # 1. Redistributions of source code must retain the above copyright # notice...
37.126374
82
0.651473
796fda4bd2e8c4093e7f2e70e1490eef2c7777de
1,984
py
Python
ppocr/postprocess/__init__.py
wowowoll/ypwordOCR
b51cd451c2f8ad742f4d67b97f1dcb4db2f33db5
[ "Apache-2.0" ]
null
null
null
ppocr/postprocess/__init__.py
wowowoll/ypwordOCR
b51cd451c2f8ad742f4d67b97f1dcb4db2f33db5
[ "Apache-2.0" ]
null
null
null
ppocr/postprocess/__init__.py
wowowoll/ypwordOCR
b51cd451c2f8ad742f4d67b97f1dcb4db2f33db5
[ "Apache-2.0" ]
null
null
null
# copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve. # # 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...
39.68
107
0.781754
796fdb0627401c3e64319ed4d3c8f4d03eef0c6b
1,362
py
Python
src/model.py
iammcy/Fed-Learning
5de2930061cdf7803456b7e73b7934d5e334e2c9
[ "Apache-2.0" ]
null
null
null
src/model.py
iammcy/Fed-Learning
5de2930061cdf7803456b7e73b7934d5e334e2c9
[ "Apache-2.0" ]
null
null
null
src/model.py
iammcy/Fed-Learning
5de2930061cdf7803456b7e73b7934d5e334e2c9
[ "Apache-2.0" ]
null
null
null
from torch import nn import torch.nn.functional as F class LinearModel(nn.Module): def __init__(self) -> None: super(LinearModel, self).__init__() self.flatten = nn.Flatten() self.linear_relu_stack = nn.Sequential( nn.Linear(28*28, 512), nn.ReLU(), nn.Lin...
28.375
97
0.527166
796fdd21509d56bcbf22f2383359c7ce3f27a0bb
804
py
Python
lib/python2.7/site-packages/networkx/tests/test_exceptions.py
nishaero/wifi-userseg-ryu
1132f2c813b79eff755bdd1a9e73e7ad3980af7c
[ "Apache-2.0" ]
15
2018-04-26T08:17:18.000Z
2021-03-05T08:44:13.000Z
lib/python2.7/site-packages/networkx/tests/test_exceptions.py
nishaero/wifi-userseg-ryu
1132f2c813b79eff755bdd1a9e73e7ad3980af7c
[ "Apache-2.0" ]
71
2015-01-05T16:50:55.000Z
2020-09-30T19:17:47.000Z
lib/python2.7/site-packages/networkx/tests/test_exceptions.py
nishaero/wifi-userseg-ryu
1132f2c813b79eff755bdd1a9e73e7ad3980af7c
[ "Apache-2.0" ]
14
2015-02-15T22:19:18.000Z
2020-09-30T18:54:54.000Z
from nose.tools import raises import networkx as nx # smoke tests for exceptions @raises(nx.NetworkXException) def test_raises_networkx_exception(): raise nx.NetworkXException @raises(nx.NetworkXError) def test_raises_networkx_error(): raise nx.NetworkXError @raises(nx.NetworkXPointlessConcept) def test_rai...
23.647059
45
0.822139
796fdd5f8ad9071f21532d2b68dc788f9ec080ae
873
py
Python
discovery-infra/test_infra/helper_classes/config/cluster_config.py
mchernik/assisted-test-infra
02b2b9533044740dc5de56fcbac7b1ed7f7e1227
[ "Apache-2.0" ]
null
null
null
discovery-infra/test_infra/helper_classes/config/cluster_config.py
mchernik/assisted-test-infra
02b2b9533044740dc5de56fcbac7b1ed7f7e1227
[ "Apache-2.0" ]
206
2020-11-10T07:34:14.000Z
2022-03-29T16:37:50.000Z
discovery-infra/test_infra/helper_classes/config/cluster_config.py
mchernik/assisted-test-infra
02b2b9533044740dc5de56fcbac7b1ed7f7e1227
[ "Apache-2.0" ]
null
null
null
from abc import ABC from dataclasses import dataclass from typing import List from assisted_service_client import models from test_infra.utils.entity_name import ClusterName from .base_entity_config import BaseEntityConfig @dataclass class BaseClusterConfig(BaseEntityConfig, ABC): """ Define all configurati...
30.103448
89
0.760596
796fddc5808b5379a1c1a9cad81139fbb8766349
6,359
py
Python
skaffolder.py
christabor/skaffold
0d705d3907bc05e781141f62002a981683813658
[ "Apache-2.0" ]
11
2017-02-20T08:01:53.000Z
2021-07-15T17:19:04.000Z
skaffolder.py
christabor/skaffold
0d705d3907bc05e781141f62002a981683813658
[ "Apache-2.0" ]
null
null
null
skaffolder.py
christabor/skaffold
0d705d3907bc05e781141f62002a981683813658
[ "Apache-2.0" ]
1
2018-02-09T07:40:31.000Z
2018-02-09T07:40:31.000Z
from jinja2 import Environment, PackageLoader import os import inflection __author__ = """Chris Tabor (dxdstudio@gmail.com)""" class SkaffolderIO: """Mixin class for dealing with raw IO aspects of scaffolding. = route (urls) view model view collection delete model update mode...
32.116162
79
0.574461
796fe0c81c09bc958c1fbc92d6dbdfe2b76a3d07
17,704
py
Python
archive/confirmed_cases/covidOntario.py
flatten-official/flatten-scripts
b19a2275ebd4607b8534d82b7d8035bde6a9b8a9
[ "MIT" ]
2
2021-03-19T15:41:39.000Z
2021-09-19T15:22:03.000Z
archive/confirmed_cases/covidOntario.py
flatten-official/flatten-scripts
b19a2275ebd4607b8534d82b7d8035bde6a9b8a9
[ "MIT" ]
null
null
null
archive/confirmed_cases/covidOntario.py
flatten-official/flatten-scripts
b19a2275ebd4607b8534d82b7d8035bde6a9b8a9
[ "MIT" ]
1
2021-09-19T15:22:05.000Z
2021-09-19T15:22:05.000Z
''' covidOntario.py A script to get up to date Covid-19 Data from the public health units of Ontario. Author: Ivan Nesterovic Born: 2020-03-25 ''' ## NOTE: Some Public Health units have put their data in text so text parsing is necessary, this may break and require checking over. import bs4 import requests import jso...
33.340866
176
0.604553
796fe2dc8cb6ab7e0f461013cee32acf2a2d4d1b
1,318
py
Python
profiles/models.py
seyedmo30/mo30
b34a4b828e0f2e6ec144fa5ae015aab1ed206c37
[ "MIT" ]
3
2021-06-23T06:47:19.000Z
2022-01-08T17:20:48.000Z
profiles/models.py
seyedmo30/mo30
b34a4b828e0f2e6ec144fa5ae015aab1ed206c37
[ "MIT" ]
1
2022-02-28T04:33:58.000Z
2022-02-28T04:33:58.000Z
profiles/models.py
seyedmo30/mo30
b34a4b828e0f2e6ec144fa5ae015aab1ed206c37
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractUser from index.settings import AUTH_USER_MODEL as User from general.models import Music from django.db.models.signals import post_save from django.dispatch import receiver class CustomUser(AbstractUser): img_user = models.ImageField(uplo...
38.764706
122
0.763278
796fe3aca6c30a51481718e26e4cd09cfa8af005
1,762
py
Python
src/Warm-up Challenges/Counting Valleys.py
bluella/hackerrank-solutions-explained
9f70a00f9dee08515fcaa621f2f0fafe00346a7f
[ "MIT" ]
null
null
null
src/Warm-up Challenges/Counting Valleys.py
bluella/hackerrank-solutions-explained
9f70a00f9dee08515fcaa621f2f0fafe00346a7f
[ "MIT" ]
null
null
null
src/Warm-up Challenges/Counting Valleys.py
bluella/hackerrank-solutions-explained
9f70a00f9dee08515fcaa621f2f0fafe00346a7f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ https://www.hackerrank.com/challenges/counting-valleys An avid hiker keeps meticulous records of their hikes. During the last hike that took exactly steps, for every step it was noted if it was an uphill U, or a downhill D step. Hikes always start and end at sea level, and each step up or dow...
27.968254
96
0.679909