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
a0b9a966bb3d4dc9cb061e53454eaa10aa3dca96
1,311
py
Python
q51-75/q63.py
ljn1999/LeetCode-problems
a1ec54c45ef66530bdb58efae6ef2bb059626484
[ "MIT" ]
4
2020-07-10T06:56:36.000Z
2020-07-21T02:39:05.000Z
q51-75/q63.py
ljn1999/LeetCode-problems
a1ec54c45ef66530bdb58efae6ef2bb059626484
[ "MIT" ]
null
null
null
q51-75/q63.py
ljn1999/LeetCode-problems
a1ec54c45ef66530bdb58efae6ef2bb059626484
[ "MIT" ]
null
null
null
# 2020.08.30 # maybe won't do leetcode tomorrow # Problem Statement: # https://leetcode.com/problems/unique-paths-ii/ class Solution: def uniquePathsWithObstacles(self, obstacleGrid: List[List[int]]) -> int: m = len(obstacleGrid[0]) n = len(obstacleGrid) # check corner cases and do...
35.432432
77
0.450038
217234f670f5aa8c3734ea8867c9fb2cac426d3a
2,768
py
Python
Authors' code/Few_shot_learning/utils/helpers.py
onicolini/zero-shot_knowledge_transfer
9dd6d08eadb8243881f0fb8e9ac2d5653dd25229
[ "MIT" ]
null
null
null
Authors' code/Few_shot_learning/utils/helpers.py
onicolini/zero-shot_knowledge_transfer
9dd6d08eadb8243881f0fb8e9ac2d5653dd25229
[ "MIT" ]
null
null
null
Authors' code/Few_shot_learning/utils/helpers.py
onicolini/zero-shot_knowledge_transfer
9dd6d08eadb8243881f0fb8e9ac2d5653dd25229
[ "MIT" ]
1
2019-10-27T15:44:17.000Z
2019-10-27T15:44:17.000Z
import matplotlib import matplotlib.pyplot as plt import numpy as np import torch import torchvision import argparse import os class AggregateScalar(object): """ Computes and stores the average and std of stream. Mostly used to average losses and accuracies. """ def __init__(self): self.res...
28.536082
100
0.597182
358e92d6333eb6ce95756612c6bae9f525cb55c2
503
py
Python
blog/migrations/0014_alter_post_type_food.py
GhasemMatoo/Mysite_Restaurants
f44e0b0374016850cc47f212db0d5693d6de2ee6
[ "MIT" ]
null
null
null
blog/migrations/0014_alter_post_type_food.py
GhasemMatoo/Mysite_Restaurants
f44e0b0374016850cc47f212db0d5693d6de2ee6
[ "MIT" ]
null
null
null
blog/migrations/0014_alter_post_type_food.py
GhasemMatoo/Mysite_Restaurants
f44e0b0374016850cc47f212db0d5693d6de2ee6
[ "MIT" ]
null
null
null
# Generated by Django 3.2.10 on 2021-12-11 15:43 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0013_alter_post_type_food'), ] operations = [ migrations.AlterField( model_name='post', name='Type_Food', ...
26.473684
166
0.604374
6eae337e9a8d9ec657bbe082ad616278c5707f89
1,370
py
Python
custom_components/marshall/__init__.py
patrickbusch/ha-marshall
5d3e7de779650a0b0f3c8ff6ad3041299da53b93
[ "MIT" ]
null
null
null
custom_components/marshall/__init__.py
patrickbusch/ha-marshall
5d3e7de779650a0b0f3c8ff6ad3041299da53b93
[ "MIT" ]
null
null
null
custom_components/marshall/__init__.py
patrickbusch/ha-marshall
5d3e7de779650a0b0f3c8ff6ad3041299da53b93
[ "MIT" ]
null
null
null
"""The Marshall integration.""" import logging # import voluptuous as vol # import homeassistant.helpers.config_validation as cv # from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from .const import DOMAIN from .marshallDevice import get_device _LOGGER = logging.getL...
26.346154
75
0.708029
1f234db2966c5ca2e402ee0f965bd2fe8f811f22
68,911
py
Python
versioneer.py
loopinf/alphalens-reloaded
a43eef10dc1812c42ba9d2c7ec9b7fe33c6e5dd6
[ "Apache-2.0" ]
1
2022-02-16T06:53:08.000Z
2022-02-16T06:53:08.000Z
versioneer.py
kalam360/alphalens-reloaded
7a667af09ba44b808075310924f32c98e019668b
[ "Apache-2.0" ]
1
2022-03-03T10:05:52.000Z
2022-03-03T10:05:52.000Z
versioneer.py
kalam360/alphalens-reloaded
7a667af09ba44b808075310924f32c98e019668b
[ "Apache-2.0" ]
null
null
null
# Version: 0.18 """The Versioneer - like a rocketeer, but for versions. The Versioneer ============== * like a rocketeer, but for versions! * https://github.com/warner/python-versioneer * Brian Warner * License: Public Domain * Compatible With: python2.6, 2.7, 3.2, 3.3, 3.4, 3.5, 3.6, and pypy * [![Latest Version] (...
36.211771
79
0.62096
cab0b2f4c7befcc68761924440da1a02b48be84f
29,279
py
Python
openstackclient/volume/v2/volume.py
mydevice/python-openstackclient
4891bb38208fdcd1a2ae60e47b056841e14fbdf7
[ "Apache-2.0" ]
262
2015-01-29T20:10:49.000Z
2022-03-23T01:59:23.000Z
openstackclient/volume/v2/volume.py
mydevice/python-openstackclient
4891bb38208fdcd1a2ae60e47b056841e14fbdf7
[ "Apache-2.0" ]
5
2015-01-21T02:37:35.000Z
2021-11-23T02:26:00.000Z
openstackclient/volume/v2/volume.py
mydevice/python-openstackclient
4891bb38208fdcd1a2ae60e47b056841e14fbdf7
[ "Apache-2.0" ]
194
2015-01-08T07:39:27.000Z
2022-03-30T13:51:23.000Z
# # 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 # distr...
36.236386
79
0.542915
3bbc7beff352602e5e17375eff054d731c93c4c2
8,576
py
Python
pyHarvest_build_151223/packages/pyHarvest_SMB.py
bl305/pyHarvest
d4c62d443ca657f9d31245c3c3f24c741cf2ae0b
[ "CC0-1.0" ]
null
null
null
pyHarvest_build_151223/packages/pyHarvest_SMB.py
bl305/pyHarvest
d4c62d443ca657f9d31245c3c3f24c741cf2ae0b
[ "CC0-1.0" ]
null
null
null
pyHarvest_build_151223/packages/pyHarvest_SMB.py
bl305/pyHarvest
d4c62d443ca657f9d31245c3c3f24c741cf2ae0b
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 #### #TODO #skipdirs #sizelimit #permissions #### from smb.SMBConnection import SMBConnection import time import os import errno import socket #from datetime import datetime #import re #from StringIO import StringIO def convert_to_unicode(string): if not isinstance(string, u...
29.369863
165
0.692048
852f7c01fb7434bba23cec1b442351afb0937449
213
py
Python
rdkit/sping/PIL/pilfonts/removemedium.py
kazuyaujihara/rdkit
06027dcd05674787b61f27ba46ec0d42a6037540
[ "BSD-3-Clause" ]
1,609
2015-01-05T02:41:13.000Z
2022-03-30T21:57:24.000Z
rdkit/sping/PIL/pilfonts/removemedium.py
kazuyaujihara/rdkit
06027dcd05674787b61f27ba46ec0d42a6037540
[ "BSD-3-Clause" ]
3,412
2015-01-06T12:13:33.000Z
2022-03-31T17:25:41.000Z
rdkit/sping/PIL/pilfonts/removemedium.py
bp-kelley/rdkit
e0de7c9622ce73894b1e7d9568532f6d5638058a
[ "BSD-3-Clause" ]
811
2015-01-11T03:33:48.000Z
2022-03-28T11:57:49.000Z
import os import string for fname in filter(lambda x: '-' in x, os.listdir(os.curdir)): newname = string.replace(fname, '-medium-', '-') if newname != fname: print(newname) os.rename(fname, newname)
21.3
63
0.657277
b58b304564861bc816989ec1d92c3fd2c9226740
3,599
py
Python
packages/models-library/src/models_library/projects_nodes.py
GitHK/osparc-simcore-forked
5b01a28d1b8028afcf9a735e1d46a73daa13686e
[ "MIT" ]
null
null
null
packages/models-library/src/models_library/projects_nodes.py
GitHK/osparc-simcore-forked
5b01a28d1b8028afcf9a735e1d46a73daa13686e
[ "MIT" ]
17
2020-10-15T16:06:05.000Z
2022-03-21T18:48:21.000Z
packages/models-library/src/models_library/projects_nodes.py
GitHK/osparc-simcore-forked
5b01a28d1b8028afcf9a735e1d46a73daa13686e
[ "MIT" ]
null
null
null
""" Models Node as a central element in a project's pipeline """ from typing import Dict, List, Optional, Union from pydantic import BaseModel, Extra, Field, HttpUrl, constr, validator from .basic_regex import VERSION_RE from .projects_access import AccessEnum from .projects_nodes_io import ( DatCoreFileLink...
29.743802
86
0.646291
e4e07c24a0267b5feb3b5ea03a7b13abda8277b7
38
py
Python
pycoinbase/wallet/__init__.py
anton-stefanovich/pycoinbase
74a47fdabfeac69f50cc91dac8ac6bc1190756d7
[ "Apache-2.0" ]
3
2021-03-16T14:07:06.000Z
2021-06-20T04:11:58.000Z
pycoinbase/wallet/__init__.py
anton-stefanovich/pycoinbase
74a47fdabfeac69f50cc91dac8ac6bc1190756d7
[ "Apache-2.0" ]
null
null
null
pycoinbase/wallet/__init__.py
anton-stefanovich/pycoinbase
74a47fdabfeac69f50cc91dac8ac6bc1190756d7
[ "Apache-2.0" ]
1
2021-04-12T12:22:35.000Z
2021-04-12T12:22:35.000Z
# coding: utf-8 __version__ = '2.1.2'
12.666667
21
0.631579
e7549ff73ed12bda06d3315929155a3c65d8a845
6,123
py
Python
build/android/tombstones.py
aranajhonny/chromium
caf5bcb822f79b8997720e589334266551a50a13
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2019-01-16T03:57:39.000Z
2019-01-16T03:57:39.000Z
build/android/tombstones.py
aranajhonny/chromium
caf5bcb822f79b8997720e589334266551a50a13
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2018-02-10T21:00:08.000Z
2018-03-20T05:09:50.000Z
build/android/tombstones.py
aranajhonny/chromium
caf5bcb822f79b8997720e589334266551a50a13
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # # Copyright 2013 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. # # Find the most recent tombstone file(s) on all connected devices # and prints their stacks. # # Assumes tombstone file was created ...
30.768844
80
0.662257
4b50abebe243a3b2d101a59438982d6c79f6539c
59
py
Python
basic/niki.py
fuyongde/python
f73407a1cc981d081760500d8e74d9e4d8873ca3
[ "Apache-2.0" ]
null
null
null
basic/niki.py
fuyongde/python
f73407a1cc981d081760500d8e74d9e4d8873ca3
[ "Apache-2.0" ]
null
null
null
basic/niki.py
fuyongde/python
f73407a1cc981d081760500d8e74d9e4d8873ca3
[ "Apache-2.0" ]
null
null
null
def niki_abs(x, y): return x + y print(niki_abs(1, 3))
14.75
21
0.610169
761ee14213563c123de2681c5067c82478a8bfd4
280
py
Python
test/test_one_var_equations.py
Zibusiso-Mangoye/nma-python
a38e66997291aec07dd7bc34962c80912bc5b020
[ "MIT" ]
1
2021-07-26T14:21:57.000Z
2021-07-26T14:21:57.000Z
test/test_one_var_equations.py
Zibusiso-Mangoye/nma-python
a38e66997291aec07dd7bc34962c80912bc5b020
[ "MIT" ]
null
null
null
test/test_one_var_equations.py
Zibusiso-Mangoye/nma-python
a38e66997291aec07dd7bc34962c80912bc5b020
[ "MIT" ]
null
null
null
""" Tests for one_var_equations.py """ from nma.one_var_equations import bisection def test_bisection(): """ This test is Example 1 in chapter 2 of the textbook. """ f = lambda x : x**3 + 4*x**2 - 10 assert bisection(f, 1, 2, 0.00001, 13) == 1.3651123046875
23.333333
61
0.639286
afc7364ab5f5267c6c9d88c9106afaf0f0b5675b
5,478
py
Python
src/sender/wecom_sender.py
baboon-king/2c
2b1093c9f15c713dac51aec5c1244ec285e49782
[ "Apache-2.0" ]
null
null
null
src/sender/wecom_sender.py
baboon-king/2c
2b1093c9f15c713dac51aec5c1244ec285e49782
[ "Apache-2.0" ]
null
null
null
src/sender/wecom_sender.py
baboon-king/2c
2b1093c9f15c713dac51aec5c1244ec285e49782
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ Created by howie.hu at 2021/4/12. Description:分发到企业微信终端 Changelog: all notable changes to this file will be documented """ import json import time import requests from src.config import Config from src.sender.base import SenderBase from src.sender.utils import send_post_request ...
32.223529
129
0.528112
7efe049c2e528aad7f11357945450cb5ee918e90
20,921
py
Python
octoprint_discordremote/command.py
shaynemk/OctoPrint-DiscordRemote
bbf1c1b7fec49b2dbda6d79411c2a8254a6a2c5f
[ "MIT" ]
null
null
null
octoprint_discordremote/command.py
shaynemk/OctoPrint-DiscordRemote
bbf1c1b7fec49b2dbda6d79411c2a8254a6a2c5f
[ "MIT" ]
null
null
null
octoprint_discordremote/command.py
shaynemk/OctoPrint-DiscordRemote
bbf1c1b7fec49b2dbda6d79411c2a8254a6a2c5f
[ "MIT" ]
null
null
null
from __future__ import unicode_literals import collections import os import urllib import humanfriendly import re import time import requests from octoprint.printer import InvalidFileLocation, InvalidFileType from octoprint_discordremote.command_plugins import plugin_list from octoprint_discordremote.embedbuilder im...
45.879386
123
0.561876
e51d6b52fb134027eed01ee0d8cb5de4356dc3c5
801
py
Python
Curso de Python USP Part1/Exercicios/maior_primo.py
JorgeTranin/Cursos_Coursera
37d26b5f92d9324225f6701d0eb0fd466cff9d86
[ "MIT" ]
null
null
null
Curso de Python USP Part1/Exercicios/maior_primo.py
JorgeTranin/Cursos_Coursera
37d26b5f92d9324225f6701d0eb0fd466cff9d86
[ "MIT" ]
null
null
null
Curso de Python USP Part1/Exercicios/maior_primo.py
JorgeTranin/Cursos_Coursera
37d26b5f92d9324225f6701d0eb0fd466cff9d86
[ "MIT" ]
null
null
null
''' Escreva a função maior_primo que recebe um número inteiro maior ou igual a 2 como parâmetro e devolve o maior número primo menor ou igual ao número passado à função Dica: escreva uma função éPrimo(k) e faça um laço percorrendo os números até o número dado checando se o número é primo ou não; se for, guarde numa va...
25.83871
232
0.615481
9c48e5c2b43536dc03b0f7006a4bf59419c054c2
14,718
py
Python
celeba19/train.py
liuyangdh/multimodal-vae-public
ba5941d010b0164094f5818b93baad9df546494e
[ "MIT" ]
98
2018-05-28T17:07:36.000Z
2022-03-16T03:54:11.000Z
celeba19/train.py
jannik-w/multimodal-vae-public
2a358eb3593e9942e0846eb0095519acef462fa6
[ "MIT" ]
4
2019-04-15T00:40:21.000Z
2020-03-04T06:24:56.000Z
celeba19/train.py
jannik-w/multimodal-vae-public
2a358eb3593e9942e0846eb0095519acef462fa6
[ "MIT" ]
36
2018-08-07T05:02:03.000Z
2022-03-28T05:21:42.000Z
from __future__ import division from __future__ import print_function from __future__ import absolute_import import os import sys import shutil import numpy as np from tqdm import tqdm from itertools import combinations import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F fro...
41.342697
129
0.586425
aade95021b5b45cf12ba9987d9cf63abd061473d
1,369
py
Python
osrsapi/pricetrend.py
XaKingas/osrsapi
14b93e0f6902724e57ebb1f50d817bd557e41c3d
[ "MIT" ]
null
null
null
osrsapi/pricetrend.py
XaKingas/osrsapi
14b93e0f6902724e57ebb1f50d817bd557e41c3d
[ "MIT" ]
null
null
null
osrsapi/pricetrend.py
XaKingas/osrsapi
14b93e0f6902724e57ebb1f50d817bd557e41c3d
[ "MIT" ]
1
2020-07-03T11:24:55.000Z
2020-07-03T11:24:55.000Z
import logging logger = logging.getLogger(__name__) class PriceTrend: _money_shorthands = {"k": 1000, "m": 1000000, "b": 1000000000} def __init__(self, price, trend, change): self.price = self._extract_price(price) self.trend = trend self.change = self._extract_change(change) de...
29.76087
80
0.578524
555f6cbdb382c7259dc8d2b6a431783b5aacdcc1
5,181
py
Python
okta/api_response.py
kclha/okta-sdk-python
8397d09d006f98a253f5adcb4f8f5b63501f8a52
[ "Apache-2.0" ]
1
2021-07-07T15:04:14.000Z
2021-07-07T15:04:14.000Z
okta/api_response.py
kclha/okta-sdk-python
8397d09d006f98a253f5adcb4f8f5b63501f8a52
[ "Apache-2.0" ]
null
null
null
okta/api_response.py
kclha/okta-sdk-python
8397d09d006f98a253f5adcb4f8f5b63501f8a52
[ "Apache-2.0" ]
null
null
null
import json import xmltodict from okta.api_client import APIClient class OktaAPIResponse(): """ Class for defining the wrapper of an Okta API response. Allows for paginated results to be retrieved easily. """ def __init__(self, request_executor, req, res_details, response_body="", ...
30.122093
78
0.562054
da15ab4a8b3081f1bde5f8149975a7020edfc145
2,435
py
Python
alipay/aop/api/domain/AccessReturnQrcode.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/AccessReturnQrcode.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/AccessReturnQrcode.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AccessReturnQrcode(object): def __init__(self): self._asset_purchase_id = None self._express_no = None self._out_biz_no = None self._qrcode = None @property ...
28.313953
85
0.595072
b4500d97deb396458a6739ff5ee0f18abe02db07
2,292
py
Python
hf/protocol/op_power.py
HashFast/hashfast-tools
9617691ac997f12085b688c3ecc6746e8510976d
[ "BSD-3-Clause" ]
1
2020-12-15T02:49:36.000Z
2020-12-15T02:49:36.000Z
hf/protocol/op_power.py
HashFast/hashfast-tools
9617691ac997f12085b688c3ecc6746e8510976d
[ "BSD-3-Clause" ]
null
null
null
hf/protocol/op_power.py
HashFast/hashfast-tools
9617691ac997f12085b688c3ecc6746e8510976d
[ "BSD-3-Clause" ]
3
2015-09-02T00:31:06.000Z
2020-12-15T02:52:06.000Z
# Copyright (c) 2014, HashFast Technologies LLC # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of...
50.933333
110
0.720332
466bb43d18e073f15c8dfb5e12833740cddcfe2f
2,206
py
Python
stinkies/game1/migrations/0001_initial.py
jordan-dimov/stinky-games
175c3fa21276456cb1b58703b835f8393f5b2b4a
[ "CC0-1.0" ]
null
null
null
stinkies/game1/migrations/0001_initial.py
jordan-dimov/stinky-games
175c3fa21276456cb1b58703b835f8393f5b2b4a
[ "CC0-1.0" ]
null
null
null
stinkies/game1/migrations/0001_initial.py
jordan-dimov/stinky-games
175c3fa21276456cb1b58703b835f8393f5b2b4a
[ "CC0-1.0" ]
null
null
null
# Generated by Django 3.1.3 on 2020-11-03 16:21 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django_extensions.db.fields class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settin...
40.851852
144
0.601088
33087f1a3cedd77a3ec42aec43b7b227382620b7
5,225
py
Python
src/main/python/apache/aurora/client/cli/cron.py
brinick/aurora
963700727fe31c75ccf3506bb150e085df80cf3c
[ "Apache-2.0" ]
11
2016-05-25T15:44:34.000Z
2021-07-24T19:37:30.000Z
src/main/python/apache/aurora/client/cli/cron.py
brinick/aurora
963700727fe31c75ccf3506bb150e085df80cf3c
[ "Apache-2.0" ]
1
2022-01-21T23:08:28.000Z
2022-01-21T23:08:28.000Z
src/main/python/apache/aurora/client/cli/cron.py
brinick/aurora
963700727fe31c75ccf3506bb150e085df80cf3c
[ "Apache-2.0" ]
6
2016-05-30T06:41:24.000Z
2022-02-27T10:57:58.000Z
# # Copyright 2014 Apache Software Foundation # # 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 agree...
30.735294
93
0.716746
3569cc911d5295ff855a4209450ea1ceed459178
477
py
Python
SS/offer6_reversePrint.py
MTandHJ/leetcode
f3832ed255d259cb881666ec8bd3de090d34e883
[ "MIT" ]
null
null
null
SS/offer6_reversePrint.py
MTandHJ/leetcode
f3832ed255d259cb881666ec8bd3de090d34e883
[ "MIT" ]
null
null
null
SS/offer6_reversePrint.py
MTandHJ/leetcode
f3832ed255d259cb881666ec8bd3de090d34e883
[ "MIT" ]
null
null
null
from typing import List class ListNode: def __init__(self, val, next=None) -> None: self.val = val self.next = next class Solution: def reversePrint(self, head: ListNode) -> List[int]: stack = list() temp = head while not temp: stack.append(temp) ...
22.714286
56
0.515723
22f6daaf46499ff64b6bd96f8c7258c89d79ef6e
890
py
Python
setup.py
JerryChenn07/CrawlUtils
727e4668ae35975135a0f29bbaa64ab738b6bd29
[ "MIT" ]
1
2021-03-11T03:00:10.000Z
2021-03-11T03:00:10.000Z
setup.py
JerryChenn07/CrawlUtils
727e4668ae35975135a0f29bbaa64ab738b6bd29
[ "MIT" ]
null
null
null
setup.py
JerryChenn07/CrawlUtils
727e4668ae35975135a0f29bbaa64ab738b6bd29
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages # 参考 # https://mp.weixin.qq.com/s/SyMRQ6KUDTGLB9Px9oBPIg # https://github.com/Gerapy/GerapyAutoExtractor/blob/master/setup.py # https://github.com/kingname/GeneralNewsExtractor/blob/master/setup.py def read_file(filename): with open(filename) as fp: return fp.r...
26.176471
71
0.707865
01f3245128a2e3f7c7c7b0e8f77a336a9f070fe4
1,074
py
Python
backend/users/models.py
crowdbotics-apps/soccermatcher-34472
110df5ebc69cfb7c29bc7f219172b9fd0c688c63
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/users/models.py
crowdbotics-apps/soccermatcher-34472
110df5ebc69cfb7c29bc7f219172b9fd0c688c63
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/users/models.py
crowdbotics-apps/soccermatcher-34472
110df5ebc69cfb7c29bc7f219172b9fd0c688c63
[ "FTL", "AML", "RSA-MD" ]
null
null
null
from django.conf import settings from django.contrib.auth.models import AbstractUser from django.db import models from django.urls import reverse from django.utils.translation import ugettext_lazy as _ class User(AbstractUser): # WARNING! """ Some officially supported features of Crowdbotics Dashboard dep...
32.545455
85
0.716015
04df8ddbc918271d3d86a31900397bd7875f4d1d
14,547
py
Python
jax/experimental/optix.py
nirum/jax
3f8c73593d41d4d6711f71851890e2e1ada6063f
[ "ECL-2.0", "Apache-2.0" ]
2
2021-03-27T03:01:52.000Z
2021-04-24T20:24:12.000Z
jax/experimental/optix.py
nirum/jax
3f8c73593d41d4d6711f71851890e2e1ada6063f
[ "ECL-2.0", "Apache-2.0" ]
2
2019-08-15T18:22:52.000Z
2019-08-20T18:19:42.000Z
jax/experimental/optix.py
nirum/jax
3f8c73593d41d4d6711f71851890e2e1ada6063f
[ "ECL-2.0", "Apache-2.0" ]
1
2020-11-22T17:50:23.000Z
2020-11-22T17:50:23.000Z
# Copyright 2018 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
29.447368
83
0.701313
e7d74e4ea995418806c56d05be4fe9151155c358
844
py
Python
lib/fast_rcnn/nms_wrapper.py
stanley-king/cuda10-py3-faster-rcnn
013f99c428874bfd3ddaeed264031143d10a8123
[ "BSD-2-Clause" ]
null
null
null
lib/fast_rcnn/nms_wrapper.py
stanley-king/cuda10-py3-faster-rcnn
013f99c428874bfd3ddaeed264031143d10a8123
[ "BSD-2-Clause" ]
1
2020-12-28T03:20:43.000Z
2020-12-28T03:20:43.000Z
lib/fast_rcnn/nms_wrapper.py
stanley-king/cuda10-py3-faster-rcnn
013f99c428874bfd3ddaeed264031143d10a8123
[ "BSD-2-Clause" ]
null
null
null
# -------------------------------------------------------- # Fast R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick # -------------------------------------------------------- from fast_rcnn.config import cfg from nms.gpu_nms import gpu_nms from n...
29.103448
60
0.598341
53bfa2b2d825acf30feccd0422eab904cebc7f76
27
py
Python
topfarm/constraint_components/__init__.py
DTUWindEnergy/TopFarm2
cba70b20431f7a828370447117fe2e7533edf7c2
[ "MIT" ]
4
2019-02-18T08:46:00.000Z
2021-01-28T06:35:52.000Z
topfarm/constraint_components/__init__.py
DTUWindEnergy/TopFarm2
cba70b20431f7a828370447117fe2e7533edf7c2
[ "MIT" ]
1
2019-11-26T12:12:12.000Z
2019-11-26T12:12:12.000Z
topfarm/constraint_components/__init__.py
DTUWindEnergy/TopFarm2
cba70b20431f7a828370447117fe2e7533edf7c2
[ "MIT" ]
8
2019-01-14T09:33:26.000Z
2021-06-30T11:56:03.000Z
from ._constraint import *
13.5
26
0.777778
85099abe643db0de18e33e08c53cefcb6295e3fd
5,215
py
Python
contrib/linearize/linearize-hashes.py
bbergaoui/bastoji-coin
1752e38216f32c6b1559bc246ec885097dae88c4
[ "MIT" ]
null
null
null
contrib/linearize/linearize-hashes.py
bbergaoui/bastoji-coin
1752e38216f32c6b1559bc246ec885097dae88c4
[ "MIT" ]
null
null
null
contrib/linearize/linearize-hashes.py
bbergaoui/bastoji-coin
1752e38216f32c6b1559bc246ec885097dae88c4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # linearize-hashes.py: List blocks in a linear, no-fork version of the chain. # # Copyright (c) 2013-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # from __future__ impo...
33.216561
108
0.609588
e154a5becd7554e2c0fc8c545038ad2ebe2a2931
3,030
bzl
Python
antlir/bzl/image/package/btrfs.bzl
facebookincubator/fs_image
3515a24bb0e93176a5584bdc8839464fa28390d7
[ "MIT" ]
9
2019-12-02T20:17:35.000Z
2020-06-13T16:34:25.000Z
antlir/bzl/image/package/btrfs.bzl
facebookincubator/fs_image
3515a24bb0e93176a5584bdc8839464fa28390d7
[ "MIT" ]
19
2019-11-22T23:30:04.000Z
2020-07-16T18:05:48.000Z
antlir/bzl/image/package/btrfs.bzl
facebookincubator/fs_image
3515a24bb0e93176a5584bdc8839464fa28390d7
[ "MIT" ]
4
2019-12-04T19:03:28.000Z
2020-06-13T16:34:29.000Z
# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. load("@bazel_skylib//lib:shell.bzl", "shell") load("//antlir/bzl:image_utils.bzl", "image_utils") load("//antlir/bzl:loopback_opts.bzl", "no...
29.417476
85
0.610891
7c65d6bbab26ae7a08c1f7c7a15c03c97541492a
4,087
py
Python
2b.py
dzimiks/raf-ml-homework-1
34b3f1a56da402533ead80283c9d2c9c5dc1f593
[ "MIT" ]
null
null
null
2b.py
dzimiks/raf-ml-homework-1
34b3f1a56da402533ead80283c9d2c9c5dc1f593
[ "MIT" ]
null
null
null
2b.py
dzimiks/raf-ml-homework-1
34b3f1a56da402533ead80283c9d2c9c5dc1f593
[ "MIT" ]
null
null
null
import tensorflow as tf import matplotlib.pyplot as plt import numpy as np # Pomocna funkcija koja od niza trening primera pravi feature matricu (m X n). def create_feature_matrix(x, nb_features): tmp_features = [] for deg in range(1, nb_features + 1): tmp_features.append(np.power(x, deg)) return np.column_stack...
30.051471
106
0.666993
5443390da3009eb5d171b8f7ac521e3fe85ae651
5,325
py
Python
imcsdk/mometa/adaptor/AdaptorConnectorInfo.py
ragupta-git/ImcSdk
2e41f2ffe5282d38de85bc4739fa53dd2f0c9bb4
[ "Apache-2.0" ]
null
null
null
imcsdk/mometa/adaptor/AdaptorConnectorInfo.py
ragupta-git/ImcSdk
2e41f2ffe5282d38de85bc4739fa53dd2f0c9bb4
[ "Apache-2.0" ]
null
null
null
imcsdk/mometa/adaptor/AdaptorConnectorInfo.py
ragupta-git/ImcSdk
2e41f2ffe5282d38de85bc4739fa53dd2f0c9bb4
[ "Apache-2.0" ]
3
2018-11-14T13:02:40.000Z
2018-11-14T13:49:38.000Z
"""This module contains the general information for AdaptorConnectorInfo ManagedObject.""" from ...imcmo import ManagedObject from ...imccoremeta import MoPropertyMeta, MoMeta from ...imcmeta import VersionMeta class AdaptorConnectorInfoConsts: pass class AdaptorConnectorInfo(ManagedObject): """This is Ada...
54.896907
207
0.612394
a36583e675c39cb825c3629d31bf9694901dda5d
3,472
py
Python
haproxyspoa/spoa_frame.py
krrg/haproxy-python-spoa
f8a3c4dcea1c0451683dbc89c035009911b234e2
[ "Apache-2.0" ]
4
2021-04-06T01:46:58.000Z
2022-01-10T12:38:29.000Z
haproxyspoa/spoa_frame.py
krrg/haproxy-python-spoa
f8a3c4dcea1c0451683dbc89c035009911b234e2
[ "Apache-2.0" ]
null
null
null
haproxyspoa/spoa_frame.py
krrg/haproxy-python-spoa
f8a3c4dcea1c0451683dbc89c035009911b234e2
[ "Apache-2.0" ]
null
null
null
import asyncio import io from enum import IntEnum from haproxyspoa.payloads.agent_hello import AgentHelloPayload from haproxyspoa.spoa_data_types import parse_varint, write_varint class FrameType(IntEnum): FRAGMENT = 0 HAPROXY_HELLO = 1 HAPROXY_DISCONNECT = 2 HAPROXY_NOTIFY = 3 AGENT_HELLO = 101 ...
28
107
0.644297
3e89689b6001e44408afa7f87a6be59929962a91
8,311
py
Python
barcode/codex.py
goflynn-123/python-barcode
83b7e212dd164ae1520ddeda9479f1f1ae9c2b80
[ "MIT" ]
null
null
null
barcode/codex.py
goflynn-123/python-barcode
83b7e212dd164ae1520ddeda9479f1f1ae9c2b80
[ "MIT" ]
null
null
null
barcode/codex.py
goflynn-123/python-barcode
83b7e212dd164ae1520ddeda9479f1f1ae9c2b80
[ "MIT" ]
null
null
null
"""Module: barcode.codex :Provided barcodes: Code 39, Code 128, PZN """ from barcode.base import Barcode from barcode.charsets import code128, code39 from barcode.errors import ( BarcodeError, IllegalCharacterError, NumberOfDigitsError, ) __docformat__ = 'restructuredtext en' # Sizes MIN_SIZE = 0.2 MIN_...
29.059441
78
0.56732
dd11211e3c4712c7f6079abb1970c652430a34c6
1,141
py
Python
core/controllers/pages_test.py
bching/oppia
9e9b6d756859b8bc1e46f88a1be8736f8398a8d8
[ "Apache-2.0" ]
1
2017-11-30T02:16:01.000Z
2017-11-30T02:16:01.000Z
core/controllers/pages_test.py
bching/oppia
9e9b6d756859b8bc1e46f88a1be8736f8398a8d8
[ "Apache-2.0" ]
1
2020-01-26T14:02:43.000Z
2020-01-26T14:02:43.000Z
core/controllers/pages_test.py
bching/oppia
9e9b6d756859b8bc1e46f88a1be8736f8398a8d8
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
38.033333
74
0.737073
88ae1ef1c8f2e39620c1c6207d3b1565f5a399a3
19,319
py
Python
dxm/lib/DxJobs/DxJob.py
arunbsar/dxm-toolkit
4633d322bdebe2d75e10d1e7cd28b5a7caed2ce2
[ "Apache-2.0" ]
null
null
null
dxm/lib/DxJobs/DxJob.py
arunbsar/dxm-toolkit
4633d322bdebe2d75e10d1e7cd28b5a7caed2ce2
[ "Apache-2.0" ]
null
null
null
dxm/lib/DxJobs/DxJob.py
arunbsar/dxm-toolkit
4633d322bdebe2d75e10d1e7cd28b5a7caed2ce2
[ "Apache-2.0" ]
null
null
null
# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under ...
31.985099
164
0.579274
148b6e19be4eaeb1b14b5931695f878ade352799
3,387
py
Python
discordSuperUtils/economy.py
MG-LSJ/discord-super-utils
6434b77f20b1d69a06ac4e9e450ce8d21369fd9f
[ "MIT" ]
1
2022-01-10T08:56:18.000Z
2022-01-10T08:56:18.000Z
discordSuperUtils/economy.py
MG-LSJ/discord-super-utils
6434b77f20b1d69a06ac4e9e450ce8d21369fd9f
[ "MIT" ]
null
null
null
discordSuperUtils/economy.py
MG-LSJ/discord-super-utils
6434b77f20b1d69a06ac4e9e450ce8d21369fd9f
[ "MIT" ]
1
2021-12-23T17:18:10.000Z
2021-12-23T17:18:10.000Z
import discord from typing import List, Optional from .base import DatabaseChecker class EconomyAccount: def __init__(self, guild: int, member: int, database, table): self.guild = guild self.member = member self.database = database self.table = table def __str__(...
30.513514
87
0.542958
6b5ed27232975cb2be59d057d3e3924c918439df
260
py
Python
recipe/import_test.py
regro-cf-autotick-bot/yeadon-feedstock
d7afede10dae5a3a7394797710ade91df029d3c1
[ "BSD-3-Clause" ]
22
2015-01-24T20:22:42.000Z
2022-02-06T18:07:57.000Z
recipe/import_test.py
regro-cf-autotick-bot/yeadon-feedstock
d7afede10dae5a3a7394797710ade91df029d3c1
[ "BSD-3-Clause" ]
19
2015-02-09T22:33:12.000Z
2021-02-09T17:41:01.000Z
recipe/import_test.py
regro-cf-autotick-bot/yeadon-feedstock
d7afede10dae5a3a7394797710ade91df029d3c1
[ "BSD-3-Clause" ]
5
2015-11-10T13:45:48.000Z
2018-07-28T15:36:38.000Z
import yeadon import yeadon.exceptions import yeadon.human import yeadon.inertia import yeadon.segment import yeadon.solid import yeadon.ui import yeadon.utils import yeadon.tests try: import yeadon.gui except ImportError: # mayavi not installed pass
18.571429
43
0.811538
fa8292c59c2f8ef981ac6b326fcd406cef6d7061
2,727
py
Python
fastestimator/backend/_permute.py
DwijayDS/fastestimator
9b288cb2bd870f971ec4cee09d0b3205e1316a94
[ "Apache-2.0" ]
57
2019-05-21T21:29:26.000Z
2022-02-23T05:55:21.000Z
fastestimator/backend/permute.py
vbvg2008/fastestimator
6061a4fbbeb62a2194ef82ba8017f651710d0c65
[ "Apache-2.0" ]
93
2019-05-23T18:36:07.000Z
2022-03-23T17:15:55.000Z
fastestimator/backend/permute.py
vbvg2008/fastestimator
6061a4fbbeb62a2194ef82ba8017f651710d0c65
[ "Apache-2.0" ]
47
2019-05-09T15:41:37.000Z
2022-03-26T17:00:08.000Z
# Copyright 2019 The FastEstimator Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
41.318182
119
0.571324
f55f5886288d2e6b9f727aba41c205793f086b90
1,052
py
Python
bc/search/tests/utils.py
Buckinghamshire-Digital-Service/buckinghamshire-council
bbbdb52b515bcdfc79a2bd9198dfa4828405370e
[ "BSD-3-Clause" ]
1
2021-02-27T07:27:17.000Z
2021-02-27T07:27:17.000Z
bc/search/tests/utils.py
Buckinghamshire-Digital-Service/buckinghamshire-council
bbbdb52b515bcdfc79a2bd9198dfa4828405370e
[ "BSD-3-Clause" ]
null
null
null
bc/search/tests/utils.py
Buckinghamshire-Digital-Service/buckinghamshire-council
bbbdb52b515bcdfc79a2bd9198dfa4828405370e
[ "BSD-3-Clause" ]
1
2021-06-09T15:56:54.000Z
2021-06-09T15:56:54.000Z
from django.conf import settings from django.core.management import call_command from wagtail.search.backends import get_search_backend ORIGINAL_INDEX_NAME = settings.WAGTAILSEARCH_BACKENDS["default"].get("INDEX") def update_search_index(): call_command("update_index") def is_elasticsearch_backend(backend): ...
29.222222
79
0.76711
b27da22598bc5f6b159452a1c5ab4a5f3fd53a6e
2,735
py
Python
lib/progress.py
re-knownout/video-compressor
708bbf813e73b8c72f849ccda567c754fdcbfc2b
[ "MIT" ]
1
2022-02-28T07:07:58.000Z
2022-02-28T07:07:58.000Z
lib/progress.py
re-knownout/video-compressor
708bbf813e73b8c72f849ccda567c754fdcbfc2b
[ "MIT" ]
null
null
null
lib/progress.py
re-knownout/video-compressor
708bbf813e73b8c72f849ccda567c754fdcbfc2b
[ "MIT" ]
null
null
null
import math from typing import Callable class Progress: """ Class for creating simple progress bars """ _disable_unicode: bool _tiles: int _target: str _percents: bool _callback: Callable def __init__(self, tiles=20, target="", percents=False, callback: Callable = None): ...
28.195876
110
0.559415
2b4c17991b6d82d43a33f32339ab4b951e793f12
908
py
Python
kubernetes_typed/client/models/v1_node_status.py
nikhiljha/kubernetes-typed
4f4b969aa400c88306f92560e56bda6d19b2a895
[ "Apache-2.0" ]
22
2020-12-10T13:06:02.000Z
2022-02-13T21:58:15.000Z
kubernetes_typed/client/models/v1_node_status.py
nikhiljha/kubernetes-typed
4f4b969aa400c88306f92560e56bda6d19b2a895
[ "Apache-2.0" ]
4
2021-03-08T07:06:12.000Z
2022-03-29T23:41:45.000Z
kubernetes_typed/client/models/v1_node_status.py
nikhiljha/kubernetes-typed
4f4b969aa400c88306f92560e56bda6d19b2a895
[ "Apache-2.0" ]
2
2021-09-05T19:18:28.000Z
2022-03-14T02:56:17.000Z
# Code generated by `typeddictgen`. DO NOT EDIT. """V1NodeStatusDict generated type.""" from typing import TypedDict, Dict, List from kubernetes_typed.client import ( V1AttachedVolumeDict, V1ContainerImageDict, V1NodeAddressDict, V1NodeConditionDict, V1NodeConfigStatusDict, V1NodeDaemonEndpoint...
28.375
54
0.680617
04a29ef4bdb3574dd1a751a2cdae2d7ef626cadf
5,354
py
Python
isi_sdk_8_0/isi_sdk_8_0/models/snapshot_lock_extended.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_8_0/isi_sdk_8_0/models/snapshot_lock_extended.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_8_0/isi_sdk_8_0/models/snapshot_lock_extended.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 3 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class SnapshotLockExtended(objec...
26.904523
111
0.566306
65ace28d8d6a9f54f04b0135d3182eb98a3e0628
1,974
py
Python
recipes/qr-code-generator/all/conanfile.py
nadzkie0/conan-center-index
fde12bf20f2c4cb6a7554d09a5c9433a0f5cb72c
[ "MIT" ]
2
2022-01-04T11:30:41.000Z
2022-01-04T11:31:32.000Z
recipes/qr-code-generator/all/conanfile.py
nadzkie0/conan-center-index
fde12bf20f2c4cb6a7554d09a5c9433a0f5cb72c
[ "MIT" ]
5
2021-03-25T01:49:56.000Z
2021-03-28T16:42:12.000Z
recipes/qr-code-generator/all/conanfile.py
nadzkie0/conan-center-index
fde12bf20f2c4cb6a7554d09a5c9433a0f5cb72c
[ "MIT" ]
4
2021-06-03T23:24:03.000Z
2022-03-03T17:16:09.000Z
from conans import ConanFile, CMake, tools import os class QrCodeGeneratorConan(ConanFile): name = "qr-code-generator" url = "https://github.com/conan-io/conan-center-index" homepage = "https://github.com/nayuki/QR-Code-generator" description = "High-quality QR Code generator library in Java, JavaScri...
31.83871
113
0.60689
cedd78fd1eea1ef09d8cb7326298efa373c8bc61
60,170
py
Python
scripts/automation/trex_control_plane/interactive/trex/utils/parsing_opts.py
bdollma/trex-core
c052590f3842c117c46b0498c40455cbb011ceb1
[ "Apache-2.0" ]
null
null
null
scripts/automation/trex_control_plane/interactive/trex/utils/parsing_opts.py
bdollma/trex-core
c052590f3842c117c46b0498c40455cbb011ceb1
[ "Apache-2.0" ]
null
null
null
scripts/automation/trex_control_plane/interactive/trex/utils/parsing_opts.py
bdollma/trex-core
c052590f3842c117c46b0498c40455cbb011ceb1
[ "Apache-2.0" ]
null
null
null
import argparse from collections import namedtuple, OrderedDict from .common import list_intersect, list_difference, is_valid_ipv4, is_valid_ipv6, is_valid_mac, list_remove_dup from .text_opts import format_text from trex.emu.trex_emu_validator import Ipv4, Ipv6, Mac from ..common.trex_vlan import VLAN from ..common.t...
29.166263
150
0.527588
cc6cdec04e4e2af803177dfe43e73c8980dbd3b6
803
py
Python
tests/test_utils.py
PGBI/Surprise
76e47037675afc6c0fb017490a88d1b2b2dff0f7
[ "BSD-3-Clause" ]
5,572
2016-11-24T08:21:53.000Z
2022-03-31T20:35:00.000Z
tests/test_utils.py
daihui-lu/Surprise
46b9914995e6c8c7d227b46f2eaeef2d4600580f
[ "BSD-3-Clause" ]
393
2016-11-22T12:48:00.000Z
2022-03-26T15:09:53.000Z
tests/test_utils.py
daihui-lu/Surprise
46b9914995e6c8c7d227b46f2eaeef2d4600580f
[ "BSD-3-Clause" ]
1,096
2016-12-08T22:01:57.000Z
2022-03-29T03:55:54.000Z
from __future__ import (absolute_import, division, print_function, unicode_literals) import numpy as np import pytest from surprise.utils import get_rng def test_get_rng(): # assert two RNG with same int are the same rng_a = get_rng(12) rng_b = get_rng(12) a = [rng_a.rand() ...
23.617647
72
0.635118
70836ca1748caea3d326c0101f9ea4804dc8b95e
9,125
py
Python
shops/visualize_gradient_descent/utilities/viz_utils.py
vb690/machine_learning_exercises
9c5473652b576a3b0f0bd1df81e24166ca01c2b7
[ "MIT" ]
null
null
null
shops/visualize_gradient_descent/utilities/viz_utils.py
vb690/machine_learning_exercises
9c5473652b576a3b0f0bd1df81e24166ca01c2b7
[ "MIT" ]
1
2021-04-26T19:06:06.000Z
2021-04-26T19:06:06.000Z
shops/visualize_gradient_descent/utilities/viz_utils.py
vb690/machine_learning_exercises
9c5473652b576a3b0f0bd1df81e24166ca01c2b7
[ "MIT" ]
1
2021-04-22T12:14:59.000Z
2021-04-22T12:14:59.000Z
import os from tqdm import tqdm import numpy as np from scipy.interpolate import griddata from sklearn.preprocessing import KBinsDiscretizer import imageio from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt import matplotlib def save_3D_animation(embeddings, emb_space_sizes, train_losses, te...
30.723906
79
0.50137
154c38edaf6b52d0bb1f0a5d92cf27de97e3f13a
674
py
Python
Other_Hackings/useful_scripts/binary_dot_symbols.py
hacky1997/My-Gray-Hacker-Resources
e9b10ac7b0e557a9e624a5a6e761f9af4488d777
[ "MIT" ]
14
2017-06-14T06:10:07.000Z
2019-02-22T03:21:15.000Z
Other_Hackings/useful_scripts/binary_dot_symbols.py
rookie-12/My-Gray-Hacker-Resources
e9b10ac7b0e557a9e624a5a6e761f9af4488d777
[ "MIT" ]
1
2021-04-30T21:19:32.000Z
2021-04-30T21:19:32.000Z
Other_Hackings/useful_scripts/binary_dot_symbols.py
rookie-12/My-Gray-Hacker-Resources
e9b10ac7b0e557a9e624a5a6e761f9af4488d777
[ "MIT" ]
7
2019-02-18T10:19:43.000Z
2020-05-15T16:15:39.000Z
''' .. . .. . . .. ... ... . . ..... .. . .. .. ... . ....... ....... ....... ....... ....... ....... ....... ....... .. . .. . . .. . . ..... .. .... .. .. . ..... .. ... ....... ....... ....... ....... ....... ....... ....... ....... .. .... . ..... .. ... .. . .. .... ... .. ... . .....
37.444444
199
0.308605
6d47bf9dc8bdc8db531deaa91251fb39edb927dc
44,622
py
Python
setup.py
pydsigner/kivy
36dab10b896bd3c442fb0a66416033104ec46f46
[ "MIT" ]
1
2020-10-27T13:44:54.000Z
2020-10-27T13:44:54.000Z
setup.py
pydsigner/kivy
36dab10b896bd3c442fb0a66416033104ec46f46
[ "MIT" ]
null
null
null
setup.py
pydsigner/kivy
36dab10b896bd3c442fb0a66416033104ec46f46
[ "MIT" ]
null
null
null
# # Kivy - Cross-platform UI framework # https://kivy.org/ # import sys build_examples = False if "--build_examples" in sys.argv: build_examples = True sys.argv.remove("--build_examples") from kivy.utils import pi_version from copy import deepcopy import os from os.path import join, dirname, sep, exists, base...
39.073555
80
0.597105
8cd35eae6c57d8b15e8d3ab699d98750dfc1fdc5
4,560
py
Python
src/fairtest/modules/metrics/metric.py
columbia/fairtest
8696051c9276f127ab8b2f437850f845ff0ca786
[ "Apache-2.0" ]
42
2017-01-12T13:59:23.000Z
2022-03-01T01:44:12.000Z
src/fairtest/modules/metrics/metric.py
columbia/fairtest
8696051c9276f127ab8b2f437850f845ff0ca786
[ "Apache-2.0" ]
3
2019-05-24T21:02:51.000Z
2019-11-15T15:36:17.000Z
src/fairtest/modules/metrics/metric.py
columbia/fairtest
8696051c9276f127ab8b2f437850f845ff0ca786
[ "Apache-2.0" ]
20
2017-01-12T23:07:10.000Z
2021-08-11T09:13:50.000Z
""" Abstract Fairness Metric. """ import abc import numpy as np class Metric(object): """ An abstract fairness metric. """ __metaclass__ = abc.ABCMeta # Types of metrics DATATYPE_CT = 'ct' # Metrics over a contingency table DATATYPE_CORR = 'corr' # Correlation metrics DATATYP...
23.626943
78
0.533553
eddd5ad0ad4b59a8bea036f54f43fbf737e9bab7
1,379
py
Python
Validation/RecoParticleFlow/python/PFValidationClient_cff.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
Validation/RecoParticleFlow/python/PFValidationClient_cff.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
Validation/RecoParticleFlow/python/PFValidationClient_cff.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms from DQMOffline.PFTau.PFClient_cfi import pfClient, pfClientJetRes #from DQMOffline.PFTau.PFClient_cfi import * pfJetClient = pfClient.clone( FolderNames = ['PFJetValidation/CompWithGenJet'], HistogramNames = ['delta_et_Over_et_VS_et_'], CreateProfilePlots = True, ...
40.558824
122
0.771574
101a80d28231761022640160a30e1afe18abe3ae
2,497
py
Python
src/easyurl/url_db_update.py
liu00david/easyurl
485bfb7dab9e78ae775b3b2e2a387a70ab1227b0
[ "MIT" ]
null
null
null
src/easyurl/url_db_update.py
liu00david/easyurl
485bfb7dab9e78ae775b3b2e2a387a70ab1227b0
[ "MIT" ]
null
null
null
src/easyurl/url_db_update.py
liu00david/easyurl
485bfb7dab9e78ae775b3b2e2a387a70ab1227b0
[ "MIT" ]
null
null
null
import math import pathlib import json import os def pair(k1, k2): """ Cantor pairing function """ z = int(0.5 * (k1 + k2) * (k1 + k2 + 1) + k2) return z def depair(z): """ Inverse of Cantor pairing function """ w = math.floor((math.sqrt(8 * z + 1) - 1) / 2) t = (w**2 + w) / 2...
26.56383
77
0.592311
aada8ec58b5d2e110fd82a63c6b3c378c9431c12
1,085
py
Python
google/ads/googleads/v8/googleads-py/google/ads/googleads/v8/services/services/keyword_plan_ad_group_service/transports/__init__.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
7
2021-02-21T10:39:41.000Z
2021-12-07T07:31:28.000Z
google/ads/googleads/v7/googleads-py/google/ads/googleads/v7/services/services/keyword_plan_ad_group_service/transports/__init__.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
6
2021-02-02T23:46:11.000Z
2021-11-15T01:46:02.000Z
google/ads/googleads/v8/googleads-py/google/ads/googleads/v8/services/services/keyword_plan_ad_group_service/transports/__init__.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
4
2021-01-28T23:25:45.000Z
2021-08-30T01:55:16.000Z
# -*- coding: utf-8 -*- # Copyright 2020 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...
33.90625
96
0.784332
13ca41029388e3bbe489c23f93778768cb4ebf03
5,641
py
Python
configuration/coding_plans.py
AfricasVoices/Test-Pipeline---Daniel
285f608fa085b3a1e52da33b27eaab53fa673b0b
[ "MIT" ]
null
null
null
configuration/coding_plans.py
AfricasVoices/Test-Pipeline---Daniel
285f608fa085b3a1e52da33b27eaab53fa673b0b
[ "MIT" ]
2
2021-02-11T09:22:50.000Z
2021-02-16T16:55:27.000Z
configuration/coding_plans.py
AfricasVoices/Test-Pipeline---Daniel
285f608fa085b3a1e52da33b27eaab53fa673b0b
[ "MIT" ]
1
2021-04-09T06:38:36.000Z
2021-04-09T06:38:36.000Z
from core_data_modules.cleaners import somali, swahili, Codes from core_data_modules.cleaners.cleaning_utils import CleaningUtils from core_data_modules.traced_data import Metadata from core_data_modules.traced_data.util.fold_traced_data import FoldStrategies from configuration import code_imputation_functions from co...
47.403361
115
0.579684
1400f957a609ef78e81de88c1e6e6a23712aace4
564
py
Python
generators/app/templates/resources/lib/context.py
xbmc/generator-kodi
b5a70a4969c7eac339008ba7fc02b1cbdff082a4
[ "Apache-2.0" ]
70
2017-02-27T19:38:07.000Z
2022-02-11T16:30:25.000Z
generators/app/templates/resources/lib/context.py
xbmc/generator-kodi
b5a70a4969c7eac339008ba7fc02b1cbdff082a4
[ "Apache-2.0" ]
41
2017-01-16T07:42:15.000Z
2020-07-19T09:28:06.000Z
generators/app/templates/resources/lib/context.py
Razzeee/generator-kodi
b5a70a4969c7eac339008ba7fc02b1cbdff082a4
[ "Apache-2.0" ]
30
2017-01-21T01:07:12.000Z
2022-02-09T09:31:47.000Z
# -*- coding: utf-8 -*- import xbmcaddon import xbmcgui def run(): # Implement what your contextmenu aims to do here # For example you could call executebuiltin to call another addon # xbmc.executebuiltin("RunScript(script.example,action=show)") # You might want to check your addon.xml for the visi...
29.684211
90
0.70922
27fc0287a1f6f179656962516d0d9b24da8380a1
1,685
py
Python
release/scripts/UpdateReleasedCohorts.py
HDRUK/PGS_Catalog
d59067fc61961770d1e0f8bb6081d10d8bbea3e9
[ "Apache-2.0" ]
5
2020-01-29T18:04:08.000Z
2022-01-04T18:04:05.000Z
release/scripts/UpdateReleasedCohorts.py
PGScatalog/PGS_Catalog
d59067fc61961770d1e0f8bb6081d10d8bbea3e9
[ "Apache-2.0" ]
37
2020-02-25T08:50:04.000Z
2022-02-15T10:11:34.000Z
release/scripts/UpdateReleasedCohorts.py
HDRUK/PGS_Catalog
d59067fc61961770d1e0f8bb6081d10d8bbea3e9
[ "Apache-2.0" ]
3
2020-01-14T10:19:14.000Z
2020-09-08T20:11:34.000Z
from catalog.models import Cohort, Score from pgs_web import constants class UpdateReleasedCohorts: cohorts_released = [] cohorts_not_released = [] def __init__(self): self.cohorts = Cohort.objects.only('id','released').all() self.score_id_list = Score.objects.values_list('id', flat=True)....
40.119048
107
0.672997
7989581b7ce44ff65482bc210f5de0ff8f3a7d8e
1,877
py
Python
setup.py
AsciiShell/raspberrypi_omxplayer_control
ba1ae9c23e3050fada2c475af77adfe71ad7c2b7
[ "MIT" ]
null
null
null
setup.py
AsciiShell/raspberrypi_omxplayer_control
ba1ae9c23e3050fada2c475af77adfe71ad7c2b7
[ "MIT" ]
null
null
null
setup.py
AsciiShell/raspberrypi_omxplayer_control
ba1ae9c23e3050fada2c475af77adfe71ad7c2b7
[ "MIT" ]
null
null
null
from pkg_resources import parse_requirements from setuptools import find_packages, setup def load_requirements(filename: str) -> list: requirements = [] with open(filename, 'r') as f: for requirement in parse_requirements(f.read()): extras = '[{}]'.format(','.join(requirement.extras)) if r...
34.127273
94
0.641982
aaa54687c4820c0e96b0d69911f46f5fab478635
37,063
py
Python
policy_sentry/writing/sid_group.py
agilgur5/policy_sentry
39c9e926488376cee671b2c5b5cbdc15b215b852
[ "MIT" ]
null
null
null
policy_sentry/writing/sid_group.py
agilgur5/policy_sentry
39c9e926488376cee671b2c5b5cbdc15b215b852
[ "MIT" ]
null
null
null
policy_sentry/writing/sid_group.py
agilgur5/policy_sentry
39c9e926488376cee671b2c5b5cbdc15b215b852
[ "MIT" ]
null
null
null
""" sid_group indicates that this is a collection of policy-related data organized by their SIDs """ import logging import re from policy_sentry.analysis.expand import determine_actions_to_expand from policy_sentry.querying.all import get_all_actions from policy_sentry.querying.actions import ( get_action_data, ...
48.322034
196
0.601381
daa9d7e135497cb5eef2726c6bab6863c6fa5433
2,475
py
Python
ml/rl/models/convolutional_network.py
joshrose/Horizon
a2eb407b31a16560ae78aa6751eb83672a122a7e
[ "BSD-3-Clause" ]
2
2021-01-11T18:16:32.000Z
2021-11-30T09:34:58.000Z
ml/rl/models/convolutional_network.py
joshrose/Horizon
a2eb407b31a16560ae78aa6751eb83672a122a7e
[ "BSD-3-Clause" ]
null
null
null
ml/rl/models/convolutional_network.py
joshrose/Horizon
a2eb407b31a16560ae78aa6751eb83672a122a7e
[ "BSD-3-Clause" ]
2
2021-01-06T01:06:50.000Z
2021-06-24T01:12:52.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. import logging import math import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import torch.nn.init as init from ml.rl.models.fully_connected_network import FullyConnectedNetwork logger =...
34.859155
84
0.612929
0542edd1da53c81abaa7cd7ba80bc26660163f3b
536
py
Python
benchmarks/ERAN-MNIST/properties/pyt/property_64.py
dlshriver/dnnv-benchmarks
84b5bf1e046226d269da1cdbd7a7690fd90d024b
[ "MIT" ]
1
2022-03-01T08:59:32.000Z
2022-03-01T08:59:32.000Z
benchmarks/ERAN-MNIST/properties/pyt/property_64.py
dlshriver/dnnv-benchmarks
84b5bf1e046226d269da1cdbd7a7690fd90d024b
[ "MIT" ]
null
null
null
benchmarks/ERAN-MNIST/properties/pyt/property_64.py
dlshriver/dnnv-benchmarks
84b5bf1e046226d269da1cdbd7a7690fd90d024b
[ "MIT" ]
null
null
null
from dnnv.properties import * import numpy as np N = Network("N") mean = 0.1307 stddev = 0.3081 denormalize = lambda x: x * stddev + mean # x is not normalized x = Image(__path__.parent.parent / "inputs/input64.npy") epsilon = Parameter("epsilon", type=float, default=(2.0 / 255)) true_class = 7 Forall( x_, # x_...
25.52381
86
0.645522
00e46a13639454fcad8adb135ab8534dce9feab7
4,003
py
Python
src/oci/waf/models/collaborative_capability_weight.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/waf/models/collaborative_capability_weight.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/waf/models/collaborative_capability_weight.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
30.097744
245
0.648264
c42f65e1d28b9438e4f21340df8fc2d44e0e5316
591
py
Python
FeatureServer/Exceptions/LayerNotFoundException.py
AstunTechnology/featureserver
0697730de12b7bc4c8d90bab829d95a865253e77
[ "BSD-3-Clause-Open-MPI", "MIT" ]
55
2015-01-20T14:29:59.000Z
2020-12-13T12:54:28.000Z
FeatureServer/Exceptions/LayerNotFoundException.py
makinacorpus/featureserver
379c1a7f51e75517ae7237751e1908f45c0c4d9a
[ "BSD-3-Clause-Open-MPI", "MIT" ]
3
2015-06-24T23:34:03.000Z
2017-02-05T02:16:19.000Z
FeatureServer/Exceptions/LayerNotFoundException.py
makinacorpus/featureserver
379c1a7f51e75517ae7237751e1908f45c0c4d9a
[ "BSD-3-Clause-Open-MPI", "MIT" ]
19
2015-02-08T12:32:25.000Z
2021-12-01T08:14:32.000Z
''' Created on October 15, 2012 @author: michel ''' from FeatureServer.Exceptions.BaseException import BaseException class LayerNotFoundException(BaseException): message="Could not find the layer '%s': Check your config file for the missing layer. (Available layers are: %s)." def __init__(self,...
32.833333
118
0.664975
967eaa6933d0aca4bb70141be3fcdfda8c8c1b88
14,558
py
Python
functions/source/GreengrassLambda/urllib3/util/ssl_.py
jieatelement/quickstart-aws-industrial-machine-connectivity
ca6af4dcbf795ce4a91adcbec4b206147ab26bfa
[ "Apache-2.0" ]
40
2020-07-11T10:07:51.000Z
2021-12-11T17:09:20.000Z
functions/source/GreengrassLambda/urllib3/util/ssl_.py
jieatelement/quickstart-aws-industrial-machine-connectivity
ca6af4dcbf795ce4a91adcbec4b206147ab26bfa
[ "Apache-2.0" ]
18
2020-07-20T18:54:31.000Z
2021-11-04T13:14:28.000Z
functions/source/GreengrassLambda/urllib3/util/ssl_.py
jieatelement/quickstart-aws-industrial-machine-connectivity
ca6af4dcbf795ce4a91adcbec4b206147ab26bfa
[ "Apache-2.0" ]
37
2020-07-09T23:12:30.000Z
2022-03-16T11:15:58.000Z
from __future__ import absolute_import import errno import warnings import hmac import sys from binascii import hexlify, unhexlify from hashlib import md5, sha1, sha256 from .url import IPV4_RE, BRACELESS_IPV6_ADDRZ_RE from ..exceptions import SSLError, InsecurePlatformWarning, SNIMissingWarning from ..pac...
35.681373
88
0.64796
ab1c8e3e5169741ae0a9d89e32f5c76ab56adffd
6,793
py
Python
scripts/exp.py
tomhoper/scibert
3cc65f433808f7879c973dc4fc41bd25e465dc15
[ "Apache-2.0" ]
1,143
2019-03-27T01:49:11.000Z
2022-03-24T10:43:47.000Z
scripts/exp.py
tomhoper/scibert
3cc65f433808f7879c973dc4fc41bd25e465dc15
[ "Apache-2.0" ]
91
2019-03-27T17:20:27.000Z
2022-03-29T09:29:58.000Z
scripts/exp.py
tomhoper/scibert
3cc65f433808f7879c973dc4fc41bd25e465dc15
[ "Apache-2.0" ]
206
2019-03-28T02:22:30.000Z
2022-03-30T07:07:05.000Z
""" Alternative to `exp.sh` script because it doesn't seem to run properly on UNIX machines """ import subprocess import plac import sys import subprocess @plac.annotations( desc=("description", "positional", None, str), not_dry_run=("actually run it ?", "flag", "not_dry_run", bool), ) def main(desc...
42.192547
139
0.319299
acedf682a38ba23fa0984b31b4a2e45edef39364
445
py
Python
stubs/micropython-esp32-1_14/ure.py
Josverl/micropython-stubs
3c32403ba2b57375f311ac0d023cd529340efe62
[ "MIT" ]
38
2020-10-18T21:59:44.000Z
2022-03-17T03:03:28.000Z
all-stubs/micropython-esp32-1_14/ure.py
ks-tec/Hydroponic
d9347f82698841d85c0a45908e8671b36c50ffce
[ "MIT" ]
176
2020-10-18T14:31:03.000Z
2022-03-30T23:22:39.000Z
all-stubs/micropython-esp32-1_14/ure.py
ks-tec/Hydroponic
d9347f82698841d85c0a45908e8671b36c50ffce
[ "MIT" ]
6
2020-12-28T21:11:12.000Z
2022-02-06T04:07:50.000Z
""" Module: 'ure' on micropython-esp32-1.14 """ # MCU: {'ver': '1.14', 'port': 'esp32', 'arch': 'xtensawin', 'sysname': 'esp32', 'release': '1.14.0', 'name': 'micropython', 'mpy': 10757, 'version': '1.14.0', 'machine': 'ESP32 module (spiram) with ESP32', 'build': '', 'nodename': 'esp32', 'platform': 'esp32', 'family': ...
24.722222
286
0.579775
617c6868ce5790cd142ab736e8041cf5a7600c06
19,687
py
Python
python/pyserial-3.0/serial/serialutil.py
gotnone/hwa
4648cf6072a06552d22cbf6498b35f3e24ce38d5
[ "BSD-3-Clause" ]
25
2015-08-05T12:36:24.000Z
2021-03-26T01:51:58.000Z
python/pyserial-3.0/serial/serialutil.py
gotnone/hwa
4648cf6072a06552d22cbf6498b35f3e24ce38d5
[ "BSD-3-Clause" ]
3
2021-06-08T21:06:32.000Z
2022-01-13T02:22:38.000Z
python/pyserial-3.0/serial/serialutil.py
gotnone/hwa
4648cf6072a06552d22cbf6498b35f3e24ce38d5
[ "BSD-3-Clause" ]
4
2016-09-18T08:58:35.000Z
2020-07-16T11:43:29.000Z
#! python # # Base class and support functions used by various backends. # # This file is part of pySerial. https://github.com/pyserial/pyserial # (C) 2001-2015 Chris Liechti <cliechti@gmx.net> # # SPDX-License-Identifier: BSD-3-Clause import io import time # ``memoryview`` was introduced in Python 2.7 and ``bytes...
31.398724
146
0.563773
8f8bd0f955838bb7e1873f5fed5daf807a2f8f70
2,543
py
Python
python/lib/python2.7/site-packages/python_stdnum-1.6-py2.7.egg/stdnum/pl/nip.py
gtfarng/Odoo_migrade
9cc28fae4c379e407645248a29d22139925eafe7
[ "Apache-2.0" ]
1
2019-12-19T01:53:13.000Z
2019-12-19T01:53:13.000Z
python/lib/python2.7/site-packages/python_stdnum-1.6-py2.7.egg/stdnum/pl/nip.py
gtfarng/Odoo_migrade
9cc28fae4c379e407645248a29d22139925eafe7
[ "Apache-2.0" ]
null
null
null
python/lib/python2.7/site-packages/python_stdnum-1.6-py2.7.egg/stdnum/pl/nip.py
gtfarng/Odoo_migrade
9cc28fae4c379e407645248a29d22139925eafe7
[ "Apache-2.0" ]
null
null
null
# nip.py - functions for handling Polish VAT numbers # # Copyright (C) 2012-2015 Arthur de Jong # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (...
31.7875
73
0.698781
a0436e0ce116e40953d444c851b22df53267b5f6
210
py
Python
simple_machine_learning_models/models/random_forest/__init__.py
lnblanke/OCR
b235faa85fedd9f764f71ea592e8693a2a7ac42a
[ "MIT" ]
null
null
null
simple_machine_learning_models/models/random_forest/__init__.py
lnblanke/OCR
b235faa85fedd9f764f71ea592e8693a2a7ac42a
[ "MIT" ]
null
null
null
simple_machine_learning_models/models/random_forest/__init__.py
lnblanke/OCR
b235faa85fedd9f764f71ea592e8693a2a7ac42a
[ "MIT" ]
null
null
null
# @Time: 9/23/2021 # @Author: lnblanke # @Email: fjh314.84@gmail.com # @File: __init__.py.py from .RandomForestClassifier import RandomForestClassifier from .RandomForestRegressor import RandomForestRegressor
26.25
58
0.8
e9353e547b36992b00c9465a6e587f0baf0b01cf
10,042
py
Python
rasotools/plot/_helpers.py
MBlaschek/rasotools
a8b954518a1e39b554f850aac0f5bd8fa1f23dc6
[ "MIT" ]
1
2019-10-06T22:26:43.000Z
2019-10-06T22:26:43.000Z
rasotools/plot/_helpers.py
MBlaschek/rasotools
a8b954518a1e39b554f850aac0f5bd8fa1f23dc6
[ "MIT" ]
null
null
null
rasotools/plot/_helpers.py
MBlaschek/rasotools
a8b954518a1e39b554f850aac0f5bd8fa1f23dc6
[ "MIT" ]
1
2020-04-19T13:47:52.000Z
2020-04-19T13:47:52.000Z
# -*- coding: utf-8 -*- def plot_levels(imin, m=None, p=0, n=13): """plotlevels with logspace """ import numpy as np if not isinstance(imin, (int, float)): raise ValueError("Require a int or float") if m is not None and not isinstance(m, (int, float)): raise ValueError("Require a...
33.251656
125
0.526787
0cb133b5feca695976170cc9568c4433744d3395
1,098
py
Python
Processor/Components/memory_hierarchy/cache/cache_set.py
Atelier-Developers/atelier-artemisia-processor
39e44c4bfccd27ef39c2f5e56c0c5202f86f7f74
[ "MIT" ]
3
2020-08-01T15:26:38.000Z
2020-08-30T16:37:24.000Z
Processor/Components/memory_hierarchy/cache/cache_set.py
Atelier-Developers/atelier-artemisia-processor
39e44c4bfccd27ef39c2f5e56c0c5202f86f7f74
[ "MIT" ]
null
null
null
Processor/Components/memory_hierarchy/cache/cache_set.py
Atelier-Developers/atelier-artemisia-processor
39e44c4bfccd27ef39c2f5e56c0c5202f86f7f74
[ "MIT" ]
null
null
null
from Components.memory_hierarchy.cache.cache_block import CacheBlock class CacheSet: def __init__(self, clock, inputs, name="Cache_Set"): self.clock = clock # Maybe two clocks? self.inputs = inputs self.name = name self.output = None self.blocks = None self.build(...
27.45
80
0.599271
3c731b6e01b7e24a63377ab05632b3b58371a047
7,977
py
Python
web/dynitag/dynitag/admin/views.py
f0k/dynitag
2dcbe838e32f9fe59b31252ff9b3f7537e32bd47
[ "MIT" ]
null
null
null
web/dynitag/dynitag/admin/views.py
f0k/dynitag
2dcbe838e32f9fe59b31252ff9b3f7537e32bd47
[ "MIT" ]
null
null
null
web/dynitag/dynitag/admin/views.py
f0k/dynitag
2dcbe838e32f9fe59b31252ff9b3f7537e32bd47
[ "MIT" ]
null
null
null
import os import uuid import re from flask import redirect, request, jsonify, flash, url_for, Markup, Response from wtforms import Form from wtforms.validators import ValidationError import flask_admin from sqlalchemy import exc, and_ from flask_admin.contrib.sqla import ModelView from flask_login import login_require...
38.912195
138
0.629435
3ab12894aa04e105a4a5c36ab3b5919602fede16
2,393
py
Python
src/tinuous/state.py
yarikoptic/tinuous
23bcccce77a0c118cd07f06ad1cc6ee1a4edb58e
[ "MIT" ]
null
null
null
src/tinuous/state.py
yarikoptic/tinuous
23bcccce77a0c118cd07f06ad1cc6ee1a4edb58e
[ "MIT" ]
null
null
null
src/tinuous/state.py
yarikoptic/tinuous
23bcccce77a0c118cd07f06ad1cc6ee1a4edb58e
[ "MIT" ]
null
null
null
from datetime import datetime from pathlib import Path from typing import Optional, Union from pydantic import BaseModel from .util import log STATE_FILE = ".tinuous.state.json" OLD_STATE_FILE = ".dlstate.json" class State(BaseModel): github: Optional[datetime] = None travis: Optional[datetime] = None ...
30.291139
86
0.572085
49453d7eef4a7e8308d7b3e30c992d5c3f8faac5
25,758
py
Python
networkbrowser/src/AutoMount.py
wedebe/enigma2-plugins
58e1897866ad65294283970e96e5f2841c3cb6e2
[ "OLDAP-2.3" ]
null
null
null
networkbrowser/src/AutoMount.py
wedebe/enigma2-plugins
58e1897866ad65294283970e96e5f2841c3cb6e2
[ "OLDAP-2.3" ]
null
null
null
networkbrowser/src/AutoMount.py
wedebe/enigma2-plugins
58e1897866ad65294283970e96e5f2841c3cb6e2
[ "OLDAP-2.3" ]
null
null
null
# -*- coding: utf-8 -*- # for localized messages #from __init__ import _ import os from enigma import eTimer from Components.Console import Console from Components.Harddisk import harddiskmanager #global harddiskmanager from xml.etree.cElementTree import parse as cet_parse from shutil import rmtree XML_FSTAB = "/etc/...
45.914439
250
0.643451
0ad631cdf6597275c367b066b7c97fe3721e1d65
224
py
Python
pylogger/formats/__init__.py
agSant01/pylogger
99a5d08b0f486c43dc4936cd89474e21a86f377a
[ "MIT" ]
null
null
null
pylogger/formats/__init__.py
agSant01/pylogger
99a5d08b0f486c43dc4936cd89474e21a86f377a
[ "MIT" ]
null
null
null
pylogger/formats/__init__.py
agSant01/pylogger
99a5d08b0f486c43dc4936cd89474e21a86f377a
[ "MIT" ]
null
null
null
from .timestamp import Timestamp from .caller import ClassCaller, FunctionCaller, FileCaller, FileLine from .format import Format __all__ = ['Timestamp', 'ClassCaller', 'FunctionCaller', 'FileCaller', 'FileLine', 'Format']
37.333333
92
0.776786
c9eea8f4fad1041f4c5e29b482e2298a10152677
934
py
Python
Back-End/Python/Basics/Part -2 - Iteration & Generators/02 - Iterables & Iterators/14_test_iter.py
ASHISHKUMAR2411/Programming-CookBook
9c60655d64d21985ccb4196360858d98344701f9
[ "MIT" ]
25
2021-04-28T02:51:26.000Z
2022-03-24T13:58:04.000Z
Back-End/Python/Basics/Part -2 - Iteration & Generators/02 - Iterables & Iterators/14_test_iter.py
ASHISHKUMAR2411/Programming-CookBook
9c60655d64d21985ccb4196360858d98344701f9
[ "MIT" ]
1
2022-03-03T23:33:41.000Z
2022-03-03T23:35:41.000Z
Back-End/Python/Basics/Part -2 - Iteration & Generators/02 - Iterables & Iterators/14_test_iter.py
ASHISHKUMAR2411/Programming-CookBook
9c60655d64d21985ccb4196360858d98344701f9
[ "MIT" ]
15
2021-05-30T01:35:20.000Z
2022-03-25T12:38:25.000Z
class SimpleIter: def __init__(self): pass def __iter__(self): return 'Nope' s = SimpleIter() print('__iter__' in dir(s) ) # => True def is_iterable(obj): try: iter(obj) return True except TypeError: return False obj = 100 if is_iterable(obj): for i in o...
19.061224
62
0.638116
a9bcbb02778d6b6a69a02c099de595a109e09a64
8,380
py
Python
configs/common/MemConfig.py
liyupeng/NVPage
1a3caee8bdd6533239e076cd464b9f2c85ba7d21
[ "BSD-3-Clause" ]
7
2015-01-12T11:37:19.000Z
2021-09-23T18:31:48.000Z
configs/common/MemConfig.py
liyupeng/NVPage
1a3caee8bdd6533239e076cd464b9f2c85ba7d21
[ "BSD-3-Clause" ]
null
null
null
configs/common/MemConfig.py
liyupeng/NVPage
1a3caee8bdd6533239e076cd464b9f2c85ba7d21
[ "BSD-3-Clause" ]
2
2018-11-15T03:42:47.000Z
2019-03-06T06:53:15.000Z
# Copyright (c) 2013 ARM Limited # All rights reserved. # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware implementation of the functionality ...
39.528302
78
0.664797
316f55f1cd3e8179efa0050ca9bca0b11b6f8acb
380
py
Python
tools/perf/benchmarks/memory_pressure.py
shaochangbin/chromium-crosswalk
634d34e4cf82b4f7400357c53ec12efaffe94add
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2019-01-16T03:57:28.000Z
2021-01-23T15:29:45.000Z
tools/perf/benchmarks/memory_pressure.py
shaochangbin/chromium-crosswalk
634d34e4cf82b4f7400357c53ec12efaffe94add
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
tools/perf/benchmarks/memory_pressure.py
shaochangbin/chromium-crosswalk
634d34e4cf82b4f7400357c53ec12efaffe94add
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2017-03-15T13:21:38.000Z
2017-03-15T13:21:38.000Z
# Copyright 2013 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. from telemetry import test from measurements import memory_pressure class MemoryPressure(test.Test): test = memory_pressure.MemoryPressure page_set = 'p...
31.666667
72
0.784211
20f8feb7268b4ad287c1e4a159d773297a837425
446
py
Python
pyai/metrics.py
bpesquet/pyai
09f6e9989c9c3d3619b45a0aab2bd363141dfe58
[ "MIT" ]
null
null
null
pyai/metrics.py
bpesquet/pyai
09f6e9989c9c3d3619b45a0aab2bd363141dfe58
[ "MIT" ]
null
null
null
pyai/metrics.py
bpesquet/pyai
09f6e9989c9c3d3619b45a0aab2bd363141dfe58
[ "MIT" ]
null
null
null
""" Metrics for distances and losses """ import numpy as np def euclidean_distance(a, b): """ Euclidean distance: https://en.wikipedia.org/wiki/Euclidean_distance """ squared_diff = (a - b) ** 2 sum_squared_diff = np.sum(squared_diff) return np.sqrt(sum_squared_diff) def mean_squared_error...
20.272727
72
0.686099
5db19092d846203da3b338833d9e6abf8f994fc7
406
py
Python
plugins/keepkey/cmdline.py
theubiquitous/electrum-wallet
c2b30d270b724887267b5cd8814bcad04f567cf2
[ "MIT" ]
4
2018-08-16T16:02:21.000Z
2021-02-14T06:19:10.000Z
plugins/keepkey/cmdline.py
theubiquitous/electrum-wallet
c2b30d270b724887267b5cd8814bcad04f567cf2
[ "MIT" ]
6
2018-05-25T01:46:32.000Z
2021-11-15T17:47:51.000Z
plugins/keepkey/cmdline.py
theubiquitous/electrum-wallet
c2b30d270b724887267b5cd8814bcad04f567cf2
[ "MIT" ]
4
2018-05-22T09:04:09.000Z
2021-04-21T22:24:05.000Z
from electrum_lcc.plugins import hook from .keepkey import KeepKeyPlugin from ..hw_wallet import CmdLineHandler class Plugin(KeepKeyPlugin): handler = CmdLineHandler() @hook def init_keystore(self, keystore): if not isinstance(keystore, self.keystore_class): return keystore.hand...
27.066667
57
0.714286
4849326d5f2864496a94bf5145f71dee5cdb0069
379
py
Python
sphinxcontrib/needs/services/base.py
David-Le-Nir/sphinxcontrib-needs
fe809445505fa1e9bf5963eab1d6283dad405e92
[ "MIT" ]
1
2022-03-24T08:55:28.000Z
2022-03-24T08:55:28.000Z
sphinxcontrib/needs/services/base.py
David-Le-Nir/sphinxcontrib-needs
fe809445505fa1e9bf5963eab1d6283dad405e92
[ "MIT" ]
null
null
null
sphinxcontrib/needs/services/base.py
David-Le-Nir/sphinxcontrib-needs
fe809445505fa1e9bf5963eab1d6283dad405e92
[ "MIT" ]
null
null
null
from sphinxcontrib.needs.logging import get_logger class BaseService: def __init__(self, *args, **kwargs): self.log = get_logger(__name__) def request(self, *args, **kwargs): raise NotImplementedError("Must be implemented by the service!") def debug(self, *args, **kwargs): raise ...
29.153846
72
0.693931
b801a047bde1849af47a8728d0e8ff8893c7240d
556
py
Python
code/src/run_prediction_day1_to_day2.py
hiroyasuando/CH_traffic
b653e9ee02f6b1a88097eaae736d51cad3f6c77b
[ "MIT" ]
null
null
null
code/src/run_prediction_day1_to_day2.py
hiroyasuando/CH_traffic
b653e9ee02f6b1a88097eaae736d51cad3f6c77b
[ "MIT" ]
null
null
null
code/src/run_prediction_day1_to_day2.py
hiroyasuando/CH_traffic
b653e9ee02f6b1a88097eaae736d51cad3f6c77b
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import load_data from utils import * ############ target = '05e' rlist=['05e'] # remove_list delay = 7 interval = 17 p=0. depth=2 depth_ar=6 ############ ## load data # df_sum1 : data on day 1 # df_sum2 : data on day2 df_sum1, df_sum2 = load_data.load_data(interval=interval,p=...
19.172414
78
0.688849
b8350e7f0e6f14a476745dfb1acb3f64762bf493
4,813
py
Python
docs/source/scripts/api/solutions/exercise2_question8.py
EBI-Metagenomics/mgnify-ebi-2020
ff33f148e660a2ecfe464310a8ea92d252ef1814
[ "Apache-2.0" ]
1
2021-06-01T13:59:07.000Z
2021-06-01T13:59:07.000Z
docs/source/scripts/api/solutions/exercise2_question8.py
EBI-Metagenomics/mgnify-ebi-2020
ff33f148e660a2ecfe464310a8ea92d252ef1814
[ "Apache-2.0" ]
null
null
null
docs/source/scripts/api/solutions/exercise2_question8.py
EBI-Metagenomics/mgnify-ebi-2020
ff33f148e660a2ecfe464310a8ea92d252ef1814
[ "Apache-2.0" ]
1
2021-11-15T04:17:41.000Z
2021-11-15T04:17:41.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import argparse import csv from jsonapi_client import Session, Filter from plotnine import * import pandas API_BASE = "https://www.ebi.ac.uk/metagenomics/api/v1" TAX_RANK = "phylum" # MGYS00002474 (DRP001073) Metabolically active microbial communities # in marine sedi...
31.457516
113
0.61978
2d70ef23dad0fb3518ba96114bfa425974262ca8
1,429
py
Python
partition.py
kirito25/integer-partition
73aa0a2683aec2585d2171302c3e913a804719bc
[ "MIT" ]
null
null
null
partition.py
kirito25/integer-partition
73aa0a2683aec2585d2171302c3e913a804719bc
[ "MIT" ]
null
null
null
partition.py
kirito25/integer-partition
73aa0a2683aec2585d2171302c3e913a804719bc
[ "MIT" ]
null
null
null
import sys """ Generates all the partitions of number n. If doall is true it will also generate the partitions for n-1,...,0 """ def partitions(n, doall=False): # base case of recursion: zero if n == 0: yield [0] return # recurively build partition for p in partitions(n - 1, doall): ...
19.053333
81
0.511547
643032abe0052bba6515567b51f8597e38797bcb
2,109
py
Python
sos/sos/doctype/salary_payout/salary_payout.py
tushar2488/sos
d97e57453f98394a0957a5a00675b44b3e3c37df
[ "MIT" ]
null
null
null
sos/sos/doctype/salary_payout/salary_payout.py
tushar2488/sos
d97e57453f98394a0957a5a00675b44b3e3c37df
[ "MIT" ]
null
null
null
sos/sos/doctype/salary_payout/salary_payout.py
tushar2488/sos
d97e57453f98394a0957a5a00675b44b3e3c37df
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2019, Youtility Technologies Pvt. Ltd and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe, erpnext from frappe import _ from frappe.model.document import Document from frappe.utils import add_days, cint, cstr, ...
34.016129
104
0.69559
211a5a7c0c3cd5944d505deb1a024d3c2ff1c717
863
py
Python
src/adventofcode2021/solutions/day01.py
RoelAdriaans/adventofcode2021
d9c01ca9b855ca7e15c7d334c715d322601b8e19
[ "MIT" ]
null
null
null
src/adventofcode2021/solutions/day01.py
RoelAdriaans/adventofcode2021
d9c01ca9b855ca7e15c7d334c715d322601b8e19
[ "MIT" ]
26
2021-11-30T21:39:56.000Z
2022-03-31T04:31:32.000Z
src/adventofcode2021/solutions/day01.py
RoelAdriaans/adventofcode2021
d9c01ca9b855ca7e15c7d334c715d322601b8e19
[ "MIT" ]
null
null
null
from adventofcode2021.utils.abstract import FileReaderSolution class Day01: pass class Day01PartA(Day01, FileReaderSolution): def solve(self, input_data: str) -> int: num_changes = 0 depths = [int(n) for n in input_data.split("\n") if n] last_number = depths[0] for depth in d...
26.151515
62
0.578216
e03aca64fce9a69296cd837c5bf4e3829e5e5ba8
6,160
py
Python
examples/pytorch/train_pytorch_mnist.py
ainoam/clearml-serving
4c55b123435829da615b3190ddb29e60072aef8d
[ "Apache-2.0" ]
null
null
null
examples/pytorch/train_pytorch_mnist.py
ainoam/clearml-serving
4c55b123435829da615b3190ddb29e60072aef8d
[ "Apache-2.0" ]
null
null
null
examples/pytorch/train_pytorch_mnist.py
ainoam/clearml-serving
4c55b123435829da615b3190ddb29e60072aef8d
[ "Apache-2.0" ]
null
null
null
# ClearML - Example of pytorch with tensorboard>=v1.14 # from __future__ import print_function import argparse import os from tempfile import gettempdir import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torchvision import datasets, transforms from torch.autograd impor...
43.076923
117
0.5875
53320bd8ba173308f1c1b5daade3c36264526a54
1,773
py
Python
auv/auv_marine.py
PanosMallioris/Autonomous-Marine-Exploration-Water-Simulation-ROS-GAZEBO
cde420f50f49471614775198dcb142311c79725b
[ "Apache-2.0" ]
4
2019-03-06T21:09:47.000Z
2019-10-17T20:26:43.000Z
auv/auv_marine.py
PanosMallioris/Autonomous-Marine-Exploration-Water-Simulation-ROS-GAZEBO
cde420f50f49471614775198dcb142311c79725b
[ "Apache-2.0" ]
1
2019-02-25T16:03:11.000Z
2019-03-06T21:05:57.000Z
auv/auv_marine.py
PanosMallioris/Autonomous-Marine-Exploration-Water-Simulation-ROS-GAZEBO
cde420f50f49471614775198dcb142311c79725b
[ "Apache-2.0" ]
1
2021-04-20T15:09:22.000Z
2021-04-20T15:09:22.000Z
import rospy from geometry_msgs.msg import Twist from sensor_msgs.msg import LaserScan import time def scan_callback(msg): global g_range_ahead global l_range global r_range g_range_ahead = min(msg.ranges) r_range = msg.ranges[0] l_range = msg.ranges[189] print "min range ahead : %0.1f" % g_range_...
29.065574
78
0.658206
087aefdccb5e00290c38dfa2f708d634cb3252ce
35,885
py
Python
rx3/__init__.py
samiur/RxPY
ea6b3554ab06cfc70e28b532c0a54b910b6ee470
[ "MIT" ]
null
null
null
rx3/__init__.py
samiur/RxPY
ea6b3554ab06cfc70e28b532c0a54b910b6ee470
[ "MIT" ]
null
null
null
rx3/__init__.py
samiur/RxPY
ea6b3554ab06cfc70e28b532c0a54b910b6ee470
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines,redefined-outer-name,redefined-builtin from asyncio.futures import Future as _Future from typing import Iterable, Callable, Any, Optional, Union, Mapping from .core import Observable, pipe, typing from .internal.utils import alias # Please make sure the version here remains the same...
32.29973
102
0.594287
92b9dd4f6cbfff489b9f7f7a7b016de3350251b8
825
py
Python
tracker.py
sasthabhoot/score-tracker
914351be2ccbad36cfcf8dae7290e39200fccf34
[ "MIT" ]
null
null
null
tracker.py
sasthabhoot/score-tracker
914351be2ccbad36cfcf8dae7290e39200fccf34
[ "MIT" ]
null
null
null
tracker.py
sasthabhoot/score-tracker
914351be2ccbad36cfcf8dae7290e39200fccf34
[ "MIT" ]
null
null
null
import bs4 as bs import urllib.request import time import matplotlib.pyplot as plt crickbuzz = input('Copy and paste the cricbuzz score page url here: ') print("") max_limit = str(input('Limit the over (eg. 16.2): ')) print("") temp = 'start' ovs = [] runs = [] wicks = [] over = 0 while over != max_limit : sauce = ...
20.625
70
0.673939
d9f44fd953051fbc3da3a2107fa97d8915002f3d
437
py
Python
CURSOEMVIDEO/ex019.py
souzasnp/PrimeiroProjeto
e88bde45df14d9c584b24caabb5186cb98141291
[ "MIT" ]
null
null
null
CURSOEMVIDEO/ex019.py
souzasnp/PrimeiroProjeto
e88bde45df14d9c584b24caabb5186cb98141291
[ "MIT" ]
null
null
null
CURSOEMVIDEO/ex019.py
souzasnp/PrimeiroProjeto
e88bde45df14d9c584b24caabb5186cb98141291
[ "MIT" ]
null
null
null
#Um professor quer sortear um dos seus quatros alunos para apagar o quadro. faça um programa que ajude ele lendo o nome deles e escrevendo o nome do escolhido. from random import choice aluno1 = input('Primeiro Aluno: ') aluno2 = input('Segundo Aluno: ') aluno3 = input('Terceiro Aluno: ') aluno4 = input('Quarto Aluno: ...
43.7
159
0.745995
bc098a8159e2fdb906c93175f85750ad43f153d5
4,663
py
Python
git_upstream/rebase_editor.py
emonty/git-upstream
f1e2cc53371d98f2bdcf7d105a1bbb0750bfcdc8
[ "Apache-2.0" ]
null
null
null
git_upstream/rebase_editor.py
emonty/git-upstream
f1e2cc53371d98f2bdcf7d105a1bbb0750bfcdc8
[ "Apache-2.0" ]
null
null
null
git_upstream/rebase_editor.py
emonty/git-upstream
f1e2cc53371d98f2bdcf7d105a1bbb0750bfcdc8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright (c) 2012, 2013, 2014 Hewlett-Packard Development Company, L.P. # # 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/LICENS...
36.716535
79
0.628994
319e2748e10ff3e8abcf2c31191a620dd863a28a
25,649
py
Python
windows/benji.py
shubhpatel108/B.E.N.J.I.
c545bf9f53fc0f77b86d65260912153c5ab7c726
[ "MIT" ]
null
null
null
windows/benji.py
shubhpatel108/B.E.N.J.I.
c545bf9f53fc0f77b86d65260912153c5ab7c726
[ "MIT" ]
null
null
null
windows/benji.py
shubhpatel108/B.E.N.J.I.
c545bf9f53fc0f77b86d65260912153c5ab7c726
[ "MIT" ]
null
null
null
# coding: utf-8 import tkinter as tk from tkinter import ttk import wx import regex import os import wikipedia import time import webbrowser import youtube_dl #import winshell import json import requests import ctypes import random import urllib import ssl from bs4 import BeautifulSoup import win32...
41.104167
301
0.510195
6fbf7166b1a40132a383ae6c0331819453191689
29,917
py
Python
xception_tf/keras_xception.py
rickyHong/Light-Head-RCNN-enhanced-Xdetector
1b19e15709635e007494648c4fb519b703a29d84
[ "Apache-2.0" ]
116
2018-03-12T19:38:06.000Z
2021-02-23T16:15:34.000Z
xception_tf/keras_xception.py
rickyHong/Light-Head-RCNN-enhanced-Xdetector
1b19e15709635e007494648c4fb519b703a29d84
[ "Apache-2.0" ]
11
2018-04-25T15:46:21.000Z
2019-03-15T11:25:48.000Z
xception_tf/keras_xception.py
rickyHong/Light-Head-RCNN-enhanced-Xdetector
1b19e15709635e007494648c4fb519b703a29d84
[ "Apache-2.0" ]
37
2018-03-31T03:38:42.000Z
2020-09-18T09:04:32.000Z
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
48.724756
151
0.720092
8e237d4ef1446b296d6d2a3e45f27a6a89105949
5,320
py
Python
docusign_esign/models/expirations.py
pivotal-energy-solutions/docusign-python-client
f3edd0b82e57999bc8848a63a0477712714ee437
[ "MIT" ]
null
null
null
docusign_esign/models/expirations.py
pivotal-energy-solutions/docusign-python-client
f3edd0b82e57999bc8848a63a0477712714ee437
[ "MIT" ]
null
null
null
docusign_esign/models/expirations.py
pivotal-energy-solutions/docusign-python-client
f3edd0b82e57999bc8848a63a0477712714ee437
[ "MIT" ]
1
2021-04-26T20:52:45.000Z
2021-04-26T20:52:45.000Z
# coding: utf-8 """ DocuSign REST API The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. OpenAPI spec version: v2 Contact: devcenter@docusign.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from ppr...
31.856287
261
0.60094
0a5cbf9816675b49ba96e087441cd1862f1979b6
10,897
py
Python
src/lib/models/networks/resnet_fpn_dcn_align.py
Hzx66666/FairMOT_PS
c0b2ef18cd712ebd2512ce73672667a72a9d4f04
[ "MIT" ]
null
null
null
src/lib/models/networks/resnet_fpn_dcn_align.py
Hzx66666/FairMOT_PS
c0b2ef18cd712ebd2512ce73672667a72a9d4f04
[ "MIT" ]
null
null
null
src/lib/models/networks/resnet_fpn_dcn_align.py
Hzx66666/FairMOT_PS
c0b2ef18cd712ebd2512ce73672667a72a9d4f04
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------------ # Copyright (c) Microsoft # Licensed under the MIT License. # Written by Bin Xiao (Bin.Xiao@microsoft.com) # Modified by Dequan Wang and Xingyi Zhou # ------------------------------------------------------------------------------ from __f...
33.632716
80
0.566211
175453c38f3860281429655c02e4ba6500627666
24,718
py
Python
models/swin_transformer.py
alisure-fork/Transformer-SSL
962b367197cb1ea0a5242d22832b455612d958b0
[ "MIT" ]
426
2021-05-10T19:24:30.000Z
2022-03-27T10:19:07.000Z
models/swin_transformer.py
alisure-fork/Transformer-SSL
962b367197cb1ea0a5242d22832b455612d958b0
[ "MIT" ]
12
2021-05-13T10:47:23.000Z
2022-02-21T10:19:09.000Z
models/swin_transformer.py
alisure-fork/Transformer-SSL
962b367197cb1ea0a5242d22832b455612d958b0
[ "MIT" ]
52
2021-05-11T05:14:29.000Z
2022-03-27T10:18:45.000Z
# -------------------------------------------------------- # Swin Transformer # Copyright (c) 2021 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ze Liu # Modified by Zhenda Xie # -------------------------------------------------------- import torch import torch.nn as nn import torch...
41.542857
119
0.595801
a17908b1a4c6f5426b97165ae2fdaa07408c4328
6,000
py
Python
pycorrector/seq2seq/infer.py
ParikhKadam/pycorrector
771115538256126711888a48f8b359757500d345
[ "Apache-2.0" ]
3,153
2018-04-11T10:36:24.000Z
2022-03-31T10:06:31.000Z
pycorrector/seq2seq/infer.py
ParikhKadam/pycorrector
771115538256126711888a48f8b359757500d345
[ "Apache-2.0" ]
251
2018-04-12T08:44:07.000Z
2022-03-30T08:50:32.000Z
pycorrector/seq2seq/infer.py
ParikhKadam/pycorrector
771115538256126711888a48f8b359757500d345
[ "Apache-2.0" ]
784
2018-04-19T06:48:39.000Z
2022-03-31T07:10:18.000Z
# -*- coding: utf-8 -*- """ @author:XuMing(xuming624@qq.com) @description: """ import os import sys import numpy as np import torch sys.path.append('../..') from pycorrector.seq2seq import config from pycorrector.seq2seq.data_reader import SOS_TOKEN, EOS_TOKEN from pycorrector.seq2seq.data_reader import load_word_d...
43.478261
117
0.5515
2f1e934b8e60286169e18fd9d8a48e332ee21f62
3,858
py
Python
socib_cms/cmsutils/migrations/0001_initial.py
socib/django-socib-cms
e5f5f137cfa4e156956c9757a7c6979e6bee51ce
[ "MIT" ]
3
2016-11-25T13:35:26.000Z
2018-04-27T04:25:39.000Z
socib_cms/cmsutils/migrations/0001_initial.py
socib/django-socib-cms
e5f5f137cfa4e156956c9757a7c6979e6bee51ce
[ "MIT" ]
null
null
null
socib_cms/cmsutils/migrations/0001_initial.py
socib/django-socib-cms
e5f5f137cfa4e156956c9757a7c6979e6bee51ce
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import django.db.models.deletion import filer.fields.image from django.conf import settings class Migration(migrations.Migration): dependencies = [ ('filer', '0006_auto_20160623_1627'), migra...
50.763158
177
0.606013
2fd784b4dd56a2be3031c8c4999f3cb2fbeed481
11,777
py
Python
model/faster_rcnn.py
txytju/Faster-RCNN-LocNet
74a2dc4d70f1236d0aec71914af8fa922f428e4f
[ "MIT" ]
29
2018-07-02T08:03:02.000Z
2022-02-27T14:06:44.000Z
model/faster_rcnn.py
txytju/Faster-RCNN-LocNet
74a2dc4d70f1236d0aec71914af8fa922f428e4f
[ "MIT" ]
1
2018-08-01T12:53:15.000Z
2018-08-01T12:53:15.000Z
model/faster_rcnn.py
txytju/Faster-RCNN-LocNet
74a2dc4d70f1236d0aec71914af8fa922f428e4f
[ "MIT" ]
8
2018-07-03T08:29:22.000Z
2022-02-27T14:06:45.000Z
from __future__ import division import torch as t import numpy as np import cupy as cp from utils import array_tool as at from model.utils.bbox_tools import loc2bbox, p2bbox from model.utils.nms import non_maximum_suppression from torch import nn from data.dataset import preprocess from torch.nn import functional as F...
37.15142
102
0.58818