hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
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
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
⌀
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
251
max_forks_repo_name
stringlengths
4
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.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
2bcf6e636ec67d0a627f8da839c75c8a049a8846
273
py
Python
frazzl/types/entity.py
jimtheplant/qraphql-booster
cc905310ca19c32e8c555c54069a0ac5b127d505
[ "Apache-2.0" ]
2
2019-11-20T16:18:53.000Z
2020-05-25T11:00:58.000Z
frazzl/types/entity.py
jimtheplant/qraphql-booster
cc905310ca19c32e8c555c54069a0ac5b127d505
[ "Apache-2.0" ]
null
null
null
frazzl/types/entity.py
jimtheplant/qraphql-booster
cc905310ca19c32e8c555c54069a0ac5b127d505
[ "Apache-2.0" ]
null
null
null
from ariadne import ObjectType
21
55
0.765568
2bd109992083f654ea69f6db60e377f6f8a7e5c8
831
py
Python
sounds/.ipynb_checkpoints/preprocess_sound-checkpoint.py
yanisbahroun/NeurIPS_SM_ICA
07a719564153be5732a9ad556337d0bb55c9cb1c
[ "BSD-2-Clause" ]
null
null
null
sounds/.ipynb_checkpoints/preprocess_sound-checkpoint.py
yanisbahroun/NeurIPS_SM_ICA
07a719564153be5732a9ad556337d0bb55c9cb1c
[ "BSD-2-Clause" ]
null
null
null
sounds/.ipynb_checkpoints/preprocess_sound-checkpoint.py
yanisbahroun/NeurIPS_SM_ICA
07a719564153be5732a9ad556337d0bb55c9cb1c
[ "BSD-2-Clause" ]
null
null
null
"""The script makes the sources to have same length, as well as have the same sampling rate""" from scipy.io import wavfile import utilities as utl # Read the .wav files as numpy arrays rate1, data1 = wavfile.read("sourceX.wav") rate2, data2 = wavfile.read("sourceY.wav") # Plot the sounds as time series data utl.plot...
37.772727
106
0.740072
2bd309d040112a1127680460018a592ca804766a
1,389
py
Python
swi_ml/classification/logistic_regression.py
aitikgupta/swi-ml
c7a44c71683a9bfb4adb13c7eb6117e652177807
[ "MIT" ]
16
2021-01-30T16:03:19.000Z
2022-03-27T11:13:05.000Z
swi_ml/classification/logistic_regression.py
aitikgupta/swi-ml
c7a44c71683a9bfb4adb13c7eb6117e652177807
[ "MIT" ]
1
2021-01-30T19:28:05.000Z
2021-01-30T19:28:05.000Z
swi_ml/classification/logistic_regression.py
aitikgupta/swi-ml
c7a44c71683a9bfb4adb13c7eb6117e652177807
[ "MIT" ]
null
null
null
from swi_ml import activations from swi_ml.regression.linear_regression import ( _BaseRegression, L1_L2Regularisation, )
28.346939
65
0.596832
2bd3ca214bb18b2244342ed2d4e2e70853a6ed4f
1,721
py
Python
ee/clickhouse/views/groups.py
csmatar/posthog
4587cfe18625f302726c531f06a32c18e9749e9d
[ "MIT" ]
null
null
null
ee/clickhouse/views/groups.py
csmatar/posthog
4587cfe18625f302726c531f06a32c18e9749e9d
[ "MIT" ]
15
2021-11-09T10:49:34.000Z
2021-11-09T16:11:01.000Z
ee/clickhouse/views/groups.py
csmatar/posthog
4587cfe18625f302726c531f06a32c18e9749e9d
[ "MIT" ]
null
null
null
import json from collections import defaultdict from rest_framework import exceptions, request, response, serializers, viewsets from rest_framework.decorators import action from rest_framework.mixins import ListModelMixin, RetrieveModelMixin from ee.clickhouse.client import sync_execute from ee.clickhouse.sql.person ...
39.113636
98
0.733876
2bd55328213ae4ee50db668e28293c74adbf04e3
1,198
py
Python
api/audit_trail/migrations/0009_control_code_payload.py
django-doctor/lite-api
1ba278ba22ebcbb977dd7c31dd3701151cd036bf
[ "MIT" ]
null
null
null
api/audit_trail/migrations/0009_control_code_payload.py
django-doctor/lite-api
1ba278ba22ebcbb977dd7c31dd3701151cd036bf
[ "MIT" ]
null
null
null
api/audit_trail/migrations/0009_control_code_payload.py
django-doctor/lite-api
1ba278ba22ebcbb977dd7c31dd3701151cd036bf
[ "MIT" ]
null
null
null
from django.db import migrations from api.audit_trail.enums import AuditType def update_good_review_payload(apps, schema_editor): """ Convert old AuditType.verb with format to new AuditType.verb as enum value. """ if schema_editor.connection.alias != "default": return Audit = apps.get_mo...
30.717949
105
0.641903
2bd5f8544212e23f65b882d89a3c224ece175d41
2,882
py
Python
src/App/tests/test_setConfiguration.py
tseaver/Zope-RFA
08634f39b0f8b56403a2a9daaa6ee4479ef0c625
[ "ZPL-2.1" ]
2
2015-12-21T10:34:56.000Z
2017-09-24T11:07:58.000Z
src/App/tests/test_setConfiguration.py
MatthewWilkes/Zope
740f934fc9409ae0062e8f0cd6dcfd8b2df00376
[ "ZPL-2.1" ]
null
null
null
src/App/tests/test_setConfiguration.py
MatthewWilkes/Zope
740f934fc9409ae0062e8f0cd6dcfd8b2df00376
[ "ZPL-2.1" ]
null
null
null
############################################################################## # # Copyright (c) 2004 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOF...
35.146341
78
0.644344
2bd8a7bf4f3a44da4637775f9b8932d258ab790c
412
py
Python
_27_TEXT_PROCESSING/_3_Substring.py
YordanPetrovDS/Python_Fundamentals
81163054cd3ac780697eaa43f099cc455f253a0c
[ "MIT" ]
null
null
null
_27_TEXT_PROCESSING/_3_Substring.py
YordanPetrovDS/Python_Fundamentals
81163054cd3ac780697eaa43f099cc455f253a0c
[ "MIT" ]
null
null
null
_27_TEXT_PROCESSING/_3_Substring.py
YordanPetrovDS/Python_Fundamentals
81163054cd3ac780697eaa43f099cc455f253a0c
[ "MIT" ]
null
null
null
print(replace_all(input(), input())) # replace_string = input() # actual_string = input() # # while replace_string in actual_string: # actual_string = actual_string.replace(replace_string, "") # # print(f"{actual_string}")
25.75
65
0.737864
2bd921498006ca8970775bb2c1edd726ac7ac468
2,201
py
Python
leetcode/python/wildcardMatching.py
yaoxuanw007/forfun
db50bd40852d49bd68bae03ceb43cb4a901c6d37
[ "MIT" ]
null
null
null
leetcode/python/wildcardMatching.py
yaoxuanw007/forfun
db50bd40852d49bd68bae03ceb43cb4a901c6d37
[ "MIT" ]
null
null
null
leetcode/python/wildcardMatching.py
yaoxuanw007/forfun
db50bd40852d49bd68bae03ceb43cb4a901c6d37
[ "MIT" ]
null
null
null
# https://oj.leetcode.com/problems/wildcard-matching/ Solution.isMatchR = Solution._memorize(Solution.isMatchR) # Test s = Solution() print s.isMatch("aa","a"), False print s.isMatch("aa","aa"), True print s.isMatch("aaa","aa"), False print s.isMatch("aa", "*"), True print s.isMatch("aa", "a*"), True print s.isMatc...
26.841463
93
0.548841
2bd961445c34c74c0a9eb7f394997d458e3c36e7
2,138
py
Python
python/nano/src/bigdl/nano/deps/neural_compressor/pytorch/utils.py
sgwhat/BigDL
25b402666fbb26b0bc18fc8100e9a00469844778
[ "Apache-2.0" ]
null
null
null
python/nano/src/bigdl/nano/deps/neural_compressor/pytorch/utils.py
sgwhat/BigDL
25b402666fbb26b0bc18fc8100e9a00469844778
[ "Apache-2.0" ]
null
null
null
python/nano/src/bigdl/nano/deps/neural_compressor/pytorch/utils.py
sgwhat/BigDL
25b402666fbb26b0bc18fc8100e9a00469844778
[ "Apache-2.0" ]
null
null
null
# # Copyright 2016 The BigDL Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
37.508772
92
0.597755
2bd9973a07e3156ff4a84bcb99cd3ef64fb4cedb
2,066
py
Python
surface/orig8_corpus_stats.py
megodoonch/birdsong
582e7ddecf6c9c1b75f17418097f7bcbf6784d31
[ "BSD-3-Clause-Clear" ]
null
null
null
surface/orig8_corpus_stats.py
megodoonch/birdsong
582e7ddecf6c9c1b75f17418097f7bcbf6784d31
[ "BSD-3-Clause-Clear" ]
null
null
null
surface/orig8_corpus_stats.py
megodoonch/birdsong
582e7ddecf6c9c1b75f17418097f7bcbf6784d31
[ "BSD-3-Clause-Clear" ]
null
null
null
import random import pandas as pd import compare_bigrams import sys import os import as_numeric import quantify_copying # The file that contains the base corpus INPUT_FILE = "../corpus/cath8.txt" # Each line should be a sentence, with the words separated by spaces # Read the input file and obtain a list of list o...
28.694444
97
0.690707
2bdb68df54d9aa08cc436ff6ba347abae2b26cdc
1,421
py
Python
baseTest/DriverManager.py
jonreding2010/PythonLogging
c931bf84d0f71bc7917ff57009c7139886acf77f
[ "MIT" ]
null
null
null
baseTest/DriverManager.py
jonreding2010/PythonLogging
c931bf84d0f71bc7917ff57009c7139886acf77f
[ "MIT" ]
null
null
null
baseTest/DriverManager.py
jonreding2010/PythonLogging
c931bf84d0f71bc7917ff57009c7139886acf77f
[ "MIT" ]
null
null
null
from baseTest.BaseTestObject import BaseTestObject # The type Driver manager.
26.811321
62
0.684025
2bde73b9764fb0136ef3271756f67c6a2f1b95a4
2,406
py
Python
update.py
cznull/dlpkuhole2
11f63f908749c6e0e643449c93a33644caa405dc
[ "MIT" ]
2
2019-10-25T12:22:49.000Z
2019-10-25T13:22:11.000Z
update.py
cznull/dlpkuhole2
11f63f908749c6e0e643449c93a33644caa405dc
[ "MIT" ]
null
null
null
update.py
cznull/dlpkuhole2
11f63f908749c6e0e643449c93a33644caa405dc
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import os from utils import ( get_page, internet_on, my_log, post_dict_to_list, read_posts_dict, write_posts, ) cdname = os.path.dirname(__file__) filename = os.path.join(cdname, 'pkuhole.txt') filename_bak = os.path.join(cdname, 'pkuholebak.txt') if __name__ == '__main__'...
26.152174
79
0.582294
2be01fdba7fd4a0fd0bcbe156a75252f384d72ef
18,436
py
Python
RECOVERED_FILES/root/ez-segway/simulator/ez_tracer.py
AlsikeE/Ez
2f84ac1896a5b6d8f467c14d3618274bdcfd2cad
[ "Apache-2.0" ]
null
null
null
RECOVERED_FILES/root/ez-segway/simulator/ez_tracer.py
AlsikeE/Ez
2f84ac1896a5b6d8f467c14d3618274bdcfd2cad
[ "Apache-2.0" ]
null
null
null
RECOVERED_FILES/root/ez-segway/simulator/ez_tracer.py
AlsikeE/Ez
2f84ac1896a5b6d8f467c14d3618274bdcfd2cad
[ "Apache-2.0" ]
1
2021-05-08T02:23:00.000Z
2021-05-08T02:23:00.000Z
import argparse import os from misc import logger from misc import constants from collections import defaultdict, OrderedDict import numpy import re if __name__ == '__main__': parser = argparse.ArgumentParser(description='ez-segway sim.') parser.add_argument('--logFolder', nargs='?', ...
41.804989
115
0.612118
2be0ca04e974edf9be7a5a0fcaafe17dd5800ba0
132
py
Python
langbook/chapter05/test.py
zhao-embassy/learn_language
2719f27dea1877ba1da32f1c1d53ebedd5a81fdf
[ "FSFAP" ]
48
2015-02-05T15:25:47.000Z
2022-01-07T05:52:03.000Z
langbook/chapter05/test.py
zhao-embassy/learn_language
2719f27dea1877ba1da32f1c1d53ebedd5a81fdf
[ "FSFAP" ]
null
null
null
langbook/chapter05/test.py
zhao-embassy/learn_language
2719f27dea1877ba1da32f1c1d53ebedd5a81fdf
[ "FSFAP" ]
21
2015-02-12T23:50:10.000Z
2019-12-12T08:25:35.000Z
# -*- encoding: utf-8 -*- from coderunner import test, Python, main test(Python, "recursive.py", """ 15 """, is_file=True) main()
14.666667
41
0.636364
2be1a1fa8ec7479aeac3b69430ba8d4a6a93005c
2,406
py
Python
tests/test_potential_of_layers.py
calliope-project/solar-and-wind-potentials
a17000028b1c391d37b415859697aa71aea4affe
[ "MIT" ]
8
2020-10-28T14:03:39.000Z
2022-01-08T16:38:42.000Z
tests/test_potential_of_layers.py
calliope-project/solar-and-wind-potentials
a17000028b1c391d37b415859697aa71aea4affe
[ "MIT" ]
18
2020-10-28T08:58:01.000Z
2021-05-14T16:33:23.000Z
tests/test_potential_of_layers.py
timtroendle/solar-and-wind-potentials
8b15f3d20a47ba3631f03026a4263ecd1fcbfd58
[ "MIT" ]
1
2020-12-07T03:13:28.000Z
2020-12-07T03:13:28.000Z
"""Test whether potential estimations between layers are similar.""" import os from pathlib import Path import pytest import pandas as pd from renewablepotentialslib.eligibility import Potential TOLERANCE = 0.005 # 0.5% BUILD_DIR = Path(os.path.abspath(__file__)).parent.parent / "build" PATH_TO_CONTINENTAL_POTENTIA...
45.396226
112
0.790524
2be599f1d48fa45f9d8d32cfab95f648f8f75077
429
py
Python
code_delivery/app.py
castilhoin/code-delivery
39073341f468d5d1e30b5d5910c043953e4b9429
[ "MIT" ]
null
null
null
code_delivery/app.py
castilhoin/code-delivery
39073341f468d5d1e30b5d5910c043953e4b9429
[ "MIT" ]
null
null
null
code_delivery/app.py
castilhoin/code-delivery
39073341f468d5d1e30b5d5910c043953e4b9429
[ "MIT" ]
null
null
null
from flask import Flask from .ext import site from .ext import config from .ext import toolbar from .ext import db from .ext import migrate from .ext import cli def create_app(): """Factory to create a Flask app based on factory pattern""" app = Flask(__name__) config.init_app(app) db.init_app(app) ...
22.578947
64
0.710956
2be6278c41064f7dddfcf63804ac3110527470ea
161
py
Python
snowBuilder/scripts/__init__.py
Sudarshanhavale/solo_packages
d68247f6f7d8b584ed65f6c73664e93864ff51bf
[ "Apache-2.0" ]
1
2020-04-17T17:01:01.000Z
2020-04-17T17:01:01.000Z
snowBuilder/scripts/__init__.py
Sudarshanhavale/solo_packages
d68247f6f7d8b584ed65f6c73664e93864ff51bf
[ "Apache-2.0" ]
null
null
null
snowBuilder/scripts/__init__.py
Sudarshanhavale/solo_packages
d68247f6f7d8b584ed65f6c73664e93864ff51bf
[ "Apache-2.0" ]
null
null
null
# Created by SNEHAL at 21-04-2020 Feature: #Enter feature name here # Enter feature description here Scenario: # Enter scenario name here # Enter steps here
20.125
37
0.757764
2be7b6a4c3ecbf9fa56f76e517a0e77803b09915
7,231
py
Python
pypeit/tests/tstutils.py
baileyji/PypeIt
eea71304f4a4bcf70148ea686967ed699dc36dfb
[ "BSD-3-Clause" ]
null
null
null
pypeit/tests/tstutils.py
baileyji/PypeIt
eea71304f4a4bcf70148ea686967ed699dc36dfb
[ "BSD-3-Clause" ]
null
null
null
pypeit/tests/tstutils.py
baileyji/PypeIt
eea71304f4a4bcf70148ea686967ed699dc36dfb
[ "BSD-3-Clause" ]
null
null
null
""" Odds and ends in support of tests """ import os import pytest import numpy as np import copy from astropy import time from pypeit import arcimage from pypeit import traceslits from pypeit import wavecalib from pypeit import wavetilts from pypeit.masterframe import MasterFrame from pypeit.core.wavecal import wavei...
35.79703
102
0.637395
2be7c4031f35d62bfd049a33b25b2f6481558602
1,041
py
Python
calaccess_processed/admin/tracking.py
dwillis/django-calaccess-processed-data
f228252df1b390967468b41d336839f1bd9ca192
[ "MIT" ]
1
2021-01-13T12:06:25.000Z
2021-01-13T12:06:25.000Z
calaccess_processed/admin/tracking.py
anthonyjpesce/django-calaccess-processed-data
d99b461abb7b7f7973f90b49634c9262efcbe7bf
[ "MIT" ]
null
null
null
calaccess_processed/admin/tracking.py
anthonyjpesce/django-calaccess-processed-data
d99b461abb7b7f7973f90b49634c9262efcbe7bf
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Custom administration panels for tracking models. """ from __future__ import unicode_literals from django.contrib import admin from calaccess_processed import models from calaccess_raw.admin.base import BaseAdmin
25.390244
54
0.683958
2be8db748a16a1d91326b5c85994bfcde6e8d3f2
2,735
py
Python
setup.py
arthurazs/ScreenPDF
28d879e946cdc68271e9ca2fa7f35a2ab4972151
[ "MIT" ]
null
null
null
setup.py
arthurazs/ScreenPDF
28d879e946cdc68271e9ca2fa7f35a2ab4972151
[ "MIT" ]
3
2016-11-10T18:57:44.000Z
2017-09-10T16:12:13.000Z
setup.py
arthurazs/ScreenPDF
28d879e946cdc68271e9ca2fa7f35a2ab4972151
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # coding: utf-8 from setuptools import setup import os.path as path info_name = 'screenpdf' info_url = 'https://github.com/arthurazs/{}/'.format(info_name) author_name = 'Arthur Zopellaro' email = 'arthurazsoares@gmail.com' try: with open(path.abspath(path.join(info_name, ...
30.730337
68
0.603656
2be994b7f975fe87a3e9a788b292a3f07f0cb749
482
py
Python
apps/boot_blink_post.py
ssi5/circuitpython
34ff0d343b8918ecfdccfd8e54c0877180ad9740
[ "MIT" ]
null
null
null
apps/boot_blink_post.py
ssi5/circuitpython
34ff0d343b8918ecfdccfd8e54c0877180ad9740
[ "MIT" ]
null
null
null
apps/boot_blink_post.py
ssi5/circuitpython
34ff0d343b8918ecfdccfd8e54c0877180ad9740
[ "MIT" ]
null
null
null
# welcome blink and post import time import board import digitalio import microcontroller led = digitalio.DigitalInOut(board.LED) led.direction = digitalio.Direction.OUTPUT for x in range(3): led.value = False time.sleep(0.2) led.value = True time.sleep(0.2) print("This is a {}, running at {:.1f} MH...
25.368421
113
0.732365
2bed27e78e266549ed3fd0ab95fec60eddae005c
3,481
py
Python
bin/anthology/people.py
KhalilMrini/acl-anthology
ca36605b81b508ee3d70480a41e92f4e11c29032
[ "Apache-2.0" ]
1
2021-08-04T04:03:35.000Z
2021-08-04T04:03:35.000Z
bin/anthology/people.py
KhalilMrini/acl-anthology
ca36605b81b508ee3d70480a41e92f4e11c29032
[ "Apache-2.0" ]
1
2021-04-19T17:14:31.000Z
2021-04-19T17:14:31.000Z
bin/anthology/people.py
KhalilMrini/acl-anthology
ca36605b81b508ee3d70480a41e92f4e11c29032
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2019 Marcel Bollmann <marcel@bollmann.me> # # 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 r...
31.645455
82
0.595806
2bf00f70f8211fba122e48124085551574fc2d0f
8,150
py
Python
launch.py
danif93/MLProject
d93fc647f2cc135dc531889ffde3cd54f56a7210
[ "MIT" ]
null
null
null
launch.py
danif93/MLProject
d93fc647f2cc135dc531889ffde3cd54f56a7210
[ "MIT" ]
null
null
null
launch.py
danif93/MLProject
d93fc647f2cc135dc531889ffde3cd54f56a7210
[ "MIT" ]
null
null
null
# coding: utf-8 # In[ ]: import mnist_loader as load import neural_network as neuronet import activation_functions as af import optimisation_functions as of import cost_functions as cf import learningStep_generators as lg import numpy as np import matplotlib.pyplot as plt get_ipython().magic('matplotlib inline') ...
38.084112
191
0.766503
2bf019712de59bf5b206a860d7ffb4d44cf73b61
8,005
py
Python
python version/box_model.py
asiddi24/box_model
011fb0e272c12019fa4c2533661c5eb1f8c0001a
[ "MIT" ]
null
null
null
python version/box_model.py
asiddi24/box_model
011fb0e272c12019fa4c2533661c5eb1f8c0001a
[ "MIT" ]
null
null
null
python version/box_model.py
asiddi24/box_model
011fb0e272c12019fa4c2533661c5eb1f8c0001a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Jun 4 16:35:40 2019 @author: asiddi24 """ '''Four box model''' import numpy as np import gsw as gsw import time import matplotlib.pyplot as plt
44.72067
145
0.484322
2bf108d95891106d4dc930297e966511ec0c8d34
981
py
Python
api/management/commands/pets_list.py
V-Holodov/pets_accounting
300cb8748124b6f767e85404ee372b93b097098c
[ "MIT" ]
null
null
null
api/management/commands/pets_list.py
V-Holodov/pets_accounting
300cb8748124b6f767e85404ee372b93b097098c
[ "MIT" ]
1
2021-12-22T14:08:37.000Z
2021-12-22T14:08:37.000Z
api/management/commands/pets_list.py
V-Holodov/pets_accounting
300cb8748124b6f767e85404ee372b93b097098c
[ "MIT" ]
1
2021-12-24T11:50:26.000Z
2021-12-24T11:50:26.000Z
import io from django.core.management.base import BaseCommand from rest_framework.parsers import JSONParser from rest_framework.renderers import JSONRenderer from api.models import Pet from api.serializers import PetSerializer
29.727273
72
0.666667
2bf122809aba2074e678a428f5c1706ec17b6493
626
py
Python
src/ocr/dataset/helper.py
AlessandroZanatta/ML-Captcha-Solver
09d4eba3d277203eeb324440eb5641c9ce287963
[ "MIT" ]
null
null
null
src/ocr/dataset/helper.py
AlessandroZanatta/ML-Captcha-Solver
09d4eba3d277203eeb324440eb5641c9ce287963
[ "MIT" ]
null
null
null
src/ocr/dataset/helper.py
AlessandroZanatta/ML-Captcha-Solver
09d4eba3d277203eeb324440eb5641c9ce287963
[ "MIT" ]
null
null
null
import numpy as np
26.083333
88
0.583067
2bf153b34978b2dda75bc3fb18aee51e8b4afa45
649
py
Python
oops_fhir/r4/value_set/v3_equipment_alert_level.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
oops_fhir/r4/value_set/v3_equipment_alert_level.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
oops_fhir/r4/value_set/v3_equipment_alert_level.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
from pathlib import Path from fhir.resources.valueset import ValueSet as _ValueSet from oops_fhir.utils import ValueSet from oops_fhir.r4.code_system.v3_equipment_alert_level import ( v3EquipmentAlertLevel as v3EquipmentAlertLevel_, ) __all__ = ["v3EquipmentAlertLevel"] _resource = _ValueSet.parse_file(Path(...
20.935484
69
0.750385
2bf1fa79fccb8a23dfa75ef82b9bf40360252990
3,284
py
Python
cogs/moderator.py
theobori/bot-template
3aba0ed127c435e25b29be163f870f5088a611d8
[ "MIT" ]
null
null
null
cogs/moderator.py
theobori/bot-template
3aba0ed127c435e25b29be163f870f5088a611d8
[ "MIT" ]
null
null
null
cogs/moderator.py
theobori/bot-template
3aba0ed127c435e25b29be163f870f5088a611d8
[ "MIT" ]
null
null
null
"""moderation cog""" from discord.ext import commands import discord from utils.database import CursorDB from utils.page import Pages, make_groups from utils.utilities import basic_frame, basic_message from utils.reactions import Reactions
29.321429
105
0.601705
2bf2f7c097096dee417521bb08ed9caad1bcf85b
4,340
py
Python
mpi_migration.py
max-509/distributed-kirchhoff-migration
43c1dc2706f6ceb4e010ab005c34ff8ae6f51645
[ "Apache-2.0" ]
null
null
null
mpi_migration.py
max-509/distributed-kirchhoff-migration
43c1dc2706f6ceb4e010ab005c34ff8ae6f51645
[ "Apache-2.0" ]
1
2022-02-02T06:40:04.000Z
2022-02-02T06:40:04.000Z
mpi_migration.py
max-509/distributed-kirchhoff-migration
43c1dc2706f6ceb4e010ab005c34ff8ae6f51645
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import os.path from mpi4py import MPI import numpy as np import pandas as pd import tensorflow as tf import configparser import numba import multiprocessing as mp import sys from concurrent.futures import ThreadPoolExecutor from _migration import calculate_migration if __name__ == '__main__...
32.631579
124
0.66659
2bf3a2f0d26b50aa2cf1e968ebff3eed788af470
13,622
py
Python
plugins/trakt/test/test_trakt.py
Tigge/platinumshrimp
fc5c8e825a714253b18b46cedafe28820a3a34b7
[ "MIT" ]
2
2017-12-20T16:56:37.000Z
2021-01-19T18:41:53.000Z
plugins/trakt/test/test_trakt.py
Tigge/platinumshrimp
fc5c8e825a714253b18b46cedafe28820a3a34b7
[ "MIT" ]
18
2015-01-03T21:33:09.000Z
2018-12-04T12:05:58.000Z
plugins/trakt/test/test_trakt.py
Tigge/platinumshrimp
fc5c8e825a714253b18b46cedafe28820a3a34b7
[ "MIT" ]
6
2015-01-02T01:16:38.000Z
2021-09-04T01:28:38.000Z
import json import os import unittest from unittest.mock import Mock, patch import requests_mock from dateutil import relativedelta from plugins.trakt.trakt import Trakt from plugins.trakt import api """ Presets copied from Trakt's API """ ACTIVITY_PRESET_EPISODE_1 = { "watched_at": "2014-03-31T09:28:53.000Z"...
34.75
143
0.551681
2bf4cf97686269a46eb3ddc822b1a02b29a68eb9
5,675
py
Python
psop.py
robalty/pysynth
aa7abf78079af5b6dee29b1b97af5aa31e7b64e8
[ "MIT" ]
1
2020-05-04T23:49:38.000Z
2020-05-04T23:49:38.000Z
psop.py
robalty/pysynth
aa7abf78079af5b6dee29b1b97af5aa31e7b64e8
[ "MIT" ]
5
2020-05-06T01:22:37.000Z
2020-05-28T18:13:04.000Z
psop.py
robalty/pysynth
aa7abf78079af5b6dee29b1b97af5aa31e7b64e8
[ "MIT" ]
1
2020-06-07T22:23:56.000Z
2020-06-07T22:23:56.000Z
import math import numpy as np SAMPLERATE = 48000 def algtest(ops, clock, size): return samples_fb(ops[0], clock, size) def samples(op, clock, size): first = np.sin(np.fromfunction(lambda x: op.sample(clock + (x / SAMPLERATE)), (size,))) vol = op.envelope.get_vols(size) return np.multiply(vol,np...
29.868421
92
0.570396
2bf8e95176c9e685fb3202612e058ef1486d6f76
4,077
py
Python
src/app.py
shivamshinde123/mushroom_classification
fbeb4be4fcd31625d9412a0cef58622780dddffc
[ "MIT" ]
1
2022-03-30T08:21:12.000Z
2022-03-30T08:21:12.000Z
src/app.py
shivamshinde123/mushroom_classification
fbeb4be4fcd31625d9412a0cef58622780dddffc
[ "MIT" ]
null
null
null
src/app.py
shivamshinde123/mushroom_classification
fbeb4be4fcd31625d9412a0cef58622780dddffc
[ "MIT" ]
null
null
null
import pathlib from flask import Flask, redirect, render_template, request, Response, url_for, session import secrets import json from Predictions_using_trained_model import predictionsUsingTheTrainedModels from predictionDatabaseOperations import PredictionDBOperations from predictionPreprocessing import PredictionPr...
32.616
107
0.727005
2bf9743b7839d926775ed3660be8f3a065cd08dd
2,017
py
Python
Python/Tweet/read_tweet.py
LilyYC/legendary-train
214525afeeb2da2409f451bf269e792c6940a1ba
[ "MIT" ]
null
null
null
Python/Tweet/read_tweet.py
LilyYC/legendary-train
214525afeeb2da2409f451bf269e792c6940a1ba
[ "MIT" ]
null
null
null
Python/Tweet/read_tweet.py
LilyYC/legendary-train
214525afeeb2da2409f451bf269e792c6940a1ba
[ "MIT" ]
null
null
null
def read_tweets(file): """ (file open for reading) -> dict of {str: list of tweet tuples} Return a dictionary with the names of the candidates as keys, and tweet tuple in the form of (candidate, tweet text, date, source, favorite count, retweet count)as values """ dic = {} key = "" ...
35.385965
80
0.54239
2bf9da14a8590cb2e410ccf84e328acb4bba5bef
607
py
Python
exe065a.py
Alexmachado81/ExerciciosPython_Resolvidos
2774ba742788eb7b545f3f85e9438deb68a983d4
[ "MIT" ]
null
null
null
exe065a.py
Alexmachado81/ExerciciosPython_Resolvidos
2774ba742788eb7b545f3f85e9438deb68a983d4
[ "MIT" ]
null
null
null
exe065a.py
Alexmachado81/ExerciciosPython_Resolvidos
2774ba742788eb7b545f3f85e9438deb68a983d4
[ "MIT" ]
null
null
null
cond = 'S' num = quant = soma = maior = menor =0 while cond in 'Ss': num = int(input(' Informe um numero:')) quant += 1 soma += num cond = str(input('Quer Continuar?[S/N]')).upper().strip()[0] if quant == 1: maior = menor = num else: if num > maior: maior = num ...
27.590909
76
0.532125
2bfa633ea90ac984f4075624c6eb6d5ad5a3bbf4
6,206
py
Python
scAnalysis/Segmentation.py
yuzhounaut/SpaceM
0fed7f14bb7d378ed0a8cf2e075bc562d6eed497
[ "Apache-2.0" ]
8
2020-05-26T13:32:29.000Z
2021-12-05T20:32:38.000Z
scAnalysis/Segmentation.py
yuzhounaut/SpaceM
0fed7f14bb7d378ed0a8cf2e075bc562d6eed497
[ "Apache-2.0" ]
2
2021-06-08T21:39:05.000Z
2022-03-12T00:31:50.000Z
scAnalysis/Segmentation.py
LRpz/SpaceM
03f7b3b871ec70ed38df63adfc4efcd30c3896a5
[ "Apache-2.0" ]
3
2020-06-18T17:06:16.000Z
2021-10-08T06:55:07.000Z
from subprocess import call import matplotlib.pyplot as plt import numpy as np import tqdm from scipy import ndimage def callCP(MFA, cp_p, cppipe_p): """Call CellProfiler (http://cellprofiler.org/) to perform cell segmentation. CellProfiler segmentation pipeline is in the spaceM folder with the '.cppipe' exte...
38.7875
121
0.633742
2bfb524c2e56d706d022852606cbc81b117c3933
1,612
py
Python
py/camvid.py
StoneWST/Dataset-Tool-for-Segmentation-
813c55e92a61f915424f2b1f0e6c4d5eb20b7ce5
[ "MIT" ]
4
2021-06-03T09:02:36.000Z
2022-02-28T00:58:22.000Z
py/camvid.py
wusitong98/Dataset-Tool-Segmentation
813c55e92a61f915424f2b1f0e6c4d5eb20b7ce5
[ "MIT" ]
null
null
null
py/camvid.py
wusitong98/Dataset-Tool-Segmentation
813c55e92a61f915424f2b1f0e6c4d5eb20b7ce5
[ "MIT" ]
null
null
null
import os import fire if __name__ == '__main__': fire.Fire() # python3 camvid.py gen_camvid_txt
28.280702
72
0.694789
2bfc4f790355a7817532bd5b978db33d27b1e506
2,269
py
Python
grapaold/layerfiles/gcomgraphcutter.py
psorus/grapa
6af343bb35c466c971ded1876e7a9d00e77cef00
[ "MIT" ]
null
null
null
grapaold/layerfiles/gcomgraphcutter.py
psorus/grapa
6af343bb35c466c971ded1876e7a9d00e77cef00
[ "MIT" ]
null
null
null
grapaold/layerfiles/gcomgraphcutter.py
psorus/grapa
6af343bb35c466c971ded1876e7a9d00e77cef00
[ "MIT" ]
null
null
null
import numpy as np import math from tensorflow.keras import backend as K from tensorflow.keras.layers import Layer,Dense, Activation import tensorflow.keras as keras# as k import tensorflow as t from tensorflow.keras.models import Sequential from tensorflow.keras.optimizers import Adam,SGD from tensorflow.linalg impor...
21.205607
185
0.633759
2bfd2325a2d75def166622b037138785dc2ae620
1,778
py
Python
extract_feature.py
Doarakko/baseball-and-football-face-classification
53e1ff21918aab1b9b881c2dae4473e6bb1194a8
[ "MIT" ]
null
null
null
extract_feature.py
Doarakko/baseball-and-football-face-classification
53e1ff21918aab1b9b881c2dae4473e6bb1194a8
[ "MIT" ]
null
null
null
extract_feature.py
Doarakko/baseball-and-football-face-classification
53e1ff21918aab1b9b881c2dae4473e6bb1194a8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import glob import re import os import numpy as np from keras.engine import Model from keras.preprocessing.image import img_to_array, load_img from keras.utils import plot_model from keras_vggface.vggface import VGGFace from keras_vggface import utils layer_list = ['flatten', 'fc6', 'fc6/relu',...
35.56
125
0.662542
9201694101813be0a08afb3b5067429915a5f7d8
9,662
py
Python
PyRNN/rnn-train.py
theThing92/rub-met21
9d3d2e128a458aeb682548f1f207ee7491ca83a3
[ "MIT" ]
null
null
null
PyRNN/rnn-train.py
theThing92/rub-met21
9d3d2e128a458aeb682548f1f207ee7491ca83a3
[ "MIT" ]
null
null
null
PyRNN/rnn-train.py
theThing92/rub-met21
9d3d2e128a458aeb682548f1f207ee7491ca83a3
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import sys import argparse import random import operator import pickle import torch from torch.optim.lr_scheduler import StepLR sys.path.insert(0,'.') from PyRNN.Data import Data from PyRNN.RNNTagger import RNNTagger from PyRNN.CRFTagger import CRFTagger #################################...
39.92562
95
0.608466
92021bdc8a0aac4c752b56a0953aac9dec06b2cf
4,281
py
Python
tests/integrated/test_advertising_duration.py
teeheee/blatann
f8a75e68cd9d46b83d10482c5349842433dfa490
[ "BSD-3-Clause" ]
40
2018-03-01T19:49:20.000Z
2022-03-31T11:35:06.000Z
tests/integrated/test_advertising_duration.py
teeheee/blatann
f8a75e68cd9d46b83d10482c5349842433dfa490
[ "BSD-3-Clause" ]
29
2019-03-12T18:29:57.000Z
2022-03-30T04:21:22.000Z
tests/integrated/test_advertising_duration.py
teeheee/blatann
f8a75e68cd9d46b83d10482c5349842433dfa490
[ "BSD-3-Clause" ]
17
2019-03-27T19:11:12.000Z
2022-03-16T06:00:08.000Z
import threading import unittest from blatann.gap.advertise_data import AdvertisingData, AdvertisingFlags from blatann.gap.advertising import AdvertisingMode from blatann.gap.scanning import ScanReport, Scanner from blatann.utils import Stopwatch from tests.integrated.base import BlatannTestCase, TestParams, ...
40.386792
114
0.677412
9202c623dbd158b2b50431053b72ebb94e3aa74e
1,892
py
Python
src/ngsildclient/__init__.py
Orange-OpenSource/python-ngsild-client
23ff31506aabd23c75befece1fb3d4536903cb2a
[ "Apache-2.0" ]
7
2022-02-25T09:55:28.000Z
2022-03-25T20:48:01.000Z
src/ngsildclient/__init__.py
Orange-OpenSource/python-ngsild-client
23ff31506aabd23c75befece1fb3d4536903cb2a
[ "Apache-2.0" ]
null
null
null
src/ngsildclient/__init__.py
Orange-OpenSource/python-ngsild-client
23ff31506aabd23c75befece1fb3d4536903cb2a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Software Name: ngsildclient # SPDX-FileCopyrightText: Copyright (c) 2021 Orange # SPDX-License-Identifier: Apache 2.0 # # This software is distributed under the Apache 2.0; # see the NOTICE file for more details. # # Author: Fabien BATTELLO <fabien.battello@orange.com> et al. import http.clie...
22.258824
88
0.717759
9205e60845af979d57cfab6fce5c83182fed94a4
3,513
py
Python
tests/test_gosubdag_children.py
flying-sheep/goatools
1e3a74faa17cbdeef02550c7ddf17b65cf47d34a
[ "BSD-2-Clause" ]
477
2015-02-10T06:54:42.000Z
2022-03-15T12:36:11.000Z
tests/test_gosubdag_children.py
flying-sheep/goatools
1e3a74faa17cbdeef02550c7ddf17b65cf47d34a
[ "BSD-2-Clause" ]
174
2015-02-05T18:11:14.000Z
2022-03-29T10:24:19.000Z
tests/test_gosubdag_children.py
flying-sheep/goatools
1e3a74faa17cbdeef02550c7ddf17b65cf47d34a
[ "BSD-2-Clause" ]
202
2015-01-21T12:29:23.000Z
2022-03-01T13:26:05.000Z
#!/usr/bin/env python """Test creation of GoSubDag's rcntobj data member.""" from __future__ import print_function __copyright__ = "Copyright (C) 2016-2018, DV Klopfenstein, H Tang. All rights reserved." __author__ = "DV Klopfenstein" import os from goatools.base import get_godag from goatools.gosubdag.gosubdag impo...
43.37037
97
0.565329
9206913a1d8d9352764326bb25d5c5ac08420277
86
py
Python
pyrosetta_help/chain_ops/__init__.py
matteoferla/pyrosetta_help
6ef96455dfd389b2a8bbccfc81159737430878b9
[ "MIT" ]
7
2021-04-28T14:09:30.000Z
2022-02-14T04:41:49.000Z
pyrosetta_help/chain_ops/__init__.py
matteoferla/pyrosetta_help
6ef96455dfd389b2a8bbccfc81159737430878b9
[ "MIT" ]
null
null
null
pyrosetta_help/chain_ops/__init__.py
matteoferla/pyrosetta_help
6ef96455dfd389b2a8bbccfc81159737430878b9
[ "MIT" ]
3
2021-09-14T14:05:47.000Z
2022-01-25T22:50:19.000Z
from .chain_ops import ChainOps from .transmogrifier import Transmogrifier, Murinizer
28.666667
53
0.860465
92071f8e67600ce7e492cbb22dfc9e21581246f3
5,078
py
Python
lib_ddos_simulator/old/api/api.py
jfuruness/lib_ddos_simulator
2d860fd3f35f4c25262f5269251eed89975f95e8
[ "BSD-4-Clause" ]
1
2020-04-01T22:42:36.000Z
2020-04-01T22:42:36.000Z
lib_ddos_simulator/old/api/api.py
jfuruness/lib_ddos_simulator
2d860fd3f35f4c25262f5269251eed89975f95e8
[ "BSD-4-Clause" ]
null
null
null
lib_ddos_simulator/old/api/api.py
jfuruness/lib_ddos_simulator
2d860fd3f35f4c25262f5269251eed89975f95e8
[ "BSD-4-Clause" ]
1
2020-02-16T17:55:46.000Z
2020-02-16T17:55:46.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """This module creates the flask app to shuffle users App must be here because flask explodes if you move to subdir""" __Lisence__ = "BSD" __maintainer__ = "Justin Furuness" __email__ = "jfuruness@gmail.com" __status__ = "Development" import pkg_resources from flasgge...
32.551282
97
0.60575
9207e392d5244627558a7eff04b6d9be4add7394
2,882
py
Python
src/controllers/MPCController.py
MatthiasDR96/inverted_pendulum_simulator
c13314b625445c13a4225b88480e2bed772fe466
[ "MIT" ]
null
null
null
src/controllers/MPCController.py
MatthiasDR96/inverted_pendulum_simulator
c13314b625445c13a4225b88480e2bed772fe466
[ "MIT" ]
null
null
null
src/controllers/MPCController.py
MatthiasDR96/inverted_pendulum_simulator
c13314b625445c13a4225b88480e2bed772fe466
[ "MIT" ]
null
null
null
import cvxpy import numpy as np
32.382022
118
0.497224
920816e07c5759417fa72229f7b01ce5c519d585
1,466
py
Python
setup.py
koning/maestrowf
290b6780ab0c95c2b0927663551f1f91e879f8d4
[ "MIT" ]
null
null
null
setup.py
koning/maestrowf
290b6780ab0c95c2b0927663551f1f91e879f8d4
[ "MIT" ]
null
null
null
setup.py
koning/maestrowf
290b6780ab0c95c2b0927663551f1f91e879f8d4
[ "MIT" ]
null
null
null
from maestrowf import __version__ from setuptools import setup, find_packages setup( name='maestrowf', description='A tool to easily orchestrate general computational workflows ' 'both locally and on supercomputers.', version=__version__, author='Francesco Di Natale', maintainer='Francesco Di Natale', au...
30.541667
77
0.653479
9208f7346cadc419a62a686dd5dba387c6a93c38
8,531
py
Python
examples/seq2seq/penman_denoising.py
ahoho/transformers
366c305e5d4d122b47dd7a0a5e5e481e18e0a6ff
[ "Apache-2.0" ]
null
null
null
examples/seq2seq/penman_denoising.py
ahoho/transformers
366c305e5d4d122b47dd7a0a5e5e481e18e0a6ff
[ "Apache-2.0" ]
null
null
null
examples/seq2seq/penman_denoising.py
ahoho/transformers
366c305e5d4d122b47dd7a0a5e5e481e18e0a6ff
[ "Apache-2.0" ]
null
null
null
AMR_SOURCES = [ "(w / want-01 :ARG0 (b / boy) :ARG1 (g / go-01 :ARG0 b))" ] AMR_TARGETS = [ "The boy wants to go." ] AMR_NOISED = { "convert-to-triples": { "src": "order Graph: ( want :ARG0 ( boy ) :ARG1 ( go :ARG0 boy ) )", "tgt": "<t> want :ARG0 boy <t> want :ARG1 go <t> go :ARG0 boy" }, "generate-fr...
39.133028
94
0.563006
9209ca7291bc3b16a02b7dd17d6abd0239412d5d
674
py
Python
meiduo_mall/apps/meiduo_admin/views/group.py
Vent-Any/meiduo_mall_cangku
5b3b7f029be267cb5d2d3666f99be166d27213f1
[ "MIT" ]
null
null
null
meiduo_mall/apps/meiduo_admin/views/group.py
Vent-Any/meiduo_mall_cangku
5b3b7f029be267cb5d2d3666f99be166d27213f1
[ "MIT" ]
null
null
null
meiduo_mall/apps/meiduo_admin/views/group.py
Vent-Any/meiduo_mall_cangku
5b3b7f029be267cb5d2d3666f99be166d27213f1
[ "MIT" ]
null
null
null
############################################################################ from rest_framework.generics import ListAPIView from rest_framework.viewsets import ModelViewSet from django.contrib.auth.models import Group, Permission from apps.meiduo_admin.utils import PageNumber from apps.meiduo_admin.serializer.group ...
33.7
99
0.746291
920a0f56b7d98522ca08ddd15424f5561358eed0
5,211
py
Python
aclpwn/pathfinding.py
aas-n/aclpwn.py
b447f20b2b2ea0905e6430f6e6bb85237f13e23f
[ "MIT" ]
5
2021-05-18T21:25:46.000Z
2022-03-09T05:09:32.000Z
aclpwn/pathfinding.py
aas-n/aclpwn.py
b447f20b2b2ea0905e6430f6e6bb85237f13e23f
[ "MIT" ]
null
null
null
aclpwn/pathfinding.py
aas-n/aclpwn.py
b447f20b2b2ea0905e6430f6e6bb85237f13e23f
[ "MIT" ]
null
null
null
from aclpwn import utils, database # Cost map for relationships costmap = { 'MemberOf': 0, 'AddMember': 1, 'GenericAll': 1, 'GenericWrite': 1, 'WriteOwner': 3, 'WriteDacl': 2, 'DCSync': 0, 'Owns': 2, 'GetChangesAll': 0, 'GetChanges': 0, 'AllExtendedRights': 2 } queries =...
39.778626
133
0.573211
920a9793f168d206e013f7bbb71c589069f6db3f
6,343
py
Python
src/data/load_data_from_text.py
dsridhar91/hstm
af943b3f34e443f6fda8115b300fc828ba2ff6ba
[ "MIT" ]
null
null
null
src/data/load_data_from_text.py
dsridhar91/hstm
af943b3f34e443f6fda8115b300fc828ba2ff6ba
[ "MIT" ]
null
null
null
src/data/load_data_from_text.py
dsridhar91/hstm
af943b3f34e443f6fda8115b300fc828ba2ff6ba
[ "MIT" ]
null
null
null
import os import json import numpy as np import pandas as pd import gzip import argparse from collections import Counter if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument("--data_file", action="store", default="") parser.add_argument("--outfile", action="store", default="") pars...
29.640187
88
0.702034
920dc979bbbe3c3f4d049b066bb2c9d6cdf12abd
2,396
py
Python
app/crud/address.py
oscarine/oscarine-api
ed4760724e42ac13aeaa3a566d19bf31113c9b8f
[ "MIT" ]
7
2019-09-18T19:45:46.000Z
2020-05-18T20:07:07.000Z
app/crud/address.py
oscarine/oscarine-api
ed4760724e42ac13aeaa3a566d19bf31113c9b8f
[ "MIT" ]
252
2019-09-18T20:25:03.000Z
2022-03-25T11:23:50.000Z
app/crud/address.py
oscarine/oscarine-api
ed4760724e42ac13aeaa3a566d19bf31113c9b8f
[ "MIT" ]
8
2019-09-18T11:02:45.000Z
2021-05-18T17:08:51.000Z
from datetime import datetime from typing import List from fastapi.encoders import jsonable_encoder from sqlalchemy.orm import Session from app.api.utils.db import clone_db_model from app.db_models.address import Address from app.models.address import EditAddress, UserAddress
32.378378
88
0.707429
920dd0484a64f720a0513aad802820f70a897dcc
2,493
py
Python
Python/examples/AdvancedSpecificMultipleInstruments.py
william-richards-idexx/fgt-SDK
674b572c714302be561b08ba63ff3358dfa13cea
[ "Apache-2.0" ]
20
2019-05-21T17:43:07.000Z
2022-03-22T16:38:59.000Z
Python/examples/AdvancedSpecificMultipleInstruments.py
william-richards-idexx/fgt-SDK
674b572c714302be561b08ba63ff3358dfa13cea
[ "Apache-2.0" ]
28
2019-05-21T17:36:24.000Z
2022-03-21T07:21:51.000Z
Python/examples/AdvancedSpecificMultipleInstruments.py
william-richards-idexx/fgt-SDK
674b572c714302be561b08ba63ff3358dfa13cea
[ "Apache-2.0" ]
7
2020-09-18T23:47:25.000Z
2022-03-03T09:36:48.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """Advanced Specific Multiple Instruments This example shows how to use specific channels ID and multiple connected instruments Requires at least two Fluigent pressure channels Copyright (c) Fluigent 2019. All Rights Reserved. """ # Print function for Python 2 compatibi...
35.112676
96
0.765744
9213947a6c459942a56f0c3d98a57e842bc0d8f6
875
py
Python
_scripts/one-time/makeDecosNonCampaign.py
Son-Guhun/Titan-Land-Lands-of-Plenty
edeca1d5437a7397195799ebf4b9585ee4609fed
[ "MIT" ]
12
2019-05-27T16:02:28.000Z
2021-01-08T09:32:08.000Z
_scripts/one-time/makeDecosNonCampaign.py
Son-Guhun/Titan-Land-Lands-of-Plenty
edeca1d5437a7397195799ebf4b9585ee4609fed
[ "MIT" ]
209
2019-04-06T15:16:52.000Z
2021-07-03T02:11:53.000Z
_scripts/one-time/makeDecosNonCampaign.py
Son-Guhun/Titan-Land-Lands-of-Plenty
edeca1d5437a7397195799ebf4b9585ee4609fed
[ "MIT" ]
1
2021-05-26T12:13:35.000Z
2021-05-26T12:13:35.000Z
"""This script iterates over all decorations in a .ini database and set their Specialart field to the format expected by the SpecialEffect system. """ from myconfigparser import MyConfigParser, load_unit_data, get_decorations, Section dataBase = '../development/table/unit.ini'
33.653846
95
0.668571
9215145b51d72c2317cfa268d80567e333b4f845
7,906
py
Python
forml/testing/_spec.py
formlio/forml
fd070da74a0107e37c0c643dd8df8680618fef74
[ "Apache-2.0" ]
78
2020-11-04T18:27:20.000Z
2022-02-07T03:32:53.000Z
forml/testing/_spec.py
formlio/forml
fd070da74a0107e37c0c643dd8df8680618fef74
[ "Apache-2.0" ]
3
2020-11-05T20:42:15.000Z
2021-01-13T19:57:01.000Z
forml/testing/_spec.py
formlio/forml
fd070da74a0107e37c0c643dd8df8680618fef74
[ "Apache-2.0" ]
7
2020-11-18T17:18:15.000Z
2021-03-24T05:14:29.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
35.612613
114
0.634834
92162c36211ae5a295d2c5d9300ea4a55a55b0d5
4,135
py
Python
gradient/cli/tensorboards.py
vishalbelsare/gradient-cli
c0e06252925cad3ad73d47ded1100f6b0cb0989a
[ "0BSD" ]
52
2019-06-10T04:20:00.000Z
2021-12-06T01:13:26.000Z
gradient/cli/tensorboards.py
vishalbelsare/gradient-cli
c0e06252925cad3ad73d47ded1100f6b0cb0989a
[ "0BSD" ]
125
2019-06-05T16:34:19.000Z
2022-03-30T18:46:06.000Z
gradient/cli/tensorboards.py
vishalbelsare/gradient-cli
c0e06252925cad3ad73d47ded1100f6b0cb0989a
[ "0BSD" ]
11
2019-07-16T06:48:55.000Z
2021-12-15T12:41:51.000Z
import click from gradient.cli import common from gradient.cli.cli import cli from gradient.commands import tensorboards as tensorboards_commands
26.677419
91
0.712696
921710fe148b77c5af4c4630e1aea73b68d40f82
5,430
py
Python
src/selena/services/sla.py
deejay1/selena
16189ee57c8197ab4375727ef8a905d4f4561eb7
[ "Apache-2.0" ]
23
2015-01-10T18:17:58.000Z
2021-12-21T03:01:38.000Z
src/selena/services/sla.py
deejay1/selena
16189ee57c8197ab4375727ef8a905d4f4561eb7
[ "Apache-2.0" ]
20
2015-01-10T14:05:42.000Z
2016-08-09T07:48:50.000Z
src/selena/services/sla.py
deejay1/selena
16189ee57c8197ab4375727ef8a905d4f4561eb7
[ "Apache-2.0" ]
3
2015-01-10T18:27:30.000Z
2020-04-07T16:17:43.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from django.db.models.aggregates import Min from services.models import (Service, SlaDaily, SlaCache, ServiceHistory) from ...
37.448276
123
0.688029
921773c4798d3591783c0a5548229dc9969cad46
521
py
Python
flask_resources/deserializers/json.py
fenekku/flask-resources
47a6672a771b7c209199a2613ae6da9d96a70a5b
[ "MIT" ]
null
null
null
flask_resources/deserializers/json.py
fenekku/flask-resources
47a6672a771b7c209199a2613ae6da9d96a70a5b
[ "MIT" ]
null
null
null
flask_resources/deserializers/json.py
fenekku/flask-resources
47a6672a771b7c209199a2613ae6da9d96a70a5b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2020 CERN. # # Flask-Resources is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """JSON Deserializer.""" import json from .deserializers import DeserializerMixin
24.809524
76
0.696737
921793e6129c6314d6f7c5cb0bd9274856e44cb1
2,960
py
Python
examples/fashion_mnist_example.py
saugatkandel/cvnn
f6d7b5c17fd064a7eaa60e7af922914a974eb69a
[ "MIT" ]
38
2020-09-16T14:47:36.000Z
2022-03-30T13:35:05.000Z
examples/fashion_mnist_example.py
saugatkandel/cvnn
f6d7b5c17fd064a7eaa60e7af922914a974eb69a
[ "MIT" ]
25
2020-10-03T19:30:16.000Z
2022-03-29T15:24:44.000Z
examples/fashion_mnist_example.py
saugatkandel/cvnn
f6d7b5c17fd064a7eaa60e7af922914a974eb69a
[ "MIT" ]
9
2021-01-18T10:48:57.000Z
2022-02-11T10:34:52.000Z
# TensorFlow and tf.keras import tensorflow as tf # Helper libraries import numpy as np import matplotlib.pyplot as plt from cvnn import layers print(tf.__version__) if __name__ == "__main__": test_fashion_mnist()
43.529412
119
0.714865
9217f064843ea0309f5a6b856cd5967dad7c5477
47
py
Python
tensorkit/backend/pytorch_/__init__.py
lizeyan/tensorkit
2997a5914ec3c3ec72f91eb5906b5ee878fdc020
[ "MIT" ]
null
null
null
tensorkit/backend/pytorch_/__init__.py
lizeyan/tensorkit
2997a5914ec3c3ec72f91eb5906b5ee878fdc020
[ "MIT" ]
null
null
null
tensorkit/backend/pytorch_/__init__.py
lizeyan/tensorkit
2997a5914ec3c3ec72f91eb5906b5ee878fdc020
[ "MIT" ]
2
2020-10-15T06:41:32.000Z
2021-01-27T12:55:11.000Z
from . import _version_check name = 'PyTorch'
11.75
28
0.744681
9218ab83d1d2ee572df4715f9f7a93fe6c1991f0
1,905
py
Python
ms2ldaviz/migrate_decomp_db.py
sdrogers/ms2ldaviz
ba311bc80891da595d2d6cef4abda95ab583c201
[ "MIT" ]
6
2017-10-27T02:37:55.000Z
2020-11-07T15:43:57.000Z
ms2ldaviz/migrate_decomp_db.py
sdrogers/ms2ldaviz
ba311bc80891da595d2d6cef4abda95ab583c201
[ "MIT" ]
134
2016-07-20T08:35:34.000Z
2020-07-22T13:51:49.000Z
ms2ldaviz/migrate_decomp_db.py
sdrogers/ms2ldaviz
ba311bc80891da595d2d6cef4abda95ab583c201
[ "MIT" ]
9
2016-07-19T15:39:27.000Z
2020-02-11T16:13:14.000Z
import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ms2ldaviz.settings_simon") import django django.setup() from basicviz.models import Experiment,Document from decomposition.models import FeatureSet,MotifSet,GlobalMotif,GlobalMotifsToSets,Decomposition,DocumentGlobalMass2Motif if __name__ == '__main__': # f...
30.238095
122
0.746457
9219011cb4da371cd24e2b86c75ee95c35d59f2f
1,133
py
Python
strings.py
frizensami/sg-blood-stocks-bot
7783399330dcdf04870be85d004323a5c516a29a
[ "MIT" ]
1
2022-01-25T02:54:31.000Z
2022-01-25T02:54:31.000Z
strings.py
frizensami/sg-blood-stocks-bot
7783399330dcdf04870be85d004323a5c516a29a
[ "MIT" ]
4
2021-06-07T12:19:32.000Z
2021-06-09T05:02:36.000Z
strings.py
frizensami/sgbloodstocksbot
7783399330dcdf04870be85d004323a5c516a29a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 HELLO_MSG = """Welcome to the SG Blood Stocks Bot! We update you on the blood stock levels of the Singapore Red Cross. You can subscribe (/subscribe) to updates for specific blood types so you know when to donate. You can check for the latest change (/changes) in blood stock levels over the p...
29.815789
118
0.739629
921ae232934b3615fdba27bd605f3a627db67ede
1,064
py
Python
challenges/2021/06-lanternfish/py/__init__.py
codemicro/adventOfCode
53574532ece1d19e5f5ba2f39e8e183c4c6225a1
[ "MIT" ]
9
2020-12-06T23:18:30.000Z
2021-12-19T22:31:26.000Z
challenges/2021/06-lanternfish/py/__init__.py
codemicro/adventOfCode
53574532ece1d19e5f5ba2f39e8e183c4c6225a1
[ "MIT" ]
null
null
null
challenges/2021/06-lanternfish/py/__init__.py
codemicro/adventOfCode
53574532ece1d19e5f5ba2f39e8e183c4c6225a1
[ "MIT" ]
3
2020-12-08T09:45:44.000Z
2020-12-15T19:20:20.000Z
from typing import List, Dict from aocpy import BaseChallenge
23.644444
63
0.608083
921b26719ef6dd1872a88554745a7cfee94c9fe4
633
py
Python
qmspy/__init__.py
Cavenfish/qmspy
4ac6191b22d606ce007b5fb7b75a3c0734b41a70
[ "MIT" ]
null
null
null
qmspy/__init__.py
Cavenfish/qmspy
4ac6191b22d606ce007b5fb7b75a3c0734b41a70
[ "MIT" ]
null
null
null
qmspy/__init__.py
Cavenfish/qmspy
4ac6191b22d606ce007b5fb7b75a3c0734b41a70
[ "MIT" ]
null
null
null
""" This is the qmspy module, a python module designed to automate graphing data collected from a QMS. Contains the following functions: init_data add_style fit_gaussians appearance_energy Contains the following submodules: graph_data A...
24.346154
76
0.657188
ecf5d69ffbb4ac849872de070db13227e5f7d278
1,569
py
Python
django_dhcp/urls.py
weijia/django-dhcp
625c031f5b969d48e7ad15bca75c460ddad20a00
[ "BSD-3-Clause" ]
1
2016-12-24T21:00:03.000Z
2016-12-24T21:00:03.000Z
django_dhcp/urls.py
weijia/django-dhcp
625c031f5b969d48e7ad15bca75c460ddad20a00
[ "BSD-3-Clause" ]
null
null
null
django_dhcp/urls.py
weijia/django-dhcp
625c031f5b969d48e7ad15bca75c460ddad20a00
[ "BSD-3-Clause" ]
null
null
null
from django.conf.urls import patterns, include, url from django.contrib.auth.decorators import login_required from django.core.urlresolvers import reverse, reverse_lazy from django.views.generic import ListView, DetailView, UpdateView, CreateView from django_dhcp.models import NetworkNode urlpatterns = patterns('', ...
43.583333
87
0.511791
ecf61980cc4a49f01a13cbe72aad03439a423e46
2,073
py
Python
backend/api/decapod_api/views/v1/__init__.py
angry-tony/ceph-lcm-decapod
535944d3ee384c3a7c4af82f74041b0a7792433f
[ "Apache-2.0" ]
41
2016-11-03T16:40:17.000Z
2019-05-23T08:39:17.000Z
backend/api/decapod_api/views/v1/__init__.py
Mirantis/ceph-lcm
fad9bad0b94f2ef608362953583b10a54a841d24
[ "Apache-2.0" ]
30
2016-10-14T10:54:46.000Z
2017-10-20T15:58:01.000Z
backend/api/decapod_api/views/v1/__init__.py
angry-tony/ceph-lcm-decapod
535944d3ee384c3a7c4af82f74041b0a7792433f
[ "Apache-2.0" ]
28
2016-09-17T01:17:36.000Z
2019-07-05T03:32:54.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2016 Mirantis 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 ...
35.741379
71
0.822962
ecf6c36593681a36f3dd9d09dc12399f3a5c1c70
8,604
py
Python
alipay/aop/api/domain/SearchBrandBoxInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/SearchBrandBoxInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/SearchBrandBoxInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.BoxExclusiveBase import BoxExclusiveBase from alipay.aop.api.domain.BoxOrderStatusInfo import BoxOrderStatusInfo from alipay.aop.api.domain.BoxExclusiveKeyword import BoxExclusiveKe...
35.553719
91
0.607508
ecf7e96aed7bb38c108c65e6a088553ea5f5fcea
4,921
py
Python
dependencyinjection/internal/descriptors.py
Cologler/dependencyinjection-python
dc05c61571f10652d82929ebec4b255f109b840b
[ "MIT" ]
null
null
null
dependencyinjection/internal/descriptors.py
Cologler/dependencyinjection-python
dc05c61571f10652d82929ebec4b255f109b840b
[ "MIT" ]
null
null
null
dependencyinjection/internal/descriptors.py
Cologler/dependencyinjection-python
dc05c61571f10652d82929ebec4b255f109b840b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2017~2999 - cologler <skyoflw@gmail.com> # ---------- # # ---------- from abc import abstractmethod import inspect from .common import LifeTime, IServiceProvider, IDescriptor, ICallSiteMaker from .param_type_resolver import ParameterTypeResolver from .err...
36.183824
106
0.655151
ecf8a661406818a230a4076d57178a508b0bd6f5
2,666
py
Python
ilurl/core/ql/define.py
guilhermevarela/ilu
e4db9744c28f9e04ae82c884f131ee8cd9601cc8
[ "MIT" ]
2
2019-10-18T17:04:50.000Z
2019-10-18T17:05:04.000Z
ilurl/core/ql/define.py
guilhermevarela/ilurl
e4db9744c28f9e04ae82c884f131ee8cd9601cc8
[ "MIT" ]
17
2019-11-20T09:33:50.000Z
2020-01-30T14:57:40.000Z
ilurl/core/ql/define.py
gsavarela/ilurl
e4db9744c28f9e04ae82c884f131ee8cd9601cc8
[ "MIT" ]
null
null
null
"""The module helps define the q learning dictionary""" __author__ = "Guilherme Varela" __date__ = "2019-07-25" from itertools import product as prod def dpq_tls(state_rank, state_dim, action_rank, action_dim, initial_value=0): """Prepares a dynamic programming Q-learning table for a traffic ligh...
24.685185
59
0.620405
ecf92f0deadf2f7bda487207ea9032532498f896
296
py
Python
Company_Based_Questions/Geometry/Count_number_of_rectangles_in_a_circle.py
Satyam-Bhalla/Competitive-Coding
5814f5f60572f1e76495efe751b94bf4d2845198
[ "MIT" ]
1
2021-12-09T10:36:48.000Z
2021-12-09T10:36:48.000Z
Company_Based_Questions/Geometry/Count_number_of_rectangles_in_a_circle.py
Satyam-Bhalla/Competitive-Coding
5814f5f60572f1e76495efe751b94bf4d2845198
[ "MIT" ]
null
null
null
Company_Based_Questions/Geometry/Count_number_of_rectangles_in_a_circle.py
Satyam-Bhalla/Competitive-Coding
5814f5f60572f1e76495efe751b94bf4d2845198
[ "MIT" ]
null
null
null
t = int(input()) for _ in range(t): r = int(input()) print(countRectangles(r))
22.769231
32
0.510135
ecf99972906a2664b8eb3161b627de2250acc67f
546
py
Python
siteapp/models.py
cbidici/cbsite
594e327ad0c0bfa5015461eb243176c3aec7b68d
[ "MIT" ]
null
null
null
siteapp/models.py
cbidici/cbsite
594e327ad0c0bfa5015461eb243176c3aec7b68d
[ "MIT" ]
1
2020-05-10T14:45:22.000Z
2020-05-10T15:06:50.000Z
siteapp/models.py
cbidici/cbsite
594e327ad0c0bfa5015461eb243176c3aec7b68d
[ "MIT" ]
null
null
null
from django.db import models from slugify import slugify
23.73913
59
0.695971
ecfb22412fbdd1ca40827fb6bcc73e85e6d1f7d3
392
py
Python
file_rename_voc.py
GitEasonXu/Python_wheel
52a495b4b90132d6980aeded099ff575f2ed58e4
[ "MIT" ]
null
null
null
file_rename_voc.py
GitEasonXu/Python_wheel
52a495b4b90132d6980aeded099ff575f2ed58e4
[ "MIT" ]
null
null
null
file_rename_voc.py
GitEasonXu/Python_wheel
52a495b4b90132d6980aeded099ff575f2ed58e4
[ "MIT" ]
null
null
null
##pathdname import os path = './Image' for (root,dirs,files) in os.walk(path) : for item in files : Olddir = os.path.join(root, item) filename=os.path.split(Olddir)[0] # filetype=os.path.split(Olddir)[1][-4:] # Newdir=os.path.join(path,str(count).zfill(6)+filetype) ...
32.666667
62
0.609694
ecfe6cf1d1e3eb686af5893cb455fa42f77691d4
6,833
py
Python
src/protocol_analysis/protocol_analysis.py
shelleyshuzhang/mon-iot-traffic-analysis
fb4cead55fed8163af5975ccf2ccea3c63b8c97a
[ "Apache-2.0" ]
1
2020-10-18T07:56:47.000Z
2020-10-18T07:56:47.000Z
src/protocol_analysis/protocol_analysis.py
shelleyshuzhang/mon-iot-traffic-analysis
fb4cead55fed8163af5975ccf2ccea3c63b8c97a
[ "Apache-2.0" ]
null
null
null
src/protocol_analysis/protocol_analysis.py
shelleyshuzhang/mon-iot-traffic-analysis
fb4cead55fed8163af5975ccf2ccea3c63b8c97a
[ "Apache-2.0" ]
null
null
null
import csv import os from multiprocessing import Manager from multiprocessing import Process ####### must import the packet in scapy in order to see the results ####### from scapy import * from scapy.layers import * from scapy.layers.dns import * from scapy.layers.inet import * from scapy.utils import PcapReader from...
35.221649
103
0.536075
ecff03b69669e40823b94d33d2618c575448cad8
3,988
py
Python
BayOptPy/tpot/notebooks/evaluate_results.py
Mind-the-Pineapple/tpot-age
2969bfa6dc5c652d5b4f00f59e9b0b23869f6bef
[ "MIT" ]
3
2020-04-09T16:53:54.000Z
2020-04-21T16:49:52.000Z
BayOptPy/tpot/notebooks/evaluate_results.py
Mind-the-Pineapple/tpot-age
2969bfa6dc5c652d5b4f00f59e9b0b23869f6bef
[ "MIT" ]
null
null
null
BayOptPy/tpot/notebooks/evaluate_results.py
Mind-the-Pineapple/tpot-age
2969bfa6dc5c652d5b4f00f59e9b0b23869f6bef
[ "MIT" ]
null
null
null
''' This scripts define functions that will be used by the different notebooks to analyse the results ''' import pandas as pd from plotly import tools import plotly.graph_objs as go def predecessor_generation(results, curr_generation, verbose): ''' Print the predecessor's generation for all the models in a spe...
45.318182
121
0.614092
a6018f719d55a7b7e6894dc15be94c1e0f710808
817
py
Python
h/migrations/versions/77c2af032aca_add_document_uri_and_meta_docid_ix.py
y3g0r/h
a057144956fe25e669aeba5d0f0eb38f9dc09566
[ "BSD-2-Clause" ]
2
2019-08-04T07:22:11.000Z
2020-07-17T05:01:41.000Z
h/migrations/versions/77c2af032aca_add_document_uri_and_meta_docid_ix.py
fuelpress/i.fuel.press
af7b25895d813af0fef656dcf483afe852a99d76
[ "BSD-2-Clause" ]
4
2020-03-24T17:38:24.000Z
2022-03-02T05:45:01.000Z
h/migrations/versions/77c2af032aca_add_document_uri_and_meta_docid_ix.py
fuelpress/i.fuel.press
af7b25895d813af0fef656dcf483afe852a99d76
[ "BSD-2-Clause" ]
null
null
null
"""Add Document URI and Meta document_id index Revision ID: 77c2af032aca Revises: f3b8e76ae9f5 Create Date: 2016-05-13 15:06:55.496502 """ # revision identifiers, used by Alembic. revision = "77c2af032aca" down_revision = "f3b8e76ae9f5" from alembic import op import sqlalchemy as sa
22.694444
73
0.691554
a6022344a3d4840a64b5a3612dfb2d5eecb6808c
19,526
py
Python
ooni/runner.py
meejah/ooni-probe
f46dc5879da409763718cfa5aa2635ddf5332a54
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
ooni/runner.py
meejah/ooni-probe
f46dc5879da409763718cfa5aa2635ddf5332a54
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
ooni/runner.py
meejah/ooni-probe
f46dc5879da409763718cfa5aa2635ddf5332a54
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
import os import sys import time import inspect import traceback import itertools import random import yaml from twisted.python import reflect, usage from twisted.internet import defer from twisted.trial.runner import filenameToModule from twisted.internet import reactor, threads from txtorcon import TorProtocolFact...
32.816807
93
0.678019
a60228f4b0493e204cf39ee8d4a76aafe56f57f7
4,410
py
Python
performance.py
PudPawat/protest-detection-violence-estimation
6469c3ae47a7d99308458174fe16bd2c5c7821aa
[ "MIT" ]
2
2020-12-10T01:22:13.000Z
2021-03-11T08:05:16.000Z
performance.py
PudPawat/protest-detection-violence-estimation
6469c3ae47a7d99308458174fe16bd2c5c7821aa
[ "MIT" ]
null
null
null
performance.py
PudPawat/protest-detection-violence-estimation
6469c3ae47a7d99308458174fe16bd2c5c7821aa
[ "MIT" ]
null
null
null
import os import subprocess import numpy as np import pandas as pd import matplotlib.pyplot as plt import argparse import seaborn as sns # I love this package! sns.set_style('white') import torch from sklearn.metrics import accuracy_score, roc_auc_score, roc_curve import scipy.stats as stats def plot_roc(attr, target...
36.446281
80
0.594558
a60260497b4fa5807ca2464a85c90d77b9b013da
6,071
py
Python
tangent/anf.py
aayushi94/tangent
4a8c5f1f0c69adc574a2643a6bc02521c5bdaa2a
[ "Apache-2.0" ]
null
null
null
tangent/anf.py
aayushi94/tangent
4a8c5f1f0c69adc574a2643a6bc02521c5bdaa2a
[ "Apache-2.0" ]
null
null
null
tangent/anf.py
aayushi94/tangent
4a8c5f1f0c69adc574a2643a6bc02521c5bdaa2a
[ "Apache-2.0" ]
1
2019-12-06T11:51:41.000Z
2019-12-06T11:51:41.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
32.994565
79
0.654423
a6027a3ebc5d97cf960018115a8dd70040b07344
121
py
Python
virtual/lib/python3.6/site-packages/url_or_relative_url_field/apps.py
sharonmaswai/awards
9556d6c559fdd12a860b6e3509b2482b260a63c0
[ "Unlicense" ]
6
2018-03-14T16:01:56.000Z
2021-12-05T06:11:07.000Z
virtual/lib/python3.6/site-packages/url_or_relative_url_field/apps.py
sharonmaswai/awards
9556d6c559fdd12a860b6e3509b2482b260a63c0
[ "Unlicense" ]
7
2020-02-12T03:20:53.000Z
2022-03-12T00:06:11.000Z
virtual/lib/python3.6/site-packages/url_or_relative_url_field/apps.py
sharonmaswai/awards
9556d6c559fdd12a860b6e3509b2482b260a63c0
[ "Unlicense" ]
4
2018-03-23T12:08:40.000Z
2021-12-13T00:58:08.000Z
from django.apps import AppConfig
20.166667
45
0.818182
a6027e7c6c9accbef3a1e0fb42f95f71fdcfc5a3
4,877
py
Python
tests/test_graph_iden.py
Erotemic/graphid
5d04c2eec609f135464a921ba03d9578fa6e22fd
[ "Apache-2.0" ]
4
2019-03-04T02:49:26.000Z
2021-10-06T00:51:13.000Z
tests/test_graph_iden.py
Erotemic/graphid
5d04c2eec609f135464a921ba03d9578fa6e22fd
[ "Apache-2.0" ]
1
2019-02-15T23:42:26.000Z
2019-02-15T23:42:26.000Z
tests/test_graph_iden.py
Erotemic/graphid
5d04c2eec609f135464a921ba03d9578fa6e22fd
[ "Apache-2.0" ]
null
null
null
import ubelt as ub from graphid import demo from graphid.core.state import (POSTV, NEGTV, INCMP, UNREV) def test_pos_neg(): """ python ~/code/graphid/tests/test_graph_iden.py test_pos_neg """ infr = demo.demodata_infr(num_pccs=0) # Make 3 inconsistent CCs infr.add_feedback(( 1, ...
34.104895
64
0.599754
a602c20e6c62e465410e523f5014d66e68793385
1,565
py
Python
tests/tagger_test.py
slouvan/anago
99a8be0ba2ea42c9c686ff9697ea9e6ef60ca028
[ "MIT" ]
null
null
null
tests/tagger_test.py
slouvan/anago
99a8be0ba2ea42c9c686ff9697ea9e6ef60ca028
[ "MIT" ]
9
2020-01-28T22:26:05.000Z
2022-02-09T23:47:51.000Z
tests/tagger_test.py
tungnt244/ie_tourism_model
f9d6a234af4ddeb632b63e6dcd05eea23a48b2a7
[ "MIT" ]
1
2021-06-23T13:35:51.000Z
2021-06-23T13:35:51.000Z
import os import unittest from pprint import pprint import anago from anago.config import ModelConfig from anago.models import SeqLabeling from anago.preprocess import WordPreprocessor SAVE_ROOT = os.path.join(os.path.dirname(__file__), 'models')
30.686275
78
0.656869
a6033320b86e6ca0f7d5044e4b6dd458c4e4c840
1,858
py
Python
unittest/base/JobControllerTest.py
hamatoma/snakeboxx
de4609e0d980c7ce775060e3813e71752e8670aa
[ "CC0-1.0" ]
null
null
null
unittest/base/JobControllerTest.py
hamatoma/snakeboxx
de4609e0d980c7ce775060e3813e71752e8670aa
[ "CC0-1.0" ]
null
null
null
unittest/base/JobControllerTest.py
hamatoma/snakeboxx
de4609e0d980c7ce775060e3813e71752e8670aa
[ "CC0-1.0" ]
null
null
null
''' Created on 12.04.2018 @author: hm ''' import os import time from unittest.UnitTestCase import UnitTestCase import base.MemoryLogger import base.JobController import base.StringUtils DEBUG = False if __name__ == '__main__': #import sys;sys.argv = ['', 'Test.testName'] tester = JobControllerTest() tes...
32.034483
123
0.682454
a6037f9a95ecfd02fa62dc87371fde25d3dc01c6
3,308
py
Python
scripts/sdk_xml/xml_stub.py
vzaccaria/most
2b3b8768a960245e433a5a733cba6f08451e3fec
[ "Unlicense" ]
null
null
null
scripts/sdk_xml/xml_stub.py
vzaccaria/most
2b3b8768a960245e433a5a733cba6f08451e3fec
[ "Unlicense" ]
null
null
null
scripts/sdk_xml/xml_stub.py
vzaccaria/most
2b3b8768a960245e433a5a733cba6f08451e3fec
[ "Unlicense" ]
null
null
null
# Stub script for converting XML input values into command line parameters and writing out # and XML file. # # This script expects two parameters, as a specific: # --xml_system_configuration=input_filename.xml # --xml_system_metrics=output_filename.xml # # @author Sivieri Alessandro, Vittorio Zaccaria (2010/20...
26.253968
150
0.680169
a6038b3f8e171ab48ac06bd1a445cb35301ad809
1,059
py
Python
api/http/auth.py
dominicplouffe/connexionme
85d10905b8e4dd535320cc314a7340e5d28f6e9e
[ "MIT" ]
null
null
null
api/http/auth.py
dominicplouffe/connexionme
85d10905b8e4dd535320cc314a7340e5d28f6e9e
[ "MIT" ]
null
null
null
api/http/auth.py
dominicplouffe/connexionme
85d10905b8e4dd535320cc314a7340e5d28f6e9e
[ "MIT" ]
null
null
null
from flask import Blueprint, request from services import account from functools import wraps from status import finish auth = Blueprint('auth', __name__, url_prefix='/auth')
25.829268
74
0.599622
a60492a029f93b9e4059d6e51e8cafafd4226486
768
py
Python
rptools/rpthermo/Args.py
niraito/rptools
5c631c6cc4cd8cb497ccf573891235b36dfde65f
[ "MIT" ]
null
null
null
rptools/rpthermo/Args.py
niraito/rptools
5c631c6cc4cd8cb497ccf573891235b36dfde65f
[ "MIT" ]
null
null
null
rptools/rpthermo/Args.py
niraito/rptools
5c631c6cc4cd8cb497ccf573891235b36dfde65f
[ "MIT" ]
null
null
null
from argparse import ArgumentParser DEFAULT_pH = 7.5 DEFAULT_pMg = 3.0 DEFAULT_ionic_strength = 0.25
24
85
0.641927
a605d79f8499b6ae4b9712a96390545d3da40661
7,829
py
Python
online_recommend/first-release-version/online_recommend/movie_recall/cal_movie_sim.py
hfhfn/db_recommend
3a9f03157bb81e295f8cff30fbc7ad2a8cfdf963
[ "MIT" ]
null
null
null
online_recommend/first-release-version/online_recommend/movie_recall/cal_movie_sim.py
hfhfn/db_recommend
3a9f03157bb81e295f8cff30fbc7ad2a8cfdf963
[ "MIT" ]
null
null
null
online_recommend/first-release-version/online_recommend/movie_recall/cal_movie_sim.py
hfhfn/db_recommend
3a9f03157bb81e295f8cff30fbc7ad2a8cfdf963
[ "MIT" ]
null
null
null
from pyspark.ml.clustering import BisectingKMeans, BisectingKMeansModel from utils import channelInfo from utils import MovieDataApp if __name__ == '__main__': pass # def fit_lsh(): # """ # lsh # :return: # """ # from pyspark.ml.feature import BucketedRandomProjectionLSH # movieV...
40.989529
131
0.62013
a605fb5e525f35f836c02ffad077a242234f3c4a
32,138
py
Python
src/gui/scroll.py
Epihaius/panda3dstudio
f5c62ca49617cae1aa5aa5b695200027da99e242
[ "BSD-3-Clause" ]
63
2016-01-02T16:28:47.000Z
2022-01-19T11:29:51.000Z
src/gui/scroll.py
Epihaius/panda3dstudio
f5c62ca49617cae1aa5aa5b695200027da99e242
[ "BSD-3-Clause" ]
12
2016-06-12T14:14:15.000Z
2020-12-18T16:11:45.000Z
src/gui/scroll.py
Epihaius/panda3dstudio
f5c62ca49617cae1aa5aa5b695200027da99e242
[ "BSD-3-Clause" ]
17
2016-05-23T00:02:27.000Z
2021-04-25T17:48:27.000Z
from .base import * MAX_TEX_SIZE = 4000 # TODO: make user-configurable def update_scroll_offset(self, scroll_offset): width, height = self.get_size() w_virt, h_virt = w_subimg, h_subimg = self.virtual_size scroll_dir = self.sizer.prim_dir max_size_exceeded = False # ...
33.166151
105
0.609434
a6089b93cf4c6a825b8066cca145aee395091e54
4,561
py
Python
extraction_tool/extract_token.py
ohadlevy/homebridge-palgate-opener
1dc2c4e00a7dc969221db6f571a75d2d4088a7a0
[ "MIT" ]
13
2020-10-24T22:17:31.000Z
2022-03-04T22:31:23.000Z
extraction_tool/extract_token.py
ohadlevy/homebridge-palgate-opener
1dc2c4e00a7dc969221db6f571a75d2d4088a7a0
[ "MIT" ]
7
2021-01-24T11:23:24.000Z
2022-02-27T13:19:28.000Z
extraction_tool/extract_token.py
ohadlevy/homebridge-palgate-opener
1dc2c4e00a7dc969221db6f571a75d2d4088a7a0
[ "MIT" ]
4
2020-10-24T22:17:42.000Z
2022-01-20T08:01:31.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ######################################################## # PalGate Token Extraction Tool # ######################################################## # # # Like my work? please consider buying me a ...
42.626168
101
0.534093
a608ef057ab4973763dbb8b9d94aa73dd295ec64
3,335
py
Python
main.py
Mnkai/GoogleTakeoutPhotosMigrationPrepare
d43c15dce87c937b2696dde16f62461ab504fdef
[ "WTFPL" ]
1
2020-04-19T06:43:30.000Z
2020-04-19T06:43:30.000Z
main.py
Mnkai/GoogleTakeoutPhotosMigrationPrepare
d43c15dce87c937b2696dde16f62461ab504fdef
[ "WTFPL" ]
null
null
null
main.py
Mnkai/GoogleTakeoutPhotosMigrationPrepare
d43c15dce87c937b2696dde16f62461ab504fdef
[ "WTFPL" ]
null
null
null
import os import ArrayUtils import GoogleMetadataUtils from objects.ExportedObject import ExportedObject from objects.Image import Image counter = 0 if __name__ == "__main__": main()
37.055556
113
0.689055
a60930ad0dd78d95d72937ed81ded6b37a3f470b
501
py
Python
foodcartapp/serializers.py
savilard/delivery-drf-api
e9d7c17120f37b591bb1e305a8516115f5f92a75
[ "MIT" ]
null
null
null
foodcartapp/serializers.py
savilard/delivery-drf-api
e9d7c17120f37b591bb1e305a8516115f5f92a75
[ "MIT" ]
1
2022-02-10T14:02:58.000Z
2022-02-10T14:02:58.000Z
foodcartapp/serializers.py
savilard/delivery-drf-api
e9d7c17120f37b591bb1e305a8516115f5f92a75
[ "MIT" ]
null
null
null
from rest_framework.serializers import ModelSerializer from foodcartapp.models import Order, OrderProduct
27.833333
86
0.714571
a60a5e2c81cee18f19368d6d10d396d0396c103a
71
py
Python
1002_AreaCircle.py
DiegoC386/EJERCICIOS-URI
b2e12b6420ea16a9060726b988ea1b35cbf312c2
[ "MIT" ]
null
null
null
1002_AreaCircle.py
DiegoC386/EJERCICIOS-URI
b2e12b6420ea16a9060726b988ea1b35cbf312c2
[ "MIT" ]
null
null
null
1002_AreaCircle.py
DiegoC386/EJERCICIOS-URI
b2e12b6420ea16a9060726b988ea1b35cbf312c2
[ "MIT" ]
null
null
null
R=float(input()) PI=3.14159 A=(PI)*(R**2) print("A = {:.4f}".format(A))
17.75
29
0.549296
a60a74a8bdf1655be820f9cfcac1059f5d4956f4
882
py
Python
funcionario/views.py
Moisestuli/karrata
962ce0c573214bfc83720727c9cacae823a8c372
[ "MIT" ]
null
null
null
funcionario/views.py
Moisestuli/karrata
962ce0c573214bfc83720727c9cacae823a8c372
[ "MIT" ]
null
null
null
funcionario/views.py
Moisestuli/karrata
962ce0c573214bfc83720727c9cacae823a8c372
[ "MIT" ]
null
null
null
from django.shortcuts import render, get_object_or_404 from django.http import HttpResponse, HttpResponseRedirect from django.contrib.auth.models import User from funcionario.forms import FuncionarioForm from configuracao.models import Configuracao
26.727273
60
0.717687
a60b9d285aa7339e1763df0a9faec446ada591b3
2,658
py
Python
src/models/gan_bert.py
gchhablani/financial-sentiment-analysis
b18e9072f8edb9f09d0fef697892f2462d6d44e9
[ "MIT" ]
2
2021-10-03T14:24:52.000Z
2021-11-17T14:55:53.000Z
src/models/gan_bert.py
gchhablani/financial-sentiment-analysis
b18e9072f8edb9f09d0fef697892f2462d6d44e9
[ "MIT" ]
null
null
null
src/models/gan_bert.py
gchhablani/financial-sentiment-analysis
b18e9072f8edb9f09d0fef697892f2462d6d44e9
[ "MIT" ]
1
2021-10-03T14:25:36.000Z
2021-10-03T14:25:36.000Z
# https://raw.githubusercontent.com/crux82/ganbert-pytorch/main/GANBERT_pytorch.ipynb # [WIP], not finished import torch from torch.nn import Dropout, LeakyReLU, Linear, Module, Sequential from transformers import AutoModel # ------------------------------ # The Discriminator # https://www.aclweb.org/anthology/2...
34.519481
85
0.598194
a60d2023dee851677b4f026e9f20232d3cae3173
2,571
py
Python
ec2stack/secretkey_manager.py
sureshanaparti/cloudstack-ec2stack
8e07435d3d04357995f2a5d337adef62ecbfdd8d
[ "Apache-2.0" ]
13
2015-05-06T13:38:13.000Z
2021-11-09T21:39:01.000Z
ec2stack/secretkey_manager.py
sureshanaparti/cloudstack-ec2stack
8e07435d3d04357995f2a5d337adef62ecbfdd8d
[ "Apache-2.0" ]
3
2015-08-21T17:31:20.000Z
2021-07-07T08:39:11.000Z
ec2stack/secretkey_manager.py
sureshanaparti/cloudstack-ec2stack
8e07435d3d04357995f2a5d337adef62ecbfdd8d
[ "Apache-2.0" ]
17
2015-07-24T06:00:59.000Z
2021-11-09T21:38:52.000Z
#!/usr/bin/env python # encoding: utf-8 # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache Licens...
26.505155
80
0.698172
a60d82cbe53076fcdd04723f529bca35a26a771d
2,270
py
Python
mapas/mapas.py
DeadZombie14/chillMagicCarPygame
756bb6d27939bed3c2834222d03096e90f05a788
[ "MIT" ]
null
null
null
mapas/mapas.py
DeadZombie14/chillMagicCarPygame
756bb6d27939bed3c2834222d03096e90f05a788
[ "MIT" ]
null
null
null
mapas/mapas.py
DeadZombie14/chillMagicCarPygame
756bb6d27939bed3c2834222d03096e90f05a788
[ "MIT" ]
null
null
null
levels = [ [ # W = Muro, E = Meta, P = Jugador 1, J = Jugador 2, H = Jugador 3, I = Jugador 4, "WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW", "W W", "W J W", "W P W", "W W", "W W", "W ...
32.898551
84
0.234802
a60f47844b4e66c2b41b6d88b7e848c7e6e83731
1,761
py
Python
reddit_client.py
spotify-companion/CLI
29934cc715922263652235d0a9a4f0d8f57ecec5
[ "MIT" ]
null
null
null
reddit_client.py
spotify-companion/CLI
29934cc715922263652235d0a9a4f0d8f57ecec5
[ "MIT" ]
null
null
null
reddit_client.py
spotify-companion/CLI
29934cc715922263652235d0a9a4f0d8f57ecec5
[ "MIT" ]
null
null
null
import praw import pandas as pd import reddit_constants
33.226415
193
0.570131
a60fb9d495770e6c4eafb910265165abbcd032b4
272
py
Python
AutotestWebD/apps/config/views/service.py
yangjourney/sosotest
2e88099a829749910ca325253c9b1a2e368d21a0
[ "MIT" ]
422
2019-08-18T05:04:20.000Z
2022-03-31T06:49:19.000Z
AutotestWebD/apps/config/views/service.py
LinSongJian1985/sosotest
091863dee531b5726650bb63efd6f169267cbeb4
[ "MIT" ]
10
2019-10-24T09:55:38.000Z
2021-09-29T17:28:43.000Z
AutotestWebD/apps/config/views/service.py
LinSongJian1985/sosotest
091863dee531b5726650bb63efd6f169267cbeb4
[ "MIT" ]
202
2019-08-18T05:04:27.000Z
2022-03-30T05:57:18.000Z
from apps.config.services.serviceConfService import ServiceConfService from django.shortcuts import HttpResponse import json
30.222222
70
0.841912
a6105ef939a3d47b3dd6af778e4ee27a4e38dd46
2,436
py
Python
src/keywords.py
sandialabs/nnsd-common
c106799d06276b5a980b790b5249e66e459ce682
[ "MIT" ]
3
2019-07-16T21:10:18.000Z
2021-09-01T03:01:23.000Z
src/keywords.py
sandialabs/nnsd-common
c106799d06276b5a980b790b5249e66e459ce682
[ "MIT" ]
9
2019-04-15T21:46:21.000Z
2021-02-09T16:17:24.000Z
src/keywords.py
sandialabs/nnsd-common
c106799d06276b5a980b790b5249e66e459ce682
[ "MIT" ]
1
2020-03-03T14:41:25.000Z
2020-03-03T14:41:25.000Z
#!/usr/bin/python3 # Gets all files below where this script is run, and checks to see if any contain # the specified keywords. A report is generated at the end. # # Files with certain extensions are excluded, and directories with certain names are excluded. # # The actual keywords are kept in a separate file so...
36.358209
193
0.619458
a610ecc05f6f6e302f862afbc071148996b7ed46
19,020
py
Python
ii_irods/ii_command.py
UtrechtUniversity/ii
7d3899b4d6bbbf5a14be1d85296b3ea99ffe135b
[ "MIT" ]
null
null
null
ii_irods/ii_command.py
UtrechtUniversity/ii
7d3899b4d6bbbf5a14be1d85296b3ea99ffe135b
[ "MIT" ]
null
null
null
ii_irods/ii_command.py
UtrechtUniversity/ii
7d3899b4d6bbbf5a14be1d85296b3ea99ffe135b
[ "MIT" ]
null
null
null
import argparse from fnmatch import fnmatch import os.path import re import sys from ii_irods.coll_utils import resolve_base_path, convert_to_absolute_path, get_dataobjects_in_collection from ii_irods.coll_utils import get_direct_subcollections, get_subcollections, collection_exists from ii_irods.do_utils import get_d...
39.055441
114
0.601472
a6117f3294c81246ee664c4b1aa72e59144f4cc8
6,998
py
Python
tests/pyarxaas/models/test_Dataset.py
vinayranjan/pyarxaas
f304d360adf1a647d9daff0afda5290ca0fd7ec8
[ "MIT" ]
4
2020-07-14T16:36:09.000Z
2020-11-24T14:28:02.000Z
tests/pyarxaas/models/test_Dataset.py
vinayranjan/pyarxaas
f304d360adf1a647d9daff0afda5290ca0fd7ec8
[ "MIT" ]
20
2020-06-19T04:37:33.000Z
2021-07-26T04:27:46.000Z
tests/pyarxaas/models/test_Dataset.py
vinayranjan/pyarxaas
f304d360adf1a647d9daff0afda5290ca0fd7ec8
[ "MIT" ]
2
2020-11-11T11:52:06.000Z
2020-12-03T10:22:47.000Z
import unittest import pandas from pyarxaas.models.attribute_type import AttributeType from pyarxaas.models.dataset import Dataset from tests.pyarxaas import data_generator
43.7375
110
0.69577
a612ee91d33761ed97242b786506ebee4d8f2061
6,955
py
Python
perception/utils/visualization.py
jostl/masters-thesis
211e1f12a07428d37507e2bddc808f6da1149efb
[ "MIT" ]
3
2021-06-19T10:49:26.000Z
2022-03-26T11:31:28.000Z
perception/utils/visualization.py
jostl/masters-thesis
211e1f12a07428d37507e2bddc808f6da1149efb
[ "MIT" ]
1
2021-10-12T15:40:55.000Z
2021-10-12T15:40:55.000Z
perception/utils/visualization.py
jostl/masters-thesis
211e1f12a07428d37507e2bddc808f6da1149efb
[ "MIT" ]
null
null
null
import random import matplotlib.pyplot as plt import numpy as np import torch from perception.utils.segmentation_labels import CARLA_CLASSES, DEFAULT_CLASSES def get_rgb_segmentation(semantic_image: np.ndarray, class_colors): """ Creates a RGB image from a semantic image. Semantic image must have shape: (H...
41.646707
137
0.68555