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
1f5755adc834fa964d8b57abac91fbc6499d9935
4,608
py
Python
menucard/migrations/0001_initial.py
baniasbaabe/happy-qr
bf44ac19306ea6405cc7c9a100e6f83afca125b4
[ "MIT" ]
1
2021-01-23T21:42:10.000Z
2021-01-23T21:42:10.000Z
menucard/migrations/0001_initial.py
baniasbaabe/happy-qr
bf44ac19306ea6405cc7c9a100e6f83afca125b4
[ "MIT" ]
null
null
null
menucard/migrations/0001_initial.py
baniasbaabe/happy-qr
bf44ac19306ea6405cc7c9a100e6f83afca125b4
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2020-12-27 10:36 from django.db import migrations, models import django.db.models.deletion import phonenumber_field.modelfields class Migration(migrations.Migration): initial = True dependencies = [ ('crm', '0001_initial'), ] operations = [ migrations...
48
128
0.567491
4,445
0.964627
0
0
0
0
0
0
631
0.136936
1f5774372518e14045e4add17d37c16fbf360cfe
10,289
py
Python
episim/model.py
jm-begon/episim
705f80b782c5653a0d8b6e53614f34c12917cb43
[ "BSD-3-Clause" ]
null
null
null
episim/model.py
jm-begon/episim
705f80b782c5653a0d8b6e53614f34c12917cb43
[ "BSD-3-Clause" ]
null
null
null
episim/model.py
jm-begon/episim
705f80b782c5653a0d8b6e53614f34c12917cb43
[ "BSD-3-Clause" ]
null
null
null
import os import datetime from collections import defaultdict import numpy as np from scipy import sparse from episim.ontology import Ontology from episim.plot.modeling import System, Accumulator from .data import State class EulerSimulator(object): """ Explicit Euler method """ def __init__(self, ...
26.180662
80
0.57197
10,032
0.975022
1,291
0.125474
1,343
0.130528
0
0
930
0.090388
1f57dbdd7653a2a24621940b5ab48570df0a2af1
4,620
py
Python
pytorch/camera_intrinsics.py
abdur4373/ROS_depth_pred
63ed4d97df8b49a43aad53c4c6bf01441f05153d
[ "MIT" ]
1
2019-06-29T07:48:31.000Z
2019-06-29T07:48:31.000Z
pytorch/camera_intrinsics.py
abdur4373/ROS_depth_pred
63ed4d97df8b49a43aad53c4c6bf01441f05153d
[ "MIT" ]
null
null
null
pytorch/camera_intrinsics.py
abdur4373/ROS_depth_pred
63ed4d97df8b49a43aad53c4c6bf01441f05153d
[ "MIT" ]
null
null
null
import numpy as np from sensor_msgs.msg import CameraInfo, RegionOfInterest from std_msgs.msg import Header class CameraIntrinsics(object): """A set of intrinsic parameters for a camera. This class is used to project and deproject points. """ def __init__(self, frame, fx, fy=None, cx=0.0, cy=0.0, ske...
28.695652
96
0.534632
4,488
0.971429
0
0
2,881
0.623593
0
0
1,772
0.38355
1f581484e57d7f06ab12a83feeb46bea44a7e7c3
327
py
Python
app/logger.py
d3vzer0/reternal-backend
aeeb613c820759212e7aef9150738a66b2882d50
[ "MIT" ]
6
2019-01-01T23:38:12.000Z
2021-07-27T03:43:11.000Z
app/logger.py
d3vzer0/kickstart-flask-vuejs
562a829d3f3b87488035719025f2d29b4fe33a89
[ "MIT" ]
1
2020-08-02T00:21:41.000Z
2020-08-02T00:21:41.000Z
app/logger.py
d3vzer0/kickstart-flask-vuejs
562a829d3f3b87488035719025f2d29b4fe33a89
[ "MIT" ]
1
2021-07-27T03:43:24.000Z
2021-07-27T03:43:24.000Z
import logging from logging.handlers import SysLogHandler # Logging environment that can be used by the application to output syslog logging_object = logging.getLogger(__name__) logging_object.setLevel(logging.INFO) syslog_handler = logging.handlers.SysLogHandler(address='/dev/log') logging_object.addHandler(syslog_ha...
36.333333
74
0.844037
0
0
0
0
0
0
0
0
84
0.256881
1f5af941019a09b58bc8c7a46b832a62890985af
2,446
py
Python
db/schema.py
aatrubilin/sqlalchemy_sessions
8f99c3bf42da7224bbb6622ab23222ee1ebf1627
[ "MIT" ]
null
null
null
db/schema.py
aatrubilin/sqlalchemy_sessions
8f99c3bf42da7224bbb6622ab23222ee1ebf1627
[ "MIT" ]
null
null
null
db/schema.py
aatrubilin/sqlalchemy_sessions
8f99c3bf42da7224bbb6622ab23222ee1ebf1627
[ "MIT" ]
null
null
null
import logging from datetime import datetime import sqlalchemy as sa import sqlalchemy.orm as so from .base import Base, Session __all__ = ["User", "Message"] logger = logging.getLogger(__name__) class User(Base): __tablename__ = "users" id = sa.Column(sa.Integer, primary_key=True) nickname = sa.Colu...
27.795455
95
0.629191
2,240
0.915781
0
0
581
0.237531
0
0
178
0.072772
1f5bf93e6d736ffce8e14bcf71e0ff664aca6f6a
553
py
Python
tests/private/test_uber_string_formatter.py
odedlaz-oss/uberlogs
09658f6ee98b4018c1c3620f56973fcdadb260d5
[ "MIT" ]
null
null
null
tests/private/test_uber_string_formatter.py
odedlaz-oss/uberlogs
09658f6ee98b4018c1c3620f56973fcdadb260d5
[ "MIT" ]
null
null
null
tests/private/test_uber_string_formatter.py
odedlaz-oss/uberlogs
09658f6ee98b4018c1c3620f56973fcdadb260d5
[ "MIT" ]
null
null
null
import six from unittest import TestCase from uberlogs.private import UberStringFormatter class UberStringFormatterTests(TestCase): def setUp(self): self.formatter = UberStringFormatter() self.invalid_format = "{[blabla]" def test_raise_on_invalid_format_when_not_silent(self): with ...
29.105263
73
0.750452
459
0.830018
0
0
0
0
0
0
11
0.019892
1f5c32e422bbc6af249f8c6cdbc7e36215c76758
371
py
Python
testapp/models.py
andrewyoung1991/django-redis-pubsub
6ec9467528919a20bc9db6ebe94d5929ddd028a6
[ "BSD-3-Clause" ]
21
2016-02-11T06:04:48.000Z
2021-12-27T07:02:28.000Z
testapp/models.py
kashyap2108/django-redis-pubsub
6ec9467528919a20bc9db6ebe94d5929ddd028a6
[ "BSD-3-Clause" ]
3
2020-05-17T13:53:50.000Z
2021-06-10T20:38:34.000Z
testapp/models.py
kashyap2108/django-redis-pubsub
6ec9467528919a20bc9db6ebe94d5929ddd028a6
[ "BSD-3-Clause" ]
8
2016-02-05T20:17:43.000Z
2020-07-14T17:10:20.000Z
from django.conf import settings from django.db import models from redis_pubsub.models import PublishableModel class Message(PublishableModel): """ """ PUBLISH_ON_CREATE = True PUBLISH_ON_UPDATE = True from_user = models.ForeignKey(settings.AUTH_USER_MODEL) to_user = models.ForeignKey(settin...
21.823529
59
0.752022
256
0.690027
0
0
0
0
0
0
11
0.02965
1f5d11bfac525af7eaa9a4069790c1ad9c1d4423
10,602
py
Python
src/phat/thold.py
rskene/phat
84a946e1e638642f36ce5fd81dc85aa89f7b66f0
[ "MIT" ]
2
2021-07-23T11:34:21.000Z
2022-01-09T17:22:45.000Z
src/phat/thold.py
rjskene/phat
84a946e1e638642f36ce5fd81dc85aa89f7b66f0
[ "MIT" ]
3
2022-01-18T09:27:16.000Z
2022-01-18T09:28:43.000Z
src/phat/thold.py
rskene/phat
84a946e1e638642f36ce5fd81dc85aa89f7b66f0
[ "MIT" ]
null
null
null
from functools import wraps from typing import Iterable import numpy as np import scipy.stats as scist import matplotlib.pyplot as plt from rpy2.robjects.packages import importr from rpy2.robjects.vectors import FloatVector from phat.utils import argsetter base = importr('base') utils = importr('utils') utils.choos...
36.940767
131
0.54518
9,409
0.887139
0
0
9,232
0.870451
0
0
1,256
0.118424
1f5e5337671f2aa26669d1f985e1feb6f9bb2487
3,075
py
Python
app/eventFrameTemplates/forms.py
DeschutesBrewery/brewerypi
5459dfc6b1ed415920c13a8a7c9a2d3d3c82099f
[ "MIT" ]
27
2017-11-27T05:01:05.000Z
2020-11-14T19:52:26.000Z
app/eventFrameTemplates/forms.py
DeschutesBrewery/brewerypi
5459dfc6b1ed415920c13a8a7c9a2d3d3c82099f
[ "MIT" ]
259
2017-11-23T00:43:26.000Z
2020-11-03T01:07:30.000Z
app/eventFrameTemplates/forms.py
DeschutesBrewery/brewerypi
5459dfc6b1ed415920c13a8a7c9a2d3d3c82099f
[ "MIT" ]
8
2018-10-29T04:39:29.000Z
2020-10-01T22:18:12.000Z
from flask_wtf import FlaskForm from wtforms import HiddenField, IntegerField, SelectField, StringField, SubmitField, ValidationError from wtforms.validators import Length, Required from .. models import EventFrameTemplate class CopyEventFrameTemplateForm(FlaskForm): name = StringField("Name", validators = [Required(...
45.220588
152
0.766504
2,848
0.926179
0
0
0
0
0
0
569
0.185041
1f605b59e4b42a83b06301dd95460d66a85a140f
3,751
py
Python
flask_demo.py
tlinc/cyber-ng-18
40dd088b5785e75e59afded17f71ea50d64ae77f
[ "MIT" ]
null
null
null
flask_demo.py
tlinc/cyber-ng-18
40dd088b5785e75e59afded17f71ea50d64ae77f
[ "MIT" ]
null
null
null
flask_demo.py
tlinc/cyber-ng-18
40dd088b5785e75e59afded17f71ea50d64ae77f
[ "MIT" ]
null
null
null
import os from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes from cryptography.hazmat.primitives import hashes from cryptography.hazmat.primitives.kdf.pbkdf2 import PBKDF2HMAC from cryptography.hazmat.backends import default_backend from stegano import lsb from flask import Flask, render_te...
27.379562
76
0.643295
0
0
0
0
1,042
0.277793
0
0
789
0.210344
1f61bacc0966d711145c05f1a6526934fd3ce1d0
1,585
py
Python
ex0095.py
EwertonRosendo/PastaDeExercicios
68d23194b87ce1c8405c70fcceb3378955815d7d
[ "MIT" ]
null
null
null
ex0095.py
EwertonRosendo/PastaDeExercicios
68d23194b87ce1c8405c70fcceb3378955815d7d
[ "MIT" ]
null
null
null
ex0095.py
EwertonRosendo/PastaDeExercicios
68d23194b87ce1c8405c70fcceb3378955815d7d
[ "MIT" ]
null
null
null
jogador = dict() lista_de_jogadores = [] lista = [] print("_"*38) contador = 0 while True: jogador["nome"] = str(input("Informe o nome do jogador: ")).strip() jogador["partidas"] = int(input("Informe quantas partidas foram jogadas: ")) jogador["gols marcados"] = [] for c in range(0, jogador["partidas"])...
40.641026
83
0.620189
0
0
0
0
0
0
0
0
547
0.344458
1f6205c1effd40848344000bccb696a977da03f4
954
py
Python
app/stock/apps.py
shift37/asx_gym
dd3d8dafae4f22ab9c9027bf362013255dbc6c36
[ "RSA-MD" ]
null
null
null
app/stock/apps.py
shift37/asx_gym
dd3d8dafae4f22ab9c9027bf362013255dbc6c36
[ "RSA-MD" ]
3
2020-06-06T08:27:08.000Z
2020-06-13T09:51:26.000Z
app/stock/apps.py
asxgym/asx_gym
8b7745820c0d4cd59281acf7c003ec1f1938005a
[ "RSA-MD" ]
null
null
null
from django.apps import AppConfig import logging logger = logging.getLogger(__name__) class StockConfig(AppConfig): name = 'stock' def ready(self): from background_task.models import Task task_update_daily_stock_price = Task.objects.filter( task_name='stock.tasks.cron_update_dail...
38.16
74
0.72327
864
0.90566
0
0
0
0
0
0
175
0.183438
1f634bdb1c7a7c3154dda573b13beb16dfe4e289
8,568
py
Python
slide/models.py
AICAN-Research/learn-pathology
663f9c5f125857badf5bb41b6bfa2d9100578e2e
[ "MIT" ]
2
2021-09-16T08:38:10.000Z
2021-09-16T10:46:53.000Z
slide/models.py
AICAN-Research/learn-pathology
663f9c5f125857badf5bb41b6bfa2d9100578e2e
[ "MIT" ]
6
2021-09-20T10:56:21.000Z
2022-01-05T08:25:17.000Z
slide/models.py
AICAN-Research/learn-pathology
663f9c5f125857badf5bb41b6bfa2d9100578e2e
[ "MIT" ]
null
null
null
import threading from io import BytesIO from django.db import models import fast import time import numpy as np from PIL import Image from django.conf import settings from slide.timing import Timer from tag.models import Tag class Slide(models.Model): """ Model for whole slide image """ name = models....
38.25
152
0.615079
8,334
0.972689
0
0
532
0.062092
0
0
1,783
0.2081
1f641a14add400abd8e0ed7c75835db3c0d6d277
742
py
Python
xpresso/_utils/endpoint_dependant.py
adriangb/xpresso
43fcc360f7b19c00e0b78480f96390bcb4d28053
[ "MIT" ]
75
2022-01-18T02:17:57.000Z
2022-03-24T02:30:04.000Z
xpresso/_utils/endpoint_dependant.py
adriangb/xpresso
43fcc360f7b19c00e0b78480f96390bcb4d28053
[ "MIT" ]
73
2022-01-18T03:01:27.000Z
2022-03-27T16:41:38.000Z
xpresso/_utils/endpoint_dependant.py
adriangb/xpresso
43fcc360f7b19c00e0b78480f96390bcb4d28053
[ "MIT" ]
3
2022-01-18T22:47:06.000Z
2022-01-25T02:03:53.000Z
from __future__ import annotations import typing from di.api.providers import CallableProvider, CoroutineProvider from di.dependant import Dependant from xpresso.dependencies._dependencies import Depends, DependsMarker Endpoint = typing.Union[CallableProvider[typing.Any], CoroutineProvider[typing.Any]] class Endp...
25.586207
84
0.677898
431
0.580863
0
0
0
0
0
0
10
0.013477
1f643bc3dbbf8bbb68623cedf5db93412e8053a1
554
py
Python
MkSSensor.py
MakeSenseCorp/mksdk-py
3466124288c3a89effa0e918c2f310e25db17e0e
[ "Apache-2.0" ]
null
null
null
MkSSensor.py
MakeSenseCorp/mksdk-py
3466124288c3a89effa0e918c2f310e25db17e0e
[ "Apache-2.0" ]
7
2018-02-19T12:15:46.000Z
2018-05-04T23:02:12.000Z
MkSSensor.py
MakeSenseCorp/mksdk-py
3466124288c3a89effa0e918c2f310e25db17e0e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python class Sensor: Name = "" ID = 0 UUID = 0 Type = 0 Value = 0 def __init__(self, id, type, local_id): self.ID = local_id self.UUID = id[:-1] + str(local_id) self.Type = type def SetInterval(self, interval): self.UpdateInterval = interval def SetUUID(self, dev...
24.086957
135
0.566787
531
0.958484
0
0
0
0
0
0
77
0.138989
1f6482191a91e02ca740cd105cd4bb4ccfd6872b
1,010
py
Python
tuples.py
ShuhaoZQGG/Python-Very-Beginner-to-Very-Intermediate
cfad98b1c1c175761d3a68861438562f7d410cb0
[ "MIT" ]
null
null
null
tuples.py
ShuhaoZQGG/Python-Very-Beginner-to-Very-Intermediate
cfad98b1c1c175761d3a68861438562f7d410cb0
[ "MIT" ]
null
null
null
tuples.py
ShuhaoZQGG/Python-Very-Beginner-to-Very-Intermediate
cfad98b1c1c175761d3a68861438562f7d410cb0
[ "MIT" ]
null
null
null
mytuple = ("Max", 28, "Boston") print(mytuple) print(type(mytuple)) mytuple2 = ("Max") ## , is needed before the closing paranthese if only one string print(mytuple2) print(type(mytuple2)) mt3 = tuple(["Max", 28, "Boston"]) ## mt indicates mytuple + number print(mt3) print(type(m...
17.413793
104
0.620792
0
0
0
0
0
0
0
0
303
0.3
1f64ad352e9b9691d83fdce5ed744e84a89c5372
13,330
py
Python
create_pretraining_data_lm.py
twilightdema/ALBERT_Thai
2c5612237a6843c4949dd941dbcd01ca91f82f2b
[ "Apache-2.0" ]
null
null
null
create_pretraining_data_lm.py
twilightdema/ALBERT_Thai
2c5612237a6843c4949dd941dbcd01ca91f82f2b
[ "Apache-2.0" ]
4
2020-09-25T22:35:29.000Z
2022-02-09T23:37:24.000Z
create_pretraining_data_lm.py
twilightdema/ALBERT_Thai
2c5612237a6843c4949dd941dbcd01ca91f82f2b
[ "Apache-2.0" ]
1
2020-10-17T01:36:03.000Z
2020-10-17T01:36:03.000Z
# coding=utf-8 # Copyright 2018 The Google AI Team Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
33.076923
117
0.692798
485
0.03637
0
0
0
0
0
0
4,915
0.368579
1f6706c7305503eebcfb4dc0e941eec4fd99c3fd
3,260
py
Python
src/libcore/tests/test_qmc.py
tizian/layer-laboratory
008cc94b76127e9eb74227fcd3d0145da8ddec30
[ "CNRI-Python" ]
7
2020-07-24T03:19:59.000Z
2022-03-30T10:56:12.000Z
src/libcore/tests/test_qmc.py
tizian/layer-laboratory
008cc94b76127e9eb74227fcd3d0145da8ddec30
[ "CNRI-Python" ]
1
2021-04-07T22:30:23.000Z
2021-04-08T00:55:36.000Z
src/libcore/tests/test_qmc.py
tizian/layer-laboratory
008cc94b76127e9eb74227fcd3d0145da8ddec30
[ "CNRI-Python" ]
2
2020-06-08T08:25:09.000Z
2021-04-05T22:13:08.000Z
import enoki as ek import pytest import mitsuba def r_inv(divisor, index): factor = 1 value = 0 recip = 1.0 / divisor while index != 0: next_val = index // divisor factor *= recip value = value * divisor + index - next_val * divisor index = next_val return value *...
28.347826
74
0.60184
0
0
301
0.092331
1,045
0.320552
0
0
160
0.04908
1f69bfc2c5f28e5c08c2ff64bb83de310333e32a
14,656
py
Python
train.py
ColinWine/Multi-modal-Multi-label-Facial-Action-Unit-Detection-with-Transformer
93871bed9078d5bf6b4bb37407c9dce87c569b55
[ "MIT" ]
null
null
null
train.py
ColinWine/Multi-modal-Multi-label-Facial-Action-Unit-Detection-with-Transformer
93871bed9078d5bf6b4bb37407c9dce87c569b55
[ "MIT" ]
null
null
null
train.py
ColinWine/Multi-modal-Multi-label-Facial-Action-Unit-Detection-with-Transformer
93871bed9078d5bf6b4bb37407c9dce87c569b55
[ "MIT" ]
null
null
null
import warnings import torch from torch.utils.data.dataloader import DataLoader from torch.optim import lr_scheduler import numpy as np from models import * from dataloader import Aff2CompDataset, SubsetSequentialSampler, SubsetRandomSampler, Prefetcher from tqdm import tqdm import os import time from sklearn.metrics i...
42.604651
134
0.60917
3,170
0.216294
0
0
2,707
0.184703
0
0
2,354
0.160617
1f6aef11602a1e5873d6782928e3986a359ca69a
123
py
Python
carin/help.py
fiskurgit/Carin
41f5e8003d169f1f0454e7b674daf341d238f061
[ "Unlicense" ]
null
null
null
carin/help.py
fiskurgit/Carin
41f5e8003d169f1f0454e7b674daf341d238f061
[ "Unlicense" ]
null
null
null
carin/help.py
fiskurgit/Carin
41f5e8003d169f1f0454e7b674daf341d238f061
[ "Unlicense" ]
null
null
null
def show_help(): print("Carbon Intensity API Help") def show_bad_argument_help(): print("app -e generation")
11.181818
38
0.674797
0
0
0
0
0
0
0
0
46
0.373984
1f6c4abc3f836e517354bb086cbc395ddcb5e9b2
251
py
Python
utils.py
Ls-Dai/Pytorch_FL_CNN
59bfd017dc21a4d11e7dafb382cdae3c57086071
[ "MIT" ]
3
2021-03-22T01:54:43.000Z
2021-03-28T10:48:35.000Z
utils.py
Ls-Dai/Pytorch_FL_CNN
59bfd017dc21a4d11e7dafb382cdae3c57086071
[ "MIT" ]
null
null
null
utils.py
Ls-Dai/Pytorch_FL_CNN
59bfd017dc21a4d11e7dafb382cdae3c57086071
[ "MIT" ]
null
null
null
import os def dir_setup(path): if not os.path.exists(path): os.makedirs(path) """def dir_setup(path): if not os.path.isdir(path): dir_setup(os.path.split(path)[0]) else: return os.mkdir(path)"""
17.928571
42
0.561753
0
0
0
0
0
0
0
0
149
0.593625
1f6e05df1cdce06badd2f76abc8f4fd50f6739ab
212
py
Python
1011 - Esfera.py
le16bits/URI---Python
9d22ae74f008104bc9c3c0e2d5f8cd59303bc1db
[ "Apache-2.0" ]
null
null
null
1011 - Esfera.py
le16bits/URI---Python
9d22ae74f008104bc9c3c0e2d5f8cd59303bc1db
[ "Apache-2.0" ]
null
null
null
1011 - Esfera.py
le16bits/URI---Python
9d22ae74f008104bc9c3c0e2d5f8cd59303bc1db
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- '''Autor: Alessandra Souza Data: 05/05/2017 Objetivo: Calcular o volume de uma esfera. ID Urionlinejudge: 1011''' R=float(input()) vol=((4.0/3)*3.14159)*R**3 print("VOLUME = %.3f" %vol)
21.2
42
0.646226
0
0
0
0
0
0
0
0
152
0.716981
1f6f98de6468e928dedff399ac6db135e5b7f2ec
18,002
py
Python
src/agent.py
Lukeeeeee/DataCenterJobSchedulingSolution
9c62c0039b2dd9e0a1ca5474dc46c8be98a972b3
[ "MIT" ]
null
null
null
src/agent.py
Lukeeeeee/DataCenterJobSchedulingSolution
9c62c0039b2dd9e0a1ca5474dc46c8be98a972b3
[ "MIT" ]
null
null
null
src/agent.py
Lukeeeeee/DataCenterJobSchedulingSolution
9c62c0039b2dd9e0a1ca5474dc46c8be98a972b3
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf import tensorlayer as tl import datetime from log import LOG_PATH import os import src.visualization as vis from src.config import Config as con import tensorflow.contrib as tfcontrib server_count = con.server_count server_state_dim = con.server_state_dim total_server_state_d...
47.750663
118
0.575436
14,204
0.789023
0
0
0
0
0
0
3,149
0.174925
1f704e7278b9ef779559e766cacb1ef676546a1a
194
py
Python
programmers/lv3/2n_tiling.py
mrbartrns/swacademy_structure
778f0546030385237c383d81ec37d5bd9ed1272d
[ "MIT" ]
null
null
null
programmers/lv3/2n_tiling.py
mrbartrns/swacademy_structure
778f0546030385237c383d81ec37d5bd9ed1272d
[ "MIT" ]
null
null
null
programmers/lv3/2n_tiling.py
mrbartrns/swacademy_structure
778f0546030385237c383d81ec37d5bd9ed1272d
[ "MIT" ]
null
null
null
# 2 * n 타일링 def solution(n): dp = [0] * 60001 dp[0], dp[1] = 1, 1 for i in range(2, n + 1): dp[i] = (dp[i - 1] + dp[i - 2]) % 1000000007 return dp[n] print(solution(4))
19.4
52
0.469072
0
0
0
0
0
0
0
0
17
0.085
1f7102de5fec932b92f1cdaf56485f914e53929e
79
py
Python
pyup/settings.py
Callek/pyup
e29014320accdca2947b9e18c215d2144752081a
[ "MIT" ]
445
2016-01-14T09:19:26.000Z
2022-03-16T13:19:33.000Z
pyup/settings.py
Callek/pyup
e29014320accdca2947b9e18c215d2144752081a
[ "MIT" ]
387
2015-12-28T09:54:32.000Z
2022-01-04T00:45:00.000Z
pyup/settings.py
Callek/pyup
e29014320accdca2947b9e18c215d2144752081a
[ "MIT" ]
96
2016-01-19T19:25:00.000Z
2021-09-30T18:22:02.000Z
api_key = None def configure(key=None): global api_key api_key = key
11.285714
24
0.670886
0
0
0
0
0
0
0
0
0
0
1f746fdd19456f3c70b06319cd8440bf69081a77
190
py
Python
setup.py
alexisjihyeross/actionable-recourse
a00a0221484d1cf66ff6c0bcba6aaca2220bf9d1
[ "BSD-3-Clause" ]
null
null
null
setup.py
alexisjihyeross/actionable-recourse
a00a0221484d1cf66ff6c0bcba6aaca2220bf9d1
[ "BSD-3-Clause" ]
null
null
null
setup.py
alexisjihyeross/actionable-recourse
a00a0221484d1cf66ff6c0bcba6aaca2220bf9d1
[ "BSD-3-Clause" ]
null
null
null
from setuptools import setup, find_packages setup( name="Recourse", version="0.1.1", packages=find_packages(), install_requires=open('requirements.txt').read().split('\n') )
23.75
64
0.689474
0
0
0
0
0
0
0
0
39
0.205263
1f74a2f22700c0cecd865a836091b95cf438f84d
536
py
Python
ch06/data.py
stoneflyop1/py_machine_learning
18fd635d312f957ca4fcc23d856a1bcd4cf95f48
[ "MIT" ]
null
null
null
ch06/data.py
stoneflyop1/py_machine_learning
18fd635d312f957ca4fcc23d856a1bcd4cf95f48
[ "MIT" ]
null
null
null
ch06/data.py
stoneflyop1/py_machine_learning
18fd635d312f957ca4fcc23d856a1bcd4cf95f48
[ "MIT" ]
null
null
null
import pandas as pd ##################### # Load Dataset # https://archive.ics.uci.edu/ml/machine-learning-databases/breast-cancer-wisconsin/wdbc.data df = pd.read_csv('../data/wdbc.data', header=None) from sklearn.preprocessing import LabelEncoder X = df.loc[:, 2:].values y = df.loc[:,1].values le = LabelEncoder() ...
28.210526
93
0.699627
0
0
0
0
0
0
0
0
153
0.285448
1f75dc40de3440e94dfc62ec31434b5e0206507e
733
py
Python
src/tga_to_jpg.py
NicolasGrosjean/HoI4_Stats
b2b6341e8a0b400255302b277407ea33c1a9833f
[ "MIT" ]
null
null
null
src/tga_to_jpg.py
NicolasGrosjean/HoI4_Stats
b2b6341e8a0b400255302b277407ea33c1a9833f
[ "MIT" ]
null
null
null
src/tga_to_jpg.py
NicolasGrosjean/HoI4_Stats
b2b6341e8a0b400255302b277407ea33c1a9833f
[ "MIT" ]
null
null
null
import argparse import os from PIL import Image def get_args(): parser = argparse.ArgumentParser(description='Transform tga files to jpg') parser.add_argument('input_dir', type=str, help='Path of input directory containing tga files') parser.add_argument('output_dir', type=str, help='Path of output direct...
34.904762
101
0.682128
0
0
0
0
0
0
0
0
171
0.233288
1f7833d48966d1ed49519df9d13f101196d3956c
3,057
py
Python
db/csvs_test_examples/project/project_availability/project_availability_types/doc.py
souissim/gridpath
4eeca2be24b485edc56026e38cfda83f4a6b27ea
[ "Apache-2.0" ]
44
2020-10-27T19:05:44.000Z
2022-03-22T17:17:37.000Z
db/csvs_test_examples/project/project_availability/project_availability_types/doc.py
souissim/gridpath
4eeca2be24b485edc56026e38cfda83f4a6b27ea
[ "Apache-2.0" ]
67
2020-10-08T22:36:53.000Z
2022-03-22T22:58:33.000Z
db/csvs_test_examples/project/project_availability/project_availability_types/doc.py
souissim/gridpath
4eeca2be24b485edc56026e38cfda83f4a6b27ea
[ "Apache-2.0" ]
21
2020-10-08T23:23:48.000Z
2022-03-28T01:21:21.000Z
# Copyright 2016-2020 Blue Marble Analytics LLC. # # 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...
51.813559
81
0.669284
0
0
0
0
0
0
0
0
3,005
0.98299
1f78bf747e413822fce9fdf17d1c1fc1b0c7a165
3,052
py
Python
src/construction_finder/coderack.py
juliakzn/construction_finder
92e9f044163fbe8bde3a6c5f9ec125a7ecf96de8
[ "MIT" ]
null
null
null
src/construction_finder/coderack.py
juliakzn/construction_finder
92e9f044163fbe8bde3a6c5f9ec125a7ecf96de8
[ "MIT" ]
null
null
null
src/construction_finder/coderack.py
juliakzn/construction_finder
92e9f044163fbe8bde3a6c5f9ec125a7ecf96de8
[ "MIT" ]
null
null
null
import logging import random from typing import Dict, List, Tuple, Union from construction_finder import codelets, frame logger = logging.getLogger(f"{__name__}") class SpinResult: def __init__( self, temp_modifier: float, workspace_modifiers: Union[List[codelets.WorkSpaceModifier], None...
35.08046
118
0.656619
2,881
0.943971
0
0
0
0
0
0
275
0.090105
1f7babebb7eb438c1f113d421ddd85e8d4dce5ed
1,713
py
Python
configuration.py
ewellchen/STIN
0612a0b56d8caf1f8771ce13a3d8827d26a38f30
[ "MIT" ]
null
null
null
configuration.py
ewellchen/STIN
0612a0b56d8caf1f8771ce13a3d8827d26a38f30
[ "MIT" ]
null
null
null
configuration.py
ewellchen/STIN
0612a0b56d8caf1f8771ce13a3d8827d26a38f30
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Default configurations of model configuration, training. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import os.path as osp from typing import Dict CONFIG = { 'is_train': True, ...
23.148649
65
0.549329
0
0
0
0
0
0
0
0
918
0.535902
1f7d838dc8f88dc8eef76ebba1d92fdbf66fdaf5
54,959
py
Python
util/configurejson2cmake.py
chentoz/occQt
9738c26a18ac7757201342a69f95483d435a39fa
[ "MIT" ]
null
null
null
util/configurejson2cmake.py
chentoz/occQt
9738c26a18ac7757201342a69f95483d435a39fa
[ "MIT" ]
null
null
null
util/configurejson2cmake.py
chentoz/occQt
9738c26a18ac7757201342a69f95483d435a39fa
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ############################################################################# ## ## Copyright (C) 2018 The Qt Company Ltd. ## Contact: https://www.qt.io/licensing/ ## ## This file is part of the plugins of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:GPL-EXCEPT$ ## Commercial License Usage ## Licensee...
34.608942
147
0.580251
1,260
0.022926
0
0
0
0
0
0
20,959
0.381357
1f7e10137722c6fcc224fdac359159dee3d532fc
819
py
Python
easy_scrapy/2_beautifulsoup/bs4_3_regex.py
cyfu/web_scrapying
b59a75d3db289032bb9005f062470e8ce745539a
[ "MIT" ]
null
null
null
easy_scrapy/2_beautifulsoup/bs4_3_regex.py
cyfu/web_scrapying
b59a75d3db289032bb9005f062470e8ce745539a
[ "MIT" ]
null
null
null
easy_scrapy/2_beautifulsoup/bs4_3_regex.py
cyfu/web_scrapying
b59a75d3db289032bb9005f062470e8ce745539a
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup from urllib.request import urlopen import re # open and read web page, decode it if it contains Chinese html = urlopen('https://mofanpy.com/static/scraping/table.html').read().decode('utf-8') print(html) # 'lxml' is parser name soup = BeautifulSoup(html, features='lxml') # search by tag...
32.76
87
0.693529
0
0
0
0
0
0
0
0
344
0.420024
1f839d58efbf61c5507f3e11ca4b447b2e8e7b82
1,826
py
Python
ssrlsim/scripts/start_RE.py
tangkong/ssrlsim
62f8a07989ebc187ecf6d2dc3bd8d97ae4c56536
[ "BSD-3-Clause" ]
null
null
null
ssrlsim/scripts/start_RE.py
tangkong/ssrlsim
62f8a07989ebc187ecf6d2dc3bd8d97ae4c56536
[ "BSD-3-Clause" ]
2
2020-06-18T05:18:15.000Z
2021-09-08T21:44:29.000Z
ssrlsim/scripts/start_RE.py
tangkong/ssrlsim
62f8a07989ebc187ecf6d2dc3bd8d97ae4c56536
[ "BSD-3-Clause" ]
null
null
null
import os import matplotlib # get_ipython().run_line_magic("matplotlib", "widget") # i.e. %matplotlib widget import matplotlib.pyplot as plt from ophyd import Device, Component, EpicsSignal from ophyd.signal import EpicsSignalBase from ophyd.areadetector.filestore_mixins import resource_factory import uuid import os...
24.675676
81
0.793538
0
0
0
0
0
0
0
0
736
0.403067
1f85f7ae96d69285ca7b29169676435a4ce6e57d
5,021
py
Python
snakeskin/protos/peer/peer_pb2.py
healthverity/snakeskin-fabric
31ba7fa5a71445eba76f89723c998d603704e0f9
[ "Apache-2.0" ]
5
2019-08-08T17:16:02.000Z
2021-05-15T07:28:31.000Z
snakeskin/protos/peer/peer_pb2.py
healthverity/snakeskin-fabric
31ba7fa5a71445eba76f89723c998d603704e0f9
[ "Apache-2.0" ]
4
2019-08-20T15:07:12.000Z
2020-07-31T17:50:51.000Z
snakeskin/protos/peer/peer_pb2.py
healthverity/snakeskin-fabric
31ba7fa5a71445eba76f89723c998d603704e0f9
[ "Apache-2.0" ]
2
2019-08-20T15:22:48.000Z
2019-12-17T19:38:55.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: snakeskin/protos/peer/peer.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from ...
34.390411
550
0.768174
0
0
0
0
0
0
0
0
1,412
0.281219
1f8ae5e3724e8e2ef10be9cc46bc0a4381cac952
3,236
py
Python
tests/test_models/test_place.py
lepc1972/AirBnB_clone
3ba7f0332e926ff7715272866a00d3a23341b3c3
[ "MIT" ]
2
2021-07-16T01:07:40.000Z
2021-07-16T01:23:15.000Z
tests/test_models/test_place.py
lepc1972/AirBnB_clone
3ba7f0332e926ff7715272866a00d3a23341b3c3
[ "MIT" ]
null
null
null
tests/test_models/test_place.py
lepc1972/AirBnB_clone
3ba7f0332e926ff7715272866a00d3a23341b3c3
[ "MIT" ]
1
2021-07-09T01:41:16.000Z
2021-07-09T01:41:16.000Z
#!/usr/bin/python3 ''' test for the place model here. ''' import unittest from models.base_model import BaseModel from models.place import Place class TestUser(unittest.TestCase): ''' Testing Place class ''' def setUp(self): ''' Create instance for place. ''' ...
28.637168
70
0.603523
3,082
0.95241
0
0
0
0
0
0
952
0.29419
1f8af70835313ee879d71169d774cac9ba7f41c9
1,714
py
Python
app/__init__.py
zjyfdu/flask_huxiaofei
2193bfe0aa45626fdb4b270f7532a1e04c5be556
[ "MIT" ]
null
null
null
app/__init__.py
zjyfdu/flask_huxiaofei
2193bfe0aa45626fdb4b270f7532a1e04c5be556
[ "MIT" ]
null
null
null
app/__init__.py
zjyfdu/flask_huxiaofei
2193bfe0aa45626fdb4b270f7532a1e04c5be556
[ "MIT" ]
null
null
null
from flask import Flask from flask_bootstrap import Bootstrap from flask_mail import Mail from flask_moment import Moment from flask_sqlalchemy import SQLAlchemy from sqlalchemy import MetaData from flask_login import LoginManager from flask_msearch import Search from config import config from jieba.analyse import Chin...
28.566667
72
0.757876
0
0
0
0
0
0
0
0
266
0.155193
1f8f15b75dc5ee4ca1fc697ef1e5c0863cf598a7
1,893
py
Python
easyTCP/CLIENT/backend/Protocol.py
dsal3389/easyTCP
0a11ffe4726bfd0461c24fa459e417fd2fe3cd7f
[ "MIT" ]
4
2018-12-09T13:57:59.000Z
2019-10-19T19:34:28.000Z
easyTCP/CLIENT/backend/Protocol.py
dsal3389/easyTCP
0a11ffe4726bfd0461c24fa459e417fd2fe3cd7f
[ "MIT" ]
null
null
null
easyTCP/CLIENT/backend/Protocol.py
dsal3389/easyTCP
0a11ffe4726bfd0461c24fa459e417fd2fe3cd7f
[ "MIT" ]
null
null
null
import asyncio import json from ..utils import DEFAULT_SETTINGS from ..utils.DEFAULT_ENCRYPTION import SERVER_encryption, CLIENT_encryption def json_dumper(data): return bytes(json.dumps(data), encoding=DEFAULT_SETTINGS.ENCODING) def json_loader(data): return json.loads(str(data, encoding=DEFAULT_S...
36.403846
111
0.661912
1,537
0.811939
961
0.50766
1,033
0.545695
0
0
175
0.092446
1f8f9e391109c41227336b2bb762cb77a40123c1
6,413
py
Python
src/harvester.py
bmoxon/azfinsim
3e203855410abd6c9636377b93ed5d33ac896c41
[ "MIT" ]
5
2021-02-24T19:10:34.000Z
2022-02-24T21:11:24.000Z
src/harvester.py
bmoxon/azfinsim
3e203855410abd6c9636377b93ed5d33ac896c41
[ "MIT" ]
null
null
null
src/harvester.py
bmoxon/azfinsim
3e203855410abd6c9636377b93ed5d33ac896c41
[ "MIT" ]
2
2021-05-03T11:57:31.000Z
2021-12-09T10:24:29.000Z
#! /usr/bin/env python3 #-- harvest scheduler that runs on the compute pool nodes import argparse import time import sys import logging import os import psutil from applicationinsights import TelemetryClient from applicationinsights.logging import LoggingHandler from getargs import getargs import azlog azlog.color=...
34.478495
127
0.626072
0
0
0
0
0
0
0
0
2,412
0.376111
1f8faaab50ba1792d26b495c5cba37135b67c989
7,758
py
Python
old/model.py
samhippie/shallow-red
5690cdf380c6e138e25d88e85093738951438298
[ "MIT" ]
null
null
null
old/model.py
samhippie/shallow-red
5690cdf380c6e138e25d88e85093738951438298
[ "MIT" ]
null
null
null
old/model.py
samhippie/shallow-red
5690cdf380c6e138e25d88e85093738951438298
[ "MIT" ]
1
2020-03-13T12:53:35.000Z
2020-03-13T12:53:35.000Z
#!/usr/bin/env python3 #loading tf is slow, so don't do it unless we're using it USE_TENSORFLOW = False import collections import numpy as np import os import pickle if USE_TENSORFLOW: import tensorflow as tf from tensorflow import keras os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' import modelInput #use...
37.298077
130
0.620907
7,284
0.938902
0
0
0
0
0
0
1,258
0.162155
1f907167fd216693dde972de5a46db5460599384
183
py
Python
src/emuvim/api/util/process_utils.py
RafaelSche/vim-emu
6503ba9fcbe13ca73c94d318157a1ba78ef26b5b
[ "Apache-2.0" ]
34
2016-09-05T06:11:12.000Z
2021-12-24T08:45:24.000Z
src/emuvim/api/util/process_utils.py
RafaelSche/vim-emu
6503ba9fcbe13ca73c94d318157a1ba78ef26b5b
[ "Apache-2.0" ]
89
2016-07-19T14:14:27.000Z
2020-01-09T07:19:45.000Z
src/emuvim/api/util/process_utils.py
RafaelSche/vim-emu
6503ba9fcbe13ca73c94d318157a1ba78ef26b5b
[ "Apache-2.0" ]
32
2016-07-19T14:58:06.000Z
2020-05-05T13:30:01.000Z
import logging import subprocess import time def wait_until(cmd): logging.debug('waiting for %s\n' % cmd) while subprocess.call(cmd, shell=True) != 0: time.sleep(1)
18.3
48
0.677596
0
0
0
0
0
0
0
0
18
0.098361
1f944de947e6f066710ae464c5f7cd8435c93b21
189
py
Python
zesty_metrics/defaults.py
Crossway/django-zesty-metrics
863532dce1379039e3db99355c90e84ac2288534
[ "BSD-3-Clause" ]
1
2015-07-07T19:22:42.000Z
2015-07-07T19:22:42.000Z
zesty_metrics/defaults.py
Crossway/django-zesty-metrics
863532dce1379039e3db99355c90e84ac2288534
[ "BSD-3-Clause" ]
4
2016-08-01T18:11:18.000Z
2018-02-06T18:02:02.000Z
zesty_metrics/defaults.py
Crossway/django-zesty-metrics
863532dce1379039e3db99355c90e84ac2288534
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ZESTY_TRACKING_CLASSES = [ 'zesty_metrics.tracking.UserAccounts', ] ZESTY_TIMING_SAMPLE_RATE = 1 ZESTY_TIME_RESPONSES = True ZESTY_TRACK_USER_ACTIVITY = True
17.181818
42
0.756614
0
0
0
0
0
0
0
0
60
0.31746
1f9508b579771bc7e41b7b6de9c4a49ddf05f51e
3,368
py
Python
models/generatorUnet.py
ctyler9/cartoon-gan
48ec80cfcf23c6f30c5d1c446c12ff6f9c81afc8
[ "MIT" ]
177
2020-01-31T08:32:07.000Z
2022-03-28T02:20:29.000Z
models/generatorUnet.py
ctyler9/cartoon-gan
48ec80cfcf23c6f30c5d1c446c12ff6f9c81afc8
[ "MIT" ]
10
2020-06-26T04:46:26.000Z
2022-02-01T18:17:10.000Z
models/generatorUnet.py
ctyler9/cartoon-gan
48ec80cfcf23c6f30c5d1c446c12ff6f9c81afc8
[ "MIT" ]
44
2020-03-11T17:21:51.000Z
2022-03-16T16:09:22.000Z
import torch import torch.nn as nn import torch.nn.functional as F class Bottleneck(nn.Module): def __init__(self, in_channels, out_channels): super(Bottleneck, self).__init__() self.conv = nn.Sequential( nn.Conv2d(in_channels, in_channels, 1, padding=0, bias=False), ...
32.384615
101
0.561758
3,080
0.914489
0
0
0
0
0
0
24
0.007126
1f964a207f38c7145c92fc77855d4848bb25de63
1,716
py
Python
app/calc/utility.py
sajeeshen/WebCalculatorAPI
d951e688e84741cc594877914d292fbddb4e9542
[ "MIT" ]
null
null
null
app/calc/utility.py
sajeeshen/WebCalculatorAPI
d951e688e84741cc594877914d292fbddb4e9542
[ "MIT" ]
null
null
null
app/calc/utility.py
sajeeshen/WebCalculatorAPI
d951e688e84741cc594877914d292fbddb4e9542
[ "MIT" ]
null
null
null
import math from datetime import datetime AVAILABLE_ACTIONS = [{'action': 'add', 'admin_required': False, 'operator': '+'}, {'action': 'subtract', 'admin_required': False, 'operator': '-'}, {'action': 'multiply', 'admin_required': Fa...
28.131148
73
0.501166
0
0
0
0
0
0
0
0
594
0.346154
2f06bad44169797de0c1276f26ece53ea110fad2
6,009
py
Python
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/commerce/api/v1/models.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
3
2021-12-15T04:58:18.000Z
2022-02-06T12:15:37.000Z
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/commerce/api/v1/models.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
null
null
null
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/commerce/api/v1/models.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
1
2019-01-02T14:38:50.000Z
2019-01-02T14:38:50.000Z
""" API v1 models. """ import logging from itertools import groupby from django.db import transaction from opaque_keys import InvalidKeyError from opaque_keys.edx.keys import CourseKey from common.djangoapps.course_modes.models import CourseMode from lms.djangoapps.verify_student.models import VerificationDeadline ...
40.328859
112
0.669496
5,546
0.922949
258
0.042936
2,364
0.39341
0
0
1,830
0.304543
2f082e2906c7c51226d4204e5140aa52273e420e
984
py
Python
model_code/grid_search/DecisionTreeClassifier.py
lacava/sklearn-benchmarks
bec1d5468f40b1fea08b605a11d5f7795fe5bb1b
[ "MIT" ]
213
2016-02-03T02:56:40.000Z
2022-02-26T06:44:27.000Z
model_code/grid_search/DecisionTreeClassifier.py
lacava/sklearn-benchmarks
bec1d5468f40b1fea08b605a11d5f7795fe5bb1b
[ "MIT" ]
30
2016-02-03T14:32:27.000Z
2020-05-12T17:32:40.000Z
model_code/grid_search/DecisionTreeClassifier.py
arunsinghyadav/sklearn-benchmarks
a917336f6fd3ffb89efd94b1c7f60b3a05ba780f
[ "MIT" ]
59
2016-02-03T14:32:58.000Z
2021-01-12T23:48:46.000Z
import sys import pandas as pd import numpy as np import itertools from sklearn.preprocessing import RobustScaler from sklearn.tree import DecisionTreeClassifier from evaluate_model import evaluate_model dataset = sys.argv[1] pipeline_components = [RobustScaler, DecisionTreeClassifier] pipeline_parameters = {} min_i...
39.36
136
0.813008
0
0
0
0
0
0
0
0
89
0.090447
2f0914ec0565214e9bbc4b09ca688ebda76940dd
3,428
py
Python
training_v1_backup/training/PPO/run_ppo.py
prasoonpatidar/multiagentRL-resource-sharing
e63ba7fc3c7ab019e9fd109cd45b739e3322152f
[ "MIT" ]
null
null
null
training_v1_backup/training/PPO/run_ppo.py
prasoonpatidar/multiagentRL-resource-sharing
e63ba7fc3c7ab019e9fd109cd45b739e3322152f
[ "MIT" ]
null
null
null
training_v1_backup/training/PPO/run_ppo.py
prasoonpatidar/multiagentRL-resource-sharing
e63ba7fc3c7ab019e9fd109cd45b739e3322152f
[ "MIT" ]
null
null
null
''' Wrapper function to run PPO algorithm for training ''' import numpy as np import matplotlib.pyplot as plt import time import math import logging from scipy.optimize import minimize, LinearConstraint # custom libraries from training.PPO.run_helper import buyerPenaltiesCalculator, buyerUtilitiesCalculator, evaluati...
38.516854
130
0.698658
0
0
0
0
0
0
0
0
658
0.191949
2f093dab61a4920e6658955efc331ab3c70a322c
850
py
Python
tests/custom/test_clean_dateTime.py
arkhn/cleaning-scripts
ffe88598b476b2e6b53fd06e8ce6092ef0351b19
[ "Apache-2.0" ]
9
2019-03-31T03:46:51.000Z
2020-05-20T13:05:06.000Z
tests/custom/test_clean_dateTime.py
arkhn/cleaning-scripts
ffe88598b476b2e6b53fd06e8ce6092ef0351b19
[ "Apache-2.0" ]
18
2019-09-11T09:19:45.000Z
2021-07-13T09:16:23.000Z
tests/custom/test_clean_dateTime.py
arkhn/cleaning-scripts
ffe88598b476b2e6b53fd06e8ce6092ef0351b19
[ "Apache-2.0" ]
2
2019-09-18T15:20:10.000Z
2021-07-25T06:46:57.000Z
import pytest from scripts.custom import clean_dateTime @pytest.mark.parametrize( "test_input,expected", [ ("2015", "2015"), ("2015-02", "2015-02"), ("201502", "2015-02"), ("2015-02-07", "2015-02-07"), ("20150207", "2015-02-07"), ("2015-02-07T13:28:17", "2015-0...
31.481481
71
0.555294
0
0
0
0
790
0.929412
0
0
445
0.523529
2f0957f3db94b5ef71452361a51b110a5a627030
14,927
py
Python
mlprogram/entrypoint/train.py
HiroakiMikami/mlprogram
573e94c567064705fa65267dd83946bf183197de
[ "MIT" ]
9
2020-05-24T11:25:01.000Z
2022-03-28T15:32:10.000Z
mlprogram/entrypoint/train.py
HiroakiMikami/mlprogram
573e94c567064705fa65267dd83946bf183197de
[ "MIT" ]
87
2020-05-09T08:56:55.000Z
2022-03-31T14:46:45.000Z
mlprogram/entrypoint/train.py
HiroakiMikami/NL2Prog
573e94c567064705fa65267dd83946bf183197de
[ "MIT" ]
3
2021-02-22T20:38:29.000Z
2021-11-11T18:48:44.000Z
import os import traceback from dataclasses import dataclass from typing import Any, Callable, List, Optional, Union import pytorch_pfn_extras as ppe import torch from pytorch_pfn_extras.training import extension, extensions from torch import nn from torch.utils.data import DataLoader from mlprogram import distribute...
37.599496
88
0.554231
945
0.063308
0
0
235
0.015743
0
0
842
0.056408
2f09b816cae5d16accf1cca62376da23fd995e52
3,381
py
Python
visualization.py
aditya-srikanth/Data-Mining-Assignment-3
7dc44d7ca8884680130db9b52a75e3036cf2f8a7
[ "MIT" ]
null
null
null
visualization.py
aditya-srikanth/Data-Mining-Assignment-3
7dc44d7ca8884680130db9b52a75e3036cf2f8a7
[ "MIT" ]
null
null
null
visualization.py
aditya-srikanth/Data-Mining-Assignment-3
7dc44d7ca8884680130db9b52a75e3036cf2f8a7
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import math import numpy as np class Visualization: """ This class contains methods for reducing the dimensions of the points to 2-D and visualization of the reduced points. Attributes ---------- OUTLIERS : list List of points marked as outlier...
34.85567
121
0.55102
3,313
0.979888
0
0
0
0
0
0
1,437
0.425022
2f0b0a77f9fa1f45efa368882434f52b3044f388
322
py
Python
20211001_PythonIntro/ex2/ex2.py
alessandro-massarenti/Cybersec2021
3d6dcc4b255dd425b1be66d440df1d94d5ea5ac0
[ "BSD-3-Clause" ]
15
2021-10-01T16:10:48.000Z
2022-02-19T20:45:35.000Z
20211001_PythonIntro/ex2/ex2.py
alessandro-massarenti/Cybersec2021
3d6dcc4b255dd425b1be66d440df1d94d5ea5ac0
[ "BSD-3-Clause" ]
null
null
null
20211001_PythonIntro/ex2/ex2.py
alessandro-massarenti/Cybersec2021
3d6dcc4b255dd425b1be66d440df1d94d5ea5ac0
[ "BSD-3-Clause" ]
2
2021-11-06T08:32:41.000Z
2021-12-11T16:18:54.000Z
from operator import add, itruediv, mul, sub ops = [add, sub, mul, itruediv] a = float(input("Inserisci un numero: ")) b = float(input("Inserisci un altro numero: ")) op = int( input("Inserisci un operatore (0 per addizione, 1 per sottrazione, 2 per moltiplicazione oppure 3 per divisione: ") ) print(ops[op](a, b)...
29.272727
119
0.695652
0
0
0
0
0
0
0
0
160
0.496894
2f0df6e28987fcaa913b236b22575fcae954bfe4
3,639
py
Python
robotidy/transformers/ext_ExtraIndentForKeywordArguments.py
josflorap/robotframework-tidy
9d4e1ccc6a50c415187468305235830f80f3373b
[ "Apache-2.0" ]
null
null
null
robotidy/transformers/ext_ExtraIndentForKeywordArguments.py
josflorap/robotframework-tidy
9d4e1ccc6a50c415187468305235830f80f3373b
[ "Apache-2.0" ]
null
null
null
robotidy/transformers/ext_ExtraIndentForKeywordArguments.py
josflorap/robotframework-tidy
9d4e1ccc6a50c415187468305235830f80f3373b
[ "Apache-2.0" ]
null
null
null
from robot.api.parsing import ModelTransformer, get_model, ModelVisitor, Token import os, sys keywordlist = [] other_keywords = [] used_keywords = [] class ext_ExtraIndentForKeywordArguments(ModelTransformer): def __init__(self): self.cont = 0 def visit_File(self, node): # Get keywords in py...
50.541667
140
0.569387
3,466
0.952459
0
0
0
0
0
0
674
0.185216
2f0e2ccc0b7fb78f69f72c37d56b7289930132ef
6,581
py
Python
Common/Strategies/TechIndicators/MacdStrategy.py
enriqueescobar-askida/Kinito.Finance
5308748b64829ac798a858161f9b4a9e5829db44
[ "MIT" ]
2
2020-03-04T11:18:38.000Z
2020-05-10T15:36:42.000Z
Common/Strategies/TechIndicators/MacdStrategy.py
enriqueescobar-askida/Kinito.Finance
5308748b64829ac798a858161f9b4a9e5829db44
[ "MIT" ]
6
2020-03-30T16:42:47.000Z
2021-12-13T20:37:21.000Z
Common/Strategies/TechIndicators/MacdStrategy.py
enriqueescobar-askida/Kinito.Finance
5308748b64829ac798a858161f9b4a9e5829db44
[ "MIT" ]
1
2020-04-14T11:26:16.000Z
2020-04-14T11:26:16.000Z
from typing import Tuple import pandas as pd import numpy as np import matplotlib.pyplot as plt from Common.Strategies.TechIndicators.AbstractTechStrategy import AbstractTechStrategy from Common.TechIndicators.MacdIndicator import MacdIndicator class MacdStrategy(AbstractTechStrategy): _macd_indicator: MacdIndica...
46.34507
124
0.621942
6,333
0.962316
0
0
61
0.009269
0
0
315
0.047865
2f1305b235214a028b433be662b9539aa5ea50e7
7,572
py
Python
dayu_widgets/wizard.py
xiaonuoAndy/dayu_widgets
0a87e40b5b3b10e9f1f3f98c17a252c107118257
[ "MIT" ]
null
null
null
dayu_widgets/wizard.py
xiaonuoAndy/dayu_widgets
0a87e40b5b3b10e9f1f3f98c17a252c107118257
[ "MIT" ]
null
null
null
dayu_widgets/wizard.py
xiaonuoAndy/dayu_widgets
0a87e40b5b3b10e9f1f3f98c17a252c107118257
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ################################################################### # Author: Mu yanru # Date : 2018.5 # Email : muyanru345@163.com ################################################################### from collections import defaultdict import utils from qt import * from s...
34.108108
100
0.633386
6,568
0.867406
0
0
2,531
0.334258
0
0
1,445
0.190835
2f14ec3187ef5944e2d523b10e6eabf13148caae
897
py
Python
examples/TechChangeModel.py
timkittel/PyViability
63b628df47ab506e9317a908a63a49a556232137
[ "BSD-2-Clause" ]
null
null
null
examples/TechChangeModel.py
timkittel/PyViability
63b628df47ab506e9317a908a63a49a556232137
[ "BSD-2-Clause" ]
null
null
null
examples/TechChangeModel.py
timkittel/PyViability
63b628df47ab506e9317a908a63a49a556232137
[ "BSD-2-Clause" ]
null
null
null
from __future__ import division, print_function, generators import numpy as np pi = np.pi def techChange_rhs(uB_pB, t, rvar, pBmin, pE, delta, smax, sBmax): uB, pB = uB_pB if sBmax == 0.: p = pE else: if smax < sBmax * uB: p = pE + smax / uB else: p = s...
20.860465
68
0.528428
0
0
0
0
0
0
0
0
42
0.046823
2f1545a93541c971b7ff89f3c71a62f913a542c9
2,502
py
Python
tests/test_heif.py
Cykooz/cykooz.heif
cfd60687406763503a57fe949bdf01fb9997cae8
[ "MIT" ]
5
2020-03-05T20:31:23.000Z
2021-11-24T00:22:18.000Z
tests/test_heif.py
Cykooz/cykooz.heif
cfd60687406763503a57fe949bdf01fb9997cae8
[ "MIT" ]
3
2021-01-14T15:23:04.000Z
2021-11-24T00:30:37.000Z
tests/test_heif.py
Cykooz/cykooz.heif
cfd60687406763503a57fe949bdf01fb9997cae8
[ "MIT" ]
1
2020-06-12T01:29:10.000Z
2020-06-12T01:29:10.000Z
# -*- coding: utf-8 -*- """ :Authors: cykooz :Date: 23.06.2019 """ from pathlib import Path import piexif import pytest from PIL import Image from cykooz.heif.errors import HeifError from cykooz.heif.image import RawHeifImage from cykooz.heif.pil import register_heif_opener @pytest.fixture(scope='session', autouse=...
24.529412
79
0.63709
0
0
0
0
941
0.376099
0
0
338
0.135092
2f15770186ad88ae65932854e1cbbe4f54f58e9d
3,960
py
Python
ambari-agent/src/main/python/ambari_agent/StatusCommandsExecutor.py
risdenk/ambari
3809bdc6d5fe367c2c3207812ee42856214db8de
[ "Apache-2.0" ]
null
null
null
ambari-agent/src/main/python/ambari_agent/StatusCommandsExecutor.py
risdenk/ambari
3809bdc6d5fe367c2c3207812ee42856214db8de
[ "Apache-2.0" ]
1
2018-10-22T17:50:00.000Z
2018-10-22T17:50:00.000Z
ambari-agent/src/main/python/ambari_agent/StatusCommandsExecutor.py
risdenk/ambari
3809bdc6d5fe367c2c3207812ee42856214db8de
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License");...
41.684211
195
0.769192
2,863
0.72298
0
0
0
0
0
0
1,786
0.45101
2f16819a3d5eb873ef8eef277cfd895042d5e5d1
5,630
py
Python
blender/addons/2.8/mifth_tools/mifth_tools_ui.py
feynmanliang/mifthtools
cf99bc5811215a8747c43d84895ba4fa806812b7
[ "BSD-3-Clause" ]
null
null
null
blender/addons/2.8/mifth_tools/mifth_tools_ui.py
feynmanliang/mifthtools
cf99bc5811215a8747c43d84895ba4fa806812b7
[ "BSD-3-Clause" ]
null
null
null
blender/addons/2.8/mifth_tools/mifth_tools_ui.py
feynmanliang/mifthtools
cf99bc5811215a8747c43d84895ba4fa806812b7
[ "BSD-3-Clause" ]
null
null
null
import bpy from bpy.props import * from bpy.types import Operator, AddonPreferences class MFT_PT_PanelPose(bpy.types.Panel): bl_label = "Bones" bl_space_type = 'VIEW_3D' bl_region_type = 'UI' bl_context = "posemode" bl_category = 'Mifth' # bl_options = {'DEFAULT_CLOSED'} def draw(self, co...
37.533333
89
0.675311
5,531
0.982416
0
0
0
0
0
0
1,969
0.349734
2f1729df6cf48161f37c48656ac64fd0cceb2a63
11,830
py
Python
fabfile.py
bbayles/link
48cf656fac6c31c0aa82152ce68767e469ed5f06
[ "Apache-2.0" ]
9
2015-03-18T18:23:41.000Z
2016-11-18T09:16:02.000Z
fabfile.py
bbayles/link
48cf656fac6c31c0aa82152ce68767e469ed5f06
[ "Apache-2.0" ]
3
2015-11-07T16:56:51.000Z
2016-11-22T19:32:09.000Z
fabfile.py
bbayles/link
48cf656fac6c31c0aa82152ce68767e469ed5f06
[ "Apache-2.0" ]
7
2015-05-15T18:12:40.000Z
2017-03-16T18:42:25.000Z
""" Fabfile for deploying and setting up code that looks like the production environment. it also makes it easy to start up the servers If you want to run on the localhost you may need to first do:: rm -rf ~/.ssh/known_hosts """ from __future__ import with_statement import os import re from fabric.api import ...
28.995098
129
0.608876
0
0
0
0
0
0
0
0
5,752
0.486221
2f17c5de8625cd4bead31cfebf12c8291e262c52
183
py
Python
jails/routing.py
himrock922/jaisting
a1a53371043c05f0bb82fb7e2e3e16aecb1eba42
[ "Apache-2.0" ]
9
2019-03-23T08:38:58.000Z
2021-01-27T05:54:32.000Z
jails/routing.py
himrock922/jaisting
a1a53371043c05f0bb82fb7e2e3e16aecb1eba42
[ "Apache-2.0" ]
16
2019-03-23T07:35:01.000Z
2022-01-22T04:23:46.000Z
jails/routing.py
himrock922/jaisting
a1a53371043c05f0bb82fb7e2e3e16aecb1eba42
[ "Apache-2.0" ]
1
2019-03-24T13:17:18.000Z
2019-03-24T13:17:18.000Z
from channels.routing import ProtocolTypeRouter from django.urls import re_path from . import consumers websocket_urlpatterns = [ re_path(r'/websocket', consumers.VNCConsumer) ]
22.875
49
0.803279
0
0
0
0
0
0
0
0
13
0.071038
2f190acf1519186091c3bd6551e361c43ae96fd6
515
py
Python
layers/poky/meta/lib/oeqa/runtime/case.py
dtischler/px30-test
55dce0b7aff1c4a7dea3ac94f94cc9c67fba7c9f
[ "Apache-2.0" ]
53
2018-02-28T08:51:32.000Z
2022-02-28T06:49:23.000Z
layers/poky/meta/lib/oeqa/runtime/case.py
dtischler/px30-test
55dce0b7aff1c4a7dea3ac94f94cc9c67fba7c9f
[ "Apache-2.0" ]
27
2018-01-25T00:26:53.000Z
2020-08-09T05:20:04.000Z
layers/poky/meta/lib/oeqa/runtime/case.py
dtischler/px30-test
55dce0b7aff1c4a7dea3ac94f94cc9c67fba7c9f
[ "Apache-2.0" ]
51
2018-02-21T04:46:08.000Z
2022-03-02T04:20:41.000Z
# Copyright (C) 2016 Intel Corporation # Released under the MIT license (see COPYING.MIT) from oeqa.core.case import OETestCase from oeqa.utils.package_manager import install_package, uninstall_package class OERuntimeTestCase(OETestCase): # target instance set by OERuntimeTestLoader. target = None def se...
28.611111
73
0.735922
310
0.601942
0
0
0
0
0
0
133
0.258252
2f194f4c6d0e43f1d9af761e30aabf62de1d5d85
393
py
Python
tests/analysis/test_general.py
trumanw/ScaffoldGraph
a594e5c5effe6c5e45c0061a235ccbeb64e416f9
[ "MIT" ]
121
2019-12-12T15:30:16.000Z
2022-02-28T02:00:54.000Z
tests/analysis/test_general.py
trumanw/ScaffoldGraph
a594e5c5effe6c5e45c0061a235ccbeb64e416f9
[ "MIT" ]
8
2020-04-04T15:37:26.000Z
2021-11-17T07:30:31.000Z
tests/analysis/test_general.py
trumanw/ScaffoldGraph
a594e5c5effe6c5e45c0061a235ccbeb64e416f9
[ "MIT" ]
28
2019-12-16T11:58:53.000Z
2021-11-19T09:57:46.000Z
""" scaffoldgraph tests.analysis.test_general """ from scaffoldgraph.analysis import get_singleton_scaffolds, get_virtual_scaffolds from ..test_network import long_test_network def test_get_virtual_scaffolds(network): v = get_virtual_scaffolds(network) assert len(v) == 19 def test_get_singleton_scaffolds(n...
23.117647
81
0.78626
0
0
0
0
0
0
0
0
49
0.124682
2f1989e325bb85e0738bbeae4175fa2a163031d0
1,750
py
Python
Problem 001-150 Python/pb035.py
Adamssss/projectEuler
25881b1bd82876e81197756f62ab5b0d73e3e6c8
[ "MIT" ]
2
2015-02-11T05:47:42.000Z
2015-02-11T05:47:51.000Z
Problem 001-150 Python/pb035.py
Adamssss/projectEuler
25881b1bd82876e81197756f62ab5b0d73e3e6c8
[ "MIT" ]
1
2015-04-13T06:36:21.000Z
2015-04-13T06:36:21.000Z
Problem 001-150 Python/pb035.py
Adamssss/projectEuler
25881b1bd82876e81197756f62ab5b0d73e3e6c8
[ "MIT" ]
null
null
null
import math import time t1 = time.time() N = 1000000 n = (N+1)//2 p = [True]*(n) i = 1 prime = [2] while i < n: if p[i]: t = 2*i+1 prime.append(t) j = i while j < n: p[j] = False j += t i += 1 def isPrime(item): root = math.floor(math.sqrt...
18.617021
58
0.430857
0
0
0
0
0
0
0
0
60
0.034286
2f19e1c9987607e703c57f23deb45035eb248b71
87
py
Python
izone/apps/secret/apps.py
shenjl/vmatrix
8f510d04005aa707cb6b296825f459f852cb59f6
[ "MIT" ]
null
null
null
izone/apps/secret/apps.py
shenjl/vmatrix
8f510d04005aa707cb6b296825f459f852cb59f6
[ "MIT" ]
2
2020-02-11T23:34:28.000Z
2020-06-05T17:33:09.000Z
izone/apps/secret/apps.py
selonsy/vmatrix
8f510d04005aa707cb6b296825f459f852cb59f6
[ "MIT" ]
null
null
null
from django.apps import AppConfig class SecretConfig(AppConfig): name = 'secret'
14.5
33
0.747126
50
0.574713
0
0
0
0
0
0
8
0.091954
2f1a5c2760e9a1b86d6eb2f562c21e3dbc87be05
2,190
py
Python
BAP/adapters.py
EleutherAGI/summarisation
d432873e1ba171f47371b8b0df7235478b52ca99
[ "CC-BY-4.0" ]
11
2021-05-12T14:11:58.000Z
2022-01-25T04:23:38.000Z
BAP/adapters.py
EleutherAGI/summarisation
d432873e1ba171f47371b8b0df7235478b52ca99
[ "CC-BY-4.0" ]
3
2021-05-13T11:37:35.000Z
2021-05-13T11:50:15.000Z
BAP/adapters.py
EleutherAGI/summarisation
d432873e1ba171f47371b8b0df7235478b52ca99
[ "CC-BY-4.0" ]
null
null
null
import torch import torch.nn as nn from collections import OrderedDict class AdapterLayer(nn.Module): def __init__(self, input_size, reduction_factor): super(AdapterLayer, self).__init__() self.skip_adapter = False self.adapter = nn.Sequential(nn.Linear(input_size, input_size//reduc...
39.818182
111
0.594977
937
0.427854
0
0
0
0
0
0
504
0.230137
2f1b669092b8b167d53d53cce79bec39a591e1c1
3,934
py
Python
tests/test_PrependError.py
hutoTUM/macke-opt-llvm
95830cb4e1416a6d1fb538f2b91d1c4720d4bde7
[ "Apache-2.0" ]
4
2018-05-11T08:33:46.000Z
2019-12-16T01:49:37.000Z
tests/test_PrependError.py
aheroine/use-llvm-opt
407102740f563f57a7abb952e198f6a65800deaa
[ "Apache-2.0" ]
null
null
null
tests/test_PrependError.py
aheroine/use-llvm-opt
407102740f563f57a7abb952e198f6a65800deaa
[ "Apache-2.0" ]
null
null
null
import unittest import os import re import subprocess class TestPrependError(unittest.TestCase): def test_symmain_directory(self): self.assertIn("LLVMBIN", os.environ, "Path to llvm-bin not set") self.assertIn("KLEEBIN", os.environ, "Path to klee-bin not set") bitcodefile = "bin/klee_sym...
36.766355
73
0.576004
3,877
0.985511
0
0
0
0
0
0
1,387
0.352567
2f1da8ae305ab06e7ec0677f650d3ae476d39207
1,851
py
Python
water_modelling/hydrus/desktop/hydrus_desktop_deployer.py
Water-Modelling-Agh/Hydrus-Modflow-Syngery-Engine
4b28f75fb74647d6453385a893149a48f797eeed
[ "MIT" ]
null
null
null
water_modelling/hydrus/desktop/hydrus_desktop_deployer.py
Water-Modelling-Agh/Hydrus-Modflow-Syngery-Engine
4b28f75fb74647d6453385a893149a48f797eeed
[ "MIT" ]
null
null
null
water_modelling/hydrus/desktop/hydrus_desktop_deployer.py
Water-Modelling-Agh/Hydrus-Modflow-Syngery-Engine
4b28f75fb74647d6453385a893149a48f797eeed
[ "MIT" ]
null
null
null
import os import subprocess from typing import Optional from hydrus import hydrus_log_analyzer from hydrus.hydrus_deployer_interface import IHydrusDeployer from simulation.simulation_error import SimulationError from utils import path_formatter class _HydrusDesktopDeployer(IHydrusDeployer): LOG_FILE = "simulatio...
41.133333
98
0.703944
1,602
0.865478
0
0
0
0
0
0
316
0.170719
2f1dfd7483d1c7356a889232b88033380a6fbee8
3,600
py
Python
src/openprocurement/framework/electroniccatalogue/views/submission.py
ProzorroUKR/openprocurement.api
2855a99aa8738fb832ee0dbad4e9590bd3643511
[ "Apache-2.0" ]
10
2020-02-18T01:56:21.000Z
2022-03-28T00:32:57.000Z
src/openprocurement/framework/electroniccatalogue/views/submission.py
quintagroup/openprocurement.api
2855a99aa8738fb832ee0dbad4e9590bd3643511
[ "Apache-2.0" ]
26
2018-07-16T09:30:44.000Z
2021-02-02T17:51:30.000Z
src/openprocurement/framework/electroniccatalogue/views/submission.py
ProzorroUKR/openprocurement.api
2855a99aa8738fb832ee0dbad4e9590bd3643511
[ "Apache-2.0" ]
15
2019-08-08T10:50:47.000Z
2022-02-05T14:13:36.000Z
from openprocurement.api.utils import APIResource, json_view, context_unpack, get_now, generate_id from openprocurement.framework.core.utils import ( submissionsresource, apply_patch, save_qualification, ) from openprocurement.framework.core.validation import ( validate_patch_submission_data, valida...
36.734694
102
0.656111
2,780
0.772222
0
0
2,976
0.826667
0
0
673
0.186944
2f222448d0c305c6158a8a8cb410ef32dcbf5429
7,090
py
Python
util.py
gmshashank/pytorch_yolo
9736006639acba9743b4e3ff56285668357097f9
[ "MIT" ]
null
null
null
util.py
gmshashank/pytorch_yolo
9736006639acba9743b4e3ff56285668357097f9
[ "MIT" ]
null
null
null
util.py
gmshashank/pytorch_yolo
9736006639acba9743b4e3ff56285668357097f9
[ "MIT" ]
null
null
null
from __future__ import division from torch.autograd import Variable import cv2 import numpy as np import torch def bbox_iou(box1, box2): # returns IoU of two bounding boxes b1_x1, b1_y1, b1_x2, b1_y2 = box1[:, 0], box1[:, 1], box1[:, 2], box1[:, 3] b2_x1, b2_y1, b2_x2, b2_y2 = box2[:, 0], box2...
34.754902
87
0.572779
0
0
0
0
0
0
0
0
499
0.070381
2f2228d6057ad9c4100fbf0aed98528ab280f726
743
py
Python
922.py
BLUECARVIN/LeetCode
0d085ed2dbee47c57d22ac368872161076369ff9
[ "MIT" ]
null
null
null
922.py
BLUECARVIN/LeetCode
0d085ed2dbee47c57d22ac368872161076369ff9
[ "MIT" ]
null
null
null
922.py
BLUECARVIN/LeetCode
0d085ed2dbee47c57d22ac368872161076369ff9
[ "MIT" ]
null
null
null
class Solution: def sortArrayByParityII(self, A: List[int]) -> List[int]: A.sort(key=lambda x: (x % 2 != 0)) b = [] for i in range(int(len(A) / 2)): b.append(A[i]) b.append(A[-(1+i)]) return b # ---------- 320ms, 15.9MB ---------- # class Solution: def so...
28.576923
61
0.414536
661
0.889637
0
0
0
0
0
0
78
0.10498
2f224c8f917dc2d903a60f297bdfff121e03b7dc
1,190
py
Python
mainConsumer.py
cmoshe390/pythonProj
7123255abbb53e4330c9548be16dd9e237f8a51d
[ "Unlicense", "MIT" ]
null
null
null
mainConsumer.py
cmoshe390/pythonProj
7123255abbb53e4330c9548be16dd9e237f8a51d
[ "Unlicense", "MIT" ]
null
null
null
mainConsumer.py
cmoshe390/pythonProj
7123255abbb53e4330c9548be16dd9e237f8a51d
[ "Unlicense", "MIT" ]
null
null
null
from rabbitConsumer import * from socketConsumer import SocketConsumer from dlx import * import threading import sys if __name__ == '__main__': work_with = sys.argv[1] r_k = ['*.jpg', '*.jpeg', '#'] threads = [] dlx = ReconnectingDlx() threads.append(threading.Thread(target=dlx.run)) for j...
34
118
0.561345
0
0
0
0
0
0
0
0
335
0.281513
2f237c48f402b5312560d0ad14f693b93cf182f6
1,797
py
Python
backend/flask-api/migrations/versions/6fdbb9233bd6_.py
lucasbibianot/inova-cnj-time16
e621d7027bd462d348e233ffd6ed88648c53704b
[ "Apache-2.0" ]
null
null
null
backend/flask-api/migrations/versions/6fdbb9233bd6_.py
lucasbibianot/inova-cnj-time16
e621d7027bd462d348e233ffd6ed88648c53704b
[ "Apache-2.0" ]
null
null
null
backend/flask-api/migrations/versions/6fdbb9233bd6_.py
lucasbibianot/inova-cnj-time16
e621d7027bd462d348e233ffd6ed88648c53704b
[ "Apache-2.0" ]
2
2020-10-19T22:03:31.000Z
2020-11-29T21:22:33.000Z
"""Mapeamento das tabelas para persistir os processos datajud Revision ID: 6fdbb9233bd6 Revises: 8d2eb6149b1d Create Date: 2020-10-18 09:22:06.650559 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '6fdbb9233bd6' down_revision = '8d2eb6149b1d' branch_labels = N...
36.673469
76
0.709516
0
0
0
0
0
0
0
0
752
0.418475
2f239d716de5c5b3e73637e42e5427fd0197839a
1,991
py
Python
analyses/quantifications/scripts/2019_11_12_CC414022_quantifications.py
brendano257/Zugspitze-Schneefernerhaus
64bb86ece2eec147f2a7fb412f87ff2313388753
[ "MIT" ]
null
null
null
analyses/quantifications/scripts/2019_11_12_CC414022_quantifications.py
brendano257/Zugspitze-Schneefernerhaus
64bb86ece2eec147f2a7fb412f87ff2313388753
[ "MIT" ]
null
null
null
analyses/quantifications/scripts/2019_11_12_CC414022_quantifications.py
brendano257/Zugspitze-Schneefernerhaus
64bb86ece2eec147f2a7fb412f87ff2313388753
[ "MIT" ]
null
null
null
""" A set of CC412022, CC416168 were run back to back without blanks on 2019-11-12. Rough quantification is done by the below. """ __package__ = 'Z' from datetime import datetime from settings import CORE_DIR, DB_NAME from IO.db import connect_to_db, GcRun, Integration, Standard, SampleQuant from processing import b...
40.632653
109
0.70668
0
0
0
0
0
0
0
0
329
0.165244
2f25439acb972903c75d41093b0f43be910845ab
310
py
Python
main.py
mesmacosta/datacatalog-fileset-enricher
0792632fc181b13696f89ef3335da4e2ce1dca4a
[ "MIT" ]
3
2020-04-01T15:28:25.000Z
2020-06-06T18:30:34.000Z
main.py
mesmacosta/datacatalog-fileset-enricher
0792632fc181b13696f89ef3335da4e2ce1dca4a
[ "MIT" ]
null
null
null
main.py
mesmacosta/datacatalog-fileset-enricher
0792632fc181b13696f89ef3335da4e2ce1dca4a
[ "MIT" ]
1
2020-07-09T06:05:24.000Z
2020-07-09T06:05:24.000Z
import logging import sys from datacatalog_fileset_enricher import datacatalog_fileset_enricher_cli if __name__ == '__main__': logging.basicConfig(level=logging.INFO) argv = sys.argv datacatalog_fileset_enricher_cli.\ DatacatalogFilesetEnricherCLI.run(argv[1:] if len(argv) > 0 else argv)
31
78
0.780645
0
0
0
0
0
0
0
0
10
0.032258
2f2590662675a6fa11503eafa56e671b78fe7a23
10,473
py
Python
srcds/events/csgo.py
w4rum/pysrcds
a9dbc198c6f087757e40d9af14ca8de9a39cef74
[ "MIT" ]
17
2015-06-26T08:49:07.000Z
2021-09-11T09:02:40.000Z
srcds/events/csgo.py
w4rum/pysrcds
a9dbc198c6f087757e40d9af14ca8de9a39cef74
[ "MIT" ]
5
2015-04-27T13:44:58.000Z
2022-02-07T19:00:42.000Z
srcds/events/csgo.py
w4rum/pysrcds
a9dbc198c6f087757e40d9af14ca8de9a39cef74
[ "MIT" ]
12
2015-02-13T15:34:47.000Z
2021-09-11T09:02:30.000Z
# Copyright (C) 2013 Peter Rowlands """csgo events module Contains event classes for CS:S and CS:GO events """ from __future__ import absolute_import, unicode_literals from future.utils import python_2_unicode_compatible from .generic import (BaseEvent, PlayerEvent, PlayerTargetEvent, KillEvent, ...
36.491289
83
0.531175
9,813
0.936981
0
0
9,987
0.953595
0
0
1,857
0.177313
2f2781811c4aeb325fd30cc295a58030636b2c7d
695
py
Python
formacao-python/brasilidades/Telefone.py
hollowrm08/python-alura
eb43be24c7160b38f1598d8da25582bfe04ade29
[ "MIT" ]
null
null
null
formacao-python/brasilidades/Telefone.py
hollowrm08/python-alura
eb43be24c7160b38f1598d8da25582bfe04ade29
[ "MIT" ]
null
null
null
formacao-python/brasilidades/Telefone.py
hollowrm08/python-alura
eb43be24c7160b38f1598d8da25582bfe04ade29
[ "MIT" ]
null
null
null
import re class Telefone: padrao = "([0-9]{2,3})?([0-9]{2})([0-9]{4,5})([0-9]{4})" def __init__(self, telefone): if self.valida_telefone(telefone): self._numero = telefone else: raise ValueError("Número Incorreto!") def __str__(self): return self.format_n...
24.821429
100
0.579856
683
0.981322
0
0
0
0
0
0
152
0.218391
2f27bd70a0bac448a69a312f5b0f06826fe66bdd
670
py
Python
Listing_19-1.py
PrinceChou/Play-Python-with-Alisa
808ab2744a99c548de4633b5707af27112bcdccf
[ "Apache-2.0" ]
null
null
null
Listing_19-1.py
PrinceChou/Play-Python-with-Alisa
808ab2744a99c548de4633b5707af27112bcdccf
[ "Apache-2.0" ]
null
null
null
Listing_19-1.py
PrinceChou/Play-Python-with-Alisa
808ab2744a99c548de4633b5707af27112bcdccf
[ "Apache-2.0" ]
null
null
null
# Listing_19-1.py # Copyright Warren & Carter Sande, 2013 # Released under MIT license http://www.opensource.org/licenses/mit-license.php # Version $version ---------------------------- # Trying out sounds in Pygame import pygame pygame.init() pygame.mixer.init() screen = pygame.display.set_mode([640,480]) pygame....
29.130435
81
0.649254
0
0
0
0
0
0
0
0
318
0.474627
2f2f6a510aa43446af03b23b36744744444b6c67
1,532
py
Python
docker_emperor/commands/context/set.py
workon-io/docker-emperor
d827bb2806494dcba97920dd83c5934d0a300089
[ "Apache-2.0" ]
null
null
null
docker_emperor/commands/context/set.py
workon-io/docker-emperor
d827bb2806494dcba97920dd83c5934d0a300089
[ "Apache-2.0" ]
null
null
null
docker_emperor/commands/context/set.py
workon-io/docker-emperor
d827bb2806494dcba97920dd83c5934d0a300089
[ "Apache-2.0" ]
null
null
null
import six import docker_emperor.logger as logger from docker_emperor.nodes.context import Context def run(root, *args, **kwargs): name = args[0].strip() if args else None if name: if name in root.project['contexts']: root.project.config['context'] = name logger.success(u'Cont...
39.282051
103
0.539817
0
0
0
0
0
0
0
0
304
0.198433
2f2f9ccd72b1ada4944e0fb6d3cba3a6b6b3d3fc
759
py
Python
bnc/scripts/instance_lock_test.py
dotzhou/geodesy-ausgeoid
7d4fbcc1d88738de6ab84ccdba362407cbaeb117
[ "Apache-2.0" ]
null
null
null
bnc/scripts/instance_lock_test.py
dotzhou/geodesy-ausgeoid
7d4fbcc1d88738de6ab84ccdba362407cbaeb117
[ "Apache-2.0" ]
null
null
null
bnc/scripts/instance_lock_test.py
dotzhou/geodesy-ausgeoid
7d4fbcc1d88738de6ab84ccdba362407cbaeb117
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from __future__ import absolute_import from __future__ import division from __future__ import print_function import sys import time from instance_lock import InstanceLock ################################################################################ def main(): print(sys.argv[0]) ...
19.973684
88
0.524374
0
0
0
0
0
0
0
0
270
0.355731
2f30a5cc06c93cc21cd8f006b81cb7e3a4339ab4
1,194
py
Python
examples/Sans_Sphere/guiFitSphere.py
DomiDre/modelexp
1ec25f71e739dac27716f9a8637fa6ab067499b9
[ "MIT" ]
null
null
null
examples/Sans_Sphere/guiFitSphere.py
DomiDre/modelexp
1ec25f71e739dac27716f9a8637fa6ab067499b9
[ "MIT" ]
null
null
null
examples/Sans_Sphere/guiFitSphere.py
DomiDre/modelexp
1ec25f71e739dac27716f9a8637fa6ab067499b9
[ "MIT" ]
null
null
null
import modelexp from modelexp.experiments.sas import Sans from modelexp.models.sas import Sphere from modelexp.data import XyeData from modelexp.fit import LevenbergMarquardt from modelexp.models.sas import InstrumentalResolution app = modelexp.App() app.setExperiment(Sans) dataRef = app.setData(XyeData) dataRef.lo...
39.8
99
0.742881
0
0
0
0
0
0
0
0
120
0.100503
2f34112711a7f4d8c6fd98347f5ba592ca3f8d4f
345
py
Python
chapter03/demo_3_2_1_7_1.py
NetworkRanger/python-spider-project
f501e331a59608d9a321a0d7254fcbcf81b50ec2
[ "MIT" ]
1
2019-02-08T03:14:17.000Z
2019-02-08T03:14:17.000Z
chapter03/demo_3_2_1_7_1.py
NetworkRanger/python-spider-project
f501e331a59608d9a321a0d7254fcbcf81b50ec2
[ "MIT" ]
null
null
null
chapter03/demo_3_2_1_7_1.py
NetworkRanger/python-spider-project
f501e331a59608d9a321a0d7254fcbcf81b50ec2
[ "MIT" ]
null
null
null
#!/usr/bin/python2.7 # -*- coding:utf-8 -*- # Author: NetworkRanger # Date: 2019/1/9 上午12:35 """ 使用ProxyHandler在程序中动态设置代理 """ import urllib2 proxy = urllib2.ProxyHandler({'http': '127.0.0.1:8087'}) opener = urllib2.build_opener([proxy]) urllib2.install_opener(opener) response = urllib2.urlopen('http://www.zhichu.com...
21.5625
56
0.713043
0
0
0
0
0
0
0
0
195
0.522788
2f34c3e2255c1aaf56cddd4bf264efb8253bf37a
1,254
py
Python
scripts/run_metasv_bed2vcf.py
willrockout/metasv
b46f15cbe8a28941661855da6587451c971dc2e3
[ "BSD-2-Clause" ]
43
2015-01-12T20:58:24.000Z
2021-11-24T07:30:06.000Z
scripts/run_metasv_bed2vcf.py
willrockout/metasv
b46f15cbe8a28941661855da6587451c971dc2e3
[ "BSD-2-Clause" ]
80
2015-01-08T00:34:55.000Z
2022-02-16T08:30:34.000Z
scripts/run_metasv_bed2vcf.py
willrockout/metasv
b46f15cbe8a28941661855da6587451c971dc2e3
[ "BSD-2-Clause" ]
25
2015-04-30T06:30:28.000Z
2022-02-22T02:48:20.000Z
#!/usr/bin/env python import argparse import logging from metasv.generate_final_vcf import convert_metasv_bed_to_vcf if __name__ == "__main__": FORMAT = '%(levelname)s %(asctime)-15s %(name)-20s %(message)s' logging.basicConfig(level=logging.INFO, format=FORMAT) logger = logging.getLogger(__name__) p...
41.8
75
0.651515
0
0
0
0
0
0
0
0
303
0.241627
2f373ae8b308ab8313e26c9ce9ba782726162914
2,273
py
Python
almanac/pages/abstract_page.py
welchbj/almanac
91db5921a27f7d089b4ad8463ffb6e1453c5126a
[ "MIT" ]
4
2020-08-04T10:59:10.000Z
2021-08-23T13:42:03.000Z
almanac/pages/abstract_page.py
welchbj/almanac
91db5921a27f7d089b4ad8463ffb6e1453c5126a
[ "MIT" ]
null
null
null
almanac/pages/abstract_page.py
welchbj/almanac
91db5921a27f7d089b4ad8463ffb6e1453c5126a
[ "MIT" ]
2
2021-07-20T04:49:22.000Z
2021-08-23T13:42:23.000Z
from __future__ import annotations from abc import ABC, abstractmethod, abstractproperty from typing import Any, Optional, Set from .page_path import PagePath, PagePathLike class AbstractPage(ABC): """The base abstract page interface.""" def __init__( self, path: PagePathLike, ) -> None...
21.647619
83
0.57985
2,095
0.921689
0
0
1,319
0.58029
0
0
760
0.33436
2f3740dbe908121e76457672fb1354e03d0a203a
3,022
py
Python
examples/VTK/PerfTests/scene-export-time.py
ajpmaclean/trame
48ab4e80c6050a2bea8b04ef32fd7d8b2cc7f787
[ "BSD-3-Clause" ]
null
null
null
examples/VTK/PerfTests/scene-export-time.py
ajpmaclean/trame
48ab4e80c6050a2bea8b04ef32fd7d8b2cc7f787
[ "BSD-3-Clause" ]
null
null
null
examples/VTK/PerfTests/scene-export-time.py
ajpmaclean/trame
48ab4e80c6050a2bea8b04ef32fd7d8b2cc7f787
[ "BSD-3-Clause" ]
null
null
null
from trame import state from trame.html import vuetify, vtk from trame.layouts import SinglePage from vtkmodules.vtkImagingCore import vtkRTAnalyticSource from vtkmodules.vtkFiltersGeometry import vtkGeometryFilter from vtkmodules.vtkRenderingCore import ( vtkRenderer, vtkRenderWindow, vtkRenderWindowInter...
29.627451
81
0.617141
0
0
0
0
258
0.085374
0
0
844
0.279285
2f37d9b321c1b357a652919715d0a963e96430ee
601
py
Python
server/toolz_swap_app/migrations/0021_auto_20211217_2310.py
minerva-university/cs162-toolz-swap-service
d514d9b04118f26479cba71497c12dfa824c7c42
[ "MIT" ]
null
null
null
server/toolz_swap_app/migrations/0021_auto_20211217_2310.py
minerva-university/cs162-toolz-swap-service
d514d9b04118f26479cba71497c12dfa824c7c42
[ "MIT" ]
null
null
null
server/toolz_swap_app/migrations/0021_auto_20211217_2310.py
minerva-university/cs162-toolz-swap-service
d514d9b04118f26479cba71497c12dfa824c7c42
[ "MIT" ]
null
null
null
# Generated by Django 3.2.9 on 2021-12-17 22:10 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('toolz_swap_app', '0020_auto_20211217_1402'), ] operations = [ migrations.AddField( model_name='listing', name='item_...
25.041667
87
0.599002
508
0.845258
0
0
0
0
0
0
150
0.249584
2f382211712726ce3bebece3524ea17b01c0cd4f
2,540
py
Python
saleor/dashboard/store/special_page/views.py
Chaoslecion123/Diver
8c5c493701422eada49cbf95b0b0add08f1ea561
[ "BSD-3-Clause" ]
null
null
null
saleor/dashboard/store/special_page/views.py
Chaoslecion123/Diver
8c5c493701422eada49cbf95b0b0add08f1ea561
[ "BSD-3-Clause" ]
null
null
null
saleor/dashboard/store/special_page/views.py
Chaoslecion123/Diver
8c5c493701422eada49cbf95b0b0add08f1ea561
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import messages from django.contrib.auth.decorators import permission_required from django.shortcuts import get_object_or_404, redirect from django.template.response import TemplateResponse from django.utils.translation import pgettext_lazy from ....store.models import SpecialPage from ...views imp...
40.31746
77
0.715748
0
0
0
0
2,150
0.846457
0
0
526
0.207087
2f38dea668d3c57cb5f9fffdb2e8a23821880993
96
py
Python
pacote-download/Ex24.py
nkonai/Curso-em-video-Python
c05a60b3daa7d448e1e7f0d4d23f62df5d2c8df2
[ "MIT" ]
null
null
null
pacote-download/Ex24.py
nkonai/Curso-em-video-Python
c05a60b3daa7d448e1e7f0d4d23f62df5d2c8df2
[ "MIT" ]
null
null
null
pacote-download/Ex24.py
nkonai/Curso-em-video-Python
c05a60b3daa7d448e1e7f0d4d23f62df5d2c8df2
[ "MIT" ]
null
null
null
cidade = str(input('Qual cidade voce mora?')) print(cidade.strip().lower().startswith('santo'))
32
49
0.708333
0
0
0
0
0
0
0
0
31
0.322917
2f3a828848ad3ed2bdecff21215f6a9e0ea54453
8,417
py
Python
src/salt_finder_charts/standard_finder_charts.py
saltastroops/salt_finder_charts
f5b0f7a779f7f1c2b8a228ba6ed65a17bd17b4de
[ "MIT" ]
null
null
null
src/salt_finder_charts/standard_finder_charts.py
saltastroops/salt_finder_charts
f5b0f7a779f7f1c2b8a228ba6ed65a17bd17b4de
[ "MIT" ]
null
null
null
src/salt_finder_charts/standard_finder_charts.py
saltastroops/salt_finder_charts
f5b0f7a779f7f1c2b8a228ba6ed65a17bd17b4de
[ "MIT" ]
null
null
null
from datetime import datetime, timedelta from typing import BinaryIO, Generator, Optional, Tuple import astropy.units as u import pytz from astropy.units import Quantity from salt_finder_charts.image import Survey, SurveyImageService from salt_finder_charts.mode import ( Mode, ModeDetails, ImagingModeDeta...
34.63786
147
0.661756
0
0
0
0
0
0
0
0
3,244
0.38541
2f3aae6740fa544f6fcbafd5b09e5b47c616d5d2
2,449
py
Python
satstac/landsat/cli.py
developmentseed/sat-stac-landsat
f2263485043a827b4153aecc12f45a3d1363e9e2
[ "MIT" ]
null
null
null
satstac/landsat/cli.py
developmentseed/sat-stac-landsat
f2263485043a827b4153aecc12f45a3d1363e9e2
[ "MIT" ]
null
null
null
satstac/landsat/cli.py
developmentseed/sat-stac-landsat
f2263485043a827b4153aecc12f45a3d1363e9e2
[ "MIT" ]
null
null
null
import argparse import logging import sys from datetime import datetime import satstac from satstac import Catalog import satstac.landsat as landsat from .version import __version__ # quiet loggers logging.getLogger('urllib3').propagate = False logging.getLogger('requests').propagate = False logger = logging.getLog...
37.106061
120
0.694978
0
0
0
0
0
0
0
0
778
0.317681
2f3ae02cd059cdf4b269302e970b02d87301e8cf
3,005
py
Python
database.py
pratik-choudhari/squ.ez-url-shortener
ebd13da15501806d0ef30353fe77a9d3d6d1081a
[ "MIT" ]
5
2020-12-20T14:50:31.000Z
2021-09-20T06:39:18.000Z
database.py
pratik-choudhari/squ.ez-url-shortener
ebd13da15501806d0ef30353fe77a9d3d6d1081a
[ "MIT" ]
null
null
null
database.py
pratik-choudhari/squ.ez-url-shortener
ebd13da15501806d0ef30353fe77a9d3d6d1081a
[ "MIT" ]
3
2020-12-20T18:18:09.000Z
2021-11-14T09:42:07.000Z
import sqlite3 import random import string import re import sys # domain name args = sys.argv if len(args)==2: if args[1] == 'localhost': domain = "localhost:5000/" else: domain = "https://squez-url-shortener.herokuapp.com/" else: domain = "https://squez-url-shortener.herokuapp.com/" # URL...
28.084112
200
0.547088
0
0
0
0
0
0
0
0
1,525
0.505804
2f3e4585789dca549a8fbdd15c298b8c2bf0a041
1,954
py
Python
ball.py
b3mery/Python-Pong-Game
d0051942412c331a752cbade11815002be8d4d1e
[ "MIT" ]
null
null
null
ball.py
b3mery/Python-Pong-Game
d0051942412c331a752cbade11815002be8d4d1e
[ "MIT" ]
null
null
null
ball.py
b3mery/Python-Pong-Game
d0051942412c331a752cbade11815002be8d4d1e
[ "MIT" ]
null
null
null
from turtle import Turtle from scoreboard import Scoreboard WIDTH = 800 HEIGHT = 600 START_SPEED = 0.1 class Ball(Turtle): """Class for creating and moving the ball. Extends Turtle""" def __init__(self) -> None: super().__init__() self.y_trajectory = 10 self.x_trajectory = 10 ...
34.892857
84
0.590583
1,848
0.945752
0
0
0
0
0
0
479
0.245138
2f3f7fbb2e9c92a49ae40445269e03dc87f8856d
185
py
Python
tsai/data/basics.py
radi-cho/tsai
32f24d55ee58df1a14d1e68618f230097a266c77
[ "Apache-2.0" ]
1
2022-01-02T18:21:27.000Z
2022-01-02T18:21:27.000Z
tsai/data/basics.py
radi-cho/tsai
32f24d55ee58df1a14d1e68618f230097a266c77
[ "Apache-2.0" ]
31
2021-12-01T23:08:51.000Z
2021-12-29T02:59:49.000Z
tsai/data/basics.py
radi-cho/tsai
32f24d55ee58df1a14d1e68618f230097a266c77
[ "Apache-2.0" ]
1
2022-03-13T16:47:04.000Z
2022-03-13T16:47:04.000Z
from .validation import * from .preparation import * from .external import * from .core import * from .preprocessing import * from .transforms import * from .mixed_augmentation import *
26.428571
33
0.778378
0
0
0
0
0
0
0
0
0
0
2f3f9137757f79baedb08f68f1da6c337e1ee99a
703
py
Python
push_notifications/migrations/0002_auto_20180408_1513.py
walison17/pulso-api
b9edfc3f6042676dbdb50d7efcdb461a19ea90ed
[ "MIT" ]
null
null
null
push_notifications/migrations/0002_auto_20180408_1513.py
walison17/pulso-api
b9edfc3f6042676dbdb50d7efcdb461a19ea90ed
[ "MIT" ]
null
null
null
push_notifications/migrations/0002_auto_20180408_1513.py
walison17/pulso-api
b9edfc3f6042676dbdb50d7efcdb461a19ea90ed
[ "MIT" ]
null
null
null
# Generated by Django 2.0 on 2018-04-08 15:13 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('push_notifications', '0001_initial'), ] operations = [ migrations.RemoveField( model_name='device', name='is_active', ...
25.107143
99
0.5633
612
0.870555
0
0
0
0
0
0
153
0.217639
2f436e86cdf8ffd5b6c159aa475cc3ce92d884bf
50
py
Python
app/api/config.py
stdevelopr/Jtray
287a4be1e26b2dab372323cc0bd8df1f8689fd97
[ "MIT" ]
null
null
null
app/api/config.py
stdevelopr/Jtray
287a4be1e26b2dab372323cc0bd8df1f8689fd97
[ "MIT" ]
1
2020-05-01T20:37:34.000Z
2020-05-01T20:37:34.000Z
app/api/config.py
stdevelopr/JTray
287a4be1e26b2dab372323cc0bd8df1f8689fd97
[ "MIT" ]
null
null
null
jira_user_url = "" jira_email = "" jira_token = ""
16.666667
18
0.66
0
0
0
0
0
0
0
0
6
0.12
2f43d99fa4ec9d66bba52027500997441d643a8e
1,216
py
Python
baseq/bed/__init__.py
basedata10/baseq
0f1786c3392a51a6ec7cb0f32355cd28eaa5df29
[ "MIT" ]
1
2018-08-30T20:29:17.000Z
2018-08-30T20:29:17.000Z
baseq/bed/__init__.py
basedata10/baseq
0f1786c3392a51a6ec7cb0f32355cd28eaa5df29
[ "MIT" ]
null
null
null
baseq/bed/__init__.py
basedata10/baseq
0f1786c3392a51a6ec7cb0f32355cd28eaa5df29
[ "MIT" ]
null
null
null
import subprocess, re, os from baseq.utils.runcommand import run_it, run_generator import pandas as pd import random """ baseq dev bed ./bed """ import click, os, sys CONTEXT_SETTINGS = dict(help_option_names=['-h', '--help']) @click.group(context_settings=CONTEXT_SETTINGS) def cli(): pass class BEDFILE: def ...
31.179487
124
0.612664
919
0.755757
0
0
67
0.055099
0
0
127
0.104441
2f44190ef14e633a5b67ab12f51b43692438c0da
855
py
Python
tests/unit/test_iostatic.py
Rogdham/python-xz
f53266dae8d4f7fcc74cd53222f22105e40d5112
[ "MIT" ]
3
2021-07-13T16:06:38.000Z
2022-03-04T22:52:58.000Z
tests/unit/test_iostatic.py
Rogdham/python-xz
f53266dae8d4f7fcc74cd53222f22105e40d5112
[ "MIT" ]
3
2021-09-19T09:48:35.000Z
2022-01-09T15:38:48.000Z
tests/unit/test_iostatic.py
Rogdham/python-xz
f53266dae8d4f7fcc74cd53222f22105e40d5112
[ "MIT" ]
null
null
null
from io import UnsupportedOperation import pytest from xz.io import IOStatic def test_read() -> None: static = IOStatic(b"abcdefghij") # read all static.seek(0) assert static.read() == b"abcdefghij" static.seek(4) assert static.read() == b"efghij" # read partial static.seek(6) ...
22.5
49
0.625731
0
0
0
0
0
0
0
0
93
0.108772
2f4660a8cf58761bb602bec1315943879f761718
4,264
py
Python
swtstore/application.py
janastu/swtstore
7326138bf2fbf2a4ed8c7300c68092f91709dfc2
[ "BSD-2-Clause" ]
2
2015-04-28T00:35:21.000Z
2016-02-11T19:31:15.000Z
swtstore/application.py
janastu/swtstore
7326138bf2fbf2a4ed8c7300c68092f91709dfc2
[ "BSD-2-Clause" ]
9
2015-02-02T11:24:23.000Z
2017-12-29T07:49:07.000Z
swtstore/application.py
janastu/swtstore
7326138bf2fbf2a4ed8c7300c68092f91709dfc2
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ __init__.py """ import os import logging from logging.handlers import RotatingFileHandler from flask import Flask, request, jsonify, render_template, make_response from classes.database import db from config import DefaultConfig from classes import views #from classes import models f...
24.090395
78
0.633912
0
0
0
0
1,667
0.390947
0
0
780
0.182927
2f46d633a48c16504cc0737a6f08d56b6c8d1caf
2,313
py
Python
2018/12a.py
apie/advent-of-code
c49abec01b044166a688ade40ebb1e642f0e5ce0
[ "MIT" ]
4
2018-12-04T23:33:46.000Z
2021-12-07T17:33:27.000Z
2018/12a.py
apie/advent-of-code
c49abec01b044166a688ade40ebb1e642f0e5ce0
[ "MIT" ]
17
2018-12-12T23:32:09.000Z
2020-01-04T15:50:31.000Z
2018/12a.py
apie/advent-of-code
c49abec01b044166a688ade40ebb1e642f0e5ce0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import pytest import fileinput import sys DAY=12 class Plants(): def __init__(self, in_lines): self.generation = 0 lines = iter(in_lines) initial_state = next(lines).replace('initial state: ', '') self.pots = {i:s for i, s in enumerate(initial_state) if s == '#' } ...
31.684932
92
0.587981
1,268
0.548206
0
0
241
0.104194
0
0
349
0.150886
2f47e0e4afa3b0ef06fd5508f958beec6b26eb72
826
py
Python
03-Spark DFs/24-Solution (Group By).py
PacktPublishing/PySpark-and-AWS-Master-Big-Data-with-PySpark-and-AWS
28726ada2a8f03557180b472eecf3efc72cab5a2
[ "MIT" ]
3
2021-09-29T04:11:44.000Z
2021-12-21T06:28:48.000Z
Part 3/Code/03-Spark DFs/24-Solution (Group By).py
PacktPublishing/50-Hours-of-Big-Data-PySpark-AWS-Scala-and-Scraping
8993a8ee10534a29aeee18fa91bdc48e3093bec5
[ "MIT" ]
null
null
null
Part 3/Code/03-Spark DFs/24-Solution (Group By).py
PacktPublishing/50-Hours-of-Big-Data-PySpark-AWS-Scala-and-Scraping
8993a8ee10534a29aeee18fa91bdc48e3093bec5
[ "MIT" ]
5
2021-11-17T15:47:36.000Z
2022-03-09T05:13:09.000Z
# Databricks notebook source from pyspark.sql import SparkSession from pyspark.sql.functions import col, lit from pyspark.sql.functions import sum,avg,max,min,mean,count spark = SparkSession.builder.appName("Spark DataFrames").getOrCreate() # COMMAND ---------- df = spark.read.options(header='True', inferSchema='True...
25.8125
99
0.659806
0
0
0
0
0
0
0
0
349
0.422518
2f494c01c823bdfd4b8fa27dc3e019de599fda15
897
py
Python
queues/list_queue/queue.py
joeb15/202Problems
a8ab3dc49cb899b640cc836863e28e52fb978466
[ "MIT" ]
null
null
null
queues/list_queue/queue.py
joeb15/202Problems
a8ab3dc49cb899b640cc836863e28e52fb978466
[ "MIT" ]
null
null
null
queues/list_queue/queue.py
joeb15/202Problems
a8ab3dc49cb899b640cc836863e28e52fb978466
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """ A queue is a first-in first-out type of data structure For this to work, you must be able to enqueue (add) items to the queue, dequeue (remove) items from the queue """ class List_Queue: """ Creates a List Queue """ def __init__(self, size): self.size = size ...
19.933333
109
0.591973
690
0.769231
0
0
0
0
0
0
570
0.635452