hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
cae76b75e5778ea107f90f9ff7817de4ffab3abc
159
py
Python
src/webhooks/backends/__init__.py
fellowship/Zoom2Youtube
e2ec37d0921c1d6b4f7be3249f156618bbee71c9
[ "MIT" ]
null
null
null
src/webhooks/backends/__init__.py
fellowship/Zoom2Youtube
e2ec37d0921c1d6b4f7be3249f156618bbee71c9
[ "MIT" ]
null
null
null
src/webhooks/backends/__init__.py
fellowship/Zoom2Youtube
e2ec37d0921c1d6b4f7be3249f156618bbee71c9
[ "MIT" ]
null
null
null
from webhooks.backends.slack import * from webhooks.backends.zapier import * from webhooks.backends.welltory import * from webhooks.backends.air_table import *
39.75
41
0.830189
34063eec80eb6c22fe63e3dc6c2b11f788156c1e
814
py
Python
src/todo/urls.py
GMNaim/To-Do-App
7a9ebdd4481227350c634079f01ca6b6140cde76
[ "MIT" ]
null
null
null
src/todo/urls.py
GMNaim/To-Do-App
7a9ebdd4481227350c634079f01ca6b6140cde76
[ "MIT" ]
6
2021-03-19T01:17:19.000Z
2021-09-22T18:47:49.000Z
src/todo/urls.py
GMNaim/To-Do-App
7a9ebdd4481227350c634079f01ca6b6140cde76
[ "MIT" ]
null
null
null
"""todo URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/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-...
35.391304
78
0.681818
b2a3f4e9f5e394fd0c4ca66dddfede1a0fea84f3
12,942
py
Python
homeassistant/components/xiaomi_miio/number.py
learn-home-automation/core
c5d8792c3487e9b418b1e7d623bf59e7dbddd6b7
[ "Apache-2.0" ]
22,481
2020-03-02T13:09:59.000Z
2022-03-31T23:34:28.000Z
homeassistant/components/xiaomi_miio/number.py
learn-home-automation/core
c5d8792c3487e9b418b1e7d623bf59e7dbddd6b7
[ "Apache-2.0" ]
31,101
2020-03-02T13:00:16.000Z
2022-03-31T23:57:36.000Z
homeassistant/components/xiaomi_miio/number.py
learn-home-automation/core
c5d8792c3487e9b418b1e7d623bf59e7dbddd6b7
[ "Apache-2.0" ]
11,411
2020-03-02T14:19:20.000Z
2022-03-31T22:46:07.000Z
"""Motor speed support for Xiaomi Mi Air Humidifier.""" from __future__ import annotations from dataclasses import dataclass from homeassistant.components.number import NumberEntity, NumberEntityDescription from homeassistant.config_entries import ConfigEntry from homeassistant.const import DEGREE, TIME_MINUTES from ...
33.528497
85
0.685365
fa59b1bfccf11720b79bdf0010bd4d74fa46cf49
520
py
Python
4_Backwoods_Forest/172-Forest_Jogging/forest_logging.py
katitek/Code-Combat
fbda1ac0ae4a2e2cbfce21492a2caec8098f1bef
[ "MIT" ]
null
null
null
4_Backwoods_Forest/172-Forest_Jogging/forest_logging.py
katitek/Code-Combat
fbda1ac0ae4a2e2cbfce21492a2caec8098f1bef
[ "MIT" ]
null
null
null
4_Backwoods_Forest/172-Forest_Jogging/forest_logging.py
katitek/Code-Combat
fbda1ac0ae4a2e2cbfce21492a2caec8098f1bef
[ "MIT" ]
null
null
null
def onSpawn(event): while True pet.moveXY(9, 24) pet.moveXY(30, 43) pet.moveXY(51, 24) pet.moveXY(30, 5) def castIt(): if hero.canCast("haste"): hero.cast("haste", pet) elif hero.isReady("reset-cooldown"): hero.resetCooldown("haste") pet.on("spawn", onSpawn...
19.259259
40
0.553846
605c666a675dbb58fe39d8d7ffce6bce92513630
3,157
py
Python
isi_sdk_8_0/isi_sdk_8_0/models/cluster_patch_patches.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_8_0/isi_sdk_8_0/models/cluster_patch_patches.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_8_0/isi_sdk_8_0/models/cluster_patch_patches.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 3 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from isi_sdk_8_0.models.cluster_p...
27.452174
102
0.578714
6b471ff39e7216be756a12689aacd8bae072b01e
2,999
py
Python
tools/html_tilegrid.py
umarcor/prjtrellis
9b3db7ba9a02e7d2f49c52ce062d5b22e320004c
[ "MIT" ]
256
2018-03-05T00:28:46.000Z
2022-03-04T22:33:29.000Z
tools/html_tilegrid.py
umarcor/prjtrellis
9b3db7ba9a02e7d2f49c52ce062d5b22e320004c
[ "MIT" ]
70
2018-03-12T21:55:02.000Z
2020-06-22T12:06:08.000Z
tools/html_tilegrid.py
umarcor/prjtrellis
9b3db7ba9a02e7d2f49c52ce062d5b22e320004c
[ "MIT" ]
68
2018-03-12T21:05:01.000Z
2021-03-14T21:08:33.000Z
#!/usr/bin/env python3 """ Convert the tile grid for a given family and device to HTML format """ import sys, re import argparse import database import tiles as tilelib parser = argparse.ArgumentParser(description=__doc__) parser.add_argument('family', type=str, help="FPGA family (e.g. ECP5)") pars...
32.956044
173
0.570524
228c06f9aac5bd24ada12f5560f6316737e5d8db
5,896
py
Python
goverge/test/test_main.py
matthewsullivan-wf/goverge
9091e375985c077a9a7210dedc30a2582a8c0a84
[ "Apache-2.0" ]
4
2016-07-21T00:53:15.000Z
2018-05-28T09:18:21.000Z
goverge/test/test_main.py
matthewsullivan-wf/goverge
9091e375985c077a9a7210dedc30a2582a8c0a84
[ "Apache-2.0" ]
52
2016-01-19T22:22:31.000Z
2021-09-08T20:17:54.000Z
goverge/test/test_main.py
matthewsullivan-wf/goverge
9091e375985c077a9a7210dedc30a2582a8c0a84
[ "Apache-2.0" ]
7
2016-06-29T22:00:08.000Z
2021-05-05T20:56:39.000Z
""" Copyright 2016 Workiva, INC 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, software dist...
33.123596
76
0.596845
caa29efeb2adfbad53043dd78e0bf1c8fe8e5797
722
py
Python
apps/discordbot/migrations/0002_connectfourgame.py
dlzou/csua-backend
a2a6642017b81c2fe2bcc497ecc772e9b7dfe210
[ "MIT" ]
null
null
null
apps/discordbot/migrations/0002_connectfourgame.py
dlzou/csua-backend
a2a6642017b81c2fe2bcc497ecc772e9b7dfe210
[ "MIT" ]
null
null
null
apps/discordbot/migrations/0002_connectfourgame.py
dlzou/csua-backend
a2a6642017b81c2fe2bcc497ecc772e9b7dfe210
[ "MIT" ]
null
null
null
# Generated by Django 2.2.19 on 2021-03-05 03:07 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("discordbot", "0001_initial")] operations = [ migrations.CreateModel( name="ConnectFourGame", fields=[ ("message_...
31.391304
87
0.577562
93891f46ffd0a4ba4e1ff1abf4330bd7c4c38427
1,776
py
Python
tests/test_models/test_heads/test_dm_head.py
vietawake/mmSegmentation
1f643d6d81708ebf5726c48f66d02c70fe99fe00
[ "Apache-2.0" ]
null
null
null
tests/test_models/test_heads/test_dm_head.py
vietawake/mmSegmentation
1f643d6d81708ebf5726c48f66d02c70fe99fe00
[ "Apache-2.0" ]
null
null
null
tests/test_models/test_heads/test_dm_head.py
vietawake/mmSegmentation
1f643d6d81708ebf5726c48f66d02c70fe99fe00
[ "Apache-2.0" ]
null
null
null
import pytest import torch from mmseg.models.decode_heads import DMHead from .utils import _conv_has_norm, to_cuda def test_dm_head(): with pytest.raises(AssertionError): # filter_sizes must be list|tuple DMHead(in_channels=32, channels=16, num_classes=19, filter_sizes=1) # tes...
30.101695
76
0.626126
0b193141a87e51d0625337475d90e2e59df61714
126
py
Python
office365/onedrive/versions/drive_item_version.py
rikeshtailor/Office365-REST-Python-Client
ca7bfa1b22212137bb4e984c0457632163e89a43
[ "MIT" ]
null
null
null
office365/onedrive/versions/drive_item_version.py
rikeshtailor/Office365-REST-Python-Client
ca7bfa1b22212137bb4e984c0457632163e89a43
[ "MIT" ]
null
null
null
office365/onedrive/versions/drive_item_version.py
rikeshtailor/Office365-REST-Python-Client
ca7bfa1b22212137bb4e984c0457632163e89a43
[ "MIT" ]
null
null
null
from office365.onedrive.versions.base_item_version import BaseItemVersion class DriveItemVersion(BaseItemVersion): pass
21
73
0.849206
5a70e1bcb99c4922f022512f99a8893706688a7d
345
py
Python
jobya/resumes/api/serializers.py
xblzbjs/Jobya
b936ce37da86bfe8326a532dab3887fae6c65e45
[ "MIT" ]
null
null
null
jobya/resumes/api/serializers.py
xblzbjs/Jobya
b936ce37da86bfe8326a532dab3887fae6c65e45
[ "MIT" ]
2
2022-02-08T01:15:52.000Z
2022-03-31T04:24:15.000Z
jobya/resumes/api/serializers.py
xblzbjs/Jobya
b936ce37da86bfe8326a532dab3887fae6c65e45
[ "MIT" ]
null
null
null
from rest_framework import serializers from jobya.resumes.models import ResumeFile class ResumeFileSerializer(serializers.ModelSerializer): """Resume file serializer.""" creator = serializers.HiddenField(default=serializers.CurrentUserDefault()) class Meta: model = ResumeFile fields = (...
24.642857
79
0.730435
f58ecf1dd5fd54e05a78919210ae3758b0e7201c
13,126
py
Python
etcd3gw/tests/test_etcd3gw.py
gmelikov/etcd3-gateway
2c039f8256e666fed81fb993d3c1692dcf6e3fbc
[ "Apache-2.0" ]
null
null
null
etcd3gw/tests/test_etcd3gw.py
gmelikov/etcd3-gateway
2c039f8256e666fed81fb993d3c1692dcf6e3fbc
[ "Apache-2.0" ]
null
null
null
etcd3gw/tests/test_etcd3gw.py
gmelikov/etcd3-gateway
2c039f8256e666fed81fb993d3c1692dcf6e3fbc
[ "Apache-2.0" ]
null
null
null
# 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, software # distributed under t...
33.742931
78
0.598659
4126f1a0f0b97bc4caf47f351842b2fc9b17e67a
11,890
py
Python
src/demo.py
devanshamin/Vault-Plus
67ef8bab0278977bb5d2e9fd4e6328ef120b47c7
[ "MIT" ]
null
null
null
src/demo.py
devanshamin/Vault-Plus
67ef8bab0278977bb5d2e9fd4e6328ef120b47c7
[ "MIT" ]
null
null
null
src/demo.py
devanshamin/Vault-Plus
67ef8bab0278977bb5d2e9fd4e6328ef120b47c7
[ "MIT" ]
null
null
null
from PyQt5 import QtCore, QtGui, QtWidgets import src.images class Demo(object): """Display sequence demo GUI to the user.""" def setupUi(self, Form: QtWidgets.QWidget) -> None: """Creates the widget objects in the proper containers and assigns the proper object names to them. Args: ...
169.857143
1,046
0.639697
27d23a362cea09ad1e6a3879b8bcbf637c25935a
2,158
py
Python
epytope/Data/pssms/tepitopepan/mat/DRB1_0130_9.py
christopher-mohr/epytope
8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd
[ "BSD-3-Clause" ]
7
2021-02-01T18:11:28.000Z
2022-01-31T19:14:07.000Z
epytope/Data/pssms/tepitopepan/mat/DRB1_0130_9.py
christopher-mohr/epytope
8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd
[ "BSD-3-Clause" ]
22
2021-01-02T15:25:23.000Z
2022-03-14T11:32:53.000Z
epytope/Data/pssms/tepitopepan/mat/DRB1_0130_9.py
christopher-mohr/epytope
8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd
[ "BSD-3-Clause" ]
4
2021-05-28T08:50:38.000Z
2022-03-14T11:45:32.000Z
DRB1_0130_9 = {0: {'A': -999.0, 'E': -999.0, 'D': -999.0, 'G': -999.0, 'F': -0.004754, 'I': -0.99525, 'H': -999.0, 'K': -999.0, 'M': -0.99525, 'L': -0.99525, 'N': -999.0, 'Q': -999.0, 'P': -999.0, 'S': -999.0, 'R': -999.0, 'T': -999.0, 'W': -0.004754, 'V': -0.99525, 'Y': -0.004754}, 1: {'A': 0.0, 'E': 0.1, 'D': -1.3, '...
2,158
2,158
0.392493
63770fe47f11f71a1ca61210794c203ba1736cb1
651
py
Python
moksha/api/widgets/layout/__init__.py
lmacken/moksha
b75325b8fd0fb3ea2d393ddb81c27f32ae7e0b96
[ "Apache-2.0" ]
1
2019-06-27T11:36:50.000Z
2019-06-27T11:36:50.000Z
moksha/api/widgets/layout/__init__.py
lmacken/moksha
b75325b8fd0fb3ea2d393ddb81c27f32ae7e0b96
[ "Apache-2.0" ]
null
null
null
moksha/api/widgets/layout/__init__.py
lmacken/moksha
b75325b8fd0fb3ea2d393ddb81c27f32ae7e0b96
[ "Apache-2.0" ]
null
null
null
# This file is part of Moksha. # Copyright (C) 2008-2010 Red Hat, Inc. # # 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 ...
38.294118
74
0.757296
6fa4c27e397e9549849e81c867909fb04b954d81
4,840
py
Python
smc-monitoring/smc_monitoring/pubsub/subscribers.py
gabstopper/smc-python
54386c8a710727cc1acf69334a57b155d2f5408c
[ "Apache-2.0" ]
30
2016-09-01T03:48:04.000Z
2021-06-23T19:44:05.000Z
smc-monitoring/smc_monitoring/pubsub/subscribers.py
ad1rie1/smc-python
51788783ce14dbeb4e5c90d7f5bba5d9720dcc0e
[ "Apache-2.0" ]
75
2017-04-22T10:56:37.000Z
2021-12-01T05:13:08.000Z
smc-monitoring/smc_monitoring/pubsub/subscribers.py
ad1rie1/smc-python
51788783ce14dbeb4e5c90d7f5bba5d9720dcc0e
[ "Apache-2.0" ]
16
2016-05-09T16:56:00.000Z
2020-07-06T11:11:46.000Z
''' Created on Sep 24, 2017 @author: davidlepage ''' from smc.base.model import Element from smc_monitoring.wsocket import SMCSocketProtocol EVENT_ACTIONS = set(['create', 'update', 'delete', 'trashed', 'untrashed', 'validating', 'validated']) class Notification(object): """ Subscribe to notificatio...
36.946565
102
0.635124
782c84f22717051854ffb17b596e585ee36381bd
1,286
py
Python
sff2018.py
THREDgroup/AMnet
4f269c7a09d39051524e29e6e1f7a70169b7ff64
[ "MIT" ]
1
2019-03-24T10:49:23.000Z
2019-03-24T10:49:23.000Z
sff2018.py
THREDgroup/AMnet
4f269c7a09d39051524e29e6e1f7a70169b7ff64
[ "MIT" ]
null
null
null
sff2018.py
THREDgroup/AMnet
4f269c7a09d39051524e29e6e1f7a70169b7ff64
[ "MIT" ]
null
null
null
import AMnet PRE_PROCESS = not True TRAIN = not True EXAMPLES = True QUICK = False # Set variables # latent_dims = [pow(2, y) for y in range(1, 8)] latent_dims = [8] example_size = (3, 3) if PRE_PROCESS: AMnet.preprocessing.extract_data('050') AMnet.preprocessing.augment_data() # Train all the models if TRA...
33.842105
141
0.738725
1bdcbb86f85db9e3c750e715b6512afbec301a16
24,395
py
Python
python/ray/autoscaler/_private/cli_logger.py
superkirill/ray
ea1d081aac68be586ee1ed48bbbcfa6e09d34cb0
[ "Apache-2.0" ]
1
2021-01-16T07:09:02.000Z
2021-01-16T07:09:02.000Z
python/ray/autoscaler/_private/cli_logger.py
superkirill/ray
ea1d081aac68be586ee1ed48bbbcfa6e09d34cb0
[ "Apache-2.0" ]
105
2021-02-13T08:05:09.000Z
2022-03-30T03:53:22.000Z
python/ray/autoscaler/_private/cli_logger.py
pdames/ray
655cc584a983cf5e281e1ba79945af92d7f8100a
[ "Apache-2.0" ]
null
null
null
"""Logger implementing the Command Line Interface. A replacement for the standard Python `logging` API designed for implementing a better CLI UX for the cluster launcher. Supports color, bold text, italics, underlines, etc. (depending on TTY features) as well as indentation and other structured output. """ from conte...
31.315789
79
0.561468
baf4c4e13ff75aaadde000b076f43f21e338ec51
2,624
py
Python
reproducibility_project/src/proteins/merP2.py
GregorySchwing/reproducibility_study
6926840748b84395cf592c619d6ae6025c41a639
[ "MIT" ]
null
null
null
reproducibility_project/src/proteins/merP2.py
GregorySchwing/reproducibility_study
6926840748b84395cf592c619d6ae6025c41a639
[ "MIT" ]
null
null
null
reproducibility_project/src/proteins/merP2.py
GregorySchwing/reproducibility_study
6926840748b84395cf592c619d6ae6025c41a639
[ "MIT" ]
null
null
null
from numpy import zeros import numpy as np import pandas as pd from parmed.charmm import CharmmPsfFile from parmed.formats.registry import load_file #sel = Select() #ResiduesToStrip = sel.getBoolArray(pos2comb, "same residue as (exwithin 2.4 of protein)") solvbox2 = CharmmPsfFile("mosdef_box_0.psf") solvbox2_pos = lo...
32
102
0.769055
5460d9c277f447f23f8c4f1ee9a33de08cfbf1d2
13,414
py
Python
rllib/utils/test_utils.py
lavanyashukla/ray
9c1a75b6ff82a842131e6beb3c260188befc21df
[ "Apache-2.0" ]
1
2021-09-11T08:04:34.000Z
2021-09-11T08:04:34.000Z
rllib/utils/test_utils.py
lavanyashukla/ray
9c1a75b6ff82a842131e6beb3c260188befc21df
[ "Apache-2.0" ]
6
2022-03-18T14:06:24.000Z
2022-03-26T07:13:16.000Z
rllib/utils/test_utils.py
lavanyashukla/ray
9c1a75b6ff82a842131e6beb3c260188befc21df
[ "Apache-2.0" ]
1
2020-12-12T13:59:22.000Z
2020-12-12T13:59:22.000Z
import gym import logging import numpy as np from ray.rllib.utils.framework import try_import_jax, try_import_tf, \ try_import_torch jax, flax = try_import_jax() tf1, tf, tfv = try_import_tf() if tf1: eager_mode = None try: from tensorflow.python.eager.context import eager_mode except (ImportE...
38.107955
79
0.528701
b4bc9e859b1d0ee15d8a188895b0113f63fa28bf
1,610
py
Python
internal/notes/builtin-SAVE/packages/py-pyminifier/package.py
HPCToolkit/hpctest
5ff4455582bf39e75530a31badcf6142081b386b
[ "BSD-3-Clause" ]
1
2019-01-17T20:07:19.000Z
2019-01-17T20:07:19.000Z
internal/notes/builtin-SAVE/packages/py-pyminifier/package.py
HPCToolkit/hpctest
5ff4455582bf39e75530a31badcf6142081b386b
[ "BSD-3-Clause" ]
null
null
null
internal/notes/builtin-SAVE/packages/py-pyminifier/package.py
HPCToolkit/hpctest
5ff4455582bf39e75530a31badcf6142081b386b
[ "BSD-3-Clause" ]
2
2019-08-06T18:13:57.000Z
2021-11-05T18:19:49.000Z
############################################################################## # Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
43.513514
83
0.679503
aaf341d7edd8c41a02ea47d9e5690fe8a70c5bdc
77,740
py
Python
lib/galaxy/managers/workflows.py
dlal-group/galaxy
743fd76e9120fd5e6466e81cc11fa008911ae304
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/managers/workflows.py
dlal-group/galaxy
743fd76e9120fd5e6466e81cc11fa008911ae304
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/managers/workflows.py
dlal-group/galaxy
743fd76e9120fd5e6466e81cc11fa008911ae304
[ "CC-BY-3.0" ]
null
null
null
import json import logging import os import uuid from collections import namedtuple from typing import ( Dict, List, Optional, ) from gxformat2 import ( from_galaxy_native, ImporterGalaxyInterface, ImportOptions, python_to_workflow, ) from pydantic import BaseModel from sqlalchemy import an...
49.233692
165
0.621353
88eff180016c575cb04a75703ec05c7041cd078b
1,332
py
Python
code/strategies/LeNet1Classifier.py
superb20/MNIST-benchmark
5c4a566b3333ef6cbf00e3b3db71f5000254aeda
[ "MIT" ]
1
2022-02-08T07:22:46.000Z
2022-02-08T07:22:46.000Z
code/strategies/LeNet1Classifier.py
superb20/MNIST-benchmark
5c4a566b3333ef6cbf00e3b3db71f5000254aeda
[ "MIT" ]
null
null
null
code/strategies/LeNet1Classifier.py
superb20/MNIST-benchmark
5c4a566b3333ef6cbf00e3b3db71f5000254aeda
[ "MIT" ]
null
null
null
from strategies.AbstractMnistStrategy import AbstractMnistStrategy from keras.models import Sequential from keras.layers import Dense from keras.layers.core import Flatten from keras.layers.convolutional import Conv2D from keras.layers.convolutional import AveragePooling2D class LeNet1Classifier(AbstractMn...
33.3
84
0.635886
b8f73c5be122fd00e55f5863dbdff667a966f092
1,496
py
Python
Graphs/graph.py
jeff-lund/CS350
7227b53275c62d45e899a531136a96a866c32a16
[ "MIT" ]
2
2019-10-16T01:59:42.000Z
2019-11-13T19:25:00.000Z
Graphs/graph.py
jeff-lund/CS350
7227b53275c62d45e899a531136a96a866c32a16
[ "MIT" ]
null
null
null
Graphs/graph.py
jeff-lund/CS350
7227b53275c62d45e899a531136a96a866c32a16
[ "MIT" ]
2
2019-10-16T01:59:49.000Z
2019-11-15T01:19:18.000Z
import random from sys import argv class Vertex: def __init__(self, animal): self.animal = animal self.edges = [] def dfs(V): stack = [0] processed = [] marked = [False] * len(V) while stack: s = stack.pop() if not marked[s]: print(V[s].animal, "|", end=...
21.070423
67
0.537433
c948c0becaa17f86157c81e8392aac0ea071ba3b
3,409
py
Python
naoqi_apps/nodes/naoqi_listening_movement.py
chaotic-bruno/naoqi_bridge
7543857da53e845c34d5336565a2890609ff3809
[ "BSD-3-Clause" ]
31
2015-02-14T15:56:44.000Z
2022-01-13T06:38:13.000Z
naoqi_apps/nodes/naoqi_listening_movement.py
chaotic-bruno/naoqi_bridge
7543857da53e845c34d5336565a2890609ff3809
[ "BSD-3-Clause" ]
59
2015-01-22T14:23:32.000Z
2020-04-13T11:51:00.000Z
naoqi_apps/nodes/naoqi_listening_movement.py
chaotic-bruno/naoqi_bridge
7543857da53e845c34d5336565a2890609ff3809
[ "BSD-3-Clause" ]
37
2015-01-22T22:18:25.000Z
2021-07-17T06:49:04.000Z
#!/usr/bin/env python # # Copyright 2016 Aldebaran # # Licensed under the Apache License, Version 2.0 (the "Lice...
44.272727
160
0.542681
c03d9e64d7173ab0b77e6cb9076308c92a5d288c
612
py
Python
examples/xsdprimer/demo.py
thorstenb/pyxb
634e86f61dfb73a2900f32fc3d819e9c25365a49
[ "Apache-2.0" ]
null
null
null
examples/xsdprimer/demo.py
thorstenb/pyxb
634e86f61dfb73a2900f32fc3d819e9c25365a49
[ "Apache-2.0" ]
null
null
null
examples/xsdprimer/demo.py
thorstenb/pyxb
634e86f61dfb73a2900f32fc3d819e9c25365a49
[ "Apache-2.0" ]
null
null
null
import pyxb import ipo import xml.dom.minidom import time xml_text = file('ipo.xml').read() order = ipo.CreateFromDOM(xml.dom.minidom.parseString(xml_text).documentElement) print '%s is sending %s %d thing(s):' % (order.billTo().name(), order.shipTo().name(), len(order.items().item())) for item in order.items().item...
29.142857
113
0.683007
33ae362acd5b4b6e065318e6b18a442978ee0d67
7,135
py
Python
configs/example/se_alpha.py
pnkfb9/gem5_priority
fbf766277df78a470758cf7d798d12fb1e7c51c4
[ "BSD-3-Clause" ]
null
null
null
configs/example/se_alpha.py
pnkfb9/gem5_priority
fbf766277df78a470758cf7d798d12fb1e7c51c4
[ "BSD-3-Clause" ]
null
null
null
configs/example/se_alpha.py
pnkfb9/gem5_priority
fbf766277df78a470758cf7d798d12fb1e7c51c4
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2012 ARM Limited # All rights reserved. # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware implementation of the functionality ...
33.815166
100
0.688718
56664ded03640b5537716b5cb09bf03f97fc470a
715
py
Python
crack-data-structures-and-algorithms/leetcode/python-impl/reverse_integer_q7.py
Watch-Later/Eureka
3065e76d5bf8b37d5de4f9ee75b2714a42dd4c35
[ "MIT" ]
20
2016-05-16T11:09:04.000Z
2021-12-08T09:30:33.000Z
crack-data-structures-and-algorithms/leetcode/python-impl/reverse_integer_q7.py
Watch-Later/Eureka
3065e76d5bf8b37d5de4f9ee75b2714a42dd4c35
[ "MIT" ]
1
2018-12-30T09:55:31.000Z
2018-12-30T14:08:30.000Z
crack-data-structures-and-algorithms/leetcode/python-impl/reverse_integer_q7.py
Watch-Later/Eureka
3065e76d5bf8b37d5de4f9ee75b2714a42dd4c35
[ "MIT" ]
11
2016-05-02T09:17:12.000Z
2021-12-08T09:30:35.000Z
# 核心思路 # 对于负数,需要首先转换成正数,否则默认floor取整的除法会导致 -1 / 10 = -1这种情况的出现 # 再注意一下初始val=0的更新条件 class Solution(object): def reverse(self, x): """ :type x: int :rtype: int """ val = 0 sign = False if x < 0: sign = True x = -x while x != 0: ...
19.324324
54
0.379021
33e273db18dd1f2c3c8e69db9af018e407300409
10,788
py
Python
src/sdk/pynni/nni/networkmorphism_tuner/networkmorphism_tuner.py
egg-west/nni
e3332641fd2805fd789edf0215a538e38142bfca
[ "MIT" ]
3
2019-01-27T02:00:46.000Z
2019-01-27T02:07:04.000Z
src/sdk/pynni/nni/networkmorphism_tuner/networkmorphism_tuner.py
huxiaozheng/nni
6bc12de061a371145a25e16b51d61f837b9e2a12
[ "MIT" ]
null
null
null
src/sdk/pynni/nni/networkmorphism_tuner/networkmorphism_tuner.py
huxiaozheng/nni
6bc12de061a371145a25e16b51d61f837b9e2a12
[ "MIT" ]
1
2019-04-25T08:46:01.000Z
2019-04-25T08:46:01.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # # MIT License # # 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 u...
39.372263
111
0.631164
8d5e16ebccfc91251156bd4a40d8d87af5b6ec0b
1,850
py
Python
torch_geometric/nn/resolver.py
rusty1s/pytorch-geometric
ded9a7b10ad8ebc19c97e567c7bb1ae6605253db
[ "MIT" ]
null
null
null
torch_geometric/nn/resolver.py
rusty1s/pytorch-geometric
ded9a7b10ad8ebc19c97e567c7bb1ae6605253db
[ "MIT" ]
null
null
null
torch_geometric/nn/resolver.py
rusty1s/pytorch-geometric
ded9a7b10ad8ebc19c97e567c7bb1ae6605253db
[ "MIT" ]
null
null
null
import inspect from typing import Any, List, Optional, Union from torch import Tensor def normalize_string(s: str) -> str: return s.lower().replace('-', '').replace('_', '').replace(' ', '') def resolver(classes: List[Any], query: Union[Any, str], base_cls: Optional[Any], *args, **kwargs): if...
28.90625
79
0.592432
5e00a320860c3c2fea67dd308ddc75d52c452c08
368
py
Python
tests/base_test_case.py
ANCPLabOldenburg/ancp-bids
82834b5bd0e9f21e8c740a366d14601e0d90b586
[ "MIT" ]
2
2021-08-09T18:11:36.000Z
2022-03-08T14:10:26.000Z
tests/base_test_case.py
ANCPLabOldenburg/ancp-bids
82834b5bd0e9f21e8c740a366d14601e0d90b586
[ "MIT" ]
41
2021-08-19T08:36:54.000Z
2022-03-31T14:50:00.000Z
tests/base_test_case.py
ANCPLabOldenburg/ancp-bids
82834b5bd0e9f21e8c740a366d14601e0d90b586
[ "MIT" ]
2
2021-09-07T14:37:25.000Z
2022-02-23T15:56:19.000Z
import os import unittest TEST_FOLDER = os.path.dirname(__file__) RESOURCES_FOLDER = TEST_FOLDER + "/data" DS005_DIR = RESOURCES_FOLDER + "/ds005" DS005_CONFLICT_DIR = RESOURCES_FOLDER + "/ds005_conflict" SYNTHETIC_DIR = RESOURCES_FOLDER + "/synthetic" ENTITIES_DIR = RESOURCES_FOLDER + "/ds005_entities_validation" ...
24.533333
62
0.790761
a2003ace7b6962408d47764f09e1a9d58d26a6bb
3,496
py
Python
Latest/venv/Lib/site-packages/pyface/tests/test_image_resource.py
adamcvj/SatelliteTracker
49a8f26804422fdad6f330a5548e9f283d84a55d
[ "Apache-2.0" ]
1
2022-01-09T20:04:31.000Z
2022-01-09T20:04:31.000Z
Latest/venv/Lib/site-packages/pyface/tests/test_image_resource.py
adamcvj/SatelliteTracker
49a8f26804422fdad6f330a5548e9f283d84a55d
[ "Apache-2.0" ]
1
2022-02-15T12:01:57.000Z
2022-03-24T19:48:47.000Z
Latest/venv/Lib/site-packages/pyface/tests/test_image_resource.py
adamcvj/SatelliteTracker
49a8f26804422fdad6f330a5548e9f283d84a55d
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import import os import platform import pkg_resources import unittest import pyface import pyface.tests from ..image_resource import ImageResource from ..toolkit import toolkit_object is_qt = toolkit_object.toolkit == 'qt4' if is_qt: from pyface.qt import qt_api is_pyqt4_windows ...
37.191489
90
0.697082
8b1dc9e88731e2d8f90ac0e3796216cc4ddfeb67
371
py
Python
aliyun/api/rest/Ecs20140526JoinSecurityGroupRequest.py
snowyxx/aliyun-python-demo
ed40887ddff440b85b77f9b2a1fcda11cca55c8b
[ "Apache-2.0" ]
null
null
null
aliyun/api/rest/Ecs20140526JoinSecurityGroupRequest.py
snowyxx/aliyun-python-demo
ed40887ddff440b85b77f9b2a1fcda11cca55c8b
[ "Apache-2.0" ]
null
null
null
aliyun/api/rest/Ecs20140526JoinSecurityGroupRequest.py
snowyxx/aliyun-python-demo
ed40887ddff440b85b77f9b2a1fcda11cca55c8b
[ "Apache-2.0" ]
null
null
null
''' Created by auto_sdk on 2015.10.09 ''' from aliyun.api.base import RestApi class Ecs20140526JoinSecurityGroupRequest(RestApi): def __init__(self,domain='ecs.aliyuncs.com',port=80): RestApi.__init__(self,domain, port) self.InstanceId = None self.SecurityGroupId = None def getapiname(self): retur...
28.538462
57
0.746631
4e7ff042a474814dd53e57bfa5f8fca6ca163ad3
1,459
py
Python
backend/server/apps/ml/income_classifier/random_forest.py
vermicelli/ml_service
020cc6ab38b9173f9ed8c1bcc7127619dc1a630e
[ "MIT" ]
null
null
null
backend/server/apps/ml/income_classifier/random_forest.py
vermicelli/ml_service
020cc6ab38b9173f9ed8c1bcc7127619dc1a630e
[ "MIT" ]
null
null
null
backend/server/apps/ml/income_classifier/random_forest.py
vermicelli/ml_service
020cc6ab38b9173f9ed8c1bcc7127619dc1a630e
[ "MIT" ]
null
null
null
import joblib import pandas as pd class RandomForestClassifier: def __init__(self): path_to_artifacts = '../../research/' self.values_fill_missing = joblib.load(path_to_artifacts + 'train_mode.joblib') self.encoders = joblib.load(path_to_artifacts + 'encoders.joblib') self.model = ...
36.475
130
0.650446
44e212a206efb8db2c2b28469a436013ace0d7c6
22,433
py
Python
tests/supv/test_nn.py
hericlesme/touvlo
6034846d8f5c3c82c0e86421a75667d327112e32
[ "MIT" ]
null
null
null
tests/supv/test_nn.py
hericlesme/touvlo
6034846d8f5c3c82c0e86421a75667d327112e32
[ "MIT" ]
null
null
null
tests/supv/test_nn.py
hericlesme/touvlo
6034846d8f5c3c82c0e86421a75667d327112e32
[ "MIT" ]
null
null
null
import pytest from numpy import array, append, empty, zeros, int64 from numpy.testing import assert_allclose from touvlo.supv.nn import (feed_forward, init_nn_weights, back_propagation, cost_function, grad, unravel_params) class TestNeuralNetwork: @pytest.fixture(scope="module") ...
38.878683
79
0.478937
3f14b122d3244cfa02127cd54072aad70f06d37e
1,096
py
Python
tg_bot/modules/helper_funcs/filters.py
lucaubot4/h
ca6fd12c1f6a3ba95c27624f816165f65db6003d
[ "MIT" ]
2
2021-03-06T13:32:12.000Z
2021-04-22T02:17:44.000Z
tg_bot/modules/helper_funcs/filters.py
lucaubot4/h
ca6fd12c1f6a3ba95c27624f816165f65db6003d
[ "MIT" ]
null
null
null
tg_bot/modules/helper_funcs/filters.py
lucaubot4/h
ca6fd12c1f6a3ba95c27624f816165f65db6003d
[ "MIT" ]
6
2020-09-22T07:04:40.000Z
2021-12-02T16:14:30.000Z
from telegram import Message from telegram.ext import BaseFilter from tg_bot import SUPPORT_USERS, SUDO_USERS class CustomFilters(object): class _Supporters(BaseFilter): def filter(self, message: Message): return bool(message.from_user and message.from_user.id in SUPPORT_USERS) support_f...
31.314286
110
0.695255
dcb37678f34a90ee52423e28b2d7684ad746dc83
882
py
Python
python3.4Smartforest/lib/python3.4/site-packages/django/contrib/gis/geoip/__init__.py
letouriste001/SmartForest_2.0
109b78bf1e8c8404800f377ab969395ccbb617be
[ "MIT" ]
null
null
null
python3.4Smartforest/lib/python3.4/site-packages/django/contrib/gis/geoip/__init__.py
letouriste001/SmartForest_2.0
109b78bf1e8c8404800f377ab969395ccbb617be
[ "MIT" ]
null
null
null
python3.4Smartforest/lib/python3.4/site-packages/django/contrib/gis/geoip/__init__.py
letouriste001/SmartForest_2.0
109b78bf1e8c8404800f377ab969395ccbb617be
[ "MIT" ]
null
null
null
""" This module houses the GeoIP object, a ctypes wrapper for the MaxMind GeoIP(R) C API (http://www.maxmind.com/app/c). This is an alternative to the GPL licensed Python GeoIP interface provided by MaxMind. GeoIP(R) is a registered trademark of MaxMind, LLC of Boston, Massachusetts. For IP-based geolocation, t...
882
882
0.752834
aa7964bf6a01529a148754af226dab48d26bc84e
4,249
py
Python
ansible/my_env/lib/python2.7/site-packages/ansible/plugins/action/sros_config.py
otus-devops-2019-02/yyashkin_infra
0cd0c003884155ac922e3e301305ac202de7028c
[ "MIT" ]
null
null
null
ansible/my_env/lib/python2.7/site-packages/ansible/plugins/action/sros_config.py
otus-devops-2019-02/yyashkin_infra
0cd0c003884155ac922e3e301305ac202de7028c
[ "MIT" ]
null
null
null
ansible/my_env/lib/python2.7/site-packages/ansible/plugins/action/sros_config.py
otus-devops-2019-02/yyashkin_infra
0cd0c003884155ac922e3e301305ac202de7028c
[ "MIT" ]
null
null
null
# # Copyright 2016 Peter Sprygada <psprygada@ansible.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any...
37.27193
85
0.644387
d07af8bbc5bf70a6406688522d4cbafa4a4b570f
3,507
py
Python
zerver/views/presence.py
isijara/zulip
403f4dafcc71369f3b1143b9f7073cd5d76bf357
[ "Apache-2.0" ]
1
2019-04-14T20:31:55.000Z
2019-04-14T20:31:55.000Z
zerver/views/presence.py
hcxiong/zulip
bf22eefedebd50b25f32b22988217c13a89b65d1
[ "Apache-2.0" ]
7
2020-09-06T14:54:30.000Z
2022-02-10T18:51:14.000Z
zerver/views/presence.py
hcxiong/zulip
bf22eefedebd50b25f32b22988217c13a89b65d1
[ "Apache-2.0" ]
9
2019-11-04T18:59:29.000Z
2022-03-22T17:46:37.000Z
import datetime import time from django.conf import settings from typing import Any, Dict from django.http import HttpRequest, HttpResponse from django.utils.timezone import now as timezone_now from django.utils.translation import ugettext as _ from zerver.decorator import human_users_only from zerver.lib.actions i...
42.768293
95
0.678358
0bd8a9d286f451cc212881e401eafba5f47f6ab5
560
py
Python
tests/plugins/linkedin_message_plugin.py
Yahalis/dcm-excercise
5efa3de21ce230bcacd8043887287de31d02e448
[ "MIT" ]
null
null
null
tests/plugins/linkedin_message_plugin.py
Yahalis/dcm-excercise
5efa3de21ce230bcacd8043887287de31d02e448
[ "MIT" ]
null
null
null
tests/plugins/linkedin_message_plugin.py
Yahalis/dcm-excercise
5efa3de21ce230bcacd8043887287de31d02e448
[ "MIT" ]
null
null
null
""" LinekdIn message plugin """ from dynamic_campaign import TemplatManager from dynamic_campaign import DCMPlugin class LinkedinMessagePlugin(DCMPlugin): name='linkedin_message' def __init__(self): self.tm = TemplatManager() def exceute(self, context: dict) -> None: print('Inside linkedin...
32.941176
87
0.710714
3315a84f4981f25794dea017ffb606f4d3bac879
794
py
Python
setup.py
fraunhoferportugal/tssearch
a063c95677d4066c64fea419f6c9641c9eb70263
[ "BSD-3-Clause" ]
11
2021-11-11T15:21:14.000Z
2022-03-31T23:28:34.000Z
setup.py
fraunhoferportugal/tssearch
a063c95677d4066c64fea419f6c9641c9eb70263
[ "BSD-3-Clause" ]
1
2022-01-23T02:36:02.000Z
2022-01-24T17:13:32.000Z
setup.py
fraunhoferportugal/tssearch
a063c95677d4066c64fea419f6c9641c9eb70263
[ "BSD-3-Clause" ]
5
2021-12-13T21:46:36.000Z
2022-03-31T23:29:36.000Z
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="tssearch", version="0.1.3", author="Fraunhofer Portugal", description="Library for time series subsequence search", long_description=long_description, long_description_content_type="t...
33.083333
98
0.68262
2893d5c1c6d034e8151bd357cb55dcb4bd23ee7f
2,316
py
Python
tests/conda_env/specs/test_base.py
cswartzvi/conda
b2e0ed6b6119b7623d8f64c47d4d04f56e9cf137
[ "BSD-3-Clause" ]
null
null
null
tests/conda_env/specs/test_base.py
cswartzvi/conda
b2e0ed6b6119b7623d8f64c47d4d04f56e9cf137
[ "BSD-3-Clause" ]
null
null
null
tests/conda_env/specs/test_base.py
cswartzvi/conda
b2e0ed6b6119b7623d8f64c47d4d04f56e9cf137
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (C) 2012 Anaconda, Inc # SPDX-License-Identifier: BSD-3-Clause from contextlib import contextmanager import random import types import unittest try: from unittest import mock except ImportError: import mock from conda.exceptions import SpecNotFound from conda_env import spe...
30.473684
88
0.686528
5773abb32fb348309f396830b03fddb33807a39e
144
py
Python
src/coupons/urls.py
cbsBiram/xarala__ssr
863e1362c786daa752b942b796f7a015211d2f1b
[ "FSFAP" ]
null
null
null
src/coupons/urls.py
cbsBiram/xarala__ssr
863e1362c786daa752b942b796f7a015211d2f1b
[ "FSFAP" ]
null
null
null
src/coupons/urls.py
cbsBiram/xarala__ssr
863e1362c786daa752b942b796f7a015211d2f1b
[ "FSFAP" ]
null
null
null
from django.urls import path from . import views app_name = "coupons" urlpatterns = [ path("apply/", views.coupon_apply, name="apply"), ]
16
53
0.694444
3901cea0fd1acd88dcb7a88c000217d05841ab23
11,408
py
Python
coursebuilder/modules/student_list/dashboard.py
nptel-ac-in/seek
2bca9d64499e160b2da9bed6e97fcda712feec72
[ "Apache-2.0" ]
null
null
null
coursebuilder/modules/student_list/dashboard.py
nptel-ac-in/seek
2bca9d64499e160b2da9bed6e97fcda712feec72
[ "Apache-2.0" ]
null
null
null
coursebuilder/modules/student_list/dashboard.py
nptel-ac-in/seek
2bca9d64499e160b2da9bed6e97fcda712feec72
[ "Apache-2.0" ]
2
2020-09-29T17:04:18.000Z
2021-05-13T07:07:04.000Z
# Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
34.361446
77
0.574947
22acfddcaae4f1b086c9c40f2740ef305d9148ff
3,584
py
Python
code/simple_acf.py
RuthAngus/M35
2db36d6f65c9d88e644a25de6bc65a7279f60ed7
[ "MIT" ]
null
null
null
code/simple_acf.py
RuthAngus/M35
2db36d6f65c9d88e644a25de6bc65a7279f60ed7
[ "MIT" ]
null
null
null
code/simple_acf.py
RuthAngus/M35
2db36d6f65c9d88e644a25de6bc65a7279f60ed7
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import emcee import glob # dan's acf function def dan_acf(x, axis=0, fast=False): """ Estimate the autocorrelation function of a time series using the FFT. :param x: The time series. If multidimensional, set the time axis using the ``axis``...
30.632479
78
0.567522
06e2f4112bc777792aa7deaf4169ae49dc476394
220
py
Python
weibo/test/testSpynner.py
haiboz/weiboSpider
517cae2ef3e7bccd9e1d328a40965406707f5362
[ "Apache-2.0" ]
null
null
null
weibo/test/testSpynner.py
haiboz/weiboSpider
517cae2ef3e7bccd9e1d328a40965406707f5362
[ "Apache-2.0" ]
null
null
null
weibo/test/testSpynner.py
haiboz/weiboSpider
517cae2ef3e7bccd9e1d328a40965406707f5362
[ "Apache-2.0" ]
null
null
null
#encoding:utf8 ''' Created on 2016年4月12日 @author: wb-zhaohaibo ''' import spynner browser = spynner.Browser() browser.load("http://papers.cnki.net/shipeijun56") html = browser.html.encode("utf-8") print html
18.333333
51
0.704545
04796f7d3e21ff06b52cc53c38368e65f3c03b64
4,018
py
Python
src/python/pydetranutils/mesh_plot.py
RLReed/libdetran
77637c788823e0a14aae7e40e476a291f6f3184b
[ "MIT" ]
null
null
null
src/python/pydetranutils/mesh_plot.py
RLReed/libdetran
77637c788823e0a14aae7e40e476a291f6f3184b
[ "MIT" ]
null
null
null
src/python/pydetranutils/mesh_plot.py
RLReed/libdetran
77637c788823e0a14aae7e40e476a291f6f3184b
[ "MIT" ]
null
null
null
# This provides utilities for plotting things on a # 1D or 2D mesh or a slice of a 3D mesh. try : import numpy as np except ImportError : print "Error importing Numpy." try : import matplotlib.pyplot as plt import matplotlib except ImportError : print "Error importing matplotlib" def plot_mesh_functi...
31.147287
105
0.57118
17fe99ca4e6fa09dbb33b8cf2c0072fd71248661
32,518
py
Python
python/paddle/fluid/contrib/layers/rnn_impl.py
Thunderbrook/Paddle
4870c9bc99c6bd3b814485d7d4f525fe68ccd9a5
[ "Apache-2.0" ]
1
2020-02-21T02:26:47.000Z
2020-02-21T02:26:47.000Z
python/paddle/fluid/contrib/layers/rnn_impl.py
Thunderbrook/Paddle
4870c9bc99c6bd3b814485d7d4f525fe68ccd9a5
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/contrib/layers/rnn_impl.py
Thunderbrook/Paddle
4870c9bc99c6bd3b814485d7d4f525fe68ccd9a5
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2019 PaddlePaddle 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 appli...
42.618611
118
0.596193
00adcbf7e42bd10f9ec93c82afc01d1fdd7b54e2
16,226
py
Python
mcetl/functions.py
derb12/mcetl
c94904cbe41a3f793fde01e457b6c243ac7fab3b
[ "BSD-3-Clause" ]
null
null
null
mcetl/functions.py
derb12/mcetl
c94904cbe41a3f793fde01e457b6c243ac7fab3b
[ "BSD-3-Clause" ]
1
2020-12-18T11:22:37.000Z
2020-12-19T17:43:56.000Z
mcetl/functions.py
derb12/mcetl
c94904cbe41a3f793fde01e457b6c243ac7fab3b
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Contains the classes for Functions objects. There are three main types of Functions: 1) PreprocessFunction: preprocesses the imported data entry; for example, can separate into multiple data entries or remove data columns. 2) CalculationFunction: performs a...
43.269333
99
0.657648
b5b78870219bfe52e9277a1f3b1802bed6072091
32
py
Python
pysal/viz/__init__.py
martinfleis/pysal
d2e0667d825d403efe7182ecda210dc152ec206d
[ "BSD-3-Clause" ]
941
2015-01-12T22:25:55.000Z
2022-03-27T15:41:29.000Z
pysal/viz/__init__.py
anekekarina99/pysal
bd8c954d34b4694416830a852e26fe40d64424f2
[ "BSD-3-Clause" ]
589
2015-01-09T03:58:03.000Z
2022-02-26T02:17:15.000Z
pysal/viz/__init__.py
anekekarina99/pysal
bd8c954d34b4694416830a852e26fe40d64424f2
[ "BSD-3-Clause" ]
303
2015-01-10T02:59:04.000Z
2022-03-05T04:21:55.000Z
import mapclassify import splot
10.666667
18
0.875
770ccdf24a78395654968c11f3aaae2cf5f726ac
5,519
py
Python
contrib/seeds/makeseeds.py
WhistleAI/WhistleP2P
4000cdab2befe7a08d10fa3e444bf92095f5f878
[ "MIT" ]
null
null
null
contrib/seeds/makeseeds.py
WhistleAI/WhistleP2P
4000cdab2befe7a08d10fa3e444bf92095f5f878
[ "MIT" ]
null
null
null
contrib/seeds/makeseeds.py
WhistleAI/WhistleP2P
4000cdab2befe7a08d10fa3e444bf92095f5f878
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2013-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Generate seeds.txt from Pieter's DNS seeder # NSEEDS=512 MAX_SEEDS_PER_ASN=2 MIN_BLOCKS = 615801 #...
32.087209
186
0.567313
8129bcca9800621e2a26743d2d501d4ac7847269
3,914
py
Python
thumbor/crypto.py
enterstudio/thumbor
2f1529604a0f5b2d6d87132b5616841842313215
[ "MIT" ]
null
null
null
thumbor/crypto.py
enterstudio/thumbor
2f1529604a0f5b2d6d87132b5616841842313215
[ "MIT" ]
null
null
null
thumbor/crypto.py
enterstudio/thumbor
2f1529604a0f5b2d6d87132b5616841842313215
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # thumbor imaging service # https://github.com/thumbor/thumbor/wiki # Licensed under the MIT license: # http://www.opensource.org/licenses/mit-license # Copyright (c) 2011 globo.com thumbor@googlegroups.com import base64 import hashlib from Crypto.Cipher import AES # Impor...
28.362319
108
0.58048
8e2e4898520f8eda4475e5a461df66e130a76621
582
py
Python
Finding the percentage.py
seetaram-oruganti/HackerRank-Python-
2cf1fa562707c18bb54640f75e7ed4b440b710c0
[ "Unlicense" ]
null
null
null
Finding the percentage.py
seetaram-oruganti/HackerRank-Python-
2cf1fa562707c18bb54640f75e7ed4b440b710c0
[ "Unlicense" ]
null
null
null
Finding the percentage.py
seetaram-oruganti/HackerRank-Python-
2cf1fa562707c18bb54640f75e7ed4b440b710c0
[ "Unlicense" ]
null
null
null
N = int(input()) # input() gets the whole line, int() converts from string to int dictionary = {} # dictionaries appear to work the same as objects in javascript for i in range(0, N): # don't forget the ':', necessary for all forloops in python! inputArray = input().split() marks = list(map(float, inputArray[1:...
72.75
139
0.699313
a4cc091106b5b6d60a150f523de1d68336f7b886
3,712
py
Python
dopolnyator/rest.py
s2ch/konsolechka
05a09cb34ea1ca62db32b6fe9d8710b8d099afd7
[ "MIT" ]
3
2019-08-23T21:12:01.000Z
2022-02-19T18:48:39.000Z
dopolnyator/rest.py
s2ch/konsolechka
05a09cb34ea1ca62db32b6fe9d8710b8d099afd7
[ "MIT" ]
null
null
null
dopolnyator/rest.py
s2ch/konsolechka
05a09cb34ea1ca62db32b6fe9d8710b8d099afd7
[ "MIT" ]
3
2018-09-17T16:09:16.000Z
2021-01-22T23:32:13.000Z
#!/usr/bin/env python3 # coding=utf-8 import torch torch.backends.cudnn.enabled = False torch.backends.cudnn.benchmark = False from run_generation import sample_sequence from yt_encoder import YTEncoder from transformers import GPT2LMHeadModel import threading import regex as re from os import environ device = "cpu"...
30.933333
143
0.6743
9f2309087fd4acd1e23aa9dfa8e605045aede4cd
5,462
py
Python
data scrapping/dir/scrapper.py
mszymanowicz/finBERT
d2e8059a3d736864255bcd771103e341866f62af
[ "Apache-2.0" ]
null
null
null
data scrapping/dir/scrapper.py
mszymanowicz/finBERT
d2e8059a3d736864255bcd771103e341866f62af
[ "Apache-2.0" ]
null
null
null
data scrapping/dir/scrapper.py
mszymanowicz/finBERT
d2e8059a3d736864255bcd771103e341866f62af
[ "Apache-2.0" ]
null
null
null
import os import time import csv import json import selenium.common.exceptions from selenium import webdriver from selenium.webdriver.chrome.options import Options from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions from selenium.webdriver.common.by import...
40.459259
116
0.670267
b4d029b20f838316039903f74944211bf7c23a9f
634
py
Python
stickerbot/migrations/0003_auto_20160908_1805.py
Stonecoldstone/telegram-sticker-bot
6cb9e6da99d5c270a911012805c724a56c2f2c7b
[ "MIT" ]
null
null
null
stickerbot/migrations/0003_auto_20160908_1805.py
Stonecoldstone/telegram-sticker-bot
6cb9e6da99d5c270a911012805c724a56c2f2c7b
[ "MIT" ]
null
null
null
stickerbot/migrations/0003_auto_20160908_1805.py
Stonecoldstone/telegram-sticker-bot
6cb9e6da99d5c270a911012805c724a56c2f2c7b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-09-08 18:05 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('stickerbot', '0002_auto_20160908_1743'), ] operations = [ migrations.AlterFi...
24.384615
60
0.599369
07d112a3606d0dd091f892879351a4e0a3fcc01f
1,275
py
Python
setup.py
spaenleh/epfl-people-api
2112ec1ab3a35dadb5ffc31369a27a2243099b3f
[ "MIT" ]
1
2021-11-26T13:12:18.000Z
2021-11-26T13:12:18.000Z
setup.py
spaenleh/epfl-people-api
2112ec1ab3a35dadb5ffc31369a27a2243099b3f
[ "MIT" ]
null
null
null
setup.py
spaenleh/epfl-people-api
2112ec1ab3a35dadb5ffc31369a27a2243099b3f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import pathlib from setuptools import setup HERE = pathlib.Path(__file__).parent PACKAGE_NAME = "epflpeople" README = (HERE / "README.md").read_text() CHANGELOG = (HERE / "CHANGELOG.md").read_text() LONG_DESCRIPTION = README + CHANGELOG VERSION = (HERE / PACKAGE_NAME / "VERSION").read_text().s...
32.692308
91
0.686275
6824eb9fe7e16d7d9b00a135f88d44599008f7ab
696
py
Python
msa/actions/list_action.py
Gunmer/maven-setting-manager
a2e0eb4f18cc761844f05d5c4d83890bf36981e6
[ "MIT" ]
3
2019-01-11T11:11:50.000Z
2022-01-29T01:50:24.000Z
msa/actions/list_action.py
Gunmer/maven-setting-manager
a2e0eb4f18cc761844f05d5c4d83890bf36981e6
[ "MIT" ]
null
null
null
msa/actions/list_action.py
Gunmer/maven-setting-manager
a2e0eb4f18cc761844f05d5c4d83890bf36981e6
[ "MIT" ]
null
null
null
from msa.repositories.setting_repository import SettingRepository def execute(args): action = ListAction(logger=args.log, config=args.config) action.execute() class ListAction(object): def __init__(self, logger, config): self.logger = logger self.settingRepository = SettingRepository(lo...
27.84
80
0.670977
993b1e3007213c5c5a631fdc70c45b8a4a43e98f
1,119
py
Python
cages/.shared/config_resource_cmdexec_1.py
targeted/pythomnic3k
c59f8c11302c0a568f45ec626ec6a0065527aa79
[ "BSD-3-Clause" ]
null
null
null
cages/.shared/config_resource_cmdexec_1.py
targeted/pythomnic3k
c59f8c11302c0a568f45ec626ec6a0065527aa79
[ "BSD-3-Clause" ]
7
2019-06-06T15:47:56.000Z
2019-06-15T18:09:30.000Z
cages/.shared/config_resource_cmdexec_1.py
targeted/pythomnic3k
c59f8c11302c0a568f45ec626ec6a0065527aa79
[ "BSD-3-Clause" ]
null
null
null
# configuration file for resource "cmdexec_1" # # this file exists as a reference for configuring cmdexec resources # and to support self-test run of module protocol_cmdexec.py # # copy this file to your own cage, possibly renaming into # config_resource_YOUR_RESOURCE_NAME.py, then modify the copy config = dict \ ( pr...
30.243243
102
0.73101
ecad77e50fa89ba735784850c65b79bd1e035d8e
10,378
py
Python
config/settings/base.py
MOwsianowski/bootcamp
5f6d84cb4f9db887ce239cc957f190d724832419
[ "MIT" ]
1,964
2015-01-04T15:10:40.000Z
2022-03-29T07:24:11.000Z
config/settings/base.py
MOwsianowski/bootcamp
5f6d84cb4f9db887ce239cc957f190d724832419
[ "MIT" ]
208
2015-01-27T12:18:30.000Z
2021-12-15T10:48:40.000Z
config/settings/base.py
MOwsianowski/bootcamp
5f6d84cb4f9db887ce239cc957f190d724832419
[ "MIT" ]
1,276
2015-01-05T15:11:09.000Z
2022-03-31T16:40:18.000Z
""" Base settings to build other settings files upon. """ import environ ROOT_DIR = ( environ.Path(__file__) - 3 ) # (bootcamp/config/settings/base.py - 3 = bootcamp/) APPS_DIR = ROOT_DIR.path("bootcamp") env = environ.Env() env.read_env(str(ROOT_DIR.path(".env"))) # READ_DOT_ENV_FILE = env.bool('DJANGO_READ_D...
39.610687
93
0.637695
5185bc8a2029f5aaf6db2c1d56c617d7307f2caf
6,749
py
Python
Tests/Methods/Slot/test_HoleM52_meth.py
tobsen2code/pyleecan
5b1ded9e389e0c79ed7b7c878b6e939f2d9962e9
[ "Apache-2.0" ]
95
2019-01-23T04:19:45.000Z
2022-03-17T18:22:10.000Z
Tests/Methods/Slot/test_HoleM52_meth.py
Eomys/Pyleecan
4d7f0cbabf0311006963e7a2f435db2ecd901118
[ "Apache-2.0" ]
366
2019-02-20T07:15:08.000Z
2022-03-31T13:37:23.000Z
Tests/Methods/Slot/test_HoleM52_meth.py
Eomys/Pyleecan
4d7f0cbabf0311006963e7a2f435db2ecd901118
[ "Apache-2.0" ]
74
2019-01-24T01:47:31.000Z
2022-02-25T05:44:42.000Z
# -*- coding: utf-8 -*- import pytest from pyleecan.Classes.Segment import Segment from pyleecan.Classes.SurfLine import SurfLine from pyleecan.Classes.LamHole import LamHole from pyleecan.Classes.HoleM52 import HoleM52 from pyleecan.Classes.Magnet import Magnet from pyleecan.Methods.Slot.HoleM52 import S52_NoneErro...
36.481081
88
0.615054
257aba6c7941b76f697aa71f5f3401b607906be0
2,716
py
Python
torchvision/datasets/kinetics.py
ajabri/vision
f69847cc761937891be77e1780bc4ddea46dbe68
[ "BSD-3-Clause" ]
1
2020-09-11T20:54:46.000Z
2020-09-11T20:54:46.000Z
torchvision/datasets/kinetics.py
ajabri/vision
f69847cc761937891be77e1780bc4ddea46dbe68
[ "BSD-3-Clause" ]
null
null
null
torchvision/datasets/kinetics.py
ajabri/vision
f69847cc761937891be77e1780bc4ddea46dbe68
[ "BSD-3-Clause" ]
1
2020-09-11T20:54:56.000Z
2020-09-11T20:54:56.000Z
from .video_utils import VideoClips from .utils import list_dir from .folder import make_dataset from .vision import VisionDataset class Kinetics400(VisionDataset): """ `Kinetics-400 <https://deepmind.com/research/open-source/open-source-datasets/kinetics/>`_ dataset. Kinetics-400 is an action recogn...
39.362319
97
0.671208
9a10434f506969214699d5c450d54b7c8cbe9026
602
py
Python
imagersite/imager_images/migrations/0007_auto_20171206_2209.py
Loaye/django-imager-group
a4bdd285b8063d2553f59f2a78aaef0fcfd0c95d
[ "MIT" ]
null
null
null
imagersite/imager_images/migrations/0007_auto_20171206_2209.py
Loaye/django-imager-group
a4bdd285b8063d2553f59f2a78aaef0fcfd0c95d
[ "MIT" ]
null
null
null
imagersite/imager_images/migrations/0007_auto_20171206_2209.py
Loaye/django-imager-group
a4bdd285b8063d2553f59f2a78aaef0fcfd0c95d
[ "MIT" ]
2
2017-11-29T23:33:53.000Z
2017-12-05T22:36:09.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2017-12-06 22:09 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('imager_images', '0006_auto...
26.173913
132
0.674419
b73350ee8350aff15b2c9f9c6462343f55258850
185
py
Python
pacote-download/CursoemVideo/ex083.py
pemedeiros/python-CeV
e34eebdfd6f5cf254a9ad1ce076083c735f68f28
[ "MIT" ]
null
null
null
pacote-download/CursoemVideo/ex083.py
pemedeiros/python-CeV
e34eebdfd6f5cf254a9ad1ce076083c735f68f28
[ "MIT" ]
null
null
null
pacote-download/CursoemVideo/ex083.py
pemedeiros/python-CeV
e34eebdfd6f5cf254a9ad1ce076083c735f68f28
[ "MIT" ]
null
null
null
exp = input('Digite uma expressão: ') abre = exp.count('(') fecha = exp.count(')') if abre == fecha: print('Sua expressão está correta') else: print('Sua expressão está errada')
26.428571
39
0.654054
2d9ed0ce2d0c97206367c286ab3ef231d3d9f0c9
29,480
py
Python
ravenframework/Samplers/AdaptiveSparseGrid.py
dgarrett622/raven
f36cc108f7500b0e2717df4832b69b801b43960d
[ "Apache-2.0" ]
null
null
null
ravenframework/Samplers/AdaptiveSparseGrid.py
dgarrett622/raven
f36cc108f7500b0e2717df4832b69b801b43960d
[ "Apache-2.0" ]
null
null
null
ravenframework/Samplers/AdaptiveSparseGrid.py
dgarrett622/raven
f36cc108f7500b0e2717df4832b69b801b43960d
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Battelle Energy Alliance, 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 t...
45.564142
149
0.663942
ae6f1c9ab35db82b789c2b468d6e2b2114f0931e
9,533
py
Python
run.py
5alt/ZeroScan
6811ca6a03cf7d6d4cdb81498a9391e175ae6aa0
[ "MIT" ]
61
2018-01-20T05:48:56.000Z
2020-02-06T16:16:36.000Z
run.py
5alt/ZeroScan
6811ca6a03cf7d6d4cdb81498a9391e175ae6aa0
[ "MIT" ]
null
null
null
run.py
5alt/ZeroScan
6811ca6a03cf7d6d4cdb81498a9391e175ae6aa0
[ "MIT" ]
12
2018-05-23T05:01:28.000Z
2020-05-26T18:25:03.000Z
#! /usr/bin/env python from scapy.all import * import os, sys import subprocess import time import sqlite3 as db import json import imp import config import helper, tools import subDomainsBrute.subDomainsBrute as subDomainsBrute class subDomainsBruteOpt: def __init__(self, domain, dictionary="subnam...
35.047794
120
0.565614
2611cb4f6ebac9d86ad9f1b4a8c9487327b5c3bc
33,939
py
Python
nci_ndr_manager.py
therealspring/nci-ndr-analysis
568ed607fedc331c423aa8e49f6e73fadd21e406
[ "BSD-3-Clause" ]
null
null
null
nci_ndr_manager.py
therealspring/nci-ndr-analysis
568ed607fedc331c423aa8e49f6e73fadd21e406
[ "BSD-3-Clause" ]
null
null
null
nci_ndr_manager.py
therealspring/nci-ndr-analysis
568ed607fedc331c423aa8e49f6e73fadd21e406
[ "BSD-3-Clause" ]
null
null
null
"""NCI NDR Analysis. Design doc is available here: https://docs.google.com/document/d/ 1Iw8YxrXPSbSp5TemRo-mbfvxDiTpdCKqRrW1terp2gE/edit """ import argparse import datetime import json import logging import os import pathlib import queue import re import sqlite3 import subprocess import sys import threading import t...
38.787429
79
0.617638
f43618175910307af1ada4fdfdb2ee0f9fc1937c
500
py
Python
jcasts/episodes/migrations/0021_auto_20210922_1012.py
danjac/jcasts
04f5ef1f536d51962c0433d092817c0153acb6af
[ "MIT" ]
13
2021-09-17T07:41:00.000Z
2022-02-10T10:00:48.000Z
jcasts/episodes/migrations/0021_auto_20210922_1012.py
danjac/radiofeed
06e2b10396345f0afcf7c1dfee67c41fbff153e1
[ "MIT" ]
167
2021-07-17T09:41:38.000Z
2021-08-31T06:03:34.000Z
jcasts/episodes/migrations/0021_auto_20210922_1012.py
danjac/jcasts
04f5ef1f536d51962c0433d092817c0153acb6af
[ "MIT" ]
3
2020-12-25T12:31:58.000Z
2021-02-13T11:49:49.000Z
# Generated by Django 3.2.7 on 2021-09-22 10:12 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("episodes", "0020_audiolog_unique_episodes_audiolog_is_playing"), ] operations = [ migrations.RemoveConstraint( model_name="audiolog", ...
22.727273
74
0.62
f190beb14e1f25077739c1c51cabda4818194166
1,287
py
Python
migrations/versions/873b2c69b9cd_restaurants_models_init.py
eddowh/flask-react-redux-demo
68384efe7a4c2999c2cd947208b8f8db887fd802
[ "Unlicense" ]
6
2017-09-15T08:14:12.000Z
2021-03-20T06:50:53.000Z
migrations/versions/873b2c69b9cd_restaurants_models_init.py
eddowh/flask-react-redux-demo
68384efe7a4c2999c2cd947208b8f8db887fd802
[ "Unlicense" ]
null
null
null
migrations/versions/873b2c69b9cd_restaurants_models_init.py
eddowh/flask-react-redux-demo
68384efe7a4c2999c2cd947208b8f8db887fd802
[ "Unlicense" ]
null
null
null
"""restaurants_models_init Revision ID: 873b2c69b9cd Revises: None Create Date: 2016-07-01 12:02:48.079000 """ # revision identifiers, used by Alembic. revision = '873b2c69b9cd' down_revision = None from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - please a...
30.642857
80
0.693862
8e2e3dec723641ac81451c4e45067f306a10c97d
8,331
py
Python
core/controllers/learner_dashboard.py
gauravzqa/oppia
52a859f251eeb8729834551bfda9f577b06f29e9
[ "Apache-2.0" ]
null
null
null
core/controllers/learner_dashboard.py
gauravzqa/oppia
52a859f251eeb8729834551bfda9f577b06f29e9
[ "Apache-2.0" ]
2
2018-08-14T02:17:43.000Z
2018-08-19T17:42:28.000Z
core/controllers/learner_dashboard.py
gauravzqa/oppia
52a859f251eeb8729834551bfda9f577b06f29e9
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
40.639024
103
0.684912
5f5150375b3fe397d3f4d174a540f19e5da1b944
264
py
Python
tests/artificial/transf_Anscombe/trend_Lag1Trend/cycle_12/ar_/test_artificial_128_Anscombe_Lag1Trend_12__20.py
shaido987/pyaf
b9afd089557bed6b90b246d3712c481ae26a1957
[ "BSD-3-Clause" ]
377
2016-10-13T20:52:44.000Z
2022-03-29T18:04:14.000Z
tests/artificial/transf_Anscombe/trend_Lag1Trend/cycle_12/ar_/test_artificial_128_Anscombe_Lag1Trend_12__20.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
160
2016-10-13T16:11:53.000Z
2022-03-28T04:21:34.000Z
tests/artificial/transf_Anscombe/trend_Lag1Trend/cycle_12/ar_/test_artificial_128_Anscombe_Lag1Trend_12__20.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
63
2017-03-09T14:51:18.000Z
2022-03-27T20:52:57.000Z
import pyaf.Bench.TS_datasets as tsds import tests.artificial.process_artificial_dataset as art art.process_dataset(N = 128 , FREQ = 'D', seed = 0, trendtype = "Lag1Trend", cycle_length = 12, transform = "Anscombe", sigma = 0.0, exog_count = 20, ar_order = 0);
37.714286
164
0.731061
d087dc1822d4f501b6f24a01b4572c1172cd1573
2,235
py
Python
backend/spring_dream_29705/urls.py
crowdbotics-apps/spring-dream-29705
034d22e956fd77c830dcfc934bc3ddde8a894aa6
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/spring_dream_29705/urls.py
crowdbotics-apps/spring-dream-29705
034d22e956fd77c830dcfc934bc3ddde8a894aa6
[ "FTL", "AML", "RSA-MD" ]
58
2021-08-10T23:10:24.000Z
2022-02-27T18:58:35.000Z
backend/spring_dream_29705/urls.py
crowdbotics-apps/spring-dream-29705
034d22e956fd77c830dcfc934bc3ddde8a894aa6
[ "FTL", "AML", "RSA-MD" ]
null
null
null
"""spring_dream_29705 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/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') ...
35.47619
87
0.713199
f16c59a91058fefabea9460d390286d731f41745
13,815
py
Python
venv/lib/python3.6/site-packages/ansible_collections/dellemc/openmanage/tests/unit/plugins/modules/test_redfish_firmware.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
1
2020-01-22T13:11:23.000Z
2020-01-22T13:11:23.000Z
venv/lib/python3.6/site-packages/ansible_collections/dellemc/openmanage/tests/unit/plugins/modules/test_redfish_firmware.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/dellemc/openmanage/tests/unit/plugins/modules/test_redfish_firmware.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Dell EMC OpenManage Ansible Modules # Version 3.0.0 # Copyright (C) 2020 Dell Inc. or its subsidiaries. All Rights Reserved. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # from __future__ import (absolute_import, division, print_function) i...
50.790441
117
0.608107
44056d28b1c71c60f01522fbf933323d8551cef3
5,582
py
Python
tabular_ml_toolkit/do_oof_kfold_train_preds.py
psmathur/tabular_ml_toolkit
46bd88abc398aeb5c7024c5b24c7a7ea9b3b5fb1
[ "Apache-2.0" ]
1
2021-11-07T04:50:26.000Z
2021-11-07T04:50:26.000Z
tabular_ml_toolkit/do_oof_kfold_train_preds.py
psmathur/tabular_ml_toolkit
46bd88abc398aeb5c7024c5b24c7a7ea9b3b5fb1
[ "Apache-2.0" ]
null
null
null
tabular_ml_toolkit/do_oof_kfold_train_preds.py
psmathur/tabular_ml_toolkit
46bd88abc398aeb5c7024c5b24c7a7ea9b3b5fb1
[ "Apache-2.0" ]
null
null
null
# do oof k-fold train and predictions def do_oof_kfold_train_preds(self, X:object, y:object, n_splits:int, model:object, X_test:object=None, tabnet_params:dict=None, random_state=42): """ This methods returns oof_preds and test_preds by doing kfold training o...
44.656
118
0.565568
7c4ea55d0f769452cff8e5c7998e73227a946d66
640
py
Python
development/doc/conf.py
jacquev6/Pyrraform
9f401a35120ddf05e98b72e66ed81280b9feb8c8
[ "MIT" ]
null
null
null
development/doc/conf.py
jacquev6/Pyrraform
9f401a35120ddf05e98b72e66ed81280b9feb8c8
[ "MIT" ]
null
null
null
development/doc/conf.py
jacquev6/Pyrraform
9f401a35120ddf05e98b72e66ed81280b9feb8c8
[ "MIT" ]
null
null
null
# coding: utf8 # Copyright 2020 Vincent Jacques <vincent@vincent-jacques.net> project = "Pyrraform" author = '<a href="http://vincent-jacques.net/">Vincent Jacques</a>' copyright = f'2020 {author}<script src="https://jacquev6.net/ribbon.2.js" data-project="{project}"></script>' master_doc = "index" extensions = []...
22.068966
109
0.696875
a43c9498241716b8ab73cfa7a18d558c09f52cf5
311,230
py
Python
scipy/stats/stats.py
jacoblapenna/scipy
4c14bb1cb8a623d317549a4726fff5d4b6635d7d
[ "BSD-3-Clause" ]
null
null
null
scipy/stats/stats.py
jacoblapenna/scipy
4c14bb1cb8a623d317549a4726fff5d4b6635d7d
[ "BSD-3-Clause" ]
null
null
null
scipy/stats/stats.py
jacoblapenna/scipy
4c14bb1cb8a623d317549a4726fff5d4b6635d7d
[ "BSD-3-Clause" ]
4
2019-07-25T01:57:45.000Z
2021-04-29T06:54:23.000Z
# Copyright 2002 Gary Strangman. All rights reserved # Copyright 2002-2016 The SciPy Developers # # The original code from Gary Strangman was heavily adapted for # use in SciPy by Travis Oliphant. The original code came with the # following disclaimer: # # This software is provided "as-is". There are no expressed or...
35.984507
106
0.616769
0e9d706b215b1e64b553b847773ffaad906993c9
7,999
py
Python
river/datasets/synth/led.py
Styren/river
128a5ffe9f80df85e23d9ae871e02bea6dc9c100
[ "BSD-3-Clause" ]
1
2021-04-19T10:47:11.000Z
2021-04-19T10:47:11.000Z
river/datasets/synth/led.py
Styren/river
128a5ffe9f80df85e23d9ae871e02bea6dc9c100
[ "BSD-3-Clause" ]
null
null
null
river/datasets/synth/led.py
Styren/river
128a5ffe9f80df85e23d9ae871e02bea6dc9c100
[ "BSD-3-Clause" ]
1
2021-01-22T15:18:39.000Z
2021-01-22T15:18:39.000Z
import numpy as np from .. import base from river.utils.skmultiflow_utils import check_random_state class LED(base.SyntheticDataset): """LED stream generator. This data source originates from the CART book [^1]. An implementation in C was donated to the UCI [^2] machine learning repository by David Aha....
36.692661
97
0.579072
9cfd8b6ce44ab7318a218a52bd1c2eaee28d680a
2,604
py
Python
paddlespeech/cls/exps/panns/predict.py
yuegc/PaddleSpeech
eceacd2738cdc981281991e9cd3c3f3898032507
[ "Apache-2.0" ]
1
2021-12-21T01:16:31.000Z
2021-12-21T01:16:31.000Z
paddlespeech/cls/exps/panns/predict.py
yuegc/PaddleSpeech
eceacd2738cdc981281991e9cd3c3f3898032507
[ "Apache-2.0" ]
null
null
null
paddlespeech/cls/exps/panns/predict.py
yuegc/PaddleSpeech
eceacd2738cdc981281991e9cd3c3f3898032507
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 PaddlePaddle 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 appli...
37.2
154
0.720046
316d92a1fe7cbbfceba8b6cda0ad3d3579ba852c
10,305
py
Python
convertmask/utils/longImgSplit/script.py
wwdok/mask2json
403c6b3df677185d5951239d13187b55bda6465a
[ "Apache-2.0" ]
null
null
null
convertmask/utils/longImgSplit/script.py
wwdok/mask2json
403c6b3df677185d5951239d13187b55bda6465a
[ "Apache-2.0" ]
null
null
null
convertmask/utils/longImgSplit/script.py
wwdok/mask2json
403c6b3df677185d5951239d13187b55bda6465a
[ "Apache-2.0" ]
null
null
null
''' lanhuage: python Descripttion: version: beta Author: xiaoshuyui Date: 2020-09-03 11:41:14 LastEditors: xiaoshuyui LastEditTime: 2021-02-01 14:33:07 ''' import copy import os import shutil import xml.etree.ElementTree as ET from glob import glob from multiprocessing import Pool import tqdm from convertmask import ...
38.595506
160
0.521009
146fb6978265d39f8fc916df557c18b19443773f
1,675
py
Python
python/dllib/src/bigdl/dllib/feature/dataset/dataset.py
DirkFi/BigDL
7493209165c046116470b9a1e1c8f527915d6f1e
[ "Apache-2.0" ]
3
2021-07-14T01:28:47.000Z
2022-03-02T01:16:32.000Z
python/dllib/src/bigdl/dllib/feature/dataset/dataset.py
DirkFi/BigDL
7493209165c046116470b9a1e1c8f527915d6f1e
[ "Apache-2.0" ]
null
null
null
python/dllib/src/bigdl/dllib/feature/dataset/dataset.py
DirkFi/BigDL
7493209165c046116470b9a1e1c8f527915d6f1e
[ "Apache-2.0" ]
null
null
null
# # Copyright 2016 The BigDL 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 ...
33.5
90
0.708657
c1038e0ac9e3fb0184308698340fc3316cdd5407
19,864
py
Python
src/experimental/corpus_thread_util.py
nostalgebraist/nostalgebraist-autoresponder
622349c4cad2a7aec1017837416c58a678151aae
[ "MIT" ]
39
2020-06-19T05:38:11.000Z
2022-03-28T04:35:31.000Z
src/experimental/corpus_thread_util.py
nostalgebraist/nostalgebraist-autoresponder
622349c4cad2a7aec1017837416c58a678151aae
[ "MIT" ]
null
null
null
src/experimental/corpus_thread_util.py
nostalgebraist/nostalgebraist-autoresponder
622349c4cad2a7aec1017837416c58a678151aae
[ "MIT" ]
2
2021-04-13T18:12:03.000Z
2021-12-16T23:20:12.000Z
import hashlib import random import re from collections import defaultdict, Counter from functools import partial from tqdm.auto import tqdm as tqdm_base tqdm = partial(tqdm_base, mininterval=1, smoothing=0) from tumblr_to_text.classic.autoresponder_static import EOT from experimental.corpus_text_hacks import extract...
36.116364
141
0.604259
be9757d7ba66586ac61de2b4f74c2e3400e225fd
31,542
py
Python
server.py
kw1jjang/P2PVoD
17ac0e3b88976a79b4ee577232242f3d8b9e10f3
[ "BSD-3-Clause" ]
1
2019-06-29T19:03:19.000Z
2019-06-29T19:03:19.000Z
server.py
kw1jjang/P2PVoD
17ac0e3b88976a79b4ee577232242f3d8b9e10f3
[ "BSD-3-Clause" ]
null
null
null
server.py
kw1jjang/P2PVoD
17ac0e3b88976a79b4ee577232242f3d8b9e10f3
[ "BSD-3-Clause" ]
null
null
null
import urllib2 import asyncore import csv import traceback import sys, errno from pyftpdlib import ftpserver import Queue, time, re import threading import threadclient import resource from helper import * from time import gmtime, strftime import commands import json import urllib import pdb # Debugging MSG DEBUGGING_...
40.804657
114
0.601135
bb7d462afbd11467ff9bff909ea07d9bd55c327f
5,356
py
Python
examples/plot_grid_search.py
pactools/pactools
1e95893bdfedf6e646749cf380c3815d4165bd9a
[ "BSD-3-Clause" ]
61
2017-03-22T17:03:27.000Z
2022-03-29T02:38:57.000Z
examples/plot_grid_search.py
pactools/pactools
1e95893bdfedf6e646749cf380c3815d4165bd9a
[ "BSD-3-Clause" ]
34
2017-03-30T18:41:17.000Z
2021-10-19T09:42:01.000Z
examples/plot_grid_search.py
pactools/pactools
1e95893bdfedf6e646749cf380c3815d4165bd9a
[ "BSD-3-Clause" ]
28
2017-03-30T18:30:15.000Z
2021-01-03T03:45:13.000Z
""" Grid-search and cross-validation -------------------------------- This examples presents the interface with scikit-learn's GridSearchCV. It creates an artificial signal with phase-amplitude coupling (PAC), fits a DAR model over a grid-search of parameter, using cross_validation. Cross-validation is done over epoc...
38.257143
79
0.654033
f6e6f5d85371c17a790d6b4b99f1543849f20b94
363
py
Python
settings.py
wenqingyu/BTCBot
fc7bca387fa2802daee218c4ceeba086ae19bb90
[ "MIT" ]
2
2020-06-27T09:32:28.000Z
2021-03-07T23:09:17.000Z
settings.py
wenqingyu/BTCBot
fc7bca387fa2802daee218c4ceeba086ae19bb90
[ "MIT" ]
null
null
null
settings.py
wenqingyu/BTCBot
fc7bca387fa2802daee218c4ceeba086ae19bb90
[ "MIT" ]
null
null
null
API_ACCESS = '' API_SECRET = '' BTC_UNIT = 0.001 BTC_AMOUNT = BTC_UNIT CNY_UNIT = 0.01 CNY_STEP = CNY_UNIT DIFFERENCE_STEP = 2.0 MIN_SURPLUS = 0.5 NO_GOOD_SLEEP = 15 MAX_TRIAL = 3 MAX_OPEN_ORDERS = 3 TOO_MANY_OPEN_SLEEP = 10 DEBUG_MODE = True REMOVE_THRESHOLD = 20.0 REMOVE_UNREALISTIC = True CANCEL_ALL_ON_S...
12.1
28
0.754821
58b741bc4f1a3348b6e6b8d419dd258d37cbbae7
3,868
py
Python
setup.py
mjlarson/CosmoloPy
eb20661d0aa20ab10b5d494593baeed0ac2c1ba0
[ "MIT" ]
null
null
null
setup.py
mjlarson/CosmoloPy
eb20661d0aa20ab10b5d494593baeed0ac2c1ba0
[ "MIT" ]
null
null
null
setup.py
mjlarson/CosmoloPy
eb20661d0aa20ab10b5d494593baeed0ac2c1ba0
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Future imports from __future__ import absolute_import, division, print_function import re import subprocess from setuptools import setup, find_packages, Extension from os import path import sys dirpath = path.abspath(path.dirname(__file__)) eh_dir = path.join(dirpath,'cosmolopy','EH') ext_n...
31.447154
79
0.61091
4915ad868233d0395c358a1dc61fbdc2c8f71e4a
17,554
py
Python
bddtests/common/common_pb2.py
rachod/fabric
b8c6b2f722b630b4dd6d082179ac65e2f9a9760b
[ "Apache-2.0" ]
null
null
null
bddtests/common/common_pb2.py
rachod/fabric
b8c6b2f722b630b4dd6d082179ac65e2f9a9760b
[ "Apache-2.0" ]
null
null
null
bddtests/common/common_pb2.py
rachod/fabric
b8c6b2f722b630b4dd6d082179ac65e2f9a9760b
[ "Apache-2.0" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: common/common.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message...
33.822736
1,563
0.737097
631a995e7c1297f07097e700ff5a87cfc9f21c69
4,412
py
Python
topi/python/topi/testing/pool3d_python.py
robo-corg/incubator-tvm
4ddfdb4b15d05a5bf85a984837967d004efee5dd
[ "Apache-2.0" ]
3
2020-03-12T10:25:51.000Z
2020-08-05T05:36:23.000Z
topi/python/topi/testing/pool3d_python.py
robo-corg/incubator-tvm
4ddfdb4b15d05a5bf85a984837967d004efee5dd
[ "Apache-2.0" ]
4
2021-03-30T11:59:59.000Z
2022-03-12T00:40:23.000Z
topi/python/topi/testing/pool3d_python.py
robo-corg/incubator-tvm
4ddfdb4b15d05a5bf85a984837967d004efee5dd
[ "Apache-2.0" ]
3
2021-07-20T07:40:15.000Z
2021-08-03T08:39:17.000Z
# 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...
46.93617
97
0.488667
ef43cc6e717bf4cf90fab6514745eb8aac0897d2
3,621
py
Python
tests/test_docker.py
huzech/cwltool
c26a7881c5135a42c5891e3903ba755a3ceefa6b
[ "Apache-2.0" ]
null
null
null
tests/test_docker.py
huzech/cwltool
c26a7881c5135a42c5891e3903ba755a3ceefa6b
[ "Apache-2.0" ]
11
2022-02-17T03:20:41.000Z
2022-03-30T10:54:02.000Z
tests/test_docker.py
suecharo/cwltool
997bddafe9837c551ff7681e7bbc5f3dea1b3096
[ "Apache-2.0" ]
null
null
null
"""Tests for docker engine.""" import re from pathlib import Path from shutil import which from cwltool.main import main from .util import get_data, get_main_output, needs_docker @needs_docker def test_docker_workflow(tmp_path: Path) -> None: """Basic test for docker with a CWL Workflow.""" result_code, _, ...
27.641221
88
0.593759
0c75977df9ac1d40f19c8fb4723fa0e874cd8c5f
621
py
Python
website/migrations/0050_auto_20170819_1624.py
CrowdcoinSA/crowdcoin-platform
72d48d4a7ac4abe7d02e3f369ca62a29c402c9d9
[ "MIT" ]
null
null
null
website/migrations/0050_auto_20170819_1624.py
CrowdcoinSA/crowdcoin-platform
72d48d4a7ac4abe7d02e3f369ca62a29c402c9d9
[ "MIT" ]
7
2020-02-12T00:10:22.000Z
2022-01-13T00:43:13.000Z
website/migrations/0050_auto_20170819_1624.py
CrowdcoinSA/crowdcoin-platform
72d48d4a7ac4abe7d02e3f369ca62a29c402c9d9
[ "MIT" ]
1
2020-10-05T12:20:19.000Z
2020-10-05T12:20:19.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2017-08-19 14:24 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('website', '0049_onetimepin'), ] operations = [ ...
28.227273
176
0.679549
6c0851ec5d3e7a99edcac32f617e83b3e7335bdd
8,914
py
Python
loky/backend/semlock.py
jeremiedbb/loky
d5928468e7a8fb991388aa1c06ea1823a5d793ae
[ "BSD-3-Clause" ]
null
null
null
loky/backend/semlock.py
jeremiedbb/loky
d5928468e7a8fb991388aa1c06ea1823a5d793ae
[ "BSD-3-Clause" ]
null
null
null
loky/backend/semlock.py
jeremiedbb/loky
d5928468e7a8fb991388aa1c06ea1823a5d793ae
[ "BSD-3-Clause" ]
null
null
null
############################################################################### # Ctypes implementation for posix semaphore. # # author: Thomas Moreau and Olivier Grisel # # adapted from cpython/Modules/_multiprocessing/semaphore.c (17/02/2017) # * use ctypes to access pthread semaphores and provide a full python # ...
32.414545
79
0.577855
6b3ff1f95abedd96152cf9cb79d94570cc369bed
2,191
py
Python
test/unittests/mocks.py
NeonJarbas/ovos-core
b516c319f13afb38401a5c9f6bbc0de35c7d7464
[ "Apache-2.0" ]
4
2021-11-03T22:06:30.000Z
2021-11-19T08:03:58.000Z
test/unittests/mocks.py
NeonJarbas/ovos-core
b516c319f13afb38401a5c9f6bbc0de35c7d7464
[ "Apache-2.0" ]
62
2021-10-29T21:18:51.000Z
2022-03-30T07:08:29.000Z
test/unittests/mocks.py
OpenVoiceOS/ovos-core
662577740a6e8cb5bb92bec014a05be9a6870b05
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Mycroft AI Inc. # # 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 writin...
28.454545
76
0.702419
5f85bdb0ce59ab1d83c5d3ab130eafa99b92e0b1
2,258
py
Python
format/FormatSMVADSCSN905.py
dials/dx2
94a5e2fd048b4133241c5a528ffaf7c504f22f8b
[ "BSD-3-Clause" ]
null
null
null
format/FormatSMVADSCSN905.py
dials/dx2
94a5e2fd048b4133241c5a528ffaf7c504f22f8b
[ "BSD-3-Clause" ]
null
null
null
format/FormatSMVADSCSN905.py
dials/dx2
94a5e2fd048b4133241c5a528ffaf7c504f22f8b
[ "BSD-3-Clause" ]
null
null
null
""" An implementation of the SMV image reader for ADSC images. Inherits from FormatSMVADSC, customised for example on ALS beamline 8.2.2 from back in the day which had its own way of recording beam centre. """ from __future__ import absolute_import, division, print_function from dxtbx.format.FormatSMVADSCSN import Fo...
36.419355
77
0.647476
18221709113a370d94790479b05a80076c375d32
31,120
py
Python
p2_mahjong/calculate_fan_func.py
yata0/Mahjong
764cd607df715b879f3f8a54b6def55e0b7d4706
[ "MIT" ]
null
null
null
p2_mahjong/calculate_fan_func.py
yata0/Mahjong
764cd607df715b879f3f8a54b6def55e0b7d4706
[ "MIT" ]
null
null
null
p2_mahjong/calculate_fan_func.py
yata0/Mahjong
764cd607df715b879f3f8a54b6def55e0b7d4706
[ "MIT" ]
null
null
null
import numpy as np from p2_mahjong.DEF import * from p2_mahjong.utils import wind_list, dragon_list, character_list from p2_mahjong.calculate_util import is_n_sequence, is_trip funclist = [None] * len(FanNum2TypeDict.keys()) # # 1. Pure Double Chow def is_pure_double_chow(state, player): sequences = state["pile_...
29.24812
118
0.682648
dc5cd13e1551e59bcf2e702d3c3a375f95271c56
1,698
py
Python
test/functional/feature_uacomment.py
zebnacoin/zebna
f383ab60d5226589a8b58ba0911645e02ab3e4e9
[ "MIT" ]
null
null
null
test/functional/feature_uacomment.py
zebnacoin/zebna
f383ab60d5226589a8b58ba0911645e02ab3e4e9
[ "MIT" ]
null
null
null
test/functional/feature_uacomment.py
zebnacoin/zebna
f383ab60d5226589a8b58ba0911645e02ab3e4e9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2017-2018 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 the -uacomment option.""" import re from test_framework.test_framework import ZebnaTestFramework...
41.414634
150
0.691991
4a50345cd1f9097dd76199ff27fdde9c839feb96
248
py
Python
Coding Club India/Asked Google Interview Questions/MinHeap.py
AbhiSaphire/Codechef.Practice
f671292dad2695e37458866442a6b951ba4e1a71
[ "MIT" ]
27
2020-05-19T06:46:45.000Z
2022-02-06T20:29:58.000Z
Coding Club India/Asked Google Interview Questions/MinHeap.py
AbhiSaphire/Codechef.Practice
f671292dad2695e37458866442a6b951ba4e1a71
[ "MIT" ]
1
2020-06-23T13:08:08.000Z
2020-10-06T06:27:15.000Z
Coding Club India/Asked Google Interview Questions/MinHeap.py
AbhiSaphire/Codechef.Practice
f671292dad2695e37458866442a6b951ba4e1a71
[ "MIT" ]
4
2020-05-19T06:47:52.000Z
2021-07-09T02:49:09.000Z
from heapq import heapify, heappop, heappush n, k = input().split() n, k = int(n), int(k) l = [int(x) for x in input().split()][:n] Heap = [] heapify(Heap) for i in l: heappush(Heap, i) for _ in range(k): print(heappop(Heap), end = ' ') print()
19.076923
44
0.612903
bdc82e9495ce7e0f2002c4279ff2fe89bf324175
6,127
py
Python
rotkehlchen/tests/unit/test_assets.py
coblee/rotki
d675f5c2d0df5176337b7b10038524ee74923482
[ "BSD-3-Clause" ]
null
null
null
rotkehlchen/tests/unit/test_assets.py
coblee/rotki
d675f5c2d0df5176337b7b10038524ee74923482
[ "BSD-3-Clause" ]
null
null
null
rotkehlchen/tests/unit/test_assets.py
coblee/rotki
d675f5c2d0df5176337b7b10038524ee74923482
[ "BSD-3-Clause" ]
null
null
null
import json import warnings as test_warnings from pathlib import Path import pytest from eth_utils import is_checksum_address from rotkehlchen.assets.asset import Asset, EthereumToken from rotkehlchen.assets.resolver import AssetResolver, asset_type_mapping from rotkehlchen.errors import DeserializationError, Unknown...
34.038889
97
0.655296
9d73db96c6961c7511e237225f4342f0c528c069
39,953
py
Python
autovideo/recognition/eco_primitive.py
wanghaisheng/autovideo
ca6c05e522f6ea8cb2043a60195769f3906a3a19
[ "MIT" ]
4
2021-11-01T15:33:03.000Z
2022-02-10T10:37:56.000Z
autovideo/recognition/eco_primitive.py
wanghaisheng/autovideo
ca6c05e522f6ea8cb2043a60195769f3906a3a19
[ "MIT" ]
2
2021-11-08T05:09:00.000Z
2022-03-08T20:42:02.000Z
autovideo/recognition/eco_primitive.py
wanghaisheng/autovideo
ca6c05e522f6ea8cb2043a60195769f3906a3a19
[ "MIT" ]
2
2022-02-28T10:03:14.000Z
2022-03-23T09:00:06.000Z
''' https://github.com/mzolfaghari/ECO-pytorch BSD 2-Clause License Copyright (c) 2017, Multimedia Laboratary, The Chinese University of Hong Kong All rights reserved. Copyright (c) 2021 DATA Lab at Texas A&M University Redistribution and use in source and binary forms, with or without modification, are pe...
44.740202
168
0.575551
0249cb2bf88de716739eefe5e05b02c93cf1c2c4
6,443
py
Python
test/unit/tools_support.py
vimalkumarvelayudhan/galaxy
ea89dd8f149778b6c2f0f3f4a34c8b21f7033af7
[ "CC-BY-3.0" ]
null
null
null
test/unit/tools_support.py
vimalkumarvelayudhan/galaxy
ea89dd8f149778b6c2f0f3f4a34c8b21f7033af7
[ "CC-BY-3.0" ]
1
2015-02-21T18:48:19.000Z
2015-02-27T15:50:32.000Z
test/unit/tools_support.py
vimalkumarvelayudhan/galaxy
ea89dd8f149778b6c2f0f3f4a34c8b21f7033af7
[ "CC-BY-3.0" ]
3
2015-02-22T13:34:16.000Z
2020-10-01T01:28:04.000Z
""" Module contains test fixtures meant to aide in the testing of jobs and tool evaluation. Such extensive "fixtures" are something of an anti-pattern so use of this should be limitted to tests of very 'extensive' classes. """ from collections import defaultdict import os.path import tempfile import shutil import stri...
35.016304
97
0.658699
13e00b52415a2ccee10a48d8235a68962785b505
1,218
py
Python
dltb/thirdparty/nvlabs/__init__.py
Petr-By/qtpyvis
0b9a151ee6b9a56b486c2bece9c1f03414629efc
[ "MIT" ]
3
2017-10-04T14:51:26.000Z
2017-10-22T09:35:50.000Z
dltb/thirdparty/nvlabs/__init__.py
CogSciUOS/DeepLearningToolbox
bf07578b9486d8c48e25df357bc4b9963b513b46
[ "MIT" ]
13
2017-11-26T10:05:00.000Z
2018-03-11T14:08:40.000Z
dltb/thirdparty/nvlabs/__init__.py
CogSciUOS/DeepLearningToolbox
bf07578b9486d8c48e25df357bc4b9963b513b46
[ "MIT" ]
2
2017-09-24T21:39:42.000Z
2017-10-04T15:29:54.000Z
"""NVlabs [1] is the label for NVIDIA research projects hosted on github. These include some official implementations for research papers and pretrained models. Some implementations (e.g., stylegan, stylegan2) make use of `dnnlib`, a deep learning module based on tensorflow (via `dnnlib.tflib`). [1] https://github.c...
29.707317
73
0.718391
268f144160e15d0a4babe83c44fc2946cdcaff38
38
py
Python
odoo-13.0/venv/lib/python3.8/site-packages/Hdf5StubImagePlugin.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
2
2021-06-20T16:56:45.000Z
2021-06-20T17:30:18.000Z
odoo-13.0/venv/lib/python3.8/site-packages/Hdf5StubImagePlugin.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
odoo-13.0/venv/lib/python3.8/site-packages/Hdf5StubImagePlugin.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
from PIL.Hdf5StubImagePlugin import *
19
37
0.842105