hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
061bd88deb4206ce5331e0081dcdb2863e470f98
1,570
py
Python
venv/Lib/site-packages/bootstrap_py/pypi.py
prats1997/Euphorum
16bfee9c71ea5b1332c6263233c79a633ddfdd83
[ "MIT" ]
1
2020-03-01T17:39:04.000Z
2020-03-01T17:39:04.000Z
venv/Lib/site-packages/bootstrap_py/pypi.py
prats1997/Euphorum
16bfee9c71ea5b1332c6263233c79a633ddfdd83
[ "MIT" ]
null
null
null
venv/Lib/site-packages/bootstrap_py/pypi.py
prats1997/Euphorum
16bfee9c71ea5b1332c6263233c79a633ddfdd83
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """bootstrap_py.pypi.""" import sys import socket from bootstrap_py.exceptions import BackendFailure, Conflict if sys.version_info < (3, 0): import xmlrpclib as xmlrpc_client else: from xmlrpc import client as xmlrpc_client #: PyPI XML-RPC API url PYPI_URL = 'https://pypi.python.org/pyp...
27.54386
70
0.629299
45ab49a6475d6852478897b0a41080d2aa12e9fb
3,102
py
Python
setup.py
jrdzha/lux-widget
91f53a29bba47df84bc953b441cda211d119ab1d
[ "Apache-2.0" ]
null
null
null
setup.py
jrdzha/lux-widget
91f53a29bba47df84bc953b441cda211d119ab1d
[ "Apache-2.0" ]
null
null
null
setup.py
jrdzha/lux-widget
91f53a29bba47df84bc953b441cda211d119ab1d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # Copyright (c) Jupyter Development Team. # Distributed under the terms of the Modified BSD License. from __future__ import print_function from glob import glob from os.path import join as pjoin from setupbase import ( create_cmdclass, install_npm, ensure_targets, find_...
26.512821
73
0.589297
6fad667f61d4bcf126aedd5fd5f0ada639fc3c54
270
py
Python
api/config.py
disfear86/Restaurant-Menus
dbccd0a42f8ca5413f079a5aacc57df9bfbf2f5d
[ "MIT" ]
null
null
null
api/config.py
disfear86/Restaurant-Menus
dbccd0a42f8ca5413f079a5aacc57df9bfbf2f5d
[ "MIT" ]
null
null
null
api/config.py
disfear86/Restaurant-Menus
dbccd0a42f8ca5413f079a5aacc57df9bfbf2f5d
[ "MIT" ]
null
null
null
import os basedir = os.path.abspath(os.path.dirname(__file__)) SQLALCHEMY_DATABASE_URI = 'mysql://<user>:<password>@localhost/database_name' SQLALCHEMY_MIGRATE_REPO = os.path.join(basedir, 'db_repository') SQLALCHEMY_TRACK_MODIFICATIONS = False SECRET_KEY = 'dev-key'
30
77
0.796296
b6600e4efb42a53e11229567ffde13b656748f02
690
py
Python
heufybot/utils/__init__.py
HubbeKing/PyHeufyBot
61f6dc9c64dc3a0cc421ce9881c2539ced22c915
[ "MIT" ]
null
null
null
heufybot/utils/__init__.py
HubbeKing/PyHeufyBot
61f6dc9c64dc3a0cc421ce9881c2539ced22c915
[ "MIT" ]
null
null
null
heufybot/utils/__init__.py
HubbeKing/PyHeufyBot
61f6dc9c64dc3a0cc421ce9881c2539ced22c915
[ "MIT" ]
null
null
null
# Taken from txircd: # https://github.com/ElementalAlchemist/txircd/blob/8832098149b7c5f9b0708efe5c836c8160b0c7e6/txircd/utils.py#L9 def _enum(**enums): return type('Enum', (), enums) ModeType = _enum(LIST=0, PARAM_SET=1, PARAM_UNSET=2, NO_PARAM=3) def isNumber(s): try: float(s) return True ...
27.6
111
0.634783
80f418eba7a63445e35b02573ee9e1b2fb15131d
2,212
py
Python
exemplos/chatbot/Chatbot.py
cirino/python
6c45b5305aebeeeebb7ffef335700e41cc0b6b3b
[ "MIT" ]
1
2018-05-06T01:25:28.000Z
2018-05-06T01:25:28.000Z
exemplos/chatbot/Chatbot.py
cirino/python
6c45b5305aebeeeebb7ffef335700e41cc0b6b3b
[ "MIT" ]
1
2019-02-10T18:46:37.000Z
2019-02-12T21:17:50.000Z
exemplos/chatbot/Chatbot.py
cirino/python
6c45b5305aebeeeebb7ffef335700e41cc0b6b3b
[ "MIT" ]
null
null
null
import json import subprocess as s class Chatbot(): def __init__(self, nome): try: memoria = open(nome+'.json','r') except FileNotFoundError: memoria = open(nome+'.json','w') memoria.write('["Will","Alfredo"]') memoria.close() memoria = op...
29.105263
69
0.496383
8fa1f33308eb057a72992c71b0217d117da4ec5b
1,645
py
Python
DQM/SiPixelPhase1Config/python/SiPixelPhase1OfflineDQM_harvesting_cff.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
13
2015-11-30T15:49:45.000Z
2022-02-08T16:11:30.000Z
DQM/SiPixelPhase1Config/python/SiPixelPhase1OfflineDQM_harvesting_cff.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
640
2015-02-11T18:55:47.000Z
2022-03-31T14:12:23.000Z
DQM/SiPixelPhase1Config/python/SiPixelPhase1OfflineDQM_harvesting_cff.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
51
2015-08-11T21:01:40.000Z
2022-03-30T07:31:34.000Z
import FWCore.ParameterSet.Config as cms from DQM.SiPixelPhase1Config.SiPixelPhase1OfflineDQM_source_cff import * siPixelPhase1OfflineDQM_harvesting = cms.Sequence(SiPixelPhase1RawDataHarvester + SiPixelPhase1DigisHarvester ...
54.833333
108
0.558055
f1600c45a2c60ea0252592bab7642f22482d4330
8,104
py
Python
test/functional/wallet_listreceivedby.py
joynicoferna/carpinchocoin
987284642d94e26c2b3b884c14846068d124a24a
[ "MIT" ]
null
null
null
test/functional/wallet_listreceivedby.py
joynicoferna/carpinchocoin
987284642d94e26c2b3b884c14846068d124a24a
[ "MIT" ]
null
null
null
test/functional/wallet_listreceivedby.py
joynicoferna/carpinchocoin
987284642d94e26c2b3b884c14846068d124a24a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the listreceivedbyaddress RPC.""" from decimal import Decimal from test_framework.test_framework ...
47.116279
197
0.641288
d1c137be6fff73ba3b474343cc221326bda37473
207
py
Python
beerbar/beerbar/doctype/release_to_loose/test_release_to_loose.py
reddymeghraj/beerbar
ac082b11e8535e5ea5014e3a49598571ae200471
[ "MIT" ]
null
null
null
beerbar/beerbar/doctype/release_to_loose/test_release_to_loose.py
reddymeghraj/beerbar
ac082b11e8535e5ea5014e3a49598571ae200471
[ "MIT" ]
null
null
null
beerbar/beerbar/doctype/release_to_loose/test_release_to_loose.py
reddymeghraj/beerbar
ac082b11e8535e5ea5014e3a49598571ae200471
[ "MIT" ]
null
null
null
# Copyright (c) 2013, wayzon and Contributors # See license.txt import frappe import unittest test_records = frappe.get_test_records('Release To Loose') class TestReleaseToLoose(unittest.TestCase): pass
18.818182
58
0.797101
c8c6e1062ec7aaad40724d9db7a22b3f80b2da4b
7,286
py
Python
shadowsocks/restapi.py
lyrl/ssmgr-ssrest
33c60190189dea9d948008385b31ea843f49c63e
[ "Apache-2.0" ]
null
null
null
shadowsocks/restapi.py
lyrl/ssmgr-ssrest
33c60190189dea9d948008385b31ea843f49c63e
[ "Apache-2.0" ]
null
null
null
shadowsocks/restapi.py
lyrl/ssmgr-ssrest
33c60190189dea9d948008385b31ea843f49c63e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2015 clowwindy # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
34.206573
146
0.60829
c6594f79ecdf0796a5379cac7b65f786dd74be44
14,024
py
Python
Starscape_Module.py
SayanChaki/Starscape-Module
dde56b686d4ecd1882ff170e304f2d2debe55091
[ "MIT" ]
1
2021-01-26T19:20:52.000Z
2021-01-26T19:20:52.000Z
Starscape_Module.py
SayanChaki/Starscape-Module
dde56b686d4ecd1882ff170e304f2d2debe55091
[ "MIT" ]
8
2021-01-26T15:13:40.000Z
2021-01-26T18:14:45.000Z
Starscape_Module.py
SayanChaki/Starscape-Module
dde56b686d4ecd1882ff170e304f2d2debe55091
[ "MIT" ]
null
null
null
@author: SAYAN CHAKI """ import cv2 from matplotlib import pyplot as plt import numpy as np import math from PIL import Image import PIL def onbrightness(): img =cv2.imread("ESO.jpg") gray =cv2.cvtColor(img,cv2.COLOR_BGR2GRAY) ret, thresh=cv2.threshold(gray,0,255 ,cv2.THRESH_BINARY) f=1 ...
30.029979
156
0.524672
6707e7cc993cfcd8fbe4318878d3e7c3d80cabd9
2,475
py
Python
tests/cli/helpers/xlsx_output.py
nflexfo/plaso
5da7aa51c39b593773687fdf20a93ba35fc492b4
[ "Apache-2.0" ]
27
2019-04-05T12:01:49.000Z
2022-02-08T02:26:25.000Z
tests/cli/helpers/xlsx_output.py
nflexfo/plaso
5da7aa51c39b593773687fdf20a93ba35fc492b4
[ "Apache-2.0" ]
null
null
null
tests/cli/helpers/xlsx_output.py
nflexfo/plaso
5da7aa51c39b593773687fdf20a93ba35fc492b4
[ "Apache-2.0" ]
8
2019-11-28T08:06:34.000Z
2020-08-29T13:53:30.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Tests for the XLSX output module CLI arguments helper.""" from __future__ import unicode_literals import argparse import unittest from plaso.cli.helpers import xlsx_output from plaso.lib import errors from plaso.output import xlsx from tests.cli import test_lib as c...
33.445946
78
0.719192
188e04189f8c14d7e3a5531d77eee6e4cf664ad3
3,799
py
Python
examples/arm_example.py
Gepetto/supaero2021
1f2b32ac2b2974bc3e751dd114716847c8650242
[ "BSD-3-Clause" ]
9
2021-01-08T18:13:19.000Z
2021-12-29T22:22:19.000Z
examples/arm_example.py
Gepetto/supaero2021
1f2b32ac2b2974bc3e751dd114716847c8650242
[ "BSD-3-Clause" ]
1
2021-09-08T07:22:31.000Z
2021-09-08T07:22:31.000Z
examples/arm_example.py
nmansard/supaero2021
1f2b32ac2b2974bc3e751dd114716847c8650242
[ "BSD-3-Clause" ]
2
2021-01-07T20:36:37.000Z
2021-04-16T15:22:53.000Z
''' # In this example test, we will solve the reaching-goal task with the Talos arm. # For that, we use the forward dynamics (with its analytical derivatives) # developed inside crocoddyl; it describes inside DifferentialActionModelFullyActuated class. # Finally, we use an Euler sympletic integration scheme. ''' impor...
40.414894
109
0.785996
dba131c9d95f87099c334912924b79b465d3e5cd
186
py
Python
forms/blog.py
anthill-gaming/anthill-admin
e3c29a9bd7c04d2c6ce29528578a93395adf59e0
[ "MIT" ]
1
2018-11-30T21:56:14.000Z
2018-11-30T21:56:14.000Z
forms/blog.py
anthill-gaming/anthill-admin
e3c29a9bd7c04d2c6ce29528578a93395adf59e0
[ "MIT" ]
null
null
null
forms/blog.py
anthill-gaming/anthill-admin
e3c29a9bd7c04d2c6ce29528578a93395adf59e0
[ "MIT" ]
null
null
null
from anthill.framework.forms import Form from anthill.framework.utils.translation import translate as _ class BlogPostForm(Form): pass class BlogPostCategoryForm(Form): pass
16.909091
62
0.790323
dec2452cbdf3a25e5699df3e05d3eff36720cf1a
3,675
py
Python
challenges/HighFrequencyTradingAlgo/poller/for-testing/machine.py
vaibhavbsharma/cb-multios
02accd8338714fb57f1b78cac30e1034df042e25
[ "MIT" ]
1
2019-11-23T21:53:46.000Z
2019-11-23T21:53:46.000Z
challenges/HighFrequencyTradingAlgo/poller/for-testing/machine.py
vaibhavbsharma/cb-multios
02accd8338714fb57f1b78cac30e1034df042e25
[ "MIT" ]
null
null
null
challenges/HighFrequencyTradingAlgo/poller/for-testing/machine.py
vaibhavbsharma/cb-multios
02accd8338714fb57f1b78cac30e1034df042e25
[ "MIT" ]
1
2019-12-02T20:53:55.000Z
2019-12-02T20:53:55.000Z
#!/usr/bin/env python # # Copyright (C) 2014 Narf Industries <info@narfindustries.com> # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # th...
39.945652
95
0.697143
32042a73644a8de3fa96585d853cd6785414890d
2,371
py
Python
setup.py
qaprosoft/zafira-pytest
711fd8574cf35c95ad1c56ae057d4351c2aaa32c
[ "Apache-2.0" ]
1
2021-03-29T03:45:42.000Z
2021-03-29T03:45:42.000Z
setup.py
qaprosoft/zafira-pytest
711fd8574cf35c95ad1c56ae057d4351c2aaa32c
[ "Apache-2.0" ]
2
2021-06-01T23:58:30.000Z
2021-11-15T17:49:02.000Z
setup.py
qaprosoft/zafira-pytest
711fd8574cf35c95ad1c56ae057d4351c2aaa32c
[ "Apache-2.0" ]
1
2019-07-25T11:53:34.000Z
2019-07-25T11:53:34.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import codecs from setuptools import setup, find_packages def read(fname): file_path = os.path.join(os.path.dirname(__file__), fname) return codecs.open(file_path, encoding='utf-8').read() setup( name='pytest-zafira', version='1.0.2', auth...
30.792208
75
0.557149
392e02f6ebc560c4ec7600b23d66d62ed24055fa
1,135
py
Python
setup.py
adir-intsights/sergeant
76229b045309a3d795ac760d9f08da04b5e0a750
[ "MIT" ]
null
null
null
setup.py
adir-intsights/sergeant
76229b045309a3d795ac760d9f08da04b5e0a750
[ "MIT" ]
null
null
null
setup.py
adir-intsights/sergeant
76229b045309a3d795ac760d9f08da04b5e0a750
[ "MIT" ]
null
null
null
import setuptools setuptools.setup( name='sergeant', version='0.17.1', author='Gal Ben David', author_email='gal@intsights.com', url='https://github.com/Intsights/sergeant', project_urls={ 'Source': 'https://github.com/Intsights/sergeant', }, license='MIT', description='Fas...
26.395349
86
0.58326
448643dd67771edeea6aa75054f66c6c806ca18c
1,408
py
Python
launch/launch/substitutions/__init__.py
bedieber/launch
4dfe69763379e405df7a21bde536aad7e39fdd93
[ "Apache-2.0" ]
null
null
null
launch/launch/substitutions/__init__.py
bedieber/launch
4dfe69763379e405df7a21bde536aad7e39fdd93
[ "Apache-2.0" ]
null
null
null
launch/launch/substitutions/__init__.py
bedieber/launch
4dfe69763379e405df7a21bde536aad7e39fdd93
[ "Apache-2.0" ]
1
2020-03-06T09:31:38.000Z
2020-03-06T09:31:38.000Z
# Copyright 2018 Open Source Robotics Foundation, 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...
35.2
74
0.793324
ce7818e80d5a56c6aa48046ad8ef5fb808f6012e
7,864
py
Python
source/rttov_test/profile-datasets-py/varying101lev_o3/001.py
bucricket/projectMAScorrection
89489026c8e247ec7c364e537798e766331fe569
[ "BSD-3-Clause" ]
null
null
null
source/rttov_test/profile-datasets-py/varying101lev_o3/001.py
bucricket/projectMAScorrection
89489026c8e247ec7c364e537798e766331fe569
[ "BSD-3-Clause" ]
1
2022-03-12T12:19:59.000Z
2022-03-12T12:19:59.000Z
source/rttov_test/profile-datasets-py/varying101lev_o3/001.py
bucricket/projectMAScorrection
89489026c8e247ec7c364e537798e766331fe569
[ "BSD-3-Clause" ]
null
null
null
""" Profile ../profile-datasets-py/varying101lev_o3/001.py file automaticaly created by prof_gen.py script """ self["ID"] = "../profile-datasets-py/varying101lev_o3/001.py" self["Q"] = numpy.array([ 1.34824700e+00, 2.45593100e+00, 3.65560800e+00, 4.63755400e+00, 5.32968500e+00, 5.7772270...
53.135135
90
0.578586
374cfc040c347e887e0e47d0c755d389adc0b48f
3,110
py
Python
src/OTLMOW/PostenMapping/Model/Post060311414.py
davidvlaminck/OTLClassPython
71330afeb37c3ea6d9981f521ff8f4a3f8b946fc
[ "MIT" ]
2
2022-02-01T08:58:11.000Z
2022-02-08T13:35:17.000Z
src/OTLMOW/PostenMapping/Model/Post060311414.py
davidvlaminck/OTLMOW
71330afeb37c3ea6d9981f521ff8f4a3f8b946fc
[ "MIT" ]
null
null
null
src/OTLMOW/PostenMapping/Model/Post060311414.py
davidvlaminck/OTLMOW
71330afeb37c3ea6d9981f521ff8f4a3f8b946fc
[ "MIT" ]
null
null
null
# coding=utf-8 from OTLMOW.PostenMapping.StandaardPost import StandaardPost from OTLMOW.PostenMapping.StandaardPostMapping import StandaardPostMapping # Generated with PostenCreator. To modify: extend, do not edit class Post060311414(StandaardPost): def __init__(self): super().__init__( nummer...
47.846154
124
0.585209
05a23266b0ed311e8c6b4fd0f0941c039839383e
2,065
py
Python
mmaction/models/losses/binary_logistic_regression_loss.py
hellock/mmaction2
def3b651ab7818ece637d8637dddacbca027910c
[ "Apache-2.0" ]
1
2021-11-02T15:21:42.000Z
2021-11-02T15:21:42.000Z
mmaction/models/losses/binary_logistic_regression_loss.py
hellock/mmaction2
def3b651ab7818ece637d8637dddacbca027910c
[ "Apache-2.0" ]
null
null
null
mmaction/models/losses/binary_logistic_regression_loss.py
hellock/mmaction2
def3b651ab7818ece637d8637dddacbca027910c
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn from ..registry import LOSSES def binary_logistic_regression_loss(reg_score, label, threshold=0.5, ratio_range=(1.05, 21), eps=1e-5): ...
33.306452
75
0.554479
bd89cdc63995ff8e991e00d173762496c726efcd
44,671
py
Python
testing/test_doctest.py
blueyed/pytest
2b52e24a9fe013a043c36e3df3d62b4b4f6348f1
[ "MIT" ]
3
2019-11-26T02:30:12.000Z
2020-04-15T17:49:07.000Z
testing/test_doctest.py
blueyed/pytest
2b52e24a9fe013a043c36e3df3d62b4b4f6348f1
[ "MIT" ]
59
2019-10-22T04:34:22.000Z
2021-11-27T18:23:11.000Z
testing/test_doctest.py
blueyed/pytest
2b52e24a9fe013a043c36e3df3d62b4b4f6348f1
[ "MIT" ]
1
2019-11-14T16:47:19.000Z
2019-11-14T16:47:19.000Z
import inspect import textwrap import pytest from _pytest.compat import MODULE_NOT_FOUND_ERROR from _pytest.compat import TYPE_CHECKING from _pytest.doctest import _get_checker from _pytest.doctest import _is_mocked from _pytest.doctest import _patch_unwrap_mock_aware from _pytest.doctest import DoctestItem from _pyte...
29.900268
109
0.459403
4318b6573d5e641831509c74088e7c40c9018af3
6,443
py
Python
evd_ros_backend/evd_ros_core/src/evd_script/environment_nodes/reach_sphere.py
Wisc-HCI/CoFrame
7a54344248d80cb316d36aabd40bbd3cdbbc07eb
[ "MIT" ]
null
null
null
evd_ros_backend/evd_ros_core/src/evd_script/environment_nodes/reach_sphere.py
Wisc-HCI/CoFrame
7a54344248d80cb316d36aabd40bbd3cdbbc07eb
[ "MIT" ]
null
null
null
evd_ros_backend/evd_ros_core/src/evd_script/environment_nodes/reach_sphere.py
Wisc-HCI/CoFrame
7a54344248d80cb316d36aabd40bbd3cdbbc07eb
[ "MIT" ]
null
null
null
''' Simplification of the joint-configuration space that a robot can reach. We can think of the robot's max reach as being bounded by a sphere. Tuning of this sphere can further restrict the reachability region. ''' from .environment_node import EnvironmentNode from ..data_nodes.geometry import Position from ..visual...
28.135371
112
0.586838
fcfd0db7450f539811fa087104b9bc5c3f354b03
2,069
py
Python
tests/test_presenter.py
WqyJh/auto-changelog
884fa133bb13013b694646472b2b113d6be2abc4
[ "MIT" ]
1
2019-08-21T10:41:17.000Z
2019-08-21T10:41:17.000Z
tests/test_presenter.py
WqyJh/auto-changelog
884fa133bb13013b694646472b2b113d6be2abc4
[ "MIT" ]
null
null
null
tests/test_presenter.py
WqyJh/auto-changelog
884fa133bb13013b694646472b2b113d6be2abc4
[ "MIT" ]
null
null
null
import pytest from textwrap import dedent from auto_changelog.domain_model import Changelog from auto_changelog.presenter import MarkdownPresenter @pytest.fixture(params=['', 'Title']) def title(request): return request.param @pytest.fixture(params=['', 'Description']) def description(request): return requ...
27.586667
94
0.724021
7b7a56bfbd16c14a0355f53d31879a7403f88f52
82,466
py
Python
src/transformers/pipelines.py
amoux/transformers
fa5423b1695cd24856bcff47214172e0f540d924
[ "Apache-2.0" ]
null
null
null
src/transformers/pipelines.py
amoux/transformers
fa5423b1695cd24856bcff47214172e0f540d924
[ "Apache-2.0" ]
null
null
null
src/transformers/pipelines.py
amoux/transformers
fa5423b1695cd24856bcff47214172e0f540d924
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
43.403158
183
0.621298
4ada4f42196a47a71cf4e69c28f8a55c47848baf
4,231
py
Python
Python/Flask/Flask.py
xlui/real-rest
907948adbefd90dfd3349ce2542320b2c76e811c
[ "MIT" ]
null
null
null
Python/Flask/Flask.py
xlui/real-rest
907948adbefd90dfd3349ce2542320b2c76e811c
[ "MIT" ]
null
null
null
Python/Flask/Flask.py
xlui/real-rest
907948adbefd90dfd3349ce2542320b2c76e811c
[ "MIT" ]
null
null
null
from flask import Flask, request, jsonify, current_app from flask_script import Manager, Shell from app import db from app.models import User from app.my_exception import MyException from conf.config import Config app = Flask(__name__) app.config.from_object(Config) manager = Manager(app) db.init_app(app) @app.rout...
31.110294
116
0.643347
209f10f744900ce41741d69f8015192e2072a8d3
16,134
py
Python
kgtk/cli/calc.py
mann-brinson/kgtk
269e3b5c155e03acacbf48ccbdcc7b56a4f807aa
[ "MIT" ]
null
null
null
kgtk/cli/calc.py
mann-brinson/kgtk
269e3b5c155e03acacbf48ccbdcc7b56a4f807aa
[ "MIT" ]
null
null
null
kgtk/cli/calc.py
mann-brinson/kgtk
269e3b5c155e03acacbf48ccbdcc7b56a4f807aa
[ "MIT" ]
null
null
null
""" Reorder KGTK file columns (while copying) TODO: Need KgtkWriterOptions """ from argparse import Namespace, SUPPRESS import typing from kgtk.cli_argparse import KGTKArgumentParser, KGTKFiles def parser(): return { 'help': 'Perform calculations on KGTK file columns.', 'description': 'This comm...
42.569921
166
0.579645
52bb2621848ce1e626c45be8913e399823585078
119
py
Python
bloom/editor/properties/__init__.py
thomasrogers03/bloom
5d49c18a241216aca354aa79971940691e6f33b4
[ "Apache-2.0" ]
9
2020-11-22T03:04:52.000Z
2022-01-17T15:36:25.000Z
bloom/editor/properties/__init__.py
thomasrogers03/bloom
5d49c18a241216aca354aa79971940691e6f33b4
[ "Apache-2.0" ]
null
null
null
bloom/editor/properties/__init__.py
thomasrogers03/bloom
5d49c18a241216aca354aa79971940691e6f33b4
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Thomas Rogers # SPDX-License-Identifier: Apache-2.0 from . import sprite_properties, wall_properties
23.8
48
0.806723
2804cd18a50b302835dc512d7397879e3c2c9685
1,035
py
Python
anyway/widgets/suburban_widgets/sub_urban_widget.py
shaniwein/anyway
dcd13bf7dc4a120f4d697ab0c08b906f43eea52e
[ "MIT" ]
1
2022-01-19T18:23:03.000Z
2022-01-19T18:23:03.000Z
anyway/widgets/suburban_widgets/sub_urban_widget.py
shaniwein/anyway
dcd13bf7dc4a120f4d697ab0c08b906f43eea52e
[ "MIT" ]
2
2021-11-02T13:37:23.000Z
2021-11-23T15:51:06.000Z
anyway/widgets/suburban_widgets/sub_urban_widget.py
shaniwein/anyway
dcd13bf7dc4a120f4d697ab0c08b906f43eea52e
[ "MIT" ]
null
null
null
import logging from anyway.request_params import RequestParams from anyway.widgets.widget import Widget class SubUrbanWidget(Widget): def __init__(self, request_params: RequestParams, name: str): if not SubUrbanWidget.is_sub_urban(request_params): logging.error( f"SubU...
35.689655
92
0.65314
0a847fb12850ea4db0d064ccaf1a75c34c328636
263
py
Python
ske_customization/customizations_for_ske/doctype/finance_charges/finance_charges.py
akshay83/ske_customization
910e8ca88ffc83554ebb23f7480901dba9f08221
[ "MIT" ]
null
null
null
ske_customization/customizations_for_ske/doctype/finance_charges/finance_charges.py
akshay83/ske_customization
910e8ca88ffc83554ebb23f7480901dba9f08221
[ "MIT" ]
null
null
null
ske_customization/customizations_for_ske/doctype/finance_charges/finance_charges.py
akshay83/ske_customization
910e8ca88ffc83554ebb23f7480901dba9f08221
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2015, Akshay Mehta and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document class FinanceCharges(Document): pass
23.909091
51
0.78327
a95bbc76b86be34f9334ea6ccfc0fd3fd0467808
1,095
py
Python
pioemu/state.py
NathanY3G/raspberrypi-pio-poc
97a19174666bd8cb820ca825390b10d3dfeacd75
[ "Apache-2.0" ]
6
2021-05-24T08:08:37.000Z
2022-02-16T05:28:06.000Z
pioemu/state.py
NathanY3G/rp2040-pio-emulator
97a19174666bd8cb820ca825390b10d3dfeacd75
[ "Apache-2.0" ]
null
null
null
pioemu/state.py
NathanY3G/rp2040-pio-emulator
97a19174666bd8cb820ca825390b10d3dfeacd75
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Nathan Young # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
30.416667
74
0.743379
f1bffff4502324a3039c123fb4465d331e7aae79
11,555
py
Python
priorities/seak/migrations/0004_auto__add_field_conservationfeature_desc.py
Ecotrust/cogs-priorities
07dac509f85cfdddbbd5145ee8ea1efaea76a2aa
[ "BSD-3-Clause" ]
3
2015-06-23T21:43:47.000Z
2021-09-10T18:22:26.000Z
priorities/seak/migrations/0004_auto__add_field_conservationfeature_desc.py
Ecotrust/cogs-priorities
07dac509f85cfdddbbd5145ee8ea1efaea76a2aa
[ "BSD-3-Clause" ]
19
2015-04-09T19:27:30.000Z
2015-05-12T20:52:50.000Z
priorities/seak/migrations/0004_auto__add_field_conservationfeature_desc.py
Ecotrust/juniper-priorities
16c8c0c96adef40e1f262c53d79215960cec7b4c
[ "BSD-3-Clause" ]
1
2021-09-10T18:22:28.000Z
2021-09-10T18:22:28.000Z
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'ConservationFeature.desc' db.add_column('seak_conservationfeature', 'desc', ...
76.019737
215
0.556036
91900c3a7b07192afab89c7369455f9c0224b2e9
1,141
py
Python
backend/core/pages/pageBuilder.py
makakken/roseguarden
9a867f3d5e979b990bf474dcba81e5e9d0814c6a
[ "MIT" ]
null
null
null
backend/core/pages/pageBuilder.py
makakken/roseguarden
9a867f3d5e979b990bf474dcba81e5e9d0814c6a
[ "MIT" ]
50
2021-03-28T03:06:19.000Z
2021-10-18T12:36:16.000Z
backend/core/pages/pageBuilder.py
makakken/roseguarden
9a867f3d5e979b990bf474dcba81e5e9d0814c6a
[ "MIT" ]
1
2021-07-30T07:12:46.000Z
2021-07-30T07:12:46.000Z
""" The roseguarden project Copyright (C) 2018-2020 Marcus Drobisch, 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 3 of the License, or (at your option) any later version. This pr...
31.694444
78
0.730061
740aa05d2bc13e96f642cf6245dbbc1838ff9e16
469
py
Python
dvol/__main__.py
Flare576/dvol
208e3ea3572415f0232c953d6c166a3aef915042
[ "MIT" ]
null
null
null
dvol/__main__.py
Flare576/dvol
208e3ea3572415f0232c953d6c166a3aef915042
[ "MIT" ]
null
null
null
dvol/__main__.py
Flare576/dvol
208e3ea3572415f0232c953d6c166a3aef915042
[ "MIT" ]
null
null
null
#!/usr/local/bin/python3 # TODO: when `get` is called, always show override, but mark as disabled if container isn't curently using it # TODO: when config set with -p but no other params, clear it? # TODO: when removing, should loop through existing mappings, delete those folders, then nuke the root/project folder # TO...
33.5
117
0.739872
2208ec6a9c1832d4f07ae34c260758f2af888ac7
2,809
py
Python
blogofile/server.py
zsoldosp/blogofile
48b8e71b5ed9a35cbc9ee60fead367e7ff8b1a9e
[ "MIT" ]
null
null
null
blogofile/server.py
zsoldosp/blogofile
48b8e71b5ed9a35cbc9ee60fead367e7ff8b1a9e
[ "MIT" ]
null
null
null
blogofile/server.py
zsoldosp/blogofile
48b8e71b5ed9a35cbc9ee60fead367e7ff8b1a9e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function import logging import os import sys import threading try: from urllib.parse import urlparse # For Python 2 except ImportError: from urlparse import urlparse # For Python 3; flake8 ignore # NOQA from six.moves import SimpleHTTPServer from six....
31.920455
78
0.642933
be26c46b2e91533c2e5a7e5f1df8617e1219ec85
2,630
py
Python
tests/integration_tests/tests/agentless_tests/test_deployment_logs.py
cloudify-cosmo/cloudify-manager
4a3f44ceb49d449bc5ebc8766b1c7b9c174ff972
[ "Apache-2.0" ]
124
2015-01-22T22:28:37.000Z
2022-02-26T23:12:06.000Z
tests/integration_tests/tests/agentless_tests/test_deployment_logs.py
cloudify-cosmo/cloudify-manager
4a3f44ceb49d449bc5ebc8766b1c7b9c174ff972
[ "Apache-2.0" ]
345
2015-01-08T15:49:40.000Z
2022-03-29T08:33:00.000Z
tests/integration_tests/tests/agentless_tests/test_deployment_logs.py
cloudify-cosmo/cloudify-manager
4a3f44ceb49d449bc5ebc8766b1c7b9c174ff972
[ "Apache-2.0" ]
77
2015-01-07T14:04:35.000Z
2022-03-07T22:46:00.000Z
######## # Copyright (c) 2016 GigaSpaces Technologies Ltd. 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...
38.115942
79
0.698859
8c19bd1d4ac1e38c3c1c3fa26d433ea7e4303249
1,688
py
Python
test/test_schedule_api.py
Logicworks/opsgenie-python-sdk
244c4c40ddcc25e70df5ba4425ab8d7c8da59c18
[ "Apache-2.0" ]
null
null
null
test/test_schedule_api.py
Logicworks/opsgenie-python-sdk
244c4c40ddcc25e70df5ba4425ab8d7c8da59c18
[ "Apache-2.0" ]
null
null
null
test/test_schedule_api.py
Logicworks/opsgenie-python-sdk
244c4c40ddcc25e70df5ba4425ab8d7c8da59c18
[ "Apache-2.0" ]
1
2020-11-07T11:27:13.000Z
2020-11-07T11:27:13.000Z
# coding: utf-8 """ OpsGenie REST API OpsGenie OpenAPI Specification # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import opsgenie_swagger from opsgenie_swagger.api.schedul...
20.095238
80
0.622038
e6758fad9429f6ec3117fcdd60fbc50ba24660f0
1,449
py
Python
lib/galaxy/web/framework/middleware/statsd.py
lawrence14701/galaxy
7eb2fcb708e7b63e17800c87613ddfa5497c0654
[ "CC-BY-3.0" ]
2
2017-03-28T12:11:41.000Z
2017-04-22T02:58:25.000Z
lib/galaxy/web/framework/middleware/statsd.py
lawrence14701/galaxy
7eb2fcb708e7b63e17800c87613ddfa5497c0654
[ "CC-BY-3.0" ]
12
2020-07-24T23:55:19.000Z
2021-12-19T11:40:06.000Z
lib/galaxy/web/framework/middleware/statsd.py
lawrence14701/galaxy
7eb2fcb708e7b63e17800c87613ddfa5497c0654
[ "CC-BY-3.0" ]
1
2019-01-16T22:21:54.000Z
2019-01-16T22:21:54.000Z
""" Middleware for sending request statistics to statsd. """ from __future__ import absolute_import import time from galaxy.model.orm.engine_factory import QUERY_COUNT_LOCAL from galaxy.web.statsd_client import GalaxyStatsdClient class StatsdMiddleware(object): """ This middleware will log request durations...
30.829787
124
0.620428
d7f52b1f54a59ea315b4eab32fc9de49b2b87cc1
18,843
py
Python
tests/tensorflow_autolog/test_tensorflow2_autolog.py
garciparedes/mlflow
b8e108351b6cc7aa449d4b06bf717930d8615f68
[ "Apache-2.0" ]
null
null
null
tests/tensorflow_autolog/test_tensorflow2_autolog.py
garciparedes/mlflow
b8e108351b6cc7aa449d4b06bf717930d8615f68
[ "Apache-2.0" ]
null
null
null
tests/tensorflow_autolog/test_tensorflow2_autolog.py
garciparedes/mlflow
b8e108351b6cc7aa449d4b06bf717930d8615f68
[ "Apache-2.0" ]
null
null
null
# pep8: disable=E501 import collections import pytest import numpy as np import pandas as pd import tensorflow as tf from tensorflow.python.keras import layers # pylint: disable=import-error import mlflow import mlflow.tensorflow import mlflow.keras import os np.random.seed(1337) SavedModelInfo = collections.nam...
34.385036
100
0.718941
2ddfc48bb6870ad18c9be2ae98ddac709c828f49
401
py
Python
fuse/asgi.py
elvo194/microfuse_comp_tech
300d9b4e1e3f064bf37390e10e013b22d39bf4c5
[ "MIT" ]
null
null
null
fuse/asgi.py
elvo194/microfuse_comp_tech
300d9b4e1e3f064bf37390e10e013b22d39bf4c5
[ "MIT" ]
null
null
null
fuse/asgi.py
elvo194/microfuse_comp_tech
300d9b4e1e3f064bf37390e10e013b22d39bf4c5
[ "MIT" ]
null
null
null
""" ASGI config for fuse project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJ...
23.588235
79
0.750623
a2db43f9131f8a608b7632151cfbf7bf1899cb78
233
py
Python
os/pdf/convert_image_to_text.py
pydeveloper510/Python
2e3cf5f9d132fbc6dd8c41a96166b6e879d86e0d
[ "MIT" ]
3
2021-04-23T08:04:14.000Z
2021-05-08T01:24:08.000Z
os/pdf/convert_image_to_text.py
pydeveloper510/Python
2e3cf5f9d132fbc6dd8c41a96166b6e879d86e0d
[ "MIT" ]
null
null
null
os/pdf/convert_image_to_text.py
pydeveloper510/Python
2e3cf5f9d132fbc6dd8c41a96166b6e879d86e0d
[ "MIT" ]
1
2021-05-08T01:24:46.000Z
2021-05-08T01:24:46.000Z
from PIL import Image import pytesseract pytesseract.pytesseract.tesseract_cmd = r"C:\Program Files (x86)\Tesseract-OCR\tesseract.exe" im = Image.open('images/P_5.png') text = pytesseract.image_to_string(im, lang='eng') print(text)
29.125
93
0.781116
afaa83f829fb9a658cad1d97e2b336bf3dc4dc92
716
py
Python
tests/test_utils.py
tantikristanti/delft
620ddf9e55e13213d2fc9af25b9d01331256d698
[ "Apache-2.0" ]
333
2018-05-16T07:02:05.000Z
2022-03-31T11:30:32.000Z
tests/test_utils.py
tantikristanti/delft
620ddf9e55e13213d2fc9af25b9d01331256d698
[ "Apache-2.0" ]
126
2018-06-26T18:47:18.000Z
2022-03-30T05:59:28.000Z
tests/test_utils.py
tantikristanti/delft
620ddf9e55e13213d2fc9af25b9d01331256d698
[ "Apache-2.0" ]
67
2018-05-15T21:28:59.000Z
2022-03-20T19:10:29.000Z
import logging from functools import wraps # derived from https://github.com/elifesciences/sciencebeam-trainer-delft/tree/develop/tests LOGGER = logging.getLogger(__name__) def log_on_exception(f: callable) -> callable: """ Wraps function to log error on exception. That is useful for tests that log a lo...
29.833333
92
0.664804
51ad8afcb6f18a931fb8b3a83255e891eef6ecc5
7,238
py
Python
tests/unit/baskerville_tests/features_tests/test_feature_response4xx_to_request_ratio.py
equalitie/baskerville
433551d03aee85d5c983ff6b25b388155b54190d
[ "CC-BY-4.0" ]
25
2020-05-19T11:20:47.000Z
2021-09-20T03:15:28.000Z
tests/unit/baskerville_tests/features_tests/test_feature_response4xx_to_request_ratio.py
mkaranasou/baskerville
433551d03aee85d5c983ff6b25b388155b54190d
[ "CC-BY-4.0" ]
29
2020-05-26T13:21:48.000Z
2021-09-21T06:52:28.000Z
tests/unit/baskerville_tests/features_tests/test_feature_response4xx_to_request_ratio.py
deflect-ca/baskerville
9659f4b39ab66fcf5329a4eccff15e97245b04f0
[ "CC-BY-4.0" ]
4
2020-06-11T07:00:16.000Z
2021-05-07T09:10:36.000Z
# Copyright (c) 2020, eQualit.ie 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. from pyspark.sql import functions as F, types as T from baskerville.util.enums import FeatureComputeType from baskerville.fe...
33.981221
82
0.574054
25e64faf43d18714eb692972324183f5fd854bb0
7,610
py
Python
test/functional/wallet_hd.py
barrystyle/nyc3
43a15d192e23602d2d5d97d458efbc1cb7a4da7d
[ "MIT" ]
1
2019-06-06T22:44:39.000Z
2019-06-06T22:44:39.000Z
test/functional/wallet_hd.py
barrystyle/nyc3
43a15d192e23602d2d5d97d458efbc1cb7a4da7d
[ "MIT" ]
null
null
null
test/functional/wallet_hd.py
barrystyle/nyc3
43a15d192e23602d2d5d97d458efbc1cb7a4da7d
[ "MIT" ]
3
2019-06-05T22:50:07.000Z
2021-04-19T22:59:55.000Z
#!/usr/bin/env python3 # Copyright (c) 2016-2018 The NYC3 Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test Hierarchical Deterministic wallet function.""" import os import shutil from test_framework.test_fra...
48.471338
150
0.659001
b4384ef5545885e078880b594bec3752858f282d
4,747
py
Python
utils.py
new2scala/graph-cnn.pytorch
8bee0c2ed687dcfdb277c71b70c8ea747b6ca9c7
[ "MIT" ]
null
null
null
utils.py
new2scala/graph-cnn.pytorch
8bee0c2ed687dcfdb277c71b70c8ea747b6ca9c7
[ "MIT" ]
null
null
null
utils.py
new2scala/graph-cnn.pytorch
8bee0c2ed687dcfdb277c71b70c8ea747b6ca9c7
[ "MIT" ]
null
null
null
import numpy as np import pickle as pkl import networkx as nx import scipy.sparse as sp import torch from scipy.sparse import csgraph def parse_index_file(filename): index = [] for line in open(filename): index.append(int(line.strip())) return index def normalize(mx): """Row-normalize sparse...
35.962121
111
0.650516
adb4a3e59b78ea172fba507f225dccbb52f72cef
3,365
py
Python
src/nn/sketch_encoder.py
VIVelev/sketchy-code
351ba3c770cccdf4189a99ae765fc6ef36742912
[ "MIT" ]
null
null
null
src/nn/sketch_encoder.py
VIVelev/sketchy-code
351ba3c770cccdf4189a99ae765fc6ef36742912
[ "MIT" ]
null
null
null
src/nn/sketch_encoder.py
VIVelev/sketchy-code
351ba3c770cccdf4189a99ae765fc6ef36742912
[ "MIT" ]
null
null
null
from keras import Model from keras.layers import (Conv2D, Dense, Dropout, Flatten, Input, MaxPool2D, Reshape) from keras.optimizers import RMSprop from ..utils.config import IMAGE_SIZE __all__ = [ 'SketchEncoder', ] class SketchEncoder: """Sketch Encoder Sketch (Image) Enm...
33.989899
100
0.622585
4cb7ca82217bd3d6308b067273694171c6693d8e
1,188
py
Python
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/vod/apis/GetHttpSslRequest.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
14
2018-04-19T09:53:56.000Z
2022-01-27T06:05:48.000Z
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/vod/apis/GetHttpSslRequest.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
15
2018-09-11T05:39:54.000Z
2021-07-02T12:38:02.000Z
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/vod/apis/GetHttpSslRequest.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
33
2018-04-20T05:29:16.000Z
2022-02-17T09:10:05.000Z
# coding=utf8 # Copyright 2018 JDCLOUD.COM # # 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 ...
28.285714
75
0.710438
72eed61456852315e3b93887ea7717a292a6154e
995
py
Python
zerver/management/commands/print_email_delivery_backlog.py
GauravVirmani/zulip
5a204d7c84d60e193f1ea0900d42848c5276a095
[ "Apache-2.0" ]
null
null
null
zerver/management/commands/print_email_delivery_backlog.py
GauravVirmani/zulip
5a204d7c84d60e193f1ea0900d42848c5276a095
[ "Apache-2.0" ]
1
2019-11-02T09:06:05.000Z
2019-11-02T09:06:05.000Z
zerver/management/commands/print_email_delivery_backlog.py
erinis-eligro/zulip-outcasts
51153a6ce219370aee79bfe462f6e4fb956993d9
[ "Apache-2.0" ]
1
2021-06-10T15:12:52.000Z
2021-06-10T15:12:52.000Z
#!/usr/bin/env python """ Shows backlog count of ScheduledJobs of type Email """ from __future__ import absolute_import from __future__ import print_function from typing import Any from django.conf import settings from django.core.management.base import BaseCommand from zerver.models import ScheduledJob from datet...
31.09375
112
0.733668
c4bbc544f0a46772593f92d614ff89de0ce9fa1a
4,488
py
Python
tests/test_work_create_reply.py
messense/wechatpy
46fdd873a0a04b8539a759a90ee81645405feb22
[ "MIT" ]
140
2015-01-12T09:18:59.000Z
2022-03-24T09:17:18.000Z
tests/test_work_create_reply.py
messense/wechatpy
46fdd873a0a04b8539a759a90ee81645405feb22
[ "MIT" ]
41
2015-01-05T11:56:30.000Z
2016-05-10T03:12:23.000Z
tests/test_work_create_reply.py
messense/wechatpy
46fdd873a0a04b8539a759a90ee81645405feb22
[ "MIT" ]
56
2015-01-12T04:14:24.000Z
2020-03-10T12:02:42.000Z
# -*- coding: utf-8 -*- import unittest from wechatpy.work.replies import TextReply, create_reply class CreateReplyTestCase(unittest.TestCase): def test_create_reply_with_text_not_render(self): text = 'test' reply = create_reply(text, render=False) self.assertEqual('text', reply.type) ...
32.057143
65
0.439171
529e2308f788d5f4bb028370ef5bea362327475d
4,066
py
Python
reskit/wind/core/design_turbine.py
OfficialCodexplosive/RESKit
e006e8c9923ddb044dab6951c95a15fa43489398
[ "MIT" ]
1
2021-01-10T13:29:33.000Z
2021-01-10T13:29:33.000Z
reskit/wind/core/design_turbine.py
OfficialCodexplosive/RESKit
e006e8c9923ddb044dab6951c95a15fa43489398
[ "MIT" ]
1
2021-01-12T10:07:49.000Z
2021-01-12T10:23:06.000Z
reskit/wind/core/design_turbine.py
OfficialCodexplosive/RESKit
e006e8c9923ddb044dab6951c95a15fa43489398
[ "MIT" ]
2
2021-01-05T10:50:29.000Z
2021-01-15T10:55:54.000Z
# from ._util import * # from ._costModel import * # from scipy.optimize import differential_evolution # from scipy.stats import exponweib import numpy as np import pandas as pd from .power_curve import compute_specific_power def onshore_turbine_from_avg_wind_speed(wind_speed, constant_rotor_diam=True, base_capacity...
43.72043
209
0.712494
d718d6d48fdb5c5d4bfb2a7ba8eebd82e00e9586
375
py
Python
deepleasy/migrations/0002_progress_task_id.py
Bechma/deepleasy-backend
d536aa79a45af673bd53137b041c60bd33d7130f
[ "Apache-2.0" ]
1
2020-12-12T14:26:52.000Z
2020-12-12T14:26:52.000Z
deepleasy/migrations/0002_progress_task_id.py
Bechma/deepleasy-backend
d536aa79a45af673bd53137b041c60bd33d7130f
[ "Apache-2.0" ]
7
2019-12-04T23:38:56.000Z
2022-02-10T00:16:17.000Z
deepleasy/migrations/0002_progress_task_id.py
Bechma/deepleasy-backend
d536aa79a45af673bd53137b041c60bd33d7130f
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.2.1 on 2019-05-23 14:07 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('deepleasy', '0001_initial'), ] operations = [ migrations.AddField( model_name='progress', name='task_id', ...
19.736842
47
0.581333
4f382bc07143a55fe0cbd4abc73e8c1acd9e0861
8,785
py
Python
pysit/util/derivatives/fd_tools.py
zfang-slim/pysit
8fca42b9749841abc302d1f8195a1437fad7ae4d
[ "BSD-3-Clause" ]
64
2015-09-08T06:23:27.000Z
2022-03-09T23:35:24.000Z
pysit/util/derivatives/fd_tools.py
zfang-slim/pysit
8fca42b9749841abc302d1f8195a1437fad7ae4d
[ "BSD-3-Clause" ]
23
2015-10-08T01:14:24.000Z
2021-07-15T11:37:05.000Z
pysit/util/derivatives/fd_tools.py
zfang-slim/pysit
8fca42b9749841abc302d1f8195a1437fad7ae4d
[ "BSD-3-Clause" ]
48
2015-06-25T14:48:22.000Z
2021-12-06T19:50:25.000Z
import warnings import math import numpy as np from pyamg.gallery import stencil_grid __all__ = ['cd_coeffs', 'fd_stencil', 'stencil_grid', 'fd_coeffs', 'build_1D_fd'] cd_coeffs = { 1 : { 1 : None, 2 : [-0.5, 0, 0.5], 3 : None, 4 : [1./12, -2./3, 0., 2./3, -1./12], 5 : Non...
34.586614
173
0.448264
eb10083e8e3d04b83e5dc90903b16d654ca99781
776
py
Python
test_project/config/urls.py
wishmaestro/drf-fat-models
09b8c8a15140044e570db4e9af3354c42768ec5c
[ "MIT" ]
null
null
null
test_project/config/urls.py
wishmaestro/drf-fat-models
09b8c8a15140044e570db4e9af3354c42768ec5c
[ "MIT" ]
null
null
null
test_project/config/urls.py
wishmaestro/drf-fat-models
09b8c8a15140044e570db4e9af3354c42768ec5c
[ "MIT" ]
null
null
null
"""test_project URL Configuration. The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.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'...
35.272727
78
0.690722
7c0426a02ef9c364c643278ae8e36e4a98685821
5,722
py
Python
scripts/mycobot_topics.py
lowpair/mycobot_ros
344bbf7392a0bdc2a4fdadbd2ff46e4327117c70
[ "BSD-2-Clause" ]
null
null
null
scripts/mycobot_topics.py
lowpair/mycobot_ros
344bbf7392a0bdc2a4fdadbd2ff46e4327117c70
[ "BSD-2-Clause" ]
null
null
null
scripts/mycobot_topics.py
lowpair/mycobot_ros
344bbf7392a0bdc2a4fdadbd2ff46e4327117c70
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python2 import time import os import sys import signal import threading import rospy from mycobot_ros.msg import (MycobotAngles, MycobotCoords, MycobotSetAngles, MycobotSetCoords, MycobotGripperStatus, MycobotPumpStatus) from sensor_msgs.msg import JointState from pymycobot.mycobot import MyCobot cl...
31.097826
135
0.574799
d8d8de4f540ab11477217b9ddd173cb4ef0737e2
4,804
py
Python
SCSCons/Tool/lex.py
Relintai/pandemonium_engine
3de05db75a396b497f145411f71eb363572b38ae
[ "MIT", "Apache-2.0", "CC-BY-4.0", "Unlicense" ]
1,403
2017-11-23T14:24:01.000Z
2022-03-30T20:59:39.000Z
SCSCons/Tool/lex.py
Relintai/pandemonium_engine
3de05db75a396b497f145411f71eb363572b38ae
[ "MIT", "Apache-2.0", "CC-BY-4.0", "Unlicense" ]
3,708
2017-11-27T13:47:12.000Z
2022-03-29T17:21:17.000Z
SCSCons/Tool/lex.py
Relintai/pandemonium_engine
3de05db75a396b497f145411f71eb363572b38ae
[ "MIT", "Apache-2.0", "CC-BY-4.0", "Unlicense" ]
281
2017-12-01T23:48:38.000Z
2022-03-31T15:25:44.000Z
# MIT License # # Copyright The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, ...
33.830986
91
0.681099
35b527a31ca1fe2a3196889ee3d2ab21e2242e79
4,956
py
Python
EvoAlgs/BreakersEvo/GenotypeEncoders/AngularEncoder.py
ITMO-NSS-team/breakwaters-evolutionary-optimisation
28cd184e5348659adf0da8eb9b6612269aaca4b6
[ "MIT" ]
1
2020-10-09T13:59:15.000Z
2020-10-09T13:59:15.000Z
EvoAlgs/BreakersEvo/GenotypeEncoders/AngularEncoder.py
ITMO-NSS-team/breakwaters-evolutionary-optimisation
28cd184e5348659adf0da8eb9b6612269aaca4b6
[ "MIT" ]
null
null
null
EvoAlgs/BreakersEvo/GenotypeEncoders/AngularEncoder.py
ITMO-NSS-team/breakwaters-evolutionary-optimisation
28cd184e5348659adf0da8eb9b6612269aaca4b6
[ "MIT" ]
null
null
null
import copy import random import numpy as np from EvoAlgs.BreakersEvo.GenotypeEncoders.GenotypeEncoder import DirectGenotypeEncoder class AngularGenotypeEncoder(DirectGenotypeEncoder): def __init__(self): self.min_for_init = [0, -75] self.max_for_init = [5, 75] def parameterized_genotype_to_...
40.958678
118
0.635593
6781454ef0877b6e751ac3545da893f79647223a
8,345
py
Python
var/spack/repos/builtin/packages/curl/package.py
mtmiller/spack
c97c135f1dbe24955048fcc4f0f98281ef0c9300
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1
2021-10-04T20:05:45.000Z
2021-10-04T20:05:45.000Z
var/spack/repos/builtin/packages/curl/package.py
mtmiller/spack
c97c135f1dbe24955048fcc4f0f98281ef0c9300
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
14
2021-05-12T05:45:58.000Z
2022-03-04T17:04:12.000Z
var/spack/repos/builtin/packages/curl/package.py
mtmiller/spack
c97c135f1dbe24955048fcc4f0f98281ef0c9300
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1
2020-10-27T19:25:49.000Z
2020-10-27T19:25:49.000Z
# Copyright 2013-2021 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) import sys from spack import * class Curl(AutotoolsPackage): """cURL is an open source command line tool and librar...
46.104972
97
0.678969
6830ad9eb17470175cc81002eafc43c9fb113b4d
1,538
py
Python
setup.py
OaklandPeters/pathological
c561eb30df8cdcc0f277a17cd08a03cf173e312f
[ "MIT" ]
null
null
null
setup.py
OaklandPeters/pathological
c561eb30df8cdcc0f277a17cd08a03cf173e312f
[ "MIT" ]
null
null
null
setup.py
OaklandPeters/pathological
c561eb30df8cdcc0f277a17cd08a03cf173e312f
[ "MIT" ]
null
null
null
from setuptools import setup long_description = ''' Pathological =========================== Unit-testing data-sets on the edge of sanity. A suite of examples of poorly behaving data, ready for unit-testing your libraries to death, along with tools unit-testing tool to simplify using them. ''' classifiers = [ # S...
30.156863
78
0.664499
6c366349d9e2aad51179702923c5f4b65325af7f
12,635
py
Python
metadata-ingestion/src/datahub/ingestion/source/ge_data_profiler.py
l0ginp/datahub
5e79b7a65bee8dc41a7fd6042f709a281f59eb85
[ "Apache-2.0" ]
1
2021-09-08T06:07:30.000Z
2021-09-08T06:07:30.000Z
metadata-ingestion/src/datahub/ingestion/source/ge_data_profiler.py
l0ginp/datahub
5e79b7a65bee8dc41a7fd6042f709a281f59eb85
[ "Apache-2.0" ]
null
null
null
metadata-ingestion/src/datahub/ingestion/source/ge_data_profiler.py
l0ginp/datahub
5e79b7a65bee8dc41a7fd6042f709a281f59eb85
[ "Apache-2.0" ]
1
2021-07-13T16:56:13.000Z
2021-07-13T16:56:13.000Z
import contextlib import dataclasses import unittest.mock from typing import Any, Iterable, Optional from great_expectations.core.expectation_validation_result import ( ExpectationSuiteValidationResult, ExpectationValidationResult, ) from great_expectations.data_context import BaseDataContext from great_expect...
42.399329
192
0.620657
e44c096a455d97dd848cee1ec77a1cd870d232f0
1,146
py
Python
GITcourse/main.py
CristianTeodorNita/GITcourse
0aa418b5f8700e243bff61ad030350a39a31568c
[ "MIT" ]
null
null
null
GITcourse/main.py
CristianTeodorNita/GITcourse
0aa418b5f8700e243bff61ad030350a39a31568c
[ "MIT" ]
null
null
null
GITcourse/main.py
CristianTeodorNita/GITcourse
0aa418b5f8700e243bff61ad030350a39a31568c
[ "MIT" ]
null
null
null
# import c # import a.a2.hello as hello # from b.random_number_generator import generate_number_between, generate_until_drawn # from a import try_again # from a.a1.number_generator import * from a import try_again # daca vrei sa importi din __init__.py al unui package from a.a1 import number_generator # daca vrei sa...
27.285714
228
0.713787
42b5bafd2e30fa20130a3fa726bca422f0756fbd
1,500
py
Python
jdcloud_sdk/services/vod/apis/CreateTranscodeTemplateGroupRequest.py
Tanc009/jdcloud-sdk-python
8b045c99bc5b73ca7348e950b6f01e03a27982f5
[ "Apache-2.0" ]
14
2018-04-19T09:53:56.000Z
2022-01-27T06:05:48.000Z
jdcloud_sdk/services/vod/apis/CreateTranscodeTemplateGroupRequest.py
Tanc009/jdcloud-sdk-python
8b045c99bc5b73ca7348e950b6f01e03a27982f5
[ "Apache-2.0" ]
15
2018-09-11T05:39:54.000Z
2021-07-02T12:38:02.000Z
jdcloud_sdk/services/vod/apis/CreateTranscodeTemplateGroupRequest.py
Tanc009/jdcloud-sdk-python
8b045c99bc5b73ca7348e950b6f01e03a27982f5
[ "Apache-2.0" ]
33
2018-04-20T05:29:16.000Z
2022-02-17T09:10:05.000Z
# coding=utf8 # Copyright 2018 JDCLOUD.COM # # 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 ...
27.777778
75
0.688
3e9f1497bf03e87547cba07b2878e37fa803896a
3,883
py
Python
covidxpert/utils/peaks_and_valleys.py
LucaCappelletti94/covidxpert
8adda25f3d6fb648607c0f8af7d3ff54b42c59fb
[ "MIT" ]
2
2020-05-22T12:50:11.000Z
2021-03-12T01:00:17.000Z
covidxpert/utils/peaks_and_valleys.py
LucaCappelletti94/covidxpert
8adda25f3d6fb648607c0f8af7d3ff54b42c59fb
[ "MIT" ]
6
2020-05-27T19:03:15.000Z
2021-03-02T11:12:06.000Z
covidxpert/utils/peaks_and_valleys.py
LucaCappelletti94/covidxpert
8adda25f3d6fb648607c0f8af7d3ff54b42c59fb
[ "MIT" ]
1
2020-05-27T07:21:02.000Z
2020-05-27T07:21:02.000Z
from typing import Tuple import numpy as np import cv2 def central_peak(image: np.ndarray, use_left_padding: bool = True, use_right_padding: bool = True) -> int: """Return central peak of given image. The central peak is detected best in blurred images. Parameters ------------------------ image:...
32.090909
106
0.641772
c427c84b38dc40b6b11550a344f48353d0eaeedd
9,666
py
Python
google/ads/google_ads/v6/proto/enums/distance_bucket_pb2.py
jphanwebstaurant/google-ads-python
600812b2afcc4d57f00b47dfe436620ce50bfe9b
[ "Apache-2.0" ]
1
2021-04-09T04:28:47.000Z
2021-04-09T04:28:47.000Z
google/ads/google_ads/v6/proto/enums/distance_bucket_pb2.py
jphanwebstaurant/google-ads-python
600812b2afcc4d57f00b47dfe436620ce50bfe9b
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v6/proto/enums/distance_bucket_pb2.py
jphanwebstaurant/google-ads-python
600812b2afcc4d57f00b47dfe436620ce50bfe9b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/ads/googleads_v6/proto/enums/distance_bucket.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google....
41.663793
1,506
0.755121
b722f2801741dcdc881dd6633de26fa8b305e994
574
py
Python
0077 Anagram Partitioning.py
ansabgillani/binarysearchcomproblems
12fe8632f8cbb5058c91a55bae53afa813a3247e
[ "MIT" ]
null
null
null
0077 Anagram Partitioning.py
ansabgillani/binarysearchcomproblems
12fe8632f8cbb5058c91a55bae53afa813a3247e
[ "MIT" ]
null
null
null
0077 Anagram Partitioning.py
ansabgillani/binarysearchcomproblems
12fe8632f8cbb5058c91a55bae53afa813a3247e
[ "MIT" ]
null
null
null
class Solution: def solve(self, a, b): if Counter(a) != Counter(b): return [] counts = defaultdict(int) diffs = 0 ans = [0] for i in range(len(a)): counts[a[i]] += 1 if counts[a[i]] == 1: diffs += 1 counts[b[i]] -= 1 if b[i] ...
23.916667
62
0.400697
88dfedfed22c8b2f36a2d8edd282ce494ff072c9
408
py
Python
fixture/application.py
vladTsaparin/python_for_qa
de819d4041080daf70ea069acf569effd9702baf
[ "Apache-2.0" ]
null
null
null
fixture/application.py
vladTsaparin/python_for_qa
de819d4041080daf70ea069acf569effd9702baf
[ "Apache-2.0" ]
null
null
null
fixture/application.py
vladTsaparin/python_for_qa
de819d4041080daf70ea069acf569effd9702baf
[ "Apache-2.0" ]
null
null
null
from selenium import webdriver from session import SessionHelper class Application: def __init__(self): self.wd = webdriver.Firefox() self.wd.implicitly_wait(60) self.session = SessionHelper(self) def open_login_page(self): wd = self.wd wd.get("https://netfanz:1qaz2ws...
22.666667
79
0.666667
292f5f527aa15960a696850cc45a9bc18562ad8c
16,006
py
Python
openquake.hazardlib/openquake/hazardlib/tests/geo/surface/_simple_fault_test_data.py
rainzhop/ConvNetQuake
a3e6de3f7992eac72f1b9883fec36b8c7fdefd48
[ "MIT" ]
null
null
null
openquake.hazardlib/openquake/hazardlib/tests/geo/surface/_simple_fault_test_data.py
rainzhop/ConvNetQuake
a3e6de3f7992eac72f1b9883fec36b8c7fdefd48
[ "MIT" ]
null
null
null
openquake.hazardlib/openquake/hazardlib/tests/geo/surface/_simple_fault_test_data.py
rainzhop/ConvNetQuake
a3e6de3f7992eac72f1b9883fec36b8c7fdefd48
[ "MIT" ]
null
null
null
# The Hazard Library # Copyright (C) 2012-2016 GEM Foundation # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. #...
47.35503
74
0.675497
7500ab8aeb3af5829cc69af1a73cb89fd816c328
12,003
py
Python
models.py
Johnson-yue/Implicit-Competitive-Regularization
b2ef9e41e083e9733cdc218b296a486f2e470275
[ "Apache-2.0" ]
1
2019-12-28T15:32:08.000Z
2019-12-28T15:32:08.000Z
models.py
ibrahim85/Implicit-Competitive-Regularization
3b4f1bab2b3a9d944b4d4a91f88a0c88af0c647b
[ "Apache-2.0" ]
null
null
null
models.py
ibrahim85/Implicit-Competitive-Regularization
3b4f1bab2b3a9d944b4d4a91f88a0c88af0c647b
[ "Apache-2.0" ]
null
null
null
import torch.nn as nn DIM = 64 class GoodGenerator(nn.Module): def __init__(self): super(GoodGenerator, self).__init__() self.preprocess = nn.Sequential( nn.Linear(128, 4 * 4 * 4 * DIM), nn.BatchNorm1d(4 * 4 * 4 * DIM), nn.ReLU(True), ) self.ma...
35.302941
100
0.53195
62244b93f3effa54f32d6e52d497ae614a6d9de2
40,459
py
Python
tests/integration/standard/test_cluster.py
richardARPANET/python-driver
19d64f50d708bbdc8dc723befb73f3c17bf7ef53
[ "Apache-2.0" ]
null
null
null
tests/integration/standard/test_cluster.py
richardARPANET/python-driver
19d64f50d708bbdc8dc723befb73f3c17bf7ef53
[ "Apache-2.0" ]
null
null
null
tests/integration/standard/test_cluster.py
richardARPANET/python-driver
19d64f50d708bbdc8dc723befb73f3c17bf7ef53
[ "Apache-2.0" ]
null
null
null
# Copyright 2013-2016 DataStax, 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 writi...
40.950405
190
0.672829
3fa287a0cbe0b1cd62da56e7ac2f7f2cd86e4bc0
2,109
py
Python
azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/network_watcher.py
v-Ajnava/azure-sdk-for-python
a1f6f80eb5869c5b710e8bfb66146546697e2a6f
[ "MIT" ]
4
2016-06-17T23:25:29.000Z
2022-03-30T22:37:45.000Z
azure/mgmt/network/v2017_06_01/models/network_watcher.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
2
2016-09-30T21:40:24.000Z
2017-11-10T18:16:18.000Z
azure/mgmt/network/v2017_06_01/models/network_watcher.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
3
2016-05-03T20:49:46.000Z
2017-10-05T21:05:27.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 ...
35.15
85
0.589853
1521ee80f2e3e0693f226cbe9ec4e4b96d9a6c8f
174
py
Python
0009 Largest Sum of Non-Adjacent Numbers.py
ansabgillani/binarysearchcomproblems
12fe8632f8cbb5058c91a55bae53afa813a3247e
[ "MIT" ]
1
2020-12-29T21:17:26.000Z
2020-12-29T21:17:26.000Z
0009 Largest Sum of Non-Adjacent Numbers.py
ansabgillani/binarysearchcomproblems
12fe8632f8cbb5058c91a55bae53afa813a3247e
[ "MIT" ]
null
null
null
0009 Largest Sum of Non-Adjacent Numbers.py
ansabgillani/binarysearchcomproblems
12fe8632f8cbb5058c91a55bae53afa813a3247e
[ "MIT" ]
4
2021-09-09T17:42:43.000Z
2022-03-18T04:54:03.000Z
class Solution: def solve(self, nums): dp = [0,0] for i in range(len(nums)): dp.append(max(0,nums[i]+dp[-2],dp[-1])) return max(dp)
19.333333
51
0.488506
52022cb43d4898cbd4d3b487f3e79ea343fe0766
4,670
py
Python
harness/determined/common/storage/gcs.py
gh-determined-ai/determined
9a1ab33a3a356b69681b3351629fef4ab98ddb56
[ "Apache-2.0" ]
null
null
null
harness/determined/common/storage/gcs.py
gh-determined-ai/determined
9a1ab33a3a356b69681b3351629fef4ab98ddb56
[ "Apache-2.0" ]
null
null
null
harness/determined/common/storage/gcs.py
gh-determined-ai/determined
9a1ab33a3a356b69681b3351629fef4ab98ddb56
[ "Apache-2.0" ]
null
null
null
import logging import os import tempfile from typing import Optional, Union, no_type_check import requests.exceptions import urllib3.exceptions from determined import errors from determined.common import storage, util from determined.common.storage.s3 import normalize_prefix class GCSStorageManager(storage.CloudSto...
39.576271
98
0.652463
ca79d413b5482d1b9c0b5ace8587eeaa63a31885
1,758
py
Python
code/georgia.py
jordankeener/ncaa_rosters
12e66e9ef7502ab6869e7352ae673c46680eedd0
[ "MIT" ]
null
null
null
code/georgia.py
jordankeener/ncaa_rosters
12e66e9ef7502ab6869e7352ae673c46680eedd0
[ "MIT" ]
null
null
null
code/georgia.py
jordankeener/ncaa_rosters
12e66e9ef7502ab6869e7352ae673c46680eedd0
[ "MIT" ]
null
null
null
from urllib.request import urlopen from urllib.request import FancyURLopener from bs4 import BeautifulSoup import pandas as pd import os import _proj_functions as proj import _lookups as lookups import re outdir = '../output' ##### georgia ################# school = 'georgia' url_template = 'https://georgiadogs.com/r...
31.963636
71
0.717292
6d4e605191442b15e23845b3413c4e52af0bdb22
2,615
py
Python
art/exceptions.py
david-shmailov/adversarial-robustness-toolbox
ad8b94d3928abe218cd6ab2eed1c5c21f1d6e420
[ "MIT" ]
1
2022-01-31T15:17:20.000Z
2022-01-31T15:17:20.000Z
art/exceptions.py
david-shmailov/adversarial-robustness-toolbox
ad8b94d3928abe218cd6ab2eed1c5c21f1d6e420
[ "MIT" ]
1
2022-03-18T00:41:02.000Z
2022-03-18T00:41:02.000Z
art/exceptions.py
david-shmailov/adversarial-robustness-toolbox
ad8b94d3928abe218cd6ab2eed1c5c21f1d6e420
[ "MIT" ]
1
2022-03-22T05:30:31.000Z
2022-03-22T05:30:31.000Z
# MIT License # # Copyright (C) The Adversarial Robustness Toolbox (ART) Authors 2018 # # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated # documentation files (the "Software"), to deal in the Software without restriction, including without limitation the # r...
45.877193
120
0.689101
3327b52c35e383f07d9be529a787ad0edb0e800a
8,050
py
Python
finance/WeekTest/WeekDataPrepare.py
Ernestyj/PyStudy
ee2e314eb808b0b7c4574b3061814abb81bbb7ab
[ "Apache-2.0" ]
1
2016-11-28T03:26:05.000Z
2016-11-28T03:26:05.000Z
finance/WeekTest/WeekDataPrepare.py
Ernestyj/PyStudy
ee2e314eb808b0b7c4574b3061814abb81bbb7ab
[ "Apache-2.0" ]
null
null
null
finance/WeekTest/WeekDataPrepare.py
Ernestyj/PyStudy
ee2e314eb808b0b7c4574b3061814abb81bbb7ab
[ "Apache-2.0" ]
2
2017-02-02T15:13:01.000Z
2019-05-30T01:59:17.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import numpy as np import pandas as pd import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D import talib pd.set_option('display.max_rows', 500) pd.set_option('display.max_columns', 30) pd.set_option('precision', 7) pd.options.display.float_format = '{:,...
36.590909
118
0.590311
8b763121287feeadca5923f39fd351bcf58ba51b
1,952
py
Python
src/box/repository.py
boydfd/mAP
a7813020232931e518f2e5677a81deff1ff89b6a
[ "Apache-2.0" ]
null
null
null
src/box/repository.py
boydfd/mAP
a7813020232931e518f2e5677a81deff1ff89b6a
[ "Apache-2.0" ]
null
null
null
src/box/repository.py
boydfd/mAP
a7813020232931e518f2e5677a81deff1ff89b6a
[ "Apache-2.0" ]
null
null
null
import os from itertools import groupby from typing import Any import yaml class Serializer: def serialize(self, entity) -> Any: pass def deserialize(self, serialized_entity): pass class YamlSerializer(Serializer): def serialize(self, entity): return yaml.dump(entity) def ...
23.238095
101
0.603996
139694b5366598e2819d26d3f77c605c278b8a40
13,817
py
Python
scripts/genomon_pipeline/config/sample_conf.py
Genomon-Project/Genomon
95814bbb94fc64805e0b52b1ea2263ee17c4cd17
[ "BSD-3-Clause" ]
10
2016-02-01T01:02:55.000Z
2022-01-29T23:37:51.000Z
scripts/genomon_pipeline/config/sample_conf.py
Genomon-Project/GenomonPipeline
95814bbb94fc64805e0b52b1ea2263ee17c4cd17
[ "BSD-3-Clause" ]
114
2015-09-09T08:27:24.000Z
2022-01-12T10:31:53.000Z
scripts/genomon_pipeline/config/sample_conf.py
Genomon-Project/GenomonPipeline
95814bbb94fc64805e0b52b1ea2263ee17c4cd17
[ "BSD-3-Clause" ]
6
2016-12-15T02:28:46.000Z
2022-01-29T23:37:52.000Z
#! /usr/bin/env python import os class Sample_conf(object): def __init__(self): self.fastq = {} self.bam_tofastq = {} self.bam_import = {} self.mutation_call = [] self.sv_detection = [] self.qc = [] self.control_panel = {} self.fusion = [] ...
35.428205
131
0.478686
89a24150bcc8c4912512f36aadaf61356e421633
55,975
py
Python
electrum_mona/tests/test_lnpeer.py
wakiyamap/electrum-mona
d00830c96785c77025432669158ad903146a2298
[ "MIT" ]
61
2017-08-06T08:51:49.000Z
2021-12-28T06:25:36.000Z
electrum_mona/tests/test_lnpeer.py
wakiyamap/electrum-mona
d00830c96785c77025432669158ad903146a2298
[ "MIT" ]
15
2017-09-12T07:15:01.000Z
2021-12-28T06:25:15.000Z
electrum_mona/tests/test_lnpeer.py
wakiyamap/electrum-mona
d00830c96785c77025432669158ad903146a2298
[ "MIT" ]
27
2017-08-18T19:40:30.000Z
2021-03-01T11:16:02.000Z
import asyncio import tempfile from decimal import Decimal import os from contextlib import contextmanager from collections import defaultdict import logging import concurrent from concurrent import futures import unittest from typing import Iterable, NamedTuple, Tuple, List, Dict from aiorpcx import TaskGroup, timeou...
45.545159
128
0.652863
b2f6371d4cce5e86235b75b37e596bf3ede570e0
2,801
py
Python
app/core/models.py
veyselbugraaydogan/recipe-app-api
7b2271a6ccd6525486a7c387d465ced2c18f15da
[ "MIT" ]
1
2019-06-11T15:16:45.000Z
2019-06-11T15:16:45.000Z
app/core/models.py
veyselbugraaydogan/recipe-app-api
7b2271a6ccd6525486a7c387d465ced2c18f15da
[ "MIT" ]
null
null
null
app/core/models.py
veyselbugraaydogan/recipe-app-api
7b2271a6ccd6525486a7c387d465ced2c18f15da
[ "MIT" ]
null
null
null
import uuid import os from django.db import models from django.contrib.auth.models import AbstractBaseUser, BaseUserManager, \ PermissionsMixin from django.conf import settings def recipe_image_file_path(instance, filename): """Generate file path for new recipe image""" ...
28.581633
76
0.677615
2a8455400fcb18069900da917b59ef72117c5049
11,411
py
Python
herschel/calculateMergers.py
sniemi/SamPy
e048756feca67197cf5f995afd7d75d8286e017b
[ "BSD-2-Clause" ]
5
2016-05-28T14:12:28.000Z
2021-04-22T10:23:12.000Z
herschel/calculateMergers.py
sniemi/SamPy
e048756feca67197cf5f995afd7d75d8286e017b
[ "BSD-2-Clause" ]
null
null
null
herschel/calculateMergers.py
sniemi/SamPy
e048756feca67197cf5f995afd7d75d8286e017b
[ "BSD-2-Clause" ]
2
2015-07-13T10:04:10.000Z
2021-04-22T10:23:23.000Z
""" This script calculates merger fractions. These results are presented in the Herschel I paper of Niemi et al. 2011. """ import os import numpy as N import SamPy.db.sqlite as sq if __name__ == '__main__': #find the home directory, because the output is to dropbox #and my user name is not always the same...
48.351695
110
0.578039
b240f51f19f3f13a6dd666fdcff641600c0dc401
3,607
py
Python
test/functional/rpc_blockchain.py
donPabloNow/digiwage
87491caf8563779b1bb69866e102cb8a1439b427
[ "MIT" ]
14
2018-03-19T23:28:42.000Z
2022-03-11T08:58:01.000Z
test/functional/rpc_blockchain.py
donPabloNow/digiwage
87491caf8563779b1bb69866e102cb8a1439b427
[ "MIT" ]
4
2018-03-30T13:55:22.000Z
2022-01-30T21:17:25.000Z
test/functional/rpc_blockchain.py
donPabloNow/digiwage
87491caf8563779b1bb69866e102cb8a1439b427
[ "MIT" ]
22
2018-04-08T07:41:41.000Z
2022-03-11T03:29:25.000Z
#!/usr/bin/env python3 # Copyright (c) 2014-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test RPCs related to blockchainstate. Test the following RPCs: - getblockchaininfo - gettxouts...
32.790909
87
0.659551
5355f85ce58be3dc6bff9c45ad3b65da037930d9
3,669
py
Python
posthog/models/filters/mixins/funnel.py
alx-a/posthog
a76959bb2a7640ca8cf367a4d3a0e4ca67f65a5e
[ "MIT" ]
null
null
null
posthog/models/filters/mixins/funnel.py
alx-a/posthog
a76959bb2a7640ca8cf367a4d3a0e4ca67f65a5e
[ "MIT" ]
null
null
null
posthog/models/filters/mixins/funnel.py
alx-a/posthog
a76959bb2a7640ca8cf367a4d3a0e4ca67f65a5e
[ "MIT" ]
null
null
null
from typing import Optional from posthog.constants import ( BIN_COUNT, DISPLAY, FUNNEL_FROM_STEP, FUNNEL_ORDER_TYPE, FUNNEL_STEP, FUNNEL_TO_STEP, FUNNEL_VIZ_TYPE, FUNNEL_WINDOW_DAYS, INSIGHT, INSIGHT_FUNNELS, TRENDS_LINEAR, FunnelOrderType, FunnelVizType, ) from post...
30.322314
110
0.682475
809b35fc233b69b320daabd3dd6693fb9147fd0a
4,285
py
Python
filebrowser/templatetags/fb_tags.py
hu-django/filebrowser-no-grappelli
3d7f9579146cf51933c47bec05b78dd718bb4007
[ "BSD-3-Clause" ]
null
null
null
filebrowser/templatetags/fb_tags.py
hu-django/filebrowser-no-grappelli
3d7f9579146cf51933c47bec05b78dd718bb4007
[ "BSD-3-Clause" ]
1
2022-02-21T14:33:01.000Z
2022-02-21T14:33:01.000Z
filebrowser/templatetags/fb_tags.py
hu-django/filebrowser-no-grappelli
3d7f9579146cf51933c47bec05b78dd718bb4007
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # django imports from django import template from django.utils.http import urlquote # filebrowser imports from filebrowser.settings import SELECT_FORMATS register = template.Library() @register.inclusion_tag('filebrowser/include/_response.html', takes_context=True) def query_string(context, add=N...
27.467949
118
0.599767
0389ce66041ce2aba4b56550eab2ba68268a63ba
1,426
py
Python
icedata/datasets/pets/tests/test_parsers.py
airctic/icedata
a255d401ee4d4f71bc47268aee2d5d07901332b6
[ "Apache-2.0" ]
42
2020-09-14T18:28:02.000Z
2022-03-30T19:55:10.000Z
icedata/datasets/pets/tests/test_parsers.py
fstroth/icedata
0b543d887aaf28e2fa4822310e0b2b22cd5acec4
[ "Apache-2.0" ]
103
2020-09-11T19:50:29.000Z
2022-03-15T13:07:10.000Z
icedata/datasets/pets/tests/test_parsers.py
fstroth/icedata
0b543d887aaf28e2fa4822310e0b2b22cd5acec4
[ "Apache-2.0" ]
19
2020-09-11T19:26:50.000Z
2022-03-15T13:09:44.000Z
import icedata from icevision.all import * def test_parser(data_dir): parser = icedata.pets.parser(data_dir, mask=True) records = parser.parse(data_splitter=SingleSplitSplitter())[0] assert len(records) == 5 record = records[0] assert record.filepath.name == "Abyssinian_119.jpg" assert recor...
50.928571
682
0.774895
f4c4841c2a2d0edc0336ca639499a15556f0300a
1,909
py
Python
homeassistant/components/wink/cover.py
VirtualL/home-assistant
301829d02be8d865ab46c8901ac046d060849320
[ "Apache-2.0" ]
2
2017-10-26T19:43:55.000Z
2017-12-30T23:29:00.000Z
homeassistant/components/wink/cover.py
VirtualL/home-assistant
301829d02be8d865ab46c8901ac046d060849320
[ "Apache-2.0" ]
3
2021-09-08T03:34:57.000Z
2022-03-12T00:59:48.000Z
homeassistant/components/wink/cover.py
VirtualL/home-assistant
301829d02be8d865ab46c8901ac046d060849320
[ "Apache-2.0" ]
1
2019-06-19T07:43:11.000Z
2019-06-19T07:43:11.000Z
"""Support for Wink covers.""" from homeassistant.components.cover import ATTR_POSITION, CoverDevice from . import DOMAIN, WinkDevice DEPENDENCIES = ['wink'] def setup_platform(hass, config, add_entities, discovery_info=None): """Set up the Wink cover platform.""" import pywink for shade in pywink.get_...
32.355932
69
0.636459
95e2822563bfda51354d19f269b38a0e4ab87377
2,588
py
Python
nex2art/core/Ldap3.py
ghl1024/nexus2artifactory
1b300e1ea9c51d51a89096e8b710a0763750c38d
[ "Apache-2.0" ]
50
2018-08-30T00:39:16.000Z
2022-01-27T10:08:19.000Z
nex2art/core/Ldap3.py
ghl1024/nexus2artifactory
1b300e1ea9c51d51a89096e8b710a0763750c38d
[ "Apache-2.0" ]
68
2018-06-12T10:37:01.000Z
2022-01-10T02:47:12.000Z
nex2art/core/Ldap3.py
ghl1024/nexus2artifactory
1b300e1ea9c51d51a89096e8b710a0763750c38d
[ "Apache-2.0" ]
38
2018-06-11T10:38:03.000Z
2021-11-12T15:00:21.000Z
import logging class Ldap3(object): def __init__(self): self.log = logging.getLogger(__name__) self.initialize() def initialize(self): self.ldap = None def refresh(self, data): self.log.info("Reading LDAP config from Nexus.") ldaps = {} for ldap in data['ld...
43.864407
83
0.535549
594ab0f9e315f72cc9b89c0a9a0512e459317620
5,092
py
Python
ccnpy/tests/test_Packet.py
mmosko/ccnpy
20d982e2e3845818fde7f3facdc8cbcdff323dbb
[ "Apache-2.0" ]
1
2020-12-23T14:17:25.000Z
2020-12-23T14:17:25.000Z
ccnpy/tests/test_Packet.py
mmosko/ccnpy
20d982e2e3845818fde7f3facdc8cbcdff323dbb
[ "Apache-2.0" ]
1
2019-07-01T18:19:05.000Z
2019-07-02T05:35:52.000Z
ccnpy/tests/test_Packet.py
mmosko/ccnpy
20d982e2e3845818fde7f3facdc8cbcdff323dbb
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Marc Mosko # # 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 writ...
45.873874
109
0.460723
9718da381ce1684ebf812005f64a6923f23a0c99
357
py
Python
Day-067/regular-exp-3.py
arvimal/100DaysofCode
ad4899bc88b948c3efd90337d64e932f1627fd94
[ "MIT" ]
1
2018-06-28T17:39:38.000Z
2018-06-28T17:39:38.000Z
Day-067/regular-exp-3.py
arvimal/100DaysofCode-Python
01e59f45b4dc06a3be9e9900456a6bd439752911
[ "MIT" ]
null
null
null
Day-067/regular-exp-3.py
arvimal/100DaysofCode-Python
01e59f45b4dc06a3be9e9900456a6bd439752911
[ "MIT" ]
7
2020-01-24T23:03:58.000Z
2021-05-31T01:00:27.000Z
#!/usr/bin/env python3 # The `re.search(pattern, text)` can only search for single instances of text. # REFER `Day-067/regular-exp-1.py` # To find multiple occurrences, use `re.findall()` import re # Text to search text = "Hello, how are you, Are you fine?" # Patterns to match pattern_A = "this" pattern_B = "how" ...
19.833333
78
0.697479
d40e5588c555ee925842de8a892a8af54203e1ff
22,272
py
Python
app/k5APIwrappersV3.py
allthingsclowd/K5_User_Onboarding_Example
313b0033ceb015cca86574762915e02000d4bbbb
[ "MIT" ]
null
null
null
app/k5APIwrappersV3.py
allthingsclowd/K5_User_Onboarding_Example
313b0033ceb015cca86574762915e02000d4bbbb
[ "MIT" ]
null
null
null
app/k5APIwrappersV3.py
allthingsclowd/K5_User_Onboarding_Example
313b0033ceb015cca86574762915e02000d4bbbb
[ "MIT" ]
null
null
null
#!/usr/bin/python """Summary: User onboarding process focused example python based API request calls for the Fujitsu K5 IaaS Platform Author: Graham Land Date: 08/12/16 Twitter: @allthingsclowd Github: https://github.com/allthingscloud Blog: https://allthingscloud.eu """ import requests de...
38.733913
128
0.477954
c89f307ac95e38075a7038d1c5fa7df969e0711f
2,936
py
Python
allennlp/tests/modules/token_embedders/pretrained_transformer_embedder_test.py
nadgeri14/allennlp
2eefffaf71612263a1c20e8ce4107849cfd5efe3
[ "Apache-2.0" ]
null
null
null
allennlp/tests/modules/token_embedders/pretrained_transformer_embedder_test.py
nadgeri14/allennlp
2eefffaf71612263a1c20e8ce4107849cfd5efe3
[ "Apache-2.0" ]
null
null
null
allennlp/tests/modules/token_embedders/pretrained_transformer_embedder_test.py
nadgeri14/allennlp
2eefffaf71612263a1c20e8ce4107849cfd5efe3
[ "Apache-2.0" ]
null
null
null
import torch from allennlp.common import Params from allennlp.data import Vocabulary from allennlp.data.batch import Batch from allennlp.data.fields import TextField from allennlp.data.instance import Instance from allennlp.data.token_indexers import PretrainedTransformerIndexer from allennlp.data.tokenizers import Pr...
40.777778
97
0.653951
f46c4d818e21a4a0e4fb6515ec7971405b3ccf0f
1,220
py
Python
scrapers/tables.py
todorus/openkaart-data
a6781a205f9600a2911ab7ff79bea17d2680cfa4
[ "MIT" ]
null
null
null
scrapers/tables.py
todorus/openkaart-data
a6781a205f9600a2911ab7ff79bea17d2680cfa4
[ "MIT" ]
null
null
null
scrapers/tables.py
todorus/openkaart-data
a6781a205f9600a2911ab7ff79bea17d2680cfa4
[ "MIT" ]
null
null
null
import psycopg2 from shapely.geometry import shape import os.path import logging def municipalities(conn, cur): logging.info("(re)creating municipalities") cur.execute("DROP TABLE IF EXISTS municipalities") cur.execute('CREATE TABLE municipalities (id serial PRIMARY KEY, code integer, name varchar, "geomet...
42.068966
174
0.737705
ac0281c71d133b4860e315c0d3a02f85ec9f341d
5,289
py
Python
external/loaders/loaders/mappers/_fine_res_budget.py
ai2cm/fv3net
e62038aee0a97d6207e66baabd8938467838cf51
[ "MIT" ]
1
2021-12-14T23:43:35.000Z
2021-12-14T23:43:35.000Z
external/loaders/loaders/mappers/_fine_res_budget.py
ai2cm/fv3net
e62038aee0a97d6207e66baabd8938467838cf51
[ "MIT" ]
195
2021-09-16T05:47:18.000Z
2022-03-31T22:03:15.000Z
external/loaders/loaders/mappers/_fine_res_budget.py
ai2cm/fv3net
e62038aee0a97d6207e66baabd8938467838cf51
[ "MIT" ]
null
null
null
import xarray from typing import Tuple from typing_extensions import Protocol import vcm def eddy_flux_coarse(unresolved_flux, total_resolved_flux, omega, field): """Compute re-coarsened eddy flux divergence from re-coarsed data """ return unresolved_flux + (total_resolved_flux - omega * field) FINE_RES...
36.729167
88
0.741161
200a5ce7715c181c12548f20c56024c90b1d1aea
3,944
py
Python
src/posts/models.py
stefikolo/DRF_API
cde13a9ee8f52401b9ec0a007607120562e2b234
[ "MIT" ]
null
null
null
src/posts/models.py
stefikolo/DRF_API
cde13a9ee8f52401b9ec0a007607120562e2b234
[ "MIT" ]
null
null
null
src/posts/models.py
stefikolo/DRF_API
cde13a9ee8f52401b9ec0a007607120562e2b234
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.conf import settings from django.contrib.contenttypes.models import ContentType from django.urls import reverse from django.db import models from django.db.models.signals import pre_save from django.utils import timezone from django.utils.safestring import mark_safe ...
33.142857
105
0.690923
74c03e715e6014b99297f1ec03cb87f2c165d4da
826
py
Python
pulsus/services/base/notification.py
pennersr/pulsus
ace014ca40e3928b235e1bcfebe22301c7f3cafe
[ "MIT" ]
14
2015-01-16T07:48:43.000Z
2019-04-19T23:13:50.000Z
pulsus/services/base/notification.py
pennersr/pulsus
ace014ca40e3928b235e1bcfebe22301c7f3cafe
[ "MIT" ]
null
null
null
pulsus/services/base/notification.py
pennersr/pulsus
ace014ca40e3928b235e1bcfebe22301c7f3cafe
[ "MIT" ]
2
2015-08-06T12:52:56.000Z
2019-02-07T18:09:23.000Z
class BaseNotification(object): service_type = None notification_type = None def serialize_data(self): raise NotImplementedError() def serialize(self): ret = {'data': self.serialize_data()} ret['type'] = self.service_type if self.notification_type: ret['kin...
30.592593
66
0.642857
13b35846fb9327bf424383f3cce35f3f001adfd4
7,667
py
Python
src/PreprocessML20M.py
olivierjeunen/ease-side-info-recsys-2020
66713a4a2d4b238e883254da4be7b51e8bbc1b96
[ "MIT" ]
12
2020-08-17T08:20:48.000Z
2022-01-25T11:43:59.000Z
src/PreprocessML20M.py
olivierjeunen/ease-side-info-recsys-2020
66713a4a2d4b238e883254da4be7b51e8bbc1b96
[ "MIT" ]
1
2021-10-08T05:01:15.000Z
2021-11-05T10:54:03.000Z
src/PreprocessML20M.py
olivierjeunen/ease-side-info-recsys-2020
66713a4a2d4b238e883254da4be7b51e8bbc1b96
[ "MIT" ]
3
2020-11-30T05:35:10.000Z
2022-02-19T09:00:31.000Z
import argparse import numpy as np import os import pandas as pd import pickle import util from datetime import datetime from scipy.sparse import save_npz, vstack from sklearn.preprocessing import LabelEncoder if __name__ == '__main__': # Commandline arguments parser = argparse.ArgumentParser() parser.add_...
46.466667
189
0.647059
2a3eb179275b89827a310426b9f8b67fc41faf57
2,329
py
Python
ibmdbpy/series.py
marc-mclean1/ibmdbpy
46d885e793da52c58424885d74ab1a6668c391b3
[ "BSD-3-Clause" ]
21
2016-02-18T13:10:48.000Z
2020-11-09T00:09:07.000Z
ibmdbpy/series.py
marc-mclean1/ibmdbpy
46d885e793da52c58424885d74ab1a6668c391b3
[ "BSD-3-Clause" ]
57
2016-02-29T15:14:05.000Z
2021-07-23T07:19:41.000Z
ibmdbpy/series.py
marc-mclean1/ibmdbpy
46d885e793da52c58424885d74ab1a6668c391b3
[ "BSD-3-Clause" ]
17
2016-01-04T07:11:37.000Z
2021-11-05T12:45:41.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- #----------------------------------------------------------------------------- # Copyright (c) 2015, IBM Corp. # All rights reserved. # # Distributed under the terms of the BSD Simplified License. # # The full license is in the LICENSE file, distributed with this software. ...
32.802817
85
0.659081
80ac8ec00f7b71c72169101b1398a54359093e95
2,709
py
Python
sdk/python/pulumi_aws_native/ssmcontacts/get_contact.py
pulumi/pulumi-aws-native
1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3
[ "Apache-2.0" ]
29
2021-09-30T19:32:07.000Z
2022-03-22T21:06:08.000Z
sdk/python/pulumi_aws_native/ssmcontacts/get_contact.py
pulumi/pulumi-aws-native
1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3
[ "Apache-2.0" ]
232
2021-09-30T19:26:26.000Z
2022-03-31T23:22:06.000Z
sdk/python/pulumi_aws_native/ssmcontacts/get_contact.py
pulumi/pulumi-aws-native
1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3
[ "Apache-2.0" ]
4
2021-11-10T19:42:01.000Z
2022-02-05T10:15:49.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities __a...
31.5
142
0.664821
d30fcd935f23ca36ba9a30c5a3547e8fb11d550c
606
py
Python
models/post.py
CodeByMini/thefriendzone
84c3dd14ba2b0be7cf3cd681f761d3d6780498d4
[ "Apache-2.0" ]
null
null
null
models/post.py
CodeByMini/thefriendzone
84c3dd14ba2b0be7cf3cd681f761d3d6780498d4
[ "Apache-2.0" ]
null
null
null
models/post.py
CodeByMini/thefriendzone
84c3dd14ba2b0be7cf3cd681f761d3d6780498d4
[ "Apache-2.0" ]
null
null
null
from datetime import datetime class Post: def __init__(self, author, body): self._author = author self._body = body self._created_timestamp = datetime.now().strftime("%m/%d/%Y, %H:%M:%S") self._yikes = 0 self._attachments = [] @property def yikes(self): retu...
22.444444
79
0.582508
38ca2c4476604c4ed7d8c1f8f174089559252dc3
3,765
py
Python
src/OTLMOW/OTLModel/Classes/Hardware.py
davidvlaminck/OTLClassPython
71330afeb37c3ea6d9981f521ff8f4a3f8b946fc
[ "MIT" ]
2
2022-02-01T08:58:11.000Z
2022-02-08T13:35:17.000Z
src/OTLMOW/OTLModel/Classes/Hardware.py
davidvlaminck/OTLMOW
71330afeb37c3ea6d9981f521ff8f4a3f8b946fc
[ "MIT" ]
null
null
null
src/OTLMOW/OTLModel/Classes/Hardware.py
davidvlaminck/OTLMOW
71330afeb37c3ea6d9981f521ff8f4a3f8b946fc
[ "MIT" ]
null
null
null
# coding=utf-8 from OTLMOW.OTLModel.BaseClasses.OTLAttribuut import OTLAttribuut from OTLMOW.OTLModel.Classes.HardwareToegang import HardwareToegang from OTLMOW.OTLModel.Datatypes.IntegerField import IntegerField from OTLMOW.OTLModel.Datatypes.KlHardwareMerk import KlHardwareMerk from OTLMOW.OTLModel.Datatypes.KlHardwa...
44.294118
135
0.594422
dd63b2033d9a6ee59e4049e3937cca739b8bd9c7
21,872
py
Python
bokeh/model.py
jermwatt/bokeh
1985c3b1bbaf5a71a62e94a8dacbb7c67df256c9
[ "BSD-3-Clause" ]
1
2017-04-27T09:15:48.000Z
2017-04-27T09:15:48.000Z
app/static/libs/bokeh/bokeh/model.py
TBxy/bokeh_start_app
755494f6bc60e92ce17022bbd7f707a39132cbd0
[ "MIT" ]
null
null
null
app/static/libs/bokeh/bokeh/model.py
TBxy/bokeh_start_app
755494f6bc60e92ce17022bbd7f707a39132cbd0
[ "MIT" ]
1
2021-09-09T03:33:04.000Z
2021-09-09T03:33:04.000Z
''' Provide a base class for all objects (called Bokeh Models) that go in Bokeh Documents. The :class:`~bokeh.document.Document` class is the basic unit of serialization for Bokeh visualizations and applications. Documents contain collections of related Bokeh Models (e.g. ``Plot``, ``Range1d``, etc. ) that can be all ...
35.448947
123
0.610461
a08fb12f51b99a72c2ef6089d424517a26e7a5ea
2,790
py
Python
docs/setup.py
sschwindt/TKEanalyst
bb6ca6a98133e4e9c822c0d20188fab0cb2adb43
[ "BSD-3-Clause" ]
null
null
null
docs/setup.py
sschwindt/TKEanalyst
bb6ca6a98133e4e9c822c0d20188fab0cb2adb43
[ "BSD-3-Clause" ]
null
null
null
docs/setup.py
sschwindt/TKEanalyst
bb6ca6a98133e4e9c822c0d20188fab0cb2adb43
[ "BSD-3-Clause" ]
null
null
null
from setuptools import setup, find_packages from pathlib import Path lines = Path(".").joinpath("__init__.py") version = "1.0.3" for line in lines.read_text().split("\n"): if line.startswith("__version__ ="): version = line.split(" = ")[-1].strip('"') break setup( name="TKEanalyst", vers...
31.704545
84
0.562724
39aec107424c170fc72d4972f1415e389e01e317
35,470
py
Python
airflow/providers/google/cloud/hooks/dataproc.py
daemon-demon/airflow
6f96e81f0123b30750fb68ec496246023bf63f35
[ "Apache-2.0" ]
null
null
null
airflow/providers/google/cloud/hooks/dataproc.py
daemon-demon/airflow
6f96e81f0123b30750fb68ec496246023bf63f35
[ "Apache-2.0" ]
20
2021-01-23T12:33:08.000Z
2021-12-07T22:30:37.000Z
airflow/providers/google/cloud/hooks/dataproc.py
daemon-demon/airflow
6f96e81f0123b30750fb68ec496246023bf63f35
[ "Apache-2.0" ]
null
null
null
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
40.864055
110
0.633352