hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
213a45ffd00276dc121ef2b071e45d0737b8ed31
5,361
py
Python
Chapter06/5scikit_logistic_regression.py
karim7262/Python-Machine-Learning-By-Example
1bd2690225c93f637eabc5c78574714a22b4068a
[ "MIT" ]
106
2017-06-20T07:06:26.000Z
2022-01-28T20:17:57.000Z
Chapter06/5scikit_logistic_regression.py
karim7262/Python-Machine-Learning-By-Example
1bd2690225c93f637eabc5c78574714a22b4068a
[ "MIT" ]
2
2017-11-20T03:36:46.000Z
2019-03-08T07:47:02.000Z
Chapter06/5scikit_logistic_regression.py
karim7262/Python-Machine-Learning-By-Example
1bd2690225c93f637eabc5c78574714a22b4068a
[ "MIT" ]
83
2017-07-02T03:09:38.000Z
2022-03-07T06:45:04.000Z
import numpy as np import csv from sklearn.metrics import roc_auc_score def read_ad_click_data(n, offset=0): X_dict, y = [], [] with open('train.csv', 'r') as csvfile: reader = csv.DictReader(csvfile) for i in range(offset): next(reader) i = 0 for row in reader: ...
35.269737
142
0.739041
213a683256efef01ad59d832af0c155ec4511c8c
1,775
py
Python
stack/repository.py
caktus/aws-web-stacks
31859d5c935653be453f97220f2e53155e23f429
[ "MIT" ]
83
2017-10-06T14:03:31.000Z
2021-11-08T10:32:22.000Z
stack/repository.py
caktus/aws-web-stacks
31859d5c935653be453f97220f2e53155e23f429
[ "MIT" ]
39
2017-09-29T13:43:30.000Z
2022-03-22T20:35:43.000Z
stack/repository.py
caktus/aws-web-stacks
31859d5c935653be453f97220f2e53155e23f429
[ "MIT" ]
19
2017-10-25T18:46:50.000Z
2022-02-13T20:11:54.000Z
import awacs.ecr as ecr from awacs.aws import Allow, AWSPrincipal, Policy, Statement from troposphere import AWS_ACCOUNT_ID, AWS_REGION, Join, Output, Ref from troposphere.ecr import Repository from .common import arn_prefix from .template import template # Create an `ECR` docker repository repository = Repository( ...
29.583333
84
0.549296
213aa2bd02acd563931f7cf88783c590278e1801
1,304
py
Python
pyahp/methods/eigenvalue.py
georg-cantor/pyAHP
df434a221400f191f69300df32576d7990066a9e
[ "MIT" ]
null
null
null
pyahp/methods/eigenvalue.py
georg-cantor/pyAHP
df434a221400f191f69300df32576d7990066a9e
[ "MIT" ]
null
null
null
pyahp/methods/eigenvalue.py
georg-cantor/pyAHP
df434a221400f191f69300df32576d7990066a9e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """pyahp.methods.eigenvalue This module contains the class implementing the eigenvalue priority estimation method. """ import numpy as np from scipy.sparse.linalg import eigs from pyahp.methods import Method RANDOM_INDICES = [0, 0, 0.58, 0.9, 1.12, 1.24, 1.32, 1.41, 1.45, 1.49, 1.51] class...
28.977778
105
0.64954
213ac38d6f8748df73d4b063f2baadb837bdf177
482
py
Python
setup.py
mbopartnersinc/PyPardot
40d7b044f57e0ba111927e3b28c58974c6b0e6ef
[ "MIT" ]
null
null
null
setup.py
mbopartnersinc/PyPardot
40d7b044f57e0ba111927e3b28c58974c6b0e6ef
[ "MIT" ]
null
null
null
setup.py
mbopartnersinc/PyPardot
40d7b044f57e0ba111927e3b28c58974c6b0e6ef
[ "MIT" ]
2
2019-04-27T17:23:38.000Z
2019-04-27T17:32:41.000Z
from setuptools import setup setup( name="PyPardot", version="0.4", author="Rob Young", author_email="ryoung@gmbopartners.com", description=("API wrapper for Pardot marketing automation software. 90% of this is originally joshgeller's " "[https://github.com/joshgeller/PyPardot]"),...
30.125
112
0.676349
213ac938282334bace989488ec8e911295d35bcb
462
py
Python
src/tenants/tasks.py
litedesk/litedesk-webserver-provision
1576b9d3e5e2e64d1136d276767c2710cfb1938f
[ "Apache-2.0" ]
1
2016-01-18T08:19:22.000Z
2016-01-18T08:19:22.000Z
src/tenants/tasks.py
litedesk/litedesk-webserver-provision
1576b9d3e5e2e64d1136d276767c2710cfb1938f
[ "Apache-2.0" ]
null
null
null
src/tenants/tasks.py
litedesk/litedesk-webserver-provision
1576b9d3e5e2e64d1136d276767c2710cfb1938f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import logging import time log = logging.getLogger(__name__) def register_user_in_provisioning_service(service, user): # FIXME: The delay is necessary to avoid that services # which depend on AD can get to see the newly created user time.sleep(4) try: ...
24.315789
84
0.681818
213ad31a7ba2cf4977bb2c387efc9dd6fef150bd
21,697
py
Python
n26/api.py
nenad/python-n26
ac4d328dca4bce6199ca5a57beae32ec65c72728
[ "MIT" ]
163
2017-03-21T08:49:32.000Z
2022-03-29T22:48:19.000Z
n26/api.py
nenad/python-n26
ac4d328dca4bce6199ca5a57beae32ec65c72728
[ "MIT" ]
74
2017-03-21T20:23:41.000Z
2022-03-30T18:21:31.000Z
n26/api.py
nenad/python-n26
ac4d328dca4bce6199ca5a57beae32ec65c72728
[ "MIT" ]
28
2017-03-21T08:49:36.000Z
2021-12-29T12:48:23.000Z
import base64 import json import logging import os import time from pathlib import Path import click import requests from Crypto import Random from Crypto.Cipher import AES, PKCS1_v1_5 from Crypto.Hash import SHA512 from Crypto.Protocol.KDF import PBKDF2 from Crypto.PublicKey import RSA from Crypto.Util.Padding import...
37.60312
120
0.630548
213ad4b8db86a6e4b94897da67085bec9268de62
3,166
py
Python
clif/python/astutils.py
wangxf123456/clif
9bff8a28f5d266d6ea4f4bb0dc1d9c9a0c9ee5b1
[ "Apache-2.0" ]
966
2017-04-18T04:14:04.000Z
2022-03-03T21:22:44.000Z
clif/python/astutils.py
wangxf123456/clif
9bff8a28f5d266d6ea4f4bb0dc1d9c9a0c9ee5b1
[ "Apache-2.0" ]
48
2017-05-02T23:51:29.000Z
2021-12-06T19:10:11.000Z
clif/python/astutils.py
wangxf123456/clif
9bff8a28f5d266d6ea4f4bb0dc1d9c9a0c9ee5b1
[ "Apache-2.0" ]
135
2017-04-26T06:15:30.000Z
2022-01-07T02:17:20.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
35.177778
78
0.689514
213ae67c28160d18cfd546e1530c9338393d177f
2,351
py
Python
pycondor/condor_dll.py
kant/pycondor
ee87854504e8f4023feda860d8a9ddbecc7a70da
[ "BSD-3-Clause" ]
6
2015-04-17T08:25:30.000Z
2020-04-11T23:58:16.000Z
pycondor/condor_dll.py
kant/pycondor
ee87854504e8f4023feda860d8a9ddbecc7a70da
[ "BSD-3-Clause" ]
3
2015-12-22T07:40:02.000Z
2019-01-21T15:07:00.000Z
pycondor/condor_dll.py
kant/pycondor
ee87854504e8f4023feda860d8a9ddbecc7a70da
[ "BSD-3-Clause" ]
6
2015-11-13T18:55:22.000Z
2020-03-12T19:32:56.000Z
#!/usr/bin/env python #-*- coding:utf-8 -*- import os from ctypes import WinDLL, c_char_p, c_int, c_float class NaviConDLL(WinDLL): def __init__(self, condor_path): self.condor_path = condor_path dll_filename = os.path.join(condor_path, 'NaviCon.dll') print("Using functions from '%s...
31.346667
94
0.623139
213b017307ad2cae823e59a52f024fb0243f815f
303
py
Python
Python/ex103.py
maurovasconcelos/Ola-Mundo
526c6c271fbe916c4f9f22153828e4d8c726a544
[ "MIT" ]
1
2021-02-16T17:36:53.000Z
2021-02-16T17:36:53.000Z
Python/ex103.py
maurovasconcelos/Ola-Mundo
526c6c271fbe916c4f9f22153828e4d8c726a544
[ "MIT" ]
null
null
null
Python/ex103.py
maurovasconcelos/Ola-Mundo
526c6c271fbe916c4f9f22153828e4d8c726a544
[ "MIT" ]
null
null
null
def ficha(jog='<desconhecido>', gol=0): print(f'O jogador {jog} fez {gol} gols(s) no campeonato.') #programa principal n = str(input('Nome do Jogador: ')) g = str(input('Número de Gols: ')) if g.isnumeric(): g = int(g) else: g = 0 if n.strip() == '': ficha(gol=g) else: ficha(n, g)
20.2
62
0.587459
213b211c2d268d5599dd85d50e30ee9acf11a262
11,904
py
Python
flasksaml2idp/views.py
bcarroll/flask-saml2idp
af18075502f3b5283b47a245ebedd2a4180f4161
[ "Apache-2.0" ]
null
null
null
flasksaml2idp/views.py
bcarroll/flask-saml2idp
af18075502f3b5283b47a245ebedd2a4180f4161
[ "Apache-2.0" ]
null
null
null
flasksaml2idp/views.py
bcarroll/flask-saml2idp
af18075502f3b5283b47a245ebedd2a4180f4161
[ "Apache-2.0" ]
1
2020-09-24T16:03:59.000Z
2020-09-24T16:03:59.000Z
import copy import logging from flask import current_app, url_for, request, abort, session, redirect, Response from flask_login import logout_user, current_user, login_required from flask.views import MethodView from saml2 import BINDING_HTTP_POST, BINDING_HTTP_REDIRECT from saml2.authn_context import PASSWORD, Authn...
41.333333
118
0.649026
213b398ca909287d01085815c865adb630021582
27,025
py
Python
nlptools/text/tokenizer.py
zhupengjia/nlptools
a0afc4873ee1b3adb383d38075ad5ae5e0293055
[ "MIT" ]
1
2020-10-26T02:32:25.000Z
2020-10-26T02:32:25.000Z
nlptools/text/tokenizer.py
zhupengjia/nlptools
a0afc4873ee1b3adb383d38075ad5ae5e0293055
[ "MIT" ]
null
null
null
nlptools/text/tokenizer.py
zhupengjia/nlptools
a0afc4873ee1b3adb383d38075ad5ae5e0293055
[ "MIT" ]
1
2020-10-26T02:34:05.000Z
2020-10-26T02:34:05.000Z
#!/usr/bin/env python import os, string, numpy, re, glob, json, requests, copy from string import punctuation from ..utils import restpost ''' Author: Pengjia Zhu (zhupengjia@gmail.com) ''' def format_sentence(sentence, vocab, tokenizer=None, max_seq_len=50): """ Format token ids to sentence and mask...
38.717765
160
0.558557
213b3f76f2304921cc24f4a2c9dfb7d03bb7bdd9
1,429
py
Python
upho/analysis/functions.py
yuzie007/upho
9e130fc1d5314fdbc77a6336e84c02e67d459bfb
[ "MIT" ]
25
2017-10-09T07:31:26.000Z
2022-02-28T10:36:01.000Z
upho/analysis/functions.py
yuzie007/ph_unfolder
87050d1db494ed018739f1e9523a013ae70feec8
[ "MIT" ]
4
2018-07-01T15:59:54.000Z
2020-09-23T11:16:09.000Z
upho/analysis/functions.py
yuzie007/ph_unfolder
87050d1db494ed018739f1e9523a013ae70feec8
[ "MIT" ]
13
2017-10-16T13:45:11.000Z
2021-12-27T15:45:06.000Z
import numpy as np def lorentzian_old(x, position, width): return 1.0 / (np.pi * width * (1.0 + ((x - position) / width) ** 2)) def lorentzian(x, position, width): """This is faster than lorentzian_old""" return width / (np.pi * (width ** 2 + (x - position) ** 2)) def lorentzian_unnormalized(x, positi...
26.462963
72
0.569629
213b79fcf45ac7c46f6298c3d79931e4ca72f57c
11,490
py
Python
functest/opnfv_tests/openstack/vping/vping_base.py
mytianfu/functest
1001f3f7adff734ae80d17ce65914f60c6cce18d
[ "Apache-2.0" ]
null
null
null
functest/opnfv_tests/openstack/vping/vping_base.py
mytianfu/functest
1001f3f7adff734ae80d17ce65914f60c6cce18d
[ "Apache-2.0" ]
null
null
null
functest/opnfv_tests/openstack/vping/vping_base.py
mytianfu/functest
1001f3f7adff734ae80d17ce65914f60c6cce18d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright (c) 2015 All rights reserved # This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompanies this distribution, and is available at # # http://www.apache.org/licenses/LICENSE-2.0 import os import pprint import tim...
38.3
78
0.559443
213ba795f06d13824c18a413db8a79636fdaba21
4,711
py
Python
cumulusci/utils/yaml/model_parser.py
hamedizadpanah-ibm/CumulusCI
eb93723e2da1ca66a7639b3197e6fab02d1bd24a
[ "BSD-3-Clause" ]
1
2020-08-08T03:55:21.000Z
2020-08-08T03:55:21.000Z
cumulusci/utils/yaml/model_parser.py
Julian88Tex/CumulusCI
82d5fab71b61fbab53c1b5fc6001452fa3f97da8
[ "BSD-3-Clause" ]
null
null
null
cumulusci/utils/yaml/model_parser.py
Julian88Tex/CumulusCI
82d5fab71b61fbab53c1b5fc6001452fa3f97da8
[ "BSD-3-Clause" ]
null
null
null
from typing import Union, IO from pathlib import Path, Sequence from yaml import safe_load from pydantic import BaseModel, ValidationError from pydantic.error_wrappers import ErrorWrapper from cumulusci.utils.fileutils import load_from_source class CCIModel(BaseModel): """Base class for CumulusCI's Pydantic mo...
31.61745
100
0.625557
213bc287f4b3f431c7502108b393e826a336a6ba
7,838
py
Python
sebastian/core/transforms.py
aisipos/sebastian
4e460c3aeab332b45c74fe78e65e76ec87d5cfa8
[ "MIT" ]
47
2015-01-07T16:25:27.000Z
2022-03-07T07:21:27.000Z
sebastian/core/transforms.py
EQ4/sebastian
4e460c3aeab332b45c74fe78e65e76ec87d5cfa8
[ "MIT" ]
1
2015-02-02T20:25:15.000Z
2015-02-02T20:25:15.000Z
sebastian/core/transforms.py
EQ4/sebastian
4e460c3aeab332b45c74fe78e65e76ec87d5cfa8
[ "MIT" ]
10
2015-02-02T19:48:57.000Z
2021-03-19T17:45:17.000Z
from sebastian.core import MIDI_PITCH, OFFSET_64, DURATION_64 from sebastian.core import Point, OSequence from sebastian.core.notes import modifiers, letter from functools import wraps, partial def transform_sequence(f): """ A decorator to take a function operating on a point and turn it into a function ...
30.379845
141
0.617377
213bc73d8a7a2d24e0177d3a10d79bf30f2a3162
2,633
py
Python
AWS_rds_uploader/RDS_engine.py
ishtyaq123/Webscraper_Formula_1_Practice_And_Qualifying_Data
4d8e1c880e37d69b40c3b38b2ee3353ada58b312
[ "MIT" ]
null
null
null
AWS_rds_uploader/RDS_engine.py
ishtyaq123/Webscraper_Formula_1_Practice_And_Qualifying_Data
4d8e1c880e37d69b40c3b38b2ee3353ada58b312
[ "MIT" ]
null
null
null
AWS_rds_uploader/RDS_engine.py
ishtyaq123/Webscraper_Formula_1_Practice_And_Qualifying_Data
4d8e1c880e37d69b40c3b38b2ee3353ada58b312
[ "MIT" ]
null
null
null
''' This script contains a class which creates an engine object which can store the f1 data into a database in the cloud. The class uses AWS RDS as the service with the database type being POSTGRESQL ''' from sqlalchemy import create_engine import psycopg2 #creates the engine object which will be needed for the race da...
37.084507
127
0.606153
213bfd315f5021dcd80903e4772c4d911cb50801
1,491
py
Python
pbsmrtpipe/tests/test_report_renderer.py
PacificBiosciences/pbsmrtpipe
4d532c823d3a46b82c2eb20b9d46e63544c8ba83
[ "BSD-3-Clause" ]
26
2015-08-06T02:09:51.000Z
2021-02-26T02:25:01.000Z
pbsmrtpipe/tests/test_report_renderer.py
mpkocher/pbsmrtpipe
4d532c823d3a46b82c2eb20b9d46e63544c8ba83
[ "BSD-3-Clause" ]
181
2015-08-07T18:13:02.000Z
2021-04-13T16:24:32.000Z
pbsmrtpipe/tests/test_report_renderer.py
PacificBiosciences/pbsmrtpipe
4d532c823d3a46b82c2eb20b9d46e63544c8ba83
[ "BSD-3-Clause" ]
29
2015-08-07T17:29:42.000Z
2021-09-15T18:22:37.000Z
import os import tempfile import logging import unittest from base import TestDirBase as _TestBase, TEST_DATA_DIR from base import _write_temp_file import pbsmrtpipe.report_renderer as R try: import pbreports.serializers as S HAS_PBREPORTS = True except ImportError: HAS_PBREPORTS = False log = logging.g...
29.235294
83
0.681422
213c5e90f00f09033449e059fb0baaa1402abb7e
19,419
py
Python
datashader/glyphs.py
jacobtomlinson/datashader
9a29d72798a50f65b8ba7764053fd787a1a388ea
[ "BSD-3-Clause" ]
null
null
null
datashader/glyphs.py
jacobtomlinson/datashader
9a29d72798a50f65b8ba7764053fd787a1a388ea
[ "BSD-3-Clause" ]
null
null
null
datashader/glyphs.py
jacobtomlinson/datashader
9a29d72798a50f65b8ba7764053fd787a1a388ea
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import, division from toolz import memoize import numpy as np from .utils import ngjit, isreal, Expr class Glyph(Expr): """Base class for glyphs.""" pass class _PointLike(Glyph): """Shared methods between Point and Line""" def __init__(self, x, y): self.x = ...
33.83101
103
0.526701
213c663c19b9c797539905a488b1fde92aa435dd
1,874
py
Python
users/serializers.py
Ibrahem3amer/bala7
70638c121ea85ff0e6a650c5f2641b0b3b04d6d0
[ "Apache-2.0" ]
null
null
null
users/serializers.py
Ibrahem3amer/bala7
70638c121ea85ff0e6a650c5f2641b0b3b04d6d0
[ "Apache-2.0" ]
null
null
null
users/serializers.py
Ibrahem3amer/bala7
70638c121ea85ff0e6a650c5f2641b0b3b04d6d0
[ "Apache-2.0" ]
null
null
null
from rest_framework import serializers from users.models import * from cms.models import UserComment from django.contrib.auth.models import User class UserSerializer(serializers.ModelSerializer): class Meta: model = User fields = ('id', 'username', 'email') class UserProfileSerialzer(serializers...
25.324324
113
0.675027
213c7b7717ead9014fe6ccd47d125045a097c443
1,808
py
Python
feincms3/plugins/richtext.py
fabiangermann/feincms3
568ffd1fa939071a4d6dfae0a70568d1522aaa9e
[ "BSD-3-Clause" ]
null
null
null
feincms3/plugins/richtext.py
fabiangermann/feincms3
568ffd1fa939071a4d6dfae0a70568d1522aaa9e
[ "BSD-3-Clause" ]
null
null
null
feincms3/plugins/richtext.py
fabiangermann/feincms3
568ffd1fa939071a4d6dfae0a70568d1522aaa9e
[ "BSD-3-Clause" ]
null
null
null
""" Provides a rich text area whose content is automatically cleaned using a very restrictive allowlist of tags and attributes. Depends on django-ckeditor and `html-sanitizer <https://pypi.org/project/html-sanitizer>`__. """ from django.db import models from django.utils.html import mark_safe, strip_tags from django.u...
31.172414
78
0.721792
213cc90ed37e2b20812944a7266207b68405f380
2,173
py
Python
ssl_image_classification/algorithms/pseudolabel.py
JanMarcelKezmann/Semi-Supervised-Learning-Image-Classification
b32599d1a5f28beefb4f9a744087e1dc47bd9906
[ "MIT" ]
4
2021-04-16T18:56:46.000Z
2021-11-18T07:14:04.000Z
ssl_image_classification/algorithms/pseudolabel.py
JanMarcelKezmann/Semi-Supervised-Learning-Image-Classification
b32599d1a5f28beefb4f9a744087e1dc47bd9906
[ "MIT" ]
2
2022-02-05T16:55:14.000Z
2022-03-06T11:04:23.000Z
ssl_image_classification/algorithms/pseudolabel.py
JanMarcelKezmann/Semi-Supervised-Learning-Image-Classification
b32599d1a5f28beefb4f9a744087e1dc47bd9906
[ "MIT" ]
2
2022-02-08T12:43:49.000Z
2022-03-06T10:47:56.000Z
import tensorflow as tf from ..libml.data_augmentations import weak_augment, medium_augment, strong_augment def pseudo_label(x, u, height, width): """ Applies medium augmentations on inputs x and u returns tensors and returns augmented tensors. Args: x: tensor, labeled batch of imag...
39.509091
122
0.712839
213cc9f4ce5946ba2c5975e115b36f152178818c
3,153
py
Python
python_modules/dagster/dagster/core/definitions/step_launcher.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/definitions/step_launcher.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/definitions/step_launcher.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
from abc import ABC, abstractmethod from typing import TYPE_CHECKING, Dict, NamedTuple, Optional, Sequence from dagster import check from dagster.core.definitions.reconstruct import ReconstructablePipeline from dagster.core.execution.retries import RetryMode from dagster.core.storage.pipeline_run import PipelineRun i...
37.535714
105
0.660958
213cd57c9d7cbe284e0ed44c925449b33c08dcad
17,487
py
Python
ApiManager/utils/common.py
wishchen/HttpRunnerManager
1e72baa8a84ca70124af908ac683bf88b869d48a
[ "MIT" ]
null
null
null
ApiManager/utils/common.py
wishchen/HttpRunnerManager
1e72baa8a84ca70124af908ac683bf88b869d48a
[ "MIT" ]
null
null
null
ApiManager/utils/common.py
wishchen/HttpRunnerManager
1e72baa8a84ca70124af908ac683bf88b869d48a
[ "MIT" ]
null
null
null
import io import json import logging import os from json import JSONDecodeError import yaml from djcelery.models import PeriodicTask from ApiManager.models import ModuleInfo, TestCaseInfo from ApiManager.utils.operation import add_project_data, add_module_data, add_case_data, add_config_data, \ add_register_data ...
33.245247
120
0.552468
213ce77edd7292689a610d70a5d5a40641823bf0
4,375
py
Python
amr_parser/eval_dev_test.py
emorynlp/levi-graph-amr-parser
f71f1056c13181b8db31d6136451fb8d57114819
[ "Apache-2.0" ]
9
2021-07-12T22:05:47.000Z
2022-02-22T03:10:14.000Z
amr_parser/eval_dev_test.py
emorynlp/levi-graph-amr-parser
f71f1056c13181b8db31d6136451fb8d57114819
[ "Apache-2.0" ]
4
2021-08-31T08:28:37.000Z
2022-03-28T05:52:14.000Z
amr_parser/eval_dev_test.py
emorynlp/levi-graph-amr-parser
f71f1056c13181b8db31d6136451fb8d57114819
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- # Author: hankcs # Date: 2020-09-18 12:44 import argparse import math import os import warnings from glob import glob from amr_parser.match import match from elit.metrics.amr.smatch_eval import smatch_eval, SmatchScores from elit.metrics.f1 import F1_ from elit.metrics.mtl import MetricDict from...
42.892157
130
0.6144
213ce8acf899d885b2f9a7b06eca4905e2f14798
450
py
Python
setup.py
barretobrock/easylogger
68bc54d30494abfd2627a690e46bc226a7bcd3d7
[ "MIT" ]
null
null
null
setup.py
barretobrock/easylogger
68bc54d30494abfd2627a690e46bc226a7bcd3d7
[ "MIT" ]
null
null
null
setup.py
barretobrock/easylogger
68bc54d30494abfd2627a690e46bc226a7bcd3d7
[ "MIT" ]
null
null
null
"""Setup the module. Resources to build this: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ from setuptools import setup, find_packages import versioneer from config import config_dict setup_args = { 'version': versioneer.get_version(), 'cmdclass': ...
23.684211
60
0.746667
213d0ec21d261ea153f4d3c73d5c09a5f2a3da02
9,797
py
Python
pocean/dsg/profile/im.py
lucmehl/pocean-core
79ac85c975f409826abee0de6880b0dd9a3ede6e
[ "MIT" ]
null
null
null
pocean/dsg/profile/im.py
lucmehl/pocean-core
79ac85c975f409826abee0de6880b0dd9a3ede6e
[ "MIT" ]
null
null
null
pocean/dsg/profile/im.py
lucmehl/pocean-core
79ac85c975f409826abee0de6880b0dd9a3ede6e
[ "MIT" ]
null
null
null
#!python # coding=utf-8 from copy import copy from collections import OrderedDict import numpy as np import pandas as pd import netCDF4 as nc4 from pocean.utils import ( create_ncvar_from_series, dict_update, generic_masked, get_default_axes, get_dtype, get_mapped_axes_variables, get_maske...
36.285185
146
0.54976
213d104318eb9926000da5683e5180ddaeb8dd9b
1,103
py
Python
scripts/binary_conv.py
gianxddddd/devscripts
bcaa81e0d239e65544e6f435b89e750ae50d07a3
[ "BSD-3-Clause" ]
1
2021-06-07T11:44:40.000Z
2021-06-07T11:44:40.000Z
scripts/binary_conv.py
gianxddddd/devscripts
bcaa81e0d239e65544e6f435b89e750ae50d07a3
[ "BSD-3-Clause" ]
null
null
null
scripts/binary_conv.py
gianxddddd/devscripts
bcaa81e0d239e65544e6f435b89e750ae50d07a3
[ "BSD-3-Clause" ]
null
null
null
import main import os import platform from displayer import console inputsec: str = 'None' def binconv(): if len(inputsec) == 0: print(console.err('ERROR: Cannot convert an empty text.')) createinput() return if inputsec == 'exit': print('Ending script process..') if ...
23.978261
92
0.590209
213d81eef0b27f0cfcdf2a8290e8b1f4bc049e3c
5,154
py
Python
icedtube/settings.py
sharonmaswai/IceTube
98d933132ee684aa5f04926f2bcca88cd84bfbb9
[ "Unlicense" ]
1
2020-01-13T13:49:53.000Z
2020-01-13T13:49:53.000Z
icedtube/settings.py
sharonmaswai/IceTube
98d933132ee684aa5f04926f2bcca88cd84bfbb9
[ "Unlicense" ]
8
2020-06-05T21:53:54.000Z
2022-03-11T23:53:42.000Z
icedtube/settings.py
sharonmaswai/IceTube
98d933132ee684aa5f04926f2bcca88cd84bfbb9
[ "Unlicense" ]
1
2022-03-13T18:08:48.000Z
2022-03-13T18:08:48.000Z
""" Django settings for icedtube project. Generated by 'django-admin startproject' using Django 1.11.8. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import o...
24.311321
102
0.706248
213d8a2ff55cf189e751320e6ac6bdf146cd4b1d
246
py
Python
dadata/__init__.py
Khalmatov/dadata-py
2d08941c4d8182cc157bab569bd874067975275e
[ "MIT" ]
null
null
null
dadata/__init__.py
Khalmatov/dadata-py
2d08941c4d8182cc157bab569bd874067975275e
[ "MIT" ]
null
null
null
dadata/__init__.py
Khalmatov/dadata-py
2d08941c4d8182cc157bab569bd874067975275e
[ "MIT" ]
null
null
null
""" Data cleansing and enrichment via Dadata API. """ from dadata.sync import DadataClient as Dadata # noqa from dadata.asynchr import DadataClient as DadataAsync # noqa __version__ = "21.10.1" __all__ = [Dadata, DadataAsync] # type: ignore
24.6
62
0.747967
213d8f093ecc24494989f80cdca02cbb1aeae665
3,089
py
Python
gumroad/migrations/0002_sale.py
ohld/django-gumroad
47625e4f8e00ea8f53e5a92c34d8883a069f2aae
[ "MIT" ]
1
2022-02-07T10:29:21.000Z
2022-02-07T10:29:21.000Z
gumroad/migrations/0002_sale.py
ohld/django-gumroad
47625e4f8e00ea8f53e5a92c34d8883a069f2aae
[ "MIT" ]
1
2022-03-05T20:07:47.000Z
2022-03-05T20:07:47.000Z
gumroad/migrations/0002_sale.py
ohld/django-gumroad
47625e4f8e00ea8f53e5a92c34d8883a069f2aae
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2020-10-30 20:52 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('gumroad', '0001_initial'), ] operations = [ migrations.CreateModel( name='Sale', fields=[ ('id', mod...
51.483333
92
0.579476
213da85be53fbcd5e6c33e6b163ede194bef3f0c
6,990
py
Python
mcc/worker_userdata.py
lanl/materialsCloudCompute
6aa5019638b830a79f35a0cf3ef879ff0ab4f2bb
[ "BSD-3-Clause" ]
null
null
null
mcc/worker_userdata.py
lanl/materialsCloudCompute
6aa5019638b830a79f35a0cf3ef879ff0ab4f2bb
[ "BSD-3-Clause" ]
null
null
null
mcc/worker_userdata.py
lanl/materialsCloudCompute
6aa5019638b830a79f35a0cf3ef879ff0ab4f2bb
[ "BSD-3-Clause" ]
null
null
null
#!/opt/anaconda/bin/python """UserData template for workers""" import json import logging import os import shutil import subprocess import sys import time from multiprocessing import cpu_count from multiprocessing.dummy import Pool from threading import Thread import requests import arrow import boto3 import psutil im...
39.050279
134
0.59299
213dbe76310bbabe04d6f08b7f52f20358849b7a
9,146
py
Python
mi/dataset/parser/pco2a_a_dcl.py
rmanoni/mi-dataset
c1012a0cd8f2ea075e008cdd1ab291ed54f44d43
[ "BSD-2-Clause" ]
null
null
null
mi/dataset/parser/pco2a_a_dcl.py
rmanoni/mi-dataset
c1012a0cd8f2ea075e008cdd1ab291ed54f44d43
[ "BSD-2-Clause" ]
null
null
null
mi/dataset/parser/pco2a_a_dcl.py
rmanoni/mi-dataset
c1012a0cd8f2ea075e008cdd1ab291ed54f44d43
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python """ @package mi.dataset.parser.pco2a_a_dcl @file marine-integrations/mi/dataset/parser/pco2a_a_dcl.py @author Sung Ahn @brief Parser for the pco2a_a_dcl dataset driver This file contains code for the pco2a_a_dcl parser and code to produce data particles. For instrument telemetered data, there is...
40.290749
106
0.743713
213dcf03c5eb28c7aa5b89605460ecdab2286a90
3,365
py
Python
test/test_setdefault.py
dustinrohde/miscutils
1bd177cd3f5549e1dc394b81bd0fe399cea65a5b
[ "MIT" ]
null
null
null
test/test_setdefault.py
dustinrohde/miscutils
1bd177cd3f5549e1dc394b81bd0fe399cea65a5b
[ "MIT" ]
null
null
null
test/test_setdefault.py
dustinrohde/miscutils
1bd177cd3f5549e1dc394b81bd0fe399cea65a5b
[ "MIT" ]
null
null
null
from collections import Counter, OrderedDict, defaultdict, deque from functools import partial import pytest from miscutils.merge import merge from miscutils.setdefault import setdefault class SetDefaultTestBase: value = NotImplemented default = NotImplemented cls_builtin = NotImplemented cls_other ...
31.448598
75
0.647548
213dd46ec361008521a5dcf49285a92bf472753b
806
py
Python
master/Challenges-master/Challenges-master/level-1/setIntersection/set_intersection.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
4
2018-09-07T15:35:24.000Z
2019-03-27T09:48:12.000Z
master/Challenges-master/Challenges-master/level-1/setIntersection/set_intersection.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
371
2020-03-04T21:51:56.000Z
2022-03-31T20:59:11.000Z
master/Challenges-master/Challenges-master/level-1/setIntersection/set_intersection.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
3
2019-06-18T19:57:17.000Z
2020-11-06T03:55:08.000Z
import sys def main(input_file): output = [] with open(input_file, 'r') as data: for line in data: output.append(line.strip().split(';')) return get_intersections(output) def get_intersections(input_list): output = [] for i in input_list: a = set(i[0].spli...
26.866667
73
0.552109
213def812aa4264cbb7e28d93963b01778e92a9f
26,469
py
Python
pyinfraformat/core/utils.py
ahartikainen/pyinfraformat
98a0f1b20163c60289d2788f5d702768be4727dc
[ "Apache-2.0" ]
2
2018-11-13T08:01:29.000Z
2018-11-13T08:56:09.000Z
pyinfraformat/core/utils.py
ahartikainen/pyinfraformat
98a0f1b20163c60289d2788f5d702768be4727dc
[ "Apache-2.0" ]
39
2018-10-22T06:32:12.000Z
2022-01-22T14:03:27.000Z
pyinfraformat/core/utils.py
ahartikainen/pyinfraformat
98a0f1b20163c60289d2788f5d702768be4727dc
[ "Apache-2.0" ]
null
null
null
"""General information concerning Finnish Infraformat.""" import logging import numpy as np __all__ = ["identifiers", "print_info"] logger = logging.getLogger("pyinfraformat") def is_number(number_str): """Test if number_str is number including infraformat logic.""" try: complex(number_str) exc...
33.847826
99
0.45797
213dfbf8b07f6d349fba4c7cdae32c482993a08f
4,774
py
Python
train_scripts/train_mnist.py
chawins/entangle-rep
3e9e0d6e7536b0de0e35d7f8717f2ccc8e887759
[ "MIT" ]
15
2019-06-30T12:30:17.000Z
2021-12-07T20:20:36.000Z
train_scripts/train_mnist.py
chawins/entangle-rep
3e9e0d6e7536b0de0e35d7f8717f2ccc8e887759
[ "MIT" ]
2
2020-06-11T10:10:52.000Z
2021-12-21T08:50:33.000Z
train_scripts/train_mnist.py
chawins/entangle-rep
3e9e0d6e7536b0de0e35d7f8717f2ccc8e887759
[ "MIT" ]
9
2019-07-09T14:52:30.000Z
2020-10-27T19:18:34.000Z
'''Train MNIST model''' from __future__ import print_function import logging import os import numpy as np import torch import torch.backends.cudnn as cudnn import torch.nn as nn import torch.optim as optim from lib.dataset_utils import * from lib.lip_model import * from lib.mnist_model import * os.environ["CUDA_DEV...
30.8
77
0.636783
213e02ccd1cff6a2e2e5be19b1c22d86429f8ac3
2,120
py
Python
Src/Escher/tools/mesh_interpolate/main.py
sanjeevmk/GLASS
91c0954eab87d25d4866fea5c338f79fbca4f79e
[ "MIT" ]
2
2022-03-22T17:36:14.000Z
2022-03-27T05:03:39.000Z
Src/Escher/tools/mesh_interpolate/main.py
sanjeevmk/glass
91c0954eab87d25d4866fea5c338f79fbca4f79e
[ "MIT" ]
null
null
null
Src/Escher/tools/mesh_interpolate/main.py
sanjeevmk/glass
91c0954eab87d25d4866fea5c338f79fbca4f79e
[ "MIT" ]
null
null
null
from Escher.Geometry import Mesh from Escher import ArapInterpolate from typing import List import argparse import os def deformation_interpolation(src_mesh_path:str, tgt_mesh_path:str, interval:float=0.1,fragment_resolution:str='average') -> List[Mesh]: """ This function is a wrapper to deformation interpola...
49.302326
136
0.75283
213e372b8c512d4d2490daf98441e5630d205b57
5,299
py
Python
tests/common_fixtures.py
BulbaWarrior/hydro-serving-sdk
154ab37034c22c13ef6bded56039f4f23404723d
[ "Apache-2.0" ]
5
2020-02-20T08:53:43.000Z
2021-02-19T12:00:23.000Z
tests/common_fixtures.py
Hydrospheredata/hydro-serving-sdk
94bc4d8335ffe0bf4c90af336656d3e5473952c4
[ "Apache-2.0" ]
43
2019-09-30T15:23:48.000Z
2021-05-13T08:06:45.000Z
tests/common_fixtures.py
BulbaWarrior/hydro-serving-sdk
154ab37034c22c13ef6bded56039f4f23404723d
[ "Apache-2.0" ]
6
2019-08-27T17:15:45.000Z
2021-08-10T13:09:21.000Z
import os from typing import List import pytest from grpc import ssl_channel_credentials from hydrosdk.cluster import Cluster from hydrosdk.deployment_configuration import DeploymentConfigurationBuilder from hydrosdk.signature import ModelSignature, SignatureBuilder, ProfilingType from hydrosdk.image import DockerIma...
31.35503
112
0.564257
213e4e6a3b80e33a1e65032d75ef9500e359dd9d
2,988
py
Python
checkout/models.py
jansgreen/django-locallibrary-tutorial
9e3f5b694de3676dba66fc4df05435af339a44ab
[ "CC0-1.0" ]
null
null
null
checkout/models.py
jansgreen/django-locallibrary-tutorial
9e3f5b694de3676dba66fc4df05435af339a44ab
[ "CC0-1.0" ]
null
null
null
checkout/models.py
jansgreen/django-locallibrary-tutorial
9e3f5b694de3676dba66fc4df05435af339a44ab
[ "CC0-1.0" ]
null
null
null
import uuid from django.db import models from django.db.models import Sum from django.conf import settings from catalog.models import Movies from django.db.models.signals import post_save, post_delete # Create your models here. class order(models.Model): order_number = models.CharField(max_length=20, null=Tru...
40.931507
124
0.713521
213e572df6bb84ffbb236249592356ef949a8850
3,981
py
Python
src/rubrix/sdk/models/text_classification_bulk_data.py
sakares/rubrix
791ffb29815b5d24f2bbbb0fa422f85f8b30098f
[ "Apache-2.0" ]
null
null
null
src/rubrix/sdk/models/text_classification_bulk_data.py
sakares/rubrix
791ffb29815b5d24f2bbbb0fa422f85f8b30098f
[ "Apache-2.0" ]
null
null
null
src/rubrix/sdk/models/text_classification_bulk_data.py
sakares/rubrix
791ffb29815b5d24f2bbbb0fa422f85f8b30098f
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2021-present, the Recognai S.L. team. # # 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 ...
33.175
88
0.67571
213e5fd2332869c140272e6bfbb33314b3ce244f
4,124
py
Python
alipay/aop/api/request/AnttechBlockchainFinanceMylogisticfinsysMessagePublishRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/request/AnttechBlockchainFinanceMylogisticfinsysMessagePublishRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/request/AnttechBlockchainFinanceMylogisticfinsysMessagePublishRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AnttechBlockchainFinanceMylogisticfinsysMessagePublishModel import AnttechBlockchainFinanceMylogisticfinsysMessagePublishModel class...
28.441379
153
0.657614
213e7a4cab50b695a84bcea854b85948393e4fa5
3,512
py
Python
setup.py
subhacom/argos
e1b4057e470c517aabca6b6e0a0efb44871fed82
[ "Unlicense" ]
1
2021-05-18T01:07:16.000Z
2021-05-18T01:07:16.000Z
setup.py
subhacom/argos
e1b4057e470c517aabca6b6e0a0efb44871fed82
[ "Unlicense" ]
null
null
null
setup.py
subhacom/argos
e1b4057e470c517aabca6b6e0a0efb44871fed82
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- # Author: Subhasis Ray <ray dot subhasis at gmail dot com> # Created: 2020-06-04 4:13 PM """How to build distribution: - Build wheel and tar (update MICRO-version number for test - once used, a filename cannot be reused) python -m build - Check dist folder for old archives - delete them...
28.322581
125
0.638383
213edb5709487529fc009c091750593b2b713fee
7,958
py
Python
webapp/routes.py
dssg/babies-public
0a03e95992bfd7b7b4c2f11b8a5e2c3961f193c6
[ "MIT" ]
5
2018-09-13T02:26:23.000Z
2019-10-21T12:38:16.000Z
webapp/routes.py
dssg/babies-public
0a03e95992bfd7b7b4c2f11b8a5e2c3961f193c6
[ "MIT" ]
null
null
null
webapp/routes.py
dssg/babies-public
0a03e95992bfd7b7b4c2f11b8a5e2c3961f193c6
[ "MIT" ]
3
2015-10-14T19:51:42.000Z
2022-03-29T07:12:39.000Z
from flask import Flask, render_template, request, redirect, url_for from flask.ext.httpauth import HTTPDigestAuth from celery import Celery import proto import os import sqlalchemy import subprocess import shutil import numpy as np import pandas as pd from sklearn.externals import joblib from scipy.stats import perc...
34.6
130
0.603795
213f0a6385088f8220b670f53cebd0b0178b8393
13,341
py
Python
basenji/seqnn.py
moodyRahman/basenji
0fb66324549bbd52c10ce714a1ad988e54ce2773
[ "Apache-2.0" ]
null
null
null
basenji/seqnn.py
moodyRahman/basenji
0fb66324549bbd52c10ce714a1ad988e54ce2773
[ "Apache-2.0" ]
null
null
null
basenji/seqnn.py
moodyRahman/basenji
0fb66324549bbd52c10ce714a1ad988e54ce2773
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Calico 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
32.940741
102
0.638333
213f33a1bc4d1cc01f5f98841a052873a3651c7b
779
py
Python
mne_bids/tests/test_pick.py
skjerns/mne-bids
dfedceee1f0b00c6f4e0fe6b19dd94f82f498802
[ "BSD-3-Clause" ]
83
2017-09-25T21:27:45.000Z
2022-03-31T19:33:37.000Z
mne_bids/tests/test_pick.py
skjerns/mne-bids
dfedceee1f0b00c6f4e0fe6b19dd94f82f498802
[ "BSD-3-Clause" ]
953
2017-07-12T00:43:40.000Z
2022-03-31T19:52:28.000Z
mne_bids/tests/test_pick.py
skjerns/mne-bids
dfedceee1f0b00c6f4e0fe6b19dd94f82f498802
[ "BSD-3-Clause" ]
69
2017-07-12T00:22:42.000Z
2022-03-15T10:37:28.000Z
"""Test for the coil type picking function.""" # Authors: Matt Sanderson <matt.sanderson@mq.edu.au> # # License: BSD-3-Clause import os.path as op from mne.datasets import testing from mne.io import read_raw_fif from mne_bids.pick import coil_type def test_coil_type(): """Test the correct coil type is retrieve...
29.961538
54
0.668806
213f741be86dcf8d53422d34ef5d22dbca1c88f7
427
py
Python
ses_analytics/admin.py
startup-guide/django-ses-analytics
833e7261d62cba7f4667c6c54661b8b160aff193
[ "MIT" ]
1
2018-11-16T22:20:13.000Z
2018-11-16T22:20:13.000Z
ses_analytics/admin.py
startup-guide/django-ses-analytics
833e7261d62cba7f4667c6c54661b8b160aff193
[ "MIT" ]
null
null
null
ses_analytics/admin.py
startup-guide/django-ses-analytics
833e7261d62cba7f4667c6c54661b8b160aff193
[ "MIT" ]
1
2018-11-16T22:20:17.000Z
2018-11-16T22:20:17.000Z
from django.contrib import admin from ses_analytics.models import Email # TODO: Admin extension for email stats analytics # TODO: provide a button to resend the email (?) class EmailAdmin(admin.ModelAdmin): list_display = ('to_email', 'campaign', 'time', 'status', 'is_read') ordering = ('-time',) search_f...
30.5
72
0.711944
213fb08c2ab5753e04407908731bd158bdf8fcba
6,293
py
Python
src/graph_transpiler/webdnn/backend/webgl/kernels/reduce.py
gunpowder78/webdnn
c659ea49007f91d178ce422a1eebe289516a71ee
[ "MIT" ]
1
2018-07-26T13:52:21.000Z
2018-07-26T13:52:21.000Z
src/graph_transpiler/webdnn/backend/webgl/kernels/reduce.py
gunpowder78/webdnn
c659ea49007f91d178ce422a1eebe289516a71ee
[ "MIT" ]
null
null
null
src/graph_transpiler/webdnn/backend/webgl/kernels/reduce.py
gunpowder78/webdnn
c659ea49007f91d178ce422a1eebe289516a71ee
[ "MIT" ]
null
null
null
from collections import namedtuple from typing import Type, Dict, Callable, Union from webdnn.backend.code_generator.injectors.kernel_name_injector import KernelNameInjector from webdnn.backend.webgl.generator import WebGLDescriptorGenerator from webdnn.backend.webgl.kernel import Kernel from webdnn.backend.webgl.kern...
35.96
131
0.668838
2140074dccbbc86fe3ba7f1513644dbd86b146cc
655
py
Python
lib/devpipeline_build/build.py
dev-pipeline/dev-pipeline-build
7e20479f4a90b6a455d0240826c2b26a0394c3e2
[ "BSD-2-Clause" ]
null
null
null
lib/devpipeline_build/build.py
dev-pipeline/dev-pipeline-build
7e20479f4a90b6a455d0240826c2b26a0394c3e2
[ "BSD-2-Clause" ]
4
2018-10-19T06:02:02.000Z
2018-12-09T20:46:23.000Z
lib/devpipeline_build/build.py
dev-pipeline/dev-pipeline-build
7e20479f4a90b6a455d0240826c2b26a0394c3e2
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python3 """This module initiates the build.""" import argparse import devpipeline_core.command import devpipeline_configure.load import devpipeline_build.builder import devpipeline_build.version def _configure(parser): devpipeline_core.command.setup_task_parser(parser) devpipeline_core.command.a...
24.259259
87
0.783206
21400d7b0bada0ce5460e16be298281727ed1938
977
py
Python
similarityPy/measure/numerical_data/chessboard_distance.py
cenkbircanoglu/clustering
0a97fbf43e58e65e8d9eed30eecff00bcd47f093
[ "MIT" ]
23
2015-01-21T01:39:11.000Z
2019-08-27T09:43:39.000Z
similarityPy/measure/numerical_data/chessboard_distance.py
cenkbircanoglu/clustering
0a97fbf43e58e65e8d9eed30eecff00bcd47f093
[ "MIT" ]
1
2015-01-18T08:52:30.000Z
2015-01-18T08:52:30.000Z
similarityPy/measure/numerical_data/chessboard_distance.py
cenkbircanoglu/clustering
0a97fbf43e58e65e8d9eed30eecff00bcd47f093
[ "MIT" ]
6
2015-03-23T16:58:18.000Z
2019-03-12T06:31:56.000Z
# coding=utf-8 """ Created on 18 January 2014 @author: Cenk Bircanoglu """ import operator from similarityPy.measure.similarity_measure import SimilarityMeasure from similarityPy.measure.similarity_measure_type import SimilarityMeasureType class ChessBoardDistance(SimilarityMeasure): similarity_measure_type = Si...
34.892857
110
0.664278
2140120f4721084bac3a8e71fe84bf92bb61b56a
4,985
py
Python
test/test_benchmarks.py
anon-submis1/qiskit-service
320226454e15738ae8bead4911a2767836678cb6
[ "Apache-2.0" ]
null
null
null
test/test_benchmarks.py
anon-submis1/qiskit-service
320226454e15738ae8bead4911a2767836678cb6
[ "Apache-2.0" ]
9
2020-08-20T13:40:32.000Z
2022-02-08T13:28:44.000Z
test/test_benchmarks.py
anon-submis1/qiskit-service
320226454e15738ae8bead4911a2767836678cb6
[ "Apache-2.0" ]
2
2021-03-24T14:43:10.000Z
2021-12-01T08:12:01.000Z
# ****************************************************************************** # Copyright (c) 2021 University of Stuttgart # # See the NOTICE file(s) distributed with this work for additional # information regarding copyright ownership. # # Licensed under the Apache License, Version 2.0 (the "License"); # you m...
36.386861
95
0.621264
21402d593a3124b41fd95b96c967bcdbd3bac520
8,381
py
Python
main/eda.py
Zeng-Lecheng/Music-Genre-Classification
6d489c777431af94f5167808ac4487957743f04b
[ "MIT" ]
null
null
null
main/eda.py
Zeng-Lecheng/Music-Genre-Classification
6d489c777431af94f5167808ac4487957743f04b
[ "MIT" ]
1
2022-03-30T19:43:34.000Z
2022-03-30T19:43:34.000Z
main/eda.py
Zeng-Lecheng/Music-Genre-Classification
6d489c777431af94f5167808ac4487957743f04b
[ "MIT" ]
1
2022-03-30T19:01:42.000Z
2022-03-30T19:01:42.000Z
# eda.py # When running this tutorial in Google Colab, install the required packages # with the following. #!pip install torchaudio librosa boto3 # C:\\Users\\J\\Documents\\Classes\\Classes_Sp_2022\\Deep_Learning\\Final_project\\Music-Genre-Classification\\HW\\Lib\\site-packages\\_soundfile_data\\libsndfile64bit.dll ...
44.818182
180
0.661019
214031f5964665d926173475e36854d0e07778c5
1,312
py
Python
tests/test_sockets.py
diefans/buvar
5c47cef0a1a9792d6b2aee0d32f724f83834715c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1
2020-02-28T22:59:19.000Z
2020-02-28T22:59:19.000Z
tests/test_sockets.py
diefans/buvar
5c47cef0a1a9792d6b2aee0d32f724f83834715c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
tests/test_sockets.py
diefans/buvar
5c47cef0a1a9792d6b2aee0d32f724f83834715c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
import pytest def test_tcp_socket(): import socket from buvar import fork s = fork.Socket("tcp://:12345") assert s.family == socket.AF_INET assert s.uri.getport() == 12345 assert str(s.uri.gethost()) == "0.0.0.0" def test_unix_socket(): import socket from buvar import fork s = ...
21.508197
68
0.590701
21403ab570ac31a1a8e1105e5013e4be22f3c706
990
py
Python
nova/__init__.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
7
2015-09-22T11:27:16.000Z
2015-11-02T12:33:46.000Z
nova/__init__.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
11
2017-06-19T01:28:55.000Z
2017-06-23T02:01:47.000Z
nova/__init__.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
7
2015-01-20T10:30:08.000Z
2020-02-05T10:29:05.000Z
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # 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 ...
31.935484
78
0.705051
2140476c1f106e82f0de7fb36e4af49c664b7b9a
432
py
Python
scielomanager/validator/urls.py
patymori/scielo-manager
0945f377376de8ef0ada83c35b4e2312062cdf45
[ "BSD-2-Clause" ]
8
2015-07-07T03:09:16.000Z
2019-03-16T04:46:32.000Z
scielomanager/validator/urls.py
DalavanCloud/scielo-manager
0945f377376de8ef0ada83c35b4e2312062cdf45
[ "BSD-2-Clause" ]
245
2015-01-14T13:29:58.000Z
2022-01-13T00:48:44.000Z
scielomanager/validator/urls.py
DalavanCloud/scielo-manager
0945f377376de8ef0ada83c35b4e2312062cdf45
[ "BSD-2-Clause" ]
5
2016-02-19T15:47:08.000Z
2019-03-16T04:46:20.000Z
# -*- encoding: utf-8 -*- from django.conf.urls.defaults import * from django.conf import settings from . import views urlpatterns = patterns( '', url(r'^stylechecker/$', views.packtools_home, name="validator.packtools.stylechecker"), ) if settings.VALIDATOR_ENABLE_HTML_PREVIEWER: urlpatterns += ( ...
27
103
0.701389
21405af080fd443a587fccacc178d1702c5a0eb9
583
py
Python
Followup v0.80/fup/__init__.py
iaiting/Flask-and-pywebview-followup-application-gui
b665334403b4a8471b5f28054ee2dc7adda7d9fc
[ "MIT" ]
null
null
null
Followup v0.80/fup/__init__.py
iaiting/Flask-and-pywebview-followup-application-gui
b665334403b4a8471b5f28054ee2dc7adda7d9fc
[ "MIT" ]
null
null
null
Followup v0.80/fup/__init__.py
iaiting/Flask-and-pywebview-followup-application-gui
b665334403b4a8471b5f28054ee2dc7adda7d9fc
[ "MIT" ]
1
2019-12-25T11:57:45.000Z
2019-12-25T11:57:45.000Z
# "python.linting.pylintArgs": [ # "--disable=C0111" # ], def create_app(): from flask import Flask app = Flask(__name__) from fup.views.user import user from fup.views.commun import comm from fup.views.viewbatch import viewbatch from fup.views.createbatch import createbatch ...
24.291667
50
0.698113
21405b049fe593c9205606191b6932fcd651856d
144
py
Python
DraftFunctions.py
AngCamp/Stienmetz2019Reanalyzed
efb29468b4d77246e2868237e8fb9cbc06917eba
[ "MIT" ]
null
null
null
DraftFunctions.py
AngCamp/Stienmetz2019Reanalyzed
efb29468b4d77246e2868237e8fb9cbc06917eba
[ "MIT" ]
null
null
null
DraftFunctions.py
AngCamp/Stienmetz2019Reanalyzed
efb29468b4d77246e2868237e8fb9cbc06917eba
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import os import scikit.learn import KernelRegDraft as kreg import getSteinmetz2019data as stein
18
37
0.798611
214083c461db7ddd168e9e30b509f8fe7b80f569
2,816
py
Python
tests/test_models/test_gemini_base_cv.py
aspuru-guzik-group/gemini
441d0f6c8842d15d4f917423ab440c5d78433199
[ "MIT" ]
8
2021-04-04T15:23:05.000Z
2022-02-20T06:33:57.000Z
tests/test_models/test_gemini_base_cv.py
aspuru-guzik-group/gemini
441d0f6c8842d15d4f917423ab440c5d78433199
[ "MIT" ]
null
null
null
tests/test_models/test_gemini_base_cv.py
aspuru-guzik-group/gemini
441d0f6c8842d15d4f917423ab440c5d78433199
[ "MIT" ]
5
2021-04-04T15:23:27.000Z
2022-01-25T07:55:43.000Z
#!/usr/bin/env python import pytest import numpy as np from gemini import Gemini from gemini import GeminiOpt #====================================================================== def fast_func(x): return np.sin(4 * np.pi * x) def slow_func(x): return np.cos(3 * np.pi * x) def test_gemini(): ''' ...
31.640449
84
0.684659
21408b093ebe8b0a71c2fff5bf004abba04b4863
1,739
py
Python
evaluation/03e_spm_make_one_file.py
MSchnei/MRI_segmentation_preparation_scripts
02f65b584e09908247202fff57714b63ef44e7dd
[ "MIT" ]
1
2022-03-17T15:46:25.000Z
2022-03-17T15:46:25.000Z
evaluation/03e_spm_make_one_file.py
MSchnei/MRI_segmentation_preparation_scripts
02f65b584e09908247202fff57714b63ef44e7dd
[ "MIT" ]
null
null
null
evaluation/03e_spm_make_one_file.py
MSchnei/MRI_segmentation_preparation_scripts
02f65b584e09908247202fff57714b63ef44e7dd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Description: Create one file with hard segmentation labels. To be set: -path to parent directory, -subject names -number of segmentation inputs Input: -hard spm segmentation labels in seperate files for all subjects Output: -hard spm segmentation labels in a single file for e...
34.098039
84
0.657849
2140dc01b7c7480c866f77ae348805c8c76b0f7d
1,878
py
Python
miniworld/management/SimulationStateGarbageCollector.py
miniworld-project/miniworld_core
c591bad232b78eae99e8f55cb1b907c1e228484b
[ "MIT" ]
5
2019-05-11T14:57:15.000Z
2021-07-05T00:35:25.000Z
miniworld/management/SimulationStateGarbageCollector.py
miniworld-project/miniworld_core
c591bad232b78eae99e8f55cb1b907c1e228484b
[ "MIT" ]
27
2017-03-17T07:11:02.000Z
2019-05-26T23:36:56.000Z
miniworld/management/SimulationStateGarbageCollector.py
miniworld-project/miniworld_core
c591bad232b78eae99e8f55cb1b907c1e228484b
[ "MIT" ]
6
2017-05-03T12:11:33.000Z
2020-04-03T11:44:27.000Z
from collections import defaultdict from miniworld import log KEY_SINGLETON = "singleton" KEY_OBJECT = "object" class SimulationStateGarbageCollector(defaultdict): def __init__(self): super(SimulationStateGarbageCollector, self).__init__(list) # TODO: #55: REMOVE from this class def add_single...
36.115385
104
0.64377
2140e7fe4bc639b55213af365d51e6c50d4e62e0
504
py
Python
yk_utils/apis/api_result.py
jppdpf/yk-utils-python
2c101feda900713c8cbb0223326031ba09cd48e9
[ "MIT" ]
null
null
null
yk_utils/apis/api_result.py
jppdpf/yk-utils-python
2c101feda900713c8cbb0223326031ba09cd48e9
[ "MIT" ]
null
null
null
yk_utils/apis/api_result.py
jppdpf/yk-utils-python
2c101feda900713c8cbb0223326031ba09cd48e9
[ "MIT" ]
1
2022-02-16T19:04:33.000Z
2022-02-16T19:04:33.000Z
"""API result module""" class ApiResult: """This class stores data from API operations.""" def __init__(self, status: str = None, message_class: str = None, message: str = None): """Class initializer. :param status: Status. :param message_class: Message class (f...
28
91
0.579365
214116a0fc21624391fa265a5e37dce6c6b6db6a
8,160
py
Python
data_steward/validation/participants/writers.py
amcgrenera-vumc/curation
f30aa8cb3b8de4e5dfdc3c95a0d98ca21de7df08
[ "MIT" ]
null
null
null
data_steward/validation/participants/writers.py
amcgrenera-vumc/curation
f30aa8cb3b8de4e5dfdc3c95a0d98ca21de7df08
[ "MIT" ]
null
null
null
data_steward/validation/participants/writers.py
amcgrenera-vumc/curation
f30aa8cb3b8de4e5dfdc3c95a0d98ca21de7df08
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ A module to write participant identity matching table data. """ # Python imports import logging import os import StringIO # Third party imports import googleapiclient import oauth2client # Project imports import bq_utils import constants.validation.participants.writer...
35.172414
87
0.656373
21413a4f2d182e56fa5921bcfbe10babacf648f8
2,092
py
Python
python/v2.6/create_creative_field_value.py
byagihas/googleads-dfa-reporting-samples
b525662330e0e2ca863458a4e530eccf868ac7eb
[ "Apache-2.0" ]
103
2015-01-11T12:23:46.000Z
2022-03-31T02:06:12.000Z
python/v2.6/create_creative_field_value.py
byagihas/googleads-dfa-reporting-samples
b525662330e0e2ca863458a4e530eccf868ac7eb
[ "Apache-2.0" ]
32
2015-03-03T13:39:35.000Z
2021-07-16T01:31:06.000Z
python/v2.6/create_creative_field_value.py
byagihas/googleads-dfa-reporting-samples
b525662330e0e2ca863458a4e530eccf868ac7eb
[ "Apache-2.0" ]
194
2015-01-05T22:02:16.000Z
2022-03-01T17:01:39.000Z
#!/usr/bin/python # # Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
29.885714
78
0.73088
214159fd62d3e523b41ee746a9c0bc05bcf7f8e0
4,565
py
Python
utils/crest_in_check4aims.py
Kronik-lab/CREST
0fd8ef125bd2182702656ae68ab62db63d789242
[ "BSD-2-Clause" ]
null
null
null
utils/crest_in_check4aims.py
Kronik-lab/CREST
0fd8ef125bd2182702656ae68ab62db63d789242
[ "BSD-2-Clause" ]
null
null
null
utils/crest_in_check4aims.py
Kronik-lab/CREST
0fd8ef125bd2182702656ae68ab62db63d789242
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python #=============================================================================== # # FILE: crest_in_check4aims.py # # USAGE: crest_in_check4aims.py [crest_input] # # DESCRIPTION: Goes over crest input file and checks what info it can vs. the # AIMS input files i...
31.054422
82
0.636802
2141a04bf21bcc77abf49340693a40a4c6c25d7e
2,059
py
Python
.leetcode/279.perfect-squares.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/279.perfect-squares.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/279.perfect-squares.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
# @lc app=leetcode id=279 lang=python3 # # [279] Perfect Squares # # https://leetcode.com/problems/perfect-squares/description/ # # algorithms # Medium (49.55%) # Likes: 4664 # Dislikes: 244 # Total Accepted: 412.1K # Total Submissions: 828.1K # Testcase Example: '12' # # Given an integer n, return the least num...
17.904348
77
0.557552
2141af3146090c31d3452ecabba65ddb1604c261
4,580
py
Python
app/tests/catalog/test_service_views.py
yayunl/llfselfhelp
55994003ad51e1664a733c84ed6afcb9f28b6499
[ "MIT" ]
null
null
null
app/tests/catalog/test_service_views.py
yayunl/llfselfhelp
55994003ad51e1664a733c84ed6afcb9f28b6499
[ "MIT" ]
4
2021-04-08T21:37:08.000Z
2021-09-22T19:31:17.000Z
app/tests/catalog/test_service_views.py
yayunl/llfselfhelp
55994003ad51e1664a733c84ed6afcb9f28b6499
[ "MIT" ]
null
null
null
import pytest from pytest_factoryboy import LazyFixture from django.urls import reverse from tests.utils import export_to_html, str2bytes # Test service views @pytest.mark.django_db def test_get_services_view(auto_login_user, user_factory, category_factory, service_factory): # create initial test data servant...
39.482759
101
0.676201
2141b77afa40f6760a1f7249fd8b9f12e83117d3
6,730
py
Python
.dev_scripts/gather_models.py
BOURSa/mmdetection3d
27d0001e873b3102a828a27e1372873fcf81ed7e
[ "Apache-2.0" ]
1
2020-08-04T08:39:25.000Z
2020-08-04T08:39:25.000Z
.dev_scripts/gather_models.py
BOURSa/mmdetection3d
27d0001e873b3102a828a27e1372873fcf81ed7e
[ "Apache-2.0" ]
1
2020-08-11T05:44:29.000Z
2020-08-11T05:44:29.000Z
.dev_scripts/gather_models.py
BOURSa/mmdetection3d
27d0001e873b3102a828a27e1372873fcf81ed7e
[ "Apache-2.0" ]
null
null
null
import argparse import glob import json import os.path as osp import shutil import subprocess import mmcv import torch # build schedule look-up table to automatically find the final model SCHEDULES_LUT = { '_1x_': 12, '_2x_': 24, '_20e_': 20, '_3x_': 36, '_4x_': 48, '_24e_': 24, '_6x_': 73...
32.990196
79
0.609064
2141e2614e344d98618a2b02dc151bfaf77a3632
638
py
Python
tests/playbook/test_num_import_playbook__count.py
radon-h2020/AnsibleMetrics
8a8e27d9b54fc1578d00526c8663184a2e686cb2
[ "Apache-2.0" ]
1
2020-04-24T16:09:14.000Z
2020-04-24T16:09:14.000Z
tests/playbook/test_num_import_playbook__count.py
radon-h2020/AnsibleMetrics
8a8e27d9b54fc1578d00526c8663184a2e686cb2
[ "Apache-2.0" ]
null
null
null
tests/playbook/test_num_import_playbook__count.py
radon-h2020/AnsibleMetrics
8a8e27d9b54fc1578d00526c8663184a2e686cb2
[ "Apache-2.0" ]
null
null
null
import pytest from ansiblemetrics.playbook.num_imported_playbooks import NumImportedPlaybooks script_0 = "- debug:\n\tmsg: task1\n- name: This fails because I'm inside a play already" script_2 = "- debug:\n\tmsg: play1\n\n- name: Include a play after another play\n\timport_playbook: " \ "otherplays.yaml\n- ...
35.444444
114
0.72884
2141ee73add0d87dc081b7aa8efb2dd8489e27e1
7,225
py
Python
mnlite/__init__.py
datadavev/mnlite
be3118cde634fce97ea689e1044803edf3cbc1ea
[ "Apache-2.0" ]
null
null
null
mnlite/__init__.py
datadavev/mnlite
be3118cde634fce97ea689e1044803edf3cbc1ea
[ "Apache-2.0" ]
14
2021-07-07T13:17:40.000Z
2022-01-17T19:01:34.000Z
mnlite/__init__.py
datadavev/mnlite
be3118cde634fce97ea689e1044803edf3cbc1ea
[ "Apache-2.0" ]
null
null
null
import os import pathlib import json import flask import flask_cors from mnlite import mnode import opersist.utils def initialize_instance(instance_path): db_path = os.path.join(instance_path, "dashboard") db_config = os.path.join(db_path, "dashboard.cfg") if not os.path.exists(db_config): os.maked...
35.072816
88
0.528028
2141f68a1af21254831ea13df31bd55d3528b6c9
1,673
py
Python
baseline_gender/options.py
IS2AI/SpeakingFaces
3435bbab7728bac194f2060c71acdf7bfe88d247
[ "MIT" ]
44
2020-10-18T01:14:00.000Z
2022-02-18T07:45:39.000Z
baseline_gender/options.py
Caiyq2019/SpeakingFaces
3435bbab7728bac194f2060c71acdf7bfe88d247
[ "MIT" ]
4
2020-12-12T03:27:22.000Z
2021-11-29T12:46:58.000Z
baseline_gender/options.py
Caiyq2019/SpeakingFaces
3435bbab7728bac194f2060c71acdf7bfe88d247
[ "MIT" ]
5
2020-12-09T10:41:38.000Z
2021-12-20T06:42:05.000Z
gpu = '0' random_seed = 10 predict = 'gender' # 'age', 'gender' # 1-rgb, 2-thermal, 3-audio, 4-rgb and thermal, 5-rgb and audio, 6-thermal and audio, 7-all mode = 3 ############################################################################################### #dataset options sub_path = 'data/subjects.csv' train_...
29.350877
124
0.556485
2141fb03fa61dd4952dfe226d97fe3b1619a1efa
686
py
Python
src/forecastga/ga/utils/server.py
richardfergie/ForecastGA
ce4ddc778d0be68f504e1bfc300be6b2fe870cb7
[ "MIT" ]
30
2021-01-02T16:14:55.000Z
2022-02-11T23:17:18.000Z
src/forecastga/ga/utils/server.py
richardfergie/ForecastGA
ce4ddc778d0be68f504e1bfc300be6b2fe870cb7
[ "MIT" ]
2
2021-01-11T16:56:23.000Z
2021-02-04T00:37:56.000Z
src/forecastga/ga/utils/server.py
richardfergie/ForecastGA
ce4ddc778d0be68f504e1bfc300be6b2fe870cb7
[ "MIT" ]
8
2021-01-10T19:04:22.000Z
2021-11-14T18:47:22.000Z
# encoding: utf-8 def single_serve(message=None, port=5000): import logging from werkzeug.wrappers import Request, Response from werkzeug.serving import run_simple log = logging.getLogger("werkzeug") log.setLevel(logging.ERROR) captured = {} def application(environ, start_response): ...
27.44
59
0.6793
2142023f903a919f71d3c68cb6d301b3dd0a5848
7,906
py
Python
va_explorer/users/tests/test_views.py
VA-Explorer/va_explorer
e43cfbff0ce5209c12134b7ac4ce439db6fc87a2
[ "Apache-2.0" ]
null
null
null
va_explorer/users/tests/test_views.py
VA-Explorer/va_explorer
e43cfbff0ce5209c12134b7ac4ce439db6fc87a2
[ "Apache-2.0" ]
125
2020-10-07T12:00:15.000Z
2022-03-31T21:29:21.000Z
va_explorer/users/tests/test_views.py
VA-Explorer/va_explorer
e43cfbff0ce5209c12134b7ac4ce439db6fc87a2
[ "Apache-2.0" ]
2
2020-10-29T16:08:42.000Z
2020-12-08T19:03:41.000Z
import pytest from django.contrib.auth.models import AnonymousUser, Permission from django.core.exceptions import PermissionDenied from django.test import Client, RequestFactory from django.urls import reverse from va_explorer.users.models import User from va_explorer.tests.factories import GroupFactory, NewUserFactor...
32.804979
101
0.657096
214218768fe5a9d074bf48a47c5f38598ea907b0
213
py
Python
datar/base/random.py
stjordanis/datar
4e2b5db026ad35918954576badef9951928c0cb1
[ "MIT" ]
110
2021-03-09T04:10:40.000Z
2022-03-13T10:28:20.000Z
datar/base/random.py
sthagen/datar
1218a549e2f0547c7b5a824ca6d9adf1bf96ba46
[ "MIT" ]
54
2021-06-20T18:53:44.000Z
2022-03-29T22:13:07.000Z
datar/base/random.py
sthagen/datar
1218a549e2f0547c7b5a824ca6d9adf1bf96ba46
[ "MIT" ]
11
2021-06-18T03:03:14.000Z
2022-02-25T11:48:26.000Z
"""Functions related to randomization""" import random as std_random import numpy def set_seed(seed: int) -> None: """Set the seed for randomization""" std_random.seed(seed) numpy.random.seed(seed)
19.363636
40
0.70892
21422fa3bd9754b1a6e73b635547063dc2744e1f
198
py
Python
backend/crm/exceptions.py
StichtingIAPC/swipe
d1ea35a40813d2d5e9cf9edde33148c0a825efc4
[ "BSD-3-Clause-Clear" ]
null
null
null
backend/crm/exceptions.py
StichtingIAPC/swipe
d1ea35a40813d2d5e9cf9edde33148c0a825efc4
[ "BSD-3-Clause-Clear" ]
null
null
null
backend/crm/exceptions.py
StichtingIAPC/swipe
d1ea35a40813d2d5e9cf9edde33148c0a825efc4
[ "BSD-3-Clause-Clear" ]
null
null
null
class CyclicParenthoodError(ValueError): def __init__(self, organisation): super(CyclicParenthoodError, self).__init__("Organisation {} has a cyclic parent tree.".format(organisation))
39.6
117
0.762626
2142627c51c872b49f535e4e4219cfc6bb63466f
2,192
py
Python
tests/st/ops/ascend/vector/test_greater_001.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
tests/st/ops/ascend/vector/test_greater_001.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
tests/st/ops/ascend/vector/test_greater_001.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
30
2020-07-17T01:04:14.000Z
2021-12-27T14:05:19.000Z
# Copyright 2019 Huawei Technologies Co., Ltd # # 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...
33.723077
91
0.598084
214278d0362ba77f5c57f2bd684404ae78e39a0a
11,670
py
Python
speckley/test/python/run_SpeckleyRipleyCoupler.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
null
null
null
speckley/test/python/run_SpeckleyRipleyCoupler.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
1
2019-01-14T03:07:43.000Z
2019-01-14T03:07:43.000Z
speckley/test/python/run_SpeckleyRipleyCoupler.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
null
null
null
############################################################################## # # Copyright (c) 2003-2018 by The University of Queensland # http://www.uq.edu.au # # Primary Business: Queensland, Australia # Licensed under the Apache License, version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # # Development unti...
42.436364
91
0.552271
214293b7d59d020db718ace5e860bec2e33ea105
25,519
py
Python
netbox/ipam/models.py
tarkatronic/netbox
a52a871a94383a1b13b2341a296189ca119322a8
[ "Apache-2.0" ]
1
2021-03-02T00:34:47.000Z
2021-03-02T00:34:47.000Z
netbox/ipam/models.py
tarkatronic/netbox
a52a871a94383a1b13b2341a296189ca119322a8
[ "Apache-2.0" ]
null
null
null
netbox/ipam/models.py
tarkatronic/netbox
a52a871a94383a1b13b2341a296189ca119322a8
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals import netaddr from django.conf import settings from django.contrib.contenttypes.fields import GenericRelation from django.core.exceptions import ValidationError from django.core.validators import MaxValueValidator, MinValueValidator from django.db import models from django.db.m...
41.426948
120
0.641679
2142b1ec1dbb9e81730666ce51a71c390f2c8020
1,536
py
Python
experiments/2014-11-10-gefcom-revisited.py
jaesikchoi/gpss-research
2a64958a018f1668f7b8eedf33c4076a63af7868
[ "MIT" ]
151
2015-01-09T19:25:05.000Z
2022-01-05T02:05:52.000Z
experiments/2014-11-10-gefcom-revisited.py
jaesikchoi/gpss-research
2a64958a018f1668f7b8eedf33c4076a63af7868
[ "MIT" ]
1
2016-08-04T13:12:51.000Z
2016-08-04T13:12:51.000Z
experiments/2014-11-10-gefcom-revisited.py
jaesikchoi/gpss-research
2a64958a018f1668f7b8eedf33c4076a63af7868
[ "MIT" ]
59
2015-02-04T19:13:58.000Z
2021-07-28T23:36:09.000Z
Experiment(description='Re-analysis of GEFCOM data for purposes of thesis', data_dir='../data/gefcom_temp', max_depth=10, random_order=True, k=1, debug=False, local_computation=False, n_rand=9, sd=2, jitter_sd=0.1, ...
40.421053
98
0.464193
2142d62778e2b49c527baffcb22e77356325769b
22,725
py
Python
clif/python/clif_types.py
timgates42/clif
b865c88beff70b31068889926d1184d5ddc0b9eb
[ "Apache-2.0" ]
null
null
null
clif/python/clif_types.py
timgates42/clif
b865c88beff70b31068889926d1184d5ddc0b9eb
[ "Apache-2.0" ]
null
null
null
clif/python/clif_types.py
timgates42/clif
b865c88beff70b31068889926d1184d5ddc0b9eb
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
39.384749
91
0.598988
2142d6ac33f13f1e35e3f945364dc5d6a1069d03
2,334
py
Python
toontown/fishing/FishTank.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/fishing/FishTank.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/fishing/FishTank.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
from toontown.fishing import FishBase from toontown.fishing import FishGlobals class FishTank: def __init__(self): self.fishList = [] def __len__(self): return len(self.fishList) def getFish(self): return self.fishList def makeFromNetLists(self, genusList, speciesList, weigh...
28.120482
104
0.581405
21430c992af7f93728dc0c719dd4196f50c7a58f
5,298
py
Python
program_synthesis/naps/uast/uast_watcher.py
kavigupta/program_synthesis
0b04b1d3b63954ba3d404a8d96c4da18667a1b02
[ "Apache-2.0" ]
123
2018-06-09T00:49:39.000Z
2022-03-09T05:41:20.000Z
program_synthesis/naps/uast/uast_watcher.py
kavigupta/program_synthesis
0b04b1d3b63954ba3d404a8d96c4da18667a1b02
[ "Apache-2.0" ]
9
2018-06-12T01:01:17.000Z
2022-03-18T09:06:39.000Z
program_synthesis/naps/uast/uast_watcher.py
kavigupta/program_synthesis
0b04b1d3b63954ba3d404a8d96c4da18667a1b02
[ "Apache-2.0" ]
24
2018-06-09T00:42:46.000Z
2021-09-29T08:23:32.000Z
# Watcher is a way to monitor Executor activity # Example cases: # - collect execution traces # - collect information about data flowing through statements to later find blocks # with the same behaviour across different solutions to the same problem # # The current set of events is tailored towards the use cases a...
34.180645
122
0.676482
21431b79bec5abebedd275fa692e1aad842cb031
9,536
py
Python
sunpy/net/dataretriever/sources/goes.py
Raahul-Singh/sunpy
30eb6bd625cd308f573f2e77aa9bfe5d6b251ee0
[ "BSD-2-Clause" ]
2
2020-01-03T16:39:28.000Z
2020-04-24T15:12:08.000Z
sunpy/net/dataretriever/sources/goes.py
Raahul-Singh/sunpy
30eb6bd625cd308f573f2e77aa9bfe5d6b251ee0
[ "BSD-2-Clause" ]
1
2020-05-11T13:38:56.000Z
2020-05-11T13:38:56.000Z
sunpy/net/dataretriever/sources/goes.py
Raahul-Singh/sunpy
30eb6bd625cd308f573f2e77aa9bfe5d6b251ee0
[ "BSD-2-Clause" ]
null
null
null
# Author: Rishabh Sharma <rishabh.sharma.gunner@gmail.com> # This module was developed under funding provided by # Google Summer of Code 2014 from datetime import datetime from collections import OrderedDict import astropy.units as u from sunpy import config from sunpy.net import attrs as a from sunpy.net.dataretrie...
46.975369
123
0.592072
214336cb6ab6faab7589b039e6b1e97f6a1b276c
492
py
Python
pyclopedia/p03_stdlib/_datapersistance/sqlite3/cursor_description.py
MacHu-GWU/pyclopedia-project
c6ee156eb40bc5a4ac5f51aa735b6fd004cb68ee
[ "MIT" ]
null
null
null
pyclopedia/p03_stdlib/_datapersistance/sqlite3/cursor_description.py
MacHu-GWU/pyclopedia-project
c6ee156eb40bc5a4ac5f51aa735b6fd004cb68ee
[ "MIT" ]
null
null
null
pyclopedia/p03_stdlib/_datapersistance/sqlite3/cursor_description.py
MacHu-GWU/pyclopedia-project
c6ee156eb40bc5a4ac5f51aa735b6fd004cb68ee
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ ``cursor.description`` 是出于DB API 2.0的兼容性目的所创造的属性。 ref: https://docs.python.org/2/library/sqlite3.html#sqlite3.Cursor.description """ from __future__ import print_function import sqlite3 connect = sqlite3.connect(":memory:") cursor = connect.cursor() # Create Table...
22.363636
78
0.713415
2143499045b8f69e4ee7c6d03dadfbf333df308b
1,485
py
Python
hyperbox/utils/metrics.py
marsggbo/hyperbox
91dcd04ad30164bcb12209d818df18961fa3f347
[ "MIT" ]
1
2022-01-17T00:34:14.000Z
2022-01-17T00:34:14.000Z
hyperbox/utils/metrics.py
marsggbo/hyperbox
91dcd04ad30164bcb12209d818df18961fa3f347
[ "MIT" ]
null
null
null
hyperbox/utils/metrics.py
marsggbo/hyperbox
91dcd04ad30164bcb12209d818df18961fa3f347
[ "MIT" ]
null
null
null
import torch import scipy.stats as stats class Accuracy: def __call__(self, output, target, topk=(1,)): return accuracy(output, target, topk) def accuracy(output, target, topk=(1,)): """ Computes the precision@k for the specified values of k """ maxk = max(topk) batch_size = target...
30.306122
73
0.600673
2143527017331fcb597e79a84ab6d5ef69c0da63
2,076
py
Python
src/kol/database/SkillDatabase.py
thedufer/pykol
bad8ff4bf2f4bc6a7a5b6dbbd9333ef5aaf3432a
[ "BSD-3-Clause" ]
1
2016-05-08T12:10:32.000Z
2016-05-08T12:10:32.000Z
src/kol/database/SkillDatabase.py
ZJ/pykol
c0523a4a4d09bcdf16f8c86c78da96914e961076
[ "BSD-3-Clause" ]
null
null
null
src/kol/database/SkillDatabase.py
ZJ/pykol
c0523a4a4d09bcdf16f8c86c78da96914e961076
[ "BSD-3-Clause" ]
null
null
null
"This module is used as a database for KoL skill information." from kol.Error import SkillNotFoundError from kol.data import Skills from kol.manager import FilterManager from kol.util import Report __isInitialized = False __skillsById = {} __skillsByName = {} def init(): """ Initializes the SkillDatabase. This met...
28.833333
102
0.755299
2143530ba71f256a88b12933a98b69d9b048df58
417
py
Python
openstack/test_mapper.py
lyqgenius/python_example_wsgi
f7f5bfe47b64ef6e9e7ad823f568327f295f9b79
[ "Apache-2.0" ]
null
null
null
openstack/test_mapper.py
lyqgenius/python_example_wsgi
f7f5bfe47b64ef6e9e7ad823f568327f295f9b79
[ "Apache-2.0" ]
null
null
null
openstack/test_mapper.py
lyqgenius/python_example_wsgi
f7f5bfe47b64ef6e9e7ad823f568327f295f9b79
[ "Apache-2.0" ]
null
null
null
from routes import Mapper def test_name(): map = Mapper() map.connect(None, "/message/:name", controller='my_contro') result = map.match('/message/12') print result def test_action(): map = Mapper() map.connect(None, "error/{action}/{id}", controller="controller_obj") result = map.match(...
19.857143
73
0.645084
214372a45ef95d766019b75540f074de04acfc87
354
py
Python
tests/testcli_0.py
gruiick/pySpaceTrader
64de4de5fc57ef22e891d95a21d62f35f5ccb025
[ "BSD-2-Clause" ]
1
2020-04-08T08:00:08.000Z
2020-04-08T08:00:08.000Z
tests/testcli_0.py
gruiick/pySpaceTrader
64de4de5fc57ef22e891d95a21d62f35f5ccb025
[ "BSD-2-Clause" ]
5
2021-05-28T13:02:55.000Z
2021-06-25T10:44:17.000Z
tests/testcli_0.py
gruiick/pySpaceTrader
64de4de5fc57ef22e891d95a21d62f35f5ccb025
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 # coding: utf-8 # # $Id: testcli_0.py 1303 $ # SPDX-License-Identifier: BSD-2-Clause """ some tests """ import collections from pprint import pprint import constants goods = constants.GOODS print(list(enumerate(goods.keys()))) print(list(goods.keys())) print(len(list(goods.keys()))) print(co...
15.391304
40
0.717514
21439a803adbb7ebd320ff774175f48161e0fc69
2,779
py
Python
salt/states/aws_sqs.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
2
2017-09-17T21:10:35.000Z
2019-08-26T03:00:12.000Z
salt/states/aws_sqs.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
null
null
null
salt/states/aws_sqs.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
3
2021-02-23T08:12:48.000Z
2021-02-23T08:13:13.000Z
# -*- coding: utf-8 -*- ''' Manage SQS Queues ================= Create and destroy SQS queues. Be aware that this interacts with Amazon's services, and so may incur charges. This module uses the awscli tool provided by Amazon. This can be downloaded from pip. Also check the documentation for awscli for configuration ...
24.59292
77
0.563152
2143b2577946112ed3d785161065b7c14ed5203e
4,729
py
Python
tools/plotting/bar_chart.py
tdans1/Use-Galaxy
e9f05cb1b11db20a729ac73520f886ee619c6b90
[ "CC-BY-3.0" ]
4
2018-10-29T18:34:38.000Z
2021-09-29T23:30:42.000Z
tools/plotting/bar_chart.py
tdans1/Use-Galaxy
e9f05cb1b11db20a729ac73520f886ee619c6b90
[ "CC-BY-3.0" ]
1
2019-02-04T16:21:27.000Z
2019-02-04T16:45:17.000Z
tools/plotting/bar_chart.py
chambm/galaxy
fd1926767996a161cd2fc8bd184e6835fd688765
[ "CC-BY-3.0" ]
3
2020-02-12T15:22:24.000Z
2021-08-19T10:27:39.000Z
#!/usr/bin/env python """ histogram_gnuplot.py <datafile> <xtic column> <column_list> <title> <ylabel> <yrange_min> <yrange_max> <grath_file> a generic histogram builder based on gnuplot backend data_file - tab delimited file with data xtic_column - column containing labels for x ticks [integer, 0 means no t...
33.539007
208
0.578346
2143d0b5b1082f6f7fe1a92e2c9be69f344b1897
3,148
py
Python
Evolutive_Strategies/EE-(1+1)/graphical_representation.py
MGijon/Posts
53f382516970b95156895966a683a56d883054a6
[ "MIT" ]
null
null
null
Evolutive_Strategies/EE-(1+1)/graphical_representation.py
MGijon/Posts
53f382516970b95156895966a683a56d883054a6
[ "MIT" ]
null
null
null
Evolutive_Strategies/EE-(1+1)/graphical_representation.py
MGijon/Posts
53f382516970b95156895966a683a56d883054a6
[ "MIT" ]
null
null
null
"""Graphical representation of the test functions.""" import numpy as np import matplotlib.pyplot as plt # For graphics from test_functions import function_sphere, function_ackley, function_himmelblau, function_rastrigin sphere_a, sphere_b = -5.12, 5.12 # limits for the plot in the case of the sphere fun...
44.338028
116
0.695997
214405b85f0d1d261aba1d8d86b2d4a3ab9f9d09
194
py
Python
extension/arap/cuda/setup.py
sanjeevmk/GLASS
91c0954eab87d25d4866fea5c338f79fbca4f79e
[ "MIT" ]
2
2022-03-22T17:36:14.000Z
2022-03-27T05:03:39.000Z
extension/arap/cuda/setup.py
sanjeevmk/glass
91c0954eab87d25d4866fea5c338f79fbca4f79e
[ "MIT" ]
null
null
null
extension/arap/cuda/setup.py
sanjeevmk/glass
91c0954eab87d25d4866fea5c338f79fbca4f79e
[ "MIT" ]
null
null
null
from torch.utils.cpp_extension import load arap_cuda= load(name="arap_cuda", sources=["arap_cuda.cpp", "arap_cuda_kernel.cu"],build_directory='./lib/',verbose=True)
38.8
80
0.664948
21443c9a070645e13e10dde483d08bf1376647c5
70
py
Python
config.py
hgrsd/convergence
040e548d6cfe679a31d64dab2ec38552871597c7
[ "MIT" ]
null
null
null
config.py
hgrsd/convergence
040e548d6cfe679a31d64dab2ec38552871597c7
[ "MIT" ]
8
2019-07-31T11:42:00.000Z
2022-02-10T18:47:41.000Z
config.py
hgrsd/convergence
040e548d6cfe679a31d64dab2ec38552871597c7
[ "MIT" ]
2
2019-07-31T11:29:08.000Z
2019-07-31T11:39:48.000Z
SQLALCHEMY_TRACK_MODIFICATIONS = False JWT_TOKEN_LOCATION = "cookies"
23.333333
38
0.857143
21447688f94687ce03b8656d69a829fb4175a233
3,258
py
Python
microbenthos/exporters/exporter.py
achennu/microbenthos
c83fb60d05b5614546466601e973721640e685d4
[ "MIT" ]
3
2018-04-23T13:51:36.000Z
2021-08-05T01:53:51.000Z
microbenthos/exporters/exporter.py
achennu/microbenthos
c83fb60d05b5614546466601e973721640e685d4
[ "MIT" ]
5
2018-04-09T20:08:40.000Z
2018-05-04T23:08:50.000Z
microbenthos/exporters/exporter.py
achennu/microbenthos
c83fb60d05b5614546466601e973721640e685d4
[ "MIT" ]
2
2018-04-09T20:11:50.000Z
2021-08-06T03:34:06.000Z
""" Base class definition for exporters """ import abc import logging class BaseExporter(object, metaclass=abc.ABCMeta): """ An abstract base class to define the interface for model state exporters to be used by the classes defined in :mod:`~microbenthos.runners`. """ _exports_ = '' __version...
26.064
98
0.569982
21449646a50f99a542c5ab0b78c7bb3839cf2506
8,510
py
Python
src/onecontainer_cloud_tool/cloud/gcp.py
intel/oneContainer-Cloud-Tool
843fd4f6aa2e168ac7a7b544e05b92a7495e1121
[ "BSD-3-Clause" ]
null
null
null
src/onecontainer_cloud_tool/cloud/gcp.py
intel/oneContainer-Cloud-Tool
843fd4f6aa2e168ac7a7b544e05b92a7495e1121
[ "BSD-3-Clause" ]
null
null
null
src/onecontainer_cloud_tool/cloud/gcp.py
intel/oneContainer-Cloud-Tool
843fd4f6aa2e168ac7a7b544e05b92a7495e1121
[ "BSD-3-Clause" ]
3
2021-01-04T10:29:16.000Z
2022-02-19T00:07:15.000Z
import configparser import sys import time from pathlib import Path import googleapiclient.discovery from google.oauth2 import service_account from progress.spinner import MoonSpinner from onecontainer_cloud_tool import config, utils from onecontainer_cloud_tool.cloud.abstract_cloud import Cloud from onecontainer_clo...
36.681034
92
0.544183
2144aa0b3ff3208b129542a1461c2b2525dffdf5
5,761
py
Python
model/token_representation.py
Yufang-Liu/category-generator
b994eb256bea383d15f5f61f571b5ec9448ab1f4
[ "Apache-2.0" ]
2
2021-01-08T07:19:10.000Z
2021-12-18T23:10:55.000Z
model/token_representation.py
Yufang-Liu/category-generator
b994eb256bea383d15f5f61f571b5ec9448ab1f4
[ "Apache-2.0" ]
null
null
null
model/token_representation.py
Yufang-Liu/category-generator
b994eb256bea383d15f5f61f571b5ec9448ab1f4
[ "Apache-2.0" ]
null
null
null
# -- coding: utf-8 -- from typing import Dict, TypeVar, List import numpy as np import random np.random.seed(666) random.seed(666) import _dynet as dy from itertools import chain Indices = TypeVar("Indices", List[int], List[List[int]]) class TokenRepresentation(object): ''' n_word:int,单词的数目 word_dim:int,单...
41.446043
105
0.592258
2144c01bd4ae9297d8fa0b6dd03fd1554acda492
59
py
Python
pylrc/__init__.py
SplitGemini/pylrc
b0da5234b7483654c2f215d393f608f5e8db9893
[ "MIT" ]
null
null
null
pylrc/__init__.py
SplitGemini/pylrc
b0da5234b7483654c2f215d393f608f5e8db9893
[ "MIT" ]
null
null
null
pylrc/__init__.py
SplitGemini/pylrc
b0da5234b7483654c2f215d393f608f5e8db9893
[ "MIT" ]
null
null
null
from .parser import parse from .utilities import convert
19.666667
31
0.79661
2144c7859dc852b4e38344cb6c68c6e0623a5d60
2,693
py
Python
pysystemfan/status_server.py
bluecube/pysystemfan
d9c3bb96060dfc0658a8ae5ed341b33649623472
[ "MIT" ]
1
2017-07-12T01:46:25.000Z
2017-07-12T01:46:25.000Z
pysystemfan/status_server.py
bluecube/pysystemfan
d9c3bb96060dfc0658a8ae5ed341b33649623472
[ "MIT" ]
5
2015-09-29T12:01:57.000Z
2016-08-29T07:01:20.000Z
pysystemfan/status_server.py
bluecube/pysystemfan
d9c3bb96060dfc0658a8ae5ed341b33649623472
[ "MIT" ]
null
null
null
from . import config_params from . import util import http.server import threading import json import logging logger = logging.getLogger(__name__) _not_set = object() class StatusServer(config_params.Configurable): _params = [ ("port", _not_set, "Port where to serve the status page. Default is to not ru...
33.246914
99
0.574452
2144d49914a9034f850a5ec84a5f41e345284bf4
248
py
Python
env/Lib/site-packages/pisense/fcntl.py
Nitinsd96/Air-Pollution-Monitoring-System
4870223ce7b40b4ea465620a4c3d39cf617c6eff
[ "MIT" ]
41
2018-11-22T07:11:21.000Z
2021-06-24T09:29:33.000Z
env/Lib/site-packages/pisense/fcntl.py
Nitinsd96/Air-Pollution-Monitoring-System
4870223ce7b40b4ea465620a4c3d39cf617c6eff
[ "MIT" ]
9
2020-01-05T14:21:38.000Z
2021-09-09T06:20:02.000Z
env/Lib/site-packages/pisense/fcntl.py
Nitinsd96/Air-Pollution-Monitoring-System
4870223ce7b40b4ea465620a4c3d39cf617c6eff
[ "MIT" ]
18
2018-12-17T08:10:43.000Z
2021-08-20T08:13:52.000Z
def fcntl(fd, op, arg=0): return 0 def ioctl(fd, op, arg=0, mutable_flag=True): if mutable_flag: return 0 else: return "" def flock(fd, op): return def lockf(fd, operation, length=0, start=0, whence=0): return
17.714286
54
0.600806
2144f0772a1fe485c265c81907a8e64c7bd0b9f0
2,365
py
Python
resnet_exper/resnet_PCA.py
KellyHwong/semi-conductor-image-classification-first
2c718e26f66bfe169562c70bbc41872a9621d436
[ "MIT" ]
1
2021-03-31T10:24:01.000Z
2021-03-31T10:24:01.000Z
resnet_exper/resnet_PCA.py
AI-Huang/semi-conductor-image-classification-first
2c718e26f66bfe169562c70bbc41872a9621d436
[ "MIT" ]
2
2020-11-13T18:41:41.000Z
2021-01-28T10:55:38.000Z
resnet_exper/resnet_PCA.py
KellyHwong/semi-conductor-image-classification-first
2c718e26f66bfe169562c70bbc41872a9621d436
[ "MIT" ]
1
2020-12-27T15:10:58.000Z
2020-12-27T15:10:58.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # @Date : Mar-16-20 20:10 # @Author : Your Name (you@example.org) # @Link : http://example.org import os import json import numpy as np from sklearn.decomposition import IncrementalPCA from sklearn.decomposition import PCA def calc_PCA(): with o...
35.833333
79
0.668076
21450d84cd751385f2e78bc5746cfcc8f69553dd
10,750
py
Python
sessions/tencent_voice.py
lizard1998myx/MultiBot
314e15122ed8cd99e231b5d9bfbd853f1b0b2272
[ "Apache-2.0" ]
3
2021-08-04T08:51:28.000Z
2022-01-13T01:48:10.000Z
sessions/tencent_voice.py
lizard1998myx/MultiBot
314e15122ed8cd99e231b5d9bfbd853f1b0b2272
[ "Apache-2.0" ]
null
null
null
sessions/tencent_voice.py
lizard1998myx/MultiBot
314e15122ed8cd99e231b5d9bfbd853f1b0b2272
[ "Apache-2.0" ]
2
2021-08-04T08:52:15.000Z
2022-01-12T14:20:25.000Z
import requests, hmac, hashlib, base64, time, random, os, json, shutil from ..api_tokens import TCT_APPID, TCT_SECRET_ID, TCT_SECRET_KEY from .argument import Argument, ArgSession from .general import Session from ..responses import ResponseMsg import ffmpy3 # 核心代码来自:https://github.com/TencentCloud/tencentcloud...
32.77439
118
0.606977
2145289fdc7cb7e26ade41a75ff312615ec1a999
440
py
Python
standalone/urls.py
gcrahay/fir_irma_plugin
a41718fd9ccc7fb9488044755a7c55c97f462b07
[ "Apache-2.0" ]
null
null
null
standalone/urls.py
gcrahay/fir_irma_plugin
a41718fd9ccc7fb9488044755a7c55c97f462b07
[ "Apache-2.0" ]
2
2015-06-06T07:14:11.000Z
2015-06-06T07:48:54.000Z
standalone/urls.py
gcrahay/fir_irma_plugin
a41718fd9ccc7fb9488044755a7c55c97f462b07
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import include, url from django.contrib import admin urlpatterns = [ url(r'^', include('fir_irma.urls', namespace='irma')), url(r'^login/$', 'django.contrib.auth.views.login', {'template_name': 'fir_irma/standalone/login.html'}), url(r'^logout/$', 'django.contrib.auth.views.logout', {...
40
109
0.663636