hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
f28123f9b50064f16e58daccff2fb43e69d6ad62
3,291
py
Python
processos/migrations/0001_initial.py
stoledo85/sistema_advocacia
81a981a5f47de8a257f547973e51537e9af3d541
[ "MIT" ]
null
null
null
processos/migrations/0001_initial.py
stoledo85/sistema_advocacia
81a981a5f47de8a257f547973e51537e9af3d541
[ "MIT" ]
null
null
null
processos/migrations/0001_initial.py
stoledo85/sistema_advocacia
81a981a5f47de8a257f547973e51537e9af3d541
[ "MIT" ]
null
null
null
# Generated by Django 3.1.1 on 2020-09-22 16:37 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('clie...
65.82
670
0.611668
7c202a933f1ae200d9e425d8953a8a11fcf1d1d3
15,141
py
Python
Xerus/GSASII/ElementTable.py
pedrobcst/Xerus
09df088e0207176df0d20715e1c9778d09d28250
[ "MIT" ]
18
2021-12-10T03:05:49.000Z
2022-03-25T15:48:35.000Z
Xerus/GSASII/ElementTable.py
pedrobcst/Xerus
09df088e0207176df0d20715e1c9778d09d28250
[ "MIT" ]
14
2022-02-24T11:09:26.000Z
2022-03-30T07:42:17.000Z
Xerus/GSASII/ElementTable.py
pedrobcst/Xerus
09df088e0207176df0d20715e1c9778d09d28250
[ "MIT" ]
1
2022-02-25T16:26:54.000Z
2022-02-25T16:26:54.000Z
# -*- coding: utf-8 -*- ''' *ElementTable: Periodic Table Data* ----------------------------------- Element table data for building periodic table with valences & JMOL colors. Need these in case we go back to this periodic table coloring scheme. Defines list ``ElTable`` which contains all defined oxidation states for...
89.064706
121
0.389472
d2c48a8d24ccc7a5520959fd4673b2fb05bb229f
4,378
py
Python
integration_tests/test_inventoryroles.py
chisou/cumulocity-python-api
f420b8ad2ec7735484db94b70ad6f5485585ddbb
[ "Apache-2.0" ]
9
2021-02-16T08:53:08.000Z
2022-02-15T11:58:19.000Z
integration_tests/test_inventoryroles.py
chisou/cumulocity-python-api
f420b8ad2ec7735484db94b70ad6f5485585ddbb
[ "Apache-2.0" ]
4
2021-04-20T12:26:41.000Z
2022-02-09T09:52:11.000Z
integration_tests/test_inventoryroles.py
chisou/cumulocity-python-api
f420b8ad2ec7735484db94b70ad6f5485585ddbb
[ "Apache-2.0" ]
3
2021-04-26T23:05:32.000Z
2021-12-09T14:13:58.000Z
# Copyright (c) 2020 Software AG, # Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, # and/or its subsidiaries and/or its affiliates and/or their licensors. # Use, reproduction, transfer, publication or disclosure is prohibited except # as specifically provided for in your License Agreement with Softwar...
38.403509
105
0.711055
b46c13f26bf8956217fc51a9b3c3de3ce8c99e85
12,018
py
Python
src/nlp_class2/glove.py
JouniVatanen/NLP-and-Deep-Learning
2fddcc2c39787713d33d17e80565de4ed073ca60
[ "MIT" ]
1
2020-05-24T06:55:31.000Z
2020-05-24T06:55:31.000Z
Machine Learning/nlp_class2/glove.py
Ashleshk/Machine-Learning-Data-Science-Deep-Learning
03357ab98155bf73b8f1d2fd53255cc16bea2333
[ "MIT" ]
null
null
null
Machine Learning/nlp_class2/glove.py
Ashleshk/Machine-Learning-Data-Science-Deep-Learning
03357ab98155bf73b8f1d2fd53255cc16bea2333
[ "MIT" ]
1
2020-03-16T13:11:14.000Z
2020-03-16T13:11:14.000Z
# Course URL: # https://deeplearningcourses.com/c/natural-language-processing-with-deep-learning-in-python # https://udemy.com/natural-language-processing-with-deep-learning-in-python from __future__ import print_function, division from builtins import range # Note: you may need to update your version of future # sudo ...
37.439252
117
0.473124
1524cd0617f8535fc5c9386207486ce54a8ef2f1
7,332
py
Python
tests/unit/test_cloud_networks.py
HQJaTu/pyrax
868f49527cd5e9161590eabd1144a6fcc02a7985
[ "Apache-2.0" ]
null
null
null
tests/unit/test_cloud_networks.py
HQJaTu/pyrax
868f49527cd5e9161590eabd1144a6fcc02a7985
[ "Apache-2.0" ]
null
null
null
tests/unit/test_cloud_networks.py
HQJaTu/pyrax
868f49527cd5e9161590eabd1144a6fcc02a7985
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import random import unittest from mock import patch from mock import MagicMock as Mock import pyrax.cloudnetworks from pyrax.cloudnetworks import CloudNetwork from pyrax.cloudnetworks import CloudNetworkManager from pyrax.cloudnetworks import CloudNetworkClient from pyr...
35.941176
79
0.653983
49e8809a3ff7f5dc3033ca8d2c4d566b13a666f1
18,265
py
Python
keras/keras_parameterized.py
winnerineast/keras
1e94c43d7ba0d7b6b629b2300e40470f495bdbe0
[ "Apache-2.0" ]
1
2021-01-01T00:16:04.000Z
2021-01-01T00:16:04.000Z
keras/keras_parameterized.py
winnerineast/keras
1e94c43d7ba0d7b6b629b2300e40470f495bdbe0
[ "Apache-2.0" ]
1
2021-01-10T15:10:05.000Z
2021-01-25T09:19:15.000Z
keras/keras_parameterized.py
winnerineast/keras
1e94c43d7ba0d7b6b629b2300e40470f495bdbe0
[ "Apache-2.0" ]
1
2021-01-10T09:06:39.000Z
2021-01-10T09:06:39.000Z
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
37.048682
80
0.717054
942ea4433d99790198dab89da80356c6c82d6944
396
py
Python
DjangoApp/wsgi.py
johnnynode/Django-demo
421f4d23d2773a1338a5163605a2f29202c91396
[ "MIT" ]
2
2018-08-18T15:14:45.000Z
2019-10-16T16:14:13.000Z
DjangoApp/wsgi.py
johnnynode/Django-demo
421f4d23d2773a1338a5163605a2f29202c91396
[ "MIT" ]
null
null
null
DjangoApp/wsgi.py
johnnynode/Django-demo
421f4d23d2773a1338a5163605a2f29202c91396
[ "MIT" ]
6
2018-05-05T18:13:05.000Z
2021-05-20T11:32:48.000Z
""" WSGI config for DjangoApp project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SE...
23.294118
78
0.787879
92b1f01c5dd17bdd04cec478f48a6265a0757fc4
561
py
Python
dsptools/filters/cumulative_moving_average.py
jamlamberti/dsp-tools
490bc50a497a3a7be85d48b29a8bb3d74ca7f5e8
[ "MIT" ]
null
null
null
dsptools/filters/cumulative_moving_average.py
jamlamberti/dsp-tools
490bc50a497a3a7be85d48b29a8bb3d74ca7f5e8
[ "MIT" ]
2
2019-10-11T03:54:35.000Z
2019-10-30T00:27:45.000Z
dsptools/filters/cumulative_moving_average.py
jamlamberti/dsp-tools
490bc50a497a3a7be85d48b29a8bb3d74ca7f5e8
[ "MIT" ]
null
null
null
from ..signal_generators.base_generator import BaseGenerator class CumulativeMovingAverage(BaseGenerator): def __init__(self, generator): super(CumulativeMovingAverage, self).__init__() self._generator = generator self._cntr = 0 self._cma = 0. def next_value(self): sel...
26.714286
68
0.634581
bda9b2264d8cff2e3b2566724a3027f99b16b475
1,726
py
Python
test/torchaudio_unittest/prototype/conformer_test_impl.py
popcornell/audio
7b6b2d000023e2aa3365b769866c5f375e0d5fda
[ "BSD-2-Clause" ]
null
null
null
test/torchaudio_unittest/prototype/conformer_test_impl.py
popcornell/audio
7b6b2d000023e2aa3365b769866c5f375e0d5fda
[ "BSD-2-Clause" ]
1
2021-09-07T15:42:33.000Z
2021-09-14T21:39:04.000Z
test/torchaudio_unittest/prototype/conformer_test_impl.py
popcornell/audio
7b6b2d000023e2aa3365b769866c5f375e0d5fda
[ "BSD-2-Clause" ]
null
null
null
import torch from torchaudio.prototype.models import Conformer from torchaudio_unittest.common_utils import TestBaseMixin, torch_script class ConformerTestImpl(TestBaseMixin): def _gen_model(self): conformer = ( Conformer( num_layers=4, input_dim=80, ...
34.52
110
0.625724
813fa2010aabffb37d93f6ebd97ecc00d0c312b3
12,299
py
Python
mirage/libs/wireless.py
Cabalist/mirage
22553d22da4e87ffb99da8d19f8b552986df0965
[ "MIT" ]
null
null
null
mirage/libs/wireless.py
Cabalist/mirage
22553d22da4e87ffb99da8d19f8b552986df0965
[ "MIT" ]
null
null
null
mirage/libs/wireless.py
Cabalist/mirage
22553d22da4e87ffb99da8d19f8b552986df0965
[ "MIT" ]
null
null
null
import time from queue import Empty, Queue from scapy.packet import Packet import mirage.libs.io as io from mirage.libs.wireless_utils.callbacks import Callback from mirage.libs.wireless_utils.device import Device from mirage.libs.wireless_utils.packetQueue import PacketQueue from mirage.libs.wireless_utils.packets i...
31.136709
325
0.694121
5ab302b636983e731ff53435c5bc2eb8e0e8f5fc
348
py
Python
CourseMatter/content/migrations/0004_alter_course_options.py
ss4328/CourseMatter
6eb7d13c178644bb300c3d7a7366e7aa290cce47
[ "MIT" ]
null
null
null
CourseMatter/content/migrations/0004_alter_course_options.py
ss4328/CourseMatter
6eb7d13c178644bb300c3d7a7366e7aa290cce47
[ "MIT" ]
null
null
null
CourseMatter/content/migrations/0004_alter_course_options.py
ss4328/CourseMatter
6eb7d13c178644bb300c3d7a7366e7aa290cce47
[ "MIT" ]
null
null
null
# Generated by Django 3.2.3 on 2021-05-20 22:12 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('content', '0003_content_course'), ] operations = [ migrations.AlterModelOptions( name='course', options={'ordering': ['-crea...
19.333333
50
0.58908
68f66638b5cae9c1a1ca0bce4752cf7ae5d676f2
510
py
Python
src/kgmk/dsa/string/lcp_array/kasai/__init__.py
kagemeka/python
486ce39d97360b61029527bacf00a87fdbcf552c
[ "MIT" ]
null
null
null
src/kgmk/dsa/string/lcp_array/kasai/__init__.py
kagemeka/python
486ce39d97360b61029527bacf00a87fdbcf552c
[ "MIT" ]
null
null
null
src/kgmk/dsa/string/lcp_array/kasai/__init__.py
kagemeka/python
486ce39d97360b61029527bacf00a87fdbcf552c
[ "MIT" ]
null
null
null
import typing class LCPKasai(): def __call__( self, a: typing.List[int], sa: typing.List[int], ) -> typing.List[int]: n = len(a) assert n > 0 and len(sa) == n rank = [-1] * n for i, x in enumerate(sa): rank[x] = i h, l = [0] * (n - 1), 0 for i in range(n): if l > 0: l -...
20.4
42
0.433333
13642a4f2c28f57af31267886833f1693ef73940
83,968
py
Python
core/minecraft/hypixel/player.py
vcokltfre/Myaer
8e2a57f26635781e19716b47028f465617defa75
[ "MIT" ]
null
null
null
core/minecraft/hypixel/player.py
vcokltfre/Myaer
8e2a57f26635781e19716b47028f465617defa75
[ "MIT" ]
null
null
null
core/minecraft/hypixel/player.py
vcokltfre/Myaer
8e2a57f26635781e19716b47028f465617defa75
[ "MIT" ]
null
null
null
""" MIT License Copyright (c) 2020 MyerFire Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publi...
79.969524
121
0.459175
9cb1e7c8f63b1956c75ff93d15cafb794c32f575
4,914
py
Python
ding/ding.py
liviu-/ding
14e49439b3898ba364921fe8519b3befd2f2ef01
[ "MIT" ]
417
2016-10-02T19:15:05.000Z
2022-02-04T11:31:27.000Z
ding/ding.py
liviu-/ding
14e49439b3898ba364921fe8519b3befd2f2ef01
[ "MIT" ]
11
2016-09-30T14:38:07.000Z
2016-10-28T21:04:02.000Z
ding/ding.py
liviu-/ding
14e49439b3898ba364921fe8519b3befd2f2ef01
[ "MIT" ]
23
2016-10-04T00:23:49.000Z
2022-02-26T00:57:43.000Z
#!/usr/bin/env python """Simple CLI beep tool""" from __future__ import unicode_literals from __future__ import print_function import re import os import sys import time import datetime import argparse VERSION = '2.1.0' N_BEEPS = 4 WAIT_BEEPS = 0.15 def relative_time(arg): """Validate user provided relative t...
32.979866
98
0.610297
a84b22812bab0dee55457d4b527df317da5e5897
30,108
py
Python
rally/plugins/openstack/scenarios/nova/servers.py
aforalee/rallyALi
8050ca08b0e253aeb19a1cec34f33c648f00136a
[ "Apache-2.0" ]
2
2015-02-06T11:03:12.000Z
2015-03-02T10:39:44.000Z
rally/plugins/openstack/scenarios/nova/servers.py
aforalee/rallyALi
8050ca08b0e253aeb19a1cec34f33c648f00136a
[ "Apache-2.0" ]
null
null
null
rally/plugins/openstack/scenarios/nova/servers.py
aforalee/rallyALi
8050ca08b0e253aeb19a1cec34f33c648f00136a
[ "Apache-2.0" ]
2
2016-03-16T03:52:13.000Z
2020-10-02T07:58:50.000Z
# Copyright 2013: Mirantis Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
46.462963
79
0.657201
ee7f8fa38ef4a09b9dd4c0a265a336c843e81aae
3,322
py
Python
models/simclr.py
ashwinipokle/contrastive_landscape
daec951c7a4cfc6c96464e0ef010081a642e3847
[ "MIT" ]
2
2022-03-30T07:24:07.000Z
2022-03-30T07:53:44.000Z
models/simclr.py
ashwinipokle/contrastive_landscape
daec951c7a4cfc6c96464e0ef010081a642e3847
[ "MIT" ]
null
null
null
models/simclr.py
ashwinipokle/contrastive_landscape
daec951c7a4cfc6c96464e0ef010081a642e3847
[ "MIT" ]
null
null
null
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from models.model_utils import SymReLU from models.nt_xent import NT_Xent class SimCLROrigModel(nn.Module): def __init__(self, Wo_init, m, p, d, has_online_ReLU=True, has_target_ReLU=True...
26.365079
77
0.54696
77123ef413546198598407553cd2c9fd43c6868f
2,515
py
Python
ProgettoLube/WebInspector/venv/Lib/site-packages/tensorflow/python/keras/api/_v2/keras/applications/__init__.py
Lube-Project/ProgettoLube
cbf33971e2c2e865783ec1a2302625539186a338
[ "MIT" ]
null
null
null
ProgettoLube/WebInspector/venv/Lib/site-packages/tensorflow/python/keras/api/_v2/keras/applications/__init__.py
Lube-Project/ProgettoLube
cbf33971e2c2e865783ec1a2302625539186a338
[ "MIT" ]
null
null
null
ProgettoLube/WebInspector/venv/Lib/site-packages/tensorflow/python/keras/api/_v2/keras/applications/__init__.py
Lube-Project/ProgettoLube
cbf33971e2c2e865783ec1a2302625539186a338
[ "MIT" ]
1
2021-01-28T01:57:41.000Z
2021-01-28T01:57:41.000Z
# This file is MACHINE GENERATED! Do not edit. # Generated by: tensorflow/python/tools/api/generator/create_python_api.py script. """Keras Applications are canned architectures with pre-trained weights. """ from __future__ import print_function as _print_function import sys as _sys from . import densenet from . impo...
48.365385
86
0.866004
0c875de19b1e7f9622e083159d801425d1fb2aa1
572
py
Python
neuralnet_pytorch/optim/lr_scheduler/inverse_lr.py
justanhduc/neuralnet-pytorch
cbb0c5a540a0ba91cb4dd20684bb00692305d193
[ "MIT" ]
28
2019-01-07T04:07:55.000Z
2021-11-09T15:16:11.000Z
neuralnet_pytorch/optim/lr_scheduler/inverse_lr.py
justanhduc/neuralnet-pytorch
cbb0c5a540a0ba91cb4dd20684bb00692305d193
[ "MIT" ]
9
2019-12-25T08:00:33.000Z
2021-11-23T09:02:34.000Z
neuralnet_pytorch/optim/lr_scheduler/inverse_lr.py
justanhduc/neuralnet-pytorch
cbb0c5a540a0ba91cb4dd20684bb00692305d193
[ "MIT" ]
3
2020-08-07T12:49:05.000Z
2022-03-07T21:32:39.000Z
import torch.optim as optim class InverseLR(optim.lr_scheduler.LambdaLR): """Decreases lr every iteration by the inverse of gamma times iteration plus 1. :math:`\\text{lr} = \\text{lr} / (1 + \\gamma * t)`. Parameters ---------- optimizer wrapped optimizer. gamma decrease coef...
27.238095
83
0.611888
640aff09c0fd42aa079023c004699bf1f88756c3
468
py
Python
scripts/run-web-server.py
tmadden/alia-html
6a1feb615028ca08de72c9e889c43d6ceb8b9cfd
[ "MIT" ]
1
2020-12-31T16:38:04.000Z
2020-12-31T16:38:04.000Z
scripts/run-web-server.py
tmadden/alia-html
6a1feb615028ca08de72c9e889c43d6ceb8b9cfd
[ "MIT" ]
15
2021-01-24T16:27:10.000Z
2021-02-17T19:43:08.000Z
scripts/run-web-server.py
tmadden/alia-html
6a1feb615028ca08de72c9e889c43d6ceb8b9cfd
[ "MIT" ]
null
null
null
#!/usr/bin/env python import BaseHTTPServer, SimpleHTTPServer port = 8002 print "Running on port %d" % port SimpleHTTPServer.SimpleHTTPRequestHandler.extensions_map[ '.wasm'] = 'application/wasm' httpd = BaseHTTPServer.HTTPServer(('localhost', port), SimpleHTTPServer.SimpleHTTPR...
29.25
76
0.709402
4e0c1aff997716b94e6987b75f26e8944b0904da
3,553
py
Python
api_buddy/network/auth/oauth2.py
fonsecapeter/ttam-buddy
4cff7a6f61825d71ec8ebdfd324631043a0ba8c8
[ "MIT" ]
1
2020-06-27T20:00:41.000Z
2020-06-27T20:00:41.000Z
api_buddy/network/auth/oauth2.py
fonsecapeter/api-buddy
4cff7a6f61825d71ec8ebdfd324631043a0ba8c8
[ "MIT" ]
35
2019-02-11T19:52:38.000Z
2021-03-02T21:46:28.000Z
api_buddy/network/auth/oauth2.py
fonsecapeter/ttam-buddy
4cff7a6f61825d71ec8ebdfd324631043a0ba8c8
[ "MIT" ]
1
2020-06-27T20:00:47.000Z
2020-06-27T20:00:47.000Z
import webbrowser from colorama import Fore, Style from os import environ from typing import Optional from time import sleep from urllib.parse import urljoin from requests_oauthlib import OAuth2Session from api_buddy.utils.exceptions import print_exception from api_buddy.utils.typing import Options, Preferences, Query...
30.62931
79
0.646214
ec4375f12e02142c68423b6c1ec7f68c03e47dd2
550
py
Python
material/admin.py
prabinrs/surveilance-system
1a9f118737d1043133dbb7247573b4616a680c2d
[ "BSD-3-Clause" ]
null
null
null
material/admin.py
prabinrs/surveilance-system
1a9f118737d1043133dbb7247573b4616a680c2d
[ "BSD-3-Clause" ]
2
2020-06-05T21:39:21.000Z
2021-06-10T21:40:18.000Z
material/admin.py
prabinrs/surveilance-system
1a9f118737d1043133dbb7247573b4616a680c2d
[ "BSD-3-Clause" ]
1
2020-02-26T15:06:32.000Z
2020-02-26T15:06:32.000Z
from django.contrib import admin from .models import ( Material, MaterialRelationship, MaterialLocationParticipation, MaterialResponsibility ) @admin.register(Material) class MaterialAdmin(admin.ModelAdmin): pass @admin.register(MaterialRelationship) class MaterialRelationshipAdmin(admin.ModelAdmin): ...
20.37037
59
0.816364
a737f124742ab7bc9235b2b0ac0af298462cccb7
1,482
py
Python
clever_config/actions.py
osipov-andrey/python_smart_config
2de65d2bef54aadb5cdba1498215a93e71018b28
[ "MIT" ]
null
null
null
clever_config/actions.py
osipov-andrey/python_smart_config
2de65d2bef54aadb5cdba1498215a93e71018b28
[ "MIT" ]
null
null
null
clever_config/actions.py
osipov-andrey/python_smart_config
2de65d2bef54aadb5cdba1498215a93e71018b28
[ "MIT" ]
null
null
null
import abc from os import getenv from typing import List, Optional, Union class ActionException(Exception): pass class BaseAction(abc.ABC): def conditionally_transform(self, path_chain: List[Union[str, int]], value: str) -> str: if self.is_needed(path_chain, value): return self.transform...
31.531915
116
0.674089
58dd6b41943e1236cdd4d34fb1ba3769596a4861
385
py
Python
data/check_movielens_data.py
sourav22899/k-sets-problem
9584c59c32a3d7ba4044a7aa41eba321dab5da48
[ "MIT" ]
null
null
null
data/check_movielens_data.py
sourav22899/k-sets-problem
9584c59c32a3d7ba4044a7aa41eba321dab5da48
[ "MIT" ]
null
null
null
data/check_movielens_data.py
sourav22899/k-sets-problem
9584c59c32a3d7ba4044a7aa41eba321dab5da48
[ "MIT" ]
null
null
null
import pandas as pd raw_data = pd.read_csv("./ml-latest-small/ratings.csv") data = pd.DataFrame({ "request": raw_data["movieId"], "timestamp": raw_data["timestamp"] }) data['request'] = pd.factorize(data["request"].tolist(), sort=True)[0] data = data.sort_values(by=["timestamp"]) data = data.drop_duplicates() ...
27.5
70
0.698701
5589ed1bb1728d5fcc0d5ba8fc70fd5162a7567c
5,777
py
Python
DQM/SiStripMonitorHardware/python/test/testSiStripCMMonitor_cfg.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
DQM/SiStripMonitorHardware/python/test/testSiStripCMMonitor_cfg.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
DQM/SiStripMonitorHardware/python/test/testSiStripCMMonitor_cfg.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
import FWCore.ParameterSet.Config as cms process = cms.Process('DQMCMMonitor') process.load('Configuration/StandardSequences/Services_cff') process.load('FWCore/MessageService/MessageLogger_cfi') process.MessageLogger.cerr.FwkReport.reportEvery = 100 process.source = cms.Source( "PoolSource", fileNames = cms.unt...
40.683099
118
0.691189
9026d04f8a2b56a049194654fef6c4c03c854ba1
18,339
py
Python
pbirest/core.py
AntoineDW/powerbi-rest-api-python
d836c07a048ea82e8e5404323d5e947cc979a223
[ "MIT" ]
3
2020-03-02T19:46:51.000Z
2022-03-24T03:42:31.000Z
pbirest/core.py
AntoineDW/powerbi-rest-api-python
d836c07a048ea82e8e5404323d5e947cc979a223
[ "MIT" ]
1
2022-03-15T21:25:44.000Z
2022-03-15T21:25:44.000Z
pbirest/core.py
AntoineDW/powerbi-rest-api-python
d836c07a048ea82e8e5404323d5e947cc979a223
[ "MIT" ]
1
2021-07-01T19:48:39.000Z
2021-07-01T19:48:39.000Z
import requests import datetime import logging import re token = { "bearer": None, "expiration": None } credentials = { "client_id": None, "username": None, "password": None, "tenant_id": None, "client_secret": None } log = logging.getLogger() console = logging.StreamHandler() console.setFormatter(logging.Formatter("...
45.733167
208
0.658378
d7166501c5e7cb157a9a49fbd794284066fed44e
776
py
Python
manage.py
skazi0/car-stats
e643ed47dfb90094fcc8663bce90b879af31b546
[ "MIT" ]
null
null
null
manage.py
skazi0/car-stats
e643ed47dfb90094fcc8663bce90b879af31b546
[ "MIT" ]
null
null
null
manage.py
skazi0/car-stats
e643ed47dfb90094fcc8663bce90b879af31b546
[ "MIT" ]
null
null
null
from flask_script import Manager, Server from flask_migrate import Migrate, MigrateCommand from app import app, db from app.models import User migrate = Migrate(app, db) manager = Manager(app) manager.add_command('db', MigrateCommand) manager.add_command('runserver', Server(host='0.0.0.0', port=22778)) @manager.co...
18.926829
74
0.69201
e956124bb37469c715e66eacdee2a51d8d21cd88
1,258
py
Python
hazelcast/protocol/codec/map_values_codec.py
murdockn/hazelcast-python-client
597d90be5414cd56340fafcff916191704dcb86d
[ "Apache-2.0" ]
null
null
null
hazelcast/protocol/codec/map_values_codec.py
murdockn/hazelcast-python-client
597d90be5414cd56340fafcff916191704dcb86d
[ "Apache-2.0" ]
null
null
null
hazelcast/protocol/codec/map_values_codec.py
murdockn/hazelcast-python-client
597d90be5414cd56340fafcff916191704dcb86d
[ "Apache-2.0" ]
null
null
null
from hazelcast.serialization.bits import * from hazelcast.protocol.client_message import ClientMessage from hazelcast.protocol.custom_codec import * from hazelcast.util import ImmutableLazyDataList from hazelcast.protocol.codec.map_message_type import * REQUEST_TYPE = MAP_VALUES RESPONSE_TYPE = 106 RETRYABLE = False ...
29.952381
71
0.769475
439d146a52f6562d82801e660fca9e8f9cb2e101
20,447
py
Python
chemprop/args.py
anonymous20201002/chemprop
3e36f6a3bb36194366feadb31be94dfc7e98fd91
[ "MIT" ]
1
2022-02-12T06:39:32.000Z
2022-02-12T06:39:32.000Z
chemprop/args.py
anonymous20201002/chemprop
3e36f6a3bb36194366feadb31be94dfc7e98fd91
[ "MIT" ]
null
null
null
chemprop/args.py
anonymous20201002/chemprop
3e36f6a3bb36194366feadb31be94dfc7e98fd91
[ "MIT" ]
null
null
null
import json import os from tempfile import TemporaryDirectory import pickle from typing import List, Optional, Tuple from typing_extensions import Literal import torch from tap import Tap # pip install typed-argument-parser (https://github.com/swansonk14/typed-argument-parser) from chemprop.features import get_avail...
42.072016
141
0.66308
a03cd8262a69b431c9d3018ee6c8407f468f1be1
7,462
py
Python
tests/test_pack.py
hknust/cwltool
2978c8bff88be2ad357554c9291cc992d3e74a47
[ "Apache-2.0" ]
null
null
null
tests/test_pack.py
hknust/cwltool
2978c8bff88be2ad357554c9291cc992d3e74a47
[ "Apache-2.0" ]
null
null
null
tests/test_pack.py
hknust/cwltool
2978c8bff88be2ad357554c9291cc992d3e74a47
[ "Apache-2.0" ]
null
null
null
import json import os import tempfile from functools import partial from io import StringIO from tempfile import NamedTemporaryFile import pytest import cwltool.pack import cwltool.workflow from cwltool import load_tool from cwltool.context import LoadingContext from cwltool.load_tool import fetch_document, resolve_a...
32.30303
132
0.71978
f211396a755b227da6119426ab86a5fe976977a0
4,578
py
Python
ooobuild/lo/ucb/fetch_result.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/ucb/fetch_result.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/ucb/fetch_result.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...
33.911111
212
0.643949
0f1bf4db8dc7bd6741b979c2d345c13f44c5825d
94
py
Python
road/road.py
jadnohra/daisy
105c0f37c6adbe85ce830375c5e2fc89cbcc6cc9
[ "MIT" ]
3
2021-09-26T10:50:35.000Z
2022-01-25T02:44:37.000Z
road/road.py
jadnohra/daisy
105c0f37c6adbe85ce830375c5e2fc89cbcc6cc9
[ "MIT" ]
1
2021-09-09T14:19:31.000Z
2021-09-09T14:19:31.000Z
road/road.py
jadnohra/daisy
105c0f37c6adbe85ce830375c5e2fc89cbcc6cc9
[ "MIT" ]
null
null
null
class Road(): def __init__(self): self.curves = [] self.curve_table = {}
15.666667
29
0.521277
2f95d7f49f4077545aa98069a4fa5f0216750104
462
py
Python
plotly/validators/streamtube/colorbar/_tickprefix.py
omridanan/plotly.py
a8d26670cba49ce15ce9b7639ae0f55a6088a825
[ "MIT" ]
2
2020-03-24T11:41:14.000Z
2021-01-14T07:59:43.000Z
plotly/validators/streamtube/colorbar/_tickprefix.py
omridanan/plotly.py
a8d26670cba49ce15ce9b7639ae0f55a6088a825
[ "MIT" ]
null
null
null
plotly/validators/streamtube/colorbar/_tickprefix.py
omridanan/plotly.py
a8d26670cba49ce15ce9b7639ae0f55a6088a825
[ "MIT" ]
4
2019-06-03T14:49:12.000Z
2022-01-06T01:05:12.000Z
import _plotly_utils.basevalidators class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): def __init__( self, plotly_name='tickprefix', parent_name='streamtube.colorbar', **kwargs ): super(TickprefixValidator, self).__init__( plotly_name=...
24.315789
72
0.612554
7b06afc32f991d7af528fc9179e7ef21a5fe8cb7
15,778
py
Python
systemb/gen-py/StatServer/StatServer.py
Arnawk/statserver
2c7182870859b013f1f2b556a62667fc877ab428
[ "MIT" ]
null
null
null
systemb/gen-py/StatServer/StatServer.py
Arnawk/statserver
2c7182870859b013f1f2b556a62667fc877ab428
[ "MIT" ]
3
2020-07-17T13:08:35.000Z
2021-05-09T19:38:44.000Z
systemb/gen-py/StatServer/StatServer.py
Arnawk/statserver
2c7182870859b013f1f2b556a62667fc877ab428
[ "MIT" ]
null
null
null
# # Autogenerated by Thrift Compiler (0.9.1) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # # options string: py # from thrift.Thrift import TType, TMessageType, TException, TApplicationException from ttypes import * from thrift.Thrift import TProcessor from thrift.transport import TTransport ...
30.400771
188
0.680504
6129d236a97b8cfe5c00e78aa8feb6d900ec6278
3,978
py
Python
adwords_python3_examples_10.1.0/v201710/remarketing/add_conversion_trackers.py
xyla-io/hazel
260ce906761d8b808c21ca61b44cc71ca3329e8c
[ "MIT" ]
null
null
null
adwords_python3_examples_10.1.0/v201710/remarketing/add_conversion_trackers.py
xyla-io/hazel
260ce906761d8b808c21ca61b44cc71ca3329e8c
[ "MIT" ]
null
null
null
adwords_python3_examples_10.1.0/v201710/remarketing/add_conversion_trackers.py
xyla-io/hazel
260ce906761d8b808c21ca61b44cc71ca3329e8c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the 'License'); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
38.25
125
0.698592
7711f21861b0dedaf44da997db3f6d28b89038ea
857
py
Python
setup.py
potatolondon/django-hashbrown
bb78243b649ddc7a8acb66bbbd5c2643ba7bfca0
[ "BSD-2-Clause" ]
13
2015-02-06T12:07:23.000Z
2022-03-18T23:20:22.000Z
setup.py
potatolondon/django-hashbrown
bb78243b649ddc7a8acb66bbbd5c2643ba7bfca0
[ "BSD-2-Clause" ]
3
2015-03-09T10:23:55.000Z
2018-08-29T09:42:32.000Z
setup.py
potatolondon/django-hashbrown
bb78243b649ddc7a8acb66bbbd5c2643ba7bfca0
[ "BSD-2-Clause" ]
4
2016-07-20T14:08:06.000Z
2019-07-18T09:30:07.000Z
import os from setuptools import setup, find_packages def read(*rnames): return open(os.path.join(os.path.dirname(__file__), *rnames)).read() setup( name="django-hashbrown", version="0.7.0", author="Pablo Recio", author_email="pablo@potatolondon.com", description="Yet another dead simple fea...
28.566667
80
0.655776
23939bac8e429b28aff1a06e4660864b270551bd
164
py
Python
bin/iamonds/one-sided-hexiamonds-trefoil-1.py
tiwo/puzzler
7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e
[ "Intel" ]
null
null
null
bin/iamonds/one-sided-hexiamonds-trefoil-1.py
tiwo/puzzler
7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e
[ "Intel" ]
null
null
null
bin/iamonds/one-sided-hexiamonds-trefoil-1.py
tiwo/puzzler
7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e
[ "Intel" ]
1
2022-01-02T16:54:14.000Z
2022-01-02T16:54:14.000Z
#!/usr/bin/env python # $Id$ """many solutions""" import puzzler from puzzler.puzzles.hexiamonds import OneSidedHexiamondsTrefoil1 as puzzle puzzler.run(puzzle)
16.4
75
0.77439
38fff84b4c52b40c0ff62e54125f0dddad1080ce
1,625
py
Python
lightkurve/time.py
burke86/lightkurve
fda3e92544ccc3c6b38d003b2980a232fbcbbd0b
[ "MIT" ]
1
2021-05-07T10:42:01.000Z
2021-05-07T10:42:01.000Z
lightkurve/time.py
burke86/lightkurve
fda3e92544ccc3c6b38d003b2980a232fbcbbd0b
[ "MIT" ]
7
2018-07-14T17:49:36.000Z
2020-09-24T19:58:13.000Z
lightkurve/time.py
barentsen/lightkurve
5b1693832bc509e42742d1b6f20224d131e62d8c
[ "MIT" ]
null
null
null
"""Adds the BKJD and BTJD time format for use by Astropy's `Time` object.""" from astropy.time.formats import TimeNumeric, day_frac class TimeBKJD(TimeNumeric): """ Barycentric Kepler Julian Date time format. This represents the number of days since January 1, 2009 12:00:00 UTC. BKJD is the format in ...
32.5
76
0.651692
0ed31141ab23336ce9ccc2e9894808f8c6023279
1,503
py
Python
profiles_api/views.py
bertcanoiii/Django_RestAPI_Course
4bac42aee77187240c0628360ce43af62c8f4839
[ "MIT" ]
null
null
null
profiles_api/views.py
bertcanoiii/Django_RestAPI_Course
4bac42aee77187240c0628360ce43af62c8f4839
[ "MIT" ]
null
null
null
profiles_api/views.py
bertcanoiii/Django_RestAPI_Course
4bac42aee77187240c0628360ce43af62c8f4839
[ "MIT" ]
null
null
null
from rest_framework.views import APIView from rest_framework.response import Response from rest_framework import status from profiles_api import serializers class HelloApiView(APIView): """Test API view!""" serializer_class = serializers.HelloSerializer def get(self, response, format=None): """Re...
31.978723
72
0.611444
a0a62eebf1c173551ea4b944d6ecad5d17c0a636
2,765
py
Python
fmridenoise/utils/entities.py
brain-net-cog/fMRIDenoise
22de3251573bd87ffb4cf5097bd5a8bfefb6f47f
[ "Apache-2.0" ]
22
2019-06-23T14:40:02.000Z
2020-01-10T15:05:13.000Z
fmridenoise/utils/entities.py
brain-net-cog/fMRIDenoise
22de3251573bd87ffb4cf5097bd5a8bfefb6f47f
[ "Apache-2.0" ]
35
2020-01-22T16:15:16.000Z
2022-01-24T17:40:29.000Z
fmridenoise/utils/entities.py
brain-net-cog/fMRIDenoise
22de3251573bd87ffb4cf5097bd5a8bfefb6f47f
[ "Apache-2.0" ]
11
2020-04-01T21:18:41.000Z
2021-12-14T10:55:09.000Z
import typing as t from bids.layout import parse_file_entities, writing from fmridenoise.pipelines import extract_pipeline_from_path def parse_file_entities_with_pipelines(filename, entities=None, config=None, include_unmatched=False) -> t.Dict[str, str]: """ bids.extrac...
40.072464
117
0.682821
baeb61c93d41b2a20bd8906339a7dacf6ed5c1ea
3,633
py
Python
journal/modules/api/__init__.py
Pandentia/journal
7b0d84346a5dab05de2ddc60a5c0dd40bd95d27d
[ "MIT" ]
1
2018-09-24T22:14:46.000Z
2018-09-24T22:14:46.000Z
journal/modules/api/__init__.py
Pandentia/journal
7b0d84346a5dab05de2ddc60a5c0dd40bd95d27d
[ "MIT" ]
10
2018-09-24T22:15:46.000Z
2018-10-06T19:06:36.000Z
journal/modules/api/__init__.py
Pandentia/journal
7b0d84346a5dab05de2ddc60a5c0dd40bd95d27d
[ "MIT" ]
null
null
null
import typing import functools import ujson from flask import Blueprint, Response, current_app, abort, request from werkzeug.exceptions import HTTPException from journal.helpers import recaptcha bp = Blueprint(name='api', import_name=__name__, url_prefix='/api') class UserException(Exception): def __init__(se...
26.911111
111
0.633911
8cb4d04d051b18ef633f5cf32a659096b1dbfd52
3,614
py
Python
InfrastructureManager/tests/test_ec2_agent_w_spot.py
UCSB-CS-RACELab/eager-appscale
d58fe64bb867ef58af19c1d84a5e1ec68ecddd3d
[ "Apache-2.0" ]
3
2016-06-12T01:18:49.000Z
2018-07-16T18:20:23.000Z
InfrastructureManager/tests/test_ec2_agent_w_spot.py
nlake44/appscale
6944af660ca4cb772c9b6c2332ab28e5ef4d849f
[ "Apache-2.0" ]
null
null
null
InfrastructureManager/tests/test_ec2_agent_w_spot.py
nlake44/appscale
6944af660ca4cb772c9b6c2332ab28e5ef4d849f
[ "Apache-2.0" ]
1
2020-05-25T02:59:15.000Z
2020-05-25T02:59:15.000Z
from agents.factory import InfrastructureAgentFactory import boto import boto.ec2 from boto.ec2.connection import EC2Connection from boto.ec2.instance import Reservation, Instance from boto.ec2.keypair import KeyPair from boto.ec2.securitygroup import SecurityGroup from boto.exception import EC2ResponseError from flexm...
33.462963
91
0.697288
e2102eb2c87ded066f41a8b58223ee1b2fdee9c5
4,402
py
Python
polling_stations/apps/data_importers/management/commands/import_solihull.py
danielgriffin48/UK-Polling-Stations
0e5273357a4fdc00c2af794c71558b6f8f2a0a49
[ "BSD-3-Clause" ]
null
null
null
polling_stations/apps/data_importers/management/commands/import_solihull.py
danielgriffin48/UK-Polling-Stations
0e5273357a4fdc00c2af794c71558b6f8f2a0a49
[ "BSD-3-Clause" ]
364
2020-10-19T07:16:41.000Z
2022-03-31T06:10:55.000Z
polling_stations/apps/data_importers/management/commands/import_solihull.py
danielgriffin48/UK-Polling-Stations
0e5273357a4fdc00c2af794c71558b6f8f2a0a49
[ "BSD-3-Clause" ]
null
null
null
from django.contrib.gis.geos import Point from data_importers.management.commands import BaseXpressDemocracyClubCsvImporter class Command(BaseXpressDemocracyClubCsvImporter): council_id = "E08000029" addresses_name = "parl.2019-12-12/Version 1/Democracy_Club__12December2019.CSV" stations_name = "parl.2019...
46.829787
120
0.637438
a9aefe76b63591df69e485f31359a5e8e36a478c
1,301
py
Python
15/tests.py
remihuguet/aoc2020
c313c5b425dda92d949fd9ca4f18ff66f452794f
[ "MIT" ]
null
null
null
15/tests.py
remihuguet/aoc2020
c313c5b425dda92d949fd9ca4f18ff66f452794f
[ "MIT" ]
null
null
null
15/tests.py
remihuguet/aoc2020
c313c5b425dda92d949fd9ca4f18ff66f452794f
[ "MIT" ]
null
null
null
import pytest import memory inputs = [ (0, 3, 6, 436), (1, 3, 2, 1), (2, 1, 3, 10), (1, 2, 3, 27), (2, 3, 1, 78), (3, 2, 1, 438), (3, 1, 2, 1836) ] @pytest.fixture(params=inputs) def starting(request): return list(request.param[:3]), request.param[-1] def test_apply_rule_for_one_tur...
23.654545
82
0.601845
7ad45585d373b05738f33a228a114bffd168c7de
3,165
py
Python
ranking_baselines/DUET/test.py
dileep1996/mnsrf_ranking_suggestion
5bd241fb49f08fa4937539991e12e5a502d5a072
[ "MIT" ]
1
2020-02-04T18:27:25.000Z
2020-02-04T18:27:25.000Z
ranking_baselines/DUET/test.py
dileep1996/mnsrf_ranking_suggestion
5bd241fb49f08fa4937539991e12e5a502d5a072
[ "MIT" ]
null
null
null
ranking_baselines/DUET/test.py
dileep1996/mnsrf_ranking_suggestion
5bd241fb49f08fa4937539991e12e5a502d5a072
[ "MIT" ]
null
null
null
############################################################################### # Author: Wasi Ahmad # Project: https://www.microsoft.com/en-us/research/wp-content/uploads/2016/10/wwwfp0192-mitra.pdf # Date Created: 7/23/2017 # # File Description: This script evaluates test ranking performance. ##################...
40.576923
116
0.610111
0494b20c832dcb8ce3a9cf4f51be82889baaaf7d
3,785
py
Python
ProjetoMercado/mercado/migrations/0009_categoria_cliente_compra_fornecedor_funcionario_produto_setor.py
LucasRodriguesDaPaixao/ProjetoMercado
7a086ab0af800b15ef090520c9c81a0cd83dd650
[ "MIT" ]
null
null
null
ProjetoMercado/mercado/migrations/0009_categoria_cliente_compra_fornecedor_funcionario_produto_setor.py
LucasRodriguesDaPaixao/ProjetoMercado
7a086ab0af800b15ef090520c9c81a0cd83dd650
[ "MIT" ]
null
null
null
ProjetoMercado/mercado/migrations/0009_categoria_cliente_compra_fornecedor_funcionario_produto_setor.py
LucasRodriguesDaPaixao/ProjetoMercado
7a086ab0af800b15ef090520c9c81a0cd83dd650
[ "MIT" ]
null
null
null
# Generated by Django 3.0.7 on 2020-07-20 03:56 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('mercado', '0008_auto_20200720_0056'), ] operations = [ migrations.CreateModel( ...
46.728395
123
0.586526
c92fe0a2d25d872fa12d88c6134dd6759ab24310
1,457
py
Python
Bugscan_exploits-master/exp_list/exp-2469.py
csadsl/poc_exp
e3146262e7403f19f49ee2db56338fa3f8e119c9
[ "MIT" ]
11
2020-05-30T13:53:49.000Z
2021-03-17T03:20:59.000Z
Bugscan_exploits-master/exp_list/exp-2469.py
csadsl/poc_exp
e3146262e7403f19f49ee2db56338fa3f8e119c9
[ "MIT" ]
6
2020-05-13T03:25:18.000Z
2020-07-21T06:24:16.000Z
Bugscan_exploits-master/exp_list/exp-2469.py
csadsl/poc_exp
e3146262e7403f19f49ee2db56338fa3f8e119c9
[ "MIT" ]
6
2020-05-30T13:53:51.000Z
2020-12-01T21:44:26.000Z
#!/usr/bin/evn python #--coding:utf-8--*-- #Name:天睿电子图书管理系统系统10处注入打包 避免重复 #Refer:http://www.wooyun.org/bugs/wooyun-2015-0120852/ #Author:xq17 def assign(service,arg): if service=="tianrui_lib": return True,arg def audit(arg): urls = [ arg + 'gl_tj_0.asp?id=1', arg + '...
41.628571
154
0.587509
2caf4546b83e6c4a23926892eeadc71f9025be02
14,907
py
Python
a2c_ppo_acktr/model.py
fgolemo/pytorch-a2c-ppo-acktr-gail
366d22b7e6a049fb3de804619050cc6e61af86e2
[ "MIT" ]
1
2019-07-05T19:57:26.000Z
2019-07-05T19:57:26.000Z
a2c_ppo_acktr/model.py
fgolemo/pytorch-a2c-ppo-acktr-gail
366d22b7e6a049fb3de804619050cc6e61af86e2
[ "MIT" ]
1
2020-09-16T13:00:16.000Z
2020-09-16T13:00:16.000Z
a2c_ppo_acktr/model.py
fgolemo/pytorch-a2c-ppo-acktr-gail
366d22b7e6a049fb3de804619050cc6e61af86e2
[ "MIT" ]
3
2019-07-07T20:16:27.000Z
2020-12-23T20:18:18.000Z
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from efficientnet_pytorch import EfficientNet from torchvision.models import vgg16, mobilenet_v2 from a2c_ppo_acktr.distributions import Bernoulli, Categorical, DiagGaussian from a2c_ppo_acktr.utils import init class Flatten(nn.Mod...
34.427252
116
0.59576
22553da8402761e1da2d467b554fcb89de63b5fb
2,049
py
Python
code/sklearn_comparison.py
pcwright1/my_linear_svm
c3e97fd4ad62b11a0e3fa97e311e214f4d55f649
[ "MIT" ]
1
2019-04-23T13:48:17.000Z
2019-04-23T13:48:17.000Z
code/sklearn_comparison.py
pcwright1/my_linear_svm
c3e97fd4ad62b11a0e3fa97e311e214f4d55f649
[ "MIT" ]
null
null
null
code/sklearn_comparison.py
pcwright1/my_linear_svm
c3e97fd4ad62b11a0e3fa97e311e214f4d55f649
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd from sklearn.model_selection import train_test_split from sklearn import preprocessing #import matplotlib.pyplot as plt import os import time from multiprocessing.dummy import Pool as ThreadPool import svm from sklearn.model_selection import train_test_split from sklearn import ...
37.254545
81
0.599805
c0e5fd4cafd3bd82d5cfbea860fbfac72ff86ee5
177
py
Python
newspaperdemo/controllers/article.py
easy-quest/demo-news
33807b1c0e7663ca902530d52ab863a815c79649
[ "MIT" ]
29
2015-08-08T13:51:03.000Z
2021-12-26T14:42:28.000Z
newspaperdemo/controllers/article.py
easy-quest/demo-news
33807b1c0e7663ca902530d52ab863a815c79649
[ "MIT" ]
1
2017-08-04T01:12:54.000Z
2017-08-04T01:13:52.000Z
newspaperdemo/controllers/article.py
easy-quest/demo-news
33807b1c0e7663ca902530d52ab863a815c79649
[ "MIT" ]
20
2016-01-17T19:14:56.000Z
2021-12-01T22:01:47.000Z
from flask import Blueprint, render_template, request mod = Blueprint('article', __name__) @mod.route('/article') def index(): return render_template('article/index.html')
25.285714
53
0.751412
e1b76edef2ebb94338bfb094954331e2da7cb207
2,655
py
Python
src/blockchain.py
kiran94/blockchain-tutorial
b561e1d9bf08ca5b5fa41a54720806376e68b4bf
[ "MIT" ]
null
null
null
src/blockchain.py
kiran94/blockchain-tutorial
b561e1d9bf08ca5b5fa41a54720806376e68b4bf
[ "MIT" ]
null
null
null
src/blockchain.py
kiran94/blockchain-tutorial
b561e1d9bf08ca5b5fa41a54720806376e68b4bf
[ "MIT" ]
null
null
null
''' This module provides a Simple Blockchain implementation for learning. Block Structure: https://gist.github.com/dvf/79633bf97e2a831f066f699d41c2b9d5#file-blockchain-py ''' from time import time from hash import Hash class Blockchain: ''' Blockchain implementation Responsible for managi...
29.831461
100
0.588324
d1bc5f4bfaf3e634bf2637d7dc50e160d19b033b
3,803
py
Python
poll_project/settings.py
waregagbagbo/Social_App
a6cc83b09de613fb1b51f8a5596366cc8c5c6806
[ "MIT" ]
null
null
null
poll_project/settings.py
waregagbagbo/Social_App
a6cc83b09de613fb1b51f8a5596366cc8c5c6806
[ "MIT" ]
null
null
null
poll_project/settings.py
waregagbagbo/Social_App
a6cc83b09de613fb1b51f8a5596366cc8c5c6806
[ "MIT" ]
null
null
null
""" Django settings for poll_project project. Generated by 'django-admin startproject' using Django 4.0. For more information on this file, see https://docs.djangoproject.com/en/4.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/4.0/ref/settings/ """ import os ...
25.52349
91
0.692348
aedcf66269f2d205a5f0b45b573103b9527fbae4
2,933
py
Python
python/misc/whos_the_oldest.py
christopher-burke/warmups
140c96ada87ec5e9faa4622504ddee18840dce4a
[ "MIT" ]
null
null
null
python/misc/whos_the_oldest.py
christopher-burke/warmups
140c96ada87ec5e9faa4622504ddee18840dce4a
[ "MIT" ]
2
2022-03-10T03:49:14.000Z
2022-03-14T00:49:54.000Z
python/misc/whos_the_oldest.py
christopher-burke/warmups
140c96ada87ec5e9faa4622504ddee18840dce4a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Find the oldest. Who's The Oldest? Given a dictionary containing the names and ages of a group of people, return the name of the oldest person. Source: https://edabit.com/challenge/3A6x5GjWmT4t8pssL""" def oldest(people: dict) -> str: """Find the oldest person in people dict.""" o...
43.132353
70
0.492329
e05a8f197347fe4ce02b71f8a88eb3115ceb99a5
1,932
py
Python
dotmatrix/visualization/layout.py
alvinlao/dot-matrix-map
32925d5ede38c634ab53b966d779786366a1855c
[ "MIT" ]
null
null
null
dotmatrix/visualization/layout.py
alvinlao/dot-matrix-map
32925d5ede38c634ab53b966d779786366a1855c
[ "MIT" ]
null
null
null
dotmatrix/visualization/layout.py
alvinlao/dot-matrix-map
32925d5ede38c634ab53b966d779786366a1855c
[ "MIT" ]
null
null
null
from enum import Enum class Dimension(Enum): WIDTH = 1 HEIGHT = 2 config_key = { Dimension.WIDTH: { 'size': lambda c: c['width'], 'padding-ratio': lambda c: c['padding-horizontal'], 'num_dots': lambda c: len(c['dots'][0]), }, Dimension.HEIGHT: { 'size': lambda c: ...
24.455696
59
0.661491
7c991e5dc9febaf878ecae6dda5890e5e085f918
1,844
py
Python
python/updater.py
nattyan-tv/ark-server-utility
32eb9b4b5100630b13ce017d46b7ba635b61a915
[ "MIT" ]
null
null
null
python/updater.py
nattyan-tv/ark-server-utility
32eb9b4b5100630b13ce017d46b7ba635b61a915
[ "MIT" ]
2
2021-12-20T01:39:05.000Z
2022-01-19T15:06:52.000Z
python/updater.py
nattyan-tv/ark-server-utility
32eb9b4b5100630b13ce017d46b7ba635b61a915
[ "MIT" ]
null
null
null
import sys import requests import zipfile import shutil import os from tkinter import messagebox url='https://github.com/nattyan-tv/ark-server-utility/releases/latest/download/ark-server-utility.zip' filename='ark-server-utility.zip' path = "./update" def main(): print(sys.argv) if len(sys.argv) >= 2 and sy...
35.461538
102
0.541757
2f79c4b3137a75c5f6533dd6dbc228a470031e1d
9,680
py
Python
tools/screen_manager.py
PDillis/coiltraine
a682aa62af5f6ecb95a837d33b70d893d3d261f6
[ "MIT" ]
1
2021-03-01T19:43:12.000Z
2021-03-01T19:43:12.000Z
tools/screen_manager.py
PDillis/coiltraine
a682aa62af5f6ecb95a837d33b70d893d3d261f6
[ "MIT" ]
null
null
null
tools/screen_manager.py
PDillis/coiltraine
a682aa62af5f6ecb95a837d33b70d893d3d261f6
[ "MIT" ]
null
null
null
import colorsys import pygame import numpy as np from random import randint from skimage import transform as trans import scipy import cv2 clock = pygame.time.Clock() rsrc = \ [[43.45456230828867, 118.00743250075844], [104.5055617352614, 69.46865203761757], [114.86050156739812, 60.83953551083698], ...
34.204947
119
0.651343
462ba589dc818c120ac20739ea710091f3063832
1,486
py
Python
test/demo/feature_overview/test_missing_embeddings.py
tum-db/mlinspect4sql
863f1a98baff92341722b4fb180008cf9b518b80
[ "Apache-2.0" ]
40
2020-10-20T15:56:35.000Z
2022-02-22T14:48:09.000Z
test/demo/feature_overview/test_missing_embeddings.py
tum-db/mlinspect4sql
863f1a98baff92341722b4fb180008cf9b518b80
[ "Apache-2.0" ]
55
2020-10-21T15:37:44.000Z
2022-02-10T02:44:18.000Z
test/demo/feature_overview/test_missing_embeddings.py
tum-db/mlinspect4sql
863f1a98baff92341722b4fb180008cf9b518b80
[ "Apache-2.0" ]
9
2021-01-15T15:53:25.000Z
2022-03-31T23:42:12.000Z
""" Tests whether MissingEmbeddings works """ from inspect import cleandoc from testfixtures import compare from demo.feature_overview.missing_embeddings import MissingEmbeddings, MissingEmbeddingsInfo from example_pipelines.healthcare import custom_monkeypatching from mlinspect._pipeline_inspector import PipelineIns...
37.15
93
0.744953
887d12d7ef6f50acf936b685948f73adca051000
4,590
py
Python
ceilometer/storage/sqlalchemy/migrate_repo/versions/021_add_event_types.py
NeCTAR-RC/ceilometer
25cb8740b83bfbf5c526be816fa3ae10f936bff5
[ "Apache-2.0" ]
1
2015-02-26T03:23:09.000Z
2015-02-26T03:23:09.000Z
ceilometer/storage/sqlalchemy/migrate_repo/versions/021_add_event_types.py
NeCTAR-RC/ceilometer
25cb8740b83bfbf5c526be816fa3ae10f936bff5
[ "Apache-2.0" ]
null
null
null
ceilometer/storage/sqlalchemy/migrate_repo/versions/021_add_event_types.py
NeCTAR-RC/ceilometer
25cb8740b83bfbf5c526be816fa3ae10f936bff5
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, so...
37.622951
75
0.675163
fed90976c491e9644672fdf0ac0a9124a9ae4257
5,383
py
Python
dns/dnspod.py
gary-jiao/DDNS
99ffdf020cb4310a94bbcac5a48ead59a9f5539f
[ "MIT" ]
1
2018-12-02T13:56:03.000Z
2018-12-02T13:56:03.000Z
dns/dnspod.py
gary-jiao/DDNS
99ffdf020cb4310a94bbcac5a48ead59a9f5539f
[ "MIT" ]
null
null
null
dns/dnspod.py
gary-jiao/DDNS
99ffdf020cb4310a94bbcac5a48ead59a9f5539f
[ "MIT" ]
null
null
null
# coding=utf-8 """ DNSPOD API DNSPOD 接口解析操作库 http://www.dnspod.cn/docs/domains.html @author: New Future """ import json import logging as log try: # python 2 from httplib import HTTPSConnection import urllib except ImportError: # python 3 from http.client import HTTPSConnection import urllib.pa...
30.76
103
0.565298
dfbca10a1b7b3c043fbd9c7dc873e0c7144eb64a
25,601
py
Python
parlai/scripts/train_model.py
christiancosgrove/cs767hw3
7c906d7b92394cc30ed94a714b199467c269cadf
[ "MIT" ]
null
null
null
parlai/scripts/train_model.py
christiancosgrove/cs767hw3
7c906d7b92394cc30ed94a714b199467c269cadf
[ "MIT" ]
null
null
null
parlai/scripts/train_model.py
christiancosgrove/cs767hw3
7c906d7b92394cc30ed94a714b199467c269cadf
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ Training script for ParlAI. The standard way to train a model. After training, also computes validation and test er...
34.92633
107
0.563494
a98ac5b8d1ef3b14240afa65683e706a885714f5
4,485
py
Python
tests/test_nativetypes.py
cav71/jinja
7cf6ffc4f11b5380865fd31a45572fcf1759c4e5
[ "BSD-3-Clause" ]
null
null
null
tests/test_nativetypes.py
cav71/jinja
7cf6ffc4f11b5380865fd31a45572fcf1759c4e5
[ "BSD-3-Clause" ]
null
null
null
tests/test_nativetypes.py
cav71/jinja
7cf6ffc4f11b5380865fd31a45572fcf1759c4e5
[ "BSD-3-Clause" ]
null
null
null
import pytest from jinja2._compat import text_type from jinja2.exceptions import UndefinedError from jinja2.nativetypes import NativeEnvironment from jinja2.runtime import Undefined @pytest.fixture def env(): return NativeEnvironment() class TestNativeEnvironment(object): def test_is_defined_native_return(...
33.721805
72
0.578149
2eabfa96a53cbbab64745aa500f8cdab3988405e
1,573
py
Python
django/map/hurricane/views.py
hammad93/hurricane-viz
2578e846e32527281d9870eb8258e00d12489a82
[ "MIT" ]
null
null
null
django/map/hurricane/views.py
hammad93/hurricane-viz
2578e846e32527281d9870eb8258e00d12489a82
[ "MIT" ]
null
null
null
django/map/hurricane/views.py
hammad93/hurricane-viz
2578e846e32527281d9870eb8258e00d12489a82
[ "MIT" ]
null
null
null
from django.http import HttpResponse from django.db import connection from django.shortcuts import render import json def index(request): # see if we have a get request if request.GET.get('type', False) : type = request.GET['type'] if type == 'plot' : return HttpResponse(json.dumps...
35.75
189
0.619835
f859010d4531a7765a2d15b263d7fbae29d300d9
4,195
py
Python
test/banana/test_api.py
daisuke-fujita/monsaca-analytics_20181107
5809e66874d76bd9f102e7694197bd849210fa3b
[ "Apache-2.0" ]
1
2021-03-19T04:09:04.000Z
2021-03-19T04:09:04.000Z
test/banana/test_api.py
daisuke-fujita/monsaca-analytics_20181107
5809e66874d76bd9f102e7694197bd849210fa3b
[ "Apache-2.0" ]
1
2019-01-21T09:44:29.000Z
2019-01-21T09:44:29.000Z
test/banana/test_api.py
daisuke-fujita/monsaca-analytics_20181107
5809e66874d76bd9f102e7694197bd849210fa3b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2016 Hewlett Packard Enterprise Development Company, L.P. # # 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...
41.534653
75
0.615256
6679e0edac31c48c41de8f24cc25cb7374ced788
3,943
py
Python
tests/models/data/horovod/train_default_model.py
pbsds/pytorch-lightning
1eff3b53c1ff9d362fc24a1e4fea6c0cfe78696b
[ "Apache-2.0" ]
null
null
null
tests/models/data/horovod/train_default_model.py
pbsds/pytorch-lightning
1eff3b53c1ff9d362fc24a1e4fea6c0cfe78696b
[ "Apache-2.0" ]
null
null
null
tests/models/data/horovod/train_default_model.py
pbsds/pytorch-lightning
1eff3b53c1ff9d362fc24a1e4fea6c0cfe78696b
[ "Apache-2.0" ]
null
null
null
"""This script is meant to be executed from `../../test_horovod.py`. Because Horovod uses a parallel programming model similar to MPI, unit tests for collective ops like allreduce need to be run in parallel. The most common approach for running parallel Horovod workers is to launch multiple replicas of the training sc...
35.522523
114
0.737002
6786335852c5aa3b95336c148e16ca62444fd15a
909
py
Python
tests/twitter_learning_journal/controllers/test_login.py
DEV3L/twitter-learning-journal
a51d22a60a3d1249add352d8357975a7f2db585c
[ "Beerware" ]
1
2021-01-12T17:06:57.000Z
2021-01-12T17:06:57.000Z
tests/twitter_learning_journal/controllers/test_login.py
DEV3L/twitter-learning-journal
a51d22a60a3d1249add352d8357975a7f2db585c
[ "Beerware" ]
null
null
null
tests/twitter_learning_journal/controllers/test_login.py
DEV3L/twitter-learning-journal
a51d22a60a3d1249add352d8357975a7f2db585c
[ "Beerware" ]
1
2018-07-31T21:16:33.000Z
2018-07-31T21:16:33.000Z
import os import tempfile import unittest from app.twitter_learning_journal.database.sqlalchemy_database import build_tables, Database from server import app class FlaskrTestCase(unittest.TestCase): def setUp(self): self.db_fd, app.config['DATABASE'] = tempfile.mkstemp() app.testing = True ...
25.971429
92
0.661166
89ecb8693e5ab8de91f2491f159adaaf3609b92e
3,379
py
Python
services/cntk-image-recon/service/image_recon.py
arturgontijo/dnn-model-services
b5b1453a1e933bdc79451f172873f31fb7fd9842
[ "MIT" ]
26
2018-12-14T20:02:07.000Z
2021-10-07T19:39:16.000Z
services/cntk-image-recon/service/image_recon.py
arturgontijo/dnn-model-services
b5b1453a1e933bdc79451f172873f31fb7fd9842
[ "MIT" ]
73
2018-08-09T17:13:21.000Z
2022-03-12T00:03:16.000Z
services/cntk-image-recon/service/image_recon.py
arturgontijo/dnn-model-services
b5b1453a1e933bdc79451f172873f31fb7fd9842
[ "MIT" ]
33
2018-10-24T10:45:48.000Z
2022-03-19T05:39:48.000Z
# Import CNTK import cntk import numpy as np from PIL import Image import os import time import requests import base64 import logging import datetime import hashlib import traceback logging.basicConfig(level=10, format="%(asctime)s - [%(levelname)8s] - %(name)s - %(message)s") log = logging.getLogger("cntk_image_reco...
33.455446
115
0.606688
116cca3ce2b1986ccd53e66a94d371828412c04a
2,526
py
Python
application/models/environment.py
opengovt/openroads-geostore
336bdc352252ae34a66746e632ae0b8df66c04c0
[ "MIT" ]
1
2019-10-11T14:43:53.000Z
2019-10-11T14:43:53.000Z
application/models/environment.py
opengovt/openroads-geostore
336bdc352252ae34a66746e632ae0b8df66c04c0
[ "MIT" ]
null
null
null
application/models/environment.py
opengovt/openroads-geostore
336bdc352252ae34a66746e632ae0b8df66c04c0
[ "MIT" ]
null
null
null
import time import datetime from google.appengine.ext import ndb from application.models.syslog import SysLog class Environment(SysLog): created = ndb.DateTimeProperty(auto_now_add=True) updated = ndb.DateTimeProperty(auto_now=True) owner = ndb.KeyProperty(kind='User') users = ndb.KeyProperty(repeated=...
35.577465
74
0.586698
5443ce4263178c8f1f5c0edd13533237274c35a8
5,295
py
Python
data/p3BR/R1/benchmark/startQiskit_QC32.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p3BR/R1/benchmark/startQiskit_QC32.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p3BR/R1/benchmark/startQiskit_QC32.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=3 # total number=6 import numpy as np from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ from qiskit.visualization import plot_histogram from typing import * from pprint import pprint from math import log2 from collections import Counter from ...
28.777174
140
0.628329
0161d3f232849a90f7a436dc669557498fa64e44
648
py
Python
data-structures-implementation/linked-list/remove-kth-last-element-from-linked-list.py
ardakkk/Algorithms-and-Data-Structures
c428bb0bd7eeb6c34448630f88f13e1329b54636
[ "MIT" ]
null
null
null
data-structures-implementation/linked-list/remove-kth-last-element-from-linked-list.py
ardakkk/Algorithms-and-Data-Structures
c428bb0bd7eeb6c34448630f88f13e1329b54636
[ "MIT" ]
null
null
null
data-structures-implementation/linked-list/remove-kth-last-element-from-linked-list.py
ardakkk/Algorithms-and-Data-Structures
c428bb0bd7eeb6c34448630f88f13e1329b54636
[ "MIT" ]
null
null
null
class Node: def __init__(self, val, next): self.val = val self.next = next def __str__(self): n = self answer = '' while n: answer += str(n.val) n = n.next return answer # Time: O(n) # Space: O(n) def remove_kth_from_linked_list(node, k): ...
20.903226
56
0.54321
43c2adaeeac5ca89807769188cbd811e3a11dbc2
12,499
py
Python
federatedml/optim/gradient/hetero_linear_model_gradient.py
peiyong86/FATE
efae2b1add20d9f98ac05a669298e36369f91497
[ "Apache-2.0" ]
1
2019-10-16T12:18:06.000Z
2019-10-16T12:18:06.000Z
federatedml/optim/gradient/hetero_linear_model_gradient.py
peiyong86/FATE
efae2b1add20d9f98ac05a669298e36369f91497
[ "Apache-2.0" ]
9
2020-01-28T23:05:25.000Z
2022-02-10T00:31:01.000Z
federatedml/optim/gradient/hetero_linear_model_gradient.py
peiyong86/FATE
efae2b1add20d9f98ac05a669298e36369f91497
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2019 The FATE Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/lic...
39.805732
112
0.669334
70377993b318752d16fe8a9ea915272beedae22d
4,222
py
Python
talha12.py
talha123444e441/talha12
0d1ae324d297d1382966adaec874aa09f083bb34
[ "Apache-2.0" ]
null
null
null
talha12.py
talha123444e441/talha12
0d1ae324d297d1382966adaec874aa09f083bb34
[ "Apache-2.0" ]
null
null
null
talha12.py
talha123444e441/talha12
0d1ae324d297d1382966adaec874aa09f083bb34
[ "Apache-2.0" ]
null
null
null
#!/system/bin/python #TOOL OWNER Cayber solution bd #Coded By Talha #Date & Time 24/12/2021 [06:09] #TDF import urllib2 import urllib import sys import time import random import re import os os.system("clear") #Warna B = '\033[1m' #Bold R = '\033[31m' #Red G = '\033[32m' #Green Y = '\033[33m' #Yellow BL = '\033[34m' #...
36.08547
116
0.553529
541a5fbf78ae5d8016a0a7af7c01bc13f761637e
19,351
py
Python
sublime_plugin.py
koery/win-sublime
1b16cbe9858eced52567971286109250df787d36
[ "MIT" ]
null
null
null
sublime_plugin.py
koery/win-sublime
1b16cbe9858eced52567971286109250df787d36
[ "MIT" ]
null
null
null
sublime_plugin.py
koery/win-sublime
1b16cbe9858eced52567971286109250df787d36
[ "MIT" ]
null
null
null
import sublime import threading import imp import importlib import os import sys import zipfile import sublime_api import traceback api_ready = False application_command_classes = [] window_command_classes = [] text_command_classes = [] all_command_classes = [application_command_classes, window_command_classes, text...
27.763271
126
0.564467
57fabcd66a3d0abffdc0048e294218199e90ac29
8,874
py
Python
irods_capability_automated_ingest/irods_sync.py
trel/irods_capability_automated_ingest
38175f5f9788645777a42abca85379f77438941a
[ "BSD-3-Clause" ]
null
null
null
irods_capability_automated_ingest/irods_sync.py
trel/irods_capability_automated_ingest
38175f5f9788645777a42abca85379f77438941a
[ "BSD-3-Clause" ]
null
null
null
irods_capability_automated_ingest/irods_sync.py
trel/irods_capability_automated_ingest
38175f5f9788645777a42abca85379f77438941a
[ "BSD-3-Clause" ]
null
null
null
from .sync_task import start_synchronization, stop_synchronization, list_synchronization, monitor_synchronization import argparse from uuid import uuid1 import json import sys def get_config(args): return { "log": { "filename": getattr(args, "log_filename", None), "when": getattr(a...
61.2
251
0.720645
fa5461f002f70e4fc45c7500d7c2d5b8d56d83d2
12,639
py
Python
python/oneflow/framework/env_util.py
mosout/oneflow
afbb221d900f1a340568ae2462b2022f8fcc4b3d
[ "Apache-2.0" ]
null
null
null
python/oneflow/framework/env_util.py
mosout/oneflow
afbb221d900f1a340568ae2462b2022f8fcc4b3d
[ "Apache-2.0" ]
null
null
null
python/oneflow/framework/env_util.py
mosout/oneflow
afbb221d900f1a340568ae2462b2022f8fcc4b3d
[ "Apache-2.0" ]
null
null
null
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
32.658915
144
0.708205
3a0f3fa52e98156407557cebe9bd163c630c5e3c
3,851
py
Python
exabel_data_sdk/client/api/data_classes/relationship_type.py
burk/python-sdk
83fb81d09e0d6a407c8907a75bebb895decc7edc
[ "MIT" ]
null
null
null
exabel_data_sdk/client/api/data_classes/relationship_type.py
burk/python-sdk
83fb81d09e0d6a407c8907a75bebb895decc7edc
[ "MIT" ]
null
null
null
exabel_data_sdk/client/api/data_classes/relationship_type.py
burk/python-sdk
83fb81d09e0d6a407c8907a75bebb895decc7edc
[ "MIT" ]
null
null
null
from typing import Mapping, Union from exabel_data_sdk.client.api.proto_utils import from_struct, to_struct from exabel_data_sdk.stubs.exabel.api.data.v1.all_pb2 import ( RelationshipType as ProtoRelationshipType, ) class RelationshipType: """ A relationship type resource in the Data API. Attributes...
42.318681
96
0.614646
a938a75f14c79bb2bf288e3f86f0e49bad42fd67
270
py
Python
run.py
robot-lab/PetProject
377ff1dc18db9d2db3471cece7f8289d782b0db7
[ "Apache-2.0" ]
1
2019-07-16T16:16:45.000Z
2019-07-16T16:16:45.000Z
run.py
robot-lab/PetProject
377ff1dc18db9d2db3471cece7f8289d782b0db7
[ "Apache-2.0" ]
2
2019-07-12T20:57:12.000Z
2021-06-01T23:58:04.000Z
run.py
robot-lab/PetProject
377ff1dc18db9d2db3471cece7f8289d782b0db7
[ "Apache-2.0" ]
null
null
null
import os from backend import create_app os.environ.setdefault('FLASK_ENV', 'development') if __name__ == '__main__': env_name = os.getenv('FLASK_ENV') port = int(os.getenv('PORT', 8080)) app = create_app(env_name) app.run(host='0.0.0.0', port=port)
20.769231
49
0.677778
9a2adac758499c02456cbf5236c618e24e954505
8,327
py
Python
src/genie/libs/parser/nxos/tests/ShowIpRoute/cli/equal/golden_output14_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
204
2018-06-27T00:55:27.000Z
2022-03-06T21:12:18.000Z
src/genie/libs/parser/nxos/tests/ShowIpRoute/cli/equal/golden_output14_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
468
2018-06-19T00:33:18.000Z
2022-03-31T23:23:35.000Z
src/genie/libs/parser/nxos/tests/ShowIpRoute/cli/equal/golden_output14_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
309
2019-01-16T20:21:07.000Z
2022-03-30T12:56:41.000Z
expected_output ={ "vrf": { "tn-L2-PBR:vrf-L2-PBR": { "address_family": { "ipv4": { "routes": { "192.168.1.0/24": { "route": "192.168.1.0/24", "active": True, ...
47.582857
74
0.226132
7912cba6a5481b4ca966f6cf0ef34473aca18003
13,683
py
Python
tests/test_reporters.py
kannaiah/pycobertura
b5126f2dd4d425f2b83eaa4edf256485b0544559
[ "MIT" ]
null
null
null
tests/test_reporters.py
kannaiah/pycobertura
b5126f2dd4d425f2b83eaa4edf256485b0544559
[ "MIT" ]
1
2021-06-07T13:11:59.000Z
2021-06-08T09:54:08.000Z
tests/test_reporters.py
nilleb/pycobertura
25ce699cfb9410d24f8a995b11dce75f64468e75
[ "MIT" ]
null
null
null
from .utils import make_cobertura def remove_style_tag(html): style_pattern_start = '\n <style>' style_pattern_stop = '\n </style>' style_starts = html.find(style_pattern_start) style_stops = html.find(style_pattern_stop) + len(style_pattern_stop) html_nostyle = html[:style_starts] + html[st...
29.940919
224
0.529708
2ccbbecdbdb095ac205d5fbf45454e716ad32e5d
540
py
Python
cride/circles/urls.py
EduuardoPerez/comparte-ride
e657e2397a9c8cc3104a716f13cc7547245015e4
[ "MIT" ]
null
null
null
cride/circles/urls.py
EduuardoPerez/comparte-ride
e657e2397a9c8cc3104a716f13cc7547245015e4
[ "MIT" ]
null
null
null
cride/circles/urls.py
EduuardoPerez/comparte-ride
e657e2397a9c8cc3104a716f13cc7547245015e4
[ "MIT" ]
null
null
null
"""Circles URLs.""" # Django from django.urls import include, path # Django REST Framework from rest_framework.routers import DefaultRouter # Views from .views import circles as circle_views from .views import memberships as membership_views router = DefaultRouter() router.register(r'circles', circle_views.CircleVi...
22.5
74
0.75
e7ab25e820084701fbfcebea9260921b3086d449
484
py
Python
ExamenDeFundamentosDeP/Examen1.py
Sharnol-Tec/Examen
fc859c5a56cf9e550e903296eecdb53b42ec9b2f
[ "Apache-2.0" ]
null
null
null
ExamenDeFundamentosDeP/Examen1.py
Sharnol-Tec/Examen
fc859c5a56cf9e550e903296eecdb53b42ec9b2f
[ "Apache-2.0" ]
null
null
null
ExamenDeFundamentosDeP/Examen1.py
Sharnol-Tec/Examen
fc859c5a56cf9e550e903296eecdb53b42ec9b2f
[ "Apache-2.0" ]
null
null
null
#datos de entrada PrimeraUnidadSLLB=float(input("Ingrese la nota de la PrimeraUnidadSLLB: ")) SegundaUnidadSLLB=float(input("Ingrese la nota de la SegundaUnidadSLLB: ")) TerceraUnidadSLLB=float(input("Ingrese la nota de la TerceraUnidadSLLB: ")) TrabajoFinalSLLB=float(input("Ingrese la nota del TrabajoFinalSLLB: ...
53.777778
99
0.789256
62b99b8da2aecb88766819c7135ff9c55eef6434
1,808
py
Python
src/users/actions.py
josue0ghost/Python-and-MySQL-console-application
c82641c5ccaae3eb526decd2c96baa4457613a2a
[ "MIT" ]
null
null
null
src/users/actions.py
josue0ghost/Python-and-MySQL-console-application
c82641c5ccaae3eb526decd2c96baa4457613a2a
[ "MIT" ]
null
null
null
src/users/actions.py
josue0ghost/Python-and-MySQL-console-application
c82641c5ccaae3eb526decd2c96baa4457613a2a
[ "MIT" ]
null
null
null
import users.user as user import grades.actions as grade class Actions: def signup(self): print("Selected item: signup") name = input("Your name: ") lastname = input("Your last name: ") email = input("Your email: ") password = input("Choose a password: ") ...
28.25
85
0.499447
36cc56a3d75181b864d339aa3b5b0b437e605cf8
654
py
Python
mojo/system/PRESUBMIT.py
Fusion-Rom/android_external_chromium_org
d8b126911c6ea9753e9f526bee5654419e1d0ebd
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2015-08-13T21:04:58.000Z
2015-08-13T21:04:58.000Z
mojo/system/PRESUBMIT.py
Fusion-Rom/android_external_chromium_org
d8b126911c6ea9753e9f526bee5654419e1d0ebd
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
mojo/system/PRESUBMIT.py
Fusion-Rom/android_external_chromium_org
d8b126911c6ea9753e9f526bee5654419e1d0ebd
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2020-11-04T06:34:36.000Z
2020-11-04T06:34:36.000Z
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Presubmit script for mojo/system. See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for more details about the presubmit API bu...
38.470588
79
0.718654
12934dffdf93d2ba8c4aaff60d85e2a3fd0b25e0
839
py
Python
homomorphic_encryption/secret_key_swhe.py
binary-signal/some-what-homomorphic-encryption
861c752416e2669a4b9e1824f93b5593a8b4abd6
[ "BSD-3-Clause" ]
1
2019-02-09T06:36:54.000Z
2019-02-09T06:36:54.000Z
homomorphic_encryption/secret_key_swhe.py
binary-signal/some-what-homomorphic-encryption
861c752416e2669a4b9e1824f93b5593a8b4abd6
[ "BSD-3-Clause" ]
null
null
null
homomorphic_encryption/secret_key_swhe.py
binary-signal/some-what-homomorphic-encryption
861c752416e2669a4b9e1824f93b5593a8b4abd6
[ "BSD-3-Clause" ]
1
2018-07-06T10:03:53.000Z
2018-07-06T10:03:53.000Z
# -*- coding: utf-8 -*- from keys.secret_key import SecretKey from random import randint from math import sqrt class secret_swhe: def __init__(self, lambda_, secret_key=None, eta=10): self.lambda_ = lambda_ self.eta = eta if secret_key is None: self.p = self._key_gen(eta) ...
27.966667
89
0.531585
d3e4f155aef63c0aa0f2d540868c2ca27cec90e9
1,622
py
Python
day-15/part-1/th-ch.py
lypnol/adventofcode-2021
8ba277d698e8c59ca9cd554acc135473f5964b87
[ "MIT" ]
6
2021-11-29T15:32:27.000Z
2021-12-10T12:24:26.000Z
day-15/part-1/th-ch.py
lypnol/adventofcode-2021
8ba277d698e8c59ca9cd554acc135473f5964b87
[ "MIT" ]
9
2021-11-29T15:38:04.000Z
2021-12-13T14:54:16.000Z
day-15/part-1/th-ch.py
lypnol/adventofcode-2021
8ba277d698e8c59ca9cd554acc135473f5964b87
[ "MIT" ]
3
2021-12-02T19:11:44.000Z
2021-12-22T20:52:47.000Z
from tool.runners.python import SubmissionPy from queue import PriorityQueue class ThChSubmission(SubmissionPy): def run(self, s): """ :param s: input in string format :return: solution flag """ # Your code goes here m = [[int(i) for i in line] for line in s.splitl...
26.590164
80
0.451295
e62b5080bbeda124023abebade836b7ac8272b64
2,421
py
Python
src/lto/crypto.py
mustafa-travisci/lto-api.python
0493a46b69575e94d09a038dadf472b46f88d036
[ "MIT" ]
null
null
null
src/lto/crypto.py
mustafa-travisci/lto-api.python
0493a46b69575e94d09a038dadf472b46f88d036
[ "MIT" ]
null
null
null
src/lto/crypto.py
mustafa-travisci/lto-api.python
0493a46b69575e94d09a038dadf472b46f88d036
[ "MIT" ]
null
null
null
import base64 import hashlib import pyblake2 import base58 import inflection import struct str2bytes = lambda s: s.encode('latin-1') bytes2str = lambda b: ''.join(map(chr, b)) str2list = lambda s: [c for c in s] def sha256(s): return hashlib.sha256(str2bytes(s)).digest() def hash_chain(s): a = pyblake2.bla...
25.21875
82
0.658819
ddd5d99ac97893870538a5f6e8dcc23210f2ce51
4,845
py
Python
homeassistant/components/simulated/sensor.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
homeassistant/components/simulated/sensor.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
24,710
2016-04-13T08:27:26.000Z
2020-03-02T12:59:13.000Z
homeassistant/components/simulated/sensor.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""Adds a simulated sensor.""" from __future__ import annotations from datetime import datetime import math from random import Random import voluptuous as vol from homeassistant.components.sensor import PLATFORM_SCHEMA, SensorEntity from homeassistant.const import CONF_NAME from homeassistant.core import HomeAssista...
30.28125
84
0.6516
8200064181b798609c4bfc5d935b29af3aa9ae47
4,641
py
Python
haigha/classes/channel_class.py
ask/haigha
1f87bbb37371f5ae6212c5af32ab4e8c5cebe34c
[ "BSD-3-Clause" ]
1
2022-02-18T05:41:30.000Z
2022-02-18T05:41:30.000Z
haigha/classes/channel_class.py
ask/haigha
1f87bbb37371f5ae6212c5af32ab4e8c5cebe34c
[ "BSD-3-Clause" ]
null
null
null
haigha/classes/channel_class.py
ask/haigha
1f87bbb37371f5ae6212c5af32ab4e8c5cebe34c
[ "BSD-3-Clause" ]
null
null
null
from haigha.classes import ProtocolClass from haigha.frames import MethodFrame from haigha.writer import Writer class ChannelClass(ProtocolClass): ''' Implements the AMQP Channel class ''' def __init__(self, *args, **kwargs): super(ChannelClass, self).__init__(*args, **kwargs) self.dispatch_map = { ...
27.790419
82
0.653307
318e662b8b2eebe70758232791dfea2c111ea320
20,470
py
Python
FusionIIIT/applications/office_module/models.py
pTidke/Fusion
7a0da7239bd97df7a9849163c5438c0c917c2e55
[ "bzip2-1.0.6" ]
1
2020-01-16T17:06:22.000Z
2020-01-16T17:06:22.000Z
FusionIIIT/applications/office_module/models.py
rishi2907/Fusion
7a0da7239bd97df7a9849163c5438c0c917c2e55
[ "bzip2-1.0.6" ]
null
null
null
FusionIIIT/applications/office_module/models.py
rishi2907/Fusion
7a0da7239bd97df7a9849163c5438c0c917c2e55
[ "bzip2-1.0.6" ]
null
null
null
import datetime from django.db import models from applications.academic_information.models import (Course, Grades, Instructor, Meeting, Spi, Student) from applications.academic_procedures.models import T...
35.476603
120
0.650464
eaf88d293845dfd34442f77f6bc9214d7f6c1903
242
py
Python
gira_homeserver_api/devices/normalized_device.py
leoyn/gira-homeserver-api
7d642413a56078f694518d9189b4b7cc9776482d
[ "MIT" ]
5
2020-03-17T12:45:50.000Z
2022-03-07T10:55:50.000Z
gira_homeserver_api/devices/normalized_device.py
leoyn/gira-homeserver-api
7d642413a56078f694518d9189b4b7cc9776482d
[ "MIT" ]
3
2020-04-17T09:53:45.000Z
2021-01-25T22:14:14.000Z
gira_homeserver_api/devices/normalized_device.py
leoyn/gira-homeserver-api
7d642413a56078f694518d9189b4b7cc9776482d
[ "MIT" ]
1
2020-04-17T06:51:50.000Z
2020-04-17T06:51:50.000Z
from .device import Device class NormalizedDevice(Device): def setValue(self, value): if value >= 0 and value <= 1: super().setValue(round(value * 100)) def getValue(self): return super().getValue() / 100
26.888889
48
0.615702
15fc56151c00c72905359ab7d19b9e49e51d2941
28
py
Python
__init__.py
enyert/openacademy-project
76fb4fa9cd885d0b63f1091a67cc91bc1a3498c0
[ "Apache-2.0" ]
null
null
null
__init__.py
enyert/openacademy-project
76fb4fa9cd885d0b63f1091a67cc91bc1a3498c0
[ "Apache-2.0" ]
null
null
null
__init__.py
enyert/openacademy-project
76fb4fa9cd885d0b63f1091a67cc91bc1a3498c0
[ "Apache-2.0" ]
null
null
null
from . import model,wizard
9.333333
26
0.75
9b5411e2ff42b727eedb384bc37d81d8dcdfcd48
664
py
Python
src/features/build_features.py
jonhilgart22/data-science-is-software
675e945a53ef595c729dc13c338439e42572e1f5
[ "MIT" ]
22
2016-03-18T19:34:23.000Z
2021-01-03T14:32:38.000Z
src/features/build_features.py
jonhilgart22/data-science-is-software
675e945a53ef595c729dc13c338439e42572e1f5
[ "MIT" ]
1
2016-03-18T19:48:12.000Z
2016-03-19T20:25:11.000Z
src/features/build_features.py
jonhilgart22/data-science-is-software
675e945a53ef595c729dc13c338439e42572e1f5
[ "MIT" ]
18
2016-03-18T19:34:47.000Z
2020-08-06T07:47:24.000Z
import numpy as np import pandas as pd def remove_invalid_data(path): """ Takes a path to a water pumps csv, loads in pandas, removes invalid columns and returns the dataframe. """ df = pd.read_csv(path, index_col=0) invalid_values = { 'amount_tsh': {0: np.nan}, 'longitude': {...
22.133333
67
0.626506
9a129db8cbfa3311895dc1efa6fba4fb9f94edda
1,016
py
Python
finance_ml/features/orth.py
xaviergoby/finance_ml
c348556fa3e13417e8fcf02999f42d5e72f0501b
[ "MIT" ]
1
2018-12-14T18:51:29.000Z
2018-12-14T18:51:29.000Z
finance_ml/features/orth.py
xaviergoby/finance_ml
c348556fa3e13417e8fcf02999f42d5e72f0501b
[ "MIT" ]
null
null
null
finance_ml/features/orth.py
xaviergoby/finance_ml
c348556fa3e13417e8fcf02999f42d5e72f0501b
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd def get_e_vec(dot, var_thres): e_val, e_vec = np.linalg.eigh(dot) # Descending order idx = e_val.argsort()[::-1] e_val = e_val[idx] e_vec = e_vec[:, idx] # Use only positive ones e_val = pd.Series(e_val, index=['PC_' + str(i + 1) for i in range(e_val....
33.866667
87
0.650591
8eb85e64d669cc985bd58fb02c8540c7914c4e70
6,371
py
Python
rob_kovach/puzzle_21.py
techartorg/Advent_of_Code_2020
ae21164bc126352e7a2e9c9c6a0017ccb9d946cc
[ "MIT" ]
3
2020-11-16T15:20:11.000Z
2020-12-11T17:01:42.000Z
rob_kovach/puzzle_21.py
techartorg/Advent_of_Code_2020
ae21164bc126352e7a2e9c9c6a0017ccb9d946cc
[ "MIT" ]
null
null
null
rob_kovach/puzzle_21.py
techartorg/Advent_of_Code_2020
ae21164bc126352e7a2e9c9c6a0017ccb9d946cc
[ "MIT" ]
1
2020-12-13T04:42:44.000Z
2020-12-13T04:42:44.000Z
""" Advent of Code: Day 21 - Allergen Assessment --- Part 1 --- You reach the train's last stop and the closest you can get to your vacation island without getting wet. There aren't even any boats here, but nothing can stop you now: you build a raft. You just need a few days' worth of food for your journey. You do...
37.476471
77
0.740857
d3f626ee37d5fd4a1ebea5f8d6abba2d6a52594d
22,001
py
Python
astropy/modeling/tests/test_parameters.py
adivijaykumar/astropy
0fd7ae818fed3abe4c468170a507d52ef91dc7e8
[ "BSD-3-Clause" ]
4
2021-03-25T15:49:56.000Z
2021-12-15T09:10:04.000Z
astropy/modeling/tests/test_parameters.py
adivijaykumar/astropy
0fd7ae818fed3abe4c468170a507d52ef91dc7e8
[ "BSD-3-Clause" ]
20
2021-05-03T18:02:23.000Z
2022-03-12T12:01:04.000Z
astropy/modeling/tests/test_parameters.py
adivijaykumar/astropy
0fd7ae818fed3abe4c468170a507d52ef91dc7e8
[ "BSD-3-Clause" ]
3
2021-03-28T16:13:00.000Z
2021-07-16T10:27:25.000Z
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ Tests models.parameters """ # pylint: disable=invalid-name import itertools import pytest import numpy as np from astropy.modeling import models, fitting from astropy.modeling.core import Model, FittableModel from astropy.modeling.parameters import ...
34.004637
86
0.534703
26c2ef38f291c70bc50935053ca012609ea81e03
748
py
Python
setup.py
davidkirwan/duffy
c15e5897ce643799c5baae2b29f77db2c96e59ad
[ "Apache-2.0" ]
null
null
null
setup.py
davidkirwan/duffy
c15e5897ce643799c5baae2b29f77db2c96e59ad
[ "Apache-2.0" ]
null
null
null
setup.py
davidkirwan/duffy
c15e5897ce643799c5baae2b29f77db2c96e59ad
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import setuptools setuptools.setup( name='duffy', description='', version='2.0.2', packages=setuptools.find_packages(), include_package_data=True, license='Apache 2.0', install_requires=[ 'beanstalkc', 'flask', 'flask-marshmallow', 'f...
22
61
0.550802
2b25d6c6a75c1b4e1c3f8966eece8260ed764f29
3,300
py
Python
04.adventure/17.ui_panel_reactif/scene.py
Gaetz/python-training
542f658883c66aaa932fb9e385225cfd573bb6de
[ "MIT" ]
1
2021-10-05T11:45:28.000Z
2021-10-05T11:45:28.000Z
04.adventure/17.ui_panel_reactif/scene.py
Gaetz/python-training
542f658883c66aaa932fb9e385225cfd573bb6de
[ "MIT" ]
null
null
null
04.adventure/17.ui_panel_reactif/scene.py
Gaetz/python-training
542f658883c66aaa932fb9e385225cfd573bb6de
[ "MIT" ]
null
null
null
import pygame from sprite_controlled import SpriteControlled from sprite import Sprite from warp import Warp from ui_panel import UiPanel class Scene: path = 'D:\\Code\\ArtFx\\Python\\python-training\\01.adventure\\17.ui_panel_reactif\\' def __init__(self, filename): self.filename = filename ...
33.333333
104
0.507576
a6f7b895afa00a413b36794dccc08a03cc8328c5
2,009
py
Python
aztk/spark/client/job/helpers/get_application_log.py
atg-abhishek/aztk
e3d060e58373c316fddbc0907f08b1430e1b2691
[ "MIT" ]
null
null
null
aztk/spark/client/job/helpers/get_application_log.py
atg-abhishek/aztk
e3d060e58373c316fddbc0907f08b1430e1b2691
[ "MIT" ]
null
null
null
aztk/spark/client/job/helpers/get_application_log.py
atg-abhishek/aztk
e3d060e58373c316fddbc0907f08b1430e1b2691
[ "MIT" ]
null
null
null
import azure.batch.models as batch_models import azure.batch.models.batch_error as batch_error from aztk import error from aztk.spark import models from aztk.utils import helpers from .get_recent_job import get_recent_job def _get_application_log(core_job_operations, spark_job_operations, job_id, application_name):...
46.72093
113
0.740667
65fe6abc5430330438a2a7f3c6edd5953879ed8c
46
py
Python
refactorings/__init__.py
Amin-MAG/CodART
a964a506d031f6eea505df081b9ba946f490d021
[ "MIT" ]
18
2020-11-26T08:31:27.000Z
2022-03-28T07:35:41.000Z
refactorings/__init__.py
Amin-MAG/CodART
a964a506d031f6eea505df081b9ba946f490d021
[ "MIT" ]
82
2020-12-25T08:26:27.000Z
2022-03-25T06:11:36.000Z
refactorings/__init__.py
Amin-MAG/CodART
a964a506d031f6eea505df081b9ba946f490d021
[ "MIT" ]
59
2020-11-26T08:31:42.000Z
2022-02-04T11:09:03.000Z
# from refactorings import collapse_hierarchy
23
45
0.869565
1cb89ad30caffc8b395fbf467e19582cbf2bd775
644
py
Python
testing/scripts/rust/exe_util_unittests.py
chromium/chromium
df46e572c3449a4b108d6e02fbe4f6d24cf98381
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
14,668
2015-01-01T01:57:10.000Z
2022-03-31T23:33:32.000Z
testing/scripts/rust/exe_util_unittests.py
chromium/chromium
df46e572c3449a4b108d6e02fbe4f6d24cf98381
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
86
2015-10-21T13:02:42.000Z
2022-03-14T07:50:50.000Z
testing/scripts/rust/exe_util_unittests.py
chromium/chromium
df46e572c3449a4b108d6e02fbe4f6d24cf98381
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
5,941
2015-01-02T11:32:21.000Z
2022-03-31T16:35:46.000Z
#!/usr/bin/env vpython3 # Copyright 2021 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import argparse import json import os from pyfakefs import fake_filesystem_unittest import sys import tempfile import unittest impo...
26.833333
72
0.732919
21b1fb6c015ae3edebc36006c0e1067abd2a9a14
575
py
Python
core/migrations/0017_auto_20210119_1217.py
Nephrolog-lt/nephrolog-api
ccd2162aff02b2abfab0f285779e5d8457be1788
[ "Apache-2.0" ]
2
2020-12-17T13:50:42.000Z
2021-01-09T07:01:07.000Z
core/migrations/0017_auto_20210119_1217.py
Nephrolog-lt/nephrolog-api
ccd2162aff02b2abfab0f285779e5d8457be1788
[ "Apache-2.0" ]
2
2021-08-25T05:02:56.000Z
2022-01-16T18:29:49.000Z
core/migrations/0017_auto_20210119_1217.py
Nephrolog-lt/nephrolog-api
ccd2162aff02b2abfab0f285779e5d8457be1788
[ "Apache-2.0" ]
1
2020-11-16T01:40:15.000Z
2020-11-16T01:40:15.000Z
# Generated by Django 3.1.5 on 2021-01-19 12:17 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0016_auto_20210119_0848'), ] operations = [ migrations.AlterField( model_name='product', name='name_lt', ...
23.958333
64
0.589565
54a9b93ba1e6ab4f62d6ef94b5e504c220eda5d7
622
py
Python
services/python-images/src/master/helpers/io.py
hpi-epic/mpcsl
05361acb0c8da68ddfa21f9fc9cd32a59255dc5c
[ "MIT" ]
1
2021-11-21T13:52:36.000Z
2021-11-21T13:52:36.000Z
services/python-images/src/master/helpers/io.py
hpi-epic/mpcsl
05361acb0c8da68ddfa21f9fc9cd32a59255dc5c
[ "MIT" ]
3
2021-10-06T13:23:43.000Z
2022-01-07T13:48:41.000Z
services/python-images/src/master/helpers/io.py
hpi-epic/mpcsl
05361acb0c8da68ddfa21f9fc9cd32a59255dc5c
[ "MIT" ]
null
null
null
from flask import request from werkzeug.exceptions import BadRequest class InvalidInputData(BadRequest): def __init__(self, message='Invalid input data.', payload=None): self.payload = payload BadRequest.__init__(self, description=payload or message) def load_data(schema, location='json', *args,...
29.619048
68
0.699357