hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
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
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
22f213a39b5d55bc5853403705e491db05e3eab0
3,907
py
Python
majestica/whitelisted.py
Islammoustafa95/majestica
ec855dc1526ffa80f09a95a5b761663541158d77
[ "MIT" ]
null
null
null
majestica/whitelisted.py
Islammoustafa95/majestica
ec855dc1526ffa80f09a95a5b761663541158d77
[ "MIT" ]
null
null
null
majestica/whitelisted.py
Islammoustafa95/majestica
ec855dc1526ffa80f09a95a5b761663541158d77
[ "MIT" ]
null
null
null
from __future__ import unicode_literals import frappe from frappe.model.document import Document import frappe.utils from frappe.utils import flt import collections from frappe import _, msgprint import json @frappe.whitelist() def before_invoice(items, user): try: data = json.loads(items) item = [...
31.256
256
0.628103
30633ff5531476b5e6c64b6226f4fe059ce08b13
1,462
py
Python
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GL/EXT/texture_shadow_lod.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GL/EXT/texture_shadow_lod.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GL/EXT/texture_shadow_lod.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
'''OpenGL extension EXT.texture_shadow_lod This module customises the behaviour of the OpenGL.raw.GL.EXT.texture_shadow_lod to provide a more Python-friendly API Overview (from the spec) This extension adds support for various shadow sampler types with texture functions having interactions with the LOD...
41.771429
77
0.800274
2277d1f2ae76ad9c61719fb363ecba5f0c1e61e4
1,424
py
Python
tests/utils4t.py
bwdeng20/thgsp
785b3ff291d72ee51e51e4cdbfd4bab63f8de9ac
[ "BSD-3-Clause" ]
22
2021-01-13T05:15:38.000Z
2022-01-17T01:37:29.000Z
tests/utils4t.py
bwdeng20/thgsp
785b3ff291d72ee51e51e4cdbfd4bab63f8de9ac
[ "BSD-3-Clause" ]
2
2021-03-26T04:36:39.000Z
2022-01-11T16:17:56.000Z
tests/utils4t.py
bwdeng20/thgsp
785b3ff291d72ee51e51e4cdbfd4bab63f8de9ac
[ "BSD-3-Clause" ]
2
2021-01-13T05:15:43.000Z
2022-01-01T12:51:32.000Z
import torch import numpy as np import matplotlib.pyplot as plt from thgsp.datasets.utils import remove_file_or_dir, get_data_dir_of_thgsp, os from thgsp.utils import mse, snr np.set_printoptions(linewidth=10000, precision=4) torch.set_printoptions(linewidth=10000, precision=4) dtypes = [torch.float, torch.double, to...
27.921569
80
0.703652
1a747ada53dcc825708cd2b974ef478c187d9c41
6,054
py
Python
test/IECoreScene/PointVelocityDisplaceOp.py
aitorvfx/cortex
c0c27794fc67ccfce68b064e284747165c49ef1c
[ "BSD-3-Clause" ]
5
2015-09-13T14:49:30.000Z
2017-02-04T21:04:59.000Z
test/IECoreScene/PointVelocityDisplaceOp.py
aitorvfx/cortex
c0c27794fc67ccfce68b064e284747165c49ef1c
[ "BSD-3-Clause" ]
null
null
null
test/IECoreScene/PointVelocityDisplaceOp.py
aitorvfx/cortex
c0c27794fc67ccfce68b064e284747165c49ef1c
[ "BSD-3-Clause" ]
3
2015-02-03T17:13:40.000Z
2022-01-07T15:55:00.000Z
########################################################################## # # Copyright 2010 Dr D Studios Pty Limited (ACN 127 184 954) (Dr. D Studios), # its affiliates and/or its licensors. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the foll...
45.518797
122
0.686819
c24b4ecc1c3aa15973f8f7e3c38f556747b08f6c
29,584
py
Python
tests/test_ctl.py
alago197/patroni-1
1bd35c65a3fc2671e57690896e2cd682af5fff6a
[ "MIT" ]
null
null
null
tests/test_ctl.py
alago197/patroni-1
1bd35c65a3fc2671e57690896e2cd682af5fff6a
[ "MIT" ]
null
null
null
tests/test_ctl.py
alago197/patroni-1
1bd35c65a3fc2671e57690896e2cd682af5fff6a
[ "MIT" ]
null
null
null
import etcd import os import requests import sys import unittest from click.testing import CliRunner from datetime import datetime, timedelta from mock import patch, Mock from patroni.ctl import ctl, store_config, load_config, output_members, request_patroni, get_dcs, parse_dcs, \ get_all_members, get_any_member, ...
51.272097
120
0.633958
0f441ea5c56b00ddfd7682a027a5610229e81abf
3,260
py
Python
captum/metrics/_utils/batching.py
ahtonen/captum
794b55302f16e1e9ed2f10379a6989bc7a5378b4
[ "BSD-3-Clause" ]
1
2021-02-03T00:43:17.000Z
2021-02-03T00:43:17.000Z
captum/metrics/_utils/batching.py
ahtonen/captum
794b55302f16e1e9ed2f10379a6989bc7a5378b4
[ "BSD-3-Clause" ]
4
2020-11-20T21:05:39.000Z
2022-03-18T15:28:01.000Z
captum/metrics/_utils/batching.py
ahtonen/captum
794b55302f16e1e9ed2f10379a6989bc7a5378b4
[ "BSD-3-Clause" ]
1
2021-09-26T01:31:46.000Z
2021-09-26T01:31:46.000Z
#!/usr/bin/env python3 import warnings from typing import Callable, Tuple import torch from torch import Tensor def _divide_and_aggregate_metrics( inputs: Tuple[Tensor, ...], n_perturb_samples: int, metric_func: Callable, agg_func: Callable = torch.add, max_examples_per_batch: int = None, ) -> T...
37.906977
88
0.644479
92503321fad319140dd9af1d8698f2f7b27e1fb6
915
py
Python
qt_binder/testing.py
Qt-Widgets/qt_binding-traits
16c7a9ee439ff35d4d027c797ae1d05453a5fc06
[ "BSD-3-Clause" ]
15
2015-09-02T11:16:50.000Z
2021-06-24T04:00:52.000Z
qt_binder/testing.py
Qt-Widgets/qt_binding-traits
16c7a9ee439ff35d4d027c797ae1d05453a5fc06
[ "BSD-3-Clause" ]
54
2015-09-02T10:45:49.000Z
2020-11-30T13:01:05.000Z
qt_binder/testing.py
Qt-Widgets/qt_binding-traits
16c7a9ee439ff35d4d027c797ae1d05453a5fc06
[ "BSD-3-Clause" ]
3
2015-09-16T17:23:50.000Z
2016-07-23T05:35:55.000Z
from contextlib import contextmanager from pyface.ui.qt4.util.gui_test_assistant import GuiTestAssistant from traits.trait_notifiers import pop_exception_handler, \ push_exception_handler class BaseTestWithGui(GuiTestAssistant): """ Base class for testing Binders. Starts a Qt event loop and reraise exce...
26.911765
79
0.680874
901c5a052aa34419ef102a8a1b7e35faab2beed1
1,346
py
Python
Contributions/calculator.py
sattwik21/Hacktoberfest2021-1
74c8edd54f9c967c0f301f74dec31526dffa8222
[ "MIT" ]
448
2021-10-01T04:24:14.000Z
2022-03-06T14:34:20.000Z
Contributions/calculator.py
sattwik21/Hacktoberfest2021-1
74c8edd54f9c967c0f301f74dec31526dffa8222
[ "MIT" ]
282
2021-10-01T04:29:06.000Z
2022-03-07T12:42:57.000Z
Contributions/calculator.py
sattwik21/Hacktoberfest2021-1
74c8edd54f9c967c0f301f74dec31526dffa8222
[ "MIT" ]
1,807
2021-10-01T04:24:02.000Z
2022-03-28T04:51:25.000Z
# Program make a simple calculator # This function adds two numbers def add(x, y): return x + y # This function subtracts two numbers def subtract(x, y): return x - y # This function multiplies two numbers def multiply(x, y): return x * y # This function divides two numbers def divide(x, y): return ...
24.472727
73
0.566865
f8decd0fba05f6c1d391df302e0e7377090a1165
4,519
py
Python
qa/rpc-tests/mempool_reorg.py
jwflame/nyancoin-client-1
6bc7686edf8bc4b058d504ce0ab40b7cd2a0597b
[ "MIT" ]
null
null
null
qa/rpc-tests/mempool_reorg.py
jwflame/nyancoin-client-1
6bc7686edf8bc4b058d504ce0ab40b7cd2a0597b
[ "MIT" ]
3
2021-12-19T15:19:12.000Z
2022-01-27T16:59:49.000Z
qa/rpc-tests/mempool_reorg.py
jwflame/nyancoin-client-1
6bc7686edf8bc4b058d504ce0ab40b7cd2a0597b
[ "MIT" ]
3
2021-11-30T16:30:39.000Z
2022-01-21T18:13:30.000Z
#!/usr/bin/env python3 # Copyright (c) 2014-2021 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Test re-org scenarios with a mempool that contains transactions # that spend (directly or indirectly)...
44.303922
123
0.686214
d14aaf4a5de2dccdc843be33c455906c16a15c73
21,838
py
Python
tests/test_pipeline_manager.py
1and1/yagocd
4c75336ae6f107c8723d37b15e52169151822127
[ "ISC" ]
18
2016-04-29T00:10:15.000Z
2021-02-27T05:38:14.000Z
tests/test_pipeline_manager.py
1and1/yagocd
4c75336ae6f107c8723d37b15e52169151822127
[ "ISC" ]
16
2016-05-15T20:19:30.000Z
2020-04-13T17:00:11.000Z
tests/test_pipeline_manager.py
1and1/yagocd
4c75336ae6f107c8723d37b15e52169151822127
[ "ISC" ]
13
2016-05-24T01:50:28.000Z
2020-12-18T18:22:45.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # The MIT License # # Copyright (c) 2016 Grigory Chernyshev # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation file...
36.336106
117
0.691501
acb775f832da831fcb2aee63216687f7f2a2f08e
863
py
Python
optimizations/experiments/parallel_example.py
andrejjakovljevic/arkouda-optimizations
233ea5b970cea89c853186a2f297b4bdf11d836d
[ "MIT" ]
null
null
null
optimizations/experiments/parallel_example.py
andrejjakovljevic/arkouda-optimizations
233ea5b970cea89c853186a2f297b4bdf11d836d
[ "MIT" ]
null
null
null
optimizations/experiments/parallel_example.py
andrejjakovljevic/arkouda-optimizations
233ea5b970cea89c853186a2f297b4bdf11d836d
[ "MIT" ]
null
null
null
import numpy as np from time import time import multiprocessing as mp # Prepare data np.random.RandomState(100) arr = np.random.randint(0, 10, size=[200000, 5]) data = arr.tolist() # Solution Without Parallelization def howmany_within_range(row, minimum, maximum): """Returns how many numbers lie within `maximum`...
22.710526
86
0.68482
e53b48d91538a4bd9c3be83d817d69d969e8e81e
1,049
py
Python
pmid_override.py
Impactstory/osat-api
9e20f61ce9acf647bcc041df75e7f4a5b4d6b8a2
[ "MIT" ]
null
null
null
pmid_override.py
Impactstory/osat-api
9e20f61ce9acf647bcc041df75e7f4a5b4d6b8a2
[ "MIT" ]
null
null
null
pmid_override.py
Impactstory/osat-api
9e20f61ce9acf647bcc041df75e7f4a5b4d6b8a2
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import requests from sqlalchemy.dialects.postgresql import JSONB from app import db from app import logger from sqlalchemy import orm from util import normalize import shortuuid import datetime from util import safe_commit def add_pmid_override(pmid, genre, **kwargs): m...
26.897436
100
0.693041
841efd9fb0e89aa4738ea2297d9d481ae2ec4a39
6,056
py
Python
ics/structures/global_settings.py
hollinsky-intrepid/python_ics
b6ec5486ec3cc2548e33845c265faccf293b88f5
[ "Unlicense" ]
null
null
null
ics/structures/global_settings.py
hollinsky-intrepid/python_ics
b6ec5486ec3cc2548e33845c265faccf293b88f5
[ "Unlicense" ]
null
null
null
ics/structures/global_settings.py
hollinsky-intrepid/python_ics
b6ec5486ec3cc2548e33845c265faccf293b88f5
[ "Unlicense" ]
null
null
null
# This file was auto generated; Do not modify, if you value your sanity! import ctypes try: # 33 from s_red_settings import s_red_settings from s_fire_settings import s_fire_settings from s_fire_vnet_settings import s_fire_vnet_settings from s_cyan_settings import s_cyan_settings from svcan3_settin...
46.584615
80
0.772127
aa1532699fd99d788cc25b8e519e3ab6bfae8ebf
2,831
py
Python
CalibTracker/SiStripESProducers/test/python/testSiStripBadStripfromMultipleDBSources/DummyCondDBWriter_SiStripBadModule_fromMultipleDBSources_createTID_secondIOV_cfg.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
CalibTracker/SiStripESProducers/test/python/testSiStripBadStripfromMultipleDBSources/DummyCondDBWriter_SiStripBadModule_fromMultipleDBSources_createTID_secondIOV_cfg.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
CalibTracker/SiStripESProducers/test/python/testSiStripBadStripfromMultipleDBSources/DummyCondDBWriter_SiStripBadModule_fromMultipleDBSources_createTID_secondIOV_cfg.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
import FWCore.ParameterSet.Config as cms process = cms.Process("CALIB") process.MessageLogger = cms.Service("MessageLogger", debugModules = cms.untracked.vstring(''), QualityReader = cms.untracked.PSet( threshold = cms.untracked.string('INFO') ), destinations = cms.untracked.vstring('QualityRe...
39.873239
134
0.672907
306a8cce776d57600b956715afacb69868efd0bd
1,949
py
Python
models/presupuesto.py
horaciosanrafael/gppto
d029548550ebb62722cf748b5a570bc5c16801c6
[ "MIT" ]
null
null
null
models/presupuesto.py
horaciosanrafael/gppto
d029548550ebb62722cf748b5a570bc5c16801c6
[ "MIT" ]
null
null
null
models/presupuesto.py
horaciosanrafael/gppto
d029548550ebb62722cf748b5a570bc5c16801c6
[ "MIT" ]
null
null
null
from odoo import fields, models, api class LineaPresupuesto(models.Model): _inherit = 'sale.order.line' @api.depends('product_uom_qty', 'price_unit', 'discount') def _get_last(self): for record in self: record.descuento = record.product_uom_qty * record.price_unit * record.discount / ...
38.98
130
0.642894
a64ac8d5257313810719d8c103e32d5a8c100f6e
2,249
py
Python
dev/circuitpython/examples/requests_advanced.py
scripsi/picodeebee
0ec77e92f09fa8711705623482e57a5e0b702696
[ "MIT" ]
7
2021-03-15T10:06:20.000Z
2022-03-23T02:53:15.000Z
Lights/adafruit-circuitpython-bundle-6.x-mpy-20210310/examples/requests_advanced.py
IanSMoyes/SpiderPi
cc3469980ae87b92d0dc43c05dbd579f0fa8c4b1
[ "Apache-2.0" ]
5
2021-04-27T18:21:11.000Z
2021-05-02T14:17:14.000Z
Lights/adafruit-circuitpython-bundle-6.x-mpy-20210310/examples/requests_advanced.py
IanSMoyes/SpiderPi
cc3469980ae87b92d0dc43c05dbd579f0fa8c4b1
[ "Apache-2.0" ]
null
null
null
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries # SPDX-License-Identifier: MIT import board import busio from digitalio import DigitalInOut import adafruit_esp32spi.adafruit_esp32spi_socket as socket from adafruit_esp32spi import adafruit_esp32spi import adafruit_requests as requests # Add a ...
33.567164
100
0.729658
e9d1a9da63c641ec8a313e3103efa964c3dd9c79
731
py
Python
src/hydratk/lib/console/shellexec.py
hydratk/hydratk
54f64df2a68f49ba4ce564bf102824cc33dbe6c8
[ "BSD-3-Clause" ]
null
null
null
src/hydratk/lib/console/shellexec.py
hydratk/hydratk
54f64df2a68f49ba4ce564bf102824cc33dbe6c8
[ "BSD-3-Clause" ]
null
null
null
src/hydratk/lib/console/shellexec.py
hydratk/hydratk
54f64df2a68f49ba4ce564bf102824cc33dbe6c8
[ "BSD-3-Clause" ]
null
null
null
"""This code is a part of Hydra Toolkit library .. module:: lib.console.shellexec :platform: Unix :synopsis: Module for several solutions of shell command execution .. moduleauthor:: Petr Czaderna <pc@hydratk.org> """ def shell_exec(command, get_output = False): """Method executes shell command and returns...
29.24
76
0.663475
8759011abe5ef0e3b74adcee9db6639c3bfb4ecf
17,162
py
Python
lldb/packages/Python/lldbsuite/test_event/event_builder.py
medismailben/llvm-project
e334a839032fe500c3bba22bf976ab7af13ce1c1
[ "Apache-2.0" ]
765
2015-12-03T16:44:59.000Z
2022-03-07T12:41:10.000Z
packages/Python/lldbsuite/test_event/event_builder.py
DalavanCloud/lldb
e913eaf2468290fb94c767d474d611b41a84dd69
[ "Apache-2.0" ]
1,815
2015-12-11T23:56:05.000Z
2020-01-10T19:28:43.000Z
packages/Python/lldbsuite/test_event/event_builder.py
DalavanCloud/lldb
e913eaf2468290fb94c767d474d611b41a84dd69
[ "Apache-2.0" ]
284
2015-12-03T16:47:25.000Z
2022-03-12T05:39:48.000Z
""" Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. See https://llvm.org/LICENSE.txt for license information. SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception Provides a class to build Python test event data structures. """ from __future__ import print_function from __future__ imp...
35.605809
96
0.66688
8b3888368964bcc0a2be1e2597f690c0559cd54f
10,222
py
Python
jenkins/scripts/project-requirements-change.py
cwolferh/project-config
543a5d9b78abc70c2537f4e92d1e9302a4cbdb0f
[ "Apache-2.0" ]
null
null
null
jenkins/scripts/project-requirements-change.py
cwolferh/project-config
543a5d9b78abc70c2537f4e92d1e9302a4cbdb0f
[ "Apache-2.0" ]
null
null
null
jenkins/scripts/project-requirements-change.py
cwolferh/project-config
543a5d9b78abc70c2537f4e92d1e9302a4cbdb0f
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python # Copyright (C) 2011 OpenStack, LLC. # Copyright (c) 2013 Hewlett-Packard Development Company, L.P. # Copyright (c) 2013 OpenStack Foundation # # 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 c...
39.015267
79
0.575817
75299a3a0e45f17dbb3a8d92ac1ae58c96c16abf
3,927
py
Python
tensorflow/contrib/labeled_tensor/__init__.py
PedroLelis/tensorflow
8852b0032ad49acbc59009776665c60f86c06f91
[ "Apache-2.0" ]
1
2019-02-16T10:41:53.000Z
2019-02-16T10:41:53.000Z
tensorflow/contrib/labeled_tensor/__init__.py
PedroLelis/tensorflow
8852b0032ad49acbc59009776665c60f86c06f91
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/labeled_tensor/__init__.py
PedroLelis/tensorflow
8852b0032ad49acbc59009776665c60f86c06f91
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
28.05
80
0.787369
cacdfb98cd8581850f66008f578932048936344f
9,264
py
Python
smdebug/mxnet/hook.py
NRauschmayr/sagemaker-debugger
24ed65631143fcc0457fb325a102500ebd69adfc
[ "Apache-2.0" ]
null
null
null
smdebug/mxnet/hook.py
NRauschmayr/sagemaker-debugger
24ed65631143fcc0457fb325a102500ebd69adfc
[ "Apache-2.0" ]
null
null
null
smdebug/mxnet/hook.py
NRauschmayr/sagemaker-debugger
24ed65631143fcc0457fb325a102500ebd69adfc
[ "Apache-2.0" ]
null
null
null
# Third Party import mxnet as mx # First Party from smdebug.core.collection import DEFAULT_MXNET_COLLECTIONS, CollectionKeys from smdebug.core.hook import CallbackHook from smdebug.core.json_config import DEFAULT_WORKER_NAME from smdebug.mxnet.collection import CollectionManager from smdebug.mxnet.graph import _net2pb...
36.1875
106
0.643674
e12e2e4bc73015700633c052a7d15349f7f984c5
518
py
Python
tribal_wars/users/admin.py
Magni77/tribalwars-attacksplanner
587d2257f8b7f02125a4615135c17344ceba7185
[ "MIT" ]
null
null
null
tribal_wars/users/admin.py
Magni77/tribalwars-attacksplanner
587d2257f8b7f02125a4615135c17344ceba7185
[ "MIT" ]
null
null
null
tribal_wars/users/admin.py
Magni77/tribalwars-attacksplanner
587d2257f8b7f02125a4615135c17344ceba7185
[ "MIT" ]
null
null
null
from django.contrib import admin from django.contrib.auth import admin as auth_admin from django.contrib.auth import get_user_model from tribal_wars.users.forms import UserChangeForm, UserCreationForm User = get_user_model() @admin.register(User) class UserAdmin(auth_admin.UserAdmin): form = UserChangeForm ...
28.777778
83
0.749035
efe47f7ae4b4d28ddd40c352bf52d69a3a4811c5
2,399
py
Python
course/PCI/7/treepredict.py
liuyang1/test
a4560e0c9ffd0bc054d55bbcf12a894ab5b7d417
[ "MIT" ]
8
2015-06-07T13:25:48.000Z
2022-03-22T23:14:50.000Z
course/PCI/7/treepredict.py
liuyang1/test
a4560e0c9ffd0bc054d55bbcf12a894ab5b7d417
[ "MIT" ]
30
2016-01-29T01:36:41.000Z
2018-09-19T07:01:22.000Z
course/PCI/7/treepredict.py
liuyang1/test
a4560e0c9ffd0bc054d55bbcf12a894ab5b7d417
[ "MIT" ]
null
null
null
#! /usr/bin/python # encoding=utf-8 my_data=[line.split('\t') for line in file('decision_tree_example.txt')] # decision tree node class define class decisionnode: def __init__(self,col=-1,value=None,results=None,tb=None,fb=None): self.col=col self.value=value self.results=results self.tb=tb self.fb=fb def ...
24.731959
95
0.716549
34342de360f2927236429baaa41789993038bd5a
2,812
py
Python
modules/audio/keyword_spotting/kwmlp_speech_commands/module.py
AK391/PaddleHub
a51ab7447e089776766becb3297e560dfed98573
[ "Apache-2.0" ]
1
2022-03-23T14:33:07.000Z
2022-03-23T14:33:07.000Z
modules/audio/keyword_spotting/kwmlp_speech_commands/module.py
AK391/PaddleHub
a51ab7447e089776766becb3297e560dfed98573
[ "Apache-2.0" ]
null
null
null
modules/audio/keyword_spotting/kwmlp_speech_commands/module.py
AK391/PaddleHub
a51ab7447e089776766becb3297e560dfed98573
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
32.321839
80
0.6266
65f7318b3593e703d433da51588ceca3be34cae0
55,261
py
Python
autotest/ogr/ogr_sql_rfc28.py
rcoup/gdal
31240deb7b71d990a2abbad1bebedd0918989ca0
[ "MIT" ]
null
null
null
autotest/ogr/ogr_sql_rfc28.py
rcoup/gdal
31240deb7b71d990a2abbad1bebedd0918989ca0
[ "MIT" ]
null
null
null
autotest/ogr/ogr_sql_rfc28.py
rcoup/gdal
31240deb7b71d990a2abbad1bebedd0918989ca0
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # $Id$ # # Project: GDAL/OGR Test Suite # Purpose: Test OGR SQL capabilities added as part of RFC 28 implementation. # Author: Frank Warmerdam <warmerdam@pobox.com> # #######################...
33.209736
233
0.593837
04a6043bb552c1c3746c8a6e66decafa309bac7a
26,897
py
Python
kardboard/tests/integration/test_models.py
cmheisel/kardboard
345b4f4fe01eed5148da5bcf0e30edc9d37b9cc6
[ "MIT" ]
7
2015-10-21T20:23:36.000Z
2020-01-21T05:40:42.000Z
kardboard/tests/integration/test_models.py
cmheisel/kardboard
345b4f4fe01eed5148da5bcf0e30edc9d37b9cc6
[ "MIT" ]
1
2021-12-02T17:56:31.000Z
2021-12-02T17:56:31.000Z
kardboard/tests/integration/test_models.py
cmheisel/kardboard
345b4f4fe01eed5148da5bcf0e30edc9d37b9cc6
[ "MIT" ]
6
2015-04-05T06:28:53.000Z
2020-01-21T05:40:44.000Z
import datetime import random from copy import deepcopy import pytest from dateutil.relativedelta import relativedelta from kardboard.tests.core import KardboardTestCase @pytest.mark.displayboard class DisplayBoardTests(KardboardTestCase): def setUp(self): super(DisplayBoardTests, self).setUp() ...
31.203016
81
0.595643
5bb07b93167d8beceb19f88f1cdcd37e9c505edd
2,696
py
Python
embeddingNetwork.py
651juan/Teaching_a_chatbot
6f5718fab020207ac7c1684ce665ef46a2a02df2
[ "MIT" ]
null
null
null
embeddingNetwork.py
651juan/Teaching_a_chatbot
6f5718fab020207ac7c1684ce665ef46a2a02df2
[ "MIT" ]
null
null
null
embeddingNetwork.py
651juan/Teaching_a_chatbot
6f5718fab020207ac7c1684ce665ef46a2a02df2
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F device_type="cuda:0" class Encoder(nn.Module): def __init__(self, hidden_dim, embedding_dim, vocab_size, no_of_movies): #(256, 64, max_val + 1, no_of_movies) super(Encoder, self).__init__() self.hidden_dim=hidden_di...
49.018182
136
0.6977
0175865421e538eb7994e2305b2bf95321c7c98d
383
py
Python
setup.py
vivainio/zipget
72fd57a2560ada64e4ee9798bce6517876569e6f
[ "MIT" ]
null
null
null
setup.py
vivainio/zipget
72fd57a2560ada64e4ee9798bce6517876569e6f
[ "MIT" ]
null
null
null
setup.py
vivainio/zipget
72fd57a2560ada64e4ee9798bce6517876569e6f
[ "MIT" ]
null
null
null
from distutils.core import setup setup( name="zipget", version="1.0.0", description="Download and unzip things", author="Ville M. Vainio", author_email="ville.vainio@basware.com", url="https://github.com/vivainio/zipget", packages=["zipget"], install_requires=[], entry_po...
27.357143
71
0.644909
41788ac77529768831a8b761cde54b6af863acbc
17,349
py
Python
corehq/apps/userreports/models.py
johan--/commcare-hq
86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/userreports/models.py
johan--/commcare-hq
86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd
[ "BSD-3-Clause" ]
1
2022-03-12T01:03:25.000Z
2022-03-12T01:03:25.000Z
corehq/apps/userreports/models.py
johan--/commcare-hq
86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd
[ "BSD-3-Clause" ]
null
null
null
from copy import copy, deepcopy import json from corehq.db import UCR_ENGINE_ID from dimagi.ext.couchdbkit import ( BooleanProperty, DateTimeProperty, Document, DocumentSchema, SchemaProperty, StringListProperty, ) from dimagi.ext.couchdbkit import StringProperty, DictProperty, ListProperty, Int...
34.698
110
0.644533
93b49014d4003ec819bf61e381834aaf9c52891b
10,521
py
Python
src/build/lacros/test_runner_test.py
Chilledheart/naiveproxy
9d28da89b325a90d33add830f4202c8b17c7c3e3
[ "BSD-3-Clause" ]
null
null
null
src/build/lacros/test_runner_test.py
Chilledheart/naiveproxy
9d28da89b325a90d33add830f4202c8b17c7c3e3
[ "BSD-3-Clause" ]
null
null
null
src/build/lacros/test_runner_test.py
Chilledheart/naiveproxy
9d28da89b325a90d33add830f4202c8b17c7c3e3
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env vpython3 # Copyright 2020 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 logging import os import subprocess import sys import tempfile import time import unittest import mock from parameterized imp...
39.111524
80
0.659443
964707ba79baabe9ea3e4bf95afea61bfd5526bf
873
py
Python
nova/api/metadata/__init__.py
bopopescu/nova-master
58809056f3a219c6ea3667003f906eeaf581fa95
[ "Apache-2.0" ]
7
2017-06-19T19:37:00.000Z
2019-06-16T02:06:14.000Z
nova/api/metadata/__init__.py
bopopescu/nova-master
58809056f3a219c6ea3667003f906eeaf581fa95
[ "Apache-2.0" ]
null
null
null
nova/api/metadata/__init__.py
bopopescu/nova-master
58809056f3a219c6ea3667003f906eeaf581fa95
[ "Apache-2.0" ]
6
2015-06-20T16:07:28.000Z
2020-08-19T14:57:59.000Z
# Copyright 2011 OpenStack Foundation # # 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 ...
36.375
78
0.684994
675c377b022f3df22c17d9c0561158014934b559
808
py
Python
bidintelli/manage.py
KurtX/bidintelli
a9719ff1dbf18dbcfd5dadfe5442e0a93893ec3a
[ "Apache-2.0" ]
null
null
null
bidintelli/manage.py
KurtX/bidintelli
a9719ff1dbf18dbcfd5dadfe5442e0a93893ec3a
[ "Apache-2.0" ]
null
null
null
bidintelli/manage.py
KurtX/bidintelli
a9719ff1dbf18dbcfd5dadfe5442e0a93893ec3a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "bidintelli.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure that t...
35.130435
77
0.643564
78f5f9c6def999eb5eb69e84b8dcbc2ced9d1e55
19,852
py
Python
office365/directory/users/user.py
beliaev-maksim/Office365-REST-Python-Client
b2fd54701d83cc91eb5ba3a0ec352a93ded24885
[ "MIT" ]
null
null
null
office365/directory/users/user.py
beliaev-maksim/Office365-REST-Python-Client
b2fd54701d83cc91eb5ba3a0ec352a93ded24885
[ "MIT" ]
null
null
null
office365/directory/users/user.py
beliaev-maksim/Office365-REST-Python-Client
b2fd54701d83cc91eb5ba3a0ec352a93ded24885
[ "MIT" ]
null
null
null
from office365.communications.presences.presence import Presence from office365.directory.extensions.extension import Extension from office365.directory.licenses.assigned_plan import AssignedPlan from office365.onedrive.sites.site import Site from office365.onenote.onenote import Onenote from office365.outlook.calendar...
45.53211
119
0.644469
c302ef2cb1c3f101035cd877a32988d41ac58c5d
6,341
py
Python
src/ContactParticleFilter/python/contactfiltervisualizer.py
mpetersen94/spartan
6998c959d46a475ff73ef38d3e83f8a9f3695e6d
[ "BSD-3-Clause-Clear" ]
null
null
null
src/ContactParticleFilter/python/contactfiltervisualizer.py
mpetersen94/spartan
6998c959d46a475ff73ef38d3e83f8a9f3695e6d
[ "BSD-3-Clause-Clear" ]
null
null
null
src/ContactParticleFilter/python/contactfiltervisualizer.py
mpetersen94/spartan
6998c959d46a475ff73ef38d3e83f8a9f3695e6d
[ "BSD-3-Clause-Clear" ]
null
null
null
__author__ = 'manuelli' import numpy as np import yaml import os import contactfilterutils as cfUtils from contactfilter import ContactFilter from director import lcmUtils from director.debugVis import DebugData from director import visualization as vis from director import objectmodel as om import robotlocomotion as...
40.388535
125
0.619461
16aa7f9e9a40a6da077e151f6225f821f2a07f4e
2,494
py
Python
src/webscrapper/webscraper.py
joacocruz6/NewsTwitterScrapper
7536be60e3ec13f5fadf3eb1563bcd848bbbc0b1
[ "MIT" ]
null
null
null
src/webscrapper/webscraper.py
joacocruz6/NewsTwitterScrapper
7536be60e3ec13f5fadf3eb1563bcd848bbbc0b1
[ "MIT" ]
null
null
null
src/webscrapper/webscraper.py
joacocruz6/NewsTwitterScrapper
7536be60e3ec13f5fadf3eb1563bcd848bbbc0b1
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup import requests import sys import json import time ROUTE = '../jsonData/' def getContent(url: str): """ Gets the content for a given url in the web Arguments: url {str} -- [ The url of the webpage to scrap ] Returns: [type] -- [ ...
30.048193
135
0.612269
b8cf97d3082ff01f33aafd29fa9398bab5b77426
802
py
Python
7 Color Spaces.py
VishnuK11/Computer_Vision
eb554db3e1e8448b3d85658b5b1090180955c40d
[ "MIT" ]
null
null
null
7 Color Spaces.py
VishnuK11/Computer_Vision
eb554db3e1e8448b3d85658b5b1090180955c40d
[ "MIT" ]
null
null
null
7 Color Spaces.py
VishnuK11/Computer_Vision
eb554db3e1e8448b3d85658b5b1090180955c40d
[ "MIT" ]
null
null
null
''' Color Spaces BGR HSV LAB RGB ''' import cv2 as cv import numpy as np import matplotlib.pyplot as plt dir_path = os.getcwd()+'/data/images/' img=cv.imread(dir_path+'flower.jpeg') cv.imshow('Flower',img) # 1 BGR to GRAY gray=cv.cvtColor(img,cv.COLOR_BGR2GRAY) cv.imshow('Gray',gray) # 2 BGR to HSV hsv=cv.cvtColor...
16.367347
43
0.716958
49042482d0bb4524815272537177047b00310dc3
1,157
py
Python
tests/integration/api/test_sc_containers.py
skrtu/Tenable.io-SDK-for-Python
fde8871ba558666609183ac8702149ecf08421b5
[ "MIT" ]
null
null
null
tests/integration/api/test_sc_containers.py
skrtu/Tenable.io-SDK-for-Python
fde8871ba558666609183ac8702149ecf08421b5
[ "MIT" ]
null
null
null
tests/integration/api/test_sc_containers.py
skrtu/Tenable.io-SDK-for-Python
fde8871ba558666609183ac8702149ecf08421b5
[ "MIT" ]
1
2018-07-29T02:55:16.000Z
2018-07-29T02:55:16.000Z
from tests.base import BaseTest from tests.util import upload_image from tenable_io.api.models import ScContainer class TestScContainersApi(BaseTest): def test_delete(self, app, client): image = upload_image(app.session_name(u'test_sc_containers_delete_%s'), u'test_sc_containers_delete') respon...
41.321429
120
0.689715
fff96e79507a7ca97360f267d327eaa213fa2d65
445
py
Python
Python/_03_Strings/_06_String_Validators/solution.py
avtomato/HackerRank
96f9cf770ac57d782bb05cccc23764a529bb27ae
[ "MIT" ]
null
null
null
Python/_03_Strings/_06_String_Validators/solution.py
avtomato/HackerRank
96f9cf770ac57d782bb05cccc23764a529bb27ae
[ "MIT" ]
null
null
null
Python/_03_Strings/_06_String_Validators/solution.py
avtomato/HackerRank
96f9cf770ac57d782bb05cccc23764a529bb27ae
[ "MIT" ]
2
2019-09-21T16:04:13.000Z
2020-03-25T09:07:47.000Z
if __name__ == '__main__': s = input() print('True') if len([i for i in s if i.isalnum()]) > 0 else print('False') print('True') if len([i for i in s if i.isalpha()]) > 0 else print('False') print('True') if len([i for i in s if i.isdigit()]) > 0 else print('False') print('True') if len([i for i in ...
49.444444
79
0.582022
a264fd34c87b804aac4f4d7190dfceb0d6fd77b3
127
py
Python
Task/__main__.py
Janik-Tarverdyan/Python_Task
c8a3c07f1294c62bd76881e84841f45221e1c2ce
[ "BSD-3-Clause" ]
null
null
null
Task/__main__.py
Janik-Tarverdyan/Python_Task
c8a3c07f1294c62bd76881e84841f45221e1c2ce
[ "BSD-3-Clause" ]
null
null
null
Task/__main__.py
Janik-Tarverdyan/Python_Task
c8a3c07f1294c62bd76881e84841f45221e1c2ce
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from core import route, manager route.Errors.Handler() if __name__ == "__main__": manager.run()
11.545455
31
0.685039
37cbf55547a194b0f7c4e0ea0cb158a93586bbb6
880
py
Python
INHERITANCE/hierarchical_inheritance.py
ragulkesavan/Python-75-Hackathon
adda961155467a428938fc52e2d761bf5b786788
[ "MIT" ]
null
null
null
INHERITANCE/hierarchical_inheritance.py
ragulkesavan/Python-75-Hackathon
adda961155467a428938fc52e2d761bf5b786788
[ "MIT" ]
null
null
null
INHERITANCE/hierarchical_inheritance.py
ragulkesavan/Python-75-Hackathon
adda961155467a428938fc52e2d761bf5b786788
[ "MIT" ]
null
null
null
class orders:#DEFINITION PARENT CLASS OF CLASS l=[] def order(self): product_name=input("enter the name of product : ") quantity=int(input("enter the quantity of product : ")) address=input("enter delivery address :") self.l.append([product_name,quantity,address]) def display...
26.666667
63
0.6375
0c323e24bc1521fca218b3281aaa1b4e3ed9d019
484
py
Python
dunm_sandbox/myapp/migrations/0002_mymodel_tz_created.py
adamghill/django-unmigrate
258685dbb7d93f480af01513901aa65af192e522
[ "MIT" ]
null
null
null
dunm_sandbox/myapp/migrations/0002_mymodel_tz_created.py
adamghill/django-unmigrate
258685dbb7d93f480af01513901aa65af192e522
[ "MIT" ]
null
null
null
dunm_sandbox/myapp/migrations/0002_mymodel_tz_created.py
adamghill/django-unmigrate
258685dbb7d93f480af01513901aa65af192e522
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-05-02 01:43 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('myapp', '0001_initial'), ] operations = [ migrations.AddField( model_name='mymodel', na...
23.047619
93
0.628099
b6a4b73f666daebbed1d6ca9cf510e89e7f53d26
361
py
Python
tasks/package.py
R-fred/awesome-streamlit
10f2b132bc8e61a82edfacb4b3bb36d0da6c63d3
[ "CC0-1.0" ]
1,194
2019-10-09T06:15:27.000Z
2022-03-31T14:53:00.000Z
tasks/package.py
R-fred/awesome-streamlit
10f2b132bc8e61a82edfacb4b3bb36d0da6c63d3
[ "CC0-1.0" ]
55
2019-10-09T12:08:39.000Z
2022-02-10T00:48:53.000Z
tasks/package.py
R-fred/awesome-streamlit
10f2b132bc8e61a82edfacb4b3bb36d0da6c63d3
[ "CC0-1.0" ]
272
2019-10-09T12:04:31.000Z
2022-03-29T02:43:30.000Z
"""Module of Invoke tasks regarding the `package. To be invoked from the command line. Try invoke --list from the command line for a list of all available commands. """ from invoke import task @task def build(command): """Builds the awesome-streamlit package)""" with command.cd("package"): command....
22.5625
90
0.714681
397bacb643ae0745fa1739b31599c06c1390ff8f
354
py
Python
app/brudnopis.py
joanna-salek/master_thesis
a5197ffabfa440c2751eea953538e1b91638dc0e
[ "MIT" ]
null
null
null
app/brudnopis.py
joanna-salek/master_thesis
a5197ffabfa440c2751eea953538e1b91638dc0e
[ "MIT" ]
null
null
null
app/brudnopis.py
joanna-salek/master_thesis
a5197ffabfa440c2751eea953538e1b91638dc0e
[ "MIT" ]
null
null
null
import pandas as pd df = pd.read_csv(r"C:\Users\joann\PycharmProjects\magisterka\out\viruses_types.csv") df.columns = ["HOST", "REGION", "number", "YEAR", "GROUP"] df.drop('number',axis='columns', inplace=True) print (df) df = df.to_html() with open(r"C:\Users\joann\PycharmProjects\magisterka\out\viruses_types.html",...
32.181818
92
0.714689
b878b91b788a10539b3a23667737c869aa3358fd
2,151
py
Python
V1_backup/macro_start_lxc.py
YuanYuLin/iopcrestapi_client
5c1683d1b5b44bd8bb641933d9526cee97075d31
[ "MIT" ]
null
null
null
V1_backup/macro_start_lxc.py
YuanYuLin/iopcrestapi_client
5c1683d1b5b44bd8bb641933d9526cee97075d31
[ "MIT" ]
null
null
null
V1_backup/macro_start_lxc.py
YuanYuLin/iopcrestapi_client
5c1683d1b5b44bd8bb641933d9526cee97075d31
[ "MIT" ]
null
null
null
#!/usr/bin/python2.7 import requests import pprint import sys import json import time def http_request(hostname, payload): url='http://' + hostname + '/api/v1/ops' print url headers = {'content-type':'application/json; charset=utf-8', 'user-agent':'iopc-app'} rsp=requests.post(url, headers=headers, da...
27.576923
89
0.62622
3f36b0ede78ae39ba2b729b7623b60ef4335c169
1,048
py
Python
kitsune/wiki/tests/test_admin.py
turtleloveshoes/kitsune
7e5524644eab7f608a44c44c63d242cda3aef7f0
[ "BSD-3-Clause" ]
1
2020-11-03T23:46:56.000Z
2020-11-03T23:46:56.000Z
kitsune/wiki/tests/test_admin.py
rlr/kitsune
591e996a3a115a7b235cbca19f5dec58fc9b6249
[ "BSD-3-Clause" ]
8
2020-06-05T18:42:14.000Z
2022-03-11T23:26:51.000Z
kitsune/wiki/tests/test_admin.py
rlr/kitsune
591e996a3a115a7b235cbca19f5dec58fc9b6249
[ "BSD-3-Clause" ]
1
2020-11-03T23:47:55.000Z
2020-11-03T23:47:55.000Z
# -*- coding: utf-8 -*- from nose.tools import eq_ from kitsune.sumo.tests import TestCase from kitsune.wiki.admin import DocumentAdmin from kitsune.wiki.models import Document from kitsune.wiki.tests import document, translated_revision class ArchiveTests(TestCase): """Tests for the archival bit flipping in the...
36.137931
77
0.694656
b6400bf1583bb415b6ae87f0a8b686fba1d5f192
1,187
py
Python
github/komand_github/actions/create/action.py
killstrelok/insightconnect-plugins
911358925f4233ab273dbd8172e8b7b9188ebc01
[ "MIT" ]
1
2020-03-18T09:14:55.000Z
2020-03-18T09:14:55.000Z
github/komand_github/actions/create/action.py
killstrelok/insightconnect-plugins
911358925f4233ab273dbd8172e8b7b9188ebc01
[ "MIT" ]
1
2021-02-23T23:57:37.000Z
2021-02-23T23:57:37.000Z
github/komand_github/actions/create/action.py
killstrelok/insightconnect-plugins
911358925f4233ab273dbd8172e8b7b9188ebc01
[ "MIT" ]
null
null
null
import komand import github from .schema import CreateInput, CreateOutput class Create(komand.Action): def __init__(self): super(self.__class__, self).__init__( name='create', description='Create an issue ticket', input=CreateInput(), output=CreateOutpu...
31.236842
94
0.641955
58e6c208b0d036be7da1c843681643095ef3fe55
9,689
py
Python
Projects/ABM_DA/experiments/ukf_experiments/modules/ex1/ukf_ex1.py
RobertClay/DUST-RC
09f7ec9d8d093021d068dff8a7a48c15ea318b86
[ "MIT" ]
15
2018-11-21T14:57:24.000Z
2022-03-04T15:42:09.000Z
Projects/ABM_DA/experiments/ukf_experiments/modules/ex1/ukf_ex1.py
RobertClay/DUST-RC
09f7ec9d8d093021d068dff8a7a48c15ea318b86
[ "MIT" ]
125
2019-11-06T13:03:35.000Z
2022-03-07T13:38:33.000Z
Projects/ABM_DA/experiments/ukf_experiments/modules/ex1/ukf_ex1.py
RobertClay/DUST-RC
09f7ec9d8d093021d068dff8a7a48c15ea318b86
[ "MIT" ]
6
2018-11-20T15:56:49.000Z
2021-10-08T10:21:06.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Dec 2 11:16:33 2019 @author: rob """ import sys import os sys.path.append("../../../../stationsim") import numpy as np from math import floor import multiprocessing "local imports" sys.path.append("..") sys.path.append("../..") from modules.ukf_fx...
30.856688
95
0.629993
318d8f81d137271faf33e06c27b0bc7678793cce
8,512
py
Python
tensorflow_io/core/python/experimental/filter_ops.py
suphoff/io
6f458c3d1b52430b2e2a7ed1c867b2591abfccbc
[ "Apache-2.0" ]
null
null
null
tensorflow_io/core/python/experimental/filter_ops.py
suphoff/io
6f458c3d1b52430b2e2a7ed1c867b2591abfccbc
[ "Apache-2.0" ]
null
null
null
tensorflow_io/core/python/experimental/filter_ops.py
suphoff/io
6f458c3d1b52430b2e2a7ed1c867b2591abfccbc
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
34.601626
83
0.59281
49a4ddbbc044394a74b3e2a23503c6baadfb070b
7,761
py
Python
src/sst/elements/memHierarchy/tests/testScratchCache3.py
jleidel/sst-elements
ad60d81078a9a1dca0ffc04411858491953c6a73
[ "BSD-3-Clause" ]
null
null
null
src/sst/elements/memHierarchy/tests/testScratchCache3.py
jleidel/sst-elements
ad60d81078a9a1dca0ffc04411858491953c6a73
[ "BSD-3-Clause" ]
null
null
null
src/sst/elements/memHierarchy/tests/testScratchCache3.py
jleidel/sst-elements
ad60d81078a9a1dca0ffc04411858491953c6a73
[ "BSD-3-Clause" ]
null
null
null
import sst from mhlib import componentlist # Global variables debugScratch = 0 debugL1 = 0 debugL2 = 0 debugL3 = 0 debugCore0 = 0 debugCore1 = 0 core_clock = "2GHz" # Define the simulation components comp_cpu0 = sst.Component("cpu0", "memHierarchy.ScratchCPU") comp_cpu0.addParams({ "scratchSize" : 65536, # 64K ...
34.340708
112
0.671305
6761d13ae3402790da11ddd48c1f5a74dc99a300
8,089
py
Python
src/oci/data_integration/models/config_parameter_definition.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
249
2017-09-11T22:06:05.000Z
2022-03-04T17:09:29.000Z
src/oci/data_integration/models/config_parameter_definition.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
228
2017-09-11T23:07:26.000Z
2022-03-23T10:58:50.000Z
src/oci/data_integration/models/config_parameter_definition.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
224
2017-09-27T07:32:43.000Z
2022-03-25T16:55:42.000Z
# coding: utf-8 # Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
31.972332
245
0.665595
d669454f41a9d6095f899aeab35bf059c321e61e
8,796
py
Python
operations.py
HankKung/DistNAS
10eb040a54f5ee04b59a9293480890992923a4f6
[ "Apache-2.0" ]
11
2019-08-12T07:47:03.000Z
2021-06-07T06:14:49.000Z
operations.py
HankKung/DistNAS
10eb040a54f5ee04b59a9293480890992923a4f6
[ "Apache-2.0" ]
1
2020-01-30T09:50:15.000Z
2020-01-31T00:51:37.000Z
operations.py
HankKung/DistNAS
10eb040a54f5ee04b59a9293480890992923a4f6
[ "Apache-2.0" ]
2
2019-08-12T08:54:36.000Z
2020-02-29T11:47:44.000Z
import torch import torch.nn as nn OPS = { 'none' : lambda C, stride, affine: Zero(stride), 'avg_pool_3x3' : lambda C, stride, affine: nn.AvgPool2d(3, stride=stride, padding=1, count_include_pad=False), 'max_pool_3x3' : lambda C, stride, affine: nn.MaxPool2d(3, stride=stride, padding=1), 'skip_connect' : lambd...
34.629921
116
0.595043
38bff9b27f980587eb6ac89b78fe26004b1116f9
1,022
py
Python
tests/test_pycreviewer.py
dromar-soft/Pycreviewer
60abd6c2d30b811df29c28b395502c1eb2a48d3f
[ "MIT" ]
null
null
null
tests/test_pycreviewer.py
dromar-soft/Pycreviewer
60abd6c2d30b811df29c28b395502c1eb2a48d3f
[ "MIT" ]
null
null
null
tests/test_pycreviewer.py
dromar-soft/Pycreviewer
60abd6c2d30b811df29c28b395502c1eb2a48d3f
[ "MIT" ]
null
null
null
import unittest import pycreviewer class TestPyCReviewer(unittest.TestCase): """TestPyCReviewerモジュールのテストクラス 正常系テスト観点: 全チェック項目が必ず1つ以上該当する、代表的なソースコードをレビューし、 戻り値に各チェック項目IDが一つ以上含まれていることを確認する。 異常系テスト観点: 空のソースコードをレビューしたときに指摘事項がないことを確認する """ ...
39.307692
76
0.686888
3ccf7fe88a5771ddd694cc308d057178f82e274d
7,633
py
Python
src/python/zensols/zotsite/domain.py
SariusRu/RGIS.Literature
8b3a9888e7d3faec540ccedfea5cb3d060e23dcd
[ "MIT" ]
183
2018-04-03T00:34:15.000Z
2022-03-30T22:47:22.000Z
src/python/zensols/zotsite/domain.py
SariusRu/RGIS.Literature
8b3a9888e7d3faec540ccedfea5cb3d060e23dcd
[ "MIT" ]
20
2018-08-07T19:08:50.000Z
2022-02-22T15:56:38.000Z
src/python/zensols/zotsite/domain.py
SariusRu/RGIS.Literature
8b3a9888e7d3faec540ccedfea5cb3d060e23dcd
[ "MIT" ]
25
2018-05-09T21:37:08.000Z
2022-02-24T07:12:01.000Z
import logging from abc import ABC, abstractmethod import re from io import TextIOBase from pathlib import Path from zensols.persist import persisted logger = logging.getLogger(__name__) class ZoteroObject(ABC): """Represents any collection, item etc. Zotero data object. """ def __init__(self, children)...
25.614094
83
0.587711
e4e83160f75e2650baa654dd5e1eb80618741d63
6,509
py
Python
randomized_optimization/4peaks.py
asif-rehan/CS7641-Machine-Learning
35d949c465b756f2f8310f4cce36ce786673c897
[ "Apache-2.0" ]
null
null
null
randomized_optimization/4peaks.py
asif-rehan/CS7641-Machine-Learning
35d949c465b756f2f8310f4cce36ce786673c897
[ "Apache-2.0" ]
null
null
null
randomized_optimization/4peaks.py
asif-rehan/CS7641-Machine-Learning
35d949c465b756f2f8310f4cce36ce786673c897
[ "Apache-2.0" ]
1
2021-01-27T20:03:33.000Z
2021-01-27T20:03:33.000Z
import numpy as np import pandas as pd import param_search import mlrose_hiive as mlrose import matplotlib.pyplot as plt import os this_dir = os.path.dirname(__file__) #=================================================================================================== # STEP1: DEFINE A FITNESS FUNCTION, PROB...
69.244681
218
0.603779
d3a478951e37e6ced10b7713a088a3624961211a
3,145
py
Python
src/box/main.py
lutzer/polylogue2
df803c3c401a5983efe549370223306035c77f6d
[ "MIT" ]
null
null
null
src/box/main.py
lutzer/polylogue2
df803c3c401a5983efe549370223306035c77f6d
[ "MIT" ]
null
null
null
src/box/main.py
lutzer/polylogue2
df803c3c401a5983efe549370223306035c77f6d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Author: Lutz Reiter, Design Research Lab, Universität der Künste Berlin # @Date: 2016-10-18 11:15:49 # @Last Modified by: lutzer # @Last Modified time: 2016-10-25 00:31:53 from __future__ import with_statement import time import logging import sys import pyglet from config import * from...
25.362903
82
0.741494
7a9474b13ca66a93679695a1c729f4ee83ec0403
15,549
py
Python
src/naima/tests/test_models.py
zblz/naima
4e7b85dfcbc00d5e4474c2f339ace0e565c9ffcd
[ "BSD-3-Clause" ]
32
2015-01-02T03:09:58.000Z
2022-03-04T15:30:53.000Z
src/naima/tests/test_models.py
Tyrannosaurusxuan/naima
4e7b85dfcbc00d5e4474c2f339ace0e565c9ffcd
[ "BSD-3-Clause" ]
97
2015-01-28T20:09:44.000Z
2021-11-01T23:16:12.000Z
src/naima/tests/test_models.py
Tyrannosaurusxuan/naima
4e7b85dfcbc00d5e4474c2f339ace0e565c9ffcd
[ "BSD-3-Clause" ]
45
2015-01-16T09:17:15.000Z
2022-03-31T08:33:46.000Z
# Licensed under a 3-clause BSD style license - see LICENSE.rst import numpy as np from astropy import units as u from astropy.constants import c, hbar, m_e, sigma_sb from astropy.modeling.physical_models import BlackBody from astropy.table import QTable, Table from astropy.tests.helper import pytest from numpy.testing...
26.994792
85
0.610907
8dafa7bd093d9872172487c8469e83fc0993b7eb
746
py
Python
keep_backend/settings/local_production.py
jianlins/keep
8f30068eede1de1078db51c40c0791b1806081e9
[ "MIT" ]
null
null
null
keep_backend/settings/local_production.py
jianlins/keep
8f30068eede1de1078db51c40c0791b1806081e9
[ "MIT" ]
null
null
null
keep_backend/settings/local_production.py
jianlins/keep
8f30068eede1de1078db51c40c0791b1806081e9
[ "MIT" ]
null
null
null
from settings import * from credentials import AWS, MAILGUN ALLOWED_HOSTS = [ '*' ] DEBUG = False # Setup S3 file storage for our static files. DEFAULT_FILE_STORAGE = 'storages.backends.s3boto.S3BotoStorage' AWS_ACCESS_KEY_ID = AWS[ 'ACCESS_KEY_ID' ] AWS_SECRET_ACCESS_KEY = AWS[ 'SECRET_KEY' ] AWS_STORAGE_B...
25.724138
63
0.72252
14f9db4d9aea4d90af967fcfef4ccac6c7cc25de
3,303
py
Python
nameSurvey/nameSurvey/lib/dbprocess.py
chriswilly/demoCode
654603012157613afa0b4a6b4cc2fa0e50d1b807
[ "MIT" ]
null
null
null
nameSurvey/nameSurvey/lib/dbprocess.py
chriswilly/demoCode
654603012157613afa0b4a6b4cc2fa0e50d1b807
[ "MIT" ]
null
null
null
nameSurvey/nameSurvey/lib/dbprocess.py
chriswilly/demoCode
654603012157613afa0b4a6b4cc2fa0e50d1b807
[ "MIT" ]
null
null
null
import os from pathlib import Path import sqlite3 from sqlite3 import Error # local: if __file__ == 'dbprocess.py': from dbutil import dbutil from qry import sql_stmt else: from lib.dbutil import dbutil from lib.qry import sql_stmt class dbprocess: """conduct db actions using connection in utils""...
28.721739
107
0.581592
0062573b14f34dca2cf6fb99784f6985fa5f897b
23,493
py
Python
pyfesom2/ut.py
FinnHeu/pyfesom2
32b3f30003811772675d87206557eb03b7268e67
[ "MIT" ]
null
null
null
pyfesom2/ut.py
FinnHeu/pyfesom2
32b3f30003811772675d87206557eb03b7268e67
[ "MIT" ]
33
2019-03-10T16:11:24.000Z
2019-06-26T07:02:17.000Z
pyfesom2/ut.py
koldunovn/pyfesom2
68a5473eb84301edb25bbb389093e3d3a9999ffc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # This file is part of pyfesom2 # Original code by Dmitry Sidorenko, Nikolay Koldunov, Lukrecia Stulic, # Qiang Wang, Sergey Danilov and Patrick Scholz # import json import math as mt from collections import OrderedDict import matplotlib as mpl import matplotlib.pylab as plt import numpy as ...
29.329588
144
0.563742
e5bee83a0ebe231371837384bcf33441955e4e10
25,845
py
Python
tests/components/homekit/test_homekit.py
pdbogen/home-assistant
e602de55ac09be9ab8cbb354519a1b1b57fbe362
[ "Apache-2.0" ]
2
2022-01-24T18:59:56.000Z
2022-02-04T22:12:48.000Z
tests/components/homekit/test_homekit.py
pdbogen/home-assistant
e602de55ac09be9ab8cbb354519a1b1b57fbe362
[ "Apache-2.0" ]
1
2020-08-27T01:16:43.000Z
2020-08-27T01:16:43.000Z
tests/components/homekit/test_homekit.py
pdbogen/home-assistant
e602de55ac09be9ab8cbb354519a1b1b57fbe362
[ "Apache-2.0" ]
1
2020-07-28T00:17:21.000Z
2020-07-28T00:17:21.000Z
"""Tests for the HomeKit component.""" import os from typing import Dict from unittest.mock import ANY, Mock, patch import pytest from zeroconf import InterfaceChoice from homeassistant.components.binary_sensor import DEVICE_CLASS_BATTERY_CHARGING from homeassistant.components.homekit import ( MAX_DEVICES, ST...
29.10473
88
0.667324
7a0c1f340688d1a7add35f6b6a599eeabfab1aa8
461
py
Python
data/scripts/templates/object/tangible/ship/customization/shared_xwing_thruster_neg_s02.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/tangible/ship/customization/shared_xwing_thruster_neg_s02.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/tangible/ship/customization/shared_xwing_thruster_neg_s02.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Tangible() result.template = "object/tangible/ship/customization/shared_xwing_thruster_neg_s02.iff" result.attrib...
27.117647
89
0.735358
8b48550a93d23fea3da835676c5f93185d76dd53
225
py
Python
summer_coding/1528_shuffle_string.py
Taewan-P/LeetCode_Repository
0e6a91c892fd406a2629b416f37dc6a989875fde
[ "MIT" ]
null
null
null
summer_coding/1528_shuffle_string.py
Taewan-P/LeetCode_Repository
0e6a91c892fd406a2629b416f37dc6a989875fde
[ "MIT" ]
null
null
null
summer_coding/1528_shuffle_string.py
Taewan-P/LeetCode_Repository
0e6a91c892fd406a2629b416f37dc6a989875fde
[ "MIT" ]
null
null
null
class Solution: def restoreString(self, s: str, indices: List[int]) -> str: result = [None] * len(s) for i, j in enumerate(indices): result[j] = s[i] return "".join(result)
32.142857
63
0.515556
ac601278f5b18d99787e78a48cf4a0ce5a56a0f0
11,841
py
Python
searchstats.py
ClockworkNet/gsa-admin-toolkit
0e3cf0b2f0a95f76aaa41e7d2acf675435b67440
[ "Apache-2.0" ]
1
2017-06-13T22:32:44.000Z
2017-06-13T22:32:44.000Z
searchstats.py
IevgenPr/gsa-admin-toolkit
d7ac8f09133b904c5603c2bbf46f33b9883c3ad7
[ "Apache-2.0" ]
null
null
null
searchstats.py
IevgenPr/gsa-admin-toolkit
d7ac8f09133b904c5603c2bbf46f33b9883c3ad7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python2.2 # # Copyright (C) 2007 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 l...
44.348315
89
0.583481
d82bad8fa19912bf5d4d85f96a604101a6c53d37
1,745
py
Python
tests/integration/pybaseball/test_statcast_batter.py
reddigari/pybaseball
2d878cf3505ce0a5e657694ae967d6275dc3c211
[ "MIT" ]
650
2017-06-29T20:05:19.000Z
2022-03-31T03:27:25.000Z
tests/integration/pybaseball/test_statcast_batter.py
reddigari/pybaseball
2d878cf3505ce0a5e657694ae967d6275dc3c211
[ "MIT" ]
216
2017-10-21T05:05:08.000Z
2022-03-31T04:04:53.000Z
tests/integration/pybaseball/test_statcast_batter.py
reddigari/pybaseball
2d878cf3505ce0a5e657694ae967d6275dc3c211
[ "MIT" ]
214
2017-07-18T21:40:01.000Z
2022-03-29T03:19:55.000Z
import pandas as pd from tests.conftest import CURRENT_SC_COLUMNS from pybaseball.statcast_batter import ( statcast_batter, statcast_batter_exitvelo_barrels, statcast_batter_expected_stats, statcast_batter_percentile_ranks, statcast_batter_pitch_arsenal ) def test_statcast_batter_exitvelo_barrel...
26.846154
78
0.720917
b892a09142addd672f67df5d23d8c7aaec03e740
379
py
Python
jetblack_metrics/metrics/metric.py
rob-blackbourn/jetblack-metrics
8556be6fffd59d3047d979c3f15c085df62137ba
[ "Apache-2.0" ]
null
null
null
jetblack_metrics/metrics/metric.py
rob-blackbourn/jetblack-metrics
8556be6fffd59d3047d979c3f15c085df62137ba
[ "Apache-2.0" ]
null
null
null
jetblack_metrics/metrics/metric.py
rob-blackbourn/jetblack-metrics
8556be6fffd59d3047d979c3f15c085df62137ba
[ "Apache-2.0" ]
null
null
null
"""The base metric""" from typing import Optional class Metric: """ Metric holding the error status. """ def __init__(self, *_args, **_kwargs) -> None: self.error: Optional[Exception] = None def on_enter(self) -> None: """Called at the start of the context""" def on_exit(sel...
21.055556
50
0.598945
d78104f74f48ed9267e03ba92655d37255eee1e1
3,106
py
Python
pydicer/input/pacs.py
ShuchaoPangUNSW/pydicer
025837d5513d4fd9c52183e93b46bc460947453e
[ "Apache-2.0" ]
1
2022-02-25T01:07:30.000Z
2022-02-25T01:07:30.000Z
pydicer/input/pacs.py
CaiJJ2020/pydicer
025837d5513d4fd9c52183e93b46bc460947453e
[ "Apache-2.0" ]
1
2021-09-20T06:46:38.000Z
2021-09-20T06:46:38.000Z
pydicer/input/pacs.py
CaiJJ2020/pydicer
025837d5513d4fd9c52183e93b46bc460947453e
[ "Apache-2.0" ]
1
2022-02-25T01:07:07.000Z
2022-02-25T01:07:07.000Z
import pydicom from platipy.dicom.communication.connector import DicomConnector from pydicer.input.base import InputBase class DICOMPACSInput(InputBase): def __init__(self, host, port, ae_title=None, working_directory=None): """Class for fetching files from DICOM PACS. Currently only supports C-GET comm...
37.878049
97
0.601417
749eb2187494834efccacb2af01658312acc5113
23,456
py
Python
lib/googlecloudapis/sqladmin/v1beta1/sqladmin_v1beta1_messages.py
bopopescu/google-cloud-sdk
b34e6a18f1e89673508166acce816111c3421e4b
[ "Apache-2.0" ]
null
null
null
lib/googlecloudapis/sqladmin/v1beta1/sqladmin_v1beta1_messages.py
bopopescu/google-cloud-sdk
b34e6a18f1e89673508166acce816111c3421e4b
[ "Apache-2.0" ]
null
null
null
lib/googlecloudapis/sqladmin/v1beta1/sqladmin_v1beta1_messages.py
bopopescu/google-cloud-sdk
b34e6a18f1e89673508166acce816111c3421e4b
[ "Apache-2.0" ]
1
2020-07-24T20:04:47.000Z
2020-07-24T20:04:47.000Z
"""Generated message classes for sqladmin version v1beta1. API for Cloud SQL database instance management. """ from protorpc import message_types from protorpc import messages package = 'sqladmin' class BackupConfiguration(messages.Message): """Database instance backup configuration. Fields: enabled: Whe...
36.479005
86
0.748039
1072fdfcf2f037d7195e628dd0746a2f31b008ba
122
py
Python
ex2_2.py
Mateusfmelo/LivroIntroducaoProgramacaocomPython
ca07e4599cc5ffaad71b8ddba42bab576bb15820
[ "MIT" ]
null
null
null
ex2_2.py
Mateusfmelo/LivroIntroducaoProgramacaocomPython
ca07e4599cc5ffaad71b8ddba42bab576bb15820
[ "MIT" ]
null
null
null
ex2_2.py
Mateusfmelo/LivroIntroducaoProgramacaocomPython
ca07e4599cc5ffaad71b8ddba42bab576bb15820
[ "MIT" ]
null
null
null
#Digite a seguinte expressão no interpretador. #10 % 3 * 10 ** 2 + 1 - 10 * 4 / 2 print(10 % 3 * 10 ** 2 + 1 - 10 * 4 / 2)
40.666667
46
0.540984
e9c8cb1dc09c00e5c75c512c631c39152446590d
10,989
py
Python
Stack-PointerNetworks-KoreanDep.Parsing_with_chunking-/neuronlp2/io/reader.py
kmounlp/Chunk
1a9d6ce94a275a0fcfadf94dc161c4e69776eeee
[ "MIT" ]
6
2020-02-21T04:49:31.000Z
2021-09-22T14:04:32.000Z
Stack-PointerNetworks-KoreanDep.Parsing_with_chunking-/neuronlp2/io/reader.py
kmounlp/Chunk
1a9d6ce94a275a0fcfadf94dc161c4e69776eeee
[ "MIT" ]
1
2019-11-04T21:02:01.000Z
2019-11-12T10:03:41.000Z
Stack-PointerNetworks-KoreanDep.Parsing_with_chunking-/neuronlp2/io/reader.py
kmounlp/Chunk
1a9d6ce94a275a0fcfadf94dc161c4e69776eeee
[ "MIT" ]
1
2020-09-30T12:24:22.000Z
2020-09-30T12:24:22.000Z
__author__ = 'max' from .instance import DependencyInstance, NERInstance from .instance import Sentence from .conllx_data import ROOT, ROOT_POS, ROOT_CHAR, ROOT_TYPE, END, END_POS, END_CHAR, END_TYPE from . import utils class CoNLLXReader(object): def __init__(self, file_path, word_alphabet, char_alphabet, pos_a...
38.557895
147
0.552189
95434430a687eca9748323ddc6669306aa7f2221
1,850
py
Python
detection/detect_image.py
nashebismaily/deep-learning-live-feed-object-detection
7140742a694ca7968f43e5e038273d9d1019b380
[ "MIT" ]
3
2020-05-27T03:40:57.000Z
2021-09-14T08:40:52.000Z
detection/detect_image.py
nashebismaily/deep-learning-live-feed-object-detection
7140742a694ca7968f43e5e038273d9d1019b380
[ "MIT" ]
null
null
null
detection/detect_image.py
nashebismaily/deep-learning-live-feed-object-detection
7140742a694ca7968f43e5e038273d9d1019b380
[ "MIT" ]
3
2020-06-30T02:15:07.000Z
2020-10-27T17:50:49.000Z
import cv2 as cv from configparser import ConfigParser from utils.bounding_box import BoundingBox # Detect objects in an image file def main(): # create parser instance config = ConfigParser() # Read detection.cfg config.read('config/detection.cfg') crop = config.get('blob', 'crop') swap_rb = ...
38.541667
116
0.718919
afdeb928662e6f0254f5570baf63d4cdc5546a3b
1,988
py
Python
trex_game_play.py
ekrrems/T-Rex-Dino-Game-Automation
09913872a6d179109b3d66e5582b670e3172c120
[ "MIT" ]
1
2022-02-23T16:50:11.000Z
2022-02-23T16:50:11.000Z
trex_game_play.py
ekrrems/T-Rex-Dino-Game-Automation
09913872a6d179109b3d66e5582b670e3172c120
[ "MIT" ]
null
null
null
trex_game_play.py
ekrrems/T-Rex-Dino-Game-Automation
09913872a6d179109b3d66e5582b670e3172c120
[ "MIT" ]
null
null
null
from keras.models import model_from_json import numpy as np from PIL import Image import keyboard import time from mss import mss mon = {'top':530,'left':650,'width':250,'height':100} sct = mss() width = 125 height = 50 # model yükle model = model_from_json(open("model.json",'r').read()) model.load_we...
18.754717
101
0.494467
76053518183d8dc398a360cb0936b86f86d3eae1
1,549
py
Python
kamyroll_gui/utils/m3u8.py
KorigamiK/kamyroll-gui
7c151c2d02a53a11d9f0a17e9bdfa400f707a201
[ "MIT" ]
13
2022-01-31T20:55:47.000Z
2022-03-31T11:00:24.000Z
kamyroll_gui/utils/m3u8.py
KorigamiK/kamyroll-gui
7c151c2d02a53a11d9f0a17e9bdfa400f707a201
[ "MIT" ]
2
2022-01-31T23:44:38.000Z
2022-02-03T07:24:12.000Z
kamyroll_gui/utils/m3u8.py
KorigamiK/kamyroll-gui
7c151c2d02a53a11d9f0a17e9bdfa400f707a201
[ "MIT" ]
2
2022-02-01T07:07:01.000Z
2022-02-15T05:22:05.000Z
import re PROGRAM_INFO_REGEX = re.compile(r'[:,]([^=]*)=(?:"([^"]*)"|([^,]*))') def get_resolutions(data, /): audio_program_id = None resolutions = {} data_lines = ( line for line in data.splitlines(keepends=False) if line.startswith("#EXT-X-STREAM-INF:") or line.startswith("#EX...
30.372549
84
0.571336
6167f1ca87c9b50aa9cad07aff6c2546499371b8
1,738
py
Python
019_Remove_Nth_Node_From_End_of_List.py
joshlyman/Josh-LeetCode
cc9e2cc406d2cbd5a90ee579efbcaeffb842c5ed
[ "MIT" ]
null
null
null
019_Remove_Nth_Node_From_End_of_List.py
joshlyman/Josh-LeetCode
cc9e2cc406d2cbd5a90ee579efbcaeffb842c5ed
[ "MIT" ]
null
null
null
019_Remove_Nth_Node_From_End_of_List.py
joshlyman/Josh-LeetCode
cc9e2cc406d2cbd5a90ee579efbcaeffb842c5ed
[ "MIT" ]
null
null
null
# Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = val # self.next = next class Solution: def removeNthFromEnd(self, head: ListNode, n: int) -> ListNode: dummy = ListNode(0) dummy.next = head # This proble...
25.558824
212
0.498849
e08abf3fea54d32ff90d258b3b3f6e5d1295843f
1,099
py
Python
Qcover/backends/backend.py
BAQIS-Quantum/Qcover
ca3776ed73fefa0cfef08042143a8cf842f8dad5
[ "Apache-2.0" ]
38
2021-12-22T03:12:01.000Z
2022-03-17T06:57:10.000Z
Qcover/backends/backend.py
BAQIS-Quantum/Qcover
ca3776ed73fefa0cfef08042143a8cf842f8dad5
[ "Apache-2.0" ]
null
null
null
Qcover/backends/backend.py
BAQIS-Quantum/Qcover
ca3776ed73fefa0cfef08042143a8cf842f8dad5
[ "Apache-2.0" ]
13
2021-12-22T07:32:44.000Z
2022-02-28T06:47:41.000Z
"""Backend interface""" from enum import IntEnum import logging from abc import ABC, abstractmethod import numpy as np logger = logging.getLogger(__name__) # pylint: disable=invalid-name class Backend(ABC): """Base class for backend.""" @abstractmethod def __init__(self, *args): ...
24.422222
76
0.575978
36710bfad9560e595d9c2e2c22306d7d47d7cd30
921
py
Python
src/olympe/doc/examples/log.py
ndessart/olympe
4482e936c92c5520e7af8b6108a5251cf2be0862
[ "BSD-3-Clause" ]
null
null
null
src/olympe/doc/examples/log.py
ndessart/olympe
4482e936c92c5520e7af8b6108a5251cf2be0862
[ "BSD-3-Clause" ]
null
null
null
src/olympe/doc/examples/log.py
ndessart/olympe
4482e936c92c5520e7af8b6108a5251cf2be0862
[ "BSD-3-Clause" ]
1
2020-04-02T13:04:12.000Z
2020-04-02T13:04:12.000Z
# -*- coding: UTF-8 -*- import olympe import time from olympe.messages.ardrone3.Piloting import TakeOff, Landing olympe.log.update_config({ "handlers": { "olympe_log_file": { "class": "logging.FileHandler", "formatter": "file_formatter", "filename": "olympe.log" ...
23.615385
62
0.548317
4ce5033dabd58403bc34983e83af225fd7f7aba6
17,246
py
Python
skbio/stats/ordination/_principal_coordinate_analysis.py
michaelsilverstein/scikit-bio
876efcf688a8f15e89bb70fa835a2f2a84b534c1
[ "BSD-3-Clause" ]
643
2015-01-05T16:37:05.000Z
2022-03-25T07:53:24.000Z
skbio/stats/ordination/_principal_coordinate_analysis.py
michaelsilverstein/scikit-bio
876efcf688a8f15e89bb70fa835a2f2a84b534c1
[ "BSD-3-Clause" ]
938
2015-01-06T21:53:07.000Z
2022-03-31T23:35:05.000Z
skbio/stats/ordination/_principal_coordinate_analysis.py
michaelsilverstein/scikit-bio
876efcf688a8f15e89bb70fa835a2f2a84b534c1
[ "BSD-3-Clause" ]
242
2015-01-07T20:42:47.000Z
2022-03-30T18:22:48.000Z
# ---------------------------------------------------------------------------- # Copyright (c) 2013--, scikit-bio development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. # --------------------------------------------...
43.007481
79
0.666357
ae6ab1e2d0ff73bd6f5829a579d8831bae16ae0d
534
py
Python
env/lib/python3.8/site-packages/plotly/validators/funnelarea/textfont/_size.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
76
2020-07-06T14:44:05.000Z
2022-02-14T15:30:21.000Z
env/lib/python3.8/site-packages/plotly/validators/funnelarea/textfont/_size.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11
2020-08-09T02:30:14.000Z
2022-03-12T00:50:14.000Z
env/lib/python3.8/site-packages/plotly/validators/funnelarea/textfont/_size.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11
2020-07-12T16:18:07.000Z
2022-02-05T16:48:35.000Z
import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): def __init__(self, plotly_name="size", parent_name="funnelarea.textfont", **kwargs): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
35.6
88
0.629213
15d0dd4ff0d3bcc9b5642f596e825793f4161f2e
8,529
py
Python
widgets/mpl2DFigure.py
stylekilla/syncmrtBackend
634024b9458400d69e24879e2de54161d75b89a8
[ "Apache-2.0" ]
null
null
null
widgets/mpl2DFigure.py
stylekilla/syncmrtBackend
634024b9458400d69e24879e2de54161d75b89a8
[ "Apache-2.0" ]
null
null
null
widgets/mpl2DFigure.py
stylekilla/syncmrtBackend
634024b9458400d69e24879e2de54161d75b89a8
[ "Apache-2.0" ]
null
null
null
import matplotlib as mpl mpl.use('Qt5Agg') import matplotlib.pyplot as plt import numpy as np from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas from PyQt5 import QtGui, QtCore from syncmrt.imageGuidance import optimiseFiducials # from skimage import exposure from skimage.external import ...
33.98008
100
0.685895
9577564a636fb8e8d0143957c67074fa5163baa6
10,239
py
Python
src/pyvesync/vesync.py
linuxkd/pyvesync
24c6b2e99664a4ea86c0de41e1fd643f6767424e
[ "MIT" ]
null
null
null
src/pyvesync/vesync.py
linuxkd/pyvesync
24c6b2e99664a4ea86c0de41e1fd643f6767424e
[ "MIT" ]
null
null
null
src/pyvesync/vesync.py
linuxkd/pyvesync
24c6b2e99664a4ea86c0de41e1fd643f6767424e
[ "MIT" ]
null
null
null
"""VeSync API Device Libary.""" import logging import time import re from itertools import chain from pyvesync.helpers import Helpers as helpers from pyvesync.vesyncoutlet import (VeSyncOutlet7A, VeSyncOutlet10A, VeSyncOutlet15A, VeSyncOutdoorPlug) from pyvesync.vesyncswitch import V...
36.437722
92
0.576228
bf27f53ca6de338eea9784775bb7ee66c33adfda
517
py
Python
reservation/migrations/0030_auto_20201215_1841.py
dhdiagram4011/reservation-aoo-project
17845dbd8c7d24294b235190fc00d724445d846f
[ "MIT" ]
1
2020-05-24T07:01:12.000Z
2020-05-24T07:01:12.000Z
reservation/migrations/0030_auto_20201215_1841.py
dhdiagram4011/reservation-aoo-project
17845dbd8c7d24294b235190fc00d724445d846f
[ "MIT" ]
4
2020-05-24T06:51:54.000Z
2021-01-24T05:33:47.000Z
reservation/migrations/0030_auto_20201215_1841.py
dhdiagram4011/reservation-aoo-project
17845dbd8c7d24294b235190fc00d724445d846f
[ "MIT" ]
null
null
null
# Generated by Django 2.1.5 on 2020-12-15 09:41 import datetime from django.db import migrations, models from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('reservation', '0029_auto_20201210_2021'), ] operations = [ migrations.AlterField( ...
24.619048
110
0.649903
b5c09e83ea1885d22ddfeb6e15382a799e12640d
585
py
Python
multitenancy/utils.py
cmalek/django-site-multitenancy
1b943f63c0d6247529805e05dcced68ceffa2a69
[ "Apache-2.0" ]
null
null
null
multitenancy/utils.py
cmalek/django-site-multitenancy
1b943f63c0d6247529805e05dcced68ceffa2a69
[ "Apache-2.0" ]
null
null
null
multitenancy/utils.py
cmalek/django-site-multitenancy
1b943f63c0d6247529805e05dcced68ceffa2a69
[ "Apache-2.0" ]
null
null
null
from django.apps import apps as django_apps from django.http import Http404 from django.shortcuts import get_object_or_404 def get_tenant_specific_object_or_404(klass, *args, **kwargs): """ A site-aware version of django's get_object_or_404 shortcut. Example: get_site_specific_object_or_404(Stuf...
29.25
64
0.705983
8489289f1dc2f046552b0600de1034290547537c
348
py
Python
EvoMusicCompanion/ea/util.py
Jerryhu1/MasterThesis
0e9fe1b9ae7620bbf4c7546d8d408ccea992ec5b
[ "MIT" ]
null
null
null
EvoMusicCompanion/ea/util.py
Jerryhu1/MasterThesis
0e9fe1b9ae7620bbf4c7546d8d408ccea992ec5b
[ "MIT" ]
null
null
null
EvoMusicCompanion/ea/util.py
Jerryhu1/MasterThesis
0e9fe1b9ae7620bbf4c7546d8d408ccea992ec5b
[ "MIT" ]
null
null
null
from music21 import interval, pitch def transpose_piece(piece, key): k = piece.analyze('key') if k.tonicPitchNameWithCase.islower(): return None i = interval.Interval(k.tonic, pitch.Pitch(key)) new_piece = piece.transpose(i) return new_piece def flatten(l): return [item for sublist ...
19.333333
54
0.686782
e04ad2a8f0de773b54d6eace131096e83f5ee0d1
1,680
py
Python
thirdpart/termsandconditions/urls.py
MJochim/seahub
66fcc6772511d43346a2980613576c5fdb4c4945
[ "Apache-2.0" ]
420
2015-01-03T11:34:46.000Z
2022-03-10T07:15:41.000Z
thirdpart/termsandconditions/urls.py
MJochim/seahub
66fcc6772511d43346a2980613576c5fdb4c4945
[ "Apache-2.0" ]
735
2015-01-04T21:22:51.000Z
2022-03-31T09:26:07.000Z
thirdpart/termsandconditions/urls.py
MJochim/seahub
66fcc6772511d43346a2980613576c5fdb4c4945
[ "Apache-2.0" ]
379
2015-01-05T17:08:03.000Z
2022-03-06T00:11:50.000Z
""" Master URL Pattern List for the application. Most of the patterns here should be top-level pass-offs to sub-modules, who will have their own urls.py defining actions within. """ # pylint: disable=W0401, W0614, E1120 from django.conf.urls import url from .views import TermsView, AcceptTermsView, EmailTerm...
40.97561
167
0.669048
a3e26a4c251b07e95be56fbd4cb853c131507d40
1,130
py
Python
wfpm/dependency.py
aferriz/wfpm
ce628f5a9f06ac8d20836090e03830215b0d8361
[ "Apache-2.0" ]
10
2021-01-23T22:26:44.000Z
2021-06-15T14:11:39.000Z
wfpm/dependency.py
aferriz/wfpm
ce628f5a9f06ac8d20836090e03830215b0d8361
[ "Apache-2.0" ]
21
2021-04-01T17:06:50.000Z
2021-10-19T21:11:40.000Z
wfpm/dependency.py
aferriz/wfpm
ce628f5a9f06ac8d20836090e03830215b0d8361
[ "Apache-2.0" ]
2
2021-02-05T07:17:21.000Z
2021-05-12T14:49:19.000Z
# -*- coding: utf-8 -*- """ Copyright (c) 2021, Ontario Institute for Cancer Research (OICR). 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...
32.285714
86
0.69646
2e066a8b41b863825c0ae621af11ae615ece6ae4
2,584
py
Python
ros/src/twist_controller/twist_controller.py
shalaka7/Autonomous-Car-Driving-Project
7fd5bcb97a83c1f5b5fe9fb9b516454be4031694
[ "MIT" ]
null
null
null
ros/src/twist_controller/twist_controller.py
shalaka7/Autonomous-Car-Driving-Project
7fd5bcb97a83c1f5b5fe9fb9b516454be4031694
[ "MIT" ]
11
2020-01-28T22:49:54.000Z
2022-03-11T23:52:08.000Z
ros/src/twist_controller/twist_controller.py
shalaka7/Autonomous-Car-Driving-Project
7fd5bcb97a83c1f5b5fe9fb9b516454be4031694
[ "MIT" ]
null
null
null
import rospy from yaw_controller import YawController from pid import PID from lowpass import LowPassFilter GAS_DENSITY = 2.858 LOGGING_THROTTLE_FACTOR = 1 # Only log after this many seconds MAX_BRAKE = 700.0 class Controller(object): def __init__(self, vehicle_mass, fuel_capacity, brake_deadband, decel_limit,...
34.918919
133
0.649381
d03193684b76a67bedf49636a9038743a6f61589
25,867
py
Python
contrib/PyTorch/Official/cv/image_object_detection/RetinaNet/detectron2/modeling/meta_arch/retinanet.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
12
2020-12-13T08:34:24.000Z
2022-03-20T15:17:17.000Z
contrib/PyTorch/Official/cv/image_object_detection/RetinaNet/detectron2/modeling/meta_arch/retinanet.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
1
2022-01-20T03:11:05.000Z
2022-01-20T06:53:39.000Z
contrib/PyTorch/Official/cv/image_object_detection/RetinaNet/detectron2/modeling/meta_arch/retinanet.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
2
2021-07-10T12:40:46.000Z
2021-12-17T07:55:15.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved # Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache....
45.222028
131
0.627208
bf7985878fd56996f1088cfd8e60591b3d3c4d30
234
py
Python
contents/urls.py
ubia-lab/SMIT-AR-CMS-server
f09b8131e26aff1049d974f1c74ed0a78a308f73
[ "MIT" ]
1
2020-05-15T11:04:58.000Z
2020-05-15T11:04:58.000Z
contents/urls.py
ubia-lab/SMIT-AR-CMS-server
f09b8131e26aff1049d974f1c74ed0a78a308f73
[ "MIT" ]
10
2020-06-06T01:06:27.000Z
2022-02-10T11:16:02.000Z
contents/urls.py
yeojin-dev/SMIT-AR-CMS-server
f09b8131e26aff1049d974f1c74ed0a78a308f73
[ "MIT" ]
null
null
null
from django.urls import path from .views import DownloadView, MarkerListView app_name = 'contents' urlpatterns = [ path('', MarkerListView.as_view(), name='markers'), path('<str:name>', DownloadView.as_view(), name='download') ]
21.272727
60
0.726496
34245e81735a1a64e4775ff90c7a05f4047c80f1
329
py
Python
c_source_code/dezing/setup.py
malte-storm/Savu
16291e8a22464c50c511af01fbc648860c1236e6
[ "Apache-2.0" ]
1
2021-04-18T09:30:54.000Z
2021-04-18T09:30:54.000Z
c_source_code/dezing/setup.py
malte-storm/Savu
16291e8a22464c50c511af01fbc648860c1236e6
[ "Apache-2.0" ]
1
2019-07-30T12:31:51.000Z
2019-07-30T12:31:51.000Z
c_source_code/dezing/setup.py
malte-storm/Savu
16291e8a22464c50c511af01fbc648860c1236e6
[ "Apache-2.0" ]
1
2021-05-20T16:31:29.000Z
2021-05-20T16:31:29.000Z
from distutils.core import setup from distutils.extension import Extension from Cython.Distutils import build_ext #$Id: setup.py 465 2016-02-16 11:02:36Z kny48981 $ setup( cmdclass={'build_ext':build_ext}, ext_modules=[ Extension("dezing",["dezing.pyx"], libraries=["dezing"]) ]...
27.416667
50
0.653495
fccc827b0a41dd6ff280c61c4ad0ba72fef62e19
2,694
py
Python
Python/klampt/math/vectorfield.py
hpbader42/Klampt
89faaef942c0c6fca579a3770314c6610e2ac772
[ "BSD-3-Clause" ]
null
null
null
Python/klampt/math/vectorfield.py
hpbader42/Klampt
89faaef942c0c6fca579a3770314c6610e2ac772
[ "BSD-3-Clause" ]
null
null
null
Python/klampt/math/vectorfield.py
hpbader42/Klampt
89faaef942c0c6fca579a3770314c6610e2ac772
[ "BSD-3-Clause" ]
1
2019-07-01T08:48:32.000Z
2019-07-01T08:48:32.000Z
class VectorFieldFunction: """A callback class used with the rootfind module to define a vector field f(x)=0 to be solved for during Newton-Raphson root finding. The output is dimension m and the input is dimension n. At the minimum, your subclass should fill out the m, n attributes, and override t...
29.933333
86
0.549369
a3347b48ceca79713c60b40d90572f04b741540b
3,156
py
Python
tests/examples/partial_gene_match.py
evhub/cpyparsing
71d04dd1bd2828430a78e4909ffd0509b38585a6
[ "MIT" ]
20
2017-07-05T05:48:03.000Z
2021-06-14T20:04:13.000Z
tests/examples/partial_gene_match.py
evhub/cpyparsing
71d04dd1bd2828430a78e4909ffd0509b38585a6
[ "MIT" ]
5
2018-12-31T14:17:23.000Z
2021-12-09T03:54:08.000Z
tests/examples/partial_gene_match.py
evhub/cpyparsing
71d04dd1bd2828430a78e4909ffd0509b38585a6
[ "MIT" ]
3
2019-09-24T17:47:06.000Z
2021-06-14T18:07:23.000Z
# parital_gene_match.py # # Example showing how to create a customized pyparsing Token, in this case, # one that is very much like Literal, but which tolerates up to 'n' character # mismatches from pyparsing import * import urllib.request, urllib.parse, urllib.error # read in a bunch of genomic data datafile = url...
35.460674
133
0.601077
9011bd7ef358e032873815d893c4d8cf74e580e8
2,712
py
Python
splitwork/splitwork.py
rafacarrascosa/splitwork
819e8f27f7ebc395568c6680526af224eb7d2333
[ "MIT" ]
1
2021-03-05T19:03:06.000Z
2021-03-05T19:03:06.000Z
splitwork/splitwork.py
rafacarrascosa/splitwork
819e8f27f7ebc395568c6680526af224eb7d2333
[ "MIT" ]
null
null
null
splitwork/splitwork.py
rafacarrascosa/splitwork
819e8f27f7ebc395568c6680526af224eb7d2333
[ "MIT" ]
null
null
null
import os import sys import _split_merge def get_rw_pair(): fin, fout = os.pipe() os.set_inheritable(fin, True) os.set_inheritable(fout, True) return fin, fout def fork_with_piped_io(f, child_close): fin_r, fin_w = get_rw_pair() fout_r, fout_w = get_rw_pair() pid = os.fork() if pid =...
25.111111
81
0.574853
c669ed0019679a083dd99b8908c3f086376125a7
9,409
py
Python
buglab/representations/coderelations/dataflow.py
microsoft/neurips21-self-supervised-bug-detection-and-repair
4e51184a63aecd19174ee40fc6433260ab73d56e
[ "MIT" ]
47
2021-10-19T16:15:41.000Z
2022-03-21T11:51:43.000Z
buglab/representations/coderelations/dataflow.py
microsoft/neurips21-self-supervised-bug-detection-and-repair
4e51184a63aecd19174ee40fc6433260ab73d56e
[ "MIT" ]
2
2022-01-10T09:41:44.000Z
2022-03-09T12:54:55.000Z
buglab/representations/coderelations/dataflow.py
microsoft/neurips21-self-supervised-bug-detection-and-repair
4e51184a63aecd19174ee40fc6433260ab73d56e
[ "MIT" ]
11
2021-11-30T13:25:03.000Z
2022-03-16T11:38:08.000Z
from collections import defaultdict from copy import copy from itertools import chain from typing import DefaultDict, FrozenSet import libcst as cst from libcst.metadata import QualifiedName, QualifiedNameProvider, QualifiedNameSource from buglab.representations.codereprs import PythonCodeRelations class DataFlow(c...
39.533613
119
0.687852
0115c99f687fd5e7080209e9f00ff55f2b3a3a98
11,408
py
Python
modules/dbnd/src/dbnd/_core/tracking/metrics.py
databand-ai/dbnd
0370409e38773be8812088622953a3aa306eb564
[ "Apache-2.0" ]
224
2020-01-02T10:46:37.000Z
2022-03-02T13:54:08.000Z
modules/dbnd/src/dbnd/_core/tracking/metrics.py
databand-ai/dbnd
0370409e38773be8812088622953a3aa306eb564
[ "Apache-2.0" ]
16
2020-03-11T09:37:58.000Z
2022-01-26T10:22:08.000Z
modules/dbnd/src/dbnd/_core/tracking/metrics.py
databand-ai/dbnd
0370409e38773be8812088622953a3aa306eb564
[ "Apache-2.0" ]
24
2020-03-24T13:53:50.000Z
2022-03-22T11:55:18.000Z
import logging import time import typing import attr from dbnd._core.constants import ( DbndDatasetOperationType, DbndTargetOperationStatus, DbndTargetOperationType, ) from dbnd._core.plugin.dbnd_plugins import is_plugin_enabled from dbnd._core.task_run.task_run_tracker import TaskRunTracker from dbnd._co...
32.876081
119
0.667426
b195181064d4e36e1abfce56f6b6253c8e520c5c
5,042
py
Python
astropy/coordinates/builtin_frames/altaz.py
jairideout/astropy
2534a2dd747da3d50644812ce4faab6d909e7f36
[ "BSD-3-Clause" ]
null
null
null
astropy/coordinates/builtin_frames/altaz.py
jairideout/astropy
2534a2dd747da3d50644812ce4faab6d909e7f36
[ "BSD-3-Clause" ]
1
2018-11-14T14:18:55.000Z
2020-01-21T10:36:05.000Z
astropy/coordinates/builtin_frames/altaz.py
jairideout/astropy
2534a2dd747da3d50644812ce4faab6d909e7f36
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Licensed under a 3-clause BSD style license - see LICENSE.rst import numpy as np from ... import units as u from ...utils.decorators import format_doc from .. import representation as r from ..baseframe import BaseCoordinateFrame, RepresentationMapping, base_doc from ..attributes import (Att...
40.66129
83
0.691194
244d23c9dfe31a6548a8d640807a8c09029a745b
1,611
py
Python
Python/minimum-number-of-days-to-disconnect-island.py
sm2774us/leetcode_interview_prep_2021
33b41bea66c266b733372d9a8b9d2965cd88bf8c
[ "Fair" ]
null
null
null
Python/minimum-number-of-days-to-disconnect-island.py
sm2774us/leetcode_interview_prep_2021
33b41bea66c266b733372d9a8b9d2965cd88bf8c
[ "Fair" ]
null
null
null
Python/minimum-number-of-days-to-disconnect-island.py
sm2774us/leetcode_interview_prep_2021
33b41bea66c266b733372d9a8b9d2965cd88bf8c
[ "Fair" ]
null
null
null
# Time: O(m^2 * n^2) # Space: O(m * n) class Solution(object): def minDays(self, grid): """ :type grid: List[List[int]] :rtype: int """ directions = [(0, 1), (1, 0), (0, -1), (-1, 0)] def floodfill(grid, i, j, lookup): stk = [(i, j)] loo...
31.588235
65
0.369336
4d88b7061a8707c151f7496bc7736b39674a56f5
8,739
py
Python
cooperative_action_control/Multi-agents_cooperation/policy/vdn.py
gingkg/man-machine_counteraction
ca61aeee046c1fcf11adba4f7c782a5f71d7de2e
[ "MIT" ]
null
null
null
cooperative_action_control/Multi-agents_cooperation/policy/vdn.py
gingkg/man-machine_counteraction
ca61aeee046c1fcf11adba4f7c782a5f71d7de2e
[ "MIT" ]
null
null
null
cooperative_action_control/Multi-agents_cooperation/policy/vdn.py
gingkg/man-machine_counteraction
ca61aeee046c1fcf11adba4f7c782a5f71d7de2e
[ "MIT" ]
null
null
null
#! /user/bin/env python # -*- coding: utf-8 -*- """ @author: gingkg @contact: sby2015666@163.com @software: PyCharm @project: man-machine_counteraction @file: vdn.py @date: 2021-07-01 15:42 @desc: """ import torch import os import sys sys.path.append("..") from network.base_net import RNN from network.vdn_net import...
41.813397
119
0.637029
50bb11fff146818f724d2a106dfb7c463f51cbc3
493
py
Python
http_stubs/migrations/0006_httpstub_is_logging_enabled.py
PetrS12/Kesha
f960ed4d26cba89ced2d2e15e712781f3947c5c4
[ "Apache-2.0" ]
15
2020-07-14T08:41:36.000Z
2022-01-21T06:38:28.000Z
http_stubs/migrations/0006_httpstub_is_logging_enabled.py
PetrS12/Kesha
f960ed4d26cba89ced2d2e15e712781f3947c5c4
[ "Apache-2.0" ]
163
2021-05-23T00:07:29.000Z
2022-03-29T04:24:14.000Z
http_stubs/migrations/0006_httpstub_is_logging_enabled.py
PetrS12/Kesha
f960ed4d26cba89ced2d2e15e712781f3947c5c4
[ "Apache-2.0" ]
2
2020-07-17T12:57:11.000Z
2020-10-11T15:03:36.000Z
# Generated by Django 3.1.4 on 2021-03-16 22:37 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('http_stubs', '0005_httpstub_request_script_logentry_result_script'), ] operations = [ migrations.AddField( model_name='httpstub'...
25.947368
118
0.659229
2b6c12e0d80608380154d2cc733e9b82fbc8ea81
99
py
Python
kite-exp/ml/web-content/sources/__main__.py
kiteco/kiteco-public
74aaf5b9b0592153b92f7ed982d65e15eea885e3
[ "BSD-3-Clause" ]
17
2022-01-10T11:01:50.000Z
2022-03-25T03:21:08.000Z
kite-exp/ml/web-content/sources/__main__.py
kiteco/kiteco-public
74aaf5b9b0592153b92f7ed982d65e15eea885e3
[ "BSD-3-Clause" ]
1
2022-01-13T14:28:47.000Z
2022-01-13T14:28:47.000Z
kite-exp/ml/web-content/sources/__main__.py
kiteco/kiteco-public
74aaf5b9b0592153b92f7ed982d65e15eea885e3
[ "BSD-3-Clause" ]
7
2022-01-07T03:58:10.000Z
2022-03-24T07:38:20.000Z
from sources.main import generate_webviewer if __name__ == "__main__": generate_webviewer()
14.142857
43
0.757576
1c39a128187cb933b60c03ad0668631ab0287fb1
16,795
py
Python
cspace/main/ui/Ui_MainWindow.py
jmcvetta/cspace
13d6be86dfa3417ac5511b1b2c15d1050fe3701d
[ "RSA-MD", "TCP-wrappers" ]
28
2015-04-24T12:04:08.000Z
2022-01-07T15:13:10.000Z
cspace/main/ui/Ui_MainWindow.py
Magnus167/cspace
13d6be86dfa3417ac5511b1b2c15d1050fe3701d
[ "RSA-MD", "TCP-wrappers" ]
1
2015-12-09T10:21:59.000Z
2015-12-16T05:38:55.000Z
cspace/main/ui/Ui_MainWindow.py
Magnus167/cspace
13d6be86dfa3417ac5511b1b2c15d1050fe3701d
[ "RSA-MD", "TCP-wrappers" ]
18
2015-01-01T02:16:49.000Z
2021-08-12T04:14:57.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'MainWindow.ui' # # Created: Mon Oct 09 13:21:16 2006 # by: PyQt4 UI code generator 4.0.1 # # WARNING! All changes made in this file will be lost! import sys from PyQt4 import QtCore, QtGui class Ui_MainWindow(object): ...
55.612583
721
0.718488
c079f7f3abbe468477a50bacf382986fcd170314
28
py
Python
backend/book/admin/__init__.py
Mackrage/worm_rage_bot
7211c0c89ad12714eccdc98c6a84e7309108aabc
[ "MIT" ]
5
2021-12-25T21:03:59.000Z
2022-01-21T20:39:15.000Z
backend/book/admin/__init__.py
MaCkRage/worm_rage_bot
7211c0c89ad12714eccdc98c6a84e7309108aabc
[ "MIT" ]
null
null
null
backend/book/admin/__init__.py
MaCkRage/worm_rage_bot
7211c0c89ad12714eccdc98c6a84e7309108aabc
[ "MIT" ]
null
null
null
from .book import BookAdmin
14
27
0.821429