hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
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
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
533c689999c368cfd2824982d040a984df189702
3,909
py
Python
tests/test_webframe.py
zsolt-beringer/osm-gimmisn
b0cbf2e88c1846ef49e33fd32aeb6b4ecabea4c0
[ "MIT" ]
null
null
null
tests/test_webframe.py
zsolt-beringer/osm-gimmisn
b0cbf2e88c1846ef49e33fd32aeb6b4ecabea4c0
[ "MIT" ]
null
null
null
tests/test_webframe.py
zsolt-beringer/osm-gimmisn
b0cbf2e88c1846ef49e33fd32aeb6b4ecabea4c0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Copyright (c) 2019 Miklos Vajna and contributors. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """The test_webframe module covers the webframe module.""" from typing import List from typing import TYPE_CHECKING from typing import Tupl...
33.991304
89
0.643643
3,199
0.818368
0
0
0
0
0
0
1,060
0.271169
533cc101e9c7e5be34bb424dc7dd27a2b33a585a
6,533
py
Python
spotify.py
nimatest1234/telegram_spotify_downloader_bot
7e0a9ba32ee219752582b917867600653337f3d1
[ "MIT" ]
null
null
null
spotify.py
nimatest1234/telegram_spotify_downloader_bot
7e0a9ba32ee219752582b917867600653337f3d1
[ "MIT" ]
null
null
null
spotify.py
nimatest1234/telegram_spotify_downloader_bot
7e0a9ba32ee219752582b917867600653337f3d1
[ "MIT" ]
null
null
null
from __future__ import unicode_literals import spotipy from spotipy.oauth2 import SpotifyClientCredentials import requests from youtube_search import YoutubeSearch import youtube_dl import eyed3.id3 import eyed3 import lyricsgenius import telepot spotifyy = spotipy.Spotify( client_credentials_manager=SpotifyClient...
34.026042
106
0.590693
0
0
0
0
0
0
0
0
1,348
0.206337
533d2e7d7e3bbba4894560b223b684f968b2d464
5,512
py
Python
tests/test_atomdict.py
Tillsten/atom
19b6291f7d3c9b3828dcd73e900b8dcbc2ddf92d
[ "BSD-3-Clause-Clear" ]
null
null
null
tests/test_atomdict.py
Tillsten/atom
19b6291f7d3c9b3828dcd73e900b8dcbc2ddf92d
[ "BSD-3-Clause-Clear" ]
null
null
null
tests/test_atomdict.py
Tillsten/atom
19b6291f7d3c9b3828dcd73e900b8dcbc2ddf92d
[ "BSD-3-Clause-Clear" ]
null
null
null
#------------------------------------------------------------------------------ # Copyright (c) 2018-2019, Nucleic Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file LICENSE, distributed with this software. #------------------------------------------------...
28.559585
79
0.622097
385
0.069848
0
0
2,263
0.410559
0
0
905
0.164187
533df513d0a6e1b0c3e33a0160d65ef452f32685
433
py
Python
dippy/core/timestamp.py
eggveloper/dippy.core
8ad613a50bcbf52132de1ece889e22fa4aba3a44
[ "MIT" ]
4
2021-04-23T10:26:28.000Z
2021-08-29T15:34:46.000Z
dippy/core/timestamp.py
eggveloper/dippy.core
8ad613a50bcbf52132de1ece889e22fa4aba3a44
[ "MIT" ]
23
2021-05-27T13:48:32.000Z
2021-12-15T15:41:28.000Z
dippy/core/timestamp.py
eggveloper/dippy.core
8ad613a50bcbf52132de1ece889e22fa4aba3a44
[ "MIT" ]
7
2021-05-22T17:16:57.000Z
2021-12-15T15:19:12.000Z
from datetime import datetime class Timestamp(float): def __new__(cls, value=None): return super().__new__( cls, datetime.utcnow().timestamp() if value is None else value ) def to_date(self) -> datetime: return datetime.utcfromtimestamp(self) def __repr__(self): ...
24.055556
74
0.625866
400
0.923788
0
0
0
0
0
0
36
0.083141
533dfb21c5c2375616c84f6be95236ba70b32b20
701
py
Python
bible/admin.py
tushortz/biblelover
8ef4980d7f68e4037874373fb0ecde12d2d63d76
[ "MIT" ]
null
null
null
bible/admin.py
tushortz/biblelover
8ef4980d7f68e4037874373fb0ecde12d2d63d76
[ "MIT" ]
null
null
null
bible/admin.py
tushortz/biblelover
8ef4980d7f68e4037874373fb0ecde12d2d63d76
[ "MIT" ]
null
null
null
from django.contrib import admin from bible.models import Bible, VerseOfTheDay @admin.register(Bible) class BibleAdmin(admin.ModelAdmin): list_display = ['__str__', 'text'] readonly_fields = ['book', 'chapter', 'verse', 'text', 'category'] search_fields = ['text', 'book', 'chapter'] list_filter = ['ca...
26.961538
70
0.694722
562
0.801712
0
0
616
0.878745
0
0
104
0.148359
533f6cd5ce74f507059e39e73891411c50d53556
15,158
py
Python
typy/nodes.py
Procrat/typy
668cedb7f929256a09f565af9ee43c02889bec3f
[ "MIT" ]
3
2016-03-08T09:55:20.000Z
2016-09-09T12:54:12.000Z
typy/nodes.py
Procrat/typy
668cedb7f929256a09f565af9ee43c02889bec3f
[ "MIT" ]
null
null
null
typy/nodes.py
Procrat/typy
668cedb7f929256a09f565af9ee43c02889bec3f
[ "MIT" ]
null
null
null
""" Our own implementation of an abstract syntax tree (AST). The convert function recursively converts a Python AST (from the module `ast`) to our own AST (of the class `Node`). """ import ast from logging import debug from typy.builtin import data_types from typy.exceptions import NotYetSupported, NoSuchAttribute, ...
29.547758
79
0.605159
13,900
0.917008
486
0.032062
0
0
0
0
1,844
0.121652
533f744d195d3508a544cf4533f2224861641646
2,310
py
Python
anonlink-entity-service/backend/entityservice/integrationtests/objectstoretests/test_objectstore.py
Sam-Gresh/linkage-agent-tools
f405c7efe3fa82d99bc047f130c0fac6f3f5bf82
[ "Apache-2.0" ]
1
2020-05-19T07:29:31.000Z
2020-05-19T07:29:31.000Z
backend/entityservice/integrationtests/objectstoretests/test_objectstore.py
hardbyte/anonlink-entity-service
3c1815473bc8169ca571532c18e0913a45c704de
[ "Apache-2.0" ]
null
null
null
backend/entityservice/integrationtests/objectstoretests/test_objectstore.py
hardbyte/anonlink-entity-service
3c1815473bc8169ca571532c18e0913a45c704de
[ "Apache-2.0" ]
null
null
null
""" Testing: - uploading over existing files - using deleted credentials - using expired credentials """ import io import minio from minio import Minio import pytest from minio.credentials import AssumeRoleProvider, Credentials from entityservice.object_store import connect_to_object_store, connect_to_upload_obje...
32.535211
117
0.685281
1,641
0.71039
0
0
0
0
0
0
663
0.287013
533f98ae9a010e07bbde7ba6ae8dc19383efacaf
1,731
py
Python
soil/build/lib/soil/db/sqlalchemy/api.py
JackDan9/soil
ae612a4634634aace834491fbdefbc69e6167674
[ "MIT" ]
1
2020-08-06T11:58:35.000Z
2020-08-06T11:58:35.000Z
soil/build/lib/soil/db/sqlalchemy/api.py
JackDan9/soil
ae612a4634634aace834491fbdefbc69e6167674
[ "MIT" ]
4
2019-12-13T11:27:28.000Z
2022-02-27T11:58:38.000Z
soil/soil/db/sqlalchemy/api.py
JackDan9/soil
ae612a4634634aace834491fbdefbc69e6167674
[ "MIT" ]
null
null
null
# Copyright 2020 Soil, Inc. # Copyright (c) 2011 X.commerce, a business unit of eBay Inc. # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); yo...
25.086957
78
0.716927
0
0
0
0
0
0
0
0
847
0.489313
533fd29f460114d34ef9d86ca150f4d2360ad787
26,237
py
Python
tests/test_models.py
kykrueger/redash
5fd78fdb2324a7c194e8a99c13deb5a57268866c
[ "BSD-2-Clause" ]
1
2019-11-19T06:10:22.000Z
2019-11-19T06:10:22.000Z
tests/test_models.py
kykrueger/redash
5fd78fdb2324a7c194e8a99c13deb5a57268866c
[ "BSD-2-Clause" ]
3
2022-02-14T01:15:27.000Z
2022-02-27T11:21:50.000Z
tests/test_models.py
kykrueger/redash
5fd78fdb2324a7c194e8a99c13deb5a57268866c
[ "BSD-2-Clause" ]
1
2019-12-06T08:30:35.000Z
2019-12-06T08:30:35.000Z
import calendar import datetime from unittest import TestCase import pytz from dateutil.parser import parse as date_parse from tests import BaseTestCase from redash import models, redis_connection from redash.models import db, types from redash.utils import gen_query_hash, utcnow class DashboardTest(BaseTestCase): ...
46.355124
149
0.675192
24,698
0.941342
0
0
0
0
0
0
2,975
0.113389
534038a8e2bcedd293d3b518dec4b55832e33688
407
py
Python
.history/List of Capstone Projects/FibonacciSequence_20200516134123.py
EvanthiosPapadopoulos/Python3
ab773fd458e365c1510f98ecac65965234c881e8
[ "MIT" ]
1
2020-05-18T17:50:00.000Z
2020-05-18T17:50:00.000Z
.history/List of Capstone Projects/FibonacciSequence_20200516134123.py
EvanthiosPapadopoulos/Python3
ab773fd458e365c1510f98ecac65965234c881e8
[ "MIT" ]
null
null
null
.history/List of Capstone Projects/FibonacciSequence_20200516134123.py
EvanthiosPapadopoulos/Python3
ab773fd458e365c1510f98ecac65965234c881e8
[ "MIT" ]
null
null
null
''' Fibonacci Sequence ''' import HeaderOfFiles def fibonacciSeq(number): ''' Generate Fibonacci Sequence to the given number. ''' a = 1 b = 1 for i in range(number): yield a a,b = b,a+b while True: try: f = int(input("Enter a number for Fibonacci: "...
15.074074
56
0.547912
0
0
179
0.439803
0
0
0
0
148
0.363636
53424970ea429b3e768870aa46951fcf76807afa
463
py
Python
composer/algorithms/mixup/__init__.py
jacobfulano/composer
4ad81df2d2ca6e5f0b4922bb2db750cd76ba34e8
[ "Apache-2.0" ]
2
2022-03-17T04:48:04.000Z
2022-03-20T09:06:19.000Z
composer/algorithms/mixup/__init__.py
jacobfulano/composer
4ad81df2d2ca6e5f0b4922bb2db750cd76ba34e8
[ "Apache-2.0" ]
null
null
null
composer/algorithms/mixup/__init__.py
jacobfulano/composer
4ad81df2d2ca6e5f0b4922bb2db750cd76ba34e8
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 MosaicML. All Rights Reserved. from composer.algorithms.mixup.mixup import MixUp as MixUp from composer.algorithms.mixup.mixup import MixUpHparams as MixUpHparams from composer.algorithms.mixup.mixup import mixup_batch as mixup_batch _name = 'MixUp' _class_name = 'MixUp' _functional = 'mixup_batch' _...
33.071429
72
0.786177
0
0
0
0
0
0
0
0
168
0.362851
5342baca137d0ce393a0884db4bee3c92fc045d0
1,503
py
Python
tests/simple_gan_test.py
alanpeixinho/NiftyNet
9a17022a71985974f9e5ca992c765d55860fdd7d
[ "Apache-2.0" ]
null
null
null
tests/simple_gan_test.py
alanpeixinho/NiftyNet
9a17022a71985974f9e5ca992c765d55860fdd7d
[ "Apache-2.0" ]
null
null
null
tests/simple_gan_test.py
alanpeixinho/NiftyNet
9a17022a71985974f9e5ca992c765d55860fdd7d
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import, print_function import unittest import os import tensorflow as tf from tensorflow.keras import regularizers from niftynet.network.simple_gan import SimpleGAN from tests.niftynet_testcase import NiftyNetTestCase class SimpleGANTest(NiftyNetTestCase): def test_3d_reg_shape(s...
30.673469
65
0.642715
1,199
0.797738
0
0
0
0
0
0
10
0.006653
53432a332241c8c7299ada338e326f5385523550
2,537
py
Python
tests/test.py
N4S4/thingspeak_wrapper
f5c26e52c09124b85cc6056782d766d145e65a31
[ "MIT" ]
null
null
null
tests/test.py
N4S4/thingspeak_wrapper
f5c26e52c09124b85cc6056782d766d145e65a31
[ "MIT" ]
null
null
null
tests/test.py
N4S4/thingspeak_wrapper
f5c26e52c09124b85cc6056782d766d145e65a31
[ "MIT" ]
null
null
null
import time import thingspeak_wrapper as tsw # Initiate the class ThingWrapper with (CHANNEL_ID, WRITE_API__KEY, READ_API_KEY) # if is a public channel just pass the CHANNEL_ID argument, api_key defaults are None my_channel = tsw.wrapper.ThingWrapper(501309, '6TQDNWJQ44FA0GAQ', '10EVD2N6YIHI5O7Z') # all set of func...
35.236111
110
0.727237
0
0
0
0
0
0
0
0
1,670
0.658258
5343c13e8e474004e5dc969475dce6a87967180c
6,798
py
Python
neptunecontrib/monitoring/skopt.py
neptune-ai/neptune-contrib
fe5c6853128020aaaa59b440cc5203b940dcd39a
[ "MIT" ]
22
2020-02-23T21:25:34.000Z
2021-06-11T16:34:27.000Z
neptunecontrib/monitoring/skopt.py
neptune-ai/neptune-contrib
fe5c6853128020aaaa59b440cc5203b940dcd39a
[ "MIT" ]
29
2020-02-11T11:10:22.000Z
2021-10-03T09:01:28.000Z
neptunecontrib/monitoring/skopt.py
neptune-ai/neptune-contrib
fe5c6853128020aaaa59b440cc5203b940dcd39a
[ "MIT" ]
7
2020-05-10T06:59:53.000Z
2021-06-11T16:34:32.000Z
# # Copyright (c) 2019, Neptune Labs Sp. z o.o. # # 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 agr...
33.653465
109
0.699912
1,878
0.276258
0
0
178
0.026184
0
0
3,370
0.495734
534549f2acefb6ab739ca7a1aa4369dcb66352ae
5,771
py
Python
snoopy/server/transforms/Maltego.py
aiddenkeli/Snoopy
dd76180145981b3574b419edce39dbb060bd8c8c
[ "MIT" ]
432
2015-01-07T09:56:32.000Z
2022-03-28T12:15:42.000Z
snoopy/server/transforms/Maltego.py
aiddenkeli/Snoopy
dd76180145981b3574b419edce39dbb060bd8c8c
[ "MIT" ]
9
2015-01-31T10:07:28.000Z
2021-09-10T08:13:47.000Z
snoopy/server/transforms/Maltego.py
aiddenkeli/Snoopy
dd76180145981b3574b419edce39dbb060bd8c8c
[ "MIT" ]
135
2015-01-07T15:06:35.000Z
2022-01-24T02:19:55.000Z
#!/usr/bin/python # # This might be horrible code... # ...but it works # Feel free to re-write in a better way # And if you want to - send it to us, we'll update ;) # maltego@paterva.com (2010/10/18) # import sys from xml.dom import minidom class MaltegoEntity(object): value = ""; weight = 100; displayInformation ...
28.428571
234
0.665916
5,506
0.954081
0
0
0
0
0
0
1,261
0.218506
53472d85e82afcf0ecb7050477e184968c938897
1,017
py
Python
metadeploy/api/migrations/0050_add_clickthrough_agreement.py
sfdc-qbranch/MetaDeploy
d22547b3814dbec6aefa4d86b9f81c6f175c1b67
[ "BSD-3-Clause" ]
33
2019-03-20T15:34:39.000Z
2022-03-30T15:59:40.000Z
metadeploy/api/migrations/0050_add_clickthrough_agreement.py
sfdc-qbranch/MetaDeploy
d22547b3814dbec6aefa4d86b9f81c6f175c1b67
[ "BSD-3-Clause" ]
2,718
2019-02-27T19:46:07.000Z
2022-03-11T23:18:09.000Z
metadeploy/api/migrations/0050_add_clickthrough_agreement.py
sfdc-qbranch/MetaDeploy
d22547b3814dbec6aefa4d86b9f81c6f175c1b67
[ "BSD-3-Clause" ]
28
2019-03-28T04:57:16.000Z
2022-02-04T16:49:25.000Z
# Generated by Django 2.1.5 on 2019-02-12 21:18 import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("api", "0049_add_all_other_translations")] operations = [ migrations.CreateModel( name="ClickThroughAgreement...
27.486486
63
0.474926
891
0.876106
0
0
0
0
0
0
179
0.176008
5347385bc4a5e5ee6c5f4719e3b7b90b80842cc8
813
py
Python
invenio_iiif/config.py
dfdan/invenio-iiif
2ea2747fd29ab03b1d38e0ca6d2a9c1506aa8cbc
[ "MIT" ]
3
2019-07-25T16:25:22.000Z
2021-02-04T16:51:55.000Z
invenio_iiif/config.py
dfdan/invenio-iiif
2ea2747fd29ab03b1d38e0ca6d2a9c1506aa8cbc
[ "MIT" ]
26
2018-04-10T14:46:34.000Z
2021-06-16T08:51:09.000Z
invenio_iiif/config.py
dfdan/invenio-iiif
2ea2747fd29ab03b1d38e0ca6d2a9c1506aa8cbc
[ "MIT" ]
22
2018-04-04T09:41:38.000Z
2021-11-25T09:33:40.000Z
# -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 2018 CERN. # # Invenio is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """IIIF API for Invenio.""" IIIF_API_PREFIX = '/iiif/' """URL prefix to IIIF API.""" III...
27.1
72
0.724477
0
0
0
0
0
0
0
0
615
0.756458
5347c20f1c46f18f1b8fe3023d484d25d1b6adf3
14,306
py
Python
pub_ingest.py
mconlon17/vivo-pub-ingest
7c03ecdd6dc5418121a6b92de1572d1cc63f5cb5
[ "BSD-3-Clause" ]
null
null
null
pub_ingest.py
mconlon17/vivo-pub-ingest
7c03ecdd6dc5418121a6b92de1572d1cc63f5cb5
[ "BSD-3-Clause" ]
1
2015-04-04T01:38:51.000Z
2015-04-04T01:38:51.000Z
pubs/pub_ingest.py
mconlon17/vivo-1.5-improvement
44d8335eb7bbe518374a53c0e1f9f39014023ee7
[ "BSD-3-Clause" ]
null
null
null
#!/user/bin/env/python """ pub_ingest.py -- Read a bibtex file and make VIVO RDF The following objects will be made as needed: -- publisher -- journal -- information resource -- timestamp for the information resource -- people -- authorships -- concepts The result...
37.255208
97
0.636306
0
0
0
0
0
0
0
0
6,028
0.421362
5348118dbe9a56351f72fa4c704f5f49e6815a7c
63,527
py
Python
port/platform/common/automation/u_utils.py
u-blox/ubxlib
4dc1b16e6f12354b601cb1c9d799c10f4e2afb54
[ "Apache-2.0" ]
91
2020-12-21T13:10:19.000Z
2022-03-24T23:27:13.000Z
port/platform/common/automation/u_utils.py
u-blox/ubxlib
4dc1b16e6f12354b601cb1c9d799c10f4e2afb54
[ "Apache-2.0" ]
42
2021-01-04T13:35:18.000Z
2022-03-25T08:57:45.000Z
port/platform/common/automation/u_utils.py
u-blox/ubxlib
4dc1b16e6f12354b601cb1c9d799c10f4e2afb54
[ "Apache-2.0" ]
25
2021-01-02T12:37:34.000Z
2022-03-31T01:53:37.000Z
#!/usr/bin/env python '''Generally useful bits and bobs.''' import queue # For PrintThread and exe_run from time import sleep, time, gmtime, strftime # For lock timeout, exe_run timeout and logging from multiprocessing import RLock from copy import copy import threading # For Print...
42.865722
120
0.533332
17,222
0.271097
0
0
0
0
0
0
18,103
0.284965
53481a8ce6431996b6ceac97f012f4f1b1b0f592
8,765
py
Python
faigler_mazeh.py
tcjansen/beer
c6421371b6506cef1adf88cefa9a55db2f04e2dc
[ "MIT" ]
null
null
null
faigler_mazeh.py
tcjansen/beer
c6421371b6506cef1adf88cefa9a55db2f04e2dc
[ "MIT" ]
null
null
null
faigler_mazeh.py
tcjansen/beer
c6421371b6506cef1adf88cefa9a55db2f04e2dc
[ "MIT" ]
null
null
null
import numpy as np import astropy.modeling.blackbody as bb import astropy.constants as const from astropy.io import fits from scipy.interpolate import interp2d class FaiglerMazehFit(): def __init__(self, P_orb, inc, R_star, M_star, T_star, A_ellip=False, A_beam=False, R_p=False, a=False, u=False, g=0.65, logg=...
31.989051
89
0.664803
8,054
0.918882
0
0
0
0
0
0
2,945
0.335995
534843a13bac167037ca6701e9e5332c6dec3235
2,986
py
Python
src/vanilla_pytorch/prune_model.py
f2010126/LTH_Master
709472e7e7962fbf3a56a620c536fb03d359734f
[ "MIT" ]
null
null
null
src/vanilla_pytorch/prune_model.py
f2010126/LTH_Master
709472e7e7962fbf3a56a620c536fb03d359734f
[ "MIT" ]
1
2021-06-30T13:35:32.000Z
2021-06-30T13:35:32.000Z
src/vanilla_pytorch/prune_model.py
f2010126/LTH_Master
709472e7e7962fbf3a56a620c536fb03d359734f
[ "MIT" ]
1
2021-06-30T13:22:15.000Z
2021-06-30T13:22:15.000Z
import torch.nn.utils.prune as prune import torch from src.vanilla_pytorch.utils import count_rem_weights from src.vanilla_pytorch.models.linearnets import LeNet, init_weights from src.vanilla_pytorch.models.resnets import Resnets def remove_pruning(model): for i, (name, module) in enumerate(model.named_modules()...
38.779221
101
0.662425
0
0
0
0
0
0
0
0
976
0.326859
534844fa3b3f1c68231a812a9b687424b61ad180
13,681
py
Python
Grid-neighbor-search/GNS/read_instance_2layer_2LMM_L.py
CitrusAqua/mol-infer
6d5411a2cdc7feda418f9413153b1b66b45a2e96
[ "MIT" ]
null
null
null
Grid-neighbor-search/GNS/read_instance_2layer_2LMM_L.py
CitrusAqua/mol-infer
6d5411a2cdc7feda418f9413153b1b66b45a2e96
[ "MIT" ]
null
null
null
Grid-neighbor-search/GNS/read_instance_2layer_2LMM_L.py
CitrusAqua/mol-infer
6d5411a2cdc7feda418f9413153b1b66b45a2e96
[ "MIT" ]
null
null
null
""" read_instance_BH-cyclic.py """ ''' [seed graph] V_C : "V_C" E_C : "E_C" [core specification] ell_LB : "\ell_{\rm LB}" ell_UB : "\ell_{\rm UB}" cs_LB : "\textsc{cs}_{\rm LB}" cs_UB : "\textsc{cs}_{\rm UB}" ''' import sys def read_pmax_file(filename): with ope...
29.421505
133
0.493166
243
0.017762
0
0
0
0
0
0
1,789
0.130765
53485f957146c431dd0276a23463daf3fd0b5d3c
527
py
Python
gamma/system_input.py
ArtBIT/gamma
4ec03251fcd46cd7ae7b5123ad101064b0f9bdd1
[ "MIT" ]
15
2021-07-19T05:54:00.000Z
2022-03-16T10:24:30.000Z
gamma/system_input.py
ArtBIT/gamma
4ec03251fcd46cd7ae7b5123ad101064b0f9bdd1
[ "MIT" ]
1
2022-02-07T21:27:42.000Z
2022-02-09T12:32:28.000Z
gamma/system_input.py
ArtBIT/gamma
4ec03251fcd46cd7ae7b5123ad101064b0f9bdd1
[ "MIT" ]
3
2022-01-13T10:12:02.000Z
2022-02-08T11:55:29.000Z
from .system import * from .colours import * class InputSystem(System): def init(self): self.key = 'input' def setRequirements(self): self.requiredComponents = ['input'] def updateEntity(self, entity, scene): # don't allow input during a cutscene if scene.cutscene is...
23.954545
65
0.620493
471
0.893738
0
0
0
0
0
0
95
0.180266
53487b0b2e562895d1a372a23c376324cd33f385
3,484
py
Python
tensorflow_federated/python/research/utils/checkpoint_utils_test.py
mcognetta/federated
fa0c1a00b5d77768bc2f38f503f3ef1a65693945
[ "Apache-2.0" ]
null
null
null
tensorflow_federated/python/research/utils/checkpoint_utils_test.py
mcognetta/federated
fa0c1a00b5d77768bc2f38f503f3ef1a65693945
[ "Apache-2.0" ]
null
null
null
tensorflow_federated/python/research/utils/checkpoint_utils_test.py
mcognetta/federated
fa0c1a00b5d77768bc2f38f503f3ef1a65693945
[ "Apache-2.0" ]
null
null
null
# Lint as: python3 # Copyright 2019, The TensorFlow Federated Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required ...
35.55102
77
0.751148
2,476
0.710677
0
0
720
0.206659
0
0
1,220
0.350172
534883bea976b0a78d54a9c4ba718667cfc4884f
2,923
py
Python
website/models/user.py
alexli0707/pyforum
4f5ea4a0b07e094e24410ae699016590b9c20d59
[ "Apache-2.0" ]
4
2016-10-13T02:03:55.000Z
2017-04-05T03:21:46.000Z
website/models/user.py
alexli0707/pyforum
4f5ea4a0b07e094e24410ae699016590b9c20d59
[ "Apache-2.0" ]
null
null
null
website/models/user.py
alexli0707/pyforum
4f5ea4a0b07e094e24410ae699016590b9c20d59
[ "Apache-2.0" ]
1
2019-01-01T09:36:28.000Z
2019-01-01T09:36:28.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import peewee from flask import current_app,abort from flask.ext.login import AnonymousUserMixin, UserMixin from itsdangerous import TimedJSONWebSignatureSerializer as Serializer from peewee import Model, IntegerField, CharField,PrimaryKeyField from website.app import db_wr...
27.317757
99
0.63599
2,303
0.764862
0
0
161
0.053471
0
0
346
0.114912
5349c9c6e7fa65e3aff751e7538d0e98f7e22725
32
py
Python
FlaskApp/__init__.py
robertavram/project5
12a2816b84be994b561f2f693cf34c0fa4f0ca19
[ "Apache-2.0" ]
7
2015-09-20T22:11:01.000Z
2021-11-09T18:04:47.000Z
FlaskApp/__init__.py
robertavram/project5
12a2816b84be994b561f2f693cf34c0fa4f0ca19
[ "Apache-2.0" ]
9
2020-03-24T15:24:59.000Z
2022-03-11T23:13:00.000Z
FlaskApp/__init__.py
robertavram/project5
12a2816b84be994b561f2f693cf34c0fa4f0ca19
[ "Apache-2.0" ]
2
2016-03-06T00:30:54.000Z
2017-04-06T10:15:06.000Z
# application import application
16
18
0.875
0
0
0
0
0
0
0
0
13
0.40625
534a04c3322e1ecaccb87a17247c9e86ecb95e59
2,039
py
Python
sim2net/speed/constant.py
harikuts/dsr_optimization
796e58da578f7841a060233a8981eb69d92b798b
[ "MIT" ]
12
2018-06-17T05:29:35.000Z
2022-03-20T23:55:49.000Z
sim2net/speed/constant.py
harikuts/dsr_optimization
796e58da578f7841a060233a8981eb69d92b798b
[ "MIT" ]
2
2020-05-02T16:36:34.000Z
2021-03-12T17:40:02.000Z
sim2net/speed/constant.py
harikuts/dsr_optimization
796e58da578f7841a060233a8981eb69d92b798b
[ "MIT" ]
6
2015-09-09T00:00:22.000Z
2020-05-29T20:18:31.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # (c) 2012 Michal Kalewski <mkalewski at cs.put.poznan.pl> # # This file is a part of the Simple Network Simulator (sim2net) project. # USE, MODIFICATION, COPYING AND DISTRIBUTION OF THIS SOFTWARE IS SUBJECT TO # THE TERMS AND CONDITIONS OF THE MIT LICENSE. YOU SHOULD H...
26.828947
79
0.60667
1,187
0.582148
0
0
171
0.083865
0
0
1,455
0.713585
534aebd1f9c4e46d72dc93169bc74d5b8daf04ea
2,088
py
Python
nexula/nexula_utility/utility_extract_func.py
haryoa/nexula
cc3b5a9b8dd8294bdc47150a1971cb49c4dde225
[ "MIT" ]
3
2020-05-06T08:53:22.000Z
2020-09-24T07:45:38.000Z
nexula/nexula_utility/utility_extract_func.py
haryoa/nexula
cc3b5a9b8dd8294bdc47150a1971cb49c4dde225
[ "MIT" ]
null
null
null
nexula/nexula_utility/utility_extract_func.py
haryoa/nexula
cc3b5a9b8dd8294bdc47150a1971cb49c4dde225
[ "MIT" ]
null
null
null
from nexula.nexula_utility.utility_import_var import import_class class NexusFunctionModuleExtractor(): """ Used for constructing pipeline data preporcessing and feature representer """ def __init__(self, module_class_list, args_dict, **kwargs): """ Instantiate class(es) object in pip...
29.408451
77
0.594828
2,019
0.966954
0
0
0
0
0
0
734
0.351533
534b03a80c1d26fa6e09b0d0a301670d7c14eb1d
717
py
Python
marbas/preprocessing.py
MJ-Jang/Marbas
0a144e4f2ae868604ed4d3b7ae892a53fdebf388
[ "Apache-2.0" ]
null
null
null
marbas/preprocessing.py
MJ-Jang/Marbas
0a144e4f2ae868604ed4d3b7ae892a53fdebf388
[ "Apache-2.0" ]
null
null
null
marbas/preprocessing.py
MJ-Jang/Marbas
0a144e4f2ae868604ed4d3b7ae892a53fdebf388
[ "Apache-2.0" ]
null
null
null
import os from configparser import ConfigParser cfg = ConfigParser() #PATH_CUR = os.getcwd() + '/pynori' PATH_CUR = os.path.dirname(__file__) cfg.read(PATH_CUR+'/config.ini') # PREPROCESSING ENG_LOWER = cfg.getboolean('PREPROCESSING', 'ENG_LOWER') class Preprocessing(object): """Preprocessing modules before tokeniz...
18.868421
56
0.707113
462
0.644351
0
0
0
0
0
0
241
0.336123
534bd05a5abb5701233fcbfbd1621011b3753745
2,106
py
Python
pravash/servicenowplugin/xlr-servicenow-plugin-master/src/main/resources/servicenow/ServiceNowQueryTile.py
amvasudeva/rapidata
7b6e984d24866f5cf474847cf462ac628427cf48
[ "Apache-2.0" ]
null
null
null
pravash/servicenowplugin/xlr-servicenow-plugin-master/src/main/resources/servicenow/ServiceNowQueryTile.py
amvasudeva/rapidata
7b6e984d24866f5cf474847cf462ac628427cf48
[ "Apache-2.0" ]
7
2020-06-30T23:14:35.000Z
2021-08-02T17:08:05.000Z
pravash/servicenowplugin/xlr-servicenow-plugin-master/src/main/resources/servicenow/ServiceNowQueryTile.py
amvasudeva/rapidata
7b6e984d24866f5cf474847cf462ac628427cf48
[ "Apache-2.0" ]
null
null
null
# # THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS # FOR A PARTICULAR PURPOSE. THIS CODE AND INFORMATION ARE NOT SUPPORTED BY XEBIALABS. # import com.xhaus.jyson.JysonCodec...
39
141
0.702279
0
0
0
0
0
0
0
0
667
0.316714
534bea3e62a4def92bc88bd345a7c584ed8fc91f
272
py
Python
bc/recruitment/migrations/0022_merge_20200331_1633.py
Buckinghamshire-Digital-Service/buckinghamshire-council
bbbdb52b515bcdfc79a2bd9198dfa4828405370e
[ "BSD-3-Clause" ]
1
2021-02-27T07:27:17.000Z
2021-02-27T07:27:17.000Z
bc/recruitment/migrations/0022_merge_20200331_1633.py
Buckinghamshire-Digital-Service/buckinghamshire-council
bbbdb52b515bcdfc79a2bd9198dfa4828405370e
[ "BSD-3-Clause" ]
null
null
null
bc/recruitment/migrations/0022_merge_20200331_1633.py
Buckinghamshire-Digital-Service/buckinghamshire-council
bbbdb52b515bcdfc79a2bd9198dfa4828405370e
[ "BSD-3-Clause" ]
1
2021-06-09T15:56:54.000Z
2021-06-09T15:56:54.000Z
# Generated by Django 2.2.10 on 2020-03-31 15:33 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("recruitment", "0021_merge_20200331_1503"), ("recruitment", "0013_button_block"), ] operations = []
19.428571
52
0.665441
186
0.683824
0
0
0
0
0
0
119
0.4375
534d47fdc7a25cba8b55b44734cb77c92e4d9b0f
1,580
py
Python
Stage_3/Task11_Graph/depth_first_search.py
Pyabecedarian/Algorithms-and-Data-Structures-using-Python
08642357df60d48cb185b5487150204b42764260
[ "MIT" ]
null
null
null
Stage_3/Task11_Graph/depth_first_search.py
Pyabecedarian/Algorithms-and-Data-Structures-using-Python
08642357df60d48cb185b5487150204b42764260
[ "MIT" ]
null
null
null
Stage_3/Task11_Graph/depth_first_search.py
Pyabecedarian/Algorithms-and-Data-Structures-using-Python
08642357df60d48cb185b5487150204b42764260
[ "MIT" ]
null
null
null
""" The Depth First Search (DFS) The goal of a dfs is to search as deeply as possible, connecting as many nodes in the graph as possible and branching where necessary. Think of the BFS that builds a search tree one level at a time, whereas the DFS creates a search tree by exploring one branch of the tree a...
30.384615
111
0.623418
754
0.477215
0
0
0
0
0
0
810
0.512658
534d9ad6eb702336fba7d16987e60cced1fa2979
250
py
Python
salt/_modules/freebsd_common.py
rbtcollins/rusty_rail
6ab8a95247b42a81add03500a75ce6678ede5d58
[ "Apache-2.0" ]
16
2017-08-23T20:04:36.000Z
2020-03-09T19:12:30.000Z
salt/_modules/freebsd_common.py
rbtcollins/rusty_rail
6ab8a95247b42a81add03500a75ce6678ede5d58
[ "Apache-2.0" ]
null
null
null
salt/_modules/freebsd_common.py
rbtcollins/rusty_rail
6ab8a95247b42a81add03500a75ce6678ede5d58
[ "Apache-2.0" ]
2
2018-08-18T04:59:26.000Z
2021-02-20T05:22:57.000Z
def sysrc(value): """Call sysrc. CLI Example: .. code-block:: bash salt '*' freebsd_common.sysrc sshd_enable=YES salt '*' freebsd_common.sysrc static_routes """ return __salt__['cmd.run_all']("sysrc %s" % value)
22.727273
54
0.612
0
0
0
0
0
0
0
0
195
0.78
534f1909a1ab524bb2f051997a7532e48c09b6dd
1,429
py
Python
auth0/v3/management/blacklists.py
jhunken/auth0-python
af5d863ffe75a4a7cd729c9d084cad6b37bd632e
[ "MIT" ]
null
null
null
auth0/v3/management/blacklists.py
jhunken/auth0-python
af5d863ffe75a4a7cd729c9d084cad6b37bd632e
[ "MIT" ]
null
null
null
auth0/v3/management/blacklists.py
jhunken/auth0-python
af5d863ffe75a4a7cd729c9d084cad6b37bd632e
[ "MIT" ]
null
null
null
from .rest import RestClient class Blacklists(object): """Auth0 blacklists endpoints Args: domain (str): Your Auth0 domain, e.g: 'username.auth0.com' token (str): Management API v2 Token telemetry (bool, optional): Enable or disable Telemetry (defaults to True) """ ...
28.58
83
0.588523
1,397
0.977607
0
0
0
0
0
0
960
0.671798
534f4e03ba246b728b20809e5d71ee70468b20fb
2,886
py
Python
test_backtest/simplebacktest.py
qzm/QUANTAXIS
055fdc16d67670fb4770e7097865336199e55f3e
[ "MIT" ]
1
2021-05-20T12:33:46.000Z
2021-05-20T12:33:46.000Z
test_backtest/simplebacktest.py
qzm/QUANTAXIS
055fdc16d67670fb4770e7097865336199e55f3e
[ "MIT" ]
null
null
null
test_backtest/simplebacktest.py
qzm/QUANTAXIS
055fdc16d67670fb4770e7097865336199e55f3e
[ "MIT" ]
null
null
null
# coding=utf-8 # # The MIT License (MIT) # # Copyright (c) 2016-2018 yutiansut/QUANTAXIS # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation th...
37.480519
200
0.711365
0
0
0
0
0
0
0
0
1,718
0.566997
53500afefcda695385af9237df24a3052bec880e
4,010
py
Python
artview/components/field.py
jjhelmus/artview
2af5ccad8d509d11ef6da7c97bee0f7b255b6879
[ "BSD-3-Clause" ]
null
null
null
artview/components/field.py
jjhelmus/artview
2af5ccad8d509d11ef6da7c97bee0f7b255b6879
[ "BSD-3-Clause" ]
null
null
null
artview/components/field.py
jjhelmus/artview
2af5ccad8d509d11ef6da7c97bee0f7b255b6879
[ "BSD-3-Clause" ]
null
null
null
""" field.py Class instance used for modifying field via Display window. """ # Load the needed packages from functools import partial from ..core import Variable, Component, QtGui, QtCore class FieldButtonWindow(Component): '''Class to display a Window with Field name radio buttons.''' Vradar = None #: s...
32.868852
77
0.605486
3,816
0.951621
0
0
0
0
0
0
1,929
0.481047
5350847a4e985147242bdddaf7eae8ed5d884139
4,101
py
Python
rest_framework_mongoengine/fields.py
Careerleaf/django-rest-framework-mongoengine
fc28dbf7af760528f6f7247e567328df46458799
[ "MIT" ]
null
null
null
rest_framework_mongoengine/fields.py
Careerleaf/django-rest-framework-mongoengine
fc28dbf7af760528f6f7247e567328df46458799
[ "MIT" ]
null
null
null
rest_framework_mongoengine/fields.py
Careerleaf/django-rest-framework-mongoengine
fc28dbf7af760528f6f7247e567328df46458799
[ "MIT" ]
null
null
null
from bson.errors import InvalidId from django.core.exceptions import ValidationError from django.utils.encoding import smart_str from mongoengine import dereference from mongoengine.base.document import BaseDocument from mongoengine.document import Document from rest_framework import serializers from mongoengine.fields...
29.717391
84
0.641795
3,662
0.892953
0
0
0
0
0
0
572
0.139478
5351727e655c86d144b817ff63881c17c72740b2
1,657
py
Python
tests/conftest.py
bbhunter/fuzz-lightyear
75c1318d2f747a4fac6b55a46649c944528769ba
[ "Apache-2.0" ]
169
2019-11-06T20:30:16.000Z
2022-01-22T15:55:19.000Z
tests/conftest.py
bbhunter/fuzz-lightyear
75c1318d2f747a4fac6b55a46649c944528769ba
[ "Apache-2.0" ]
29
2019-09-24T19:44:03.000Z
2021-10-01T09:29:30.000Z
tests/conftest.py
bbhunter/fuzz-lightyear
75c1318d2f747a4fac6b55a46649c944528769ba
[ "Apache-2.0" ]
27
2019-12-27T19:57:28.000Z
2021-12-08T05:38:10.000Z
import pytest from fuzz_lightyear.datastore import _ALL_POST_FUZZ_HOOKS_BY_OPERATION from fuzz_lightyear.datastore import _ALL_POST_FUZZ_HOOKS_BY_TAG from fuzz_lightyear.datastore import _RERUN_POST_FUZZ_HOOKS_BY_OPERATION from fuzz_lightyear.datastore import _RERUN_POST_FUZZ_HOOKS_BY_TAG from fuzz_lightyear.datastore...
37.659091
72
0.834037
0
0
0
0
931
0.561859
0
0
153
0.092336
5351910933f7e53efc48e359df0170e503cf6959
8,375
py
Python
src/diepvries/field.py
michael-the1/diepvries
ddba9c91ee5fb2014dc576ffb74faa40c3d0d04f
[ "MIT" ]
67
2021-08-20T14:30:49.000Z
2022-03-22T23:37:08.000Z
src/diepvries/field.py
michael-the1/diepvries
ddba9c91ee5fb2014dc576ffb74faa40c3d0d04f
[ "MIT" ]
1
2022-01-22T08:19:38.000Z
2022-02-02T08:48:34.000Z
src/diepvries/field.py
michael-the1/diepvries
ddba9c91ee5fb2014dc576ffb74faa40c3d0d04f
[ "MIT" ]
6
2021-09-03T17:21:16.000Z
2021-12-22T12:11:51.000Z
"""Module for a Data Vault field.""" from typing import Optional from . import ( FIELD_PREFIX, FIELD_SUFFIX, METADATA_FIELDS, TABLE_PREFIXES, UNKNOWN, FieldDataType, FieldRole, TableType, ) class Field: """A field in a Data Vault model.""" def __init__( self, ...
34.465021
88
0.612537
8,149
0.973015
0
0
6,049
0.722269
0
0
3,944
0.470925
5351c8767281abfc0e99352875444fb190e31a5e
5,702
py
Python
mmdet/datasets/deepscoresV2.py
tuggeluk/mmdetection
669a535c944628a3ab43330cae5c77b643e13a4b
[ "Apache-2.0" ]
1
2020-01-22T15:25:20.000Z
2020-01-22T15:25:20.000Z
mmdet/datasets/deepscoresV2.py
tuggeluk/mmdetection
669a535c944628a3ab43330cae5c77b643e13a4b
[ "Apache-2.0" ]
2
2019-12-16T10:51:41.000Z
2020-10-06T13:46:25.000Z
mmdet/datasets/deepscoresV2.py
tuggeluk/mmdetection
669a535c944628a3ab43330cae5c77b643e13a4b
[ "Apache-2.0" ]
2
2020-04-20T08:58:40.000Z
2021-05-08T07:55:54.000Z
"""DEEPSCORESV2 Provides access to the DEEPSCORESV2 database with a COCO-like interface. The only changes made compared to the coco.py file are the class labels. Author: Lukas Tuggener <tugg@zhaw.ch> Yvan Satyawan <y_satyawan@hotmail.com> Created on: November 23, 2019 """ from .coco import * import os im...
36.318471
118
0.590144
5,314
0.931954
0
0
5,340
0.936514
0
0
1,660
0.291126
5351dc5962b2184cb179f5f6f4ba10be7538464e
81,840
py
Python
tests/go_cd_configurator_test.py
agsmorodin/gomatic
e6ae871ffc2d027823f6b7a5755e0ac65c724538
[ "MIT" ]
null
null
null
tests/go_cd_configurator_test.py
agsmorodin/gomatic
e6ae871ffc2d027823f6b7a5755e0ac65c724538
[ "MIT" ]
null
null
null
tests/go_cd_configurator_test.py
agsmorodin/gomatic
e6ae871ffc2d027823f6b7a5755e0ac65c724538
[ "MIT" ]
null
null
null
#!/usr/bin/env python import unittest from xml.dom.minidom import parseString import xml.etree.ElementTree as ET from decimal import Decimal from gomatic import GoCdConfigurator, FetchArtifactDir, RakeTask, ExecTask, ScriptExecutorTask, FetchArtifactTask, \ FetchArtifactFile, Tab, GitMaterial, PipelineMaterial,...
49.271523
208
0.697849
80,252
0.980596
0
0
0
0
0
0
13,628
0.16652
53527ec6ef2428da3e1c97ac08275c75fd6e2545
1,628
py
Python
gui/wellplot/settings/style/wellplotstylehandler.py
adriangrepo/qreservoir
20fba1b1fd1a42add223d9e8af2d267665bec493
[ "MIT" ]
2
2019-10-04T13:54:51.000Z
2021-05-21T19:36:15.000Z
gui/wellplot/settings/style/wellplotstylehandler.py
adriangrepo/qreservoir
20fba1b1fd1a42add223d9e8af2d267665bec493
[ "MIT" ]
3
2019-11-19T17:06:09.000Z
2020-01-18T20:39:54.000Z
gui/wellplot/settings/style/wellplotstylehandler.py
adriangrepo/qreservoir
20fba1b1fd1a42add223d9e8af2d267665bec493
[ "MIT" ]
2
2020-07-02T13:20:48.000Z
2020-11-11T00:18:51.000Z
import logging from qrutilities.imageutils import ImageUtils from PyQt4.QtGui import QColor logger = logging.getLogger('console') class WellPlotStyleHandler(object): ''' classdocs ''' def saveDataState(self, wellPlotData, wellPlotStyleWidget): if wellPlotStyleWidget.plotTitleOnCheckBox.isC...
45.222222
103
0.72973
1,497
0.919533
0
0
0
0
0
0
34
0.020885
5353098565b09d0a6b37ec215ad6356db9a8d2af
599
py
Python
utm_messages/urls.py
geoffreynyaga/ANGA-UTM
8371a51ad27c85d2479bb34d8c4e02ea28465941
[ "Apache-2.0" ]
7
2020-01-18T16:53:41.000Z
2021-12-21T07:02:43.000Z
utm_messages/urls.py
geoffreynyaga/ANGA-UTM
8371a51ad27c85d2479bb34d8c4e02ea28465941
[ "Apache-2.0" ]
28
2020-01-06T18:36:54.000Z
2022-02-10T10:03:55.000Z
utm_messages/urls.py
geoffreynyaga/ANGA-UTM
8371a51ad27c85d2479bb34d8c4e02ea28465941
[ "Apache-2.0" ]
3
2020-01-18T16:53:54.000Z
2020-10-26T11:21:41.000Z
from django.conf.urls import url from . import views app_name = "messages" urlpatterns = [ url(r'^$', views.InboxListView.as_view(), name='inbox'), url(r'^sent/$', views.SentMessagesListView.as_view(), name='sent'), url(r'^compose/$', views.MessagesCreateView.as_view(), name='compo...
29.95
90
0.60601
0
0
0
0
0
0
0
0
193
0.322204
53548465e12a42f5d8a5f01db8be119e8fba5d7d
24,159
py
Python
server/apps/datablock/tests/test_create_worker.py
iotile/iotile_cloud
9dc65ac86d3a730bba42108ed7d9bbb963d22ba6
[ "MIT" ]
null
null
null
server/apps/datablock/tests/test_create_worker.py
iotile/iotile_cloud
9dc65ac86d3a730bba42108ed7d9bbb963d22ba6
[ "MIT" ]
null
null
null
server/apps/datablock/tests/test_create_worker.py
iotile/iotile_cloud
9dc65ac86d3a730bba42108ed7d9bbb963d22ba6
[ "MIT" ]
null
null
null
import datetime import json import dateutil.parser from django.contrib.auth import get_user_model from django.test import Client, TestCase from django.utils import timezone from apps.devicelocation.models import DeviceLocation from apps.physicaldevice.models import Device from apps.property.models import GenericProp...
41.439108
120
0.634919
23,201
0.960346
0
0
0
0
0
0
692
0.028644
5354d3bcbb084eaac2e9dc5457335c7f402533a9
12,221
py
Python
nova/policies/servers.py
maya2250/nova
e483ca1cd9a5db5856f87fc69ca07c42d2be5def
[ "Apache-2.0" ]
null
null
null
nova/policies/servers.py
maya2250/nova
e483ca1cd9a5db5856f87fc69ca07c42d2be5def
[ "Apache-2.0" ]
1
2020-11-05T17:42:24.000Z
2020-11-05T17:42:24.000Z
nova/policies/servers.py
Mattlk13/nova
5b13eb59540aaf535a53920e783964d106de2620
[ "Apache-2.0" ]
1
2020-07-22T22:14:40.000Z
2020-07-22T22:14:40.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
29.734793
79
0.524262
0
0
0
0
0
0
0
0
6,213
0.508387
5355dedf12aa8e15115b8c77564d80f57eb0ec2a
1,577
py
Python
set-env.py
sajaldebnath/vrops-custom-group-creation
e3c821336832445e93706ad29afe216867660123
[ "MIT" ]
1
2017-08-14T07:51:42.000Z
2017-08-14T07:51:42.000Z
set-env.py
sajaldebnath/vrops-custom-group-creation
e3c821336832445e93706ad29afe216867660123
[ "MIT" ]
null
null
null
set-env.py
sajaldebnath/vrops-custom-group-creation
e3c821336832445e93706ad29afe216867660123
[ "MIT" ]
null
null
null
# !/usr/bin python """ # # set-env - a small python program to setup the configuration environment for data-push.py # data-push.py contains the python program to push attribute values to vROps # Author Sajal Debnath <sdebnath@vmware.com> # """ # Importing the required modules import json import base64 i...
28.672727
107
0.689918
0
0
0
0
0
0
0
0
732
0.464172
53564fa8ddf1d013bfaf1e0a0630a501757ce124
1,504
py
Python
week02/day08.py
gtadeus/LeetCodeChallenge2009
81d3fae205fb9071d7a98260df9bbeb1c8c8ffe0
[ "MIT" ]
null
null
null
week02/day08.py
gtadeus/LeetCodeChallenge2009
81d3fae205fb9071d7a98260df9bbeb1c8c8ffe0
[ "MIT" ]
null
null
null
week02/day08.py
gtadeus/LeetCodeChallenge2009
81d3fae205fb9071d7a98260df9bbeb1c8c8ffe0
[ "MIT" ]
null
null
null
import unittest # Definition for a binary tree node. class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right class Solution: def sumRootToLeaf(self, root: TreeNode) -> int: m = self.c(root) r=0 for n in ...
28.923077
146
0.475399
1,385
0.920878
0
0
0
0
0
0
89
0.059176
53577342e6db4b3427645ab2e05fe5d3ca60a280
118
py
Python
config.py
tiuD/cross-prom
8b987138ec32e0ac64ca6ffe13d0e1cd0d18aef3
[ "MIT" ]
null
null
null
config.py
tiuD/cross-prom
8b987138ec32e0ac64ca6ffe13d0e1cd0d18aef3
[ "MIT" ]
null
null
null
config.py
tiuD/cross-prom
8b987138ec32e0ac64ca6ffe13d0e1cd0d18aef3
[ "MIT" ]
null
null
null
TOKEN = "1876415562:AAEsX_c9k3Fot2IT0BYRqkCCQ5vFEHQDLDQ" CHAT_ID = [957539786] # e.g. [1234567, 2233445, 3466123...]
29.5
59
0.754237
0
0
0
0
0
0
0
0
85
0.720339
5357c161a07eb9258b2e704a13f4eda6f6ab93d0
63
py
Python
buchschloss/gui2/__init__.py
mik2k2/buchschloss
8a9d17de5847ccab48a0de48aa4b60af2a7cc045
[ "MIT" ]
1
2020-01-13T18:52:51.000Z
2020-01-13T18:52:51.000Z
buchschloss/gui2/__init__.py
mik2k2/buchschloss
8a9d17de5847ccab48a0de48aa4b60af2a7cc045
[ "MIT" ]
48
2020-01-13T10:32:22.000Z
2021-06-16T16:10:19.000Z
buchschloss/gui2/__init__.py
mik2k2/buchschloss
8a9d17de5847ccab48a0de48aa4b60af2a7cc045
[ "MIT" ]
1
2020-01-19T11:07:12.000Z
2020-01-19T11:07:12.000Z
"""entry point""" from . import main start = main.app.launch
10.5
23
0.666667
0
0
0
0
0
0
0
0
17
0.269841
5358824aa89abe42dc1e1bfd86a2b5480905c96d
411
py
Python
src/tests/test_stop_at_task.py
francesco-p/FACIL
e719deebb6d2acb5778b60759294c23ea5e2b454
[ "MIT" ]
243
2020-09-22T11:26:34.000Z
2022-03-31T13:16:21.000Z
src/tests/test_stop_at_task.py
francesco-p/FACIL
e719deebb6d2acb5778b60759294c23ea5e2b454
[ "MIT" ]
15
2021-05-09T08:48:15.000Z
2022-03-28T16:07:45.000Z
src/tests/test_stop_at_task.py
francesco-p/FACIL
e719deebb6d2acb5778b60759294c23ea5e2b454
[ "MIT" ]
52
2021-03-01T15:08:29.000Z
2022-03-28T19:53:14.000Z
from tests import run_main_and_assert FAST_LOCAL_TEST_ARGS = "--exp-name local_test --datasets mnist" \ " --network LeNet --num-tasks 5 --seed 1 --batch-size 32" \ " --nepochs 2 --num-workers 0 --stop-at-task 3" def test_finetuning_stop_at_task(): args_line = FAST_LO...
34.25
82
0.647202
0
0
0
0
0
0
0
0
168
0.408759
53591d67014d7a8167c868c3b270950bcf55cca8
375
py
Python
Python/contains-duplicate.py
shreyventure/LeetCode-Solutions
74423d65702b78974e390f17c9d6365d17e6eed5
[ "MIT" ]
388
2020-06-29T08:41:27.000Z
2022-03-31T22:55:05.000Z
Python/contains-duplicate.py
shreyventure/LeetCode-Solutions
74423d65702b78974e390f17c9d6365d17e6eed5
[ "MIT" ]
178
2020-07-16T17:15:28.000Z
2022-03-09T21:01:50.000Z
Python/contains-duplicate.py
shreyventure/LeetCode-Solutions
74423d65702b78974e390f17c9d6365d17e6eed5
[ "MIT" ]
263
2020-07-13T18:33:20.000Z
2022-03-28T13:54:10.000Z
# Autor: Anuj Sharma (@optider) # Github Profile: https://github.com/Optider/ # Problem Link: https://leetcode.com/problems/contains-duplicate/ class Solution: def containsDuplicate(self, nums: List[int]) -> bool: count = {} for n in nums : if count.get(n) != None : ret...
26.785714
65
0.581333
228
0.608
0
0
0
0
0
0
141
0.376
5359c8fd0dd897c7cd9afb3870d3437688b42ddc
8,824
py
Python
build/android/gyp/dex.py
google-ar/chromium
2441c86a5fd975f09a6c30cddb57dfb7fc239699
[ "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
build/android/gyp/dex.py
harrymarkovskiy/WebARonARCore
2441c86a5fd975f09a6c30cddb57dfb7fc239699
[ "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
build/android/gyp/dex.py
harrymarkovskiy/WebARonARCore
2441c86a5fd975f09a6c30cddb57dfb7fc239699
[ "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
#!/usr/bin/env python # # Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import json import logging import optparse import os import sys import tempfile import zipfile from util import build_utils def _C...
35.580645
80
0.68563
0
0
176
0.019946
0
0
0
0
2,627
0.297711
535aa0f5c23f246944ffe8092713608d551e77e5
11,199
py
Python
apps/views.py
Edwardhgj/meiduo
38796f5caf54676eb5620f50ade5474ee8700ad8
[ "MIT" ]
null
null
null
apps/views.py
Edwardhgj/meiduo
38796f5caf54676eb5620f50ade5474ee8700ad8
[ "MIT" ]
6
2020-06-05T23:02:49.000Z
2022-02-11T03:43:22.000Z
apps/views.py
Edwardhgj/meiduo
38796f5caf54676eb5620f50ade5474ee8700ad8
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponse from django.contrib.auth.hashers import check_password, make_password from django.views import View from utils.response_code import RET, error_map from rest_framework.views import APIView from rest_framework.response import Response from apps.ser...
21.331429
70
0.544156
6,704
0.571477
0
0
0
0
0
0
2,051
0.174836
535ab0b00b5e6dd49d2816d9ac5192041774bc04
4,283
py
Python
learnedevolution/targets/covariance/amalgam_covariance.py
realtwister/LearnedEvolution
2ec49b50a49acae9693cfb05ac114dfbcc4aa337
[ "MIT" ]
null
null
null
learnedevolution/targets/covariance/amalgam_covariance.py
realtwister/LearnedEvolution
2ec49b50a49acae9693cfb05ac114dfbcc4aa337
[ "MIT" ]
null
null
null
learnedevolution/targets/covariance/amalgam_covariance.py
realtwister/LearnedEvolution
2ec49b50a49acae9693cfb05ac114dfbcc4aa337
[ "MIT" ]
null
null
null
import numpy as np; from .covariance_target import CovarianceTarget; class AMaLGaMCovariance(CovarianceTarget): _API=2. def __init__(self, theta_SDR = 1., eta_DEC = 0.9, alpha_Sigma = [-1.1,1.2,1.6], NIS_MAX = 25, tau = 0.35, epsilon = 1e-30, condition_n...
30.592857
87
0.585337
4,211
0.983189
0
0
590
0.137754
0
0
161
0.03759
535b6a1790a4b33142e1922aac85ef30e05ce452
1,487
gyp
Python
binding.gyp
terrorizer1980/fs-admin
e21216161c56def4ca76a3ef4e71844e2ba26074
[ "MIT" ]
25
2017-10-14T22:54:00.000Z
2022-02-28T16:45:44.000Z
binding.gyp
icecream17/fs-admin
e21216161c56def4ca76a3ef4e71844e2ba26074
[ "MIT" ]
46
2019-02-22T15:17:32.000Z
2022-03-15T16:04:38.000Z
binding.gyp
icecream17/fs-admin
e21216161c56def4ca76a3ef4e71844e2ba26074
[ "MIT" ]
19
2018-01-04T00:52:17.000Z
2022-02-05T17:18:17.000Z
{ 'target_defaults': { 'win_delay_load_hook': 'false', 'conditions': [ ['OS=="win"', { 'msvs_disabled_warnings': [ 4530, # C++ exception handler used, but unwind semantics are not enabled 4506, # no definition for inline function ], }], ], }, 'targets'...
24.377049
83
0.438467
0
0
0
0
0
0
0
0
824
0.554136
535e247a8a58c1477770025f4437600400e0562a
2,917
py
Python
src/botwtracker/settings.py
emoritzx/botw-tracker
9c096e62825f2ba2f0f66167b646eaf5a1b5b50a
[ "MIT" ]
7
2017-04-25T10:16:20.000Z
2022-02-25T05:58:16.000Z
src/botwtracker/settings.py
emoritzx/botw-tracker
9c096e62825f2ba2f0f66167b646eaf5a1b5b50a
[ "MIT" ]
1
2020-01-02T20:40:35.000Z
2020-01-02T21:10:51.000Z
src/botwtracker/settings.py
emoritzx/botw-tracker
9c096e62825f2ba2f0f66167b646eaf5a1b5b50a
[ "MIT" ]
3
2020-01-02T21:11:21.000Z
2021-12-11T13:49:35.000Z
"""Django settings for botwtracker project. Copyright (c) 2017, Evan Moritz. botw-tracker is an open source software project released under the MIT License. See the accompanying LICENSE file for terms. """ import os from .config_local import * # Build paths inside the project like this: os.path.join(BASE_DIR, ...) ...
26.044643
91
0.683579
0
0
0
0
0
0
0
0
1,964
0.673294
535e920c95d9b042b1a45ee54769faf051d34c56
1,013
py
Python
app/domains/users/views.py
Geo-Gabriel/eccomerce_nestle_mongodb
97bf5dbdc7bee20a9ca2f7cad98afc6e8f11bd3e
[ "MIT" ]
3
2020-06-21T15:51:25.000Z
2021-01-24T21:19:27.000Z
app/domains/users/views.py
Geo-Gabriel/eccomerce_nestle_mongodb
97bf5dbdc7bee20a9ca2f7cad98afc6e8f11bd3e
[ "MIT" ]
null
null
null
app/domains/users/views.py
Geo-Gabriel/eccomerce_nestle_mongodb
97bf5dbdc7bee20a9ca2f7cad98afc6e8f11bd3e
[ "MIT" ]
null
null
null
from flask import Blueprint, request, jsonify from app.domains.users.actions import get_all_users, insert_user, get_user_by_id, update_user, delete_user app_users = Blueprint('app.users', __name__) @app_users.route('/users', methods=['GET']) def get_users(): return jsonify([user.serialize() for user in get_all_...
27.378378
106
0.698914
0
0
0
0
798
0.787759
0
0
118
0.116486
535eb0ebfd076b333a6d2c988712739a93360c70
8,513
py
Python
legacy_code/tf_cnn_siamese/model.py
PerryXDeng/project_punyslayer
79529b020ca56a5473dbb85ac7155bc03dc5023a
[ "MIT" ]
2
2019-10-25T04:57:03.000Z
2020-06-16T00:34:18.000Z
legacy_code/tf_cnn_siamese/model.py
PerryXDeng/project_punyslayer
79529b020ca56a5473dbb85ac7155bc03dc5023a
[ "MIT" ]
null
null
null
legacy_code/tf_cnn_siamese/model.py
PerryXDeng/project_punyslayer
79529b020ca56a5473dbb85ac7155bc03dc5023a
[ "MIT" ]
1
2020-06-25T14:54:24.000Z
2020-06-25T14:54:24.000Z
import legacy_code.tf_cnn_siamese.configurations as conf import tensorflow as tf import numpy as np def construct_cnn(x, conv_weights, conv_biases, fc_weights, fc_biases, dropout = False): """ constructs the convolution graph for one image :param x: input node :param conv_weights: convolutio...
39.412037
80
0.670504
0
0
0
0
0
0
0
0
3,597
0.42253
535f56691aa062ae2f47bfd3027e86cffdb80581
3,591
py
Python
tests/test_utils_log.py
FingerCrunch/scrapy
3225de725720bba246ba8c9845fe4b84bc0c82e7
[ "BSD-3-Clause" ]
41,267
2015-01-01T07:39:25.000Z
2022-03-31T20:09:40.000Z
tests/test_utils_log.py
FingerCrunch/scrapy
3225de725720bba246ba8c9845fe4b84bc0c82e7
[ "BSD-3-Clause" ]
4,420
2015-01-02T09:35:38.000Z
2022-03-31T22:53:32.000Z
tests/test_utils_log.py
FingerCrunch/scrapy
3225de725720bba246ba8c9845fe4b84bc0c82e7
[ "BSD-3-Clause" ]
11,080
2015-01-01T18:11:30.000Z
2022-03-31T15:33:19.000Z
import sys import logging import unittest from testfixtures import LogCapture from twisted.python.failure import Failure from scrapy.utils.log import (failure_to_exc_info, TopLevelFormatter, LogCounterHandler, StreamLogger) from scrapy.utils.test import get_crawler from scrapy.extensions...
32.944954
77
0.662768
3,244
0.90337
0
0
0
0
0
0
511
0.1423
53620a02b1382e7015ce77097767be27a037d2cd
2,329
py
Python
astar.py
jeff012345/clue-part-duo
bd9ccd2ccdbc2fe358a696b31644b93e70ff874b
[ "MIT" ]
null
null
null
astar.py
jeff012345/clue-part-duo
bd9ccd2ccdbc2fe358a696b31644b93e70ff874b
[ "MIT" ]
null
null
null
astar.py
jeff012345/clue-part-duo
bd9ccd2ccdbc2fe358a696b31644b93e70ff874b
[ "MIT" ]
null
null
null
import heapq from typing import List from definitions import RoomPosition, Position import random import sys class PriorityQueue: def __init__(self): self.elements: Array = [] def empty(self) -> bool: return len(self.elements) == 0 def put(self, item, priority: float): hea...
26.465909
92
0.592529
362
0.155432
0
0
0
0
0
0
207
0.088879
53620e1797375b57cbec5b488715571deabfedc5
19,152
py
Python
src/py_scripts/fc_phasing.py
pb-jchin/FALCON_unzip
21b1df3491e3bb7b9d8ecd13fc0c9c1a45b6393f
[ "BSD-3-Clause-Clear" ]
2
2016-06-23T03:20:22.000Z
2016-10-07T23:45:26.000Z
src/py_scripts/fc_phasing.py
pb-jchin/FALCON_unzip
21b1df3491e3bb7b9d8ecd13fc0c9c1a45b6393f
[ "BSD-3-Clause-Clear" ]
null
null
null
src/py_scripts/fc_phasing.py
pb-jchin/FALCON_unzip
21b1df3491e3bb7b9d8ecd13fc0c9c1a45b6393f
[ "BSD-3-Clause-Clear" ]
null
null
null
from pypeflow.common import * from pypeflow.data import PypeLocalFile, makePypeLocalFile, fn from pypeflow.task import PypeTask, PypeThreadTaskBase, PypeTaskBase from pypeflow.controller import PypeWorkflow, PypeThreadWorkflow from falcon_kit.FastaReader import FastaReader import subprocess, shlex import os, re cigar...
33.897345
155
0.477339
0
0
0
0
0
0
0
0
1,442
0.075292
5362c554ddeabe0765b25a2b55000d5493c91742
8,490
py
Python
augmentation/combineds/wgan_gp_straight.py
pabloduque0/cnn_deconv_viz
3fc3d8a9dbad8e8e28d4df4023bdb438e4c9cf85
[ "MIT" ]
null
null
null
augmentation/combineds/wgan_gp_straight.py
pabloduque0/cnn_deconv_viz
3fc3d8a9dbad8e8e28d4df4023bdb438e4c9cf85
[ "MIT" ]
null
null
null
augmentation/combineds/wgan_gp_straight.py
pabloduque0/cnn_deconv_viz
3fc3d8a9dbad8e8e28d4df4023bdb438e4c9cf85
[ "MIT" ]
null
null
null
from keras.datasets import mnist from keras.layers.merge import _Merge from keras.layers import Input, Dense, Reshape, Flatten, Dropout from keras.layers import BatchNormalization, Activation, ZeroPadding2D from keras.layers.advanced_activations import LeakyReLU from keras.layers.convolutional import UpSampling2D, Conv...
37.566372
99
0.593404
7,837
0.923086
0
0
0
0
0
0
1,822
0.214605
53630922cfad6e358b0a44487fb3bc1d5337ec0e
231
py
Python
Core/Block_C/RC480_Factory.py
BernardoB95/Extrator_SPEDFiscal
10b4697833c561d24654251da5f22d044f03fc16
[ "MIT" ]
1
2021-04-25T13:53:20.000Z
2021-04-25T13:53:20.000Z
Core/Block_C/RC480_Factory.py
BernardoB95/Extrator_SPEDFiscal
10b4697833c561d24654251da5f22d044f03fc16
[ "MIT" ]
null
null
null
Core/Block_C/RC480_Factory.py
BernardoB95/Extrator_SPEDFiscal
10b4697833c561d24654251da5f22d044f03fc16
[ "MIT" ]
null
null
null
from Core.IFactory import IFactory from Regs.Block_C import RC480 class RC480Factory(IFactory): def create_block_object(self, line): self.rc480 = _rc480 = RC480() _rc480.reg_list = line return _rc480
21
40
0.69697
162
0.701299
0
0
0
0
0
0
0
0
5363e8818d7ff22e74bce67b8f3e1086a76a24c5
1,594
py
Python
keras2onnx/proto/__init__.py
mgoldchild/keras-onnx
8e700572b89a907ca21a3096556f64b62b7aa76c
[ "MIT" ]
null
null
null
keras2onnx/proto/__init__.py
mgoldchild/keras-onnx
8e700572b89a907ca21a3096556f64b62b7aa76c
[ "MIT" ]
null
null
null
keras2onnx/proto/__init__.py
mgoldchild/keras-onnx
8e700572b89a907ca21a3096556f64b62b7aa76c
[ "MIT" ]
null
null
null
############################################################################### # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. ############################################################################### imp...
33.914894
117
0.69197
0
0
0
0
0
0
0
0
615
0.385822
536436e3554ba3a4da46ab96d890765a1f73000c
554
py
Python
tests/test_load.py
ocefpaf/xroms
763d6e678e28fe074e0aaab26fecd2b74e51a8b0
[ "MIT" ]
4
2020-01-21T21:24:17.000Z
2020-10-02T03:09:32.000Z
tests/test_load.py
ocefpaf/xroms
763d6e678e28fe074e0aaab26fecd2b74e51a8b0
[ "MIT" ]
1
2020-04-08T00:11:39.000Z
2020-04-25T08:03:45.000Z
tests/test_load.py
ocefpaf/xroms
763d6e678e28fe074e0aaab26fecd2b74e51a8b0
[ "MIT" ]
1
2020-04-06T06:42:36.000Z
2020-04-06T06:42:36.000Z
'''Test package.''' import xroms from glob import glob import os def test_open_netcdf(): '''Test xroms.open_netcdf().''' base = os.path.join(xroms.__path__[0],'..','tests','input') files = glob('%s/ocean_his_000?.nc' % base) ds = xroms.open_netcdf(files) assert ds def test_open_zar...
21.307692
63
0.597473
0
0
0
0
0
0
0
0
168
0.303249
53646f201e13a30e6efd94fa6ebf56d02fafc4af
1,381
py
Python
demoproject/demoproject/urls.py
alvnary18/django-nvd3
4b7dffb1107b8202698212b99c26d1d0097afd1d
[ "MIT" ]
302
2015-01-06T14:38:22.000Z
2022-01-11T15:28:07.000Z
demoproject/demoproject/urls.py
alvnary18/django-nvd3
4b7dffb1107b8202698212b99c26d1d0097afd1d
[ "MIT" ]
63
2015-01-03T14:39:29.000Z
2021-04-19T09:29:15.000Z
demoproject/demoproject/urls.py
alvnary18/django-nvd3
4b7dffb1107b8202698212b99c26d1d0097afd1d
[ "MIT" ]
104
2015-01-07T21:40:53.000Z
2021-02-22T08:21:02.000Z
from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.home, name='home'), url(r'^piechart/', views.demo_piechart, name='demo_piechart'), url(r'^linechart/', views.demo_linechart, name='demo_linechart'), url(r'^linechart_without_date/', views.demo_linechart_without_date,...
62.772727
115
0.766836
0
0
0
0
0
0
0
0
653
0.472846
536501345147bcbb0b1035da0ccdac716533b14a
2,557
py
Python
wired_version/mcs_wired.py
Harri-Renney/Mind_Control_Synth
5a892a81a3f37444ef154f29a62d44fa1476bfbd
[ "MIT" ]
1
2020-12-20T09:53:20.000Z
2020-12-20T09:53:20.000Z
wired_version/mcs_wired.py
Harri-Renney/Mind_Control_Synth
5a892a81a3f37444ef154f29a62d44fa1476bfbd
[ "MIT" ]
null
null
null
wired_version/mcs_wired.py
Harri-Renney/Mind_Control_Synth
5a892a81a3f37444ef154f29a62d44fa1476bfbd
[ "MIT" ]
null
null
null
import time import mido from pinaps.piNapsController import PiNapsController from NeuroParser import NeuroParser """ Equation of motion used to modify virbato. """ def positionStep(pos, vel, acc): return pos + vel * 2 + (1/2) * acc * 4 def velocityStep(vel, acc): return acc * 2 + vel CTRL_LF...
35.027397
134
0.658193
0
0
0
0
0
0
0
0
594
0.232303
5366c96f79a37fc8c50479d35ab11dc62e0b3949
15,109
py
Python
pipeline/visualization/single_tab.py
windblood/kafka_stock
8dbe4a1cf5c367b3c210683d4027bbfaf955ed41
[ "Apache-2.0" ]
45
2019-08-06T09:06:58.000Z
2022-03-14T06:13:33.000Z
pipeline/visualization/single_tab.py
windblood/kafka_stock
8dbe4a1cf5c367b3c210683d4027bbfaf955ed41
[ "Apache-2.0" ]
2
2021-05-10T09:23:12.000Z
2021-12-20T07:06:54.000Z
pipeline/visualization/single_tab.py
windblood/kafka_stock
8dbe4a1cf5c367b3c210683d4027bbfaf955ed41
[ "Apache-2.0" ]
14
2020-03-19T04:38:25.000Z
2022-03-16T06:37:04.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Jul 31 11:47:47 2019 @author: yanyanyu """ """ Tab1-plot1: candlestick """ import json import datetime import pandas as pd from math import pi from random import choice from pytz import timezone from bokeh.plotting import figure,show from bokeh.p...
48.117834
144
0.53253
0
0
0
0
0
0
0
0
4,735
0.313389
53683ad065e876599c6cda203cf6ca253e4f6885
7,499
py
Python
traffic_predict/model.py
Wangjw6/project
daae9de42fe7bf7ff29c20246e1164b62b7cef4a
[ "MIT" ]
null
null
null
traffic_predict/model.py
Wangjw6/project
daae9de42fe7bf7ff29c20246e1164b62b7cef4a
[ "MIT" ]
null
null
null
traffic_predict/model.py
Wangjw6/project
daae9de42fe7bf7ff29c20246e1164b62b7cef4a
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- import tensorflow as tf class CNN: def __init__(self, save_or_load_path=None, trainable=True, learning_rate = 0.00002,timestep=9,road=189,predstep=1): self.trainable = trainable self.learning_rate = learning_rate self.road = road self.input_size = timestep *...
43.346821
119
0.642619
7,441
0.992266
0
0
0
0
0
0
827
0.110281
536933e136a1518afd79a7f6f89175f2c5e084a2
2,755
py
Python
VirtualMouse-mediapipe.py
SanLiWuXun/Virtual-Control
c3b38d4e2df201af851ca70a90de1fdc770158e4
[ "MIT" ]
null
null
null
VirtualMouse-mediapipe.py
SanLiWuXun/Virtual-Control
c3b38d4e2df201af851ca70a90de1fdc770158e4
[ "MIT" ]
null
null
null
VirtualMouse-mediapipe.py
SanLiWuXun/Virtual-Control
c3b38d4e2df201af851ca70a90de1fdc770158e4
[ "MIT" ]
null
null
null
import cv2 import mediapipe as mp from time import sleep import numpy as np import autopy import pynput wCam, hCam = 1280, 720 wScr, hScr = autopy.screen.size() cap = cv2.VideoCapture(0) cap.set(3, wCam) cap.set(4, hCam) mp_drawing = mp.solutions.drawing_utils mp_hands = mp.solutions.hands mouse = pynput.mouse.Cont...
35.320513
113
0.622142
0
0
0
0
0
0
0
0
420
0.15245
536a166e562f305f44e421c35ddf14c30aa9d207
2,804
py
Python
util/tools/split_train_val.py
JochenZoellner/tf_neiss-1
c91019e5bce6d3c7512237eec5ea997fd95304ac
[ "Apache-2.0" ]
null
null
null
util/tools/split_train_val.py
JochenZoellner/tf_neiss-1
c91019e5bce6d3c7512237eec5ea997fd95304ac
[ "Apache-2.0" ]
1
2020-08-07T13:04:43.000Z
2020-08-10T12:32:46.000Z
util/tools/split_train_val.py
JochenZoellner/tf_neiss-1
c91019e5bce6d3c7512237eec5ea997fd95304ac
[ "Apache-2.0" ]
1
2019-12-16T15:46:45.000Z
2019-12-16T15:46:45.000Z
import glob import logging import os import shutil import sys """script to divide a folder with generated/training data into a train and val folder - val folder contains 500 Samples if not changed in source code - DOES NOT work if images structured in subfolders, see below - if there is no dir in the given...
40.057143
117
0.579529
0
0
0
0
0
0
0
0
913
0.325606
536b5c354fdb15e9bd9be57f477eacb913ce0e22
4,793
py
Python
Chapter10/neuroevolution/distributed_helpers.py
KonstantinKlepikov/Hands-on-Neuroevolution-with-Python
cdd35fa21f2a091d176c140427ab1644d9ecd1f2
[ "MIT" ]
51
2019-06-03T12:45:13.000Z
2022-02-16T15:48:28.000Z
Chapter10/neuroevolution/distributed_helpers.py
123mitnik/Hands-on-Neuroevolution-with-Python
b65c7dee49303c296ae22f2d82422614bdf7a168
[ "MIT" ]
3
2020-02-20T08:13:34.000Z
2020-09-16T10:11:52.000Z
Chapter10/neuroevolution/distributed_helpers.py
123mitnik/Hands-on-Neuroevolution-with-Python
b65c7dee49303c296ae22f2d82422614bdf7a168
[ "MIT" ]
30
2019-05-24T02:02:47.000Z
2022-03-03T22:48:22.000Z
import threading from queue import Queue from multiprocessing.pool import ApplyResult import tabular_logger as tlogger class AsyncWorker(object): @property def concurrent_tasks(self): raise NotImplementedError() def run_async(self, task_id, task, callback): raise NotImplementedError() ...
32.828767
119
0.595869
4,664
0.973086
0
0
1,817
0.379095
0
0
601
0.125391
536b943feabc16b11630bbf2f1fc6f9c7d3d5261
557
py
Python
make/platform/registry.py
tompis/casual
d838716c7052a906af8a19e945a496acdc7899a2
[ "MIT" ]
null
null
null
make/platform/registry.py
tompis/casual
d838716c7052a906af8a19e945a496acdc7899a2
[ "MIT" ]
null
null
null
make/platform/registry.py
tompis/casual
d838716c7052a906af8a19e945a496acdc7899a2
[ "MIT" ]
null
null
null
import os registry = {} class RegisterPlatform(object): ''' classdocs ''' def __init__(self, platform): ''' Constructor ''' self.platform = platform def __call__(self, clazz): registry[self.platform] = clazz def platform(): # Decide on whi...
16.878788
57
0.563734
253
0.454219
0
0
0
0
0
0
139
0.249551
536bfa0db6a83d2b284796ec230b11252da51887
553
py
Python
mailer/admin.py
everyvoter/everyvoter
65d9b8bdf9b5c64057135c279f6e03b6c207e0fa
[ "MIT" ]
5
2019-07-01T17:50:44.000Z
2022-02-20T02:44:42.000Z
mailer/admin.py
everyvoter/everyvoter
65d9b8bdf9b5c64057135c279f6e03b6c207e0fa
[ "MIT" ]
3
2020-06-05T21:44:33.000Z
2021-06-10T21:39:26.000Z
mailer/admin.py
everyvoter/everyvoter
65d9b8bdf9b5c64057135c279f6e03b6c207e0fa
[ "MIT" ]
1
2021-12-09T06:32:40.000Z
2021-12-09T06:32:40.000Z
"""Django Admin Panels for App""" from django.contrib import admin from mailer import models @admin.register(models.SendingAddress) class SendingAddressAdmin(admin.ModelAdmin): """Admin View for SendingAddress""" list_display = ('address', 'organization') list_filter = ('organization__name',) actions ...
29.105263
73
0.672694
418
0.755877
0
0
457
0.826401
0
0
176
0.318264
536e0e040e307bf9f906164571d5de4002db0a3c
492
py
Python
tests/settings.py
systemallica/django-belt
3035a8bad26a108d9c78daaccb81ab8a9a9ebd41
[ "MIT" ]
2
2019-10-08T08:56:46.000Z
2020-10-10T08:29:43.000Z
tests/settings.py
systemallica/django-belt
3035a8bad26a108d9c78daaccb81ab8a9a9ebd41
[ "MIT" ]
null
null
null
tests/settings.py
systemallica/django-belt
3035a8bad26a108d9c78daaccb81ab8a9a9ebd41
[ "MIT" ]
2
2019-10-08T08:59:54.000Z
2021-03-18T18:15:38.000Z
DEBUG = True USE_TZ = True SECRET_KEY = "dummy" DATABASES = {"default": {"ENGINE": "django.db.backends.sqlite3", "NAME": ":memory:"}} INSTALLED_APPS = [ "django.contrib.auth", "django.contrib.contenttypes", "django.contrib.sites", "rest_framework", "django_filters", "belt", "tests.app", ]...
18.222222
85
0.668699
0
0
0
0
0
0
0
0
281
0.571138
72559fed2c0dfd5ae9506264bf674d020588c5b0
26,482
py
Python
Cell_Generation/fabric_CMC_NMOS.py
ALIGN-analoglayout/2018-01-ALIGN
931263cec2efc05d58657af9ecca88ae0040c3a5
[ "BSD-3-Clause" ]
8
2019-01-10T06:34:26.000Z
2021-06-30T05:44:49.000Z
Cell_Generation/fabric_CMC_NMOS.py
ALIGN-analoglayout/2018-01-ALIGN
931263cec2efc05d58657af9ecca88ae0040c3a5
[ "BSD-3-Clause" ]
null
null
null
Cell_Generation/fabric_CMC_NMOS.py
ALIGN-analoglayout/2018-01-ALIGN
931263cec2efc05d58657af9ecca88ae0040c3a5
[ "BSD-3-Clause" ]
2
2019-01-09T19:58:28.000Z
2019-03-08T22:58:50.000Z
import sys import json import transformation class StopPointGrid: def __init__( self, nm, layer, direction, width, pitch, offset=0): self.nm = nm self.layer = layer self.direction = direction assert direction in ['v','h'] self.width = width self.pitch = pitch ...
55.987315
323
0.551809
25,755
0.972547
0
0
59
0.002228
0
0
1,107
0.041802
725600e7a0a1963a9922b5936348396ff3c1bd52
13,457
py
Python
docs/testcases/all_in_one.py
tiramtaramta/conduit
ae4ca8e64fe64c2b6702d803d799e380fda84a92
[ "MIT" ]
null
null
null
docs/testcases/all_in_one.py
tiramtaramta/conduit
ae4ca8e64fe64c2b6702d803d799e380fda84a92
[ "MIT" ]
null
null
null
docs/testcases/all_in_one.py
tiramtaramta/conduit
ae4ca8e64fe64c2b6702d803d799e380fda84a92
[ "MIT" ]
null
null
null
from selenium import webdriver from selenium.common.exceptions import NoSuchElementException from selenium.webdriver.chrome.options import Options from selenium.webdriver.common.by import By import os import time import csv from webdriver_manager.chrome import ChromeDriverManager import math from basic_function import ...
37.48468
120
0.630081
13,246
0.974329
0
0
0
0
0
0
4,748
0.349246
72562c1a74abbba1475bce520bf08235d1927c9c
116
py
Python
config.py
amalshaji/python-playground
bd3a88a493f36230958613d60a9d70d64f971dba
[ "MIT" ]
14
2021-07-03T10:45:04.000Z
2022-03-15T18:42:29.000Z
config.py
amalshaji/python-playground
bd3a88a493f36230958613d60a9d70d64f971dba
[ "MIT" ]
null
null
null
config.py
amalshaji/python-playground
bd3a88a493f36230958613d60a9d70d64f971dba
[ "MIT" ]
1
2021-08-19T12:06:51.000Z
2021-08-19T12:06:51.000Z
from pydantic import BaseSettings class Settings(BaseSettings): deta_project_key: str settings = Settings()
12.888889
33
0.775862
55
0.474138
0
0
0
0
0
0
0
0
725642bee9a909399840fd99543e731184a069ea
819
py
Python
IV_semester/os/configs.py
dainiusjocas/labs
25aa0ae2032681dbaf0afd83f3d80bedddea6407
[ "Beerware" ]
1
2019-04-16T22:05:42.000Z
2019-04-16T22:05:42.000Z
IV_semester/os/configs.py
dainiusjocas/labs
25aa0ae2032681dbaf0afd83f3d80bedddea6407
[ "Beerware" ]
null
null
null
IV_semester/os/configs.py
dainiusjocas/labs
25aa0ae2032681dbaf0afd83f3d80bedddea6407
[ "Beerware" ]
null
null
null
#!/usr/bin/env python ''' This module provides configuration options for OS project. No more magic numbers! ''' BLOCK_SIZE = 16 # words WORD_SIZE = 4 # bytes # length od RS in blocks RESTRICTED_LENGTH = 1 # length of DS in blocks DS_LENGTH = 6 # timer value TIMER_VALUE = 10 # buffer size BUFFER_SIZE = 16 # num...
18.2
89
0.764347
0
0
0
0
0
0
0
0
353
0.431013
7256bed763fbd51245f430291a65885eb6f4534d
3,022
py
Python
roboticstoolbox/models/URDF/Puma560.py
Russ76/robotics-toolbox-python
4b3e82a6522757ffde1f83aef8d05b3ad475e9de
[ "MIT" ]
null
null
null
roboticstoolbox/models/URDF/Puma560.py
Russ76/robotics-toolbox-python
4b3e82a6522757ffde1f83aef8d05b3ad475e9de
[ "MIT" ]
null
null
null
roboticstoolbox/models/URDF/Puma560.py
Russ76/robotics-toolbox-python
4b3e82a6522757ffde1f83aef8d05b3ad475e9de
[ "MIT" ]
null
null
null
#!/usr/bin/env python import numpy as np from roboticstoolbox.robot.ERobot import ERobot from math import pi class Puma560(ERobot): """ Class that imports a Puma 560 URDF model ``Puma560()`` is a class which imports a Unimation Puma560 robot definition from a URDF file. The model describes its kine...
31.154639
130
0.610192
2,828
0.93395
0
0
0
0
0
0
1,585
0.523448
7258cd5e14cfcac3370c20a51efc82ed53ffd2ed
26,052
py
Python
functest/tests/unit/odl/test_odl.py
hashnfv/hashnfv-functest
ff34df7ec7be6cd5fcf0f7557b393bd5d6266047
[ "Apache-2.0" ]
null
null
null
functest/tests/unit/odl/test_odl.py
hashnfv/hashnfv-functest
ff34df7ec7be6cd5fcf0f7557b393bd5d6266047
[ "Apache-2.0" ]
null
null
null
functest/tests/unit/odl/test_odl.py
hashnfv/hashnfv-functest
ff34df7ec7be6cd5fcf0f7557b393bd5d6266047
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2016 Orange and others. # # All rights reserved. This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompanies this distribution, and is available at # http://www.apache.org/licenses/LICENSE-2.0 """Define t...
40.642746
79
0.609857
25,140
0.964993
0
0
5,031
0.193114
0
0
4,994
0.191694
7259d1c0671ff1b759aee401e67ca154f987dcca
5,059
py
Python
ntpclients/ntptrace.py
OptimalRanging/NTPsec
7fa9b38c3e91f96b173ffa02bafa29cf81173cf7
[ "CC-BY-4.0", "BSD-2-Clause", "NTP", "MIT", "BSD-3-Clause" ]
null
null
null
ntpclients/ntptrace.py
OptimalRanging/NTPsec
7fa9b38c3e91f96b173ffa02bafa29cf81173cf7
[ "CC-BY-4.0", "BSD-2-Clause", "NTP", "MIT", "BSD-3-Clause" ]
null
null
null
ntpclients/ntptrace.py
OptimalRanging/NTPsec
7fa9b38c3e91f96b173ffa02bafa29cf81173cf7
[ "CC-BY-4.0", "BSD-2-Clause", "NTP", "MIT", "BSD-3-Clause" ]
1
2021-09-24T18:19:49.000Z
2021-09-24T18:19:49.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ ntptrace - trace peers of an NTP server Usage: ntptrace [-n | --numeric] [-m number | --max-hosts=number] [-r hostname | --host=hostname] [--help | --more-help] hostname See the manual page for details. """ # SPDX-License-Identifier: BS...
27.796703
77
0.555841
0
0
0
0
0
0
0
0
1,760
0.347895
7259dd2585e473152b9b222537cbe864940bc023
7,529
py
Python
lbrynet/wallet/server/block_processor.py
abueide/lbry
7f5deaf6c80422a30b3714d4bf12e028756ed9fe
[ "MIT" ]
null
null
null
lbrynet/wallet/server/block_processor.py
abueide/lbry
7f5deaf6c80422a30b3714d4bf12e028756ed9fe
[ "MIT" ]
null
null
null
lbrynet/wallet/server/block_processor.py
abueide/lbry
7f5deaf6c80422a30b3714d4bf12e028756ed9fe
[ "MIT" ]
null
null
null
import struct import msgpack from lbrynet.wallet.transaction import Transaction, Output from torba.server.hash import hash_to_hex_str from torba.server.block_processor import BlockProcessor from lbrynet.schema.claim import Claim from lbrynet.wallet.server.model import ClaimInfo class LBRYBlockProcessor(BlockProce...
48.574194
119
0.663036
7,243
0.962014
0
0
0
0
122
0.016204
1,099
0.145969
725bc15a18df21922924af39352a1db6548ae9d5
5,450
py
Python
ProjectEuler.Problem.013.py
jihunroh/ProjectEuler-Python
2fceaf5c3dd61038004b6128c5d9ee7a76142bca
[ "MIT" ]
null
null
null
ProjectEuler.Problem.013.py
jihunroh/ProjectEuler-Python
2fceaf5c3dd61038004b6128c5d9ee7a76142bca
[ "MIT" ]
null
null
null
ProjectEuler.Problem.013.py
jihunroh/ProjectEuler-Python
2fceaf5c3dd61038004b6128c5d9ee7a76142bca
[ "MIT" ]
null
null
null
from ProjectEulerCommons.Base import * numbers_list = """37107287533902102798797998220837590246510135740250 46376937677490009712648124896970078050417018260538 74324986199524741059474233309513058123726617309629 91942213363574161572522430563301811072406154908250 23067588207539346171171980310421047513778063246676 8926167...
47.391304
68
0.949725
0
0
0
0
0
0
0
0
5,311
0.974495
725c4a78b42553c5dfa61cb7be78dad147ba621d
4,584
py
Python
api/app/endpoints/datasets.py
historeno/enermaps
ad3a97636baa153a56367e374d0fef7f009bf19d
[ "Apache-2.0" ]
null
null
null
api/app/endpoints/datasets.py
historeno/enermaps
ad3a97636baa153a56367e374d0fef7f009bf19d
[ "Apache-2.0" ]
null
null
null
api/app/endpoints/datasets.py
historeno/enermaps
ad3a97636baa153a56367e374d0fef7f009bf19d
[ "Apache-2.0" ]
null
null
null
"""Endpoint for the manipulation of datasets """ import hashlib from flask import Response from flask_restx import Namespace, Resource, abort from app.common import client from app.common import datasets as datasets_fcts from app.common import path api = Namespace("datasets", description="Datasets related endpoints...
28.830189
88
0.630017
2,802
0.611257
0
0
3,752
0.818499
0
0
1,367
0.298211
725c8eebe50fb704a955c92f2df5a2010dd496c0
360
py
Python
python/p45.py
forewing/lc
314468a1a3bb7d38eccf1f34b0d1b7da04a34784
[ "CC0-1.0" ]
null
null
null
python/p45.py
forewing/lc
314468a1a3bb7d38eccf1f34b0d1b7da04a34784
[ "CC0-1.0" ]
null
null
null
python/p45.py
forewing/lc
314468a1a3bb7d38eccf1f34b0d1b7da04a34784
[ "CC0-1.0" ]
null
null
null
class Solution: def jump(self, nums: List[int]) -> int: n = len(nums) dp = [float('inf')] * n dp[0] = 0 tail = 1 for i in range(n): limit = min(n, i + nums[i] + 1) for j in range(tail, limit): dp[j] = min(dp[j], dp[i] + 1) ...
24
45
0.405556
359
0.997222
0
0
0
0
0
0
5
0.013889
725ca51ad9d691720ab9b25d90f6e0eda40f5f1a
59
py
Python
mlgorithms/knn/__init__.py
doycode/mlgorithms
b187efad474acdc9b7c6defe4761f101530bd1a3
[ "Apache-2.0" ]
9
2019-08-22T08:02:31.000Z
2019-12-08T07:14:41.000Z
mlgorithms/knn/__init__.py
shashashuai/mlgorithms
f9f30c109083213dc3c62b30d74121ad1ebd2835
[ "Apache-2.0" ]
null
null
null
mlgorithms/knn/__init__.py
shashashuai/mlgorithms
f9f30c109083213dc3c62b30d74121ad1ebd2835
[ "Apache-2.0" ]
3
2019-12-06T15:08:24.000Z
2020-12-21T16:44:13.000Z
from .knn import KNNClassifier __all__ = ['KNNClassifier']
19.666667
30
0.779661
0
0
0
0
0
0
0
0
15
0.254237
725ce8235488dcfac8f6ef5c1aeb63ee7251e649
571
py
Python
apps/configuration/fields.py
sotkonstantinidis/testcircle
448aa2148fbc2c969e60f0b33ce112d4740a8861
[ "Apache-2.0" ]
3
2019-02-24T14:24:43.000Z
2019-10-24T18:51:32.000Z
apps/configuration/fields.py
sotkonstantinidis/testcircle
448aa2148fbc2c969e60f0b33ce112d4740a8861
[ "Apache-2.0" ]
17
2017-03-14T10:55:56.000Z
2022-03-11T23:20:19.000Z
apps/configuration/fields.py
sotkonstantinidis/testcircle
448aa2148fbc2c969e60f0b33ce112d4740a8861
[ "Apache-2.0" ]
2
2016-02-01T06:32:40.000Z
2019-09-06T04:33:50.000Z
import unicodedata from django.forms import fields class XMLCompatCharField(fields.CharField): """ Strip 'control characters', as XML 1.0 does not allow them and the API may return data in XML. """ def to_python(self, value): value = super().to_python(value=value) return self.rem...
27.190476
79
0.644483
516
0.903678
0
0
215
0.376532
0
0
127
0.222417
725e0b8e42aaad734ba9a21ce1eb2b48fbf8f5f0
2,575
py
Python
ademo.py
erikdelange/MicroPython-HTTP-Server
54bda9d55ac65b9a6bbf2189098a788add52b344
[ "MIT" ]
null
null
null
ademo.py
erikdelange/MicroPython-HTTP-Server
54bda9d55ac65b9a6bbf2189098a788add52b344
[ "MIT" ]
null
null
null
ademo.py
erikdelange/MicroPython-HTTP-Server
54bda9d55ac65b9a6bbf2189098a788add52b344
[ "MIT" ]
null
null
null
import sys import time import uasyncio as asyncio from ahttpserver import sendfile, Server app = Server() @app.route("GET", "/") async def root(reader, writer, request): writer.write(b"HTTP/1.1 200 OK\r\n") writer.write(b"Connection: close\r\n") writer.write(b"Content-Type: text/html\r\n") ...
28.611111
87
0.626796
0
0
0
0
1,430
0.55534
1,499
0.582136
903
0.35068
725f0a434de0934431956914cb716614971e97cb
3,851
py
Python
models/audio_net.py
vipulSharma18/Deep-Self-Supervised-Audio-Video-Cosegmentation-with-Adaptive-Noise-Cancellation
d52695be31a1552d0785f3b6634bde6ef9276a90
[ "MIT" ]
null
null
null
models/audio_net.py
vipulSharma18/Deep-Self-Supervised-Audio-Video-Cosegmentation-with-Adaptive-Noise-Cancellation
d52695be31a1552d0785f3b6634bde6ef9276a90
[ "MIT" ]
null
null
null
models/audio_net.py
vipulSharma18/Deep-Self-Supervised-Audio-Video-Cosegmentation-with-Adaptive-Noise-Cancellation
d52695be31a1552d0785f3b6634bde6ef9276a90
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F class Unet(nn.Module): def __init__(self, fc_dim=64, num_downs=5, ngf=64, use_dropout=False): super(Unet, self).__init__() # construct unet structure unet_block = UnetBlock( ngf * 8, ngf * 8, input_n...
35.657407
75
0.539081
3,610
0.937419
0
0
0
0
0
0
193
0.050117
726015e732db272b6ddb3ba0b812c3994b6a974f
6,117
py
Python
tests/test_core.py
cnschema/kgtool
599e23a9e8a856625143b171f9c36eb5b00623f6
[ "Apache-2.0" ]
7
2018-08-22T01:09:40.000Z
2022-03-31T18:03:33.000Z
tests/test_core.py
cnschema/kgtool
599e23a9e8a856625143b171f9c36eb5b00623f6
[ "Apache-2.0" ]
2
2020-05-09T12:01:15.000Z
2021-06-01T22:17:12.000Z
tests/test_core.py
cnschema/kgtool
599e23a9e8a856625143b171f9c36eb5b00623f6
[ "Apache-2.0" ]
8
2018-03-07T01:28:32.000Z
2020-09-06T18:27:27.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Path hack import os import sys sys.path.insert(0, os.path.abspath('..')) try: import unittest2 as unittest except ImportError: import unittest from kgtool.core import * # noqa class CoreTestCase(unittest.TestCase): def setUp(self): pass def t...
29.839024
101
0.560896
5,912
0.953087
0
0
0
0
0
0
1,494
0.240851
7261ec9ea850db246c5fb7cbfebb2bc01fe9250d
903
py
Python
ui/Rhino/AGS/dev/AGS_toolbar_display_cmd.py
ricardoavelino/compas_ags
1c9e496bc4b72b11adc80ea97288ddc27e92c08e
[ "MIT" ]
1
2021-08-14T11:14:52.000Z
2021-08-14T11:14:52.000Z
ui/Rhino/AGS/dev/AGS_toolbar_display_cmd.py
ricardoavelino/compas_ags
1c9e496bc4b72b11adc80ea97288ddc27e92c08e
[ "MIT" ]
null
null
null
ui/Rhino/AGS/dev/AGS_toolbar_display_cmd.py
ricardoavelino/compas_ags
1c9e496bc4b72b11adc80ea97288ddc27e92c08e
[ "MIT" ]
null
null
null
from __future__ import print_function from __future__ import absolute_import from __future__ import division import scriptcontext as sc import compas_rhino from compas_ags.rhino import SettingsForm from compas_ags.rhino import FormObject from compas_ags.rhino import ForceObject __commandname__ = "AGS_toolbar_displa...
25.083333
99
0.615725
0
0
0
0
0
0
0
0
281
0.311185
726209920117b9b9ebcbf40bbfd0a7a9d4bd3f25
10,312
py
Python
lpp/evaluator.py
VidoniJorge/c-interprete
4f026d093b26289d3f692cd64d52069fdd1d954c
[ "Apache-2.0" ]
null
null
null
lpp/evaluator.py
VidoniJorge/c-interprete
4f026d093b26289d3f692cd64d52069fdd1d954c
[ "Apache-2.0" ]
null
null
null
lpp/evaluator.py
VidoniJorge/c-interprete
4f026d093b26289d3f692cd64d52069fdd1d954c
[ "Apache-2.0" ]
null
null
null
from typing import ( Any, cast, List, Optional, Type ) import lpp.ast as ast from lpp.builtins import BUILTINS from lpp.object import( Boolean, Builtin, Environment, Error, Function, Integer, Null, Object, ObjectType, String, Return ) TRUE = Boolean(True...
33.264516
113
0.650698
0
0
0
0
0
0
0
0
222
0.021528
726246040afca77178e3293325a2bcbc9ed6e53e
121,132
py
Python
cli/tests/pcluster/config/test_validators.py
QPC-database/aws-parallelcluster
8c2e9595ca171340df21695c27d85dc00f19d3e4
[ "Apache-2.0" ]
1
2021-07-10T13:59:46.000Z
2021-07-10T13:59:46.000Z
cli/tests/pcluster/config/test_validators.py
QPC-database/aws-parallelcluster
8c2e9595ca171340df21695c27d85dc00f19d3e4
[ "Apache-2.0" ]
null
null
null
cli/tests/pcluster/config/test_validators.py
QPC-database/aws-parallelcluster
8c2e9595ca171340df21695c27d85dc00f19d3e4
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "LICENSE.txt" file accom...
39.780624
120
0.588383
0
0
0
0
103,984
0.858435
0
0
53,548
0.442063
72626018c04a7d52d09238e8d7436046a0c6a071
652
py
Python
flask_app.py
takamatsu-shyo/yolo-microservice
b8ab03b98c0939ab1849d0da938d0878b0ec441f
[ "MIT" ]
null
null
null
flask_app.py
takamatsu-shyo/yolo-microservice
b8ab03b98c0939ab1849d0da938d0878b0ec441f
[ "MIT" ]
null
null
null
flask_app.py
takamatsu-shyo/yolo-microservice
b8ab03b98c0939ab1849d0da938d0878b0ec441f
[ "MIT" ]
null
null
null
from flask import Flask from flask import request from flask import Response from resources import resourcePing, resourceResolution from message_protocol.resolution_input import parseResolutionInput import json app = Flask(__name__) @app.route('/ping', methods=['GET']) def ping(): output = resourcePing.main() ...
29.636364
66
0.759202
0
0
0
0
414
0.634969
0
0
67
0.102761
7263c0e12b1f9385bffd20a482055a91cac00beb
996
py
Python
backend/server/server/wsgi.py
Stinger101/my_uno_ml_service
47d19f6e5e19e73c465b7ddca889324c9bd5862f
[ "MIT" ]
null
null
null
backend/server/server/wsgi.py
Stinger101/my_uno_ml_service
47d19f6e5e19e73c465b7ddca889324c9bd5862f
[ "MIT" ]
null
null
null
backend/server/server/wsgi.py
Stinger101/my_uno_ml_service
47d19f6e5e19e73c465b7ddca889324c9bd5862f
[ "MIT" ]
null
null
null
""" WSGI config for server project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTIN...
33.2
315
0.800201
0
0
0
0
0
0
0
0
419
0.420683
72656ef10a55622587068a8e047a20f959778ca6
2,583
py
Python
pycbc/config.py
mchestr/pycbc
c215c1f177fe383ec6e797437fa2d5f4727eb9f3
[ "Unlicense" ]
null
null
null
pycbc/config.py
mchestr/pycbc
c215c1f177fe383ec6e797437fa2d5f4727eb9f3
[ "Unlicense" ]
null
null
null
pycbc/config.py
mchestr/pycbc
c215c1f177fe383ec6e797437fa2d5f4727eb9f3
[ "Unlicense" ]
null
null
null
import os from functools import reduce import boto3 import yaml from copy import deepcopy from cryptography.fernet import Fernet from pycbc import json from pycbc.utils import AttrDict as d s3 = boto3.client('s3') _mapping_tag = yaml.resolver.BaseResolver.DEFAULT_MAPPING_TAG _DEFAULTS = d({ 'users': [], 'enc...
25.323529
75
0.541231
0
0
0
0
0
0
0
0
480
0.18583
7265b89cf3b023b36a24bc0d387a352f1ee8492b
1,881
py
Python
models/toolscontext/errorhandler.py
vinirossa/password_generator_test
dd2f43540c6f58ff9217320c21b246c0be3fc55f
[ "MIT" ]
2
2021-09-10T00:11:00.000Z
2021-09-10T02:47:54.000Z
models/toolscontext/errorhandler.py
vinirossa/password_generator_test
dd2f43540c6f58ff9217320c21b246c0be3fc55f
[ "MIT" ]
null
null
null
models/toolscontext/errorhandler.py
vinirossa/password_generator_test
dd2f43540c6f58ff9217320c21b246c0be3fc55f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Module Name Description... """ __author__ = "Vinícius Pereira" __copyright__ = "Copyright 2021, Vinícius Pereira" __credits__ = ["Vinícius Pereira","etc."] __date__ = "2021/04/12" __license__ = "GPL" __version__ = "1.0.0" __pythonversion__ = "3.9.1" __maintaine...
24.115385
106
0.640617
0
0
0
0
0
0
0
0
578
0.306631
72676d2137788d26c0fcf85bc5ff2c5f1b9c272c
2,893
py
Python
05-Intro-to-SpaCy/scripts/choropleth.py
henchc/Rediscovering-Text-as-Data
3e14fa7a4bd82899ea564d4f7857a5dbdc616a4f
[ "MIT" ]
15
2017-08-29T01:13:42.000Z
2020-12-30T17:10:32.000Z
05-Intro-to-SpaCy/scripts/choropleth.py
henchc/Rediscovering-Text-as-Data
3e14fa7a4bd82899ea564d4f7857a5dbdc616a4f
[ "MIT" ]
null
null
null
05-Intro-to-SpaCy/scripts/choropleth.py
henchc/Rediscovering-Text-as-Data
3e14fa7a4bd82899ea564d4f7857a5dbdc616a4f
[ "MIT" ]
23
2017-08-30T16:59:41.000Z
2019-12-07T07:09:17.000Z
def us_choropleth(t): import matplotlib.cm from matplotlib.patches import Polygon from matplotlib.collections import PatchCollection from matplotlib.colors import Normalize import shapefile import matplotlib.pyplot as plt from mpl_toolkits.basemap import Basemap import numpy as np im...
30.776596
75
0.648462
0
0
0
0
0
0
0
0
599
0.207052
726777c55df7d3f2aede322d72f4954164b655c1
2,348
py
Python
take_day_and_night_pictures.py
ntmoore/skycamera
c8c67970b0e3a52ce008dbd6b34df20cdda786b7
[ "MIT" ]
null
null
null
take_day_and_night_pictures.py
ntmoore/skycamera
c8c67970b0e3a52ce008dbd6b34df20cdda786b7
[ "MIT" ]
null
null
null
take_day_and_night_pictures.py
ntmoore/skycamera
c8c67970b0e3a52ce008dbd6b34df20cdda786b7
[ "MIT" ]
null
null
null
import time import os #parameters sunset_hr=8 dawn_hr=7 daytime_period_min=60 nighttime_period_min=1 time.localtime() print("program starts at ",time.localtime()); while(1): #Is it day or night? time.localtime() hour = time.localtime()[3] minute = time.localtime()[4] hour_float = 1.0*hour+minute...
29.721519
94
0.568143
0
0
0
0
0
0
0
0
774
0.329642