hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
b931a37de7e1f1ed0fc213effed503351b163f01
9,946
py
Python
goopylib/objects/_BBox.py
BhavyeMathur/goopylib
f9eb1458e9218a8dd4add6693ce70b804624bf91
[ "MIT" ]
25
2020-07-09T10:57:16.000Z
2022-02-06T10:31:34.000Z
goopylib/objects/_BBox.py
BhavyeMathur/goopy
f9eb1458e9218a8dd4add6693ce70b804624bf91
[ "MIT" ]
48
2020-07-02T20:08:40.000Z
2020-07-06T16:09:25.000Z
goopylib/objects/_BBox.py
BhavyeMathur/goopy
f9eb1458e9218a8dd4add6693ce70b804624bf91
[ "MIT" ]
1
2020-12-01T13:45:53.000Z
2020-12-01T13:45:53.000Z
from goopylib.objects.GraphicsObject import GraphicsObject from goopylib.styles import *
37.81749
122
0.594008
b931c0b51c15ef9d8f1fe028562964e4cc16bd70
670
py
Python
Graph/DFS&BFS.py
Mayner0220/Programmers
42e4783a526506fb7d8208841a76201909ed5c5c
[ "Apache-2.0" ]
1
2021-04-01T06:19:02.000Z
2021-04-01T06:19:02.000Z
Graph/DFS&BFS.py
Mayner0220/Programmers
42e4783a526506fb7d8208841a76201909ed5c5c
[ "Apache-2.0" ]
null
null
null
Graph/DFS&BFS.py
Mayner0220/Programmers
42e4783a526506fb7d8208841a76201909ed5c5c
[ "Apache-2.0" ]
null
null
null
# https://www.acmicpc.net/problem/1260 n, m, v = map(int, input().split()) graph = [[0] * (n+1) for _ in range(n+1)] visit = [False] * (n+1) for _ in range(m): R, C = map(int, input().split()) graph[R][C] = 1 graph[C][R] = 1 dfs(v) print() bfs(v)
19.142857
43
0.470149
b9341a63382a080379eb1fbad26490deed5a76c6
2,404
py
Python
pysteps/tests/helpers.py
Fangyh09/pysteps
9eb7f4ead0a946d98b7504d1bd66b18dc405ed51
[ "BSD-3-Clause" ]
6
2019-01-06T07:42:55.000Z
2021-02-03T13:59:50.000Z
pysteps/tests/helpers.py
Fangyh09/pysteps
9eb7f4ead0a946d98b7504d1bd66b18dc405ed51
[ "BSD-3-Clause" ]
5
2018-12-23T15:10:27.000Z
2021-01-06T15:03:03.000Z
pysteps/tests/helpers.py
Fangyh09/pysteps
9eb7f4ead0a946d98b7504d1bd66b18dc405ed51
[ "BSD-3-Clause" ]
2
2019-08-06T14:16:43.000Z
2019-08-13T00:36:31.000Z
""" Testing helper functions ======================= Collection of helper functions for the testing suite. """ from datetime import datetime import numpy as np import pytest import pysteps as stp from pysteps import io, rcparams def get_precipitation_fields(num_prev_files=0): """Get a precipitation field from ...
33.388889
80
0.640599
b934cd0c4d4115b02def19c6bd570d1877b158cd
3,598
py
Python
modules/courses/courses.py
ehiller/mobilecsp-v18
a59801c44c616d30f5e916d6771e479c8a9e88f7
[ "Apache-2.0" ]
null
null
null
modules/courses/courses.py
ehiller/mobilecsp-v18
a59801c44c616d30f5e916d6771e479c8a9e88f7
[ "Apache-2.0" ]
null
null
null
modules/courses/courses.py
ehiller/mobilecsp-v18
a59801c44c616d30f5e916d6771e479c8a9e88f7
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
36.714286
78
0.735686
b934ce47dae53d305023f829683b8ba6f625367b
1,362
py
Python
packages/merlin/protocols/PrefixLayout.py
pyre/pyre
0f903836f52450bf81216c5dfdfdfebb16090177
[ "BSD-3-Clause" ]
25
2018-04-23T01:45:39.000Z
2021-12-10T06:01:23.000Z
packages/merlin/protocols/PrefixLayout.py
pyre/pyre
0f903836f52450bf81216c5dfdfdfebb16090177
[ "BSD-3-Clause" ]
53
2018-05-31T04:55:00.000Z
2021-10-07T21:41:32.000Z
packages/merlin/protocols/PrefixLayout.py
pyre/pyre
0f903836f52450bf81216c5dfdfdfebb16090177
[ "BSD-3-Clause" ]
12
2018-04-23T22:50:40.000Z
2022-02-20T17:27:23.000Z
# -*- coding: utf-8 -*- # # michael a.g. avzis <michael.aivazis@para-sim.com> # (c) 1998-2021 all rights reserved # support import merlin # the manager of intermediate and final build products # end of file
23.482759
82
0.668135
b9355080468a287acd9198671ea28f44a47c9a46
2,389
py
Python
test/IECoreMaya/ImageConverterTest.py
bradleyhenke/cortex
f8245cc6c9464b1de9e6c6e57068248198e63de0
[ "BSD-3-Clause" ]
386
2015-01-02T11:10:43.000Z
2022-03-10T15:12:20.000Z
test/IECoreMaya/ImageConverterTest.py
bradleyhenke/cortex
f8245cc6c9464b1de9e6c6e57068248198e63de0
[ "BSD-3-Clause" ]
484
2015-01-09T18:28:06.000Z
2022-03-31T16:02:04.000Z
test/IECoreMaya/ImageConverterTest.py
bradleyhenke/cortex
f8245cc6c9464b1de9e6c6e57068248198e63de0
[ "BSD-3-Clause" ]
99
2015-01-28T23:18:04.000Z
2022-03-27T00:59:39.000Z
########################################################################## # # Copyright (c) 2011, Image Engine Design 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: # # * Redistribu...
37.920635
92
0.706153
b936e2da1dfb0c50e0a4123e54c302664e300cf0
4,454
py
Python
tests/core_ptl/check_for_ranks.py
PatrykNeubauer/NeMo
3ada744b884dba5f233f22c6991fc6092c6ca8d0
[ "Apache-2.0" ]
2
2021-09-21T07:36:20.000Z
2022-02-05T15:29:04.000Z
tests/core_ptl/check_for_ranks.py
PatrykNeubauer/NeMo
3ada744b884dba5f233f22c6991fc6092c6ca8d0
[ "Apache-2.0" ]
null
null
null
tests/core_ptl/check_for_ranks.py
PatrykNeubauer/NeMo
3ada744b884dba5f233f22c6991fc6092c6ca8d0
[ "Apache-2.0" ]
12
2021-06-20T08:56:10.000Z
2022-03-16T19:07:10.000Z
# Copyright (c) 2021, 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 appli...
28.551282
102
0.687023
b93839299c30aa23ab066b85969c7c27e043c202
1,143
py
Python
helpers/json_manager.py
Lofi-Lemonade/Python-Discord-Bot-Template
4cb79197c751c88100ad396adb38e88bf2a4d1ed
[ "Apache-2.0" ]
null
null
null
helpers/json_manager.py
Lofi-Lemonade/Python-Discord-Bot-Template
4cb79197c751c88100ad396adb38e88bf2a4d1ed
[ "Apache-2.0" ]
null
null
null
helpers/json_manager.py
Lofi-Lemonade/Python-Discord-Bot-Template
4cb79197c751c88100ad396adb38e88bf2a4d1ed
[ "Apache-2.0" ]
null
null
null
"""" Copyright Krypton 2022 - https://github.com/kkrypt0nn (https://krypton.ninja) Description: This is a template to create your own discord bot in python. Version: 4.1 """ import json def add_user_to_blacklist(user_id: int) -> None: """ This function will add a user based on its ID in the blacklist.json ...
31.75
91
0.659668
b93889b31eb8ffef50e08b669fe2f20c16f4d959
1,628
py
Python
tests/test_common.py
ColinKennedy/ways
1eb44e4aa5e35fb839212cd8cb1c59c714ba10d3
[ "MIT" ]
2
2019-11-10T18:35:38.000Z
2020-05-12T10:37:42.000Z
tests/test_common.py
ColinKennedy/ways
1eb44e4aa5e35fb839212cd8cb1c59c714ba10d3
[ "MIT" ]
5
2017-11-27T18:05:25.000Z
2021-06-01T21:57:48.000Z
tests/test_common.py
ColinKennedy/ways
1eb44e4aa5e35fb839212cd8cb1c59c714ba10d3
[ "MIT" ]
1
2017-11-27T17:54:53.000Z
2017-11-27T17:54:53.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- '''Make sure that generic functions work exactly as we expect.''' # IMPORT STANDARD LIBRARIES import unittest # IMPORT WAYS LIBRARIES from ways import common
35.391304
84
0.686732
b938dd2d4297c0de33a03a4e075f88143c4fb4d8
942
py
Python
setup.py
glibin/natasha
4f5c153f754759c189779f9879decd8d218356af
[ "MIT" ]
1
2020-01-16T14:02:01.000Z
2020-01-16T14:02:01.000Z
setup.py
glibin/natasha
4f5c153f754759c189779f9879decd8d218356af
[ "MIT" ]
null
null
null
setup.py
glibin/natasha
4f5c153f754759c189779f9879decd8d218356af
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name='natasha', version='0.2.0', description='Named-entity recognition for russian language', url='https://github.com/bureaucratic-labs/natasha', author='Dmitry Veselov', author_email='d.a.veselov@yandex.ru', license='MIT', classifiers=...
29.4375
97
0.59448
b93a3daf85b033d7039d8c3747eadb457802db6b
2,814
py
Python
GeneratePassword/generate_password_v2.py
OneScreenfulOfPython/screenfuls
ea4e378c8d9e530edadd4a3315fe9e8acc98460b
[ "Apache-2.0" ]
2
2015-01-19T14:50:55.000Z
2015-01-28T12:45:59.000Z
GeneratePassword/generate_password_v2.py
OneScreenfulOfPython/screenfuls
ea4e378c8d9e530edadd4a3315fe9e8acc98460b
[ "Apache-2.0" ]
null
null
null
GeneratePassword/generate_password_v2.py
OneScreenfulOfPython/screenfuls
ea4e378c8d9e530edadd4a3315fe9e8acc98460b
[ "Apache-2.0" ]
null
null
null
import os, sys import random import string try: # Make Python2 work like Python3 input = raw_input except NameError: # On Python3; already using input pass letters = string.ascii_letters numbers = string.digits punctuation = string.punctuation def generate(password_length, at_least_one_letter, at_lea...
33.5
108
0.658138
b93a4101b4ff85c90fbde08405fbe7515b2816bd
17,093
py
Python
bot/jobs/thorchain_node_jobs.py
block42-blockchain-company/thornode-telegram-bot
6478b1eb41e36c5fdd327b963b55343de1ce5337
[ "MIT" ]
15
2020-04-21T07:51:26.000Z
2021-11-02T05:45:48.000Z
bot/jobs/thorchain_node_jobs.py
block42-blockchain-company/thornode-telegram-bot
6478b1eb41e36c5fdd327b963b55343de1ce5337
[ "MIT" ]
78
2020-04-13T23:01:16.000Z
2021-05-09T11:46:25.000Z
bot/jobs/thorchain_node_jobs.py
block42-blockchain-company/thornode-telegram-bot
6478b1eb41e36c5fdd327b963b55343de1ce5337
[ "MIT" ]
5
2020-09-03T21:19:16.000Z
2021-11-20T00:17:56.000Z
from constants.messages import get_node_health_warning_message, get_node_healthy_again_message from handlers.chat_helpers import try_message_with_home_menu, try_message_to_all_users from packaging import version from service.utils import * def check_thorchain_catch_up_status(context, node_address): """ ...
43.164141
126
0.600889
b93aaafe8012e07a3a1b7cd6bfac2b4027e51ebd
3,760
py
Python
hard-gists/7578539/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
21
2019-07-08T08:26:45.000Z
2022-01-24T23:53:25.000Z
hard-gists/7578539/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
5
2019-06-15T14:47:47.000Z
2022-02-26T05:02:56.000Z
hard-gists/7578539/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
17
2019-05-16T03:50:34.000Z
2021-01-14T14:35:12.000Z
from pylab import * from numpy import * from numpy.linalg import solve from scipy.integrate import odeint from scipy.stats import norm, uniform, beta from scipy.special import jacobi a = 0.0 b = 3.0 theta=1.0 sigma=sqrt(theta/(2*(a+b+2))) tscale = 0.05 invariant_distribution = poly1d( [-1 for x in range(int(a))], ...
27.246377
109
0.611702
b93b21d31a5eecb527d2b3ad7f00cf5d4683d661
1,535
py
Python
forms.py
lennykioko/Flask-social-network
15bfe1f7dca90074c0cbef62c5da9d5a25b5ce65
[ "MIT" ]
1
2018-04-15T19:35:54.000Z
2018-04-15T19:35:54.000Z
forms.py
lennykioko/Flask-social-network
15bfe1f7dca90074c0cbef62c5da9d5a25b5ce65
[ "MIT" ]
null
null
null
forms.py
lennykioko/Flask-social-network
15bfe1f7dca90074c0cbef62c5da9d5a25b5ce65
[ "MIT" ]
null
null
null
# forms are not just about display, instead they are more of validation # wtf forms protect our site against csrf attacks from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, TextAreaField from wtforms.validators import (DataRequired, Regexp, ValidationError, Email, Length, EqualTo...
25.583333
85
0.712704
b93b8add4495a7de42fb7a036f7ba8c5ddea0d87
1,508
py
Python
pantam_cli/utils/messages.py
flmnt/pantam
da47d977e69ec410d0642b5ade1f2323c1b6b350
[ "MIT" ]
2
2020-10-04T10:29:43.000Z
2021-03-30T13:45:09.000Z
pantam_cli/utils/messages.py
flmnt/pantam
da47d977e69ec410d0642b5ade1f2323c1b6b350
[ "MIT" ]
null
null
null
pantam_cli/utils/messages.py
flmnt/pantam
da47d977e69ec410d0642b5ade1f2323c1b6b350
[ "MIT" ]
null
null
null
from sys import stderr, stdout from enum import Enum from colored import fg, attr PANTAM: str = fg("yellow") + attr("bold") + "PANTAM" + attr("reset") colour_msg = lambda msg, colour: fg(colour) + attr("bold") + msg + attr("reset") info_msg = lambda msg: colour_msg(msg, "blue") success_msg = lambda msg: colour_msg(ms...
24.322581
80
0.671088
b93da1b1bbce8a3e5fafae55f093b2f5323fb641
2,510
py
Python
tests/manage/test_remove_mon_from_cluster.py
zmc/ocs-ci
fcf51f3637f657689ba5a8ac869f2b14ac04b0cf
[ "MIT" ]
null
null
null
tests/manage/test_remove_mon_from_cluster.py
zmc/ocs-ci
fcf51f3637f657689ba5a8ac869f2b14ac04b0cf
[ "MIT" ]
null
null
null
tests/manage/test_remove_mon_from_cluster.py
zmc/ocs-ci
fcf51f3637f657689ba5a8ac869f2b14ac04b0cf
[ "MIT" ]
null
null
null
""" A Testcase to remove mon from when I/O's are happening. Polarion-ID- OCS-355 """ import logging import pytest from ocs_ci.ocs import ocp, constants from ocs_ci.framework.testlib import tier4, ManageTest from ocs_ci.framework import config from ocs_ci.ocs.resources import pod from tests.helpers import run_io_with...
29.529412
94
0.688446
b93f9ebd7406695d9627c10b5f85877c35692320
2,690
py
Python
smartystreets_python_sdk/us_autocomplete_pro/client.py
Caaz/smartystreets-python-sdk
f56cd00d29861bde297143c128f79a4b1d89541c
[ "Apache-2.0" ]
null
null
null
smartystreets_python_sdk/us_autocomplete_pro/client.py
Caaz/smartystreets-python-sdk
f56cd00d29861bde297143c128f79a4b1d89541c
[ "Apache-2.0" ]
null
null
null
smartystreets_python_sdk/us_autocomplete_pro/client.py
Caaz/smartystreets-python-sdk
f56cd00d29861bde297143c128f79a4b1d89541c
[ "Apache-2.0" ]
null
null
null
from smartystreets_python_sdk import Request from smartystreets_python_sdk.exceptions import SmartyException from smartystreets_python_sdk.us_autocomplete_pro import Suggestion, geolocation_type
42.03125
112
0.717472
b94044f865f05e0aee9b401bba3907e01e40ff6c
11,578
py
Python
mssqlvc.py
Saritasa/mssqlvc
836caeea59cc0ed23234687b94062e007707c603
[ "BSD-2-Clause" ]
2
2016-09-22T04:36:46.000Z
2018-07-31T21:36:42.000Z
mssqlvc.py
Saritasa/mssqlvc
836caeea59cc0ed23234687b94062e007707c603
[ "BSD-2-Clause" ]
1
2016-02-02T07:58:29.000Z
2016-02-02T14:19:18.000Z
mssqlvc.py
krasninja/mssqlvc
836caeea59cc0ed23234687b94062e007707c603
[ "BSD-2-Clause" ]
2
2016-09-21T09:48:44.000Z
2020-03-24T15:59:54.000Z
# -*- coding: utf-8 -*- """ mssqlvc ~~~~~~~ Database version control utility for Microsoft SQL Server. See README.md for more information. Licensed under the BSD license. See LICENSE file in the project root for full license information. """ import argparse import datetime import io import logging im...
39.515358
121
0.640266
b9408aacd4d750c790ebb27107e026e183ea1d35
4,296
py
Python
lib/python3.6/site-packages/statsmodels/iolib/tests/test_table_econpy.py
KshitizSharmaV/Quant_Platform_Python
d784aa0604d8de5ba5ca0c3a171e3556c0cd6b39
[ "BSD-3-Clause" ]
1
2020-05-09T08:42:52.000Z
2020-05-09T08:42:52.000Z
statsmodels/iolib/tests/test_table_econpy.py
yanzhenxiong/statsmodels
e56c4046ff8807c3c16d6a9293b5cb5dfe6f0cd0
[ "BSD-3-Clause" ]
null
null
null
statsmodels/iolib/tests/test_table_econpy.py
yanzhenxiong/statsmodels
e56c4046ff8807c3c16d6a9293b5cb5dfe6f0cd0
[ "BSD-3-Clause" ]
1
2020-05-09T08:42:58.000Z
2020-05-09T08:42:58.000Z
''' Unit tests table.py. :see: http://docs.python.org/lib/minimal-example.html for an intro to unittest :see: http://agiletesting.blogspot.com/2005/01/python-unit-testing-part-1-unittest.html :see: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/305292 ''' from __future__ import absolute_import from statsmodel...
30.041958
261
0.573091
b9409e44daa0d7a262748b347f053c849e397b73
291
py
Python
homeassistant/components/todoist/types.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
homeassistant/components/todoist/types.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
24,710
2016-04-13T08:27:26.000Z
2020-03-02T12:59:13.000Z
homeassistant/components/todoist/types.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""Types for the Todoist component.""" from __future__ import annotations from typing import TypedDict
19.4
65
0.697595
b9417eb816defb8a05e4de472fa5d06b0845774d
4,237
py
Python
src/c/c_pyzstd.py
corneliusroemer/pyzstd
06f14ad29735d9ae85c188703dcb64c24686c4f2
[ "BSD-3-Clause" ]
29
2020-10-13T03:35:37.000Z
2022-03-14T11:09:47.000Z
src/c/c_pyzstd.py
corneliusroemer/pyzstd
06f14ad29735d9ae85c188703dcb64c24686c4f2
[ "BSD-3-Clause" ]
12
2020-12-22T02:27:47.000Z
2022-03-18T14:54:33.000Z
src/c/c_pyzstd.py
corneliusroemer/pyzstd
06f14ad29735d9ae85c188703dcb64c24686c4f2
[ "BSD-3-Clause" ]
3
2020-11-21T20:57:10.000Z
2021-09-26T01:14:44.000Z
from collections import namedtuple from enum import IntEnum from ._zstd import * from . import _zstd __all__ = (# From this file 'compressionLevel_values', 'get_frame_info', 'CParameter', 'DParameter', 'Strategy', # From _zstd 'ZstdCompressor', 'RichMemZstdCompressor', ...
36.213675
80
0.663441
b941e493bd72a0cc29b7f5487a4bd483b40a8fe3
4,414
py
Python
test/unit/data/model/mapping/common.py
quacksawbones/galaxy-1
65f7259b29d3886e526d9be670c60d9da9fbe038
[ "CC-BY-3.0" ]
1,085
2015-02-18T16:14:38.000Z
2022-03-30T23:52:07.000Z
test/unit/data/model/mapping/common.py
quacksawbones/galaxy-1
65f7259b29d3886e526d9be670c60d9da9fbe038
[ "CC-BY-3.0" ]
11,253
2015-02-18T17:47:32.000Z
2022-03-31T21:47:03.000Z
test/unit/data/model/mapping/common.py
quacksawbones/galaxy-1
65f7259b29d3886e526d9be670c60d9da9fbe038
[ "CC-BY-3.0" ]
1,000
2015-02-18T16:18:10.000Z
2022-03-29T08:22:56.000Z
from abc import ABC, abstractmethod from contextlib import contextmanager from uuid import uuid4 import pytest from sqlalchemy import ( delete, select, UniqueConstraint, ) def persist(session, obj, return_id=True): """ Use the session to store obj in database, then remove obj from session, ...
31.084507
98
0.677843
b9421dbb7e263a5a3de9a9e29e270b09ceba630c
1,004
py
Python
django_events/users/management/commands/create_default_su.py
chrisBrookes93/django-events-management
93886448a7bb85c8758324977ff67bcacc80bbec
[ "MIT" ]
null
null
null
django_events/users/management/commands/create_default_su.py
chrisBrookes93/django-events-management
93886448a7bb85c8758324977ff67bcacc80bbec
[ "MIT" ]
null
null
null
django_events/users/management/commands/create_default_su.py
chrisBrookes93/django-events-management
93886448a7bb85c8758324977ff67bcacc80bbec
[ "MIT" ]
null
null
null
from django.core.management.base import BaseCommand from django.contrib.auth import get_user_model
41.833333
114
0.661355
b942ff3dafb5c886434a478e8bfb0592e83afd1c
6,215
bzl
Python
antlir/bzl/image_layer.bzl
zeroxoneb/antlir
811d88965610d16a5c85d831d317f087797ca732
[ "MIT" ]
28
2020-08-11T16:22:46.000Z
2022-03-04T15:41:52.000Z
antlir/bzl/image_layer.bzl
zeroxoneb/antlir
811d88965610d16a5c85d831d317f087797ca732
[ "MIT" ]
137
2020-08-11T16:07:49.000Z
2022-02-27T10:59:05.000Z
antlir/bzl/image_layer.bzl
zeroxoneb/antlir
811d88965610d16a5c85d831d317f087797ca732
[ "MIT" ]
10
2020-09-10T00:01:28.000Z
2022-03-08T18:00:28.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ An `image.layer` is a set of `feature` with some additional parameters. Its purpose to materialize those `feature`s as a btrfs subvolume ...
44.078014
79
0.740628
b943636ba1006005819134b02620af2faa23d559
84
py
Python
python/testData/debug/test_ignore_lib.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/debug/test_ignore_lib.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/debug/test_ignore_lib.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
from calendar import setfirstweekday stopped_in_user_file = True setfirstweekday(15)
28
36
0.880952
b9443b673da6e4fd8c252e11eba4606e69192845
1,036
py
Python
promt_tr/__main__.py
ffreemt/promt-tr-free
ff20b0f176f9611fa5a834af5aeaa9ef6ca3a3ee
[ "MIT" ]
null
null
null
promt_tr/__main__.py
ffreemt/promt-tr-free
ff20b0f176f9611fa5a834af5aeaa9ef6ca3a3ee
[ "MIT" ]
null
null
null
promt_tr/__main__.py
ffreemt/promt-tr-free
ff20b0f176f9611fa5a834af5aeaa9ef6ca3a3ee
[ "MIT" ]
null
null
null
''' __main__, to run: python -m promt_tr ''' import sys from random import randint from promt_tr import promt_tr, LANG_CODES # pragma: no cover def main(): '''main''' from_lang = 'auto' to_lang = 'zh' text = 'test ' + str(randint(0, 10000)) if not sys.argv[1:]: print('Provide some Engli...
23.545455
68
0.527027
b9458ab72f55b4db845f6d76e44dba3b00e000ed
6,265
py
Python
src/features/v3/proc_v3_n1_calc_distance.py
askoki/nfl_dpi_prediction
dc3256f24ddc0b6725eace2081d1fb1a7e5ce805
[ "MIT" ]
null
null
null
src/features/v3/proc_v3_n1_calc_distance.py
askoki/nfl_dpi_prediction
dc3256f24ddc0b6725eace2081d1fb1a7e5ce805
[ "MIT" ]
null
null
null
src/features/v3/proc_v3_n1_calc_distance.py
askoki/nfl_dpi_prediction
dc3256f24ddc0b6725eace2081d1fb1a7e5ce805
[ "MIT" ]
null
null
null
import os import sys import pandas as pd from datetime import datetime from settings import RAW_DATA_DIR, DataV3, DATA_V3_SUBVERSION from src.features.helpers.processing import add_missing_timestamp_values from src.features.helpers.processing_v3 import get_closest_players, get_players_and_ball_indices, calculate_distan...
35.596591
119
0.675499
b945e094a775936b9b256c03b9ad1404cebcb291
1,312
py
Python
annotate-preprocessed.py
Rajpratik71/devel-scripts
068285719a13b02889b1314361cc5bdb764d9a3a
[ "Apache-2.0" ]
null
null
null
annotate-preprocessed.py
Rajpratik71/devel-scripts
068285719a13b02889b1314361cc5bdb764d9a3a
[ "Apache-2.0" ]
null
null
null
annotate-preprocessed.py
Rajpratik71/devel-scripts
068285719a13b02889b1314361cc5bdb764d9a3a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python """Annotates -E preprocessed source input with line numbers. Read std input, then annotate each line with line number based on previous expanded line directives from -E output. Useful in the context of compiler debugging. """ import getopt import os import re import sys import script_utils as u ...
19.014493
74
0.636433
b94613d2fb24bf9487b3045eae02b837543d3647
2,547
py
Python
pages/lstm.py
tekeburak/dam-occupancy-model
f39d436bf27088068177245f0180cafaa56ad123
[ "MIT" ]
8
2021-01-24T14:56:23.000Z
2021-03-26T18:10:33.000Z
pages/lstm.py
tekeburak/dam-occupancy-model
f39d436bf27088068177245f0180cafaa56ad123
[ "MIT" ]
null
null
null
pages/lstm.py
tekeburak/dam-occupancy-model
f39d436bf27088068177245f0180cafaa56ad123
[ "MIT" ]
6
2021-01-24T14:44:49.000Z
2021-03-21T17:50:30.000Z
import streamlit as st import tensorflow as tf import numpy from utils.get_owm_data import get_open_weather_map_data from utils.get_date import get_date_list_for_gmt import plotly.graph_objects as go from plotly import tools import plotly.offline as py import plotly.express as px
50.94
476
0.773852
b9475ee1123a7f8c87eb161ddf2246d4b5a64a79
1,847
py
Python
fst_web/demo_settings.py
kamidev/autobuild_fst
6baffa955075ffe3c5f197789e9fd065fa74058e
[ "BSD-3-Clause" ]
null
null
null
fst_web/demo_settings.py
kamidev/autobuild_fst
6baffa955075ffe3c5f197789e9fd065fa74058e
[ "BSD-3-Clause" ]
null
null
null
fst_web/demo_settings.py
kamidev/autobuild_fst
6baffa955075ffe3c5f197789e9fd065fa74058e
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import os ROOT = os.path.abspath(os.path.dirname(__file__)) path = lambda *args: os.path.join(ROOT, *args) """ Template for local settings of the FST webservice (fst_web) Please edit this file and replace all generic values with values suitable to your particular installation. """ # NOTE! Al...
28.415385
76
0.721711
b947d963b017c12ec37d222b3722de432bf97da6
8,891
py
Python
BookingScraper-joao_v2/BookingScraper/airbnb.py
joaocamargo/estudos-python
c5fbf59a1f06131d9789dca7dbdfdcf2200d0227
[ "MIT" ]
1
2019-10-09T12:56:13.000Z
2019-10-09T12:56:13.000Z
BookingScraper-joao_v2/BookingScraper/airbnb.py
joaocamargo/estudos-python
c5fbf59a1f06131d9789dca7dbdfdcf2200d0227
[ "MIT" ]
null
null
null
BookingScraper-joao_v2/BookingScraper/airbnb.py
joaocamargo/estudos-python
c5fbf59a1f06131d9789dca7dbdfdcf2200d0227
[ "MIT" ]
null
null
null
#! /usr/bin/env python3.6 import argparse import argcomplete from argcomplete.completers import ChoicesCompleter from argcomplete.completers import EnvironCompleter import requests from bthread import BookingThread from bs4 import BeautifulSoup from file_writer import FileWriter hotels = [] def prep_data(rooms=1,...
37.995726
250
0.576313
b94890b4860019fd993040c0790c0701fc24a0c5
2,919
py
Python
main.py
valurhrafn/chromium-sync
df5e3299d179fc47ff34d1a95409383f46aac4d4
[ "MIT" ]
4
2017-03-27T02:25:07.000Z
2021-03-07T21:40:58.000Z
main.py
valurhrafn/chromium-sync
df5e3299d179fc47ff34d1a95409383f46aac4d4
[ "MIT" ]
null
null
null
main.py
valurhrafn/chromium-sync
df5e3299d179fc47ff34d1a95409383f46aac4d4
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Copyright 2007 Google 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 o...
30.40625
74
0.647825
b94a534d42db78fa886439d7fdfdf20e0f8b2504
1,434
py
Python
comet/service/subscriber.py
dneise/Comet
abaa0da65d69f90a5262d81416477b4e71deb2ad
[ "BSD-2-Clause" ]
15
2015-11-29T18:53:58.000Z
2022-03-09T15:47:30.000Z
comet/service/subscriber.py
dneise/Comet
abaa0da65d69f90a5262d81416477b4e71deb2ad
[ "BSD-2-Clause" ]
29
2016-01-21T18:10:45.000Z
2021-10-01T16:41:12.000Z
comet/service/subscriber.py
dneise/Comet
abaa0da65d69f90a5262d81416477b4e71deb2ad
[ "BSD-2-Clause" ]
11
2016-01-22T14:05:51.000Z
2022-03-09T17:49:56.000Z
# Comet VOEvent Broker. from twisted.application.internet import ClientService from comet.protocol.subscriber import VOEventSubscriberFactory __all__ = ["makeSubscriberService"] def makeSubscriberService(endpoint, local_ivo, validators, handlers, filters): """Create a reconnecting VOEvent subscriber service. ...
35.85
80
0.727336
b94c3a86b197fdae8da6f36cf6af0eeecde07155
13,008
py
Python
scripts/master/cros_try_job_git.py
bopopescu/build
4e95fd33456e552bfaf7d94f7d04b19273d1c534
[ "BSD-3-Clause" ]
null
null
null
scripts/master/cros_try_job_git.py
bopopescu/build
4e95fd33456e552bfaf7d94f7d04b19273d1c534
[ "BSD-3-Clause" ]
null
null
null
scripts/master/cros_try_job_git.py
bopopescu/build
4e95fd33456e552bfaf7d94f7d04b19273d1c534
[ "BSD-3-Clause" ]
1
2020-07-23T11:05:06.000Z
2020-07-23T11:05:06.000Z
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import base64 import json import os import re import shutil import zlib from StringIO import StringIO try: # Create a block to work around evil sys.m...
37.165714
80
0.676661
b94d43136b5079271270c2099bbeca811ff9b1ce
1,412
py
Python
Medium/515.py
Hellofafar/Leetcode
7a459e9742958e63be8886874904e5ab2489411a
[ "CNRI-Python" ]
6
2017-09-25T18:05:50.000Z
2019-03-27T00:23:15.000Z
Medium/515.py
Hellofafar/Leetcode
7a459e9742958e63be8886874904e5ab2489411a
[ "CNRI-Python" ]
1
2017-10-29T12:04:41.000Z
2018-08-16T18:00:37.000Z
Medium/515.py
Hellofafar/Leetcode
7a459e9742958e63be8886874904e5ab2489411a
[ "CNRI-Python" ]
null
null
null
# ------------------------------ # 515. Find Largest Value in Each Tree Row # # Description: # You need to find the largest value in each row of a binary tree. # Example: # Input: # 1 # / \ # 3 2 # / \ \ # 5 3 9 # Output: [1, 3, 9] # # Version: 1.0 # 12/22/18 by Jia...
23.147541
66
0.434136
b94d5a11e77235531376a017f673e8c5a0fdf637
9,578
py
Python
opsmop/meta/docs/exparser.py
lachmanfrantisek/opsmop
562ae2d753ff84b3d794a6815d0436753e82d2a0
[ "Apache-2.0" ]
null
null
null
opsmop/meta/docs/exparser.py
lachmanfrantisek/opsmop
562ae2d753ff84b3d794a6815d0436753e82d2a0
[ "Apache-2.0" ]
null
null
null
opsmop/meta/docs/exparser.py
lachmanfrantisek/opsmop
562ae2d753ff84b3d794a6815d0436753e82d2a0
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Michael DeHaan LLC, <michael@michaeldehaan.net> # # 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.708661
90
0.516914
b94dd4c5db15c696e937d22b21b3d1a6fd038ef8
737
py
Python
pylox/TokenType.py
sheunl/Compiler_Tests
18c5e0568bc39a60094f3e44943ac252c279ffb9
[ "CC0-1.0" ]
null
null
null
pylox/TokenType.py
sheunl/Compiler_Tests
18c5e0568bc39a60094f3e44943ac252c279ffb9
[ "CC0-1.0" ]
null
null
null
pylox/TokenType.py
sheunl/Compiler_Tests
18c5e0568bc39a60094f3e44943ac252c279ffb9
[ "CC0-1.0" ]
null
null
null
from enum import Enum
14.45098
32
0.522388
b94e05939494c3c75adce95bb694899b36d0a091
919
py
Python
src/oslibs/cocos/cocos-src/tools/cocos2d-console/plugins/framework/framework_add.py
dios-game/dios-cocos
b7fbcbafe02f516ef18fdb64b4519dbf806303fc
[ "MIT" ]
1
2021-07-22T15:53:26.000Z
2021-07-22T15:53:26.000Z
src/oslibs/cocos/cocos-src/tools/cocos2d-console/plugins/framework/framework_add.py
dios-game/dios-cocos
b7fbcbafe02f516ef18fdb64b4519dbf806303fc
[ "MIT" ]
null
null
null
src/oslibs/cocos/cocos-src/tools/cocos2d-console/plugins/framework/framework_add.py
dios-game/dios-cocos
b7fbcbafe02f516ef18fdb64b4519dbf806303fc
[ "MIT" ]
null
null
null
import cocos from MultiLanguage import MultiLanguage from package.helper import ProjectHelper
28.71875
108
0.686616
b9514946d8170f94e426e1cbf736a481d8427c11
761
py
Python
src/utils.py
f-grimaldi/explain_ML
00892675be32bebd023b274270ccb05b798fb388
[ "MIT" ]
1
2020-08-03T08:23:31.000Z
2020-08-03T08:23:31.000Z
src/utils.py
f-grimaldi/explain_ML
00892675be32bebd023b274270ccb05b798fb388
[ "MIT" ]
null
null
null
src/utils.py
f-grimaldi/explain_ML
00892675be32bebd023b274270ccb05b798fb388
[ "MIT" ]
null
null
null
from matplotlib import colors import numpy as np
31.708333
89
0.659658
b9516c7b124e87fce1712aca1aa49ef2cd923f11
3,056
py
Python
lib/two/mongomgr.py
erkyrath/tworld
9f5237771196b03753d027277ffc296e25fd7425
[ "MIT" ]
38
2015-01-03T16:59:20.000Z
2021-10-13T09:15:53.000Z
lib/two/mongomgr.py
Oreolek/tworld
9f5237771196b03753d027277ffc296e25fd7425
[ "MIT" ]
32
2015-01-04T01:59:34.000Z
2016-05-20T16:29:26.000Z
lib/two/mongomgr.py
Oreolek/tworld
9f5237771196b03753d027277ffc296e25fd7425
[ "MIT" ]
7
2015-10-08T21:01:20.000Z
2020-05-21T17:42:54.000Z
""" Manage the connection to the MongoDB server. """ import tornado.gen import tornado.ioloop import motor
35.534884
97
0.576571
b9530c0fbf29c36506820a41f0b32bd37796d3e0
1,298
py
Python
code/examples/example_binomial_and_log_normal_abtest.py
hugopibernat/BayesianABTestAnalysis
026960524f5313f4a734f30fd447a5731be802e0
[ "Apache-2.0" ]
null
null
null
code/examples/example_binomial_and_log_normal_abtest.py
hugopibernat/BayesianABTestAnalysis
026960524f5313f4a734f30fd447a5731be802e0
[ "Apache-2.0" ]
null
null
null
code/examples/example_binomial_and_log_normal_abtest.py
hugopibernat/BayesianABTestAnalysis
026960524f5313f4a734f30fd447a5731be802e0
[ "Apache-2.0" ]
null
null
null
################################################# ####### Author: Hugo Pibernat ####### ####### Contact: hugopibernat@gmail.com ####### ####### Date: April 2014 ####### ################################################# from bayesianABTest import sampleSuccessRateForBinomial, sampleMeanF...
32.45
106
0.692604
b95332c99e63e536863282307e578d423edf7664
644
py
Python
tests/models/test_documents.py
airslate-oss/python-airslate
0f7fe6321b1c2e6875a02dfecb5ffa07a361bb1d
[ "Apache-2.0" ]
3
2021-02-07T20:04:26.000Z
2021-09-22T08:32:26.000Z
tests/models/test_documents.py
airslate-oss/python-airslate
0f7fe6321b1c2e6875a02dfecb5ffa07a361bb1d
[ "Apache-2.0" ]
15
2021-01-21T15:38:37.000Z
2021-02-16T07:52:20.000Z
tests/models/test_documents.py
airslate-oss/python-airslate
0f7fe6321b1c2e6875a02dfecb5ffa07a361bb1d
[ "Apache-2.0" ]
null
null
null
# This file is part of the airslate. # # Copyright (c) 2021 airSlate, Inc. # # For the full copyright and license information, please view # the LICENSE file that was distributed with this source code. from airslate.models.documents import UpdateFields from airslate.entities.fields import Field
28
62
0.677019
b95403252db42b0394653a122fd73b2b596e194d
400
py
Python
app/main.py
meysam81/sheypoor
aa67e20646ebc4143b83968f60c0b28c2ad340a1
[ "MIT" ]
null
null
null
app/main.py
meysam81/sheypoor
aa67e20646ebc4143b83968f60c0b28c2ad340a1
[ "MIT" ]
null
null
null
app/main.py
meysam81/sheypoor
aa67e20646ebc4143b83968f60c0b28c2ad340a1
[ "MIT" ]
null
null
null
from fastapi import FastAPI from fastapi.middleware.cors import CORSMiddleware from app import api from app.core.config import config app = FastAPI(title="Sheypoor") # Set all CORS enabled origins app.add_middleware( CORSMiddleware, allow_origins=["*"], allow_credentials=True, allow_methods=["*"], ...
21.052632
53
0.7425
b9556579b31dd7d2370d8083a431ada02beb471d
2,205
py
Python
cdnu/ccds.py
Indy2222/mbg-codon-usage
d415076a8150cd712010c0389c71ef22ba9ad850
[ "MIT" ]
null
null
null
cdnu/ccds.py
Indy2222/mbg-codon-usage
d415076a8150cd712010c0389c71ef22ba9ad850
[ "MIT" ]
null
null
null
cdnu/ccds.py
Indy2222/mbg-codon-usage
d415076a8150cd712010c0389c71ef22ba9ad850
[ "MIT" ]
null
null
null
from typing import List, NamedTuple CCDS_FILE = 'CCDS.current.txt' CHROMOSOMES = ('1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', 'X', 'Y') def load_ccds() -> List[CdsPos]: """Load file with CDS locations wi...
30.205479
77
0.502494
b9576be4fad430a84f92a2e3dc9d1b34f113118c
2,732
py
Python
test/test_resolve_errors.py
ITMO-NSS-team/GEFEST
72bb61cf3fbb9f87fe3dcd48b71f3e84dd23b669
[ "BSD-3-Clause" ]
12
2022-01-19T11:06:32.000Z
2022-02-21T14:59:23.000Z
test/test_resolve_errors.py
ITMO-NSS-team/GEFEST
72bb61cf3fbb9f87fe3dcd48b71f3e84dd23b669
[ "BSD-3-Clause" ]
9
2022-01-19T11:09:11.000Z
2022-03-29T13:36:41.000Z
test/test_resolve_errors.py
ITMO-NSS-team/GEFEST
72bb61cf3fbb9f87fe3dcd48b71f3e84dd23b669
[ "BSD-3-Clause" ]
2
2022-01-19T11:37:24.000Z
2022-03-24T19:35:33.000Z
import pytest from copy import deepcopy from gefest.core.structure.point import Point from gefest.core.structure.polygon import Polygon from gefest.core.structure.structure import Structure from gefest.core.algs.postproc.resolve_errors import * from gefest.core.algs.geom.validation import * # marking length and width...
37.424658
107
0.739019
b959064c37513b8eabaf61132941fe714e3a8dbc
1,833
py
Python
tests/mocks.py
davla/i3-live-tree
8dc3917afdd09f53f7cf39653c2bf12cb0200983
[ "MIT" ]
1
2021-07-22T09:04:46.000Z
2021-07-22T09:04:46.000Z
tests/mocks.py
davla/i3-live-tree
8dc3917afdd09f53f7cf39653c2bf12cb0200983
[ "MIT" ]
null
null
null
tests/mocks.py
davla/i3-live-tree
8dc3917afdd09f53f7cf39653c2bf12cb0200983
[ "MIT" ]
null
null
null
from unittest.mock import MagicMock, Mock from i3ipc.aio import Con import i3_live_tree.tree_serializer # noqa: F401
30.55
78
0.67485
b95a54ae27c88b1a727a1742ed1880093d3693e0
971
py
Python
hvac/api/secrets_engines/gcp.py
nested-tech/hvac
2a58ac9850b882e43c1617ae6b0ea93104c99794
[ "Apache-2.0" ]
null
null
null
hvac/api/secrets_engines/gcp.py
nested-tech/hvac
2a58ac9850b882e43c1617ae6b0ea93104c99794
[ "Apache-2.0" ]
null
null
null
hvac/api/secrets_engines/gcp.py
nested-tech/hvac
2a58ac9850b882e43c1617ae6b0ea93104c99794
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Gcp methods module.""" from hvac import exceptions from hvac.api.vault_api_base import VaultApiBase from hvac.constants.gcp import DEFAULT_MOUNT_POINT, ALLOWED_CREDS_ENDPOINTS
34.678571
108
0.652935
b95b84a26deaf7cd8b371b13b34ee9e7005ee7c0
9,155
py
Python
ypricemagic/uniswap.py
poolpitako/ypricemagic
882aa2071a918937e77e0b85e5f52191a4714d28
[ "MIT" ]
null
null
null
ypricemagic/uniswap.py
poolpitako/ypricemagic
882aa2071a918937e77e0b85e5f52191a4714d28
[ "MIT" ]
null
null
null
ypricemagic/uniswap.py
poolpitako/ypricemagic
882aa2071a918937e77e0b85e5f52191a4714d28
[ "MIT" ]
null
null
null
import token from tokenize import tokenize from brownie import Contract, chain from brownie.exceptions import ContractNotFound from cachetools.func import ttl_cache from .utils.cache import memory from .utils.multicall2 import fetch_multicall from .interfaces.ERC20 import ERC20ABI import ypricemagic.magic import yprice...
43.388626
205
0.68935
b95bf173c71497f893fb19ff1c8e2576967d5c36
611
py
Python
configs/configuration_textrnn.py
haodingkui/semeval2020-task5-subtask1
bfd0c808c6b1de910d6f58ea040a13442b4bcdca
[ "MIT" ]
2
2020-08-19T12:32:21.000Z
2021-11-08T15:50:08.000Z
configs/configuration_textrnn.py
haodingkui/semeval2020-task5-subtask1
bfd0c808c6b1de910d6f58ea040a13442b4bcdca
[ "MIT" ]
null
null
null
configs/configuration_textrnn.py
haodingkui/semeval2020-task5-subtask1
bfd0c808c6b1de910d6f58ea040a13442b4bcdca
[ "MIT" ]
1
2020-08-19T12:32:48.000Z
2020-08-19T12:32:48.000Z
""" TextRNN model configuration """
27.772727
56
0.657938
b95cfef2234f9a61adbaa0afe2564f0d012dea38
38
py
Python
settings/debug_members.py
akorzunin/telegram_auction_bot
d4d5042614ea11f8085815d8f9fb8b6fbebcfab0
[ "Apache-2.0" ]
null
null
null
settings/debug_members.py
akorzunin/telegram_auction_bot
d4d5042614ea11f8085815d8f9fb8b6fbebcfab0
[ "Apache-2.0" ]
null
null
null
settings/debug_members.py
akorzunin/telegram_auction_bot
d4d5042614ea11f8085815d8f9fb8b6fbebcfab0
[ "Apache-2.0" ]
null
null
null
DEBUG_MEMBER_LIST = [ 503131177, ]
12.666667
21
0.684211
b95d4a692bcb2991f35a3f589cde3570c4033e09
29,218
py
Python
metrics/pointops/pointops_util.py
JiazeWang/SP-GAN
455003f78b1160ebe0a2056005b069808c0df35b
[ "MIT" ]
73
2021-05-11T12:00:29.000Z
2022-03-31T09:40:12.000Z
metrics/pointops/pointops_util.py
JiazeWang/SP-GAN
455003f78b1160ebe0a2056005b069808c0df35b
[ "MIT" ]
6
2021-08-18T13:03:43.000Z
2022-03-30T04:48:29.000Z
metrics/pointops/pointops_util.py
JiazeWang/SP-GAN
455003f78b1160ebe0a2056005b069808c0df35b
[ "MIT" ]
13
2021-08-28T20:09:13.000Z
2022-03-20T12:42:51.000Z
from typing import Tuple import torch from torch.autograd import Function import torch.nn as nn from metrics.pointops import pointops_cuda import numpy as np furthestsampling = FurthestSampling.apply gathering = Gathering.apply nearestneighbor = NearestNeighbor.apply interpolation = Interpolation.apply gro...
37.458974
145
0.585906
b95d5c160689db0e0a64a0a455645d72081698d5
2,992
py
Python
core/src/zeit/cms/content/caching.py
rickdg/vivi
16134ac954bf8425646d4ad47bdd1f372e089355
[ "BSD-3-Clause" ]
5
2019-05-16T09:51:29.000Z
2021-05-31T09:30:03.000Z
core/src/zeit/cms/content/caching.py
rickdg/vivi
16134ac954bf8425646d4ad47bdd1f372e089355
[ "BSD-3-Clause" ]
107
2019-05-24T12:19:02.000Z
2022-03-23T15:05:56.000Z
core/src/zeit/cms/content/caching.py
rickdg/vivi
16134ac954bf8425646d4ad47bdd1f372e089355
[ "BSD-3-Clause" ]
3
2020-08-14T11:01:17.000Z
2022-01-08T17:32:19.000Z
from collections import defaultdict from logging import getLogger from operator import itemgetter from os import environ from time import time from zope.cachedescriptors.property import Lazy as cachedproperty from zeit.cms.content.sources import FEATURE_TOGGLES from zope.component import getUtility from zeit.connector....
32.521739
78
0.57988
b95e87663683cd1ca4cf5da88872ac29da6e83c7
1,177
py
Python
genesis/project.py
genialis/genesis-genapi
dfe9bcc8b332a8b9873db4ab9994b0cc10eb209a
[ "Apache-2.0" ]
3
2020-01-24T17:03:23.000Z
2021-03-16T03:20:31.000Z
genesis/project.py
genialis/genesis-genapi
dfe9bcc8b332a8b9873db4ab9994b0cc10eb209a
[ "Apache-2.0" ]
1
2018-02-15T19:33:00.000Z
2018-02-15T19:33:00.000Z
genesis/project.py
genialis/genesis-genapi
dfe9bcc8b332a8b9873db4ab9994b0cc10eb209a
[ "Apache-2.0" ]
6
2015-05-27T10:14:46.000Z
2021-01-01T06:35:40.000Z
"""Project""" from __future__ import absolute_import, division, print_function, unicode_literals
30.973684
84
0.619371
b95f2f6c2258ef8998ac2a053019013dbf870640
2,351
py
Python
account/views.py
KimSoungRyoul/drf_unitteset_study_project
9a0d824bdc6343eeba6209299c077a6e9d280516
[ "MIT" ]
null
null
null
account/views.py
KimSoungRyoul/drf_unitteset_study_project
9a0d824bdc6343eeba6209299c077a6e9d280516
[ "MIT" ]
null
null
null
account/views.py
KimSoungRyoul/drf_unitteset_study_project
9a0d824bdc6343eeba6209299c077a6e9d280516
[ "MIT" ]
null
null
null
# Create your views here. from django.db.models import QuerySet from django.utils.decorators import method_decorator from drf_yasg.utils import swagger_auto_schema from rest_framework import viewsets, status from rest_framework.permissions import IsAuthenticated, AllowAny from rest_framework.response import Response fr...
40.534483
103
0.722671
b95fe9aa9fab4f285d9028f8b01c9820d83254e4
3,831
py
Python
src/front-door/azext_front_door/_validators.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
207
2017-11-29T06:59:41.000Z
2022-03-31T10:00:53.000Z
src/front-door/azext_front_door/_validators.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
4,061
2017-10-27T23:19:56.000Z
2022-03-31T23:18:30.000Z
src/front-door/azext_front_door/_validators.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
802
2017-10-11T17:36:26.000Z
2022-03-31T22:24:32.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
35.472222
119
0.645262
b960f3f5be88ef82754359823e7c6a9b7ed78089
7,763
py
Python
mimesis/data/int/development.py
DevAerial/mimesis
33c58ae43e2f6ebc11e5ea7ebe8ac8917b2e1c0b
[ "MIT" ]
null
null
null
mimesis/data/int/development.py
DevAerial/mimesis
33c58ae43e2f6ebc11e5ea7ebe8ac8917b2e1c0b
[ "MIT" ]
1
2022-03-26T07:46:59.000Z
2022-03-26T07:47:20.000Z
mimesis/data/int/development.py
DevAerial/mimesis
33c58ae43e2f6ebc11e5ea7ebe8ac8917b2e1c0b
[ "MIT" ]
null
null
null
"""Provides all the data related to the development.""" LICENSES = [ "Apache License, 2.0 (Apache-2.0)", "The BSD 3-Clause License", "The BSD 2-Clause License", "GNU General Public License (GPL)", "General Public License (LGPL)", "MIT License (MIT)", "Mozilla Public License 2.0 (MPL-2.0)", ...
17.845977
61
0.551977
b962302fa813576c8cf57a4deea0db5f25dfb918
620
py
Python
docs/mathparse.py
pcmoritz/flow
bc97132e9e2d05262bb6bbad5bda173fd9f4ae92
[ "MIT" ]
16
2018-05-25T06:30:28.000Z
2020-08-08T00:03:47.000Z
docs/mathparse.py
pcmoritz/flow
bc97132e9e2d05262bb6bbad5bda173fd9f4ae92
[ "MIT" ]
46
2018-05-22T21:32:55.000Z
2019-06-12T13:10:02.000Z
docs/mathparse.py
pcmoritz/flow
bc97132e9e2d05262bb6bbad5bda173fd9f4ae92
[ "MIT" ]
6
2018-06-22T14:59:14.000Z
2019-08-29T06:00:34.000Z
""" A preliminary attempt at parsing an RST file's math syntax in order to make math render as inline rather than display mode. This doesn't work as of yet but might be useful. It could, however, be not useful if there's a pandoc option for converting .md to .rst that makes math inline and not display. Keeping it arou...
22.962963
70
0.693548
b96253f9f9bc87e42d80842aebed3aa7dacb859b
1,994
py
Python
lib/layout/primitives.py
tailhook/pyzza
610be6ee4bea9b64f8226faf7338523fdafdf2cf
[ "MIT" ]
2
2015-08-07T15:39:25.000Z
2019-03-31T12:45:37.000Z
lib/layout/primitives.py
tailhook/pyzza
610be6ee4bea9b64f8226faf7338523fdafdf2cf
[ "MIT" ]
null
null
null
lib/layout/primitives.py
tailhook/pyzza
610be6ee4bea9b64f8226faf7338523fdafdf2cf
[ "MIT" ]
null
null
null
from layout import Shape, Widget from flash.text.engine import TextBlock, TextElement
32.688525
70
0.609829
b963a238595dc05d6bc40e6f5888099b52a8fc14
20,515
py
Python
tests/testing_server.py
ImportTaste/WebRequest
0cc385622624de16ec980e0c12d9080d593cab74
[ "WTFPL" ]
null
null
null
tests/testing_server.py
ImportTaste/WebRequest
0cc385622624de16ec980e0c12d9080d593cab74
[ "WTFPL" ]
null
null
null
tests/testing_server.py
ImportTaste/WebRequest
0cc385622624de16ec980e0c12d9080d593cab74
[ "WTFPL" ]
null
null
null
import traceback import uuid import socket import logging import os import base64 import zlib import gzip import time import datetime from http import cookies from http.server import BaseHTTPRequestHandler from http.server import HTTPServer from threading import Thread import WebRequest if __name__ == '__main__'...
32.929374
165
0.640653
b963e6196b8baa521ce89adb40142bf81a9183a6
3,770
py
Python
calcgrades.py
qrowsxi/calcgrades
93c71c1afef8dde5174726ae1702b71ccba633de
[ "MIT" ]
null
null
null
calcgrades.py
qrowsxi/calcgrades
93c71c1afef8dde5174726ae1702b71ccba633de
[ "MIT" ]
null
null
null
calcgrades.py
qrowsxi/calcgrades
93c71c1afef8dde5174726ae1702b71ccba633de
[ "MIT" ]
null
null
null
import csv import math import numpy as np import pandas import scipy.optimize import sys import argparse if __name__ == '__main__': main()
35.566038
116
0.609284
b9652ceb78b45d3bef98c61d48e3cd4630133615
19,317
py
Python
sdk/python/pulumi_google_native/testing/v1/test_matrix.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
44
2021-04-18T23:00:48.000Z
2022-02-14T17:43:15.000Z
sdk/python/pulumi_google_native/testing/v1/test_matrix.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
354
2021-04-16T16:48:39.000Z
2022-03-31T17:16:39.000Z
sdk/python/pulumi_google_native/testing/v1/test_matrix.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
8
2021-04-24T17:46:51.000Z
2022-01-05T10:40:21.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
50.436031
458
0.67671
b965c021bcb2dac479172708e85ad9ed89f09ef2
5,427
py
Python
View/View.py
MoriokaReimen/ConfigHeaderGenerator
73ba5d3bd5269d7e6881ec79b6fc0121ff2fb03e
[ "MIT" ]
null
null
null
View/View.py
MoriokaReimen/ConfigHeaderGenerator
73ba5d3bd5269d7e6881ec79b6fc0121ff2fb03e
[ "MIT" ]
null
null
null
View/View.py
MoriokaReimen/ConfigHeaderGenerator
73ba5d3bd5269d7e6881ec79b6fc0121ff2fb03e
[ "MIT" ]
null
null
null
import tkinter as tk import tkinter.messagebox from Control import Control
43.071429
112
0.629445
b9669e29ffa745ca4256305d7461bcbe497cc930
1,428
py
Python
tests/bugs/core_3355_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2022-02-05T11:37:13.000Z
2022-02-05T11:37:13.000Z
tests/bugs/core_3355_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2021-09-03T11:47:00.000Z
2021-09-03T12:42:10.000Z
tests/bugs/core_3355_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2021-06-30T14:14:16.000Z
2021-06-30T14:14:16.000Z
#coding:utf-8 # # id: bugs.core_3355 # title: Wrong comparsion of DATE and TIMESTAMP if index is used # decription: # tracker_id: CORE-3355 # min_versions: ['2.1.5'] # versions: 3.0 # qmid: None import pytest from firebird.qa import db_factory, isql_act, Action # version: 3.0 # resou...
25.052632
95
0.641457
b967ba0197b144171458b230c2dfe31844ba0b72
5,231
py
Python
dags/download_decrypt_transfer_files.py
hms-dbmi/bch-pic-sure-airflow-dags
0c1e6f07da4e270581942e551ac30284474921d4
[ "Apache-2.0" ]
null
null
null
dags/download_decrypt_transfer_files.py
hms-dbmi/bch-pic-sure-airflow-dags
0c1e6f07da4e270581942e551ac30284474921d4
[ "Apache-2.0" ]
null
null
null
dags/download_decrypt_transfer_files.py
hms-dbmi/bch-pic-sure-airflow-dags
0c1e6f07da4e270581942e551ac30284474921d4
[ "Apache-2.0" ]
null
null
null
""" @author: anilkdegala """ import os from airflow import DAG from airflow.operators.bash_operator import BashOperator from airflow.operators.python_operator import PythonOperator, BranchPythonOperator from datetime import date, timedelta, datetime from collections import OrderedDict from scripts.dag_pebbles import ...
30.770588
171
0.664118
b96834dcae4311b040352e86ae4bdc019619193a
7,518
py
Python
keystone-moon/keystone/endpoint_policy/controllers.py
hashnfv/hashnfv-moon
daaba34fa2ed4426bc0fde359e54a5e1b872208c
[ "Apache-2.0" ]
null
null
null
keystone-moon/keystone/endpoint_policy/controllers.py
hashnfv/hashnfv-moon
daaba34fa2ed4426bc0fde359e54a5e1b872208c
[ "Apache-2.0" ]
null
null
null
keystone-moon/keystone/endpoint_policy/controllers.py
hashnfv/hashnfv-moon
daaba34fa2ed4426bc0fde359e54a5e1b872208c
[ "Apache-2.0" ]
1
2021-03-21T11:38:30.000Z
2021-03-21T11:38:30.000Z
# Copyright 2014 IBM Corp. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
45.017964
79
0.699654
b96893ff0c22487256e91c812d37a56c2c479eb3
11,886
py
Python
src/nibetaseries/cli/run.py
ipacheco-uy/NiBetaSeries
3d8716552f22f925524d80af9aace09469c22d4d
[ "MIT" ]
1
2019-10-03T21:20:48.000Z
2019-10-03T21:20:48.000Z
src/nibetaseries/cli/run.py
ipacheco-uy/NiBetaSeries
3d8716552f22f925524d80af9aace09469c22d4d
[ "MIT" ]
null
null
null
src/nibetaseries/cli/run.py
ipacheco-uy/NiBetaSeries
3d8716552f22f925524d80af9aace09469c22d4d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Module that contains the command line app. Why does this file exist, and why not put this in __main__? You might be tempted to import things from __main__ later, but that will cause problems: the code will get executed twice: - When you run `python -m nibetaser...
46.611765
98
0.595406
b9693ae1ef191dd2735a2abba99bb1bc689af26f
2,727
py
Python
custom_components/senz/config_flow.py
astrandb/senz_hass
6725d37fd9c6d250ac10a16e68c56908bf1c8404
[ "MIT" ]
2
2022-01-15T09:55:58.000Z
2022-02-10T10:13:35.000Z
custom_components/senz/config_flow.py
astrandb/senz_hass
6725d37fd9c6d250ac10a16e68c56908bf1c8404
[ "MIT" ]
4
2022-01-15T19:41:28.000Z
2022-02-14T16:01:47.000Z
custom_components/senz/config_flow.py
astrandb/senz_hass
6725d37fd9c6d250ac10a16e68c56908bf1c8404
[ "MIT" ]
null
null
null
"""Config flow for SENZ WiFi.""" from __future__ import annotations import logging from typing import Any import voluptuous as vol from homeassistant.components import persistent_notification from homeassistant.data_entry_flow import FlowResult from homeassistant.helpers import config_entry_oauth2_flow from .const ...
34.518987
184
0.671067
b9697b05a9b44247d80463465fa92118d707fb98
6,465
py
Python
astropy_helpers/git_helpers.py
bsipocz/astropy-helpers
4999df1cfb6a5022347b0cef9caf8a556517c625
[ "PSF-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
9
2019-12-06T13:12:33.000Z
2021-10-05T12:47:15.000Z
astropy_helpers/git_helpers.py
bsipocz/astropy-helpers
4999df1cfb6a5022347b0cef9caf8a556517c625
[ "PSF-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
2
2019-11-28T17:20:27.000Z
2019-12-09T18:44:35.000Z
astropy_helpers/git_helpers.py
bsipocz/astropy-helpers
4999df1cfb6a5022347b0cef9caf8a556517c625
[ "PSF-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
3
2019-11-28T17:04:22.000Z
2021-10-19T13:12:34.000Z
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ Utilities for retrieving revision information from a project's git repository. """ # Do not remove the following comment; it is used by # astropy_helpers.version_helpers to determine the beginning of the code in # this module # BEGIN import locale ...
33.324742
79
0.612065
b96b280416f0d557826ffa670a7914f2d45e5fc5
526
py
Python
src/sot_talos_balance/test/test_feet_admittance.py
imaroger/sot-talos-balance
5e56700b4e105273ecf6feb3474789beac469a77
[ "BSD-2-Clause" ]
null
null
null
src/sot_talos_balance/test/test_feet_admittance.py
imaroger/sot-talos-balance
5e56700b4e105273ecf6feb3474789beac469a77
[ "BSD-2-Clause" ]
null
null
null
src/sot_talos_balance/test/test_feet_admittance.py
imaroger/sot-talos-balance
5e56700b4e105273ecf6feb3474789beac469a77
[ "BSD-2-Clause" ]
null
null
null
'''Test feet admittance control''' from sot_talos_balance.utils.run_test_utils import run_ft_calibration, run_test, runCommandClient try: # Python 2 input = raw_input # noqa except NameError: pass run_test('appli_feet_admittance.py') run_ft_calibration('robot.ftc') input("Wait before running the test") ...
25.047619
97
0.752852
b96bb8e94e8bbfe556cc0ad3a314b6991573aa47
544
py
Python
tests/test_db.py
davebryson/py-tendermint
ec6a38a54950d9841759b0f2ed93659b58948a03
[ "Apache-2.0" ]
24
2017-08-18T20:36:27.000Z
2020-03-27T08:55:39.000Z
tests/test_db.py
davebryson/py-tendermint
ec6a38a54950d9841759b0f2ed93659b58948a03
[ "Apache-2.0" ]
6
2017-10-14T05:50:34.000Z
2019-06-03T08:39:49.000Z
tests/test_db.py
davebryson/py-tendermint
ec6a38a54950d9841759b0f2ed93659b58948a03
[ "Apache-2.0" ]
5
2018-01-09T11:07:06.000Z
2019-06-02T14:34:34.000Z
import os from tendermint.db import VanillaDB from tendermint.utils import home_dir
20.923077
42
0.621324
b96d766a7c5eab27eb3785b1277b6beccda7c9ed
1,446
py
Python
auth/tests/test_views.py
asb29/Redundant
ee816fd41f9217610bd11f757cf9175288723c70
[ "MIT" ]
null
null
null
auth/tests/test_views.py
asb29/Redundant
ee816fd41f9217610bd11f757cf9175288723c70
[ "MIT" ]
null
null
null
auth/tests/test_views.py
asb29/Redundant
ee816fd41f9217610bd11f757cf9175288723c70
[ "MIT" ]
null
null
null
from django.test import TestCase from django.test import Client
30.125
52
0.53527
b96f6c5854c1e905c9ad5d8f08d016972c710a1f
4,134
py
Python
projects/OneNet/onenet/head.py
iFighting/OneNet
6e33b46d2aa13131262833c75f0fd1c3d224ef03
[ "MIT" ]
2
2021-06-16T01:31:17.000Z
2021-11-25T15:27:28.000Z
projects/OneNet/onenet/head.py
xieenze/OneNet
3b06ad6832727cef4c0262389de4cdbb2a666197
[ "MIT" ]
null
null
null
projects/OneNet/onenet/head.py
xieenze/OneNet
3b06ad6832727cef4c0262389de4cdbb2a666197
[ "MIT" ]
1
2021-02-04T06:38:42.000Z
2021-02-04T06:38:42.000Z
# # Modified by Peize Sun # Contact: sunpeize@foxmail.com # # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved """ OneNet Transformer class. Copy-paste from torch.nn.Transformer with modifications: * positional encodings are passed in MHattention * extra LN at the end of encoder is removed ...
32.296875
94
0.600871
b96fae5c29fd446ea7199733a629bbe0f6190046
49,876
py
Python
mermaid/utils.py
HastingsGreer/mermaid
bd13c5fc427eb8cd9054973a8eaaeb302078182d
[ "Apache-2.0" ]
120
2019-10-29T23:53:02.000Z
2022-03-30T02:59:58.000Z
mermaid/utils.py
AlexanderChristgau/mermaid
ba07883cc3cb5982e4655048a434b4495cb49c6d
[ "Apache-2.0" ]
10
2019-11-05T09:28:35.000Z
2022-01-09T19:12:51.000Z
mermaid/utils.py
AlexanderChristgau/mermaid
ba07883cc3cb5982e4655048a434b4495cb49c6d
[ "Apache-2.0" ]
19
2019-11-10T13:34:39.000Z
2022-03-13T20:30:10.000Z
"""Various utility functions. .. todo:: Reorganize this package in a more meaningful way. """ from __future__ import print_function from __future__ import absolute_import # from builtins import str # from builtins import range import torch from torch.nn.parameter import Parameter from torch.autograd import Variab...
34.805304
130
0.602675
b96fca03cef0164231c4fa09bc83db6c5b2aa7db
1,093
py
Python
examples/io/plot_read_evoked.py
fmamashli/mne-python
52f064415e7c9fa8fe243d22108dcdf3d86505b9
[ "BSD-3-Clause" ]
3
2021-01-04T08:45:56.000Z
2021-05-19T12:25:59.000Z
examples/io/plot_read_evoked.py
fmamashli/mne-python
52f064415e7c9fa8fe243d22108dcdf3d86505b9
[ "BSD-3-Clause" ]
28
2020-05-07T00:58:34.000Z
2020-08-29T23:02:17.000Z
examples/io/plot_read_evoked.py
fmamashli/mne-python
52f064415e7c9fa8fe243d22108dcdf3d86505b9
[ "BSD-3-Clause" ]
3
2019-01-28T13:48:00.000Z
2019-07-10T16:02:11.000Z
""" ================================== Reading and writing an evoked file ================================== This script shows how to read and write evoked datasets. """ # Author: Alexandre Gramfort <alexandre.gramfort@inria.fr> # # License: BSD (3-clause) from mne import read_evokeds from mne.datasets import sample ...
29.540541
79
0.569076
b970d836b7397be4bc4d63762c0eec8adfb90a91
611
py
Python
source/monkeyPatches/__init__.py
lukaszgo1/nvda
38a2efd1e1bff7db4471cb7afa03ab1590b7adef
[ "bzip2-1.0.6" ]
19
2016-05-11T05:15:31.000Z
2022-03-17T12:40:10.000Z
source/monkeyPatches/__init__.py
lukaszgo1/nvda
38a2efd1e1bff7db4471cb7afa03ab1590b7adef
[ "bzip2-1.0.6" ]
307
2015-08-27T11:22:33.000Z
2022-03-29T10:43:34.000Z
source/monkeyPatches/__init__.py
lukaszgo1/nvda
38a2efd1e1bff7db4471cb7afa03ab1590b7adef
[ "bzip2-1.0.6" ]
14
2016-03-28T07:31:49.000Z
2022-03-30T04:56:35.000Z
# A part of NonVisual Desktop Access (NVDA) # Copyright (C) 2021 NV Access Limited # This file is covered by the GNU General Public License. # See the file COPYING for more details. from . import wxMonkeyPatches applyWxMonkeyPatches = wxMonkeyPatches.apply
30.55
86
0.761047
b970f8ccb56e24dd8d65fd92869bbf7790f6e611
5,298
py
Python
yt_dlp/extractor/ninenow.py
nxtreaming/yt-dlp
385ffb467b2285e85a2a5495b90314ba1f8e0700
[ "Unlicense" ]
11
2022-01-06T22:09:50.000Z
2022-03-12T22:26:22.000Z
yt_dlp/extractor/ninenow.py
nxtreaming/yt-dlp
385ffb467b2285e85a2a5495b90314ba1f8e0700
[ "Unlicense" ]
4
2022-02-25T08:20:18.000Z
2022-03-17T16:16:20.000Z
yt_dlp/extractor/ninenow.py
nxtreaming/yt-dlp
385ffb467b2285e85a2a5495b90314ba1f8e0700
[ "Unlicense" ]
3
2022-02-19T08:59:13.000Z
2022-03-06T16:11:21.000Z
from .common import InfoExtractor from ..compat import compat_str from ..utils import ( ExtractorError, int_or_none, float_or_none, smuggle_url, str_or_none, try_get, unified_strdate, unified_timestamp, )
43.073171
146
0.575123
b97242dec299cf214174fe1ceb1c2d4c7e16b595
4,783
py
Python
apex/fp16_utils/fused_weight_norm.py
mcarilli/apex
766e36c9e10fe4efd847c3f77c3b38974c89eab1
[ "BSD-3-Clause" ]
1
2020-05-05T01:37:42.000Z
2020-05-05T01:37:42.000Z
apex/fp16_utils/fused_weight_norm.py
mcarilli/apex
766e36c9e10fe4efd847c3f77c3b38974c89eab1
[ "BSD-3-Clause" ]
1
2018-06-24T18:56:56.000Z
2018-06-24T18:56:56.000Z
apex/fp16_utils/fused_weight_norm.py
mcarilli/apex
766e36c9e10fe4efd847c3f77c3b38974c89eab1
[ "BSD-3-Clause" ]
1
2020-07-03T00:37:20.000Z
2020-07-03T00:37:20.000Z
import torch from torch.autograd import Variable from torch.autograd.function import Function, once_differentiable import apex_C
41.95614
175
0.604223
b9724b70833f729e47c38eb018294247250b7282
23,312
py
Python
bzt/modules/grinder.py
gerardorf/taurus
610872b4cf70af31d79a346db1aebd3466310d77
[ "Apache-2.0" ]
1
2019-01-15T17:23:58.000Z
2019-01-15T17:23:58.000Z
bzt/modules/grinder.py
gerardorf/taurus
610872b4cf70af31d79a346db1aebd3466310d77
[ "Apache-2.0" ]
null
null
null
bzt/modules/grinder.py
gerardorf/taurus
610872b4cf70af31d79a346db1aebd3466310d77
[ "Apache-2.0" ]
null
null
null
""" Module holds all stuff regarding Grinder tool usage Copyright 2015 BlazeMeter 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 require...
40.82662
119
0.618823
b972e358701b6b26d8d3c931dfecc57580620c15
467
py
Python
test/Fortran/fixture/myfortran_flags.py
moroten/scons
20927b42ed4f0cb87f51287fa3b4b6cf915afcf8
[ "MIT" ]
1,403
2017-11-23T14:24:01.000Z
2022-03-30T20:59:39.000Z
test/Fortran/fixture/myfortran_flags.py
moroten/scons
20927b42ed4f0cb87f51287fa3b4b6cf915afcf8
[ "MIT" ]
3,708
2017-11-27T13:47:12.000Z
2022-03-29T17:21:17.000Z
test/Fortran/fixture/myfortran_flags.py
moroten/scons
20927b42ed4f0cb87f51287fa3b4b6cf915afcf8
[ "MIT" ]
281
2017-12-01T23:48:38.000Z
2022-03-31T15:25:44.000Z
import getopt import sys comment = ('#' + sys.argv[1]).encode() opts, args = getopt.getopt(sys.argv[2:], 'cf:o:xy') optstring = '' length = len(comment) for opt, arg in opts: if opt == '-o': out = arg elif opt not in ('-f', '-K'): optstring = optstring + ' ' + opt infile = open(args[0], 'rb') outfile = open(out...
27.470588
67
0.601713
b9736fc25869ac44481082e255dc93e0f52aa441
9,015
py
Python
zen_knit/organizer/__init__.py
Zen-Reportz/zen_knit
104c2693d2cc61520657131da769f5d59d2df8e9
[ "MIT" ]
30
2021-12-25T15:39:42.000Z
2022-02-25T04:53:44.000Z
zen_knit/organizer/__init__.py
Zen-Reportz/zen_knit
104c2693d2cc61520657131da769f5d59d2df8e9
[ "MIT" ]
11
2022-01-02T22:10:07.000Z
2022-02-02T00:56:33.000Z
zen_knit/organizer/__init__.py
Zen-Reportz/zen_knit
104c2693d2cc61520657131da769f5d59d2df8e9
[ "MIT" ]
2
2022-01-27T13:22:46.000Z
2022-01-30T05:01:59.000Z
import io import os import base64 from pathlib import Path from nbconvert import filters from pygments.formatters.latex import LatexFormatter from zen_knit import formattor from zen_knit.data_types import ChunkOption, ExecutedData, OrganizedChunk, OrganizedData from zen_knit.formattor.html_formatter import HTMLFormat...
37.5625
139
0.533888
b974558759b358f82c2d72d79bab9c7dc3e35a76
12,467
py
Python
qibullet/robot_virtual.py
mcaniot/qibullet
9c5e1b319a18dd289263eb82f9d7303429bcbe21
[ "Apache-2.0" ]
null
null
null
qibullet/robot_virtual.py
mcaniot/qibullet
9c5e1b319a18dd289263eb82f9d7303429bcbe21
[ "Apache-2.0" ]
null
null
null
qibullet/robot_virtual.py
mcaniot/qibullet
9c5e1b319a18dd289263eb82f9d7303429bcbe21
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 import sys import pybullet from qibullet.camera import * from qibullet.link import Link from qibullet.joint import Joint IS_VERSION_PYTHON_3 = sys.version_info[0] >= 3
35.31728
79
0.593006
b974d5d1bd35654f50415a8f7c66f3fb9a0316ab
704
py
Python
tests/test_formatter.py
hbraux/kafkacli
5f7ed23150932b66b484fb43dd6210b6c0968776
[ "MIT" ]
null
null
null
tests/test_formatter.py
hbraux/kafkacli
5f7ed23150932b66b484fb43dd6210b6c0968776
[ "MIT" ]
null
null
null
tests/test_formatter.py
hbraux/kafkacli
5f7ed23150932b66b484fb43dd6210b6c0968776
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import pytest import json from kafkacli.formatter import Formatter sampleJson = json.loads('{"a":"s", "b":1}')
24.275862
62
0.640625
b9750e636d7a3d49a65558af431533fc2e745edb
187
py
Python
src/jobs/forms.py
arc198/DJANGO-JOB-SITE
d9547c4ee85751677ba6458380b609973c3b4a8d
[ "MIT" ]
20
2018-05-04T18:42:35.000Z
2021-03-18T07:15:12.000Z
src/jobs/forms.py
fleepgeek/django-jobsite
d9547c4ee85751677ba6458380b609973c3b4a8d
[ "MIT" ]
5
2020-02-11T22:22:33.000Z
2021-06-10T20:18:05.000Z
src/jobs/forms.py
arc198/DJANGO-JOB-SITE
d9547c4ee85751677ba6458380b609973c3b4a8d
[ "MIT" ]
8
2018-05-04T19:03:23.000Z
2020-09-23T00:24:46.000Z
from django import forms from .models import Application
23.375
44
0.700535
b975e6fb7fb3fa8849afb4e4ce41618c2ce94c1b
451
py
Python
src/test/tests/unit/protocol.py
ylee88/visit
8e0920996d84fef70a7014b0d770360918d849d5
[ "BSD-3-Clause" ]
1
2022-01-27T23:52:04.000Z
2022-01-27T23:52:04.000Z
src/test/tests/unit/protocol.py
ylee88/visit
8e0920996d84fef70a7014b0d770360918d849d5
[ "BSD-3-Clause" ]
null
null
null
src/test/tests/unit/protocol.py
ylee88/visit
8e0920996d84fef70a7014b0d770360918d849d5
[ "BSD-3-Clause" ]
null
null
null
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: protocolo.py # # Tests: vistprotocol unit test # # Mark C. Miller, Tue Jan 11 10:19:23 PST 2011 # ---------------------------------------------------------------------------- tapp = visit_bin_path(...
26.529412
78
0.432373
b97645cb1bc48b7d30c6b37e139952912087b791
3,348
py
Python
pyMazeBacktrack.py
Dozed12/pyMazeBacktrack
aaa2a902fdca17dca6e2ee00e672b6bb38da5639
[ "MIT" ]
2
2019-02-22T10:35:25.000Z
2020-08-11T01:25:12.000Z
pyMazeBacktrack.py
Dozed12/pyMazeBacktrack
aaa2a902fdca17dca6e2ee00e672b6bb38da5639
[ "MIT" ]
null
null
null
pyMazeBacktrack.py
Dozed12/pyMazeBacktrack
aaa2a902fdca17dca6e2ee00e672b6bb38da5639
[ "MIT" ]
null
null
null
import libtcodpy as libtcod from random import randint nSquares = 30 nTiles = nSquares * 2 + 1 SCREEN_WIDTH = nTiles SCREEN_HEIGHT = nTiles libtcod.console_set_custom_font("cp437_12x12.png", libtcod.FONT_LAYOUT_ASCII_INROW) libtcod.console_init_root(SCREEN_WIDTH, SCREEN_HEIGHT, 'pyMazeBacktrack', False, li...
20.168675
106
0.496416
b978586a0e39802db346feaf3a0aa1c91c336f05
3,011
py
Python
source/tests/test_resources.py
aws-solutions/maintaining-personalized-experiences-with-machine-learning
3f6f1b0069df4828eae9b0835b717500189e4f71
[ "Apache-2.0" ]
6
2021-09-23T16:33:24.000Z
2022-03-31T11:45:13.000Z
source/tests/test_resources.py
aws-solutions/maintaining-personalized-experiences-with-machine-learning
3f6f1b0069df4828eae9b0835b717500189e4f71
[ "Apache-2.0" ]
4
2021-09-24T21:34:14.000Z
2022-01-27T22:11:08.000Z
source/tests/test_resources.py
aws-solutions/maintaining-personalized-experiences-with-machine-learning
3f6f1b0069df4828eae9b0835b717500189e4f71
[ "Apache-2.0" ]
9
2021-09-23T23:24:46.000Z
2022-02-12T04:53:16.000Z
# ###################################################################################################################### # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # # ...
42.408451
120
0.454334
b9787b11fbcd5779df09a2f0f27e44e75ad576ac
1,870
py
Python
app_venv/Lib/site-packages/phonenumbers/data/region_AG.py
orlandofv/sianna
f07dd6dbc62a9604f31ab800e482e62f14fba766
[ "MIT" ]
null
null
null
app_venv/Lib/site-packages/phonenumbers/data/region_AG.py
orlandofv/sianna
f07dd6dbc62a9604f31ab800e482e62f14fba766
[ "MIT" ]
null
null
null
app_venv/Lib/site-packages/phonenumbers/data/region_AG.py
orlandofv/sianna
f07dd6dbc62a9604f31ab800e482e62f14fba766
[ "MIT" ]
null
null
null
"""Auto-generated file, do not edit by hand. AG metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_AG = PhoneMetadata(id='AG', country_code=1, international_prefix='011', general_desc=PhoneNumberDesc(national_number_pattern='(?:268|[58]\\d\\d|900)\\d{7}', possible_l...
103.888889
352
0.711765
b97884a1b2bbd76cce01bb9efe2744d31832af25
2,182
py
Python
gradefiles-send.py
lapets/bu-gsubmit-grading
69c40a763908be1c954dce3e5e5aab854ac379ff
[ "MIT" ]
3
2016-10-03T15:29:20.000Z
2019-06-28T17:33:06.000Z
gradefiles-send.py
lapets/bu-gsubmit-grading
69c40a763908be1c954dce3e5e5aab854ac379ff
[ "MIT" ]
null
null
null
gradefiles-send.py
lapets/bu-gsubmit-grading
69c40a763908be1c954dce3e5e5aab854ac379ff
[ "MIT" ]
null
null
null
##################################################################### ## ## gradefiles-send.py ## ## Script to send grade files by email to enrolled students; the ## input grade file names should correspond to the user names of ## the students. ## ## from email.mime.text import MIMEText # For creating a message...
33.569231
112
0.519707
b9789c0f2981942a54633089abdf3245b58a73a3
1,227
py
Python
Publisher/PGGAN-1024 trained on CelebaHQ/2-exporter.py
GalAster/16
47560a2132fbe4dda35a35dedfd7d8e6a8acc35a
[ "Unlicense" ]
3
2019-10-03T01:51:38.000Z
2019-10-04T16:15:43.000Z
Publisher/PGGAN-1024 trained on CelebaHQ/2-exporter.py
GalAster/16
47560a2132fbe4dda35a35dedfd7d8e6a8acc35a
[ "Unlicense" ]
null
null
null
Publisher/PGGAN-1024 trained on CelebaHQ/2-exporter.py
GalAster/16
47560a2132fbe4dda35a35dedfd7d8e6a8acc35a
[ "Unlicense" ]
1
2020-03-17T12:58:52.000Z
2020-03-17T12:58:52.000Z
import os import pickle import tensorflow as tf import wolframclient.serializers as wxf name = 'karras2018iclr-celebahq-1024x1024' file = open(name + '.pkl', 'rb') sess = tf.InteractiveSession() G, D, Gs = pickle.load(file) saver = tf.train.Saver() save_path = "./target/" + name + "/" model_name = 'model' if not os.pa...
34.083333
74
0.726976
b978dfcb152bc099b2de54896ed9a54dfbc29639
6,890
py
Python
src/moveGoogle.py
Quanta-Robotics/Robot-Blueberry
7b7e77e09ac5e9ec5afd947e0db1ecc8773e56da
[ "MIT" ]
25
2021-06-08T07:09:30.000Z
2021-12-30T06:28:35.000Z
src/moveGoogle.py
ICT-CoU/Robot-Blueberry
d19fd1be037df9d67de64df57a87006d74cd6c43
[ "MIT" ]
2
2021-05-23T12:54:51.000Z
2021-06-07T17:47:56.000Z
src/moveGoogle.py
ICT-CoU/Robot-Blueberry
d19fd1be037df9d67de64df57a87006d74cd6c43
[ "MIT" ]
14
2021-06-08T13:02:28.000Z
2021-12-30T20:07:18.000Z
#!/usr/bin/env python import os import os.path import yaml import time import random import multiprocessing import RPi.GPIO as GPIO from talk import say GPIO.setwarnings(False) GPIO.setmode(GPIO.BCM) from adafruit_servokit import ServoKit Motor1 = {'EN': 27, 'input1': 19, 'input2': 16} Motor2 = {'EN': 22, 'input1': 2...
25.330882
154
0.560377
b978fbbcd4002601ca1e2723cae4385002e671d8
2,063
py
Python
src/onegov/translator_directory/models/language.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/translator_directory/models/language.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/translator_directory/models/language.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from uuid import uuid4 from sqlalchemy import Index, Column, Text, Table, ForeignKey from sqlalchemy.orm import object_session from onegov.core.orm import Base from onegov.core.orm.types import UUID spoken_association_table = Table( 'spoken_lang_association', Base.metadata, Column( 'translator_i...
25.469136
79
0.650994
b97a0b2a9f0b601569ce8973596517ed7d8790ec
3,588
py
Python
tfjs-converter/python/tensorflowjs/converters/graph_rewrite_util.py
djemeljanovs/tfjs
ee4430cd7a04283ec09184a3fe9d3fb27496f1dc
[ "Apache-2.0" ]
null
null
null
tfjs-converter/python/tensorflowjs/converters/graph_rewrite_util.py
djemeljanovs/tfjs
ee4430cd7a04283ec09184a3fe9d3fb27496f1dc
[ "Apache-2.0" ]
null
null
null
tfjs-converter/python/tensorflowjs/converters/graph_rewrite_util.py
djemeljanovs/tfjs
ee4430cd7a04283ec09184a3fe9d3fb27496f1dc
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google 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, s...
33.849057
80
0.726031
b97af59ee4283114481f3e83dc8e3cf6244bb61c
1,014
py
Python
loss_fn/classification_loss_fns/binary_cross_entropy.py
apple/ml-cvnets
84d992f413e52c0468f86d23196efd9dad885e6f
[ "AML" ]
209
2021-10-30T08:32:10.000Z
2022-03-31T16:18:03.000Z
loss_fn/classification_loss_fns/binary_cross_entropy.py
apple/ml-cvnets
84d992f413e52c0468f86d23196efd9dad885e6f
[ "AML" ]
12
2021-12-04T10:47:11.000Z
2022-03-31T15:39:40.000Z
loss_fn/classification_loss_fns/binary_cross_entropy.py
apple/ml-cvnets
84d992f413e52c0468f86d23196efd9dad885e6f
[ "AML" ]
50
2021-11-01T08:15:02.000Z
2022-03-29T08:17:34.000Z
# # For licensing see accompanying LICENSE file. # Copyright (C) 2022 Apple Inc. All Rights Reserved. # from torch.nn import functional as F from torch import Tensor import argparse from . import register_classification_loss_fn from .. import BaseCriteria
28.166667
87
0.667653
b97c7f15dd61f4851cffcb3982337f852b3b8da5
576
py
Python
Sorting/insertion_sort.py
lakshyarawal/pythonPractice
4b400342198a8270c5ac0c6306afb555f927c6c1
[ "MIT" ]
null
null
null
Sorting/insertion_sort.py
lakshyarawal/pythonPractice
4b400342198a8270c5ac0c6306afb555f927c6c1
[ "MIT" ]
null
null
null
Sorting/insertion_sort.py
lakshyarawal/pythonPractice
4b400342198a8270c5ac0c6306afb555f927c6c1
[ "MIT" ]
null
null
null
""" Insertion Sort Algorithm:""" """Implementation""" # Using the special variable # __name__ if __name__ == "__main__": main()
19.2
65
0.522569
b97c828450c34038ee92e089e3f2b951d2113017
903
py
Python
nipype/interfaces/spm/__init__.py
felixsc1/nipype
e722d6170593583f16ddfcb95473e5d30b5f1d7c
[ "Apache-2.0" ]
8
2019-05-29T09:38:30.000Z
2021-01-20T03:36:59.000Z
nipype/interfaces/spm/__init__.py
felixsc1/nipype
e722d6170593583f16ddfcb95473e5d30b5f1d7c
[ "Apache-2.0" ]
12
2021-03-09T03:01:16.000Z
2022-03-11T23:59:36.000Z
nipype/interfaces/spm/__init__.py
felixsc1/nipype
e722d6170593583f16ddfcb95473e5d30b5f1d7c
[ "Apache-2.0" ]
1
2020-07-17T12:49:49.000Z
2020-07-17T12:49:49.000Z
# -*- coding: utf-8 -*- # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """Top-level namespace for spm.""" from .base import (Info, SPMCommand, logger, no_spm, scans_for_fname, scans_for_fnames) from .preprocess import (FieldMap, Slic...
53.117647
77
0.653378
b97cd7905f5c596cb6d79b67c2c80e83907421d9
8,257
py
Python
network.py
tobloef/neural-network
bd05a8b9eccc0f5a973782247d39f9b5aa33156c
[ "MIT" ]
3
2018-01-06T22:27:58.000Z
2018-08-12T20:29:51.000Z
network.py
tobloef/neural-network
bd05a8b9eccc0f5a973782247d39f9b5aa33156c
[ "MIT" ]
1
2018-03-31T18:49:56.000Z
2018-04-19T04:52:33.000Z
network.py
tobloef/neural-network
bd05a8b9eccc0f5a973782247d39f9b5aa33156c
[ "MIT" ]
null
null
null
import numpy as np from mathUtils import *
53.270968
286
0.657987
b97d4675d330154e0b12b91fbd601affd888ea29
1,901
py
Python
examples/airflow/dags/etl_orders_7_days.py
phixMe/marquez
06d71635369893b371a8a9c9e7023f11d7cbb1f8
[ "Apache-2.0" ]
null
null
null
examples/airflow/dags/etl_orders_7_days.py
phixMe/marquez
06d71635369893b371a8a9c9e7023f11d7cbb1f8
[ "Apache-2.0" ]
null
null
null
examples/airflow/dags/etl_orders_7_days.py
phixMe/marquez
06d71635369893b371a8a9c9e7023f11d7cbb1f8
[ "Apache-2.0" ]
null
null
null
from datetime import datetime from marquez_airflow import DAG from airflow.operators.postgres_operator import PostgresOperator from airflow.utils.dates import days_ago default_args = { 'owner': 'datascience', 'depends_on_past': False, 'start_date': days_ago(1), 'email_on_failure': False, 'email_on_...
29.246154
135
0.681746
b97deb7d2bd255cd9a3d9f169d969333b63452ec
313
py
Python
sample/pizza.py
marianarmorgado/python-starter
8bf3d7a16fd462cf99898c9a82c6e1cf4fc0e7f2
[ "MIT" ]
null
null
null
sample/pizza.py
marianarmorgado/python-starter
8bf3d7a16fd462cf99898c9a82c6e1cf4fc0e7f2
[ "MIT" ]
null
null
null
sample/pizza.py
marianarmorgado/python-starter
8bf3d7a16fd462cf99898c9a82c6e1cf4fc0e7f2
[ "MIT" ]
null
null
null
# store information about a pizza being ordered pizza = { 'crust': 'thick', 'toppings': ['mushrooms', 'extra vegan cheese'] } # summarize the order print("You ordered a " + pizza['crust'] + "-crust pizza" + "with the following toppings:") for topping in pizza['toppings']: print("\t" + topping)
26.083333
59
0.645367
b97e1419e0e45b84ecc462227c812c10beb92718
181
py
Python
YouTube/CursoEmVideo/python/ex012.py
Fh-Shadow/Progamando
f496d83c36e9a079ed06b4e7c34396c57f539de9
[ "MIT" ]
null
null
null
YouTube/CursoEmVideo/python/ex012.py
Fh-Shadow/Progamando
f496d83c36e9a079ed06b4e7c34396c57f539de9
[ "MIT" ]
null
null
null
YouTube/CursoEmVideo/python/ex012.py
Fh-Shadow/Progamando
f496d83c36e9a079ed06b4e7c34396c57f539de9
[ "MIT" ]
null
null
null
a = float(input('Qual o preo do produto? R$')) d = a - (a * 23 / 100) print('O produto que custava R${:.2f}, na promoo de 23% de desconto vai custar: R${:.2f}' .format(a, d))
45.25
106
0.607735
b97e5feb1052b87d359d8e3d9f63ba930bff8e66
15,038
py
Python
dnnlib/submission/submit.py
gperdrizet/gansformer
c68ba623aa498c83d8df4c4f0a3b5e3f63c773a5
[ "MIT" ]
1,172
2021-03-02T02:00:44.000Z
2022-03-31T02:46:45.000Z
dnnlib/submission/submit.py
gperdrizet/gansformer
c68ba623aa498c83d8df4c4f0a3b5e3f63c773a5
[ "MIT" ]
37
2021-03-03T14:11:11.000Z
2022-03-12T15:40:15.000Z
dnnlib/submission/submit.py
gperdrizet/gansformer
c68ba623aa498c83d8df4c4f0a3b5e3f63c773a5
[ "MIT" ]
138
2021-03-02T06:37:10.000Z
2022-03-30T14:59:09.000Z
# Submit a function to be run either locally or in a computing cluster. # Compared to original StyleGAN implementation, we extend the support for automatic training resumption, # and network recompilation. import copy import inspect import os import pathlib import pickle import platform import pprint import re import s...
43.337176
238
0.691847