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
7956230e122ce165e4fc3263ada0d9d4bf36b35e
647
py
Python
alembic/versions/20220323-2155_.py
marutoraman/fastapi-awesome-template
65613e2227e02633491f582625d9611af9235975
[ "MIT" ]
null
null
null
alembic/versions/20220323-2155_.py
marutoraman/fastapi-awesome-template
65613e2227e02633491f582625d9611af9235975
[ "MIT" ]
null
null
null
alembic/versions/20220323-2155_.py
marutoraman/fastapi-awesome-template
65613e2227e02633491f582625d9611af9235975
[ "MIT" ]
null
null
null
"""empty message Revision ID: 7083cebf60fd Revises: 6d4151b10c3e Create Date: 2022-03-23 21:55:10.092971 """ import sqlalchemy as sa from alembic import op # revision identifiers, used by Alembic. revision = "7083cebf60fd" down_revision = "6d4151b10c3e" branch_labels = None depends_on = None def upgrade(): # ...
22.310345
73
0.68779
7956238d431c151ecac1a097c871f29a5c0365c0
2,130
py
Python
day-08/part-2/coco.py
evqna/adventofcode-2020
526bb9c87057d02bda4de9647932a0e25bdb3a5b
[ "MIT" ]
12
2020-11-30T19:22:18.000Z
2021-06-21T05:55:58.000Z
day-08/part-2/coco.py
evqna/adventofcode-2020
526bb9c87057d02bda4de9647932a0e25bdb3a5b
[ "MIT" ]
13
2020-11-30T17:27:22.000Z
2020-12-22T17:43:13.000Z
day-08/part-2/coco.py
evqna/adventofcode-2020
526bb9c87057d02bda4de9647932a0e25bdb3a5b
[ "MIT" ]
3
2020-12-01T08:49:40.000Z
2022-03-26T21:47:38.000Z
from tool.runners.python import SubmissionPy from collections import defaultdict class CocoSubmission(SubmissionPy): def run(self, s): """ :param s: input in string format :return: solution flag """ # Your code goes here instructions = [instr.split() for instr in s....
33.28125
75
0.497183
79562577f470e44e4b17a1946d3daa193e636202
319,768
py
Python
nova/compute/manager.py
bopopescu/nova-19
b898897e812333b1b93758e90e7d471c69a84c86
[ "Apache-2.0" ]
null
null
null
nova/compute/manager.py
bopopescu/nova-19
b898897e812333b1b93758e90e7d471c69a84c86
[ "Apache-2.0" ]
null
null
null
nova/compute/manager.py
bopopescu/nova-19
b898897e812333b1b93758e90e7d471c69a84c86
[ "Apache-2.0" ]
1
2020-07-24T01:18:46.000Z
2020-07-24T01:18:46.000Z
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright 2011 Justin Santa Barbara # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance wi...
46.579461
79
0.585384
7956267377cdac6ae1e58d6a1b16eb87ce218177
7,396
py
Python
scripts/visualize_policy_upper.py
ManUtdMoon/safety-starter-agents
d94f087f6eccb92833c6fc4b0705cb6607c334d7
[ "MIT" ]
null
null
null
scripts/visualize_policy_upper.py
ManUtdMoon/safety-starter-agents
d94f087f6eccb92833c6fc4b0705cb6607c334d7
[ "MIT" ]
null
null
null
scripts/visualize_policy_upper.py
ManUtdMoon/safety-starter-agents
d94f087f6eccb92833c6fc4b0705cb6607c334d7
[ "MIT" ]
null
null
null
#!/usr/bin/env python import time import numpy as np from safe_rl.utils.load_utils import load_policy, load_feasibiltiy from safe_rl.utils.logx import EpochLogger import matplotlib.pyplot as plt import os.path as osp import json import gym plt.rcParams.update({'font.size': 16}) def visualize_region(env_name, args, ge...
42.751445
214
0.553678
795627b835227b9f121f0cee7a1c2959702d259b
13,508
py
Python
docs/conf.py
philipnbbc/PyAV
6f9a1561f43e0cedc10c0ee33cd30bded7d34dc0
[ "BSD-3-Clause" ]
538
2020-05-01T00:55:03.000Z
2022-03-31T03:06:17.000Z
docs/conf.py
philipnbbc/PyAV
6f9a1561f43e0cedc10c0ee33cd30bded7d34dc0
[ "BSD-3-Clause" ]
301
2020-04-30T20:24:37.000Z
2022-03-31T21:26:59.000Z
docs/conf.py
philipnbbc/PyAV
6f9a1561f43e0cedc10c0ee33cd30bded7d34dc0
[ "BSD-3-Clause" ]
96
2020-05-01T23:56:50.000Z
2022-03-28T22:14:38.000Z
# -*- coding: utf-8 -*- # # PyAV documentation build configuration file, created by # sphinx-quickstart on Fri Dec 7 22:13:16 2012. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All co...
27.288889
98
0.623927
7956287ddae85a8c07c28d9a76a7ae268241c698
1,399
py
Python
python/setup.py
Zelenyy/phd-code
d5b8bfefd2418a915dde89f7da2cb6683f438556
[ "MIT" ]
null
null
null
python/setup.py
Zelenyy/phd-code
d5b8bfefd2418a915dde89f7da2cb6683f438556
[ "MIT" ]
null
null
null
python/setup.py
Zelenyy/phd-code
d5b8bfefd2418a915dde89f7da2cb6683f438556
[ "MIT" ]
null
null
null
#!/usr/bin/python """ """ import os import setuptools with open(os.path.join(os.path.dirname(__file__), "README.md"), "r") as fh: long_description = fh.read() NUMPY_MIN_VERSION = '1.8.2' SCIPY_MIN_VERSION = '1.3.1' # PANDAS_MIN_VERSION = '' MATPLOTLIB_MIN_VERSION = '3.1.1' PYTABLES_MIN_VERSION = '3.5.1' setuptoo...
27.98
92
0.617584
795628a8e736dac1ba01982255ba9e29e3a04194
1,359
py
Python
django_test/django_test/urls.py
MachineLearningIsEasy/python_lesson_26
24a219862c5e0577a804e7365cf441f45846f9ae
[ "MIT" ]
null
null
null
django_test/django_test/urls.py
MachineLearningIsEasy/python_lesson_26
24a219862c5e0577a804e7365cf441f45846f9ae
[ "MIT" ]
null
null
null
django_test/django_test/urls.py
MachineLearningIsEasy/python_lesson_26
24a219862c5e0577a804e7365cf441f45846f9ae
[ "MIT" ]
null
null
null
"""django_test URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-b...
33.146341
80
0.702723
7956295d2bfc881175d2942d2c3086ec24c06062
4,322
py
Python
certbot/certbot/plugins/storage.py
radek-sprta/certbot
a6772043d6631341b525c4d69b47d6ef2d8b5d02
[ "Apache-2.0" ]
1
2020-01-23T05:57:42.000Z
2020-01-23T05:57:42.000Z
certbot/certbot/plugins/storage.py
radek-sprta/certbot
a6772043d6631341b525c4d69b47d6ef2d8b5d02
[ "Apache-2.0" ]
null
null
null
certbot/certbot/plugins/storage.py
radek-sprta/certbot
a6772043d6631341b525c4d69b47d6ef2d8b5d02
[ "Apache-2.0" ]
null
null
null
"""Plugin storage class.""" import json import logging from acme.magic_typing import Any # pylint: disable=unused-import, no-name-in-module from acme.magic_typing import Dict # pylint: disable=unused-import, no-name-in-module from certbot import errors from certbot.compat import filesystem from certbot.compat import...
34.854839
88
0.600648
79562a3bf731559738201484e63946bd639a313d
140
py
Python
Food/apps.py
PopaGabriel/Food-Ecommerce-Site
7f7cde94939f02f13df5afa865cddc72981481e2
[ "MIT" ]
1
2021-08-12T08:46:56.000Z
2021-08-12T08:46:56.000Z
Food/apps.py
PopaGabriel/Food-Ecommerce-Site
7f7cde94939f02f13df5afa865cddc72981481e2
[ "MIT" ]
null
null
null
Food/apps.py
PopaGabriel/Food-Ecommerce-Site
7f7cde94939f02f13df5afa865cddc72981481e2
[ "MIT" ]
null
null
null
from django.apps import AppConfig class FoodConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'Food'
20
56
0.75
79562a4653dc7daf335f2dd82954a5d4ff9ddc38
2,299
py
Python
test/functional/p2p_pos_fakestake.py
braveheart12/DogeCash
5138cbe1adb8a82f014b8706255e47407408d04f
[ "MIT" ]
null
null
null
test/functional/p2p_pos_fakestake.py
braveheart12/DogeCash
5138cbe1adb8a82f014b8706255e47407408d04f
[ "MIT" ]
2
2019-05-02T13:30:58.000Z
2019-05-06T11:15:36.000Z
test/functional/p2p_pos_fakestake.py
braveheart12/DogeCash
5138cbe1adb8a82f014b8706255e47407408d04f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2019 The DogeCash Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Covers the scenario of a PoS block where the coinstake input prevout is already spent. ''' from time imp...
38.966102
115
0.671596
79562ae454248e427a661ec32b3ec6a49eb050d8
5,119
py
Python
Algoritm_of_Gamp.py
Quimica-supramolecular/scripts_graficas
2db5352bd1e8080de7f71db172c1f85d053f379c
[ "MIT" ]
null
null
null
Algoritm_of_Gamp.py
Quimica-supramolecular/scripts_graficas
2db5352bd1e8080de7f71db172c1f85d053f379c
[ "MIT" ]
null
null
null
Algoritm_of_Gamp.py
Quimica-supramolecular/scripts_graficas
2db5352bd1e8080de7f71db172c1f85d053f379c
[ "MIT" ]
null
null
null
#Algoritm of Gamp from autograd.differential_operators import jacobian import matplotlib.pyplot as plt import numpy as np import pandas as pd from scipy.optimize import minimize from autograd import elementwise_grad as egrad from autograd import grad # This function open window for search local file .xlxs...
25.216749
126
0.542684
79562b1752c3e67509544863eaaa19db6472c364
1,495
py
Python
grizzly/steps/setup.py
boffman/grizzly
eabe7b8f6cd7098914a1473928135c1e05758af7
[ "MIT" ]
null
null
null
grizzly/steps/setup.py
boffman/grizzly
eabe7b8f6cd7098914a1473928135c1e05758af7
[ "MIT" ]
null
null
null
grizzly/steps/setup.py
boffman/grizzly
eabe7b8f6cd7098914a1473928135c1e05758af7
[ "MIT" ]
null
null
null
from typing import cast from os import environ from behave import given, then # pylint: disable=no-name-in-module from behave.runner import Context from ..context import GrizzlyContext @then(u'ask for value of variable "{name}"') @given(u'ask for value of variable "{name}"') def step_setup_variable_value_ask(conte...
38.333333
112
0.724415
79562b8ef217325096ccb9e539997fbc94135be6
1,525
py
Python
pages/migrations/0003_auto_20170621_1537.py
quis/government-form-explorer
57073bff91c8e72e63217b7b0e42491076f021fb
[ "MIT" ]
null
null
null
pages/migrations/0003_auto_20170621_1537.py
quis/government-form-explorer
57073bff91c8e72e63217b7b0e42491076f021fb
[ "MIT" ]
1
2018-06-14T13:59:07.000Z
2018-06-14T13:59:07.000Z
pages/migrations/0003_auto_20170621_1537.py
quis/government-form-explorer
57073bff91c8e72e63217b7b0e42491076f021fb
[ "MIT" ]
6
2018-06-13T09:50:01.000Z
2021-04-10T19:42:32.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.1 on 2017-06-21 15:37 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import taggit.managers class Migration(migrations.Migration): dependencies = [ ('contenttypes', '0002_remove_content_...
41.216216
216
0.651148
79562c1d901bf9362a9330a5245aa9ccfeb8f9df
5,003
py
Python
covid_tracker/crud.py
KahfiA/covid-tracker-backend
a1f627dc7e20d8b23aff7762b55e1e44553e98f2
[ "Apache-2.0" ]
null
null
null
covid_tracker/crud.py
KahfiA/covid-tracker-backend
a1f627dc7e20d8b23aff7762b55e1e44553e98f2
[ "Apache-2.0" ]
null
null
null
covid_tracker/crud.py
KahfiA/covid-tracker-backend
a1f627dc7e20d8b23aff7762b55e1e44553e98f2
[ "Apache-2.0" ]
null
null
null
from datetime import date, datetime from sqlalchemy import sql from sqlalchemy.orm import Session import math from geopy import distance from . import models, schemas def get_user(db: Session, user_id: int): return db.query(models.User).filter(models.User.user_id == user_id).first() def get_users(db: Session, sk...
37.616541
163
0.673996
79562e0caf2adf1297b50ad386ea4edc18205a22
2,345
py
Python
main.py
ahnorr/Naive-Resume-Matching
22e0bdc638e7bfae4d2771782a291f7bab0c99a6
[ "Apache-2.0" ]
null
null
null
main.py
ahnorr/Naive-Resume-Matching
22e0bdc638e7bfae4d2771782a291f7bab0c99a6
[ "Apache-2.0" ]
null
null
null
main.py
ahnorr/Naive-Resume-Matching
22e0bdc638e7bfae4d2771782a291f7bab0c99a6
[ "Apache-2.0" ]
null
null
null
from tf_idf import do_tfidf import argparse import re import os import Similar import pandas as pd from flask import Flask, request, send_from_directory app = Flask(__name__) app.config["PATH"] = os.path.dirname(os.path.realpath(__file__)) @app.route('/extract', methods=["POST"]) def hello(): if list(request.json...
37.222222
89
0.596588
79562f15e89fd1f08a3e980a7b78c693fac14971
23,323
py
Python
upconvert/writer/t/geda_t.py
EasyPCB/schematic-file-converter
0d575171e2aa19a35ca15d5e39c716287d885ec4
[ "Apache-2.0" ]
1
2020-09-05T03:41:18.000Z
2020-09-05T03:41:18.000Z
upconvert/writer/t/geda_t.py
EasyPCB/schematic-file-converter
0d575171e2aa19a35ca15d5e39c716287d885ec4
[ "Apache-2.0" ]
null
null
null
upconvert/writer/t/geda_t.py
EasyPCB/schematic-file-converter
0d575171e2aa19a35ca15d5e39c716287d885ec4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # encoding: utf-8 #pylint: disable=R0904 """ The geda writer test class """ # upconvert.py - A universal hardware design file format converter using # Format: upverter.com/resources/open-json-format/ # Development: github.com/upverter/schematic-file-converter # # Copyright 2011 Upverter, Inc....
33.035411
107
0.550658
79562fb42fc1642730179f0234e3051e3fcca5e5
11,284
py
Python
xgcm/gridops.py
yz3062/xgcm
d3555b43e494c0641d2b3e7865d819cb02eebaed
[ "MIT" ]
1
2020-05-22T14:48:16.000Z
2020-05-22T14:48:16.000Z
xgcm/gridops.py
yz3062/xgcm
d3555b43e494c0641d2b3e7865d819cb02eebaed
[ "MIT" ]
4
2021-07-26T15:10:42.000Z
2021-09-13T15:06:17.000Z
xgcm/gridops.py
andersy005/xgcm
95f4f33d72d2add00136e27f6b3bedecb97d4d77
[ "MIT" ]
null
null
null
# python 3 compatiblity import numpy as np import xarray as xr # make some functions for taking divergence from dask import array as da def _append_to_name(array, append): try: return array.name + "_" + append except TypeError: return append class GCMDataset(object): """Representation ...
33.987952
87
0.579848
79562fb4cecb215ce0c350e1f8572d999345b21f
24,284
py
Python
NodeGraphQt/qgraphics/node_base.py
MaGrosseGit/NodeGraphQt
cc79d0c1285290b485d2a2376a0cbec786b5af2f
[ "MIT" ]
null
null
null
NodeGraphQt/qgraphics/node_base.py
MaGrosseGit/NodeGraphQt
cc79d0c1285290b485d2a2376a0cbec786b5af2f
[ "MIT" ]
null
null
null
NodeGraphQt/qgraphics/node_base.py
MaGrosseGit/NodeGraphQt
cc79d0c1285290b485d2a2376a0cbec786b5af2f
[ "MIT" ]
null
null
null
#!/usr/bin/python from .. import QtGui, QtCore, QtWidgets from ..constants import (IN_PORT, OUT_PORT, NODE_WIDTH, NODE_HEIGHT, NODE_ICON_SIZE, ICON_NODE_BASE, NODE_SEL_COLOR, NODE_SEL_BORDER_COLOR, PORT_FALLOFF, Z_VAL_N...
34.154712
82
0.565722
79563210ee66e8a3ef51b30587c4e4ccef13f529
2,985
py
Python
src/marapp_metrics/helpers/earthengine.py
natgeosociety/marapp-metrics
f3883452fbbe4101c7a6a6481316fe78246c8be2
[ "Apache-2.0" ]
null
null
null
src/marapp_metrics/helpers/earthengine.py
natgeosociety/marapp-metrics
f3883452fbbe4101c7a6a6481316fe78246c8be2
[ "Apache-2.0" ]
4
2020-11-25T12:03:26.000Z
2022-01-22T13:58:02.000Z
src/marapp_metrics/helpers/earthengine.py
natgeosociety/marapp-metrics
f3883452fbbe4101c7a6a6481316fe78246c8be2
[ "Apache-2.0" ]
1
2021-02-23T18:58:10.000Z
2021-02-23T18:58:10.000Z
""" Copyright 2018-2020 National Geographic Society Use of this software does not constitute endorsement by National Geographic Society (NGS). The NGS name and NGS logo may not be used for any purpose without written permission from NGS. Licensed under the Apache License, Version 2.0 (the "License"); you ma...
29.85
88
0.610385
7956331882cd36cb0f3459af23461abe7158a399
21,835
py
Python
pyevolve_graph.py
UJICompSci/ga-team-rocket
7aecf21fb1258a954399d339d918b782b3d5b192
[ "MIT" ]
1
2017-02-08T16:54:59.000Z
2017-02-08T16:54:59.000Z
pyevolve_graph.py
UJICompSci/ga-team-rocket
7aecf21fb1258a954399d339d918b782b3d5b192
[ "MIT" ]
null
null
null
pyevolve_graph.py
UJICompSci/ga-team-rocket
7aecf21fb1258a954399d339d918b782b3d5b192
[ "MIT" ]
null
null
null
#!/usr/bin/python # This code is part of Pyevolve. # It requires matplotlib v.0.98.5.0+ from optparse import OptionParser from optparse import OptionGroup def graph_pop_heatmap_raw(pop, minimize, colormap="jet", filesave=None): pylab.imshow(pop, aspect="auto", interpolation="gaussian", cmap=matplotlib.cm.__dict__[...
35.912829
262
0.620151
795633d04d3efe0c39e141a64ffe0b7945aa5db9
2,404
py
Python
monai/deploy/packager/package_command.py
gigony/test_readthedocs
e8c820ecda15aa59b50c1fe7674cbef00e24553d
[ "Apache-2.0" ]
null
null
null
monai/deploy/packager/package_command.py
gigony/test_readthedocs
e8c820ecda15aa59b50c1fe7674cbef00e24553d
[ "Apache-2.0" ]
null
null
null
monai/deploy/packager/package_command.py
gigony/test_readthedocs
e8c820ecda15aa59b50c1fe7674cbef00e24553d
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 MONAI Consortium # 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, s...
51.148936
120
0.742097
795635899080ccaa0682e15ee4999100923b4ed5
8,865
py
Python
geomstats/_backend/numpy/__init__.py
mvesin/geomstats
5bed571a57fb41c7f071db07d4f67dd623fc4f94
[ "MIT" ]
null
null
null
geomstats/_backend/numpy/__init__.py
mvesin/geomstats
5bed571a57fb41c7f071db07d4f67dd623fc4f94
[ "MIT" ]
null
null
null
geomstats/_backend/numpy/__init__.py
mvesin/geomstats
5bed571a57fb41c7f071db07d4f67dd623fc4f94
[ "MIT" ]
1
2021-03-14T06:54:09.000Z
2021-03-14T06:54:09.000Z
"""Numpy based computation backend.""" import autograd # NOQA import autograd.numpy as np from autograd.numpy import ( # NOQA abs, all, allclose, amax, amin, any, arange, arccos, arccosh, arcsin, arctan2, arctanh, argmax, argmin, array, broadcast_arrays,...
23.514589
78
0.604512
7956371aa42f8963443b27b5ee00bc92efc12b63
2,350
py
Python
eth/vm/opcode_values.py
dbfreem/py-evm
02a1f6f38884b1f7a89640c2095ea5b0f20687c3
[ "MIT" ]
1,641
2017-11-24T04:24:22.000Z
2022-03-31T14:59:30.000Z
eth/vm/opcode_values.py
UniqueMR/py-evm
026ee20f8d9b70d7c1b6a4fb9484d5489d425e54
[ "MIT" ]
1,347
2017-11-23T10:37:36.000Z
2022-03-20T16:31:44.000Z
eth/vm/opcode_values.py
UniqueMR/py-evm
026ee20f8d9b70d7c1b6a4fb9484d5489d425e54
[ "MIT" ]
567
2017-11-22T18:03:27.000Z
2022-03-28T17:49:08.000Z
# # Stop and Arithmetic # STOP = 0x00 ADD = 0x01 MUL = 0x02 SUB = 0x03 DIV = 0x04 SDIV = 0x05 MOD = 0x06 SMOD = 0x07 ADDMOD = 0x08 MULMOD = 0x09 EXP = 0x0a SIGNEXTEND = 0x0b # # Comparison and Bitwise Logic # LT = 0x10 GT = 0x11 SLT = 0x12 SGT = 0x13 EQ = 0x14 ISZERO = 0x15 AND = 0x16 OR = 0x17 XOR = 0x18 NOT = 0x19 ...
11.868687
95
0.7
79563780668a445c573bea74278acc1f8fb7803e
12,528
py
Python
bokeh/io/export.py
daledali/bokeh
c4f0debe7bd230d7e1aa8500716e8e997c04f528
[ "BSD-3-Clause" ]
1
2020-01-19T03:17:18.000Z
2020-01-19T03:17:18.000Z
bokeh/io/export.py
daledali/bokeh
c4f0debe7bd230d7e1aa8500716e8e997c04f528
[ "BSD-3-Clause" ]
1
2021-05-12T10:14:45.000Z
2021-05-12T10:14:45.000Z
bokeh/io/export.py
daledali/bokeh
c4f0debe7bd230d7e1aa8500716e8e997c04f528
[ "BSD-3-Clause" ]
1
2020-01-21T12:03:58.000Z
2020-01-21T12:03:58.000Z
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2019, Anaconda, Inc., and Bokeh Contributors. # All rights reserved. # # The full license is in the file LICENSE.txt, distributed with this software. #-------------------------------------------------------------------...
31.877863
132
0.587324
79563789ff9cd5a2c587eb145faba96ff3283ada
3,132
py
Python
5.3 - Data Collection/forum/forum_scraping/forum_scraping/settings.py
dearden/thesis_flat_earth
2604a140ccce266d81c7d383e6e66d166e0d67f3
[ "MIT" ]
null
null
null
5.3 - Data Collection/forum/forum_scraping/forum_scraping/settings.py
dearden/thesis_flat_earth
2604a140ccce266d81c7d383e6e66d166e0d67f3
[ "MIT" ]
null
null
null
5.3 - Data Collection/forum/forum_scraping/forum_scraping/settings.py
dearden/thesis_flat_earth
2604a140ccce266d81c7d383e6e66d166e0d67f3
[ "MIT" ]
null
null
null
# Scrapy settings for forum_scraping project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # https://docs.scrapy.org/en/latest/topics/settings.html # https://docs.scrapy.org/en/latest/topics/downloader-mid...
35.191011
102
0.783844
79563790a2f3809ab65037b146e4c35d89ac7d24
2,148
py
Python
devicedata/device/tests/test_views.py
sreeks87/devicedata
530032e949828d5949319c8889183c362133684e
[ "Apache-2.0" ]
null
null
null
devicedata/device/tests/test_views.py
sreeks87/devicedata
530032e949828d5949319c8889183c362133684e
[ "Apache-2.0" ]
null
null
null
devicedata/device/tests/test_views.py
sreeks87/devicedata
530032e949828d5949319c8889183c362133684e
[ "Apache-2.0" ]
null
null
null
from django.test import TestCase from django.urls import reverse from device.models import Device class DeviceAPIViewTest(TestCase): @classmethod def setUpTestData(cls): Device.objects.create(device_id="1dae7442-a8ac-47d8-83f9-70672cdb0694",customer_id="1dae7442-a8ac-47d8-83f9-70672cdb0694",timestamp="...
40.528302
181
0.638268
795637beaced1953cda120e9a2eed7d31928fcd1
1,001
py
Python
contrib/Phidgets/PhidgetLibrary.py
nmeier/simscript
87a2beb2694b754156730de92159d2f4425bd057
[ "MIT" ]
10
2015-03-16T14:28:36.000Z
2021-12-21T02:04:14.000Z
libs/python-phidget/build/lib.linux-i686-2.7/Phidgets/PhidgetLibrary.py
trevstanhope/cv-drive
03a59a3debee7b9d3df45b5277cb621bed291554
[ "MIT" ]
4
2016-10-17T14:17:39.000Z
2021-09-18T07:09:55.000Z
libs/python-phidget/build/lib.linux-i686-2.7/Phidgets/PhidgetLibrary.py
trevstanhope/cv-drive
03a59a3debee7b9d3df45b5277cb621bed291554
[ "MIT" ]
7
2016-10-05T03:25:00.000Z
2021-07-30T07:52:09.000Z
"""Copyright 2010 Phidgets Inc. This work is licensed under the Creative Commons Attribution 2.5 Canada License. To view a copy of this license, visit http://creativecommons.org/licenses/by/2.5/ca/ """ __author__ = 'Adam Stelmack' __version__ = '2.1.8' __date__ = 'May 17 2010' import threading from ctypes ...
35.75
126
0.64036
795637f2ac8ee05e7a72fea28477b820bb7f5fc0
53,851
py
Python
python/ccxt/binance.py
OliverNChalk/ccxt
fcf55e88f3523d2969f905cbed3b4deec1433a5e
[ "MIT" ]
null
null
null
python/ccxt/binance.py
OliverNChalk/ccxt
fcf55e88f3523d2969f905cbed3b4deec1433a5e
[ "MIT" ]
null
null
null
python/ccxt/binance.py
OliverNChalk/ccxt
fcf55e88f3523d2969f905cbed3b4deec1433a5e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.base.exchange import Exchange import math import json from ccxt.base.errors import ExchangeError from ccxt.base.errors import Aut...
43.674777
355
0.494828
7956387fe8ade1233a9c477bcf327e74e50f7435
1,502
py
Python
software/serial_read_versions.py
ccimponeriu1996/Haasoscope
350f8766017e3a97b276ff5982e6519400b3a8c7
[ "MIT" ]
89
2017-12-04T06:40:47.000Z
2022-03-21T23:40:32.000Z
software/serial_read_versions.py
ccimponeriu1996/Haasoscope
350f8766017e3a97b276ff5982e6519400b3a8c7
[ "MIT" ]
49
2018-05-01T21:01:07.000Z
2022-02-11T17:10:59.000Z
software/serial_read_versions.py
ccimponeriu1996/Haasoscope
350f8766017e3a97b276ff5982e6519400b3a8c7
[ "MIT" ]
32
2018-05-08T17:11:15.000Z
2022-02-20T08:20:28.000Z
from serial import Serial from struct import unpack import time serialtimeout=1.0 ser=Serial("COM5",1500000,timeout=serialtimeout) waitlittle = .1 #seconds #This is a _minimal_ set of example commands needed to send to a board to initialize it properly ser.write(chr(0)); ser.write(chr(20)) #set board id to...
41.722222
172
0.73502
795638979a9dc6a1784c87b7d29f6bca2eed9cbc
6,265
py
Python
mumax3c/tests/test_util.py
ubermag/mumaxc
73098ada436cb4e16699f33068a8391a679b49e9
[ "BSD-3-Clause" ]
null
null
null
mumax3c/tests/test_util.py
ubermag/mumaxc
73098ada436cb4e16699f33068a8391a679b49e9
[ "BSD-3-Clause" ]
null
null
null
mumax3c/tests/test_util.py
ubermag/mumaxc
73098ada436cb4e16699f33068a8391a679b49e9
[ "BSD-3-Clause" ]
null
null
null
import discretisedfield as df import micromagneticmodel as mm import numpy as np import pytest import mumax3c as mc def test_mumax3_regions__no_subregion(): mesh = df.Mesh(p1=(0, 0, 0), p2=(2, 2, 2), cell=(1, 1, 1)) system = mm.System(name="test") system.m = df.Field(mesh, dim=3, value=(0, 0, 1), norm=1)...
37.51497
87
0.611652
795638d7a09d835e1d98729a288090c94bc2de69
2,504
py
Python
ecosys3D/diagnostics/cfl_monitor.py
cbrockw/ecosys3D
5e3b125688f571d1a0a2dce4789d7de0831e91c9
[ "MIT" ]
null
null
null
ecosys3D/diagnostics/cfl_monitor.py
cbrockw/ecosys3D
5e3b125688f571d1a0a2dce4789d7de0831e91c9
[ "MIT" ]
null
null
null
ecosys3D/diagnostics/cfl_monitor.py
cbrockw/ecosys3D
5e3b125688f571d1a0a2dce4789d7de0831e91c9
[ "MIT" ]
null
null
null
from loguru import logger from .diagnostic import ecoDiagnostic from .. import eco_method from ..distributed import global_max class CFLMonitor(ecoDiagnostic): """Diagnostic monitoring the maximum CFL number of the solution to detect instabilities. Writes output to stdout (no binary output). """ ...
37.939394
103
0.529153
79563acc36538e02e3d35089a07c6d5a72793a61
4,248
py
Python
sparseconvnet/submanifoldConvolution.py
THU-luvision/Occuseg
163e1fba6f5d9afd4ee2a4202118bc81d8f7c5e4
[ "BSD-3-Clause" ]
1
2022-03-29T18:26:11.000Z
2022-03-29T18:26:11.000Z
sparseconvnet/submanifoldConvolution.py
THU-luvision/Occuseg
163e1fba6f5d9afd4ee2a4202118bc81d8f7c5e4
[ "BSD-3-Clause" ]
null
null
null
sparseconvnet/submanifoldConvolution.py
THU-luvision/Occuseg
163e1fba6f5d9afd4ee2a4202118bc81d8f7c5e4
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. # 'SubmanifoldConvolution == SubmanifoldConvolution' import sparseconvnet import sparseconvnet.SCN from torch.autograd imp...
32.930233
113
0.607109
79563b8ad2b5999fa6b0fc730048c2fd71a7951d
2,243
py
Python
OpenCV/GettingStarted/join_images.py
nipundavid/PythonPlaybook
cb35a6587cebf3febcdbd5dd30f5e69ab89f9a93
[ "MIT" ]
null
null
null
OpenCV/GettingStarted/join_images.py
nipundavid/PythonPlaybook
cb35a6587cebf3febcdbd5dd30f5e69ab89f9a93
[ "MIT" ]
null
null
null
OpenCV/GettingStarted/join_images.py
nipundavid/PythonPlaybook
cb35a6587cebf3febcdbd5dd30f5e69ab89f9a93
[ "MIT" ]
null
null
null
import cv2 import numpy as np '''Used to stack images, if we are working with multiple images, it's ticky to manage so many windows so we put them in one image''' img = cv2.imread("Resources/test_image.png") hor = np.hstack((img, img)) cv2.imshow("Horizontal Stack", hor) ver = np.vstack((img, img)) cv2....
39.350877
120
0.572893
79563bc2b75be98e2b9d8e5a4a164d76264c65e0
2,406
py
Python
examples/experimental/scala-parallel-recommendation-entitymap/data/import_eventserver.py
saikiran40cs/PredictionIO
ba987b60ba0daeeacdb12214ecf4652fe13fb96c
[ "Apache-2.0" ]
21
2016-03-29T19:05:10.000Z
2020-07-29T04:28:30.000Z
examples/experimental/scala-parallel-recommendation-entitymap/data/import_eventserver.py
saikiran40cs/PredictionIO
ba987b60ba0daeeacdb12214ecf4652fe13fb96c
[ "Apache-2.0" ]
19
2016-03-17T16:10:14.000Z
2018-07-29T15:16:06.000Z
examples/experimental/scala-parallel-recommendation-entitymap/data/import_eventserver.py
saikiran40cs/PredictionIO
ba987b60ba0daeeacdb12214ecf4652fe13fb96c
[ "Apache-2.0" ]
24
2016-06-06T19:40:56.000Z
2020-04-11T01:23:14.000Z
""" Import sample data for recommendation engine """ import predictionio import argparse import random SEED = 3 def import_events(client): random.seed(SEED) count = 0 print "Importing data..." # generate 10 users, with user uid1,2,....,10 # with some random attributes user_ids = [ ("uid"+str(i)) for i i...
26.43956
72
0.612219
79563d4d1bb3bd8ef6b31221c48f3ec5c3bcdd1c
503
py
Python
load/__init__.py
KenzaxTazi/Himalayan-Water-Security
edaadf1502ca92c2e196c6f2eded067bb93a360e
[ "MIT" ]
4
2020-12-30T18:33:31.000Z
2021-04-28T07:53:35.000Z
load/__init__.py
KenzaxTazi/Himalayan-Water-Security
edaadf1502ca92c2e196c6f2eded067bb93a360e
[ "MIT" ]
null
null
null
load/__init__.py
KenzaxTazi/Himalayan-Water-Security
edaadf1502ca92c2e196c6f2eded067bb93a360e
[ "MIT" ]
1
2021-03-15T16:12:55.000Z
2021-03-15T16:12:55.000Z
""" Datasets should all have the same format so they can be easily used together. In particular, they should be exported from the submodule: - as a xarray DataArray or saved asnetcdf file format - with 'lon' as the longitude variable name in °E (float) - with 'lat' as the latitude variable name in °N (float) - with 't...
41.916667
78
0.753479
79563e09594ed7fc8568c61ac8eed1d2447c771f
2,765
py
Python
apps/principal/urls.py
jeffessongomes/frwsaude
14f821d6a4e551e410b56eee90b87bddbb049e58
[ "MIT" ]
1
2021-07-03T02:02:45.000Z
2021-07-03T02:02:45.000Z
apps/principal/urls.py
jeffessongomes/frwsaude
14f821d6a4e551e410b56eee90b87bddbb049e58
[ "MIT" ]
null
null
null
apps/principal/urls.py
jeffessongomes/frwsaude
14f821d6a4e551e410b56eee90b87bddbb049e58
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('', views.index, name="index"), path('add_doubt', views.add_doubt, name="add_doubt"), path('edit_doubt/<int:pk>', views.edit_doubt, name="edit_doubt"), path('list_doubt', views.list_doubt, name="list_doubt"), path('delete_doubt/<...
47.672414
101
0.729476
79563e2ab03832dbe7becd2d249ffc853f8ddf11
432
py
Python
language_features/itertools/accumulate_intro.py
PrasadHonrao/python-samples
faa48aa3eaf2d67b8cef0114e1f6ef08e2c1300a
[ "MIT" ]
3
2018-08-20T13:00:01.000Z
2021-09-18T04:19:46.000Z
language_features/itertools/accumulate_intro.py
PrasadHonrao/python-samples
faa48aa3eaf2d67b8cef0114e1f6ef08e2c1300a
[ "MIT" ]
1
2021-06-25T20:25:02.000Z
2021-08-19T22:44:31.000Z
language_features/itertools/accumulate_intro.py
PrasadHonrao/python-samples
faa48aa3eaf2d67b8cef0114e1f6ef08e2c1300a
[ "MIT" ]
1
2021-09-18T23:51:20.000Z
2021-09-18T23:51:20.000Z
# accumulate is a generator function that returns accumulated sums of the elements of an iterable. # accumulate(range(5)) = [0, 1, 3, 6, 10] # accumulate(range(5), operator.mul) = [0, 1, 2, 6, 24] # accumulate(range(5), operator.mul, 1) = [0, 1, 2, 6, 24] from itertools import accumulate a = [1, 2, 3, 4] acc = accum...
24
98
0.678241
795640a04a699f1a74fe376d654785cc17e4f3cb
2,141
py
Python
reddit_comments/reddit/redditapi.py
martinlecs/reddit_comments
8a212e81f595be5767e9ff6bf27291081e9a5d7e
[ "MIT" ]
null
null
null
reddit_comments/reddit/redditapi.py
martinlecs/reddit_comments
8a212e81f595be5767e9ff6bf27291081e9a5d7e
[ "MIT" ]
null
null
null
reddit_comments/reddit/redditapi.py
martinlecs/reddit_comments
8a212e81f595be5767e9ff6bf27291081e9a5d7e
[ "MIT" ]
null
null
null
import praw import yaml import os root_dir = os.path.dirname(os.path.dirname(__file__)) class NoPostsInSubredditError(Exception): pass class InvalidLimitError(Exception): pass class RedditAPI: def __init__(self, subreddit): self.__reddit = praw.Reddit(**self._getConfig()) self.subred...
27.101266
119
0.634283
795640f7f23de69c0c13ed0ee2f98525a8b9efa3
62
py
Python
tests/__init__.py
practicalci/practci
47d0600918762373992da0ba067dbb84a3e4d633
[ "BSD-3-Clause" ]
null
null
null
tests/__init__.py
practicalci/practci
47d0600918762373992da0ba067dbb84a3e4d633
[ "BSD-3-Clause" ]
null
null
null
tests/__init__.py
practicalci/practci
47d0600918762373992da0ba067dbb84a3e4d633
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Unit test package for practci."""
15.5
36
0.564516
7956410279cd4a54ef4311c377d8b2265eff4874
716
py
Python
setup.py
osteele/pyfsa
58a44106d3e3918a17a5a106584d1a91636f9d52
[ "Artistic-1.0-Perl" ]
7
2015-11-25T10:52:43.000Z
2018-09-11T21:35:25.000Z
setup.py
osteele/pyfsa
58a44106d3e3918a17a5a106584d1a91636f9d52
[ "Artistic-1.0-Perl" ]
null
null
null
setup.py
osteele/pyfsa
58a44106d3e3918a17a5a106584d1a91636f9d52
[ "Artistic-1.0-Perl" ]
7
2015-12-23T05:22:20.000Z
2021-07-13T19:17:32.000Z
from distutils.core import setup setup(name="FSA", version="1.0", description="FSA utilities", long_description= """This package contains functions for manipulating Finite-State Automata (FSAs). It includes functions for minimizing and determinizing FSAs, computing FSA intersections and un...
51.142857
325
0.695531
7956414eb93d34184b88049cce5b472a79859365
3,832
py
Python
tools/c7n_mailer/c7n_mailer/azure/sendgrid_delivery.py
CliffJumper/cloud-custodian
47d2f0aa990d2179c8f6764ac53c12720069ddcb
[ "Apache-2.0" ]
null
null
null
tools/c7n_mailer/c7n_mailer/azure/sendgrid_delivery.py
CliffJumper/cloud-custodian
47d2f0aa990d2179c8f6764ac53c12720069ddcb
[ "Apache-2.0" ]
null
null
null
tools/c7n_mailer/c7n_mailer/azure/sendgrid_delivery.py
CliffJumper/cloud-custodian
47d2f0aa990d2179c8f6764ac53c12720069ddcb
[ "Apache-2.0" ]
1
2019-11-06T16:54:06.000Z
2019-11-06T16:54:06.000Z
# Copyright 2018 Capital One Services, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
43.545455
97
0.622651
795641d1339ed1a1e9393718ec4865384ba0d0b1
864
py
Python
lib/model/nms/nms_cpu.py
juwangvsu/faster-rcnn
2df9e6475284ab47de9cfcb90ff63d6a81ce8559
[ "MIT" ]
681
2019-04-10T08:24:25.000Z
2022-03-31T20:15:05.000Z
lib/model/nms/nms_cpu.py
juwangvsu/faster-rcnn
2df9e6475284ab47de9cfcb90ff63d6a81ce8559
[ "MIT" ]
83
2019-04-12T11:19:08.000Z
2022-03-16T07:02:52.000Z
lib/model/nms/nms_cpu.py
juwangvsu/faster-rcnn
2df9e6475284ab47de9cfcb90ff63d6a81ce8559
[ "MIT" ]
182
2019-04-10T09:06:08.000Z
2022-03-15T02:18:52.000Z
from __future__ import absolute_import import numpy as np import torch def nms_cpu(dets, thresh): dets = dets.numpy() x1 = dets[:, 0] y1 = dets[:, 1] x2 = dets[:, 2] y2 = dets[:, 3] scores = dets[:, 4] areas = (x2 - x1 + 1) * (y2 - y1 + 1) order = scores.argsort()[::-1] keep = []...
23.351351
59
0.503472
795642a2f44c8b401998c9a91fb9f3000c04d2fa
5,623
py
Python
list_tree_and_table/treeview/tree-in-model-view.py
shuge/Qt-Python-Binding-Examples
efe40c8af6c3e0805a5a7c3d053b8c8bf893a803
[ "BSD-3-Clause" ]
179
2015-01-08T10:21:28.000Z
2020-03-24T07:03:04.000Z
table_view_and_list_view/treeview/tree-in-model-view.py
bisratyalew/Qt-Python-Sample-Examples
45d69e01adefc854ac25627110611ca27b334a55
[ "MIT" ]
1
2019-12-23T17:14:37.000Z
2020-01-09T16:45:58.000Z
table_view_and_list_view/treeview/tree-in-model-view.py
bisratyalew/Qt-Python-Sample-Examples
45d69e01adefc854ac25627110611ca27b334a55
[ "MIT" ]
57
2015-01-05T09:34:15.000Z
2019-11-18T06:12:08.000Z
#!/usr/bin/env python import sys #try: # from PySide import QtGui, QtCore #except ImportError: # from PySide import QtGui, QtCore from PySide import QtGui, QtCore FIRST_COLUMN = 0 class UserPresence: OFFLINE = 0 ONLINE = 400 class Object: GROUP = 1 USER = 2 class User(): def __init__(self...
25.559091
80
0.602525
7956438cc0823ccd16bee84539aca4b1b8f92000
1,949
py
Python
pkg/tests/test_pipeparams.py
sdrees/pyvtreat
fed9a653b2524ba04b1e92b1087e58bead25f99a
[ "BSD-3-Clause" ]
104
2019-07-21T06:15:02.000Z
2022-02-23T19:41:58.000Z
pkg/tests/test_pipeparams.py
sdrees/pyvtreat
fed9a653b2524ba04b1e92b1087e58bead25f99a
[ "BSD-3-Clause" ]
15
2019-08-12T09:59:40.000Z
2021-12-09T00:38:47.000Z
pkg/tests/test_pipeparams.py
sdrees/pyvtreat
fed9a653b2524ba04b1e92b1087e58bead25f99a
[ "BSD-3-Clause" ]
9
2019-08-15T13:29:15.000Z
2021-03-08T18:04:08.000Z
#%% md # From [pyvtreat issue 12](https://github.com/WinVector/pyvtreat/issues/12) #%% import pytest import pandas as pd import numpy as np import numpy.random import vtreat import vtreat.util from sklearn.linear_model import LogisticRegression from sklearn.pipeline import Pipeline from sklearn.model_selection impo...
26.337838
81
0.641355
7956456608123df7125940655ddd28e0e0a55f99
1,599
py
Python
simplech/write_context.py
vir-mir/simple-clickhouse
7464322eddf7fa1a3ecccf27ad55d43dcb80d1f0
[ "MIT" ]
12
2018-04-09T03:59:05.000Z
2020-06-26T21:54:17.000Z
simplech/write_context.py
vir-mir/simple-clickhouse
7464322eddf7fa1a3ecccf27ad55d43dcb80d1f0
[ "MIT" ]
6
2018-10-09T07:41:51.000Z
2020-07-06T01:46:34.000Z
simplech/write_context.py
vir-mir/simple-clickhouse
7464322eddf7fa1a3ecccf27ad55d43dcb80d1f0
[ "MIT" ]
10
2019-05-18T23:50:42.000Z
2021-11-18T13:43:01.000Z
import io import ujson from .log import logger class Buffer: def __init__(self, buffer_limit=5000): self.buffer_limit = buffer_limit self.buffer = io.BytesIO() self.counter = 0 self.full = False def __len__(self): return self.counter def prepare(self): sel...
25.790323
89
0.57661
795645f2f3f27e907181654098148a9936cf4a71
2,656
py
Python
source/component/3rd-party/btstack/raw/tool/update_filename.py
liangyongxiang/vsf-all-in-one
942676bd201bb4fa6a3262f77150ab2d7766ec88
[ "Apache-2.0" ]
1
2022-01-04T08:06:04.000Z
2022-01-04T08:06:04.000Z
source/component/3rd-party/btstack/raw/tool/update_filename.py
liangyongxiang/vsf-all-in-one
942676bd201bb4fa6a3262f77150ab2d7766ec88
[ "Apache-2.0" ]
null
null
null
source/component/3rd-party/btstack/raw/tool/update_filename.py
liangyongxiang/vsf-all-in-one
942676bd201bb4fa6a3262f77150ab2d7766ec88
[ "Apache-2.0" ]
1
2021-08-23T10:11:47.000Z
2021-08-23T10:11:47.000Z
#!/usr/bin/env python3 import os import re btstack_root = os.path.abspath(os.path.dirname(sys.argv[0]) + '/..') filetag = '#define BTSTACK_FILE__ "%s"\n' filetag_re = '#define BTSTACK_FILE__ \"(.*)\"' ignoreFolders = ["3rd-party", "pic32-harmony", "msp430", "cpputest", "test", "msp-exp430f5438-cc2564b", "msp430f5229...
27.957895
192
0.643072
7956462ec03f54de6e6bdcd167d132703a77e31b
11,686
py
Python
LowLevelApi/NGPF/REST/1_Most_Common/l2l3RestNgpf.py
NickKeating/IxNetwork
0a54c0b8d1a1664d2826ad20a826ef384c48432f
[ "MIT" ]
46
2018-01-24T06:43:45.000Z
2022-03-17T07:27:08.000Z
LowLevelApi/NGPF/REST/1_Most_Common/l2l3RestNgpf.py
NickKeating/IxNetwork
0a54c0b8d1a1664d2826ad20a826ef384c48432f
[ "MIT" ]
104
2018-03-16T18:16:29.000Z
2022-03-17T07:16:43.000Z
LowLevelApi/NGPF/REST/1_Most_Common/l2l3RestNgpf.py
NickKeating/IxNetwork
0a54c0b8d1a1664d2826ad20a826ef384c48432f
[ "MIT" ]
58
2018-01-23T05:54:20.000Z
2022-03-30T22:55:20.000Z
# PLEASE READ DISCLAIMER # # This is a sample script for demo and reference purpose only. # It is subject to change for content updates without warning. # # REQUIREMENTS # - Python2.7 (Supports Python 2 and 3) # - Python2.7 # - Python modules: requests # # DESCRIPTION # This sample script demonstrate...
47.120968
125
0.5
7956469bc3f12e94416af10f985bf01422f801cb
14,214
py
Python
rllib/agents/ppo/appo_torch_policy.py
kennethlien/ray
2916c2c3d29f2f7e4bf53872d5ac8c5d866b0e45
[ "Apache-2.0" ]
null
null
null
rllib/agents/ppo/appo_torch_policy.py
kennethlien/ray
2916c2c3d29f2f7e4bf53872d5ac8c5d866b0e45
[ "Apache-2.0" ]
null
null
null
rllib/agents/ppo/appo_torch_policy.py
kennethlien/ray
2916c2c3d29f2f7e4bf53872d5ac8c5d866b0e45
[ "Apache-2.0" ]
null
null
null
""" PyTorch policy class used for APPO. Adapted from VTraceTFPolicy to use the PPO surrogate loss. Keep in sync with changes to VTraceTFPolicy. """ import gym import numpy as np import logging from typing import Type from ray.rllib.agents.dqn.simple_q_torch_policy import TargetNetworkMixin import ray.rllib.agents.im...
35.62406
88
0.680808
795646fbe69e5b82470b6b4974ff0b4cc6b4fe12
475
py
Python
pnp/api/endpoints/__init__.py
HazardDede/pnp
469ca17254dcca1a4eefe0dc5ac574692a9ab38e
[ "MIT" ]
4
2018-10-07T11:32:00.000Z
2019-04-23T09:34:23.000Z
pnp/api/endpoints/__init__.py
HazardDede/pnp
469ca17254dcca1a4eefe0dc5ac574692a9ab38e
[ "MIT" ]
null
null
null
pnp/api/endpoints/__init__.py
HazardDede/pnp
469ca17254dcca1a4eefe0dc5ac574692a9ab38e
[ "MIT" ]
1
2019-08-12T19:56:10.000Z
2019-08-12T19:56:10.000Z
"""Contains api endpoints.""" from .base import Endpoint from .catchall_route import CatchAllRoute, CatchAllRequest from .health import Health from .log_level import SetLogLevel from .metrics import PrometheusExporter from .ping import Ping from .trigger import Trigger from .version import Version __all__ = [ 'Ca...
20.652174
58
0.722105
795647b1d2399ed4e9c4d31a26d88c6039744939
1,286
py
Python
zaqar/storage/__init__.py
mail2nsrajesh/zaqar
a68a03a228732050b33c2a7f35d1caa9f3467718
[ "Apache-2.0" ]
1
2015-03-22T18:41:13.000Z
2015-03-22T18:41:13.000Z
zaqar/storage/__init__.py
mail2nsrajesh/zaqar
a68a03a228732050b33c2a7f35d1caa9f3467718
[ "Apache-2.0" ]
null
null
null
zaqar/storage/__init__.py
mail2nsrajesh/zaqar
a68a03a228732050b33c2a7f35d1caa9f3467718
[ "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 the...
34.756757
69
0.814152
795647c8d857256cfc896f576471ca4292736ff5
1,038
py
Python
euler/solutions/solution_19.py
rlucioni/euler
7cc61a493e2dbbea73e8fc042918707a3862458b
[ "MIT" ]
3
2017-02-07T08:12:52.000Z
2020-12-03T11:16:44.000Z
euler/solutions/solution_19.py
rlucioni/euler
7cc61a493e2dbbea73e8fc042918707a3862458b
[ "MIT" ]
null
null
null
euler/solutions/solution_19.py
rlucioni/euler
7cc61a493e2dbbea73e8fc042918707a3862458b
[ "MIT" ]
null
null
null
"""Counting Sundays You are given the following information, but you may prefer to do some research for yourself. - 1 Jan 1900 was a Monday. - Thirty days has September, April, June and November. All the rest have thirty-one, Saving February alone, Which has twenty-eight, rain or shine. And on leap years, t...
27.315789
107
0.691715
7956491f0a72ec2f8aea3de3d3b2200bdab3f450
23,778
py
Python
deeprobust/graph/utils.py
CrownX/DeepRobust
ede9246b6c882b0ae4ef666516c3e9d8f989299d
[ "MIT" ]
3
2021-01-16T06:20:39.000Z
2021-01-21T08:21:38.000Z
deeprobust/graph/utils.py
qilong-zhang/DeepRobust
276a7048aded2cf3a190d3851ffd4587b7d1dd49
[ "MIT" ]
null
null
null
deeprobust/graph/utils.py
qilong-zhang/DeepRobust
276a7048aded2cf3a190d3851ffd4587b7d1dd49
[ "MIT" ]
null
null
null
import numpy as np import scipy.sparse as sp import torch from sklearn.model_selection import train_test_split import torch.sparse as ts import torch.nn.functional as F import warnings def encode_onehot(labels): """Convert label to onehot format. Parameters ---------- labels : numpy.array node...
33.396067
172
0.65527
79564959a69e4e77bf60a96d35ef4e056e629cb0
51
py
Python
bcdc_apitests/config/__init__.py
franTarkenton/bcdc_tests
7c2280e2e1dc8b6c1314638c1839985c26cbb082
[ "Apache-2.0" ]
1
2019-11-04T16:35:53.000Z
2019-11-04T16:35:53.000Z
bcdc_apitests/config/__init__.py
franTarkenton/bcdc_tests
7c2280e2e1dc8b6c1314638c1839985c26cbb082
[ "Apache-2.0" ]
14
2019-06-18T23:40:59.000Z
2022-01-10T21:53:06.000Z
bcdc_apitests/config/__init__.py
franTarkenton/bcdc_tests
7c2280e2e1dc8b6c1314638c1839985c26cbb082
[ "Apache-2.0" ]
4
2019-05-23T18:59:29.000Z
2019-06-10T22:34:57.000Z
''' Created on Jul. 4, 2019 @author: kjnether '''
8.5
23
0.607843
7956495a89514e673a61e55a28dc2fdfc106061b
7,336
py
Python
webapp/graphite/metrics/hypertable_search.py
foursquare/graphite
bd9a1ff71c76f109cc9bf6232378f8ce17108445
[ "Apache-2.0" ]
1
2015-04-09T19:05:51.000Z
2015-04-09T19:05:51.000Z
webapp/graphite/metrics/hypertable_search.py
foursquare/graphite
bd9a1ff71c76f109cc9bf6232378f8ce17108445
[ "Apache-2.0" ]
null
null
null
webapp/graphite/metrics/hypertable_search.py
foursquare/graphite
bd9a1ff71c76f109cc9bf6232378f8ce17108445
[ "Apache-2.0" ]
null
null
null
import sys import time import subprocess import os.path from django.conf import settings from hyperthrift.gen.ttypes import ScanSpec from graphite.hypertable_client import removePrefix, addPrefix from graphite.storage import _deduplicate, is_pattern from graphite.logger import log import re import fnmatch from graphit...
31.350427
196
0.623637
7956496e55e4e2a09378fdbde3b76bbb7035a76f
2,826
py
Python
venv/lib/python3.8/site-packages/numpy/distutils/__config__.py
SvtFilatov/soccer-predict-prices
b003ebd7c3657688790183ef7d719c42290c11b9
[ "MIT" ]
4
2021-03-29T19:15:29.000Z
2021-06-08T05:34:00.000Z
venv/lib/python3.8/site-packages/numpy/distutils/__config__.py
SvtFilatov/soccer-predict-prices
b003ebd7c3657688790183ef7d719c42290c11b9
[ "MIT" ]
3
2021-08-30T16:30:50.000Z
2022-03-01T23:15:44.000Z
venv/lib/python3.8/site-packages/numpy/distutils/__config__.py
SvtFilatov/soccer-predict-prices
b003ebd7c3657688790183ef7d719c42290c11b9
[ "MIT" ]
3
2021-03-28T16:13:00.000Z
2021-07-16T10:27:25.000Z
# This file is generated by numpy's setup.py # It contains system_info results at the time of building this package. __all__ = ["get_info","show"] import os import sys extra_dll_dir = os.path.join(os.path.dirname(__file__), '.libs') if sys.platform == 'win32' and os.path.isdir(extra_dll_dir): if sys.version_inf...
35.772152
154
0.621019
79564a01fe843b5c3f7ae7630448555d77be2d45
1,461
py
Python
pylxd/deprecated/certificate.py
AdamIsrael/pylxd
d5d47a4d1185b4956e997d70e09d649ea73ba26b
[ "Apache-2.0" ]
null
null
null
pylxd/deprecated/certificate.py
AdamIsrael/pylxd
d5d47a4d1185b4956e997d70e09d649ea73ba26b
[ "Apache-2.0" ]
1
2018-04-21T16:31:29.000Z
2018-04-21T16:31:29.000Z
pylxd/deprecated/certificate.py
AdamIsrael/pylxd
d5d47a4d1185b4956e997d70e09d649ea73ba26b
[ "Apache-2.0" ]
1
2021-08-16T15:00:35.000Z
2021-08-16T15:00:35.000Z
# Copyright (c) 2015 Canonical 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 ...
38.447368
78
0.646133
79564cddfe2c14ef84ee993d3d19cf794ae8ab87
644
py
Python
src/production-manage.py
gravitationalwavedc/gwlab_cwfollowup
7bc9ab125c8336f5ac86ca24c24d02001e918b5e
[ "MIT" ]
null
null
null
src/production-manage.py
gravitationalwavedc/gwlab_cwfollowup
7bc9ab125c8336f5ac86ca24c24d02001e918b5e
[ "MIT" ]
null
null
null
src/production-manage.py
gravitationalwavedc/gwlab_cwfollowup
7bc9ab125c8336f5ac86ca24c24d02001e918b5e
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'gw_cwfollowup.production-settings') try: from django.core.management import execute_from_command_line except ImportError as exc: ...
29.272727
88
0.689441
79564d4b28bf06797eff2802708567952f76212b
49,293
py
Python
c_statements.py
Naras/programming_language_transformer
a30629751bd177c30e1de3a4ca5fad8869226bb4
[ "MIT" ]
null
null
null
c_statements.py
Naras/programming_language_transformer
a30629751bd177c30e1de3a4ca5fad8869226bb4
[ "MIT" ]
null
null
null
c_statements.py
Naras/programming_language_transformer
a30629751bd177c30e1de3a4ca5fad8869226bb4
[ "MIT" ]
null
null
null
import re stmt_comment = "if(tvibptr->stype =='1'){ /* blah \n bleh */;\nyes=findverb;}\n/* foo */\n" # stmt_comment = "if(tvibptr->stype =='1'){ /* blah */yes=findverb;}/* */" # stmt_comment = "if(tvibptr->stype =='1') yes=findverb;" stmt_var_decl_initialized = "int yes=0,success=1;char t='ty'" stmt_assignment = "c...
168.811644
4,224
0.612156
79564f2faed8bbe87a865636bd3a52d74f44a1f2
1,512
py
Python
pi7db/tests/csvtest/test.py
shivjeetbhullar/pi7db
1215d849d1ffb0670fdb3fcc4f35602fe7963e51
[ "MIT" ]
4
2020-05-30T05:32:57.000Z
2021-02-15T03:29:08.000Z
pi7db/tests/csvtest/test.py
shivjeetbhullar/pi7db
1215d849d1ffb0670fdb3fcc4f35602fe7963e51
[ "MIT" ]
null
null
null
pi7db/tests/csvtest/test.py
shivjeetbhullar/pi7db
1215d849d1ffb0670fdb3fcc4f35602fe7963e51
[ "MIT" ]
null
null
null
import os import pandas as pd class tabledb: def __init__(self,db_name): self.db_name = db_name if not os.path.exists(db_name):os.mkdir(db_name) def create_table(self,**kwargs): if 'name' in kwargs and 'colums' in kwargs and isinstance(kwargs['name'],str) and isinstance(kwargs['colums'],list): file_p...
38.769231
130
0.666005
79564f3a1b09f03f57288baf5fa6ef240d8c1ad4
220
py
Python
problems/binarysearch/Solution34.py
akalu/cs-problems-python
9b1bd8e3932be62135a38a77f955ded9a766b654
[ "MIT" ]
null
null
null
problems/binarysearch/Solution34.py
akalu/cs-problems-python
9b1bd8e3932be62135a38a77f955ded9a766b654
[ "MIT" ]
null
null
null
problems/binarysearch/Solution34.py
akalu/cs-problems-python
9b1bd8e3932be62135a38a77f955ded9a766b654
[ "MIT" ]
null
null
null
""" Given an array of integers nums sorted in ascending order, find the starting and ending position of a given target value. If target is not found in the array, return [-1, -1]. """ class Solution34: pass
27.5
82
0.7
7956501687c770073e6fbc26df8b201d426e7f64
7,535
py
Python
dagoba/query.py
skvrahul/dagoba
685e2eb9adeec2eb6d38521a7dd8ab67568519f9
[ "MIT" ]
14
2020-02-15T08:14:07.000Z
2021-09-07T19:02:14.000Z
dagoba/query.py
skvrahul/dagoba
685e2eb9adeec2eb6d38521a7dd8ab67568519f9
[ "MIT" ]
null
null
null
dagoba/query.py
skvrahul/dagoba
685e2eb9adeec2eb6d38521a7dd8ab67568519f9
[ "MIT" ]
null
null
null
from dagoba.entities import State, Gremlin, Args class Query(): def __init__(self, graph): self.graph = graph self.state = [] self.program = [] self.gremlins = [] def add(self, pipetype, args: Args): step = (pipetype, args) self.program.append(step) re...
32.478448
102
0.564831
7956503d9b9ed71725d90867ddba85e2671fa160
5,432
py
Python
gui/homeView.py
Guitheg/3dis
bca86f5424b8f8b9b7ab18152349f4dfb0141bbb
[ "MIT" ]
null
null
null
gui/homeView.py
Guitheg/3dis
bca86f5424b8f8b9b7ab18152349f4dfb0141bbb
[ "MIT" ]
null
null
null
gui/homeView.py
Guitheg/3dis
bca86f5424b8f8b9b7ab18152349f4dfb0141bbb
[ "MIT" ]
null
null
null
import sys import tkinter as tk from gui.entry_panel import EntryPanel, ButtonPanel, TwoEntryPanel, ThreeEntryPanel from gui.scrollerFrame import ScrollerFrame class HomeView(tk.Frame): def __init__(self, master, config): if sys.version_info < (3,): tk.Frame.__init__(self, master) else...
66.243902
150
0.696981
795651069766c2dcc76cd1ecf4cd742b8f6286b2
19,824
py
Python
tests/filter.py
potatolondon/djangoappengine-1-4
ae4993597f5afcfa0df42f0fa50913f4c85e2b74
[ "BSD-3-Clause" ]
null
null
null
tests/filter.py
potatolondon/djangoappengine-1-4
ae4993597f5afcfa0df42f0fa50913f4c85e2b74
[ "BSD-3-Clause" ]
null
null
null
tests/filter.py
potatolondon/djangoappengine-1-4
ae4993597f5afcfa0df42f0fa50913f4c85e2b74
[ "BSD-3-Clause" ]
null
null
null
from django.test.utils import override_settings import datetime import time from django.db import models from django.db.models import Q from django.db.utils import DatabaseError from django.test import TestCase from django.utils import unittest from google.appengine.api.datastore import Get, Key from ..db.utils imp...
40.457143
89
0.598416
79565361fb24f73600a2cc4b762aa45832009d56
438
py
Python
celery_worker.py
suAdminWen/cc-api
a00d9b82583fae57a3cd92ec0478d434f141f172
[ "MIT" ]
6
2019-03-04T03:08:07.000Z
2019-07-16T13:43:12.000Z
celery_worker.py
suAdminWen/cc-api
a00d9b82583fae57a3cd92ec0478d434f141f172
[ "MIT" ]
1
2021-11-22T15:02:09.000Z
2021-11-22T15:02:09.000Z
celery_worker.py
suAdminWen/cc-api
a00d9b82583fae57a3cd92ec0478d434f141f172
[ "MIT" ]
1
2019-07-01T01:01:27.000Z
2019-07-01T01:01:27.000Z
""" 启动 Celery Worker 进程 celery -A celery_worker.celery --loglevel=info worker 启动 Celery Beat 进程,定时将任务发送到 Broker celery beat -A celery_worker.celery -s ./flask_cc_api/proj/schedule/beat 一个终端启动 celery -B -A celery_worker.celery worker --loglevel=info -s ./flask_cc_api/proj/schedule/be...
31.285714
101
0.723744
7956536dcb3b51fcceb863de649a00a5be2e9b7d
362
py
Python
__init__.py
seungjaeryanlee/implementations-utils
d60ca4edd777e3033e00e8cae83557bb843130ec
[ "MIT" ]
null
null
null
__init__.py
seungjaeryanlee/implementations-utils
d60ca4edd777e3033e00e8cae83557bb843130ec
[ "MIT" ]
null
null
null
__init__.py
seungjaeryanlee/implementations-utils
d60ca4edd777e3033e00e8cae83557bb843130ec
[ "MIT" ]
null
null
null
"""Methods commonly used in any paper implementations.""" from .anneal import get_linear_anneal_func # noqa: F401 from .logger import get_logger # noqa: F401 from .reproducibility import set_env_random_seeds, set_global_random_seeds # noqa: F401 from .save_load import load_models, save_models # noqa: F401 from .tim...
51.714286
88
0.798343
7956538ad04a8e36b0d3f284ed15ba07950fd951
213
py
Python
src/controllers/__init__.py
ewanlee/mackrl
6dd505aa09830f16c35a022f67e255db935c807e
[ "Apache-2.0" ]
26
2019-10-28T09:01:45.000Z
2021-09-20T08:56:12.000Z
src/controllers/__init__.py
ewanlee/mackrl
6dd505aa09830f16c35a022f67e255db935c807e
[ "Apache-2.0" ]
1
2020-07-25T06:50:05.000Z
2020-07-25T06:50:05.000Z
src/controllers/__init__.py
ewanlee/mackrl
6dd505aa09830f16c35a022f67e255db935c807e
[ "Apache-2.0" ]
6
2019-12-18T12:02:57.000Z
2021-03-03T13:15:47.000Z
REGISTRY = {} from .basic_agent import BasicAgentController REGISTRY["basic_ac"] = BasicAgentController from .mackrl_agents import MACKRLMultiagentController REGISTRY["mackrl_mac"] = MACKRLMultiagentController
23.666667
53
0.835681
795655478480c5d603cca668a17b419ada2a9c1b
3,516
py
Python
djangoapp/MainApp/settings.py
kevinha298/django-postgres-docker
2a4715bb39000471e2e98c289bd4bae734a0b319
[ "MIT" ]
null
null
null
djangoapp/MainApp/settings.py
kevinha298/django-postgres-docker
2a4715bb39000471e2e98c289bd4bae734a0b319
[ "MIT" ]
null
null
null
djangoapp/MainApp/settings.py
kevinha298/django-postgres-docker
2a4715bb39000471e2e98c289bd4bae734a0b319
[ "MIT" ]
null
null
null
""" Django settings for MainApp project. Generated by 'django-admin startproject' using Django 3.2.7. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ import os fr...
25.852941
91
0.689704
7956559c618cddbea84c1f0acf33727366ac73d7
6,269
py
Python
roles/openshift_health_checker/openshift_checks/disk_availability.py
Ravichandramanupati/openshift
1720af442f0b02359ce4cc70d32adca15d9d26ab
[ "Apache-2.0" ]
1
2017-11-01T05:46:27.000Z
2017-11-01T05:46:27.000Z
roles/openshift_health_checker/openshift_checks/disk_availability.py
gloria-sentinella/openshift-ansible
e03493f33073965ddf8c49256df80143059a2a51
[ "Apache-2.0" ]
3
2016-12-01T23:01:36.000Z
2016-12-02T00:16:48.000Z
roles/openshift_health_checker/openshift_checks/disk_availability.py
gloria-sentinella/openshift-ansible
e03493f33073965ddf8c49256df80143059a2a51
[ "Apache-2.0" ]
1
2018-01-30T05:44:59.000Z
2018-01-30T05:44:59.000Z
"""Check that there is enough disk space in predefined paths.""" import tempfile from openshift_checks import OpenShiftCheck, OpenShiftCheckException class DiskAvailability(OpenShiftCheck): """Check that recommended disk space is available before a first-time install.""" name = "disk_availability" tags...
45.427536
108
0.600415
7956570bd0ee7d6ec6f2206e3f54618456205c47
5,300
py
Python
src/arch/arm/ArmISA.py
shantanu-gupta/gem5
94af1a6531c5a14da0d67c0c1f5abd8e22e6e514
[ "BSD-3-Clause" ]
22
2019-11-12T23:37:14.000Z
2021-12-21T22:17:15.000Z
src/arch/arm/ArmISA.py
shantanu-gupta/gem5
94af1a6531c5a14da0d67c0c1f5abd8e22e6e514
[ "BSD-3-Clause" ]
8
2020-02-05T17:47:10.000Z
2021-09-06T03:58:56.000Z
src/arch/arm/ArmISA.py
shantanu-gupta/gem5
94af1a6531c5a14da0d67c0c1f5abd8e22e6e514
[ "BSD-3-Clause" ]
11
2019-04-03T19:44:08.000Z
2021-09-01T12:39:23.000Z
# Copyright (c) 2012-2013, 2015-2016 ARM Limited # All rights reserved. # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware implementation of th...
46.491228
85
0.746226
79565845da36437cbf0b538d950951d85e0f74ea
86
py
Python
hook-win10toast.py
Jasperabez/PPTSynchro
adb71246caa8509b89664a318fa55a110b584c55
[ "MIT" ]
null
null
null
hook-win10toast.py
Jasperabez/PPTSynchro
adb71246caa8509b89664a318fa55a110b584c55
[ "MIT" ]
null
null
null
hook-win10toast.py
Jasperabez/PPTSynchro
adb71246caa8509b89664a318fa55a110b584c55
[ "MIT" ]
1
2021-01-06T03:33:49.000Z
2021-01-06T03:33:49.000Z
from PyInstaller.utils.hooks import copy_metadata datas = copy_metadata('win10toast')
28.666667
49
0.837209
795658f2ca0be8bc8f2129e60b3e5b87afc91a0b
1,307
py
Python
python3/161.one-edit-distance.248980150.ac.py
Diego-Zulu/leetcode_answers
ad435df1bd95fb2c6e17d2d9ff349282c98ee0f4
[ "MIT" ]
null
null
null
python3/161.one-edit-distance.248980150.ac.py
Diego-Zulu/leetcode_answers
ad435df1bd95fb2c6e17d2d9ff349282c98ee0f4
[ "MIT" ]
null
null
null
python3/161.one-edit-distance.248980150.ac.py
Diego-Zulu/leetcode_answers
ad435df1bd95fb2c6e17d2d9ff349282c98ee0f4
[ "MIT" ]
null
null
null
# # @lc app=leetcode id=161 lang=python3 # # [161] One Edit Distance # # https://leetcode.com/problems/one-edit-distance/description/ # # algorithms # Medium (32.17%) # Likes: 584 # Dislikes: 104 # Total Accepted: 104.1K # Total Submissions: 323.5K # Testcase Example: '"ab"\n"acb"' # # Given two strings s and t,...
20.421875
81
0.577659
7956596c39dfc9fa4afd67fcb8688a20009be07f
321
py
Python
code/test_scripts/clear_leds.py
AdamCorbinFAUPhD/CEN5035-Software-Engineering-Course-Project
bcc23ffeee68cad0a86d75995e6d335c24ed9f50
[ "MIT" ]
null
null
null
code/test_scripts/clear_leds.py
AdamCorbinFAUPhD/CEN5035-Software-Engineering-Course-Project
bcc23ffeee68cad0a86d75995e6d335c24ed9f50
[ "MIT" ]
24
2019-09-12T06:38:03.000Z
2019-12-04T20:27:32.000Z
code/test_scripts/clear_leds.py
AdamCorbinFAUPhD/CEN5035-Software-Engineering-Course-Project
bcc23ffeee68cad0a86d75995e6d335c24ed9f50
[ "MIT" ]
null
null
null
import RPi.GPIO as GPIO import time # Install instrictions # pip install RPi.GPIO GPIO.setmode(GPIO.BCM) LED_R = 16 LED_G = 20 LED_B = 21 GPIO.setup(LED_R, GPIO.OUT) GPIO.setup(LED_G, GPIO.OUT) GPIO.setup(LED_B, GPIO.OUT) GPIO.output(LED_R, False) GPIO.output(LED_G, False) GPIO.output(LED_B, False) GPIO.cleanup(...
15.285714
27
0.741433
79565a2dc4a0d85a787a20bdc2a48e8304d37c40
1,186
py
Python
src/apps/runs/serializers/run.py
sanderland/katago-server
6414fab080d007c05068a06ff4f25907b92848bd
[ "MIT" ]
27
2020-05-03T11:01:27.000Z
2022-03-17T05:33:10.000Z
src/apps/runs/serializers/run.py
sanderland/katago-server
6414fab080d007c05068a06ff4f25907b92848bd
[ "MIT" ]
54
2020-05-09T01:18:41.000Z
2022-01-22T10:31:15.000Z
src/apps/runs/serializers/run.py
sanderland/katago-server
6414fab080d007c05068a06ff4f25907b92848bd
[ "MIT" ]
9
2020-09-29T11:31:32.000Z
2022-03-09T01:37:50.000Z
from rest_framework.serializers import HyperlinkedModelSerializer from src.apps.runs.models import Run class RunSerializer(HyperlinkedModelSerializer): """ RunSerializer serializes one or several run for create, list and detail display on the api """ class Meta: model = Run fields = ...
24.708333
94
0.544688
79565c14378664350d6dbdcdd7980a2fead00ba2
39,799
py
Python
Lib/inspect.py
orestis/python
870a82aac7788ffa105e2a3e4480b3715c93bff6
[ "PSF-2.0" ]
1
2021-12-26T22:20:34.000Z
2021-12-26T22:20:34.000Z
Lib/inspect.py
orestis/python
870a82aac7788ffa105e2a3e4480b3715c93bff6
[ "PSF-2.0" ]
null
null
null
Lib/inspect.py
orestis/python
870a82aac7788ffa105e2a3e4480b3715c93bff6
[ "PSF-2.0" ]
2
2018-08-06T04:37:38.000Z
2022-02-27T18:07:12.000Z
# -*- coding: iso-8859-1 -*- """Get useful information from live Python objects. This module encapsulates the interface provided by the internal special attributes (co_*, im_*, tb_*, etc.) in a friendlier fashion. It also provides some help for examining source code and class layout. Here are some of the useful funct...
39.600995
82
0.641674
79565d92319e3af81e292948d48a31d97edd24e2
6,562
py
Python
src/skmultiflow/lazy/knn_classifier.py
lambertsbennett/scikit-multiflow
bc714fd5ee4f0a486adc00ec6ae39eafa64f81cc
[ "BSD-3-Clause" ]
1
2020-04-16T10:17:03.000Z
2020-04-16T10:17:03.000Z
src/skmultiflow/lazy/knn_classifier.py
lambertsbennett/scikit-multiflow
bc714fd5ee4f0a486adc00ec6ae39eafa64f81cc
[ "BSD-3-Clause" ]
null
null
null
src/skmultiflow/lazy/knn_classifier.py
lambertsbennett/scikit-multiflow
bc714fd5ee4f0a486adc00ec6ae39eafa64f81cc
[ "BSD-3-Clause" ]
null
null
null
from skmultiflow.core import ClassifierMixin from skmultiflow.lazy.base_neighbors import BaseNeighbors from skmultiflow.utils.utils import * import warnings def KNN(n_neighbors=5, max_window_size=1000, leaf_size=30): # pragma: no cover warnings.warn("'KNN' has been renamed to 'KNNClassifier' in v0.5....
35.47027
99
0.604084
79565dee0e59b7cadf994245015707f50ba2601c
464
py
Python
alumno/migrations/0003_alumno_verificador.py
nicolasmontenegro/emprenred
906ea24e8b6357b109e24c140fd92fc24bb33e79
[ "Apache-2.0" ]
null
null
null
alumno/migrations/0003_alumno_verificador.py
nicolasmontenegro/emprenred
906ea24e8b6357b109e24c140fd92fc24bb33e79
[ "Apache-2.0" ]
null
null
null
alumno/migrations/0003_alumno_verificador.py
nicolasmontenegro/emprenred
906ea24e8b6357b109e24c140fd92fc24bb33e79
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.3 on 2016-11-16 22:49 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('alumno', '0002_auto_20161116_1910'), ] operations = [ migrations.AddField( ...
22.095238
61
0.62069
79565e9a883bc37f61b760bc05b6ca63c7730ff5
5,455
py
Python
h/services/group_create.py
bibliotechie/h
16e275f79ef7d1086971bd30ef403501c6b93beb
[ "BSD-2-Clause" ]
null
null
null
h/services/group_create.py
bibliotechie/h
16e275f79ef7d1086971bd30ef403501c6b93beb
[ "BSD-2-Clause" ]
null
null
null
h/services/group_create.py
bibliotechie/h
16e275f79ef7d1086971bd30ef403501c6b93beb
[ "BSD-2-Clause" ]
null
null
null
from functools import partial from h import session from h.models import Group, GroupScope from h.models.group import ( OPEN_GROUP_TYPE_FLAGS, PRIVATE_GROUP_TYPE_FLAGS, RESTRICTED_GROUP_TYPE_FLAGS, ) class GroupCreateService: def __init__(self, session, user_fetcher, publish): """ Cre...
31.531792
98
0.610449
79565ed7368641e703058e791c112a8c1e6247a4
44,977
py
Python
salt/cloud/clouds/nova.py
l2ol33rt/salt
ff68bbd9f4bda992a3e039822fb32f141e94347c
[ "Apache-2.0" ]
null
null
null
salt/cloud/clouds/nova.py
l2ol33rt/salt
ff68bbd9f4bda992a3e039822fb32f141e94347c
[ "Apache-2.0" ]
null
null
null
salt/cloud/clouds/nova.py
l2ol33rt/salt
ff68bbd9f4bda992a3e039822fb32f141e94347c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' OpenStack Nova Cloud Module =========================== OpenStack is an open source project that is in use by a number a cloud providers, each of which have their own ways of using it. The OpenStack Nova module for Salt Cloud was bootstrapped from the OpenStack module for Salt Cloud, which...
30.890797
116
0.610823
79565ee9a3d1d6d5d029aadb09e5081ba89b4e52
483
py
Python
fcm_notifications.py
Ice-crusher/FlaskCovidAlert
6c50c4ebe67bc387c39413aae635b88f53ef320e
[ "Apache-2.0" ]
null
null
null
fcm_notifications.py
Ice-crusher/FlaskCovidAlert
6c50c4ebe67bc387c39413aae635b88f53ef320e
[ "Apache-2.0" ]
null
null
null
fcm_notifications.py
Ice-crusher/FlaskCovidAlert
6c50c4ebe67bc387c39413aae635b88f53ef320e
[ "Apache-2.0" ]
null
null
null
from pyfcm import FCMNotification from extensions import fcmApiKey pushService = FCMNotification(api_key=fcmApiKey) def sendNotifications(fcmToken): registration_id = fcmToken message_title = "Uwaga!" message_body = "Wcześniej spotkałeś osobę chorą na COVID-19. Jesteś w strefie ryzyka zakażenia. Uważaj na...
40.25
134
0.807453
795660bd3ce55669abea9fb0606351fbaac0bb88
599
py
Python
accounts/migrations/0006_auto_20220223_0033.py
aastha1999/SystemDesign-Pastebin
56e24ff2e98bf38414a758b86813d65df1a422bf
[ "MIT" ]
1
2022-01-18T11:29:39.000Z
2022-01-18T11:29:39.000Z
accounts/migrations/0006_auto_20220223_0033.py
aastha1999/SystemDesign-Pastebin
56e24ff2e98bf38414a758b86813d65df1a422bf
[ "MIT" ]
null
null
null
accounts/migrations/0006_auto_20220223_0033.py
aastha1999/SystemDesign-Pastebin
56e24ff2e98bf38414a758b86813d65df1a422bf
[ "MIT" ]
1
2022-01-27T12:23:50.000Z
2022-01-27T12:23:50.000Z
# Generated by Django 3.2.11 on 2022-02-22 19:03 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0005_remove_user_password2'), ] operations = [ migrations.AlterField( model_name='user', name='email', ...
24.958333
82
0.597663
7956614e78c56c2746d3d9f242cdfa0921f5cbbd
5,657
py
Python
tests/chainer_tests/training_tests/updaters_tests/test_multiprocess_parallel_updater.py
LuoYuanke/PrivChainer
758d765c7903f6913cfd58c21db069d5f2a12203
[ "MIT" ]
null
null
null
tests/chainer_tests/training_tests/updaters_tests/test_multiprocess_parallel_updater.py
LuoYuanke/PrivChainer
758d765c7903f6913cfd58c21db069d5f2a12203
[ "MIT" ]
null
null
null
tests/chainer_tests/training_tests/updaters_tests/test_multiprocess_parallel_updater.py
LuoYuanke/PrivChainer
758d765c7903f6913cfd58c21db069d5f2a12203
[ "MIT" ]
1
2022-02-20T10:32:59.000Z
2022-02-20T10:32:59.000Z
import unittest import numpy import chainer from chainer import cuda from chainer import initializers from chainer import testing from chainer.testing import attr import chainer.training.updaters.multiprocess_parallel_updater as mpu import copy class SimpleNet(chainer.Chain): insize = 5 def __init__(self,...
30.578378
79
0.628779
795661b6ff13f3b295b887eea8d7dafe3acfc06d
2,139
py
Python
setup.py
heikoheiko/pyethapp
17a560abe8f8742bf5e30fa8f7e5495faf3cb101
[ "BSD-3-Clause" ]
48
2015-12-23T14:38:14.000Z
2022-01-19T06:01:57.000Z
setup.py
WEI-HE/pyethapp
17a560abe8f8742bf5e30fa8f7e5495faf3cb101
[ "BSD-3-Clause" ]
2
2016-05-08T02:27:47.000Z
2017-03-06T23:37:47.000Z
setup.py
WEI-HE/pyethapp
17a560abe8f8742bf5e30fa8f7e5495faf3cb101
[ "BSD-3-Clause" ]
27
2015-04-05T05:26:14.000Z
2022-02-05T16:43:20.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from distutils.core import setup from setuptools.command.test import test as TestCommand class PyTest(TestCommand): def finalize_options(self): TestCommand.finalize_options(self) self.tes...
27.779221
86
0.658719
795663352b2e5526baf93c0f7936ba1624e06b13
3,175
py
Python
pygubu/builder/widgets/calendarframe.py
alejandroautalan/pygubu
80ed6b14defc7129fcbd093a3b4b44961f84421e
[ "MIT" ]
1,716
2015-01-02T12:34:53.000Z
2022-03-31T03:28:51.000Z
pygubu/builder/widgets/calendarframe.py
codesockett/pygubu
a4978e414d5f6e3be1ff6df94cba9fb6c0e2af6f
[ "MIT" ]
207
2015-01-03T03:54:38.000Z
2022-03-31T15:20:14.000Z
pygubu/builder/widgets/calendarframe.py
codesockett/pygubu
a4978e414d5f6e3be1ff6df94cba9fb6c0e2af6f
[ "MIT" ]
261
2015-01-02T19:17:36.000Z
2022-03-20T05:21:49.000Z
# encoding: utf8 from pygubu import BuilderObject, register_property, register_widget from pygubu.builder.ttkstdwidgets import TTKFrame from pygubu.widgets.calendarframe import CalendarFrame class CalendarFrameBuilder(BuilderObject): class_ = CalendarFrame OPTIONS_STANDARD = TTKFrame.OPTIONS_STANDARD OPTI...
26.02459
77
0.454488
795663f114fcc6a28f1db131f565651273956537
4,788
py
Python
cotede/qctests/cars_normbias.py
jessicaaustin/CoTeDe
0ca2a1c71de980d91262fd36fd5d8ab8cc09f019
[ "BSD-3-Clause" ]
null
null
null
cotede/qctests/cars_normbias.py
jessicaaustin/CoTeDe
0ca2a1c71de980d91262fd36fd5d8ab8cc09f019
[ "BSD-3-Clause" ]
null
null
null
cotede/qctests/cars_normbias.py
jessicaaustin/CoTeDe
0ca2a1c71de980d91262fd36fd5d8ab8cc09f019
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ """ from datetime import timedelta import logging import numpy as np from numpy import ma from oceansdb import CARS module_logger = logging.getLogger(__name__) class CARS_NormBias(object): def __init__(self, data, varname, cfg, autoflag=True): self.data = data self...
33.02069
80
0.519632
795664623b155ee6d551189a28150924dd1f7217
3,986
py
Python
config/settings/local.py
EricMuller/mynote-backend
69bc39b8cfad52d6c42003cfa7bd629f3e8eccb7
[ "MIT" ]
1
2017-04-26T10:24:21.000Z
2017-04-26T10:24:21.000Z
config/settings/local.py
EricMuller/mynotes-backend
69bc39b8cfad52d6c42003cfa7bd629f3e8eccb7
[ "MIT" ]
5
2020-06-05T18:16:39.000Z
2022-01-13T00:45:49.000Z
config/settings/local.py
EricMuller/webmarks-rest-api
69bc39b8cfad52d6c42003cfa7bd629f3e8eccb7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Local settings - Run in Debug mode - Use mailhog for emails - Add Django Debug Toolbar - Add django-extensions as app """ import socket import os from .common import * # noqa HOST_NAME = env('WEBMARK_HOST_NAME', default='127.0.0.1') # DEBUG # -----------------------------------------...
29.525926
117
0.519067
795664a77f6733a258f808c8d8df2096dc9a9a04
522
py
Python
Chapter02/02_keras_cifar10.py
PacktPublishing/Practical-Computer-Vision
8cf8ee58d306e0fb1a2e21b6518136bb4c174ff5
[ "MIT" ]
23
2018-02-28T05:00:34.000Z
2022-02-04T13:26:03.000Z
Chapter02/02_keras_cifar10.py
PacktPublishing/Practical-Computer-Vision
8cf8ee58d306e0fb1a2e21b6518136bb4c174ff5
[ "MIT" ]
4
2018-03-23T11:35:31.000Z
2022-01-31T14:52:57.000Z
Chapter02/02_keras_cifar10.py
PacktPublishing/Practical-Computer-Vision
8cf8ee58d306e0fb1a2e21b6518136bb4c174ff5
[ "MIT" ]
23
2018-02-08T03:17:16.000Z
2022-01-03T09:12:47.000Z
from __future__ import print_function from keras.datasets import cifar10 import matplotlib.pyplot as plt # Download and load dataset (x_train, y_train), (x_test, y_test) = cifar10.load_data() labels = ['airplane', 'automobile', 'bird', 'cat', 'deer', 'dog', 'frog', 'horse', 'ship', 'truck'] # to know the size of da...
30.705882
99
0.708812
795664acecd4dc57dbc5eb11dd23680ff1e95b86
3,410
py
Python
var/spack/repos/builtin/packages/rocm-gdb/package.py
glenn-horton-smith/spack
bc6fb03f231d814ffd6f558aab20e6dbb46b26af
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/rocm-gdb/package.py
glenn-horton-smith/spack
bc6fb03f231d814ffd6f558aab20e6dbb46b26af
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/rocm-gdb/package.py
glenn-horton-smith/spack
bc6fb03f231d814ffd6f558aab20e6dbb46b26af
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# Copyright 2013-2022 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 RocmGdb(AutotoolsPackage): """This is ROCmgdb, the ROCm source-level debugger for Linux, ...
46.081081
113
0.653372
7956650e504d6b20986512007209754786603302
1,527
py
Python
core/models.py
thiagofreitascarneiro/Revenda_de_Carros
6c778e9254c474a954a97c0678ffe272abab7c92
[ "MIT" ]
null
null
null
core/models.py
thiagofreitascarneiro/Revenda_de_Carros
6c778e9254c474a954a97c0678ffe272abab7c92
[ "MIT" ]
null
null
null
core/models.py
thiagofreitascarneiro/Revenda_de_Carros
6c778e9254c474a954a97c0678ffe272abab7c92
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth import get_user_model class Chassi(models.Model): numero = models.CharField('Chassi', max_length=16, help_text='Maximo 16 caracteres ') class Meta: verbose_name = 'Chassi' verbose_name_plural = 'Chassis' def __str__(self): re...
27.267857
89
0.67518
795666aa20d2127c910d9dfa6e4130365f9165e5
2,855
py
Python
linguistic_style_transfer_model/config/global_config.py
spencerbraun/linguistic-style-transfer
76774bc805c56e823f958f98e6ae8d5973518757
[ "Apache-2.0" ]
136
2018-08-17T21:31:01.000Z
2022-01-03T15:01:41.000Z
linguistic_style_transfer_model/config/global_config.py
spencerbraun/linguistic-style-transfer
76774bc805c56e823f958f98e6ae8d5973518757
[ "Apache-2.0" ]
18
2018-06-29T21:41:28.000Z
2020-07-09T08:53:37.000Z
linguistic_style_transfer_model/config/global_config.py
spencerbraun/linguistic-style-transfer
76774bc805c56e823f958f98e6ae8d5973518757
[ "Apache-2.0" ]
29
2018-09-27T04:51:10.000Z
2022-03-01T21:24:04.000Z
from datetime import datetime as dt logger_name = "linguistic_style_transfer" experiment_timestamp = dt.now().strftime("%Y%m%d%H%M%S") vocab_size = None # set by runtime param bow_size = None # set by runtime params and exclusions filter_sentiment_words = True filter_stopwords = True embedding_size = 300 max_sequ...
37.077922
90
0.785639
7956687f2f72d410efb04e15cb9144b6f9f827b4
1,223
py
Python
package.py
threebotapps/interface
031f1533a9a4c9f56388779e4c2dce725a81d556
[ "Apache-2.0" ]
null
null
null
package.py
threebotapps/interface
031f1533a9a4c9f56388779e4c2dce725a81d556
[ "Apache-2.0" ]
null
null
null
package.py
threebotapps/interface
031f1533a9a4c9f56388779e4c2dce725a81d556
[ "Apache-2.0" ]
null
null
null
from Jumpscale import j class Package(j.baseclasses.threebot_package): def _init(self, **kwargs): if "branch" in kwargs.keys(): self.branch = kwargs["branch"] else: self.branch = "master" def stop(self): """ called when the 3bot stops :return: ...
24.959184
89
0.571545
7956688d1033d376e055f4cc3ec96075e36d68b6
1,585
py
Python
xlsxwriter/test/comparison/test_table13.py
Rippling/XlsxWriter-1
be8d1cb8f8b156cf87bbe5d591f1f5475804be44
[ "BSD-2-Clause" ]
null
null
null
xlsxwriter/test/comparison/test_table13.py
Rippling/XlsxWriter-1
be8d1cb8f8b156cf87bbe5d591f1f5475804be44
[ "BSD-2-Clause" ]
null
null
null
xlsxwriter/test/comparison/test_table13.py
Rippling/XlsxWriter-1
be8d1cb8f8b156cf87bbe5d591f1f5475804be44
[ "BSD-2-Clause" ]
null
null
null
############################################################################### # # Tests for XlsxWriter. # # SPDX-License-Identifier: BSD-2-Clause # Copyright (c), 2013-2021, John McNamara, jmcnamara@cpan.org # from ..excel_comparison_test import ExcelComparisonTest from ...workbook import Workbook class TestCompar...
30.480769
79
0.490221
79566902f9301a59e5950e02b29884baf094eddc
1,405
py
Python
Chapter04/stock_market.py
llichengtong/project_folder
0f5967f9d4424c00a3e51be9d1856b68fadb10f1
[ "MIT" ]
403
2016-07-03T14:29:51.000Z
2022-03-26T08:37:36.000Z
Chapter04/stock_market.py
bgwilf/Python-Machine-Learning-Cookbook
0f5967f9d4424c00a3e51be9d1856b68fadb10f1
[ "MIT" ]
5
2016-12-07T14:44:43.000Z
2021-07-13T10:41:46.000Z
Chapter04/stock_market.py
bgwilf/Python-Machine-Learning-Cookbook
0f5967f9d4424c00a3e51be9d1856b68fadb10f1
[ "MIT" ]
370
2016-07-03T14:29:52.000Z
2022-03-19T17:34:39.000Z
import json import datetime import numpy as np import matplotlib.pyplot as plt from sklearn import covariance, cluster from matplotlib.finance import quotes_historical_yahoo_ochl as quotes_yahoo # Input symbol file symbol_file = 'symbol_map.json' # Choose a time period start_date = datetime.datetime(2004, 4, 5) end_...
27.54902
77
0.745907
79566907ce3552a19c56f92e1a7617c61c1cce30
1,377
py
Python
main.py
RezaFirouzii/fum-delta-vision
0a8ad1d434006a9aee0a12c1f021c0bca0bc87e2
[ "MIT" ]
null
null
null
main.py
RezaFirouzii/fum-delta-vision
0a8ad1d434006a9aee0a12c1f021c0bca0bc87e2
[ "MIT" ]
null
null
null
main.py
RezaFirouzii/fum-delta-vision
0a8ad1d434006a9aee0a12c1f021c0bca0bc87e2
[ "MIT" ]
null
null
null
import pickle import cv2 as cv import numpy as np import Calibration.calibration as clb if __name__ == "__main__": cap = cv.VideoCapture(1, cv.CAP_DSHOW) if not cap.isOpened(): raise IOError("Video was not opened!") coeffs = clb.load_coefficients('calibration/') matrix = pickle.load(open('ca...
30.6
106
0.607117
79566a703d58b553f1a7d29ad25bf2981e0ca4c9
18
py
Python
app/models/transmart.py
thehyve/cookiecutter
57e2605739ba8859445b7bd4e577b4f9f3bc8c23
[ "MIT" ]
null
null
null
app/models/transmart.py
thehyve/cookiecutter
57e2605739ba8859445b7bd4e577b4f9f3bc8c23
[ "MIT" ]
null
null
null
app/models/transmart.py
thehyve/cookiecutter
57e2605739ba8859445b7bd4e577b4f9f3bc8c23
[ "MIT" ]
null
null
null
from .. import db
9
17
0.666667
79566c1f39ad993e7d76139d630f170a015de94c
2,217
py
Python
bin/pannzer/operators/TFIDF.py
nestorzaburannyi/annotate
e175226504efef811d4ac3914f2ab342968edf98
[ "MIT" ]
1
2021-11-26T17:29:56.000Z
2021-11-26T17:29:56.000Z
bin/pannzer/operators/TFIDF.py
nestorzaburannyi/annotate
e175226504efef811d4ac3914f2ab342968edf98
[ "MIT" ]
1
2020-03-19T21:12:23.000Z
2020-03-19T21:12:23.000Z
bin/pannzer/operators/TFIDF.py
nestorzaburannyi/annotate
e175226504efef811d4ac3914f2ab342968edf98
[ "MIT" ]
null
null
null
from myoperator import RowOperator import math,sys class TFIDF(RowOperator): """ Generate cleaned word vectors and respective count vector and term idf vector. term idf = log(total number of terms in the dataset / number of documents where terms appears) ...
45.244898
203
0.524583
79566d12a73664df2fcf6f41ddeb2e74b748ea2e
1,536
py
Python
handyman.parent/handyman/doozle-daemon.py
JohnPaulZuci/zucihandyman
b37605355fb55fc2a7255c0d8aba0616fba53a74
[ "Apache-2.0" ]
null
null
null
handyman.parent/handyman/doozle-daemon.py
JohnPaulZuci/zucihandyman
b37605355fb55fc2a7255c0d8aba0616fba53a74
[ "Apache-2.0" ]
null
null
null
handyman.parent/handyman/doozle-daemon.py
JohnPaulZuci/zucihandyman
b37605355fb55fc2a7255c0d8aba0616fba53a74
[ "Apache-2.0" ]
null
null
null
from http.server import HTTPServer, BaseHTTPRequestHandler import json from io import BytesIO from asn1crypto._ffi import null import os class SimpleHTTPRequestHandler(BaseHTTPRequestHandler): def do_GET(self): self.send_response(200) self.end_headers() self.wfile.write(b'hi') ...
29.538462
78
0.529948
79566d536b3f15157ddef313e18a6670b777aad0
21,853
py
Python
transitfeed/shapelib.py
aalekhpatel07/transitfeed
490c2342c53885da23bdd18f428073e60f4d8728
[ "Apache-2.0" ]
null
null
null
transitfeed/shapelib.py
aalekhpatel07/transitfeed
490c2342c53885da23bdd18f428073e60f4d8728
[ "Apache-2.0" ]
null
null
null
transitfeed/shapelib.py
aalekhpatel07/transitfeed
490c2342c53885da23bdd18f428073e60f4d8728
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python2.4 # # Copyright 2007 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 require...
34.360063
88
0.571317
795670a9420b4cfedbacea05cc247cb3581976ed
1,529
py
Python
test/test_audit.py
westonsteimel/pip-audit
3b29e66418de9236c92b3ffaa254ae9def2bdcbf
[ "Apache-2.0" ]
447
2021-09-02T17:06:18.000Z
2022-03-28T20:58:22.000Z
test/test_audit.py
westonsteimel/pip-audit
3b29e66418de9236c92b3ffaa254ae9def2bdcbf
[ "Apache-2.0" ]
177
2021-09-02T16:45:42.000Z
2022-03-29T14:19:11.000Z
test/test_audit.py
westonsteimel/pip-audit
3b29e66418de9236c92b3ffaa254ae9def2bdcbf
[ "Apache-2.0" ]
25
2021-09-13T16:04:23.000Z
2022-03-21T17:47:28.000Z
import pretend # type: ignore import pytest from packaging.version import Version from pip_audit import _audit as audit from pip_audit._audit import AuditOptions, Auditor from pip_audit._service.interface import VulnerabilityResult def test_audit(vuln_service, dep_source): service = vuln_service() source = ...
31.204082
77
0.682145
7956716be12ee2c90766c53c22c4aee67a0a6352
1,753
py
Python
sacluster/lib/def_conf/def_config_loading.py
hpc-team2021/saclaster_addon_MiddlewareSetup
3fc354248ac58e1c5b529819cd7c6b471d279ca1
[ "Apache-2.0" ]
1
2021-09-01T00:12:19.000Z
2021-09-01T00:12:19.000Z
sacluster/lib/def_conf/def_config_loading.py
hpc-team2021/saclaster_addon_MiddlewareSetup
3fc354248ac58e1c5b529819cd7c6b471d279ca1
[ "Apache-2.0" ]
null
null
null
sacluster/lib/def_conf/def_config_loading.py
hpc-team2021/saclaster_addon_MiddlewareSetup
3fc354248ac58e1c5b529819cd7c6b471d279ca1
[ "Apache-2.0" ]
1
2021-10-06T07:52:26.000Z
2021-10-06T07:52:26.000Z
import json import os from info_print import printout from load_external_data import external_data from config_validation import config_validation import logging logger = logging.getLogger("sacluster").getChild(os.path.basename(__file__)) def config_loading_main(ext_info, in_path = "", info_list = [1,0,0,0], fp = "...
17.707071
139
0.592698
7956718d0ba3a75798fbb071c388531b73777b3e
4,783
py
Python
gen_models/convgru.py
yifan-you-37/rl_swiss
8b0ee7caa5c1fa93860916004cf4fd970667764f
[ "MIT" ]
56
2019-10-20T03:09:02.000Z
2022-03-25T09:21:40.000Z
gen_models/convgru.py
yifan-you-37/rl_swiss
8b0ee7caa5c1fa93860916004cf4fd970667764f
[ "MIT" ]
3
2020-10-01T07:33:51.000Z
2021-05-12T03:40:57.000Z
gen_models/convgru.py
yifan-you-37/rl_swiss
8b0ee7caa5c1fa93860916004cf4fd970667764f
[ "MIT" ]
10
2019-11-04T16:56:09.000Z
2022-03-25T09:21:41.000Z
''' Stolen from https://github.com/jacobkimmel/pytorch_convgru/blob/master/convgru.py ''' import torch import torch.nn as nn import numpy as np import torch.nn.functional as F from torch.nn import init class ConvGRUCell(nn.Module): """ Generate a convolutional GRU cell """ def __init__(self, input_si...
34.912409
105
0.624713