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
b707248de46633416a06f4676a5d4c035aa88ffd
11,700
py
Python
patron/virt/xenapi/volume_utils.py
casbin/openstack-patron
b41b1262f3a52c8cc9f6b6bdf87be5a1abcf6d25
[ "Apache-2.0" ]
null
null
null
patron/virt/xenapi/volume_utils.py
casbin/openstack-patron
b41b1262f3a52c8cc9f6b6bdf87be5a1abcf6d25
[ "Apache-2.0" ]
null
null
null
patron/virt/xenapi/volume_utils.py
casbin/openstack-patron
b41b1262f3a52c8cc9f6b6bdf87be5a1abcf6d25
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2010 Citrix Systems, Inc. # Copyright (c) 2013 OpenStack Foundation # # 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...
34.718101
79
0.619658
ce3b4afcf49550e1b5a7ad5369e49fd408c84150
10,010
py
Python
blog/views.py
guocdfeifei/DjangoBlog
a33e9cfc44b98422c614b2cc76a4668d0f41d00c
[ "MIT" ]
1
2018-12-05T09:39:59.000Z
2018-12-05T09:39:59.000Z
blog/views.py
i-python-com/DjangoBlog
0b59cfd34518159b50948e540120868d69281256
[ "MIT" ]
16
2020-02-11T23:29:35.000Z
2022-03-11T23:37:00.000Z
blog/views.py
azaaza987/DjangoBlog-master
71a8496dbdb20b4142554f67914c7e4cb87d2a3b
[ "MIT" ]
null
null
null
from django.shortcuts import render # Create your views here. import os import datetime from django.views.generic.list import ListView from django.views.generic.detail import DetailView from django.conf import settings from django import forms from django.http import HttpResponse from django.http import HttpResponseRe...
33.145695
114
0.657243
2f25f3124847ea97fecf17142ec8652d3e2cc69e
33,735
py
Python
app/classes/minecraft_server.py
KingsSack/craftyweb
528327a2984c38d01a9ad4f5272bbc17752cc47a
[ "Apache-2.0" ]
null
null
null
app/classes/minecraft_server.py
KingsSack/craftyweb
528327a2984c38d01a9ad4f5272bbc17752cc47a
[ "Apache-2.0" ]
null
null
null
app/classes/minecraft_server.py
KingsSack/craftyweb
528327a2984c38d01a9ad4f5272bbc17752cc47a
[ "Apache-2.0" ]
null
null
null
import os import re import json import time import psutil import schedule import datetime import threading import logging.config import pexpect from pexpect.popen_spawn import PopenSpawn from app.classes.mc_ping import ping from app.classes.console import console from app.classes.models import History, Remote, MC_se...
38.731343
340
0.589892
1c873a298f1faf18f2aa857c54dd487ff9b66fe7
1,753
py
Python
setup.py
wware/zipline
760bbced73b1d04cf37bf7bd098dac168e4ff823
[ "Apache-2.0" ]
null
null
null
setup.py
wware/zipline
760bbced73b1d04cf37bf7bd098dac168e4ff823
[ "Apache-2.0" ]
null
null
null
setup.py
wware/zipline
760bbced73b1d04cf37bf7bd098dac168e4ff823
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2014 Quantopian, 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 ...
31.872727
74
0.64518
3da7ce8a8a3bc9e9b2b1f9712a6aa744af193237
7,582
py
Python
src/entities.py
integeruser/networld
f6399f00a221febe3199e026f1da7a4b9925d6f5
[ "MIT" ]
1
2017-10-25T16:12:40.000Z
2017-10-25T16:12:40.000Z
src/entities.py
integeruser/networld
f6399f00a221febe3199e026f1da7a4b9925d6f5
[ "MIT" ]
1
2017-08-02T16:19:51.000Z
2017-08-02T16:20:02.000Z
src/entities.py
integeruser/networld
f6399f00a221febe3199e026f1da7a4b9925d6f5
[ "MIT" ]
null
null
null
import abc import enum import math import pyglet import networking as n import physics as p class Entity(metaclass=abc.ABCMeta): @staticmethod def new(entity_type, msg): if entity_type == EntityType.CUBE: return Cube.dummy().update(msg) elif entity_type == EntityType.SPHERE: ...
36.451923
93
0.595753
8db1c28f13f7d051468f9b79d92b782491bfd39d
23,034
py
Python
deepchem/rl/ppo.py
cjgalvin/deepchem
64993a129e7f0f78fed9500298b1828ac8a0757a
[ "MIT" ]
3,782
2016-02-21T03:53:11.000Z
2022-03-31T16:10:26.000Z
deepchem/rl/ppo.py
cjgalvin/deepchem
64993a129e7f0f78fed9500298b1828ac8a0757a
[ "MIT" ]
2,666
2016-02-11T01:54:54.000Z
2022-03-31T11:14:33.000Z
deepchem/rl/ppo.py
cjgalvin/deepchem
64993a129e7f0f78fed9500298b1828ac8a0757a
[ "MIT" ]
1,597
2016-02-21T03:10:08.000Z
2022-03-30T13:21:28.000Z
"""Proximal Policy Optimization (PPO) algorithm for reinforcement learning.""" import copy import time try: from collections.abc import Sequence as SequenceCollection except: from collections import Sequence as SequenceCollection from multiprocessing.dummy import Pool import numpy as np import tensorflow as tf fr...
40.912966
111
0.690414
7f958e9fb8d4ac0948eb46d4cf0e31c0149b3a3a
7,329
py
Python
jasper-Mini-for-Jetson.py
yhwang/OpenSeq2Seq
fcdce6ccd7f0101cb6bedfb34cbe15f35cf49921
[ "Apache-2.0" ]
null
null
null
jasper-Mini-for-Jetson.py
yhwang/OpenSeq2Seq
fcdce6ccd7f0101cb6bedfb34cbe15f35cf49921
[ "Apache-2.0" ]
null
null
null
jasper-Mini-for-Jetson.py
yhwang/OpenSeq2Seq
fcdce6ccd7f0101cb6bedfb34cbe15f35cf49921
[ "Apache-2.0" ]
null
null
null
# pylint: skip-file import tensorflow as tf from open_seq2seq.models import Speech2Text from open_seq2seq.encoders import TDNNEncoder from open_seq2seq.decoders import FullyConnectedCTCDecoder from open_seq2seq.data.speech2text.speech2text import Speech2TextDataLayer from open_seq2seq.losses import CTCLoss from open_se...
32.865471
111
0.509074
75a0cad10fa936cb8fc9c562688c41d0798ee778
4,066
py
Python
onnxruntime/python/tools/quantization/operators/pad.py
lchang20/onnxruntime
97b8f6f394ae02c73ed775f456fd85639c91ced1
[ "MIT" ]
6,036
2019-05-07T06:03:57.000Z
2022-03-31T17:59:54.000Z
onnxruntime/python/tools/quantization/operators/pad.py
lchang20/onnxruntime
97b8f6f394ae02c73ed775f456fd85639c91ced1
[ "MIT" ]
5,730
2019-05-06T23:04:55.000Z
2022-03-31T23:55:56.000Z
onnxruntime/python/tools/quantization/operators/pad.py
lchang20/onnxruntime
97b8f6f394ae02c73ed775f456fd85639c91ced1
[ "MIT" ]
1,566
2019-05-07T01:30:07.000Z
2022-03-31T17:06:50.000Z
import onnx import numpy as np from .base_operator import QuantOperatorBase from ..quant_utils import QuantizedValue, QuantizedValueType, attribute_to_kwarg, quantize_nparray class QPad(QuantOperatorBase): def __init__(self, onnx_quantizer, onnx_node): super().__init__(onnx_quantizer, onnx_node) def ...
58.085714
118
0.616331
8f3998cf4fb8f6873cce2c2eb9dab813d1240043
757
py
Python
setup.py
elesiuta/spacebarheating
dd895e28eb352ebfbd8d63f378782a22fcc6935c
[ "MIT" ]
1
2022-02-28T02:55:20.000Z
2022-02-28T02:55:20.000Z
setup.py
elesiuta/spacebarheating
dd895e28eb352ebfbd8d63f378782a22fcc6935c
[ "MIT" ]
null
null
null
setup.py
elesiuta/spacebarheating
dd895e28eb352ebfbd8d63f378782a22fcc6935c
[ "MIT" ]
null
null
null
import setuptools import spacebarheating with open("README.md", "r") as f: long_description = f.read() setuptools.setup( name="spacebarheating", version=spacebarheating.VERSION, description="Heat up your CPU by holding the spacebar, inspired by https://xkcd.com/1172/", long_description=long_descri...
31.541667
95
0.689564
5280a036c015351720f74a7c8b3b492ed6e9b535
6,556
py
Python
tests/dot11/test_FrameManagementAuthentication.py
awesome-security/impacket
240e760ab543f11c913d11b1bfca26be28ed1c91
[ "Apache-1.1" ]
106
2019-03-04T21:31:47.000Z
2021-08-13T01:51:31.000Z
tests/dot11/test_FrameManagementAuthentication.py
awesome-security/impacket
240e760ab543f11c913d11b1bfca26be28ed1c91
[ "Apache-1.1" ]
null
null
null
tests/dot11/test_FrameManagementAuthentication.py
awesome-security/impacket
240e760ab543f11c913d11b1bfca26be28ed1c91
[ "Apache-1.1" ]
21
2019-06-13T22:57:52.000Z
2021-12-18T11:39:01.000Z
#!/usr/bin/env python # sorry, this is very ugly, but I'm in python 2.5 import sys sys.path.insert(0,"../..") from impacket.dot11 import Dot11, Dot11Types, Dot11ManagementFrame, Dot11ManagementAuthentication from impacket.ImpactDecoder import RadioTapDecoder from binascii import hexlify import unittest class TestDot...
45.846154
309
0.713087
618cd2f22aae84e141d7d555ef648ca440455411
2,203
py
Python
test/test_sq_schema.py
jonathanhaigh/sq
6ca366b86ff6436620c36eabb1f0103cab88722b
[ "MIT" ]
1
2020-11-12T16:21:41.000Z
2020-11-12T16:21:41.000Z
test/test_sq_schema.py
jonathanhaigh/sq
6ca366b86ff6436620c36eabb1f0103cab88722b
[ "MIT" ]
44
2021-02-08T19:17:57.000Z
2021-04-05T18:51:38.000Z
test/test_sq_schema.py
jonathanhaigh/sq
6ca366b86ff6436620c36eabb1f0103cab88722b
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------------ # Copyright 2021 Jonathan Haigh # SPDX-License-Identifier: MIT # ------------------------------------------------------------------------------ import copy import pytest import util def flatten_doc_list(entity): if isinstance(entity...
32.880597
80
0.512483
95e830659acf6faa83667114f2518289a18b1384
12,001
py
Python
pyGRNN/GRNN.py
federhub/pyGRNN
ddf6e4ef35ab5c2886eddc11dc2ea837a91a8a5d
[ "MIT" ]
37
2019-04-11T08:30:47.000Z
2022-03-01T12:07:50.000Z
pyGRNN/GRNN.py
federhub/pyGRNN
ddf6e4ef35ab5c2886eddc11dc2ea837a91a8a5d
[ "MIT" ]
3
2020-06-29T03:28:22.000Z
2021-04-13T08:35:04.000Z
pyGRNN/GRNN.py
federhub/pyGRNN
ddf6e4ef35ab5c2886eddc11dc2ea837a91a8a5d
[ "MIT" ]
17
2019-04-22T08:23:33.000Z
2022-02-28T08:09:37.000Z
# -*- coding: utf-8 -*- """ Created on Wed Jan 16 10:30:37 2019 @author: famato1 """ import numpy as np from operator import itemgetter import warnings from scipy import optimize from sklearn.metrics import mean_squared_error as MSE from sklearn.utils.validation import check_X_y, check_array, check_is_fitte...
44.779851
157
0.590867
57b18f30f170a4f198a6d7504c6e843a81117428
31,352
py
Python
astropy/table/index.py
jayvdb/astropy
bc6d8f106dd5b60bf57a8e6e29c4e2ae2178991f
[ "BSD-3-Clause" ]
445
2019-01-26T13:50:26.000Z
2022-03-18T05:17:38.000Z
astropy/table/index.py
jayvdb/astropy
bc6d8f106dd5b60bf57a8e6e29c4e2ae2178991f
[ "BSD-3-Clause" ]
242
2019-01-29T15:48:27.000Z
2022-03-31T22:09:21.000Z
astropy/table/index.py
jayvdb/astropy
bc6d8f106dd5b60bf57a8e6e29c4e2ae2178991f
[ "BSD-3-Clause" ]
31
2019-03-10T09:51:27.000Z
2022-02-14T23:11:12.000Z
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ The Index class can use several implementations as its engine. Any implementation should implement the following: __init__(data, row_index) : initialize index based on key/row list pairs add(key, row) -> None : add (key, row) to existing data remove(...
32.658333
89
0.577794
84aadcb773689d80a22d13c9f5b51b012ca7ea2d
1,398
py
Python
example_pb2_grpc.py
erickm93/primitive-python-grpc-client
e76152a8ae0aa952677687d6b18179162351ecfc
[ "MIT" ]
null
null
null
example_pb2_grpc.py
erickm93/primitive-python-grpc-client
e76152a8ae0aa952677687d6b18179162351ecfc
[ "MIT" ]
null
null
null
example_pb2_grpc.py
erickm93/primitive-python-grpc-client
e76152a8ae0aa952677687d6b18179162351ecfc
[ "MIT" ]
null
null
null
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc import example_pb2 as example__pb2 class GreeterStub(object): # missing associated documentation comment in .proto file pass def __init__(self, channel): """Constructor. Args: channel: A grpc.Channel. """ ...
29.744681
75
0.745351
9689cc960508ec5222d6256482b98e36ce24ed04
367
py
Python
Ene-Jun-2018/Estefania Sosa/1 parcial/sistemaArchivo_Composit.py
Arbupa/DAS_Sistemas
52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1
[ "MIT" ]
41
2017-09-26T09:36:32.000Z
2022-03-19T18:05:25.000Z
Ene-Jun-2018/Estefania Sosa/1 parcial/sistemaArchivo_Composit.py
Arbupa/DAS_Sistemas
52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1
[ "MIT" ]
67
2017-09-11T05:06:12.000Z
2022-02-14T04:44:04.000Z
Ene-Jun-2018/Estefania Sosa/1 parcial/sistemaArchivo_Composit.py
Arbupa/DAS_Sistemas
52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1
[ "MIT" ]
210
2017-09-01T00:10:08.000Z
2022-03-19T18:05:12.000Z
import abc #Component class ArchivoBase(metaclass=abc.ABCMeta): def __init__(self,nombre,tipo): self.nombre=nombre self,tipo=tipo @abc.abstractmethod def imprimeEstructura(self): pass def getNombre(self): return self.nombre def getTipo(self): return self.tipo #composit class Dorectorio(ArchivoBa...
14.115385
41
0.735695
eb49a9fbf573a5999c57eb70c71e89422c526216
1,890
py
Python
mollie/api/objects/customer.py
wegroupwolves/async-mollie-api-python
b0c46db52a848677ab04f26ceac2474bdc287772
[ "BSD-2-Clause" ]
null
null
null
mollie/api/objects/customer.py
wegroupwolves/async-mollie-api-python
b0c46db52a848677ab04f26ceac2474bdc287772
[ "BSD-2-Clause" ]
null
null
null
mollie/api/objects/customer.py
wegroupwolves/async-mollie-api-python
b0c46db52a848677ab04f26ceac2474bdc287772
[ "BSD-2-Clause" ]
null
null
null
from .base import Base from .list import List class Customer(Base): @classmethod def get_resource_class(cls, client): from ..resources.customers import Customers return Customers(client) @property def id(self): return self._get_property("id") @property def name(self)...
27
87
0.64127
471d4385a5b9d0f919b3d3848f9d76eee42dbcab
447
py
Python
SpartaCoding/week_1/06_find_not_repeating_first_character.py
Haamseongho/KBDS_Algorithm
6639970583ea6b59b54d045529f3b47b9dd1bebd
[ "Apache-2.0" ]
null
null
null
SpartaCoding/week_1/06_find_not_repeating_first_character.py
Haamseongho/KBDS_Algorithm
6639970583ea6b59b54d045529f3b47b9dd1bebd
[ "Apache-2.0" ]
null
null
null
SpartaCoding/week_1/06_find_not_repeating_first_character.py
Haamseongho/KBDS_Algorithm
6639970583ea6b59b54d045529f3b47b9dd1bebd
[ "Apache-2.0" ]
null
null
null
input = "abaedcabcad" def find_not_repeating_character(string): # 이 부분을 채워보세요! string = string.lower() # 소문자로 먼저 만들고 시작 char_array = [0] * 26 for elem in string: char_array[ord(elem) - ord('a')] += 1 for k, v in enumerate(char_array): if v == 1: return chr(k + ord('a'...
22.35
83
0.615213
b8f887867f1584c9c3d9bf2ed180e0be2d9e4ee1
6,093
py
Python
setup.py
RafaelReder/mypy
dcd7fc0571f3e233723c01f39ed2b4384e0bde36
[ "PSF-2.0" ]
null
null
null
setup.py
RafaelReder/mypy
dcd7fc0571f3e233723c01f39ed2b4384e0bde36
[ "PSF-2.0" ]
2
2021-03-31T20:13:28.000Z
2021-12-13T20:48:07.000Z
setup.py
RafaelReder/mypy
dcd7fc0571f3e233723c01f39ed2b4384e0bde36
[ "PSF-2.0" ]
null
null
null
#!/usr/bin/env python import glob import os import os.path import sys if sys.version_info < (3, 4, 0): sys.stderr.write("ERROR: You need Python 3.4 or later to use mypy.\n") exit(1) # This requires setuptools when building; setuptools is not needed # when installing from a wheel file (though it is still neee...
33.662983
92
0.631216
68f0599af84fa29c03ee4af2b414287ebde9ec4b
1,186
py
Python
profiles_api/serializers.py
erensargin/profiles-rest-api
cb890992f2a058b305504ac181ce05439c0e9d84
[ "MIT" ]
null
null
null
profiles_api/serializers.py
erensargin/profiles-rest-api
cb890992f2a058b305504ac181ce05439c0e9d84
[ "MIT" ]
null
null
null
profiles_api/serializers.py
erensargin/profiles-rest-api
cb890992f2a058b305504ac181ce05439c0e9d84
[ "MIT" ]
null
null
null
from rest_framework import serializers from profiles_api import models class HelloSerializer(serializers.Serializer): """ Serializers a name field for test """ name = serializers.CharField(max_length=10) class UserProfileSerializer(serializers.ModelSerializer): """Serializes a user profile object""" ...
28.926829
65
0.611298
8b1aef64be8b7066bdc1010c1e4cbd9ad89fe8e1
29,772
py
Python
sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/aio/_application_insights_management_client.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/aio/_application_insights_management_client.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/aio/_application_insights_management_client.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
57.809709
198
0.713691
e0173001911901134c8ee73709910a3f86325400
4,178
py
Python
myaccount/view/main.py
zhaohongqiangsoliva/accountbook.py
ebfcda427b1517d49b6c40855b6515bf23823286
[ "Apache-2.0" ]
5
2016-04-15T06:14:12.000Z
2020-08-26T12:05:28.000Z
myaccount/view/main.py
zhaohongqiangsoliva/accountbook.py
ebfcda427b1517d49b6c40855b6515bf23823286
[ "Apache-2.0" ]
2
2020-10-19T03:52:31.000Z
2020-10-19T04:24:09.000Z
myaccount/view/main.py
zhaohongqiangsoliva/accountbook.py
ebfcda427b1517d49b6c40855b6515bf23823286
[ "Apache-2.0" ]
5
2016-05-05T01:49:13.000Z
2021-10-02T12:23:20.000Z
# -*- coding: utf-8 -*- from flask import Blueprint,render_template,request,redirect, url_for, session,flash from myaccount import db,app from myaccount.models import FinanceUsers,FinanceBook,FinanceTags,FinanceTagsType,FinanceContent import hashlib import time main = Blueprint('main',__name__) @main.route('/') de...
32.387597
131
0.722116
54c82bc273ef923a17b87a7b24f1232d3cb5c8ed
13,004
py
Python
deeplodocus/utils/generic_utils.py
Deeplodocus/deeplodocus
3f9a1314ccfc1428d50de6a49a040aab4cb56dad
[ "MIT" ]
2
2019-09-13T12:02:23.000Z
2022-03-11T13:46:35.000Z
deeplodocus/utils/generic_utils.py
Deeplodocus/deeplodocus
3f9a1314ccfc1428d50de6a49a040aab4cb56dad
[ "MIT" ]
11
2018-11-23T14:01:17.000Z
2019-09-16T15:25:07.000Z
deeplodocus/utils/generic_utils.py
Deeplodocus/deeplodocus
3f9a1314ccfc1428d50de6a49a040aab4cb56dad
[ "MIT" ]
4
2018-09-22T13:31:08.000Z
2018-12-05T18:34:46.000Z
""" This script contains useful generic functions """ import os from deeplodocus.utils import get_main_path import re import pkgutil import random import string from typing import List from typing import Union from typing import Optional # Import deeplodocus flags from deeplodocus.flags.load_as import * from deeplod...
25.852883
110
0.599815
52c4ffedeb73566695811aa3a8c89b5e24c44891
658
py
Python
fancygradient.py
OneMoarDevs/covid19
c678b7201cc85c1c33f7378a58bc9c387eb55668
[ "MIT" ]
1
2020-08-11T03:06:33.000Z
2020-08-11T03:06:33.000Z
fancygradient.py
OneMoarDevs/covid19
c678b7201cc85c1c33f7378a58bc9c387eb55668
[ "MIT" ]
null
null
null
fancygradient.py
OneMoarDevs/covid19
c678b7201cc85c1c33f7378a58bc9c387eb55668
[ "MIT" ]
null
null
null
from gradient import PerceptualGradient def hex2rgb(h): h = h.lstrip('#') return tuple(int(h[i:i+2], 16) for i in (0, 2, 4)) def rgb2hex(r, g, b): return '#{:02x}{:02x}{:02x}'.format(int(r), int(g), int(b)) def get_gd_colors(cl_stop_1, cl_stop_2, N=4): output = [] gd = Perceptu...
20.5625
68
0.566869
0b4569a9bdee31c680e43a4e7cc3bff06a5b118b
1,851
py
Python
english_disgraced_poetry.py
fawaz-strawberry/minGPT
c206103a10847aa81a919782eaa4d7fca544a092
[ "MIT" ]
null
null
null
english_disgraced_poetry.py
fawaz-strawberry/minGPT
c206103a10847aa81a919782eaa4d7fca544a092
[ "MIT" ]
null
null
null
english_disgraced_poetry.py
fawaz-strawberry/minGPT
c206103a10847aa81a919782eaa4d7fca544a092
[ "MIT" ]
null
null
null
import os poem_url = "C:/Users/fawaz/Documents/free_online_poems/topics/" mega_string = "" all_folders = os.listdir(poem_url) for folder in all_folders: all_files = os.listdir(poem_url + folder) for file in all_files: try: file_name = file.split(folder.capitalize() + "Poems")[1] ...
30.85
68
0.466234
e6932af43809aac8291d390238568cee6e852e63
170
py
Python
kkanbu/board/admin.py
coding-kkanbu/teameet_backend
2af1c5fb3ed7f0c2d374afbdf53f318ecc6ae69d
[ "MIT" ]
1
2022-01-09T13:40:41.000Z
2022-01-09T13:40:41.000Z
kkanbu/board/admin.py
coding-kkanbu/teameet_backend
2af1c5fb3ed7f0c2d374afbdf53f318ecc6ae69d
[ "MIT" ]
33
2022-01-04T10:27:55.000Z
2022-03-31T10:32:53.000Z
kkanbu/board/admin.py
coding-kkanbu/teameet_backend
2af1c5fb3ed7f0c2d374afbdf53f318ecc6ae69d
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Category, Comment, Post, SogaetingOption, Tag admin.site.register([Category, Comment, Post, SogaetingOption, Tag])
28.333333
68
0.794118
75bc2c23f527338642c5d7f708b4b07110e230cc
7,871
py
Python
my_plugins/youcompleteme/third_party/ycmd/ycmd/completers/rust/rust_completer.py
VirtualLG/vimrc
33f961b0e465b852753479bc4aa0a32a6ff017cf
[ "MIT" ]
null
null
null
my_plugins/youcompleteme/third_party/ycmd/ycmd/completers/rust/rust_completer.py
VirtualLG/vimrc
33f961b0e465b852753479bc4aa0a32a6ff017cf
[ "MIT" ]
null
null
null
my_plugins/youcompleteme/third_party/ycmd/ycmd/completers/rust/rust_completer.py
VirtualLG/vimrc
33f961b0e465b852753479bc4aa0a32a6ff017cf
[ "MIT" ]
null
null
null
# Copyright (C) 2015-2020 ycmd contributors # # This file is part of ycmd. # # ycmd 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 later version. # #...
34.827434
80
0.661669
c680e59c0ebc66694ccf560752d354e80e880dea
13,811
py
Python
contrib/gitian-build.py
barrystyle/nyc3
43a15d192e23602d2d5d97d458efbc1cb7a4da7d
[ "MIT" ]
1
2019-06-06T22:44:39.000Z
2019-06-06T22:44:39.000Z
contrib/gitian-build.py
barrystyle/nyc3
43a15d192e23602d2d5d97d458efbc1cb7a4da7d
[ "MIT" ]
null
null
null
contrib/gitian-build.py
barrystyle/nyc3
43a15d192e23602d2d5d97d458efbc1cb7a4da7d
[ "MIT" ]
3
2019-06-05T22:50:07.000Z
2021-04-19T22:59:55.000Z
#!/usr/bin/env python3 import argparse import os import subprocess import sys def setup(): global args, workdir programs = ['ruby', 'git', 'apt-cacher-ng', 'make', 'wget'] if args.kvm: programs += ['python-vm-builder', 'qemu-kvm', 'qemu-utils'] elif args.docker: dockers = ['docker.io',...
59.021368
231
0.655854
f697be518f90cdc4d9a2c08de7727e6745868adf
254
py
Python
pkonfig/storage/yaml_.py
ngladkikh/pkonfig
f3f6ad23a60e3d3345f2687a900a3baf8d5b9d89
[ "MIT" ]
2
2022-03-23T09:58:31.000Z
2022-03-23T10:12:21.000Z
pkonfig/storage/yaml_.py
ngladkikh/pkonfig
f3f6ad23a60e3d3345f2687a900a3baf8d5b9d89
[ "MIT" ]
null
null
null
pkonfig/storage/yaml_.py
ngladkikh/pkonfig
f3f6ad23a60e3d3345f2687a900a3baf8d5b9d89
[ "MIT" ]
null
null
null
from typing import IO import yaml from pkonfig.storage.base import AbstractStorage, BaseFileStorage class Yaml(BaseFileStorage, AbstractStorage): def load_file_content(self, handler: IO) -> None: self.data.update(yaml.safe_load(handler))
23.090909
65
0.771654
76b95cb3262f42fc7d8fc1607cc34af715adfb73
2,603
py
Python
src/quota/azext_quota/generated/commands.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
1
2022-01-25T07:33:18.000Z
2022-01-25T07:33:18.000Z
src/quota/azext_quota/generated/commands.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
9
2022-03-25T19:35:49.000Z
2022-03-31T06:09:47.000Z
src/quota/azext_quota/generated/commands.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
1
2022-03-10T22:13:02.000Z
2022-03-10T22:13:02.000Z
# -------------------------------------------------------------------------- # 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 cause incor...
39.439394
121
0.724549
7b147b827dc4c548227215d537a4dcec8db2045e
3,206
py
Python
qwopt/compiler/parser.py
Chibikuri/qwopt
e65549db83142af4c6b63cce9f55050ee87fb27a
[ "Apache-2.0" ]
4
2020-05-25T15:07:02.000Z
2021-02-17T07:38:06.000Z
qwopt/compiler/parser.py
Chibikuri/qwopt
e65549db83142af4c6b63cce9f55050ee87fb27a
[ "Apache-2.0" ]
2
2020-01-05T07:31:41.000Z
2022-02-11T03:47:49.000Z
qwopt/compiler/parser.py
Chibikuri/qwopt
e65549db83142af4c6b63cce9f55050ee87fb27a
[ "Apache-2.0" ]
1
2020-12-21T14:22:36.000Z
2020-12-21T14:22:36.000Z
import numpy as np from collections import Counter class GraphParser: ''' This is a class for parsing input graph G. Wrapping various kinds of notation of graph. (adjacency matrix, connectivity, etc...) ''' def __init__(self, graph, prob_tran, walk_type='szegedy', optimize=True): ''' ...
30.826923
77
0.577667
9f1852919dc8ec646828d021d003829b7593b6b2
876
py
Python
metecho/oauth2/salesforce/provider.py
almostolmos/Metecho
7f58eca163faafea1ce07ffb6f4de2449fa0b8df
[ "BSD-3-Clause" ]
21
2020-04-02T21:39:58.000Z
2022-01-31T19:43:47.000Z
metecho/oauth2/salesforce/provider.py
almostolmos/Metecho
7f58eca163faafea1ce07ffb6f4de2449fa0b8df
[ "BSD-3-Clause" ]
1,613
2020-03-26T16:39:57.000Z
2022-03-07T14:54:16.000Z
metecho/oauth2/salesforce/provider.py
almostolmos/Metecho
7f58eca163faafea1ce07ffb6f4de2449fa0b8df
[ "BSD-3-Clause" ]
21
2020-07-21T11:58:47.000Z
2021-11-25T00:48:21.000Z
from allauth.socialaccount.providers.salesforce.provider import SalesforceProvider class CustomSalesforceProvider(SalesforceProvider): package = "metecho.oauth2.salesforce" def get_auth_params(self, request, action): ret = super().get_auth_params(request, action) # This will ensure that even ...
38.086957
82
0.699772
21cb02fbfa104eaa9b1134f020b7ce502de623ad
1,895
py
Python
setup.py
aristanetworks/ctypegen
379f8e5c712c8deb0ed27cbf005d7706fa11e6e8
[ "Apache-2.0" ]
17
2018-06-12T10:07:42.000Z
2022-03-23T14:03:33.000Z
setup.py
aristanetworks/ctypegen
379f8e5c712c8deb0ed27cbf005d7706fa11e6e8
[ "Apache-2.0" ]
4
2018-10-29T17:55:34.000Z
2021-10-08T07:19:12.000Z
setup.py
aristanetworks/ctypegen
379f8e5c712c8deb0ed27cbf005d7706fa11e6e8
[ "Apache-2.0" ]
7
2018-12-20T19:35:45.000Z
2021-05-18T03:42:17.000Z
#!/usr/bin/env python # Copyright 2018 Arista Networks. # # 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 applicabl...
29.153846
78
0.632718
529c46a66e0f6ffc988f1a5db531c3b127d7b0ad
5,897
py
Python
app/utils/tokenization.py
dhruv-aggarwal/omnichannel
a39e6092b382572241629f9ee892f8bb6e10f4de
[ "MIT" ]
2
2018-06-06T04:35:17.000Z
2021-08-11T16:15:35.000Z
app/utils/tokenization.py
dhruv-aggarwal/omnichannel
a39e6092b382572241629f9ee892f8bb6e10f4de
[ "MIT" ]
1
2018-05-11T07:49:20.000Z
2018-05-13T17:45:54.000Z
app/utils/tokenization.py
dhruv-aggarwal/omnichannel
a39e6092b382572241629f9ee892f8bb6e10f4de
[ "MIT" ]
1
2018-05-17T07:53:04.000Z
2018-05-17T07:53:04.000Z
from __future__ import division from itertools import tee from operator import itemgetter from collections import defaultdict, OrderedDict from math import log def l(k, n, x): # dunning's likelihood ratio with notation from # http://nlp.stanford.edu/fsnlp/promo/colloc.pdf p162 return log(max(x, 1e-10)) * ...
35.311377
78
0.620315
81832040625b880d79282497e24b6be8e66f0973
148
py
Python
app/src/routes/__init__.py
avillia/weatheRESTua
a532d83b6ddc0f17c10820b24a539ef0541d5667
[ "MIT" ]
null
null
null
app/src/routes/__init__.py
avillia/weatheRESTua
a532d83b6ddc0f17c10820b24a539ef0541d5667
[ "MIT" ]
null
null
null
app/src/routes/__init__.py
avillia/weatheRESTua
a532d83b6ddc0f17c10820b24a539ef0541d5667
[ "MIT" ]
null
null
null
from .cities import cities from .index import index from .mean import means from .records import records routers = [index, cities, means, records]
21.142857
41
0.777027
b373046e24247ff709718acbdd7c05930f4d45b1
421
py
Python
app/definitions/migrations/0017_auto_20200906_0221.py
getmetamapper/metamapper
0b2f67eec03fbf7ece35ff9f58ea9bb2dde4d85f
[ "BSD-2-Clause" ]
53
2020-07-01T23:11:59.000Z
2022-03-31T19:10:28.000Z
app/definitions/migrations/0017_auto_20200906_0221.py
getmetamapper/metamapper
0b2f67eec03fbf7ece35ff9f58ea9bb2dde4d85f
[ "BSD-2-Clause" ]
5
2020-11-25T19:48:57.000Z
2022-02-27T23:50:18.000Z
app/definitions/migrations/0017_auto_20200906_0221.py
getmetamapper/metamapper
0b2f67eec03fbf7ece35ff9f58ea9bb2dde4d85f
[ "BSD-2-Clause" ]
5
2020-08-29T16:43:59.000Z
2022-01-17T19:05:30.000Z
# Generated by Django 3.0.8 on 2020-09-06 02:21 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('definitions', '0016_auto_20200901_2226'), ] operations = [ migrations.AlterField( model_name='column', name='default...
22.157895
74
0.617577
29402e2894992e5daf7a9556dde2e6e828865421
1,757
py
Python
TrackingTools/Configuration/python/TrackingTools_EventContent_cff.py
NTrevisani/cmssw
a212a27526f34eb9507cf8b875c93896e6544781
[ "Apache-2.0" ]
3
2018-08-24T19:10:26.000Z
2019-02-19T11:45:32.000Z
TrackingTools/Configuration/python/TrackingTools_EventContent_cff.py
NTrevisani/cmssw
a212a27526f34eb9507cf8b875c93896e6544781
[ "Apache-2.0" ]
7
2016-07-17T02:34:54.000Z
2019-08-13T07:58:37.000Z
TrackingTools/Configuration/python/TrackingTools_EventContent_cff.py
NTrevisani/cmssw
a212a27526f34eb9507cf8b875c93896e6544781
[ "Apache-2.0" ]
5
2018-08-21T16:37:52.000Z
2020-01-09T13:33:17.000Z
import FWCore.ParameterSet.Config as cms TrackingToolsFEVT = cms.PSet( outputCommands = cms.untracked.vstring('keep *_CkfElectronCandidates_*_*', 'keep *_GsfGlobalElectronTest_*_*', 'keep *_electronMergedSeeds_*_*', 'keep *_electronGsfTracks_*_*' ) ) #RECO content TrackingToolsRECO...
40.860465
130
0.702334
a108612c221cabf193dfd6f605c09818e2ecb13a
658
py
Python
setup.py
Mitesh512/gradio
fb7cec11ecf9489c0151264aed12e2cddad19f36
[ "Apache-2.0" ]
1
2020-08-06T17:06:03.000Z
2020-08-06T17:06:03.000Z
setup.py
Mitesh512/gradio
fb7cec11ecf9489c0151264aed12e2cddad19f36
[ "Apache-2.0" ]
null
null
null
setup.py
Mitesh512/gradio
fb7cec11ecf9489c0151264aed12e2cddad19f36
[ "Apache-2.0" ]
null
null
null
try: from setuptools import setup except ImportError: from distutils.core import setup setup( name='gradio', version='1.0.1', include_package_data=True, description='Python library for easily interacting with trained machine learning models', author='Abubakar Abid', author_email='a12d@s...
25.307692
93
0.633739
25c6d2fd0cd6dff3e35bc56c2db39a1d6029f628
2,563
py
Python
marsyas-vamp/marsyas/src/django/birdsong/application/birdsong/annotations/views.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/src/django/birdsong/application/birdsong/annotations/views.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/src/django/birdsong/application/birdsong/annotations/views.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
import logging from django.shortcuts import render_to_response from django.http import HttpResponse from django.shortcuts import get_object_or_404 from annotations.models import Annotation from recordings.models import Recording # # Views # def index(request): annotations = Annotation.objects.all() return ren...
32.858974
86
0.617636
66275a3efc80159977d43b0f2850035f114c1b9e
54,689
py
Python
python/ccxt/async_support/bytetrade.py
dgdiginex/ccxt
cccd590576cbf48d26cf9e3f65cc54fdd466a139
[ "MIT" ]
null
null
null
python/ccxt/async_support/bytetrade.py
dgdiginex/ccxt
cccd590576cbf48d26cf9e3f65cc54fdd466a139
[ "MIT" ]
null
null
null
python/ccxt/async_support/bytetrade.py
dgdiginex/ccxt
cccd590576cbf48d26cf9e3f65cc54fdd466a139
[ "MIT" ]
2
2020-10-13T03:24:08.000Z
2020-10-15T06:25:07.000Z
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.async_support.base.exchange import Exchange import math from ccxt.base.errors import ExchangeError from ccxt.base.errors import A...
41.150489
225
0.5193
5e961a329fbdc24b686697f65a9c981c774f70b2
1,899
py
Python
AutomatedDrinkDispensingSystem/PulsePin.py
ChrisBlanks/AutomatedDrinkDispensingSystem
40b0b55ecb7e144717dddfe3d000e1602ab1868b
[ "MIT" ]
null
null
null
AutomatedDrinkDispensingSystem/PulsePin.py
ChrisBlanks/AutomatedDrinkDispensingSystem
40b0b55ecb7e144717dddfe3d000e1602ab1868b
[ "MIT" ]
null
null
null
AutomatedDrinkDispensingSystem/PulsePin.py
ChrisBlanks/AutomatedDrinkDispensingSystem
40b0b55ecb7e144717dddfe3d000e1602ab1868b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Programmer: Chris Blanks Last Edited: Feb 2019 Project: Automated Self-Serving System Purpose: This script defines the PulsePin class, which reads the pulsating output of a MEI bill acceptor. The output from the bill acceptor is formed by a open-collector circuit, so this requires a pull-up ...
29.215385
82
0.752501
f815449781a566acc9307ae5b68183268f7bd892
6,172
py
Python
samples/openapi3/client/petstore/python-experimental/petstore_api/api/pet_api_endpoints/upload_file_with_required_file.py
JigarJoshi/openapi-generator
785535b8d6881b358463994823abbda2b26ff42e
[ "Apache-2.0" ]
1
2022-02-23T20:33:43.000Z
2022-02-23T20:33:43.000Z
samples/openapi3/client/petstore/python-experimental/petstore_api/api/pet_api_endpoints/upload_file_with_required_file.py
JigarJoshi/openapi-generator
785535b8d6881b358463994823abbda2b26ff42e
[ "Apache-2.0" ]
7
2021-12-16T03:21:30.000Z
2022-03-31T03:26:58.000Z
samples/openapi3/client/petstore/python-experimental/petstore_api/api/pet_api_endpoints/upload_file_with_required_file.py
JigarJoshi/openapi-generator
785535b8d6881b358463994823abbda2b26ff42e
[ "Apache-2.0" ]
1
2022-02-19T21:56:04.000Z
2022-02-19T21:56:04.000Z
# coding: utf-8 """ Generated by: https://openapi-generator.tech """ from dataclasses import dataclass import re # noqa: F401 import sys # noqa: F401 import typing import urllib3 from urllib3._collections import HTTPHeaderDict from petstore_api import api_client, exceptions import decimal # noqa: F401 from ...
26.718615
103
0.667693
fa5e172cffab26d7d3a7c6b2e57fc095c66c42c7
936
py
Python
src/sagemaker/xgboost/__init__.py
LastRemote/sagemaker-python-sdk
fddf29d9e4383cd3f939253eef47ee79a464dd37
[ "Apache-2.0" ]
1,690
2017-11-29T20:13:37.000Z
2022-03-31T12:58:11.000Z
src/sagemaker/xgboost/__init__.py
LastRemote/sagemaker-python-sdk
fddf29d9e4383cd3f939253eef47ee79a464dd37
[ "Apache-2.0" ]
2,762
2017-12-04T05:18:03.000Z
2022-03-31T23:40:11.000Z
src/sagemaker/xgboost/__init__.py
LastRemote/sagemaker-python-sdk
fddf29d9e4383cd3f939253eef47ee79a464dd37
[ "Apache-2.0" ]
961
2017-11-30T16:44:03.000Z
2022-03-30T23:12:09.000Z
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompan...
46.8
80
0.777778
aa1beaff3ac5dff88626ac46b915e92ccb7f3de0
12,257
py
Python
src/rezgui/dialogs/ResolveDialog.py
maxnbk/rez
762c5cfce17eabde67eb5582498406eb3544daf0
[ "Apache-2.0" ]
null
null
null
src/rezgui/dialogs/ResolveDialog.py
maxnbk/rez
762c5cfce17eabde67eb5582498406eb3544daf0
[ "Apache-2.0" ]
null
null
null
src/rezgui/dialogs/ResolveDialog.py
maxnbk/rez
762c5cfce17eabde67eb5582498406eb3544daf0
[ "Apache-2.0" ]
1
2020-09-24T08:33:43.000Z
2020-09-24T08:33:43.000Z
# Copyright Contributors to the Rez project # # 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 ...
35.630814
93
0.605532
a71c0a95e3262c5d191858d6db7e9ec9cff62794
5,607
py
Python
localstack/utils/analytics/event_publisher.py
gokhanForesight/localstack
b1290b87845ae3cef15a95f8f6e330815f85e7e7
[ "Apache-2.0" ]
null
null
null
localstack/utils/analytics/event_publisher.py
gokhanForesight/localstack
b1290b87845ae3cef15a95f8f6e330815f85e7e7
[ "Apache-2.0" ]
null
null
null
localstack/utils/analytics/event_publisher.py
gokhanForesight/localstack
b1290b87845ae3cef15a95f8f6e330815f85e7e7
[ "Apache-2.0" ]
null
null
null
import json import os import time from six.moves import queue from localstack import config from localstack.constants import API_ENDPOINT from localstack.utils.common import JsonObject, get_or_create_file from localstack.utils.common import safe_requests as requests from localstack.utils.common import save_file, shor...
29.510526
107
0.696629
05377c3cc2a8910879ee0def8d0f07669acb2544
877
py
Python
leetcode/easy/Arrays and Strings/ReverseWordsInString.py
cheshtaaagarrwal/DS-Algos
d64f07355a0ea4342e868a359f34be28c183f8ff
[ "MIT" ]
null
null
null
leetcode/easy/Arrays and Strings/ReverseWordsInString.py
cheshtaaagarrwal/DS-Algos
d64f07355a0ea4342e868a359f34be28c183f8ff
[ "MIT" ]
null
null
null
leetcode/easy/Arrays and Strings/ReverseWordsInString.py
cheshtaaagarrwal/DS-Algos
d64f07355a0ea4342e868a359f34be28c183f8ff
[ "MIT" ]
1
2021-10-11T23:11:55.000Z
2021-10-11T23:11:55.000Z
# Given a string, you need to reverse the order of characters # in each word within a sentence while still preserving whitespace # and initial word order. # Example 1: # Input: "Let's take LeetCode contest" # Output: "s'teL ekat edoCteeL tsetnoc" # Note: In the string, each word is separated by single space and # th...
24.361111
66
0.606613
3bf4ee617751e47b32653ee02a271dedbcbac039
926
py
Python
monero_glue/messages/TezosBallotOp.py
ph4r05/monero-agent
0bac0e6f33142b2bb885565bfd1ef8ac04559280
[ "MIT" ]
20
2018-04-05T22:06:10.000Z
2021-09-18T10:43:44.000Z
monero_glue/messages/TezosBallotOp.py
ph4r05/monero-agent
0bac0e6f33142b2bb885565bfd1ef8ac04559280
[ "MIT" ]
null
null
null
monero_glue/messages/TezosBallotOp.py
ph4r05/monero-agent
0bac0e6f33142b2bb885565bfd1ef8ac04559280
[ "MIT" ]
5
2018-08-06T15:06:04.000Z
2021-07-16T01:58:43.000Z
# Automatically generated by pb2py # fmt: off from .. import protobuf as p if __debug__: try: from typing import Dict, List # noqa: F401 from typing_extensions import Literal # noqa: F401 EnumTypeTezosBallotType = Literal[0, 1, 2] except ImportError: pass class TezosBallotOp...
25.722222
71
0.564795
e14f1595ee8fcb6905faff54252bd83f33928d88
105,449
py
Python
scipy/stats/tests/test_stats.py
lelegan/scipy
a0a79a87c43beec89790118601459a3d354c4590
[ "BSD-3-Clause" ]
1
2020-05-20T08:20:53.000Z
2020-05-20T08:20:53.000Z
scipy/stats/tests/test_stats.py
lelegan/scipy
a0a79a87c43beec89790118601459a3d354c4590
[ "BSD-3-Clause" ]
null
null
null
scipy/stats/tests/test_stats.py
lelegan/scipy
a0a79a87c43beec89790118601459a3d354c4590
[ "BSD-3-Clause" ]
null
null
null
""" Test functions for stats module WRITTEN BY LOUIS LUANGKESORN <lluang@yahoo.com> FOR THE STATS MODULE BASED ON WILKINSON'S STATISTICS QUIZ http://www.stanford.edu/~clint/bench/wilk.txt Additional tests by a host of SciPy developers. """ from __future__ import division, print_function, absolute_impo...
39.156703
134
0.55404
e4b61ed402b3cbc226950fca86abf179800a631c
3,354
py
Python
refnx/reduce/peak_utils.py
dcortie/refnx
037434fa0a64755f72c540d75063986bd517ab10
[ "BSD-3-Clause" ]
32
2016-04-18T15:29:59.000Z
2022-03-27T08:35:29.000Z
refnx/reduce/peak_utils.py
dcortie/refnx
037434fa0a64755f72c540d75063986bd517ab10
[ "BSD-3-Clause" ]
116
2015-10-27T04:33:09.000Z
2022-02-22T02:02:47.000Z
refnx/reduce/peak_utils.py
dcortie/refnx
037434fa0a64755f72c540d75063986bd517ab10
[ "BSD-3-Clause" ]
22
2015-09-29T23:21:15.000Z
2022-02-27T18:12:18.000Z
import numpy as np from scipy.integrate import simps, cumtrapz from scipy.optimize import curve_fit def centroid(y, x=None, dx=1.0): """Computes the centroid for the specified data. Parameters ---------- y : array_like Array whose centroid is to be calculated. x : array_like, optional ...
24.661765
77
0.599284
e507a7a8eaf857c93279f191d0d36eb3e16164a5
1,975
py
Python
rasa/graph_components/providers/training_tracker_provider.py
praneethgb/rasa
5bf227f165d0b041a367d2c0bbf712ebb6a54792
[ "Apache-2.0" ]
8
2020-09-16T17:22:13.000Z
2022-02-01T00:11:30.000Z
rasa/graph_components/providers/training_tracker_provider.py
praneethgb/rasa
5bf227f165d0b041a367d2c0bbf712ebb6a54792
[ "Apache-2.0" ]
216
2020-09-20T13:05:58.000Z
2022-03-28T12:10:24.000Z
rasa/graph_components/providers/training_tracker_provider.py
praneethgb/rasa
5bf227f165d0b041a367d2c0bbf712ebb6a54792
[ "Apache-2.0" ]
1
2022-02-01T18:23:23.000Z
2022-02-01T18:23:23.000Z
from __future__ import annotations from typing import Dict, Text, Any, List from rasa.engine.graph import GraphComponent, ExecutionContext from rasa.engine.storage.resource import Resource from rasa.engine.storage.storage import ModelStorage from rasa.shared.core.domain import Domain from rasa.shared.core.generator im...
35.267857
85
0.676962
f764465dc3bbb256c2662bb993d224fb879619ff
1,240
py
Python
other_methods/extract_features_polaritylist.py
Subh1m/SentimentAnalysis_LexiconGeneration
4bf78a7cfb0de00990c7e39c2bc92921f25dedf7
[ "MIT" ]
2
2016-08-04T13:11:36.000Z
2021-01-12T07:17:59.000Z
other_methods/extract_features_polaritylist.py
Subh1m/SentimentAnalysis_LexiconGeneration
4bf78a7cfb0de00990c7e39c2bc92921f25dedf7
[ "MIT" ]
null
null
null
other_methods/extract_features_polaritylist.py
Subh1m/SentimentAnalysis_LexiconGeneration
4bf78a7cfb0de00990c7e39c2bc92921f25dedf7
[ "MIT" ]
null
null
null
''' Extracts features from the raw data extracted from polarity list. ''' ofile = open('processed_polist.txt','w') orig_scores = [] def import_scores(): ing1 = open('realresults.txt','r') ing2 = ing1.read() ing3 = ing2.split() for j in range(len(ing3)): orig_scores.append(int(ing3[j])) print orig_scores[:10] ...
18.507463
65
0.632258
d04e8dfe88b806603440f45fa34685a63a40c8af
2,490
py
Python
coling18/main/ablation/experiment.py
JULIELab/EmoMap
3de2a00b70e4d485b61d082cce2c1487012024c6
[ "MIT" ]
10
2019-08-29T03:10:34.000Z
2022-01-07T13:11:01.000Z
coling18/main/ablation/experiment.py
JULIELab/EmoMap
3de2a00b70e4d485b61d082cce2c1487012024c6
[ "MIT" ]
1
2018-02-14T09:05:17.000Z
2018-05-05T20:25:45.000Z
coling18/main/ablation/experiment.py
JULIELab/EmoMap
3de2a00b70e4d485b61d082cce2c1487012024c6
[ "MIT" ]
5
2019-08-29T03:10:39.000Z
2021-05-18T16:28:47.000Z
import numpy as np import pandas as pd import framework.constants as cs import framework.prepare_data as data import framework.util as util import scipy.stats as st import framework.models from sklearn.linear_model import LinearRegression as LM from sklearn.neighbors import KNeighborsRegressor as KNN import os f...
29.642857
105
0.729719
b1e55362bcae4df20a19357c0c25f71573a7e000
562
py
Python
WebMirror/management/rss_parser_funcs/feed_parse_extractThirstFilmsandfablesCom.py
fake-name/ReadableWebProxy
ed5c7abe38706acc2684a1e6cd80242a03c5f010
[ "BSD-3-Clause" ]
193
2016-08-02T22:04:35.000Z
2022-03-09T20:45:41.000Z
WebMirror/management/rss_parser_funcs/feed_parse_extractThirstFilmsandfablesCom.py
fake-name/ReadableWebProxy
ed5c7abe38706acc2684a1e6cd80242a03c5f010
[ "BSD-3-Clause" ]
533
2016-08-23T20:48:23.000Z
2022-03-28T15:55:13.000Z
WebMirror/management/rss_parser_funcs/feed_parse_extractThirstFilmsandfablesCom.py
rrosajp/ReadableWebProxy
ed5c7abe38706acc2684a1e6cd80242a03c5f010
[ "BSD-3-Clause" ]
19
2015-08-13T18:01:08.000Z
2021-07-12T17:13:09.000Z
def extractThirstFilmsandfablesCom(item): ''' Parser for 'thirst.filmsandfables.com' ''' vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title']) if not (chp or vol) or "preview" in item['title'].lower(): return None tagmap = [ ('PRC', 'PRC', 'translated'), ('L...
25.545455
104
0.640569
016af2c32eee8afea4f1c32bf180514c2ae46aa9
1,237
py
Python
yellowpages/api/urls.py
odolisk/phone_book
de83b812cb6521a470df503665ae4bf0e5f926ac
[ "MIT" ]
null
null
null
yellowpages/api/urls.py
odolisk/phone_book
de83b812cb6521a470df503665ae4bf0e5f926ac
[ "MIT" ]
null
null
null
yellowpages/api/urls.py
odolisk/phone_book
de83b812cb6521a470df503665ae4bf0e5f926ac
[ "MIT" ]
null
null
null
from rest_framework.routers import DefaultRouter from django.urls import include, path from .views import (EmployeeViewSet, OrganizationViewSet, EditorAddView, EditorsListView, EditorRemoveView, MyOrgView, obtain_token) API_VERSION = 'v1' v1_router = DefaultRouter() v1_rout...
30.925
77
0.673403
2e18e528b7a0f3ec039c07ca12c650707f7aba1e
1,038
py
Python
ebc/pauta/skins/ebc_pauta_custom_templates/getPautasVivo.py
lflrocha/ebc.pauta
1a77e9f47e22b60af88cf23f492a8b47ddfd27b6
[ "Unlicense" ]
null
null
null
ebc/pauta/skins/ebc_pauta_custom_templates/getPautasVivo.py
lflrocha/ebc.pauta
1a77e9f47e22b60af88cf23f492a8b47ddfd27b6
[ "Unlicense" ]
null
null
null
ebc/pauta/skins/ebc_pauta_custom_templates/getPautasVivo.py
lflrocha/ebc.pauta
1a77e9f47e22b60af88cf23f492a8b47ddfd27b6
[ "Unlicense" ]
null
null
null
## Script (Python) "getPautasSugestoesTodas" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters=data='' ##title=Retorna a lista de pautas em producao ret = { 'manha': [], 'tarde': [], 'noite': [], 'nbrentrevista': [], 'notas': [] } if ...
25.317073
81
0.590559
fbe3a7b237d769f11cec40fcdb1dbb8f650d2587
9,128
py
Python
experiments/ashvin/icra2021/final/baselines/pickup_shoe1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icra2021/final/baselines/pickup_shoe1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icra2021/final/baselines/pickup_shoe1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
import rlkit.misc.hyperparameter as hyp from rlkit.demos.source.dict_to_mdp_path_loader import EncoderDictToMDPPathLoader from rlkit.launchers.experiments.ashvin.awac_rig import awac_rig_experiment from rlkit.launchers.launcher_util import run_experiment from rlkit.launchers.arglauncher import run_variants from rlkit.t...
34.97318
119
0.597831
a52e59a7eb1ba2ae2e43fe3f844876171b8777c4
25,152
py
Python
tests/test_read_simple_python.py
Skylion007/jupytext
efd9bec9abc1091db145b411e794851760f0f2cf
[ "MIT" ]
1
2020-07-06T05:32:16.000Z
2020-07-06T05:32:16.000Z
tests/test_read_simple_python.py
Skylion007/jupytext
efd9bec9abc1091db145b411e794851760f0f2cf
[ "MIT" ]
null
null
null
tests/test_read_simple_python.py
Skylion007/jupytext
efd9bec9abc1091db145b411e794851760f0f2cf
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from nbformat.v4.nbbase import ( new_markdown_cell, new_code_cell, new_raw_cell, new_notebook, ) from jupytext.compare import compare import jupytext from jupytext.compare import compare_notebooks from .utils import skip_if_dict_is_not_ordered def test_read_simple_file( py...
21.225316
107
0.597964
1c575606b8a1402324a2f6c504eaae11afef430d
7,919
py
Python
examples/300_cells/build_network.py
kaeldai/sonata
9f5d95748d0a83ca231d955f77f5a0257c58ce1d
[ "BSD-3-Clause" ]
null
null
null
examples/300_cells/build_network.py
kaeldai/sonata
9f5d95748d0a83ca231d955f77f5a0257c58ce1d
[ "BSD-3-Clause" ]
null
null
null
examples/300_cells/build_network.py
kaeldai/sonata
9f5d95748d0a83ca231d955f77f5a0257c58ce1d
[ "BSD-3-Clause" ]
null
null
null
import os import numpy as np from bmtk.builder import NetworkBuilder from bmtk.builder.bionet import SWCReader from bmtk.utils.io.spike_trains import PoissonSpikesGenerator from bmtk.builder.auxi.node_params import positions_columinar, xiter_random build_recurrent_edges = True print('Building internal network') # Li...
45.774566
122
0.582397
d2c7ba585785d51d20aa9f96dcab2f9031bb87d3
41
py
Python
tests/roots/test-advanced/apidoc_dummy_package/_apidoc_private_dummy_submodule.py
lalten/apidoc
4e3dc7aafcb14c0557ac308a27a2a751c0823d9f
[ "BSD-2-Clause" ]
null
null
null
tests/roots/test-advanced/apidoc_dummy_package/_apidoc_private_dummy_submodule.py
lalten/apidoc
4e3dc7aafcb14c0557ac308a27a2a751c0823d9f
[ "BSD-2-Clause" ]
null
null
null
tests/roots/test-advanced/apidoc_dummy_package/_apidoc_private_dummy_submodule.py
lalten/apidoc
4e3dc7aafcb14c0557ac308a27a2a751c0823d9f
[ "BSD-2-Clause" ]
null
null
null
def very_private(): return 'private'
13.666667
20
0.682927
d57edc0137664f846c999fae1df0028922e1ea32
636
py
Python
blogproject/blog/models.py
jhampson-dbre/iot_blog
9c765d2f6299d67387701e034ae4f2144d86775c
[ "Apache-2.0" ]
null
null
null
blogproject/blog/models.py
jhampson-dbre/iot_blog
9c765d2f6299d67387701e034ae4f2144d86775c
[ "Apache-2.0" ]
null
null
null
blogproject/blog/models.py
jhampson-dbre/iot_blog
9c765d2f6299d67387701e034ae4f2144d86775c
[ "Apache-2.0" ]
null
null
null
from django.db import models class Author(models.Model): name = models.CharField(max_length=50) bio = models.TextField() def __str__(self): return self.name class Category(models.Model): category = models.CharField( max_length=50) description = models.TextField() def __str__(self): return self.category c...
24.461538
65
0.764151
cfe78b15815790a48d50a4246a6d5ec5956a7a84
1,145
py
Python
src/test/tests/simulation/aresamr.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/simulation/aresamr.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/test/tests/simulation/aresamr.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: aresamr.py # # Tests: libsim - connecting to simulation and retrieving data from it. # mesh - 2D aresamr mesh # # Programmer: Kathleen Biagas # Date: June 17, 2014 # # Modif...
23.854167
78
0.573799
4763c9c3256622947e437be75911142735a7f899
4,963
py
Python
saleor/graphql/core/enums.py
mangpa444/saleor
19ab5fb55a3e0e1556960306d28f6d0bce4ec608
[ "CC-BY-4.0" ]
null
null
null
saleor/graphql/core/enums.py
mangpa444/saleor
19ab5fb55a3e0e1556960306d28f6d0bce4ec608
[ "CC-BY-4.0" ]
10
2021-03-19T09:27:30.000Z
2022-01-13T03:04:00.000Z
saleor/graphql/core/enums.py
ZimnyMar/saleor-test
089f7163a69d4d96ae9c90b4362feead9741b357
[ "CC-BY-4.0" ]
null
null
null
import graphene from ...account import error_codes as account_error_codes from ...app import error_codes as app_error_codes from ...checkout import error_codes as checkout_error_codes from ...core import JobStatus, error_codes as core_error_codes from ...core.permissions import get_permissions_enum_list from ...core.w...
45.118182
88
0.790651
98134204c6af3096e9e7c0fc95e68f8b8d89be63
2,172
py
Python
stn/stnjsontools.py
HEATlab/Prob-in-Ctrl
b366efd1b542ed9ad9f5a4d45d404ca749f54ce2
[ "MIT" ]
1
2020-08-24T08:36:40.000Z
2020-08-24T08:36:40.000Z
stn/stnjsontools.py
HEATlab/Prob-in-Ctrl
b366efd1b542ed9ad9f5a4d45d404ca749f54ce2
[ "MIT" ]
null
null
null
stn/stnjsontools.py
HEATlab/Prob-in-Ctrl
b366efd1b542ed9ad9f5a4d45d404ca749f54ce2
[ "MIT" ]
null
null
null
## # \file stnjsontools.py # # \brief Contains library functions for reading JSON files that represent STNs. # \note This is legacy from the RobotBrunch project. import json from stn import STN ## # \fn loadSTNfromJSONfile # \brief Wrapper function for loadSTNfromJSON to allow reading from files. # # @param filepath...
31.028571
79
0.66989
88d8956de6db3f6e6b65a757df1c24cdf5ac6461
1,143
py
Python
musicpod/scan/flac.py
mayhem/musicpod
4d136f6013384b6ae90730e20c8a4c84881dd2ed
[ "BSD-2-Clause" ]
3
2020-01-07T09:51:58.000Z
2021-04-11T06:56:08.000Z
musicpod/scan/flac.py
zas/musicpod
4d136f6013384b6ae90730e20c8a4c84881dd2ed
[ "BSD-2-Clause" ]
null
null
null
musicpod/scan/flac.py
zas/musicpod
4d136f6013384b6ae90730e20c8a4c84881dd2ed
[ "BSD-2-Clause" ]
1
2020-01-07T09:53:58.000Z
2020-01-07T09:53:58.000Z
# -*- coding: utf-8 -*- from musicpod.model.recording import Recording import mutagen import mutagen.flac unknown_str = "[unknown]" def get(tags, tag, default): try: t = tags[tag] except KeyError: return default return t[0] def read(file, mtime): mdata = { 'mtime' : mtime } t...
27.878049
73
0.631671
e7f3973d48a80d1e24ecb564124468e09369df61
3,892
py
Python
huaweicloud-sdk-vpc/huaweicloudsdkvpc/v3/model/show_security_group_rule_response.py
githubmilesma/huaweicloud-sdk-python-v3
9d9449ed68a609ca65f0aa50b5b2a1c28445bf03
[ "Apache-2.0" ]
1
2021-04-16T07:59:28.000Z
2021-04-16T07:59:28.000Z
huaweicloud-sdk-vpc/huaweicloudsdkvpc/v3/model/show_security_group_rule_response.py
Lencof/huaweicloud-sdk-python-v3
d13dc4e2830a83e295be6e4de021999b3376e34e
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-vpc/huaweicloudsdkvpc/v3/model/show_security_group_rule_response.py
Lencof/huaweicloud-sdk-python-v3
d13dc4e2830a83e295be6e4de021999b3376e34e
[ "Apache-2.0" ]
1
2022-01-17T02:24:18.000Z
2022-01-17T02:24:18.000Z
# coding: utf-8 import pprint import re import six from huaweicloudsdkcore.sdk_response import SdkResponse class ShowSecurityGroupRuleResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_...
28.617647
98
0.599692
7b0d6cd1050fa89f7da5ff1d1593ba298682803d
9,454
py
Python
test/randomized/test_transpiler_equivalence.py
tareqdandachi/qiskit-terra
5221fe330adba5529bfa22dc25262ac8e6291aaf
[ "Apache-2.0" ]
3
2019-05-19T17:39:38.000Z
2020-01-28T19:59:18.000Z
test/randomized/test_transpiler_equivalence.py
tareqdandachi/qiskit-terra
5221fe330adba5529bfa22dc25262ac8e6291aaf
[ "Apache-2.0" ]
4
2019-05-13T15:28:46.000Z
2019-12-19T20:47:02.000Z
test/randomized/test_transpiler_equivalence.py
tareqdandachi/qiskit-terra
5221fe330adba5529bfa22dc25262ac8e6291aaf
[ "Apache-2.0" ]
1
2021-07-07T16:55:41.000Z
2021-07-07T16:55:41.000Z
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2017, 2019. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any...
38.745902
95
0.655807
5a7087908587eed5461ed4ac395b886944a17328
1,327
py
Python
pi/tracking.py
Sarrasor/piradise
11f33d9fbb11eeee7f6e21629f9f7e9806ef0e29
[ "MIT" ]
null
null
null
pi/tracking.py
Sarrasor/piradise
11f33d9fbb11eeee7f6e21629f9f7e9806ef0e29
[ "MIT" ]
null
null
null
pi/tracking.py
Sarrasor/piradise
11f33d9fbb11eeee7f6e21629f9f7e9806ef0e29
[ "MIT" ]
null
null
null
import cv2 as cv import numpy as np # Real width of your object REAL_WIDTH = 5 # Focal length of your camera # Focal length = (Width in pixels * Distance to object) / Width of an object FOCAL_LENGTH = 832 # Distance to object = Focal length * Width of an object / Width in pixels def distance(pixel_width, real_width...
30.159091
84
0.691032
641a12179067b1dfc63f1850031211d471a1e20e
29,164
py
Python
readthedocs/search/tests/test_api.py
mforbes/readthedocs.org
92f6224a67648a6d27e7a295973c2718d07cee11
[ "MIT" ]
4,054
2015-01-01T00:58:07.000Z
2019-06-28T05:50:49.000Z
readthedocs/search/tests/test_api.py
mforbes/readthedocs.org
92f6224a67648a6d27e7a295973c2718d07cee11
[ "MIT" ]
4,282
2015-01-01T21:38:49.000Z
2019-06-28T15:41:00.000Z
readthedocs/search/tests/test_api.py
mforbes/readthedocs.org
92f6224a67648a6d27e7a295973c2718d07cee11
[ "MIT" ]
3,224
2015-01-01T07:38:45.000Z
2019-06-28T09:19:10.000Z
import re from unittest import mock import pytest from django.urls import reverse from django_dynamic_fixture import get from readthedocs.builds.models import Version from readthedocs.projects.constants import ( MKDOCS, MKDOCS_HTML, PUBLIC, SPHINX, SPHINX_HTMLDIR, SPHINX_SINGLEHTML, ) from rea...
35.82801
126
0.616891
6bea31aa073da2b8498dfc76813c3555fef4c338
1,180
py
Python
models/han/sent_level_rnn.py
SurgicalAI/Docs-Class
98634d38be427d5870e9e563b0771f7a83e23c45
[ "Apache-2.0" ]
512
2019-03-21T15:27:36.000Z
2022-03-29T15:17:35.000Z
models/han/sent_level_rnn.py
SurgicalAI/Docs-Class
98634d38be427d5870e9e563b0771f7a83e23c45
[ "Apache-2.0" ]
60
2019-03-21T00:22:13.000Z
2021-11-30T13:30:10.000Z
models/han/sent_level_rnn.py
SurgicalAI/Docs-Class
98634d38be427d5870e9e563b0771f7a83e23c45
[ "Apache-2.0" ]
119
2019-03-14T15:23:22.000Z
2022-03-29T03:24:04.000Z
import torch import torch.nn as nn class SentLevelRNN(nn.Module): def __init__(self, config): super().__init__() sentence_num_hidden = config.sentence_num_hidden word_num_hidden = config.word_num_hidden target_class = config.target_class self.sentence_context_weights = nn....
40.689655
101
0.666949
76523237520f262f1c2c00fd48d09b51637e1a4d
2,139
py
Python
tests/unit/bokeh/models/test_callbacks__models.py
Suicoleiro/bokeh
a212acdf091a7a4df639fa9d443be6ade0018039
[ "BSD-3-Clause" ]
15,193
2015-01-01T05:11:45.000Z
2022-03-31T19:30:20.000Z
tests/unit/bokeh/models/test_callbacks__models.py
Suicoleiro/bokeh
a212acdf091a7a4df639fa9d443be6ade0018039
[ "BSD-3-Clause" ]
9,554
2015-01-01T03:16:54.000Z
2022-03-31T22:59:39.000Z
tests/unit/bokeh/models/test_callbacks__models.py
Suicoleiro/bokeh
a212acdf091a7a4df639fa9d443be6ade0018039
[ "BSD-3-Clause" ]
4,829
2015-01-02T03:35:32.000Z
2022-03-30T16:40:26.000Z
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2021, Anaconda, Inc., and Bokeh Contributors. # All rights reserved. # # The full license is in the file LICENSE.txt, distributed with this software. #-------------------------------------------------------------------...
35.065574
78
0.278167
17bcb1a168dd7a929b51c777102d632dfd0de45a
831
py
Python
tests/package/pages/training_analysis/plots/test_activity_plots.py
Jhsmit/awesome-panel
53f7754f7c505a2666f6724df26c851ae942ec40
[ "Apache-2.0" ]
179
2019-12-04T14:54:53.000Z
2022-03-30T09:08:38.000Z
tests/package/pages/training_analysis/plots/test_activity_plots.py
Jhsmit/awesome-panel
53f7754f7c505a2666f6724df26c851ae942ec40
[ "Apache-2.0" ]
62
2019-12-14T16:51:28.000Z
2022-03-19T18:47:12.000Z
tests/package/pages/training_analysis/plots/test_activity_plots.py
Jhsmit/awesome-panel
53f7754f7c505a2666f6724df26c851ae942ec40
[ "Apache-2.0" ]
35
2019-12-08T13:19:53.000Z
2022-03-25T10:33:02.000Z
"""Test of the activity_plot module""" # pylint: disable=redefined-outer-name,protected-access import pandas as pd from application.pages.training_analysis.plots import activity_plot def test_activity_data_plots_none(): """The plot_layout function can handle None as input""" assert activity_plot.act...
31.961538
74
0.744886
907775c5c5ddf7055ecfc3c8a12bca0c45413d59
1,987
py
Python
ubmachinery/ublib/opcua_connection.py
Chicco94/ubmachinery
8a36a6955ead9fd69f76898e7575a8f0c34ad033
[ "MIT" ]
1
2021-03-16T13:31:02.000Z
2021-03-16T13:31:02.000Z
ubmachinery/ublib/opcua_connection.py
Chicco94/ubmachinery
8a36a6955ead9fd69f76898e7575a8f0c34ad033
[ "MIT" ]
null
null
null
ubmachinery/ublib/opcua_connection.py
Chicco94/ubmachinery
8a36a6955ead9fd69f76898e7575a8f0c34ad033
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- from opcua import ua from opcua import Client from opcua.common import ua_utils def opcua_read_all(client,list_of_variables): ''' ''' try: res_dict = dict() for key,variable in list_of_variables.items(): res_dict[key] = read(client, v...
25.805195
82
0.614494
ce778c642b7c76fe3549f78485be4af66749aec2
506
py
Python
server/djangoapp/admin.py
acromafireair/agfzb-CloudAppDevelopment_Capstone
a75f5fd21583e11d42fac766d3bf627d10e45a80
[ "Apache-2.0" ]
null
null
null
server/djangoapp/admin.py
acromafireair/agfzb-CloudAppDevelopment_Capstone
a75f5fd21583e11d42fac766d3bf627d10e45a80
[ "Apache-2.0" ]
null
null
null
server/djangoapp/admin.py
acromafireair/agfzb-CloudAppDevelopment_Capstone
a75f5fd21583e11d42fac766d3bf627d10e45a80
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from .models import CarMake, CarModel # CarModelInline class class CarModelInline(admin.StackedInline): model=CarModel # CarModelAdmin class class CarModelAdmin(admin.ModelAdmin): fields=['make','name','dealer_id','car_type','car_year'] # CarMakeAdmin class with CarModelInli...
25.3
60
0.778656
2d8fae0946e143eccda5adf40ae6e9f29db66db6
1,508
py
Python
setup.py
milnus/Phupa
67822d445c0c235b4652d3a269e846d2babd1b9c
[ "MIT" ]
1
2021-11-02T03:22:42.000Z
2021-11-02T03:22:42.000Z
setup.py
milnus/Phupa
67822d445c0c235b4652d3a269e846d2babd1b9c
[ "MIT" ]
3
2021-04-15T01:22:31.000Z
2022-01-28T02:33:06.000Z
setup.py
milnus/primer_site_extraction_software
67822d445c0c235b4652d3a269e846d2babd1b9c
[ "MIT" ]
1
2021-11-29T00:07:02.000Z
2021-11-29T00:07:02.000Z
#!/usr/bin/env python from setuptools import setup LONG_DESCRIPTION = \ '''The program extracts regions of interest from Fasta or Genome Feature Format (GFF) genomes. This is done given a set of seed sequences given as nucleotide strings in a multi-line fasta file. The program can output fasta and GFF outputs or re...
39.684211
125
0.68634
f27120b2b27f418a44f52d88df11cf9ff08b9728
457
py
Python
tox-{{cookiecutter.plugin_name}}/tests/integration/test_tox_{{cookiecutter.pkg_name}}_int.py
gaborbernat/cookiecutter-tox-plugin
b9ca5de41d1f23da825fd16960f71827661e4a5a
[ "MIT" ]
7
2018-04-08T14:14:58.000Z
2022-01-27T08:38:15.000Z
tox-{{cookiecutter.plugin_name}}/tests/integration/test_tox_{{cookiecutter.pkg_name}}_int.py
gaborbernat/cookiecutter-tox-plugin
b9ca5de41d1f23da825fd16960f71827661e4a5a
[ "MIT" ]
8
2018-04-08T13:41:27.000Z
2022-01-27T13:51:56.000Z
tox-{{cookiecutter.plugin_name}}/tests/integration/test_tox_{{cookiecutter.pkg_name}}_int.py
gaborbernat/cookiecutter-tox-plugin
b9ca5de41d1f23da825fd16960f71827661e4a5a
[ "MIT" ]
5
2019-07-11T09:06:22.000Z
2022-02-16T11:58:23.000Z
def test_run(initproj, cmd): initproj( "pkg123-0.7", filedefs={ "tox.ini": """ [tox] envlist = py, b skipsdist = True [testenv] commands=python -c "print('perform')" [testenv:b] ...
25.388889
53
0.417943
ab055f77180b59121afa1863f3f2ca91d0fd2227
8,644
py
Python
tests/test_minkowski_space.py
effigies/geomstats
0d6979a15cefcf98f7f92bade9d0e4abee3dde14
[ "MIT" ]
null
null
null
tests/test_minkowski_space.py
effigies/geomstats
0d6979a15cefcf98f7f92bade9d0e4abee3dde14
[ "MIT" ]
null
null
null
tests/test_minkowski_space.py
effigies/geomstats
0d6979a15cefcf98f7f92bade9d0e4abee3dde14
[ "MIT" ]
null
null
null
""" Unit tests for Minkowski space. """ import unittest import geomstats.backend as gs import tests.helper as helper from geomstats.minkowski_space import MinkowskiSpace class TestMinkowskiSpaceMethods(unittest.TestCase): _multiprocess_can_split_ = True def setUp(self): gs.random.seed(1234) ...
36.940171
77
0.63466
984e0080fca85b2de999d499baeeca1d5a7d5926
1,154
py
Python
util/get_short_list.py
wusui/lingo
45325444caface5f06cc0c899834fc4634e9d970
[ "MIT" ]
null
null
null
util/get_short_list.py
wusui/lingo
45325444caface5f06cc0c899834fc4634e9d970
[ "MIT" ]
null
null
null
util/get_short_list.py
wusui/lingo
45325444caface5f06cc0c899834fc4634e9d970
[ "MIT" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2020 Warren Usui, MIT License # pylint: disable=W0223 """ Extract short word list """ import requests import json from html.parser import HTMLParser class GetElementInfo(HTMLParser): """ Extract element names from web page """ def __init__(self): HTMLParser.__i...
23.08
66
0.59792
0cdfc21c5f96f7e00424e7d3187406d538de8c6d
8,927
py
Python
src/dominh/helpers.py
gavanderhoorn/dominh
318ca25d2095bc86007e2f9e87bd8dd8b06aec43
[ "Apache-2.0" ]
25
2020-02-14T17:16:31.000Z
2022-02-25T14:58:42.000Z
src/dominh/helpers.py
gavanderhoorn/dominh
318ca25d2095bc86007e2f9e87bd8dd8b06aec43
[ "Apache-2.0" ]
15
2020-02-17T12:13:30.000Z
2021-11-30T09:12:38.000Z
src/dominh/helpers.py
gavanderhoorn/dominh
318ca25d2095bc86007e2f9e87bd8dd8b06aec43
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021, G.A. vd. Hoorn # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
37.826271
88
0.678615
d45740d53e41d801031c7027db118a858080de1a
2,257
py
Python
dijkstra_path.py
mtr008/CSS-qd
9ff9d264dff0086d97942c1d54f8e0ae40087525
[ "MIT" ]
2
2021-06-21T13:55:00.000Z
2022-01-24T04:09:05.000Z
dijkstra_path.py
mtr008/CSS-qd
9ff9d264dff0086d97942c1d54f8e0ae40087525
[ "MIT" ]
1
2021-12-21T13:35:22.000Z
2022-01-09T20:56:40.000Z
dijkstra_path.py
mtr008/CSS-qd
9ff9d264dff0086d97942c1d54f8e0ae40087525
[ "MIT" ]
null
null
null
# Python program for Dijkstra's single # source shortest path algorithm. The program is # for adjacency matrix representation of the graph # Library for INT_MAX import sys class Graph(): def __init__(self, vertices): self.V = vertices self.graph = [[0 for column in range(vertices)] ...
32.242857
62
0.559149
ccbd9fb8523f12cc8cb7abd325d570397432afaa
2,420
py
Python
nnunet/paths.py
lynli/nnUNet
850a0a817ed11ab7e8d470800d926c24edb0018f
[ "Apache-2.0" ]
34
2019-09-29T11:29:04.000Z
2021-08-30T07:30:14.000Z
nnunet/paths.py
lynli/nnUNet
850a0a817ed11ab7e8d470800d926c24edb0018f
[ "Apache-2.0" ]
null
null
null
nnunet/paths.py
lynli/nnUNet
850a0a817ed11ab7e8d470800d926c24edb0018f
[ "Apache-2.0" ]
3
2019-10-19T13:36:16.000Z
2021-07-12T08:59:38.000Z
# Copyright 2019 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany # # 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://w...
44.814815
127
0.773554
4944c2176189af34cafdcc8d464f0c6ea465eab9
816
py
Python
indico/modules/events/papers/models/review_ratings.py
uxmaster/indico
ecd19f17ef6fdc9f5584f59c87ec647319ce5d31
[ "MIT" ]
1
2019-11-03T11:34:16.000Z
2019-11-03T11:34:16.000Z
indico/modules/events/papers/models/review_ratings.py
NP-compete/indico
80db7ca0ef9d1f3240a16b9ff2d84bf0bf26c549
[ "MIT" ]
null
null
null
indico/modules/events/papers/models/review_ratings.py
NP-compete/indico
80db7ca0ef9d1f3240a16b9ff2d84bf0bf26c549
[ "MIT" ]
null
null
null
# This file is part of Indico. # Copyright (C) 2002 - 2019 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. from __future__ import unicode_literals from indico.core.db.sqlalchemy import db from indico.core.db.sqla...
35.478261
84
0.77451
c2cd237292ab8cb534aa760380fb31e7a68f1e43
9,337
py
Python
research/object_detection/builders/model_builder_tf2_test.py
pana1990/models
68d983b9bc91d9db9a2b7cbe1b1a69d44921e210
[ "Apache-2.0" ]
11
2018-02-09T16:13:22.000Z
2021-01-09T07:08:07.000Z
research/object_detection/builders/model_builder_tf2_test.py
pana1990/models
68d983b9bc91d9db9a2b7cbe1b1a69d44921e210
[ "Apache-2.0" ]
null
null
null
research/object_detection/builders/model_builder_tf2_test.py
pana1990/models
68d983b9bc91d9db9a2b7cbe1b1a69d44921e210
[ "Apache-2.0" ]
9
2018-08-03T16:32:53.000Z
2021-05-20T09:47:08.000Z
# Lint as: python2, python3 # 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 # ...
35.637405
80
0.698511
6ee6280bb0be11136591f2f06c89ab39f66c545b
955
py
Python
electrum_vtc/scripts/txbroadcast.py
samdisk11/electrum
4fffb4328a1764b5cd969b5c733e67bced2548a0
[ "MIT" ]
6
2022-02-07T23:14:15.000Z
2022-03-31T20:48:38.000Z
electrum_vtc/scripts/txbroadcast.py
samdisk11/electrum
4fffb4328a1764b5cd969b5c733e67bced2548a0
[ "MIT" ]
4
2022-02-09T17:41:01.000Z
2022-03-17T03:29:03.000Z
electrum_vtc/scripts/txbroadcast.py
samdisk11/electrum
4fffb4328a1764b5cd969b5c733e67bced2548a0
[ "MIT" ]
2
2022-02-11T20:55:45.000Z
2022-02-12T14:52:02.000Z
#!/usr/bin/env python3 # # Connect to lots of servers and broadcast a given tx to each. import sys import asyncio from electrum_vtc.network import filter_protocol, Network from electrum_vtc.util import create_and_start_event_loop, log_exceptions from electrum_vtc.simple_config import SimpleConfig try: rawtx = s...
25.810811
106
0.73089
2ecbda3d29c8582e787f0388e0481718a64e4afa
18,735
py
Python
EoS_HRG/test/plot_lattice.py
pierre-moreau/EoS_HRG
51f0100a865a009902fa811e325faba406ea79ce
[ "MIT" ]
null
null
null
EoS_HRG/test/plot_lattice.py
pierre-moreau/EoS_HRG
51f0100a865a009902fa811e325faba406ea79ce
[ "MIT" ]
null
null
null
EoS_HRG/test/plot_lattice.py
pierre-moreau/EoS_HRG
51f0100a865a009902fa811e325faba406ea79ce
[ "MIT" ]
null
null
null
import matplotlib import matplotlib.pyplot as pl import os import numpy as np import argparse from math import factorial # import from __init__.py from . import * # import the functions to test from fit_lattice.py from EoS_HRG.fit_lattice import * # susceptibilities from HRG from EoS_HRG.HRG import HRG # directory wh...
39.359244
189
0.537657
b59d6775c8fa53d2a2d80bec78e4bf01b4618c6a
1,439
py
Python
Dubin-DRL/draw_rl_success_fig.py
paperstiger/MoE-public
0f6f89d25dbbc83058e4f2750c70d79a3744856e
[ "MIT" ]
null
null
null
Dubin-DRL/draw_rl_success_fig.py
paperstiger/MoE-public
0f6f89d25dbbc83058e4f2750c70d79a3744856e
[ "MIT" ]
null
null
null
Dubin-DRL/draw_rl_success_fig.py
paperstiger/MoE-public
0f6f89d25dbbc83058e4f2750c70d79a3744856e
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- # vim:fenc=utf-8 # # Copyright © 2018 Gao Tang <gt70@duke.edu> # # Distributed under terms of the MIT license. """ draw_rl_success_fig.py Compare success rate from DRL and compare with MoE. """ from __future__ import print_function, division import sys, os, time import n...
31.282609
153
0.595552
aea2e311accda12535079dc98f00fa813d5c759d
1,377
py
Python
test/integration/test_save_job_id_on_datasets.py
quacksawbones/galaxy-1
65f7259b29d3886e526d9be670c60d9da9fbe038
[ "CC-BY-3.0" ]
1,085
2015-02-18T16:14:38.000Z
2022-03-30T23:52:07.000Z
test/integration/test_save_job_id_on_datasets.py
quacksawbones/galaxy-1
65f7259b29d3886e526d9be670c60d9da9fbe038
[ "CC-BY-3.0" ]
11,253
2015-02-18T17:47:32.000Z
2022-03-31T21:47:03.000Z
test/integration/test_save_job_id_on_datasets.py
quacksawbones/galaxy-1
65f7259b29d3886e526d9be670c60d9da9fbe038
[ "CC-BY-3.0" ]
1,000
2015-02-18T16:18:10.000Z
2022-03-29T08:22:56.000Z
""" A Dataset should have a reference to the Job that created it. Here we test the creation of this reference in various contexts: - job creates one dataset - job creates multiple datasets - job uploads a dataset - job creates dynamically discovered datasets (after the tool is run) """ import pytest from galaxy impor...
28.102041
88
0.700073
7d5e61d5213fd35b235b91bbcdfb31d8454d71d7
1,915
py
Python
moderngl_window/loaders/texture/pillow.py
yoyonel/moderngl-window
3dc986c97802757ce9208a9bb692498f4732c5cd
[ "MIT" ]
null
null
null
moderngl_window/loaders/texture/pillow.py
yoyonel/moderngl-window
3dc986c97802757ce9208a9bb692498f4732c5cd
[ "MIT" ]
null
null
null
moderngl_window/loaders/texture/pillow.py
yoyonel/moderngl-window
3dc986c97802757ce9208a9bb692498f4732c5cd
[ "MIT" ]
null
null
null
import logging from typing import Any, Tuple try: from PIL import Image except ImportError as ex: raise ImportError("Texture loader 'PillowLoader' requires Pillow: {}".format(ex)) from moderngl_window.loaders.base import BaseLoader from moderngl_window.exceptions import ImproperlyConfigured logger...
32.457627
121
0.640209
31f087c2dbcda95caac13287542aa45a02842b7e
3,942
py
Python
ballbeam_gym/envs/balance.py
rebvivi/2020_1_16_python
0673547f0d0596a0c488ba8ff7876e3b9a0bc03a
[ "MIT" ]
null
null
null
ballbeam_gym/envs/balance.py
rebvivi/2020_1_16_python
0673547f0d0596a0c488ba8ff7876e3b9a0bc03a
[ "MIT" ]
null
null
null
ballbeam_gym/envs/balance.py
rebvivi/2020_1_16_python
0673547f0d0596a0c488ba8ff7876e3b9a0bc03a
[ "MIT" ]
null
null
null
""" Balance Environments Environments where the objective is to keep the ball on the beam BallBeamBalanceEnv - Balance environment with a state consisting of key state variables VisualBallBeamBalanceEnv - Balance environment with simulation plot as state """ import numpy as np from gym import spaces from ballbeam_...
29.863636
90
0.598427
7ac17f6a012df29080bedd8082d465f63d78b8d0
11,993
py
Python
src/command_modules/azure-cli-iot/azure/cli/command_modules/iot/tests/latest/test_iot_commands.py
JennyLawrance/azure-cli
cb9ca4b694110806b31803a95f9f315b2fde6410
[ "MIT" ]
null
null
null
src/command_modules/azure-cli-iot/azure/cli/command_modules/iot/tests/latest/test_iot_commands.py
JennyLawrance/azure-cli
cb9ca4b694110806b31803a95f9f315b2fde6410
[ "MIT" ]
null
null
null
src/command_modules/azure-cli-iot/azure/cli/command_modules/iot/tests/latest/test_iot_commands.py
JennyLawrance/azure-cli
cb9ca4b694110806b31803a95f9f315b2fde6410
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
48.554656
120
0.570083
1f97d27b294590a8742e9e560c96c89f76bb238f
516
py
Python
venv/lib/python3.8/site-packages/aws_cdk/aws_cognito/_jsii/__init__.py
harun-vit/aws-cdk-pipelines-demo
7e7faeee112c3dca718613fa8a1fba80d2116bac
[ "MIT-0" ]
null
null
null
venv/lib/python3.8/site-packages/aws_cdk/aws_cognito/_jsii/__init__.py
harun-vit/aws-cdk-pipelines-demo
7e7faeee112c3dca718613fa8a1fba80d2116bac
[ "MIT-0" ]
null
null
null
venv/lib/python3.8/site-packages/aws_cdk/aws_cognito/_jsii/__init__.py
harun-vit/aws-cdk-pipelines-demo
7e7faeee112c3dca718613fa8a1fba80d2116bac
[ "MIT-0" ]
null
null
null
import abc import builtins import datetime import enum import typing import jsii import publication import typing_extensions import aws_cdk.aws_certificatemanager._jsii import aws_cdk.aws_iam._jsii import aws_cdk.aws_lambda._jsii import aws_cdk.core._jsii import aws_cdk.custom_resources._jsii import constructs._jsii ...
19.111111
85
0.796512
fe6535ff04576c98cc9880ecf51cd1beaf7346b5
5,621
py
Python
tigereye/core_tasks/cleaning.py
grnydawn/tigereye
83d24b5902fd9a70169846dc8e62f169723fdba0
[ "MIT" ]
null
null
null
tigereye/core_tasks/cleaning.py
grnydawn/tigereye
83d24b5902fd9a70169846dc8e62f169723fdba0
[ "MIT" ]
null
null
null
tigereye/core_tasks/cleaning.py
grnydawn/tigereye
83d24b5902fd9a70169846dc8e62f169723fdba0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- "tigereye clean core task module." import os import argparse from ..task import Task from ..error import UsageError from ..util import teval, funcargs_eval class clean_task(Task): def __init__(self, targv): self.parser.add_argument("-i", '--inspect', metavar='inspect', action='a...
36.032051
112
0.458637
869f090dc563d5a797fa5024c22fe16bf66fa5fa
633
py
Python
.ycm_extra_conf.py
joeljk13/dotfiles
4a40102ef29dc9e9e5172ae1f57bf92c03f1bb8e
[ "MIT" ]
4
2015-04-19T04:32:00.000Z
2016-04-21T10:34:29.000Z
.ycm_extra_conf.py
joeljk13/dotfiles
4a40102ef29dc9e9e5172ae1f57bf92c03f1bb8e
[ "MIT" ]
null
null
null
.ycm_extra_conf.py
joeljk13/dotfiles
4a40102ef29dc9e9e5172ae1f57bf92c03f1bb8e
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os def FlagsForFile(filename, **kwargs): _, ext = os.path.splitext(filename) flags = [ '-Wall', '-Wextra', '-I', '.', '-isystem', '/usr/include/c++/7.1.1', '-isystem', '/usr/local/include', '-isystem', ...
21.827586
64
0.439179
c21ef606a960867c753272566bd2f326f8a98499
849
py
Python
read.py
BJLIYI/wordcloud
60db692bbc5aa1979e77f509dbaae03801d3eca7
[ "MIT" ]
null
null
null
read.py
BJLIYI/wordcloud
60db692bbc5aa1979e77f509dbaae03801d3eca7
[ "MIT" ]
null
null
null
read.py
BJLIYI/wordcloud
60db692bbc5aa1979e77f509dbaae03801d3eca7
[ "MIT" ]
null
null
null
import os import pandas as pd import nltk from tools import proc_text, split_train_test, get_word_list_from_data, extract_feat_from_data, cal_acc from nltk.text import TextCollection dataset_path = './dataset' text_filenames = ['0_simplifyweibo.txt', '1_simplifyweibo.txt', '2_simplifyweibo.txt'...
31.444444
104
0.681979
d7a6f0ed34b862464e83e9491634e32a7abee35f
1,722
py
Python
tests/test_visitors/test_ast/test_general/test_wrong_name/test_module_metadata.py
AlwxSin/wemake-python-styleguide
467f5a8804bcce67aa8ce1ee5c7e2494b530eea7
[ "MIT" ]
null
null
null
tests/test_visitors/test_ast/test_general/test_wrong_name/test_module_metadata.py
AlwxSin/wemake-python-styleguide
467f5a8804bcce67aa8ce1ee5c7e2494b530eea7
[ "MIT" ]
null
null
null
tests/test_visitors/test_ast/test_general/test_wrong_name/test_module_metadata.py
AlwxSin/wemake-python-styleguide
467f5a8804bcce67aa8ce1ee5c7e2494b530eea7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( WrongModuleMetadataViolation, ) from wemake_python_styleguide.visitors.ast.naming import ( BAD_MODULE_METADATA_VARIABLES, WrongModuleMetadataVisitor, ) module_metadata = """ {0} = 'Nikita' """ nested_m...
22.96
71
0.725319
6b6fd6fd2d45501f589e5a6bac53bc05dfcc1a31
3,336
py
Python
source/preproc/uploader.py
swyang50066/rl-stock-trading
c83973ba6aed14d1784869f4f9791c535e23a184
[ "MIT" ]
3
2022-03-18T13:22:40.000Z
2022-03-25T15:07:26.000Z
source/preproc/uploader.py
swyang50066/RLStockPrediction
c83973ba6aed14d1784869f4f9791c535e23a184
[ "MIT" ]
null
null
null
source/preproc/uploader.py
swyang50066/RLStockPrediction
c83973ba6aed14d1784869f4f9791c535e23a184
[ "MIT" ]
null
null
null
from datetime import datetime import pandas as pd import yfinance as yf def _to_divided_format(date): """Convert input date format from '%Y%m%d' to '%Y-%m-%d'""" return str(datetime.strptime(date, "%Y%m%d").strftime("%Y-%m-%d")) def _to_collected_format(date): """Convert input date format from '%Y%-m-%...
30.054054
77
0.514988
ce06240fccf655e13530f61c8404f0ce7d5e6017
886
py
Python
stanCode_projects/anagram/largest_digit.py
violaberries/My-stanCode-projects
d4c391ee37bf993e6019ba1150a9cb8fe89273d9
[ "MIT" ]
1
2021-10-03T12:26:59.000Z
2021-10-03T12:26:59.000Z
stanCode_projects/anagram/largest_digit.py
violaberries/My-stanCode-projects
d4c391ee37bf993e6019ba1150a9cb8fe89273d9
[ "MIT" ]
null
null
null
stanCode_projects/anagram/largest_digit.py
violaberries/My-stanCode-projects
d4c391ee37bf993e6019ba1150a9cb8fe89273d9
[ "MIT" ]
null
null
null
""" File: largest_digit.py Name: ---------------------------------- This file recursively prints the biggest digit in 5 different integers, 12345, 281, 6, -111, -9453 If your implementation is correct, you should see 5, 8, 6, 1, 9 on Console. """ def main(): print(find_largest_digit(12345)) # 5 print(find_larg...
17.372549
49
0.612867
12deade620726b563cfd4dca73ba0dff8c3328b4
318
py
Python
linuxiston/users/apps.py
Linuxiston/linuxiston_uz
5687df6922a53b58f13ba5554f4a70dd9871ef2a
[ "MIT" ]
null
null
null
linuxiston/users/apps.py
Linuxiston/linuxiston_uz
5687df6922a53b58f13ba5554f4a70dd9871ef2a
[ "MIT" ]
4
2021-03-10T08:56:07.000Z
2021-05-12T06:04:52.000Z
linuxiston/users/apps.py
Linuxiston/linuxiston_uz
5687df6922a53b58f13ba5554f4a70dd9871ef2a
[ "MIT" ]
null
null
null
from django.apps import AppConfig from django.utils.translation import gettext_lazy as _ class UsersConfig(AppConfig): name = "linuxiston.users" verbose_name = _("Users") def ready(self): try: import linuxiston.users.signals # noqa F401 except ImportError: pass
22.714286
56
0.660377
dd9addfe2de5ccd93dd6afcd42030960ff8e7bd9
476
py
Python
data/scripts/templates/object/mobile/shared_dressed_spice_collective_workchief_twk_female_01.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/mobile/shared_dressed_spice_collective_workchief_twk_female_01.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/mobile/shared_dressed_spice_collective_workchief_twk_female_01.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Creature() result.template = "object/mobile/shared_dressed_spice_collective_workchief_twk_female_01.iff" result.a...
28
94
0.747899
5e9d70157978dc47a9d50146df44b5983bfd8ecf
2,780
py
Python
ci/conan-bzip2/conanfile.py
BurAndBY/pkgj
ba4ecba588b2204c150b7780ceeda123545c408f
[ "BSD-2-Clause" ]
904
2018-03-09T05:20:11.000Z
2022-03-26T02:37:33.000Z
ci/conan-bzip2/conanfile.py
BurAndBY/pkgj
ba4ecba588b2204c150b7780ceeda123545c408f
[ "BSD-2-Clause" ]
383
2018-03-11T02:47:37.000Z
2022-03-17T11:51:32.000Z
ci/conan-bzip2/conanfile.py
BurAndBY/pkgj
ba4ecba588b2204c150b7780ceeda123545c408f
[ "BSD-2-Clause" ]
132
2018-03-12T22:35:16.000Z
2022-03-03T17:06:55.000Z
import os import shutil from conans import CMake, tools from conans import ConanFile class Bzip2Conan(ConanFile): name = "bzip2" version = "1.0.6" branch = "master" generators = "cmake" settings = "os", "compiler", "arch", "build_type" options = {"shared": [True, False], "fPIC": [True, False]...
43.4375
102
0.620144
48d3b30ab342f6e03e1301223684b3e8f5ef7e7d
2,921
py
Python
matrixre/functions.py
aar015/matrix-regex
8fe0e3c68c4187883559bc5cdb2d93da3458fb9e
[ "MIT" ]
null
null
null
matrixre/functions.py
aar015/matrix-regex
8fe0e3c68c4187883559bc5cdb2d93da3458fb9e
[ "MIT" ]
null
null
null
matrixre/functions.py
aar015/matrix-regex
8fe0e3c68c4187883559bc5cdb2d93da3458fb9e
[ "MIT" ]
null
null
null
from collections import deque from .cupynfa import CupyNFA from .numpynfa import NumpyNFA def compile(pattern, cupy=False): # Define order of operations order_of_ops = {'|':0, 'AND':1, '*':-1, '+':-1, '?':-1, '(':-2, ')':-2} # Define stacks and some temporary variables nfas = deque() operations =...
35.192771
87
0.53646
3651cee61af88fe2725e777debe07348d883d00f
4,307
py
Python
user_details_test.py
NicolletteOchola/PasswordLocker
5dd50076bf80a970e1982fed628e1cb8be2b3cdb
[ "MIT" ]
null
null
null
user_details_test.py
NicolletteOchola/PasswordLocker
5dd50076bf80a970e1982fed628e1cb8be2b3cdb
[ "MIT" ]
null
null
null
user_details_test.py
NicolletteOchola/PasswordLocker
5dd50076bf80a970e1982fed628e1cb8be2b3cdb
[ "MIT" ]
null
null
null
import unittest import pyperclip from user_details import User, Credential class TestUser(unittest.TestCase): ''' Test class that defines test cases for the user class behaviours. Args: unittest.TestCase: helps in creating test cases ''' def setUp(self): ''' Function to create a user account before eac...
31.437956
123
0.741119