hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
a761022844f7e41562d983142585602cd2c64882
207
py
Python
process_2.py
renansantosmendes/benchmark_tests
106f842b304a7fc9fa348ea0b6d50f448e46538b
[ "Apache-2.0" ]
null
null
null
process_2.py
renansantosmendes/benchmark_tests
106f842b304a7fc9fa348ea0b6d50f448e46538b
[ "Apache-2.0" ]
null
null
null
process_2.py
renansantosmendes/benchmark_tests
106f842b304a7fc9fa348ea0b6d50f448e46538b
[ "Apache-2.0" ]
null
null
null
from datetime import datetime print('Process 2') print('start:', datetime.now().strftime("%d/%m/%Y %H:%M:%S")) for _ in range(100000000): pass print('end:', datetime.now().strftime("%d/%m/%Y %H:%M:%S"))
29.571429
61
0.63285
6e27cf1290f844f27aaf54398c3595aa12f64f0d
9,082
py
Python
trimesh/scene/lighting.py
LinJiarui/trimesh
5f925bbab447e733d6f1ebf0956b202d18271ee1
[ "MIT" ]
1
2020-05-22T13:56:05.000Z
2020-05-22T13:56:05.000Z
trimesh/scene/lighting.py
LinJiarui/trimesh
5f925bbab447e733d6f1ebf0956b202d18271ee1
[ "MIT" ]
null
null
null
trimesh/scene/lighting.py
LinJiarui/trimesh
5f925bbab447e733d6f1ebf0956b202d18271ee1
[ "MIT" ]
null
null
null
""" lighting.py -------------- Hold basic information about lights. Forked from the light model in `pyrender`: https://github.com/mmatl/pyrender """ import abc import sys import numpy as np from .. import util from .. import visual from .. import transformations if sys.version_info >= (3, 4): ABC = abc.ABC els...
32.205674
91
0.62233
f7c83712130bfd4becefa3c99a09f0c9e7be5c28
20,999
py
Python
litex/soc/cores/cpu/vexriscv_smp/core.py
JosephBushagour/litex
2b49430f2c53c4a8caa66b678af4660127b546e4
[ "ADSL" ]
null
null
null
litex/soc/cores/cpu/vexriscv_smp/core.py
JosephBushagour/litex
2b49430f2c53c4a8caa66b678af4660127b546e4
[ "ADSL" ]
null
null
null
litex/soc/cores/cpu/vexriscv_smp/core.py
JosephBushagour/litex
2b49430f2c53c4a8caa66b678af4660127b546e4
[ "ADSL" ]
null
null
null
# # This file is part of LiteX. # # Copyright (c) 2020 Florent Kermarrec <florent@enjoy-digital.fr> # Copyright (c) 2020 Dolu1990 <charles.papon.90@gmail.com> # SPDX-License-Identifier: BSD-2-Clause import os from os import path from migen import * from litex import get_data_mod from litex.soc.interconnect import w...
45.15914
180
0.58879
5e9d9f9f17099a123562474edb9fb0e2f24798ae
2,099
py
Python
tests/data_gen.py
Naillik1/python-schema-registry-client
2a69fe619cb2409eed1ac82d79048c0f68818b29
[ "MIT" ]
null
null
null
tests/data_gen.py
Naillik1/python-schema-registry-client
2a69fe619cb2409eed1ac82d79048c0f68818b29
[ "MIT" ]
null
null
null
tests/data_gen.py
Naillik1/python-schema-registry-client
2a69fe619cb2409eed1ac82d79048c0f68818b29
[ "MIT" ]
null
null
null
import datetime import os import os.path import faker fake = faker.Faker() epoch = datetime.datetime.utcfromtimestamp(0) AVRO_SCHEMAS_DIR = os.path.join(os.path.dirname(os.path.realpath(__file__)), "avro_schemas") def unix_time_millis(dt): return (dt - epoch).total_seconds() * 1000.0 def get_schema_path(fnam...
29.985714
116
0.710815
74708b81ab15b8e15762e2e62b27fa3334060928
40,706
py
Python
sc_utils/sc.py
manuflores/time_machine
a8c3a7292ad4d8a7707173151eee35d9d79d5170
[ "MIT" ]
null
null
null
sc_utils/sc.py
manuflores/time_machine
a8c3a7292ad4d8a7707173151eee35d9d79d5170
[ "MIT" ]
null
null
null
sc_utils/sc.py
manuflores/time_machine
a8c3a7292ad4d8a7707173151eee35d9d79d5170
[ "MIT" ]
null
null
null
import scipy.io as sio import scipy.stats as st #import scanpy as sc import numpy as np #import numba import pandas as pd import anndata as ad from scipy import sparse #from psutil import virtual_memory import time import os import seaborn as sns import toolz as tz import h5py import tqdm from sklearn.utils import ...
26.211204
101
0.662163
745b201f2d653134665cbef21d2a264d92288e7f
2,265
py
Python
kucoin/exceptions.py
nielskool/python-kucoin
a511b2b2dd157d23d61b3df6af004ddd8b30c45c
[ "MIT" ]
null
null
null
kucoin/exceptions.py
nielskool/python-kucoin
a511b2b2dd157d23d61b3df6af004ddd8b30c45c
[ "MIT" ]
null
null
null
kucoin/exceptions.py
nielskool/python-kucoin
a511b2b2dd157d23d61b3df6af004ddd8b30c45c
[ "MIT" ]
null
null
null
# coding=utf-8 import json # System error codes # Code Meaning # 403000 No Auth -- The requested is forbidden for current API key. # 404000 Url Not Found -- The request resource could not be found # 400100 Parameter Error -- You tried to access the resource with invalid parameters # 411100 User are frozen -- User are...
30.608108
87
0.617219
d853120e4fa42fef3c8bf617cb14b911a05406f8
4,258
py
Python
btclib/electrum.py
giubby84/btclib
0dd7e4e8ca43451a03b577fd7ec95715a1a21711
[ "MIT" ]
null
null
null
btclib/electrum.py
giubby84/btclib
0dd7e4e8ca43451a03b577fd7ec95715a1a21711
[ "MIT" ]
null
null
null
btclib/electrum.py
giubby84/btclib
0dd7e4e8ca43451a03b577fd7ec95715a1a21711
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (C) 2017-2020 The btclib developers # # This file is part of btclib. It is subject to the license terms in the # LICENSE file found in the top-level directory of this distribution. # # No part of btclib including this file, may be copied, modified, propagated, # or distributed except...
33.007752
82
0.701738
3f2fb14e8e893774b003e34adcac03b390a8ca48
4,881
py
Python
modules/face_detection/lib/common/face.py
TestLEM/MagicMirror
45bbe9de71e65e68c65684200c07138777e3aed4
[ "MIT" ]
null
null
null
modules/face_detection/lib/common/face.py
TestLEM/MagicMirror
45bbe9de71e65e68c65684200c07138777e3aed4
[ "MIT" ]
1
2018-05-14T06:45:31.000Z
2018-05-14T06:45:31.000Z
modules/face_detection/lib/common/face.py
TestLEM/MagicMirror
45bbe9de71e65e68c65684200c07138777e3aed4
[ "MIT" ]
null
null
null
# coding: utf8 """Face Detection - MagicMirror Module The MIT License (MIT) Based on work by Paul-Vincent Roll (Copyright 2016) (MIT License) Reference link - https://github.com/normyx/MMM-Facial-Recognition-OCV3 """ import cv2 import sys class FaceDetection: 'Face Detection Class' def __init__(self, ...
42.077586
97
0.563204
db3569b6a400d6d819528d299bef52118e849072
1,548
py
Python
pypy/module/pypyjit/test_pypy_c/test_thread.py
kantai/passe-pypy-taint-tracking
b60a3663f8fe89892dc182c8497aab97e2e75d69
[ "MIT" ]
2
2016-07-06T23:30:20.000Z
2017-05-30T15:59:31.000Z
pypy/module/pypyjit/test_pypy_c/test_thread.py
kantai/passe-pypy-taint-tracking
b60a3663f8fe89892dc182c8497aab97e2e75d69
[ "MIT" ]
null
null
null
pypy/module/pypyjit/test_pypy_c/test_thread.py
kantai/passe-pypy-taint-tracking
b60a3663f8fe89892dc182c8497aab97e2e75d69
[ "MIT" ]
2
2020-07-09T08:14:22.000Z
2021-01-15T18:01:25.000Z
from pypy.module.pypyjit.test_pypy_c.test_00_model import BaseTestPyPyC class TestThread(BaseTestPyPyC): def test_simple(self): def main(n): import thread def f(): i = 0 while i < n: i += 1 done.release() ...
30.352941
83
0.46447
b73bf83dff0169b1857156ab42c8351a1397a486
4,652
py
Python
skhep/math/kinematics.py
AdvaitDhingra/scikit-hep
1e08901447c3e42e4c4b703ea6c09e3bd0db25af
[ "BSD-3-Clause" ]
150
2016-11-14T14:09:29.000Z
2022-03-18T16:37:03.000Z
skhep/math/kinematics.py
AdvaitDhingra/scikit-hep
1e08901447c3e42e4c4b703ea6c09e3bd0db25af
[ "BSD-3-Clause" ]
123
2017-01-30T10:03:04.000Z
2022-03-31T06:26:09.000Z
skhep/math/kinematics.py
AdvaitDhingra/scikit-hep
1e08901447c3e42e4c4b703ea6c09e3bd0db25af
[ "BSD-3-Clause" ]
41
2017-01-11T11:42:56.000Z
2021-12-06T22:38:32.000Z
# -*- coding: utf-8 -*- # Licensed under a 3-clause BSD style license, see LICENSE. """ Mathematical functions relevant to kinematics ============================================= """ # ----------------------------------------------------------------------------- # Import statements # ---------------------------------...
31.221477
214
0.577171
23fc7d0ab823421072cdd9518fa3a12ec0b8c149
715
py
Python
mysite/client/views.py
willem-vanheemstrasystems/django-frontend
01d9918577fb864b0d1c12d459328b6aac041002
[ "MIT" ]
null
null
null
mysite/client/views.py
willem-vanheemstrasystems/django-frontend
01d9918577fb864b0d1c12d459328b6aac041002
[ "MIT" ]
null
null
null
mysite/client/views.py
willem-vanheemstrasystems/django-frontend
01d9918577fb864b0d1c12d459328b6aac041002
[ "MIT" ]
null
null
null
from django.http import HttpResponse from django.shortcuts import render # Create your views here. # All Django wants returned is an HttpResponse. Or an exception. def index(request): # The code below loads the template called client/index.html # and passes it a context. # The context is a dictionary map...
42.058824
94
0.744056
a437761b3c790f80198068cdb15c0f56b2956207
2,268
py
Python
tempest/exceptions.py
mail2nsrajesh/tempest
1a3b3dc50b418d3a15839830d7d1ff88c8c76cff
[ "Apache-2.0" ]
null
null
null
tempest/exceptions.py
mail2nsrajesh/tempest
1a3b3dc50b418d3a15839830d7d1ff88c8c76cff
[ "Apache-2.0" ]
null
null
null
tempest/exceptions.py
mail2nsrajesh/tempest
1a3b3dc50b418d3a15839830d7d1ff88c8c76cff
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 OpenStack Foundation # 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 requ...
35.4375
79
0.746473
39bc8903a08fd25a5772e278aa2856177dd94f0e
632
py
Python
src/odontology/person/migrations/0026_auto_20160228_0216.py
nanomolina/JP
248a47bced4dac850f85d28968ddf279cd123400
[ "Apache-2.0" ]
2
2016-06-23T15:35:29.000Z
2022-01-11T00:55:21.000Z
src/odontology/person/migrations/0026_auto_20160228_0216.py
nanomolina/JP
248a47bced4dac850f85d28968ddf279cd123400
[ "Apache-2.0" ]
27
2016-06-24T12:28:01.000Z
2022-01-13T00:37:25.000Z
src/odontology/person/migrations/0026_auto_20160228_0216.py
nanomolina/JP
248a47bced4dac850f85d28968ddf279cd123400
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.2 on 2016-02-28 05:16 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('person', '0025_auto_20160227_1505'), ] operations = [ migrations.AlterField(...
24.307692
74
0.599684
c6e41d2a0c3a4e9209c96ede09d530a7387f2061
8,693
py
Python
atom/nucleus/python/nucleus_api/models/page_audit_log.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
atom/nucleus/python/nucleus_api/models/page_audit_log.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
atom/nucleus/python/nucleus_api/models/page_audit_log.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Hydrogen Nucleus API The Hydrogen Nucleus API # noqa: E501 OpenAPI spec version: 1.9.5 Contact: info@hydrogenplatform.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from nucleus_api.configuration i...
26.183735
194
0.573105
c705c1a6771d1e6e244cdaf8366f687a2223de24
2,677
py
Python
src/compas_rhino/conduits/labels.py
XingxinHE/compas
d2901dbbacdaf4694e5adae78ba8f093f10532bf
[ "MIT" ]
null
null
null
src/compas_rhino/conduits/labels.py
XingxinHE/compas
d2901dbbacdaf4694e5adae78ba8f093f10532bf
[ "MIT" ]
null
null
null
src/compas_rhino/conduits/labels.py
XingxinHE/compas
d2901dbbacdaf4694e5adae78ba8f093f10532bf
[ "MIT" ]
null
null
null
from __future__ import print_function from __future__ import absolute_import from __future__ import division from System.Drawing.Color import FromArgb from Rhino.Geometry import Point3d from compas_rhino.conduits.base import BaseConduit from compas.utilities import color_to_rgb __all__ = ['LabelsConduit'] class L...
31.869048
116
0.598058
ae808d6d8dae482f65da07c13b4c6de824a23c55
38,361
py
Python
distributed/comm/tests/test_comms.py
aiudirog/distributed
d956ef6b7ae09634fe9307e9da1e2de1fc487e8d
[ "BSD-3-Clause" ]
null
null
null
distributed/comm/tests/test_comms.py
aiudirog/distributed
d956ef6b7ae09634fe9307e9da1e2de1fc487e8d
[ "BSD-3-Clause" ]
null
null
null
distributed/comm/tests/test_comms.py
aiudirog/distributed
d956ef6b7ae09634fe9307e9da1e2de1fc487e8d
[ "BSD-3-Clause" ]
null
null
null
import asyncio import os import sys import threading import types import warnings from functools import partial import pkg_resources import pytest from tornado import ioloop from tornado.concurrent import Future import dask import distributed from distributed.comm import ( CommClosedError, asyncio_tcp, c...
29.171863
134
0.649748
c4d0693a17d9d19cab8a1932f2dcca210fbfb618
3,343
py
Python
activelo/examples/suggestions.py
jzf2101/boardlaw
29126c2a6ab7f11154fb242c303d3b11f1566201
[ "MIT" ]
20
2021-01-20T17:15:18.000Z
2022-01-25T21:51:29.000Z
activelo/examples/suggestions.py
jzf2101/boardlaw
29126c2a6ab7f11154fb242c303d3b11f1566201
[ "MIT" ]
17
2021-01-21T08:14:11.000Z
2021-06-09T22:27:00.000Z
activelo/examples/suggestions.py
jzf2101/boardlaw
29126c2a6ab7f11154fb242c303d3b11f1566201
[ "MIT" ]
3
2021-02-15T05:18:41.000Z
2021-06-30T14:11:26.000Z
import matplotlib.pyplot as plt import numpy as np from rebar import arrdict import torch import torch.distributions import activelo def winrate(black, white): return 1/(1 + np.exp(-(black - white))) def residual_vs_mean(Σ): return np.diag(Σ - np.outer(Σ.mean(0), Σ.mean(0))/Σ.mean()) def resid_var(ranks, tru...
29.584071
105
0.62429
766d98dda5296612a02e04f8a5aa3003c52d46c9
2,312
py
Python
examples/tensorflow/mnist/run_preprocess_mnist.py
graykode/cella
b17859976becd1fca30a0ea897928a08157d22a2
[ "Apache-2.0" ]
71
2020-07-16T10:04:40.000Z
2022-02-11T13:26:55.000Z
examples/tensorflow/mnist/run_preprocess_mnist.py
graykode/cella
b17859976becd1fca30a0ea897928a08157d22a2
[ "Apache-2.0" ]
16
2020-08-10T19:24:16.000Z
2022-02-10T02:22:56.000Z
examples/tensorflow/mnist/run_preprocess_mnist.py
graykode/cella
b17859976becd1fca30a0ea897928a08157d22a2
[ "Apache-2.0" ]
5
2020-08-12T02:43:16.000Z
2021-10-03T18:46:13.000Z
# Copyright 2020-present Tae Hwan Jung # # 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...
31.671233
79
0.688581
668a999d03e6fa16982a5c337bd77549cf9ba245
5,902
py
Python
bot/pilot.py
abbenson/ballbot
44ea6abba026ec47c2dcd79450186d9ea43a9e7d
[ "BSD-2-Clause" ]
null
null
null
bot/pilot.py
abbenson/ballbot
44ea6abba026ec47c2dcd79450186d9ea43a9e7d
[ "BSD-2-Clause" ]
null
null
null
bot/pilot.py
abbenson/ballbot
44ea6abba026ec47c2dcd79450186d9ea43a9e7d
[ "BSD-2-Clause" ]
null
null
null
"""Autonomous control client that solves IEEE Hardware Competition 2014. UPDATE (Vijay - 9/27/15): Pilot does not work since the last year's code has been erased. This file is here for reference and is expected to be modified for IEEE Hardware Competition 2016. Please do not instantiate Pilot before it is fixed. """ ...
31.393617
75
0.569976
345993dd20ab0cd74debf64aa7eec8a67522278e
20,454
py
Python
hyperband/search.py
niyatham/scikit-hyperband
a5c694c9bb770c8f9a2f3104c0e4326f504594b1
[ "BSD-3-Clause" ]
null
null
null
hyperband/search.py
niyatham/scikit-hyperband
a5c694c9bb770c8f9a2f3104c0e4326f504594b1
[ "BSD-3-Clause" ]
null
null
null
hyperband/search.py
niyatham/scikit-hyperband
a5c694c9bb770c8f9a2f3104c0e4326f504594b1
[ "BSD-3-Clause" ]
null
null
null
""" ========= Hyperband ========= This module contains a scikit-learn compatible implementation of the hyperband algorithm[^1]. Compared to the civismlext implementation, this supports multimetric scoring, and the option to turn the last round of hyperband (the randomized search round) off. References ---------- .....
43.892704
106
0.598123
5576aabf6585e0ecec0ca80bbe230b776039b556
6,763
py
Python
nitro-python/nssrc/com/citrix/netscaler/nitro/resource/config/dns/dnsnsecrec.py
culbertm/NSttyPython
ff9f6aedae3fb8495342cd0fc4247c819cf47397
[ "Apache-2.0" ]
null
null
null
nitro-python/nssrc/com/citrix/netscaler/nitro/resource/config/dns/dnsnsecrec.py
culbertm/NSttyPython
ff9f6aedae3fb8495342cd0fc4247c819cf47397
[ "Apache-2.0" ]
null
null
null
nitro-python/nssrc/com/citrix/netscaler/nitro/resource/config/dns/dnsnsecrec.py
culbertm/NSttyPython
ff9f6aedae3fb8495342cd0fc4247c819cf47397
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2008-2016 Citrix Systems, 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...
27.052
157
0.686382
545e005ee35d86e386166bb61ac29a671bfdbcb1
430
py
Python
vit/formatter/uda_indicator.py
kinifwyne/vit
e2cbafce922b1e09c4a66e7dc9592c51fe628e9d
[ "MIT" ]
179
2020-07-28T08:21:51.000Z
2022-03-30T21:39:37.000Z
vit/formatter/uda_indicator.py
kinifwyne/vit
e2cbafce922b1e09c4a66e7dc9592c51fe628e9d
[ "MIT" ]
255
2017-02-01T11:49:12.000Z
2020-07-26T22:31:25.000Z
vit/formatter/uda_indicator.py
kinifwyne/vit
e2cbafce922b1e09c4a66e7dc9592c51fe628e9d
[ "MIT" ]
26
2017-01-17T20:31:13.000Z
2020-06-17T13:09:01.000Z
from vit.formatter import Formatter class UdaIndicator(Formatter): def format(self, value, task): if not value: return self.markup_none(self.colorize()) else: indicator = self.formatter.indicator_uda[self.column] return (len(indicator), (self.colorize(value), ind...
33.076923
70
0.665116
fd64ede867a6b709ab8fa1a73e0eb6214b2ec612
30,976
py
Python
src/tests/ast_test.py
jtolds/pants-lang
33d0a4238598af12068f650edb6d72766ca180ec
[ "MIT" ]
5
2015-04-28T02:13:22.000Z
2017-11-25T07:41:21.000Z
src/tests/ast_test.py
jtolds/pants-lang
33d0a4238598af12068f650edb6d72766ca180ec
[ "MIT" ]
null
null
null
src/tests/ast_test.py
jtolds/pants-lang
33d0a4238598af12068f650edb6d72766ca180ec
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Copyright (c) 2012, JT Olds <hello@jtolds.com> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to us...
34.804494
80
0.375
aa90ee3ba7a379e9d033b7d1eafc5264d35a4a0c
5,044
py
Python
voltha/adapters/adtran_olt/flow/flow_tables.py
addyess/voltha
50af3d103b045a36db12736ead9064cea7028aff
[ "Apache-2.0" ]
null
null
null
voltha/adapters/adtran_olt/flow/flow_tables.py
addyess/voltha
50af3d103b045a36db12736ead9064cea7028aff
[ "Apache-2.0" ]
null
null
null
voltha/adapters/adtran_olt/flow/flow_tables.py
addyess/voltha
50af3d103b045a36db12736ead9064cea7028aff
[ "Apache-2.0" ]
null
null
null
# Copyright 2017-present Adtran, 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 writ...
30.756098
93
0.618557
89d46abc887f3b9f316dfb0a7148dc234ea9593a
1,668
py
Python
tests/test_helper.py
zillionare/backtesting
a6272a0e8d86aa01c67c674a1d6ad49d140df472
[ "MIT" ]
null
null
null
tests/test_helper.py
zillionare/backtesting
a6272a0e8d86aa01c67c674a1d6ad49d140df472
[ "MIT" ]
null
null
null
tests/test_helper.py
zillionare/backtesting
a6272a0e8d86aa01c67c674a1d6ad49d140df472
[ "MIT" ]
null
null
null
import datetime import unittest import numpy as np from backtest.common.helper import jsonify, tabulate_numpy_array class HelperTest(unittest.TestCase): def test_jsonify(self): class Foo: def __init__(self): self.a = 1 self.b = 2 self.c = 3 ...
26.47619
82
0.375899
6a0e9c137e7bc97d364c77047c5c6e29bc5d946a
83,828
bzl
Python
go_deps.bzl
netsec-ethz/netsec-scion
38afcbac6ca32f49a412883fe4369e31419b3f50
[ "Apache-2.0" ]
2
2018-01-23T11:42:34.000Z
2019-08-26T23:26:31.000Z
go_deps.bzl
netsec-ethz/netsec-scion
38afcbac6ca32f49a412883fe4369e31419b3f50
[ "Apache-2.0" ]
26
2017-12-05T14:56:37.000Z
2019-11-18T09:58:43.000Z
go_deps.bzl
netsec-ethz/netsec-scion
38afcbac6ca32f49a412883fe4369e31419b3f50
[ "Apache-2.0" ]
6
2018-02-02T10:15:35.000Z
2019-11-17T14:41:26.000Z
# Generated from go.mod by gazelle. DO NOT EDIT load("@bazel_gazelle//:deps.bzl", "go_repository") def go_deps(): go_repository( name = "af_inet_netaddr", importpath = "inet.af/netaddr", sum = "h1:tvgqez5ZQoBBiBAGNU/fmJy247yB/7++kcLOEoMYup0=", version = "v0.0.0-20210903134321-85fa6c...
37.675506
74
0.639583
937dfe2b2c345bd1cbd3cfa466db456a4c9a915c
7,955
py
Python
webbpsf/tests/test_psfgrid.py
AldenJurling/webbpsf
9d368ab988a600047f5476020a38c682f59cca6a
[ "BSD-3-Clause" ]
18
2015-07-16T18:44:26.000Z
2021-05-29T08:30:44.000Z
webbpsf/tests/test_psfgrid.py
AldenJurling/webbpsf
9d368ab988a600047f5476020a38c682f59cca6a
[ "BSD-3-Clause" ]
178
2015-01-15T18:59:37.000Z
2019-12-09T14:54:31.000Z
webbpsf/tests/test_psfgrid.py
AldenJurling/webbpsf
9d368ab988a600047f5476020a38c682f59cca6a
[ "BSD-3-Clause" ]
14
2015-10-06T15:09:00.000Z
2019-03-20T13:50:50.000Z
import os import astropy.convolution from astropy.io import fits import numpy as np import pytest from .. import gridded_library from .. import webbpsf_core from .. import utils def test_compare_to_calc_psf_oversampled(): """ Check that the output PSF matches calc_psf and is saved in the correct slice of th...
38.995098
106
0.69956
a406d93cf2e32116c3941f9abb5b90bb3ff01b92
806
py
Python
func.py
cclauss/Pythonista-sm
ef5c6527f36334a2b4dc3f0a92f957161aa3bdd3
[ "Apache-2.0" ]
3
2021-08-23T02:49:09.000Z
2021-08-24T01:48:14.000Z
func.py
cclauss/Pythonista-sm
ef5c6527f36334a2b4dc3f0a92f957161aa3bdd3
[ "Apache-2.0" ]
null
null
null
func.py
cclauss/Pythonista-sm
ef5c6527f36334a2b4dc3f0a92f957161aa3bdd3
[ "Apache-2.0" ]
1
2021-08-23T03:02:39.000Z
2021-08-23T03:02:39.000Z
# -*-coding:utf-8-*- from random import choice def xor(a, b): return list(map(lambda x, y: x ^ y, a, b)) def rotl(x, n): return ((x << n) & 0xffffffff) | ((x >> (32 - n)) & 0xffffffff) def get_uint32_be(key_data): return (key_data[0] << 24) | (key_data[1] << 16) | (key_data[2] << 8) | ( key_data[3]) def pu...
19.190476
79
0.581886
d1009416e76a7f24f5482519f2c9b6a0331099b6
551
py
Python
test/code/for/for3.py
BBN-Q/pyqgl2
7acc8b244ee7799c21df03ecff8325e15cdb94d3
[ "Apache-2.0" ]
10
2017-09-30T14:31:42.000Z
2021-12-12T07:52:05.000Z
test/code/for/for3.py
BBN-Q/pyqgl2
7acc8b244ee7799c21df03ecff8325e15cdb94d3
[ "Apache-2.0" ]
56
2017-04-11T15:47:15.000Z
2019-10-11T15:50:35.000Z
test/code/for/for3.py
BBN-Q/pyqgl2
7acc8b244ee7799c21df03ecff8325e15cdb94d3
[ "Apache-2.0" ]
3
2019-06-20T07:08:39.000Z
2020-10-24T19:29:05.000Z
from qgl2.qgl2 import concur, qreg, qgl2decl from qgl2.qgl2 import Qbit @qgl2decl def func_a1(a: qreg, b: qreg, c: qreg): with concur: for q in [a, b, c]: X90(a) func_b(q) @qgl2decl def func_a2(a: qreg, b: qreg, c: qreg): for q in [a, b, c]: X90(a) func_b(q) @...
15.742857
44
0.504537
ad819f0433d0d28b2c26f36d2d21cc5b6218d495
4,770
py
Python
sif/samplers/elliptical_slice_sampler.py
JamesBrofos/Sif
a38ddb14f598f9f35d3ed9e872260b938e961433
[ "MIT" ]
1
2022-03-24T18:59:27.000Z
2022-03-24T18:59:27.000Z
sif/samplers/elliptical_slice_sampler.py
JamesBrofos/Sif
a38ddb14f598f9f35d3ed9e872260b938e961433
[ "MIT" ]
4
2020-03-24T15:39:08.000Z
2021-02-02T21:44:05.000Z
sif/samplers/elliptical_slice_sampler.py
JamesBrofos/Sif
a38ddb14f598f9f35d3ed9e872260b938e961433
[ "MIT" ]
1
2019-11-05T19:28:06.000Z
2019-11-05T19:28:06.000Z
import numpy as np from numpy.random import multivariate_normal, uniform class EllipticalSliceSampler: """Elliptical Slice Sampler Class The elliptical slice sampling algorithm is a Markov chain Monte carlo approach to sampling from posterior distributions that consist of an arbitrary likelihood time...
48.673469
80
0.656184
3726a56e530db949e18d19c23650c2724564d748
1,303
py
Python
syloga/utils/predicates.py
xaedes/python-symbolic-logic-to-gate
a0dc9be9e04290008cf709fac789d224ab8c14b0
[ "MIT" ]
null
null
null
syloga/utils/predicates.py
xaedes/python-symbolic-logic-to-gate
a0dc9be9e04290008cf709fac789d224ab8c14b0
[ "MIT" ]
null
null
null
syloga/utils/predicates.py
xaedes/python-symbolic-logic-to-gate
a0dc9be9e04290008cf709fac789d224ab8c14b0
[ "MIT" ]
null
null
null
import collections.abc def is_hashable(x): """ Determines whether x is hashable. :returns: True if the specified x is hashable, False otherwise. :rtype: bool """ return hasattr(x, "__hash__") and callable(x.__hash__) def is_mappable_collection(expression): non_collection_types = (...
37.228571
98
0.6132
429905f0f2103ce1286258397621e2880e677679
4,084
py
Python
application/workprogramsapp/expertise/serializers.py
18ariana/analytics_backend
bfcda70564dd14dadb72de6a70fe2d66790eae85
[ "MIT" ]
null
null
null
application/workprogramsapp/expertise/serializers.py
18ariana/analytics_backend
bfcda70564dd14dadb72de6a70fe2d66790eae85
[ "MIT" ]
null
null
null
application/workprogramsapp/expertise/serializers.py
18ariana/analytics_backend
bfcda70564dd14dadb72de6a70fe2d66790eae85
[ "MIT" ]
null
null
null
from rest_framework import serializers from dataprocessing.serializers import userProfileSerializer # from workprogramsapp.educational_program.serializers import EducationalProgramSerializer from workprogramsapp.expertise.models import UserExpertise, Expertise, ExpertiseComments from workprogramsapp.serializers import...
38.168224
120
0.703967
0e014161fbaa35d955c951cc01f317c5e803ac51
1,492
py
Python
docs/conf.py
ionelmc/python-lazy-object-proxy
0581e276c6fd4c72c5b46cc45bdb3d341c16cfa9
[ "BSD-2-Clause" ]
209
2015-01-05T22:05:19.000Z
2022-03-04T06:59:07.000Z
docs/conf.py
ionelmc/python-lazy-object-proxy
0581e276c6fd4c72c5b46cc45bdb3d341c16cfa9
[ "BSD-2-Clause" ]
58
2015-03-10T06:28:03.000Z
2022-03-11T06:21:13.000Z
docs/conf.py
ionelmc/python-lazy-object-proxy
0581e276c6fd4c72c5b46cc45bdb3d341c16cfa9
[ "BSD-2-Clause" ]
38
2015-01-05T13:28:44.000Z
2022-02-14T18:57:21.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals import traceback import sphinx_py3doc_enhanced_theme extensions = [ 'sphinx.ext.autodoc', 'sphinx.ext.autosummary', 'sphinx.ext.coverage', 'sphinx.ext.doctest', 'sphinx.ext.extlinks', 'sphinx.ext.ifconfig', 'sphinx.ext.napole...
27.127273
84
0.705764
41165c1e2720fe747fd40f7e94b8c1c70db67240
37
py
Python
processors/postprocessors/__init__.py
Zvezdin/blockchain-predictor
df6f939037471dd50b7b9c96673d89b04b646ef2
[ "MIT" ]
35
2017-10-25T17:10:35.000Z
2022-03-20T18:12:06.000Z
processors/postprocessors/__init__.py
Zvezdin/blockchain-predictor
df6f939037471dd50b7b9c96673d89b04b646ef2
[ "MIT" ]
2
2017-09-20T17:39:15.000Z
2018-04-01T17:20:29.000Z
processors/postprocessors/__init__.py
Zvezdin/blockchain-predictor
df6f939037471dd50b7b9c96673d89b04b646ef2
[ "MIT" ]
10
2017-12-01T13:47:04.000Z
2021-12-16T06:53:17.000Z
from .postprocessors_imports import *
37
37
0.864865
00c89d09d384ff3306ba9948eee9edc5197a70eb
4,605
py
Python
TermProject/crawler/crawler_thread.py
MadCreeper/SJTU_ICE2602
bb2b41e4a056ec1017f3a531c30c67172753289d
[ "MIT" ]
null
null
null
TermProject/crawler/crawler_thread.py
MadCreeper/SJTU_ICE2602
bb2b41e4a056ec1017f3a531c30c67172753289d
[ "MIT" ]
null
null
null
TermProject/crawler/crawler_thread.py
MadCreeper/SJTU_ICE2602
bb2b41e4a056ec1017f3a531c30c67172753289d
[ "MIT" ]
null
null
null
# SJTU EE208 # -*-coding:utf-8-*- import os import math import re import string import sys from typing import final import urllib import urllib.error import urllib.parse import urllib.request from urllib.request import Request, urlopen import hashlib import threading import queue import time from bs4 import BeautifulSo...
27.410714
169
0.593485
95dfa3a3620375551be1123939ae07b02b93773f
446
py
Python
examples/meetapp/modules/meetings/domain/time.py
pcah/python-clean-architecture
20630d0b3b4c00f6503a26cc98c45df12bc31b3b
[ "MIT" ]
278
2019-01-10T07:57:29.000Z
2022-03-31T22:47:13.000Z
examples/meetapp/modules/meetings/domain/time.py
asuzukosi/python-clean-architecture
20630d0b3b4c00f6503a26cc98c45df12bc31b3b
[ "MIT" ]
80
2018-11-17T23:44:39.000Z
2021-12-15T18:29:04.000Z
examples/meetapp/modules/meetings/domain/time.py
lhaze/dharma
20630d0b3b4c00f6503a26cc98c45df12bc31b3b
[ "MIT" ]
29
2018-11-19T20:11:13.000Z
2022-03-02T06:27:34.000Z
import datetime import typing as t from meetapp.modules.shared_domain.clock import IClockService from pca.domain import ValueObject from pca.utils.dependency_injection import ( Inject, inject, ) class MeetingTerm(ValueObject): start_date: t.Optional[datetime] = None end_date: t.Optional[datetime] = ...
22.3
62
0.73991
59ef1f04e894d72c0ecf0712cb5c700a7e2d9806
4,669
py
Python
hazel/util.py
aasensio/hazel2
d9b551915f5d2bb399e03b054dffe4ca42fedeb5
[ "MIT" ]
17
2018-08-31T11:13:59.000Z
2022-01-12T02:30:56.000Z
hazel/util.py
aasensio/hazel2
d9b551915f5d2bb399e03b054dffe4ca42fedeb5
[ "MIT" ]
26
2018-04-03T15:09:21.000Z
2021-05-27T10:10:45.000Z
hazel/util.py
aasensio/hazel2
d9b551915f5d2bb399e03b054dffe4ca42fedeb5
[ "MIT" ]
3
2018-05-01T13:47:21.000Z
2019-09-23T20:49:08.000Z
import numpy as np import h5py from asciitree import LeftAligned from collections import OrderedDict from asciitree.drawing import BoxStyle, BOX_DOUBLE, BOX_BLANK __all__ = ['i0_allen', '_extract_parameter_cycles', 'isint', 'fvoigt', 'lower_dict_keys', 'show_tree'] def i0_allen(wavelength, muAngle): """ Retur...
31.761905
164
0.591776
9500142e5839de59843767c91bf48c8217f319c0
5,206
py
Python
setup.py
eliasfernandez/django-simplecms
fd2d4b0c53a1262a7253e2428e5bd8a4e8074ce4
[ "BSD-2-Clause" ]
null
null
null
setup.py
eliasfernandez/django-simplecms
fd2d4b0c53a1262a7253e2428e5bd8a4e8074ce4
[ "BSD-2-Clause" ]
null
null
null
setup.py
eliasfernandez/django-simplecms
fd2d4b0c53a1262a7253e2428e5bd8a4e8074ce4
[ "BSD-2-Clause" ]
null
null
null
# coding=utf-8 from distutils.core import setup import codecs import os import sys from distutils.util import convert_path from fnmatch import fnmatchcase from setuptools import setup import cms # Provided as an attribute, so you can append to these instead # of replicating them: standard_exclude = ["*.py", "*.pyc",...
36.661972
100
0.528045
8a9490609b406aac75fafb5cf975907e222fec60
5,941
py
Python
scripts/release_scripts/repo_specific_changes_fetcher.py
siddharthmehta02/oppia
973f777a6c5a8c3442846bda839e63856dfddf72
[ "Apache-2.0" ]
4
2021-09-16T16:46:53.000Z
2022-02-06T13:00:14.000Z
scripts/release_scripts/repo_specific_changes_fetcher.py
siddharthmehta02/oppia
973f777a6c5a8c3442846bda839e63856dfddf72
[ "Apache-2.0" ]
null
null
null
scripts/release_scripts/repo_specific_changes_fetcher.py
siddharthmehta02/oppia
973f777a6c5a8c3442846bda839e63856dfddf72
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2020 The Oppia 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...
37.13125
80
0.722606
77a9e67414d95cbbf70efc27b9197a98209483f6
1,001
py
Python
concat.py
leoGCoelho/Snscrape-Dataframe-Builder
1759cade1d349c7e7fc84b26089385d0e4df132f
[ "MIT" ]
2
2020-12-01T14:35:21.000Z
2021-05-17T05:58:28.000Z
concat.py
leoGCoelho/Snscrape-Dataframe-Builder
1759cade1d349c7e7fc84b26089385d0e4df132f
[ "MIT" ]
null
null
null
concat.py
leoGCoelho/Snscrape-Dataframe-Builder
1759cade1d349c7e7fc84b26089385d0e4df132f
[ "MIT" ]
2
2021-02-11T16:53:01.000Z
2022-01-15T21:44:17.000Z
import pandas import json import sys def cleandata(data): for jsonf in data: #jsonf["texto"] = "" jsonf.pop("user", None) jsonf.pop("outlinks", None) jsonf.pop("tcooutlinks", None) jsonf.pop("replyCount", None) jsonf.pop("retweetCount", None) jsonf.pop("likeC...
26.342105
61
0.607393
60bd79822b202fa9a25ff85bbb57e09aec57c957
983
py
Python
recipes/flask/__init__.py
lbovet/kivy-ios
679fc62256ffb87b6101840563fc2952d7166e1b
[ "MIT" ]
2
2021-02-05T10:13:05.000Z
2021-11-12T07:31:57.000Z
recipes/flask/__init__.py
lbovet/kivy-ios
679fc62256ffb87b6101840563fc2952d7166e1b
[ "MIT" ]
6
2020-01-31T18:04:48.000Z
2021-06-05T10:53:55.000Z
recipes/flask/__init__.py
lbovet/kivy-ios
679fc62256ffb87b6101840563fc2952d7166e1b
[ "MIT" ]
1
2021-04-08T19:51:07.000Z
2021-04-08T19:51:07.000Z
# pure-python package, this can be removed when we'll support any python package from toolchain import PythonRecipe, shprint from os.path import join import sh, os class FlaskRecipe(PythonRecipe): version = "master" url = "https://github.com/mitsuhiko/flask/archive/{version}.zip" depends = ["python","jinja...
39.32
93
0.660224
5f6249bc9801e57bbd60ec0126322e058368a7a8
3,473
py
Python
alipay/aop/api/domain/SignData.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/SignData.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/SignData.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 * class SignData(object): def __init__(self): self._ori_app_id = None self._ori_char_set = None self._ori_out_biz_no = None self._ori_sign = None self._ori_sign_ty...
29.939655
79
0.596314
dca8b2877b3a8eb2abab7015fcfe8fb8c1ae32fb
3,158
py
Python
paper_figures/CIDU2012/fig_rbf_ridge_mu_z.py
aragilar/astroML
d3f6279eb632957662338761cb559a1dcd541fb0
[ "BSD-2-Clause" ]
6
2019-08-31T16:43:43.000Z
2021-07-10T06:06:20.000Z
paper_figures/CIDU2012/fig_rbf_ridge_mu_z.py
aragilar/astroML
d3f6279eb632957662338761cb559a1dcd541fb0
[ "BSD-2-Clause" ]
34
2018-09-10T22:35:07.000Z
2022-02-08T21:17:39.000Z
paper_figures/CIDU2012/fig_rbf_ridge_mu_z.py
aragilar/astroML
d3f6279eb632957662338761cb559a1dcd541fb0
[ "BSD-2-Clause" ]
10
2017-06-22T09:21:19.000Z
2020-01-26T03:54:26.000Z
""" Regularized Regression Example ------------------------------ This performs regularized regression on a gaussian basis function model. """ # Author: Jake VanderPlas <vanderplas@astro.washington.edu> # License: BSD # The figure is an example from astroML: see http://astroML.github.com import numpy as np from matpl...
30.660194
75
0.586764
699eb50da7f46d79f3feabd34ccbbab3ed2f4cc9
2,325
py
Python
pycspr/serialisation/byte_array/encoder/cl_value.py
MrKrautee/casper-python-sdk
13e9da83de8892583da7ada91e4231e6f85e5e13
[ "Apache-2.0" ]
2
2021-10-05T07:50:20.000Z
2021-10-06T09:58:19.000Z
pycspr/serialisation/byte_array/encoder/cl_value.py
MrKrautee/casper-python-sdk
13e9da83de8892583da7ada91e4231e6f85e5e13
[ "Apache-2.0" ]
null
null
null
pycspr/serialisation/byte_array/encoder/cl_value.py
MrKrautee/casper-python-sdk
13e9da83de8892583da7ada91e4231e6f85e5e13
[ "Apache-2.0" ]
null
null
null
import typing import pycspr.serialisation.byte_array.encoder.cl_complex as complex_encoder import pycspr.serialisation.byte_array.encoder.cl_primitive as primitives_encoder import pycspr.serialisation.byte_array.encoder.cl_type as type_encoder from pycspr.types import CLTypeKey from pycspr.types import CLValue # Ma...
39.40678
112
0.772473
3cf22817c517c6f885704c8ec9c12fa1d0fc1eb7
6,735
py
Python
tools/debug/common.py
gnomonsis/nncf_pytorch
9fc4a92b5cb1b2c240e633c4ffa69b4fae1917fb
[ "Apache-2.0" ]
null
null
null
tools/debug/common.py
gnomonsis/nncf_pytorch
9fc4a92b5cb1b2c240e633c4ffa69b4fae1917fb
[ "Apache-2.0" ]
4
2020-07-17T11:12:35.000Z
2021-12-15T15:20:24.000Z
tools/debug/common.py
gnomonsis/nncf_pytorch
9fc4a92b5cb1b2c240e633c4ffa69b4fae1917fb
[ "Apache-2.0" ]
null
null
null
""" Copyright (c) 2019 Intel Corporation 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 writin...
38.267045
112
0.659688
3108988ec48dd8c6366194c264142f6616003fc3
7,035
py
Python
thola_nautobot/forms.py
inexio/thola-nautobot
0b152784c9c7c0562423595251960a9e102ba221
[ "BSD-2-Clause" ]
5
2021-07-13T12:07:39.000Z
2021-07-23T08:18:46.000Z
thola_nautobot/forms.py
inexio/thola-nautobot
0b152784c9c7c0562423595251960a9e102ba221
[ "BSD-2-Clause" ]
2
2021-07-06T11:04:17.000Z
2021-08-24T02:54:08.000Z
thola_nautobot/forms.py
inexio/thola-nautobot
0b152784c9c7c0562423595251960a9e102ba221
[ "BSD-2-Clause" ]
null
null
null
"""Forms for thola nautobot.""" import django_rq from django import forms from django.conf import settings from nautobot.dcim.models import Device, Site, DeviceRole from thola_nautobot.choices import TholaOnboardingStatusChoice from thola_nautobot.models import TholaConfig, TholaOnboarding from thola_nautobot.thola.cl...
33.822115
120
0.634968
03051b0be023643784d9e41f4aae7905620c3fb0
965
py
Python
src/my_happy_modin/data_management/functions/default_methods/str_default.py
ggservice007/my-happy-modin
ab293ecfa04516a5c9f76284e09b45cdd7588186
[ "Apache-2.0" ]
null
null
null
src/my_happy_modin/data_management/functions/default_methods/str_default.py
ggservice007/my-happy-modin
ab293ecfa04516a5c9f76284e09b45cdd7588186
[ "Apache-2.0" ]
2
2021-01-27T11:25:26.000Z
2021-01-27T12:47:53.000Z
src/my_happy_modin/data_management/functions/default_methods/str_default.py
ggservice007/my-happy-modin
ab293ecfa04516a5c9f76284e09b45cdd7588186
[ "Apache-2.0" ]
null
null
null
# Licensed to my_happy_modin Development Team under one or more contributor license agreements. # See the NOTICE file distributed with this work for additional information regarding # copyright ownership. The my_happy_modin Development Team licenses this file to you under the # Apache License, Version 2.0 (the "Licens...
45.952381
95
0.779275
6d39733c626d6ae40bd7089dc79580e67e5772f7
2,814
py
Python
yardstick/benchmark/scenarios/parser/parser.py
kkltcjk/kklt
5388eb439616a442dde496ef77ba6b71169369e0
[ "Apache-2.0" ]
null
null
null
yardstick/benchmark/scenarios/parser/parser.py
kkltcjk/kklt
5388eb439616a442dde496ef77ba6b71169369e0
[ "Apache-2.0" ]
null
null
null
yardstick/benchmark/scenarios/parser/parser.py
kkltcjk/kklt
5388eb439616a442dde496ef77ba6b71169369e0
[ "Apache-2.0" ]
null
null
null
############################################################################## # Copyright (c) 2015 Huawei Technologies Co.,Ltd and other. # # All rights reserved. This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompanies this distribution, a...
32.72093
78
0.629353
8a47b6e5b5496c80fff7880ca098034da5ca4928
7,471
py
Python
week1/utilities/ltr_utils.py
gsingers/search_with_machine_learning_course
94622c24eb07e52793cf5e2289f2f69359bb87af
[ "Apache-2.0" ]
11
2021-12-30T18:55:56.000Z
2022-03-15T17:33:10.000Z
week1/utilities/ltr_utils.py
gsingers/search_with_machine_learning_course
94622c24eb07e52793cf5e2289f2f69359bb87af
[ "Apache-2.0" ]
9
2021-12-31T05:24:33.000Z
2022-03-08T07:44:45.000Z
week1/utilities/ltr_utils.py
gsingers/search_with_machine_learning_course
94622c24eb07e52793cf5e2289f2f69359bb87af
[ "Apache-2.0" ]
127
2021-12-24T17:03:26.000Z
2022-03-13T17:20:21.000Z
import json import requests def create_rescore_ltr_query(user_query, query_obj, click_prior_query, ltr_model_name, ltr_store_name, active_features=None, rescore_size=500, main_query_weight=1, rescore_query_weight=2): # Create the base query, use a much bigger window #add on the r...
46.987421
129
0.641146
37bda1b97752813dbac9e4cab4d4b1cae1d2bb1e
721
py
Python
detectron2_ofa/modeling/meta_arch/build.py
qdmy/Adelaidet-Quantization
e88cf41c62dc3944d2bd57ffc1d365535b0a1c4b
[ "Apache-2.0" ]
null
null
null
detectron2_ofa/modeling/meta_arch/build.py
qdmy/Adelaidet-Quantization
e88cf41c62dc3944d2bd57ffc1d365535b0a1c4b
[ "Apache-2.0" ]
null
null
null
detectron2_ofa/modeling/meta_arch/build.py
qdmy/Adelaidet-Quantization
e88cf41c62dc3944d2bd57ffc1d365535b0a1c4b
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved from detectron2_ofa.utils.registry import Registry from third_party.quantization.convert_to_quantization import convert2quantization META_ARCH_REGISTRY = Registry("META_ARCH") # noqa F401 isort:skip META_ARCH_REGISTRY.__doc__ = """ Registry for me...
32.772727
81
0.762829
ae3c23e8ad133f678ac0c9def2a065bb82465e49
2,229
py
Python
merlin/io/shuffle.py
mikemckiernan/core
7621a8c4596a9f002d846d4618736fcf2c606419
[ "Apache-2.0" ]
1
2022-03-28T17:22:54.000Z
2022-03-28T17:22:54.000Z
merlin/io/shuffle.py
NVIDIA-Merlin/core
78ecdddf83735fa3041e0778d6fdac37c3c1dd92
[ "Apache-2.0" ]
27
2022-02-17T18:18:05.000Z
2022-03-31T23:44:08.000Z
merlin/io/shuffle.py
mikemckiernan/core
7621a8c4596a9f002d846d4618736fcf2c606419
[ "Apache-2.0" ]
5
2022-02-17T17:46:41.000Z
2022-03-11T03:23:28.000Z
# # Copyright (c) 2022, NVIDIA CORPORATION. # # 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 ...
28.948052
94
0.685509
f6d88397320f26d43dbd14b9aeb19ddadeb6483e
1,742
py
Python
Shriram.py
Shriram2004/mobilerobot-openloopcontrol
58b0cf5a67a3b25c356a7ea6b7435fbef909134e
[ "BSD-3-Clause" ]
null
null
null
Shriram.py
Shriram2004/mobilerobot-openloopcontrol
58b0cf5a67a3b25c356a7ea6b7435fbef909134e
[ "BSD-3-Clause" ]
null
null
null
Shriram.py
Shriram2004/mobilerobot-openloopcontrol
58b0cf5a67a3b25c356a7ea6b7435fbef909134e
[ "BSD-3-Clause" ]
null
null
null
from robomaster import robot import time from robomaster import camera if __name__ == '__main__' : ep_robot = robot.Robot() ep_robot.initialize(conn_type="ap") ep_chassis = ep_robot.chassis ep_camera = ep_robot.camera ep_led = ep_robot.led ''' x = x-axis movement distance,( meters...
30.561404
78
0.635476
1d247176b2a0de7d9d8f73fd1bc327141c1cc156
1,903
py
Python
nova/tests/functional/api_sample_tests/test_hosts.py
zjzh/nova
7bb21723171c59b93e28f5d508c2b6df39220f13
[ "Apache-2.0" ]
1,874
2015-01-04T05:18:34.000Z
2022-03-31T03:30:28.000Z
nova/tests/functional/api_sample_tests/test_hosts.py
woraser/nova
fc3890667e4971e3f0f35ac921c2a6c25f72adec
[ "Apache-2.0" ]
132
2017-03-27T11:31:52.000Z
2022-03-30T08:45:02.000Z
nova/tests/functional/api_sample_tests/test_hosts.py
woraser/nova
fc3890667e4971e3f0f35ac921c2a6c25f72adec
[ "Apache-2.0" ]
1,996
2015-01-04T15:11:51.000Z
2022-03-31T11:03:13.000Z
# Copyright 2012 Nebula, Inc. # Copyright 2013 IBM Corp. # # 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...
40.489362
78
0.683657
2e7b681f5dfe300e2d21978047986ed64c3864f0
287
py
Python
acronym/acronym.py
oscantillomen/Exercism-Python
1a598769aff0e4dd58294fcd692ca0402061717e
[ "MIT" ]
null
null
null
acronym/acronym.py
oscantillomen/Exercism-Python
1a598769aff0e4dd58294fcd692ca0402061717e
[ "MIT" ]
null
null
null
acronym/acronym.py
oscantillomen/Exercism-Python
1a598769aff0e4dd58294fcd692ca0402061717e
[ "MIT" ]
null
null
null
import re def abbreviate(words): cleanString = re.sub(r'[_-]', ' ', words) word_list = re.split(r"\s", cleanString) filtered_list = list(filter(lambda word: word, word_list)) acronym = "".join(list(map(lambda word: word[0], filtered_list))) return(acronym.upper())
28.7
69
0.655052
1423e06cf801d2a7a5814d1e0e7fa33ad5f375da
388
py
Python
src/datasets/__init__.py
pengkangzaia/mvts-ano-eval
976ffa2f151c8f91ce007e9a455bb4f97f89f2c9
[ "MIT" ]
24
2021-09-04T08:51:55.000Z
2022-03-30T16:45:54.000Z
src/datasets/__init__.py
pengkangzaia/mvts-ano-eval
976ffa2f151c8f91ce007e9a455bb4f97f89f2c9
[ "MIT" ]
3
2021-10-12T02:34:34.000Z
2022-03-18T10:37:35.000Z
src/datasets/__init__.py
pengkangzaia/mvts-ano-eval
976ffa2f151c8f91ce007e9a455bb4f97f89f2c9
[ "MIT" ]
15
2021-09-18T03:41:02.000Z
2022-03-21T09:03:01.000Z
from .dataset import Dataset from .swat import Swat from .wadi import Wadi from .damadics import Damadics from .msl_entity import Msl_entity from .smap_entity import Smap_entity from .smd_entity import Smd_entity from .multi_entity_dataset import MultiEntityDataset __all__ = [ 'Dataset', 'Swat', 'Wadi', 'Damadics'...
29.846154
106
0.786082
a184f881311d4826481b37a2d183be0f83c72b49
10,189
py
Python
tulip/transys/compositions.py
krooken/tulip-control
bb004422b575dccea8d19c33acfeb04b37c62a5a
[ "BSD-3-Clause" ]
null
null
null
tulip/transys/compositions.py
krooken/tulip-control
bb004422b575dccea8d19c33acfeb04b37c62a5a
[ "BSD-3-Clause" ]
null
null
null
tulip/transys/compositions.py
krooken/tulip-control
bb004422b575dccea8d19c33acfeb04b37c62a5a
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020 by California Institute of Technology # and University of Texas at Austin # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain t...
39.492248
92
0.689862
6ef27ea96c861dae9bd6822848ae3a66c2e8125f
7,324
py
Python
src/oci/artifacts/models/container_repository_collection.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/artifacts/models/container_repository_collection.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/artifacts/models/container_repository_collection.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...
32.40708
245
0.670126
8d3d091fb392074516d18416c8441c455bc83f43
1,624
py
Python
alipay/aop/api/response/AntMerchantExpandDeliveryGoodsinfoSyncResponse.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/response/AntMerchantExpandDeliveryGoodsinfoSyncResponse.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/response/AntMerchantExpandDeliveryGoodsinfoSyncResponse.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "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.response.AlipayResponse import AlipayResponse class AntMerchantExpandDeliveryGoodsinfoSyncResponse(AlipayResponse): def __init__(self): super(AntMerchantExpandDeliveryGoodsinfoSyncResponse, self).__init__() self._assig...
29
119
0.676724
7c02ec58680adb1c83f933074a5eb599cb3e27c7
10,737
py
Python
zorg/buildbot/util/artifacts.py
antiagainst/llvm-zorg
a5b58cdd800d0d45b1bdd1f7fe058db6acbfd918
[ "Apache-2.0" ]
27
2019-01-15T03:03:58.000Z
2022-03-22T23:31:36.000Z
zorg/buildbot/util/artifacts.py
antiagainst/llvm-zorg
a5b58cdd800d0d45b1bdd1f7fe058db6acbfd918
[ "Apache-2.0" ]
21
2020-05-29T01:12:26.000Z
2022-03-29T20:06:22.000Z
zorg/buildbot/util/artifacts.py
antiagainst/llvm-zorg
a5b58cdd800d0d45b1bdd1f7fe058db6acbfd918
[ "Apache-2.0" ]
38
2019-02-10T02:46:33.000Z
2022-03-26T10:27:29.000Z
import os import buildbot import config from buildbot.steps.shell import WithProperties from zorg.buildbot.util.phasedbuilderutils import setProperty, determine_phase_id from zorg.buildbot.util.phasedbuilderutils import set_config_option # Get some parameters about where to upload and download results from. is_produ...
44.924686
85
0.627084
0b1062297ea37b4cfb0804fe69a246100aa038c9
226
py
Python
WeBlog/app/main/__init__.py
imrocky1976/web
3af7fbd82af8b4d2737672779d5742825b94a6fe
[ "MIT" ]
null
null
null
WeBlog/app/main/__init__.py
imrocky1976/web
3af7fbd82af8b4d2737672779d5742825b94a6fe
[ "MIT" ]
4
2020-03-24T17:13:37.000Z
2022-03-08T21:09:48.000Z
WeBlog/app/main/__init__.py
imrocky1976/web
3af7fbd82af8b4d2737672779d5742825b94a6fe
[ "MIT" ]
null
null
null
from flask import Blueprint main = Blueprint('main', __name__) from app.main import errors, views from app.models import Permission @main.app_context_processor def inject_permissions(): return dict(Permission=Permission)
25.111111
38
0.80531
bed260805baa1ef468d9e95986e74259460d4d45
120
py
Python
dryadic/learning/stan/logistic/__init__.py
ohsu-comp-bio/dryads
015f6d3186a5146809334e2490c072e675b22891
[ "MIT" ]
null
null
null
dryadic/learning/stan/logistic/__init__.py
ohsu-comp-bio/dryads
015f6d3186a5146809334e2490c072e675b22891
[ "MIT" ]
null
null
null
dryadic/learning/stan/logistic/__init__.py
ohsu-comp-bio/dryads
015f6d3186a5146809334e2490c072e675b22891
[ "MIT" ]
null
null
null
from .classifiers import BaseLogistic from .stan_models import gauss_model __all__ = ['BaseLogistic', 'gauss_model']
17.142857
41
0.791667
75db4daa25a7d76e3b2d9e3e7df002cf9c0d800e
2,341
py
Python
docs/sphinx/source/conf.py
jmairal/arsenic
7828cf15f93eac40962c222594ff1fe537fff49c
[ "BSD-3-Clause" ]
null
null
null
docs/sphinx/source/conf.py
jmairal/arsenic
7828cf15f93eac40962c222594ff1fe537fff49c
[ "BSD-3-Clause" ]
null
null
null
docs/sphinx/source/conf.py
jmairal/arsenic
7828cf15f93eac40962c222594ff1fe537fff49c
[ "BSD-3-Clause" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
32.068493
79
0.6651
caa74b617f4a51cafa48cd436ddebbb8f145a9a6
2,314
py
Python
tests/unittests/hub/test_pipeline_manager.py
krishnakatyal/towhee
c5e043aa1509cf46644ca6b53f691d6ed2647212
[ "Apache-2.0" ]
null
null
null
tests/unittests/hub/test_pipeline_manager.py
krishnakatyal/towhee
c5e043aa1509cf46644ca6b53f691d6ed2647212
[ "Apache-2.0" ]
1
2022-01-19T06:21:07.000Z
2022-01-19T06:21:07.000Z
tests/unittests/hub/test_pipeline_manager.py
jennyli-z/towhee
55c55fd961229575b75eae269b55090c839f8dcd
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Zilliz. 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 applicable law or agree...
36.15625
142
0.709162
e48457d47dc71461ba3b0e36528b75154c99c67e
391
py
Python
mundo1/ex020.py
Igor3550/Exercicios-de-python
e0f6e043df4f0770ac15968485fbb19698b4ac6b
[ "MIT" ]
null
null
null
mundo1/ex020.py
Igor3550/Exercicios-de-python
e0f6e043df4f0770ac15968485fbb19698b4ac6b
[ "MIT" ]
null
null
null
mundo1/ex020.py
Igor3550/Exercicios-de-python
e0f6e043df4f0770ac15968485fbb19698b4ac6b
[ "MIT" ]
null
null
null
# faça um programa que leia os quatro nomes dos alunos e sorteie a ordem de apresentação do trabalho import random a1 = input('Digite o nome do primeiro aluno: ') a2 = input('Digite o nome do segundo aluno: ') a3 = input('Digite o nome do terceiro aluno: ') a4 = input('Digite o nome do quarto aluno: ') x = [a1, a2, a3,...
39.1
100
0.710997
8950b0e7c929d22387c214c33748c48839c85eb8
6,422
py
Python
ros/src/tl_detector/tl_detector.py
MadridTeam/ROSCentral
9bcedf04c64f3b3d992077ae02ac501b92063336
[ "MIT" ]
null
null
null
ros/src/tl_detector/tl_detector.py
MadridTeam/ROSCentral
9bcedf04c64f3b3d992077ae02ac501b92063336
[ "MIT" ]
null
null
null
ros/src/tl_detector/tl_detector.py
MadridTeam/ROSCentral
9bcedf04c64f3b3d992077ae02ac501b92063336
[ "MIT" ]
1
2018-10-23T15:20:53.000Z
2018-10-23T15:20:53.000Z
#!/usr/bin/env python import rospy from std_msgs.msg import Int32 from geometry_msgs.msg import PoseStamped, Pose from styx_msgs.msg import TrafficLightArray, TrafficLight from styx_msgs.msg import Lane from sensor_msgs.msg import Image from cv_bridge import CvBridge from light_classification.tl_classifier import TLCla...
35.877095
107
0.642479
da8a93bc1d2923d330fc2cff04fc2eb99ac6f311
4,260
py
Python
Interfaces/Spacecraft/LoadMMS.py
tulasinandan/TurbAn
14e912157107ad46c4c65bcac745da738d93c1c6
[ "BSD-2-Clause-Patent" ]
null
null
null
Interfaces/Spacecraft/LoadMMS.py
tulasinandan/TurbAn
14e912157107ad46c4c65bcac745da738d93c1c6
[ "BSD-2-Clause-Patent" ]
null
null
null
Interfaces/Spacecraft/LoadMMS.py
tulasinandan/TurbAn
14e912157107ad46c4c65bcac745da738d93c1c6
[ "BSD-2-Clause-Patent" ]
10
2019-03-22T15:30:12.000Z
2021-02-10T02:55:50.000Z
import sys import os sys.path.insert(0,os.environ['HOME']+'/AJGAR/TurbAn') import pandas as pd import numpy as np import TurbAn.Analysis.Simulations as af import TurbAn.Analysis.TimeSeries.Time_Series_Analysis as tsa def create_df_ascii(dirname,chop_ends=100,hampel_filter=None,lowpass_freq=None,spacecraft=1): try: ...
39.813084
96
0.586385
bbc0769297cf7408c5110e84c296caf3b3bfc977
1,945
py
Python
google-cloud-sdk/lib/surface/container/builds/describe.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2017-11-29T18:52:27.000Z
2017-11-29T18:52:27.000Z
google-cloud-sdk/.install/.backup/lib/surface/container/builds/describe.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/.install/.backup/lib/surface/container/builds/describe.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2020-07-25T12:09:01.000Z
2020-07-25T12:09:01.000Z
# Copyright 2016 Google Inc. 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 applicable law or ag...
34.122807
79
0.71054
5b798cbd462f59029f5d2ca4e4bf424e27bff8eb
9,025
py
Python
test/python/circuit/test_circuit_load_from_qpy.py
irajput/qiskit-terra
e9f06e457bfb67afe1b36b6b9b0b315eb1a24800
[ "Apache-2.0" ]
1
2021-07-06T09:07:47.000Z
2021-07-06T09:07:47.000Z
test/python/circuit/test_circuit_load_from_qpy.py
evercodes/qiskit-terra
649fec2cd1644c43eabc39b0a588c0a9347a2b50
[ "Apache-2.0" ]
null
null
null
test/python/circuit/test_circuit_load_from_qpy.py
evercodes/qiskit-terra
649fec2cd1644c43eabc39b0a588c0a9347a2b50
[ "Apache-2.0" ]
null
null
null
# This code is part of Qiskit. # # (C) Copyright IBM 2020. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
32.937956
100
0.603546
c66b5c089b1ef1413e83ff11e1f3090c27167078
6,120
py
Python
src/fuzzy_potato/database/postgres.py
cezary986/fuzzy-potato
11a7e74529d7ffe925aed6a4fd4e5979043d0a84
[ "MIT" ]
null
null
null
src/fuzzy_potato/database/postgres.py
cezary986/fuzzy-potato
11a7e74529d7ffe925aed6a4fd4e5979043d0a84
[ "MIT" ]
null
null
null
src/fuzzy_potato/database/postgres.py
cezary986/fuzzy-potato
11a7e74529d7ffe925aed6a4fd4e5979043d0a84
[ "MIT" ]
null
null
null
import sys from typing import List from fuzzy_potato.core import BaseStorage, SegmentData, WordData, GramData, TextData import logging import time import psycopg2 from .sql import create_db_sql, delete_data_sql, insert_gram_sql, insert_word_sql, insert_segment_sql, begin_insert, \ end_insert, fuzzy_match_words, fu...
34.772727
120
0.604248
3b22d5d7c0b8aa3ab508be2a4f63da7d09f6b867
8,286
py
Python
preprocess.py
lbda1/OpenNMT-py-AMR-to-text
b59347246fb330feff4139b677014554e8b9aad0
[ "MIT" ]
26
2019-03-29T07:52:43.000Z
2021-12-29T02:41:31.000Z
preprocess.py
lbda1/OpenNMT-py-AMR-to-text
b59347246fb330feff4139b677014554e8b9aad0
[ "MIT" ]
1
2020-02-15T10:31:58.000Z
2020-02-17T14:19:26.000Z
preprocess.py
lbda1/OpenNMT-py-AMR-to-text
b59347246fb330feff4139b677014554e8b9aad0
[ "MIT" ]
5
2019-06-30T19:57:46.000Z
2021-04-01T07:56:53.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Pre-process Data / features files and build vocabulary """ import argparse import glob import sys import gc import codecs import torch from onmt.utils.logging import init_logger, logger import onmt.inputters as inputters import onmt.opts as opts def check_existi...
35.562232
79
0.585687
dc116ea2c4d8027a75206414f2b79ae657e3d3e1
3,846
py
Python
experiments/ashvin/icml2020/hand/sparse/bc_l2_sweep1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icml2020/hand/sparse/bc_l2_sweep1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icml2020/hand/sparse/bc_l2_sweep1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
""" AWR + SAC from demo experiment """ from rlkit.demos.source.dict_to_mdp_stacked_path_loader import DictToMDPStackedPathLoader from rlkit.launchers.experiments.awac.awac_rl import experiment import rlkit.misc.hyperparameter as hyp from rlkit.launchers.arglauncher import run_variants from rlkit.torch.sac.policies i...
30.768
89
0.568383
564f42379009f7cf4f834832d5878c55213cbfe7
5,419
py
Python
parser/team19/BDTytus/Gramaticas/Descendente/gramatica.py
strickergt128/tytus
93216dd9481ea0775da1d2967dc27be66872537f
[ "MIT" ]
null
null
null
parser/team19/BDTytus/Gramaticas/Descendente/gramatica.py
strickergt128/tytus
93216dd9481ea0775da1d2967dc27be66872537f
[ "MIT" ]
null
null
null
parser/team19/BDTytus/Gramaticas/Descendente/gramatica.py
strickergt128/tytus
93216dd9481ea0775da1d2967dc27be66872537f
[ "MIT" ]
null
null
null
#ANALIZADOR LEXICO #---------------------------------------------------------------------------------------- reservadas = { 'add' : 'ADD', 'all' : 'ALL', 'alter' :'ALTER', 'rand' : 'AND', 'as' : 'AS', 'asc':'ASC', 'between' : 'BETWEEN', 'by' : 'BY', 'case' : 'CASE', 'check' : 'CH...
21.589641
89
0.498062
fc8c3db3bf355966288084c5b82279b85192d38d
4,568
py
Python
Muta3DMaps/core/Mods/ProcessI3D.py
NatureGeorge/SIFTS_Plus_Muta_Maps
60f84e6024508e65ee3791103762b95666d3c646
[ "MIT" ]
null
null
null
Muta3DMaps/core/Mods/ProcessI3D.py
NatureGeorge/SIFTS_Plus_Muta_Maps
60f84e6024508e65ee3791103762b95666d3c646
[ "MIT" ]
null
null
null
Muta3DMaps/core/Mods/ProcessI3D.py
NatureGeorge/SIFTS_Plus_Muta_Maps
60f84e6024508e65ee3791103762b95666d3c646
[ "MIT" ]
null
null
null
# @Date: 2019-08-16T23:34:20+08:00 # @Email: 1730416009@stu.suda.edu.cn # @Filename: ProcessI3D.py # @Last modified time: 2019-11-25T21:23:31+08:00 import pandas as pd import wget, time, os from urllib import request from retrying import retry from multiprocessing.dummy import Pool from xml.etree import ElementTree ...
49.652174
148
0.616243
8c876eecc08108ee97c29e4a222f00f7c6df18b9
6,438
py
Python
webapi/tct-security-tcs-tests/inst.xpk.py
linshen/crosswalk-test-suite
e206b2c35fc09e583f3202fc7fc8a656c8e2b5de
[ "BSD-3-Clause" ]
null
null
null
webapi/tct-security-tcs-tests/inst.xpk.py
linshen/crosswalk-test-suite
e206b2c35fc09e583f3202fc7fc8a656c8e2b5de
[ "BSD-3-Clause" ]
null
null
null
webapi/tct-security-tcs-tests/inst.xpk.py
linshen/crosswalk-test-suite
e206b2c35fc09e583f3202fc7fc8a656c8e2b5de
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import os import shutil import glob import time import sys import subprocess import string from optparse import OptionParser, make_option SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__)) PKG_NAME = os.path.basename(SCRIPT_DIR) PARAMETERS = None #XW_ENV = "export DBUS_SESSION_BUS_ADDRESS=...
29.805556
106
0.559491
cc55177840ffd09963c3c065b4c3adc3219f3e5c
1,453
py
Python
examples/quickstart/show_config.py
mvdoc/pycortex
bc8a93cac9518e3c1cd89650c703f9f3814e805b
[ "BSD-2-Clause" ]
423
2015-01-06T02:46:46.000Z
2022-03-23T17:20:38.000Z
examples/quickstart/show_config.py
mvdoc/pycortex
bc8a93cac9518e3c1cd89650c703f9f3814e805b
[ "BSD-2-Clause" ]
243
2015-01-03T02:10:03.000Z
2022-03-31T19:29:48.000Z
examples/quickstart/show_config.py
mvdoc/pycortex
bc8a93cac9518e3c1cd89650c703f9f3814e805b
[ "BSD-2-Clause" ]
136
2015-03-23T20:35:59.000Z
2022-03-09T13:39:10.000Z
""" ===================================================== Finding out where the config and filestore are ===================================================== Easily locating your config file and filestore locations. This comes in useful when things don't work because the config file is not set correctly. """ ...
39.27027
90
0.572608
718ae37a2d0621d4bb9413b03e79621ab4169923
2,955
py
Python
mbta/models.py
MAPC/bostonparks
5efa651736bd9cd7c42372922c50286ff2a61262
[ "BSD-3-Clause" ]
null
null
null
mbta/models.py
MAPC/bostonparks
5efa651736bd9cd7c42372922c50286ff2a61262
[ "BSD-3-Clause" ]
1
2015-05-01T01:30:49.000Z
2015-05-01T01:30:49.000Z
mbta/models.py
MAPC/bostonparks
5efa651736bd9cd7c42372922c50286ff2a61262
[ "BSD-3-Clause" ]
2
2015-05-01T01:31:38.000Z
2019-10-28T05:20:16.000Z
from django.contrib.gis.db import models # Create your models here. class MBTAStop(models.Model): # Stops.csv stop_id = models.CharField(max_length=256) stop_code = models.CharField(max_length=256) stop_name = models.CharField(max_length=256) stop_desc = models.CharField(max_length=256) zone_id...
28.68932
86
0.731641
c2f821f3bf147e3783a05613f188203e201c157b
19,827
py
Python
mergify_engine/tests/unit/test_worker.py
GuillaumeOj/mergify-engine
c11c05d2fa7db8e7195c57147f1c6a845009a718
[ "Apache-2.0" ]
null
null
null
mergify_engine/tests/unit/test_worker.py
GuillaumeOj/mergify-engine
c11c05d2fa7db8e7195c57147f1c6a845009a718
[ "Apache-2.0" ]
null
null
null
mergify_engine/tests/unit/test_worker.py
GuillaumeOj/mergify-engine
c11c05d2fa7db8e7195c57147f1c6a845009a718
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, so...
29.416914
87
0.60231
21e54d48216fc15030f876f6cc6181428cec9170
4,370
py
Python
evalml/pipelines/components/estimators/estimator.py
ObinnaObeleagu/evalml
3b5bf62b08a5a5bc6485ba5387a08c32e1857473
[ "BSD-3-Clause" ]
1
2021-07-28T14:20:35.000Z
2021-07-28T14:20:35.000Z
evalml/pipelines/components/estimators/estimator.py
ObinnaObeleagu/evalml
3b5bf62b08a5a5bc6485ba5387a08c32e1857473
[ "BSD-3-Clause" ]
null
null
null
evalml/pipelines/components/estimators/estimator.py
ObinnaObeleagu/evalml
3b5bf62b08a5a5bc6485ba5387a08c32e1857473
[ "BSD-3-Clause" ]
null
null
null
from abc import abstractmethod from pandas.core.indexes import range from evalml.exceptions import MethodPropertyNotFoundError from evalml.model_family import ModelFamily from evalml.pipelines.components import ComponentBase from evalml.utils import infer_feature_types class Estimator(ComponentBase): """A compo...
35.819672
122
0.661556
b36849a5e073b156a4d691268d1790eebba70920
587
py
Python
scripts/configs/_base_/recog_datasets/aic_test.py
hoho303/AIC_2021
fcb626db91ed81bcb3f72eb7868106cfcb5d92fb
[ "Apache-2.0" ]
null
null
null
scripts/configs/_base_/recog_datasets/aic_test.py
hoho303/AIC_2021
fcb626db91ed81bcb3f72eb7868106cfcb5d92fb
[ "Apache-2.0" ]
null
null
null
scripts/configs/_base_/recog_datasets/aic_test.py
hoho303/AIC_2021
fcb626db91ed81bcb3f72eb7868106cfcb5d92fb
[ "Apache-2.0" ]
null
null
null
test_prefix = '/content/drive/Shareddrives/Google Drive/AIClub/HCM_AI_CHALLENGE/Data/Vin_text/Reg/Crop/' test_ann_file ='/content/drive/Shareddrives/Google Drive/AIClub/HCM_AI_CHALLENGE/Data/Vin_text/Reg/test.txt' test = dict( type='OCRDataset', img_prefix=test_prefix, ann_file=test_ann_file, loader=d...
27.952381
108
0.647359
7436bf0d89fad1be0cc741a9c78c5a16fc7ae1b5
1,184
py
Python
catkin_ws/src/joystick_control/src/heading_to_usv.py
championway/asv_ros
4ded50c48077e1e63586cd32be2354633c163975
[ "MIT" ]
null
null
null
catkin_ws/src/joystick_control/src/heading_to_usv.py
championway/asv_ros
4ded50c48077e1e63586cd32be2354633c163975
[ "MIT" ]
null
null
null
catkin_ws/src/joystick_control/src/heading_to_usv.py
championway/asv_ros
4ded50c48077e1e63586cd32be2354633c163975
[ "MIT" ]
1
2021-05-08T20:05:02.000Z
2021-05-08T20:05:02.000Z
#!/usr/bin/env python import rospy import math from duckiepond.msg import Heading from duckiepond_vehicle.msg import UsvDrive class MotorCmd(object): def __init__(self): self.node_name = rospy.get_name() rospy.loginfo("[%s] Initializing " %(self.node_name)) self.heading = None ...
30.358974
95
0.661318
a622470f5659f8f0ef518cbf77eda6ed073431d4
3,255
py
Python
AutoUpgrade_Selenium/AutoUpgrade.py
yanqiaoyu/SetofAutomatedScripts
0001f2a438963c75f48a797ecbc1d72fa9bb43a4
[ "Apache-2.0" ]
null
null
null
AutoUpgrade_Selenium/AutoUpgrade.py
yanqiaoyu/SetofAutomatedScripts
0001f2a438963c75f48a797ecbc1d72fa9bb43a4
[ "Apache-2.0" ]
null
null
null
AutoUpgrade_Selenium/AutoUpgrade.py
yanqiaoyu/SetofAutomatedScripts
0001f2a438963c75f48a797ecbc1d72fa9bb43a4
[ "Apache-2.0" ]
null
null
null
''' @Author: YanQiaoYu @Github: https://github.com/yanqiaoyu?tab=repositories @Date: 2020-06-29 13:46:06 @LastEditors: YanQiaoYu @LastEditTime: 2020-07-02 13:37:50 @FilePath: /SetofAutomatedScripts/AutoUpgrade_Selenium/AutoUpgrade.py ''' from pynput import keyboard from pynput.keyboard import Key, Controller from sele...
30.420561
128
0.619355
ee88dbdc0fa930fa4a5a4e31ac95483f754e4fd5
1,468
py
Python
scripts/cscap/tileflow/ingest_tileflow.py
akrherz/datateam
2efbaa24ff2e28115eeabce9193c3d3b152068d8
[ "MIT" ]
5
2017-05-20T04:51:55.000Z
2022-03-07T18:55:27.000Z
scripts/cscap/tileflow/ingest_tileflow.py
isudatateam/datateam
eb8e1dad6c05cb1b236689862fe87c56b25ea6fc
[ "MIT" ]
275
2017-03-09T20:31:30.000Z
2022-03-30T22:43:47.000Z
scripts/cscap/tileflow/ingest_tileflow.py
isudatateam/datateam
eb8e1dad6c05cb1b236689862fe87c56b25ea6fc
[ "MIT" ]
3
2020-06-01T15:03:06.000Z
2021-02-01T13:46:58.000Z
"""Tileflow ingest""" import sys import datetime import pytz import pandas as pd import psycopg2 import numpy as np from pyiem.cscap_utils import get_config, get_spreadsheet_client, Spreadsheet CENTRAL_TIME = [ "ISUAG", "GILMORE", "SERF", "CLAY_C", "CLAY_R", "MUDS2", "MUDS3_OLD", "MUDS...
22.9375
77
0.576975
49a6fe9c44ccb6f48e3d5322205b5c29141bf082
309
py
Python
netdisco/discoverables/lg_smart_device.py
jjlawren/netdisco
ffc3cd092bff359b1c1fc1ed51940624b3c8076b
[ "Apache-2.0" ]
234
2016-04-18T23:47:08.000Z
2021-04-15T09:18:11.000Z
env/lib/python3.7/site-packages/netdisco/discoverables/lg_smart_device.py
seanmitch/UPnP
f3cb1ef62657f166971c1c470ce5dfd58bdeeac9
[ "Unlicense" ]
175
2016-04-13T11:25:29.000Z
2019-05-27T03:20:00.000Z
env/lib/python3.7/site-packages/netdisco/discoverables/lg_smart_device.py
seanmitch/UPnP
f3cb1ef62657f166971c1c470ce5dfd58bdeeac9
[ "Unlicense" ]
185
2016-04-13T11:32:11.000Z
2021-03-31T14:26:39.000Z
"""Discover LG smart devices.""" from . import MDNSDiscoverable # pylint: disable=too-few-public-methods class Discoverable(MDNSDiscoverable): """Add support for discovering LG smart devices.""" def __init__(self, nd): super(Discoverable, self).__init__(nd, '_lg-smart-device._tcp.local.')
28.090909
78
0.718447
76889a7ba77dff97aa0e87cbcc10c6ff4cb4c4b6
273
py
Python
setup.py
igred8/laser-rb
1c3d1acc821a5bdaebba8fe63f1013430a1fe80f
[ "MIT" ]
null
null
null
setup.py
igred8/laser-rb
1c3d1acc821a5bdaebba8fe63f1013430a1fe80f
[ "MIT" ]
null
null
null
setup.py
igred8/laser-rb
1c3d1acc821a5bdaebba8fe63f1013430a1fe80f
[ "MIT" ]
null
null
null
from setuptools import find_packages, setup setup( name='src', packages=find_packages(), version='0.1.0', description='Simulations, calculations, reports, and misc. for the UV laser transport to the photo cathode.', author='igad', license='MIT', )
24.818182
113
0.688645
56522c908b53f9d0b9195dffa7c67dd2a6581e75
1,004
py
Python
UniShared_python/website/forms.py
UniShared/unishared
0abc36be9e4262a4928945f70ec030e46e05149b
[ "MIT" ]
null
null
null
UniShared_python/website/forms.py
UniShared/unishared
0abc36be9e4262a4928945f70ec030e46e05149b
[ "MIT" ]
null
null
null
UniShared_python/website/forms.py
UniShared/unishared
0abc36be9e4262a4928945f70ec030e46e05149b
[ "MIT" ]
2
2019-03-03T17:34:48.000Z
2019-04-23T17:34:14.000Z
from django.forms import ModelForm, Form, CharField, ValidationError from website.models import NoteTakingBuddy, Training __author__ = 'arnaud' class DocumentTitleForm(Form): title = CharField(max_length=256) def clean_title(self): title = self.cleaned_data['title'] result = Training.objects...
30.424242
68
0.64243
994bd523542806d6a443bbb56fb9bf904539bca7
13,071
py
Python
cinder/volume/drivers/dell_emc/sc/storagecenter_iscsi.py
liangintel/stx-cinder
f4c43797a3f8c0caebfd8fb67244c084d26d9741
[ "Apache-2.0" ]
null
null
null
cinder/volume/drivers/dell_emc/sc/storagecenter_iscsi.py
liangintel/stx-cinder
f4c43797a3f8c0caebfd8fb67244c084d26d9741
[ "Apache-2.0" ]
null
null
null
cinder/volume/drivers/dell_emc/sc/storagecenter_iscsi.py
liangintel/stx-cinder
f4c43797a3f8c0caebfd8fb67244c084d26d9741
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2015-2017 Dell Inc, or its subsidiaries. # # 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 requi...
46.187279
79
0.536761
818f3eedd771f0c558e9bda6ed59518c44d532dd
13,049
py
Python
src/train.py
andi611/CS-Tacotron
8a0d61899e95802b18024cdf0710ea405bc08878
[ "MIT" ]
20
2019-03-07T13:19:37.000Z
2022-03-27T22:00:55.000Z
src/train.py
andi611/CS-Tacotron
8a0d61899e95802b18024cdf0710ea405bc08878
[ "MIT" ]
5
2020-01-28T22:20:22.000Z
2022-02-09T23:36:55.000Z
src/train.py
samirsahoo007/CS-Tacotron-Pytorch
fe63ef5ddcfc83345cc9c3d128b72a1c4de12682
[ "MIT" ]
8
2019-12-18T07:12:40.000Z
2021-12-21T08:54:38.000Z
# -*- coding: utf-8 -*- # """*********************************************************************************************""" # FileName [ train.py ] # Synopsis [ Trainining script for Tacotron speech synthesis model ] # Author [ Ting-Wei Liu (Andi611) ] # Copyright [ Copyleft(c), Speech Lab, N...
28.869469
216
0.653153
63b8aabc6ee3156e9e90c5c682bcdba5bd57abd0
1,592
py
Python
src/util/__init__.py
Mathtin/overlord
a800f0903e99ffe989efb778937b89d2707ee510
[ "MIT" ]
null
null
null
src/util/__init__.py
Mathtin/overlord
a800f0903e99ffe989efb778937b89d2707ee510
[ "MIT" ]
null
null
null
src/util/__init__.py
Mathtin/overlord
a800f0903e99ffe989efb778937b89d2707ee510
[ "MIT" ]
1
2021-02-15T23:12:45.000Z
2021-02-15T23:12:45.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ MIT License Copyright (c) 2020-present Daniel [Mathtin] Shiko <wdaniil@mail.ru> Project: Overlord discord bot Contributors: Danila [DeadBlasoul] Popov <dead.blasoul@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this softw...
43.027027
111
0.799623
549b38a358011cb46f39af64b34b4863070dcdca
12,010
py
Python
objectModel/Python/cdm/objectmodel/projections/cdm_projection.py
CBA-Consult/CDM
892bceac7a15167c85342cc1c61d7ecdf5f1b78d
[ "CC-BY-4.0", "MIT" ]
null
null
null
objectModel/Python/cdm/objectmodel/projections/cdm_projection.py
CBA-Consult/CDM
892bceac7a15167c85342cc1c61d7ecdf5f1b78d
[ "CC-BY-4.0", "MIT" ]
null
null
null
objectModel/Python/cdm/objectmodel/projections/cdm_projection.py
CBA-Consult/CDM
892bceac7a15167c85342cc1c61d7ecdf5f1b78d
[ "CC-BY-4.0", "MIT" ]
1
2021-09-24T16:51:04.000Z
2021-09-24T16:51:04.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. from typing import Optional, TYPE_CHECKING from cdm.enums import CdmObjectType, CdmAttributeContextType from cdm.objectmodel import CdmObjectDefinition, CdmOperati...
48.04
176
0.690341
265bee6194b3a183bd0ebeab6d3b711a414c7d3a
12,398
py
Python
rfsoc_sam/quick_widgets.py
schelleg/rfsoc_sam
2a4ae0fc1686d1e3146cbea5d8578c7432910b92
[ "BSD-3-Clause" ]
39
2020-02-22T00:40:51.000Z
2022-03-30T00:39:45.000Z
rfsoc_sam/quick_widgets.py
schelleg/rfsoc_sam
2a4ae0fc1686d1e3146cbea5d8578c7432910b92
[ "BSD-3-Clause" ]
7
2021-01-19T18:46:19.000Z
2022-03-10T10:25:43.000Z
rfsoc_sam/quick_widgets.py
schelleg/rfsoc_sam
2a4ae0fc1686d1e3146cbea5d8578c7432910b92
[ "BSD-3-Clause" ]
19
2020-02-25T10:42:51.000Z
2021-12-15T06:40:41.000Z
__author__ = "David Northcote" __organisation__ = "The Univeristy of Strathclyde" __support__ = "https://github.com/strath-sdr/rfsoc_sam" import ipywidgets as ipw class Label(): """Helper class for label widgets. """ def __init__(self, value, svalue='', ...
30.461916
109
0.532344
543287c1e4538b1cb8dfb7b35d7a47ad8569d28f
2,659
py
Python
yanxidemo/yanxi.py
MisterZhouZhou/python3demo
da0b6771cc12e8e1066a115c3f72a90c100108ac
[ "Apache-2.0" ]
3
2019-03-04T08:39:57.000Z
2019-12-06T08:29:47.000Z
yanxidemo/yanxi.py
MisterZhouZhou/python3demo
da0b6771cc12e8e1066a115c3f72a90c100108ac
[ "Apache-2.0" ]
null
null
null
yanxidemo/yanxi.py
MisterZhouZhou/python3demo
da0b6771cc12e8e1066a115c3f72a90c100108ac
[ "Apache-2.0" ]
null
null
null
from urllib import request from bs4 import BeautifulSoup from wordcloud import WordCloud,ImageColorGenerator,STOPWORDS import collections import matplotlib.pyplot as plt def getHtml(): url = r'http://www.tvzn.com/14784/yanyuanbiao.html' # 模拟真实浏览器进行访问 headers = { 'User-Agent': 'Mozilla/5.0 (Window...
34.089744
134
0.66604
65487ac6bc96018c017cba330330a5f730b93d71
221
py
Python
job_app/celeryconfig.py
ahmedezzeldin93/heyjobs
ada72a4ede5eabf04f465ecd0b5f677253e95579
[ "MIT" ]
null
null
null
job_app/celeryconfig.py
ahmedezzeldin93/heyjobs
ada72a4ede5eabf04f465ecd0b5f677253e95579
[ "MIT" ]
null
null
null
job_app/celeryconfig.py
ahmedezzeldin93/heyjobs
ada72a4ede5eabf04f465ecd0b5f677253e95579
[ "MIT" ]
null
null
null
broker_url = 'pyamqp://localhost:5672' task_serializer = 'json' result_serializer = 'json' accept_content = ['json'] timezone = 'Europe/Berlin' enable_utc = True CELERY_IMPORTS=("job_app.tasks") CELERY_IGNORE_RESULT=False
27.625
38
0.778281
35bba7f7eae15fd12f54b2b51b4bc56f7001158b
590
py
Python
2020/src_39th_week.py
fabichoi/1d1p
e978ed5f385114598ef2298385ed19ae61b06f5c
[ "MIT" ]
null
null
null
2020/src_39th_week.py
fabichoi/1d1p
e978ed5f385114598ef2298385ed19ae61b06f5c
[ "MIT" ]
1
2021-08-29T14:31:17.000Z
2021-08-29T14:31:17.000Z
2020/src_39th_week.py
fabichoi/1d1p
e978ed5f385114598ef2298385ed19ae61b06f5c
[ "MIT" ]
null
null
null
# TopCoder : FriendScore class FriendScore: def highestScore(self, friends): ans = 0 n = len(friends[0]) for i in range(n): cnt = 0 for j in range(n): if i == j: continue if friends[i][j] == 'Y': ...
24.583333
73
0.345763
213ca6c7cee21fa66c4e77d089af006f4b88e9af
975
py
Python
chapter-4/charter/renderers/pdf/line_series.py
lucasbyAI/Modular-Programming-with-Python
387bff88e256eb2a4c3be2207908be274270be90
[ "MIT" ]
38
2016-06-07T07:52:00.000Z
2022-02-08T21:29:02.000Z
chapter-4/charter/renderers/pdf/line_series.py
lucasbyAI/Modular-Programming-with-Python
387bff88e256eb2a4c3be2207908be274270be90
[ "MIT" ]
null
null
null
chapter-4/charter/renderers/pdf/line_series.py
lucasbyAI/Modular-Programming-with-Python
387bff88e256eb2a4c3be2207908be274270be90
[ "MIT" ]
35
2016-06-17T07:39:25.000Z
2022-02-02T18:18:49.000Z
# charter.renderers.pdf.line_series # # Renderer for drawing a line series onto the chart in PDF format. from ...constants import * ############################################################################# def draw(chart, canvas): avail_width = CHART_WIDTH - Y_AXIS_WIDTH - MARGIN bucket_width = avail_wi...
28.676471
77
0.548718
23e3dc35b2733751a5984742fc0105c7314e08bc
22,744
py
Python
pyjade/lexer.py
edemocracy/pyjade
4a4f52235795fd6367181a27a6bc1919acc7a2c5
[ "MIT" ]
2
2019-02-27T10:36:17.000Z
2019-02-27T13:18:26.000Z
pyjade/lexer.py
edemocracy/pyjade
4a4f52235795fd6367181a27a6bc1919acc7a2c5
[ "MIT" ]
null
null
null
pyjade/lexer.py
edemocracy/pyjade
4a4f52235795fd6367181a27a6bc1919acc7a2c5
[ "MIT" ]
1
2018-06-20T07:43:53.000Z
2018-06-20T07:43:53.000Z
from __future__ import absolute_import import re from collections import deque import six class Token: def __init__(self, **kwds): self.buffer = None self.__dict__.update(kwds) def __str__(self): return self.__dict__.__str__() def regexec(regex, input): matches = regex.match(inp...
32.537911
147
0.471201
da3bc1afef32a0020bb900f54579368d6746d452
5,077
py
Python
linefood/hooks.py
ahmadRagheb/linefood
834f2ee6adbce5f454d627b32fab43a62329db18
[ "MIT" ]
6
2017-08-21T23:09:29.000Z
2021-05-25T12:48:57.000Z
linefood/hooks.py
bharathjinka09/linefood
834f2ee6adbce5f454d627b32fab43a62329db18
[ "MIT" ]
10
2018-03-09T16:14:49.000Z
2020-11-28T13:58:30.000Z
linefood/hooks.py
bharathjinka09/linefood
834f2ee6adbce5f454d627b32fab43a62329db18
[ "MIT" ]
13
2017-12-21T10:04:01.000Z
2022-01-31T00:05:50.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from . import __version__ as app_version app_name = "linefood" app_title = "linefood" app_publisher = "ahmad ragheb" app_description = "linefood application " app_icon = "octicon octicon-file-directory" app_color = "red" app_email = "ahmedragheb75@gmail.c...
28.683616
91
0.677565
3cfdcff8c91dafc0afc9a6996e8e030e3cba655e
216
py
Python
condastats/__init__.py
sophiamyang/condastats
f275d96d24e0cadf9963e88770c29ceeaaa80c05
[ "BSD-3-Clause" ]
3
2020-01-17T22:17:22.000Z
2021-12-10T18:32:55.000Z
condastats/__init__.py
sophiamyang/condastats
f275d96d24e0cadf9963e88770c29ceeaaa80c05
[ "BSD-3-Clause" ]
7
2021-03-17T13:45:44.000Z
2022-03-25T00:04:47.000Z
condastats/__init__.py
sophiamyang/condastats
f275d96d24e0cadf9963e88770c29ceeaaa80c05
[ "BSD-3-Clause" ]
3
2019-11-03T20:28:31.000Z
2021-03-17T16:19:13.000Z
# -*- coding: utf-8 -*- """Top-level package for condastats.""" __author__ = """Sophia Man Yang""" __version__ = '0.1.2' from ._version import get_versions __version__ = get_versions()['version'] del get_versions
19.636364
39
0.694444
192935158eea8fd1f3fe7e7393f209cfa7f44b89
255
py
Python
web/apis/moments/urls.py
KhomDrake/Remember-Backend
233f72ef3a54300e25946bdc3a1baae5b56d7a25
[ "MIT" ]
null
null
null
web/apis/moments/urls.py
KhomDrake/Remember-Backend
233f72ef3a54300e25946bdc3a1baae5b56d7a25
[ "MIT" ]
null
null
null
web/apis/moments/urls.py
KhomDrake/Remember-Backend
233f72ef3a54300e25946bdc3a1baae5b56d7a25
[ "MIT" ]
null
null
null
from django.urls import path, include from .views import MomentsView from rest_framework.routers import SimpleRouter router = SimpleRouter() router.register('', MomentsView, basename='api.moments') urlpatterns = [ path('', include(router.urls)), ]
21.25
56
0.756863
227b70ab0a4331f272563cd0cc376816a46cf874
691
py
Python
autos/urls.py
Shadow-AI/dj4e-samples
60f21f3c6bbb4bd96641ced82b18be109364452a
[ "MIT" ]
null
null
null
autos/urls.py
Shadow-AI/dj4e-samples
60f21f3c6bbb4bd96641ced82b18be109364452a
[ "MIT" ]
null
null
null
autos/urls.py
Shadow-AI/dj4e-samples
60f21f3c6bbb4bd96641ced82b18be109364452a
[ "MIT" ]
null
null
null
from django.urls import path from . import views app_name = 'autos' urlpatterns = [ path('', views.MainView.as_view(), name='all'), path('main/create/', views.AutoCreate.as_view(), name='auto_create'), path('main/<int:pk>/update/', views.AutoUpdate.as_view(), name="auto_update"), path('main/<int:pk>/d...
43.1875
84
0.678726
6db7465b3be71272e821089d42dee9664498ea8f
6,281
py
Python
ml3d/datasets/scannet.py
eiiijiiiy/Open3D-ML
2a04231df0be39e2b8030e480d342cee5574fb9a
[ "MIT" ]
null
null
null
ml3d/datasets/scannet.py
eiiijiiiy/Open3D-ML
2a04231df0be39e2b8030e480d342cee5574fb9a
[ "MIT" ]
null
null
null
ml3d/datasets/scannet.py
eiiijiiiy/Open3D-ML
2a04231df0be39e2b8030e480d342cee5574fb9a
[ "MIT" ]
null
null
null
import open3d as o3d import numpy as np import os, argparse, pickle, sys from os.path import exists, join, isfile, dirname, abspath, split from pathlib import Path from glob import glob import logging import yaml from .base_dataset import BaseDataset from ..utils import Config, make_dir, DATASET from .utils import BEV...
29.767773
82
0.559943