hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
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
239
max_issues_repo_name
stringlengths
5
130
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
239
max_forks_repo_name
stringlengths
5
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
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
7963e6813d6f8c0205ecd4184c3d42c8d6a0b677
1,996
py
Python
src/egnn.py
sfschouten/egnn
dbbd875d76b1b2c8e9ce9ff9011ebe7b504e7e3e
[ "MIT" ]
4
2020-09-21T02:30:14.000Z
2021-03-22T09:18:06.000Z
src/egnn.py
sfschouten/egnn
dbbd875d76b1b2c8e9ce9ff9011ebe7b504e7e3e
[ "MIT" ]
1
2020-09-21T06:45:19.000Z
2020-09-21T19:20:42.000Z
src/egnn.py
sfschouten/egnn
dbbd875d76b1b2c8e9ce9ff9011ebe7b504e7e3e
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F class EGNN(nn.Module): def __init__(N, F_in, F_out, P, sigma, dropout=0.6, attention=True): self.g = nn.Linear(F_in, F_out, bias=False) self.a = nn.Parameter(torch.empty(2 * F_out)) self.attention = attention ...
25.922078
72
0.472946
7963e73b9a02b3fd845d9e03b5ad322def19092c
809
py
Python
scripts/make_build_pages.py
SebastianJay/SebastianJay.github.io
beda3c37a9591dedea4e1d518de4c94ff9169a06
[ "MIT" ]
null
null
null
scripts/make_build_pages.py
SebastianJay/SebastianJay.github.io
beda3c37a9591dedea4e1d518de4c94ff9169a06
[ "MIT" ]
null
null
null
scripts/make_build_pages.py
SebastianJay/SebastianJay.github.io
beda3c37a9591dedea4e1d518de4c94ff9169a06
[ "MIT" ]
null
null
null
""" Creates a series of pages for the web builds of certain portfolio items """ from global_vars import * # read templates with open(BuildTemplatePath, 'r') as fin: build_template = fin.read() with open(MasterTemplatePath, 'r') as fin: m_template = fin.read() # go through each of the web builds for name, sub...
26.096774
84
0.639061
7963e782071a1e9a9dfef94545955947ef2307f2
790
py
Python
tests/test_run.py
kyleniemeyer/autoclasswrapper
aa9ab4ab56fa939f2a85ff36a42edc0b9889c952
[ "BSD-3-Clause" ]
3
2018-07-07T05:40:02.000Z
2021-07-10T19:43:58.000Z
tests/test_run.py
kyleniemeyer/autoclasswrapper
aa9ab4ab56fa939f2a85ff36a42edc0b9889c952
[ "BSD-3-Clause" ]
15
2018-09-30T21:12:47.000Z
2019-07-25T21:32:17.000Z
tests/test_run.py
kyleniemeyer/autoclasswrapper
aa9ab4ab56fa939f2a85ff36a42edc0b9889c952
[ "BSD-3-Clause" ]
5
2019-03-10T19:15:55.000Z
2021-09-08T09:17:35.000Z
import sys import os import pytest sys.path.insert(0, os.getcwd()) import autoclasswrapper as wrapper here = os.path.abspath(os.path.dirname(__file__)) dir_data = "test_data" @pytest.fixture(scope='session') def tmp_dir(tmpdir_factory): """Create temp dir and cd in it """ tmpd = tmpdir_factory.mktemp("r...
23.939394
57
0.668354
7963e7bdbb36418ed71b0af29edf36d96a315e68
1,439
py
Python
run.py
Ohrwurm2333/BiliLiveGiftThx
de602d6ab6f3c428c09927154ed2377445e7bfc7
[ "MIT" ]
null
null
null
run.py
Ohrwurm2333/BiliLiveGiftThx
de602d6ab6f3c428c09927154ed2377445e7bfc7
[ "MIT" ]
null
null
null
run.py
Ohrwurm2333/BiliLiveGiftThx
de602d6ab6f3c428c09927154ed2377445e7bfc7
[ "MIT" ]
null
null
null
import OnlineHeart import Silver import Tasks import connect from rafflehandler import Rafflehandler import asyncio from printer import Printer from statistics import Statistics from bilibili import bilibili from configloader import ConfigLoader import threading import os import login import bili_console from bilitimer...
21.477612
74
0.751216
7963e9bc95104753acfb9ccc34c462e3191aaebe
19,878
py
Python
Detection/py/train_aug_final_muti_advtrain.py
VITA-Group/CV_A-FAN
d5cc54bfea4636868b192ac2a628ac74446db88f
[ "MIT" ]
13
2021-03-24T02:13:39.000Z
2022-02-07T11:08:43.000Z
Detection/py/train_aug_final_muti_advtrain.py
VITA-Group/CV_A-FAN
d5cc54bfea4636868b192ac2a628ac74446db88f
[ "MIT" ]
1
2022-01-10T22:08:49.000Z
2022-01-10T22:08:49.000Z
Detection/py/train_aug_final_muti_advtrain.py
VITA-Group/CV_A-FAN
d5cc54bfea4636868b192ac2a628ac74446db88f
[ "MIT" ]
1
2021-06-21T17:18:06.000Z
2021-06-21T17:18:06.000Z
import argparse import os import time import uuid from collections import deque from typing import Optional import torch import torch.nn as nn from tensorboardX import SummaryWriter from torch import optim from torch.utils.data import DataLoader from backbone.base import Base as BackboneBase from config.train_config ...
60.788991
185
0.657913
7963e9c3ad6e1a888615ecf3a7cd2d236de11013
3,514
py
Python
omnitool/Language/french.py
Berserker66/omnitool
6bf88ba86a7c68a968f8c8db569b57e6ba836e8e
[ "MIT" ]
40
2015-03-15T14:38:24.000Z
2021-12-18T04:30:39.000Z
omnitool/Language/french.py
Berserker66/omnitool
6bf88ba86a7c68a968f8c8db569b57e6ba836e8e
[ "MIT" ]
31
2015-03-14T12:12:14.000Z
2022-02-27T17:50:56.000Z
omnitool/Language/french.py
Berserker66/omnitool
6bf88ba86a7c68a968f8c8db569b57e6ba836e8e
[ "MIT" ]
13
2015-07-31T11:40:41.000Z
2021-04-09T14:36:07.000Z
langversion = 1 langname = "Français" ##updater # text construct: "Version "+version+available+changelog #example: Version 3 available, click here to download, or for changelog click here available = "disponibles, cliquez pour télécharger" changelog = ", ou pour la liste des changements cliquez ici" ##world gen world...
23.271523
135
0.711725
7963e9efedf9c4ae118dc04ba36d5cd37500d65a
11,809
py
Python
cnvlib/call.py
jeremy9959/cnvkit
b839a2b323113a7d318d216f61a0ed6657c70ed4
[ "Apache-2.0" ]
null
null
null
cnvlib/call.py
jeremy9959/cnvkit
b839a2b323113a7d318d216f61a0ed6657c70ed4
[ "Apache-2.0" ]
null
null
null
cnvlib/call.py
jeremy9959/cnvkit
b839a2b323113a7d318d216f61a0ed6657c70ed4
[ "Apache-2.0" ]
null
null
null
"""Call copy number variants from segmented log2 ratios.""" from __future__ import absolute_import, division, print_function import logging import numpy as np import pandas as pd from . import segfilters def do_call(cnarr, variants=None, method="threshold", ploidy=2, purity=None, is_reference_male=Fals...
37.488889
83
0.631468
7963eb5b603b6dce18baec124da5b95ce47a4de9
2,379
py
Python
bin/se/objective.py
grtzsohalf/SpeechNet-codebase
cb88100a427e699a88a1ff303b6821a1d50e9415
[ "MIT" ]
16
2021-06-15T08:58:14.000Z
2021-11-17T07:48:22.000Z
bin/se/objective.py
grtzsohalf/SpeechNet-codebase
cb88100a427e699a88a1ff303b6821a1d50e9415
[ "MIT" ]
null
null
null
bin/se/objective.py
grtzsohalf/SpeechNet-codebase
cb88100a427e699a88a1ff303b6821a1d50e9415
[ "MIT" ]
2
2021-07-03T00:01:40.000Z
2021-07-12T12:26:45.000Z
import torch import torch.nn as nn import torch.nn.functional as F import math import numpy as np import scipy from scipy.signal.windows import hann as hanning from torch import Tensor from functools import partial from utils import * from asteroid.losses.sdr import SingleSrcNegSDR from asteroid.losses.stoi import NegS...
33.507042
86
0.648592
7963eb7e7adf711e880aafb64250eb3a93dad80c
374
py
Python
netlib/basethread.py
jvillacorta/mitmproxy
3aa2d59f627e0fc95167fb76ffbe84330e3a5cc5
[ "MIT" ]
1
2018-03-31T17:16:07.000Z
2018-03-31T17:16:07.000Z
netlib/basethread.py
yatere/mitmproxy
5c0161886ae03dcd3b4cfc726c7a53408cdb5d71
[ "MIT" ]
null
null
null
netlib/basethread.py
yatere/mitmproxy
5c0161886ae03dcd3b4cfc726c7a53408cdb5d71
[ "MIT" ]
4
2018-04-18T13:17:01.000Z
2021-02-21T17:08:33.000Z
import time import threading class BaseThread(threading.Thread): def __init__(self, name, *args, **kwargs): super(BaseThread, self).__init__(name=name, *args, **kwargs) self._thread_started = time.time() def _threadinfo(self): return "%s - age: %is" % ( self.name, ...
24.933333
68
0.59893
7963eb8718ee1568eb7a97135f99c4cee2afd326
1,162
py
Python
throttle/migrations/0001_initial.py
DachengChen/GreaterWMS
45ae3149f4fd2e92c336d4dc9b3d36e7c1cb1873
[ "Apache-2.0" ]
null
null
null
throttle/migrations/0001_initial.py
DachengChen/GreaterWMS
45ae3149f4fd2e92c336d4dc9b3d36e7c1cb1873
[ "Apache-2.0" ]
null
null
null
throttle/migrations/0001_initial.py
DachengChen/GreaterWMS
45ae3149f4fd2e92c336d4dc9b3d36e7c1cb1873
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.1.14 on 2022-01-06 19:19 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='ListModel', fields=[ ('id', models.AutoFie...
35.212121
114
0.561102
7963ec469eaea3c7cccce1a6d9e169273603b4fc
11,508
py
Python
telemetry/telemetry/benchmark.py
PLSV/catapult
88e5b1f40c89c4b80d3dd56a722936d07f222a55
[ "BSD-3-Clause" ]
null
null
null
telemetry/telemetry/benchmark.py
PLSV/catapult
88e5b1f40c89c4b80d3dd56a722936d07f222a55
[ "BSD-3-Clause" ]
null
null
null
telemetry/telemetry/benchmark.py
PLSV/catapult
88e5b1f40c89c4b80d3dd56a722936d07f222a55
[ "BSD-3-Clause" ]
null
null
null
# 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. import logging import optparse from telemetry import decorators from telemetry.internal import story_runner from telemetry.internal.util import command_line...
39.958333
80
0.736531
7963ece055a8b2acacb1e9fa0d97802f37ab89aa
256
py
Python
pypro/modulos/urls.py
GilmarDeJesusSantana/curso-django
b72ea5bfe6d856a24334c838223236157dcaf555
[ "MIT" ]
null
null
null
pypro/modulos/urls.py
GilmarDeJesusSantana/curso-django
b72ea5bfe6d856a24334c838223236157dcaf555
[ "MIT" ]
181
2020-07-01T01:50:08.000Z
2022-03-28T16:17:27.000Z
pypro/modulos/urls.py
GilmarDeJesusSantana/curso-django
b72ea5bfe6d856a24334c838223236157dcaf555
[ "MIT" ]
1
2020-08-06T19:50:33.000Z
2020-08-06T19:50:33.000Z
from django.urls import path from pypro.modulos import views app_name = 'modulos' urlpatterns = [ path('<slug:slug>', views.detalhe, name='detalhe'), path('aula/<slug:slug>', views.aula, name='aula'), path('', views.indice, name='indice'), ]
23.272727
55
0.664063
7963ed907b9034263b607dbde8f46d06ae05d501
1,772
py
Python
backend/core/migrations/0001_initial.py
thehomebrewnerd/react-django-template
98f616957a7f45ef2e809884e3041e5b99031733
[ "MIT" ]
null
null
null
backend/core/migrations/0001_initial.py
thehomebrewnerd/react-django-template
98f616957a7f45ef2e809884e3041e5b99031733
[ "MIT" ]
3
2022-02-13T22:41:40.000Z
2022-02-27T11:07:07.000Z
backend/core/migrations/0001_initial.py
thehomebrewnerd/react-django-template
98f616957a7f45ef2e809884e3041e5b99031733
[ "MIT" ]
null
null
null
# Generated by Django 2.2.6 on 2019-10-01 20:30 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='User', f...
50.628571
266
0.636005
7963edbcde460991e6a1fa6a7c657dec58ac1341
8,172
py
Python
facet_plot_gui.py
pantelisantonoudiou/sake-plot
94485497f07fb097db6fbc246f62e16c02a631f7
[ "Apache-2.0" ]
null
null
null
facet_plot_gui.py
pantelisantonoudiou/sake-plot
94485497f07fb097db6fbc246f62e16c02a631f7
[ "Apache-2.0" ]
null
null
null
facet_plot_gui.py
pantelisantonoudiou/sake-plot
94485497f07fb097db6fbc246f62e16c02a631f7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Aug 10 14:53:48 2021 @author: gweiss01 """ import pandas as pd import seaborn as sns from matplotlib import pyplot as plt import numpy as np import os import PyQt5 # mpl.use('TkAgg') class GridGraph: def __init__(self,path,filename,data): """ Creates an o...
33.62963
149
0.570485
7963ede00d806e450aa4811e29b6019214f0b209
9,291
py
Python
run/test.py
Asichurter/APISeqFewShot
b4b7843da1f53cdc1d1711537c31305e7d5c6555
[ "MIT" ]
8
2020-05-14T19:29:41.000Z
2022-03-09T03:29:51.000Z
run/test.py
Asichurter/APISeqFewShot
b4b7843da1f53cdc1d1711537c31305e7d5c6555
[ "MIT" ]
null
null
null
run/test.py
Asichurter/APISeqFewShot
b4b7843da1f53cdc1d1711537c31305e7d5c6555
[ "MIT" ]
null
null
null
import sys import os ################################################ #----------------------设置系统基本信息------------------ ################################################ # appendProjectPath(depth=1) sys.path.append('../') # 先添加路径再获取 from components.task import * from utils.manager import TrainingConfigManager, Path...
35.734615
102
0.494242
7963ee2cdf60df06adf30a540c4fd4cf185c945d
6,383
py
Python
tests/test_biom_create.py
smdabdoub/clark-biom
4b91c781b33ee6842fa8bc390a4367a3d73ba78f
[ "MIT" ]
1
2019-03-09T08:52:05.000Z
2019-03-09T08:52:05.000Z
tests/test_biom_create.py
smdabdoub/clark-biom
4b91c781b33ee6842fa8bc390a4367a3d73ba78f
[ "MIT" ]
1
2018-04-05T07:58:59.000Z
2018-04-09T19:37:06.000Z
tests/test_biom_create.py
smdabdoub/clark-biom
4b91c781b33ee6842fa8bc390a4367a3d73ba78f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 from collections import OrderedDict import csv import importlib import io import os import tempfile from textwrap import dedent as twdd import unittest import clark_biom as cb from tests.test_parsing import prep_clark_input class clark_biom_Test(unittest.TestCase): def setU...
59.101852
170
0.715808
7963ee81156090bb2783fe3fb7505e9134592f45
1,912
py
Python
aliyun-python-sdk-vpc/aliyunsdkvpc/request/v20160428/DeactiveFlowLogRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-vpc/aliyunsdkvpc/request/v20160428/DeactiveFlowLogRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-vpc/aliyunsdkvpc/request/v20160428/DeactiveFlowLogRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
null
null
null
# 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"); you may not u...
35.407407
74
0.773013
7963eebb61f30df032c417d631dcabd304a80b78
9,922
py
Python
test_files/conditional_imports.py
RamonWill/zimports
26f01fd1f7105b510f4723059af77531431b0bd8
[ "MIT" ]
65
2019-01-02T05:44:38.000Z
2021-11-08T11:47:09.000Z
test_files/conditional_imports.py
RamonWill/zimports
26f01fd1f7105b510f4723059af77531431b0bd8
[ "MIT" ]
32
2019-01-07T15:43:15.000Z
2022-02-09T20:36:32.000Z
test_files/conditional_imports.py
RamonWill/zimports
26f01fd1f7105b510f4723059af77531431b0bd8
[ "MIT" ]
7
2019-01-07T15:11:31.000Z
2020-07-08T17:42:13.000Z
# util/compat.py # Copyright (C) 2005-2018 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """Handle Python version/platform incompatibilities.""" import collections import co...
27.870787
77
0.623967
7963ef4a81326c15dca2c13a79c9e5bfedaf6883
612
py
Python
F0AM_Tools/GEOSChem_Emulator/example.py
jdhask/pyMCM
32b65e1dff2e9626df5d52623fd1ac4af29f8c57
[ "MIT" ]
1
2021-11-15T19:24:40.000Z
2021-11-15T19:24:40.000Z
F0AM_Tools/GEOSChem_Emulator/example.py
jdhask/pyMCM
32b65e1dff2e9626df5d52623fd1ac4af29f8c57
[ "MIT" ]
null
null
null
F0AM_Tools/GEOSChem_Emulator/example.py
jdhask/pyMCM
32b65e1dff2e9626df5d52623fd1ac4af29f8c57
[ "MIT" ]
2
2021-11-15T19:23:46.000Z
2021-11-29T12:42:26.000Z
# -*- coding: utf-8 -*- """ Created on Tue Jan 18 18:06:39 2022 @author: jhask """ import os from GEOSChem_Emulator import * # EXAMPLE: -------------------------------------------------------------- # Get path to the Emulator folder/ pth= os.path.dirname(os.path.abspath(__file__))+'/' # Read KPP file...
29.142857
79
0.633987
7963f03c8577012b8a5e6b1a9439d438fa6be648
1,323
py
Python
setup.py
yxteagle/pysdk-uvc
86fc48f6e721e933b5502f9a13b26790c9529260
[ "BSD-2-Clause-FreeBSD" ]
5
2018-10-30T08:49:32.000Z
2021-11-26T13:58:04.000Z
setup.py
yxteagle/pysdk-uvc
86fc48f6e721e933b5502f9a13b26790c9529260
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
setup.py
yxteagle/pysdk-uvc
86fc48f6e721e933b5502f9a13b26790c9529260
[ "BSD-2-Clause-FreeBSD" ]
2
2018-06-01T07:42:52.000Z
2021-11-26T13:58:07.000Z
from distutils.core import setup from distutils.core import Extension from distutils.command.build_ext import build_ext as _build_ext class build_ext(_build_ext): def run(self): print('WTF, Nothing but python is the best language for developers!') _build_ext.run(self) modules = [ Extension(...
28.148936
77
0.582011
7963f10d1505932921a1c631e9b9302a254620d2
1,634
py
Python
setup.py
winnerineast/Synonyms
6633d861089427a5f0668ebe330aaf1364e8002d
[ "MIT" ]
null
null
null
setup.py
winnerineast/Synonyms
6633d861089427a5f0668ebe330aaf1364e8002d
[ "MIT" ]
null
null
null
setup.py
winnerineast/Synonyms
6633d861089427a5f0668ebe330aaf1364e8002d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from setuptools import setup, find_packages LONGDOC = """ Synonyms ===================== 中文近义词 https://github.com/chatopera/Synonyms """ setup( name='synonyms', version='3.13.0', description='中文近义词:聊天机器人,智能问答工具包;Chinese Synonyms for Natural Language Processing and Understanding',...
30.830189
105
0.567931
7963f152b24d093d269dc860309a97cc88d33ef3
2,166
py
Python
test/vanilla/low-level/Expected/AcceptanceTests/RequiredOptionalLowLevel/requiredoptionallowlevel/rest/implicit/__init__.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
35
2018-04-03T12:15:53.000Z
2022-03-11T14:03:34.000Z
test/vanilla/low-level/Expected/AcceptanceTests/RequiredOptionalLowLevel/requiredoptionallowlevel/rest/implicit/__init__.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
652
2017-08-28T22:44:41.000Z
2022-03-31T21:20:31.000Z
test/vanilla/low-level/Expected/AcceptanceTests/RequiredOptionalLowLevel/requiredoptionallowlevel/rest/implicit/__init__.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
29
2017-08-28T20:57:01.000Z
2022-03-11T14:03:38.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
57
94
0.771468
7963f274e8846e4f56b1ede4e5c738ebabc8fb1b
20,054
py
Python
src/minerl/herobraine/hero/handlers/observables.py
imatge-upc/pixelcoordEDL
353632feed6ac8c93758c1a2a1b7a477e7ff053c
[ "MIT" ]
1
2021-06-10T04:03:24.000Z
2021-06-10T04:03:24.000Z
src/minerl/herobraine/hero/handlers/observables.py
imatge-upc/pixelcoordEDL
353632feed6ac8c93758c1a2a1b7a477e7ff053c
[ "MIT" ]
null
null
null
src/minerl/herobraine/hero/handlers/observables.py
imatge-upc/pixelcoordEDL
353632feed6ac8c93758c1a2a1b7a477e7ff053c
[ "MIT" ]
null
null
null
import logging from typing import Tuple import gym import numpy as np from minerl.herobraine.hero import AgentHandler, mc, spaces def strip_of_prefix(minecraft_name): # Names in minecraft start with 'minecraft:', like: # 'minecraft:log', or 'minecraft:cobblestone' if minecraft_name.startswith('minecraft...
32.767974
151
0.604368
7963f29ff8702fc70f5b85b53fbe738e0f35f96a
50,784
py
Python
pretrain/dataloader.py
nlptrinh/merlot_reserve
008c3c100651556fc63065a694b07515a207d909
[ "MIT" ]
40
2022-01-11T04:55:33.000Z
2022-03-30T08:55:37.000Z
pretrain/dataloader.py
nlptrinh/merlot_reserve
008c3c100651556fc63065a694b07515a207d909
[ "MIT" ]
8
2022-01-18T19:20:11.000Z
2022-03-29T08:28:22.000Z
pretrain/dataloader.py
nlptrinh/merlot_reserve
008c3c100651556fc63065a694b07515a207d909
[ "MIT" ]
6
2022-01-11T20:13:13.000Z
2022-03-31T07:05:19.000Z
""" Pretraining dataloader """ import sys sys.path.append('../') import time from pretrain.data_utils import resize_and_pad, get_shape_list, pad_to_fixed_size, \ uniform_random_select, random_categorical_without_replacement, sample_bernoulli, batch_index_iterator, \ sample_bernoullis, cumulative_maximum_int, e...
45.505376
148
0.63904
7963f399e59210b4d6a494d7018c61f3c0a3f00c
366
py
Python
medusa_comms/comms_radio/cpf_gamma/setup.py
gshubham96/medusa_base
1f6e8776ac115951eea13d227ce8c370abd2ea0e
[ "MIT" ]
null
null
null
medusa_comms/comms_radio/cpf_gamma/setup.py
gshubham96/medusa_base
1f6e8776ac115951eea13d227ce8c370abd2ea0e
[ "MIT" ]
1
2022-02-21T16:50:47.000Z
2022-02-21T16:50:47.000Z
medusa_comms/comms_radio/cpf_gamma/setup.py
gshubham96/medusa_base
1f6e8776ac115951eea13d227ce8c370abd2ea0e
[ "MIT" ]
2
2022-02-02T11:00:14.000Z
2022-03-01T08:42:05.000Z
#!/usr/bin/env python from distutils.core import setup from catkin_pkg.python_setup import generate_distutils_setup # for your packages to be recognized by python d = generate_distutils_setup( packages=['cpf_gamma_algorithms', 'cpf_gamma_ros'], package_dir={'cpf_gamma_algorithms': 'src/cpf_gamma_algorithms', 'cpf_g...
28.153846
103
0.795082
7963f3f6dc7ad9c7af751d74608f918402ccb102
1,327
py
Python
adv/sylas.py
Zeiin/dl
bce5e239dc751baa9266aa5adbe7c8d078d8a9ac
[ "Apache-2.0" ]
null
null
null
adv/sylas.py
Zeiin/dl
bce5e239dc751baa9266aa5adbe7c8d078d8a9ac
[ "Apache-2.0" ]
null
null
null
adv/sylas.py
Zeiin/dl
bce5e239dc751baa9266aa5adbe7c8d078d8a9ac
[ "Apache-2.0" ]
null
null
null
from core.advbase import * from slot.a import * from slot.d import * def module(): return Sylas class Sylas(Adv): a3 = ('a',0.15,'hp70') comment = 'no skill haste for team' conf = {} conf['slots.a'] = Resounding_Rendition()+The_Fires_of_Hate() conf['acl'] = """ `dragon.act("c3 s end")...
27.081633
66
0.571967
7963f4186984ac7735e70cfc6c5042dbb2ecbbca
66,632
py
Python
airflow/models/taskinstance.py
maganaluis/airflow
6ba672eaab84fd71dc8a6f2dd5791651e5a96c38
[ "Apache-2.0" ]
1
2020-04-10T15:23:56.000Z
2020-04-10T15:23:56.000Z
airflow/models/taskinstance.py
maganaluis/airflow
6ba672eaab84fd71dc8a6f2dd5791651e5a96c38
[ "Apache-2.0" ]
null
null
null
airflow/models/taskinstance.py
maganaluis/airflow
6ba672eaab84fd71dc8a6f2dd5791651e5a96c38
[ "Apache-2.0" ]
null
null
null
# # 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"); you may not...
39.403903
110
0.593919
7963f5efa1dcf73b5cfa9366a29300c165a89f01
20,689
py
Python
web/embeddings.py
RichardChangCA/word-embeddings-benchmarks
4755ec8aa1e01db2241a5d009de5c7a598c82cb4
[ "MIT" ]
null
null
null
web/embeddings.py
RichardChangCA/word-embeddings-benchmarks
4755ec8aa1e01db2241a5d009de5c7a598c82cb4
[ "MIT" ]
null
null
null
web/embeddings.py
RichardChangCA/word-embeddings-benchmarks
4755ec8aa1e01db2241a5d009de5c7a598c82cb4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Fetchers for publicly available pretrained embeddings """ from six.moves import cPickle as pickle from os import path import numpy as np from .datasets.utils import _get_dataset_dir, _fetch_file from .embedding import Embedding def load_embedding(fname, format="word2vec_bin", normalize=Tru...
36.296491
257
0.646624
7963f86938c6647931ccfa2633a4b161188f57ad
52,720
py
Python
test/functional/p2p-fullblocktest.py
GenYuanLian/SourceChain
f278529e0a85d7be6aef1fa3989498a7dee70f51
[ "MIT" ]
7
2018-01-24T14:32:02.000Z
2019-06-27T12:09:24.000Z
test/functional/p2p-fullblocktest.py
GenYuanLian/SourceChain
f278529e0a85d7be6aef1fa3989498a7dee70f51
[ "MIT" ]
null
null
null
test/functional/p2p-fullblocktest.py
GenYuanLian/SourceChain
f278529e0a85d7be6aef1fa3989498a7dee70f51
[ "MIT" ]
4
2018-01-24T13:54:02.000Z
2018-05-03T02:38:13.000Z
#!/usr/bin/env python3 # Copyright (c) 2015-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test block processing. This reimplements tests from the srcchainj/FullBlockTestGenerator used by the p...
40.868217
131
0.544936
7963f8de5a3a5f0f5ce924891fda788fbfa6122d
552
py
Python
ml/kubeflow/wait_pipe.py
Gsantomaggio/k8s
a63f657d754ca7ff25314ec19b8cb4a6784f9d50
[ "Apache-2.0" ]
11
2020-02-18T21:07:18.000Z
2022-01-05T12:04:42.000Z
ml/kubeflow/wait_pipe.py
Gsantomaggio/k8s
a63f657d754ca7ff25314ec19b8cb4a6784f9d50
[ "Apache-2.0" ]
3
2020-03-03T12:05:45.000Z
2020-03-11T09:14:13.000Z
ml/kubeflow/wait_pipe.py
Gsantomaggio/k8s
a63f657d754ca7ff25314ec19b8cb4a6784f9d50
[ "Apache-2.0" ]
4
2020-03-04T19:57:14.000Z
2020-03-20T10:10:06.000Z
import sys import time import requests url = 'http://{0}/apis/v1beta1/runs'.format(sys.argv[1]) success = False tentatives = 0 while not success: response = requests.get(url) runs = response.json()["runs"] last = runs[(len(runs) - 1)] print( "{0} - {1} - {2} - {3} - {4}".format(last["id"], l...
22.08
119
0.596014
7963f9d2a081cb1501422eeb6ca789d41196034d
339
py
Python
docs/conf_theme_alabaster.py
MrTango/python-emails
9c4a48a9ba2215105d196d37bff15cf9168f4b83
[ "Apache-2.0" ]
348
2015-02-15T19:15:42.000Z
2022-03-08T17:25:54.000Z
docs/conf_theme_alabaster.py
MrTango/python-emails
9c4a48a9ba2215105d196d37bff15cf9168f4b83
[ "Apache-2.0" ]
128
2015-02-21T02:07:25.000Z
2022-03-02T14:55:52.000Z
docs/conf_theme_alabaster.py
MrTango/python-emails
9c4a48a9ba2215105d196d37bff15cf9168f4b83
[ "Apache-2.0" ]
52
2015-01-07T04:09:49.000Z
2022-03-10T06:34:52.000Z
# -*- coding: utf-8 -*- html_theme = 'alabaster' html_sidebars = { '**': [ # 'about.html', 'navigation.html', 'searchbox.html', 'donate.html', ] } html_theme_options = { 'github_user': 'lavr', 'github_repo': 'python-emails', 'github_banner': True, 'travis_button': True, 'code_fon...
19.941176
77
0.578171
7963f9de90d77ebf3ab0bf5332b2649273bacab3
851
py
Python
models/exercice.py
Animenosekai/saiki-bot
0e2c10f6ec065279dfc756746b0cf94c9bcb22e6
[ "MIT" ]
null
null
null
models/exercice.py
Animenosekai/saiki-bot
0e2c10f6ec065279dfc756746b0cf94c9bcb22e6
[ "MIT" ]
null
null
null
models/exercice.py
Animenosekai/saiki-bot
0e2c10f6ec065279dfc756746b0cf94c9bcb22e6
[ "MIT" ]
null
null
null
from models.solution import Solution class Exercice(): def __init__(self, data: dict) -> None: try: self.number = int(data["number"]) self.content = str(data.get("content", "N/A")) self.solutions = [Solution(number, solution) for number, solu...
34.04
88
0.548766
7963fc80b781cc11d0a8bd486e195f93077d8861
4,593
py
Python
stockprophet/cli/sim/core/account.py
chihyi-liao/stockprophet
891c91b2a446e3bd30bb56b88be3874d7dda1b8d
[ "BSD-3-Clause" ]
1
2021-11-15T13:07:19.000Z
2021-11-15T13:07:19.000Z
stockprophet/cli/sim/core/account.py
chihyi-liao/stockprophet
891c91b2a446e3bd30bb56b88be3874d7dda1b8d
[ "BSD-3-Clause" ]
null
null
null
stockprophet/cli/sim/core/account.py
chihyi-liao/stockprophet
891c91b2a446e3bd30bb56b88be3874d7dda1b8d
[ "BSD-3-Clause" ]
1
2021-09-15T09:25:39.000Z
2021-09-15T09:25:39.000Z
from datetime import date Kilo = 1000 Fee = 1.425 / Kilo Tax = 3.0 / Kilo class Account(object): def __init__(self, principal: int): self.records = [] self.principal: int = principal self.total_assets: int = principal self.avg_price: float = 0.0 self.stock_assets: int = 0 ...
39.594828
89
0.579795
7963fdce45e34eef5b01d301b5135876af73f0fa
6,268
py
Python
neutron/plugins/nec/db/api.py
SnabbCo/neutron
a657c06d10f2171149c6b1863df36522bdc11cd7
[ "Apache-2.0" ]
1
2016-04-19T08:20:19.000Z
2016-04-19T08:20:19.000Z
neutron/plugins/nec/db/api.py
SnabbCo/neutron
a657c06d10f2171149c6b1863df36522bdc11cd7
[ "Apache-2.0" ]
null
null
null
neutron/plugins/nec/db/api.py
SnabbCo/neutron
a657c06d10f2171149c6b1863df36522bdc11cd7
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # # Copyright 2012 NEC Corporation. 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.or...
33.518717
78
0.67023
7963fdd078ae23ab8f75fc0cdb958b627dc96262
531
py
Python
src/python27/progress_thread/threadTest.py
hewentian/python3-learning
db16070393a2491b174b8de4788eb222dfd3f680
[ "Apache-2.0" ]
2
2018-11-20T03:47:38.000Z
2018-11-20T03:48:20.000Z
src/python27/progress_thread/threadTest.py
hewentian/python3-learning
db16070393a2491b174b8de4788eb222dfd3f680
[ "Apache-2.0" ]
null
null
null
src/python27/progress_thread/threadTest.py
hewentian/python3-learning
db16070393a2491b174b8de4788eb222dfd3f680
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import time, threading def loop(): print 'thread %s is running...' % threading.current_thread().name n = 0 while n < 5: n = n + 1 print 'thread %s >>> %s' % (threading.current_thread().name, n) time.sleep(1) print 'thread %s ended.' % threading.current_t...
27.947368
71
0.629002
7963fe8affffd30661da5384b629c25e016cd42f
4,450
py
Python
stem_cell_hypothesis/zh_electra_base/single/ner.py
emorynlp/stem-cell-hypothesis
48a628093d93d653865fbac6409d179cddd99293
[ "Apache-2.0" ]
4
2021-09-17T15:23:31.000Z
2022-02-28T10:18:04.000Z
stem_cell_hypothesis/zh_electra_base/single/ner.py
emorynlp/stem-cell-hypothesis
48a628093d93d653865fbac6409d179cddd99293
[ "Apache-2.0" ]
null
null
null
stem_cell_hypothesis/zh_electra_base/single/ner.py
emorynlp/stem-cell-hypothesis
48a628093d93d653865fbac6409d179cddd99293
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- # Author: hankcs # Date: 2021-01-06 16:12 from typing import List from elit.common.dataset import SortingSamplerBuilder from elit.common.transform import NormalizeToken from elit.components.mtl.multi_task_learning import MultiTaskLearning from elit.components.mtl.tasks.constituency import CRFCon...
39.035088
121
0.624944
7963ff1aafc365e74b2c1efc19a727eb89193c90
3,756
py
Python
nickname-request/nickname-request.py
waterflamev8/modmail-plugins
5d98fda1cbc49a12882b7032197c73e0c52bb3c9
[ "MIT" ]
null
null
null
nickname-request/nickname-request.py
waterflamev8/modmail-plugins
5d98fda1cbc49a12882b7032197c73e0c52bb3c9
[ "MIT" ]
null
null
null
nickname-request/nickname-request.py
waterflamev8/modmail-plugins
5d98fda1cbc49a12882b7032197c73e0c52bb3c9
[ "MIT" ]
null
null
null
from discord import Embed, Guild, Member, TextChannel from discord.ext import commands from core import checks from core.models import PermissionLevel class NicknameRequest(commands.Cog): def __init__(self, bot): self.bot = bot self._db = self.bot.plugin_db.get_partition(self) self._requ...
35.771429
129
0.629393
7964003e283f8efa0e653c9b6c9b716dbf907aca
21,587
py
Python
seekr2/modules/runner_namd.py
astokely/seekr2
2fd8496dc885339437678a729b1f97a4b0bf9cfd
[ "MIT" ]
null
null
null
seekr2/modules/runner_namd.py
astokely/seekr2
2fd8496dc885339437678a729b1f97a4b0bf9cfd
[ "MIT" ]
null
null
null
seekr2/modules/runner_namd.py
astokely/seekr2
2fd8496dc885339437678a729b1f97a4b0bf9cfd
[ "MIT" ]
null
null
null
""" runner_namd.py A command-line tool for running SEEKR calculations using the NAMD engine either locally or on a computing resource. """ import os import argparse import glob import shutil import seekr2.modules.common_base as base import seekr2.modules.mmvt_base as mmvt_base import seekr2.modules.elber_base as elb...
45.446316
80
0.595729
79640045ab1c05e40d36e96e513ec25c7c03a054
7,228
py
Python
models.py
ArgentumWalker/dreamer
42da69aab52674c36de0ac6a35aa9c08e791da4f
[ "MIT" ]
null
null
null
models.py
ArgentumWalker/dreamer
42da69aab52674c36de0ac6a35aa9c08e791da4f
[ "MIT" ]
null
null
null
models.py
ArgentumWalker/dreamer
42da69aab52674c36de0ac6a35aa9c08e791da4f
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf from tensorflow.keras import layers as tfkl from tensorflow_probability import distributions as tfd from tensorflow.keras.mixed_precision import experimental as prec import tools class RSSM(tools.Module): def __init__(self, stoch=30, deter=200, hidden=200, act=tf.nn.el...
40.836158
82
0.592972
79640094ab5fd01275f7aa46f15a5590ddd898c6
11,170
py
Python
pyfritzhome/cli.py
Gezzo42/python-fritzhome
2edbd521163b9f9477400f4646c13df9ddc73db5
[ "MIT" ]
null
null
null
pyfritzhome/cli.py
Gezzo42/python-fritzhome
2edbd521163b9f9477400f4646c13df9ddc73db5
[ "MIT" ]
null
null
null
pyfritzhome/cli.py
Gezzo42/python-fritzhome
2edbd521163b9f9477400f4646c13df9ddc73db5
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function import logging import argparse try: from version import __version__ except ImportError: __version__ = "dev" from pyfritzhome import Fritzhome _LOGGER = logging.getLogger(__name__) def list_all(fritz, args): """Command ...
35.686901
140
0.662489
796400a2ca8e2e0e41cdecabf2363b9745814e4c
12,513
py
Python
clients/client/python/ory_client/model/submit_self_service_registration_flow_with_password_method_body.py
GRoguelon/sdk
b0f50192b90047e5b7cac9e3fb565c050be95403
[ "Apache-2.0" ]
null
null
null
clients/client/python/ory_client/model/submit_self_service_registration_flow_with_password_method_body.py
GRoguelon/sdk
b0f50192b90047e5b7cac9e3fb565c050be95403
[ "Apache-2.0" ]
null
null
null
clients/client/python/ory_client/model/submit_self_service_registration_flow_with_password_method_body.py
GRoguelon/sdk
b0f50192b90047e5b7cac9e3fb565c050be95403
[ "Apache-2.0" ]
null
null
null
""" Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 The version of the OpenAPI document: v0.0.1-alpha.46 Contact: support@ory.sh Generated by: htt...
44.849462
194
0.578359
796400bf2c7cc99c31e2d905744c81c4fb357acb
10,053
py
Python
contrib/spendfrom/spendfrom.py
miracle-project/miracle
3681bb60189296a2d5a043589356ae9f43b57d1d
[ "MIT" ]
null
null
null
contrib/spendfrom/spendfrom.py
miracle-project/miracle
3681bb60189296a2d5a043589356ae9f43b57d1d
[ "MIT" ]
null
null
null
contrib/spendfrom/spendfrom.py
miracle-project/miracle
3681bb60189296a2d5a043589356ae9f43b57d1d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Use the raw transactions API to spend bitcoins received on particular addresses, # and send any change back to that same address. # # Example usage: # spendfrom.py # Lists available funds # spendfrom.py --from=ADDRESS --to=ADDRESS --amount=11.00 # # Assumes it will talk to a bitcoind or Bit...
37.511194
111
0.632249
796400fcccec60405b1d3000b87ead6eaabfc276
2,877
py
Python
beatsaver/api/search.py
jundoll/bs-api-py
1e12e1d68d6cbc4c8e25c0da961396854391be5b
[ "MIT" ]
null
null
null
beatsaver/api/search.py
jundoll/bs-api-py
1e12e1d68d6cbc4c8e25c0da961396854391be5b
[ "MIT" ]
null
null
null
beatsaver/api/search.py
jundoll/bs-api-py
1e12e1d68d6cbc4c8e25c0da961396854391be5b
[ "MIT" ]
null
null
null
# load modules from requests_api import request from ..entity import SearchResponse # const SERVER = 'https://beatsaver.com/api' # definition async def search_maps( # Options are a little weird, I may add another enum field in future to make this clearer. # true = both, false = only ai, null = no ai au...
24.801724
94
0.589503
796401c9543eb7d77e87f66b48261cde84c8c0ff
2,126
py
Python
wormhole/i18n.py
HybridF5/hybrid-jacket
99ad667e822c1e998d952af0cab6a78cf5063256
[ "Apache-2.0" ]
null
null
null
wormhole/i18n.py
HybridF5/hybrid-jacket
99ad667e822c1e998d952af0cab6a78cf5063256
[ "Apache-2.0" ]
null
null
null
wormhole/i18n.py
HybridF5/hybrid-jacket
99ad667e822c1e998d952af0cab6a78cf5063256
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 IBM Corp. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
31.731343
78
0.766698
796401cc767c12f9c4b6a137db2237b25143f08f
2,622
py
Python
tests/parser/test_text_parsing.py
iqDF/receiptbook-service
08248952691d81b570feffe580d51943f9117dc1
[ "Apache-2.0" ]
1
2019-09-19T14:21:14.000Z
2019-09-19T14:21:14.000Z
tests/parser/test_text_parsing.py
iqDF/receiptbook-service
08248952691d81b570feffe580d51943f9117dc1
[ "Apache-2.0" ]
null
null
null
tests/parser/test_text_parsing.py
iqDF/receiptbook-service
08248952691d81b570feffe580d51943f9117dc1
[ "Apache-2.0" ]
null
null
null
import os import unittest import yaml from config import TEST_TEXT_DATA_DIR from app.parser.text_receipt_parser import ( parse_sum_in_text, parse_market_in_text ) class TextParserTest(unittest.TestCase): """Test for text parsing component """ def test_parse_total_sum(self): """Parsing tot...
36.416667
91
0.63463
796402425a123d0063084f3f9886855789a40e10
9,720
py
Python
tensorflow/python/training/adam.py
DEVESHTARASIA/tensorflow
d3edb8c60ed4fd831d62833ed22f5c23486c561c
[ "Apache-2.0" ]
384
2017-02-21T18:38:04.000Z
2022-02-22T07:30:25.000Z
tensorflow/python/training/adam.py
ChenAugustus/tensorflow
5828e285209ff8c3d1bef2e4bd7c55ca611080d5
[ "Apache-2.0" ]
15
2017-03-01T20:18:43.000Z
2020-05-07T10:33:51.000Z
udacity-car/lib/python2.7/site-packages/tensorflow/python/training/adam.py
808brick/CarND-Capstone
f9e536b4a9d96322d7e971073602c8969dbd9369
[ "MIT" ]
81
2017-02-21T19:31:19.000Z
2022-02-22T07:30:24.000Z
# Copyright 2015 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...
43.783784
80
0.677675
79640305ded3434f147bf2288758409875e67e59
1,688
py
Python
pylibftdi/examples/info.py
wrigby/pylibftdi
4662ebe069eefd5a89709d4165e3be808cad636c
[ "MIT" ]
14
2016-12-30T09:50:03.000Z
2022-02-11T11:07:15.000Z
pylibftdi/examples/info.py
wrigby/pylibftdi
4662ebe069eefd5a89709d4165e3be808cad636c
[ "MIT" ]
7
2018-10-29T16:49:26.000Z
2022-01-20T22:57:59.000Z
pylibftdi/examples/info.py
wrigby/pylibftdi
4662ebe069eefd5a89709d4165e3be808cad636c
[ "MIT" ]
8
2016-06-30T15:16:36.000Z
2022-01-31T12:36:37.000Z
""" Report environment info relevant to pylibftdi example usage:: $ python3 -m pylibftdi.examples.info pylibftdi version : 0.15.0 libftdi version : libftdi_version(major=1, minor=1, micro=0, version_str=b'1.1', snapshot_str=b'unknown') libftdi library path : /usr/local/lib/libftdi1.dylib ...
33.098039
122
0.668839
79640347e18b11f247d9240f17189bbc074832b6
1,835
py
Python
CS1/Ch07/madlibs_main.py
DoctorOac/SwosuCsPythonExamples
07476b9b4ef9a6f8bd68921aef19e8f00183b1e7
[ "Apache-2.0" ]
1
2022-03-28T18:27:10.000Z
2022-03-28T18:27:10.000Z
CS1/Ch07/madlibs_main.py
DoctorOac/SwosuCsPythonExamples
07476b9b4ef9a6f8bd68921aef19e8f00183b1e7
[ "Apache-2.0" ]
1
2022-01-11T16:27:40.000Z
2022-01-11T16:27:40.000Z
CS1/Ch07/madlibs_main.py
DoctorOac/SwosuCsPythonExamples
07476b9b4ef9a6f8bd68921aef19e8f00183b1e7
[ "Apache-2.0" ]
7
2022-03-25T21:01:42.000Z
2022-03-28T18:51:24.000Z
import questions_for_madlib print("hello from the main file of Mad Libs. ") print('ADJETIVE: a word or phrase naming',\ 'an attribute, added to or grammatically related',\ 'to a noun to modify or describe it.'\ 'The word red in "the red car" is an adjective.') print('NOUN: a word (other than a pronoun) used to',\ 'id...
39.042553
63
0.729155
7964036a89a815ab562fc9c101d0188b5654c02b
149
py
Python
DQM/L1TMonitor/python/L1GtHwValidation_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
DQM/L1TMonitor/python/L1GtHwValidation_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
DQM/L1TMonitor/python/L1GtHwValidation_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms from DQM.L1TMonitor.l1GtHwValidation_cfi import * from DQM.L1TMonitor.l1Stage1GtHwValidation_cfi import *
24.833333
55
0.852349
796403a66b350f0a7c2555dbbd2234a72d922e4b
9,801
py
Python
plugins/crypto.py
pingwindyktator/pybot
26641127b8e3e17cd864a6d78af2a0f650c3b484
[ "WTFPL" ]
13
2016-08-19T07:24:23.000Z
2019-04-10T23:53:44.000Z
plugins/crypto.py
pingwindyktator/pybot
26641127b8e3e17cd864a6d78af2a0f650c3b484
[ "WTFPL" ]
5
2018-02-09T11:26:23.000Z
2019-01-22T21:50:40.000Z
plugins/crypto.py
pingwindyktator/pybot
26641127b8e3e17cd864a6d78af2a0f650c3b484
[ "WTFPL" ]
10
2016-08-20T20:24:05.000Z
2019-01-15T20:11:23.000Z
import requests from datetime import timedelta from threading import Timer, Lock from plugin import * class crypto(plugin): def __init__(self, bot): super().__init__(bot) self.known_crypto_currencies = None self.convert_regex = re.compile(r'^([0-9]*\.?[0-9]*)\W*([A-Za-z]+)\W+(to|in)\W+([A...
42.613043
156
0.612489
796403c2e11b024e4a0c79aa923026d31194a4f9
311
py
Python
tktoolbox/examples/bindings/dblclick.py
modal/tktoolbox
bfb1c5166818bf0f0776a10598515b6ec00fc450
[ "Apache-2.0" ]
null
null
null
tktoolbox/examples/bindings/dblclick.py
modal/tktoolbox
bfb1c5166818bf0f0776a10598515b6ec00fc450
[ "Apache-2.0" ]
null
null
null
tktoolbox/examples/bindings/dblclick.py
modal/tktoolbox
bfb1c5166818bf0f0776a10598515b6ec00fc450
[ "Apache-2.0" ]
null
null
null
from tkinter import * def hello(event): print("Single Click, Button-l") def quit(event): print("Double Click, so let's stop") import sys; sys.exit() widget = Button(None, text='Mouse Clicks') widget.pack() widget.bind('<Button-1>', hello) widget.bind('<Double-1>', quit) widget.mainloop()
16.368421
42
0.659164
796405154728a74327984994f4d25c6724cb4703
3,604
py
Python
RSAExploits/exploits/common_factor.py
vik001ind/RSAexploits
3c54f0a5e7227a2ce3de801fc8bab74b1efe2e78
[ "MIT" ]
22
2015-06-05T14:58:27.000Z
2021-09-16T21:41:49.000Z
RSAExploits/exploits/common_factor.py
say2/RSAExploits
3c54f0a5e7227a2ce3de801fc8bab74b1efe2e78
[ "MIT" ]
1
2017-04-17T20:11:54.000Z
2017-04-17T20:11:54.000Z
RSAExploits/exploits/common_factor.py
say2/RSAExploits
3c54f0a5e7227a2ce3de801fc8bab74b1efe2e78
[ "MIT" ]
7
2017-04-08T12:47:11.000Z
2021-09-11T06:34:50.000Z
""" Class defintion for common factor exploit """ sage_present = True try: from sage.all_cmdline import * except ImportError: sage_present = False from RSAExploits.util import compute_priv_rsa_exp from fractions import gcd from RSAExploits.exploits.exploit import Exploit # Used to hopefully limit calls to sa...
34.653846
89
0.606826
79640562528ac1a79e66b3e20b506f40a226da2c
11,525
py
Python
models/image_recognition/tensorflow/resnet50/inference/eval_image_classifier_inference.py
manjeetbhatia/models
dcda7a9dfaaf9f21ecb9571ff9f5fe2e34f65ff3
[ "Apache-2.0" ]
null
null
null
models/image_recognition/tensorflow/resnet50/inference/eval_image_classifier_inference.py
manjeetbhatia/models
dcda7a9dfaaf9f21ecb9571ff9f5fe2e34f65ff3
[ "Apache-2.0" ]
null
null
null
models/image_recognition/tensorflow/resnet50/inference/eval_image_classifier_inference.py
manjeetbhatia/models
dcda7a9dfaaf9f21ecb9571ff9f5fe2e34f65ff3
[ "Apache-2.0" ]
null
null
null
# # -*- coding: utf-8 -*- # # Copyright (c) 2018 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
41.606498
167
0.643297
7964067c40d29c1e2e35355f0c6c83d8a349e4ff
17,110
py
Python
astropy/coordinates/tests/test_solar_system.py
JPVentura135/astropy
cb6588a246235d69f5ae929e27e8cc528faa038b
[ "BSD-3-Clause" ]
null
null
null
astropy/coordinates/tests/test_solar_system.py
JPVentura135/astropy
cb6588a246235d69f5ae929e27e8cc528faa038b
[ "BSD-3-Clause" ]
null
null
null
astropy/coordinates/tests/test_solar_system.py
JPVentura135/astropy
cb6588a246235d69f5ae929e27e8cc528faa038b
[ "BSD-3-Clause" ]
null
null
null
import pytest import numpy as np from urllib.error import HTTPError from astropy.time import Time from astropy import units as u from astropy.constants import c from astropy.coordinates.builtin_frames import GCRS from astropy.coordinates.earth import EarthLocation from astropy.coordinates.sky_coordinate import SkyCoo...
41.529126
97
0.650614
796406ac42bde9cd4aefbbf93692da343d499cad
1,920
py
Python
Using Databases with Python/Geodata/geodump.py
Karoline0097/University-of-Michigan-Python-for-Everybody
8b3999638c0c074ae3c1120de87cf8f31740ebb8
[ "MIT" ]
null
null
null
Using Databases with Python/Geodata/geodump.py
Karoline0097/University-of-Michigan-Python-for-Everybody
8b3999638c0c074ae3c1120de87cf8f31740ebb8
[ "MIT" ]
null
null
null
Using Databases with Python/Geodata/geodump.py
Karoline0097/University-of-Michigan-Python-for-Everybody
8b3999638c0c074ae3c1120de87cf8f31740ebb8
[ "MIT" ]
null
null
null
## STEP: READ DATA FROM DATABASE TO VISUALIZE IT ON A MAP # database: geodata.sqlite # Once you have some data loaded into geodata.sqlite, # you can visualize the data using the geodump.py program. import sqlite3 import json import codecs # connection to the database which checks access to the file geodata.sqlite # ...
29.090909
87
0.653125
7964071c18b9e6e98ca9dbe3b8103264e5b6a62c
7,467
py
Python
sdk/python/pulumi_azure_native/devices/certificate.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/devices/certificate.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/devices/certificate.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from .. import _utilities, _tables from ...
55.723881
2,302
0.691041
79640a6d8035a87838012c4b0e07a7b5c22d6c94
6,423
py
Python
app/api/v1/views/posts_views.py
Dave-mash/flask-blog-api
30a070020b1a784e71558bc0991246894dfeceed
[ "MIT" ]
1
2019-03-23T11:36:19.000Z
2019-03-23T11:36:19.000Z
app/api/v1/views/posts_views.py
Dave-mash/flask-blog-api
30a070020b1a784e71558bc0991246894dfeceed
[ "MIT" ]
null
null
null
app/api/v1/views/posts_views.py
Dave-mash/flask-blog-api
30a070020b1a784e71558bc0991246894dfeceed
[ "MIT" ]
null
null
null
""" This module sets up all the post endpoints Author: Dave """ from flask import request, jsonify, make_response, Blueprint, session from app.api.v1.utils.posts_validator import PostValidator from app.api.v1.models.posts import Post, AuthenticationRequired from app.api.v1.models.users import User, AuthenticationRequ...
32.604061
91
0.516114
79640a736fd4f5acecd5e851aa71edf3e9223178
2,858
py
Python
Day04/day04.py
FunkyCracky/AdventOfCode2021
2dca6b1a43dab022378b74bc725a1b4d1796f8aa
[ "MIT" ]
7
2021-12-01T13:04:41.000Z
2021-12-27T23:16:35.000Z
Day04/day04.py
FunkyCracky/AdventOfCode2021
2dca6b1a43dab022378b74bc725a1b4d1796f8aa
[ "MIT" ]
null
null
null
Day04/day04.py
FunkyCracky/AdventOfCode2021
2dca6b1a43dab022378b74bc725a1b4d1796f8aa
[ "MIT" ]
null
null
null
def process(lines): values = [int(x) for x in lines[0].split(",")] cards = [] cards_b = [] card = [] card_b = [] for line in lines[2:]: print(line) if line == "\n": cards.append(card) cards_b.append(card_b) card = [] card_b = [] ...
33.232558
63
0.435969
79640a9e7e1bb32e70c2c3aa107957d0b96fb477
6,389
py
Python
gobbli/test/experiment/test_classification_experiment.py
RTIInternational/gobbli
d9ec8132f74ce49dc4bead2fad25b661bcef6e76
[ "Apache-2.0" ]
276
2019-09-13T08:25:51.000Z
2022-03-05T13:07:55.000Z
gobbli/test/experiment/test_classification_experiment.py
RTIInternational/gobbli
d9ec8132f74ce49dc4bead2fad25b661bcef6e76
[ "Apache-2.0" ]
15
2019-09-06T14:05:30.000Z
2022-01-01T20:15:06.000Z
gobbli/test/experiment/test_classification_experiment.py
RTIInternational/gobbli
d9ec8132f74ce49dc4bead2fad25b661bcef6e76
[ "Apache-2.0" ]
24
2019-09-18T15:11:42.000Z
2021-12-23T18:59:55.000Z
import tempfile import warnings from pathlib import Path import pandas as pd import pytest from gobbli.dataset.cmu_movie_summary import MovieSummaryDataset from gobbli.dataset.newsgroups import NewsgroupsDataset from gobbli.experiment.classification import ( ClassificationExperiment, ClassificationExperimentR...
32.105528
90
0.655815
79640c022a0990b28a1bd31f63befa8a3c0dbdde
1,201
py
Python
xlsxwriter/test/comparison/test_fit_to_pages02.py
hugovk/XlsxWriter
e97cc66637d9895480ee32cfb5e561d652d3787b
[ "BSD-2-Clause" ]
null
null
null
xlsxwriter/test/comparison/test_fit_to_pages02.py
hugovk/XlsxWriter
e97cc66637d9895480ee32cfb5e561d652d3787b
[ "BSD-2-Clause" ]
null
null
null
xlsxwriter/test/comparison/test_fit_to_pages02.py
hugovk/XlsxWriter
e97cc66637d9895480ee32cfb5e561d652d3787b
[ "BSD-2-Clause" ]
null
null
null
############################################################################### # # Tests for XlsxWriter. # # SPDX-License-Identifier: BSD-2-Clause # Copyright (c), 2013-2022, John McNamara, jmcnamara@cpan.org # from ..excel_comparison_test import ExcelComparisonTest from ...workbook import Workbook class TestCompar...
27.930233
91
0.601166
79640cb54298cae3ae128c1163aa127513b50898
664
py
Python
commands/cmd_urban.py
cygnus-dev/python01
e0111ef7031f2c931d433d3dc6449c6740a7880e
[ "MIT" ]
null
null
null
commands/cmd_urban.py
cygnus-dev/python01
e0111ef7031f2c931d433d3dc6449c6740a7880e
[ "MIT" ]
4
2021-06-08T22:27:42.000Z
2022-03-12T00:51:07.000Z
commands/cmd_urban.py
cygnus-dev/python01
e0111ef7031f2c931d433d3dc6449c6740a7880e
[ "MIT" ]
null
null
null
import requests import discord URL = 'http://api.urbandictionary.com/v0/define?term=' async def run(ctx, word): r = requests.get(url=URL+word) data = r.json() if len(data['list']) > 0: define = data['list'][0] await embed(define, word, ctx) else: await ctx.send(f'```No resul...
23.714286
66
0.603916
79640f6e4ba963ac0fc463cbf686e22eda3285b3
189
py
Python
assistant/products/apps.py
kapiak/ware_prod
ae61256890834c434d2e38cc2ccacf00b638665a
[ "MIT" ]
null
null
null
assistant/products/apps.py
kapiak/ware_prod
ae61256890834c434d2e38cc2ccacf00b638665a
[ "MIT" ]
null
null
null
assistant/products/apps.py
kapiak/ware_prod
ae61256890834c434d2e38cc2ccacf00b638665a
[ "MIT" ]
null
null
null
from django.apps import AppConfig from django.utils.translation import gettext_lazy as _ class ProductsConfig(AppConfig): name = 'assistant.products' verbose_name = _("Products")
23.625
54
0.772487
79640ff5a30e12f16ef3f59c673ff322d3898519
22,634
py
Python
tests/test_index.py
cynricshu/faiss
138ac9022f296ee1e2af32f6954ddd8288e18bae
[ "MIT" ]
1
2021-01-22T04:50:10.000Z
2021-01-22T04:50:10.000Z
tests/test_index.py
stanleyjacob/faiss
908812266c4472b0ab07ac46a5a65635cdad8bb5
[ "MIT" ]
null
null
null
tests/test_index.py
stanleyjacob/faiss
908812266c4472b0ab07ac46a5a65635cdad8bb5
[ "MIT" ]
1
2021-04-08T08:54:58.000Z
2021-04-08T08:54:58.000Z
# 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. """this is a basic test script for simple indices work""" from __future__ import absolute_import, division, print_function # no unicode_litera...
28.869898
87
0.572502
796410c82e7fbfe85689fd49ba08bb4f4a81e917
9,207
py
Python
yolo.py
marcin-sielski/keras-yolo3
cbde1c8d7daf0c7f710d06d55535ed8fe6bded20
[ "MIT" ]
null
null
null
yolo.py
marcin-sielski/keras-yolo3
cbde1c8d7daf0c7f710d06d55535ed8fe6bded20
[ "MIT" ]
null
null
null
yolo.py
marcin-sielski/keras-yolo3
cbde1c8d7daf0c7f710d06d55535ed8fe6bded20
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Class definition of YOLO_v3 style detection model on image and video """ import colorsys import os from timeit import default_timer as timer import numpy as np from keras import backend as K from keras.models import load_model from keras.layers import Input from PIL import Image, ImageFont...
40.20524
106
0.595851
7964113f048a6579d8773d7bead25593895f87d9
106
py
Python
testargv.py
sanderroosendaal/rowingdata
efd8aa1566a926f11fb3f6b5b340665bc26028c4
[ "MIT" ]
4
2017-04-24T15:20:46.000Z
2021-02-12T23:03:29.000Z
testargv.py
sanderroosendaal/rowingdata
efd8aa1566a926f11fb3f6b5b340665bc26028c4
[ "MIT" ]
38
2016-11-02T07:57:50.000Z
2022-01-22T13:25:14.000Z
testargv.py
sanderroosendaal/rowingdata
efd8aa1566a926f11fb3f6b5b340665bc26028c4
[ "MIT" ]
6
2017-01-19T21:39:46.000Z
2021-11-16T14:48:58.000Z
from __future__ import absolute_import from __future__ import print_function import sys print((sys.argv))
21.2
38
0.849057
7964121d8f923077cbc6a41a311bd7161bf97aaa
526
py
Python
forseti/move.py
Rockbag/forseti
8b0158d51d90bc67a8f6a4d03b6b3a766fe2101d
[ "Apache-2.0" ]
null
null
null
forseti/move.py
Rockbag/forseti
8b0158d51d90bc67a8f6a4d03b6b3a766fe2101d
[ "Apache-2.0" ]
null
null
null
forseti/move.py
Rockbag/forseti
8b0158d51d90bc67a8f6a4d03b6b3a766fe2101d
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass @dataclass(order=True) class Move: """ High-level class that represent a move. Inherit from this to create specific moves that need to be checked against. Parameters: player_id: the id of the player making the move """ priority: int ...
21.916667
120
0.610266
79641239d5a650ea929537481aff7e601442626a
1,747
py
Python
django_soft_delete/models.py
yucealiosman/soft-delete
43e437c7fb7428c086721d42a907889f22fc8943
[ "MIT" ]
null
null
null
django_soft_delete/models.py
yucealiosman/soft-delete
43e437c7fb7428c086721d42a907889f22fc8943
[ "MIT" ]
null
null
null
django_soft_delete/models.py
yucealiosman/soft-delete
43e437c7fb7428c086721d42a907889f22fc8943
[ "MIT" ]
null
null
null
from django.db import models, router from .collector import DeleteCollector, UndeleteCollector from .managers import SoftDeletionManager class SoftDeletionModel(models.Model): created_at = models.DateTimeField(auto_now_add=True, null=True, blank=True) updated_at = models.DateTimeField(auto_now=True, null=Tru...
32.351852
79
0.669147
796412f4ac7a2310a49666cf8f9395fc9207f144
3,226
py
Python
utils.py
iglaweb/WallpaperFrame
4585dc19497bac72d8fb873c1954dfb6c460d9c0
[ "Apache-2.0" ]
1
2022-03-15T18:34:59.000Z
2022-03-15T18:34:59.000Z
utils.py
iglaweb/WallpaperFrame
4585dc19497bac72d8fb873c1954dfb6c460d9c0
[ "Apache-2.0" ]
null
null
null
utils.py
iglaweb/WallpaperFrame
4585dc19497bac72d8fb873c1954dfb6c460d9c0
[ "Apache-2.0" ]
null
null
null
import datetime as dt import hashlib import imghdr from os.path import join from urllib import request as ulreq from PIL import ImageFile, Image, ImageOps import download_utils import io_prefs import wallpaper_utils def should_update_wallpaper() -> bool: last_date_update = io_prefs.get_date_last_update_wallpape...
28.052174
72
0.655611
7964135dba5d7be444f839abf695ac50a281f805
2,003
py
Python
pyaz/policy/assignment/non_compliance_message/__init__.py
py-az-cli/py-az-cli
9a7dc44e360c096a5a2f15595353e9dad88a9792
[ "MIT" ]
null
null
null
pyaz/policy/assignment/non_compliance_message/__init__.py
py-az-cli/py-az-cli
9a7dc44e360c096a5a2f15595353e9dad88a9792
[ "MIT" ]
null
null
null
pyaz/policy/assignment/non_compliance_message/__init__.py
py-az-cli/py-az-cli
9a7dc44e360c096a5a2f15595353e9dad88a9792
[ "MIT" ]
1
2022-02-03T09:12:01.000Z
2022-02-03T09:12:01.000Z
from .... pyaz_utils import _call_az def create(message, name, policy_definition_reference_id=None, resource_group=None, scope=None): ''' Add a non-compliance message to a policy assignment. Required Parameters: - message -- Message that will be shown when a resource is denied by policy or evaluation ...
41.729167
143
0.735896
796413dab99100dd2d56c03f1399b37ef7c2bb6b
2,005
py
Python
data/flickr30k_imgfeat/merge_flickr30k_image.py
e-bug/mpre-unmasked
cd12250b58152a558e15a33113bf98d90b88e776
[ "MIT" ]
5
2020-12-08T12:38:48.000Z
2021-11-25T13:19:16.000Z
data/flickr30k_imgfeat/merge_flickr30k_image.py
e-bug/mpre-unmasked
cd12250b58152a558e15a33113bf98d90b88e776
[ "MIT" ]
null
null
null
data/flickr30k_imgfeat/merge_flickr30k_image.py
e-bug/mpre-unmasked
cd12250b58152a558e15a33113bf98d90b88e776
[ "MIT" ]
null
null
null
# !/usr/bin/env python import sys import argparse import csv from tqdm import tqdm csv.field_size_limit(sys.maxsize) FIELDNAMES = ["img_id", "img_h", "img_w", "objects_id", "objects_conf", "attrs_id", "attrs_conf", "num_boxes", "boxes", "features", "cls_prob", "attrs", "classes"] # Setti...
33.416667
98
0.60399
79641402d0b27b1697326f8cb660546e0917be14
448
py
Python
Serializacion/Serializacion.py
BrianMarquez3/Python-Course
2622b4ddfd687505becfd246e82a2ed0cb9b76f3
[ "MIT" ]
20
2020-08-19T23:27:01.000Z
2022-02-03T12:02:17.000Z
Serializacion/Serializacion.py
BrianMarquez3/Python-Course
2622b4ddfd687505becfd246e82a2ed0cb9b76f3
[ "MIT" ]
1
2021-04-10T18:06:05.000Z
2021-04-10T18:06:05.000Z
Serializacion/Serializacion.py
BrianMarquez3/Python-Course
2622b4ddfd687505becfd246e82a2ed0cb9b76f3
[ "MIT" ]
2
2020-12-03T19:35:36.000Z
2021-11-10T14:58:39.000Z
# Serializacion Colecciones # Guardar en fichero externo codificado en codigo binario "01010101010101010" # Se usa la biblioteca Pickle - se usa lo metodos: dump() y load() import pickle lista_Nombre= ["Brian", "Ana", "Maria", "Isabel"] fichero_binario=open("Lista_nombres","wb") # wb escrtura binaria #volcado de la...
26.352941
77
0.767857
7964143062ea2050538b39e61a865b0431587cf4
777
py
Python
appsettings/migrations/0001_initial.py
glzjin/webvirtcloud
ecaf11e02aeb57654257ed502d3da6fd8405f21b
[ "Apache-2.0" ]
null
null
null
appsettings/migrations/0001_initial.py
glzjin/webvirtcloud
ecaf11e02aeb57654257ed502d3da6fd8405f21b
[ "Apache-2.0" ]
null
null
null
appsettings/migrations/0001_initial.py
glzjin/webvirtcloud
ecaf11e02aeb57654257ed502d3da6fd8405f21b
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.2.12 on 2020-05-27 16:03 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='AppSettings', fields=[ ('id', models.AutoF...
29.884615
114
0.577864
79641565bb1e3eb1c79cbd833bb6eef1a83e4fcf
423
py
Python
jigsaw/migrations/0007_auto_20160316_1656.py
sxyu/Jiggly
af705453902b11d7bc1f298dce4698fdc9a470fe
[ "FSFAP" ]
3
2018-03-29T13:31:31.000Z
2022-02-26T04:49:40.000Z
jigsaw/migrations/0007_auto_20160316_1656.py
sxyu/Jiggly
af705453902b11d7bc1f298dce4698fdc9a470fe
[ "FSFAP" ]
null
null
null
jigsaw/migrations/0007_auto_20160316_1656.py
sxyu/Jiggly
af705453902b11d7bc1f298dce4698fdc9a470fe
[ "FSFAP" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.2 on 2016-03-16 23:56 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('jigsaw', '0006_auto_20160315_2315'), ] operations = [ migrations.RenameField( ...
20.142857
47
0.600473
7964157c875e89ea490cf8ff2d99a138db09a06c
2,160
py
Python
mitmproxy/ruamel/yaml/__init__.py
cloudskytian/Moxy-For-Genshin-Impact
1d7ab870b5329cc0765b940f36b4623fbfc45635
[ "MIT" ]
2
2021-11-28T12:47:01.000Z
2021-12-04T16:58:16.000Z
mitmproxy/ruamel/yaml/__init__.py
cloudskytian/Moxy-For-Genshin-Impact
1d7ab870b5329cc0765b940f36b4623fbfc45635
[ "MIT" ]
2
2021-12-04T12:51:07.000Z
2021-12-04T16:49:18.000Z
venv/lib/python3.9/site-packages/ruamel/yaml/__init__.py
ff888/Ski-Jumping-Database-Project
b36d7906295934ad910d23d7c10d4cafff2bda70
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import print_function, absolute_import, division, unicode_literals if False: # MYPY from typing import Dict, Any # NOQA _package_data = dict( full_package_name='ruamel.yaml', version_info=(0, 16, 13), __version__='0.16.13', author='Anthon van der Neut', autho...
36
151
0.640741
796417a8b0a916b2814f888bfe89c2721d348751
54
py
Python
__main__.py
lightyears1998/cross-eastward
82eb86b1b023b365b1e9fc35baf39c0af0ebc219
[ "MIT" ]
null
null
null
__main__.py
lightyears1998/cross-eastward
82eb86b1b023b365b1e9fc35baf39c0af0ebc219
[ "MIT" ]
null
null
null
__main__.py
lightyears1998/cross-eastward
82eb86b1b023b365b1e9fc35baf39c0af0ebc219
[ "MIT" ]
null
null
null
if __name__ == '__main__': print("Hello, world!")
18
26
0.611111
796417e97d6a7fa72201c1a8d5b68b358c909421
51,082
py
Python
swagger_client/apis/defect_api.py
rcbops/qtest-swagger-client
28220aa95d878922ca4b35c325706932adabea4e
[ "Apache-2.0" ]
1
2019-09-10T17:55:53.000Z
2019-09-10T17:55:53.000Z
swagger_client/apis/defect_api.py
rcbops/qtest-swagger-client
28220aa95d878922ca4b35c325706932adabea4e
[ "Apache-2.0" ]
null
null
null
swagger_client/apis/defect_api.py
rcbops/qtest-swagger-client
28220aa95d878922ca4b35c325706932adabea4e
[ "Apache-2.0" ]
2
2019-02-12T23:15:10.000Z
2022-03-11T20:08:28.000Z
# coding: utf-8 """ qTest Manager API Version 8.6 - 9.1 qTest Manager API Version 8.6 - 9.1 OpenAPI spec version: 8.6 - 9.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import sys import os import re # python 2...
48.281664
203
0.577268
79641806bcc1e59acde7d9ec437dc1b1a0146f8a
186
py
Python
order/app.py
zauddelig/celery-attrs-example
8b8bd95a99a26d9db5275612b7efd9311a5b67b1
[ "MIT" ]
null
null
null
order/app.py
zauddelig/celery-attrs-example
8b8bd95a99a26d9db5275612b7efd9311a5b67b1
[ "MIT" ]
null
null
null
order/app.py
zauddelig/celery-attrs-example
8b8bd95a99a26d9db5275612b7efd9311a5b67b1
[ "MIT" ]
null
null
null
from celery import Celery from event_manager.get_app import get_app from kombu import Exchange, Queue broker_url = 'amqp://rabbitmq:5672' app = get_app('producer', broker_url, tuple())
26.571429
46
0.784946
7964188b48e14dbfe5f7f59d161b12000d2917b2
65,430
py
Python
test/functional/feature_block.py
pjhwa/dogecoin
4fc6d6360af09f203aff6c827551cae60eb319cc
[ "MIT" ]
null
null
null
test/functional/feature_block.py
pjhwa/dogecoin
4fc6d6360af09f203aff6c827551cae60eb319cc
[ "MIT" ]
null
null
null
test/functional/feature_block.py
pjhwa/dogecoin
4fc6d6360af09f203aff6c827551cae60eb319cc
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-2020 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test block processing.""" import copy import struct import time from test_framework.blocktools import ...
45.948034
183
0.594391
7964193df4c803d4e4660473874bf2068e165c09
1,027
py
Python
setup.py
DariHernandez/merge_pdf
5aa0df950caee81d1a2c2709697f82472858b7ec
[ "MIT" ]
null
null
null
setup.py
DariHernandez/merge_pdf
5aa0df950caee81d1a2c2709697f82472858b7ec
[ "MIT" ]
null
null
null
setup.py
DariHernandez/merge_pdf
5aa0df950caee81d1a2c2709697f82472858b7ec
[ "MIT" ]
1
2021-06-23T19:46:42.000Z
2021-06-23T19:46:42.000Z
#! python3 import os from setuptools import setup, find_packages # read the contents of your README file this_directory = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(this_directory, 'README.md')) as f: long_description = f.read() setup ( name = "merge_pdf", version = "1.0.0", description...
35.413793
114
0.729309
79641a0086307b850512b0b9921f74672164e064
3,522
py
Python
ask-smapi-model/ask_smapi_model/v1/skill/validation_feature.py
alexa-labs/alexa-apis-for-python
52838be4f57ee1a2479402ea78b1247b56017942
[ "Apache-2.0" ]
90
2018-09-19T21:56:42.000Z
2022-03-30T11:25:21.000Z
ask-smapi-model/ask_smapi_model/v1/skill/validation_feature.py
ishitaojha/alexa-apis-for-python
a68f94b7a0e41f819595d6fe56e800403e8a4194
[ "Apache-2.0" ]
11
2018-09-23T12:16:48.000Z
2021-06-10T19:49:45.000Z
ask-smapi-model/ask_smapi_model/v1/skill/validation_feature.py
ishitaojha/alexa-apis-for-python
a68f94b7a0e41f819595d6fe56e800403e8a4194
[ "Apache-2.0" ]
28
2018-09-19T22:30:38.000Z
2022-02-22T22:57:07.000Z
# coding: utf-8 # # Copyright 2019 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "lice...
30.362069
96
0.577229
79641a16107c8c45d82a1f0d4289089b17fdd23b
5,073
py
Python
pelicanconf.py
HenryChenV/Spiritline
2fcea54886ba3945c3359ce9fa1a3f20257fa8b1
[ "MIT" ]
null
null
null
pelicanconf.py
HenryChenV/Spiritline
2fcea54886ba3945c3359ce9fa1a3f20257fa8b1
[ "MIT" ]
null
null
null
pelicanconf.py
HenryChenV/Spiritline
2fcea54886ba3945c3359ce9fa1a3f20257fa8b1
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # from __future__ import unicode_literals AUTHOR = u'henry' SITENAME = u"Henry's SpiritLine" SITEURL = 'http://localhost:8000' DISQUS_SITENAME = "spiritline" # PATH = 'content' TIMEZONE = 'Asia/Shanghai' DEFAULT_LANG = u'zh_CN' # DEFAULT_DATE_FORMAT = ('%Y-%m-%d (%A) %H...
27.721311
79
0.68697
79641a53703ccc98fd26d8711c5e501ae6b51a0e
1,091
py
Python
tests/test_plugin/__init__.py
AntoineD/pytest-executable
476b978a4848c04f60b5de51231fb96de0aef484
[ "Apache-2.0" ]
null
null
null
tests/test_plugin/__init__.py
AntoineD/pytest-executable
476b978a4848c04f60b5de51231fb96de0aef484
[ "Apache-2.0" ]
null
null
null
tests/test_plugin/__init__.py
AntoineD/pytest-executable
476b978a4848c04f60b5de51231fb96de0aef484
[ "Apache-2.0" ]
null
null
null
# Copyright 2020, CS Systemes d'Information, http://www.c-s.fr # # This file is part of pytest-executable # https://www.github.com/CS-SI/pytest-executable # # 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...
40.407407
75
0.743355
79641a868731a63e96163c4716c23ae608794713
22,172
py
Python
wsl_windows_toolbar.py
jericson/wsl-windows-toolbar-launcher
eec7492d01840ed53dd77c4e5f7de307eafd10ed
[ "MIT" ]
1,164
2020-03-09T14:45:28.000Z
2022-03-29T13:15:22.000Z
wsl_windows_toolbar.py
jericson/wsl-windows-toolbar-launcher
eec7492d01840ed53dd77c4e5f7de307eafd10ed
[ "MIT" ]
45
2020-03-18T22:30:42.000Z
2022-03-12T13:01:08.000Z
wsl_windows_toolbar.py
jericson/wsl-windows-toolbar-launcher
eec7492d01840ed53dd77c4e5f7de307eafd10ed
[ "MIT" ]
53
2020-03-09T14:45:40.000Z
2022-02-17T08:21:50.000Z
#!/usr/bin/env python3 import os import logging import shutil import subprocess import sys import glob import magic from platform import uname import click from PIL import Image # Set up default logging format and level import xdg.Menu import xdg.IconTheme from click import confirm from jinja2 import Environment, Pack...
40.533821
120
0.628721
79641b64c40bd9b5b6e6e6a5963d79e4fba10a8f
11,060
py
Python
kibble/api/pages/org/members.py
midhun1998/kibble
d7f9031dfd93a2efd676fcbd59443feec01df6ed
[ "Apache-2.0" ]
null
null
null
kibble/api/pages/org/members.py
midhun1998/kibble
d7f9031dfd93a2efd676fcbd59443feec01df6ed
[ "Apache-2.0" ]
null
null
null
kibble/api/pages/org/members.py
midhun1998/kibble
d7f9031dfd93a2efd676fcbd59443feec01df6ed
[ "Apache-2.0" ]
null
null
null
# 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"); you may not u...
34.670846
87
0.506239
79641c90da5aebc49d1c7eba2821e0921bbf44e5
464
py
Python
src/tools/is_cuda_working.py
KirillPushkarev/valuenet
54ff6351e55d0b7c74b3d9db9ea8f686e3d855d9
[ "Apache-2.0" ]
43
2020-06-01T03:05:52.000Z
2022-01-20T05:35:17.000Z
src/tools/is_cuda_working.py
KirillPushkarev/valuenet
54ff6351e55d0b7c74b3d9db9ea8f686e3d855d9
[ "Apache-2.0" ]
29
2020-06-01T16:10:26.000Z
2022-03-12T00:41:20.000Z
src/tools/is_cuda_working.py
KirillPushkarev/valuenet
54ff6351e55d0b7c74b3d9db9ea8f686e3d855d9
[ "Apache-2.0" ]
19
2020-06-17T15:03:34.000Z
2022-01-19T09:03:36.000Z
# setting device on GPU if available, else CPU import torch device = torch.device('cuda' if torch.cuda.is_available() else 'cpu') print('Using device:', device) print() # Additional Info when using cuda if device.type == 'cuda': print(torch.cuda.get_device_name(0)) print('Memory Usage:') print('Allocated:...
33.142857
83
0.676724
79641e725760ebc4c3c199d83997a0e293fb520f
128
py
Python
_self_practice/3.py
r2d2c3p0/python-ruby
a0036e77f74f62c432460f5984f9a914c6f51c52
[ "MIT" ]
1
2016-09-05T09:37:14.000Z
2016-09-05T09:37:14.000Z
_self_practice/3.py
r2d2c3p0/Python-Ruby
a0036e77f74f62c432460f5984f9a914c6f51c52
[ "MIT" ]
null
null
null
_self_practice/3.py
r2d2c3p0/Python-Ruby
a0036e77f74f62c432460f5984f9a914c6f51c52
[ "MIT" ]
1
2021-12-09T14:45:01.000Z
2021-12-09T14:45:01.000Z
def fact(x): if x == 0: return 1 return x * fact(x - 1) x=int(input("Enter a number:")) print (fact(x))
16
32
0.492188
79641fa9b677dcff91574d4f2d6b074184233587
8,580
py
Python
aiida/orm/implementation/django/nodes.py
unkcpz/aiida_core
bb92dd56cc1bba142df2c48f1a73ca6b809568dc
[ "MIT", "BSD-3-Clause" ]
null
null
null
aiida/orm/implementation/django/nodes.py
unkcpz/aiida_core
bb92dd56cc1bba142df2c48f1a73ca6b809568dc
[ "MIT", "BSD-3-Clause" ]
1
2022-02-18T16:09:53.000Z
2022-02-18T16:09:53.000Z
aiida/orm/implementation/django/nodes.py
unkcpz/aiida_core
bb92dd56cc1bba142df2c48f1a73ca6b809568dc
[ "MIT", "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
34.047619
126
0.633916
79641fbb5d6216ac5ba6fe92a117932412a9c841
18,175
py
Python
run_alphafold.py
usbulat/alphafold
9d5377ba42282ec430145cba19d3a5a5aabf10bb
[ "Apache-2.0" ]
null
null
null
run_alphafold.py
usbulat/alphafold
9d5377ba42282ec430145cba19d3a5a5aabf10bb
[ "Apache-2.0" ]
null
null
null
run_alphafold.py
usbulat/alphafold
9d5377ba42282ec430145cba19d3a5a5aabf10bb
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 DeepMind Technologies Limited # # 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...
41.87788
100
0.704429
796421538e17c7b1b2dd861fd5ae4b919f4046e7
381
py
Python
238-product-of-array-except-self/238-product-of-array-except-self.py
MayaScarlet/leetcode-python
8ef0c5cadf2e975957085c0ef84a8c3d90a64b6a
[ "MIT" ]
null
null
null
238-product-of-array-except-self/238-product-of-array-except-self.py
MayaScarlet/leetcode-python
8ef0c5cadf2e975957085c0ef84a8c3d90a64b6a
[ "MIT" ]
null
null
null
238-product-of-array-except-self/238-product-of-array-except-self.py
MayaScarlet/leetcode-python
8ef0c5cadf2e975957085c0ef84a8c3d90a64b6a
[ "MIT" ]
null
null
null
class Solution: def productExceptSelf(self, nums: List[int]) -> List[int]: output = nums[:] output[0] = 1 p = 1 s = 1 for i in range(len(nums)-1): p *= nums[i] output[i+1] = p for j in range(len(nums)-1, 0, -1): s ...
25.4
62
0.417323
7964218df49b6bfbb4a9d25a74e50c9c0b829659
1,098
py
Python
test/script/bert_pas.py
emorynlp/bert-2018
228b2046d92084ea3cd7c900c1d8af1f0a925cfe
[ "Apache-2.0" ]
17
2019-08-15T01:49:10.000Z
2022-03-28T19:12:04.000Z
test/script/bert_pas.py
emorynlp/bert-2018
228b2046d92084ea3cd7c900c1d8af1f0a925cfe
[ "Apache-2.0" ]
2
2020-09-09T02:30:23.000Z
2022-03-28T19:57:21.000Z
test/script/bert_pas.py
emorynlp/bert-2018
228b2046d92084ea3cd7c900c1d8af1f0a925cfe
[ "Apache-2.0" ]
1
2020-03-12T03:41:13.000Z
2020-03-12T03:41:13.000Z
# coding: utf-8 import pickle from bertsota.common.data import ParserVocabulary, DataLoader from bertsota.common.utils import init_logger from bertsota.parser.dep_parser import SDPParser if __name__ == '__main__': save_dir = 'data/model/bert-pas4' parser = SDPParser() parser.train(train_file='data/semeval...
47.73913
88
0.684882
79642299135c9d85b8da040d2084ceadfaac4532
3,292
py
Python
setup.py
drewj-usnctech/armi
47d3cc77b3f24540fcf6ae56be6c0e34b397604e
[ "Apache-2.0" ]
null
null
null
setup.py
drewj-usnctech/armi
47d3cc77b3f24540fcf6ae56be6c0e34b397604e
[ "Apache-2.0" ]
null
null
null
setup.py
drewj-usnctech/armi
47d3cc77b3f24540fcf6ae56be6c0e34b397604e
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 TerraPower, 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 agreed to in writi...
29.927273
86
0.588092
7964238a4f2d83aced22e59890877e61923e5c06
11,796
py
Python
Boilermake2018/Lib/site-packages/nltk/corpus/reader/comparative_sents.py
TejPatel98/voice_your_professional_email
9cc48f7bcd6576a6962711755e5d5d485832128c
[ "CC0-1.0" ]
69
2020-03-31T06:40:17.000Z
2022-02-25T11:48:18.000Z
Boilermake2018/Lib/site-packages/nltk/corpus/reader/comparative_sents.py
TejPatel98/voice_your_professional_email
9cc48f7bcd6576a6962711755e5d5d485832128c
[ "CC0-1.0" ]
11
2019-12-26T17:21:03.000Z
2022-03-21T22:17:07.000Z
Boilermake2018/Lib/site-packages/nltk/corpus/reader/comparative_sents.py
TejPatel98/voice_your_professional_email
9cc48f7bcd6576a6962711755e5d5d485832128c
[ "CC0-1.0" ]
28
2020-04-15T15:24:17.000Z
2021-12-26T04:05:02.000Z
# Natural Language Toolkit: Comparative Sentence Corpus Reader # # Copyright (C) 2001-2018 NLTK Project # Author: Pierpaolo Pantone <24alsecondo@gmail.com> # URL: <http://nltk.org/> # For license information, see LICENSE.TXT """ CorpusReader for the Comparative Sentence Dataset. - Comparative Sentence Dataset informa...
41.978648
92
0.599356
796425973325f9bd33cc0d83930411fa34f4515d
876
py
Python
raspberry/integration.py
idf/Robot-In-Maze
2301021c39f36a01ff97af26c54d41fedbe1608c
[ "MIT" ]
16
2015-04-04T15:26:01.000Z
2019-10-15T16:13:03.000Z
raspberry/integration.py
idf/Robot-In-Maze
2301021c39f36a01ff97af26c54d41fedbe1608c
[ "MIT" ]
null
null
null
raspberry/integration.py
idf/Robot-In-Maze
2301021c39f36a01ff97af26c54d41fedbe1608c
[ "MIT" ]
7
2015-10-12T21:23:12.000Z
2021-10-13T02:41:25.000Z
from bluetooth_communication import * from pc_communication import PcThread, PcExploreRunThread from serial_comminication import * __author__ = 'Danyang' if __name__=="__main__": # shared resources serial_api = SerialAPI() android_api = AndroidAPI(serial_api) # threads android_thread = AndroidTh...
36.5
111
0.77968
796425dadeb6a2f7d8b40c07d21481ec72490b8a
890
py
Python
insta/urls.py
iankabugi/instaclone
c1948fce71881a4e8004cfe117f6c48ba49faf53
[ "MIT" ]
null
null
null
insta/urls.py
iankabugi/instaclone
c1948fce71881a4e8004cfe117f6c48ba49faf53
[ "MIT" ]
null
null
null
insta/urls.py
iankabugi/instaclone
c1948fce71881a4e8004cfe117f6c48ba49faf53
[ "MIT" ]
null
null
null
from django.conf.urls import url from . import views from django.conf import settings from django.conf.urls.static import static urlpatterns = [ url('^$', views.index, name='indexpage'), url(r'^profile/',views.profile,name ='profile'), url(r'^user/(\d+)$', views.profile, name='profile'), url(r'^viewpro...
42.380952
77
0.647191
796425e7b3e6e5822de19cbb100149c7e37b929f
6,591
py
Python
detectron2/export/api.py
Shun14/detectron2-ResNeSt
cda53a237199da3bbe7526d41c41b9d8df4c4814
[ "Apache-2.0" ]
344
2020-04-18T18:33:33.000Z
2020-12-04T08:34:30.000Z
detectron2/export/api.py
ZhanqiZhang66/detectron2
be0d7283297f6314c8e683e0d1ff80b668aa9f4a
[ "Apache-2.0" ]
40
2020-05-20T23:45:21.000Z
2020-11-30T04:46:45.000Z
detectron2/export/api.py
ZhanqiZhang66/detectron2
be0d7283297f6314c8e683e0d1ff80b668aa9f4a
[ "Apache-2.0" ]
66
2020-04-20T08:30:49.000Z
2020-12-06T12:55:12.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import copy import logging import os from caffe2.proto import caffe2_pb2 from torch import nn from detectron2.config import CfgNode as CN from .caffe2_export import export_caffe2_detection_model from .caffe2_export import export_onnx_model as exp...
36.214286
98
0.666515
796426b49196926bedadc6ed6f6b9fc73bc864a8
736
py
Python
kubernetes/docker_dev/my_setting.py
gentlehus/myblog
fa645440bdf958462ee86fab51f4bfd4e0e22bb6
[ "MIT" ]
null
null
null
kubernetes/docker_dev/my_setting.py
gentlehus/myblog
fa645440bdf958462ee86fab51f4bfd4e0e22bb6
[ "MIT" ]
null
null
null
kubernetes/docker_dev/my_setting.py
gentlehus/myblog
fa645440bdf958462ee86fab51f4bfd4e0e22bb6
[ "MIT" ]
null
null
null
# extra configuraion for my project ALLOWED_HOSTS = ['*'] import os import subprocess DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': os.environ.get('DB_NAME'), 'USER': os.environ.get('DB_USER_NAME', 'apiadmin'), 'PASSWORD': os.environ.get('DB_USER_PASS', 'a...
23.741935
67
0.572011
796426cfae621bfd593663d232380e26927fd4d6
26,416
py
Python
mmdet/models/dense_heads/yolo_head.py
liujiaxing7/mmdetection
ca1def4bf01aaad59768f94c47cd89fd92b36167
[ "Apache-2.0" ]
null
null
null
mmdet/models/dense_heads/yolo_head.py
liujiaxing7/mmdetection
ca1def4bf01aaad59768f94c47cd89fd92b36167
[ "Apache-2.0" ]
null
null
null
mmdet/models/dense_heads/yolo_head.py
liujiaxing7/mmdetection
ca1def4bf01aaad59768f94c47cd89fd92b36167
[ "Apache-2.0" ]
null
null
null
# Copyright (c) OpenMMLab. All rights reserved. # Copyright (c) 2019 Western Digital Corporation or its affiliates. import warnings import torch import torch.nn as nn import torch.nn.functional as F from mmcv.cnn import (ConvModule, bias_init_with_prob, constant_init, is_norm, normal_init) from ...
42.469453
106
0.581428
7964270438237046e543a5cb11ce78734b07ac65
2,723
py
Python
lib/python/treadmill/console.py
drienyov/treadmill
ce21537cd9a2fdb0567ac2aa3de1afcb2f6861de
[ "Apache-2.0" ]
1
2019-04-14T20:17:07.000Z
2019-04-14T20:17:07.000Z
lib/python/treadmill/console.py
drienyov/treadmill
ce21537cd9a2fdb0567ac2aa3de1afcb2f6861de
[ "Apache-2.0" ]
null
null
null
lib/python/treadmill/console.py
drienyov/treadmill
ce21537cd9a2fdb0567ac2aa3de1afcb2f6861de
[ "Apache-2.0" ]
null
null
null
"""Treadmill module main entry point. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import logging import logging.config import click from treadmill import cli from treadmill import logging as tl # Disable cl...
34.468354
78
0.645611
7964272e0eddb1c229e77fda32f31d62d2098bea
2,579
py
Python
molecule/platforms.py
dericcrago/molecule
cb4dec0a7d4993395f123b2c9b0590d41e9dd557
[ "MIT" ]
null
null
null
molecule/platforms.py
dericcrago/molecule
cb4dec0a7d4993395f123b2c9b0590d41e9dd557
[ "MIT" ]
null
null
null
molecule/platforms.py
dericcrago/molecule
cb4dec0a7d4993395f123b2c9b0590d41e9dd557
[ "MIT" ]
null
null
null
# Copyright (c) 2015-2018 Cisco Systems, Inc. # # 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...
30.341176
79
0.658007
79642762400b009cd1f3c6339898d50e65b95e1f
16,970
py
Python
bindings/gumjs/generate-runtime.py
mephi42/frida-gum
ae55b10555eb97a34a645c1d935a463845f136ff
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
bindings/gumjs/generate-runtime.py
mephi42/frida-gum
ae55b10555eb97a34a645c1d935a463845f136ff
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
bindings/gumjs/generate-runtime.py
mephi42/frida-gum
ae55b10555eb97a34a645c1d935a463845f136ff
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 from __future__ import unicode_literals, print_function from base64 import b64decode import codecs import json import os import platform import re import subprocess import sys def generate_runtime_quick(runtime_name, output_dir, output, input_dir, inputs): with codecs.open(os.path.join(out...
39.465116
179
0.609134