hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
3f2a269b65ae0fe9d318d9013769d0a87c6d1a66
2,475
py
Python
cesium_app/app_server.py
yaowenxi/cesium
b87c8bcafc8a7707877f8b9e9b111a2a99b5aeee
[ "BSD-3-Clause" ]
41
2016-10-10T23:14:54.000Z
2021-07-08T19:44:14.000Z
cesium_app/app_server.py
cesium-ml/cesium_web
6dd9977ff037982d50f740bfb62012b508eebd29
[ "BSD-3-Clause" ]
200
2016-06-22T19:55:38.000Z
2022-03-22T18:42:19.000Z
cesium_app/app_server.py
yaowenxi/cesium
b87c8bcafc8a7707877f8b9e9b111a2a99b5aeee
[ "BSD-3-Clause" ]
26
2016-04-21T00:50:03.000Z
2019-11-04T20:19:53.000Z
import tornado.web import os import sys import pathlib from baselayer.app.config import Config from . import models from baselayer.app import model_util # This provides `login`, `complete`, and `disconnect` endpoints from social_tornado.routes import SOCIAL_AUTH_ROUTES from .handlers import ( ProjectHandler, ...
30.555556
76
0.641212
0
0
0
0
0
0
0
0
997
0.402828
3f2ad7646cc054828d1f34022e2ec7ed31b8f6a0
903
py
Python
tests/test_building.py
sietekk/elevator
5058d36df323cc31a078c7016c57cc7f4488fcdc
[ "MIT" ]
null
null
null
tests/test_building.py
sietekk/elevator
5058d36df323cc31a078c7016c57cc7f4488fcdc
[ "MIT" ]
null
null
null
tests/test_building.py
sietekk/elevator
5058d36df323cc31a078c7016c57cc7f4488fcdc
[ "MIT" ]
null
null
null
# # Copyright (c) 2016 Michael Conroy # from elevator.building import ( Building, Floor, DEFAULT_FLOOR_QTY, DEFAULT_ELEVATOR_QTY, ) from elevator.elevator import Elevator def test_building(): b1 = Building() assert len(b1.floors) == DEFAULT_FLOOR_QTY, \ "Incorrect default number of f...
24.405405
66
0.660022
0
0
0
0
0
0
0
0
294
0.325581
3f2bc27a1667776823d6302c9923d489d7a4ce6b
707
py
Python
Modulo_3/semana 2/miercoles/main.py
AutodidactaMx/cocid_python
11628f465ff362807a692c79ede26bf30dd8e26a
[ "MIT" ]
null
null
null
Modulo_3/semana 2/miercoles/main.py
AutodidactaMx/cocid_python
11628f465ff362807a692c79ede26bf30dd8e26a
[ "MIT" ]
null
null
null
Modulo_3/semana 2/miercoles/main.py
AutodidactaMx/cocid_python
11628f465ff362807a692c79ede26bf30dd8e26a
[ "MIT" ]
1
2022-03-04T00:57:18.000Z
2022-03-04T00:57:18.000Z
import tkinter as tk from presentacion.formulario import FormularioPersona def centrar_ventana(ventana): aplicacion_ancho = 550 aplicacion_largo = 650 pantall_ancho = ventana.winfo_screenwidth() pantall_largo = ventana.winfo_screenheight() x = int((pantall_ancho/2) - (aplicacion_ancho/2)) y = ...
30.73913
77
0.663366
0
0
0
0
0
0
0
0
80
0.113154
3f2bff3972bb90e7ea59576e6eccf7d56961ec7e
196
py
Python
Voting/urls.py
Poornartha/Odonata
71e8dfc4e8d93c6ecc1a3a155459b7e43bd28cdb
[ "MIT" ]
null
null
null
Voting/urls.py
Poornartha/Odonata
71e8dfc4e8d93c6ecc1a3a155459b7e43bd28cdb
[ "MIT" ]
null
null
null
Voting/urls.py
Poornartha/Odonata
71e8dfc4e8d93c6ecc1a3a155459b7e43bd28cdb
[ "MIT" ]
null
null
null
from django.urls import path from .views import teams_all, team_vote urlpatterns = [ path('teams/all', teams_all, name="teams_all"), path('teams/<int:pk>', team_vote, name="team_vote"), ]
28
56
0.704082
0
0
0
0
0
0
0
0
49
0.25
3f2fbc4cbbd9085f9e4653f26ebfd93f8e5ea745
5,594
py
Python
models/3-Whats goin on/train_code/resnext50/train.py
cns-iu/HuBMAP---Hacking-the-Kidney
1a41c887f8edb0b52f5afade384a17dc3d3efec4
[ "MIT" ]
null
null
null
models/3-Whats goin on/train_code/resnext50/train.py
cns-iu/HuBMAP---Hacking-the-Kidney
1a41c887f8edb0b52f5afade384a17dc3d3efec4
[ "MIT" ]
null
null
null
models/3-Whats goin on/train_code/resnext50/train.py
cns-iu/HuBMAP---Hacking-the-Kidney
1a41c887f8edb0b52f5afade384a17dc3d3efec4
[ "MIT" ]
null
null
null
from Dataset import * from Network import * from Functions import * import os from fastai.distributed import * import argparse import torch try: #from apex.parallel import DistributedDataParallel as DDP from apex.fp16_utils import * from apex import amp, optimizers from apex.multi_tensor_apply import mu...
44.752
163
0.704147
0
0
0
0
0
0
0
0
1,594
0.284948
3f302d5ab9b39b181ba1fa9fc5436b10d4114686
6,220
py
Python
models/node/node.py
InfoCoV/Multi-Cro-CoV-cseBERT
5edc8e6d9c7de285c8fbb537b72f8f8b081d531d
[ "MIT" ]
null
null
null
models/node/node.py
InfoCoV/Multi-Cro-CoV-cseBERT
5edc8e6d9c7de285c8fbb537b72f8f8b081d531d
[ "MIT" ]
null
null
null
models/node/node.py
InfoCoV/Multi-Cro-CoV-cseBERT
5edc8e6d9c7de285c8fbb537b72f8f8b081d531d
[ "MIT" ]
1
2022-02-17T14:32:13.000Z
2022-02-17T14:32:13.000Z
""" NODE model definition and experiment setup. Neural Oblivious Decision Ensembles for Deep Learning on Tabular Data https://arxiv.org/abs/1909.06312 Model details: https://pytorch-tabular.readthedocs.io/en/latest/models/#nodemodel """ import logging import os.path import shutil from sklearn.metrics import classif...
31.414141
78
0.646302
4,625
0.743569
0
0
0
0
0
0
868
0.13955
3f30899107200b08356b7f18f040b82026d98005
8,570
py
Python
dtf/packages/models.py
WebPowerLabs/django-trainings
97f7a96c0fbeb85a001201c74713f7944cb77236
[ "BSD-3-Clause" ]
null
null
null
dtf/packages/models.py
WebPowerLabs/django-trainings
97f7a96c0fbeb85a001201c74713f7944cb77236
[ "BSD-3-Clause" ]
null
null
null
dtf/packages/models.py
WebPowerLabs/django-trainings
97f7a96c0fbeb85a001201c74713f7944cb77236
[ "BSD-3-Clause" ]
null
null
null
from django.db import models from django.core.urlresolvers import reverse from djnfusion import server, key from django.conf import settings from jsonfield import JSONField # TODO: change to this. Currently doesnt work. may have something to do with # the server not in __init__ # from packages.providers.infusionsoft ...
38.430493
96
0.626604
7,789
0.908868
0
0
104
0.012135
0
0
1,365
0.159277
3f3094c51e91fa31dccfedc07336034240d0cf3e
1,438
py
Python
chap 2/2_1.py
hmhuy2000/Reinforcement-Learning-SuttonBartoI
97ca9dc11c4cb4fda74b144e658c3eac756131ff
[ "MIT" ]
null
null
null
chap 2/2_1.py
hmhuy2000/Reinforcement-Learning-SuttonBartoI
97ca9dc11c4cb4fda74b144e658c3eac756131ff
[ "MIT" ]
null
null
null
chap 2/2_1.py
hmhuy2000/Reinforcement-Learning-SuttonBartoI
97ca9dc11c4cb4fda74b144e658c3eac756131ff
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from tqdm import trange class CFG: n = 10 mean = 0.0 variance = 1.0 t = 1000 esp = [0, 0.01, 0.05, 0.1, 0.15, 0.2] n_try = 2000 class bandit(): def __init__(self, m, v): self.m = m self.v = v self.mean = 0.0 ...
21.147059
76
0.553547
544
0.378303
0
0
0
0
0
0
73
0.050765
3f312f416c35a4ef754ae001c14b305991e498d6
2,080
py
Python
jetavator_databricks_client/setup.py
jetavator/jetavator_databricks
719c934b6391f6f41ca34b4d4df8c697c1a25283
[ "Apache-2.0" ]
null
null
null
jetavator_databricks_client/setup.py
jetavator/jetavator_databricks
719c934b6391f6f41ca34b4d4df8c697c1a25283
[ "Apache-2.0" ]
null
null
null
jetavator_databricks_client/setup.py
jetavator/jetavator_databricks
719c934b6391f6f41ca34b4d4df8c697c1a25283
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import io import os from setuptools import setup, find_packages # Package metadata # ---------------- SHORT_NAME = 'databricks_client' NAME = 'jetavator_databricks_client' DESCRIPTION = ( 'Databricks support for the Jetavator engine ' 'to be installed on the client system' ) URL = 'h...
24.186047
73
0.662019
0
0
0
0
0
0
0
0
964
0.463462
3f31a6445fe5a4545fbddede8dd570fd945d12b3
596
py
Python
web-interface/app/application/misc/pages/misc_options/purposes_sampling.py
horvathi94/seqmeta
94f2f04c372181c93a6f68b6efe15b141ef02779
[ "MIT" ]
null
null
null
web-interface/app/application/misc/pages/misc_options/purposes_sampling.py
horvathi94/seqmeta
94f2f04c372181c93a6f68b6efe15b141ef02779
[ "MIT" ]
null
null
null
web-interface/app/application/misc/pages/misc_options/purposes_sampling.py
horvathi94/seqmeta
94f2f04c372181c93a6f68b6efe15b141ef02779
[ "MIT" ]
null
null
null
from dataclasses import dataclass from .base import _MiscOptionBase from application.src.misc.sampling import PurposesOfSampling @dataclass class Editor(_MiscOptionBase): name = "Purpose of sampling" id = "purpose_of_sampling" link = "misc_bp.submit_purpose_of_sampling" description = "The reason the ...
24.833333
60
0.718121
452
0.758389
0
0
463
0.776846
0
0
150
0.251678
3f327b3abcfcf0bb203bb9dab1e2f88e290b8007
1,816
py
Python
src/python3/sdp/scripts/FWR_Postprocess/nstx_singlechannel_analysis.py
LeiShi/Synthetic-Diagnostics-Platform
870120d3fd14b2a3c89c6e6e85625d1e9109a2de
[ "BSD-3-Clause" ]
5
2019-08-16T22:08:19.000Z
2021-02-24T02:47:05.000Z
src/python3/sdp/scripts/FWR_Postprocess/nstx_singlechannel_analysis.py
justthepython/Synthetic-Diagnostics-Platform
5f1cb5c29d182490acbd4f3c167f0e09ec211236
[ "BSD-3-Clause" ]
1
2016-05-11T12:58:00.000Z
2016-05-11T17:18:36.000Z
src/python3/sdp/scripts/FWR_Postprocess/nstx_singlechannel_analysis.py
justthepython/Synthetic-Diagnostics-Platform
5f1cb5c29d182490acbd4f3c167f0e09ec211236
[ "BSD-3-Clause" ]
5
2018-04-29T12:35:59.000Z
2020-01-10T03:38:30.000Z
import sdp.scripts.load_nstx_exp_ref as nstx_exp #import sdp.scripts.FWR2D_NSTX_139047_Postprocess as fwrpp import pickle import numpy as np with open('/p/gkp/lshi/XGC1_NSTX_Case/FullF_XGC_ti191_output/ref_pos.pck','r') as f: ref_pos = pickle.load(f) channel = 9 nt = 50 llim = 1e-7 ulim = 1e-4 time_array = np.lin...
26.705882
102
0.669053
0
0
0
0
0
0
0
0
284
0.156388
3f33208b87772b3914f2f7e4b5518f6f944741b9
1,236
py
Python
tests/integration/suites/default/reboot.py
bularcasergiu/Anjay
a76399199dc9569d58aebc4bf18c494ca2127292
[ "Apache-2.0" ]
null
null
null
tests/integration/suites/default/reboot.py
bularcasergiu/Anjay
a76399199dc9569d58aebc4bf18c494ca2127292
[ "Apache-2.0" ]
null
null
null
tests/integration/suites/default/reboot.py
bularcasergiu/Anjay
a76399199dc9569d58aebc4bf18c494ca2127292
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2017-2020 AVSystem <[email protected]> # # 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 ...
34.333333
75
0.719256
570
0.461165
0
0
0
0
0
0
746
0.60356
3f33ca3b9b3ca0aa03c1d9c5a2a2a55f778438b0
22,381
py
Python
astrodet/scarlet.py
lyf1436/astrodet
72d69fe38c9d744620866682e36a03c668c284f2
[ "MIT" ]
null
null
null
astrodet/scarlet.py
lyf1436/astrodet
72d69fe38c9d744620866682e36a03c668c284f2
[ "MIT" ]
2
2021-04-15T03:03:24.000Z
2021-04-26T19:41:57.000Z
astrodet/scarlet.py
lyf1436/astrodet
72d69fe38c9d744620866682e36a03c668c284f2
[ "MIT" ]
3
2021-03-18T14:08:12.000Z
2021-10-08T04:26:14.000Z
import sys, os import numpy as np import scarlet import sep from astropy.io import ascii import astropy.io.fits as fits import matplotlib import matplotlib.pyplot as plt from matplotlib.patches import Ellipse from astropy.wcs import WCS def write_scarlet_results(datas, observation, starlet_sources, model_frame, ca...
37.116086
131
0.629105
0
0
0
0
0
0
0
0
10,284
0.459497
3f348185cd12109292cb8c384d3bec9afb87b02b
193
py
Python
serve.py
haiyoumeiyou/cherrybrigde
f00a0592240b60cc42b895ad194b0273485956d0
[ "BSD-3-Clause" ]
null
null
null
serve.py
haiyoumeiyou/cherrybrigde
f00a0592240b60cc42b895ad194b0273485956d0
[ "BSD-3-Clause" ]
null
null
null
serve.py
haiyoumeiyou/cherrybrigde
f00a0592240b60cc42b895ad194b0273485956d0
[ "BSD-3-Clause" ]
null
null
null
from application import bootstrap bootstrap() if __name__=='__main__': import cherrypy cherrypy.engine.signals.subscribe() cherrypy.engine.start() cherrypy.engine.block()
19.3
39
0.720207
0
0
0
0
0
0
0
0
10
0.051813
3f3537a4e2a9c606bd390358c783d299bde031c0
2,125
py
Python
ooobuild/lo/smarttags/x_range_based_smart_tag_recognizer.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/smarttags/x_range_based_smart_tag_recognizer.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/smarttags/x_range_based_smart_tag_recognizer.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # 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 applicab...
42.5
215
0.777412
866
0.407529
0
0
286
0.134588
0
0
1,294
0.608941
3f3653bf5b35e045e2b4c2aeff6f681433eea55f
924
py
Python
apprest/plugins/icat/views/ICAT.py
acampsm/calipsoplus-backend
b66690124bd2f2541318ddb83b18e082b5df5676
[ "MIT" ]
4
2018-12-04T15:08:27.000Z
2019-04-11T09:49:41.000Z
apprest/plugins/icat/views/ICAT.py
acampsm/calipsoplus-backend
b66690124bd2f2541318ddb83b18e082b5df5676
[ "MIT" ]
63
2018-11-22T13:07:56.000Z
2021-06-10T20:55:58.000Z
apprest/plugins/icat/views/ICAT.py
AlexRogalskiy/calipsoplus-backend
3f6b034f16668bc154b0f4b759ed62b055f41647
[ "MIT" ]
10
2018-11-23T08:17:28.000Z
2022-01-15T23:41:59.000Z
from rest_framework import status from rest_framework.authentication import SessionAuthentication, BasicAuthentication from rest_framework.permissions import IsAuthenticated from rest_framework.views import APIView from apprest.plugins.icat.helpers.complex_encoder import JsonResponse from apprest.plugins.icat.services...
34.222222
100
0.787879
576
0.623377
0
0
0
0
0
0
85
0.091991
3f374d2a724eacf4543f9a4bee934b7b700f04f6
396
py
Python
python/phevaluator/table_tests/test_hashtable8.py
StTronn/PokerHandEvaluator
3611a7072c2a62844d6aca32d798aafa59e4606d
[ "Apache-2.0" ]
1
2020-11-12T14:35:02.000Z
2020-11-12T14:35:02.000Z
python/phevaluator/table_tests/test_hashtable8.py
StTronn/PokerHandEvaluator
3611a7072c2a62844d6aca32d798aafa59e4606d
[ "Apache-2.0" ]
null
null
null
python/phevaluator/table_tests/test_hashtable8.py
StTronn/PokerHandEvaluator
3611a7072c2a62844d6aca32d798aafa59e4606d
[ "Apache-2.0" ]
null
null
null
import unittest from table_tests.utils import BaseTestNoFlushTable from evaluator.hashtable8 import NO_FLUSH_8 class TestNoFlush8Table(BaseTestNoFlushTable): TOCOMPARE = NO_FLUSH_8 TABLE = [0] * len(TOCOMPARE) VISIT = [0] * len(TOCOMPARE) NUM_CARDS = 8 def test_noflush8_table(self): self.assertListEqua...
23.294118
52
0.765152
236
0.59596
0
0
0
0
0
0
10
0.025253
3f37c1453442f813e72c82a4ee9d8d0dd3dbc36c
921
py
Python
Marcelina_Skoczylas_praca_domowa_3.py
marcelinaskoczylas/python_wprowadzenie_warsztaty_2021
9614d791b253a15a117960deadb7375c681e8a27
[ "MIT" ]
1
2021-11-12T10:17:02.000Z
2021-11-12T10:17:02.000Z
Marcelina_Skoczylas_praca_domowa_3.py
marcelinaskoczylas/python_wprowadzenie_warsztaty_2021
9614d791b253a15a117960deadb7375c681e8a27
[ "MIT" ]
3
2021-11-07T12:27:46.000Z
2021-12-11T18:20:58.000Z
Marcelina_Skoczylas_praca_domowa_3.py
marcelinaskoczylas/python_wprowadzenie_warsztaty_2021
9614d791b253a15a117960deadb7375c681e8a27
[ "MIT" ]
23
2021-11-07T12:16:58.000Z
2021-11-26T21:03:29.000Z
#zadanie 1 i=1 j=1 k=1 ciag=[1,1] while len(ciag)<50: k=i+j j=i i=k ciag.append(k) print(ciag) #zadanie 2 wpisane=str(input("Proszę wpisać dowolne słowa po przecinku ")) zmienne=wpisane.split(",") def funkcja(*args): '''Funkcja sprawdza długość słów i usuwa te, które są ...
18.058824
72
0.606949
0
0
0
0
0
0
0
0
232
0.246809
3f3831fca3eb8519b2004ca6b866229be692631e
91
py
Python
rh_pathfinding/src/rh_pathfinding/engine/geometry/obstacle/lineFinder/__init__.py
RhinohawkUAV/rh_ros
e13077060bdfcc231adee9731ebfddadcd8d6b4a
[ "MIT" ]
4
2020-05-13T19:34:27.000Z
2021-09-20T09:01:10.000Z
rh_pathfinding/src/rh_pathfinding/engine/geometry/obstacle/lineFinder/__init__.py
RhinohawkUAV/rh_ros
e13077060bdfcc231adee9731ebfddadcd8d6b4a
[ "MIT" ]
null
null
null
rh_pathfinding/src/rh_pathfinding/engine/geometry/obstacle/lineFinder/__init__.py
RhinohawkUAV/rh_ros
e13077060bdfcc231adee9731ebfddadcd8d6b4a
[ "MIT" ]
2
2019-09-14T14:45:09.000Z
2020-11-22T01:46:59.000Z
from linePathSegment import LinePathSegment from lineSegmentFinder import LineSegmentFinder
45.5
47
0.923077
0
0
0
0
0
0
0
0
0
0
3f39db2a6e3725e4d6d3a964e14a0df2e6772218
655
py
Python
days/day01/part2.py
jaredbancroft/aoc2021
4eaf339cc0c8566da2af13f7cb9cf6fe87355aac
[ "MIT" ]
null
null
null
days/day01/part2.py
jaredbancroft/aoc2021
4eaf339cc0c8566da2af13f7cb9cf6fe87355aac
[ "MIT" ]
null
null
null
days/day01/part2.py
jaredbancroft/aoc2021
4eaf339cc0c8566da2af13f7cb9cf6fe87355aac
[ "MIT" ]
null
null
null
from helpers import inputs def solution(day): depths = inputs.read_to_list(f"inputs/{day}.txt") part2_total = 0 for index, depth in enumerate(depths): if index - 3 >= 0: current_window = ( int(depth) + int(depths[index - 1]) + int(depths[index - 2]) ) ...
31.190476
76
0.51145
0
0
0
0
0
0
0
0
71
0.108397
3f3a04716997d73eaef4e151bd98036259ad059e
1,183
py
Python
src/unicon/plugins/nxos/n5k/service_statements.py
TestingBytes/unicon.plugins
0600956d805deb4fd790aa3ef591c5d659e85de1
[ "Apache-2.0" ]
18
2019-11-23T23:14:53.000Z
2022-01-10T01:17:08.000Z
src/unicon/plugins/nxos/n5k/service_statements.py
TestingBytes/unicon.plugins
0600956d805deb4fd790aa3ef591c5d659e85de1
[ "Apache-2.0" ]
12
2020-11-09T20:39:25.000Z
2022-03-22T12:46:59.000Z
src/unicon/plugins/nxos/n5k/service_statements.py
TestingBytes/unicon.plugins
0600956d805deb4fd790aa3ef591c5d659e85de1
[ "Apache-2.0" ]
32
2020-02-12T15:42:22.000Z
2022-03-15T16:42:10.000Z
from unicon.eal.dialogs import Statement from .service_patterns import NxosN5kReloadPatterns from unicon.plugins.nxos.service_statements import (login_stmt, password_stmt, enable_vdc, admin_password) from unicon.plugins.generic.service_statements import (save_env, auto_provision, auto_install_dialog, setu...
43.814815
78
0.658495
0
0
0
0
0
0
0
0
90
0.076078
3f3a4efcbbb562167b72ebf68516d5cfd976b799
11,321
py
Python
src/clic/cloud.py
NathanRVance/clic
e28f7f2686f5ac6689b384474e3fdfa4d207f6ec
[ "MIT" ]
2
2017-12-13T03:41:07.000Z
2019-03-12T14:08:42.000Z
src/clic/cloud.py
NathanRVance/clic
e28f7f2686f5ac6689b384474e3fdfa4d207f6ec
[ "MIT" ]
null
null
null
src/clic/cloud.py
NathanRVance/clic
e28f7f2686f5ac6689b384474e3fdfa4d207f6ec
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from clic import nodes import time import os import logging as loggingmod logging = loggingmod.getLogger('cloud') logging.setLevel(loggingmod.WARNING) def getCloud(): return gcloud() class abstract_cloud: def __init__(self): pass def makeImage(self, instanceName, recreateIns...
45.103586
192
0.569473
10,526
0.929777
0
0
0
0
0
0
3,139
0.277272
3f3cb556d7979e79091d66cbe322dfcac371f91c
3,185
py
Python
HyperUnmixing/visualization.py
mdbresh/HyperUnmixing
9ed1be74da48ff80298099497194efa2e97b7fbe
[ "MIT" ]
1
2020-06-03T21:43:29.000Z
2020-06-03T21:43:29.000Z
HyperUnmixing/visualization.py
mdbresh/HyperUnmixing
9ed1be74da48ff80298099497194efa2e97b7fbe
[ "MIT" ]
8
2020-04-13T22:12:03.000Z
2020-05-01T21:37:16.000Z
HyperUnmixing/visualization.py
mdbresh/HyperUnmixing
9ed1be74da48ff80298099497194efa2e97b7fbe
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import ipywidgets as widgets import matplotlib.pyplot as plt from skimage.measure import label, regionprops, regionprops_table from skimage.color import label2rgb def Wav_2_Im(im, wn): ''' Input a 3-D datacube and outputs a normalized slice at one wavenumber. Parameters ---...
25.277778
107
0.690424
0
0
0
0
0
0
0
0
1,652
0.518681
3f3d41979c4cb0e2058dd2cdc43c80be671cc4fb
2,758
py
Python
velocileptors/Utils/loginterp.py
kokron/velocileptors
50016dd66ec9a2d33effecc248a48ca7ea7322bf
[ "MIT" ]
null
null
null
velocileptors/Utils/loginterp.py
kokron/velocileptors
50016dd66ec9a2d33effecc248a48ca7ea7322bf
[ "MIT" ]
null
null
null
velocileptors/Utils/loginterp.py
kokron/velocileptors
50016dd66ec9a2d33effecc248a48ca7ea7322bf
[ "MIT" ]
null
null
null
import numpy as np from scipy.interpolate import InterpolatedUnivariateSpline as interpolate from scipy.misc import derivative import inspect def loginterp(x, y, yint = None, side = "both", lorder = 9, rorder = 9, lp = 1, rp = -2, ldx = 1e-6, rdx = 1e-6,\ interp_min = -12, interp_max = 12, ...
37.27027
120
0.536983
0
0
0
0
0
0
0
0
971
0.352067
3f3d5388905e53963d743e54574d98fe526396ec
4,458
py
Python
src/modeling/calc_target_scale.py
pfnet-research/kaggle-lyft-motion-prediction-4th-place-solution
0bc51075db31a747eeebb7f4775a3cd26ad5f870
[ "MIT" ]
44
2020-12-09T06:15:15.000Z
2022-03-31T02:37:47.000Z
src/modeling/calc_target_scale.py
pfnet-research/kaggle-lyft-motion-prediction-4th-place-solution
0bc51075db31a747eeebb7f4775a3cd26ad5f870
[ "MIT" ]
null
null
null
src/modeling/calc_target_scale.py
pfnet-research/kaggle-lyft-motion-prediction-4th-place-solution
0bc51075db31a747eeebb7f4775a3cd26ad5f870
[ "MIT" ]
7
2020-12-09T10:08:32.000Z
2021-08-17T01:53:51.000Z
from typing import Tuple import dataclasses import numpy as np import torch from pathlib import Path from l5kit.data import LocalDataManager, ChunkedDataset import sys import os from tqdm import tqdm sys.path.append(os.pardir) sys.path.append(os.path.join(os.pardir, os.pardir)) from lib.evaluation.mask import load_...
40.527273
120
0.746074
0
0
0
0
0
0
0
0
987
0.2214
3f3d9f5e7b52389bd248948394c8302b4b2c0b67
3,679
py
Python
examples/solvers using low level utilities/interior_laplace_neumann_panel_polygon.py
dbstein/pybie2d
1c2d6c05f6dbb4f1ab4476d3824f4dde20f90d58
[ "Apache-2.0" ]
11
2018-10-26T17:34:29.000Z
2020-04-27T21:21:33.000Z
examples/solvers using low level utilities/interior_laplace_neumann_panel_polygon.py
dbstein/pybie2d
1c2d6c05f6dbb4f1ab4476d3824f4dde20f90d58
[ "Apache-2.0" ]
null
null
null
examples/solvers using low level utilities/interior_laplace_neumann_panel_polygon.py
dbstein/pybie2d
1c2d6c05f6dbb4f1ab4476d3824f4dde20f90d58
[ "Apache-2.0" ]
null
null
null
import numpy as np import scipy as sp import scipy.sparse import matplotlib as mpl import matplotlib.pyplot as plt import matplotlib.path plt.ion() import pybie2d """o solve an interior Modified Helmholtz problem On a complicated domain using a global quadr Demonstrate how to use the pybie2d package tature This examp...
34.383178
93
0.618918
0
0
0
0
0
0
0
0
1,498
0.407176
3f3e92f1f4a6224cee72e432180bdaba79cbc4b7
576
py
Python
controllers/rcj_soccer_referee_supervisor/rcj_soccer_referee_supervisor.py
dbscoach/webots-soccer-sim-playground
464f9052834d0c6896e6a960113720e8ca4e21df
[ "Apache-2.0" ]
null
null
null
controllers/rcj_soccer_referee_supervisor/rcj_soccer_referee_supervisor.py
dbscoach/webots-soccer-sim-playground
464f9052834d0c6896e6a960113720e8ca4e21df
[ "Apache-2.0" ]
null
null
null
controllers/rcj_soccer_referee_supervisor/rcj_soccer_referee_supervisor.py
dbscoach/webots-soccer-sim-playground
464f9052834d0c6896e6a960113720e8ca4e21df
[ "Apache-2.0" ]
null
null
null
from math import ceil from referee.consts import MATCH_TIME, TIME_STEP from referee.referee import RCJSoccerReferee referee = RCJSoccerReferee( match_time=MATCH_TIME, progress_check_steps=ceil(15/(TIME_STEP/1000.0)), progress_check_threshold=0.5, ball_progress_check_steps=ceil(10/(TIME_STEP/1000.0)), ...
27.428571
58
0.770833
0
0
0
0
0
0
0
0
48
0.083333
3f3edf95fac5cc6b31cb7effd1e2b59006a53ab6
4,675
py
Python
backend/app.py
CMU-IDS-2020/fp-profiler
45edb7c5f5dfcf34854057476558793bc877f031
[ "BSD-3-Clause" ]
null
null
null
backend/app.py
CMU-IDS-2020/fp-profiler
45edb7c5f5dfcf34854057476558793bc877f031
[ "BSD-3-Clause" ]
null
null
null
backend/app.py
CMU-IDS-2020/fp-profiler
45edb7c5f5dfcf34854057476558793bc877f031
[ "BSD-3-Clause" ]
1
2020-11-20T02:56:20.000Z
2020-11-20T02:56:20.000Z
from flask import Flask, request import os from subprocess import Popen, PIPE import json from prof_file_util import load_source, load_line_profile, load_graph_profile from linewise_barchart import linewise_barchart from valgrind import extract_valgrind_result from mem_issue_visualize import mem_issue_visualize app =...
31.802721
106
0.620535
0
0
0
0
4,328
0.925775
0
0
2,159
0.461818
3f3f001f639e3ff68f19c91e138db8007658913f
998
py
Python
py/book/ShortestSubarrayLength.py
danyfang/SourceCode
8168f6058648f2a330a7354daf3a73a4d8a4e730
[ "MIT" ]
null
null
null
py/book/ShortestSubarrayLength.py
danyfang/SourceCode
8168f6058648f2a330a7354daf3a73a4d8a4e730
[ "MIT" ]
null
null
null
py/book/ShortestSubarrayLength.py
danyfang/SourceCode
8168f6058648f2a330a7354daf3a73a4d8a4e730
[ "MIT" ]
null
null
null
''' Leetcode problem No 862 Shortest Subarray with Sum at Least K Solution written by Xuqiang Fang on 1 July, 2018 ''' import collections class Solution(object): def shortestSubarray(self, A, K): """ :type A: List[int] :type K: int :rtype: int """ n = len(A) B...
28.514286
69
0.490982
559
0.56012
0
0
0
0
0
0
203
0.203407
3f3f1b80d7db0ba49872fa346d7180fa077d1cab
2,692
py
Python
djangocms_baseplugins/contact/models.py
benzkji/djangocms-baseplugins
7f041a030ed93dcdec70e4ca777b841846b8f2f2
[ "MIT" ]
2
2019-04-14T01:31:22.000Z
2020-03-05T13:06:57.000Z
djangocms_baseplugins/contact/models.py
benzkji/djangocms-baseplugins
7f041a030ed93dcdec70e4ca777b841846b8f2f2
[ "MIT" ]
32
2017-04-04T09:28:06.000Z
2021-08-18T16:23:02.000Z
djangocms_baseplugins/contact/models.py
bnzk/djangocms-baseplugins
7f041a030ed93dcdec70e4ca777b841846b8f2f2
[ "MIT" ]
null
null
null
import time from ckeditor.fields import RichTextField from django.db import models from django.utils.translation import ugettext_lazy as _ from requests import ConnectionError from djangocms_baseplugins.baseplugin.models import AbstractBasePlugin from djangocms_baseplugins.baseplugin.utils import check_migration_modu...
34.075949
87
0.593239
2,311
0.85847
0
0
0
0
0
0
288
0.106984
3f3fcc2c16b2bfd7c2cf31951c3290a8d5c5992d
355
py
Python
Level1/Lessons76501/minari-76501.py
StudyForCoding/ProgrammersLevel
dc957b1c02cc4383a93b8cbf3d739e6c4d88aa25
[ "MIT" ]
null
null
null
Level1/Lessons76501/minari-76501.py
StudyForCoding/ProgrammersLevel
dc957b1c02cc4383a93b8cbf3d739e6c4d88aa25
[ "MIT" ]
null
null
null
Level1/Lessons76501/minari-76501.py
StudyForCoding/ProgrammersLevel
dc957b1c02cc4383a93b8cbf3d739e6c4d88aa25
[ "MIT" ]
1
2021-04-05T07:35:59.000Z
2021-04-05T07:35:59.000Z
def solution(absolutes, signs): answer = 0 for i in range(len(absolutes)): if signs[i] is True: answer += int(absolutes[i]) else: answer -= int(absolutes[i]) return answer #1. for문 (len(absolutes)), if signs[i] is true: answer += absolutes[i], else: answer...
29.583333
100
0.571831
0
0
0
0
0
0
0
0
120
0.336134
3f40172291607ab0c848f7f1917399766b9b515c
1,082
py
Python
pyexcel/__init__.py
quis/pyexcel
e02f5ff871ba69184d3fb85fa8960da4e883ebdc
[ "BSD-3-Clause" ]
null
null
null
pyexcel/__init__.py
quis/pyexcel
e02f5ff871ba69184d3fb85fa8960da4e883ebdc
[ "BSD-3-Clause" ]
null
null
null
pyexcel/__init__.py
quis/pyexcel
e02f5ff871ba69184d3fb85fa8960da4e883ebdc
[ "BSD-3-Clause" ]
null
null
null
""" pyexcel ~~~~~~~~~~~~~~~~~~~ **pyexcel** is a wrapper library to read, manipulate and write data in different excel formats: csv, ods, xls, xlsx and xlsm. It does not support formulas, styles and charts. :copyright: (c) 2014-2017 by Onni Software Ltd. :license: New BSD License, see LICE...
21.64
62
0.686691
0
0
0
0
0
0
0
0
358
0.330869
3f4174ff9c8ef5d53e5df7cf324c378ca2b1ce02
2,729
py
Python
tests/resources/selenium/test_nfc.py
Avi-Labs/taurus
3aa9bc294778d99be545575467fb5897dc815330
[ "Apache-2.0" ]
1,743
2015-03-30T20:56:03.000Z
2022-03-31T09:08:37.000Z
tests/resources/selenium/test_nfc.py
Avi-Labs/taurus
3aa9bc294778d99be545575467fb5897dc815330
[ "Apache-2.0" ]
1,159
2015-04-01T08:25:53.000Z
2022-03-29T08:15:31.000Z
tests/resources/selenium/test_nfc.py
Avi-Labs/taurus
3aa9bc294778d99be545575467fb5897dc815330
[ "Apache-2.0" ]
497
2015-03-31T21:05:18.000Z
2022-03-17T12:45:21.000Z
# coding=utf-8 import logging import random import string import sys import unittest from time import time, sleep import apiritif import os import re from selenium import webdriver from selenium.common.exceptions import NoSuchElementException, TimeoutException from selenium.webdriver.common.by import By from seleniu...
32.488095
91
0.681568
2,069
0.758153
0
0
0
0
0
0
432
0.1583
3f418694dc8e68bdf0bfc91861f5c5eb0502eab0
5,495
py
Python
src/onegov/search/dsl.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/search/dsl.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/search/dsl.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from elasticsearch_dsl import Search as BaseSearch from elasticsearch_dsl.response import Hit as BaseHit from elasticsearch_dsl.response import Response as BaseResponse def type_from_hit(hit): return hit.meta.index.split('-')[-2] class Search(BaseSearch): """ Extends elastichsearch_dsl's search object with ...
28.471503
79
0.589263
4,783
0.870428
128
0.023294
531
0.096633
0
0
1,688
0.307188
3f4197885d65ac6c21aa8108e7b1eaac4d9a1a2e
3,862
py
Python
DistributedStorageBenchmarkTool/EchoHandler.py
shadoobie/dbench
0cca504048ba918a1502482b7d06a866cda9ab6e
[ "MIT" ]
null
null
null
DistributedStorageBenchmarkTool/EchoHandler.py
shadoobie/dbench
0cca504048ba918a1502482b7d06a866cda9ab6e
[ "MIT" ]
null
null
null
DistributedStorageBenchmarkTool/EchoHandler.py
shadoobie/dbench
0cca504048ba918a1502482b7d06a866cda9ab6e
[ "MIT" ]
null
null
null
from SocketServer import BaseRequestHandler, TCPServer from DistributedStorageBenchmarkTool.StampyMcGetTheLog import StampyMcGetTheLog # from sets import Set import re class EchoHandler(BaseRequestHandler): name = None server = None chunkSizeWriteTimes = [] chunkSizeSet = set() def __init__(self...
39.408163
144
0.676075
3,593
0.930347
0
0
0
0
0
0
678
0.175557
3f42306d062bc9168cc3334b385fbe62bb7498d6
14,054
py
Python
bitten/queue.py
SpamExperts/bitten
924ae157c876eeff7957074b0c51ed4685d4f304
[ "BSD-3-Clause" ]
null
null
null
bitten/queue.py
SpamExperts/bitten
924ae157c876eeff7957074b0c51ed4685d4f304
[ "BSD-3-Clause" ]
1
2020-09-24T05:28:44.000Z
2020-09-28T05:34:19.000Z
bitten/queue.py
SpamExperts/bitten
924ae157c876eeff7957074b0c51ed4685d4f304
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2007-2010 Edgewall Software # Copyright (C) 2005-2007 Christopher Lenz <[email protected]> # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://...
40.973761
85
0.570656
10,867
0.773232
2,039
0.145083
0
0
0
0
5,576
0.396755
3f4449fb416b741bfe8100121589dabfd4bff616
434
py
Python
dynamic-programming/Python/0120-triangle.py
lemonnader/LeetCode-Solution-Well-Formed
baabdb1990fd49ab82a712e121f49c4f68b29459
[ "Apache-2.0" ]
1
2020-04-02T13:31:31.000Z
2020-04-02T13:31:31.000Z
dynamic-programming/Python/0120-triangle.py
lemonnader/LeetCode-Solution-Well-Formed
baabdb1990fd49ab82a712e121f49c4f68b29459
[ "Apache-2.0" ]
null
null
null
dynamic-programming/Python/0120-triangle.py
lemonnader/LeetCode-Solution-Well-Formed
baabdb1990fd49ab82a712e121f49c4f68b29459
[ "Apache-2.0" ]
null
null
null
from typing import List class Solution: def minimumTotal(self, triangle: List[List[int]]) -> int: size = len(triangle) if size == 0: return 0 dp = [0] * size for i in range(size): dp[i] = triangle[size - 1][i] for i in range(size - 2, - 1, -1): ...
27.125
62
0.47235
407
0.937788
0
0
0
0
0
0
0
0
3f4460e3255eb428d7e5749918a9b4a6ef898fc7
5,063
py
Python
regparser/tree/xml_parser/tree_utils.py
pkfec/regulations-parser
ff6b29dcce0449a133e7b93dd462ab3110f80a5d
[ "CC0-1.0" ]
26
2016-06-04T20:48:09.000Z
2021-07-28T18:13:30.000Z
regparser/tree/xml_parser/tree_utils.py
pkfec/regulations-parser
ff6b29dcce0449a133e7b93dd462ab3110f80a5d
[ "CC0-1.0" ]
146
2016-04-06T19:07:54.000Z
2022-01-02T20:09:53.000Z
regparser/tree/xml_parser/tree_utils.py
pkfec/regulations-parser
ff6b29dcce0449a133e7b93dd462ab3110f80a5d
[ "CC0-1.0" ]
28
2016-04-09T20:40:48.000Z
2021-05-08T17:52:59.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from copy import deepcopy from functools import wraps from itertools import chain from lxml import etree from six.moves.html_parser import HTMLParser from regparser.tree.priority_stack import PriorityStack def prepend_parts(parts_prefix, n): """ R...
33.309211
78
0.661268
876
0.172883
0
0
765
0.150977
0
0
1,676
0.330768
3f450a61b8e2b1852d0f1a4d826ca4c04fcbb6db
10,638
py
Python
aiida/orm/implementation/querybuilder.py
PercivalN/aiida-core
b215ed5a7ce9342bb7f671b67e95c1f474cc5940
[ "BSD-2-Clause" ]
1
2019-07-31T04:08:13.000Z
2019-07-31T04:08:13.000Z
aiida/orm/implementation/querybuilder.py
PercivalN/aiida-core
b215ed5a7ce9342bb7f671b67e95c1f474cc5940
[ "BSD-2-Clause" ]
null
null
null
aiida/orm/implementation/querybuilder.py
PercivalN/aiida-core
b215ed5a7ce9342bb7f671b67e95c1f474cc5940
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
36.682759
153
0.601805
9,605
0.902895
0
0
9,637
0.905903
0
0
5,646
0.530739
3f45b952c9fbaad033d9a0d8b00c659fec74f672
675
py
Python
qiskit/util.py
alejomonbar/qiskit-terra
207fe593f6f616b0d55b43afe4451dcaa672871a
[ "Apache-2.0" ]
null
null
null
qiskit/util.py
alejomonbar/qiskit-terra
207fe593f6f616b0d55b43afe4451dcaa672871a
[ "Apache-2.0" ]
null
null
null
qiskit/util.py
alejomonbar/qiskit-terra
207fe593f6f616b0d55b43afe4451dcaa672871a
[ "Apache-2.0" ]
null
null
null
# This code is part of Qiskit. # # (C) Copyright IBM 2017. # # 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...
35.526316
77
0.764444
0
0
0
0
0
0
0
0
631
0.934815
3f46011535915198f4025241d624f246d85211f4
1,049
py
Python
examples/plot_spirals.py
zblz/gammapy
49539f25886433abeedc8852387ab4cd73977006
[ "BSD-3-Clause" ]
null
null
null
examples/plot_spirals.py
zblz/gammapy
49539f25886433abeedc8852387ab4cd73977006
[ "BSD-3-Clause" ]
null
null
null
examples/plot_spirals.py
zblz/gammapy
49539f25886433abeedc8852387ab4cd73977006
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ Plot Milky Way spiral arm models. """ import numpy as np import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt from gammapy.astro.population.spatial import ValleeSpiral, FaucherSpiral vallee_spiral = ValleeSpiral() faucher_spiral = F...
28.351351
85
0.737846
0
0
0
0
0
0
0
0
227
0.216397
3f464d492cb70cfcafd85a5cef1d4df43430ab0b
7,462
py
Python
pytc/fitters/bayesian.py
jharman25/pytc
d9ccde3f04e35a3d821ff37a4ad42e62a048d4ac
[ "Unlicense" ]
20
2017-04-27T16:30:03.000Z
2021-08-12T19:42:05.000Z
pytc/fitters/bayesian.py
jharman25/pytc
d9ccde3f04e35a3d821ff37a4ad42e62a048d4ac
[ "Unlicense" ]
20
2021-05-03T18:02:23.000Z
2022-03-12T12:01:04.000Z
Lib/site-packages/pytc/fitters/bayesian.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
6
2016-06-23T00:54:21.000Z
2020-05-19T05:24:20.000Z
__description__ = \ """ Fitter subclass for performing bayesian (MCMC) fits. """ __author__ = "Michael J. Harms" __date__ = "2017-05-10" from .base import Fitter import emcee, corner import numpy as np import scipy.optimize as optimize import multiprocessing class BayesianFitter(Fitter): """ """ def __...
32.163793
90
0.598767
7,196
0.964353
0
0
643
0.08617
0
0
3,422
0.45859
3f473e7173cd4e6d679a1656ee0296fc204724d2
166
py
Python
code/taskB/models.py
nft-appraiser/nft-appraiser-api
6d6495049851afd3d9bfc6969d0e1c9bc430dc81
[ "MIT" ]
null
null
null
code/taskB/models.py
nft-appraiser/nft-appraiser-api
6d6495049851afd3d9bfc6969d0e1c9bc430dc81
[ "MIT" ]
null
null
null
code/taskB/models.py
nft-appraiser/nft-appraiser-api
6d6495049851afd3d9bfc6969d0e1c9bc430dc81
[ "MIT" ]
null
null
null
from django.db import models class TaskB_table(models.Model): img = models.ImageField(upload_to='taskB/', default='defo') pred_price = models. FloatField()
23.714286
63
0.728916
134
0.807229
0
0
0
0
0
0
14
0.084337
3f47e5cac2344784ba9a8fd0999bd621214986ec
669
py
Python
DesignPatterns/FactoryPattern/SimpleFactory/autoFactory.py
Py-Himanshu-Patel/Learn-Python
47a50a934cabcce3b1cbdd4c88141a51f21d3a05
[ "MIT" ]
null
null
null
DesignPatterns/FactoryPattern/SimpleFactory/autoFactory.py
Py-Himanshu-Patel/Learn-Python
47a50a934cabcce3b1cbdd4c88141a51f21d3a05
[ "MIT" ]
null
null
null
DesignPatterns/FactoryPattern/SimpleFactory/autoFactory.py
Py-Himanshu-Patel/Learn-Python
47a50a934cabcce3b1cbdd4c88141a51f21d3a05
[ "MIT" ]
null
null
null
from inspect import isclass, isabstract, getmembers import autos def isconcrete(obj): return isclass(obj) and not isabstract(obj) class AutoFactory: vehicles = {} # { car model name: class for the car} def __init__(self): self.load_autos() def load_autos(self): classes = getme...
25.730769
72
0.647235
530
0.792227
0
0
0
0
0
0
38
0.056801
3f48698c2248b56650a5e482a06629cf79f5bbbd
9,023
py
Python
Costa Rican Household Poverty Level Prediction/tens.py
hautan/train_tf
0946c7a497703f13c156de9f0135296fd91127ee
[ "Apache-2.0" ]
null
null
null
Costa Rican Household Poverty Level Prediction/tens.py
hautan/train_tf
0946c7a497703f13c156de9f0135296fd91127ee
[ "Apache-2.0" ]
null
null
null
Costa Rican Household Poverty Level Prediction/tens.py
hautan/train_tf
0946c7a497703f13c156de9f0135296fd91127ee
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # We must always import the relevant libraries for our problem at hand. NumPy and TensorFlow are required for this example. # https://www.kaggle.com/c/costa-rican-household-poverty-prediction/data#_=_ import numpy as np np.set_printoptions(threshold='nan') import matplotlib.pyplot as plt import...
62.659722
174
0.715283
0
0
0
0
0
0
0
0
4,456
0.493849
3f4b0ed4eea9580bec7a5e2d579164110301a866
4,095
py
Python
DTL_tests/unittests/test_api.py
rocktavious/DevToolsLib
117200c91a3361e04f7c8e07d2ed4999bbcfc469
[ "MIT" ]
1
2015-03-23T18:52:12.000Z
2015-03-23T18:52:12.000Z
DTL_tests/unittests/test_api.py
rocktavious/DevToolsLib
117200c91a3361e04f7c8e07d2ed4999bbcfc469
[ "MIT" ]
null
null
null
DTL_tests/unittests/test_api.py
rocktavious/DevToolsLib
117200c91a3361e04f7c8e07d2ed4999bbcfc469
[ "MIT" ]
2
2017-05-21T12:50:41.000Z
2021-10-17T03:32:45.000Z
import os import time import unittest from DTL.api import * class TestCaseApiUtils(unittest.TestCase): def setUp(self): apiUtils.synthesize(self, 'mySynthesizeVar', None) self.bit = apiUtils.BitTracker.getBit(self) def test_wildcardToRe(self): self.assertEquals(apiUtils.wildc...
35.301724
155
0.616361
3,867
0.944322
0
0
265
0.064713
0
0
610
0.148962
3f4bd6114512c0dce72c018cd5c68157e1b63e0a
2,840
py
Python
src/yellow_ball/src/ball.py
AndyHUI711/ELEC3210-Group7
08e5d9a7566447349a33ef577499ac2edbb9d6c3
[ "IJG" ]
1
2021-12-16T09:57:44.000Z
2021-12-16T09:57:44.000Z
src/yellow_ball/src/ball.py
AndyHUI711/ELEC3210-Group7
08e5d9a7566447349a33ef577499ac2edbb9d6c3
[ "IJG" ]
null
null
null
src/yellow_ball/src/ball.py
AndyHUI711/ELEC3210-Group7
08e5d9a7566447349a33ef577499ac2edbb9d6c3
[ "IJG" ]
null
null
null
#!/usr/bin/env python import numpy as np import cv2 import math import rospy from cv_bridge import CvBridge, CvBridgeError from std_msgs.msg import Bool from sensor_msgs.msg import Image from geometry_msgs.msg import Twist bridge = CvBridge() laser_scan_on = True def auto_mode_callback(msg): global laser_scan_o...
28.979592
107
0.560915
0
0
0
0
0
0
0
0
180
0.06338
3f4d396e7dff26260074f0fb74d95a3f3b759b61
7,358
py
Python
dlkit/json_/authentication/queries.py
UOC/dlkit
a9d265db67e81b9e0f405457464e762e2c03f769
[ "MIT" ]
2
2018-02-23T12:16:11.000Z
2020-10-08T17:54:24.000Z
dlkit/json_/authentication/queries.py
UOC/dlkit
a9d265db67e81b9e0f405457464e762e2c03f769
[ "MIT" ]
87
2017-04-21T18:57:15.000Z
2021-12-13T19:43:57.000Z
dlkit/json_/authentication/queries.py
UOC/dlkit
a9d265db67e81b9e0f405457464e762e2c03f769
[ "MIT" ]
1
2018-03-01T16:44:25.000Z
2018-03-01T16:44:25.000Z
"""JSON implementations of authentication queries.""" # pylint: disable=no-init # Numerous classes don't require __init__. # pylint: disable=too-many-public-methods,too-few-public-methods # Number of methods are defined in specification # pylint: disable=protected-access # Access to protected methods allow...
36.425743
98
0.671786
6,658
0.904865
0
0
2,296
0.312041
0
0
4,940
0.671378
3f4d7a70b7445e8fd4a01a87b193501aed45d294
2,944
py
Python
PyStellar/stellar/Git/service/git_commit_service.py
psgstellar/Stellar
947d4b3d9d6b9c74d4c9ebd29683793a8d86fad2
[ "Apache-2.0" ]
3
2021-01-24T17:07:55.000Z
2021-02-20T20:11:13.000Z
PyStellar/stellar/Git/service/git_commit_service.py
psgstellar/Stellar
947d4b3d9d6b9c74d4c9ebd29683793a8d86fad2
[ "Apache-2.0" ]
61
2021-01-10T12:59:01.000Z
2021-06-24T09:19:20.000Z
PyStellar/stellar/Git/service/git_commit_service.py
psgstellar/Stellar
947d4b3d9d6b9c74d4c9ebd29683793a8d86fad2
[ "Apache-2.0" ]
1
2021-01-14T05:23:32.000Z
2021-01-14T05:23:32.000Z
import requests import dateutil.parser import pytz from Git.dao.git_dao import GitOwnerRepo class GitCommitCheckService: """Github Public 저장소 커밋 기록 가져오기""" @classmethod def git_public_request(cls, request): """Commit 기록 요청""" owner = request.GET['owner'] repo = request.GET['repo'...
43.940299
176
0.52038
2,902
0.967979
0
0
2,801
0.93429
0
0
840
0.280187
3f4ed1f83045dc59c913f12ff649d24264b9e68d
10,199
py
Python
apps/jetbrains/jetbrains.py
HansKlokkenspel/knausj_talon
af9254f9b5be73187573f113a42c905146c0aabd
[ "Unlicense" ]
null
null
null
apps/jetbrains/jetbrains.py
HansKlokkenspel/knausj_talon
af9254f9b5be73187573f113a42c905146c0aabd
[ "Unlicense" ]
null
null
null
apps/jetbrains/jetbrains.py
HansKlokkenspel/knausj_talon
af9254f9b5be73187573f113a42c905146c0aabd
[ "Unlicense" ]
null
null
null
import os import os.path import requests import time from pathlib import Path from talon import ctrl, ui, Module, Context, actions, clip import tempfile # Courtesy of https://github.com/anonfunc/talon-user/blob/master/apps/jetbrains.py extendCommands = [] # Each IDE gets its own port, as otherwise you wouldn't be ab...
31.772586
90
0.654574
5,803
0.568977
0
0
5,847
0.573291
0
0
3,368
0.330228
3f4f261effbec9ffc0f629f4f48d599f4fe3ee02
752
py
Python
be/model/db_conn.py
CharlesDDDD/bookstore
4052a06f5162100f14c4b762f058204792ceb3c3
[ "Apache-2.0" ]
null
null
null
be/model/db_conn.py
CharlesDDDD/bookstore
4052a06f5162100f14c4b762f058204792ceb3c3
[ "Apache-2.0" ]
null
null
null
be/model/db_conn.py
CharlesDDDD/bookstore
4052a06f5162100f14c4b762f058204792ceb3c3
[ "Apache-2.0" ]
null
null
null
from be.table.user import User from be.table.user_store import User_Store from be.table.store import Store class DBConn: def user_id_exist(self, user_id): row = User.query.filter(User.user_id == user_id).first() if row is None: return False else: return True d...
26.857143
94
0.610372
642
0.853723
0
0
0
0
0
0
0
0
3f4f714fbc65f277fd1dc4334716ace380650956
22,334
py
Python
lib/roi_data_rel/fast_rcnn_rel.py
champon1020/TRACE
8ed0aed87e153af66f02502887a4de0d39867209
[ "MIT" ]
34
2021-08-19T05:59:58.000Z
2022-03-26T09:26:54.000Z
lib/roi_data_rel/fast_rcnn_rel.py
champon1020/TRACE
8ed0aed87e153af66f02502887a4de0d39867209
[ "MIT" ]
8
2021-09-15T05:27:23.000Z
2022-02-27T12:38:03.000Z
lib/roi_data_rel/fast_rcnn_rel.py
champon1020/TRACE
8ed0aed87e153af66f02502887a4de0d39867209
[ "MIT" ]
6
2021-09-16T10:51:38.000Z
2022-03-05T22:48:54.000Z
# Adapted by Ji Zhang, 2019 # # Based on Detectron.pytorch/lib/roi_data/fast_rcnn.py # Original license text: # -------------------------------------------------------- # Copyright (c) 2017-present, Facebook, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in ...
57.266667
138
0.69392
0
0
0
0
0
0
0
0
4,254
0.190472
3f4fa826c96bbe11c4299dd6bc861d0f137a3106
5,957
py
Python
src/mysql/tables.py
katerina7479/sooty-shearwater
1319a6f55443a73e50d265286746edd722404649
[ "MIT" ]
null
null
null
src/mysql/tables.py
katerina7479/sooty-shearwater
1319a6f55443a73e50d265286746edd722404649
[ "MIT" ]
null
null
null
src/mysql/tables.py
katerina7479/sooty-shearwater
1319a6f55443a73e50d265286746edd722404649
[ "MIT" ]
null
null
null
import time import re from src.core.tables import Table, MigrationTable from src.core.constraints import Index class MysqlTable(Table): @staticmethod def _join_cols(cols): '''Join and escape a list''' return ', '.join(['`%s`' % i for i in cols]) @staticmethod def _join_conditionals(r...
35.041176
108
0.583347
5,840
0.980359
0
0
1,777
0.298305
0
0
1,518
0.254826
3f508ed942c873013d3f6f30b02515c9088ebbfe
2,418
py
Python
CvZoneCompetition.py
MoranLeven/CvZomeCompetition
f28dc81ad4139902d831c34649ff3996106a2496
[ "Apache-2.0" ]
null
null
null
CvZoneCompetition.py
MoranLeven/CvZomeCompetition
f28dc81ad4139902d831c34649ff3996106a2496
[ "Apache-2.0" ]
null
null
null
CvZoneCompetition.py
MoranLeven/CvZomeCompetition
f28dc81ad4139902d831c34649ff3996106a2496
[ "Apache-2.0" ]
null
null
null
import cv2 import numpy as np from time import sleep import random length_min = 80 # Minimum length of retangle height_min = 80 # Minimum height of the angle offset = 6 #Error allowed between pixel pos_linha = 550 delay = 60 #FPS of video detect = [] cars = 0 def paste_center (x, y, w, h): x1 = int (w / 2) ...
33.123288
118
0.611249
0
0
0
0
0
0
0
0
184
0.076096
3f520d921ea722830523cfc9c9d0a7a9e7da7bf2
1,048
py
Python
setup.py
jiinus/django-db-prefix
2fae11b30dc339f3d4318a97900cf7cc4ff2cd51
[ "BSD-3-Clause" ]
11
2016-12-17T20:01:43.000Z
2022-02-24T16:35:36.000Z
setup.py
jiinus/django-db-prefix
2fae11b30dc339f3d4318a97900cf7cc4ff2cd51
[ "BSD-3-Clause" ]
4
2018-09-08T23:44:01.000Z
2021-09-22T06:33:16.000Z
setup.py
jiinus/django-db-prefix
2fae11b30dc339f3d4318a97900cf7cc4ff2cd51
[ "BSD-3-Clause" ]
11
2015-11-13T09:26:58.000Z
2021-12-20T11:51:44.000Z
# -*- coding: utf-8 -*- import os.path from distutils.core import setup def read(fname): with open(os.path.join(os.path.dirname(__file__), fname)) as f: return f.read() setup( name='django-db-prefix', version='1.0', keywords='django database', author=u'Ben Slavin <[email protected]...
29.942857
100
0.625954
0
0
0
0
0
0
0
0
601
0.572927
3f52461202339d3dfdcf90633c36a5d40fb4c967
2,104
py
Python
pyleecan/Methods/Slot/HoleUD/build_geometry.py
mjfwest/pyleecan
6946c863bea62d13f100def2d3f905c9de8721d0
[ "Apache-2.0" ]
1
2020-10-19T09:01:00.000Z
2020-10-19T09:01:00.000Z
pyleecan/Methods/Slot/HoleUD/build_geometry.py
mjfwest/pyleecan
6946c863bea62d13f100def2d3f905c9de8721d0
[ "Apache-2.0" ]
null
null
null
pyleecan/Methods/Slot/HoleUD/build_geometry.py
mjfwest/pyleecan
6946c863bea62d13f100def2d3f905c9de8721d0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from numpy import arcsin, arctan, cos, exp, array, angle, pi from numpy import imag as np_imag from scipy.optimize import fsolve from ....Classes.Segment import Segment from ....Classes.SurfLine import SurfLine from ....Classes.Arc1 import Arc1 from ....Methods import ParentMissingError from ....
30.941176
77
0.620722
0
0
0
0
0
0
0
0
732
0.347909
3f52ca8d87119aa7ada69b18dd59026206c97a21
2,861
py
Python
tardis/tardis_portal/auth/localdb_auth.py
nrmay/mytardis
34a460cde6a847c66a6ec3725182c09dc9167bd5
[ "Apache-2.0" ]
null
null
null
tardis/tardis_portal/auth/localdb_auth.py
nrmay/mytardis
34a460cde6a847c66a6ec3725182c09dc9167bd5
[ "Apache-2.0" ]
null
null
null
tardis/tardis_portal/auth/localdb_auth.py
nrmay/mytardis
34a460cde6a847c66a6ec3725182c09dc9167bd5
[ "Apache-2.0" ]
null
null
null
''' Local DB Authentication module. .. moduleauthor:: Gerson Galang <[email protected]> ''' import logging from django.contrib.auth.models import User, Group from django.contrib.auth.backends import ModelBackend from tardis.tardis_portal.auth.interfaces import AuthProvider, GroupProvider, UserProvider lo...
26.009091
90
0.595246
2,328
0.813702
0
0
0
0
0
0
961
0.335897
3f53cdf77e0b0d349cd123391fe47e0189614f36
29,318
py
Python
src/app.py
hubmapconsortium/search-api
21900c9ba5d353ab075d4b2cc217085b85d555b1
[ "MIT" ]
null
null
null
src/app.py
hubmapconsortium/search-api
21900c9ba5d353ab075d4b2cc217085b85d555b1
[ "MIT" ]
248
2020-02-27T20:45:25.000Z
2022-03-30T19:12:58.000Z
src/app.py
sennetconsortium/search-api
01a5c0ab8ec6abd147e5b04477ba10f80fedfdc3
[ "MIT" ]
1
2022-02-03T19:49:55.000Z
2022-02-03T19:49:55.000Z
import os import time from pathlib import Path from flask import Flask, jsonify, abort, request, Response, Request import concurrent.futures import threading import requests import logging import ast from urllib.parse import urlparse from flask import current_app as app from urllib3.exceptions import InsecureRequestWar...
38.934927
167
0.653728
0
0
0
0
6,882
0.234736
0
0
14,782
0.504195
3f55d1d3db5efaf77627369621529da7de9da985
149
py
Python
wordpress/apps.py
2e2a/django-wordpress
5417d98128ea6ad4308b250fdee65226e7deb628
[ "BSD-3-Clause" ]
1
2021-12-03T19:55:27.000Z
2021-12-03T19:55:27.000Z
wordpress/apps.py
2e2a/django-wordpress
5417d98128ea6ad4308b250fdee65226e7deb628
[ "BSD-3-Clause" ]
null
null
null
wordpress/apps.py
2e2a/django-wordpress
5417d98128ea6ad4308b250fdee65226e7deb628
[ "BSD-3-Clause" ]
null
null
null
from django.apps import AppConfig class WordpressAppConfig(AppConfig): name = 'wordpress' default_auto_field = 'django.db.models.AutoField'
24.833333
53
0.771812
113
0.758389
0
0
0
0
0
0
39
0.261745
3f5944acb466684ca6235f591cf5e26e8e10c295
2,613
py
Python
libs/libgmp/libgmp.py
wrobelda/craft-blueprints-kde
366f460cecd5baebdf3a695696767c8c0e5e7c7e
[ "BSD-2-Clause" ]
14
2017-09-04T09:01:03.000Z
2022-01-04T20:09:00.000Z
libs/libgmp/libgmp.py
wrobelda/craft-blueprints-kde
366f460cecd5baebdf3a695696767c8c0e5e7c7e
[ "BSD-2-Clause" ]
14
2017-12-15T08:11:22.000Z
2020-12-29T19:11:13.000Z
libs/libgmp/libgmp.py
wrobelda/craft-blueprints-kde
366f460cecd5baebdf3a695696767c8c0e5e7c7e
[ "BSD-2-Clause" ]
19
2017-09-05T19:16:21.000Z
2020-10-18T12:46:06.000Z
# -*- coding: utf-8 -*- # Copyright 2018 Łukasz Wojniłowicz <[email protected]> # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notic...
42.836066
140
0.738615
1,095
0.418738
0
0
0
0
0
0
1,572
0.601147
3f599143770c118307d670eee5b87e03976f168c
9,712
py
Python
scluster/aws_create_resources.py
dorgun/ncluster
20ba95fb7250a5f7239d704b01bf468a57e8fb7b
[ "MIT" ]
null
null
null
scluster/aws_create_resources.py
dorgun/ncluster
20ba95fb7250a5f7239d704b01bf468a57e8fb7b
[ "MIT" ]
null
null
null
scluster/aws_create_resources.py
dorgun/ncluster
20ba95fb7250a5f7239d704b01bf468a57e8fb7b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Creates resources # This script creates VPC/security group/keypair if not already present import logging import os import sys import time from . import aws_util as u from . import util DRYRUN = False DEBUG = True # Names of Amazon resources that are created. These settings are fixed across ...
37.9375
198
0.631899
0
0
0
0
0
0
0
0
2,638
0.271623
3f59a6465e2607784678cb918b686e6250106802
142
py
Python
ex005-antecessorSucessor/005.py
KaiqueCassal/cursoEmVideoPython
9d37563045091e4d558e283d47a5a49378e9df71
[ "MIT" ]
1
2021-08-11T04:38:33.000Z
2021-08-11T04:38:33.000Z
ex005-antecessorSucessor/005.py
KaiqueCassal/cursoEmVideoPython
9d37563045091e4d558e283d47a5a49378e9df71
[ "MIT" ]
null
null
null
ex005-antecessorSucessor/005.py
KaiqueCassal/cursoEmVideoPython
9d37563045091e4d558e283d47a5a49378e9df71
[ "MIT" ]
null
null
null
num = int(input('Digite um número inteiro: ')) print(f'O número: {num}' f'\nO antecessor: {num - 1}' f'\nO sucessor: {num + 1}')
23.666667
46
0.56338
0
0
0
0
0
0
0
0
102
0.708333
3f59d7981fb0df6af9168f9da7f7187aa7eb35ac
2,253
py
Python
homeassistant/components/ihc/binary_sensor.py
jasperro/core
26d7b2164e8a971506790ae5af06f31abdf278b5
[ "Apache-2.0" ]
7
2019-02-07T14:14:12.000Z
2019-07-28T06:56:10.000Z
homeassistant/components/ihc/binary_sensor.py
jasperro/core
26d7b2164e8a971506790ae5af06f31abdf278b5
[ "Apache-2.0" ]
6
2021-02-08T20:54:31.000Z
2022-03-12T00:50:43.000Z
homeassistant/components/ihc/binary_sensor.py
jasperro/core
26d7b2164e8a971506790ae5af06f31abdf278b5
[ "Apache-2.0" ]
2
2020-04-19T13:35:24.000Z
2020-04-19T13:35:51.000Z
"""Support for IHC binary sensors.""" from homeassistant.components.binary_sensor import BinarySensorDevice from homeassistant.const import CONF_TYPE from . import IHC_CONTROLLER, IHC_INFO from .const import CONF_INVERTING from .ihcdevice import IHCDevice def setup_platform(hass, config, add_entities, discovery_info...
28.884615
74
0.624057
1,128
0.500666
0
0
233
0.103418
0
0
513
0.227696
3f5c9bb50fc14ea221608e07d43fdec0123aef80
1,009
py
Python
script/TuneLR.py
yipeiw/parameter_server
07cbfbf2dc727ee0787d7e66e58a1f7fd8333aff
[ "Apache-2.0" ]
null
null
null
script/TuneLR.py
yipeiw/parameter_server
07cbfbf2dc727ee0787d7e66e58a1f7fd8333aff
[ "Apache-2.0" ]
null
null
null
script/TuneLR.py
yipeiw/parameter_server
07cbfbf2dc727ee0787d7e66e58a1f7fd8333aff
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import os.path as path import sys tmpDir = '../config/tmp/' logDir = '../config/tmp/log/' conffile = sys.argv[1] runfile=sys.argv[2] lr = [0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0] fout = open(runfile, 'w') fout.write("#!/bin/bash\n\n\n") fws = {} confname = path.splitext(path.basename(conffil...
22.422222
73
0.607532
0
0
0
0
0
0
0
0
201
0.199207
3f5ccedf65dad52ce01efa31808cc2b63ebe8af6
9,770
py
Python
pc.py
Omar8345/tic-tac-toe
e7fe6d9699bef3297227058defbb6d4ff35f10f4
[ "MIT" ]
null
null
null
pc.py
Omar8345/tic-tac-toe
e7fe6d9699bef3297227058defbb6d4ff35f10f4
[ "MIT" ]
null
null
null
pc.py
Omar8345/tic-tac-toe
e7fe6d9699bef3297227058defbb6d4ff35f10f4
[ "MIT" ]
1
2022-02-10T17:47:27.000Z
2022-02-10T17:47:27.000Z
# Tic Tac Toe Game # Original repository: (https://github.com/Omar8345/tic-tac-toe) # Author: Omar Mostafa # Date: 08/02/2022 # Version: 1.0 # Description: Tic Tac Toe Game made using Python Tkitner (Open Source) # This game is a simple game that can be played with two players # and can b...
39.877551
125
0.523439
0
0
0
0
0
0
0
0
3,604
0.368884
3f5d917c88eccde66a033389ff984f57d3efa801
2,336
py
Python
nvtabular/utils.py
deepyaman/NVTabular
b814b5ed9866be29d3c13fd00154965a3fec7fc0
[ "Apache-2.0" ]
null
null
null
nvtabular/utils.py
deepyaman/NVTabular
b814b5ed9866be29d3c13fd00154965a3fec7fc0
[ "Apache-2.0" ]
null
null
null
nvtabular/utils.py
deepyaman/NVTabular
b814b5ed9866be29d3c13fd00154965a3fec7fc0
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2020, 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 ...
31.567568
99
0.675086
0
0
0
0
0
0
0
0
1,009
0.431935
3f5e544534b4294729194a2befc9af168507a49c
1,908
py
Python
tests/segmentation/segmanagetest.py
j-h-m/Media-Journaling-Tool
4ab6961e2768dc002c9bbad182f83188631f01bd
[ "BSD-3-Clause" ]
null
null
null
tests/segmentation/segmanagetest.py
j-h-m/Media-Journaling-Tool
4ab6961e2768dc002c9bbad182f83188631f01bd
[ "BSD-3-Clause" ]
null
null
null
tests/segmentation/segmanagetest.py
j-h-m/Media-Journaling-Tool
4ab6961e2768dc002c9bbad182f83188631f01bd
[ "BSD-3-Clause" ]
null
null
null
import unittest from maskgen import image_wrap import numpy from maskgen.segmentation.segmanage import select_region,segmentation_classification,convert_color from tests.test_support import TestSupport class SegManageTestCase(TestSupport): def test_select_region(self): img = numpy.zeros((500,500,3),dtyp...
44.372093
109
0.682914
1,654
0.866876
0
0
0
0
0
0
101
0.052935
3f5ea42854995b843b23cfd97be8ee560fd1c66b
6,932
py
Python
aimacode/tests/test_text.py
juandarr/AIND-planning
f74d41657d6f3d95a3b57ec4fd6e766d894d2f0d
[ "MIT" ]
null
null
null
aimacode/tests/test_text.py
juandarr/AIND-planning
f74d41657d6f3d95a3b57ec4fd6e766d894d2f0d
[ "MIT" ]
null
null
null
aimacode/tests/test_text.py
juandarr/AIND-planning
f74d41657d6f3d95a3b57ec4fd6e766d894d2f0d
[ "MIT" ]
null
null
null
import pytest import os import random from text import * # noqa from utils import isclose, DataFile def test_unigram_text_model(): flatland = DataFile("EN-text/flatland.txt").read() wordseq = words(flatland) P = UnigramTextModel(wordseq) s, p = viterbi_segment('itiseasytoreadwordswitho...
33.326923
124
0.542268
0
0
0
0
0
0
0
0
2,420
0.349106
3f5f2e64673d1e50e2bb1b2fb203375596490210
5,983
py
Python
implementations/python3/pysatl/apdu_tool.py
sebastien-riou/SATL
b95d0e784d2e8e1384381d4d5b8b448d3d1798cf
[ "Apache-2.0" ]
4
2020-05-13T10:13:55.000Z
2021-10-20T04:43:07.000Z
implementations/python3/pysatl/apdu_tool.py
TiempoSecure/SATL
b95d0e784d2e8e1384381d4d5b8b448d3d1798cf
[ "Apache-2.0" ]
4
2020-07-22T16:06:31.000Z
2021-07-25T19:51:41.000Z
implementations/python3/pysatl/apdu_tool.py
TiempoSecure/SATL
b95d0e784d2e8e1384381d4d5b8b448d3d1798cf
[ "Apache-2.0" ]
2
2019-05-12T21:15:00.000Z
2020-09-23T09:05:24.000Z
import re import argparse import os import sys import logging import traceback import pysatl class EtsiTs101955(object): COMMENT_MARKER = "REM" COMMAND_MARKER = "CMD" RESET_MARKER = "RST" INIT_MARKER = "INI" OFF_MARKER = "OFF" def __init__(self, cmdHandler): self._cmdHandler = cmdHandl...
35.194118
91
0.503594
5,833
0.974929
0
0
0
0
0
0
621
0.103794
3f5f46e8ad8a46b0f24a67ae6817aebda546ccdc
11,979
py
Python
host-software/easyhid.py
kavka1983/key
9185c156fd40a1cab358b2464af4b27cacf71935
[ "MIT" ]
1
2020-06-14T22:31:20.000Z
2020-06-14T22:31:20.000Z
host-software/easyhid.py
kavka1983/key
9185c156fd40a1cab358b2464af4b27cacf71935
[ "MIT" ]
null
null
null
host-software/easyhid.py
kavka1983/key
9185c156fd40a1cab358b2464af4b27cacf71935
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2017 [email protected] # Licensed under the MIT license (http://opensource.org/licenses/MIT) import cffi import ctypes.util import platform ffi = cffi.FFI() ffi.cdef(""" struct hid_device_info { char *path; unsigned short vendor_id; unsigned short p...
31.690476
105
0.622339
7,910
0.660322
0
0
0
0
0
0
4,714
0.393522
3f6013f8688ca16e27ef6533df61114f0ade964b
22,620
py
Python
rules/check_imported_dlls.py
deptofdefense/SalSA
7ef771398e3d59597bade95d0a23540de0842e2a
[ "MIT" ]
84
2018-01-07T19:43:45.000Z
2021-12-23T14:17:44.000Z
rules/check_imported_dlls.py
deptofdefense/SalSA
7ef771398e3d59597bade95d0a23540de0842e2a
[ "MIT" ]
7
2018-04-02T20:24:28.000Z
2019-06-07T21:48:04.000Z
rules/check_imported_dlls.py
deptofdefense/SalSA
7ef771398e3d59597bade95d0a23540de0842e2a
[ "MIT" ]
18
2017-12-26T19:44:46.000Z
2021-09-13T12:21:02.000Z
""" Align imported dlls/functions to executable functionality. """ import sys # import all supported ordinal decodings from rules.ordinal_mappings import advapi32 from rules.ordinal_mappings import cabinet from rules.ordinal_mappings import comctl32 from rules.ordinal_mappings import mfc42 from rules.ordinal_mappings ...
119.052632
354
0.780858
0
0
0
0
0
0
0
0
20,113
0.889169
3f6145c13e10fe4a1dbf8c0b4288b82e127765e5
4,046
py
Python
mqttVec.py
Hamlet3000/mqttVec
65b02446d23ce7c4583b4bf5c7cbe7a84cab0c67
[ "CC0-1.0" ]
null
null
null
mqttVec.py
Hamlet3000/mqttVec
65b02446d23ce7c4583b4bf5c7cbe7a84cab0c67
[ "CC0-1.0" ]
null
null
null
mqttVec.py
Hamlet3000/mqttVec
65b02446d23ce7c4583b4bf5c7cbe7a84cab0c67
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 import anki_vector import paho.mqtt.client as mqtt import time ############################################################################### def main(): voltage = 0 batlevel = 0 charging = 0 docked = 0 status = "error" ltime = time.strftime("%d.%m.%Y %H:%M:%S"...
31.364341
108
0.579832
0
0
0
0
0
0
0
0
1,627
0.402126
3f6337b447bfd743f2d66c927077a80e24dcc381
428
py
Python
examples/scanner_ibeacon_example.py
hbcho/beacontools1
82606d871c72bccb8962f50cb374595bcc2ab77d
[ "MIT" ]
null
null
null
examples/scanner_ibeacon_example.py
hbcho/beacontools1
82606d871c72bccb8962f50cb374595bcc2ab77d
[ "MIT" ]
null
null
null
examples/scanner_ibeacon_example.py
hbcho/beacontools1
82606d871c72bccb8962f50cb374595bcc2ab77d
[ "MIT" ]
null
null
null
import time from beacontools import BeaconScanner, IBeaconFilter def callback(bt_addr, rssi, packet, additional_info): print("<%s, %d> %s %s" % (bt_addr, rssi, packet, additional_info)) # scan for all iBeacon advertisements from beacons with the specified uuid scanner = BeaconScanner(callback, device_filter...
30.571429
76
0.764019
0
0
0
0
0
0
0
0
129
0.301402
3f69604976a8b164013d06794b381ad086d3bb5d
499
py
Python
desafio61.py
rafarbop/Python
e304993a6c73eacd8fffd7c67286206516e5faea
[ "MIT" ]
null
null
null
desafio61.py
rafarbop/Python
e304993a6c73eacd8fffd7c67286206516e5faea
[ "MIT" ]
null
null
null
desafio61.py
rafarbop/Python
e304993a6c73eacd8fffd7c67286206516e5faea
[ "MIT" ]
null
null
null
# Desafio 61 Curso em Video Python # By Rafabr from estrutura_modelo import cabecalho, rodape cabecalho(61, "Termos de uma Progressão Aritmética - II") while True: try: p0 = float(input('Digite o Termo inicial da PA: ')) r = float(input('Digite a razão da PA: ')) except ValueError: pr...
18.481481
59
0.607214
0
0
0
0
0
0
0
0
212
0.421471
3f69df2d4bab9abaeedc1a340100793f3dcde991
485
py
Python
setup.py
leandron/steinlib
bbc0295fb1ebf8dce7d06c750db126f6240b4617
[ "MIT" ]
4
2017-04-02T14:14:32.000Z
2021-10-12T23:22:17.000Z
setup.py
leandron/steinlib
bbc0295fb1ebf8dce7d06c750db126f6240b4617
[ "MIT" ]
null
null
null
setup.py
leandron/steinlib
bbc0295fb1ebf8dce7d06c750db126f6240b4617
[ "MIT" ]
null
null
null
from setuptools import setup tests_require = [ 'cov-core', 'mock', 'nose2', ] setup(name='steinlib', version='0.1', description='Python bindings for Steinlib format.', url='http://github.com/leandron/steinlib', author='Leandro Nunes', author_email='leandron85@...
24.25
57
0.618557
0
0
0
0
0
0
0
0
192
0.395876
3f6a18b0d4c80fcdd062def647e4e3d88b2df3b9
55,602
py
Python
usdzconvert/usdStageWithFbx.py
summertriangle-dev/usdzconvert-docker
9953845f3a83f8cc3d5380a4ccae8bc39753d550
[ "MIT" ]
3
2021-03-10T00:34:18.000Z
2021-10-14T02:52:41.000Z
usdzconvert/usdStageWithFbx.py
summertriangle-dev/usdzconvert-docker
9953845f3a83f8cc3d5380a4ccae8bc39753d550
[ "MIT" ]
null
null
null
usdzconvert/usdStageWithFbx.py
summertriangle-dev/usdzconvert-docker
9953845f3a83f8cc3d5380a4ccae8bc39753d550
[ "MIT" ]
null
null
null
from pxr import * import os, os.path import numpy import re import usdUtils import math import imp usdStageWithFbxLoaded = True try: imp.find_module('fbx') import fbx except ImportError: usdUtils.printError("Failed to import fbx module. Please install FBX Python bindings from http://www.autodesk.com/fbx ...
45.168156
176
0.635229
52,763
0.948941
0
0
0
0
0
0
3,150
0.056653
3f6b95561ed162423b6adee3e5e40b725abe8dde
3,291
py
Python
modules/ghautoknit/EmbeddedConstraint.py
fstwn/ghautokn
5ca6d07df601d34be5a67fe6c76a942daef50a85
[ "MIT" ]
2
2021-02-19T19:55:21.000Z
2021-10-13T23:55:56.000Z
modules/ghautoknit/EmbeddedConstraint.py
fstwn/ghautoknit
5ca6d07df601d34be5a67fe6c76a942daef50a85
[ "MIT" ]
null
null
null
modules/ghautoknit/EmbeddedConstraint.py
fstwn/ghautoknit
5ca6d07df601d34be5a67fe6c76a942daef50a85
[ "MIT" ]
null
null
null
# PYTHON STANDARD LIBRARY IMPORTS ---------------------------------------------- from __future__ import absolute_import from __future__ import division # LOCAL MODULE IMPORTS --------------------------------------------------------- from ghautoknit.StoredConstraint import StoredConstraint # ALL LIST -----------------...
35.387097
80
0.485567
2,678
0.813734
0
0
0
0
0
0
1,389
0.42206
3f6d7159e38e2302b0b79887ec33606e37733f75
1,516
py
Python
vr/server/tests/test_build.py
isabella232/vr.server
705511f8176bda0627be1ae86a458178589ee3db
[ "MIT" ]
null
null
null
vr/server/tests/test_build.py
isabella232/vr.server
705511f8176bda0627be1ae86a458178589ee3db
[ "MIT" ]
3
2016-12-15T21:55:02.000Z
2019-02-13T11:43:29.000Z
vr/server/tests/test_build.py
isabella232/vr.server
705511f8176bda0627be1ae86a458178589ee3db
[ "MIT" ]
2
2017-01-16T09:31:03.000Z
2022-03-26T09:21:36.000Z
import tempfile import pytest from dateutil.relativedelta import relativedelta from django.utils import timezone from django.core.files import File from vr.server import models from vr.server.tests import randurl from vr.common.utils import randchars pytestmark = pytest.mark.usefixtures('postgresql') pytestmark = ...
25.694915
70
0.622691
192
0.126649
0
0
0
0
0
0
51
0.033641
3f6f2cf82e789df4f6fa6a684b85e6cb348c35e2
629
py
Python
apps/api/v1/pagination.py
asmuratbek/oobamarket
1053976a13ea84b9aabfcbbcbcffd79549ce9538
[ "MIT" ]
null
null
null
apps/api/v1/pagination.py
asmuratbek/oobamarket
1053976a13ea84b9aabfcbbcbcffd79549ce9538
[ "MIT" ]
7
2020-06-05T23:36:01.000Z
2022-01-13T01:42:07.000Z
apps/api/v1/pagination.py
asmuratbek/oobamarket
1053976a13ea84b9aabfcbbcbcffd79549ce9538
[ "MIT" ]
null
null
null
from rest_framework.pagination import LimitOffsetPagination, PageNumberPagination class CategoryLimitPagination(PageNumberPagination): page_size = 20 page_size_query_param = 'page_size' max_page_size = 40 class ProductLimitPagination(PageNumberPagination): page_size = 20 page_size_query_param = ...
24.192308
81
0.779014
535
0.850556
0
0
0
0
0
0
44
0.069952
3f715eb5609a277ea4d93cce4d190d4b920a7477
7,796
py
Python
GraphOfDocs_Representation/graph_algos.py
imis-lab/book-chapter
8260a60ec91dd29616eeed80f34bdea00fb73cd7
[ "MIT" ]
null
null
null
GraphOfDocs_Representation/graph_algos.py
imis-lab/book-chapter
8260a60ec91dd29616eeed80f34bdea00fb73cd7
[ "MIT" ]
null
null
null
GraphOfDocs_Representation/graph_algos.py
imis-lab/book-chapter
8260a60ec91dd29616eeed80f34bdea00fb73cd7
[ "MIT" ]
null
null
null
import time import json import traceback import numpy as np from statistics import mean from sklearn import preprocessing from sklearn.model_selection import train_test_split from sklearn.linear_model import LogisticRegression from sklearn.metrics import classification_report class GraphAlgos: """ ...
41.913978
124
0.608261
7,504
0.962545
0
0
1,645
0.211006
0
0
3,533
0.453181
3f730b00ede0a815c4c62737f803ff84e093f24f
3,124
py
Python
Code/Components/Synthesis/testdata/current/simulation/synthregression/wtermtest.py
rtobar/askapsoft
6bae06071d7d24f41abe3f2b7f9ee06cb0a9445e
[ "BSL-1.0", "Apache-2.0", "OpenSSL" ]
1
2020-06-18T08:37:43.000Z
2020-06-18T08:37:43.000Z
Code/Components/Synthesis/testdata/current/simulation/synthregression/wtermtest.py
ATNF/askapsoft
d839c052d5c62ad8a511e58cd4b6548491a6006f
[ "BSL-1.0", "Apache-2.0", "OpenSSL" ]
null
null
null
Code/Components/Synthesis/testdata/current/simulation/synthregression/wtermtest.py
ATNF/askapsoft
d839c052d5c62ad8a511e58cd4b6548491a6006f
[ "BSL-1.0", "Apache-2.0", "OpenSSL" ]
null
null
null
# regression tests with gridders taking w-term into account # some fixed parameters are given in wtermtest_template.in from synthprogrunner import * def analyseResult(spr, checkWeights=True): ''' spr - synthesis program runner (to run imageStats) throws exceptions if something is wrong, otherwise just...
42.216216
142
0.717029
0
0
0
0
0
0
0
0
1,476
0.472471
3f731bc8d56706afd6b8d8a2244161c707b604bd
6,047
py
Python
manage/fuzzytranslation.py
Acidburn0zzz/browser-update
fed7b4c52deccd582fcf8b8cca4809607bbb32cd
[ "MIT" ]
2
2017-10-06T15:53:23.000Z
2017-10-06T15:53:38.000Z
manage/fuzzytranslation.py
Acidburn0zzz/browser-update
fed7b4c52deccd582fcf8b8cca4809607bbb32cd
[ "MIT" ]
null
null
null
manage/fuzzytranslation.py
Acidburn0zzz/browser-update
fed7b4c52deccd582fcf8b8cca4809607bbb32cd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Jun 12 14:21:31 2016 @author: TH """ #%% import polib #%% #old (translated) string #new renamed string pairs=""" An initiative by web designers to inform users about browser-updates An initiative by websites to inform users to update their web browser If you are on a comput...
29.21256
197
0.599471
0
0
0
0
0
0
0
0
2,795
0.462213
58ac40be7eaf9e54cb6bdb3fcb14931b75949783
2,401
py
Python
scripts/test_template.py
1466899531/auto_api_test
cb0f474394ef776d4b7710821b74065307a551b2
[ "MIT" ]
16
2021-01-21T05:07:15.000Z
2022-02-20T06:34:28.000Z
scripts/test_template.py
liucong233/auto_api_test
303dc2962ad9b9917cb6a31e311e4ca711f7c7bf
[ "MIT" ]
null
null
null
scripts/test_template.py
liucong233/auto_api_test
303dc2962ad9b9917cb6a31e311e4ca711f7c7bf
[ "MIT" ]
7
2021-01-21T05:07:42.000Z
2022-01-04T03:56:25.000Z
# -*- coding:utf-8 -*- """ @File : test_template @Author : Chen @Contact : [email protected] @Date : 2021/1/20 20:09 @Desc : """ # 导包 import pytest import requests from time import sleep from api.template_api import TemplateAPI from tools.get_log import GetLog from tools.read_file import read_json import allure # 获...
28.583333
92
0.634736
2,323
0.840753
0
0
2,398
0.867897
0
0
947
0.342743
58af6add6122e05924d2e3ff9cd5a71f9446a5c7
5,090
py
Python
dockerfilegenerator/generator.py
ccurcanu/aws-serverless-dockerfile-generator
cb1e272d21337074870c0b1f17c7535cd1e7c217
[ "Apache-2.0" ]
2
2019-08-05T02:24:56.000Z
2020-04-30T22:16:00.000Z
dockerfilegenerator/generator.py
ccurcanu/aws-serverless-dockerfile-generator
cb1e272d21337074870c0b1f17c7535cd1e7c217
[ "Apache-2.0" ]
1
2020-04-11T16:34:08.000Z
2020-04-11T19:29:26.000Z
dockerfilegenerator/generator.py
ccurcanu/aws-serverless-dockerfile-generator
cb1e272d21337074870c0b1f17c7535cd1e7c217
[ "Apache-2.0" ]
1
2019-08-05T02:24:59.000Z
2019-08-05T02:24:59.000Z
# -*- coding: utf-8 -*- import botocore.exceptions import logging import dockerfilegenerator.lib.constants as constants import dockerfilegenerator.lib.exceptions as exceptions import dockerfilegenerator.lib.versions as versions import dockerfilegenerator.lib.jsonstore as jsonstore import dockerfilegenerator.lib.s3sto...
39.765625
78
0.662279
4,406
0.865619
0
0
1,396
0.274263
0
0
580
0.113949
58af85873ae33fb22513395345bd12fb92d5791b
1,179
py
Python
ajustes_UM/tesis/main/urls.py
abelgonzalez/ajustes
f6f99aea18cfb82750805321abfc822d8a6ec5ed
[ "MIT" ]
1
2015-03-04T13:04:33.000Z
2015-03-04T13:04:33.000Z
ajustes_UM/tesis/main/urls.py
abelgonzalez/ajustes
f6f99aea18cfb82750805321abfc822d8a6ec5ed
[ "MIT" ]
null
null
null
ajustes_UM/tesis/main/urls.py
abelgonzalez/ajustes
f6f99aea18cfb82750805321abfc822d8a6ec5ed
[ "MIT" ]
null
null
null
from django.conf.urls import patterns, url from main import views urlpatterns = patterns('', url(r'^$', views.inicio, name='inicio'), url(r'^acerca/', views.acerca, name='acerca'), url(r'^contacto/', views.contacto, name='contacto'), ...
56.142857
116
0.546226
0
0
0
0
0
0
0
0
407
0.345208
58afa3b02632f4e434958664a87781b4ca073a2a
394
py
Python
python/0011. maxArea.py
whtahy/leetcode
a2955123d203b155455ceefe38514fd0077d6db9
[ "CC0-1.0" ]
1
2017-12-09T05:37:51.000Z
2017-12-09T05:37:51.000Z
python/0011. maxArea.py
whtahy/leetcode
a2955123d203b155455ceefe38514fd0077d6db9
[ "CC0-1.0" ]
null
null
null
python/0011. maxArea.py
whtahy/leetcode
a2955123d203b155455ceefe38514fd0077d6db9
[ "CC0-1.0" ]
null
null
null
class Solution: def maxArea(self, ls): n = len(ls) - 1 v, left, right = [], 0, n while 0 <= left < right <= n: h = min(ls[left], ls[right]) v += [h * (right - left)] while ls[left] <= h and left < right: left += 1 while ls[right...
30.307692
50
0.411168
393
0.997462
0
0
0
0
0
0
0
0
58b28e8645b762a35a626046be48d346a6bd215a
15,595
py
Python
test/test_views.py
Nemoden/Simblin
1f97a985125023e64dfc6f4db6292cf3a2b904c9
[ "BSD-3-Clause" ]
53
2015-02-01T14:06:48.000Z
2022-01-02T15:46:00.000Z
test/test_views.py
Aaron1992/Simblin
1f97a985125023e64dfc6f4db6292cf3a2b904c9
[ "BSD-3-Clause" ]
null
null
null
test/test_views.py
Aaron1992/Simblin
1f97a985125023e64dfc6f4db6292cf3a2b904c9
[ "BSD-3-Clause" ]
23
2015-01-04T08:11:27.000Z
2019-11-24T13:18:25.000Z
# -*- coding: utf-8 -*- """ Simblin Test Views ~~~~~~~~~~~~~~~~~~ Test the different views of the blogging application. :copyright: (c) 2010 by Eugen Kiss. :license: BSD, see LICENSE for more details. """ from __future__ import with_statement import datetime import flask from simblin.extensions i...
35.93318
81
0.58833
15,005
0.962167
0
0
0
0
0
0
4,102
0.263033
58b31cded44ccfc6677efd1c2715c62d51feaad9
14,174
py
Python
freeclimb/models/message_result.py
FreeClimbAPI/python-sdk
1ec89eddc0069a39989579552b979a9d21418117
[ "MIT" ]
null
null
null
freeclimb/models/message_result.py
FreeClimbAPI/python-sdk
1ec89eddc0069a39989579552b979a9d21418117
[ "MIT" ]
6
2020-03-03T20:14:26.000Z
2021-12-06T22:11:15.000Z
freeclimb/models/message_result.py
FreeClimbAPI/python-sdk
1ec89eddc0069a39989579552b979a9d21418117
[ "MIT" ]
null
null
null
# coding: utf-8 """ FreeClimb API FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site teleph...
31.851685
667
0.605686
13,224
0.932976
0
0
8,421
0.594116
0
0
8,162
0.575843
58b39d610eae8b36afa5ec0f450ede4efe4c78d4
342
py
Python
blog/views.py
artkapl/django-blog-project
16494465042dd6846f3a2cd560c0cfe7737cc8e0
[ "MIT" ]
null
null
null
blog/views.py
artkapl/django-blog-project
16494465042dd6846f3a2cd560c0cfe7737cc8e0
[ "MIT" ]
null
null
null
blog/views.py
artkapl/django-blog-project
16494465042dd6846f3a2cd560c0cfe7737cc8e0
[ "MIT" ]
null
null
null
from django.shortcuts import render from .models import Post def home(request): context = { 'posts': Post.objects.all() } return render(request=request, template_name='blog/home.html', context=context) def about(request): return render(request=request, template_name='blog/about.html', contex...
24.428571
95
0.701754
0
0
0
0
0
0
0
0
54
0.157895
58b410177d19ca32957d1f156f14c3e7bd5b9089
718
bzl
Python
az/private/common/utils.bzl
jullianoacqio/rules_microsoft_azure
85f8d633db46c7c6aefd5c9c1856aa57473d10fb
[ "Apache-2.0" ]
4
2020-08-05T18:21:43.000Z
2020-11-10T19:42:48.000Z
terraform/private/common/utils.bzl
acqio/rules_hashicorp_terraform
add89d62abf3739dbd8908a43df366511027e4fc
[ "Apache-2.0" ]
3
2020-09-01T14:35:18.000Z
2021-03-29T17:27:12.000Z
az/private/common/utils.bzl
acqio/rules_microsoft_azure
85f8d633db46c7c6aefd5c9c1856aa57473d10fb
[ "Apache-2.0" ]
7
2020-08-04T20:14:10.000Z
2021-02-18T17:10:55.000Z
def _check_stamping_format(f): if f.startswith("{") and f.endswith("}"): return True return False def _resolve_stamp(ctx, string, output): stamps = [ctx.info_file, ctx.version_file] args = ctx.actions.args() args.add_all(stamps, format_each = "--stamp-info-file=%s") args.add(string, for...
28.72
62
0.628134
0
0
0
0
0
0
0
0
61
0.084958
58b4a5438c1537dcf99f56657476da7aa2cae99e
4,166
py
Python
hue.py
desheffer/hue-adapter
724e296c8dd52302c0380a58f4390fc3059705dc
[ "MIT" ]
null
null
null
hue.py
desheffer/hue-adapter
724e296c8dd52302c0380a58f4390fc3059705dc
[ "MIT" ]
null
null
null
hue.py
desheffer/hue-adapter
724e296c8dd52302c0380a58f4390fc3059705dc
[ "MIT" ]
null
null
null
from config import Config import flask import json import os from ssdp import SSDP from threading import Thread import urllib3 config = None config_file_paths = [ os.path.dirname(os.path.realpath(__file__)) + "/config/default.cfg.local", "/etc/hue-adapter/default.cfg.local", ] for config_file_path in config_...
26.877419
87
0.520163
0
0
0
0
3,404
0.817091
0
0
1,504
0.361018
58b676c8df734180c643826f2bc368889a0790b4
2,820
py
Python
safe/geokdbush/kdbushTest.py
s-a-f-e/backend
6018f51466df9abd58f25729d91856842eee9509
[ "MIT" ]
1
2019-05-06T19:40:43.000Z
2019-05-06T19:40:43.000Z
safe/geokdbush/kdbushTest.py
s-a-f-e/backend
6018f51466df9abd58f25729d91856842eee9509
[ "MIT" ]
9
2019-12-04T22:57:46.000Z
2022-02-10T07:15:11.000Z
safe/geokdbush/kdbushTest.py
s-a-f-e/backend
6018f51466df9abd58f25729d91856842eee9509
[ "MIT" ]
3
2019-05-01T20:41:33.000Z
2019-10-03T20:57:00.000Z
from kdbush import KDBush # test data points = [ [54,1],[97,21],[65,35],[33,54],[95,39],[54,3],[53,54],[84,72],[33,34],[43,15],[52,83],[81,23],[1,61],[38,74], [11,91],[24,56],[90,31],[25,57],[46,61],[29,69],[49,60],[4,98],[71,15],[60,25],[38,84],[52,38],[94,51],[13,25], [77,73],[88,87],[6,27],[58,22],[53,28...
46.229508
156
0.537234
0
0
0
0
0
0
0
0
233
0.082624
58b7a94417cb2c171bbf2548469ad555f0dc6eca
6,662
py
Python
buckit/compiler.py
martarozek/buckit
343cc5a5964c1d43902b6a77868652adaefa0caa
[ "BSD-3-Clause" ]
null
null
null
buckit/compiler.py
martarozek/buckit
343cc5a5964c1d43902b6a77868652adaefa0caa
[ "BSD-3-Clause" ]
null
null
null
buckit/compiler.py
martarozek/buckit
343cc5a5964c1d43902b6a77868652adaefa0caa
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2016-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. An additional grant # of patent rights can be found in the PATENTS file in the same directory. impo...
25.427481
80
0.564545
0
0
0
0
0
0
0
0
1,832
0.274992
58b7d71f96b456407bfe5eac83c75c43ba5fd90a
8,002
py
Python
test/python/.dbwebb/test/suite.d/kmom06/analyzer/test_analyzer.py
AndreasArne/python-examination
a24297f3f73b181e64e744d0b8b52d88d03e844b
[ "MIT" ]
null
null
null
test/python/.dbwebb/test/suite.d/kmom06/analyzer/test_analyzer.py
AndreasArne/python-examination
a24297f3f73b181e64e744d0b8b52d88d03e844b
[ "MIT" ]
14
2021-02-09T10:40:43.000Z
2022-02-18T12:24:39.000Z
test/python/.dbwebb/test/suite.d/kmom06/analyzer/test_analyzer.py
AndreasArne/python-examination
a24297f3f73b181e64e744d0b8b52d88d03e844b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Contains testcases for the individual examination. """ import unittest from io import StringIO import os import sys from unittest.mock import patch from examiner import ExamTestCase, ExamTestResult, tags from examiner import import_module, find_path_to_assignment FILE_DIR = os.path.dirname(...
28.784173
86
0.530242
7,315
0.909373
0
0
5,918
0.735704
0
0
3,446
0.428394
58b8667325936944d69237ad194f47d738bc7912
831
py
Python
olha_boca/infratores/admin.py
Perceu/olha-boca
022ff941d6bd20bb79bd1e66cd293dd2f59bf55b
[ "MIT" ]
null
null
null
olha_boca/infratores/admin.py
Perceu/olha-boca
022ff941d6bd20bb79bd1e66cd293dd2f59bf55b
[ "MIT" ]
null
null
null
olha_boca/infratores/admin.py
Perceu/olha-boca
022ff941d6bd20bb79bd1e66cd293dd2f59bf55b
[ "MIT" ]
1
2022-02-20T18:43:45.000Z
2022-02-20T18:43:45.000Z
from django.contrib import admin from olha_boca.infratores.models import Infratores # Register your models here. class InfratoresAdmin(admin.ModelAdmin): list_display = ('nome', 'infracoes_a_pagar', 'total_infracoes', 'valor_a_pagar') @admin.display(empty_value='???') def total_infracoes(self, obj): ...
33.24
84
0.688327
666
0.801444
0
0
523
0.629362
0
0
117
0.140794
58b8a93616ab18e3bdc1bf278f2e0062041167f0
6,241
py
Python
model.py
ogugugugugua/Cycle-Gan-Pytorch-Implementation
119c7c8b3061a14f0ca988672458351d00f144aa
[ "MIT" ]
null
null
null
model.py
ogugugugugua/Cycle-Gan-Pytorch-Implementation
119c7c8b3061a14f0ca988672458351d00f144aa
[ "MIT" ]
null
null
null
model.py
ogugugugugua/Cycle-Gan-Pytorch-Implementation
119c7c8b3061a14f0ca988672458351d00f144aa
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import torch import functools import torch.nn as nn from torch.nn import init import torch.functional as F from torch.autograd import Variable print('ok') def weights_init_normal(m): classname = m.__class__....
36.497076
94
0.552155
3,917
0.627624
0
0
0
0
0
0
1,528
0.244833
58b91dc41ea5155b61915a8cc460140b8ef148b0
15,872
py
Python
hansberger/analysis/migrations/0001_initial.py
097475/hansberger
bb4ba1cbc410e7242a12f841e447b4d68f4298f6
[ "MIT" ]
1
2019-04-03T13:44:38.000Z
2019-04-03T13:44:38.000Z
hansberger/analysis/migrations/0001_initial.py
sebastianoverdolini/hansberger
bb4ba1cbc410e7242a12f841e447b4d68f4298f6
[ "MIT" ]
4
2019-05-22T09:43:09.000Z
2019-05-29T12:22:00.000Z
hansberger/analysis/migrations/0001_initial.py
097475/hansberger
bb4ba1cbc410e7242a12f841e447b4d68f4298f6
[ "MIT" ]
2
2019-04-17T09:23:32.000Z
2019-05-03T10:38:16.000Z
# Generated by Django 2.0.13 on 2019-06-27 17:04 import django.contrib.postgres.fields.jsonb from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('research', '0001_initial'), ('datasets', '0001_init...
99.823899
951
0.599609
15,709
0.989232
0
0
0
0
0
0
8,163
0.514043
58b94a18dc5fb864b68af5b8440bfcf6bdf51d21
1,589
py
Python
src/DOMObjects/schema.py
villagertech/DOMObjects
6a86caca5160d2488cc19823e71e9e7ba99a4a0c
[ "MIT" ]
null
null
null
src/DOMObjects/schema.py
villagertech/DOMObjects
6a86caca5160d2488cc19823e71e9e7ba99a4a0c
[ "MIT" ]
null
null
null
src/DOMObjects/schema.py
villagertech/DOMObjects
6a86caca5160d2488cc19823e71e9e7ba99a4a0c
[ "MIT" ]
null
null
null
__author__ = "Rob MacKinnon <[email protected]>" __package__ = "DOMObjects" __name__ = "DOMObjects.schema" __license__ = "MIT" class DOMSchema(object): """ @abstract Structure object for creating more advanced DOM trees @params children [dict] Default structure of children @params dictgroups [...
33.104167
71
0.574575
1,455
0.91567
0
0
316
0.198867
0
0
1,034
0.650724
58ba74567e6fec0a65ad5136fbd9ca609c0ebda8
416
py
Python
Python/6 - kyu/6 kyu - Detect Pangram.py
danielbom/codewars
d45b5a813c6f1d952a50d22f0b2fcea4ef3d0e27
[ "MIT" ]
null
null
null
Python/6 - kyu/6 kyu - Detect Pangram.py
danielbom/codewars
d45b5a813c6f1d952a50d22f0b2fcea4ef3d0e27
[ "MIT" ]
null
null
null
Python/6 - kyu/6 kyu - Detect Pangram.py
danielbom/codewars
d45b5a813c6f1d952a50d22f0b2fcea4ef3d0e27
[ "MIT" ]
null
null
null
# https://www.codewars.com/kata/detect-pangram/train/python # My solution import string def is_pangram(text): return len( {letter.lower() for letter in text if letter.isalpha()} ) == 26 # ... import string def is_pangram(s): return set(string.lowercase) <= set(s.lower()) # ... import string def i...
23.111111
80
0.658654
0
0
0
0
0
0
0
0
86
0.206731
58bb3b75ffbc07bac010c5a20ea7da7ddc296fd6
3,709
py
Python
L1Trigger/L1TCalorimeter/python/customiseReEmulateCaloLayer2.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
L1Trigger/L1TCalorimeter/python/customiseReEmulateCaloLayer2.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
L1Trigger/L1TCalorimeter/python/customiseReEmulateCaloLayer2.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
import FWCore.ParameterSet.Config as cms def reEmulateLayer2(process): process.load('L1Trigger/L1TCalorimeter/simCaloStage2Digis_cfi') process.load('L1Trigger.L1TCalorimeter.caloStage2Params_2017_v1_7_excl30_cfi') process.simCaloStage2Digis.towerToken = cms.InputTag("caloStage2Digis", "CaloTower") ...
44.686747
117
0.758425
0
0
0
0
0
0
0
0
822
0.221623