hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
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
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
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
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
79664f8474883da29641c8470ca6b46ea1ab5dc6
26,314
py
Python
sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2015_05_01/operations/_favorites_operations.py
dubiety/azure-sdk-for-python
62ffa839f5d753594cf0fe63668f454a9d87a346
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2015_05_01/operations/_favorites_operations.py
ellhe-blaster/azure-sdk-for-python
82193ba5e81cc5e5e5a5239bba58abe62e86f469
[ "MIT" ]
null
null
null
sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2015_05_01/operations/_favorites_operations.py
ellhe-blaster/azure-sdk-for-python
82193ba5e81cc5e5e5a5239bba58abe62e86f469
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # 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) AutoRe...
43.494215
218
0.686175
79664fc0cad716da7fc2f9bb16f16dd73f72d43e
24
py
Python
pyinsar/processing/isce/__init__.py
MITeaps/pyinsar
4d22e3ef90ef842d6b390074a8b5deedc7658a2b
[ "MIT" ]
8
2019-03-15T19:51:27.000Z
2022-02-16T07:27:36.000Z
pyinsar/processing/isce/__init__.py
MITeaps/pyinsar
4d22e3ef90ef842d6b390074a8b5deedc7658a2b
[ "MIT" ]
1
2022-02-08T03:48:56.000Z
2022-02-09T01:33:27.000Z
pyinsar/processing/isce/__init__.py
MITeaps/pyinsar
4d22e3ef90ef842d6b390074a8b5deedc7658a2b
[ "MIT" ]
2
2021-01-12T05:32:21.000Z
2021-01-13T08:35:26.000Z
__all__ = ["input_file"]
24
24
0.708333
79664fe4b12fb99ac4b6bd8853401f1bd80ccfb7
5,029
py
Python
python/paddle/fluid/tests/unittests/test_retain_graph.py
zmxdream/Paddle
04f042a5d507ad98f7f2cfc3cbc44b06d7a7f45c
[ "Apache-2.0" ]
17,085
2016-11-18T06:40:52.000Z
2022-03-31T22:52:32.000Z
python/paddle/fluid/tests/unittests/test_retain_graph.py
zmxdream/Paddle
04f042a5d507ad98f7f2cfc3cbc44b06d7a7f45c
[ "Apache-2.0" ]
29,769
2016-11-18T06:35:22.000Z
2022-03-31T16:46:15.000Z
python/paddle/fluid/tests/unittests/test_retain_graph.py
zmxdream/Paddle
04f042a5d507ad98f7f2cfc3cbc44b06d7a7f45c
[ "Apache-2.0" ]
4,641
2016-11-18T07:43:33.000Z
2022-03-31T15:15:02.000Z
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
34.923611
80
0.568304
79665098b67e74585be1143e77c3cefe1950934a
10,699
py
Python
alipay/aop/api/domain/AlipayOpenMiniInnerbaseinfoCreateModel.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/domain/AlipayOpenMiniInnerbaseinfoCreateModel.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/domain/AlipayOpenMiniInnerbaseinfoCreateModel.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.constant.ParamConstants import * class AlipayOpenMiniInnerbaseinfoCreateModel(object): def __init__(self): self._app_alias_name = None self._app_category_ids = None self._app_desc = None self._app_engli...
32.819018
85
0.596785
796650c4a57ab195f7944efb90d1bc4c49e4887c
467
py
Python
malepierre/characters/migrations/0003_career_code.py
EliotBerriot/malepierre
34a11beae528242c062fcc308c2d98c28fa61fd1
[ "BSD-3-Clause" ]
null
null
null
malepierre/characters/migrations/0003_career_code.py
EliotBerriot/malepierre
34a11beae528242c062fcc308c2d98c28fa61fd1
[ "BSD-3-Clause" ]
null
null
null
malepierre/characters/migrations/0003_career_code.py
EliotBerriot/malepierre
34a11beae528242c062fcc308c2d98c28fa61fd1
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('characters', '0002_auto_20150823_1629'), ] operations = [ migrations.AddField( model_name='career', ...
22.238095
80
0.610278
7966513d9665ebf284bdebbabd8027ee21f11667
41,502
py
Python
Materials/TransferMatrixMedia/Calculator.py
asmcleod/NearFieldOptics
f896474eaabbc655939263afa25e990bea8078ba
[ "MIT" ]
2
2017-07-14T16:13:13.000Z
2020-05-06T20:12:33.000Z
Materials/TransferMatrixMedia/Calculator.py
asmcleod/NearFieldOptics
f896474eaabbc655939263afa25e990bea8078ba
[ "MIT" ]
1
2020-12-31T15:22:09.000Z
2020-12-31T15:22:09.000Z
Materials/TransferMatrixMedia/Calculator.py
asmcleod/NearFieldOptics
f896474eaabbc655939263afa25e990bea8078ba
[ "MIT" ]
null
null
null
''' Created on Apr 3, 2019 @author: Leo Lo ''' from NearFieldOptics.Materials.material_types import * from NearFieldOptics.Materials.TransferMatrixMedia import MatrixBuilder as mb import sympy import copy import numpy as np from common.baseclasses import ArrayWithAxes as AWA class Calculator(): """Calculator cla...
45.159956
232
0.586116
796652cd8d100eb32c6cfc86d60b01ca830e1806
14,253
py
Python
src_py/hat/drivers/cotp.py
PtahSeker/hat-drivers
d694b71538ccaf23fb145f09282f78be5c4c18c6
[ "Apache-2.0" ]
1
2022-02-01T13:42:51.000Z
2022-02-01T13:42:51.000Z
src_py/hat/drivers/cotp.py
PtahSeker/hat-drivers
d694b71538ccaf23fb145f09282f78be5c4c18c6
[ "Apache-2.0" ]
null
null
null
src_py/hat/drivers/cotp.py
PtahSeker/hat-drivers
d694b71538ccaf23fb145f09282f78be5c4c18c6
[ "Apache-2.0" ]
3
2021-09-10T12:22:02.000Z
2022-02-18T12:55:44.000Z
"""Connection oriented transport protocol""" import enum import logging import math import typing from hat import aio from hat.drivers import tpkt mlog: logging.Logger = logging.getLogger(__name__) """Module logger""" Address = tpkt.Address """Address""" class ConnectionInfo(typing.NamedTuple): local_addr: A...
30.325532
77
0.608995
7966533a840556c4b5b7b1257178fd04f39afb1e
61,532
py
Python
src/qnet_qsd/__init__.py
mabuchilab/qnet_qsd
231c078347935aa4a1ce123f3ad2733ac72f3a20
[ "MIT" ]
1
2020-02-13T02:35:40.000Z
2020-02-13T02:35:40.000Z
src/qnet_qsd/__init__.py
mabuchilab/qnet_qsd
231c078347935aa4a1ce123f3ad2733ac72f3a20
[ "MIT" ]
1
2018-03-31T20:14:32.000Z
2018-03-31T20:14:32.000Z
src/qnet_qsd/__init__.py
mabuchilab/qnet_qsd
231c078347935aa4a1ce123f3ad2733ac72f3a20
[ "MIT" ]
null
null
null
"""Top-level package for QNET-QSD.""" __version__ = '0.1.0' import re import random import os import logging import struct import shlex from textwrap import dedent from collections import OrderedDict from functools import partial import subprocess as sp from qnet.algebra.scalar_types import SCALAR_TYPES from qnet.al...
42.789986
79
0.587288
7966538c1ab04baa5db2537388fd7d15a84f04e5
1,668
py
Python
car_analysis.py
AndrewEToh/spis16-lab10-Andrew-Anthony
71de9f37bce34f884d07ad2762e14541ec9e9304
[ "MIT" ]
null
null
null
car_analysis.py
AndrewEToh/spis16-lab10-Andrew-Anthony
71de9f37bce34f884d07ad2762e14541ec9e9304
[ "MIT" ]
null
null
null
car_analysis.py
AndrewEToh/spis16-lab10-Andrew-Anthony
71de9f37bce34f884d07ad2762e14541ec9e9304
[ "MIT" ]
null
null
null
# import car data from https://think.cs.vt.edu/corgis/ import cars cardata = cars.get_cars() def yearOfCar(car): return car['Identification']['Year'] def horsepower(cardata): hp_list = [] for i in range(len(cardata)): hp_list.append(cardata[i]['Engine Information']['Engine Statistics']['Horsepow...
21.662338
91
0.684652
7966543da7c6a5e626274b076cb315b2cfc32048
8,011
py
Python
gibson2/utils/map_utils.py
i-m-vivek/iGibson
c9009a3da4bfe05e8a3c058d83e0a5d3be0cd648
[ "MIT" ]
3
2021-02-07T14:00:38.000Z
2021-07-03T19:40:59.000Z
gibson2/utils/map_utils.py
i-m-vivek/iGibson
c9009a3da4bfe05e8a3c058d83e0a5d3be0cd648
[ "MIT" ]
null
null
null
gibson2/utils/map_utils.py
i-m-vivek/iGibson
c9009a3da4bfe05e8a3c058d83e0a5d3be0cd648
[ "MIT" ]
2
2021-04-01T12:14:59.000Z
2021-06-18T13:04:39.000Z
import os import numpy as np from tqdm import tqdm import cv2 from PIL import Image import sys from scipy.spatial import ConvexHull def get_xy_floors(vertices, faces, dist_threshold=-0.98): z_faces = [] z = np.array([0, 0, 1]) faces_selected = [] for face in tqdm(faces): normal = np.cross( ...
37.260465
120
0.597553
79665512c5c9a7fc1c233abec3152500ecf38eb0
2,393
py
Python
click_command_interpret.py
yugrocks/Browser-Assistant
1da8ae48d15b8a71ea985dadff7d2c67900b0a17
[ "MIT" ]
3
2017-10-11T17:30:04.000Z
2018-01-26T16:20:53.000Z
click_command_interpret.py
yugrocks/Browser-Assistant
1da8ae48d15b8a71ea985dadff7d2c67900b0a17
[ "MIT" ]
1
2018-01-10T15:08:58.000Z
2021-08-09T05:09:16.000Z
click_command_interpret.py
yugrocks/Browser-Assistant
1da8ae48d15b8a71ea985dadff7d2c67900b0a17
[ "MIT" ]
3
2017-10-10T03:37:28.000Z
2019-06-28T07:36:26.000Z
import nltk from nltk import pos_tag, word_tokenize #verbs that are to be pos tagged as VB always in a sentence #to correct the error by nltk in pos tagging all_time_verbs = {'type':'', 'enter':"", 'input':"", 'start':"", 'write':"", 'fill':"",'change':"", 'switch':"", 'turn':"", ...
37.984127
123
0.629336
796655b5d6a16a0ddd5d44593b071a833a5fb5b0
761
py
Python
migrations/versions/44ed75766a60_app_config_in_db.py
yaelmi3/backslash
edf39caf97af2c926da01c340a83648f4874e97e
[ "BSD-3-Clause" ]
17
2015-11-25T13:02:38.000Z
2021-12-14T20:18:36.000Z
migrations/versions/44ed75766a60_app_config_in_db.py
yaelmi3/backslash
edf39caf97af2c926da01c340a83648f4874e97e
[ "BSD-3-Clause" ]
533
2015-11-24T12:47:13.000Z
2022-02-12T07:59:08.000Z
migrations/versions/44ed75766a60_app_config_in_db.py
parallelsystems/backslash
577cdd18d5f665a8b493c4b2e2a605b7e0f6e11b
[ "BSD-3-Clause" ]
15
2015-11-22T13:25:54.000Z
2022-02-16T19:23:11.000Z
"""App config in DB Revision ID: 44ed75766a60 Revises: 952293dcee6b Create Date: 2016-07-09 22:07:16.922290 """ # revision identifiers, used by Alembic. revision = '44ed75766a60' down_revision = '952293dcee6b' from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql def upgrade(): ...
24.548387
63
0.700394
796655fda649b0f47b9943ee529cfb86eb76b95b
7,268
py
Python
frappe/utils/response.py
TridotsTech/frappe
4bab1953b317f4fcef7210133ec6f4dc9b429899
[ "MIT" ]
null
null
null
frappe/utils/response.py
TridotsTech/frappe
4bab1953b317f4fcef7210133ec6f4dc9b429899
[ "MIT" ]
5
2020-03-24T18:15:00.000Z
2021-03-25T23:28:34.000Z
frappe/utils/response.py
aerele/frappe
7b15fc429a4ca4fb375df5b66896f4dd148536ea
[ "MIT" ]
2
2019-09-04T09:46:08.000Z
2020-11-06T21:52:16.000Z
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals import json import datetime import decimal import mimetypes import os import frappe from frappe import _ import frappe.model.document import frappe.utils import frappe.sessions im...
32.591928
141
0.743671
796657045e558955c9d364113355a28060f17824
4,853
py
Python
swagger_client/models/modification.py
jethro-swan/om-client-library
252576a39af49629f838652427279ecb64a6b636
[ "Apache-2.0" ]
null
null
null
swagger_client/models/modification.py
jethro-swan/om-client-library
252576a39af49629f838652427279ecb64a6b636
[ "Apache-2.0" ]
null
null
null
swagger_client/models/modification.py
jethro-swan/om-client-library
252576a39af49629f838652427279ecb64a6b636
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Openmoney API Openmoney API # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class Modification(object): """NOTE: This class is auto generated by the swagge...
27.890805
89
0.580672
796657cd4b0b7c1407dfed12d8a097777c89526d
17,012
py
Python
sympy/integrals/quadrature.py
utkarshdeorah/sympy
dcdf59bbc6b13ddbc329431adf72fcee294b6389
[ "BSD-3-Clause" ]
8,323
2015-01-02T15:51:43.000Z
2022-03-31T13:13:19.000Z
sympy/integrals/quadrature.py
utkarshdeorah/sympy
dcdf59bbc6b13ddbc329431adf72fcee294b6389
[ "BSD-3-Clause" ]
15,102
2015-01-01T01:33:17.000Z
2022-03-31T22:53:13.000Z
sympy/integrals/quadrature.py
utkarshdeorah/sympy
dcdf59bbc6b13ddbc329431adf72fcee294b6389
[ "BSD-3-Clause" ]
4,490
2015-01-01T17:48:07.000Z
2022-03-31T17:24:05.000Z
from sympy.core import S, Dummy, pi from sympy.functions.combinatorial.factorials import factorial from sympy.functions.elementary.trigonometric import sin, cos from sympy.functions.elementary.miscellaneous import sqrt from sympy.functions.special.gamma_functions import gamma from sympy.polys.orthopolys import (legendr...
27.527508
121
0.572126
79665856980ec949b4bd15fd4bf39ff24e638e36
3,191
py
Python
venv/lib/python2.7/site-packages/gunicorn/workers/gtornado.py
infomaven/wufoo_scoring
c316b2ae77c2be724a82725a57aa6f3b2b296e02
[ "Unlicense" ]
3
2018-03-06T16:00:45.000Z
2019-04-10T10:08:20.000Z
venv/lib/python2.7/site-packages/gunicorn/workers/gtornado.py
infomaven/wufoo_scoring
c316b2ae77c2be724a82725a57aa6f3b2b296e02
[ "Unlicense" ]
5
2020-03-24T15:33:06.000Z
2021-02-02T21:42:36.000Z
venv/lib/python2.7/site-packages/gunicorn/workers/gtornado.py
infomaven/wufoo_scoring
c316b2ae77c2be724a82725a57aa6f3b2b296e02
[ "Unlicense" ]
1
2021-04-16T11:10:59.000Z
2021-04-16T11:10:59.000Z
# -*- coding: utf-8 - # # This file is part of gunicorn released under the MIT license. # See the NOTICE for more information. import os import sys try: import tornado.web except ImportError: raise RuntimeError("You need tornado installed to use this worker.") import tornado.httpserver from tornado.ioloop imp...
32.896907
76
0.631777
79665883d0c108f00ec6cb8903880390fc4287a2
927
py
Python
ooxx.py
tricle0/myTest
fb343260d22d6bf5a2e9efa426328a9d36a846cb
[ "Apache-2.0" ]
null
null
null
ooxx.py
tricle0/myTest
fb343260d22d6bf5a2e9efa426328a9d36a846cb
[ "Apache-2.0" ]
null
null
null
ooxx.py
tricle0/myTest
fb343260d22d6bf5a2e9efa426328a9d36a846cb
[ "Apache-2.0" ]
null
null
null
import urllib.request import os def get_page(url): req = urllib.request.Request(url) req.add_header('User-Agent', 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36') response = urllib.request.urlopen(req) html = response.r...
22.609756
131
0.615965
7966591cb102ab74785dad56e2152fb859f92bb4
619
py
Python
dd_app/tasks/celeryconfig_template.py
datadealer/dd_app
3806b9b9df165a49f0fca8a249170b4ccd4d0177
[ "Artistic-2.0" ]
2
2018-12-17T10:10:49.000Z
2018-12-17T11:18:32.000Z
dd_app/tasks/celeryconfig_template.py
datadealer/dd_app
3806b9b9df165a49f0fca8a249170b4ccd4d0177
[ "Artistic-2.0" ]
null
null
null
dd_app/tasks/celeryconfig_template.py
datadealer/dd_app
3806b9b9df165a49f0fca8a249170b4ccd4d0177
[ "Artistic-2.0" ]
1
2021-06-06T22:28:12.000Z
2021-06-06T22:28:12.000Z
# Backends BROKER_URL = 'redis://localhost:6379/3' CELERY_RESULT_BACKEND = 'redis://localhost:6379/3' # Transport options BROKER_TRANSPORT_OPTIONS = {'visibility_timeout': 86400} # Result expiration CELERY_TASK_RESULT_EXPIRES = 3600 # Timezome handling CELERY_TIMEZONE = 'Europe/Vienna' CELERY_ENABLE_UTC = True # Where...
28.136364
64
0.767367
79665a42d06a339682537ec5a1f59262147081d3
1,506
py
Python
practice/hashmap.py
haandol/dojo
c29dc54614bdfaf79eb4862ed9fa25974a0f5654
[ "MIT" ]
null
null
null
practice/hashmap.py
haandol/dojo
c29dc54614bdfaf79eb4862ed9fa25974a0f5654
[ "MIT" ]
null
null
null
practice/hashmap.py
haandol/dojo
c29dc54614bdfaf79eb4862ed9fa25974a0f5654
[ "MIT" ]
null
null
null
class HashMap: def __init__(self): self.size = 100 self.L = [None] * self.size def hash(self, val): return sum(map(ord, val)) % self.size def insert(self, key, val): i = self.hash(key) while self.L[i] and i < self.size: i += 1 if i == self.size: raise RuntimeError('runtime er...
21.514286
41
0.551793
79665aee4f04f3200ffe78660e6e28731ec57988
2,465
py
Python
rlkit/rlkit/data_management/replay_buffer.py
mihdalal/raps
4818769adc7496f60f819c875a9995950bd5ed19
[ "MIT" ]
36
2021-10-29T21:23:11.000Z
2022-03-30T15:38:13.000Z
rlkit/rlkit/data_management/replay_buffer.py
mihdalal/raps
4818769adc7496f60f819c875a9995950bd5ed19
[ "MIT" ]
null
null
null
rlkit/rlkit/data_management/replay_buffer.py
mihdalal/raps
4818769adc7496f60f819c875a9995950bd5ed19
[ "MIT" ]
4
2021-10-31T16:32:53.000Z
2022-02-11T11:09:03.000Z
import abc class ReplayBuffer(object, metaclass=abc.ABCMeta): """ A class used to save and replay data. """ @abc.abstractmethod def add_sample( self, observation, action, reward, next_observation, terminal, **kwargs ): """ Add a transition tuple. """ pa...
24.65
79
0.508316
79665d1792d102c9e9368a4bec8801662e5ddadd
1,805
py
Python
Extra/Old Versions/TT_v2 (Impala)/BinanceData.py
StephanAkkerman/TensorTrade
42e6c3d71ba1074ba1181f2315a2766a4e9d527f
[ "MIT" ]
15
2021-04-17T17:02:37.000Z
2022-03-14T21:47:02.000Z
Extra/Old Versions/TT_v2 (Impala)/BinanceData.py
StephanAkkerman/TensorTrade
42e6c3d71ba1074ba1181f2315a2766a4e9d527f
[ "MIT" ]
1
2021-05-29T12:07:42.000Z
2021-05-29T12:07:42.000Z
Extra/Old Versions/TT_v2 (Impala)/BinanceData.py
StephanAkkerman/TensorTrade
42e6c3d71ba1074ba1181f2315a2766a4e9d527f
[ "MIT" ]
13
2021-04-17T17:02:54.000Z
2022-03-19T03:49:50.000Z
import numpy as np import pandas as pd import math from datetime import datetime from binance.client import Client client = Client() def fetch4Hour(symbol, days): # https://python-binance.readthedocs.io/en/latest/binance.html#binance.client.Client.get_klines candleList = [] #symbol = 'BATUSDT' hrs = ...
27.769231
119
0.642659
79665e4dcd2ac8ce9ffd72c42753c7b12be03c94
55,429
py
Python
toolchain/riscv/MSYS/python/Lib/test/test_long.py
zhiqiang-hu/bl_iot_sdk
154ee677a8cc6a73e6a42a5ff12a8edc71e6d15d
[ "Apache-2.0" ]
207
2018-10-01T08:53:01.000Z
2022-03-14T12:15:54.000Z
toolchain/riscv/MSYS/python/Lib/test/test_long.py
zhiqiang-hu/bl_iot_sdk
154ee677a8cc6a73e6a42a5ff12a8edc71e6d15d
[ "Apache-2.0" ]
8
2019-06-29T14:18:51.000Z
2022-02-19T07:30:27.000Z
toolchain/riscv/MSYS/python/Lib/test/test_long.py
zhiqiang-hu/bl_iot_sdk
154ee677a8cc6a73e6a42a5ff12a8edc71e6d15d
[ "Apache-2.0" ]
53
2019-03-12T16:50:21.000Z
2022-03-15T23:16:18.000Z
import unittest from test import support import sys import random import math import array # SHIFT should match the value in longintrepr.h for best testing. SHIFT = sys.int_info.bits_per_digit BASE = 2 ** SHIFT MASK = BASE - 1 KARATSUBA_CUTOFF = 70 # from longobject.c # Max number of base BASE digi...
40.816642
91
0.508867
79665e6ff0cd5d2d94046f81a80275f62794acc1
1,805
py
Python
dax/assessor_utils.py
DecisionNeurosciencePsychopathology/dax
4ae68d07128bc61058797f4f09a3a112f351ce21
[ "MIT" ]
28
2015-05-31T22:01:54.000Z
2022-01-14T12:18:48.000Z
dax/assessor_utils.py
DecisionNeurosciencePsychopathology/dax
4ae68d07128bc61058797f4f09a3a112f351ce21
[ "MIT" ]
218
2015-01-14T15:09:58.000Z
2022-03-30T17:03:46.000Z
dax/assessor_utils.py
DecisionNeurosciencePsychopathology/dax
4ae68d07128bc61058797f4f09a3a112f351ce21
[ "MIT" ]
26
2015-01-08T15:48:15.000Z
2022-01-31T14:58:34.000Z
import pyxnat def __pyxnat_assessor_type(): return pyxnat.core.resources.Assessor def full_label(project_id, subject_id, session_id, assessor_label): return '-x-'.join([project_id, subject_id, session_id, assessor_label]) # TODO: BenM/assessor_of_assessor/behaviour contingent on assessor v...
31.666667
79
0.615512
79665e8ebe210afcd2f37b9188a62f8ba976d0a2
17,255
py
Python
hotswap/autoreload.py
frmdstryr/enaml-hotswap
a32e188db691d2437d52408aa8bac7d9951f48ea
[ "MIT" ]
null
null
null
hotswap/autoreload.py
frmdstryr/enaml-hotswap
a32e188db691d2437d52408aa8bac7d9951f48ea
[ "MIT" ]
null
null
null
hotswap/autoreload.py
frmdstryr/enaml-hotswap
a32e188db691d2437d52408aa8bac7d9951f48ea
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' Copyright (c) 2017, Jairus Martin. Distributed under the terms of the MIT License. The full license is in the file COPYING.txt, distributed with this software. Copied from https://github.com/ipython/ipython/blob/master/IPython/extensions/autoreload.py Created Sept 7, 2017 @author jrm '...
31.034173
91
0.602608
79665e9ca0403afb2c9cfeca968b52dad567938d
587
py
Python
src/program/migrations/0022_auto_20170218_1148.py
flokli/bornhack-website
9dd6b0b23c2e6b1fb2c5f03a8766d4aa96d4443d
[ "BSD-3-Clause" ]
7
2017-04-14T15:28:29.000Z
2021-09-10T09:45:38.000Z
src/program/migrations/0022_auto_20170218_1148.py
flokli/bornhack-website
9dd6b0b23c2e6b1fb2c5f03a8766d4aa96d4443d
[ "BSD-3-Clause" ]
799
2016-04-28T09:31:50.000Z
2022-03-29T09:05:02.000Z
src/program/migrations/0022_auto_20170218_1148.py
flokli/bornhack-website
9dd6b0b23c2e6b1fb2c5f03a8766d4aa96d4443d
[ "BSD-3-Clause" ]
35
2016-04-28T09:23:53.000Z
2021-05-02T12:36:01.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-02-18 10:48 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("program", "0021_auto_20170205_2130")] operations = [ migrations.RenameField( ...
26.681818
78
0.635434
79665f284fa8410101c8f7a0684f82b251182ecd
5,464
py
Python
to_html.py
ImportTaste/AIDScrapper
ff732e897b0e5e1a2bf4cd7a9a279624b777bced
[ "MIT" ]
5
2021-05-19T00:00:01.000Z
2022-01-08T21:53:55.000Z
to_html.py
ImportTaste/AIDScrapper
ff732e897b0e5e1a2bf4cd7a9a279624b777bced
[ "MIT" ]
5
2021-11-07T21:42:19.000Z
2022-03-30T17:59:40.000Z
to_html.py
ImportTaste/AIDScrapper
ff732e897b0e5e1a2bf4cd7a9a279624b777bced
[ "MIT" ]
2
2021-11-07T21:11:22.000Z
2022-01-17T16:43:00.000Z
import os import json from pathlib import Path from jinja2 import Environment, FileSystemLoader from aids.app.settings import BASE_DIR class toHtml: def __init__(self): self.env = Environment(loader=FileSystemLoader(BASE_DIR / 'templates')) self.out_path = Path().cwd() self....
39.309353
88
0.45388
79665f6ee6bf7fd5c67c720d59ef754a16f43804
1,735
py
Python
rallyrolebot/utils/ext.py
Echolon166/RallyRoleBot
9bc60c1c5c7ed602d0207dc20baba83dfa6016a9
[ "MIT" ]
1
2021-01-01T02:44:39.000Z
2021-01-01T02:44:39.000Z
rallyrolebot/utils/ext.py
Echolon166/RallyRoleBot
9bc60c1c5c7ed602d0207dc20baba83dfa6016a9
[ "MIT" ]
1
2020-11-21T00:08:06.000Z
2020-11-30T23:50:53.000Z
rallyrolebot/utils/ext.py
Echolon166/RallyRoleBot
9bc60c1c5c7ed602d0207dc20baba83dfa6016a9
[ "MIT" ]
4
2020-11-14T00:18:44.000Z
2021-01-04T23:17:02.000Z
from discord.ext import commands import functools import dataset import config def create_dm(cog_function): """ Decorator that creates a Direct Message (dm) and appends it to the current context. Must recieve a class function with a Context argument. Useful in discord.Cog calls """ ...
30.438596
92
0.643804
79666034d95555767932767b7584db149f2903a3
1,827
py
Python
stock-prediction/stockpredict.py
rubiagatra/stock-ticker-id
42213dd19b68f3541d501f3c7974029fa2e357fc
[ "MIT" ]
10
2018-02-22T12:01:03.000Z
2019-03-26T02:02:36.000Z
stock-prediction/stockpredict.py
rubiagatra/stock-ticker-id
42213dd19b68f3541d501f3c7974029fa2e357fc
[ "MIT" ]
null
null
null
stock-prediction/stockpredict.py
rubiagatra/stock-ticker-id
42213dd19b68f3541d501f3c7974029fa2e357fc
[ "MIT" ]
1
2018-02-21T17:05:47.000Z
2018-02-21T17:05:47.000Z
import numpy as np import pandas as pd import pandas_datareader.data as web import datetime from fbprophet import Prophet class StockPredict: def __init__(self): self.close = None self.forecast = None self.prediction = None self.end = None self.pred_df = None self.n...
30.966102
96
0.619595
7966607757297eec4b41b757e3e40f75a8937ced
6,533
py
Python
gapjump.py
skakanka/edu_web_scraper
12c4b9bba81b54c1be6d4d745889d992695b561b
[ "MIT", "PostgreSQL", "Unlicense" ]
null
null
null
gapjump.py
skakanka/edu_web_scraper
12c4b9bba81b54c1be6d4d745889d992695b561b
[ "MIT", "PostgreSQL", "Unlicense" ]
null
null
null
gapjump.py
skakanka/edu_web_scraper
12c4b9bba81b54c1be6d4d745889d992695b561b
[ "MIT", "PostgreSQL", "Unlicense" ]
null
null
null
import urllib2 from bs4 import BeautifulSoup import csv import re import json import mechanize import sys import profiles_db import degree_pie_chart # when running this python script, specify second argument as the csv data file # e.g. python gapjump.py test_profiles.csv csv_file = sys.argv[1] # count degrees for pie ...
34.566138
133
0.533752
7966607785bbd566a45a4bd9d1bf3879d2bbeb8f
1,002
py
Python
djangochat/chat/migrations/0001_initial.py
Lovekesh-GH/Chatapp
de72e9aa3c59d2ef2be3056cc195f37f98cd8330
[ "MIT" ]
null
null
null
djangochat/chat/migrations/0001_initial.py
Lovekesh-GH/Chatapp
de72e9aa3c59d2ef2be3056cc195f37f98cd8330
[ "MIT" ]
null
null
null
djangochat/chat/migrations/0001_initial.py
Lovekesh-GH/Chatapp
de72e9aa3c59d2ef2be3056cc195f37f98cd8330
[ "MIT" ]
1
2021-11-25T02:59:37.000Z
2021-11-25T02:59:37.000Z
# Generated by Django 3.0 on 2021-07-03 11:58 import datetime from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Message', fields=[ ('id', mod...
30.363636
114
0.567864
79666215275241e4fb3726de79640669c6e9c607
61,541
py
Python
d3m_ta2_nyu/alphad3m/d3mpipeline_builder.py
tonyjo/nyu-ta2
b7a7904a1e67d0eeebf82d5095f77df0e0401b1b
[ "Apache-2.0" ]
null
null
null
d3m_ta2_nyu/alphad3m/d3mpipeline_builder.py
tonyjo/nyu-ta2
b7a7904a1e67d0eeebf82d5095f77df0e0401b1b
[ "Apache-2.0" ]
null
null
null
d3m_ta2_nyu/alphad3m/d3mpipeline_builder.py
tonyjo/nyu-ta2
b7a7904a1e67d0eeebf82d5095f77df0e0401b1b
[ "Apache-2.0" ]
1
2021-11-22T16:33:47.000Z
2021-11-22T16:33:47.000Z
import logging import os import json import pickle import itertools from d3m_ta2_nyu.workflow import database from d3m import index from d3m.container import Dataset, DataFrame, ndarray, List from d3m_ta2_nyu.utils import is_collection, get_collection_type # Use a headless matplotlib backend os.environ['MPLBACKEND'] ...
51.977196
139
0.582603
79666219d170584b46ca5da2a7d2a2e51f740638
7,489
py
Python
ansys/dpf/core/operators/averaging/elemental_nodal_to_nodal_elemental_fc.py
jfthuong/pydpf-core
bf2895ebc546e0004f759289bfc9a23196559ac3
[ "MIT" ]
18
2021-10-16T10:38:29.000Z
2022-03-29T11:26:42.000Z
ansys/dpf/core/operators/averaging/elemental_nodal_to_nodal_elemental_fc.py
jfthuong/pydpf-core
bf2895ebc546e0004f759289bfc9a23196559ac3
[ "MIT" ]
79
2021-10-11T23:18:54.000Z
2022-03-29T14:53:14.000Z
ansys/dpf/core/operators/averaging/elemental_nodal_to_nodal_elemental_fc.py
jfthuong/pydpf-core
bf2895ebc546e0004f759289bfc9a23196559ac3
[ "MIT" ]
5
2021-11-29T18:35:37.000Z
2022-03-16T16:49:21.000Z
""" elemental_nodal_to_nodal_elemental_fc =============== Autogenerated DPF operator classes. """ from warnings import warn from ansys.dpf.core.dpf_operator import Operator from ansys.dpf.core.inputs import Input, _Inputs from ansys.dpf.core.outputs import Output, _Outputs from ansys.dpf.core.operators.specification im...
33.137168
90
0.628655
7966628f6f7fb3dee367749ac4c971719a3eea57
18,990
py
Python
wsgidav/lock_manager.py
sinshutu/wsgidav
ee199dc62659b6dfa62fcf7e2c51bd57acb5fb8a
[ "MIT" ]
547
2015-01-17T20:08:53.000Z
2022-03-22T12:45:27.000Z
wsgidav/lock_manager.py
sinshutu/wsgidav
ee199dc62659b6dfa62fcf7e2c51bd57acb5fb8a
[ "MIT" ]
212
2015-03-10T09:41:08.000Z
2022-03-24T01:22:16.000Z
wsgidav/lock_manager.py
mikespub-org/mar10-wsgidav
2d467eaa50edd084df2de8470b5203887b79fe3e
[ "MIT" ]
130
2015-03-18T12:56:46.000Z
2022-03-17T10:28:22.000Z
# -*- coding: utf-8 -*- # (c) 2009-2021 Martin Wendt and contributors; see WsgiDAV https://github.com/mar10/wsgidav # Original PyFileServer (c) 2005 Ho Chun Wei. # Licensed under the MIT license: # http://www.opensource.org/licenses/mit-license.php """ Implements the `LockManager` object that provides the locking funct...
36.589595
106
0.56356
79666355557ea6ae0f0c61931fce0dd241b3f8f9
1,960
py
Python
transfer-learning/app.py
drenfr01/udacitydlnanodegree
a95a8634e5fd62f55e57c848579a96e559138987
[ "MIT" ]
null
null
null
transfer-learning/app.py
drenfr01/udacitydlnanodegree
a95a8634e5fd62f55e57c848579a96e559138987
[ "MIT" ]
null
null
null
transfer-learning/app.py
drenfr01/udacitydlnanodegree
a95a8634e5fd62f55e57c848579a96e559138987
[ "MIT" ]
null
null
null
""" Flask Serving This file is a sample flask app that can be used to test your model with an API. This app does the following: - Handles uploads and looks for an image file send as "file" parameter - Stores the image at ./images dir - Invokes ffwd_to_img function from evaluate.py with this image - Retu...
35
87
0.695918
7966651ba50b858ce6291056d666de41c92eec82
6,524
py
Python
vipermonkey/core/vba_lines.py
kirk-sayre-work/ViperMonkey
29078c1042645855a856fabc8db0a8e7780faa22
[ "Unlicense" ]
78
2017-11-15T13:51:13.000Z
2022-03-15T09:22:33.000Z
vipermonkey/core/vba_lines.py
kirk-sayre-work/ViperMonkey
29078c1042645855a856fabc8db0a8e7780faa22
[ "Unlicense" ]
17
2018-09-14T19:14:47.000Z
2021-11-17T19:03:05.000Z
vipermonkey/core/vba_lines.py
kirk-sayre-work/ViperMonkey
29078c1042645855a856fabc8db0a8e7780faa22
[ "Unlicense" ]
13
2018-09-12T20:48:16.000Z
2022-02-07T06:16:24.000Z
"""@package vipermonkey.core.vba_lines Parsing VBScript/VBA code lines. """ # pylint: disable=pointless-string-statement """ ViperMonkey: VBA Grammar - Lines ViperMonkey is a specialized engine to parse, analyze and interpret Microsoft VBA macros (Visual Basic for Applications), mainly for malware analysis. Author:...
46.269504
115
0.700031
796665e00556695ff1546bfbc66822680bd7457b
25,330
py
Python
core/domain/exp_jobs_one_off.py
AbhinavGopal/oppiabackup
e5ae39b20623d4389885802d670b0142d82034ea
[ "Apache-2.0" ]
1
2022-02-22T09:27:22.000Z
2022-02-22T09:27:22.000Z
core/domain/exp_jobs_one_off.py
IMADILKHAN/oppia
454bf732dfd0087bcc0b8b7cd65d80ba386f4929
[ "Apache-2.0" ]
null
null
null
core/domain/exp_jobs_one_off.py
IMADILKHAN/oppia
454bf732dfd0087bcc0b8b7cd65d80ba386f4929
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2014 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
37.525926
80
0.607067
79666626f5450b26025b783ea41c70cf440e3e2f
3,411
py
Python
tests/gdata_tests/contentforshopping_test.py
Cloudlock/gdata-python3
a6481a13590bfa225f91a97b2185cca9aacd1403
[ "Apache-2.0" ]
19
2017-06-09T13:38:03.000Z
2020-12-12T07:45:48.000Z
tests/gdata_tests/contentforshopping_test.py
AlexxIT/gdata-python3
5cc5a83a469d87f804d1fda8760ec76bcb6050c9
[ "Apache-1.1" ]
11
2017-07-22T07:09:54.000Z
2020-12-02T15:08:48.000Z
tests/gdata_tests/contentforshopping_test.py
AlexxIT/gdata-python3
5cc5a83a469d87f804d1fda8760ec76bcb6050c9
[ "Apache-1.1" ]
25
2017-07-03T11:30:39.000Z
2020-10-01T02:21:13.000Z
# # Copyright 2009 Google Inc. All Rights Reserved. # # Licensed under the Apache License 2.0; """Content API for Shopping tests""" # __author__ = 'afshar (Ali Afshar)' import unittest from gdata.contentforshopping import client class CFSClientTest(unittest.TestCase): def test_uri_missing_account_id(self): ...
40.607143
87
0.641747
796666a5a84df628485c50b3ec001260c2ac3f9e
444
py
Python
src/test/testTrHomogene.py
Fdepraetre/PinokioProject
dfea3ee23f10a44d761597d2547db3a1ff196fb1
[ "MIT" ]
8
2015-01-30T09:24:36.000Z
2020-08-17T09:02:56.000Z
src/test/testTrHomogene.py
rougier/PinokioProject
0b8db638d0b8f6ad915aa585b5eb865f1c5f7a18
[ "MIT" ]
2
2015-02-12T02:39:42.000Z
2020-08-17T09:12:13.000Z
src/test/testTrHomogene.py
rougier/PinokioProject
0b8db638d0b8f6ad915aa585b5eb865f1c5f7a18
[ "MIT" ]
5
2015-01-20T14:11:48.000Z
2020-08-16T10:29:04.000Z
import sys sys.path.insert(0,"../robotModel/") import trHomogene import sympy as sp sp.init_printing() theta = sp.symbols('theta') a = sp.symbols('a') d = sp.symbols('d') alpha = sp.symbols('alpha') print "" print "rotX :" print trHomogene.rotX(theta) print "" print "rotY :" print trHomogene.rotY(theta) pr...
15.310345
42
0.689189
796668379bc38b4a8c8e986f444b104c77b336d4
121
wsgi
Python
flask.wsgi
hariharshankar/pygeo
f87b5f117dd35e8c6491d1c627cc795e416df6f9
[ "MIT" ]
1
2017-09-03T14:39:26.000Z
2017-09-03T14:39:26.000Z
flask.wsgi
hariharshankar/pygeo
f87b5f117dd35e8c6491d1c627cc795e416df6f9
[ "MIT" ]
null
null
null
flask.wsgi
hariharshankar/pygeo
f87b5f117dd35e8c6491d1c627cc795e416df6f9
[ "MIT" ]
null
null
null
import sys import os sys.path.insert(0, os.path.dirname(os.path.realpath(__file__))) from geo import app as application
20.166667
63
0.785124
7966690063154f0d0f0832cc5c1e82a1269c9318
253
py
Python
Python3/0461-Hamming-Distance/soln-1.py
wyaadarsh/LeetCode-Solutions
3719f5cb059eefd66b83eb8ae990652f4b7fd124
[ "MIT" ]
5
2020-07-24T17:48:59.000Z
2020-12-21T05:56:00.000Z
Python3/0461-Hamming-Distance/soln-1.py
zhangyaqi1989/LeetCode-Solutions
2655a1ffc8678ad1de6c24295071308a18c5dc6e
[ "MIT" ]
null
null
null
Python3/0461-Hamming-Distance/soln-1.py
zhangyaqi1989/LeetCode-Solutions
2655a1ffc8678ad1de6c24295071308a18c5dc6e
[ "MIT" ]
2
2020-07-24T17:49:01.000Z
2020-08-31T19:57:35.000Z
class Solution: def hammingDistance(self, x, y): """ :type x: int :type y: int :rtype: int """ z = x ^ y ans = 0 while z: ans += z & 1 z //= 2 return ans
19.461538
36
0.355731
796669c3f29f88067fde5bc3213bae996e53b6a3
6,639
py
Python
configs/pgo.py
pointhi/benchmarks
68899480c0fc8d361079a81edc6d816d5f17d58e
[ "UPL-1.0" ]
7
2018-12-10T02:41:43.000Z
2020-06-18T06:13:59.000Z
configs/pgo.py
pointhi/benchmarks
68899480c0fc8d361079a81edc6d816d5f17d58e
[ "UPL-1.0" ]
23
2018-06-07T07:46:27.000Z
2018-08-06T17:57:39.000Z
configs/pgo.py
pointhi/benchmarks
68899480c0fc8d361079a81edc6d816d5f17d58e
[ "UPL-1.0" ]
2
2018-06-07T08:04:52.000Z
2018-06-07T09:06:21.000Z
import glob import os import subprocess from functools import partial def pgo_clean(workdir, pgo_suffix, profile_files, **kwargs): assert os.path.isdir(workdir) assert pgo_suffix # clean directory with pgo suffix logger.info('clean pgo files') with subprocess.Popen(['make', 'clean', 'TEST_SUFFIX...
40.236364
167
0.65055
796669d31a7265308d5c1fc7ee7e7581a2a96bdf
164
py
Python
src/game/__init__.py
gabdube/panic-panda
ecbda506eeafe3dbdf932cdb20b938646502f892
[ "MIT" ]
67
2019-01-06T13:01:46.000Z
2022-01-04T17:50:58.000Z
src/game/__init__.py
gabdube/panic-panda
ecbda506eeafe3dbdf932cdb20b938646502f892
[ "MIT" ]
2
2019-01-07T18:25:00.000Z
2021-05-10T09:32:17.000Z
src/game/__init__.py
gabdube/panic-panda
ecbda506eeafe3dbdf932cdb20b938646502f892
[ "MIT" ]
6
2019-07-31T08:16:26.000Z
2020-12-26T04:34:52.000Z
from .main_scene import * from .debug_textures_scene import * from .debug_normals_scene import * from .debug_pbr2_scene import * from .debug_compute_scene import *
27.333333
35
0.817073
79666a136bd8fb8f6afe6b7f747031871858d7a3
8,015
py
Python
lib/data.py
uamericana/PINV18_846-Experiments
57004a7b54df6d0bb23224e087754252cb430bc4
[ "MIT" ]
null
null
null
lib/data.py
uamericana/PINV18_846-Experiments
57004a7b54df6d0bb23224e087754252cb430bc4
[ "MIT" ]
null
null
null
lib/data.py
uamericana/PINV18_846-Experiments
57004a7b54df6d0bb23224e087754252cb430bc4
[ "MIT" ]
null
null
null
import os import pathlib import re from typing import List, Type import numpy as np import pandas as pd import tensorflow as tf from lib.datasets.info import DatasetInfo def download_dataset(dataset_info: Type[DatasetInfo], dest_dir: str): """ Download dataset :param dataset_info: dataset info :para...
31.805556
117
0.685714
79666a4e7be6ef222ff8c5bc1aac34b4d967f8f3
2,365
py
Python
target_offer/025-合并两个排序的链表/merge_sorted_node.py
lesywix/oh-my-python
dd2c35e6f7a7b06f75606f96c578227968e1cdcc
[ "MIT" ]
107
2019-11-30T07:59:10.000Z
2022-03-26T14:31:04.000Z
target_offer/025-合并两个排序的链表/merge_sorted_node.py
lesywix/oh-my-python
dd2c35e6f7a7b06f75606f96c578227968e1cdcc
[ "MIT" ]
null
null
null
target_offer/025-合并两个排序的链表/merge_sorted_node.py
lesywix/oh-my-python
dd2c35e6f7a7b06f75606f96c578227968e1cdcc
[ "MIT" ]
34
2019-11-22T08:11:13.000Z
2022-03-30T08:39:43.000Z
""" 提目:输入两个递增排序的链表,合并这两个链表并使新链表中的结点仍然是按照递增排序的。 例如输入图3.11中的链表1和链表2,则合并之后的升序链表如链表3所示。 总结:需要注意最后节点为 None 的情况,避免链表断裂(另可用递归的思想,代码更加整洁) """ import unittest class ListNode(object): def __init__(self, x): self.val = x self.next = None def __repr__(self): return f'<ListNode object val: {self.v...
23.65
108
0.529387
79666a95fdb5d7dd6d744789d466a7449908dce0
1,870
py
Python
tools/cubegen.py
gmwang18/pyscf
fcd6877751661c8a9743c1c872a4a2b65f6dd7ac
[ "BSD-2-Clause" ]
null
null
null
tools/cubegen.py
gmwang18/pyscf
fcd6877751661c8a9743c1c872a4a2b65f6dd7ac
[ "BSD-2-Clause" ]
null
null
null
tools/cubegen.py
gmwang18/pyscf
fcd6877751661c8a9743c1c872a4a2b65f6dd7ac
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # # Author: Qiming Sun <osirpt.sun@gmail.com> # import numpy from pyscf import lib from pyscf.dft import numint, gen_grid ''' Gaussian cube file format ''' def density(mol, outfile, dm, nx=80, ny=80, nz=80): coord = mol.atom_coords() box = numpy.max(coord,axis=0) - numpy.min(coord,axis=...
31.694915
68
0.55615
79666bb3f917374dcde9a77bc210b89286b0f7b5
6,166
py
Python
wagtail/wagtailadmin/templatetags/wagtailadmin_tags.py
pvdvreede/wagtail
7233abca4c54ad4ca40343149ad4b8224ea2edf2
[ "BSD-3-Clause" ]
null
null
null
wagtail/wagtailadmin/templatetags/wagtailadmin_tags.py
pvdvreede/wagtail
7233abca4c54ad4ca40343149ad4b8224ea2edf2
[ "BSD-3-Clause" ]
null
null
null
wagtail/wagtailadmin/templatetags/wagtailadmin_tags.py
pvdvreede/wagtail
7233abca4c54ad4ca40343149ad4b8224ea2edf2
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals from django.conf import settings from django import template from django.contrib.humanize.templatetags.humanize import intcomma from wagtail.wagtailcore import hooks from wagtail.wagtailcore.models import get_navigation_menu_items, UserPagePermissionsProxy, PageViewRestriction ...
33.150538
146
0.732241
79666bcd003d373303b40043505e5b01e1858331
4,794
py
Python
hplip-3.20.3/ui/alignform.py
Deril-Pana/wikiBlackcoinNL
9633307f0b485c27feae5da242944adf450e8963
[ "MIT" ]
null
null
null
hplip-3.20.3/ui/alignform.py
Deril-Pana/wikiBlackcoinNL
9633307f0b485c27feae5da242944adf450e8963
[ "MIT" ]
1
2021-11-20T16:33:39.000Z
2021-11-20T16:33:39.000Z
hplip-3.20.3/ui/alignform.py
Deril-Pana/wikiBlackcoinNL
9633307f0b485c27feae5da242944adf450e8963
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # (c) Copyright 2001-2015 HP Development Company, L.P. # # This program 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 2 of the License, or # (at your option) any late...
38.66129
149
0.67501
79666bfa251bf0fc2ae92462349ba339a777fd82
3,347
py
Python
dwt.py
SortAnon/Fre-GAN-pytorch
b2572e08acb98302bb963ed640a73cc79279dfcc
[ "MIT" ]
null
null
null
dwt.py
SortAnon/Fre-GAN-pytorch
b2572e08acb98302bb963ed640a73cc79279dfcc
[ "MIT" ]
null
null
null
dwt.py
SortAnon/Fre-GAN-pytorch
b2572e08acb98302bb963ed640a73cc79279dfcc
[ "MIT" ]
null
null
null
# Copyright (c) 2019, Adobe Inc. All rights reserved. # # This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike # 4.0 International Public License. To view a copy of this license, visit # https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode. # DWT code borrow from https://github....
44.039474
131
0.660592
79666d534c471c26093d4f3c5fe87cade0f3c3b0
27,399
py
Python
jumeg/gui/utils/jumeg_gui_utils_pdfs.py
fboers/jumeg
e04896989faf72f4dbe7adf136e4d158d212f24a
[ "BSD-3-Clause" ]
6
2015-04-10T07:13:07.000Z
2021-12-12T04:04:37.000Z
jumeg/gui/utils/jumeg_gui_utils_pdfs.py
fboers/jumeg
e04896989faf72f4dbe7adf136e4d158d212f24a
[ "BSD-3-Clause" ]
112
2015-01-07T10:19:24.000Z
2022-02-01T15:48:16.000Z
jumeg/gui/utils/jumeg_gui_utils_pdfs.py
fboers/jumeg
e04896989faf72f4dbe7adf136e4d158d212f24a
[ "BSD-3-Clause" ]
22
2015-03-11T12:19:50.000Z
2021-11-20T04:24:42.000Z
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Tue Mar 27 10:08:17 2018 @author: fboers """ import os,sys,glob,contextlib #import re,textwrap,ast #from types import ModuleType # from pathlib import Path import numpy as np import logging logger = logging.getLogger('jumeg') from jumeg.base.jumeg_base...
32.083138
158
0.533779
79666de25728c219e2fa313568fca9976e4e07cf
4,873
py
Python
tests/worker/test_run.py
chris-aeviator/paperboy
604c912c3530cd37fb07dcf22321d9dde15465ee
[ "Apache-2.0" ]
null
null
null
tests/worker/test_run.py
chris-aeviator/paperboy
604c912c3530cd37fb07dcf22321d9dde15465ee
[ "Apache-2.0" ]
null
null
null
tests/worker/test_run.py
chris-aeviator/paperboy
604c912c3530cd37fb07dcf22321d9dde15465ee
[ "Apache-2.0" ]
null
null
null
import os import os.path from datetime import datetime from paperboy.worker import run from paperboy.config import NotebookConfig, NotebookMetadataConfig from paperboy.config import JobConfig, JobMetadataConfig from paperboy.config import ReportConfig, ReportMetadataConfig class TestRun: def test_runlocal(self): ...
85.491228
2,623
0.447979
79666e1668f20d40f198470842d44f15ecc20067
1,029
py
Python
pasteurize-script.py
Rayan-Alsaleh/LiveTicketingDashboard
a1b4b80807eb7fcb5ff07f298d760f6323ad89dd
[ "MIT" ]
null
null
null
pasteurize-script.py
Rayan-Alsaleh/LiveTicketingDashboard
a1b4b80807eb7fcb5ff07f298d760f6323ad89dd
[ "MIT" ]
null
null
null
pasteurize-script.py
Rayan-Alsaleh/LiveTicketingDashboard
a1b4b80807eb7fcb5ff07f298d760f6323ad89dd
[ "MIT" ]
null
null
null
#!C:\LiveTicketingDashboard\MOH\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'future==0.18.2','console_scripts','pasteurize' import re import sys # for compatibility with easy_install; see #2198 __requires__ = 'future==0.18.2' try: from importlib.metadata import distribution except ImportError: ...
30.264706
84
0.683188
79666f8ed31e71092e098197597dfbc7f9a07930
2,021
py
Python
useraccounts/migrations/0001_initial.py
taylorschimek/WhatAChore
8de1cacdcb81217e7d5a792dac20b7f0909409bd
[ "MIT" ]
null
null
null
useraccounts/migrations/0001_initial.py
taylorschimek/WhatAChore
8de1cacdcb81217e7d5a792dac20b7f0909409bd
[ "MIT" ]
10
2017-08-28T19:40:14.000Z
2021-09-07T23:25:29.000Z
useraccounts/migrations/0001_initial.py
taylorschimek/WhatAChore
8de1cacdcb81217e7d5a792dac20b7f0909409bd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-06-22 14:15 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0008_alter_user_username_max_length'), ] operations = [ ...
56.138889
266
0.662048
79666fa29548d5adf1b91d1ed62aa047dca5b8a2
887
py
Python
conf/settings_testing.py
tom523/bkapp_test
d7569219e316811c4257684598c52a1b13e67d87
[ "Apache-2.0" ]
null
null
null
conf/settings_testing.py
tom523/bkapp_test
d7569219e316811c4257684598c52a1b13e67d87
[ "Apache-2.0" ]
null
null
null
conf/settings_testing.py
tom523/bkapp_test
d7569219e316811c4257684598c52a1b13e67d87
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云(BlueKing) available. Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obt...
42.238095
115
0.749718
7966706341556e041e704692659798c558f9b7ab
793
py
Python
tests/test_update_model_shape.py
Lait-au-Cafe/py3dviewer
29b4e09371f1308e37579be9a3e29a3ad3bcd39f
[ "MIT" ]
null
null
null
tests/test_update_model_shape.py
Lait-au-Cafe/py3dviewer
29b4e09371f1308e37579be9a3e29a3ad3bcd39f
[ "MIT" ]
1
2021-10-12T22:57:10.000Z
2021-10-12T22:57:10.000Z
tests/test_update_model_shape.py
Lait-au-Cafe/py3dviewer
29b4e09371f1308e37579be9a3e29a3ad3bcd39f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import sys sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) import py3dviewer if __name__ == "__main__": model_vertices = [ 10, 10, 0., -10, 10, 0., 10, -10, 0., -10, -10, 0.] model_indices = [ ...
24.78125
120
0.539723
7966724d61d196dac20928357c23deb9663d3d1f
2,219
py
Python
AIFactory/option.py
eunsu-park/solar_magnetogram_denoising
574847f87202765fda508b5d45eeef3ff6356ac0
[ "MIT" ]
2
2021-09-30T09:09:41.000Z
2021-09-30T09:10:09.000Z
AIFactory/option.py
eunsu-park/solar_magnetogram_denoising
574847f87202765fda508b5d45eeef3ff6356ac0
[ "MIT" ]
null
null
null
AIFactory/option.py
eunsu-park/solar_magnetogram_denoising
574847f87202765fda508b5d45eeef3ff6356ac0
[ "MIT" ]
1
2021-07-26T07:51:07.000Z
2021-07-26T07:51:07.000Z
import argparse class BaseOption(): def __init__(self): self.parser = argparse.ArgumentParser() self.parser.add_argument('--prefix', type=str, default='denoising') self.parser.add_argument('--seed', type=int, default=1220) self.parser.add_argument('--crop_size', type=int, default...
41.867925
106
0.675079
79667263c1dcd3f331c20ca528e4105429991b12
5,462
py
Python
urearl.py
enveezee/urearl
574b2ebd8d6352bbb6a72bb6ce4c652f2e4bb9b1
[ "MIT" ]
2
2021-04-02T18:37:53.000Z
2021-05-09T01:49:44.000Z
urearl.py
enveezee/urearl
574b2ebd8d6352bbb6a72bb6ce4c652f2e4bb9b1
[ "MIT" ]
null
null
null
urearl.py
enveezee/urearl
574b2ebd8d6352bbb6a72bb6ce4c652f2e4bb9b1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # * urearl.py - U R EARL - UNCLE R. EARL # # URL Now Can /Likely/ Extract Returns # Easily Abstracting Regular Libraries # nvz < http://github.com/enveezee/urearl > # # ? DEFAULT settings, possibly import these from env or config? DEFAULT_USER_AGENT='Mozi...
27.867347
79
0.593006
79667301d203d4310319548061494910d6234e97
3,121
py
Python
serve.py
yukosgiti/covid-sanity
cc0685ff4d05fa43e47a3647e1b53bc83a59d9e4
[ "MIT" ]
1
2020-04-04T06:53:14.000Z
2020-04-04T06:53:14.000Z
serve.py
doc22940/covid-sanity
8ce4543c3457174af8ced432f96b8a92fe47c809
[ "MIT" ]
null
null
null
serve.py
doc22940/covid-sanity
8ce4543c3457174af8ced432f96b8a92fe47c809
[ "MIT" ]
null
null
null
""" Simple flask server for the interface """ import os import json from flask import Flask, request, redirect, url_for from flask import render_template # ----------------------------------------------------------------------------- app = Flask(__name__) # load raw paper data with open('jall.json', 'r') as f: ...
32.510417
87
0.601089
7966740cc083920604f8e57f6fbabf829caf214d
44
py
Python
naughtb0y_files/rosaline/src/secret.py
Masrt200/Glimpse-of-ISM
6d7e33e77bcb0f7fb92b4dc0e2d93a892032385e
[ "MIT" ]
2
2021-04-24T15:02:09.000Z
2021-04-24T15:04:54.000Z
naughtb0y_files/rosaline/src/secret.py
Masrt200/Glimpse-of-ISM
6d7e33e77bcb0f7fb92b4dc0e2d93a892032385e
[ "MIT" ]
null
null
null
naughtb0y_files/rosaline/src/secret.py
Masrt200/Glimpse-of-ISM
6d7e33e77bcb0f7fb92b4dc0e2d93a892032385e
[ "MIT" ]
null
null
null
current_password="this_server_is_notorious"
22
43
0.909091
79667440191823c131128b47d95222ab8ba09dc9
496
py
Python
tests/r/test_htv.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
199
2017-07-24T01:34:27.000Z
2022-01-29T00:50:55.000Z
tests/r/test_htv.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
46
2017-09-05T19:27:20.000Z
2019-01-07T09:47:26.000Z
tests/r/test_htv.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
45
2017-07-26T00:10:44.000Z
2022-03-16T20:44:59.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import shutil import sys import tempfile from observations.r.htv import htv def test_htv(): """Test module htv.py by downloading htv.csv and testing shape of extracted data has 1230 rows and 23 colum...
20.666667
46
0.743952
79667487fee820a3eaaeefa12019c009c0672728
1,036
py
Python
mkdocs_with_pdf/themes/material.py
pawelsikora/mkdocs-with-pdf
5a41971567be0aa00d8c23273c65e0f5b0a0b7a1
[ "MIT" ]
null
null
null
mkdocs_with_pdf/themes/material.py
pawelsikora/mkdocs-with-pdf
5a41971567be0aa00d8c23273c65e0f5b0a0b7a1
[ "MIT" ]
null
null
null
mkdocs_with_pdf/themes/material.py
pawelsikora/mkdocs-with-pdf
5a41971567be0aa00d8c23273c65e0f5b0a0b7a1
[ "MIT" ]
null
null
null
import os import sass from bs4 import BeautifulSoup def get_stylesheet() -> str: base_path = os.path.abspath(os.path.dirname(__file__)) style = "" for src in ["material.scss", "material-polyfills.css"]: filename = os.path.join(base_path, src) style += sass.compile(filename=filename, outpu...
26.564103
75
0.617761
7966787d9b52bb550436a2f0ed998b40f0aed568
1,354
py
Python
sdk/identity/azure-identity/tests/test_authn_client_async.py
szaher/azure-sdk-for-python
577513d37aeb430a11ee3478b68c693a65b7e347
[ "MIT" ]
null
null
null
sdk/identity/azure-identity/tests/test_authn_client_async.py
szaher/azure-sdk-for-python
577513d37aeb430a11ee3478b68c693a65b7e347
[ "MIT" ]
null
null
null
sdk/identity/azure-identity/tests/test_authn_client_async.py
szaher/azure-sdk-for-python
577513d37aeb430a11ee3478b68c693a65b7e347
[ "MIT" ]
null
null
null
# ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ import asyncio from unittest.mock import Mock, patch from urllib.parse import urlparse import pytest from azure.identity._constants import EnvironmentVariables from azu...
37.611111
113
0.698671
79667a4e43eba70b8f20e0317d76caf22811f512
2,678
py
Python
torchbiggraph/train.py
Otamio/PyTorch-BigGraph
0174cc4b968455f98f13133194e64560ac0951d9
[ "BSD-3-Clause" ]
null
null
null
torchbiggraph/train.py
Otamio/PyTorch-BigGraph
0174cc4b968455f98f13133194e64560ac0951d9
[ "BSD-3-Clause" ]
null
null
null
torchbiggraph/train.py
Otamio/PyTorch-BigGraph
0174cc4b968455f98f13133194e64560ac0951d9
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE.txt file in the root directory of this source tree. import argparse import logging from typing import Any, Callable, Dict, Iterable, List...
33.898734
89
0.732636
79667ab8778cfcedec6add93ca1db4152e320c86
20,143
py
Python
internal/detectors/yolodark/darknet.py
williamcorsel/teNNo
67c088f0303e6c53628e2c52c7fcecb9cfdcda62
[ "Apache-2.0" ]
null
null
null
internal/detectors/yolodark/darknet.py
williamcorsel/teNNo
67c088f0303e6c53628e2c52c7fcecb9cfdcda62
[ "Apache-2.0" ]
null
null
null
internal/detectors/yolodark/darknet.py
williamcorsel/teNNo
67c088f0303e6c53628e2c52c7fcecb9cfdcda62
[ "Apache-2.0" ]
2
2021-11-22T08:26:08.000Z
2022-01-19T13:11:04.000Z
#!python3 """ Python 3 wrapper for identifying objects in images Requires DLL compilation Both the GPU and no-GPU version should be compiled; the no-GPU version should be renamed "yolo_cpp_dll_nogpu.dll". On a GPU system, you can force CPU evaluation by any of: - Set global variable DARKNET_FORCE_CPU to True - Set ...
38.077505
249
0.615896
79667acfff10eb53907b9a2e6b55506bcc655062
1,443
py
Python
koans/about_variables.py
Superjuk/learn_python_koans
5d4cbeccecc57156cc63d9b8a119fb42ac025f41
[ "MIT" ]
15
2018-08-29T04:32:28.000Z
2022-02-24T00:32:34.000Z
koans/about_variables.py
Superjuk/learn_python_koans
5d4cbeccecc57156cc63d9b8a119fb42ac025f41
[ "MIT" ]
14
2018-08-14T08:34:31.000Z
2020-11-26T19:37:32.000Z
koans/about_variables.py
Superjuk/learn_python_koans
5d4cbeccecc57156cc63d9b8a119fb42ac025f41
[ "MIT" ]
94
2018-08-13T19:01:11.000Z
2022-02-22T08:43:01.000Z
from koans_plugs import * def test_can_assign_to_variable(): """ В переменную можно записывать значения. Например, целые. При использовании переменной в выражении, Python подставит значение переменной. """ a = 12 assert a + 3 == __ def test_can_assign_different_types(): """ ...
23.274194
87
0.663202
79667b175e3ad6ecb722c31dd235fdc7c12e9e34
1,867
py
Python
tests/common.py
lluiscampos/deviceconfig
f2b42800b4623a051b26c77c2220312b1f6beea1
[ "Apache-2.0" ]
null
null
null
tests/common.py
lluiscampos/deviceconfig
f2b42800b4623a051b26c77c2220312b1f6beea1
[ "Apache-2.0" ]
null
null
null
tests/common.py
lluiscampos/deviceconfig
f2b42800b4623a051b26c77c2220312b1f6beea1
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Northern.tech AS # # 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 ag...
33.339286
84
0.665774
79667b8d94b837ee49e5a8edf65ed9a19949eef6
150
py
Python
retail_management/retail_management/doctype/rm_sales_invoice/test_rm_sales_invoice.py
Shubhamk-10/retail_management
736c439fc57e39463857a1a7adc4b8866c2d8025
[ "MIT" ]
null
null
null
retail_management/retail_management/doctype/rm_sales_invoice/test_rm_sales_invoice.py
Shubhamk-10/retail_management
736c439fc57e39463857a1a7adc4b8866c2d8025
[ "MIT" ]
null
null
null
retail_management/retail_management/doctype/rm_sales_invoice/test_rm_sales_invoice.py
Shubhamk-10/retail_management
736c439fc57e39463857a1a7adc4b8866c2d8025
[ "MIT" ]
null
null
null
# Copyright (c) 2022, Shubham and Contributors # See license.txt # import frappe import unittest class TestRMSalesInvoice(unittest.TestCase): pass
16.666667
46
0.786667
79667d1960ff8539dfc6c2347b5e14baf22c5067
1,081
py
Python
blockchain.py
stuntelder/pwscoin
d8bb216a97f71025631da114d7232a5919021deb
[ "MIT" ]
null
null
null
blockchain.py
stuntelder/pwscoin
d8bb216a97f71025631da114d7232a5919021deb
[ "MIT" ]
null
null
null
blockchain.py
stuntelder/pwscoin
d8bb216a97f71025631da114d7232a5919021deb
[ "MIT" ]
null
null
null
from time import time import json import hashlib class Blockchain (object): def __init__(self): self.chain = []; class Block (object): def __init__(self, transactions, time, index): self.index = index; #'naam' van het block self.transactions = transactions; self.ti...
32.757576
86
0.618871
79667e2d6cd91d928f670be107320286160dde5a
457
py
Python
network-1-5Test-Initiators.py
schlesg/ZeroMQBenchmark
7e4403d08391a6583074a2c84774992c7fd3998e
[ "MIT" ]
1
2020-04-29T14:03:00.000Z
2020-04-29T14:03:00.000Z
network-1-5Test-Initiators.py
schlesg/ZeroMQBenchmark
7e4403d08391a6583074a2c84774992c7fd3998e
[ "MIT" ]
null
null
null
network-1-5Test-Initiators.py
schlesg/ZeroMQBenchmark
7e4403d08391a6583074a2c84774992c7fd3998e
[ "MIT" ]
null
null
null
import subprocess import os # print(os.getcwd()) # os.chdir("build/") commandList = [] commandList.append("./ZMQInitiator --PubEP tcp://192.168.1.105:4242,tcp://192.168.1.105:4243,tcp://192.168.1.105:4244,tcp://192.168.1.105:4245,tcp://192.168.1.105:4246 --SubEP tcp://192.168.1.102:4241 --msgLength 10000") for comma...
28.5625
220
0.691466
79667e8457015b517817d9426074d89239c6ec0c
73
py
Python
my_modules/constants.py
eriksjoarp/machine_learning
f7c2ce3afdb9d331fba8b95380ec3d747463ff82
[ "MIT" ]
null
null
null
my_modules/constants.py
eriksjoarp/machine_learning
f7c2ce3afdb9d331fba8b95380ec3d747463ff82
[ "MIT" ]
null
null
null
my_modules/constants.py
eriksjoarp/machine_learning
f7c2ce3afdb9d331fba8b95380ec3d747463ff82
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 RANDOM_STATE = 42 DATASET_DIR = r'C:\ai\datasets'
18.25
31
0.726027
79667f3d779b7171def1ba1d22fa592a9e96a651
143
py
Python
FIP_mirror/__init__.py
dbeley/FIP_lastfm_mirror
9561c233c0733a77a1ad59994e5792b52df76966
[ "MIT" ]
null
null
null
FIP_mirror/__init__.py
dbeley/FIP_lastfm_mirror
9561c233c0733a77a1ad59994e5792b52df76966
[ "MIT" ]
null
null
null
FIP_mirror/__init__.py
dbeley/FIP_lastfm_mirror
9561c233c0733a77a1ad59994e5792b52df76966
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Mirror the FIP webradios to several services. """ __version__ = "1.1" name = "FIP_mirror"
13
45
0.629371
79667f907fc9d54a2e412810ae6626de6c79c1e3
7,011
py
Python
tests/functional/test_aws_lambda_logging.py
JRetza/aws-lambda-powertools-python
f0ae5a1dce0b54793da5a61c45e9ad2d1394bfe3
[ "MIT-0" ]
1
2021-07-11T07:14:25.000Z
2021-07-11T07:14:25.000Z
tests/functional/test_aws_lambda_logging.py
JRetza/aws-lambda-powertools-python
f0ae5a1dce0b54793da5a61c45e9ad2d1394bfe3
[ "MIT-0" ]
null
null
null
tests/functional/test_aws_lambda_logging.py
JRetza/aws-lambda-powertools-python
f0ae5a1dce0b54793da5a61c45e9ad2d1394bfe3
[ "MIT-0" ]
null
null
null
"""aws_lambda_logging tests.""" import io import json import pytest from aws_lambda_powertools import Logger @pytest.fixture def stdout(): return io.StringIO() @pytest.mark.parametrize("level", ["DEBUG", "WARNING", "ERROR", "INFO", "CRITICAL"]) def test_setup_with_valid_log_levels(stdout, level): logger =...
30.482609
115
0.707032
79667ff7df212e457c58c32bed23a5cd2f4955ad
5,988
py
Python
tests/image/test_utils.py
rupy/shub
435c31329e988371128e54698bf17c50f681dc0a
[ "BSD-3-Clause" ]
null
null
null
tests/image/test_utils.py
rupy/shub
435c31329e988371128e54698bf17c50f681dc0a
[ "BSD-3-Clause" ]
null
null
null
tests/image/test_utils.py
rupy/shub
435c31329e988371128e54698bf17c50f681dc0a
[ "BSD-3-Clause" ]
null
null
null
import os import sys import tempfile from unittest import TestCase import mock import pytest from shub.exceptions import BadConfigException, BadParameterException, NotFoundException from shub.image.utils import ( get_credentials, get_docker_client, get_image_registry, get_project_dir, format_image_...
40.187919
88
0.636607
7966801d206ca89301ca89a034c38601086a33d3
1,560
py
Python
test/unit/shell/test_posix.py
jmgao/bfg9000
7ffb15aed8ea88ee454821e83aa8c42014ac8e34
[ "BSD-3-Clause" ]
null
null
null
test/unit/shell/test_posix.py
jmgao/bfg9000
7ffb15aed8ea88ee454821e83aa8c42014ac8e34
[ "BSD-3-Clause" ]
null
null
null
test/unit/shell/test_posix.py
jmgao/bfg9000
7ffb15aed8ea88ee454821e83aa8c42014ac8e34
[ "BSD-3-Clause" ]
null
null
null
import unittest from bfg9000.shell.posix import * class TestSplit(unittest.TestCase): def test_single(self): self.assertEqual(split('foo'), ['foo']) def test_multiple(self): self.assertEqual(split('foo bar baz'), ['foo', 'bar', 'baz']) def test_quote(self): self.assertEqual(spli...
29.433962
73
0.569231
796680562402961ab2c7300ba281de8322578f3c
909
py
Python
python/contextlib/contextlib_exitstack_enter_context.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/contextlib/contextlib_exitstack_enter_context.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/contextlib/contextlib_exitstack_enter_context.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
""" An ExitStack instance maintains a stack data structure of cleanup callbacks. The callbacks are populated explicitly within the context, and any registered callbacks are called in the reverse order when control flow exits the context. The result is like having multiple nested `with` statements, except they are esta...
24.567568
78
0.718372
7966805bf80531ab9ec3a7ad7c1633d5a8ffc1fa
12,027
py
Python
sdk/synapse/azure-mgmt-synapse/azure/mgmt/synapse/aio/operations/_data_masking_rules_operations.py
xolve/azure-sdk-for-python
9f5baa19c392f77f811d936ee43450e4ea524002
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/synapse/azure-mgmt-synapse/azure/mgmt/synapse/aio/operations/_data_masking_rules_operations.py
xolve/azure-sdk-for-python
9f5baa19c392f77f811d936ee43450e4ea524002
[ "MIT" ]
null
null
null
sdk/synapse/azure-mgmt-synapse/azure/mgmt/synapse/aio/operations/_data_masking_rules_operations.py
xolve/azure-sdk-for-python
9f5baa19c392f77f811d936ee43450e4ea524002
[ "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 may ...
46.08046
275
0.681882
7966807423ff20a71ee60b3179eb8fd324601a9a
1,488
py
Python
page_contact/forms.py
btardio/encore-uwsgi
e902bf026496a08d871cf532482c22818136212b
[ "MIT" ]
null
null
null
page_contact/forms.py
btardio/encore-uwsgi
e902bf026496a08d871cf532482c22818136212b
[ "MIT" ]
null
null
null
page_contact/forms.py
btardio/encore-uwsgi
e902bf026496a08d871cf532482c22818136212b
[ "MIT" ]
null
null
null
from django import forms class contact_form(forms.Form): firstname = forms.CharField(label = 'First:', max_length = 255, widget = forms.TextInput( attrs={'class': 'validate'} ) ) lastname = forms.CharField(label = 'Last:', max_length = 255, required = False, ...
42.514286
100
0.523522
796681598f60b8b24fad533dc9d36f2a7878bbe2
12,761
py
Python
intervention_simulation.py
elifesciences-publications/ward-infection-ABM
a3592779ed05c5a2fe3b0276b4e80dc6f666e8ef
[ "MIT" ]
2
2019-07-23T09:35:40.000Z
2021-02-09T16:19:56.000Z
intervention_simulation.py
elifesciences-publications/ward-infection-ABM
a3592779ed05c5a2fe3b0276b4e80dc6f666e8ef
[ "MIT" ]
null
null
null
intervention_simulation.py
elifesciences-publications/ward-infection-ABM
a3592779ed05c5a2fe3b0276b4e80dc6f666e8ef
[ "MIT" ]
2
2020-01-10T08:43:37.000Z
2020-04-20T03:34:37.000Z
#Agent based model to simulate transmission of ESBL Klebsiella pneumoniae and E. coli on a hospital ward #Tom Crellen, MORU Postdoc. Started January 2019. tomcrellen@gmail.com #! /usr/bin/env python import itertools import random import numpy import sys import argparse #Argparse parser = argparse.ArgumentParser(desc...
76.413174
1,117
0.488206
7966818bae04afd6c76accc609fe154e33fd5c5d
10,286
py
Python
selfdrive/car/interfaces.py
m500dxp/forNEXO-yong
f2b2c88e9efb512d58c66500398cd9de67aed3b1
[ "MIT" ]
null
null
null
selfdrive/car/interfaces.py
m500dxp/forNEXO-yong
f2b2c88e9efb512d58c66500398cd9de67aed3b1
[ "MIT" ]
null
null
null
selfdrive/car/interfaces.py
m500dxp/forNEXO-yong
f2b2c88e9efb512d58c66500398cd9de67aed3b1
[ "MIT" ]
null
null
null
import os import time from abc import abstractmethod, ABC from typing import Dict, Tuple, List from cereal import car from common.kalman.simple_kalman import KF1D from common.realtime import DT_CTRL from selfdrive.car import gen_empty_fingerprint from selfdrive.config import Conversions as CV from selfdrive.controls.l...
35.965035
121
0.708925
796681d4eacfca17e3ac07cf3cba7a4ed8cfef76
7,723
py
Python
tkprocess/core/settings.py
lishnih/tkprocess
a1386091c276d01fc7aa6c430357a79be96ed1db
[ "Unlicense" ]
null
null
null
tkprocess/core/settings.py
lishnih/tkprocess
a1386091c276d01fc7aa6c430357a79be96ed1db
[ "Unlicense" ]
null
null
null
tkprocess/core/settings.py
lishnih/tkprocess
a1386091c276d01fc7aa6c430357a79be96ed1db
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 # Stan 2013-05-02 from __future__ import (division, absolute_import, print_function, unicode_literals) import sys import os import re import time import pickle import logging try: from .. import __version__ except: __version__ = '<undefined>' if ...
27.003497
97
0.581898
79668209bd96905190588d29ae82fafc2134b920
927
py
Python
tests/test_gameweek.py
njrahman/fpl
f213bcc1b361e1c0e20a1fcbba0cddbf64674b34
[ "MIT" ]
null
null
null
tests/test_gameweek.py
njrahman/fpl
f213bcc1b361e1c0e20a1fcbba0cddbf64674b34
[ "MIT" ]
null
null
null
tests/test_gameweek.py
njrahman/fpl
f213bcc1b361e1c0e20a1fcbba0cddbf64674b34
[ "MIT" ]
null
null
null
from fpl.models import Gameweek gameweek_data = { "id": 1, "name": "Gameweek 1", "deadline_time": "2018-08-10T18:00:00Z", "average_entry_score": 53, "finished": True, "data_checked": True, "highest_scoring_entry": 890626, "deadline_time_epoch": 1533924000, "deadline_time_game_offset...
25.054054
50
0.63754
79668519dbbaf9512d912b3940e26223f87da3dd
19,191
py
Python
slim/data/tfexample_decoder.py
mive93/nasnet-tensorflow
edb0c98424521253c3afe2436384d5dc9a9e6582
[ "Apache-2.0" ]
null
null
null
slim/data/tfexample_decoder.py
mive93/nasnet-tensorflow
edb0c98424521253c3afe2436384d5dc9a9e6582
[ "Apache-2.0" ]
null
null
null
slim/data/tfexample_decoder.py
mive93/nasnet-tensorflow
edb0c98424521253c3afe2436384d5dc9a9e6582
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
36.554286
80
0.692356
79668545d452c5b502fa2feedfd993bdb1e6b0c0
5,721
py
Python
venv_py36/Lib/site-packages/PyInstaller/utils/win32/winutils.py
PeterMoresco/RefriCalcSoft
1ed728ef1937fdda248cee19d97b3d13bd98af03
[ "MIT" ]
1
2018-09-12T06:30:21.000Z
2018-09-12T06:30:21.000Z
venv_py36/Lib/site-packages/PyInstaller/utils/win32/winutils.py
PeterMoresco/RefriCalcSoft
1ed728ef1937fdda248cee19d97b3d13bd98af03
[ "MIT" ]
1
2018-09-12T06:32:17.000Z
2018-09-12T19:03:50.000Z
venv/lib/python3.6/site-packages/PyInstaller/utils/win32/winutils.py
rilakkyuma/tweetdelete
5ac4001b2ba7c7d87379e616c93361c2090ed4ae
[ "MIT" ]
2
2018-12-29T07:49:59.000Z
2020-03-18T02:44:31.000Z
#----------------------------------------------------------------------------- # Copyright (c) 2013-2018, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License with exception # for distributing bootloader. # # The full license is in the file COPYING.txt, distributed with this s...
33.852071
83
0.61318
796685c40a2a968a9e73ea1860dd20e0b0dff5ac
1,267
py
Python
var/spack/repos/builtin/packages/r-quantro/package.py
HaochengLIU/spack
26e51ff1705a4d6234e2a0cf734f93f7f95df5cb
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2018-11-27T03:39:44.000Z
2021-09-06T15:50:35.000Z
var/spack/repos/builtin/packages/r-quantro/package.py
HaochengLIU/spack
26e51ff1705a4d6234e2a0cf734f93f7f95df5cb
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2019-01-11T20:11:52.000Z
2019-01-11T20:11:52.000Z
var/spack/repos/builtin/packages/r-quantro/package.py
HaochengLIU/spack
26e51ff1705a4d6234e2a0cf734f93f7f95df5cb
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2020-10-14T14:20:17.000Z
2020-10-14T14:20:17.000Z
# Copyright 2013-2018 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class RQuantro(RPackage): """A data-driven test for the assumptions of quantile normalization us...
42.233333
77
0.687451
7966875566d2e8c8ad803c98669cef7477fd7770
6,144
py
Python
lib/galaxy/model/migrate/triggers/update_audit_table.py
quacksawbones/galaxy-1
65f7259b29d3886e526d9be670c60d9da9fbe038
[ "CC-BY-3.0" ]
1,085
2015-02-18T16:14:38.000Z
2022-03-30T23:52:07.000Z
lib/galaxy/model/migrate/triggers/update_audit_table.py
quacksawbones/galaxy-1
65f7259b29d3886e526d9be670c60d9da9fbe038
[ "CC-BY-3.0" ]
11,253
2015-02-18T17:47:32.000Z
2022-03-31T21:47:03.000Z
lib/galaxy/model/migrate/triggers/update_audit_table.py
quacksawbones/galaxy-1
65f7259b29d3886e526d9be670c60d9da9fbe038
[ "CC-BY-3.0" ]
1,000
2015-02-18T16:18:10.000Z
2022-03-29T08:22:56.000Z
from galaxy.model.migrate.versions.util import execute_statements # function name prefix fn_prefix = "fn_audit_history_by" # map between source table and associated incoming id field trigger_config = { 'history_dataset_association': "history_id", 'history_dataset_collection_association': "history_id", 'h...
34.324022
133
0.631673
796687853d01e060870627325f1c729a1a610ed4
25,195
py
Python
django/db/migrations/state.py
ni-ning/django
2e7ba6057cfc82a15a22b6021cd60cf307152e2d
[ "CNRI-Python-GPL-Compatible", "BSD-3-Clause" ]
7
2021-07-10T14:32:29.000Z
2021-07-10T16:14:09.000Z
django/db/migrations/state.py
ni-ning/django
2e7ba6057cfc82a15a22b6021cd60cf307152e2d
[ "CNRI-Python-GPL-Compatible", "BSD-3-Clause" ]
21
2021-02-04T01:37:44.000Z
2022-03-12T01:00:55.000Z
django/db/migrations/state.py
ni-ning/django
2e7ba6057cfc82a15a22b6021cd60cf307152e2d
[ "CNRI-Python-GPL-Compatible", "BSD-3-Clause" ]
27
2021-11-10T08:44:10.000Z
2022-03-30T08:19:46.000Z
import copy from contextlib import contextmanager from django.apps import AppConfig from django.apps.registry import Apps, apps as global_apps from django.conf import settings from django.db import models from django.db.models.fields.related import RECURSIVE_RELATIONSHIP_CONSTANT from django.db.models.options import D...
41.644628
109
0.614527
79668809b89ea29fb1dd7cb291e9e3bfbeb5b846
9,429
py
Python
fancyimpute/soft_impute.py
akrajewska/fancyimpute
36ee0a975f05258795fbe19e4fa05b206b43723d
[ "Apache-2.0" ]
null
null
null
fancyimpute/soft_impute.py
akrajewska/fancyimpute
36ee0a975f05258795fbe19e4fa05b206b43723d
[ "Apache-2.0" ]
null
null
null
fancyimpute/soft_impute.py
akrajewska/fancyimpute
36ee0a975f05258795fbe19e4fa05b206b43723d
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under th...
36.546512
138
0.587549
7966882a97794bcace0797f1bf6937cdd6d880df
9,847
py
Python
tests/components/plaato/test_config_flow.py
tbarbette/core
8e58c3aa7bc8d2c2b09b6bd329daa1c092d52d3c
[ "Apache-2.0" ]
4
2016-06-22T12:00:41.000Z
2018-06-11T20:31:25.000Z
tests/components/plaato/test_config_flow.py
tbarbette/core
8e58c3aa7bc8d2c2b09b6bd329daa1c092d52d3c
[ "Apache-2.0" ]
60
2020-08-03T07:32:56.000Z
2022-03-31T06:02:07.000Z
tests/components/plaato/test_config_flow.py
tbarbette/core
8e58c3aa7bc8d2c2b09b6bd329daa1c092d52d3c
[ "Apache-2.0" ]
6
2019-07-06T00:43:13.000Z
2021-01-16T13:27:06.000Z
"""Test the Plaato config flow.""" from unittest.mock import patch from pyplaato.models.device import PlaatoDeviceType import pytest from homeassistant import config_entries, data_entry_flow, setup from homeassistant.components.plaato.const import ( CONF_DEVICE_NAME, CONF_DEVICE_TYPE, CONF_USE_WEBHOOK, ...
31.764516
87
0.672794
796688fd1a498e33be4dcf336471c451b7804398
21,424
py
Python
test/functional/test_runner.py
xazab-project/xazab
b6afcf0e016b1e6d2a5780af97015016419deed1
[ "MIT" ]
null
null
null
test/functional/test_runner.py
xazab-project/xazab
b6afcf0e016b1e6d2a5780af97015016419deed1
[ "MIT" ]
null
null
null
test/functional/test_runner.py
xazab-project/xazab
b6afcf0e016b1e6d2a5780af97015016419deed1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Run regression test suite. This module calls down into individual test cases via subprocess. It will f...
39.238095
195
0.628361
79668a3ac0bf079d4ea4c68b059e5027c581b8b8
4,482
py
Python
healthcareai/tests/test_cardinality_checks.py
vijayphugat/Practice
7d8560d62a5d6bfa9488526da318973295a25255
[ "MIT" ]
null
null
null
healthcareai/tests/test_cardinality_checks.py
vijayphugat/Practice
7d8560d62a5d6bfa9488526da318973295a25255
[ "MIT" ]
null
null
null
healthcareai/tests/test_cardinality_checks.py
vijayphugat/Practice
7d8560d62a5d6bfa9488526da318973295a25255
[ "MIT" ]
null
null
null
"""Test the cardinality checks module.""" import unittest import pandas as pd from healthcareai.common.healthcareai_error import HealthcareAIError import healthcareai.common.cardinality_checks as cardinality class TestCalculateCardinality(unittest.TestCase): """Test `calculate_cardinality()` method....
33.699248
90
0.534583
79668a402e14b171400cda482acf665b26df1a66
9,868
py
Python
synapse/crypto/context_factory.py
DRRDietrich/synapse
bc203c962f4c18bb41b0abf3d3e59957137d6530
[ "Apache-2.0" ]
null
null
null
synapse/crypto/context_factory.py
DRRDietrich/synapse
bc203c962f4c18bb41b0abf3d3e59957137d6530
[ "Apache-2.0" ]
null
null
null
synapse/crypto/context_factory.py
DRRDietrich/synapse
bc203c962f4c18bb41b0abf3d3e59957137d6530
[ "Apache-2.0" ]
1
2020-09-23T12:36:11.000Z
2020-09-23T12:36:11.000Z
# Copyright 2014-2016 OpenMarket Ltd # Copyright 2019 New Vector 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 ...
38.546875
88
0.712606
79668ab4c64f380a0a8e60194d5486052beda529
1,244
py
Python
cloudferry/lib/utils/ubuntu.py
SVilgelm/CloudFerry
4459c0d21ba7ccffe51176932197b352e426ba63
[ "Apache-2.0" ]
6
2017-04-20T00:49:49.000Z
2020-12-20T16:27:10.000Z
cloudferry/lib/utils/ubuntu.py
SVilgelm/CloudFerry
4459c0d21ba7ccffe51176932197b352e426ba63
[ "Apache-2.0" ]
3
2017-04-08T15:47:16.000Z
2017-05-18T17:40:59.000Z
cloudferry/lib/utils/ubuntu.py
SVilgelm/CloudFerry
4459c0d21ba7ccffe51176932197b352e426ba63
[ "Apache-2.0" ]
8
2017-04-07T23:42:36.000Z
2021-08-10T11:05:10.000Z
# Copyright 2015 Mirantis 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,...
34.555556
74
0.71463
79668addaee79713db8b9526aeaa9989959eff29
9,936
py
Python
TFRecModel/src/com/sparrowrecsys/offline/tensorflow/DIN.py
xuyang7952/SparrowRecSys
bc8ca867495257826eb8fcba2844ab11161ff20f
[ "Apache-2.0" ]
1,748
2020-09-19T12:52:32.000Z
2022-03-31T10:04:20.000Z
TFRecModel/src/com/sparrowrecsys/offline/tensorflow/DIN.py
dlutleixin/SparrowRecSys
90d20f84aa6184963290ee87b4766a82b1c1280e
[ "Apache-2.0" ]
44
2020-09-22T10:44:06.000Z
2022-03-26T08:29:36.000Z
TFRecModel/src/com/sparrowrecsys/offline/tensorflow/DIN.py
dlutleixin/SparrowRecSys
90d20f84aa6184963290ee87b4766a82b1c1280e
[ "Apache-2.0" ]
634
2020-09-20T05:10:57.000Z
2022-03-30T08:37:55.000Z
import tensorflow as tf # Training samples path, change to your local path training_samples_file_path = tf.keras.utils.get_file("trainingSamples.csv", "file:///Users/zhewang/Workspace/SparrowRecSys/src/main" "/res...
52.294737
159
0.722424
79668beda4e52eb5917304a13bea93abb309cbe7
2,241
py
Python
test.py
JackwithWilshere/FashionAI-
9a7a30aa12035418c835cdb4e05641cdb7a456b3
[ "MIT" ]
5
2019-04-03T07:32:39.000Z
2021-12-23T06:48:27.000Z
test.py
espectre/FashionAI
9a7a30aa12035418c835cdb4e05641cdb7a456b3
[ "MIT" ]
null
null
null
test.py
espectre/FashionAI
9a7a30aa12035418c835cdb4e05641cdb7a456b3
[ "MIT" ]
4
2019-01-29T01:33:13.000Z
2021-05-13T10:24:31.000Z
import torch import torch.nn as nn import torch.optim as optim import torchvision.transforms as transforms import os from torch.autograd import Variable import argparse import numpy as np from torch.optim.lr_scheduler import * import csv from model.resnet import resnet101 from data_pre.fashionTEST import ...
35.571429
124
0.72066
79668cc7c41965cccd68f99e57840ade5ca50d8d
1,554
py
Python
examples/Bering/bry_bering.py
ESMG/PyCNAL_legacy
a4f6547bce872068a5bb5751231017bc3e4a4503
[ "BSD-3-Clause" ]
null
null
null
examples/Bering/bry_bering.py
ESMG/PyCNAL_legacy
a4f6547bce872068a5bb5751231017bc3e4a4503
[ "BSD-3-Clause" ]
3
2018-01-23T23:23:24.000Z
2018-02-07T22:37:28.000Z
examples/Bering/bry_bering.py
ESMG/PyCNAL_legacy
a4f6547bce872068a5bb5751231017bc3e4a4503
[ "BSD-3-Clause" ]
null
null
null
import pycnal import pycnal_toolbox src_varname = ['zeta','temp','salt','u','v','ubar','vbar','uice', \ 'vice','aice','hice','tisrf','snow_thick','sfwat', \ 'ageice','ti','sig11','sig12','sig22','t0mk','s0mk'] # Change src_filename to your directory for the file's containing variable dat...
55.5
87
0.673102
79668cfa4cd4c68327acf8e8bfbe6cf0ad5f73e9
7,011
py
Python
diskmth/MainGUI.py
Disk-MTH/Json-maker
b28fb73eb862a5fee7dc979728c0e75643a0b149
[ "MIT" ]
2
2022-03-07T13:40:01.000Z
2022-03-08T16:52:57.000Z
diskmth/MainGUI.py
Disk-MTH/Json-maker
b28fb73eb862a5fee7dc979728c0e75643a0b149
[ "MIT" ]
null
null
null
diskmth/MainGUI.py
Disk-MTH/Json-maker
b28fb73eb862a5fee7dc979728c0e75643a0b149
[ "MIT" ]
null
null
null
from tkinter import * from PIL import Image, ImageTk import JsonManager import GUICommands import tradlib import Utils import os global correct_picture global selected_items def main_gui(): # Create the frame root = Tk() # Initialization of some useful variables: bool_check = BooleanVar() # ...
44.656051
119
0.682214
79668f65960ad6208869b86d01aecde8a8c630e0
20,223
py
Python
palet/AnnualDE.py
tmsis/palet
6d2483ce19dd9289e82a4bcb78404f1f8399be28
[ "CC0-1.0" ]
1
2022-02-10T21:15:55.000Z
2022-02-10T21:15:55.000Z
palet/AnnualDE.py
tmsis/palet
6d2483ce19dd9289e82a4bcb78404f1f8399be28
[ "CC0-1.0" ]
null
null
null
palet/AnnualDE.py
tmsis/palet
6d2483ce19dd9289e82a4bcb78404f1f8399be28
[ "CC0-1.0" ]
null
null
null
class AnnualDE(): columns = { 'Link Key': 'de_link_key', 'File Date': 'de_fil_dt', 'Annual DE Version': 'ann_de_vrsn', 'Medicaid ID Number': 'msis_ident_num', 'Social Security Number': 'ssn_num', 'Birth Date': 'birth_dt', 'Death Date': 'death_dt', 'Be...
61.844037
106
0.724175
7966900e89f8c18a82a36739bdfd6f3a7cc8a313
1,405
py
Python
examples/pybullet/examples/vrminitaur.py
felipeek/bullet3
6a59241074720e9df119f2f86bc01765917feb1e
[ "Zlib" ]
9,136
2015-01-02T00:41:45.000Z
2022-03-31T15:30:02.000Z
examples/pybullet/examples/vrminitaur.py
felipeek/bullet3
6a59241074720e9df119f2f86bc01765917feb1e
[ "Zlib" ]
2,424
2015-01-05T08:55:58.000Z
2022-03-30T19:34:55.000Z
examples/pybullet/examples/vrminitaur.py
felipeek/bullet3
6a59241074720e9df119f2f86bc01765917feb1e
[ "Zlib" ]
2,921
2015-01-02T10:19:30.000Z
2022-03-31T02:48:42.000Z
#script to track a robot with a VR controller attached to it. import time import pybullet as p import pybullet_data #first try to connect to shared memory (VR), if it fails use local GUI c = p.connect(p.SHARED_MEMORY) if (c < 0): c = p.connect(p.GUI) p.resetSimulation() p.setAdditionalSearchPath(pybullet_data.get...
26.509434
97
0.636299
7966929a07fa31bbd5478a4397447f7667be4f4f
172
py
Python
backend/api/periodic_tasks.py
MimbleWimble-Grin/grin-testnet-deposit-withdraw
7943f654b0a6d79d9a31c9719366e9df55d6816c
[ "MIT" ]
6
2021-03-11T21:02:21.000Z
2022-02-06T20:53:20.000Z
backend/api/periodic_tasks.py
pkariz/grin-testnet-exchange
b5c7a5b6322f60348e3b3db563183e2d6d2da234
[ "MIT" ]
1
2021-03-12T12:10:19.000Z
2021-03-12T12:20:32.000Z
backend/api/periodic_tasks.py
MimbleWimble-Grin/grin-testnet-deposit-withdraw
7943f654b0a6d79d9a31c9719366e9df55d6816c
[ "MIT" ]
3
2021-03-12T16:42:03.000Z
2021-04-19T07:11:33.000Z
from .tasks import update_deposits_and_withdrawals def periodically_run_job(): """This task will be run by APScheduler.""" update_deposits_and_withdrawals.send()
24.571429
50
0.77907
796692d3e277cac0245c20d3d0053c142ed6d8e5
338
py
Python
Chapter2_Python/Lists.py
thisisjako/UdemyTF
ee4102391ed6bd50f764955f732f5740425a9209
[ "MIT" ]
null
null
null
Chapter2_Python/Lists.py
thisisjako/UdemyTF
ee4102391ed6bd50f764955f732f5740425a9209
[ "MIT" ]
null
null
null
Chapter2_Python/Lists.py
thisisjako/UdemyTF
ee4102391ed6bd50f764955f732f5740425a9209
[ "MIT" ]
null
null
null
grade_ben = 1 grade_jan = 2 grade_peter = 1 # 0, 1, 2 grades = [1, 2, 1] grade_melissa = 4 print(grades) grades.append(grade_melissa) print(grades) grades.pop() print(grades) print("Bens grade: ", grades[0]) print("Jans grade: ", grades[1]) print("Peters grade: ", grades[2]) grades.pop(1...
15.363636
35
0.62426
796692f0cbcd3d5f953c5889ae9b44d0c14d37ec
348
py
Python
src/M5_assignment_2.py
posguy99/comp660-fall2020
0fbf5b660fe8863bf9754b5227fe47dd03dc2291
[ "MIT" ]
null
null
null
src/M5_assignment_2.py
posguy99/comp660-fall2020
0fbf5b660fe8863bf9754b5227fe47dd03dc2291
[ "MIT" ]
null
null
null
src/M5_assignment_2.py
posguy99/comp660-fall2020
0fbf5b660fe8863bf9754b5227fe47dd03dc2291
[ "MIT" ]
null
null
null
# recursive computation of factorial def factorial(num): ''' recursive computation of factorial num = factorial to return ''' if num == 0: return 1 else: return num * factorial(num - 1) def main(): print('Test case, print 5 factorial') print(factorial(5)) if __name_...
16.571429
42
0.597701