hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
dc235d061941b806b136e5f9af8dfa6b14a40d12
1,588
py
Python
pyrevolve/util/supervisor/nbsr.py
safsaf150/revolve
ff12ac6992c99116b9d571dc277165362d8d5602
[ "Apache-2.0" ]
null
null
null
pyrevolve/util/supervisor/nbsr.py
safsaf150/revolve
ff12ac6992c99116b9d571dc277165362d8d5602
[ "Apache-2.0" ]
null
null
null
pyrevolve/util/supervisor/nbsr.py
safsaf150/revolve
ff12ac6992c99116b9d571dc277165362d8d5602
[ "Apache-2.0" ]
null
null
null
""" Non-blocking stream reader to read data from a subprocess without the supervisor stalling. Code taken from: http://eyalarubas.com/python-subproc-nonblock.html """ from __future__ import absolute_import from threading import Thread from queue import Queue, Empty class NonBlockingStreamReader(object): def __i...
28.357143
90
0.535264
995bc878277ca0f190dcc7f18da176c0c1a14d84
3,326
py
Python
tests/grafimo_run_test.py
ManuelTgn/GRAFIMO
7c9c3168632efcd18a739902a5b80897c4392f60
[ "MIT" ]
null
null
null
tests/grafimo_run_test.py
ManuelTgn/GRAFIMO
7c9c3168632efcd18a739902a5b80897c4392f60
[ "MIT" ]
null
null
null
tests/grafimo_run_test.py
ManuelTgn/GRAFIMO
7c9c3168632efcd18a739902a5b80897c4392f60
[ "MIT" ]
null
null
null
from grafimo.constructVG import build_vg, indexVG from grafimo.motif_ops import build_motif_MEME from grafimo.score_sequences import compute_results from grafimo.extract_regions import get_seqs import multiprocessing as mp import numpy as np import pandas as pd import pytest import os def test_vg_construct(): t...
29.433628
107
0.697835
78883b5681a99a35cace6deb713f3ec29b23de53
4,906
py
Python
TIDALDL-PY/tidal_dl/lang/english.py
Voilibaar/Tidal-Media-Downloader
8af25e0600670210ce00871eedb19a3e8b55377e
[ "Apache-2.0" ]
null
null
null
TIDALDL-PY/tidal_dl/lang/english.py
Voilibaar/Tidal-Media-Downloader
8af25e0600670210ce00871eedb19a3e8b55377e
[ "Apache-2.0" ]
null
null
null
TIDALDL-PY/tidal_dl/lang/english.py
Voilibaar/Tidal-Media-Downloader
8af25e0600670210ce00871eedb19a3e8b55377e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- ''' @File : english.py @Time : 2021/11/11 @Author : Yaronzz & jee019 @Version : 1.1 @Contact : yaronhuang@foxmail.com @Desc : ''' class LangEnglish(object): SETTING = "SETTINGS" VALUE = "VALUE" SETTING_DOWNLOAD_PATH = "D...
43.415929
103
0.678761
02db46165154e68f8664db361182cd6a3e767afc
122
py
Python
torch3d/datasets/__init__.py
murari023/torch3d
9a451f876fe7ea23f6251ad783f505ec363ee884
[ "BSD-3-Clause" ]
2
2020-08-28T08:57:38.000Z
2021-12-13T06:17:11.000Z
torch3d/datasets/__init__.py
murari023/torch3d
9a451f876fe7ea23f6251ad783f505ec363ee884
[ "BSD-3-Clause" ]
null
null
null
torch3d/datasets/__init__.py
murari023/torch3d
9a451f876fe7ea23f6251ad783f505ec363ee884
[ "BSD-3-Clause" ]
null
null
null
from .modelnet import ModelNet40 from .s3dis import S3DIS from .shapenet import ShapeNetPart from .scenenn import SceneNN
24.4
34
0.836066
ba8d5d4950157c688d8684efcd1fe2bfda685f0b
2,226
py
Python
scripts/object_sense_dlib/detector_test.py
LPAE/ros_esteira
77dff3f4bc16d17f3f9ad040dc6dd3644afa00f7
[ "MIT" ]
null
null
null
scripts/object_sense_dlib/detector_test.py
LPAE/ros_esteira
77dff3f4bc16d17f3f9ad040dc6dd3644afa00f7
[ "MIT" ]
null
null
null
scripts/object_sense_dlib/detector_test.py
LPAE/ros_esteira
77dff3f4bc16d17f3f9ad040dc6dd3644afa00f7
[ "MIT" ]
1
2019-06-29T22:07:31.000Z
2019-06-29T22:07:31.000Z
import os import sys import glob import matplotlib.pyplot as plt import cv2 import dlib dataset_folder_path = "./dataset/2019-06-26/lowsize/" svn_path = os.path.join(dataset_folder_path, "detector.svm") landmarks_path = os.path.join(dataset_folder_path, "landmarks.dat") detector = dlib.fhog_object_detector(svn_path) ...
37.728814
97
0.487871
7cc433017c50d2189241df060b6c750fc5398907
10,841
py
Python
tests/test_objectives.py
pckroon/symfit
d5110c0301602eb23bb899b98053fa5815adc833
[ "MIT" ]
192
2015-03-15T15:59:23.000Z
2022-03-29T15:32:22.000Z
tests/test_objectives.py
pckroon/symfit
d5110c0301602eb23bb899b98053fa5815adc833
[ "MIT" ]
279
2015-01-02T19:58:02.000Z
2022-03-22T10:11:00.000Z
tests/test_objectives.py
pckroon/symfit
d5110c0301602eb23bb899b98053fa5815adc833
[ "MIT" ]
21
2015-07-24T09:54:12.000Z
2021-11-04T08:33:09.000Z
# SPDX-FileCopyrightText: 2014-2020 Martin Roelfs # # SPDX-License-Identifier: MIT from __future__ import division, print_function import pytest import pickle import numpy as np from symfit import ( Variable, Parameter, parameters, Fit, Model, FitResults, variables, Idx, symbols, Sum, log, exp, cos, pi, ...
40.301115
100
0.670233
f6c2a281fb73b5394eccc42c363b208e2f9133da
1,860
py
Python
day04/solver.py
Trevor-Mansfield/AdventOfCode2021
4a80db170b8e79bcf524014d1cf71de85070bf11
[ "Unlicense" ]
1
2021-12-26T15:26:56.000Z
2021-12-26T15:26:56.000Z
day04/solver.py
Trevor-Mansfield/AdventOfCode2021
4a80db170b8e79bcf524014d1cf71de85070bf11
[ "Unlicense" ]
null
null
null
day04/solver.py
Trevor-Mansfield/AdventOfCode2021
4a80db170b8e79bcf524014d1cf71de85070bf11
[ "Unlicense" ]
null
null
null
class Bingo: def __init__(self, lines): self.lines = lines self.board = [[False for _ in range(len(lines))] for _ in range(len(lines))] self.squares = {} for row, line in enumerate(lines): for col, square in enumerate(filter(None, line.strip().split(" "))): self.squares[square] = (row, ...
26.956522
80
0.61828
a2f10092e797916beaef2065f667b61cf5a5926e
3,166
py
Python
src/sentry/interfaces/message.py
E-LLP/sentry
83d97a0ca45cdaac1d5f3026058131a3aeae0068
[ "BSD-3-Clause" ]
4
2016-03-16T07:21:36.000Z
2017-09-04T07:29:56.000Z
src/sentry/interfaces/message.py
mitsuhiko/sentry
cddc3b643a13b52ac6d07ff22e4bd5d69ecbad90
[ "BSD-3-Clause" ]
null
null
null
src/sentry/interfaces/message.py
mitsuhiko/sentry
cddc3b643a13b52ac6d07ff22e4bd5d69ecbad90
[ "BSD-3-Clause" ]
null
null
null
""" sentry.interfaces.message ~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import __all__ = ('Message',) from django.conf import settings from sentry.interfaces.base import Inte...
31.979798
81
0.585281
207d11d594cead21daca61eae825fa5c840c096a
2,258
py
Python
projects/flow.gmx-mtools/src/project.py
CryoZEUS/signac-examples
1aaa9f71a969209f1661793a4fe19f0566e320b7
[ "BSD-3-Clause" ]
null
null
null
projects/flow.gmx-mtools/src/project.py
CryoZEUS/signac-examples
1aaa9f71a969209f1661793a4fe19f0566e320b7
[ "BSD-3-Clause" ]
null
null
null
projects/flow.gmx-mtools/src/project.py
CryoZEUS/signac-examples
1aaa9f71a969209f1661793a4fe19f0566e320b7
[ "BSD-3-Clause" ]
null
null
null
"""Define the project's workflow logic.""" from flow import FlowProject from flow import staticlabel import mbuild as mb from mbuild.examples import Alkane def _grompp_str(root, op_name, gro_name, sys_name): """Helper function, returns grompp command string for operation """ cmd = ( "gmx grompp -f {r...
23.768421
83
0.685562
b15f68563ac70e3ac3f2303e6b12d72508502815
6,352
py
Python
sosen/schema/software_schema.py
KnowledgeCaptureAndDiscovery/sosen
5a3efb67cb8de04e85dc47a041693d3e671d4ca6
[ "Apache-2.0" ]
4
2020-06-13T15:40:20.000Z
2020-09-21T02:09:29.000Z
sosen/schema/software_schema.py
KnowledgeCaptureAndDiscovery/sosen
5a3efb67cb8de04e85dc47a041693d3e671d4ca6
[ "Apache-2.0" ]
18
2020-06-23T00:00:14.000Z
2021-07-07T10:43:27.000Z
sosen/schema/software_schema.py
KnowledgeCaptureAndDiscovery/sosen
5a3efb67cb8de04e85dc47a041693d3e671d4ca6
[ "Apache-2.0" ]
null
null
null
from .schema_prefixes import schema, sd, xsd, obj, sosen, rdfs from ..config import get_config software_prefixes = { "schema": schema, "sd": sd, "xsd": xsd, "obj": obj, "sosen": sosen, "rdfs": rdfs } # this goes down here to resolve what would otherwise be a circular dependency from .keyword_s...
29.271889
78
0.417664
ff237de04d21be715a1d78d7dfe8be83ade6ea08
111,683
py
Python
quest/keras/engine/training.py
shuokabe/deepQuest-mod
7140a57c30deedb0570bc835c6ad3c848f0039f4
[ "BSD-3-Clause" ]
null
null
null
quest/keras/engine/training.py
shuokabe/deepQuest-mod
7140a57c30deedb0570bc835c6ad3c848f0039f4
[ "BSD-3-Clause" ]
null
null
null
quest/keras/engine/training.py
shuokabe/deepQuest-mod
7140a57c30deedb0570bc835c6ad3c848f0039f4
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function from __future__ import absolute_import import warnings import copy import numpy as np import six from keras.utils import Sequence from keras.utils import GeneratorEnqueuer from keras.utils import OrderedEnqueuer try: import queue except ImportError: ...
45.603512
145
0.530179
adeb2a09ae22350f06bd3fcb5a1ae3b65f3f602b
1,483
py
Python
examples/enable_canvas/enable_canvas_view.py
enthought/traits-enaml
992c352a3f74397e3209bd3fc1e18ca9e1a19d47
[ "BSD-3-Clause" ]
8
2015-01-04T14:30:47.000Z
2020-03-03T09:19:47.000Z
examples/enable_canvas/enable_canvas_view.py
enthought/traits-enaml
992c352a3f74397e3209bd3fc1e18ca9e1a19d47
[ "BSD-3-Clause" ]
17
2015-01-30T11:25:24.000Z
2021-06-15T07:14:57.000Z
examples/enable_canvas/enable_canvas_view.py
enthought/traits-enaml
992c352a3f74397e3209bd3fc1e18ca9e1a19d47
[ "BSD-3-Clause" ]
5
2015-01-30T11:11:44.000Z
2020-12-08T18:14:57.000Z
#---------------------------------------------------------------------------- # # Copyright (c) 2013-14, Enthought, Inc. # All rights reserved. # # This software is provided without warranty under the terms of the BSD # license included in /LICENSE.txt and may be redistributed only # under the conditions described...
27.981132
77
0.596089
ddf86f4b51f393aa5a67787f648383854972e5b2
4,464
py
Python
examples/2_application_placement.py
ihsan1852/edge
6f15a5a3f19f6b7dfd8ba0641ae5deddbb7d145d
[ "MIT" ]
null
null
null
examples/2_application_placement.py
ihsan1852/edge
6f15a5a3f19f6b7dfd8ba0641ae5deddbb7d145d
[ "MIT" ]
null
null
null
examples/2_application_placement.py
ihsan1852/edge
6f15a5a3f19f6b7dfd8ba0641ae5deddbb7d145d
[ "MIT" ]
null
null
null
import logging import random import simpy from leaf.application import Application, SourceTask, ProcessingTask, SinkTask from leaf.infrastructure import Node, Link, Infrastructure from leaf.orchestrator import Orchestrator from leaf.power import PowerModelNode, PowerModelNodeShared, PowerModelLink, PowerMeter RANDOM_...
44.64
119
0.757616
a5086d522b037abb4dc11918a1b915aeecd36720
1,889
py
Python
tests/components/sigfox/test_sensor.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
tests/components/sigfox/test_sensor.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
31,101
2020-03-02T13:00:16.000Z
2022-03-31T23:57:36.000Z
tests/components/sigfox/test_sensor.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""Tests for the sigfox sensor.""" from http import HTTPStatus import re import requests_mock from homeassistant.components.sigfox.sensor import ( API_URL, CONF_API_LOGIN, CONF_API_PASSWORD, ) from homeassistant.setup import async_setup_component TEST_API_LOGIN = "foo" TEST_API_PASSWORD = "ebcd1234" VAL...
29.061538
81
0.661726
b2938c5af874318e686be49f2c9e8dba3ec056e5
3,992
py
Python
HiC_search_localBoundaries_attempt2_v2b.py
elifesciences-publications/Stadlerlab-hi-c
95e304bf8cb2cd606f52f94bb6369fef4f16f73a
[ "MIT" ]
null
null
null
HiC_search_localBoundaries_attempt2_v2b.py
elifesciences-publications/Stadlerlab-hi-c
95e304bf8cb2cd606f52f94bb6369fef4f16f73a
[ "MIT" ]
null
null
null
HiC_search_localBoundaries_attempt2_v2b.py
elifesciences-publications/Stadlerlab-hi-c
95e304bf8cb2cd606f52f94bb6369fef4f16f73a
[ "MIT" ]
null
null
null
''' This is a naive approach to call boundaries in Hi-C data based on directionality--the relative numbers contacts with loci to the right vs. left. It takes as input a WIG file with directionality assigned to bins. User supplies bin size (depends on input wig file), width (number of bins to left and right to include...
34.413793
139
0.682365
05861face319be1480f12e5026dd11f992fb0560
5,903
py
Python
tests/task/task_runner/test_standard_task_runner.py
wileeam/airflow
f46be8152a4d89c57db4ca46f5b3339e4876b723
[ "Apache-2.0" ]
8
2017-04-20T16:15:44.000Z
2020-10-11T13:44:10.000Z
tests/task/task_runner/test_standard_task_runner.py
devlocalca/airflow
58c3542ed25061320ce61dbe0adf451a44c738dd
[ "Apache-2.0" ]
219
2017-03-15T18:40:16.000Z
2022-02-28T22:52:43.000Z
tests/task/task_runner/test_standard_task_runner.py
devlocalca/airflow
58c3542ed25061320ce61dbe0adf451a44c738dd
[ "Apache-2.0" ]
3
2016-07-14T21:51:10.000Z
2020-10-12T13:26:36.000Z
# # 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...
30.905759
101
0.631374
ff06b5df4af23180481dde18c5f7099d881caa46
1,230
py
Python
things/pca9685/pca9685.py
m2ag-labs/m2ag-things
dd07d1447c433c228edd0d3d8e843db5c955dc8b
[ "Apache-2.0" ]
null
null
null
things/pca9685/pca9685.py
m2ag-labs/m2ag-things
dd07d1447c433c228edd0d3d8e843db5c955dc8b
[ "Apache-2.0" ]
null
null
null
things/pca9685/pca9685.py
m2ag-labs/m2ag-things
dd07d1447c433c228edd0d3d8e843db5c955dc8b
[ "Apache-2.0" ]
null
null
null
try: from adafruit_pca9685 import PCA9685 except ModuleNotFoundError: print('*** PCA9685 driver not found ***') # https://www.adafruit.com/product/815 # https://learn.adafruit.com/16-channel-pwm-servo-driver # https://learn.adafruit.com/16-channel-pwm-servo-driver/python-circuitpython # https://circuitpython....
36.176471
100
0.669106
e5aac79794358b0f420e2bb6615337bb72ba48e0
334
py
Python
safergpy/code/bench/exps_config/methods/gpy_mle0132.py
johncoltrane1/saferGPMLE
b86fbd329eaad0b6374a1b28cae43b2a7f81eb61
[ "BSD-3-Clause" ]
null
null
null
safergpy/code/bench/exps_config/methods/gpy_mle0132.py
johncoltrane1/saferGPMLE
b86fbd329eaad0b6374a1b28cae43b2a7f81eb61
[ "BSD-3-Clause" ]
10
2021-06-25T15:10:26.000Z
2021-07-15T12:50:21.000Z
safergpy/code/bench/exps_config/methods/gpy_mle0132.py
johncoltrane1/saferGPMLE
b86fbd329eaad0b6374a1b28cae43b2a7f81eb61
[ "BSD-3-Clause" ]
3
2021-06-16T07:39:05.000Z
2022-03-16T09:31:55.000Z
method_args = { "param": "log", "init": "classic_profiled", "stopping_criterion": "soft", "do_profiling": False, "optim_scheme": ...
41.75
63
0.278443
647299b492593dc19f5f83dd9cc4a3ecd12b99a7
968
py
Python
WEEKS/CD_Sata-Structures/_MISC/misc-examples/python3-book-examples/pickle/pickle_state.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
WEEKS/CD_Sata-Structures/_MISC/misc-examples/python3-book-examples/pickle/pickle_state.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
WEEKS/CD_Sata-Structures/_MISC/misc-examples/python3-book-examples/pickle/pickle_state.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
# Copyright (c) 2009 Doug Hellmann All rights reserved. # """ """ # end_pymotw_header import pickle class State: def __init__(self, name): self.name = name def __repr__(self): return "State({!r})".format(self.__dict__) class MyClass: def __init__(self, name): print("MyClass.__i...
20.595745
79
0.618802
d6620d8990e6415b766efa1aceacd74d7c9567c9
331
py
Python
exer103.py
fabionunesdeparis/Fundamentos-em-python3
b21d06b44d5b18e99419cd06b4e08363c1f7a7ce
[ "MIT" ]
null
null
null
exer103.py
fabionunesdeparis/Fundamentos-em-python3
b21d06b44d5b18e99419cd06b4e08363c1f7a7ce
[ "MIT" ]
null
null
null
exer103.py
fabionunesdeparis/Fundamentos-em-python3
b21d06b44d5b18e99419cd06b4e08363c1f7a7ce
[ "MIT" ]
null
null
null
# @Fábio C Nunes - 24.06.20 def ficha(nome='<Desconhecido>', gols= 0): print(f'O Jogador {nome} fez {gols} gols no campeonato.') #Main n = str(input('Nome do jogador: ')) gol = str(input('Nº de gols: ')) if gol.isnumeric(): gol = int(gol) else: gol = 0 if n.strip() == '': ficha(gols=gol) else: fich...
19.470588
61
0.592145
6ca4dfa32a62c0dacb954d0410ca42b7765f1fb8
3,082
py
Python
setup.py
heyitsguay/medicaldetectiontoolkit
057456330dbc9a246bbf535c9fdc4ddc8a8f1f0c
[ "Apache-2.0" ]
null
null
null
setup.py
heyitsguay/medicaldetectiontoolkit
057456330dbc9a246bbf535c9fdc4ddc8a8f1f0c
[ "Apache-2.0" ]
null
null
null
setup.py
heyitsguay/medicaldetectiontoolkit
057456330dbc9a246bbf535c9fdc4ddc8a8f1f0c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2019 Division of Medical Image Computing, German Cancer Research Center (DKFZ). # # 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...
41.093333
116
0.62135
d661bf757ab2a545592a7d891fee9f9c68c9b680
5,417
py
Python
tests/hs2/test_json_endpoints.py
adoroszlai/impala
ea13e744977c71206c11a54f65d77aeecb55703d
[ "Apache-2.0" ]
746
2017-12-02T06:02:05.000Z
2022-03-29T06:59:03.000Z
tests/hs2/test_json_endpoints.py
xwzbupt/impala
97dda2b27da99367f4d07699aa046b16cda16dd4
[ "Apache-2.0" ]
9
2018-01-30T16:16:22.000Z
2021-08-31T00:13:28.000Z
tests/hs2/test_json_endpoints.py
xwzbupt/impala
97dda2b27da99367f4d07699aa046b16cda16dd4
[ "Apache-2.0" ]
363
2017-12-10T01:08:17.000Z
2022-03-26T05:25:00.000Z
# 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 u...
46.698276
89
0.772199
34df6533174f0c70fb862e4e6a065e06739dd03b
392
py
Python
la/oblas/data/zpotrf01.py
wtsia/gosl
8302f76dfe76d24ea5026b225bdad234383dacf9
[ "BSD-3-Clause" ]
1,811
2015-05-21T12:47:27.000Z
2022-03-24T04:48:00.000Z
la/oblas/data/zpotrf01.py
wtsia/gosl
8302f76dfe76d24ea5026b225bdad234383dacf9
[ "BSD-3-Clause" ]
42
2016-09-29T05:23:28.000Z
2021-10-30T03:12:00.000Z
la/oblas/data/zpotrf01.py
wtsia/gosl
8302f76dfe76d24ea5026b225bdad234383dacf9
[ "BSD-3-Clause" ]
171
2015-07-14T07:50:35.000Z
2022-03-09T10:04:15.000Z
import numpy as np import scipy.linalg as la from auxiliary import * a = np.matrix([ [+4 + 0j, 0 + 1j, -3 + 1j, 0 + 2j], [+0 - 1j, 3 + 0j, +1 + 0j, 2 + 0j], [-3 - 1j, 1 + 0j, +4 + 0j, 1 - 1j], [+0 - 2j, 2 + 0j, +1 + 1j, 4 + 0j], ],dtype=complex) print a - a.getH() res = la.cholesky(a, lower=False) mp...
20.631579
39
0.530612
18cb1107512c1d37b0568d65b23a9605c849fb19
1,493
py
Python
src/1946-LargestNumberAfterMutatingSubstring.py
Jiezhi/myleetcode
b346e94c46da2a3033ebc8ff50e621aa179c4f62
[ "MIT" ]
1
2022-03-03T15:11:48.000Z
2022-03-03T15:11:48.000Z
src/1946-LargestNumberAfterMutatingSubstring.py
Jiezhi/myleetcode
b346e94c46da2a3033ebc8ff50e621aa179c4f62
[ "MIT" ]
null
null
null
src/1946-LargestNumberAfterMutatingSubstring.py
Jiezhi/myleetcode
b346e94c46da2a3033ebc8ff50e621aa179c4f62
[ "MIT" ]
2
2022-01-20T22:49:58.000Z
2022-01-20T22:53:13.000Z
#!/usr/bin/env python """ CREATED AT: 2021/7/25 Des: https://leetcode.com/problems/largest-number-after-mutating-substring/ https://leetcode.com/contest/weekly-contest-251/problems/largest-number-after-mutating-substring/ GITHUB: https://github.com/Jiezhi/myleetcode """ from typing import List class Solution: d...
31.104167
97
0.490958
1f6900588d30dd58f1563a1d36f6ca9a47bdd11a
1,012
py
Python
userinfo/models.py
Chever-John/QnSystem
51fcb13969ee9c2403bd78b24c0630ff62040994
[ "Apache-2.0" ]
15
2021-10-10T09:29:27.000Z
2022-03-27T14:43:15.000Z
userinfo/models.py
Chever-John/QnSystem
51fcb13969ee9c2403bd78b24c0630ff62040994
[ "Apache-2.0" ]
1
2022-03-25T14:48:08.000Z
2022-03-26T08:28:04.000Z
userinfo/models.py
Chever-John/QnSystem
51fcb13969ee9c2403bd78b24c0630ff62040994
[ "Apache-2.0" ]
6
2021-11-18T02:59:26.000Z
2022-03-27T14:43:16.000Z
from django.db import models # Create your models here. class User(models.Model): username = models.CharField(max_length=128, unique=True) email = models.EmailField(unique=True) password = models.CharField(max_length=256) user_desc = models.CharField(max_length=500, blank=True) c_time = models....
26.631579
65
0.686759
c00007aaf02ed37d5eb7fc4f718447734b5700ad
1,156
py
Python
docs/02.AI_ML/code-1805/Day03all/nb.py
mheanng/PythonNote
e3e5ede07968fab0a45f6ac4db96e62092c17026
[ "Apache-2.0" ]
2
2020-04-09T05:56:23.000Z
2021-03-25T18:42:36.000Z
docs/02.AI_ML/code-1805/Day03all/nb.py
mheanng/PythonNote
e3e5ede07968fab0a45f6ac4db96e62092c17026
[ "Apache-2.0" ]
22
2020-04-09T06:09:14.000Z
2021-01-06T01:05:32.000Z
docs/02.AI_ML/code-1805/Day03all/nb.py
mheanng/PythonNote
e3e5ede07968fab0a45f6ac4db96e62092c17026
[ "Apache-2.0" ]
6
2020-03-09T07:19:21.000Z
2021-01-05T23:23:42.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals import numpy as np import sklearn.naive_bayes as nb import matplotlib.pyplot as mp x, y = [], [] with open('../../data/multiple1.txt', 'r') as f: for line in f.readlines(): data = [float(substr) for substr in line.split(',')] ...
33.028571
56
0.606401
c568b870e9c81241f56a2af617cfa3cb6defb905
5,043
py
Python
tests/integration-v1/cattletest/core/test_svc_scale_policy.py
lifecontrol/cattle
aea33a6ed1445276b4431544c97cea6f8a065ff9
[ "Apache-2.0" ]
482
2015-07-13T21:32:27.000Z
2022-01-09T02:06:57.000Z
tests/integration-v1/cattletest/core/test_svc_scale_policy.py
lifecontrol/cattle
aea33a6ed1445276b4431544c97cea6f8a065ff9
[ "Apache-2.0" ]
1,116
2015-07-09T17:52:53.000Z
2022-01-03T18:07:24.000Z
tests/integration-v1/cattletest/core/test_svc_scale_policy.py
lifecontrol/cattle
aea33a6ed1445276b4431544c97cea6f8a065ff9
[ "Apache-2.0" ]
230
2015-07-12T04:40:05.000Z
2022-02-03T02:13:42.000Z
from common import * # NOQA from cattle import ApiError def _create_stack(client): env = client.create_environment(name=random_str()) env = client.wait_success(env) assert env.state == "active" return env def test_activate_svc(client, context, super_client): env = _create_stack(client) ima...
35.265734
68
0.618679
d8a3b78f12c727512369eba4631e663029f34277
25,670
py
Python
pycaret/internal/persistence.py
gururajang/pycaret
748aa73da93045ae5f4df1a014efbce91cdf68e0
[ "MIT" ]
1
2021-07-20T14:56:35.000Z
2021-07-20T14:56:35.000Z
pycaret/internal/persistence.py
sjoerdteunisse/pycaret
87e3691e8b0253a7eb203bd721916d5b617fad85
[ "MIT" ]
1
2021-07-08T10:30:36.000Z
2021-07-08T10:30:36.000Z
pycaret/internal/persistence.py
sjoerdteunisse/pycaret
87e3691e8b0253a7eb203bd721916d5b617fad85
[ "MIT" ]
1
2021-08-29T12:20:37.000Z
2021-08-29T12:20:37.000Z
# Module: internal.persistence # Author: Moez Ali <moez.ali@queensu.ca> and Antoni Baum (Yard1) <antoni.baum@protonmail.com> # License: MIT import gc from typing import Dict, Optional from sklearn.pipeline import Pipeline from pycaret.internal.utils import get_logger def deploy_model( model, model_name: st...
33.251295
129
0.657421
92756a56b261219061b2672ab4ff25f75de8001f
88
py
Python
osmo_jupyter/dataset/__init__.py
OsmoSystems/osmo-jupyter
adea072709c1f51b3d731a01d324cf15dcb2ec76
[ "MIT" ]
null
null
null
osmo_jupyter/dataset/__init__.py
OsmoSystems/osmo-jupyter
adea072709c1f51b3d731a01d324cf15dcb2ec76
[ "MIT" ]
3
2018-08-30T19:20:21.000Z
2018-10-23T19:28:09.000Z
osmo_jupyter/dataset/__init__.py
OsmoSystems/python-jupyter-tools
adea072709c1f51b3d731a01d324cf15dcb2ec76
[ "MIT" ]
null
null
null
from . import parse, combine, source_files # noqa: F401 # ignore unused import warning
44
87
0.761364
43d993cc36365178f428817c80a59004720fff90
1,432
py
Python
pyro/distributions/torch/categorical.py
shigh/pyro
a95e654ce7588e41e1d26706f60c25cf646ed164
[ "MIT" ]
null
null
null
pyro/distributions/torch/categorical.py
shigh/pyro
a95e654ce7588e41e1d26706f60c25cf646ed164
[ "MIT" ]
null
null
null
pyro/distributions/torch/categorical.py
shigh/pyro
a95e654ce7588e41e1d26706f60c25cf646ed164
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function import torch from pyro.distributions.categorical import Categorical as _Categorical from pyro.distributions.torch_wrapper import TorchDistribution from pyro.distributions.util import copy_docs_from @copy_docs_from(_Categorical) class Categorical(Torch...
38.702703
90
0.704609
8c87d91b6dd637ca376f4132361c171dfa28baf8
1,760
py
Python
scanpy/tests/test_package_structure.py
jwrth/scanpy
9fa01020d1f0712166b3591e67d0c766c765eca0
[ "BSD-3-Clause" ]
null
null
null
scanpy/tests/test_package_structure.py
jwrth/scanpy
9fa01020d1f0712166b3591e67d0c766c765eca0
[ "BSD-3-Clause" ]
null
null
null
scanpy/tests/test_package_structure.py
jwrth/scanpy
9fa01020d1f0712166b3591e67d0c766c765eca0
[ "BSD-3-Clause" ]
null
null
null
import email import inspect import os from types import FunctionType from pathlib import Path import pytest from scanpy._utils import descend_classes_and_funcs # CLI is locally not imported by default but on travis it is? import scanpy.cli mod_dir = Path(scanpy.__file__).parent proj_dir = mod_dir.parent scanpy_fun...
25.882353
87
0.699432
e7254574a35d5169e4ed81915e5010cffcd6320c
579
py
Python
weathergov.py
blakehartshorn/icinga-nest-thermostat
1f654533366318acb5927b3173eeab627ceb1cb4
[ "MIT" ]
null
null
null
weathergov.py
blakehartshorn/icinga-nest-thermostat
1f654533366318acb5927b3173eeab627ceb1cb4
[ "MIT" ]
null
null
null
weathergov.py
blakehartshorn/icinga-nest-thermostat
1f654533366318acb5927b3173eeab627ceb1cb4
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import requests def weather(config,unit): station = config['wgov_station'] r = requests.get(f'https://api.weather.gov/stations/{station}/observations/latest') w = r.json() humidity = w['properties']['relativeHumidity']['value'] temperature = w['properties']['temperature']['va...
24.125
87
0.61658
fbb9ec08a10618ee65232f410dedce1e66fe07f5
6,993
py
Python
test/dlc_tests/ec2/mxnet/inference/test_mxnet_inference.py
Jarryd-rk/deep-learning-containers
6b98175bb70f1badd7e64843914e1c475c3128fa
[ "Apache-2.0" ]
7
2021-12-18T05:49:22.000Z
2021-12-28T09:52:32.000Z
test/dlc_tests/ec2/mxnet/inference/test_mxnet_inference.py
Jarryd-rk/deep-learning-containers
6b98175bb70f1badd7e64843914e1c475c3128fa
[ "Apache-2.0" ]
2
2022-03-28T12:39:09.000Z
2022-03-29T12:42:01.000Z
test/dlc_tests/ec2/mxnet/inference/test_mxnet_inference.py
Jarryd-rk/deep-learning-containers
6b98175bb70f1badd7e64843914e1c475c3128fa
[ "Apache-2.0" ]
1
2021-05-29T04:30:16.000Z
2021-05-29T04:30:16.000Z
import os import pytest import test.test_utils.ec2 as ec2_utils from test import test_utils from test.test_utils import CONTAINER_TESTS_PREFIX, get_framework_and_version_from_tag from test.test_utils.ec2 import get_ec2_instance_type, execute_ec2_inference_test, get_ec2_accelerator_type from test.dlc_tests.conftest im...
50.673913
138
0.7855
c04e5d1c17d42f47b3f4338923b508d701be3ece
493
py
Python
submissions/abc076/c.py
m-star18/atcoder
08e475810516602fa088f87daf1eba590b4e07cc
[ "Unlicense" ]
1
2021-05-10T01:16:28.000Z
2021-05-10T01:16:28.000Z
submissions/abc076/c.py
m-star18/atcoder
08e475810516602fa088f87daf1eba590b4e07cc
[ "Unlicense" ]
3
2021-05-11T06:14:15.000Z
2021-06-19T08:18:36.000Z
submissions/abc076/c.py
m-star18/atcoder
08e475810516602fa088f87daf1eba590b4e07cc
[ "Unlicense" ]
null
null
null
import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines sys.setrecursionlimit(10 ** 7) s = readline().rstrip().decode() t = read().rstrip().decode() ans = [] for i in range(len(s) - len(t) + 1): for j, (ss, tt) in enumerate(zip(s[i:], t)): if ss n...
27.388889
48
0.584178
efadd36918fe0685bb2902dfc34b2c0c6c9a4a78
34,343
py
Python
mpldatacursor/datacursor.py
siriuspal/mpldatacursor
c569d030760bc1b8b29ba825b5ceb48adaa1b661
[ "MIT" ]
null
null
null
mpldatacursor/datacursor.py
siriuspal/mpldatacursor
c569d030760bc1b8b29ba825b5ceb48adaa1b661
[ "MIT" ]
null
null
null
mpldatacursor/datacursor.py
siriuspal/mpldatacursor
c569d030760bc1b8b29ba825b5ceb48adaa1b661
[ "MIT" ]
null
null
null
__license__ = """ Copyright (c) 2012 mpldatacursor developers 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, mer...
42.08701
92
0.609557
bdda90315ac9c72c174356f01f8c9c99d2dcd447
58,576
py
Python
python/paddle/tensor/manipulation.py
chenbeijiy/Paddle
82f0b5ea5c6627c6d60120c65db945d690c4f450
[ "Apache-2.0" ]
1
2020-12-20T08:21:48.000Z
2020-12-20T08:21:48.000Z
python/paddle/tensor/manipulation.py
chenbeijiy/Paddle
82f0b5ea5c6627c6d60120c65db945d690c4f450
[ "Apache-2.0" ]
null
null
null
python/paddle/tensor/manipulation.py
chenbeijiy/Paddle
82f0b5ea5c6627c6d60120c65db945d690c4f450
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
37.937824
457
0.555364
e70dd5bd03ba776dc114da9007853840d12d0bcb
61,679
py
Python
Lib/unittest/test/test_case.py
highfestiva/CPython
225a8b08e49cb5d0161860be97471790797d890f
[ "PSF-2.0" ]
null
null
null
Lib/unittest/test/test_case.py
highfestiva/CPython
225a8b08e49cb5d0161860be97471790797d890f
[ "PSF-2.0" ]
null
null
null
Lib/unittest/test/test_case.py
highfestiva/CPython
225a8b08e49cb5d0161860be97471790797d890f
[ "PSF-2.0" ]
null
null
null
import contextlib import difflib import pprint import pickle import re import sys import logging import warnings import weakref import inspect from copy import deepcopy from test import support import unittest from unittest.test.support import ( TestEquality, TestHashing, LoggingResult, LegacyLoggingResult, ...
39.16127
87
0.595113
dd7305d8b56e5f80522f223417e7252ae0f640ea
167
py
Python
vimonous/__init__.py
dosisod/vimonous
3e2bd74decfe922702d944a6a5ddbb25aeca2d51
[ "MIT" ]
null
null
null
vimonous/__init__.py
dosisod/vimonous
3e2bd74decfe922702d944a6a5ddbb25aeca2d51
[ "MIT" ]
null
null
null
vimonous/__init__.py
dosisod/vimonous
3e2bd74decfe922702d944a6a5ddbb25aeca2d51
[ "MIT" ]
null
null
null
#since the module and the main file are the same name, they cannot be included directly #this allow for other files to access Vimonous from .vimonous import Vimonous
33.4
87
0.802395
6b2300d4abb39ac404132045b43a0235608199ab
594
py
Python
fedml_api/distributed/split_nn/message_define.py
xuwanwei/FedML
c049a30d9839c4554e7e14b0c18275e96fea8130
[ "Apache-2.0" ]
1,120
2020-07-22T02:30:52.000Z
2022-03-31T08:10:44.000Z
fedml_api/distributed/split_nn/message_define.py
xuwanwei/FedML
c049a30d9839c4554e7e14b0c18275e96fea8130
[ "Apache-2.0" ]
113
2020-07-27T03:48:09.000Z
2022-03-30T03:25:56.000Z
fedml_api/distributed/split_nn/message_define.py
xuwanwei/FedML
c049a30d9839c4554e7e14b0c18275e96fea8130
[ "Apache-2.0" ]
381
2020-07-22T06:12:57.000Z
2022-03-30T18:38:35.000Z
class MyMessage(object): """ message type definition """ # server to client MSG_TYPE_S2C_GRADS = 1 # client to server MSG_TYPE_C2S_SEND_ACTS = 2 MSG_TYPE_C2S_VALIDATION_MODE = 3 MSG_TYPE_C2S_VALIDATION_OVER = 4 MSG_TYPE_C2S_PROTOCOL_FINISHED = 5 # client to client M...
22.846154
43
0.681818
a6cfa564f22530576e0ede4f8d5d03964f918536
2,459
py
Python
src/layers.py
bcrafton/speed_read
3e9c0c873e49e4948a216aae14ec0d4654d1a62c
[ "MIT" ]
null
null
null
src/layers.py
bcrafton/speed_read
3e9c0c873e49e4948a216aae14ec0d4654d1a62c
[ "MIT" ]
null
null
null
src/layers.py
bcrafton/speed_read
3e9c0c873e49e4948a216aae14ec0d4654d1a62c
[ "MIT" ]
2
2020-11-08T12:51:23.000Z
2021-12-02T23:16:48.000Z
import math import numpy as np import matplotlib.pyplot as plt from var import * from conv_utils import * from scipy.stats import norm, binom from AA import array_allocation ######################### class Layer: layer_id = 0 weight_id = 0 def __init__(self): assert(False) de...
23.873786
112
0.549817
6209cfeb654a8a4be23efc89813efe22c8e5b8ab
10,103
py
Python
lib/rucio/core/replica_sorter.py
abhijeetsharma200/rucio
02de234f82fa314988d2a16e7bf27077718e32ac
[ "Apache-2.0" ]
null
null
null
lib/rucio/core/replica_sorter.py
abhijeetsharma200/rucio
02de234f82fa314988d2a16e7bf27077718e32ac
[ "Apache-2.0" ]
null
null
null
lib/rucio/core/replica_sorter.py
abhijeetsharma200/rucio
02de234f82fa314988d2a16e7bf27077718e32ac
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2017-2020 CERN # # 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 a...
38.124528
129
0.659804
0078b3c7d7bf9be50893881ee06b8e20f72dab26
5,068
py
Python
PythonAnalysisScripts/old/Average_Clip_Per_Day_Aligned.py
everymind/SurprisingMinds-Analysis
eeb308043f471de3cdb505f82461cf8d6cf40e16
[ "MIT" ]
null
null
null
PythonAnalysisScripts/old/Average_Clip_Per_Day_Aligned.py
everymind/SurprisingMinds-Analysis
eeb308043f471de3cdb505f82461cf8d6cf40e16
[ "MIT" ]
null
null
null
PythonAnalysisScripts/old/Average_Clip_Per_Day_Aligned.py
everymind/SurprisingMinds-Analysis
eeb308043f471de3cdb505f82461cf8d6cf40e16
[ "MIT" ]
null
null
null
import os import glob import cv2 import datetime import numpy as np import matplotlib.pyplot as plt # List relevant data locations root_folder = "/home/kampff/DK" day_folder = root_folder + "/SurpriseIntelligence_2017-07-25" save_folder = root_folder + "/Clip" # List all trial folders trial_folders = [] for folder in...
31.478261
96
0.678177
59f991351af81977873f0ab35160aa1de69019f1
142
py
Python
Python/Built-Ins/python-eval.py
ekant1999/HackerRank
084d4550b4eaf130837ab26a4efdbcaf8b667cdc
[ "MIT" ]
9
2017-03-19T16:27:31.000Z
2022-02-17T11:42:21.000Z
Python/Built-Ins/python-eval.py
ekant1999/HackerRank
084d4550b4eaf130837ab26a4efdbcaf8b667cdc
[ "MIT" ]
null
null
null
Python/Built-Ins/python-eval.py
ekant1999/HackerRank
084d4550b4eaf130837ab26a4efdbcaf8b667cdc
[ "MIT" ]
6
2019-02-18T11:26:24.000Z
2022-03-21T14:13:15.000Z
# Enter your code here. Read input from STDIN. Print output to STDOUT from __future__ import print_function var = raw_input() eval(var)
23.666667
70
0.753521
c42566981e0170ec02f17c82ec89949f96527ff4
8,728
py
Python
njunmt/utils/algebra_ops.py
whr94621/NJUNMT-tf
29e0b0c577ea7c81acdc80e7a94a1c4dfb85c118
[ "Apache-2.0" ]
111
2017-12-29T12:48:02.000Z
2022-03-15T00:47:13.000Z
njunmt/utils/algebra_ops.py
whr94621/NJUNMT-tf
29e0b0c577ea7c81acdc80e7a94a1c4dfb85c118
[ "Apache-2.0" ]
3
2018-01-27T13:54:42.000Z
2020-03-02T03:07:19.000Z
njunmt/utils/algebra_ops.py
whr94621/NJUNMT-tf
29e0b0c577ea7c81acdc80e7a94a1c4dfb85c118
[ "Apache-2.0" ]
44
2017-12-29T12:49:57.000Z
2022-02-02T13:25:28.000Z
# Copyright 2017 Natural Language Processing Group, Nanjing University, zhaocq.nlp@gmail.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...
37.140426
114
0.639093
fcd559f106af470293bf2da409be244a87c118bf
309
py
Python
settings.py
DebugSy/lianjia-scrawler
5b42555a69fd83c120789b3399bb8d36f9da1142
[ "BSD-3-Clause" ]
null
null
null
settings.py
DebugSy/lianjia-scrawler
5b42555a69fd83c120789b3399bb8d36f9da1142
[ "BSD-3-Clause" ]
null
null
null
settings.py
DebugSy/lianjia-scrawler
5b42555a69fd83c120789b3399bb8d36f9da1142
[ "BSD-3-Clause" ]
null
null
null
# coding=utf-8 DBENGINE = 'mysql' # ENGINE OPTIONS: mysql, sqlite3, postgresql DBNAME = 'scrawler' DBUSER = 'root' DBPASSWORD = '12345678' DBHOST = 'localhost' DBPORT = 3306 CITY = 'cd' # only one, shanghai=sh shenzhen=sh...... REGIONLIST = [u'shuangliu'] # only pinyin support COMMUNITYLIST = [u'南湖逸家二期']
28.090909
64
0.695793
e3aace297984980e00dad4c82cda7a53126a3feb
474
py
Python
textteaser/__init__.py
artmatsak/textteaser
0d094c7bbbe0b04dd7907d671e4346a3cc2d57ff
[ "MIT" ]
2
2018-02-12T12:40:39.000Z
2020-05-06T18:03:42.000Z
ideaman_analyzer/textteaser/__init__.py
LibRec-Practical/ideaman-offline
f8341fc9ca77adcc1191c01037dda18c02d77b29
[ "MIT" ]
null
null
null
ideaman_analyzer/textteaser/__init__.py
LibRec-Practical/ideaman-offline
f8341fc9ca77adcc1191c01037dda18c02d77b29
[ "MIT" ]
1
2019-10-12T15:02:30.000Z
2019-10-12T15:02:30.000Z
# !/usr/bin/python # -*- coding: utf-8 -*- from .summarizer import Summarizer class TextTeaser(object): def __init__(self): self.summarizer = Summarizer() def summarize(self, title, text, category="Undefined", source="Undefined", count=5): result = self.summarizer.summarize(text, title, sou...
26.333333
88
0.662447
40d01d489ac362df6e49ff745a648e6d1fcced93
251
py
Python
pysprint/tests/conftest.py
Ptrskay3/PySprint
f90811970c66e8fadea1220c4c19bf95cdf33c9e
[ "MIT" ]
13
2020-05-29T14:53:13.000Z
2022-02-09T17:29:19.000Z
pysprint/tests/conftest.py
Ptrskay3/Interferometry
f90811970c66e8fadea1220c4c19bf95cdf33c9e
[ "MIT" ]
8
2019-10-14T18:23:26.000Z
2021-09-14T16:42:27.000Z
pysprint/tests/conftest.py
Ptrskay3/Interferometry
f90811970c66e8fadea1220c4c19bf95cdf33c9e
[ "MIT" ]
1
2020-10-07T06:42:17.000Z
2020-10-07T06:42:17.000Z
import os import platform import pytest no_osx = pytest.mark.skipif(platform.system() == 'Darwin', reason="There is no xvfb on osx.") no_mpl = pytest.mark.skipif(os.environ.get("RUNNER_OS", None) == "Linux", reason="There is no xvfb setup on Linux")
35.857143
115
0.729084
9c17dbb9d5d9c63c63a9831fea9bfe3c14b1869f
221
py
Python
weathermail/urls.py
teyrana/learn_django
ccd22239382efff44b2514c1fcfd06050c298ee1
[ "MIT" ]
null
null
null
weathermail/urls.py
teyrana/learn_django
ccd22239382efff44b2514c1fcfd06050c298ee1
[ "MIT" ]
null
null
null
weathermail/urls.py
teyrana/learn_django
ccd22239382efff44b2514c1fcfd06050c298ee1
[ "MIT" ]
null
null
null
from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.register, name='index'), url(r'^register', views.result ), url(r'^list', views.list ), url(r'^send', views.send ), ]
20.090909
45
0.615385
209c2ddad8e5c7e01f6bc5c794b6d648d508f963
4,434
py
Python
src/TheLanguage/Grammars/v0_0_1/Types/VariantType.py
davidbrownell/DavidBrownell_TheLanguage
07170b448a0ebd7fa2325c9ccd4cefdb3cf7eb98
[ "BSL-1.0" ]
null
null
null
src/TheLanguage/Grammars/v0_0_1/Types/VariantType.py
davidbrownell/DavidBrownell_TheLanguage
07170b448a0ebd7fa2325c9ccd4cefdb3cf7eb98
[ "BSL-1.0" ]
null
null
null
src/TheLanguage/Grammars/v0_0_1/Types/VariantType.py
davidbrownell/DavidBrownell_TheLanguage
07170b448a0ebd7fa2325c9ccd4cefdb3cf7eb98
[ "BSL-1.0" ]
1
2021-06-18T18:58:57.000Z
2021-06-18T18:58:57.000Z
# ---------------------------------------------------------------------- # | # | VariantType.py # | # | David Brownell <db@DavidBrownell.com> # | 2021-10-12 11:31:04 # | # ---------------------------------------------------------------------- # | # | Copyright David Brownell 2021 # | Distributed unde...
31.446809
87
0.411367
3d4c7fcaa58d53fd1b9d381b6eaa1aa53e6578da
1,646
py
Python
server/src/base/pb/protocol/python/IM/Other_pb2.py
zergl/TeamTalk
21cbb9dc98d123ec1f7f75e6d2b5f83a3b76bc66
[ "Apache-2.0" ]
6
2016-06-17T10:28:03.000Z
2018-03-05T08:40:25.000Z
server/src/base/pb/protocol/python/IM/Other_pb2.py
zergl/TeamTalk
21cbb9dc98d123ec1f7f75e6d2b5f83a3b76bc66
[ "Apache-2.0" ]
null
null
null
server/src/base/pb/protocol/python/IM/Other_pb2.py
zergl/TeamTalk
21cbb9dc98d123ec1f7f75e6d2b5f83a3b76bc66
[ "Apache-2.0" ]
1
2018-05-28T12:52:30.000Z
2018-05-28T12:52:30.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: IM.Other.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _refl...
26.126984
121
0.772175
018ace3d8ff9b89bb3d7b19b60b0e1e393c0c3cf
11,613
py
Python
Scripts/thimble.py
JamieHeather/istitchr-test
24bb0742137f3cee67734b65c66bf62f51aad29a
[ "BSD-3-Clause" ]
null
null
null
Scripts/thimble.py
JamieHeather/istitchr-test
24bb0742137f3cee67734b65c66bf62f51aad29a
[ "BSD-3-Clause" ]
null
null
null
Scripts/thimble.py
JamieHeather/istitchr-test
24bb0742137f3cee67734b65c66bf62f51aad29a
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- """ thimble.py Runs stiTChR in a high-throughput manner, on a tab separated input file. No fancy backronym or contrived silent capitals - it just helps you stitch faster. """ import functions as fxn import stitchr as st import warnings import argparse import sys import o...
48.3875
120
0.532421
c84248dcde3558de220ea644edcd77c70cbd512b
11,898
py
Python
spearmint/kernels/kernel_utils.py
cuihenggang/Spearmint-hips
1eba350523f4b615e5c90159928e27bb2b378e32
[ "RSA-MD" ]
1,590
2015-01-02T19:11:29.000Z
2022-03-31T13:36:16.000Z
spearmint/kernels/kernel_utils.py
cuihenggang/Spearmint-hips
1eba350523f4b615e5c90159928e27bb2b378e32
[ "RSA-MD" ]
99
2015-02-20T06:45:49.000Z
2021-12-06T13:28:44.000Z
spearmint/kernels/kernel_utils.py
cuihenggang/Spearmint-hips
1eba350523f4b615e5c90159928e27bb2b378e32
[ "RSA-MD" ]
366
2015-01-17T20:29:49.000Z
2022-02-21T16:22:31.000Z
# -*- coding: utf-8 -*- # Spearmint # # Academic and Non-Commercial Research Use Software License and Terms # of Use # # Spearmint is a software package to perform Bayesian optimization # according to specific algorithms (the “Software”). The Software is # designed to automatically run experiments (thus the code name ...
43.742647
95
0.731552
7066e1bedbc21475587fc994cde00617dfe58a50
19,357
py
Python
airflow/providers/google/cloud/operators/functions.py
ncolomer/airflow
cb7c67dea9cd9b9c5de10e355b63039446003149
[ "Apache-2.0" ]
2
2021-07-30T17:25:56.000Z
2021-08-03T13:51:09.000Z
airflow/providers/google/cloud/operators/functions.py
ncolomer/airflow
cb7c67dea9cd9b9c5de10e355b63039446003149
[ "Apache-2.0" ]
null
null
null
airflow/providers/google/cloud/operators/functions.py
ncolomer/airflow
cb7c67dea9cd9b9c5de10e355b63039446003149
[ "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...
39.829218
109
0.656817
18bf5e70e6aa9011afdc2aacebf49cd1b1ef92ef
1,382
py
Python
kwargs.py
iansantana00/Python-Course
43852aa64c93099342ab4765b0fe8729a959449e
[ "MIT" ]
2
2022-01-13T15:55:58.000Z
2022-02-11T23:18:34.000Z
kwargs.py
iansantana00/Python-Course
43852aa64c93099342ab4765b0fe8729a959449e
[ "MIT" ]
null
null
null
kwargs.py
iansantana00/Python-Course
43852aa64c93099342ab4765b0fe8729a959449e
[ "MIT" ]
null
null
null
""" **kwargs Poderíamos chamar este parâmetro de **xis, por exemplo, mas por convenção chamamos de **kwargs Este é só mais um parâmetro, mas diferente do *args que coloca os valores extras em uma tupla, o **kwargs exige que utilizemos parâmetros nomeados, e transforma esses parâmetros extras em um dicionário....
30.043478
110
0.698987
fa82bc0d02fd2c85aced5eead8b7d776013bedca
16,338
py
Python
sympy/utilities/autowrap.py
minrk/sympy
1cc6e3837b8ed20ba52ea97298f31aa08b43c508
[ "BSD-3-Clause" ]
2
2015-11-13T16:40:57.000Z
2017-09-15T15:37:19.000Z
sympy_old/utilities/autowrap.py
curzel-it/KiPyCalc
909c783d5e6967ea58ca93f875106d8a8e3ca5db
[ "MIT" ]
1
2016-06-13T01:29:51.000Z
2016-06-14T00:38:27.000Z
sympy_old/utilities/autowrap.py
curzel-it/KiPyCalc
909c783d5e6967ea58ca93f875106d8a8e3ca5db
[ "MIT" ]
1
2022-03-21T09:07:27.000Z
2022-03-21T09:07:27.000Z
"""Module for compiling codegen output, and wrap the binary for use in python. .. note:: To use the autowrap module it must first be imported >>> from sympy.utilities.autowrap import autowrap This module provides a common interface for different external backends, such as f2py, fwrap, Cython, SWIG(?) etc. (Curren...
35.828947
93
0.615865
203ab0e6ce609153f0ce5930890ee6c581402c22
2,107
py
Python
application.py
MacosPrintes001/webservice-paem
fa992e4bda40eaae3b585cee2ad2b65685104cc3
[ "Apache-2.0" ]
null
null
null
application.py
MacosPrintes001/webservice-paem
fa992e4bda40eaae3b585cee2ad2b65685104cc3
[ "Apache-2.0" ]
null
null
null
application.py
MacosPrintes001/webservice-paem
fa992e4bda40eaae3b585cee2ad2b65685104cc3
[ "Apache-2.0" ]
null
null
null
from app import api from app import AuthorizationResource, AuthorizationBotResource from app import UsuarioResource, ListaUsuarioResource from app import DocenteResource, ListaDocenteResource from app import DiscenteResource, ListaDiscenteResource from app import TecnicoResource, ListaTecnicoResource from app import Di...
32.921875
73
0.871856
756346658a71346e70769620886da02c5d7f6039
10,502
py
Python
edo_client/api/message.py
easydo-cn/edo_client
775f185c54f2eeda6a7dd6482de8228ca9ad89b0
[ "Apache-2.0" ]
null
null
null
edo_client/api/message.py
easydo-cn/edo_client
775f185c54f2eeda6a7dd6482de8228ca9ad89b0
[ "Apache-2.0" ]
null
null
null
edo_client/api/message.py
easydo-cn/edo_client
775f185c54f2eeda6a7dd6482de8228ca9ad89b0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import json from .base import BaseApi from ..error import ApiError class MessageV2Api(BaseApi): ''' Message V2 APIs ''' def trigger_notify_event( self, category='default', to=None, exclude=None, event_name='notify', event_data=None, event_type='persistent', ...
34.660066
104
0.59722
f4918d0671d95457ca477414dc4c555ab5edf307
4,739
py
Python
relaxrender/triangle.py
hefangwuwu/relaxrender
adcf3fa5dc7d38f0af8308083fadf665dd30bdb2
[ "MIT" ]
4
2018-06-08T16:42:30.000Z
2018-06-21T19:41:58.000Z
relaxrender/triangle.py
hefangwuwu/relaxrender
adcf3fa5dc7d38f0af8308083fadf665dd30bdb2
[ "MIT" ]
70
2018-06-15T08:46:25.000Z
2018-06-25T10:47:16.000Z
relaxrender/triangle.py
hefangwuwu/relaxrender
adcf3fa5dc7d38f0af8308083fadf665dd30bdb2
[ "MIT" ]
56
2018-06-08T11:46:05.000Z
2018-06-25T04:15:17.000Z
import numpy as np from .points import Point3D, Point, Vector, Points, Point3D_store class Triangle: data_width = Point.data_width*3 + Vector.data_width def __init__(self, p1, p2, p3, n=Vector.place_holder()): # p1, p2, p3 are Point3D type of object. self.p1 = p1 self.p2 = p2 ...
35.365672
87
0.535767
383bb9bf07b691a1d5bca981984c14ab61fc989d
12,792
py
Python
train.py
alexdloia/squad
1ec79d76815ba8ce68f1b6898a618316a1490110
[ "MIT" ]
null
null
null
train.py
alexdloia/squad
1ec79d76815ba8ce68f1b6898a618316a1490110
[ "MIT" ]
null
null
null
train.py
alexdloia/squad
1ec79d76815ba8ce68f1b6898a618316a1490110
[ "MIT" ]
null
null
null
"""Train a model on SQuAD. Author: Chris Chute (chute@stanford.edu) """ import numpy as np import random import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import torch.optim.lr_scheduler as sched import torch.utils.data as data import util from args import get_train_a...
43.216216
120
0.513602
8baf24b62656495c676a81aa98c1fb872c2659c4
3,559
py
Python
bindings/python/ensmallen/datasets/string/enhydrobacteraerosaccus.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
5
2021-02-17T00:44:45.000Z
2021-08-09T16:41:47.000Z
bindings/python/ensmallen/datasets/string/enhydrobacteraerosaccus.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
18
2021-01-07T16:47:39.000Z
2021-08-12T21:51:32.000Z
bindings/python/ensmallen/datasets/string/enhydrobacteraerosaccus.py
AnacletoLAB/ensmallen
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
3
2021-01-14T02:20:59.000Z
2021-08-04T19:09:52.000Z
""" This file offers the methods to automatically retrieve the graph Enhydrobacter aerosaccus. The graph is automatically retrieved from the STRING repository. References --------------------- Please cite the following if you use the data: ```bib @article{szklarczyk2019string, title={STRING v11: protein--prote...
32.953704
223
0.678561
94fa2db6db2eafe099f17c8859acde78833f6eae
541,619
py
Python
napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/isis/levels/level/link_state_database/lsp/tlvs/tlv/mt_isn/neighbors/neighbor/subTLVs/subTLVs_/link_loss/state/__init__.py
ckishimo/napalm-yang
8f2bd907bd3afcde3c2f8e985192de74748baf6c
[ "Apache-2.0" ]
64
2016-10-20T15:47:18.000Z
2021-11-11T11:57:32.000Z
napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/isis/levels/level/link_state_database/lsp/tlvs/tlv/mt_isn/neighbors/neighbor/subTLVs/subTLVs_/link_loss/state/__init__.py
ckishimo/napalm-yang
8f2bd907bd3afcde3c2f8e985192de74748baf6c
[ "Apache-2.0" ]
126
2016-10-05T10:36:14.000Z
2019-05-15T08:43:23.000Z
napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/isis/levels/level/link_state_database/lsp/tlvs/tlv/mt_isn/neighbors/neighbor/subTLVs/subTLVs_/link_loss/state/__init__.py
ckishimo/napalm-yang
8f2bd907bd3afcde3c2f8e985192de74748baf6c
[ "Apache-2.0" ]
63
2016-11-07T15:23:08.000Z
2021-09-22T14:41:16.000Z
# -*- coding: utf-8 -*- from operator import attrgetter from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType from pyangbind.lib.yangtypes import RestrictedClassType from pyangbind.lib.yangtypes import TypedListType from pyangbind.lib.yangtypes import YANGBool from pyangbind.lib.yangtypes import YANGListTy...
67.863551
42,480
0.490611
d3475122fa8abfecd488ea80527d1bda8f2945f4
8,353
py
Python
tests/test_stump.py
profintegra/stumpy
66b3402d91820005b466e1da6fe353b61e6246c5
[ "BSD-3-Clause" ]
2,296
2019-05-03T19:26:39.000Z
2022-03-31T20:42:08.000Z
tests/test_stump.py
vishalbelsare/stumpy
5f192a0a41fbb44f144cc4b676d525f19aaeaa98
[ "BSD-3-Clause" ]
436
2019-05-06T14:14:01.000Z
2022-03-31T20:39:31.000Z
tests/test_stump.py
vishalbelsare/stumpy
5f192a0a41fbb44f144cc4b676d525f19aaeaa98
[ "BSD-3-Clause" ]
318
2019-05-04T01:36:05.000Z
2022-03-31T20:31:11.000Z
import numpy as np import numpy.testing as npt import pandas as pd from stumpy import stump, config import pytest import naive test_data = [ ( np.array([9, 8100, -60, 7], dtype=np.float64), np.array([584, -11, 23, 79, 1001, 0, -19], dtype=np.float64), ), ( np.random.uniform(-1000, ...
34.374486
88
0.677242
0d9a6f4cea1a3c31359df38ab54393aad44dbfa1
1,126
py
Python
src/transformers/models/phobert/__init__.py
bugface/transformers
ba286fe7d51db12ad663effac83bed8199dd7141
[ "Apache-2.0" ]
5
2020-09-01T09:15:48.000Z
2020-09-15T03:25:05.000Z
src/transformers/models/phobert/__init__.py
bugface/transformers
ba286fe7d51db12ad663effac83bed8199dd7141
[ "Apache-2.0" ]
2
2022-03-08T04:58:59.000Z
2022-03-19T03:45:14.000Z
src/transformers/models/phobert/__init__.py
bugface/transformers
ba286fe7d51db12ad663effac83bed8199dd7141
[ "Apache-2.0" ]
3
2020-08-20T04:46:25.000Z
2020-10-14T08:39:13.000Z
# flake8: noqa # There's no way to ignore "F401 '...' imported but unused" warnings in this # module, but to preserve other warnings. So, don't check this module at all. # Copyright 2020 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use thi...
33.117647
113
0.760213
6ce0f8a1031f784269a403788ffe119661c62192
2,597
py
Python
_utils.py
rivoric/githubaccess
c1b58e6ebbda3778ac10b1e2c975fcd959f3a026
[ "MIT" ]
null
null
null
_utils.py
rivoric/githubaccess
c1b58e6ebbda3778ac10b1e2c975fcd959f3a026
[ "MIT" ]
null
null
null
_utils.py
rivoric/githubaccess
c1b58e6ebbda3778ac10b1e2c975fcd959f3a026
[ "MIT" ]
null
null
null
from github import Github import optparse import re def githuboptparse(): """Returns an optparse.OptionParser object with the standard github options""" parser = optparse.OptionParser() parser.add_option('-u', '--username', action="store", dest="user", help="Github username to...
39.953846
112
0.610705
68b33c671faf3abab1b00aff586a2be1c2530929
636
py
Python
manage.py
collokoech/Insta-Clone
2732f3fcc33d0757a1234b040ca0a8fdb32ef6d9
[ "MIT" ]
2
2020-02-19T13:13:50.000Z
2020-08-20T17:17:38.000Z
manage.py
collokoech/Insta-Clone
2732f3fcc33d0757a1234b040ca0a8fdb32ef6d9
[ "MIT" ]
9
2021-03-19T08:38:14.000Z
2022-03-12T00:19:44.000Z
manage.py
kiprotichdominic/InsClone
ea940a2989478d89c11e1a4e2e54bc9d2fe1d34a
[ "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', 'instagramproject.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: rai...
28.909091
80
0.687107
613e4463ec19801d9edaac460c82e73197202b68
1,828
py
Python
vega/algorithms/nas/sp_nas/utils/coco_utils.py
qixiuai/vega
3e6588ea4aedb03e3594a549a97ffdb86adb88d1
[ "MIT" ]
12
2020-12-13T08:34:24.000Z
2022-03-20T15:17:17.000Z
vega/algorithms/nas/sp_nas/utils/coco_utils.py
JacobLee121/vega
19256aca4d047bfad3b461f0a927e1c2abb9eb03
[ "MIT" ]
3
2021-03-31T20:15:40.000Z
2022-02-09T23:50:46.000Z
built-in/TensorFlow/Research/cv/image_classification/Darts_for_TensorFlow/automl/vega/algorithms/nas/sp_nas/utils/coco_utils.py
Huawei-Ascend/modelzoo
df51ed9c1d6dbde1deef63f2a037a369f8554406
[ "Apache-2.0" ]
2
2021-06-25T09:42:32.000Z
2021-08-06T18:00:09.000Z
# -*- coding:utf-8 -*- # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved. # This program is free software; you can redistribute it and/or modify # it under the terms of the MIT License. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the ...
32.642857
72
0.67779
8202d88fc4a4d6a3a16eab2c3d9fd79c69a91acc
4,033
py
Python
apps/sir_app/sir_app.py
rafaelvalero/covid_forecast
4e009ade5481f4e3bd48fd8048ca7d293d5d19b4
[ "MIT" ]
3
2020-03-20T14:23:51.000Z
2020-03-29T18:55:12.000Z
apps/sir_app/sir_app.py
rafaelvalero/covid_forecast
4e009ade5481f4e3bd48fd8048ca7d293d5d19b4
[ "MIT" ]
2
2020-03-21T14:07:17.000Z
2020-03-22T07:38:11.000Z
apps/sir_app/sir_app.py
rafaelvalero/covid_forecast
4e009ade5481f4e3bd48fd8048ca7d293d5d19b4
[ "MIT" ]
1
2020-05-12T14:37:28.000Z
2020-05-12T14:37:28.000Z
""" To run this app you shoud go to the folder and run '''bokeh serve --show sir_v3.py''' """ from bokeh.io import show, output_notebook, push_notebook from bokeh.plotting import figure from bokeh.models import CategoricalColorMapper, HoverTool, ColumnDataSource, Panel from bokeh.models.widgets import CheckboxGroup, ...
31.507813
113
0.681875
d0e27756ea570d25c778349849f646d432ca2f6b
385
py
Python
src/vectorfields/__init__.py
OlafHaag/VectorFields
f666ba054be2aa23b9a5b0e29be330701bb0aa4c
[ "MIT" ]
107
2019-02-12T13:06:14.000Z
2022-03-26T06:45:23.000Z
src/vectorfields/__init__.py
raven1934/VectorFields
7ea6f0267b1d863363025ed89e981c0fda16e23e
[ "MIT" ]
3
2020-01-07T21:54:30.000Z
2022-01-18T23:11:05.000Z
src/vectorfields/__init__.py
raven1934/VectorFields
7ea6f0267b1d863363025ed89e981c0fda16e23e
[ "MIT" ]
16
2019-05-06T22:05:55.000Z
2022-03-04T06:32:36.000Z
from .vectorfields import VectorField,\ VectorField2D,\ Vortex2D,\ Convolution2D, \ ElectricDipole2D, \ TwirlFlow2D, \ Belt2D, \ CustomUV2...
29.615385
45
0.345455
d8aae2f28fb2afc04527b6d73e35eaee56a91792
1,436
py
Python
aliyun-python-sdk-ram/aliyunsdkram/request/v20150501/CreateAccessKeyRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
1,001
2015-07-24T01:32:41.000Z
2022-03-25T01:28:18.000Z
aliyun-python-sdk-ram/aliyunsdkram/request/v20150501/CreateAccessKeyRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
363
2015-10-20T03:15:00.000Z
2022-03-08T12:26:19.000Z
aliyun-python-sdk-ram/aliyunsdkram/request/v20150501/CreateAccessKeyRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
682
2015-09-22T07:19:02.000Z
2022-03-22T09:51:46.000Z
# 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 u...
37.789474
74
0.767409
dbc36746ae06a7f824aea8d92b29daf16466692e
3,585
py
Python
sdk/python/feast/online_response.py
randxie/feast
cc003155ae0ddaaf4894c88e71c35c4698daf25a
[ "Apache-2.0" ]
null
null
null
sdk/python/feast/online_response.py
randxie/feast
cc003155ae0ddaaf4894c88e71c35c4698daf25a
[ "Apache-2.0" ]
null
null
null
sdk/python/feast/online_response.py
randxie/feast
cc003155ae0ddaaf4894c88e71c35c4698daf25a
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The Feast Authors # # 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 wr...
35.147059
132
0.663877
369962add2316def0456fba92c20113b4d850681
11,295
py
Python
hw1/cds_rl/infrastructure/rl_trainer.py
Shimanogov/mipt-rl-hw-2023
516eb68e922aba4c468f1df173edf549063fe167
[ "MIT" ]
null
null
null
hw1/cds_rl/infrastructure/rl_trainer.py
Shimanogov/mipt-rl-hw-2023
516eb68e922aba4c468f1df173edf549063fe167
[ "MIT" ]
null
null
null
hw1/cds_rl/infrastructure/rl_trainer.py
Shimanogov/mipt-rl-hw-2023
516eb68e922aba4c468f1df173edf549063fe167
[ "MIT" ]
null
null
null
from collections import OrderedDict import numpy as np import time import gym import torch from cds_rl.infrastructure import pytorch_util as ptu from cds_rl.infrastructure.logger import Logger from cds_rl.infrastructure import utils import pickle # how many rollouts to save as videos to tensorboard MAX_NVIDEO = 2 M...
41.072727
150
0.620363
46f82e807e9697f3e64903ad92e4496219df651b
1,219
py
Python
setup.py
myenergymanager/aio_nameko_proxy
896546d8082b90dcaa06809536ef9c84ad462cf5
[ "Apache-2.0" ]
16
2020-04-23T12:28:56.000Z
2022-03-31T07:46:44.000Z
setup.py
myenergymanager/aio_nameko_proxy
896546d8082b90dcaa06809536ef9c84ad462cf5
[ "Apache-2.0" ]
3
2020-08-10T09:22:45.000Z
2021-09-15T01:32:09.000Z
setup.py
myenergymanager/aio_nameko_proxy
896546d8082b90dcaa06809536ef9c84ad462cf5
[ "Apache-2.0" ]
7
2020-06-09T03:27:33.000Z
2021-12-08T19:43:01.000Z
import os from setuptools import setup, find_packages DIR = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(DIR, "README.md")) as f: long_desc = f.read() desc = '''A standalone nameko rpc proxy for asyncio and a wrapper for using nameko rpc proxy with Sanic. ''' setup( name="aio-nameko-pr...
30.475
108
0.630025
2d5daf1ae69c01add39854b4d01de7b982e25efe
6,600
py
Python
markdownify/__init__.py
AndrewCRichards/python-markdownify
25d68b4265071402f3addf0f35db040ae87c5864
[ "MIT" ]
null
null
null
markdownify/__init__.py
AndrewCRichards/python-markdownify
25d68b4265071402f3addf0f35db040ae87c5864
[ "MIT" ]
null
null
null
markdownify/__init__.py
AndrewCRichards/python-markdownify
25d68b4265071402f3addf0f35db040ae87c5864
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup, NavigableString import re import six convert_heading_re = re.compile(r'convert_h(\d+)') line_beginning_re = re.compile(r'^', re.MULTILINE) whitespace_re = re.compile(r'[\r\n\s\t ]+') # Heading styles ATX = 'atx' ATX_CLOSED = 'atx_closed' UNDERLINED = 'underlined' SETEXT = UNDERLINED ...
31.132075
92
0.555606
0f190ec57ac9d925af5d3e817c2f62912e60ecb6
6,768
py
Python
text-performance-attribution/src/analysis/evaluator.py
mathcass/deconfounded_lexicon_induction
8a2ac16e2eb3084c9062819865091fecacc2b41e
[ "MIT" ]
21
2018-03-02T21:15:25.000Z
2022-01-01T18:30:38.000Z
text-performance-attribution/src/analysis/evaluator.py
mathcass/deconfounded_lexicon_induction
8a2ac16e2eb3084c9062819865091fecacc2b41e
[ "MIT" ]
2
2021-08-25T14:46:23.000Z
2022-02-09T23:30:11.000Z
text-performance-attribution/src/analysis/evaluator.py
mathcass/deconfounded_lexicon_induction
8a2ac16e2eb3084c9062819865091fecacc2b41e
[ "MIT" ]
6
2018-08-08T09:52:04.000Z
2021-05-04T20:27:02.000Z
"""Code for pulling words out of trained models and evaluating them.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import numpy as np from sklearn import linear_model from sklearn import model_selection import sklearn.metrics import sys; sys.pa...
37.6
80
0.706265
9eab6fab04a9dd2a4418d2a16d3d5e73621b501a
27,791
py
Python
tests/unit/test_req.py
QuentinLee5/pip
e17ddea0e33c3dc02e823cc20bdf4990c65ce576
[ "MIT" ]
null
null
null
tests/unit/test_req.py
QuentinLee5/pip
e17ddea0e33c3dc02e823cc20bdf4990c65ce576
[ "MIT" ]
null
null
null
tests/unit/test_req.py
QuentinLee5/pip
e17ddea0e33c3dc02e823cc20bdf4990c65ce576
[ "MIT" ]
null
null
null
import contextlib import os import shutil import sys import tempfile from functools import partial from unittest.mock import patch import pytest from pip._vendor import pkg_resources from pip._vendor.packaging.markers import Marker from pip._vendor.packaging.requirements import Requirement from pip._internal.commands...
37.555405
79
0.623223
5f26937c45faf347e740aaa093f2c02257743996
1,200
py
Python
awx/api/parsers.py
gitEdouble/awx
5885654405ccaf465f08df4db998a6dafebd9b4d
[ "Apache-2.0" ]
1
2018-09-28T16:02:30.000Z
2018-09-28T16:02:30.000Z
awx/api/parsers.py
gitEdouble/awx
5885654405ccaf465f08df4db998a6dafebd9b4d
[ "Apache-2.0" ]
1
2020-04-09T08:43:28.000Z
2020-04-09T08:43:28.000Z
awx/api/parsers.py
gitEdouble/awx
5885654405ccaf465f08df4db998a6dafebd9b4d
[ "Apache-2.0" ]
2
2018-09-03T19:10:02.000Z
2019-06-12T07:07:16.000Z
# Python from collections import OrderedDict import json # Django from django.conf import settings from django.utils import six from django.utils.translation import ugettext_lazy as _ # Django REST Framework from rest_framework import parsers from rest_framework.exceptions import ParseError class JSONParser(parsers...
32.432432
110
0.67
1d6e32902017fe5ed44111b334e1b5258c3f7596
4,148
py
Python
venv/lib/python3.8/site-packages/pygments/lexers/ampl.py
johncollinsai/post-high-frequency-data
88533b0e0afc7e7f82fee1d3ca4b68abc30aaeb4
[ "MIT" ]
7
2022-01-16T12:28:16.000Z
2022-03-04T15:31:45.000Z
venv/lib/python3.8/site-packages/pygments/lexers/ampl.py
johncollinsai/post-high-frequency-data
88533b0e0afc7e7f82fee1d3ca4b68abc30aaeb4
[ "MIT" ]
8
2021-09-22T12:47:32.000Z
2022-01-14T21:30:38.000Z
venv/lib/python3.8/site-packages/pygments/lexers/ampl.py
johncollinsai/post-high-frequency-data
88533b0e0afc7e7f82fee1d3ca4b68abc30aaeb4
[ "MIT" ]
2
2022-01-17T16:50:08.000Z
2022-01-17T20:59:27.000Z
""" pygments.lexers.ampl ~~~~~~~~~~~~~~~~~~~~ Lexers for the AMPL language. :copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ from pygments.lexer import RegexLexer, bygroups, using, this, words from pygments.token import Text, Comment, ...
47.678161
96
0.473722
f64e48b6417eb190a6afb47ff5b618f81e6e702a
2,052
py
Python
data_collection/gazette/spiders/base/imprensa_oficial.py
kaiocp/querido-diario
86004049c6eee305e13066cf3607d30849bb099a
[ "MIT" ]
454
2018-04-07T03:32:57.000Z
2020-08-17T19:56:22.000Z
data_collection/gazette/spiders/base/imprensa_oficial.py
kaiocp/querido-diario
86004049c6eee305e13066cf3607d30849bb099a
[ "MIT" ]
254
2020-08-18T14:09:43.000Z
2022-03-28T11:30:51.000Z
data_collection/gazette/spiders/base/imprensa_oficial.py
kaiocp/querido-diario
86004049c6eee305e13066cf3607d30849bb099a
[ "MIT" ]
183
2018-04-11T15:09:37.000Z
2020-08-15T18:55:11.000Z
import re from datetime import date, datetime import scrapy from dateutil.rrule import MONTHLY, rrule from gazette.items import Gazette from gazette.spiders.base import BaseGazetteSpider class ImprensaOficialSpider(BaseGazetteSpider): def start_requests(self): initial_date = date(self.start_date.year, s...
37.309091
85
0.621832
d95a97d744430ead0a5e5b60dacf212f20b86ab8
625
py
Python
scripts/common.py
bbardoczy/QuantEcon.py
2c3b081b3373183be5b4c5393e176ed66feec1e3
[ "BSD-3-Clause" ]
1
2022-03-09T14:43:35.000Z
2022-03-09T14:43:35.000Z
scripts/common.py
bbardoczy/QuantEcon.py
2c3b081b3373183be5b4c5393e176ed66feec1e3
[ "BSD-3-Clause" ]
null
null
null
scripts/common.py
bbardoczy/QuantEcon.py
2c3b081b3373183be5b4c5393e176ed66feec1e3
[ "BSD-3-Clause" ]
null
null
null
""" Provides Context Manager for Test Scripts """ import sys class RedirectStdStreams(object): def __init__(self, stdout=None, stderr=None): self._stdout = stdout or sys.stdout self._stderr = stderr or sys.stderr def __enter__(self): self.old_stdout, self.old_stderr = sys.stdout, sys....
31.25
65
0.6784
8364a26a34a675e2a4e7825957073c79927866dc
1,018
py
Python
google/ads/google_ads/v4/services/keyword_plan_ad_group_keyword_service_client_config.py
arammaliachi/google-ads-python
a4fe89567bd43eb784410523a6306b5d1dd9ee67
[ "Apache-2.0" ]
1
2021-04-09T04:28:47.000Z
2021-04-09T04:28:47.000Z
google/ads/google_ads/v4/services/keyword_plan_ad_group_keyword_service_client_config.py
arammaliachi/google-ads-python
a4fe89567bd43eb784410523a6306b5d1dd9ee67
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v4/services/keyword_plan_ad_group_keyword_service_client_config.py
arammaliachi/google-ads-python
a4fe89567bd43eb784410523a6306b5d1dd9ee67
[ "Apache-2.0" ]
null
null
null
config = { "interfaces": { "google.ads.googleads.v4.services.KeywordPlanAdGroupKeywordService": { "retry_codes": { "idempotent": [ "DEADLINE_EXCEEDED", "UNAVAILABLE" ], "non_idempotent": [] }, "retry_params": { "default": { "initial_r...
27.513514
74
0.551081
b0bb698f16d2e1920e8064a9e324948768e454ae
8,312
py
Python
mlinsights/search_rank/search_engine_predictions_images.py
sdpython/mlinsights
bae59cda775a69bcce83b16b88df2f34a092cb60
[ "MIT" ]
48
2017-11-19T14:59:41.000Z
2022-03-03T15:50:24.000Z
mlinsights/search_rank/search_engine_predictions_images.py
sdpython/mlinsights
bae59cda775a69bcce83b16b88df2f34a092cb60
[ "MIT" ]
87
2017-11-20T00:10:32.000Z
2021-11-20T01:48:09.000Z
mlinsights/search_rank/search_engine_predictions_images.py
sdpython/mlinsights
bae59cda775a69bcce83b16b88df2f34a092cb60
[ "MIT" ]
12
2019-05-09T07:45:52.000Z
2021-06-28T06:55:53.000Z
""" @file @brief Implements a way to get close examples based on the output of a machine learned model. """ import numpy from .search_engine_predictions import SearchEnginePredictions class SearchEnginePredictionImages(SearchEnginePredictions): """ Extends class @see cl SearchEnginePredictions. Vectors ar...
49.772455
125
0.581689
7727d5d0da4cbc73af500d919045cdf28846a294
647
py
Python
armyguys/aws/route53/hostedzone.py
jtpaasch/armyguys
4f138420ba42d6d9864176a87c709af014034429
[ "MIT" ]
null
null
null
armyguys/aws/route53/hostedzone.py
jtpaasch/armyguys
4f138420ba42d6d9864176a87c709af014034429
[ "MIT" ]
null
null
null
armyguys/aws/route53/hostedzone.py
jtpaasch/armyguys
4f138420ba42d6d9864176a87c709af014034429
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Utilities for working with Route 53 hosted zones.""" from . import client as boto3client def get(profile, dns_name=None): """Get all hosted zones, or a specific one. Args: profile A profile to connect to AWS with. dns_name The DNS name of...
22.310345
58
0.616692
cd0815d5f829785674ad59a81aed55fef4c26e1a
494
py
Python
noscrapy/app/application.py
hwms/noscrapy
c7ccdb0f842eaa482c08b0932901c8a0a283f754
[ "MIT" ]
3
2017-05-04T03:25:16.000Z
2017-12-24T10:08:17.000Z
noscrapy/app/application.py
hwms/noscrapy
c7ccdb0f842eaa482c08b0932901c8a0a283f754
[ "MIT" ]
null
null
null
noscrapy/app/application.py
hwms/noscrapy
c7ccdb0f842eaa482c08b0932901c8a0a283f754
[ "MIT" ]
null
null
null
from flask import Flask from flask_appconfig import AppConfig from flask_bootstrap import Bootstrap from flask_debug import Debug from .frontend.controllers import frontend from .nav.controllers import nav def create_app(configfile=None): app = Flask(__name__) # app.config.from_object('noscrapy.app.config') ...
24.7
51
0.761134
168fd67aef2109a2b98551bc6d1597e2587a898a
4,345
py
Python
maml_rl/episode.py
Guitaricet/pytorch-maml-rl
66352b35221d4c0b0e218d5876b31352e13c6cb7
[ "MIT" ]
null
null
null
maml_rl/episode.py
Guitaricet/pytorch-maml-rl
66352b35221d4c0b0e218d5876b31352e13c6cb7
[ "MIT" ]
null
null
null
maml_rl/episode.py
Guitaricet/pytorch-maml-rl
66352b35221d4c0b0e218d5876b31352e13c6cb7
[ "MIT" ]
null
null
null
import numpy as np import torch import torch.nn.functional as F class BatchEpisodes(object): def __init__(self, batch_size, gamma=0.95, device='cpu'): self.batch_size = batch_size self.gamma = gamma self.device = device self._observations_list = [[] for _ in range(batch_size)] ...
40.231481
87
0.596087
edb16ccc2200dcb5287665aca80948e72119cee0
104
py
Python
torchOnVideo/tracking/towards_realtime_mot/EvaluateModel.py
torchOnVideo/torchOnVideo
aa07d5661f772eca027ecc6b79e14bd68a515aa1
[ "MIT" ]
2
2021-03-19T08:05:06.000Z
2021-05-22T21:54:10.000Z
torchOnVideo/tracking/towards_realtime_mot/EvaluateModel.py
torchOnVideo/torchOnVideo
aa07d5661f772eca027ecc6b79e14bd68a515aa1
[ "MIT" ]
null
null
null
torchOnVideo/tracking/towards_realtime_mot/EvaluateModel.py
torchOnVideo/torchOnVideo
aa07d5661f772eca027ecc6b79e14bd68a515aa1
[ "MIT" ]
null
null
null
from ..towards_realtime_mot import towards_realtime_mot class EvaluateModel( real_time_mot ): pass
20.8
55
0.817308
a7942734c6e53ca446434b9d1a5aa02ef9c9b312
1,907
py
Python
geotrek/common/tests/test_conf.py
Cynthia-Borot-PNE/Geotrek-admin
abd9ca8569a7e35ef7473f5b52731b1c78668754
[ "BSD-2-Clause" ]
null
null
null
geotrek/common/tests/test_conf.py
Cynthia-Borot-PNE/Geotrek-admin
abd9ca8569a7e35ef7473f5b52731b1c78668754
[ "BSD-2-Clause" ]
null
null
null
geotrek/common/tests/test_conf.py
Cynthia-Borot-PNE/Geotrek-admin
abd9ca8569a7e35ef7473f5b52731b1c78668754
[ "BSD-2-Clause" ]
null
null
null
# -*- encoding: utf-8 -*- import os from django.core.exceptions import ImproperlyConfigured from django.test import TestCase from geotrek.common.utils.signals import check_srid_has_meter_unit from geotrek.settings import EnvIniReader class StartupCheckTest(TestCase): def test_error_is_raised_if_srid_is_not_mete...
37.392157
96
0.682748
7239ff915c1ff6b3374b5af90f59e143a6340c16
150
py
Python
argument/__init__.py
LiHe96/AirCombateRL
ed2f7416485a183f27cb85b602dd1f41ad455b74
[ "MIT" ]
9
2019-11-25T11:19:02.000Z
2021-10-20T12:23:11.000Z
argument/__init__.py
LiHe96/AirCombateRL
ed2f7416485a183f27cb85b602dd1f41ad455b74
[ "MIT" ]
2
2020-11-02T07:06:03.000Z
2021-01-18T03:51:30.000Z
argument/__init__.py
LiHe96/AirCombateRL
ed2f7416485a183f27cb85b602dd1f41ad455b74
[ "MIT" ]
11
2019-11-28T14:04:29.000Z
2022-03-30T09:04:41.000Z
# import argparse # from argument.dqnArgs import * # from argument.pgArgs import * # import os # import pprint # parser = argparse.ArgumentParser()
16.666667
36
0.74
8c5c87e011b90ec4058fa42d7f9749e2c85747bc
771
py
Python
mundo3/D87.py
KayanOkagawa/Cursoemvideo-Python3-Exercicios
10c8386102cc0928f8f090070eb3218deb3d60fe
[ "MIT" ]
null
null
null
mundo3/D87.py
KayanOkagawa/Cursoemvideo-Python3-Exercicios
10c8386102cc0928f8f090070eb3218deb3d60fe
[ "MIT" ]
null
null
null
mundo3/D87.py
KayanOkagawa/Cursoemvideo-Python3-Exercicios
10c8386102cc0928f8f090070eb3218deb3d60fe
[ "MIT" ]
null
null
null
titulo = '\033[01;33m' txt = '\033[33m' nada = '\033[m' somapar = 0 somacoluna = 0 matriz = [[], [], [], [], [], [], [], [], []] print(f'\n{titulo:-<17} Criando uma Matriz 2.0 {nada:->12}') for count in range(0,9): num = int(input(f'\n{txt}Digite um número: {nada}')) matriz[count].append(num) if num % 2 =...
24.09375
60
0.54345
cfe6ca119c55a7f908a5a248f53a6653724f52fb
864
py
Python
gilded_rose.py
ransaked1/GildedRosePython
135b5790fa55470955e311a09a3bbcd6731a4c41
[ "MIT" ]
1
2022-03-01T21:34:08.000Z
2022-03-01T21:34:08.000Z
gilded_rose.py
ransaked1/GildedRosePython
135b5790fa55470955e311a09a3bbcd6731a4c41
[ "MIT" ]
null
null
null
gilded_rose.py
ransaked1/GildedRosePython
135b5790fa55470955e311a09a3bbcd6731a4c41
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import pytest from processing import * class GildedRose(object): def __init__(self, items): self.items = items def update_quality(self): for item in self.items: update_item(item) def update_item(item): process_standard(item) if itemIsConjuredChec...
22.736842
69
0.648148
56e377d227a8f17a707f24a4edd3536a7a00ee9e
3,452
py
Python
pull_pga.py
m0n5terSi/PGALiveLeaderboard
a8c69ba41b8a96502628138aad416441fda4c667
[ "MIT" ]
null
null
null
pull_pga.py
m0n5terSi/PGALiveLeaderboard
a8c69ba41b8a96502628138aad416441fda4c667
[ "MIT" ]
null
null
null
pull_pga.py
m0n5terSi/PGALiveLeaderboard
a8c69ba41b8a96502628138aad416441fda4c667
[ "MIT" ]
null
null
null
import requests from bs4 import BeautifulSoup import json def get_players(soup, player_col, score_col, thru_col): rows = soup.find_all("tr", class_="Table__TR Table__even") players = {} for row in rows[1:]: print(row.text) cols = row.find_all("td") # If we get a bad row. For example...
31.669725
107
0.597335
407ce8e16ea140313891389455fb7f806e97e3d7
11,547
py
Python
executor/tests/utils_tests/test_controller.py
Reed-CompBio/GrapheryExecutor
5692a06c9f4322fd2c6233eac487c653d2fd558f
[ "MIT" ]
null
null
null
executor/tests/utils_tests/test_controller.py
Reed-CompBio/GrapheryExecutor
5692a06c9f4322fd2c6233eac487c653d2fd558f
[ "MIT" ]
null
null
null
executor/tests/utils_tests/test_controller.py
Reed-CompBio/GrapheryExecutor
5692a06c9f4322fd2c6233eac487c653d2fd558f
[ "MIT" ]
null
null
null
import io from contextlib import redirect_stdout from copy import deepcopy from logging import getLogger from operator import eq from textwrap import dedent from typing import Type, Callable, List import pytest from platform import platform from ...settings import DefaultVars, SERVER_VERSION from ...settings.variable...
29.531969
113
0.469992
e52c46040e7d4dd63de1771b3e8f4ed5b1d11a7f
2,845
py
Python
sdk/python/pulumi_azure_native/web/v20210201/list_web_app_sync_function_triggers_slot.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/web/v20210201/list_web_app_sync_function_triggers_slot.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/web/v20210201/list_web_app_sync_function_triggers_slot.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
# 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 __...
34.695122
173
0.663972
31441685a195e53ec70fd946b669dbceea219ded
3,841
py
Python
services/postgres/postgres.py
PXMYH/mls-scrapy
57a102fd8f70a3a2251d8a15cfebcd60d1af0c44
[ "MIT" ]
1
2020-01-03T17:35:29.000Z
2020-01-03T17:35:29.000Z
services/postgres/postgres.py
PXMYH/mls-scrapy
57a102fd8f70a3a2251d8a15cfebcd60d1af0c44
[ "MIT" ]
167
2018-10-20T15:51:04.000Z
2021-06-25T15:18:54.000Z
services/postgres/postgres.py
PXMYH/mls-scrapy
57a102fd8f70a3a2251d8a15cfebcd60d1af0c44
[ "MIT" ]
3
2019-04-23T15:16:17.000Z
2019-10-29T01:43:28.000Z
import os import sys import datetime from sqlalchemy import Column, Integer, String, DateTime, BigInteger, SmallInteger from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import relationship from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker # db_info = "postgres://po...
32.277311
94
0.667795
9ad7d0be97d29d9e24e788b925b4f6f55550c1e1
1,228
py
Python
xnmt/xnmt_decode.py
neulab/xnmt
d93f8f3710f986f36eb54e9ff3976a6b683da2a4
[ "Apache-2.0" ]
195
2017-05-27T11:23:40.000Z
2021-09-28T06:03:24.000Z
xnmt/xnmt_decode.py
neulab/xnmt
d93f8f3710f986f36eb54e9ff3976a6b683da2a4
[ "Apache-2.0" ]
386
2017-05-25T23:22:19.000Z
2020-05-03T13:57:28.000Z
xnmt/xnmt_decode.py
neulab/xnmt
d93f8f3710f986f36eb54e9ff3976a6b683da2a4
[ "Apache-2.0" ]
53
2017-05-23T17:45:18.000Z
2021-04-18T12:36:37.000Z
import argparse, os, sys from xnmt.eval import tasks from xnmt import param_collections, utils from xnmt.persistence import LoadSerialized, YamlPreloader, initialize_if_needed def main() -> None: parser = argparse.ArgumentParser() utils.add_backend_argparse(parser) parser.add_argument("--src", help=f"Path of so...
36.117647
102
0.772801
d2608c0516ebcbebe23c2f2d1b02297f74c1be16
8,972
py
Python
pyramid_describe/renderer/wadl.py
cadithealth/pyramid_describe
7b4abd15738dc3afbe67bd2f968bcf6bab66def2
[ "MIT" ]
3
2015-03-11T22:43:02.000Z
2016-06-09T09:58:41.000Z
pyramid_describe/renderer/wadl.py
cadithealth/pyramid_describe
7b4abd15738dc3afbe67bd2f968bcf6bab66def2
[ "MIT" ]
1
2015-10-13T20:49:09.000Z
2015-10-16T03:09:20.000Z
pyramid_describe/renderer/wadl.py
cadithealth/pyramid_describe
7b4abd15738dc3afbe67bd2f968bcf6bab66def2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #------------------------------------------------------------------------------ # file: $Id$ # auth: Philip J Grabner <grabner@cadit.com> # date: 2016/01/03 # copy: (C) Copyright 2016-EOT Cadit Inc., All Rights Reserved. #--------------------------------------------------------------------------...
33.856604
92
0.557401
2623748c2f4e2abdb428fe1ebcbefb6d2cd6627d
1,027
py
Python
scores/data.py
jrandson/Testes-python
84ed20e309d6921015325e70cf80d173145f29fb
[ "MIT" ]
null
null
null
scores/data.py
jrandson/Testes-python
84ed20e309d6921015325e70cf80d173145f29fb
[ "MIT" ]
null
null
null
scores/data.py
jrandson/Testes-python
84ed20e309d6921015325e70cf80d173145f29fb
[ "MIT" ]
null
null
null
def get_scores(): file = open('dados.txt','r') lista = [] for line in file: if len(line.rstrip()) > 0: lista.append(line.rstrip()) dados_brutos = [(lista[i],lista[i+1]) for i in range(0,len(lista)-1,2)] scores = {} for data in dados_brutos: scores[data[0]] = str_to_float(data[1]) return scores def ...
19.018519
72
0.663096
70e4f48d02f7da28350b8bb7bd863a1b3c7c9868
589
py
Python
sciQt/tests/test_dict_widgets.py
robertfasano/sciQt
37ba04b0dc9ebfa030f2d61e87236d7219c9e794
[ "MIT" ]
null
null
null
sciQt/tests/test_dict_widgets.py
robertfasano/sciQt
37ba04b0dc9ebfa030f2d61e87236d7219c9e794
[ "MIT" ]
null
null
null
sciQt/tests/test_dict_widgets.py
robertfasano/sciQt
37ba04b0dc9ebfa030f2d61e87236d7219c9e794
[ "MIT" ]
null
null
null
from sciQt import DictTable, DictTree import numpy as np def test_dicttable_set_parameters(qtbot): set_params = {'a': np.random.uniform(), 'b': np.random.uniform()} table = DictTable(set_params) params = table.get_parameters() for key in params: assert params[key] == set_params[key] def test_d...
32.722222
75
0.657046
d5a9061d81a85019e3c1f35ae705a9ae7adf700c
695
py
Python
main/urls.py
imranhassan87/Amazon-Reviews-Analyzer
c9b0b330b302d8c30266d1383baa5abef1830d1a
[ "MIT" ]
null
null
null
main/urls.py
imranhassan87/Amazon-Reviews-Analyzer
c9b0b330b302d8c30266d1383baa5abef1830d1a
[ "MIT" ]
null
null
null
main/urls.py
imranhassan87/Amazon-Reviews-Analyzer
c9b0b330b302d8c30266d1383baa5abef1830d1a
[ "MIT" ]
null
null
null
from django.conf import settings from django.conf.urls import static from django.urls import re_path, path from django.views.generic import TemplateView from main import views urlpatterns = [ re_path(r'^$', TemplateView.as_view(template_name='index.html'), name='home'), re_path(r'^api/crawl/', views.crawl, na...
36.578947
89
0.735252
2246c819673109bb52aa5fad870243f96b9a6a98
1,891
py
Python
data_structures/binary_heap.py
vadymshturkhal/algorithms
7eb6b3b0b8d389fdbbcc9ff48712d398f04c343d
[ "MIT" ]
null
null
null
data_structures/binary_heap.py
vadymshturkhal/algorithms
7eb6b3b0b8d389fdbbcc9ff48712d398f04c343d
[ "MIT" ]
null
null
null
data_structures/binary_heap.py
vadymshturkhal/algorithms
7eb6b3b0b8d389fdbbcc9ff48712d398f04c343d
[ "MIT" ]
null
null
null
from typing import Any, Union class BinaryHeap: def __init__(self, return_max=False): self.__items = [] self.__return_max = return_max def insert(self, item: Any) -> None: self.__items.append(item) self.__swim(len(self.__items) - 1) def del_element(self) -> Union[Any, Non...
23.936709
77
0.487044
d108bbf4a03b5286fed85b6312b91aef42da363e
10,228
py
Python
scripts/processors/ProminenceLabeller.py
arnacadia/Oscar
469b26495d46bcca604884d9b0347a29ad3bd572
[ "Apache-2.0" ]
63
2017-08-23T08:19:01.000Z
2021-09-06T12:31:25.000Z
scripts/processors/ProminenceLabeller.py
arnacadia/Oscar
469b26495d46bcca604884d9b0347a29ad3bd572
[ "Apache-2.0" ]
25
2017-08-24T13:18:50.000Z
2022-03-16T07:07:22.000Z
scripts/processors/ProminenceLabeller.py
arnacadia/Oscar
469b26495d46bcca604884d9b0347a29ad3bd572
[ "Apache-2.0" ]
30
2017-08-25T08:07:36.000Z
2022-03-12T15:37:56.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import numpy as np import os.path from UtteranceProcessor import * from scipy import signal from collections import OrderedDict, defaultdict import util.acoustic_feats as ac import util.Wavelets as cwt import util.cwt_utils from naive.naive_util import config_list as...
35.762238
108
0.561205