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
9191ce4acdf64582ae03e11bba2db1ca2e23f08d
14,906
py
Python
code/model_neuronal.py
awakenting/master-thesis
d612c3b240b2d7325cac6fbf9c85c3d81250b558
[ "MIT" ]
4
2019-07-04T17:51:34.000Z
2022-03-17T00:18:22.000Z
code/model_neuronal.py
awakenting/master-thesis
d612c3b240b2d7325cac6fbf9c85c3d81250b558
[ "MIT" ]
null
null
null
code/model_neuronal.py
awakenting/master-thesis
d612c3b240b2d7325cac6fbf9c85c3d81250b558
[ "MIT" ]
null
null
null
import numpy as np from numba import jit def f_theta_linear(theta, m, b): return theta*m + b def generate_stimulus(stim_size=1, speed=1, length=10, dt=0.1, init_distance=50, init_period=0, cutoff_angle=None): total_length = length + init_period stim_timesteps = np.arange(np.ceil(length/dt))*dt all_t...
45.033233
123
0.591775
accc7a6adcde34b5288c556e854d745f848a0a75
14,630
py
Python
tests/test_dicts.py
hugolarzabal/pytups
922c334af4c8f6fb318cf676a5a68b1054724c6d
[ "MIT" ]
null
null
null
tests/test_dicts.py
hugolarzabal/pytups
922c334af4c8f6fb318cf676a5a68b1054724c6d
[ "MIT" ]
null
null
null
tests/test_dicts.py
hugolarzabal/pytups
922c334af4c8f6fb318cf676a5a68b1054724c6d
[ "MIT" ]
null
null
null
# Some of these tests were inspired from the addict package # https://github.com/mewwts/addict import json import copy import unittest import pickle import pytups as pt TEST_VAL = [1, 2, 3] TEST_VAL2 = 4 TEST_DICT = {"a": {"b": {"c": TEST_VAL}}} TEST_DICT_2 = {"a": {"b": {"c": TEST_VAL}}, "b": {("c", "t"): {"d": TEST...
32.367257
88
0.564935
237f7658b73a17e379e358d7ad16024f16b962f7
527
py
Python
spaic/Learning/__init__.py
ZhejianglabNCRC/SPAIC
5a08328adcc5a197316cf353746bae7ab6865337
[ "Apache-2.0" ]
3
2022-03-01T03:04:25.000Z
2022-03-01T03:07:15.000Z
spaic/Learning/__init__.py
ZhejianglabNCRC/SPAIC
5a08328adcc5a197316cf353746bae7ab6865337
[ "Apache-2.0" ]
null
null
null
spaic/Learning/__init__.py
ZhejianglabNCRC/SPAIC
5a08328adcc5a197316cf353746bae7ab6865337
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on 2020/8/11 @project: SPAIC @author: Hong Chaofei @contact: hongchf@gmail.com @description: """ from .STCA_Learner import STCA from .STBP_Learner import STBP from .RSTDP import RSTDP, RSTDPET # from .PSD_Learner import PSD from .TRUE_Learner import TRUE_SpikeProp from .Rate_Modul...
23.954545
63
0.796964
28f6f508d0c0c87ae3a223550e8418f3dd65daa7
1,756
py
Python
arch_id/settings.py
garytyler/arch-id-model
97cab816257b10f0212930e695cbde69a6eff5ad
[ "MIT" ]
null
null
null
arch_id/settings.py
garytyler/arch-id-model
97cab816257b10f0212930e695cbde69a6eff5ad
[ "MIT" ]
null
null
null
arch_id/settings.py
garytyler/arch-id-model
97cab816257b10f0212930e695cbde69a6eff5ad
[ "MIT" ]
null
null
null
import logging from pathlib import Path from typing import Callable, Tuple import tensorflow as tf APP_NAME: str = "arch-id" TIMESTAMP_FORMAT: str = r"%Y-%m-%d-%H:%M:%S" DEFAULT_LOG_LEVEL = logging.INFO SEED = 123456 BASE_DIR: Path = Path(__file__).parent.parent.absolute() # Metrics WEIGHTS = ["imagenet", "none"] ...
30.807018
78
0.692483
d8e5ed64285cc26e9658092ef8dd0dba5dd69f2d
58
py
Python
test_2.py
creator5280/touchtk
145626c3b1e4506434e52f80130b7df0a30d1d0d
[ "MIT" ]
null
null
null
test_2.py
creator5280/touchtk
145626c3b1e4506434e52f80130b7df0a30d1d0d
[ "MIT" ]
null
null
null
test_2.py
creator5280/touchtk
145626c3b1e4506434e52f80130b7df0a30d1d0d
[ "MIT" ]
null
null
null
import touchtk as etk root1 = etk.Root() root1.mainloop()
14.5
21
0.741379
51c4b33206150714afdc0d3e5d64f2bc61808460
399
py
Python
sushi_store/asgi.py
sushi-store/server
e72d805df0c5b202b91a474cac36a9abdd48bc43
[ "MIT" ]
null
null
null
sushi_store/asgi.py
sushi-store/server
e72d805df0c5b202b91a474cac36a9abdd48bc43
[ "MIT" ]
null
null
null
sushi_store/asgi.py
sushi-store/server
e72d805df0c5b202b91a474cac36a9abdd48bc43
[ "MIT" ]
null
null
null
""" ASGI config for sushi_store project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_S...
23.470588
78
0.789474
c7f98053b9f9f0842e8bd080102b816061bd45f1
922
py
Python
db.py
craigderington/fastapi-mongodb-demo
ee9897be7b8bf6044805ad8bb42cb912a237af44
[ "Apache-2.0" ]
null
null
null
db.py
craigderington/fastapi-mongodb-demo
ee9897be7b8bf6044805ad8bb42cb912a237af44
[ "Apache-2.0" ]
null
null
null
db.py
craigderington/fastapi-mongodb-demo
ee9897be7b8bf6044805ad8bb42cb912a237af44
[ "Apache-2.0" ]
null
null
null
from models import Todo import motor.motor_asyncio client = motor.motor_asyncio.AsyncIOMotorClient( "mongodb://localhost:27017" ) database = client.TodoList collection = database.todo async def fetch_one_todo(title): document = await collection.find_one({"title": title}) return document async def fetch...
20.488889
64
0.698482
4db369f21f6c9251d929adda8353b09b17b1b7e1
2,495
py
Python
tensorflow_model_optimization/python/core/clustering/keras/cluster_integration_test.py
ptesan777/model-optimization
3fec5a74209e5a6a2b6ac603632b4a00ab523b36
[ "Apache-2.0" ]
1
2021-04-11T07:33:47.000Z
2021-04-11T07:33:47.000Z
tensorflow_model_optimization/python/core/clustering/keras/cluster_integration_test.py
ptesan777/model-optimization
3fec5a74209e5a6a2b6ac603632b4a00ab523b36
[ "Apache-2.0" ]
2
2020-08-14T20:34:54.000Z
2020-08-20T17:10:30.000Z
tensorflow_model_optimization/python/core/clustering/keras/cluster_integration_test.py
ptesan777/model-optimization
3fec5a74209e5a6a2b6ac603632b4a00ab523b36
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 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...
30.426829
80
0.658517
b5f53ec21049f89a5781be061d4cb5f4be6cde16
1,495
py
Python
Functions_Advanced/Recursion_Demos.py
MihailMarkovski/Python-Advanced-2020
8edea78cbe5588a409ba9bc3767861250f58c1a6
[ "MIT" ]
4
2020-09-19T13:53:19.000Z
2020-11-01T18:34:53.000Z
Functions_Advanced/Recursion_Demos.py
MNikov/Python-Advanced-September-2020
1d65039de7f094d908411afffa8aee9689ab4220
[ "MIT" ]
null
null
null
Functions_Advanced/Recursion_Demos.py
MNikov/Python-Advanced-September-2020
1d65039de7f094d908411afffa8aee9689ab4220
[ "MIT" ]
null
null
null
def tri_recursion(k): if k > 0: result = k + tri_recursion(k - 1) print(result) else: result = 0 return result def factorial_recursive(n): # Base case: 1! = 1 if n == 1: return 1 # Recursive case: n! = n * (n-1)! else: return n * factorial_recursive...
24.112903
82
0.61806
aede32ccb4cdaec2ae14cef199b4cb73901f89c0
70
py
Python
spectrocrunch/optics/__init__.py
woutdenolf/spectrocrunch
fde4b6e0f462f464ce7af6a942b355d3d8f39f77
[ "MIT" ]
3
2018-04-16T15:51:36.000Z
2019-12-16T11:21:05.000Z
spectrocrunch/optics/__init__.py
woutdenolf/spectrocrunch
fde4b6e0f462f464ce7af6a942b355d3d8f39f77
[ "MIT" ]
null
null
null
spectrocrunch/optics/__init__.py
woutdenolf/spectrocrunch
fde4b6e0f462f464ce7af6a942b355d3d8f39f77
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Optics for electromagnetic radiation. """
14
40
0.614286
fbb21b75996d9e46730ec873759244544d9c71bf
6,137
py
Python
Test/Python/Find_Attribute_Array_Statistics.py
tuks188/DREAM3DReview
81e921fd70c7050df361bf8626136d1c29faffe9
[ "BSD-3-Clause" ]
null
null
null
Test/Python/Find_Attribute_Array_Statistics.py
tuks188/DREAM3DReview
81e921fd70c7050df361bf8626136d1c29faffe9
[ "BSD-3-Clause" ]
null
null
null
Test/Python/Find_Attribute_Array_Statistics.py
tuks188/DREAM3DReview
81e921fd70c7050df361bf8626136d1c29faffe9
[ "BSD-3-Clause" ]
null
null
null
import time # Based on CreateLambertSphereSurface pipeline example # Tests the Find Attribute Array Statistics filter # These are the simpl_py python modules from dream3d import simplpy from dream3d import simpl from dream3d import simpl_helpers as sc from dream3d import simpl_test_dirs as sd from dream3d import orie...
50.719008
140
0.507088
b471abc7f74b52ad6121b0a7486d05ed2ffab9b2
4,876
py
Python
test/functional/rpc_bind.py
Kozisto/kabb30
279eff152252a461415cde8bbc739d0787df051d
[ "MIT" ]
null
null
null
test/functional/rpc_bind.py
Kozisto/kabb30
279eff152252a461415cde8bbc739d0787df051d
[ "MIT" ]
null
null
null
test/functional/rpc_bind.py
Kozisto/kabb30
279eff152252a461415cde8bbc739d0787df051d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-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. """Test running bitcoind with the -rpcbind and -rpcallowip options.""" import socket import sys from tes...
45.148148
162
0.623257
5d0478deb579e70622abeaea7a6ef2238f6767ee
1,626
py
Python
flaskerize/schematics/flask-api/files/{{ name }}.template/app/widget/controller.py
ehoeffner/flaskerize
cb887a80ae0a2c06f61cf941e029fd7174fdd233
[ "BSD-3-Clause" ]
119
2019-05-07T00:48:58.000Z
2022-03-30T07:17:53.000Z
flaskerize/schematics/flask-api/files/{{ name }}.template/app/widget/controller.py
ehoeffner/flaskerize
cb887a80ae0a2c06f61cf941e029fd7174fdd233
[ "BSD-3-Clause" ]
36
2019-04-28T11:14:56.000Z
2022-03-28T16:09:21.000Z
flaskerize/schematics/flask-api/files/{{ name }}.template/app/widget/controller.py
ehoeffner/flaskerize
cb887a80ae0a2c06f61cf941e029fd7174fdd233
[ "BSD-3-Clause" ]
15
2019-08-29T17:38:28.000Z
2021-04-29T02:27:59.000Z
from flask import request from flask_accepts import accepts, responds from flask_restx import Namespace, Resource from flask.wrappers import Response from typing import List from .schema import WidgetSchema from .service import WidgetService from .model import Widget from .interface import WidgetInterface api = Names...
28.526316
80
0.696187
c396b10d394b198bb76989dfe1254313fdb28d45
3,024
py
Python
dvc/commands/checkout.py
tirkarthi/dvc
61699d1d669159a320f5bb3022cefebf8fe7b9f5
[ "Apache-2.0" ]
null
null
null
dvc/commands/checkout.py
tirkarthi/dvc
61699d1d669159a320f5bb3022cefebf8fe7b9f5
[ "Apache-2.0" ]
41
2021-11-16T15:38:50.000Z
2022-03-30T10:32:14.000Z
dvc/commands/checkout.py
jhhuh/dvc
fecc81e951efeaa8130264f726c27e92876422ae
[ "Apache-2.0" ]
null
null
null
import argparse import operator from dvc.cli import completion from dvc.cli.command import CmdBase from dvc.cli.utils import append_doc_link from dvc.exceptions import CheckoutError from dvc.ui import ui def log_changes(stats): colors = { "modified": "yellow", "added": "green", "deleted":...
26.761062
76
0.577712
b6f9140d0551cadcbf8190ec29fec6bd6d22e2ec
970
py
Python
tests/test_scmrepo.py
pmrowla/scmrepo
4f33b3558d802bfb0f33992f83e5d72cccf50c5b
[ "Apache-2.0" ]
8
2021-11-26T05:45:20.000Z
2022-03-04T09:27:28.000Z
tests/test_scmrepo.py
pmrowla/scmrepo
4f33b3558d802bfb0f33992f83e5d72cccf50c5b
[ "Apache-2.0" ]
24
2021-11-26T03:40:26.000Z
2022-03-29T04:11:09.000Z
tests/test_scmrepo.py
pmrowla/scmrepo
4f33b3558d802bfb0f33992f83e5d72cccf50c5b
[ "Apache-2.0" ]
5
2021-12-06T02:50:57.000Z
2021-12-27T12:02:37.000Z
from typing import Type from unittest.mock import MagicMock from pytest_test_utils import TmpDir from pytest_test_utils.matchers import Matcher from scmrepo.git import Git from scmrepo.progress import GitProgressEvent def test_clone(tmp_dir: TmpDir, matcher: Type[Matcher]): progress = MagicMock() url = "htt...
31.290323
70
0.742268
05f22cf6b1a214745b2bc952c7348d7db0009f28
76
py
Python
Complicated GCD - 664A/sol.py
Mu-selim/Codeforces
d4e5d41102124774e0edea68b336a3db1851e882
[ "Unlicense" ]
1
2021-09-24T18:46:16.000Z
2021-09-24T18:46:16.000Z
Complicated GCD - 664A/sol.py
Mu-selim/Codeforces
d4e5d41102124774e0edea68b336a3db1851e882
[ "Unlicense" ]
null
null
null
Complicated GCD - 664A/sol.py
Mu-selim/Codeforces
d4e5d41102124774e0edea68b336a3db1851e882
[ "Unlicense" ]
null
null
null
a, b = map(str, input().split()) if a == b: print(a) else: print(1)
15.2
33
0.5
c2fc598b7a38a51cb0f02387352ab3cafb7e3288
964
py
Python
goods/migrations/0012_auto_20190503_2048.py
YuanfangLiao/GoodsExchange
b068814e57a7a1255471d9fe3de5e629199acb39
[ "MIT" ]
4
2019-11-17T01:52:44.000Z
2021-12-30T03:34:17.000Z
goods/migrations/0012_auto_20190503_2048.py
YuanfangLiao/GoodsExchange
b068814e57a7a1255471d9fe3de5e629199acb39
[ "MIT" ]
null
null
null
goods/migrations/0012_auto_20190503_2048.py
YuanfangLiao/GoodsExchange
b068814e57a7a1255471d9fe3de5e629199acb39
[ "MIT" ]
1
2020-01-05T05:10:13.000Z
2020-01-05T05:10:13.000Z
# Generated by Django 2.1.7 on 2019-05-03 12:48 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('goods', '0011_auto_20190502_1921'), ] operations = [ migrations.AlterModelOptions( name='goods', options={'verbose_n...
26.777778
75
0.558091
1f57ae6f8ea927f2bc9dd6ca53f3a37e183d2a35
4,038
py
Python
kisensum/openadr/openadr/openadr/celery.py
ChargePoint/volttron-applications
8d99c01a93f7c1ea98d4e4b0cfcefe85fe26320b
[ "BSD-3-Clause" ]
null
null
null
kisensum/openadr/openadr/openadr/celery.py
ChargePoint/volttron-applications
8d99c01a93f7c1ea98d4e4b0cfcefe85fe26320b
[ "BSD-3-Clause" ]
4
2021-03-19T23:36:34.000Z
2021-12-13T19:45:54.000Z
kisensum/openadr/openadr/openadr/celery.py
ChargePoint/volttron-applications
8d99c01a93f7c1ea98d4e4b0cfcefe85fe26320b
[ "BSD-3-Clause" ]
1
2020-05-25T05:03:55.000Z
2020-05-25T05:03:55.000Z
# -*- coding: utf-8 -*- {{{ # vim: set fenc=utf-8 ft=python sw=4 ts=4 sts=4 et: # Copyright (c) 2017, Battelle Memorial Institute # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistri...
40.38
72
0.762754
eaf9a3e24baaf0213787f07d8eaac7e668878dfb
8,893
py
Python
sphinx/source/conf.py
amias-iohk/theseus
88d9294721e3bbbb756b983f55df6d669e632da4
[ "MIT" ]
4
2018-08-08T07:11:29.000Z
2018-11-08T02:43:11.000Z
sphinx/source/conf.py
amias-iohk/theseus
88d9294721e3bbbb756b983f55df6d669e632da4
[ "MIT" ]
null
null
null
sphinx/source/conf.py
amias-iohk/theseus
88d9294721e3bbbb756b983f55df6d669e632da4
[ "MIT" ]
3
2018-10-18T13:42:24.000Z
2021-01-20T15:21:25.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # daedalus documentation build configuration file, created by # sphinx-quickstart on Thu Oct 29 11:01:18 2015. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # a...
31.31338
149
0.721804
dad25ad5364dfca337d3f78b69c5e11e5a15ad12
8,299
py
Python
backend/backend/settings/common.py
mblottiere/substra-backend
c3a16ad993c1b064b267b9de81e91609cd3e3d04
[ "Apache-2.0" ]
null
null
null
backend/backend/settings/common.py
mblottiere/substra-backend
c3a16ad993c1b064b267b9de81e91609cd3e3d04
[ "Apache-2.0" ]
null
null
null
backend/backend/settings/common.py
mblottiere/substra-backend
c3a16ad993c1b064b267b9de81e91609cd3e3d04
[ "Apache-2.0" ]
null
null
null
""" Django settings for backend project. Generated by 'django-admin startproject' using Django 2.0.5. For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.0/ref/settings/ """ import os im...
29.017483
105
0.66755
185f27fe1a9f267c3985e4591e9e076493604e69
6,863
py
Python
samples/client/petstore/python/petstore_api/models/capitalization.py
wwadge/swagger-codegen
777619d4d106b7b387f8ee8469f4ec43f3cdfdc7
[ "Apache-2.0" ]
3
2017-05-24T11:22:36.000Z
2021-02-09T15:26:41.000Z
samples/client/petstore/python/petstore_api/models/capitalization.py
wwadge/swagger-codegen
777619d4d106b7b387f8ee8469f4ec43f3cdfdc7
[ "Apache-2.0" ]
5
2019-03-06T07:41:25.000Z
2020-01-20T12:21:53.000Z
samples/client/petstore/python/petstore_api/models/capitalization.py
wwadge/swagger-codegen
777619d4d106b7b387f8ee8469f4ec43f3cdfdc7
[ "Apache-2.0" ]
11
2017-07-07T18:07:15.000Z
2021-11-10T02:12:04.000Z
# coding: utf-8 """ Swagger Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ OpenAPI spec version: 1.0.0 Contact: apiteam@swagger.io Generated by: https://github.com/swagger-api/sw...
26.808594
160
0.58983
be5791f139df6c3de6dd64f74cd8591b3bf4761d
3,000
py
Python
packaging/setup/plugins/ovirt-engine-setup/ovirt-engine/core/misc.py
phoenixsbk/kvmmgr
1ed6230dc4246fe511eeb5fc9d0532d3e651b459
[ "Apache-2.0" ]
1
2019-01-12T06:46:55.000Z
2019-01-12T06:46:55.000Z
packaging/setup/plugins/ovirt-engine-setup/ovirt-engine/core/misc.py
phoenixsbk/kvmmgr
1ed6230dc4246fe511eeb5fc9d0532d3e651b459
[ "Apache-2.0" ]
null
null
null
packaging/setup/plugins/ovirt-engine-setup/ovirt-engine/core/misc.py
phoenixsbk/kvmmgr
1ed6230dc4246fe511eeb5fc9d0532d3e651b459
[ "Apache-2.0" ]
2
2016-03-09T16:37:23.000Z
2022-01-19T13:12:27.000Z
# # ovirt-engine-setup -- ovirt engine setup # Copyright (C) 2014 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 r...
30.612245
75
0.636
f1010d2c775ebaa83f586b982c1f4bd9a74fedb5
1,147
py
Python
mayan/apps/rest_api/classes.py
camerondphillips/MAYAN
b8cd44af50f0b2f2b59286d9c88e2f7aa573a93f
[ "Apache-2.0" ]
null
null
null
mayan/apps/rest_api/classes.py
camerondphillips/MAYAN
b8cd44af50f0b2f2b59286d9c88e2f7aa573a93f
[ "Apache-2.0" ]
null
null
null
mayan/apps/rest_api/classes.py
camerondphillips/MAYAN
b8cd44af50f0b2f2b59286d9c88e2f7aa573a93f
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals from django.conf.urls import include, patterns, url from django.conf import settings from common.utils import load_backend class APIEndPoint(object): _registry = {} @classmethod def get_all(cls): return cls._registry.values() @classmethod def get...
24.404255
81
0.602441
6beada5a194289d05edfb22a550366fd86a8962c
850
py
Python
setup.py
networklocum/python_3_gmail
7983983bdb2f7b64caa19e6117e0834c77c988dc
[ "MIT" ]
2
2016-10-31T08:03:54.000Z
2019-05-04T10:35:11.000Z
setup.py
networklocum/python_3_gmail
7983983bdb2f7b64caa19e6117e0834c77c988dc
[ "MIT" ]
null
null
null
setup.py
networklocum/python_3_gmail
7983983bdb2f7b64caa19e6117e0834c77c988dc
[ "MIT" ]
1
2020-07-21T13:02:55.000Z
2020-07-21T13:02:55.000Z
import os from setuptools import setup # Utility function to read the README file. # Used for the long_description. It's nice, because now 1) we have a top level # README file and 2) it's easier to type in the README file than to put a raw # string in below ... def read(fname): return open(os.path.join(os.path.di...
30.357143
79
0.642353
f23d98399991d448b3ec10e7f7c3d173e6ff1d19
86
py
Python
trainer/__init__.py
iprapas/dl-continuous-deployment
bcee578a8ae3aa74e4ede00d125cb456f6a3010e
[ "MIT" ]
null
null
null
trainer/__init__.py
iprapas/dl-continuous-deployment
bcee578a8ae3aa74e4ede00d125cb456f6a3010e
[ "MIT" ]
null
null
null
trainer/__init__.py
iprapas/dl-continuous-deployment
bcee578a8ae3aa74e4ede00d125cb456f6a3010e
[ "MIT" ]
null
null
null
from .trainer import * from .proactive_trainer import * from .sparse_trainer import *
21.5
32
0.790698
78cfef0e2f5270fa70f60270750d54efe4632c26
2,302
py
Python
data_loading/sampler/prevalence_sampler.py
justusschock/data_loading_stuff
08a8d7b86f14a4901a9af4981d9a3c25a63ccb2a
[ "MIT" ]
null
null
null
data_loading/sampler/prevalence_sampler.py
justusschock/data_loading_stuff
08a8d7b86f14a4901a9af4981d9a3c25a63ccb2a
[ "MIT" ]
null
null
null
data_loading/sampler/prevalence_sampler.py
justusschock/data_loading_stuff
08a8d7b86f14a4901a9af4981d9a3c25a63ccb2a
[ "MIT" ]
null
null
null
from delira.data_loading.sampler.abstract_sampler import AbstractSampler from collections import OrderedDict from delira.data_loading.dataset import AbstractDataset class PerClassSampler(AbstractSampler): def __init__(self, indices, sampling_class, **kwargs): super().__init__(indices) self._num_s...
29.139241
72
0.607732
5619183eecb2543c189147a89c220dc8c1363065
42,460
py
Python
dask/dataframe/io/parquet/core.py
sdementen/dask
781b3eb5626f3cc74c7b4c69187f5cd941513a39
[ "BSD-3-Clause" ]
null
null
null
dask/dataframe/io/parquet/core.py
sdementen/dask
781b3eb5626f3cc74c7b4c69187f5cd941513a39
[ "BSD-3-Clause" ]
null
null
null
dask/dataframe/io/parquet/core.py
sdementen/dask
781b3eb5626f3cc74c7b4c69187f5cd941513a39
[ "BSD-3-Clause" ]
null
null
null
from distutils.version import LooseVersion import math import tlz as toolz import warnings from ....bytes import core # noqa from fsspec.core import get_fs_token_paths from fsspec.implementations.local import LocalFileSystem from fsspec.utils import stringify_path from .utils import _analyze_paths from ...core impor...
36.761905
88
0.605535
90b4c0295d88963e3ee554f9b005d187f179a032
38,198
py
Python
src/smirnoffio.py
bieniekmateusz/forcebalance
593791866e622ab4eae23ce29a0bed27499a118d
[ "BSD-3-Clause" ]
null
null
null
src/smirnoffio.py
bieniekmateusz/forcebalance
593791866e622ab4eae23ce29a0bed27499a118d
[ "BSD-3-Clause" ]
null
null
null
src/smirnoffio.py
bieniekmateusz/forcebalance
593791866e622ab4eae23ce29a0bed27499a118d
[ "BSD-3-Clause" ]
null
null
null
""" @package forcebalance.smirnoff SMIRNOFF force field support. @author Lee-Ping Wang @date 12/2018 """ from __future__ import division from builtins import zip from builtins import range import os from forcebalance import BaseReader from forcebalance.abinitio import AbInitio from forcebalance.binding import Binding...
46.077201
165
0.651997
f415eb5c0f860fa81850dfa25f138349c1a040c0
1,638
py
Python
return_MP4_video_level.py
Guymer/PyGuymer
7970659645f363788d371d00e2128f0cc3a47362
[ "Apache-2.0" ]
6
2018-09-18T00:48:03.000Z
2019-12-15T23:48:58.000Z
return_MP4_video_level.py
Guymer/PyGuymer
7970659645f363788d371d00e2128f0cc3a47362
[ "Apache-2.0" ]
1
2019-11-19T03:17:25.000Z
2019-11-19T17:24:45.000Z
return_MP4_video_level.py
Guymer/PyGuymer
7970659645f363788d371d00e2128f0cc3a47362
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ############################################################################################## # This file is deprecated because Python 2.x is deprecated # # A Python 3.x version of this file can be found at: # # ...
34.125
94
0.434066
2b27306f872e4c2c5a0c37ca7fce935a8d6117d0
1,472
py
Python
spypyapp/urls.py
josphat-otieno/Neighbour-Spy
054c1650fefa0a358775089238db06cffabb78ca
[ "MIT" ]
null
null
null
spypyapp/urls.py
josphat-otieno/Neighbour-Spy
054c1650fefa0a358775089238db06cffabb78ca
[ "MIT" ]
null
null
null
spypyapp/urls.py
josphat-otieno/Neighbour-Spy
054c1650fefa0a358775089238db06cffabb78ca
[ "MIT" ]
null
null
null
from django.urls import path,include from django.conf.urls import url from django.conf.urls.static import static from . import views from django.conf import settings from django.contrib.auth import views as auth_views from django.contrib.auth.views import LogoutView from django.contrib.auth import views as auth_vies ur...
54.518519
98
0.722826
c8973876453efb493fc0834d967583cadc360dda
417
py
Python
devel/toolkitEditor/ropEditor/opPickerCallbacks.py
t3kt/raytk
e0e2b3643b2f536d597c5db64f02d17f7e8f23ac
[ "CC-BY-4.0" ]
108
2020-11-23T01:22:37.000Z
2022-03-29T09:27:32.000Z
devel/toolkitEditor/ropEditor/opPickerCallbacks.py
t3kt/raytk
e0e2b3643b2f536d597c5db64f02d17f7e8f23ac
[ "CC-BY-4.0" ]
794
2020-11-21T22:27:37.000Z
2022-03-24T06:41:19.000Z
devel/toolkitEditor/ropEditor/opPickerCallbacks.py
t3kt/raytk
e0e2b3643b2f536d597c5db64f02d17f7e8f23ac
[ "CC-BY-4.0" ]
3
2021-06-19T00:57:54.000Z
2021-11-01T11:55:07.000Z
# noinspection PyUnreachableCode if False: # noinspection PyUnresolvedReferences from _stubs import * from .ropEditor import ROPEditor ext.ropEditor = ROPEditor(COMP()) def onKeyboardShortcut(info: dict): ext.ropEditor.onKeyboardShortcut(info.get('shortcutName')) def onPickItem(info: dict): ext.ropEditor.onEdi...
24.529412
59
0.779376
34025e9d739a0af504be00a9a0885e6e7c5fb27b
2,621
py
Python
run.py
lordmikefin/update_app_source
ddb61985cc8aeaa80d781cba79907e5649d74368
[ "MIT" ]
null
null
null
run.py
lordmikefin/update_app_source
ddb61985cc8aeaa80d781cba79907e5649d74368
[ "MIT" ]
null
null
null
run.py
lordmikefin/update_app_source
ddb61985cc8aeaa80d781cba79907e5649d74368
[ "MIT" ]
null
null
null
''' Created on 9 Mar 2020 @author: lordmike ''' import json import update_app_source import logging import sys import LMToyBoxPython #logger = update_app_source.logger logger = logging.getLogger('update_app_source') def conf_root_logger(): # Default log level. logging.basicConfig(level=logging.DEBUG) def co...
34.486842
89
0.745517
46551ec9b59352642f1b42b0a73dc48c29347033
1,218
py
Python
meiduo/meiduo/apps/meiduo_admin/views/permission_views.py
Archer1314/MeiDuo_store
50825e82aca3b82cd5354cd8a77d793cf32cfbcf
[ "MIT" ]
null
null
null
meiduo/meiduo/apps/meiduo_admin/views/permission_views.py
Archer1314/MeiDuo_store
50825e82aca3b82cd5354cd8a77d793cf32cfbcf
[ "MIT" ]
null
null
null
meiduo/meiduo/apps/meiduo_admin/views/permission_views.py
Archer1314/MeiDuo_store
50825e82aca3b82cd5354cd8a77d793cf32cfbcf
[ "MIT" ]
null
null
null
from rest_framework.viewsets import ModelViewSet from rest_framework.generics import ListAPIView from meiduo_admin.serializers.permission_serializer import * from meiduo_admin.utils.user_pages import MyUserPagination class PermissionViewSet(ModelViewSet): queryset = Permission.objects.all() serializer_class =...
38.0625
74
0.738095
12867701ea9dc522ca91f67a1b45bba487c2ed78
7,026
py
Python
smserver/models/user.py
CorySanin/stepmania-server
0573436abcd5951533f049dc56d91878a40726ad
[ "MIT" ]
17
2016-04-19T18:37:31.000Z
2020-12-15T04:14:20.000Z
smserver/models/user.py
CorySanin/stepmania-server
0573436abcd5951533f049dc56d91878a40726ad
[ "MIT" ]
40
2017-02-05T17:17:13.000Z
2018-04-08T10:31:39.000Z
smserver/models/user.py
CorySanin/stepmania-server
0573436abcd5951533f049dc56d91878a40726ad
[ "MIT" ]
3
2021-03-13T08:40:20.000Z
2021-09-17T07:31:22.000Z
""" User model module """ import datetime import enum from sqlalchemy import Column, Integer, String, DateTime, Boolean, ForeignKey, func from sqlalchemy.orm import relationship, reconstructor, object_session from smserver.models import schema from smserver.chathelper import with_color, nick_color from smserver.model...
27.661417
83
0.591517
1e6b5361654dfb083f4843452792cbf0307b35e8
716
py
Python
src/server/server/database/utils.py
FroeMic/CDTM-Backend-Workshop
de3ef16dc89dfd1217565ab2dd4aec753e59cda0
[ "MIT" ]
null
null
null
src/server/server/database/utils.py
FroeMic/CDTM-Backend-Workshop
de3ef16dc89dfd1217565ab2dd4aec753e59cda0
[ "MIT" ]
null
null
null
src/server/server/database/utils.py
FroeMic/CDTM-Backend-Workshop
de3ef16dc89dfd1217565ab2dd4aec753e59cda0
[ "MIT" ]
null
null
null
from flask import g import sqlite3 from server import app # make sure to use this gets only called within app.app_context() def get_db(): db = getattr(g, '_database', None) if db is None: db = g._database = sqlite3.connect('task.db') db.execute("PRAGMA foreign_keys = 1") db.row_factory...
27.538462
65
0.622905
e2c045ddba4ba5596903fe92bec92ab54af1b7ff
407
py
Python
kitchen_project/wsgi.py
glasscharlie/django-crud
772c0ae640415ad797594a9e03b01e0a8a52cf9f
[ "MIT" ]
null
null
null
kitchen_project/wsgi.py
glasscharlie/django-crud
772c0ae640415ad797594a9e03b01e0a8a52cf9f
[ "MIT" ]
6
2020-06-05T20:56:03.000Z
2021-09-22T18:33:30.000Z
kitchen_project/wsgi.py
glasscharlie/django-crud
772c0ae640415ad797594a9e03b01e0a8a52cf9f
[ "MIT" ]
null
null
null
""" WSGI config for kitchen_project 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/3.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJAN...
23.941176
78
0.793612
8c28e636ec2da56520d3674c8d94e219c0bc9e5c
35,566
py
Python
git/remote.py
sstancu/GitPython
096027bc4870407945261eecfe81706e32b1bfcd
[ "BSD-3-Clause" ]
null
null
null
git/remote.py
sstancu/GitPython
096027bc4870407945261eecfe81706e32b1bfcd
[ "BSD-3-Clause" ]
null
null
null
git/remote.py
sstancu/GitPython
096027bc4870407945261eecfe81706e32b1bfcd
[ "BSD-3-Clause" ]
null
null
null
# remote.py # Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors # # This module is part of GitPython and is released under # the BSD License: http://www.opensource.org/licenses/bsd-license.php # Module implementing a remote object allowing easy access to git remotes import logging import re f...
40.646857
119
0.613282
47002cd4288d56ff42dd2d61c2fdc35524702205
162
py
Python
0-python-tutorial/02-comments02.py
luis2ra/py3-00-w3schools
6bb851837f8ef9520491d13fa2c909047c9b18cf
[ "MIT" ]
null
null
null
0-python-tutorial/02-comments02.py
luis2ra/py3-00-w3schools
6bb851837f8ef9520491d13fa2c909047c9b18cf
[ "MIT" ]
null
null
null
0-python-tutorial/02-comments02.py
luis2ra/py3-00-w3schools
6bb851837f8ef9520491d13fa2c909047c9b18cf
[ "MIT" ]
null
null
null
# Demo Python Comments # Comments can be placed at the end of a line, and Python will ignore the rest of the line: print("Hello, World!") # This is a comment.
27
91
0.716049
ef44f8fa2f3f4230dcc01dd06951544c4c94b992
3,521
py
Python
apps/network_settings/admin.py
viallymboma/mlm_osw_network
d46a938f4a1295b59e863105926f9c249de00f9e
[ "MIT" ]
null
null
null
apps/network_settings/admin.py
viallymboma/mlm_osw_network
d46a938f4a1295b59e863105926f9c249de00f9e
[ "MIT" ]
null
null
null
apps/network_settings/admin.py
viallymboma/mlm_osw_network
d46a938f4a1295b59e863105926f9c249de00f9e
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import ( Packages, Rank, CompensationPlan, Product, RetailCommission, ActivationCommission, ReferralCommission, TokenCreationHelper, Epins ) # Register your models here. class PackagesAdmin(admin.ModelAdmin): list_display = [ 'id', 'pac...
16.530516
68
0.581937
5dd1646c8bc945f97f5b8f4cd253a03576553163
2,815
py
Python
src/options_charts/skeleton.py
jethar/options-charts
998a4abf0cf3649a26cb5c0e82c352c47dfedf9a
[ "MIT" ]
null
null
null
src/options_charts/skeleton.py
jethar/options-charts
998a4abf0cf3649a26cb5c0e82c352c47dfedf9a
[ "MIT" ]
null
null
null
src/options_charts/skeleton.py
jethar/options-charts
998a4abf0cf3649a26cb5c0e82c352c47dfedf9a
[ "MIT" ]
1
2020-11-26T22:11:15.000Z
2020-11-26T22:11:15.000Z
# -*- coding: utf-8 -*- """ This is a skeleton file that can serve as a starting point for a Python console script. To run this script uncomment the following lines in the [options.entry_points] section in setup.cfg: console_scripts = fibonacci = options_charts.skeleton:run Then run `python setup.py inst...
24.267241
77
0.636945
cf7fac3dc66287d180726231a0ffdec1c0a9af7f
7,941
py
Python
src/saga/filesystem/directory.py
ElsevierSoftwareX/SOFTX-D-15-00002
e5cdf8a35ec6321216e36d49da38d9f6676ab709
[ "MIT" ]
null
null
null
src/saga/filesystem/directory.py
ElsevierSoftwareX/SOFTX-D-15-00002
e5cdf8a35ec6321216e36d49da38d9f6676ab709
[ "MIT" ]
null
null
null
src/saga/filesystem/directory.py
ElsevierSoftwareX/SOFTX-D-15-00002
e5cdf8a35ec6321216e36d49da38d9f6676ab709
[ "MIT" ]
1
2021-11-04T21:48:14.000Z
2021-11-04T21:48:14.000Z
__author__ = "Andre Merzky, Ole Weidner, Alexander Grill" __copyright__ = "Copyright 2012-2013, The SAGA Project" __license__ = "MIT" import radical.utils.signatures as rus import saga.adaptors.base as sab import saga.session as ss import saga.task as st import saga.url ...
32.950207
83
0.497041
22ff13c335006ab880f777d658c0be3ec2cf7186
3,030
py
Python
framework/seleniumdriver.py
UncleWillis/BugBox
25682f25fc3222db383649a4924bcd65f2ddcb34
[ "BSD-3-Clause" ]
null
null
null
framework/seleniumdriver.py
UncleWillis/BugBox
25682f25fc3222db383649a4924bcd65f2ddcb34
[ "BSD-3-Clause" ]
null
null
null
framework/seleniumdriver.py
UncleWillis/BugBox
25682f25fc3222db383649a4924bcd65f2ddcb34
[ "BSD-3-Clause" ]
1
2021-06-23T04:44:25.000Z
2021-06-23T04:44:25.000Z
# Copyright 2013 University of Maryland. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE.TXT file. import time from selenium import webdriver import selenium.common.exceptions from pyvirtualdisplay import Display import logging logger = logging.ge...
32.934783
108
0.592079
8294c595353c625297f68b46755a69673bdcff78
110,160
py
Python
src/bitwardentools/client.py
dvd-dev/bitwardentools
d90c9d0f9b0be72875b1ccc3ba9a7022e2a16acc
[ "BSD-3-Clause" ]
null
null
null
src/bitwardentools/client.py
dvd-dev/bitwardentools
d90c9d0f9b0be72875b1ccc3ba9a7022e2a16acc
[ "BSD-3-Clause" ]
null
null
null
src/bitwardentools/client.py
dvd-dev/bitwardentools
d90c9d0f9b0be72875b1ccc3ba9a7022e2a16acc
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """ API client Alike wrapper around @bitwarden/cli npm package bu also with local implementation Tested with cli version 1.14.0 """ # -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function import enum import itertools import json import os import re import secrets ...
34.587127
119
0.512763
98720a6154f540cdddfbf9fd8e9bba2403613f8d
810
py
Python
Clases/Lab04/HallarComplejidad.py
PaulAlexander19/LabADAGrupoB
dd984381e336961501384d712705680a78182fc4
[ "BSD-3-Clause" ]
null
null
null
Clases/Lab04/HallarComplejidad.py
PaulAlexander19/LabADAGrupoB
dd984381e336961501384d712705680a78182fc4
[ "BSD-3-Clause" ]
null
null
null
Clases/Lab04/HallarComplejidad.py
PaulAlexander19/LabADAGrupoB
dd984381e336961501384d712705680a78182fc4
[ "BSD-3-Clause" ]
null
null
null
## Hallar la complejidad del codigo escrito en google ## Código en GO # def every_other(array): # array.each_with_index do |element, index| # if index.even? # arrat.each do |other_number| # puts number + other_number # end # end # end # end ## Implementa...
22.5
87
0.554321
acae8ada1304527add195dcb7623113dbfaee79b
910
py
Python
ligastorrinha/tools/decorators.py
pedropacheco95/ligastorrinha
e3334db08b21b54214a1f38a7dadc01385d96bfe
[ "MIT" ]
null
null
null
ligastorrinha/tools/decorators.py
pedropacheco95/ligastorrinha
e3334db08b21b54214a1f38a7dadc01385d96bfe
[ "MIT" ]
null
null
null
ligastorrinha/tools/decorators.py
pedropacheco95/ligastorrinha
e3334db08b21b54214a1f38a7dadc01385d96bfe
[ "MIT" ]
null
null
null
import functools from flask import redirect, session, url_for class Descriptor(object): def __init__(self, func): self.func = func def __get__(self, inst, type=None): val = self.func(inst) setattr(inst, self.func.__name__, val) return val def reify(func): return functools.w...
26
50
0.634066
129a5ec018ba8e2d4f9e47f834c0389ae46f69e1
3,316
py
Python
eval.py
PiperLiu/AliProducts
f51884c4dae035a879dbaca2c1575797f30ee7d3
[ "MIT" ]
1
2022-03-21T06:36:15.000Z
2022-03-21T06:36:15.000Z
eval.py
adamas-v/AliProducts
2633f780c2e7bd66b722a1727227a6e4e8f6529d
[ "MIT" ]
null
null
null
eval.py
adamas-v/AliProducts
2633f780c2e7bd66b722a1727227a6e4e8f6529d
[ "MIT" ]
2
2021-05-19T16:31:34.000Z
2021-08-24T05:35:21.000Z
# python 3.5, pytorch 1.14 import os, sys import ipdb from collections import defaultdict import dataloader as dl from options import opt from torch_template.utils.torch_utils import write_loss sys.path.insert(1, '../') import torch import torchvision import numpy as np import subprocess import random import torch.n...
30.145455
117
0.614294
a22c56b4bfc01759e99cda9b904f05741875ce5f
24,104
py
Python
tests/components/group/test_light.py
inishchith/core
90892d275c259088ed302bdaa8838303a6ef4094
[ "Apache-2.0" ]
6
2016-11-25T06:36:27.000Z
2021-11-16T11:20:23.000Z
tests/components/group/test_light.py
SicAriuSx83/core
162c39258e68ae42fe4e1560ae91ed54f5662409
[ "Apache-2.0" ]
45
2020-10-15T06:47:06.000Z
2022-03-31T06:26:16.000Z
tests/components/group/test_light.py
SicAriuSx83/core
162c39258e68ae42fe4e1560ae91ed54f5662409
[ "Apache-2.0" ]
2
2020-11-17T09:19:47.000Z
2020-12-16T03:56:09.000Z
"""The tests for the Group Light platform.""" from os import path from homeassistant import config as hass_config from homeassistant.components.group import DOMAIN, SERVICE_RELOAD import homeassistant.components.group.light as group from homeassistant.components.light import ( ATTR_BRIGHTNESS, ATTR_COLOR_TEMP,...
31.632546
88
0.634749
e0c75633114cc01cb10f2730330c2307fe7ca265
8,126
py
Python
dashboard/models.py
riseofthetigers/dboard101
da5503f991464de13c2b19d9aac3c1a962139957
[ "BSD-3-Clause" ]
null
null
null
dashboard/models.py
riseofthetigers/dboard101
da5503f991464de13c2b19d9aac3c1a962139957
[ "BSD-3-Clause" ]
null
null
null
dashboard/models.py
riseofthetigers/dboard101
da5503f991464de13c2b19d9aac3c1a962139957
[ "BSD-3-Clause" ]
null
null
null
import ast import datetime import xmlrpclib import feedparser import calendar import requests from django.conf import settings from django.contrib.contenttypes.generic import GenericForeignKey, GenericRelation from django.contrib.contenttypes.models import ContentType from django.db import models, connections METRIC_P...
34.578723
117
0.63426
2640ed20b3eab101bbb62e74adc610ec97a70a1e
12,160
py
Python
venv/lib/python3.9/site-packages/google/cloud/monitoring_v3/services/notification_channel_service/pagers.py
qarik-hanrattyjen/apache-airflow-backport-providers-google-2021.3.3
630dcef73e6a258b6e9a52f934e2dd912ce741f8
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.9/site-packages/google/cloud/monitoring_v3/services/notification_channel_service/pagers.py
qarik-hanrattyjen/apache-airflow-backport-providers-google-2021.3.3
630dcef73e6a258b6e9a52f934e2dd912ce741f8
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.9/site-packages/google/cloud/monitoring_v3/services/notification_channel_service/pagers.py
qarik-hanrattyjen/apache-airflow-backport-providers-google-2021.3.3
630dcef73e6a258b6e9a52f934e2dd912ce741f8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google 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...
40.264901
102
0.693914
3942f943b64ea23b01cfc38f52d9af8efc23dec7
131,026
py
Python
test/integration/component/test_netscaler_lb.py
lafferty/cshv3
ee0ff7ac240bd24e19db6bd3fb9869dd087442ba
[ "Apache-2.0" ]
2
2015-05-19T05:04:30.000Z
2016-09-07T00:33:17.000Z
test/integration/component/test_netscaler_lb.py
lafferty/cshv3
ee0ff7ac240bd24e19db6bd3fb9869dd087442ba
[ "Apache-2.0" ]
null
null
null
test/integration/component/test_netscaler_lb.py
lafferty/cshv3
ee0ff7ac240bd24e19db6bd3fb9869dd087442ba
[ "Apache-2.0" ]
2
2017-07-07T14:49:03.000Z
2018-07-31T06:38:42.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...
43.909517
128
0.43963
c18967e93c7fb3f7fa55217420ddd70bbf613945
8,175
py
Python
pgAdmin/utils/tests/test_versioned_template_loader.py
WeilerWebServices/PostgreSQL
ae594ed077bebbad1be3c1d95c38b7c2c2683e8c
[ "PostgreSQL" ]
null
null
null
pgAdmin/utils/tests/test_versioned_template_loader.py
WeilerWebServices/PostgreSQL
ae594ed077bebbad1be3c1d95c38b7c2c2683e8c
[ "PostgreSQL" ]
null
null
null
pgAdmin/utils/tests/test_versioned_template_loader.py
WeilerWebServices/PostgreSQL
ae594ed077bebbad1be3c1d95c38b7c2c2683e8c
[ "PostgreSQL" ]
null
null
null
########################################################################## # # pgAdmin 4 - PostgreSQL Tools # # Copyright (C) 2013 - 2020, The pgAdmin Development Team # This software is released under the PostgreSQL Licence # ########################################################################## import os from f...
37.328767
79
0.60685
cd84a02d1a514f8647f8b0cafa2ebdf2ef2acb97
1,541
py
Python
setup.py
seungahkim/dj-rest-auth
3f90258ad4f90a310225939fabdd747b9fbb4fa3
[ "MIT" ]
null
null
null
setup.py
seungahkim/dj-rest-auth
3f90258ad4f90a310225939fabdd747b9fbb4fa3
[ "MIT" ]
null
null
null
setup.py
seungahkim/dj-rest-auth
3f90258ad4f90a310225939fabdd747b9fbb4fa3
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os from setuptools import find_packages, setup here = os.path.dirname(os.path.abspath(__file__)) f = open(os.path.join(here, "README.md")) long_description = f.read().strip() f.close() about = {} with open("dj_rest_auth/__version__.py", "r", encoding="utf8") as f: exec(f.read(), ab...
28.537037
84
0.646982
5b8e74ec4ff7d8025e255ce8f33b8326d70854f7
11,883
py
Python
tests/conftest.py
fjmolinas/pycose
04ed117290ca195ac9f73d9975ad70181df878e5
[ "BSD-3-Clause" ]
18
2020-09-14T21:10:28.000Z
2022-02-27T21:51:23.000Z
tests/conftest.py
fjmolinas/pycose
04ed117290ca195ac9f73d9975ad70181df878e5
[ "BSD-3-Clause" ]
41
2020-09-08T08:56:32.000Z
2022-03-14T18:27:04.000Z
tests/conftest.py
fjmolinas/pycose
04ed117290ca195ac9f73d9975ad70181df878e5
[ "BSD-3-Clause" ]
15
2020-09-07T09:49:09.000Z
2021-12-13T21:17:12.000Z
import json import pathlib from binascii import unhexlify from os import listdir from os.path import join from typing import List import cbor2 from cose.keys import cosekey from cose.algorithms import CoseAlgorithm from cose.keys.curves import CoseCurve from cose.headers import CoseHeaderAttribute, IV, EphemeralKey, ...
41.548951
120
0.615922
3a3e449d959288b5138ec424ed882673e2c08588
35
py
Python
Day 1/variable.py
adamsaparudin/python-datascience
1b4164bb8a091f88def950f07108fe023737399c
[ "MIT" ]
null
null
null
Day 1/variable.py
adamsaparudin/python-datascience
1b4164bb8a091f88def950f07108fe023737399c
[ "MIT" ]
null
null
null
Day 1/variable.py
adamsaparudin/python-datascience
1b4164bb8a091f88def950f07108fe023737399c
[ "MIT" ]
null
null
null
nama = "Adam Saparudin" print(nama)
17.5
23
0.742857
2e5fb216396ef4dba5650bfa7fafcf5085ef0fa6
9,283
py
Python
hata/discord/user/guild_profile.py
WizzyBots/hata
f6991afc0bebf7dad932888a536f4d010f8663c7
[ "0BSD" ]
1
2022-03-02T03:59:57.000Z
2022-03-02T03:59:57.000Z
hata/discord/user/guild_profile.py
m0nk3ybraindead/hata
f87ed3d7009eeae31d6ea158772efd33775c7b1c
[ "0BSD" ]
1
2022-02-08T16:54:39.000Z
2022-02-08T16:54:39.000Z
hata/discord/user/guild_profile.py
WizzyBots/hata
f6991afc0bebf7dad932888a536f4d010f8663c7
[ "0BSD" ]
null
null
null
__all__ = ('GuildProfile', ) from datetime import datetime from scarletio import include from ..bases import IconSlot, Slotted from ..color import Color from ..core import ROLES from ..utils import DISCORD_EPOCH_START, timestamp_to_datetime create_partial_role_from_id = include('create_partial_role_from_id') clas...
32.80212
119
0.507487
9f4a046393a4174c6f1e7b13becca7032456e7a5
4,746
py
Python
spark_fhir_schemas/stu3/complex_types/bundle_search.py
icanbwell/SparkFhirSchemas
8c828313c39850b65f8676e67f526ee92b7d624e
[ "Apache-2.0" ]
2
2020-10-31T23:25:01.000Z
2021-06-09T14:12:42.000Z
spark_fhir_schemas/stu3/complex_types/bundle_search.py
icanbwell/SparkFhirSchemas
8c828313c39850b65f8676e67f526ee92b7d624e
[ "Apache-2.0" ]
null
null
null
spark_fhir_schemas/stu3/complex_types/bundle_search.py
icanbwell/SparkFhirSchemas
8c828313c39850b65f8676e67f526ee92b7d624e
[ "Apache-2.0" ]
null
null
null
from typing import Union, List, Optional from pyspark.sql.types import ( StructType, StructField, StringType, ArrayType, DataType, FloatType, ) # This file is auto-generated by generate_schema so do not edit manually # noinspection PyPep8Naming class Bundle_SearchSchema: """ A contain...
40.220339
96
0.576275
d2edac4afc824605c28ca68533900082f70b4fdb
2,761
py
Python
examples/subset_sum_timing.py
stephen-khan/feature_infection
96eb505d17e3b3d540305ae9a6f86be09ceb4974
[ "Unlicense" ]
null
null
null
examples/subset_sum_timing.py
stephen-khan/feature_infection
96eb505d17e3b3d540305ae9a6f86be09ceb4974
[ "Unlicense" ]
null
null
null
examples/subset_sum_timing.py
stephen-khan/feature_infection
96eb505d17e3b3d540305ae9a6f86be09ceb4974
[ "Unlicense" ]
null
null
null
import random import time from functools import partial from itertools import groupby, imap from operator import itemgetter from collections import namedtuple, defaultdict #from multiprocessing import Pool from feature_infection import subset_sum # An implementation of execut solution to subset sum optimization that ...
32.482353
84
0.666063
dc33e5eafffcd7995937a68e1411fd01669b43e2
5,326
py
Python
lensutils.py
alfa33333/SingleLensAnomalydetection
040d74dfb97b0d4c3f578c6751efd62899a36f71
[ "MIT" ]
null
null
null
lensutils.py
alfa33333/SingleLensAnomalydetection
040d74dfb97b0d4c3f578c6751efd62899a36f71
[ "MIT" ]
null
null
null
lensutils.py
alfa33333/SingleLensAnomalydetection
040d74dfb97b0d4c3f578c6751efd62899a36f71
[ "MIT" ]
null
null
null
'''Utilities for single lens models ''' import os import numpy as np from scipy import linalg def read_data(data_directory, t_range=None, minimum_points=5, max_uncertainty=0.05): """Load and assemble data. We assume that all files in data_directory have first 3 columns (date,mag,err_mag). t_rang...
30.434286
95
0.550507
9a8a4ccd04b1ee52418209be10e1cd48880082c6
4,460
py
Python
bdzd/bdzd.py
wyj1026/bdzd
a307ef33a9ae29920ae22754089ba4c78c5d8bbe
[ "MIT" ]
null
null
null
bdzd/bdzd.py
wyj1026/bdzd
a307ef33a9ae29920ae22754089ba4c78c5d8bbe
[ "MIT" ]
null
null
null
bdzd/bdzd.py
wyj1026/bdzd
a307ef33a9ae29920ae22754089ba4c78c5d8bbe
[ "MIT" ]
null
null
null
#!/usr/bin/env python ################################################## # # bdzd - get top answers to your question # written by wangyijie @tegongdete # inspired by Benjamin Gleizman (gleitz@mit.edu) # ################################################## __version__ = '0.1' import click import sys import os import ra...
25.632184
102
0.629821
b1bbfef6992515b0572b19e31a17a5568e125fdc
5,943
py
Python
opentimelineio_py/core/json_serializer.py
ldsxp/OpenTimelineIO-Py
c696371e95ec9b31e2c2ccad629fc950cd45c65b
[ "Apache-2.0" ]
null
null
null
opentimelineio_py/core/json_serializer.py
ldsxp/OpenTimelineIO-Py
c696371e95ec9b31e2c2ccad629fc950cd45c65b
[ "Apache-2.0" ]
null
null
null
opentimelineio_py/core/json_serializer.py
ldsxp/OpenTimelineIO-Py
c696371e95ec9b31e2c2ccad629fc950cd45c65b
[ "Apache-2.0" ]
null
null
null
# # Copyright 2017 Pixar Animation Studios # # Licensed under the Apache License, Version 2.0 (the "Apache License") # with the following modification; you may not use this file except in # compliance with the Apache License and the following modification to it: # Section 6. Trademarks. is deleted and replaced with: # ...
27.136986
79
0.706882
af5c5c1cecf09d0444a886594848d79ee0f1b312
3,484
py
Python
msgraph-cli-extensions/beta/search_beta/azext_search_beta/vendored_sdks/search/aio/_configuration.py
thewahome/msgraph-cli
33127d9efa23a0e5f5303c93242fbdbb73348671
[ "MIT" ]
null
null
null
msgraph-cli-extensions/beta/search_beta/azext_search_beta/vendored_sdks/search/aio/_configuration.py
thewahome/msgraph-cli
33127d9efa23a0e5f5303c93242fbdbb73348671
[ "MIT" ]
null
null
null
msgraph-cli-extensions/beta/search_beta/azext_search_beta/vendored_sdks/search/aio/_configuration.py
thewahome/msgraph-cli
33127d9efa23a0e5f5303c93242fbdbb73348671
[ "MIT" ]
null
null
null
# 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 ...
43.55
134
0.67566
80653273222d7094f3306615ec91355ab24578a7
332
py
Python
archive/urls.py
WarwickAnimeSoc/aniMango
f927c2bc6eb484561ab38172ebebee6f03c8b13b
[ "MIT" ]
null
null
null
archive/urls.py
WarwickAnimeSoc/aniMango
f927c2bc6eb484561ab38172ebebee6f03c8b13b
[ "MIT" ]
6
2016-10-18T14:52:05.000Z
2020-06-18T15:14:41.000Z
archive/urls.py
WarwickAnimeSoc/aniMango
f927c2bc6eb484561ab38172ebebee6f03c8b13b
[ "MIT" ]
6
2020-02-07T17:37:37.000Z
2021-01-15T00:01:43.000Z
from django.conf.urls import url from . import views app_name = 'archive' urlpatterns = [ url(r'^$', views.index, name='index'), url(r'^item/(?P<id>[0-9]+)$', views.item, name='item'), url(r'^(?P<year>[0-9]+)/(?P<month>[0-9]+)$', views.month, name='month'), url(r'^(?P<year>[0-9]+)$', views.year, name...
25.538462
76
0.563253
08f0052f8e559b893f6067608b15e102c5c890de
7,197
py
Python
aiokubernetes/models/v1_volume_mount.py
tantioch/aiokubernetes
2f332498598ece14d22f8e59ecb02665db6db68d
[ "Apache-2.0" ]
24
2018-07-07T15:12:19.000Z
2021-09-01T07:33:11.000Z
aiokubernetes/models/v1_volume_mount.py
revoteon/aiokubernetes
730eae03e4779563740f07ad3ecef180b511ac18
[ "Apache-2.0" ]
5
2018-07-11T00:09:17.000Z
2018-10-22T16:41:54.000Z
aiokubernetes/models/v1_volume_mount.py
revoteon/aiokubernetes
730eae03e4779563740f07ad3ecef180b511ac18
[ "Apache-2.0" ]
3
2018-07-10T10:16:57.000Z
2018-10-20T19:32:05.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: v1.10.6 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 class V...
31.565789
211
0.603585
e0e3098111afee96adb56c1ace5da66d2e67a73a
4,632
py
Python
src/foreign_if/python/examples/df_demo.py
XpressAI/frovedis
bda0f2c688fb832671c5b542dd8df1c9657642ff
[ "BSD-2-Clause" ]
63
2018-06-21T14:11:59.000Z
2022-03-30T11:24:36.000Z
src/foreign_if/python/examples/df_demo.py
XpressAI/frovedis
bda0f2c688fb832671c5b542dd8df1c9657642ff
[ "BSD-2-Clause" ]
5
2018-09-22T14:01:53.000Z
2021-12-27T16:11:05.000Z
src/foreign_if/python/examples/df_demo.py
XpressAI/frovedis
bda0f2c688fb832671c5b542dd8df1c9657642ff
[ "BSD-2-Clause" ]
12
2018-08-23T15:59:44.000Z
2022-02-20T06:47:22.000Z
#!/usr/bin/env python import sys import numpy as np import pandas as pd import frovedis.dataframe as fdf from frovedis.exrpc.server import FrovedisServer # initializing the Frovedis server argvs = sys.argv argc = len(argvs) if (argc < 2): print ('Please give frovedis_server calling command as the first argument \...
27.903614
144
0.651554
6ca85d8ad0a34235d3e4219a994156dc87c64b75
5,290
py
Python
emloop_tensorflow/tests/hooks/write_tensorboard_test.py
iterait/emloop-tensorflow
a1dcfad35f31c83780e583cc5391170bc2ff2644
[ "MIT" ]
2
2018-10-23T12:49:59.000Z
2018-10-28T18:20:00.000Z
emloop_tensorflow/tests/hooks/write_tensorboard_test.py
iterait/emloop-tensorflow
a1dcfad35f31c83780e583cc5391170bc2ff2644
[ "MIT" ]
20
2018-10-04T15:45:48.000Z
2020-05-28T08:09:42.000Z
emloop_tensorflow/tests/hooks/write_tensorboard_test.py
iterait/emloop-tensorflow
a1dcfad35f31c83780e583cc5391170bc2ff2644
[ "MIT" ]
null
null
null
""" Test module for :py:mod:`emloop_tensorflow.hooks.write_tensorboard` module. """ import logging import pytest import numpy as np from emloop_tensorflow.hooks import WriteTensorBoard from ..model_test import TrainableModel, _OPTIMIZER @pytest.fixture(scope='function') def model(): return TrainableModel(datas...
38.613139
107
0.67259
3fc7bedb2730eaf8d23da3127f92d9c1c61694f8
1,231
py
Python
examples/Python/Advanced/trajectory_io.py
Forest75/Open3D
61b90a6e06a2c209ad2b9f1c57fbd5f21e879dae
[ "MIT" ]
113
2018-11-12T03:32:52.000Z
2022-03-29T13:58:54.000Z
examples/Python/Advanced/trajectory_io.py
Forest75/Open3D
61b90a6e06a2c209ad2b9f1c57fbd5f21e879dae
[ "MIT" ]
3
2018-10-19T12:09:57.000Z
2020-04-22T11:55:54.000Z
examples/Python/Advanced/trajectory_io.py
Forest75/Open3D
61b90a6e06a2c209ad2b9f1c57fbd5f21e879dae
[ "MIT" ]
27
2018-10-16T20:01:18.000Z
2021-07-26T08:02:20.000Z
# Open3D: www.open3d.org # The MIT License (MIT) # See license file or visit www.open3d.org for details # examples/Python/Advanced/trajectory_io.py import numpy as np class CameraPose: def __init__(self, meta, mat): self.metadata = meta self.pose = mat def __str__(self): return 'Me...
27.977273
75
0.536962
4ce9dc0321b54795266af70b5f7da0257b95bffe
1,164
bzl
Python
build/com_google_absl/repo.bzl
world-federation-of-advertisers/common-cpp
689e0284f620a397ed7aac12c0cb525f3bfd4ca8
[ "Apache-2.0" ]
null
null
null
build/com_google_absl/repo.bzl
world-federation-of-advertisers/common-cpp
689e0284f620a397ed7aac12c0cb525f3bfd4ca8
[ "Apache-2.0" ]
7
2021-07-14T00:28:37.000Z
2022-03-31T01:41:42.000Z
build/com_google_absl/repo.bzl
world-federation-of-advertisers/common-cpp
689e0284f620a397ed7aac12c0cb525f3bfd4ca8
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 The Cross-Media Measurement 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 ...
35.272727
91
0.70189
1e79b4dae2d945733d003b55757886ced488d0cf
32,273
py
Python
MedManagementWeb/env/lib/python3.5/site-packages/ruamel/yaml/parser.py
Samuel789/MediPi
6e738d1acc426e4196cae7fb174174c3e1480936
[ "Apache-2.0" ]
null
null
null
MedManagementWeb/env/lib/python3.5/site-packages/ruamel/yaml/parser.py
Samuel789/MediPi
6e738d1acc426e4196cae7fb174174c3e1480936
[ "Apache-2.0" ]
null
null
null
MedManagementWeb/env/lib/python3.5/site-packages/ruamel/yaml/parser.py
Samuel789/MediPi
6e738d1acc426e4196cae7fb174174c3e1480936
[ "Apache-2.0" ]
1
2020-10-22T03:54:55.000Z
2020-10-22T03:54:55.000Z
# coding: utf-8 from __future__ import absolute_import # The following YAML grammar is LL(1) and is parsed by a recursive descent # parser. # # stream ::= STREAM-START implicit_document? explicit_document* # STREAM-END # implicit_document ::...
42.802387
90
0.574102
c501cb57be5915768f8c025ae3a06a6751b7dbe9
678
py
Python
play/allenNLP_tutorials/play_pos_ner.py
davestanley/animated-succotash
174f08063c222ead153bf9db67c75e2843301912
[ "BSD-3-Clause" ]
null
null
null
play/allenNLP_tutorials/play_pos_ner.py
davestanley/animated-succotash
174f08063c222ead153bf9db67c75e2843301912
[ "BSD-3-Clause" ]
null
null
null
play/allenNLP_tutorials/play_pos_ner.py
davestanley/animated-succotash
174f08063c222ead153bf9db67c75e2843301912
[ "BSD-3-Clause" ]
null
null
null
import allennlp from allennlp.data.tokenizers.word_splitter import SpacyWordSplitter spw = SpacyWordSplitter(pos_tags = True, ner = True) sentence = 'I am going ot the store in France. George Washington is awesome.' sentences = ['I am going to the store in France.', 'George Washington is awesome', 'I like ice cream....
22.6
150
0.713864
5ffe8b5396bf2f7b051e46fa0d1389351822bf86
3,063
py
Python
ccgpack/simulators.py
vafaei-ar/ccgpack
73cf1d644f747fd2251ed9256cae740e6b052da7
[ "BSD-3-Clause" ]
3
2019-04-15T08:40:32.000Z
2019-04-18T22:06:29.000Z
ccgpack/simulators.py
vafaei-ar/ccgpack
73cf1d644f747fd2251ed9256cae740e6b052da7
[ "BSD-3-Clause" ]
null
null
null
ccgpack/simulators.py
vafaei-ar/ccgpack
73cf1d644f747fd2251ed9256cae740e6b052da7
[ "BSD-3-Clause" ]
2
2019-04-15T08:41:35.000Z
2021-10-02T08:24:22.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np from scipy.interpolate import interp1d class StochasticFieldSimulator(object): def __init__(self,cl,lmax=None): self.cl1d = interp1d(cl[:,0], cl[:,1]) if lmax is Non...
32.585106
112
0.490369
215d0535edb877991dd5895627f593b11cc6c2d3
966
py
Python
jtnnencoder/jtnn/nnutils.py
LiamWilbraham/jtnnencoder
fabede920d7def1d248c3157dd31f7cc5a2132e0
[ "MIT" ]
5
2021-06-07T19:59:57.000Z
2022-01-17T19:49:19.000Z
jtnnencoder/jtnn/nnutils.py
LiamWilbraham/jtnnencoder
fabede920d7def1d248c3157dd31f7cc5a2132e0
[ "MIT" ]
1
2021-10-15T09:20:59.000Z
2021-10-15T09:20:59.000Z
jtnnencoder/jtnn/nnutils.py
LiamWilbraham/jtnnencoder
fabede920d7def1d248c3157dd31f7cc5a2132e0
[ "MIT" ]
1
2020-11-24T16:17:11.000Z
2020-11-24T16:17:11.000Z
import torch import torch.nn as nn from torch.autograd import Variable def create_var(tensor, requires_grad=None): if requires_grad is None: return Variable(tensor) else: return Variable(tensor, requires_grad=requires_grad) def index_select_ND(source, dim, index): index_size = index.size()...
28.411765
60
0.646998
8d5b2587974cf675beb06aabfcc66edd0efbc24f
2,902
py
Python
src/api/tests/integrationtests/configuration/TestConfigService.py
PythonDataIntegrator/pythondataintegrator
6167778c36c2295e36199ac0d4d256a4a0c28d7a
[ "MIT" ]
14
2020-12-19T15:06:13.000Z
2022-01-12T19:52:17.000Z
src/api/tests/integrationtests/configuration/TestConfigService.py
PythonDataIntegrator/pythondataintegrator
6167778c36c2295e36199ac0d4d256a4a0c28d7a
[ "MIT" ]
43
2021-01-06T22:05:22.000Z
2022-03-10T10:30:30.000Z
src/api/tests/integrationtests/configuration/TestConfigService.py
PythonDataIntegrator/pythondataintegrator
6167778c36c2295e36199ac0d4d256a4a0c28d7a
[ "MIT" ]
4
2020-12-18T23:10:09.000Z
2021-04-02T13:03:12.000Z
import os from unittest import TestCase from IocManager import IocManager from infrastructure.api.FlaskAppWrapper import FlaskAppWrapper from infrastructure.configuration.ConfigService import ConfigService from infrastructure.delivery.EmailProvider import EmailProvider from models.dao.common.ConfigParameter import Con...
47.57377
113
0.725362
02b61c54a7735ae8938b22511fbf8bced58391a9
8,756
py
Python
gpu_implementation/neuroevolution/models/base.py
deyandyankov/research.mtne
88b923391d4831233ef89059322faa4366b8a5be
[ "MIT" ]
null
null
null
gpu_implementation/neuroevolution/models/base.py
deyandyankov/research.mtne
88b923391d4831233ef89059322faa4366b8a5be
[ "MIT" ]
5
2020-01-28T22:34:54.000Z
2022-02-10T00:14:49.000Z
gpu_implementation/neuroevolution/models/base.py
deyandyankov/research.mtne
88b923391d4831233ef89059322faa4366b8a5be
[ "MIT" ]
1
2019-03-16T12:02:14.000Z
2019-03-16T12:02:14.000Z
__copyright__ = """ Copyright (c) 2018 Uber Technologies, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, mer...
43.346535
152
0.605413
8018e188f6157791fedf6cfd7036e6b0d3a968e0
1,871
py
Python
util/data.py
princeton-vl/selfstudy
d18ab26c11843557ee75aaccf6ccb63de85b397c
[ "BSD-3-Clause" ]
55
2020-04-01T15:07:43.000Z
2022-02-21T14:27:54.000Z
util/data.py
princeton-vl/selfstudy
d18ab26c11843557ee75aaccf6ccb63de85b397c
[ "BSD-3-Clause" ]
null
null
null
util/data.py
princeton-vl/selfstudy
d18ab26c11843557ee75aaccf6ccb63de85b397c
[ "BSD-3-Clause" ]
2
2020-04-27T12:59:34.000Z
2021-03-27T22:07:13.000Z
import gin import ray import time import numpy as np from torch.utils.data import DataLoader from .. import datasets @gin.configurable('dataloader', blacklist=['dataset']) def initialize_dataloader(dataset, batch_size=8, shuffle=True, num_workers=0): return DataLoader(dataset, batch_size=batch_size, ...
26.728571
79
0.647782
12e6be0645c3e5c8838ef29913336b57ff13280f
1,959
py
Python
process_latex.py
rowanc1/process_latex
fdb0667094bd5b0449401d49bcb179108c090009
[ "MIT" ]
null
null
null
process_latex.py
rowanc1/process_latex
fdb0667094bd5b0449401d49bcb179108c090009
[ "MIT" ]
null
null
null
process_latex.py
rowanc1/process_latex
fdb0667094bd5b0449401d49bcb179108c090009
[ "MIT" ]
null
null
null
""" Process a scattered latex file into one thing. """ import os import subprocess import shutil def process(fname, oname=None, folder=None): if oname is None: oname = folder + '/' + fname.split('.tex')[0] + '_processed.tex' try: os.mkdir(folder) except OSError: pass # Export...
26.12
82
0.559469
20c40e25e5810e58e3315967a6f00e81b2459419
9,884
py
Python
vnpy/api/da/generator/generate_api_functions.py
funrunskypalace/vnpy
2d87aede685fa46278d8d3392432cc127b797926
[ "MIT" ]
19,529
2015-03-02T12:17:35.000Z
2022-03-31T17:18:27.000Z
vnpy/api/da/generator/generate_api_functions.py
funrunskypalace/vnpy
2d87aede685fa46278d8d3392432cc127b797926
[ "MIT" ]
2,186
2015-03-04T23:16:33.000Z
2022-03-31T03:44:01.000Z
vnpy/api/da/generator/generate_api_functions.py
funrunskypalace/vnpy
2d87aede685fa46278d8d3392432cc127b797926
[ "MIT" ]
8,276
2015-03-02T05:21:04.000Z
2022-03-31T13:13:13.000Z
"""""" import importlib class ApiGenerator: """API生成器""""" def __init__(self, filename: str, prefix: str, name: str, class_name: str): """Constructor""" self.filename = filename self.prefix = prefix self.name = name self.class_name = class_name self.callbacks ...
35.426523
116
0.4569
2a0243efc02039f069c0fab0e75ca908e550ad9a
4,450
py
Python
via_httplib.py
jtamagnan-delphix/delphixpy-examples
441bf8f7eef52fd0b71cf1961cf7aedec9814d99
[ "Apache-2.0" ]
11
2018-02-23T16:48:18.000Z
2022-01-19T23:37:50.000Z
via_httplib.py
jtamagnan-delphix/delphixpy-examples
441bf8f7eef52fd0b71cf1961cf7aedec9814d99
[ "Apache-2.0" ]
10
2018-10-22T21:10:38.000Z
2021-02-19T20:00:21.000Z
via_httplib.py
jtamagnan-delphix/delphixpy-examples
441bf8f7eef52fd0b71cf1961cf7aedec9814d99
[ "Apache-2.0" ]
16
2018-06-02T07:02:57.000Z
2021-07-18T05:27:42.000Z
#!/usr/bin/env python # # Copyright (c) 2018 by Delphix. All rights reserved. # from __future__ import print_function import argparse import httplib import json import os import sys import urllib from argparse import RawTextHelpFormatter SCRIPT_DESCRIPTION = """ Connect to Delphix engine to run some queries using t...
26.176471
105
0.642022
89ce500f006bfbcab87a05d0ec61a1854cde102e
4,523
py
Python
tools/py/serial/literate.py
zepheira/versa
a33558c8bcff11eed0ef212fe9ec7e3d97047732
[ "Apache-2.0" ]
7
2015-03-12T19:13:34.000Z
2021-07-31T10:10:46.000Z
tools/py/serial/literate.py
zepheira/versa
a33558c8bcff11eed0ef212fe9ec7e3d97047732
[ "Apache-2.0" ]
14
2019-04-18T16:26:55.000Z
2022-03-31T16:58:46.000Z
tools/py/serial/literate.py
zepheira/versa
a33558c8bcff11eed0ef212fe9ec7e3d97047732
[ "Apache-2.0" ]
2
2015-11-09T04:14:10.000Z
2019-07-24T06:03:36.000Z
# versa.serial.literate """ Serialize and deserialize between a Versa model and Versa Literate (Markdown) see: doc/literate_format.md """ import sys import re from amara3 import iri from versa import I, VERSA_BASEIRI, ORIGIN, RELATIONSHIP, TARGET, VTYPE_REL from versa.util import all_origins, resourcetypes from ...
31.193103
197
0.596065
1a704f9b5a7fa3a48cd4e4fff9cb08d0f1e37ac3
4,532
py
Python
distinct_occure_helpers.py
martynaut/pancancer_mirnome
4cfc3794afd590958493cb9af45c099868dd9cca
[ "MIT" ]
null
null
null
distinct_occure_helpers.py
martynaut/pancancer_mirnome
4cfc3794afd590958493cb9af45c099868dd9cca
[ "MIT" ]
null
null
null
distinct_occure_helpers.py
martynaut/pancancer_mirnome
4cfc3794afd590958493cb9af45c099868dd9cca
[ "MIT" ]
null
null
null
import numpy as np def set_balance(row, ratio): if row['ratio 3/(3+5)'] >= ratio: return '3p' elif row['ratio 5/(3+5)'] >= ratio: return '5p' elif np.isnan(row['reads_3p']) and np.isnan(row['reads_5p']): return 'unknown' elif np.isnan(row['reads_3p']): return '5p' e...
29.620915
92
0.477714
5ce4853317f9007a44082ac3c606d8f8bdbb9026
11,303
py
Python
grimsel/auxiliary/maps.py
arthurrinaldi/grimsel
cca71aa971107fb4a10d3ca32e672190e71931d9
[ "BSD-2-Clause" ]
3
2019-03-05T18:43:38.000Z
2021-12-12T08:55:40.000Z
grimsel/auxiliary/maps.py
arthurrinaldi/grimsel
cca71aa971107fb4a10d3ca32e672190e71931d9
[ "BSD-2-Clause" ]
7
2018-12-20T13:52:35.000Z
2019-03-14T21:50:44.000Z
grimsel/auxiliary/maps.py
mcsoini/grimsel
3fe626d8ce7fc642c553a886b67d4d382e13cd5b
[ "BSD-2-Clause" ]
7
2018-09-14T15:05:31.000Z
2021-09-07T09:08:47.000Z
import os import numpy as np import pandas as pd import wrapt from glob import glob import re import grimsel.auxiliary.sqlutils.aux_sql_func as aql from grimsel.auxiliary.aux_general import silence_pd_warning from grimsel import _get_logger logger = _get_logger(__name__) rev_dict = lambda dct: {val: key for key, v...
27.908642
84
0.535787
9882ee9a16327a343de6c0ea9601b61deab59c2f
16,474
py
Python
text-classification-module/CRF/Exp1/ritters/crfsuite_ritters.py
SmartDataAnalytics/horus-ner
866afa3a3165011af126649f4fa80ecc39c4b457
[ "Apache-2.0" ]
43
2018-04-09T09:08:18.000Z
2019-12-13T12:26:37.000Z
text-classification-module/CRF/Exp1/ritters/crfsuite_ritters.py
SmartDataAnalytics/HORUS-NER
866afa3a3165011af126649f4fa80ecc39c4b457
[ "Apache-2.0" ]
14
2020-04-29T19:09:03.000Z
2020-05-11T11:59:04.000Z
text-classification-module/CRF/Exp1/ritters/crfsuite_ritters.py
SmartDataAnalytics/horus-ner
866afa3a3165011af126649f4fa80ecc39c4b457
[ "Apache-2.0" ]
3
2018-04-15T12:44:49.000Z
2018-12-19T23:41:35.000Z
import nltk import sklearn_crfsuite import numpy as np from sklearn_crfsuite.metrics import flat_classification_report, flatten from sklearn.metrics import classification_report from sklearn.feature_extraction import DictVectorizer from sklearn.pipeline import Pipeline from sklearn.externals import joblib from sklearn....
33.551935
143
0.530594
aae5cc60b638d4913f68fcea51d9cc25318793d0
2,524
py
Python
sdk/eventhub/azure-eventhubs/setup.py
kushan2018/azure-sdk-for-python
08a9296207281f4e90e23cf7a30173863accc867
[ "MIT" ]
null
null
null
sdk/eventhub/azure-eventhubs/setup.py
kushan2018/azure-sdk-for-python
08a9296207281f4e90e23cf7a30173863accc867
[ "MIT" ]
1
2020-03-06T05:57:16.000Z
2020-03-06T05:57:16.000Z
sdk/eventhub/azure-eventhubs/setup.py
kushan2018/azure-sdk-for-python
08a9296207281f4e90e23cf7a30173863accc867
[ "MIT" ]
null
null
null
#!/usr/bin/env python #------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. #----------------------------------------------------------------...
31.949367
97
0.601823
fc997ad7a634f9bfd5c9334571bfb14f355fa416
2,259
py
Python
examples/composite_agg.py
kjaymiller/elasticsearch-dsl-py
2ac6368620bf53bb111d3efad812226545c5cddb
[ "Apache-2.0" ]
null
null
null
examples/composite_agg.py
kjaymiller/elasticsearch-dsl-py
2ac6368620bf53bb111d3efad812226545c5cddb
[ "Apache-2.0" ]
null
null
null
examples/composite_agg.py
kjaymiller/elasticsearch-dsl-py
2ac6368620bf53bb111d3efad812226545c5cddb
[ "Apache-2.0" ]
1
2020-10-01T14:52:27.000Z
2020-10-01T14:52:27.000Z
# Licensed to Elasticsearch B.V. under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Elasticsearch B.V. licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use ...
37.032787
84
0.68039
4595ccd264fe0ebf0947c474473e9ad0bba4ad57
719
py
Python
src/pythae/trainers/base_trainer/__init__.py
eknag/benchmark_VAE
8b727f29a68aff7771c4c97aff15f75f88320e1f
[ "Apache-2.0" ]
1
2022-03-20T20:23:59.000Z
2022-03-20T20:23:59.000Z
src/pythae/trainers/base_trainer/__init__.py
eknag/benchmark_VAE
8b727f29a68aff7771c4c97aff15f75f88320e1f
[ "Apache-2.0" ]
null
null
null
src/pythae/trainers/base_trainer/__init__.py
eknag/benchmark_VAE
8b727f29a68aff7771c4c97aff15f75f88320e1f
[ "Apache-2.0" ]
null
null
null
"""This module implements the base trainer allowing you to train the models implemented in pythae. Available models: ------------------ .. autosummary:: ~pythae.models.AE ~pythae.models.VAE ~pythae.models.BetaVAE ~pythae.models.DisentangledBetaVAE ~pythae.models.BetaTCVAE ~pythae.models.IWAE ...
24.793103
98
0.716273
afce144559f39cc2a2a6367fddfe676f566ab172
3,917
py
Python
lib/python3.8/site-packages/ansible_collections/arista/eos/plugins/module_utils/network/eos/facts/l3_interfaces/l3_interfaces.py
cjsteel/python3-venv-ansible-2.10.5
c95395c4cae844dc66fddde9b4343966f4b2ecd5
[ "Apache-1.1" ]
null
null
null
lib/python3.8/site-packages/ansible_collections/arista/eos/plugins/module_utils/network/eos/facts/l3_interfaces/l3_interfaces.py
cjsteel/python3-venv-ansible-2.10.5
c95395c4cae844dc66fddde9b4343966f4b2ecd5
[ "Apache-1.1" ]
null
null
null
lib/python3.8/site-packages/ansible_collections/arista/eos/plugins/module_utils/network/eos/facts/l3_interfaces/l3_interfaces.py
cjsteel/python3-venv-ansible-2.10.5
c95395c4cae844dc66fddde9b4343966f4b2ecd5
[ "Apache-1.1" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2019 Red Hat # GNU General Public License v3.0+ # (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) """ The eos l3_interfaces fact class It is in this file the configuration is collected from the device for a given resource, parsed, and the facts tree is populated based on th...
32.915966
113
0.601481
3a3593e24319a16cea594e6a3d81b8aee394bf38
11,914
py
Python
networkapi/api_vip_request/facade/v1.py
vinicius-marinho/GloboNetworkAPI
94651d3b4dd180769bc40ec966814f3427ccfb5b
[ "Apache-2.0" ]
73
2015-04-13T17:56:11.000Z
2022-03-24T06:13:07.000Z
networkapi/api_vip_request/facade/v1.py
leopoldomauricio/GloboNetworkAPI
3b5b2e336d9eb53b2c113977bfe466b23a50aa29
[ "Apache-2.0" ]
99
2015-04-03T01:04:46.000Z
2021-10-03T23:24:48.000Z
networkapi/api_vip_request/facade/v1.py
shildenbrand/GloboNetworkAPI
515d5e961456cee657c08c275faa1b69b7452719
[ "Apache-2.0" ]
64
2015-08-05T21:26:29.000Z
2022-03-22T01:06:28.000Z
# -*- coding: utf-8 -*- import logging from django.core.exceptions import ObjectDoesNotExist from django.forms import model_to_dict from networkapi.ambiente.models import Ambiente from networkapi.ambiente.models import EnvironmentEnvironmentVip from networkapi.ambiente.models import EnvironmentVip from networkapi.api...
33.372549
126
0.69028
c81e955b23d58e7e632d1470f2fa2cfac4bdef57
13
py
Python
main.py
Unexecuted/replit_test
8fc78e332c7a060f9a3cb2f543913244081e95ac
[ "Apache-2.0" ]
null
null
null
main.py
Unexecuted/replit_test
8fc78e332c7a060f9a3cb2f543913244081e95ac
[ "Apache-2.0" ]
null
null
null
main.py
Unexecuted/replit_test
8fc78e332c7a060f9a3cb2f543913244081e95ac
[ "Apache-2.0" ]
null
null
null
print("bruh")
13
13
0.692308
6a441882ad98fb3cca8aed056b33cd71ebf68bc8
19,422
py
Python
IMNN/ABC/ABC.py
AleksCipri/IMNN
57dd6225205a65b436931df6cee78cf1de199bcb
[ "MIT" ]
null
null
null
IMNN/ABC/ABC.py
AleksCipri/IMNN
57dd6225205a65b436931df6cee78cf1de199bcb
[ "MIT" ]
null
null
null
IMNN/ABC/ABC.py
AleksCipri/IMNN
57dd6225205a65b436931df6cee78cf1de199bcb
[ "MIT" ]
null
null
null
"""Approximate Bayesian computation with IMNN This module provides the methods necessary to perform various ABC methods using the IMNN. TODO ____ This is a early update to make the ABC module work with TF2, this should be properly ported at some point soon. """ __version__ = '0.2a3' __author__ = "Tom Charnock" im...
43.256125
79
0.595304
317702d8fd97fd70a677535127297f333657a9ee
277
py
Python
ADR_1dProblems/hello.py
kwitaechong/DeepLearning_MeshAdaptivity
3e566a05f0aa452d8d20970569d0ef8151582421
[ "BSD-3-Clause" ]
null
null
null
ADR_1dProblems/hello.py
kwitaechong/DeepLearning_MeshAdaptivity
3e566a05f0aa452d8d20970569d0ef8151582421
[ "BSD-3-Clause" ]
null
null
null
ADR_1dProblems/hello.py
kwitaechong/DeepLearning_MeshAdaptivity
3e566a05f0aa452d8d20970569d0ef8151582421
[ "BSD-3-Clause" ]
1
2021-06-03T11:42:31.000Z
2021-06-03T11:42:31.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Apr 8 13:01:27 2020 @author: 7ml """ import numpy def say_hi(inserted): assert(inserted.shape==(2,2)) print(inserted[0,0]) released = numpy.zeros([2,3]) print("Hello Max") return released
17.3125
35
0.620939
fa4a90eeed6e0f61b2db19e7f2953430a79d9809
4,167
py
Python
abstractions/sensor/velocity/velocity.py
ariegg/webiopi-drivers
47c3ce9c53c6928998acbdb259b06f47da2b634d
[ "Apache-2.0" ]
2
2018-01-18T08:09:02.000Z
2018-01-18T08:09:10.000Z
abstractions/sensor/velocity/velocity.py
ariegg/webiopi-drivers
47c3ce9c53c6928998acbdb259b06f47da2b634d
[ "Apache-2.0" ]
null
null
null
abstractions/sensor/velocity/velocity.py
ariegg/webiopi-drivers
47c3ce9c53c6928998acbdb259b06f47da2b634d
[ "Apache-2.0" ]
null
null
null
class LinearVelocity(): def __family__(self): return "LinearVelocity" def __getMeterPerSecondX__(self): raise NotImplementedError def __getMeterPerSecondY__(self): raise NotImplementedError def __getMeterPerSecondZ__(self): raise NotImplementedErr...
29.978417
82
0.62515
af0a3c3dbcf4d804388ded5bf1f4634f76b62fa7
9,994
py
Python
electrum_vestx/plugins/hw_wallet/qt.py
anonymouszar/electrum-vestx
ca1dd0fc9ca8fc547d9def1934018b1a4acd7ecb
[ "MIT" ]
1
2021-04-30T10:50:54.000Z
2021-04-30T10:50:54.000Z
electrum_vestx/plugins/hw_wallet/qt.py
anonymouszar/electrum-vestx
ca1dd0fc9ca8fc547d9def1934018b1a4acd7ecb
[ "MIT" ]
2
2021-06-01T23:47:48.000Z
2021-11-15T17:48:49.000Z
electrum_vestx/plugins/hw_wallet/qt.py
anonymouszar/electrum-vestx
ca1dd0fc9ca8fc547d9def1934018b1a4acd7ecb
[ "MIT" ]
2
2019-07-04T02:49:33.000Z
2021-11-24T09:27:47.000Z
#!/usr/bin/env python3 # -*- mode: python -*- # # Electrum - lightweight Bitcoin client # Copyright (C) 2016 The Electrum developers # # 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...
38.291188
111
0.662698
a1d7f394f03f673d8e025ac4534881064ba27247
5,609
py
Python
src/services/utils/toolbox/toolbox.py
FightingOhye/epic-awesome-gamer
8b68a526f99bd2fc2d83b52f340362b761ab83f3
[ "Apache-2.0" ]
null
null
null
src/services/utils/toolbox/toolbox.py
FightingOhye/epic-awesome-gamer
8b68a526f99bd2fc2d83b52f340362b761ab83f3
[ "Apache-2.0" ]
null
null
null
src/services/utils/toolbox/toolbox.py
FightingOhye/epic-awesome-gamer
8b68a526f99bd2fc2d83b52f340362b761ab83f3
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Time : 2022/1/16 0:27 # Author : QIN2DIM # Github : https://github.com/QIN2DIM # Description: import os.path import shutil import sys from datetime import datetime from typing import List, Union, Dict, Optional import colorama import yaml from loguru import logger from selenium....
31.335196
108
0.55304
593cd0b454b6e1f68b0cd9cd58956d7b1f70e019
18,020
py
Python
manimlib/scene/scene_file_writer.py
sanjaydatasciencedojo/manim
603a1a21dbb5eca325ed670f46ea72401a8edf1d
[ "MIT" ]
null
null
null
manimlib/scene/scene_file_writer.py
sanjaydatasciencedojo/manim
603a1a21dbb5eca325ed670f46ea72401a8edf1d
[ "MIT" ]
null
null
null
manimlib/scene/scene_file_writer.py
sanjaydatasciencedojo/manim
603a1a21dbb5eca325ed670f46ea72401a8edf1d
[ "MIT" ]
null
null
null
import _thread as thread import datetime import os import shutil import subprocess from time import sleep import manimlib.constants as consts import numpy as np from manimlib.constants import (FFMPEG_BIN, STREAMING_IP, STREAMING_PORT, STREAMING_PROTOCOL) from manimlib.utils.config_ops i...
33.619403
93
0.562264
45d2e7d235349ede55429546e9c01d9569bcd53c
362
py
Python
pycoin/symbols/xlt.py
gruve-p/pycoin
ade99afc80acdba17573d78adb1253a70a0de6a9
[ "MIT" ]
1,210
2015-01-02T13:36:28.000Z
2022-03-30T00:52:22.000Z
pycoin/symbols/xlt.py
gruve-p/pycoin
ade99afc80acdba17573d78adb1253a70a0de6a9
[ "MIT" ]
280
2015-01-05T23:16:47.000Z
2022-02-22T22:02:17.000Z
pycoin/symbols/xlt.py
gruve-p/pycoin
ade99afc80acdba17573d78adb1253a70a0de6a9
[ "MIT" ]
459
2015-01-10T00:15:57.000Z
2022-03-16T12:04:40.000Z
from pycoin.networks.bitcoinish import create_bitcoinish_network network = create_bitcoinish_network( network_name="Litecoin", symbol="XLT", subnet_name="testnet", wif_prefix_hex="ef", sec_prefix="XLTSEC:", address_prefix_hex="6f", pay_to_script_prefix_hex="c4", bip32_prv_prefix_hex="0436ef7d", bip32_pub_...
45.25
102
0.790055
f98fbfa0bd03e44b2b15a0214cd171a437e6f646
2,577
py
Python
NodeClassification/node_classification.py
Manu-Fraile/Network-Representation-Learning
d84414c144cc6146d406e606ed5be8120d4244a9
[ "MIT" ]
null
null
null
NodeClassification/node_classification.py
Manu-Fraile/Network-Representation-Learning
d84414c144cc6146d406e606ed5be8120d4244a9
[ "MIT" ]
null
null
null
NodeClassification/node_classification.py
Manu-Fraile/Network-Representation-Learning
d84414c144cc6146d406e606ed5be8120d4244a9
[ "MIT" ]
null
null
null
# This script evaluates the embeddings on a node classification task. # Author: Sebastian Haslebacher 2021-12-31 import networkx as nx # https://networkx.org/documentation/stable/tutorial.html import csv import argparse import pickle import numpy as np import random from sklearn.linear_model import LogisticRegression ...
34.36
99
0.661234
c077f7545aee4eef567de4c6df616324199eff22
742
py
Python
utility/preprocess/get_youtube_comments.py
oya163/nepali-sentiment-analysis
dcd439ae666b8909129cf8b3d81b7e50ed1f52d8
[ "MIT" ]
4
2021-01-04T05:39:45.000Z
2022-03-23T04:38:50.000Z
utility/preprocess/get_youtube_comments.py
oya163/nepali-sentiment-analysis
dcd439ae666b8909129cf8b3d81b7e50ed1f52d8
[ "MIT" ]
1
2022-03-07T18:25:48.000Z
2022-03-07T18:25:48.000Z
utility/preprocess/get_youtube_comments.py
oya163/nepali-sentiment-analysis
dcd439ae666b8909129cf8b3d81b7e50ed1f52d8
[ "MIT" ]
2
2021-06-24T04:36:47.000Z
2022-03-30T14:55:43.000Z
import os urls= ['ATEiz1N58D0', 'sQ45_FoSV0k', '1nXx-0EK-ns', 'rCPPVS_dwlw', 'OJWwMbLO0DA', '4jOmSfBLRlk', 'xah2_pUBkIc', 'FcLe08Rtz_M'] ''' Author: Sandesh Timilsina Date: 10/15/2019 How to run: python <filename.py> Description: Given a list of video ids, this script downloads ...
16.488889
69
0.644205
0886ee92f259619bce15facebb4dbf9db6eeae66
959
py
Python
Modulo 3/desafioModulo3.py
ronaldogomes96/Acelera-Dev-DataScience
3bdd7ae86a907db3339fdd7abc615ecaf5a683a6
[ "MIT" ]
null
null
null
Modulo 3/desafioModulo3.py
ronaldogomes96/Acelera-Dev-DataScience
3bdd7ae86a907db3339fdd7abc615ecaf5a683a6
[ "MIT" ]
null
null
null
Modulo 3/desafioModulo3.py
ronaldogomes96/Acelera-Dev-DataScience
3bdd7ae86a907db3339fdd7abc615ecaf5a683a6
[ "MIT" ]
null
null
null
import pandas as pd import json df = pd.read_csv('baseDesafio.csv') #Selecionando as colunas para o uso dadosImportantes = { 'pontuacao_credito' : df['pontuacao_credito'] , 'estado_residencia' : df['estado_residencia']} #Criando um novo datframe com essa colunas data = pd.DataFrame(dadosImporta...
30.935484
87
0.74244
f0132d8032d8121f02d6f13e8c8089620a8e4f23
1,979
py
Python
ucsmsdk/mometa/ether/EtherSwIfConfig.py
thinkitdata/ucsmsdk
da6599e1dbc1207a30eabe548a7e5791af5f476b
[ "Apache-2.0" ]
null
null
null
ucsmsdk/mometa/ether/EtherSwIfConfig.py
thinkitdata/ucsmsdk
da6599e1dbc1207a30eabe548a7e5791af5f476b
[ "Apache-2.0" ]
null
null
null
ucsmsdk/mometa/ether/EtherSwIfConfig.py
thinkitdata/ucsmsdk
da6599e1dbc1207a30eabe548a7e5791af5f476b
[ "Apache-2.0" ]
null
null
null
"""This module contains the general information for EtherSwIfConfig ManagedObject.""" from ...ucsmo import ManagedObject from ...ucscoremeta import MoPropertyMeta, MoMeta from ...ucsmeta import VersionMeta class EtherSwIfConfigConsts: pass class EtherSwIfConfig(ManagedObject): """This is EtherSwIfConfig cl...
46.023256
248
0.653866
a4a2211c5d88342b6ad907e4248706baae6f597e
102,472
py
Python
genienlp/tasks/generic_dataset.py
saligrama/genienlp
35659911883c43fdbe38c4391e75ca106763eb40
[ "BSD-3-Clause" ]
null
null
null
genienlp/tasks/generic_dataset.py
saligrama/genienlp
35659911883c43fdbe38c4391e75ca106763eb40
[ "BSD-3-Clause" ]
null
null
null
genienlp/tasks/generic_dataset.py
saligrama/genienlp
35659911883c43fdbe38c4391e75ca106763eb40
[ "BSD-3-Clause" ]
null
null
null
# # Copyright (c) 2018, Salesforce, Inc. # The Board of Trustees of the Leland Stanford Junior University # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions ...
45.421986
172
0.522055
b3bdac92775ab4748189e412f28b8f0331c10e06
2,811
py
Python
tests/conftest.py
smartlegionlab/commandex
d090dd8ce0ff8a7219191120019771843a284e79
[ "BSD-3-Clause" ]
2
2021-11-17T21:35:44.000Z
2022-02-09T16:47:13.000Z
tests/conftest.py
smartlegionlab/commandex
d090dd8ce0ff8a7219191120019771843a284e79
[ "BSD-3-Clause" ]
null
null
null
tests/conftest.py
smartlegionlab/commandex
d090dd8ce0ff8a7219191120019771843a284e79
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # -------------------------------------------------------- # Licensed under the terms of the BSD 3-Clause License # (see LICENSE for details). # Copyright © 2018-2021, A.A Suvorov # All rights reserved. # -------------------------------------------------------- # https://github.com/smartlegionla...
19.657343
104
0.677339