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
8c1c3c73c4859b5fc8da80c85ec0cdc92b79fbe2
1,013
py
Python
exercicios/ex056.py
RicardoAugusto-RCD/exercicios_python
8a803f9cbc8b2ad0b5a6d61f0e7b6c2bc615b5ff
[ "MIT" ]
null
null
null
exercicios/ex056.py
RicardoAugusto-RCD/exercicios_python
8a803f9cbc8b2ad0b5a6d61f0e7b6c2bc615b5ff
[ "MIT" ]
null
null
null
exercicios/ex056.py
RicardoAugusto-RCD/exercicios_python
8a803f9cbc8b2ad0b5a6d61f0e7b6c2bc615b5ff
[ "MIT" ]
null
null
null
# Desenvolva um programa que leia o nome, idade e sexo de 4 pessoas. No final do programa, mostre: # A média de idade do grupo. # Qual é o nome do homem mais velho. # Quantas mulheres têm menos de 20 anos. somaIdade = 0 mediaIdade = 0 maisVelho = 0 menores20 = 0 nomeMaisVelho = ' ' for c in range(1, 5): print('»...
28.138889
98
0.610069
5e63fcb6d8068cc9ef8d8b92f2df3adf5c1f3af6
18,683
py
Python
pyaedt/edb_core/padstack.py
beliaev-maksim/pyaedt
c549de1d0c80f3598afc5475817a332bb6d6df57
[ "MIT" ]
null
null
null
pyaedt/edb_core/padstack.py
beliaev-maksim/pyaedt
c549de1d0c80f3598afc5475817a332bb6d6df57
[ "MIT" ]
null
null
null
pyaedt/edb_core/padstack.py
beliaev-maksim/pyaedt
c549de1d0c80f3598afc5475817a332bb6d6df57
[ "MIT" ]
null
null
null
""" This module contains the `EdbPadstacks` class. """ import warnings from pyaedt.generic.general_methods import aedt_exception_handler, generate_unique_name, is_ironpython from pyaedt.edb_core.general import convert_py_list_to_net_list import math from pyaedt.edb_core.EDB_Data import EDBPadstack try: from Sys...
36.490234
119
0.595782
a4a340c18a41423033c1d5c6009557d1016fd165
12,714
py
Python
fm/models/mib.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
null
null
null
fm/models/mib.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
null
null
null
fm/models/mib.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
null
null
null
# --------------------------------------------------------------------- # MIB model # --------------------------------------------------------------------- # Copyright (C) 2007-2020 The NOC Project # See LICENSE for details # --------------------------------------------------------------------- # Python modules import...
35.513966
97
0.475775
8e220ef311783e2cceabd402ecff35bcf2e9a36c
10,966
py
Python
dronekit_sitl/pysim/rotmat.py
peterbarker/dronekit-sitl
f3c8ab7421264b0c211e31371616b85e7b5f762e
[ "Apache-2.0", "MIT" ]
null
null
null
dronekit_sitl/pysim/rotmat.py
peterbarker/dronekit-sitl
f3c8ab7421264b0c211e31371616b85e7b5f762e
[ "Apache-2.0", "MIT" ]
null
null
null
dronekit_sitl/pysim/rotmat.py
peterbarker/dronekit-sitl
f3c8ab7421264b0c211e31371616b85e7b5f762e
[ "Apache-2.0", "MIT" ]
null
null
null
#!/usr/bin/env python # # vector3 and rotation matrix classes # This follows the conventions in the ArduPilot code, # and is essentially a python version of the AP_Math library # # Andrew Tridgell, March 2012 # # This library is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser...
32.158358
102
0.507934
7f1d1c8a346b34fd5308eab772e32342a99f9d26
14,961
py
Python
src/train_VQG.py
marionacaros/marionacaros.github.io
0e816e58696b97f83a5ab03ec0a6b68ed238c63c
[ "Apache-2.0" ]
1
2020-10-22T10:42:00.000Z
2020-10-22T10:42:00.000Z
src/train_VQG.py
marionacaros/marionacaros.github.io
0e816e58696b97f83a5ab03ec0a6b68ed238c63c
[ "Apache-2.0" ]
5
2021-03-19T15:21:38.000Z
2022-03-12T00:50:20.000Z
src/train_VQG.py
marionacaros/elisabot
0e816e58696b97f83a5ab03ec0a6b68ed238c63c
[ "Apache-2.0" ]
null
null
null
## Copyright 2019 ## ## Licensed under the Apache License, Version 2.0 (the "License"); ## you may not use this file except in compliance with the License. ## You may obtain a copy of the License at ## ## http://www.apache.org/licenses/LICENSE-2.0 ## ## Unless required by applicable law or agreed to in writing, soft...
40.326146
122
0.626496
0cb9e17c007654250052778073072109cd325e62
232
py
Python
examples/zdpgo_gin/z08_router_group.py
zhangdapeng520/zdppy_requests
154af90a413172e3d291044a33718ae98eb051b7
[ "MIT" ]
null
null
null
examples/zdpgo_gin/z08_router_group.py
zhangdapeng520/zdppy_requests
154af90a413172e3d291044a33718ae98eb051b7
[ "MIT" ]
null
null
null
examples/zdpgo_gin/z08_router_group.py
zhangdapeng520/zdppy_requests
154af90a413172e3d291044a33718ae98eb051b7
[ "MIT" ]
null
null
null
from zdppy_requests import Requests r = Requests(port=8080, debug=True) r.log.info(r.post("/v1/login").json()) r.log.info(r.post("/v1/logout").json()) r.log.info(r.post("/v2/login").json()) r.log.info(r.post("/v2/logout").json())
25.777778
39
0.672414
eb36152586e91dc8acb0aea2453b75c99b4b692e
187
py
Python
quickgui/examples/qt/task.py
alfiopuglisi/quickGui
0d4208e69491b76daf2261db4a41da668a05e0a7
[ "MIT" ]
2
2020-07-03T11:46:35.000Z
2020-07-06T13:34:06.000Z
quickgui/examples/qt/task.py
alfiopuglisi/quickGui
0d4208e69491b76daf2261db4a41da668a05e0a7
[ "MIT" ]
1
2020-08-12T09:01:53.000Z
2020-08-12T09:01:53.000Z
quickgui/examples/qt/task.py
alfiopuglisi/quickGui
0d4208e69491b76daf2261db4a41da668a05e0a7
[ "MIT" ]
null
null
null
def task(qin, qout): while True: cmd = qin.get() if cmd is None: break try: qout.put(eval(cmd)) except Exception: pass
13.357143
30
0.449198
32c9ca3b2bdac4b4f9bf0044f8992524f3de00eb
2,454
py
Python
code/helpers.py
ndjaitly/multi-frame
a403de34a5d196d1843e483f35b9573f5dbb2548
[ "Apache-2.0" ]
7
2015-02-10T05:58:03.000Z
2018-03-06T21:55:19.000Z
code/helpers.py
ndjaitly/multi-frame
a403de34a5d196d1843e483f35b9573f5dbb2548
[ "Apache-2.0" ]
null
null
null
code/helpers.py
ndjaitly/multi-frame
a403de34a5d196d1843e483f35b9573f5dbb2548
[ "Apache-2.0" ]
null
null
null
from numpy import sum from StripedFuncs import * import cudamat_ext as cm import pdb def compute_predictions_for_sentence(db, nnet_model, fileNum): data, labels = db.get_data_for_file(fileNum, return_labels=True) data_striped = StripeData(data, db.get_num_frames_per_pt(), ...
37.181818
83
0.667482
589e2c65834a253e815755f78b8eae7e2166f983
59
py
Python
lectures/code/list_map.py
naskoch/python_course
84adfd3f8d48ca3ad5837f7acc59d2fa051e95d3
[ "MIT" ]
4
2015-08-10T17:46:55.000Z
2020-04-18T21:09:03.000Z
lectures/code/list_map.py
naskoch/python_course
84adfd3f8d48ca3ad5837f7acc59d2fa051e95d3
[ "MIT" ]
null
null
null
lectures/code/list_map.py
naskoch/python_course
84adfd3f8d48ca3ad5837f7acc59d2fa051e95d3
[ "MIT" ]
2
2019-04-24T03:31:02.000Z
2019-05-13T07:36:06.000Z
l = range(4) print map(lambda x: x*x*x, l) # [0, 1, 8, 27]
14.75
29
0.525424
f9ce2bdcb9bc5206b0310f11476ac2e3fa089e7a
975
py
Python
fixture/db.py
ElizavetaSolovey/python_traning_mantis
8dc5ede2a7a31c4907048ca32d95c7867a739a4c
[ "Apache-2.0" ]
null
null
null
fixture/db.py
ElizavetaSolovey/python_traning_mantis
8dc5ede2a7a31c4907048ca32d95c7867a739a4c
[ "Apache-2.0" ]
null
null
null
fixture/db.py
ElizavetaSolovey/python_traning_mantis
8dc5ede2a7a31c4907048ca32d95c7867a739a4c
[ "Apache-2.0" ]
null
null
null
import pymysql.cursors from model.project import Project class DbFixture: def __init__(self, host, name, user, password): self.host = host self.name = name self.user = user self.password = password self.connection = pymysql.connect(host=host, database=name, user=user, passw...
34.821429
114
0.612308
6b557b4e1ebbd5683a7aef0e05df0fd4064358d5
200
py
Python
exercicios/ex027.py
ArthurLopesMagalhaes/Python-CursoEmVideo
de9006f620a7308c3001fa486b1a4bcd789f7a49
[ "MIT" ]
null
null
null
exercicios/ex027.py
ArthurLopesMagalhaes/Python-CursoEmVideo
de9006f620a7308c3001fa486b1a4bcd789f7a49
[ "MIT" ]
null
null
null
exercicios/ex027.py
ArthurLopesMagalhaes/Python-CursoEmVideo
de9006f620a7308c3001fa486b1a4bcd789f7a49
[ "MIT" ]
null
null
null
nome = str(input('Digite seu nome completo: ')).title() print('Muito prazer em te conhecer') print(f'Seu primeiro nome é {nome.split()[0]}') print(f'Seu último nome é {nome.split()[-1]}') print(nome)
33.333333
55
0.685
c10c198de9f510b9fe4a8947358ad0ed193d3742
1,269
py
Python
tests/dataverk/connectors/databases/test_resources/mock_pandas.py
navikt/dataverk
7dd803236433048686dd7a58358bc1c09565b14b
[ "MIT" ]
3
2019-09-29T20:48:46.000Z
2021-03-31T10:16:07.000Z
tests/dataverk/connectors/databases/test_resources/mock_pandas.py
navikt/dataverk
7dd803236433048686dd7a58358bc1c09565b14b
[ "MIT" ]
148
2019-02-08T12:30:58.000Z
2021-03-11T15:31:55.000Z
tests/dataverk/connectors/databases/test_resources/mock_pandas.py
navikt/dataverk
7dd803236433048686dd7a58358bc1c09565b14b
[ "MIT" ]
1
2020-11-18T14:10:05.000Z
2020-11-18T14:10:05.000Z
import pandas as pd from tests.dataverk.connectors.databases.test_resources.common import PANDAS_DATAFRAME from sqlalchemy.exc import SQLAlchemyError, OperationalError class MockPandas: @staticmethod def read_sql( sql, con, index_col=None, coerce_float=True, params=No...
25.897959
94
0.591017
f8bc531e3c344defc9d67252f5577bc744bf71be
12,162
py
Python
pandas/plotting/_matplotlib/boxplot.py
ivary43/pandas
46adc5b1c2aacb312d72729af72bc0ad600917c0
[ "BSD-3-Clause" ]
null
null
null
pandas/plotting/_matplotlib/boxplot.py
ivary43/pandas
46adc5b1c2aacb312d72729af72bc0ad600917c0
[ "BSD-3-Clause" ]
null
null
null
pandas/plotting/_matplotlib/boxplot.py
ivary43/pandas
46adc5b1c2aacb312d72729af72bc0ad600917c0
[ "BSD-3-Clause" ]
1
2020-11-05T13:46:01.000Z
2020-11-05T13:46:01.000Z
from collections import namedtuple import warnings from matplotlib.artist import setp import numpy as np from pandas.core.dtypes.generic import ABCSeries from pandas.core.dtypes.missing import remove_na_arraylike import pandas as pd from pandas.io.formats.printing import pprint_thing from pandas.plotting._matplotli...
35.665689
80
0.558625
56939e64ef4827b189a488eb1a688c76bed0b546
602
py
Python
graviteeio_cli/extensions/click_paramtype.py
Shaker5191/graviteeio-cli
318748bb8e631743ea58afaee24333249ca3d227
[ "Apache-2.0" ]
null
null
null
graviteeio_cli/extensions/click_paramtype.py
Shaker5191/graviteeio-cli
318748bb8e631743ea58afaee24333249ca3d227
[ "Apache-2.0" ]
null
null
null
graviteeio_cli/extensions/click_paramtype.py
Shaker5191/graviteeio-cli
318748bb8e631743ea58afaee24333249ca3d227
[ "Apache-2.0" ]
null
null
null
from urllib.parse import urlparse from click import ParamType class URLParamType(ParamType): name = 'URL' def convert(self, value, param, ctx): if is_uri_valid(value): return value else: self.fail('%s is not a valid url' % value, param, ctx) if isinstance(va...
20.758621
84
0.634551
35e85d8a7c993954de4581a0bcf2570cd5ff75a0
960
py
Python
sa/migrations/0002_trigger.py
xUndero/noc
9fb34627721149fcf7064860bd63887e38849131
[ "BSD-3-Clause" ]
1
2019-09-20T09:36:48.000Z
2019-09-20T09:36:48.000Z
sa/migrations/0002_trigger.py
ewwwcha/noc
aba08dc328296bb0e8e181c2ac9a766e1ec2a0bb
[ "BSD-3-Clause" ]
null
null
null
sa/migrations/0002_trigger.py
ewwwcha/noc
aba08dc328296bb0e8e181c2ac9a766e1ec2a0bb
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # ---------------------------------------------------------------------- # trigger # ---------------------------------------------------------------------- # Copyright (C) 2007-2019 The NOC Project # See LICENSE for details # ----------------------------------------------------------------------...
25.263158
98
0.540625
95c5cf2a6ffc5fa5b236acac58a19f6af98589d1
4,273
py
Python
snowddl/resolver/stage_file.py
littleK0i/SnowDDL
b24cb3676e41fec8876d61a101ba242e7272a18f
[ "Apache-2.0" ]
21
2022-02-10T16:52:03.000Z
2022-03-18T15:27:18.000Z
snowddl/resolver/stage_file.py
littleK0i/SnowDDL
b24cb3676e41fec8876d61a101ba242e7272a18f
[ "Apache-2.0" ]
null
null
null
snowddl/resolver/stage_file.py
littleK0i/SnowDDL
b24cb3676e41fec8876d61a101ba242e7272a18f
[ "Apache-2.0" ]
1
2022-03-05T11:02:42.000Z
2022-03-05T11:02:42.000Z
from io import BytesIO from hashlib import md5 from pathlib import Path from snowddl.blueprint import StageBlueprint, StageFileBlueprint from snowddl.error import SnowDDLExecuteError from snowddl.resolver.abc_resolver import AbstractResolver, ResolveResult, ObjectType class StageFileResolver(AbstractResolver): d...
37.156522
136
0.613854
474efa69eafe682b66de116aac1df136281fd25c
7,537
py
Python
bin/generatePrivatePage.py
richardzilincikPantheon/sdo_analysis
18c2c89d0dd41e30c3f4b34ee92febb4373f0bb4
[ "Apache-2.0" ]
null
null
null
bin/generatePrivatePage.py
richardzilincikPantheon/sdo_analysis
18c2c89d0dd41e30c3f4b34ee92febb4373f0bb4
[ "Apache-2.0" ]
null
null
null
bin/generatePrivatePage.py
richardzilincikPantheon/sdo_analysis
18c2c89d0dd41e30c3f4b34ee92febb4373f0bb4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright The IETF Trust 2020, All Rights Reserved # This software is licensed to you under the terms of the Apache License, Version 2.0 (the "License"). # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 # The code, technical concepts, and all information cont...
53.077465
114
0.653443
fd4e8ba3e4f4668eb43d75529b515ade2285bcf3
6,262
py
Python
bgp/pid_tester.py
aypan17/value_learning
240a67ecf99b178fe0c4ced2bfd1dd50453fbdfe
[ "MIT" ]
null
null
null
bgp/pid_tester.py
aypan17/value_learning
240a67ecf99b178fe0c4ced2bfd1dd50453fbdfe
[ "MIT" ]
null
null
null
bgp/pid_tester.py
aypan17/value_learning
240a67ecf99b178fe0c4ced2bfd1dd50453fbdfe
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import joblib import os from joblib import Parallel, delayed from bgp.rl import pid from bgp.rl.reward_functions import risk_diff import bgp.simglucose.envs.simglucose_gym_env as bgp_env from bgp.evaluation import result_helpers as rh """ This script was used to tune the PID and ...
46.044118
118
0.532258
175916b86865044e72c25202fcf933506fe437be
9,599
py
Python
src/train_wordConditioned.py
CMU-MultiComp-Lab/language2pose
b32199ae5b2b80087411504afef384e0fa689d04
[ "MIT" ]
1
2022-01-14T09:46:43.000Z
2022-01-14T09:46:43.000Z
src/train_wordConditioned.py
CMU-MultiComp-Lab/language2pose
b32199ae5b2b80087411504afef384e0fa689d04
[ "MIT" ]
null
null
null
src/train_wordConditioned.py
CMU-MultiComp-Lab/language2pose
b32199ae5b2b80087411504afef384e0fa689d04
[ "MIT" ]
null
null
null
## to run dataparallel - s2v must be a tensor ## sampling can be made more efficient ## slurm pipelining - train->sample->render ## better render in pygame ## do not load seq2seq model for training the best model ## but we need it as a baseline ## sentence_dec_cross is same accross all input sentences. If that is true...
33.562937
140
0.605896
45c6dbea254d2137d6ad9df68ad67d0113df2894
4,363
py
Python
muddle/api/category.py
nwp90/muddle.py
f09728599c7d393854face5b3c650af2e27f1989
[ "MIT" ]
null
null
null
muddle/api/category.py
nwp90/muddle.py
f09728599c7d393854face5b3c650af2e27f1989
[ "MIT" ]
null
null
null
muddle/api/category.py
nwp90/muddle.py
f09728599c7d393854face5b3c650af2e27f1989
[ "MIT" ]
1
2019-10-26T15:34:56.000Z
2019-10-26T15:34:56.000Z
from muddle.utils import valid_options class API: """ Represents API endpoints for Moodle Course Categories """ def __init__(self, config): self.config = config def details(self, category_id): """ Returns details for given category :returns: category response object ...
34.626984
79
0.564061
59f9570e289e62286356b91415d155588434795c
2,371
py
Python
playbooks/files/rax-maas/plugins/maas_poller_fd_count.py
mvollman/rpc-maas
a233dadb293572369a9fdad1c0c7aff075ef45f2
[ "Apache-2.0" ]
null
null
null
playbooks/files/rax-maas/plugins/maas_poller_fd_count.py
mvollman/rpc-maas
a233dadb293572369a9fdad1c0c7aff075ef45f2
[ "Apache-2.0" ]
2
2020-08-13T19:29:13.000Z
2020-08-13T21:45:39.000Z
playbooks/files/rax-maas/plugins/maas_poller_fd_count.py
mvollman/rpc-maas
a233dadb293572369a9fdad1c0c7aff075ef45f2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2015, Rackspace US, 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 applicab...
30.792208
75
0.690426
c0229d7f09f38f29550d4a075eea7f2318acea95
231
py
Python
Core/Block_1/R1926_Factory.py
BernardoB95/Extrator_SPEDFiscal
10b4697833c561d24654251da5f22d044f03fc16
[ "MIT" ]
1
2021-04-25T13:53:20.000Z
2021-04-25T13:53:20.000Z
Core/Block_1/R1926_Factory.py
BernardoB95/Extrator_SPEDFiscal
10b4697833c561d24654251da5f22d044f03fc16
[ "MIT" ]
null
null
null
Core/Block_1/R1926_Factory.py
BernardoB95/Extrator_SPEDFiscal
10b4697833c561d24654251da5f22d044f03fc16
[ "MIT" ]
null
null
null
from Core.IFactory import IFactory from Regs.Block_1 import R1926 class R1926Factory(IFactory): def create_block_object(self, line): self.r1926 = _r1926 = R1926() _r1926.reg_list = line return _r1926
21
40
0.69697
be633d8a07a3ccc0705a17e6173baa10c14ae06c
1,717
py
Python
Sketches/MPS/Systems/MulticastProxying/SplittingServer.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
12
2015-10-20T10:22:01.000Z
2021-07-19T10:09:44.000Z
Sketches/MPS/Systems/MulticastProxying/SplittingServer.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
2
2015-10-20T10:22:55.000Z
2017-02-13T11:05:25.000Z
Sketches/MPS/Systems/MulticastProxying/SplittingServer.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
6
2015-03-09T12:51:59.000Z
2020-03-01T13:06:21.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1) # # (1) Kamaelia Contributors are listed in the AUTHORS file and at # http://www.kamaelia.org/AUTHORS - please extend this file, # not this notice. # # Licensed under the Apache License, Vers...
39.022727
146
0.781013
aba8c6499da99fbd455181adc28f0c3f6b87096c
10,781
py
Python
MarkdownPP/Modules/Frontmatter.py
NickStedmanHarris/markdown-pp
e417a7116a6c4d243f135711282928f39c6a4a30
[ "MIT" ]
null
null
null
MarkdownPP/Modules/Frontmatter.py
NickStedmanHarris/markdown-pp
e417a7116a6c4d243f135711282928f39c6a4a30
[ "MIT" ]
null
null
null
MarkdownPP/Modules/Frontmatter.py
NickStedmanHarris/markdown-pp
e417a7116a6c4d243f135711282928f39c6a4a30
[ "MIT" ]
null
null
null
from MarkdownPP.Module import Module from MarkdownPP.Transform import Transform import os import yaml import re import logging class Frontmatter(Module): """ Module for building various structures from data extracted from included file's frontmatter section. Basic command format is: !FRONTMATTE...
39.782288
165
0.580002
af75fba289c860bd34745d16328e4d8ded64823f
37,788
py
Python
jina/parser.py
HelioStrike/jina
35f7f83cf34bfc136331cd27c4e7c7f35a2414b3
[ "Apache-2.0" ]
null
null
null
jina/parser.py
HelioStrike/jina
35f7f83cf34bfc136331cd27c4e7c7f35a2414b3
[ "Apache-2.0" ]
null
null
null
jina/parser.py
HelioStrike/jina
35f7f83cf34bfc136331cd27c4e7c7f35a2414b3
[ "Apache-2.0" ]
null
null
null
__copyright__ = "Copyright (c) 2020 Jina AI Limited. All rights reserved." __license__ = "Apache-2.0" import argparse import os _SHOW_ALL_ARGS = 'JINA_FULL_CLI' in os.environ def add_arg_group(parser, title): return parser.add_argument_group(title) def set_base_parser(): from . import __version__ from...
51.906593
167
0.591219
f7df429b89562d1e57cdaa5e9058f3c9641f1ac2
4,736
py
Python
HeuristicaPopulacional/graspPathRelinkMixed.py
jeanoliveira92/metaheuristicas-mosp
96be6ca4c45603a16c8c7b83b2ee34fd0c79b146
[ "MIT" ]
null
null
null
HeuristicaPopulacional/graspPathRelinkMixed.py
jeanoliveira92/metaheuristicas-mosp
96be6ca4c45603a16c8c7b83b2ee34fd0c79b146
[ "MIT" ]
null
null
null
HeuristicaPopulacional/graspPathRelinkMixed.py
jeanoliveira92/metaheuristicas-mosp
96be6ca4c45603a16c8c7b83b2ee34fd0c79b146
[ "MIT" ]
null
null
null
import random import numpy as np import globals as g import math from HeuristicaRefinamento import heuristicaRefinamento as hr from HeuristicaConstrutiva import heuristicaConstrutiva as hc from HeuristicaPopulacional import grasp # HEURISTICA POPULACIONAL GRASP PATH RELINK MIXED - FIRST IMPROVEMEMENT def graspPathReli...
37.587302
167
0.593961
bdd8f8e24ec5b12a0102f283f8ef7826b3167cdd
47,559
py
Python
modeling.py
AntonMu/albert
f928a488380d359520e407e7862b031ffa5bb603
[ "Apache-2.0" ]
null
null
null
modeling.py
AntonMu/albert
f928a488380d359520e407e7862b031ffa5bb603
[ "Apache-2.0" ]
null
null
null
modeling.py
AntonMu/albert
f928a488380d359520e407e7862b031ffa5bb603
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The Google AI Team 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
37.068589
93
0.656721
e15e07fd11a29117bbd1cfd2a2052a51c6070148
1,153
py
Python
Pilot1/UnoMT/utils/miscellaneous/tee.py
j-woz/Benchmarks
d518162fdafb7cfa26071b6a30a3b456dad024f6
[ "MIT" ]
2
2021-02-06T06:47:19.000Z
2021-02-24T13:45:02.000Z
Pilot1/UnoMT/utils/miscellaneous/tee.py
j-woz/Benchmarks
d518162fdafb7cfa26071b6a30a3b456dad024f6
[ "MIT" ]
null
null
null
Pilot1/UnoMT/utils/miscellaneous/tee.py
j-woz/Benchmarks
d518162fdafb7cfa26071b6a30a3b456dad024f6
[ "MIT" ]
1
2019-08-14T14:29:42.000Z
2019-08-14T14:29:42.000Z
""" File Name: UnoPytorch/tee.py Author: Xiaotian Duan (xduan7) Email: xduan7@uchicago.edu Date: 8/17/18 Python Version: 3.6.6 File Description: This file implements a helper class Tee, which redirects the stdout to a file w...
23.530612
75
0.597572
0b9d680e00bb5c23212b4e352217f376d9b59268
7,072
py
Python
thrift/compiler/test/fixtures/py-sort-keys/gen-py/module/ttypes.py
laohubuzaijia/fbthrift
ab263311864ec93b8e52665dad954264f094137f
[ "Apache-2.0" ]
null
null
null
thrift/compiler/test/fixtures/py-sort-keys/gen-py/module/ttypes.py
laohubuzaijia/fbthrift
ab263311864ec93b8e52665dad954264f094137f
[ "Apache-2.0" ]
null
null
null
thrift/compiler/test/fixtures/py-sort-keys/gen-py/module/ttypes.py
laohubuzaijia/fbthrift
ab263311864ec93b8e52665dad954264f094137f
[ "Apache-2.0" ]
null
null
null
# # Autogenerated by Thrift # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # @generated # from __future__ import absolute_import import six import sys from thrift.util.Recursive import fix_spec from thrift.Thrift import TType, TMessageType, TPriority, TRequestContext, TProcessorEventHandler, TSe...
39.288889
339
0.698388
2111741b02ad6d73d32259d868675239645b6c75
352
py
Python
logstash/__init__.py
djsan15/python-logstash
a8be251ad9fc102af668c38a5397515b0804da75
[ "MIT" ]
410
2015-01-26T19:20:33.000Z
2022-03-31T18:31:02.000Z
logstash/__init__.py
djsan15/python-logstash
a8be251ad9fc102af668c38a5397515b0804da75
[ "MIT" ]
57
2015-02-12T11:44:07.000Z
2022-02-16T09:31:21.000Z
logstash/__init__.py
djsan15/python-logstash
a8be251ad9fc102af668c38a5397515b0804da75
[ "MIT" ]
131
2015-01-28T19:57:16.000Z
2022-02-22T03:46:20.000Z
from logstash.formatter import LogstashFormatterVersion0, LogstashFormatterVersion1 from logstash.handler_tcp import TCPLogstashHandler from logstash.handler_udp import UDPLogstashHandler, LogstashHandler try: from logstash.handler_amqp import AMQPLogstashHandler except: # you need to install AMQP support to e...
25.142857
83
0.835227
a105668bca94ba6f5e15761b90adcfe55bdae5ec
2,427
py
Python
env/lib/python3.8/site-packages/django_extensions/management/commands/create_jobs.py
avdhari/enigma
b7e965a91ca5f0e929c4c719d695f15ccb8b5a2c
[ "MIT" ]
1
2018-12-06T13:58:13.000Z
2018-12-06T13:58:13.000Z
env/lib/python3.8/site-packages/django_extensions/management/commands/create_jobs.py
avdhari/enigma
b7e965a91ca5f0e929c4c719d695f15ccb8b5a2c
[ "MIT" ]
10
2019-11-25T16:54:39.000Z
2022-02-10T08:29:51.000Z
env/lib/python3.8/site-packages/django_extensions/management/commands/create_jobs.py
avdhari/enigma
b7e965a91ca5f0e929c4c719d695f15ccb8b5a2c
[ "MIT" ]
1
2019-04-20T05:26:27.000Z
2019-04-20T05:26:27.000Z
# -*- coding: utf-8 -*- import os import sys import shutil from django.core.management.base import AppCommand from django.core.management.color import color_style from django_extensions.management.utils import _make_writeable, signalcommand class Command(AppCommand): help = "Creates a Django jobs command direct...
37.338462
156
0.635764
c6e48e35b6652bc99572a25e31045045f9d734c7
5,230
py
Python
www/tests/test_strings.py
Sumo99/brython
e0ed69451ac227efd8a445509443192826cbe3ae
[ "BSD-3-Clause" ]
3
2020-05-07T15:44:33.000Z
2021-11-13T15:15:55.000Z
www/tests/test_strings.py
Sumo99/brython
e0ed69451ac227efd8a445509443192826cbe3ae
[ "BSD-3-Clause" ]
null
null
null
www/tests/test_strings.py
Sumo99/brython
e0ed69451ac227efd8a445509443192826cbe3ae
[ "BSD-3-Clause" ]
2
2021-02-14T15:20:06.000Z
2021-11-13T15:15:58.000Z
# strings assert 'a'.__class__ == str assert isinstance('a', str) hello = "This is a rather long string containing\n\ several lines of text just as you would do in C.\n\ Note that whitespace at the beginning of the line is\ significant." hello = """\ Usage: thingy [OPTIONS] -h Displa...
24.904762
79
0.5826
e8998d49b40472d7cec9da2e4a8b5eb9dd11d243
926
py
Python
Solutions/Python/collatz_conjecture.py
N07070/Projects
6fb6ff76696ba1db56e7449fa8913de1c1b32d06
[ "MIT" ]
null
null
null
Solutions/Python/collatz_conjecture.py
N07070/Projects
6fb6ff76696ba1db56e7449fa8913de1c1b32d06
[ "MIT" ]
null
null
null
Solutions/Python/collatz_conjecture.py
N07070/Projects
6fb6ff76696ba1db56e7449fa8913de1c1b32d06
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # Collatz Conjecture - Start with a number n > 1. # Find the number of steps it takes to reach one using the following process: # If n is even, divide it by 2. If n is odd, multiply it by 3 and add 1. import time number_steps = 0 user_input = \ int(raw_input('Please ent...
26.457143
77
0.607991
6d89658917a293f501075bec3871bbb872404f67
12,597
py
Python
downloader.py
iamthejao/portfolioTools
8e31f35787be9c35c8b17fc8f10c34c3de14857d
[ "MIT" ]
null
null
null
downloader.py
iamthejao/portfolioTools
8e31f35787be9c35c8b17fc8f10c34c3de14857d
[ "MIT" ]
null
null
null
downloader.py
iamthejao/portfolioTools
8e31f35787be9c35c8b17fc8f10c34c3de14857d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Feb 28 16:38:49 2019 @author: joaopedroaugusto """ import datetime as dt import time import requests import json import pandas as pd import multiprocessing as mp from io_handler import IOHandler import sys import CONSTANTS import utility import datepa...
37.715569
195
0.582758
5487b72990ad971307a9e4ce1be784fce02d035b
5,770
py
Python
type_check.py
antonhoess/sdf_simulator
50c66a90bf7813f8bd92b34b86f123fb90d66062
[ "BSD-3-Clause" ]
1
2021-02-04T20:39:07.000Z
2021-02-04T20:39:07.000Z
type_check.py
antonhoess/sdf_simulator
50c66a90bf7813f8bd92b34b86f123fb90d66062
[ "BSD-3-Clause" ]
null
null
null
type_check.py
antonhoess/sdf_simulator
50c66a90bf7813f8bd92b34b86f123fb90d66062
[ "BSD-3-Clause" ]
null
null
null
import functools class ArgumentValidationError(ValueError): """Raised when the type of an argument to a function is not what it should be.""" def __init__(self, arg_num, func_name, accepted_arg_type): self.error = 'The {0} argument of {1}() is not a {2}'.format(arg_num, func_name, accepted_arg_type) ...
36.518987
121
0.635355
d7367a7d530513ac76410c8b268d1686352b2c6a
127
py
Python
htmlcssapp/views.py
Arkade1984/Django-Project
687d2143171ed5c0db5d37aee7068d24c159fe9b
[ "MIT" ]
1
2021-11-17T06:34:46.000Z
2021-11-17T06:34:46.000Z
htmlcssapp/views.py
Arkade1984/Django-Project
687d2143171ed5c0db5d37aee7068d24c159fe9b
[ "MIT" ]
null
null
null
htmlcssapp/views.py
Arkade1984/Django-Project
687d2143171ed5c0db5d37aee7068d24c159fe9b
[ "MIT" ]
null
null
null
from django.shortcuts import render # Create your views here. def index(request): return render(request, 'index.html')
15.875
41
0.732283
bf140e49c401e52e2bfc35fb10e934cf1192234e
1,435
py
Python
install/scripts/ngs_te_mapper.py
shunhuahan/mcclintock
999f064847e824d41a76791c913e24454ef6cba8
[ "Unlicense" ]
null
null
null
install/scripts/ngs_te_mapper.py
shunhuahan/mcclintock
999f064847e824d41a76791c913e24454ef6cba8
[ "Unlicense" ]
null
null
null
install/scripts/ngs_te_mapper.py
shunhuahan/mcclintock
999f064847e824d41a76791c913e24454ef6cba8
[ "Unlicense" ]
null
null
null
import sys import os sys.path.append(snakemake.config['paths']['mcc_path']) import scripts.mccutils as mccutils def main(): install_path = snakemake.config['paths']['install']+"/tools/" raw_name = "ngs_te_mapper-f9f48996ac346ac86d57edbd00534aa1227b753e" mccutils.remove(snakemake.params.zipfile) downl...
37.763158
130
0.721254
fc84e82b53e5443e9cb0967b2dea3d88bb483a2f
2,796
py
Python
GenerateFeedbackReport/report_generator.py
office-for-students/feedback-api
6f58d7c8de135dc71e5500fcaab71660ca6d7632
[ "MIT" ]
null
null
null
GenerateFeedbackReport/report_generator.py
office-for-students/feedback-api
6f58d7c8de135dc71e5500fcaab71660ca6d7632
[ "MIT" ]
null
null
null
GenerateFeedbackReport/report_generator.py
office-for-students/feedback-api
6f58d7c8de135dc71e5500fcaab71660ca6d7632
[ "MIT" ]
1
2019-09-29T07:04:44.000Z
2019-09-29T07:04:44.000Z
"""Generates a feedback report in CSV format Reads the feedback JSON docs from the CosmosDB feedback container. Tries to fix broken URLs caused by characters being filtered by an earlier version of the Feedback API. Does some formatting e.g., make the date excel friendly. Writes report out in CSV format """ import...
25.189189
77
0.693491
8b46a7be79fcfd589b01d2ac8b6a7fde9cd6f513
87
py
Python
adventure_x/goal11/apps.py
CMPUT401HackathonGoal17/Hackathon2021
de5f9810c10fa1f4ad8a3b9f30ec8f326f527404
[ "MIT" ]
null
null
null
adventure_x/goal11/apps.py
CMPUT401HackathonGoal17/Hackathon2021
de5f9810c10fa1f4ad8a3b9f30ec8f326f527404
[ "MIT" ]
1
2021-01-24T18:56:14.000Z
2021-01-24T18:56:14.000Z
adventure_x/goal11/apps.py
CMPUT401HackathonGoal17/Hackathon2021
de5f9810c10fa1f4ad8a3b9f30ec8f326f527404
[ "MIT" ]
null
null
null
from django.apps import AppConfig class Goal11Config(AppConfig): name = 'goal11'
14.5
33
0.747126
ffa9d4ca846a6de9bcfba3d7f5f97d41bd93cdcd
299
py
Python
torch2trt/converters/ReLU.py
vivanov879/torch2trt
b7e87ca3f1701ee37c2c64bbce3cb10e2d71dccf
[ "MIT" ]
1
2019-09-07T05:15:21.000Z
2019-09-07T05:15:21.000Z
torch2trt/converters/ReLU.py
vivanov879/torch2trt
b7e87ca3f1701ee37c2c64bbce3cb10e2d71dccf
[ "MIT" ]
null
null
null
torch2trt/converters/ReLU.py
vivanov879/torch2trt
b7e87ca3f1701ee37c2c64bbce3cb10e2d71dccf
[ "MIT" ]
1
2020-05-15T08:31:35.000Z
2020-05-15T08:31:35.000Z
from torch2trt.torch2trt import * @tensorrt_converter('torch.nn.ReLU.forward') def convert_ReLU(ctx): input = ctx.method_args[1] output = ctx.method_return layer = ctx.network.add_activation( input=input._trt, type=trt.ActivationType.RELU) output._trt = layer.get_output(0)
29.9
55
0.729097
59dbf8c39c6a1a983a1f5b0a37cc6a52ca7e08cd
1,175
py
Python
src/settings.py
tomice/Blast
8521fb7784fc5269d3d54396f8d89933a78f6de5
[ "MIT" ]
null
null
null
src/settings.py
tomice/Blast
8521fb7784fc5269d3d54396f8d89933a78f6de5
[ "MIT" ]
1
2018-06-19T00:39:40.000Z
2018-06-19T01:40:57.000Z
src/settings.py
tomice/Blast
8521fb7784fc5269d3d54396f8d89933a78f6de5
[ "MIT" ]
null
null
null
class Settings(): """Storage class for Blast settings.""" def __init__(self): """Init game settings.""" self.screen_width = 1200 self.screen_height = 800 self.bg_color = (0, 0, 0) self.ship_limit = 3 self.bullet_width = 3 self.bullet_height = 15 ...
34.558824
70
0.608511
82f24794759158bfb001f5f58e72eda95f1d943b
2,525
py
Python
venv/Lib/site-packages/pygments/styles/friendly.py
EkremBayar/bayar
aad1a32044da671d0b4f11908416044753360b39
[ "MIT" ]
6,989
2017-07-18T06:23:18.000Z
2022-03-31T15:58:36.000Z
venv/Lib/site-packages/pygments/styles/friendly.py
EkremBayar/bayar
aad1a32044da671d0b4f11908416044753360b39
[ "MIT" ]
1,978
2017-07-18T09:17:58.000Z
2022-03-31T14:28:43.000Z
venv/Lib/site-packages/pygments/styles/friendly.py
EkremBayar/bayar
aad1a32044da671d0b4f11908416044753360b39
[ "MIT" ]
1,228
2017-07-18T09:03:13.000Z
2022-03-29T05:57:40.000Z
""" pygments.styles.friendly ~~~~~~~~~~~~~~~~~~~~~~~~ A modern style based on the VIM pyte theme. :copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ from pygments.style import Style from pygments.token import Keyword, Name, Comment, Stri...
34.589041
70
0.454257
833ec98fb7ad7922391c118a542aa4ac21b8ab7f
4,670
py
Python
web/model/model.py
evankanderson/wfd
82528ff70a87c38c1f0fd526dd6cc79f419d9d25
[ "Apache-2.0" ]
1
2021-04-28T17:22:07.000Z
2021-04-28T17:22:07.000Z
web/model/model.py
evankanderson/wfd
82528ff70a87c38c1f0fd526dd6cc79f419d9d25
[ "Apache-2.0" ]
null
null
null
web/model/model.py
evankanderson/wfd
82528ff70a87c38c1f0fd526dd6cc79f419d9d25
[ "Apache-2.0" ]
null
null
null
"""Data model for Serverless Ordering Platform. The model contains ORM classes for managing the Firestore documents which make up the database backend for the Serverless Ordering Platform. Each data model object has a constructor which takes either a DocumentReference or a DocumentSnapshot. If a DocumentReference is p...
29.006211
78
0.601499
f7e043834527d53a993dc0bf5b753d2cb6418243
5,466
py
Python
abyssinica/romanization.py
ebenh/abyssinica
52fa074b8fc0afad729513f56cda5c805212eae1
[ "MIT" ]
null
null
null
abyssinica/romanization.py
ebenh/abyssinica
52fa074b8fc0afad729513f56cda5c805212eae1
[ "MIT" ]
null
null
null
abyssinica/romanization.py
ebenh/abyssinica
52fa074b8fc0afad729513f56cda5c805212eae1
[ "MIT" ]
null
null
null
# Reference: https://www.loc.gov/catdir/cpso/romanization/amharic.pdf _transliteration = { # Syllables 'ሀ': ['ha'], 'ሁ': ['hu'], 'ሂ': ['hi'], 'ሃ': ['hā'], 'ሄ': ['hé'], 'ህ': ['he', 'h'], 'ሆ': ['ho'], 'ለ': ['la'], 'ሉ': ['lu'], 'ሊ': ['li'], 'ላ': ['lā'], 'ሌ': ['lé'], ...
17.862745
69
0.221917
1024c239bbe9f2e5c151f3dbb4c1e5e13b937a9f
405
py
Python
ModelFormsDemo/ModelFormsDemo/wsgi.py
KiralyTamas/Django
d0df4bcffa499c25602e2672c230226440879f6d
[ "MIT" ]
null
null
null
ModelFormsDemo/ModelFormsDemo/wsgi.py
KiralyTamas/Django
d0df4bcffa499c25602e2672c230226440879f6d
[ "MIT" ]
null
null
null
ModelFormsDemo/ModelFormsDemo/wsgi.py
KiralyTamas/Django
d0df4bcffa499c25602e2672c230226440879f6d
[ "MIT" ]
null
null
null
""" WSGI config for ModelFormsDemo project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/4.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANG...
23.823529
78
0.792593
5e06327fb271582a72615784a5a9cbc81528e171
17,678
py
Python
apps/parties_comparator.py
max-lutz/open-data-french-national-assembly
518c81618513a79a88200d392faa53d88c787c94
[ "MIT" ]
null
null
null
apps/parties_comparator.py
max-lutz/open-data-french-national-assembly
518c81618513a79a88200d392faa53d88c787c94
[ "MIT" ]
null
null
null
apps/parties_comparator.py
max-lutz/open-data-french-national-assembly
518c81618513a79a88200d392faa53d88c787c94
[ "MIT" ]
1
2022-02-16T04:02:23.000Z
2022-02-16T04:02:23.000Z
import streamlit as st import pandas as pd import matplotlib import matplotlib.pyplot as plt import seaborn as sns import numpy as np import os from matplotlib.backends.backend_agg import RendererAgg from datetime import date #Loading the data @st.cache def get_data_deputies(): df = pd.read_csv(os.path.join(os.ge...
60.541096
347
0.665234
149607485c1b93cac07db8863bcfd711213422ef
169
py
Python
application/base/settings/local.py
edac-epscor/nmepscor-data-collection-form
41d05b76f0acc5b4f959ae26637e4a37786d7ca5
[ "MIT" ]
1
2020-05-02T15:12:23.000Z
2020-05-02T15:12:23.000Z
application/base/settings/local.py
edac-epscor/nmepscor-data-collection-form
41d05b76f0acc5b4f959ae26637e4a37786d7ca5
[ "MIT" ]
null
null
null
application/base/settings/local.py
edac-epscor/nmepscor-data-collection-form
41d05b76f0acc5b4f959ae26637e4a37786d7ca5
[ "MIT" ]
null
null
null
from .default import * DEBUG = True TEMPLATE_DEBUG = DEBUG COMPRESS_ENABLED = False ########### # LOGGING # ########### LOGGING = getLogDictSchema(stripColors=False)
14.083333
45
0.662722
9b792e8a6a9822fb55a12c36c49ca0c2f9b81a71
5,835
py
Python
hummingbot/connector/derivative/binance_perpetual/binance_perpetual_user_stream_data_source.py
csdenboer/hummingbot
8a799675a325ebdbb74d76b2a44472cdbf74d691
[ "Apache-2.0" ]
4
2021-09-15T02:56:57.000Z
2022-03-01T19:59:19.000Z
hummingbot/connector/derivative/binance_perpetual/binance_perpetual_user_stream_data_source.py
csdenboer/hummingbot
8a799675a325ebdbb74d76b2a44472cdbf74d691
[ "Apache-2.0" ]
8
2020-10-01T05:17:54.000Z
2020-11-09T13:38:19.000Z
hummingbot/connector/derivative/binance_perpetual/binance_perpetual_user_stream_data_source.py
csdenboer/hummingbot
8a799675a325ebdbb74d76b2a44472cdbf74d691
[ "Apache-2.0" ]
3
2021-01-25T00:23:20.000Z
2022-03-21T18:57:33.000Z
import asyncio import logging from typing import Optional, Dict, AsyncIterable import aiohttp import ujson import websockets from websockets import ConnectionClosed from hummingbot.core.data_type.user_stream_tracker_data_source import UserStreamTrackerDataSource from hummingbot.core.utils.async_utils import safe_ensu...
45.944882
118
0.590917
a065bdda990b28aaa980c03a8b4658bb5345da33
17,836
py
Python
ivy/functional/ivy/creation.py
kevinxue1126/ivy
2f26e48fb3bb0e46fb175f76482690bf1f68284a
[ "Apache-2.0" ]
null
null
null
ivy/functional/ivy/creation.py
kevinxue1126/ivy
2f26e48fb3bb0e46fb175f76482690bf1f68284a
[ "Apache-2.0" ]
null
null
null
ivy/functional/ivy/creation.py
kevinxue1126/ivy
2f26e48fb3bb0e46fb175f76482690bf1f68284a
[ "Apache-2.0" ]
null
null
null
# global from typing import Union, Tuple, Optional, List, Iterable from numbers import Number # local import ivy from ivy.framework_handler import current_framework as _cur_framework # Array API Standard # # -------------------# def asarray(x: Union[ivy.Array, ivy.NativeArray], dtype: Optional[Union[iv...
40.352941
149
0.659004
569cdc2b062196b61695c0c8239982263c8d53db
2,685
py
Python
Exec/IsentropicVortex/animate.py
brigaudet/ERF
8277e9bdfff5590f9c208ac3dc9a4f38f1d7f556
[ "BSD-3-Clause-LBNL" ]
3
2020-11-05T19:41:55.000Z
2021-04-23T01:00:17.000Z
Exec/IsentropicVortex/animate.py
brigaudet/ERF
8277e9bdfff5590f9c208ac3dc9a4f38f1d7f556
[ "BSD-3-Clause-LBNL" ]
98
2021-02-03T21:55:22.000Z
2022-03-31T05:14:42.000Z
Exec/IsentropicVortex/animate.py
brigaudet/ERF
8277e9bdfff5590f9c208ac3dc9a4f38f1d7f556
[ "BSD-3-Clause-LBNL" ]
12
2020-11-02T04:55:38.000Z
2021-11-12T22:42:57.000Z
#!/usr/bin/env python import glob import numpy as np import matplotlib.pyplot as plt import yt from isentropic_vortex_helpers import read_input cmaps = { 'density':'viridis', 'temp':'magma', 'x_velocity':'RdBu_r', 'y_velocity':'RdBu_r', } prob_parm = read_input('inputs_ex',prefix='prob.') print('Probl...
32.743902
80
0.590689
516a67fa6e0d47dc036e9b05767e8381f522be47
15,516
py
Python
dl/DLManager.py
cloudpy/iqiyi-parser
294067df5007dbb8d3fccba259b9a6ed6faac854
[ "MIT" ]
1
2018-10-07T04:57:54.000Z
2018-10-07T04:57:54.000Z
dl/DLManager.py
cloudpy/iqiyi-parser
294067df5007dbb8d3fccba259b9a6ed6faac854
[ "MIT" ]
null
null
null
dl/DLManager.py
cloudpy/iqiyi-parser
294067df5007dbb8d3fccba259b9a6ed6faac854
[ "MIT" ]
null
null
null
from progress import * from TaskAssign import TaskAssign import os import socket,ssl import DLInformation # RETRY_WAIT_TIME = 10 # MAX_BUFFER_SIZE = 5 * 1024 * 1024 class DLManager(object): DEFAULT_THREAD_NUM = 5 def __init__(self, urls, file): self.urls = urls self.file = file sel...
34.176211
157
0.527391
e2641a415f7b72f7b8344dd8e3276e899c93ae0d
3,388
py
Python
scripts/egl/library.py
TinkerBoard-Android/external_deqp
fbf76f4e30a964813b9cdfa0dd36dadc25220939
[ "Apache-2.0" ]
2
2019-04-04T12:53:11.000Z
2020-09-01T15:27:15.000Z
scripts/egl/library.py
TinkerBoard-Android/external_deqp
fbf76f4e30a964813b9cdfa0dd36dadc25220939
[ "Apache-2.0" ]
3
2017-10-17T22:38:53.000Z
2018-02-17T02:09:03.000Z
scripts/egl/library.py
TinkerBoard-Android/external_deqp
fbf76f4e30a964813b9cdfa0dd36dadc25220939
[ "Apache-2.0" ]
3
2017-01-21T00:56:25.000Z
2020-10-31T12:00:02.000Z
# -*- coding: utf-8 -*- #------------------------------------------------------------------------- # drawElements Quality Program utilities # -------------------------------------- # # Copyright 2015 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use t...
34.927835
102
0.710153
1e16a15be2d47dba14c7f4142ff88f54b467f5b5
2,103
py
Python
scripts/pineapple/pydwarf.playcivs.py
Charcoal-Apple/PyDwarf
6f2dd294509c83802e06b9ca5e084f89c9fe4bda
[ "Zlib" ]
49
2015-05-21T19:40:41.000Z
2021-09-30T03:04:32.000Z
scripts/pineapple/pydwarf.playcivs.py
Charcoal-Apple/PyDwarf
6f2dd294509c83802e06b9ca5e084f89c9fe4bda
[ "Zlib" ]
6
2015-05-30T01:50:01.000Z
2021-09-22T14:22:41.000Z
scripts/pineapple/pydwarf.playcivs.py
Charcoal-Apple/PyDwarf
6f2dd294509c83802e06b9ca5e084f89c9fe4bda
[ "Zlib" ]
13
2015-05-23T16:26:31.000Z
2021-09-05T18:46:36.000Z
import pydwarf @pydwarf.urist( name = 'pineapple.playcivs.controllable', title = 'Civilizations Playable in Fortress Mode', version = '1.0.0', author = 'Sophie Kirschner', description = '''Makes civilizations playable in fortress mode by adding [SITE_CONTROLLABLE] tokens to them. Defaults...
42.918367
93
0.642416
3a07fdd8bd5fdf36755259a6d697406e9fe83734
580
py
Python
taskbuster/test.py
egrigg9000/taskbuster_boilerplate
fcb0b6a1de67b3f565be594084819dc1850f43b2
[ "MIT" ]
null
null
null
taskbuster/test.py
egrigg9000/taskbuster_boilerplate
fcb0b6a1de67b3f565be594084819dc1850f43b2
[ "MIT" ]
null
null
null
taskbuster/test.py
egrigg9000/taskbuster_boilerplate
fcb0b6a1de67b3f565be594084819dc1850f43b2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django.test import TestCase from django.core.urlresolvers import reverse from django.utils.translation import activate class TestHomePage(TestCase): def test_uses_index_template(self): activate('en') response = self.client.get(reverse("home")) self.assertTempl...
29
66
0.705172
62286bad1c02e7406c7f9eef8c476897b227357e
770
py
Python
noobs/weCar/urls.py
onboardingNoobProjects/weCar
59709fb2661969cc6c24ece619f40fc453d96b64
[ "MIT" ]
null
null
null
noobs/weCar/urls.py
onboardingNoobProjects/weCar
59709fb2661969cc6c24ece619f40fc453d96b64
[ "MIT" ]
1
2018-10-19T10:42:15.000Z
2018-10-19T10:42:15.000Z
noobs/weCar/urls.py
onboardingNoobProjects/weCar
59709fb2661969cc6c24ece619f40fc453d96b64
[ "MIT" ]
null
null
null
from django.conf.urls import url from django.contrib.auth import logout from . import views from django.contrib.auth.views import LoginView, LogoutView urlpatterns = [ # /wecar/ url(r'^$', views.IndexView.as_view(), name='index'), # /wecar/<deal_id> url(r'^(?P<pk>[0-9]+)/$', views.DetailView.as_view(...
27.5
90
0.631169
05180bd7547adb236f65f63b589c7c09d0613932
1,098
py
Python
Project1/code.py
namansh1999/ga-learner-dsb-repo
bd714c22dbe6b78549455068ec0f720b1e5f0424
[ "MIT" ]
null
null
null
Project1/code.py
namansh1999/ga-learner-dsb-repo
bd714c22dbe6b78549455068ec0f720b1e5f0424
[ "MIT" ]
null
null
null
Project1/code.py
namansh1999/ga-learner-dsb-repo
bd714c22dbe6b78549455068ec0f720b1e5f0424
[ "MIT" ]
null
null
null
# -------------- # Code starts here class_1 = ['Geoffrey Hinton','Andrew Ng','Sebastian Raschka','Yoshua Bengio'] class_2 = ['Hilary Mason','Carla Gentry','Corinna Cortes'] new_class = class_1+class_2 print(new_class) new_class.append('Peter Warden') print(new_class) new_class.remove('Carla Gentry') print(new_class) ...
19.263158
77
0.681239
bbb9d0c35c7c69e00b158cad9e7b02261c854cf6
4,535
py
Python
lilith/lilith_utils.py
ykerus/transit-detection-rnn
36108fad481a6c68c3e2d972ba967177ce80d8f6
[ "MIT" ]
1
2021-06-29T10:30:00.000Z
2021-06-29T10:30:00.000Z
lilith/lilith_utils.py
ykerus/transit-detection-rnn
36108fad481a6c68c3e2d972ba967177ce80d8f6
[ "MIT" ]
null
null
null
lilith/lilith_utils.py
ykerus/transit-detection-rnn
36108fad481a6c68c3e2d972ba967177ce80d8f6
[ "MIT" ]
null
null
null
import os import numpy as np import pickle import utils def get_pl_data(path_to_gt, sampleids): pl_data = np.loadtxt(path_to_gt +"/tsop301_planet_data.txt") pl_sampleids = pl_data[:,0].astype("int") pl_num = pl_data[:,1].astype("int") pl_orb_period = pl_data[:,2] pl_t0 = pl_data[:,3] pl_r...
35.992063
107
0.626902
0fd82c9aedf3f3ed5857089183de79a4bb70a18f
4,308
py
Python
web/conceptnet_web/api.py
GeekLiB/CommonSense
b65aa31cb9451eb2c4fcd91054def8373aa7de9b
[ "Apache-2.0" ]
1
2018-12-02T14:10:42.000Z
2018-12-02T14:10:42.000Z
web/conceptnet_web/api.py
GeekLiB/CommonSense
b65aa31cb9451eb2c4fcd91054def8373aa7de9b
[ "Apache-2.0" ]
null
null
null
web/conceptnet_web/api.py
GeekLiB/CommonSense
b65aa31cb9451eb2c4fcd91054def8373aa7de9b
[ "Apache-2.0" ]
null
null
null
""" This file sets up Flask to serve the ConceptNet 5 API in JSON-LD format. """ from conceptnet_web.json_rendering import jsonify, highlight_and_link_json from conceptnet_web import responses from conceptnet_web.responses import VALID_KEYS, error from conceptnet_web.filters import FILTERS from conceptnet5.nodes import...
30.338028
154
0.691968
3066274abf1ce92ac6038a55e0d115d5fdbed808
338
py
Python
setup.py
Teledyne-Marine/Wayfinder
f6c6c9508b6f55a4e163b5a7f952ebb6aed18790
[ "MIT" ]
5
2020-11-02T19:22:23.000Z
2021-12-28T00:57:15.000Z
setup.py
Teledyne-Marine/Wayfinder
f6c6c9508b6f55a4e163b5a7f952ebb6aed18790
[ "MIT" ]
2
2021-12-28T01:12:46.000Z
2022-02-16T21:36:02.000Z
setup.py
Teledyne-Marine/Wayfinder
f6c6c9508b6f55a4e163b5a7f952ebb6aed18790
[ "MIT" ]
5
2020-12-14T22:30:50.000Z
2022-02-13T13:06:21.000Z
from setuptools import setup, find_packages import dvl setup( name="dvl", version=dvl.__version__, author="trdi", author_email="rdifs@teledyne.com", url="http://www.teledynemarine.com/rdi/", packages=find_packages(), python_requires=">=3.6", install_requires=[ "pyserial", ...
19.882353
45
0.636095
986b4e6366f9aaa896c65242e6aca39c39253ff4
1,489
py
Python
advancing_hero/sprites/collectable/potion_heal.py
EnzoVargasM/advancing-hero
ebf79ebe22b839c0f495e772a0058c51e2a28dc9
[ "MIT" ]
null
null
null
advancing_hero/sprites/collectable/potion_heal.py
EnzoVargasM/advancing-hero
ebf79ebe22b839c0f495e772a0058c51e2a28dc9
[ "MIT" ]
null
null
null
advancing_hero/sprites/collectable/potion_heal.py
EnzoVargasM/advancing-hero
ebf79ebe22b839c0f495e772a0058c51e2a28dc9
[ "MIT" ]
null
null
null
import os from ..sprite import Sprite import pygame class PotionHeal(Sprite): """ Represents a potion to heal the hero """ def __init__( self, position, screen, path: str = 'advancing_hero/images/sprites/potion_heal/', ) -> None: super().__init__(path=os.pat...
30.387755
79
0.588986
4b08492ee9fcd92a142fcde4966cd368d8ecb74b
24,379
py
Python
pymongo/encryption.py
infinite-skx/mongo-python-driver
bdafc357331813222b1e677b66041dad1fc852a5
[ "Apache-2.0" ]
null
null
null
pymongo/encryption.py
infinite-skx/mongo-python-driver
bdafc357331813222b1e677b66041dad1fc852a5
[ "Apache-2.0" ]
1
2021-12-24T11:32:17.000Z
2021-12-24T11:32:17.000Z
pymongo/encryption.py
infinite-skx/mongo-python-driver
bdafc357331813222b1e677b66041dad1fc852a5
[ "Apache-2.0" ]
null
null
null
# Copyright 2019-present MongoDB, 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 wri...
40.163097
97
0.630502
7a5b2670c592693cf65dc5dc7ab6fe3a243ccd42
4,369
py
Python
aiohomekit/controller/ip/discovery.py
adrum/aiohomekit
91ca4bcba5f9b196ca1ba49784836afe8a656dab
[ "Apache-2.0" ]
null
null
null
aiohomekit/controller/ip/discovery.py
adrum/aiohomekit
91ca4bcba5f9b196ca1ba49784836afe8a656dab
[ "Apache-2.0" ]
null
null
null
aiohomekit/controller/ip/discovery.py
adrum/aiohomekit
91ca4bcba5f9b196ca1ba49784836afe8a656dab
[ "Apache-2.0" ]
null
null
null
# # Copyright 2019 aiohomekit 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 law or agreed to in writ...
32.362963
87
0.618906
710fd8c3a7f3b90922eaefe9f0c6be443424181d
3,464
py
Python
modules/auto_split/splitter/pytorch_splitter.py
sophon-ai-algo/sophon-inference
f923413b76615e265af28fd1dd2b43e5eb303dcd
[ "Apache-2.0" ]
18
2020-02-21T03:06:33.000Z
2022-03-21T03:41:56.000Z
modules/auto_split/splitter/pytorch_splitter.py
sophon-ai-algo/sophon-inference
f923413b76615e265af28fd1dd2b43e5eb303dcd
[ "Apache-2.0" ]
null
null
null
modules/auto_split/splitter/pytorch_splitter.py
sophon-ai-algo/sophon-inference
f923413b76615e265af28fd1dd2b43e5eb303dcd
[ "Apache-2.0" ]
6
2020-07-10T08:55:38.000Z
2021-12-28T01:36:04.000Z
""" Copyright 2016-2022 by Bitmain Technologies Inc. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applica...
31.779817
73
0.711316
7aba2872f49b86d479a97b29344655a50741b43c
5,855
py
Python
dynatrace/main.py
hashmibilaldt/api-client-python
910008a4c6800a547535acba79b7a49e540b5d16
[ "Apache-2.0" ]
null
null
null
dynatrace/main.py
hashmibilaldt/api-client-python
910008a4c6800a547535acba79b7a49e540b5d16
[ "Apache-2.0" ]
null
null
null
dynatrace/main.py
hashmibilaldt/api-client-python
910008a4c6800a547535acba79b7a49e540b5d16
[ "Apache-2.0" ]
null
null
null
""" Copyright 2021 Dynatrace LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software ...
55.235849
154
0.805465
de693bd2be69846c44a26b605d8ead26191ab6ce
16,227
py
Python
pyecowitt/ecowitt.py
LinHongFa/ecowitt_dev
e8aa6285d56056fc2d5901f8d127db6659624631
[ "Apache-2.0" ]
6
2020-06-19T23:17:54.000Z
2022-02-07T05:35:36.000Z
pyecowitt/ecowitt.py
LinHongFa/ecowitt_dev
e8aa6285d56056fc2d5901f8d127db6659624631
[ "Apache-2.0" ]
4
2020-06-01T13:57:28.000Z
2021-11-14T18:08:55.000Z
pyecowitt/ecowitt.py
LinHongFa/ecowitt_dev
e8aa6285d56056fc2d5901f8d127db6659624631
[ "Apache-2.0" ]
4
2020-06-01T10:27:00.000Z
2021-12-15T19:49:37.000Z
""" Setup a bone simple webserver, listen to POST's from a device like a GW1000 or in my case, HP3501, decode results. """ import asyncio from aiohttp import web import logging import math import time from .sensor_map import ( EcoWittSensorTypes, MAP_NAME as MAP_NAME, MAP_SYSTEM as MAP_SYSTEM, MAP_STY...
34.090336
102
0.522339
50dbb181a588e9ff85e6a349cab2f9ca8a9e78ee
6,491
py
Python
laikaboss/modules/explode_hexascii.py
sandialabs/laikaboss
3064ac1176911651d61c5176e9bd83eacec36b16
[ "Apache-2.0" ]
2
2019-11-02T23:40:23.000Z
2019-12-01T22:24:57.000Z
laikaboss/modules/explode_hexascii.py
sandialabs/laikaboss
3064ac1176911651d61c5176e9bd83eacec36b16
[ "Apache-2.0" ]
null
null
null
laikaboss/modules/explode_hexascii.py
sandialabs/laikaboss
3064ac1176911651d61c5176e9bd83eacec36b16
[ "Apache-2.0" ]
3
2017-08-09T23:58:40.000Z
2019-12-01T22:25:06.000Z
#!/usr/bin/env python # Copyright 2020 National Technology & Engineering Solutions of Sandia, LLC # (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S. # Government retains certain rights in this software. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this fi...
36.672316
130
0.627022
7c3dca91ce4e94f1e8c4ba9b634659a8cd3e9773
7,381
py
Python
split_coco_dataset.py
lizhogn/tiny_coco_dataset
68523ddd6c27f9ba5d2f0caf7f6fe95cc2c99311
[ "MIT" ]
null
null
null
split_coco_dataset.py
lizhogn/tiny_coco_dataset
68523ddd6c27f9ba5d2f0caf7f6fe95cc2c99311
[ "MIT" ]
null
null
null
split_coco_dataset.py
lizhogn/tiny_coco_dataset
68523ddd6c27f9ba5d2f0caf7f6fe95cc2c99311
[ "MIT" ]
null
null
null
# coding:utf8 __first_version_author__ = 'tylin' __second_version_author__ = 'wfnian' # Interface for accessing the Microsoft COCO dataset. # Microsoft COCO Toolbox. version 2.0 # Data, paper, and tutorials available at: http://mscoco.org/ # Code written by Piotr Dollar and Tsung-Yi Lin, 2014. # Licensed under the ...
49.536913
1,188
0.573906
2861fa63ef207a430d5534988d0afbc60a749715
659
py
Python
143/main.py
pauvrepetit/leetcode
6ad093cf543addc4dfa52d72a8e3c0d05a23b771
[ "MIT" ]
null
null
null
143/main.py
pauvrepetit/leetcode
6ad093cf543addc4dfa52d72a8e3c0d05a23b771
[ "MIT" ]
null
null
null
143/main.py
pauvrepetit/leetcode
6ad093cf543addc4dfa52d72a8e3c0d05a23b771
[ "MIT" ]
null
null
null
# 143. 重排链表 # # 20210730 # huao class ListNode: def __init__(self, val=0, next=None): self.val = val self.next = next class Solution: def reorderList(self, head: ListNode) -> None: node_list = [] begin = head while begin != None: node_list.append(begin) ...
23.535714
54
0.509863
09b5c94ff4ffd47ef875625dbdbe1c7aba46dcd6
10,699
py
Python
runRCNN.py
yoyoyin0902/Mask_RCNN
ef704b1359a3c6ecf9decf2553fa0258104bdc4b
[ "MIT" ]
null
null
null
runRCNN.py
yoyoyin0902/Mask_RCNN
ef704b1359a3c6ecf9decf2553fa0258104bdc4b
[ "MIT" ]
null
null
null
runRCNN.py
yoyoyin0902/Mask_RCNN
ef704b1359a3c6ecf9decf2553fa0258104bdc4b
[ "MIT" ]
null
null
null
import os import sys import random import math import re import time import numpy as np import cv2 import matplotlib import matplotlib.pyplot as plt import tensorflow as tf from mrcnn.config import Config #import utils from mrcnn import model as modellib,utils from mrcnn import visualize import yaml from mrcnn.model im...
34.850163
117
0.625292
457aafbc3dababd2b3f1c3a06be0d2567dd9858f
1,861
py
Python
race_xone_controller.py
bnoleto/freePie_scripts
78b26457520362779c3142dfd99f2f52c828ba2e
[ "MIT" ]
1
2021-01-21T12:53:37.000Z
2021-01-21T12:53:37.000Z
race_xone_controller.py
bnoleto/freePie_scripts
78b26457520362779c3142dfd99f2f52c828ba2e
[ "MIT" ]
1
2021-01-21T12:47:47.000Z
2021-01-21T12:49:09.000Z
race_xone_controller.py
bnoleto/freePie_scripts
78b26457520362779c3142dfd99f2f52c828ba2e
[ "MIT" ]
null
null
null
if starting: system.setThreadTiming(TimingTypes.HighresSystemTimer) system.threadExecutionInterval = 0.5 def reducao(entrada): reducao_centro = 45.0 if entrada >= 0: return reducao_centro ** (1-(entrada/16383)) else: return reducao_centro ** (1-(entrada/-16383)) def reducao2(entrada): coeficiente =...
23.556962
65
0.71252
e9aa422e7e7e98b079fb2a1ba2a3d667c7c7281a
5,179
py
Python
sdk/python/pulumi_azure_native/containerservice/v20210801/get_maintenance_configuration.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/containerservice/v20210801/get_maintenance_configuration.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/containerservice/v20210801/get_maintenance_configuration.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 fro...
38.362963
172
0.665959
638406e9ff5d93e64b0c54ce011ba5639caa411c
339
py
Python
backend/restaurants/validators.py
praszuk/GdzieJedzonko
47d8e764ea9d472e23313296e08777898503388c
[ "MIT" ]
1
2020-06-28T18:26:28.000Z
2020-06-28T18:26:28.000Z
backend/restaurants/validators.py
praszuk/GdzieJedzonko
47d8e764ea9d472e23313296e08777898503388c
[ "MIT" ]
null
null
null
backend/restaurants/validators.py
praszuk/GdzieJedzonko
47d8e764ea9d472e23313296e08777898503388c
[ "MIT" ]
null
null
null
from django.core.exceptions import ValidationError def validate_lat(lat): lat = float(lat) if lat < -90 or lat > 90: raise ValidationError('Latitude must be between -90, 90') def validate_lon(lon): lon = float(lon) if lon < -180 or lon > 180: raise ValidationError('Latitude must be b...
24.214286
67
0.663717
66a35bea06b93ab278168473fe1a3510aeccca17
29,219
py
Python
tests/integration/test_row_policy/test.py
pdv-ru/ClickHouse
0ff975bcf3008fa6c6373cbdfed16328e3863ec5
[ "Apache-2.0" ]
5
2019-07-29T02:09:56.000Z
2020-03-19T19:05:44.000Z
tests/integration/test_row_policy/test.py
pdv-ru/ClickHouse
0ff975bcf3008fa6c6373cbdfed16328e3863ec5
[ "Apache-2.0" ]
30
2021-10-01T00:08:14.000Z
2021-12-06T13:13:12.000Z
tests/integration/test_row_policy/test.py
pdv-ru/ClickHouse
0ff975bcf3008fa6c6373cbdfed16328e3863ec5
[ "Apache-2.0" ]
1
2022-03-19T17:31:29.000Z
2022-03-19T17:31:29.000Z
import os import re import time import pytest from helpers.cluster import ClickHouseCluster from helpers.test_tools import assert_eq_with_retry, TSV cluster = ClickHouseCluster(__file__) node = cluster.add_instance('node', main_configs=["configs/config.d/remote_servers.xml"], user_configs=...
63.519565
177
0.647935
faf12e1c4a4664278f71223fd239d522aa01c69f
7,337
py
Python
pyapprox/univariate_polynomials/recursion_factory.py
ConnectedSystems/pyapprox
4f405654c707cba83d211f327c0f0fdbc95efa29
[ "MIT" ]
26
2019-12-16T02:21:15.000Z
2022-03-17T09:59:18.000Z
pyapprox/univariate_polynomials/recursion_factory.py
ConnectedSystems/pyapprox
4f405654c707cba83d211f327c0f0fdbc95efa29
[ "MIT" ]
9
2020-03-03T03:04:55.000Z
2021-08-19T22:50:42.000Z
pyapprox/univariate_polynomials/recursion_factory.py
ConnectedSystems/pyapprox
4f405654c707cba83d211f327c0f0fdbc95efa29
[ "MIT" ]
7
2020-03-02T03:49:17.000Z
2021-02-17T02:07:53.000Z
import numpy as np from warnings import warn from pyapprox.univariate_polynomials.orthonormal_recursions import \ jacobi_recurrence, hermite_recurrence, krawtchouk_recurrence, \ hahn_recurrence, charlier_recurrence from pyapprox.univariate_polynomials.numeric_orthonormal_recursions import \ predictor_corre...
39.446237
79
0.676298
75600dba29513bcc21fdb4c7a79884f7addf56c7
5,181
py
Python
venv/lib/python3.6/site-packages/mypy/fscache.py
ostar0816/mc-crypto
80ad9896aed1dc952f819a404a458ccfad207d8e
[ "MIT" ]
4
2018-10-19T04:36:20.000Z
2020-02-13T16:14:09.000Z
venv/lib/python3.6/site-packages/mypy/fscache.py
ostar0816/mc-crypto
80ad9896aed1dc952f819a404a458ccfad207d8e
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/mypy/fscache.py
ostar0816/mc-crypto
80ad9896aed1dc952f819a404a458ccfad207d8e
[ "MIT" ]
null
null
null
"""Interface for accessing the file system with automatic caching. The idea is to cache the results of any file system state reads during a single transaction. This has two main benefits: * This avoids redundant syscalls, as we won't perform the same OS operations multiple times. * This makes it easier to reason a...
33.425806
80
0.630573
04e315ff8f0467e2dd128e19543cebad97de511c
4,421
py
Python
selfdrive/car/subaru/carcontroller.py
Quocuong83/openpilot
67a0cd2797a4f04ab547f51171ef6dc5726a5c23
[ "MIT" ]
null
null
null
selfdrive/car/subaru/carcontroller.py
Quocuong83/openpilot
67a0cd2797a4f04ab547f51171ef6dc5726a5c23
[ "MIT" ]
null
null
null
selfdrive/car/subaru/carcontroller.py
Quocuong83/openpilot
67a0cd2797a4f04ab547f51171ef6dc5726a5c23
[ "MIT" ]
null
null
null
from selfdrive.car import apply_std_steer_torque_limits from selfdrive.car.subaru import subarucan from selfdrive.car.subaru.values import DBC, PREGLOBAL_CARS from opendbc.can.packer import CANPacker from common.dp_common import common_controller_ctrl class CarControllerParams(): def __init__(self): self.STEER_...
39.828829
126
0.679937
d7a695292732a6db8fb3089b39eff27d38be3210
1,689
py
Python
src/matlab2py/matlab.py
GEbb4/matlab2py
0522fc75c30d52dd724259df0f29f51a2b7219fe
[ "MIT" ]
null
null
null
src/matlab2py/matlab.py
GEbb4/matlab2py
0522fc75c30d52dd724259df0f29f51a2b7219fe
[ "MIT" ]
null
null
null
src/matlab2py/matlab.py
GEbb4/matlab2py
0522fc75c30d52dd724259df0f29f51a2b7219fe
[ "MIT" ]
null
null
null
""" Functions with MATLAB-compatible signatures. """ from matlab2py.handles import FigureHandlesArray, FigureHandle # All of the figure handles. HANDLES = FigureHandlesArray() groot = HANDLES[0] def axes(fig): """Add an axes to fig.""" fig.add_axes() def figure(*args): """ Create a new figure or ma...
23.136986
74
0.579633
74ce0693362f8f3f840b7eddb22f4536191f9e44
14,070
py
Python
contrib/gitian-build.py
umbru/umbru-core
cd31fadf0cb02e05e6dd7b4f438e2d2600935ad3
[ "MIT" ]
2
2019-08-30T21:18:30.000Z
2019-09-17T13:21:34.000Z
contrib/gitian-build.py
umbru/umbru-core
cd31fadf0cb02e05e6dd7b4f438e2d2600935ad3
[ "MIT" ]
null
null
null
contrib/gitian-build.py
umbru/umbru-core
cd31fadf0cb02e05e6dd7b4f438e2d2600935ad3
[ "MIT" ]
2
2019-09-15T05:45:52.000Z
2022-01-04T03:50:43.000Z
#!/usr/bin/env python3 import argparse import os import subprocess import sys def setup(): global args, workdir programs = ['ruby', 'git', 'make', 'wget'] if args.lxc: programs += ['apt-cacher-ng', 'lxc', 'debootstrap'] elif args.kvm: programs += ['apt-cacher-ng', 'python-vm-builder', ...
58.140496
229
0.653092
830e24209d863da30cb6abb18f5d2c2646fad2f4
2,527
py
Python
pytest_jupyter/jupyter_core.py
minrk/pytest-jupyter
2e25d3223728f2ae5e7ee292408e2639872fdf35
[ "BSD-3-Clause-Clear" ]
null
null
null
pytest_jupyter/jupyter_core.py
minrk/pytest-jupyter
2e25d3223728f2ae5e7ee292408e2639872fdf35
[ "BSD-3-Clause-Clear" ]
null
null
null
pytest_jupyter/jupyter_core.py
minrk/pytest-jupyter
2e25d3223728f2ae5e7ee292408e2639872fdf35
[ "BSD-3-Clause-Clear" ]
null
null
null
# Copyright (c) Jupyter Development Team. # Distributed under the terms of the Modified BSD License. import jupyter_core.paths import os import pytest import sys from .utils import mkdir @pytest.fixture def jp_home_dir(tmp_path): """Provides a temporary HOME directory value.""" return mkdir(tmp_path, "home"...
28.715909
94
0.734072
0f1bb9bfbcbe04e91bc43f82d774200622373dd3
5,471
py
Python
sdk/python/pulumi_aws/dms/certificate.py
dixler/pulumi-aws
88838ed6d412c092717a916b0b5b154f68226c3a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/dms/certificate.py
dixler/pulumi-aws
88838ed6d412c092717a916b0b5b154f68226c3a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/dms/certificate.py
dixler/pulumi-aws
88838ed6d412c092717a916b0b5b154f68226c3a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import json import warnings import pulumi import pulumi.runtime from typing import Union from .. import utilities, tables class Certif...
53.116505
180
0.700969
a342cea06b4fa1ff42b1dc40b82aad6e55f684a8
1,385
py
Python
mayan/apps/bootstrap/migrations/0002_auto__add_field_bootstrapsetup_created.py
Dave360-crypto/mayan-edms
9cd37537461347f79ff0429e4b8b16fd2446798d
[ "Apache-2.0" ]
3
2020-02-03T11:58:51.000Z
2020-10-20T03:52:21.000Z
mayan/apps/bootstrap/migrations/0002_auto__add_field_bootstrapsetup_created.py
Dave360-crypto/mayan-edms
9cd37537461347f79ff0429e4b8b16fd2446798d
[ "Apache-2.0" ]
null
null
null
mayan/apps/bootstrap/migrations/0002_auto__add_field_bootstrapsetup_created.py
Dave360-crypto/mayan-edms
9cd37537461347f79ff0429e4b8b16fd2446798d
[ "Apache-2.0" ]
2
2020-10-24T11:10:06.000Z
2021-03-03T20:05:38.000Z
# -*- coding: utf-8 -*- from south.utils import datetime_utils as 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 'BootstrapSetup.created' db.add_column('bootstrap_bootstra...
41.969697
122
0.602166
01f860ffb5c0750a4a33e5c10489eff19991ba91
2,384
py
Python
test/test_all_contact_info_on_the_home_page.py
Kras39/Python_training
0b643b9a23969dffe991f1b077f7cb3eeb180c5e
[ "Apache-2.0" ]
null
null
null
test/test_all_contact_info_on_the_home_page.py
Kras39/Python_training
0b643b9a23969dffe991f1b077f7cb3eeb180c5e
[ "Apache-2.0" ]
null
null
null
test/test_all_contact_info_on_the_home_page.py
Kras39/Python_training
0b643b9a23969dffe991f1b077f7cb3eeb180c5e
[ "Apache-2.0" ]
null
null
null
import re from random import randrange from model.contact import Contact # Проверка информации по некоторому (случайному) контакту из списка def test_all_contact_info_on_the_home_page(app, json_contact): contact = json_contact if app.contact.count() == 0: app.contact.create(contact) index = randra...
52.977778
117
0.745805
eec677705b5bf699f5863eff762a4c0d97dda95b
67,847
py
Python
groclient/client.py
eric-gro/api-client
0ca73422c25b5065907d068a44b72bdc43fea79f
[ "MIT" ]
null
null
null
groclient/client.py
eric-gro/api-client
0ca73422c25b5065907d068a44b72bdc43fea79f
[ "MIT" ]
null
null
null
groclient/client.py
eric-gro/api-client
0ca73422c25b5065907d068a44b72bdc43fea79f
[ "MIT" ]
null
null
null
from __future__ import print_function from functools import partial import itertools import json import os import time # Python3 support try: # Python3 from urllib.parse import urlencode except ImportError: # Python2 from urllib import urlencode from groclient import cfg, lib from groclient.constants ...
39.607122
219
0.558094
b06dc8d6d4efad2f85960596d5b86e9196a5733c
7,308
py
Python
tools/mo/unit_tests/mo/ops/regionyolo_test.py
ryanloney/openvino-1
4e0a740eb3ee31062ba0df88fcf438564f67edb7
[ "Apache-2.0" ]
1,127
2018-10-15T14:36:58.000Z
2020-04-20T09:29:44.000Z
tools/mo/unit_tests/mo/ops/regionyolo_test.py
ryanloney/openvino-1
4e0a740eb3ee31062ba0df88fcf438564f67edb7
[ "Apache-2.0" ]
439
2018-10-20T04:40:35.000Z
2020-04-19T05:56:25.000Z
tools/mo/unit_tests/mo/ops/regionyolo_test.py
ryanloney/openvino-1
4e0a740eb3ee31062ba0df88fcf438564f67edb7
[ "Apache-2.0" ]
414
2018-10-17T05:53:46.000Z
2020-04-16T17:29:53.000Z
# Copyright (C) 2018-2022 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import unittest import numpy as np from openvino.tools.mo.ops.regionyolo import RegionYoloOp from openvino.tools.mo.front.common.extractors.utils import layout_attrs from openvino.tools.mo.front.common.partial_infer.utils import shape_...
48.078947
123
0.470717
9b6a5108946cb98eb82c6b00b213c12b2c0e2430
1,373
py
Python
venv/lib/python3.8/site-packages/vsts/task_agent/v4_1/models/service_endpoint_request_result.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/vsts/task_agent/v4_1/models/service_endpoint_request_result.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/vsts/task_agent/v4_1/models/service_endpoint_request_result.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
2
2021-05-23T16:46:31.000Z
2021-05-26T23:51:09.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -----------------------------------------------------------------...
40.382353
95
0.528769
b81d0a8196154dc77cf1a585069c0dc32099eefe
4,935
py
Python
ymir/mixins/_fabric.py
mattvonrocketstein/ymir
a16117ec64c60ec52b0daa3b19eb711ec42b5070
[ "MIT" ]
3
2015-10-14T04:07:28.000Z
2017-09-09T11:12:51.000Z
ymir/mixins/_fabric.py
mattvonrocketstein/ymir
a16117ec64c60ec52b0daa3b19eb711ec42b5070
[ "MIT" ]
36
2015-05-07T11:46:32.000Z
2021-09-23T23:20:56.000Z
ymir/mixins/_fabric.py
mattvonrocketstein/ymir
a16117ec64c60ec52b0daa3b19eb711ec42b5070
[ "MIT" ]
3
2016-01-05T17:04:07.000Z
2016-03-14T09:08:22.000Z
# -*- coding: utf-8 -*- """ ymir.mixins._fabric """ import time import webbrowser from fabric import api from peak.util.imports import lazyModule from ymir import util from ymir import checks as ychecks from ymir import data as ydata yapi = lazyModule('ymir.api') class FabricMixin(object): @util.declare_opera...
35.25
76
0.583181
700cb5f58e6a57631c127c1cc7c4886b6a11482f
4,719
py
Python
qt_dialog/src/JSFGTools/JSGFGrammar.py
AIRobolab-unilu/qt-dialog
d6a7538458f56efc6b8005f8611c9a28b1f2c25d
[ "MIT" ]
null
null
null
qt_dialog/src/JSFGTools/JSGFGrammar.py
AIRobolab-unilu/qt-dialog
d6a7538458f56efc6b8005f8611c9a28b1f2c25d
[ "MIT" ]
null
null
null
qt_dialog/src/JSFGTools/JSGFGrammar.py
AIRobolab-unilu/qt-dialog
d6a7538458f56efc6b8005f8611c9a28b1f2c25d
[ "MIT" ]
1
2018-07-24T09:15:06.000Z
2018-07-24T09:15:06.000Z
# -*- coding: utf-8 -*- #!/usr/bin/env python # @copyright: MIT License # Copyright (c) 2018 syntactic (Pastèque Ho) # 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 restrictio...
27.277457
94
0.617716
613baec7efcb6a2041c54eeefa13c6189e9f6991
164
py
Python
astra_env.py
mathewjhan/hackumass2020
9ec8308ef77d29408863c156c3dcee7a82c79352
[ "MIT" ]
null
null
null
astra_env.py
mathewjhan/hackumass2020
9ec8308ef77d29408863c156c3dcee7a82c79352
[ "MIT" ]
null
null
null
astra_env.py
mathewjhan/hackumass2020
9ec8308ef77d29408863c156c3dcee7a82c79352
[ "MIT" ]
1
2021-01-05T00:08:59.000Z
2021-01-05T00:08:59.000Z
ASTRA_DB_ID='2e739356-b1aa-4645-a4ca-90f4097f692c' ASTRA_DB_REGION='us-east1' ASTRA_DB_USERNAME='rmren' ASTRA_DB_KEYSPACE='keyname' ASTRA_DB_PASSWORD='password'
18.222222
50
0.829268
f2884c976a03a6ecc86714f1a51a22a7e5740c19
13,135
py
Python
dali/python/nvidia/dali/plugin/pytorch.py
haoxintong/DALI
064eda29fc8b41973639ac2f1955b25bad504f5e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
dali/python/nvidia/dali/plugin/pytorch.py
haoxintong/DALI
064eda29fc8b41973639ac2f1955b25bad504f5e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
dali/python/nvidia/dali/plugin/pytorch.py
haoxintong/DALI
064eda29fc8b41973639ac2f1955b25bad504f5e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright (c) 2017-2019, NVIDIA CORPORATION. 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 a...
42.646104
113
0.60434
af249b22916f03a5aab36cbac9e9276c8acd485a
2,460
py
Python
movo_common/movo_third_party/executive_smach/smach_ros/src/smach_ros/__init__.py
zkytony/kinova-movo
37d7454b2dc589d44133f3913f567b9cc321a66d
[ "BSD-3-Clause" ]
2
2019-12-07T20:45:15.000Z
2019-12-25T01:21:32.000Z
movo_common/movo_third_party/executive_smach/smach_ros/src/smach_ros/__init__.py
ALAN-NUS/kinova_movo
05a0451f5c563359ae0ffe3280e1df85caec9e55
[ "BSD-3-Clause" ]
1
2021-07-08T10:26:06.000Z
2021-07-08T10:31:11.000Z
movo_common/movo_third_party/executive_smach/smach_ros/src/smach_ros/__init__.py
ALAN-NUS/kinova_movo
05a0451f5c563359ae0ffe3280e1df85caec9e55
[ "BSD-3-Clause" ]
1
2020-01-21T11:05:24.000Z
2020-01-21T11:05:24.000Z
# Copyright (c) 2010, Willow Garage, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright # notice, this list of co...
39.047619
77
0.763008
e3a7a1639dafccc2d397688d955ee758ce1a2f15
3,665
py
Python
formfactory/admin.py
AltusBarry/django-formfactory
8da378d0952bfd0eb9a08d49b17b5b95ee7e607d
[ "BSD-3-Clause" ]
null
null
null
formfactory/admin.py
AltusBarry/django-formfactory
8da378d0952bfd0eb9a08d49b17b5b95ee7e607d
[ "BSD-3-Clause" ]
null
null
null
formfactory/admin.py
AltusBarry/django-formfactory
8da378d0952bfd0eb9a08d49b17b5b95ee7e607d
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import admin from formfactory import forms, models, utils class FieldChoiceModelAdmin(admin.ModelAdmin): form = forms.FieldChoiceAdminForm model = models.FieldChoice class FormActionParamInline(admin.StackedInline): form = forms.ActionParamAdminForm model = models.ActionParam ...
29.32
69
0.788813
00cda85c88bc4418b8c55b9854d1df568290b615
3,250
py
Python
programs/genesis_util/prefix_accounts.py
techsharesteam/techshares
47c58630a578204147057b7504e571e19546444f
[ "MIT" ]
null
null
null
programs/genesis_util/prefix_accounts.py
techsharesteam/techshares
47c58630a578204147057b7504e571e19546444f
[ "MIT" ]
null
null
null
programs/genesis_util/prefix_accounts.py
techsharesteam/techshares
47c58630a578204147057b7504e571e19546444f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import argparse import json import sys def dump_json(obj, out, pretty): if pretty: json.dump(obj, out, indent=2, sort_keys=True) else: json.dump(obj, out, separators=(",", ":"), sort_keys=True) return def main(): parser = argparse.ArgumentParser(de...
36.931818
112
0.603077
e54ea0cda5b076f501c2ea26170fd89295d46732
4,690
py
Python
webresume/webresume/settings.py
cmput401-fall2018/web-app-ci-cd-with-travis-ci-Z-Red
02728f8eb7e0e206d24c314bfcad92811302ef81
[ "MIT" ]
null
null
null
webresume/webresume/settings.py
cmput401-fall2018/web-app-ci-cd-with-travis-ci-Z-Red
02728f8eb7e0e206d24c314bfcad92811302ef81
[ "MIT" ]
6
2020-02-11T23:13:36.000Z
2021-09-08T00:35:06.000Z
webresume/webresume/settings.py
cmput401-fall2018/web-app-ci-cd-with-travis-ci-Z-Red
02728f8eb7e0e206d24c314bfcad92811302ef81
[ "MIT" ]
null
null
null
""" Django settings for webresume project. Generated by 'django-admin startproject' using Django 2.1.1. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os ...
29.496855
91
0.704051
126f98d509d0d2e88b003b7647a76a32b85bd2ca
2,240
py
Python
test.py
fherdom/GrafcanProductExporter
21227dcd9ab946c57d941a4869cc0310c68ff3c1
[ "Apache-2.0" ]
null
null
null
test.py
fherdom/GrafcanProductExporter
21227dcd9ab946c57d941a4869cc0310c68ff3c1
[ "Apache-2.0" ]
null
null
null
test.py
fherdom/GrafcanProductExporter
21227dcd9ab946c57d941a4869cc0310c68ff3c1
[ "Apache-2.0" ]
null
null
null
# layer = iface.mapCanvas().currentLayer() import processing import timeit from PyQt4.QtGui import QProgressDialog from PyQt4.QtCore import QSettings bar = QProgressDialog() bar.show() bar.setRange(0, 0) layer = iface.activeLayer() print("numFeatures", layer.selectedFeatureCount()) request = QgsFeatureRequest().se...
20.363636
76
0.665625
339789e618dfa7067c231aaa02e67aff8a0e08f7
51,401
py
Python
pycaret/clustering.py
sharlalka0805/pycaret-1
3753889342f8a55d080c94cddbbc4e4fac7affc6
[ "MIT" ]
null
null
null
pycaret/clustering.py
sharlalka0805/pycaret-1
3753889342f8a55d080c94cddbbc4e4fac7affc6
[ "MIT" ]
null
null
null
pycaret/clustering.py
sharlalka0805/pycaret-1
3753889342f8a55d080c94cddbbc4e4fac7affc6
[ "MIT" ]
null
null
null
# Module: Clustering # Author: Moez Ali <moez.ali@queensu.ca> # License: MIT # Release: PyCaret 2.2.0 # Last modified : 25/10/2020 import sys import datetime, time import warnings from pycaret.internal.logging import get_logger from pycaret.internal.Display import Display, is_in_colab, enable_colab import pandas as pd...
33.034062
140
0.647341
240f0504d0d7325ef8aa2b992cbe06589648fd5e
4,726
py
Python
addons/mail/wizard/invite.py
jjiege/odoo
fd5b8ad387c1881f349d125cbd56433f4d49398f
[ "MIT" ]
null
null
null
addons/mail/wizard/invite.py
jjiege/odoo
fd5b8ad387c1881f349d125cbd56433f4d49398f
[ "MIT" ]
null
null
null
addons/mail/wizard/invite.py
jjiege/odoo
fd5b8ad387c1881f349d125cbd56433f4d49398f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from lxml import etree from lxml.html import builder as html from odoo import _, api, fields, models class Invite(models.TransientModel): """ Wizard to invite partners (or channels) and make them followers. """ ...
52.511111
171
0.608548
3e5a35581c799d76a86073845a9d798e15ed7511
3,220
py
Python
1dcnn/predict_multi.py
yudengdeng/multi-modal-crop-classification
4af7bd1966249decca63d3e5a6162935601e471b
[ "MIT" ]
11
2020-09-09T18:39:13.000Z
2022-02-13T18:10:17.000Z
1dcnn/predict_multi.py
yudengdeng/multi-modal-crop-classification
4af7bd1966249decca63d3e5a6162935601e471b
[ "MIT" ]
1
2021-04-06T00:35:03.000Z
2021-04-06T00:35:03.000Z
1dcnn/predict_multi.py
yudengdeng/multi-modal-crop-classification
4af7bd1966249decca63d3e5a6162935601e471b
[ "MIT" ]
7
2020-11-09T12:40:44.000Z
2021-12-15T11:49:32.000Z
import tensorflow as tf tf_config = tf.ConfigProto() tf_config.gpu_options.allow_growth = True tf.keras.backend.set_session(tf.Session(config=tf_config)) from tensorflow.python.keras.models import load_model import numpy as np from sklearn.metrics import confusion_matrix, classification_report, accuracy_score, cohen_k...
33.894737
159
0.704969
f92a36d4bd5dd43a75f8407f9c4ab365d66dfb1b
456
py
Python
course/migrations/0015_flowaccessexception_comment.py
romer8/relate
d25e3479f7746cf77d45fe0d34aff495dea9bd84
[ "Unlicense" ]
null
null
null
course/migrations/0015_flowaccessexception_comment.py
romer8/relate
d25e3479f7746cf77d45fe0d34aff495dea9bd84
[ "Unlicense" ]
6
2015-08-18T00:13:40.000Z
2018-01-31T05:55:13.000Z
course/migrations/0015_flowaccessexception_comment.py
davis68/relate
eb40c8c17d4a724a60de3caa3334521a833bad5c
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('course', '0014_course_events_file'), ] operations = [ migrations.AddField( model_name='flowaccessexception', ...
21.714286
58
0.611842
24fb2c6e757cec29d66ae3bf3b87e7aa88efef95
4,616
py
Python
utils/util.py
YuLvS/L2PIPS
6a165b1e5b3ecc1b3bee362a2834cadcad01ad96
[ "Apache-2.0" ]
3
2021-05-21T06:27:08.000Z
2021-08-28T14:52:03.000Z
utils/util.py
YuLvS/L2PIPS
6a165b1e5b3ecc1b3bee362a2834cadcad01ad96
[ "Apache-2.0" ]
1
2021-06-09T03:24:00.000Z
2021-06-09T13:40:17.000Z
utils/util.py
YuLvS/L2PIPS
6a165b1e5b3ecc1b3bee362a2834cadcad01ad96
[ "Apache-2.0" ]
1
2022-02-08T00:41:31.000Z
2022-02-08T00:41:31.000Z
import math import os from datetime import datetime import cv2 import matplotlib.pyplot as plt import numpy as np import torchvision.transforms as transforms from skimage.metrics import structural_similarity from torchvision.utils import make_grid def imshow(tensor, title=None): image = tensor.cpu()...
34.969697
98
0.557626
3b6f5772854de2dc756c037854f057339a50d405
33
py
Python
python/testData/completion/notImportedQualifiedName/VariantsFromInternalThirdPartyModulesExcludedUnlessExported/site-packages/mypackage/__init__.py
06needhamt/intellij-community
63d7b8030e4fdefeb4760e511e289f7e6b3a5c5b
[ "Apache-2.0" ]
null
null
null
python/testData/completion/notImportedQualifiedName/VariantsFromInternalThirdPartyModulesExcludedUnlessExported/site-packages/mypackage/__init__.py
06needhamt/intellij-community
63d7b8030e4fdefeb4760e511e289f7e6b3a5c5b
[ "Apache-2.0" ]
null
null
null
python/testData/completion/notImportedQualifiedName/VariantsFromInternalThirdPartyModulesExcludedUnlessExported/site-packages/mypackage/__init__.py
06needhamt/intellij-community
63d7b8030e4fdefeb4760e511e289f7e6b3a5c5b
[ "Apache-2.0" ]
null
null
null
from ._impl import func_exported
16.5
32
0.848485