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
df510fee15f464eb07de44de61a48520f61083c1
387
py
Python
users/wsgi.py
mrm1415/users
eac1ae65460a9a020de5b7113c7e476f8c6e4243
[ "MIT" ]
null
null
null
users/wsgi.py
mrm1415/users
eac1ae65460a9a020de5b7113c7e476f8c6e4243
[ "MIT" ]
null
null
null
users/wsgi.py
mrm1415/users
eac1ae65460a9a020de5b7113c7e476f8c6e4243
[ "MIT" ]
null
null
null
""" WSGI config for users 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/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTING...
22.764706
78
0.782946
28a123e507d5ef83fff4becae43b595e21be4a43
31
py
Python
pyaztro/__init__.py
sameerkumar18/pyaztro
508f60ab58eba51eef863f0e7aaeade6bc960041
[ "Apache-2.0" ]
16
2018-10-07T05:09:39.000Z
2022-01-23T14:50:24.000Z
pyaztro/__init__.py
SeraphDosSantos/pyaztro
9f433682f1da0b9fbeb5836d4dcae81321fd65a8
[ "Apache-2.0" ]
4
2018-10-09T15:55:58.000Z
2019-08-03T13:46:13.000Z
pyaztro/__init__.py
SeraphDosSantos/pyaztro
9f433682f1da0b9fbeb5836d4dcae81321fd65a8
[ "Apache-2.0" ]
8
2018-10-09T17:50:14.000Z
2022-01-23T14:50:13.000Z
from pyaztro.aztro import Aztro
31
31
0.870968
991efed146f5a85d01bc24bbb93f2988f2bb3429
4,067
py
Python
apps/sales/views/sales.py
jorgesaw/kstore
4ec6612eeeb96edb7b7bd374fd0520733c58451c
[ "MIT" ]
null
null
null
apps/sales/views/sales.py
jorgesaw/kstore
4ec6612eeeb96edb7b7bd374fd0520733c58451c
[ "MIT" ]
5
2021-03-19T10:16:00.000Z
2022-02-10T09:16:32.000Z
apps/sales/views/sales.py
jorgesaw/kstore
4ec6612eeeb96edb7b7bd374fd0520733c58451c
[ "MIT" ]
null
null
null
"""Sales views.""" # Django from django.conf import settings from django.contrib.admin.views.decorators import staff_member_required from django.shortcuts import redirect from django.db import transaction from django.urls import reverse, reverse_lazy from django.utils.decorators import method_decorator # Dj...
28.640845
99
0.659454
c5680dfc593e0e8244ebb3137001f60bc41ddc98
9,546
py
Python
src/test_create_urls.py
simeongbolo/sfn-callback-urls
72816b2eca1c032242bc972234f008913ffd24e8
[ "Apache-2.0" ]
49
2019-05-27T19:42:25.000Z
2022-02-26T13:50:21.000Z
src/test_create_urls.py
badmojo76/sfn-callback-urls
14d5114f972b680e437eb4774a27f1cb36e9adf5
[ "Apache-2.0" ]
13
2019-06-03T16:09:32.000Z
2021-06-01T23:47:17.000Z
src/test_create_urls.py
badmojo76/sfn-callback-urls
14d5114f972b680e437eb4774a27f1cb36e9adf5
[ "Apache-2.0" ]
15
2019-05-28T20:51:03.000Z
2021-11-06T19:28:37.000Z
# Copyright 2019 Ben Kehoe # # 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...
22.837321
82
0.525246
e48ec3070e417f05cace637e8274d17c5352b523
1,980
py
Python
c3d/builder.py
failyang/tensorflow-examples
48da6cd25138d448a4ddf7710e8abab0392c453c
[ "MIT" ]
null
null
null
c3d/builder.py
failyang/tensorflow-examples
48da6cd25138d448a4ddf7710e8abab0392c453c
[ "MIT" ]
null
null
null
c3d/builder.py
failyang/tensorflow-examples
48da6cd25138d448a4ddf7710e8abab0392c453c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # from tensorflow.keras.applications import inception_v3,mobilenet,vgg16,resnet50 from model import c3d from data_gen import DataGen class ModelBuilder(): def __init__(self, config): self.config = config self.preprocess_input = None def build_mode...
42.12766
94
0.639899
2378dcc3419d8b672794b8c33d7cdde9980bb339
1,432
py
Python
op.py
gustavocperez/Python-py
75fbd877d44cc0c70aafaa854dd722b806f9b616
[ "MIT" ]
null
null
null
op.py
gustavocperez/Python-py
75fbd877d44cc0c70aafaa854dd722b806f9b616
[ "MIT" ]
null
null
null
op.py
gustavocperez/Python-py
75fbd877d44cc0c70aafaa854dd722b806f9b616
[ "MIT" ]
null
null
null
from datetime import date custoop1 = [("Janeiro",0.45),("Fevereiro",0.43),("Março",0.43),("Abril",0.43),("Maio",0.413)] meses = [(1,31,1,0.45),(1,28,2,0.43),(1,31,3,0.43),(1,30,4,0.43),(1,31,5,0.413)] j = 0 op = 0 opplus = 0 custoop = 0 dias = 0 diaini = int(input("Digite o dia de entrada")) mesini = int(input("Dig...
26.036364
97
0.542598
b230bac9a350dbf2262570fb12c80a8bf0ca6402
480
py
Python
programming/dsame/trees/LevelOrderReverseIterative.py
vamsitallapudi/Coderefer-Python-Projects
a7acc682251661e296c64533f4a85d47e6eedda2
[ "Apache-2.0" ]
1
2021-01-03T06:42:58.000Z
2021-01-03T06:42:58.000Z
programming/dsame/trees/LevelOrderReverseIterative.py
vamsitallapudi/Coderefer-Python-Projects
a7acc682251661e296c64533f4a85d47e6eedda2
[ "Apache-2.0" ]
null
null
null
programming/dsame/trees/LevelOrderReverseIterative.py
vamsitallapudi/Coderefer-Python-Projects
a7acc682251661e296c64533f4a85d47e6eedda2
[ "Apache-2.0" ]
null
null
null
from dsame.trees.BinaryTreeNode import * def level_order_reverse(root: BinaryTreeNode): if not root: return stack = [root] while len(stack): temp = stack[len(stack)-1] if not temp.left and not temp.right: break if temp.right: stack.append(temp.right)...
21.818182
46
0.60625
9c454df4923d3b437b0a4761a4e0827d43badf32
7,320
py
Python
tests/conftest.py
verhyppo/nexus3-cli
d74a9cf5e7412c5f61ba7bfb5a74710f67463c26
[ "MIT" ]
null
null
null
tests/conftest.py
verhyppo/nexus3-cli
d74a9cf5e7412c5f61ba7bfb5a74710f67463c26
[ "MIT" ]
null
null
null
tests/conftest.py
verhyppo/nexus3-cli
d74a9cf5e7412c5f61ba7bfb5a74710f67463c26
[ "MIT" ]
null
null
null
import os import pathlib import pytest import shutil import tempfile import time from faker import Faker from subprocess import check_call from nexuscli.nexus_client import NexusClient from nexuscli.nexus_config import NexusConfig APT_GPG_KEY_PATH = pathlib.Path('tests/fixtures/apt/private.gpg.key') @pytest.fixtur...
25.774648
77
0.627732
cb83aa33dc5e1ced6e1523f86c6ed2d9ed1d7ce8
1,418
py
Python
generate_skillet_snippets.py
scotchoaf/SkilletBuilder
ac2d64cb4072e6933aefa33017709c1e5d749bcb
[ "MIT" ]
null
null
null
generate_skillet_snippets.py
scotchoaf/SkilletBuilder
ac2d64cb4072e6933aefa33017709c1e5d749bcb
[ "MIT" ]
1
2021-03-31T19:46:14.000Z
2021-03-31T19:46:14.000Z
generate_skillet_snippets.py
scotchoaf/SkilletBuilder
ac2d64cb4072e6933aefa33017709c1e5d749bcb
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # This example uses ENV variables to gather input from the user # The .meta-cnc file defines 3 input variables: # USERNAME, PASSWORD, SECRET # This script shows how to obtain the values entered from the user # import json import os import sys from skilletlib.exceptions import LoginException fr...
28.938776
92
0.732017
4a3ac20ae38c367b15bf3dad93678e404aa94fce
2,464
py
Python
tests/test_pipeline_builder.py
milesgranger/fresh
c7491373c454fb28542d6aabbc26a507fbdee245
[ "MIT" ]
null
null
null
tests/test_pipeline_builder.py
milesgranger/fresh
c7491373c454fb28542d6aabbc26a507fbdee245
[ "MIT" ]
9
2018-06-24T17:50:55.000Z
2018-06-24T18:08:54.000Z
tests/test_pipeline_builder.py
milesgranger/fresh
c7491373c454fb28542d6aabbc26a507fbdee245
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import unittest import logging import numpy as np import pandas as pd from fresh.pipeline import PipeBuilder logger = logging.getLogger(__name__) class PipelineBuilderTestCase(unittest.TestCase): """ Test specific expected functionality of the pipeline.PipeBuilder class """ ...
41.066667
118
0.594562
b88245ac9a5b14edec9a9cb3506b18b61ac0ad0c
2,645
py
Python
homeassistant/components/device_tracker/gpslogger.py
EmitKiwi/home-assistant
0999e2ddc476f4bddf710005168b082f03a7cdc0
[ "Apache-2.0" ]
4
2019-05-14T20:33:43.000Z
2021-09-25T14:56:08.000Z
homeassistant/components/device_tracker/gpslogger.py
EmitKiwi/home-assistant
0999e2ddc476f4bddf710005168b082f03a7cdc0
[ "Apache-2.0" ]
1
2021-02-08T20:56:06.000Z
2021-02-08T20:56:06.000Z
homeassistant/components/device_tracker/gpslogger.py
EmitKiwi/home-assistant
0999e2ddc476f4bddf710005168b082f03a7cdc0
[ "Apache-2.0" ]
1
2019-09-15T04:45:12.000Z
2019-09-15T04:45:12.000Z
""" Support for the GPSLogger platform. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/device_tracker.gpslogger/ """ import asyncio from functools import partial import logging from homeassistant.const import HTTP_UNPROCESSABLE_ENTITY from homeassistant...
31.117647
74
0.627977
4846f592d40b7af23721d845270dc79c131c83d6
604
py
Python
intro-to-bokeh/code-snippets/east-west-tabbed-layout.py
syberflea/materials
54f44725b40edf00c1b523d7a85b34a85014d7eb
[ "MIT" ]
3,682
2018-05-07T19:45:24.000Z
2022-03-31T15:19:10.000Z
intro-to-bokeh/code-snippets/east-west-tabbed-layout.py
sribarrow/materials
c17c4a4d6f8487e59eac1df8c88ca92b73d6d2a5
[ "MIT" ]
148
2018-05-15T21:18:49.000Z
2022-03-21T11:25:39.000Z
intro-to-bokeh/code-snippets/east-west-tabbed-layout.py
sribarrow/materials
c17c4a4d6f8487e59eac1df8c88ca92b73d6d2a5
[ "MIT" ]
5,535
2018-05-25T23:36:08.000Z
2022-03-31T16:55:52.000Z
# Bokeh Library from bokeh.io import output_file from bokeh.models.widgets import Tabs, Panel # Output to file output_file( "east-west-top-2-tabbed_layout.html", title="Conference Top 2 Teams Wins Race", ) # Increase the plot widths east_fig.plot_width = west_fig.plot_width = 800 # noqa # Create two panels,...
26.26087
70
0.748344
0550bb618a746553eba239405f5fb78c2408c873
12,299
py
Python
sdk/eventhub/azure-eventhubs/azure/eventhub/consumer.py
hytao/azure-sdk-for-python
382994348b289d4cb90dc74e2ddc9fadc7c5824d
[ "MIT" ]
null
null
null
sdk/eventhub/azure-eventhubs/azure/eventhub/consumer.py
hytao/azure-sdk-for-python
382994348b289d4cb90dc74e2ddc9fadc7c5824d
[ "MIT" ]
null
null
null
sdk/eventhub/azure-eventhubs/azure/eventhub/consumer.py
hytao/azure-sdk-for-python
382994348b289d4cb90dc74e2ddc9fadc7c5824d
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
48.231373
153
0.678998
9d51aea216335a2a9e6cead3c8d0adf0f05c243c
480
py
Python
user/migrations/0002_teamuser_user_permission.py
langliu/flower-back-end
1df64cb2dc3572cbf8423e21d75b3fcbfe20820c
[ "Apache-2.0" ]
null
null
null
user/migrations/0002_teamuser_user_permission.py
langliu/flower-back-end
1df64cb2dc3572cbf8423e21d75b3fcbfe20820c
[ "Apache-2.0" ]
null
null
null
user/migrations/0002_teamuser_user_permission.py
langliu/flower-back-end
1df64cb2dc3572cbf8423e21d75b3fcbfe20820c
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.0.5 on 2018-05-10 06:31 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('user', '0001_initial'), ] operations = [ migrations.AddField( model_name='teamuser', name='user_permission', ...
25.263158
149
0.597917
aea996f1271e92b320b89deca4cd2326398ae98a
1,724
py
Python
app/user/serializers.py
kate-ka/recipe-app-api
3bf200a3477132eda311ac2e15ab9c386b7db82a
[ "MIT" ]
null
null
null
app/user/serializers.py
kate-ka/recipe-app-api
3bf200a3477132eda311ac2e15ab9c386b7db82a
[ "MIT" ]
null
null
null
app/user/serializers.py
kate-ka/recipe-app-api
3bf200a3477132eda311ac2e15ab9c386b7db82a
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model, authenticate from django.utils.translation import ugettext_lazy as _ from rest_framework import serializers class UserSerializer(serializers.ModelSerializer): """Serializer for the usrs object""" class Meta: model = get_user_model() fields = ('...
32.528302
74
0.647332
9c643fe51efa55c9a547c2eaf2b0368d94458f73
3,734
py
Python
Demo/scripts/ftpstats.py
AtjonTV/Python-1.4
2a80562c5a163490f444181cb75ca1b3089759ec
[ "Unlicense", "TCL", "DOC", "AAL", "X11" ]
null
null
null
Demo/scripts/ftpstats.py
AtjonTV/Python-1.4
2a80562c5a163490f444181cb75ca1b3089759ec
[ "Unlicense", "TCL", "DOC", "AAL", "X11" ]
null
null
null
Demo/scripts/ftpstats.py
AtjonTV/Python-1.4
2a80562c5a163490f444181cb75ca1b3089759ec
[ "Unlicense", "TCL", "DOC", "AAL", "X11" ]
null
null
null
#! /usr/local/bin/python # Extract statistics from ftp daemon log. # Usage: # ftpstats [-m maxitems] [-s search] [file] # -m maxitems: restrict number of items in "top-N" lists, default 25. # -s string: restrict statistics to lines containing this string. # Default file is /usr/adm/ftpd; a "-" means read stdandard...
25.930556
75
0.610605
3575ada70a856e973b1c0380be2c1b216d2af1ce
13,381
py
Python
examples/rank/understanding_information_gain.py
asuiconlab/psiz
4f05348cf43d2d53ff9cc6dee633de385df883e3
[ "Apache-2.0" ]
null
null
null
examples/rank/understanding_information_gain.py
asuiconlab/psiz
4f05348cf43d2d53ff9cc6dee633de385df883e3
[ "Apache-2.0" ]
null
null
null
examples/rank/understanding_information_gain.py
asuiconlab/psiz
4f05348cf43d2d53ff9cc6dee633de385df883e3
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 The PsiZ 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 r...
32.243373
95
0.627532
b416213a666ae3743631950bbd18f3655b0847f7
1,671
py
Python
tests/manage/monitoring/prometheus/test_rgw.py
MeridianExplorer/ocs-ci
a33d5116128b88f176f5eff68a3ef805125cdba1
[ "MIT" ]
null
null
null
tests/manage/monitoring/prometheus/test_rgw.py
MeridianExplorer/ocs-ci
a33d5116128b88f176f5eff68a3ef805125cdba1
[ "MIT" ]
null
null
null
tests/manage/monitoring/prometheus/test_rgw.py
MeridianExplorer/ocs-ci
a33d5116128b88f176f5eff68a3ef805125cdba1
[ "MIT" ]
null
null
null
import logging import pytest from semantic_version import Version from ocs_ci.framework import config from ocs_ci.framework.testlib import tier4c, skipif_managed_service from ocs_ci.ocs import constants from ocs_ci.utility import prometheus from ocs_ci.ocs.ocp import OCP log = logging.getLogger(__name__) @tier4c ...
29.315789
100
0.716338
e1ad72ae2afbce6559b72a3803ae5c4f256e0db5
126
py
Python
src/UnitTests/TestData/AstAnalysis/Base.py
shayash22/python-language-server
b7982ca4889c40a06fd8ec8a557c985a49bc663f
[ "Apache-2.0" ]
695
2019-05-06T23:49:37.000Z
2022-03-30T01:56:00.000Z
src/UnitTests/TestData/AstAnalysis/Base.py
shayash22/python-language-server
b7982ca4889c40a06fd8ec8a557c985a49bc663f
[ "Apache-2.0" ]
1,043
2019-05-07T02:24:11.000Z
2022-03-31T22:21:24.000Z
src/UnitTests/TestData/AstAnalysis/Base.py
shayash22/python-language-server
b7982ca4889c40a06fd8ec8a557c985a49bc663f
[ "Apache-2.0" ]
131
2019-05-09T15:34:23.000Z
2022-03-23T17:52:35.000Z
class A: def methodABase(self, x): return x class B: def methodBBase(self, x): return x a = A b = B
11.454545
29
0.539683
452d996ed90a36f49bdf03dedc5d4d6597df052b
2,017
py
Python
tests/miniwallet/test_diem_account.py
isabella232/client-sdk-python
2cbeb77eadc16a300b0026df513aef84152a8f94
[ "Apache-2.0" ]
null
null
null
tests/miniwallet/test_diem_account.py
isabella232/client-sdk-python
2cbeb77eadc16a300b0026df513aef84152a8f94
[ "Apache-2.0" ]
1
2021-06-01T11:49:47.000Z
2021-06-01T11:49:47.000Z
tests/miniwallet/test_diem_account.py
isabella232/client-sdk-python
2cbeb77eadc16a300b0026df513aef84152a8f94
[ "Apache-2.0" ]
null
null
null
# Copyright (c) The Diem Core Contributors # SPDX-License-Identifier: Apache-2.0 from diem import testnet, diem_types from diem.testing import LocalAccount from diem.testing.miniwallet.app import Transaction from diem.testing.miniwallet.app.diem_account import DiemAccount import pytest def test_no_child_accounts():...
36.017857
98
0.72583
61a1a6a668725837842a00bf523701c34e2fe8d5
4,786
py
Python
tma/analyst/rank.py
hebpmo/TMA
b07747d3112e822ff92dd2ba4589d2288adab154
[ "MIT" ]
2
2020-02-15T18:31:39.000Z
2020-03-18T13:30:58.000Z
tma/analyst/rank.py
hebpmo/TMA
b07747d3112e822ff92dd2ba4589d2288adab154
[ "MIT" ]
null
null
null
tma/analyst/rank.py
hebpmo/TMA
b07747d3112e822ff92dd2ba4589d2288adab154
[ "MIT" ]
1
2021-02-13T19:14:39.000Z
2021-02-13T19:14:39.000Z
# -*- coding: UTF-8 -*- """ analyst.rank - 一些排序模型 ==================================================================== """ import re import jieba.analyse import string from tma.collector.aggregation import agg_market_klines class BaseRank: """基类""" def __init__(self, name, desc): self.name = name ...
29.182927
80
0.516089
c463f479178f12bf05adaa3084fd07f08ad6d571
3,355
py
Python
python/mprpc/logging/_labeled_logger.py
MusicScience37/mpRPC
f0256eeae4a0789038c4d12fb96efa5006968724
[ "Apache-2.0" ]
null
null
null
python/mprpc/logging/_labeled_logger.py
MusicScience37/mpRPC
f0256eeae4a0789038c4d12fb96efa5006968724
[ "Apache-2.0" ]
null
null
null
python/mprpc/logging/_labeled_logger.py
MusicScience37/mpRPC
f0256eeae4a0789038c4d12fb96efa5006968724
[ "Apache-2.0" ]
null
null
null
"""implementation of LabeledLogger class """ import inspect from typing import Union, Optional from .._mprpc_cpp import Logger, LogLevel class LabeledLogger: """class of loggers with labels Parameters ---------- logger : Union[Logger, LabeledLogger] logger label : Optional[str] ...
23.626761
92
0.527869
c44a1387cf88bfcd1bf8fe089e1b3800edc9d4eb
3,423
py
Python
src/sources/rebirthonline.py
Epicpkmn11/lightnovel-crawler
6fc0bbd4970a669a7921819d98b00da5a177d4cc
[ "Apache-2.0" ]
1
2019-03-10T13:02:23.000Z
2019-03-10T13:02:23.000Z
src/sources/rebirthonline.py
Epicpkmn11/lightnovel-crawler
6fc0bbd4970a669a7921819d98b00da5a177d4cc
[ "Apache-2.0" ]
2
2021-06-08T21:01:15.000Z
2021-09-08T01:45:07.000Z
src/sources/rebirthonline.py
Epicpkmn11/lightnovel-crawler
6fc0bbd4970a669a7921819d98b00da5a177d4cc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import logging import re from bs4 import BeautifulSoup from ..utils.crawler import Crawler logger = logging.getLogger('REBIRTH_ONLINE') book_url = 'https://www.rebirth.online/novel/%s' class RebirthOnlineCrawler(Crawler): base_url = 'https://www.rebirth.online/' def read_novel_inf...
35.28866
110
0.52118
8e8261c750f1534fece82b478023893a45ff9f33
3,006
py
Python
CIFAR10/weight_noise_m.py
zbs881314/Temporal-Coded-Deep-SNN
6faf34f1f54006879a5f25c4051514981ebc808b
[ "MIT" ]
11
2021-02-26T06:26:18.000Z
2022-03-31T08:45:21.000Z
CIFAR10/weight_noise_m.py
zbs881314/Temporal-Coded-Deep-SNN
6faf34f1f54006879a5f25c4051514981ebc808b
[ "MIT" ]
1
2021-02-26T06:38:28.000Z
2021-08-10T09:50:39.000Z
CIFAR10/weight_noise_m.py
zbs881314/Temporal-Coded-Deep-SNN
6faf34f1f54006879a5f25c4051514981ebc808b
[ "MIT" ]
6
2021-05-18T02:10:26.000Z
2022-03-29T06:24:58.000Z
import numpy as np w1 = np.load('weight_CFAR_B1.npy') w2 = np.load('weight_CFAR_B2.npy') w3 = np.load('weight_CFAR_B3.npy') w4 = np.load('weight_CFAR_B4.npy') w5 = np.load('weight_CFAR_B5.npy') w6 = np.load('weight_CFAR_B6.npy') w7 = np.load('weight_CFAR_B7.npy') print('Done') print(np.shape(w1)) print(np.shape(w2)) ...
25.474576
69
0.672322
1ab6bfe924b3dd47546b1f3878bf60988a1b979f
59,561
py
Python
tensorflow/tools/compatibility/renames_v2.py
ouakif/tensorflow
63c45aacf30e819b00e74b85bd1c9f11b0760cd3
[ "Apache-2.0" ]
27
2020-02-29T04:13:22.000Z
2022-02-07T21:54:50.000Z
tensorflow/tools/compatibility/renames_v2.py
top-on/tensorflow
6efce9a74d4ba2ba2182d92ac1e4f144b5d755d2
[ "Apache-2.0" ]
5
2020-06-01T18:50:38.000Z
2021-07-16T07:13:52.000Z
tensorflow/tools/compatibility/renames_v2.py
top-on/tensorflow
6efce9a74d4ba2ba2182d92ac1e4f144b5d755d2
[ "Apache-2.0" ]
10
2020-12-15T03:55:24.000Z
2021-12-17T23:14:11.000Z
# Copyright 2018 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.601641
84
0.668894
b4e1955dbc784e8cc8bd34f1fb0a5cc8fb69c8e0
9,913
py
Python
saleor/graphql/account/mutations/base.py
xxbinxx/saleor
9cac78ea31964a1aab3e42ee573213293b4ea624
[ "CC-BY-4.0" ]
1
2019-08-10T09:53:20.000Z
2019-08-10T09:53:20.000Z
saleor/graphql/account/mutations/base.py
xxbinxx/saleor
9cac78ea31964a1aab3e42ee573213293b4ea624
[ "CC-BY-4.0" ]
null
null
null
saleor/graphql/account/mutations/base.py
xxbinxx/saleor
9cac78ea31964a1aab3e42ee573213293b4ea624
[ "CC-BY-4.0" ]
null
null
null
import graphene from django.conf import settings from django.contrib.auth.tokens import default_token_generator from django.core.exceptions import ObjectDoesNotExist, ValidationError from django.db import transaction from django.utils.encoding import force_bytes from django.utils.http import urlsafe_base64_encode from ...
34.065292
87
0.685968
6860a7d65663ab93de3ac75266f7ae0ce08bd6e9
10,596
py
Python
litex_boards/targets/colorlight_5a_75x.py
jwfaye/litex-boards
e3ab64802a31a8a3fd156ae68610e89cb2b9ea72
[ "BSD-2-Clause" ]
1
2022-01-03T21:04:25.000Z
2022-01-03T21:04:25.000Z
litex_boards/targets/colorlight_5a_75x.py
jwfaye/litex-boards
e3ab64802a31a8a3fd156ae68610e89cb2b9ea72
[ "BSD-2-Clause" ]
null
null
null
litex_boards/targets/colorlight_5a_75x.py
jwfaye/litex-boards
e3ab64802a31a8a3fd156ae68610e89cb2b9ea72
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 # # This file is part of LiteX-Boards. # # Copyright (c) 2020 Florent Kermarrec <florent@enjoy-digital.fr> # SPDX-License-Identifier: BSD-2-Clause # Build/Use ---------------------------------------------------------------------------------------- # # 1) SoC with regular UART and optional Ether...
48.383562
161
0.591638
1f0ebbea152203aeda3366771054f439dcf65ff8
4,106
py
Python
gamestonk_terminal/mutual_funds/yfinance_view.py
minhhoang1023/GamestonkTerminal
195dc19b491052df080178c0cc6a9d535a91a704
[ "MIT" ]
1
2022-03-15T13:05:40.000Z
2022-03-15T13:05:40.000Z
gamestonk_terminal/mutual_funds/yfinance_view.py
minhhoang1023/GamestonkTerminal
195dc19b491052df080178c0cc6a9d535a91a704
[ "MIT" ]
null
null
null
gamestonk_terminal/mutual_funds/yfinance_view.py
minhhoang1023/GamestonkTerminal
195dc19b491052df080178c0cc6a9d535a91a704
[ "MIT" ]
null
null
null
"""Yahoo Finance Mutual Fund Model""" __docformat__ = "numpy" import logging import os import matplotlib.pyplot as plt import pandas as pd from gamestonk_terminal import feature_flags as gtff from gamestonk_terminal.config_plot import PLOT_DPI from gamestonk_terminal.decorators import log_start_end from gamestonk_te...
32.330709
110
0.655139
24771e921c42f98d44271d3d06169998422937e7
3,915
py
Python
aiogram/dispatcher/handler.py
Latand/aiogram
78aee861bb77601691916feb5a9c8efbdb65956b
[ "MIT" ]
3
2020-12-06T16:55:53.000Z
2021-11-19T19:25:57.000Z
aiogram/dispatcher/handler.py
Latand/aiogram
78aee861bb77601691916feb5a9c8efbdb65956b
[ "MIT" ]
null
null
null
aiogram/dispatcher/handler.py
Latand/aiogram
78aee861bb77601691916feb5a9c8efbdb65956b
[ "MIT" ]
2
2020-12-30T09:51:30.000Z
2021-11-10T16:50:28.000Z
import inspect from contextvars import ContextVar from dataclasses import dataclass from typing import Union ctx_data = ContextVar('ctx_handler_data') current_handler = ContextVar('current_handler') class SkipHandler(Exception): pass class CancelHandler(Exception): pass def _get_spec(func: callable): ...
30.115385
118
0.564496
718c903b3464ccaddb31ecd72dc305195c1abfd6
667
py
Python
TodoService/manage.py
n3k0fi5t/Django_Tutorial
e3953335ca88fe22c68268fd76afb7c4f9bbb55f
[ "MIT" ]
null
null
null
TodoService/manage.py
n3k0fi5t/Django_Tutorial
e3953335ca88fe22c68268fd76afb7c4f9bbb55f
[ "MIT" ]
null
null
null
TodoService/manage.py
n3k0fi5t/Django_Tutorial
e3953335ca88fe22c68268fd76afb7c4f9bbb55f
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'TodoService.settings') try: from django.core.management import execute_from_command_line except ...
29
75
0.68066
8c97728b81ae2a35d7636808655f17395c7bdeae
1,461
py
Python
cleverhans/attacks_th.py
NunoEdgarGFlowHub/cleverhans
c8fa1510cf00039404956a1b63192f1b759fc625
[ "MIT" ]
1
2017-11-03T12:30:11.000Z
2017-11-03T12:30:11.000Z
cleverhans/attacks_th.py
DeqiangLi/cleverhans
c8fa1510cf00039404956a1b63192f1b759fc625
[ "MIT" ]
null
null
null
cleverhans/attacks_th.py
DeqiangLi/cleverhans
c8fa1510cf00039404956a1b63192f1b759fc625
[ "MIT" ]
null
null
null
import theano import theano.tensor as T from cleverhans import utils_th def fgsm(x, predictions, eps, clip_min=None, clip_max=None): """ Theano implementation of the Fast Gradient Sign method. :param x: the input placeholder :param predictions: the model's output tensor :param eps: the epsilon...
33.976744
77
0.691307
4fdc109924b19c5ad7ea43dcc5368735b9bcbf96
5,307
py
Python
library_test.py
tdd-laboratory/tdd-homework-saholman
b4be1d2dec78e0663dbeb686108b0a990de41008
[ "Apache-2.0" ]
null
null
null
library_test.py
tdd-laboratory/tdd-homework-saholman
b4be1d2dec78e0663dbeb686108b0a990de41008
[ "Apache-2.0" ]
null
null
null
library_test.py
tdd-laboratory/tdd-homework-saholman
b4be1d2dec78e0663dbeb686108b0a990de41008
[ "Apache-2.0" ]
null
null
null
import unittest import library NUM_CORPUS = ''' On the 5th of May every year, Mexicans celebrate Cinco de Mayo. This tradition began in 1845 (the twenty-second anniversary of the Mexican Revolution), and is the 1st example of a national independence holiday becoming popular in the Western Hemisphere. (The Fourth of Ju...
46.964602
123
0.709817
a657b14f61a69fbf004182edbf8fab6269cae4f7
6,598
py
Python
tests/test_framework_metrics.py
dmitris/panoptes
7b4ab6dcbba6659bd797d8275ccad534bc00e47d
[ "Apache-2.0" ]
null
null
null
tests/test_framework_metrics.py
dmitris/panoptes
7b4ab6dcbba6659bd797d8275ccad534bc00e47d
[ "Apache-2.0" ]
null
null
null
tests/test_framework_metrics.py
dmitris/panoptes
7b4ab6dcbba6659bd797d8275ccad534bc00e47d
[ "Apache-2.0" ]
null
null
null
""" Copyright 2018, Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE file in project root for terms. """ import json import time import unittest from mock import * from test_helpers import ordered from yahoo_panoptes.framework.metrics import PanoptesMetricsGroup, PanoptesMetricDimension, \ ...
43.407895
119
0.706578
ee517c61c22bde05831836128b877247cd02ef3e
2,815
py
Python
combinations.py
l4u23n7p/enigma-bruteforce
0519414c878d38f15abe96cad3ffa87733749d30
[ "MIT" ]
null
null
null
combinations.py
l4u23n7p/enigma-bruteforce
0519414c878d38f15abe96cad3ffa87733749d30
[ "MIT" ]
null
null
null
combinations.py
l4u23n7p/enigma-bruteforce
0519414c878d38f15abe96cad3ffa87733749d30
[ "MIT" ]
null
null
null
from itertools import permutations, combinations import string __author__ = "Christoph Rist" __copyright__ = "Copyright 2016, Christoph Rist" __license__ = "MIT" ALPHABET = list(string.ascii_uppercase) NUMBER_RANGE = list(range(26)) def generate_plug_settings(nb_plugs, unused_alpha=set()): def generate_pairs_fr...
33.915663
117
0.558437
a0e5a63c45c1115e0940228242ebbb90ee0e2d11
1,627
py
Python
load_files/main.py
alexandraabbas/serverless-workflows
fae8ea6f37dc8ec1f331e1d3ccff4bb207642b8d
[ "MIT" ]
3
2020-10-14T20:43:44.000Z
2020-11-04T12:48:14.000Z
load_files/main.py
alexandraabbas/serverless-workflows
fae8ea6f37dc8ec1f331e1d3ccff4bb207642b8d
[ "MIT" ]
null
null
null
load_files/main.py
alexandraabbas/serverless-workflows
fae8ea6f37dc8ec1f331e1d3ccff4bb207642b8d
[ "MIT" ]
1
2020-10-30T12:53:51.000Z
2020-10-30T12:53:51.000Z
import json from google.cloud import bigquery def load_files(request): """Loads CSV files with `processing` prefix from Cloud Storage bucket to BigQuery table. Creates a new table called `history` if table doesn't exist. Expects a Cloud Storage bukcet name and BigQuery dataset name in the request json...
36.977273
87
0.645974
ef6a3f3c0d0fa1c868120f8029cf4592abaea7a5
1,871
py
Python
nipype/interfaces/slicer/tests/test_auto_ModelMaker.py
PAmcconnell/nipype
39fbd5411a844ce7c023964d3295eb7643b95af5
[ "Apache-2.0" ]
null
null
null
nipype/interfaces/slicer/tests/test_auto_ModelMaker.py
PAmcconnell/nipype
39fbd5411a844ce7c023964d3295eb7643b95af5
[ "Apache-2.0" ]
2
2018-04-26T12:09:32.000Z
2018-04-27T06:36:49.000Z
nipype/interfaces/slicer/tests/test_auto_ModelMaker.py
PAmcconnell/nipype
39fbd5411a844ce7c023964d3295eb7643b95af5
[ "Apache-2.0" ]
1
2019-11-14T14:16:57.000Z
2019-11-14T14:16:57.000Z
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT from ..surface import ModelMaker def test_ModelMaker_inputs(): input_map = dict( InputVolume=dict( argstr='%s', extensions=None, position=-1, ), args=dict(argstr='%s', ), color=dict( ...
33.410714
74
0.554784
01c1d435561c5bceced984e586b8b17c20b9f201
1,222
py
Python
py/test/selenium/webdriver/firefox/ff_takes_full_page_screenshots_tests.py
weilandia/selenium
949f05eb9a0dad3fddbf1fb34c3b0164deba1db7
[ "Apache-2.0" ]
25,151
2015-01-01T15:40:17.000Z
2022-03-31T18:44:03.000Z
py/test/selenium/webdriver/firefox/ff_takes_full_page_screenshots_tests.py
weilandia/selenium
949f05eb9a0dad3fddbf1fb34c3b0164deba1db7
[ "Apache-2.0" ]
9,885
2015-01-03T17:53:00.000Z
2022-03-31T21:48:12.000Z
py/test/selenium/webdriver/firefox/ff_takes_full_page_screenshots_tests.py
weilandia/selenium
949f05eb9a0dad3fddbf1fb34c3b0164deba1db7
[ "Apache-2.0" ]
8,441
2015-01-05T09:36:44.000Z
2022-03-31T19:58:06.000Z
# Licensed to the Software Freedom Conservancy (SFC) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The SFC licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
38.1875
74
0.765957
d9688ab49e4aa48754207e653b300c530777b8ba
1,697
py
Python
import_util.py
iankigen/art-backend
e46f8e1a530ae56b6a236af4ff686ca4e0dd6630
[ "MIT" ]
null
null
null
import_util.py
iankigen/art-backend
e46f8e1a530ae56b6a236af4ff686ca4e0dd6630
[ "MIT" ]
null
null
null
import_util.py
iankigen/art-backend
e46f8e1a530ae56b6a236af4ff686ca4e0dd6630
[ "MIT" ]
null
null
null
import os def is_valid_file(file_name): if file_name.endswith('.csv'): print("Error. Remove file extension and try again") return False elif not os.path.exists(file_name + '.csv'): print("Error. File does not exist. Check your path") return False return True def display...
38.568182
79
0.393047
b53c9bbb151adb64ac32cc8d858a50d6580953c2
1,680
py
Python
resources/mechanics_lib/api/shapes.py
PRECISE/ROSLab
2a6a295b71d4c73bc5c6ae2ec0330274afa31d0d
[ "Apache-2.0" ]
7
2016-01-20T02:33:00.000Z
2021-02-04T04:06:57.000Z
resources/mechanics_lib/api/shapes.py
PRECISE/ROSLab
2a6a295b71d4c73bc5c6ae2ec0330274afa31d0d
[ "Apache-2.0" ]
null
null
null
resources/mechanics_lib/api/shapes.py
PRECISE/ROSLab
2a6a295b71d4c73bc5c6ae2ec0330274afa31d0d
[ "Apache-2.0" ]
3
2016-10-05T07:20:30.000Z
2017-11-20T10:36:50.000Z
from drawing import Drawing from edge import * from math import pi, sin, cos from graphs.face import Face as GraphFace class Face(Drawing): def __init__(self, pts, edgetype = None, origin = True): Drawing.__init__(self) if origin: pts = list(pts) + [(0,0)] else: pts = list(pts) lastpt = ...
25.846154
72
0.62381
c539c9251c9ec63bb06f25aed5cdf5bcbaf4c5c2
1,639
py
Python
code1/views/admin/views.py
LegLoveSmc/python_test
83d8619fb84f549978e6660abf5ed7c75960bfbe
[ "MIT" ]
null
null
null
code1/views/admin/views.py
LegLoveSmc/python_test
83d8619fb84f549978e6660abf5ed7c75960bfbe
[ "MIT" ]
null
null
null
code1/views/admin/views.py
LegLoveSmc/python_test
83d8619fb84f549978e6660abf5ed7c75960bfbe
[ "MIT" ]
null
null
null
from flask import render_template, redirect from sqlalchemy.orm import sessionmaker from models.models import engine, User # 引入蓝图 from . import admin_blu print(1111111111111111111) # 使用蓝图添加路由 @admin_blu.route('/') def index1(): # 访问 / 就重定向到index.html return redirect('index.html') @admin_blu.route('/index.h...
23.753623
73
0.66748
a46b4cf9f823ed943f2e2df84fafea1891febc6a
7,460
py
Python
code/lab2_code/control_two_collide_1.py
YuYanzy/Lab_ECE_5725
1eb0ebbd3e1aa00a850f6d5ad7f3676386e2fb1b
[ "Apache-2.0" ]
null
null
null
code/lab2_code/control_two_collide_1.py
YuYanzy/Lab_ECE_5725
1eb0ebbd3e1aa00a850f6d5ad7f3676386e2fb1b
[ "Apache-2.0" ]
null
null
null
code/lab2_code/control_two_collide_1.py
YuYanzy/Lab_ECE_5725
1eb0ebbd3e1aa00a850f6d5ad7f3676386e2fb1b
[ "Apache-2.0" ]
null
null
null
# M_ADL96_YZ483_Lab2 # Alex LoCicero (ADL96) # Yingjie Zhao (YZ483) # Sep 27, 2021 import RPi.GPIO as GPIO import sys, os import pygame from pygame.locals import* import time keep_run = True # Global variable used to track running status # Button 27: quit def GPIO27_callback(channel): print ("Button #2...
39.057592
90
0.529893
f0a0b1103f5c6a37aec8b0ddc86d41424dde1ab2
8,805
py
Python
python/sdk/test/batch/big_query_util_test.py
ashwinath/merlin
087a7fa6fb21e4c771d64418bd58873175226ca1
[ "Apache-2.0" ]
97
2020-10-15T08:03:56.000Z
2022-03-31T22:30:59.000Z
python/sdk/test/batch/big_query_util_test.py
ibnummuhammad/merlin
acf10a350bcacfdfe67f7020d535467b71ff1d89
[ "Apache-2.0" ]
91
2020-10-26T03:15:27.000Z
2022-03-31T10:19:55.000Z
python/sdk/test/batch/big_query_util_test.py
ibnummuhammad/merlin
acf10a350bcacfdfe67f7020d535467b71ff1d89
[ "Apache-2.0" ]
26
2020-10-21T03:53:36.000Z
2022-03-16T06:43:15.000Z
# Copyright 2020 The Merlin Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
49.189944
1,040
0.717206
2117f04fed630db559c5d8884576976f9484a1bd
18
py
Python
utils/__init__.py
angeleneleow/rocket2
649f49a94d123e78bfd014189e8fede31fa007f6
[ "MIT" ]
null
null
null
utils/__init__.py
angeleneleow/rocket2
649f49a94d123e78bfd014189e8fede31fa007f6
[ "MIT" ]
null
null
null
utils/__init__.py
angeleneleow/rocket2
649f49a94d123e78bfd014189e8fede31fa007f6
[ "MIT" ]
null
null
null
"""Utils Init."""
9
17
0.5
32a8d0e951ff4f40a5a92c144e129d9e62547f17
538
py
Python
class/lect/Lect-22/show-data-minst.py
MikenzieAlasca/F21-1010
a7c15b8d9bf84f316aa6921f6d8a588c513a22b8
[ "MIT" ]
5
2021-09-09T21:08:14.000Z
2021-12-14T02:30:52.000Z
class/lect/Lect-22/show-data-minst.py
MikenzieAlasca/F21-1010
a7c15b8d9bf84f316aa6921f6d8a588c513a22b8
[ "MIT" ]
null
null
null
class/lect/Lect-22/show-data-minst.py
MikenzieAlasca/F21-1010
a7c15b8d9bf84f316aa6921f6d8a588c513a22b8
[ "MIT" ]
8
2021-09-09T17:46:07.000Z
2022-02-08T22:41:35.000Z
# example of loading and plotting the mnist dataset from tensorflow.keras.datasets.mnist import load_data from matplotlib import pyplot # load dataset (trainX, trainy), (testX, testy) = load_data() # summarize loaded dataset print('Train: X=%s, y=%s' % (trainX.shape, trainy.shape)) print('Test: X=%s, y=%s' % (testX.sha...
31.647059
57
0.723048
cd49ace03a51689452f21a092b7fa1212da13748
1,211
py
Python
courses/machine_learning/deepdive2/structured/labs/serving/application/lib/apiclient/__init__.py
Glairly/introduction_to_tensorflow
aa0a44d9c428a6eb86d1f79d73f54c0861b6358d
[ "Apache-2.0" ]
2
2022-01-06T11:52:57.000Z
2022-01-09T01:53:56.000Z
courses/machine_learning/deepdive2/structured/solutions/serving/application/lib/apiclient/__init__.py
Glairly/introduction_to_tensorflow
aa0a44d9c428a6eb86d1f79d73f54c0861b6358d
[ "Apache-2.0" ]
null
null
null
courses/machine_learning/deepdive2/structured/solutions/serving/application/lib/apiclient/__init__.py
Glairly/introduction_to_tensorflow
aa0a44d9c428a6eb86d1f79d73f54c0861b6358d
[ "Apache-2.0" ]
null
null
null
"""Retain apiclient as an alias for googleapiclient.""" from six import iteritems import googleapiclient try: import oauth2client except ImportError: raise RuntimeError( 'Previous version of google-api-python-client detected; due to a ' 'packaging issue, we cannot perform an in-place upgra...
28.162791
76
0.721718
484da089937abc9e0412ec91cadda5a9d53bbf14
8,481
py
Python
LightPipes/unwrap.py
jccmak/lightpipes
1a296fe08bdd97fc9a0e11f92bab25c85f68e57d
[ "BSD-3-Clause" ]
132
2017-03-15T15:28:46.000Z
2022-03-09T00:28:25.000Z
LightPipes/unwrap.py
jccmak/lightpipes
1a296fe08bdd97fc9a0e11f92bab25c85f68e57d
[ "BSD-3-Clause" ]
63
2017-01-26T15:46:55.000Z
2022-01-25T04:50:59.000Z
LightPipes/unwrap.py
jccmak/lightpipes
1a296fe08bdd97fc9a0e11f92bab25c85f68e57d
[ "BSD-3-Clause" ]
37
2017-02-17T16:11:38.000Z
2022-01-25T18:03:47.000Z
# -*- coding: utf-8 -*- import numpy as _np from numpy import pi as _pi def UNWRAP(ol, co, factor, hfactor): val = ol if val-co >= hfactor: while val-co >= hfactor: val -= factor elif val-co <= -hfactor: while val-co <= -hfactor: val += factor ne = val ret...
32.619231
79
0.47518
08007088a89698cacb669267e0639817d01d1bd7
6,885
py
Python
build/gypi_to_gn.py
TwistedCore/external_v8
c6725dab9be251fbfc6fd7d53c3513a23e78c36c
[ "BSD-3-Clause" ]
777
2017-08-29T15:15:32.000Z
2022-03-21T05:29:41.000Z
build/gypi_to_gn.py
TwistedCore/external_v8
c6725dab9be251fbfc6fd7d53c3513a23e78c36c
[ "BSD-3-Clause" ]
66
2017-08-30T18:31:18.000Z
2021-08-02T10:59:35.000Z
build/gypi_to_gn.py
TwistedCore/external_v8
c6725dab9be251fbfc6fd7d53c3513a23e78c36c
[ "BSD-3-Clause" ]
123
2017-08-30T01:19:34.000Z
2022-03-17T22:55:31.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. """Converts a given gypi file to a python scope and writes the result to stdout. USING THIS SCRIPT IN CHROMIUM Forking Python to run this script in the mid...
35.859375
80
0.704285
cb85a5d1916a68f21afcd12607e50f7417805518
1,179
py
Python
animal_care/urls.py
ViksRangelov/animal_care
667a101a6d201ad67ee15605756f1918455bf284
[ "MIT" ]
null
null
null
animal_care/urls.py
ViksRangelov/animal_care
667a101a6d201ad67ee15605756f1918455bf284
[ "MIT" ]
null
null
null
animal_care/urls.py
ViksRangelov/animal_care
667a101a6d201ad67ee15605756f1918455bf284
[ "MIT" ]
null
null
null
"""animal_care URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-b...
39.3
93
0.693808
19c992f27c130a598c39eb6e7f9492d9129bdb2d
3,508
py
Python
scriptabit/plugins/trello/trello_task_service.py
luqiang21/scriptabit
0d0cf71814e98954850891fa0887bdcffcf7147d
[ "Apache-2.0" ]
9
2016-09-04T07:02:20.000Z
2021-06-29T07:29:40.000Z
scriptabit/plugins/trello/trello_task_service.py
luqiang21/scriptabit
0d0cf71814e98954850891fa0887bdcffcf7147d
[ "Apache-2.0" ]
35
2016-07-30T01:03:15.000Z
2022-02-12T20:27:37.000Z
scriptabit/plugins/trello/trello_task_service.py
luqiang21/scriptabit
0d0cf71814e98954850891fa0887bdcffcf7147d
[ "Apache-2.0" ]
8
2016-09-05T12:36:53.000Z
2020-06-15T18:25:50.000Z
# -*- coding: utf-8 -*- """ Implements the Trello synchronisation task service. """ # Ensure backwards compatibility with Python 2 from __future__ import ( absolute_import, division, print_function, unicode_literals) from builtins import * from scriptabit import TaskService from .trello_task import Tr...
30.504348
80
0.578677
42d9f92dd580710adbc3dbb4312e3d57d6205165
17,114
py
Python
tests/test_pet_impl_battle.py
steveryb/super-auto-pets-ai
f86e033473885e2c7a0312c598f1870bf8edce3c
[ "MIT" ]
null
null
null
tests/test_pet_impl_battle.py
steveryb/super-auto-pets-ai
f86e033473885e2c7a0312c598f1870bf8edce3c
[ "MIT" ]
null
null
null
tests/test_pet_impl_battle.py
steveryb/super-auto-pets-ai
f86e033473885e2c7a0312c598f1870bf8edce3c
[ "MIT" ]
null
null
null
from sap.pet_impl import * from sap.battle import Battle from test_helpers import dummy_pet, TestRandom, DummyPlayer import logging class TestPetImplBattle: def test_solo_mosquito(self): b = Battle( [Mosquito.spawn()], [dummy_pet(toughness=1)] ) b.battle() assert len(b.t...
30.891697
116
0.523899
6de1ed43bd439fa6d4546fcd710c13141b18f9cb
1,233
py
Python
convert.py
arsalan0004/6DRepNet
cdfb2b151785eb89fef70907a6f2a19fa0acf4ae
[ "MIT" ]
84
2022-02-28T05:55:39.000Z
2022-03-31T16:43:23.000Z
convert.py
QianYangkk/6DRepNet
aa28f95516cacb1cac31313b981b9fd3f51f5c28
[ "MIT" ]
8
2022-03-03T02:42:22.000Z
2022-03-30T07:55:47.000Z
convert.py
QianYangkk/6DRepNet
aa28f95516cacb1cac31313b981b9fd3f51f5c28
[ "MIT" ]
17
2022-02-24T09:24:51.000Z
2022-03-28T11:15:12.000Z
import argparse import os from model import SixDRepNet import torch from backbone.repvgg import repvgg_model_convert parser = argparse.ArgumentParser(description='SixDRepNet Conversion') parser.add_argument('load', metavar='LOAD', help='path to the weights file') parser.add_argument('save', metavar='SAVE', help='path ...
31.615385
76
0.687753
ec6fe003e0645847f1afa2866f8dd4f0dbcf9616
855
py
Python
app/csv_parser.py
s2t2/omniparser-prep-py
8528ce9df6976e919968086bb343f5a3c160cde0
[ "MIT" ]
1
2020-02-18T21:08:42.000Z
2020-02-18T21:08:42.000Z
app/csv_parser.py
s2t2/omniparser-prep-py
8528ce9df6976e919968086bb343f5a3c160cde0
[ "MIT" ]
null
null
null
app/csv_parser.py
s2t2/omniparser-prep-py
8528ce9df6976e919968086bb343f5a3c160cde0
[ "MIT" ]
null
null
null
import os import csv import statistics def calculate_average_grade(my_csv_filepath): return 80 if __name__ == "__main__": # # CAPTURE USER INPUTS # year = input("Please select a year (2018 or 2019):") if year not in ["2018", "2019"]: print("OH, INVALID SELECTION. PLEASE TRY AGAIN......
23.75
102
0.65614
2f795338099641da6aefd3d980ff20bc32dfc635
2,564
py
Python
npyscreen/wgwidget_proto.py
altmind/npyscreen
8ce31204e1de1fbd2939ffe2d8c3b3120e93a4d0
[ "BSD-2-Clause" ]
470
2018-10-17T04:44:18.000Z
2022-03-20T15:40:42.000Z
npyscreen/wgwidget_proto.py
altmind/npyscreen
8ce31204e1de1fbd2939ffe2d8c3b3120e93a4d0
[ "BSD-2-Clause" ]
79
2015-06-23T15:06:51.000Z
2021-09-06T20:29:16.000Z
npyscreen/wgwidget_proto.py
altmind/npyscreen
8ce31204e1de1fbd2939ffe2d8c3b3120e93a4d0
[ "BSD-2-Clause" ]
138
2015-07-07T20:05:21.000Z
2022-01-21T17:09:42.000Z
import sys class _LinePrinter(object): """A base class for printing lines to the screen. Do not use directly. For internal use only. Experimental. """ def find_width_of_char(self, ch): # will eventually need changing. return 1 def _print_unicode_char(self, ch, force_a...
36.112676
97
0.576053
e25f12ca9ab0b26da98d80eb9b5cc8c580356a5e
2,867
py
Python
main/admin.py
Jiuh-star/CourseSelectSystem
e476b4a08651d2761eaa01faea34a214cf4eb57a
[ "MIT" ]
2
2020-08-18T02:47:04.000Z
2021-04-17T11:48:14.000Z
main/admin.py
Jiuh-star/Django-CSS
e476b4a08651d2761eaa01faea34a214cf4eb57a
[ "MIT" ]
null
null
null
main/admin.py
Jiuh-star/Django-CSS
e476b4a08651d2761eaa01faea34a214cf4eb57a
[ "MIT" ]
null
null
null
from django import forms from django.contrib import admin from django.contrib.auth.models import Group from . import models class StudentInline(admin.StackedInline): model = models.Student verbose_name = '学生' class TeacherInline(admin.StackedInline): model = models.Teacher verbose_name = '教师' cla...
26.794393
97
0.682246
3ad8af83dbabf86717d85a0e9e19c4cb44c5d0e3
6,200
py
Python
tests/test_other.py
aleksas/remap
b616111ae6a0a35df38618141d122bb2c693feb7
[ "MIT" ]
2
2019-10-11T12:48:28.000Z
2020-02-02T14:50:12.000Z
tests/test_other.py
aleksas/remap
b616111ae6a0a35df38618141d122bb2c693feb7
[ "MIT" ]
1
2019-09-27T07:39:20.000Z
2019-10-01T21:46:10.000Z
tests/test_other.py
aleksas/remap
b616111ae6a0a35df38618141d122bb2c693feb7
[ "MIT" ]
1
2020-02-02T14:50:13.000Z
2020-02-02T14:50:13.000Z
# -*- coding: utf-8 -*- from sys import path path.append('..') from unittest import TestCase, main from re_map import Processor class OtherTestCase(TestCase): text_0 = ' AAA BBB CCC DDD ' text_1 = ' AAA BBB AAA BBB ' text_2 = ' BBB AAA AAA BBB ' text_3 = ' AAA AAA AAA AAA ' modifiers_0 = [ ...
34.254144
106
0.595323
d4c58539ac580d36c3bfcba3ea4ab236ad3d9823
3,481
py
Python
bindings/python/ensmallen/datasets/string/moheibactersediminis.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
5
2021-02-17T00:44:45.000Z
2021-08-09T16:41:47.000Z
bindings/python/ensmallen/datasets/string/moheibactersediminis.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
18
2021-01-07T16:47:39.000Z
2021-08-12T21:51:32.000Z
bindings/python/ensmallen/datasets/string/moheibactersediminis.py
AnacletoLAB/ensmallen
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
3
2021-01-14T02:20:59.000Z
2021-08-04T19:09:52.000Z
""" This file offers the methods to automatically retrieve the graph Moheibacter sediminis. The graph is automatically retrieved from the STRING repository. References --------------------- Please cite the following if you use the data: ```bib @article{szklarczyk2019string, title={STRING v11: protein--protein ...
33.152381
223
0.678541
75f82736c2ad002fc475ab3735b57d52bf3e2b93
11,709
py
Python
pushservice/src/PushServiceBase.py
wedebe/enigma2-plugins-2
04207a6f2d53f65257d902e60817b3006b48c596
[ "Linux-OpenIB" ]
null
null
null
pushservice/src/PushServiceBase.py
wedebe/enigma2-plugins-2
04207a6f2d53f65257d902e60817b3006b48c596
[ "Linux-OpenIB" ]
null
null
null
pushservice/src/PushServiceBase.py
wedebe/enigma2-plugins-2
04207a6f2d53f65257d902e60817b3006b48c596
[ "Linux-OpenIB" ]
null
null
null
####################################################################### # # Push Service for Enigma-2 # Coded by betonme (c) 2012 <glaserfrank(at)gmail.com> # Support: http://www.i-have-a-dreambox.com/wbb2/thread.php?threadid=167779 # # This program is free software; you can redistribute it and/or # modi...
30.177835
127
0.679221
cbcbb7ac69f23ab71d869a05dd1e336dd9891cbc
3,400
py
Python
piccolo_api/session_auth/tables.py
kucera-lukas/piccolo_api
bc8c3ef96fdda1315f9f594e0c817c0d7e533c6f
[ "MIT" ]
null
null
null
piccolo_api/session_auth/tables.py
kucera-lukas/piccolo_api
bc8c3ef96fdda1315f9f594e0c817c0d7e533c6f
[ "MIT" ]
null
null
null
piccolo_api/session_auth/tables.py
kucera-lukas/piccolo_api
bc8c3ef96fdda1315f9f594e0c817c0d7e533c6f
[ "MIT" ]
null
null
null
from __future__ import annotations import secrets import typing as t from datetime import datetime, timedelta from piccolo.columns import Integer, Timestamp, Varchar from piccolo.columns.defaults.timestamp import TimestampOffset from piccolo.table import Table from piccolo.utils.sync import run_sync class SessionsB...
32.692308
78
0.635294
b14b1d27f1fd7f4c7ec2f08955f1aa9792931cf7
2,382
py
Python
tests/load/test_load_hpo.py
szilvajuhos/scout
2f4a03fb3192a57c99fd62be626e8c22051e81af
[ "BSD-3-Clause" ]
1
2019-08-17T21:20:04.000Z
2019-08-17T21:20:04.000Z
tests/load/test_load_hpo.py
szilvajuhos/scout
2f4a03fb3192a57c99fd62be626e8c22051e81af
[ "BSD-3-Clause" ]
null
null
null
tests/load/test_load_hpo.py
szilvajuhos/scout
2f4a03fb3192a57c99fd62be626e8c22051e81af
[ "BSD-3-Clause" ]
null
null
null
from scout.load.hpo import (load_hpo, load_disease_terms, load_hpo_terms) from scout.utils.handle import get_file_handle def test_load_disease_terms(gene_database, genemap_file, hpo_disease_handle): adapter = gene_database alias_genes = adapter.genes_by_alias() # GIVEN a populated database with genes ...
35.029412
106
0.717045
4511a1058780aed253401eb71d672257d1487751
14,366
py
Python
Account.py
theunknowncoc/public-bot
f3c4c8a3d1b61455b44342202f292fb406f7402b
[ "MIT" ]
null
null
null
Account.py
theunknowncoc/public-bot
f3c4c8a3d1b61455b44342202f292fb406f7402b
[ "MIT" ]
null
null
null
Account.py
theunknowncoc/public-bot
f3c4c8a3d1b61455b44342202f292fb406f7402b
[ "MIT" ]
null
null
null
import json, os, coc from dotenv import load_dotenv as dotenv from Clan import Clan dotenv() if os.name == "nt": k = os.getenv("homeoffice") else: k = os.getenv("pi") client = coc.login(os.getenv("email"), os.getenv("pass"), key_names="deeznuts", key_count=5, throttle_limit=20) class Account: def __init_...
49.030717
195
0.520535
538e85682ebe0c53d269a49df8c2b3993cee3957
68
py
Python
python_target/FoxySheep/AST/pattern/PatternTestNode.py
rljacobson/FoxySheep
78451ba9f868d21f20f23ee880649f20669e7644
[ "BSD-2-Clause" ]
41
2016-02-08T12:35:11.000Z
2021-11-17T11:45:47.000Z
python_target/FoxySheep/AST/pattern/PatternTestNode.py
rljacobson/FoxySheep
78451ba9f868d21f20f23ee880649f20669e7644
[ "BSD-2-Clause" ]
4
2020-09-09T20:43:34.000Z
2021-01-21T22:32:26.000Z
FoxySheep/tree/pattern/PatternTestNode.py
rocky/FoxySheep2
94400a7e135035dadb63d703740859a69fbf9c97
[ "BSD-2-Clause" ]
4
2017-08-20T01:04:10.000Z
2021-08-07T19:51:52.000Z
from AST import ASTNode class PatternTestNode(ASTNode): pass
9.714286
31
0.75
ced2c10c856a401a37ab10652f44db654c01d25c
47,327
py
Python
sdk/keyvault/azure-mgmt-keyvault/azure/mgmt/keyvault/v2019_09_01/models/_models.py
LianwMS/azure-sdk-for-python
612d7bca9de86ee1bd1fa59291d7bf897ba9213f
[ "MIT" ]
2
2019-05-17T21:24:53.000Z
2020-02-12T11:13:42.000Z
sdk/keyvault/azure-mgmt-keyvault/azure/mgmt/keyvault/v2019_09_01/models/_models.py
LianwMS/azure-sdk-for-python
612d7bca9de86ee1bd1fa59291d7bf897ba9213f
[ "MIT" ]
15
2019-07-12T18:18:04.000Z
2019-07-25T20:55:51.000Z
sdk/keyvault/azure-mgmt-keyvault/azure/mgmt/keyvault/v2019_09_01/models/_models.py
LianwMS/azure-sdk-for-python
612d7bca9de86ee1bd1fa59291d7bf897ba9213f
[ "MIT" ]
2
2020-05-21T22:51:22.000Z
2020-05-26T20:53:01.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 ...
38.952263
150
0.659433
ffb04ee14a11a9ca1bc2afe662b567362e9fb8c4
4,592
py
Python
award/settings.py
AmimoG/Awwards
229ed9d52bc2e8181fbe4e07cad954c1fd9b2d15
[ "MIT" ]
null
null
null
award/settings.py
AmimoG/Awwards
229ed9d52bc2e8181fbe4e07cad954c1fd9b2d15
[ "MIT" ]
null
null
null
award/settings.py
AmimoG/Awwards
229ed9d52bc2e8181fbe4e07cad954c1fd9b2d15
[ "MIT" ]
null
null
null
""" Django settings for award project. Generated by 'django-admin startproject' using Django 1.11.29. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import os ...
26.390805
91
0.68946
669ec88636894ec32047954f436e34408a1f468f
15,878
py
Python
src/parser/parser.py
christ2go/pycal
33970601702312fd38d564ec20c3c36167b9b7bc
[ "Apache-2.0" ]
null
null
null
src/parser/parser.py
christ2go/pycal
33970601702312fd38d564ec20c3c36167b9b7bc
[ "Apache-2.0" ]
1
2015-02-15T16:47:31.000Z
2015-02-15T16:47:31.000Z
src/parser/parser.py
christ2go/pycal
33970601702312fd38d564ec20c3c36167b9b7bc
[ "Apache-2.0" ]
null
null
null
import scanner import sys from tree import treeprint sys.path.append("../tree/") import node conststartset = [ "COMMA", "COLON", "INT", "FLOAT", "IDENT", "STRING", "MINUS", "PLUS" ...
39.108374
114
0.568963
6270919bf47c4b5c69ed27dece364811bc813d7d
2,041
py
Python
tests/io/threading/serial/receiver.py
ethanjli/phyllo-python
1fc17737951df9c23a9fae72212e3004a78c4da2
[ "MIT" ]
null
null
null
tests/io/threading/serial/receiver.py
ethanjli/phyllo-python
1fc17737951df9c23a9fae72212e3004a78c4da2
[ "MIT" ]
null
null
null
tests/io/threading/serial/receiver.py
ethanjli/phyllo-python
1fc17737951df9c23a9fae72212e3004a78c4da2
[ "MIT" ]
null
null
null
"""Print all data received on the serial port.""" # Builtins import logging # Packages from phylline.links.events import LinkException from phyllo.io.cli.args.args import parse_args from phyllo.io.cli.args.protocol import ( args_application_stack, args_transport_logical_substack, group_protocol_stack ) from ph...
29.157143
82
0.729544
b30f5cd8b3b6606b5d366bd9e279a0484ee960d2
6,003
py
Python
src/other/stepcode/src/exp2python/examples/unitary_schemas/test_select_data_type.py
Zitara/BRLCAD
620449d036e38bd52257f6b5b10daa55d9284900
[ "BSD-4-Clause", "BSD-3-Clause" ]
35
2015-03-11T11:51:48.000Z
2021-07-25T16:04:49.000Z
src/other/stepcode/src/exp2python/examples/unitary_schemas/test_select_data_type.py
pombredanne/sf.net-brlcad
fb56f37c201b51241e8f3aa7b979436856f43b8c
[ "BSD-4-Clause", "BSD-3-Clause" ]
null
null
null
src/other/stepcode/src/exp2python/examples/unitary_schemas/test_select_data_type.py
pombredanne/sf.net-brlcad
fb56f37c201b51241e8f3aa7b979436856f43b8c
[ "BSD-4-Clause", "BSD-3-Clause" ]
19
2016-05-04T08:39:37.000Z
2021-12-07T12:45:54.000Z
# This file was generated by exp2python. You probably don't want to edit # it since your modifications will be lost if exp2python is used to # regenerate it. import sys from SCL.SCLBase import * from SCL.SimpleDataTypes import * from SCL.ConstructedDataTypes import * from SCL.AggregationDataTypes import * from SCL.Ty...
23.727273
88
0.683658
be42f6b66b2b0b589a2d9df3b35825c6042edd9c
854
py
Python
pyno/utils.py
cgarjun/Pyno
fa2a5d57fb926564f5acc0e6c7310de255bab531
[ "MIT" ]
163
2015-12-29T02:28:04.000Z
2022-02-02T02:18:28.000Z
pyno/utils.py
cgarjun/Pyno
fa2a5d57fb926564f5acc0e6c7310de255bab531
[ "MIT" ]
42
2017-12-19T15:31:54.000Z
2019-09-21T20:14:06.000Z
pyno/utils.py
cgarjun/Pyno
fa2a5d57fb926564f5acc0e6c7310de255bab531
[ "MIT" ]
34
2017-09-23T09:08:56.000Z
2021-09-16T23:49:24.000Z
import platform from random import randint win = platform.system() == 'Windows' font = 'Consolas' if win else 'DejaVu Sans Mono' def random_node_color(): return (randint(80, 130), randint(80, 130), randint(80, 130)) def x_y_pan_scale(x, y, pan_scale, wscale): s = pan_scale x = i...
25.117647
70
0.551522
a3119763284acfe9a9b94d87955b9d05a4b1d177
21,346
py
Python
tests/test_optim.py
alexander-held/pyhf
9018a3a16fff4940c7124c25b9d7a8ea70b32365
[ "Apache-2.0" ]
188
2019-11-22T03:51:37.000Z
2022-03-09T17:39:53.000Z
tests/test_optim.py
alexander-held/pyhf
9018a3a16fff4940c7124c25b9d7a8ea70b32365
[ "Apache-2.0" ]
1,139
2019-11-20T16:31:30.000Z
2022-03-31T17:10:31.000Z
tests/test_optim.py
alexander-held/pyhf
9018a3a16fff4940c7124c25b9d7a8ea70b32365
[ "Apache-2.0" ]
63
2019-11-21T05:39:44.000Z
2022-03-01T07:07:21.000Z
import pyhf from pyhf.optimize.mixins import OptimizerMixin from pyhf.optimize.common import _get_tensor_shim, _make_stitch_pars from pyhf.tensor.common import _TensorViewer import pytest from scipy.optimize import minimize, OptimizeResult import iminuit import itertools import numpy as np # from https://docs.scipy.o...
36.118443
121
0.654408
2641ae842e8df12098b6d76882640a098ec990c4
414
py
Python
experiments/fdtd-2d/tmp_files/6169.py
LoopTilingBenchmark/benchmark
52a3d2e70216552a498fd91de02a2fa9cb62122c
[ "BSD-2-Clause" ]
null
null
null
experiments/fdtd-2d/tmp_files/6169.py
LoopTilingBenchmark/benchmark
52a3d2e70216552a498fd91de02a2fa9cb62122c
[ "BSD-2-Clause" ]
null
null
null
experiments/fdtd-2d/tmp_files/6169.py
LoopTilingBenchmark/benchmark
52a3d2e70216552a498fd91de02a2fa9cb62122c
[ "BSD-2-Clause" ]
null
null
null
from chill import * source('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/polybench/polybench-code/stencils/fdtd-2d/kernel.c') destination('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/experiments/fdtd-2d/tmp_files/6169.c') procedure('kernel_fdtd_2d') loop(0) known(' nx > 1 ') known(' ny > 1 ') ti...
23
116
0.722222
ee242e1d5750caecb482f88b085354cf75a83e53
3,461
py
Python
aqt/summary_utils_test.py
abbie0214/google-research
d154ffb7a92f7899807496cb8cb665fb5a01e65c
[ "Apache-2.0" ]
1
2021-04-24T03:39:05.000Z
2021-04-24T03:39:05.000Z
aqt/summary_utils_test.py
abbie0214/google-research
d154ffb7a92f7899807496cb8cb665fb5a01e65c
[ "Apache-2.0" ]
null
null
null
aqt/summary_utils_test.py
abbie0214/google-research
d154ffb7a92f7899807496cb8cb665fb5a01e65c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2021 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
34.267327
79
0.53106
c9a7e8aa326c3dfc1e1ad4a3159aab03e7da74a3
2,863
py
Python
cogs/LevelListenersCog.py
saschavhd/DiscordAssistant
5c2649ba281a49215f6c74b91f37f3bfcb4088b4
[ "MIT" ]
null
null
null
cogs/LevelListenersCog.py
saschavhd/DiscordAssistant
5c2649ba281a49215f6c74b91f37f3bfcb4088b4
[ "MIT" ]
null
null
null
cogs/LevelListenersCog.py
saschavhd/DiscordAssistant
5c2649ba281a49215f6c74b91f37f3bfcb4088b4
[ "MIT" ]
null
null
null
from datetime import datetime import discord from discord.ext import commands from package_tools import exp_to_level from utils.constants import DEFAULT_EXP_INCREASE, EPOCH from utils.database import db class LevelListenerCog(commands.Cog): def __init__(self, bot): self.bot = bot @commands.Cog.listen...
39.763889
127
0.603563
53e1a5ff7a3d36d6e4a721ed844518a100618447
37,111
py
Python
.history/src/_fighter_20190422085345.py
vidalmatheus/MK-Project
6646020c59367ba0424d73a5861e13bbc0daac1f
[ "MIT" ]
1
2019-12-25T10:25:30.000Z
2019-12-25T10:25:30.000Z
.history/src/_fighter_20190422085345.py
vidalmatheus/MK-Project
6646020c59367ba0424d73a5861e13bbc0daac1f
[ "MIT" ]
1
2019-12-25T10:27:15.000Z
2019-12-25T10:27:15.000Z
.history/src/_fighter_20190422085345.py
vidalmatheus/MK-Project
6646020c59367ba0424d73a5861e13bbc0daac1f
[ "MIT" ]
1
2019-12-25T10:50:05.000Z
2019-12-25T10:50:05.000Z
from pygame_functions import * import fightScene import engine import menu class Fighter: fighterNames = ["Sub-Zero", "Scorpion"] fightMoves = [["w", "s", "a", "d"], ["up", "down", "left", "right"]] combatMoves = [["j","n","k","m","l","u","f"],["1","4","2","5","3","0","6"]] danceLimit = 7 walkLi...
46.916561
197
0.513514
520f8696f1aca8dabdf22775019ecbd4355f20ac
978
py
Python
tools/ng_aa_eval.py
sdasgup3/neongoby
961a043c21c46c139b1f7a4e11d1a3918c84da55
[ "BSD-3-Clause" ]
2
2020-08-29T15:04:36.000Z
2020-08-29T15:05:45.000Z
tools/ng_aa_eval.py
sdasgup3/neongoby
961a043c21c46c139b1f7a4e11d1a3918c84da55
[ "BSD-3-Clause" ]
null
null
null
tools/ng_aa_eval.py
sdasgup3/neongoby
961a043c21c46c139b1f7a4e11d1a3918c84da55
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # FIXME: general enough to be a script in the rcs project. However, it uses # ng_utils.load_aa for now. import argparse import os import sys import string import rcs_utils import ng_utils if __name__ == '__main__': parser = argparse.ArgumentParser( description = 'Check the sound...
29.636364
75
0.595092
0986654dffef34f0cd00bd15a846f9c3e4352529
161
py
Python
bot.py
kcomain/hydis
bd5746658ce30c1048bf6892e4639658f5cf8ff0
[ "MIT" ]
null
null
null
bot.py
kcomain/hydis
bd5746658ce30c1048bf6892e4639658f5cf8ff0
[ "MIT" ]
null
null
null
bot.py
kcomain/hydis
bd5746658ce30c1048bf6892e4639658f5cf8ff0
[ "MIT" ]
null
null
null
from discord.ext import commands class Skycord(commands.AutoShardedBot): """Skycord""" def __init__(self): super().__init__(self.get_prefix)
16.1
41
0.689441
430c46c63bd6cb4b02c1557e4ab28b8175bc975a
11,036
py
Python
checkers/agents/alpha_beta.py
richardkippers/gym-checkers
9a66820f0b3d6605cbaa37381cbde7dddf21a415
[ "MIT" ]
5
2018-12-17T02:06:59.000Z
2021-03-13T15:17:11.000Z
checkers/agents/alpha_beta.py
richardkippers/gym-checkers
9a66820f0b3d6605cbaa37381cbde7dddf21a415
[ "MIT" ]
4
2018-04-05T21:41:52.000Z
2018-04-11T18:19:18.000Z
checkers/agents/alpha_beta.py
falcondai/gym-checkers
99a69840e1d930fefee4097d7aa2afa7d956ee66
[ "MIT" ]
4
2019-08-02T18:57:05.000Z
2021-09-25T09:59:33.000Z
# Minimax with alpha-beta pruning and a hand-crafted valuation function from __future__ import absolute_import, division, print_function from six.moves import range import time from functools import partial from collections import defaultdict import numpy as np from checkers.game import Checkers from checkers.agent...
44.144
340
0.629848
b119b27b56c97edd20acf02a2902de7a0b0fd0b6
674
py
Python
mdns/Phidget22Python/setup.py
rabarar/phidget_docker
ceca56c86d27f291a4300a1257c02096862335ec
[ "MIT" ]
null
null
null
mdns/Phidget22Python/setup.py
rabarar/phidget_docker
ceca56c86d27f291a4300a1257c02096862335ec
[ "MIT" ]
null
null
null
mdns/Phidget22Python/setup.py
rabarar/phidget_docker
ceca56c86d27f291a4300a1257c02096862335ec
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup(name="Phidget22", version='1.10.20220211', author="Phidgets Inc", author_email="support@phidgets.com", description="Phidget22 Python wrapper library", long_description=long_description, long_...
29.304348
51
0.661721
71ee818630ee3502cdefcf27e126032087d067f6
1,349
py
Python
html_utils.py
RedeGlobo/transparencia_scraper
fa022dd515b50f23efe5a0c795fb401a2c0c297c
[ "MIT" ]
30
2017-12-07T15:21:05.000Z
2021-03-05T18:11:57.000Z
html_utils.py
RedeGlobo/transparencia_scraper
fa022dd515b50f23efe5a0c795fb401a2c0c297c
[ "MIT" ]
1
2017-12-07T18:06:46.000Z
2017-12-13T19:49:54.000Z
html_utils.py
RedeGlobo/transparencia_scraper
fa022dd515b50f23efe5a0c795fb401a2c0c297c
[ "MIT" ]
5
2017-12-09T01:04:35.000Z
2021-02-23T12:01:21.000Z
#!/usr/bin/env python # coding: utf-8 # Licensed under the MIT license: # http://www.opensource.org/licenses/mit-license # Copyright (c) 2017 Rede Globo __author__ = "Priscilla Lusie" __version__ = "1.0" import re import requests from bs4 import BeautifulSoup class Html_utils: @staticmethod def get_html(url...
31.372093
105
0.63232
ab8616db7106882458bc729b3e58849c95c81d16
10,386
py
Python
src/python/turicreate/toolkits/image_analysis/image_analysis.py
ylow/turicreate
a918b2d76c165f62c19895465b6ec443d7ada9fd
[ "BSD-3-Clause" ]
null
null
null
src/python/turicreate/toolkits/image_analysis/image_analysis.py
ylow/turicreate
a918b2d76c165f62c19895465b6ec443d7ada9fd
[ "BSD-3-Clause" ]
null
null
null
src/python/turicreate/toolkits/image_analysis/image_analysis.py
ylow/turicreate
a918b2d76c165f62c19895465b6ec443d7ada9fd
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright © 2017 Apple Inc. All rights reserved. # # Use of this source code is governed by a BSD-3-clause license that can # be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause from __future__ import print_function as _ from __future__ import division as _ from...
35.568493
171
0.661467
32620ae058454d569cdae4f0b1a4e780572fde43
938
py
Python
utils/points_to_geojson.py
TheMarex/deberg
050f9ae8930801cc03d216eddc515e9929f7b916
[ "BSD-2-Clause" ]
9
2015-06-23T14:01:50.000Z
2020-09-12T23:08:06.000Z
utils/points_to_geojson.py
TheMarex/deberg
050f9ae8930801cc03d216eddc515e9929f7b916
[ "BSD-2-Clause" ]
null
null
null
utils/points_to_geojson.py
TheMarex/deberg
050f9ae8930801cc03d216eddc515e9929f7b916
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 import json from graphml_parser import * def read_points(filepath): points = [] with open(filepath) as f: data = f.readlines() tuples = [] for d in data: idx = d.find(':') tuples.append((d[:idx], d[idx+1:])) points = [(int(d[0]), ...
24.684211
79
0.574627
1ce306577a434fbadcb181ea2f7f695171fd0ea3
13,155
py
Python
search_policies/cnn/nao_policy/model_search.py
kcyu2014/eval-nas
385376a3ef96336b54ee7e696af1d02b97aa5c32
[ "MIT" ]
47
2019-11-28T07:08:08.000Z
2021-12-09T05:11:37.000Z
search_policies/cnn/nao_policy/model_search.py
kcyu2014/eval-nas
385376a3ef96336b54ee7e696af1d02b97aa5c32
[ "MIT" ]
4
2020-01-14T02:16:13.000Z
2021-06-16T13:14:52.000Z
search_policies/cnn/nao_policy/model_search.py
kcyu2014/eval-nas
385376a3ef96336b54ee7e696af1d02b97aa5c32
[ "MIT" ]
9
2019-12-02T09:12:05.000Z
2021-07-06T02:00:15.000Z
import logging import torch import torch.nn as nn import torch.nn.functional as F from .operations import WSAvgPool2d, WSMaxPool2d, WSReLUConvBN, WSBN, WSSepConv, FactorizedReduce, MaybeCalibrateSize, AuxHeadCIFAR, AuxHeadImageNet, apply_drop_path class Node(nn.Module): def __init__(self, prev_layers, channels, s...
41.498423
165
0.586013
f273a0190075beac3ce4cc4b704c1d2b558c277a
6,492
py
Python
examples/ASSA/module/ASSA.py
zarzarj/MinkowskiEngine
1c1c09d23bd2147fa41cae25fa8837290c2bd07b
[ "MIT" ]
1
2022-01-17T13:06:05.000Z
2022-01-17T13:06:05.000Z
examples/ASSA/module/ASSA.py
zarzarj/MinkowskiEngine
1c1c09d23bd2147fa41cae25fa8837290c2bd07b
[ "MIT" ]
null
null
null
examples/ASSA/module/ASSA.py
zarzarj/MinkowskiEngine
1c1c09d23bd2147fa41cae25fa8837290c2bd07b
[ "MIT" ]
null
null
null
from typing import List import torch import torch.nn as nn from . import pointnet2_utils from .local_aggregation_operators import LocalAggregation from .conv import build_conv from easydict import EasyDict as edict class WeightedAvg(nn.Module): def __init__(self, n_samples): super(WeightedAvg, self).__i...
38.414201
118
0.600277
193dfb29bf12a9d7e051c5ec0ce8b570e369f5c8
1,620
py
Python
pysac/mhs_atmosphere/parameters/units_const.py
SolarDrew/pysac
9fd86dd03966b7e7f90653a47a2ccca7964c83bc
[ "BSD-2-Clause" ]
null
null
null
pysac/mhs_atmosphere/parameters/units_const.py
SolarDrew/pysac
9fd86dd03966b7e7f90653a47a2ccca7964c83bc
[ "BSD-2-Clause" ]
null
null
null
pysac/mhs_atmosphere/parameters/units_const.py
SolarDrew/pysac
9fd86dd03966b7e7f90653a47a2ccca7964c83bc
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Dec 11 14:02:22 2014 @author: sm1fg """ import numpy as np import astropy.constants as asc import astropy.units as u #import pysac.mhs_atmosphere.parameters.set_up as set_up def get_parameters(): #============================================================================ ...
40.5
77
0.38642
ad2960e1550016098faae4cb0436f9e25eb64e64
215
py
Python
redis-list.py
nasa9084/samples
26f24592be8adf8006fb552a86b6c56bdad1ec80
[ "MIT" ]
null
null
null
redis-list.py
nasa9084/samples
26f24592be8adf8006fb552a86b6c56bdad1ec80
[ "MIT" ]
null
null
null
redis-list.py
nasa9084/samples
26f24592be8adf8006fb552a86b6c56bdad1ec80
[ "MIT" ]
null
null
null
from redis import Redis redis = Redis() redis.lpush('piyo', 1, 2, 3) print(redis.lrange('piyo', 0, -1)) #=> [b'3', b'2', b'1'] print(redis.lpop('piyo')) #=> b'3' print(redis.lrange('piyo', 0, -1)) #=> [b'2', b'1']
19.545455
34
0.562791
61cfe2cb0a536ba321944fee660536c11d76f7ef
46
py
Python
finalware/models.py
un33k/django-finalware
7a0c1b0057fed476aafcba1dc0f9f63d8fba0e8e
[ "BSD-3-Clause" ]
13
2015-03-01T21:54:03.000Z
2020-09-11T22:49:35.000Z
finalware/models.py
un33k/django-finalware
7a0c1b0057fed476aafcba1dc0f9f63d8fba0e8e
[ "BSD-3-Clause" ]
4
2017-01-30T12:15:31.000Z
2018-05-21T10:17:19.000Z
finalware/models.py
un33k/django-finalware
7a0c1b0057fed476aafcba1dc0f9f63d8fba0e8e
[ "BSD-3-Clause" ]
4
2015-03-23T18:22:46.000Z
2020-12-22T12:01:08.000Z
# need this to register a post_migrate signal
23
45
0.804348
7554c6a39213850514402a917f9dc3180a577bb5
3,057
py
Python
model.py
kslymn/rtlsdr4
6bee6d83ed38af6fcfc67ccbaa54c754684ad6aa
[ "MIT" ]
null
null
null
model.py
kslymn/rtlsdr4
6bee6d83ed38af6fcfc67ccbaa54c754684ad6aa
[ "MIT" ]
null
null
null
model.py
kslymn/rtlsdr4
6bee6d83ed38af6fcfc67ccbaa54c754684ad6aa
[ "MIT" ]
null
null
null
import numpy as np from rtlsdr import * import freqshow class FreqShowModel(object): def __init__(self, width, height): self.width = width self.height = height self.min_auto_scale = True self.max_auto_scale = True self.set_min_intensity('AUTO') self.set_max_intensity('AUTO') # RTL-SDR Kütüphanes...
20.938356
75
0.702323
ca2622e6042e1f4ac4260df1ad6d00c0465e400d
244
py
Python
corehq/motech/dhis2/migrations/0007_populate_sqldhis2connection.py
akashkj/commcare-hq
b00a62336ec26cea1477dfb8c048c548cc462831
[ "BSD-3-Clause" ]
471
2015-01-10T02:55:01.000Z
2022-03-29T18:07:18.000Z
corehq/motech/dhis2/migrations/0007_populate_sqldhis2connection.py
akashkj/commcare-hq
b00a62336ec26cea1477dfb8c048c548cc462831
[ "BSD-3-Clause" ]
14,354
2015-01-01T07:38:23.000Z
2022-03-31T20:55:14.000Z
corehq/motech/dhis2/migrations/0007_populate_sqldhis2connection.py
akashkj/commcare-hq
b00a62336ec26cea1477dfb8c048c548cc462831
[ "BSD-3-Clause" ]
175
2015-01-06T07:16:47.000Z
2022-03-29T13:27:01.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.22 on 2019-11-22 18:53 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('dhis2', '0006_sqldhis2connection'), ] operations = []
17.428571
49
0.643443
faed15f2e88b353ec8d262ee1d324452386e1063
4,358
py
Python
JumpscaleLib/tools/jinja2/Jinja2.py
threefoldtech/jumpscale_lib9
03c1451133d777e5af106fcc6f75c1138bb997f2
[ "Apache-2.0" ]
null
null
null
JumpscaleLib/tools/jinja2/Jinja2.py
threefoldtech/jumpscale_lib9
03c1451133d777e5af106fcc6f75c1138bb997f2
[ "Apache-2.0" ]
220
2018-07-29T08:37:17.000Z
2019-08-05T15:01:27.000Z
JumpscaleLib/tools/jinja2/Jinja2.py
threefoldtech/jumpscale_lib9
03c1451133d777e5af106fcc6f75c1138bb997f2
[ "Apache-2.0" ]
1
2018-08-20T09:16:08.000Z
2018-08-20T09:16:08.000Z
from jumpscale import j from jinja2 import Template JSBASE = j.application.jsbase_get_class() class Jinja2(JSBASE): """ """ def __init__(self): self.__jslocation__ = "j.tools.jinja2" JSBASE.__init__(self) self.reset() self.logger_enable() def reset(self): se...
32.766917
170
0.587884
54f0f5c54d2d6bb99f372e5b4dd5f7e6edf8772b
5,115
py
Python
aptsources_cleanup/util/relations.py
Erotemic/aptsources-cleanup
ac5fc5ccf5df81b414ccfed23c7d7efad355fcd5
[ "MIT" ]
null
null
null
aptsources_cleanup/util/relations.py
Erotemic/aptsources-cleanup
ac5fc5ccf5df81b414ccfed23c7d7efad355fcd5
[ "MIT" ]
null
null
null
aptsources_cleanup/util/relations.py
Erotemic/aptsources-cleanup
ac5fc5ccf5df81b414ccfed23c7d7efad355fcd5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 __all__ = ('EquivalenceRelation',) import itertools from operator import methodcaller from .functools import comp, partial as fpartial from .collections import ExtSet class FrozensetAltRepr(frozenset): __slots__ = () def __str__(self): return self._str_impl(self) @staticmet...
29.566474
89
0.569697
e3778ea911919ed2178ec4acd5faf9939adf3447
1,307
py
Python
src/inventory/migrations/0004_auto_20210524_1413.py
migvill5/pharmanager
ac84bd4300cb0243e6608d98d43b530054c641f5
[ "MIT" ]
null
null
null
src/inventory/migrations/0004_auto_20210524_1413.py
migvill5/pharmanager
ac84bd4300cb0243e6608d98d43b530054c641f5
[ "MIT" ]
null
null
null
src/inventory/migrations/0004_auto_20210524_1413.py
migvill5/pharmanager
ac84bd4300cb0243e6608d98d43b530054c641f5
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-05-24 19:13 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('inventory', '0003_auto_20210524_1307'), ] operations = [ migrations.RemoveField( model_name='pr...
33.512821
130
0.58531
c26ccde4da8f4b4ee2d4fa82360006c2fec6504a
7,477
py
Python
tests/console/commands/plugin/test_add.py
nrosenstein-forks/poetry
28d05d002475f0cc55e7cc46ae01f9a3ce4e03a8
[ "MIT" ]
null
null
null
tests/console/commands/plugin/test_add.py
nrosenstein-forks/poetry
28d05d002475f0cc55e7cc46ae01f9a3ce4e03a8
[ "MIT" ]
null
null
null
tests/console/commands/plugin/test_add.py
nrosenstein-forks/poetry
28d05d002475f0cc55e7cc46ae01f9a3ce4e03a8
[ "MIT" ]
null
null
null
from typing import TYPE_CHECKING from typing import Dict from typing import Union import pytest from poetry.core.packages.package import Package from poetry.factory import Factory if TYPE_CHECKING: from cleo.testers.command_tester import CommandTester from pytest_mock import MockerFixture from poetry....
25.175084
88
0.694396
5a1d95aa86475c36026dbc75d51eba38190c0a69
143
py
Python
python/hello.py
maeste/wsk_os_examples
7ecfc8c0b01fb628971c0ff6995225e95b881b59
[ "Apache-2.0" ]
1
2018-09-10T14:10:10.000Z
2018-09-10T14:10:10.000Z
python/hello.py
maeste/wsk_os_examples
7ecfc8c0b01fb628971c0ff6995225e95b881b59
[ "Apache-2.0" ]
null
null
null
python/hello.py
maeste/wsk_os_examples
7ecfc8c0b01fb628971c0ff6995225e95b881b59
[ "Apache-2.0" ]
null
null
null
def main(args): name = args.get("name", "stranger") greeting = "Hello " + name + "!" print(greeting) return {"text": greeting}
23.833333
39
0.573427
48b70eff1b684bbe3643e348eb07068a58affab7
6,995
py
Python
sketchgraphs_models/torch_extensions/segment_ops.py
JoeLambourne/SketchGraphs
183c65f82d71d82c62b253092e9b7fa65846a3e6
[ "MIT" ]
null
null
null
sketchgraphs_models/torch_extensions/segment_ops.py
JoeLambourne/SketchGraphs
183c65f82d71d82c62b253092e9b7fa65846a3e6
[ "MIT" ]
null
null
null
sketchgraphs_models/torch_extensions/segment_ops.py
JoeLambourne/SketchGraphs
183c65f82d71d82c62b253092e9b7fa65846a3e6
[ "MIT" ]
null
null
null
import torch from functools import partial from . import _util from ._repeat_interleave import repeat_interleave def segment_op_python(values, scopes, op): if scopes.dim() != 2: raise ValueError("Scopes must be two-dimensional.") if scopes.shape[1] != 2: raise ValueError("Scopes must be of le...
32.840376
111
0.732952
b462c409a928e7728be0e859c16a003fc48f79e7
4,700
py
Python
MODIS_Aggregation/cloud_fraction_aggregate.py
sdeshpa1/MODIS_Aggregation
caaae9d472490439c2b30782298fdb7632df96bf
[ "Apache-2.0" ]
null
null
null
MODIS_Aggregation/cloud_fraction_aggregate.py
sdeshpa1/MODIS_Aggregation
caaae9d472490439c2b30782298fdb7632df96bf
[ "Apache-2.0" ]
null
null
null
MODIS_Aggregation/cloud_fraction_aggregate.py
sdeshpa1/MODIS_Aggregation
caaae9d472490439c2b30782298fdb7632df96bf
[ "Apache-2.0" ]
null
null
null
import numpy as np import xarray as xr import matplotlib.pyplot as plt def aggregateOneFileData(M06_file, M03_file): """Aggregate one file from MYD06_L2 and its corresponding file from MYD03. Read 'Cloud_Mask_1km' variable from the MYD06_L2 file, read 'Latitude' and 'Longitude' variables from the MYD03 file. Grou...
51.086957
256
0.684043
8650281ec03789bcda4192bbd47478bcf8c14111
18,384
py
Python
tests/conftest.py
rchenzheng/datadog-api-client-python
2e86ac098c6f0c7fdd90ed218224587c0f8eafef
[ "Apache-2.0" ]
null
null
null
tests/conftest.py
rchenzheng/datadog-api-client-python
2e86ac098c6f0c7fdd90ed218224587c0f8eafef
[ "Apache-2.0" ]
null
null
null
tests/conftest.py
rchenzheng/datadog-api-client-python
2e86ac098c6f0c7fdd90ed218224587c0f8eafef
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 """Define basic fixtures.""" import os # First patch httplib tracer = None try: from ddtrace import config, patch, tracer if os.getenv("RECORD", "false") != "none": from ddtrace.internal.writer import AgentWriter class Writer(AgentWriter): def is_alive(self): ...
32.770053
114
0.655189
bd94d549a1919c8998708deb042ae1baaaea6f35
1,910
py
Python
acme/environment_loop_test.py
MEDCOMP/SC2_ACME
511f5c4388ad4b8ef157e46678cc22bb0a199ad4
[ "Apache-2.0" ]
1
2020-08-31T23:46:32.000Z
2020-08-31T23:46:32.000Z
acme/environment_loop_test.py
MEDCOMP/SC2_ACME
511f5c4388ad4b8ef157e46678cc22bb0a199ad4
[ "Apache-2.0" ]
null
null
null
acme/environment_loop_test.py
MEDCOMP/SC2_ACME
511f5c4388ad4b8ef157e46678cc22bb0a199ad4
[ "Apache-2.0" ]
1
2021-12-06T07:37:31.000Z
2021-12-06T07:37:31.000Z
# python3 # Copyright 2018 DeepMind Technologies Limited. 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 re...
34.107143
77
0.756545
9a08a6a8db6a61829a5658c5bf94a48c0fc82d75
33,044
py
Python
breveIDE_windows_2.7.2_2/breveIDE_2.7.2/lib/python2.3/pdb.py
Lamouse/Evolutionary-Creativity
9e9a4094285241d0541e0b87a3bd2c5e4ba804d3
[ "MIT" ]
1
2020-11-26T18:53:46.000Z
2020-11-26T18:53:46.000Z
breveIDE_windows_2.7.2_2/breveIDE_2.7.2/lib/python2.3/pdb.py
Lamouse/Evolutionary-Creativity
9e9a4094285241d0541e0b87a3bd2c5e4ba804d3
[ "MIT" ]
null
null
null
breveIDE_windows_2.7.2_2/breveIDE_2.7.2/lib/python2.3/pdb.py
Lamouse/Evolutionary-Creativity
9e9a4094285241d0541e0b87a3bd2c5e4ba804d3
[ "MIT" ]
1
2019-04-11T11:27:01.000Z
2019-04-11T11:27:01.000Z
#! /usr/bin/env python """A Python debugger.""" # (See pdb.doc for documentation.) import sys import linecache import cmd import bdb from repr import Repr import os import re import pprint # Create a custom safe Repr instance and increase its maxstring. # The default of 30 truncates error messages too easily. _repr...
31.590822
77
0.544577
94072318c0a88a20448674fa1f511d1d45d3f58a
294
py
Python
irrigator_pro/notifications/forms.py
warnes/irrigatorpro
4838f8832bdbf87f394a0298adc5dabfc26e82e8
[ "MIT" ]
null
null
null
irrigator_pro/notifications/forms.py
warnes/irrigatorpro
4838f8832bdbf87f394a0298adc5dabfc26e82e8
[ "MIT" ]
null
null
null
irrigator_pro/notifications/forms.py
warnes/irrigatorpro
4838f8832bdbf87f394a0298adc5dabfc26e82e8
[ "MIT" ]
null
null
null
from django.forms import ModelForm from notifications.models import NotificationsRule class NotificationsForm(ModelForm): class Meta: model=NotificationsRule fields = [label, farm, field_list, recipients, notification_type, level, delivery_time, time_zone, recipients]
24.5
118
0.772109
c235b47a3f1892b3f885724c2859d8d8b7da3307
14,934
py
Python
src/abstractive/predictor_builder.py
alphadl/hiersumm
58c4baeb709bc0550f85253cc12192054b0c7901
[ "Apache-2.0" ]
211
2019-05-31T05:40:04.000Z
2022-03-22T06:09:06.000Z
src/abstractive/predictor_builder.py
alphadl/hiersumm
58c4baeb709bc0550f85253cc12192054b0c7901
[ "Apache-2.0" ]
25
2019-06-01T01:17:21.000Z
2021-07-02T22:26:24.000Z
src/abstractive/predictor_builder.py
alphadl/hiersumm
58c4baeb709bc0550f85253cc12192054b0c7901
[ "Apache-2.0" ]
49
2019-05-31T02:04:05.000Z
2022-03-11T08:10:35.000Z
#!/usr/bin/env python """ Translator Class and builder """ from __future__ import print_function import codecs import os import math import torch from itertools import count from tensorboardX import SummaryWriter from abstractive.beam import GNMTGlobalScorer from abstractive.cal_rouge import test_rouge, rouge_resul...
39.930481
131
0.53636
1b7192de492b5f75fc8bc50abaab48bdf0826be0
8,661
py
Python
music.py
yc930401/Baidu_music_crawler
e31a80c939e5c342915c2f24c73b98d9d16e7caa
[ "MIT" ]
null
null
null
music.py
yc930401/Baidu_music_crawler
e31a80c939e5c342915c2f24c73b98d9d16e7caa
[ "MIT" ]
null
null
null
music.py
yc930401/Baidu_music_crawler
e31a80c939e5c342915c2f24c73b98d9d16e7caa
[ "MIT" ]
null
null
null
import os import json import time import sqlite3 import requests import argparse import pandas as pd from lxml import etree from selenium import webdriver url = 'http://music.baidu.com' headers = { 'Accept':'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8', 'Accept-E...
40.661972
641
0.588616
1e396b19e2209f1593905f85943c90447277de1c
3,353
py
Python
grr/client/client_actions/file_fingerprint.py
panhania/grr
fe16a7311a528e31fe0e315a880e98273b8df960
[ "Apache-2.0" ]
null
null
null
grr/client/client_actions/file_fingerprint.py
panhania/grr
fe16a7311a528e31fe0e315a880e98273b8df960
[ "Apache-2.0" ]
null
null
null
grr/client/client_actions/file_fingerprint.py
panhania/grr
fe16a7311a528e31fe0e315a880e98273b8df960
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """Action to fingerprint files on the client.""" import hashlib from grr.lib import fingerprint from grr.client import vfs from grr.client.client_actions import standard from grr.lib.rdfvalues import client as rdf_client class Fingerprinter(fingerprint.Fingerprinter): """A fingerprinter with...
35.670213
74
0.673725